From e597673831640b4cea7a5c0a26d32df52d45b66c Mon Sep 17 00:00:00 2001 From: wangzimeng <3297159934@qq.com> Date: Wed, 23 Jul 2025 18:15:18 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81su-tabbar=EF=BC=9A=E5=BA=95=E9=83=A8?= =?UTF-8?q?=E5=AF=BC=E8=88=AA=E7=9A=84=E5=B1=82=E7=BA=A7=E6=95=B0=E5=8A=A0?= =?UTF-8?q?=E5=A4=A7=202=E3=80=81=E6=8B=9B=E7=A7=9F=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E7=9A=84=E8=B0=83=E6=8E=A5=E5=8F=A3=E4=B8=8D=E4=BC=A0my=3D1?= =?UTF-8?q?=E7=9A=84=E5=8F=82=E6=95=B0=203=E3=80=81=E9=A6=96=E9=A1=B5?= =?UTF-8?q?=E5=B9=B3=E5=8F=B0=E6=8E=A8=E8=8D=90=E7=9A=84=E8=B0=83=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E4=B8=8D=E4=BC=A0my=3D1=E7=9A=84=E5=8F=82=E6=95=B0?= =?UTF-8?q?=E5=92=8C=E5=B9=B3=E5=8F=B0=E6=8E=A8=E8=8D=90=E7=9A=84=E6=9F=A5?= =?UTF-8?q?=E7=9C=8B=E6=9B=B4=E5=A4=9A=E4=B8=8E=E9=A1=B6=E9=83=A8=E7=9A=84?= =?UTF-8?q?=E9=A3=9F=E5=A0=82=E6=8B=9B=E7=A7=9F=E8=B7=B3=E8=BD=AC=E4=B8=80?= =?UTF-8?q?=E4=B8=AA=E9=A1=B5=E9=9D=A2=204=E3=80=81=E4=B8=AA=E4=BA=BA?= =?UTF-8?q?=E4=B8=AD=E5=BF=83=EF=BC=9A=E9=A1=B5=E9=9D=A2=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E6=94=B6=E8=97=8F=E3=80=81=E8=B6=B3=E8=BF=B9=E5=92=8C=E4=BC=98?= =?UTF-8?q?=E6=83=A0=E5=88=B8=E7=9A=84=E6=95=B0=E6=8D=AE=E5=9B=9E=E6=98=BE?= =?UTF-8?q?=205=E3=80=81=E6=88=91=E7=9A=84=E8=B6=B3=E8=BF=B9=E9=9A=90?= =?UTF-8?q?=E8=97=8F=E4=B8=8D=E9=9C=80=E8=A6=81=E9=83=A8=E5=88=86=EF=BC=9B?= =?UTF-8?q?=206=E3=80=81=E4=BF=AE=E6=94=B9=E4=B8=AA=E4=BA=BA=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E9=A1=B5=E9=9D=A2=EF=BC=9A=E9=9A=90=E8=97=8F=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E6=89=8B=E6=9C=BA=E5=8F=B7=E7=9A=84=E6=8C=89=E9=92=AE?= =?UTF-8?q?=EF=BC=8C=E5=88=A0=E9=99=A4=E7=9B=B8=E5=85=B3=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/canteenRent/rentList.vue | 1 - pages/index/index.vue | 3 +- pages/index/user.vue | 8 ++-- pages/user/goods-log.vue | 74 +++----------------------------- pages/user/info.vue | 4 +- sheep/api/user.js | 18 +++++--- sheep/ui/su-tabbar/su-tabbar.vue | 2 +- 7 files changed, 25 insertions(+), 85 deletions(-) diff --git a/pages/canteenRent/rentList.vue b/pages/canteenRent/rentList.vue index da109be..3909a94 100644 --- a/pages/canteenRent/rentList.vue +++ b/pages/canteenRent/rentList.vue @@ -223,7 +223,6 @@ page: listQuery.value.page, limit: listQuery.value.limit, cate_ids: listQuery.value.cate_ids, - my: 1, order: 'normal', status: 1, province: listQuery.value.province, diff --git a/pages/index/index.vue b/pages/index/index.vue index 4172823..f46ec31 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -76,7 +76,7 @@ 平台推荐 - + 查看更多 未认证 已认证 --> - 剩余拨打次数: {{ userInfo.mobile_num ? userInfo.mobile_num : 0 }}次 + 剩余拨打次数: {{ userInfo.all_mobile_num ? userInfo.all_mobile_num : 0 }}次 - 14 + {{ userInfo.collect_number ? userInfo.collect_number : 0 }} 收藏 - 14 + {{ userInfo.footprint_number ? userInfo.footprint_number : 0 }} 足迹 @@ -51,7 +51,7 @@ 积分 - 14 + {{ userInfo.coupon_number ? userInfo.coupon_number : 0 }} 优惠券 diff --git a/pages/user/goods-log.vue b/pages/user/goods-log.vue index 3bef1af..c79f1b3 100644 --- a/pages/user/goods-log.vue +++ b/pages/user/goods-log.vue @@ -2,14 +2,14 @@ - - + - - - - - - - - - - - + { - if (!state.selectedCollectList.includes(id)) { - state.selectedCollectList.push(id); - } else { - state.selectedCollectList.splice(state.selectedCollectList.indexOf(id), 1); - } - state.selectAll = state.selectedCollectList.length === state.pagination.data.length; - }; - // 全选 - const onSelectAll = () => { - state.selectAll = !state.selectAll; - if (!state.selectAll) { - state.selectedCollectList = []; - } else { - state.pagination.data.forEach((item) => { - if (state.selectedCollectList.includes(item.goods_id)) { - state.selectedCollectList.splice(state.selectedCollectList.indexOf(item.goods_id), 1); - } - state.selectedCollectList.push(item.goods_id); - }); - } - }; - async function onCancel() { - if (state.selectedCollectList) { - state.selectedCollectList = state.selectedCollectList.toString(); - const { code } = await sheep.$api.user.view.delete({ - goods_id: state.selectedCollectList, - }); - if (code === 1) { - state.editMode = false; - state.selectedCollectList = []; - state.selectAll = false; - state.pagination = pagination; - getData(); - } - } - } // 加载更多 function loadmore() { if (state.loadStatus !== 'noMore') { diff --git a/pages/user/info.vue b/pages/user/info.vue index bb8e08a..fc2b809 100644 --- a/pages/user/info.vue +++ b/pages/user/info.vue @@ -95,10 +95,10 @@ > diff --git a/sheep/api/user.js b/sheep/api/user.js index 2c35150..7e02786 100644 --- a/sheep/api/user.js +++ b/sheep/api/user.js @@ -261,12 +261,18 @@ export default { }), }, goodsLog: { - list: (params) => - request({ - url: 'user.goods_log', - method: 'GET', - params, - }), + list: (params) => + request({ + url: 'meal.information/footprint_list', + method: 'GET', + params, + }), + // list: (params) => + // request({ + // url: 'user.goods_log', + // method: 'GET', + // params, + // }), }, favorite: { do: (id) => diff --git a/sheep/ui/su-tabbar/su-tabbar.vue b/sheep/ui/su-tabbar/su-tabbar.vue index 3b6d245..6fb725c 100644 --- a/sheep/ui/su-tabbar/su-tabbar.vue +++ b/sheep/ui/su-tabbar/su-tabbar.vue @@ -83,7 +83,7 @@ // 元素层级z-index zIndex: { type: [String, Number], - default: 10, + default: 100000, }, // 选中标签的颜色 activeColor: {