作者 niufei

11

@@ -169,12 +169,7 @@ Page({ @@ -169,12 +169,7 @@ Page({
169 politics: politicsarr[e.detail.value] 169 politics: politicsarr[e.detail.value]
170 }) 170 })
171 }, 171 },
172 - // bindtypeChange(e) {  
173 - // let typearr = this.data.typearr;  
174 - // this.setData({  
175 - // type: parseInt(e.detail.value) +1  
176 - // })  
177 - // }, 172 +
178 173
179 //选择省市区 174 //选择省市区
180 getarea() { 175 getarea() {
@@ -210,6 +205,8 @@ Page({ @@ -210,6 +205,8 @@ Page({
210 205
211 }) 206 })
212 }, 207 },
  208 +
  209 +
213 //切换省份获取市和区/县 210 //切换省份获取市和区/县
214 get_city(province_id = 0) { 211 get_city(province_id = 0) {
215 let that = this; 212 let that = this;
@@ -661,7 +658,7 @@ Page({ @@ -661,7 +658,7 @@ Page({
661 onLoad: function(options) { 658 onLoad: function(options) {
662 let that = this; 659 let that = this;
663 that.setData({ 660 that.setData({
664 - is_submit: options.is_submit, 661 + is_submit: options.is_submit ? options.is_submit:null,
665 id: options.id, 662 id: options.id,
666 page_type: options.type ? options.type : null 663 page_type: options.type ? options.type : null
667 }) 664 })
1 <view class='avator_box' wx:if="{{!page_type}}"> 1 <view class='avator_box' wx:if="{{!page_type}}">
2 - <view class='upimg' bindtap='{{ifempower?"uploadImages":""}}' data-tem='1'> 2 + <view class='upimg' bindtap='uploadImages' data-tem='1'>
3 <image src='{{photo}}' wx:if='{{photo}}' mode="aspectFill"></image> 3 <image src='{{photo}}' wx:if='{{photo}}' mode="aspectFill"></image>
4 <view class='iconfont icon-xiangji' wx:if='{{!photo}}'></view> 4 <view class='iconfont icon-xiangji' wx:if='{{!photo}}'></view>
5 </view> 5 </view>
@@ -2,9 +2,6 @@ @@ -2,9 +2,6 @@
2 <image src='https://volunteer.cnpu.org/imgs/gerenzhongxin_bg@2x.png'></image> 2 <image src='https://volunteer.cnpu.org/imgs/gerenzhongxin_bg@2x.png'></image>
3 <view class='my_headitem'> 3 <view class='my_headitem'>
4 <view class='my_headitemimg'> 4 <view class='my_headitemimg'>
5 - <!-- <view class="avator">  
6 - <open-data type="userAvatarUrl" class="avator" />  
7 - </view> -->  
8 <image src="{{datalist.avatar?datalist.avatar:'/imgs/icon_59.png'}}"></image> 5 <image src="{{datalist.avatar?datalist.avatar:'/imgs/icon_59.png'}}"></image>
9 </view> 6 </view>
10 <view class='word'>{{datalist.user_nickname}}</view> 7 <view class='word'>{{datalist.user_nickname}}</view>