1.4.4代码提交

This commit is contained in:
CYH 2024-01-13 19:35:33 +08:00
parent 3816b9297a
commit f9c89c6c73
15 changed files with 141 additions and 76 deletions

View File

@ -71,8 +71,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 34 versionCode 37
versionName "1.4.3" versionName "1.4.5"
manifestPlaceholders = [ manifestPlaceholders = [
vivo_APPID: "105669716", vivo_APPID: "105669716",
vivo_APPKEY:"84f750207787376b310ca5b0d5969122", vivo_APPKEY:"84f750207787376b310ca5b0d5969122",

View File

@ -382,7 +382,7 @@
"@executable_path/Frameworks", "@executable_path/Frameworks",
); );
MARKETING_VERSION = 1.4.2; MARKETING_VERSION = 1.4.2;
PRODUCT_BUNDLE_IDENTIFIER = com.example.circleapp; PRODUCT_BUNDLE_IDENTIFIER = com.example.kyApp;
PRODUCT_NAME = "$(TARGET_NAME)"; PRODUCT_NAME = "$(TARGET_NAME)";
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator"; SUPPORTED_PLATFORMS = "iphoneos iphonesimulator";
SUPPORTS_MACCATALYST = NO; SUPPORTS_MACCATALYST = NO;
@ -531,7 +531,7 @@
"@executable_path/Frameworks", "@executable_path/Frameworks",
); );
MARKETING_VERSION = 1.4.2; MARKETING_VERSION = 1.4.2;
PRODUCT_BUNDLE_IDENTIFIER = com.example.circleapp; PRODUCT_BUNDLE_IDENTIFIER = com.example.kyApp;
PRODUCT_NAME = "$(TARGET_NAME)"; PRODUCT_NAME = "$(TARGET_NAME)";
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator"; SUPPORTED_PLATFORMS = "iphoneos iphonesimulator";
SUPPORTS_MACCATALYST = NO; SUPPORTS_MACCATALYST = NO;
@ -574,7 +574,7 @@
"@executable_path/Frameworks", "@executable_path/Frameworks",
); );
MARKETING_VERSION = 1.4.2; MARKETING_VERSION = 1.4.2;
PRODUCT_BUNDLE_IDENTIFIER = com.example.circleapp; PRODUCT_BUNDLE_IDENTIFIER = com.example.kyApp;
PRODUCT_NAME = "$(TARGET_NAME)"; PRODUCT_NAME = "$(TARGET_NAME)";
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator"; SUPPORTED_PLATFORMS = "iphoneos iphonesimulator";
SUPPORTS_MACCATALYST = NO; SUPPORTS_MACCATALYST = NO;

View File

