<block wx:if='{{_toast}}'>
  <view id='_toast'>
    <view class='{{(_toast.hide?"hide":"")}}' id='_toast_title'>
      <text>{{_toast.title}}</text>
    </view>
  </view>
</block>
<block wx:if='{{_loading}}'>
  <view class=' flex-row flex-x-center flex-y-center' id='_loading'>
    <view class='{{(_loading?"hide":"")}}'>
      <image src='{{__wxapp_img.system.loading2.url}}'></image>
    </view>
  </view>
</block>
<block wx:if='{{user_info_show}}'>
  <view class='new-modal'>
    <view class='new-modal-content'>
      <view class='new-modal-header' style='padding:30rpx 0;line-height:60rpx;border-bottom: 1rpx solid #eee;'>需要您的授权</view>
      <view class='new-modal-body' style='min-height:0;margin-bottom:0;max-height:none'>
        <view style='padding:32rpx 0 0 0;text-align: center'>
          <view>为了提供更好的服务</view>
          <view>请在稍后的提示框中点击“允许”</view>
        </view>
        <block wx:if='{{__platform == "wx"}}'>
          <view style='text-align:center'>
            <image src='/images/icon-login-index.png' style='width:500rpx;height:460rpx;'></image>
          </view>
        </block>
        <view class='flex-x-center'>
          <view>
            <button bindgetuserinfo='getUserInfo' bindtap='myLogin' class='btn new-modal-btn' openType='getUserInfo' style='background-color:#04be01;width:500rpx;height:80rpx;border-radius:80rpx;color:#fff;margin-bottom:40rpx;'>登录授权</button>
          </view>
        </view>
        <view class='flex-x-center'>
          <view>
            <button bindtap='dis' class='btn new-modal-btn' style='background-color:#cecece;width:500rpx;height:80rpx;border-radius:80rpx;color:#fff;margin-bottom:40rpx;'>取消</button>
          </view>
        </view>
      </view>
    </view>
  </view>
</block>
<block wx:if='{{user_bind_show}}'>
  <block wx:if='{{ (!(__user_info.binding) && store.option.phone_auth == 1) }}'>
    <view class='new-modal'>
      <view class='new-modal-content'>
        <view class='new-modal-header' style='padding:30rpx 0;line-height:60rpx;font-size:11pt;border-bottom: 1rpx solid #eee;'>授权获取手机号</view>
        <view class='new-modal-body' style='min-height:0;margin-bottom:0;'>
          <view style='padding:32rpx 0 40rpx 0;text-align: center'>
            <block wx:if='{{__platform == "wx"}}'>
              <image src='{{__wxapp_img.system.wechatapp.url}}' style='width: 88rpx;height: 88rpx;'></image>
            </block>
            <block wx:else>
              <image src='{{__wxapp_img.system.alipay.url}}' style='width: 88rpx;height: 88rpx;'></image>
            </block>
          </view>
          <view style='padding:0 41rpx;'>
            <view class='flex-x-center' style='margin-bottom:40rpx;'>申请获取您微信绑定的手机号</view>
          </view>
          <view class='flex-x-center'>
            <view>
              <button bindgetphonenumber='getPhoneNumber' class='btn new-modal-btn' hoverClass='none' openType='getPhoneNumber' style='background-color:#04be01;width:500rpx;height:80rpx;border-radius:80rpx;color:#fff;margin-bottom:40rpx;'>确认</button>
            </view>
          </view>
        </view>
      </view>
    </view>
  </block>
</block>