|
|
@@ -434,8 +434,10 @@ class _ProfilePageState extends State<ProfilePage> |
|
|
|
// }
|
|
|
|
|
|
|
|
int leftLength = MaxImgSize - imgList.length;
|
|
|
|
if(leftLength <=0){
|
|
|
|
showToast(I18n.of(context).max_upload_size.replaceFirst('/s1', MaxImgSize.toString()));
|
|
|
|
if (leftLength <= 0) {
|
|
|
|
showToast(I18n.of(context)
|
|
|
|
.max_upload_size
|
|
|
|
.replaceFirst('/s1', MaxImgSize.toString()));
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
List<Asset> resultList = List<Asset>();
|
|
|
@@ -461,7 +463,7 @@ class _ProfilePageState extends State<ProfilePage> |
|
|
|
print('名字:${photoEntity.name}');
|
|
|
|
ByteData byteData = await photoEntity.getByteData();
|
|
|
|
File file = await FileCacheMgr().writeFile(
|
|
|
|
'temp-photo-${DateTime.now().millisecondsSinceEpoch}-${photoEntity.name}',
|
|
|
|
'temp-photo-${DateTime.now().millisecondsSinceEpoch}.png',
|
|
|
|
byteData.buffer.asInt8List(0));
|
|
|
|
|
|
|
|
fileList.add(file);
|
|
|
@@ -483,8 +485,8 @@ class _ProfilePageState extends State<ProfilePage> |
|
|
|
showToast(I18n.of(context).hava_error_photo);
|
|
|
|
}
|
|
|
|
MessageMgr().emit('refresh_photo');
|
|
|
|
}else{
|
|
|
|
showToast(resData['msg']);
|
|
|
|
} else {
|
|
|
|
showToast(resData['msg']);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
@@ -1382,8 +1384,8 @@ class _ProfilePageState extends State<ProfilePage> |
|
|
|
return;
|
|
|
|
}
|
|
|
|
var moneyList = [];
|
|
|
|
for(int i = 0 ; i< imgList.length;i++){
|
|
|
|
if(imgList[i]['Status'] == 1){
|
|
|
|
for (int i = 0; i < imgList.length; i++) {
|
|
|
|
if (imgList[i]['Status'] == 1) {
|
|
|
|
moneyList.add(imgList[i]);
|
|
|
|
}
|
|
|
|
}
|
|
|
@@ -1869,6 +1871,15 @@ class _ProfilePageState extends State<ProfilePage> |
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
clickChatAccout() {
|
|
|
|
if (widget.fromWhere != null && widget.fromWhere == 0) {
|
|
|
|
///如果是聊天界面跳转过来的,直接返回
|
|
|
|
Navigator.of(context).pop();
|
|
|
|
} else {
|
|
|
|
testChatPermission(() {});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
buyPhoto() {
|
|
|
|
//女性用户付费,男性用户会员的话免费解锁,非会员付费解锁
|
|
|
|
becomeVip() {
|
|
|
@@ -1983,12 +1994,12 @@ class _ProfilePageState extends State<ProfilePage> |
|
|
|
_bottomBorderBox(I18n.of(context).expect_lover, lovePeople, true, () {}),
|
|
|
|
(userInfo.wechat != null && userInfo.wechat != '')
|
|
|
|
? _bottomBorderBox(
|
|
|
|
I18n.of(context).wechat_number, wechat, true, buyChatAccount,
|
|
|
|
I18n.of(context).wechat_number, wechat, true, clickChatAccout,
|
|
|
|
showIcon: !isAuthority)
|
|
|
|
: Container(),
|
|
|
|
(userInfo.facebook != null && userInfo.facebook != '')
|
|
|
|
? _bottomBorderBox(
|
|
|
|
I18n.of(context).facebook, facebook, true, buyChatAccount,
|
|
|
|
I18n.of(context).facebook, facebook, true, clickChatAccout,
|
|
|
|
showIcon: !isAuthority)
|
|
|
|
: Container(),
|
|
|
|
userInfo.ownMsg != null && userInfo.ownMsg != ''
|
|
|
|