|
@@ -1,29 +1,240 @@
|
|
|
<template>
|
|
|
- <view class="container">
|
|
|
- <view class="head-wrap">
|
|
|
- <u-swiper height="90" radius="0" :list="list6" :autoplay="false" class="swiper">
|
|
|
- </u-swiper>
|
|
|
- <view class="business">
|
|
|
- <view class="avatar">
|
|
|
- <u-avatar size="56"></u-avatar>
|
|
|
+ <view class="detail">
|
|
|
+ <!-- 轮播图 -->
|
|
|
+ <view class="carousel-map">
|
|
|
+ <u-swiper
|
|
|
+ :list="list3"
|
|
|
+ previousMargin="0"
|
|
|
+ nextMargin="100"
|
|
|
+ circular
|
|
|
+ :autoplay="false"
|
|
|
+ bgColor="#ffffff"
|
|
|
+ />
|
|
|
+ <view class="carousel-item">
|
|
|
+ <view class="mark">
|
|
|
+ <view class="mark-item">5.00分</view>
|
|
|
+ <u-rate
|
|
|
+ :count="count"
|
|
|
+ v-model="value"
|
|
|
+ active-color="#fff"
|
|
|
+ inactive-color="#fff"
|
|
|
+ :size="12"
|
|
|
+ />
|
|
|
</view>
|
|
|
- <view class="collect"> 收藏 </view>
|
|
|
- <view class="name">商家名称</view>
|
|
|
- <view class="introduce">商家介绍商家介绍</view>
|
|
|
+ <view class="good-item">近期有6266个购买者给了给好评</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="content-info">
|
|
|
- <u-cell title="位置" label="xxxxxxx" :border="false"></u-cell>
|
|
|
- <u-cell title="电话" label="xxxxxxxxxxx" :border="false"></u-cell>
|
|
|
- <u-cell title="营业时间" label="9:00-24:00" :border="false"></u-cell>
|
|
|
- <u-cell title="简介" :border="false">
|
|
|
- <view slot="label" class="u-line-1">
|
|
|
- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
|
|
+
|
|
|
+ <!-- 商家信息 -->
|
|
|
+ <view class="merchant-info">
|
|
|
+ <view class="info-title">
|
|
|
+ <view>养车工场店(襄阳五中店)</view>
|
|
|
+ <text class="info-mark">1.5w+单</text>
|
|
|
+ </view>
|
|
|
+ <view class="info-tag">商家信息</view>
|
|
|
+ <view class="info-item">
|
|
|
+ <view class="info-text">
|
|
|
+ <view>营业时间:9:00 ~ 24:00</view>
|
|
|
+ <view>电话号码:18285564342</view>
|
|
|
+ <view>贵州省贵阳市榕江县栽麻乡小利村三组</view>
|
|
|
+ <view class="distance">距离您1.84km</view>
|
|
|
</view>
|
|
|
- </u-cell>
|
|
|
+ <view class="info-icon">
|
|
|
+ <view class="info-map">
|
|
|
+ <u-icon name="map" size="25"></u-icon>
|
|
|
+ <view>导航</view>
|
|
|
+ </view>
|
|
|
+ <view class="info-map">
|
|
|
+ <u-icon name="phone" size="25"></u-icon>
|
|
|
+ <view>电话</view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
- <view>
|
|
|
- <u-tabs :list="list"></u-tabs>
|
|
|
+
|
|
|
+ <!-- 分类 -->
|
|
|
+ <view class="sort">
|
|
|
+ <u-tabs
|
|
|
+ :list="list1"
|
|
|
+ @click="click"
|
|
|
+ lineWidth="30"
|
|
|
+ lineColor="#5992bb"
|
|
|
+ :activeStyle="{
|
|
|
+ color: '#5992bb',
|
|
|
+ fontWeight: 'bold',
|
|
|
+ transform: 'scale(1.05)',
|
|
|
+ }"
|
|
|
+ :inactiveStyle="{
|
|
|
+ color: '#000',
|
|
|
+ transform: 'scale(1)',
|
|
|
+ }"
|
|
|
+ itemStyle="padding-left: 15px; padding-right: 15px; height: 40px;"
|
|
|
+ />
|
|
|
+ <view class="list" @click="$Router.push('/pages/business/service/index')">
|
|
|
+ <Image src="https://cdn.uviewui.com/uview/album/1.jpg"></Image>
|
|
|
+ <view>
|
|
|
+ <view class="item-text"
|
|
|
+ >【养车】标题标题标题标题标题标题标题标题……</view
|
|
|
+ >
|
|
|
+ <view class="item-flex">
|
|
|
+ <view class="star">
|
|
|
+ <u-rate :count="count" v-model="value" :size="14" />
|
|
|
+ <text class="line">|</text>
|
|
|
+ <text class="points">4.93分</text>
|
|
|
+ </view>
|
|
|
+ <view>989单</view>
|
|
|
+ </view>
|
|
|
+ <view class="list-item">
|
|
|
+ <view>
|
|
|
+ <view class="price"
|
|
|
+ >券后价
|
|
|
+ <text class="price-item">¥</text>
|
|
|
+ <text class="price-count">19</text>
|
|
|
+ </view>
|
|
|
+ <view class="gate-rate">
|
|
|
+ <text>门市价</text>
|
|
|
+ <text class="gate-rate-item">¥30</text>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="appoint">
|
|
|
+ <text class="appoint-item">预约</text>
|
|
|
+ <text class="Buy">购买</text>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="list">
|
|
|
+ <Image src="https://cdn.uviewui.com/uview/album/8.jpg"></Image>
|
|
|
+ <view>
|
|
|
+ <view class="item-text"
|
|
|
+ >【养车】标题标题标题标题标题标题标题标题……</view
|
|
|
+ >
|
|
|
+ <view class="item-flex">
|
|
|
+ <view class="star">
|
|
|
+ <u-rate :count="count" v-model="value" :size="14" />
|
|
|
+ <text class="line">|</text>
|
|
|
+ <text class="points">4.93分</text>
|
|
|
+ </view>
|
|
|
+ <view>989单</view>
|
|
|
+ </view>
|
|
|
+ <view class="list-item">
|
|
|
+ <view>
|
|
|
+ <view class="price"
|
|
|
+ >券后价
|
|
|
+ <text class="price-item">¥</text>
|
|
|
+ <text class="price-count">19</text>
|
|
|
+ </view>
|
|
|
+ <view class="gate-rate">
|
|
|
+ <text>门市价</text>
|
|
|
+ <text class="gate-rate-item">¥30</text>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="appoint">
|
|
|
+ <text class="appoint-item">预约</text>
|
|
|
+ <text class="Buy">购买</text>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="list">
|
|
|
+ <Image src="https://cdn.uviewui.com/uview/album/2.jpg"></Image>
|
|
|
+ <view>
|
|
|
+ <view class="item-text"
|
|
|
+ >【养车】标题标题标题标题标题标题标题标题……</view
|
|
|
+ >
|
|
|
+ <view class="item-flex">
|
|
|
+ <view class="star">
|
|
|
+ <u-rate :count="count" v-model="value" :size="14" />
|
|
|
+ <text class="line">|</text>
|
|
|
+ <text class="points">4.93分</text>
|
|
|
+ </view>
|
|
|
+ <view>989单</view>
|
|
|
+ </view>
|
|
|
+ <view class="list-item">
|
|
|
+ <view>
|
|
|
+ <view class="price"
|
|
|
+ >券后价
|
|
|
+ <text class="price-item">¥</text>
|
|
|
+ <text class="price-count">19</text>
|
|
|
+ </view>
|
|
|
+ <view class="gate-rate">
|
|
|
+ <text>门市价</text>
|
|
|
+ <text class="gate-rate-item">¥30</text>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="appoint">
|
|
|
+ <text class="appoint-item">预约</text>
|
|
|
+ <text class="Buy">购买</text>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="list">
|
|
|
+ <Image src="https://cdn.uviewui.com/uview/album/4.jpg"></Image>
|
|
|
+ <view>
|
|
|
+ <view class="item-text"
|
|
|
+ >【养车】标题标题标题标题标题标题标题标题……</view
|
|
|
+ >
|
|
|
+ <view class="item-flex">
|
|
|
+ <view class="star">
|
|
|
+ <u-rate :count="count" v-model="value" :size="14" />
|
|
|
+ <text class="line">|</text>
|
|
|
+ <text class="points">4.93分</text>
|
|
|
+ </view>
|
|
|
+ <view>989单</view>
|
|
|
+ </view>
|
|
|
+ <view class="list-item">
|
|
|
+ <view>
|
|
|
+ <view class="price"
|
|
|
+ >券后价
|
|
|
+ <text class="price-item">¥</text>
|
|
|
+ <text class="price-count">19</text>
|
|
|
+ </view>
|
|
|
+ <view class="gate-rate">
|
|
|
+ <text>门市价</text>
|
|
|
+ <text class="gate-rate-item">¥30</text>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="appoint">
|
|
|
+ <text class="appoint-item">预约</text>
|
|
|
+ <text class="Buy">购买</text>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="list">
|
|
|
+ <Image src="https://cdn.uviewui.com/uview/album/6.jpg"></Image>
|
|
|
+ <view>
|
|
|
+ <view class="item-text"
|
|
|
+ >【养车】标题标题标题标题标题标题标题标题……</view
|
|
|
+ >
|
|
|
+ <view class="item-flex">
|
|
|
+ <view class="star">
|
|
|
+ <u-rate :count="count" v-model="value" :size="14" />
|
|
|
+ <text class="line">|</text>
|
|
|
+ <text class="points">4.93分</text>
|
|
|
+ </view>
|
|
|
+ <view>989单</view>
|
|
|
+ </view>
|
|
|
+ <view class="list-item">
|
|
|
+ <view>
|
|
|
+ <view class="price"
|
|
|
+ >券后价
|
|
|
+ <text class="price-item">¥</text>
|
|
|
+ <text class="price-count">19</text>
|
|
|
+ </view>
|
|
|
+ <view class="gate-rate">
|
|
|
+ <text>门市价</text>
|
|
|
+ <text class="gate-rate-item">¥30</text>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="appoint">
|
|
|
+ <text class="appoint-item">预约</text>
|
|
|
+ <text class="Buy">购买</text>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</template>
|
|
@@ -32,88 +243,225 @@
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
|
- id: null, // 商家id
|
|
|
- currentNum: 0,
|
|
|
- list6: [
|
|
|
- 'https://cdn.uviewui.com/uview/swiper/swiper2.png',
|
|
|
+ count: 5,
|
|
|
+ value: 3,
|
|
|
+ list3: [
|
|
|
'https://cdn.uviewui.com/uview/swiper/swiper3.png',
|
|
|
+ 'https://cdn.uviewui.com/uview/swiper/swiper2.png',
|
|
|
'https://cdn.uviewui.com/uview/swiper/swiper1.png',
|
|
|
],
|
|
|
- list: [
|
|
|
- {
|
|
|
- name: '全部',
|
|
|
- },
|
|
|
- {
|
|
|
- name: '保养',
|
|
|
- },
|
|
|
- {
|
|
|
- name: '养成',
|
|
|
- },
|
|
|
- {
|
|
|
- name: '维修',
|
|
|
- },
|
|
|
- {
|
|
|
- name: '其他',
|
|
|
- },
|
|
|
+ list1: [
|
|
|
+ { name: '全部' },
|
|
|
+ { name: '养车' },
|
|
|
+ { name: '维修' },
|
|
|
+ { name: '改装' },
|
|
|
+ { name: '补胎' },
|
|
|
+ { name: '补胎' },
|
|
|
+ { name: '其他' },
|
|
|
],
|
|
|
};
|
|
|
},
|
|
|
- onLoad(option) {
|
|
|
- if (option.id) this.id = option.id;
|
|
|
- this.getBusinessInfo(this.id);
|
|
|
- this.getBusinessComment(this.id);
|
|
|
- },
|
|
|
methods: {
|
|
|
- // 获取商家详情信息
|
|
|
- getBusinessInfo(id) {},
|
|
|
- // 获取商家评论信息
|
|
|
- getBusinessComment(id) {},
|
|
|
+ click(item) {
|
|
|
+ console.log('item', item);
|
|
|
+ },
|
|
|
},
|
|
|
};
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
-.container {
|
|
|
- position: relative;
|
|
|
- .business {
|
|
|
- width: 100%;
|
|
|
- height: 180rpx;
|
|
|
- background-color: #ffffff;
|
|
|
- position: relative;
|
|
|
+.detail {
|
|
|
+ min-height: 100vh;
|
|
|
+ background-color: #efefef;
|
|
|
+}
|
|
|
+
|
|
|
+// 轮播图
|
|
|
+.carousel-map {
|
|
|
+ background-color: #fff;
|
|
|
+ padding: 0 20rpx;
|
|
|
+
|
|
|
+ .carousel-item {
|
|
|
+ height: 90rpx;
|
|
|
display: flex;
|
|
|
- flex-direction: column;
|
|
|
- justify-content: flex-end;
|
|
|
- align-items: center;
|
|
|
- .avatar {
|
|
|
- position: absolute;
|
|
|
- top: 0;
|
|
|
- left: 50%;
|
|
|
- transform: translate(-50%, -50%);
|
|
|
+ background-color: #fff7e0;
|
|
|
+ border-radius: 0 0 10rpx 10rpx;
|
|
|
+
|
|
|
+ .mark {
|
|
|
+ background-color: #ff4b04;
|
|
|
+ color: #fff;
|
|
|
+ padding: 20rpx;
|
|
|
+ border-radius: 0 0 0 10rpx;
|
|
|
+ box-sizing: border-box;
|
|
|
+
|
|
|
+ .mark-item {
|
|
|
+ text-align: center;
|
|
|
+ }
|
|
|
}
|
|
|
- .collect {
|
|
|
- position: absolute;
|
|
|
- right: 40rpx;
|
|
|
- top: -60rpx;
|
|
|
- color: #ffffff;
|
|
|
- padding: 0 10rpx;
|
|
|
- border: 2rpx solid #ffffff;
|
|
|
- border-radius: 10rpx;
|
|
|
+
|
|
|
+ .good-item {
|
|
|
+ font-size: 24rpx;
|
|
|
+ color: #a39c85;
|
|
|
+ line-height: 90rpx;
|
|
|
+ margin-left: 40rpx;
|
|
|
}
|
|
|
- .name {
|
|
|
- font-size: 40rpx;
|
|
|
- font-weight: bold;
|
|
|
- padding: 20rpx 0 10rpx 0;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+// 商家信息
|
|
|
+.merchant-info {
|
|
|
+ padding: 20rpx;
|
|
|
+ background-color: #fff;
|
|
|
+ margin-bottom: 20rpx;
|
|
|
+
|
|
|
+ .info-title {
|
|
|
+ display: flex;
|
|
|
+ justify-content: center;
|
|
|
+ font-size: 40rpx;
|
|
|
+ font-weight: bold;
|
|
|
+
|
|
|
+ .info-mark {
|
|
|
+ font-size: 12px;
|
|
|
+ font-weight: normal;
|
|
|
+ color: #999;
|
|
|
+ margin: 20rpx 0 20rpx 30rpx;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .info-tag {
|
|
|
+ width: 160rpx;
|
|
|
+ padding: 10rpx;
|
|
|
+ text-align: center;
|
|
|
+ border: 1px solid #5992bb;
|
|
|
+ color: #5992bb;
|
|
|
+ margin-bottom: 10rpx;
|
|
|
+ }
|
|
|
+
|
|
|
+ .info-item {
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+
|
|
|
+ .info-text {
|
|
|
+ font-size: 30rpx;
|
|
|
+ line-height: 58rpx;
|
|
|
+ color: #212020;
|
|
|
+ font-weight: 600;
|
|
|
+
|
|
|
+ .distance {
|
|
|
+ font-size: 26rpx;
|
|
|
+ color: #555252;
|
|
|
+ font-weight: normal;
|
|
|
+ }
|
|
|
}
|
|
|
- .introduce {
|
|
|
- font-size: 32rpx;
|
|
|
- padding: 10rpx 0 20rpx 0;
|
|
|
+
|
|
|
+ .info-icon {
|
|
|
+ display: flex;
|
|
|
+ }
|
|
|
+
|
|
|
+ .info-map {
|
|
|
+ padding: 10rpx;
|
|
|
+ font-size: 28rpx;
|
|
|
+ margin-top: 120rpx;
|
|
|
}
|
|
|
}
|
|
|
- .content-info {
|
|
|
- background-color: #ffffff;
|
|
|
- margin-top: 20rpx;
|
|
|
- ::v-deep .u-cell__body{
|
|
|
- padding: 4rpx 20rpx;
|
|
|
+}
|
|
|
+
|
|
|
+// 分类
|
|
|
+.sort {
|
|
|
+ background-color: #fff;
|
|
|
+
|
|
|
+ .list {
|
|
|
+ height: 250rpx;
|
|
|
+ background-color: #fff;
|
|
|
+ padding: 0 20rpx;
|
|
|
+ margin-bottom: 20rpx;
|
|
|
+ display: flex;
|
|
|
+
|
|
|
+ Image {
|
|
|
+ width: 180px;
|
|
|
+ height: calc(100% - 20rpx);
|
|
|
+ margin: 10rpx 20rpx 10rpx 0;
|
|
|
+ }
|
|
|
+
|
|
|
+ .item-text {
|
|
|
+ font-weight: bold;
|
|
|
+ margin: 10rpx 0 10rpx;
|
|
|
+ color: #333;
|
|
|
+ }
|
|
|
+
|
|
|
+ .item-flex {
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+ font-size: 28rpx;
|
|
|
+ margin: 0 20rpx 10rpx 0;
|
|
|
+ color: #0d0d0d66;
|
|
|
+
|
|
|
+ .star {
|
|
|
+ display: flex;
|
|
|
+
|
|
|
+ .line {
|
|
|
+ margin-left: 16rpx;
|
|
|
+ margin-top: 5rpx;
|
|
|
+ font-size: 22rpx;
|
|
|
+ }
|
|
|
+
|
|
|
+ .points {
|
|
|
+ color: #ff4b04;
|
|
|
+ font-size: 22rpx;
|
|
|
+ margin-top: 6rpx;
|
|
|
+ margin-left: 10rpx;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .list-item {
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+ .price {
|
|
|
+ font-size: 32rpx;
|
|
|
+ font-weight: bold;
|
|
|
+ color: #fa3534;
|
|
|
+ .price-item {
|
|
|
+ font-size: 24rpx;
|
|
|
+ margin-left: 10rpx;
|
|
|
+ }
|
|
|
+ .price-count {
|
|
|
+ font-size: 44rpx;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .gate-rate {
|
|
|
+ color: #c9c9c9;
|
|
|
+ font-size: 26rpx;
|
|
|
+ margin: 16rpx 0 0 40rpx;
|
|
|
+ .gate-rate-item {
|
|
|
+ text-decoration: line-through;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ .appoint {
|
|
|
+ width: 80px;
|
|
|
+ height: 32px;
|
|
|
+ display: flex;
|
|
|
+ margin-top: 20px;
|
|
|
+ font-size: 14px;
|
|
|
+ .appoint-item {
|
|
|
+ width: 40px;
|
|
|
+ height: 32px;
|
|
|
+ line-height: 32px;
|
|
|
+ text-align: center;
|
|
|
+ display: inline-block;
|
|
|
+ box-sizing: border-box;
|
|
|
+ border-radius: 16px 0 0 16px;
|
|
|
+ border: 1px solid #ec5729;
|
|
|
+ }
|
|
|
+ .Buy {
|
|
|
+ width: 40px;
|
|
|
+ height: 32px;
|
|
|
+ color: #fff;
|
|
|
+ line-height: 32px;
|
|
|
+ text-align: center;
|
|
|
+ display: inline-block;
|
|
|
+ border-radius: 0 16px 16px 0;
|
|
|
+ background-color: #ec5729;
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|