hyzp_ybqx-Commit018:解决 hyzp_ybqx00_yibin 页面点击“客服热线”没有响应的问题
This commit is contained in:
@@ -13,6 +13,7 @@ import 'package:hyzp_ybqx00_yibin/pages/tabs/page5_userManager.dart';
|
|||||||
import 'package:hyzp_ybqx00_yibin/widget/JdButton.dart';
|
import 'package:hyzp_ybqx00_yibin/widget/JdButton.dart';
|
||||||
import 'package:package_info/package_info.dart';
|
import 'package:package_info/package_info.dart';
|
||||||
import 'package:path_provider/path_provider.dart';
|
import 'package:path_provider/path_provider.dart';
|
||||||
|
import 'package:url_launcher/url_launcher.dart';
|
||||||
|
|
||||||
import '../../components/commonFun.dart';
|
import '../../components/commonFun.dart';
|
||||||
import '../../components/customDialogF.dart';
|
import '../../components/customDialogF.dart';
|
||||||
@@ -257,27 +258,27 @@ class _Page4_MyMsicsNewState extends State<Page4_MyMsicsNew>
|
|||||||
//crossAxisAlignment: CrossAxisAlignment.start, //用的比较少
|
//crossAxisAlignment: CrossAxisAlignment.start, //用的比较少
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
FlatButton(
|
FlatButton(
|
||||||
child: Container(
|
child: Container(
|
||||||
child: Row(
|
child: Row(
|
||||||
children: [
|
children: [
|
||||||
Padding(
|
Padding(
|
||||||
padding: EdgeInsets.only(top: ScreenUtil().setHeight(10)),
|
padding: EdgeInsets.only(top: ScreenUtil().setHeight(10)),
|
||||||
child: 0 == service_tel.length
|
child: 0 == service_tel.length
|
||||||
? Text("")
|
? Text("")
|
||||||
: Image.asset(
|
: Image.asset(
|
||||||
'assets/images/形状 2.png',
|
'assets/images/形状 2.png',
|
||||||
height: ScreenUtil().setHeight(45),
|
height: ScreenUtil().setHeight(45),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Text(
|
Text(0 == service_tel.length ? " " : " 客服热线",
|
||||||
0 == service_tel.length ? " " : " 客服热线",
|
style: TextStyle(fontSize: 16, color: Colors.white)),
|
||||||
style: TextStyle(fontSize: 16, color: Colors.white)),
|
],
|
||||||
],
|
|
||||||
),
|
|
||||||
),
|
|
||||||
onPressed: () {}
|
|
||||||
// onPressed: () => launch("tel://18784678300"),
|
|
||||||
),
|
),
|
||||||
|
),
|
||||||
|
onPressed: 0 == service_tel.length
|
||||||
|
? onNullFun
|
||||||
|
: () => launch("tel://18784678300"),
|
||||||
|
),
|
||||||
SizedBox(
|
SizedBox(
|
||||||
width: ScreenUtil().setWidth(45),
|
width: ScreenUtil().setWidth(45),
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user