panhui 4 yıl önce
ebeveyn
işleme
f8b386a46f
2 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. 1 1
      src/components/order/OrderOpen.vue
  2. 1 1
      src/mixins/asset.js

+ 1 - 1
src/components/order/OrderOpen.vue

@@ -44,7 +44,6 @@ export default {
     },
     methods: {
         open() {
-            this.$emit('getProduct');
             this.$http.post('/order/open?id=' + this.id);
             this.addClass('img2', 'animate__rollOut', false)
                 .then(() => {
@@ -58,6 +57,7 @@ export default {
                 })
                 .then(() => {
                     this.showProduct = true;
+                    this.$emit('getProduct');
                 });
         }
         //组件名,动画名,展示(true:出现,false:消失)

+ 1 - 1
src/mixins/asset.js

@@ -31,7 +31,7 @@ export default {
     },
     computed: {
         opened() {
-            return this.info ? this.info.opened : true;
+            return this.info ? (this.info.type === 'BLIND_BOX' ? this.info.opened : true) : true;
         }
     }
 };