Showing
1 changed file
with
5 additions
and
6 deletions
@@ -474,7 +474,7 @@ function gridInit(id){ | @@ -474,7 +474,7 @@ function gridInit(id){ | ||
474 | return "<input class='form-control inputChange' type=text name='name' value='"+item.name+"' data-index='"+item.__index+"' maxlength='5' />"; | 474 | return "<input class='form-control inputChange' type=text name='name' value='"+item.name+"' data-index='"+item.__index+"' maxlength='5' />"; |
475 | }}, | 475 | }}, |
476 | {display:"链接", render:function(item){ | 476 | {display:"链接", render:function(item){ |
477 | - return "<input class='form-control inputChange urlInput' type=text name='url' value='"+(item.url).replace(/'/g,'\"')+"' data-index='"+item.__index+"' />"; | 477 | + return "<input class='form-control inputChange urlInput' type=text name='url' value='"+(item.url)+"' data-index='"+item.__index+"' />"; |
478 | }} | 478 | }} |
479 | ] | 479 | ] |
480 | }); | 480 | }); |
@@ -581,7 +581,7 @@ function gridInit(id){ | @@ -581,7 +581,7 @@ function gridInit(id){ | ||
581 | return "<input type=file name='recommendImage' id='recommendImage_"+item.__index+"' value='"+item.src+"' />"; | 581 | return "<input type=file name='recommendImage' id='recommendImage_"+item.__index+"' value='"+item.src+"' />"; |
582 | }}, | 582 | }}, |
583 | {display:"链接", render:function(item){ | 583 | {display:"链接", render:function(item){ |
584 | - return "<input class='form-control inputChange urlInput' type=text name='url' value='"+(item.url).replace(/'/g,'\"')+"' data-index='"+item.__index+"' />"; | 584 | + return "<input class='form-control inputChange urlInput' type=text name='url' value='"+(item.url)+"' data-index='"+item.__index+"' />"; |
585 | }}, | 585 | }}, |
586 | {display:"操作", render:function(item){ | 586 | {display:"操作", render:function(item){ |
587 | var htmlPic = "",i=item.__index; | 587 | var htmlPic = "",i=item.__index; |
@@ -629,7 +629,7 @@ function gridInit(id){ | @@ -629,7 +629,7 @@ function gridInit(id){ | ||
629 | return "<input type=file name='signboardImage' id='hotRecommendImage_"+item.__index+"' value='"+item.src+"' />"; | 629 | return "<input type=file name='signboardImage' id='hotRecommendImage_"+item.__index+"' value='"+item.src+"' />"; |
630 | }}, | 630 | }}, |
631 | {display:"链接", render:function(item){ | 631 | {display:"链接", render:function(item){ |
632 | - return "<input class='form-control inputChange urlInput' type=text name='url' value='"+(item.url).replace(/'/g,'\"')+"' data-index='"+item.__index+"' />"; | 632 | + return "<input class='form-control inputChange urlInput' type=text name='url' value='"+(item.url)+"' data-index='"+item.__index+"' />"; |
633 | }}, | 633 | }}, |
634 | {display:"操作", render:function(item){ | 634 | {display:"操作", render:function(item){ |
635 | var htmlPic = "",i=item.__index; | 635 | var htmlPic = "",i=item.__index; |
@@ -709,7 +709,7 @@ function gridInit(id){ | @@ -709,7 +709,7 @@ function gridInit(id){ | ||
709 | if(item.__index == 0){ | 709 | if(item.__index == 0){ |
710 | return "http://店铺商品列表页(默认)"; | 710 | return "http://店铺商品列表页(默认)"; |
711 | }else{ | 711 | }else{ |
712 | - return "<input class='form-control inputChange urlInput' type=text name='url' value='"+(item.url).replace(/'/g,'\"')+"' data-index='"+item.__index+"' />"; | 712 | + return "<input class='form-control inputChange urlInput' type=text name='url' value='"+(item.url)+"' data-index='"+item.__index+"' />"; |
713 | } | 713 | } |
714 | }}, | 714 | }}, |
715 | {display:"操作", render:function(item){ | 715 | {display:"操作", render:function(item){ |
@@ -757,7 +757,7 @@ function gridInit(id){ | @@ -757,7 +757,7 @@ function gridInit(id){ | ||
757 | if(item.__index == 0){ | 757 | if(item.__index == 0){ |
758 | return "http://店铺商品列表页(默认)"; | 758 | return "http://店铺商品列表页(默认)"; |
759 | }else{ | 759 | }else{ |
760 | - return "<input class='form-control inputChange urlInput' type=text name='url' value='"+(item.url).replace(/'/g,'\"')+"' data-index='"+item.__index+"' />"; | 760 | + return "<input class='form-control inputChange urlInput' type=text name='url' value='"+(item.url)+"' data-index='"+item.__index+"' />"; |
761 | } | 761 | } |
762 | }}, | 762 | }}, |
763 | {display:"操作", render:function(item){ | 763 | {display:"操作", render:function(item){ |
@@ -1344,7 +1344,6 @@ function resourcesHtmlInit(item,resName){ | @@ -1344,7 +1344,6 @@ function resourcesHtmlInit(item,resName){ | ||
1344 | var picList = item.data, | 1344 | var picList = item.data, |
1345 | htmlPic = ""; | 1345 | htmlPic = ""; |
1346 | for(var i=0; i<picList.length; i++){ | 1346 | for(var i=0; i<picList.length; i++){ |
1347 | - picList[i].url=picList[i].url.replace(/'/g,'\"'); // 字符串里面双引号转换成单引号 | ||
1348 | htmlPic += "<div class='row'>" + | 1347 | htmlPic += "<div class='row'>" + |
1349 | "<div class='col-sm-2'><input type=file name='"+ resName +"Image' id='"+ resName +"Image_"+item.__index+"_"+i+"' value='"+picList[i].src+"' /></div>" + | 1348 | "<div class='col-sm-2'><input type=file name='"+ resName +"Image' id='"+ resName +"Image_"+item.__index+"_"+i+"' value='"+picList[i].src+"' /></div>" + |
1350 | "<div class='col-sm-3'><input type=text class='form-control inputChange urlInput' name='url' value='"+picList[i].url+"' data-index='"+item.__index+"_"+i+"' /></div>" + | 1349 | "<div class='col-sm-3'><input type=text class='form-control inputChange urlInput' name='url' value='"+picList[i].url+"' data-index='"+item.__index+"_"+i+"' /></div>" + |
-
Please register or login to post a comment