From 3589c158d7d6636579b6e403ff16eeb0d23597be Mon Sep 17 00:00:00 2001 From: wurong <953969641@qq.com> Date: Wed, 18 Sep 2024 18:12:45 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A4=BE=E7=BE=A4=E5=8F=91=E5=B8=83=E5=8A=A8?= =?UTF-8?q?=E6=8C=89=E9=92=AE=E5=A4=84=E7=90=86=EF=BC=9B=20=E5=A5=BD?= =?UTF-8?q?=E5=8F=8B=E9=A1=B5=E9=9D=A2=E6=95=B0=E9=87=8F=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E5=A4=84=E7=90=86=EF=BC=9B=20=E5=A5=BD=E5=8F=8B=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E7=A9=BA=E6=95=B0=E6=8D=AE=E6=98=BE=E7=A4=BA=E5=A4=84?= =?UTF-8?q?=E7=90=86=EF=BC=9B=20=E6=B6=88=E6=81=AF=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E6=9D=A1=E7=94=B0=E5=AF=B9=E8=AF=9D=E6=A1=86=E9=80=80=E5=87=BA?= =?UTF-8?q?=E5=88=B7=E6=96=B0=E5=88=97=E8=A1=A8=EF=BC=9B=20=E5=A5=BD?= =?UTF-8?q?=E5=8F=8B=E5=88=97=E8=A1=A8=E6=A0=87=E9=A2=98=E5=88=87=E6=8D=A2?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=A4=84=E7=90=86=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/image/2x/chat_more.webp | Bin 0 -> 868 bytes assets/image/2x/fa_bu.webp | Bin 868 -> 1560 bytes assets/image/3x/chat_more.webp | Bin 0 -> 1213 bytes assets/image/3x/fa_bu.webp | Bin 1213 -> 2360 bytes assets/image/chat_more.webp | Bin 0 -> 479 bytes assets/image/fa_bu.webp | Bin 479 -> 974 bytes lib/im/chat_details_page.dart | 2 +- lib/im/chat_friend_group.dart | 35 +++++++++++++++++++++++++- lib/im/im_view/friend_groip_list.dart | 19 +++++++------- lib/im/im_view/im_page.dart | 4 ++- lib/retrofit/data/social_info.dart | 12 ++++++++- lib/retrofit/retrofit_api.dart | 2 +- 12 files changed, 59 insertions(+), 15 deletions(-) create mode 100644 assets/image/2x/chat_more.webp create mode 100644 assets/image/3x/chat_more.webp create mode 100644 assets/image/chat_more.webp diff --git a/assets/image/2x/chat_more.webp b/assets/image/2x/chat_more.webp new file mode 100644 index 0000000000000000000000000000000000000000..bb796014436893bf756afcc5180f1d2fb8519975 GIT binary patch literal 868 zcmV-q1DpJbP)ob>$o z#Y4vu0wf$7gNO(K#TdPQEmsBr=Uhl1nEBkYe^=Xp5I~Ia6TgC&f}L}r1-aFPh=>YE zaH_T_kaHJcz2=GuEf8TN6i>C0Zl$fUV9s6EkSZcXMCXhEyhNa)?P6kg6Y}0)VYK3$ zJJpcLAxEr))FPpriLEt<5=;?Q=I~6ubnNCleGf? zy}R6cjkXn%*`+Z=`-!q1;s{tC2>`lRHMbmyh^&|6Jp`$NQNoDOOC!eUJL3>|M|oDk z%KTp2pdN!$MQ)4Fm#_7*@2W#Ct?a$O#u#a_pg^p_&z14s`xO&A!dTA^Yi@uLvKytAW+xpn z8qYyf`?z=gGOf!buH7t*wM8g-%8~|?Gg`W56}=lW0ny)QQ;7a+Z^Rg{k8tUd-nmIySEuze9jrbOQP9swD=5hGwm2G7 zO>FK&*Jej!i~w0;NdSo3Upl;`+MrA^UXvEBIbL=)Ld}6wwR_6e~uAtBC`)Z%2Iq7Oh^QUtV|fq^jv$QDV5 zuq#09BnZ0)#4ZX6at5kd0Ay>VBe9c^*ySY!B|tSNKIgA?khp~qQ(3^k zz~92aup2H^_~3|!GLha&VM;sS?X6@YqVfd0$} z!gPilhExUx22X}OhGYgkAj=4tNDLXwfGNi35;FsXey)SGK=>ntNh+?ZUL{|vkCMN| zcH3=|$XA)gU$0fqKm1%?viC8NuerK<=EJRg>t1Iw-xWQ)ZK4Rfv3L1-9>x#%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!dTA^Yi@uLvKytAW+xpn z8qYyf`?z=gGOf!buH7t*wM8g-%8~|?Gg`W56}=lW0ny)QQ;7a+Z^Rg{k8tUd-nmIySEuze9jrbOQP9swD=5hGwm2G7 zO>FK&*Jej!i~w0;NdSo3Upl;`+MrA^UXvEBIbL=)Ld}6wwR_6eB${fY|$nh=|iPy~4LJn-D_0 z0RRxukR!e5`i{`4_GDKEZV2za#5FDgHOPq3=cenzrRqcJyfXCWMCZC9!cLd4dx55jR30+-Mp zAmYHi#L^HEakZ>%b-{LA4QtacaGIvqO5!c49ca^ZL6c#^hEHw%C92zXR5RO^-*kEWD7lCa|(=_$c?lCmt_+2vb z$mL%_xFPKjnJ1M902ZSo$oyzCxkOt_;UTGI<YqEDQGP^2T$HbL!2${s3 zGd`sL&o0xBI4#*+bp=9*QF3jRS{XVM&Eg{9jHy`VaCJC~!@V;j~Pa49RVuZFSf`;M!OWouP#@2O`;^kv|l(N)Gen>zZ_|Ar=rfbhFMbm97{3gm;I5N?$)4G&Ia)jnk<2(W}9L_ZC=c>N64{MBG%?@E|Yf) zyjMDArO`phP(BV3c+Vtu6=p6GW5t@uTJslKcb2$}l>qnv$!3xO&H&57^h*R|C>hRn z0H`_$S~LLQE-M{p3+$o%lp`6%0F}H^jgZ{~Kvqkv5?ZqA+S++I9?f%1fMn9w>;TI( bdnx|_iJI}WS+UF&00000NkvXXu0mjfL^C~7 literal 0 HcmV?d00001 diff --git a/assets/image/3x/fa_bu.webp b/assets/image/3x/fa_bu.webp index 35fb8206db9c263d48ec884d7594d1c7447af5a1..b24c87ae26b32543d69705367ab02e4a23e57cd3 100644 GIT binary patch literal 2360 zcmb`Fc{J4P8^GUiEprovEW^E)xo9S9jGZiv#!?!4p%`128OtzftiLSb8e>TI5K)#& zYDm@+rbLu=M5L~^(TH>j_dEBVPWRl?@BIGxJ>U0zp3nDL&ilLz4vWEP3IX7Hz{0`B zLEjAq0MLYHs$)!lA_h*yandc);Hr#buwrIfKjLPB=>_rwn4%fP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SRJkwPVq67PUK3g-lFKZH^4lS2%r!)^;J46g`L7G?e;GjfTJ(bT2)gE@uE2g}cS+D!MwDUH zkK)n=9A?jyyRyH+KJC&XY5~WtUn>yLz`#FxP3D_F?e?fc``^;lGP_PKI8W$zC-{5{ tfq%SQluw_&JGF@($UZR_Ber{B%6m>$Re3-eKhtWwmAFrKLf=&!{0U;4pF98n literal 1213 zcmV;u1Va0XP)B${fY|$nh=|iPy~4LJn-D_0 z0RRxukR!e5`i{`4_GDKEZV2za#5FDgHOPq3=cenzrRqcJyfXCWMCZC9!cLd4dx55jR30+-Mp zAmYHi#L^HEakZ>%b-{LA4QtacaGIvqO5!c49ca^ZL6c#^hEHw%C92zXR5RO^-*kEWD7lCa|(=_$c?lCmt_+2vb z$mL%_xFPKjnJ1M902ZSo$oyzCxkOt_;UTGI<YqEDQGP^2T$HbL!2${s3 zGd`sL&o0xBI4#*+bp=9*QF3jRS{XVM&Eg{9jHy`VaCJC~!@V;j~Pa49RVuZFSf`;M!OWouP#@2O`;^kv|l(N)Gen>zZ_|Ar=rfbhFMbm97{3gm;I5N?$)4G&Ia)jnk<2(W}9L_ZC=c>N64{MBG%?@E|Yf) zyjMDArO`phP(BV3c+Vtu6=p6GW5t@uTJslKcb2$}l>qnv$!3xO&H&57^h*R|C>hRn z0H`_$S~LLQE-M{p3+$o%lp`6%0F}H^jgZ{~Kvqkv5?ZqA+S++I9?f%1fMn9w>;TI( bdnx|_iJI}WS+UF&00000NkvXXu0mjfL^C~7 diff --git a/assets/image/chat_more.webp b/assets/image/chat_more.webp new file mode 100644 index 0000000000000000000000000000000000000000..66da3c3f79b6582616544ec2e39faa8ef539d889 GIT binary patch literal 479 zcmV<50U-W~P)t?Jl-)93r~ z3tV&(LPCTFn3(}URYzMYUjYCjN+L3~>`+ah7-zREM3jnf^m{~f1Ar~jRUu}cECM3B z76Vdo%JXkM5hBJo#~3xnI5){Ff-y#A=DLt0@?MdpjisX}Pf*pdg#PiYP|jIG2noOx zLZF7b~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=E07u>q`Cu zLn*vNV6~^Jqvc4B5;NOp0KAnS*M>Y^fbU!77fV^l(gqPFAJO4B1CXse6%WO)StNFS zTPU{0BH||H9A-xRJH3_AfnrzE@Irl{tP@`*)>Q(i??jh zCjiJf=MVw`cnu+>oOAB+xF+JBoaslXh{@%0VXVC)`$Sk(-E)`)3G&RCRnt ztQ`FWKvGI?ey?XZsSX=%9Gh$W+PF0p1HRX7j$37Kwck~RmZGjrnQ;OB%yX*(hA#sV V3x2J2ai#zO002ovPDHLkV1lP*# child: Container( padding: EdgeInsets.only(left: 8.w, right: 19.w), child: Image.asset( - "assets/image/fa_bu.webp", + "assets/image/chat_more.webp", height: 26.h, width: 26.h, ), diff --git a/lib/im/chat_friend_group.dart b/lib/im/chat_friend_group.dart index 3bd669b4..c4d54953 100644 --- a/lib/im/chat_friend_group.dart +++ b/lib/im/chat_friend_group.dart @@ -1,5 +1,6 @@ import 'dart:ui'; +import 'package:dio/dio.dart'; import 'package:flutter/material.dart'; import 'package:flutter/rendering.dart'; import 'package:flutter/services.dart'; @@ -8,9 +9,12 @@ import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'package:huixiang/retrofit/retrofit_api.dart'; import 'package:huixiang/view_widget/my_appbar.dart'; import 'package:flutter/cupertino.dart'; +import 'package:shared_preferences/shared_preferences.dart'; import '../../generated/l10n.dart'; import '../../utils/font_weight.dart'; import '../main.dart'; +import '../retrofit/data/base_data.dart'; +import '../retrofit/data/social_info.dart'; import '../utils/event_type.dart'; import '../view_widget/my_tab.dart'; import 'im_view/custom_underline_tabIndicator.dart'; @@ -28,12 +32,24 @@ class _ChatFriendGroup extends State ApiService apiService; TabController tabController; List _allKey = []; + SocialInfo infoNumber; @override void initState() { super.initState(); tabController = TabController(length: 3, vsync: this, initialIndex: 0); + tabController.addListener(() { + if(!tabController.indexIsChanging) + setState(() {}); + }); loadFinish(); + querySocialInfo(); + } + + @override + void dispose() { + super.dispose(); + tabController.dispose(); } loadFinish() { @@ -41,12 +57,29 @@ class _ChatFriendGroup extends State setState(() {}); } + ///个人社交信息(粉丝/关注数量/成就数量/好友数量) + querySocialInfo() async { + SharedPreferences value = await SharedPreferences.getInstance(); + apiService = ApiService(Dio(), + context: context, token: value.getString("token"), showLoading: true); + + BaseData baseData = + await apiService.socialInfo().catchError((onError) {}); + if (baseData != null && baseData.isSuccess) { + setState(() { + infoNumber = baseData.data; + }); + } + EasyLoading.dismiss(); + } + @override Widget build(BuildContext context) { return Scaffold( backgroundColor: Color(0xFFFFFFFF), appBar: MyAppBar( - title: "${S.of(context).haoyou}(2)", + title: tabController.index == 0 ? "${S.of(context).haoyou} (${infoNumber?.mutualFollowCount ?? "0"})" : + (tabController.index == 1 ? "${S.of(context).guanzhu} (${infoNumber?.follow ?? "0"})" : "${S.of(context).fensi} (${infoNumber?.fans ?? "0"})"), titleColor: Color(0xFF0D0D0D), titleSize: 17.sp, leading: true, diff --git a/lib/im/im_view/friend_groip_list.dart b/lib/im/im_view/friend_groip_list.dart index 5acb9abb..cfdbfed8 100644 --- a/lib/im/im_view/friend_groip_list.dart +++ b/lib/im/im_view/friend_groip_list.dart @@ -95,6 +95,8 @@ class _FriendGroupList extends State { list.clear(); } list.addAll(baseData.data.list); + if(!mounted) + return; setState(() {}); } } @@ -119,18 +121,13 @@ class _FriendGroupList extends State { _refreshController.refreshFailed(); _refreshController.loadFailed(); }); - - _refreshController.refreshCompleted(); - _refreshController.loadComplete(); if (baseData != null && baseData.isSuccess) { if (pageNum == 1) { list.clear(); } list.addAll(baseData.data.list); - print("list: ${list.length}"); - if (int.tryParse(baseData.data.total) < (pageNum * 10)) { - _refreshController.loadNoData(); - } + if(!mounted) + return; setState(() {}); } } @@ -146,7 +143,8 @@ class _FriendGroupList extends State { ? NoDataView( src: "assets/image/guan_zhu.webp", isShowBtn: false, - text: "目前暂无${widget?.title ?? ""},听说多发动态可以涨粉哦~", + text: widget.title == "好友"?"目前暂无${widget?.title ?? ""}":("目前暂无${widget?.title ?? ""},${widget?.title == "粉丝" ? + "听说多发动态可以涨粉哦" :"可以在社群广场中关注自己喜欢的人哦"}~"), fontSize: 16.sp, margin: EdgeInsets.only(top: 120.h,left: 60.w,right: 60.w), ):Expanded( @@ -156,6 +154,7 @@ class _FriendGroupList extends State { shrinkWrap: true, itemBuilder: (context, position) { return GestureDetector( + behavior: HitTestBehavior.opaque, onTap:(){ Navigator.of(context).pushNamed( '/router/chat_details_page', @@ -184,8 +183,8 @@ class _FriendGroupList extends State { child: MImage( list?.avatar ?? "", isCircle: true, - width: 66, - height: 66, + width: 66.h, + height: 66.h, fit: BoxFit.cover, errorSrc: "assets/image/default_user.webp", fadeSrc: "assets/image/default_user.webp", diff --git a/lib/im/im_view/im_page.dart b/lib/im/im_view/im_page.dart index 12ccec6e..235b4ada 100644 --- a/lib/im/im_view/im_page.dart +++ b/lib/im/im_view/im_page.dart @@ -229,7 +229,9 @@ class _IMPage extends State implements OnChatMessage { behavior: HitTestBehavior.opaque, onTap: () { Navigator.of(context) - .pushNamed('/router/chat_friend_group'); + .pushNamed('/router/chat_friend_group').then((value) { + _refresh(); + }); }, child: Container( padding: EdgeInsets.all(12), diff --git a/lib/retrofit/data/social_info.dart b/lib/retrofit/data/social_info.dart index cffbc3d4..184c1e54 100644 --- a/lib/retrofit/data/social_info.dart +++ b/lib/retrofit/data/social_info.dart @@ -5,24 +5,29 @@ class SocialInfo { SocialInfo({ dynamic fans, dynamic follow, - dynamic achievementNumber}){ + dynamic achievementNumber, + dynamic mutualFollowCount}){ _fans = fans; _follow = follow; _achievementNumber = achievementNumber; + _mutualFollowCount = mutualFollowCount; } SocialInfo.fromJson(dynamic json) { _fans = json['fans']; _follow = json['follow']; _achievementNumber = json['achievementNumber']; + _mutualFollowCount = json['mutualFollowCount']; } dynamic _fans; dynamic _follow; dynamic _achievementNumber; + dynamic _mutualFollowCount; dynamic get fans => _fans; dynamic get follow => _follow; dynamic get achievementNumber => _achievementNumber; + dynamic get mutualFollowCount => _mutualFollowCount; set fans(int value) { @@ -34,6 +39,7 @@ class SocialInfo { map['fans'] = _fans; map['follow'] = _follow; map['achievementNumber'] = _achievementNumber; + map['mutualFollowCount'] = _mutualFollowCount; return map; } @@ -44,4 +50,8 @@ class SocialInfo { set achievementNumber(int value) { _achievementNumber = value; } + + set mutualFollowCount(int value) { + _mutualFollowCount = value; + } } \ No newline at end of file diff --git a/lib/retrofit/retrofit_api.dart b/lib/retrofit/retrofit_api.dart index 7cbe6f65..970d44c0 100644 --- a/lib/retrofit/retrofit_api.dart +++ b/lib/retrofit/retrofit_api.dart @@ -458,7 +458,7 @@ abstract class ApiService { @DELETE("/information/trend/{id}") Future deleteTrend(@Path("id") String id); - ///个人社交信息(粉丝/关注数量/成就数量) + ///个人社交信息(粉丝/关注数量/成就数量/好友数量) @GET("/member/socialInfo") Future> socialInfo();