Ver Código Fonte

h5分享修改

LIPENGTAO1313 6 anos atrás
pai
commit
4fe606dde8
4 arquivos alterados com 37 adições e 24 exclusões
  1. 4 4
      e/c.html
  2. 31 18
      e/d.html
  3. 1 1
      e/p.html
  4. 1 1
      js/userInforShow.js

+ 4 - 4
e/c.html

@ -131,11 +131,11 @@ $(document).ready(function() {
131 131
				}
132 132
			});
133 133
		},
134
		demandListVal = function() {
134
		demandListVal = function(par) {
135 135
			var aimId = "demandShow"
136 136
			oAjax("/ajax/demand/pq", {
137
				"state": '1',
138
				"oid": orgId,
137
				"state": [1],
138
				'oname':par,
139 139
				"pageSize": 5
140 140
			}, "get", function(res) {
141 141
				console.log(JSON.stringify(res));
@ -331,7 +331,6 @@ $(document).ready(function() {
331 331
	companyMessage(orgId);
332 332
	relevantarticalList(); //相关文章
333 333
	likeExperts(); //感兴趣企业	
334
	demandListVal()
335 334
	articalListVal()
336 335
	bindClickFun()
337 336
	queryPubCount();
@ -356,6 +355,7 @@ $(document).ready(function() {
356 355
					}else{
357 356
						document.getElementById("companyName").innerText = $data.name;
358 357
					}
358
					demandListVal($data.name);
359 359
					if($data.hasOrgLogo) {
360 360
						document.getElementById("oimg").src = "/images/org/" + $data.id + ".jpg";
361 361
					} else {

+ 31 - 18
e/d.html

@ -34,7 +34,7 @@
34 34
									<p class="h3Font" id="oTime"></p>
35 35
								</div>
36 36
							</a>
37
							<div class="goSpan">
37
							<div class="goSpan" style="display:none;">
38 38
								<span class="attenSpan">关注</span>
39 39
							</div>
40 40
			            </div>
@ -83,6 +83,9 @@ $(document).ready(function() {
83 83
	})
84 84
	$('#personAL').on('click', function() {
85 85
		var id = this.getAttribute("data-id");
86
		if (id == null) {
87
			return;
88
		}
86 89
		location.href="http://" + window.location.host + "/e/c.html?id=" + id;
87 90
		$(this).addClass("activeThis");
88 91
	})
@ -112,7 +115,7 @@ $(document).ready(function() {
112 115
					if($da.invalidDay){ strCon+='<div class="showTit">有效期至:<span class="showCon">'+TimeTr($da.invalidDay)+'</span></div>' }
113 116
					document.getElementById("demandInfo").innerHTML=strCon;
114 117
					
115
					cmpFun($da.orgId);
118
					cmpFun($da.orgName);
116 119
					
117 120
					descContent=$da.descp.substring(0, 70);
118 121
					shareTitle=$da.title;
@ -125,26 +128,36 @@ $(document).ready(function() {
125 128
	}
126 129
	
127 130
	/*企业用户信息*/
128
	function cmpFun(id) {
131
	function cmpFun(par) {
129 132
		$.ajax({
130
			"url":"/ajax/org/" + id,
133
			"url":"/ajax/org/queryByName",
131 134
			"type": "get",
135
			"data": {
136
				name: par
137
			},
132 138
			"async": true,
139
			'traditional': true,
133 140
			"success": function(data) {
134
				if(data.success && data.data) {
135
					if(data.data.forShort) {
136
						document.getElementById("cmpname").innerHTML=data.data.forShort;
137
					}else{
138
						document.getElementById("cmpname").innerHTML=data.data.name;
139
					}
140
					var img="../images/default-icon.jpg";
141
					if(data.data.hasOrgLogo==1){
142
						img="/images/org/" + data.data.id + ".jpg";
143
					}
144
					document.getElementById("personAL").setAttribute("data-id",data.data.id);
145
					document.getElementById("companyImg").setAttribute("src",img);
146
					if(data.data.authStatus==3){
147
						document.getElementById("QauthFlag").classList.add("authicon-com-ok");
141
				if(data.success) {
142
					if(data.data != null) {
143
						$(".goSpan").show();
144
						if(data.data.forShort) {
145
							document.getElementById("cmpname").innerHTML=data.data.forShort;
146
						}else{
147
							document.getElementById("cmpname").innerHTML=data.data.name;
148
						}
149
						var img="../images/default-icon.jpg";
150
						if(data.data.hasOrgLogo==1){
151
							img="/images/org/" + data.data.id + ".jpg";
152
						}
153
						document.getElementById("personAL").setAttribute("data-id",data.data.id);
154
						document.getElementById("companyImg").setAttribute("src",img);
155
						if(data.data.authStatus==3){
156
							document.getElementById("QauthFlag").classList.add("authicon-com-ok");
157
						}
158
					} else {
159
						$("#companyImg").attr("src",'../images/default-icon.jpg');
160
						$("#cmpname").text(par);
148 161
					}
149 162
				}
150 163
			},

+ 1 - 1
e/p.html

@ -322,7 +322,7 @@ $(document).ready(function() {
322 322
		demandListVal=function() {
323 323
			var aimId="demandShow"
324 324
			oAjax("/ajax/demand/pq",{
325
				"state":'1',
325
				"state":[1],
326 326
				"uid":proId,
327 327
				"pageSize":5
328 328
			}, "get", function(res){

+ 1 - 1
js/userInforShow.js

@ -440,7 +440,7 @@ $(function() {
440 440
		},
441 441
       	demandListVal=function(isbind) {
442 442
			oAjax("/ajax/demand/pq",{
443
				"state":'1',
443
				"state":[1],
444 444
				"uid":professorId,
445 445
				"pageSize":5
446 446
			}, "get", function(data){