From 15b37526b59841f3f7f0a5a2e6c143a23f26d7c2 Mon Sep 17 00:00:00 2001 From: WinUser01 Date: Sat, 18 Dec 2021 22:00:16 +0800 Subject: [PATCH] =?UTF-8?q?hyzp=5Fybqx-Commit033=EF=BC=9A=E5=B7=B2?= =?UTF-8?q?=E7=BB=8F=E8=83=BD=E5=A4=9F=E6=98=BE=E7=A4=BA=E8=BF=9D=E7=AB=A0?= =?UTF-8?q?=E5=9B=BE=E7=89=87=E5=92=8C=E8=A7=86=E9=A2=91=EF=BC=8C=E5=8C=BA?= =?UTF-8?q?=E5=8E=BF=E7=9A=84=E8=BF=9D=E7=AB=A0=E5=9B=BE=E7=89=87=E5=92=8C?= =?UTF-8?q?=E8=A7=86=E9=A2=91=E5=9C=B0=E5=9D=80=E5=89=8D=E7=BC=80=E4=B8=BA?= =?UTF-8?q?=EF=BC=9Ahttp://125.64.218.67:9912/=E3=80=82=E5=8F=AA=E6=9C=89?= =?UTF-8?q?=E4=B8=80=E5=A4=84=E6=9C=89=E8=A7=86=E9=A2=913=5F6063=5F2021120?= =?UTF-8?q?1=5F102300=5F=E5=B7=9DQ299Y8.mp4=EF=BC=8C=E5=85=B6=E4=BB=96?= =?UTF-8?q?=E8=BF=9D=E7=AB=A0=E8=A7=86=E9=A2=91=E6=B2=A1=E6=9C=89=EF=BC=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit http://125.64.218.67:9912/new/3_6063_20211201_102300_%E5%B7%9DQ299Y8.mp4 --- lib/components/commonFun.dart | 8 +++++++- lib/components/hyxx_data_handle.dart | 3 ++- lib/config/service_url.dart | 2 +- lib/pages/Works/HYSH/hysh_content_new.dart | 13 ++++++------- 4 files changed, 16 insertions(+), 10 deletions(-) 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'])), ), )