去掉测试部分

This commit is contained in:
2018-03-30 16:12:56 +08:00
parent 58557eb6f3
commit f8142b514f
+10 -10
View File
@@ -116,8 +116,8 @@ $.config = {router: false}
<script type="text/javascript" src="../../js/shara/sharaMine.js" ></script>
<script>
//document.addEventListener('plusready', onPlusReady, false);
var id= "186182250936643584";
document.addEventListener('plusready', onPlusReady, false);
var id;//= "186182250936643584";
var shareUrl = BASE_PATH+"/news/newDetail?newsId=";
var sharehrefTitle = "停车坐爱枫林晚,霜叶红于二月花";
var sharehrefDes = "客观里面请!";
@@ -156,11 +156,11 @@ var vm = new Vue({
})
//function onPlusReady() {
// var self = plus.webview.currentWebview();
// id = self.newsId;
// shareId = id
// shareUrl = shareUrl+id
function onPlusReady() {
var self = plus.webview.currentWebview();
id = self.newsId;
shareId = id
shareUrl = shareUrl+id
$.ajax({
type : 'get',
url : BASE_PATH + "/rest/news/detail",
@@ -196,9 +196,9 @@ var vm = new Vue({
error:function(){
}
})
// getPosition();
// updateSerivces();
//}
getPosition();
updateSerivces();
}