202404-预订信息列表开门
This commit is contained in:
@@ -80,9 +80,15 @@ Page({
|
|||||||
let isRead = getTimeoutStorage('isReaded');
|
let isRead = getTimeoutStorage('isReaded');
|
||||||
console.log('isRead======' + isRead)
|
console.log('isRead======' + isRead)
|
||||||
if (isRead == 'ojbk') {
|
if (isRead == 'ojbk') {
|
||||||
wx.showToast({
|
app.$api.memberTicketOpenDoor({
|
||||||
title:'足球场开门成功',
|
ticketId: ticketId
|
||||||
icon : "success"
|
}).then(res => {
|
||||||
|
if (res.enterFlag) {
|
||||||
|
wx.showToast({
|
||||||
|
title:'足球场开门成功',
|
||||||
|
icon : "success"
|
||||||
|
})
|
||||||
|
}
|
||||||
})
|
})
|
||||||
}else {
|
}else {
|
||||||
wx.navigateTo({
|
wx.navigateTo({
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<!--pages/myBookings/index.wxml-->
|
<!--pages/myBookings/index.wxml-->
|
||||||
<header title="订场信息" isGoHome="{{isGoHome}}"></header>
|
<header title="订场信息" isGoHome="{{isGoHome}}"></header>
|
||||||
<view class='container' wx:if="{{memberLessonTicket}}">
|
<view class='container' wx:if="{{memberLessonTicket.errCode == '0'}}">
|
||||||
<view class='cell-box'>
|
<view class='cell-box'>
|
||||||
<view class='cell'>
|
<view class='cell'>
|
||||||
<view class='title'>
|
<view class='title'>
|
||||||
@@ -52,3 +52,8 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
<view class='newplot' wx:else>
|
||||||
|
<image src='../../images/noContent.png'></image>
|
||||||
|
<text>{{memberLessonTicket.msg}}</text>
|
||||||
|
</view>
|
||||||
@@ -129,3 +129,17 @@
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
line-height: 100rpx;
|
line-height: 100rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.newplot {
|
||||||
|
position: fixed;
|
||||||
|
top: 260rpx;
|
||||||
|
bottom: 0;
|
||||||
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
color: #FFF;
|
||||||
|
font-size: 28rpx;
|
||||||
|
}
|
||||||
|
|||||||
@@ -42,7 +42,6 @@ const getTimeoutStorage = (key) => {
|
|||||||
let data = wx.getStorageSync(key);
|
let data = wx.getStorageSync(key);
|
||||||
let data_expiration = data.timeout;
|
let data_expiration = data.timeout;
|
||||||
let value = data.value;
|
let value = data.value;
|
||||||
// 如果缓存中没有data_expiration,说明也没有token,还未登录
|
|
||||||
if (data_expiration) {
|
if (data_expiration) {
|
||||||
// 如果超时了,清除缓存,重新登录
|
// 如果超时了,清除缓存,重新登录
|
||||||
if (timestamp > data_expiration) {
|
if (timestamp > data_expiration) {
|
||||||
|
|||||||
Reference in New Issue
Block a user