Files
coloruicss/template/pages/index/index.wxml
Weilanwl bb889509c0 v2.1.2
2019-03-28 23:08:35 +08:00

17 lines
732 B
Plaintext

<cu-custom bgColor="bg-gradual-blue">
<view slot="content">ColorUI 空白模板</view>
</cu-custom>
<view class="margin-xl padding-xl bg-white radius shadow-lg">
<view class="flex justify-center">
<button wx:if="{{!hasUserInfo && canIUse}}" open-type="getUserInfo" bindgetuserinfo="getUserInfo" class='cu-btn round bg-green shadow'> 获取头像昵称 </button>
<block wx:else>
<view class='text-center'>
<view class="cu-avatar xl round solids" style="background-image:url({{userInfo.avatarUrl}})"></view>
<view class="padding">{{userInfo.nickName}}</view>
</view>
</block>
</view>
</view>
<view class="text-center margin-top">
<text class="text-grey text-xl">{{motto}}</text>
</view>