jack 7 ans auparavant
Parent
commit
90ef242727

+ 1 - 3
app/js/articleShow.js

@ -807,9 +807,7 @@ mui.plusReady(function() {
807 807
			console.log(JSON.stringify(e))
808 808
			plus.nativeUI.closeWaiting();
809 809
			if(e.code == -2) {
810
				plus.nativeUI.toast('已取消分享', {
811
					verticalAlign: 'center'
812
				});
810
			
813 811
			}
814 812
		});
815 813
	}

+ 3 - 4
app/js/cmpInforShow.js

@ -344,14 +344,13 @@ mui.ready(function() {
344 344
			share.send(msg, function() {
345 345
				plus.nativeUI.closeWaiting();
346 346
				if(plus.storage.getItem('userid')) {
347
					shareAddIntegral(2);
347
					//shareAddIntegral(2);
348
					plus.nativeUI.toast("成功分享企业信息", toastStyle);
348 349
				}
349 350
			}, function(e) {
350 351
				plus.nativeUI.closeWaiting();
351 352
				if(e.code == -2) {
352
					plus.nativeUI.toast('已取消分享', {
353
						verticalAlign: 'center'
354
					});
353
					
355 354
				}
356 355
			});
357 356
		}

+ 14 - 4
app/js/moreItem.js

@ -81,16 +81,26 @@ mui.ready(function(){
81 81
		share.send(msg, function() {
82 82
			plus.nativeUI.closeWaiting();
83 83
			if(plus.storage.getItem('userid')) {
84
				shareAddIntegral(3);
84
				if(self.name=="professor") {
85
					shareAddIntegral(1);
86
				}else if(self.name=="resource"){
87
					shareAddIntegral(2);
88
				}else if(self.name=="article"){
89
					shareAddIntegral(3);
90
				}else if(self.name=="org"){
91
					plus.nativeUI.toast("成功分享企业信息", toastStyle);
92
				}else if(self.name=="paper"){
93
					plus.nativeUI.toast("成功分享论文信息", toastStyle);
94
				}else if(self.name=="patent"){
95
					plus.nativeUI.toast("成功分享专利信息", toastStyle);
96
				}
85 97
			}
86 98

87 99
		}, function(e) {
88 100
			console.log(JSON.stringify(e))
89 101
			plus.nativeUI.closeWaiting();
90 102
			if(e.code == -2) {
91
				plus.nativeUI.toast('已取消分享', {
92
					verticalAlign: 'center'
93
				});
103
				
94 104
			}
95 105
		});
96 106
	}

+ 5 - 6
app/js/paperShow.js

@ -205,7 +205,7 @@ mui.plusReady(function() {
205 205
								})
206 206
							} else {
207 207
								var liItem = document.createElement("li");
208
								var otext = (userName == data.data[i].name) ? "是我本人" : "邀请ta加入";
208
								var otext = (userName == data.data[i].name) ? "是我本人" : "邀请";
209 209
								liItem.setAttribute("data-id", data.data[i].professorId);
210 210
								liItem.className = "mui-table-view-cell"
211 211
								var oString = '<div class="flexCenter mui-clearfix" style="width:80%;">'
@ -287,7 +287,7 @@ mui.plusReady(function() {
287 287
					leadIn(that);
288 288
				}
289 289
			})
290
		} else if(this.innerHTML === "邀请ta加入") {
290
		} else if(this.innerHTML === "邀请") {
291 291
			var share = buildShareService("weixin");
292 292
			if(userid) {
293 293
				var our=baseUrl + "/e/I.html?i=" + s16to64(paperId)+"&d="+s16to64(userid)+"&f=1";
@ -613,14 +613,13 @@ mui.plusReady(function() {
613 613
		share.send(msg, function() {
614 614
			plus.nativeUI.closeWaiting();
615 615
			if(plus.storage.getItem('userid')) {
616
				shareAddIntegral(2);
616
				//shareAddIntegral(2);
617
				plus.nativeUI.toast("成功分享论文信息", toastStyle);
617 618
			}
618 619
		}, function(e) {
619 620
			plus.nativeUI.closeWaiting();
620 621
			if(e.code == -2) {
621
				plus.nativeUI.toast('已取消分享', {
622
					verticalAlign: 'center'
623
				});
622
				
624 623
			}
625 624
		});
626 625
	}

+ 5 - 8
app/js/patentShow.js

@ -204,7 +204,7 @@ mui.plusReady(function() {
204 204
								})
205 205
							}else{
206 206
								var liItem = document.createElement("li");
207
								var otext = (userName == data.data[i].name) ? "是我本人" : "邀请ta加入";
207
								var otext = (userName == data.data[i].name) ? "是我本人" : "邀请";
208 208
								liItem.setAttribute("data-id",data.data[i].professorId);
209 209
								liItem.className = "mui-table-view-cell"
210 210
								var oString = '<div class="flexCenter mui-clearfix">'
@ -283,7 +283,7 @@ mui.plusReady(function() {
283 283
					leadIn(that);
284 284
				}
285 285
			})
286
		} else if(this.innerHTML === "邀请ta加入") {
286
		} else if(this.innerHTML === "邀请") {
287 287
			var share = buildShareService("weixin");
288 288
			if(userid) {
289 289
				var our=baseUrl + "/e/I.html?i="+ s16to64(patentId)+"&d="+s16to64(userid);
@ -606,15 +606,12 @@ mui.plusReady(function() {
606 606
		share.send(msg, function() {
607 607
			plus.nativeUI.closeWaiting();
608 608
			if(plus.storage.getItem('userid')) {
609
				shareAddIntegral(2);
609
				//shareAddIntegral(2);
610
				plus.nativeUI.toast("成功分享专利信息", toastStyle);
610 611
			}
611 612
		}, function(e) {
612 613
			plus.nativeUI.closeWaiting();
613
			if(e.code == -2) {
614
				plus.nativeUI.toast('已取消分享', {
615
					verticalAlign: 'center'
616
				});
617
			}
614
			
618 615
		});
619 616
	}
620 617

+ 1 - 3
app/js/resourceShow.js

@ -694,9 +694,7 @@ mui.plusReady(function() {
694 694
		}, function(e) {
695 695
			plus.nativeUI.closeWaiting();
696 696
			if(e.code == -2) {
697
				plus.nativeUI.toast('已取消分享', {
698
					verticalAlign: 'center'
699
				});
697
				
700 698
			}
701 699
		});
702 700
	}

+ 2 - 4
app/js/userInforShow.js

@ -658,16 +658,14 @@ mui.plusReady(function() {
658 658
		share.send(msg, function() {
659 659
			plus.nativeUI.closeWaiting();
660 660
			if(plus.storage.getItem('userid')) {
661
				shareAddIntegral(3);
661
				shareAddIntegral(1);
662 662
			}
663 663

664 664
		}, function(e) {
665 665
			console.log(JSON.stringify(e))
666 666
			plus.nativeUI.closeWaiting();
667 667
			if(e.code == -2) {
668
				plus.nativeUI.toast('已取消分享', {
669
					verticalAlign: 'center'
670
				});
668
				
671 669
			}
672 670
		});
673 671
	}