You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
60 lines
1.7 KiB
60 lines
1.7 KiB
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,
|
|
),
|
|
),
|
|
),
|
|
),
|
|
)
|
|
],
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|