jack 8 years ago
parent
commit
7358f0474a
1 changed files with 3 additions and 3 deletions
  1. 3 3
      app/js/professorArticle.js

+ 3 - 3
app/js/professorArticle.js

245
			show: {
245
			show: {
246
				aniShow: "slide-in-bottom"
246
				aniShow: "slide-in-bottom"
247
			},
247
			},
248
			extra: {
248
			extras: {
249
				flag: 1
249
				flag: 1
250
			}
250
			}
251
		});
251
		});
270
					"operateId": userid,
270
					"operateId": userid,
271
					"articleId": proId
271
					"articleId": proId
272
				},
272
				},
273
				success: function(data) {oThumsflag="1"
273
				success: function(data) {
274
					if(data.success) {
274
					if(data.success) {
275
						if(data.data==null){
275
						if(data.data==null){
276
							document.getElementById("appreciate").classList.add("icon-appreciate");
276
							document.getElementById("appreciate").classList.add("icon-appreciate");
344
			});
344
			});
345
		}
345
		}
346
	}
346
	}
347
		document.getElementById("collect").addEventListener("click", function() {
347
		document.getElementById("collect").addEventListener("tap", function() {
348
	var userid = plus.storage.getItem('userid');
348
	var userid = plus.storage.getItem('userid');
349
	oCollectFlag = this.getAttribute("collectFlag");
349
	oCollectFlag = this.getAttribute("collectFlag");
350
	if(!userid) {
350
	if(!userid) {