liukangdong
2024-07-30 d5592767654f4fc59b572bab54de1d9202d994ea
wechat_jiaxuan/pages/userinfo/index.js
@@ -69,7 +69,6 @@
    })
    editMember({
      ...addr,
      imgurl: imgurl || '',
      name: name || '',
      nickname: nickname || '',
      phone: phone || '',
@@ -78,6 +77,7 @@
      longitude: longitude || '',
      district: district || '',
      housearea: housearea || '',
      imgurl: imgurl || null,
      housetype: houseType.val1 + '-' + houseType.val2 + '-' + houseType.val3 + '-' + houseType.val4 + '-' + houseType.val5
    }).then(res => {
      wx.setStorageSync('member', res.data)
@@ -142,15 +142,10 @@
      areaName: names[2],
    }
    this.setData({ addr })
  },
  bindRegionChange(e) {
    console.log('picker发送选择改变,携带值为', e.detail.value)
    const temp = e.detail.value
    this.setData({
      region: e.detail.value
    })
    console.log('addr', this.data.addr);
  },
  getBindchooseavatar(e) {
    console.log('e', e);
    var that = this
    if (e.detail.avatarUrl) {
      wx.uploadFile({
@@ -166,6 +161,7 @@
            imgurl: data.data.imgaddr,
            imgurlFull: data.data.url,
          })
          console.log('imgurlFull', this.data);
        }
      })
    }
@@ -183,7 +179,7 @@
    })
  },
  getNickName(e) {
    this.setData({ nikname: e.detail.value })
    this.setData({ nickname: e.detail.value })
  },
  changeAddr() {
    // console.log('点击了');