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

for-all

上级 6320d2c3
#!/bin/bash #!/bin/bash
hasGit=`which git` # 判断是否存在git hasGit=`which git` # 判断是否存在git
msg=${1:-'auto commit'} # 获取终端输入的第一个参数,若为空则为auto commit msg=${1:-'auto commit'} # 获取终端输入的第一个参数,若为空则为auto commit
originBranch='origin/develop' originBranch='origin/release'
if [ ! $hasGit ];then if [ ! $hasGit ];then
echo 'Please download git first!'; echo 'Please download git first!';
exit 1; exit 1;
......
...@@ -186,17 +186,15 @@ ...@@ -186,17 +186,15 @@
}} }}
</div> </div>
<div <div
v-if="!canReappoint"
class="detail-btn btn-empty reAppoint" class="detail-btn btn-empty reAppoint"
:class="{ 'detail-btn-all': bindFlag == 0}"
@click="reAppoint" @click="reAppoint"
> >
重新预约 重新预约
</div> </div>
<div <div
v-if="bindFlag>0"
class="detail-btn" class="detail-btn"
@click="bindingCode" @click="bindingCode"
> >
绑定{{ 绑定{{
insuranceInfo && insuranceInfo.detectionKind == 0 insuranceInfo && insuranceInfo.detectionKind == 0
...@@ -210,6 +208,7 @@ ...@@ -210,6 +208,7 @@
class="detail-btn-bottom" class="detail-btn-bottom"
> >
<div <div
v-if="!canReappoint"
class="detail-btn" class="detail-btn"
@click="reAppoint" @click="reAppoint"
> >
...@@ -265,7 +264,7 @@ export default { ...@@ -265,7 +264,7 @@ export default {
verificationCode: '', verificationCode: '',
intervalId: null, intervalId: null,
status: '', status: '',
bindFlag:1, // 是否显示绑定条形码的按钮 allowChangeTimes: 0
}; };
}, },
computed: { computed: {
...@@ -276,10 +275,16 @@ export default { ...@@ -276,10 +275,16 @@ export default {
this.detailInfo.hospitalRemarks !== '' this.detailInfo.hospitalRemarks !== ''
); );
}, },
canReappoint() {
return (
this.detailInfo.allowChangeTimes <= 0 &&
this.detailInfo.detectionKind == 1
);
}
}, },
created() { created() {
this.dataRefreh(); this.dataRefreh();
}, },
mounted() { mounted() {
...@@ -338,14 +343,14 @@ export default { ...@@ -338,14 +343,14 @@ export default {
sampleCode, sampleCode,
externalOrderNo, externalOrderNo,
projectEquityNo, projectEquityNo,
bindFlag, allowChangeTimes,
} = res.data; } = res.data;
this.detailInfo = res.data; this.detailInfo = res.data;
this.expireFlag = expireFlag || ''; this.expireFlag = expireFlag || '';
this.isUnderLine = res.data.detectionCategory == 2; this.isUnderLine = res.data.detectionCategory == 2;
this.qrcodeUrl = qrCodeUrl; this.qrcodeUrl = qrCodeUrl;
this.verificationCode = verificationCode; this.verificationCode = verificationCode;
this.bindFlag = bindFlag; // 是否展示绑定条形码功能 this.allowChangeTimes = allowChangeTimes;
if (window._miniprogram) { if (window._miniprogram) {
if (status != '0202') { if (status != '0202') {
let url; let url;
...@@ -413,10 +418,14 @@ export default { ...@@ -413,10 +418,14 @@ export default {
web_data: { yunOrderNo: this.yunOrderNo }, web_data: { yunOrderNo: this.yunOrderNo },
}); });
const { detectionKind } = this.insuranceInfo; const { detectionKind } = this.insuranceInfo;
console.log('detectionKind--', detectionKind);
if (window._miniprogram) { if (window._miniprogram) {
const u = detectionKind == 1 ? '/pagesInsurance/sz-insurance/appoint' : '/pagesInsurance/sz-insurance/screeningAppoint';
if(this.canReappoint) {
return false;
}
this.clear();
this.$rocNative.WXInstance.miniProgram.navigateTo({ this.$rocNative.WXInstance.miniProgram.navigateTo({
url: `/pagesInsurance/sz-insurance/screeningAppoint?yunOrderNo=${that.yunOrderNo}&projectEquityNo=${this.projectEquityNo}`, url: `${u}?allowChangeFlagType=offline&yunOrderNo=${that.yunOrderNo}&projectEquityNo=${this.projectEquityNo}`,
}); });
} else { } else {
this.$router.push({ this.$router.push({
...@@ -534,6 +543,7 @@ export default { ...@@ -534,6 +543,7 @@ export default {
}); });
if (window._miniprogram) { if (window._miniprogram) {
const { detectionKind } = this.insuranceInfo; const { detectionKind } = this.insuranceInfo;
this.clear();
this.$rocNative.WXInstance.miniProgram.navigateTo({ this.$rocNative.WXInstance.miniProgram.navigateTo({
url: `/pages/health/binding-code/index?yunOrderNo=${this.yunOrderNo}&projectEquityNo=${this.projectEquityNo}&detectionRecordId=${detectionServiceRecordId}&pprotocolType=${pprotocolType}&channelSource=insurance_channel&detectionKind=${detectionKind}`, url: `/pages/health/binding-code/index?yunOrderNo=${this.yunOrderNo}&projectEquityNo=${this.projectEquityNo}&detectionRecordId=${detectionServiceRecordId}&pprotocolType=${pprotocolType}&channelSource=insurance_channel&detectionKind=${detectionKind}`,
}); });
...@@ -916,7 +926,6 @@ export default { ...@@ -916,7 +926,6 @@ export default {
left: 16px; left: 16px;
right: 16px; right: 16px;
} }
} }
.insurance-detection { .insurance-detection {
background: #ffffff; background: #ffffff;
...@@ -1002,17 +1011,5 @@ export default { ...@@ -1002,17 +1011,5 @@ export default {
border: 1px solid #c0c0c0; border: 1px solid #c0c0c0;
color: #212121; color: #212121;
} }
.detail-btn-all{
width: 500px;
height: 40px;
background: #00bda5;
border-radius: 25px;
margin: 0 auto;
font-size: 16px;
font-weight: 800;
color: #ffffff;
text-align: center;
line-height: 40px;
}
} }
</style> </style>
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册