Ver código fonte

修改隐私协议

zs 1 ano atrás
pai
commit
b7a6171d0e
1 arquivos alterados com 2 adições e 3 exclusões
  1. 2 3
      pages/register/index.vue

+ 2 - 3
pages/register/index.vue

@@ -89,7 +89,7 @@
 				streetList: [],
 				commList: [],
 				// 用户协议
-				agree: true,
+				agree: false,
 			}
 		},
 		async onLoad() {
@@ -157,8 +157,7 @@
 			// 同意隐私协议
 			changeAgree() {
 				const that = this;
-				let agree = true;
-				if (that.agree) agree = false;
+				let agree = !that.agree
 				that.$set(that, `agree`, agree);
 			},
 			// 查看隐私协议