【修改】 会议详情加入可签到按钮
This commit is contained in:
@@ -88,10 +88,6 @@ Page({
|
||||
UserApi.scanCode({
|
||||
meetingId
|
||||
}).then(res => {
|
||||
wx.showToast({
|
||||
title: '获取签到信息...',
|
||||
icon: 'loading'
|
||||
})
|
||||
if (res.success) {
|
||||
that.setData({
|
||||
form:res.result
|
||||
@@ -113,10 +109,6 @@ Page({
|
||||
that.setData({
|
||||
form:res.result
|
||||
})
|
||||
wx.showToast({
|
||||
title: '未查到报名信息...',
|
||||
icon: 'loading'
|
||||
})
|
||||
// 未查到报名信息
|
||||
that.setData({
|
||||
isSigned: 0,
|
||||
@@ -125,6 +117,48 @@ Page({
|
||||
}).catch(err => {})
|
||||
})
|
||||
}
|
||||
// 这里是会议详情的跳转签到
|
||||
if(options.type === 'meetingDetail'){
|
||||
let meetingId = options.meetingId
|
||||
UserApi.scanCode({
|
||||
meetingId
|
||||
}).then(res => {
|
||||
wx.showToast({
|
||||
title: '获取签到信息...',
|
||||
icon: 'loading'
|
||||
})
|
||||
if (res.success) {
|
||||
that.setData({
|
||||
form:res.result
|
||||
})
|
||||
let src
|
||||
if(res.result.checkFile){ // 签到名回显
|
||||
src = baseUrl + URL_CONFIG + 'sys/common/download/' + res.result.checkFile
|
||||
}else{
|
||||
src = ''
|
||||
}
|
||||
this.setData({
|
||||
isSigned: 1,
|
||||
src
|
||||
})
|
||||
// wx.navigateTo({ // 已报名
|
||||
// url: `../scanSign/scanSign?signed=1&meeting=${result}`,
|
||||
// })
|
||||
} else {
|
||||
that.setData({
|
||||
form:res.result
|
||||
})
|
||||
wx.showToast({
|
||||
title: '未查到报名信息...',
|
||||
icon: 'loading'
|
||||
})
|
||||
// 未查到报名信息
|
||||
that.setData({
|
||||
isSigned: 0,
|
||||
})
|
||||
}
|
||||
}).catch(err => {})
|
||||
}
|
||||
|
||||
// 这里是小程序内部的扫码签到
|
||||
if(options.meeting){
|
||||
|
||||
Reference in New Issue
Block a user