|
|
|
@ -12,27 +12,30 @@ class MyOrderFunc {
|
|
|
|
|
|
|
|
|
|
///申请退换
|
|
|
|
|
static Future refundOrder(int goodsAppointmentId, String reson) async {
|
|
|
|
|
BaseModel baseModel = await NetUtil().get(API.market.confirmReceive,
|
|
|
|
|
BaseModel baseModel = await NetUtil().get(API.market.refundOrder,
|
|
|
|
|
params: {"goodsAppointmentId": goodsAppointmentId, "backReason": reson},
|
|
|
|
|
showMessage: true);
|
|
|
|
|
return baseModel;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
///取消预约
|
|
|
|
|
static Future cancelOrder(int goodsAppointmentId) async {
|
|
|
|
|
BaseModel baseModel = await NetUtil().get(API.market.confirmReceive,
|
|
|
|
|
BaseModel baseModel = await NetUtil().get(API.market.cancleOrder,
|
|
|
|
|
params: {"goodsAppointmentId": goodsAppointmentId}, showMessage: true);
|
|
|
|
|
return baseModel;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
///商品评价
|
|
|
|
|
static Future goodsEvalution(
|
|
|
|
|
int goodsAppointmentId, int rating, String evaluationReason) async {
|
|
|
|
|
BaseModel baseModel = await NetUtil().get(API.market.confirmReceive,
|
|
|
|
|
BaseModel baseModel = await NetUtil().get(API.market.goodsEvaluation,
|
|
|
|
|
params: {
|
|
|
|
|
"goodsAppointmentId": goodsAppointmentId,
|
|
|
|
|
"score": rating,
|
|
|
|
|
"evaluationReason": evaluationReason
|
|
|
|
|
},
|
|
|
|
|
showMessage: true);
|
|
|
|
|
return baseModel;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// 获取热度最高的商品
|
|
|
|
|