提交 289995dc 编写于 作者: 张敬贤's avatar 张敬贤

Merge branch 'release' into hotfix0626

...@@ -171,7 +171,7 @@ ...@@ -171,7 +171,7 @@
getEntitlementList(externalOrderNo, projectEquityNo) { getEntitlementList(externalOrderNo, projectEquityNo) {
const that = this; const that = this;
that.$loading.show(); // that.$loading.show();
getEntitlementList(externalOrderNo, projectEquityNo).then(res => { getEntitlementList(externalOrderNo, projectEquityNo).then(res => {
if (res.code === '000000') { if (res.code === '000000') {
if(res?.data.length > 0) { if(res?.data.length > 0) {
...@@ -255,20 +255,19 @@ ...@@ -255,20 +255,19 @@
that.entitlementList = arr; that.entitlementList = arr;
} else { } else {
that.entitlementList = []; that.entitlementList = [];
const l = window.location.origin; // const l = window.location.origin;
const hr = l + `/pica-insurance/sz-public?projectEquityNo=${projectEquityNo}&externalOrderNo=${externalOrderNo}`; // const hr = l + `/pica-insurance/sz-public?projectEquityNo=${projectEquityNo}&externalOrderNo=${externalOrderNo}`;
window.location.href = hr; // window.location.href = hr;
// that.$router.replace( this.$router.push({
// { path: '/sz-public',
// path: '/sz-public', query: {
// query: { externalOrderNo: externalOrderNo,
// projectEquityNo: projectEquityNo, projectEquityNo:projectEquityNo,
// externalOrderNo: externalOrderNo reload: 'reload',
// }, }
// } });
// );
} }
that.$loading.hide(); // that.$loading.hide();
} }
}); });
}, },
......
...@@ -14,8 +14,6 @@ ...@@ -14,8 +14,6 @@
:username="openWebAppConfigPositive.username" :username="openWebAppConfigPositive.username"
:path="openWebAppConfigPositive.path" :path="openWebAppConfigPositive.path"
:env-version="envVersion" :env-version="envVersion"
@error="handleErrorFn"
@launch="handleLaunchFn"
> >
<script type="text/wxtag-template"> <script type="text/wxtag-template">
<style>.btn {position:absolute; top: -3px; color: #ffffff;text-align: center;line-height: 50px; font-size: 16px; font-weight: 500; left: 0; width:100%; height: 100%;}</style> <div class="btn">领取权益</div> <style>.btn {position:absolute; top: -3px; color: #ffffff;text-align: center;line-height: 50px; font-size: 16px; font-weight: 500; left: 0; width:100%; height: 100%;}</style> <div class="btn">领取权益</div>
...@@ -23,58 +21,6 @@ ...@@ -23,58 +21,6 @@
</wx-open-launch-weapp> </wx-open-launch-weapp>
</div> </div>
</div> </div>
<van-popup
v-model="show"
closeable
round
position="bottom"
:style="{ height: '500px' ,overflow:'hidden'}"
>
<div class="popup-title">
选择被保险人
</div>
<div class="popup-list">
<van-radio-group v-model="person">
<van-cell-group>
<van-cell
v-for="(item) in userinfo"
:key="item.id"
clickable
@click="person = item.name"
>
<div class="popup-list-item">
<div class="name">
{{ item.name }}
</div>
<div class="info">
<div class="phoneNum">
<span>手机号码:</span>
<span>{{ item.mobile }}</span>
</div>
<div class="idCard">
<span>身份证号:</span>
<span>{{ item.id_number }}</span>
</div>
</div>
</div>
<template #right-icon>
<van-radio :name="item.name" />
</template>
</van-cell>
</van-cell-group>
</van-radio-group>
</div>
<div class="popup-btn-box">
<van-button
class="popup-btn"
:disabled="!person"
@click="show=false
"
>
确定
</van-button>
</div>
</van-popup>
</div> </div>
</template> </template>
...@@ -86,11 +32,6 @@ ...@@ -86,11 +32,6 @@
export default { export default {
data() { data() {
return { return {
show: false,
person: null,
userinfo: [
],
envVersion: VUE_APP_ENV == 'production' ? 'release' : 'trial', envVersion: VUE_APP_ENV == 'production' ? 'release' : 'trial',
// envVersion:'trial', // envVersion:'trial',
openWebAppConfigPositive:{ openWebAppConfigPositive:{
...@@ -105,13 +46,17 @@ ...@@ -105,13 +46,17 @@
}; };
}, },
mounted() { mounted() {
const {externalOrderNo, projectEquityNo} = this.$route.query; const {externalOrderNo, projectEquityNo, reload} = this.$route.query;
this.routerInfo = this.$route.query; this.routerInfo = this.$route.query;
that = this; that = this;
this.openWebAppConfigPositive.path = `pagesInsurance/all-entrance/index?channelSource=insurance_channel&projectEquityNo=${projectEquityNo}&externalOrderNo=${externalOrderNo}&detectionKind=1`;
console.log('-this.openWebAppConfigPositiv', this.openWebAppConfigPositive); console.log('-this.openWebAppConfigPositiv', this.openWebAppConfigPositive);
if(reload && reload == 'reload') {
const l = window.location.origin;
const hr = l + `/pica-insurance/sz-public?projectEquityNo=${projectEquityNo}&externalOrderNo=${externalOrderNo}`;
window.location.href = hr;
}
this.vis(); this.vis();
this.getDetailtxt(projectEquityNo); this.getDetailtxt(projectEquityNo, externalOrderNo);
}, },
methods: { methods: {
vis() { vis() {
...@@ -121,12 +66,6 @@ ...@@ -121,12 +66,6 @@
} }
}); });
}, },
handleErrorFn(e) {
console.log('handleErrorFn', e);
},
handleLaunchFn(e) {
console.log('handleLaunchFn', e);
},
getEntitlementList() { getEntitlementList() {
that.$loading.show(); that.$loading.show();
const {externalOrderNo, projectEquityNo} = that.routerInfo; const {externalOrderNo, projectEquityNo} = that.routerInfo;
...@@ -147,13 +86,14 @@ ...@@ -147,13 +86,14 @@
} }
}); });
}, },
getDetailtxt(projectEquityNo) { getDetailtxt(projectEquityNo, externalOrderNo) {
const o = { const o = {
yunOrderNo: projectEquityNo, yunOrderNo: projectEquityNo,
pageType: 5 pageType: 5
}; };
getDetailtxt(o).then(res => { getDetailtxt(o).then(res => {
this.insuranceText = res.data; this.insuranceText = res.data;
this.openWebAppConfigPositive.path = `pagesInsurance/all-entrance/index?channelSource=insurance_channel&projectEquityNo=${projectEquityNo}&externalOrderNo=${externalOrderNo}&detectionKind=1`;
}); });
} }
} }
...@@ -173,6 +113,7 @@ ...@@ -173,6 +113,7 @@
bottom: 0; bottom: 0;
width: 100vw; width: 100vw;
background: #fff; background: #fff;
z-index: 1000;
padding-bottom: 27px; padding-bottom: 27px;
.bottom-text{ .bottom-text{
padding: 10px 21px 10px 15px; padding: 10px 21px 10px 15px;
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册