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.
Files changed (47) hide show
  1. package/app.js +1 -22
  2. package/assets/file/badwords.js +1 -63008
  3. package/assets/file/rules.js +1 -38
  4. package/components/bottomSheet/bottomSheet.js +1 -473
  5. package/components/experience-item/experience-item.js +1 -105
  6. package/components/grid-item/grid-item.js +1 -8
  7. package/components/post-item/post-item.js +1 -1086
  8. package/components/wiki-renderer/wiki-renderer.js +1 -636
  9. package/components/wiki-tabs/wiki-tabs.js +1 -52
  10. package/index.js +1 -49
  11. package/package.json +2 -22
  12. package/pages/addGame/addGame.js +1 -454
  13. package/pages/addSubject/addSubject.js +1 -199
  14. package/pages/commonLogin/commonLogin.js +1 -269
  15. package/pages/copyOfficial/copyOfficial.js +1 -25
  16. package/pages/demo/demo.js +1 -23
  17. package/pages/game/game.js +1 -1305
  18. package/pages/home/home.js +1 -665
  19. package/pages/lottery-winners/lottery-winners.js +1 -60
  20. package/pages/message/messageCommentsAndAt/messageCommentsAndAt.js +1 -178
  21. package/pages/message/messageEntire/messageEntire.js +1 -112
  22. package/pages/message/messageLikeAndCollect/messageLikeAndCollect.js +1 -147
  23. package/pages/message/messageNewFans/messageNewFans.js +1 -139
  24. package/pages/officialWebview/officialWebview.js +1 -13
  25. package/pages/post/post.js +1 -1856
  26. package/pages/post-editor/post-editor.js +1 -465
  27. package/pages/postDialog/postDialog.js +1 -560
  28. package/pages/report-category/report-category.js +1 -29
  29. package/pages/report-form/report-form.js +1 -65
  30. package/pages/sevenDaySignDetail/sevenDaySignDetail.js +1 -273
  31. package/pages/topic/topic.js +1 -266
  32. package/pages/user/user.js +1 -939
  33. package/pages/userDatum/userDatum.js +1 -24
  34. package/pages/userGameLib/userGameLib.js +1 -105
  35. package/pages/webview/webview.js +1 -25
  36. package/pages/wheelActivivty/wheelActivivty.js +1 -492
  37. package/pages/wiki/wiki.js +1 -138
  38. package/request/JKRequest.js +1 -177
  39. package/services/home.js +1 -603
  40. package/utils/auth.js +1 -17
  41. package/utils/base64.js +1 -67
  42. package/utils/compressImage.js +1 -41
  43. package/utils/exp.js +1 -49
  44. package/utils/formatPost.js +1 -18
  45. package/utils/parseContent.js +1 -191
  46. package/utils/query-select.js +1 -9
  47. package/utils/sensitive.js +1 -82
