|
@@ -44,7 +44,7 @@
|
|
placeholder="请输入姓名"
|
|
placeholder="请输入姓名"
|
|
/>
|
|
/>
|
|
</div>
|
|
</div>
|
|
- <div :class="['btn',value&&patName?'btnClick':'btnDis']" @click="handleDepart">进入预问诊</div>
|
|
|
|
|
|
+ <div :class="['btn',value&&patName&&allow?'btnClick':'btnDis']" @click="handleDepart">进入预问诊</div>
|
|
</div>
|
|
</div>
|
|
<div class="tip">注:建议您可先输入病情情况,方便医生提前了解情况</div>
|
|
<div class="tip">注:建议您可先输入病情情况,方便医生提前了解情况</div>
|
|
<Submit v-if="submit" :showType="showType" :fail="failMsg" @showSubmit="showSubmit"></Submit>
|
|
<Submit v-if="submit" :showType="showType" :fail="failMsg" @showSubmit="showSubmit"></Submit>
|
|
@@ -77,7 +77,8 @@ export default {
|
|
title: "",
|
|
title: "",
|
|
text: ""
|
|
text: ""
|
|
},
|
|
},
|
|
- code:''
|
|
|
|
|
|
+ code:'',
|
|
|
|
+ allow:true
|
|
};
|
|
};
|
|
},
|
|
},
|
|
created(){
|
|
created(){
|
|
@@ -102,7 +103,7 @@ export default {
|
|
this.show = !show;
|
|
this.show = !show;
|
|
},
|
|
},
|
|
blur() {
|
|
blur() {
|
|
- // document.activeElement.scrollIntoView({behavior: "smooth"})
|
|
|
|
|
|
+ document.activeElement.scrollIntoView({behavior: "smooth"})
|
|
if(MobileDevice.getModels().join(' or ').indexOf('6') == -1){
|
|
if(MobileDevice.getModels().join(' or ').indexOf('6') == -1){
|
|
document.activeElement.scrollIntoViewIfNeeded(true);
|
|
document.activeElement.scrollIntoViewIfNeeded(true);
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
@@ -138,8 +139,9 @@ export default {
|
|
this.submit = flg;
|
|
this.submit = flg;
|
|
},
|
|
},
|
|
handleDepart() {
|
|
handleDepart() {
|
|
- const { type, value,patName } = this;
|
|
|
|
- if (value&&patName) {
|
|
|
|
|
|
+ const { type, value,patName,allow } = this;
|
|
|
|
+ if (value&&patName&&allow) {
|
|
|
|
+ this.allow = false
|
|
let timer = setTimeout(() => {
|
|
let timer = setTimeout(() => {
|
|
if (type == 103) {
|
|
if (type == 103) {
|
|
if (!phoneTest.test(value)) {
|
|
if (!phoneTest.test(value)) {
|
|
@@ -217,10 +219,11 @@ export default {
|
|
}
|
|
}
|
|
})
|
|
})
|
|
.catch(() => {
|
|
.catch(() => {
|
|
|
|
+ this.allow = true
|
|
clearTimeout(timer)
|
|
clearTimeout(timer)
|
|
this.defaultWaring("网络异常请稍后重试");
|
|
this.defaultWaring("网络异常请稍后重试");
|
|
});
|
|
});
|
|
- }, 300);
|
|
|
|
|
|
+ }, 200);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
},
|