提交 4d922c99 authored 作者: maodou's avatar maodou

ui修改

上级 5d50372a
...@@ -93,7 +93,7 @@ class _MinePageState extends State<MinePage> { ...@@ -93,7 +93,7 @@ class _MinePageState extends State<MinePage> {
} }
}), }),
), ),
controller.ads.isNotEmpty?Gaps.vGaps10:const SizedBox(), controller.ads.isNotEmpty?Gaps.vGaps5:const SizedBox(),
controller.ads.isNotEmpty? controller.ads.isNotEmpty?
Container( Container(
color: Colors.transparent, color: Colors.transparent,
...@@ -105,7 +105,7 @@ class _MinePageState extends State<MinePage> { ...@@ -105,7 +105,7 @@ class _MinePageState extends State<MinePage> {
} , } ,
), ),
):const SizedBox(), ):const SizedBox(),
Gaps.vGaps5, Gaps.vGaps15,
BuildAccount(items:controller.accounts,onTap: (ReadModel model) async{ BuildAccount(items:controller.accounts,onTap: (ReadModel model) async{
final result = await context.pushNamed(model.link??''); final result = await context.pushNamed(model.link??'');
if (result == true){ if (result == true){
......
...@@ -55,10 +55,10 @@ class BuildAccount extends StatelessWidget { ...@@ -55,10 +55,10 @@ class BuildAccount extends StatelessWidget {
child: Column( child: Column(
children: [ children: [
SizedBox( SizedBox(
width: 25.w, width: 32.w,
height: 25.w, height: 32.w,
// color: Colors.green, // color: Colors.green,
child: Image.asset(model.icon!), child: Image.asset(model.icon!,fit: BoxFit.cover,),
), ),
Gaps.vGaps5, Gaps.vGaps5,
Text(model.name,style: TextStyle(fontSize:12.w,height: 1.6.w,color: Colours.c9),), Text(model.name,style: TextStyle(fontSize:12.w,height: 1.6.w,color: Colours.c9),),
......
...@@ -62,7 +62,6 @@ class BuildRead extends StatelessWidget { ...@@ -62,7 +62,6 @@ class BuildRead extends StatelessWidget {
child: Column( child: Column(
children: [ children: [
Text(model.value,style: TextStyle(fontSize: 18.w,height: 1.6.w,fontWeight: Fonts.medium,color: Colours.c3),), Text(model.value,style: TextStyle(fontSize: 18.w,height: 1.6.w,fontWeight: Fonts.medium,color: Colours.c3),),
Gaps.vGaps5,
Text(model.name,style: TextStyle(fontSize: 13.w,height:1.6.w,color: Colours.c6)) Text(model.name,style: TextStyle(fontSize: 13.w,height:1.6.w,color: Colours.c6))
], ],
), ),
......
...@@ -59,6 +59,7 @@ class BuildUser extends StatelessWidget { ...@@ -59,6 +59,7 @@ class BuildUser extends StatelessWidget {
Stack( Stack(
children: [ children: [
Container( Container(
margin: EdgeInsets.only(top: 5.w),
padding: EdgeInsets.only(right: 8.w, left: 8.w), padding: EdgeInsets.only(right: 8.w, left: 8.w),
height: 20.w, height: 20.w,
decoration: BoxDecoration( decoration: BoxDecoration(
...@@ -88,7 +89,8 @@ class BuildUser extends StatelessWidget { ...@@ -88,7 +89,8 @@ class BuildUser extends StatelessWidget {
), ),
), ),
Positioned( Positioned(
left: 8, top: 7.w,
left: 8.w,
child: SizedBox( child: SizedBox(
width: 16.w, width: 16.w,
height: 17.w, height: 17.w,
......
...@@ -42,7 +42,7 @@ class BuildCell extends StatelessWidget { ...@@ -42,7 +42,7 @@ class BuildCell extends StatelessWidget {
], ],
), ),
), ),
Text(model.options == 1?'+${model.numbers}':'-${model.numbers}',style: TextStyle(fontSize: 17.w,fontWeight: Fonts.medium,color: AppTheme.primary),) Text(model.options == 1?'+${model.numbers}':'-${model.numbers}',style: TextStyle(fontSize: 17.w,fontWeight: Fonts.medium,color: model.options == 1?AppTheme.primary:Colours.c3),)
], ],
), ),
), ),
......
...@@ -32,6 +32,19 @@ class _UserDiscussDesPageState extends State<UserDiscussDesPage> { ...@@ -32,6 +32,19 @@ class _UserDiscussDesPageState extends State<UserDiscussDesPage> {
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
BuildItem(model: widget.model), BuildItem(model: widget.model),
Expanded(child: Container(
decoration: BoxDecoration(
color: Colors.white,
boxShadow: [
BoxShadow(
color: const Color(0xFFC7C7C7).withOpacity(0.5),
offset: Offset(1.5.w, 0),
blurRadius: 7.w,
spreadRadius: 0.w,
),
],
),
child: Column(children: [
ClipRRect( ClipRRect(
borderRadius:BorderRadius.only(topLeft: Radius.circular(5.w),topRight: Radius.circular(5)), borderRadius:BorderRadius.only(topLeft: Radius.circular(5.w),topRight: Radius.circular(5)),
child: Container( child: Container(
...@@ -56,6 +69,11 @@ class _UserDiscussDesPageState extends State<UserDiscussDesPage> { ...@@ -56,6 +69,11 @@ class _UserDiscussDesPageState extends State<UserDiscussDesPage> {
), ),
), ),
), ),
Container(
height: 0.5.w,
color: Colours.cF2,
),
SizedBox(height:10.w),
Expanded( Expanded(
child: TabBarView( child: TabBarView(
children: List.generate(tabs.length, (index){ children: List.generate(tabs.length, (index){
...@@ -63,6 +81,9 @@ class _UserDiscussDesPageState extends State<UserDiscussDesPage> { ...@@ -63,6 +81,9 @@ class _UserDiscussDesPageState extends State<UserDiscussDesPage> {
}) })
), ),
) )
],),
)),
], ],
) )
), ),
......
...@@ -129,6 +129,7 @@ class _BuildDiscussState extends State<BuildDiscuss> { ...@@ -129,6 +129,7 @@ class _BuildDiscussState extends State<BuildDiscuss> {
TextSpan(text: ':${model.content?.text?.content??''}',style: TextStyle(fontSize: 13.w,height: 1.5,color: Colours.c3)), TextSpan(text: ':${model.content?.text?.content??''}',style: TextStyle(fontSize: 13.w,height: 1.5,color: Colours.c3)),
] ]
)), )),
SizedBox(height: 10.w,),
Row( Row(
children: [ children: [
Row( Row(
...@@ -159,6 +160,7 @@ class _BuildDiscussState extends State<BuildDiscuss> { ...@@ -159,6 +160,7 @@ class _BuildDiscussState extends State<BuildDiscuss> {
child: Image.asset('assets/images/reply.png',height: 15.w,width: 15.w,fit: BoxFit.fitWidth,), child: Image.asset('assets/images/reply.png',height: 15.w,width: 15.w,fit: BoxFit.fitWidth,),
), ),
), ),
SizedBox(width: 3.w,),
Text(model.replyNum.toString(),style: TextStyle(fontSize:12.w,height: 1.5,color: Colours.c9)) Text(model.replyNum.toString(),style: TextStyle(fontSize:12.w,height: 1.5,color: Colours.c9))
], ],
) )
......
...@@ -8,13 +8,13 @@ class UserOrderController extends GetxController ...@@ -8,13 +8,13 @@ class UserOrderController extends GetxController
UserOrderController(this.tag);/*{ UserOrderController(this.tag);/*{
onRefresh(); onRefresh();
}*/ }*/
List<Tab> tabs = [ /* List<Tab> tabs = [
const Tab(text: '全部',), const Tab(text: '全部',),
const Tab(text: '待付款',), const Tab(text: '待支付',),
const Tab(text: '已取消',), const Tab(text: '已取消',),
const Tab(text: '已完成',), const Tab(text: '已完成',),
const Tab(text: '已退款',), const Tab(text: '已退款',),
]; ];*/
List<OrderListModel> orderList = []; List<OrderListModel> orderList = [];
......
...@@ -10,7 +10,7 @@ class UserOrderPage extends StatefulWidget { ...@@ -10,7 +10,7 @@ class UserOrderPage extends StatefulWidget {
} }
List<Tab> tabs = [ List<Tab> tabs = [
const Tab(text: '全部',), const Tab(text: '全部',),
const Tab(text: '待付款',), const Tab(text: '待支付',),
const Tab(text: '已取消',), const Tab(text: '已取消',),
const Tab(text: '已完成',), const Tab(text: '已完成',),
const Tab(text: '已退款',), const Tab(text: '已退款',),
......
...@@ -45,8 +45,9 @@ class BuiltCoin extends StatelessWidget { ...@@ -45,8 +45,9 @@ class BuiltCoin extends StatelessWidget {
margin: EdgeInsets.only(top: 19.w, bottom: 19.w, right: 16.5.w), margin: EdgeInsets.only(top: 19.w, bottom: 19.w, right: 16.5.w),
child: Image.asset( child: Image.asset(
'assets/images/coin.png', 'assets/images/coin.png',
height: 27.w, height: 30.w,
width: 27.w, width: 30.w,
fit: BoxFit.cover,
), ),
), ),
Expanded( Expanded(
......
...@@ -24,7 +24,7 @@ class _BuildListPageState extends State<BuildListPage> ...@@ -24,7 +24,7 @@ class _BuildListPageState extends State<BuildListPage>
@override @override
void initState() { void initState() {
myController = Get.put(UserOrderController(widget.tag)); // myController = Get.put(UserOrderController(widget.tag));
super.initState(); super.initState();
} }
...@@ -32,7 +32,7 @@ class _BuildListPageState extends State<BuildListPage> ...@@ -32,7 +32,7 @@ class _BuildListPageState extends State<BuildListPage>
Widget build(BuildContext context) { Widget build(BuildContext context) {
return GetBuilder<UserOrderController>( return GetBuilder<UserOrderController>(
tag: widget.tag.toString(), tag: widget.tag.toString(),
init: myController, init: Get.put(UserOrderController(widget.tag)),
builder: (controller) => CustomPullScrollView( builder: (controller) => CustomPullScrollView(
controller: controller.refreshController, controller: controller.refreshController,
onRefresh: controller.onRefresh, onRefresh: controller.onRefresh,
......
...@@ -236,7 +236,7 @@ class _UserOrderAwaitingState extends State<UserOrderAwaitingPage> { ...@@ -236,7 +236,7 @@ class _UserOrderAwaitingState extends State<UserOrderAwaitingPage> {
child: const Text( child: const Text(
'取消', '取消',
style: TextStyle( style: TextStyle(
fontSize: 12, fontSize: 14,
fontWeight: Fonts.medium, fontWeight: Fonts.medium,
color: Colours.c6, color: Colours.c6,
), ),
...@@ -261,8 +261,8 @@ class _UserOrderAwaitingState extends State<UserOrderAwaitingPage> { ...@@ -261,8 +261,8 @@ class _UserOrderAwaitingState extends State<UserOrderAwaitingPage> {
child: const Text( child: const Text(
'确定', '确定',
style: TextStyle( style: TextStyle(
fontSize: 12, fontSize: 14,
fontWeight: Fonts.medium, fontWeight: Fonts.boldSemi,
color: Colours.cAB1941, color: Colours.cAB1941,
), ),
), ),
......
...@@ -256,7 +256,7 @@ class _UserOrderCoinAwaitingState extends State<UserOrderCoinAwaitingPage> { ...@@ -256,7 +256,7 @@ class _UserOrderCoinAwaitingState extends State<UserOrderCoinAwaitingPage> {
child: const Text( child: const Text(
'取消', '取消',
style: TextStyle( style: TextStyle(
fontSize: 12, fontSize: 14,
fontWeight: Fonts.medium, fontWeight: Fonts.medium,
color: Colours.c6, color: Colours.c6,
), ),
...@@ -281,8 +281,8 @@ class _UserOrderCoinAwaitingState extends State<UserOrderCoinAwaitingPage> { ...@@ -281,8 +281,8 @@ class _UserOrderCoinAwaitingState extends State<UserOrderCoinAwaitingPage> {
child: const Text( child: const Text(
'确定', '确定',
style: TextStyle( style: TextStyle(
fontSize: 12, fontSize: 14,
fontWeight: Fonts.medium, fontWeight: Fonts.boldSemi,
color: Colours.cAB1941, color: Colours.cAB1941,
), ),
), ),
......
...@@ -163,7 +163,7 @@ class _UserOrderEvaluatePageState extends State<UserOrderEvaluatePage> with Auto ...@@ -163,7 +163,7 @@ class _UserOrderEvaluatePageState extends State<UserOrderEvaluatePage> with Auto
style: TextStyle( style: TextStyle(
fontSize: 13.w, fontSize: 13.w,
height: 1.5, height: 1.5,
fontWeight: Fonts.medium, fontWeight: Fonts.boldSemi,
color: Colours.c3), color: Colours.c3),
maxLines: 2, maxLines: 2,
overflow: TextOverflow.ellipsis, overflow: TextOverflow.ellipsis,
...@@ -183,6 +183,7 @@ class _UserOrderEvaluatePageState extends State<UserOrderEvaluatePage> with Auto ...@@ -183,6 +183,7 @@ class _UserOrderEvaluatePageState extends State<UserOrderEvaluatePage> with Auto
child: Column( child: Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
SizedBox(height:15.w),
Row( Row(
crossAxisAlignment: CrossAxisAlignment.center, crossAxisAlignment: CrossAxisAlignment.center,
children: [ children: [
......
...@@ -49,7 +49,7 @@ class _UserOrderRefundedState extends State<UserOrderRefundedPage> { ...@@ -49,7 +49,7 @@ class _UserOrderRefundedState extends State<UserOrderRefundedPage> {
children: [ children: [
Padding( Padding(
padding: EdgeInsets.only( padding: EdgeInsets.only(
left: 12.0.w, top: 12.0.w, bottom: 12.0.w), left: 8.0.w, top: 12.0.w, bottom: 12.0.w),
child: Row( child: Row(
mainAxisAlignment: MainAxisAlignment.start, mainAxisAlignment: MainAxisAlignment.start,
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
...@@ -118,7 +118,7 @@ class _UserOrderRefundedState extends State<UserOrderRefundedPage> { ...@@ -118,7 +118,7 @@ class _UserOrderRefundedState extends State<UserOrderRefundedPage> {
mainAxisAlignment: MainAxisAlignment.spaceEvenly, mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: controller.orderCompleteds.map((model) { children: controller.orderCompleteds.map((model) {
return Padding( return Padding(
padding: EdgeInsets.only(top: 12.w), padding: EdgeInsets.only(bottom: 12.w),
child: Row( child: Row(
mainAxisAlignment: mainAxisAlignment:
MainAxisAlignment.spaceBetween, MainAxisAlignment.spaceBetween,
...@@ -198,9 +198,9 @@ class _UserOrderRefundedState extends State<UserOrderRefundedPage> { ...@@ -198,9 +198,9 @@ class _UserOrderRefundedState extends State<UserOrderRefundedPage> {
}).toList(), }).toList(),
), ),
), ),
SizedBox( // SizedBox(
height: 14.5.w, // height: 2.5.w,
), // ),
], ],
), ),
), ),
...@@ -224,7 +224,7 @@ class _UserOrderRefundedState extends State<UserOrderRefundedPage> { ...@@ -224,7 +224,7 @@ class _UserOrderRefundedState extends State<UserOrderRefundedPage> {
), ),
child: ClipRRect( child: ClipRRect(
borderRadius: BorderRadius.circular(8.w), borderRadius: BorderRadius.circular(8.w),
child: Container(margin: EdgeInsets.only(top:24.w,left:11.5.w,right: 23.5.w,bottom: 24.w), child: Container(margin: EdgeInsets.only(top:13.w,left:11.5.w,right: 23.5.w,bottom: 24.w),
child: Column( child: Column(
mainAxisAlignment: MainAxisAlignment.start, mainAxisAlignment: MainAxisAlignment.start,
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
......
...@@ -53,7 +53,7 @@ class _RefundedDetailsState extends State<RefundedDetailsPage> { ...@@ -53,7 +53,7 @@ class _RefundedDetailsState extends State<RefundedDetailsPage> {
) )
), ),
), ),
SizedBox(height: 50.w,), SizedBox(height: 30.w,),
Container( Container(
margin: EdgeInsets.only(left: 15.w,right: 17.5.w), margin: EdgeInsets.only(left: 15.w,right: 17.5.w),
child: Row( child: Row(
......
...@@ -42,7 +42,7 @@ class BuildCell extends StatelessWidget { ...@@ -42,7 +42,7 @@ class BuildCell extends StatelessWidget {
], ],
), ),
), ),
Text(model.options == 1?'+${model.numbers}':'-${model.numbers}',style: TextStyle(fontSize: 17.w,fontWeight: Fonts.medium,color: AppTheme.primary),) Text(model.options == 1?'+${model.numbers}':'-${model.numbers}',style: TextStyle(fontSize: 17.w,fontWeight: Fonts.medium,color: model.options == 1?AppTheme.primary:Colours.c3),)
], ],
), ),
), ),
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论