202404 入场需要查看免责声明

This commit is contained in:
2024-05-26 20:25:06 +08:00
parent 8b1c94b806
commit 298a18e933
7 changed files with 100 additions and 41 deletions

View File

@@ -1,6 +1,7 @@
// pages/basketballGym/index.js
// import QRCode from './qrcode';
import drawQrcode from './weapp.qrcode.js';
import {getTimeoutStorage} from "../../utils/util";
const app = getApp();
import {
getCurrentPageUrl
@@ -291,21 +292,28 @@ Page({
// 我要进场
enter() {
app.$api.venueJoin({
venueId: id
}).then(res => {
this.setData({
flg: res.join.flg,
msg: res.join.msg,
payMoney: res.join.money
let isRead = getTimeoutStorage('isReaded');
console.log('isRead======' + isRead)
if (isRead == 'ojbk') {
app.$api.venueJoin({
venueId: id
}).then(res => {
this.setData({
flg: res.join.flg,
msg: res.join.msg,
payMoney: res.join.money
})
if (res.join.flg == 0) {
this.showBarcode('000')
}
}, err => {
console.log(err);
})
if (res.join.flg == 0) {
this.showBarcode('000')
}
}, err => {
console.log(err);
})
}else {
wx.navigateTo({
url: '/pages/disclaimers/index'
})
}
},
// 我要出场