增加人脸识别

This commit is contained in:
shishengjie
2019-10-24 11:03:34 +08:00
parent 56ec925911
commit 89973f9186

View File

@@ -7,8 +7,8 @@
<van-cell title="保单号" :value="OrderInfoDTO.contNo" /> <van-cell title="保单号" :value="OrderInfoDTO.contNo" />
<van-cell title="生效日期" :value="OrderInfoDTO.cvaliDate" /> <van-cell title="生效日期" :value="OrderInfoDTO.cvaliDate" />
<van-cell title="保单状态" :value="OrderInfoDTO.contState" /> <van-cell title="保单状态" :value="OrderInfoDTO.contState" />
<!-- <van-cell title="签收状态" :value="OrderInfoDTO.orderStatusText" /> --> <van-cell title="签收状态" :value="OrderInfoDTO.orderStatusText" />
<!-- <van-cell v-if="OrderInfoDTO.receiptDate != null && OrderInfoDTO.receiptDate != ''" title="签收日期" :value="OrderInfoDTO.receiptDate" /> --> <van-cell v-if="OrderInfoDTO.receiptDate != null && OrderInfoDTO.receiptDate != ''" title="签收日期" :value="OrderInfoDTO.receiptDate" />
</van-cell-group> </van-cell-group>
</van-collapse-item> </van-collapse-item>
@@ -77,9 +77,9 @@
</div> </div>
</van-collapse> </van-collapse>
<!-- 2019-09-27 版上线不含回执签收 marked by panglizong on 2019-09-26 --> <!-- 2019-09-27 版上线不含回执签收 marked by panglizong on 2019-09-26 -->
<!-- <div class="bottom-btn bg-white" > <div class="bottom-btn bg-white">
<van-button type="danger" size="large" @click="next" v-if="OrderInfoDTO.orderStatus == '0'" v-no-more-click="1000">回执签收</van-button> <van-button type="danger" size="large" @click="next" v-if="OrderInfoDTO.orderStatus == '0'" v-no-more-click="1000">回执签收</van-button>
</div> --> </div>
</div> </div>
</template> </template>
@@ -204,16 +204,21 @@ export default {
}, },
// 回执签收 // 回执签收
next() { next() {
EWebBridge.webCallAppInJs('face_auth', {
number: this.appntDTO.idNo, //身份证号码
name: this.appntDTO.name //姓名
}).then(data => {
this.$toast.loading({ this.$toast.loading({
duration: 0, // 持续展示 toast duration: 0, // 持续展示 toast
forbidClick: true, // 禁用背景点击 forbidClick: true, // 禁用背景点击
loadingType: 'spinner', loadingType: 'spinner',
message: '加载中……' message: '加载中……'
}) })
let data = { if (JSON.parse(data).state == '1') {
let params = {
contNo: window.localStorage.getItem('policyNo') contNo: window.localStorage.getItem('policyNo')
} }
getReceiptSign(data).then(res => { getReceiptSign(params).then(res => {
if (res.result == '0') { if (res.result == '0') {
this.$toast.clear() this.$toast.clear()
window.localStorage.setItem('insurance-policyUrl', res.signUrl) window.localStorage.setItem('insurance-policyUrl', res.signUrl)
@@ -236,6 +241,11 @@ export default {
this.$toast(res.resultMessage) this.$toast(res.resultMessage)
} }
}) })
} else {
this.$toast.clear()
this.$toast(JSON.parse(data).error)
}
})
} }
} }
} }