hwq 3 lat temu
rodzic
commit
9291cfef7c
2 zmienionych plików z 5 dodań i 5 usunięć
  1. 2 2
      pages.json
  2. 3 3
      pages/cart/cart.vue

+ 2 - 2
pages.json

@@ -567,8 +567,8 @@
 			},
 			{
 				"pagePath": "pages/cart/cart",
-				"iconPath": "static/tabBar/tab-cart.png",
-				"selectedIconPath": "static/tabBar/tab-cart-current.png",
+				"iconPath": "./static/tabbar/tab-cart.png",
+				"selectedIconPath": "static/tabbar/tab-cart-current.png",
 				"text": "购物车"
 			},
 			{

+ 3 - 3
pages/cart/cart.vue

@@ -45,7 +45,7 @@
 							<view class="item-right">
 								<text class="clamp title">{{ item.productInfo.store_name }}</text>
 								<text class="attr">{{ item.productInfo.attrInfo.suk }}</text>
-								<text class="price">¥{{ item.productInfo.price }}</text>
+								<text class="price">¥{{ item.productInfo.attrInfo? item.productInfo.attrInfo.price : item.productInfo.price }}</text>
 								<view class="munbox flex">
 									<image src="../../static/img/reduce.png" mode="" @click="reduce(item, index)"></image>
 									<input type="number" :value="item.cart_num" disabled />
@@ -106,7 +106,7 @@
 							<view class="item-right">
 								<text class="clamp title">{{ item.productInfo.store_name }}</text>
 								<text class="attr">{{ item.productInfo.attrInfo.suk }}</text>
-								<text class="price">¥{{ item.productInfo.price }}</text>
+								<text class="price">¥{{ item.productInfo.attrInfo? item.productInfo.attrInfo.price : item.productInfo.price }}</text>
 								<view class="munbox flex">
 									<image src="../../static/img/reduce.png" mode="" @click="reduce(item, index)"></image>
 									<input type="number" :value="item.cart_num" disabled />
@@ -398,7 +398,7 @@ export default {
 				let checked = true;
 				list.forEach(item => {
 					if (item.checked === true) {
-						total += item.productInfo.price * item.cart_num;
+						total += item.productInfo.attrInfo.price * item.cart_num;
 					} else if (checked === true) {
 						checked = false;
 					}