202404 入场需要查看免责声明
This commit is contained in:
@@ -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'
|
||||
})
|
||||
}
|
||||
},
|
||||
|
||||
// 我要出场
|
||||
|
||||
Reference in New Issue
Block a user