From ee505b397ec10639346cfcfc9a9abb36651c35dd Mon Sep 17 00:00:00 2001 From: liutong <836164388@qq.com> Date: Mon, 31 Mar 2025 10:13:22 +0800 Subject: [PATCH] =?UTF-8?q?feat(api):=20=E6=96=B0=E5=A2=9E=E5=B8=82?= =?UTF-8?q?=E5=9C=BA=E6=A8=A1=E5=9D=97=E6=8E=A5=E5=8F=A3=E5=B9=B6=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E5=AD=97=E5=85=B8=E6=95=B0=E6=8D=AE=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=E5=8A=9F=E8=83=BD-=20=E6=96=B0=E5=A2=9E=20market.js=20?= =?UTF-8?q?=E6=96=87=E4=BB=B6=EF=BC=8C=E5=AE=9E=E7=8E=B0=E9=94=80=E5=94=AE?= =?UTF-8?q?=E7=9B=B8=E5=85=B3=E6=8E=A5=E5=8F=A3=20-=20=E5=9C=A8=20common.j?= =?UTF-8?q?s=20=E4=B8=AD=E6=B7=BB=E5=8A=A0=E8=8E=B7=E5=8F=96=E5=AD=97?= =?UTF-8?q?=E5=85=B8=E6=95=B0=E6=8D=AE=E7=9A=84=E6=96=B9=E6=B3=95-=20?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E7=9A=84=E6=8E=A5=E5=8F=A3=E5=8C=85=E6=8B=AC?= =?UTF-8?q?=EF=BC=9A=20-=20=E8=8E=B7=E5=8F=96=E9=94=80=E5=94=AE=E4=BA=BA?= =?UTF-8?q?=E5=91=98=E8=AF=A6=E6=83=85=20=20=20-=20=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E9=94=80=E5=94=AE=E4=BA=BA=E5=91=98=E8=AF=A6=E6=83=85=20=20=20?= =?UTF-8?q?-=20=E7=BA=BF=E7=B4=A2=E5=88=97=E8=A1=A8=20=20=20-=20=E5=88=9B?= =?UTF-8?q?=E5=BB=BA=E4=BB=BB=E5=8A=A1=20=20-=20=E6=96=B0=E5=BB=BA?= =?UTF-8?q?=E8=B7=9F=E8=BF=9B=20=20=20-=20=E5=B0=8F=E5=8C=BA=E5=88=97?= =?UTF-8?q?=E8=A1=A8=20=20=20-=20=E6=B7=BB=E5=8A=A0=E7=BA=BF=E7=B4=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/common.js | 10 +++++++ api/market.js | 74 +++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 84 insertions(+) create mode 100644 api/market.js diff --git a/api/common.js b/api/common.js index fb99016..d22fe40 100644 --- a/api/common.js +++ b/api/common.js @@ -9,4 +9,14 @@ export default { }) }, + //获取字典数据 + getDictionary(data) { + let url = `/member/dictionary/type/${data}` + return http.get(url,data).then(res => { + return res; + }) + }, + + + } \ No newline at end of file diff --git a/api/market.js b/api/market.js new file mode 100644 index 0000000..25c98f5 --- /dev/null +++ b/api/market.js @@ -0,0 +1,74 @@ +import http from '../common/axios.js' + +//销售相关接口 +export default { + //获取销售人员详情 + member(data) { + let url = '/member/member' + return http.get(url,data).then(res => { + return res; + }) + }, + + //修改销售人员详情 + memberEdit(data) { + let url = '/member/member_edit' + return http.post(url,data).then(res => { + return res; + }) + }, + + //线索列表 + salesList(data) { + let url = '/member/sales_list' + return http.get(url,data).then(res => { + return res; + }) + }, + + //线索列表 + createTask(data) { + let url = '/member/create_task' + return http.get(url,data).then(res => { + return res; + }) + }, + + //写新跟进 + createFollow(data) { + let url = '/member/create_follow' + return http.post(url,data).then(res => { + return res; + }) + }, + + + //小区列表 + getCampusesList(data) { + let url = '/member/get_campuses_list' + return http.get(url,data).then(res => { + return res; + }) + }, + + //添加线索 + setSales(data) { + let url = '/member/set_sales' + return http.post(url,data).then(res => { + return res; + }) + }, + + + + + + + + + + + + + +} \ No newline at end of file