Authored by whb

字符处理

... ... @@ -98,7 +98,7 @@ define('mobile', function(require, exports) {
type: "post",
url: "/brand/getbrand",
data: {
brand: brand
brand: encodeURIComponent(brand)
},
dataType: 'json',
success: function(data) {
... ... @@ -111,7 +111,7 @@ define('mobile', function(require, exports) {
});
$(".brand-content").html(template.replace('{li}', html));
} else {
$(".brand-content").html(noSearchTemplate.replace('{brand}', brand));
$(".brand-content").html(noSearchTemplate.replace('{brand}', tools.escapeHTML(brand).replace(/\"/g,"“").replace(/\'/g,"‘")));
}
}
});
... ...
... ... @@ -373,7 +373,7 @@ define('yohood', function(require, exports) {
$(".brand-content").html(template.replace('{li}', html));
} else {
$(".brand-content").html("");
$(".brand-content").html(noSearchTemplate.replace('{brand}', tools.escapeHTML(brand)));
$(".brand-content").html(noSearchTemplate.replace('{brand}', tools.escapeHTML(brand).replace(/\"/g,"“").replace(/\'/g,"‘")));
}
}
});
... ...
... ... @@ -29,7 +29,7 @@
<div class="brand-main">
<?php if($this->view->brandTotal):?>
<div class="search-wrap">
<input type="text" placeholder="搜索品牌..." maxlength="50">
<input type="text" placeholder="搜索品牌..." maxlength="30">
<a href="javascript:;" class="search-btn iconfont">&#xe611;</a>
</div>
<div class="brand-content">
... ...