diff --git a/apps/profile/ProfileList.js b/apps/profile/ProfileList.js index 442d4499..3aaeffe4 100644 --- a/apps/profile/ProfileList.js +++ b/apps/profile/ProfileList.js @@ -133,9 +133,11 @@ const ProfileList = { groupRank, updateTime: player.getUpdateTime(), allowRank: rank && rank.allowRank, - rankCfg + rankCfg, + elem: player.isGs ? 'hydro' : 'sr' }, { e, scale: 1.6 }) }, + /** * 删除面板数据 * @param e diff --git a/models/artis/ArtisAttr.js b/models/artis/ArtisAttr.js index 8f22e2c3..a5517099 100644 --- a/models/artis/ArtisAttr.js +++ b/models/artis/ArtisAttr.js @@ -95,7 +95,6 @@ let AttrSR = { } } export default { - getData (arti, idx = 1, game = 'gs') { let tmp = game === 'gs' ? AttrGS : AttrSR return tmp.getData(arti.mainId, arti.attrIds, arti.level, arti.star, idx) diff --git a/resources/common/bg/bg-anemo.jpg b/resources/common/bg/bg-anemo.jpg deleted file mode 100644 index 985a7d47..00000000 Binary files a/resources/common/bg/bg-anemo.jpg and /dev/null differ diff --git a/resources/common/bg/bg-anemo.webp b/resources/common/bg/bg-anemo.webp new file mode 100644 index 00000000..66f992a0 Binary files /dev/null and b/resources/common/bg/bg-anemo.webp differ diff --git a/resources/common/bg/bg-cryo.jpg b/resources/common/bg/bg-cryo.jpg deleted file mode 100644 index cf4bd1d1..00000000 Binary files a/resources/common/bg/bg-cryo.jpg and /dev/null differ diff --git a/resources/common/bg/bg-cryo.webp b/resources/common/bg/bg-cryo.webp new file mode 100644 index 00000000..56632bee Binary files /dev/null and b/resources/common/bg/bg-cryo.webp differ diff --git a/resources/common/bg/bg-dendro.jpg b/resources/common/bg/bg-dendro.jpg deleted file mode 100644 index b900d286..00000000 Binary files a/resources/common/bg/bg-dendro.jpg and /dev/null differ diff --git a/resources/common/bg/bg-dendro.webp b/resources/common/bg/bg-dendro.webp new file mode 100644 index 00000000..ded89f68 Binary files /dev/null and b/resources/common/bg/bg-dendro.webp differ diff --git a/resources/common/bg/bg-electro.jpg b/resources/common/bg/bg-electro.jpg deleted file mode 100644 index 5dec7463..00000000 Binary files a/resources/common/bg/bg-electro.jpg and /dev/null differ diff --git a/resources/common/bg/bg-electro.webp b/resources/common/bg/bg-electro.webp new file mode 100644 index 00000000..1385395c Binary files /dev/null and b/resources/common/bg/bg-electro.webp differ diff --git a/resources/common/bg/bg-geo.jpg b/resources/common/bg/bg-geo.jpg deleted file mode 100644 index d68405f8..00000000 Binary files a/resources/common/bg/bg-geo.jpg and /dev/null differ diff --git a/resources/common/bg/bg-geo.webp b/resources/common/bg/bg-geo.webp new file mode 100644 index 00000000..4edcb7c1 Binary files /dev/null and b/resources/common/bg/bg-geo.webp differ diff --git a/resources/common/bg/bg-hydro.jpg b/resources/common/bg/bg-hydro.jpg deleted file mode 100644 index cc262f74..00000000 Binary files a/resources/common/bg/bg-hydro.jpg and /dev/null differ diff --git a/resources/common/bg/bg-hydro.webp b/resources/common/bg/bg-hydro.webp new file mode 100644 index 00000000..33969c26 Binary files /dev/null and b/resources/common/bg/bg-hydro.webp differ diff --git a/resources/common/bg/bg-pyro.jpg b/resources/common/bg/bg-pyro.jpg deleted file mode 100644 index 302d6129..00000000 Binary files a/resources/common/bg/bg-pyro.jpg and /dev/null differ diff --git a/resources/common/bg/bg-pyro.webp b/resources/common/bg/bg-pyro.webp new file mode 100644 index 00000000..0a3ba4bf Binary files /dev/null and b/resources/common/bg/bg-pyro.webp differ diff --git a/resources/common/bg/bg-quantum.webp b/resources/common/bg/bg-quantum.webp new file mode 100644 index 00000000..782814c4 Binary files /dev/null and b/resources/common/bg/bg-quantum.webp differ diff --git a/resources/common/bg/bg-sr.jpg b/resources/common/bg/bg-sr.webp similarity index 100% rename from resources/common/bg/bg-sr.jpg rename to resources/common/bg/bg-sr.webp diff --git a/resources/common/bg/talent-anemo.png b/resources/common/bg/talent-anemo.png deleted file mode 100644 index e9926f28..00000000 Binary files a/resources/common/bg/talent-anemo.png and /dev/null differ diff --git a/resources/common/bg/talent-anemo.webp b/resources/common/bg/talent-anemo.webp new file mode 100644 index 00000000..65ef92ba Binary files /dev/null and b/resources/common/bg/talent-anemo.webp differ diff --git a/resources/common/bg/talent-cryo.png b/resources/common/bg/talent-cryo.png deleted file mode 100644 index 2defb365..00000000 Binary files a/resources/common/bg/talent-cryo.png and /dev/null differ diff --git a/resources/common/bg/talent-cryo.webp b/resources/common/bg/talent-cryo.webp new file mode 100644 index 00000000..1e18369c Binary files /dev/null and b/resources/common/bg/talent-cryo.webp differ diff --git a/resources/common/bg/talent-dendro.png b/resources/common/bg/talent-dendro.png deleted file mode 100644 index 2359d71a..00000000 Binary files a/resources/common/bg/talent-dendro.png and /dev/null differ diff --git a/resources/common/bg/talent-dendro.webp b/resources/common/bg/talent-dendro.webp new file mode 100644 index 00000000..835b622a Binary files /dev/null and b/resources/common/bg/talent-dendro.webp differ diff --git a/resources/common/bg/talent-electro.png b/resources/common/bg/talent-electro.png deleted file mode 100644 index 8e3c59da..00000000 Binary files a/resources/common/bg/talent-electro.png and /dev/null differ diff --git a/resources/common/bg/talent-electro.webp b/resources/common/bg/talent-electro.webp new file mode 100644 index 00000000..2ff465df Binary files /dev/null and b/resources/common/bg/talent-electro.webp differ diff --git a/resources/common/bg/talent-geo.png b/resources/common/bg/talent-geo.png deleted file mode 100644 index 87d7d0d3..00000000 Binary files a/resources/common/bg/talent-geo.png and /dev/null differ diff --git a/resources/common/bg/talent-geo.webp b/resources/common/bg/talent-geo.webp new file mode 100644 index 00000000..3de3860d Binary files /dev/null and b/resources/common/bg/talent-geo.webp differ diff --git a/resources/common/bg/talent-hydro.png b/resources/common/bg/talent-hydro.png deleted file mode 100644 index 94081178..00000000 Binary files a/resources/common/bg/talent-hydro.png and /dev/null differ diff --git a/resources/common/bg/talent-hydro.webp b/resources/common/bg/talent-hydro.webp new file mode 100644 index 00000000..4836d841 Binary files /dev/null and b/resources/common/bg/talent-hydro.webp differ diff --git a/resources/common/bg/talent-pyro.png b/resources/common/bg/talent-pyro.png deleted file mode 100644 index 3349fde9..00000000 Binary files a/resources/common/bg/talent-pyro.png and /dev/null differ diff --git a/resources/common/bg/talent-pyro.webp b/resources/common/bg/talent-pyro.webp new file mode 100644 index 00000000..e507798a Binary files /dev/null and b/resources/common/bg/talent-pyro.webp differ diff --git a/resources/common/bg/talent-quantum.webp b/resources/common/bg/talent-quantum.webp new file mode 100644 index 00000000..7b69af3f Binary files /dev/null and b/resources/common/bg/talent-quantum.webp differ diff --git a/resources/common/bg/talent-sr.webp b/resources/common/bg/talent-sr.webp new file mode 100644 index 00000000..18de4c36 Binary files /dev/null and b/resources/common/bg/talent-sr.webp differ diff --git a/resources/common/common.css b/resources/common/common.css index f21e5890..6c979655 100644 --- a/resources/common/common.css +++ b/resources/common/common.css @@ -206,53 +206,67 @@ body { } /******** ELEM ********/ .elem-hydro .talent-icon { - background-image: url("./bg/talent-hydro.png"); + background-image: url("./bg/talent-hydro.webp"); } .elem-hydro .elem-bg, .hydro-bg { - background-image: url("./bg/bg-hydro.jpg"); + background-image: url("./bg/bg-hydro.webp"); } .elem-anemo .talent-icon { - background-image: url("./bg/talent-anemo.png"); + background-image: url("./bg/talent-anemo.webp"); } .elem-anemo .elem-bg, .anemo-bg { - background-image: url("./bg/bg-anemo.jpg"); + background-image: url("./bg/bg-anemo.webp"); } .elem-cryo .talent-icon { - background-image: url("./bg/talent-cryo.png"); + background-image: url("./bg/talent-cryo.webp"); } .elem-cryo .elem-bg, .cryo-bg { - background-image: url("./bg/bg-cryo.jpg"); + background-image: url("./bg/bg-cryo.webp"); } .elem-electro .talent-icon { - background-image: url("./bg/talent-electro.png"); + background-image: url("./bg/talent-electro.webp"); } .elem-electro .elem-bg, .electro-bg { - background-image: url("./bg/bg-electro.jpg"); + background-image: url("./bg/bg-electro.webp"); } .elem-geo .talent-icon { - background-image: url("./bg/talent-geo.png"); + background-image: url("./bg/talent-geo.webp"); } .elem-geo .elem-bg, .geo-bg { - background-image: url("./bg/bg-geo.jpg"); + background-image: url("./bg/bg-geo.webp"); } .elem-pyro .talent-icon { - background-image: url("./bg/talent-pyro.png"); + background-image: url("./bg/talent-pyro.webp"); } .elem-pyro .elem-bg, .pyro-bg { - background-image: url("./bg/bg-pyro.jpg"); + background-image: url("./bg/bg-pyro.webp"); } .elem-dendro .talent-icon { - background-image: url("./bg/talent-dendro.png"); + background-image: url("./bg/talent-dendro.webp"); } .elem-dendro .elem-bg, .dendro-bg { - background-image: url("./bg/bg-dendro.jpg"); + background-image: url("./bg/bg-dendro.webp"); +} +.elem-quantum .talent-icon { + background-image: url("./bg/talent-quantum.webp"); +} +.elem-quantum .elem-bg, +.quantum-bg { + background-image: url("./bg/bg-quantum.webp"); +} +.elem-sr .talent-icon { + background-image: url("./bg/talent-sr.webp"); +} +.elem-sr .elem-bg, +.sr-bg { + background-image: url("./bg/bg-sr.webp"); } /* cont */ .cont { diff --git a/resources/common/common.less b/resources/common/common.less index 84fca6b8..f6a59377 100644 --- a/resources/common/common.less +++ b/resources/common/common.less @@ -163,16 +163,16 @@ body { /******** ELEM ********/ -@elems: hydro, anemo, cryo, electro, geo, pyro, dendro; +@elems: hydro, anemo, cryo, electro, geo, pyro, dendro, quantum, sr; each(@elems, { .elem-@{value} .talent-icon { - background-image: url("./bg/talent-@{value}.png"); + background-image: url("./bg/talent-@{value}.webp"); } .elem-@{value} .elem-bg, .@{value}-bg { - background-image: url("./bg/bg-@{value}.jpg"); + background-image: url("./bg/bg-@{value}.webp"); } }) @@ -391,4 +391,4 @@ ul.cont-msg, .cont-footer ul { padding: 4px 5px 3px; border-radius: 0 0 6px 0; } -} \ No newline at end of file +} diff --git a/resources/common/layout/elem.html b/resources/common/layout/elem.html index 7ad2f5da..24d47976 100644 --- a/resources/common/layout/elem.html +++ b/resources/common/layout/elem.html @@ -12,11 +12,11 @@ {{block 'css'}} {{/block}} -{{set elemCls = {火:'pyro',冰:'cryo',风:'anemo',雷:'electro',量子:'electro',虚数:'geo',物理:'hydro', }[element||elem] || element || elem || 'hydro' }} +{{set elemCls = {火:'pyro',冰:'cryo',风:'anemo',雷:'electro',量子:'quantum',虚数:'geo',物理:'sr', }[element||elem] || element || elem || 'hydro' }}