zhaoxiaohai %!s(int64=3) %!d(string=hai) anos
pai
achega
0a4a1b9740
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      pages/login/index.js

+ 4 - 0
pages/login/index.js

@@ -33,6 +33,10 @@ Page({
         })
     },
     wechatLogin() {
+        if (!this.data.isAgree) return Toast({
+            message: '请阅读并勾选用户协议',
+            position: 'bottom'
+        });
         wx.login({
             success(res) {
                 if (res.code) {