diff --git a/api/api.js b/api/api.js index 632281b..9eeb581 100644 --- a/api/api.js +++ b/api/api.js @@ -340,6 +340,40 @@ const api = { groupList(data){ return request('/expertAPI/groupListU', data, 'post', false); }, + patientListByGroup(data){ + return request('/expertAPI/patientListByGroupU', data, 'post', false); + }, + groupDelete(data){ + return request('/expertAPI/deleteGroupU', data, 'post', false); + }, + groupAdd(data){ + return request('/expertAPI/addGroupU', data, 'post', false); + }, + groupUpdate(data){ + return request('/expertAPI/updateGroupU', data, 'post', false); + }, + updateNicknameNote(data){ + return request('/expertAPI/updateNicknameNote', data, 'post', false); + }, + patientCard(data){ + return request('/expertAPI/patientCard', data, 'post', false); + }, + patientCardUpdateGroup(data){ + return request('/expertAPI/patientCardUpdateGroup', data, 'post', false); + }, + addFollowUps(data){ + return request('/expertAPI/addFollowUps', data, 'post', false); + }, + getFollowUp(data){ + return request('/expertAPI/getFollowUp', data, 'post', false); + }, + deleteFollowUp(data){ + return request('/expertAPI/deleteFollowUp', data, 'post', false); + }, + cancelRes(data){ + return request('/expertAPI/cancelRes', data, 'post', false); + }, + } export default api \ No newline at end of file diff --git a/components/dialog/dialog.vue b/components/dialog/dialog.vue index 8586016..51a3d7b 100644 --- a/components/dialog/dialog.vue +++ b/components/dialog/dialog.vue @@ -100,7 +100,7 @@ console.log('格式化后的内容数组:', lines); return lines; } - const emit = defineEmits(['close']) + const emit = defineEmits(['close','confirm']) @@ -109,7 +109,9 @@ } const onconfirm=()=>{ - emit('close') + emit('confirm') + emit('close'); + } diff --git a/pages.json b/pages.json index 2d8faaf..7a0f795 100644 --- a/pages.json +++ b/pages.json @@ -212,6 +212,7 @@ "path": "login/login", "style": { "navigationStyle": "custom", + "navigationBarRightButton":{ "hide": true}, "navigationBarTitleText": "uni-app分页", "app": { "bounce": "none" @@ -222,6 +223,7 @@ "path": "video/video", "style": { "navigationStyle": "custom", + "navigationBarRightButton":{ "hide": true}, "navigationBarTitleText": "uni-app分页", "app": { "bounce": "none" @@ -232,6 +234,7 @@ "path": "myPatient/myPatient", "style": { "navigationStyle": "custom", + "navigationBarRightButton":{ "hide": true}, "navigationBarTitleText": "uni-app分页", "app": { "bounce": "none" @@ -242,6 +245,7 @@ "path": "patientSetting/patientSetting", "style": { "navigationStyle": "custom", + "navigationBarRightButton":{ "hide": true}, "navigationBarTitleText": "uni-app分页", "app": { "bounce": "none" @@ -252,6 +256,7 @@ "path": "patientRemark/patientRemark", "style": { "navigationStyle": "custom", + "navigationBarRightButton":{ "hide": true}, "navigationBarTitleText": "uni-app分页", "app": { "bounce": "none" @@ -262,6 +267,18 @@ "path": "groupEdit/groupEdit", "style": { "navigationStyle": "custom", + "navigationBarRightButton":{ "hide": true}, + "navigationBarTitleText": "uni-app分页", + "app": { + "bounce": "none" + } + } + }, + { + "path": "groupManage/groupManage", + "style": { + "navigationStyle": "custom", + "navigationBarRightButton":{ "hide": true}, "navigationBarTitleText": "uni-app分页", "app": { "bounce": "none" @@ -272,17 +289,40 @@ "path": "selectPatient/selectPatient", "style": { "navigationStyle": "custom", + "navigationBarRightButton":{ "hide": true}, + "navigationBarTitleText": "uni-app分页", + "app": { + "bounce": "none" + } + } + }, + { + "path": "visitNote/visitNote", + "style": { + "navigationStyle": "custom", + "navigationBarRightButton":{ "hide": true}, + "navigationBarTitleText": "uni-app分页", + "app": { + "bounce": "none" + } + } + }, + { + "path": "followDetail/followDetail", + "style": { + "navigationStyle": "custom", + "navigationBarRightButton":{ "hide": true}, "navigationBarTitleText": "uni-app分页", "app": { "bounce": "none" } } }, - { "path": "videoDetail/videoDetail", "style": { "navigationStyle": "custom", + "navigationBarRightButton":{ "hide": true}, "navigationBarTitleText": "uni-app分页", "app": { "bounce": "none" @@ -293,6 +333,7 @@ "path": "myFlower/myFlower", "style": { "navigationStyle": "custom", + "navigationBarRightButton":{ "hide": true}, "navigationBarTitleText": "uni-app分页", "app": { "bounce": "none" @@ -543,6 +584,7 @@ { "path": "setting/setting", "style": { + "navigationStyle": "custom", "navigationBarTitleText": "uni-app分页", "app": { @@ -564,6 +606,7 @@ "path": "visit/visit", "style": { "navigationStyle": "custom", + "navigationBarRightButton":{ "hide": true}, "navigationBarTitleText": "uni-app分页", "app": { "bounce": "none" @@ -574,6 +617,7 @@ "path": "patientDetail/patientDetail", "style": { "navigationStyle": "custom", + "navigationBarRightButton":{ "hide": true}, "navigationBarTitleText": "uni-app分页", "app": { "bounce": "none" @@ -817,6 +861,21 @@ "backgroundColor": "#F8F8F8", "app-plus": { "background": "#efeff4" + }, + "mp-weixin": { + "navigationStyle": "custom" + }, + "mp-alipay": { + "navigationStyle": "custom" + }, + "mp-baidu": { + "navigationStyle": "custom" + }, + "mp-toutiao": { + "navigationStyle": "custom" + }, + "mp-qq": { + "navigationStyle": "custom" } }, "condition" : { //模式配置,仅开发期间生效 diff --git a/pages/index/index.vue b/pages/index/index.vue index 513001a..385533c 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -216,12 +216,12 @@ - 今天是我们相识的第211天 - 本周共签到2次 - 已经连续签到2天 + 今天是我们相识的第{{signInfo.gdxzday}}天 + 本周共签到{{signInfo.totalDay}}次 + 已经连续签到{{signInfo.continuous_day}}天 连续签到获取更多积分 - - 我是新闻内容 + + {{signInfo.news.summary}} @@ -253,6 +253,7 @@ import sign from "@/static/home_qiandao_icon.png" import signImg from "@/static/sign_in_bng_big.png" import dayjs from 'dayjs' + import docUrl from "@/utils/docUrl.js" const expertDetail=reactive({}) const showSign=ref(false) // 定义refs @@ -512,7 +513,23 @@ url: '/pages/guide/list' }); }; - + const goNews=()=>{ + let url=docUrl+signInfo.news.path; + // #ifdef H5 + window.open(url, '_blank'); + // #endif + + // #ifdef APP-PLUS + plus.runtime.openURL(url); + // #endif + + // #ifdef MP + const encoded = encodeURIComponent(url); + uni.navigateTo({ + url: `/pages_app/webview/webview?url=${encoded}` + }); + // #endif + } // 点击顶部轮播图 const onBannerClick = (item,index) => { if (!item) return; @@ -833,7 +850,7 @@ url: '/pages_course/course/course' }); }; - + const signInfo=reactive({}) // 签到点击事件 const onSignClick = async () => { // 如果已经签到,显示提示 @@ -848,13 +865,15 @@ score_type:1 }); - if (res && res.code === 200) { + if (res && res.code ==1) { // 签到成功 isSignedIn.value = true; uni.showToast({ - title: '签到成功,获得10积分', - icon: 'success' + title: '签到成功,获得'+res.bonuspoints+'积分', + icon: 'none' }); + Object.assign(signInfo,res); + // 显示签到弹窗 showSign.value = true; diff --git a/pages_app/followDetail/followDetail.vue b/pages_app/followDetail/followDetail.vue new file mode 100644 index 0000000..631c490 --- /dev/null +++ b/pages_app/followDetail/followDetail.vue @@ -0,0 +1,116 @@ +