Commit d86f7a3d authored by 刘用法's avatar 刘用法
parents 2d85702d cea23f26
...@@ -322,11 +322,16 @@ export default { ...@@ -322,11 +322,16 @@ export default {
break; break;
} }
await self.chooseImage("qiniu", {...attr, options: {count: 1}}) 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) { if(self.uploadType && self.imgList && self.imgList.length > 0) {
// 设置图片对象 // 设置图片对象
self.imgObj[self.uploadType] = self.imgList 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() this.updateImgs()
} }
}, },
...@@ -349,14 +354,14 @@ export default { ...@@ -349,14 +354,14 @@ export default {
let imgs = [] let imgs = []
otherImgs.map(item => { otherImgs.map(item => {
const img = item.key || item.src || '' const img = item.key || ''
imgs.push(img) imgs.push(img)
}) })
this.fileInfo['other_photos'][photoType]['url'] = imgs.join(',') this.fileInfo['other_photos'][photoType]['url'] = imgs.join(',')
return return
} }
this.fileInfo[uploadType] = uploadImgs[0].key || uploadImgs[0].src || '' this.fileInfo[uploadType] = uploadImgs[0].key || ''
}, },
toUploadImg(item, index) { toUploadImg(item, index) {
this.uploadType = item.filedName this.uploadType = item.filedName
...@@ -372,7 +377,7 @@ export default { ...@@ -372,7 +377,7 @@ export default {
}, },
async checkIdCard(type) { async checkIdCard(type) {
uni.showLoading({ uni.showLoading({
title: '加载中' title: '识别中'
}) })
let request = { let request = {
front: this.$u.api.checkSettleIDCardFront, front: this.$u.api.checkSettleIDCardFront,
...@@ -461,9 +466,9 @@ export default { ...@@ -461,9 +466,9 @@ export default {
return formFlag; return formFlag;
}, },
async submitFileInfo() { async submitFileInfo() {
if (!this.submitBtnStatus) { if (!this.submitBtnStatus) {
return return
} }
if (!this.checkFileInfo()) { if (!this.checkFileInfo()) {
return; return;
...@@ -472,7 +477,7 @@ export default { ...@@ -472,7 +477,7 @@ export default {
fileInfo.other_photos = JSON.stringify(fileInfo.other_photos) fileInfo.other_photos = JSON.stringify(fileInfo.other_photos)
let submitInfoData = { let submitInfoData = {
...fileInfo, ...fileInfo,
recommender: getApp().globalData.settleRecommend recommender: getApp().globalData.settleRecommend,
} }
uni.showLoading({ uni.showLoading({
title: '加载中……' title: '加载中……'
...@@ -529,7 +534,7 @@ export default { ...@@ -529,7 +534,7 @@ export default {
width: 100%; width: 100%;
height: 100%; height: 100%;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
overflow-y:auto; overflow-y:auto;
} }
...@@ -748,9 +753,9 @@ export default { ...@@ -748,9 +753,9 @@ export default {
padding: 38rpx 30rpx 30rpx 30rpx; padding: 38rpx 30rpx 30rpx 30rpx;
margin-bottom: 20rpx; margin-bottom: 20rpx;
font-size: 32rpx; font-size: 32rpx;
color: #333333; color: #333333;
.title-left-view { .title-left-view {
font-weight: bold; font-weight: bold;
} }
.title-image { .title-image {
......
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