
<import src="/templates/global/global"/>
<template is="toast" data="{{...toastData}}"></template>
<view class="container" style="background: url('https://www.nongshen.net/static/wechat/container_bg.jpg') center center  no-repeat; background-size: 100% 100%;">    
    
    <view style="position: absolute;left:2.5%;top:{{isIPX?'57px':'32px'}};display: flex;align-items: center;background-color:rgba(127,191,105,0.8);padding: 5px 10px;border-radius: 50px;" bindtap="goRegion">
      <image src="/image/icon/loc2.png" style="width: 13px;height: 15px;"></image>
      <text style="color:#fff;font-size: 14px;line-height: 15px;margin-left: 5px;">{{nowDress == '' ? '暂未选择':nowDress}}</text>
    </view>
    <view class="header" style="text-align: center;" >
        <!-- <view class="principal">农村事项审批与记账</view>
         <view class="instructions">报账简单，操作便捷</view> -->
         <image src="/image/login/login_text.png" style="width: 80%;margin: 0 auto;" mode="widthFix"></image>
    </view>
    <view class="quick-login" style="bottom:{{isIPhoneX?'6vh':'4vh'}}">
        <button wx:if="{{showPhoneBtn}}" class="key-login" type='primary' open-type='getPhoneNumber' bindgetphonenumber="getPhoneNumber">一键快捷登录</button>
        <button wx:if="{{!showPhoneBtn}}" class="key-login" type='primary' bind:tap="goIndex">一键登录</button>
        <!-- <button class="key-login" type='primary' bindtap="goPhoneLogin">账号密码登录</button > -->
        <view class="authorization" style="margin-top:{{isIPhoneX?'2vh':'2vh'}}">
            <checkbox-group bindchange="checkboxChange">
                <label>
                    <checkbox value="privacy" checked="{{privacyCheck}}" class="changeSize" />
                </label>
                <text bindtap="openDialog">我已阅读并同意<text style="color: rgb(255, 97, 97);">【服务须知】</text></text>
            </checkbox-group>
        </view>
        <text style="display: block;text-align: center;color: #fff;margin-top: 3vh;" bindtap="goPhoneLogin">北京农燊高科信息技术有限公司</text>
    </view>
</view>

<van-dialog
  use-slot
  title="服务须知"
  show="{{ showDialog }}"
  bind:close="onClose"
  confirmButtonText="同意"
  data-type="1"
  bind:confirm="agree"
  before-close="{{beforeClose }}"
  closeOnClickOverlay="{{ true }}"
  showCancelButton="{{true}}"
>
  <scroll-view scroll-y="true" style="height: 300px;padding: 0 15px;margin-top: 15px;" bindscrolltoupper="upper" bindscrolltolower="lower" bindscroll="scroll">
    <text>关于”农燊云e三资+“的小程序服务（以下简称“本服务”）的说明：</text>
    <text>1.本服务是已线下签约客户的内部办公移动端工具，不统一对外开放！</text>
    <text>2.本服务不设用户注册功能，不采集用户信息！</text>
    <text>3.”微信一键登录“是通过该微信手机号验证系统后台用户中心是否存在此用户，存在则授权登录令牌！</text>
  </scroll-view>
    
</van-dialog>