panhui 4 tahun lalu
induk
melakukan
f8b386a46f
2 mengubah file dengan 2 tambahan dan 2 penghapusan
  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: {
     methods: {
         open() {
         open() {
-            this.$emit('getProduct');
             this.$http.post('/order/open?id=' + this.id);
             this.$http.post('/order/open?id=' + this.id);
             this.addClass('img2', 'animate__rollOut', false)
             this.addClass('img2', 'animate__rollOut', false)
                 .then(() => {
                 .then(() => {
@@ -58,6 +57,7 @@ export default {
                 })
                 })
                 .then(() => {
                 .then(() => {
                     this.showProduct = true;
                     this.showProduct = true;
+                    this.$emit('getProduct');
                 });
                 });
         }
         }
         //组件名,动画名,展示(true:出现,false:消失)
         //组件名,动画名,展示(true:出现,false:消失)

+ 1 - 1
src/mixins/asset.js

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