@ -258,6 +258,7 @@ class Call_outLogic extends GetxController {
showImg() async { showImg() async {
try { try {
checkPhotosStatus();
if (state.videolist.length != 0) { if (state.videolist.length != 0) {
showOKToast("已添加视频,无法添加图片。"); showOKToast("已添加视频,无法添加图片。");
return; return;

View File

@ -662,6 +662,7 @@ class _CirclePageState extends State<CirclePage>
width: 24.sp, width: 24.sp,
), ),
Container( Container(
width: 80.sp,
margin: EdgeInsets.only(left: 4.sp, top: 4.sp), margin: EdgeInsets.only(left: 4.sp, top: 4.sp),
child: Text( child: Text(
modifyCityName(logic.cityName), modifyCityName(logic.cityName),
@ -793,7 +794,7 @@ class _CirclePageState extends State<CirclePage>
InkWell( InkWell(
onTap: () { onTap: () {
Get.bottomSheet( Get.bottomSheet(
TodayPeopleDialog(), TodayPeopleDialog(isShow:true),
isScrollControlled: true, isScrollControlled: true,
enableDrag: false, enableDrag: false,
); );

View File

@ -32,13 +32,13 @@ class Invent_recordLogic extends GetxController {
} }
void loadData() async { void loadData() async {
var result = await DioManager.instance.post(url:Get.arguments == 0 ? Api.inviteRecord : Api.inviteRankRecord,params: {'page':index,'pageSize':10}); var result = await DioManager.instance.post(url:Get.arguments == 0 ? Api.inviteRecord : Api.inviteRankRecord,params: {'page':index,'pageSize':20});
isLoad = false; isLoad = false;
if (result['code'] == 200) { if (result['code'] == 200) {
if (result['data'] != null) { if (result['data'] != null) {
List dataList = result['data']; List dataList = result['data'];
isMore = dataList.length >= 10; isMore = dataList.length >= 20;
if (index == 1) { if (index == 1) {
data = result['data']; data = result['data'];

View File

@ -105,7 +105,7 @@ class Invent_recordPage extends StatelessWidget {
color: Color(0x0AFFFFFF), color: Color(0x0AFFFFFF),
), ),
Expanded( Expanded(
child: infoText('直接'), child: infoText('直接'),
flex: 1, flex: 1,
), ),
Container( Container(
@ -201,7 +201,7 @@ class Invent_recordPage extends StatelessWidget {
infoText(String info, [Color color = const Color(0xFFF7FAFA)]) { infoText(String info, [Color color = const Color(0xFFF7FAFA)]) {
return Center( return Center(
child: Text( child: Text(
info, info ?? '',
style: TextStyle(color: color, fontSize: 12.sp), style: TextStyle(color: color, fontSize: 12.sp),
overflow: TextOverflow.ellipsis, overflow: TextOverflow.ellipsis,
), ),

View File

@ -437,7 +437,9 @@ class _ShareState extends State<Share> {
String username, String username,
) { ) {
Clipboard.setData(ClipboardData( Clipboard.setData(ClipboardData(
text: '${username}】邀请你加入“微乐园”,邀请码为${widget.code},点击进入${widget.link} 这是一款专为各种特色小众圈子爱好者打造的交友平台,资质齐全,安全正规。在这里,能看到很多没听说过的圈子,也能发现很多为数不多的真实情怀,还能见证小众亚文化在生活方式上的新体验。真实、安全、私密、走心,我和很多圈友都在玩哦~')); text: '${username}】邀请你加入“微乐园”,邀请码为${widget.code},点击进入${widget.link}'
'这是一款专为各种特色小众圈子爱好者打造的交友平台,资质齐全,安全正规。'
'在这里,能看到很多没听说过的圈子,也能发现很多为数不多的真实情怀,还能见证小众亚文化在生活方式上的新体验。真实、安全、私密、走心,我和很多圈友都在玩哦~'));
showOKToast('您已成功复制分享链接,前往对应平台粘贴发送即可~'); showOKToast('您已成功复制分享链接,前往对应平台粘贴发送即可~');
} }
/** /**

View File

@ -255,7 +255,7 @@ class InvitePage extends StatelessWidget {
fontWeight: FontWeight.w500), fontWeight: FontWeight.w500),
)), )),
Text( Text(
data['inviter_name'], data['invitee_name'] ?? '',
style: TextStyle( style: TextStyle(
color: Color(0xff0DF5F7), color: Color(0xff0DF5F7),
fontSize: 16.sp, fontSize: 16.sp,
@ -488,7 +488,7 @@ class InvitePage extends StatelessWidget {
margin: margin:
EdgeInsets.only(top: 10.sp), EdgeInsets.only(top: 10.sp),
child: Text( child: Text(
'直接', '直接',
style: TextStyle( style: TextStyle(
color: Color(0xFFF7FAFA), color: Color(0xFFF7FAFA),
fontSize: 12.sp), fontSize: 12.sp),
@ -764,7 +764,7 @@ class InvitePage extends StatelessWidget {
color: Color(0x0AFFFFFF), color: Color(0x0AFFFFFF),
), ),
Expanded( Expanded(
child: infoText('直接'), child: infoText('直接'),
flex: 1, flex: 1,
), ),
Container( Container(

View File

@ -226,24 +226,26 @@ class Complete_materialLogic extends GetxController {
} else if(state.textEditingController.text.length>6){ } else if(state.textEditingController.text.length>6){
showOKToast('昵称最多输入6个字'); showOKToast('昵称最多输入6个字');
return; return;
}else if (state.sex.isEmpty) { }
showOKToast('请选择您的角色'); // else if (state.sex.isEmpty) {
return; // showOKToast('请选择您的角色');
} else if (state.age.isEmpty) { // return;
showOKToast('请选择您的年龄'); // } else if (state.age.isEmpty) {
return; // showOKToast('请选择您的年龄');
} else if (state.city.isEmpty) { // return;
showOKToast('请选择您的常驻城市'); // } else if (state.city.isEmpty) {
return; // showOKToast('请选择您的常驻城市');
} else if (state.role.isEmpty) { // return;
// }
else if (state.role.isEmpty) {
showOKToast('请选择您的属性'); showOKToast('请选择您的属性');
return; return;
} else if (state.orientation.isEmpty) { } else if (state.orientation.isEmpty) {
showOKToast('请选择您的取向'); showOKToast('请选择您的取向');
return; return;
} else if (numbers.isEmpty) { } else if (numbers.isEmpty) {
showOKToast('请选择您的兴趣'); showOKToast('请选择您的兴趣圈子');
// return; return;
} else if (state.descEditingController.text.isEmpty) { } else if (state.descEditingController.text.isEmpty) {
showOKToast('请输入您的交友宣言'); showOKToast('请输入您的交友宣言');
return; return;
@ -270,8 +272,8 @@ class Complete_materialLogic extends GetxController {
} }
}); });
if(genderTagList.isEmpty){ if(genderTagList.isEmpty){
showOKToast("请点击选择你想认识的人"); // showOKToast("请点击选择你想认识的人");
return; // return;
} }
// LatLng location = await getLocation(); // LatLng location = await getLocation();
@ -279,15 +281,27 @@ class Complete_materialLogic extends GetxController {
numbers.forEach((element) { numbers.forEach((element) {
interestsList.add(element.id); interestsList.add(element.id);
}); });
if (state.brithday.isEmpty) {
var date = PDuration.now();
PDuration p =
PDuration(year: date.year! - 20, month: date.month, day: date.day);
String month = p.month! < 10 ? '0${p.month!}' : p.month!.toString();
String day = p.day! < 10 ? '0${p.day!}' : p.day!.toString();
var time = '${p.year}-$month-$day';
state.brithday = time;
}
var data = await DioManager.instance.put(url: Api.UpdataUserInfo, params: { var data = await DioManager.instance.put(url: Api.UpdataUserInfo, params: {
'avatar_url': headUrl, 'avatar_url': headUrl,
'birthday': state.brithday, 'birthday': state.brithday,
'gender': state.genderId, // 'gender': state.genderId.isNotEmpty ? state.genderId : '2', //
'role': state.roleId, //Int 'role': state.roleId, //Int
'interests': interestsList, // 'interests': interestsList, //
'orientation': state.orientationId, //Int 'orientation': state.orientationId, //Int
'city':state.city, 'city':state.city.isNotEmpty ? state.city : '上海市',
'orientations':genderTagList, 'orientations':genderTagList.isEmpty ? [2] : genderTagList,
// 'lat': location.latitude, // 'lat': location.latitude,
// 'lng': location.longitude, // 'lng': location.longitude,
'nickname': state.textEditingController.text.trim(), 'nickname': state.textEditingController.text.trim(),
@ -327,7 +341,7 @@ class Complete_materialLogic extends GetxController {
showOKToast('请选择您的取向'); showOKToast('请选择您的取向');
return; return;
} else if (numbers.isEmpty) { } else if (numbers.isEmpty) {
showOKToast('请选择您的兴趣'); showOKToast('请选择您的兴趣圈子');
// return; // return;
} else if (state.descEditingController.text.isEmpty) { } else if (state.descEditingController.text.isEmpty) {
showOKToast('请输入您的交友宣言'); showOKToast('请输入您的交友宣言');
@ -393,6 +407,8 @@ class Complete_materialLogic extends GetxController {
numbers.forEach((element) { numbers.forEach((element) {
interestsList.add(element.id); interestsList.add(element.id);
}); });
var data = await DioManager.instance.put(url: Api.UpdataUserInfo, params: { var data = await DioManager.instance.put(url: Api.UpdataUserInfo, params: {
'avatar_url': headUrl, 'avatar_url': headUrl,
'birthday': state.brithday, 'birthday': state.brithday,

View File

@ -241,7 +241,7 @@ class _Complete_materialPageState extends State<Complete_materialPage> {
showOrientationPiker(context, controller); showOrientationPiker(context, controller);
}), }),
funcWidget( funcWidget(
'兴趣', '兴趣圈子',
Container( Container(
child: Row( child: Row(
children: controller.numbers.isNotEmpty children: controller.numbers.isNotEmpty

View File

@ -1176,8 +1176,9 @@ class _TIMConversationState extends TIMUIKitState<TIMConversation> {
setState(() {}); setState(() {});
} }
} else { } else {
if ((data['code'] == 21201 || data['code'] == 21202) && recommendCircleFriendData.isNotEmpty) {
showOKToast(data['msg']); showOKToast(data['msg']);
if (data['code'] == 21201 || data['code'] == 21202) {
showVipDialog(); showVipDialog();
} }
} }

View File

@ -37,19 +37,33 @@ class Sys_notify_listPage extends StatelessWidget {
backgroundColor: Colors.transparent, backgroundColor: Colors.transparent,
appBar: MyAppBar( appBar: MyAppBar(
centerTitle: logic.con != null ? logic.con!.showName! ?? '' : '', centerTitle: logic.con != null ? logic.con!.showName! ?? '' : '',
actionWdiget: logic.con != null ? logic.con!.showName == '活动驿站' ? InkWell( actionWdiget: logic.con != null
? logic.con!.showName == '活动驿站'
? InkWell(
onTap: () { onTap: () {
var con; var con;
if (kDebugMode) { if (kDebugMode) {
con = V2TimConversation( con = V2TimConversation(
conversationID: "c2c_qpqz_dev_10_102", userID: "qpqz_dev_10_102", showName: "测试乐园客服", type: 1); conversationID: "c2c_qpqz_dev_10_102",
userID: "qpqz_dev_10_102",
showName: "测试乐园客服",
type: 1);
} else { } else {
con = V2TimConversation( con = V2TimConversation(
conversationID: "c2c_qpqz_prod_10_102", userID: "qpqz_prod_10_102", showName: "乐园客服", type: 1); conversationID: "c2c_qpqz_prod_10_102",
userID: "qpqz_prod_10_102",
showName: "乐园客服",
type: 1);
} }
Get.toNamed(AppRoutes.Chat, arguments: con); Get.toNamed(AppRoutes.Chat, arguments: con);
}, },
child: Text('联系客服',style: TextStyle(color: Colors.white,fontSize: 15.sp),)) : Container() : Container(), child: Text(
'联系客服',
style:
TextStyle(color: Colors.white, fontSize: 15.sp),
))
: Container()
: Container(),
), ),
body: Container( body: Container(
width: Get.width, width: Get.width,
@ -230,8 +244,10 @@ class Sys_notify_listPage extends StatelessWidget {
width: 160.sp, width: 160.sp,
child: GestureDetector( child: GestureDetector(
onTap: () { onTap: () {
Get.toNamed(AppRoutes.SeriesPage, Get.toNamed(AppRoutes.SeriesPage, arguments: {
arguments: {'id':logic.serieslists[index]['id'].toString(),'title':logic.serieslists[index]['name'] }); 'id': logic.serieslists[index]['id'].toString(),
'title': logic.serieslists[index]['name']
});
}, },
child: seriesWidget(logic.serieslists[index]), child: seriesWidget(logic.serieslists[index]),
), ),
@ -510,7 +526,25 @@ class Sys_notify_listPage extends StatelessWidget {
fontWeight: FontWeight.w500), fontWeight: FontWeight.w500),
), ),
), ),
Row( GestureDetector(
onTap: () async {
if (data.scene == 'url') {
Map<String, dynamic> bean = json.decode(data.note!);
String url = bean['url'];
Get.toNamed(AppRoutes.WebViewActivity,
arguments: {'title': "", "url": url});
} else {
if (data.note == null) {
// Map<String, dynamic> bean = json.decode(data.note!);
pushPage(data.scene!, '');
} else {
Map<String, dynamic> bean = json.decode(data.note!);
pushPage(data.scene!, bean['param']);
}
}
},
child: Row(
children: [ children: [
CachedNetworkImage( CachedNetworkImage(
imageUrl: con.faceUrl!, imageUrl: con.faceUrl!,
@ -531,7 +565,7 @@ class Sys_notify_listPage extends StatelessWidget {
], ],
) )
], ],
), )),
], ],
), ),
); );

View File

@ -751,7 +751,9 @@ class _CircleShareState extends State<CircleShare> {
String username, String username,
) { ) {
Clipboard.setData(ClipboardData( Clipboard.setData(ClipboardData(
text: '${username}】邀请你加入“微乐园”,邀请码为${widget.code},点击进入${widget.link!} 这是一款专为各种特色小众圈子爱好者打造的交友平台,资质齐全,安全正规。在这里,能看到很多没听说过的圈子,也能发现很多为数不多的真实情怀,还能见证小众亚文化在生活方式上的新体验。真实、安全、私密、走心,我和很多圈友都在玩哦~')); text: '${username}】邀请你加入“微乐园”,邀请码为${widget.code},点击进入${widget.link!} '
'这是一款专为各种特色小众圈子爱好者打造的交友平台,资质齐全,安全正规。'
'在这里,能看到很多没听说过的圈子,也能发现很多为数不多的真实情怀,还能见证小众亚文化在生活方式上的新体验。真实、安全、私密、走心,我和很多圈友都在玩哦~'));
showOKToast('您已成功复制分享链接,前往对应平台粘贴发送即可~'); showOKToast('您已成功复制分享链接,前往对应平台粘贴发送即可~');
} }
/** /**

View File

@ -12,6 +12,10 @@ import '../../util/util.dart';
import '../colors/app_color.dart'; import '../colors/app_color.dart';
class TodayPeopleDialog extends StatefulWidget { class TodayPeopleDialog extends StatefulWidget {
bool isShow;
TodayPeopleDialog({super.key,this.isShow = false});
@override @override
_TodayPeopleDialogState createState() => new _TodayPeopleDialogState(); _TodayPeopleDialogState createState() => new _TodayPeopleDialogState();
} }
@ -42,11 +46,15 @@ class _TodayPeopleDialogState extends State<TodayPeopleDialog> {
} }
} }
} else { } else {
if (widget.isShow) {
showOKToast(data['msg']); showOKToast(data['msg']);
Get.back(); Get.back();
if (data['code'] == 21201 || data['code'] == 21202) { if (data['code'] == 21201 || data['code'] == 21202) {
showVipDialog(); showVipDialog();
} }
} else {
Get.back();
}
} }
} }
@ -511,7 +519,7 @@ class _TodayPeopleDialogState extends State<TodayPeopleDialog> {
Get.back(); Get.back();
}, },
child: Scaffold( child: Scaffold(
backgroundColor: Colors.black.withOpacity(0.75), backgroundColor: recommendCircleFriendData.isNotEmpty ? Colors.black.withOpacity(0.75) : Colors.transparent,
body: recommendCircleFriendData.isNotEmpty body: recommendCircleFriendData.isNotEmpty
? Column( ? Column(
mainAxisAlignment: MainAxisAlignment.center, mainAxisAlignment: MainAxisAlignment.center,

View File

@ -941,7 +941,7 @@ checkPhotosStatus() async {
content: content:
SingleChildScrollView( SingleChildScrollView(
child: ListBody( child: ListBody(
children: <Widget>[Text("请开启相册权限以上传图片")], children: <Widget>[Text("请开启相册权限以上传图片/视频")],
), ),
), ),
actions: <Widget>[ actions: <Widget>[