hyzp_ybqx-Commit033:已经能够显示违章图片和视频,区县的违章图片和视频地址前缀为:http://125.64.218.67:9912/。只有一处有视频3_6063_20211201_102300_川Q299Y8.mp4,其他违章视频没有:
http://125.64.218.67:9912/new/3_6063_20211201_102300_%E5%B7%9DQ299Y8.mp4
This commit is contained in:
@@ -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 = '';
|
||||
|
||||
@@ -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获取点位名称
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -563,9 +563,9 @@ class _HyshPageState extends State<HyshContentNew> 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<HyshContentNew> 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'])),
|
||||
),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user