Commit eb7f8489 authored by 李晓兵's avatar 李晓兵

'附件名'

parent 3142a682
......@@ -306,7 +306,7 @@
</div>
</div>
</div>
<div class="card-upload" @click="imgUploadShow(list.check_id)">
<div class="card-upload" @click="imgUploadShow(list.description,list.check_id)">
<img src="@/assets/userBind/camera.png" class="upload-btn" >
</div>
</div>
......@@ -677,7 +677,7 @@ export default {
'filePath': vm.idCardFront,
'attachment_id': '',
'user_id': 1,
'fileName': 'front',
'fileName': '自然人身份证正面',
}
list.push(obj)
vm.save_picture(list)
......@@ -693,7 +693,7 @@ export default {
'filePath': vm.idCardBack,
'attachment_id': '',
'user_id': 1,
'fileName': 'back',
'fileName': '自然人身份证背面',
}
list.push(obj)
vm.save_picture(list)
......@@ -709,7 +709,7 @@ export default {
'filePath': vm.idCardFrontSp,
'attachment_id': '',
'user_id': 1,
'fileName': 'front',
'fileName': '配偶身份证正面',
}
list.push(obj)
vm.save_picture(list)
......@@ -725,7 +725,7 @@ export default {
'filePath': vm.idCardBackSp,
'attachment_id': '',
'user_id': 1,
'fileName': 'back',
'fileName': '配偶身份证背面',
}
list.push(obj)
vm.save_picture(list)
......@@ -807,7 +807,7 @@ export default {
}
},
// 图片上传入口
imgUploadShow (check_id) {
imgUploadShow (description,check_id) {
let vm = this
// vm.upload_list = []
hlsPopup.showActionSheet({
......@@ -815,14 +815,14 @@ export default {
buttonArray: ['拍照', '从相册取'],
callback: index => {
if (index === 0) {
vm.imgUploadOpenCamera(check_id)
vm.imgUploadOpenCamera(description,check_id)
} else {
vm.imgUploadTakePicture(check_id)
vm.imgUploadTakePicture(description,check_id)
}
},
})
},
imgUploadOpenCamera (check_id) {
imgUploadOpenCamera (description,check_id) {
let vm = this
let obj = {
'pkvalue': check_id,
......@@ -832,7 +832,7 @@ export default {
'filePath': '',
'attachment_id': '',
'user_id': 1,
'fileName': '',
'fileName': description + '_' + new Date().getTime(),
}
let cameraoptions = {
quality: 100,
......@@ -851,7 +851,7 @@ export default {
}
hlsUtil.openCamera(cameraoptions, success, error)
},
imgUploadTakePicture (check_id) {
imgUploadTakePicture (description,check_id) {
let vm = this
let cameraoptions = {
quality: 100,
......@@ -867,7 +867,7 @@ export default {
'filePath': '',
'attachment_id': '',
'user_id': 1,
'fileName': '',
'fileName': description + '_' + new Date().getTime(),
}
obj.picture = imgUrl[i]
obj.filePath = imgUrl[i]
......
......@@ -394,7 +394,7 @@
</div>
</div>
</div>
<div class="card-upload" @click="imgUploadShow(list.check_id)">
<div class="card-upload" @click="imgUploadShow(list.description,list.check_id)">
<img src="@/assets/userBind/camera.png" class="upload-btn">
</div>
</div>
......@@ -1563,7 +1563,7 @@ export default {
'filePath': vm.idCardFront,
'attachment_id': '',
'user_id': 1,
'fileName': 'front',
'fileName': '法人身份证正面',
}
list.push(obj)
vm.save_picture(list)
......@@ -1579,7 +1579,7 @@ export default {
'filePath': vm.idCardBack,
'attachment_id': '',
'user_id': 1,
'fileName': 'back',
'fileName': '法人身份证背面',
}
list.push(obj)
vm.save_picture(list)
......@@ -1595,7 +1595,7 @@ export default {
'filePath': vm.authidCardFront,
'attachment_id': '',
'user_id': 1,
'fileName': 'front',
'fileName': '授权人身份证正面',
}
list.push(obj)
vm.save_picture(list)
......@@ -1611,7 +1611,7 @@ export default {
'filePath': vm.authidCardBack,
'attachment_id': '',
'user_id': 1,
'fileName': 'back',
'fileName': '授权人身份证背面',
}
list.push(obj)
vm.save_picture(list)
......@@ -1627,7 +1627,7 @@ export default {
'filePath': vm.licenseImg,
'attachment_id': '',
'user_id': 1,
'fileName': '',
'fileName': '企业营业执照',
}
list.push(obj)
vm.save_picture(list)
......@@ -1643,7 +1643,7 @@ export default {
'filePath': vm.laImg,
'attachment_id': '',
'user_id': 1,
'fileName': '',
'fileName': '授权证书',
}
list.push(obj)
vm.save_picture(list)
......@@ -1760,7 +1760,7 @@ export default {
vm.hlsUtil.takePicture(cameraoptions, success, error)
},
// 图片上传入口
imgUploadShow (check_id) {
imgUploadShow (description, check_id) {
let vm = this
// vm.upload_list = []
hlsPopup.showActionSheet({
......@@ -1768,14 +1768,14 @@ export default {
buttonArray: ['拍照', '从相册取'],
callback: index => {
if (index === 0) {
vm.imgUploadOpenCamera(check_id)
vm.imgUploadOpenCamera(description,check_id)
} else {
vm.imgUploadTakePicture(check_id)
vm.imgUploadTakePicture(description,check_id)
}
},
})
},
imgUploadOpenCamera (check_id) {
imgUploadOpenCamera (description,check_id) {
let vm = this
let obj = {
'pkvalue': check_id,
......@@ -1785,7 +1785,7 @@ export default {
'filePath': '',
'attachment_id': '',
'user_id': 1,
'fileName': '',
'fileName': description + '_' + new Date().getTime(),
}
let cameraoptions = {
quality: 100,
......@@ -1804,7 +1804,7 @@ export default {
}
hlsUtil.openCamera(cameraoptions, success, error)
},
imgUploadTakePicture (check_id) {
imgUploadTakePicture (description,check_id) {
let vm = this
let cameraoptions = {
quality: 100,
......@@ -1820,7 +1820,7 @@ export default {
'filePath': '',
'attachment_id': '',
'user_id': 1,
'fileName': '',
'fileName': description + '_' + new Date().getTime(),
}
obj.picture = imgUrl[i]
obj.filePath = imgUrl[i]
......
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