master
王文杰 7 months ago
parent 174938d3ee
commit 18149f19fa

@ -60,6 +60,16 @@ const getDataList = async (stationId) => {
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) {
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 siteInfo.value = obj
// //
isLoading.value = false isLoading.value = false
@ -89,14 +99,20 @@ onLoad((options) => {
</view> </view>
</view> </view>
<view class="module-menu"> <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" class="item"
@tab="handleMenuChange(index)" @tab="handleMenuChange(index)"
:class="{ active: activeMenuKey == index }" :class="{ active: activeMenuKey == index }"
v-for="(item, index) in leiList" v-for="(item, index) in leiList"
:key="item.id" :key="item.id"
>{{ item.name }}</view >{{ item.name }}</view
> > -->
</view> </view>
<view class="detail-list"> <view class="detail-list">
<view class="item arrow flex-row"> <view class="item arrow flex-row">
@ -136,7 +152,7 @@ onLoad((options) => {
min-height: 80vh; min-height: 80vh;
overflow: auto; overflow: auto;
.info { .info {
padding: 20rpx 0; padding: 10rpx 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);
.hd { .hd {
display: flex; display: flex;
@ -187,8 +203,6 @@ onLoad((options) => {
} }
} }
} }
/* 列表 */
.detail-list { .detail-list {
padding: 0 20rpx; padding: 0 20rpx;
background-color: #fff; background-color: #fff;

Loading…
Cancel
Save