|
|
|
@ -60,6 +60,16 @@ const getDataList = async (stationId) => {
|
|
|
|
|
obj.imgUrl = imgUrl
|
|
|
|
|
const categoryArr = obj.stationProducts?.map((q) => q.name) || []
|
|
|
|
|
obj.categoryStr = categoryArr.join('.')
|
|
|
|
|
|
|
|
|
|
if (obj.orderDetails) {
|
|
|
|
|
obj.orderDetails.forEach((q) => {
|
|
|
|
|
const arr = JSON.parse(q.product.photo)
|
|
|
|
|
const imgUrl = fileDomain + arr[0].url
|
|
|
|
|
q.imgUrl = imgUrl
|
|
|
|
|
})
|
|
|
|
|
} else {
|
|
|
|
|
obj.orderDetails = []
|
|
|
|
|
}
|
|
|
|
|
siteInfo.value = obj
|
|
|
|
|
// 发送请求后,重置标记
|
|
|
|
|
isLoading.value = false
|
|
|
|
@ -89,14 +99,20 @@ onLoad((options) => {
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<view class="module-menu">
|
|
|
|
|
<view
|
|
|
|
|
<view class="order-details" v-if="siteInfo.orderDetails">
|
|
|
|
|
<view class="detail-item" v-for="item2 in siteInfo.orderDetails" :key="item2.id">
|
|
|
|
|
<image class="img-url" :src="item2.imgUrl"></image>
|
|
|
|
|
<view class="product-name">{{ item2.product?.name }}</view>
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
<!-- <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">
|
|
|
|
@ -136,7 +152,7 @@ onLoad((options) => {
|
|
|
|
|
min-height: 80vh;
|
|
|
|
|
overflow: auto;
|
|
|
|
|
.info {
|
|
|
|
|
padding: 20rpx 0;
|
|
|
|
|
padding: 10rpx 20rpx;
|
|
|
|
|
box-shadow: 0px 0px 8px 0px rgba(161, 161, 177, 0.12);
|
|
|
|
|
.hd {
|
|
|
|
|
display: flex;
|
|
|
|
@ -187,8 +203,6 @@ onLoad((options) => {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 列表 */
|
|
|
|
|
.detail-list {
|
|
|
|
|
padding: 0 20rpx;
|
|
|
|
|
background-color: #fff;
|
|
|
|
|