1
This commit is contained in:
+18
-7
@@ -23,8 +23,10 @@ layout("/layouts/platform_h5.html"){
|
||||
<van-button round type="primary" size="large" color="#2cabdd" class="buttonClass" @click="selectPhysicalExaminationHospital"><van-icon name="records-o" size="27px"/> 选择体检医院</van-button>
|
||||
<van-button round type="primary" size="large" color="#eca807" class="buttonClass" @click="minePhysicalExaminationHospital"><van-icon name="idcard" size="27px"/> 我的体检医院</van-button>
|
||||
</div>
|
||||
<van-dialog v-model="show" title="温馨提醒" v-if="show" @confirm="confirmClick"
|
||||
:confirm-button-text="confirmButtonText">
|
||||
<van-dialog v-model="show" title="温馨提醒" @confirm="confirmClick"
|
||||
:confirm-button-text="confirmButtonText"
|
||||
:before-close="test"
|
||||
:confirm-button-disabled="confirmDisabled">
|
||||
<div class="dialog-content">
|
||||
<div style="white-space: pre-line">{{project.friendlyReminderText}}</div>
|
||||
</div>
|
||||
@@ -46,9 +48,18 @@ layout("/layouts/platform_h5.html"){
|
||||
friendlyReminderText: "",
|
||||
},
|
||||
baseLoc: "",
|
||||
count: 5,
|
||||
confirmDisabled: true,
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
test(action, done) {
|
||||
if (action === 'confirm' && this.count > 0) {
|
||||
done(false);
|
||||
} else {
|
||||
done();
|
||||
}
|
||||
},
|
||||
userMessage() {
|
||||
this.$pjaxReplace("/platform/healthCheckup/h5/userBaseMessage?projectId=" + this.project.id);
|
||||
},
|
||||
@@ -77,12 +88,12 @@ layout("/layouts/platform_h5.html"){
|
||||
let friendlyReminderStatus = sessionStorage.getItem("friendlyReminderStatus");
|
||||
if (friendlyReminderStatus == "0" ) {
|
||||
this.show = true;
|
||||
let count = 5;
|
||||
this.confirmButtonText = '已悉知(' + count + ')'
|
||||
this.confirmButtonText = '已悉知(' + this.count + ')'
|
||||
let timer = setInterval(() => {
|
||||
count--;
|
||||
this.confirmButtonText = '已悉知(' + count + ')'
|
||||
if (count <= 0) {
|
||||
this.count--;
|
||||
this.confirmButtonText = '已悉知(' + this.count + ')'
|
||||
if (this.count <= 0) {
|
||||
this.confirmDisabled = false;
|
||||
this.confirmButtonText = '已悉知';
|
||||
clearInterval(timer);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user