diff --git a/src/components/userAvatar/tua-dc-relic.vue b/src/components/userAvatar/tua-dc-relic.vue
index 45676c78..9771e6e6 100644
--- a/src/components/userAvatar/tua-dc-relic.vue
+++ b/src/components/userAvatar/tua-dc-relic.vue
@@ -35,14 +35,18 @@
:src="propMain.icon"
alt="propMain"
/>
- {{ propMain !== false ? propMain.name : "未知属性" }}
+
+ {{ propMain !== false ? propMain.name : "未知属性" }}
+
{{ props.modelValue.main_property.value }}
- {{ prop !== false ? prop.name : "未知属性" }}
+
+ {{ prop !== false ? prop.name : "未知属性" }}
+
{{ props.modelValue.sub_property_list[index].times }}
@@ -60,6 +64,7 @@ import { useUserStore } from "../../store/modules/user.js";
interface TuaDcRelicProps {
modelValue: TGApp.Game.Avatar.Relic | false;
pos: "1" | "2" | "3" | "4" | "5";
+ recommend: TGApp.Game.Avatar.PropRecommend;
}
const props = defineProps();
@@ -85,6 +90,45 @@ function getRelicTitle(): string {
if (props.modelValue === false) return getRelicPos();
return props.modelValue.name;
}
+
+function getPropMainStyle(): string {
+ if (props.modelValue === false) return "";
+ if (props.pos === "3") {
+ if (
+ props.recommend.sand_main_property_list.includes(props.modelValue.main_property.property_type)
+ ) {
+ return "color: var(--tgc-yellow-1);";
+ }
+ }
+ if (props.pos === "4") {
+ if (
+ props.recommend.goblet_main_property_list.includes(
+ props.modelValue.main_property.property_type,
+ )
+ ) {
+ return "color: var(--tgc-yellow-1);";
+ }
+ }
+ if (props.pos === "5") {
+ if (
+ props.recommend.circlet_main_property_list.includes(
+ props.modelValue.main_property.property_type,
+ )
+ ) {
+ return "color: var(--tgc-yellow-1);";
+ }
+ }
+ return "";
+}
+
+function getPropSubStyle(
+ propItem: TGApp.Game.Avatar.PropMapItem | false,
+ propsR: number[],
+): string {
+ if (propItem === false) return "";
+ if (propsR.includes(propItem.property_type)) return "color: var(--tgc-yellow-1);";
+ return "";
+}