推送代码
This commit is contained in:
@@ -25,7 +25,7 @@ document.addEventListener("plusready", function() {
|
|||||||
});
|
});
|
||||||
} else if (payload.type == "2") {
|
} else if (payload.type == "2") {
|
||||||
plus.ui.alert(title+"\n"+content,function(){
|
plus.ui.alert(title+"\n"+content,function(){
|
||||||
openUrl(basePath+'/message/openView?url='+payload.url);
|
openUrl(BASE_PATH+'/message/openView?url='+payload.url);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
@@ -59,7 +59,7 @@ document.addEventListener("plusready", function() {
|
|||||||
});
|
});
|
||||||
} else if (payload.type == "2") {
|
} else if (payload.type == "2") {
|
||||||
plus.ui.alert(title+"\n"+content,function(){
|
plus.ui.alert(title+"\n"+content,function(){
|
||||||
openUrl(basePath+'/message/openView?url='+payload.url);
|
openUrl(BASE_PATH+'/message/openView?url='+payload.url);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}, false);
|
}, false);
|
||||||
|
|||||||
@@ -29,6 +29,7 @@
|
|||||||
</nav>
|
</nav>
|
||||||
<script src="js/mui.min.js"></script>
|
<script src="js/mui.min.js"></script>
|
||||||
<script src="config.js"></script>
|
<script src="config.js"></script>
|
||||||
|
<script src="js/push-common.js"></script>
|
||||||
<script type="text/javascript" charset="utf-8">
|
<script type="text/javascript" charset="utf-8">
|
||||||
document.getElementById("quotations").setAttribute("href", BASE_PATH + '/quotations/index');
|
document.getElementById("quotations").setAttribute("href", BASE_PATH + '/quotations/index');
|
||||||
document.getElementById("selfInfo").setAttribute("href", BASE_PATH + '/selfInfo/index');
|
document.getElementById("selfInfo").setAttribute("href", BASE_PATH + '/selfInfo/index');
|
||||||
|
|||||||
Reference in New Issue
Block a user