@@ -1,560 +1 @@
1
- import {
2
- emojiMap
3
- } from "../../components/post-item/post-item"
4
- import {
5
- queryMoreShareComments,
6
-
7
- } from "../../services/home";
8
- import formatUTC from "../../utils/formatPost.js"
9
-
10
- import {
11
- checkLogin
12
- } from "../../utils/auth"
13
-
14
- Page({
15
- data: {
16
- item: {},
17
- itemDetial: {},
18
- postId: 0,
19
- contentParts: [],
20
- commentedContentParts: [],
21
- sharedContentParts: [],
22
- comments: [],
23
- likes: [],
24
- shares: [],
25
- showFull: false,
26
- needShowReadMore: false,
27
- isLongImage: false,
28
- isSuperLongImage: false,
29
- isHorizonImage: false,
30
- loading: true,
31
- floorPage: 1,
32
- floorHasMore: true,
33
- isLoadingMore: false
34
- },
35
-
36
- onLoad(options) {
37
- const postId = options.id;
38
- const isCommentIn = options.isCommentIn
39
- this.setData({
40
- postId,
41
- isCommentIn
42
- });
43
- this.fetchPostDetail(postId).then(res => {
44
- const currentUserId = wx.getStorageSync('appuid');
45
- const isOwner = this.data.item.user.id === currentUserId;
46
- this.setData({
47
- isOwner
48
- });
49
- if (this.data.isCommentIn) {
50
- this.setData({
51
- showSheet: true,
52
- originPost: this.data.item,
53
- commentData: null
54
- });
55
- }
56
- });
57
- },
58
-
59
- onImageLoad(e) {
60
- const {
61
- width,
62
- height
63
- } = e.detail;
64
- const ratio = height / width;
65
-
66
- this.setData({
67
- isLongImage: ratio > 3 && ratio <= 4,
68
- isSuperLongImage: ratio > 4,
69
- isHorizonImage: ratio < 1
70
- });
71
- },
72
-
73
- async fetchPostDetail(postId) {
74
- try {
75
- const res = await queryMoreShareComments(postId, 1);
76
-
77
- if (res.code !== 0 || !Array.isArray(res.data)) {
78
- this.setData({
79
- loading: false
80
- });
81
- wx.showToast({
82
- title: '加载失败',
83
- icon: 'none'
84
- });
85
- return;
86
- }
87
-
88
- const dataList = res.data.map(item => this.formatPost(item));
89
-
90
- // 第一个是楼主
91
- const mainPostItem = dataList[0];
92
- // 初始化楼主图片 meta(只取第一张,和你原逻辑一致)
93
- const mainFirstImg = mainPostItem.post.imageArray?.[0] || null;
94
- if (mainFirstImg) {
95
- mainPostItem.imageMeta = {
96
- src: mainFirstImg,
97
- isLong: false,
98
- isSuperLong: false,
99
- isHorizon: false
100
- };
101
- }
102
-
103
-
104
- const contentParts = this.injectTitle(
105
- this.parseContent(mainPostItem.post.content, mainPostItem.post.imageArray),
106
- mainPostItem.post.title
107
- );
108
-
109
- this.initVoteData(mainPostItem.post.vote);
110
- this.initLotteryData(mainPostItem.post.lottery);
111
-
112
-
113
- // 剩余楼层
114
- const floorPosts = dataList.slice(1).map(item => {
115
- return {
116
- ...item,
117
- contentParts: this.parseContent(item.post.content)
118
- };
119
- });
120
-
121
- this.setData({
122
- loading: false,
123
- item: mainPostItem,
124
- contentParts,
125
- floorPosts
126
- });
127
-
128
- } catch (err) {
129
- this.setData({
130
- loading: false
131
- });
132
- console.error('加载帖子详情失败:', err);
133
- wx.showToast({
134
- title: '加载失败',
135
- icon: 'none'
136
- });
137
- }
138
- },
139
-
140
- onReachBottom() {
141
- this.loadMoreFloors();
142
- },
143
-
144
- async loadMoreFloors() {
145
- if (this.data.isLoadingMore || !this.data.floorHasMore) return;
146
-
147
- this.setData({
148
- isLoadingMore: true
149
- });
150
-
151
- const nextPage = this.data.floorPage + 1;
152
-
153
- try {
154
- const res = await queryMoreShareComments(this.data.postId, nextPage);
155
-
156
- if (res.code !== 0 || !Array.isArray(res.data) || res.data.length === 0) {
157
- this.setData({
158
- floorHasMore: false,
159
- isLoadingMore: false
160
- });
161
- return;
162
- }
163
-
164
- const newFloors = res.data.map(item => {
165
- const formatted = this.formatPost(item);
166
- return {
167
- ...formatted,
168
- contentParts: this.parseContent(formatted.post.content)
169
- };
170
- });
171
-
172
- this.setData({
173
- floorPosts: this.data.floorPosts.concat(newFloors),
174
- floorPage: nextPage,
175
- isLoadingMore: true
176
- });
177
-
178
- // 如果这页数据量很少,认为没更多了
179
- if (res.data.length < 15) {
180
- this.setData({
181
- floorHasMore: false
182
- });
183
- }
184
-
185
- } catch (err) {
186
- console.error('加载更多失败', err);
187
- } finally {
188
- this.setData({
189
- isLoadingMore: false
190
- });
191
- }
192
- },
193
- initVoteData(vote) {
194
- if (!vote) return;
195
-
196
- const userVotes = vote.user_votes || [];
197
- const isVoted = userVotes.length > 0;
198
- const isVoteEnded = Date.now() > vote.end_time * 1000;
199
-
200
-
201
- // 处理选项
202
- const voteOptions = vote.options.map(o => ({
203
- ...o,
204
- _selected: userVotes.includes(o.id),
205
- vote_count: o.vote_count || 0
206
- }));
207
-
208
- const hasAnyImage = voteOptions.some(o => o.option_image); // 假设选项图片字段是 o.image
209
-
210
-
211
- // 如果已投票,计算百分比
212
- if (isVoted || isVoteEnded) {
213
- const total = voteOptions.reduce((sum, o) => sum + o.vote_count, 0);
214
- voteOptions.forEach(o => {
215
- o.percent = total > 0 ? ((o.vote_count / total) * 100).toFixed(1) : '0.0';
216
- });
217
- }
218
-
219
- this.setData({
220
- voteOptions,
221
- isVoted,
222
- selectedVotes: [],
223
- isVoteEnded: Date.now() > vote.end_time * 1000,
224
- voteEndTime: vote.end_time ? this.formatTime(vote.end_time) : null,
225
- voteTitle: this.getVoteTitle(isVoted, vote),
226
- showVoteImages: hasAnyImage
227
-
228
- });
229
- },
230
- getVoteTitle(isVoted, vote) {
231
- const typeName = vote.max_choices === 1 ? "单选" : `${vote.max_choices}选`;
232
- this.setData({
233
- typeName: typeName
234
- })
235
-
236
- if (Date.now() > vote.end_time * 1000) {
237
- return `投票已结束`;
238
- }
239
-
240
- return isVoted ? `已投票` : `参与投票`;
241
- },
242
- formatTime(ts) {
243
- const d = new Date(ts * 1000);
244
-
245
- const Y = d.getFullYear();
246
- const M = String(d.getMonth() + 1).padStart(2, '0');
247
- const D = String(d.getDate()).padStart(2, '0');
248
- const h = String(d.getHours()).padStart(2, '0');
249
- const m = String(d.getMinutes()).padStart(2, '0');
250
-
251
- return `${Y}-${M}-${D} ${h}:${m}`;
252
- },
253
-
254
- initLotteryData(lottery) {
255
- if (!lottery) return;
256
-
257
- const now = Date.now() / 1000;
258
- const isEnded = now > lottery.end_time;
259
-
260
- const conditionTextMap = {
261
- 1: '评论此贴',
262
- 2: '转发此贴',
263
- 3: '评论并转发此贴',
264
- 4: '发表话题',
265
- 5: '关注作者',
266
- 6: '关注游戏'
267
- };
268
-
269
- const lotteryConditions = (lottery.conditions || []).map((cond, idx) => {
270
- let parts = [];
271
-
272
- switch (cond.condition_type) {
273
- case 1:
274
- case 2:
275
- case 3:
276
- case 5:
277
- parts.push({
278
- text: conditionTextMap[cond.condition_type],
279
- color: '#333',
280
- clickable: false
281
- });
282
- break;
283
-
284
- case 4: // 发表话题
285
- parts.push({
286
- text: '发表话题',
287
- color: '#333',
288
- clickable: false
289
- });
290
- parts.push({
291
- text: `#${cond.condition_value}#`,
292
- color: '#406ce3',
293
- clickable: true,
294
- data: {
295
- type: 'topic',
296
- name: cond.condition_value
297
- }
298
- });
299
- break;
300
-
301
- case 6: // 关注游戏
302
- parts.push({
303
- text: '关注游戏',
304
- color: '#333',
305
- clickable: false
306
- });
307
-
308
-
309
- parts.push({
310
- text: `$${cond.condition_value.game_name}`,
311
- color: '#406ce3',
312
- clickable: true,
313
- data: {
314
- type: 'game',
315
- id: cond.condition_value.game_id
316
- }
317
- });
318
- break;
319
- }
320
-
321
- return {
322
- index: idx + 1,
323
- parts
324
- };
325
- });
326
-
327
- this.setData({
328
- lotteryInfo: {
329
- ...lottery,
330
- isEnded,
331
- winnerCount: lottery.winner_count,
332
- conditions: lotteryConditions,
333
- endTimeText: this.formatTime(lottery.end_time)
334
- }
335
- });
336
- },
337
-
338
- // 点击抽奖条件(话题/游戏)
339
- onLotteryConditionTap(e) {
340
- const {
341
- type,
342
- name,
343
- id
344
- } = e.currentTarget.dataset;
345
- if (!type) return;
346
-
347
- if (type === 'topic') {
348
- wx.navigateTo({
349
- url: `../topic/topic?topic_name=${encodeURIComponent(name)}`
350
- });
351
- } else if (type === 'game') {
352
- wx.navigateTo({
353
- url: `../game/game?id=${id}`
354
- });
355
- }
356
- },
357
-
358
- // 查看中奖名单
359
- // 查看中奖名单
360
- onViewWinners() {
361
- if (!checkLogin()) return;
362
- const postItem = this.data.item;
363
-
364
- // 构造抽奖公示页需要的最小帖子对象
365
- const post = {
366
- id: postItem.post.id,
367
- user_id: postItem.user.id, // 发帖人 id(用于判断发起人)
368
- nickname: postItem.user.nickname, // 发帖人昵称
369
- avatar: postItem.user.avatar, // 发帖人头像
370
- cover: postItem.post.imageArray?.[0] || '', // 帖子图(第一张)
371
- content: postItem.post.content // 帖子内容
372
- };
373
-
374
- wx.navigateTo({
375
- url: `../lottery-winners/lottery-winners?post=${encodeURIComponent(
376
- JSON.stringify(post)
377
- )}`
378
- });
379
- },
380
- injectTitle(parts, title) {
381
- if (!title) return parts;
382
- parts.unshift({
383
- text: title,
384
- color: '#000',
385
- type: 'title'
386
- });
387
- parts.splice(1, 0, {
388
- type: 'br'
389
- });
390
- return parts;
391
- },
392
-
393
- // 以下解析、点赞、收藏、关注、投票、评论等逻辑保留
394
- parseContent(content, images = [], isShared) {
395
- const parts = [];
396
- const regex = /(#[^#]+#)|(\{@(.*?)\|(\d+)\})|<font bold=true>|<font bold=false>|<sign_line>|<feature_blog>|<img src='([^']+)'>|<click_img src='[^']+' text='([^']+)'>|<color_grey text='([^']+)'>|<local_img src='([^']+).image'>|<jump_url url='([^']+)'>|(\[\/\d+\])|{\$([^|]+)\|([^}]+)}/g;
397
- let lastIndex = 0,
398
- match;
399
- while ((match = regex.exec(content)) !== null) {
400
- if (match.index > lastIndex) {
401
- const plainText = content.slice(lastIndex, match.index);
402
- this.pushWithLineBreak(parts, plainText);
403
- }
404
- if (match[1]) parts.push({
405
- text: match[1],
406
- color: '#406ce3',
407
- type: 'topic'
408
- });
409
- else if (match[2]) parts.push({
410
- text: `@${match[3]}`,
411
- color: '#406ce3',
412
- type: 'at',
413
- userId: match[4]
414
- });
415
- else if (match[5]) parts.push({
416
- text: '[图片]',
417
- src: match[5],
418
- type: 'img'
419
- });
420
- else if (match[6]) parts.push({
421
- text: match[6],
422
- src: match[6],
423
- type: 'click_img'
424
- });
425
- else if (match[7]) parts.push({
426
- text: match[7],
427
- color: '#999'
428
- });
429
- else if (match[8]) parts.push({
430
- text: '',
431
- src: match[8],
432
- type: 'local_img'
433
- });
434
- else if (match[9]) parts.push({
435
- text: '§网页链接',
436
- url: match[9],
437
- type: 'jump_url',
438
- color: '#406ce3'
439
- });
440
- else if (match[10]) {
441
- const code = match[10].match(/\[\/(\d+)\]/)[1];
442
- const file = emojiMap[code];
443
- parts.push(file ? {
444
- type: 'emoji',
445
- src: `../../assets/images/emoji/${file}`
446
- } : {
447
- text: match[10],
448
- color: '#333'
449
- });
450
- } else if (match[11] && match[12]) parts.push({
451
- text: `$${match[11]}`,
452
- gameId: match[12],
453
- type: 'game',
454
- color: '#406ce3'
455
- });
456
- else if (match[0] === '<font bold=true>') parts.push({
457
- text: '',
458
- bold: true
459
- });
460
- else if (match[0] === '<font bold=false>') parts.push({
461
- text: '',
462
- bold: false
463
- });
464
- else if (match[0] === '<sign_line>') parts.push({
465
- text: '————',
466
- type: 'line'
467
- });
468
- else if (match[0] === '<feature_blog>') parts.push({
469
- text: '[加精]',
470
- type: 'feature'
471
- });
472
- lastIndex = regex.lastIndex;
473
- }
474
- if (lastIndex < content?.length) this.pushWithLineBreak(parts, content.slice(lastIndex));
475
- if (isShared && images.length) images.forEach(src => parts.push({
476
- type: 'image',
477
- text: '[查看图片]',
478
- color: '#406ce3',
479
- src
480
- }));
481
- return parts;
482
- },
483
-
484
- pushWithLineBreak(parts, text) {
485
- const segments = text.split(/(\r\n|\n|\r)/);
486
- segments.forEach(seg => {
487
- if (seg.match(/\r\n|\n|\r/)) parts.push({
488
- type: 'br'
489
- });
490
- else if (seg.length > 0) parts.push({
491
- text: seg,
492
- color: '#333'
493
- });
494
- });
495
- },
496
-
497
- formatPost(item) {
498
- const newItem = {
499
- ...item,
500
- post: {
501
- ...item.post,
502
- formatTime: formatUTC(item.post.created_at),
503
- imageArray: item.post.images ? item.post.images.split(',') : []
504
- }
505
- };
506
- if (item.shared && item.shared.post) {
507
- newItem.shared = {
508
- ...item.shared,
509
- post: {
510
- ...item.shared.post,
511
- formatTime: formatUTC(item.shared.post.created_at),
512
- imageArray: item.shared.post.images ? item.shared.post.images.split(',') : []
513
- }
514
- };
515
- }
516
- return newItem;
517
- },
518
-
519
-
520
- onPartTap(e) {
521
- const {
522
- type,
523
- id,
524
- text
525
- } = e.currentTarget.dataset;
526
- switch (type) {
527
- case 'topic':
528
- const topicText = text;
529
- const topicName = topicText.replace(/#/g, ''); // 去掉首尾 #
530
- wx.navigateTo({
531
- url: `../topic/topic?topic_name=${encodeURIComponent(topicName)}`
532
- });
533
- break;
534
-
535
- case 'at':
536
- wx.navigateTo({
537
- url: `../user/user?id=${id}`
538
- });
539
- break;
540
-
541
- case 'game':
542
- wx.navigateTo({
543
- url: `../game/game?id=${id}`
544
- });
545
- break;
546
-
547
- }
548
- },
549
-
550
- onJumpUrlTap(e) {
551
- const url = e.currentTarget.dataset.url;
552
-
553
- if (!url) return;
554
-
555
- wx.navigateTo({
556
- url: `../webview/webview?url=${encodeURIComponent(url)}`
557
- });
558
- },
559
-
560
- });
1
+ function _0x2f85(){const _0x530606=['u3jLrxq','C2HHCMvK','lI4Vz2fTzs9Nyw1Lp2LKpq','Aw1Hz2u','mtC3mdq2mwP0wuDPBq','6k+e6k665Q2K6ls0','AxnmB2fKAw5Ntw9Yzq','BgLUzq','z2fTzv9Uyw1L','lI4VBg90DgvYEs13Aw5UzxjZl2XVDhrLCNKTD2LUBMvYCZ9WB3n0pq','otGWodaYnLjcv3rXEa','rNvQtvu','Aw5PDfzVDgveyxrH','zM9YBwf0ug9ZDa','DxnLCG','y29UDgvUDa','qLjXC3a','rg5jBxm','Bg9Hze1VCMvgBg9VCNm','C3bSAwnL','5yQG6l295BIw5A2q6k+M5Oof5AsX6lsLoG','DgXQAKi','C2HVD1rVyxn0','Cg9ZDa','z2v0u3rVCMfNzvn5BMm','C2XPy2u','Aw1Hz2vnzxrH','iZmZmW','Dg9WAwm','zMXVB3jqywDL','y3fJCKK','C2v0rgf0yq','lI4VD2vIDMLLDY93zwj2Awv3p3vYBd0','DM90zq','WQFNVzhPOBxPK77MJQu','BMLJA25HBwu','uNLqzxC','z2v0tw9UDgG','C3rYAw5NAwz5','z2v0twLUDxrLCW','Cg9ZDeLK','CvLxrhi','s2nHChe','DgHLBG','lI4VDg9WAwmVDg9WAwm/Dg9WAwnFBMfTzt0','iZqWnMnLmW','5y+r6kgO6k+D6Aky','lI4VlI4VyxnZzxrZl2LTywDLCY9LBw9QAs8','4Ocu4Ocu4Ocu4Ocu','5yQG6l295PU05AsA5AsX6lsL','Dw5ZAgLMDa','nJzswLbeqKe','DgTIvxK','C3jUEve','BKzNsfG','EwjTBu8','vNzgsxy','C3bSAxq','Aejds3O','CKLKwfG','txfOvuO','CgfYC2vdB250zw50','BMf2AwDHDgvuBW','DxnLCL92B3rLCW','y29Kzq','ChvZAa','Buvprvi','AxndB21Tzw50sw4','y3jLyxrLzf9HDa','DgL0Bgu','B3b0Aw9Ux2LTywDL','ANvTCf91CMW','ntK2mteWDMn1v2LA','BxDrAu0','zw5Kx3rPBwu','iZK5oq','wePZr3q','BLj4uwe','iZaWma','5y+c5lIo5OQv56wO','qMHgtum','Aw5PDeXVDhrLCNLeyxrH','q3PIBhe','5ywZ5RoO5RI45OIp','Bwf4x2nOB2LJzxm','EvjiA1e','B3b0Aw9UCW','u1zuswO','BgfZDeLUzgv4','DxjS','Aw1Hz2vZ','zgv0ywLS','Dg9gAxHLza','B0TWEMG','DNv4y1m','v25ysLm','y29UzgL0Aw9UCW','z2v0vM90zvrPDgXL','odK5nJbWy2DtzuK','zw1VAMK','pgzLyxr1CMvFyMXVzZ4','zwfNyvC','Ce16EKO','pgzVBNqGyM9Szd1MywXZzt4','CMvWBgfJzq','Aw1Hz2vbCNjHEq','Aw1N','ogLPrKnJvW','zM9YBwf0vgLTzq','CMvKDwnL','DM90zv9JB3vUDa','CgfKu3rHCNq','qLvhzK0','zgf0yxnLDa','CgHYsMK','AxnbCNjHEq','BM9Uzq','Aw5JBhvKzxm','Bwf0y2G','D2LUBMvYx2nVDw50','su5tBwS','mJm1nde3mNrgA2TKzq','yxzHDgfY','B0vfA1u','zMXVB3jqB3n0CW','AxrLBq','C21SuK4','s1bRD1C','CM5evxa','C29Tzq','ChvZAfDPDgHmAw5LqNjLywS','5OQv56wO5BEY57Ut5P2F','wgjnuLC','DeXTzve','zxHLyW','tMz6C0G','rvjrEeC','EK1LvLG','B215B2S','uvLiEgG','Den4CMu','5yQG6l295AsX6lsL','qLPosNC','Aw5Qzwn0vgL0Bgu','BwfW','rLHqv08','BM93','DKXsBNG','zMv0y2HqB3n0rgv0ywLS','y29UzgL0Aw9Ux3zHBhvL','zM9YrwfJAa','w+AFPEECI+wBVUEjH10','Agzezwe','z2v0sg91CNm','z2fTzq','w+wkOoEYVL0','zff5Cu0','rg55B08','y3rpCgK','mZK4mJyYntfsrfjSCvO','ndmXnZKZv3blvNjV','y3vYCMvUDfrHCMDLDa','Evzrshu','yxbWDwLK','zgf0yq','vhrHBhC','zLPzrvq','y29UzgL0Aw9Ux3r5Cgu','BgvUz3rO'];_0x2f85=function(){return _0x530606;};return _0x2f85();}(function(_0x2be89d,_0x3a4b71){const _0x37f24e=_0x4264,_0x58d4d6=_0x2be89d();while(!![]){try{const _0x2c7581=-parseInt(_0x37f24e(0x111))/0x1+-parseInt(_0x37f24e(0xea))/0x2+-parseInt(_0x37f24e(0xa4))/0x3*(parseInt(_0x37f24e(0xd3))/0x4)+-parseInt(_0x37f24e(0xb9))/0x5+-parseInt(_0x37f24e(0x124))/0x6+-parseInt(_0x37f24e(0x11e))/0x7*(-parseInt(_0x37f24e(0xdc))/0x8)+parseInt(_0x37f24e(0x110))/0x9;if(_0x2c7581===_0x3a4b71)break;else _0x58d4d6['push'](_0x58d4d6['shift']());}catch(_0x57b37e){_0x58d4d6['push'](_0x58d4d6['shift']());}}}(_0x2f85,0xc851e));import{emojiMap}from'../../components/post-item/post-item';import{queryMoreShareComments}from'../../services/home';function _0x4264(_0x10262f,_0x3895dc){_0x10262f=_0x10262f-0x8e;const _0x2f85fa=_0x2f85();let _0x4264e1=_0x2f85fa[_0x10262f];if(_0x4264['sVcGDc']===undefined){var _0x5c8700=function(_0x2360e5){const _0x2818ff='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x519b92='',_0x2b3504='';for(let _0x318e44=0x0,_0x5b7ad6,_0x418fc2,_0x3f6ed6=0x0;_0x418fc2=_0x2360e5['charAt'](_0x3f6ed6++);~_0x418fc2&&(_0x5b7ad6=_0x318e44%0x4?_0x5b7ad6*0x40+_0x418fc2:_0x418fc2,_0x318e44++%0x4)?_0x519b92+=String['fromCharCode'](0xff&_0x5b7ad6>>(-0x2*_0x318e44&0x6)):0x0){_0x418fc2=_0x2818ff['indexOf'](_0x418fc2);}for(let _0x3c49b6=0x0,_0x56e521=_0x519b92['length'];_0x3c49b6<_0x56e521;_0x3c49b6++){_0x2b3504+='%'+('00'+_0x519b92['charCodeAt'](_0x3c49b6)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2b3504);};_0x4264['pqAGsh']=_0x5c8700,_0x4264['fxtZuL']={},_0x4264['sVcGDc']=!![];}const _0x295315=_0x2f85fa[0x0],_0x535ad6=_0x10262f+_0x295315,_0x566c45=_0x4264['fxtZuL'][_0x535ad6];return!_0x566c45?(_0x4264e1=_0x4264['pqAGsh'](_0x4264e1),_0x4264['fxtZuL'][_0x535ad6]=_0x4264e1):_0x4264e1=_0x566c45,_0x4264e1;}import _0x45bbad from'../../utils/formatPost.js';import{checkLogin}from'../../utils/auth';Page({'data':{'item':{},'itemDetial':{},'postId':0x0,'contentParts':[],'commentedContentParts':[],'sharedContentParts':[],'comments':[],'likes':[],'shares':[],'showFull':![],'needShowReadMore':![],'isLongImage':![],'isSuperLongImage':![],'isHorizonImage':![],'loading':!![],'floorPage':0x1,'floorHasMore':!![],'isLoadingMore':![]},'onLoad'(_0x51b9ee){const _0x249603=_0x4264,_0x22339d=_0x51b9ee['id'],_0x122d01=_0x51b9ee[_0x249603(0xb4)];this[_0x249603(0x90)]({'postId':_0x22339d,'isCommentIn':_0x122d01}),this[_0x249603(0x105)](_0x22339d)[_0x249603(0x9c)](_0x1494f9=>{const _0x243cde=_0x249603,_0x1b2f97=wx[_0x243cde(0x132)](_0x243cde(0x114)),_0x38f992=this[_0x243cde(0x115)][_0x243cde(0xee)][_0x243cde(0x128)]['id']===_0x1b2f97;this[_0x243cde(0x90)]({'isOwner':_0x38f992}),this[_0x243cde(0x115)][_0x243cde(0xb4)]&&this[_0x243cde(0x90)]({'showSheet':!![],'originPost':this[_0x243cde(0x115)][_0x243cde(0xee)],'commentData':null});});},'onImageLoad'(_0x428993){const _0x3dd002=_0x4264,_0x1d25fd={'tLmeQ':function(_0x384489,_0x5552fe){return _0x384489/_0x5552fe;},'hfDea':function(_0x3ee417,_0x336db3){return _0x3ee417>_0x336db3;},'DnyoO':function(_0x32bdb3,_0x5800a2){return _0x32bdb3<=_0x5800a2;},'jZUoC':function(_0xa8d941,_0x1368c9){return _0xa8d941<_0x1368c9;}},{width:_0x53eefa,height:_0x263b92}=_0x428993[_0x3dd002(0xcc)],_0x4e37e4=_0x1d25fd[_0x3dd002(0xf6)](_0x263b92,_0x53eefa);this['setData']({'isLongImage':_0x1d25fd[_0x3dd002(0x109)](_0x4e37e4,0x3)&&_0x1d25fd[_0x3dd002(0x10e)](_0x4e37e4,0x4),'isSuperLongImage':_0x1d25fd['hfDea'](_0x4e37e4,0x4),'isHorizonImage':_0x1d25fd['jZUoC'](_0x4e37e4,0x1)});},async 'fetchPostDetail'(_0x38ab14){const _0x3c9df4=_0x4264,_0x4cd347={'XbMRW':function(_0x3766d1,_0x300921){return _0x3766d1!==_0x300921;},'Kcapq':'加载失败','INSmk':_0x3c9df4(0xe5),'hBCKz':_0x3c9df4(0x12e)};try{const _0x22edb0=await queryMoreShareComments(_0x38ab14,0x1);if(_0x4cd347[_0x3c9df4(0xf5)](_0x22edb0[_0x3c9df4(0xb1)],0x0)||!Array[_0x3c9df4(0xe4)](_0x22edb0['data'])){this[_0x3c9df4(0x90)]({'loading':![]}),wx[_0x3c9df4(0x130)]({'title':_0x4cd347[_0x3c9df4(0x9b)],'icon':_0x4cd347[_0x3c9df4(0xe9)]});return;}const _0x46f4eb=_0x22edb0[_0x3c9df4(0x115)][_0x3c9df4(0x101)](_0x51f95f=>this[_0x3c9df4(0x127)](_0x51f95f)),_0x307ae3=_0x46f4eb[0x0],_0x2b9d64=_0x307ae3['post'][_0x3c9df4(0xda)]?.[0x0]||null;_0x2b9d64&&(_0x307ae3[_0x3c9df4(0x134)]={'src':_0x2b9d64,'isLong':![],'isSuperLong':![],'isHorizon':![]});const _0x3b3a61=this[_0x3c9df4(0x100)](this[_0x3c9df4(0xae)](_0x307ae3[_0x3c9df4(0x131)][_0x3c9df4(0x129)],_0x307ae3[_0x3c9df4(0x131)][_0x3c9df4(0xda)]),_0x307ae3[_0x3c9df4(0x131)][_0x3c9df4(0xb6)]);this[_0x3c9df4(0x126)](_0x307ae3[_0x3c9df4(0x131)][_0x3c9df4(0x92)]),this[_0x3c9df4(0xc2)](_0x307ae3[_0x3c9df4(0x131)]['lottery']);const _0x3f0b06=_0x46f4eb['slice'](0x1)['map'](_0x2f38cf=>{const _0x1c1c3b=_0x3c9df4;return{..._0x2f38cf,'contentParts':this['parseContent'](_0x2f38cf[_0x1c1c3b(0x131)][_0x1c1c3b(0x129)])};});this[_0x3c9df4(0x90)]({'loading':![],'item':_0x307ae3,'contentParts':_0x3b3a61,'floorPosts':_0x3f0b06});}catch(_0x22bdd4){this['setData']({'loading':![]}),console['error'](_0x4cd347[_0x3c9df4(0xab)],_0x22bdd4),wx[_0x3c9df4(0x130)]({'title':_0x3c9df4(0xfe),'icon':_0x4cd347[_0x3c9df4(0xe9)]});}},'onReachBottom'(){const _0x1b151d=_0x4264;this[_0x1b151d(0x12c)]();},async 'loadMoreFloors'(){const _0x1504a8=_0x4264,_0x2a0821={'HUgIh':function(_0x2d1f3b,_0x4f54ce){return _0x2d1f3b+_0x4f54ce;},'tkbUy':function(_0x2e4d30,_0x48b80b,_0x5002e1){return _0x2e4d30(_0x48b80b,_0x5002e1);},'zMeVX':function(_0x4d2cd1,_0x2770cd){return _0x4d2cd1!==_0x2770cd;},'ntJrH':function(_0x3378a7,_0x3294cc){return _0x3378a7===_0x3294cc;},'fZYET':function(_0x2c0206,_0x4df920){return _0x2c0206<_0x4df920;}};if(this['data'][_0x1504a8(0x120)]||!this['data']['floorHasMore'])return;this[_0x1504a8(0x90)]({'isLoadingMore':!![]});const _0x1d57ca=_0x2a0821['HUgIh'](this[_0x1504a8(0x115)][_0x1504a8(0x8e)],0x1);try{const _0x421205=await _0x2a0821[_0x1504a8(0xa5)](queryMoreShareComments,this[_0x1504a8(0x115)][_0x1504a8(0x99)],_0x1d57ca);if(_0x2a0821[_0x1504a8(0xfa)](_0x421205[_0x1504a8(0xb1)],0x0)||!Array[_0x1504a8(0xe4)](_0x421205[_0x1504a8(0x115)])||_0x2a0821['ntJrH'](_0x421205[_0x1504a8(0x115)]['length'],0x0)){this['setData']({'floorHasMore':![],'isLoadingMore':![]});return;}const _0x7d8224=_0x421205[_0x1504a8(0x115)][_0x1504a8(0x101)](_0x4bc934=>{const _0x327827=_0x1504a8,_0x4551ca=this['formatPost'](_0x4bc934);return{..._0x4551ca,'contentParts':this[_0x327827(0xae)](_0x4551ca[_0x327827(0x131)][_0x327827(0x129)])};});this[_0x1504a8(0x90)]({'floorPosts':this[_0x1504a8(0x115)][_0x1504a8(0xed)]['concat'](_0x7d8224),'floorPage':_0x1d57ca,'isLoadingMore':!![]}),_0x2a0821[_0x1504a8(0x117)](_0x421205['data'][_0x1504a8(0x119)],0xf)&&this[_0x1504a8(0x90)]({'floorHasMore':![]});}catch(_0x52da31){console['error'](_0x1504a8(0xa2),_0x52da31);}finally{this[_0x1504a8(0x90)]({'isLoadingMore':![]});}},'initVoteData'(_0x469b38){const _0x4d9334=_0x4264,_0x547477={'XJsGt':function(_0x405ca8,_0x2c0199){return _0x405ca8>_0x2c0199;},'QYHxh':function(_0x1d3372,_0x4889a0){return _0x1d3372*_0x4889a0;},'pMzzJ':'0.0','RyPew':function(_0x32345c,_0x255af8){return _0x32345c>_0x255af8;},'eagaW':function(_0x14fd5f,_0x28466b){return _0x14fd5f||_0x28466b;}};if(!_0x469b38)return;const _0xfc84ad=_0x469b38[_0x4d9334(0xb0)]||[],_0x2d9338=_0x547477[_0x4d9334(0xbd)](_0xfc84ad[_0x4d9334(0x119)],0x0),_0x4d61d4=_0x547477[_0x4d9334(0x95)](Date[_0x4d9334(0x103)](),_0x469b38[_0x4d9334(0xbb)]*0x3e8),_0x86b2e=_0x469b38[_0x4d9334(0xc7)][_0x4d9334(0x101)](_0x58ba27=>({..._0x58ba27,'_selected':_0xfc84ad[_0x4d9334(0xe6)](_0x58ba27['id']),'vote_count':_0x58ba27[_0x4d9334(0xdf)]||0x0})),_0x519b61=_0x86b2e[_0x4d9334(0xf2)](_0x3456be=>_0x3456be[_0x4d9334(0xb7)]);if(_0x547477[_0x4d9334(0xd6)](_0x2d9338,_0x4d61d4)){const _0x3b6881=_0x86b2e[_0x4d9334(0xde)]((_0x1d81f9,_0x597651)=>_0x1d81f9+_0x597651[_0x4d9334(0xdf)],0x0);_0x86b2e[_0x4d9334(0x107)](_0x185158=>{const _0x96441a=_0x4d9334;_0x185158['percent']=_0x547477[_0x96441a(0xbd)](_0x3b6881,0x0)?_0x547477[_0x96441a(0xfc)](_0x185158[_0x96441a(0xdf)]/_0x3b6881,0x64)[_0x96441a(0xcd)](0x1):_0x547477[_0x96441a(0xd7)];});}this[_0x4d9334(0x90)]({'voteOptions':_0x86b2e,'isVoted':_0x2d9338,'selectedVotes':[],'isVoteEnded':_0x547477[_0x4d9334(0xbd)](Date[_0x4d9334(0x103)](),_0x547477['QYHxh'](_0x469b38[_0x4d9334(0xbb)],0x3e8)),'voteEndTime':_0x469b38['end_time']?this[_0x4d9334(0xdd)](_0x469b38[_0x4d9334(0xbb)]):null,'voteTitle':this[_0x4d9334(0xd2)](_0x2d9338,_0x469b38),'showVoteImages':_0x519b61});},'getVoteTitle'(_0x5b1961,_0xe2ba10){const _0x3d7e2d=_0x4264,_0x3d6a90={'BRqsp':function(_0x1add54,_0x51089c){return _0x1add54===_0x51089c;}},_0x4eaf5b=_0x3d6a90[_0x3d7e2d(0x12a)](_0xe2ba10['max_choices'],0x1)?'单选':_0xe2ba10[_0x3d7e2d(0xc5)]+'选';this[_0x3d7e2d(0x90)]({'typeName':_0x4eaf5b});if(Date[_0x3d7e2d(0x103)]()>_0xe2ba10[_0x3d7e2d(0xbb)]*0x3e8)return _0x3d7e2d(0xf4);return _0x5b1961?'已投票':_0x3d7e2d(0xc0);},'formatTime'(_0x361873){const _0x4e4177=_0x4264,_0x90d5c6={'tCxre':function(_0x40c82f,_0x2691ac){return _0x40c82f*_0x2691ac;},'mEOER':function(_0x50e954,_0x88bd9){return _0x50e954(_0x88bd9);},'ctOpi':function(_0x3f5e1b,_0x5e15c0){return _0x3f5e1b+_0x5e15c0;},'ERQxG':function(_0x1a569a,_0x329382){return _0x1a569a(_0x329382);}},_0x4a0c93=new Date(_0x90d5c6[_0x4e4177(0xfd)](_0x361873,0x3e8)),_0x4f0c4d=_0x4a0c93['getFullYear'](),_0x2db368=_0x90d5c6[_0x4e4177(0xb3)](String,_0x90d5c6[_0x4e4177(0x10f)](_0x4a0c93[_0x4e4177(0x96)](),0x1))['padStart'](0x2,'0'),_0x49a313=_0x90d5c6[_0x4e4177(0xf9)](String,_0x4a0c93['getDate']())['padStart'](0x2,'0'),_0x120c6c=_0x90d5c6[_0x4e4177(0xb3)](String,_0x4a0c93[_0x4e4177(0x10a)]())[_0x4e4177(0xe0)](0x2,'0'),_0x5e4fe2=_0x90d5c6['mEOER'](String,_0x4a0c93[_0x4e4177(0x98)]())[_0x4e4177(0xe0)](0x2,'0');return _0x4f0c4d+'-'+_0x2db368+'-'+_0x49a313+'\x20'+_0x120c6c+':'+_0x5e4fe2;},'initLotteryData'(_0x10f4d3){const _0x290606=_0x4264,_0x22b07e={'rnDUp':_0x290606(0x135),'smlRN':_0x290606(0x9e),'yVQHu':_0x290606(0x136),'Czblq':_0x290606(0x10b),'ikKkW':function(_0x45e56b,_0x296693){return _0x45e56b+_0x296693;},'omyok':function(_0x230fb7,_0x31f302){return _0x230fb7/_0x31f302;},'yRHkQ':function(_0x4404de,_0x2047d4){return _0x4404de>_0x2047d4;},'IhQXF':_0x290606(0x11f),'nFgHX':'转发此贴','Ttalw':'评论并转发此贴','mwQiM':_0x290606(0x9f),'jfdPj':'关注作者','LYDcx':_0x290606(0xc4)};if(!_0x10f4d3)return;const _0x427c2a=_0x22b07e[_0x290606(0xfb)](Date[_0x290606(0x103)](),0x3e8),_0x53fa94=_0x22b07e[_0x290606(0xc6)](_0x427c2a,_0x10f4d3['end_time']),_0x26168f={0x1:_0x22b07e['IhQXF'],0x2:_0x22b07e[_0x290606(0xa7)],0x3:_0x22b07e[_0x290606(0x116)],0x4:_0x22b07e[_0x290606(0xba)],0x5:_0x22b07e['jfdPj'],0x6:_0x22b07e['LYDcx']},_0x10551a=(_0x10f4d3[_0x290606(0xd1)]||[])[_0x290606(0x101)]((_0x4202d0,_0x259aaa)=>{const _0x5daafa=_0x290606;let _0x441711=[];switch(_0x4202d0['condition_type']){case 0x1:case 0x2:case 0x3:case 0x5:_0x441711[_0x5daafa(0xb2)]({'text':_0x26168f[_0x4202d0[_0x5daafa(0x118)]],'color':_0x22b07e['rnDUp'],'clickable':![]});break;case 0x4:_0x441711[_0x5daafa(0xb2)]({'text':_0x5daafa(0x9f),'color':_0x22b07e[_0x5daafa(0xf1)],'clickable':![]}),_0x441711[_0x5daafa(0xb2)]({'text':'#'+_0x4202d0[_0x5daafa(0x106)]+'#','color':_0x22b07e['smlRN'],'clickable':!![],'data':{'type':_0x22b07e[_0x5daafa(0x113)],'name':_0x4202d0['condition_value']}});break;case 0x6:_0x441711['push']({'text':_0x5daafa(0xc4),'color':_0x22b07e['rnDUp'],'clickable':![]}),_0x441711['push']({'text':'$'+_0x4202d0[_0x5daafa(0x106)][_0x5daafa(0x122)],'color':_0x22b07e[_0x5daafa(0xef)],'clickable':!![],'data':{'type':_0x22b07e[_0x5daafa(0xc3)],'id':_0x4202d0[_0x5daafa(0x106)]['game_id']}});break;}return{'index':_0x22b07e['ikKkW'](_0x259aaa,0x1),'parts':_0x441711};});this[_0x290606(0x90)]({'lotteryInfo':{..._0x10f4d3,'isEnded':_0x53fa94,'winnerCount':_0x10f4d3[_0x290606(0xe8)],'conditions':_0x10551a,'endTimeText':this[_0x290606(0xdd)](_0x10f4d3[_0x290606(0xbb)])}});},'onLotteryConditionTap'(_0x3c0e55){const _0x27280c=_0x4264,_0x2f5dfb={'uEEkI':function(_0x2fc3a4,_0x16f3da){return _0x2fc3a4===_0x16f3da;},'SVTIj':_0x27280c(0x136),'yeLtE':function(_0x3063d6,_0xff51b8){return _0x3063d6(_0xff51b8);},'vuxcS':_0x27280c(0x10b)},{type:_0x46bc40,name:_0x3c4ff6,id:_0x3a56ea}=_0x3c0e55[_0x27280c(0x112)][_0x27280c(0xe2)];if(!_0x46bc40)return;if(_0x2f5dfb['uEEkI'](_0x46bc40,_0x2f5dfb[_0x27280c(0xc8)]))wx['navigateTo']({'url':_0x27280c(0x9d)+_0x2f5dfb['yeLtE'](encodeURIComponent,_0x3c4ff6)});else _0x46bc40===_0x2f5dfb[_0x27280c(0xcf)]&&wx['navigateTo']({'url':_0x27280c(0x11c)+_0x3a56ea});},'onViewWinners'(){const _0x55882e=_0x4264,_0x85a68e={'Epoei':function(_0x53cc49){return _0x53cc49();},'BZNJw':function(_0x123fb5,_0xa9502c){return _0x123fb5(_0xa9502c);}};if(!_0x85a68e['Epoei'](checkLogin))return;const _0x4e2377=this['data']['item'],_0x36dc47={'id':_0x4e2377['post']['id'],'user_id':_0x4e2377[_0x55882e(0x128)]['id'],'nickname':_0x4e2377[_0x55882e(0x128)][_0x55882e(0x94)],'avatar':_0x4e2377[_0x55882e(0x128)][_0x55882e(0xeb)],'cover':_0x4e2377[_0x55882e(0x131)][_0x55882e(0xda)]?.[0x0]||'','content':_0x4e2377[_0x55882e(0x131)]['content']};wx[_0x55882e(0xaf)]({'url':_0x55882e(0x123)+_0x85a68e[_0x55882e(0xff)](encodeURIComponent,JSON[_0x55882e(0x97)](_0x36dc47))});},'injectTitle'(_0x46f8d7,_0x1cda5e){const _0x28cf50=_0x4264,_0xac1134={'JecMC':_0x28cf50(0xb6)};if(!_0x1cda5e)return _0x46f8d7;return _0x46f8d7[_0x28cf50(0xa3)]({'text':_0x1cda5e,'color':_0x28cf50(0xbf),'type':_0xac1134['JecMC']}),_0x46f8d7[_0x28cf50(0x12d)](0x1,0x0,{'type':'br'}),_0x46f8d7;},'parseContent'(_0x3367ff,_0x42a371=[],_0x2274ee){const _0x110d31=_0x4264,_0x1aa841={'oKpzh':function(_0x395e4b,_0x4712e5){return _0x395e4b!==_0x4712e5;},'Jpewg':function(_0x183345,_0x9eb5d4){return _0x183345>_0x9eb5d4;},'WnXJS':'#406ce3','tljjB':'topic','JMKgs':'[图片]','MqhUJ':_0x110d31(0xdb),'nRxQa':'click_img','BUGfM':_0x110d31(0xbc),'cqcrI':'local_img','VvFIv':_0x110d31(0x93),'phrJi':_0x110d31(0xb8),'KPkwW':_0x110d31(0xd4),'SreEt':function(_0x2961fd,_0x598a9e){return _0x2961fd===_0x598a9e;},'eNeKh':function(_0x1e66c4,_0xe220ed){return _0x1e66c4===_0xe220ed;},'dQyqM':'<sign_line>','FXPWO':_0x110d31(0xa1),'BhFMC':function(_0x3dc628,_0x237190){return _0x3dc628===_0x237190;},'qYWDr':_0x110d31(0xd5),'srnyQ':_0x110d31(0x10c),'FujMU':'feature'},_0x103555=[],_0x583a95=/(#[^#]+#)|(\{@(.*?)\|(\d+)\})|<font bold=true>|<font bold=false>|<sign_line>|<feature_blog>|<img src='([^']+)'>|<click_img src='[^']+' text='([^']+)'>|<color_grey text='([^']+)'>|<local_img src='([^']+).image'>|<jump_url url='([^']+)'>|(\[\/\d+\])|{\$([^|]+)\|([^}]+)}/g;let _0x51789a=0x0,_0x4a937a;while(_0x1aa841[_0x110d31(0xce)](_0x4a937a=_0x583a95[_0x110d31(0xf7)](_0x3367ff),null)){if(_0x1aa841['Jpewg'](_0x4a937a['index'],_0x51789a)){const _0x124512=_0x3367ff[_0x110d31(0x133)](_0x51789a,_0x4a937a['index']);this['pushWithLineBreak'](_0x103555,_0x124512);}if(_0x4a937a[0x1])_0x103555[_0x110d31(0xb2)]({'text':_0x4a937a[0x1],'color':_0x1aa841['WnXJS'],'type':_0x1aa841[_0x110d31(0x12f)]});else{if(_0x4a937a[0x2])_0x103555[_0x110d31(0xb2)]({'text':'@'+_0x4a937a[0x3],'color':_0x1aa841[_0x110d31(0xd0)],'type':'at','userId':_0x4a937a[0x4]});else{if(_0x4a937a[0x5])_0x103555['push']({'text':_0x1aa841['JMKgs'],'src':_0x4a937a[0x5],'type':_0x1aa841[_0x110d31(0xad)]});else{if(_0x4a937a[0x6])_0x103555[_0x110d31(0xb2)]({'text':_0x4a937a[0x6],'src':_0x4a937a[0x6],'type':_0x1aa841[_0x110d31(0xbe)]});else{if(_0x4a937a[0x7])_0x103555[_0x110d31(0xb2)]({'text':_0x4a937a[0x7],'color':_0x1aa841[_0x110d31(0xe1)]});else{if(_0x4a937a[0x8])_0x103555[_0x110d31(0xb2)]({'text':'','src':_0x4a937a[0x8],'type':_0x1aa841[_0x110d31(0x8f)]});else{if(_0x4a937a[0x9])_0x103555[_0x110d31(0xb2)]({'text':_0x1aa841[_0x110d31(0xa9)],'url':_0x4a937a[0x9],'type':_0x1aa841[_0x110d31(0xe3)],'color':_0x1aa841[_0x110d31(0xd0)]});else{if(_0x4a937a[0xa]){const _0x319d3e=_0x4a937a[0xa][_0x110d31(0xe7)](/\[\/(\d+)\]/)[0x1],_0x47939b=emojiMap[_0x319d3e];_0x103555[_0x110d31(0xb2)](_0x47939b?{'type':_0x1aa841[_0x110d31(0xf0)],'src':_0x110d31(0xa0)+_0x47939b}:{'text':_0x4a937a[0xa],'color':_0x110d31(0x135)});}else{if(_0x4a937a[0xb]&&_0x4a937a[0xc])_0x103555['push']({'text':'$'+_0x4a937a[0xb],'gameId':_0x4a937a[0xc],'type':_0x110d31(0x10b),'color':_0x1aa841[_0x110d31(0xd0)]});else{if(_0x4a937a[0x0]==='<font\x20bold=true>')_0x103555[_0x110d31(0xb2)]({'text':'','bold':!![]});else{if(_0x1aa841[_0x110d31(0x11a)](_0x4a937a[0x0],_0x110d31(0xd8)))_0x103555[_0x110d31(0xb2)]({'text':'','bold':![]});else{if(_0x1aa841['eNeKh'](_0x4a937a[0x0],_0x1aa841[_0x110d31(0x10d)]))_0x103555[_0x110d31(0xb2)]({'text':_0x1aa841[_0x110d31(0x102)],'type':_0x110d31(0x121)});else{if(_0x1aa841[_0x110d31(0xc1)](_0x4a937a[0x0],_0x1aa841[_0x110d31(0x9a)]))_0x103555[_0x110d31(0xb2)]({'text':_0x1aa841[_0x110d31(0xa6)],'type':_0x1aa841[_0x110d31(0x125)]});}}}}}}}}}}}}_0x51789a=_0x583a95[_0x110d31(0xc9)];}if(_0x51789a<_0x3367ff?.[_0x110d31(0x119)])this[_0x110d31(0xf3)](_0x103555,_0x3367ff['slice'](_0x51789a));if(_0x2274ee&&_0x42a371[_0x110d31(0x119)])_0x42a371[_0x110d31(0x107)](_0x230f2d=>_0x103555['push']({'type':_0x110d31(0x11d),'text':_0x110d31(0x108),'color':_0x110d31(0x9e),'src':_0x230f2d}));return _0x103555;},'pushWithLineBreak'(_0x2b0737,_0x5209bf){const _0x598ea0=_0x4264,_0x4942b2={'NfzsH':function(_0xb24769,_0x490650){return _0xb24769>_0x490650;},'oEEkU':_0x598ea0(0x135)},_0x4473e6=_0x5209bf[_0x598ea0(0xaa)](/(\r\n|\n|\r)/);_0x4473e6[_0x598ea0(0x107)](_0x24cab1=>{const _0xf1930f=_0x598ea0;if(_0x24cab1[_0xf1930f(0xe7)](/\r\n|\n|\r/))_0x2b0737[_0xf1930f(0xb2)]({'type':'br'});else{if(_0x4942b2[_0xf1930f(0xf8)](_0x24cab1[_0xf1930f(0x119)],0x0))_0x2b0737['push']({'text':_0x24cab1,'color':_0x4942b2[_0xf1930f(0xec)]});}});},'formatPost'(_0x1e56a7){const _0x3f746a=_0x4264,_0x4f52d6={'vLRnx':function(_0x58f0ac,_0x3680cc){return _0x58f0ac(_0x3680cc);}},_0x42653a={..._0x1e56a7,'post':{..._0x1e56a7['post'],'formatTime':_0x45bbad(_0x1e56a7['post'][_0x3f746a(0xb5)]),'imageArray':_0x1e56a7['post']['images']?_0x1e56a7[_0x3f746a(0x131)]['images'][_0x3f746a(0xaa)](','):[]}};return _0x1e56a7[_0x3f746a(0x11b)]&&_0x1e56a7['shared'][_0x3f746a(0x131)]&&(_0x42653a['shared']={..._0x1e56a7[_0x3f746a(0x11b)],'post':{..._0x1e56a7[_0x3f746a(0x11b)]['post'],'formatTime':_0x4f52d6[_0x3f746a(0x104)](_0x45bbad,_0x1e56a7[_0x3f746a(0x11b)][_0x3f746a(0x131)][_0x3f746a(0xb5)]),'imageArray':_0x1e56a7[_0x3f746a(0x11b)][_0x3f746a(0x131)][_0x3f746a(0xcb)]?_0x1e56a7[_0x3f746a(0x11b)]['post'][_0x3f746a(0xcb)][_0x3f746a(0xaa)](','):[]}}),_0x42653a;},'onPartTap'(_0x849b7a){const _0x3d5884=_0x4264,_0x57c91f={'DnIms':function(_0x28de5a,_0x55264a){return _0x28de5a(_0x55264a);},'rIdXX':_0x3d5884(0x10b)},{type:_0x218da2,id:_0x4f7b10,text:_0x4ac694}=_0x849b7a[_0x3d5884(0x112)][_0x3d5884(0xe2)];switch(_0x218da2){case _0x3d5884(0x136):const _0xdf3992=_0x4ac694,_0x3a5542=_0xdf3992[_0x3d5884(0xd9)](/#/g,'');wx[_0x3d5884(0xaf)]({'url':_0x3d5884(0x9d)+_0x57c91f[_0x3d5884(0x12b)](encodeURIComponent,_0x3a5542)});break;case'at':wx[_0x3d5884(0xaf)]({'url':'../user/user?id='+_0x4f7b10});break;case _0x57c91f[_0x3d5884(0xac)]:wx['navigateTo']({'url':_0x3d5884(0x11c)+_0x4f7b10});break;}},'onJumpUrlTap'(_0x540ba2){const _0x1ea6f7=_0x4264,_0x42918e={'ybmmO':function(_0x7a5f3,_0x583665){return _0x7a5f3(_0x583665);}},_0x587ed4=_0x540ba2['currentTarget']['dataset'][_0x1ea6f7(0xca)];if(!_0x587ed4)return;wx[_0x1ea6f7(0xaf)]({'url':_0x1ea6f7(0x91)+_0x42918e[_0x1ea6f7(0xa8)](encodeURIComponent,_0x587ed4)});}});
@@ -1,29 +1 @@
1
- Page({
2
- data: {
3
- categories: [
4
- '涉及政治敏感内容',
5
- '涉及色情低俗内容',
6
- '涉及违禁品',
7
- '涉及未成年人有害信息',
8
- '涉及垃圾或广告内容',
9
- '涉及人身攻击、谩骂内容',
10
- '涉及抄袭或侵权内容',
11
- '引战',
12
- '涉及企业侵权内容',
13
- '其他'
14
- ]
15
- },
16
-
17
- onLoad(options) {
18
- this.postId = options.postId; // 保存一下,等下继续传
19
- },
20
-
21
- onTap(e) {
22
- const idx = e.currentTarget.dataset.index;
23
- const category = this.data.categories[idx] || '';
24
- // 跳转到举报填写页,并传递分类名称(作为 query)
25
- wx.navigateTo({
26
- url: `../report-form/report-form?category=${encodeURIComponent(category)}&postId=${this.postId}&nType=${idx+1}`
27
- });
28
- }
29
- });
1
+ function _0x3f6b(_0x13e995,_0x37a78d){_0x13e995=_0x13e995-0x1db;const _0x68f3c4=_0x68f3();let _0x3f6bbc=_0x68f3c4[_0x13e995];if(_0x3f6b['IZPDEh']===undefined){var _0x35ed0d=function(_0x4d53d2){const _0x43551e='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x58db6b='',_0x498691='';for(let _0x4518e1=0x0,_0x1d96f0,_0x45aabf,_0xbab1a4=0x0;_0x45aabf=_0x4d53d2['charAt'](_0xbab1a4++);~_0x45aabf&&(_0x1d96f0=_0x4518e1%0x4?_0x1d96f0*0x40+_0x45aabf:_0x45aabf,_0x4518e1++%0x4)?_0x58db6b+=String['fromCharCode'](0xff&_0x1d96f0>>(-0x2*_0x4518e1&0x6)):0x0){_0x45aabf=_0x43551e['indexOf'](_0x45aabf);}for(let _0x30f87e=0x0,_0x1d9bf5=_0x58db6b['length'];_0x30f87e<_0x1d9bf5;_0x30f87e++){_0x498691+='%'+('00'+_0x58db6b['charCodeAt'](_0x30f87e)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x498691);};_0x3f6b['Fpalov']=_0x35ed0d,_0x3f6b['MjatZf']={},_0x3f6b['IZPDEh']=!![];}const _0x4cfdae=_0x68f3c4[0x0],_0x2c045e=_0x13e995+_0x4cfdae,_0x4505dd=_0x3f6b['MjatZf'][_0x2c045e];return!_0x4505dd?(_0x3f6bbc=_0x3f6b['Fpalov'](_0x3f6bbc),_0x3f6b['MjatZf'][_0x2c045e]=_0x3f6bbc):_0x3f6bbc=_0x4505dd,_0x3f6bbc;}function _0x68f3(){const _0x2165dc=['y3vYCMvUDfrHCMDLDa','mJK2mJK3n2zeDM5gsG','mty0mJi0mMPMBu5ZzG','5RAj5y+k6l+D56Ab5zob','nZqYmJiYnhvnC25oBa','mtqZDhHAsNfJ','5RAj5y+k5lYb5lIA5l615P2d5yAf5A65','nfjsC0zdsG','mtC5mZy2nwD0tMruBq','5RAj5y+k5PYQ5OIq5BM05lQ65PYj5A6Z5l+H5OgV','BMf2AwDHDgvuBW','mtjeCuDdEuO','zgf0yxnLDa','5RAj5y+k5Ps/5Rk75Pwp5OsF5yAf5A65','lI4VCMvWB3j0lwzVCM0VCMvWB3j0lwzVCM0/y2f0zwDVCNK9','CLvzAvK','neX2z1j4Cq','A1bru0K','y2f0zwDVCMLLCW','5RAj5y+k6iMY5Oof5l2o5l+x5yAf5A65','nZe3odbUvwTvzwm','mJe0mZGYn0Hov3Hlza','5RAj5y+k5lQ66lQR5Ps75yE744cb6lcP6AQc5yAf5A65','Cg9ZDeLK','mZmWodu0D1b2yMP3'];_0x68f3=function(){return _0x2165dc;};return _0x68f3();}const _0x322a53=_0x3f6b;(function(_0x5ed429,_0x50191b){const _0x1c0b31=_0x3f6b,_0x220ea2=_0x5ed429();while(!![]){try{const _0x1bde0f=-parseInt(_0x1c0b31(0x1e7))/0x1*(parseInt(_0x1c0b31(0x1df))/0x2)+-parseInt(_0x1c0b31(0x1e1))/0x3*(-parseInt(_0x1c0b31(0x1f0))/0x4)+parseInt(_0x1c0b31(0x1e8))/0x5*(parseInt(_0x1c0b31(0x1eb))/0x6)+parseInt(_0x1c0b31(0x1e2))/0x7+-parseInt(_0x1c0b31(0x1e4))/0x8+parseInt(_0x1c0b31(0x1dc))/0x9+-parseInt(_0x1c0b31(0x1db))/0xa*(parseInt(_0x1c0b31(0x1e5))/0xb);if(_0x1bde0f===_0x50191b)break;else _0x220ea2['push'](_0x220ea2['shift']());}catch(_0x483d8f){_0x220ea2['push'](_0x220ea2['shift']());}}}(_0x68f3,0x78e1e),Page({'data':{'categories':[_0x322a53(0x1ed),_0x322a53(0x1f3),_0x322a53(0x1e3),_0x322a53(0x1e9),'涉及垃圾或广告内容',_0x322a53(0x1dd),'涉及抄袭或侵权内容','引战',_0x322a53(0x1e6),'其他']},'onLoad'(_0x31fe8b){const _0x1fcd7f=_0x322a53;this[_0x1fcd7f(0x1de)]=_0x31fe8b[_0x1fcd7f(0x1de)];},'onTap'(_0x15cfd5){const _0x385b95=_0x322a53,_0xeea825={'kPQSI':function(_0x48bf76,_0x52f1fb){return _0x48bf76(_0x52f1fb);},'rUYiY':function(_0x1f0258,_0x3f7119){return _0x1f0258+_0x3f7119;}},_0x9b72f2=_0x15cfd5[_0x385b95(0x1e0)][_0x385b95(0x1ec)]['index'],_0x2bcb06=this['data'][_0x385b95(0x1f2)][_0x9b72f2]||'';wx[_0x385b95(0x1ea)]({'url':_0x385b95(0x1ee)+_0xeea825[_0x385b95(0x1f1)](encodeURIComponent,_0x2bcb06)+'&postId='+this['postId']+'&nType='+_0xeea825[_0x385b95(0x1ef)](_0x9b72f2,0x1)});}}));