git
This commit is contained in:
64
lib/pages/layout/home/components/menu/menu_logic.dart
Normal file
64
lib/pages/layout/home/components/menu/menu_logic.dart
Normal file
@@ -0,0 +1,64 @@
|
||||
import 'package:get/get.dart';
|
||||
|
||||
import 'menu_state.dart';
|
||||
|
||||
class MenuLogic extends GetxController {
|
||||
final MenuState state = MenuState();
|
||||
|
||||
final List menuList = [
|
||||
{
|
||||
"icon": "https://pic.ziyuan.wang/user/guest/2023/12/ 1_fac68ecc764a6.png",
|
||||
"title": "商品管理",
|
||||
"page": "/good",
|
||||
},
|
||||
{
|
||||
"icon": "https://pic.ziyuan.wang/user/guest/2023/12/ 1_fac68ecc764a6.png",
|
||||
"title": "订单管理",
|
||||
"page": "/order",
|
||||
},
|
||||
{
|
||||
"icon": "https://pic.ziyuan.wang/user/guest/2023/12/ 1_fac68ecc764a6.png",
|
||||
"title": "店铺设置",
|
||||
"page": "/settings"
|
||||
},
|
||||
{
|
||||
"icon": "https://pic.ziyuan.wang/user/guest/2023/12/ 1_fac68ecc764a6.png",
|
||||
"title": "发布商品",
|
||||
"page": "/addGood"
|
||||
},
|
||||
{
|
||||
"icon": "https://pic.ziyuan.wang/user/guest/2023/12/ 1_fac68ecc764a6.png",
|
||||
"title": "数据统计",
|
||||
"page": "/data"
|
||||
},
|
||||
{
|
||||
"icon":
|
||||
"https://pic.ziyuan.wang/user/guest/2023/12/%201%20_1__eb4ee5cc67484.png",
|
||||
"title": "提现管理",
|
||||
"page": "/cash"
|
||||
},
|
||||
{
|
||||
"icon":
|
||||
"https://pic.ziyuan.wang/user/guest/2023/12/%201%20_1__eb4ee5cc67484.png",
|
||||
"title": "员工管理",
|
||||
"page": "/perm"
|
||||
}
|
||||
];
|
||||
|
||||
@override
|
||||
void onReady() {
|
||||
// TODO: implement onReady
|
||||
super.onReady();
|
||||
}
|
||||
|
||||
@override
|
||||
void onClose() {
|
||||
// TODO: implement onClose
|
||||
super.onClose();
|
||||
}
|
||||
|
||||
// 跳转页面
|
||||
void goPage(String page) {
|
||||
Get.toNamed(page);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user