提交 82119b36 authored 作者: yueweilu's avatar yueweilu

订单超时消息提醒 跳转订单详情

上级 8500607b
......@@ -69,23 +69,32 @@ class MsgModel {
class UrlIdModel {
UrlIdModel({
this.bookId,
this.chapterId,});
this.chapterId,
this.orderNum
});
UrlIdModel.fromJson(dynamic json) {
bookId = json['book_id'];
chapterId = json['chapter_id'];
orderNum = json['ordersnum'];
}
num? bookId;
num? chapterId;
UrlIdModel copyWith({ num? bookId,
String? orderNum;
UrlIdModel copyWith({
num? bookId,
num? chapterId,
}) => UrlIdModel( bookId: bookId ?? this.bookId,
String? orderNum,
}) => UrlIdModel(
bookId: bookId ?? this.bookId,
chapterId: chapterId ?? this.chapterId,
orderNum: orderNum ?? this.orderNum
);
Map<String, dynamic> toJson() {
final map = <String, dynamic>{};
map['book_id'] = bookId;
map['chapter_id'] = chapterId;
map['ordersnum'] = orderNum;
return map;
}
......
......@@ -35,7 +35,8 @@ class MsgPage extends StatelessWidget {
if(model.type == 1){
// 1订单支付快要超时(跳转订单详情)
final result = await context.pushNamed(Routes.order);
final result = await context.pushNamed(Routes.orderAwaiting,
queryParameters: {'orderNum': model.urlId?.orderNum.toString()});
if (result == true){
controller.onRefresh();
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论