From 3a2524692711cf35fc142881b2837368ae2c3d25 Mon Sep 17 00:00:00 2001
From: peng <peng.com>
Date: 星期一, 13 十月 2025 14:57:19 +0800
Subject: [PATCH] 定制商品

---
 pages/product/goods.vue |   36 ++++++++++++++++++++++++------------
 1 files changed, 24 insertions(+), 12 deletions(-)

diff --git a/pages/product/goods.vue b/pages/product/goods.vue
index ae818f0..1e4aea1 100644
--- a/pages/product/goods.vue
+++ b/pages/product/goods.vue
@@ -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