1 |
- <view class="data-v-3bf2d330"><form data-event-opts="{{[['submit',[['formSubmit',['$event']]]]]}}" bindsubmit="__e" class="data-v-3bf2d330"><view class="personal-data data-v-3bf2d330" style="{{(colorStyle)}}"><view class="list data-v-3bf2d330"><view class="item acea-row row-between-wrapper data-v-3bf2d330"><view class="data-v-3bf2d330">头像</view><block wx:if="{{!mp_is_new}}"><view data-event-opts="{{[['tap',[['uploadpic',['$event']]]]]}}" class="avatar-box data-v-3bf2d330" catchtap="__e"><image src="{{userInfo.avatar}}" class="data-v-3bf2d330"></image></view></block><block wx:else><button class="avatar-box data-v-3bf2d330" open-type="chooseAvatar" data-event-opts="{{[['chooseavatar',[['onChooseAvatar',['$event']]]]]}}" bindchooseavatar="__e"><image src="{{userInfo.avatar}}" class="data-v-3bf2d330"></image></button></block></view><view class="item acea-row row-between-wrapper data-v-3bf2d330"><view class="data-v-3bf2d330">昵称</view><view class="input data-v-3bf2d330"><input type="nickname" name="nickname" maxlength="16" value="{{userInfo.nickname}}" class="data-v-3bf2d330"/></view></view><view class="item acea-row row-between-wrapper data-v-3bf2d330"><view class="data-v-3bf2d330">手机号码</view><block wx:if="{{!userInfo.phone}}"><navigator class="input data-v-3bf2d330" url="/pages/users/user_phone/index" hover-class="none">点击绑定手机号<text class="iconfont icon-xiangyou data-v-3bf2d330"></text></navigator></block><block wx:else><view class="input acea-row row-between-wrapper data-v-3bf2d330"><input class="id data-v-3bf2d330" type="text" disabled="true" name="phone" value="{{userInfo.phone}}"/><text class="iconfont icon-suozi data-v-3bf2d330"></text></view></block></view><view class="item acea-row row-between-wrapper data-v-3bf2d330"><view class="data-v-3bf2d330">ID号</view><view class="input acea-row row-between-wrapper data-v-3bf2d330"><input class="id data-v-3bf2d330" type="text" disabled="true" value="{{userInfo.uid}}"/><text class="iconfont icon-suozi data-v-3bf2d330"></text></view></view><block wx:for="{{userInfo.register_extend_info}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="item acea-row row-between-wrapper data-v-3bf2d330"><view class="acea-row row-middle data-v-3bf2d330">{{item.info}}<block wx:if="{{item.required==1}}"><text class="asterisk iconfont icon-xinghao data-v-3bf2d330"></text></block></view><block wx:if="{{item.format=='text'}}"><view class="input data-v-3bf2d330"><input type="text" placeholder="{{item.tip}}" placeholder-class="placeholder" data-event-opts="{{[['input',[['__set_model',['$0','value','$event',[]],[[['userInfo.register_extend_info','',index]]]]]]]}}" value="{{item.value}}" bindinput="__e" class="data-v-3bf2d330"/></view></block><block wx:if="{{item.format=='num'}}"><view class="input data-v-3bf2d330"><input type="number" placeholder="{{item.tip}}" placeholder-class="placeholder" data-event-opts="{{[['input',[['__set_model',['$0','value','$event',[]],[[['userInfo.register_extend_info','',index]]]]]]]}}" value="{{item.value}}" bindinput="__e" class="data-v-3bf2d330"/></view></block><block wx:if="{{item.format=='mail'}}"><view class="input data-v-3bf2d330"><input type="text" placeholder="{{item.tip}}" placeholder-class="placeholder" data-event-opts="{{[['input',[['__set_model',['$0','value','$event',[]],[[['userInfo.register_extend_info','',index]]]]]]]}}" value="{{item.value}}" bindinput="__e" class="data-v-3bf2d330"/></view></block><block wx:if="{{item.format=='date'}}"><view class="input acea-row row-middle row-right data-v-3bf2d330"><picker mode="date" value="{{item.value}}" data-event-opts="{{[['change',[['bindDateChange',['$event',index]]]]]}}" bindchange="__e" class="data-v-3bf2d330"><view class="acea-row row-right dater data-v-3bf2d330"><block wx:if="{{!item.value||item.value==''}}"><view class="grab data-v-3bf2d330">{{item.tip}}</view></block><block wx:else><view class="data-v-3bf2d330">{{item.value}}</view></block></view></picker><text class="iconfont icon-xiangyou data-v-3bf2d330"></text></view></block><block wx:if="{{item.format=='id'}}"><view class="input data-v-3bf2d330"><input type="idcard" placeholder="{{item.tip}}" placeholder-class="placeholder" data-event-opts="{{[['input',[['__set_model',['$0','value','$event',[]],[[['userInfo.register_extend_info','',index]]]]]]]}}" value="{{item.value}}" bindinput="__e" class="data-v-3bf2d330"/></view></block><block wx:if="{{item.format=='phone'}}"><view class="input data-v-3bf2d330"><input type="tel" placeholder="{{item.tip}}" placeholder-class="placeholder" data-event-opts="{{[['input',[['__set_model',['$0','value','$event',[]],[[['userInfo.register_extend_info','',index]]]]]]]}}" value="{{item.value}}" bindinput="__e" class="data-v-3bf2d330"/></view></block><block wx:if="{{item.format=='radio'}}"><view class="input data-v-3bf2d330"><radio-group data-event-opts="{{[['change',[['radioChange',['$event',index]]]]]}}" bindchange="__e" class="data-v-3bf2d330"><block wx:for="{{item.singlearr}}" wx:for-item="j" wx:for-index="jindex" wx:key="jindex"><label class="label data-v-3bf2d330"><radio value="{{jindex}}" checked="{{item.value==jindex}}" class="data-v-3bf2d330"></radio>{{''+j+''}}</label></block></radio-group></view></block><block wx:if="{{item.format=='address'}}"><view data-event-opts="{{[['tap',[['addressList',['$event']]]]]}}" class="input acea-row row-middle row-right data-v-3bf2d330" bindtap="__e"><input type="text" placeholder="{{item.tip}}" placeholder-class="placeholder" data-event-opts="{{[['input',[['__set_model',['$0','value','$event',[]],[[['userInfo.register_extend_info','',index]]]]]]]}}" value="{{item.value}}" bindinput="__e" class="data-v-3bf2d330"/></view></block></view></block></view><button class="modifyBnt bg-color data-v-3bf2d330" formType="submit">保存修改</button></view></form><block wx:if="{{canvasStatus}}"><canvas style="{{'width:'+(canvasWidth+'px')+';'+('height:'+(canvasHeight+'px')+';')+('position:'+('absolute')+';')+('left:'+('-100000px')+';')+('top:'+('-100000px')+';')}}" canvas-id="canvas" class="data-v-3bf2d330"></canvas></block></view>
|