|
|
- <template>
- <view class="login">
- <view class="logo">
- <!-- <image src="/static/image/login/logo.png" mode=""></image> -->
- </view>
- <view class="title">
- 欢迎使用家乐美统计系统
- </view>
- <view class="btn mt">
- <view class="icon">
- <!-- <image src="/static/image/login/wx.png" mode=""></image> -->
- </view>
- <view class=""
- @click="wxLogin">
- 微信授权登录
- </view>
- </view>
- <!-- <view class="btn b2">
- 使用短信验证登录
- </view> -->
-
-
-
- <view class="config">
- <u-checkbox-group
- v-model="checkboxValue"
- shape="circle">
- <view class="content">
- <view
- style="display: flex;">
-
- <u-checkbox
- size="30rpx"
- :name="1"
- ></u-checkbox>
- 阅读并同意我们的<text @click="openConfigDetail('getPrivacyPolicy')">“服务协议与隐私条款”</text>
- </view>
- <view class="">
- 以及<text @click="openConfigDetail('getUserAgreement')">个人信息保护指引</text>
- </view>
- </view>
- </u-checkbox-group>
- </view>
-
- <configPopup ref="popup"></configPopup>
-
- </view>
- </template>
-
- <script>
- import configPopup from '@/components/configPopup/configPopup.vue'
- export default {
- name : 'Login',
- components : { configPopup },
- data() {
- return {
- checkboxValue : []
- }
- },
- methods: {
-
- wxLogin(){
- if(!this.checkboxValue.length){
- return uni.showToast({
- title: '请先同意隐私协议',
- icon:'none'
- })
- }
- this.$store.commit('login')
- },
-
- //打开应用配置
- openConfigDetail(key){
- this.$refs.popup.open(key)
- }
-
- }
- }
- </script>
-
- <style scoped lang="scss">
- .login{
- display: flex;
- justify-content: center;
- align-items: center;
- height: 80vh;
- flex-direction: column;
- position: relative;
- .logo{
- height: 80rpx;
- width: 80rpx;
- padding: 40rpx 30rpx;
- background-color: #ddd;
- border-radius: 70rpx;
- image{
- width: 80rpx;
- height: 80rpx;
- }
- 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;
- .icon{
- margin-right: 10rpx;
- image{
- width: 40rpx;
- height: 35rpx;
- }
- }
- }
- .b2{
- background-color: #3c69f122;
- color: #3c69f1;
- }
- .mt{
- margin-top: 200rpx;
- }
-
- .config{
- position: absolute;
- bottom: 0;
- font-size: 22rpx;
- text-align: center;
- line-height: 40rpx;
- text{
- color: #00aaff;
- }
- }
- }
- </style>
|