From 9cc39b20540eeed3291e44f696e870cdba1650df Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=8F=B2=E5=BB=BA=E6=9C=88?= <3079579668@qq.com>
Date: Sat, 28 Oct 2023 18:48:12 +0800
Subject: [PATCH] 2
---
src/api/index.js | 86 +++++-
src/router/index.js | 29 +-
.../consultationServer/chat/chat.vue | 148 +++++++++-
.../doctorList/doctorList.vue | 16 +-
.../historyChat/historyChat.vue | 131 +++++++++
src/views/home/information/information.vue | 91 +++++-
src/views/my/attention/attention.vue | 149 +++++++++-
src/views/my/collection/collection.vue | 275 ++++++++++++++++--
.../my/forgetPassword1/forgetPassword1.vue | 4 +-
src/views/my/my.vue | 2 +
.../my/proFile/editProFile/editProFile.vue | 1 +
src/views/my/proFile/index/index.vue | 7 +-
.../set/changePassword/changePassword.vue | 89 +++++-
src/views/set/index/index.vue | 36 ++-
.../set/personInfomation/personInfomation.vue | 166 +++++++++--
src/views/set/setNickname/setNickname.vue | 61 +++-
src/views/set/ss/ss.vue | 15 +
.../viewAuthenticationInformation.vue | 128 +++++++-
src/views/vedio/vedio.vue | 157 +++++++++-
19 files changed, 1453 insertions(+), 138 deletions(-)
create mode 100644 src/views/consultation/consultationServer/historyChat/historyChat.vue
create mode 100644 src/views/set/ss/ss.vue
diff --git a/src/api/index.js b/src/api/index.js
index cd0cff0..833c2e7 100644
--- a/src/api/index.js
+++ b/src/api/index.js
@@ -27,6 +27,14 @@ export const fetchNav = async () => {
export const fetchCon = async (params) => {
return await http.get('/api/health/share/information/v1/findInformationList', params)
}
+// 咨询收藏
+export const fetchZxLike = async (params) => {
+ return await http.post('/api/health/user/verify/v1/addInfoCollection', params)
+}
+// 取消咨询收藏
+export const fetchZxNoLike = async (params) => {
+ return await http.delete('/api/health/user/verify/v1/cancelInfoCollection', params)
+}
// 首页跳转常见药品标题--根据药品类目查询查询常见药品
export const fetchYao = async (params) => {
return await http.get('/api/health/share/knowledgeBase/v1/findDrugsKnowledgeList', params)
@@ -55,6 +63,12 @@ export const fetchConsult = async (infoId) => {
export const fetchVidio = async (params) => {
return await http.get('/api//health/user/video/v1/findVideoVoList', params)
}
+// 视频科目
+export const fetchVidioNav = async () => {
+ return await http.get('/api/health/user/video/v1/findVideoCategoryList')
+}
+
+
// 热门搜索const---热门搜索
export const fetchHotSearch = async () => {
return await http.get('/api/health/share/v1/popularSearch')
@@ -200,8 +214,8 @@ export const fetchImage = async (params) => {
})
}
// 删除文档
-export const fetchDelete=async(params)=>{
- return await http.delete('/api/health/user/verify/v1/deleteUserArchives',params)
+export const fetchDelete = async (params) => {
+ return await http.delete('/api/health/user/verify/v1/deleteUserArchives', params)
}
// 编辑文档
export const fetchEditProfile = async (params) => {
@@ -217,27 +231,67 @@ export const fetchGetProfile = async (params) => {
}
// 收藏病友圈
-export const fetchPatientSave=async(params)=>{
- return await http.post('/api/health/user/verify/v1/addUserSickCollection',params)
+export const fetchPatientSave = async (params) => {
+ return await http.post('/api/health/user/verify/v1/addUserSickCollection', params)
}
//取消 收藏病友圈
-export const fetchPatientNoSave=async(params)=>{
- return await http.delete('/api/health/user/verify/v1/cancelSickCollection',params)
+export const fetchPatientNoSave = async (params) => {
+ return await http.delete('/api/health/user/verify/v1/cancelSickCollection', params)
}
-// 查看收藏病友圈
-export const fetchSeeCirle=async(params)=>{
- return await http.get('/api/health/user/verify/v1/findUserSickCollectionList',params)
+
+// 提现记录 网路异常?
+export const fetchGetList = async (params) => {
+ return await http.get('/api/health/user/verify/v1/findUserDrawRecordList', params)
}
+// 查询用户id信息
+export const fetchIdUser = async () => {
+ return await http.get('/api/health/user/verify/v1/getUserInfoById')
+}
+// 修改昵称
+export const fetchNick = async (params) => {
+ return await http.put('/api/health/user/verify/v1/modifyNickName', params)
+}
+// 患者发送消息
+export const fetchMessage = async (params) => {
+ return await http.post('/api/health/user/inquiry/verify/v1/pushMessage', params)
+}
+// 查询聊天信息列表
+export const fetchChatList = async (params) => {
+ return await http.get('/api/health/user/inquiry/verify/v1/findInquiryRecordList', params)
+}
+// 视频收藏接口
+export const fetchVideoLike = async (params) => {
+ return await http.post('/api/health/user/video/verify/v1/addUserVideoCollection', params)
+}
+// 我的收藏
+
// 查看收藏咨询
-export const fetchSeeAsk=async(params)=>{
- return await http.get('/api/health/user/verify/v1/findVideoCollectionList',params)
+export const fetchSeeAsk = async (params) => {
+ return await http.get('/api/health/user/verify/v1/findUserInfoCollectionList', params)
}
// 查看收藏视屏
-export const fetchSeeVideo=async(params)=>{
- return await http.get('/api/health/user/verify/v1/findVideoCollectionList',params)
+export const fetchSeeVideo = async (params) => {
+ return await http.get('/api/health/user/verify/v1/findVideoCollectionList', params)
}
-// 提现记录 网路异常?
-export const fetchGetList=async(params)=>{
- return await http.get('/api/health/user/verify/v1/findUserDrawRecordList',params)
+// 查看收藏病友圈
+export const fetchSeeCirle = async (params) => {
+ return await http.get('/api/health/user/verify/v1/findUserSickCollectionList', params)
+}
+// 绑定身份证
+export const fetchPerson = async (params) => {
+ return await http.post('/api/health/user/verify/v1/bindUserIdCard', params, {
+ headers: {
+ "Content-Type": "application/json",
+ },
+ })
+}
+// 修改密码
+
+export const fetchUserPwd = async (params) => {
+ return await http.put('/api/health/user/verify/v1/updateUserPwd', params)
+}
+// 关注医生列表
+export const fetchDoctorList = async (params) => {
+ return await http.get('/api/health/user/verify/v1/findUserDoctorFollowList', params)
}
\ No newline at end of file
diff --git a/src/router/index.js b/src/router/index.js
index 09f5109..7d4f45e 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -6,7 +6,7 @@ Vue.use(VueRouter)
const routes = [
{
path: '/',
- redirect: '/my/myLogin'
+ redirect: '/home'
},
// -------------------------首页--------------------------
// 一级home页面
@@ -41,7 +41,7 @@ const routes = [
name: 'search',
component: () => import('../views/home/search/search.vue')
},
- {
+ {
path: 'new/:id/:code',
name: 'new',
component: () => import('../views/home/new/new.vue')
@@ -61,10 +61,15 @@ const routes = [
name: 'consultationServer',
component: () => import('../views/consultation/consultationServer/consultationServer.vue'),
children: [{
- path: 'consultationChat',
+ path: 'consultationChat/:doctorId/:recordId',
name: 'consultationChat',
component: () => import('../views/consultation/consultationServer/chat/chat.vue')
},
+ {
+ path: 'historyChat',
+ name: 'historyChat',
+ component: () => import('../views/consultation/consultationServer/historyChat/historyChat.vue')
+ },
{
path: 'consultationCommentList',
name: 'consultationCommentList',
@@ -198,7 +203,7 @@ const routes = [
{
path: '/my',
name: 'my',
- component:()=>import('../views/my/my.vue'),
+ component: () => import('../views/my/my.vue'),
children: [{
path: 'myAdoptIdea',
name: 'myAdoptIdea',
@@ -273,12 +278,12 @@ const routes = [
{
path: 'myProFile',
name: 'myProFile',
- component:()=>import('../views/my/proFile/proFile.vue'),
+ component: () => import('../views/my/proFile/proFile.vue'),
children: [{
path: 'myProFileAddModifyProfile',
name: 'myProFileAddModifyProfile',
component: () => import('../views/my/proFile/addModifyProfile/addModifyProfile.vue')
- },{
+ }, {
path: 'editProFile/:arr',
name: 'editProFile',
component: () => import('../views/my/proFile/editProFile/editProFile.vue')
@@ -302,6 +307,11 @@ const routes = [
name: 'bindBankCard',
component: () => import('../views/set/bindBankCard/bindBankCard.vue')
},
+ {
+ path: 'ss',
+ name: 'ss',
+ component: () => import('../views/set/ss/ss.vue')
+ },
{
path: 'bindConfirm',
name: 'bindConfirm',
@@ -371,9 +381,10 @@ router.beforeEach((to, from, next) => {
if (to.path === '/my/myLogin') {
return next()
}
-// if (!localStorage.getItem('token')) {
-// return next('/login')
-// }
+
+ if (!localStorage.getItem('userId')) {
+ return next('/my/myLogin')
+ }
next()
})
export default router
diff --git a/src/views/consultation/consultationServer/chat/chat.vue b/src/views/consultation/consultationServer/chat/chat.vue
index 4efc21b..d8a2349 100644
--- a/src/views/consultation/consultationServer/chat/chat.vue
+++ b/src/views/consultation/consultationServer/chat/chat.vue
@@ -1,13 +1,153 @@
- 2023.10.27
+
+
2023.10.27
++ {{ v.doctorName }}{{ v.jobTitle }} +
+{{ v.inauguralHospital }}
+好评率:50%好评率:50%
+{{ v.title }}
+{{ v.title }}
+{{ v.disease }}
+2分钟
+