规则和历史
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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(),
|
||||
);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user