|
@@ -25,9 +25,20 @@ Page({
|
25
|
25
|
|
26
|
26
|
onLoad: function (options) {
|
27
|
27
|
var that = this;
|
28
|
|
-
|
29
|
|
- getApp().showLoading(); //提示加载中
|
30
|
28
|
|
|
29
|
+ app.postRequest('my/images/headurl', {}, function (res) {
|
|
30
|
+ if (res.code == 201) {
|
|
31
|
+ that.myheadurl = res.data.img
|
|
32
|
+ // console.log(res);
|
|
33
|
+ // that.setData({
|
|
34
|
+ // myheadurl: res.data.img,
|
|
35
|
+ // // optioninfocode: res,
|
|
36
|
+ // })
|
|
37
|
+ }
|
|
38
|
+ })
|
|
39
|
+
|
|
40
|
+ getApp().showLoading(); //提示加载中
|
|
41
|
+ that.to_id = options.uid;
|
31
|
42
|
that.setData({
|
32
|
43
|
options_img: options.img //头像
|
33
|
44
|
})
|
|
@@ -237,8 +248,9 @@ console.log(that.data.uploadImages)
|
237
|
248
|
|
238
|
249
|
},
|
239
|
250
|
toChat(e) { //跳转进入聊天页面
|
|
251
|
+ let that = this;
|
240
|
252
|
wx.navigateTo({
|
241
|
|
- url: '../chat/chat?to_id=' + e.currentTarget.dataset.item
|
|
253
|
+ url: '../chat/chat?to_id=' + that.to_id + '&myheadurl=' + that.myheadurl + '&headUrl=' + that.data.options_img
|
242
|
254
|
});
|
243
|
255
|
}
|
244
|
256
|
|