Authored by yyq

字体图标替换

... ... @@ -9,10 +9,10 @@
<div class="opt pull-right">
<a class="home" href="{{homeUrl}}" title="{{brandName}}">
<span class="iconfont">&#xe617;</span>
<span class="iconfont">&#xe61a;</span>
</a>
<span id="brand-favour" class="brand-fav{{#if isCollect}} coled{{/if}}" data-id="{{brandId}}">
<i class="iconfont">&#xe616;</i>
<i class="iconfont">&#xe611;</i>
</span>
</div>
</div>
... ... @@ -20,7 +20,7 @@
{{/ banner}}
<div class="center-content">
{{> product/path-nav}}
{{> common/path-nav}}
{{# goodsInfo}}
<div class="main clearfix" data-skn="{{skn}}" data-id="{{productId}}">
... ... @@ -205,8 +205,8 @@
<div class="num-wraper pull-left clearfix">
<span id="num" class="num pull-left">1</span>
<span class="minus-plus pull-left">
<i id="plus-num" class="plus iconfont">&#xe610;</i>
<i id="minus-num" class="minus dis iconfont">&#xe600;</i>
<i id="plus-num" class="plus iconfont">&#xe607;</i>
<i id="minus-num" class="minus dis iconfont">&#xe60b;</i>
</span>
{{#each tags}}
{{#if isFew}}
... ... @@ -250,25 +250,25 @@
{{/ openSoon}}
{{#if notForSale}}
<span class="buy-btn dis">
<i class="iconfont">&#xe62d;</i>
<i class="iconfont">&#xe61c;</i>
非买品
</span>
{{/if}}
{{#if addToCart}}
<span id="add-to-cart" class="buy-btn item-buy add-to-cart">
<i class="iconfont">&#xe628;</i>
<i class="iconfont">&#xe61b;</i>
添加到购物车
</span>
{{/if}}
{{/unless}}
<span id="sold-out" class="buy-btn dis{{#unless soldOut}} hide{{/unless}}">
<i class="iconfont">&#xe62d;</i>
<i class="iconfont">&#xe61c;</i>
已售罄
</span>
<span id="collect-product" class="{{#if isCollect}}coled {{/if}}collect-product">
<i class="iconfont">&#xe616;</i>
<i class="iconfont">&#xe611;</i>
{{#if isCollect}}
<em>已收藏</em>
{{^}}
... ... @@ -289,7 +289,7 @@
<p class="balance-btns">
<a class="go-cart buy-btn" href="{{goCartUrl}}">
去购物车结算
<i class="iconfont">&#xe601;</i>
<i class="iconfont">&#xe60c;</i>
</a>
<span id="keep-shopping" class="keep-shopping">
... ... @@ -513,7 +513,7 @@
</p>
<p class="btn-wrap">
<a class="btn" href="{{commentUrl}}" target="_blank">
<i class="iconfont">&#xe62a;</i>
<i class="iconfont">&#xe61e;</i>
我要评论
</a>
</p>
... ... @@ -530,14 +530,14 @@
</p>
<p class="btn-wrap">
<span id="consults-btn" class="btn">
<i class="iconfont">&#xe62a;</i>
<i class="iconfont">&#xe61e;</i>
我要咨询
</span>
</p>
<div class="new-consult hide">
<textarea class="my-consult"></textarea>
<span class="consult-warn warn-tip hide">
<i class="iconfont">&#xe62c;</i>
<i class="iconfont">&#xe61f;</i>
请输入咨询内容
</span>
<span id="submit-consult" class="btn submit-consult">提交咨询</span>
... ... @@ -545,7 +545,7 @@
<div class="consult-success hide">
<p>
<span class="iconfont">&#xe61a;</span>
<span class="iconfont">&#xe605;</span>
咨询成功,请等待客服回复
</p>
</div>
... ... @@ -555,9 +555,9 @@
<div class="after-service">
<p id="after-service-switch" class="after-service-switch">
<span class="iconfont">&#xe62b;</span>
<span class="iconfont">&#xe620;</span>
售后服务
<span class="iconfont triangle">&#xe604;</span>
<span class="iconfont triangle">&#xe610;</span>
</p>
<div class="after-service-content info-block">
<div class="block-title">
... ...
{{#if pathNav}}
<p class="path-nav">
{{#each pathNav}}
{{#if name}}
{{#if href}}
<a {{#if @last}}class="last"{{/if}} href="{{href}}" title="{{pathTitle}}">{{{name}}}</a>
{{^}}
<span {{#if @last}}class="last"{{/if}} title="{{pathTitle}}">{{{name}}}</span>
{{/if}}
{{#unless @last}}
<span class="iconfont">&#xe601;</span>
{{/unless}}
{{/if}}
{{/each}}
</p>
{{/if}}
No preview for this file type
... ... @@ -2,7 +2,7 @@
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
<svg xmlns="http://www.w3.org/2000/svg">
<metadata>
Created by FontForge 20120731 at Tue Jun 7 15:10:09 2016
Created by FontForge 20120731 at Wed Jun 15 15:51:59 2016
By admin
</metadata>
<defs>
... ... @@ -19,7 +19,7 @@ Created by FontForge 20120731 at Tue Jun 7 15:10:09 2016
bbox="0 -212 1158 896"
underline-thickness="50"
underline-position="-100"
unicode-range="U+0078-E619"
unicode-range="U+0078-E620"
/>
<missing-glyph horiz-adv-x="374"
d="M34 0v682h272v-682h-272zM68 34h204v614h-204v-614z" />
... ... @@ -96,5 +96,27 @@ q-13 10 -13 30q0 18 12.5 30.5t30.5 12.5q20 0 30 -13l141 -141l311 312q13 12 30 12
d="M662 662v-499l-299 250zM662 662z" />
<glyph glyph-name="uniE619" unicode="&#xe619;"
d="M384 640v-513l321 257z" />
<glyph glyph-name="uniE61A" unicode="&#xe61a;"
d="M500 775l-348 -298q-16 -14 -16 -35v-386q0 -25 17.5 -42.5t42.5 -17.5h197v257h238v-257h197q25 0 42.5 17.5t17.5 42.5v386q0 21 -16 35l-348 298q-12 10 -24 0z" />
<glyph glyph-name="uniE61B" unicode="&#xe61b;"
d="M482.5 167q-24.5 0 -42 -17.5t-17.5 -42.5t17.5 -42.5t42 -17.5t42 17.5t17.5 42.5t-17.5 42.5t-42 17.5zM769 167q-25 0 -42.5 -17.5t-17.5 -42.5t17.5 -42.5t42.5 -17.5t42.5 17.5t17.5 42.5t-17.5 42.5t-42.5 17.5zM839 277h-417l-143 425q-7 18 -29 18h-127
q-13 0 -22 -8t-9 -20.5t9 -20.5t22 -8h105l143 -424q7 -19 29 -19h439q13 0 21.5 8t8.5 20.5t-8.5 20.5t-21.5 8zM904 608l-516 45q-12 1 -18.5 -7t-1.5 -20l90 -270q4 -12 16 -21.5t24 -9.5h377q12 0 22 10t11 23l23 216q2 12 -6 22t-21 12z" />
<glyph glyph-name="uniE61C" unicode="&#xe61c;"
d="M828 702q65 -65 98 -148t33 -169t-33 -169t-98 -148q-66 -66 -149 -98.5t-169 -32.5t-168.5 32.5t-148.5 97.5q-66 66 -98.5 149t-32.5 169t32.5 169t98.5 149q66 65 148.5 97.5t168.5 32.5t169 -32.5t149 -98.5v0zM258 133q53 -53 118.5 -79t134.5 -26t134.5 26
t118 78.5t78.5 118t26 134.5t-26 134.5t-78 118.5q-53 53 -119 79t-134.5 26t-134.5 -26t-118 -78.5t-78.5 -118t-26.5 -134.5t26.5 -134.5t78.5 -118.5v0zM748 686l69 -72l-531 -530l-70 70zM748 686z" />
<glyph glyph-name="uniE61D" unicode="&#xe61d;"
d="M888 620q12 12 28.5 12t28.5 -12t12 -28.5t-12 -28.5l-406 -405q-12 -12 -28.5 -12t-27.5 12q-12 11 -12 27.5t12 28.5zM539 214q11 -12 11 -28.5t-11 -27.5q-12 -12 -28.5 -12t-28.5 12l-406 405q-11 12 -11 28.5t11 28.5q12 12 28.5 12t28.5 -12zM539 214z" />
<glyph glyph-name="uniE61E" unicode="&#xe61e;"
d="M328 18q-6 0 -11 3q-14 6 -14 22v128h-193q-10 0 -17.5 7t-7.5 18v549q0 10 7.5 17.5t17.5 7.5h804q11 0 18 -7.5t7 -17.5v-549q0 -11 -7 -18t-18 -7h-401l-169 -146q-7 -7 -16 -7zM171 256h188q10 0 17.5 -7.5t7.5 -17.5v-73l103 92q7 6 17 6h350v426h-683v-426z
M739 569h-454q-10 0 -17.5 7t-7.5 17.5t7.5 18t17.5 7.5h454q10 0 17.5 -7.5t7.5 -18t-7 -17.5t-18 -7zM739 446h-454q-10 0 -17.5 7t-7.5 17.5t7.5 18t17.5 7.5h454q10 0 17.5 -7.5t7.5 -18t-7 -17.5t-18 -7zM549 323h-264q-10 0 -17.5 7t-7.5 17.5t7.5 18t17.5 7.5h264
q10 0 17.5 -7.5t7.5 -17.5t-7.5 -17.5t-17.5 -7.5z" />
<glyph glyph-name="uniE61F" unicode="&#xe61f;"
d="M505 860q95 0 182 -37t150 -100t100.5 -150t37.5 -182t-37.5 -182t-100.5 -150t-150 -100.5t-182 -37.5t-182 37.5t-150 100.5t-100 150t-37 182t37 182t100 150t150 100t182 37zM505 -20q112 0 206.5 55t149.5 149.5t55 206t-55 206t-149.5 149.5t-206 55t-206 -55
t-149.5 -149.5t-55 -206t55 -206t149.5 -149.5t205.5 -55zM528 222v-59h-58v59h58zM470 648h58v-349h-58v349z" />
<glyph glyph-name="uniE620" unicode="&#xe620;"
d="M510.5 -60q-90.5 0 -173 35.5t-142.5 95.5t-95.5 142.5t-35.5 173t35.5 173t95.5 142.5t142.5 95.5t173 35.5t173.5 -35.5t142.5 -95.5t95 -142.5t35.5 -173t-35.5 -173t-95 -142.5t-142.5 -95.5t-173.5 -35.5zM510.5 787q-108.5 0 -200.5 -53.5t-146 -146t-54 -201
t54 -201t146 -146t200.5 -53.5t201 53.5t146 146t53.5 201t-53.5 201t-146 146t-201 53.5zM465 248v29q0 19 3 33q3 15 9 28q5 14 15 26t24 26l35 33q15 13 25.5 29.5t10.5 39.5q0 30 -19 50.5t-54 20.5q-18 0 -32 -6.5t-24.5 -17.5t-16.5 -26q-5 -15 -6 -30l-95 8
q5 37 20 66t39 49t55 31q31 10 66 10q33 0 63 -9.5t53 -28.5t36 -46.5t13 -64.5q0 -25 -5.5 -43t-15.5 -34t-24 -30q-15 -15 -32 -30q-16 -13 -25.5 -23t-15.5 -20t-8 -21.5t-2 -28.5v-20h-92zM450 140q0 25 18 43t44 18q24 0 43 -17t19 -42t-18.5 -42.5t-43.5 -17.5
q-12 0 -23.5 4.5t-20.5 12.5q-8 7 -13 18t-5 23z" />
</font>
</defs></svg>
... ...
No preview for this file type
No preview for this file type
... ... @@ -47,7 +47,7 @@ var Alert = require('../common/dialog').Alert;
require('./detail/latest-walk');
require('../common/share');
require('../plugins/share');
function imgShow(src) {
$imgShow.attr('src', src);
... ... @@ -103,7 +103,7 @@ function showSizeWarn() {
}
// size title
(function () {
(function() {
var $sizeTitleJson = $('#size-title-json'),
jsonHtml = $sizeTitleJson.html(),
sizeTitle;
... ... @@ -117,7 +117,7 @@ function showSizeWarn() {
// 数据获取后删除
$sizeTitleJson.remove();
$sizes.children('li').each(function () {
$sizes.children('li').each(function() {
var $this = $(this),
key = $this.data('name');
... ... @@ -129,7 +129,7 @@ function showSizeWarn() {
thumbsLoaded[$('.colors .focus').index()] = true;
// 品牌收藏
$('#brand-favour').click(function () {
$('#brand-favour').click(function() {
var $this = $(this);
$.ajax({
... ... @@ -138,7 +138,7 @@ $('#brand-favour').click(function () {
data: {
brandId: $this.data('id')
}
}).then(function (data) {
}).then(function(data) {
if (data.code === 200) {
$this.toggleClass('coled');
} else if (data.code === 403) {
... ... @@ -148,7 +148,7 @@ $('#brand-favour').click(function () {
});
// 颜色
$('.colors').on('click', 'li', function () {
$('.colors').on('click', 'li', function() {
var $this = $(this),
index = $this.index();
... ... @@ -203,12 +203,12 @@ $('.colors').on('click', 'li', function () {
});
// 缩略图鼠标移入显示
$('#thumbs').on('mouseenter', '.thumb', function () {
$('#thumbs').on('mouseenter', '.thumb', function() {
imgShow($(this).data('shower'));
});
// 尺码
$size.on('click', 'li', function () {
$size.on('click', 'li', function() {
var $this = $(this);
if ($this.hasClass('focus')) {
... ... @@ -227,7 +227,7 @@ $size.on('click', 'li', function () {
switchBtnStatus();
resetNum();
}).on('click', '.size-ruler', function () {
}).on('click', '.size-ruler', function() {
// 尺码帮助
... ... @@ -237,7 +237,7 @@ $size.on('click', 'li', function () {
});
// 数量
$plusNum.click(function () {
$plusNum.click(function() {
var num = getNum();
if ($(this).hasClass('dis')) {
... ... @@ -266,11 +266,11 @@ $plusNum.click(function () {
}
$num.text(num + 1 > maxStock ? maxStock : num + 1);
}).on('selectstart', function () {
}).on('selectstart', function() {
return false;
});
$minusNum.click(function () {
$minusNum.click(function() {
var num = getNum();
if ($(this).hasClass('dis')) {
... ... @@ -288,19 +288,19 @@ $minusNum.click(function () {
}
$num.text(num - 1 < 0 ? 0 : num - 1);
}).on('selectstart', function () {
}).on('selectstart', function() {
return false;
});
// 限购码
$('.get-lc:not(.dis)').hover(function () {
$('.get-lc:not(.dis)').hover(function() {
$lcContainer.removeClass('hide');
}, function () {
}, function() {
$lcContainer.addClass('hide');
});
// 加入购物车
$addToCart.click(function () {
$addToCart.click(function() {
if (maxStock === -1) {
showSizeWarn();
return;
... ... @@ -313,7 +313,7 @@ $addToCart.click(function () {
productSku: $('.size:not(.hide) li.focus').data('sku'),
buyNumber: getNum()
}
}).then(function (data) {
}).then(function(data) {
var code = data.code;
if (code === 200) {
... ... @@ -326,7 +326,7 @@ $addToCart.click(function () {
});
// 收藏
$('#collect-product').click(function () {
$('#collect-product').click(function() {
var $this = $(this),
cancel;
... ... @@ -341,7 +341,7 @@ $('#collect-product').click(function () {
productId: id,
type: cancel ? 'cancel' : 'add'
}
}).then(function (data) {
}).then(function(data) {
var code = data.code;
if (code === 200) {
... ... @@ -357,13 +357,13 @@ $('#collect-product').click(function () {
location.href = data.data.url;
}
});
}).hover(function () {
}).hover(function() {
var $this = $(this);
if ($this.hasClass('coled')) {
$this.find('em').text(colTxt.hover);
}
}, function () {
}, function() {
var $this = $(this);
if ($this.hasClass('coled')) {
... ... @@ -372,13 +372,13 @@ $('#collect-product').click(function () {
});
// 继续购物
$('#keep-shopping').click(function () {
$('#keep-shopping').click(function() {
$('#type-chose').slideDown(SLIDETIME);
$('#balance').slideUp(SLIDETIME);
});
// 立即购买
$('#buy-now').click(function () {
$('#buy-now').click(function() {
var sku,
base,
myAlert;
... ... @@ -409,18 +409,18 @@ $('#buy-now').click(function () {
});
// 按钮鼠标移入效果【dis状态的按钮状态不变】
$('.buy-btn').mouseover(function () {
$('.buy-btn').mouseover(function() {
if ($(this).hasClass('dis')) {
return;
}
$(this).addClass('hover');
}).mouseleave(function () {
}).mouseleave(function() {
$(this).removeClass('hover');
});
// 商品详情/材质洗涤切换
$('.description-material').on('click', '.title', function () {
$('.description-material').on('click', '.title', function() {
var $this = $(this),
index = $this.index();
... ... @@ -446,13 +446,13 @@ $('.description-material').on('click', '.title', function () {
});
// 售后服务
$('.after-service-switch').click(function () {
$('.after-service-switch').click(function() {
var $this = $(this),
$content = $this.next('.after-service-content');
var html = {
def: '&#xe604;',
spread: '&#xe603;'
def: '&#xe610;',
spread: '&#xe615;'
};
if ($content.css('display') === 'none') {
... ... @@ -474,18 +474,18 @@ $.ajax({
data: {
productId: id
}
}).then(function (html) {
}).then(function(html) {
$('#details-html').prepend(html);
// 修正热区尺寸使居中
$('.hot-point-wrap > img').load(function () {
$('.hot-point-wrap > img').load(function() {
$(this).parent('.hot-point-wrap').width($(this).width());
});
// Bind Hover event
$('.hot-point').hover(function () {
$('.hot-point').hover(function() {
$(this).addClass('hover');
}, function () {
}, function() {
$(this).removeClass('hover');
});
});
... ... @@ -494,7 +494,7 @@ $.ajax({
lazyLoad($('#details-html img'));
// 只有一个尺码(多个或一个颜色)时默认选中第一个未售罄的颜色的第一个尺码
(function () {
(function() {
var hasOnlyOneSize = true,
i;
... ... @@ -511,7 +511,7 @@ lazyLoad($('#details-html img'));
}());
// 咨询和评价
(function () {
(function() {
var commentPage = 1,
consultPage = 1;
... ... @@ -541,7 +541,7 @@ lazyLoad($('#details-html img'));
productId: id,
page: commentPage
}
}).then(function (data) {
}).then(function(data) {
var res;
if (data.code === 200) {
... ... @@ -560,7 +560,7 @@ lazyLoad($('#details-html img'));
}));
commentPage++;
}
}).always(function () {
}).always(function() {
loadingComments = false;
});
}
... ... @@ -580,7 +580,7 @@ lazyLoad($('#details-html img'));
productId: id,
page: consultPage
}
}).then(function (data) {
}).then(function(data) {
var res;
if (data.code === 200) {
... ... @@ -599,13 +599,13 @@ lazyLoad($('#details-html img'));
}));
consultPage++;
}
}).always(function () {
}).always(function() {
loadingConsults = false;
});
}
// 评价和咨询切换
$('.consult-comment').on('click', '.title', function () {
$('.consult-comment').on('click', '.title', function() {
var $this = $(this),
index = $this.index();
... ... @@ -628,7 +628,7 @@ lazyLoad($('#details-html img'));
$consults.slideUp(SLIDETIME);
$comments.slideDown(SLIDETIME);
}
}).on('click', '.load-more', function () {
}).on('click', '.load-more', function() {
var $this = $(this);
if ($this.hasClass('load-more-comments')) {
... ... @@ -639,7 +639,7 @@ lazyLoad($('#details-html img'));
});
// 我要咨询
$('#consults-btn').click(function () {
$('#consults-btn').click(function() {
// TODO:点击我要资讯的时候更新验证码显示
$('.new-consult').removeClass('hide');
... ... @@ -647,7 +647,7 @@ lazyLoad($('#details-html img'));
});
// 提交咨询
$('#submit-consult').click(function () {
$('#submit-consult').click(function() {
var $this = $(this),
$parent = $this.closest('.new-consult'),
$textarea = $parent.find('.my-consult'),
... ... @@ -678,7 +678,7 @@ lazyLoad($('#details-html img'));
productId: id,
content: content
}
}).then(function (data) {
}).then(function(data) {
var code = data.code;
if (code === 200) {
... ...