| | |
| | | |
| | | <view class="recommend-list"> |
| | | <template v-if="pointList.length > 0"> |
| | | <view v-for="(item, index) in pointList" :key="index" class="point-card" @click="goStoragePage(item)"> |
| | | <view v-for="(item, index) in pointList" :key="index" class="point-card" @click="goShopDetails(item)"> |
| | | <view class="point-thumb"> |
| | | <image class="point-thumb-image" :src="item.coverImg" mode="widthFix"></image> |
| | | </view> |
| | | <view class="point-main"> |
| | | <view class="point-head"> |
| | | <text class="point-name">{{ item.name }}</text> |
| | | <text class="point-distance">{{ item.distanceText }}</text> |
| | | <text class="point-name">{{ item.name ||'' }}</text> |
| | | <text class="point-distance">{{ item.distanceText ||''}}</text> |
| | | </view> |
| | | <view class="point-address"> |
| | | <image src="/static/icon/home_ic_location3@2x.png" mode="aspectFit"></image> |
| | | <text>{{ item.address }}</text> |
| | | <text>{{ item.address ||''}}</text> |
| | | </view> |
| | | <text class="point-time">{{ item.shopHours }}</text> |
| | | <text class="point-time">{{ item.shopHours ||'' }}</text> |
| | | </view> |
| | | </view> |
| | | </template> |
| | |
| | | } |
| | | }); |
| | | }, |
| | | goShopDetails(item){ |
| | | uni.navigateTo({ |
| | | url: '/pages/storage-point-detail/storage-point-detail?id='+item.id |
| | | }) |
| | | }, |
| | | goStoragePage() { |
| | | if (!this.cityId) return uni.showToast({ |
| | | title: '当前城市暂未开通', |