Commit d84a5dd7 by LJM

css

parent e9afdaac
<script> <script>
export default { export default {
onLaunch: function() { onLaunch: function() {
console.log('App Launch') console.log('App Launch');
}, },
onShow: function() { onShow: function() {
console.log('App Show') console.log('App Show');
}, },
onHide: function() { onHide: function() {
console.log('App Hide') console.log('App Hide');
}
} }
};
</script> </script>
<style> <style>
@import './assets/css/font/iconfont.css'; @import './assets/css/font/iconfont.css';
/*每个页面公共css */ /*每个页面公共css */
/* #ifdef H5 */ /* #ifdef H5 */
uni-page-head { display: none; } uni-page-head {
/* #endif */ display: none;
}
/* #endif */
</style> </style>
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
.logo { .logo {
width: 170rpx; width: 170rpx;
height: 82rpx; height: 82rpx;
margin-top: 50rpx;
} }
.tab { .tab {
margin-top: 80rpx; margin-top: 80rpx;
...@@ -80,6 +81,22 @@ ...@@ -80,6 +81,22 @@
font-size: 28rpx; font-size: 28rpx;
color: #ffffff; 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 { .mb24 {
......
{ {
"pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages "pages": [{
{
"path": "pages/index/index", "path": "pages/index/index",
"style": { "style": {
"navigationBarTitleText": "首页" "navigationBarTitleText": "首页"
...@@ -23,12 +22,19 @@ ...@@ -23,12 +22,19 @@
"style": { "style": {
"navigationBarTitleText": "购物车" "navigationBarTitleText": "购物车"
} }
}, },
{ {
"path": "pages/mine/login", "path": "pages/mine/login",
"style": { "style": {
"navigationBarTitleText": "登录" "navigationBarTitleText": "登录"
} }
},
{
"path": "pages/mine/agreements",
"style": {
"navigationBarTitleText": "协议"
}
} }
], ],
"globalStyle": { "globalStyle": {
......
...@@ -21,10 +21,14 @@ ...@@ -21,10 +21,14 @@
<input type="number" placeholder="请输入手机号码" placeholder-style="color:#919399;" class="uni-input" /> <input type="number" placeholder="请输入手机号码" placeholder-style="color:#919399;" class="uni-input" />
</view> </view>
<view class="input-box code row bothSide verCenter mb40"> <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> <text class="code">获取验证码</text>
</view> </view>
<view class="btn row rowCenter verCenter">登录/注册</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> </view>
</template> </template>
......
...@@ -16,37 +16,44 @@ const router = new Router({ ...@@ -16,37 +16,44 @@ const router = new Router({
path: '/pages/index/index', path: '/pages/index/index',
aliasPath: '/', aliasPath: '/',
meta: { meta: {
title: '首页', title: '首页'
} }
}, },
{ {
path: '/pages/search/search', path: '/pages/search/search',
aliasPath: '/search', aliasPath: '/search',
meta: { meta: {
title: '搜索首页', title: '搜索首页'
} }
}, },
{ {
path: '/pages/search/searchlist', path: '/pages/search/searchlist',
aliasPath: '/s', aliasPath: '/s',
meta: { meta: {
title: '搜索列表', title: '搜索列表'
} }
}, },
{ {
path: '/pages/car/car', path: '/pages/car/car',
aliasPath: '/joincart', aliasPath: '/joincart',
meta: { meta: {
title: '购物车', title: '购物车'
} }
}, },
{ {
path: '/pages/mine/login', path: '/pages/mine/login',
aliasPath: '/login', aliasPath: '/login',
meta: { meta: {
title: '登录', title: '登录'
} }
}, },
{
path: '/pages/mine/agreements',
aliasPath: '/reg/agreements',
meta: {
title: '协议'
}
}
] ]
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment