Commit 62d2d548 authored by jiacheng.mao's avatar jiacheng.mao

Merge remote-tracking branch 'origin/ios' into ios

# Conflicts:
#	src/pages/contractInquire/repay-detail.vue
#	src/pages/contractSigning/previewPdf.vue
parents 7e097939 3f9b5462
...@@ -112,4 +112,6 @@ ...@@ -112,4 +112,6 @@
<plugin name="cordova-plugin-splashscreen" spec="5.0.2" /> <plugin name="cordova-plugin-splashscreen" spec="5.0.2" />
<plugin name="ionic-plugin-keyboard" spec="^2.2.1" /> <plugin name="ionic-plugin-keyboard" spec="^2.2.1" />
<engine name="android" spec="~6.2.0" /> <engine name="android" spec="~6.2.0" />
<plugin name="cordova-plugin-ionic-webview" spec="~1.2.1" />
<plugin name="cordova-plugin-inappbrowser" spec="~4.0.0" />
</widget> </widget>
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
module.exports = { module.exports = {
NODE_ENV: '"production"', NODE_ENV: '"production"',
CONFIG_ENV: JSON.stringify(process.env.CONFIG_ENV), CONFIG_ENV: JSON.stringify(process.env.CONFIG_ENV),
debug: true, debug: false,
isMobilePlatform: true, isMobilePlatform: true,
loginPath: '"http://www.xcmgfs.com:8087/oauth/token?client_id=client2&client_secret=secret&grant_type=password&username=appadmin&password=" ', loginPath: '"http://www.xcmgfs.com:8087/oauth/token?client_id=client2&client_secret=secret&grant_type=password&username=appadmin&password=" ',
basePath: '"http://www.xcmgfs.com:8087/r/api/interface?sysName=XCMG_PROD&apiName="', basePath: '"http://www.xcmgfs.com:8087/r/api/interface?sysName=XCMG_PROD&apiName="',
......
...@@ -105,6 +105,9 @@ ...@@ -105,6 +105,9 @@
"ios", "ios",
"android" "android"
], ],
"plugins": {} "plugins": {
"cordova-plugin-inappbrowser": {},
"cordova-plugin-ionic-webview": {}
}
} }
} }
\ No newline at end of file
...@@ -177,8 +177,8 @@ ...@@ -177,8 +177,8 @@
}, },
"cordova-plugin-ionic-webview": { "cordova-plugin-ionic-webview": {
"source": { "source": {
"type": "local", "type": "registry",
"path": "/Volumes/work/APP/xugon/cordova-plugin-ionic-webview" "id": "cordova-plugin-ionic-webview@2.0.0"
}, },
"is_top_level": true, "is_top_level": true,
"variables": {} "variables": {}
......
...@@ -38,12 +38,6 @@ ...@@ -38,12 +38,6 @@
"cordova-plugin-image-picker": { "cordova-plugin-image-picker": {
"PACKAGE_NAME": "com.xcmg.app" "PACKAGE_NAME": "com.xcmg.app"
}, },
"cordova-plugin-inappbrowser": {
"PACKAGE_NAME": "com.xcmg.app"
},
"cordova-plugin-ionic-webview": {
"PACKAGE_NAME": "com.xcmg.app"
},
"cordova-plugin-jcore": { "cordova-plugin-jcore": {
"PACKAGE_NAME": "com.xcmg.app" "PACKAGE_NAME": "com.xcmg.app"
}, },
...@@ -75,6 +69,12 @@ ...@@ -75,6 +69,12 @@
"jpush-phonegap-plugin": { "jpush-phonegap-plugin": {
"APP_KEY": "bef4fd44dcf54b79b8ab27c3", "APP_KEY": "bef4fd44dcf54b79b8ab27c3",
"PACKAGE_NAME": "com.xcmg.app" "PACKAGE_NAME": "com.xcmg.app"
},
"cordova-plugin-ionic-webview": {
"PACKAGE_NAME": "$(PRODUCT_BUNDLE_IDENTIFIER)"
},
"cordova-plugin-inappbrowser": {
"PACKAGE_NAME": "$(PRODUCT_BUNDLE_IDENTIFIER)"
} }
}, },
"dependent_plugins": { "dependent_plugins": {
...@@ -101,4 +101,4 @@ ...@@ -101,4 +101,4 @@
"PACKAGE_NAME": "com.xcmg.app" "PACKAGE_NAME": "com.xcmg.app"
} }
} }
} }
\ No newline at end of file
...@@ -128,9 +128,9 @@ let backButtonPressedOnceToExit ...@@ -128,9 +128,9 @@ let backButtonPressedOnceToExit
const errorHandler = (error, vm) => { const errorHandler = (error, vm) => {
console.error(error.stack) console.error(error.stack)
hlsHttp.post('http://hlsapp.hand-china.com/core/public/app/error', { /* hlsHttp.post('http://hlsapp.hand-china.com/core/public/app/error', {
'error': error.stack, 'error': error.stack,
}) }) */
} }
Vue.config.errorHandler = errorHandler Vue.config.errorHandler = errorHandler
......
...@@ -41,6 +41,8 @@ ...@@ -41,6 +41,8 @@
<div class="both-button"> <div class="both-button">
<div class="button submit" @click="access">登录</div> <div class="button submit" @click="access">登录</div>
<div class="button submit" @click="goHome">游客体验</div> <div class="button submit" @click="goHome">游客体验</div>
<!--<div class="button submit" @click="faceContrast">游客体验</div>
<div class="button submit" @click="openHttps">游客体验</div>-->
</div> </div>
</div> </div>
...@@ -319,6 +321,10 @@ export default { ...@@ -319,6 +321,10 @@ export default {
vm.hlsPopup.showLongCenter('认证失败: ' + error.message) vm.hlsPopup.showLongCenter('认证失败: ' + error.message)
}) })
}, },
openHttps () {
cordova.InAppBrowser.open('https://www.baidu.com/', '_blank', 'location=yes')
},
}, },
} }
</script> </script>
......
...@@ -727,28 +727,36 @@ export default { ...@@ -727,28 +727,36 @@ export default {
}) })
switch (cdd_item) { switch (cdd_item) {
case 'NP_ID_CARD_F': // 承租人身份证正面 case 'NP_ID_CARD_F': // 承租人身份证正面
if (!vm.idCardFrontUrlFlag) { if (res.lists.length) {
vm.idCardFront = res.lists[0].url if (!vm.idCardFrontUrlFlag) {
vm.idCardFront = res.lists[0].url
}
vm.idCardFrontAttachmentId = res.lists[0].attachment_id
} }
vm.idCardFrontAttachmentId = res.lists[0].attachment_id
break break
case 'NP_ID_CARD_B': // 承租人身份证背面 case 'NP_ID_CARD_B': // 承租人身份证背面
if (!vm.idCardBackUrlFlag) { if (res.lists.length) {
vm.idCardBack = res.lists[0].url if (!vm.idCardBackUrlFlag) {
vm.idCardBack = res.lists[0].url
}
vm.idCardBackAttachmentId = res.lists[0].attachment_id
} }
vm.idCardBackAttachmentId = res.lists[0].attachment_id
break break
case 'MATE_ID_CARD_F': // 配偶身份证正面 case 'MATE_ID_CARD_F': // 配偶身份证正面
if (!vm.idCardFrontSpUrlFlag) { if (res.lists.length) {
vm.idCardFrontSp = res.lists[0].url if (!vm.idCardFrontSpUrlFlag) {
vm.idCardFrontSp = res.lists[0].url
}
vm.idCardFrontSpAttachmentId = res.lists[0].attachment_id
} }
vm.idCardFrontSpAttachmentId = res.lists[0].attachment_id
break break
case 'MATE_ID_CARD_B': // 配偶身份证背面 case 'MATE_ID_CARD_B': // 配偶身份证背面
if (!vm.idCardBackSpUrlFlag) { if (res.lists.length) {
vm.idCardBackSp = res.lists[0].url if (!vm.idCardBackSpUrlFlag) {
vm.idCardBackSp = res.lists[0].url
}
vm.idCardBackSpAttachmentId = res.lists[0].attachment_id
} }
vm.idCardBackSpAttachmentId = res.lists[0].attachment_id
break break
default: default:
vm.dowload_list.push(res.lists) vm.dowload_list.push(res.lists)
...@@ -1384,26 +1392,26 @@ export default { ...@@ -1384,26 +1392,26 @@ export default {
let result = res.result.words_result let result = res.result.words_result
if (cardType === 'idCard') { if (cardType === 'idCard') {
vm.baseInfo.id_card_date_from = vm.timeFormat(result.签发日期.words) vm.baseInfo.id_card_date_from = vm.timeFormat(result.签发日期.words)
if(result.失效日期.words.indexOf('长期') != -1){ if (result.失效日期.words.indexOf('长期') != -1) {
hlsPopup.showPopup({ hlsPopup.showPopup({
title: '提示', title: '提示',
content: `检测到您的身份证为长期有效,系统自动置为【9999-12-31】`, content: `检测到您的身份证为长期有效,系统自动置为【9999-12-31】`,
onConfirm: () => {}, onConfirm: () => {},
}) })
vm.baseInfo.id_card_date_to = '9999-12-31' vm.baseInfo.id_card_date_to = '9999-12-31'
}else{ } else {
vm.baseInfo.id_card_date_to = vm.timeFormat(result.失效日期.words) vm.baseInfo.id_card_date_to = vm.timeFormat(result.失效日期.words)
} }
} else { } else {
vm.baseInfo.id_card_date_from_sp = vm.timeFormat(result.签发日期.words) vm.baseInfo.id_card_date_from_sp = vm.timeFormat(result.签发日期.words)
if(result.失效日期.words.indexOf('长期') != -1){ if (result.失效日期.words.indexOf('长期') != -1) {
hlsPopup.showPopup({ hlsPopup.showPopup({
title: '提示', title: '提示',
content: `检测到您的身份证为长期有效,系统自动置为【9999-12-31】`, content: `检测到您的身份证为长期有效,系统自动置为【9999-12-31】`,
onConfirm: () => {}, onConfirm: () => {},
}) })
vm.baseInfo.id_card_date_to_sp = '9999-12-31' vm.baseInfo.id_card_date_to_sp = '9999-12-31'
}else{ } else {
vm.baseInfo.id_card_date_to_sp = vm.timeFormat(result.失效日期.words) vm.baseInfo.id_card_date_to_sp = vm.timeFormat(result.失效日期.words)
} }
} }
......
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