| @@ -19,27 +19,10 @@ | |||||
| </radio> | </radio> | ||||
| </radio-group> | </radio-group> | ||||
| </view> | </view> | ||||
| <view class="section"> | |||||
| <text>职业</text> | |||||
| <picker bindchange="bindPickerChange" data-occupation='{{array[index]}}' value="{{index}}" range="{{array}}"> | |||||
| <view class="picker"> | |||||
| {{array[index]}} | |||||
| </view> | |||||
| </picker> | |||||
| </view> | |||||
| <view class="section"> | |||||
| <text>生活半径</text> | |||||
| <picker bindchange="bindPickerChange1" data-life='{{array1[index1]}}' value="{{index1}}" range="{{array1}}"> | |||||
| <view class="picker"> | |||||
| {{array1[index1]}} | |||||
| </view> | |||||
| </picker> | |||||
| </view> | |||||
| <view class='section' bindtap='address'> | <view class='section' bindtap='address'> | ||||
| <text>地址</text> | |||||
| <text>住址</text> | |||||
| <input wx:if="{{name}}" type="text" placeholder='{{name}}' disabled/> | <input wx:if="{{name}}" type="text" placeholder='{{name}}' disabled/> | ||||
| <input wx:if="{{!name}}" type="text" placeholder='请输入地址' disabled/> | <input wx:if="{{!name}}" type="text" placeholder='请输入地址' disabled/> | ||||
| </view> | </view> | ||||
| <button class='btn' formType="submit" hover-class='active'>修改会员资料</button> | <button class='btn' formType="submit" hover-class='active'>修改会员资料</button> | ||||
| </form> | </form> | ||||
| @@ -24,6 +24,7 @@ input { | |||||
| .section__title, .picker, picker { | .section__title, .picker, picker { | ||||
| display: inline-block; | display: inline-block; | ||||
| font-size: 32rpx; | font-size: 32rpx; | ||||
| color: #999; | |||||
| } | } | ||||
| radio { | radio { | ||||
| @@ -11,7 +11,8 @@ Page({ | |||||
| score:'0', | score:'0', | ||||
| name:"", | name:"", | ||||
| birthdate:"", | birthdate:"", | ||||
| sex:"" | |||||
| sex:"", | |||||
| showEdit:false | |||||
| }, | }, | ||||
| /** | /** | ||||
| * 跳转到成长值的页面 | * 跳转到成长值的页面 | ||||
| @@ -103,7 +104,12 @@ Page({ | |||||
| url: config.api.getScore, | url: config.api.getScore, | ||||
| data: {} | data: {} | ||||
| }).then(res=>{ | }).then(res=>{ | ||||
| console.log(res); | |||||
| console.log(res); | |||||
| if (res.data.address && res.data.name && res.data.sex && res.data.birthdate){ | |||||
| that.setData({ | |||||
| showEdit:true | |||||
| }) | |||||
| } | |||||
| that.setData({ | that.setData({ | ||||
| score: res.data.score, | score: res.data.score, | ||||
| levelName: res.data.levelName | levelName: res.data.levelName | ||||
| @@ -8,14 +8,16 @@ | |||||
| </view> | </view> | ||||
| <view class="user-phone" bindtap='gotograde'> | <view class="user-phone" bindtap='gotograde'> | ||||
| <open-data type="userNickName"></open-data> | <open-data type="userNickName"></open-data> | ||||
| <text class='chengzhang'>{{levelName}}</text> | |||||
| <text class='chengzhang'>{{levelName}}</text> | |||||
| <view class="view">成长值{{score}} | <view class="view">成长值{{score}} | ||||
| <image src='./../../assets/img/redirect.png' mode='widthFix'></image> | <image src='./../../assets/img/redirect.png' mode='widthFix'></image> | ||||
| </view> | |||||
| </view> | |||||
| </view> | </view> | ||||
| <view class='chengzhang1' bindtap='gotoedit'> | <view class='chengzhang1' bindtap='gotoedit'> | ||||
| <text style="color:#01bffe;">编辑</text> | |||||
| <image class='activeimg' src='./../../assets/img/active.gif' mode='widthFix'></image> | |||||
| <view wx:if="{{showEdit}}" class='clearfix'> | |||||
| <image class='fr' class='edit' src="./../../assets/img/edit.png" mode='widthFix'></image><text style="color:#01bffe;display:inline-block;margin-left:16rpx;">编辑</text> | |||||
| </view> | |||||
| <image class='fr' wx:if="{{!showEdit}}" class='activeimg' src='./../../assets/img/active.gif' mode='widthFix'></image> | |||||
| </view> | </view> | ||||
| </view> | </view> | ||||
| <view class="user-btns"> | <view class="user-btns"> | ||||
| @@ -238,4 +238,8 @@ | |||||
| bottom: 0; | bottom: 0; | ||||
| right: 0; | right: 0; | ||||
| z-index: 10000; | z-index: 10000; | ||||
| } | |||||
| .edit{ | |||||
| width: 26rpx; | |||||
| vertical-align: middle; | |||||
| } | } | ||||