12 changed files with 345 additions and 52 deletions
Split View
Diff Options
-
46lib/controller/discover/room_controller.dart
-
22lib/controller/mine/login_controller.dart
-
4lib/model/discover/task_data.dart
-
18lib/model/mine/sys_data.dart
-
3lib/network/api_urls.dart
-
4lib/network/user_api.dart
-
31lib/network/user_api.g.dart
-
60lib/pages/mine/contact_page.dart
-
32lib/pages/mine/login_page.dart
-
76lib/widget/live/audience_item.dart
-
90lib/widget/live/live_room_anchor_showcase.dart
-
11lib/widget/live/live_room_invitation_list.dart
@ -0,0 +1,18 @@ |
|||
class SysData { |
|||
String? customerServiceWeChat; |
|||
String? customerServicePhone; |
|||
|
|||
SysData({this.customerServiceWeChat, this.customerServicePhone}); |
|||
|
|||
SysData.fromJson(Map<String, dynamic> json) { |
|||
customerServiceWeChat = json['customerServiceWeChat']; |
|||
customerServicePhone = json['customerServicePhone']; |
|||
} |
|||
|
|||
Map<String, dynamic> toJson() { |
|||
final Map<String, dynamic> data = new Map<String, dynamic>(); |
|||
data['customerServiceWeChat'] = this.customerServiceWeChat; |
|||
data['customerServicePhone'] = this.customerServicePhone; |
|||
return data; |
|||
} |
|||
} |
|||
@ -0,0 +1,60 @@ |
|||
import 'package:cached_network_image/cached_network_image.dart'; |
|||
import 'package:dating_touchme_app/components/page_appbar.dart'; |
|||
import 'package:flutter/material.dart'; |
|||
import 'package:flutter_screenutil/flutter_screenutil.dart'; |
|||
|
|||
class ContactPage extends StatelessWidget { |
|||
String phone; |
|||
String weChat; |
|||
ContactPage({ |
|||
super.key, |
|||
this.phone = "", |
|||
this.weChat = "", |
|||
}); |
|||
|
|||
@override |
|||
Widget build(BuildContext context) { |
|||
return Scaffold( |
|||
appBar: PageAppbar(title: "联系方式"), |
|||
body: Container( |
|||
width: 375.w, |
|||
padding: EdgeInsets.symmetric( |
|||
vertical: 20.w, |
|||
horizontal: 15.w |
|||
), |
|||
child: phone != "" ? Text( |
|||
"您好,人工客服热线为$phone\n工作时间9:00~21:00,请您在服务时间内拨打", |
|||
style: TextStyle( |
|||
fontSize: 14.w, |
|||
), |
|||
) : Column( |
|||
children: [ |
|||
Text( |
|||
"您好,请扫一扫上面的二维码,添加客服微信,工作时间9:00~21:00,请您在服务时间内联系客服", |
|||
style: TextStyle( |
|||
fontSize: 14.w |
|||
), |
|||
), |
|||
Expanded( |
|||
child: CachedNetworkImage( |
|||
imageUrl: weChat, |
|||
width: 345.w, |
|||
fit: BoxFit.cover, |
|||
alignment: Alignment.topCenter, |
|||
|
|||
imageBuilder: (context, imageProvider) => Container( |
|||
decoration: BoxDecoration( |
|||
image: DecorationImage( |
|||
image: imageProvider, |
|||
fit: BoxFit.fitWidth, |
|||
), |
|||
), |
|||
), |
|||
), |
|||
) |
|||
], |
|||
), |
|||
), |
|||
); |
|||
} |
|||
} |
|||
Write
Preview
Loading…
Cancel
Save