2023-02-15
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
<text class="title clamp">{{ item.goods.name }}</text>
|
||||
<view class="price-box">
|
||||
<text class="price">{{ item.groupPrice }}</text>
|
||||
<text>原价 {{ item.goods.price }}</text>
|
||||
<!-- <text>原价 {{ item.goods.price }}</text> -->
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -395,11 +395,11 @@ page,
|
||||
color: $font-color-light;
|
||||
}
|
||||
.price {
|
||||
font-size: $font-lg;
|
||||
font-size: 26upx;
|
||||
color: $uni-color-primary;
|
||||
line-height: 1;
|
||||
&:before {
|
||||
content: '¥';
|
||||
content: '惠农团购价¥';
|
||||
font-size: 26upx;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -19,18 +19,18 @@
|
||||
<view v-for="(item, index) in goodsList" :key="index" class="goods-item" @click="navToDetailPage(item)">
|
||||
<view class="image-wrapper"><image :src="item.pic" mode="aspectFill"></image></view>
|
||||
<text class="title clamp">{{ item.name }}</text>
|
||||
<view class="price-box" v-if="item.isFenxiao == 1">
|
||||
<view class="price-box" >
|
||||
<text class="price">{{ item.price }}</text>
|
||||
<!-- <text>佣金 ¥{{ item.fenxiaoPrice }}</text> -->
|
||||
</view>
|
||||
<view class="price-box" v-if="item.isVip == 1">
|
||||
<!-- <view class="price-box" v-if="item.isVip == 1">
|
||||
<text class="price">会员价{{ item.vipPrice }}</text>
|
||||
<text>商品价 ¥{{ item.price }}</text>
|
||||
</view>
|
||||
<view class="price-box" v-else-if="item.isFenxiao == 0 && item.isVip == 0">
|
||||
</view> -->
|
||||
<!-- <view class="price-box" v-else-if="item.isFenxiao == 0 && item.isVip == 0">
|
||||
<text class="price">{{ item.price }}</text>
|
||||
<text>已售 {{ item.sale }}</text>
|
||||
</view>
|
||||
</view> -->
|
||||
</view>
|
||||
</view>
|
||||
<!-- 列表显示 -->
|
||||
@@ -457,12 +457,12 @@ page,
|
||||
color: $font-color-light;
|
||||
}
|
||||
.price {
|
||||
font-size: $font-lg;
|
||||
font-size: 26upx;
|
||||
color: $uni-color-primary;
|
||||
line-height: 1;
|
||||
&:before {
|
||||
content: '惠农价¥';
|
||||
font-size: $font-lg;
|
||||
font-size: 26upx;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
<text class="price" v-else-if="!goods.vipPrice">惠农价¥{{ goods.price }}</text>
|
||||
<text class="m-price" v-if="!goods.vipPrice">县区商超价{{ goods.originalPrice }}</text>
|
||||
<text class="m-price" v-else-if="goods.vipPrice && goods.vipPrice > 0">¥{{ goods.price }}</text>
|
||||
<text class="price">优惠¥{{ goods.originalPrice- goods.price }}</text>
|
||||
<text class="price">优惠¥{{ (goods.originalPrice- goods.price) | formatNumber}}</text>
|
||||
<text class="coupon-tip" v-if="goods.memberRate && goods.memberRate != 10">会员折扣{{ goods.memberRate }}折</text>
|
||||
</view>
|
||||
<view class="bot-row">
|
||||
@@ -376,6 +376,10 @@ export default {
|
||||
formatCreateTime(time) {
|
||||
let date = new Date(time);
|
||||
return formatDate(date, 'yyyy-MM-dd hh:mm:ss');
|
||||
},
|
||||
|
||||
formatNumber(number) {
|
||||
return new Number(number).toFixed(2);
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
||||
Reference in New Issue
Block a user