From 19f0e898af03bce3001edab58f10b9898375bb2a Mon Sep 17 00:00:00 2001
From: yujialong <479214531@qq.com>
Date: Fri, 14 Jul 2023 18:24:13 +0800
Subject: [PATCH] fix
---
apis/request.js | 2 +-
order/addCourse/addCourse.vue | 2 +-
order/curClient/curClient.vue | 5 +
order/editCourse/editCourse.vue | 139 ++++++++--------
order/orderDetail/orderDetail.vue | 152 ++++++++++--------
order/productDetail/productDetail.vue | 15 +-
order/shopCart/shopCart.vue | 4 +-
pages.json | 25 +--
pages/index/index.vue | 3 +
pages/login/login.vue | 27 +++-
pages/orders/orders.vue | 2 +-
pages/person/person.vue | 8 +-
pages/products/products.vue | 219 --------------------------
pages/workbench/workbench.vue | 10 +-
{pages => team}/plans/plans.vue | 0
15 files changed, 227 insertions(+), 386 deletions(-)
delete mode 100644 pages/products/products.vue
rename {pages => team}/plans/plans.vue (100%)
diff --git a/apis/request.js b/apis/request.js
index a736015..4031782 100644
--- a/apis/request.js
+++ b/apis/request.js
@@ -41,7 +41,7 @@ const request = options => {
})
}, 1500)
reject(data)
- } else if (status == 10028) { // 用户不存在
+ } else if (status == 10028 || status == 10014) { // 用户不存在
resolve(data)
} else if (!status) {
resolve(data)
diff --git a/order/addCourse/addCourse.vue b/order/addCourse/addCourse.vue
index d6c6e47..518b9c5 100644
--- a/order/addCourse/addCourse.vue
+++ b/order/addCourse/addCourse.vue
@@ -232,7 +232,7 @@
settlementPriceUnit: e.settlementPrice || 0, // 结算单价
serviceFee: 0, // 平台服务费(前端计算后展示,不入库)
mallNonAssociatedLinks: e.mallNonAssociatedLinks, // 产品链接
- typeName: e.typeName
+ typeName: e.typeName,
}
},
// 判断是否为客户已有的课程
diff --git a/order/curClient/curClient.vue b/order/curClient/curClient.vue
index 1fa3992..95c66fb 100644
--- a/order/curClient/curClient.vue
+++ b/order/curClient/curClient.vue
@@ -132,6 +132,11 @@
const { options } = pages[pages.length - 1]
this.customerId = options.customerId
this.customerName = options.name
+ // 清除订单缓存
+ try {
+ uni.removeStorageSync('orderForm')
+ uni.removeStorageSync('courses')
+ } catch (e) {}
this.initList()
},
methods: {
diff --git a/order/editCourse/editCourse.vue b/order/editCourse/editCourse.vue
index 5bc749c..720d3f8 100644
--- a/order/editCourse/editCourse.vue
+++ b/order/editCourse/editCourse.vue
@@ -1,69 +1,71 @@