Commit b72a4a28 authored by linwenqing's avatar linwenqing

improvement:登录页面样式ui修改

parent 1efc2a4e
...@@ -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
} }
} }
] ]
......
<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% 920rpx;
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: 500rpx;
}
.bottom {
width: 600rpx;
height: 104rpx;
border-radius: 52rpx;
background-color: #2953ff !important;
} }
.title { .title {
font-size: 36rpx; font-size: 36rpx;
color: #8f8f94; color: #8f8f94;
} }
.target {
position: relative;
display: flex;
flex-direction: column;
}
.tips {
font-size: 40rpx;
color: #adbdd4;
margin-top: 64rpx;
}
.target-image {
margin: auto;
padding-top: 450rpx;
}
</style> </style>
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 to comment