|
@ -74,11 +74,13 @@ mui.plusReady(function() {
|
74
|
74
|
success: function(data) {
|
75
|
75
|
var $info = data.data || {};
|
76
|
76
|
if(data.success && data.data) {
|
|
77
|
|
77
|
78
|
plus.nativeUI.closeWaiting();
|
78
|
79
|
plus.webview.currentWebview().show("slide-in-right", 150);
|
79
|
80
|
var articleImg = document.getElementById("articleImg");
|
80
|
81
|
var artical_topic = document.getElementById("artical_topic");
|
81
|
82
|
var main_content = document.getElementById("main_content");
|
|
83
|
document.getElementById("numerCount").innerHTML=$info.articleAgree;
|
82
|
84
|
if(data.data.createTime) {
|
83
|
85
|
var oTime = timeGeshi(data.data.createTime);
|
84
|
86
|
document.getElementById("proRlist").innerText = oTime;
|
|
@ -229,6 +231,38 @@ mui.plusReady(function() {
|
229
|
231
|
console.log(oUrl);
|
230
|
232
|
thums(oUrl);
|
231
|
233
|
})
|
|
234
|
isAgreeArticle();
|
|
235
|
/*查询登录者是否为这篇文章点过赞*/
|
|
236
|
function isAgreeArticle(){
|
|
237
|
if(!userid){
|
|
238
|
return;
|
|
239
|
}
|
|
240
|
mui.ajax(baseUrl + "/ajax/article/isAgree", {
|
|
241
|
type: "GET",
|
|
242
|
timeout: 10000,
|
|
243
|
dataType: "json",
|
|
244
|
data: {
|
|
245
|
"operateId": userid,
|
|
246
|
"articleId": proId
|
|
247
|
},
|
|
248
|
success: function(data) {oThumsflag="1"
|
|
249
|
if(data.success) {
|
|
250
|
if(data.data==null){
|
|
251
|
document.getElementById("appreciate").style.display="block";
|
|
252
|
document.getElementById("appreciatefill").style.display="none";
|
|
253
|
document.getElementById("thumbsUp").setAttribute("oThumsflag","0");
|
|
254
|
}else{
|
|
255
|
document.getElementById("appreciate").style.display="none";
|
|
256
|
document.getElementById("appreciatefill").style.display="block";
|
|
257
|
document.getElementById("thumbsUp").setAttribute("oThumsflag","1");
|
|
258
|
}
|
|
259
|
}
|
|
260
|
},
|
|
261
|
error: function(XMLHttpRequest, textStats, errorThrown) {
|
|
262
|
console.log(JSON.stringify(XMLHttpRequest));
|
|
263
|
}
|
|
264
|
})
|
|
265
|
}
|
232
|
266
|
/*收藏文章*/
|
233
|
267
|
var oCollectFlag;
|
234
|
268
|
|