陶杰
2025-01-13 efa9bfe98ba906e4c9b8f49c89f5da162a46bb0f
1.微信一键登录:新增“同意用户协议”之后才可登录
已修改1个文件
14 ■■■■■ 文件已修改
pages/login/supplier-login.vue 14 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/login/supplier-login.vue
@@ -387,7 +387,9 @@
    },
    onShow() {
        this.getOpenId();
        // #ifdef PUB_CUSTOMER
             this.getOpenId();
        // #endif
    },
    onShareAppMessage() {
        let that = this;
@@ -484,6 +486,10 @@
        async handleGetPhoneNumber(e){
            let that = this
            if (!this.protocal) {
                this.$message.showToast('请同意用户协议')
                return
            }
            console.log(e)
            console.log(e.detail.code)  // 动态令牌
            console.log(e.detail.errMsg) // 回调信息(成功失败都会返回)
@@ -606,6 +612,12 @@
        
        handleWechatClick() {
            if (!this.protocal) {
                this.$message.showToast('请同意用户协议')
                return
            }
            let that = this
            // 微信登录
            uni.login({