From 5d86d49479ca93097759d85de1bf440fd53c3f33 Mon Sep 17 00:00:00 2001 From: wangchenguang <728837162@qq.com> Date: Fri, 21 Apr 2023 14:56:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apis/modules/parner.js | 2 +- config/request.js | 4 +- order/editCourse/editCourse.vue | 19 ++- order/orderDetail/orderDetail.vue | 254 +++++++++++++++++++++++++++- order/orders/orders.vue | 2 +- pages/clientDetail/clientDetail.vue | 10 +- pages/clients/clients.vue | 2 +- static/image/edit.png | Bin 0 -> 843 bytes 8 files changed, 276 insertions(+), 17 deletions(-) create mode 100644 static/image/edit.png diff --git a/apis/modules/parner.js b/apis/modules/parner.js index 51ff78a..b6a7e9d 100644 --- a/apis/modules/parner.js +++ b/apis/modules/parner.js @@ -39,4 +39,4 @@ export const queryTeamMembers = (data) => { export const updatePartner = (data) => { return post('nakadai/nakadai/partnerClassification/update', data) -} \ No newline at end of file +} diff --git a/config/request.js b/config/request.js index 6748186..042bc89 100644 --- a/config/request.js +++ b/config/request.js @@ -5,9 +5,9 @@ */ export default { - baseURL: 'https://huorantech.cn/', + // baseURL: 'https://huorantech.cn/', // baseURL: 'http://192.168.31.151:9000/', - // baseURL: 'http://121.37.12.51/', + baseURL: 'http://121.37.12.51/', headers: { 'Content-Type': 'application/json;charset=UTF-8' }, diff --git a/order/editCourse/editCourse.vue b/order/editCourse/editCourse.vue index 6cd791e..731f36d 100644 --- a/order/editCourse/editCourse.vue +++ b/order/editCourse/editCourse.vue @@ -18,7 +18,7 @@ 产品类型 {{ productTypes.find(e => e.id === item.productType).name }} - + 使用期限 {{ units.find(e => e.id === item.options).text }} @@ -118,7 +118,7 @@ courses: {} , // 上一页缓存的产品 orderRepeat: [], repeatMsg: '', - err: '' + err: '', } }, onShow() { @@ -163,6 +163,21 @@ courses.data.list.push(e) }) + // let selectData= [] + // let itemIndex = '' + // for (let item in courses) { + // if(courses[item].list.length) { + // const data = courses[item].list.find(options=>{ + // if(options.id == this.editId) { + // itemIndex = item + // } + // return options.id == this.editId + // }) + // selectData.push(data) + // break + // } + // } + // courses[itemIndex].list = selectData this.courses = courses try { uni.removeStorageSync('courses') diff --git a/order/orderDetail/orderDetail.vue b/order/orderDetail/orderDetail.vue index 2da3736..6e1743a 100644 --- a/order/orderDetail/orderDetail.vue +++ b/order/orderDetail/orderDetail.vue @@ -63,7 +63,8 @@ {{ c.name }}