From 4d0b2e06acf238628fbb7289f7c81f230ec9bd6d Mon Sep 17 00:00:00 2001
From: weipengfei <2187978347@qq.com>
Date: Wed, 17 Apr 2024 18:11:48 +0800
Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 manifest.json                         |  4 ++--
 pages/order_addcart/order_addcart.vue | 15 +++++++++------
 2 files changed, 11 insertions(+), 8 deletions(-)

diff --git a/manifest.json b/manifest.json
index f37ad59..0eebeee 100644
--- a/manifest.json
+++ b/manifest.json
@@ -2,8 +2,8 @@
     "name" : "惠农生活",
     "appid" : "__UNI__3A527D1",
     "description" : "",
-    "versionName" : "2.0.33",
-    "versionCode" : 2033,
+    "versionName" : "2.0.34",
+    "versionCode" : 2034,
     "transformPx" : false,
     /* 5+App特有相关 */
     "app-plus" : {
diff --git a/pages/order_addcart/order_addcart.vue b/pages/order_addcart/order_addcart.vue
index 35636a6..f1abdf0 100644
--- a/pages/order_addcart/order_addcart.vue
+++ b/pages/order_addcart/order_addcart.vue
@@ -88,9 +88,9 @@
 											<text class="money-price">¥{{goods.productAttr.price}}</text>
 											<text class="money-unit">/份</text>
 										</view>
-										<view v-if="goods.productAttr.show_svip_price" class="vipImg">
+										<!-- <view v-if="goods.productAttr.show_svip_price" class="vipImg">
 											<image :src="`${domain}/static/images/svip.png`"></image>
-										</view>
+										</view> -->
 									</view>
 								</view>
 								<view class='carnum acea-row row-center-wrapper'>
@@ -231,6 +231,7 @@
 	import {
 		toLogin
 	} from '@/libs/login.js';
+import { Toast } from '../../libs/uniApi';
 	const app = getApp();
 	export default {
 		props: {
@@ -503,6 +504,12 @@
 					// //打开属性
 					// that.DefaultSelect(goods)
 					cartProductAttr(id).then(res => {
+            if(res.data.attr.length==0)return Toast('此商品为单规格商品');
+            const sku = {}
+            res.data.attrValue.forEach((itemn) => {
+              if(this.tabsCurr==2) itemn.price = itemn.wholesale_price; //把价格设置为批发价
+            	sku[itemn.sku] = itemn;
+            })
 						goods.attr = res.data.attr;
 						goods.attrValue = res.data.attrValue
 						that.attrValue = goods.productAttr.sku
@@ -510,10 +517,6 @@
 						that.goods = JSON.parse((JSON.stringify(goods)));
 						that.currSku = goods.productAttr.sku.split(",");
 						that.$set(that.attr, 'productAttr', res.data.attr);
-						const sku = {}
-						res.data.attrValue.forEach((itemn) => {
-							sku[itemn.sku] = itemn;
-						})
 						that.$set(that, 'productValue', sku);
 						let productSelect = sku[that.attrValue];
 						that.isOpen = that.attr.cartAttr = true;