Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
study
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Damon
study
Commits
b72a4a28
Commit
b72a4a28
authored
Jul 24, 2021
by
linwenqing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improvement:登录页面样式ui修改
parent
1efc2a4e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
76 additions
and
20 deletions
+76
-20
pages.json
src/pages.json
+5
-11
index.vue
src/pages/login/index.vue
+71
-9
No files found.
src/pages.json
View file @
b72a4a28
...
@@ -40,6 +40,7 @@
...
@@ -40,6 +40,7 @@
"name"
:
"login"
,
"name"
:
"login"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"授权登录"
,
"navigationBarTitleText"
:
"授权登录"
,
"navigationStyle"
:
"custom"
,
"enablePullDownRefresh"
:
false
,
"enablePullDownRefresh"
:
false
,
"disableScroll"
:
true
"disableScroll"
:
true
}
}
...
@@ -91,16 +92,6 @@
...
@@ -91,16 +92,6 @@
"disableScroll"
:
true
"disableScroll"
:
true
}
}
},
},
{
"path"
:
"detail"
,
"name"
:
"learnDetail"
,
"style"
:
{
"navigationBarTitleText"
:
""
,
//
题库详情
"navigationStyle"
:
"custom"
,
"enablePullDownRefresh"
:
false
,
"disableScroll"
:
true
}
},
{
{
"path"
:
"selectCategory"
,
"path"
:
"selectCategory"
,
"name"
:
"learnSelectCategory"
,
"name"
:
"learnSelectCategory"
,
...
@@ -230,7 +221,10 @@
...
@@ -230,7 +221,10 @@
"path"
:
"detail"
,
"path"
:
"detail"
,
"name"
:
"certDetail"
,
"name"
:
"certDetail"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"证书详情"
"navigationBarTitleText"
:
"证书详情"
,
"navigationStyle"
:
"custom"
,
"enablePullDownRefresh"
:
false
,
"disableScroll"
:
false
}
}
}
}
]
]
...
...
src/pages/login/index.vue
View file @
b72a4a28
<
template
>
<
template
>
<view
class=
"begin-answer"
>
<u-navbar
back-icon-color=
"#000000"
background=
"transparent"
titleColor=
"#000000"
:border-bottom=
"false"
title-bold
></u-navbar>
<view
class=
"content"
>
<view
class=
"content"
>
<view>
<view>
<uni-icons
type=
"weixin"
size=
"120"
color=
"#04BE02"
></uni-icons>
<uni-icons
type=
"weixin"
size=
"120"
color=
"#04BE02"
></uni-icons>
</view>
</view>
<view
class=
"view-image"
>
<u-image
:src=
"targetImage"
class=
"target-image"
width=
"160"
height=
"160"
></u-image>
</view>
<view
class=
"target"
>
<text
class=
"tips"
>
想要轻松考过,首选模考大师
</text>
</view>
<view
class=
"text-area"
>
<view
class=
"text-area"
>
<button
class=
"bottom"
type=
"primary"
@
tap=
"wxLogin"
>
授权登录
</button>
<button
class=
"bottom"
type=
"primary"
@
tap=
"wxLogin"
>
授权登录
</button>
</view>
</view>
</view>
</view>
</view>
</
template
>
</
template
>
<
script
>
<
script
>
...
@@ -17,8 +37,12 @@ export default {
...
@@ -17,8 +37,12 @@ export default {
host
:
''
,
//配置为自己的额服务器即可
host
:
''
,
//配置为自己的额服务器即可
}
}
},
},
onShow
()
{
computed
:
{
targetImage
()
{
return
process
.
uniEnv
.
qn_base_url
+
'LOGO@3x.png'
},
},
},
onShow
()
{},
methods
:
{
methods
:
{
wxLogin
()
{
wxLogin
()
{
// 获取code 小程序专有,用户登录凭证。
// 获取code 小程序专有,用户登录凭证。
...
@@ -40,7 +64,7 @@ export default {
...
@@ -40,7 +64,7 @@ export default {
orgId
:
getApp
().
globalData
.
orgId
orgId
:
getApp
().
globalData
.
orgId
}
}
uni
.
showLoading
({
uni
.
showLoading
({
title
:
'加载中'
title
:
'加载中'
,
})
})
this
.
$u
.
api
.
loginWechatAuth
(
data
).
then
((
res
)
=>
{
this
.
$u
.
api
.
loginWechatAuth
(
data
).
then
((
res
)
=>
{
uni
.
hideLoading
()
uni
.
hideLoading
()
...
@@ -69,6 +93,23 @@ export default {
...
@@ -69,6 +93,23 @@ export default {
</
script
>
</
script
>
<
style
>
<
style
>
::-webkit-scrollbar
{
width
:
0
;
height
:
0
;
color
:
transparent
;
display
:
none
;
}
.begin-answer
{
display
:
flex
;
flex-direction
:
column
;
background-color
:
#ffffff
;
background-size
:
100%
920
rpx
;
background-repeat
:
no-repeat
;
height
:
120vh
;
position
:
absolute
;
top
:
0
;
width
:
100%
;
}
.content
{
.content
{
display
:
flex
;
display
:
flex
;
flex-direction
:
column
;
flex-direction
:
column
;
...
@@ -78,10 +119,31 @@ export default {
...
@@ -78,10 +119,31 @@ export default {
.text-area
{
.text-area
{
display
:
flex
;
display
:
flex
;
justify-content
:
center
;
justify-content
:
center
;
position
:
relative
;
margin-top
:
500
rpx
;
}
.bottom
{
width
:
600
rpx
;
height
:
104
rpx
;
border-radius
:
52
rpx
;
background-color
:
#2953ff
!important
;
}
}
.title
{
.title
{
font-size
:
36
rpx
;
font-size
:
36
rpx
;
color
:
#8f8f94
;
color
:
#8f8f94
;
}
}
.target
{
position
:
relative
;
display
:
flex
;
flex-direction
:
column
;
}
.tips
{
font-size
:
40
rpx
;
color
:
#adbdd4
;
margin-top
:
64
rpx
;
}
.target-image
{
margin
:
auto
;
padding-top
:
450
rpx
;
}
</
style
>
</
style
>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment