southnote-mini-sdk 1.0.0
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 +22 -0
- package/app.json +53 -0
- package/app.wxss +15 -0
- package/assets/file/badwords.js +63008 -0
- package/assets/file/rules.js +38 -0
- package/assets/images/emoji/smile001.png +0 -0
- package/assets/images/emoji/smile002.png +0 -0
- package/assets/images/emoji/smile003.png +0 -0
- package/assets/images/emoji/smile004.png +0 -0
- package/assets/images/emoji/smile005.png +0 -0
- package/assets/images/emoji/smile006.png +0 -0
- package/assets/images/emoji/smile007.png +0 -0
- package/assets/images/emoji/smile008.png +0 -0
- package/assets/images/emoji/smile009.png +0 -0
- package/assets/images/emoji/smile010.png +0 -0
- package/assets/images/emoji/smile011.png +0 -0
- package/assets/images/emoji/smile012.png +0 -0
- package/assets/images/emoji/smile013.png +0 -0
- package/assets/images/emoji/smile014.png +0 -0
- package/assets/images/emoji/smile015.png +0 -0
- package/assets/images/emoji/smile016.png +0 -0
- package/assets/images/emoji/smile017.png +0 -0
- package/assets/images/emoji/smile018.png +0 -0
- package/assets/images/emoji/smile019.png +0 -0
- package/assets/images/emoji/smile020.png +0 -0
- package/assets/images/emoji/smile021.png +0 -0
- package/assets/images/emoji/smile022.png +0 -0
- package/assets/images/emoji/smile023.png +0 -0
- package/assets/images/emoji/smile024.png +0 -0
- package/assets/images/emoji/smile025.png +0 -0
- package/assets/images/emoji/smile026.png +0 -0
- package/assets/images/emoji/smile027.png +0 -0
- package/assets/images/emoji/smile028.png +0 -0
- package/assets/images/emoji/smile029.png +0 -0
- package/assets/images/emoji/smile030.png +0 -0
- package/assets/images/emoji/smile031.png +0 -0
- package/assets/images/emoji/smile032.png +0 -0
- package/assets/images/emoji/smile033.png +0 -0
- package/assets/images/emoji/smile034.png +0 -0
- package/assets/images/emoji/smile035.png +0 -0
- package/assets/images/emoji/smile036.png +0 -0
- package/assets/images/emoji/smile037.png +0 -0
- package/assets/images/emoji/smile038.png +0 -0
- package/assets/images/emoji/smile039.png +0 -0
- package/assets/images/emoji/smile040.png +0 -0
- package/assets/images/emoji/smile041.png +0 -0
- package/assets/images/emoji/smile042.png +0 -0
- package/assets/images/emoji/smile043.png +0 -0
- package/assets/images/emoji/smile044.png +0 -0
- package/assets/images/emoji/smile045.png +0 -0
- package/assets/images/emoji/smile046.png +0 -0
- package/assets/images/emoji/smile047.png +0 -0
- package/assets/images/emoji/smile048.png +0 -0
- package/assets/images/emoji/smile049.png +0 -0
- package/assets/images/emoji/smile050.png +0 -0
- package/assets/images/emoji/smile051.png +0 -0
- package/assets/images/emoji/smile052.png +0 -0
- package/assets/images/icons/age1.png +0 -0
- package/assets/images/icons/age2.png +0 -0
- package/assets/images/icons/age3.png +0 -0
- package/assets/images/icons/attachment.png +0 -0
- package/assets/images/icons/clear.png +0 -0
- package/assets/images/icons/edit_input.png +0 -0
- package/assets/images/icons/header_placeholder.png +0 -0
- package/assets/images/icons/home_collect.png +0 -0
- package/assets/images/icons/home_collected.png +0 -0
- package/assets/images/icons/home_comment.png +0 -0
- package/assets/images/icons/home_like.png +0 -0
- package/assets/images/icons/home_liked.png +0 -0
- package/assets/images/icons/home_message.png +0 -0
- package/assets/images/icons/home_share.png +0 -0
- package/assets/images/icons/icon_more.png +0 -0
- package/assets/images/icons/input_game.png +0 -0
- package/assets/images/icons/logo.png +0 -0
- package/assets/images/icons/lv1.png +0 -0
- package/assets/images/icons/lv2.png +0 -0
- package/assets/images/icons/lv3.png +0 -0
- package/assets/images/icons/lv4.png +0 -0
- package/assets/images/icons/search.png +0 -0
- package/assets/images/icons/sex1.png +0 -0
- package/assets/images/icons/sex2.png +0 -0
- package/assets/images/icons/sign_empty.png +0 -0
- package/assets/images/icons/sign_login.png +0 -0
- package/assets/wheel/wheel_bg.png +0 -0
- package/assets/wheel/wheel_bg2.png +0 -0
- package/assets/wheel/wheel_fore.png +0 -0
- package/assets/wheel/wheel_to.png +0 -0
- package/components/bottomSheet/bottomSheet.js +473 -0
- package/components/bottomSheet/bottomSheet.json +3 -0
- package/components/bottomSheet/bottomSheet.wxml +73 -0
- package/components/bottomSheet/bottomSheet.wxss +238 -0
- package/components/experience-item/experience-item.js +105 -0
- package/components/experience-item/experience-item.json +4 -0
- package/components/experience-item/experience-item.wxml +39 -0
- package/components/experience-item/experience-item.wxss +110 -0
- package/components/grid-item/grid-item.js +8 -0
- package/components/grid-item/grid-item.json +4 -0
- package/components/grid-item/grid-item.wxml +62 -0
- package/components/grid-item/grid-item.wxss +191 -0
- package/components/post-item/post-item.js +1085 -0
- package/components/post-item/post-item.json +4 -0
- package/components/post-item/post-item.wxml +427 -0
- package/components/post-item/post-item.wxss +525 -0
- package/components/wiki-renderer/wiki-renderer.js +636 -0
- package/components/wiki-renderer/wiki-renderer.json +12 -0
- package/components/wiki-renderer/wiki-renderer.wxml +150 -0
- package/components/wiki-renderer/wiki-renderer.wxss +412 -0
- package/components/wiki-tabs/wiki-tabs.js +52 -0
- package/components/wiki-tabs/wiki-tabs.json +3 -0
- package/components/wiki-tabs/wiki-tabs.wxml +28 -0
- package/components/wiki-tabs/wiki-tabs.wxss +43 -0
- package/index.js +49 -0
- package/package.json +35 -0
- package/pages/addGame/addGame.js +454 -0
- package/pages/addGame/addGame.json +3 -0
- package/pages/addGame/addGame.wxml +71 -0
- package/pages/addGame/addGame.wxss +110 -0
- package/pages/addSubject/addSubject.js +199 -0
- package/pages/addSubject/addSubject.json +4 -0
- package/pages/addSubject/addSubject.wxml +78 -0
- package/pages/addSubject/addSubject.wxss +85 -0
- package/pages/commonLogin/commonLogin.js +269 -0
- package/pages/commonLogin/commonLogin.json +4 -0
- package/pages/commonLogin/commonLogin.wxml +57 -0
- package/pages/commonLogin/commonLogin.wxss +177 -0
- package/pages/copyOfficial/copyOfficial.js +25 -0
- package/pages/copyOfficial/copyOfficial.json +3 -0
- package/pages/copyOfficial/copyOfficial.wxml +22 -0
- package/pages/copyOfficial/copyOfficial.wxss +49 -0
- package/pages/demo/demo.js +23 -0
- package/pages/demo/demo.json +3 -0
- package/pages/demo/demo.wxml +8 -0
- package/pages/demo/demo.wxss +24 -0
- package/pages/game/game.js +1254 -0
- package/pages/game/game.json +8 -0
- package/pages/game/game.wxml +371 -0
- package/pages/game/game.wxss +672 -0
- package/pages/home/home.js +665 -0
- package/pages/home/home.json +10 -0
- package/pages/home/home.wxml +115 -0
- package/pages/home/home.wxss +231 -0
- package/pages/lottery-winners/lottery-winners.js +60 -0
- package/pages/lottery-winners/lottery-winners.json +4 -0
- package/pages/lottery-winners/lottery-winners.wxml +53 -0
- package/pages/lottery-winners/lottery-winners.wxss +127 -0
- package/pages/message/messageCommentsAndAt/messageCommentsAndAt.js +178 -0
- package/pages/message/messageCommentsAndAt/messageCommentsAndAt.json +5 -0
- package/pages/message/messageCommentsAndAt/messageCommentsAndAt.wxml +93 -0
- package/pages/message/messageCommentsAndAt/messageCommentsAndAt.wxss +177 -0
- package/pages/message/messageEntire/messageEntire.js +112 -0
- package/pages/message/messageEntire/messageEntire.json +4 -0
- package/pages/message/messageEntire/messageEntire.wxml +44 -0
- package/pages/message/messageEntire/messageEntire.wxss +88 -0
- package/pages/message/messageLikeAndCollect/messageLikeAndCollect.js +147 -0
- package/pages/message/messageLikeAndCollect/messageLikeAndCollect.json +5 -0
- package/pages/message/messageLikeAndCollect/messageLikeAndCollect.wxml +84 -0
- package/pages/message/messageLikeAndCollect/messageLikeAndCollect.wxss +166 -0
- package/pages/message/messageNewFans/messageNewFans.js +139 -0
- package/pages/message/messageNewFans/messageNewFans.json +5 -0
- package/pages/message/messageNewFans/messageNewFans.wxml +35 -0
- package/pages/message/messageNewFans/messageNewFans.wxss +85 -0
- package/pages/officialWebview/officialWebview.js +13 -0
- package/pages/officialWebview/officialWebview.json +3 -0
- package/pages/officialWebview/officialWebview.wxml +2 -0
- package/pages/officialWebview/officialWebview.wxss +1 -0
- package/pages/post/post.js +1856 -0
- package/pages/post/post.json +6 -0
- package/pages/post/post.wxml +694 -0
- package/pages/post/post.wxss +1003 -0
- package/pages/post-editor/post-editor.js +465 -0
- package/pages/post-editor/post-editor.json +4 -0
- package/pages/post-editor/post-editor.wxml +63 -0
- package/pages/post-editor/post-editor.wxss +195 -0
- package/pages/postDialog/postDialog.js +560 -0
- package/pages/postDialog/postDialog.json +6 -0
- package/pages/postDialog/postDialog.wxml +377 -0
- package/pages/postDialog/postDialog.wxss +979 -0
- package/pages/report-category/report-category.js +29 -0
- package/pages/report-category/report-category.json +4 -0
- package/pages/report-category/report-category.wxml +14 -0
- package/pages/report-category/report-category.wxss +43 -0
- package/pages/report-form/report-form.js +65 -0
- package/pages/report-form/report-form.json +3 -0
- package/pages/report-form/report-form.wxml +11 -0
- package/pages/report-form/report-form.wxss +44 -0
- package/pages/sevenDaySignDetail/sevenDaySignDetail.js +273 -0
- package/pages/sevenDaySignDetail/sevenDaySignDetail.json +3 -0
- package/pages/sevenDaySignDetail/sevenDaySignDetail.wxml +82 -0
- package/pages/sevenDaySignDetail/sevenDaySignDetail.wxss +173 -0
- package/pages/topic/topic.js +266 -0
- package/pages/topic/topic.json +6 -0
- package/pages/topic/topic.wxml +77 -0
- package/pages/topic/topic.wxss +162 -0
- package/pages/user/user.js +939 -0
- package/pages/user/user.json +5 -0
- package/pages/user/user.wxml +179 -0
- package/pages/user/user.wxss +340 -0
- package/pages/userDatum/userDatum.js +24 -0
- package/pages/userDatum/userDatum.json +4 -0
- package/pages/userDatum/userDatum.wxml +36 -0
- package/pages/userDatum/userDatum.wxss +41 -0
- package/pages/userGameLib/userGameLib.js +105 -0
- package/pages/userGameLib/userGameLib.json +4 -0
- package/pages/userGameLib/userGameLib.wxml +42 -0
- package/pages/userGameLib/userGameLib.wxss +119 -0
- package/pages/webview/webview.js +25 -0
- package/pages/webview/webview.json +3 -0
- package/pages/webview/webview.wxml +22 -0
- package/pages/webview/webview.wxss +50 -0
- package/pages/wheelActivivty/wheelActivivty.js +492 -0
- package/pages/wheelActivivty/wheelActivivty.json +8 -0
- package/pages/wheelActivivty/wheelActivivty.wxml +131 -0
- package/pages/wheelActivivty/wheelActivivty.wxss +459 -0
- package/pages/wiki/wiki.js +138 -0
- package/pages/wiki/wiki.json +6 -0
- package/pages/wiki/wiki.wxml +20 -0
- package/pages/wiki/wiki.wxss +44 -0
- package/request/JKRequest.js +177 -0
- package/services/home.js +603 -0
- package/towxml/config.js +291 -0
- package/towxml/decode.js +35 -0
- package/towxml/decode.json +11 -0
- package/towxml/decode.wxml +137 -0
- package/towxml/decode.wxss +0 -0
- package/towxml/img/img.js +98 -0
- package/towxml/img/img.json +3 -0
- package/towxml/img/img.wxml +1 -0
- package/towxml/img/img.wxss +0 -0
- package/towxml/index.js +19 -0
- package/towxml/latex/latex.js +53 -0
- package/towxml/latex/latex.json +5 -0
- package/towxml/latex/latex.wxml +1 -0
- package/towxml/latex/latex.wxss +0 -0
- package/towxml/parse/highlight/highlight.js +1 -0
- package/towxml/parse/highlight/index.js +8 -0
- package/towxml/parse/highlight/languages/bash.js +111 -0
- package/towxml/parse/highlight/languages/c-like.js +236 -0
- package/towxml/parse/highlight/languages/c.js +22 -0
- package/towxml/parse/highlight/languages/css.js +132 -0
- package/towxml/parse/highlight/languages/dart.js +134 -0
- package/towxml/parse/highlight/languages/go.js +63 -0
- package/towxml/parse/highlight/languages/htmlbars.js +80 -0
- package/towxml/parse/highlight/languages/java.js +125 -0
- package/towxml/parse/highlight/languages/javascript.js +265 -0
- package/towxml/parse/highlight/languages/json.js +52 -0
- package/towxml/parse/highlight/languages/less.js +148 -0
- package/towxml/parse/highlight/languages/nginx.js +101 -0
- package/towxml/parse/highlight/languages/php.js +161 -0
- package/towxml/parse/highlight/languages/python-repl.js +29 -0
- package/towxml/parse/highlight/languages/python.js +131 -0
- package/towxml/parse/highlight/languages/scss.js +122 -0
- package/towxml/parse/highlight/languages/shell.js +22 -0
- package/towxml/parse/highlight/languages/typescript.js +215 -0
- package/towxml/parse/highlight/languages/xml.js +139 -0
- package/towxml/parse/highlight/style/github.wxss +99 -0
- package/towxml/parse/highlight/style/monokai.wxss +70 -0
- package/towxml/parse/index.js +118 -0
- package/towxml/parse/markdown/index.js +67 -0
- package/towxml/parse/markdown/markdown.js +4 -0
- package/towxml/parse/markdown/plugins/echarts.js +11 -0
- package/towxml/parse/markdown/plugins/emoji.js +2 -0
- package/towxml/parse/markdown/plugins/ins.js +1 -0
- package/towxml/parse/markdown/plugins/latex.js +158 -0
- package/towxml/parse/markdown/plugins/mark.js +1 -0
- package/towxml/parse/markdown/plugins/sub.js +1 -0
- package/towxml/parse/markdown/plugins/sup.js +1 -0
- package/towxml/parse/markdown/plugins/todo.js +147 -0
- package/towxml/parse/markdown/plugins/yuml.js +20 -0
- package/towxml/parse/parse2/Parser.js +492 -0
- package/towxml/parse/parse2/Tokenizer.js +903 -0
- package/towxml/parse/parse2/domelementtype/index.js +55 -0
- package/towxml/parse/parse2/domhandler/index.js +145 -0
- package/towxml/parse/parse2/domhandler/node.js +474 -0
- package/towxml/parse/parse2/entities/decode.js +179 -0
- package/towxml/parse/parse2/entities/decode_codepoint.js +60 -0
- package/towxml/parse/parse2/entities/encode.js +77 -0
- package/towxml/parse/parse2/entities/escape.js +112 -0
- package/towxml/parse/parse2/entities/generated/decode-data-html.js +9 -0
- package/towxml/parse/parse2/entities/generated/decode-data-xml.js +9 -0
- package/towxml/parse/parse2/entities/generated/encode-html.js +12 -0
- package/towxml/parse/parse2/entities/index.js +137 -0
- package/towxml/parse/parse2/index.js +8 -0
- package/towxml/style/main.wxss +419 -0
- package/towxml/style/theme/dark.wxss +73 -0
- package/towxml/style/theme/light.wxss +63 -0
- package/towxml/table/table.js +11 -0
- package/towxml/table/table.json +6 -0
- package/towxml/table/table.wxml +24 -0
- package/towxml/table/table.wxss +0 -0
- package/towxml/todogroup/todogroup.js +20 -0
- package/towxml/todogroup/todogroup.json +6 -0
- package/towxml/todogroup/todogroup.wxml +12 -0
- package/towxml/todogroup/todogroup.wxss +3 -0
- package/towxml/towxml.js +22 -0
- package/towxml/towxml.json +6 -0
- package/towxml/towxml.wxml +5 -0
- package/towxml/towxml.wxss +8 -0
- package/towxml/yuml/yuml.js +51 -0
- package/towxml/yuml/yuml.json +5 -0
- package/towxml/yuml/yuml.wxml +5 -0
- package/towxml/yuml/yuml.wxss +0 -0
- package/utils/auth.js +17 -0
- package/utils/base64.js +67 -0
- package/utils/compressImage.js +41 -0
- package/utils/exp.js +49 -0
- package/utils/formatPost.js +18 -0
- package/utils/parseContent.js +191 -0
- package/utils/query-select.js +9 -0
- package/utils/sensitive.js +82 -0
|
@@ -0,0 +1,459 @@
|
|
|
1
|
+
/* pages/wheel-activity/index.wxss */
|
|
2
|
+
.wheel-activity {
|
|
3
|
+
min-height: 100vh;
|
|
4
|
+
width: 100%;
|
|
5
|
+
background-size: cover;
|
|
6
|
+
background-position: top center;
|
|
7
|
+
background-repeat: no-repeat;
|
|
8
|
+
display: flex;
|
|
9
|
+
flex-direction: column;
|
|
10
|
+
align-items: center;
|
|
11
|
+
padding-bottom: 40rpx;
|
|
12
|
+
position: relative;
|
|
13
|
+
font-family: 'PingFang SC', 'Helvetica Neue', sans-serif;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.bg-image {
|
|
17
|
+
position: absolute;
|
|
18
|
+
top: 0;
|
|
19
|
+
left: 0;
|
|
20
|
+
width: 100%;
|
|
21
|
+
height: 100%;
|
|
22
|
+
z-index: -1;
|
|
23
|
+
/* 将图片置于底层 */
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/* 右上角按钮 */
|
|
27
|
+
.top-right-btns {
|
|
28
|
+
position: fixed;
|
|
29
|
+
top: 60rpx;
|
|
30
|
+
right: 0;
|
|
31
|
+
z-index: 100;
|
|
32
|
+
display: flex;
|
|
33
|
+
flex-direction: column;
|
|
34
|
+
gap: 20rpx;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.side-btn {
|
|
38
|
+
background: #caddf3;
|
|
39
|
+
color: #000000;
|
|
40
|
+
border: none;
|
|
41
|
+
padding: 16rpx 28rpx 16rpx 24rpx;
|
|
42
|
+
border-radius: 40rpx 0 0 40rpx;
|
|
43
|
+
font-size: 26rpx;
|
|
44
|
+
white-space: nowrap;
|
|
45
|
+
box-shadow: -4rpx 4rpx 16rpx rgba(0, 0, 0, 0.18);
|
|
46
|
+
line-height: 1;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.side-btn::after {
|
|
50
|
+
border: none;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/* Title Image */
|
|
54
|
+
.title-image-wrap {
|
|
55
|
+
margin-top: 200rpx;
|
|
56
|
+
margin-left: 20rpx;
|
|
57
|
+
margin-right: 20rpx;
|
|
58
|
+
width: calc(100% - 40rpx);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.title-image {
|
|
62
|
+
width: 100%;
|
|
63
|
+
display: block;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/* 活动时间 */
|
|
67
|
+
.activity-time {
|
|
68
|
+
margin-top: 40rpx;
|
|
69
|
+
font-size: 24rpx;
|
|
70
|
+
color: #5962c7;
|
|
71
|
+
padding: 8rpx 32rpx;
|
|
72
|
+
border-radius: 40rpx;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/* 抽奖次数栏 */
|
|
76
|
+
/* 抽奖次数栏 */
|
|
77
|
+
.chance-bar {
|
|
78
|
+
margin-top: 10rpx;
|
|
79
|
+
width: 85%;
|
|
80
|
+
min-height: 84rpx;
|
|
81
|
+
background-size: 100% 100%;
|
|
82
|
+
background-repeat: no-repeat;
|
|
83
|
+
display: flex;
|
|
84
|
+
align-items: center;
|
|
85
|
+
justify-content: center;
|
|
86
|
+
padding: 0 32rpx;
|
|
87
|
+
gap: 12rpx;
|
|
88
|
+
border-radius: 16rpx;
|
|
89
|
+
position: relative;
|
|
90
|
+
overflow: hidden;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.chance-bar-bg {
|
|
94
|
+
position: absolute;
|
|
95
|
+
top: 0;
|
|
96
|
+
left: 0;
|
|
97
|
+
width: 100%;
|
|
98
|
+
height: 100%;
|
|
99
|
+
z-index: 0;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/* 新增:让所有文本元素显示在背景图上方 */
|
|
103
|
+
.chance-label,
|
|
104
|
+
.chance-num,
|
|
105
|
+
.chance-question {
|
|
106
|
+
position: relative;
|
|
107
|
+
z-index: 1;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.chance-label {
|
|
111
|
+
font-size: 28rpx;
|
|
112
|
+
color: white;
|
|
113
|
+
font-weight: 600;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.chance-num {
|
|
117
|
+
font-size: 32rpx;
|
|
118
|
+
color: #e86b00;
|
|
119
|
+
font-weight: bold;
|
|
120
|
+
margin-left: 8rpx;
|
|
121
|
+
position: relative;
|
|
122
|
+
z-index: 1;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.chance-question {
|
|
126
|
+
display: inline-flex;
|
|
127
|
+
align-items: center;
|
|
128
|
+
justify-content: center;
|
|
129
|
+
width: 40rpx;
|
|
130
|
+
height: 40rpx;
|
|
131
|
+
border-radius: 50%;
|
|
132
|
+
background: white;
|
|
133
|
+
color: #5962c7;
|
|
134
|
+
font-size: 32rpx;
|
|
135
|
+
font-weight: bold;
|
|
136
|
+
margin-left: 8rpx;
|
|
137
|
+
position: relative;
|
|
138
|
+
z-index: 1;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
/* 大转盘 - 响应式适配 */
|
|
142
|
+
.wheel-container {
|
|
143
|
+
position: relative;
|
|
144
|
+
margin-top: 96rpx;
|
|
145
|
+
width: 90vw;
|
|
146
|
+
max-width: 680rpx;
|
|
147
|
+
aspect-ratio: 1;
|
|
148
|
+
display: flex;
|
|
149
|
+
align-items: center;
|
|
150
|
+
justify-content: center;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.wheel-ring {
|
|
154
|
+
position: absolute;
|
|
155
|
+
width: 99%;
|
|
156
|
+
height: 99%;
|
|
157
|
+
background-size: contain;
|
|
158
|
+
background-repeat: no-repeat;
|
|
159
|
+
background-position: center;
|
|
160
|
+
display: flex;
|
|
161
|
+
align-items: center;
|
|
162
|
+
justify-content: center;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.wheel-ring-bg {
|
|
166
|
+
position: absolute;
|
|
167
|
+
top: 0;
|
|
168
|
+
left: 0;
|
|
169
|
+
width: 100%;
|
|
170
|
+
height: 100%;
|
|
171
|
+
z-index: 0;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.wheel-content {
|
|
175
|
+
width: 100%;
|
|
176
|
+
height: 100%;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.wheel-canvas {
|
|
180
|
+
border-radius: 50%;
|
|
181
|
+
position: absolute;
|
|
182
|
+
top: 50%;
|
|
183
|
+
left: 50%;
|
|
184
|
+
transform: translate(-50%, -50%);
|
|
185
|
+
z-index: 1;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.wheel-center {
|
|
189
|
+
position: absolute;
|
|
190
|
+
left: 50%;
|
|
191
|
+
top: 50%;
|
|
192
|
+
transform: translate(-50%, -50%);
|
|
193
|
+
width: 19.4%;
|
|
194
|
+
height: 19.4%;
|
|
195
|
+
display: flex;
|
|
196
|
+
flex-direction: column;
|
|
197
|
+
align-items: center;
|
|
198
|
+
justify-content: center;
|
|
199
|
+
z-index: 10;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
.wheel-pointer {
|
|
203
|
+
width: 100%;
|
|
204
|
+
position: absolute;
|
|
205
|
+
top: -33%;
|
|
206
|
+
left: 0;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
.wheel-start-text {
|
|
210
|
+
position: relative;
|
|
211
|
+
z-index: 2;
|
|
212
|
+
display: flex;
|
|
213
|
+
flex-direction: column;
|
|
214
|
+
align-items: center;
|
|
215
|
+
line-height: 1.3;
|
|
216
|
+
pointer-events: none;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.wheel-start-text text {
|
|
220
|
+
font-size: 28rpx;
|
|
221
|
+
font-weight: bold;
|
|
222
|
+
color: #fff;
|
|
223
|
+
text-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.9);
|
|
224
|
+
letter-spacing: 4rpx;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
/* 中奖名单 */
|
|
228
|
+
.winners-section {
|
|
229
|
+
margin-top: 104rpx;
|
|
230
|
+
width: 95%;
|
|
231
|
+
border-radius: 24rpx;
|
|
232
|
+
overflow: hidden;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
.winners-title {
|
|
236
|
+
background: #6b9df9;
|
|
237
|
+
color: #fff;
|
|
238
|
+
text-align: center;
|
|
239
|
+
font-size: 30rpx;
|
|
240
|
+
font-weight: bold;
|
|
241
|
+
padding: 30rpx 0;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
.winners-list {
|
|
245
|
+
background: #c2ddff;
|
|
246
|
+
padding: 20rpx;
|
|
247
|
+
max-height: 360rpx;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
.winner-cell {
|
|
251
|
+
padding: 10rpx 0;
|
|
252
|
+
font-size: 28rpx;
|
|
253
|
+
text-align: center;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
.winner-text {
|
|
257
|
+
color: #94a9d0;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
.winner-name,
|
|
261
|
+
.winner-reward {
|
|
262
|
+
color: #f58845;
|
|
263
|
+
font-weight: bold;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
/* 弹窗 */
|
|
267
|
+
.modal-overlay {
|
|
268
|
+
position: fixed;
|
|
269
|
+
top: 0;
|
|
270
|
+
left: 0;
|
|
271
|
+
right: 0;
|
|
272
|
+
bottom: 0;
|
|
273
|
+
background: rgba(0, 0, 0, 0.55);
|
|
274
|
+
z-index: 2000;
|
|
275
|
+
display: flex;
|
|
276
|
+
align-items: center;
|
|
277
|
+
justify-content: center;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
.modal-box {
|
|
281
|
+
background: white;
|
|
282
|
+
border-radius: 32rpx;
|
|
283
|
+
width: 88vw;
|
|
284
|
+
max-width: 720rpx;
|
|
285
|
+
max-height: 80vh;
|
|
286
|
+
display: flex;
|
|
287
|
+
flex-direction: column;
|
|
288
|
+
overflow: hidden;
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
.modal-box-gradient {
|
|
292
|
+
background: linear-gradient(to bottom, #89b7fd, #ffffff);
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
.modal-title {
|
|
296
|
+
text-align: center;
|
|
297
|
+
font-size: 36rpx;
|
|
298
|
+
font-weight: bold;
|
|
299
|
+
color: #333;
|
|
300
|
+
padding: 32rpx 0 0;
|
|
301
|
+
flex-shrink: 0;
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
.modal-content {
|
|
305
|
+
flex: 1;
|
|
306
|
+
/* padding: 32rpx; */
|
|
307
|
+
margin: 0 15px;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
.modal-close-btn {
|
|
311
|
+
margin: 20rpx;
|
|
312
|
+
background: #002fa7;
|
|
313
|
+
color: #fff;
|
|
314
|
+
border: none;
|
|
315
|
+
border-radius: 40rpx;
|
|
316
|
+
height: 80rpx;
|
|
317
|
+
font-size: 30rpx;
|
|
318
|
+
line-height: 80rpx;
|
|
319
|
+
text-align: center;
|
|
320
|
+
flex-shrink: 0;
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
/* 规则弹窗 */
|
|
324
|
+
.rule-content {
|
|
325
|
+
overflow-y: auto;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
.rule-item {
|
|
329
|
+
display: flex;
|
|
330
|
+
gap: 8rpx;
|
|
331
|
+
font-size: 28rpx;
|
|
332
|
+
color: #444;
|
|
333
|
+
line-height: 1.6;
|
|
334
|
+
margin-bottom: 16rpx;
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
.rule-index {
|
|
338
|
+
color: #002fa7;
|
|
339
|
+
font-weight: bold;
|
|
340
|
+
flex-shrink: 0;
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
.rule-text {
|
|
344
|
+
flex: 1;
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
.rule-task-item {
|
|
348
|
+
display: block;
|
|
349
|
+
padding-left: 16rpx;
|
|
350
|
+
color: #555;
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
/* 礼包弹窗 */
|
|
354
|
+
.empty-tip {
|
|
355
|
+
text-align: center;
|
|
356
|
+
color: #aaa;
|
|
357
|
+
font-size: 28rpx;
|
|
358
|
+
margin: 20rpx;
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
.gift-content {
|
|
362
|
+
overflow-y: auto;
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
.gift-item {
|
|
366
|
+
display: flex;
|
|
367
|
+
align-items: center;
|
|
368
|
+
gap: 20rpx;
|
|
369
|
+
background-color: white;
|
|
370
|
+
margin: 20rpx 0;
|
|
371
|
+
padding: 20rpx;
|
|
372
|
+
border-radius: 30rpx;
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
.gift-icon {
|
|
376
|
+
width: 100rpx;
|
|
377
|
+
height: 100rpx;
|
|
378
|
+
border-radius: 16rpx;
|
|
379
|
+
flex-shrink: 0;
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
.gift-info {
|
|
383
|
+
flex: 1;
|
|
384
|
+
min-width: 0;
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
.gift-name {
|
|
388
|
+
font-size: 28rpx;
|
|
389
|
+
font-weight: bold;
|
|
390
|
+
color: #333;
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
.gift-cdk {
|
|
394
|
+
font-size: 24rpx;
|
|
395
|
+
margin-top: 4rpx;
|
|
396
|
+
color: #666;
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
.gift-date {
|
|
400
|
+
font-size: 22rpx;
|
|
401
|
+
margin-top: 4rpx;
|
|
402
|
+
color: #999;
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
.copy-btn {
|
|
406
|
+
background: #002fa7;
|
|
407
|
+
color: #fff;
|
|
408
|
+
border: none;
|
|
409
|
+
border-radius: 30rpx;
|
|
410
|
+
height: 60rpx;
|
|
411
|
+
width: 100rpx;
|
|
412
|
+
font-size: 24rpx;
|
|
413
|
+
line-height: 60rpx;
|
|
414
|
+
text-align: center;
|
|
415
|
+
flex-shrink: 0;
|
|
416
|
+
padding: 0;
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
.copy-btn::after {
|
|
420
|
+
border: none;
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
/* 任务弹窗 */
|
|
424
|
+
.task-content {
|
|
425
|
+
overflow-y: auto;
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
.task-item {
|
|
429
|
+
display: flex;
|
|
430
|
+
align-items: flex-start;
|
|
431
|
+
gap: 4rpx;
|
|
432
|
+
padding: 10rpx 0;
|
|
433
|
+
border-bottom: 1rpx solid #f5f5f5;
|
|
434
|
+
font-size: 28rpx;
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
.task-item:last-child {
|
|
438
|
+
border-bottom: none;
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
.task-index {
|
|
442
|
+
color: #002fa7;
|
|
443
|
+
font-weight: bold;
|
|
444
|
+
flex-shrink: 0;
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
.task-text {
|
|
448
|
+
flex: 1;
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
.task-text-active {
|
|
452
|
+
color: #ffad35;
|
|
453
|
+
font-weight: 500;
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
.task-text-done {
|
|
457
|
+
color: #bbb;
|
|
458
|
+
text-decoration: line-through;
|
|
459
|
+
}
|
|
@@ -0,0 +1,138 @@
|
|
|
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: `/pages/wiki/wiki?game_id=${this.data.gameId}&name=${encodeURIComponent(this.data.name)}`
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
|
|
31
|
+
onLoad(options) {
|
|
32
|
+
const 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
|
+
})
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
<view class="page">
|
|
2
|
+
|
|
3
|
+
<!-- 骨架屏 -->
|
|
4
|
+
<van-skeleton wx:if="{{loading}}" title row="8" />
|
|
5
|
+
|
|
6
|
+
<!-- 有数据 -->
|
|
7
|
+
<view wx:elif="{{gameWikiJson && gameWikiJson.length > 0}}">
|
|
8
|
+
<wiki-renderer images="{{images}}" data="{{gameWikiJson}}" game-id="{{gameId}}" wiki-users="{{wikiUsers}}" name="{{name}}" />
|
|
9
|
+
|
|
10
|
+
<view style="text-align: end; font-size: 14px; color: #a9a9a9; padding: 15px">更新日期:{{wiki_created_at}}</view>
|
|
11
|
+
|
|
12
|
+
</view>
|
|
13
|
+
|
|
14
|
+
<!-- 空状态 -->
|
|
15
|
+
<view wx:else class="empty">
|
|
16
|
+
<image class="empty-img" src="/assets/images/icons/sign_login.png" mode="aspectFit" />
|
|
17
|
+
<text class="empty-text">该攻略页正在等待建设中...</text>
|
|
18
|
+
</view>
|
|
19
|
+
|
|
20
|
+
</view>
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
.page {
|
|
2
|
+
padding: 15px;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
/* 骨架屏 */
|
|
6
|
+
.skeleton {
|
|
7
|
+
padding: 15px;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.skeleton-title {
|
|
11
|
+
width: 60%;
|
|
12
|
+
height: 20px;
|
|
13
|
+
background: #e0e0e0;
|
|
14
|
+
border-radius: 4px;
|
|
15
|
+
margin-bottom: 16px;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.skeleton-row {
|
|
19
|
+
width: 100%;
|
|
20
|
+
height: 14px;
|
|
21
|
+
background: #e0e0e0;
|
|
22
|
+
border-radius: 4px;
|
|
23
|
+
margin-bottom: 10px;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/* 空状态 */
|
|
27
|
+
.empty {
|
|
28
|
+
display: flex;
|
|
29
|
+
flex-direction: column;
|
|
30
|
+
align-items: center;
|
|
31
|
+
justify-content: center;
|
|
32
|
+
padding: 60px 20px;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.empty-img {
|
|
36
|
+
width: 179px;
|
|
37
|
+
height: 133px;
|
|
38
|
+
margin-bottom: 16px;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.empty-text {
|
|
42
|
+
font-size: 14px;
|
|
43
|
+
color: #999;
|
|
44
|
+
}
|