pull/1/head
戴余标 3 years ago
parent 48df98ccd3
commit 08c84470a5

@ -1,3 +1,4 @@
import 'package:aku_new_community/widget/bee_image_network.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
@ -144,6 +145,7 @@ class _OrderCardState extends State<OrderCard> {
if (baseModel.success) {
BotToast.showText(text: '取消成功');
widget.callRefresh();
}
cancel();
}
@ -393,6 +395,9 @@ class _OrderCardState extends State<OrderCard> {
LineButton(
onPressed: () {
_cancelOrder();
setState(() {
});
},
text:
('取消订单').text.size(28.sp).color(Color(0xFF666666)).make(),
@ -569,9 +574,8 @@ class _OrderCardState extends State<OrderCard> {
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(16.w),
),
child: FadeInImage.assetNetwork(
placeholder: R.ASSETS_IMAGES_PLACEHOLDER_WEBP,
image: model.mainPhoto ?? '',
child: BeeImageNetwork(
urls: [model.mainPhoto ?? ''],
height: 188.w,
width: 188.w,
),

@ -55,7 +55,7 @@ class _OrderDetailPageState extends State<OrderDetailPage> {
Future _pay() async {
Function cancel = BotToast.showLoading();
BaseModel baseModel =
await NetUtil().post(SAASAPI.pay.settlement, params: {
await NetUtil().post(SAASAPI.market.shopCart.settlement, params: {
"addressId": widget.orderModel.appGoodsAddressId,
"settlementGoodsList": _goodsList.map((v) => v.toJson()).toList(),
});

@ -42,6 +42,7 @@ class _OrderViewState extends State<OrderView> {
return models.rows.map((e) => OrderListModel.fromJson(e)).toList();
},
builder: (items) {
print(items.length);
return ListView.builder(
padding: EdgeInsets.symmetric(horizontal: 20.w),
itemBuilder: (context, index) {

@ -75,7 +75,7 @@ class _SubmitOrderPageState extends State<SubmitOrderPage> {
SAASAPI.market.shopCart.settlement,
params: {
'addressId': addressId,
'settlementGoodsDTOList': goodsList.map((v) => v.toJson()).toList()
'settlementGoodsList': goodsList.map((v) => v.toJson()).toList()
},
);
if (model.data == null) {

@ -62,7 +62,7 @@ class _SubmitOrderNormalPageState extends State<SubmitOrderNormalPage> {
if (appProvider.defaultAddressModel != null) {
_addressModel = appProvider.defaultAddressModel!;
// createOrder(_addressModel!.id!, _goodsList);
createOrder(_addressModel!.id!, _goodsList);
} else {
_addressModel = null;
}

Loading…
Cancel
Save