1.4.3代码提交
This commit is contained in:
parent
2f2c34ed1e
commit
3816b9297a
@ -72,7 +72,7 @@ android {
|
|||||||
minSdkVersion 21
|
minSdkVersion 21
|
||||||
targetSdkVersion flutter.targetSdkVersion
|
targetSdkVersion flutter.targetSdkVersion
|
||||||
versionCode 34
|
versionCode 34
|
||||||
versionName "1.4.2"
|
versionName "1.4.3"
|
||||||
manifestPlaceholders = [
|
manifestPlaceholders = [
|
||||||
vivo_APPID: "105669716",
|
vivo_APPID: "105669716",
|
||||||
vivo_APPKEY:"84f750207787376b310ca5b0d5969122",
|
vivo_APPKEY:"84f750207787376b310ca5b0d5969122",
|
||||||
|
|||||||
@ -381,7 +381,7 @@
|
|||||||
"$(inherited)",
|
"$(inherited)",
|
||||||
"@executable_path/Frameworks",
|
"@executable_path/Frameworks",
|
||||||
);
|
);
|
||||||
MARKETING_VERSION = 1.4.1;
|
MARKETING_VERSION = 1.4.2;
|
||||||
PRODUCT_BUNDLE_IDENTIFIER = com.example.circleapp;
|
PRODUCT_BUNDLE_IDENTIFIER = com.example.circleapp;
|
||||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||||
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator";
|
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator";
|
||||||
@ -530,7 +530,7 @@
|
|||||||
"$(inherited)",
|
"$(inherited)",
|
||||||
"@executable_path/Frameworks",
|
"@executable_path/Frameworks",
|
||||||
);
|
);
|
||||||
MARKETING_VERSION = 1.4.1;
|
MARKETING_VERSION = 1.4.2;
|
||||||
PRODUCT_BUNDLE_IDENTIFIER = com.example.circleapp;
|
PRODUCT_BUNDLE_IDENTIFIER = com.example.circleapp;
|
||||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||||
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator";
|
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator";
|
||||||
@ -573,7 +573,7 @@
|
|||||||
"$(inherited)",
|
"$(inherited)",
|
||||||
"@executable_path/Frameworks",
|
"@executable_path/Frameworks",
|
||||||
);
|
);
|
||||||
MARKETING_VERSION = 1.4.1;
|
MARKETING_VERSION = 1.4.2;
|
||||||
PRODUCT_BUNDLE_IDENTIFIER = com.example.circleapp;
|
PRODUCT_BUNDLE_IDENTIFIER = com.example.circleapp;
|
||||||
PRODUCT_NAME = "$(TARGET_NAME)";
|
PRODUCT_NAME = "$(TARGET_NAME)";
|
||||||
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator";
|
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator";
|
||||||
|
|||||||
@ -773,6 +773,7 @@ class InfoListViewState extends State<InfoListView> with AutomaticKeepAliveClien
|
|||||||
width: Get.width,
|
width: Get.width,
|
||||||
padding: EdgeInsets.only(top: 12.sp, left: 12.sp, right: 12.sp),
|
padding: EdgeInsets.only(top: 12.sp, left: 12.sp, right: 12.sp),
|
||||||
child: Column(
|
child: Column(
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
children: [
|
children: [
|
||||||
SizedBox(
|
SizedBox(
|
||||||
height: 72.sp,
|
height: 72.sp,
|
||||||
|
|||||||
@ -584,6 +584,7 @@ class _LikeViewState extends State<LikeView>
|
|||||||
width: Get.width,
|
width: Get.width,
|
||||||
padding: EdgeInsets.only(top: 12.sp, left: 12.sp, right: 12.sp),
|
padding: EdgeInsets.only(top: 12.sp, left: 12.sp, right: 12.sp),
|
||||||
child: Column(
|
child: Column(
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
children: [
|
children: [
|
||||||
SizedBox(
|
SizedBox(
|
||||||
height: 72.sp,
|
height: 72.sp,
|
||||||
|
|||||||
@ -9,6 +9,11 @@ import 'state.dart';
|
|||||||
class InviteLogic extends GetxController {
|
class InviteLogic extends GetxController {
|
||||||
final InviteState state = InviteState();
|
final InviteState state = InviteState();
|
||||||
bool isLoad = true;
|
bool isLoad = true;
|
||||||
|
|
||||||
|
ScrollController scrollController = ScrollController();
|
||||||
|
|
||||||
|
ScrollController contentScrollController = ScrollController();
|
||||||
|
|
||||||
TextEditingController codeEditingController = TextEditingController();
|
TextEditingController codeEditingController = TextEditingController();
|
||||||
|
|
||||||
Data? homeData;
|
Data? homeData;
|
||||||
@ -23,10 +28,47 @@ class InviteLogic extends GetxController {
|
|||||||
|
|
||||||
int myPage = 1;
|
int myPage = 1;
|
||||||
int otherPage = 1;
|
int otherPage = 1;
|
||||||
|
|
||||||
|
bool isContentScroll = false;
|
||||||
|
|
||||||
|
@override
|
||||||
|
void dispose() {
|
||||||
|
// TODO: implement dispose
|
||||||
|
scrollController.dispose();
|
||||||
|
contentScrollController.dispose();
|
||||||
|
super.dispose();
|
||||||
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
void onInit() {
|
void onInit() {
|
||||||
// TODO: implement onInit
|
// TODO: implement onInit
|
||||||
super.onInit();
|
super.onInit();
|
||||||
|
scrollController.addListener(() {
|
||||||
|
if (scrollController.position.pixels ==
|
||||||
|
scrollController.position.maxScrollExtent) {
|
||||||
|
if (!isContentScroll) {
|
||||||
|
isContentScroll = true;
|
||||||
|
update();
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
if (isContentScroll) {
|
||||||
|
isContentScroll = false;
|
||||||
|
update();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
contentScrollController.addListener(() {
|
||||||
|
if (contentScrollController.offset <=
|
||||||
|
0) {
|
||||||
|
if (isContentScroll) {
|
||||||
|
isContentScroll = false;
|
||||||
|
update();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
loadData();
|
loadData();
|
||||||
loadMyInviteData();
|
loadMyInviteData();
|
||||||
loadAllInviteData();
|
loadAllInviteData();
|
||||||
|
|||||||
@ -437,7 +437,7 @@ 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('您已成功复制分享链接,前往对应平台粘贴发送即可~');
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -23,6 +23,9 @@ class InvitePage extends StatelessWidget {
|
|||||||
final logic = Get.find<InviteLogic>();
|
final logic = Get.find<InviteLogic>();
|
||||||
final state = Get.find<InviteLogic>().state;
|
final state = Get.find<InviteLogic>().state;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Container(
|
return Container(
|
||||||
@ -107,6 +110,7 @@ class InvitePage extends StatelessWidget {
|
|||||||
fit: StackFit.expand,
|
fit: StackFit.expand,
|
||||||
children: [
|
children: [
|
||||||
SingleChildScrollView(
|
SingleChildScrollView(
|
||||||
|
controller: logic.scrollController,
|
||||||
child: Column(children: [
|
child: Column(children: [
|
||||||
Container(
|
Container(
|
||||||
// height: 83.sp,
|
// height: 83.sp,
|
||||||
@ -251,7 +255,7 @@ class InvitePage extends StatelessWidget {
|
|||||||
fontWeight: FontWeight.w500),
|
fontWeight: FontWeight.w500),
|
||||||
)),
|
)),
|
||||||
Text(
|
Text(
|
||||||
data['invitee_name'],
|
data['inviter_name'],
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
color: Color(0xff0DF5F7),
|
color: Color(0xff0DF5F7),
|
||||||
fontSize: 16.sp,
|
fontSize: 16.sp,
|
||||||
@ -535,7 +539,7 @@ class InvitePage extends StatelessWidget {
|
|||||||
Expanded(
|
Expanded(
|
||||||
child: Container(
|
child: Container(
|
||||||
margin: EdgeInsets.only(
|
margin: EdgeInsets.only(
|
||||||
top: 15.sp, left: 20.sp, right: 20.sp,bottom: 10.sp),
|
top: 15.sp, left: 20.sp, right: 20.sp,bottom: logic.selectedIndex == 1 ? 15.sp : 0.sp),
|
||||||
// height: 135.sp,
|
// height: 135.sp,
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: Color(0x99363542),
|
color: Color(0x99363542),
|
||||||
@ -555,6 +559,8 @@ class InvitePage extends StatelessWidget {
|
|||||||
removeTop:true,
|
removeTop:true,
|
||||||
context:context,
|
context:context,
|
||||||
child:ListView.builder(
|
child:ListView.builder(
|
||||||
|
controller: logic.contentScrollController,
|
||||||
|
physics: logic.isContentScroll ? BouncingScrollPhysics() : NeverScrollableScrollPhysics(),
|
||||||
itemBuilder:
|
itemBuilder:
|
||||||
(BuildContext context,
|
(BuildContext context,
|
||||||
int index) {
|
int index) {
|
||||||
@ -600,10 +606,10 @@ class InvitePage extends StatelessWidget {
|
|||||||
data['nickname'],
|
data['nickname'],
|
||||||
data['inviteCount']
|
data['inviteCount']
|
||||||
.toString(),
|
.toString(),
|
||||||
data['vipDays'].toString() +
|
data['vipDaysStr'].toString() +
|
||||||
'天',
|
'天',
|
||||||
'${data['directProfit'] > 0 ? data['directProfit'] : 0}票',
|
'${data['directProfitStr']}票',
|
||||||
'${data['rebate'] > 0 ? data['rebate'] : 0}票',
|
'${data['rebateStr']}票',
|
||||||
data['userId'].toString());
|
data['userId'].toString());
|
||||||
},
|
},
|
||||||
itemCount: logic.selectedIndex ==
|
itemCount: logic.selectedIndex ==
|
||||||
@ -623,7 +629,7 @@ class InvitePage extends StatelessWidget {
|
|||||||
},
|
},
|
||||||
child: Container(
|
child: Container(
|
||||||
margin: EdgeInsets.only(
|
margin: EdgeInsets.only(
|
||||||
top: 15.sp,),
|
top: 5.sp,bottom: 15.sp),
|
||||||
child: Text(
|
child: Text(
|
||||||
'查看更多邀请记录>',
|
'查看更多邀请记录>',
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
@ -919,13 +925,15 @@ class InvitePage extends StatelessWidget {
|
|||||||
// mainAxisAlignment: MainAxisAlignment.spaceAround,
|
// mainAxisAlignment: MainAxisAlignment.spaceAround,
|
||||||
children: [
|
children: [
|
||||||
Expanded(
|
Expanded(
|
||||||
|
flex: 1,
|
||||||
child: GestureDetector(
|
child: GestureDetector(
|
||||||
onTap: () {
|
onTap: () {
|
||||||
|
if (userId == '0') return;
|
||||||
|
|
||||||
Get.toNamed(AppRoutes.UserInfoActivity,
|
Get.toNamed(AppRoutes.UserInfoActivity,
|
||||||
arguments: userId);
|
arguments: userId);
|
||||||
},
|
},
|
||||||
child: infoText(str1, AppColor.mainColor)),
|
child: infoText(str1, AppColor.mainColor)),
|
||||||
flex: 1,
|
|
||||||
),
|
),
|
||||||
Container(
|
Container(
|
||||||
width: 1,
|
width: 1,
|
||||||
|
|||||||
@ -30,7 +30,7 @@ class LoginLogic extends GetxController {
|
|||||||
// TODO: implement onReady
|
// TODO: implement onReady
|
||||||
super.onReady();
|
super.onReady();
|
||||||
FlutterNativeSplash.remove();
|
FlutterNativeSplash.remove();
|
||||||
readClipboardData();
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -76,7 +76,7 @@ class LoginLogic extends GetxController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// 从剪贴板读取信息
|
/// 从剪贴板读取信息
|
||||||
void readClipboardData() async {
|
readClipboardData() async {
|
||||||
var dataText = await Clipboard.getData(Clipboard.kTextPlain);
|
var dataText = await Clipboard.getData(Clipboard.kTextPlain);
|
||||||
if (dataText != null) {
|
if (dataText != null) {
|
||||||
if ((dataText!.text! ?? '').isNotEmpty) {
|
if ((dataText!.text! ?? '').isNotEmpty) {
|
||||||
@ -148,6 +148,11 @@ class LoginLogic extends GetxController {
|
|||||||
Map<String, dynamic> params = {};
|
Map<String, dynamic> params = {};
|
||||||
|
|
||||||
if (loginType == 0) {
|
if (loginType == 0) {
|
||||||
|
if (clipboardStr.isEmpty) {
|
||||||
|
await readClipboardData();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
params = {
|
params = {
|
||||||
"phone": phoneEditingController.text,
|
"phone": phoneEditingController.text,
|
||||||
"code": codeEditingController.text
|
"code": codeEditingController.text
|
||||||
|
|||||||
@ -16,6 +16,8 @@ class Sys_notify_listLogic extends GetxController {
|
|||||||
V2TimConversation? con;
|
V2TimConversation? con;
|
||||||
int page = 1;
|
int page = 1;
|
||||||
|
|
||||||
|
int next = 0;
|
||||||
|
|
||||||
int isVip = 0;
|
int isVip = 0;
|
||||||
bool isLoad = true;
|
bool isLoad = true;
|
||||||
bool isMore = true;
|
bool isMore = true;
|
||||||
@ -143,7 +145,7 @@ class Sys_notify_listLogic extends GetxController {
|
|||||||
|
|
||||||
var data =
|
var data =
|
||||||
await DioManager.instance.get(url: Api.getNotices+ '/${type}', params: {
|
await DioManager.instance.get(url: Api.getNotices+ '/${type}', params: {
|
||||||
'last_id':page > 0 ? page : '','size':'10',
|
'last_id':next,'size':'10',
|
||||||
});
|
});
|
||||||
|
|
||||||
if (data['code'] == 200) {
|
if (data['code'] == 200) {
|
||||||
@ -160,20 +162,21 @@ class Sys_notify_listLogic extends GetxController {
|
|||||||
|
|
||||||
isLoad = false;
|
isLoad = false;
|
||||||
update();
|
update();
|
||||||
if (page == 0) {
|
if (next == 0) {
|
||||||
|
|
||||||
if(lists.isNotEmpty) {
|
if(lists.isNotEmpty) {
|
||||||
page = lists.last.id!;
|
next = lists.last.id!;
|
||||||
}
|
}
|
||||||
refreshController.refreshCompleted();
|
refreshController.refreshCompleted();
|
||||||
} else {
|
} else {
|
||||||
|
next = lists.last.id!;
|
||||||
refreshController.loadComplete();
|
refreshController.loadComplete();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void onRefresh() async {
|
void onRefresh() async {
|
||||||
page = 0;
|
page = 0;
|
||||||
|
next = 0;
|
||||||
initList();
|
initList();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -66,7 +66,7 @@ class Sys_notify_listPage extends StatelessWidget {
|
|||||||
logic.normallists.isNotEmpty
|
logic.normallists.isNotEmpty
|
||||||
? noResultWidget()
|
? noResultWidget()
|
||||||
: logic.msgLists.isNotEmpty ||
|
: logic.msgLists.isNotEmpty ||
|
||||||
logic.serieslists.isEmpty ||
|
logic.serieslists.isNotEmpty ||
|
||||||
logic.normallists.isNotEmpty
|
logic.normallists.isNotEmpty
|
||||||
? SmartRefresher(
|
? SmartRefresher(
|
||||||
controller: logic.refreshController,
|
controller: logic.refreshController,
|
||||||
@ -161,7 +161,7 @@ class Sys_notify_listPage extends StatelessWidget {
|
|||||||
logic.con!.showName == '会员中心'
|
logic.con!.showName == '会员中心'
|
||||||
? '会员中心'
|
? '会员中心'
|
||||||
: logic.con!.showName == '资产中心'
|
: logic.con!.showName == '资产中心'
|
||||||
? '资产中心'
|
? '我的资产'
|
||||||
: '我的圈子',
|
: '我的圈子',
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
color: Colors.white, fontSize: 15.sp),
|
color: Colors.white, fontSize: 15.sp),
|
||||||
|
|||||||
@ -751,8 +751,7 @@ 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!} 这是一款专为各种特色小众圈子爱好者打造的交友平台,资质齐全,安全正规。在这里,能看到很多没听说过的圈子,也能发现很多为数不多的真实情怀,还能见证小众亚文化在生活方式上的新体验。真实、安全、私密、走心,我和很多圈友都在玩哦~'));
|
||||||
'?code=${widget.code}'}'));
|
|
||||||
showOKToast('您已成功复制分享链接,前往对应平台粘贴发送即可~');
|
showOKToast('您已成功复制分享链接,前往对应平台粘贴发送即可~');
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -622,6 +622,14 @@ packages:
|
|||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.1.3"
|
version: "1.1.3"
|
||||||
|
flutter_install_app:
|
||||||
|
dependency: "direct main"
|
||||||
|
description:
|
||||||
|
name: flutter_install_app
|
||||||
|
sha256: "9b117006d17c900e671c26bcbc9b15c7b8efd15d6f9b4442ad5d576de20fab53"
|
||||||
|
url: "https://pub.dev"
|
||||||
|
source: hosted
|
||||||
|
version: "1.3.0"
|
||||||
flutter_intl:
|
flutter_intl:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
|
|||||||
@ -89,7 +89,7 @@ dependencies:
|
|||||||
# 微信SDK插件
|
# 微信SDK插件
|
||||||
fluwx: ^3.8.1+1
|
fluwx: ^3.8.1+1
|
||||||
event_bus: ^2.0.0
|
event_bus: ^2.0.0
|
||||||
# #安装apk
|
#安装apk
|
||||||
flutter_install_app: 1.3.0
|
flutter_install_app: 1.3.0
|
||||||
#闪屏页
|
#闪屏页
|
||||||
flutter_native_splash: 2.2.16
|
flutter_native_splash: 2.2.16
|
||||||
@ -111,6 +111,8 @@ dependencies:
|
|||||||
svgaplayer_flutter: ^2.2.0
|
svgaplayer_flutter: ^2.2.0
|
||||||
#边框渐变
|
#边框渐变
|
||||||
gradient_borders: ^1.0.0
|
gradient_borders: ^1.0.0
|
||||||
|
#系统设置
|
||||||
|
app_settings: ^4.1.16
|
||||||
|
|
||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
flutter_test:
|
flutter_test:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user