|
@@ -3,25 +3,18 @@ Page({
|
3
|
3
|
|
4
|
4
|
data: {
|
5
|
5
|
information: '',
|
6
|
|
-
|
7
|
6
|
optioninfo: '',
|
8
|
|
-
|
9
|
7
|
adopticon: '',
|
10
|
|
-
|
11
|
8
|
geifabulous:'',
|
12
|
|
-
|
13
|
9
|
Fabulous:'',
|
14
|
|
-
|
15
|
10
|
optionsuid: '',
|
16
|
|
-
|
17
|
11
|
collection: '',
|
18
|
|
-
|
19
|
12
|
options_img: '',
|
20
|
|
-
|
21
|
13
|
uploadImages:[],
|
22
|
14
|
albumimg:'',
|
23
|
15
|
albumimgurl: '',
|
24
|
16
|
watermark: '',
|
|
17
|
+ to_id:'',
|
25
|
18
|
},
|
26
|
19
|
|
27
|
20
|
|
|
@@ -44,7 +37,8 @@ Page({
|
44
|
37
|
|
45
|
38
|
that.to_id = options.uid;
|
46
|
39
|
that.setData({
|
47
|
|
- options_img: options.img
|
|
40
|
+ options_img: options.img,
|
|
41
|
+ to_id: options.uid
|
48
|
42
|
})
|
49
|
43
|
|
50
|
44
|
|
|
@@ -256,13 +250,20 @@ console.log(that.data.uploadImages)
|
256
|
250
|
toChat(e) {
|
257
|
251
|
let that = this;
|
258
|
252
|
|
259
|
|
- app.postRequest('circle/dialogue/validate', {}, function (res) {
|
260
|
|
- console.log(res);
|
|
253
|
+ app.postRequest('circle/dialogue/validate', {to_id:that.data.to_id}, function (res) {
|
|
254
|
+
|
|
255
|
+
|
|
256
|
+
|
261
|
257
|
if (res.code == 201) {
|
|
258
|
+
|
262
|
259
|
wx.navigateTo({
|
263
|
|
- url: '../chat/chat?to_id=' + that.to_id + '&myheadurl=' + that.myheadurl + '&headUrl=' + that.data.options_img
|
|
260
|
+ url: '../information/chat/chat?to_id=' + that.data.to_id + '&headUrl=' + that.data.options_img + '&myheadurl=' + res.data.myHeadImg
|
264
|
261
|
});
|
265
|
|
- return ;
|
|
262
|
+
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
|
|
266
|
+
|
266
|
267
|
}
|
267
|
268
|
|
268
|
269
|
if (res.data.location == 'shiming') {
|