Преглед изворни кода

Merge branch 'develop/3.0.1' into test

DESKTOP-O04BTUJ\muzen пре 2 година
родитељ
комит
21f4485f85
1 измењених фајлова са 4 додато и 7 уклоњено
  1. 4 7
      src/pages/lottery/index.vue

+ 4 - 7
src/pages/lottery/index.vue

@@ -185,16 +185,13 @@ export default {
         }).then(res => {
           if (res.data.code === 0) {
             this.$refs.popup.close()
-            uni.showToast({
-              title: '领取成功!'
-            })
             this.getList()
             setTimeout(() => {
               this.disabled = true
+              uni.showToast({
+                title: '领取成功,已累积到积分中!'
+              })
             }, 2000)
-            uni.showToast({
-              title:'领取成功,已累积到积分中!'
-            })
           }
         })
       }
@@ -208,7 +205,7 @@ export default {
     },
 
     // 关闭弹窗
-    close(){
+    close() {
       this.$refs.popup.close()
     }
   }