radioChange

This commit is contained in:
liuyuan
2025-10-15 16:32:29 +08:00
12 changed files with 38 additions and 208 deletions

View File

@@ -520,7 +520,7 @@
import $http from "@/config/requestConfig.js";
const { platform } = uni.getSystemInfoSync();
import { mapState } from "vuex";
import debounce from "@/common/debounce.js";
import { debounce, throttle } from "@/common/debounce.js";
export default {
props: [
"options",
@@ -1291,7 +1291,7 @@
this.content = this.remark;
}
},
async goBuyJie() {
goBuyJie:throttle(async function () {
if (this.pageType == "vip") {
if (this.radioValue != "1") {
uni.showToast({
@@ -1330,7 +1330,7 @@
return;
}
debounce(async () => {
if (this.pageType == "fudu") {
data = {
jfDeduction: this.jfNumber,
@@ -1426,10 +1426,10 @@
} else {
that.submitorder(data);
}
}, 1000);
},
}, 2000),
//支付操作
async submitorder(data) {
submitorder:throttle(async function (data) {
uni.showLoading({
title: "正在请求订单",
});
@@ -1450,7 +1450,7 @@
// 常规支付
break;
}
debounce(async () => {
await $http
.request({
url: url,
@@ -1612,8 +1612,8 @@
that.buyingFlag = false;
uni.hideLoading();
});
}, 1000);
},
}, 2000),
radioChange(index) {
this.selectPayIndex = index;
this.payType = this.payList[this.selectPayIndex].type;