diff --git a/lib/components/commonFun.dart b/lib/components/commonFun.dart index daacae9..312374d 100644 --- a/lib/components/commonFun.dart +++ b/lib/components/commonFun.dart @@ -46,9 +46,15 @@ import 'UserInfo.dart'; // String yibin_QuXian = '宜宾'; // String copyright_info = '© ' + yibin_QuXian + '市生态环境局 四川省踏石科技有限公司 版权所有' + service_tel; // String copyright_info_PinYin = 'YIBIN BLACK SMOKE CAR CAPTURE SYSTEM'; -// const serviceUrl_ybqx = 'http://125.64.218.67:9904'; +// const serviceUrl_ybqx = 'http://125.64.218.67:9904'; // 宜宾市 +// const serviceUrl_ybqx_media = 'http://125.64.218.67:9908/'; // 宜宾市 + +// 区县后台地址 const serviceUrl_ybqx = 'http://125.64.218.67:9909'; +// 区县的违章图片和视频地址前缀:http://125.64.218.67:9912/ +const serviceUrl_ybqx_media = 'http://125.64.218.67:9912/'; + // 511502、翠屏区 // int qxdm = 511502; // String service_tel = ''; diff --git a/lib/components/hyxx_data_handle.dart b/lib/components/hyxx_data_handle.dart index 5d69f37..7b224af 100644 --- a/lib/components/hyxx_data_handle.dart +++ b/lib/components/hyxx_data_handle.dart @@ -5,6 +5,7 @@ import 'package:flutter/material.dart'; import 'package:flutter_easyrefresh/easy_refresh.dart'; import '../config/service_url.dart'; +import 'commonFun.dart'; double my_fontSize = 16; double my_listTileHeight = 30; @@ -1477,7 +1478,7 @@ String getMediaUrl(String mediaUrl) { while ('/' == mediaUrl[0]) { mediaUrl = mediaUrl.substring(1); } - return ServiceMediaUrl + mediaUrl; + return serviceUrl_ybqx_media + mediaUrl; } //通过点位ip获取点位名称 diff --git a/lib/config/service_url.dart b/lib/config/service_url.dart index 2cb9601..6c78faf 100644 --- a/lib/config/service_url.dart +++ b/lib/config/service_url.dart @@ -14,7 +14,7 @@ //图片视频需要添加前缀:http://125.64.218.67:9908 import 'package:hyzp_ybqx511528_xingwen/components/commonFun.dart'; -const ServiceMediaUrl = 'http://125.64.218.67:9908/'; +//const serviceUrl_ybqx_media = 'http://125.64.218.67:9908/'; //20201222更换为该地址 //http://125.64.218.67:9901/docs.php diff --git a/lib/pages/Works/HYSH/hysh_content_new.dart b/lib/pages/Works/HYSH/hysh_content_new.dart index 88cfde0..4b8407e 100644 --- a/lib/pages/Works/HYSH/hysh_content_new.dart +++ b/lib/pages/Works/HYSH/hysh_content_new.dart @@ -563,9 +563,9 @@ class _HyshPageState extends State with SingleTickerProviderStat Container( width: ScreenUtil().setWidth(1022), //height: ScreenUtil().setHeight(639), - height: ScreenUtil().setHeight(22 + 1022 * (9 / 16)), // 兴文县的违章图片无法获取,暂时调整 - // height: ScreenUtil() - // .setHeight(22 + 1022 * (ratioList.isNotEmpty ? ratioList[index] : 9 / 16)), + // height: ScreenUtil().setHeight(22 + 1022 * (9 / 16)), // 兴文县的违章图片无法获取,暂时调整 + height: ScreenUtil() + .setHeight(22 + 1022 * (ratioList.isNotEmpty ? ratioList[index] : 9 / 16)), decoration: BoxDecoration( //color: Colors.white, borderRadius: BorderRadius.all( @@ -578,10 +578,9 @@ class _HyshPageState extends State with SingleTickerProviderStat top: ScreenUtil().setHeight(11), child: Container( width: ScreenUtil().setWidth(1022), - // height: - // ScreenUtil().setHeight(1022 * (ratioList.isNotEmpty ? ratioList[index] : 9 / 16)), - height: ScreenUtil().setHeight(1022 * (9 / 16)), - // 兴文县的违章图片无法获取,暂时调整 + height: + ScreenUtil().setHeight(1022 * (ratioList.isNotEmpty ? ratioList[index] : 9 / 16)), + // height: ScreenUtil().setHeight(1022 * (9 / 16)), // 兴文县的违章图片无法获取,暂时调整 child: getNetworkImage(getMediaUrl(listGetZpjl[index]['pic_url'])), ), )