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});
|
HorizontalMemberPageController({this.mid});
|
||||||
|
|
||||||
dynamic mid;
|
dynamic mid;
|
||||||
dynamic name;
|
|
||||||
dynamic wwebid;
|
dynamic wwebid;
|
||||||
|
|
||||||
Rx<LoadingState> userState = LoadingState.loading().obs;
|
Rx<LoadingState> userState = LoadingState.loading().obs;
|
||||||
@@ -28,7 +27,6 @@ class HorizontalMemberPageController extends CommonController {
|
|||||||
wwebid ??= await Utils.getWwebid(mid);
|
wwebid ??= await Utils.getWwebid(mid);
|
||||||
dynamic res = await MemberHttp.memberInfo(mid: mid, wwebid: wwebid);
|
dynamic res = await MemberHttp.memberInfo(mid: mid, wwebid: wwebid);
|
||||||
if (res['status']) {
|
if (res['status']) {
|
||||||
name = res['data'].name;
|
|
||||||
userState.value = LoadingState.success(res['data']);
|
userState.value = LoadingState.success(res['data']);
|
||||||
getMemberStat();
|
getMemberStat();
|
||||||
queryData();
|
queryData();
|
||||||
|
|||||||
@@ -272,10 +272,10 @@ class _HorizontalMemberPageState extends State<HorizontalMemberPage> {
|
|||||||
onTap: () {
|
onTap: () {
|
||||||
if (index == 0) {
|
if (index == 0) {
|
||||||
Get.toNamed(
|
Get.toNamed(
|
||||||
'/fan?mid=${widget.mid}&name=${_controller.name}');
|
'/fan?mid=${widget.mid}&name=${memberInfoModel.name}');
|
||||||
} else if (index == 2) {
|
} else if (index == 2) {
|
||||||
Get.toNamed(
|
Get.toNamed(
|
||||||
'/follow?mid=${widget.mid}&name=${_controller.name}');
|
'/follow?mid=${widget.mid}&name=${memberInfoModel.name}');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user