商品退换接口修改

hmxc
张萌 3 years ago
parent 2e97ab7020
commit f70686af33

@ -12,9 +12,9 @@ class MyOrderFunc {
} }
///退 ///退
static Future refundOrder(int goodsAppointmentId, String reson) async { static Future refundOrder(int goodsAppointmentId, String reson,int type) async {
BaseModel baseModel = await NetUtil().get(API.market.refundOrder, BaseModel baseModel = await NetUtil().get(API.market.refundOrder,
params: {"goodsAppointmentId": goodsAppointmentId, "backReason": reson}, params: {"goodsAppointmentId": goodsAppointmentId, "backReason": reson,"backType":type},
showMessage: true); showMessage: true);
return baseModel; return baseModel;
} }

@ -55,7 +55,7 @@ class _MyOrderRefundPageState extends State<MyOrderRefundPage> {
bottomNavi: BottomButton( bottomNavi: BottomButton(
onPressed: () async { onPressed: () async {
BaseModel baseModel = await MyOrderFunc.refundOrder( BaseModel baseModel = await MyOrderFunc.refundOrder(
widget.model.id, _editingController.text); widget.model.id, _editingController.text, _type);
if (baseModel.status ?? false) { if (baseModel.status ?? false) {
Get.back(); Get.back();
} }

Loading…
Cancel
Save