From b2e667caaa4a979f5635de45edf8f8deaee0c9bf Mon Sep 17 00:00:00 2001 From: LLL <15374889135@163.com> Date: Thu, 20 Mar 2025 18:37:56 +0800 Subject: [PATCH] 7 --- api/member.js | 30 ++++++++++----- common/config.js | 8 ++-- pages/student/index/index.vue | 19 --------- pages/student/my/update_pass.vue | 66 +++++++++++++++++++++----------- 4 files changed, 69 insertions(+), 54 deletions(-) diff --git a/api/member.js b/api/member.js index 356fea2..394169d 100644 --- a/api/member.js +++ b/api/member.js @@ -1,15 +1,27 @@ import http from '../common/axios.js' -//获取学员信息 -function member(data) { - let url = '/member/member' - return http.get(url,data).then(res => { - return res; - }) -} - export default { - member, + //学员详情 + member(data) { + let url = '/member/member' + return http.get(url,data).then(res => { + return res; + }) + }, + //验证原始密码 + is_pass(data) { + let url = '/member/is_pass' + return http.post(url,data).then(res => { + return res; + }) + }, + //设置新密码 + set_pass(data) { + let url = '/member/set_pass' + return http.post(url,data).then(res => { + return res; + }) + }, // 业务员端配置项(关于我们) setFeedback(data) { let url = '/member/set_feedback' diff --git a/common/config.js b/common/config.js index 059450c..949925a 100644 --- a/common/config.js +++ b/common/config.js @@ -1,10 +1,10 @@ // 线上地址 -// const Api_url='http://146.56.228.75:20021/api' -// const img_domian = 'http://146.56.228.75:20021/' +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 Api_url='http://zhjw.cc/api' +// const img_domian = 'http://zhjw.cc/' const IsDemo = false diff --git a/pages/student/index/index.vue b/pages/student/index/index.vue index b673f82..6fbca21 100644 --- a/pages/student/index/index.vue +++ b/pages/student/index/index.vue @@ -136,25 +136,6 @@ url: '/pages/student/index/physical_examination' }) } - // fetchData(um_id) { - // user.activity_index({ - // um_id: um_id - // }).then(res => { - // console.log(res) - // if(res.status == 200){ - // if(res.data == null){ - // this.list = [] - // }else{ - // this.list = res.data - // } - // }else{ - // uni.showToast({ - // title: res.msg, - // icon: 'none' - // }) - // } - // }); - // }, } } diff --git a/pages/student/my/update_pass.vue b/pages/student/my/update_pass.vue index eca2dbd..05bd181 100644 --- a/pages/student/my/update_pass.vue +++ b/pages/student/my/update_pass.vue @@ -1,7 +1,7 @@