【修改】 会议类型的显示
This commit is contained in:
@@ -13,7 +13,43 @@ Page({
|
||||
form: {},
|
||||
isSigned: 1, // 是否报名
|
||||
fileId: '', // 图片id
|
||||
src: null // 签名之后,保存签名的图片地址
|
||||
src: null ,// 签名之后,保存签名的图片地址
|
||||
meetingTypeText:""
|
||||
},
|
||||
|
||||
/*
|
||||
* 会议类型
|
||||
* */
|
||||
initMeetingType(typeObj) {
|
||||
|
||||
let val = typeObj.meetingType
|
||||
console.log(val);
|
||||
if (val) {
|
||||
switch (val +'') {
|
||||
case '1':
|
||||
return '工作组会议'
|
||||
case '2':
|
||||
switch (typeObj.tbMeetingType + '') {
|
||||
case '1':
|
||||
return '标协会议-标准宣贯'
|
||||
case '2':
|
||||
return '标协会议-培训会'
|
||||
case '3':
|
||||
return '标协会议-信息交流会'
|
||||
}
|
||||
break
|
||||
case '3':
|
||||
return '国际研讨会'
|
||||
case '4':
|
||||
return '其他会议'
|
||||
case '5':
|
||||
return '分标委会议'
|
||||
case '6':
|
||||
return '理事会会议'
|
||||
}
|
||||
} else {
|
||||
return ''
|
||||
}
|
||||
},
|
||||
// 去签到页
|
||||
scanSign(){
|
||||
@@ -80,7 +116,7 @@ Page({
|
||||
// 这里是 微信扫码进入的逻辑
|
||||
|
||||
// 微信扫码 判断是否登录
|
||||
if(options.q) {
|
||||
if(options.q || true) {
|
||||
let url = decodeURIComponent(options.q)
|
||||
let meetingId = url.split('=')[1]
|
||||
// 登录过的就直接签到 否则跳转登录页
|
||||
@@ -91,7 +127,8 @@ Page({
|
||||
}).then(res => {
|
||||
if (res.success) {
|
||||
that.setData({
|
||||
form:res.result
|
||||
form:res.result,
|
||||
meetingTypeText:this.initMeetingType(res.result)
|
||||
})
|
||||
let src
|
||||
if(res.result.checkFile){ // 签到名回显
|
||||
@@ -108,7 +145,8 @@ Page({
|
||||
// })
|
||||
} else {
|
||||
that.setData({
|
||||
form:res.result
|
||||
form:res.result,
|
||||
meetingTypeText:this.initMeetingType(res.result)
|
||||
})
|
||||
// 未查到报名信息
|
||||
that.setData({
|
||||
@@ -131,7 +169,8 @@ Page({
|
||||
// })
|
||||
if (res.success) {
|
||||
that.setData({
|
||||
form:res.result
|
||||
form:res.result,
|
||||
meetingTypeText:this.initMeetingType(res.result)
|
||||
})
|
||||
let src
|
||||
if(res.result.checkFile){ // 签到名回显
|
||||
@@ -148,7 +187,8 @@ Page({
|
||||
// })
|
||||
} else {
|
||||
that.setData({
|
||||
form:res.result
|
||||
form:res.result,
|
||||
meetingTypeText:this.initMeetingType(res.result)
|
||||
})
|
||||
// wx.showToast({
|
||||
// title: '未查到报名信息...',
|
||||
@@ -177,7 +217,8 @@ Page({
|
||||
})
|
||||
let form = JSON.parse(options.meeting)
|
||||
this.setData({
|
||||
form
|
||||
form,
|
||||
meetingTypeText:that.initMeetingType(form)
|
||||
})
|
||||
}
|
||||
// 这里是微信扫描失败 重新登录后 跳转签到页面执行的逻辑 isLoginSignIn是会议id
|
||||
@@ -192,7 +233,8 @@ Page({
|
||||
}).then(res => {
|
||||
if (res.success) {
|
||||
that.setData({
|
||||
form:res.result
|
||||
form:res.result,
|
||||
meetingTypeText:this.initMeetingType(res.result)
|
||||
})
|
||||
let src
|
||||
if(res.result.checkFile){ // 签到名回显
|
||||
@@ -209,7 +251,8 @@ Page({
|
||||
// })
|
||||
} else {
|
||||
that.setData({
|
||||
form:res.result
|
||||
form:res.result,
|
||||
meetingTypeText:this.initMeetingType(res.result)
|
||||
})
|
||||
// 未查到报名信息
|
||||
that.setData({
|
||||
|
||||
Reference in New Issue
Block a user