From fda080020560a415246e9541a36e4e8b0da0ff7f Mon Sep 17 00:00:00 2001
From: zhaoxiaodong <1713399534@qq.com>
Date: Mon, 30 Mar 2026 22:09:14 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=AE=A2=E5=8D=95=E9=A1=B5?=
=?UTF-8?q?=E9=9D=A2=EF=BC=8C1.tab=E6=94=B9=E4=B8=BA=E5=85=A8=E9=83=A8?=
=?UTF-8?q?=E8=AE=A2=E5=8D=952.=E6=B7=BB=E5=8A=A0=E4=B8=89=E4=B8=AA?=
=?UTF-8?q?=E7=AD=9B=E9=80=89=E9=A1=B93=E3=80=82=E5=AF=B9=E6=8E=A5?=
=?UTF-8?q?=E6=8E=A5=E5=8F=A3=E5=B1=95=E7=A4=BA=E5=88=97=E8=A1=A8=E4=BB=A5?=
=?UTF-8?q?=E5=8F=8A=E8=AF=A6=E6=83=85=E9=A1=B5=E9=9D=A2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
api/back.js | 50 +++++
package_a/back/back.vue | 378 +++++++++++++++++-----------------
package_a/back/backDetail.vue | 144 +++++++++++++
pages.json | 2 +
4 files changed, 390 insertions(+), 184 deletions(-)
create mode 100644 api/back.js
create mode 100644 package_a/back/backDetail.vue
diff --git a/api/back.js b/api/back.js
new file mode 100644
index 0000000..ce1b1db
--- /dev/null
+++ b/api/back.js
@@ -0,0 +1,50 @@
+import request8081 from '@/api/product'
+import apiUrl from '@/utils/api'
+import { getToken } from '@/utils/auth'
+
+// 专门用于8081端口的请求(复用 product.js 中的 request8081 逻辑)
+const request = config => {
+ config.header = config.header || {}
+ const token = getToken()
+ if (token) {
+ config.header['Authorization'] = 'Bearer ' + token
+ }
+
+ const requestUrl = apiUrl + config.url
+
+ return new Promise((resolve, reject) => {
+ uni.request({
+ method: config.method || 'GET',
+ timeout: 10000,
+ url: requestUrl,
+ data: config.data,
+ header: {
+ 'Content-Type': 'application/json;charset=UTF-8',
+ ...config.header
+ },
+ dataType: 'json'
+ }).then(response => {
+ let [error, res] = response
+ if (error) {
+ reject(new Error('后端接口连接异常'))
+ return
+ }
+ if (res.statusCode !== 200) {
+ reject(new Error(`HTTP异常: ${res.statusCode}`))
+ return
+ }
+ resolve(res.data)
+ }).catch(err => {
+ reject(err)
+ })
+ })
+}
+
+// 获取订单列表
+export function getOrderList(data) {
+ return request({
+ url: '/mall/order/list',
+ method: 'POST',
+ data: data
+ })
+}
diff --git a/package_a/back/back.vue b/package_a/back/back.vue
index 6a7d757..ec8fc05 100644
--- a/package_a/back/back.vue
+++ b/package_a/back/back.vue
@@ -1,222 +1,232 @@
-
-
-
-
- 全部事件
- 只看订单
+ 全部订单
+
- 🔍
-
- ☰
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ currentPayStatusLabel || '请选择支付状态' }}
+
+
+
+
+
+ ↺
+
+ ☰
-
- 🔍
- 筛选
+
+
+ 搜索
-
-
+
+
+
+
+
+
+
+ 支付金额:
+ ¥{{ item.payAmount || '0.00' }}
+
+
+ 支付时间:
+ {{ item.payTime || '--' }}
+
+
+
+
+
+
+
- 📄⚙️
+ 📄
暂无数据
-
+
\ No newline at end of file
diff --git a/package_a/back/backDetail.vue b/package_a/back/backDetail.vue
new file mode 100644
index 0000000..807cd38
--- /dev/null
+++ b/package_a/back/backDetail.vue
@@ -0,0 +1,144 @@
+
+
+
+
+
+
+
+
+
+ {{ item.productName || '--' }}
+
+
+ 条码:{{ item.productBarCode || '--' }}
+
+
+
+ ¥{{ item.subtotal || item.unitPrice || '0.00' }}
+
+ x {{ item.quantity || 1 }}
+
+
+
+
+
+
+ 暂无商品信息
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages.json b/pages.json
index b3e7cf4..0f59058 100644
--- a/pages.json
+++ b/pages.json
@@ -46,6 +46,8 @@
{ "path": "import/import", "style": { "navigationBarTitleText": "" } },
{ "path": "category/category", "style": { "navigationBarTitleText": "" } },
{ "path": "back/back", "style": { "navigationBarTitleText": "" } },
+ { "path": "back/backDetail", "style": { "navigationBarTitleText": "订单详情" } },
+
{ "path": "mine/info/index", "style": { "navigationBarTitleText": "个人信息" } },
{ "path": "mine/info/edit", "style": { "navigationBarTitleText": "编辑资料" } },
{ "path": "mine/setting/index", "style": { "navigationBarTitleText": "应用设置" } },