index.wxml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <view class="container">
  2. <view class='logo'>
  3. <image class='logo-img' src='{{logo}}'></image>
  4. </view>
  5. <view class='logo-name'>{{name}}</view>
  6. <view class='intro'>{{desc}}</view>
  7. <view class='login'>请完成登录以继续使用</view>
  8. <button class='btn-login' bindtap='getUserProfile'>
  9. <view class='text'>快捷登录</view>
  10. </button>
  11. <view class="cancel" bindtap="goBack">取消</view>
  12. <view class="modal-dialog" wx:if="{{showModal}}">
  13. <view class="modal-content">
  14. <view class="text">绑定手机号</view>
  15. <view>请先绑定手机号在进行此操作</view>
  16. <button class="getPhone" open-type="getPhoneNumber" bindgetphonenumber="getPhoneNumber">
  17. 手机号快捷登录
  18. </button>
  19. </view>
  20. </view>
  21. </view>
  22. <view class="model" wx:if="{{wxModel}}">
  23. <view class="model_box">
  24. <van-icon name="cross" class="post_flex" size="40rpx" bind:tap="onClose" />
  25. <view class="model_top">
  26. <view class="company_cover">
  27. <van-icon size="50rpx" name="{{logo}}" />
  28. <view class="title">请填写您的微信头像、昵称</view>
  29. </view>
  30. </view>
  31. <view class="desc">99%用户选择使用微信头像和昵称以便为您提供专属服务</view>
  32. <view class="cell">
  33. <view class="label">微信头像</view>
  34. <view class="cont">
  35. <button class="avatar-wrapper" open-type="chooseAvatar" bind:chooseavatar="onChooseAvatar">
  36. <image class="avatar {{avatarUrl ? '' : 'avatar_use'}}" src="{{avatarUrl}}"></image>
  37. </button>
  38. <van-icon name="arrow" style="margin-left:10rpx" />
  39. </view>
  40. </view>
  41. <view class="cell">
  42. <view class="label">微信昵称</view>
  43. <view class="cont">
  44. <input type="nickname" class="weui-input" placeholder="请输入微信昵称" model:value="{{nickname}}" bindfocus="onChangeName" />
  45. <van-icon name="arrow" style="margin-left:10rpx" />
  46. </view>
  47. </view>
  48. <view class="btn" bind:tap="onComplete">确定</view>
  49. </view>
  50. </view>