From be43c6ad671e2b737720d11e7f3d354b4de9d3e7 Mon Sep 17 00:00:00 2001 From: ihzero Date: Wed, 24 Apr 2024 01:10:43 +0800 Subject: [PATCH] =?UTF-8?q?=E8=80=83=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages copy.json | 316 +++++++++++++++++++++++++++++++ src/pages/examination/detail.vue | 175 ++++++++++++----- src/pages/examination/index.vue | 6 + 3 files changed, 453 insertions(+), 44 deletions(-) create mode 100644 src/pages copy.json diff --git a/src/pages copy.json b/src/pages copy.json new file mode 100644 index 0000000..c0120a3 --- /dev/null +++ b/src/pages copy.json @@ -0,0 +1,316 @@ +{ + "pages": [ + { + "path": "pages/login/index", + "style": { + "navigationBarTitleText": "登录" + } + }, + { + "path": "pages/home/index", + "style": { + "navigationBarTitleText": "首页" + } + }, + { + "path": "pages/revert/index", + "style": { + "navigationBarTitleText": "上报" + } + }, + { + "path": "pages/statement/index", + "style": { + "navigationBarTitleText": "报表" + } + }, + { + "path": "pages/mine/index", + "style": { + "navigationBarTitleText": "我的" + } + } + ], + "subPackages": [ + { + "root": "pages/data", + "pages": [ + { + "path": "brokerage/index", + "style": { + "navigationBarTitleText": "提成数据" + } + }, + { + "path": "performance/index", + "style": { + "navigationBarTitleText": "业绩数据" + } + }, + { + "path": "upload/index", + "style": { + "navigationBarTitleText": "上传数据" + } + } + ] + }, + { + "root": "pages/user", + "pages": [ + { + "path": "index", + "style": { + "navigationBarTitleText": "员工管理" + } + }, + { + "path": "update", + "style": { + "navigationBarTitleText": "修改信息" + } + }, + { + "path": "detail", + "style": { + "navigationBarTitleText": "员工详情" + } + } + ] + }, + { + "root": "pages/setting", + "pages": [ + { + "path": "index", + "style": { + "navigationBarTitleText": "设置" + } + }, + { + "path": "password", + "style": { + "navigationBarTitleText": "修改密码" + } + }, + { + "path": "complain", + "style": { + "navigationBarTitleText": "举报投诉" + } + }, + { + "path": "suggestion", + "style": { + "navigationBarTitleText": "意见箱" + } + } + ] + }, + { + "root": "pages/task", + "pages": [ + { + "path": "index", + "style": { + "navigationBarTitleText": "任务列表" + } + }, + { + "path": "submit", + "style": { + "navigationBarTitleText": "任务提交" + } + }, + { + "path": "task_hygienes_submit", + "style": { + "navigationBarTitleText": "清洁任务提交" + } + }, + { + "path": "task_ledgers_submit", + "style": { + "navigationBarTitleText": "数据上报" + } + }, + { + "path": "detail", + "style": { + "navigationBarTitleText": "任务详情" + } + } + ] + }, + { + "root": "pages/expense-account", + "pages": [ + { + "path": "index", + "style": { + "navigationBarTitleText": "报销管理" + } + }, + { + "path": "submit", + "style": { + "navigationBarTitleText": "报销提交" + } + } + ] + }, + { + "root": "pages/work", + "pages": [ + { + "path": "list", + "style": { + "navigationBarTitleText": "升职申请" + } + }, + { + "path": "detail", + "style": { + "navigationBarTitleText": "升职申请" + } + }, + { + "path": "create", + "style": { + "navigationBarTitleText": "升职申请" + } + } + ] + }, + { + "root": "pages/make-card", + "pages": [ + { + "path": "list", + "style": { + "navigationBarTitleText": "补卡申请" + } + }, + { + "path": "create", + "style": { + "navigationBarTitleText": "补卡申请" + } + }, + { + "path": "detail", + "style": { + "navigationBarTitleText": "补卡审核" + } + } + ] + }, + { + "root": "pages/ask-leave", + "pages": [ + { + "path": "list", + "style": { + "navigationBarTitleText": "请假申请" + } + }, + { + "path": "create", + "style": { + "navigationBarTitleText": "请假申请" + } + }, + { + "path": "detail", + "style": { + "navigationBarTitleText": "请假详情" + } + } + ] + }, + { + "root": "pages/train-books", + "pages": [ + { + "path": "index", + "style": { + "navigationBarTitleText": "培训课件" + } + }, + { + "path": "detail", + "style": { + "navigationBarTitleText": "培训课件" + } + } + ] + }, + { + "root": "pages/examination", + "pages": [ + { + "path": "index", + "style": { + "navigationBarTitleText": "培训考试" + } + }, + { + "path": "detail", + "style": { + "navigationBarTitleText": "培训考试" + } + } + ] + } + ], + "globalStyle": { + "navigationBarTextStyle": "black", + "navigationBarTitleText": "uni-app", + "navigationBarBackgroundColor": "#FFFFFF", + "backgroundColor": "#FFFFFF", + "navigationStyle": "custom", + "backgroundColorTop": "#FFFFFF", + "app-plus": { + "bounce": "none", + "scrollIndicator": "none" + } + }, + "tabBar": { + "color": "#333", + "selectedColor": "#ff3c2a", + "borderStyle": "black", + "backgroundColor": "#ffffff", + "list": [ + { + "pagePath": "pages/home/index", + "selectedIconPath": "static/images/home.png", + "iconPath": "static/images/home.png", + "text": "首页" + }, + { + "pagePath": "pages/revert/index", + "selectedIconPath": "static/images/home.png", + "iconPath": "static/images/home.png", + "text": "上报" + }, + { + "pagePath": "pages/statement/index", + "selectedIconPath": "static/images/home.png", + "iconPath": "static/images/home.png", + "text": "报表" + }, + { + "pagePath": "pages/mine/index", + "selectedIconPath": "static/images/home.png", + "iconPath": "static/images/home.png", + "text": "我的" + } + ] + }, + "easycom": { + "autoscan": true, + "custom": { + "^uv-(.*)": "@climblee/uv-ui/components/uv-$1/uv-$1.vue" + } + } +} diff --git a/src/pages/examination/detail.vue b/src/pages/examination/detail.vue index 19d2c3b..28bf607 100644 --- a/src/pages/examination/detail.vue +++ b/src/pages/examination/detail.vue @@ -1,81 +1,168 @@ + + diff --git a/src/pages/examination/index.vue b/src/pages/examination/index.vue index d27f1f8..18e13f9 100644 --- a/src/pages/examination/index.vue +++ b/src/pages/examination/index.vue @@ -38,6 +38,12 @@ import useMescrollComp from '@/uni_modules/mescroll-uni/hooks/useMescrollComp.js import { timeFormat } from '@climblee/uv-ui/libs/function/index' const { mescrollItem } = useMescrollComp(onPageScroll, onReachBottom) +onLoad(() => { + uni.$on('examination:onRefresh', () => { + mescrollItem.value?.refresh() + }) +}) + const detail = (item) => { uni.navigateTo({ url: `/pages/examination/detail?id=${item.id}`,