mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-23 12:10:33 +08:00
feat: member shop
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -8,6 +8,7 @@ enum PBadgeType {
|
||||
line_primary,
|
||||
line_secondary,
|
||||
free,
|
||||
shop,
|
||||
}
|
||||
|
||||
enum PBadgeSize { medium, small }
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
import 'package:PiliPlus/utils/storage_pref.dart';
|
||||
|
||||
enum MemberTabType {
|
||||
def('默认'),
|
||||
home('主页'),
|
||||
@@ -5,9 +7,15 @@ enum MemberTabType {
|
||||
contribute('投稿'),
|
||||
favorite('收藏'),
|
||||
bangumi('番剧'),
|
||||
cheese('课堂');
|
||||
cheese('课堂'),
|
||||
shop('小店');
|
||||
|
||||
static bool showMemberShop = Pref.showMemberShop;
|
||||
|
||||
static bool contains(String type) {
|
||||
if (type == shop.name && !showMemberShop) {
|
||||
return false;
|
||||
}
|
||||
for (var e in MemberTabType.values) {
|
||||
if (e.name == type) {
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user