From 0b7dbcc632e659653019abf99045bb163609286f Mon Sep 17 00:00:00 2001 From: zhichao lei <442149704@qq.com> Date: Wed, 9 Sep 2020 15:47:53 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A8=E5=8D=95=E9=AA=8C=E8=AF=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Views/ADR_Restriction/Form.cshtml | 28 +++++++------- .../LearunApp-2.2.0/App.vue | 37 ++++++++++--------- .../LearunApp-2.2.0/README.md | 37 ++++++++++--------- 3 files changed, 54 insertions(+), 48 deletions(-) diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/ADR_Restriction/Form.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/ADR_Restriction/Form.cshtml index d8051cc11..50e25d66f 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/ADR_Restriction/Form.cshtml +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/ADR_Restriction/Form.cshtml @@ -4,19 +4,19 @@ } +*/
-
上班时间
- +
上班时间*
+
-
下班时间
- +
下班时间*
+
@*
签到有效时间
@@ -35,20 +35,20 @@
*@
-
允许迟到范围(分)
- +
允许迟到(分)*
+
-
允许早退范围(分)
- +
允许早退(分)*
+
-
未签到,记为
-
+
未签到,记为*
+
-
未签退,记为
-
+
未签退,记为*
+
@Html.AppendJsFile("/Areas/PersonnelManagement/Views/ADR_Restriction/Form.js") diff --git a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/App.vue b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/App.vue index b281cad32..82cf5320d 100644 --- a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/App.vue +++ b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/App.vue @@ -5,43 +5,46 @@ export default { // 考虑到用户刷新网页时会丢失全局数据、页面栈、页面数据等,因此直接跳回首页即可 async onLaunch(param) { + //应用的生命周期 应用启动后触发 // #ifdef H5 || APP-VUE // H5 刷新时获取当前页面路径 - const pagePath = '/' + param.path - + const pagePath = "/" + param.path; // 如果 H5 刷新后访问的不是首页/登录页/注册页,直接跳转回首页 - if (!['/pages/login', '/pages/home', '/pages/signup'].includes(pagePath)) { + if (!["/pages/login", "/pages/home", "/pages/signup"].includes(pagePath)) { this.$nextTick(() => { - this.TAB_TO('/pages/home') - return - }) + this.TAB_TO("/pages/home"); + return; + }); } // #endif // #ifdef MP-WEIXIN // 小程序端,处理更新 (支付宝/钉钉暂不支持) - const updateManager = uni.getUpdateManager() + const updateManager = uni.getUpdateManager(); updateManager.onUpdateReady(() => { - this.HIDE_LOADING() + this.HIDE_LOADING(); uni.showModal({ - title: '更新提示', - content: '小程序新版本已准备好,是否更新应用?', + title: "更新提示", + content: "小程序新版本已准备好,是否更新应用?", success: ({ confirm }) => { if (confirm) { - updateManager.applyUpdate() + updateManager.applyUpdate(); } - } - }) - }) + }, + }); + }); // #endif - } -} + }, + onError(error) { + console.log(error); + }, +}; ``` - + ## 页面模板相关注意事项: - 模板遵循 Vue 模板写法,[uni-app 页面模板文档](https://uniapp.dcloud.io/component/README); - 网页中的 `
`、``、`` 等标签,在 uni-app 中需要分别写成 ``、``、`` 等;