规则和历史

This commit is contained in:
2026-02-09 17:28:12 +08:00
parent 45e45d8160
commit 9cd87b0535
14 changed files with 395 additions and 18 deletions

View File

@@ -14,7 +14,6 @@ class MallDetailController extends GetxController with BaseControllerMixin {
late final int goodsId;
final Rx<GoodsModel?> goodsDetail = Rx<GoodsModel?>(null);
final RxBool isLoading = true.obs;
final addressController = TextEditingController();
final nameController = TextEditingController();
@@ -33,8 +32,6 @@ class MallDetailController extends GetxController with BaseControllerMixin {
bool get listenLifecycleEvent => true;
Future<void> getGoodsDetail() async {
isLoading.value = true;
updateUi();
try {
var response = await HttpService.to.post(
'appointment/score/getScoreGoodsDetail',
@@ -57,7 +54,6 @@ class MallDetailController extends GetxController with BaseControllerMixin {
showErrorToast('网络异常,请稍后重试');
Get.back();
} finally {
isLoading.value = false;
updateUi();
}
}

View File

@@ -24,14 +24,12 @@ class MallDetailPage extends GetView<MallDetailController> {
onPressed: () => Get.back(),
),
),
body: controller.isLoading.value
? const Center(child: CircularProgressIndicator())
: GestureDetector(
onTap: () {
hideKeyboard();
},
child: _buildBody(),
),
body: GestureDetector(
onTap: () {
hideKeyboard();
},
child: _buildBody(),
),
bottomNavigationBar: _buildBottomButton(),
);
},