From 1add3af7856ae2eb5c3f6d2592468d2d15a9b5b9 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Sat, 16 Dec 2023 21:00:23 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A5=20=E5=8F=91=E7=A5=A8=EF=BC=9A?= =?UTF-8?q?=E7=A7=BB=E9=99=A4=E7=9B=B8=E5=85=B3=E5=8A=9F=E8=83=BD=EF=BC=8C?= =?UTF-8?q?=E6=9A=82=E6=97=B6=E4=B8=8D=E8=80=83=E8=99=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages.json | 32 -- pages/order/invoice.vue | 329 ------------------ pages/public/error.vue | 11 +- pages/user/info.vue | 12 +- pages/user/invoice/edit.vue | 277 --------------- pages/user/invoice/list.vue | 82 ----- sheep/api/order.js | 6 - sheep/api/user.js | 36 -- .../s-invoice-item/s-invoice-item.vue | 96 ----- 9 files changed, 9 insertions(+), 872 deletions(-) delete mode 100644 pages/order/invoice.vue delete mode 100644 pages/user/invoice/edit.vue delete mode 100644 pages/user/invoice/list.vue delete mode 100644 sheep/components/s-invoice-item/s-invoice-item.vue diff --git a/pages.json b/pages.json index 9b831895..b4636728 100644 --- a/pages.json +++ b/pages.json @@ -199,16 +199,6 @@ "group": "订单中心" } }, - { - "path": "invoice", - "style": { - "navigationBarTitleText": "发票详情" - }, - "meta": { - "auth": true, - "title": "发票详情" - } - }, { "path": "aftersale/apply", "style": { @@ -324,28 +314,6 @@ "title": "编辑地址" } }, - { - "path": "invoice/list", - "style": { - "navigationBarTitleText": "发票管理" - }, - "meta": { - "auth": true, - "sync": true, - "title": "发票管理", - "group": "用户中心" - } - }, - { - "path": "invoice/edit", - "style": { - "navigationBarTitleText": "编辑发票" - }, - "meta": { - "auth": true, - "title": "编辑发票" - } - }, { "path": "wallet/money", "style": { diff --git a/pages/order/invoice.vue b/pages/order/invoice.vue deleted file mode 100644 index dd33fa19..00000000 --- a/pages/order/invoice.vue +++ /dev/null @@ -1,329 +0,0 @@ - - - - - - diff --git a/pages/public/error.vue b/pages/public/error.vue index a16d4d5c..3ccc14d9 100644 --- a/pages/public/error.vue +++ b/pages/public/error.vue @@ -1,3 +1,4 @@ + @@ -37,16 +38,18 @@ const errCode = ref(''); const errMsg = ref(''); + onLoad((options) => { errCode.value = options.errCode; errMsg.value = options.errMsg; }); + // 重新连接 async function onReconnect() { uni.reLaunch({ url: '/pages/index/index', }); - ShoproInit(); + await ShoproInit(); } diff --git a/pages/user/info.vue b/pages/user/info.vue index b6251178..c7ccd4a2 100644 --- a/pages/user/info.vue +++ b/pages/user/info.vue @@ -140,15 +140,7 @@ showArrow :border="false" class="list-border" - > - + /> @@ -316,7 +308,7 @@ // avatar: state.model.avatar, // nickname: state.model.nickname, // gender: state.model.gender, - // }); + // }); const { code, data } = await sheep.$api.user.update({ avatar: state.model.avatar, nickname: state.model.nickname, diff --git a/pages/user/invoice/edit.vue b/pages/user/invoice/edit.vue deleted file mode 100644 index 704d2fce..00000000 --- a/pages/user/invoice/edit.vue +++ /dev/null @@ -1,277 +0,0 @@ - - - - - diff --git a/pages/user/invoice/list.vue b/pages/user/invoice/list.vue deleted file mode 100644 index bb3be36c..00000000 --- a/pages/user/invoice/list.vue +++ /dev/null @@ -1,82 +0,0 @@ - - - - - diff --git a/sheep/api/order.js b/sheep/api/order.js index 8fb48cad..7b27d441 100644 --- a/sheep/api/order.js +++ b/sheep/api/order.js @@ -15,12 +15,6 @@ export default { // method: 'GET', // params, // }), - // 发票详情 - invoice: (id) => - request({ - url: 'order/invoice/' + id, - method: 'GET', - }), // 获取支付结果 payResult: (id) => request({ diff --git a/sheep/api/user.js b/sheep/api/user.js index 4cab75d9..f4e07c47 100644 --- a/sheep/api/user.js +++ b/sheep/api/user.js @@ -247,42 +247,6 @@ export default { method: 'DELETE', }), }, - invoice: { - list: () => - request({ - url: 'user/invoice', - method: 'GET', - custom: {}, - }), - create: (data) => - request({ - url: 'user/invoice', - method: 'POST', - data, - custom: { - showSuccess: true, - }, - }), - update: (id, data) => - request({ - url: 'user/invoice/' + id, - method: 'PUT', - data, - custom: { - showSuccess: true, - }, - }), - detail: (id) => - request({ - url: 'user/invoice/' + id, - method: 'GET', - }), - delete: (id) => - request({ - url: 'user/invoice/' + id, - method: 'DELETE', - }), - }, favorite: { list: (params) => request2({ diff --git a/sheep/components/s-invoice-item/s-invoice-item.vue b/sheep/components/s-invoice-item/s-invoice-item.vue deleted file mode 100644 index 3b4e7d9a..00000000 --- a/sheep/components/s-invoice-item/s-invoice-item.vue +++ /dev/null @@ -1,96 +0,0 @@ - - - - -