From a749b21dcfc1bfdad661b784f281d6788f3304d0 Mon Sep 17 00:00:00 2001 From: BianLzhaoMin <11485688+bianliangzhaomin123@user.noreply.gitee.com> Date: Thu, 17 Oct 2024 17:10:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=9C=E4=B8=9A=E8=AF=A6=E6=83=85=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/realName/workPlan-details/index.vue | 173 +++++++++++++++++++++- pages/realName/workPlan/index.vue | 38 ++++- 2 files changed, 206 insertions(+), 5 deletions(-) diff --git a/pages/realName/workPlan-details/index.vue b/pages/realName/workPlan-details/index.vue index 891355c..28c8f8a 100644 --- a/pages/realName/workPlan-details/index.vue +++ b/pages/realName/workPlan-details/index.vue @@ -1,9 +1,176 @@ - + diff --git a/pages/realName/workPlan/index.vue b/pages/realName/workPlan/index.vue index c142842..d247ace 100644 --- a/pages/realName/workPlan/index.vue +++ b/pages/realName/workPlan/index.vue @@ -35,6 +35,12 @@ {{ index + 1 }} {{ item.proName }} + {{ item.subComName }} @@ -133,7 +139,7 @@ export default { this.companyList = this.companyList.concat(res.subList) }, leftClick() { - uni.navigateTo({ url: '/pages/realName/index/index' }) + uni.navigateTo({ url: `/pages/realName/index/index` }) }, onSearchFilter() { // 打开底部弹框 @@ -162,7 +168,35 @@ export default { }, /* 点击跳转作业计划详情 */ onViewWorkDetails(row) { - uni.navigateTo({ url: '/pages/realName/workPlan-details/index' }) + uni.navigateTo({ url: `/pages/realName/workPlan-details/index?query=${JSON.stringify(row)}` }) + }, + /* 收藏与取消收藏 */ + onCollection(e, row) { + e.stopPropagation() + // const params = { + // id: row.collectId, + // userId: uni.getStorageSync('realNameUser').userId, + // foreignId: row.proId, + // type: 1 + // } + + // // console.log('params参数', params) + + // uni.request({ + // url: `${config.loginBaseUrl}${ + // row.isCollect == 0 ? '/app/offLine/insertCollect' : '/app/offLine/deleteCollect' + // }`, + // method: 'POST', + // data: JSON.stringify(params), + // header: { + // 'Content-Type': 'application/json', + // token: this.token + // }, + // success: res => { + // console.log('res收藏结果', res) + // }, + // fail: err => {} + // }) } } }