1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- <!--index.wxml-->
- <view class="container">
- <view class="userinfo ">
- <button wx:if="{{!hasUserInfo && canIUse}}" open-type="getUserInfo" bindgetuserinfo="getUserInfo"> 点击获取头像昵称 </button>
- <block wx:else>
- <view class="zan-form">
- <view class="zan-cell zan-form__item">
- <image bindtap="bindViewTap" class="userinfo-avatar" src="{{userInfo.avatarUrl}}" background-size="cover"></image>
- <text class="register">注 册</text>
- </view>
- </view>
- </block>
- </view>
- <form bindsubmit='formSubmit'>
- <view class="zan-form">
- <view class="zan-cell zan-form__item">
- <text class="zan-form__title">组织机构</text>
- <input name="zz" class="zan-form__input zan-cell__bd" bindtap='open' disabled='true' placeholder="选择" value="{{province}}-{{city}}-{{county}}" focus="{{focus}}" bindfocus="open" />
- </view>
- <view class="zan-cell zan-form__item">
- <text class="zan-form__title">选择队伍</text>
- <view class="zan-form__input zan-cell__bd">
- <picker name="dw" mode="selector" range="{{ area }}" value="{{ areaIndex }}" bindchange="onAreaChange">
- {{ area[areaIndex]}}
- </picker>
- </view>
- </view>
- <view class="zan-cell zan-form__item">
- <text class="zan-form__title">姓名</text>
- <input name="name" class="zan-form__input zan-cell__bd" placeholder="名字" />
- </view>
- <view class="zan-cell zan-form__item">
- <text class="zan-form__title">联系电话</text>
- <input name="phone" class="zan-form__input zan-cell__bd" type="number" maxlength="20" placeholder="手机号码" />
- </view>
- <view class="zan-cell zan-form__item">
- <text class="zan-form__title">选择专业</text>
- <view class="zan-form__input zan-cell__bd">
- <picker name="zy" mode="selector" range="{{ profession }}" value="{{ professionIndex }}" bindchange="onproChange">
- {{ profession[professionIndex] }}
- </picker>
- </view>
- </view>
- <view class="zan-cell zan-form__item">
- <text class="zan-form__title">邀请码</text>
- <input name="yqm" class="zan-form__input zan-cell__bd" maxlength="20" placeholder="请输入邀请码" />
- </view>
- <view class="zan-cell zan-form__item zan-cell--last-child">
- <text class="zan-form__title"> 是否队长</text>
- <input disabled='true' type="number" maxlength="20" placeholder="" />
- <switch name="dz" class="zan-form__input zan-cell__bd" bindchange="switch2Change" />
- </view>
- </view>
- <view class="weui-btn-area">
-
- <button class="weui-btn" form-type='submit' type="primary">注册</button>
- </view>
- </form>
- </view>
-
- <!--end-->
- <view wx:if="{{condition}}" class="citypicker">
- <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">
- <view class="cityheader">
- <view bindtap="open" class="city-cancel">取消</view>
- <view bindtap="open" class="city-true">确定</view>
- </view>
- <picker-view-column>
- <view wx:for="{{provinces}}" wx:key="item" style="line-height: 50px;padding-left:10px;">{{item}}</view>
- </picker-view-column>
- <picker-view-column>
- <view wx:for="{{citys}}" wx:key="item" style="line-height: 50px;padding-left:10px;">{{item}}</view>
- </picker-view-column>
- <picker-view-column>
- <view wx:for="{{countys}}" wx:key="item" style="line-height: 50px;padding-left:10px;">{{item}}</view>
- </picker-view-column>
- </picker-view>
- </view>
|