【update】 我的-扫码报名

This commit is contained in:
danshihao
2024-01-16 13:06:58 +08:00
parent dff90e51a5
commit 9117c82c4e
3 changed files with 33 additions and 2 deletions
+24
View File
@@ -98,6 +98,30 @@ Page({
})
})
},
// 扫码报名
scanCodeApplication () {
wx.scanCode({
onlyFromCamera: false,
scanType: [],
success: (result) => {
console.log(result,'saoma result');
if (result.result.indexOf("signupdraftteamentrance") > -1) { // 证明是签到二维码
let draftId = result.result.split("=")[1] // Id
// 成功扫码的回调result
wx.navigateTo({
url: `../signUpDraftTeamEntrance/signUpDraftTeamEntrance?id=${draftId}`,
})
} else {
wx.showToast({
title: '此二维码不是报名码',
icon: 'none',
duration: 2000
})
return
}
}
})
},
// 我的资料
mineData() {
isLogin(() => {