| | |
| | | val5: '', |
| | | } |
| | | }, |
| | | onLoad(options) { |
| | | onShow() { |
| | | this.initData() |
| | | }, |
| | | onSubmit() { |
| | |
| | | region: e.detail.value |
| | | }) |
| | | }, |
| | | getBindchooseavatar(e) { |
| | | var that = this |
| | | if (e.detail.avatarUrl) { |
| | | wx.uploadFile({ |
| | | url: uploadUrl, |
| | | filePath: e.detail.avatarUrl, |
| | | formData: { |
| | | folder: "member" |
| | | }, |
| | | name: 'file', |
| | | success (res) { |
| | | let data = JSON.parse(res.data) |
| | | that.setData({ |
| | | imgurl: data.data.imgaddr, |
| | | imgurlFull: data.data.url, |
| | | }) |
| | | } |
| | | }) |
| | | } |
| | | }, |
| | | getNickName(e) { |
| | | this.setData({ nikname: e.detail.value }) |
| | | }, |
| | | changeAddr() { |
| | | // console.log('点击了'); |
| | | wx.chooseLocation({ |
| | |
| | | imgurl: data.data.imgaddr, |
| | | imgurlFull: data.data.url, |
| | | }) |
| | | setTimeout(() => { |
| | | console.log('imgurlFull', this.data.imgurlFull); |
| | | }, 1000) |
| | | } |
| | | }) |
| | | } |
| | | }) |
| | | }, |
| | | onReady() { |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * 生命周期函数--监听页面显示 |
| | | */ |
| | | onShow() { |
| | | |
| | | }, |
| | | |