li 7 years ago
parent
commit
3e557ced75

+ 2 - 2
app/html/cmpInforShow.html

87
					</ul>
87
					</ul>
88
				</div>
88
				</div>
89
			</div>
89
			</div>
90
			<div class="mui-input-group mainbox">
91
				<div class="infocontit mui-navigate-right mui-clearfix" id="goCmpBrief">企业介绍 </div>
90
			<div class="mui-input-group mainbox" id="goCmpBrief">
91
				<div class="infocontit mui-navigate-right mui-clearfix">企业介绍 </div>
92
				<div class="infocon">
92
				<div class="infocon">
93
					<span class="breifinfo mui-ellipsis-5" id="breifinfo">
93
					<span class="breifinfo mui-ellipsis-5" id="breifinfo">
94
			        </span>
94
			        </span>

+ 7 - 8
app/html/discoverNew.html

46
			.mui-pull-top-wrapper .mui-icon.mui-reverse {
46
			.mui-pull-top-wrapper .mui-icon.mui-reverse {
47
				-webkit-transform: rotate(180deg) translateZ(0);
47
				-webkit-transform: rotate(180deg) translateZ(0);
48
			}
48
			}
49

50
		</style>
49
		</style>
51
	</head>
50
	</head>
52

51

55
			<div id="slider" class="mui-slider mui-fullscreen">
54
			<div id="slider" class="mui-slider mui-fullscreen">
56
				<div id="sliderSegmentedControl" class="mui-scroll-wrapper mui-slider-indicator mui-segmented-control mui-segmented-control-inverted">
55
				<div id="sliderSegmentedControl" class="mui-scroll-wrapper mui-slider-indicator mui-segmented-control mui-segmented-control-inverted">
57
					<div class="mui-scroll">
56
					<div class="mui-scroll">
58
						<a class="mui-control-item  mui-active" href="#item1mobile" flag="1">最新文章</a>
59
						<a class="mui-control-item" href="#item2mobile">前沿动态</a>
60
						<a class="mui-control-item" href="#item3mobile">学术经验</a>
61
						<a class="mui-control-item" href="#item4mobile">检测分析</a>
62
						<a class="mui-control-item" href="#item5mobile">会议培训</a>
63
						<a class="mui-control-item tab-article" href="#item6mobile">科袖访谈</a>
64
						<a class="mui-control-item tab-article" href="#item7mobile">招聘招生</a>
57
						<a class="mui-control-item  mui-active" href="#item1mobile" flag="1">推荐</a>
58
						<a class="mui-control-item" href="#item2mobile">科研</a>
59
						<a class="mui-control-item" href="#item3mobile">企业</a>
60
						<a class="mui-control-item" href="#item4mobile">智库</a>
61
						<a class="mui-control-item" href="#item5mobile">检测</a>
62
						<a class="mui-control-item tab-article" href="#item6mobile">会议</a>
63
						<a class="mui-control-item tab-article" href="#item7mobile">招聘</a>
65
					</div>
64
					</div>
66
				</div>
65
				</div>
67
				<div class="mui-slider-group">
66
				<div class="mui-slider-group">

+ 6 - 0
app/html/userInforUpdate.html

23
		<!-- 主页面内容容器 -->
23
		<!-- 主页面内容容器 -->
24
    	<div class="mui-content">
24
    	<div class="mui-content">
25
    		<!-- 主界面具体展示内容 -->
25
    		<!-- 主界面具体展示内容 -->
26
    		<div class="mui-input-group">
27
				<div class="infocontit infocontitM OnetitM  mui-clearfix" style="line-height:18px;background-color: rgba(0,0,0,.6);">
28
    				<p style="color:#fff;font-size:12px;padding-top:16px;">登录科袖网站,修改资料更方便</p>
29
    				<p style="color:#fff;font-size:12px;">还可以在工作台发布您的资源、专利、论文和文章</p>
30
    			</div>
31
    		</div>
26
    		<div class="mui-input-group marginbox searchTab">
32
    		<div class="mui-input-group marginbox searchTab">
27
    			<div class="infocontit infocontitM OnetitM mui-navigate-right mui-clearfix">
33
    			<div class="infocontit infocontitM OnetitM mui-navigate-right mui-clearfix">
28
    				<div class="flexCenter mui-clearfix">
34
    				<div class="flexCenter mui-clearfix">

+ 8 - 1
app/html/weChat.html

