mirror of
https://github.com/hi2shark/nazhua.git
synced 2026-01-17 09:40:42 +08:00
✨ 新增配置选项隐藏服务器列表项购买链接
This commit is contained in:
parent
842cc7d2f8
commit
48d6e5c36a
@ -26,6 +26,7 @@ window.$$nazhuaConfig = {
|
|||||||
// hideListItemStatusDonut: false, // 隐藏列表项的饼图
|
// hideListItemStatusDonut: false, // 隐藏列表项的饼图
|
||||||
// hideListItemStat: false, // 隐藏列表项的统计信息
|
// hideListItemStat: false, // 隐藏列表项的统计信息
|
||||||
// hideListItemBill: false, // 隐藏列表项的账单信息
|
// hideListItemBill: false, // 隐藏列表项的账单信息
|
||||||
|
hideListItemLink: true, // 隐藏列表项的购买链接
|
||||||
// hideFilter: false, // 隐藏筛选
|
// hideFilter: false, // 隐藏筛选
|
||||||
// hideTag: false, // 隐藏标签
|
// hideTag: false, // 隐藏标签
|
||||||
// hideDotBG: true, // 隐藏框框里面的点点背景
|
// hideDotBG: true, // 隐藏框框里面的点点背景
|
||||||
|
|||||||
@ -108,7 +108,12 @@ const buyBtnText = computed(() => {
|
|||||||
}
|
}
|
||||||
return config.nazhua.buyBtnText || '购买';
|
return config.nazhua.buyBtnText || '购买';
|
||||||
});
|
});
|
||||||
const showBuyBtn = computed(() => !!props.info?.PublicNote?.customData?.orderLink);
|
const showBuyBtn = computed(() => {
|
||||||
|
if (config.nazhua.hideListItemLink === true) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return !!props.info?.PublicNote?.customData?.orderLink;
|
||||||
|
});
|
||||||
|
|
||||||
function toBuy() {
|
function toBuy() {
|
||||||
const decodeUrl = decodeURIComponent(props.info?.PublicNote?.customData?.orderLink);
|
const decodeUrl = decodeURIComponent(props.info?.PublicNote?.customData?.orderLink);
|
||||||
|
|||||||
@ -229,7 +229,7 @@ const filterServerList = computed(() => {
|
|||||||
if (validate.isSet(planDataMod?.bandwidth)) {
|
if (validate.isSet(planDataMod?.bandwidth)) {
|
||||||
fields.bandwidth = true;
|
fields.bandwidth = true;
|
||||||
}
|
}
|
||||||
if (validate.isSet(customData?.orderLink)) {
|
if (validate.isSet(customData?.orderLink) && config.nazhua.hideListItemLink !== true) {
|
||||||
fields.orderLink = true;
|
fields.orderLink = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user