Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
B
book-app
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
book-app
Commits
a499f62e
提交
a499f62e
authored
2月 22, 2024
作者:
yueweilu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
订单的消息 暂时跳转订单列表
上级
1486cb3c
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
42 行增加
和
9 行删除
+42
-9
item.dart
lib/pages/user_coupon/widgets/item.dart
+6
-6
controller.dart
lib/pages/user_msg/controller.dart
+5
-0
view.dart
lib/pages/user_msg/view.dart
+31
-3
没有找到文件。
lib/pages/user_coupon/widgets/item.dart
浏览文件 @
a499f62e
...
@@ -14,7 +14,7 @@ class BuildItem extends StatelessWidget {
...
@@ -14,7 +14,7 @@ class BuildItem extends StatelessWidget {
child:
Stack
(
child:
Stack
(
children:
[
children:
[
Image
.
asset
(
Image
.
asset
(
model
.
type
==
2
model
.
type
==
0
?
'assets/images/coupon_bg.png'
?
'assets/images/coupon_bg.png'
:
'assets/images/coupon_bg_expired.png'
,
:
'assets/images/coupon_bg_expired.png'
,
fit:
BoxFit
.
contain
,
fit:
BoxFit
.
contain
,
...
@@ -44,7 +44,7 @@ class BuildItem extends StatelessWidget {
...
@@ -44,7 +44,7 @@ class BuildItem extends StatelessWidget {
fontSize:
15
.
w
,
fontSize:
15
.
w
,
fontWeight:
Fonts
.
boldSemi
,
fontWeight:
Fonts
.
boldSemi
,
height:
1.5
,
height:
1.5
,
color:
model
.
type
==
2
color:
model
.
type
==
0
?
Colors
.
white
?
Colors
.
white
:
Colours
.
cC8
)),
:
Colours
.
cC8
)),
TextSpan
(
TextSpan
(
...
@@ -53,7 +53,7 @@ class BuildItem extends StatelessWidget {
...
@@ -53,7 +53,7 @@ class BuildItem extends StatelessWidget {
fontSize:
40
.
w
,
fontSize:
40
.
w
,
fontWeight:
Fonts
.
boldSemi
,
fontWeight:
Fonts
.
boldSemi
,
height:
1.5
,
height:
1.5
,
color:
model
.
type
==
2
color:
model
.
type
==
0
?
Colors
.
white
?
Colors
.
white
:
Colours
.
cC8
)),
:
Colours
.
cC8
)),
]),
]),
...
@@ -61,7 +61,7 @@ class BuildItem extends StatelessWidget {
...
@@ -61,7 +61,7 @@ class BuildItem extends StatelessWidget {
Text
(
Text
(
'满
${model.normPrice}
可用'
,
'满
${model.normPrice}
可用'
,
style:
TextStyle
(
style:
TextStyle
(
fontSize:
11
.
w
,
height:
1.5
,
color:
model
.
type
==
2
fontSize:
11
.
w
,
height:
1.5
,
color:
model
.
type
==
0
?
Colors
.
white
?
Colors
.
white
:
Colours
.
cC8
),
:
Colours
.
cC8
),
)
)
...
@@ -87,7 +87,7 @@ class BuildItem extends StatelessWidget {
...
@@ -87,7 +87,7 @@ class BuildItem extends StatelessWidget {
fontSize:
16
.
w
,
fontSize:
16
.
w
,
fontWeight:
Fonts
.
medium
,
fontWeight:
Fonts
.
medium
,
height:
1.5
,
height:
1.5
,
color:
model
.
type
==
2
color:
model
.
type
==
0
?
Colours
.
c3
?
Colours
.
c3
:
Colours
.
c9
),
:
Colours
.
c9
),
maxLines:
1
,
maxLines:
1
,
...
@@ -116,7 +116,7 @@ class BuildItem extends StatelessWidget {
...
@@ -116,7 +116,7 @@ class BuildItem extends StatelessWidget {
],
],
),
),
),
),
model
.
type
==
2
model
.
type
==
0
?
Stack
(
?
Stack
(
children:
[
children:
[
//TODO 暂时隐藏 立即使用 按钮
//TODO 暂时隐藏 立即使用 按钮
...
...
lib/pages/user_msg/controller.dart
浏览文件 @
a499f62e
...
@@ -26,6 +26,11 @@ class MsgController extends GetxController {
...
@@ -26,6 +26,11 @@ class MsgController extends GetxController {
return
result
;
return
result
;
}
}
/// 获取订单详细
Future
<
OrderInfoModel
>
getOrderInfo
(
String
orderNum
)
async
{
return
await
MineAPI
.
getOrderInfo
(
orderNum:
orderNum
);
}
/// 获取课程内图书列表
/// 获取课程内图书列表
Future
<
void
>
_getMsgs
([
bool
isRefresh
=
false
])
async
{
Future
<
void
>
_getMsgs
([
bool
isRefresh
=
false
])
async
{
if
(
isRefresh
)
_page
=
1
;
if
(
isRefresh
)
_page
=
1
;
...
...
lib/pages/user_msg/view.dart
浏览文件 @
a499f62e
...
@@ -34,12 +34,40 @@ class MsgPage extends StatelessWidget {
...
@@ -34,12 +34,40 @@ class MsgPage extends StatelessWidget {
controller
.
read
(
model
.
id
.
toString
());
controller
.
read
(
model
.
id
.
toString
());
if
(
model
.
type
==
1
){
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
){
if
(
result
==
true
){
controller
.
onRefresh
();
controller
.
onRefresh
();
}
}
// final orderInfo = await controller.getOrderInfo(model.urlId?.orderNum??'');
// // 待支付
// if (orderInfo.status == 1){
// // 书籍订单
// if (orderInfo.types ==1){
// final result = await context.pushNamed(Routes.orderAwaiting,
// queryParameters: {'orderNum': model.urlId?.orderNum.toString()});
// if (result == true){
// controller.onRefresh();
// }
// }
// // 充值订单
// else {
// final result = await context.pushNamed(Routes.orderCoinAwaiting,
// queryParameters: {'orderNum': model.urlId?.orderNum.toString()});
// if (result == true){
// controller.onRefresh();
// }
// }
//
// }
// // 已支付
// else if (orderInfo.status ==3){
//
// }
// // 已退款
// else if (orderInfo.status == 4){
//
// }
///TODO:
///TODO:
}
else
if
(
model
.
type
==
2
){
}
else
if
(
model
.
type
==
2
){
// 2 购买完成三天未评价(跳转订单列表--已完成)
// 2 购买完成三天未评价(跳转订单列表--已完成)
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论