Skip to content

Commit 3b417cb

Browse files
committed
Update templates/login.wxml
1 parent 97ebff8 commit 3b417cb

1 file changed

Lines changed: 19 additions & 17 deletions

File tree

templates/login.wxml

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,24 @@
11
<!--templates/login.wxml-->
22

33
<template name="login">
4-
<block wx:if="{{userInfo == null || userInfo == ''}}">
5-
<button class="login-btn" open-type="getUserInfo" bindgetuserinfo="agreeGetUser">
6-
<view class="login-inner">
7-
<!--<image class="avatar" src="../../images/gravatar.png"></image>-->
8-
<view class="username">
9-
<text>请点击登录</text>
10-
</view>
11-
</view>
12-
</button>
13-
</block>
14-
<block wx:else>
15-
<view class="login-inner">
16-
<image class="avatar" src="{{userInfo.avatarUrl}}"></image>
17-
<view class="username">
18-
<text>{{userInfo.nickName}}</text>
19-
</view>
4+
<block wx:if="{{userInfo == null || userInfo == ''}}">
5+
<button class="login-btn" open-type="getUserInfo" bindgetuserinfo="agreeGetUser">
6+
<view class="login-inner">
7+
<!--<image class="avatar" src="../../images/gravatar.png"></image>-->
8+
<view class="username">
9+
<vpush-view>
10+
<text>请点击登录</text>
11+
</vpush-view>
2012
</view>
21-
</block>
13+
</view>
14+
</button>
15+
</block>
16+
<block wx:else>
17+
<view class="login-inner">
18+
<image class="avatar" src="{{userInfo.avatarUrl}}"></image>
19+
<view class="username">
20+
<text>{{userInfo.nickName}}</text>
21+
</view>
22+
</view>
23+
</block>
2224
</template>

0 commit comments

Comments
 (0)