From 333d47faa82af2cc161e5233329cb3830e6e7e37 Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Thu, 29 Aug 2024 10:47:37 +0800 Subject: [PATCH] fix --- order/editCourse/editCourse.vue | 3 +-- order/productDetail/productDetail.vue | 6 ++++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/order/editCourse/editCourse.vue b/order/editCourse/editCourse.vue index c27db9d..2eb2a5d 100644 --- a/order/editCourse/editCourse.vue +++ b/order/editCourse/editCourse.vue @@ -130,7 +130,7 @@ async handleProduct() { const list = uni.getStorageSync('courses') let courses = {} - + // 产品分类 productTypeList().then(res => { res.typeList.forEach(e => { @@ -144,7 +144,6 @@ }) const { provinceId, cityId } = this const isTrial = this.orderType == 2 - list.map(async e => { // 查询产品管理设置的平台结算价 if (provinceId) { diff --git a/order/productDetail/productDetail.vue b/order/productDetail/productDetail.vue index bb6c9b3..1a7bbdc 100644 --- a/order/productDetail/productDetail.vue +++ b/order/productDetail/productDetail.vue @@ -253,7 +253,7 @@ }, // 下单 order() { - const { mall } = this.form + const { mall, typeIds } = this.form const classificationId = this.form.classificationIds[0] const authority = this.$util.getOrderType(classificationId) // 把该产品添加至缓存 @@ -279,7 +279,9 @@ miniProgramPictureAddress: mall.appletIcon || '', // 图标 settlementPrice: 0, // 结算价 settlementPriceUnit: 0, // 结算单价 - serviceFee: 0 // 平台服务费(前端计算后展示,不入库) + serviceFee: 0, // 平台服务费(前端计算后展示,不入库) + typeId: typeIds && typeIds.length ? typeIds[0] : '', + classificationId, }]) this.$util.to(`../orderDetail/orderDetail?shopCart=1`) }