作者 niufei

11

... ... @@ -169,12 +169,7 @@ Page({
politics: politicsarr[e.detail.value]
})
},
// bindtypeChange(e) {
// let typearr = this.data.typearr;
// this.setData({
// type: parseInt(e.detail.value) +1
// })
// },
//选择省市区
getarea() {
... ... @@ -210,6 +205,8 @@ Page({
})
},
//切换省份获取市和区/县
get_city(province_id = 0) {
let that = this;
... ... @@ -661,7 +658,7 @@ Page({
onLoad: function(options) {
let that = this;
that.setData({
is_submit: options.is_submit,
is_submit: options.is_submit ? options.is_submit:null,
id: options.id,
page_type: options.type ? options.type : null
})
... ...
<view class='avator_box' wx:if="{{!page_type}}">
<view class='upimg' bindtap='{{ifempower?"uploadImages":""}}' data-tem='1'>
<view class='upimg' bindtap='uploadImages' data-tem='1'>
<image src='{{photo}}' wx:if='{{photo}}' mode="aspectFill"></image>
<view class='iconfont icon-xiangji' wx:if='{{!photo}}'></view>
</view>
... ...
... ... @@ -2,9 +2,6 @@
<image src='https://volunteer.cnpu.org/imgs/gerenzhongxin_bg@2x.png'></image>
<view class='my_headitem'>
<view class='my_headitemimg'>
<!-- <view class="avator">
<open-data type="userAvatarUrl" class="avator" />
</view> -->
<image src="{{datalist.avatar?datalist.avatar:'/imgs/icon_59.png'}}"></image>
</view>
<view class='word'>{{datalist.user_nickname}}</view>
... ...