From d50e4a3ef2f9a68fa5327eca56b8dca6c69efcd8 Mon Sep 17 00:00:00 2001
From: limqsh <540344226@qq.com>
Date: Mon, 27 May 2024 17:42:29 +0800
Subject: [PATCH] =?UTF-8?q?202404-=E9=A2=84=E8=AE=A2=E4=BF=A1=E6=81=AF?=
=?UTF-8?q?=E5=88=97=E8=A1=A8=E5=BC=80=E9=97=A8?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pages/myEnterBook/index.js | 12 +++++++++---
pages/myEnterBook/index.wxml | 7 ++++++-
pages/myEnterBook/index.wxss | 14 ++++++++++++++
utils/util.js | 1 -
4 files changed, 29 insertions(+), 5 deletions(-)
diff --git a/pages/myEnterBook/index.js b/pages/myEnterBook/index.js
index df71dc7..8df8394 100644
--- a/pages/myEnterBook/index.js
+++ b/pages/myEnterBook/index.js
@@ -80,9 +80,15 @@ Page({
let isRead = getTimeoutStorage('isReaded');
console.log('isRead======' + isRead)
if (isRead == 'ojbk') {
- wx.showToast({
- title:'足球场开门成功',
- icon : "success"
+ app.$api.memberTicketOpenDoor({
+ ticketId: ticketId
+ }).then(res => {
+ if (res.enterFlag) {
+ wx.showToast({
+ title:'足球场开门成功',
+ icon : "success"
+ })
+ }
})
}else {
wx.navigateTo({
diff --git a/pages/myEnterBook/index.wxml b/pages/myEnterBook/index.wxml
index fa53aa4..359d823 100644
--- a/pages/myEnterBook/index.wxml
+++ b/pages/myEnterBook/index.wxml
@@ -1,6 +1,6 @@
-
+
@@ -52,3 +52,8 @@
+
+
+
+ {{memberLessonTicket.msg}}
+
\ No newline at end of file
diff --git a/pages/myEnterBook/index.wxss b/pages/myEnterBook/index.wxss
index 3cc4e9d..23c93ff 100644
--- a/pages/myEnterBook/index.wxss
+++ b/pages/myEnterBook/index.wxss
@@ -129,3 +129,17 @@
text-align: center;
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;
+}
diff --git a/utils/util.js b/utils/util.js
index 96b30da..9a6b15e 100644
--- a/utils/util.js
+++ b/utils/util.js
@@ -42,7 +42,6 @@ const getTimeoutStorage = (key) => {
let data = wx.getStorageSync(key);
let data_expiration = data.timeout;
let value = data.value;
- // 如果缓存中没有data_expiration,说明也没有token,还未登录
if (data_expiration) {
// 如果超时了,清除缓存,重新登录
if (timestamp > data_expiration) {