|
@@ -2,18 +2,21 @@
|
|
|
<view >
|
|
|
<u-navbar title="无牌车辆扫码停车" :is-back="false" ></u-navbar>
|
|
|
<view class="main">
|
|
|
- <view class="park-name">
|
|
|
+ <view class="park-name" v-if="detail.parkName">
|
|
|
<img src="../../static/img/if-location-pin@2x.png" alt="">
|
|
|
<text>{{detail.parkName}}</text>
|
|
|
</view>
|
|
|
- <view class="unlabeled">
|
|
|
+ <view class="unlabeled" >
|
|
|
无牌车
|
|
|
</view>
|
|
|
- <view class="bus-number">
|
|
|
+ <view class="bus-number" v-if="detail.id">
|
|
|
{{detail.carNum}}
|
|
|
</view>
|
|
|
-
|
|
|
+ <view class="bus-number" v-if="!detail.id">
|
|
|
+ {{message}}
|
|
|
+ </view>
|
|
|
</view>
|
|
|
+
|
|
|
<view v-if="detail.inParkingStatus==1" style="
|
|
|
text-align: center;
|
|
|
font-size: 30px;
|
|
@@ -22,7 +25,7 @@
|
|
|
车辆已进场
|
|
|
</view>
|
|
|
<u-button v-if="detail.inParkingStatus==0" @click="submit" >请求进场</u-button>
|
|
|
- <view class="notice">
|
|
|
+ <view class="notice" v-if="txt">
|
|
|
<view class="title">
|
|
|
停车场须知
|
|
|
</view>
|
|
@@ -42,7 +45,7 @@
|
|
|
return {
|
|
|
channelId:'',
|
|
|
detail:{},
|
|
|
-
|
|
|
+ message:"",
|
|
|
txt:''
|
|
|
}
|
|
|
},onLoad(op) {
|
|
@@ -120,10 +123,7 @@
|
|
|
}
|
|
|
}).catch(error => {
|
|
|
uni.hideLoading()
|
|
|
- uni.showToast({
|
|
|
- title: error,
|
|
|
- icon: "none"
|
|
|
- })
|
|
|
+ this.message=error
|
|
|
})
|
|
|
}
|
|
|
}
|