359
				<img class="msg-user-img msg-user" src="<%=(item.url)%>" alt="" style="border-radius:50%;" />
359
				<img class="msg-user-img msg-user" src="<%=(item.url)%>" alt="" style="border-radius:50%;" />
360
				<!--<i class="msg-user mui-icon mui-icon-person" style="border-radius:50%;" id="hu"></i>-->
360
				<!--<i class="msg-user mui-icon mui-icon-person" style="border-radius:50%;" id="hu"></i>-->
361
				<% } else { %>
361
				<% } else { %>
362
				<img class="msg-user-img" src="<%=(item.url)%>" alt="" style="border-radius:50%;" />
362
				<img class="msg-user-img profe" src="<%=(item.url)%>" alt="" style="border-radius:50%;" />
363
				<% } %>
363
				<% } %>
364
				<div class="msg-content">
364
				<div class="msg-content">
365
					<div class="msg-content-inner">
365
					<div class="msg-content-inner">
431
					plus.webview.currentWebview().setStyle({
431
					plus.webview.currentWebview().setStyle({
432
						softinputMode: "adjustResize"
432
						softinputMode: "adjustResize"
433
					});
433
					});
434
					
434
					var professorId = plus.webview.currentWebview().professorId;
435
					var professorId = plus.webview.currentWebview().professorId;
436
					mui("#msg-list").on("tap",".profe",function(){
437
						plus.webview.create("../html/userInforShow.html", 'userInforShow.html', {}, {proid: professorId}); 
438
					})
