<!--pages/login/index.wxml-->
<view>
  <view class="flex flex-center flex-col">
    <view class="bg"></view>
    <view style="width: 80%;" >
      <t-button theme="primary" wx:if="{{checked === false}}" bind:tap="read" block shape="round">一键登录</t-button>
      <t-button theme="primary" wx:else open-type="getPhoneNumber" bindgetphonenumber="getPhoneNumber" block shape="round">一键登录</t-button>
    </view>
  </view>

  <view class="flex flex-center  bottom" >
    <view class="flex flex-center " bind:tap="change">
      <t-icon name="{{checked ? 'check-circle-filled':'check-circle'}}" class="{{checked ?'primary':'grey' }}" size="18"></t-icon>
      <view slot="label" class="font-12 grey ml-5" >
        我已经阅读并同意 <p class="primary" bind:tap="goPrivate">《植趣用户协议》</p>
      </view>
    </view>
  </view>
</view>