<template>
							 | 
						|
									<view class="login">
							 | 
						|
										<view class="logo">
							 | 
						|
											<image :src="configList.logo_image" mode=""></image>
							 | 
						|
										</view>
							 | 
						|
										<view class="title">
							 | 
						|
											欢迎使用{{ configList.logo_name }}
							 | 
						|
										</view>
							 | 
						|
										
							 | 
						|
										<!-- 			v-if="checkboxValue.length == 0" -->
							 | 
						|
										
							 | 
						|
										<view class="btn mt"
							 | 
						|
											@click="wxLogin">
							 | 
						|
											<view class="icon">
							 | 
						|
												<image src="../static/auth/wx.png" mode=""></image>
							 | 
						|
											</view>
							 | 
						|
											<view class="">
							 | 
						|
												微信授权登录
							 | 
						|
											</view>
							 | 
						|
										</view>
							 | 
						|
										
							 | 
						|
										<!-- <button
							 | 
						|
										class="btn mt"
							 | 
						|
										v-else
							 | 
						|
										open-type="getPhoneNumber" 
							 | 
						|
										@getphonenumber="getPhoneNumber">
							 | 
						|
											<view class="icon">
							 | 
						|
												<image src="../static/auth/wx.png" mode=""></image>
							 | 
						|
											</view>
							 | 
						|
											<view 
							 | 
						|
											style="font-size: 30rpx;">
							 | 
						|
												微信授权登录
							 | 
						|
											</view>
							 | 
						|
										</button> -->
							 | 
						|
										
							 | 
						|
										<view class="btn b2"
							 | 
						|
										@click="qux">
							 | 
						|
											取消登录
							 | 
						|
										</view>
							 | 
						|
										
							 | 
						|
										
							 | 
						|
										
							 | 
						|
										<view class="config">
							 | 
						|
											<uv-checkbox-group
							 | 
						|
												v-model="checkboxValue"
							 | 
						|
												shape="circle">
							 | 
						|
												<view class="content">
							 | 
						|
													<view
							 | 
						|
													style="display: flex;">
							 | 
						|
														
							 | 
						|
														<uv-checkbox
							 | 
						|
															size="40rpx"
							 | 
						|
															icon-size="30rpx"
							 | 
						|
															activeColor="#A3D250"
							 | 
						|
															:name="1"
							 | 
						|
														></uv-checkbox>
							 | 
						|
														阅读并同意我们的<text @click="$refs.popup.open('user_xy')">“用户协议”</text>
							 | 
						|
													</view>
							 | 
						|
													<view class="">
							 | 
						|
														以及<text @click="$refs.popup.open('user_ys')">隐私政策</text>
							 | 
						|
													</view>
							 | 
						|
												</view>
							 | 
						|
											</uv-checkbox-group>
							 | 
						|
										</view>
							 | 
						|
										
							 | 
						|
										<configPopup ref="popup"></configPopup>
							 | 
						|
										
							 | 
						|
									</view>
							 | 
						|
								</template>
							 | 
						|
								
							 | 
						|
								<script>
							 | 
						|
									export default {
							 | 
						|
										name : 'Login',
							 | 
						|
										data() {
							 | 
						|
											return {
							 | 
						|
												checkboxValue : []
							 | 
						|
											}
							 | 
						|
										},
							 | 
						|
										methods: {
							 | 
						|
											getPhoneNumber(e){
							 | 
						|
												console.log(e, e.detail.code);
							 | 
						|
												this.wxLogin(phoneCode)
							 | 
						|
											},
							 | 
						|
											wxLogin(phoneCode){
							 | 
						|
												if(!this.checkboxValue.length){
							 | 
						|
													return uni.showToast({
							 | 
						|
														title: '请先同意隐私协议',
							 | 
						|
														icon:'none'
							 | 
						|
													})
							 | 
						|
												}
							 | 
						|
												this.$store.commit('login', phoneCode)
							 | 
						|
											},
							 | 
						|
											
							 | 
						|
											//打开应用配置
							 | 
						|
											openConfigDetail(key){
							 | 
						|
												this.$refs.popup.open(key)
							 | 
						|
											},
							 | 
						|
											qux(){
							 | 
						|
												uni.reLaunch({
							 | 
						|
													url: '/pages/index/index'
							 | 
						|
												})
							 | 
						|
											},
							 | 
						|
										}
							 | 
						|
									}
							 | 
						|
								</script>
							 | 
						|
								
							 | 
						|
								<style scoped lang="scss">
							 | 
						|
								.login{
							 | 
						|
									display: flex;
							 | 
						|
									justify-content: center;
							 | 
						|
									align-items: center;
							 | 
						|
									height: 80vh;
							 | 
						|
									flex-direction: column;
							 | 
						|
									position: relative;
							 | 
						|
									.logo{
							 | 
						|
										height: 140rpx;
							 | 
						|
										width: 140rpx;
							 | 
						|
										image{
							 | 
						|
											height: 140rpx;
							 | 
						|
											width: 140rpx;
							 | 
						|
											border-radius: 30rpx;
							 | 
						|
										}
							 | 
						|
										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,$uni-color, #fff);
							 | 
						|
										}
							 | 
						|
									}
							 | 
						|
									.btn{
							 | 
						|
										all: unset;
							 | 
						|
										width: 80%;
							 | 
						|
										height: 100rpx;
							 | 
						|
										background-color: $uni-color;
							 | 
						|
										color: #fff;
							 | 
						|
										display: flex;
							 | 
						|
										justify-content: center;
							 | 
						|
										align-items: center;
							 | 
						|
										margin: 20rpx 0;
							 | 
						|
										border-radius: 20rpx;
							 | 
						|
										border: none;
							 | 
						|
										&::after{
							 | 
						|
											
							 | 
						|
										}
							 | 
						|
										.icon{
							 | 
						|
											margin-right: 10rpx;
							 | 
						|
											image{
							 | 
						|
												width: 40rpx;
							 | 
						|
												height: 35rpx;
							 | 
						|
											}
							 | 
						|
										}
							 | 
						|
									}
							 | 
						|
									.b2{
							 | 
						|
										background-color: rgba($uni-color, 0.2);
							 | 
						|
										color: $uni-color;
							 | 
						|
									}
							 | 
						|
									.mt{
							 | 
						|
										margin-top: 200rpx;
							 | 
						|
									}
							 | 
						|
									
							 | 
						|
									.config{
							 | 
						|
										position: absolute;
							 | 
						|
										bottom: 0;
							 | 
						|
										font-size: 24rpx;
							 | 
						|
										text-align: center;
							 | 
						|
										line-height: 40rpx;
							 | 
						|
										text{
							 | 
						|
											color: $uni-color;
							 | 
						|
										}
							 | 
						|
									}
							 | 
						|
								}
							 | 
						|
								</style>
							 |