Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
肖康
/
H5_2.0
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
d84a5dd7
authored
May 17, 2023
by
LJM
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
css
parent
e9afdaac
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
54 additions
and
20 deletions
App.vue
assets/css/mine/login.scss
pages.json
pages/mine/login.vue
router/index.js
App.vue
View file @
d84a5dd7
<
script
>
export
default
{
export
default
{
onLaunch
:
function
()
{
console
.
log
(
'App Launch'
)
console
.
log
(
'App Launch'
);
},
onShow
:
function
()
{
console
.
log
(
'App Show'
)
console
.
log
(
'App Show'
);
},
onHide
:
function
()
{
console
.
log
(
'App Hide'
)
}
console
.
log
(
'App Hide'
);
}
};
</
script
>
<
style
>
@import
'./assets/css/font/iconfont.css'
;
/*每个页面公共css */
/* #ifdef H5 */
uni-page-head
{
display
:
none
;
}
/* #endif */
@import
'./assets/css/font/iconfont.css'
;
/*每个页面公共css */
/* #ifdef H5 */
uni-page-head
{
display
:
none
;
}
/* #endif */
</
style
>
assets/css/mine/login.scss
View file @
d84a5dd7
...
...
@@ -4,6 +4,7 @@
.logo
{
width
:
170rpx
;
height
:
82rpx
;
margin-top
:
50rpx
;
}
.tab
{
margin-top
:
80rpx
;
...
...
@@ -80,6 +81,22 @@
font-size
:
28rpx
;
color
:
#ffffff
;
}
.agreement
{
position
:
fixed
;
bottom
:
50rpx
;
le
:
0
;
right
:
0
;
width
:
100%
;
text-align
:
center
;
.t1
{
font-size
:
22rpx
;
color
:
#919399
;
}
.t2
{
font-size
:
22rpx
;
color
:
#1969f9
;
}
}
}
.mb24
{
...
...
pages.json
View file @
d84a5dd7
{
"pages"
:
[
//pages数组中第一项表示应用启动页,参考:https
:
//uniapp.dcloud.io/collocation/pages
{
"pages"
:
[{
"path"
:
"pages/index/index"
,
"style"
:
{
"navigationBarTitleText"
:
"首页"
...
...
@@ -23,12 +22,19 @@
"style"
:
{
"navigationBarTitleText"
:
"购物车"
}
},
{
"path"
:
"pages/mine/login"
,
"style"
:
{
"navigationBarTitleText"
:
"登录"
}
},
{
"path"
:
"pages/mine/agreements"
,
"style"
:
{
"navigationBarTitleText"
:
"协议"
}
}
],
"globalStyle"
:
{
...
...
pages/mine/login.vue
View file @
d84a5dd7
...
...
@@ -21,10 +21,14 @@
<input
type=
"number"
placeholder=
"请输入手机号码"
placeholder-style=
"color:#919399;"
class=
"uni-input"
/>
</view>
<view
class=
"input-box code row bothSide verCenter mb40"
>
<input
type=
"number"
placeholder=
"请输入
手机号
码"
placeholder-style=
"color:#919399;"
class=
"uni-input"
/>
<input
type=
"number"
placeholder=
"请输入
验证
码"
placeholder-style=
"color:#919399;"
class=
"uni-input"
/>
<text
class=
"code"
>
获取验证码
</text>
</view>
<view
class=
"btn row rowCenter verCenter"
>
登录/注册
</view>
<view
class=
"agreement row rowCenter verCenter"
>
<text
class=
"t1"
>
登录即代表您同意
</text>
<navigator
class=
"t2"
url=
"/reg/agreements"
>
《用户注册协议》《隐私保护协议》
</navigator>
</view>
</view>
</
template
>
...
...
router/index.js
View file @
d84a5dd7
...
...
@@ -16,37 +16,44 @@ const router = new Router({
path
:
'/pages/index/index'
,
aliasPath
:
'/'
,
meta
:
{
title
:
'首页'
,
title
:
'首页'
}
},
{
path
:
'/pages/search/search'
,
aliasPath
:
'/search'
,
meta
:
{
title
:
'搜索首页'
,
title
:
'搜索首页'
}
},
{
path
:
'/pages/search/searchlist'
,
aliasPath
:
'/s'
,
meta
:
{
title
:
'搜索列表'
,
title
:
'搜索列表'
}
},
{
path
:
'/pages/car/car'
,
aliasPath
:
'/joincart'
,
meta
:
{
title
:
'购物车'
,
title
:
'购物车'
}
},
{
path
:
'/pages/mine/login'
,
aliasPath
:
'/login'
,
meta
:
{
title
:
'登录'
,
title
:
'登录'
}
},
{
path
:
'/pages/mine/agreements'
,
aliasPath
:
'/reg/agreements'
,
meta
:
{
title
:
'协议'
}
}
]
});
...
...
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