bug修改
This commit is contained in:
+18
-13
@@ -65,9 +65,9 @@ Page({
|
||||
onlyFromCamera: false,
|
||||
scanType: [],
|
||||
success: (result) => {
|
||||
// if(result.result.indexOf("scanSign") > -1){ // 证明是签到二维码
|
||||
// let meetingId = result.result.split("=")[1] // 会议Id
|
||||
let meetingId = result.result // 会议Id
|
||||
if (result.result.indexOf("scanSign") > -1) { // 证明是签到二维码
|
||||
let meetingId = result.result.split("=")[1] // 会议Id
|
||||
// let meetingId = result.result // 会议Id
|
||||
// 成功扫码的回调
|
||||
UserApi.scanCode({
|
||||
meetingId
|
||||
@@ -84,16 +84,15 @@ Page({
|
||||
url: `../scanSign/scanSign?signed=0&meeting=${result}`,
|
||||
})
|
||||
}
|
||||
}).catch(err=>{
|
||||
}).catch(err => {})
|
||||
} else {
|
||||
wx.showToast({
|
||||
title: '此二维码不是签到码',
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
})
|
||||
// }else {
|
||||
// wx.showToast({
|
||||
// title: '此二维码不是签到码',
|
||||
// icon: 'none',
|
||||
// duration: 2000
|
||||
// })
|
||||
// return
|
||||
// }
|
||||
return
|
||||
}
|
||||
}
|
||||
})
|
||||
})
|
||||
@@ -142,6 +141,12 @@ Page({
|
||||
})
|
||||
})
|
||||
}
|
||||
},
|
||||
fail(err) {
|
||||
wx.showToast({
|
||||
title: err.message,
|
||||
icon: 'none'
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
@@ -172,7 +177,7 @@ Page({
|
||||
phone: userInfo.phone.substr(0, 3) + '-' + userInfo.phone.substr(3, 4) + '-' + userInfo.phone.substr(7, 4)
|
||||
})
|
||||
}
|
||||
if(userInfoTemp){
|
||||
if (userInfoTemp) {
|
||||
this.setData({
|
||||
avatarUrl: userInfoTemp.avatarUrl
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user