diff --git a/assets/images/宜宾三江新区城乡融合发展局.png b/assets/images/宜宾三江新区城乡融合发展局.png new file mode 100644 index 0000000..434132d Binary files /dev/null and b/assets/images/宜宾三江新区城乡融合发展局.png differ diff --git a/assets/images/宜宾市兴文生态环境局.png b/assets/images/宜宾市兴文生态环境局.png new file mode 100644 index 0000000..b01d6dd Binary files /dev/null and b/assets/images/宜宾市兴文生态环境局.png differ diff --git a/assets/images/宜宾市南溪生态环境局.png b/assets/images/宜宾市南溪生态环境局.png new file mode 100644 index 0000000..f8f3430 Binary files /dev/null and b/assets/images/宜宾市南溪生态环境局.png differ diff --git a/assets/images/宜宾市叙州生态环境局.png b/assets/images/宜宾市叙州生态环境局.png new file mode 100644 index 0000000..aac0ce0 Binary files /dev/null and b/assets/images/宜宾市叙州生态环境局.png differ diff --git a/assets/images/宜宾市江安生态环境局.png b/assets/images/宜宾市江安生态环境局.png new file mode 100644 index 0000000..7230acc Binary files /dev/null and b/assets/images/宜宾市江安生态环境局.png differ diff --git a/assets/images/宜宾市珙县生态环境局.png b/assets/images/宜宾市珙县生态环境局.png new file mode 100644 index 0000000..0a42487 Binary files /dev/null and b/assets/images/宜宾市珙县生态环境局.png differ diff --git a/assets/images/宜宾市筠连生态环境局.png b/assets/images/宜宾市筠连生态环境局.png new file mode 100644 index 0000000..0b00dd7 Binary files /dev/null and b/assets/images/宜宾市筠连生态环境局.png differ diff --git a/assets/images/宜宾市翠屏生态环境局.png b/assets/images/宜宾市翠屏生态环境局.png new file mode 100644 index 0000000..3cf725b Binary files /dev/null and b/assets/images/宜宾市翠屏生态环境局.png differ diff --git a/assets/images/宜宾市长宁生态环境局.png b/assets/images/宜宾市长宁生态环境局.png new file mode 100644 index 0000000..71446a1 Binary files /dev/null and b/assets/images/宜宾市长宁生态环境局.png differ diff --git a/assets/images/宜宾市高县生态环境局.png b/assets/images/宜宾市高县生态环境局.png new file mode 100644 index 0000000..b287f14 Binary files /dev/null and b/assets/images/宜宾市高县生态环境局.png differ diff --git a/lib/components/UserInfo.dart b/lib/components/UserInfo.dart index c3e7cfc..7e9f057 100644 --- a/lib/components/UserInfo.dart +++ b/lib/components/UserInfo.dart @@ -66,6 +66,7 @@ class UserInfo { qx_name_long = '宜宾市' + trim_county(qx_name); service_tel = '\n服务热线:187-8467-8300'; copyright_info = '© ' + qx_name_long + '生态环境局 四川省踏石科技 版权所有' + service_tel; + official_seal = qx_name_long + '生态环境局' + '.png'; // 区县单位公章 // 中心地址:宜宾市白塔山 center_latitude = 28.77914; // 区县中心纬度 center_longitude = 104.644079; // 区县中心经度 @@ -109,6 +110,11 @@ class UserInfo { qx_name_long = '宜宾' + qx_name; copyright_info = '© ' + qx_name_long + '城乡融合发展局 四川省踏石科技\n版权所有,' + service_tel.substring(1); copyright_info_PinYin = 'YIBIN SANJIANG NEW AREA BLACK SMOKE CAR CAPTURE SYSTEM'; + + // 经测试发现,当images目录下面的图片文件名长度达到14个汉字便会报错,将该文件名称改为“宜宾三江新区城乡融合发展局.png”,编译通过 + // “r:\FlutterProject\FlutterProject61-hyzp_ybqx_with_ios\hyzp_ybqx\assets\images\宜宾三江新区城乡融合发展局.png” + official_seal = qx_name_long + '城乡融合发展局' + '.png'; // 区县单位公章 + // 中心地址: // 点击底图空白处响应:coordinate = {latitude: 28.822633806922394, longitude: 104.75964294854222} center_latitude = 28.822633806922394; // 区县中心纬度 @@ -161,6 +167,7 @@ class UserInfo { default: break; } + print('official_seal = $official_seal'); // official_seal = 宜宾市长宁生态环境局.png } // 去除末尾的区县 diff --git a/lib/components/commonFun.dart b/lib/components/commonFun.dart index 16cc6e1..ffc80a0 100644 --- a/lib/components/commonFun.dart +++ b/lib/components/commonFun.dart @@ -228,6 +228,7 @@ String copyright_info_PinYin = ''; // 区县中心地址 double center_latitude = -1; // 区县中心纬度 double center_longitude = -1; // 区县中心经度 +String official_seal = ''; // 区县单位公章 clear_user_info() { qx_code = -1; diff --git a/lib/pages/Works/HYSH/tsjj_content_new.dart b/lib/pages/Works/HYSH/tsjj_content_new.dart index 868b669..776ac0f 100644 --- a/lib/pages/Works/HYSH/tsjj_content_new.dart +++ b/lib/pages/Works/HYSH/tsjj_content_new.dart @@ -13,6 +13,7 @@ import 'package:keyboard_avoider/keyboard_avoider.dart'; // import '../../../components/commonFun.dart'; + //import 'package:hyzp_ybqx/widget/player_pro_new.dart'; import '../../../components/dioFun.dart'; import '../../../components/doJSON.dart'; @@ -75,6 +76,8 @@ class _LoginPageState extends State with SingleTickerProviderSta try_setState(); //避免如下异常报错 }); + print('official_seal = $official_seal'); + _widthLeft = _screenWidth / 2; getListFlields(); @@ -123,7 +126,8 @@ class _LoginPageState extends State with SingleTickerProviderSta print('_mapTsjjGetTsStatus = $_mapTsjjGetTsStatus'); // 获取网络图片尺寸,getMediaUrl(_mapGetTsjjGetData['pic_url']) - await flustars.WidgetUtil.getImageWH(url: getMediaUrl(_mapGetTsjjGetData['pic_url'])).then((rect) { + await flustars.WidgetUtil.getImageWH(url: getMediaUrl(_mapGetTsjjGetData['pic_url'])) + .then((rect) { if (null != rect) { _radioImage = rect.height / rect.width; print("rect = $rect,_radioImage = $_radioImage"); @@ -915,8 +919,13 @@ class _LoginPageState extends State with SingleTickerProviderSta //color: Colors.black12, decoration: BoxDecoration( //color: Colors.white, + // image: DecorationImage( + // image: AssetImage("assets/images/jkzx_stamp.png"), fit: BoxFit.contain), + // image: DecorationImage( + // image: AssetImage("assets/images/宜宾市长宁生态环境局.png"), fit: BoxFit.contain), image: DecorationImage( - image: AssetImage("assets/images/jkzx_stamp.png"), fit: BoxFit.contain), + image: AssetImage("assets/images/" + official_seal), fit: BoxFit.contain), + ), //child: ),