篮球场馆错误提示自定义
This commit is contained in:
@@ -26,6 +26,7 @@ Page({
|
|||||||
showUnclickMask: false,
|
showUnclickMask: false,
|
||||||
showCardMask: false,
|
showCardMask: false,
|
||||||
flg: 100,
|
flg: 100,
|
||||||
|
msg: '',
|
||||||
isWxLogin: false,
|
isWxLogin: false,
|
||||||
isGoHome: false,
|
isGoHome: false,
|
||||||
},
|
},
|
||||||
@@ -173,8 +174,10 @@ Page({
|
|||||||
venueId: id
|
venueId: id
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
this.setData({
|
this.setData({
|
||||||
flg: res.join.flg
|
flg: res.join.flg,
|
||||||
|
msg: res.join.msg
|
||||||
})
|
})
|
||||||
|
if (res.join.flg == 0) {
|
||||||
drawQrcode({
|
drawQrcode({
|
||||||
width: 180,
|
width: 180,
|
||||||
height: 180,
|
height: 180,
|
||||||
@@ -185,6 +188,7 @@ Page({
|
|||||||
typeNumber: 10,
|
typeNumber: 10,
|
||||||
text: res.join.barcode
|
text: res.join.barcode
|
||||||
})
|
})
|
||||||
|
}
|
||||||
}, err => {
|
}, err => {
|
||||||
console.log(err);
|
console.log(err);
|
||||||
})
|
})
|
||||||
@@ -197,8 +201,10 @@ Page({
|
|||||||
venueId: id
|
venueId: id
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
this.setData({
|
this.setData({
|
||||||
flg: res.out.flg
|
flg: res.out.flg,
|
||||||
|
msg: res.out.msg
|
||||||
})
|
})
|
||||||
|
if (res.out.flg == 0){
|
||||||
drawQrcode({
|
drawQrcode({
|
||||||
width: 180,
|
width: 180,
|
||||||
height: 180,
|
height: 180,
|
||||||
@@ -209,6 +215,7 @@ Page({
|
|||||||
typeNumber: 10,
|
typeNumber: 10,
|
||||||
text: res.out.barcode
|
text: res.out.barcode
|
||||||
})
|
})
|
||||||
|
}
|
||||||
}, err => {
|
}, err => {
|
||||||
console.log(err);
|
console.log(err);
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -35,7 +35,11 @@
|
|||||||
<block wx:if="{{venues.venuePriceList.length>0}}">收费说明: </block>
|
<block wx:if="{{venues.venuePriceList.length>0}}">收费说明: </block>
|
||||||
<block wx:else>篮球馆暂未开放</block>
|
<block wx:else>篮球馆暂未开放</block>
|
||||||
<block wx:for="{{venues.venuePriceList}}" wx:key="{{index}}">
|
<block wx:for="{{venues.venuePriceList}}" wx:key="{{index}}">
|
||||||
<view>每日{{item.starTime}}-{{item.endTime}} {{item.price >= 0 ? "¥"+item.price + "/次" : '免费公益'}};</view>
|
<view wx:if="{{venues.payStyle=='1'}}">
|
||||||
|
每日{{item.starTime}}-{{item.endTime}} {{item.price >= 0 ? "¥"+item.price + "/时" : '免费公益'}};
|
||||||
|
</view>
|
||||||
|
<view wx:else>每日{{item.starTime}}-{{item.endTime}} {{item.price >= 0 ? "¥"+item.price + "/次" : '免费公益'}};
|
||||||
|
</view>
|
||||||
</block>
|
</block>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -70,7 +74,7 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class='footer-btn' wx:if="{{venues.enterFlag=='0'}}" bindtap='out'>我要出场</view>
|
<view class='footer-btn' wx:if="{{venues.enterFlag=='1'}}" bindtap='out'>我要出场</view>
|
||||||
<view class='footer-btn' wx:else bindtap='enter'>我要进场</view>
|
<view class='footer-btn' wx:else bindtap='enter'>我要进场</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
@@ -130,7 +134,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class='center'>
|
<view class='center'>
|
||||||
<view class='item'>
|
<view class='item'>
|
||||||
<view class='step'>门禁已掉线,请联系管理员</view>
|
<view class='step'>{{msg}}</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -148,7 +152,7 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<confirm-dialog title="提示" message="余额不足,请先充值余额" confirmBtnTitle="充值" bindcancelselect="cancelDeleteDialog" bindconfirmselect="confirmDeleteDialog" wx:if="{{flg == 2}}"></confirm-dialog>
|
<confirm-dialog title="提示" message="{{msg}}" confirmBtnTitle="充值" bindcancelselect="cancelDeleteDialog" bindconfirmselect="confirmDeleteDialog" wx:if="{{flg == 2}}"></confirm-dialog>
|
||||||
|
|
||||||
<!--<confirm-dialog title="提示" message="请先上传照片,以供人脸识别入场" bindcancelselect="cancelDeleteDialog" bindconfirmselect="confirmDeleteDialog" wx:if="{{flg == 1}}"></confirm-dialog>-->
|
<!--<confirm-dialog title="提示" message="请先上传照片,以供人脸识别入场" bindcancelselect="cancelDeleteDialog" bindconfirmselect="confirmDeleteDialog" wx:if="{{flg == 1}}"></confirm-dialog>-->
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
//testURL
|
//testURL
|
||||||
// const BASE_URL = 'https://lmqhznn.goho.co';
|
// const BASE_URL = 'http://127.0.0.1:8093';
|
||||||
//prodURL
|
//prodURL
|
||||||
const BASE_URL = 'https://api.hongyutiyu.top';
|
const BASE_URL = 'https://api.hongyutiyu.top';
|
||||||
// const platformId = 1;
|
// const platformId = 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user