开启篮球预定

This commit is contained in:
wangxiaowei
2025-12-25 00:07:22 +08:00
parent ff99f9e189
commit 7a58939b65
9 changed files with 458 additions and 199 deletions

View File

@ -26,12 +26,22 @@
</view>
</view>
</view>
<view >
<checkbox-group @change="checkboxChange">
<text class="" style="margin-right: 20rpx;" @click="see">我已阅读并同意充值协议</text>
<checkbox value="true" :checked="yxChekced"/>
</checkbox-group>
<!-- <text class="" style="margin-right: 20rpx;">我已阅读并同意充值协议</text>
<checkbox value="cb" class="checkbox" :checked="yxChekced" @change="yxChekced = !yxChekced" /> -->
</view>
</view>
<view class="r-desc">
<view class="r-desc1">充值说明</view>
<view class="r-desc2">a.账户充值仅限在线方式支付充值金额实时到账</view>
<view class="r-desc2">b.有问题请联系客服</view>
<view class="r-desc2">c.充值前请先查看本协议<text style="color: #FF5951;" @click="see">充值协议</text></view>
</view>
<view class="card-btn" @click="confirmCard">确定</view>
@ -67,7 +77,8 @@
return {
cardPopup: false,
currentType: -1,
balance: {}
balance: {},
yxChekced: true
}
},
@ -92,17 +103,55 @@
this.currentType = index;
},
checkboxChange(e) {
console.log("🚀 ~ e:", e)
this.yxChekced = e.detail.value[0]
console.log("🚀 ~ e:", this.yxChekced)
},
// 确认选择
confirmCard() {
if (this.currentType == -1) {
if (!this.yxChekced) {
uni.showToast({
title: '请选择充值金额',
title: '请同意充值协议',
icon: 'none'
});
return;
}
this.wxPay()
let self = this;
uni.showLoading({
title: '加载中'
});
self._post('user.index/detail', {
source: self.getPlatform()
}, function(res) {
uni.hideLoading();
console.log("🚀 ~ res:", res)
if (res.data.userInfo.mobile == '') {
uni.showModal({
title: '提示',
content: '请先绑定手机号',
success: function(sm) {
if (sm.confirm) {
uni.switchTab({
url: '/pages/user/index/index'
});
}
}
});
}else {
if (self.currentType == -1) {
uni.showToast({
title: '请选择充值金额',
icon: 'none'
});
return;
}
self.wxPay()
}
});
},
// 微信支付
@ -180,6 +229,12 @@
}, 500);
}
},
see() {
uni.navigateTo({
url: '/pages/webview/webview?url=https://xh.stnav.com/czxy.html'
});
}
}
}