Commit f6f20e7f authored by gongguan's avatar gongguan

增加prize-dialog的防抖

parent 1bbd4789
......@@ -4,7 +4,7 @@ const plugin = requirePlugin("myPlugin");
import { bizCode } from "/config";
import { queryBenefitByEname } from "/api";
import { chooseImage, getImageInfo, validateRangeNumber, isDot } from "/utils";
import { passUrlList, urlCheck } from "../../../utils/helper";
import { passUrlList, urlCheck, throttleHandle } from "../../../utils/helper";
const EQUITY_TYPE = 1;
const CREDITS_TYPE = 2;
const OBJECT_TYPE = 3;
......@@ -291,7 +291,7 @@ Component({
}
})
},
async uploadImage() {
uploadImage: throttleHandle(async function() {
try {
this.setData({
showDialogMask: false,
......@@ -341,7 +341,7 @@ Component({
});
console.error(error);
}
},
}, 1000),
onChangePrizeValue(e) {
const key = e.target.dataset.name;
const value = e.detail.value;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment