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

乡村旅居样式优化

parent 8da59316
......@@ -178,11 +178,11 @@
</view>
<view class="all-info">
<view class="detail-score">
<text class="score">{{ item.score }}</text>
<text class="score" v-if="item.score !== null">{{ item.score }}</text>
<text class="num">月销{{ item.monthSoldNum }}</text>
</view>
<view class="venue">
<text class="place">{{ item.tripArea }}出发</text>
<text class="place" v-if="item.tripArea !== null">{{ item.tripArea }}出发</text>
<text class="price">{{ item.price }}</text>
</view>
</view>
......@@ -373,6 +373,9 @@ const toSearch = () => {
const currentPage = ref(1);
// 查询列表
const getProd = (searchKeyword = '') => {
xma.showLoading({
title: '加载中',
});
const params = {
current: currentPage.value,
size: 3,
......@@ -394,6 +397,7 @@ const getProd = (searchKeyword = '') => {
...(searchKeyword && { keyword: searchKeyword }),
};
getProdList(params).then((res) => {
xma.hideLoading();
res.data.records.forEach((item) => {
item.img = import.meta.env.VITE_APP_IMG_URL + item.pic;
item.serveList = item.serviceList.slice(0, 3);
......
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