更新服务器信息框,添加标签列表以显示网络路由信息;调整样式以改善视觉效果

This commit is contained in:
hi2hi 2024-12-04 02:53:27 +00:00
parent 14863a8390
commit 98581d0074
2 changed files with 37 additions and 2 deletions

View File

@ -372,8 +372,8 @@ const processCount = computed(() => props.info?.State?.ProcessCount);
padding: 0 4px;
line-height: 18px;
font-size: 12px;
color: #111;
background-color: rgba(#fff, 0.8);
color: #ddd;
background-color: #294a66;
border-radius: 4px;
}
}

View File

@ -21,6 +21,18 @@
<span class="text-item value-text">{{ billAndPlan.remainingTime.value }}</span>
</span>
</template>
<div
v-else-if="tagList"
class="tag-list"
>
<span
v-for="(tagItem, index) in tagList"
:key="`${tagItem}_${index}`"
class="tag-item"
>
{{ tagItem }}
</span>
</div>
</div>
<div class="billing-and-order-link">
<div
@ -78,6 +90,14 @@ const showBuyBtn = computed(() => !!props.info?.PublicNote?.customData?.orderLin
function toBuy() {
window.open(props.info?.PublicNote?.customData?.orderLink);
}
const tagList = computed(() => {
const list = [];
if (props?.info?.PublicNote?.planDataMod?.networkRoute) {
list.push(...props.info.PublicNote.planDataMod.networkRoute.split(','));
}
return list;
});
</script>
<style lang="scss" scoped>
@ -119,6 +139,21 @@ function toBuy() {
}
}
.tag-list {
display: flex;
gap: 6px;
.tag-item {
height: 18px;
padding: 0 4px;
line-height: 18px;
font-size: 12px;
color: #ddd;
background-color: #294a66;
border-radius: 4px;
}
}
.billing-and-order-link {
display: flex;
align-items: center;