艺易修小程序24.08.21
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

140 lines
2.5 KiB

<template>
<view class="login">
<view class="logo">
<image src="../../static/studentLogin/logo.png" mode="widthFix"></image>
</view>
<view class="title">
欢迎使用艺易修
</view>
<view @click="wxLogin" class="btn mt">
<view>
微信授权登录
</view>
</view>
<view @click="toRepairLogin" class="btn b2">
维修员登录
</view>
<view class="config">
<uv-checkbox-group
v-model="checkboxValue"
shape="circle">
<view class="content">
<view
style="display: flex;">
<uv-checkbox
size="30rpx"
:name="1"
v-model="agreement"
></uv-checkbox>
阅读并同意我们的<text @click="openConfigDetail('privacyAgreement')">“服务协议与隐私条款”</text>
</view>
<view class="">
以及<text @click="openConfigDetail('userAgreement')">个人信息保护指引</text>
</view>
</view>
</uv-checkbox-group>
</view>
<configPopup ref="popup"></configPopup>
</view>
</template>
<script>
import configPopup from '../../components/config/configPopup.vue';
export default {
name : 'Login',
data() {
return {
checkboxValue : [],
agreement : true
}
},
methods: {
wxLogin(){
this.$store.commit('login')
},
//打开应用配置
openConfigDetail(key){
this.$refs.popup.open(key)
},
//跳转维修员登录页面
toRepairLogin(){
uni.navigateTo({
url: '/pages/login/repairLogin'
})
}
}
}
</script>
<style scoped lang="scss">
.login{
display: flex;
justify-content: center;
align-items: center;
height: 80vh;
flex-direction: column;
position: relative;
.logo{
height: 150rpx;
width: 150rpx;
border-radius: 50%;
image{
width: 150rpx;
height: 150rpx;
}
margin-bottom: 20rpx;
}
.title{
position: relative;
font-weight: 900;
font-size: 45rpx;
&::after{
content: '';
position: absolute;
left: 0;
top: 100%;
display: block;
height: 8rpx;
width: 210rpx;
background: linear-gradient(to right,#00aaff, #fff);
}
}
.btn{
width: 80%;
height: 100rpx;
background-color: #00aaff;
color: #fff;
display: flex;
justify-content: center;
align-items: center;
margin: 20rpx 0;
border-radius: 20rpx;
}
.b2{
background-color: #87D0F6;
color: #fff;
}
.mt{
margin-top: 200rpx;
}
.config{
position: absolute;
bottom: 0;
font-size: 22rpx;
text-align: center;
line-height: 40rpx;
text{
color: #00aaff;
}
}
}
</style>