Browse Source

2023-4-14

cmy 2 years ago
parent
commit
1c806bb98f
1 changed files with 8 additions and 5 deletions
  1. 8 5
      pages/goods_details/index.vue

+ 8 - 5
pages/goods_details/index.vue

@@ -90,9 +90,9 @@
 											<view class="money font-color skeleton-rect">
 												<text class="num" v-text="storeInfo.price || 0"></text>
-												<text v-if="storeInfo.spec_type">起</text>
-												<!-- <text class="vip-money"
-													v-if="storeInfo.vip_price && storeInfo.vip_price > 0 && storeInfo.is_vip == 1">¥{{ storeInfo.vip_price }}</text> -->
+												<!-- <text v-if="storeInfo.spec_type">起</text>
+												<text class="vip-money"
+													v-if="storeInfo.vip_price && storeInfo.vip_price > 0 && storeInfo.is_vip == 1">¥{{ storeInfo.vip_price }}</text>
 												<image
 													v-if="storeInfo.vip_price && storeInfo.vip_price > 0 && storeInfo.is_vip == 1 && storeInfo.price_type == 'member' && diyProduct.price_type.indexOf('2') != -1"
 													src="../../static/images/vip.png"></image>
@@ -100,6 +100,9 @@
 													v-if="storeInfo.vip_price && storeInfo.vip_price > 0 && storeInfo.price_type == 'level' && diyProduct.price_type.indexOf('1') != -1">
 													<text
 														class="iconfont icon-dengjitubiao"></text>{{storeInfo.level_name}}
+												</view> -->
+												<view class="label acea-row skeleton-rect" v-if="(0+storeInfo.ot_price)>0" >
+													<view v-text="'原价:¥' + (storeInfo.ot_price || 0)"></view>
 												</view>
 											</view>
 											<view class="iconfont icon-fenxiang skeleton-rect"
@@ -262,7 +265,7 @@
 											<view class="iconfont icon-jiantou"></view>
 										</view>
 										<view class="storeInfo acea-row row-between row-top"
-											v-if="isMention && storeLen && diyProduct.is_store" @tap="showStoreList">
+											v-if="isMention && storeLen && diyProduct.is_store" @tap="storeInfo.type==0? showStoreList():''">
 											<view class="acea-row row-top row-between">
 												门店:
 												<storeLis :num='1' :ids='parseInt(id)' @getStoreList="getStoreList">
@@ -1330,7 +1333,7 @@
 					[]); //套餐数据
 					let promotions = res.data.promotions[0];
 					that.$set(that, 'promotions_type', res.data.promotions.length ? promotions.promotions_type :
-					0);
+						0);
 					if (res.data.promotions.length && promotions.promotions_type == 1) {
 						let discount = that.$util.$h.Div(promotions.discount, 100);
 						let discountPrice = that.$util.$h.Mul(discount, this.storeInfo.price);