<!--pages/login/login.wxml-->
<!-- <import src='/template/button/button.wxml' />
<view class="container">
	标题
	<view class="title">
		登录/注册
	</view>
	手机号
	<view class="cell">
		<input class="input" type="number" placeholder="请输入手机号码" bindinput="checkPhone" name='phone' maxlength="11" placeholder-style="color:#CDCFD3;font-size:30rpx;"></input>
	</view>
	短信验证码
	<view class="cell">
		<input class="input" type="number" placeholder="请输入短信验证码" bindinput="checkcode" name='code' placeholder-style="color:#CDCFD3;font-size:30rpx;"></input>
		<view class="code {{color&&'color'}}" bindtap="getCode">{{code_message || '获取短信验证码'}}</view>
	</view>
	注册协议
	<view class="agreement">
		<text>未注册开心灵工的手机号将自动注册，且代表您已经同意：</text>
		<view>
			<text class="agreement-link" data-url="{{userAgreement}}" catchtap="openWebView">《用户协议》</text>
			与
			<text class="agreement-link" data-url="{{privacyPolicy}}" catchtap="openWebView">《隐私政策》</text>
		</view>
	</view>


	登录
	<template is='button' data='{{text:"登录",func:"submit",background:canLogin?"linear-gradient(135deg, #5568F0 0%, #823BFF 100%)":"linear-gradient(135deg, #ECF0F3 0%, #E4E2E7 100%)",margin:50}}' />
</view> -->

<view class="container safe-area-bottom">
	<view class="container-top">
		<image src="../../assets/img/login_top.png"></image>
	</view>
	<view class="content">
		<view class="logo">
			<image src="../../assets/img/login_logo.png"></image>
		</view>
		<view class="title">
			欢迎使用 开心灵工
		</view>

		<view class="content-main">

			<view class="content-main-input">
				<input type="text" placeholder="请输入手机号码" value="{{formatPhone}}" bindinput="checkPhone" name='phone' maxlength="13"
					placeholder-class="placeholder-class" />
				<text class="code-text {{color&&'color'}}" bindtap="getCode">{{code_message}}</text>
			</view>

			<view class="content-main-input">
				<input type="text" placeholder="请输入手机验证码" bindinput="checkCode" name="code"
					placeholder-class="placeholder-class" />
			</view>

		</view>

		<view class="tips" bindtap="checked">
			<view class="checkbox">
				<view class="checked" hidden="{{!isCheck}}"></view>
			</view>
			<view>登录即表示您已同意<text data-url="{{userAgreement}}" catchtap="openWebView"> 用户协议 </text>和<text
					data-url="{{privacyPolicy}}" catchtap="openWebView"> 隐私政策 </text>
			</view>
		</view>

	</view>

	<view class="bottom">
		<view class="button {{canLogin?'button-login':''}}" bindtap="submit">登录</view>
		<text>仅内部授权用户可登录</text>
	</view>


	<view class="container-bottom">
		<image src="../../assets/img/login_bottom.png"></image>
	</view>
</view>