index.wxml 3.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. <!--index.wxml-->
  2. <view class="container">
  3. <view class="userinfo ">
  4. <button wx:if="{{!hasUserInfo && canIUse}}" open-type="getUserInfo" bindgetuserinfo="getUserInfo"> 点击获取头像昵称 </button>
  5. <block wx:else>
  6. <view class="zan-form">
  7. <view class="zan-cell zan-form__item">
  8. <image bindtap="bindViewTap" class="userinfo-avatar" src="{{userInfo.avatarUrl}}" background-size="cover"></image>
  9. <text class="register">注 册</text>
  10. </view>
  11. </view>
  12. </block>
  13. </view>
  14. <form bindsubmit='formSubmit'>
  15. <view class="zan-form">
  16. <view class="zan-cell zan-form__item">
  17. <text class="zan-form__title">组织机构</text>
  18. <input name="zz" class="zan-form__input zan-cell__bd" bindtap='open' disabled='true' placeholder="选择" value="{{province}}-{{city}}-{{county}}" focus="{{focus}}" bindfocus="open" />
  19. </view>
  20. <view class="zan-cell zan-form__item">
  21. <text class="zan-form__title">选择队伍</text>
  22. <view class="zan-form__input zan-cell__bd">
  23. <picker name="dw" mode="selector" range="{{ area }}" value="{{ areaIndex }}" bindchange="onAreaChange">
  24. {{ area[areaIndex]}}
  25. </picker>
  26. </view>
  27. </view>
  28. <view class="zan-cell zan-form__item">
  29. <text class="zan-form__title">姓名</text>
  30. <input name="name" class="zan-form__input zan-cell__bd" placeholder="名字" />
  31. </view>
  32. <view class="zan-cell zan-form__item">
  33. <text class="zan-form__title">联系电话</text>
  34. <input name="phone" class="zan-form__input zan-cell__bd" type="number" maxlength="20" placeholder="手机号码" />
  35. </view>
  36. <view class="zan-cell zan-form__item">
  37. <text class="zan-form__title">选择专业</text>
  38. <view class="zan-form__input zan-cell__bd">
  39. <picker name="zy" mode="selector" range="{{ profession }}" value="{{ professionIndex }}" bindchange="onproChange">
  40. {{ profession[professionIndex] }}
  41. </picker>
  42. </view>
  43. </view>
  44. <view class="zan-cell zan-form__item">
  45. <text class="zan-form__title">邀请码</text>
  46. <input name="yqm" class="zan-form__input zan-cell__bd" maxlength="20" placeholder="请输入邀请码" />
  47. </view>
  48. <view class="zan-cell zan-form__item zan-cell--last-child">
  49. <text class="zan-form__title"> 是否队长</text>
  50. <input disabled='true' type="number" maxlength="20" placeholder="" />
  51. <switch name="dz" class="zan-form__input zan-cell__bd" bindchange="switch2Change" />
  52. </view>
  53. </view>
  54. <view class="weui-btn-area">
  55. <button class="weui-btn" form-type='submit' type="primary">注册</button>
  56. </view>
  57. </form>
  58. </view>
  59. <!--end-->
  60. <view wx:if="{{condition}}" class="citypicker">
  61. <picker-view indicator-style="height: 50px;" style="width: 100%; height: 300px;background-color: white;opacity:1;z-index:999;" value="{{value}}" bindchange="bindChange" class="citybody">
  62. <view class="cityheader">
  63. <view bindtap="open" class="city-cancel">取消</view>
  64. <view bindtap="open" class="city-true">确定</view>
  65. </view>
  66. <picker-view-column>
  67. <view wx:for="{{provinces}}" wx:key="item" style="line-height: 50px;padding-left:10px;">{{item}}</view>
  68. </picker-view-column>
  69. <picker-view-column>
  70. <view wx:for="{{citys}}" wx:key="item" style="line-height: 50px;padding-left:10px;">{{item}}</view>
  71. </picker-view-column>
  72. <picker-view-column>
  73. <view wx:for="{{countys}}" wx:key="item" style="line-height: 50px;padding-left:10px;">{{item}}</view>
  74. </picker-view-column>
  75. </picker-view>
  76. </view>