mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2024-11-27 09:41:58 +08:00
30 lines
1.1 KiB
Plaintext
Executable File
30 lines
1.1 KiB
Plaintext
Executable File
<!--index.wxml-->
|
|
<view class="container">
|
|
<view class="userinfo">
|
|
<block wx:if="{{canIUseOpenData}}">
|
|
|
|
|
|
</block>
|
|
<block wx:elif="{{!hasUserInfo}}">
|
|
<button wx:if="{{canIUseGetUserProfile}}" bindtap="getUserProfile"> 获取头像昵称 </button>
|
|
<button wx:elif="{{canIUse}}" open-type="getUserInfo" bindgetuserinfo="getUserInfo"> 获取头像昵称 </button>
|
|
<view wx:else> 请使用1.4.4及以上版本基础库 </view>
|
|
</block>
|
|
<block wx:else>
|
|
<image bindtap="bindViewTap" class="userinfo-avatar" src="{{userInfo.avatarUrl}}" mode="cover"></image>
|
|
<text class="userinfo-nickname">{{userInfo.nickName}}</text>
|
|
</block>
|
|
</view>
|
|
<view class="usermotto">
|
|
|
|
</view>
|
|
|
|
|
|
|
|
<text style="position: relative; left: 1rpx; top: -476rpx">授权登录测试1024</text>
|
|
|
|
<button style="position: relative; left: 0rpx; top: -361rpx" type="primary" id="login-button" bindtap="wxLogin">点击授权登录</button>
|
|
|
|
<text style="position: relative; left: 1rpx; top: -272rpx" id="login-user-id">{{holderText}}</text>
|
|
</view>
|