From f1d4634240344301ed36ac7bb161fe84c514ced6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E7=A7=A6=E5=BD=A6=E7=A5=96?= <605893810@qq.com>
Date: Mon, 10 Nov 2025 23:34:16 +0800
Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BF=AE=E6=94=B9=E7=80=91=E5=B8=83?=
=?UTF-8?q?=E6=B5=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
components/shop/ping-item.vue | 141 +++++++++++--------
pages/rwa_package/shop/you-shop.vue | 26 +++-
pages/supply_chain/supply_chain.vue | 211 +++++++++++++++++-----------
utils/config.js | 5 +-
4 files changed, 239 insertions(+), 144 deletions(-)
diff --git a/components/shop/ping-item.vue b/components/shop/ping-item.vue
index b22a65a..2fbffd5 100644
--- a/components/shop/ping-item.vue
+++ b/components/shop/ping-item.vue
@@ -1,66 +1,89 @@
-
-
-
- {{obj.title}}
-
- ¥{{obj.price}}
- 已售{{obj.sales}}件
-
-
-
+
+
+
+
+ {{ obj.title }}
+
+
+ ¥{{ obj.price }}
+ 已售{{ obj.sales }}件
+
+
+
+.ping-item {
+ width: 332rpx;
+ background: #fff;
+ border-radius: 12rpx;
+ overflow: hidden;
+ margin-bottom: 0; /* 瀑布流父层控制间距,这里清零 */
+}
+
+.top-img {
+ width: 332rpx;
+ display: block;
+ border-radius: 12rpx 12rpx 0 0;
+}
+
+.shop-bottom-panel {
+ padding: 12rpx 16rpx 16rpx;
+}
+
+.title {
+ line-height: 40rpx;
+ max-width: 300rpx;
+}
+
+.price-line {
+ margin-top: 10rpx;
+}
+
+.sold {
+ color: #999;
+}
+
+/* 通用工具类(如已全局引入可删除) */
+.text-overflow {
+ display: block;
+ width: 100%;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+}
+.text-30 { font-size: 30rpx; }
+.text-28 { font-size: 28rpx; }
+.text-24 { font-size: 24rpx; }
+.text-zu { color: #333; }
+.text-zi { color: #7A35F6; }
+.text-bold { font-weight: bold; }
+.flex-r-lr {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+}
+
\ No newline at end of file
diff --git a/pages/rwa_package/shop/you-shop.vue b/pages/rwa_package/shop/you-shop.vue
index 1dfd4a2..7b76098 100644
--- a/pages/rwa_package/shop/you-shop.vue
+++ b/pages/rwa_package/shop/you-shop.vue
@@ -40,6 +40,8 @@
:list="swiperList"
style="width: 100%; border-radius: 20rpx; height: 160rpx"
circular
+ @click="onSwiperClick"
+ @change="(e) => (currentNum = e.current)"
>
@@ -49,6 +51,7 @@
>
信任桥-畅享全球好物
@@ -63,6 +66,7 @@
:style="{ background: 'url(' + item.url + ')' }"
style="text-align: center; background-size: 202rpx 228rpx"
:key="index"
+ @click="jumpInfo(item)"
>
{{ item.title }}
@@ -100,6 +104,7 @@ export default {
dataList: [],
faddishProduct: [], // 爆款专区
swiperList: ['https://cdn.uviewui.com/uview/swiper/swiper1.png'],
+ swiperListData:[],
};
},
onShow() {},
@@ -124,7 +129,25 @@ export default {
this.faddishProduct = resp.data;
}
},
- jumpSearch() {},
+ jumpSearch() {
+ uni.navigateTo({
+ url: '/pages/rwa_package/dongjian/search',
+ })
+ },
+ // 跳转到商品详情
+ jumpInfo(item) {
+ uni.navigateTo({
+ url: '/pages/other_package/productInfo/productInfo?id=' + item.id,
+ })
+ },
+
+ goShare(){
+ console.log('go 的地址')
+ },
+ onSwiperClick(index){
+ console.log('banner 图',this.swiperListData,index);
+ // swiperList[index].goodsUrl
+ },
async getSearchList() {
const params = {
type: 1,
@@ -143,6 +166,7 @@ export default {
const resp = await getCarouselImage(params);
if (resp && resp.bizcode === 100) {
const data = resp.data || [];
+ this.swiperListData = data;
this.swiperList = data.length !== 0 ? data.map((obj) => obj.carouselImage) : [];
}
},
diff --git a/pages/supply_chain/supply_chain.vue b/pages/supply_chain/supply_chain.vue
index b4d5b18..7949217 100644
--- a/pages/supply_chain/supply_chain.vue
+++ b/pages/supply_chain/supply_chain.vue
@@ -26,9 +26,16 @@
-
-
+
+
+
+
+
+
+
+
+
+
+
+
@@ -49,6 +77,7 @@
diff --git a/utils/config.js b/utils/config.js
index baf941f..7caec2d 100644
--- a/utils/config.js
+++ b/utils/config.js
@@ -1,10 +1,9 @@
-
// export const BASE_URL="https://frontend.jdns360.com/api"; // 正式环境
// export const BASE_URL="http://cl55un59859.vicp.fun:24346"; // 测试环境
-export const BASE_URL = "https://api.tbmall.xin"; //生产
+// export const BASE_URL = "https://api.tbmall.xin"; //生产
// export const BASE_URL ='http://api.hm.a-d.work:6880' // 测试
-// export const BASE_URL ='https://api.o.tbmall.xin' // 本地测试
+export const BASE_URL ='https://api.o.tbmall.xin' // 本地测试