提交 73670db1 作者: 吴佳伟

fix: 优化页面

上级 accf23df
...@@ -378,7 +378,9 @@ ...@@ -378,7 +378,9 @@
@click="onMenuItemClick(item)" @click="onMenuItemClick(item)"
> >
<image class="image_7" :src="item.icon_url" /> <image class="image_7" :src="item.icon_url" />
<text class="fontsize_28" :class="`text_${item.id + 2} mt-13`">{{ item.name }}</text> <text class="fontsize_28" :class="`text_${item.id + 2} mt-13`">{{
item.name
}}</text>
</view> </view>
</view> </view>
</view> </view>
...@@ -477,13 +479,15 @@ ...@@ -477,13 +479,15 @@
<view <view
class="codefun-flex-col codefun-justify-start codefun-items-start codefun-self-stretch section_10" class="codefun-flex-col codefun-justify-start codefun-items-start codefun-self-stretch section_10"
:style="{ :style="{
'background-image': `url(${product.image})`, 'background-image': `url(${product.image})`,
}" }"
> >
<view <view
class="codefun-flex-col codefun-justify-start codefun-items-center text-wrapper_3" class="codefun-flex-col codefun-justify-start codefun-items-center text-wrapper_3"
> >
<text v-if="product.labels_dictText" class="font_13">{{ product.labels_dictText.split(',')[0] }}</text> <text v-if="product.labels_dictText" class="font_13">{{
product.labels_dictText.split(',')[0]
}}</text>
</view> </view>
</view> </view>
<text <text
...@@ -492,7 +496,7 @@ ...@@ -492,7 +496,7 @@
>{{ product.name }}</text >{{ product.name }}</text
> >
<text class="codefun-self-start font_1 text_27 codefun-mt-10" style="font-size: 28rpx" <text class="codefun-self-start font_1 text_27 codefun-mt-10" style="font-size: 28rpx"
>¥{{ product.sellPrice }}</text >¥{{ product.minSellPrice }}</text
> >
</view> </view>
</view> </view>
......
...@@ -127,10 +127,10 @@ ...@@ -127,10 +127,10 @@
function getGoodsList() { function getGoodsList() {
NongzhiAPI.goodsList(pageData.search).then((res) => { NongzhiAPI.goodsList(pageData.search).then((res) => {
console.log("pageData.products******************") console.log('pageData.products******************')
console.log(res) console.log(res)
const { records, total } = res const { records, total } = res
pageData.products = [...pageData.products, ...records]; pageData.products = [...pageData.products, ...records]
pageData.total = total pageData.total = total
}) })
} }
...@@ -274,8 +274,8 @@ ...@@ -274,8 +274,8 @@
}" }"
> >
<view class="codefun-self-start group_7"> <view class="codefun-self-start group_7">
<text class="font_7">¥</text> <text class="font_7">¥ </text>
<text class="font_5">{{ product.sellPrice }}</text> <text class="font_5">{{ product.minSellPrice }}</text>
</view> </view>
<view <view
class="codefun-flex-col codefun-justify-start codefun-items-center text-wrapper_2" class="codefun-flex-col codefun-justify-start codefun-items-center text-wrapper_2"
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论