li 7 年之前
父节点
当前提交
3e557ced75

+ 2 - 2
app/html/cmpInforShow.html

@ -87,8 +87,8 @@
87 87
					</ul>
88 88
				</div>
89 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 92
				<div class="infocon">
93 93
					<span class="breifinfo mui-ellipsis-5" id="breifinfo">
94 94
			        </span>

+ 7 - 8
app/html/discoverNew.html

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

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

@ -55,13 +54,13 @@
55 54
			<div id="slider" class="mui-slider mui-fullscreen">
56 55
				<div id="sliderSegmentedControl" class="mui-scroll-wrapper mui-slider-indicator mui-segmented-control mui-segmented-control-inverted">
57 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 64
					</div>
66 65
				</div>
67 66
				<div class="mui-slider-group">

+ 6 - 0
app/html/userInforUpdate.html

@ -23,6 +23,12 @@
23 23
		<!-- 主页面内容容器 -->
24 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 32
    		<div class="mui-input-group marginbox searchTab">
27 33
    			<div class="infocontit infocontitM OnetitM mui-navigate-right mui-clearfix">
28 34
    				<div class="flexCenter mui-clearfix">

+ 8 - 1
app/html/weChat.html

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

+ 66 - 55
app/js/discoverNew.js

@ -9,6 +9,15 @@
9 9
			indicators: true, //是否显示滚动条
10 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 21
	var pullObj = {
13 22
		"0": 0,
14 23
		"1": 0,
@ -21,44 +30,44 @@
21 30
	$.ready(function() {
22 31
		$.plusReady(function() {
23 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 71
			var oWidth = getViewportSize().width;
63 72
64 73
			function getViewportSize() {
@ -68,8 +77,8 @@
68 77
				};
69 78
			}
70 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 84
			function Discover(obj) {
@ -88,10 +97,10 @@
88 97
				colum: {
89 98
					"a": "", //最新文章
90 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 104
					"8": 8 //招聘招生
96 105
				},
97 106
				constructor: Discover,
@ -184,13 +193,14 @@
184 193
										} else {
185 194
											pullObj[index] = 1;
186 195
											_this.pageNo[index] = 1;
196
											
187 197
											_this.colum[index + 2] = index + 2;
188 198
189 199
											console.log(new Date().getTime() + "b")
190 200
											$D({
191 201
												"fun": _this.createFragment,
192 202
												data: {
193
													col: index ? _this.colum[index + 2] : _this.colum.a,
203
													col: index ? colum[m+2] : _this.colum.a,
194 204
													pageNo: 1,
195 205
													exclude: arr,
196 206
												},
@ -214,13 +224,12 @@
214 224
											_this.colum.a = ""
215 225
										} else {
216 226
											pa = ++_this.pageNo[index];
217
											_this.colum[index + 2] = index + 2;
218 227
										}
219 228
										//var ul = self.element.querySelector('.mui-table-view');						
220 229
										$D({
221 230
											"fun": _this.createFragment,
222 231
											data: {
223
												col: index ? _this.colum[index + 2] : _this.colum.a,
232
												col: index ? colum[m+2] : _this.colum.a,
224 233
												pageNo: pa,
225 234
												exclude: arr
226 235
											},
@ -269,6 +278,8 @@
269 278
					}
270 279
				},
271 280
				createFragment: function(data) {
281
					console.log(JSON.stringify(data))
282
					console.log(m)
272 283
					if(data.success) {
273 284
						var $data = data.data.data;
274 285
						if(arguments[1]) {
@ -393,29 +404,29 @@
393 404
			document.querySelector('#slider').addEventListener('slide', function(event) {
394 405
395 406
				var $this = document.querySelector(".mui-scroll .mui-active");
396
				if($this.innerHTML == "前沿动态") {
407
				if($this.innerHTML == "科研") {
397 408
					m = 1;
398
				} else if($this.innerHTML == "学术经验") {
409
				} else if($this.innerHTML == "企业") {
399 410
					m = 2;
400
				} else if($this.innerHTML == "检测分析") {
411
				} else if($this.innerHTML == "智库") {
401 412
					m = 3;
402
				} else if($this.innerHTML == "会议培训") {
413
				} else if($this.innerHTML == "检测") {
403 414
					m = 4;
404
				} else if($this.innerHTML == "科袖访谈") {
415
				} else if($this.innerHTML == "会议") {
405 416
					m = 5;
406
				} else if($this.innerHTML == "招聘招生") {
417
				} else if($this.innerHTML == "招聘") {
407 418
					m = 6;
408
				} else if($this.innerHTML == "最新文章") {
419
				} else if($this.innerHTML == "推荐") {
409 420
					m = 0;
410 421
				}
411 422
				if(!$this.getAttribute("flag")) {
412 423
413 424
					$this.setAttribute("flag", 1);
414
425
						console.log(colum[m+2] +" 99999")
415 426
					$D({
416 427
						"fun": ob.createFragment,
417 428
						data: {
418
							col: m + 2,
429
							col: colum[m+2],
419 430
							pageNo: 1
420 431
						},
421 432
						url: "/ajax/article/find"

+ 5 - 1
app/js/loginTelNew.js

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

+ 8 - 0
app/js/needShow.js

@ -317,6 +317,14 @@ mui.ready(function() {
317 317
		}
318 318
		//点击回复按钮调用函数
319 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 328
			if(userid && userid != null && userid != "null") {
321 329
				mui.openWindow({
322 330
								url: '../html/weChat.html',

+ 1 - 1
app/js/updateBasic.js

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