Browse Source

修复话对捧个场必须上传图片的BUG;

release
ZhaoTongYao 4 years ago
parent
commit
3c75f9456d
  1. 2
      pages/toRegister/toRegister.js
  2. 34
      subpages/associationNew/pages/addTopic/addTopic.js

2
pages/toRegister/toRegister.js

@ -21,7 +21,7 @@ Page({
// } // }
// }) // })
let that = this let that = this
const versionNum = "1.6.29" const versionNum = "1.6.30"
api.getScanSwitch(versionNum).then(function (res) { api.getScanSwitch(versionNum).then(function (res) {
console.log(res.data) console.log(res.data)
let state = res.data.scanFlag let state = res.data.scanFlag

34
subpages/associationNew/pages/addTopic/addTopic.js

@ -262,26 +262,28 @@ Page({
return false return false
} }
const imagesList = [] const imagesList = []
if (this.data.imageList.length > 0) { if (this.data.topicType == '0') {
const isUploadingStatus = this.data.imageList.some(item => item.upload) if (this.data.imageList.length > 0) {
if (isUploadingStatus) { const isUploadingStatus = this.data.imageList.some(item => item.upload)
if (isUploadingStatus) {
wx.showToast({
title: "请等待图片上传完成",
icon: "none",
duration: 2000
})
return false
}
this.data.imageList.forEach(item => {
imagesList.push(item.ossUrl)
})
} else {
wx.showToast({ wx.showToast({
title: "请等待图片上传完成", title: '请上传图片',
icon: "none", icon: 'none',
duration: 2000 duration: 2000
}) })
return false return false
} }
this.data.imageList.forEach(item => {
imagesList.push(item.ossUrl)
})
} else {
wx.showToast({
title: '请上传图片',
icon: 'none',
duration: 2000
})
return false
} }
const para = { const para = {
topicType:this.data.topicType,//话题类型:0:事好儿鼓个掌 1:话对捧个场 topicType:this.data.topicType,//话题类型:0:事好儿鼓个掌 1:话对捧个场

Loading…
Cancel
Save