瀏覽代碼

修复bug

宇宙无敌M1处理器的MacBook Pro 4 年之前
父節點
當前提交
6afa7c6719
共有 1 個文件被更改,包括 15 次插入1 次删除
  1. 15 1
      plugins/mch/goods/goods.vue

+ 15 - 1
plugins/mch/goods/goods.vue

xqd xqd
@@ -99,7 +99,7 @@
                 :pickup="goods.goods_marketing.pickup"
             ></bd-kb>
             <bd-comments :goods-id="goods.id"></bd-comments>
-            <bd-detail :detail="goods.detail" :showTab="false"></bd-detail>
+            <bd-detail :detail="goods.detail" :after_detail="goods.after_detail" :goodsId="goods.id" :showTab="true"></bd-detail>
             <!--相关推荐-->
             <view class="recommend">
                 <view class="recommend-title dir-left-nowrap main-center">
@@ -286,6 +286,20 @@
             });
         },
         methods: {
+			openPic() {
+				console.log(this.goods)
+				if (!this.goods.open_pic || typeof this.goods.open_pic != "object" || this.goods.open_pic.length == 0) {
+					uni.showToast({
+						title: "主人还没有上传开箱图片",
+						icon: "none"
+					})
+					return;
+				}
+				// this.showOpenPic=true;
+				uni.navigateTo({
+					url: "/pages/goods/openPic?id=" + this.goods.id
+				})
+			},
             getMall(e) {
                 this.is_open = e.is_open;
             },