<template>
	<view class="login">
		<view class="logo">
			<image src="../../static/logo.png" mode=""></image>
			<view class="title">
				大德通
			</view>
		</view>
		<u-form :model="form" ref="uForm" label-width="160" class="form">
			<u-form-item>
				<u-input v-model="form.phone" placeholder="请输入手机号" />
				<view class="phoneHome">
				</view>
			</u-form-item>
			<u-form-item>
				<u-input v-model="form.password" placeholder="请输入密码" />
			</u-form-item>
		</u-form>
		<button type="default" @click="setTabBar">设置</button>
		<u-tabbar v-if="show" v-model="vuex_current" :activeColor="vuex_activeColor" :list="vuex_tabBar"></u-tabbar>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				form: {
					phone: '',
					password: ''
				},
				show: true,
				list: [{
					value: '1',
					label: '江'
				}, ]
			}
		},
		onLoad() {

		},
		methods: {
			setTabBar(e) {
				this.$u.vuex('vuex_tabBar[1].count', 99)
				console.log(this.$store.state)
			}
		}
	}
</script>

<style lang="scss">
	.login {
		padding: 0 40rpx;

		.logo {
			display: flex;
			align-items: center;
			margin-top: 80rpx;

			uni-image {
				width: 96rpx;
				height: 96rpx;
				margin-right: 24rpx;
			}

			.title {
				font-size: 48rpx;
			}
		}

		.form {
			margin: 0 auto;
			margin-top: 82rpx;
			width: 654rpx;
			height: 96rpx;
		}
	}
</style>
