|
@@ -56,7 +56,7 @@
|
|
|
<zs-img :src="item.advertsImg" radius="full" width="344rpx" mode="widthFix" @click.native="jump(item.jumpUrl)"></zs-img>
|
|
|
</template>
|
|
|
<view v-else @click="goGoodsDetail(item)">
|
|
|
- <zs-img :src="item.cover[0]" width="344rpx" height="344rpx" mode=""></zs-img>
|
|
|
+ <zs-img :src="item.cover[0]" width="344rpx" height="344rpx" mode="widthFix"></zs-img>
|
|
|
<!-- <zs-img :src="item.goodsVos[0].goodsImg" width="344rpx" height="344rpx" mode=""></zs-img> -->
|
|
|
<view class="info">
|
|
|
<view class="title">
|
|
@@ -75,27 +75,27 @@
|
|
|
</view> -->
|
|
|
<view class="price-box">
|
|
|
<view class="left">
|
|
|
- <view class="price" v-if="item.salePrice">
|
|
|
+ <text class="price" v-if="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'">
|
|
|
+ </text>
|
|
|
+ <text class="label" v-if="(item.labelType=='Place'||item.productType=='MovieTicket')&&item.salePrice">
|
|
|
起
|
|
|
- </view> -->
|
|
|
- <view class="old-price" v-if="item.originalPrice">
|
|
|
+ </text>
|
|
|
+ <text class="old-price" v-if="item.originalPrice">
|
|
|
¥{{(item.originalPrice/100).toFixed(2)}}
|
|
|
- </view>
|
|
|
+ </text>
|
|
|
</view>
|
|
|
|
|
|
- <view class="right" v-if="item.salesCount">
|
|
|
+ <!-- <view class="right" v-if="item.salesCount">
|
|
|
销量{{item.salesCount}}
|
|
|
- </view>
|
|
|
+ </view> -->
|
|
|
</view>
|
|
|
|
|
|
<view class="address-box">
|
|
|
<view class="address">
|
|
|
{{item.address || ''}}
|
|
|
</view>
|
|
|
- <view class="distance">
|
|
|
+ <view class="distance" v-if="item.distance">
|
|
|
{{item.distance | filterDis}}
|
|
|
</view>
|
|
|
</view>
|
|
@@ -112,7 +112,7 @@
|
|
|
<!-- <image class="ad" :src="item.advertsImg" mode="widthFix"></image> -->
|
|
|
</template>
|
|
|
<view v-else @click="goGoodsDetail(item)">
|
|
|
- <zs-img :src="item.cover[0]" width="344rpx" height="344rpx" mode=""></zs-img>
|
|
|
+ <zs-img :src="item.cover[0]" width="344rpx" height="344rpx" mode="widthFix"></zs-img>
|
|
|
<view class="info">
|
|
|
<view class="title">
|
|
|
<!-- <view class="tag">
|
|
@@ -130,27 +130,27 @@
|
|
|
</view> -->
|
|
|
<view class="price-box">
|
|
|
<view class="left">
|
|
|
- <view class="price" v-if="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'">
|
|
|
+ <text class="price" v-if="item.salePrice">
|
|
|
+ ¥{{(item.salePrice/100).toFixed(2)}} {{item.productType=='PetrolStation'?'/L':''}}
|
|
|
+ </text>
|
|
|
+ <text class="label" v-if="(item.labelType=='Place'||item.productType=='MovieTicket')&&item.salePrice">
|
|
|
起
|
|
|
- </view> -->
|
|
|
- <view class="old-price" v-if="item.originalPrice">
|
|
|
+ </text>
|
|
|
+ <text class="old-price" v-if="item.originalPrice">
|
|
|
¥{{(item.originalPrice/100).toFixed(2)}}
|
|
|
- </view>
|
|
|
+ </text>
|
|
|
</view>
|
|
|
|
|
|
- <view class="right" v-if="item.salesCount">
|
|
|
+ <!-- <view class="right" v-if="item.salesCount">
|
|
|
销量{{item.salesCount}}
|
|
|
- </view>
|
|
|
+ </view> -->
|
|
|
</view>
|
|
|
|
|
|
<view class="address-box">
|
|
|
<view class="address">
|
|
|
{{item.address || ''}}
|
|
|
</view>
|
|
|
- <view class="distance">
|
|
|
+ <view class="distance" v-if="item.distance">
|
|
|
{{item.distance |filterDis}}
|
|
|
</view>
|
|
|
</view>
|
|
@@ -176,6 +176,7 @@
|
|
|
getAdv,
|
|
|
homeSearch
|
|
|
} from '@/api/common.js'
|
|
|
+ import {cityList} from '@/api/movie.js'
|
|
|
import { search } from '@/api/shop.js';
|
|
|
// 腾讯地图
|
|
|
var QQMapWX = require('../../libs/qqmap-wx-jssdk.min.js');
|
|
@@ -200,7 +201,7 @@
|
|
|
list1: [],
|
|
|
copyList1: [],
|
|
|
query:{
|
|
|
- distance:100000000,
|
|
|
+ distance:5000,
|
|
|
latitude:0,
|
|
|
longitude:0,
|
|
|
regionCode:'520101',
|
|
@@ -220,7 +221,7 @@
|
|
|
filters: {
|
|
|
filterDis: function(value) {
|
|
|
if(value<1000){
|
|
|
- return value +'m';
|
|
|
+ return value.toFixed(0) +'m';
|
|
|
}else{
|
|
|
return (value/1000).toFixed(0)+'km'
|
|
|
}
|
|
@@ -449,7 +450,7 @@
|
|
|
|
|
|
this.list = JSON.parse(JSON.stringify(this.copyList))
|
|
|
this.list1 = JSON.parse(JSON.stringify(this.copyList1))
|
|
|
- if(this.query.page == res.content.totalPages){
|
|
|
+ if(this.query.page+1 == res.content.totalPages){
|
|
|
this.status = 'noMore'
|
|
|
}else{
|
|
|
this.status = 'more'
|
|
@@ -567,6 +568,19 @@
|
|
|
})
|
|
|
})
|
|
|
},
|
|
|
+ // 获取电影票城市id
|
|
|
+ cityList(){
|
|
|
+ return new Promise((resolve,reject)=>{
|
|
|
+ cityList().then(res=>{
|
|
|
+ if(res.state == 'Success'){
|
|
|
+ let city = uni.getStorageSync('city').replace('市','')
|
|
|
+ let cityId = res.content.data.filter(item=>item.name == city)[0].cityId
|
|
|
+ uni.setStorageSync('movieCityId',cityId)
|
|
|
+ resolve()
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
+ },
|
|
|
},
|
|
|
onPageScroll(e) {
|
|
|
if(e.scrollTop >= 50){
|
|
@@ -616,6 +630,7 @@
|
|
|
this.getDialogAdv()
|
|
|
Promise.all([this.getMenu(),this.getAdv(),this.getCity()]).then(res=>{
|
|
|
this.search()
|
|
|
+ this.cityList()
|
|
|
})
|
|
|
|
|
|
}
|
|
@@ -845,6 +860,7 @@
|
|
|
.left{
|
|
|
display: flex;
|
|
|
align-items: flex-end;
|
|
|
+ vertical-align: bottom;
|
|
|
.unit{
|
|
|
font-size: 20rpx;
|
|
|
color: $uni-color-primary;
|
|
@@ -852,10 +868,15 @@
|
|
|
}
|
|
|
.price{
|
|
|
font-size: 32rpx;
|
|
|
+ line-height: 32rpx;
|
|
|
color: $uni-color-primary;
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
-
|
|
|
+ .label{
|
|
|
+ font-size: 20rpx;
|
|
|
+ color: #AAAAAA;
|
|
|
+ margin-left: 6rpx;
|
|
|
+ }
|
|
|
.old-price{
|
|
|
font-size: 20rpx;
|
|
|
color: #AAAAAA;
|