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

'附件名'

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