panhui hace 4 años
padre
commit
c10fdbdbb1

+ 9 - 2
src/main/nine-space/src/views/Submit.vue

@@ -2,7 +2,13 @@
     <div class="submit">
     <div class="submit">
         <div class="pageTitle">{{ info.minter }}</div>
         <div class="pageTitle">{{ info.minter }}</div>
         <div class="product">
         <div class="product">
-            <van-image width="74" height="104" :radius="6" :src="getImg(info.pics || info.pic)" fit="cover" />
+            <van-image
+                width="74"
+                height="104"
+                :radius="6"
+                :src="getImg(changeImgs(info.pics || info.pic))"
+                fit="cover"
+            />
             <div class="product-content">
             <div class="product-content">
                 <div class="text1">
                 <div class="text1">
                     {{ info.name }}
                     {{ info.name }}
@@ -55,9 +61,10 @@
 <script>
 <script>
 const path = require('path');
 const path = require('path');
 import { add } from 'mathjs';
 import { add } from 'mathjs';
+import product from '../mixins/product';
 export default {
 export default {
     name: 'Submit',
     name: 'Submit',
-
+    mixins: [product],
     data() {
     data() {
         return {
         return {
             info: {},
             info: {},

+ 1 - 2
src/main/nine-space/src/views/product/Detail.vue

@@ -198,6 +198,7 @@ export default {
                             this.btn = this.$refs.btn;
                             this.btn = this.$refs.btn;
                         }
                         }
                     });
                     });
+                    this.$toast.clear();
 
 
                     if (res.type === 'BLIND_BOX') {
                     if (res.type === 'BLIND_BOX') {
                         return this.$http.post(
                         return this.$http.post(
@@ -217,8 +218,6 @@ export default {
                     if (res) {
                     if (res) {
                         this.blindBoxItems = res.content;
                         this.blindBoxItems = res.content;
                     }
                     }
-
-                    this.$toast.clear();
                 });
                 });
         },
         },
         likeProduct() {
         likeProduct() {