Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
B
book-app
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
book-app
Commits
bac451bb
提交
bac451bb
authored
1月 19, 2024
作者:
yueweilu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
订单评价
上级
3b87f4b9
显示空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
158 行增加
和
1 行删除
+158
-1
controller.dart
lib/pages/mine/controller.dart
+1
-1
index.dart
lib/pages/order_evaluate/index.dart
+14
-0
view.dart
lib/pages/order_evaluate/view.dart
+131
-0
index.dart
lib/pages/user_order/index.dart
+0
-0
view.dart
lib/pages/user_order/view.dart
+0
-0
index.dart
lib/routes/index.dart
+1
-0
routes.dart
lib/routes/routes.dart
+11
-0
没有找到文件。
lib/pages/mine/controller.dart
浏览文件 @
bac451bb
...
...
@@ -51,7 +51,7 @@ class MineController extends GetxController {
ReadModel
(
name:
'优惠券'
,
value:
userInfo
.
couponNums
.
toString
(),
link:
Routes
.
coupon
,
icon:
'assets/images/coupon.png'
),
ReadModel
(
name:
'积分'
,
value:
userInfo
.
integralNums
.
toString
(),
link:
Routes
.
point
,
icon:
'assets/images/point.png'
),
ReadModel
(
name:
'紫金币'
,
value:
userInfo
.
beanNums
.
toString
(),
link:
Routes
.
coin
,
icon:
'assets/images/coin.png'
),
ReadModel
(
name:
'订单'
,
value:
userInfo
.
ordersNums
.
toString
(),
icon:
'assets/images/order.png'
)
ReadModel
(
name:
'订单'
,
value:
userInfo
.
ordersNums
.
toString
(),
link:
Routes
.
orderEvaluate
,
icon:
'assets/images/order.png'
)
];
update
();
}
...
...
lib/pages/order_evaluate/index.dart
0 → 100644
浏览文件 @
bac451bb
library
order_evaluate
;
import
'package:flutter/material.dart'
;
import
'package:flutter_screenutil/flutter_screenutil.dart'
;
import
'package:flutter_star/custom_rating.dart'
;
import
'package:flutter_star/star.dart'
;
import
'../../theme.dart'
;
import
'../../utils/index.dart'
;
import
'../../widgets/index.dart'
;
part
'view.dart'
;
\ No newline at end of file
lib/pages/order_evaluate/view.dart
0 → 100644
浏览文件 @
bac451bb
part of
order_evaluate
;
class
OrderEvaluatePage
extends
StatefulWidget
{
const
OrderEvaluatePage
({
Key
?
key
})
:
super
(
key:
key
);
@override
State
<
OrderEvaluatePage
>
createState
()
=>
_OrderEvaluatePageState
();
}
class
_OrderEvaluatePageState
extends
State
<
OrderEvaluatePage
>
{
@override
Widget
build
(
BuildContext
context
)
{
return
Scaffold
(
appBar:
AppBar
(
centerTitle:
true
,
title:
const
Text
(
'订单评价'
),
),
body:
Column
(
children:
[
Container
(
margin:
const
EdgeInsets
.
all
(
10
),
decoration:
BoxDecoration
(
borderRadius:
BorderRadius
.
circular
(
8
),
color:
const
Color
(
0xFFF9F9F9
),
boxShadow:
[
BoxShadow
(
color:
const
Color
(
0xFFC7C7C7
).
withOpacity
(
0.5
),
offset:
const
Offset
(
3
,
0
),
blurRadius:
7
.
w
,
spreadRadius:
0
.
w
,
),
],
),
child:
ClipRRect
(
borderRadius:
BorderRadius
.
circular
(
8
),
child:
Column
(
mainAxisSize:
MainAxisSize
.
min
,
children:
[
// 图书容器
Container
(
color:
Colours
.
cF8
,
padding:
EdgeInsets
.
symmetric
(
horizontal:
11
,
vertical:
12
),
child:
Row
(
crossAxisAlignment:
CrossAxisAlignment
.
start
,
children:
[
Container
(
width:
71
,
height:
86
,
color:
Colors
.
cyan
,
),
Gaps
.
hGaps10
,
Text
(
'一想到还有95%的问题留给人类,我就放'
,
style:
TextStyle
(
fontSize:
13
,
height:
1.5
,
fontWeight:
Fonts
.
medium
,
color:
Colours
.
c3
),
maxLines:
2
,
overflow:
TextOverflow
.
ellipsis
,)
],
),
),
// 评价容器
Container
(
padding:
const
EdgeInsets
.
symmetric
(
vertical:
15
),
width:
double
.
infinity
,
height:
160
,
color:
Colors
.
white
,
child:
Column
(
crossAxisAlignment:
CrossAxisAlignment
.
start
,
children:
[
Row
(
crossAxisAlignment:
CrossAxisAlignment
.
center
,
children:
[
Container
(
padding:
const
EdgeInsets
.
only
(
left:
10
),
child:
const
Text
(
'评分'
),
),
Gaps
.
hGaps20
,
AbsorbPointer
(
absorbing:
false
,
child:
CustomRating
(
max:
5
,
score:
0
,
star:
const
Star
(
fat:
0.5
,
progress:
7
,
fillColor:
AppTheme
.
primary
,
size:
16
,
emptyColor:
Colours
.
cE2
,
),
onRating:
(
double
)
{},
),
),
],
),
Container
(
// color: Colors.red,
child:
const
CustomInput
(
decoration:
InputDecoration
(
focusedBorder:
InputBorder
.
none
,
border:
InputBorder
.
none
,
enabledBorder:
InputBorder
.
none
,
errorBorder:
InputBorder
.
none
,
fillColor:
Colors
.
white
,
hintStyle:
TextStyle
(
fontSize:
14
,
height:
1.5
,
color:
Colours
.
c6
)
),
maxLines:
5
,
hintText:
'请简要描述'
,
),
),
],
),
),
],
),
),
),
const
SizedBox
(
height:
50
,),
Container
(
margin:
const
EdgeInsets
.
symmetric
(
horizontal:
10
),
child:
CustomGradientButton
(
text:
'提交评价'
,
isEnabled:
false
,
onPressed:
()
{
print
(
'11111111111111111'
);
},
),
)
],
),
);
}
}
lib/pages/user_order/index.dart
0 → 100644
浏览文件 @
bac451bb
lib/pages/user_order/view.dart
0 → 100644
浏览文件 @
bac451bb
lib/routes/index.dart
浏览文件 @
bac451bb
...
...
@@ -38,6 +38,7 @@ import 'package:flutter_book/pages/web/index.dart';
import
'package:go_router/go_router.dart'
;
import
'../models/index.dart'
;
import
'../pages/order_evaluate/index.dart'
;
import
'../pages/user_about/index.dart'
;
import
'../pages/user_terms/index.dart'
;
import
'../pages/version/index.dart'
;
...
...
lib/routes/routes.dart
浏览文件 @
bac451bb
...
...
@@ -92,6 +92,8 @@ abstract class Routes {
static
const
changePwd
=
'change_pwd'
;
// 意见反馈
static
const
feedback
=
'feedback'
;
// 订单评价
static
const
orderEvaluate
=
'order_evaluate'
;
...
...
@@ -434,6 +436,15 @@ abstract class Routes {
child:
UserDiscussDesPage
(
model:
state
.
extra
as
CourseModel
,)
)
),
GoRoute
(
path:
'/
$orderEvaluate
'
,
name:
orderEvaluate
,
pageBuilder:
(
context
,
state
)
=>
CupertinoPage
(
name:
state
.
uri
.
toString
(),
key:
state
.
pageKey
,
child:
const
OrderEvaluatePage
()
)
),
]
);
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论