Commit f6f20e7f authored by gongguan's avatar gongguan

增加prize-dialog的防抖

parent 1bbd4789
...@@ -4,7 +4,7 @@ const plugin = requirePlugin("myPlugin"); ...@@ -4,7 +4,7 @@ const plugin = requirePlugin("myPlugin");
import { bizCode } from "/config"; import { bizCode } from "/config";
import { queryBenefitByEname } from "/api"; import { queryBenefitByEname } from "/api";
import { chooseImage, getImageInfo, validateRangeNumber, isDot } from "/utils"; 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 EQUITY_TYPE = 1;
const CREDITS_TYPE = 2; const CREDITS_TYPE = 2;
const OBJECT_TYPE = 3; const OBJECT_TYPE = 3;
...@@ -291,7 +291,7 @@ Component({ ...@@ -291,7 +291,7 @@ Component({
} }
}) })
}, },
async uploadImage() { uploadImage: throttleHandle(async function() {
try { try {
this.setData({ this.setData({
showDialogMask: false, showDialogMask: false,
...@@ -341,7 +341,7 @@ Component({ ...@@ -341,7 +341,7 @@ Component({
}); });
console.error(error); console.error(error);
} }
}, }, 1000),
onChangePrizeValue(e) { onChangePrizeValue(e) {
const key = e.target.dataset.name; const key = e.target.dataset.name;
const value = e.detail.value; 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