修改订单登陆验证位置

hmxc
张萌 4 years ago
parent 888999e2e1
commit 202803f0d6

@ -1,4 +1,6 @@
import 'package:aku_community/pages/sign/sign_in_page.dart';
import 'package:aku_community/ui/market/goods/goods_order_detail_page.dart';
import 'package:aku_community/widget/others/user_tool.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
@ -174,6 +176,11 @@ class _GoodsDetailPageState extends State<GoodsDetailPage> {
),
bottomNavi: BottomButton(
onPressed: () {
if (!UserTool.userProvider.isLogin) {
BotToast.showText(text: '请先登录!');
Get.offAll(SignInPage());
return;
}
Get.bottomSheet(Material(
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.vertical(

@ -3,7 +3,6 @@ import 'package:aku_community/constants/api.dart';
import 'package:aku_community/model/common/img_model.dart';
import 'package:aku_community/models/market/goods_detail_model.dart';
import 'package:aku_community/pages/life_pay/pay_finish_page.dart';
import 'package:aku_community/pages/sign/sign_in_page.dart';
import 'package:aku_community/ui/profile/house/house_owners_page.dart';
import 'package:aku_community/utils/network/base_model.dart';
import 'package:aku_community/utils/network/net_util.dart';
@ -11,7 +10,6 @@ import 'package:aku_community/widget/bee_divider.dart';
import 'package:aku_community/widget/bee_scaffold.dart';
import 'package:aku_community/widget/buttons/bee_numberic_button.dart';
import 'package:aku_community/widget/buttons/bottom_button.dart';
import 'package:aku_community/widget/others/user_tool.dart';
import 'package:bot_toast/bot_toast.dart';
import 'package:flutter/material.dart';
import 'package:flutter_easyrefresh/easy_refresh.dart';
@ -83,9 +81,7 @@ class _GoodsOrderDetailPageState extends State<GoodsOrderDetailPage> {
),
bottomNavi: BottomButton(
onPressed: () async {
if (!UserTool.userProvider.isLogin) {
Get.offAll(SignInPage());
}
final cancel = BotToast.showLoading();
BaseModel baseModel = await NetUtil().post(
API.market.appointment,
@ -95,7 +91,7 @@ class _GoodsOrderDetailPageState extends State<GoodsOrderDetailPage> {
'userTel': widget.phone,
'num': _num,
},
showMessage: true,
showMessage: false,
);
cancel();
if (baseModel.status == true) {

Loading…
Cancel
Save