From c61f03cfe1fcf023c7128f77f3d692aef309f77f Mon Sep 17 00:00:00 2001
From: peng <peng.com>
Date: 星期四, 30 十月 2025 14:59:59 +0800
Subject: [PATCH] 页面优化

---
 pages/product/goods.vue |   40 ++++++++++++++++++++++++++--------------
 1 files changed, 26 insertions(+), 14 deletions(-)

diff --git a/pages/product/goods.vue b/pages/product/goods.vue
index ae818f0..ee304c0 100644
--- a/pages/product/goods.vue
+++ b/pages/product/goods.vue
@@ -212,10 +212,10 @@
             <u-icon size="34" class="red" name="home-fill"></u-icon>
             <view class="red icon-btn-name">搴楅摵</view>
           </view>
-          <view class="icon-btn-item" @click="linkMsgDetail()">
+<!--          <view class="icon-btn-item" @click="linkMsgDetail()">
             <u-icon size="34" name="kefu-ermai"></u-icon>
             <view class="icon-btn-name">瀹㈡湇</view>
-          </view>
+          </view> -->
           <view class="icon-btn-item" @click="reluchToCart()">
             <u-icon size="34" name="storeping-cart"></u-icon>
             <view class="icon-btn-name">璐墿杞�</view>
@@ -609,6 +609,18 @@
     // #ifdef MP-WEIXIN
 
     // #endif
+	this.goodsDetail = {};
+	//濡傛灉鏈夊弬鏁癷ds璇存槑浜嬪垎閿�鐭繛鎺ワ紝闇�瑕佽幏鍙栧弬鏁�
+	if (this.routerVal.scene) {
+	  getMpScene(this.routerVal.scene).then((res) => {
+	    if (res.data.success) {
+	      let data = res.data.result.split(","); // skuId,goodsId,distributionId
+	      this.init(data[0], data[1], data[2]);
+	    }
+	  });
+	} else {
+	  this.init(this.routerVal.id, this.routerVal.goodsId, this.routerVal.distributionId);
+	}
   },
   
   onUnload() {
@@ -634,18 +646,18 @@
 	  		userAction(param)
 	  	}
 	  })	
-    this.goodsDetail = {};
-    //濡傛灉鏈夊弬鏁癷ds璇存槑浜嬪垎閿�鐭繛鎺ワ紝闇�瑕佽幏鍙栧弬鏁�
-    if (this.routerVal.scene) {
-      getMpScene(this.routerVal.scene).then((res) => {
-        if (res.data.success) {
-          let data = res.data.result.split(","); // skuId,goodsId,distributionId
-          this.init(data[0], data[1], data[2]);
-        }
-      });
-    } else {
-      this.init(this.routerVal.id, this.routerVal.goodsId, this.routerVal.distributionId);
-    }
+    // this.goodsDetail = {};
+    // //濡傛灉鏈夊弬鏁癷ds璇存槑浜嬪垎閿�鐭繛鎺ワ紝闇�瑕佽幏鍙栧弬鏁�
+    // if (this.routerVal.scene) {
+    //   getMpScene(this.routerVal.scene).then((res) => {
+    //     if (res.data.success) {
+    //       let data = res.data.result.split(","); // skuId,goodsId,distributionId
+    //       this.init(data[0], data[1], data[2]);
+    //     }
+    //   });
+    // } else {
+    //   this.init(this.routerVal.id, this.routerVal.goodsId, this.routerVal.distributionId);
+    // }
   },
 
   methods: {

--
Gitblit v1.8.0