Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
Y
yongxinda-h5
Project
Project
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
Graph
比较
统计图
议题
0
议题
0
列表
看板
标记
Milestones
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
刘旭
yongxinda-h5
Commits
7bf29349
提交
7bf29349
authored
10月 28, 2022
作者:
刘旭
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
优化
上级
f13f7c48
显示空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
19 行增加
和
14 行删除
+19
-14
login.vue
src/pages/login/login.vue
+13
-10
addSite.vue
src/pages/profile/addSite.vue
+2
-2
index.vue
src/pages/profile/index.vue
+4
-2
logo.png
src/static/logo.png
+0
-0
没有找到文件。
src/pages/login/login.vue
浏览文件 @
7bf29349
<
template
>
<view
class=
"login-container"
>
<image
src=
"https://bytelibs-dev.oss-cn-beijing.aliyuncs.com/image/logo/logo.png"
mode=
"scaleToFill"
class=
"title-iamge"
></image>
<image
src=
"../../static/logo.png"
mode=
"widthFix"
class=
"title-iamge"
></image>
<text
class=
"login-text"
>
欢迎登陆
</text>
<view
class=
"login-form"
>
...
...
@@ -14,8 +10,6 @@
<button
@
tap=
"clickNextStep"
class=
"getCaptcha"
>
登录
</button>
<!--
<image
src=
"https://bytelibs-dev.oss-cn-beijing.aliyuncs.com/image/logo/logo.png"
mode=
""
class=
"next-step"
@
click=
"clickNextStep"
></image>
-->
<text
class=
"footer-text"
>
定制管理平台
</text>
</view>
</
template
>
...
...
@@ -82,6 +76,10 @@ let initLogin = async (mobile: number, password: string) => {
key
:
'mobile'
,
data
:
inputData
.
inputValue
,
success
()
{
uni
.
setStorage
({
key
:
'nickName'
,
data
:
res
.
data
.
data
.
userInfo
.
nickName
,
success
()
{
uni
.
showToast
({
title
:
'登陆成功'
,
icon
:
'none'
,
...
...
@@ -93,6 +91,8 @@ let initLogin = async (mobile: number, password: string) => {
});
},
});
},
});
}
else
{
uni
.
showToast
({
title
:
'手机号或密码错误'
,
...
...
@@ -104,8 +104,12 @@ let initLogin = async (mobile: number, password: string) => {
</
script
>
<
style
lang=
"scss"
scoped
>
page
{
background-color
:
#fff
;
}
.login-container
{
min-height
:
100vh
;
padding-top
:
40%
;
box-sizing
:
border-box
;
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
...
...
@@ -122,8 +126,7 @@ let initLogin = async (mobile: number, password: string) => {
}
}
.title-iamge
{
width
:
300rpx
;
height
:
240rpx
;
width
:
400rpx
;
}
.login-text
{
margin-top
:
10%
;
...
...
src/pages/profile/addSite.vue
浏览文件 @
7bf29349
...
...
@@ -133,7 +133,7 @@ let confirmModel = () => {
uni
.
navigateBack
({
delta
:
1
,
});
},
5
0
);
},
200
0
);
}
});
...
...
@@ -171,7 +171,7 @@ let addressSave = () => {
uni
.
navigateBack
({
delta
:
1
,
});
},
5
0
);
},
200
0
);
}
});
};
...
...
src/pages/profile/index.vue
浏览文件 @
7bf29349
...
...
@@ -2,9 +2,9 @@
<view
class=
"profile-container"
>
<view
class=
"profile-info"
@
tap=
"toLogin"
>
<view
class=
"profile-avatar"
>
<image
s
rc=
"https://bytelibs-dev.oss-cn-beijing.aliyuncs.com/image/logo/logo.png"
/>
<image
s
tyle=
"width: 220rpx;"
src=
"../../static/logo.png"
mode=
"scaleToFill"
/>
</view>
<view
class=
"profile-nickname"
><text>
Mr Tsui
</text></view>
<view
class=
"profile-nickname"
><text>
{{
nickName
}}
</text></view>
</view>
<view
class=
"order-center"
>
...
...
@@ -67,6 +67,8 @@ const toLogin = () => {
});
};
let
nickName
=
uni
.
getStorageSync
(
'nickName'
)
const
orderBtnList
=
ref
([
{
url
:
'/static/my/tuisongshezhi.png'
,
...
...
src/static/logo.png
查看替换文件 @
f13f7c48
浏览文件 @
7bf29349
3.9 KB
|
W:
|
H:
114.2 KB
|
W:
|
H:
2-up
Swipe
Onion skin
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论