southnote-mini-sdk 1.0.21 → 1.0.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app.js +1 -22
- package/assets/file/badwords.js +1 -63008
- package/assets/file/rules.js +1 -38
- package/components/bottomSheet/bottomSheet.js +1 -473
- package/components/experience-item/experience-item.js +1 -105
- package/components/grid-item/grid-item.js +1 -8
- package/components/post-item/post-item.js +1 -1086
- package/components/wiki-renderer/wiki-renderer.js +1 -636
- package/components/wiki-tabs/wiki-tabs.js +1 -52
- package/index.js +1 -49
- package/package.json +2 -22
- package/pages/addGame/addGame.js +1 -454
- package/pages/addSubject/addSubject.js +1 -199
- package/pages/commonLogin/commonLogin.js +1 -269
- package/pages/copyOfficial/copyOfficial.js +1 -25
- package/pages/demo/demo.js +1 -23
- package/pages/game/game.js +1 -1305
- package/pages/home/home.js +1 -665
- package/pages/lottery-winners/lottery-winners.js +1 -60
- package/pages/message/messageCommentsAndAt/messageCommentsAndAt.js +1 -178
- package/pages/message/messageEntire/messageEntire.js +1 -112
- package/pages/message/messageLikeAndCollect/messageLikeAndCollect.js +1 -147
- package/pages/message/messageNewFans/messageNewFans.js +1 -139
- package/pages/officialWebview/officialWebview.js +1 -13
- package/pages/post/post.js +1 -1856
- package/pages/post-editor/post-editor.js +1 -465
- package/pages/postDialog/postDialog.js +1 -560
- package/pages/report-category/report-category.js +1 -29
- package/pages/report-form/report-form.js +1 -65
- package/pages/sevenDaySignDetail/sevenDaySignDetail.js +1 -273
- package/pages/topic/topic.js +1 -266
- package/pages/user/user.js +1 -939
- package/pages/userDatum/userDatum.js +1 -24
- package/pages/userGameLib/userGameLib.js +1 -105
- package/pages/webview/webview.js +1 -25
- package/pages/wheelActivivty/wheelActivivty.js +1 -492
- package/pages/wiki/wiki.js +1 -138
- package/request/JKRequest.js +1 -177
- package/services/home.js +1 -603
- package/utils/auth.js +1 -17
- package/utils/base64.js +1 -67
- package/utils/compressImage.js +1 -41
- package/utils/exp.js +1 -49
- package/utils/formatPost.js +1 -18
- package/utils/parseContent.js +1 -191
- package/utils/query-select.js +1 -9
- package/utils/sensitive.js +1 -82
package/pages/user/user.js
CHANGED
|
@@ -1,939 +1 @@
|
|
|
1
|
-
import {
|
|
2
|
-
queryUserInfo,
|
|
3
|
-
queryUserPosts,
|
|
4
|
-
queryUserComments,
|
|
5
|
-
queryUsercollections,
|
|
6
|
-
followUser,
|
|
7
|
-
|
|
8
|
-
deleteContent,
|
|
9
|
-
collectPost,
|
|
10
|
-
setUserPostTop
|
|
11
|
-
} from "../../services/home";
|
|
12
|
-
import formatUTC from "../../utils/formatPost";
|
|
13
|
-
|
|
14
|
-
Page({
|
|
15
|
-
data: {
|
|
16
|
-
userId: 0,
|
|
17
|
-
userDetail: {},
|
|
18
|
-
active: 0, // 顶级 tab
|
|
19
|
-
subActive: 0, // 子 tab
|
|
20
|
-
navBarHeight: 0,
|
|
21
|
-
|
|
22
|
-
subTabs: [{
|
|
23
|
-
title: "全部",
|
|
24
|
-
filter: 1
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
title: "热门",
|
|
28
|
-
filter: 2
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
title: "原创",
|
|
32
|
-
filter: 3
|
|
33
|
-
}
|
|
34
|
-
],
|
|
35
|
-
|
|
36
|
-
posts: {
|
|
37
|
-
1: [],
|
|
38
|
-
2: [],
|
|
39
|
-
3: []
|
|
40
|
-
},
|
|
41
|
-
page: {
|
|
42
|
-
1: 1,
|
|
43
|
-
2: 1,
|
|
44
|
-
3: 1
|
|
45
|
-
},
|
|
46
|
-
hasMore: {
|
|
47
|
-
1: true,
|
|
48
|
-
2: true,
|
|
49
|
-
3: true
|
|
50
|
-
},
|
|
51
|
-
loading: {
|
|
52
|
-
1: false,
|
|
53
|
-
2: false,
|
|
54
|
-
3: false
|
|
55
|
-
},
|
|
56
|
-
|
|
57
|
-
comments: [],
|
|
58
|
-
commentsPage: 1,
|
|
59
|
-
commentsHasMore: true,
|
|
60
|
-
commentsLoading: false,
|
|
61
|
-
|
|
62
|
-
collections: [],
|
|
63
|
-
collectionsPage: 1,
|
|
64
|
-
collectionsHasMore: true,
|
|
65
|
-
collectionsLoading: false,
|
|
66
|
-
|
|
67
|
-
moreSheetVisible: false,
|
|
68
|
-
moreSheetItem: {},
|
|
69
|
-
isOwner: false, //当前cell是否是自己
|
|
70
|
-
|
|
71
|
-
currentPlayingVideoId: null, //当前播放视频帖子id
|
|
72
|
-
|
|
73
|
-
},
|
|
74
|
-
onShareAppMessage() {
|
|
75
|
-
const {
|
|
76
|
-
userId,
|
|
77
|
-
userDetail
|
|
78
|
-
} = this.data;
|
|
79
|
-
|
|
80
|
-
return {
|
|
81
|
-
title: userDetail?.nickname || '查看用户主页',
|
|
82
|
-
path: `../user/user?id=${userId}` // 携带用户ID
|
|
83
|
-
};
|
|
84
|
-
},
|
|
85
|
-
|
|
86
|
-
onPreviewAvatar(e) {
|
|
87
|
-
const url = e.currentTarget.dataset.url;
|
|
88
|
-
if (!url) return;
|
|
89
|
-
|
|
90
|
-
wx.previewImage({
|
|
91
|
-
current: url, // 当前预览的图片
|
|
92
|
-
urls: [url] // 图片列表
|
|
93
|
-
});
|
|
94
|
-
},
|
|
95
|
-
|
|
96
|
-
onLoad(options) {
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
const userId = options.id;
|
|
100
|
-
const sys = wx.getWindowInfo();
|
|
101
|
-
this.setData({
|
|
102
|
-
userId,
|
|
103
|
-
navBarHeight: sys.statusBarHeight + 44
|
|
104
|
-
});
|
|
105
|
-
|
|
106
|
-
this.queryUserInfo(userId);
|
|
107
|
-
this.queryUserPosts(1); // 默认加载 “全部”
|
|
108
|
-
|
|
109
|
-
const currentUserId = wx.getStorageSync('appuid'); // 当前登录用户id
|
|
110
|
-
const isOwner = userId === currentUserId;
|
|
111
|
-
this.setData({
|
|
112
|
-
isOwner
|
|
113
|
-
})
|
|
114
|
-
|
|
115
|
-
},
|
|
116
|
-
|
|
117
|
-
async queryUserInfo(userId) {
|
|
118
|
-
try {
|
|
119
|
-
const res = await queryUserInfo(userId);
|
|
120
|
-
if (res?.code === 0) {
|
|
121
|
-
this.setData({
|
|
122
|
-
userDetail: res.data
|
|
123
|
-
});
|
|
124
|
-
|
|
125
|
-
wx.setNavigationBarTitle({
|
|
126
|
-
title: res.data.user?.nickname || '主页'
|
|
127
|
-
})
|
|
128
|
-
}
|
|
129
|
-
} catch (err) {
|
|
130
|
-
console.error(err);
|
|
131
|
-
}
|
|
132
|
-
},
|
|
133
|
-
|
|
134
|
-
// --- 帖子 ---
|
|
135
|
-
async queryUserPosts(filter, append = true) {
|
|
136
|
-
if (this.data.loading[filter] || !this.data.hasMore[filter]) return;
|
|
137
|
-
|
|
138
|
-
const {
|
|
139
|
-
userId,
|
|
140
|
-
page,
|
|
141
|
-
posts
|
|
142
|
-
} = this.data;
|
|
143
|
-
const nextPage = append ? (page[filter] || 1) : 1;
|
|
144
|
-
|
|
145
|
-
this.setData({
|
|
146
|
-
[`loading.${filter}`]: true
|
|
147
|
-
});
|
|
148
|
-
|
|
149
|
-
try {
|
|
150
|
-
const res = await queryUserPosts(userId, nextPage, filter);
|
|
151
|
-
if (!Array.isArray(res.data.posts)) res.data.posts = [];
|
|
152
|
-
|
|
153
|
-
if (res?.code === 0) {
|
|
154
|
-
const list = res.data.posts.map(item => {
|
|
155
|
-
const p = item.post || {};
|
|
156
|
-
const shared = item.shared;
|
|
157
|
-
return {
|
|
158
|
-
user: res.data.user,
|
|
159
|
-
...item,
|
|
160
|
-
post: {
|
|
161
|
-
...p,
|
|
162
|
-
imageArray: p.images ? p.images.split(",") : [],
|
|
163
|
-
formatTime: formatUTC(p.created_at)
|
|
164
|
-
},
|
|
165
|
-
shared: shared?.post ? {
|
|
166
|
-
...shared,
|
|
167
|
-
post: {
|
|
168
|
-
...shared.post,
|
|
169
|
-
imageArray: shared.post.images ? shared.post.images.split(",") : [],
|
|
170
|
-
formatTime: formatUTC(shared.post.created_at)
|
|
171
|
-
}
|
|
172
|
-
} : shared
|
|
173
|
-
};
|
|
174
|
-
});
|
|
175
|
-
|
|
176
|
-
const got = list.length > 0;
|
|
177
|
-
|
|
178
|
-
if (append) {
|
|
179
|
-
// ✅ 只追加新数据,保持旧数据不变
|
|
180
|
-
const currentLength = posts[filter]?.length || 0;
|
|
181
|
-
const update = {};
|
|
182
|
-
list.forEach((item, idx) => {
|
|
183
|
-
update[`posts.${filter}[${currentLength + idx}]`] = item;
|
|
184
|
-
});
|
|
185
|
-
|
|
186
|
-
this.setData({
|
|
187
|
-
...update,
|
|
188
|
-
[`page.${filter}`]: got ? nextPage + 1 : nextPage,
|
|
189
|
-
[`hasMore.${filter}`]: got
|
|
190
|
-
});
|
|
191
|
-
} else {
|
|
192
|
-
// 首次加载直接覆盖
|
|
193
|
-
this.setData({
|
|
194
|
-
[`posts.${filter}`]: list,
|
|
195
|
-
[`page.${filter}`]: got ? nextPage + 1 : nextPage,
|
|
196
|
-
[`hasMore.${filter}`]: got
|
|
197
|
-
});
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
} else {
|
|
201
|
-
this.setData({
|
|
202
|
-
[`hasMore.${filter}`]: false
|
|
203
|
-
});
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
} catch (err) {
|
|
207
|
-
console.error("queryUserPosts error", err);
|
|
208
|
-
} finally {
|
|
209
|
-
this.setData({
|
|
210
|
-
[`loading.${filter}`]: false
|
|
211
|
-
});
|
|
212
|
-
}
|
|
213
|
-
},
|
|
214
|
-
|
|
215
|
-
// --- 点评 ---
|
|
216
|
-
async queryUserComments() {
|
|
217
|
-
if (this.data.commentsLoading || !this.data.commentsHasMore) return;
|
|
218
|
-
const {
|
|
219
|
-
userId,
|
|
220
|
-
commentsPage
|
|
221
|
-
} = this.data;
|
|
222
|
-
|
|
223
|
-
this.setData({
|
|
224
|
-
commentsLoading: true
|
|
225
|
-
});
|
|
226
|
-
try {
|
|
227
|
-
const res = await queryUserComments(userId, commentsPage);
|
|
228
|
-
if (!Array.isArray(res.data.posts)) {
|
|
229
|
-
res.data.posts = []
|
|
230
|
-
}
|
|
231
|
-
if (res?.code === 0) {
|
|
232
|
-
const list = res.data.posts.map(item => {
|
|
233
|
-
const p = item.comment || {};
|
|
234
|
-
const shared = item.shared || {};
|
|
235
|
-
return {
|
|
236
|
-
user: res.data.user,
|
|
237
|
-
...item,
|
|
238
|
-
post: {
|
|
239
|
-
...p,
|
|
240
|
-
imageArray: p.images ? p.images.split(",") : [],
|
|
241
|
-
formatTime: formatUTC(p.created_at)
|
|
242
|
-
},
|
|
243
|
-
shared: shared.post ? {
|
|
244
|
-
...shared,
|
|
245
|
-
post: {
|
|
246
|
-
...shared.post,
|
|
247
|
-
imageArray: shared.post.images ?
|
|
248
|
-
shared.post.images.split(",") : [],
|
|
249
|
-
formatTime: formatUTC(shared.post.created_at)
|
|
250
|
-
}
|
|
251
|
-
} : null
|
|
252
|
-
};
|
|
253
|
-
});
|
|
254
|
-
|
|
255
|
-
const got = list.length > 0;
|
|
256
|
-
this.setData({
|
|
257
|
-
comments: [...this.data.comments, ...list],
|
|
258
|
-
commentsPage: got ? commentsPage + 1 : commentsPage,
|
|
259
|
-
commentsHasMore: got
|
|
260
|
-
});
|
|
261
|
-
} else {
|
|
262
|
-
this.setData({
|
|
263
|
-
commentsHasMore: false
|
|
264
|
-
});
|
|
265
|
-
}
|
|
266
|
-
} catch (err) {
|
|
267
|
-
console.error(err);
|
|
268
|
-
} finally {
|
|
269
|
-
this.setData({
|
|
270
|
-
commentsLoading: false
|
|
271
|
-
});
|
|
272
|
-
}
|
|
273
|
-
},
|
|
274
|
-
|
|
275
|
-
// --- 收藏 ---
|
|
276
|
-
async queryUserCollections() {
|
|
277
|
-
if (this.data.collectionsLoading || !this.data.collectionsHasMore) return;
|
|
278
|
-
const {
|
|
279
|
-
userId,
|
|
280
|
-
collectionsPage
|
|
281
|
-
} = this.data;
|
|
282
|
-
|
|
283
|
-
this.setData({
|
|
284
|
-
collectionsLoading: true
|
|
285
|
-
});
|
|
286
|
-
try {
|
|
287
|
-
const res = await queryUsercollections(userId, collectionsPage);
|
|
288
|
-
if (res?.code === 0 && Array.isArray(res.data)) {
|
|
289
|
-
const list = res.data.map(item => {
|
|
290
|
-
const p = item.post || {};
|
|
291
|
-
return {
|
|
292
|
-
...item,
|
|
293
|
-
post: {
|
|
294
|
-
...p,
|
|
295
|
-
imageArray: p.images ? p.images.split(",") : [],
|
|
296
|
-
formatTime: formatUTC(p.created_at)
|
|
297
|
-
}
|
|
298
|
-
};
|
|
299
|
-
});
|
|
300
|
-
|
|
301
|
-
const got = list.length > 0;
|
|
302
|
-
this.setData({
|
|
303
|
-
collections: [...this.data.collections, ...list],
|
|
304
|
-
collectionsPage: got ? collectionsPage + 1 : collectionsPage,
|
|
305
|
-
collectionsHasMore: got
|
|
306
|
-
});
|
|
307
|
-
} else {
|
|
308
|
-
this.setData({
|
|
309
|
-
collectionsHasMore: false
|
|
310
|
-
});
|
|
311
|
-
}
|
|
312
|
-
} catch (err) {
|
|
313
|
-
console.error(err);
|
|
314
|
-
} finally {
|
|
315
|
-
this.setData({
|
|
316
|
-
collectionsLoading: false
|
|
317
|
-
});
|
|
318
|
-
}
|
|
319
|
-
},
|
|
320
|
-
|
|
321
|
-
onSubChange(e) {
|
|
322
|
-
const index = e.detail.index;
|
|
323
|
-
const filter = this.data.subTabs[index].filter;
|
|
324
|
-
this.setData({
|
|
325
|
-
subActive: index
|
|
326
|
-
});
|
|
327
|
-
|
|
328
|
-
if (this.data.posts[filter].length === 0) {
|
|
329
|
-
this.queryUserPosts(filter);
|
|
330
|
-
}
|
|
331
|
-
},
|
|
332
|
-
|
|
333
|
-
onChange(e) {
|
|
334
|
-
const index = e.detail.index;
|
|
335
|
-
this.setData({
|
|
336
|
-
active: index
|
|
337
|
-
});
|
|
338
|
-
|
|
339
|
-
if (index === 0) {
|
|
340
|
-
const filter = this.data.subTabs[this.data.subActive].filter;
|
|
341
|
-
if (this.data.posts[filter].length === 0) {
|
|
342
|
-
this.queryUserPosts(filter);
|
|
343
|
-
}
|
|
344
|
-
} else if (index === 1 && this.data.comments.length === 0) {
|
|
345
|
-
this.queryUserComments();
|
|
346
|
-
} else if (index === 2 && this.data.collections.length === 0) {
|
|
347
|
-
this.queryUserCollections();
|
|
348
|
-
}
|
|
349
|
-
},
|
|
350
|
-
|
|
351
|
-
loadMore(e) {
|
|
352
|
-
const filter = Number(e.currentTarget.dataset.filter);
|
|
353
|
-
this.queryUserPosts(filter);
|
|
354
|
-
},
|
|
355
|
-
|
|
356
|
-
onReachBottom() {
|
|
357
|
-
const {
|
|
358
|
-
active,
|
|
359
|
-
subActive,
|
|
360
|
-
subTabs
|
|
361
|
-
} = this.data;
|
|
362
|
-
|
|
363
|
-
if (active === 0) {
|
|
364
|
-
const filter = subTabs[subActive].filter;
|
|
365
|
-
this.queryUserPosts(filter, true);
|
|
366
|
-
} else if (active === 1) {
|
|
367
|
-
this.queryUserComments();
|
|
368
|
-
} else if (active === 2) {
|
|
369
|
-
this.queryUserCollections();
|
|
370
|
-
}
|
|
371
|
-
},
|
|
372
|
-
|
|
373
|
-
gotoUserDatum(e) {
|
|
374
|
-
const user = this.data.userDetail.user
|
|
375
|
-
this.onPauseAllVideo()
|
|
376
|
-
wx.navigateTo({
|
|
377
|
-
url: '../userDatum/userDatum?user=' + encodeURIComponent(JSON.stringify(user))
|
|
378
|
-
})
|
|
379
|
-
},
|
|
380
|
-
|
|
381
|
-
gotoUserGameLib(e) {
|
|
382
|
-
const user = this.data.userDetail.user
|
|
383
|
-
this.onPauseAllVideo()
|
|
384
|
-
wx.navigateTo({
|
|
385
|
-
url: '../userGameLib/userGameLib?user_id=' + user.id
|
|
386
|
-
})
|
|
387
|
-
},
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
gotoGameCenter(e) {
|
|
391
|
-
const id = e.currentTarget.dataset.id;
|
|
392
|
-
this.onPauseAllVideo()
|
|
393
|
-
wx.navigateTo({
|
|
394
|
-
url: `../game/game?id=${id}`
|
|
395
|
-
});
|
|
396
|
-
},
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
onFollowTap(e) {
|
|
400
|
-
const user = e.currentTarget.dataset.user;
|
|
401
|
-
const userId = user.id;
|
|
402
|
-
const isFans = user.is_fans ?? 0;
|
|
403
|
-
const nType = isFans === 1 ? 2 : 1; // 1关注,2取消关注
|
|
404
|
-
|
|
405
|
-
followUser(userId, nType).then(res => {
|
|
406
|
-
if (res.code === 0) {
|
|
407
|
-
// 更新当前页面 userDetail
|
|
408
|
-
this.setData({
|
|
409
|
-
'userDetail.user.is_fans': isFans === 1 ? 0 : 1
|
|
410
|
-
});
|
|
411
|
-
|
|
412
|
-
const pages = getCurrentPages();
|
|
413
|
-
|
|
414
|
-
pages.forEach(page => {
|
|
415
|
-
// 首页:更新 posts 中对应用户的 is_fans
|
|
416
|
-
if (page.route === 'pages/home/home') {
|
|
417
|
-
|
|
418
|
-
const posts = page.data.posts.map(p => {
|
|
419
|
-
if (p.user.id === user.id) {
|
|
420
|
-
p.user.is_fans = isFans === 1 ? 0 : 1; // 修改关注状态
|
|
421
|
-
}
|
|
422
|
-
return p;
|
|
423
|
-
});
|
|
424
|
-
page.setData({
|
|
425
|
-
posts
|
|
426
|
-
});
|
|
427
|
-
}
|
|
428
|
-
|
|
429
|
-
// 用户详情页:更新 userDetail
|
|
430
|
-
|
|
431
|
-
if (page.route === 'pages/user/user') {
|
|
432
|
-
|
|
433
|
-
if (page.data.userDetail?.user?.id === user.id) {
|
|
434
|
-
page.setData({
|
|
435
|
-
'userDetail.user.is_fans': isFans === 1 ? 0 : 1
|
|
436
|
-
});
|
|
437
|
-
}
|
|
438
|
-
}
|
|
439
|
-
|
|
440
|
-
// 帖子详情页:更新 item.user.is_fans
|
|
441
|
-
if (page.route === 'pages/post/post') {
|
|
442
|
-
|
|
443
|
-
if (page.data.item?.user?.id === user.id) {
|
|
444
|
-
page.setData({
|
|
445
|
-
'item.user.is_fans': isFans === 1 ? 0 : 1
|
|
446
|
-
});
|
|
447
|
-
}
|
|
448
|
-
}
|
|
449
|
-
});
|
|
450
|
-
|
|
451
|
-
wx.showToast({
|
|
452
|
-
title: nType === 1 ? '关注成功' : '已取消关注',
|
|
453
|
-
icon: 'success'
|
|
454
|
-
});
|
|
455
|
-
} else {
|
|
456
|
-
wx.showToast({
|
|
457
|
-
title: res.message || '操作失败',
|
|
458
|
-
icon: 'none'
|
|
459
|
-
});
|
|
460
|
-
}
|
|
461
|
-
}).catch((err) => {
|
|
462
|
-
wx.showToast({
|
|
463
|
-
title: err,
|
|
464
|
-
icon: 'none'
|
|
465
|
-
});
|
|
466
|
-
});
|
|
467
|
-
},
|
|
468
|
-
|
|
469
|
-
// 底部弹窗
|
|
470
|
-
|
|
471
|
-
onMoreTap(e) {
|
|
472
|
-
const index = e.currentTarget.dataset.index; // 当前帖子在列表中的索引
|
|
473
|
-
|
|
474
|
-
const item = e.detail.item;
|
|
475
|
-
const currentUserId = wx.getStorageSync('appuid'); // 当前登录用户id
|
|
476
|
-
const isOwner = item.user.id === currentUserId;
|
|
477
|
-
this.setData({
|
|
478
|
-
isOwner,
|
|
479
|
-
moreSheetVisible: true,
|
|
480
|
-
moreSheetItem: item,
|
|
481
|
-
currentPostIndex: index
|
|
482
|
-
|
|
483
|
-
});
|
|
484
|
-
},
|
|
485
|
-
|
|
486
|
-
onPinTap() {
|
|
487
|
-
const post = this.data.moreSheetItem.post;
|
|
488
|
-
const type = this.data.isPinned ? 2 : 1; // 1置顶,2取消置顶
|
|
489
|
-
|
|
490
|
-
wx.showLoading({
|
|
491
|
-
title: '处理中...'
|
|
492
|
-
});
|
|
493
|
-
setUserPostTop(post.id, type).then(res => {
|
|
494
|
-
wx.hideLoading();
|
|
495
|
-
if (res.code === 0) {
|
|
496
|
-
wx.showToast({
|
|
497
|
-
title: type === 1 ? '置顶成功' : '取消置顶成功',
|
|
498
|
-
icon: 'success'
|
|
499
|
-
});
|
|
500
|
-
|
|
501
|
-
// 更新当前组件状态
|
|
502
|
-
this.setData({
|
|
503
|
-
'item.post.is_user_top': type === 1 ? 1 : 0,
|
|
504
|
-
isPinned: type === 1 ? 1 : 0
|
|
505
|
-
});
|
|
506
|
-
|
|
507
|
-
this.onCloseMoreSheet();
|
|
508
|
-
|
|
509
|
-
// 如果置顶,则需要移动帖子到列表第一位,取消其他帖子置顶,并滚动到顶部
|
|
510
|
-
if (type === 1) {
|
|
511
|
-
const pages = getCurrentPages();
|
|
512
|
-
const currentPage = pages[pages.length - 1];
|
|
513
|
-
|
|
514
|
-
if (currentPage.route === 'pages/user/user') {
|
|
515
|
-
let postsData = currentPage.data.posts;
|
|
516
|
-
|
|
517
|
-
if (Array.isArray(postsData)) {
|
|
518
|
-
// 先取消其他帖子置顶
|
|
519
|
-
postsData = postsData.map(p => {
|
|
520
|
-
if (p.post.id !== post.id && p.post.is_user_top === 1) {
|
|
521
|
-
p.post.is_user_top = 0;
|
|
522
|
-
}
|
|
523
|
-
return p;
|
|
524
|
-
});
|
|
525
|
-
|
|
526
|
-
// 找到当前帖子在数组中的索引
|
|
527
|
-
const currentIndex = postsData.findIndex(p => p.post.id === post.id);
|
|
528
|
-
if (currentIndex > -1) {
|
|
529
|
-
const [pinnedPost] = postsData.splice(currentIndex, 1);
|
|
530
|
-
pinnedPost.post.is_user_top = 1
|
|
531
|
-
// 插入到数组第一个位置
|
|
532
|
-
postsData.unshift(pinnedPost);
|
|
533
|
-
}
|
|
534
|
-
|
|
535
|
-
currentPage.setData({
|
|
536
|
-
posts: postsData
|
|
537
|
-
});
|
|
538
|
-
|
|
539
|
-
// 页面滚动到顶部
|
|
540
|
-
wx.pageScrollTo({
|
|
541
|
-
scrollTop: 0,
|
|
542
|
-
duration: 300
|
|
543
|
-
});
|
|
544
|
-
} else if (postsData && typeof postsData === 'object') {
|
|
545
|
-
const newPostsObj = {};
|
|
546
|
-
Object.keys(postsData).forEach(key => {
|
|
547
|
-
if (Array.isArray(postsData[key])) {
|
|
548
|
-
// 取消其他帖子置顶
|
|
549
|
-
let arr = postsData[key].map(p => {
|
|
550
|
-
if (p.post.id !== post.id && p.post.is_user_top === 1) {
|
|
551
|
-
p.post.is_user_top = 0;
|
|
552
|
-
}
|
|
553
|
-
return p;
|
|
554
|
-
});
|
|
555
|
-
|
|
556
|
-
// 将当前帖子移动到第一个
|
|
557
|
-
const currentIndex = arr.findIndex(p => p.post.id === post.id);
|
|
558
|
-
if (currentIndex > -1) {
|
|
559
|
-
const [pinnedPost] = arr.splice(currentIndex, 1);
|
|
560
|
-
pinnedPost.post.is_user_top = 1
|
|
561
|
-
arr.unshift(pinnedPost);
|
|
562
|
-
}
|
|
563
|
-
|
|
564
|
-
newPostsObj[key] = arr;
|
|
565
|
-
} else {
|
|
566
|
-
newPostsObj[key] = postsData[key];
|
|
567
|
-
}
|
|
568
|
-
});
|
|
569
|
-
|
|
570
|
-
currentPage.setData({
|
|
571
|
-
posts: newPostsObj
|
|
572
|
-
});
|
|
573
|
-
|
|
574
|
-
wx.pageScrollTo({
|
|
575
|
-
scrollTop: 0,
|
|
576
|
-
duration: 300
|
|
577
|
-
});
|
|
578
|
-
}
|
|
579
|
-
}
|
|
580
|
-
}
|
|
581
|
-
} else {
|
|
582
|
-
wx.showToast({
|
|
583
|
-
title: res.msg || '操作失败',
|
|
584
|
-
icon: 'error'
|
|
585
|
-
});
|
|
586
|
-
}
|
|
587
|
-
});
|
|
588
|
-
},
|
|
589
|
-
// 关闭弹窗
|
|
590
|
-
onCloseMoreSheet() {
|
|
591
|
-
this.setData({
|
|
592
|
-
moreSheetVisible: false
|
|
593
|
-
});
|
|
594
|
-
},
|
|
595
|
-
|
|
596
|
-
// 弹窗选项点击
|
|
597
|
-
onDelete() {
|
|
598
|
-
const postId = this.data.moreSheetItem.post.id;
|
|
599
|
-
deleteContent(postId).then(res => {
|
|
600
|
-
if (res.code === 0) {
|
|
601
|
-
wx.showToast({
|
|
602
|
-
title: '删除成功',
|
|
603
|
-
icon: 'success'
|
|
604
|
-
});
|
|
605
|
-
|
|
606
|
-
// 删除父页面列表里的帖子(兼容数组和对象)
|
|
607
|
-
const pages = getCurrentPages();
|
|
608
|
-
const currentPage = pages[pages.length - 1]; // 当前页
|
|
609
|
-
|
|
610
|
-
const postsData = currentPage.data.posts;
|
|
611
|
-
if (Array.isArray(postsData)) {
|
|
612
|
-
// posts 是数组
|
|
613
|
-
currentPage.setData({
|
|
614
|
-
posts: postsData.filter(p => p.post.id !== postId)
|
|
615
|
-
});
|
|
616
|
-
} else if (postsData && typeof postsData === 'object') {
|
|
617
|
-
// posts 是对象,每个 value 都可能是帖子数组
|
|
618
|
-
const newPosts = {};
|
|
619
|
-
Object.keys(postsData).forEach(key => {
|
|
620
|
-
if (Array.isArray(postsData[key])) {
|
|
621
|
-
newPosts[key] = postsData[key].filter(p => p.post.id !== postId);
|
|
622
|
-
} else {
|
|
623
|
-
newPosts[key] = postsData[key]; // 保留原值
|
|
624
|
-
}
|
|
625
|
-
});
|
|
626
|
-
currentPage.setData({
|
|
627
|
-
posts: newPosts
|
|
628
|
-
});
|
|
629
|
-
}
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
this.triggerEvent('deletePost', {
|
|
633
|
-
post: this.data.moreSheetItem.post
|
|
634
|
-
});
|
|
635
|
-
this.onCloseMoreSheet();
|
|
636
|
-
} else {
|
|
637
|
-
wx.showToast({
|
|
638
|
-
title: res.msg || '删除失败',
|
|
639
|
-
icon: 'error'
|
|
640
|
-
});
|
|
641
|
-
}
|
|
642
|
-
});
|
|
643
|
-
},
|
|
644
|
-
|
|
645
|
-
// 举报帖子
|
|
646
|
-
onReport() {
|
|
647
|
-
this.onPauseAllVideo()
|
|
648
|
-
wx.navigateTo({
|
|
649
|
-
url: `../report-category/report-category?postId=${this.data.moreSheetItem.post.id}`,
|
|
650
|
-
})
|
|
651
|
-
|
|
652
|
-
this.triggerEvent('reportPost', {
|
|
653
|
-
post: this.data.moreSheetItem.post
|
|
654
|
-
});
|
|
655
|
-
this.onCloseMoreSheet();
|
|
656
|
-
},
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
// 收藏/取消收藏
|
|
660
|
-
async onFavorite() {
|
|
661
|
-
const post = this.data.moreSheetItem.post;
|
|
662
|
-
const nType = post.is_collect === 1 ? 2 : 1;
|
|
663
|
-
|
|
664
|
-
wx.showLoading({
|
|
665
|
-
title: nType === 1 ? '收藏中...' : '取消中...'
|
|
666
|
-
});
|
|
667
|
-
|
|
668
|
-
try {
|
|
669
|
-
const res = await collectPost(post.id, nType);
|
|
670
|
-
wx.hideLoading();
|
|
671
|
-
|
|
672
|
-
if (res.code === 0) {
|
|
673
|
-
wx.showToast({
|
|
674
|
-
title: nType === 1 ? '已收藏' : '取消收藏',
|
|
675
|
-
icon: 'success'
|
|
676
|
-
});
|
|
677
|
-
|
|
678
|
-
// 更新弹窗
|
|
679
|
-
this.setData({
|
|
680
|
-
'moreSheetItem.post.is_collect': nType === 1 ? 1 : 0
|
|
681
|
-
});
|
|
682
|
-
|
|
683
|
-
// 同步更新 posts 列表
|
|
684
|
-
const {
|
|
685
|
-
posts
|
|
686
|
-
} = this.data;
|
|
687
|
-
if (Array.isArray(posts)) {
|
|
688
|
-
const newPosts = posts.map(p => p.post.id === post.id ? {
|
|
689
|
-
...p,
|
|
690
|
-
post: {
|
|
691
|
-
...p.post,
|
|
692
|
-
is_collect: nType === 1 ? 1 : 0
|
|
693
|
-
}
|
|
694
|
-
} : p);
|
|
695
|
-
this.setData({
|
|
696
|
-
posts: newPosts
|
|
697
|
-
});
|
|
698
|
-
} else if (posts && typeof posts === 'object') {
|
|
699
|
-
const newPosts = {};
|
|
700
|
-
Object.keys(posts).forEach(key => {
|
|
701
|
-
newPosts[key] = posts[key].map(p => p.post.id === post.id ? {
|
|
702
|
-
...p,
|
|
703
|
-
post: {
|
|
704
|
-
...p.post,
|
|
705
|
-
is_collect: nType === 1 ? 1 : 0
|
|
706
|
-
}
|
|
707
|
-
} : p);
|
|
708
|
-
});
|
|
709
|
-
this.setData({
|
|
710
|
-
posts: newPosts
|
|
711
|
-
});
|
|
712
|
-
}
|
|
713
|
-
|
|
714
|
-
// 可选:同步其他页面(首页 / 帖子详情页)
|
|
715
|
-
const pages = getCurrentPages();
|
|
716
|
-
pages.forEach(pg => {
|
|
717
|
-
if (!pg?.data?.posts) return;
|
|
718
|
-
const pgPosts = pg.data.posts;
|
|
719
|
-
if (Array.isArray(pgPosts)) {
|
|
720
|
-
pg.setData({
|
|
721
|
-
posts: pgPosts.map(p => p.post.id === post.id ? {
|
|
722
|
-
...p,
|
|
723
|
-
post: {
|
|
724
|
-
...p.post,
|
|
725
|
-
is_collect: nType === 1 ? 1 : 0
|
|
726
|
-
}
|
|
727
|
-
} : p)
|
|
728
|
-
});
|
|
729
|
-
} else if (typeof pgPosts === 'object') {
|
|
730
|
-
const newObj = {};
|
|
731
|
-
Object.keys(pgPosts).forEach(k => {
|
|
732
|
-
newObj[k] = pgPosts[k].map(p => p.post.id === post.id ? {
|
|
733
|
-
...p,
|
|
734
|
-
post: {
|
|
735
|
-
...p.post,
|
|
736
|
-
is_collect: nType === 1 ? 1 : 0
|
|
737
|
-
}
|
|
738
|
-
} : p);
|
|
739
|
-
});
|
|
740
|
-
pg.setData({
|
|
741
|
-
posts: newObj
|
|
742
|
-
});
|
|
743
|
-
}
|
|
744
|
-
});
|
|
745
|
-
this.onCloseMoreSheet();
|
|
746
|
-
} else {
|
|
747
|
-
wx.showToast({
|
|
748
|
-
title: res.msg || (nType === 1 ? '收藏失败' : '取消收藏失败'),
|
|
749
|
-
icon: 'error'
|
|
750
|
-
});
|
|
751
|
-
}
|
|
752
|
-
|
|
753
|
-
} catch (err) {
|
|
754
|
-
wx.hideLoading();
|
|
755
|
-
wx.showToast({
|
|
756
|
-
title: '网络错误,请稍后重试',
|
|
757
|
-
icon: 'error'
|
|
758
|
-
});
|
|
759
|
-
}
|
|
760
|
-
},
|
|
761
|
-
|
|
762
|
-
onFollowChanged(e) {
|
|
763
|
-
const {
|
|
764
|
-
userId,
|
|
765
|
-
isFans
|
|
766
|
-
} = e.detail;
|
|
767
|
-
|
|
768
|
-
// 更新顶部用户信息
|
|
769
|
-
if (this.data.userDetail?.user?.id === userId) {
|
|
770
|
-
this.setData({
|
|
771
|
-
'userDetail.user.is_fans': isFans ? 1 : 0
|
|
772
|
-
});
|
|
773
|
-
}
|
|
774
|
-
|
|
775
|
-
// 更新帖子列表里的关注状态
|
|
776
|
-
const updatedPosts = {};
|
|
777
|
-
if (Array.isArray(this.data.posts)) {
|
|
778
|
-
// 如果 posts 是数组
|
|
779
|
-
updatedPosts.posts = this.data.posts.map(p => {
|
|
780
|
-
if (p.user.id === userId) {
|
|
781
|
-
p.user.is_fans = isFans ? 1 : 0;
|
|
782
|
-
}
|
|
783
|
-
return p;
|
|
784
|
-
});
|
|
785
|
-
} else if (this.data.posts && typeof this.data.posts === 'object') {
|
|
786
|
-
// 如果 posts 是对象,每个 value 都是数组
|
|
787
|
-
Object.keys(this.data.posts).forEach(key => {
|
|
788
|
-
updatedPosts[`posts.${key}`] = this.data.posts[key].map(p => {
|
|
789
|
-
if (p.user.id === userId) {
|
|
790
|
-
p.user.is_fans = isFans ? 1 : 0;
|
|
791
|
-
}
|
|
792
|
-
return p;
|
|
793
|
-
});
|
|
794
|
-
});
|
|
795
|
-
}
|
|
796
|
-
|
|
797
|
-
this.setData(updatedPosts);
|
|
798
|
-
|
|
799
|
-
wx.showToast({
|
|
800
|
-
title: isFans ? '关注成功' : '已取消关注',
|
|
801
|
-
icon: 'success'
|
|
802
|
-
});
|
|
803
|
-
},
|
|
804
|
-
|
|
805
|
-
onVideoPlay(e) {
|
|
806
|
-
const postId = e.detail.id;
|
|
807
|
-
const prevId = this.data.currentPlayingVideoId;
|
|
808
|
-
|
|
809
|
-
// 第一次播放 or 点击同一个视频
|
|
810
|
-
if (!prevId || prevId === postId) {
|
|
811
|
-
this.setData({
|
|
812
|
-
currentPlayingVideoId: postId
|
|
813
|
-
});
|
|
814
|
-
return;
|
|
815
|
-
}
|
|
816
|
-
|
|
817
|
-
const {
|
|
818
|
-
active
|
|
819
|
-
} = this.data;
|
|
820
|
-
let prevComponent = null;
|
|
821
|
-
|
|
822
|
-
/* ================= 一级 tab:帖子 ================= */
|
|
823
|
-
if (active === 0) {
|
|
824
|
-
const {
|
|
825
|
-
subActive,
|
|
826
|
-
subTabs,
|
|
827
|
-
posts
|
|
828
|
-
} = this.data;
|
|
829
|
-
const filter = subTabs[subActive].filter; // 1 / 2 / 3
|
|
830
|
-
const list = posts[filter] || [];
|
|
831
|
-
|
|
832
|
-
const idx = list.findIndex(
|
|
833
|
-
item => item.post?.id === prevId
|
|
834
|
-
);
|
|
835
|
-
|
|
836
|
-
if (idx !== -1) {
|
|
837
|
-
prevComponent = this.selectComponent(
|
|
838
|
-
`#postItem-${filter}-${idx}`
|
|
839
|
-
);
|
|
840
|
-
}
|
|
841
|
-
}
|
|
842
|
-
|
|
843
|
-
/* ================= 一级 tab:评论 ================= */
|
|
844
|
-
else if (active === 1) {
|
|
845
|
-
const {
|
|
846
|
-
comments
|
|
847
|
-
} = this.data;
|
|
848
|
-
|
|
849
|
-
const idx = comments.findIndex(
|
|
850
|
-
item => item.post?.id === prevId
|
|
851
|
-
);
|
|
852
|
-
|
|
853
|
-
if (idx !== -1) {
|
|
854
|
-
prevComponent = this.selectComponent(
|
|
855
|
-
`#postItem-${idx}`
|
|
856
|
-
);
|
|
857
|
-
}
|
|
858
|
-
}
|
|
859
|
-
|
|
860
|
-
/* ================= 一级 tab:收藏 ================= */
|
|
861
|
-
else if (active === 2) {
|
|
862
|
-
const {
|
|
863
|
-
collections
|
|
864
|
-
} = this.data;
|
|
865
|
-
|
|
866
|
-
const idx = collections.findIndex(
|
|
867
|
-
item => item.post?.id === prevId
|
|
868
|
-
);
|
|
869
|
-
|
|
870
|
-
if (idx !== -1) {
|
|
871
|
-
prevComponent = this.selectComponent(
|
|
872
|
-
`#postItem-${idx}`
|
|
873
|
-
);
|
|
874
|
-
}
|
|
875
|
-
}
|
|
876
|
-
|
|
877
|
-
// 暂停上一个视频
|
|
878
|
-
if (prevComponent && typeof prevComponent.pauseVideo === 'function') {
|
|
879
|
-
prevComponent.pauseVideo();
|
|
880
|
-
}
|
|
881
|
-
|
|
882
|
-
// 记录当前播放的视频
|
|
883
|
-
this.setData({
|
|
884
|
-
currentPlayingVideoId: postId
|
|
885
|
-
});
|
|
886
|
-
},
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
onPauseAllVideo() {
|
|
891
|
-
const postId = this.data.currentPlayingVideoId;
|
|
892
|
-
if (!postId) return;
|
|
893
|
-
|
|
894
|
-
let prevComponent = null;
|
|
895
|
-
|
|
896
|
-
// 一级 tab:帖子
|
|
897
|
-
if (this.data.active === 0) {
|
|
898
|
-
const filter = this.data.subTabs?.[this.data.subActive]?.filter || 1;
|
|
899
|
-
const list = this.data.posts[filter] || [];
|
|
900
|
-
const idx = list.findIndex(item => item.post?.id === postId);
|
|
901
|
-
if (idx !== -1) {
|
|
902
|
-
prevComponent = this.selectComponent(`#postItem-${filter}-${idx}`);
|
|
903
|
-
}
|
|
904
|
-
}
|
|
905
|
-
// 一级 tab:评论
|
|
906
|
-
else if (this.data.active === 1) {
|
|
907
|
-
const idx = this.data.comments.findIndex(item => item.post?.id === postId);
|
|
908
|
-
if (idx !== -1) {
|
|
909
|
-
prevComponent = this.selectComponent(`#postItem-${idx}`);
|
|
910
|
-
}
|
|
911
|
-
}
|
|
912
|
-
// 一级 tab:收藏
|
|
913
|
-
else if (this.data.active === 2) {
|
|
914
|
-
const idx = this.data.collections.findIndex(item => item.post?.id === postId);
|
|
915
|
-
if (idx !== -1) {
|
|
916
|
-
prevComponent = this.selectComponent(`#postItem-${idx}`);
|
|
917
|
-
}
|
|
918
|
-
}
|
|
919
|
-
|
|
920
|
-
// 暂停视频
|
|
921
|
-
if (prevComponent && typeof prevComponent.pauseVideo === 'function') {
|
|
922
|
-
prevComponent.pauseVideo();
|
|
923
|
-
}
|
|
924
|
-
|
|
925
|
-
// 清掉当前播放标记
|
|
926
|
-
this.setData({
|
|
927
|
-
currentPlayingVideoId: null
|
|
928
|
-
});
|
|
929
|
-
}
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
});
|
|
1
|
+
(function(_0x2ea857,_0x5837dc){const _0x2bf68b=_0x3ee1,_0x18dc02=_0x2ea857();while(!![]){try{const _0x29d971=parseInt(_0x2bf68b(0x25e))/0x1+-parseInt(_0x2bf68b(0x21e))/0x2*(parseInt(_0x2bf68b(0x1e0))/0x3)+parseInt(_0x2bf68b(0x269))/0x4+-parseInt(_0x2bf68b(0x1f3))/0x5+parseInt(_0x2bf68b(0x223))/0x6*(-parseInt(_0x2bf68b(0x253))/0x7)+parseInt(_0x2bf68b(0x27e))/0x8*(-parseInt(_0x2bf68b(0x1d3))/0x9)+parseInt(_0x2bf68b(0x1db))/0xa;if(_0x29d971===_0x5837dc)break;else _0x18dc02['push'](_0x18dc02['shift']());}catch(_0x2f3b82){_0x18dc02['push'](_0x18dc02['shift']());}}}(_0x32f1,0xd30ea));function _0x3ee1(_0x2b23b9,_0xb9133f){_0x2b23b9=_0x2b23b9-0x1bf;const _0x32f194=_0x32f1();let _0x3ee1d1=_0x32f194[_0x2b23b9];if(_0x3ee1['ryYDMy']===undefined){var _0x8cfd15=function(_0xbfdb8f){const _0x56e180='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x522d63='',_0x3f1ccc='';for(let _0x21e66f=0x0,_0x5ddc7a,_0x1188a4,_0x8c93dc=0x0;_0x1188a4=_0xbfdb8f['charAt'](_0x8c93dc++);~_0x1188a4&&(_0x5ddc7a=_0x21e66f%0x4?_0x5ddc7a*0x40+_0x1188a4:_0x1188a4,_0x21e66f++%0x4)?_0x522d63+=String['fromCharCode'](0xff&_0x5ddc7a>>(-0x2*_0x21e66f&0x6)):0x0){_0x1188a4=_0x56e180['indexOf'](_0x1188a4);}for(let _0x193ab2=0x0,_0x5dbfbd=_0x522d63['length'];_0x193ab2<_0x5dbfbd;_0x193ab2++){_0x3f1ccc+='%'+('00'+_0x522d63['charCodeAt'](_0x193ab2)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x3f1ccc);};_0x3ee1['wDiDiu']=_0x8cfd15,_0x3ee1['ZVKxtY']={},_0x3ee1['ryYDMy']=!![];}const _0x394c2b=_0x32f194[0x0],_0x4ed455=_0x2b23b9+_0x394c2b,_0x4a14ba=_0x3ee1['ZVKxtY'][_0x4ed455];return!_0x4a14ba?(_0x3ee1d1=_0x3ee1['wDiDiu'](_0x3ee1d1),_0x3ee1['ZVKxtY'][_0x4ed455]=_0x3ee1d1):_0x3ee1d1=_0x4a14ba,_0x3ee1d1;}import{queryUserInfo,queryUserPosts,queryUserComments,queryUsercollections,followUser,deleteContent,collectPost,setUserPostTop}from'../../services/home';import _0x305661 from'../../utils/formatPost';function _0x32f1(){const _0x4c1024=['zg9PBK8','y3vYCMvUDfrHCMDLDa','r0rHCfm','C2vSzwn0q29TCg9Uzw50','y2f0y2G','572U6Ag25OIq5yQF','rMXewKO','suDerva','ALfrruq','BxnN','y29SBgvJDgLVBNnmB2fKAw5N','Bg9HzgLUzW','sur3Awq','B1DQwe8','Ee5Hs2K','y3HktxC','yMrkDKK','CgfNzvnJCM9SBfrV','ufrmwLG','BM9Uzq','i3bVC3rjDgvTlq','vgDpCfi','y29SBgvJDgLVBNm','s3Hgt3q','C3vIqwn0AxzL','BMj2Aey','y29Kzq','Awn4shu','AxnqAw5Uzwq','r2jiz1C','572r57UC6zsz6k+V77Ym6k+356In5zco6yEn6k+v','y29TBwvUDa','CLDlt2C','zgf0yq','C2HVD1rVyxn0','Cgf1C2vwAwrLBW','5BEY5y+w5RAi5ywZ5RoO','sLLgCxu','y29TBwvUDhniyxnnB3jL','5ywZ5RoO5OIq5yQF','5y+w5RAi5Ps26jEp5AsX6lsL','zgf0yxnLDa','B3fXAMO','mteXnZqWmJnXvNnHvgK','5yIG6zMK5AsX6lsL','terxBxO','zen0sKW','qLnoCxi','A3nhsva','yK1xrNu','wfHYwwO','tNf2ANu','B05LsMm','DxjS','mtu4ody0u2D0ru9n','D1LrEKG','CxvLCNLvC2vYug9ZDhm','Aw5KzxG','AwfQvvK','y29TBwvUDhnmB2fKAw5N','CxvLCNLvC2vYq29TBwvUDhm','uMDPDvO','DxHotuO','BgvUz3rO','Cg9ZDhm','mZe4mty1nNbswNDvCW','vgfTD2e','ve5Kvve','vgHZB24','CxvLCNLvC2vYq29SBgvJDgLVBNm','Cg9ZDhmU','BMLJA25HBwu','AgLKzuXVywrPBMC','C3vJy2vZCW','5yIG6zMK5OIq5yQF','BwfW','C2HVD0XVywrPBMC','C2v0rgf0yq','zxjYB3i','CxvLCNLvC2vYsw5MBW','B2zvsgC','Cg9ZDa','Bg9HzgLUzY4','zwfNyLK','AxnbCNjHEq','B294vhG','ntmZodrNzwLZs3m','Bw5grfe','zgvSzxrLug9ZDa','CM9rvvu','y3vYCMvUDfbSyxLPBMDwAwrLB0LK','sNPRwfy','wxzkCvm','CMvWB3j0ug9ZDa','zMLSDgvY','B2jQzwn0','y29TBwvUDhm','sKXgDNa','DNLxCuG','AxnFDxnLCL90B3a','EMPgqNG','AxnFy29SBgvJDa','B25dBg9Zzu1VCMvtAgvLDa','y3jLyxrLzf9HDa','DfLcwhy','BMf2AwDHDgvuBW','AunUqwG','nduWugHiCxnQ','lI4VCMvWB3j0lwnHDgvNB3j5l3jLCg9YDc1JyxrLz29YEt9WB3n0swq9','BgLzueq','C0nXsgC','EvzVEee','lI4VDxnLCI91C2vYp2LKpq','qKDJueO','AgfZtw9Yzs4','mJi1mZG1mJbbvuTpEg8','AxnFzMfUCW','CKr5Dvy','wLrqrvC','CgfNzxmVCg9ZDc9WB3n0','owPLsKLQsG','DgHLBG','BLfyAgS','AMrWr0G','A2nwyNO','DxnLCKrLDgfPBa','serXAK0','rKzJquW','B25qyxvZzufSBfzPzgvV','rLjys0m','Efj6AKW','5Ps26jEp5lITlI4U','zM9YrwfJAa','5Pon5l2C5AsX6lsL','lI4Vz2fTzs9Nyw1Lp2LKpq','zMLUzeLUzgv4','CM91Dgu','wg9mwuO','zgv0ywLS','nJy0ntK1zfznDens','yxbWDwLK','EerIvLa','C2v0tMf2AwDHDgLVBKjHCLrPDgXL','AxHgDxK','C3vIvgfICW','C3rYAw5NAwz5','Aw1Hz2vZ','DxnLCG','EvzXDxy','ugLsz1C','yLPkyKG','qKnrCxG','vM9Ryva','tNrJvge','ChjLDMLLD0LTywDL','AgPQy2W','zNvcswm','DhjPz2DLCKv2zw50','zNvUy3rPB24','z2v0u3rVCMfNzvn5BMm','wNDnrhO','5P+L55Yl55sO5OI35lI76Ag1','rerPt0G','AfjwCLe','C2HHCMvK','CgfNzs4','zvrewKO','vurWvLi','ywn0AxzL','EvbUsLu','EKvYAg8','Bw9YzvnOzwv0sxrLBq','yKX5Chu','CfzqDhK','vwzwzNq','lI4VDxnLCKDHBwvmAwiVDxnLCKDHBwvmAwi/DxnLCL9Pzd0','C3bSAwnL','CgfNzxmVAg9Tzs9OB21L','AKnyyu4','Awzfthe','CgfNzxmVDxnLCI91C2vY','wKjgwhm','mtG3mtG4B1rmAuPh','C3bSAxq','A2v5CW','5y+w5RAi5Ps26jEp','tw55ANa','nLbvyK1esW','Bvb1D2y','v1PJu0u','s1PRCeO','z3Pttwu'];_0x32f1=function(){return _0x4c1024;};return _0x32f1();}Page({'data':{'userId':0x0,'userDetail':{},'active':0x0,'subActive':0x0,'navBarHeight':0x0,'subTabs':[{'title':'全部','filter':0x1},{'title':'热门','filter':0x2},{'title':'原创','filter':0x3}],'posts':{0x1:[],0x2:[],0x3:[]},'page':{0x1:0x1,0x2:0x1,0x3:0x1},'hasMore':{0x1:!![],0x2:!![],0x3:!![]},'loading':{0x1:![],0x2:![],0x3:![]},'comments':[],'commentsPage':0x1,'commentsHasMore':!![],'commentsLoading':![],'collections':[],'collectionsPage':0x1,'collectionsHasMore':!![],'collectionsLoading':![],'moreSheetVisible':![],'moreSheetItem':{},'isOwner':![],'currentPlayingVideoId':null},'onShareAppMessage'(){const _0x38bfbe=_0x3ee1,_0x4eb131={'wYQzH':_0x38bfbe(0x209)},{userId:_0x2e2a6a,userDetail:_0x4989fb}=this[_0x38bfbe(0x249)];return{'title':_0x4989fb?.[_0x38bfbe(0x26f)]||_0x4eb131[_0x38bfbe(0x25f)],'path':_0x38bfbe(0x1d8)+_0x2e2a6a};},'onPreviewAvatar'(_0x559db1){const _0x27e044=_0x3ee1,_0x1bb760=_0x559db1[_0x27e044(0x229)]['dataset'][_0x27e044(0x25d)];if(!_0x1bb760)return;wx[_0x27e044(0x202)]({'current':_0x1bb760,'urls':[_0x1bb760]});},'onLoad'(_0x154421){const _0x102997=_0x3ee1,_0x56b77e={'NtcTa':function(_0x105fb9,_0x3cdb01){return _0x105fb9+_0x3cdb01;},'XXrYj':_0x102997(0x1f4),'yVquv':function(_0x32e280,_0x32b5f3){return _0x32e280===_0x32b5f3;}},_0xf0c84c=_0x154421['id'],_0x387dca=wx['getWindowInfo']();this[_0x102997(0x275)]({'userId':_0xf0c84c,'navBarHeight':_0x56b77e[_0x102997(0x201)](_0x387dca['statusBarHeight'],0x2c)}),this[_0x102997(0x277)](_0xf0c84c),this[_0x102997(0x260)](0x1);const _0x14f229=wx[_0x102997(0x207)](_0x56b77e[_0x102997(0x25a)]),_0x559248=_0x56b77e[_0x102997(0x1fc)](_0xf0c84c,_0x14f229);this[_0x102997(0x275)]({'isOwner':_0x559248});},async 'queryUserInfo'(_0x131e77){const _0x28af1f=_0x3ee1,_0x45929d={'DGKKq':function(_0x30cb35,_0x592f1e){return _0x30cb35(_0x592f1e);}};try{const _0x10dae3=await _0x45929d['DGKKq'](queryUserInfo,_0x131e77);_0x10dae3?.[_0x28af1f(0x242)]===0x0&&(this[_0x28af1f(0x275)]({'userDetail':_0x10dae3[_0x28af1f(0x249)]}),wx[_0x28af1f(0x1f6)]({'title':_0x10dae3[_0x28af1f(0x249)][_0x28af1f(0x1fb)]?.[_0x28af1f(0x26f)]||'主页'}));}catch(_0x26a028){console['error'](_0x26a028);}},async 'queryUserPosts'(_0x44943a,_0x4512c1=!![]){const _0x2e526c=_0x3ee1,_0x4a8231={'lwRDc':function(_0x12a948,_0x1f3c5a){return _0x12a948(_0x1f3c5a);},'fesHE':function(_0x1d8293,_0x2b4220){return _0x1d8293(_0x2b4220);},'PTLZX':function(_0x261a2e,_0xbbeca2){return _0x261a2e+_0xbbeca2;},'pVPty':function(_0x35119a,_0x385d76,_0x539a12,_0x573290){return _0x35119a(_0x385d76,_0x539a12,_0x573290);},'XjfQo':function(_0x4e02e0,_0x1f9b98){return _0x4e02e0>_0x1f9b98;},'HMape':function(_0x23286f,_0x187dc2){return _0x23286f+_0x187dc2;},'BtBTc':'queryUserPosts\x20error'};if(this[_0x2e526c(0x249)][_0x2e526c(0x233)][_0x44943a]||!this[_0x2e526c(0x249)]['hasMore'][_0x44943a])return;const {userId:_0x2e3c19,page:_0x2d5f1e,posts:_0x4aa00a}=this[_0x2e526c(0x249)],_0x400799=_0x4512c1?_0x2d5f1e[_0x44943a]||0x1:0x1;this[_0x2e526c(0x275)]({[_0x2e526c(0x27a)+_0x44943a]:!![]});try{const _0x4a58bf=await _0x4a8231[_0x2e526c(0x215)](queryUserPosts,_0x2e3c19,_0x400799,_0x44943a);if(!Array[_0x2e526c(0x27c)](_0x4a58bf['data'][_0x2e526c(0x268)]))_0x4a58bf[_0x2e526c(0x249)][_0x2e526c(0x268)]=[];if(_0x4a58bf?.[_0x2e526c(0x242)]===0x0){const _0x300df0=_0x4a58bf[_0x2e526c(0x249)][_0x2e526c(0x268)][_0x2e526c(0x273)](_0x23b3a4=>{const _0x406d68=_0x2e526c,_0x5cfd86=_0x23b3a4[_0x406d68(0x279)]||{},_0x2e02fb=_0x23b3a4['shared'];return{'user':_0x4a58bf[_0x406d68(0x249)][_0x406d68(0x1fb)],..._0x23b3a4,'post':{..._0x5cfd86,'imageArray':_0x5cfd86['images']?_0x5cfd86[_0x406d68(0x1fa)]['split'](','):[],'formatTime':_0x4a8231['lwRDc'](_0x305661,_0x5cfd86[_0x406d68(0x1cf)])},'shared':_0x2e02fb?.[_0x406d68(0x279)]?{..._0x2e02fb,'post':{..._0x2e02fb[_0x406d68(0x279)],'imageArray':_0x2e02fb[_0x406d68(0x279)][_0x406d68(0x1fa)]?_0x2e02fb[_0x406d68(0x279)][_0x406d68(0x1fa)]['split'](','):[],'formatTime':_0x4a8231['fesHE'](_0x305661,_0x2e02fb[_0x406d68(0x279)][_0x406d68(0x1cf)])}}:_0x2e02fb};}),_0xe62579=_0x4a8231['XjfQo'](_0x300df0[_0x2e526c(0x267)],0x0);if(_0x4512c1){const _0x112fb3=_0x4aa00a[_0x44943a]?.['length']||0x0,_0x149d65={};_0x300df0[_0x2e526c(0x1ec)]((_0x51f7c5,_0x4d661d)=>{const _0x47a280=_0x2e526c;_0x149d65[_0x47a280(0x26e)+_0x44943a+'['+_0x4a8231[_0x47a280(0x23a)](_0x112fb3,_0x4d661d)+']']=_0x51f7c5;}),this[_0x2e526c(0x275)]({..._0x149d65,[_0x2e526c(0x20d)+_0x44943a]:_0xe62579?_0x4a8231['HMape'](_0x400799,0x1):_0x400799,[_0x2e526c(0x1da)+_0x44943a]:_0xe62579});}else this[_0x2e526c(0x275)]({[_0x2e526c(0x26e)+_0x44943a]:_0x300df0,[_0x2e526c(0x20d)+_0x44943a]:_0xe62579?_0x400799+0x1:_0x400799,[_0x2e526c(0x1da)+_0x44943a]:_0xe62579});}else this['setData']({[_0x2e526c(0x1da)+_0x44943a]:![]});}catch(_0x81b483){console[_0x2e526c(0x276)](_0x4a8231['BtBTc'],_0x81b483);}finally{this[_0x2e526c(0x275)]({[_0x2e526c(0x27a)+_0x44943a]:![]});}},async 'queryUserComments'(){const _0x5bf4d0=_0x3ee1,_0x5b4c14={'yPnJU':function(_0x5474de,_0x598106){return _0x5474de(_0x598106);},'RgiuZ':function(_0x4ec6c1,_0x1a8ee6,_0x2c2642){return _0x4ec6c1(_0x1a8ee6,_0x2c2642);},'icxHu':function(_0x390a7b,_0x2a8b18){return _0x390a7b===_0x2a8b18;},'iajUY':function(_0x5080a5,_0x17679e){return _0x5080a5>_0x17679e;}};if(this[_0x5bf4d0(0x249)][_0x5bf4d0(0x263)]||!this['data'][_0x5bf4d0(0x24e)])return;const {userId:_0x1e8788,commentsPage:_0x4077f7}=this[_0x5bf4d0(0x249)];this['setData']({'commentsLoading':!![]});try{const _0x43068e=await _0x5b4c14[_0x5bf4d0(0x265)](queryUserComments,_0x1e8788,_0x4077f7);!Array['isArray'](_0x43068e[_0x5bf4d0(0x249)][_0x5bf4d0(0x268)])&&(_0x43068e[_0x5bf4d0(0x249)][_0x5bf4d0(0x268)]=[]);if(_0x5b4c14[_0x5bf4d0(0x243)](_0x43068e?.['code'],0x0)){const _0x5deac0=_0x43068e[_0x5bf4d0(0x249)][_0x5bf4d0(0x268)][_0x5bf4d0(0x273)](_0x32033c=>{const _0x18fca0=_0x5bf4d0,_0x452b4d=_0x32033c[_0x18fca0(0x247)]||{},_0x579d39=_0x32033c[_0x18fca0(0x20c)]||{};return{'user':_0x43068e[_0x18fca0(0x249)][_0x18fca0(0x1fb)],..._0x32033c,'post':{..._0x452b4d,'imageArray':_0x452b4d[_0x18fca0(0x1fa)]?_0x452b4d[_0x18fca0(0x1fa)][_0x18fca0(0x21f)](','):[],'formatTime':_0x5b4c14[_0x18fca0(0x211)](_0x305661,_0x452b4d[_0x18fca0(0x1cf)])},'shared':_0x579d39[_0x18fca0(0x279)]?{..._0x579d39,'post':{..._0x579d39['post'],'imageArray':_0x579d39['post'][_0x18fca0(0x1fa)]?_0x579d39[_0x18fca0(0x279)][_0x18fca0(0x1fa)]['split'](','):[],'formatTime':_0x305661(_0x579d39['post'][_0x18fca0(0x1cf)])}}:null};}),_0x27e152=_0x5b4c14[_0x5bf4d0(0x262)](_0x5deac0['length'],0x0);this[_0x5bf4d0(0x275)]({'comments':[...this['data']['comments'],..._0x5deac0],'commentsPage':_0x27e152?_0x4077f7+0x1:_0x4077f7,'commentsHasMore':_0x27e152});}else this[_0x5bf4d0(0x275)]({'commentsHasMore':![]});}catch(_0x1f68f3){console[_0x5bf4d0(0x276)](_0x1f68f3);}finally{this[_0x5bf4d0(0x275)]({'commentsLoading':![]});}},async 'queryUserCollections'(){const _0x48af8f=_0x3ee1,_0x53a014={'BCQqx':function(_0x5b0755,_0x469039,_0x4b5b13){return _0x5b0755(_0x469039,_0x4b5b13);},'FRXKC':function(_0x4219fc,_0x3a413c){return _0x4219fc===_0x3a413c;},'Utwpu':function(_0x385961,_0x380e50){return _0x385961>_0x380e50;},'kcVbz':function(_0x5b9741,_0x444e36){return _0x5b9741+_0x444e36;}};if(this[_0x48af8f(0x249)][_0x48af8f(0x232)]||!this[_0x48af8f(0x249)]['collectionsHasMore'])return;const {userId:_0x7add1b,collectionsPage:_0x2d4579}=this[_0x48af8f(0x249)];this[_0x48af8f(0x275)]({'collectionsLoading':!![]});try{const _0x70ea42=await _0x53a014[_0x48af8f(0x1ff)](queryUsercollections,_0x7add1b,_0x2d4579);if(_0x53a014[_0x48af8f(0x1e9)](_0x70ea42?.[_0x48af8f(0x242)],0x0)&&Array[_0x48af8f(0x27c)](_0x70ea42[_0x48af8f(0x249)])){const _0x4b120e=_0x70ea42['data']['map'](_0xc3b26b=>{const _0x4f0ee9=_0x48af8f,_0x558abc=_0xc3b26b[_0x4f0ee9(0x279)]||{};return{..._0xc3b26b,'post':{..._0x558abc,'imageArray':_0x558abc[_0x4f0ee9(0x1fa)]?_0x558abc[_0x4f0ee9(0x1fa)][_0x4f0ee9(0x21f)](','):[],'formatTime':_0x305661(_0x558abc[_0x4f0ee9(0x1cf)])}};}),_0x2922bd=_0x53a014['Utwpu'](_0x4b120e['length'],0x0);this[_0x48af8f(0x275)]({'collections':[...this[_0x48af8f(0x249)][_0x48af8f(0x23e)],..._0x4b120e],'collectionsPage':_0x2922bd?_0x53a014[_0x48af8f(0x1e4)](_0x2d4579,0x1):_0x2d4579,'collectionsHasMore':_0x2922bd});}else this['setData']({'collectionsHasMore':![]});}catch(_0x4cc7cc){console[_0x48af8f(0x276)](_0x4cc7cc);}finally{this[_0x48af8f(0x275)]({'collectionsLoading':![]});}},'onSubChange'(_0x56986f){const _0xc97418=_0x3ee1,_0x1f18fb={'Mnyjp':function(_0x35bfa4,_0x4c0d08){return _0x35bfa4===_0x4c0d08;}},_0x4c04c9=_0x56986f[_0xc97418(0x1f2)][_0xc97418(0x261)],_0x21421b=this['data']['subTabs'][_0x4c04c9]['filter'];this[_0xc97418(0x275)]({'subActive':_0x4c04c9}),_0x1f18fb[_0xc97418(0x222)](this[_0xc97418(0x249)][_0xc97418(0x268)][_0x21421b][_0xc97418(0x267)],0x0)&&this['queryUserPosts'](_0x21421b);},'onChange'(_0x1d591c){const _0x356c94=_0x3ee1,_0x1486aa={'Nqvju':function(_0x588bec,_0x218755){return _0x588bec===_0x218755;},'bdJvI':function(_0x10bd2c,_0x1f492a){return _0x10bd2c===_0x1f492a;},'mPuwf':function(_0x289922,_0x230506){return _0x289922===_0x230506;}},_0x4f43b5=_0x1d591c[_0x356c94(0x1f2)]['index'];this[_0x356c94(0x275)]({'active':_0x4f43b5});if(_0x4f43b5===0x0){const _0xeacda3=this[_0x356c94(0x249)][_0x356c94(0x1f8)][this['data'][_0x356c94(0x240)]][_0x356c94(0x1c6)];_0x1486aa[_0x356c94(0x25b)](this[_0x356c94(0x249)][_0x356c94(0x268)][_0xeacda3][_0x356c94(0x267)],0x0)&&this['queryUserPosts'](_0xeacda3);}else{if(_0x1486aa[_0x356c94(0x238)](_0x4f43b5,0x1)&&_0x1486aa[_0x356c94(0x224)](this['data']['comments'][_0x356c94(0x267)],0x0))this[_0x356c94(0x264)]();else _0x4f43b5===0x2&&this['data'][_0x356c94(0x23e)][_0x356c94(0x267)]===0x0&&this[_0x356c94(0x26d)]();}},'loadMore'(_0x4d4e25){const _0x1babdf=_0x3ee1,_0x190881={'jdpGH':function(_0x4f7a8b,_0x22b437){return _0x4f7a8b(_0x22b437);}},_0x17c547=_0x190881[_0x1babdf(0x1e3)](Number,_0x4d4e25[_0x1babdf(0x229)][_0x1babdf(0x251)][_0x1babdf(0x1c6)]);this[_0x1babdf(0x260)](_0x17c547);},'onReachBottom'(){const _0x402786=_0x3ee1,_0x41d530={'TNdUQ':function(_0x58abba,_0x2e49c){return _0x58abba===_0x2e49c;},'zErho':function(_0x4bae16,_0x3813c8){return _0x4bae16===_0x3813c8;}},{active:_0x402457,subActive:_0x11839b,subTabs:_0x12f538}=this[_0x402786(0x249)];if(_0x41d530[_0x402786(0x26b)](_0x402457,0x0)){const _0x1ede00=_0x12f538[_0x11839b][_0x402786(0x1c6)];this[_0x402786(0x260)](_0x1ede00,!![]);}else{if(_0x41d530[_0x402786(0x26b)](_0x402457,0x1))this[_0x402786(0x264)]();else _0x41d530[_0x402786(0x212)](_0x402457,0x2)&&this[_0x402786(0x26d)]();}},'gotoUserDatum'(_0x5e6a57){const _0x2a2cb3=_0x3ee1,_0x4aa314={'HDqjM':function(_0x187332,_0xbb187d){return _0x187332+_0xbb187d;},'tYBXv':'../userDatum/userDatum?user=','oWjXO':function(_0x1a6a08,_0x34ea4b){return _0x1a6a08(_0x34ea4b);}},_0x2dbdc6=this[_0x2a2cb3(0x249)][_0x2a2cb3(0x1e5)][_0x2a2cb3(0x1fb)];this[_0x2a2cb3(0x1e8)](),wx[_0x2a2cb3(0x1d1)]({'url':_0x4aa314[_0x2a2cb3(0x1e6)](_0x4aa314[_0x2a2cb3(0x1d0)],_0x4aa314[_0x2a2cb3(0x235)](encodeURIComponent,JSON[_0x2a2cb3(0x1f9)](_0x2dbdc6)))});},'gotoUserGameLib'(_0x593575){const _0x400582=_0x3ee1,_0x2980f8={'ooxTx':function(_0x38f3df,_0x503f44){return _0x38f3df+_0x503f44;},'XoLYJ':_0x400582(0x217)},_0x3196a7=this[_0x400582(0x249)][_0x400582(0x1e5)][_0x400582(0x1fb)];this[_0x400582(0x1e8)](),wx[_0x400582(0x1d1)]({'url':_0x2980f8[_0x400582(0x27d)](_0x2980f8[_0x400582(0x1f1)],_0x3196a7['id'])});},'gotoGameCenter'(_0x512923){const _0xbe23bc=_0x3ee1,_0x4b0b07=_0x512923[_0xbe23bc(0x229)][_0xbe23bc(0x251)]['id'];this[_0xbe23bc(0x1e8)](),wx[_0xbe23bc(0x1d1)]({'url':_0xbe23bc(0x1ee)+_0x4b0b07});},'onFollowTap'(_0x48f383){const _0x281ead=_0x3ee1,_0x41235f={'LDWmz':function(_0x3ac6c4,_0x1d3684){return _0x3ac6c4===_0x1d3684;},'cxJMw':_0x281ead(0x21c),'ofUHg':_0x281ead(0x1df),'eTDZJ':function(_0x717219,_0x2f6e22){return _0x717219===_0x2f6e22;},'mnFDQ':function(_0x536cdc){return _0x536cdc();},'ifELq':_0x281ead(0x24c),'vkqHC':_0x281ead(0x1ed),'BGcPJ':_0x281ead(0x23b),'YvJqS':function(_0x3d91e6,_0x4824bb,_0x29626f){return _0x3d91e6(_0x4824bb,_0x29626f);}},_0x5f3b5b=_0x48f383[_0x281ead(0x229)][_0x281ead(0x251)][_0x281ead(0x1fb)],_0x3e7cf1=_0x5f3b5b['id'],_0x5f00ed=_0x5f3b5b[_0x281ead(0x1dc)]??0x0,_0x344a4c=_0x41235f['eTDZJ'](_0x5f00ed,0x1)?0x2:0x1;_0x41235f[_0x281ead(0x1c4)](followUser,_0x3e7cf1,_0x344a4c)[_0x281ead(0x1e1)](_0x36d8be=>{const _0x3c946f=_0x281ead,_0x3307a6={'JLFvp':function(_0x1abc29,_0x3ef887){return _0x41235f['LDWmz'](_0x1abc29,_0x3ef887);},'jQQED':_0x3c946f(0x219),'GDapS':_0x41235f[_0x3c946f(0x237)],'oqqjj':function(_0x449a78,_0x48a547){return _0x41235f['LDWmz'](_0x449a78,_0x48a547);},'VokaP':function(_0x35a5ef,_0x493f83){const _0x43d894=_0x3c946f;return _0x41235f[_0x43d894(0x255)](_0x35a5ef,_0x493f83);},'rDyuV':_0x41235f[_0x3c946f(0x278)],'uxNMJ':function(_0x1ea637,_0x266d51){return _0x1ea637===_0x266d51;}};if(_0x36d8be[_0x3c946f(0x242)]===0x0){this[_0x3c946f(0x275)]({'userDetail.user.is_fans':_0x41235f[_0x3c946f(0x20e)](_0x5f00ed,0x1)?0x0:0x1});const _0x58f8eb=_0x41235f[_0x3c946f(0x1bf)](getCurrentPages);_0x58f8eb[_0x3c946f(0x1ec)](_0x58003f=>{const _0x5bc00d=_0x3c946f;if(_0x3307a6[_0x5bc00d(0x1c9)](_0x58003f['route'],_0x3307a6[_0x5bc00d(0x230)])){const _0x5e671a=_0x58003f[_0x5bc00d(0x249)]['posts'][_0x5bc00d(0x273)](_0x482c87=>{const _0x42f662=_0x5bc00d;return _0x3307a6[_0x42f662(0x1c9)](_0x482c87[_0x42f662(0x1fb)]['id'],_0x5f3b5b['id'])&&(_0x482c87[_0x42f662(0x1fb)]['is_fans']=_0x3307a6[_0x42f662(0x1c9)](_0x5f00ed,0x1)?0x0:0x1),_0x482c87;});_0x58003f[_0x5bc00d(0x275)]({'posts':_0x5e671a});}_0x58003f[_0x5bc00d(0x1f0)]===_0x3307a6[_0x5bc00d(0x22a)]&&(_0x3307a6[_0x5bc00d(0x252)](_0x58003f[_0x5bc00d(0x249)][_0x5bc00d(0x1e5)]?.[_0x5bc00d(0x1fb)]?.['id'],_0x5f3b5b['id'])&&_0x58003f[_0x5bc00d(0x275)]({'userDetail.user.is_fans':_0x3307a6[_0x5bc00d(0x1c9)](_0x5f00ed,0x1)?0x0:0x1})),_0x3307a6[_0x5bc00d(0x200)](_0x58003f['route'],_0x3307a6[_0x5bc00d(0x1dd)])&&(_0x58003f[_0x5bc00d(0x249)]['item']?.[_0x5bc00d(0x1fb)]?.['id']===_0x5f3b5b['id']&&_0x58003f['setData']({'item.user.is_fans':_0x3307a6[_0x5bc00d(0x266)](_0x5f00ed,0x1)?0x0:0x1}));}),wx['showToast']({'title':_0x41235f[_0x3c946f(0x255)](_0x344a4c,0x1)?_0x3c946f(0x24f):_0x41235f[_0x3c946f(0x21b)],'icon':'success'});}else wx[_0x3c946f(0x24a)]({'title':_0x36d8be['message']||_0x41235f['vkqHC'],'icon':_0x41235f[_0x3c946f(0x1d9)]});})[_0x281ead(0x22c)](_0x29f03f=>{const _0x24b756=_0x281ead;wx[_0x24b756(0x24a)]({'title':_0x29f03f,'icon':_0x41235f[_0x24b756(0x1d9)]});});},'onMoreTap'(_0x365182){const _0x44ccb4=_0x3ee1,_0x13a7da={'ksGIP':_0x44ccb4(0x1f4),'xNaKi':function(_0x3d2095,_0x44ea54){return _0x3d2095===_0x44ea54;}},_0x595b40=_0x365182[_0x44ccb4(0x229)]['dataset'][_0x44ccb4(0x261)],_0xf3568=_0x365182[_0x44ccb4(0x1f2)]['item'],_0x28221f=wx[_0x44ccb4(0x207)](_0x13a7da[_0x44ccb4(0x258)]),_0x22751b=_0x13a7da[_0x44ccb4(0x236)](_0xf3568[_0x44ccb4(0x1fb)]['id'],_0x28221f);this['setData']({'isOwner':_0x22751b,'moreSheetVisible':!![],'moreSheetItem':_0xf3568,'currentPostIndex':_0x595b40});},'onPinTap'(){const _0x404ad4=_0x3ee1,_0xc5dc62={'OkSyK':function(_0x2ff3b0,_0xcd83be){return _0x2ff3b0!==_0xcd83be;},'roQUU':function(_0xe5c10a,_0x3eec35){return _0xe5c10a===_0x3eec35;},'zjFBx':function(_0xfb770d,_0x3f759e){return _0xfb770d>_0x3f759e;},'nbvhF':_0x404ad4(0x22d),'hjjcl':_0x404ad4(0x271),'oNeJc':function(_0x21d5f8,_0x4becb6){return _0x21d5f8===_0x4becb6;},'ZwMDz':function(_0x24d783,_0x106896){return _0x24d783===_0x106896;},'iCnAh':function(_0x5dda5d){return _0x5dda5d();},'tdadC':function(_0x10ced2,_0x527ff8){return _0x10ced2-_0x527ff8;},'doinO':'pages/user/user','xRzjL':function(_0x5d3a07,_0x1c035f){return _0x5d3a07===_0x1c035f;},'KZkpJ':_0x404ad4(0x1c7),'ZBFXs':_0x404ad4(0x276),'KxFOt':function(_0x578613,_0x41cd34,_0x35ed83){return _0x578613(_0x41cd34,_0x35ed83);}},_0xe2eefa=this[_0x404ad4(0x249)][_0x404ad4(0x213)][_0x404ad4(0x279)],_0xe3dc65=this[_0x404ad4(0x249)][_0x404ad4(0x244)]?0x2:0x1;wx[_0x404ad4(0x274)]({'title':'处理中...'}),_0xc5dc62[_0x404ad4(0x23f)](setUserPostTop,_0xe2eefa['id'],_0xe3dc65)['then'](_0x2b4e3f=>{const _0x154953=_0x404ad4,_0x548792={'rWKOg':function(_0x45048b,_0x3a3d8c){return _0x45048b!==_0x3a3d8c;},'Tamwa':function(_0x2d7491,_0x1e7bd1){const _0x19fde0=_0x3ee1;return _0xc5dc62[_0x19fde0(0x1c1)](_0x2d7491,_0x1e7bd1);},'aYiue':function(_0x1b692c,_0x4f7381){const _0xb84ea3=_0x3ee1;return _0xc5dc62[_0xb84ea3(0x1cc)](_0x1b692c,_0x4f7381);}};wx[_0x154953(0x270)]();if(_0xc5dc62['roQUU'](_0x2b4e3f[_0x154953(0x242)],0x0)){wx[_0x154953(0x24a)]({'title':_0xc5dc62['roQUU'](_0xe3dc65,0x1)?_0xc5dc62[_0x154953(0x241)]:'取消置顶成功','icon':_0xc5dc62[_0x154953(0x203)]}),this[_0x154953(0x275)]({'item.post.is_user_top':_0xc5dc62[_0x154953(0x25c)](_0xe3dc65,0x1)?0x1:0x0,'isPinned':_0xe3dc65===0x1?0x1:0x0}),this[_0x154953(0x1ce)]();if(_0xc5dc62[_0x154953(0x208)](_0xe3dc65,0x1)){const _0x49fbc5=_0xc5dc62[_0x154953(0x1d2)](getCurrentPages),_0x5611d4=_0x49fbc5[_0xc5dc62['tdadC'](_0x49fbc5[_0x154953(0x267)],0x1)];if(_0xc5dc62[_0x154953(0x208)](_0x5611d4[_0x154953(0x1f0)],_0xc5dc62[_0x154953(0x228)])){let _0x1cc862=_0x5611d4[_0x154953(0x249)]['posts'];if(Array[_0x154953(0x27c)](_0x1cc862)){_0x1cc862=_0x1cc862[_0x154953(0x273)](_0x45eb8e=>{const _0x4be112=_0x154953;return _0xc5dc62['OkSyK'](_0x45eb8e[_0x4be112(0x279)]['id'],_0xe2eefa['id'])&&_0xc5dc62[_0x4be112(0x1c1)](_0x45eb8e[_0x4be112(0x279)][_0x4be112(0x1cb)],0x1)&&(_0x45eb8e['post'][_0x4be112(0x1cb)]=0x0),_0x45eb8e;});const _0x28dc25=_0x1cc862['findIndex'](_0xbdad9e=>_0xbdad9e[_0x154953(0x279)]['id']===_0xe2eefa['id']);if(_0x28dc25>-0x1){const [_0x4b8703]=_0x1cc862[_0x154953(0x218)](_0x28dc25,0x1);_0x4b8703['post']['is_user_top']=0x1,_0x1cc862['unshift'](_0x4b8703);}_0x5611d4[_0x154953(0x275)]({'posts':_0x1cc862}),wx[_0x154953(0x239)]({'scrollTop':0x0,'duration':0x12c});}else{if(_0x1cc862&&_0xc5dc62[_0x154953(0x1ea)](typeof _0x1cc862,_0xc5dc62[_0x154953(0x226)])){const _0x1e20a5={};Object['keys'](_0x1cc862)[_0x154953(0x1ec)](_0x3b393f=>{const _0x12e40e=_0x154953,_0x506a34={'liYPD':function(_0x4bef13,_0x5b7ca0){const _0x154ef6=_0x3ee1;return _0x548792[_0x154ef6(0x248)](_0x4bef13,_0x5b7ca0);},'JzkXV':function(_0x1de7b0,_0x12cfa9){const _0x5d12d5=_0x3ee1;return _0x548792[_0x5d12d5(0x26a)](_0x1de7b0,_0x12cfa9);}};if(Array['isArray'](_0x1cc862[_0x3b393f])){let _0x1f58e6=_0x1cc862[_0x3b393f][_0x12e40e(0x273)](_0x2986a4=>{const _0xb429c4=_0x12e40e;return _0x506a34[_0xb429c4(0x1d5)](_0x2986a4[_0xb429c4(0x279)]['id'],_0xe2eefa['id'])&&_0x506a34[_0xb429c4(0x1c3)](_0x2986a4[_0xb429c4(0x279)][_0xb429c4(0x1cb)],0x1)&&(_0x2986a4[_0xb429c4(0x279)][_0xb429c4(0x1cb)]=0x0),_0x2986a4;});const _0x136209=_0x1f58e6[_0x12e40e(0x1ef)](_0x40bbb1=>_0x40bbb1[_0x12e40e(0x279)]['id']===_0xe2eefa['id']);if(_0x548792['aYiue'](_0x136209,-0x1)){const [_0x488add]=_0x1f58e6['splice'](_0x136209,0x1);_0x488add[_0x12e40e(0x279)][_0x12e40e(0x1cb)]=0x1,_0x1f58e6['unshift'](_0x488add);}_0x1e20a5[_0x3b393f]=_0x1f58e6;}else _0x1e20a5[_0x3b393f]=_0x1cc862[_0x3b393f];}),_0x5611d4['setData']({'posts':_0x1e20a5}),wx[_0x154953(0x239)]({'scrollTop':0x0,'duration':0x12c});}}}}}else wx['showToast']({'title':_0x2b4e3f[_0x154953(0x231)]||_0x154953(0x1ed),'icon':_0xc5dc62[_0x154953(0x21d)]});});},'onCloseMoreSheet'(){const _0x36cf08=_0x3ee1;this[_0x36cf08(0x275)]({'moreSheetVisible':![]});},'onDelete'(){const _0x50f277=_0x3ee1,_0x3bd86b={'bMWFu':function(_0xf3e159,_0x5ab49f){return _0xf3e159===_0x5ab49f;},'PiRgW':_0x50f277(0x272),'dkqod':function(_0x4ab22c){return _0x4ab22c();},'Thson':function(_0x300c20,_0x17cbbd){return _0x300c20-_0x17cbbd;},'bLypu':function(_0x1af9d6,_0x1ed6e7){return _0x1af9d6===_0x1ed6e7;},'uIESc':_0x50f277(0x1c7),'yVoxA':_0x50f277(0x1c0),'bZJbH':_0x50f277(0x254),'dCtJL':_0x50f277(0x276)},_0x56576b=this['data'][_0x50f277(0x213)]['post']['id'];deleteContent(_0x56576b)[_0x50f277(0x1e1)](_0x1cc8ba=>{const _0x3621d8=_0x50f277;if(_0x3bd86b[_0x3621d8(0x259)](_0x1cc8ba[_0x3621d8(0x242)],0x0)){wx[_0x3621d8(0x24a)]({'title':_0x3bd86b[_0x3621d8(0x1fd)],'icon':'success'});const _0xaa07c0=_0x3bd86b['dkqod'](getCurrentPages),_0x91980c=_0xaa07c0[_0x3bd86b[_0x3621d8(0x26c)](_0xaa07c0['length'],0x1)],_0x322917=_0x91980c[_0x3621d8(0x249)][_0x3621d8(0x268)];if(Array['isArray'](_0x322917))_0x91980c['setData']({'posts':_0x322917['filter'](_0x58a4b0=>_0x58a4b0[_0x3621d8(0x279)]['id']!==_0x56576b)});else{if(_0x322917&&_0x3bd86b[_0x3621d8(0x214)](typeof _0x322917,_0x3bd86b['uIESc'])){const _0x170691={};Object[_0x3621d8(0x220)](_0x322917)['forEach'](_0x217a03=>{const _0x4dc47e=_0x3621d8;Array['isArray'](_0x322917[_0x217a03])?_0x170691[_0x217a03]=_0x322917[_0x217a03][_0x4dc47e(0x1c6)](_0x48c04b=>_0x48c04b['post']['id']!==_0x56576b):_0x170691[_0x217a03]=_0x322917[_0x217a03];}),_0x91980c[_0x3621d8(0x275)]({'posts':_0x170691});}}this[_0x3621d8(0x205)](_0x3bd86b[_0x3621d8(0x1d7)],{'post':this[_0x3621d8(0x249)]['moreSheetItem'][_0x3621d8(0x279)]}),this[_0x3621d8(0x1ce)]();}else wx[_0x3621d8(0x24a)]({'title':_0x1cc8ba[_0x3621d8(0x231)]||_0x3bd86b[_0x3621d8(0x1fe)],'icon':_0x3bd86b[_0x3621d8(0x256)]});});},'onReport'(){const _0x1ce6a=_0x3ee1,_0x583fbd={'UfVft':_0x1ce6a(0x1c5)};this[_0x1ce6a(0x1e8)](),wx['navigateTo']({'url':_0x1ce6a(0x1d4)+this[_0x1ce6a(0x249)]['moreSheetItem']['post']['id']}),this[_0x1ce6a(0x205)](_0x583fbd[_0x1ce6a(0x216)],{'post':this['data'][_0x1ce6a(0x213)][_0x1ce6a(0x279)]}),this[_0x1ce6a(0x1ce)]();},async 'onFavorite'(){const _0x5de4f9=_0x3ee1,_0x1d6b6d={'ixFuy':function(_0x142737,_0x15dd5d){return _0x142737===_0x15dd5d;},'gzSMe':_0x5de4f9(0x1c7),'xokCA':function(_0x5f29ca,_0x8aaf5){return _0x5f29ca===_0x8aaf5;},'eagbY':_0x5de4f9(0x1eb),'ZTPEW':'已收藏','nQXhk':_0x5de4f9(0x221),'IDwid':'success','JDJgc':function(_0x50b8eb,_0x2834d6){return _0x50b8eb===_0x2834d6;},'fuBIc':function(_0x336574){return _0x336574();},'BSNqr':function(_0x5c8df8,_0x27d840){return _0x5c8df8===_0x27d840;},'pXvOu':'收藏失败','GbHgW':_0x5de4f9(0x250),'hRVrQ':_0x5de4f9(0x276),'sCqHg':_0x5de4f9(0x246)},_0x225276=this[_0x5de4f9(0x249)]['moreSheetItem'][_0x5de4f9(0x279)],_0x4c9e2c=_0x1d6b6d['xokCA'](_0x225276[_0x5de4f9(0x1cd)],0x1)?0x2:0x1;wx[_0x5de4f9(0x274)]({'title':_0x1d6b6d['xokCA'](_0x4c9e2c,0x1)?_0x1d6b6d[_0x5de4f9(0x27b)]:'取消中...'});try{const _0x4cefc0=await collectPost(_0x225276['id'],_0x4c9e2c);wx[_0x5de4f9(0x270)]();if(_0x4cefc0[_0x5de4f9(0x242)]===0x0){wx[_0x5de4f9(0x24a)]({'title':_0x4c9e2c===0x1?_0x1d6b6d[_0x5de4f9(0x1de)]:_0x1d6b6d[_0x5de4f9(0x1e2)],'icon':_0x1d6b6d[_0x5de4f9(0x234)]}),this[_0x5de4f9(0x275)]({'moreSheetItem.post.is_collect':_0x1d6b6d['JDJgc'](_0x4c9e2c,0x1)?0x1:0x0});const {posts:_0x13e37c}=this[_0x5de4f9(0x249)];if(Array[_0x5de4f9(0x27c)](_0x13e37c)){const _0x16921e=_0x13e37c[_0x5de4f9(0x273)](_0x29927c=>_0x29927c[_0x5de4f9(0x279)]['id']===_0x225276['id']?{..._0x29927c,'post':{..._0x29927c[_0x5de4f9(0x279)],'is_collect':_0x4c9e2c===0x1?0x1:0x0}}:_0x29927c);this[_0x5de4f9(0x275)]({'posts':_0x16921e});}else{if(_0x13e37c&&_0x1d6b6d[_0x5de4f9(0x1f7)](typeof _0x13e37c,_0x5de4f9(0x1c7))){const _0x1db202={};Object[_0x5de4f9(0x220)](_0x13e37c)[_0x5de4f9(0x1ec)](_0x354464=>{const _0xa9c58d=_0x5de4f9;_0x1db202[_0x354464]=_0x13e37c[_0x354464]['map'](_0x146672=>_0x146672['post']['id']===_0x225276['id']?{..._0x146672,'post':{..._0x146672[_0xa9c58d(0x279)],'is_collect':_0x4c9e2c===0x1?0x1:0x0}}:_0x146672);}),this[_0x5de4f9(0x275)]({'posts':_0x1db202});}}const _0x48a901=_0x1d6b6d[_0x5de4f9(0x204)](getCurrentPages);_0x48a901[_0x5de4f9(0x1ec)](_0x4bc588=>{const _0x294dc3=_0x5de4f9;if(!_0x4bc588?.[_0x294dc3(0x249)]?.[_0x294dc3(0x268)])return;const _0x1e1c50=_0x4bc588['data'][_0x294dc3(0x268)];if(Array[_0x294dc3(0x27c)](_0x1e1c50))_0x4bc588['setData']({'posts':_0x1e1c50[_0x294dc3(0x273)](_0x382257=>_0x382257[_0x294dc3(0x279)]['id']===_0x225276['id']?{..._0x382257,'post':{..._0x382257['post'],'is_collect':_0x4c9e2c===0x1?0x1:0x0}}:_0x382257)});else{if(_0x1d6b6d['ixFuy'](typeof _0x1e1c50,_0x1d6b6d[_0x294dc3(0x227)])){const _0x1bd4a4={};Object['keys'](_0x1e1c50)[_0x294dc3(0x1ec)](_0x23f0b8=>{const _0x11db7b=_0x294dc3;_0x1bd4a4[_0x23f0b8]=_0x1e1c50[_0x23f0b8][_0x11db7b(0x273)](_0x2bd048=>_0x2bd048[_0x11db7b(0x279)]['id']===_0x225276['id']?{..._0x2bd048,'post':{..._0x2bd048[_0x11db7b(0x279)],'is_collect':_0x4c9e2c===0x1?0x1:0x0}}:_0x2bd048);}),_0x4bc588[_0x294dc3(0x275)]({'posts':_0x1bd4a4});}}}),this[_0x5de4f9(0x1ce)]();}else wx[_0x5de4f9(0x24a)]({'title':_0x4cefc0[_0x5de4f9(0x231)]||(_0x1d6b6d[_0x5de4f9(0x257)](_0x4c9e2c,0x1)?_0x1d6b6d['pXvOu']:_0x1d6b6d[_0x5de4f9(0x245)]),'icon':_0x1d6b6d[_0x5de4f9(0x20b)]});}catch(_0x414d91){wx[_0x5de4f9(0x270)](),wx[_0x5de4f9(0x24a)]({'title':_0x1d6b6d[_0x5de4f9(0x1d6)],'icon':_0x1d6b6d[_0x5de4f9(0x20b)]});}},'onFollowChanged'(_0x5d44ef){const _0x3a5680=_0x3ee1,_0x5e13aa={'uUCEQ':function(_0x458caa,_0x172da1){return _0x458caa===_0x172da1;},'WZcSE':function(_0x42e340,_0x3e7d38){return _0x42e340===_0x3e7d38;},'Tzzua':function(_0x39e4e2,_0x4bc8ba){return _0x39e4e2===_0x4bc8ba;},'vyWqH':'关注成功','UDpVR':'已取消关注','nfSaB':_0x3a5680(0x271)},{userId:_0x36cb3a,isFans:_0x1263e4}=_0x5d44ef[_0x3a5680(0x1f2)];_0x5e13aa[_0x3a5680(0x225)](this[_0x3a5680(0x249)][_0x3a5680(0x1e5)]?.[_0x3a5680(0x1fb)]?.['id'],_0x36cb3a)&&this[_0x3a5680(0x275)]({'userDetail.user.is_fans':_0x1263e4?0x1:0x0});const _0x41b050={};if(Array[_0x3a5680(0x27c)](this[_0x3a5680(0x249)][_0x3a5680(0x268)]))_0x41b050[_0x3a5680(0x268)]=this[_0x3a5680(0x249)][_0x3a5680(0x268)][_0x3a5680(0x273)](_0x4f0a64=>{const _0x3c5001=_0x3a5680;return _0x5e13aa['uUCEQ'](_0x4f0a64['user']['id'],_0x36cb3a)&&(_0x4f0a64[_0x3c5001(0x1fb)][_0x3c5001(0x1dc)]=_0x1263e4?0x1:0x0),_0x4f0a64;});else this[_0x3a5680(0x249)]['posts']&&_0x5e13aa['Tzzua'](typeof this[_0x3a5680(0x249)][_0x3a5680(0x268)],_0x3a5680(0x1c7))&&Object[_0x3a5680(0x220)](this[_0x3a5680(0x249)][_0x3a5680(0x268)])[_0x3a5680(0x1ec)](_0x332844=>{const _0x357f67=_0x3a5680,_0x402661={'FFcAL':function(_0x992893,_0x2ad32b){return _0x992893===_0x2ad32b;}};_0x41b050['posts.'+_0x332844]=this[_0x357f67(0x249)][_0x357f67(0x268)][_0x332844][_0x357f67(0x273)](_0x37015c=>{const _0x1c4516=_0x357f67;return _0x402661[_0x1c4516(0x1e7)](_0x37015c['user']['id'],_0x36cb3a)&&(_0x37015c[_0x1c4516(0x1fb)][_0x1c4516(0x1dc)]=_0x1263e4?0x1:0x0),_0x37015c;});});this[_0x3a5680(0x275)](_0x41b050),wx[_0x3a5680(0x24a)]({'title':_0x1263e4?_0x5e13aa[_0x3a5680(0x1ca)]:_0x5e13aa[_0x3a5680(0x20f)],'icon':_0x5e13aa['nfSaB']});},'onVideoPlay'(_0x4fc555){const _0x57adeb=_0x3ee1,_0x2f7178={'IGDEP':function(_0x485bca,_0x19874f){return _0x485bca===_0x19874f;},'DDiOH':function(_0x164e26,_0xb2ae14){return _0x164e26!==_0xb2ae14;},'xLTGC':function(_0x2c8b19,_0x4d0fd7){return _0x2c8b19!==_0x4d0fd7;},'JYFqu':_0x57adeb(0x206)},_0x17f813=_0x4fc555[_0x57adeb(0x1f2)]['id'],_0x380ecf=this[_0x57adeb(0x249)][_0x57adeb(0x1c2)];if(!_0x380ecf||_0x2f7178[_0x57adeb(0x22f)](_0x380ecf,_0x17f813)){this[_0x57adeb(0x275)]({'currentPlayingVideoId':_0x17f813});return;}const {active:_0xec5bb2}=this[_0x57adeb(0x249)];let _0x3c2473=null;if(_0x2f7178[_0x57adeb(0x22f)](_0xec5bb2,0x0)){const {subActive:_0x3c4cb4,subTabs:_0x5b37e7,posts:_0x1b8a03}=this[_0x57adeb(0x249)],_0x5f4b6e=_0x5b37e7[_0x3c4cb4][_0x57adeb(0x1c6)],_0x472666=_0x1b8a03[_0x5f4b6e]||[],_0x32194c=_0x472666[_0x57adeb(0x1ef)](_0x36f9d9=>_0x36f9d9['post']?.['id']===_0x380ecf);_0x2f7178[_0x57adeb(0x20a)](_0x32194c,-0x1)&&(_0x3c2473=this[_0x57adeb(0x22b)](_0x57adeb(0x23c)+_0x5f4b6e+'-'+_0x32194c));}else{if(_0x2f7178['IGDEP'](_0xec5bb2,0x1)){const {comments:_0x1fb6ad}=this[_0x57adeb(0x249)],_0x27fb14=_0x1fb6ad[_0x57adeb(0x1ef)](_0x1fa940=>_0x1fa940[_0x57adeb(0x279)]?.['id']===_0x380ecf);_0x2f7178['xLTGC'](_0x27fb14,-0x1)&&(_0x3c2473=this[_0x57adeb(0x22b)](_0x57adeb(0x23c)+_0x27fb14));}else{if(_0xec5bb2===0x2){const {collections:_0x6e6f01}=this[_0x57adeb(0x249)],_0x1a2f68=_0x6e6f01[_0x57adeb(0x1ef)](_0x1207d2=>_0x1207d2[_0x57adeb(0x279)]?.['id']===_0x380ecf);_0x1a2f68!==-0x1&&(_0x3c2473=this[_0x57adeb(0x22b)](_0x57adeb(0x23c)+_0x1a2f68));}}}_0x3c2473&&_0x2f7178[_0x57adeb(0x22f)](typeof _0x3c2473[_0x57adeb(0x24b)],_0x2f7178[_0x57adeb(0x24d)])&&_0x3c2473[_0x57adeb(0x24b)](),this[_0x57adeb(0x275)]({'currentPlayingVideoId':_0x17f813});},'onPauseAllVideo'(){const _0x56f76b=_0x3ee1,_0x2a8f26={'FlDZJ':function(_0x46a7e2,_0x2a0a74){return _0x46a7e2===_0x2a0a74;},'jCXaN':function(_0x25c343,_0x476a8e){return _0x25c343!==_0x476a8e;},'xDbVP':function(_0x4fc054,_0xb6628b){return _0x4fc054===_0xb6628b;},'TgOpR':_0x56f76b(0x206)},_0x48bf95=this['data']['currentPlayingVideoId'];if(!_0x48bf95)return;let _0x2f12b2=null;if(_0x2a8f26[_0x56f76b(0x22e)](this[_0x56f76b(0x249)][_0x56f76b(0x210)],0x0)){const _0x3eb609=this[_0x56f76b(0x249)]['subTabs']?.[this[_0x56f76b(0x249)][_0x56f76b(0x240)]]?.[_0x56f76b(0x1c6)]||0x1,_0x63ec72=this[_0x56f76b(0x249)]['posts'][_0x3eb609]||[],_0x147244=_0x63ec72[_0x56f76b(0x1ef)](_0x4e2e2c=>_0x4e2e2c[_0x56f76b(0x279)]?.['id']===_0x48bf95);_0x2a8f26[_0x56f76b(0x21a)](_0x147244,-0x1)&&(_0x2f12b2=this[_0x56f76b(0x22b)](_0x56f76b(0x23c)+_0x3eb609+'-'+_0x147244));}else{if(_0x2a8f26[_0x56f76b(0x22e)](this[_0x56f76b(0x249)][_0x56f76b(0x210)],0x1)){const _0x2690a7=this[_0x56f76b(0x249)][_0x56f76b(0x1c8)]['findIndex'](_0x58c75e=>_0x58c75e['post']?.['id']===_0x48bf95);_0x2690a7!==-0x1&&(_0x2f12b2=this['selectComponent'](_0x56f76b(0x23c)+_0x2690a7));}else{if(_0x2a8f26[_0x56f76b(0x1f5)](this[_0x56f76b(0x249)][_0x56f76b(0x210)],0x2)){const _0x2099cc=this[_0x56f76b(0x249)][_0x56f76b(0x23e)][_0x56f76b(0x1ef)](_0xc6d659=>_0xc6d659[_0x56f76b(0x279)]?.['id']===_0x48bf95);_0x2a8f26['jCXaN'](_0x2099cc,-0x1)&&(_0x2f12b2=this[_0x56f76b(0x22b)](_0x56f76b(0x23c)+_0x2099cc));}}}_0x2f12b2&&_0x2a8f26[_0x56f76b(0x22e)](typeof _0x2f12b2[_0x56f76b(0x24b)],_0x2a8f26[_0x56f76b(0x23d)])&&_0x2f12b2[_0x56f76b(0x24b)](),this['setData']({'currentPlayingVideoId':null});}});
|