From fe702371676e18fc5da9350460c83fdbb00e4559 Mon Sep 17 00:00:00 2001 From: w-R <953969641@qq.com> Date: Wed, 23 Feb 2022 11:32:17 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/image/2x/icon_mine_edit.png | Bin 1152 -> 1463 bytes assets/image/3x/icon_mine_edit.png | Bin 2122 -> 2593 bytes assets/image/icon_mine_edit.png | Bin 576 -> 707 bytes lib/community/headlines/article_page.dart | 5 - lib/community/release_dynamic.dart | 99 ++++++++--- lib/home/home_page.dart | 12 +- lib/main.dart | 3 + lib/mine/mine_page.dart | 3 +- lib/mine/personal_page.dart | 193 ++++++++++++++++++++++ lib/retrofit/min_api.dart | 8 +- lib/retrofit/min_api.g.dart | 2 +- lib/retrofit/retrofit_api.dart | 8 +- lib/retrofit/retrofit_api.g.dart | 2 +- 13 files changed, 286 insertions(+), 49 deletions(-) create mode 100644 lib/mine/personal_page.dart diff --git a/assets/image/2x/icon_mine_edit.png b/assets/image/2x/icon_mine_edit.png index 876eac442dc4b3d1f520e96067336d295c5297ea..21dad93f7996e9ae81601d07167f174699dd67cb 100644 GIT binary patch delta 1433 zcmV;K1!nqy3AYQ7Fn<9`vgxQilTG`MgZP`3*ZRY8e9|u*?&MLa14kOLfmbtd(jj{ zMNwV@!hkmb%cj@>Rls2&TnKTZF&ncWilR6HUju&9QKi0$)SOJxaxZbEAe%eIc@#e^ zQ`fL<*@_ozJJGGZBcAp>=czH#7!+AO%O#O3Zn5&5t zR+KchId#6Rm46N6orf@~yAQT4TgxFCx|u?V9~*MeAc&$Up8%f%A|d-Ut4{sEz4D?a z0hlV;SwF*qes43>v9Fv`q+cP#a#Ou}AO?tKdPQN~g;+La{QOh^rbg4;{F&uG2Axos zTxtqa2gDGL?RrHKi;u4-{$~2W0%3IG&vllv{<6zbaWG*!(^2^NWHP)CjJ&g%m8$`yyPv*peV{04ph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F~VAip45>!*NfS)*@cfW1H0 zbKsYw{4v}g?0@Bq{+pwxlYh@cJbiB#wx}EBk!)R|Qfi+s0iPgR>sNu-0M*!ilC3{} z#?_%eEdiJZ#l_5^e91E`Pq<&YwCF0OwwT9xfw&-EAJdv$_CtK!{#8f-=1DIsT*1pJ ztB6p>lAFyi6F^+sv1d$cwW+y^`im`70^t_PN?c6EvVZjgBbHe+ew#cXF2`&WpV--Y zaLO#<%QD6HJ?ZwDMQ#Tk4KQch(zTyeGFD-hE!j#A5*_TSG zmCBX2dq&5ck&hhMXgN>#3e)QBGKQQZ6g9kKz&xLvLuqP0$9qmw(zs*76v;E+T0nr7~*GShV z0&)^aU3a8{c1P!=KmC4|8fwdMJZKEpNH$-diIZ7G>L&z#|F*X`jzb`+p2#9Q6blRr{hR0iJ;%EXfFLsXC z@Yde*ls4{QAb=&@lcYMIcy_n^9iB9ZKqWoLaeV}Cu_iA%h6PdmB{h(HnI3&!lMmcsX@=;_qw zze{AqbrUp0g%A;Q_*zP6c}Yvzl3p+YqQh~4Vprm_;^gKr=7c6E^PnmIjr0O?la?A< z1EWLKb~dx~)WLvxA`qNcikHD!>!3wXiq!4XZsB-OJI8w3jhb>T&8z6SK;*hGWmw06 zV1Ry)0WO#+I~WB6@p~|Gfyf;u{6|F>jNE0ydw6!6^M7%jFu{cPf;A2%{8!F#FyX(1 lj}O7Hf0i)kga7hF%|FC3QlmyNTe<)M002ovPDHLkV1lh8BOm|( diff --git a/assets/image/3x/icon_mine_edit.png b/assets/image/3x/icon_mine_edit.png index f636944cc315458daa3c51c0b8a869cb635aec86..0d95663f540027567af8bdfe714acd048b21d818 100644 GIT binary patch delta 2572 zcmV+n3iI{K5TO*1FnYH}8#J4WW{Vf*`NUZ`MBC zix;?;doSRuW&0oa-FtuMobTD^?C*E)b2RE{x~^+L6QCK;8h;o7gaRSPXK%nAxCh(; zvVc_JByhm^oC_3anx@xhI5Lnro387@z+fN-=m&HJ+#G1I7`Ol&1rmYXnxL zc5y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maxLines: 5, - style: TextStyle( - fontSize: 14.sp, - fontWeight: MyFontWeight.medium, - color: Color(0xFF4C4C4C), - ), - onChanged: (text) { - bool release = text != "" && text != null; - if (release != isRelease) { - isRelease = release; - setState(() {}); - } - }, - decoration: InputDecoration( - contentPadding: EdgeInsets.symmetric( - vertical: 18.h, + child: Column( + children: [ + TextField( + controller: textEditingController, + maxLines: 5, + style: TextStyle( + fontSize: 14.sp, + fontWeight: MyFontWeight.medium, + color: Color(0xFF4C4C4C), + ), + onChanged: (text) { + bool release = text != "" && text != null; + if (release != isRelease) { + isRelease = release; + setState(() {}); + } + }, + decoration: InputDecoration( + contentPadding: EdgeInsets.symmetric( + vertical: 18.h, + ), + errorBorder: InputBorder.none, + focusedBorder: InputBorder.none, + enabledBorder: InputBorder.none, + hintText: "此时此刻的想法~", + hintStyle: TextStyle( + fontSize: 14.sp, + color: Color(0xFFA29E9E), + ), + ), ), - errorBorder: InputBorder.none, - focusedBorder: InputBorder.none, - enabledBorder: InputBorder.none, - hintText: "此时此刻的想法~", - hintStyle: TextStyle( - fontSize: 14.sp, - color: Color(0xFFA29E9E), + Row( + children: [ + Container( + margin: EdgeInsets.only(top: 8, right: 8), + padding: EdgeInsets.only(left:10, right:8), + height: 21.h, + alignment: Alignment.center, + decoration: BoxDecoration( + borderRadius: BorderRadius.circular(10.5), + color: Color(0xFFF2F2F2), + ), + child: Row( + children: [ + Image.asset( + "assets/image/icon_union_location_black.png", + color: Color(0xFFB3B2B2), + width: 16, + height: 16, + ), + SizedBox(width:2,), + Text( + "你在哪里呢?", + overflow:TextOverflow.ellipsis, + style: TextStyle( + fontSize: 11.sp, + fontWeight: MyFontWeight.medium, + color: Color(0xFFB3B2B2), + ), + ), + ], + ) + ), + Spacer(), + Align(alignment: Alignment.centerRight, + child:Icon( + Icons.close, + color: Colors.black, + size: 16, + ),) + ], ), - ), - ), + ], + ) ); } } diff --git a/lib/home/home_page.dart b/lib/home/home_page.dart index 52e69705..55ba4d15 100644 --- a/lib/home/home_page.dart +++ b/lib/home/home_page.dart @@ -321,12 +321,12 @@ class HomePageState extends State with AutomaticKeepAliveClientMixin { ), child: GestureDetector( onTap: () { - Navigator.of(context).pushNamed('/router/system_msg_page').then((value) { - setState(() { - totalMsg = 0; - }); - }); - // Navigator.of(context).pushNamed('/router/web_turntable_activity'); + // Navigator.of(context).pushNamed('/router/system_msg_page').then((value) { + // setState(() { + // totalMsg = 0; + // }); + // }); + Navigator.of(context).pushNamed('/router/web_turntable_activity'); }, child: Container( height: 24, diff --git a/lib/main.dart b/lib/main.dart index 2775f999..04807350 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -85,6 +85,7 @@ import 'mine/mine_vip/binding_assistant_card.dart'; import 'mine/mine_vip/legal_right_details.dart'; import 'mine/mine_vip/mine_attainment_page.dart'; import 'mine/mine_vip/mine_vip_core.dart'; +import 'mine/personal_page.dart'; import 'order/exchange_write_off_page.dart'; import 'mine/release_page.dart'; import 'mine/roll_center_page.dart'; @@ -346,4 +347,6 @@ Map routers = { SystemDetails(arguments: arguments), '/router/invitation_record': (context, {arguments}) => InvitationRecord(), + '/router/personal_page': (context, {arguments}) => + PersonalPage(), }; diff --git a/lib/mine/mine_page.dart b/lib/mine/mine_page.dart index 8bd6ed96..6a3ff2dd 100644 --- a/lib/mine/mine_page.dart +++ b/lib/mine/mine_page.dart @@ -46,7 +46,8 @@ class _MinePage extends State with AutomaticKeepAliveClientMixin { .pushNamed('/router/login_page', arguments: {"login": "login"}); return; } - await Navigator.of(context).pushNamed('/router/user_info_page'); + // await Navigator.of(context).pushNamed('/router/user_info_page'); + await Navigator.of(context).pushNamed('/router/personal_page'); setState(() {}); } diff --git a/lib/mine/personal_page.dart b/lib/mine/personal_page.dart new file mode 100644 index 00000000..b9f546be --- /dev/null +++ b/lib/mine/personal_page.dart @@ -0,0 +1,193 @@ +import 'package:flutter/cupertino.dart'; +import 'package:flutter/material.dart'; +import 'package:huixiang/retrofit/retrofit_api.dart'; +import 'package:flutter_screenutil/flutter_screenutil.dart'; +import 'package:huixiang/utils/font_weight.dart'; +import 'package:huixiang/view_widget/classic_header.dart'; +import 'package:huixiang/view_widget/custom_image.dart'; +import 'package:huixiang/view_widget/my_footer.dart'; +import 'package:pull_to_refresh/pull_to_refresh.dart'; + +class PersonalPage extends StatefulWidget { + @override + State createState() { + return _PersonalPage(); + } +} + +class _PersonalPage extends State + with WidgetsBindingObserver { + ApiService apiService; + final RefreshController refreshController = RefreshController(); + final ScrollController scrollController = ScrollController(); + + @override + void initState() { + super.initState(); + WidgetsBinding.instance.addObserver(this); + _onRefresh(); + } + + _onRefresh() { + + } + + @override + Widget build(BuildContext context) { + return Stack( + children: [ + Positioned( + child: Container( + color: Colors.white, + child: SmartRefresher( + controller: refreshController, + enablePullDown: true, + enablePullUp: true, + header: MyHeader(), + footer: CustomFooter( + builder: (context, mode) { + return MyFooter(mode); + }, + ), + onRefresh: _onRefresh, + onLoading: () { + _onRefresh(); + }, + physics: BouncingScrollPhysics(), + scrollController: scrollController, + child: Container( + child: SingleChildScrollView( + physics: BouncingScrollPhysics(), + child: Container( + color: Color(0xFFF7F7F7), + child:Column( + children: [ + Stack( + alignment: Alignment.bottomLeft, + children: [ + Container( + // height: 286, + child: + Stack( + alignment: Alignment.bottomCenter, + children: [ + Stack( + children: [ + Positioned( + child: Container( + color: Colors.black, + child:Opacity( + opacity:0.9, + child: MImage( + "", + width: double.infinity, + height: 260.h, + fit: BoxFit.cover, + errorSrc: "assets/image/default_1.png", + fadeSrc: "assets/image/default_1.png", + ) + ) + ) + ), + Container( + margin: EdgeInsets.only( + top: 50.h, left: 16.w, right: 16.w), + decoration: BoxDecoration( + color: Colors.transparent, + ), + child: Column( + mainAxisAlignment: + MainAxisAlignment.spaceBetween, + crossAxisAlignment: + CrossAxisAlignment.center, + children: [ + GestureDetector( + child: Image.asset( + "assets/image/integral_return.png", + width: 24, + height: 24, + ), + onTap: () { + Navigator.of(context).pop(); + }, + ), + ], + ), + ), + ], + ), + Container( + child: Column( + children: [ + Padding(padding:EdgeInsets.only(right:16.w,bottom:16.h), + child: Row( + children: [ + Spacer(), + Container( + margin: EdgeInsets.only(top: 8, right: 8), + padding: EdgeInsets.only(left: 2, right: 2), + width: 59.w, + height: 21.h, + alignment: Alignment.center, + decoration: BoxDecoration( + borderRadius: BorderRadius.circular(2), + color: Color(0x80000000), + ), + child: Text( + "更换背景", + overflow:TextOverflow.ellipsis, + style: TextStyle( + fontSize: 12.sp, + fontWeight: MyFontWeight.regular, + color: Color(0xFFFFFFFF), + ), + ), + ), + ], + )), + + ], + ), + ), + ], + ), + ), + // homeInfo(), + ], + ), + ], + ), + ), + ), + ), + ), + ), + bottom: 0, + top: 0, + left: 0, + right: 0, + ), + ], + ); + } + + Widget homeInfo(){ + return Container( + margin: EdgeInsets.only(left: 16), + child: Row( + children: [ + MImage( + "", + isCircle: true, + width: 66, + height: 66, + fit: BoxFit.cover, + errorSrc: "assets/image/default_user.png", + fadeSrc: "assets/image/default_user.png", + ), + ], + ), + ); + } + +} diff --git a/lib/retrofit/min_api.dart b/lib/retrofit/min_api.dart index d27c7d0b..84461685 100644 --- a/lib/retrofit/min_api.dart +++ b/lib/retrofit/min_api.dart @@ -28,12 +28,12 @@ part 'min_api.g.dart'; // const base_url = "http://user.prod.kunqi.lotus-wallet.com/app/"; ///222 // const baseUrl = "http://user.prod.kunqi.lotus-wallet.com/app/"; ///222 -// const base_url = "http://192.168.10.236:8765/app/";///费韬 -// const baseUrl = "http://192.168.10.236:8765/app/";///费韬 +const base_url = "http://192.168.10.236:8765/app/";///费韬 +const baseUrl = "http://192.168.10.236:8765/app/";///费韬 -const base_url = "http://192.168.10.88:8765/app/";///詹云久 -const baseUrl = "http://192.168.10.88:8765/app/";///詹云久 +// const base_url = "http://192.168.10.88:8765/app/";///詹云久 +// const baseUrl = "http://192.168.10.88:8765/app/";///詹云久 // const base_url = "http://192.168.10.37:8766/app/"; diff --git a/lib/retrofit/min_api.g.dart b/lib/retrofit/min_api.g.dart index 856ae6e1..1c1cc751 100644 --- a/lib/retrofit/min_api.g.dart +++ b/lib/retrofit/min_api.g.dart @@ -9,7 +9,7 @@ part of 'min_api.dart'; class _MinApiService implements MinApiService { _MinApiService(this._dio, {this.baseUrl}) { ArgumentError.checkNotNull(_dio, '_dio'); - baseUrl ??= 'http://192.168.10.88:8765/app/'; + baseUrl ??= 'http://192.168.10.236:8765/app/'; } final Dio _dio; diff --git a/lib/retrofit/retrofit_api.dart b/lib/retrofit/retrofit_api.dart index 7206d070..55730ee0 100644 --- a/lib/retrofit/retrofit_api.dart +++ b/lib/retrofit/retrofit_api.dart @@ -62,15 +62,15 @@ part 'retrofit_api.g.dart'; // const base_url = "http://platform.prod.kunqi.lotus-wallet.com/app/"; ///222 // const baseUrl = "http://platform.prod.kunqi.lotus-wallet.com/app/"; ///222 -// const base_url = "http://192.168.10.236:8766/app/"; ///费韬 -// const baseUrl = "http://192.168.10.236:8766/app/"; ///费韬 +const base_url = "http://192.168.10.236:8766/app/"; ///费韬 +const baseUrl = "http://192.168.10.236:8766/app/"; ///费韬 // const base_url = "http://192.168.10.37:8766/app/"; // const baseUrl = "http://192.168.10.37:8766/app/"; -const base_url = "http://192.168.10.88:8766/app/";///詹云久 -const baseUrl = "http://192.168.10.88:8766/app/";///詹云久 +// const base_url = "http://192.168.10.88:8766/app/";///詹云久 +// const baseUrl = "http://192.168.10.88:8766/app/";///詹云久 @RestApi(baseUrl: baseUrl) abstract class ApiService { diff --git a/lib/retrofit/retrofit_api.g.dart b/lib/retrofit/retrofit_api.g.dart index aac9c038..ad727613 100644 --- a/lib/retrofit/retrofit_api.g.dart +++ b/lib/retrofit/retrofit_api.g.dart @@ -9,7 +9,7 @@ part of 'retrofit_api.dart'; class _ApiService implements ApiService { _ApiService(this._dio, {this.baseUrl}) { ArgumentError.checkNotNull(_dio, '_dio'); - baseUrl ??= 'http://192.168.10.88:8766/app/'; + baseUrl ??= 'http://192.168.10.236:8766/app/'; } final Dio _dio;