Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
I
inspection-pad-web
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
专网
inspection-pad-web
Commits
023ee1b6
提交
023ee1b6
authored
4月 09, 2025
作者:
JaxBBLL
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix: init 2
上级
7409b5f4
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
53 行增加
和
43 行删除
+53
-43
App.vue
App.vue
+2
-2
home.vue
pages/home/home.vue
+0
-14
login.vue
pages/login/login.vue
+51
-27
没有找到文件。
App.vue
浏览文件 @
023ee1b6
...
@@ -21,7 +21,7 @@ export default {
...
@@ -21,7 +21,7 @@ export default {
plus
.
screen
.
lockOrientation
(
"landscape-primary"
);
//锁定横屏
plus
.
screen
.
lockOrientation
(
"landscape-primary"
);
//锁定横屏
// #endif
// #endif
//
this.init();
this
.
init
();
// #ifdef APP-PLUS
// #ifdef APP-PLUS
plus
.
android
.
requestPermissions
(
plus
.
android
.
requestPermissions
(
...
@@ -61,7 +61,7 @@ export default {
...
@@ -61,7 +61,7 @@ export default {
if
(
now_user
.
user
)
{
if
(
now_user
.
user
)
{
this
.
$store
.
commit
(
"SET_USER"
,
now_user
);
this
.
$store
.
commit
(
"SET_USER"
,
now_user
);
}
}
this
.
init
();
//
this.init();
},
},
onLoad
:
function
(
query
)
{
onLoad
:
function
(
query
)
{
console
.
log
(
"即将开始初始化app"
);
console
.
log
(
"即将开始初始化app"
);
...
...
pages/home/home.vue
浏览文件 @
023ee1b6
<
template
>
<
template
>
<!-- 首页 -->
<!-- 首页 -->
<view
class=
"container"
>
<view
class=
"container"
>
<view
class=
"flex"
>
<navigator
url=
"/pages/inspectionContent/inspectionContentList?uid=23"
hover-class=
"navigator-hover"
>
<button
type=
"default"
class=
"uni-btn"
>
23
</button>
</navigator>
<navigator
url=
"/pages/inspectionContent/inspectionContentList?uid=16"
hover-class=
"navigator-hover"
>
<button
type=
"default"
class=
"uni-btn"
>
16
</button>
</navigator>
</view>
<!-- 第一个模块 -->
<!-- 第一个模块 -->
<view
class=
"header"
>
<view
class=
"header"
>
<view
class=
"title"
>
杭州内网监管在线-运维在线
</view>
<view
class=
"title"
>
杭州内网监管在线-运维在线
</view>
...
...
pages/login/login.vue
浏览文件 @
023ee1b6
...
@@ -8,14 +8,35 @@
...
@@ -8,14 +8,35 @@
</view>
</view>
<view
class=
"form_wrap"
>
<view
class=
"form_wrap"
>
<view
class=
"input_wrap"
>
<view
class=
"input_wrap"
>
<uni-easyinput
class=
"log-input"
clearSize=
"0"
v-model=
"person.account"
prefixIcon=
"person"
<uni-easyinput
placeholder=
"用户名"
></uni-easyinput>
class=
"log-input"
<uni-easyinput
v-if=
"passwordVisible"
class=
"log-input"
prefixIcon=
"locked"
clearSize=
"0"
clearSize=
"0"
v-model=
"person.pwd"
@
iconClick=
"togglePasswordVisible"
:placeholder=
"passwordPlaceholder"
v-model=
"person.account"
:passwordIcon=
"false"
:type=
"passwordVisible ? 'text' : 'password'"
></uni-easyinput>
prefixIcon=
"person"
<uni-easyinput
v-else
class=
"log-input"
prefixIcon=
"locked-filled"
clearSize=
"0"
v-model=
"person.pd"
placeholder=
"用户名"
@
iconClick=
"togglePasswordVisible"
:placeholder=
"passwordPlaceholder"
:passwordIcon=
"false"
></uni-easyinput>
:type=
"passwordVisible ? 'text' : 'password'"
></uni-easyinput>
<uni-easyinput
v-if=
"passwordVisible"
class=
"log-input"
prefixIcon=
"locked"
clearSize=
"0"
v-model=
"person.pwd"
@
iconClick=
"togglePasswordVisible"
:placeholder=
"passwordPlaceholder"
:passwordIcon=
"false"
:type=
"passwordVisible ? 'text' : 'password'"
></uni-easyinput>
<uni-easyinput
v-else
class=
"log-input"
prefixIcon=
"locked-filled"
clearSize=
"0"
v-model=
"person.pd"
@
iconClick=
"togglePasswordVisible"
:placeholder=
"passwordPlaceholder"
:passwordIcon=
"false"
:type=
"passwordVisible ? 'text' : 'password'"
></uni-easyinput>
</view>
</view>
<view
class=
"login_btn"
@
click=
"login"
>
<view
class=
"login_btn"
@
click=
"login"
>
<view
class=
"login_btn_text"
>
登录
</view>
<view
class=
"login_btn_text"
>
登录
</view>
...
@@ -26,19 +47,17 @@
...
@@ -26,19 +47,17 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
userApi
from
"@/api/user.js"
import
userApi
from
"@/api/user.js"
;
import
SqlliteDbUtil
from
'@/utils/sqllitedb'
import
SqlliteDbUtil
from
"@/utils/sqllitedb"
;
import
table
from
'@/api/sqllite/table.js'
import
table
from
"@/api/sqllite/table.js"
;
import
{
import
{
getUserList
}
from
"@/utils/systemCofig"
;
getUserList
,
import
{
}
from
"@/utils/systemCofig"
;
import
{
LOG_TYPE_ENUM
,
LOG_TYPE_ENUM
,
getLogContent
,
getLogContent
,
addLog
,
addLog
,
readLogData
,
readLogData
,
}
from
"@/utils/IoReadingAndWriting.js"
;
}
from
"@/utils/IoReadingAndWriting.js"
;
export
default
{
export
default
{
components
:
{},
components
:
{},
data
()
{
data
()
{
return
{
return
{
...
@@ -61,9 +80,7 @@
...
@@ -61,9 +80,7 @@
created
()
{},
created
()
{},
onShow
()
{},
onShow
()
{},
async
mounted
()
{
async
mounted
()
{},
},
// 定义返回退出
// 定义返回退出
onBackPress
(
options
)
{
onBackPress
(
options
)
{
this
.
backButtonPress
++
;
this
.
backButtonPress
++
;
...
@@ -79,7 +96,7 @@
...
@@ -79,7 +96,7 @@
}
else
{
}
else
{
plus
.
nativeUI
.
toast
(
"再划一次退出应用"
);
plus
.
nativeUI
.
toast
(
"再划一次退出应用"
);
}
}
setTimeout
(
function
()
{
setTimeout
(
function
()
{
this
.
backButtonPress
=
0
;
this
.
backButtonPress
=
0
;
},
1000
);
},
1000
);
return
true
;
return
true
;
...
@@ -95,12 +112,18 @@
...
@@ -95,12 +112,18 @@
if
(
res
.
data
)
{
if
(
res
.
data
)
{
this
.
personList
=
res
.
data
;
this
.
personList
=
res
.
data
;
this
.
$store
.
commit
(
"SET_USER"
,
this
.
personList
);
this
.
$store
.
commit
(
"SET_USER"
,
this
.
personList
);
uni
.
setStorageSync
(
"now_user"
,
this
.
personList
);
uni
.
setStorageSync
(
"last_time"
,
this
.
personList
.
LastSynchronizationTime
||
""
);
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
"/pages/home/home"
,
url
:
"/pages/home/home"
,
});
});
}
else
{
}
else
{
uni
.
showToast
({
uni
.
showToast
({
title
:
'账号密码错误,请重新输入'
,
title
:
"账号密码错误,请重新输入"
,
icon
:
"none"
,
icon
:
"none"
,
duration
:
2000
,
duration
:
2000
,
});
});
...
@@ -108,11 +131,11 @@
...
@@ -108,11 +131,11 @@
});
});
},
},
},
},
};
};
</
script
>
</
script
>
<
style
scoped
lang=
"less"
>
<
style
scoped
lang=
"less"
>
.content {
.content {
width: 100vw;
width: 100vw;
height: 100vh;
height: 100vh;
// background-color: red;
// background-color: red;
...
@@ -141,7 +164,8 @@
...
@@ -141,7 +164,8 @@
}
}
}
}
.login_wrap {}
.login_wrap {
}
.log-input {
.log-input {
width: 350px;
width: 350px;
...
@@ -200,5 +224,5 @@
...
@@ -200,5 +224,5 @@
color: #fff;
color: #fff;
}
}
}
}
}
}
</
style
>
</
style
>
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论