zhaoxiaohai 3 年之前
父节点
当前提交
0a4a1b9740
共有 1 个文件被更改,包括 4 次插入0 次删除
  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) {