Commit d86f7a3d authored by 刘用法's avatar 刘用法
parents 2d85702d cea23f26
......@@ -322,11 +322,16 @@ export default {
break;
}
if (self.uploadType === 'id_card_front' || self.uploadType === 'id_card_back') {
await self.chooseImage("qiniu", {...attr, options: {count: 1}})
} else {
self.imgList = await self.chooseImg({count: 1})
}
if(self.uploadType && self.imgList && self.imgList.length > 0) {
// 设置图片对象
self.imgObj[self.uploadType] = self.imgList
self.formShowList[index].imgs[key] = self.imgList[0].src
self.formShowList[index].imgs[key] = self.imgList[0].path
this.updateImgs()
}
},
......@@ -349,14 +354,14 @@ export default {
let imgs = []
otherImgs.map(item => {
const img = item.key || item.src || ''
const img = item.key || ''
imgs.push(img)
})
this.fileInfo['other_photos'][photoType]['url'] = imgs.join(',')
return
}
this.fileInfo[uploadType] = uploadImgs[0].key || uploadImgs[0].src || ''
this.fileInfo[uploadType] = uploadImgs[0].key || ''
},
toUploadImg(item, index) {
this.uploadType = item.filedName
......@@ -372,7 +377,7 @@ export default {
},
async checkIdCard(type) {
uni.showLoading({
title: '加载中'
title: '识别中'
})
let request = {
front: this.$u.api.checkSettleIDCardFront,
......@@ -472,7 +477,7 @@ export default {
fileInfo.other_photos = JSON.stringify(fileInfo.other_photos)
let submitInfoData = {
...fileInfo,
recommender: getApp().globalData.settleRecommend
recommender: getApp().globalData.settleRecommend,
}
uni.showLoading({
title: '加载中……'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment