Initial commit
This commit is contained in:
20
wechat-mini-program/pages/login/login.wxml
Normal file
20
wechat-mini-program/pages/login/login.wxml
Normal file
@@ -0,0 +1,20 @@
|
||||
<view class="container">
|
||||
<view class="header">
|
||||
<!-- Use a generic icon if specific one not found, or use text -->
|
||||
<image class="logo" src="/assets/logo.png" mode="aspectFit"></image>
|
||||
<view class="title">正在登录</view>
|
||||
</view>
|
||||
|
||||
<view class="content">
|
||||
<view class="tips">为了提供更好的服务,请授权以下信息</view>
|
||||
|
||||
<block wx:if="{{!hasUserInfo}}">
|
||||
<button class="btn-login" bindtap="getUserProfile">获取微信昵称</button>
|
||||
</block>
|
||||
|
||||
<block wx:if="{{hasUserInfo && !hasPhone}}">
|
||||
<button class="btn-login" open-type="getPhoneNumber" bindgetphonenumber="getPhoneNumber">获取手机号码</button>
|
||||
</block>
|
||||
|
||||
</view>
|
||||
</view>
|
||||
Reference in New Issue
Block a user