diff --git a/src/router/ebiz/serve.js b/src/router/ebiz/serve.js index 08bce5fdb..89b575fb2 100644 --- a/src/router/ebiz/serve.js +++ b/src/router/ebiz/serve.js @@ -4,6 +4,7 @@ const detail = () => import('@/views/ebiz/serve/Detail') const policyList = () => import('@/views/ebiz/serve/PolicyList') const caseApplication = () => import('@/views/ebiz/serve/CaseApplication') const Result = () => import('@/views/ebiz/serve/Result') +const airSign = () => import('@/views/ebiz/serve/AirSign') export default [ { @@ -46,6 +47,16 @@ export default [ index: 4 } }, + { + // 空中签名 + path: '/serve/airSign', + name: 'airSign', + component: airSign, + meta: { + title: '空中签名', + index: 4 + } + }, // 结果页 { path: '/serve/result', diff --git a/src/views/ebiz/serve/AirSign.vue b/src/views/ebiz/serve/AirSign.vue new file mode 100644 index 000000000..ea68e555b --- /dev/null +++ b/src/views/ebiz/serve/AirSign.vue @@ -0,0 +1,120 @@ + + + + + diff --git a/src/views/ebiz/serve/Detail.vue b/src/views/ebiz/serve/Detail.vue index 487f59397..96fbe6a0e 100644 --- a/src/views/ebiz/serve/Detail.vue +++ b/src/views/ebiz/serve/Detail.vue @@ -106,6 +106,17 @@ export default { } }, created() { + setTimeout(() => { + // 右上角的显示 + window.EWebBridge.webCallAppInJs('webview_right_button', { + btns: [ + { + img: this.$assetsUrl + 'images/share@3x.png' + } + ] + }) + }, 1000) + window['appCallBack'] = this.appCallBack // 获取保单详情 this.getPolicyDetail() }, @@ -194,6 +205,20 @@ export default { } }) }, + appCallBack(data) { + if (data.trigger == 'right_button_click') { + EWebBridge.webCallAppInJs('bridge', { + flag: 'share', + extra: { + title: this.wxTitle, + content: '国富人寿保单回执签收', + url: location.origin + '/#/serve/airSign?policyNo=' + localStorage.policyNo + '&token=' + localStorage.token, + // url: 'http://47.96.143.111/#/proposal/exhibition?proposalNo=' + localStorage.orderNo + '&token=' + localStorage.token, + img: this.$assetsUrl + 'images/logo.png' + } + }) + } + }, //根据数据字典 将后端返回的数据渲染到页面中 filterData(dictionary, key, pageData) { dictionary.forEach(item => {