소스 검색

修改一下color

lvhao 5 일 전
부모
커밋
0b45f112f9
2개의 변경된 파일9개의 추가작업 그리고 4개의 파일을 삭제
  1. 6 1
      core/CoreApp/controllers/Color.php
  2. 3 3
      template/erp/color.html

+ 6 - 1
core/CoreApp/controllers/Color.php

@@ -194,8 +194,13 @@ class Color extends Start_Controller {
 					}
 					else if($v != '')
 					{
+						$info_list[$key]['img'] = "<img src='".site_url('img/thumb')."?src=".str_replace(array('http://'.$_SERVER['HTTP_HOST'],'http://erp.hnwmzp.cn','https://erp.hnwmzp.cn','http://1.wepolicy.cn','https://1.wepolicy.cn','http://a.wepolicy.cn','/img/thumb?src='),'',$v)."&w=100&h=100' data-src='".$v."'>";
 					   //$info[$key]['img'] = "<img src='".$v."' width='100px' height='100' />";
-			 		  $info_list[$key]['img'] = "<img src='".site_url('img/thumb')."?src=".str_replace(array('http://'.$_SERVER['HTTP_HOST'],'http://erp.hnwmzp.cn','https://erp.hnwmzp.cn','http://1.wepolicy.cn','https://1.wepolicy.cn','http://a.wepolicy.cn','/img/thumb?src='),'',$v)."&w=100&h=100' data-src='".$v."'>";
+						if(count($colorimg) > 1){
+							$info_list[$key]['img'] .= "<img src='".site_url('img/thumb')."?src=".str_replace(array('http://'.$_SERVER['HTTP_HOST'],'http://erp.hnwmzp.cn','https://erp.hnwmzp.cn','http://1.wepolicy.cn','https://1.wepolicy.cn','http://a.wepolicy.cn','/img/thumb?src='),'',$colorimg[1])."&w=100&h=100' data-src='".$colorimg[1]."'>";
+						}
+				
+			 		 
 					}
 					else
 					{

+ 3 - 3
template/erp/color.html

@@ -80,12 +80,12 @@ $(this).find('td:eq(2)').css("width","5%");
 $(this).find('td:eq(3)').css("width","6%");
 $(this).find('td:eq(4)').css("width","6%");
 $(this).find('td:eq(5)').css("width","6%");
-$(this).find('td:eq(6)').css("width","8%");
+$(this).find('td:eq(6)').css("width","20%");
 $(this).find('td:eq(7)').css("width","5%");
 $(this).find('td:eq(8)').css("width","8%");
 $(this).find('td:eq(9)').css("width","20%");
-$(this).find('td:eq(10)').css("width","11%");
-$(this).find('td:eq(11)').css("width","11%");
+$(this).find('td:eq(10)').css("width","6%");
+$(this).find('td:eq(11)').css("width","6%");
 });}
 $(".excel").click(function() {
     var f = "";