sunlupeng 1 年間 前
コミット
a24f0d6d88
1 ファイル変更5 行追加2 行削除
  1. 5 2
      src/views/HomeView/RedeemView.vue

+ 5 - 2
src/views/HomeView/RedeemView.vue

@@ -236,6 +236,7 @@
 <script>
 import { integralInfo, festivalInfo, start, kill } from "@/api/allApi";
 import { setTab } from '@/utils/auth'
+import { debounce } from '@/utils/index'
 export default {
     data() {
         var validPhone = (rule, value, callback) => {
@@ -351,7 +352,7 @@ export default {
                 }
             });
         },
-        handleClickExchange() {
+        submit(){
             const params = {
                 skuId: this.data.skuId,
                 skuSeq: this.data.skuSeq,
@@ -376,8 +377,10 @@ export default {
                     this.dialogMsgVisible = true;
                 }).catch(() => { })
             }
-
         },
+        handleClickExchange:debounce(function(){
+                this.submit();
+            },2000,true),
     }
 };
 </script>