Browse Source

feat:合并最新分支

liuxiangxin 4 months ago
parent
commit
6199200b21
2 changed files with 14 additions and 1 deletions
  1. 1 1
      manifest.json
  2. 13 0
      pages/product/index.vue

+ 1 - 1
manifest.json

@@ -1,6 +1,6 @@
 {
     "name" : "开邻智数",
-    "appid" : "__UNI__90B60D1",
+    "appid" : "__UNI__DE440B9",
     "description" : "",
     "versionName" : "1.0.0",
     "versionCode" : "100",

+ 13 - 0
pages/product/index.vue

@@ -438,9 +438,20 @@
 					if (re.code == 'success') {
 						// 刷新数据
 						this.productInfo = re.data;
+						
 						if (this.productInfo.automatic_info.id) {
 							this.regiment_id = this.productInfo.automatic_info.id
 						}
+						// // 如果有SKU
+						// if( this.productInfo.product_sku.length ){
+						// 	// 获取最低的SKU价格数据赋值
+						// 	for (let i in this.productInfo.product_sku) {
+						// 		if( this.productInfo.product_sku[i].price < this.productInfo.price ) {
+						// 			this.productInfo.price = this.productInfo.product_sku[i].price;
+						// 			if( this.productInfo.product_sku[i].market_price != 0 ) this.productInfo.market_price = this.productInfo.product_sku[i].market_price;
+						// 		}
+						// 	}
+						// }
 						//设置默认sku
 						this.sku_id = 0;
 						// 显示图片
@@ -1082,6 +1093,8 @@
 						}
 						// 产品价格修改
 						this.productInfo.price = this.productInfo.product_sku[i].price;
+						// 产品价格修改
+						if( this.productInfo.product_sku[i].market_price != 0.00 ) this.productInfo.market_price = this.productInfo.product_sku[i].market_price;
 						// 产品规格修改
 						this.productInfo.spec = this.productInfo.product_sku[i].attr_names;
 						// 产品库存