435
					document.getElementById("BtnMore").addEventListener("tap", function() {
439
					document.getElementById("BtnMore").addEventListener("tap", function() {
436
						mui.openWindow({
440
						mui.openWindow({
437
							url: '../html/jubao.html',
441
							url: '../html/jubao.html',
473
							type: 'GET',
477
							type: 'GET',
474
							timeout: 10000,
478
							timeout: 10000,
475
							success: function(data) {
479
							success: function(data) {
480
								console.log(professorId +"   11111")
481
								console.log(JSON.stringify(data))
482
								console.log("  6666")
476
								if(data.success && data.data) {
483
								if(data.success && data.data) {
477
									var $info=data.data;
484
									var $info=data.data;
478
									document.getElementById("chatName").innerHTML = data.data.name;
485
									document.getElementById("chatName").innerHTML = data.data.name;

+ 66 - 55
app/js/discoverNew.js

9
			indicators: true, //是否显示滚动条
9
			indicators: true, //是否显示滚动条
10
			deceleration: deceleration
10
			deceleration: deceleration
11
		});
11
		});
12
	var colum= {
13
					"a": "", //最新文章
14
					"3": 3, //前沿动态
15
					"4": 7, //学术经验
16
					"5": 4, //检测分析
17
					"6": 5, //会议培训
18
					"7": 6, //科袖访谈
19
					"8": 8 //招聘招生
20
			}
12
	var pullObj = {
21
	var pullObj = {
13
		"0": 0,
22
		"0": 0,
14
		"1": 0,
23
		"1": 0,
21
	$.ready(function() {
30
	$.ready(function() {
22
		$.plusReady(function() {
31
		$.plusReady(function() {
23
			var columnType = {
32
			var columnType = {
24
				"1": {
25
					fullName: "个人原创",
26
					shortName: "原创"
27
				},
28
				"2": {
29
					fullName: "企业原创",
30
					shortName: "原创"
31
				},
32
				"3": {
33
					fullName: "前沿动态",
34
					shortName: "前沿"
35
				},
36
				"4": {
37
					fullName: "学术经验",
38
					shortName: "经验"
39
				},
40
				"5": {
41
					fullName: "分析检测",
42
					shortName: "检测"
43
				},
44
				"6": {
45
					fullName: "会议培训",
46
					shortName: "会议"
47
				},
48
				"7": {
49
					fullName: "科袖访谈",
50
					shortName: "访谈"
51
				},
52
				"8": {
53
					fullName: "招聘招生",
54
					shortName: "招聘"
55
				},
56
				"9": {
57
					fullName: "重大新闻",
58
					shortName: "新闻"
59
				}
60
			}
33
		"1": {
34
			fullName: "个人原创",
35
			shortName: "原创"
36
		},
37
		"2": {
38
			fullName: "企业原创",
39
			shortName: "原创"
40
		},
41
		"3": {
42
			fullName: "科研",
43
			shortName: "科研"
44
		},
45
		"4": {
46
			fullName: "智库",
47
			shortName: "智库"
48
		},
49
		"5": {
50
			fullName: "检测",
51
			shortName: "检测"
52
		},
53
		"6": {
54
			fullName: "会议",
55
			shortName: "会议"
56
		},
57
		"7": {
58
			fullName: "企业",
59
			shortName: "企业"
60
		},
61
		"8": {
62
			fullName: "招聘",
63
			shortName: "招聘"
64
		},
61
65
66
		"9": {
67
			fullName: "新闻",
68
			shortName: "新闻"
69
		}
70
	}
62
			var oWidth = getViewportSize().width;
71
			var oWidth = getViewportSize().width;
63
72
64
			function getViewportSize() {
73
			function getViewportSize() {
68
				};
77
				};
69
			}
78
			}
70
			for(var n = 0; n < 7; n++) {
79
			for(var n = 0; n < 7; n++) {
71
				document.getElementsByClassName("mui-control-item")[n].style.paddingLeft = (oWidth - 4.5 * 45) / 9 + "px";
72
				document.getElementsByClassName("mui-control-item")[n].style.paddingRight = (oWidth - 4.5 * 45) / 9 + "px";
80
				document.getElementsByClassName("mui-control-item")[n].style.paddingLeft = (oWidth - 5.25 * 30) / 9 + "px";
81
				document.getElementsByClassName("mui-control-item")[n].style.paddingRight = (oWidth - 5.25 * 30) / 9 + "px";
73
			}
82
			}
74
83
75
			function Discover(obj) {
84
			function Discover(obj) {
88
				colum: {
97
				colum: {
89
					"a": "", //最新文章
98
					"a": "", //最新文章
90
					"3": 3, //前沿动态
99
					"3": 3, //前沿动态
91
					"4": 4, //学术经验
92
					"5": 5, //检测分析
93
					"6": 6, //会议培训
94
					"7": 7, //科袖访谈
100
					"4": 7, //学术经验
101
					"5": 4, //检测分析
102
					"6": 5, //会议培训
103
					"7": 6, //科袖访谈
95
					"8": 8 //招聘招生
104
					"8": 8 //招聘招生
96
				},
105
				},
97
				constructor: Discover,
106
				constructor: Discover,
184
										} else {
193
										} else {
185
											pullObj[index] = 1;
194
											pullObj[index] = 1;
186
											_this.pageNo[index] = 1;
195
											_this.pageNo[index] = 1;
196
											
187
											_this.colum[index + 2] = index + 2;
197
											_this.colum[index + 2] = index + 2;
188
198
189
											console.log(new Date().getTime() + "b")
199
											console.log(new Date().getTime() + "b")
190
											$D({
200
											$D({
191
												"fun": _this.createFragment,
201
												"fun": _this.createFragment,
192
												data: {
202
												data: {
193
													col: index ? _this.colum[index + 2] : _this.colum.a,
203
													col: index ? colum[m+2] : _this.colum.a,
194
													pageNo: 1,
204
													pageNo: 1,
195
													exclude: arr,
205
													exclude: arr,
196
												},
206
												},
214
											_this.colum.a = ""
224
											_this.colum.a = ""
215
										} else {
225
										} else {
216
											pa = ++_this.pageNo[index];
226
											pa = ++_this.pageNo[index];
217
											_this.colum[index + 2] = index + 2;
218
										}
227
										}
219
										//var ul = self.element.querySelector('.mui-table-view');						
228
										//var ul = self.element.querySelector('.mui-table-view');						
220
										$D({
229
										$D({
221
											"fun": _this.createFragment,
230
											"fun": _this.createFragment,
222
											data: {
231
											data: {
223
												col: index ? _this.colum[index + 2] : _this.colum.a,
232
												col: index ? colum[m+2] : _this.colum.a,
224
												pageNo: pa,
233
												pageNo: pa,
225
												exclude: arr
234
												exclude: arr
226
											},
235
											},
269
					}
278
					}
270
				},
279
				},
271
				createFragment: function(data) {
280
				createFragment: function(data) {
281
					console.log(JSON.stringify(data))
282
					console.log(m)
272
					if(data.success) {
283
					if(data.success) {
273
						var $data = data.data.data;
284
						var $data = data.data.data;
274
						if(arguments[1]) {
285
						if(arguments[1]) {
393
			document.querySelector('#slider').addEventListener('slide', function(event) {
404
			document.querySelector('#slider').addEventListener('slide', function(event) {
394
405
395
				var $this = document.querySelector(".mui-scroll .mui-active");
406
				var $this = document.querySelector(".mui-scroll .mui-active");
396
				if($this.innerHTML == "前沿动态") {
407
				if($this.innerHTML == "科研") {
397
					m = 1;
408
					m = 1;
398
				} else if($this.innerHTML == "学术经验") {
409
				} else if($this.innerHTML == "企业") {
399
					m = 2;
410
					m = 2;
400
				} else if($this.innerHTML == "检测分析") {
411
				} else if($this.innerHTML == "智库") {
401
					m = 3;
412
					m = 3;
402
				} else if($this.innerHTML == "会议培训") {
413
				} else if($this.innerHTML == "检测") {
403
					m = 4;
414
					m = 4;
404
				} else if($this.innerHTML == "科袖访谈") {
415
				} else if($this.innerHTML == "会议") {
405
					m = 5;
416
					m = 5;
406
				} else if($this.innerHTML == "招聘招生") {
417
				} else if($this.innerHTML == "招聘") {
407
					m = 6;
418
					m = 6;
408
				} else if($this.innerHTML == "最新文章") {
419
				} else if($this.innerHTML == "推荐") {
409
					m = 0;
420
					m = 0;
410
				}
421
				}
411
				if(!$this.getAttribute("flag")) {
422
				if(!$this.getAttribute("flag")) {
412
423
413
					$this.setAttribute("flag", 1);
424
					$this.setAttribute("flag", 1);
414
425
						console.log(colum[m+2] +" 99999")
415
					$D({
426
					$D({
416
						"fun": ob.createFragment,
427
						"fun": ob.createFragment,
417
						data: {
428
						data: {
418
							col: m + 2,
429
							col: colum[m+2],
419
							pageNo: 1
430
							pageNo: 1
420
						},
431
						},
421
						url: "/ajax/article/find"
432
						url: "/ajax/article/find"

+ 5 - 1
app/js/loginTelNew.js

152
						mui.fire(consultPage, 'logined', {id: userId});	
152
						mui.fire(consultPage, 'logined', {id: userId});	
153
						
153
						
154
						firstLogin();
154
						firstLogin();
155
						
155
						var consultPage = plus.webview.getWebviewById('consultlistNew.html');
156
						mui.fire(consultPage, 'logined', {
157
							id: userId,
158
							rd:1
159
						});
156
					}else{
160
					}else{
157
						if(data.code==-1){
161
						if(data.code==-1){
158
							plus.nativeUI.toast("验证码已过期,请重新获取", toastStyle);
162
							plus.nativeUI.toast("验证码已过期,请重新获取", toastStyle);

+ 8 - 0
app/js/needShow.js

317
		}
317
		}
318
		//点击回复按钮调用函数
318
		//点击回复按钮调用函数
319
		function replayGo(){
319
		function replayGo(){
320
			var wechat=plus.webview.getWebviewById('weChat.html');
321
			var jubao=plus.webview.getWebviewById('jubao.html');
322
			if(wechat) {
323
				wechat.close();
324
			}
325
			if(jubao) {
326
				jubao.close();
327
			}
320
			if(userid && userid != null && userid != "null") {
328
			if(userid && userid != null && userid != "null") {
321
				mui.openWindow({
329
				mui.openWindow({
322
								url: '../html/weChat.html',
330
								url: '../html/weChat.html',

+ 1 - 1
app/js/updateBasic.js

12
		autoWidth(document.getElementsByClassName('mui-navigate-right')[0])
12
		autoWidth(document.getElementsByClassName('mui-navigate-right')[0])
13
		document.getElementsByClassName("mui-navigate-right")[0]
13
		document.getElementsByClassName("mui-navigate-right")[0]
14
		function personalMessage() {
14
		function personalMessage() {
15
			mui.ajax(baseUrl + "/ajax/professor/baseInfo/" + userid, {
15
			mui.ajax(baseUrl + "/ajax/professor/editBaseInfo/" + userid, {
16
				dataType: 'json', //数据格式类型
16
				dataType: 'json', //数据格式类型
17
				type: 'GET', //http请求类型
17
				type: 'GET', //http请求类型
18
				timeout: 10000, //超时设置
18
				timeout: 10000, //超时设置