From cf1162858b8d53ba7b70bcce4fae709cfea13fa9 Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Fri, 14 Jul 2023 10:17:32 +0800 Subject: [PATCH] fix --- apis/request.js | 2 + order/addCourse/addCourse.vue | 4 +- order/editCourse/editCourse.vue | 16 +- order/orderDetail/orderDetail.vue | 257 ++++++++++++++++++++++---- order/productDetail/productDetail.vue | 7 +- order/products/products.vue | 3 +- order/shopCart/shopCart.vue | 105 +++++++++-- pages.json | 6 +- pages/index/index.vue | 12 +- pages/login/login.vue | 44 +++-- pages/person/person.vue | 14 +- pages/reg/reg.vue | 60 +++--- static/image/tab1-1.png | Bin 434 -> 368 bytes static/image/tab1.png | Bin 239 -> 218 bytes static/image/tab2-1.png | Bin 265 -> 223 bytes static/image/tab2.png | Bin 440 -> 372 bytes static/image/tab3-1.png | Bin 246 -> 195 bytes static/image/tab3.png | Bin 377 -> 331 bytes static/image/tab4-1.png | Bin 229 -> 222 bytes static/image/tab4.png | Bin 468 -> 410 bytes team/qrcode/qrcode.vue | 4 +- 21 files changed, 404 insertions(+), 130 deletions(-) diff --git a/apis/request.js b/apis/request.js index 7cb0904..a736015 100644 --- a/apis/request.js +++ b/apis/request.js @@ -41,6 +41,8 @@ const request = options => { }) }, 1500) reject(data) + } else if (status == 10028) { // 用户不存在 + resolve(data) } else if (!status) { resolve(data) } else { diff --git a/order/addCourse/addCourse.vue b/order/addCourse/addCourse.vue index 3d21088..d6c6e47 100644 --- a/order/addCourse/addCourse.vue +++ b/order/addCourse/addCourse.vue @@ -230,7 +230,9 @@ miniProgramPictureAddress: e.appletIcon || '', // 图标 settlementPrice: trial ? 0 : '', // 结算价 settlementPriceUnit: e.settlementPrice || 0, // 结算单价 - serviceFee: 0 // 平台服务费(前端计算后展示,不入库) + serviceFee: 0, // 平台服务费(前端计算后展示,不入库) + mallNonAssociatedLinks: e.mallNonAssociatedLinks, // 产品链接 + typeName: e.typeName } }, // 判断是否为客户已有的课程 diff --git a/order/editCourse/editCourse.vue b/order/editCourse/editCourse.vue index a6e75de..5bc749c 100644 --- a/order/editCourse/editCourse.vue +++ b/order/editCourse/editCourse.vue @@ -16,7 +16,7 @@ 产品类型 - {{ productTypes.find(e => e.id === item.productType).name }} + {{ item.typeName }} 使用期限 @@ -95,20 +95,6 @@ id: 2 }], unitText: ['日', '月', '年'], - productTypes: [ - { - name: '实训课程', - id: 1 - }, - { - name: '理论课程', - id: 0 - }, - { - name: '数据产品', - id: 2 - } - ], courses: {} , // 上一页缓存的产品 orderRepeat: [], repeatMsg: '', diff --git a/order/orderDetail/orderDetail.vue b/order/orderDetail/orderDetail.vue index 738e5bc..9724676 100644 --- a/order/orderDetail/orderDetail.vue +++ b/order/orderDetail/orderDetail.vue @@ -60,7 +60,7 @@ {{ c.name }}