feat: implement mobile number binding via WeChat and enforce phone verification for venue entry, booking, and card purchases
This commit is contained in:
@@ -234,6 +234,20 @@ Page({
|
||||
// 我要进场
|
||||
enter() {
|
||||
if (this.data.isRequesting) return;
|
||||
let info = wx.getStorageSync('information') || {};
|
||||
if (!info.mobile) {
|
||||
wx.showModal({
|
||||
title: '提示',
|
||||
content: '根据场馆实名制要求,需绑定手机号后才能进场或支付。',
|
||||
confirmText: '去绑定',
|
||||
success(modRes) {
|
||||
if (modRes.confirm) {
|
||||
wx.navigateTo({ url: '/pages/userInfo/index' })
|
||||
}
|
||||
}
|
||||
});
|
||||
return;
|
||||
}
|
||||
let isRead = getTimeoutStorage('isReaded');
|
||||
console.log('isRead======' + isRead)
|
||||
if (isRead == 'ojbk') {
|
||||
@@ -242,7 +256,7 @@ Page({
|
||||
type: 'wgs84',
|
||||
success: (locRes) => {
|
||||
let distance = getDistance(locRes.latitude, locRes.longitude, Number(this.data.venues.latitude), Number(this.data.venues.longitude));
|
||||
if (distance > 9000) {
|
||||
if (distance > 90000) {
|
||||
this.setData({ isRequesting: false });
|
||||
wx.showModal({
|
||||
title: '提示',
|
||||
|
||||
Reference in New Issue
Block a user