From e80e0c61d9a93782d18ea40d713786f509c5fb88 Mon Sep 17 00:00:00 2001 From: yanran200730 Date: Fri, 5 May 2023 15:40:13 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=A7=E5=B1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/bigscreen/dv/AppQxnEventDv.vue | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/packages/bigscreen/dv/AppQxnEventDv.vue b/packages/bigscreen/dv/AppQxnEventDv.vue index 44ab10b5..6cff9bfc 100644 --- a/packages/bigscreen/dv/AppQxnEventDv.vue +++ b/packages/bigscreen/dv/AppQxnEventDv.vue @@ -580,7 +580,7 @@ }, on: { click: e => { - console.log(params) + this.getLaunchCode(params.row.wxUserId) } }, }, '联系TA' @@ -735,6 +735,20 @@ }[status] }, + getLaunchCode (wxUserId) { + this.instance.post(`/api/appdvcpconfig/getLaunchCode`, null, { + params: { + corpId: 'wpytYEDgAA5zwi8Ak2mwFh3PwBKwwlWA', + userid: wxUserId, + operatorUserid: this.$store.state.user.info.areaId + } + }).then(res => { + if (res.code === 0) { + location.href = `wxwork://launch?launch_code=${res.data}` + } + }) + }, + mapStatus (status, type) { const index = Number(status) return [{ @@ -973,6 +987,10 @@ margin-bottom: 12px; color: #fff; + &:last-child { + margin-bottom: 0; + } + div { flex: 1; margin: 0 18px; @@ -1180,7 +1198,7 @@ justify-content: space-between; width: 100%; line-height: 1; - margin-bottom: 14px; + margin-bottom: 10px; &:last-child { margin-bottom: 0; @@ -1196,6 +1214,8 @@ } span { + width: 70%; + text-align: right; font-size: 14px; color: #fff; }