Commit 11c48bb2 authored by Jennie Shi's avatar Jennie Shi

插件文件上传

parent 96b3f2c7
......@@ -260,8 +260,6 @@
</bottom-tab>
</h-view>
</h-modal>
<!--活体检测-->
<!-- <body-check ref="body" :check_id="$route.params.check_id" :confirm_id="confirm_id" /> -->
</h-view>
</template>
......@@ -294,6 +292,7 @@ export default {
attachFlag: false,
attachUrl: null,
tabNum: null,
check_id: this.$route.params.check_id,
bp_name: '',
bookFlag: false,
read_status: 'N',
......@@ -620,10 +619,10 @@ export default {
cordova.plugins.IdCardPlugin.faceContrast({'idNum': data.id_card_no, 'idName': data.bp_name}, function (suc) {
// cordova.plugins.IdCardPlugin.faceContrast({'idNum': '341181199602016223', 'idName': '史蒙蒙'}, function (suc) {
let success = JSON.parse(suc)
console.log('success === ' + success)
if (success.code === 1) {
let filePath = JSON.stringify(success.message, '\\', null)
filePath = filePath.replace('\"', '')
filePath = 'file:\/\/' + filePath.replace('\"', '')
filePath = filePath.substr(0, filePath.length - 1)
console.log('filePath ==== ' + filePath)
// 回调成功上传图片
vm.uploadImg(filePath)
......@@ -643,7 +642,7 @@ export default {
let vm = this
vm.faceListUpload = []
let obj = {
pkvalue: vm.$route.params.check_id,
pkvalue: vm.check_id,
source_type: 'PRJ_CDD_ITEM_CHECK',
picture: '',
filePath: img,
......@@ -700,7 +699,7 @@ export default {
if (list[j].filePath === res.response.filePath) {
list[j].attachment_id = res.response.attachment_id
vm.faceListUpload.push(list[j])
console.log('faceListUpload' + JSON.stringify(vm.faceListUpload))
console.log('faceListUpload ==== ' + JSON.stringify(vm.faceListUpload))
break
}
}
......
......@@ -205,7 +205,7 @@ export default {
if (vm.bp_identity === 'NP_NO' || vm.bp_identity === 'ORG_L_NO' || vm.bp_identity === 'ORG_AUTH_NO') {
vm.hlsPopup.showConfirm({
title: '提示',
content: '当前用户尚未认证,是否需要证',
content: '当前用户尚未认证,是否需要证',
cancelText: '直接提交',
confirmText: '先去认证',
onConfirm: c => {
......
<!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no,width=device-width,viewport-fit=cover"><meta name=format-detection content="telephone=no"><meta name=format-detection content="email=no"><meta name=apple-mobile-web-app-capable content=yes><meta name=apple-mobile-web-app-status-bar-style content=black><script type=text/javascript src=./static/vuePlatform.js></script><script type=text/javascript src=./static/prototype.js></script><script type=text/javascript src=./cordova.js></script><script type=text/javascript src="http://api.map.baidu.com/api?v=2.0&ak=Eoo0EtfjYCdAy7r8D19gZ0vMojdZpHqU"></script><title>徐工金服</title><link href=./static/css/app.512826ac6a88930aaaea4e530d0361b7.css rel=stylesheet></head><body><div id=app-box></div><script type=text/javascript src=./static/js/manifest.6a178e8d77c32e3c385d.js></script><script type=text/javascript src=./static/js/vendor.0a4e11017ea45af58444.js></script><script type=text/javascript src=./static/js/app.e85af0954e9c1691cb2c.js></script></body></html>
\ No newline at end of file
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