修改缘分匹配重复两次问题
This commit is contained in:
parent
9f3972a8de
commit
c5e5003aa5
@ -426,7 +426,7 @@ class _TIMUIKItHistoryMessageListItemState
|
|||||||
child: Column(
|
child: Column(
|
||||||
children: [
|
children: [
|
||||||
if (info.containsKey('city'))
|
if (info.containsKey('city'))
|
||||||
Container(
|
info['city'].toString().isNotEmpty ? Container(
|
||||||
margin: EdgeInsets.only(top: 10.sp),
|
margin: EdgeInsets.only(top: 10.sp),
|
||||||
child: Row(
|
child: Row(
|
||||||
children: [
|
children: [
|
||||||
@ -447,7 +447,7 @@ class _TIMUIKItHistoryMessageListItemState
|
|||||||
)
|
)
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
) : Container(),
|
||||||
if (info.containsKey('both_interests'))
|
if (info.containsKey('both_interests'))
|
||||||
Container(
|
Container(
|
||||||
|
|
||||||
|
|||||||
@ -275,20 +275,20 @@ class InfoListViewState extends State<InfoListView> with AutomaticKeepAliveClien
|
|||||||
return Container(
|
return Container(
|
||||||
padding: EdgeInsets.only(
|
padding: EdgeInsets.only(
|
||||||
left: 12.sp, right: 12.sp),
|
left: 12.sp, right: 12.sp),
|
||||||
height:urlList.length==0?47.sp: 118.sp,
|
// height:urlList.length==0?47.sp: 118.sp,
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
image: DecorationImage(
|
image: DecorationImage(
|
||||||
fit: BoxFit.fill,
|
fit: BoxFit.fill,
|
||||||
image: AssetImage(
|
image: AssetImage(
|
||||||
getCircleImage('circle_desc')))),
|
getCircleImage('circle_desc')))),
|
||||||
child: Container(
|
child: Container(
|
||||||
margin: EdgeInsets.only(top: 10.sp),
|
margin: EdgeInsets.only(top: 10.sp,bottom: 10.sp),
|
||||||
child: Column(
|
child: Column(
|
||||||
children: [
|
children: [
|
||||||
Container(
|
Container(
|
||||||
margin: EdgeInsets.only(bottom: 7.sp),
|
margin: EdgeInsets.only(bottom: 7.sp),
|
||||||
width: Get.width,
|
width: Get.width,
|
||||||
height: 50.sp,
|
// height: 50.sp,
|
||||||
child: HideText(text: widget.bean.intro,additionText: '查看更多',maxLines: 3,style: TextStyle(color: Colors.white, fontSize: 14.sp),additionStyle: TextStyle(color: const Color(0xFFFF4DF6), fontSize: 14.sp),onTap: () {
|
child: HideText(text: widget.bean.intro,additionText: '查看更多',maxLines: 3,style: TextStyle(color: Colors.white, fontSize: 14.sp),additionStyle: TextStyle(color: const Color(0xFFFF4DF6), fontSize: 14.sp),onTap: () {
|
||||||
_showTextContentDialog(
|
_showTextContentDialog(
|
||||||
context, widget.bean.intro,widget.bean.title);
|
context, widget.bean.intro,widget.bean.title);
|
||||||
|
|||||||
@ -328,8 +328,10 @@ class _TIMConversationState extends TIMUIKitState<TIMConversation> {
|
|||||||
await TencentImSDKPlugin.v2TIMManager.getLoginUser();
|
await TencentImSDKPlugin.v2TIMManager.getLoginUser();
|
||||||
if (getLoginUserRes.code == 0) {
|
if (getLoginUserRes.code == 0) {
|
||||||
//获取成功
|
//获取成功
|
||||||
userIdList.insert(
|
if (getLoginUserRes.data != null) {
|
||||||
0, getLoginUserRes.data!); // getLoginUserRes.data为查询到的登录用户的UserID
|
userIdList.insert(
|
||||||
|
0, getLoginUserRes.data!); // getLoginUserRes.data为查询到的登录用户的UserID
|
||||||
|
}
|
||||||
}
|
}
|
||||||
//获取用户资料
|
//获取用户资料
|
||||||
V2TimValueCallback<List<V2TimUserFullInfo>> getUsersInfoRes =
|
V2TimValueCallback<List<V2TimUserFullInfo>> getUsersInfoRes =
|
||||||
|
|||||||
@ -1,6 +1,10 @@
|
|||||||
import 'dart:math';
|
import 'dart:math';
|
||||||
|
|
||||||
import 'package:circle_app/app/circle/logic.dart';
|
import 'package:circle_app/app/circle/logic.dart';
|
||||||
|
import 'package:circle_app/common/Widgets/open_vip_tip/view.dart';
|
||||||
|
import 'package:circle_app/main.dart';
|
||||||
|
import 'package:circle_app/network/api.dart';
|
||||||
|
import 'package:circle_app/network/dio_manager.dart';
|
||||||
import 'package:circle_app/router/app_routers.dart';
|
import 'package:circle_app/router/app_routers.dart';
|
||||||
import 'package:circle_app/util/util.dart';
|
import 'package:circle_app/util/util.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
@ -16,7 +20,37 @@ import 'logic.dart';
|
|||||||
class MsgPage extends StatelessWidget {
|
class MsgPage extends StatelessWidget {
|
||||||
MsgPage({Key? key}) : super(key: key);
|
MsgPage({Key? key}) : super(key: key);
|
||||||
|
|
||||||
final logic = Get.put(MsgLogic());
|
final ctr = Get.put(MsgLogic());
|
||||||
|
|
||||||
|
|
||||||
|
void getPipeiData() async {
|
||||||
|
var data = await DioManager.instance
|
||||||
|
.get(url: Api.getMatch);
|
||||||
|
if(data['code'] == 200) {
|
||||||
|
//发送消息
|
||||||
|
bool isSuccess = await createCustomMsg(data['data']['account_id'].toString().split('_').last,data['data']['account_id']);
|
||||||
|
if (!isSuccess) {
|
||||||
|
await sendTextMsg(data['data']['account_id']);
|
||||||
|
}
|
||||||
|
} else if(data['code'] == 21201){
|
||||||
|
showOKToast(data['msg']);
|
||||||
|
showRechargeDialog();
|
||||||
|
}else{
|
||||||
|
showOKToast(data['msg']);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
showRechargeDialog(){
|
||||||
|
Get.bottomSheet(
|
||||||
|
Scaffold(
|
||||||
|
backgroundColor: Colors.transparent,
|
||||||
|
body: Open_vip_tipPage(true),
|
||||||
|
),
|
||||||
|
isScrollControlled: true,
|
||||||
|
enableDrag: false);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
@ -37,7 +71,7 @@ class MsgPage extends StatelessWidget {
|
|||||||
child: GetBuilder(builder: (MsgLogic controller) {
|
child: GetBuilder(builder: (MsgLogic controller) {
|
||||||
return Column(
|
return Column(
|
||||||
children: [
|
children: [
|
||||||
navigatorItem(),
|
navigatorItem(controller),
|
||||||
// tipWidget(),
|
// tipWidget(),
|
||||||
// reconmandWidget(),
|
// reconmandWidget(),
|
||||||
// Text(controller.state.msg),
|
// Text(controller.state.msg),
|
||||||
@ -51,7 +85,7 @@ class MsgPage extends StatelessWidget {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
navigatorItem() {
|
navigatorItem(MsgLogic ctr) {
|
||||||
var logic = Get.find<CircleLogic>();
|
var logic = Get.find<CircleLogic>();
|
||||||
String count = '0';
|
String count = '0';
|
||||||
if (logic != null) {
|
if (logic != null) {
|
||||||
@ -143,7 +177,7 @@ class MsgPage extends StatelessWidget {
|
|||||||
right: 0,
|
right: 0,
|
||||||
child: GestureDetector(
|
child: GestureDetector(
|
||||||
onTap: () {
|
onTap: () {
|
||||||
logic.getPipeiData();
|
getPipeiData();
|
||||||
},
|
},
|
||||||
child: Image.asset(
|
child: Image.asset(
|
||||||
getMsgImage('msg_pipei'),
|
getMsgImage('msg_pipei'),
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user