southnote-mini-sdk 1.0.21 → 1.0.23
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
|
@@ -1,492 +1 @@
|
|
|
1
|
-
// pages/wheel-activity/index.js
|
|
2
|
-
import {
|
|
3
|
-
queryGameActivityInfo
|
|
4
|
-
} from '../../services/home'
|
|
5
|
-
|
|
6
|
-
Page({
|
|
7
|
-
data: {
|
|
8
|
-
activityData: {},
|
|
9
|
-
showRuleModal: false,
|
|
10
|
-
showGiftModal: false,
|
|
11
|
-
showTaskModal: false,
|
|
12
|
-
canvasSize: 320,
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
// 计算属性数据
|
|
16
|
-
rewards: {},
|
|
17
|
-
chanceData: {},
|
|
18
|
-
winners: [],
|
|
19
|
-
ownRecord: [],
|
|
20
|
-
wheelItems: [],
|
|
21
|
-
totalChance: 0,
|
|
22
|
-
ruleItems: [],
|
|
23
|
-
taskItems: [],
|
|
24
|
-
taskDetailItems: []
|
|
25
|
-
},
|
|
26
|
-
|
|
27
|
-
// 图片缓存
|
|
28
|
-
imgCache: new Map(),
|
|
29
|
-
|
|
30
|
-
onLoad(options) {
|
|
31
|
-
const activityId = options.activity_id
|
|
32
|
-
this.loadActivityData(activityId)
|
|
33
|
-
},
|
|
34
|
-
|
|
35
|
-
onReady() {
|
|
36
|
-
// 获取容器尺寸并初始化canvas
|
|
37
|
-
this.initCanvas()
|
|
38
|
-
},
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
// 加载活动数据
|
|
43
|
-
loadActivityData(activityId) {
|
|
44
|
-
queryGameActivityInfo(activityId).then(res => {
|
|
45
|
-
|
|
46
|
-
const safeData = this.convertToHttps(res.data)
|
|
47
|
-
|
|
48
|
-
this.setData({
|
|
49
|
-
activityData: safeData
|
|
50
|
-
}, () => {
|
|
51
|
-
this.computeDerivedData()
|
|
52
|
-
this.drawWheel()
|
|
53
|
-
})
|
|
54
|
-
})
|
|
55
|
-
},
|
|
56
|
-
|
|
57
|
-
convertToHttps(obj) {
|
|
58
|
-
if (typeof obj === 'string') {
|
|
59
|
-
return obj.replace(/^http:\/\//i, 'https://')
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
if (Array.isArray(obj)) {
|
|
63
|
-
return obj.map(item => this.convertToHttps(item)) // ✅ 加 this
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
if (typeof obj === 'object' && obj !== null) {
|
|
67
|
-
const newObj = {}
|
|
68
|
-
for (const key in obj) {
|
|
69
|
-
newObj[key] = this.convertToHttps(obj[key]) // ✅ 加 this
|
|
70
|
-
}
|
|
71
|
-
return newObj
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
return obj
|
|
75
|
-
},
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
// 计算派生数据
|
|
79
|
-
computeDerivedData() {
|
|
80
|
-
const { activityData } = this.data
|
|
81
|
-
const rewards = activityData.rewards || {}
|
|
82
|
-
const chanceData = rewards.chance_data || {}
|
|
83
|
-
const winners = Array.isArray(rewards.winners) ? rewards.winners : []
|
|
84
|
-
const ownRecordRaw = Array.isArray(rewards.own_record) ? rewards.own_record : []
|
|
85
|
-
const wheelItems = rewards.wheel || []
|
|
86
|
-
const totalChance = chanceData.total_chance || 0
|
|
87
|
-
|
|
88
|
-
// 格式化活动时间
|
|
89
|
-
const startTimeFormatted = this.formatTime(activityData.start_time)
|
|
90
|
-
const endTimeFormatted = this.formatTime(activityData.end_time)
|
|
91
|
-
|
|
92
|
-
// 为礼包记录添加格式化后的时间字段
|
|
93
|
-
const ownRecord = ownRecordRaw.map(item => ({
|
|
94
|
-
...item,
|
|
95
|
-
created_at_formatted: this.formatTime(item.created_at)
|
|
96
|
-
}))
|
|
97
|
-
|
|
98
|
-
// 计算规则条目
|
|
99
|
-
const ruleItems = this.computeRuleItems(activityData, chanceData)
|
|
100
|
-
const taskItems = this.computeTaskItems(chanceData)
|
|
101
|
-
const taskDetailItems = this.computeTaskDetailItems(chanceData)
|
|
102
|
-
|
|
103
|
-
this.setData({
|
|
104
|
-
rewards,
|
|
105
|
-
chanceData,
|
|
106
|
-
winners,
|
|
107
|
-
ownRecord,
|
|
108
|
-
wheelItems,
|
|
109
|
-
totalChance,
|
|
110
|
-
ruleItems,
|
|
111
|
-
taskItems,
|
|
112
|
-
taskDetailItems,
|
|
113
|
-
startTimeFormatted,
|
|
114
|
-
endTimeFormatted
|
|
115
|
-
})
|
|
116
|
-
},
|
|
117
|
-
|
|
118
|
-
// 计算规则条目
|
|
119
|
-
computeRuleItems(activityData, chanceData) {
|
|
120
|
-
const items = []
|
|
121
|
-
|
|
122
|
-
if (activityData.activity_desc) {
|
|
123
|
-
items.push({
|
|
124
|
-
type: 'text',
|
|
125
|
-
value: activityData.activity_desc
|
|
126
|
-
})
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
items.push({
|
|
130
|
-
type: 'time',
|
|
131
|
-
value: `${this.formatTime(activityData.start_time)} - ${this.formatTime(activityData.end_time)}`
|
|
132
|
-
})
|
|
133
|
-
|
|
134
|
-
const taskItems = this.computeTaskItems(chanceData)
|
|
135
|
-
if (taskItems.length > 1) {
|
|
136
|
-
items.push({
|
|
137
|
-
type: 'tasks',
|
|
138
|
-
value: ''
|
|
139
|
-
})
|
|
140
|
-
} else if (taskItems.length === 1) {
|
|
141
|
-
items.push({
|
|
142
|
-
type: 'text',
|
|
143
|
-
value: taskItems[0]
|
|
144
|
-
})
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
items.push({
|
|
148
|
-
type: 'text',
|
|
149
|
-
value: '在本页面点击【开始抽奖】,即可抽取对应的礼包,礼包先到先得,抽完为止。'
|
|
150
|
-
})
|
|
151
|
-
items.push({
|
|
152
|
-
type: 'text',
|
|
153
|
-
value: '抽奖次数于每日00:00清零'
|
|
154
|
-
})
|
|
155
|
-
|
|
156
|
-
return items
|
|
157
|
-
},
|
|
158
|
-
|
|
159
|
-
// 计算任务条目
|
|
160
|
-
computeTaskItems(chanceData) {
|
|
161
|
-
const list = []
|
|
162
|
-
|
|
163
|
-
if ('daily_chance' in chanceData) {
|
|
164
|
-
list.push(`每日登录得次数(${chanceData.daily_chance || 0}/1)`)
|
|
165
|
-
}
|
|
166
|
-
if ('comment_chance' in chanceData) {
|
|
167
|
-
list.push(`每日评论得次数(${chanceData.comment_chance || 0}/1)`)
|
|
168
|
-
}
|
|
169
|
-
if ('like_chance' in chanceData) {
|
|
170
|
-
list.push(`每日点赞得次数(${chanceData.like_chance || 0}/1)`)
|
|
171
|
-
}
|
|
172
|
-
if ('topic_chance' in chanceData) {
|
|
173
|
-
list.push(`每日发表话题#${chanceData.topic_name || ''}#得次数(${chanceData.topic_chance || 0}/1)`)
|
|
174
|
-
}
|
|
175
|
-
if ('post_chance' in chanceData) {
|
|
176
|
-
list.push(`每日发帖得次数(${chanceData.post_chance || 0}/1)`)
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
return list
|
|
180
|
-
},
|
|
181
|
-
|
|
182
|
-
// 计算任务详情条目
|
|
183
|
-
computeTaskDetailItems(chanceData) {
|
|
184
|
-
const list = []
|
|
185
|
-
|
|
186
|
-
if ('daily_chance' in chanceData) {
|
|
187
|
-
list.push({
|
|
188
|
-
label: `每日登录得次数(${chanceData.daily_chance || 0}/1)`,
|
|
189
|
-
done: !!chanceData.daily_chance,
|
|
190
|
-
got: chanceData.daily_chance || 0,
|
|
191
|
-
type: 'login'
|
|
192
|
-
})
|
|
193
|
-
}
|
|
194
|
-
if ('comment_chance' in chanceData) {
|
|
195
|
-
list.push({
|
|
196
|
-
label: `每日评论得次数(${chanceData.comment_chance || 0}/1)`,
|
|
197
|
-
done: !!chanceData.comment_chance,
|
|
198
|
-
got: chanceData.comment_chance || 0,
|
|
199
|
-
type: 'comment'
|
|
200
|
-
})
|
|
201
|
-
}
|
|
202
|
-
if ('like_chance' in chanceData) {
|
|
203
|
-
list.push({
|
|
204
|
-
label: `每日点赞得次数(${chanceData.like_chance || 0}/1)`,
|
|
205
|
-
done: !!chanceData.like_chance,
|
|
206
|
-
got: chanceData.like_chance || 0,
|
|
207
|
-
type: 'like'
|
|
208
|
-
})
|
|
209
|
-
}
|
|
210
|
-
if ('topic_chance' in chanceData) {
|
|
211
|
-
list.push({
|
|
212
|
-
label: '',
|
|
213
|
-
done: !!chanceData.topic_chance,
|
|
214
|
-
got: chanceData.topic_chance || 0,
|
|
215
|
-
type: 'topic'
|
|
216
|
-
})
|
|
217
|
-
}
|
|
218
|
-
if ('post_chance' in chanceData) {
|
|
219
|
-
list.push({
|
|
220
|
-
label: `每日发帖得次数(${chanceData.post_chance || 0}/1)`,
|
|
221
|
-
done: !!chanceData.post_chance,
|
|
222
|
-
got: chanceData.post_chance || 0,
|
|
223
|
-
type: 'post'
|
|
224
|
-
})
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
return list
|
|
228
|
-
},
|
|
229
|
-
|
|
230
|
-
// 格式化时间
|
|
231
|
-
formatTime(ts) {
|
|
232
|
-
if (!ts) return ''
|
|
233
|
-
const d = new Date(Number(ts) * 1000)
|
|
234
|
-
const pad = (n) => String(n).padStart(2, '0')
|
|
235
|
-
return `${d.getFullYear()}/${pad(d.getMonth() + 1)}/${pad(d.getDate())} ${pad(d.getHours())}:${pad(d.getMinutes())}:${pad(d.getSeconds())}`
|
|
236
|
-
},
|
|
237
|
-
|
|
238
|
-
// 初始化Canvas
|
|
239
|
-
initCanvas() {
|
|
240
|
-
const query = wx.createSelectorQuery()
|
|
241
|
-
query.select('#wheelContainer').boundingClientRect()
|
|
242
|
-
query.exec((res) => {
|
|
243
|
-
if (res[0]) {
|
|
244
|
-
const containerWidth = res[0].width
|
|
245
|
-
const size = Math.min(containerWidth, 340)
|
|
246
|
-
this.setData({
|
|
247
|
-
canvasSize: size
|
|
248
|
-
}, () => {
|
|
249
|
-
this.setupCanvas()
|
|
250
|
-
})
|
|
251
|
-
}
|
|
252
|
-
})
|
|
253
|
-
},
|
|
254
|
-
|
|
255
|
-
// 设置Canvas
|
|
256
|
-
setupCanvas() {
|
|
257
|
-
const query = wx.createSelectorQuery()
|
|
258
|
-
query.select('#wheelCanvas')
|
|
259
|
-
.fields({
|
|
260
|
-
node: true,
|
|
261
|
-
size: true
|
|
262
|
-
})
|
|
263
|
-
.exec((res) => {
|
|
264
|
-
if (res[0]) {
|
|
265
|
-
const canvas = res[0].node
|
|
266
|
-
const ctx = canvas.getContext('2d')
|
|
267
|
-
|
|
268
|
-
const dpr = wx.getSystemInfoSync().pixelRatio
|
|
269
|
-
const size = this.data.canvasSize
|
|
270
|
-
|
|
271
|
-
canvas.width = size * dpr
|
|
272
|
-
canvas.height = size * dpr
|
|
273
|
-
ctx.scale(dpr, dpr)
|
|
274
|
-
|
|
275
|
-
this.canvas = canvas
|
|
276
|
-
this.ctx = ctx
|
|
277
|
-
|
|
278
|
-
this.preloadImages().then(() => {
|
|
279
|
-
this.drawWheel()
|
|
280
|
-
})
|
|
281
|
-
}
|
|
282
|
-
})
|
|
283
|
-
},
|
|
284
|
-
|
|
285
|
-
// 预加载图片
|
|
286
|
-
preloadImages() {
|
|
287
|
-
const {
|
|
288
|
-
wheelItems
|
|
289
|
-
} = this.data
|
|
290
|
-
const promises = []
|
|
291
|
-
|
|
292
|
-
wheelItems.forEach((item) => {
|
|
293
|
-
if (!item.item_icon) return
|
|
294
|
-
if (this.imgCache.has(item.item_icon)) return
|
|
295
|
-
|
|
296
|
-
promises.push(
|
|
297
|
-
new Promise((resolve) => {
|
|
298
|
-
const img = this.canvas.createImage()
|
|
299
|
-
img.src = item.item_icon
|
|
300
|
-
img.onload = () => {
|
|
301
|
-
this.imgCache.set(item.item_icon, img)
|
|
302
|
-
resolve()
|
|
303
|
-
}
|
|
304
|
-
img.onerror = () => resolve()
|
|
305
|
-
})
|
|
306
|
-
)
|
|
307
|
-
})
|
|
308
|
-
|
|
309
|
-
return Promise.all(promises)
|
|
310
|
-
},
|
|
311
|
-
|
|
312
|
-
// 绘制转盘
|
|
313
|
-
drawWheel() {
|
|
314
|
-
if (!this.ctx || !this.canvas) return
|
|
315
|
-
|
|
316
|
-
const ctx = this.ctx
|
|
317
|
-
const size = this.data.canvasSize
|
|
318
|
-
const cx = size / 2
|
|
319
|
-
const cy = size / 2
|
|
320
|
-
const r = size / 2 - 4
|
|
321
|
-
|
|
322
|
-
const items = this.data.wheelItems || []
|
|
323
|
-
const count = 6
|
|
324
|
-
const angleStep = (Math.PI * 2) / count
|
|
325
|
-
const colors = ['#fbf7eb', '#faead0']
|
|
326
|
-
const flipIndices = [2, 3]
|
|
327
|
-
|
|
328
|
-
ctx.clearRect(0, 0, size, size)
|
|
329
|
-
|
|
330
|
-
// 整体旋转:让第一个扇区中心对准顶部指针
|
|
331
|
-
ctx.save()
|
|
332
|
-
ctx.translate(cx, cy)
|
|
333
|
-
ctx.rotate(-angleStep / 2)
|
|
334
|
-
ctx.translate(-cx, -cy)
|
|
335
|
-
|
|
336
|
-
for (let i = 0; i < count; i++) {
|
|
337
|
-
const startAngle = -Math.PI / 2 + i * angleStep
|
|
338
|
-
const endAngle = startAngle + angleStep
|
|
339
|
-
const midAngle = startAngle + angleStep / 2
|
|
340
|
-
|
|
341
|
-
// 绘制扇形
|
|
342
|
-
ctx.beginPath()
|
|
343
|
-
ctx.moveTo(cx, cy)
|
|
344
|
-
ctx.arc(cx, cy, r, startAngle, endAngle)
|
|
345
|
-
ctx.closePath()
|
|
346
|
-
ctx.fillStyle = colors[i % 2]
|
|
347
|
-
ctx.fill()
|
|
348
|
-
ctx.strokeStyle = '#e8d5b0'
|
|
349
|
-
ctx.stroke()
|
|
350
|
-
|
|
351
|
-
const item = items.find((it) => it.position === i + 1)
|
|
352
|
-
if (!item) continue
|
|
353
|
-
|
|
354
|
-
const isThankYou = item.item_type === 3
|
|
355
|
-
|
|
356
|
-
// 绘制图片
|
|
357
|
-
ctx.save()
|
|
358
|
-
ctx.translate(cx, cy)
|
|
359
|
-
ctx.rotate(midAngle)
|
|
360
|
-
|
|
361
|
-
if (!isThankYou && item.item_icon) {
|
|
362
|
-
const img = this.imgCache.get(item.item_icon)
|
|
363
|
-
if (img) {
|
|
364
|
-
const imgSize = size * 0.125
|
|
365
|
-
const imgRadius = r * 0.5
|
|
366
|
-
const imgX = imgRadius - imgSize / 2
|
|
367
|
-
const imgY = -imgSize / 2
|
|
368
|
-
|
|
369
|
-
ctx.translate(imgX + imgSize / 2, imgY + imgSize / 2)
|
|
370
|
-
ctx.rotate(Math.PI / 2)
|
|
371
|
-
ctx.translate(-(imgSize / 2), -(imgSize / 2))
|
|
372
|
-
ctx.drawImage(img, 0, 0, imgSize, imgSize)
|
|
373
|
-
}
|
|
374
|
-
}
|
|
375
|
-
|
|
376
|
-
ctx.restore()
|
|
377
|
-
|
|
378
|
-
// 绘制文字
|
|
379
|
-
const textRadius = r * 0.78
|
|
380
|
-
const x = cx + Math.cos(midAngle) * textRadius
|
|
381
|
-
const y = cy + Math.sin(midAngle) * textRadius
|
|
382
|
-
|
|
383
|
-
let textAngle = midAngle + Math.PI / 2
|
|
384
|
-
if (textAngle > Math.PI / 2 && textAngle < (Math.PI * 3) / 2) {
|
|
385
|
-
textAngle += Math.PI
|
|
386
|
-
}
|
|
387
|
-
|
|
388
|
-
if (flipIndices.includes(i)) {
|
|
389
|
-
textAngle += Math.PI
|
|
390
|
-
}
|
|
391
|
-
|
|
392
|
-
ctx.save()
|
|
393
|
-
ctx.translate(x, y)
|
|
394
|
-
ctx.rotate(textAngle)
|
|
395
|
-
ctx.fillStyle = '#bc977f'
|
|
396
|
-
const fontSize = size * 0.044
|
|
397
|
-
ctx.font = `bold ${fontSize}px sans-serif`
|
|
398
|
-
ctx.textAlign = 'center'
|
|
399
|
-
ctx.textBaseline = 'middle'
|
|
400
|
-
|
|
401
|
-
const nameLines = isThankYou ? ['谢谢参与'] : this.wrapText(item.item_name || '', 8)
|
|
402
|
-
nameLines.forEach((line, li) => {
|
|
403
|
-
ctx.fillText(line, 0, (li - (nameLines.length - 1) / 2) * fontSize)
|
|
404
|
-
})
|
|
405
|
-
|
|
406
|
-
ctx.restore()
|
|
407
|
-
}
|
|
408
|
-
|
|
409
|
-
ctx.restore()
|
|
410
|
-
},
|
|
411
|
-
|
|
412
|
-
// 文字换行
|
|
413
|
-
wrapText(text, maxLen) {
|
|
414
|
-
const lines = []
|
|
415
|
-
for (let i = 0; i < text.length; i += maxLen) {
|
|
416
|
-
lines.push(text.slice(i, i + maxLen))
|
|
417
|
-
}
|
|
418
|
-
return lines
|
|
419
|
-
},
|
|
420
|
-
|
|
421
|
-
// 显示规则弹窗
|
|
422
|
-
showRule() {
|
|
423
|
-
this.setData({
|
|
424
|
-
showRuleModal: true
|
|
425
|
-
})
|
|
426
|
-
},
|
|
427
|
-
|
|
428
|
-
hideRule() {
|
|
429
|
-
this.setData({
|
|
430
|
-
showRuleModal: false
|
|
431
|
-
})
|
|
432
|
-
},
|
|
433
|
-
|
|
434
|
-
// 显示礼包弹窗
|
|
435
|
-
showGift() {
|
|
436
|
-
this.setData({
|
|
437
|
-
showGiftModal: true
|
|
438
|
-
})
|
|
439
|
-
},
|
|
440
|
-
|
|
441
|
-
hideGift() {
|
|
442
|
-
this.setData({
|
|
443
|
-
showGiftModal: false
|
|
444
|
-
})
|
|
445
|
-
},
|
|
446
|
-
|
|
447
|
-
// 显示任务弹窗
|
|
448
|
-
showTask() {
|
|
449
|
-
this.setData({
|
|
450
|
-
showTaskModal: true
|
|
451
|
-
})
|
|
452
|
-
},
|
|
453
|
-
|
|
454
|
-
hideTask() {
|
|
455
|
-
this.setData({
|
|
456
|
-
showTaskModal: false
|
|
457
|
-
})
|
|
458
|
-
},
|
|
459
|
-
|
|
460
|
-
// 阻止冒泡
|
|
461
|
-
stopPropagation() {},
|
|
462
|
-
|
|
463
|
-
// 拷贝文本
|
|
464
|
-
copyText(e) {
|
|
465
|
-
const text = e.currentTarget.dataset.text
|
|
466
|
-
wx.setClipboardData({
|
|
467
|
-
data: text,
|
|
468
|
-
success: () => {
|
|
469
|
-
wx.showToast({
|
|
470
|
-
title: '拷贝成功',
|
|
471
|
-
icon: 'success'
|
|
472
|
-
})
|
|
473
|
-
}
|
|
474
|
-
})
|
|
475
|
-
},
|
|
476
|
-
|
|
477
|
-
// 前往APP
|
|
478
|
-
goToApp() {
|
|
479
|
-
// wx.showToast({
|
|
480
|
-
// title: '请前往APP参与抽奖',
|
|
481
|
-
// icon: 'none'
|
|
482
|
-
// })
|
|
483
|
-
|
|
484
|
-
// 小程序跳转逻辑
|
|
485
|
-
// 可以使用 wx.navigateToMiniProgram 跳转到其他小程序
|
|
486
|
-
// 或使用其他方式引导用户下载APP
|
|
487
|
-
|
|
488
|
-
wx.navigateTo({
|
|
489
|
-
url: `../copyOfficial/copyOfficial?url=${encodeURIComponent('https://www.southnote.cn')}`
|
|
490
|
-
});
|
|
491
|
-
}
|
|
492
|
-
})
|
|
1
|
+
function _0xec7a(_0x19df0f,_0x23b7e2){_0x19df0f=_0x19df0f-0xb0;const _0x256ef7=_0x256e();let _0xec7aac=_0x256ef7[_0x19df0f];if(_0xec7a['KTymYV']===undefined){var _0x4a5278=function(_0x162c2f){const _0x33af93='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0xfc118a='',_0x47ce92='';for(let _0x31adf0=0x0,_0x13fbd2,_0xafa91b,_0x515105=0x0;_0xafa91b=_0x162c2f['charAt'](_0x515105++);~_0xafa91b&&(_0x13fbd2=_0x31adf0%0x4?_0x13fbd2*0x40+_0xafa91b:_0xafa91b,_0x31adf0++%0x4)?_0xfc118a+=String['fromCharCode'](0xff&_0x13fbd2>>(-0x2*_0x31adf0&0x6)):0x0){_0xafa91b=_0x33af93['indexOf'](_0xafa91b);}for(let _0x2164b4=0x0,_0x1551ed=_0xfc118a['length'];_0x2164b4<_0x1551ed;_0x2164b4++){_0x47ce92+='%'+('00'+_0xfc118a['charCodeAt'](_0x2164b4)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x47ce92);};_0xec7a['hKyBCw']=_0x4a5278,_0xec7a['tsShOM']={},_0xec7a['KTymYV']=!![];}const _0x18a73f=_0x256ef7[0x0],_0x54f638=_0x19df0f+_0x18a73f,_0x53e9c9=_0xec7a['tsShOM'][_0x54f638];return!_0x53e9c9?(_0xec7aac=_0xec7a['hKyBCw'](_0xec7aac),_0xec7a['tsShOM'][_0x54f638]=_0xec7aac):_0xec7aac=_0x53e9c9,_0xec7aac;}(function(_0x5ab272,_0x30e7c2){const _0x5aff19=_0xec7a,_0x3a6c01=_0x5ab272();while(!![]){try{const _0xc8f733=-parseInt(_0x5aff19(0xf3))/0x1*(parseInt(_0x5aff19(0xf1))/0x2)+parseInt(_0x5aff19(0xd2))/0x3+parseInt(_0x5aff19(0xcd))/0x4*(parseInt(_0x5aff19(0xd8))/0x5)+-parseInt(_0x5aff19(0x103))/0x6*(parseInt(_0x5aff19(0x147))/0x7)+-parseInt(_0x5aff19(0xdf))/0x8*(parseInt(_0x5aff19(0xbd))/0x9)+parseInt(_0x5aff19(0x155))/0xa*(-parseInt(_0x5aff19(0xe4))/0xb)+parseInt(_0x5aff19(0xbe))/0xc*(parseInt(_0x5aff19(0x157))/0xd);if(_0xc8f733===_0x30e7c2)break;else _0x3a6c01['push'](_0x3a6c01['shift']());}catch(_0x5a5574){_0x3a6c01['push'](_0x3a6c01['shift']());}}}(_0x256e,0x24557));import{queryGameActivityInfo}from'../../services/home';Page({'data':{'activityData':{},'showRuleModal':![],'showGiftModal':![],'showTaskModal':![],'canvasSize':0x140,'rewards':{},'chanceData':{},'winners':[],'ownRecord':[],'wheelItems':[],'totalChance':0x0,'ruleItems':[],'taskItems':[],'taskDetailItems':[]},'imgCache':new Map(),'onLoad'(_0x3fbd1d){const _0x4c311e=_0xec7a,_0x36e766=_0x3fbd1d['activity_id'];this[_0x4c311e(0xfe)](_0x36e766);},'onReady'(){const _0x30169e=_0xec7a;this[_0x30169e(0x102)]();},'loadActivityData'(_0x48c35d){const _0x5063ed=_0xec7a,_0x303988={'SfZQF':function(_0x4fae3a,_0x2cd8b2){return _0x4fae3a(_0x2cd8b2);}};_0x303988['SfZQF'](queryGameActivityInfo,_0x48c35d)[_0x5063ed(0x156)](_0x18a53c=>{const _0x56d0a0=_0x5063ed,_0x31c8f6=this['convertToHttps'](_0x18a53c[_0x56d0a0(0xd9)]);this[_0x56d0a0(0x10d)]({'activityData':_0x31c8f6},()=>{const _0x1a5d40=_0x56d0a0;this[_0x1a5d40(0x13c)](),this[_0x1a5d40(0x14c)]();});});},'convertToHttps'(_0x467bba){const _0x1a65d7=_0xec7a,_0x524022={'sEAxr':function(_0x135fea,_0x11c633){return _0x135fea===_0x11c633;},'VDseU':_0x1a65d7(0x141),'bYuCo':function(_0xbf0ab1,_0x46c656){return _0xbf0ab1===_0x46c656;},'vYoDv':'object'};if(_0x524022[_0x1a65d7(0xf6)](typeof _0x467bba,_0x1a65d7(0xbc)))return _0x467bba[_0x1a65d7(0x11c)](/^http:\/\//i,_0x524022[_0x1a65d7(0xc3)]);if(Array[_0x1a65d7(0xb4)](_0x467bba))return _0x467bba['map'](_0x3dfeb4=>this['convertToHttps'](_0x3dfeb4));if(_0x524022[_0x1a65d7(0xf9)](typeof _0x467bba,_0x524022[_0x1a65d7(0xdc)])&&_0x467bba!==null){const _0x5952e0={};for(const _0x33f55d in _0x467bba){_0x5952e0[_0x33f55d]=this[_0x1a65d7(0x113)](_0x467bba[_0x33f55d]);}return _0x5952e0;}return _0x467bba;},'computeDerivedData'(){const _0xe3d32=_0xec7a,{activityData:_0x156100}=this[_0xe3d32(0xd9)],_0x2c909d=_0x156100[_0xe3d32(0x126)]||{},_0x2fec36=_0x2c909d[_0xe3d32(0x129)]||{},_0x508ff0=Array['isArray'](_0x2c909d[_0xe3d32(0x148)])?_0x2c909d[_0xe3d32(0x148)]:[],_0x534770=Array[_0xe3d32(0xb4)](_0x2c909d[_0xe3d32(0x114)])?_0x2c909d[_0xe3d32(0x114)]:[],_0x5e5ba6=_0x2c909d['wheel']||[],_0x53430a=_0x2fec36[_0xe3d32(0xc5)]||0x0,_0x248c5a=this[_0xe3d32(0xe5)](_0x156100[_0xe3d32(0xcc)]),_0x195e5b=this[_0xe3d32(0xe5)](_0x156100[_0xe3d32(0x140)]),_0x17ffa8=_0x534770[_0xe3d32(0x122)](_0x169759=>({..._0x169759,'created_at_formatted':this[_0xe3d32(0xe5)](_0x169759[_0xe3d32(0x14f)])})),_0x807816=this['computeRuleItems'](_0x156100,_0x2fec36),_0x24f62b=this['computeTaskItems'](_0x2fec36),_0x691e5f=this['computeTaskDetailItems'](_0x2fec36);this['setData']({'rewards':_0x2c909d,'chanceData':_0x2fec36,'winners':_0x508ff0,'ownRecord':_0x17ffa8,'wheelItems':_0x5e5ba6,'totalChance':_0x53430a,'ruleItems':_0x807816,'taskItems':_0x24f62b,'taskDetailItems':_0x691e5f,'startTimeFormatted':_0x248c5a,'endTimeFormatted':_0x195e5b});},'computeRuleItems'(_0x65c065,_0x2f18e5){const _0x4a6006=_0xec7a,_0x1dd2bf={'WdXHD':_0x4a6006(0x15a),'QrfWr':_0x4a6006(0xb9),'DGpww':_0x4a6006(0xbb),'swvOx':_0x4a6006(0xd6),'eCKSJ':_0x4a6006(0x123)},_0x5f31d2=[];_0x65c065[_0x4a6006(0x143)]&&_0x5f31d2[_0x4a6006(0x149)]({'type':_0x1dd2bf['WdXHD'],'value':_0x65c065['activity_desc']});_0x5f31d2[_0x4a6006(0x149)]({'type':_0x1dd2bf['QrfWr'],'value':this[_0x4a6006(0xe5)](_0x65c065[_0x4a6006(0xcc)])+_0x4a6006(0xe8)+this[_0x4a6006(0xe5)](_0x65c065[_0x4a6006(0x140)])});const _0x1b1c15=this[_0x4a6006(0x104)](_0x2f18e5);if(_0x1b1c15['length']>0x1)_0x5f31d2[_0x4a6006(0x149)]({'type':_0x1dd2bf['DGpww'],'value':''});else _0x1b1c15['length']===0x1&&_0x5f31d2[_0x4a6006(0x149)]({'type':_0x1dd2bf['WdXHD'],'value':_0x1b1c15[0x0]});return _0x5f31d2[_0x4a6006(0x149)]({'type':_0x4a6006(0x15a),'value':_0x1dd2bf[_0x4a6006(0xc2)]}),_0x5f31d2[_0x4a6006(0x149)]({'type':_0x4a6006(0x15a),'value':_0x1dd2bf[_0x4a6006(0x12d)]}),_0x5f31d2;},'computeTaskItems'(_0x1692ed){const _0x5ae896=_0xec7a,_0x3924e7={'fCsob':function(_0x31f476,_0x25855f){return _0x31f476 in _0x25855f;},'uEyCI':_0x5ae896(0xe7),'wlpeY':function(_0x5adbae,_0x5a0441){return _0x5adbae in _0x5a0441;},'oHbbo':_0x5ae896(0x137),'OLMMK':function(_0x93d94e,_0x2914ae){return _0x93d94e in _0x2914ae;}},_0x3d36a4=[];return _0x3924e7[_0x5ae896(0xec)](_0x3924e7[_0x5ae896(0x118)],_0x1692ed)&&_0x3d36a4[_0x5ae896(0x149)](_0x5ae896(0xdb)+(_0x1692ed['daily_chance']||0x0)+_0x5ae896(0xf2)),_0x3924e7[_0x5ae896(0xc0)](_0x5ae896(0x107),_0x1692ed)&&_0x3d36a4[_0x5ae896(0x149)]('每日评论得次数('+(_0x1692ed[_0x5ae896(0x107)]||0x0)+_0x5ae896(0xf2)),'like_chance'in _0x1692ed&&_0x3d36a4['push'](_0x5ae896(0x15e)+(_0x1692ed['like_chance']||0x0)+_0x5ae896(0xf2)),_0x3924e7['oHbbo']in _0x1692ed&&_0x3d36a4[_0x5ae896(0x149)](_0x5ae896(0xf0)+(_0x1692ed['topic_name']||'')+_0x5ae896(0x12e)+(_0x1692ed['topic_chance']||0x0)+_0x5ae896(0xf2)),_0x3924e7[_0x5ae896(0x121)]('post_chance',_0x1692ed)&&_0x3d36a4[_0x5ae896(0x149)](_0x5ae896(0xc1)+(_0x1692ed['post_chance']||0x0)+_0x5ae896(0xf2)),_0x3d36a4;},'computeTaskDetailItems'(_0x49567b){const _0x529c5b=_0xec7a,_0x6c2aa7={'MghKf':function(_0x38d398,_0x4e7bb1){return _0x38d398 in _0x4e7bb1;},'KLZaH':_0x529c5b(0xe7),'IBiro':function(_0x3dd3ef,_0x207a14){return _0x3dd3ef in _0x207a14;},'OhEkL':_0x529c5b(0x107),'ShkUX':_0x529c5b(0x150),'wTEyH':function(_0x3c084e,_0x1f43bb){return _0x3c084e in _0x1f43bb;},'eyFrf':_0x529c5b(0x152),'PBCcn':_0x529c5b(0xc7),'piUFw':_0x529c5b(0x137),'MwozU':'post'},_0x47a241=[];return _0x6c2aa7[_0x529c5b(0x12b)](_0x6c2aa7[_0x529c5b(0x108)],_0x49567b)&&_0x47a241[_0x529c5b(0x149)]({'label':_0x529c5b(0xdb)+(_0x49567b[_0x529c5b(0xe7)]||0x0)+_0x529c5b(0xf2),'done':!!_0x49567b['daily_chance'],'got':_0x49567b['daily_chance']||0x0,'type':_0x529c5b(0x117)}),_0x6c2aa7[_0x529c5b(0x10b)](_0x6c2aa7[_0x529c5b(0x11f)],_0x49567b)&&_0x47a241[_0x529c5b(0x149)]({'label':'每日评论得次数('+(_0x49567b[_0x529c5b(0x107)]||0x0)+_0x529c5b(0xf2),'done':!!_0x49567b['comment_chance'],'got':_0x49567b['comment_chance']||0x0,'type':_0x6c2aa7[_0x529c5b(0x13f)]}),_0x6c2aa7[_0x529c5b(0x112)](_0x6c2aa7[_0x529c5b(0xe2)],_0x49567b)&&_0x47a241[_0x529c5b(0x149)]({'label':_0x529c5b(0x15e)+(_0x49567b[_0x529c5b(0x152)]||0x0)+'/1)','done':!!_0x49567b[_0x529c5b(0x152)],'got':_0x49567b[_0x529c5b(0x152)]||0x0,'type':_0x6c2aa7[_0x529c5b(0xb2)]}),_0x6c2aa7[_0x529c5b(0x112)](_0x6c2aa7[_0x529c5b(0x159)],_0x49567b)&&_0x47a241['push']({'label':'','done':!!_0x49567b[_0x529c5b(0x137)],'got':_0x49567b['topic_chance']||0x0,'type':_0x529c5b(0x14e)}),_0x529c5b(0xf8)in _0x49567b&&_0x47a241[_0x529c5b(0x149)]({'label':_0x529c5b(0xc1)+(_0x49567b[_0x529c5b(0xf8)]||0x0)+_0x529c5b(0xf2),'done':!!_0x49567b['post_chance'],'got':_0x49567b[_0x529c5b(0xf8)]||0x0,'type':_0x6c2aa7[_0x529c5b(0xf5)]}),_0x47a241;},'formatTime'(_0x26f8e3){const _0x361f87=_0xec7a,_0x24704f={'hOeTd':function(_0x2b724f,_0x4f95d3){return _0x2b724f(_0x4f95d3);},'Yzikm':function(_0x5846fe,_0x1fa3fd){return _0x5846fe(_0x1fa3fd);},'FiwhN':function(_0x468e8,_0x1421d9){return _0x468e8+_0x1421d9;},'DThYC':function(_0x1c7198,_0x401da3){return _0x1c7198(_0x401da3);}};if(!_0x26f8e3)return'';const _0x333ce2=new Date(_0x24704f[_0x361f87(0x124)](Number,_0x26f8e3)*0x3e8),_0x4645e1=_0x42fed0=>String(_0x42fed0)[_0x361f87(0xe9)](0x2,'0');return _0x333ce2[_0x361f87(0xdd)]()+'/'+_0x24704f['Yzikm'](_0x4645e1,_0x24704f[_0x361f87(0xf4)](_0x333ce2[_0x361f87(0x14d)](),0x1))+'/'+_0x24704f[_0x361f87(0x124)](_0x4645e1,_0x333ce2[_0x361f87(0xeb)]())+'\x20'+_0x24704f[_0x361f87(0xfd)](_0x4645e1,_0x333ce2['getHours']())+':'+_0x24704f['hOeTd'](_0x4645e1,_0x333ce2[_0x361f87(0xca)]())+':'+_0x24704f[_0x361f87(0xfd)](_0x4645e1,_0x333ce2['getSeconds']());},'initCanvas'(){const _0x2dbd9e=_0xec7a,_0x1f2591=wx[_0x2dbd9e(0x15c)]();_0x1f2591[_0x2dbd9e(0xe0)]('#wheelContainer')['boundingClientRect'](),_0x1f2591['exec'](_0x4ad19e=>{const _0x3cfd4e=_0x2dbd9e;if(_0x4ad19e[0x0]){const _0x3d0a23=_0x4ad19e[0x0][_0x3cfd4e(0x132)],_0x513eda=Math[_0x3cfd4e(0x138)](_0x3d0a23,0x154);this[_0x3cfd4e(0x10d)]({'canvasSize':_0x513eda},()=>{this['setupCanvas']();});}});},'setupCanvas'(){const _0x1f23ce=_0xec7a,_0x373163={'kxsKS':function(_0x38e50f,_0x256693){return _0x38e50f*_0x256693;},'lToHV':function(_0x1840f6,_0xe2abe5){return _0x1840f6*_0xe2abe5;},'VIcDH':_0x1f23ce(0x125)},_0x2c50d0=wx[_0x1f23ce(0x15c)]();_0x2c50d0[_0x1f23ce(0xe0)](_0x373163[_0x1f23ce(0xb5)])['fields']({'node':!![],'size':!![]})[_0x1f23ce(0xcf)](_0x347634=>{const _0x4728cb=_0x1f23ce;if(_0x347634[0x0]){const _0x2323c4=_0x347634[0x0][_0x4728cb(0x144)],_0x5e9851=_0x2323c4[_0x4728cb(0xe1)]('2d'),_0x1fa692=wx[_0x4728cb(0xbf)]()[_0x4728cb(0x134)],_0x70bfe7=this['data']['canvasSize'];_0x2323c4[_0x4728cb(0x132)]=_0x373163['kxsKS'](_0x70bfe7,_0x1fa692),_0x2323c4[_0x4728cb(0x13d)]=_0x373163[_0x4728cb(0xba)](_0x70bfe7,_0x1fa692),_0x5e9851[_0x4728cb(0xd0)](_0x1fa692,_0x1fa692),this[_0x4728cb(0xb7)]=_0x2323c4,this[_0x4728cb(0x10f)]=_0x5e9851,this['preloadImages']()[_0x4728cb(0x156)](()=>{const _0x41427b=_0x4728cb;this[_0x41427b(0x14c)]();});}});},'preloadImages'(){const _0x117c7c=_0xec7a,{wheelItems:_0x3b55d4}=this['data'],_0x157068=[];return _0x3b55d4[_0x117c7c(0x154)](_0x587782=>{const _0x31f1fe=_0x117c7c,_0x530fa9={'WKSGo':function(_0x438b9e){return _0x438b9e();}};if(!_0x587782[_0x31f1fe(0x120)])return;if(this['imgCache'][_0x31f1fe(0x12c)](_0x587782[_0x31f1fe(0x120)]))return;_0x157068[_0x31f1fe(0x149)](new Promise(_0x1e5c23=>{const _0x19eaf9=_0x31f1fe,_0xb6c23=this['canvas'][_0x19eaf9(0xfb)]();_0xb6c23[_0x19eaf9(0x135)]=_0x587782[_0x19eaf9(0x120)],_0xb6c23[_0x19eaf9(0xd4)]=()=>{const _0x380689=_0x19eaf9;this[_0x380689(0x110)][_0x380689(0xb1)](_0x587782[_0x380689(0x120)],_0xb6c23),_0x530fa9[_0x380689(0xcb)](_0x1e5c23);},_0xb6c23[_0x19eaf9(0x10c)]=()=>_0x1e5c23();}));}),Promise['all'](_0x157068);},'drawWheel'(){const _0x1d6f92=_0xec7a,_0x35d2ba={'FVSik':function(_0x367307,_0x5de6e1){return _0x367307*_0x5de6e1;},'jrYbQ':function(_0x395f14,_0x15636a){return _0x395f14-_0x15636a;},'LlRWk':function(_0x11f4ca,_0x598931){return _0x11f4ca/_0x598931;},'pDVQP':function(_0x48441d,_0xf9f7e1){return _0x48441d-_0xf9f7e1;},'oXnFg':function(_0x144d5b,_0x538c1b){return _0x144d5b/_0x538c1b;},'fXytj':function(_0x211421,_0x6be6e6){return _0x211421/_0x6be6e6;},'zgDEU':function(_0x3aded0,_0x50ab46){return _0x3aded0*_0x50ab46;},'EuiDi':_0x1d6f92(0xef),'LRPhW':'#faead0','aqBDK':function(_0xf7f09,_0x4a0821){return _0xf7f09<_0x4a0821;},'GoppV':function(_0x2bf305,_0x799a85){return _0x2bf305+_0x799a85;},'WEdPj':function(_0x5c6372,_0x17e3a1){return _0x5c6372+_0x17e3a1;},'aoQue':function(_0x401c3d,_0x1604cd){return _0x401c3d/_0x1604cd;},'GZECN':function(_0x42acd6,_0x59596e){return _0x42acd6%_0x59596e;},'rpwWB':_0x1d6f92(0x11b),'NfxLo':function(_0x2da1a9,_0x215b15){return _0x2da1a9===_0x215b15;},'uRmwW':function(_0x5cf2eb,_0x5bf302){return _0x5cf2eb*_0x5bf302;},'kkDgn':function(_0x530c46,_0x386f7e){return _0x530c46/_0x386f7e;},'ISswp':function(_0x27c7c5,_0x11d6dc){return _0x27c7c5+_0x11d6dc;},'utsOg':function(_0x1697de,_0x1ec65a){return _0x1697de/_0x1ec65a;},'SGPIH':function(_0xb5719b,_0x44ea7c){return _0xb5719b*_0x44ea7c;},'wYggo':function(_0x260f95,_0x137040){return _0x260f95>_0x137040;},'DJyYq':function(_0x36eb49,_0x465f1b){return _0x36eb49<_0x465f1b;},'yOkLY':function(_0x3204ad,_0xfbfb7a){return _0x3204ad*_0xfbfb7a;},'zYbtQ':_0x1d6f92(0xfc),'iGUJx':_0x1d6f92(0x15f),'EhRUe':_0x1d6f92(0x13e)};if(!this[_0x1d6f92(0x10f)]||!this[_0x1d6f92(0xb7)])return;const _0x15d218=this[_0x1d6f92(0x10f)],_0x47b06f=this[_0x1d6f92(0xd9)][_0x1d6f92(0xe3)],_0x5f7663=_0x35d2ba[_0x1d6f92(0x136)](_0x47b06f,0x2),_0x1be28b=_0x47b06f/0x2,_0x23b6ee=_0x35d2ba['pDVQP'](_0x35d2ba['fXytj'](_0x47b06f,0x2),0x4),_0x35dc8b=this['data'][_0x1d6f92(0x142)]||[],_0xd8313=0x6,_0x2a966e=_0x35d2ba[_0x1d6f92(0xfa)](Math['PI'],0x2)/_0xd8313,_0x1edf5c=[_0x35d2ba[_0x1d6f92(0x105)],_0x35d2ba['LRPhW']],_0x3960ee=[0x2,0x3];_0x15d218[_0x1d6f92(0x109)](0x0,0x0,_0x47b06f,_0x47b06f),_0x15d218['save'](),_0x15d218[_0x1d6f92(0x130)](_0x5f7663,_0x1be28b),_0x15d218['rotate'](_0x35d2ba['LlRWk'](-_0x2a966e,0x2)),_0x15d218[_0x1d6f92(0x130)](-_0x5f7663,-_0x1be28b);for(let _0x7cd843=0x0;_0x35d2ba[_0x1d6f92(0xde)](_0x7cd843,_0xd8313);_0x7cd843++){const _0x299c66=_0x35d2ba[_0x1d6f92(0x115)](_0x35d2ba[_0x1d6f92(0x11a)](-Math['PI'],0x2),_0x35d2ba[_0x1d6f92(0xc9)](_0x7cd843,_0x2a966e)),_0x16b0dc=_0x35d2ba[_0x1d6f92(0xb8)](_0x299c66,_0x2a966e),_0x32881f=_0x299c66+_0x35d2ba[_0x1d6f92(0x106)](_0x2a966e,0x2);_0x15d218[_0x1d6f92(0x128)](),_0x15d218[_0x1d6f92(0x10e)](_0x5f7663,_0x1be28b),_0x15d218[_0x1d6f92(0xd5)](_0x5f7663,_0x1be28b,_0x23b6ee,_0x299c66,_0x16b0dc),_0x15d218[_0x1d6f92(0xff)](),_0x15d218[_0x1d6f92(0x116)]=_0x1edf5c[_0x35d2ba[_0x1d6f92(0xc6)](_0x7cd843,0x2)],_0x15d218[_0x1d6f92(0x139)](),_0x15d218[_0x1d6f92(0x12f)]=_0x35d2ba[_0x1d6f92(0xda)],_0x15d218[_0x1d6f92(0x15b)]();const _0x3fbc3f=_0x35dc8b['find'](_0x2a60f6=>_0x2a60f6[_0x1d6f92(0x131)]===_0x7cd843+0x1);if(!_0x3fbc3f)continue;const _0x5ec0f9=_0x35d2ba[_0x1d6f92(0x11e)](_0x3fbc3f[_0x1d6f92(0xce)],0x3);_0x15d218[_0x1d6f92(0xee)](),_0x15d218[_0x1d6f92(0x130)](_0x5f7663,_0x1be28b),_0x15d218[_0x1d6f92(0x146)](_0x32881f);if(!_0x5ec0f9&&_0x3fbc3f[_0x1d6f92(0x120)]){const _0x1aedcc=this[_0x1d6f92(0x110)][_0x1d6f92(0x13b)](_0x3fbc3f[_0x1d6f92(0x120)]);if(_0x1aedcc){const _0x1b9b54=_0x35d2ba[_0x1d6f92(0xc9)](_0x47b06f,0.125),_0x5cd1e2=_0x35d2ba[_0x1d6f92(0x11d)](_0x23b6ee,0.5),_0x14d1cf=_0x35d2ba[_0x1d6f92(0x145)](_0x5cd1e2,_0x1b9b54/0x2),_0x20ee7a=_0x35d2ba['kkDgn'](-_0x1b9b54,0x2);_0x15d218[_0x1d6f92(0x130)](_0x14d1cf+_0x1b9b54/0x2,_0x35d2ba[_0x1d6f92(0xd7)](_0x20ee7a,_0x35d2ba[_0x1d6f92(0x11a)](_0x1b9b54,0x2))),_0x15d218[_0x1d6f92(0x146)](_0x35d2ba[_0x1d6f92(0x11a)](Math['PI'],0x2)),_0x15d218[_0x1d6f92(0x130)](-(_0x1b9b54/0x2),-_0x35d2ba[_0x1d6f92(0xb3)](_0x1b9b54,0x2)),_0x15d218[_0x1d6f92(0x119)](_0x1aedcc,0x0,0x0,_0x1b9b54,_0x1b9b54);}}_0x15d218['restore']();const _0x4e6985=_0x35d2ba[_0x1d6f92(0xc9)](_0x23b6ee,0.78),_0x20cdd1=_0x5f7663+Math[_0x1d6f92(0xe6)](_0x32881f)*_0x4e6985,_0x4e454b=_0x1be28b+_0x35d2ba[_0x1d6f92(0x111)](Math[_0x1d6f92(0x151)](_0x32881f),_0x4e6985);let _0x57f427=_0x35d2ba['ISswp'](_0x32881f,_0x35d2ba[_0x1d6f92(0x106)](Math['PI'],0x2));_0x35d2ba['wYggo'](_0x57f427,_0x35d2ba['aoQue'](Math['PI'],0x2))&&_0x35d2ba[_0x1d6f92(0x13a)](_0x57f427,_0x35d2ba[_0x1d6f92(0x136)](_0x35d2ba[_0x1d6f92(0x158)](Math['PI'],0x3),0x2))&&(_0x57f427+=Math['PI']);_0x3960ee['includes'](_0x7cd843)&&(_0x57f427+=Math['PI']);_0x15d218[_0x1d6f92(0xee)](),_0x15d218[_0x1d6f92(0x130)](_0x20cdd1,_0x4e454b),_0x15d218[_0x1d6f92(0x146)](_0x57f427),_0x15d218[_0x1d6f92(0x116)]=_0x35d2ba['zYbtQ'];const _0x21f83c=_0x47b06f*0.044;_0x15d218['font']=_0x1d6f92(0x14b)+_0x21f83c+'px\x20sans-serif',_0x15d218[_0x1d6f92(0xc8)]=_0x1d6f92(0xea),_0x15d218[_0x1d6f92(0x127)]=_0x35d2ba['iGUJx'];const _0xdc67f0=_0x5ec0f9?[_0x35d2ba[_0x1d6f92(0xb6)]]:this[_0x1d6f92(0xc4)](_0x3fbc3f[_0x1d6f92(0x14a)]||'',0x8);_0xdc67f0[_0x1d6f92(0x154)]((_0x4741f8,_0x3b0638)=>{const _0x449c73=_0x1d6f92;_0x15d218[_0x449c73(0xd1)](_0x4741f8,0x0,_0x35d2ba['FVSik'](_0x35d2ba['jrYbQ'](_0x3b0638,_0x35d2ba[_0x449c73(0x11a)](_0x35d2ba[_0x449c73(0x133)](_0xdc67f0[_0x449c73(0xf7)],0x1),0x2)),_0x21f83c));}),_0x15d218[_0x1d6f92(0x101)]();}_0x15d218[_0x1d6f92(0x101)]();},'wrapText'(_0x22ef2d,_0x2d3a1c){const _0x137c6e=_0xec7a,_0xf6125e={'ikxfj':function(_0x54b3bc,_0x1d2900){return _0x54b3bc+_0x1d2900;}},_0x48eb4a=[];for(let _0x2ac62b=0x0;_0x2ac62b<_0x22ef2d[_0x137c6e(0xf7)];_0x2ac62b+=_0x2d3a1c){_0x48eb4a['push'](_0x22ef2d[_0x137c6e(0x100)](_0x2ac62b,_0xf6125e[_0x137c6e(0x15d)](_0x2ac62b,_0x2d3a1c)));}return _0x48eb4a;},'showRule'(){const _0x195ac5=_0xec7a;this[_0x195ac5(0x10d)]({'showRuleModal':!![]});},'hideRule'(){const _0x221d37=_0xec7a;this[_0x221d37(0x10d)]({'showRuleModal':![]});},'showGift'(){const _0x28e2a0=_0xec7a;this[_0x28e2a0(0x10d)]({'showGiftModal':!![]});},'hideGift'(){const _0x16a32b=_0xec7a;this[_0x16a32b(0x10d)]({'showGiftModal':![]});},'showTask'(){const _0x2ee68a=_0xec7a;this[_0x2ee68a(0x10d)]({'showTaskModal':!![]});},'hideTask'(){this['setData']({'showTaskModal':![]});},'stopPropagation'(){},'copyText'(_0x49a17f){const _0x3c5c96=_0xec7a,_0x532d09=_0x49a17f[_0x3c5c96(0x153)]['dataset'][_0x3c5c96(0x15a)];wx[_0x3c5c96(0x12a)]({'data':_0x532d09,'success':()=>{const _0x4cd8aa=_0x3c5c96;wx['showToast']({'title':_0x4cd8aa(0x10a),'icon':'success'});}});},'goToApp'(){const _0x4f68d0=_0xec7a,_0x3a1b7e={'lJXux':'https://www.southnote.cn'};wx[_0x4f68d0(0xd3)]({'url':_0x4f68d0(0xed)+encodeURIComponent(_0x3a1b7e[_0x4f68d0(0xb0)])});}});function _0x256e(){const _0x40b63d=['uejdy24','DxrZt2C','AxnbCNjHEq','vKLJreG','rwHsvwu','y2fUDMfZ','v0vKugO','DgLTzq','BfrVsfy','DgfZA3m','C3rYAw5N','mtGYmtzwyuXNy1e','nZeYodyZnLP5seHtrG','z2v0u3LZDgvTsw5MB1n5BMm','D2XWzvK','5Q+p5PEL5y+r5BIw5B6x5QYH5PwWka','C3D2t3G','vKrZzvu','D3jHCfrLEhq','Dg90ywXFy2HHBMnL','r1Pfq04','BgLRzq','Dgv4DefSAwDU','rLztAwS','z2v0twLUDxrLCW','v0Ttr28','C3rHCNrFDgLTzq','oda3mNjPtgLysG','AxrLBv90ExbL','zxHLyW','C2nHBgu','zMLSBfrLEhq','mtuZnde0ugDjufLM','BMf2AwDHDgvuBW','B25SB2fK','yxjJ','5zYO5PYS6Ag16z2I54k55yE744cq5BYa5AEl5OQ95Aww44crlownS+wpR+AkVEwpLUwVUEw6LoEAHoEKVowmHsZNPlZLJixLHyJLIldLHyJLVPCS5OQ95A6m5lI65Q2I44cc','svnZD3a','mte1ENzXz0PN','zgf0yq','CNb3v0i','5Q+p5PEL55M75B2v5B6x5QYH5PwWka','DLLVrhy','z2v0rNvSBfLLyxi','yxfcreS','oty4EgTKA0ry','C2vSzwn0','z2v0q29UDgv4Da','zxLgCMy','y2fUDMfZu2L6zq','mZnnAevWzvi','zM9YBwf0vgLTzq','y29Z','zgfPBhLFy2HHBMnL','ic0G','CgfKu3rHCNq','y2vUDgvY','z2v0rgf0zq','zKnZB2i','lI4Vy29WEu9MzMLJAwfSl2nVChLpzMzPy2LHBd91CMW9','C2f2zq','i2zIzJDLyG','5Q+p5PEL5y+r6kgO6k+D6AkyiW','nejprK1XBW','lZeP','nZq2mZrMvwH2ywG','rML3Ae4','txDVELu','C0vbEhi','BgvUz3rO','Cg9ZDf9JAgfUy2u','yLL1q28','EMDervu','y3jLyxrLsw1Hz2u','i2jJotC3zG','rfrOwum','Bg9HzefJDgL2Axr5rgf0yq','y2XVC2vqyxrO','C2XPy2u','CMvZDg9Yzq','Aw5PDenHBNzHCW','nK16AKDfBq','y29TChv0zvrHC2TjDgvTCW','rxvPrgK','yw9rDwu','y29TBwvUDf9JAgfUy2u','s0XAyuG','y2XLyxjszwn0','5OU36lsD5OIq5yQF','sujPCM8','B25LCNjVCG','C2v0rgf0yq','Bw92zvrV','y3r4','Aw1Nq2fJAgu','u0DqsuG','D1rfEuG','y29UDMvYDfrVshr0Chm','B3DUx3jLy29Yza','r29WCfy','zMLSBfn0EwXL','Bg9NAw4','Duv5q0K','zhjHD0LTywDL','tgXsv2S','i2u4zdvIma','CMvWBgfJzq','DvjTD1C','tMz4tg8','t2HfA0W','AxrLBv9Py29U','t0XntuS','BwfW','5OQ95Aww5QYH5PwW5lQo5Q+p5PELmda6mddMUixPM7y','Ae9Lvgq','i3DOzwvSq2fUDMfZ','CMv3yxjKCW','Dgv4DejHC2vSAw5L','yMvNAw5qyxrO','y2HHBMnLx2rHDge','C2v0q2XPCgjVyxjKrgf0yq','twDOs2y','AgfZ','zunlu0O','i+w+L+ASOEAvScG','C3rYB2TLu3r5Bgu','DhjHBNnSyxrL','Cg9ZAxrPB24','D2LKDgG','Cerwuva','CgL4zwXsyxrPBW','C3jJ','B1HUrMC','Dg9WAwnFy2HHBMnL','BwLU','zMLSBa','reP5wxe','z2v0','y29TChv0zurLCML2zwreyxrH','AgvPz2H0','6lcI6lcI5y+c5lIo','u2HRvvG','zw5Kx3rPBwu','Ahr0Chm6lY8','D2HLzwXjDgvTCW','ywn0AxzPDhLFzgvZyW','BM9Kzq','ANjzyLe','CM90yxrL','mZi0ota1ANLwsNro','D2LUBMvYCW','ChvZAa','AxrLBv9Uyw1L','yM9Szca','zhjHD1DOzwvS','z2v0tw9UDgG','Dg9WAwm','y3jLyxrLzf9HDa','y29TBwvUDa','C2LU','BgLRzv9JAgfUy2u','y3vYCMvUDfrHCMDLDa','zM9YrwfJAa','mZqWnJuWvgTdrxnq','DgHLBG','mtnoBKjIEvu','Eu9RtfK','CgLvrNC','Dgv4Da','C3rYB2TL','y3jLyxrLu2vSzwn0B3jrDwvYEq','AwT4zMO','5Q+p5PEL54k56lwE5B6x5QYH5PwWka','BwLKzgXL','BePyDxG','C2v0'];_0x256e=function(){return _0x40b63d;};return _0x256e();}
|
package/pages/wiki/wiki.js
CHANGED
|
@@ -1,138 +1 @@
|
|
|
1
|
-
import {
|
|
2
|
-
queryGameWikiByName,
|
|
3
|
-
queryGameWikiUsers
|
|
4
|
-
} from '../../services/home'
|
|
5
|
-
import {
|
|
6
|
-
decompressBase64Gzip,
|
|
7
|
-
isEmptyObject
|
|
8
|
-
} from '../../utils/base64'
|
|
9
|
-
import {
|
|
10
|
-
formatUTCYear
|
|
11
|
-
} from '../../utils/formatPost'
|
|
12
|
-
|
|
13
|
-
Page({
|
|
14
|
-
data: {
|
|
15
|
-
gameId: '',
|
|
16
|
-
name: '',
|
|
17
|
-
gameWikiJson: [],
|
|
18
|
-
wikiUsers: [],
|
|
19
|
-
loading: true,
|
|
20
|
-
images: [],
|
|
21
|
-
wiki_created_at: ''
|
|
22
|
-
},
|
|
23
|
-
|
|
24
|
-
onShareAppMessage() {
|
|
25
|
-
return {
|
|
26
|
-
title: this.data.name, // 分享卡片标题
|
|
27
|
-
path: `../wiki/wiki?game_id=${this.data.gameId}&name=${encodeURIComponent(this.data.name)}`
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
|
|
31
|
-
onLoad(options) {
|
|
32
|
-
const gameId = options.gameId || options.game_id || ''
|
|
33
|
-
const name = options.name ? decodeURIComponent(options.name) : ''
|
|
34
|
-
const wiki_created_at = options.wiki_created_at || ''
|
|
35
|
-
|
|
36
|
-
this.setData({
|
|
37
|
-
gameId,
|
|
38
|
-
name,
|
|
39
|
-
wiki_created_at
|
|
40
|
-
})
|
|
41
|
-
|
|
42
|
-
// ✅ 直接在 onLoad 里设置,不用等数据加载完
|
|
43
|
-
if (name) {
|
|
44
|
-
wx.setNavigationBarTitle({
|
|
45
|
-
title: name
|
|
46
|
-
})
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
this.loadWikiData(gameId, name)
|
|
50
|
-
},
|
|
51
|
-
|
|
52
|
-
async loadWikiData(gameId, name) {
|
|
53
|
-
try {
|
|
54
|
-
const res = await queryGameWikiByName(gameId, name)
|
|
55
|
-
|
|
56
|
-
if (res.code === 0 && res.data?.images && Array.isArray(res.data?.images)) {
|
|
57
|
-
this.setData({
|
|
58
|
-
images: res.data?.images
|
|
59
|
-
})
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
if (res.code === 0 && res.data?.page) {
|
|
63
|
-
try {
|
|
64
|
-
const result = decompressBase64Gzip(res.data.page?.payload)
|
|
65
|
-
|
|
66
|
-
const wikiJson = Array.isArray(result) ?
|
|
67
|
-
result :
|
|
68
|
-
(result?.blocks ?? result ?? [])
|
|
69
|
-
|
|
70
|
-
// 递归将所有图片 url 中的 http:// 替换为 https://
|
|
71
|
-
function replaceHttpToHttps(obj) {
|
|
72
|
-
if (Array.isArray(obj)) {
|
|
73
|
-
return obj.map(replaceHttpToHttps)
|
|
74
|
-
} else if (obj !== null && typeof obj === 'object') {
|
|
75
|
-
const newObj = {}
|
|
76
|
-
Object.keys(obj).forEach(function (key) {
|
|
77
|
-
const value = obj[key]
|
|
78
|
-
if (key === 'url' && typeof value === 'string') {
|
|
79
|
-
newObj[key] = value.replace(/^http:\/\//i, 'https://')
|
|
80
|
-
} else {
|
|
81
|
-
newObj[key] = replaceHttpToHttps(value)
|
|
82
|
-
}
|
|
83
|
-
})
|
|
84
|
-
return newObj
|
|
85
|
-
}
|
|
86
|
-
return obj
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
let httpsResult = replaceHttpToHttps(wikiJson)
|
|
90
|
-
|
|
91
|
-
if (res.data.stats) {
|
|
92
|
-
httpsResult = httpsResult.map(item =>
|
|
93
|
-
item.type === 6 ? {
|
|
94
|
-
...item,
|
|
95
|
-
stats: res.data.stats
|
|
96
|
-
} : item
|
|
97
|
-
)
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
console.log('解压并转换后的json:', JSON.stringify(httpsResult))
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
this.setData({
|
|
104
|
-
gameWikiJson: httpsResult,
|
|
105
|
-
wiki_created_at: formatUTCYear(res.data.page?.created_at)
|
|
106
|
-
})
|
|
107
|
-
} catch (err) {
|
|
108
|
-
console.error('解压失败', err)
|
|
109
|
-
this.setData({
|
|
110
|
-
gameWikiJson: []
|
|
111
|
-
})
|
|
112
|
-
}
|
|
113
|
-
} else {
|
|
114
|
-
this.setData({
|
|
115
|
-
gameWikiJson: []
|
|
116
|
-
})
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
// 加载攻略组成员
|
|
120
|
-
const usersRes = await queryGameWikiUsers(gameId)
|
|
121
|
-
if (usersRes.code === 0) {
|
|
122
|
-
this.setData({
|
|
123
|
-
wikiUsers: Array.isArray(usersRes.data) ? usersRes.data : []
|
|
124
|
-
})
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
} catch (e) {
|
|
128
|
-
console.error('获取wiki失败', e)
|
|
129
|
-
this.setData({
|
|
130
|
-
gameWikiJson: []
|
|
131
|
-
})
|
|
132
|
-
} finally {
|
|
133
|
-
this.setData({
|
|
134
|
-
loading: false
|
|
135
|
-
})
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
})
|
|
1
|
+
(function(_0xc60447,_0x5eeab5){const _0x13b6fb=_0x32de,_0x269930=_0xc60447();while(!![]){try{const _0x11c0d2=parseInt(_0x13b6fb(0x88))/0x1*(-parseInt(_0x13b6fb(0xa9))/0x2)+parseInt(_0x13b6fb(0xa3))/0x3*(-parseInt(_0x13b6fb(0x72))/0x4)+parseInt(_0x13b6fb(0x91))/0x5*(-parseInt(_0x13b6fb(0x96))/0x6)+-parseInt(_0x13b6fb(0x95))/0x7*(parseInt(_0x13b6fb(0x85))/0x8)+-parseInt(_0x13b6fb(0x8e))/0x9*(-parseInt(_0x13b6fb(0x7a))/0xa)+-parseInt(_0x13b6fb(0xa8))/0xb*(-parseInt(_0x13b6fb(0x75))/0xc)+parseInt(_0x13b6fb(0x82))/0xd;if(_0x11c0d2===_0x5eeab5)break;else _0x269930['push'](_0x269930['shift']());}catch(_0x5af501){_0x269930['push'](_0x269930['shift']());}}}(_0x23ec,0xe4262));function _0x32de(_0x58330c,_0x2fbde8){_0x58330c=_0x58330c-0x72;const _0x23ecc3=_0x23ec();let _0x32dea1=_0x23ecc3[_0x58330c];if(_0x32de['HWVNrU']===undefined){var _0x337fd5=function(_0x338c05){const _0x576e7f='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x533f04='',_0x22df09='';for(let _0x1d4a14=0x0,_0x2c2764,_0x37c899,_0x47bbad=0x0;_0x37c899=_0x338c05['charAt'](_0x47bbad++);~_0x37c899&&(_0x2c2764=_0x1d4a14%0x4?_0x2c2764*0x40+_0x37c899:_0x37c899,_0x1d4a14++%0x4)?_0x533f04+=String['fromCharCode'](0xff&_0x2c2764>>(-0x2*_0x1d4a14&0x6)):0x0){_0x37c899=_0x576e7f['indexOf'](_0x37c899);}for(let _0x4f5778=0x0,_0x319136=_0x533f04['length'];_0x4f5778<_0x319136;_0x4f5778++){_0x22df09+='%'+('00'+_0x533f04['charCodeAt'](_0x4f5778)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x22df09);};_0x32de['zLlIAr']=_0x337fd5,_0x32de['jpduEk']={},_0x32de['HWVNrU']=!![];}const _0x4f5ce2=_0x23ecc3[0x0],_0x34b8d6=_0x58330c+_0x4f5ce2,_0x547acd=_0x32de['jpduEk'][_0x34b8d6];return!_0x547acd?(_0x32dea1=_0x32de['zLlIAr'](_0x32dea1),_0x32de['jpduEk'][_0x34b8d6]=_0x32dea1):_0x32dea1=_0x547acd,_0x32dea1;}import{queryGameWikiByName,queryGameWikiUsers}from'../../services/home';import{decompressBase64Gzip,isEmptyObject}from'../../utils/base64';import{formatUTCYear}from'../../utils/formatPost';function _0x23ec(){const _0x1a7a39=['BwfW','mtq4mdu2owXcB1rACW','CgfNzq','DhLWzq','y0Ljrgq','z2fTzv9Pza','nZi0mJrfvxfZsKi','otCWnJjwvgDjt1K','Bg9N','nhnMExjyCa','CMvWBgfJzq','zgf0yq','mJy3nNreCLHhDW','6i635y+wD2LRAEwKSEI0Pq','Bg9HzfDPA2LeyxrH','tg5SBLi','zNLmuK0','mJuWCfniwhHb','y3jLyxrLzf9HDa','6kEJ5y6l5BM26l2S5O2I5zco55QeANnVBU+8MG','tK1yBfq','AxnbCNjHEq','BMfTzq','C3rHDhm','DKTgCM4','mJu1ndGZmtvbChvxv0m','y29Kzq','wNPbq04','mtq4mgn0CwLcqW','jM5HBwu9','BhHpwLG','mtjvBvrRrvi','Cgf5Bg9Hza','A2v5CW','z2fTzuLK','lI4VD2LRAs93AwTPp2DHBwvFAwq9','C3rYAw5N','ntyXmJG1DwTlzfPp','v2j6Dwy','tuzUBfq','ndy2mZbTuhDivu8','tMvhDfa','zM9YrwfJAa','C3rYAw5NAwz5','nJm3otf2vfDbDLu','odm0uLvvqwvy','A09or2W','ufvWEgW','DxjS','Ahr0Chm6lY8','zMvxEM4','6kEJ5y6l5AsX6lsL','DhnnzhC','zxjYB3i','yMXVy2TZ','Aw1Hz2vZ','C2v0rgf0yq'];_0x23ec=function(){return _0x1a7a39;};return _0x23ec();}Page({'data':{'gameId':'','name':'','gameWikiJson':[],'wikiUsers':[],'loading':!![],'images':[],'wiki_created_at':''},'onShareAppMessage'(){const _0x1aab88=_0x32de,_0x4e5e5e={'fyLRM':function(_0x53e049,_0x2ff9cd){return _0x53e049(_0x2ff9cd);}};return{'title':this[_0x1aab88(0x74)][_0x1aab88(0x7f)],'path':_0x1aab88(0x8c)+this['data'][_0x1aab88(0x8b)]+_0x1aab88(0x86)+_0x4e5e5e[_0x1aab88(0x79)](encodeURIComponent,this[_0x1aab88(0x74)]['name'])};},'onLoad'(_0x3c78c5){const _0x16d508=_0x32de,_0x2c5403={'Wbzuf':function(_0x1d1891,_0x522355){return _0x1d1891(_0x522355);}},_0x6c8076=_0x3c78c5['gameId']||_0x3c78c5[_0x16d508(0xa7)]||'',_0x568dca=_0x3c78c5[_0x16d508(0x7f)]?_0x2c5403[_0x16d508(0x8f)](decodeURIComponent,_0x3c78c5[_0x16d508(0x7f)]):'',_0x4c2063=_0x3c78c5['wiki_created_at']||'';this[_0x16d508(0xa1)]({'gameId':_0x6c8076,'name':_0x568dca,'wiki_created_at':_0x4c2063}),_0x568dca&&wx['setNavigationBarTitle']({'title':_0x568dca}),this[_0x16d508(0x77)](_0x6c8076,_0x568dca);},async 'loadWikiData'(_0x495c85,_0x5b42db){const _0x13fa5a=_0x32de,_0x189f73={'sejVC':_0x13fa5a(0x99),'lvbyn':function(_0x250e25,_0x1d6f8e){return _0x250e25===_0x1d6f8e;},'kONGl':_0x13fa5a(0x8d),'lxOZX':_0x13fa5a(0x9a),'tsMdw':function(_0x50f61d,_0x1415c7){return _0x50f61d(_0x1415c7);},'LnlnR':function(_0x2ae78e,_0xe0c8a4){return _0x2ae78e!==_0xe0c8a4;},'cIIDd':function(_0x3c518f,_0x27bea0,_0x5766a3){return _0x3c518f(_0x27bea0,_0x5766a3);},'feWzn':function(_0x2157ad,_0x508dc2){return _0x2157ad===_0x508dc2;},'NeGtP':_0x13fa5a(0x7c),'vKFrn':function(_0x26ddad,_0x53130c){return _0x26ddad(_0x53130c);},'ZzACN':_0x13fa5a(0x9c)};try{const _0x24a487=await _0x189f73[_0x13fa5a(0xa6)](queryGameWikiByName,_0x495c85,_0x5b42db);_0x189f73[_0x13fa5a(0x9b)](_0x24a487[_0x13fa5a(0x83)],0x0)&&_0x24a487['data']?.[_0x13fa5a(0xa0)]&&Array[_0x13fa5a(0x7e)](_0x24a487['data']?.[_0x13fa5a(0xa0)])&&this['setData']({'images':_0x24a487[_0x13fa5a(0x74)]?.[_0x13fa5a(0xa0)]});if(_0x24a487[_0x13fa5a(0x83)]===0x0&&_0x24a487[_0x13fa5a(0x74)]?.['page'])try{const _0x2e1e61=decompressBase64Gzip(_0x24a487[_0x13fa5a(0x74)][_0x13fa5a(0xa4)]?.[_0x13fa5a(0x89)]),_0x5abae6=Array[_0x13fa5a(0x7e)](_0x2e1e61)?_0x2e1e61:_0x2e1e61?.[_0x13fa5a(0x9f)]??_0x2e1e61??[];function _0x3eddfd(_0x144744){const _0x1cb8c6=_0x13fa5a,_0x4be4d5={'NMXlT':_0x189f73['sejVC'],'MFnlT':function(_0xca545a,_0x42ac9f){return _0x189f73['lvbyn'](_0xca545a,_0x42ac9f);},'zjlKR':_0x189f73[_0x1cb8c6(0x97)],'gfKRe':_0x189f73[_0x1cb8c6(0x87)],'PUpxl':function(_0xa85648,_0x1c8276){const _0x2a3805=_0x1cb8c6;return _0x189f73[_0x2a3805(0x9d)](_0xa85648,_0x1c8276);}};if(Array['isArray'](_0x144744))return _0x144744[_0x1cb8c6(0xa2)](_0x3eddfd);else{if(_0x189f73[_0x1cb8c6(0x78)](_0x144744,null)&&typeof _0x144744==='object'){const _0x1191b8={};return Object[_0x1cb8c6(0x8a)](_0x144744)[_0x1cb8c6(0x93)](function(_0xbe32b7){const _0x478dcd=_0x1cb8c6,_0x1f9629=_0x144744[_0xbe32b7];_0xbe32b7===_0x4be4d5[_0x478dcd(0x7d)]&&_0x4be4d5[_0x478dcd(0x90)](typeof _0x1f9629,_0x4be4d5['zjlKR'])?_0x1191b8[_0xbe32b7]=_0x1f9629[_0x478dcd(0x73)](/^http:\/\//i,_0x4be4d5['gfKRe']):_0x1191b8[_0xbe32b7]=_0x4be4d5[_0x478dcd(0x98)](_0x3eddfd,_0x1f9629);}),_0x1191b8;}}return _0x144744;}let _0x5a153b=_0x189f73[_0x13fa5a(0x9d)](_0x3eddfd,_0x5abae6);_0x24a487['data']['stats']&&(_0x5a153b=_0x5a153b[_0x13fa5a(0xa2)](_0x2d62e1=>_0x2d62e1[_0x13fa5a(0xa5)]===0x6?{..._0x2d62e1,'stats':_0x24a487['data'][_0x13fa5a(0x80)]}:_0x2d62e1)),console[_0x13fa5a(0xaa)](_0x189f73[_0x13fa5a(0x92)],JSON[_0x13fa5a(0x94)](_0x5a153b)),this[_0x13fa5a(0xa1)]({'gameWikiJson':_0x5a153b,'wiki_created_at':_0x189f73[_0x13fa5a(0x81)](formatUTCYear,_0x24a487['data'][_0x13fa5a(0xa4)]?.[_0x13fa5a(0x7b)])});}catch(_0x1cc5bc){console['error'](_0x189f73[_0x13fa5a(0x84)],_0x1cc5bc),this[_0x13fa5a(0xa1)]({'gameWikiJson':[]});}else this['setData']({'gameWikiJson':[]});const _0x1eeb0d=await _0x189f73[_0x13fa5a(0x9d)](queryGameWikiUsers,_0x495c85);_0x189f73['lvbyn'](_0x1eeb0d[_0x13fa5a(0x83)],0x0)&&this['setData']({'wikiUsers':Array[_0x13fa5a(0x7e)](_0x1eeb0d[_0x13fa5a(0x74)])?_0x1eeb0d[_0x13fa5a(0x74)]:[]});}catch(_0x25e061){console[_0x13fa5a(0x9e)](_0x13fa5a(0x76),_0x25e061),this[_0x13fa5a(0xa1)]({'gameWikiJson':[]});}finally{this[_0x13fa5a(0xa1)]({'loading':![]});}}});
|