From 9d8ad3056443aa0d7d4b26622ea660319cf52d79 Mon Sep 17 00:00:00 2001
From: zxl <763096477@qq.com>
Date: 星期四, 15 一月 2026 10:46:04 +0800
Subject: [PATCH] 页面调整优化

---
 pages/product/goods.vue |   56 +++++++++++++++++++++++++++++++++++++++-----------------
 1 files changed, 39 insertions(+), 17 deletions(-)

diff --git a/pages/product/goods.vue b/pages/product/goods.vue
index ae818f0..500a4c0 100644
--- a/pages/product/goods.vue
+++ b/pages/product/goods.vue
@@ -209,15 +209,15 @@
       <view class="page-bottom mp-iphonex-bottom" id="pageBottom">
         <view class="icon-btn">
         <view class="icon-btn-item" @click="navigateToStore(goodsDetail.storeId)">
-            <u-icon size="34" class="red" name="home-fill"></u-icon>
+            <image style="width: 34rpx; height: 34rpx;" src="/static/tabbar/home-new-s.png" mode="aspectFit"></image>
             <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>
+            <image style="width: 34rpx; height: 34rpx;" src="/static/tabbar/cart-new.png" mode="aspectFit"></image>
             <view class="icon-btn-name">璐墿杞�</view>
             <view v-if="nums && nums > 0" class="num-icon">{{ nums }}</view>
           </view>
@@ -529,7 +529,7 @@
 
  onShareAppMessage(e) {
  		console.log("寮�濮嬪垎浜�")
- 		console.log(this.goodsDetail)
+ 		console.log(JSON.stringify(this.goodsDetail))
  		// 杩斿洖涓�涓狿romise
  		return new Promise((resolve) => {
  			
@@ -581,6 +581,16 @@
 			}
 		});
 	}
+	const shareId =   uni.getStorageSync("shareId");
+	if(shareId){
+	let param = {
+		addType:"SHARE_USER_REGISTRY",
+		extend:"",
+	}
+	let extend = {shareId:shareId}
+	param.extend = JSON.stringify(extend)
+	addPrizeNum(param); 	
+	}
 	this.actionParam.pageParams = JSON.stringify(options)
 	  if(options.q){
 		  const queryParam = {
@@ -609,6 +619,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 +656,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