mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
opt: horizontal member page
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -11,7 +11,6 @@ class HorizontalMemberPageController extends CommonController {
|
||||
HorizontalMemberPageController({this.mid});
|
||||
|
||||
dynamic mid;
|
||||
dynamic name;
|
||||
dynamic wwebid;
|
||||
|
||||
Rx<LoadingState> userState = LoadingState.loading().obs;
|
||||
@@ -28,7 +27,6 @@ class HorizontalMemberPageController extends CommonController {
|
||||
wwebid ??= await Utils.getWwebid(mid);
|
||||
dynamic res = await MemberHttp.memberInfo(mid: mid, wwebid: wwebid);
|
||||
if (res['status']) {
|
||||
name = res['data'].name;
|
||||
userState.value = LoadingState.success(res['data']);
|
||||
getMemberStat();
|
||||
queryData();
|
||||
|
||||
@@ -272,10 +272,10 @@ class _HorizontalMemberPageState extends State<HorizontalMemberPage> {
|
||||
onTap: () {
|
||||
if (index == 0) {
|
||||
Get.toNamed(
|
||||
'/fan?mid=${widget.mid}&name=${_controller.name}');
|
||||
'/fan?mid=${widget.mid}&name=${memberInfoModel.name}');
|
||||
} else if (index == 2) {
|
||||
Get.toNamed(
|
||||
'/follow?mid=${widget.mid}&name=${_controller.name}');
|
||||
'/follow?mid=${widget.mid}&name=${memberInfoModel.name}');
|
||||
}
|
||||
},
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user