b.wxml 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <view class="container">
  2. <!-- 用户名密码登录 -->
  3. <view >
  4. <input class="input" bindinput="inputUsername" placeholder="请输入用户名" />
  5. <input class="input" bindinput="inputPassword" placeholder="请输入密码" type="password" />
  6. <button class="gologin" bindtap="login">登录</button>
  7. <text class="error">{{errorMessage}}</text>
  8. </view>
  9. <view class="container">
  10. <button bindtap="gologin">微信登录</button>
  11. </view>
  12. <!-- 登录弹窗 -->
  13. <view class="pop_root" hidden="{{isHidden}}">
  14. <view class="pop_content">
  15. <view class="pot_tip">授权登录弹窗</view>
  16. <!-- 获取头像 -->
  17. <button class="pop_avatar" open-type="chooseAvatar" bindchooseavatar="getAvatar">
  18. <image class="pop_img" wx:if="{{avatarUrl}}" src="{{avatarUrl}}" />
  19. <view wx:else>获取头像</view>
  20. </button>
  21. <!-- 获取昵称 -->
  22. <input
  23. class="pop_name"
  24. type="nickname"
  25. bindblur="getName"
  26. placeholder="获取昵称"/>
  27. <view class="pop_bot">
  28. <view class="btn" bind:tap="potNo">取消</view>
  29. <view class="btn1" bind:tap="popYes">确定</view>
  30. </view>
  31. </view>
  32. </view>
  33. </view>