shish 3 lat temu
rodzic
commit
a4b04847c1
2 zmienionych plików z 14 dodań i 4 usunięć
  1. 7 2
      ghsApp/src/admin/home/login.vue
  2. 7 2
      hdApp/src/admin/home/login.vue

+ 7 - 2
ghsApp/src/admin/home/login.vue

@@ -35,7 +35,7 @@
 				<view style="color:#999999;font-size:25upx;margin-top:55upx;">
 					<checkbox-group @change="agreeItem">
 						<label>
-							<checkbox value="1" style="transform:scale(0.8)" />
+							<checkbox value="1" style="transform:scale(0.8)" :checked="agree == 1" />
 							<text>
 								我已阅读并同意
 								<text style="font-weight:bold;color:#666666;" @click.stop="goToService">《服务协议》</text>
@@ -48,7 +48,7 @@
 				<!-- #endif -->
 				<view style="margin-top:80upx;color:#999999;width:86vw;font-size:35upx;">
 					<text style="float:right;" @click="pageTo({url: '/pagesClient/official/apply',type:2})">注册账号</text>
-					<text style="float:right;margin-right:25upx;" @click="showAccountLogin=true">使用账号密码登录</text>
+					<text style="float:right;margin-right:25upx;" @click="useAccount()">使用账号密码登录</text>
 				</view>
 			</view>
 			</view>
@@ -115,6 +115,11 @@ export default {
 	},
 	methods: {
 		...mapActions(['setUserShopAll']),
+		useAccount(){
+			this.showAccountLogin = true
+			this.agree = 0
+			this.$forceUpdate()
+		},
 		goToService(){
 			plus.runtime.openURL('http://www.wixhb.com/main/xhb-register')
 		},

+ 7 - 2
hdApp/src/admin/home/login.vue

@@ -35,7 +35,7 @@
 				<view style="color:#999999;font-size:25upx;margin-top:60upx;">
 					<checkbox-group @change="agreeItem">
 						<label>
-							<checkbox value="1" style="transform:scale(0.8)" />
+							<checkbox value="1" style="transform:scale(0.8)" :checked="agree == 1" />
 							<text>
 								我已阅读并同意
 								<text style="font-weight:bold;color:#666666;" @click.stop="goToService">《服务协议》</text>
@@ -50,7 +50,7 @@
 					<text @click="pageTo({url:'/admin/home/loginRemind'})" >登录遇到了问题?点这里</text>
 				</view>
 				<view style="margin-top:45upx;color:#333333;font-size:34upx;width:100%;text-align:right;padding-right:70upx;">
-					<text style="margin-right:40upx;" @click="showAccountLogin=true">使用账号密码登录</text>
+					<text style="margin-right:40upx;" @click="useAccount()">使用账号密码登录</text>
 					<text @click="pageTo({url:'/pagesClient/official/apply',type:2})">注册帐号</text>
 				</view>
 			</view>
@@ -119,6 +119,11 @@ export default {
 	},
 	methods: {
 		...mapActions(['setUserShopAll']),
+		useAccount(){
+			this.showAccountLogin = true
+			this.agree = 0
+			this.$forceUpdate()
+		},
 		goToService(){
 			plus.runtime.openURL('http://www.wixhb.com/main/hzg-register')
 		},