Browse Source

add loading when redpack change state

jihuaqiang 2 years ago
parent
commit
43714c41e8
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/view/iframe/red-packet/red-packet.vue

+ 2 - 0
src/view/iframe/red-packet/red-packet.vue

@@ -1195,6 +1195,7 @@ function setFrontConfig() {
 };
 
 function init(initParams) {
+  state.loading_show = true;
   let { type } = initParams || {};
   onPageVisbile();
   onWindowMessage();
@@ -1234,6 +1235,7 @@ function init(initParams) {
       handleErrorCode(res)
     }
   }).finally(() => {
+    state.loading_show = false
     state.loading_redbag = false
   })
 }