Commit 03ce2017 authored by jiacheng.mao's avatar jiacheng.mao

sdk升级20231117改动

parent e96553e8
......@@ -12,5 +12,5 @@ module.exports = {
fileUploadSvcPath:'"http://180.104.121.66:8088/r/api/app/fileUploadSvc?sysName=XCMG_UAT&apiName="',
privacyPath: '"http://180.104.121.66:8090/html/PrivacyPolicy.html"',
appId: '"com.xcmg.app.dev"',
currentVersion: '"4.1.2"'
currentVersion: '"4.3.1"'
}
{
"name": "IdCardPlugin",
"version": "1.0.0",
"name": "cordova-plugin-hand-idcardplugin",
"version": "0.3.1",
"description": "",
"cordova": {
"id": "IdCardPlugin",
"platforms": []
"id": "cordova-plugin-hand-idcardplugin",
"platforms": [
"ios",
"android"
]
},
"keywords": [
"ecosystem:cordova"
......
<?xml version='1.0' encoding='utf-8'?>
<plugin id="IdCardPlugin" version="1.0.0" xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android">
<name>IdCardPlugin</name>
<plugin id="cordova-plugin-hand-idcardplugin" version="0.3.1" xmlns="http://apache.org/cordova/ns/plugins/1.0" xmlns:android="http://schemas.android.com/apk/res/android">
<name>IdCardPlugin</name>
<js-module name="IdCardPlugin" src="www/IdCardPlugin.js">
<clobbers target="cordova.plugins.IdCardPlugin" />
</js-module>
<!-- android -->
<platform name="android">
<!-- 业务类指定 -->
<config-file target="res/xml/config.xml" parent="/*">
<feature name="IdCardIdentifyPlugin">
<param name="android-package" value="com.xg.idcard.IdCardIdentifyPlugin"/>
</feature>
</config-file>
<config-file target="config.xml" parent="/*">
<!-- QSign 支持的最低 SDK 版本是 21 -->
<preference name="android-minSdkVersion" value="21"/>
</config-file>
<!-- 需要的android权限 -->
<config-file target="AndroidManifest.xml" parent="/*">
<uses-permission android:name="android.permission.CAMERA"/>
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest/application">
<activity android:name="com.qsign.face.LivenessDetectActivity"/>
</config-file>
<!-- arr引用 -->
<resource-file src="src/android/lib/jsgzsdk.aar" target="libs/jsgzsdk.aar" />
<framework src="src/android/lib/idCard.gradle" custom="true" type="gradleReference" />
<source-file src="src/android/java/IdCardIdentifyPlugin.java" target-dir="src/com/xg/idcard/" />
<source-file src="src/android/lib/com.xcmg.app.dev-license.qsign-android" target-dir="assets/" />
<source-file src="src/android/lib/com.xcmg.app-license.qsign-android" target-dir="assets/" />
</platform>
<platform name="ios">
<config-file parent="/*" target="config.xml">
<feature name="IdCardIdentifyPlugin">
<param name="ios-package" value="IdCardIdentifyCordova"/>
</feature>
</config-file>
<!-- 第三方库依赖 -->
<config-file target="*-Info.plist" parent="NSCameraUsageDescription">
<string>亲,我们需要访问您的相机,用于拍摄人脸、身份证等照片</string>
</config-file>
<config-file target="*-Info.plist" parent="NSFaceIDUsageDescription">
<string>需要设备访问Face ID,用于校验权限</string>
</config-file>
<config-file target="*-Info.plist" parent="NSMicrophoneUsageDescription">
<string>亲,我们需要访问您的麦克风,用于录制视频</string>
</config-file>
<config-file target="*-Info.plist" parent="NSPhotoLibraryUsageDescription">
<string>亲,我们需要访问您的相册,用于提供图片素材</string>
</config-file>
<!-- <config-file target="*-Info.plist" parent="NSPhotoLibraryAddUsageDescription">
<string>亲,我们需要访问您的相册,用于提供图片素材</string>
</config-file> -->
<header-file src="src/ios/IdCardIdentifyCordova.h" target-dir="."/>
<source-file src="src/ios/IdCardIdentifyCordova.m" target-dir="."/>
<!-- <framework src="CoreBluetooth.framework" weak="true"/> -->
<framework src="src/ios/QsignSDK/QsignFaceSDK.framework" custom="true" embed="true" />
<framework src="src/ios/QsignSDK/QsignNotarySDK.framework" custom="true" embed="true"/>
<framework src="src/ios/QsignSDK/QsignSafeSDK.framework" custom="true" embed="true" />
<!-- <source-file src="src/ios/QsignSDK/com.xcmg.app-license.qsign-ios" target-dir="."/>
<source-file src="src/ios/QsignSDK/com.xcmg.app.dev-license.qsign-ios" target-dir="."/> -->
<resource-file src="src/ios/QsignSDK/com.xcmg.app-license.qsign-ios" target-dir="res/com.xcmg.app-license.qsign-ios"/>
<resource-file src="src/ios/QsignSDK/com.xcmg.app.dev-license.qsign-ios" target-dir="res/om.xcmg.app.dev-license.qsign-ios"/>
<resource-file src="src/ios/QsignSDK/com.cn.weslink.qsign.jsgzdemo-license.qsign-ios" target-dir="res/om.xcmg.app.dev-license.qsign-ios"/>
<js-module name="IdCardPlugin" src="www/IdCardPlugin.js">
<clobbers target="cordova.plugins.IdCardPlugin" />
</js-module>
<!-- android -->
<platform name="android">
<!-- 业务类指定 -->
<config-file target="res/xml/config.xml" parent="/*">
<feature name="IdCardIdentifyPlugin">
<param name="android-package" value="com.xg.idcard.IdCardIdentifyPlugin"/>
</feature>
</config-file>
<!-- 需要的android权限 -->
<config-file target="AndroidManifest.xml" parent="/*">
<uses-permission android:name="android.permission.CAMERA"/>
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
</config-file>
<config-file target="AndroidManifest.xml" parent="/manifest/application">
<activity android:name="com.qsign.face.LivenessDetectActivity"/>
</config-file>
<!-- arr引用 -->
<resource-file src="src/android/lib/jsgzsdk.aar" target="libs/jsgzsdk.aar" />
<framework src="src/android/lib/idCard.gradle" custom="true" type="gradleReference" />
<source-file src="src/android/java/IdCardIdentifyPlugin.java" target-dir="src/com/xg/idcard/" />
<source-file src="src/android/lib/com.xcmg.app.dev-license.qsign-android" target-dir="assets/" />
<source-file src="src/android/lib/com.xcmg.app-license.qsign-android" target-dir="assets/" />
</platform>
<!-- 3.0 4 required cordova 6.4.0
<framework src="src/ios/AFNetworking.framework" custom="true" embed="true" />
-->
<!-- 使用热更新插件中的 AFNetworkingFramwork.framework -->
<!-- 当单独使用时 放开 以下内容 -->
</platform>
</plugin>
This diff is collapsed.
repositories{
jcenter()
flatDir {
dirs 'libs'
}
}
dependencies {
compile(name:"jsgzsdk",ext: 'aar')
implementation 'com.android.support:appcompat-v7:28.+'
//必须添加如下依赖!!!
implementation 'com.android.support:recyclerview-v7:28.+'
implementation 'com.google.code.gson:gson:2.8.0'
implementation 'com.alibaba:fastjson:1.2.31'
implementation 'com.lzy.net:okgo:3.0.4'
implementation ('com.github.bumptech.glide:glide:4.8.0'){
exclude group:"com.android.support"
}
implementation "com.android.support:exifinterface:28.+"
implementation 'com.otaliastudios:cameraview:1.5.0'
}
android {
packagingOptions {
exclude 'META-INF/NOTICE'
exclude 'META-INF/LICENSE'
}
aaptOptions {
noCompress "dat"
}
}
configurations.all {
resolutionStrategy.eachDependency { DependencyResolveDetails details ->
def requested = details.requested
if (requested.group == 'com.android.support') {
if (!requested.name.startsWith("multidex")) {
details.useVersion '28.0.0'
}
}
}
}
\ No newline at end of file
repositories{
jcenter()
flatDir {
dirs 'libs'
}
}
dependencies {
compile(name:"jsgzsdk",ext: 'aar')
//必须添加如下依赖!!!
implementation 'com.android.support:appcompat-v7:28.+'
implementation 'com.android.support:support-v4:28.+'
implementation 'com.android.support:recyclerview-v7:28.+'
implementation 'com.android.support:design:28.+'
implementation 'com.google.code.gson:gson:2.8.0'
implementation 'com.alibaba:fastjson:1.2.31'
implementation 'com.tencent:mmkv:1.2.14'
implementation 'com.getkeepsafe.relinker:relinker:1.4.3'
implementation 'com.lzy.net:okgo:3.0.4'
implementation ('com.github.bumptech.glide:glide:4.8.0'){
exclude group:"com.android.support"
}
implementation 'com.github.lzyzsd:jsbridge:1.0.4'
implementation 'com.otaliastudios:cameraview:1.6.1'
implementation "com.android.support:exifinterface:28.+"
}
android {
packagingOptions {
exclude 'META-INF/NOTICE'
exclude 'META-INF/LICENSE'
}
aaptOptions {
noCompress "dat"
}
}
configurations.all {
resolutionStrategy.eachDependency { DependencyResolveDetails details ->
def requested = details.requested
if (requested.group == 'com.android.support') {
if (!requested.name.startsWith("multidex")) {
details.useVersion '28.0.0'
}
}
}
}
This diff is collapsed.
......@@ -60,14 +60,14 @@ export default {
// window.localStorage.setItem('check_list', this.checkList)
let list = JSON.parse(window.localStorage.getItem('check_list'))
console.log('!@#', list)
if (from.name === 'ElectronicSign') {
/* if (from.name === 'ElectronicSign') {
let url = process.env.basePath + 'batch_check_sign'
let data_class = vm.$route.query.name === 'confirmList' ? 'LEASE_ITEM' : 'PRJ_CONFIRM'
let param = { 'master': list.map(item => ({ confirm_id: item.confirm_id, data_class, content_id: item.content_id })) }
hlsPopup.showLoading('请稍候')
let res = await vm.$post(url, param)
vm.hlsPopup.hideLoading()
}
} */
})
},
methods: {
......@@ -96,7 +96,7 @@ export default {
ele.checked = !checkList.includes(ele.content_id)
return ele
})
console.log(this.list);
console.log(this.list)
} else {
hlsPopup.showLongCenter(res.message)
}
......@@ -157,10 +157,16 @@ export default {
this.hlsPopup.hideLoading()
console.log('batch_sign接口返回信息:', res)
if (res.result === 'S' && res.info.msg === 'success') {
this.$router.push({
name: 'ElectronicSign',
params: { url: res.info.data.url },
})
cordova.plugins.IdCardPlugin.webSignNotary(
function (suc) {
hlsPopup.showLongCenter(suc.message)
this.checkSigned()
},
function (reason) {
hlsPopup.showLongCenter('错误信息:' + '【' + reason.code + '】' + reason.message)
},
res.info.data.url
)
} else {
hlsPopup.showLongCenter(res.message || res.info.msg)
}
......@@ -180,23 +186,20 @@ export default {
hlsPopup.hideLoading()
if (res.result === 'S') {
let data = res.lists[0]
cordova.plugins.IdCardPlugin.faceContrast({ 'idNum': data.id_card_no, 'idName': data.bp_name }, function (suc) {
let success = JSON.parse(suc)
if (success.code === 1) {
let filePath = JSON.stringify(success.message, '\\', null)
filePath = 'file:\/\/' + filePath.replace('\"', '')
filePath = filePath.substr(0, filePath.length - 1)
// console.log('filePath ==== ' + filePath)
// 回调成功上传图片
vm.uploadImg(filePath)
vm.signContact()
} else {
vm.hlsPopup.showLongCenter('认证失败,请将脸部完整露出再重试!')
}
}, function (reason) {
let error = JSON.parse(reason)
vm.hlsPopup.showLongCenter('认证失败: ' + error.message)
})
cordova.plugins.IdCardPlugin.qsignLivenessNotary(
function (suc) {
if (suc.code === 'SUCCESS') {
vm.signContact()
} else {
hlsPopup.showLongCenter(suc.message)
}
},
function (reason) {
hlsPopup.showLongCenter('错误信息:' + '【' + reason.code + '】' + reason.message)
},
data.bp_name,
data.id_card_no,
)
} else {
vm.hlsPopup.showLongCenter(res.message)
}
......
......@@ -284,25 +284,6 @@ export default {
}
vm.confirm_id = window.localStorage.getItem('confirm_id')
vm.project_id = window.localStorage.getItem('project_id')
if (from.name === 'ElectronicSign') {
let url = process.env.basePath + 'sign_check'
let param = {
confirm_id: vm.confirm_id,
data_class: 'LEASE_ITEM',
content_id: vm.content_id,
}
vm.hlsPopup.showLoading('请稍候!')
let res = await vm.hlsHttp.post(url, param)
vm.hlsPopup.hideLoading()
// if (res.result === 'S') {
// vm.signFlag = true
// await vm.confirm()
// } else {
// vm.signMsg = res.message
// vm.signFlag = false
// }
}
// if (from.name === 'ContractRepayPlan') {
vm.signCheck()
vm.getDetail()
......@@ -457,23 +438,20 @@ export default {
hlsPopup.hideLoading()
if (res.result === 'S') {
let data = res.lists[0]
cordova.plugins.IdCardPlugin.faceContrast({'idNum': data.id_card_no, 'idName': data.bp_name}, function (suc) {
let success = JSON.parse(suc)
if (success.code === 1) {
let filePath = JSON.stringify(success.message, '\\', null)
filePath = 'file:\/\/' + filePath.replace('\"', '')
filePath = filePath.substr(0, filePath.length - 1)
console.log('filePath ==== ' + filePath)
// 回调成功上传图片
vm.uploadImg(filePath)
vm.goElectronicSign()
} else {
vm.hlsPopup.showLongCenter('认证失败,请重试!')
}
}, function (reason) {
let error = JSON.parse(reason)
vm.hlsPopup.showLongCenter('认证失败: ' + error.message)
})
cordova.plugins.IdCardPlugin.qsignLivenessNotary(
async function (suc) {
if (suc.code === 'SUCCESS') {
vm.goElectronicSign()
} else {
hlsPopup.showLongCenter(suc.message)
}
},
function (reason) {
hlsPopup.showLongCenter('错误信息:' + '【' + reason.code + '】' + reason.message)
},
data.bp_name,
data.id_card_no
)
} else {
vm.hlsPopup.showLongCenter(res.message)
}
......@@ -514,12 +492,16 @@ export default {
vm.hlsHttp.post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
if (res.info.msg === 'success') {
vm.$router.push({
name: 'ElectronicSign',
params: {
url: res.info.data.url,
cordova.plugins.IdCardPlugin.webSignNotary(
function (suc) {
hlsPopup.showLongCenter(suc.message)
vm.signCheck()
},
function (reason) {
hlsPopup.showLongCenter('错误信息:' + '【' + reason.code + '】' + reason.message)
},
})
res.info.data.url
)
} else {
vm.hlsPopup.showLongCenter(res.info.msg)
}
......
......@@ -158,12 +158,15 @@ export default {
this.hlsPopup.hideLoading()
// console.log(res)
if (res.result.info.code === 0 && res.result.code !== 700) {
vm.$router.push({
name: 'ElectronicSign',
params: {
url: res.result.info.data.authUrl,
cordova.plugins.IdCardPlugin.webSignNotary(
function (suc) {
hlsPopup.showLongCenter(suc.message)
},
})
function (reason) {
hlsPopup.showLongCenter('错误信息:' + '【' + reason.code + '】' + reason.message)
},
res.result.info.data.authUrl
)
} else if (res.result.code === 700) {
hlsPopup.showLongCenter(res.result.msg)
} else {
......
......@@ -146,7 +146,7 @@
<img src="@/assets/functionCenter/in@2x.png" alt="">
</div>
</div>
<!-- <div class="info-content">
<div class="info-content">
<div class="add-name">
<img src="@/assets/functionCenter/con-que@2x.png" alt="">
<div class="name-title">逾期信息查询</div>
......@@ -155,15 +155,15 @@
<img src="@/assets/functionCenter/in@2x.png" alt="">
</div>
</div>
<div class="info-content">
<div class="add-name">
<img src="@/assets/functionCenter/con-que@2x.png" alt="">
<div class="name-title">延期申请</div>
</div>
<div class="add-content" @click="goOvertimeApply">
<img src="@/assets/functionCenter/in@2x.png" alt="">
</div>
</div> -->
<!-- <div class="info-content">-->
<!-- <div class="add-name">-->
<!-- <img src="@/assets/functionCenter/con-que@2x.png" alt="">-->
<!-- <div class="name-title">延期申请</div>-->
<!-- </div>-->
<!-- <div class="add-content" @click="goOvertimeApply">-->
<!-- <img src="@/assets/functionCenter/in@2x.png" alt="">-->
<!-- </div>-->
<!-- </div>-->
</div>
</h-content>
......
......@@ -98,54 +98,177 @@ export default {
async face (item) {
let vm = this
let register = ['NP_NO', 'ORG_NO', 'ORG_L_NO', 'ORG_AUTH_NO']
if (register.includes(item.bp_identity)) {
// 人脸识别之前要确认是否已经在别的渠道已经绑定。
let res = await vm.getNpCertificationUrl(item)
if (res) {
hlsPopup.showLongCenter(item.bp_identity === 'ORG_NO' ? '请联系业务人员协助认证' : '认证已通过')
return vm.getList()
}
vm.showPopupList(item)
},
// 正式进行人脸识别
let url = process.env.basePath + 'bp_query'
let param = { bp_id: item.bp_id }
hlsPopup.showLoading('请稍候')
vm.hlsHttp.post(url, param).then((result) => {
hlsPopup.hideLoading()
if (result.result === 'S') {
let data = result.lists[0]
cordova.plugins.IdCardPlugin.idCardIdentify(
{
idNum: data.id_card_no,
idName: data.bp_name,
phoneNum: window.localStorage.user_phone,
},
async function (suc) {
let success = JSON.parse(suc)
if (success.code === 1) {
let res = await vm.getNpCertificationUrl(item)
hlsPopup.showLongCenter(res ? '绑定成功!' : '绑定失败!')
if (res) vm.getList()
}
},
function (reason) {
let error = JSON.parse(reason)
vm.hlsPopup.showLongCenter('认证失败: ' + error.message)
}
)
showPopupList (item) {
let vm = this
let popList = [{
code: 'AUTH',
code_name: '个人实名认证/企业认证',
}, {
code: 'FORGET',
code_name: '忘记PIN码',
}, {
code: 'QUERY',
code_name: '查询是否认证', // 查询sdk里是否有token和用户特征值
}, {
code: 'ACTIVE',
code_name: '人工审核激活账户',
}, {
code: 'CLEAN',
code_name: '清除缓存',
}]
vm.hlsPopup.selectList({
list: popList,
code: 'code',
object: {},
returnItem: (index, obj) => {
vm.goAuthManage(obj.code, item)
},
})
},
goAuthManage (code, item) {
debugger
let vm = this
if (code === 'AUTH') {
if (item.bp_class === 'NP') {
vm.registerNotary(item)
} else {
vm.orgRegisterNotary(item)
}
} else if (code === 'FORGET') {
vm.forgetPINNotary(item)
} else if (code === 'QUERY') {
if (item.bp_class === 'NP') {
vm.haveUser(item)
} else {
this.hlsPopup.showLongCenter('企业用户无需查询')
}
} else if (code === 'ACTIVE') {
if (item.bp_class === 'NP') {
vm.activeUserNotary(item)
} else {
this.hlsPopup.showLongCenter('企业用户无需查询')
}
} else if (code === 'CLEAN') {
vm.clearUser(item)
}
},
registerNotary (item) {
let vm = this
cordova.plugins.IdCardPlugin.registerNotary(
function (suc) {
hlsPopup.showLongCenter(suc.message)
if (suc.code === 'NORMALREGISTER') {
vm.updateSigningCode(item.bp_id, 'Y', '')
} else if (suc.code === 'PERSONSERVICE') {
vm.updateSigningCode(item.bp_id, 'N', '')
}
},
function (reason) {
hlsPopup.showLongCenter('错误信息:' + '【' + reason.code + '】' + reason.message)
},
item.id_card_no,
item.bp_name,
item.id_card_no,
true
)
},
orgRegisterNotary (item) {
this.getOrgCertificationUrl(item.bp_id)
},
forgetPINNotary (item) {
let vm = this
cordova.plugins.IdCardPlugin.forgetPINNotary(
function (suc) {
hlsPopup.showLongCenter(suc.message)
if (suc.code === 'SUCCESS') {
vm.updateSigningCode(item.bp_id, 'Y', '')
} else {
vm.updateSigningCode(item.bp_id, 'N', '')
}
},
function (reason) {
hlsPopup.showLongCenter('错误信息:' + '【' + reason.code + '】' + reason.message)
}
)
//
},
haveUser (item) {
cordova.plugins.IdCardPlugin.haveUser(
function (suc) {
if (suc.code === 'SUCCESS') {
if (suc.data.haveUser) {
hlsPopup.showLongCenter('已认证')
} else {
hlsPopup.showLongCenter('未认证')
}
} else {
hlsPopup.showLongCenter(suc.message)
}
},
function (reason) {
hlsPopup.showLongCenter('错误信息:' + '【' + reason.code + '】' + reason.message)
},
item.id_card_no
)
},
activeUserNotary (item) {
let vm = this
cordova.plugins.IdCardPlugin.activeUserNotary(
function (suc) {
if (suc.code === 'SUCCESS') {
vm.updateSigningCode(item.bp_id, 'Y', '')
} else {
vm.hlsPopup.showLongCenter(result.message)
hlsPopup.showLongCenter(suc.message)
}
},
function (reason) {
hlsPopup.showLongCenter('错误信息:' + '【' + reason.code + '】' + reason.message)
},
item.id_card_no
)
},
clearUser (item) {
cordova.plugins.IdCardPlugin.clearUser(
function (suc) {
if (suc.code === 'SUCCESS') {
hlsPopup.showLongCenter(suc.message)
let vm = this
vm.updateSigningCode(item.bp_id, 'N', '')
}
})
}
)
},
async getOrgCertificationUrl (bp_id) {
let url = process.env.basePath + 'auth_company_noauth'
let param = {
'bp_id': bp_id,
}
hlsPopup.showLoading('请稍候')
let res = await this.$post(url, param)
this.hlsPopup.hideLoading()
if (res.result.info.code === 0 && res.result.code !== 700) {
cordova.plugins.IdCardPlugin.webSignNotary(
function (suc) {
hlsPopup.showLongCenter(suc.message)
},
function (reason) {
hlsPopup.showLongCenter('错误信息:' + '【' + reason.code + '】' + reason.message)
},
res.result.info.data.authUrl
)
} else if (res.result.code === 700) {
hlsPopup.showLongCenter(res.result.msg)
} else {
hlsPopup.showLongCenter('认证已通过')
hlsPopup.showLongCenter(res.result.info.msg)
}
},
// 获取个人认证url
async getNpCertificationUrl (item) {
let vm = this
let url = $config.basePath + 'auth_user_sign'
let url = process.env.basePath + 'auth_user_sign'
let param = {
phone: window.localStorage.user_phone,
bp_id: item.bp_id,
......@@ -154,17 +277,28 @@ export default {
let res = await vm.$post(url, param)
hlsPopup.hideLoading()
if (res.info.code === 0 && res.info.data.authUrl) {
// hlsPopup.showLongCenter('绑定失败!')
return false
hlsPopup.showLongCenter('电子签OPENID获取失败!')
} else if (res.info.code === 0 && res.info.data.openId) {
// hlsPopup.showLongCenter('绑定成功!')
// vm.getList()
return true
hlsPopup.showLongCenter('电子签OPENID获取成功!')
} else {
hlsPopup.showLongCenter(res.info.msg)
}
},
updateSigningCode (bp_id, flag, code) {
let vm = this
let url = process.env.basePath + 'update_signing_code'
let param = {
bp_id: bp_id,
signing_code_flag: flag,
signing_code: code,
}
let res = vm.$post(url, param)
if (res.result === 'S') {
} else {
hlsPopup.showLongCenter(res.info.message)
}
},
// 针对 不同的 状态 去操作
doStatus (item) {
if (item.bp_type === 'MANAGER') {
......@@ -254,14 +388,14 @@ export default {
// 自己添加认证文字
let register = {
NP_NO: '个人待认证',
NP_YES: '个人认证通过',
ORG_YES: '企业认证通过',
ORG_NO: '企业待认证',
ORG_L_NO: '法人待认证',
ORG_L_YES: '法人认证通过',
ORG_AUTH_NO: '授权人待认证',
ORG_AUTH_YES: '授权人认证通过',
NP_NO: '电签认证',
NP_YES: '查询认证状态',
ORG_YES: '查询认证状态',
ORG_NO: '电签认证',
ORG_L_NO: '电签认证',
ORG_L_YES: '查询认证状态',
ORG_AUTH_NO: '电签认证',
ORG_AUTH_YES: '查询认证状态',
}
query.lists = query.lists.map(item => {
......
......@@ -36,15 +36,15 @@
</div>
<div class="center">
<div><span>合同履约情况</span>
<p>{{ item.bp_name }}</p>
<p>{{ item.con_overdue_status }}</p>
</div>
<div><span>逾期租金(元)</span>
<p>{{ item.int_rate_n }}</p>
<p>{{ parseFloat(item.finance_amount).toFixed(2) | currency }}</p>
</div>
<div><span>逾期利息(元)</span>
<p>{{ item.lease_times }}</p>
<p>{{ parseFloat(item.finance_amount).toFixed(2) | currency }}</p>
</div>
<div><span>逾期天数(元)</span>
<div><span>逾期天数</span>
<p class="bold">{{ parseFloat(item.finance_amount).toFixed(2) | currency }}</p>
</div>
......@@ -215,11 +215,11 @@ export default {
}
},
// 明细
toRepayDetail(val) {
toRepayDetail (val) {
this.$router.push({
name: 'overTimeQueryDetail',
params: {
project_id: val.project_id,
},
})
},
......
This diff is collapsed.
......@@ -234,7 +234,30 @@ export default {
hlsPopup.hideLoading()
if (result.result === 'S') {
let data = result.lists[0]
cordova.plugins.IdCardPlugin.idCardIdentify(
cordova.plugins.IdCardPlugin.registerNotary(
async function (suc) {
console.log(suc)
let success = JSON.parse(suc)
let successString = JSON.stringify(suc)
console.log(success)
console.log(successString)
// 成功后需要回调hls bp master 表,更新字段 是否签署码设置
vm.updateSigningCode(JSON.parse(window.localStorage.getItem('handleUser')).bp_id, 'Y', '')
vm.getNpCertificationUrl()
},
function (reason) {
console.log(reason)
let error = JSON.parse(reason)
let errorString = JSON.stringify(reason)
console.log(error)
console.log(errorString)
},
data.id_card_no,
data.bp_name,
true
)
/* cordova.plugins.IdCardPlugin.idCardIdentify(
{
idNum: data.id_card_no,
idName: data.bp_name,
......@@ -250,7 +273,7 @@ export default {
let error = JSON.parse(reason)
vm.hlsPopup.showLongCenter('认证失败: ' + error.message)
}
)
) */
} else {
vm.hlsPopup.showLongCenter(result.message)
}
......@@ -360,6 +383,21 @@ export default {
},
})
},
updateSigningCode (bp_id, flag, code) {
let vm = this
let url = $config.basePath + 'update_signing_code'
let param = {
bp_id: bp_id,
signing_code_flag: flag,
signing_code: code,
}
let res = vm.$post(url, param)
if (res.result === 'S') {
} else {
hlsPopup.showLongCenter(res.info.msg)
}
},
selectType (e) {
if (e === '0') {
return '未知类型'
......
......@@ -313,7 +313,30 @@ export default {
hlsPopup.hideLoading()
if (result.result === 'S') {
let data = result.lists[0]
cordova.plugins.IdCardPlugin.idCardIdentify(
cordova.plugins.IdCardPlugin.registerNotary(
async function (suc) {
console.log(suc)
let success = JSON.parse(suc)
let successString = JSON.stringify(suc)
console.log(success)
console.log(successString)
// 成功后需要回调hls bp master 表,更新字段 是否签署码设置
vm.updateSigningCode(JSON.parse(window.localStorage.getItem('handleUser')).bp_id, 'Y', '')
vm.getNpCertificationUrl()
},
function (reason) {
console.log(reason)
let error = JSON.parse(reason)
let errorString = JSON.stringify(reason)
console.log(error)
console.log(errorString)
},
data.id_card_no,
data.bp_name,
true
)
/* cordova.plugins.IdCardPlugin.idCardIdentify(
{
idNum: data.id_card_no,
idName: data.bp_name,
......@@ -329,7 +352,7 @@ export default {
let error = JSON.parse(reason)
vm.hlsPopup.showLongCenter('认证失败: ' + error.message)
}
)
) */
} else {
vm.hlsPopup.showLongCenter(result.message)
}
......@@ -400,6 +423,21 @@ export default {
hlsPopup.showLongCenter(res.info.msg)
}
},
updateSigningCode (bp_id, flag, code) {
let vm = this
let url = $config.basePath + 'update_signing_code'
let param = {
bp_id: bp_id,
signing_code_flag: flag,
signing_code: code,
}
let res = vm.$post(url, param)
if (res.result === 'S') {
} else {
hlsPopup.showLongCenter(res.info.msg)
}
},
// ocr识别入口
ocrShow (ocrType, type) {
let vm = this
......
......@@ -162,6 +162,7 @@ const customerAccessDetail = resolve => require.ensure([], () => { resolve(requi
// 逾期查询
const overTimeQueryList = resolve => require.ensure([], () => { resolve(require('@/pages/overTimeQuery/list')) }, 'overTimeQuery')
const overTimeQueryDetail = resolve => require.ensure([], () => { resolve(require('@/pages/overTimeQuery/detail')) }, 'overTimeQuery')
const overTimeQueryPlans = resolve => require.ensure([], () => { resolve(require('@/pages/overTimeQuery/plans')) }, 'overTimeQueryPlans')
const overTimeApplyList = resolve => require.ensure([], () => { resolve(require('@/pages/overTimeApply/list')) }, 'overTimeApply')
const overTimeApplyDetail = resolve => require.ensure([], () => { resolve(require('@/pages/overTimeApply/detail')) }, 'overTimeApply')
......@@ -417,6 +418,12 @@ export default new Router({
path: '/over-time-query-detail',
component: overTimeQueryDetail,
name: 'overTimeQueryDetail',
meta: { keepAlive: true },
},
{
path: '/over-time-query-plans',
component: overTimeQueryPlans,
name: 'overTimeQueryPlans',
meta: { keepAlive: false },
},
{
......
<!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.fb52dd271f35e6cb942abb94eb5f18bb.css rel=stylesheet></head><body><div id=app-box></div><script type=text/javascript src=./static/js/manifest.14a4464888b76cace761.js></script><script type=text/javascript src=./static/js/vendor.6fb9a8a9e3d7464e35f7.js></script><script type=text/javascript src=./static/js/app.3b1fc03cdd88b3c9ea24.js></script></body></html>
\ No newline at end of file
<!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.fb52dd271f35e6cb942abb94eb5f18bb.css rel=stylesheet></head><body><div id=app-box></div><script type=text/javascript src=./static/js/manifest.425c4979827367727cb1.js></script><script type=text/javascript src=./static/js/vendor.fad0fdce13e7e7c16742.js></script><script type=text/javascript src=./static/js/app.72a924c3a2c62793766e.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