|
|
@ -0,0 +1,243 @@
|
|
|
|
|
|
|
|
<script setup lang="ts">
|
|
|
|
|
|
|
|
import { ref } from 'vue'
|
|
|
|
|
|
|
|
const bannerList = [
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
hrefUrl: '1005000',
|
|
|
|
|
|
|
|
id: '25',
|
|
|
|
|
|
|
|
imgUrl:
|
|
|
|
|
|
|
|
'http://yjy-xiaotuxian-dev.oss-cn-beijing.aliyuncs.com/picture/2021-04-15/e83efb1b-309c-46f7-98a3-f1fefa694338.jpg',
|
|
|
|
|
|
|
|
type: '1',
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
hrefUrl: '1005000',
|
|
|
|
|
|
|
|
id: '21',
|
|
|
|
|
|
|
|
imgUrl:
|
|
|
|
|
|
|
|
'http://yjy-xiaotuxian-dev.oss-cn-beijing.aliyuncs.com/picture/2021-04-15/dfc11bb0-4af5-4e9b-9458-99f615cc685a.jpg',
|
|
|
|
|
|
|
|
type: '1',
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
]
|
|
|
|
|
|
|
|
const leiList = [
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
id: 1,
|
|
|
|
|
|
|
|
name: '旧衣服',
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
id: 2,
|
|
|
|
|
|
|
|
name: '家用电器',
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
id: 2,
|
|
|
|
|
|
|
|
name: '废纸废书',
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
id: 3,
|
|
|
|
|
|
|
|
name: '废金属',
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
id: 4,
|
|
|
|
|
|
|
|
name: '废塑料',
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
]
|
|
|
|
|
|
|
|
const rateValue = ref(2)
|
|
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
|
|
|
|
|
|
|
<view class="site-detail">
|
|
|
|
|
|
|
|
<XtxSwiper :list="bannerList" />
|
|
|
|
|
|
|
|
<view class="cont">
|
|
|
|
|
|
|
|
<view class="info">
|
|
|
|
|
|
|
|
<view class="hd">
|
|
|
|
|
|
|
|
<view class="name">上海松江区佘山镇</view>
|
|
|
|
|
|
|
|
<view class="num">1.03km</view>
|
|
|
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
<view class="md">
|
|
|
|
|
|
|
|
<view class="label">营业时间:</view>
|
|
|
|
|
|
|
|
<view class="time">09:00 - 18:00</view>
|
|
|
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
<view class="fd">
|
|
|
|
|
|
|
|
<view class="label">地址:上海市松江区新松江路92弄开元地中海园区</view>
|
|
|
|
|
|
|
|
<view class="img"></view>
|
|
|
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
<view class="module-menu">
|
|
|
|
|
|
|
|
<view
|
|
|
|
|
|
|
|
class="item"
|
|
|
|
|
|
|
|
@tab="handleMenuChange(index)"
|
|
|
|
|
|
|
|
:class="{ active: activeMenuKey == index }"
|
|
|
|
|
|
|
|
v-for="(item, index) in leiList"
|
|
|
|
|
|
|
|
:key="item.id"
|
|
|
|
|
|
|
|
>{{ item.name }}</view
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
<view class="detail-list">
|
|
|
|
|
|
|
|
<view class="item arrow flex-row">
|
|
|
|
|
|
|
|
<view class="service-title">服务</view>
|
|
|
|
|
|
|
|
<view class="tag-list">
|
|
|
|
|
|
|
|
<view class="tag">上门服务</view>
|
|
|
|
|
|
|
|
<view class="tag">家电维修</view>
|
|
|
|
|
|
|
|
<view class="tag">品控质检</view>
|
|
|
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
<view class="item flex-column rate">
|
|
|
|
|
|
|
|
<view class="service-title">评分</view>
|
|
|
|
|
|
|
|
<uni-rate active-color="#FF7D00" v-model="rateValue" />
|
|
|
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
<view class="item flex-column activity">
|
|
|
|
|
|
|
|
<view class="activity-title">活动</view>
|
|
|
|
|
|
|
|
<view class="activity-list">
|
|
|
|
|
|
|
|
<view class="activity-item">会员价</view>
|
|
|
|
|
|
|
|
<view class="activity-item">赠送积分</view>
|
|
|
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
|
|
|
|
.site-detail {
|
|
|
|
|
|
|
|
background: #f2f2fa;
|
|
|
|
|
|
|
|
.cont {
|
|
|
|
|
|
|
|
background-color: #fff;
|
|
|
|
|
|
|
|
margin: 32rpx;
|
|
|
|
|
|
|
|
padding: 16rpx;
|
|
|
|
|
|
|
|
min-height: 80vh;
|
|
|
|
|
|
|
|
.info {
|
|
|
|
|
|
|
|
padding: 20rpx 0;
|
|
|
|
|
|
|
|
box-shadow: 0px 0px 8px 0px rgba(161, 161, 177, 0.12);
|
|
|
|
|
|
|
|
.hd {
|
|
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
|
|
|
.name {
|
|
|
|
|
|
|
|
font-size: 30rpx;
|
|
|
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
|
|
|
color: #0d0d26;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
.num {
|
|
|
|
|
|
|
|
font-size: 28rpx;
|
|
|
|
|
|
|
|
color: #95969d;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
.md {
|
|
|
|
|
|
|
|
margin: 10rpx 0;
|
|
|
|
|
|
|
|
font-size: 24rpx;
|
|
|
|
|
|
|
|
color: #95969d;
|
|
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
.fd {
|
|
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
.label {
|
|
|
|
|
|
|
|
font-size: 24rpx;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
.img {
|
|
|
|
|
|
|
|
width: 72rpx;
|
|
|
|
|
|
|
|
height: 72rpx;
|
|
|
|
|
|
|
|
border-radius: 50%;
|
|
|
|
|
|
|
|
background-color: #3a82fb;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
.module-menu {
|
|
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
|
|
padding: 36rpx 0rpx;
|
|
|
|
|
|
|
|
box-shadow: 0px 0px 8px 0px rgba(161, 161, 177, 0.12);
|
|
|
|
|
|
|
|
.item {
|
|
|
|
|
|
|
|
flex: 1;
|
|
|
|
|
|
|
|
color: #95969d;
|
|
|
|
|
|
|
|
padding: 10rpx 0;
|
|
|
|
|
|
|
|
border-radius: 10rpx;
|
|
|
|
|
|
|
|
text-align: center;
|
|
|
|
|
|
|
|
&.active {
|
|
|
|
|
|
|
|
background: #fff7e8;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* 列表 */
|
|
|
|
|
|
|
|
.detail-list {
|
|
|
|
|
|
|
|
padding: 0 20rpx;
|
|
|
|
|
|
|
|
background-color: #fff;
|
|
|
|
|
|
|
|
margin-bottom: 20rpx;
|
|
|
|
|
|
|
|
border-radius: 10rpx;
|
|
|
|
|
|
|
|
.item {
|
|
|
|
|
|
|
|
// line-height: 90rpx;
|
|
|
|
|
|
|
|
padding-left: 10rpx;
|
|
|
|
|
|
|
|
font-size: 30rpx;
|
|
|
|
|
|
|
|
color: #333;
|
|
|
|
|
|
|
|
border-bottom: 1rpx solid #ddd;
|
|
|
|
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
text-align: left;
|
|
|
|
|
|
|
|
border-radius: 0;
|
|
|
|
|
|
|
|
background-color: #fff;
|
|
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
|
|
&::after {
|
|
|
|
|
|
|
|
width: auto;
|
|
|
|
|
|
|
|
height: auto;
|
|
|
|
|
|
|
|
left: auto;
|
|
|
|
|
|
|
|
border: none;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// &:first-child {
|
|
|
|
|
|
|
|
// border: none;
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
&::after {
|
|
|
|
|
|
|
|
right: 5rpx;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
&.flex-column {
|
|
|
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
|
|
&:first-child {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
&.rate {
|
|
|
|
|
|
|
|
line-height: 90rpx;
|
|
|
|
|
|
|
|
padding-bottom: 20rpx;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
&.flex-row {
|
|
|
|
|
|
|
|
line-height: 90rpx;
|
|
|
|
|
|
|
|
flex-direction: row;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
.tag-list {
|
|
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
|
|
margin-left: 20rpx;
|
|
|
|
|
|
|
|
.tag {
|
|
|
|
|
|
|
|
color: #95969d;
|
|
|
|
|
|
|
|
font-size: 24rpx;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
&.activity {
|
|
|
|
|
|
|
|
margin: 20rpx 0;
|
|
|
|
|
|
|
|
.activity-list {
|
|
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
|
|
.activity-item {
|
|
|
|
|
|
|
|
margin: 20rpx 10rpx;
|
|
|
|
|
|
|
|
&:first-child {
|
|
|
|
|
|
|
|
background: #484540;
|
|
|
|
|
|
|
|
padding: 4rpx 6rpx;
|
|
|
|
|
|
|
|
border-radius: 10rpx;
|
|
|
|
|
|
|
|
color: #ffe6b5;
|
|
|
|
|
|
|
|
font-size: 24rpx;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
&:last-child {
|
|
|
|
|
|
|
|
padding: 4rpx 6rpx;
|
|
|
|
|
|
|
|
border-radius: 10rpx;
|
|
|
|
|
|
|
|
color: #ffb739;
|
|
|
|
|
|
|
|
border: 2rpx solid #ffb739;
|
|
|
|
|
|
|
|
font-size: 24rpx;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
.arrow::after {
|
|
|
|
|
|
|
|
content: '\e6c2';
|
|
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
|
|
|
top: 50%;
|
|
|
|
|
|
|
|
color: #ccc;
|
|
|
|
|
|
|
|
font-family: 'erabbit' !important;
|
|
|
|
|
|
|
|
font-size: 32rpx;
|
|
|
|
|
|
|
|
transform: translateY(-50%);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
</style>
|