diff --git a/pages.json b/pages.json
index 9b83189..b463672 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 dd33fa1..0000000
--- a/pages/order/invoice.vue
+++ /dev/null
@@ -1,329 +0,0 @@
-
-
-
-
-
-
-
- {{ state.data.status_text }}
-
-
- 预计可开发票金额:
- ¥{{ state.data.amount }}
-
-
-
- 增值税电子普通发票
-
-
-
-
-
-
-
- {{ item.title }}
-
-
-
-
-
- 发票类型
- {{ state.data.type_text }}
-
-
- 发票抬头
- {{ state.data.name }}
-
-
- 发票税号
- {{ state.data.tax_no }}
-
-
- 实开金额
- ¥{{ state.data.invoice_amount }}
-
-
- 开票时间
- {{ state.data.finish_time }}
-
-
- 申请时间
- {{ state.data.create_time }}
-
-
-
-
-
-
-
-
- 共{{ state.numImage }}张
- 点击预览发票
-
-
-
-
-
-
-
-
-
- 订单状态
- {{ state.data.order?.status_text }}
-
-
- 订单编号
- {{ state.data.order?.order_sn }}
-
-
- 下单时间
- {{ state.data.order?.create_time }}
-
-
-
-
-
-
-
-
-
diff --git a/pages/public/error.vue b/pages/public/error.vue
index a16d4d5..3ccc14d 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 b625117..c7ccd4a 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 704d2fc..0000000
--- 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 bb3be36..0000000
--- 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 8fb48ca..7b27d44 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 4cab75d..f4e07c4 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 3b4e7d9..0000000
--- a/sheep/components/s-invoice-item/s-invoice-item.vue
+++ /dev/null
@@ -1,96 +0,0 @@
-
-
-
- {{ props.item.name }}
- {{ props.item.mobile }}
-
-
- 请选择收货地址
-
-
-
-
-
-
-
-
-
-