From 8820e27fbd9c7bd7efd29ca1949669995c814e07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B1=9F=E6=A1=82=E6=B3=89?= <766447568@qq.com> Date: Fri, 27 Oct 2023 15:11:24 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AC=AC=E4=B8=80=E6=AC=A1=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package-lock.json | 13 +- package.json | 2 + src/App.vue | 13 +- src/assets/flexible.js | 107 +++++ src/assets/images/icon/center.png | Bin 0 -> 9358 bytes src/assets/images/icon/center_active.png | Bin 0 -> 8214 bytes .../icon/common_button_collection_large_n.png | Bin 0 -> 2251 bytes .../icon/common_button_collection_large_s.png | Bin 0 -> 1551 bytes .../images/icon/common_icon_agree_n.png | Bin 0 -> 952 bytes .../images/icon/common_icon_agree_s.png | Bin 0 -> 717 bytes .../icon/common_icon_attention_large_n.png | Bin 0 -> 1305 bytes .../icon/common_icon_attention_large_s.png | Bin 0 -> 965 bytes .../icon/common_icon_comment_large_n.png | Bin 0 -> 2462 bytes .../images/icon/common_icon_disagree_n.png | Bin 0 -> 932 bytes .../images/icon/common_icon_disagree_s.png | Bin 0 -> 806 bytes src/assets/images/icon/common_icon_more_n.png | Bin 0 -> 1873 bytes .../icon/common_nav_message_black_n.png | Bin 0 -> 1298 bytes src/assets/images/icon/evaluation_star_s.png | Bin 0 -> 739 bytes src/assets/images/icon/home.png | Bin 0 -> 1890 bytes src/assets/images/icon/home_active.png | Bin 0 -> 2211 bytes src/assets/images/icon/robot.jpg | Bin 0 -> 195347 bytes src/assets/images/icon/user.png | Bin 0 -> 5081 bytes src/assets/images/icon/video.png | Bin 0 -> 1946 bytes src/assets/images/icon/video_active.png | Bin 0 -> 2142 bytes src/assets/images/icon/微信.png | Bin 0 -> 1798 bytes src/assets/images/icon/支付宝.png | Bin 0 -> 1907 bytes src/assets/images/icon/语音.png | Bin 0 -> 1544 bytes src/assets/images/img/common_disease.png | Bin 0 -> 42138 bytes src/assets/images/img/common_drugs.png | Bin 0 -> 49078 bytes src/assets/images/img/health_assessment.png | Bin 0 -> 139607 bytes src/assets/images/img/historical_inquiry.png | Bin 0 -> 12629 bytes src/assets/images/img/my_background.png | Bin 0 -> 21431 bytes .../images/img/my_wallet_background.png | Bin 0 -> 41054 bytes src/assets/images/img/tab-bar.png | Bin 0 -> 5689 bytes src/assets/images/img/the_current_inquiry.png | Bin 0 -> 10265 bytes src/assets/images/img/我的任务.png | Bin 0 -> 3550 bytes src/assets/images/img/我的关注.png | Bin 0 -> 2397 bytes src/assets/images/img/我的收藏.png | Bin 0 -> 3137 bytes src/assets/images/img/我的档案.png | Bin 0 -> 3242 bytes src/assets/images/img/我的病友圈.png | Bin 0 -> 3935 bytes src/assets/images/img/我的视频.png | Bin 0 -> 3163 bytes src/assets/images/img/我的钱包.png | Bin 0 -> 2739 bytes src/assets/images/img/被采纳建议.png | Bin 0 -> 2480 bytes src/assets/images/img/设置管理.png | Bin 0 -> 3928 bytes src/assets/images/img/鱼.png | Bin 0 -> 62258 bytes .../images/login-img/common_icon_weixin_n.png | Bin 0 -> 1798 bytes src/assets/images/login-img/login_bg.png | Bin 0 -> 255110 bytes src/assets/images/login-img/login_hand_03.png | Bin 0 -> 7701 bytes .../login-img/login_icon_hide_password_n.png | Bin 0 -> 866 bytes .../images/login-img/login_icon_lock_n.png | Bin 0 -> 1530 bytes .../images/login-img/login_icon_mail_n.png | Bin 0 -> 1561 bytes .../login-img/login_icon_show_password.png | Bin 0 -> 2395 bytes .../register_icon_invitatiion_code_n.png | Bin 0 -> 1940 bytes .../register_icon_verification_code_n.png | Bin 0 -> 1647 bytes src/components/BackAndTit/index.vue | 29 ++ src/components/DetailRedTitle/index.vue | 16 + src/components/DoctorDetail/index.vue | 12 + src/components/HelloWorld.vue | 59 --- src/components/HomeTitle/Title.vue | 22 + src/components/MyHeader/MyHeader.vue | 57 +++ src/components/Set/index.vue | 17 + src/components/TabBar/TabBar.vue | 103 +++++ src/getData/index.js | 311 +++++++++++++ src/http/index.js | 24 +- src/main.js | 26 +- src/mixins/mixins.js | 40 ++ src/router/index.js | 45 +- src/store/index.js | 16 + src/views/consultation/consultation.vue | 2 +- .../consultationServer/chat/chat.vue | 92 +++- .../commentList/commentList.vue | 65 ++- .../consultationServer/consultationServer.vue | 4 +- .../consultationServer/detail/detail.vue | 259 ++++++++++- .../doctorList/doctorList.vue | 280 +++++++++++- .../myConsultation/comment/comment.vue | 131 +++++- .../myConsultation/current/current.vue | 103 ++++- .../myConsultation/history/history.vue | 118 ++++- .../myConsultation/myConsultation.vue | 2 +- src/views/home/default/default.vue | 358 +++++++++++++++ src/views/home/home.vue | 180 +++++++- src/views/home/information/detail/detail.vue | 37 +- src/views/home/information/information.vue | 4 +- .../home/knowledgeBase/bigPage/index.vue | 168 +++++++ .../home/knowledgeBase/detail/detail.vue | 100 ++++- .../home/knowledgeBase/knowledgeBase.vue | 12 +- src/views/home/search/search.vue | 201 ++++++++- src/views/my/attention/attention.vue | 113 ++++- src/views/my/collection/collection.vue | 257 ++++++++++- src/views/my/index/index.vue | 186 +++++++- src/views/my/login/login.vue | 209 ++++++++- src/views/my/my.vue | 6 + .../commentList/commentList.vue | 74 +++- src/views/my/myPatientCircle/index.vue | 4 + src/views/my/myPatientCircle/index/index.vue | 78 +++- .../addModifyProfile/addModifyProfile.vue | 200 ++++++++- src/views/my/proFile/index.vue | 3 + src/views/my/proFile/index/index.vue | 132 +++++- src/views/my/register/register.vue | 230 +++++++++- src/views/patientCircle/Default/index.vue | 255 +++++++++++ src/views/patientCircle/detail/detail.vue | 307 ++++++++++++- src/views/patientCircle/patientCircle.vue | 5 +- .../patientCircle/search/default/index.vue | 86 ++++ .../patientCircle/search/result/result.vue | 115 ++++- src/views/patientCircle/search/search.vue | 2 +- src/views/patientCircle/write/write.vue | 418 +++++++++++++++++- src/views/set/index/index.vue | 80 +++- .../set/personInfomation/personInfomation.vue | 15 +- src/views/vedio/vedio.vue | 81 +++- src/views/wallet/myWallet/myWallet.vue | 191 +++++++- src/views/wallet/recharge/recharge.vue | 124 +++++- src/views/wallet/wallet.vue | 2 +- vue.config.js | 11 +- yarn.lock | 7 +- 113 files changed, 5995 insertions(+), 224 deletions(-) create mode 100644 src/assets/flexible.js create mode 100644 src/assets/images/icon/center.png create mode 100644 src/assets/images/icon/center_active.png create mode 100644 src/assets/images/icon/common_button_collection_large_n.png create mode 100644 src/assets/images/icon/common_button_collection_large_s.png create mode 100644 src/assets/images/icon/common_icon_agree_n.png create mode 100644 src/assets/images/icon/common_icon_agree_s.png create mode 100644 src/assets/images/icon/common_icon_attention_large_n.png create mode 100644 src/assets/images/icon/common_icon_attention_large_s.png create mode 100644 src/assets/images/icon/common_icon_comment_large_n.png create mode 100644 src/assets/images/icon/common_icon_disagree_n.png create mode 100644 src/assets/images/icon/common_icon_disagree_s.png create mode 100644 src/assets/images/icon/common_icon_more_n.png create mode 100644 src/assets/images/icon/common_nav_message_black_n.png create mode 100644 src/assets/images/icon/evaluation_star_s.png create mode 100644 src/assets/images/icon/home.png create mode 100644 src/assets/images/icon/home_active.png create mode 100644 src/assets/images/icon/robot.jpg create mode 100644 src/assets/images/icon/user.png create mode 100644 src/assets/images/icon/video.png create mode 100644 src/assets/images/icon/video_active.png create mode 100644 src/assets/images/icon/微信.png create mode 100644 src/assets/images/icon/支付宝.png create mode 100644 src/assets/images/icon/语音.png create mode 100644 src/assets/images/img/common_disease.png create mode 100644 src/assets/images/img/common_drugs.png create mode 100644 src/assets/images/img/health_assessment.png create mode 100644 src/assets/images/img/historical_inquiry.png create mode 100644 src/assets/images/img/my_background.png create mode 100644 src/assets/images/img/my_wallet_background.png create mode 100644 src/assets/images/img/tab-bar.png create mode 100644 src/assets/images/img/the_current_inquiry.png create mode 100644 src/assets/images/img/我的任务.png create mode 100644 src/assets/images/img/我的关注.png create mode 100644 src/assets/images/img/我的收藏.png create mode 100644 src/assets/images/img/我的档案.png create mode 100644 src/assets/images/img/我的病友圈.png create mode 100644 src/assets/images/img/我的视频.png create mode 100644 src/assets/images/img/我的钱包.png create mode 100644 src/assets/images/img/被采纳建议.png create mode 100644 src/assets/images/img/设置管理.png create mode 100644 src/assets/images/img/鱼.png create mode 100644 src/assets/images/login-img/common_icon_weixin_n.png create mode 100644 src/assets/images/login-img/login_bg.png create mode 100644 src/assets/images/login-img/login_hand_03.png create mode 100644 src/assets/images/login-img/login_icon_hide_password_n.png create mode 100644 src/assets/images/login-img/login_icon_lock_n.png create mode 100644 src/assets/images/login-img/login_icon_mail_n.png create mode 100644 src/assets/images/login-img/login_icon_show_password.png create mode 100644 src/assets/images/login-img/register_icon_invitatiion_code_n.png create mode 100644 src/assets/images/login-img/register_icon_verification_code_n.png create mode 100644 src/components/BackAndTit/index.vue create mode 100644 src/components/DetailRedTitle/index.vue create mode 100644 src/components/DoctorDetail/index.vue delete mode 100644 src/components/HelloWorld.vue create mode 100644 src/components/HomeTitle/Title.vue create mode 100644 src/components/MyHeader/MyHeader.vue create mode 100644 src/components/Set/index.vue create mode 100644 src/components/TabBar/TabBar.vue create mode 100644 src/getData/index.js create mode 100644 src/mixins/mixins.js create mode 100644 src/views/home/default/default.vue create mode 100644 src/views/home/knowledgeBase/bigPage/index.vue create mode 100644 src/views/my/my.vue create mode 100644 src/views/my/myPatientCircle/index.vue create mode 100644 src/views/my/proFile/index.vue create mode 100644 src/views/patientCircle/Default/index.vue create mode 100644 src/views/patientCircle/search/default/index.vue diff --git a/package-lock.json b/package-lock.json index 38e979b..3232d60 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,6 +10,8 @@ "dependencies": { "axios": "^1.5.1", "core-js": "^3.8.3", + "jsencrypt": "^3.3.2", + "lodash": "^4.17.21", "normalize.css": "^8.0.1", "postcss-pxtorem": "^6.0.0", "vant": "^2.13.1", @@ -6637,6 +6639,11 @@ "dev": true, "license": "MIT" }, + "node_modules/jsencrypt": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/jsencrypt/-/jsencrypt-3.3.2.tgz", + "integrity": "sha512-arQR1R1ESGdAxY7ZheWr12wCaF2yF47v5qpB76TtV64H1pyGudk9Hvw8Y9tb/FiTIaaTRUyaSnm5T/Y53Ghm/A==" + }, "node_modules/jsesc": { "version": "2.5.2", "resolved": "https://registry.npmmirror.com/jsesc/-/jsesc-2.5.2.tgz", @@ -6808,10 +6815,8 @@ }, "node_modules/lodash": { "version": "4.17.21", - "resolved": "https://registry.npmmirror.com/lodash/-/lodash-4.17.21.tgz", - "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", - "dev": true, - "license": "MIT" + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", + "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==" }, "node_modules/lodash.debounce": { "version": "4.0.8", diff --git a/package.json b/package.json index 106bc9d..a60eed1 100644 --- a/package.json +++ b/package.json @@ -9,6 +9,8 @@ "dependencies": { "axios": "^1.5.1", "core-js": "^3.8.3", + "jsencrypt": "^3.3.2", + "lodash": "^4.17.21", "normalize.css": "^8.0.1", "postcss-pxtorem": "^6.0.0", "vant": "^2.13.1", diff --git a/src/App.vue b/src/App.vue index 9c9b592..b1fb9db 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,11 +1,18 @@ + - +export default { + +} + \ No newline at end of file diff --git a/src/components/DetailRedTitle/index.vue b/src/components/DetailRedTitle/index.vue new file mode 100644 index 0000000..6a9c493 --- /dev/null +++ b/src/components/DetailRedTitle/index.vue @@ -0,0 +1,16 @@ + + \ No newline at end of file diff --git a/src/components/DoctorDetail/index.vue b/src/components/DoctorDetail/index.vue new file mode 100644 index 0000000..6804f50 --- /dev/null +++ b/src/components/DoctorDetail/index.vue @@ -0,0 +1,12 @@ + + + + \ No newline at end of file diff --git a/src/components/HelloWorld.vue b/src/components/HelloWorld.vue deleted file mode 100644 index 3f0a13a..0000000 --- a/src/components/HelloWorld.vue +++ /dev/null @@ -1,59 +0,0 @@ - - - - - - diff --git a/src/components/HomeTitle/Title.vue b/src/components/HomeTitle/Title.vue new file mode 100644 index 0000000..359c83e --- /dev/null +++ b/src/components/HomeTitle/Title.vue @@ -0,0 +1,22 @@ + + + \ No newline at end of file diff --git a/src/components/MyHeader/MyHeader.vue b/src/components/MyHeader/MyHeader.vue new file mode 100644 index 0000000..5319936 --- /dev/null +++ b/src/components/MyHeader/MyHeader.vue @@ -0,0 +1,57 @@ + + + + diff --git a/src/components/Set/index.vue b/src/components/Set/index.vue new file mode 100644 index 0000000..3cfafcd --- /dev/null +++ b/src/components/Set/index.vue @@ -0,0 +1,17 @@ + + + + + \ No newline at end of file diff --git a/src/components/TabBar/TabBar.vue b/src/components/TabBar/TabBar.vue new file mode 100644 index 0000000..a398129 --- /dev/null +++ b/src/components/TabBar/TabBar.vue @@ -0,0 +1,103 @@ + + + + + \ No newline at end of file diff --git a/src/getData/index.js b/src/getData/index.js new file mode 100644 index 0000000..3ee8f1e --- /dev/null +++ b/src/getData/index.js @@ -0,0 +1,311 @@ +import http from '../http/index' + +//获取轮播图接口 +export const getBanner=async()=>{ + return await http.get('/health/share/v1/bannersShow') +} +//获取中间的菜单 +export const getMenu=async ()=>{ + return await http.get('/health/share/knowledgeBase/v1/findDepartment') +} +//获取tab头部标题接口 +export const getHealth=async()=>{ + return await http.get('/health/share/information/v1/findInformationPlateList') +} +//首页的tab列表接口 +export const getTabList=async (data)=>{ + return await http.get('/health/share/information/v1/findInformationList',{params:data}) +} +//登录接口 +export const isLogin=async (data)=>{ + return await http.post('/health/user/v1/login',{...data},{ + headers: { + 'Content-Type': 'application/x-www-form-urlencoded' + } + }) +} +//注册接口 +export const isSigin=async (data)=>{ + return await http.post('/health/user/v1/register',{...data},{ + headers: { + 'Content-Type': 'application/x-www-form-urlencoded' + } + }) +} +//获取验证码接口 +export const getCode=async (data)=>{ + return await http.post('/health/user/v1/sendOutEmailCode',data,{ + headers: { + 'Content-Type': 'application/x-www-form-urlencoded' + } + }) +} +//获取常见病症接口 (查询科室列表) +export const CommonDisease=async()=>{ + return await http.get('/health/share/knowledgeBase/v1/findDepartment') +} +//获取常见病症状的具体症状 +export const EveryDisease=async(data)=>{ + return await http.get('/health/share/knowledgeBase/v1/findDiseaseCategory',{params:data}) +} +//获取常见药品接口 (药品科目分类列表查询) +export const CommonDrug=async()=>{ + return await http.get('/health/share/knowledgeBase/v1/findDrugsCategoryList') +} +//获取常见具体的药品接口 +export const EveryDrug=async (data)=>{ + return await http.get('/health/share/knowledgeBase/v1/findDrugsKnowledgeList',{params:data}) +} + +//从首页中的列表跳转到详情页 +export const jumpDetail = async(data)=>{ + return await http.get('/health/share/information/v1/findInformation',{params:data}) + +} +// /health/share/knowledgeBase/v1/findDrugsKnowledge +//查询常见病症详情 +export const CommonDiseaseDetail=async (data)=>{ + return await http.get('/health/share/knowledgeBase/v1/findDiseaseKnowledge',{params:data}) +} + +//查询常见药品详情 +export const CommonDrugDetail=async (data)=>{ + return await http.get('/health/share/knowledgeBase/v1/findDrugsKnowledge',{params:data}) +} + +//查询问诊医生的接口 +export const doctor=async(data)=>{ + return await http.get('/health/user/inquiry/v1/findDoctorList',{params:{...data}}) +} + +//热门搜索接口 +export const hot=async ()=>{ + return await http.get('/health/share/v1/popularSearch') +} + +//单个输入框搜索 +export const getSearch=async (data)=>{ + return await http.get('/health/share/v1/homePageSearch',{params:data}) +} + +//病友圈列表 +export const PatientCircleList=async (data)=>{ + return await http.get('/health/user/sickCircle/v1/findSickCircleList',{params:{...data}}) +} + +//查询病友圈详情 +export const PatientCircleDetail=async (data)=>{ + return await http.get('/health/user/sickCircle/v1/findSickCircleInfo',{params:{...data}}) +} + +//查询医生明细 就是问诊中的医生列表的哪一个医生的详情信息 +export const DoctorDetail=async(data)=>{ + return await http.get('/health/user/inquiry/v1/findDoctorInfo',{params:{...data}}) + +} +//病友圈 查询 +export const PatientsSearch=async (data)=>{ + // /health/user/sickCircle/v1/searchSickCircle + // return data + return await http.get('/health/user/sickCircle/v1/searchSickCircle',{params:{...data}}) +} + +//病友圈添加喜欢 +export const addLike=async(data)=>{ + // return {...data} + return await http.post('/health/user/verify/v1/addUserSickCollection',{...data},{ + headers: { + 'Content-Type': 'application/x-www-form-urlencoded' + } + }) +} + +//病友圈取消喜欢 +export const cancelLike=async (data)=>{ + return await http.delete('/health/user/verify/v1/cancelSickCollection',{params:{...data}},{ + headers: { + 'Content-Type': 'application/x-www-form-urlencoded' + } + }) +} + +//病友圈评论 +export const patientsPl=async (data)=>{ + return await http.post('/health/user/sickCircle/verify/v1/publishComment',{...data},{ + headers: { + 'Content-Type': 'application/x-www-form-urlencoded' + } + }) +} +//查询病友圈评论的列表 +export const patientsPlList=async(data)=>{ + return await http.get('/health/user/sickCircle/v1/findSickCircleCommentList',{params:{...data}}) +} + +//关注医生 +export const likeDoctor=async(data)=>{ + return await http.post('/health/user/inquiry/verify/v1/followDoctor',{...data},{ + headers: { + 'Content-Type': 'application/x-www-form-urlencoded' + } + }) +} + +//取关医生 +export const noLikeDoctor=async (data)=>{ + return await http.delete('/health/user/inquiry/verify/v1/cancelFollow',{params:{...data}},{ + headers: { + 'Content-Type': 'application/x-www-form-urlencoded' + } + }) +} + +//发布病友圈 +export const postPatientCircle=async(data)=>{ + // return data + return await http.post('/health/user/sickCircle/verify/v1/publishSickCircle',data,{ + 'Content-Type': 'application/json', + }) +} + +//采纳评论区 +export const adoptPl=async(data)=>{ + // return data + return await http.put('/health/user/sickCircle/verify/v1/adoptionProposal',data,{ + headers: { + 'Content-Type': 'application/x-www-form-urlencoded' + } + }) +} +//上传图片 +export const upPicture=async(data)=>{ + return await http.post('/health/user/sickCircle/verify/v1/uploadSickCirclePicture',data,{ + headers: { + 'Content-type' : 'multipart/form-data' + } + }) +} + + +//我的钱包 +export const MyMoney=async()=>{ + return await http.get('/health/user/verify/v1/findUserWallet') +} + +//查询钱列表 +export const MoneyList=async (data)=>{ + return await http.get('/health/user/verify/v1/findUserConsumptionRecordList',{params:{...data}}) +} + +//收藏健康咨询 +export const collectHealth=async(data)=>{ + return await http.get('/health/user/verify/v1/findUserInfoCollectionList',{params:{...data}}) + // return data +} + +// 收藏健康视频 +export const collectVideo=async(data)=>{ + return await http.get('/health/user/verify/v1/findVideoCollectionList',{params:{...data}}) +} + +//收藏病友圈 +export const collectCircle=async(data)=>{ + return await http.get('/health/user/verify/v1/findUserSickCollectionList',{params:{...data}}) +} + +//查询我的被采纳的建议 +export const adoptedSuggestion=async(data)=>{ + return await http.get('/health/user/verify/v1/findMyAdoptedCommentList',{params:{...data}}) +} + +//充值 +export const topUp=async(data)=>{ + // return data + return await http.post('/health/user/verify/v1/recharge',data,{ + headers: { + 'Content-Type': 'application/x-www-form-urlencoded' + } + }) +} +//查询档案 +export const fileList=async()=>{ + return await http.get('/health/user/verify/v1/findUserArchives') +} + + +//保存档案 +export const saveFile=async(data)=>{ + return await http.post('/health/user/verify/v1/addUserArchives',{...data}) +} + +//咨询医生 +export const consultDoctor=async(data)=>{ + // return data + return await http.put('/health/user/inquiry/verify/v1/consultDoctor',{...data},{ + headers: { + 'Content-Type': 'application/x-www-form-urlencoded' + } + }) +} + +//查询历史问诊 +export const historyInquiry=async (data)=>{ + // return data + return await http.get('/health/user/inquiry/verify/v1/findHistoryInquiryRecord',{params:{...data}}) +} + +//用户评论问诊服务 +export const plInquiry=async(data)=>{ + // return data + return await http.put('/health/user/inquiry/verify/v1/evaluationInquiry',data,{ + headers: { + 'Content-Type': 'application/x-www-form-urlencoded' + } + }) +} + +//查询用户关注医生列表 +export const followDoctorList=async (data)=>{ + return await http.get('/health/user/verify/v1/findUserDoctorFollowList',{params:{...data}},{ + headers: { + 'Content-Type': 'application/x-www-form-urlencoded' + } + }) +} + +//查询当前问诊 +export const currentInterview=async()=>{ + return await http.get('/health/user/inquiry/verify/v1/findCurrentInquiryRecord') +} + +//结束问诊 +export const endInterview=async(data)=>{ + return await http.put('/health/user/inquiry/verify/v1/endInquiry',data,{ + headers: { + 'Content-Type': 'application/x-www-form-urlencoded' + } + }) +} + + +//查询健康讲堂类名 +export const videoCategory=async()=>{ + return await http.get('/health/user/video/v1/findVideoCategoryList') +} + +//获取具体视频 +export const concreteVideo=async(data)=>{ + // return data + return await http.get('/health/user/video/v1/findVideoVoList',{params:{...data}}) +} + +//查询我的病友圈 +export const myCommunity=async(data)=>{ + return await http.get('/health/user/sickCircle/verify/v1/findMySickCircleList',{params:{...data}}) +} + +//查询我的病友圈中的评论列表 +export const myCommunityList=async(data)=>{ + // return data + return await http.get('/health/user/sickCircle/verify/v1/findMySickCircleCommentList',{params:{...data}}) +} \ No newline at end of file diff --git a/src/http/index.js b/src/http/index.js index 3b20096..aebfe14 100644 --- a/src/http/index.js +++ b/src/http/index.js @@ -1,12 +1,29 @@ import axios from "axios"; +import { Toast } from "vant"; +// axios.defaults.baseURL='http://10.59.9.18/' const http = axios.create({ - baseURL: 'https://some-domain.com/api/', - timeout: 1000, - headers: {'X-Custom-Header': 'foobar'} + // baseURL: 'https://some-domain.com/api/', + timeout: 9000, + // headers: {'X-Custom-Header': 'foobar'} + // baseURL:'http://10.59.9.18' }); // 添加请求拦截器 http.interceptors.request.use(function (config) { // 在发送请求之前做些什么 + // config.headers.userId=432 + // console.log(location.pathname); + + if(location.pathname.includes('/my/myPatientCircle/myPatientCommentList')||location.pathname.includes('/my/myPatientCircle/myPatientIndex')||location.pathname.includes('/vedio')||location.pathname.includes('/consultation/consultationServer/consultationChat')||location.pathname.includes('/consultation/myConsultation/MyConsultationCurrent')||location.pathname.includes('/my/myAttention')|| + location.pathname.includes('/consultation/myConsultation/MyConsultationComment')|| + location.pathname.includes('/consultation/myConsultation/MyConsultationHistory')||location.pathname.includes('/wallet/recharge')||location.pathname.includes('/my/myProFile/myProFileIndex')||location.pathname.includes('/my/myProFile/myProFileAddModifyProfile')||location.pathname.includes('/wallet/myWallet')||location.pathname.includes('/my/myCollection')||location.pathname.includes('/wallet/myWallet')||location.pathname.includes('/patientCircle/patientWrite')||location.pathname.includes('/patientCircle/patientDetail')||location.pathname.includes('consultation/consultationServer/consultationCDetail')){ + config.headers.userId=JSON.parse(localStorage.getItem('userId')) + config.headers.sessionId=JSON.parse(localStorage.getItem('sessionId'))+'' + } + Toast.loading({ + message: '加载中...', + forbidClick: true, + loadingType: 'spinner', + }); return config; }, function (error) { // 对请求错误做些什么 @@ -16,6 +33,7 @@ http.interceptors.request.use(function (config) { // 添加响应拦截器 http.interceptors.response.use(function (response) { // 对响应数据做点什么 + Toast.clear() return response; }, function (error) { // 对响应错误做点什么 diff --git a/src/main.js b/src/main.js index eefe6fd..67e4f5e 100644 --- a/src/main.js +++ b/src/main.js @@ -3,13 +3,35 @@ import App from './App.vue' import router from './router' import store from './store' import Vant from 'vant'; +// import './assets/flexible' import 'vant/lib/index.css'; import "normalize.css/normalize.css" -import instance from "./http/index" +import http from "./http/index" +import TabBar from './components/TabBar/TabBar.vue' +// 头部 +import MyHeader from './components/MyHeader/MyHeader.vue' +// 首页的标题 +import HomeTitle from './components/HomeTitle/Title.vue' +//详情页顶部的红色标题 +import DetailRedTitle from './components/DetailRedTitle/index.vue' +//带返回的头部 +import Back from './components/BackAndTit/index.vue' -Vue.prototype.$http=instance +//设置中 +import Set from './components/Set/index.vue' + + +Vue.component('TabBar',TabBar) + +Vue.prototype.$http=http Vue.use(Vant); Vue.config.productionTip = false +// 注册组件 +Vue.component('MyHeader',MyHeader) +Vue.component('MyTitle',HomeTitle) +Vue.component('RedTitle',DetailRedTitle) +Vue.component('Back',Back) +Vue.component('Set',Set) new Vue({ router, diff --git a/src/mixins/mixins.js b/src/mixins/mixins.js new file mode 100644 index 0000000..42d3770 --- /dev/null +++ b/src/mixins/mixins.js @@ -0,0 +1,40 @@ +import {JSEncrypt} from 'jsencrypt' +export const mixinTime={ + data(){ + return{ + publicKey:`MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCuQd3gESx7VdIyRYUWjmjg61VIgUK6F45hClmqUMZ7xNiT5rlLM6e78osMvBF/yP7cVm7pK+NMCDWoVS1/AETpxJYqUlIC77ZAU8/MnP96IupnJL87vqhPcpdv7+VqLM38ls++yuD/F/HSoOQTv/leJh+dgE/4EYAJjOWFAbYfXwIDAQAB` + } + }, + methods: { + changeTime(time){ + const timestamp = time; // 待转换的时间戳 + const date = new Date(timestamp); // 根据时间戳创建Date对象 + const year = date.getFullYear(); // 获取年份 + const month = date.getMonth() + 1; // 获取月份,需要加1 + const day = date.getDate(); // 获取日期 + const hour = date.getHours(); // 获取小时 + const minute = date.getMinutes(); // 获取分钟 + const second = date.getSeconds(); // 获取秒数 + + const formattedDate = `${year}-${month}-${day} ${hour}:${minute}:${second}`; // 拼接成格式化后的日期字符串 + return formattedDate + }, + changeTimeTwo(data){ + let date = new Date(data+''); + let year = date.getFullYear(); + let month = date.getMonth() + 1; // getMonth()返回值是0~11 + let day = date.getDate(); + let result = year + "-" + (month < 10 ? "0" + month : month) + "-" + (day < 10 ? "0" + day : day); + return result + }, + Encipher(data){ + // 创建JSEncrypt对象 + const encryptor=new JSEncrypt() + // 设置公钥 + encryptor.setPublicKey(this.publicKey) + // 对数据进行加密 + return encryptor.encrypt(data) + } + + } +} \ No newline at end of file diff --git a/src/router/index.js b/src/router/index.js index ee7485b..7eea419 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -12,25 +12,33 @@ const routes = [ // 一级home页面 { path: '/home', - name: 'home', component: () => import('../views/home/home.vue'), - children: [{ + children: [ + { + path: '/', + name:"home", + component: () => import('../views/home/default/default.vue'), + }, + { path: 'information', name: 'information', component: () => import('../views/home/information/information.vue'), children: [{ - path: 'informationDetail', + path: 'informationDetail/:id', name: 'informationDetail', component: () => import('../views/home/information/detail/detail.vue'), }] - }, + }, { path: 'knowledgeBase', name: 'knowledgeBase', component: () => import('../views/home/knowledgeBase/knowledgeBase.vue'), children: [{ - path: 'knowledgeDetail', + path: '/', + component: () => import('../views/home/knowledgeBase/bigPage/index.vue'), + },{ + path: 'knowledgeDetail/:code/:id/:name', name: 'knowledgeDetail', component: () => import('../views/home/knowledgeBase/detail/detail.vue'), @@ -56,12 +64,12 @@ const routes = [ name: 'consultationServer', component: () => import('../views/consultation/consultationServer/consultationServer.vue'), children: [{ - path: 'consultationChat', + path: 'consultationChat/:id/:name', name: 'consultationChat', component: () => import('../views/consultation/consultationServer/chat/chat.vue') }, { - path: 'consultationCommentList', + path: 'consultationCommentList/:id', name: 'consultationCommentList', component: () => import('../views/consultation/consultationServer/commentList/commentList.vue') }, @@ -71,7 +79,7 @@ const routes = [ component: () => import('../views/consultation/consultationServer/doctorList/doctorList.vue') }, { - path: 'consultationCDetail', + path: 'consultationCDetail/:id', name: 'consultationCDetail', component: () => import('../views/consultation/consultationServer/detail/detail.vue') }, @@ -152,8 +160,13 @@ const routes = [ path: '/patientCircle', name: 'patientCircle', component: () => import('../views/patientCircle/patientCircle.vue'), - children: [{ - path: 'patientDetail', + children: [ + { + path: '/', + component: () => import('../views/patientCircle/Default/index.vue') + }, + { + path: 'patientDetail/:id', name: 'patientDetail', component: () => import('../views/patientCircle/detail/detail.vue') }, { @@ -161,7 +174,10 @@ const routes = [ name: 'patientSearch', component: () => import('../views/patientCircle/search/search.vue'), children: [{ - path: 'patientResult', + path: '/', + component: () => import('../views/patientCircle/search/default/index.vue'), + },{ + path: 'patientResult/:name', name: 'patientResult', component: () => import('../views/patientCircle/search/result/result.vue'), }] @@ -175,7 +191,7 @@ const routes = [ // -------------------------视频------------------------- { - path: 'vedio', + path: '/vedio', name: 'vedio', component: () => import('../views/vedio/vedio.vue') }, @@ -184,6 +200,7 @@ const routes = [ { path: '/my', name: 'my', + component:() => import('../views/my/my.vue'), children: [{ path: 'myAdoptIdea', name: 'myAdoptIdea', @@ -209,7 +226,7 @@ const routes = [ name: 'myIndex', component: () => import('../views/my/index/index.vue') }, { - path: 'myLogin', + path: 'login', name: 'myLogin', component: () => import('../views/my/login/login.vue') }, { @@ -243,6 +260,7 @@ const routes = [ { path: 'myPatientCircle', name: 'myPatientCircle', + component:()=>import('../views/my/myPatientCircle/index.vue'), children: [{ path: 'myPatientCommentList', name: 'myPatientCommentList', @@ -258,6 +276,7 @@ const routes = [ { path: 'myProFile', name: 'myProFile', + component:()=>import('../views/my/proFile/index.vue'), children: [{ path: 'myProFileAddModifyProfile', name: 'myProFileAddModifyProfile', diff --git a/src/store/index.js b/src/store/index.js index ceffa8e..84be2ce 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -5,10 +5,26 @@ Vue.use(Vuex) export default new Vuex.Store({ state: { + tabTopTitle:0, + //常见病症的选中下标 + tabConLeftActive:0, + //常见药品的选中下标 + tabConRightActive:0, }, getters: { }, mutations: { + changeTabTopTitle(state,payload){ + state.tabTopTitle=payload + }, + //改变常见病症的选中下标 + changTabConLeftActive(state,payload){ + state.tabConLeftActive=payload + }, + //改变常见药品的选中下标 + changeTabConRightActive(state,payload){ + state.tabConRightActive=payload + } }, actions: { }, diff --git a/src/views/consultation/consultation.vue b/src/views/consultation/consultation.vue index 7796caa..104c88e 100644 --- a/src/views/consultation/consultation.vue +++ b/src/views/consultation/consultation.vue @@ -1,6 +1,6 @@ diff --git a/src/views/consultation/consultationServer/chat/chat.vue b/src/views/consultation/consultationServer/chat/chat.vue index 4efc21b..6e3a4a6 100644 --- a/src/views/consultation/consultationServer/chat/chat.vue +++ b/src/views/consultation/consultationServer/chat/chat.vue @@ -1,13 +1,97 @@ - \ No newline at end of file diff --git a/src/views/consultation/consultationServer/commentList/commentList.vue b/src/views/consultation/consultationServer/commentList/commentList.vue index 72eee72..5056756 100644 --- a/src/views/consultation/consultationServer/commentList/commentList.vue +++ b/src/views/consultation/consultationServer/commentList/commentList.vue @@ -1,15 +1,74 @@ - \ No newline at end of file diff --git a/src/views/consultation/consultationServer/consultationServer.vue b/src/views/consultation/consultationServer/consultationServer.vue index f25a8b9..104c88e 100644 --- a/src/views/consultation/consultationServer/consultationServer.vue +++ b/src/views/consultation/consultationServer/consultationServer.vue @@ -1,5 +1,7 @@ - \ No newline at end of file diff --git a/src/views/consultation/consultationServer/doctorList/doctorList.vue b/src/views/consultation/consultationServer/doctorList/doctorList.vue index 157b988..f75ac72 100644 --- a/src/views/consultation/consultationServer/doctorList/doctorList.vue +++ b/src/views/consultation/consultationServer/doctorList/doctorList.vue @@ -1,15 +1,287 @@ - \ No newline at end of file diff --git a/src/views/consultation/myConsultation/comment/comment.vue b/src/views/consultation/myConsultation/comment/comment.vue index 5fd51e5..2731e23 100644 --- a/src/views/consultation/myConsultation/comment/comment.vue +++ b/src/views/consultation/myConsultation/comment/comment.vue @@ -1,13 +1,136 @@ - \ No newline at end of file diff --git a/src/views/consultation/myConsultation/current/current.vue b/src/views/consultation/myConsultation/current/current.vue index 2d70453..580732c 100644 --- a/src/views/consultation/myConsultation/current/current.vue +++ b/src/views/consultation/myConsultation/current/current.vue @@ -1,15 +1,108 @@ - \ No newline at end of file diff --git a/src/views/consultation/myConsultation/history/history.vue b/src/views/consultation/myConsultation/history/history.vue index 417bb98..3254d65 100644 --- a/src/views/consultation/myConsultation/history/history.vue +++ b/src/views/consultation/myConsultation/history/history.vue @@ -1,13 +1,117 @@ - - \ No newline at end of file + diff --git a/src/views/consultation/myConsultation/myConsultation.vue b/src/views/consultation/myConsultation/myConsultation.vue index ba24570..104c88e 100644 --- a/src/views/consultation/myConsultation/myConsultation.vue +++ b/src/views/consultation/myConsultation/myConsultation.vue @@ -1,6 +1,6 @@ diff --git a/src/views/home/default/default.vue b/src/views/home/default/default.vue new file mode 100644 index 0000000..2fc129e --- /dev/null +++ b/src/views/home/default/default.vue @@ -0,0 +1,358 @@ + + + + + \ No newline at end of file diff --git a/src/views/home/home.vue b/src/views/home/home.vue index ee8e3f9..36d59c6 100644 --- a/src/views/home/home.vue +++ b/src/views/home/home.vue @@ -1,15 +1,179 @@ - \ No newline at end of file diff --git a/src/views/home/information/detail/detail.vue b/src/views/home/information/detail/detail.vue index 410da7d..8074285 100644 --- a/src/views/home/information/detail/detail.vue +++ b/src/views/home/information/detail/detail.vue @@ -1,10 +1,43 @@ diff --git a/src/views/home/information/information.vue b/src/views/home/information/information.vue index 7e6cf14..56a58ad 100644 --- a/src/views/home/information/information.vue +++ b/src/views/home/information/information.vue @@ -1,5 +1,7 @@ + + \ No newline at end of file diff --git a/src/views/home/knowledgeBase/detail/detail.vue b/src/views/home/knowledgeBase/detail/detail.vue index 35f504c..be92597 100644 --- a/src/views/home/knowledgeBase/detail/detail.vue +++ b/src/views/home/knowledgeBase/detail/detail.vue @@ -1,13 +1,109 @@ - \ No newline at end of file diff --git a/src/views/home/knowledgeBase/knowledgeBase.vue b/src/views/home/knowledgeBase/knowledgeBase.vue index eda7279..634965e 100644 --- a/src/views/home/knowledgeBase/knowledgeBase.vue +++ b/src/views/home/knowledgeBase/knowledgeBase.vue @@ -1,12 +1,14 @@ - +} + \ No newline at end of file + .main{ + background: #fff; + margin-top: 20px; + .hot{ + text-align: left; + padding: 10px 20px; + p{ + color: rgb(48,135,234); + } + ul{ + display: flex; + flex-wrap: wrap; + margin-top: 10px; + li{ + padding: 5px 8px; + background: rgb(242,242,242); + margin: 5px; + border-radius: 20px; + font-size: 12px; + } + } + } + .history{ + p{ + color: rgb(48,135,234); + text-align: left; + padding-left:20px ; + } + ul{ + margin-top: 20px; + padding:0 20px ; + li{ + display: flex; + justify-content: space-between; + text-align: left; + width: 100%; + height: 30px; + line-height: 30px; + font-size: 12px; + } + } + } + } + .mainTwo{ + margin-top: 20px; + background: #fff; + display: flex; + flex-direction: column; + text-align: left; + ul{ + margin-top: 20px; + padding: 0 20px; + h4{ + color: rgb(48,135,234); + } + li{ + line-height: 30px; + padding-left: 10px; + } + } + } +} + \ No newline at end of file diff --git a/src/views/my/attention/attention.vue b/src/views/my/attention/attention.vue index 23a1aef..fc9d016 100644 --- a/src/views/my/attention/attention.vue +++ b/src/views/my/attention/attention.vue @@ -1,15 +1,120 @@ - \ No newline at end of file diff --git a/src/views/my/collection/collection.vue b/src/views/my/collection/collection.vue index a00b192..5c7b381 100644 --- a/src/views/my/collection/collection.vue +++ b/src/views/my/collection/collection.vue @@ -1,15 +1,258 @@ - \ No newline at end of file + diff --git a/src/views/my/index/index.vue b/src/views/my/index/index.vue index 7014780..2fa2e71 100644 --- a/src/views/my/index/index.vue +++ b/src/views/my/index/index.vue @@ -1,15 +1,193 @@ - \ No newline at end of file diff --git a/src/views/my/login/login.vue b/src/views/my/login/login.vue index 1047839..a24bd8f 100644 --- a/src/views/my/login/login.vue +++ b/src/views/my/login/login.vue @@ -1,15 +1,218 @@ - \ No newline at end of file diff --git a/src/views/my/my.vue b/src/views/my/my.vue new file mode 100644 index 0000000..ee23efe --- /dev/null +++ b/src/views/my/my.vue @@ -0,0 +1,6 @@ + diff --git a/src/views/my/myPatientCircle/commentList/commentList.vue b/src/views/my/myPatientCircle/commentList/commentList.vue index 72eee72..0bdb04b 100644 --- a/src/views/my/myPatientCircle/commentList/commentList.vue +++ b/src/views/my/myPatientCircle/commentList/commentList.vue @@ -1,15 +1,81 @@ - \ No newline at end of file diff --git a/src/views/my/myPatientCircle/index.vue b/src/views/my/myPatientCircle/index.vue new file mode 100644 index 0000000..0c10143 --- /dev/null +++ b/src/views/my/myPatientCircle/index.vue @@ -0,0 +1,4 @@ + \ No newline at end of file diff --git a/src/views/my/myPatientCircle/index/index.vue b/src/views/my/myPatientCircle/index/index.vue index 7014780..514ebad 100644 --- a/src/views/my/myPatientCircle/index/index.vue +++ b/src/views/my/myPatientCircle/index/index.vue @@ -1,15 +1,83 @@ - \ No newline at end of file diff --git a/src/views/my/proFile/addModifyProfile/addModifyProfile.vue b/src/views/my/proFile/addModifyProfile/addModifyProfile.vue index 7589613..1279a7e 100644 --- a/src/views/my/proFile/addModifyProfile/addModifyProfile.vue +++ b/src/views/my/proFile/addModifyProfile/addModifyProfile.vue @@ -1,15 +1,205 @@ - \ No newline at end of file diff --git a/src/views/my/proFile/index.vue b/src/views/my/proFile/index.vue new file mode 100644 index 0000000..e3bc8ac --- /dev/null +++ b/src/views/my/proFile/index.vue @@ -0,0 +1,3 @@ + \ No newline at end of file diff --git a/src/views/my/proFile/index/index.vue b/src/views/my/proFile/index/index.vue index 7014780..bc3847a 100644 --- a/src/views/my/proFile/index/index.vue +++ b/src/views/my/proFile/index/index.vue @@ -1,15 +1,139 @@ - \ No newline at end of file diff --git a/src/views/my/register/register.vue b/src/views/my/register/register.vue index 597145b..ae85690 100644 --- a/src/views/my/register/register.vue +++ b/src/views/my/register/register.vue @@ -1,15 +1,239 @@ - \ No newline at end of file diff --git a/src/views/patientCircle/Default/index.vue b/src/views/patientCircle/Default/index.vue new file mode 100644 index 0000000..08c1000 --- /dev/null +++ b/src/views/patientCircle/Default/index.vue @@ -0,0 +1,255 @@ + + + + \ No newline at end of file diff --git a/src/views/patientCircle/detail/detail.vue b/src/views/patientCircle/detail/detail.vue index 08c9d61..3b5230c 100644 --- a/src/views/patientCircle/detail/detail.vue +++ b/src/views/patientCircle/detail/detail.vue @@ -1,15 +1,312 @@ - - \ No newline at end of file diff --git a/src/views/patientCircle/patientCircle.vue b/src/views/patientCircle/patientCircle.vue index f465a65..78296ba 100644 --- a/src/views/patientCircle/patientCircle.vue +++ b/src/views/patientCircle/patientCircle.vue @@ -1,6 +1,9 @@ diff --git a/src/views/patientCircle/search/default/index.vue b/src/views/patientCircle/search/default/index.vue new file mode 100644 index 0000000..37968dd --- /dev/null +++ b/src/views/patientCircle/search/default/index.vue @@ -0,0 +1,86 @@ + + + + + diff --git a/src/views/patientCircle/search/result/result.vue b/src/views/patientCircle/search/result/result.vue index e3eec65..a4d0ff0 100644 --- a/src/views/patientCircle/search/result/result.vue +++ b/src/views/patientCircle/search/result/result.vue @@ -1,15 +1,120 @@ - \ No newline at end of file diff --git a/src/views/patientCircle/search/search.vue b/src/views/patientCircle/search/search.vue index a0f024f..104c88e 100644 --- a/src/views/patientCircle/search/search.vue +++ b/src/views/patientCircle/search/search.vue @@ -1,6 +1,6 @@ diff --git a/src/views/patientCircle/write/write.vue b/src/views/patientCircle/write/write.vue index 7abe969..8cb5e13 100644 --- a/src/views/patientCircle/write/write.vue +++ b/src/views/patientCircle/write/write.vue @@ -1,15 +1,427 @@ - \ No newline at end of file diff --git a/src/views/set/index/index.vue b/src/views/set/index/index.vue index 7014780..794f250 100644 --- a/src/views/set/index/index.vue +++ b/src/views/set/index/index.vue @@ -1,15 +1,87 @@ - \ No newline at end of file diff --git a/src/views/set/personInfomation/personInfomation.vue b/src/views/set/personInfomation/personInfomation.vue index 4fbb61e..e6425b0 100644 --- a/src/views/set/personInfomation/personInfomation.vue +++ b/src/views/set/personInfomation/personInfomation.vue @@ -1,6 +1,6 @@ @@ -10,6 +10,13 @@ export default { } - \ No newline at end of file diff --git a/src/views/vedio/vedio.vue b/src/views/vedio/vedio.vue index 81f14db..0cbe980 100644 --- a/src/views/vedio/vedio.vue +++ b/src/views/vedio/vedio.vue @@ -1,15 +1,86 @@ - \ No newline at end of file diff --git a/src/views/wallet/myWallet/myWallet.vue b/src/views/wallet/myWallet/myWallet.vue index e0bbdfb..90d8959 100644 --- a/src/views/wallet/myWallet/myWallet.vue +++ b/src/views/wallet/myWallet/myWallet.vue @@ -1,13 +1,196 @@ - \ No newline at end of file diff --git a/src/views/wallet/recharge/recharge.vue b/src/views/wallet/recharge/recharge.vue index e016aa4..dbf2522 100644 --- a/src/views/wallet/recharge/recharge.vue +++ b/src/views/wallet/recharge/recharge.vue @@ -1,15 +1,127 @@ - - \ No newline at end of file diff --git a/src/views/wallet/wallet.vue b/src/views/wallet/wallet.vue index b0185c7..104c88e 100644 --- a/src/views/wallet/wallet.vue +++ b/src/views/wallet/wallet.vue @@ -1,6 +1,6 @@ diff --git a/vue.config.js b/vue.config.js index a84c850..391f3da 100644 --- a/vue.config.js +++ b/vue.config.js @@ -1,7 +1,14 @@ const { defineConfig } = require('@vue/cli-service') module.exports = defineConfig({ transpileDependencies: true, -lintOnSave:false - + lintOnSave:false, + devServer:{ + proxy:{ + '':{ + target:"http://172.27.6.139/api/", + changeOrigin:true + } + } + } }) diff --git a/yarn.lock b/yarn.lock index 1676da5..31afcaf 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3531,6 +3531,11 @@ js-tokens@^4.0.0: resolved "https://registry.npmmirror.com/js-tokens/-/js-tokens-4.0.0.tgz" integrity sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ== +jsencrypt@^3.3.2: + version "3.3.2" + resolved "https://registry.npmjs.org/jsencrypt/-/jsencrypt-3.3.2.tgz" + integrity sha512-arQR1R1ESGdAxY7ZheWr12wCaF2yF47v5qpB76TtV64H1pyGudk9Hvw8Y9tb/FiTIaaTRUyaSnm5T/Y53Ghm/A== + jsesc@^2.5.1: version "2.5.2" resolved "https://registry.npmmirror.com/jsesc/-/jsesc-2.5.2.tgz" @@ -3704,7 +3709,7 @@ lodash.uniqby@^4.7.0: lodash@^4.17.14, lodash@^4.17.20, lodash@^4.17.21: version "4.17.21" - resolved "https://registry.npmmirror.com/lodash/-/lodash-4.17.21.tgz" + resolved "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz" integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg== log-symbols@^4.1.0: