From 5b5fe6aabf1de799e9af9634466465acde5fb642 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9B=B9=E8=BE=89?= <814457906@qq.com>
Date: Tue, 15 Nov 2022 15:37:32 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pages/register/register.vue | 65 ++++++++++++++++++++-----------------
1 file changed, 35 insertions(+), 30 deletions(-)
diff --git a/pages/register/register.vue b/pages/register/register.vue
index b150b32..d5ea785 100644
--- a/pages/register/register.vue
+++ b/pages/register/register.vue
@@ -31,8 +31,8 @@
护理站
{{nurseStationName}}
-
-
+
+
@@ -116,34 +116,39 @@
},
//注册功能
getInfo() {
- nurseAppLoginSysUser(this.appPersonallist).then(res => {
- console.log(res)
- if (this.appPersonallist.stationPersonPassword !== this.appPersonallist.newpassword) {
- this.$refs.uToast.show({
- title: '密码输入不一致,请重新输入',
- type: 'error',
- duration: '1500'
- })
- } else if (res.code == 200) {
- this.$refs.uToast.show({
- title: '注册成功,前往登录',
- type: 'success',
- url: '/pages/login/login',
- duration: '1500'
- })
- } else if (this.radio == 1) {
- this.$refs.uToast.show({
- title: '请审核并同意用户协议',
- type: 'error'
- })
- } else {
- this.$refs.uToast.show({
- title: res.msg,
- type: 'error'
- })
- }
-
- })
+ if (this.radio == 1) {
+ this.$refs.uToast.show({
+ title: '请审核并同意用户协议',
+ type: 'error'
+ })
+ } else {
+ nurseAppLoginSysUser(this.appPersonallist).then(res => {
+ console.log(res)
+ if (this.appPersonallist.stationPersonPassword !== this.appPersonallist.newpassword) {
+ this.$refs.uToast.show({
+ title: '密码输入不一致,请重新输入',
+ type: 'error',
+ duration: '1500'
+ })
+ } else if (res.code == 200) {
+ this.$refs.uToast.show({
+ title: '注册成功,前往登录',
+ type: 'success',
+ url: '/pages/login/login',
+ duration: '1500'
+ })
+ } else {
+ this.$refs.uToast.show({
+ title: res.msg,
+ type: 'error'
+ })
+ }
+ })
+ }
+ },
+ tapradio() {
+ this.radio = 2;
+ this.maskshow = false;
},
//跳转登录页
gologin() {