订单页面样式调整
This commit is contained in:
parent
40cd44b118
commit
fbea281f16
@ -55,8 +55,9 @@ Page({
|
||||
bookingItemList : self.data.mySelectItem
|
||||
}
|
||||
wx.showLoading({
|
||||
title: '请稍等',
|
||||
});
|
||||
title: '请稍等...',
|
||||
mask: true
|
||||
})
|
||||
app.restAjax.post(app.restAjax.path('{venueUrl}/app/booking/savebookinginfo',[app.venueUrl]), param, {headers : {token:self.data.token}}, function(code,data){
|
||||
if(code == 200){
|
||||
wx.showToast({
|
||||
@ -288,16 +289,18 @@ Page({
|
||||
if(!self.checkPhoneNumber()){
|
||||
return false;
|
||||
}
|
||||
wx.showLoading({
|
||||
title: '请稍等...',
|
||||
mask: true
|
||||
})
|
||||
app.restAjax.get(app.restAjax.path('{venueUrl}/api/sms/getverificationcode/' + self.data.phoneNumber, [app.venueUrl]), {}, null,
|
||||
function (code, data) {
|
||||
if (code == 200) {
|
||||
console.log(data)
|
||||
self.setData({
|
||||
gotCode: true
|
||||
})
|
||||
self.data.timer = setInterval(function () {
|
||||
var cur = self.data.restTime - 1
|
||||
console.log(cur)
|
||||
if (cur == 0) {
|
||||
clearInterval(self.data.timer)
|
||||
self.setData({
|
||||
@ -310,6 +313,7 @@ Page({
|
||||
})
|
||||
}
|
||||
}, 1000)
|
||||
wx.hideLoading();
|
||||
}
|
||||
},
|
||||
function (code, data) {
|
||||
|
@ -68,7 +68,8 @@
|
||||
</view>
|
||||
<view class="bottom-info">
|
||||
<view>{{item.groundName}}</view>
|
||||
<view>{{item.price == '0' ? '免费' : item.price + '元'}}</view>
|
||||
<view wx:if="{{!item.price}}">免费</view>
|
||||
<view wx:else >{{item.price}}元</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
@ -22,6 +22,7 @@ Page({
|
||||
app.restAjax.get(app.restAjax.path('{venueUrl}/app/booking/listpagemyticket', [app.venueUrl]),
|
||||
{page: self.data.page,rows: self.data.rows}, {headers:{token : self.data.token}},
|
||||
function (code, data) {
|
||||
console.log(data);
|
||||
data.rows.forEach(element => {
|
||||
element.venuePanorama = element.venuePanorama.split(',')[0]
|
||||
});
|
||||
|
@ -11,7 +11,7 @@
|
||||
<view class="order-text">订单编号:{{item.serial}}</view>
|
||||
<view class="order-text">下单时间:{{item.gmtCreate}}</view>
|
||||
<view wx:if="{{item.orderType == '0'}}">
|
||||
<view class="price" wx:if="{{item.price == '0' || item.price == ''}}">¥15元</view>
|
||||
<view class="price" wx:if="{{item.price == '0' || item.price == ''}}">免费</view>
|
||||
<view class="price" wx:else>¥{{item.price}}元</view>
|
||||
</view>
|
||||
<view wx:if="{{item.orderType == '1'}}">
|
||||
|
@ -36,6 +36,9 @@
|
||||
background:rgba(159,21,18,.1);
|
||||
color: #9F1512;
|
||||
padding: 0 10rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
font-size: 20rpx;
|
||||
}
|
||||
.order-text{
|
||||
font-size: 30rpx;
|
||||
|
Loading…
Reference in New Issue
Block a user