From 547d61c1333a6af1e376538472d2f14d3c8c116f Mon Sep 17 00:00:00 2001
From: xiangpei <xiangpei@timesnew.cn>
Date: 星期三, 18 六月 2025 09:38:45 +0800
Subject: [PATCH] uview不分包
---
pages/goods-manager/goodsList/goodsList.vue | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/pages/goods-manager/goodsList/goodsList.vue b/pages/goods-manager/goodsList/goodsList.vue
index 69a0d94..3e21182 100644
--- a/pages/goods-manager/goodsList/goodsList.vue
+++ b/pages/goods-manager/goodsList/goodsList.vue
@@ -9,12 +9,12 @@
<!-- 閫氳繃header鎻掓Ы瀹氫箟鍒楄〃宸︿晶鍥剧墖 -->
<view class="uni-thumb shop-picture" :class="{ 'shop-picture-column': formData.waterfall }">
- <image :src="item.goods_thumb" mode="aspectFill"></image>
+ <image :src="item.thumbnail" mode="aspectFill"></image>
</view>
<view class="shop">
<view>
<view class="uni-title">
- <text class="uni-ellipsis-2">{{ item.name }}</text>
+ <text class="uni-ellipsis-2">{{ item.goodsName }}</text>
</view>
<!-- <view>
<text class="uni-tag hot-tag">{{ item.goods_tip }}</text>
@@ -24,12 +24,12 @@
<view>
<view class="shop-price">
<text>楼</text>
- <text class="shop-price-text">{{ item.goods_price }}</text>
+ <text class="shop-price-text">{{ item.price }}</text>
<text>.00</text>
</view>
<view class="uni-flex-row">
- <view class="uni-note">{{ item.comment_count || 0 }}鏉¤瘎璁� 鏈堥攢閲� {{
- item.month_sell_count || 0 }}
+ <view class="uni-note">{{ item.commentNum || 0 }}鏉¤瘎璁� 鏈堥攢閲� {{
+ item.buyCount || 0 }}
</view>
<view class="uni-note ellipsis">
<text class="uni-link">涓婃灦</text>
@@ -57,12 +57,11 @@
<script>
-import UIcon from '@/uview-components/uview-ui/components/u-icon/u-icon.vue';
+import '@/components/uview-components/uview-ui';
import * as API_GOODS from "@/api/goods.js";
export default {
- components: { UIcon },
data() {
return {
formData: {
@@ -256,6 +255,7 @@
// 灏忕▼搴� 缂栬瘧鍚庝細澶氫竴灞傛爣绛撅紝鑰屽叾浠栧钩鍙版病鏈夛紝鎵�浠ラ渶瑕佺壒娈婂鐞嗕竴涓�
/deep/ .uni-list {
/* #endif */
+ height: calc(100vh - 100px - 80px - 60px);
display: flex;
flex-direction: row;
flex-wrap: wrap;
@@ -267,7 +267,7 @@
/deep/
/* #endif */
.uni-list-item--waterfall {
- // width: 50%;
+ width: 98%;
display: flex;
box-sizing: border-box;
margin-bottom: 10px;
--
Gitblit v1.8.0