提交 bdc8a9fd 编写于 作者: 张磊's avatar 张磊

cas fix

上级 bff00ce3
......@@ -272,7 +272,6 @@
justify-content: center;
.submit-button {
position: relative;
width: 350px;
height: 40px;
border-radius: 20px;
font-weight: 700;
......@@ -287,12 +286,28 @@
background: #ffffff;
border: 1px solid #00bda5;
color: #00bda5;
position: relative;
}
}
.multi-sub-wrap{
flex-direction: row;
justify-content: space-evenly;
.submit-button{
width: 45%;
padding: 0px 20px;
}
.btn-label{
width: 42px;
height: 14px;
line-height: 14px;
font-size: 10px;
text-align: center;
color: #ffffff;
background-color: #00BDA5;
border-top-left-radius: 14px;
border-bottom-right-radius: 14px;
position: absolute;
top: -7px;
right: 0px;
}
}
......@@ -163,7 +163,7 @@
</div>
<div
v-if="picaWechat == 'wechat' && [3].includes(dataDetail.status) && (Number(dataDetail.reportExplain) == 0)"
class="submit-button"
class="submit-button submit-button-empty"
>
<wx-open-launch-weapp
style="position: absolute; top: 0; left: 0; width: 100%; height: 100%"
......@@ -179,11 +179,36 @@
</div>
<div
v-else
class="submit-button"
class="submit-button submit-button-empty"
@click="getJumpToWebapp"
>
{{ openWebAppBtnName }}
</div>
<div
v-if="picaWechat == 'wechat' && [3].includes(dataDetail.status) && (Number(dataDetail.reportExplain) == 0)"
class="submit-button submit-button-empty"
>
<div class="btn-label">{{ dataDetail.reimburseStatusStr }}</div>
<wx-open-launch-weapp
style="position: absolute; top: 0; left: 0; width: 100%; height: 100%"
:username="openWebAppConfigPositive.username"
:path="openWebAppConfigPositive.path"
env-version="trial"
>
<script type="text/wxtag-template">
<style>.btn {position:absolute; top: 0; color: #ffffff;text-align: center;line-height: 40px; left: 0; width:100%; height: 100%;}</style> <div class="btn">{{ openWebAppBtnName}}</div>
</script>
</wx-open-launch-weapp>
</div>
<div
v-else
class="submit-button submit-button-empty"
@click="getJumpToWebapp2"
>
<div class="btn-label">{{ dataDetail.reimburseStatusStr }}</div>
阳性报销
</div>
</div>
</div>
</template>
......@@ -239,6 +264,11 @@ export default {
path:'pagesInsurance/all-entrance/index', // 打开页面
extraData: JSON.stringify({})
},
openWebAppConfigPositive:{
username:'gh_e92f58174364', // 小程序唯一username 1.gh_80d54796f2d5 云鹊助手 2. gh_e92f58174364 云鹊健康
path:'pagesInsurance/all-entrance/index', // 打开页面
extraData: JSON.stringify({})
},
openWebAppBtnName: '报告解读',
yunOrderNo: '',
action_code: ''
......@@ -296,6 +326,7 @@ export default {
that.openWebAppConfig.extraData = JSON.stringify(ed);
that.openWebAppBtnName = n;
that.openWebAppConfig.path = jump_path;
this.openWebAppConfigPositive = `/pagesInsurance/positive-expense/index?detectionKind=${this.dataDetail.id}&tradeDetectionServiceRecordId=${this.dataDetail.detectType}`;
} else {
that.$toast(res.message);
}
......@@ -366,7 +397,23 @@ export default {
}
console.log('--mapStatus', m);
return m;
}
},
getJumpToWebapp2() {
if(this.picaWechat == 'wechat') {
return false;
}
const query = `detectionKind=${this.dataDetail.id}&tradeDetectionServiceRecordId=${this.dataDetail.detectType}`;
const p = {params:{path:'/pagesInsurance/positive-expense/index', query:query}, type: 2};
getJumpToWebapp(p).then(res => {
console.log('--res', res);
if(res.data) {
window.location.href = res.data;
}else{
this.$toast(res.message);
}
});
},
},
};
</script>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册