From f7d359109de6b2cd8d3d0432b5b10214601e19d8 Mon Sep 17 00:00:00 2001 From: "453530270@qq.com" Date: Tue, 31 Oct 2023 20:01:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- manifest.json | 28 +++++------ pages/home.vue | 7 +-- pages/login/index.vue | 100 ++++++++++++++++++++++----------------- pages/login/loginsms.vue | 7 ++- 4 files changed, 80 insertions(+), 62 deletions(-) diff --git a/manifest.json b/manifest.json index 07eb3e7..4366322 100644 --- a/manifest.json +++ b/manifest.json @@ -1,6 +1,6 @@ { "name" : "国家文化专网网络注册登录系统", - "appid" : "", + "appid" : "__UNI__329D730", "description" : "国家文化专网网络注册登录系统", "versionName" : "2.0.3", "versionCode" : 203, @@ -72,19 +72,19 @@ "mp-weixin" : { "appid" : "", "setting" : { - // 是否检查安全域名和 TLS 版本 - "urlCheck" : true, - // es6转es5 - "es6" : false, - // 上传代码时自动压缩 - "minified" : true, - // 调试器 wxml面板展示 shadow-root - "showShadowRootInWxmlPanel" : true, - // 上传代码时是否自动压缩样式文件 - "minifyWXSS" : true, - // 上传代码时是否自动压缩wxml文件 - // 因uniappp构建出来的wxml本身就是压缩好的, 如果再用微信开发工具压缩一次的话, 有可能会破坏到文件, 所以此处设为false - "minifyWXML" : false + // 是否检查安全域名和 TLS 版本 + "urlCheck" : true, + // es6转es5 + "es6" : false, + // 上传代码时自动压缩 + "minified" : true, + // 调试器 wxml面板展示 shadow-root + "showShadowRootInWxmlPanel" : true, + // 上传代码时是否自动压缩样式文件 + "minifyWXSS" : true, + // 上传代码时是否自动压缩wxml文件 + // 因uniappp构建出来的wxml本身就是压缩好的, 如果再用微信开发工具压缩一次的话, 有可能会破坏到文件, 所以此处设为false + "minifyWXML" : false }, "usingComponents" : true, "lazyCodeLoading" : "requiredComponents", diff --git a/pages/home.vue b/pages/home.vue index 8ec469f..30bd4a2 100644 --- a/pages/home.vue +++ b/pages/home.vue @@ -181,7 +181,7 @@ // 校验登录 import { checkLogin, showError } from '@/core/app' import * as UserApi from '@/api/user' -import { userInfo } from 'os' + // import { userInfo } from 'os' export default { data() { @@ -199,6 +199,7 @@ import { userInfo } from 'os' this.getUserInfo() }, methods: { + // 系统初始化 init(){ if(checkLogin()==true){ @@ -224,7 +225,7 @@ import { userInfo } from 'os' .then(result => { app.userInfo = result.data.userInfo // 处理用户认证的问题 - console.log(app.userInfo.grade_id) + this.hasverify = app.userInfo.grade_id>0?true:false resolve(app.userInfo) }) @@ -248,7 +249,7 @@ import { userInfo } from 'os' success(res) { if (res.confirm) { store.dispatch('Logout', {}) - .then(result => app.onRefreshPage()) + .then(result => app.init()) } } }) diff --git a/pages/login/index.vue b/pages/login/index.vue index f549cff..79af009 100644 --- a/pages/login/index.vue +++ b/pages/login/index.vue @@ -11,7 +11,9 @@ - +86 + @@ -48,6 +50,9 @@ @@ -153,12 +165,13 @@ .form-item { display: flex; padding: 18rpx; - border-bottom: 1rpx solid #f3f1f2; margin-bottom: 30rpx; height: 126rpx; &--input { + padding-left: 12rpx; font-size: 28rpx; + border-bottom: 1rpx solid #f3f1f2; letter-spacing: 1rpx; flex: 1; height: 100%; @@ -181,6 +194,7 @@ padding: 6rpx; margin-right: 22rpx; height: 100%; + border-right: 1px solid #034373; background-color: #F8F8F8; } } diff --git a/pages/login/loginsms.vue b/pages/login/loginsms.vue index 0fc85c2..55c3e14 100644 --- a/pages/login/loginsms.vue +++ b/pages/login/loginsms.vue @@ -30,7 +30,7 @@ - 密码登录 + 密码登录 @@ -67,7 +67,10 @@ import store from '@/store' }, methods: { - + //goto smslogin + gtsms(){ + this.$navTo("pages/login/index") + }, // 点击登录 handleLogin() { const app = this