|
@@ -28,12 +28,16 @@
|
|
|
<view class="distance">{{ (merchant.distance / 1000).toFixed(2) }}km</view>
|
|
|
</view>
|
|
|
<view class="info-icon">
|
|
|
+ <view class="info-map" @click="handlerFavouriteShop">
|
|
|
+ <u-icon class="user-operate-icon" name='heart' size="24" />
|
|
|
+ <view style="font-size: 20rpx; margin-top: 5rpx">收藏</view>
|
|
|
+ </view>
|
|
|
<view class="info-map">
|
|
|
- <u-icon name="map" size="20"></u-icon>
|
|
|
+ <u-icon name="map" size="24"></u-icon>
|
|
|
<view style="font-size: 20rpx; margin-top: 5rpx">导航</view>
|
|
|
</view>
|
|
|
<view class="info-map" @click="handlerMakeCall">
|
|
|
- <u-icon name="phone" size="20"></u-icon>
|
|
|
+ <u-icon name="phone" size="24"></u-icon>
|
|
|
<view style="font-size: 20rpx; margin-top: 5rpx">电话</view>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -54,10 +58,15 @@
|
|
|
" mode="scaleToFill" @click="$Router.push(`/pages/client/clientPackage/storeDetail?id=${item.id}`)"></image> -->
|
|
|
<image class="img" :src="!Boolean(item.logo) ? '@/static/QR57a.jpg' : item.logo"></image>
|
|
|
<view class="listDetail">
|
|
|
- <view class="item-text">{{ item.name }}</view>
|
|
|
+ <view class="item-text">
|
|
|
+ <view class="item-text-left"> {{ item.name }} </view>
|
|
|
+ <view class="item-text-right">
|
|
|
+ <image class="img" src="@/static/icon/shopCar.png" @click.stop="handlerAddCart(item)"></image>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
<view class="item-flex">
|
|
|
<view class="star">
|
|
|
- <u-rate :count="item.score" :size="14" />
|
|
|
+ <u-rate count="5" v-model="item.score" readonly :size="14" />
|
|
|
<text class="line">|</text>
|
|
|
<text class="points">{{ item.score }}分</text>
|
|
|
</view>
|
|
@@ -66,10 +75,10 @@
|
|
|
<view class="list-item">
|
|
|
<view class="list-price">
|
|
|
<view class="item-l">
|
|
|
- 券后价 <span>¥{{ item.originalPrice.toFixed(2) }}</span>
|
|
|
+ 优惠价 <span>¥{{ item.specialPrice.toFixed(2) }}</span>
|
|
|
</view>
|
|
|
<view class="item-r">
|
|
|
- 门市价 <span>¥{{ item.specialPrice.toFixed(2) }}</span>
|
|
|
+ 门市价 <span>¥{{ item.originalPrice.toFixed(2) }}</span>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="btn-box">
|
|
@@ -85,6 +94,11 @@
|
|
|
</u-empty>
|
|
|
</view>
|
|
|
|
|
|
+ <!-- 底部购物车 -->
|
|
|
+ <view class="bottom-box">
|
|
|
+ <settleBottomBtn/>
|
|
|
+ </view>
|
|
|
+
|
|
|
<!-- 弹窗 -->
|
|
|
<u-popup :show="reserve_show" @close="reserve_show = false" round="20" mode="center">
|
|
|
<view class="draw-box">
|
|
@@ -113,15 +127,13 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
- import {
|
|
|
- getSellsDetail,
|
|
|
- addReservation
|
|
|
- } from '@/api/client/business.js';
|
|
|
- import {
|
|
|
- getCurrentLocation,
|
|
|
- hotMerchant
|
|
|
- } from '@/api/client/home';
|
|
|
+ import { getSellsDetail, addReservation } from '@/api/client/business.js';
|
|
|
+ import { getCurrentLocation, hotMerchant } from '@/api/client/home';
|
|
|
+ import settleBottomBtn from "@/components/settleBottomBtn/settleBottomBtn.vue"
|
|
|
export default {
|
|
|
+ components:{
|
|
|
+ settleBottomBtn
|
|
|
+ },
|
|
|
data() {
|
|
|
return {
|
|
|
merchant: {},
|
|
@@ -297,7 +309,14 @@
|
|
|
});
|
|
|
}
|
|
|
},
|
|
|
+ // 收藏按钮
|
|
|
+ handlerFavouriteShop(){
|
|
|
|
|
|
+ },
|
|
|
+ // 添加购物车
|
|
|
+ handlerAddCart(e){
|
|
|
+ console.log('@@@@e',e);
|
|
|
+ },
|
|
|
formatter(type, value) {
|
|
|
if (type === 'minute') {
|
|
|
return `00`;
|
|
@@ -318,8 +337,9 @@
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
.detail {
|
|
|
- min-height: 100vh;
|
|
|
+ min-height: calc( 100vh - 200rpx );
|
|
|
background-color: #efefef;
|
|
|
+ padding-bottom: 200rpx;
|
|
|
}
|
|
|
|
|
|
// 轮播图
|
|
@@ -434,9 +454,22 @@
|
|
|
}
|
|
|
|
|
|
.item-text {
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+ align-items: center;
|
|
|
font-weight: bold;
|
|
|
margin: 10rpx 0 10rpx;
|
|
|
color: #333;
|
|
|
+ font-size: 36rpx;
|
|
|
+ .item-text-left{
|
|
|
+
|
|
|
+ }
|
|
|
+ .item-text-right{
|
|
|
+ .img{
|
|
|
+ width: 50rpx;
|
|
|
+ height: 50rpx;
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
.item-flex {
|
|
@@ -449,9 +482,9 @@
|
|
|
|
|
|
.star {
|
|
|
display: flex;
|
|
|
-
|
|
|
+ align-items: center;
|
|
|
.line {
|
|
|
- margin-left: 16rpx;
|
|
|
+ margin: 0 12rpx;
|
|
|
margin-top: 5rpx;
|
|
|
font-size: 22rpx;
|
|
|
}
|
|
@@ -466,7 +499,6 @@
|
|
|
}
|
|
|
|
|
|
.list-item {
|
|
|
- margin-top: 40rpx;
|
|
|
display: flex;
|
|
|
justify-content: space-between;
|
|
|
align-items: center;
|
|
@@ -560,4 +592,10 @@
|
|
|
.categoryList {
|
|
|
background-color: #fff;
|
|
|
}
|
|
|
+
|
|
|
+ .bottom-box{
|
|
|
+ width: 100%;
|
|
|
+ position: fixed;
|
|
|
+ bottom: 5%;
|
|
|
+ }
|
|
|
</style>
|