Commit 361f344b authored by wangxuelai's avatar wangxuelai

'授权取消'

parent 4342c974
......@@ -956,7 +956,7 @@ Page({
const visitor = LocalStorage.getItem("visitor");
let that = this;
const { encryptedData, iv } = e.detail;
if (e.detail.errMsg == "getPhoneNumber:fail user deny") {
if (!encryptedData) {
wx.showToast({
title: "获取手机号失败",
icon: "none"
......
......@@ -600,7 +600,6 @@ Page({
// 去打卡
goClock(e) {
// 先授权
console.log(this.data.themeSelect.is_join, "是否已加入");
if (this.data.themeSelect.is_join != 1) {
if (this.data.themeSelect.join_rule_type == 3) {
this.setData({
......@@ -940,7 +939,7 @@ Page({
const visitor = LocalStorage.getItem("visitor");
let that = this;
const { encryptedData, iv } = e.detail;
if (e.detail.errMsg == 'getPhoneNumber:fail user deny') { //用户点击拒绝
if (!encryptedData) { //用户点击拒绝
wx.login({
success(res) {
const sessionCode = res.code;
......@@ -993,6 +992,7 @@ Page({
);
},
joinClock() {
const that = this;
if(this.data.goJoinSubmiting){
return
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment