소스 검색

商品详情修改

hwb0 3 년 전
부모
커밋
c19a409a41
2개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 1
      packageGoods/goods/detail.vue
  2. 2 2
      packagePrize/goods/detail.vue

+ 1 - 1
packageGoods/goods/detail.vue

@@ -15,7 +15,7 @@
 							<image src="../../static/public/goods_coin.png" mode=""></image>
 							<view>× {{ info.exchangePrice }}</view>
 						</view>
-						<view class="txt">原价:<text>{{ info.originPrice }}</text></view>
+						<view class="txt" v-if="info.originPrice">原价:<text>{{ info.originPrice }}</text></view>
 					</view>
 					<view class="detail-info-left__price">¥{{ $numberFormat(info.value) }}</view>
 				</view>

+ 2 - 2
packagePrize/goods/detail.vue

@@ -14,9 +14,9 @@
 							<image src="../../static/public/goods_coin.png" mode=""></image>
 							<view>× {{ info.exchangePrice }}</view>
 						</view>
-						<view class="txt">原价:<text>¥{{ $numberFormat(999) }}</text></view>
+						<view class="txt" v-if="info.originPrice">原价:<text>{{ info.originPrice }}</text></view>
 					</view>
-					<view class="detail-info-left__price">¥{{ $numberFormat(999) }}</view>
+					<view class="detail-info-left__price">¥{{ $numberFormat(info.value) }}</view>
 				</view>
 				<view class="detail-info-right" v-show="false">销量:30个</view>
 			</view>