Przeglądaj źródła

消息推送修改

jack 7 lat temu
rodzic
commit
9a3257173e
3 zmienionych plików z 18 dodań i 7 usunięć
  1. 0 1
      app/html/login.html
  2. 16 4
      app/index.html
  3. 2 2
      app/js/consultlistNew.js

+ 0 - 1
app/html/login.html

@ -48,7 +48,6 @@
48 48
		<script src="../js/public/base.js"></script>
49 49
		<script src="../js/login.js"></script>
50 50
		<script src="../js/weChatlogin.js"></script>
51
		<script type="text/javascript" src="http://192.168.3.56:8020/HelloHBuilder/apt.js"></script>
52 51
		<script type="text/javascript">
53 52
	    	var anos=ifiosAmdandroid();
54 53
			function focusThis(){

+ 16 - 4
app/index.html

@ -54,11 +54,23 @@
54 54
			self.append(sub);
55 55
		}
56 56
		client1()
57
 		document.addEventListener("plusready", function() {
57
 		if(mui.os.ios) {
58 58
 			plus.push.addEventListener("click", function(msg) {
59 59
 				plus.push.clear();
60
 				//plus.push.remove(plus.push.getAllMessage());
61
 				//plus.push.setAutoNotification(false);
60
 				plus.webview.getLaunchWebview().show();
61
 				plus.webview.getWebviewById("html/consult_home.html").show();
62
 				mui(".mui-tab-item").each(function(index) {
63
 					if(index == 2) {
64
 						this.classList.add("mui-active");
65
 					} else {
66
 						this.classList.remove("mui-active");
67
 					}
68
 				})
69
 			});
70
 		} else {
71

72
 			plus.push.addEventListener("receive", function(msg) {
73
 				//plus.push.clear();
62 74
 				plus.webview.getLaunchWebview().show();
63 75
 				plus.webview.getWebviewById("html/consult_home.html").show();
64 76
 				mui(".mui-tab-item").each(function(index) {
@ -69,7 +81,7 @@
69 81
 					}
70 82
 				})
71 83
 			}, false);
72
 		}, false)
84
 		}
73 85
		window.addEventListener("newId", function(event) {
74 86
			if(event.detail.rd==1) {
75 87
				document.getElementById("meLInum").style.display="block"

+ 2 - 2
app/js/consultlistNew.js

@ -12,13 +12,13 @@ mui.ready(function() {
12 12
		}
13 13
		/*登陆*/
14 14
		window.addEventListener('logined', function(event) {
15
			var userId = event.detail.id;
15
			var userid = event.detail.id;
16 16
			content1.style.display = 'block';
17 17
			content2.style.display = 'none';
18 18
			messageList()
19 19
		});
20 20
		window.addEventListener('exited', function(event) {
21
			var userId = event.detail.id;
21
			var userid = event.detail.id;
22 22
			content1.style.display = 'none';
23 23
			content2.style.display = 'block';
24 24
			document.getElementById('unlogin').style.display = 'block';