auth.wxml 701 B

123456789
  1. <!--pages/auth/auth.wxml-->
  2. <view class="auth">
  3. <!-- <image src="https://res.wx.qq.com/wxopenres/htmledition/images/favicon32f740.ico" class="img" mode="aspectFill"></image> -->
  4. <image src="./images/logo.jpg" class="img" mode="aspectFill"></image>
  5. <view class="title">微信授权页面</view>
  6. <view class="describe">此页面是微信授权页面,点击下方按钮弹出授权或跳转页面</view>
  7. <button class="btn" open-type='getUserInfo' wx:if="{{canIUse}}" bindgetuserinfo='onAuth'>点击微信授权</button>
  8. <navigator wx:if="{{!canIUse}}" class="btn" url="/pages/auth/auth" open-type="reLaunch" hover-class="other-navigator-hover">已经授权点击调转</navigator>
  9. </view>