mirror of
https://gitee.com/java110/WechatOwnerService.git
synced 2026-06-12 10:00:57 +08:00
优化代码
This commit is contained in:
parent
c5d30767bd
commit
6ff244ade9
@ -50,13 +50,15 @@
|
|||||||
<view class="text-cut" style="width:220px">使用停车劵抵扣</view>
|
<view class="text-cut" style="width:220px">使用停车劵抵扣</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view>{{couponCount+ '张' }}</view>
|
<view v-if="couponCount == 0">请选择</view>
|
||||||
|
<view v-else>{{couponCount+ '张' }}</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
<!-- ="amount == 0" -->
|
||||||
<view class="cu-bar btn-group" style="margin-top: 20upx;">
|
<view class="cu-bar btn-group" style="margin-top: 20upx;">
|
||||||
<button @click="onPayFee" v-if="amount > 0"
|
<button @click="onPayFee" v-if="amount > 0"
|
||||||
class="cu-btn bg-green shadow-blur round lg">确认缴费</button>
|
class="cu-btn bg-green shadow-blur round lg">确认缴费</button>
|
||||||
<button @click="onPayFee" v-else="amount == 0"
|
<button @click="onPayFee" v-else
|
||||||
class="cu-btn bg-green shadow-blur round lg">确认开门</button>
|
class="cu-btn bg-green shadow-blur round lg">确认开门</button>
|
||||||
</view>
|
</view>
|
||||||
<view class="cu-bar btn-group" style="margin-top: 20upx;">
|
<view class="cu-bar btn-group" style="margin-top: 20upx;">
|
||||||
|
|||||||
@ -10,10 +10,11 @@
|
|||||||
<view class="tips_block">
|
<view class="tips_block">
|
||||||
</view>
|
</view>
|
||||||
<view class="cu-bar btn-group " style="margin-top: 30px;">
|
<view class="cu-bar btn-group " style="margin-top: 30px;">
|
||||||
<button @click="_changeFlag('phone')" style="margin-right: 0px;" class="cu-btn shadow-blur lg"
|
|
||||||
:class="{'bg-blue':showFlag == 'phone','line-blue':showFlag != 'phone'}">手机号</button>
|
|
||||||
<button @click="_changeFlag('car')" style="margin-left: 0px;" class="cu-btn shadow-blur lg"
|
<button @click="_changeFlag('car')" style="margin-left: 0px;" class="cu-btn shadow-blur lg"
|
||||||
:class="{'bg-blue':showFlag == 'car','line-blue':showFlag != 'car'}">车牌号</button>
|
:class="{'bg-blue':showFlag == 'car','line-blue':showFlag != 'car'}">车牌号</button>
|
||||||
|
<button @click="_changeFlag('phone')" style="margin-right: 0px;" class="cu-btn shadow-blur lg"
|
||||||
|
:class="{'bg-blue':showFlag == 'phone','line-blue':showFlag != 'phone'}">手机号</button>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
<view v-if="showFlag == 'phone'">
|
<view v-if="showFlag == 'phone'">
|
||||||
<view class='tips'>
|
<view class='tips'>
|
||||||
@ -22,7 +23,7 @@
|
|||||||
<view class="plate-input-body">
|
<view class="plate-input-body">
|
||||||
<view class="plate-input-content">
|
<view class="plate-input-content">
|
||||||
<input type="number" maxlength="11" class="input-ui" v-model="carNum"
|
<input type="number" maxlength="11" class="input-ui" v-model="carNum"
|
||||||
placeholder="手机号作为车牌号入场" />
|
placeholder="以手机号入场无牌车,请填手机号出场" />
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@ -165,15 +166,15 @@
|
|||||||
this.machineId = options.machineId;
|
this.machineId = options.machineId;
|
||||||
this.communityId = options.communityId;
|
this.communityId = options.communityId;
|
||||||
uni.setStorageSync(mapping.W_APP_ID, this.appId)
|
uni.setStorageSync(mapping.W_APP_ID, this.appId)
|
||||||
// if (!isNotNull(this.openId)) {
|
if (!isNotNull(this.openId)) {
|
||||||
// //刷新 openId
|
//刷新 openId
|
||||||
// if (isWxOrAli() == 'ALIPAY') {
|
if (isWxOrAli() == 'ALIPAY') {
|
||||||
// this._refreshAliPayOpenId();
|
this._refreshAliPayOpenId();
|
||||||
// } else {
|
} else {
|
||||||
// this._refreshWechatOpenId();
|
this._refreshWechatOpenId();
|
||||||
// }
|
}
|
||||||
// return;
|
return;
|
||||||
// }
|
}
|
||||||
this._loadExistsCarNum();
|
this._loadExistsCarNum();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user