|
@ -0,0 +1,34 @@
|
|
1
|
mui.ready(function() {
|
|
2
|
mui.plusReady(function() {
|
|
3
|
client1()
|
|
4
|
if(mui.os.ios) {
|
|
5
|
plus.push.addEventListener("click", function(msg) {
|
|
6
|
plus.push.clear();
|
|
7
|
plus.webview.getLaunchWebview().show();
|
|
8
|
plus.webview.getWebviewById("html/consult_home.html").show();
|
|
9
|
mui(".mui-tab-item").each(function(index) {
|
|
10
|
if(index == 2) {
|
|
11
|
this.classList.add("mui-active");
|
|
12
|
} else {
|
|
13
|
this.classList.remove("mui-active");
|
|
14
|
}
|
|
15
|
})
|
|
16
|
});
|
|
17
|
} else {
|
|
18
|
|
|
19
|
plus.push.addEventListener("receive", function(msg) {
|
|
20
|
//plus.push.clear();
|
|
21
|
plus.webview.getLaunchWebview().show();
|
|
22
|
plus.webview.getWebviewById("html/consult_home.html").show();
|
|
23
|
mui(".mui-tab-item").each(function(index) {
|
|
24
|
if(index == 2) {
|
|
25
|
this.classList.add("mui-active");
|
|
26
|
} else {
|
|
27
|
this.classList.remove("mui-active");
|
|
28
|
}
|
|
29
|
})
|
|
30
|
}, false);
|
|
31
|
}
|
|
32
|
});
|
|
33
|
|
|
34
|
})
|