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 @@