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.
		
		
		
		
			
				
					61 lines
				
				1.1 KiB
			
		
		
			
		
	
	
					61 lines
				
				1.1 KiB
			| 
											9 months ago
										 | <template>
 | ||
|  | 	<view class="container">
 | ||
|  | 		<u--image src="/static/favicon.png" width="180px" height="80px" mode="aspectFit" :fade="true" duration="450"></u--image>
 | ||
|  | 		<text class="title">智慧生态</text>
 | ||
|  | 	</view>
 | ||
|  | </template>
 | ||
|  | 
 | ||
|  | <script>
 | ||
|  | export default {
 | ||
|  | 	name: 'Login',
 | ||
|  | 	data() {
 | ||
|  | 		return {}
 | ||
|  | 	},
 | ||
|  | 	onLoad() {
 | ||
|  | 		this.init()
 | ||
|  | 	},
 | ||
|  | 	methods: {
 | ||
|  | 		init() {
 | ||
|  | 			uni.login({
 | ||
|  | 				success: (res) => {
 | ||
|  | 					// 系统登录
 | ||
|  | 					this.$store
 | ||
|  | 						.dispatch('Login', {
 | ||
|  | 							type: 34,
 | ||
|  | 							code: res.code,
 | ||
|  | 							state: 'default'
 | ||
|  | 						})
 | ||
|  | 						.then((res) => {
 | ||
|  | 							console.log('store.login', res)
 | ||
|  | 						})
 | ||
|  | 				}
 | ||
|  | 			})
 | ||
|  | 		}
 | ||
|  | 	}
 | ||
|  | }
 | ||
|  | </script>
 | ||
|  | 
 | ||
|  | <style lang="scss" scoped>
 | ||
|  | .container {
 | ||
|  | 	height: 100vh;
 | ||
|  | 	width: 100vw;
 | ||
|  | 	display: flex;
 | ||
|  | 	justify-content: center;
 | ||
|  | 	align-items: center;
 | ||
|  | 	flex-flow: column nowrap;
 | ||
|  | 	gap: 20px;
 | ||
|  | 	background: linear-gradient(180deg, #02815b 0%, #114636 100%);
 | ||
|  | 	.icon {
 | ||
|  | 		width: 40vw;
 | ||
|  | 		filter: drop-shadow(0px 2px 2px rgba(0, 0, 0, 0.12));
 | ||
|  | 	}
 | ||
|  | 	.title {
 | ||
|  | 		color: #fff;
 | ||
|  | 		text-shadow: 0px 2px 2px rgba(0, 0, 0, 0.12);
 | ||
|  | 		font-size: 30px;
 | ||
|  | 		font-weight: 400;
 | ||
|  | 		letter-spacing: 2px;
 | ||
|  | 	}
 | ||
|  | }
 | ||
|  | </style>
 |