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
|
@@ -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(_0x5c55ba,_0x4cef7e){const _0x1adbdb=_0x21cc,_0x58f205=_0x5c55ba();while(!![]){try{const _0x1fcad7=-parseInt(_0x1adbdb(0x208))/0x1+parseInt(_0x1adbdb(0x1e3))/0x2+parseInt(_0x1adbdb(0x23c))/0x3+-parseInt(_0x1adbdb(0x1e9))/0x4*(-parseInt(_0x1adbdb(0x247))/0x5)+-parseInt(_0x1adbdb(0x201))/0x6+-parseInt(_0x1adbdb(0x209))/0x7*(parseInt(_0x1adbdb(0x1f2))/0x8)+-parseInt(_0x1adbdb(0x1d8))/0x9;if(_0x1fcad7===_0x4cef7e)break;else _0x58f205['push'](_0x58f205['shift']());}catch(_0x52d5f6){_0x58f205['push'](_0x58f205['shift']());}}}(_0x14b5,0xa128b));function _0x21cc(_0x5ded46,_0x5ca811){_0x5ded46=_0x5ded46-0x1bd;const _0x14b520=_0x14b5();let _0x21ccc9=_0x14b520[_0x5ded46];if(_0x21cc['OKQlmL']===undefined){var _0x5833f7=function(_0x5e5cc){const _0x37b383='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x213fa2='',_0x352ca4='';for(let _0x24453e=0x0,_0x208c44,_0x1508be,_0x1caa8c=0x0;_0x1508be=_0x5e5cc['charAt'](_0x1caa8c++);~_0x1508be&&(_0x208c44=_0x24453e%0x4?_0x208c44*0x40+_0x1508be:_0x1508be,_0x24453e++%0x4)?_0x213fa2+=String['fromCharCode'](0xff&_0x208c44>>(-0x2*_0x24453e&0x6)):0x0){_0x1508be=_0x37b383['indexOf'](_0x1508be);}for(let _0x4b0113=0x0,_0x371af5=_0x213fa2['length'];_0x4b0113<_0x371af5;_0x4b0113++){_0x352ca4+='%'+('00'+_0x213fa2['charCodeAt'](_0x4b0113)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x352ca4);};_0x21cc['cKZQkT']=_0x5833f7,_0x21cc['tGMWvc']={},_0x21cc['OKQlmL']=!![];}const _0x4b9100=_0x14b520[0x0],_0x226a28=_0x5ded46+_0x4b9100,_0x28728a=_0x21cc['tGMWvc'][_0x226a28];return!_0x28728a?(_0x21ccc9=_0x21cc['cKZQkT'](_0x21ccc9),_0x21cc['tGMWvc'][_0x226a28]=_0x21ccc9):_0x21ccc9=_0x28728a,_0x21ccc9;}function _0x14b5(){const _0x54fe59=['yxjJ','5Q+p5PEL55M75B2v5B6x5QYH5PwWka','r29nv1e','y3vYCMvUDfrHCMDLDa','CxHVuKm','mJe0mdG0nezWrNz1rG','ywn0AxzPDhLFzgvZyW','ELjIA0y','q3zStgC','lZeP','zgf0yxnLDa','ndu4meXtzg5MAa','t3fwuxe','lI4Vy29WEu9MzMLJAwfSl2nVChLpzMzPy2LHBd91CMW9','D2LKDgG','CgL4zwXsyxrPBW','C2LU','Avj5uKS','CgfKu3rHCNq','Ahr0Chm6lY93D3CUC291DgHUB3rLlMnU','mJu3oty3mLPYtKz2rW','uLnZuue','Cg9ZDf9JAgfUy2u','D2LUBMvYCW','C2XPy2u','y29UDMvYDfrVshr0Chm','zxHLyW','z2v0q29UDgv4Da','ChGGC2fUCY1ZzxjPzG','Dg90ywXFy2HHBMnL','uvDetu8','C2v0q2XPCgjVyxjKrgf0yq','ChjLBg9HzeLTywDLCW','tNzrqxG','tuz6AwS','mtGXotqWng9dCgjnyG','z2v0tw9UDgG','AMzjrMG','y29Z','AxnbCNjHEq','y2fUDMfZ','B25LCNjVCG','nZi5mJzVBeHnzvq','mJHTBML2tgq','DhjHBNnSyxrL','z0Hxqw0','y2fUDMfZu2L6zq','y29TBwvUDa','y3r4','zgfPBhLFy2HHBMnL','uhLjD0e','Dffmv0q','Dg9WAwnFBMfTzq','Ew1gAey','i2zHzwfKma','C3jJ','BMf2AwDHDgvuBW','5Q+p5PEL54k56lwE5B6x5QYH5PwWka','D2HLzwXjDgvTCW','BgLRzq','z2v0','zw5Kx3rPBwu','zhjHD0LTywDL','BgvUz3rO','qw50twC','DLvSDMq','5zYO5PYS6Ag16z2I54k55yE744cq5BYa5AEl5OQ95Aww44crlownS+wpR+AkVEwpLUwVUEw6LoEAHoEKVowmHsZNPlZLJixLHyJLIldLHyJLVPCS5OQ95A6m5lI65Q2I44cc','y3jLyxrLsw1Hz2u','wLLjueu','y2XLyxjszwn0','y2XVC2vqyxrO','ic0G','5Q+p5PEL5y+r5BIw5B6x5QYH5PwWka','Aw5JBhvKzxm','i2jJotC3zG','ug5cu0W','CM90yxrL','zM9YrwfJAa','tuj1ufu','Dgv4DejHC2vSAw5L','yMvNAw5qyxrO','qLH2B24','i+w+L+ASOEAvScG','z2v0rgf0zq','zMLSBa','y2H2Bhq','Ahr0Chm6lY8','C3rYB2TLu3r5Bgu','uxD3DvO','ywXQAwi','A1HODge','CfzbDwy','Cg9ZDa','AxrLBv9Uyw1L','mtqZotu2ofj6r09mta','C2v0rgf0yq','D2HLzwW','zuTeAMi','zgf0yq','ChvZAa','rwz6DNO','DMjtreG','BgLRzv9JAgfUy2u','BwfW','BM9Kzq','ndqXnxD0BeznAa','zM9YBwf0vgLTzq','AhbQAxm','Bg9HzefJDgL2Axr5rgf0yq','i3DOzwvSq29UDgfPBMvY','CMvZDg9Yzq','C3rYB2TL','rhHdv0K','Aw1Nq2fJAgu','BwLU','Be9Jy1u','y2HHBMnLx2rHDge','Dgv4Da','DgHLBG','A3rjzNK','rgD0CxK','B2jQzwn0','5Q+p5PEL5y+r6kgO6k+D6AkyiW','v1HvBLK','6lcI6lcI5y+c5lIo','C2v0Dxbdyw52yxm','s3b1BMS','zhjHD1DOzwvS','vfPPrgK','AgfZ','D2rTuee','y29TBwvUDf9JAgfUy2u','AxrLBv90ExbL','Aw5PDenHBNzHCW','BwLKzgXL','DgLTzq','DMfgC1u','y29TChv0zvrHC2TjDgvTCW','Dgv4DefSAwDU','AxrLBv9Py29U','Cg9ZAxrPB24','yM91BMrPBMDdBgLLBNrszwn0','i2zIzJDLyG','C3rHCNrFDgLTzq','y2vUDgvY','C2nHBgu','C2f2zq','q2HZwKu','Dg9WAwnFy2HHBMnL','qvnXv1i','5Q+p5PEL6k+e6k665B6x5QYH5PwWka','De1mAMC','CMv3yxjKCW','Bg9NAw4','u0ndswC','y3jLyxrLu2vSzwn0B3jrDwvYEq','DLbrt2e','z2v0sg91CNm','Ag9VEvC','y29TChv0zvj1BgvjDgvTCW','C2vSzwn0','ywn0AxzPDhLFAwq','zMLSBfn0EwXL','z2v0twLUDxrLCW','ywXS','mJeXnJG5mfrdy1zACa','EwPPAwm','y3jLyxrLzf9HDa','CuX3sMu','B25SB2fK','CMvWBgfJzq'];_0x14b5=function(){return _0x54fe59;};return _0x14b5();}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'(_0x346bb7){const _0x2e039a=_0x21cc,_0x125035=_0x346bb7[_0x2e039a(0x1d4)];this[_0x2e039a(0x24a)](_0x125035);},'onReady'(){const _0x458948=_0x21cc;this[_0x458948(0x263)]();},'loadActivityData'(_0x599ee7){const _0x4311e8=_0x21cc,_0x316004={'touDN':function(_0x14cd46,_0x345f01){return _0x14cd46(_0x345f01);}};_0x316004['touDN'](queryGameActivityInfo,_0x599ee7)[_0x4311e8(0x254)](_0x34a35a=>{const _0x174bd6=_0x4311e8,_0xb543ff=this[_0x174bd6(0x1f7)](_0x34a35a[_0x174bd6(0x240)]);this[_0x174bd6(0x23d)]({'activityData':_0xb543ff},()=>{const _0x3c87c1=_0x174bd6;this['computeDerivedData'](),this[_0x3c87c1(0x25d)]();});});},'convertToHttps'(_0x1c1de1){const _0x317c1d=_0x21cc,_0x5dae8c={'iRyRK':_0x317c1d(0x234),'rkdca':function(_0x5fec4c,_0x2c4723){return _0x5fec4c===_0x2c4723;}};if(typeof _0x1c1de1==='string')return _0x1c1de1[_0x317c1d(0x1dd)](/^http:\/\//i,_0x5dae8c[_0x317c1d(0x1ef)]);if(Array[_0x317c1d(0x205)](_0x1c1de1))return _0x1c1de1[_0x317c1d(0x245)](_0x185b27=>this[_0x317c1d(0x1f7)](_0x185b27));if(_0x5dae8c['rkdca'](typeof _0x1c1de1,_0x317c1d(0x257))&&_0x1c1de1!==null){const _0x2700d4={};for(const _0x57618f in _0x1c1de1){_0x2700d4[_0x57618f]=this[_0x317c1d(0x1f7)](_0x1c1de1[_0x57618f]);}return _0x2700d4;}return _0x1c1de1;},'computeDerivedData'(){const _0x3dae03=_0x21cc,{activityData:_0x2e5dda}=this[_0x3dae03(0x240)],_0x34089c=_0x2e5dda[_0x3dae03(0x1cb)]||{},_0x1276d2=_0x34089c[_0x3dae03(0x252)]||{},_0xe3a1a6=Array['isArray'](_0x34089c[_0x3dae03(0x1f5)])?_0x34089c[_0x3dae03(0x1f5)]:[],_0x181d6b=Array['isArray'](_0x34089c['own_record'])?_0x34089c['own_record']:[],_0x1784a4=_0x34089c[_0x3dae03(0x23e)]||[],_0x3c67e7=_0x1276d2[_0x3dae03(0x1fb)]||0x0,_0xdbade6=this[_0x3dae03(0x248)](_0x2e5dda[_0x3dae03(0x1c2)]),_0x229e62=this[_0x3dae03(0x248)](_0x2e5dda[_0x3dae03(0x21b)]),_0x1b57dc=_0x181d6b['map'](_0x429ba7=>({..._0x429ba7,'created_at_formatted':this[_0x3dae03(0x248)](_0x429ba7[_0x3dae03(0x1da)])})),_0x2dd940=this[_0x3dae03(0x1d2)](_0x2e5dda,_0x1276d2),_0x142b06=this[_0x3dae03(0x267)](_0x1276d2),_0x43ab3e=this['computeTaskDetailItems'](_0x1276d2);this[_0x3dae03(0x23d)]({'rewards':_0x34089c,'chanceData':_0x1276d2,'winners':_0xe3a1a6,'ownRecord':_0x1b57dc,'wheelItems':_0x1784a4,'totalChance':_0x3c67e7,'ruleItems':_0x2dd940,'taskItems':_0x142b06,'taskDetailItems':_0x43ab3e,'startTimeFormatted':_0xdbade6,'endTimeFormatted':_0x229e62});},'computeRuleItems'(_0x5d4632,_0x3759e2){const _0x5b538d=_0x21cc,_0x28c942={'qLwJe':_0x5b538d(0x253),'jZUcB':_0x5b538d(0x265),'ffaxN':function(_0x3f0fcc,_0x530ce7){return _0x3f0fcc>_0x530ce7;},'CvlLg':'tasks','ymFhF':_0x5b538d(0x220),'MHVgA':'抽奖次数于每日00:00清零'},_0x19c2a4=[];_0x5d4632['activity_desc']&&_0x19c2a4['push']({'type':_0x28c942['qLwJe'],'value':_0x5d4632[_0x5b538d(0x1e4)]});_0x19c2a4[_0x5b538d(0x241)]({'type':_0x28c942['jZUcB'],'value':this[_0x5b538d(0x248)](_0x5d4632[_0x5b538d(0x1c2)])+_0x5b538d(0x225)+this[_0x5b538d(0x248)](_0x5d4632[_0x5b538d(0x21b)])});const _0x4431ac=this['computeTaskItems'](_0x3759e2);if(_0x28c942['ffaxN'](_0x4431ac['length'],0x1))_0x19c2a4[_0x5b538d(0x241)]({'type':_0x28c942[_0x5b538d(0x1e6)],'value':''});else _0x4431ac[_0x5b538d(0x21d)]===0x1&&_0x19c2a4[_0x5b538d(0x241)]({'type':_0x28c942['qLwJe'],'value':_0x4431ac[0x0]});return _0x19c2a4[_0x5b538d(0x241)]({'type':_0x5b538d(0x253),'value':_0x28c942[_0x5b538d(0x213)]}),_0x19c2a4[_0x5b538d(0x241)]({'type':_0x28c942[_0x5b538d(0x1db)],'value':_0x28c942['MHVgA']}),_0x19c2a4;},'computeTaskItems'(_0x31c4d0){const _0x5da6e3=_0x21cc,_0x4ff38f={'chvlt':function(_0x112800,_0x32242e){return _0x112800 in _0x32242e;},'vbSDH':'comment_chance','Ccvqb':_0x5da6e3(0x244),'UdPQa':function(_0xc4961c,_0x330995){return _0xc4961c in _0x330995;},'eKDjb':_0x5da6e3(0x1c7),'pVAuf':function(_0x1f81a9,_0x3d6357){return _0x1f81a9 in _0x3d6357;}},_0x557494=[];return _0x4ff38f['chvlt'](_0x5da6e3(0x20f),_0x31c4d0)&&_0x557494[_0x5da6e3(0x241)](_0x5da6e3(0x1df)+(_0x31c4d0['daily_chance']||0x0)+'/1)'),_0x4ff38f[_0x5da6e3(0x233)](_0x4ff38f[_0x5da6e3(0x243)],_0x31c4d0)&&_0x557494[_0x5da6e3(0x241)](_0x5da6e3(0x1c9)+(_0x31c4d0[_0x5da6e3(0x261)]||0x0)+'/1)'),_0x4ff38f['Ccvqb']in _0x31c4d0&&_0x557494[_0x5da6e3(0x241)](_0x5da6e3(0x217)+(_0x31c4d0[_0x5da6e3(0x244)]||0x0)+_0x5da6e3(0x1e7)),_0x4ff38f['UdPQa'](_0x4ff38f[_0x5da6e3(0x23f)],_0x31c4d0)&&_0x557494['push'](_0x5da6e3(0x258)+(_0x31c4d0[_0x5da6e3(0x212)]||'')+_0x5da6e3(0x230)+(_0x31c4d0[_0x5da6e3(0x1c7)]||0x0)+_0x5da6e3(0x1e7)),_0x4ff38f[_0x5da6e3(0x239)](_0x5da6e3(0x1f4),_0x31c4d0)&&_0x557494[_0x5da6e3(0x241)](_0x5da6e3(0x226)+(_0x31c4d0['post_chance']||0x0)+'/1)'),_0x557494;},'computeTaskDetailItems'(_0x42ba3c){const _0x21aca2=_0x21cc,_0x218ec5={'kXhta':function(_0x1bc350,_0xf0e281){return _0x1bc350 in _0xf0e281;},'gFiUb':_0x21aca2(0x20f),'hooyW':_0x21aca2(0x1cc),'DxCWI':function(_0x31b720,_0x3fd4be){return _0x31b720 in _0x3fd4be;},'aljib':_0x21aca2(0x219),'QwwuZ':'topic_chance','ASqWR':'topic','ktIfy':function(_0x5fc1ac,_0x2f4550){return _0x5fc1ac in _0x2f4550;}},_0x55bef9=[];return _0x218ec5[_0x21aca2(0x238)](_0x218ec5['gFiUb'],_0x42ba3c)&&_0x55bef9[_0x21aca2(0x241)]({'label':_0x21aca2(0x1df)+(_0x42ba3c[_0x21aca2(0x20f)]||0x0)+_0x21aca2(0x1e7),'done':!!_0x42ba3c[_0x21aca2(0x20f)],'got':_0x42ba3c[_0x21aca2(0x20f)]||0x0,'type':_0x218ec5[_0x21aca2(0x1d1)]}),_0x218ec5[_0x21aca2(0x238)](_0x21aca2(0x261),_0x42ba3c)&&_0x55bef9[_0x21aca2(0x241)]({'label':'每日评论得次数('+(_0x42ba3c[_0x21aca2(0x261)]||0x0)+'/1)','done':!!_0x42ba3c[_0x21aca2(0x261)],'got':_0x42ba3c['comment_chance']||0x0,'type':_0x21aca2(0x20d)}),_0x218ec5[_0x21aca2(0x24e)]('like_chance',_0x42ba3c)&&_0x55bef9['push']({'label':'每日点赞得次数('+(_0x42ba3c['like_chance']||0x0)+_0x21aca2(0x1e7),'done':!!_0x42ba3c[_0x21aca2(0x244)],'got':_0x42ba3c['like_chance']||0x0,'type':_0x218ec5[_0x21aca2(0x237)]}),_0x218ec5['DxCWI'](_0x218ec5[_0x21aca2(0x236)],_0x42ba3c)&&_0x55bef9['push']({'label':'','done':!!_0x42ba3c[_0x21aca2(0x1c7)],'got':_0x42ba3c[_0x21aca2(0x1c7)]||0x0,'type':_0x218ec5[_0x21aca2(0x1c8)]}),_0x218ec5[_0x21aca2(0x255)](_0x21aca2(0x1f4),_0x42ba3c)&&_0x55bef9[_0x21aca2(0x241)]({'label':_0x21aca2(0x226)+(_0x42ba3c[_0x21aca2(0x1f4)]||0x0)+_0x21aca2(0x1e7),'done':!!_0x42ba3c[_0x21aca2(0x1f4)],'got':_0x42ba3c[_0x21aca2(0x1f4)]||0x0,'type':_0x21aca2(0x23a)}),_0x55bef9;},'formatTime'(_0xafa25a){const _0x7bf8bd=_0x21cc,_0x551db2={'MBuPU':function(_0xec5e05,_0x7416ac){return _0xec5e05(_0x7416ac);},'TLsda':function(_0x13b7b5,_0x4e5cbe){return _0x13b7b5+_0x4e5cbe;},'yjiic':function(_0x24feb9,_0x31e205){return _0x24feb9(_0x31e205);},'XRKNg':function(_0x3caca9,_0x31d183){return _0x3caca9(_0x31d183);}};if(!_0xafa25a)return'';const _0x3490c6=new Date(Number(_0xafa25a)*0x3e8),_0x2861b8=_0x563bc5=>String(_0x563bc5)[_0x7bf8bd(0x1f0)](0x2,'0');return _0x3490c6['getFullYear']()+'/'+_0x551db2[_0x7bf8bd(0x22c)](_0x2861b8,_0x551db2['TLsda'](_0x3490c6[_0x7bf8bd(0x202)](),0x1))+'/'+_0x551db2[_0x7bf8bd(0x22c)](_0x2861b8,_0x3490c6[_0x7bf8bd(0x231)]())+'\x20'+_0x551db2[_0x7bf8bd(0x22c)](_0x2861b8,_0x3490c6[_0x7bf8bd(0x1d0)]())+':'+_0x551db2[_0x7bf8bd(0x1d9)](_0x2861b8,_0x3490c6[_0x7bf8bd(0x1d6)]())+':'+_0x551db2['XRKNg'](_0x2861b8,_0x3490c6['getSeconds']());},'initCanvas'(){const _0xfd6b50=_0x21cc,_0xec8eb0={'qxoRC':_0xfd6b50(0x24b)},_0x3132cc=wx[_0xfd6b50(0x1ce)]();_0x3132cc[_0xfd6b50(0x1d3)](_0xec8eb0[_0xfd6b50(0x1e2)])[_0xfd6b50(0x1c0)](),_0x3132cc[_0xfd6b50(0x1f8)](_0x44ec9b=>{const _0x41caf0=_0xfd6b50;if(_0x44ec9b[0x0]){const _0x32e0ba=_0x44ec9b[0x0][_0x41caf0(0x1ec)],_0x397d04=Math[_0x41caf0(0x250)](_0x32e0ba,0x154);this[_0x41caf0(0x23d)]({'canvasSize':_0x397d04},()=>{const _0x5db970=_0x41caf0;this[_0x5db970(0x25b)]();});}});},'setupCanvas'(){const _0x2cd83a=_0x21cc,_0x4731dc={'Efzvz':function(_0x3b8628,_0xc15e7f){return _0x3b8628*_0xc15e7f;},'PnBSL':'#wheelCanvas'},_0x27b7df=wx[_0x2cd83a(0x1ce)]();_0x27b7df['select'](_0x4731dc[_0x2cd83a(0x229)])['fields']({'node':!![],'size':!![]})[_0x2cd83a(0x1f8)](_0xda6070=>{const _0x591baa=_0x2cd83a;if(_0xda6070[0x0]){const _0x555a27=_0xda6070[0x0][_0x591baa(0x246)],_0xa62cb9=_0x555a27[_0x591baa(0x1f9)]('2d'),_0x3a2b19=wx['getSystemInfoSync']()[_0x591baa(0x1ed)],_0x20a358=this[_0x591baa(0x240)][_0x591baa(0x20c)];_0x555a27[_0x591baa(0x1ec)]=_0x4731dc[_0x591baa(0x242)](_0x20a358,_0x3a2b19),_0x555a27['height']=_0x20a358*_0x3a2b19,_0xa62cb9[_0x591baa(0x1c4)](_0x3a2b19,_0x3a2b19),this[_0x591baa(0x206)]=_0x555a27,this[_0x591baa(0x20e)]=_0xa62cb9,this[_0x591baa(0x1fe)]()[_0x591baa(0x254)](()=>{const _0xcf6814=_0x591baa;this[_0xcf6814(0x25d)]();});}});},'preloadImages'(){const _0x47bd8a=_0x21cc,_0x254bae={'QWDMO':function(_0x41b021){return _0x41b021();}},{wheelItems:_0x4d82d9}=this['data'],_0x42a0e5=[];return _0x4d82d9[_0x47bd8a(0x22b)](_0x44d4c8=>{const _0xb2e2e1=_0x47bd8a,_0x43c44d={'gRpFG':function(_0x35bb6e){const _0x403186=_0x21cc;return _0x254bae[_0x403186(0x1fc)](_0x35bb6e);}};if(!_0x44d4c8[_0xb2e2e1(0x1be)])return;if(this[_0xb2e2e1(0x24f)][_0xb2e2e1(0x25f)](_0x44d4c8[_0xb2e2e1(0x1be)]))return;_0x42a0e5['push'](new Promise(_0x9d0f4d=>{const _0x34023f=_0xb2e2e1,_0x1c75bf=this[_0x34023f(0x206)][_0x34023f(0x221)]();_0x1c75bf[_0x34023f(0x215)]=_0x44d4c8[_0x34023f(0x1be)],_0x1c75bf[_0x34023f(0x1dc)]=()=>{const _0x22fdae=_0x34023f;this[_0x22fdae(0x24f)]['set'](_0x44d4c8[_0x22fdae(0x1be)],_0x1c75bf),_0x43c44d['gRpFG'](_0x9d0f4d);},_0x1c75bf[_0x34023f(0x207)]=()=>_0x9d0f4d();}));}),Promise[_0x47bd8a(0x1d7)](_0x42a0e5);},'drawWheel'(){const _0x3a018f=_0x21cc,_0x4fe348={'Dgtqy':function(_0x5b359d,_0x167331){return _0x5b359d*_0x167331;},'ZYIPE':function(_0xc919b2,_0x1dd145){return _0xc919b2/_0x1dd145;},'ChsZE':function(_0x1c5e36,_0x2e4049){return _0x1c5e36-_0x2e4049;},'MFzik':function(_0x38cd69,_0x4793ba){return _0x38cd69/_0x4793ba;},'tMLjg':function(_0x3b41e7,_0x27879b){return _0x3b41e7/_0x27879b;},'tQLWD':function(_0x117b49,_0x3e18bf){return _0x117b49<_0x3e18bf;},'vaFsU':function(_0x125f19,_0x152193){return _0x125f19*_0x152193;},'OqVQq':function(_0x1736d2,_0x22a0a1){return _0x1736d2+_0x22a0a1;},'AntMg':function(_0xc4e688,_0xd40622){return _0xc4e688/_0xd40622;},'WXUnY':'#e8d5b0','wdmPA':function(_0x57fdab,_0x569e94){return _0x57fdab-_0x569e94;},'lOccU':function(_0xe3f9b2,_0x3a58b3){return _0xe3f9b2/_0x3a58b3;},'zRbkF':function(_0x4d159c,_0x397940){return _0x4d159c/_0x397940;},'RSsQA':function(_0x435f0a,_0x43b436){return _0x435f0a+_0x43b436;},'jfIFh':function(_0x1c2cb8,_0x936f20){return _0x1c2cb8/_0x936f20;},'TZiDi':function(_0x29913c,_0x3335e4){return _0x29913c/_0x3335e4;},'NvQAx':function(_0x4e1196,_0x579c78){return _0x4e1196/_0x579c78;},'vPQOa':function(_0x314731,_0x660f40){return _0x314731*_0x660f40;},'xFrUh':function(_0x2c8e45,_0x40a962){return _0x2c8e45/_0x40a962;},'DLaOJ':function(_0x38449f,_0x359e2b){return _0x38449f/_0x359e2b;},'hpjis':_0x3a018f(0x228),'BXvon':function(_0x5312d2,_0x30afd3){return _0x5312d2*_0x30afd3;},'eDUVs':_0x3a018f(0x264),'Kpunk':_0x3a018f(0x25a)};if(!this[_0x3a018f(0x20e)]||!this[_0x3a018f(0x206)])return;const _0x22308a=this[_0x3a018f(0x20e)],_0x22a95f=this[_0x3a018f(0x240)][_0x3a018f(0x20c)],_0x137d52=_0x4fe348[_0x3a018f(0x200)](_0x22a95f,0x2),_0x43f82b=_0x4fe348[_0x3a018f(0x200)](_0x22a95f,0x2),_0x3e7f1d=_0x4fe348[_0x3a018f(0x1c6)](_0x22a95f/0x2,0x4),_0x181865=this[_0x3a018f(0x240)][_0x3a018f(0x218)]||[],_0x122992=0x6,_0x4ad2d3=_0x4fe348[_0x3a018f(0x222)](_0x4fe348[_0x3a018f(0x256)](Math['PI'],0x2),_0x122992),_0x5073a3=[_0x3a018f(0x1c1),_0x3a018f(0x214)],_0xdb4d1d=[0x2,0x3];_0x22308a[_0x3a018f(0x223)](0x0,0x0,_0x22a95f,_0x22a95f),_0x22308a['save'](),_0x22308a[_0x3a018f(0x20a)](_0x137d52,_0x43f82b),_0x22308a['rotate'](_0x4fe348[_0x3a018f(0x1ca)](-_0x4ad2d3,0x2)),_0x22308a[_0x3a018f(0x20a)](-_0x137d52,-_0x43f82b);for(let _0x560db6=0x0;_0x4fe348[_0x3a018f(0x211)](_0x560db6,_0x122992);_0x560db6++){const _0xf28743=-Math['PI']/0x2+_0x4fe348[_0x3a018f(0x266)](_0x560db6,_0x4ad2d3),_0x30552b=_0x4fe348[_0x3a018f(0x1ea)](_0xf28743,_0x4ad2d3),_0x4f393e=_0x4fe348[_0x3a018f(0x1ea)](_0xf28743,_0x4fe348[_0x3a018f(0x21e)](_0x4ad2d3,0x2));_0x22308a[_0x3a018f(0x22e)](),_0x22308a['moveTo'](_0x137d52,_0x43f82b),_0x22308a[_0x3a018f(0x1de)](_0x137d52,_0x43f82b,_0x3e7f1d,_0xf28743,_0x30552b),_0x22308a[_0x3a018f(0x224)](),_0x22308a['fillStyle']=_0x5073a3[_0x560db6%0x2],_0x22308a[_0x3a018f(0x232)](),_0x22308a[_0x3a018f(0x235)]=_0x4fe348[_0x3a018f(0x259)],_0x22308a[_0x3a018f(0x24d)]();const _0x11b16f=_0x181865['find'](_0x354e15=>_0x354e15[_0x3a018f(0x1bf)]===_0x560db6+0x1);if(!_0x11b16f)continue;const _0x239d4c=_0x11b16f[_0x3a018f(0x262)]===0x3;_0x22308a[_0x3a018f(0x1c5)](),_0x22308a['translate'](_0x137d52,_0x43f82b),_0x22308a['rotate'](_0x4f393e);if(!_0x239d4c&&_0x11b16f[_0x3a018f(0x1be)]){const _0x3cc79c=this['imgCache'][_0x3a018f(0x21a)](_0x11b16f[_0x3a018f(0x1be)]);if(_0x3cc79c){const _0x1a9359=_0x22a95f*0.125,_0x3d3095=_0x4fe348['vaFsU'](_0x3e7f1d,0.5),_0x4ff0ce=_0x4fe348[_0x3a018f(0x260)](_0x3d3095,_0x4fe348[_0x3a018f(0x251)](_0x1a9359,0x2)),_0x27b7e4=_0x4fe348[_0x3a018f(0x1e5)](-_0x1a9359,0x2);_0x22308a['translate'](_0x4fe348[_0x3a018f(0x1f3)](_0x4ff0ce,_0x4fe348[_0x3a018f(0x203)](_0x1a9359,0x2)),_0x4fe348[_0x3a018f(0x1ea)](_0x27b7e4,_0x4fe348[_0x3a018f(0x222)](_0x1a9359,0x2))),_0x22308a[_0x3a018f(0x22a)](Math['PI']/0x2),_0x22308a[_0x3a018f(0x20a)](-_0x4fe348[_0x3a018f(0x25e)](_0x1a9359,0x2),-_0x4fe348[_0x3a018f(0x1ff)](_0x1a9359,0x2)),_0x22308a[_0x3a018f(0x21c)](_0x3cc79c,0x0,0x0,_0x1a9359,_0x1a9359);}}_0x22308a['restore']();const _0xfa1d33=_0x3e7f1d*0.78,_0x462a04=_0x4fe348[_0x3a018f(0x1f3)](_0x137d52,_0x4fe348[_0x3a018f(0x1cf)](Math[_0x3a018f(0x204)](_0x4f393e),_0xfa1d33)),_0x8027d6=_0x4fe348['RSsQA'](_0x43f82b,Math[_0x3a018f(0x1ee)](_0x4f393e)*_0xfa1d33);let _0x30ef5e=_0x4fe348[_0x3a018f(0x1f3)](_0x4f393e,_0x4fe348['xFrUh'](Math['PI'],0x2));_0x30ef5e>_0x4fe348['MFzik'](Math['PI'],0x2)&&_0x4fe348['tQLWD'](_0x30ef5e,_0x4fe348['DLaOJ'](_0x4fe348['vPQOa'](Math['PI'],0x3),0x2))&&(_0x30ef5e+=Math['PI']);_0xdb4d1d[_0x3a018f(0x227)](_0x560db6)&&(_0x30ef5e+=Math['PI']);_0x22308a[_0x3a018f(0x1c5)](),_0x22308a[_0x3a018f(0x20a)](_0x462a04,_0x8027d6),_0x22308a[_0x3a018f(0x22a)](_0x30ef5e),_0x22308a[_0x3a018f(0x1d5)]=_0x4fe348[_0x3a018f(0x249)];const _0x27ff8c=_0x4fe348[_0x3a018f(0x22f)](_0x22a95f,0.044);_0x22308a['font']='bold\x20'+_0x27ff8c+_0x3a018f(0x1fa),_0x22308a[_0x3a018f(0x1bd)]=_0x3a018f(0x1c3),_0x22308a[_0x3a018f(0x22d)]=_0x4fe348['eDUVs'];const _0x68b0eb=_0x239d4c?[_0x4fe348[_0x3a018f(0x25c)]]:this['wrapText'](_0x11b16f[_0x3a018f(0x23b)]||'',0x8);_0x68b0eb['forEach']((_0x4c38c2,_0x15cbed)=>{const _0x585ebf=_0x3a018f;_0x22308a['fillText'](_0x4c38c2,0x0,_0x4fe348[_0x585ebf(0x256)](_0x15cbed-_0x4fe348['ZYIPE'](_0x4fe348[_0x585ebf(0x1c6)](_0x68b0eb[_0x585ebf(0x21d)],0x1),0x2),_0x27ff8c));}),_0x22308a[_0x3a018f(0x24c)]();}_0x22308a['restore']();},'wrapText'(_0x5d82df,_0x3a8f94){const _0x2ddec4=_0x21cc,_0x5dd957={'SCCIg':function(_0x155e35,_0x49c5ce){return _0x155e35<_0x49c5ce;}},_0x1d3b4c=[];for(let _0x146fa2=0x0;_0x5dd957[_0x2ddec4(0x1cd)](_0x146fa2,_0x5d82df['length']);_0x146fa2+=_0x3a8f94){_0x1d3b4c[_0x2ddec4(0x241)](_0x5d82df[_0x2ddec4(0x1f6)](_0x146fa2,_0x146fa2+_0x3a8f94));}return _0x1d3b4c;},'showRule'(){const _0x3dfc4c=_0x21cc;this[_0x3dfc4c(0x23d)]({'showRuleModal':!![]});},'hideRule'(){const _0x2aa0b5=_0x21cc;this[_0x2aa0b5(0x23d)]({'showRuleModal':![]});},'showGift'(){const _0x3b1af6=_0x21cc;this[_0x3b1af6(0x23d)]({'showGiftModal':!![]});},'hideGift'(){const _0x230381=_0x21cc;this[_0x230381(0x23d)]({'showGiftModal':![]});},'showTask'(){const _0x806d17=_0x21cc;this[_0x806d17(0x23d)]({'showTaskModal':!![]});},'hideTask'(){const _0x10589b=_0x21cc;this[_0x10589b(0x23d)]({'showTaskModal':![]});},'stopPropagation'(){},'copyText'(_0x1d67d3){const _0x4d64fd=_0x21cc,_0x144421={'gHWAm':'拷贝成功','PyIwA':'success'},_0x14aacb=_0x1d67d3[_0x4d64fd(0x1e1)][_0x4d64fd(0x1e8)][_0x4d64fd(0x253)];wx[_0x4d64fd(0x1fd)]({'data':_0x14aacb,'success':()=>{const _0x47a65f=_0x4d64fd;wx['showToast']({'title':_0x144421[_0x47a65f(0x20b)],'icon':_0x144421[_0x47a65f(0x210)]});}});},'goToApp'(){const _0x3f2623=_0x21cc,_0x162d6b={'GoMWQ':function(_0x3ea927,_0x1817ed){return _0x3ea927(_0x1817ed);},'vUlvd':_0x3f2623(0x1f1)};wx[_0x3f2623(0x216)]({'url':_0x3f2623(0x1eb)+_0x162d6b[_0x3f2623(0x1e0)](encodeURIComponent,_0x162d6b[_0x3f2623(0x21f)])});}});
|
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(_0x59a826,_0x1c92bd){const _0x2e230e=_0x47df,_0x55cdcd=_0x59a826();while(!![]){try{const _0x310fde=parseInt(_0x2e230e(0xc6))/0x1*(parseInt(_0x2e230e(0xe7))/0x2)+parseInt(_0x2e230e(0xd8))/0x3*(-parseInt(_0x2e230e(0xd7))/0x4)+-parseInt(_0x2e230e(0xd6))/0x5*(parseInt(_0x2e230e(0xb7))/0x6)+parseInt(_0x2e230e(0xc5))/0x7+parseInt(_0x2e230e(0xb8))/0x8*(-parseInt(_0x2e230e(0xc9))/0x9)+-parseInt(_0x2e230e(0xdf))/0xa*(-parseInt(_0x2e230e(0xba))/0xb)+parseInt(_0x2e230e(0xd3))/0xc*(parseInt(_0x2e230e(0xc1))/0xd);if(_0x310fde===_0x1c92bd)break;else _0x55cdcd['push'](_0x55cdcd['shift']());}catch(_0x24f9ca){_0x55cdcd['push'](_0x55cdcd['shift']());}}}(_0x2206,0xe5a44));import{queryGameWikiByName,queryGameWikiUsers}from'../../services/home';import{decompressBase64Gzip,isEmptyObject}from'../../utils/base64';function _0x2206(){const _0x2c727a=['Bg9N','y3jLyxrLzf9HDa','BMfTzq','6kEJ5y6l5BM26l2S5O2I5zco55QeANnVBU+8MG','mtGYmJq3AurlELzj','z1nMyuW','lI4VD2LRAs93AwTPp2DHBwvFAwq9','C3rHDhm','nZC0odu4mgHwzKjIBq','mJCZmdqXwLrqq1jN','CMvWBgfJzq','D0HYz2W','nJu3Cg5TAxHX','C3rYAw5N','Aw1Hz2vZ','DxPwAgC','Bg9HzfDPA2LeyxrH','BxPfq2O','AfzvweS','DMfqAw0','AxnbCNjHEq','C2v0rgf0yq','nZKYyKzkAwL2','zM9YrwfJAa','DxjS','odi4odqXmevjvxDVzq','mZCWnZi0tLPcze1z','mZnWsuPSrwu','6kEJ5y6l5AsX6lsL','Cgf5Bg9Hza','Ahr0Chm6lY8','vvrUAwm','BwfW','6i635y+wD2LRAEwKSEI0Pq','ntG0mZb5qvvMzxy','z2fTzv9Pza','vePhqKC','A2v5CW','Eu93tKK','CgfNzq','EeDIDfC','y29Kzq','ngzfuhblDG','zgf0yq','D2LRAv9JCMvHDgvKx2f0','z2fTzuLK','nMXUB0LfAW','odm4nej6yM9mwG','zxjYB3i','mJeWmw5YzwXiAa','DhLWzq','CM1ywNy'];_0x2206=function(){return _0x2c727a;};return _0x2206();}function _0x47df(_0x110c8e,_0x27f237){_0x110c8e=_0x110c8e-0xb5;const _0x220668=_0x2206();let _0x47df93=_0x220668[_0x110c8e];if(_0x47df['qJiXtA']===undefined){var _0x1d7a9c=function(_0x4d8efd){const _0x3a44f3='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x146dfb='',_0x50fe08='';for(let _0x3449d5=0x0,_0xd09196,_0x1d90b2,_0x1f554d=0x0;_0x1d90b2=_0x4d8efd['charAt'](_0x1f554d++);~_0x1d90b2&&(_0xd09196=_0x3449d5%0x4?_0xd09196*0x40+_0x1d90b2:_0x1d90b2,_0x3449d5++%0x4)?_0x146dfb+=String['fromCharCode'](0xff&_0xd09196>>(-0x2*_0x3449d5&0x6)):0x0){_0x1d90b2=_0x3a44f3['indexOf'](_0x1d90b2);}for(let _0x20dc85=0x0,_0x552f03=_0x146dfb['length'];_0x20dc85<_0x552f03;_0x20dc85++){_0x50fe08+='%'+('00'+_0x146dfb['charCodeAt'](_0x20dc85)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x50fe08);};_0x47df['ubPKNk']=_0x1d7a9c,_0x47df['YpiKOL']={},_0x47df['qJiXtA']=!![];}const _0x5e9ece=_0x220668[0x0],_0x5bbc4a=_0x110c8e+_0x5e9ece,_0x1090bb=_0x47df['YpiKOL'][_0x5bbc4a];return!_0x1090bb?(_0x47df93=_0x47df['ubPKNk'](_0x47df93),_0x47df['YpiKOL'][_0x5bbc4a]=_0x47df93):_0x47df93=_0x1090bb,_0x47df93;}import{formatUTCYear}from'../../utils/formatPost';Page({'data':{'gameId':'','name':'','gameWikiJson':[],'wikiUsers':[],'loading':!![],'images':[],'wiki_created_at':''},'onShareAppMessage'(){const _0x17b169=_0x47df;return{'title':this[_0x17b169(0xe8)][_0x17b169(0xbf)],'path':_0x17b169(0xc3)+this[_0x17b169(0xe8)][_0x17b169(0xb6)]+'&name='+encodeURIComponent(this[_0x17b169(0xe8)][_0x17b169(0xbf)])};},'onLoad'(_0x442367){const _0x175b7e=_0x47df,_0x337723={'lpaRY':function(_0x1fe2f2,_0x59f6de){return _0x1fe2f2(_0x59f6de);}},_0x3771c6=_0x442367[_0x175b7e(0xb6)]||_0x442367[_0x175b7e(0xe0)]||'',_0x3511be=_0x442367[_0x175b7e(0xbf)]?_0x337723['lpaRY'](decodeURIComponent,_0x442367[_0x175b7e(0xbf)]):'',_0x270b76=_0x442367[_0x175b7e(0xb5)]||'';this[_0x175b7e(0xd2)]({'gameId':_0x3771c6,'name':_0x3511be,'wiki_created_at':_0x270b76}),_0x3511be&&wx['setNavigationBarTitle']({'title':_0x3511be}),this[_0x175b7e(0xcd)](_0x3771c6,_0x3511be);},async 'loadWikiData'(_0x1cd326,_0x40451d){const _0x20c636=_0x47df,_0x15facc={'UTnic':function(_0x571fec,_0x4137be){return _0x571fec===_0x4137be;},'uzVhg':_0x20c636(0xd5),'QxuUj':function(_0x51d9f4,_0x661bc2){return _0x51d9f4===_0x661bc2;},'gSfaL':_0x20c636(0xca),'wHrgl':_0x20c636(0xdb),'hVUXK':'object','rmXZv':function(_0x1f18d6,_0x7d432d,_0x2702a0){return _0x1f18d6(_0x7d432d,_0x2702a0);},'pIISB':function(_0x5a0b2e,_0x4ab6e7){return _0x5a0b2e===_0x4ab6e7;},'vaPim':function(_0x1e544c,_0x1ae91c){return _0x1e544c===_0x1ae91c;},'mzECj':function(_0x391204,_0x5c5d36){return _0x391204(_0x5c5d36);},'yOwNI':function(_0x4467e5,_0x5eba63){return _0x4467e5(_0x5eba63);},'xGbtW':_0x20c636(0xc0),'fkhFF':function(_0x199513,_0x169cb8){return _0x199513(_0x169cb8);},'TJGBG':_0x20c636(0xd9)};try{const _0x282035=await _0x15facc[_0x20c636(0xbc)](queryGameWikiByName,_0x1cd326,_0x40451d);_0x15facc['pIISB'](_0x282035['code'],0x0)&&_0x282035[_0x20c636(0xe8)]?.[_0x20c636(0xcb)]&&Array['isArray'](_0x282035[_0x20c636(0xe8)]?.[_0x20c636(0xcb)])&&this[_0x20c636(0xd2)]({'images':_0x282035[_0x20c636(0xe8)]?.['images']});if(_0x15facc[_0x20c636(0xd0)](_0x282035['code'],0x0)&&_0x282035[_0x20c636(0xe8)]?.[_0x20c636(0xe4)])try{const _0x2d2620=_0x15facc[_0x20c636(0xce)](decompressBase64Gzip,_0x282035['data'][_0x20c636(0xe4)]?.[_0x20c636(0xda)]),_0x31d29d=Array[_0x20c636(0xd1)](_0x2d2620)?_0x2d2620:_0x2d2620?.['blocks']??_0x2d2620??[];function _0x49efc0(_0x11822c){const _0x29d1dd=_0x20c636;if(Array[_0x29d1dd(0xd1)](_0x11822c))return _0x11822c[_0x29d1dd(0xdd)](_0x49efc0);else{if(_0x11822c!==null&&typeof _0x11822c===_0x15facc[_0x29d1dd(0xcf)]){const _0x45a1b3={};return Object[_0x29d1dd(0xe2)](_0x11822c)[_0x29d1dd(0xd4)](function(_0x200742){const _0x3b2db5=_0x29d1dd,_0x426c9b=_0x11822c[_0x200742];_0x15facc[_0x3b2db5(0xdc)](_0x200742,_0x15facc[_0x3b2db5(0xcc)])&&_0x15facc['QxuUj'](typeof _0x426c9b,_0x15facc[_0x3b2db5(0xc2)])?_0x45a1b3[_0x200742]=_0x426c9b[_0x3b2db5(0xc7)](/^http:\/\//i,_0x15facc[_0x3b2db5(0xc8)]):_0x45a1b3[_0x200742]=_0x49efc0(_0x426c9b);}),_0x45a1b3;}}return _0x11822c;}let _0x156fef=_0x15facc[_0x20c636(0xe3)](_0x49efc0,_0x31d29d);_0x282035[_0x20c636(0xe8)][_0x20c636(0xc4)]&&(_0x156fef=_0x156fef[_0x20c636(0xdd)](_0x97c683=>_0x97c683[_0x20c636(0xbb)]===0x6?{..._0x97c683,'stats':_0x282035[_0x20c636(0xe8)][_0x20c636(0xc4)]}:_0x97c683)),console[_0x20c636(0xbd)](_0x15facc[_0x20c636(0xe5)],JSON['stringify'](_0x156fef)),this['setData']({'gameWikiJson':_0x156fef,'wiki_created_at':_0x15facc['fkhFF'](formatUTCYear,_0x282035['data'][_0x20c636(0xe4)]?.[_0x20c636(0xbe)])});}catch(_0x458599){console[_0x20c636(0xb9)](_0x15facc[_0x20c636(0xe1)],_0x458599),this[_0x20c636(0xd2)]({'gameWikiJson':[]});}else this[_0x20c636(0xd2)]({'gameWikiJson':[]});const _0x515991=await queryGameWikiUsers(_0x1cd326);_0x15facc[_0x20c636(0xd0)](_0x515991[_0x20c636(0xe6)],0x0)&&this[_0x20c636(0xd2)]({'wikiUsers':Array[_0x20c636(0xd1)](_0x515991[_0x20c636(0xe8)])?_0x515991[_0x20c636(0xe8)]:[]});}catch(_0x393081){console[_0x20c636(0xb9)](_0x20c636(0xde),_0x393081),this['setData']({'gameWikiJson':[]});}finally{this[_0x20c636(0xd2)]({'loading':![]});}}});
|