panhui 4 年 前
コミット
de75d61674

+ 1 - 1
src/main/nine-space/src/components/product/productInfo.vue

@@ -18,7 +18,7 @@
             <div class="price" v-if="info.salable"><i class="font_family icon-icon_jiage"></i>{{ info.price }}</div>
             <div class="status" v-else>仅展示</div>
             <div class="text">
-                <div class="text1" v-if="info.type === 'BLIND_BOX'">
+                <div class="text1" v-if="info.stock">
                     <span>{{ info.sale }}/</span>
                     <span>{{ info.stock }}</span>
                 </div>

+ 1 - 9
src/main/nine-space/src/views/Discover.vue

@@ -50,15 +50,7 @@
                     <img class="grid-img" src="../assets/info_icon_manghexilie.png" />
                 </template>
             </van-grid-item>
-            <van-grid-item
-                text="拍卖系列"
-                :to="{
-                    path: '/productList',
-                    query: {
-                        type: 'AUCTION'
-                    }
-                }"
-            >
+            <van-grid-item text="拍卖系列" @click="wait">
                 <template v-slot:icon>
                     <img class="grid-img" src="../assets/info_icon_paimaixilie.png" />
                 </template>

+ 13 - 1
src/main/nine-space/src/views/Home.vue

@@ -17,7 +17,14 @@
         >
             <template v-for="item in banners" :key="item.id">
                 <swiper-slide>
-                    <van-image :radius="6" width="100%" height="calc(45vw - 29px)" :src="item.pic" fit="cover" />
+                    <van-image
+                        @click="goNext(item)"
+                        :radius="6"
+                        width="100%"
+                        height="calc(45vw - 29px)"
+                        :src="item.pic"
+                        fit="cover"
+                    />
                 </swiper-slide>
             </template>
         </swiper>
@@ -165,6 +172,11 @@ export default {
                 .then(res => {
                     this.miners = res.content;
                 });
+        },
+        goNext(info) {
+            if (info.link) {
+                this.$router.push(`/productDetail?id=${info.linkContent}`);
+            }
         }
     }
 };

+ 4 - 3
src/main/nine-space/src/views/Submit.vue

@@ -171,19 +171,20 @@ export default {
                                             ...res,
                                             package: res.package || res.packageValue
                                         });
+                                        let _this = this;
                                         wx.chooseWXPay({
                                             ...res,
                                             package: res.package || res.packageValue,
                                             timestamp: res.timeStamp,
                                             success(res) {
-                                                this.$toast.success('支付成功');
+                                                _this.$toast.success('支付成功');
                                                 setTimeout(() => {
-                                                    this.$router.replace('/orders');
+                                                    _this.$router.replace('/orders');
                                                 }, 1000);
                                             },
                                             fail(e) {
                                                 console.log(e);
-                                                this.$toast('支付失败,请稍后再试');
+                                                _this.$toast('支付失败,请稍后再试');
                                             }
                                         });
                                     });

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

@@ -84,7 +84,7 @@
                         <van-image
                             width="100%"
                             height="170"
-                            :src="item"
+                            :src="getImg(item)"
                             fit="cover"
                             radius="12"
                             @click="preview(index, boxs)"
@@ -170,7 +170,7 @@ export default {
         boxs() {
             let list = [...this.blindBoxItems];
             return list.map(item => {
-                return this.getImg(this.changeImgs(item.pics));
+                return this.changeImgs(item.pics);
             });
         }
     },
@@ -181,7 +181,7 @@ export default {
         preview(index = 0, list = []) {
             ImagePreview({
                 images: [...list].map(item => {
-                    return this.getImg(item);
+                    return item;
                 }),
                 startPosition: index
             });