bug修改

This commit is contained in:
姚亚男
2021-11-01 09:24:11 +08:00
parent b966b650b8
commit 180ea3f9cc
9 changed files with 75 additions and 40 deletions
+18 -13
View File
@@ -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
})