Browse Source

商品详情优化

zhengjinyi 2 years ago
parent
commit
c2fd91f783
2 changed files with 22 additions and 4 deletions
  1. 10 4
      pages/goods/components/cm-price.vue
  2. 12 0
      pages/goods/product.vue

+ 10 - 4
pages/goods/components/cm-price.vue

@@ -31,7 +31,7 @@
 				<view class="wrap-main-item">
 					<view
 						class="p-price tui-skeleton-fillet"
-						:class="(PromotionsFormat(product.promotions) || product.svipProductFlag == 1) ? 'none' : ''"
+						:class="PromotionsFormat(product.promotions) ? 'none' : ''"
 					>
 						<text class="txt sm">¥</text>
 						<text class="txt big">{{
@@ -73,7 +73,7 @@
 					<view
 						v-else
 						class="p-price tui-skeleton-fillet"
-						:class="( PromotionsFormat(product.promotions) || product.svipProductFlag == 1 )? 'none' : ''"
+						:class="PromotionsFormat(product.promotions)? 'none' : ''"
 					>
 						<text class="txt sm">¥</text>
 						<text class="txt big">{{
@@ -105,6 +105,9 @@
 							</view>
 						</template>
 					</view>
+					<view class="p-right-price">
+						市场价:<text class="none">¥{{ product.normalPrice | NumFormat }}</text> 
+					</view>
 				</view>
 			</template>
 			<!-- 供应商  -->
@@ -115,7 +118,7 @@
 						<view
 							v-else
 							class="p-price tui-skeleton-fillet"
-							:class="(PromotionsFormat(product.promotions) || product.svipProductFlag == 1)? 'none' : ''"
+							:class="PromotionsFormat(product.promotions) ? 'none' : ''"
 						>
 							<text class="txt sm">¥</text>
 							<text class="txt big">{{
@@ -178,7 +181,7 @@
 					<view class="wrap-main-item">
 						<view
 							class="p-price tui-skeleton-fillet"
-							:class="(PromotionsFormat(product.promotions) || product.svipProductFlag == 1 )? 'none' : ''"
+							:class="PromotionsFormat(product.promotions) ? 'none' : ''"
 						>
 							<text class="txt sm">¥</text>
 							<text class="txt big">{{
@@ -210,6 +213,9 @@
 								</view>
 							</template>
 						</view>
+						<view class="p-right-price">
+							市场价:<text class="none">¥{{ product.normalPrice | NumFormat}}</text> 
+						</view>
 					</view>
 				</template>
 			</template>

+ 12 - 0
pages/goods/product.vue

@@ -175,6 +175,7 @@
 					<view class="product-item-none" v-if="goodsData.isNoneDisabled">
 						<image class="none-image" :src="productNoneImage" mode=""></image>
 						<view class="none-text">此商品已{{ goodsData.disabledText }},请浏览以下推荐商品~</view>
+						<view class="none-text">咨询类似商品,请联系客服!</view>
 					</view>
 					<!-- 选择规格 -->
 					<view class="product-parameter" v-if="isShowButton || userIdentity === 1" @click="showPopup(3)">
@@ -1828,6 +1829,17 @@ page {
 					font-size: $font-size-34;
 				}
 			}
+			.p-right-price{
+				height: 56rpx;
+				line-height: 56rpx;
+				float: right;
+				color: #999999;
+				font-size: $font-size-30;
+				.none{
+					font-size: $font-size-26;
+					text-decoration: line-through;
+				}
+			}
 		}
 		.floor-item-act {
 			height: 56rpx;