访客记录相关调整
This commit is contained in:
parent
3109834f2b
commit
7bf8a26e6e
@ -65,8 +65,8 @@ android {
|
|||||||
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
|
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
|
||||||
minSdkVersion 21
|
minSdkVersion 21
|
||||||
targetSdkVersion flutter.targetSdkVersion
|
targetSdkVersion flutter.targetSdkVersion
|
||||||
versionCode 1
|
versionCode 2
|
||||||
versionName "1.0.0"
|
versionName "1.0.1"
|
||||||
manifestPlaceholders = [
|
manifestPlaceholders = [
|
||||||
vivo_APPID: "105669716",
|
vivo_APPID: "105669716",
|
||||||
vivo_APPKEY:"84f750207787376b310ca5b0d5969122",
|
vivo_APPKEY:"84f750207787376b310ca5b0d5969122",
|
||||||
|
|||||||
@ -222,6 +222,16 @@ class InfoListViewState extends State<InfoListView> with AutomaticKeepAliveClien
|
|||||||
url: "/up-service/callout/${bean.id}/chat",);
|
url: "/up-service/callout/${bean.id}/chat",);
|
||||||
if (data["code"] == 200) {
|
if (data["code"] == 200) {
|
||||||
pushChatPage(data['data']['account_id'].toString().split("_").last,data['data']['account_id'], bean.user!.nickname!);
|
pushChatPage(data['data']['account_id'].toString().split("_").last,data['data']['account_id'], bean.user!.nickname!);
|
||||||
|
await Future.delayed(Duration(seconds: 1));
|
||||||
|
SharedPreferences sharedPreferences =await SharedPreferences.getInstance();
|
||||||
|
// SharedPreferencesHelper.getInstance().then((sharedPreferences) {
|
||||||
|
int userId = sharedPreferences.getInt(SharedPreferencesHelper.USERID)??0;
|
||||||
|
String avatar = sharedPreferences.getString(SharedPreferencesHelper.AVATAR)??"";
|
||||||
|
String name = sharedPreferences.getString(SharedPreferencesHelper.NAME)??"";
|
||||||
|
bean.chat!.users!.add(Users(avatar: avatar,id: userId,nickname: name));
|
||||||
|
widget.logic.update();
|
||||||
|
// });
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1180,15 +1190,7 @@ class InfoListViewState extends State<InfoListView> with AutomaticKeepAliveClien
|
|||||||
GestureDetector(
|
GestureDetector(
|
||||||
onTap: () async{
|
onTap: () async{
|
||||||
pushMsgPage(lists, widget.bean.id.toString());
|
pushMsgPage(lists, widget.bean.id.toString());
|
||||||
await Future.delayed(Duration(seconds: 1));
|
|
||||||
SharedPreferences sharedPreferences =await SharedPreferences.getInstance();
|
|
||||||
// SharedPreferencesHelper.getInstance().then((sharedPreferences) {
|
|
||||||
int userId = sharedPreferences.getInt(SharedPreferencesHelper.USERID)??0;
|
|
||||||
String avatar = sharedPreferences.getString(SharedPreferencesHelper.AVATAR)??"";
|
|
||||||
String name = sharedPreferences.getString(SharedPreferencesHelper.NAME)??"";
|
|
||||||
lists.chat!.users!.add(Users(avatar: avatar,id: userId,nickname: name));
|
|
||||||
widget.logic.update();
|
|
||||||
// });
|
|
||||||
},
|
},
|
||||||
child: Image.asset(
|
child: Image.asset(
|
||||||
getCircleImage('chat'),
|
getCircleImage('chat'),
|
||||||
|
|||||||
@ -82,7 +82,7 @@ class VisitorlistPage extends StatelessWidget {
|
|||||||
if (logic.lists.length > 3) {
|
if (logic.lists.length > 3) {
|
||||||
for (int i = 3; i < logic.lists.length; i++) {
|
for (int i = 3; i < logic.lists.length; i++) {
|
||||||
if (urlList.length < 3) {
|
if (urlList.length < 3) {
|
||||||
urlList.add(logic.lists[i].user.avatar);
|
urlList.add(logic.lists[i].user.avatarThumb);
|
||||||
} else {
|
} else {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -220,10 +220,10 @@ class VisitorlistPage extends StatelessWidget {
|
|||||||
horizontal: 55.sp,
|
horizontal: 55.sp,
|
||||||
),
|
),
|
||||||
child: Text(
|
child: Text(
|
||||||
"开通会员查看访客",
|
"开通会员查看更多访客",
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
color: Colors.white,
|
color: Colors.white,
|
||||||
fontSize: 12.sp,
|
fontSize: 14.sp,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@ -325,8 +325,10 @@ class VisitorlistPage extends StatelessWidget {
|
|||||||
GestureDetector(
|
GestureDetector(
|
||||||
onTap: () {
|
onTap: () {
|
||||||
if (logic.isVip > 0 || index < 3) {
|
if (logic.isVip > 0 || index < 3) {
|
||||||
pushChatPage(item.user.id.toString(), item.accountId,
|
Get.toNamed(AppRoutes.UserInfoActivity,
|
||||||
item.user.nickname);
|
arguments: item.user.id.toString());
|
||||||
|
// pushChatPage(item.user.id.toString(), item.accountId,
|
||||||
|
// item.user.nickname);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
child: Container(
|
child: Container(
|
||||||
@ -424,8 +426,8 @@ class VisitorlistPage extends StatelessWidget {
|
|||||||
height: width.sp,
|
height: width.sp,
|
||||||
),
|
),
|
||||||
url.contains("http") ? ClipOval(
|
url.contains("http") ? ClipOval(
|
||||||
child: Image.network(
|
child: CachedNetworkImage(
|
||||||
url,
|
imageUrl:url,
|
||||||
width: (width - 1).sp,
|
width: (width - 1).sp,
|
||||||
height: (width - 1).sp,
|
height: (width - 1).sp,
|
||||||
fit: BoxFit.cover,
|
fit: BoxFit.cover,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user