jack 8 years ago
parent
commit
3500a36630

+ 16 - 4
app/js/articleShow.js

@ -434,7 +434,19 @@ mui.plusReady(function() {
434 434
	oArticleModule.oAjaxGet(baseUrl + "/ajax/article/query", {
435 435
		articleId: oArticleModule.articleId
436 436
	}, "get", oArticleModule.articleMess);
437

437
	mui.ajax(baseUrl + '/ajax/article/pageViews',{
438
		"type" :  "POST" ,
439
		"dataType" : "json",
440
		"data" :{"articleId":oArticleModule.articleId},
441
		"success" : function(data) {
442
			console.log(data);
443
			if (data.success){
444
			}
445
		},
446
		"error":function(){
447
			
448
		}
449
	});
438 450
	if(oArticleModule.oFlag == 1) {
439 451
		/*企业发布文章信息*/
440 452
		oArticleModule.oAjaxGet(baseUrl + "/ajax/org/" + oArticleModule.oWner, "", "get", oArticleModule.business);
@ -732,7 +744,7 @@ mui.plusReady(function() {
732 744
				shareMessage(share, "WXSceneSession", {
733 745
					content: document.getElementById("articleContent").innerText.substring(0, 70),
734 746
					title: document.getElementById("articleName").innerHTML,
735
					href: baseUrl + "/ekexiu/shareArticalinfor.html?articleId=" + oArticleModule.articleId,
747
					href: baseUrl + "/e/a.html?id=" + oArticleModule.articleId,
736 748
					thumbs: [baseUrl + "/data/article/" + stt + oArticleModule.articleId + "_s.jpg"]
737 749
				});
738 750
			}
@ -742,7 +754,7 @@ mui.plusReady(function() {
742 754
				shareMessage(share, "WXSceneTimeline", {
743 755
					content: document.getElementById("articleContent").innerText.substring(0, 70),
744 756
					title: document.getElementById("articleName").innerHTML,
745
					href: baseUrl + "/ekexiu/shareArticalinfor.html?articleId=" + oArticleModule.articleId,
757
					href: baseUrl + "/e/a.html?id=" + oArticleModule.articleId,
746 758
					thumbs: [baseUrl + "/data/article/" + stt + oArticleModule.articleId + "_s.jpg"]
747 759
				});
748 760
			}
@ -750,7 +762,7 @@ mui.plusReady(function() {
750 762
			var share = buildShareService("sinaweibo");
751 763
			if(share) {
752 764
				shareMessage(share, "sinaweibo", {
753
					href: baseUrl + "/ekexiu/shareArticalinfor.html?articleId=" + oArticleModule.articleId,
765
					href: baseUrl + "/e/a.html?id=" + oArticleModule.articleId,
754 766
					content: document.getElementById("articleName").innerHTML
755 767
				});
756 768
			}

+ 2 - 2
app/js/companybrowse.js

@ -367,7 +367,7 @@ mui.plusReady(function() {
367 367
					shareMessage(share, "WXSceneSession", {
368 368
						content: str,
369 369
						title: "【科袖名片】" + professorName + " " + title + "",
370
						href: baseUrl + "/ekexiu/shareProinfor.html?professorId=" + proId,
370
						href: baseUrl + "/e/p.html?id=" + proId,
371 371
						thumbs: [baseUrl + "/images/head/" + proId + "_m.jpg"]
372 372
					});
373 373
				}
@ -377,7 +377,7 @@ mui.plusReady(function() {
377 377
					shareMessage(share, "WXSceneTimeline", {
378 378
						content: str,
379 379
						title: "【科袖名片】" + professorName + " " + title + "",
380
						href: baseUrl + "/ekexiu/shareProinfor.html?professorId=" + proId,
380
						href: baseUrl + "/e/p.html?id=" + proId,
381 381
						thumbs: [baseUrl + "/images/head/" + proId + "_m.jpg"]
382 382
					});
383 383
				}

+ 3 - 3
app/js/mycard.js

@ -34,7 +34,7 @@ mui.ready(function() {
34 34

35 35
			function makeCode() {
36 36
				var professorId = plus.storage.getItem('userid');
37
				var elurl = baseUrl + "/ekexiu/shareProinfor.html?professorId=" + professorId;
37
				var elurl = baseUrl + "/e/p.html?id=" + professorId;
38 38
				qrcode.makeCode(elurl);
39 39
			}
40 40

@ -66,7 +66,7 @@ mui.ready(function() {
66 66
					shareMessage(share, "WXSceneSession", {
67 67
						content: "研究方向:" + rlist,
68 68
						title: "【科袖名片】" + professorName + " " + professortitle + "",
69
						href: baseUrl + "/ekexiu/shareProinfor.html?professorId=" + professorid,
69
						href: baseUrl + "/e/p.html?id=" + professorid,
70 70
						thumbs: [baseUrl + "/images/head/" + professorid + "_m.jpg"]
71 71
					});
72 72
				}
@ -78,7 +78,7 @@ mui.ready(function() {
78 78
					shareMessage(share, "WXSceneTimeline", {
79 79
						content: "研究方向:" + rlist,
80 80
						title: "【科袖名片】" + professorName + " " + professortitle + "",
81
						href: baseUrl + "/ekexiu/shareProinfor.html?professorId=" + professorid,
81
						href: baseUrl + "/e/p.html?id=" + professorid,
82 82
						thumbs: [baseUrl + "/images/head/" + professorid + "_m.jpg"]
83 83
					});
84 84
				}

+ 2 - 2
app/js/proinfobrow.js

@ -630,7 +630,7 @@ mui.plusReady(function() {
630 630
					shareMessage(share, "WXSceneSession", {
631 631
						content: str,
632 632
						title: "【科袖名片】" + professorName + " " + title + "",
633
						href: baseUrl + "/ekexiu/shareProinfor.html?professorId=" + proId,
633
						href: baseUrl + "/e/p.html?id=" + proId,
634 634
						thumbs: [baseUrl + "/images/head/" + proId + "_m.jpg"]
635 635
					});
636 636
				}
@ -640,7 +640,7 @@ mui.plusReady(function() {
640 640
					shareMessage(share, "WXSceneTimeline", {
641 641
						content: str,
642 642
						title: "【科袖名片】" + professorName + " " + title + "",
643
						href: baseUrl + "/ekexiu/shareProinfor.html?professorId=" + proId,
643
						href: baseUrl + "/e/p.html?id=" + proId,
644 644
						thumbs: [baseUrl + "/images/head/" + proId + "_m.jpg"]
645 645
					});
646 646
				}

+ 2 - 2
app/js/researcherProw.js

@ -365,7 +365,7 @@ mui.plusReady(function() {
365 365
					shareMessage(share, "WXSceneSession", {
366 366
						content: str,
367 367
						title: "【科袖名片】" + professorName + " " + title + "",
368
						href: baseUrl + "/ekexiu/shareProinfor.html?professorId=" + proId,
368
						href: baseUrl + "/e/p.html?id=" + proId,
369 369
						thumbs: [baseUrl + "/images/head/" + proId + "_m.jpg"]
370 370
					});
371 371
				}
@ -375,7 +375,7 @@ mui.plusReady(function() {
375 375
					shareMessage(share, "WXSceneTimeline", {
376 376
						content: str,
377 377
						title: "【科袖名片】" + professorName + " " + title + "",
378
						href: baseUrl + "/ekexiu/shareProinfor.html?professorId=" + proId,
378
						href: baseUrl + "/e/p.html?id=" + proId,
379 379
						thumbs: [baseUrl + "/images/head/" + proId + "_m.jpg"]
380 380
					});
381 381
				}

+ 17 - 3
app/js/resourceShow.js

@ -30,6 +30,20 @@ mui.plusReady(function() {
30 30
	resourceId = self.resourceId;
31 31
	getRecourceMe();/*获取资源信息*/
32 32
	relatedArticles();/*相关文章信息*/
33
	mui.ajax(baseUrl + '/ajax/resource/pageViews',{
34
			"type": "POST",
35
			"dataType": "json",
36
			"data": {
37
				"resourceId": resourceId
38
			},
39
			"success": function(data) {
40
				console.log(data);
41
				if(data.success) {}
42
			},
43
			"error": function() {
44
				
45
			}
46
		});
33 47
	function getRecourceMe() {
34 48
		mui.plusReady(function() {
35 49
			mui.ajax(baseUrl + '/ajax/resource/queryOne', {
@ -611,7 +625,7 @@ mui.plusReady(function() {
611 625
				shareMessage(share, "WXSceneSession", {
612 626
					content: oapplication.innerHTML,
613 627
					title: oresourceName.innerHTML,
614
					href: baseUrl + "/ekexiu/shareResinfor.html?resourceId=" + resourceId,
628
					href: baseUrl + "/e/r.html?id=" + resourceId ; ,
615 629
					thumbs: [firstImg.querySelectorAll("img")[0].getAttribute("src").replace(/.jpg/,"_s.jpg")]
616 630
				});
617 631
			}
@ -621,7 +635,7 @@ mui.plusReady(function() {
621 635
				shareMessage(share, "WXSceneTimeline", {
622 636
					content: oapplication.innerHTML,
623 637
					title: oresourceName.innerHTML,
624
					href: baseUrl + "/ekexiu/shareResinfor.html?resourceId=" + resourceId,
638
					href: baseUrl + "/e/r.html?id=" + resourceId ; ,
625 639
					thumbs: [firstImg.querySelectorAll("img")[0].getAttribute("src").replace(/.jpg/,"_s.jpg") ]
626 640
				});
627 641
			}
@ -631,7 +645,7 @@ mui.plusReady(function() {
631 645
				shareMessage(share, "sinaweibo", {
632 646
					content: oresourceName.innerHTML,
633 647
//					title: oresourceName.innerHTML,
634
					href: baseUrl + "/ekexiu/shareResinfor.html?resourceId=" + resourceId,
648
					href: baseUrl + "/e/r.html?id=" + resourceId ; ,
635 649
//					thumbs: [firstImg.querySelectorAll("img")[0].getAttribute("src").replace(/.jpg/,"_s.jpg") ]
636 650
					
637 651
				});

+ 2 - 2
app/js/studentbrowse.js

@ -328,7 +328,7 @@ mui.plusReady(function() {
328 328
					shareMessage(share, "WXSceneSession", {
329 329
						content: str,
330 330
						title: "【科袖名片】" + professorName + " " + title + "",
331
						href: baseUrl + "/ekexiu/shareProinfor.html?professorId=" + proId,
331
						href: baseUrl + "/e/p.html?id=" + proId,
332 332
						thumbs: [baseUrl + "/images/head/" + proId + "_m.jpg"]
333 333
					});
334 334
				}
@ -338,7 +338,7 @@ mui.plusReady(function() {
338 338
					shareMessage(share, "WXSceneTimeline", {
339 339
						content: str,
340 340
						title: "【科袖名片】" + professorName + " " + title + "",
341
						href: baseUrl + "/ekexiu/shareProinfor.html?professorId=" + proId,
341
						href: baseUrl + "/e/p.html?id=" + proId,
342 342
						thumbs: [baseUrl + "/images/head/" + proId + "_m.jpg"]
343 343
					});
344 344
				}