diff --git a/models/Role.js b/models/Role.js index 633c4cb0..2396f3de 100644 --- a/models/Role.js +++ b/models/Role.js @@ -4,6 +4,7 @@ import lodash from 'lodash' import moment from 'moment' + import Base from '../models/Base.js' import Character from '../models/Character.js' import { Data } from '#miao' @@ -15,7 +16,6 @@ export default class Role extends Base { super() this.rounds = {} lodash.forEach(data.detail.rounds_data, (round) => { - // TODO: Analyze Choice cards & buffs let tmp = { 'is_get_medal': round.is_get_medal, 'choice_cards': round.choice_cards, diff --git a/resources/stat/imgs/role/buffs/1.png b/resources/stat/imgs/role/buffs/1.png new file mode 100644 index 00000000..e1c2392c Binary files /dev/null and b/resources/stat/imgs/role/buffs/1.png differ diff --git a/resources/stat/imgs/role/buffs/10.png b/resources/stat/imgs/role/buffs/10.png new file mode 100644 index 00000000..79db453a Binary files /dev/null and b/resources/stat/imgs/role/buffs/10.png differ diff --git a/resources/stat/imgs/role/buffs/11.png b/resources/stat/imgs/role/buffs/11.png new file mode 100644 index 00000000..b835b6e8 Binary files /dev/null and b/resources/stat/imgs/role/buffs/11.png differ diff --git a/resources/stat/imgs/role/buffs/12.png b/resources/stat/imgs/role/buffs/12.png new file mode 100644 index 00000000..26eb5a70 Binary files /dev/null and b/resources/stat/imgs/role/buffs/12.png differ diff --git a/resources/stat/imgs/role/buffs/13.png b/resources/stat/imgs/role/buffs/13.png new file mode 100644 index 00000000..b012e559 Binary files /dev/null and b/resources/stat/imgs/role/buffs/13.png differ diff --git a/resources/stat/imgs/role/buffs/14.png b/resources/stat/imgs/role/buffs/14.png new file mode 100644 index 00000000..e403dcd2 Binary files /dev/null and b/resources/stat/imgs/role/buffs/14.png differ diff --git a/resources/stat/imgs/role/buffs/15.png b/resources/stat/imgs/role/buffs/15.png new file mode 100644 index 00000000..14cab484 Binary files /dev/null and b/resources/stat/imgs/role/buffs/15.png differ diff --git a/resources/stat/imgs/role/buffs/2.png b/resources/stat/imgs/role/buffs/2.png new file mode 100644 index 00000000..527bae87 Binary files /dev/null and b/resources/stat/imgs/role/buffs/2.png differ diff --git a/resources/stat/imgs/role/buffs/23.png b/resources/stat/imgs/role/buffs/23.png new file mode 100644 index 00000000..a1888eed Binary files /dev/null and b/resources/stat/imgs/role/buffs/23.png differ diff --git a/resources/stat/imgs/role/buffs/24.png b/resources/stat/imgs/role/buffs/24.png new file mode 100644 index 00000000..9efd0d90 Binary files /dev/null and b/resources/stat/imgs/role/buffs/24.png differ diff --git a/resources/stat/imgs/role/buffs/25.png b/resources/stat/imgs/role/buffs/25.png new file mode 100644 index 00000000..87af2651 Binary files /dev/null and b/resources/stat/imgs/role/buffs/25.png differ diff --git a/resources/stat/imgs/role/buffs/26.png b/resources/stat/imgs/role/buffs/26.png new file mode 100644 index 00000000..9287fd14 Binary files /dev/null and b/resources/stat/imgs/role/buffs/26.png differ diff --git a/resources/stat/imgs/role/buffs/3.png b/resources/stat/imgs/role/buffs/3.png new file mode 100644 index 00000000..f819e970 Binary files /dev/null and b/resources/stat/imgs/role/buffs/3.png differ diff --git a/resources/stat/imgs/role/buffs/4.png b/resources/stat/imgs/role/buffs/4.png new file mode 100644 index 00000000..6af7baaf Binary files /dev/null and b/resources/stat/imgs/role/buffs/4.png differ diff --git a/resources/stat/imgs/role/buffs/6.png b/resources/stat/imgs/role/buffs/6.png new file mode 100644 index 00000000..44643839 Binary files /dev/null and b/resources/stat/imgs/role/buffs/6.png differ diff --git a/resources/stat/imgs/role/buffs/8.png b/resources/stat/imgs/role/buffs/8.png new file mode 100644 index 00000000..3522ebfc Binary files /dev/null and b/resources/stat/imgs/role/buffs/8.png differ diff --git a/resources/stat/imgs/role/buffs/9.png b/resources/stat/imgs/role/buffs/9.png new file mode 100644 index 00000000..df1191e5 Binary files /dev/null and b/resources/stat/imgs/role/buffs/9.png differ diff --git a/resources/stat/imgs/role/choice_cards/1.png b/resources/stat/imgs/role/choice_cards/1.png new file mode 100644 index 00000000..c51249ae Binary files /dev/null and b/resources/stat/imgs/role/choice_cards/1.png differ diff --git a/resources/stat/imgs/role/choice_cards/1001.png b/resources/stat/imgs/role/choice_cards/1001.png new file mode 100644 index 00000000..c9d7739e Binary files /dev/null and b/resources/stat/imgs/role/choice_cards/1001.png differ diff --git a/resources/stat/imgs/role/choice_cards/1002.png b/resources/stat/imgs/role/choice_cards/1002.png new file mode 100644 index 00000000..c9d7739e Binary files /dev/null and b/resources/stat/imgs/role/choice_cards/1002.png differ diff --git a/resources/stat/imgs/role/choice_cards/1003.png b/resources/stat/imgs/role/choice_cards/1003.png new file mode 100644 index 00000000..c9d7739e Binary files /dev/null and b/resources/stat/imgs/role/choice_cards/1003.png differ diff --git a/resources/stat/imgs/role/choice_cards/1004.png b/resources/stat/imgs/role/choice_cards/1004.png new file mode 100644 index 00000000..c9d7739e Binary files /dev/null and b/resources/stat/imgs/role/choice_cards/1004.png differ diff --git a/resources/stat/imgs/role/choice_cards/2001.png b/resources/stat/imgs/role/choice_cards/2001.png new file mode 100644 index 00000000..7e727ebe Binary files /dev/null and b/resources/stat/imgs/role/choice_cards/2001.png differ diff --git a/resources/stat/imgs/role/choice_cards/2002.png b/resources/stat/imgs/role/choice_cards/2002.png new file mode 100644 index 00000000..7e727ebe Binary files /dev/null and b/resources/stat/imgs/role/choice_cards/2002.png differ diff --git a/resources/stat/imgs/role/choice_cards/2003.png b/resources/stat/imgs/role/choice_cards/2003.png new file mode 100644 index 00000000..7e727ebe Binary files /dev/null and b/resources/stat/imgs/role/choice_cards/2003.png differ diff --git a/resources/stat/imgs/role/choice_cards/2004.png b/resources/stat/imgs/role/choice_cards/2004.png new file mode 100644 index 00000000..7e727ebe Binary files /dev/null and b/resources/stat/imgs/role/choice_cards/2004.png differ diff --git a/resources/stat/imgs/role/choice_cards/3.png b/resources/stat/imgs/role/choice_cards/3.png new file mode 100644 index 00000000..c51249ae Binary files /dev/null and b/resources/stat/imgs/role/choice_cards/3.png differ diff --git a/resources/stat/imgs/role/choice_cards/3002.png b/resources/stat/imgs/role/choice_cards/3002.png new file mode 100644 index 00000000..e14d85b6 Binary files /dev/null and b/resources/stat/imgs/role/choice_cards/3002.png differ diff --git a/resources/stat/imgs/role/choice_cards/4.png b/resources/stat/imgs/role/choice_cards/4.png new file mode 100644 index 00000000..c51249ae Binary files /dev/null and b/resources/stat/imgs/role/choice_cards/4.png differ diff --git a/resources/stat/imgs/role/choice_cards/5.png b/resources/stat/imgs/role/choice_cards/5.png new file mode 100644 index 00000000..c51249ae Binary files /dev/null and b/resources/stat/imgs/role/choice_cards/5.png differ diff --git a/resources/stat/imgs/role/choice_cards/6.png b/resources/stat/imgs/role/choice_cards/6.png new file mode 100644 index 00000000..c51249ae Binary files /dev/null and b/resources/stat/imgs/role/choice_cards/6.png differ diff --git a/resources/stat/imgs/role/choice_cards/7.png b/resources/stat/imgs/role/choice_cards/7.png new file mode 100644 index 00000000..c51249ae Binary files /dev/null and b/resources/stat/imgs/role/choice_cards/7.png differ diff --git a/resources/stat/role-summary.css b/resources/stat/role-summary.css index c2f0e702..64c257ce 100644 --- a/resources/stat/role-summary.css +++ b/resources/stat/role-summary.css @@ -186,6 +186,34 @@ body, .role-buff .role-choice-cards-container .role-choice-cards-content { width: 100%; padding: 5px; + display: flex; +} +.role-buff .role-choice-cards-container .role-choice-cards-content .role-content-container { + width: 40px; + display: flex; + flex-direction: column; + align-items: center; + margin-right: 5px; +} +.role-buff .role-choice-cards-container .role-choice-cards-content .role-content-container-2 { + width: 65px; + display: flex; + flex-direction: column; + align-items: center; + margin-right: 5px; +} +.role-buff .role-choice-cards-container .role-choice-cards-content .role-content-icon { + width: 40px; + height: 40px; + background-size: cover; + background-color: black; + border-radius: 50%; +} +.role-buff .role-choice-cards-container .role-choice-cards-content .role-content-name { + width: 100%; + color: rgba(100, 100, 100, 0.5); + text-align: center; + font-size: 9px; } .role-buff .role-choice-cards-container + .role-choice-cards-container { margin-top: 4%; diff --git a/resources/stat/role-summary.html b/resources/stat/role-summary.html index 390733f0..7488d349 100644 --- a/resources/stat/role-summary.html +++ b/resources/stat/role-summary.html @@ -90,15 +90,29 @@
- {{set buffs=round?.buff }} + {{set buffs=round?.buffs }}
奇妙助益
-
等待实现
+
+ {{each buffs buff}} +
+
+
{{buff.name}}
+
+ {{/each}} +
{{set choice_cards=round?.choice_cards }}
神秘收获
-
等待实现
+
+ {{each choice_cards choice_card}} +
+
+
{{choice_card.name}}
+
+ {{/each}} +
diff --git a/resources/stat/role-summary.less b/resources/stat/role-summary.less index 8e74d8a6..a8283e4c 100644 --- a/resources/stat/role-summary.less +++ b/resources/stat/role-summary.less @@ -215,6 +215,38 @@ body, .container { .role-choice-cards-content { width: 100%; padding: 5px; + display: flex; + + .role-content-container { + width: 40px; + display: flex; + flex-direction: column; + align-items: center; + margin-right: 5px + } + + .role-content-container-2 { + width: 65px; + display: flex; + flex-direction: column; + align-items: center; + margin-right: 5px; + } + + .role-content-icon { + width: 40px; + height: 40px; + background-size: cover; + background-color: black; + border-radius: 50%; + } + + .role-content-name { + width: 100%; + color: rgba(100, 100, 100, 0.5); + text-align: center; + font-size: 9px; + } } }