From c7c9ac209688193905fed1936f1fcaa9587588b7 Mon Sep 17 00:00:00 2001 From: liutong <836164388@qq.com> Date: Thu, 20 Mar 2025 15:36:50 +0800 Subject: [PATCH] =?UTF-8?q?feat(market/data):=20=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E9=94=80=E5=94=AE=E5=88=86=E6=9E=90=E5=92=8C=E9=94=80=E5=94=AE?= =?UTF-8?q?=E6=8E=92=E5=90=8D=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 添加销售分析图表,展示成交率、试听率和跟进率 - 实现销售排名列表,显示前四名销售人员的业绩 -增加标签切换功能,用户可在销售分析和销售排名之间切换 - 优化页面布局和样式,提升用户体验 --- api/medication.js | 164 +---------------------------- common/config.js | 10 +- components/AQ/AQUplodeImgMulti.vue | 2 +- pages/market/my/set_up.vue | 12 ++- pages/student/login/login.vue | 13 +-- 5 files changed, 32 insertions(+), 169 deletions(-) diff --git a/api/medication.js b/api/medication.js index 4491303..e29b121 100644 --- a/api/medication.js +++ b/api/medication.js @@ -8,170 +8,16 @@ function medication_login(data) { }) } -// 发送短信验证码 -function VerificationCode(data) { - let url = '/dnseyeapi/Login/VerificationCode' - return http.post(url, data).then(res => { - return res; - }) -} - -// 短信验证码登录 -function codelogin(data) { - let url = '/dnseyeapi/Login/codelogin' - return http.post(url, data).then(res => { - return res; - }) -} - -// 微信小程序登录 -function wechatminilogin(data) { - let url = '/dnseyeapi/Login/wechatminilogin' - return http.post(url, data).then(res => { - return res; - }) -} - -//创建用药提醒 -function medication_create(data) { - let url = '/dnseyeapi/Medication/add' - return http.post(url, data).then(res => { - return res; - }) -} - -//编辑用药提醒 -function subscribe(data) { - let url = '/dnseyeapi/Medication/subscribe' - return http.post(url, data).then(res => { - return res; - }) -} - -//修改订阅状态 -function medication_edit(data) { - let url = '/dnseyeapi/Medication/edit' - return http.post(url, data).then(res => { - return res; - }) -} - -//提醒记录 -function homelist(data) { - let url = '/dnseyeapi/Medication/homelist' - return http.post(url, data).then(res => { - return res; - }) -} - -//更改是否用药状态 -function updatestatus(data) { - let url = '/dnseyeapi/Medication/updatestatus' - return http.post(url, data).then(res => { - return res; - }) -} - -//更改是否提醒状态 -function enablereminder(data) { - let url = '/dnseyeapi/Medication/enablereminder' - return http.post(url, data).then(res => { - return res; - }) -} - -//更改单条是否提醒状态 -function enablereminders(data) { - let url = '/dnseyeapi/Medication/enablereminders' - return http.post(url, data).then(res => { - return res; - }) -} - -//删除提醒 -function deletereminder(data) { - let url = '/dnseyeapi/Medication/deletereminder' - return http.post(url, data).then(res => { - return res; - }) -} - -//提醒管理 -function remindermanage(data) { - let url = '/dnseyeapi/Medication/remindermanage' - return http.post(url, data).then(res => { - return res; - }) -} - -//搜索结果点击 -function homesingle(data) { - let url = '/dnseyeapi/Medication/homesingle' - return http.post(url, data).then(res => { - return res; - }) -} - -//获取最新提醒 -function getuptodate(data) { - let url = '/dnseyeapi/Myinfo/getuptodate' - return http.post(url, data).then(res => { - return res; - }) -} - -//picker值 -function picker(data) { - let url = '/dnseyeapi/Medication/picker' - return http.post(url, data).then(res => { - return res; - }) -} - -//获取没有订阅的药品名称 -function determine(data) { - let url = '/dnseyeapi/Medication/determine' - return http.post(url, data).then(res => { - return res; - }) -} - -//修改订阅状态 -function determinetype(data) { - let url = '/dnseyeapi/Medication/determinetype' - return http.post(url, data).then(res => { - return res; - }) -} - -//获取分享图片 -function shareimage() { - let url = '/dnseyeapi/Medication/shareimage' - return http.post(url).then(res => { +//登录 +function login(data) { + let url = '/login' + return http.get(url,data).then(res => { return res; }) } export default { - medication_create, - VerificationCode, - codelogin, - // register, - wechatminilogin, + login, medication_login, - getuptodate, - medication_edit, - homelist, - updatestatus, - enablereminder, - deletereminder, - remindermanage, - homesingle, - subscribe, - enablereminders, - picker, - determine, - determinetype, - shareimage } \ No newline at end of file diff --git a/common/config.js b/common/config.js index ee6ec31..059450c 100644 --- a/common/config.js +++ b/common/config.js @@ -1,5 +1,11 @@ -const Api_url='https://medication.zeyan.wang/' -const img_domian = 'https://medication.zeyan.wang/' +// 线上地址 +// const Api_url='http://146.56.228.75:20021/api' +// const img_domian = 'http://146.56.228.75:20021/' + +//本地测试地址 +const Api_url='http://zhjw.cc/api' +const img_domian = 'http://zhjw.cc/' + const IsDemo = false // const Api_url_B='http://hycrm.zeyan.wang/api/hygl' diff --git a/components/AQ/AQUplodeImgMulti.vue b/components/AQ/AQUplodeImgMulti.vue index f98b09f..253fb87 100644 --- a/components/AQ/AQUplodeImgMulti.vue +++ b/components/AQ/AQUplodeImgMulti.vue @@ -99,7 +99,7 @@ import {Api_url} from "../../common/config"; }, //上传接口地址 - uploadApiUrl: `${Api_url}api/upload/memberStore`, + uploadApiUrl: `${Api_url}api/file/image`, // 上传图片的样式 imageStyles: { diff --git a/pages/market/my/set_up.vue b/pages/market/my/set_up.vue index af5d87e..1849ad5 100644 --- a/pages/market/my/set_up.vue +++ b/pages/market/my/set_up.vue @@ -8,7 +8,7 @@ 清空缓存 - 退出账号 + 退出账号 @@ -21,6 +21,16 @@ } }, methods: { + //退出登陆 + logOut(){ + //清空用户缓存数据 + uni.removeStorageSync('userInfo'); + //跳转登陆页面 + uni.navigateTo({ + url: '/pages/student/login/login' + }) + }, + privacy_agreement(type){ uni.navigateTo({ url: '/pages/common/privacy_agreement?type='+type diff --git a/pages/student/login/login.vue b/pages/student/login/login.vue index 0031fb4..87887cf 100644 --- a/pages/student/login/login.vue +++ b/pages/student/login/login.vue @@ -36,12 +36,14 @@