|
|
@ -40,6 +40,8 @@ const bannerList = [
|
|
|
|
type: '1',
|
|
|
|
type: '1',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
]
|
|
|
|
]
|
|
|
|
|
|
|
|
// 地图经纬度
|
|
|
|
|
|
|
|
const location = uni.getStorageSync('location')
|
|
|
|
|
|
|
|
|
|
|
|
const siteInfo = ref({})
|
|
|
|
const siteInfo = ref({})
|
|
|
|
const rateValue = ref(5)
|
|
|
|
const rateValue = ref(5)
|
|
|
@ -51,6 +53,7 @@ const getDataList = async (stationId) => {
|
|
|
|
// 发送请求
|
|
|
|
// 发送请求
|
|
|
|
const queryParams = {
|
|
|
|
const queryParams = {
|
|
|
|
stationId,
|
|
|
|
stationId,
|
|
|
|
|
|
|
|
...location,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
const res = await getSiteDetailAPI(queryParams)
|
|
|
|
const res = await getSiteDetailAPI(queryParams)
|
|
|
|
const obj = res.data
|
|
|
|
const obj = res.data
|
|
|
@ -58,17 +61,17 @@ const getDataList = async (stationId) => {
|
|
|
|
const arr = obj.stationImg && JSON.parse(obj.stationImg)
|
|
|
|
const arr = obj.stationImg && JSON.parse(obj.stationImg)
|
|
|
|
const imgUrl = fileDomain + arr[0].url
|
|
|
|
const imgUrl = fileDomain + arr[0].url
|
|
|
|
obj.imgUrl = imgUrl
|
|
|
|
obj.imgUrl = imgUrl
|
|
|
|
const categoryArr = obj.stationProducts?.map((q) => q.name) || []
|
|
|
|
// const categoryArr = obj.stationProducts?.map((q) => q.name) || []
|
|
|
|
obj.categoryStr = categoryArr.join('.')
|
|
|
|
// obj.categoryStr = categoryArr.join('.')
|
|
|
|
|
|
|
|
|
|
|
|
if (obj.orderDetails) {
|
|
|
|
if (obj.stationProducts) {
|
|
|
|
obj.orderDetails.forEach((q) => {
|
|
|
|
obj.stationProducts.forEach((q) => {
|
|
|
|
const arr = JSON.parse(q.product.photo)
|
|
|
|
const arr = JSON.parse(q.photo)
|
|
|
|
const imgUrl = fileDomain + arr[0].url
|
|
|
|
const imgUrl = fileDomain + arr[0].url
|
|
|
|
q.imgUrl = imgUrl
|
|
|
|
q.imgUrl = imgUrl
|
|
|
|
})
|
|
|
|
})
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
obj.orderDetails = []
|
|
|
|
obj.stationProducts = []
|
|
|
|
}
|
|
|
|
}
|
|
|
|
siteInfo.value = obj
|
|
|
|
siteInfo.value = obj
|
|
|
|
// 发送请求后,重置标记
|
|
|
|
// 发送请求后,重置标记
|
|
|
@ -87,7 +90,7 @@ onLoad((options) => {
|
|
|
|
<view class="info">
|
|
|
|
<view class="info">
|
|
|
|
<view class="hd">
|
|
|
|
<view class="hd">
|
|
|
|
<view class="name">{{ siteInfo?.stationName }}</view>
|
|
|
|
<view class="name">{{ siteInfo?.stationName }}</view>
|
|
|
|
<view class="num">{{ siteInfo.distance || 0.0 }}米</view>
|
|
|
|
<view class="num">{{ siteInfo.distance || 0.0 }}千米</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view class="md">
|
|
|
|
<view class="md">
|
|
|
|
<view class="label">营业时间:</view>
|
|
|
|
<view class="label">营业时间:</view>
|
|
|
@ -99,10 +102,11 @@ onLoad((options) => {
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view class="module-menu">
|
|
|
|
<view class="module-menu">
|
|
|
|
<view class="order-details" v-if="siteInfo.orderDetails">
|
|
|
|
<view class="module-title">回收品类:</view>
|
|
|
|
<view class="detail-item" v-for="item2 in siteInfo.orderDetails" :key="item2.id">
|
|
|
|
<view class="order-details" v-if="siteInfo.stationProducts">
|
|
|
|
|
|
|
|
<view class="detail-item" v-for="item2 in siteInfo.stationProducts" :key="item2.id">
|
|
|
|
<image class="img-url" :src="item2.imgUrl"></image>
|
|
|
|
<image class="img-url" :src="item2.imgUrl"></image>
|
|
|
|
<view class="product-name">{{ item2.product?.name }}</view>
|
|
|
|
<view class="product-name">{{ item2.name }}</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<!-- <view
|
|
|
|
<!-- <view
|
|
|
@ -118,9 +122,9 @@ onLoad((options) => {
|
|
|
|
<view class="item arrow flex-row">
|
|
|
|
<view class="item arrow flex-row">
|
|
|
|
<view class="service-title">服务</view>
|
|
|
|
<view class="service-title">服务</view>
|
|
|
|
<view class="tag-list">
|
|
|
|
<view class="tag-list">
|
|
|
|
<view class="tag">上门服务</view>
|
|
|
|
<view class="tag">再生资源回收</view>
|
|
|
|
<view class="tag">家电维修</view>
|
|
|
|
<!-- <view class="tag">家电维修</view>
|
|
|
|
<view class="tag">品控质检</view>
|
|
|
|
<view class="tag">品控质检</view> -->
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
<view class="item flex-column rate">
|
|
|
|
<view class="item flex-column rate">
|
|
|
@ -190,7 +194,7 @@ onLoad((options) => {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.module-menu {
|
|
|
|
.module-menu {
|
|
|
|
display: flex;
|
|
|
|
display: flex;
|
|
|
|
padding: 36rpx 0rpx;
|
|
|
|
padding: 36rpx 20rpx;
|
|
|
|
box-shadow: 0px 0px 8px 0px rgba(161, 161, 177, 0.12);
|
|
|
|
box-shadow: 0px 0px 8px 0px rgba(161, 161, 177, 0.12);
|
|
|
|
.item {
|
|
|
|
.item {
|
|
|
|
flex: 1;
|
|
|
|
flex: 1;
|
|
|
@ -202,6 +206,23 @@ onLoad((options) => {
|
|
|
|
background: #fff7e8;
|
|
|
|
background: #fff7e8;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.order-details {
|
|
|
|
|
|
|
|
margin-left: 20rpx;
|
|
|
|
|
|
|
|
margin-top: 20rpx;
|
|
|
|
|
|
|
|
.detail-item {
|
|
|
|
|
|
|
|
margin: 20rpx 0;
|
|
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
.img-url {
|
|
|
|
|
|
|
|
width: 40rpx;
|
|
|
|
|
|
|
|
height: 40rpx;
|
|
|
|
|
|
|
|
margin-right: 20rpx;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
.product-name {
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.detail-list {
|
|
|
|
.detail-list {
|
|
|
|
padding: 0 20rpx;
|
|
|
|
padding: 0 20rpx;
|
|
|
|