Refactor member page (#3)

* refactor: member page

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip
This commit is contained in:
bggRGjQaUbCoE
2024-10-17 11:18:59 +08:00
committed by GitHub
parent 270bf0a4b6
commit f77088b870
205 changed files with 70072 additions and 119 deletions

View File

@@ -50,6 +50,7 @@ class PiliScheme {
if (value.queryParameters['comment_root_id'] != null) {
Get.to(
() => Scaffold(
resizeToAvoidBottomInset: false,
appBar: AppBar(
titleSpacing: 0,
centerTitle: false,
@@ -139,6 +140,7 @@ class PiliScheme {
int.parse(value.queryParameters['extraIntentId'] ?? '0');
Get.to(
() => Scaffold(
resizeToAvoidBottomInset: false,
appBar: AppBar(
titleSpacing: 0,
centerTitle: false,
@@ -183,6 +185,7 @@ class PiliScheme {
if (value.queryParameters['comment_root_id'] != null) {
Get.to(
() => Scaffold(
resizeToAvoidBottomInset: false,
appBar: AppBar(
titleSpacing: 0,
centerTitle: false,

View File

@@ -204,10 +204,14 @@ class Utils {
}
if (number >= 100000000) {
return '${(number / 100000000).toStringAsFixed(1)}亿';
} else if (number >= 100000) {
return '${(number ~/ 10000).toString()}';
} else if (number > 10000) {
return '${(number / 10000).toStringAsFixed(1)}';
double result = number / 10000;
String format = result.toStringAsFixed(1);
if (format.endsWith('.0')) {
return '${result.toInt()}';
} else {
return '$format万';
}
} else {
return number.toString();
}
@@ -618,7 +622,7 @@ class Utils {
}
static String appSign(
Map<String, dynamic> params, String appkey, String appsec) {
Map<String, String> params, String appkey, String appsec) {
params['appkey'] = appkey;
var searchParams = Uri(queryParameters: params).query;
var sortedParams = searchParams.split('&')..sort();