|
@@ -60,9 +60,9 @@
|
|
|
<!-- <zs-img :src="item.goodsVos[0].goodsImg" width="344rpx" height="344rpx" mode=""></zs-img> -->
|
|
|
<view class="info">
|
|
|
<view class="title">
|
|
|
- <view class="tag">
|
|
|
+ <!-- <view class="tag">
|
|
|
今日特惠
|
|
|
- </view>
|
|
|
+ </view> -->
|
|
|
<view class="text">
|
|
|
{{item.title}}
|
|
|
</view>
|
|
@@ -70,16 +70,19 @@
|
|
|
<!-- <view class="desc">
|
|
|
{{item.goodsVos[0].goodsDescribe}}
|
|
|
</view> -->
|
|
|
- <view class="discount-tag" v-if="item.salePrice&&item.originalPrice">
|
|
|
+ <!-- <view class="discount-tag" v-if="item.salePrice&&item.originalPrice">
|
|
|
{{(item.salePrice/item.originalPrice)*10}}
|
|
|
- </view>
|
|
|
+ </view> -->
|
|
|
<view class="price-box">
|
|
|
<view class="left">
|
|
|
<view class="price" v-if="item.salePrice">
|
|
|
- ¥{{item.salePrice}}
|
|
|
+ ¥{{(item.salePrice/100).toFixed(2)}}
|
|
|
</view>
|
|
|
+ <!-- <view class="label" v-if="item.productType!='Shop'&&item.productType!='ShopGoods'&&item.productType!='ShopService'&&item.productType!='PetrolStation'">
|
|
|
+ 起
|
|
|
+ </view> -->
|
|
|
<view class="old-price" v-if="item.originalPrice">
|
|
|
- ¥{{item.originalPrice}}
|
|
|
+ ¥{{(item.originalPrice/100).toFixed(2)}}
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
@@ -87,6 +90,15 @@
|
|
|
销量{{item.salesCount}}
|
|
|
</view>
|
|
|
</view>
|
|
|
+
|
|
|
+ <view class="address-box">
|
|
|
+ <view class="address">
|
|
|
+ {{item.address || ''}}
|
|
|
+ </view>
|
|
|
+ <view class="distance">
|
|
|
+ {{item.distance | filterDis}}
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
@@ -103,27 +115,29 @@
|
|
|
<zs-img :src="item.cover[0]" width="344rpx" height="344rpx" mode=""></zs-img>
|
|
|
<view class="info">
|
|
|
<view class="title">
|
|
|
- <view class="tag">
|
|
|
+ <!-- <view class="tag">
|
|
|
今日特惠
|
|
|
- </view>
|
|
|
+ </view> -->
|
|
|
<view class="text">
|
|
|
{{item.title}}
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="discount-tag">
|
|
|
- <!-- {{(item.salePrice/item.originalPrice)*10}} -->
|
|
|
- 4.5折
|
|
|
- </view>
|
|
|
+ <!-- <view class="discount-tag">
|
|
|
+ {{(item.salePrice/item.originalPrice)*10}}
|
|
|
+ </view> -->
|
|
|
<!-- <view class="desc">
|
|
|
{{item.goodsVos[0].goodsDescribe}}
|
|
|
</view> -->
|
|
|
<view class="price-box">
|
|
|
<view class="left">
|
|
|
<view class="price" v-if="item.salePrice">
|
|
|
- ¥{{item.salePrice}}
|
|
|
+ ¥{{(item.salePrice/100).toFixed(2)}}
|
|
|
</view>
|
|
|
+ <!-- <view class="label" v-if="item.productType!='Shop'&&item.productType!='ShopGoods'&&item.productType!='ShopService'&&item.productType!='PetrolStation'">
|
|
|
+ 起
|
|
|
+ </view> -->
|
|
|
<view class="old-price" v-if="item.originalPrice">
|
|
|
- ¥{{item.originalPrice}}
|
|
|
+ ¥{{(item.originalPrice/100).toFixed(2)}}
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
@@ -131,6 +145,15 @@
|
|
|
销量{{item.salesCount}}
|
|
|
</view>
|
|
|
</view>
|
|
|
+
|
|
|
+ <view class="address-box">
|
|
|
+ <view class="address">
|
|
|
+ {{item.address || ''}}
|
|
|
+ </view>
|
|
|
+ <view class="distance">
|
|
|
+ {{item.distance |filterDis}}
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -194,7 +217,15 @@
|
|
|
|
|
|
}
|
|
|
},
|
|
|
-
|
|
|
+ filters: {
|
|
|
+ filterDis: function(value) {
|
|
|
+ if(value<1000){
|
|
|
+ return value +'m';
|
|
|
+ }else{
|
|
|
+ return (value/1000).toFixed(0)+'km'
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
methods: {
|
|
|
// swiper变动
|
|
|
swiperChange(val) {
|
|
@@ -821,6 +852,7 @@
|
|
|
color: $uni-color-primary;
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
+
|
|
|
.old-price{
|
|
|
font-size: 20rpx;
|
|
|
color: #AAAAAA;
|
|
@@ -834,6 +866,30 @@
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ .address-box{
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: space-between;
|
|
|
+ font-size: 20rpx;
|
|
|
+ color: #AAAAAA;
|
|
|
+ margin-top: 15rpx;
|
|
|
+ .address{
|
|
|
+ width: 200rpx;
|
|
|
+ overflow: hidden;
|
|
|
+ text-overflow: ellipsis;
|
|
|
+ /* 弹性伸缩盒子模型显示 */
|
|
|
+ display: -webkit-box;
|
|
|
+ /* 限制在一个块元素显示的文本的行数 */
|
|
|
+ -webkit-line-clamp: 1;
|
|
|
+ /* 设置或检索伸缩盒对象的子元素的排列方式 */
|
|
|
+ -webkit-box-orient: vertical;
|
|
|
+
|
|
|
+ }
|
|
|
+ .distance{
|
|
|
+
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
}
|