Commit b72a4a28 authored by linwenqing's avatar linwenqing

improvement:登录页面样式ui修改

parent 1efc2a4e
......@@ -40,6 +40,7 @@
"name": "login",
"style": {
"navigationBarTitleText": "授权登录",
"navigationStyle": "custom",
"enablePullDownRefresh": false,
"disableScroll": true
}
......@@ -91,16 +92,6 @@
"disableScroll": true
}
},
{
"path": "detail",
"name": "learnDetail",
"style": {
"navigationBarTitleText": "", // 题库详情
"navigationStyle": "custom",
"enablePullDownRefresh": false,
"disableScroll": true
}
},
{
"path": "selectCategory",
"name": "learnSelectCategory",
......@@ -230,7 +221,10 @@
"path": "detail",
"name": "certDetail",
"style": {
"navigationBarTitleText": "证书详情"
"navigationBarTitleText": "证书详情",
"navigationStyle": "custom",
"enablePullDownRefresh": false,
"disableScroll": false
}
}
]
......
<template>
<view class="content">
<view>
<uni-icons type="weixin" size="120" color="#04BE02"></uni-icons>
</view>
<view class="text-area">
<button class="bottom" type="primary" @tap="wxLogin">授权登录</button>
<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>
<uni-icons type="weixin" size="120" color="#04BE02"></uni-icons>
</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">
<button class="bottom" type="primary" @tap="wxLogin">授权登录</button>
</view>
</view>
</view>
</template>
......@@ -17,8 +37,12 @@ export default {
host: '', //配置为自己的额服务器即可
}
},
onShow() {
computed: {
targetImage() {
return process.uniEnv.qn_base_url + 'LOGO@3x.png'
},
},
onShow() {},
methods: {
wxLogin() {
// 获取code 小程序专有,用户登录凭证。
......@@ -40,7 +64,7 @@ export default {
orgId: getApp().globalData.orgId
}
uni.showLoading({
title: '加载中'
title: '加载中',
})
this.$u.api.loginWechatAuth(data).then((res) => {
uni.hideLoading()
......@@ -69,6 +93,23 @@ export default {
</script>
<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 {
display: flex;
flex-direction: column;
......@@ -78,10 +119,31 @@ export default {
.text-area {
display: flex;
justify-content: center;
position: relative;
margin-top: 500rpx;
}
.bottom {
width: 600rpx;
height: 104rpx;
border-radius: 52rpx;
background-color: #2953ff !important;
}
.title {
font-size: 36rpx;
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>
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