Browse Source

分享企业论文专利及积分

jack 7 years ago
parent
commit
fcf7fa8c94
6 changed files with 26 additions and 6 deletions
  1. 1 1
      app/js/cmpInforShow.js
  2. 3 3
      app/js/moreItem.js
  3. 1 1
      app/js/paperShow.js
  4. 1 1
      app/js/patentShow.js
  5. 11 0
      app/js/public/base.js
  6. 9 0
      app/js/rawards-set.js

+ 1 - 1
app/js/cmpInforShow.js

@ -345,7 +345,7 @@ mui.ready(function() {
345 345
				plus.nativeUI.closeWaiting();
346 346
				if(plus.storage.getItem('userid')) {
347 347
					//shareAddIntegral(2);
348
					plus.nativeUI.toast("成功分享企业信息", toastStyle);
348
					shareAddIntegral(4);
349 349
				}
350 350
			}, function(e) {
351 351
				plus.nativeUI.closeWaiting();

+ 3 - 3
app/js/moreItem.js

@ -88,11 +88,11 @@ mui.ready(function(){
88 88
				}else if(self.name=="article"){
89 89
					shareAddIntegral(3);
90 90
				}else if(self.name=="org"){
91
					plus.nativeUI.toast("成功分享企业信息", toastStyle);
91
					shareAddIntegral(4);
92 92
				}else if(self.name=="paper"){
93
					plus.nativeUI.toast("成功分享论文信息", toastStyle);
93
					shareAddIntegral(6);
94 94
				}else if(self.name=="patent"){
95
					plus.nativeUI.toast("成功分享专利信息", toastStyle);
95
					shareAddIntegral(5);
96 96
				}
97 97
			}
98 98


+ 1 - 1
app/js/paperShow.js

@ -617,7 +617,7 @@ mui.plusReady(function() {
617 617
				if(msg.content=="赶快认领,上千家企业正在期待与您合作") {
618 618
					shareAddIntegral(1);
619 619
				}else{
620
					plus.nativeUI.toast("成功分享论文信息", toastStyle);
620
					shareAddIntegral(6);
621 621
				}
622 622
			}
623 623
		}, function(e) {

+ 1 - 1
app/js/patentShow.js

@ -610,7 +610,7 @@ mui.plusReady(function() {
610 610
				if(msg.content=="赶快认领,上千家企业正在期待与您合作") {
611 611
					shareAddIntegral(1);
612 612
				}else{
613
					plus.nativeUI.toast("成功分享专利信息", toastStyle);
613
					shareAddIntegral(5);
614 614
				}
615 615
			}
616 616
		}, function(e) {

+ 11 - 0
app/js/public/base.js

@ -127,6 +127,17 @@ function shareAddIntegral(num) {
127 127
	}else if(num==3){
128 128
		burl = "/ajax/growth/shareArticle";
129 129
		title = "成功分享文章信息";
130
	}else if(num==4){
131
		burl = "/ajax/growth/shareOrg";
132
		title = "成功分享企业信息";
133
	}
134
	else if(num==5){
135
		burl = "/ajax/growth/sharePatent";
136
		title = "成功分享专利信息";
137
	}
138
	else if(num==6){
139
		burl = "/ajax/growth/sharePaper";
140
		title = "成功分享论文信息";
130 141
	}
131 142
	mui.ajax(baseUrl + burl, {
132 143
		dataType: 'json', //数据格式类型

+ 9 - 0
app/js/rawards-set.js

@ -172,6 +172,15 @@ function datalistEach(datalist) {
172 172
			case "24":
173 173
				operate = "绑定邮箱";
174 174
				break;
175
			case "25":
176
				operate = "分享企业给好友";
177
				break;
178
			case "26":
179
				operate = "分享专利给好友";
180
				break;
181
			case "27":
182
				operate = "分享论文给好友";
183
				break;
175 184
			/*case "101":
176 185
				operate = "成功邀请好友";
177 186
				break;