From 27198b347ced581d02aab6ef60938ffcde99e3da Mon Sep 17 00:00:00 2001 From: 18631081161 <2088094923@qq.com> Date: Sat, 28 Feb 2026 00:08:06 +0800 Subject: [PATCH] =?UTF-8?q?UI=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../common/platform/MiniProgramPlatform.js | 10 +- honey_box/pages.json | 8 + honey_box/pages/mall/detail.vue | 489 ++++++++++++++++++ honey_box/pages/mall/index.vue | 24 +- honey_box/pages/shouye/index.vue | 228 +++++--- honey_box/pages/user/index.vue | 32 +- honey_box/static/ic_recommend.png | Bin 0 -> 5424 bytes .../HoneyBox.Core/Services/OrderService.cs | 12 +- .../Models/Goods/GoodsModels.cs | 3 + .../php/app/admin/view/Goods/goods_add.html | 17 +- .../php/app/admin/view/Goods/goods_edit.html | 18 +- server/scripts/alter_goods_describe.sql | 2 + 12 files changed, 732 insertions(+), 111 deletions(-) create mode 100644 honey_box/pages/mall/detail.vue create mode 100644 honey_box/static/ic_recommend.png create mode 100644 server/scripts/alter_goods_describe.sql diff --git a/honey_box/common/platform/MiniProgramPlatform.js b/honey_box/common/platform/MiniProgramPlatform.js index 4b122ceb..65992363 100644 --- a/honey_box/common/platform/MiniProgramPlatform.js +++ b/honey_box/common/platform/MiniProgramPlatform.js @@ -284,8 +284,14 @@ class MiniProgramPlatform extends BasePlatform { handler: () => { } }; - // 将客服菜单插入到第二个位置 - return [...baseMenuList.slice(0, 1), customServiceMenu, ...baseMenuList.slice(1)]; + // 将客服菜单插入到用户协议后面 + const agreementIndex = baseMenuList.findIndex(item => item.title === '用户协议'); + if (agreementIndex !== -1) { + baseMenuList.splice(agreementIndex + 1, 0, customServiceMenu); + return baseMenuList; + } + // 兜底:放到末尾 + return [...baseMenuList, customServiceMenu]; } handleLogout() { uni.showModal({ diff --git a/honey_box/pages.json b/honey_box/pages.json index 20949777..df2eaf20 100644 --- a/honey_box/pages.json +++ b/honey_box/pages.json @@ -198,6 +198,14 @@ "navigationStyle": "custom" } }, + { + "path": "pages/mall/detail", + "style": { + "navigationBarTitleText": "", + "enablePullDownRefresh": false, + "navigationStyle": "custom" + } + }, { "path": "pages/user/coupon", "style": { diff --git a/honey_box/pages/mall/detail.vue b/honey_box/pages/mall/detail.vue new file mode 100644 index 00000000..bbc5d67c --- /dev/null +++ b/honey_box/pages/mall/detail.vue @@ -0,0 +1,489 @@ + + + + + diff --git a/honey_box/pages/mall/index.vue b/honey_box/pages/mall/index.vue index b27dd443..4340edc4 100644 --- a/honey_box/pages/mall/index.vue +++ b/honey_box/pages/mall/index.vue @@ -244,28 +244,10 @@ export default { }, - async order_money(data) { - console.log(234); - this.goodsId = data.id; - // API: mall_ordermoney - const res = await calcMallOrderMoney({ - prize_num: 1, - goods_id: data.id, - num: 1, + order_money(data) { + uni.navigateTo({ + url: '/pages/mall/detail?goods_id=' + data.id }); - - if (res.status == 1) { - this.orderData = res.data; - this.zhifu = 0; - // 使用 goods_extend(API 返回的下划线命名) - const goodsExtend = this.orderData.goods_extend || {}; - if (goodsExtend.pay_wechat == 1) { - this.zhifu = 0; - } else if (goodsExtend.pay_currency2 == 1) { - this.zhifu = 1; - } - this.$refs.pop.open(); - } }, close(e) { diff --git a/honey_box/pages/shouye/index.vue b/honey_box/pages/shouye/index.vue index c3f7e71d..57e15c04 100644 --- a/honey_box/pages/shouye/index.vue +++ b/honey_box/pages/shouye/index.vue @@ -5,8 +5,8 @@ -->
@@ -308,6 +307,9 @@
{include file="Public:footer"/} + + +
@@ -314,6 +312,9 @@
{include file="Public:footer"/} + + +