|
@@ -62,7 +62,12 @@
|
|
|
</view>
|
|
|
|
|
|
<view class="bottom">
|
|
|
- <u-button class="button"
|
|
|
+
|
|
|
+ :class="{
|
|
|
+ buttonlockStatus:lockStatus
|
|
|
+ button:!lockStatus
|
|
|
+ }"
|
|
|
+
|
|
|
@click="submit()"
|
|
|
shape="square">提交预约</u-button>
|
|
|
</view>
|
|
@@ -82,6 +87,8 @@
|
|
|
data() {
|
|
|
return {
|
|
|
id:0,
|
|
|
+ lockStatus:false,
|
|
|
+ lockTime:"",
|
|
|
detail:{},
|
|
|
timeList:[],
|
|
|
numList:[60,90,120,0],
|
|
@@ -97,7 +104,9 @@
|
|
|
},
|
|
|
methods:{
|
|
|
submit(){
|
|
|
-
|
|
|
+ if(this.lockStatus){
|
|
|
+ return
|
|
|
+ }
|
|
|
uni.showLoading({
|
|
|
title: "加载中",
|
|
|
mask: true,
|
|
@@ -123,7 +132,7 @@
|
|
|
newsApi.findConfigureByKey({
|
|
|
key:"apointment"
|
|
|
}).then((res) => {
|
|
|
-
|
|
|
+
|
|
|
this.apointment = res.data.value;
|
|
|
|
|
|
}).catch(error => {
|
|
@@ -139,6 +148,8 @@
|
|
|
|
|
|
}).then((res) => {
|
|
|
uni.hideLoading()
|
|
|
+ this.lockStatus=res.data.lockStatus
|
|
|
+ this.lockTime=res.data.lockTime
|
|
|
|
|
|
this.detail= {
|
|
|
stationName:res.data.gun.stationName,
|
|
@@ -334,6 +345,14 @@
|
|
|
font-size: 16px;
|
|
|
|
|
|
}
|
|
|
+ .buttonlockStatus{
|
|
|
+ border-radius: 50px;
|
|
|
+ background-color: rgba(0, 185, 98, 100);
|
|
|
+ background-color: #e7edea;
|
|
|
+ color: #141212;
|
|
|
+ color: rgba(255, 255, 255, 100);
|
|
|
+ font-size: 16px;
|
|
|
+ }
|
|
|
|
|
|
}
|
|
|
</style>
|