miaofuhao %!s(int64=7) %!d(string=před) roky
rodič
revize
c9d3995e95

+ 1 - 1
WebAPP/js/huayi.config.js

@@ -4,7 +4,7 @@
4 4
 huayi.config = {
5 5
 	//callcenter_url: "http://192.168.4.18:4030/", //测试内网环境 //后台页面4025
6 6
 	//callcenter_url: "http://117.158.196.116:4013/",
7
-	callcenter_url: "http://192.168.10.12:8889", //睢县正式环境
7
+	callcenter_url: "http://123.13.224.144:8889/", //睢县正式环境
8 8
 	arr: [
9 9
 			"<a class='xg' onclick='ckxq(data)' title='查看'>查看</a>",
10 10
 			"<a class='xg' onclick='bj(data)' title='编辑'>编辑</a>",

+ 48 - 1
WebAPP/personal.html

@@ -578,7 +578,7 @@
578 578
 					$(".rolname").text(data.data.user.rolname);
579 579
 					if(RoleCode == "WLDW") { //承办
580 580
 						$(".Undertake").css('display', 'block');
581
-					} else if(RoleCode == "ZXLD" || RoleCode == "GLY") { //调度
581
+					} else if(RoleCode == "ZXLD" || RoleCode == "GLY"|| RoleCode == "ZXLDGLY") { //调度
582 582
 						$(".Dispatch_").css('display', 'block');
583 583
 					} else if(RoleCode == "EJWLDW") {
584 584
 						$(".Dispatch").css('display', 'block');
@@ -719,6 +719,53 @@
719 719
 					webviewShow.show("slide-in-right", 300); //把新webview窗体显示出来,显示动画效果为速度300毫秒的右侧移入动画
720 720
 				}, false);
721 721
 			})
722
+			var Code_;
723
+			var NewCode_;
724
+			var server = huayi.config.callcenter_url + "ApplicationsRefresh/GetInfo?"; //获取升级描述文件服务器地址
725
+						plus.runtime.getProperty(plus.runtime.appid, function(wgtinfo) {
726
+			               console.log("当前应用版本:"+wgtinfo.version+"---"+plus.runtime.version);
727
+							localStorage.setItem("Code",wgtinfo.version)//缓存保存版本号;
728
+							Code_= localStorage.getItem("Code");
729
+							$('.update').text(Code_);
730
+							
731
+						});
732
+			mui.ajax(server, {
733
+					data: {
734
+						isNew: true,
735
+						token: token
736
+					},
737
+					dataType: 'json', //服务器返回json格式数据
738
+					type: 'post', //HTTP请求类型
739
+					timeout: 10000, //超时时间设置为10秒;
740
+					headers: {
741
+						'Content-Type': 'application/x-www-form-urlencoded; charset=utf-8'
742
+					},
743
+					success: function(data) {
744
+						if(data.state == "success") {
745
+							 NewCode_ = data.data.F_VersionCode;
746
+							localStorage.setItem("Code",NewCode_);	//缓存保存版本号;
747
+//							alert(Code_); 
748
+//							alert(NewCode_);
749
+							if(Code_!= NewCode_){
750
+								var Codes=localStorage.setItem("Code",NewCode_);
751
+								plus.nativeUI.confirm("1:替换老版本引导页", function(event) {
752
+									var tapIndex = event.index;
753
+									if(tapIndex == 0) {
754
+										console.log(data);
755
+										plus.runtime.openURL(data.data.F_DownUrl);
756
+									} else {
757
+										mui.toast("取消更新");
758
+									}
759
+								}, "版本升级提示", ["立即更新", "取消", ])
760
+							}
761
+						}
762
+
763
+					},
764
+					error: function(data) {
765
+						//异常处理;
766
+						console.log(data.message);
767
+					}
768
+				})
722 769
 		})
723 770
 	</script>
724 771
 

binární
WebAPP/unpackage/res/icons/1024x1024.png


binární
WebAPP/unpackage/res/icons/167x167.png


binární
WebAPP/unpackage/res/icons/20x20.png


binární
WebAPP/unpackage/res/icons/60x60.png


+ 4 - 2
WebSite/index.html

@@ -1087,8 +1087,10 @@
1087 1087
 				var curentHost = window.location.protocol + '//' + window.location.host;
1088 1088
 				var clientURL = curentHost + '/download.html?n=' + Math.random();
1089 1089
 				if(clientURL) {
1090
-					$('#elevator-app-url').val(clientURL);
1091
-					getQrcode('elevator-app-qrcode', 'elevator-app-url');
1090
+					$('#elevator-app-url0').val(clientURL);
1091
+	                $('#elevator-app-url').val(clientURL);
1092
+	              	getQrcode('elevator-app-qrcode0', 'elevator-app-url0');
1093
+	                getQrcode('elevator-app-qrcode', 'elevator-app-url');
1092 1094
 
1093 1095
 					function getQrcode(ele1, ele2) {
1094 1096
 						var qrcode = new QRCode(document.getElementById(ele1), {

+ 1 - 2
WebUI/CallCenterWeb.UI/index.html

@@ -2013,11 +2013,10 @@
2013 2013
             dataType: 'json',
2014 2014
             data: {
2015 2015
                 token: $.cookie("token"),
2016
-                name:"宁陵县"
2016
+                name:"商丘市"
2017 2017
             },
2018 2018
             success: function (result) {
2019 2019
                 if (result.state.toLowerCase() == "success") {
2020
-                    
2021 2020
                     var telPhone=result.data[0].F_Phone
2022 2021
                     $(".hw_show").attr("index",telPhone);
2023 2022
                 }