提交 e33cd36c authored 作者: maodou's avatar maodou

ui修改

上级 bd686d99
......@@ -214,7 +214,7 @@ class CartListModel {
String? introduction; // 简介
num? rating; // 评价星级
String? comments; // 评价内容
String? commentId; // 评价id
num? commentId; // 评价id
CartListModel copyWith({
num? recordId, //书籍记录id
......@@ -228,7 +228,7 @@ class CartListModel {
String? introduction, // 简介
num? rating, // 评价星级
String? comments, // 评价内容
String? commentId, // 评价id
num? commentId, // 评价id
}) =>
CartListModel(
recordId: recordId ?? this.recordId,
......@@ -432,8 +432,8 @@ class BookListModel {
String? introduction;
String? price;
num? rating;
num? comments;
num? createTime;
String? comments;
String? createTime;
BookListModel copyWith({ num? bookId,
num? recordId,
String? name,
......@@ -441,8 +441,8 @@ class BookListModel {
String? introduction,
String? price,
num? rating,
num? comments,
num? createTime,
String? comments,
String? createTime,
}) => BookListModel( bookId: bookId ?? this.bookId,
recordId: recordId ?? this.recordId,
name: name ?? this.name,
......
......@@ -126,22 +126,21 @@ class _FilterPageState extends State<FilterPage> {
},
child: Container(
height: 27,
padding: const EdgeInsets.only(left: 15,right: 15,top: 4),
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(13.5),
color: model.selected?const Color(0xFFC02D55).withOpacity(0.08): Colours.cF4,
border: model.selected?Border.all(width: 0.5.w,color: AppTheme.primary):null
),
child: Padding(
padding: const EdgeInsets.symmetric(horizontal:15),
child: model.name == '读过' || model.name == '评分'?Row(
child: model.name == '读过' || model.name == '评分'?Row(
mainAxisSize: MainAxisSize.min,
children: [
Text(model.name??'',style: TextStyle(fontSize: 13,height: 1.4,color: model.selected?AppTheme.primary: Colours.c3),textAlign: TextAlign.center,),
Image.asset(model.selected?'assets/images/filter_select.png':'assets/images/filter_unselect.png'),
],
):Text(model.name??'',style: TextStyle(fontSize: 13,height: 1.4,color: model.selected?AppTheme.primary: Colours.c3),textAlign: TextAlign.center,),
),
):Text(model.name??'',style: TextStyle(fontSize: 13,height: 1.4,color: model.selected?AppTheme.primary: Colours.c3),textAlign: TextAlign.end,),
),
);
}).toList(),
......
......@@ -39,12 +39,13 @@ class _PayCouponPageState extends State<PayCouponPage> with SingleTickerProvide
children: [
Container(
decoration: BoxDecoration(
color: Colors.white,
boxShadow: [
BoxShadow(
color: Colours.cC8.withOpacity(0.1), // 设置阴影颜色
spreadRadius: 5, // 设置阴影扩散程度
blurRadius: 7, // 设置阴影模糊程度
offset: Offset(0, 5), // 设置阴影位置
color: const Color(0xFFC7C7C7).withOpacity(0.3),
spreadRadius: 2.w,
blurRadius: 5.w,
offset: Offset(3.w, 0), //
),
],
),
......
......@@ -130,7 +130,7 @@ class _StudyReportPageState extends State<StudyReportPage> {
children: [
Container(
padding: EdgeInsets.only(left: 15.w,top: 15.w,bottom: 15.w,right: 30),
height: 165,
height: 172,
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(8.w),
color: Colors.white,
......@@ -165,12 +165,10 @@ class _StudyReportPageState extends State<StudyReportPage> {
Row(
// mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
SizedBox(
width: 80.w,
child: Text('总回顾',style: TextStyle(fontSize: 14.w,height: 1.5,color: Colours.c9),),
),
RichText(text: TextSpan(
children: [
TextSpan(text: '总回顾',style: TextStyle(fontSize: 14.w,height: 1.5,color: Colours.c9),),
WidgetSpan(child: SizedBox(width: 36.w),),
TextSpan(text:controller.model.questionAllNums !=null? controller.model.questionAllNums.toString():'' ,style: TextStyle(fontSize: 21.w,height: 1.5,color: Colours.c3,fontWeight: Fonts.medium)),
TextSpan(text: '/条',style: TextStyle(fontSize: 13.w,height: 1.5,color: Colours.c3)),
]
......@@ -180,12 +178,10 @@ class _StudyReportPageState extends State<StudyReportPage> {
Row(
// mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
SizedBox(
width: 80.w,
child: Text('评论正确率',style: TextStyle(fontSize: 14.w,height: 1.5,color: Colours.c9),),
),
RichText(text: TextSpan(
children: [
TextSpan(text: '评论正确率',style: TextStyle(fontSize: 14.w,height: 1.5,color: Colours.c9),),
WidgetSpan(child: SizedBox(width: 8.w),),
TextSpan(text:controller.model.questionAccuracy!=null?controller.model.questionAccuracy.toString():'' ,style: TextStyle(fontSize: 21.w,height: 1.5,color: Colours.c3,fontWeight: Fonts.medium)),
TextSpan(text: '%',style: TextStyle(fontSize: 13.w,height: 1.5,color: Colours.c3)),
]
......@@ -213,7 +209,7 @@ class _StudyReportPageState extends State<StudyReportPage> {
),
],
),
height: 165.w,
height: 172.w,
child: Column(
children: [
Row(
......@@ -261,10 +257,10 @@ class _StudyReportPageState extends State<StudyReportPage> {
}){
return Row(
children: [
Text(title,style: TextStyle(fontSize: 14.w,height: 1.5,color: Colours.c9),),
Gaps.hGaps5,
RichText(text: TextSpan(
children: [
TextSpan(text: title,style: TextStyle(fontSize: 14.w,height: 1.5,color: Colours.c9)),
WidgetSpan(child: SizedBox(width: 8.w),),
TextSpan(text: num=='null'?'':num,style: TextStyle(fontSize: 21.w,height: 1.5,color: Colours.c3,fontWeight: Fonts.medium)),
TextSpan(text: '/条',style: TextStyle(fontSize: 13.w,height: 1.5,color: Colours.c3)),
]
......
......@@ -104,7 +104,7 @@ class UserOrderController extends GetxController
introduction: "1一想到还有9",
rating: 4.5,
comments: "好好好",
commentId: '2'),
commentId: 2),
]));
orderList.add(OrderListModel(
id: 1,
......@@ -127,7 +127,7 @@ class UserOrderController extends GetxController
introduction: "一想到还有95%的问题留给人类,我就放一想到还有95%的问题留给问题留给",
rating: 4.5,
comments: "好好好",
commentId: '2'),
commentId: 2),
CartListModel(
recordId: 876,
orderId: 712,
......@@ -139,7 +139,7 @@ class UserOrderController extends GetxController
introduction: "一想到还有95%的问题留给人类,我就放一想到还有95%的问题留给问题留给",
rating: 4.5,
comments: "好好好",
commentId: '2'),
commentId: 2),
CartListModel(
recordId: 876,
orderId: 712,
......@@ -151,7 +151,7 @@ class UserOrderController extends GetxController
introduction: "一想到还有95%的问题留给人类,我就放一想到还有95%的问题留给问题留给",
rating: 4.5,
comments: "好好好",
commentId: '2'),
commentId: 2),
CartListModel(
recordId: 876,
orderId: 712,
......@@ -163,7 +163,7 @@ class UserOrderController extends GetxController
introduction: "一想到还有95%的问题留给人类,我就放一想到还有95%的问题留给问题留给",
rating: 4.5,
comments: "好好好",
commentId: '2'),
commentId:2),
]));
orderList.add(OrderListModel(
id: 1,
......@@ -186,7 +186,7 @@ class UserOrderController extends GetxController
introduction: "2一想到还有95%的一想到",
rating: 4.5,
comments: "好好好",
commentId: '2'),
commentId: 22),
]));
orderList.add(OrderListModel(
id: 1,
......@@ -209,7 +209,7 @@ class UserOrderController extends GetxController
introduction: "这是一本书",
rating: 4.5,
comments: "好好好",
commentId: '2'),
commentId: 2),
CartListModel(
recordId: 876,
orderId: 712,
......@@ -221,7 +221,7 @@ class UserOrderController extends GetxController
introduction: "这是一本书",
rating: 4.5,
comments: "好好好",
commentId: '2'),
commentId: 2),
CartListModel(
recordId: 876,
orderId: 712,
......@@ -233,7 +233,7 @@ class UserOrderController extends GetxController
introduction: "这是一本书",
rating: 4.5,
comments: "好好好",
commentId: '2'),
commentId: 2),
CartListModel(
recordId: 876,
orderId: 712,
......@@ -245,7 +245,7 @@ class UserOrderController extends GetxController
introduction: "这是一本书",
rating: 4.5,
comments: "好好好",
commentId: '2'),
commentId: 2),
]));
orderList.add(OrderListModel(
id: 1,
......@@ -268,7 +268,7 @@ class UserOrderController extends GetxController
introduction: "3一想到还有95%的想到还有95%的问题留给人类,我就放一想到还有95%的问题留给问题留给",
rating: 4.5,
comments: "好好好",
commentId: '2'),
commentId: 2),
]));
orderList.add(OrderListModel(
id: 1,
......@@ -291,7 +291,7 @@ class UserOrderController extends GetxController
introduction: "这是一本书",
rating: 4.5,
comments: "好好好",
commentId: '2'),
commentId: 2),
CartListModel(
recordId: 876,
orderId: 712,
......@@ -303,7 +303,7 @@ class UserOrderController extends GetxController
introduction: "这是一本书",
rating: 4.5,
comments: "好好好",
commentId: '2'),
commentId: 2),
CartListModel(
recordId: 876,
orderId: 712,
......@@ -315,7 +315,7 @@ class UserOrderController extends GetxController
introduction: "这是一本书",
rating: 4.5,
comments: "好好好",
commentId: '2'),
commentId: 2),
CartListModel(
recordId: 876,
orderId: 712,
......@@ -327,7 +327,7 @@ class UserOrderController extends GetxController
introduction: "这是一本书",
rating: 4.5,
comments: "好好好",
commentId: '2'),
commentId: 2),
]));
orderList.add(OrderListModel(
id: 1,
......@@ -350,7 +350,7 @@ class UserOrderController extends GetxController
introduction: "4一想到还有95%的问题到还有95%的问题留给人类,我就放一想到还有95%的问题留给问题留给",
rating: 4.5,
comments: "好好好",
commentId: '2'),
commentId: 2),
]));
orderList.add(OrderListModel(
id: 1,
......@@ -373,7 +373,7 @@ class UserOrderController extends GetxController
introduction: "这是一本书",
rating: 4.5,
comments: "好好好",
commentId: '2'),
commentId: 2),
CartListModel(
recordId: 876,
orderId: 712,
......@@ -385,7 +385,7 @@ class UserOrderController extends GetxController
introduction: "这是一本书",
rating: 4.5,
comments: "好好好",
commentId: '2'),
commentId: 2),
CartListModel(
recordId: 876,
orderId: 712,
......@@ -397,7 +397,7 @@ class UserOrderController extends GetxController
introduction: "这是一本书",
rating: 4.5,
comments: "好好好",
commentId: '2'),
commentId: 2),
CartListModel(
recordId: 876,
orderId: 712,
......@@ -409,7 +409,7 @@ class UserOrderController extends GetxController
introduction: "这是一本书",
rating: 4.5,
comments: "好好好",
commentId: '2'),
commentId: 2),
CartListModel(
recordId: 876,
orderId: 712,
......@@ -421,7 +421,7 @@ class UserOrderController extends GetxController
introduction: "这是一本书",
rating: 4.5,
comments: "好好好",
commentId: '2'),
commentId: 2),
]));
orderList.add(OrderListModel(
ordersnum: "aeewar34r",
......
......@@ -130,7 +130,7 @@ class _UserSecurityPageState extends State<UserSecurityPage> {
child: const Text(
'取消',
style: TextStyle(
fontSize: 12,
fontSize: 15,
fontWeight: Fonts.medium,
color: Colours.c6,
),
......@@ -161,7 +161,7 @@ class _UserSecurityPageState extends State<UserSecurityPage> {
child: const Text(
'确定',
style: TextStyle(
fontSize: 12,
fontSize: 15,
fontWeight: Fonts.medium,
color: Colours.cAB1941,
),
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论