li лет назад: 7
Родитель
Сommit
c858b5fef0
3 измененных файлов с 5 добавлено и 11 удалено
  1. 4 4
      cmp-portal/cmp-setAuth.html
  2. 1 1
      cmp-portal/js/cmp-setAuth-imgup.js
  3. 0 6
      js/articalShow2.js

+ 4 - 4
cmp-portal/cmp-setAuth.html

@ -39,8 +39,8 @@
39 39
				        				<div class="uploadlogo">
40 40
				        					<div class="upFront">
41 41
					        					<p>请上传《企业法人营业执照》</p>
42
					        					<p class="smalltip">支持jpg、jpeg、png、gif、pdf格式,文件不超过10M</p>
43
						            			<input type="file"  name= "file" value="上传企业logo" class="uploadInp uploadFileHidden" id="fileone1" data-id="" onchange="uploadFun(this,1)"/>
42
					        					<p class="smalltip">支持jpg、jpeg、png格式,文件不超过10M</p>
43
						            			<input type="file"  name= "file" value="上传企业logo" class="uploadInp uploadFileHidden" id="fileone1" data-id="" onchange="uploadFun(this,1)" accept="image/png,image/jpg,image/jpeg"/>
44 44
					            			</div>
45 45
					            			<div class="upBack displayNone">
46 46
					        					已上传《 <span></span> 》       <a href="javascript:;" class="delupload"  onclick="deluploadFun(this,1)">删除</a>
@ -53,8 +53,8 @@
53 53
				        				<div class="uploadlogo">
54 54
				        					<div class="upFront">
55 55
					        					<p>请上传加盖公章的《入驻科袖授权证明》</p>
56
					        					<p class="smalltip">支持jpg、jpeg、png、gif、pdf格式,文件不超过10M</p>
57
						            			<input type="file" value="上传企业logo" name= "file" class="uploadInp uploadFileHidden" id="fileone2" data-id="" onchange="uploadFun(this,2)"/>
56
					        					<p class="smalltip">支持jpg、jpeg、png格式,文件不超过10M</p>
57
						            			<input type="file" value="上传企业logo" name= "file" class="uploadInp uploadFileHidden" id="fileone2" data-id="" onchange="uploadFun(this,2)" accept="image/png,image/jpg,image/jpeg"/>
58 58
					            			</div>
59 59
					            			<div class="upBack displayNone">
60 60
					        					已上传《 <span></span> 》       <a href="javascript:;" class="delupload" onclick="deluploadFun(this,2)">删除</a>

+ 1 - 1
cmp-portal/js/cmp-setAuth-imgup.js

@ -6,7 +6,7 @@ function uploadFun(_this, num) {
6 6
	var postfix = /\.[^\.]+/.exec(name);      
7 7
	var filename = name.substr(0, postfix['index']);
8 8
	console.log(postfix[0]);
9
	if(postfix[0] == ".jpg" || postfix[0] == ".JPG" || postfix[0] == ".jpeg" || postfix[0] == ".JPEG" || postfix[0] == ".png" || postfix[0] == ".PNG" || postfix[0] == ".gif" || postfix[0] == ".GIF" || postfix[0] == ".pdf" || postfix[0] == ".PDF") {
9
	if(postfix[0] == ".jpg" || postfix[0] == ".JPG" || postfix[0] == ".jpeg" || postfix[0] == ".JPEG" || postfix[0] == ".png" || postfix[0] == ".PNG" ) {
10 10
		if(fileval != "") {
11 11
			$(_this).parents(".upFront").addClass("displayNone");
12 12
			$(_this).parents(".uploadlogo").find(".upBack").removeClass("displayNone");

+ 0 - 6
js/articalShow2.js

@ -421,7 +421,6 @@ $(function() {
421 421
		$.ajax({
422 422
			url: "/ajax/org/" +this.orgId,
423 423
			type: "GET",
424
			timeout: 10000,
425 424
			dataType: "json",
426 425
			context: $("#busList"),
427 426
			success: function(data) {
@ -611,7 +610,6 @@ function isAgree(articleAgree) {
611 610
		data:data,
612 611
		dataType: 'json', //数据格式类型
613 612
		type: 'get', //http请求类型
614
		timeout: 10000,
615 613
		async: false,
616 614
		success: function(data) {
617 615
			if(data.success){
@ -638,7 +636,6 @@ function addAgree() {
638 636
		data:data,
639 637
		dataType: 'json', //数据格式类型
640 638
		type: 'POST', //http请求类型
641
		timeout: 10000,
642 639
		async: false,
643 640
		success: function(data) {
644 641
			if(data.success){
@ -763,7 +760,6 @@ function articleMsg() {
763 760
			"sender": userid,
764 761
			"content": $(".msgCont").val(),
765 762
		},
766
		timeout: 10000, //超时设置
767 763
		success: function(data) {
768 764
			var $info = data.data || {};
769 765
			if(data.success && data.data) {
@ -789,7 +785,6 @@ function message(rows,num) {
789 785
		dataType: 'json', //数据格式类型
790 786
		type: 'GET', //http请求类型
791 787
		data: data,
792
		timeout: 10000, //超时设置
793 788
		success: function(data) {
794 789
			if(data.success) {
795 790
				 if(data.data != ""){
@ -855,7 +850,6 @@ function articledel(commenid) {
855 850
		data: {
856 851
			"id": commenid,
857 852
		},
858
		timeout: 10000, //超时设置
859 853
		success: function(data) {
860 854
			if(data.success) {
861 855
				message(5,2);