|
@@ -43,7 +43,7 @@
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</radio-group>
|
|
</radio-group>
|
|
- <view class="open-svip-btn" @click="creatOrder">立即开通</view>
|
|
|
|
|
|
+ <view class="open-svip-btn" :disabled="isLoading" @click="creatOrder">立即开通</view>
|
|
</view>
|
|
</view>
|
|
<CustomTabBar></CustomTabBar>
|
|
<CustomTabBar></CustomTabBar>
|
|
<!-- 蛋破壳 -->
|
|
<!-- 蛋破壳 -->
|
|
@@ -77,6 +77,7 @@
|
|
let payType = ref('zhifubao')
|
|
let payType = ref('zhifubao')
|
|
let cardId = ref('')
|
|
let cardId = ref('')
|
|
let formPage = ref('')
|
|
let formPage = ref('')
|
|
|
|
+ let isLoading = ref(false)
|
|
const daoPokeRef = ref(null);
|
|
const daoPokeRef = ref(null);
|
|
const daoPokeAllRef = ref(null);
|
|
const daoPokeAllRef = ref(null);
|
|
let orderId = ref('');
|
|
let orderId = ref('');
|
|
@@ -140,7 +141,10 @@
|
|
|
|
|
|
function creatOrder(data) {
|
|
function creatOrder(data) {
|
|
|
|
|
|
-
|
|
|
|
|
|
+ if (isLoading.value) {
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ isLoading.value = true;
|
|
uni.showLoading({
|
|
uni.showLoading({
|
|
title: '',
|
|
title: '',
|
|
mask: true
|
|
mask: true
|
|
@@ -149,6 +153,7 @@
|
|
let req = {
|
|
let req = {
|
|
cardId: cardId.value
|
|
cardId: cardId.value
|
|
}
|
|
}
|
|
|
|
+ console.log('创建订单11');
|
|
orderAdd(req).then(res => {
|
|
orderAdd(req).then(res => {
|
|
console.log('res', res);
|
|
console.log('res', res);
|
|
console.log(' res.data.id', res.data.id);
|
|
console.log(' res.data.id', res.data.id);
|
|
@@ -157,6 +162,7 @@
|
|
id: res.data.id
|
|
id: res.data.id
|
|
}).then(res2 => {
|
|
}).then(res2 => {
|
|
uni.hideLoading();
|
|
uni.hideLoading();
|
|
|
|
+ isLoading.value = false;
|
|
console.log('res2', res2);
|
|
console.log('res2', res2);
|
|
uni.requestPayment({
|
|
uni.requestPayment({
|
|
"provider": "wxpay",
|
|
"provider": "wxpay",
|