From 5f1a7f860cb46b2fea2d2dcc8c04e0e56795d359 Mon Sep 17 00:00:00 2001 From: wuhui_zzw <1760308791@qq.com> Date: Fri, 5 Jul 2024 12:00:05 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=EF=BC=9A=E6=B3=95=E5=A4=A7?= =?UTF-8?q?=E5=A4=A7=E5=90=88=E5=90=8C=E7=AD=BE=E7=BD=B2=E6=B5=81=E7=A8=8B?= =?UTF-8?q?-=E8=BF=90=E8=90=A5=E4=B8=AD=E5=BF=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/agent.js | 14 +++ pages.json | 16 +++ pages/agent/centerV2.vue | 10 +- pages/agent/contract/index.vue | 181 +++++++++++++++++++++++++++------ 4 files changed, 185 insertions(+), 36 deletions(-) diff --git a/api/agent.js b/api/agent.js index f2e9e68..adc0cba 100644 --- a/api/agent.js +++ b/api/agent.js @@ -72,6 +72,20 @@ export function deliveryAllocationOrder(data) { } +// 法大大 - 获取个人授权信息 +export function contractAuthInfo(data) { + return request.get(`contract/auth_info`, data); +} +// 法大大 - 获取个人合同签署信息 +export function contractSignInfo(data) { + return request.get(`contract/get_sign_info`, data); +} + + + + + + diff --git a/pages.json b/pages.json index 45bd0b8..5879c43 100644 --- a/pages.json +++ b/pages.json @@ -1550,7 +1550,23 @@ } } ] + }, + { + "root": "pages/webview", + "name": "webview", + "pages": [ + { + "path": "webview", + "style": { + "navigationBarTitleText": "webview" + } + } + ] } + + + + ], "globalStyle": { "navigationBarTextStyle": "black", diff --git a/pages/agent/centerV2.vue b/pages/agent/centerV2.vue index 52fa2f3..458bb64 100644 --- a/pages/agent/centerV2.vue +++ b/pages/agent/centerV2.vue @@ -120,6 +120,7 @@ export default { let menuList = []; let agentType = this.agent_info.agent_type || 0; let merId = this.agent_info.mer_id || 0; + let agentId = this.agent_info.id || 0; // 推广二维码 if(['1','2','3','5','6','9','11'].includes(String(agentType))){ menuList.push({ @@ -187,7 +188,7 @@ export default { menuList.push({ title: '合同签约', type: 'link', - url: '/pages/agent/contract/index', + url: '/pages/agent/contract/index?role_type='+ agentType +'&role_id=' + agentId, icon: 'icon-bianji4', }); @@ -505,8 +506,11 @@ export default { break; // 点击跳转 case 'link': + let link = menu.url; + link = link.includes("?") ? (link + '&') : (link + '?') + link = link + 'agent_id=' + params.agent_id; uni.navigateTo({ - url: menu.url + '?agent_id=' + params.agent_id + url: link }) break; // 门店管理 @@ -519,8 +523,6 @@ export default { }); _this.storeManagement(); break; - - } }, // 推广二维码 - 二维码类型弹框显示 diff --git a/pages/agent/contract/index.vue b/pages/agent/contract/index.vue index 8ab6ad4..ff98fdf 100644 --- a/pages/agent/contract/index.vue +++ b/pages/agent/contract/index.vue @@ -1,15 +1,24 @@