修改苹果审核邀请赚钱显示信息

This commit is contained in:
CYH 2024-06-19 14:18:08 +08:00
parent 931fb699c6
commit 5b654ea840
18 changed files with 55 additions and 147 deletions

View File

@ -586,22 +586,6 @@ class _TIMTextFieldLayoutNarrowState
onTap: () {
showKeyboard = true;
widget.goDownBottom();
widget.textEditingController.value = TextEditingValue(
/// controller.text = "0000"
text: widget.textEditingController.text,
///
selection: TextSelection.fromPosition(
///
TextPosition(
affinity: TextAffinity.downstream,
///
offset: widget.textEditingController.text.length),),);
// = TextEditingController.fromValue(
// ///
// );
setState(() {
showEmojiPanel = false;
showMore = false;

View File

@ -112,16 +112,15 @@ class _ChatPageState extends State<ChatPage> {
isShowTip = true;
// tip = '您还没上传照片,上传后更方便了解,点击前往';
} else {
// bool isMyHave = await loadCallOutListData(userInfoBean!.id!.toString());
// bool isOtherHave = await loadCallOutListData(otherUserBean!.id!.toString());
// if (isOtherHave && !isMyHave) {
// isShowTip = true;
// tip = 'TA发布了喊话您发布后形象会更完善点击前往';
// } else if (otherUserBean!.userType == 1 && userInfoBean!.userType != 1) {
bool isMyHave = await loadCallOutListData(userInfoBean!.id!.toString());
bool isOtherHave = await loadCallOutListData(otherUserBean!.id!.toString());
if (isOtherHave && !isMyHave) {
isShowTip = true;
tip = 'TA发布了喊话您发布后形象会更完善点击前往';
} else if (otherUserBean!.userType == 1 && userInfoBean!.userType != 1) {
isShowTip = true;
tip = 'TA完成了good号认证您认证后可获得多种特权联系客服';
// }
}
}
if (isShowTip) {
//X按钮

View File

@ -50,7 +50,7 @@ class _ChatMsgCardItemState extends State<ChatMsgCardItem> {
var recommendCircleFriendData = data['data'];
List tagList = recommendCircleFriendData['tags'];
if (tagList.isNotEmpty) {
title = tagList.first;
title = tagList.first ?? [];
recommendCircleFriendData['tags'] = tagList;
Map cardInfo = checkCardReturnData(recommendCircleFriendData);
@ -58,7 +58,7 @@ class _ChatMsgCardItemState extends State<ChatMsgCardItem> {
cardInfo['my']= {'signature':info['my']['signature']};
cardInfo['interests'] = info['interests'];
cardInfo['myInterests'] = info['myInterests'];
title = cardInfo['desc'];
title = cardInfo['desc'] ?? '';
info = cardInfo;
} else {
if (recommendCircleFriendData['is_follow_me']) {

View File

@ -888,7 +888,7 @@ class VicinityItemBean {
avatar: json['avatar'],
mark: json['mark'] ?? 0,
joinFlag: json['joinFlag'] ?? '',
signature: json['signature'],
signature: json['signature'] ?? '还没有好的签名哦~',
birthday: json['birthday'],
age: json['age'],
vip: json['vip'],

View File

@ -8,6 +8,7 @@ import 'package:circle_app/circle_app/circle/widgets/new_people.dart';
import 'package:circle_app/circle_app/circle/widgets/vicinity.dart';
import 'package:circle_app/circle_app/dialog/ScreenBottomSheetDialog.dart';
import 'package:circle_app/circle_app/circle/view.dart';
import 'package:circle_app/circle_app/home/logic.dart';
import 'package:circle_app/commons/Widgets/base_tip_widget.dart';
import 'package:circle_app/router/routers.dart';
import 'package:circle_app/utils/eventBus.dart';
@ -51,7 +52,7 @@ class _CirclePageState extends State<CirclePage>
final logic = Get.find<CircleLogic>();
final state = Get.find<CircleLogic>().state;
final homelogic = Get.find<HomeLogic>();
var getContext;
//
@ -629,7 +630,7 @@ class _CirclePageState extends State<CirclePage>
),
SizedBox(width: 2.sp,),
Text(
"邀请赚钱",
homelogic.inventStr,
style: TextStyle(
fontSize: 12.sp,
color: Colors.white,

View File

@ -914,6 +914,7 @@ class InfoListViewState extends State<InfoListView> with AutomaticKeepAliveClien
// margin: EdgeInsets.only(top: 4.sp),
child: descText,
),
if (picHeight > 0)
Container(
height: picHeight,
margin: EdgeInsets.only(top: 5.sp),

View File

@ -47,6 +47,7 @@ class HomeLogic extends GetxController with WidgetsBindingObserver {
User? model;
int currentIndex = 0;
int showMsgTipCount = 0;
String inventStr = '邀请好友';
Widget currentPage = Container();
final HomeState state = HomeState();
@ -90,6 +91,7 @@ class HomeLogic extends GetxController with WidgetsBindingObserver {
unreadSIze.value = '0';
loadEnvTypeData();
await checkInfo();
//
connectListener();
getIMData();
@ -582,6 +584,14 @@ class HomeLogic extends GetxController with WidgetsBindingObserver {
}
});
}
checkInfo() async {
SharedPreferencesHelper sp = await SharedPreferencesHelper.getInstance();
String phone = sp.getString(SharedPreferencesHelper.LOGINPHONE);
if (phone != '18800000100') {
inventStr = '邀请赚钱';
}
}
}
class conTop {

View File

@ -71,7 +71,6 @@ class InviteLogic extends GetxController {
}
}
});
loadStatus();
loadData();
loadMyInviteData();
loadAllInviteData();
@ -127,12 +126,6 @@ class InviteLogic extends GetxController {
}
}
void loadStatus() async {
SharedPreferencesHelper sp = await SharedPreferencesHelper.getInstance();
String phone = sp.getString(SharedPreferencesHelper.LOGINPHONE);
isIventData = phone != '18800000100';
update();
}
}

View File

@ -1,3 +1,4 @@
import 'package:circle_app/circle_app/home/logic.dart';
import 'package:circle_app/circle_app/invite/share.dart';
import 'package:circle_app/circle_app/swiper/view.dart';
import 'package:circle_app/commons/Widgets/rich_text.dart';
@ -21,6 +22,7 @@ class InvitePage extends StatelessWidget {
InvitePage({Key? key}) : super(key: key);
final logic = Get.find<InviteLogic>();
final homeLogic = Get.find<HomeLogic>();
final state = Get.find<InviteLogic>().state;
@override
@ -35,7 +37,7 @@ class InvitePage extends StatelessWidget {
child: Scaffold(
backgroundColor: Colors.transparent,
appBar: MyAppBar(
centerTitle: "邀请赚钱",
centerTitle: homeLogic.inventStr,
actionWdiget: GetBuilder<InviteLogic>(
builder: (logic) {
return !logic.isIventData
@ -298,7 +300,7 @@ class InvitePage extends StatelessWidget {
itemCount: logic.sysData.length,
),
),
if (logic.isIventData)
if (homeLogic.inventStr.contains(''))
Container(
height: 220.sp,
width: Get.width - 30.sp,
@ -422,7 +424,7 @@ class InvitePage extends StatelessWidget {
children: allSpan)))
],
)),
if (logic.isIventData)
if (homeLogic.inventStr.contains(''))
Container(
margin: EdgeInsets.only(
top: 15.sp,
@ -730,7 +732,7 @@ class InvitePage extends StatelessWidget {
)),
alignment: Alignment.center,
child: Text(
'邀请圈友赚钱',
homeLogic.inventStr.contains('') ? '邀请圈友赚钱' : homeLogic.inventStr,
style: TextStyle(
color: Colors.black,
fontSize: 16,
@ -776,7 +778,7 @@ class InvitePage extends StatelessWidget {
)),
alignment: Alignment.center,
child: Text(
'联系客服结算',
homeLogic.inventStr.contains('') ? '联系客服结算' : '联系客服',
style: TextStyle(
color: Colors.black,
fontSize: 16,

View File

@ -251,7 +251,7 @@ class MineResponseBean {
vipExpireDate: json['vip_expire_date'],
vipExpireDays: json['vip_expire_days'],
joininterestcount: json['join_interest_count'],
mainGuideText:json['main_guide_text'],
mainGuideText:json['main_guide_text'],
);

View File

@ -4,6 +4,7 @@ import 'dart:io';
import 'package:cached_network_image/cached_network_image.dart';
import 'package:circle_app/circle_app/circle/view.dart';
import 'package:circle_app/circle_app/home/logic.dart';
import 'package:circle_app/circle_app/msg/view.dart';
import 'package:circle_app/router/routers.dart';
@ -49,7 +50,7 @@ class _MinefragmentPageState extends State<MinefragmentPage> with RouteAware {
final mineLogic = Get.find<MinefragmentLogic>();
final homelogic = Get.find<HomeLogic>();
final state = Get
.find<MinefragmentLogic>()
.state;
@ -357,13 +358,14 @@ class _MinefragmentPageState extends State<MinefragmentPage> with RouteAware {
height: 24.sp,
),
SizedBox(width: 10.sp),
const Text(
"邀请赚钱",
Text(
homelogic.inventStr,
style: TextStyle(color: Colors.white),
),
],
),
Row(
children: [
Container(
@ -374,8 +376,8 @@ class _MinefragmentPageState extends State<MinefragmentPage> with RouteAware {
color: Colors.red,
shape: BoxShape.circle),
),
const Text(
"免费领取会员",
Text(
homelogic.inventStr.contains('') ? "免费领取会员" : '邀请更多圈友一起玩',
style: TextStyle(color: Colors.white60),
),
Image(

View File

@ -388,59 +388,6 @@ class _SwiperPageState extends State<SwiperPage> {
),
],
);
// return Container(
// width: Get.width,
// child: Column(
// mainAxisAlignment: MainAxisAlignment.center,
// children: [
// Stack(
// alignment: Alignment.center,
// children: [
//
// Container(
// // color: Colors.red,
//
// child: CachedImg(
// // progressIndicatorBuilder: (context,str,progress) {
// // return Container();
// // },
// placeholder: (context,str) {
// print(str + '进度');
// if (Get.arguments['index'] == index) {
// return Container(
// // color: Colors.red,
// child: CachedImg(
// imageUrl: logic.imgList[index].toString(),
//
// fit: BoxFit.cover,
// width: Get.width,
// ),
// );
// } else {
// return Container();
// }
// },
// imageUrl: logic.imgList[index].toString().contains('?') ? logic.imgList[index].toString().split('?').first : logic.imgList[index].toString(),
// fit: BoxFit.cover,
// width: Get.width,
// ),
// ),
// Positioned(
// left: 10.sp,
// bottom: 20.sp,
// child: Container(
// margin:
// EdgeInsets.only(top: Get.height * 0.45),
// child: Text(
// '微乐园APP',
// style: TextStyle(
// color: Colors.white, fontSize: 25.sp),
// ),
// ))
// ],
// )
// ],
// ));
}
_saveLocalImage() async {
@ -456,7 +403,6 @@ class _SwiperPageState extends State<SwiperPage> {
await ImageGallerySaver.saveImage(byteData.buffer.asUint8List());
print(result);
SmartDialog.dismiss();
// isSuccess
if (result['isSuccess']) {
showOKToast('保存成功');
} else {
@ -464,36 +410,4 @@ class _SwiperPageState extends State<SwiperPage> {
}
}
}
// Widget build(BuildContext context) {
// return GetBuilder<SwiperLogic>(builder: (logic) {
//
// return Scaffold(
// appBar: null,
// backgroundColor: Colors.black87,
// body: GestureDetector(
// behavior: HitTestBehavior.translucent,
// onTap: (() {
// //
// Navigator.pop(context);
// }),
// child: Swiper(
// controller: logic.swiperController,
// index:logic.index,
// itemBuilder: (BuildContext context, int index) {
// print("img="+logic.imgList[index]);
// // return SizedBox(
// // width: double.infinity,
// // child: Image.network(
// // "${logic.imgList[index]}?imageView2/0/q/60|watermark/2/text/5b6u5LmQ5ZutQVBQ/font/5b6u6L2v6ZuF6buR/fontsize/2160/fill/I0ZGRkZGRg==/dissolve/50/gravity/SouthEast/dx/60/dy/120", fit: BoxFit.contain,)
// // );
// },
// itemCount: logic.imgList.length,
// pagination: SwiperPagination(), //
// // control: new SwiperControl(), //,线
// ),
// ),
// );
// });
// }
}

View File

@ -487,7 +487,7 @@ class UserBean {
contact: json['contact'] ?? '',
contactType: json['contactType'] ?? 0,
age: json['age'],
signature: json['signature'],
signature: json['signature'] ?? '还没有好的签名哦~',
vip: json['vip'],
gender: json['gender'],
role: json['role'],

View File

@ -140,7 +140,7 @@ class World_call_outLogic extends GetxController {
index++;
} else {
isMore = false;
refreshController.refreshCompleted();
refreshController.loadNoData();
}
update();

View File

@ -18,6 +18,7 @@ import '../../commons/colors/app_color.dart';
import '../../router/routers.dart';
import '../../utils/cache_img.dart';
import '../circle/widgets/video_item.dart';
import '../home/logic.dart';
import 'logic.dart';
class WorldCallOutPage extends StatefulWidget {
@ -33,7 +34,7 @@ class _WorldCallOutPageState extends State<WorldCallOutPage>
int? currentCursor;
final logic = Get.put(World_call_outLogic());
final homelogic = Get.find<HomeLogic>();
@override
void dispose() {
///
@ -98,7 +99,7 @@ class _WorldCallOutPageState extends State<WorldCallOutPage>
width: 2.sp,
),
Text(
"邀请赚钱",
homelogic.inventStr,
style: TextStyle(
fontSize: 12.sp,
color: Colors.white,
@ -140,8 +141,10 @@ class _WorldCallOutPageState extends State<WorldCallOutPage>
onRefresh: () {
logic.isNewMsg = false;
logic.index = 1;
logic.lists.clear();
logic.update();
logic.isMore = true;
logic.refreshController.resetNoData();
// logic.lists.clear();
// logic.update();
logic.loadData();
},
enablePullUp: true,

View File

@ -1,6 +1,5 @@
import 'dart:io';
import 'package:circle_app/circle_app/minefragment/logic.dart';
import 'package:circle_app/utils/paymentUtil.dart';
import 'package:circle_app/utils/util.dart';
import 'package:flutter/material.dart';
@ -8,10 +7,8 @@ import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:flutter_swiper/flutter_swiper.dart';
import 'package:get/get.dart';
import '../../../net/api.dart';
import '../../../net/dio_manager.dart';
import '../../../circle_app/home/logic.dart';
import '../../../router/routers.dart';
import '../../../utils/eventBus.dart';
import '../../colors/app_color.dart';
import 'logic.dart';
@ -26,7 +23,7 @@ class Open_vip_tipPage extends StatefulWidget {
class _Open_vip_tipPageState extends State<Open_vip_tipPage> {
final logic = Get.put(Open_vip_tipLogic());
final homelogic = Get.find<HomeLogic>();
final state = Get.find<Open_vip_tipLogic>().state;
Map<String,String> vipImgMap = {
@ -338,7 +335,7 @@ class _Open_vip_tipPageState extends State<Open_vip_tipPage> {
onTap: (){
Get.toNamed(Routes.InvitePage); },
child: Text(
'邀请赚钱',
homelogic.inventStr,
style: TextStyle(
color: const Color(0xff00FFF4),
fontSize: 11.sp,

View File

@ -334,8 +334,8 @@ class _WxEditDialogState extends State<WxEditDialog> {
if (int.parse(moneyEditingController.text) <= 0) {
showOKToast('请设置联系方式解锁金额大于零');
return;
} else if (int.parse(moneyEditingController.text) > 200 || int.parse(moneyEditingController.text) < 1) {
showOKToast('请设置联系方式解锁金额在1元~200元之间');
} else if (int.parse(moneyEditingController.text) > 300 || int.parse(moneyEditingController.text) < 10) {
showOKToast('请设置联系方式解锁金额在10元~200元之间');
return;
}
}

View File

@ -451,4 +451,6 @@ class Api {
//线
static const dayOnline = '/msg-service/im/chat/recommend/dayOnline';
}