30 lines
1.1 KiB
Plaintext
30 lines
1.1 KiB
Plaintext
|
<!--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>
|