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

Merge branch 'feature/zl' into 'release'

Feature/zl

See merge request !155
......@@ -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: 62px;
height: 14px;
line-height: 14px;
font-size: 10px;
text-align: center;
color: #ffffff;
background-color: #00BDA5;
border-top-left-radius: 7px;
border-bottom-right-radius: 14px;
position: absolute;
top: -7px;
right: 0px;
}
}
......@@ -162,28 +162,61 @@
查看报告
</div>
<div
v-if="picaWechat == 'wechat' && [3].includes(dataDetail.status) && (Number(dataDetail.reportExplain) == 0)"
class="submit-button"
v-if="picaWechat == 'wechat' && (Number(dataDetail.reportExplain) == 0)"
class="submit-button submit-button-empty"
>
<wx-open-launch-weapp
style="position: absolute; top: 0; left: 0; width: 100%; height: 100%"
:username="openWebAppConfig.username"
:path="openWebAppConfig.path"
env-version="trial"
:extra-data="openWebAppConfig.extraData"
>
<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>
<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"
class="submit-button submit-button-empty"
@click="getJumpToWebapp"
>
{{ openWebAppBtnName }}
</div>
<div
v-if="picaWechat == 'wechat' && dataDetail.reimburseFlag"
class="submit-button submit-button-empty"
>
<div
class="btn-label"
:style="{ background: mapColor(dataDetail.reimburseStatus) }"
>
{{ dataDetail.reimburseStatusStr }}
</div>
<wx-open-launch-weapp
style="position: absolute; top: 0; left: 0; width: 100%; height: 100%"
:username="openWebAppConfigPositive.username"
:path="openWebAppConfigPositive.path"
>
<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-if="picaWechat != 'wechat' && dataDetail.reimburseFlag"
class="submit-button submit-button-empty"
@click="getJumpToWebapp2"
>
<div
class="btn-label"
:style="{ background: mapColor(dataDetail.reimburseStatus) }"
>
{{ dataDetail.reimburseStatusStr }}
</div>
阳性报销
</div>
</div>
</div>
</template>
......@@ -239,6 +272,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 +334,7 @@ export default {
that.openWebAppConfig.extraData = JSON.stringify(ed);
that.openWebAppBtnName = n;
that.openWebAppConfig.path = jump_path;
this.openWebAppConfigPositive = `pagesInsurance/all-entrance/index?detectionKind=${this.dataDetail.id}&tradeDetectionServiceRecordId=${this.dataDetail.detectType}`;
} else {
that.$toast(res.message);
}
......@@ -366,7 +405,47 @@ 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/all-entrance/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);
}
});
},
mapColor(s) {
// 申请状态 1:待审核,2:审核通过(待打款),3:审核驳回,4:已撤销,5:已打款
let t = '#FF720C';
switch (Number(s)) {
case 1:
t = '#00BDA5';
break;
case 2:
t = '#00BDA5';
break;
case 3:
t = '#FF4B33';
break;
case 4:
t = '#AAAAAA';
break;
case 5:
t = '#AAAAAA';
break;
default:
break;
}
return t;
},
},
};
</script>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册