From d23f45f84a5f0418eb9266e7e45be0001c7d8e09 Mon Sep 17 00:00:00 2001 From: WindowBird <13870814+windows-bird@user.noreply.gitee.com> Date: Fri, 22 Aug 2025 10:13:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=85=E4=BB=A3=E7=90=86=E5=95=86=E8=83=BD?= =?UTF-8?q?=E5=A4=9F=E8=BF=9B=E5=85=A5=E5=88=86=E4=BA=AB=E6=8E=A8=E5=B9=BF?= =?UTF-8?q?=E5=92=8C=E6=88=91=E7=9A=84=E7=94=A8=E6=88=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/agents.js | 12 ++++++++++++ pages/profile/profile.vue | 35 +++++++++++++++++++++++++++-------- 2 files changed, 39 insertions(+), 8 deletions(-) diff --git a/api/agents.js b/api/agents.js index 12cc43a..1da32b2 100644 --- a/api/agents.js +++ b/api/agents.js @@ -59,3 +59,15 @@ export function getAgentAgreement() { export function getServiceAreas() { return get('/app/region') } + +/** + * 获取是否是代理商 + * @returns {Promise} 返回是ture or false + */ +export function isAgent(params) { + return request({ + url: '/app/agent', + method: 'GET', + params, + }) +} diff --git a/pages/profile/profile.vue b/pages/profile/profile.vue index 5ac8915..c186ecc 100644 --- a/pages/profile/profile.vue +++ b/pages/profile/profile.vue @@ -129,6 +129,7 @@