|
@@ -49,9 +49,9 @@
|
|
|
|
|
|
<view class="store-item" v-for="(item,index) in list" :key="index">
|
|
<view class="store-item" v-for="(item,index) in list" :key="index">
|
|
<view @click="goGoodsDetail(item)">
|
|
<view @click="goGoodsDetail(item)">
|
|
- <zs-img :src="item.cover[0]" width="344rpx" height="344rpx" mode="widthFix"></zs-img>
|
|
|
|
|
|
+ <zs-img :src="item.cover[0]" width="344rpx" height="344rpx" :radius="item.productType=='Web'?'full':'half'" mode="widthFix"></zs-img>
|
|
<!-- <zs-img :src="item.goodsVos[0].goodsImg" width="344rpx" height="344rpx" mode=""></zs-img> -->
|
|
<!-- <zs-img :src="item.goodsVos[0].goodsImg" width="344rpx" height="344rpx" mode=""></zs-img> -->
|
|
- <view class="info">
|
|
|
|
|
|
+ <view class="info" v-if="item.productType!='Web'">
|
|
<view class="title">
|
|
<view class="title">
|
|
<!-- <view class="tag">
|
|
<!-- <view class="tag">
|
|
今日特惠
|
|
今日特惠
|
|
@@ -69,9 +69,9 @@
|
|
<view class="price-box">
|
|
<view class="price-box">
|
|
<view class="left">
|
|
<view class="left">
|
|
<text class="price" v-if="item.salePrice">
|
|
<text class="price" v-if="item.salePrice">
|
|
- ¥{{(item.salePrice/100).toFixed(2)}}
|
|
|
|
|
|
+ ¥{{(item.salePrice/100).toFixed(2)}} {{item.productType=='PetrolStation'?'/L':''}}
|
|
</text>
|
|
</text>
|
|
- <text class="label" v-if="(item.labelType=='Place'||item.productType=='MovieTicket')&&item.salePrice">
|
|
|
|
|
|
+ <text class="label" v-if="(item.productType=='Scenic'||item.productType=='Hotel'||item.productType=='Cinema'||item.productType=='MovieTicket'||item.productType=='Restaurant'||item.productType=='Shop')&&item.salePrice">
|
|
起
|
|
起
|
|
</text>
|
|
</text>
|
|
<text class="old-price" v-if="item.originalPrice">
|
|
<text class="old-price" v-if="item.originalPrice">
|
|
@@ -102,8 +102,8 @@
|
|
<view class="store-item" v-for="(item,index) in list1" :key="index">
|
|
<view class="store-item" v-for="(item,index) in list1" :key="index">
|
|
|
|
|
|
<view @click="goGoodsDetail(item)">
|
|
<view @click="goGoodsDetail(item)">
|
|
- <zs-img :src="item.cover[0]" width="344rpx" height="344rpx" mode="widthFix"></zs-img>
|
|
|
|
- <view class="info">
|
|
|
|
|
|
+ <zs-img :src="item.cover[0]" width="344rpx" height="344rpx" :radius="item.productType=='Web'?'full':'half'" mode="widthFix"></zs-img>
|
|
|
|
+ <view class="info" v-if="item.productType!='Web'">
|
|
<view class="title">
|
|
<view class="title">
|
|
<!-- <view class="tag">
|
|
<!-- <view class="tag">
|
|
今日特惠
|
|
今日特惠
|
|
@@ -123,7 +123,7 @@
|
|
<text class="price" v-if="item.salePrice">
|
|
<text class="price" v-if="item.salePrice">
|
|
¥{{(item.salePrice/100).toFixed(2)}} {{item.productType=='PetrolStation'?'/L':''}}
|
|
¥{{(item.salePrice/100).toFixed(2)}} {{item.productType=='PetrolStation'?'/L':''}}
|
|
</text>
|
|
</text>
|
|
- <text class="label" v-if="(item.labelType=='Place'||item.productType=='MovieTicket')&&item.salePrice">
|
|
|
|
|
|
+ <text class="label" v-if="(item.productType=='Scenic'||item.productType=='Hotel'||item.productType=='Cinema'||item.productType=='MovieTicket'||item.productType=='Restaurant'||item.productType=='Shop')&&item.salePrice">
|
|
起
|
|
起
|
|
</text>
|
|
</text>
|
|
<text class="old-price" v-if="item.originalPrice">
|
|
<text class="old-price" v-if="item.originalPrice">
|
|
@@ -145,6 +145,7 @@
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
+
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
@@ -180,8 +181,6 @@
|
|
city:'定位中',
|
|
city:'定位中',
|
|
status: 'more',
|
|
status: 'more',
|
|
current:0,
|
|
current:0,
|
|
- bannerList:['https://alipic.lanhuapp.com/XDSlicePNGMAX2f4cb415a269b2e935c7a97da9077db4d78ddb8306ac44ec1e10274387048a22.png',
|
|
|
|
- 'https://alipic.lanhuapp.com/XDSlicePNGMAX2f4cb415a269b2e935c7a97da9077db4d78ddb8306ac44ec1e10274387048a22.png'],
|
|
|
|
discountsList: [],//菜单
|
|
discountsList: [],//菜单
|
|
advList:[],
|
|
advList:[],
|
|
advList1:[],
|
|
advList1:[],
|
|
@@ -326,6 +325,7 @@
|
|
// uni.setStorageSync('shopInfo', JSON.stringify(item))
|
|
// uni.setStorageSync('shopInfo', JSON.stringify(item))
|
|
let url = ''
|
|
let url = ''
|
|
if (item.productType === 'Web') {
|
|
if (item.productType === 'Web') {
|
|
|
|
+ url = item.meta.url
|
|
console.log('链接');
|
|
console.log('链接');
|
|
} else if (item.productType === 'Recharge') {
|
|
} else if (item.productType === 'Recharge') {
|
|
url = '/detail/virtualGoods/index'
|
|
url = '/detail/virtualGoods/index'
|