btnAuth.wxml 857 B

12345678910111213141516171819
  1. <!--index.wxml-->
  2. <view class="page">
  3. <view class="hd">
  4. <image class="logo" src="/static/images/logo.png"></image>
  5. <view class="title">安徽微同科技有限公司欢迎您!</view>
  6. </view>
  7. <view class="bd">
  8. <view class="top_line"></view>
  9. <text class="m_name">安徽微同科技有限公司申请获得以下权限</text>
  10. <text class="s_name">· 获得你的公开信息(昵称、头像等)</text>
  11. </view>
  12. <view class="btn spacing">
  13. <!-- 需要使用 button 来授权登录 -->
  14. <button wx:if="{{canIUseGetUserProfile}}" bindtap="getUserProfile" class="weui_btn weui_btn_primary">授权登录</button>
  15. <button wx:else open-type="getUserInfo" class="weui_btn weui_btn_primary"
  16. bindgetuserinfo="bindGetUserInfo">授权登录</button>
  17. <!-- <view wx:else>请升级微信版本</view> -->
  18. </view>
  19. </view>