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

+ 3 - 3
app/js/moreItem.js

88
				}else if(self.name=="article"){
88
				}else if(self.name=="article"){
89
					shareAddIntegral(3);
89
					shareAddIntegral(3);
90
				}else if(self.name=="org"){
90
				}else if(self.name=="org"){
91
					plus.nativeUI.toast("成功分享企业信息", toastStyle);
91
					shareAddIntegral(4);
92
				}else if(self.name=="paper"){
92
				}else if(self.name=="paper"){
93
					plus.nativeUI.toast("成功分享论文信息", toastStyle);
93
					shareAddIntegral(6);
94
				}else if(self.name=="patent"){
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
				if(msg.content=="赶快认领,上千家企业正在期待与您合作") {
617
				if(msg.content=="赶快认领,上千家企业正在期待与您合作") {
618
					shareAddIntegral(1);
618
					shareAddIntegral(1);
619
				}else{
619
				}else{
620
					plus.nativeUI.toast("成功分享论文信息", toastStyle);
620
					shareAddIntegral(6);
621
				}
621
				}
622
			}
622
			}
623
		}, function(e) {
623
		}, function(e) {

+ 1 - 1
app/js/patentShow.js

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

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

127
	}else if(num==3){
127
	}else if(num==3){
128
		burl = "/ajax/growth/shareArticle";
128
		burl = "/ajax/growth/shareArticle";
129
		title = "成功分享文章信息";
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
	mui.ajax(baseUrl + burl, {
142
	mui.ajax(baseUrl + burl, {
132
		dataType: 'json', //数据格式类型
143
		dataType: 'json', //数据格式类型

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

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