用户:RedDragon/Test2:修订间差异
来自Rizline中文维基
更多操作
小 |
小 |
||
| 第127行: | 第127行: | ||
const encodedUrl = `https://rizwiki.cn/api.php?action=query%26titles=${encodeURIComponent(song.title)}%26prop=revisions%26rvprop=content%26format=json` | const encodedUrl = `https://rizwiki.cn/api.php?action=query%26titles=${encodeURIComponent(song.title)}%26prop=revisions%26rvprop=content%26format=json` | ||
const decodedUrl = decodeURIComponent(encodedUrl) | const decodedUrl = decodeURIComponent(encodedUrl) | ||
console.log('曲目图片文件名:', song.image) // 添加这行 | |||
fetch(decodedUrl) | fetch(decodedUrl) | ||
| 第139行: | 第141行: | ||
const wikitext = pages[pageId].revisions[0]['*'] | const wikitext = pages[pageId].revisions[0]['*'] | ||
const styles = parseStylesFromWikitext(wikitext) | const styles = parseStylesFromWikitext(wikitext) | ||
const imageUrl = `https://rizwiki.cn/images/thumb/${song.image.substring(0, 1)}/${song.image.substring(0, 2)}/${song.image}/300px-${song.image}` | |||
console.log('构造的图片URL:', imageUrl) // 添加这行 | |||
updateSongInfo(song, { | updateSongInfo(song, { | ||
| 第144行: | 第149行: | ||
headerStyle: styles.header || '#A3E5FF', | headerStyle: styles.header || '#A3E5FF', | ||
labelStyle: styles.label || '#B2E9FE', | labelStyle: styles.label || '#B2E9FE', | ||
imageUrl: | imageUrl: imageUrl, | ||
pageUrl: `https://rizwiki.cn/wiki/${encodeURIComponent(song.title)}` | pageUrl: `https://rizwiki.cn/wiki/${encodeURIComponent(song.title)}` | ||
}) | }) | ||
| 第154行: | 第159行: | ||
.catch(e => { | .catch(e => { | ||
console.error('获取曲目颜色失败:', e) | console.error('获取曲目颜色失败:', e) | ||
const imageUrl = `https://rizwiki.cn/images/thumb/${song.image.substring(0, 1)}/${song.image.substring(0, 2)}/${song.image}/300px-${song.image}` | |||
console.log('错误时的图片URL:', imageUrl) // 添加这行 | |||
updateSongInfo(song, { | updateSongInfo(song, { | ||
titleStyle: '#94E1FF', | titleStyle: '#94E1FF', | ||
headerStyle: '#A3E5FF', | headerStyle: '#A3E5FF', | ||
labelStyle: '#B2E9FE', | labelStyle: '#B2E9FE', | ||
imageUrl: | imageUrl: imageUrl, | ||
pageUrl: `https://rizwiki.cn/wiki/${encodeURIComponent(song.title)}` | pageUrl: `https://rizwiki.cn/wiki/${encodeURIComponent(song.title)}` | ||
}) | }) | ||
| 第285行: | 第293行: | ||
|title = 曲目 | |title = 曲目 | ||
|titlestyle = background:#ccc | |titlestyle = background:#ccc | ||
|image = [[File:插画图标.png| | |image = [[File:插画图标.png|100px]] | ||
|imagestyle = | |imagestyle = | ||
|headerstyle = background:#ccf | |headerstyle = background:#ccf | ||
2025年10月19日 (日) 23:58的版本
| 曲目 | |
|---|---|
|
|
|
| 限制 | |
| 难度 | a |
| 流速 | b |
| MOD | c |
| 其他 | d |
神秘的随机挑战!
| 曲目 | |
|---|---|
|
| |
| 限制 | |
| 难度 | a |
| 流速 | b |
| MOD | c |
| 其他 | d |
User:RedDragon/Test User:RedDragon/Test1 User:RedDragon/Test2