diff --git a/api/user.js b/api/user.js index 58ab7ef..d62cd33 100644 --- a/api/user.js +++ b/api/user.js @@ -49,3 +49,26 @@ export const getSimpleDictDataList = () => { export const refreshToken = (params) => { return post('/admin-api/system/auth/refresh-token?refreshToken='+params) } + + +/** + * 获得当前用户的未读站内信数量 + * @returns {Promise} + */ +export const getMsg = () => { + return get('/app-api/system/notify-message/my-page') +} + +/** + * 获得当前用户的未读站内信数量 + * @returns {Promise} + */ +export const getUnreadCount = () => { + return get('/app-api/system/notify-message/get-unread-count') +} + + + + + + diff --git a/components/uni-charts/index.js b/components/uni-charts/index.js new file mode 100644 index 0000000..f3740fe --- /dev/null +++ b/components/uni-charts/index.js @@ -0,0 +1,2 @@ +import uniCharts from './uni-charts.vue' +export default uniCharts \ No newline at end of file diff --git a/components/uni-charts/package.json b/components/uni-charts/package.json new file mode 100644 index 0000000..11718ad --- /dev/null +++ b/components/uni-charts/package.json @@ -0,0 +1,9 @@ +{ + "name": "uni-charts", + "version": "1.0.0", + "description": "UniApp K线图组件", + "main": "index.js", + "keywords": ["uni-charts", "kline", "小程序"], + "author": "", + "license": "MIT" +} \ No newline at end of file diff --git a/components/uni-charts/uni-charts.vue b/components/uni-charts/uni-charts.vue new file mode 100644 index 0000000..5c9693b --- /dev/null +++ b/components/uni-charts/uni-charts.vue @@ -0,0 +1,380 @@ + + + + + \ No newline at end of file diff --git a/pages-sub/data/tree-archive/editTree.vue b/pages-sub/data/tree-archive/editTree.vue index 6c20929..186c8be 100644 --- a/pages-sub/data/tree-archive/editTree.vue +++ b/pages-sub/data/tree-archive/editTree.vue @@ -235,15 +235,15 @@ + + + + \ No newline at end of file diff --git a/pages-sub/problem/work-order-manage/index.vue b/pages-sub/problem/work-order-manage/index.vue index abd105d..0fddf0c 100644 --- a/pages-sub/problem/work-order-manage/index.vue +++ b/pages-sub/problem/work-order-manage/index.vue @@ -138,7 +138,7 @@ 工单位置: - {{ item.roadName || '-' }} + {{ item.lonLatAddress || '-' }} 工单名称: diff --git a/pages.json b/pages.json index 2ba085f..b9c5f0d 100644 --- a/pages.json +++ b/pages.json @@ -218,9 +218,15 @@ "style": { "navigationBarTitleText": "树木详情" } } - - - + ] + }, + { + "root": "pages-sub/msg", + "pages": [ + { + "path": "index", + "style": { "navigationBarTitleText": "消息中心" } + } ] } ], diff --git a/pages/index/index.vue b/pages/index/index.vue index 51710eb..f8dedd8 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -3,305 +3,400 @@ - - - 5 + + + + + - - - 任务完成情况 - - 单位: 个 - - - - + + 任务完成情况(K线图) + + + + + 单位: 个 + + + + + + + + - - - - - - - - - - - - - - - 待办事项(5) - - - - 已办事项(89) - + + + + 待办事项({{ todoList.length }}) + + + + 已办事项({{ doneList.length }}) + + - - - - - 事项名称: {{ item.name }}{{ item.name }}{{ item.name }}{{ item.name }}{{ item.name }}{{ item.name }} - - 紧急程度: {{ item.urgency }} - {{ item.time }} + + + + + + {{ item.name }} + + + + {{ item.urgency || '普通' }} + + {{ timeFormat(item.time) }} + - -