Commit ab10708a authored by 张娇(东信)'s avatar 张娇(东信)

乡村旅居列表字段修改

parent 58154767
...@@ -137,23 +137,23 @@ ...@@ -137,23 +137,23 @@
<img class="card-img" :src="item.img" style="width: 248rpx; height: 240rpx" /> <img class="card-img" :src="item.img" style="width: 248rpx; height: 240rpx" />
<view class="detail-text"> <view class="detail-text">
<text class="detail-title">{{ item.prodName }}</text> <text class="detail-title">{{ item.prodName }}</text>
<text class="give">{{ item.prodName }}</text> <text class="give">{{ item.brief }}</text>
<view class="tag"> <view class="tag">
<wd-tag <wd-tag
bg-color="#EEEEEE" bg-color="#EEEEEE"
round round
v-for="(tag, tagIndex) in item.tag" v-for="(tag, tagIndex) in item.serveList"
:key="tagIndex" :key="tagIndex"
> >
{{ tag }} {{ tag.labelName }}
</wd-tag> </wd-tag>
</view> </view>
<view class="detail-score"> <view class="detail-score">
<text class="score">{{ item.deliveryAmount }}</text> <text class="score">{{ item.score }}</text>
<text class="num">月销{{ item.deliveryAmount }}</text> <text class="num">月销{{ item.monthSoldNum }}</text>
</view> </view>
<view class="venue"> <view class="venue">
<text class="place">{{ item.prodName }}</text> <text class="place">{{ item.tripArea }}出发</text>
<text class="price">{{ item.price }}</text> <text class="price">{{ item.price }}</text>
</view> </view>
</view> </view>
...@@ -287,10 +287,12 @@ const getProd = () => { ...@@ -287,10 +287,12 @@ const getProd = () => {
getProdList(params).then((res) => { getProdList(params).then((res) => {
res.data.records.forEach((item) => { res.data.records.forEach((item) => {
item.img = import.meta.env.VITE_APP_IMG_URL + item.pic; item.img = import.meta.env.VITE_APP_IMG_URL + item.pic;
item.serveList = item.serviceList.slice(0, 3);
}); });
cardList.value = res.data.records; cardList.value = res.data.records;
}); });
}; };
const resetParams = () => { const resetParams = () => {
sortType.value = null; sortType.value = null;
attractionId.value = null; attractionId.value = null;
...@@ -549,6 +551,6 @@ page { ...@@ -549,6 +551,6 @@ page {
height: 56rpx; height: 56rpx;
} }
.detail-score { .detail-score {
margin-top: 90rpx; margin-top: 30rpx;
} }
</style> </style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment