From 0bf983c3a47b5891ff2bd0cc9f9d5041108fbd31 Mon Sep 17 00:00:00 2001 From: 🍓 <lixia.zhang@yoho.cn> Date: Thu, 14 Jul 2016 13:31:50 +0800 Subject: [PATCH] gulp ge --- web-static/dist/yohobuy/4.6.2/index-debug.js | 24462 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- web-static/dist/yohobuy/4.6.2/index.css | 2 +- web-static/dist/yohobuy/assets/font/iconfont.svg | 394 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 3 files changed, 12429 insertions(+), 12429 deletions(-) diff --git a/web-static/dist/yohobuy/4.6.2/index-debug.js b/web-static/dist/yohobuy/4.6.2/index-debug.js index c3c360d..e064b1c 100644 --- a/web-static/dist/yohobuy/4.6.2/index-debug.js +++ b/web-static/dist/yohobuy/4.6.2/index-debug.js @@ -53,202 +53,202 @@ module.exports = webYohobuy; }); define("js/common", ["jquery"], function(require, exports, module){ -/** - * 页面公共逻辑和接口 - * @author: xuqi<qi.xu@yoho.cn> - * @date: 2015/11/23 - */ -var $ = require("jquery"); - - -var $body = $('body'); - -require("js/footer"); - -function cookie(name) { - var re = new RegExp(name + '=([^;$]*)', 'i'), - matchPattern = '$1'; - - return re.test(decodeURIComponent(document.cookie)) ? RegExp[matchPattern] : ''; -} - -function setCookie(name, value, options) { - var expires = '', - path, - domain, - secure, - date; - - if (typeof value !== 'undefined') { - options = options || {}; - if (value === null) { - value = ''; - options.expires = -1; - } - - if (options.expires && - (typeof options.expires === 'number' || options.expires.toUTCString)) { - if (typeof options.expires === 'number') { - date = new Date(); - date.setTime(date.getTime() + (options.expires * 24 * 60 * 60 * 1000)); - } else { - date = options.expires; - } - expires = '; expires=' + date.toUTCString(); - } - path = options.path ? '; path=' + options.path : ''; - domain = options.domain ? '; domain=' + options.domain : ''; - secure = options.secure ? '; secure' : ''; - document.cookie = [name, '=', encodeURIComponent(value), expires, path, domain, secure].join(''); - } -} - -function getUser() { - var c = cookie('_UID'), - user; - - if (typeof c === 'undefined') { - return 0; - } - - user = c.split('::'); - - if (typeof user === 'undefined' || user.length < 4) { - return 0; - } - - return user; -} - -function getUid() { - var user = getUser(); - - if (user === 0) { - return 0; - } - - return user[1]; -} - -function getShoppingKey() { - var c = cookie('_g'); - - if (typeof c === 'undefined') { - return ''; - } - - return JSON.parse(c).k; -} - -//YAS统计代码 -(function(w, d, s, j, f) { - var a = d.createElement(s); - var m = d.getElementsByTagName(s)[0]; - - w.YohoAcquisitionObject = f; - - w[f] = function() { - w[f].p = arguments; - }; - - a.async = 1; - a.src = j; - m.parentNode.insertBefore(a, m); -})(window, document, 'script', 'http://cdn.yoho.cn/yas-jssdk/1.0.14/yas.js', '_yas'); - -(function() { - var uid = getUid(); - - uid = uid === 0 ? '' : uid; - - window._ozuid = uid; //暴露ozuid - - if (window._yas) { - window._yas(1 * new Date(), '1.0.14', 'yohobuy_web', uid, '', ''); - } -}()); - -//window.resize在width<1180时适配成990 -$(window).on('resize', function() { - var w = $(this).width(); - - //return top - if (w < 1360) { - $('.return-top').addClass('min'); - } else { - $('.return-top').removeClass('min'); - } - - //body - if (w < 1180) { - $body.addClass('min-screen'); - } else { - $body.removeClass('min-screen'); - } -}).trigger('resize'); - -function queryString() { - var vars = {}, - hash, - i, - search = window.location.search, - hashes = search ? decodeURIComponent(search).slice(1).split('&') : []; - - for (i = 0; i < hashes.length; i++) { - hash = hashes[i].split('='); - vars[hash[0]] = hash[1]; - } - return vars; -} - -// 给jQuery 扩展 queryString函数 -$.extend({ - queryString: function() { - var vars = [], - hash, - i; - var hashes = window.location.search.slice(1).split('&'); - - for (i = 0; i < hashes.length; i++) { - hash = hashes[i].split('='); - vars.push(hash[0]); - vars[hash[0]] = hash[1]; - } - return vars; - } -}); - -//个人中心左侧栏头像加载失败后,显示默认头像 -(function() { - $(window).load(function() { - var thumb = document.getElementById('user-thumb'); - var img; - - if (!thumb) { - return; - } - - img = new Image(); - - img.src = thumb.src; - - img.onerror = function() { - $(thumb).parent().append('<div class="default-user-thumb"></div>').end().remove(); - }; - }); -}()); - -window.cookie = cookie; - -window.setCookie = setCookie; - -window.getUser = getUser; - -window.getUid = getUid; - -window.getShoppingKey = getShoppingKey; - -window.queryString = queryString; +/** + * 页面公共逻辑和接口 + * @author: xuqi<qi.xu@yoho.cn> + * @date: 2015/11/23 + */ +var $ = require("jquery"); + + +var $body = $('body'); + +require("js/footer"); + +function cookie(name) { + var re = new RegExp(name + '=([^;$]*)', 'i'), + matchPattern = '$1'; + + return re.test(decodeURIComponent(document.cookie)) ? RegExp[matchPattern] : ''; +} + +function setCookie(name, value, options) { + var expires = '', + path, + domain, + secure, + date; + + if (typeof value !== 'undefined') { + options = options || {}; + if (value === null) { + value = ''; + options.expires = -1; + } + + if (options.expires && + (typeof options.expires === 'number' || options.expires.toUTCString)) { + if (typeof options.expires === 'number') { + date = new Date(); + date.setTime(date.getTime() + (options.expires * 24 * 60 * 60 * 1000)); + } else { + date = options.expires; + } + expires = '; expires=' + date.toUTCString(); + } + path = options.path ? '; path=' + options.path : ''; + domain = options.domain ? '; domain=' + options.domain : ''; + secure = options.secure ? '; secure' : ''; + document.cookie = [name, '=', encodeURIComponent(value), expires, path, domain, secure].join(''); + } +} + +function getUser() { + var c = cookie('_UID'), + user; + + if (typeof c === 'undefined') { + return 0; + } + + user = c.split('::'); + + if (typeof user === 'undefined' || user.length < 4) { + return 0; + } + + return user; +} + +function getUid() { + var user = getUser(); + + if (user === 0) { + return 0; + } + + return user[1]; +} + +function getShoppingKey() { + var c = cookie('_g'); + + if (typeof c === 'undefined') { + return ''; + } + + return JSON.parse(c).k; +} + +//YAS统计代码 +(function(w, d, s, j, f) { + var a = d.createElement(s); + var m = d.getElementsByTagName(s)[0]; + + w.YohoAcquisitionObject = f; + + w[f] = function() { + w[f].p = arguments; + }; + + a.async = 1; + a.src = j; + m.parentNode.insertBefore(a, m); +})(window, document, 'script', 'http://cdn.yoho.cn/yas-jssdk/1.0.14/yas.js', '_yas'); + +(function() { + var uid = getUid(); + + uid = uid === 0 ? '' : uid; + + window._ozuid = uid; //暴露ozuid + + if (window._yas) { + window._yas(1 * new Date(), '1.0.14', 'yohobuy_web', uid, '', ''); + } +}()); + +//window.resize在width<1180时适配成990 +$(window).on('resize', function() { + var w = $(this).width(); + + //return top + if (w < 1360) { + $('.return-top').addClass('min'); + } else { + $('.return-top').removeClass('min'); + } + + //body + if (w < 1180) { + $body.addClass('min-screen'); + } else { + $body.removeClass('min-screen'); + } +}).trigger('resize'); + +function queryString() { + var vars = {}, + hash, + i, + search = window.location.search, + hashes = search ? decodeURIComponent(search).slice(1).split('&') : []; + + for (i = 0; i < hashes.length; i++) { + hash = hashes[i].split('='); + vars[hash[0]] = hash[1]; + } + return vars; +} + +// 给jQuery 扩展 queryString函数 +$.extend({ + queryString: function() { + var vars = [], + hash, + i; + var hashes = window.location.search.slice(1).split('&'); + + for (i = 0; i < hashes.length; i++) { + hash = hashes[i].split('='); + vars.push(hash[0]); + vars[hash[0]] = hash[1]; + } + return vars; + } +}); + +//个人中心左侧栏头像加载失败后,显示默认头像 +(function() { + $(window).load(function() { + var thumb = document.getElementById('user-thumb'); + var img; + + if (!thumb) { + return; + } + + img = new Image(); + + img.src = thumb.src; + + img.onerror = function() { + $(thumb).parent().append('<div class="default-user-thumb"></div>').end().remove(); + }; + }); +}()); + +window.cookie = cookie; + +window.setCookie = setCookie; + +window.getUser = getUser; + +window.getUid = getUid; + +window.getShoppingKey = getShoppingKey; + +window.queryString = queryString; }); define("js/footer", ["jquery"], function(require, exports, module){ @@ -1982,106 +1982,106 @@ function init() { init(); }); define("js/simple-header", ["jquery"], function(require, exports, module){ -var $ = require("jquery"); - -var $apiDom = $('#api-domain'); - -var apiDomain = $apiDom.val(); //获取数据的地址 - -$apiDom.remove(); //删除API信息 - -if ($('.simple-header').size() > 0) { - $('.tool-options').on('mouseenter', function() { - $(this).find('.tool-select').fadeIn(); - }).on('mouseleave', function() { - $(this).find('.tool-select').fadeOut(); - }); -} - -/** - * 格式化用户名 - * @return {[type]} [description] - */ -function formatUsernName(userName) { - var name, - char, - _num = 0, - _length = 0, - t; - - for (t = 0; t < userName.length; t++) { - char = userName.substr(t, 1); - if (/.*[\u4e00-\u9fa5]+.*$/.test(char)) { - _length += 2; - } else { - _length += 1; - } - } - if (_length <= 10) { - name = userName; - } else { - _num = 0; - name = ''; - for (t = 0; t < userName.length; t++) { - if (_num < 10) { - char = userName.substr(t, 1); - if (char !== '*') { - if (/.*[\u4e00-\u9fa5]+.*$/.test(char)) { - _num += 2; - } else { - _num += 1; - } - } - name += char; - } - } - if (name.length < userName.length) { - name += '...'; - } - } - return name; -} - -/** - * 设置简单头部登陆状态 - * @return {[type]} [description] - */ -function setLoginStatus(data) { - var info = data.data, - loginHtml, - name; - - if (data.result !== -1) { - name = formatUsernName(info.profile_name); - loginHtml = '<span>Hi~</span>' + - '<a href="http://www.yohobuy.com/home?t=' + info.random + '">' + name + '</a> ' + - '<a href="http://www.yohobuy.com/logout.html">[退出]</a>'; - } else { - loginHtml = '<span>Hi~</span> ' + - '<a href="http://www.yohobuy.com/signin.html">[请登录]</a> ' + - '<a href="http://www.yohobuy.com/reg.html">[免费注册]</a>'; - } - $('.header-tool li').eq(0).html(loginHtml); -} - -/** - * 获取登录信息 - * @return {[type]} [description] - */ -function actionLoginInfo() { - var param = { - return_type: 'jsonp' - }; - - $.getJSON('http://www.yohobuy.com/common/passport' + '/?callback=?', param, function(_data) { - if (_data && _data.data) { - setLoginStatus(_data.data); - } - }); -} - -actionLoginInfo(); //获取登录信息 - +var $ = require("jquery"); + +var $apiDom = $('#api-domain'); + +var apiDomain = $apiDom.val(); //获取数据的地址 + +$apiDom.remove(); //删除API信息 + +if ($('.simple-header').size() > 0) { + $('.tool-options').on('mouseenter', function() { + $(this).find('.tool-select').fadeIn(); + }).on('mouseleave', function() { + $(this).find('.tool-select').fadeOut(); + }); +} + +/** + * 格式化用户名 + * @return {[type]} [description] + */ +function formatUsernName(userName) { + var name, + char, + _num = 0, + _length = 0, + t; + + for (t = 0; t < userName.length; t++) { + char = userName.substr(t, 1); + if (/.*[\u4e00-\u9fa5]+.*$/.test(char)) { + _length += 2; + } else { + _length += 1; + } + } + if (_length <= 10) { + name = userName; + } else { + _num = 0; + name = ''; + for (t = 0; t < userName.length; t++) { + if (_num < 10) { + char = userName.substr(t, 1); + if (char !== '*') { + if (/.*[\u4e00-\u9fa5]+.*$/.test(char)) { + _num += 2; + } else { + _num += 1; + } + } + name += char; + } + } + if (name.length < userName.length) { + name += '...'; + } + } + return name; +} + +/** + * 设置简单头部登陆状态 + * @return {[type]} [description] + */ +function setLoginStatus(data) { + var info = data.data, + loginHtml, + name; + + if (data.result !== -1) { + name = formatUsernName(info.profile_name); + loginHtml = '<span>Hi~</span>' + + '<a href="http://www.yohobuy.com/home?t=' + info.random + '">' + name + '</a> ' + + '<a href="http://www.yohobuy.com/logout.html">[退出]</a>'; + } else { + loginHtml = '<span>Hi~</span> ' + + '<a href="http://www.yohobuy.com/signin.html">[请登录]</a> ' + + '<a href="http://www.yohobuy.com/reg.html">[免费注册]</a>'; + } + $('.header-tool li').eq(0).html(loginHtml); +} + +/** + * 获取登录信息 + * @return {[type]} [description] + */ +function actionLoginInfo() { + var param = { + return_type: 'jsonp' + }; + + $.getJSON('http://www.yohobuy.com/common/passport' + '/?callback=?', param, function(_data) { + if (_data && _data.data) { + setLoginStatus(_data.data); + } + }); +} + +actionLoginInfo(); //获取登录信息 + }); define("js/product/entry", ["jquery","handlebars","source-map","lazyload","index","jquery-pjax"], function(require, exports, module){ @@ -2537,97 +2537,97 @@ $('.senior-sub').on('click', '.multi-select', function() { }); define("js/product/sort-pager", ["jquery"], function(require, exports, module){ -/** - * 筛选页和列表页操作banner中的每页N个商品选择逻辑 - * @author: xuqi<qi.xu@yoho.cn> - * @date: 2015/12/4 - */ - -var $ = require("jquery"); - -var $countPerPage = $('#count-per-page'), - $countChose = $countPerPage.next('ul'); - -var SLIDETIME = 200; - -$(document).click(function(e) { - if ($(e.target).closest('.page-count').length > 0) { - return; - } - - $countChose && $countChose.slideUp(SLIDETIME); -}); - -$countPerPage.click(function() { - if ($countChose.css('display') === 'none') { - $countChose.slideDown(SLIDETIME); - } else { - $countChose.slideUp(SLIDETIME); - } +/** + * 筛选页和列表页操作banner中的每页N个商品选择逻辑 + * @author: xuqi<qi.xu@yoho.cn> + * @date: 2015/12/4 + */ + +var $ = require("jquery"); + +var $countPerPage = $('#count-per-page'), + $countChose = $countPerPage.next('ul'); + +var SLIDETIME = 200; + +$(document).click(function(e) { + if ($(e.target).closest('.page-count').length > 0) { + return; + } + + $countChose && $countChose.slideUp(SLIDETIME); +}); + +$countPerPage.click(function() { + if ($countChose.css('display') === 'none') { + $countChose.slideDown(SLIDETIME); + } else { + $countChose.slideUp(SLIDETIME); + } }); }); define("js/product/latest-walk", ["jquery","handlebars","source-map","lazyload"], function(require, exports, module){ -/** - * 最近浏览取接口渲染模板 - * @author: xuqi<qi.xu@yoho.cn> - 8 @date: 2016/1/20 - */ - -var $ = require("jquery"); -var Handlebars = require("handlebars"); -var lazyLoad = require("lazyload"); - -var $latestWalkCount = $('#latest-walk-count'); - -(function() { - var tpl; - - if ($latestWalkCount.length === 0) { - return; - } - - tpl = Handlebars.compile($('#latest-walk-tpl').html()); - - $.ajax({ - url: 'http://www.yohobuy.com/common/recentReview', - dataType: 'jsonp', - data: { - limit: $latestWalkCount.val() - }, - success: function(data) { - var latestWalk = [], - res, i, cur; - - if (data.code === 200) { - res = data.data; - - //若无最近浏览,请隐藏容器 - if (res.length === 0) { - $('.latest-walk').addClass('hide'); - return; - } - for (i = 0; i < res.length; i++) { - cur = res[i]; - - latestWalk.push({ - href: cur.url, - img: cur.pic_url, - name: cur.product_name, - salePrice: cur.price, - marketPrice: cur.market_price - }); - } - - if (latestWalk.length > 0) { - $('#latest-walk-goods').html(tpl({ - latestWalk: latestWalk - })); - - lazyLoad($('#latest-walk-goods .lazy')); - } - } - } - }); +/** + * 最近浏览取接口渲染模板 + * @author: xuqi<qi.xu@yoho.cn> + 8 @date: 2016/1/20 + */ + +var $ = require("jquery"); +var Handlebars = require("handlebars"); +var lazyLoad = require("lazyload"); + +var $latestWalkCount = $('#latest-walk-count'); + +(function() { + var tpl; + + if ($latestWalkCount.length === 0) { + return; + } + + tpl = Handlebars.compile($('#latest-walk-tpl').html()); + + $.ajax({ + url: 'http://www.yohobuy.com/common/recentReview', + dataType: 'jsonp', + data: { + limit: $latestWalkCount.val() + }, + success: function(data) { + var latestWalk = [], + res, i, cur; + + if (data.code === 200) { + res = data.data; + + //若无最近浏览,请隐藏容器 + if (res.length === 0) { + $('.latest-walk').addClass('hide'); + return; + } + for (i = 0; i < res.length; i++) { + cur = res[i]; + + latestWalk.push({ + href: cur.url, + img: cur.pic_url, + name: cur.product_name, + salePrice: cur.price, + marketPrice: cur.market_price + }); + } + + if (latestWalk.length > 0) { + $('#latest-walk-goods').html(tpl({ + latestWalk: latestWalk + })); + + lazyLoad($('#latest-walk-goods .lazy')); + } + } + } + }); }()); }); define("js/product/product", ["jquery","lazyload","handlebars","source-map"], function(require, exports, module){ @@ -3113,214 +3113,214 @@ $.ajax({ }); define("js/product/hotrank", ["jquery","handlebars","source-map","lazyload"], function(require, exports, module){ -/** - * 首页 - * @author: liuyue<yue.liu@yoho.cn> - * @date: 2015/12/17 - */ - -var $ = require("jquery"), - Handlebars = require("handlebars"), - lazyLoad = require("lazyload"); - -require("js/common/slider"); -require("js/common/logo-brand"); - -lazyLoad($('img.lazy')); -$('.slide-container').slider(); -$('.logo-brand').logoBrand({ - showNum: 10, - url: $('.logo-brand').data('url') -}); - -/* - * 一周热卖 - */ -(function($) { - var floatlayer = $('.hot-week').find('.floatlayer'), - sid = $('.hot-cate').find('li').eq(0).data('sid'), - weekOffsetTop, - source, - template, - page = 1, - hotCateW = 0, - weekEnd = false; - - source = '\{{# list}}' + - '<div class="good-info">' + - '<div class="item-img">' + - '<a class="good-thumb" target="_blank" href="\{{url}}">' + - '<img class="lazy" data-original="\{{thumb}}">' + - '</a>' + - '</div>' + - '<div class="good-detail-text">' + - '<a target="_blank" href="{{url}}">{{name}}</a>' + - '<p class="price">' + - '{{# marketPrice}}<span class="market-price">¥{{.}}</span>{{/ marketPrice}} ' + - '<span class="sale-price{{#unless marketPrice}}prime-cost{{/unless}}">' + - '¥{{salePrice}}</span>' + - '</p>' + - '</div>' + - '</div>' + - '{{/ list}}'; - - //监听滚动事件,控制浮层样式及下拉加载更多 - $(window).on('scroll', function() { - var maxH = weekOffsetTop + $('.hot-week').outerHeight(), - sid; - - //热卖右侧浮动导航位置 - weekOffsetTop = $('.hot-week').offset().top; - if ($(this).scrollTop() >= weekOffsetTop - $(window).height() / 2) { - if (floatlayer.offset().top + floatlayer.outerHeight() >= maxH) { - floatlayer.css({ - position: 'absolute', - marginTop: 0, - top: $('.hot-week').outerHeight() - floatlayer.outerHeight() - }); - } else { - floatlayer.css({ - marginTop: -floatlayer.height() / 2 - }).stop().animate({ - opacity: 1 - }, 200, function() { - floatlayer.show(); - }); - } - - } else { - floatlayer.stop().animate({ - opacity: 0 - }, 200, function() { - floatlayer.hide(); - }); - } - - if (floatlayer.offset().top >= $(this).scrollTop() + ($(window).height() - floatlayer.outerHeight()) / 2) { - floatlayer.css({ - position: 'fixed', - marginTop: -floatlayer.height() / 2, - top: '50%' - }); - } - - //下拉加载 - if ($(this).scrollTop() >= weekOffsetTop + $('.hot-week').height() - $(window).height()) { - if (!weekEnd) { - sid = $('.hot-cate').find('li.current').data('sid'); - page++; - weekEnd = true; //防止多次请求 - weekAjax(sid, page); - } - } - - }); - - //热卖横导航及竖导航的超出显示控制 - $('.hot-cate').find('li').each(function(i) { - var maxW = $('.hot-cate').width(); - - if (hotCateW <= maxW) { - hotCateW = hotCateW + $(this).width(); - if (hotCateW >= maxW) { - $('.floatlayer').find('li').eq(i).hide().nextAll().hide(); - } - } - - }); - - //热卖横导航点击事件处理 - $('.hot-cate').on('click', 'li', function() { - var nowIndex = $(this).index(), - sid = $(this).data('sid'); - - if ($(this).hasClass('current')) { - return; - } - - //处理current样式 - $(this).addClass('current').siblings().removeClass('current'); - $('.floatlayer').find('li').removeClass('current').eq(nowIndex).addClass('current'); - - //返回热卖顶部,110为floor-header所占高度 - $('body,html').stop().animate({ - scrollTop: weekOffsetTop - 110 - }, 500); - - //调用ajax请求函数,重置page,weekEnd - weekAjax(sid); - page = 1; - }); - - //热卖右侧悬浮导航点击事件处理 - $('.floatlayer').on('click', 'li', function() { - var nowIndex = $(this).index(); - - if ($(this).hasClass('current')) { - return; - } - - $('.hot-cate').find('li').eq(nowIndex).trigger('click'); - - //处理current样式 - $(this).addClass('current').siblings().removeClass('current'); - $('.hot-cate').find('li').removeClass('current').eq(nowIndex).addClass('current'); - }); - - /* - * 热卖内容ajax请求 - * param: sid(ajax请求的id), page(ajax请求的页码) - */ - function weekAjax(sid, page) { - var param = {}; - - if (page) { - param = { - sid: sid, - page: page - }; - } else { - param = { - sid: sid - }; - } - $.ajax({ - type: 'GET', - dataType: 'json', - url: '/product/index/getdata', - data: param, - success: function(res) { - var data; - - if (res.code === 200) { - data = { - list: res.data - }; - - //mustache渲染数据,并替换原内容 - template = Handlebars.compile(source); - if (page) { - $('.hot-week-list').append(template(data)); - floatlayer.css({ - position: 'fixed', - marginTop: -floatlayer.height() / 2, - top: '50%' - }); - } else { - $('.hot-week-list').html(template(data)); - } - - lazyLoad($('img.lazy')); - weekEnd = false; - } - } - }); - } - - //热卖中导航current类处理 - $('.hot-cate').find('li').eq(0).addClass('current'); - $('.floatlayer').find('li').eq(0).addClass('current'); -})($); +/** + * 首页 + * @author: liuyue<yue.liu@yoho.cn> + * @date: 2015/12/17 + */ + +var $ = require("jquery"), + Handlebars = require("handlebars"), + lazyLoad = require("lazyload"); + +require("js/common/slider"); +require("js/common/logo-brand"); + +lazyLoad($('img.lazy')); +$('.slide-container').slider(); +$('.logo-brand').logoBrand({ + showNum: 10, + url: $('.logo-brand').data('url') +}); + +/* + * 一周热卖 + */ +(function($) { + var floatlayer = $('.hot-week').find('.floatlayer'), + sid = $('.hot-cate').find('li').eq(0).data('sid'), + weekOffsetTop, + source, + template, + page = 1, + hotCateW = 0, + weekEnd = false; + + source = '\{{# list}}' + + '<div class="good-info">' + + '<div class="item-img">' + + '<a class="good-thumb" target="_blank" href="\{{url}}">' + + '<img class="lazy" data-original="\{{thumb}}">' + + '</a>' + + '</div>' + + '<div class="good-detail-text">' + + '<a target="_blank" href="{{url}}">{{name}}</a>' + + '<p class="price">' + + '{{# marketPrice}}<span class="market-price">¥{{.}}</span>{{/ marketPrice}} ' + + '<span class="sale-price{{#unless marketPrice}}prime-cost{{/unless}}">' + + '¥{{salePrice}}</span>' + + '</p>' + + '</div>' + + '</div>' + + '{{/ list}}'; + + //监听滚动事件,控制浮层样式及下拉加载更多 + $(window).on('scroll', function() { + var maxH = weekOffsetTop + $('.hot-week').outerHeight(), + sid; + + //热卖右侧浮动导航位置 + weekOffsetTop = $('.hot-week').offset().top; + if ($(this).scrollTop() >= weekOffsetTop - $(window).height() / 2) { + if (floatlayer.offset().top + floatlayer.outerHeight() >= maxH) { + floatlayer.css({ + position: 'absolute', + marginTop: 0, + top: $('.hot-week').outerHeight() - floatlayer.outerHeight() + }); + } else { + floatlayer.css({ + marginTop: -floatlayer.height() / 2 + }).stop().animate({ + opacity: 1 + }, 200, function() { + floatlayer.show(); + }); + } + + } else { + floatlayer.stop().animate({ + opacity: 0 + }, 200, function() { + floatlayer.hide(); + }); + } + + if (floatlayer.offset().top >= $(this).scrollTop() + ($(window).height() - floatlayer.outerHeight()) / 2) { + floatlayer.css({ + position: 'fixed', + marginTop: -floatlayer.height() / 2, + top: '50%' + }); + } + + //下拉加载 + if ($(this).scrollTop() >= weekOffsetTop + $('.hot-week').height() - $(window).height()) { + if (!weekEnd) { + sid = $('.hot-cate').find('li.current').data('sid'); + page++; + weekEnd = true; //防止多次请求 + weekAjax(sid, page); + } + } + + }); + + //热卖横导航及竖导航的超出显示控制 + $('.hot-cate').find('li').each(function(i) { + var maxW = $('.hot-cate').width(); + + if (hotCateW <= maxW) { + hotCateW = hotCateW + $(this).width(); + if (hotCateW >= maxW) { + $('.floatlayer').find('li').eq(i).hide().nextAll().hide(); + } + } + + }); + + //热卖横导航点击事件处理 + $('.hot-cate').on('click', 'li', function() { + var nowIndex = $(this).index(), + sid = $(this).data('sid'); + + if ($(this).hasClass('current')) { + return; + } + + //处理current样式 + $(this).addClass('current').siblings().removeClass('current'); + $('.floatlayer').find('li').removeClass('current').eq(nowIndex).addClass('current'); + + //返回热卖顶部,110为floor-header所占高度 + $('body,html').stop().animate({ + scrollTop: weekOffsetTop - 110 + }, 500); + + //调用ajax请求函数,重置page,weekEnd + weekAjax(sid); + page = 1; + }); + + //热卖右侧悬浮导航点击事件处理 + $('.floatlayer').on('click', 'li', function() { + var nowIndex = $(this).index(); + + if ($(this).hasClass('current')) { + return; + } + + $('.hot-cate').find('li').eq(nowIndex).trigger('click'); + + //处理current样式 + $(this).addClass('current').siblings().removeClass('current'); + $('.hot-cate').find('li').removeClass('current').eq(nowIndex).addClass('current'); + }); + + /* + * 热卖内容ajax请求 + * param: sid(ajax请求的id), page(ajax请求的页码) + */ + function weekAjax(sid, page) { + var param = {}; + + if (page) { + param = { + sid: sid, + page: page + }; + } else { + param = { + sid: sid + }; + } + $.ajax({ + type: 'GET', + dataType: 'json', + url: '/product/index/getdata', + data: param, + success: function(res) { + var data; + + if (res.code === 200) { + data = { + list: res.data + }; + + //mustache渲染数据,并替换原内容 + template = Handlebars.compile(source); + if (page) { + $('.hot-week-list').append(template(data)); + floatlayer.css({ + position: 'fixed', + marginTop: -floatlayer.height() / 2, + top: '50%' + }); + } else { + $('.hot-week-list').html(template(data)); + } + + lazyLoad($('img.lazy')); + weekEnd = false; + } + } + }); + } + + //热卖中导航current类处理 + $('.hot-cate').find('li').eq(0).addClass('current'); + $('.floatlayer').find('li').eq(0).addClass('current'); +})($); }); define("js/common/slider", ["jquery","lazyload"], function(require, exports, module){ @@ -4681,11620 +4681,11620 @@ $('.share-wrapper').on('click', 'i', function() { }); define("js/product/shop-index", ["jquery","lazyload","handlebars","source-map","jquery-pjax"], function(require, exports, module){ -/** - * 首页 - * @author: bikai<kai.bi@yoho.cn> - * @date: 2016/4/26 - */ - -var $ = require("jquery"), - lazyLoad = require("lazyload"), - product = require("js/product/product"); - -var $shopIntro = $('.shop-intro'), - $shopCollect = $('.shop-collect'), - $sliderLeft = $('.slider-left'), - $allGoods = $('.all-goods'), - $fixedArea = $allGoods.find('.fixed-area'), - fixedAreaTop = $fixedArea.offset() ? $fixedArea.offset().top : 0; - -// Pjax -require("jquery-pjax"); - -require("js/common/slider"); -require("js/product/list"); - -product.init(4); - -lazyLoad($('img.lazy')); - -if ($sliderLeft.length) { - $sliderLeft.slider(); -} - -$shopIntro.on('click', function() { - $('.pop-shop-intro').show(); - $('.mask').show(); -}); - -$('.close-btn, .mask').on('click', function() { - $('.pop-shop-intro').hide(); - $('.mask').hide(); -}); - - -// 收藏店铺 -function colloectAction() { - var $colloectIcon = $shopCollect.find('.shop-collect-ico'), - $colloectText = $shopCollect.find('.shop-collect-text'), - isFavorite = $colloectIcon.hasClass('on'), - needColloect = window.cookie('needColloect'); - - $.ajax({ - type: 'post', - url: '/shoplist/setFavorite', - data: { - isFavorite: isFavorite ? 0 : 1, - needColloect: needColloect, - shopId: $shopCollect.data('id') - }, - success: function(res) { - if (res.code === 200) { - if (isFavorite) { - $colloectIcon.removeClass('on'); - $colloectText.html('收藏'); - } else { - $colloectIcon.addClass('on'); - $colloectText.html('已收藏'); - } - - if (needColloect) { - $colloectIcon.addClass('on'); - $colloectText.html('已收藏'); - } - } else if (res.code === 401) { - window.setCookie('needColloect', '1', { - path: '/', - domain: '.yohobuy.com', - expires: 90 - }); - location.href = res.url; - } - } - }); -} - -$shopCollect.on('click', function() { - colloectAction(); -}); - -if (window.cookie('needColloect') * 1 === 1 && window.getUid()) { - colloectAction(); - window.setCookie('needColloect', '', { - path: '/', - domain: '.yohobuy.com', - expires: 1 - }); -} - -// 全部商品使用 pjax 翻页 -$allGoods.pjax('a.pjax', '.goods-wrap', { - timeout: 5000, - scrollTo: false // 默认滚动没有动画,禁止掉 -}).on('pjax:end', function() { - product.init(4); - lazyLoad($('img.lazy')); - - $fixedArea = $allGoods.find('.fixed-area'); // 翻页后 fixed-area 区域有变化,需要更新选择器 - - // 分页后移动到全部商品 - $('html, body').animate({ - scrollTop: $allGoods.offset().top - 30 - }); -}).on('click', '.menu-list li', function() { - var $this = $(this); - - $this.siblings().removeClass('on'); - $this.addClass('on'); -}); - -$(window).on('scroll', function() { - var scrollTop = $(this).scrollTop(); - - if (scrollTop > fixedAreaTop) { - $fixedArea.css({ - position: 'fixed', - top: 0 - }); - } else { - $fixedArea.css({ - position: 'static', - top: 0 - }); - } -}); +/** + * 首页 + * @author: bikai<kai.bi@yoho.cn> + * @date: 2016/4/26 + */ + +var $ = require("jquery"), + lazyLoad = require("lazyload"), + product = require("js/product/product"); +var $shopIntro = $('.shop-intro'), + $shopCollect = $('.shop-collect'), + $sliderLeft = $('.slider-left'), + $allGoods = $('.all-goods'), + $fixedArea = $allGoods.find('.fixed-area'), + fixedAreaTop = $fixedArea.offset() ? $fixedArea.offset().top : 0; + +// Pjax +require("jquery-pjax"); + +require("js/common/slider"); +require("js/product/list"); + +product.init(4); + +lazyLoad($('img.lazy')); + +if ($sliderLeft.length) { + $sliderLeft.slider(); +} + +$shopIntro.on('click', function() { + $('.pop-shop-intro').show(); + $('.mask').show(); }); -define("js/index/index", ["jquery","lazyload","handlebars","source-map"], function(require, exports, module){ -/** - * 首页 - * @author: xuqi<qi.xu@yoho.cn> - * @date: 2015/11/23 - */ - -var $ = require("jquery"), - lazyLoad = require("lazyload"), - homePage = $('.home-page').data('page'), - brandUrl = $('.logo-brand').data('url'); - - -require("js/common/slider"); -require("js/common/slider2"); -require("js/common/logo-brand"); - -require("js/common/accordion"); - -$(document).on('mouseenter', '.imgopacity a img', function() { - $(this).css('opacity', 0.8); -}); -$(document).on('mouseout', '.imgopacity a img', function() { - $(this).css('opacity', 1); -}); - - - -if ($.inArray(homePage, ['boys','girls','kids','lifestyle']) > -1) { - require("js/common/new-arrivls")({ - type: homePage, - url: '/common/getNewArrival', - count: (homePage === 'boys') || (homePage === 'lifestyle') ? 5 : 4, - rows: [5,3] - }); - window.setCookie('_Channel', homePage, { - domain: '.yohobuy.com', - path: '/', - expires: 365 - }); -} - - - -lazyLoad($('img.lazy')); -if (homePage === 'boys') { - $('.slide-container').slider({ - pagination: '.thumb-pagination' - }); -} else { - $('.center-col').slider(); - $('.slide-container').slider(); -} - -if (homePage === 'boys') { - $('.logo-brand').logoBrand({ - url: brandUrl - }); - $('.img-brand').slider2(); -} else { - $('.logo-brand').logoBrand({ - showNum: 10, - url: brandUrl - }); - $('.img-slider-wrapper').slider2(); -} - - + +$('.close-btn, .mask').on('click', function() { + $('.pop-shop-intro').hide(); + $('.mask').hide(); +}); + + +// 收藏店铺 +function colloectAction() { + var $colloectIcon = $shopCollect.find('.shop-collect-ico'), + $colloectText = $shopCollect.find('.shop-collect-text'), + isFavorite = $colloectIcon.hasClass('on'), + needColloect = window.cookie('needColloect'); + + $.ajax({ + type: 'post', + url: '/shoplist/setFavorite', + data: { + isFavorite: isFavorite ? 0 : 1, + needColloect: needColloect, + shopId: $shopCollect.data('id') + }, + success: function(res) { + if (res.code === 200) { + if (isFavorite) { + $colloectIcon.removeClass('on'); + $colloectText.html('收藏'); + } else { + $colloectIcon.addClass('on'); + $colloectText.html('已收藏'); + } + + if (needColloect) { + $colloectIcon.addClass('on'); + $colloectText.html('已收藏'); + } + } else if (res.code === 401) { + window.setCookie('needColloect', '1', { + path: '/', + domain: '.yohobuy.com', + expires: 90 + }); + location.href = res.url; + } + } + }); +} + +$shopCollect.on('click', function() { + colloectAction(); +}); + +if (window.cookie('needColloect') * 1 === 1 && window.getUid()) { + colloectAction(); + window.setCookie('needColloect', '', { + path: '/', + domain: '.yohobuy.com', + expires: 1 + }); +} + +// 全部商品使用 pjax 翻页 +$allGoods.pjax('a.pjax', '.goods-wrap', { + timeout: 5000, + scrollTo: false // 默认滚动没有动画,禁止掉 +}).on('pjax:end', function() { + product.init(4); + lazyLoad($('img.lazy')); + + $fixedArea = $allGoods.find('.fixed-area'); // 翻页后 fixed-area 区域有变化,需要更新选择器 + + // 分页后移动到全部商品 + $('html, body').animate({ + scrollTop: $allGoods.offset().top - 30 + }); +}).on('click', '.menu-list li', function() { + var $this = $(this); + + $this.siblings().removeClass('on'); + $this.addClass('on'); +}); + +$(window).on('scroll', function() { + var scrollTop = $(this).scrollTop(); + + if (scrollTop > fixedAreaTop) { + $fixedArea.css({ + position: 'fixed', + top: 0 + }); + } else { + $fixedArea.css({ + position: 'static', + top: 0 + }); + } +}); + +}); +define("js/index/index", ["jquery","lazyload","handlebars","source-map"], function(require, exports, module){ +/** + * 首页 + * @author: xuqi<qi.xu@yoho.cn> + * @date: 2015/11/23 + */ + +var $ = require("jquery"), + lazyLoad = require("lazyload"), + homePage = $('.home-page').data('page'), + brandUrl = $('.logo-brand').data('url'); + + +require("js/common/slider"); +require("js/common/slider2"); +require("js/common/logo-brand"); + +require("js/common/accordion"); + +$(document).on('mouseenter', '.imgopacity a img', function() { + $(this).css('opacity', 0.8); +}); +$(document).on('mouseout', '.imgopacity a img', function() { + $(this).css('opacity', 1); +}); + + + +if ($.inArray(homePage, ['boys','girls','kids','lifestyle']) > -1) { + require("js/common/new-arrivls")({ + type: homePage, + url: '/common/getNewArrival', + count: (homePage === 'boys') || (homePage === 'lifestyle') ? 5 : 4, + rows: [5,3] + }); + window.setCookie('_Channel', homePage, { + domain: '.yohobuy.com', + path: '/', + expires: 365 + }); +} + + + +lazyLoad($('img.lazy')); +if (homePage === 'boys') { + $('.slide-container').slider({ + pagination: '.thumb-pagination' + }); +} else { + $('.center-col').slider(); + $('.slide-container').slider(); +} + +if (homePage === 'boys') { + $('.logo-brand').logoBrand({ + url: brandUrl + }); + $('.img-brand').slider2(); +} else { + $('.logo-brand').logoBrand({ + showNum: 10, + url: brandUrl + }); + $('.img-slider-wrapper').slider2(); +} + + }); define("js/common/slider2", ["jquery"], function(require, exports, module){ -/** - * (品牌优选)图片幻灯片插件 - * @author: wangqing(robin.wang@yoho.cn) - * @date: 205/7/2 - */ -var $ = require("jquery"); - -(function($) { - $.fn.slider2 = function(options) { - function autoplay(index, limit, toright) { - if (toright === true) { - $('.next').trigger('click'); - if (index === (limit - 3)) { - autoplayrecycle(--index, limit, false); - } else { - autoplayrecycle(++index, limit, true); - } - } else { - $('.prev').trigger('click'); - if (index === 0) { - autoplayrecycle(++index, limit, true); - } else { - autoplayrecycle(--index, limit, false); - } - } - } - - function autoplayrecycle(index, limit, toright) { - window.setTimeout(autoplay, $.fn.slider2.defaults.delaytime, index, limit, toright); - } - - function changePic(index, width, callback) { - var offersetleft = -(index * width); - - $('.img-list') - .animate({ - 'margin-left': offersetleft + 'px' - }, 'slow', callback); - - } - $.fn.slider2.defaults = { - index: 0, - shownum: 3, - autoplay: false, - delaytime: 3000 - }; - return this.each(function() { - var opts = $.extend({}, $.fn.slider2.defaults, options); - var mr = parseInt($('.img-item').css('margin-right')); - var $banneritems = $('.img-item'); - var bannerarr = []; - var _width = $banneritems.outerWidth() + mr, - _size = $banneritems.length, - j = 0; - - if (_size <= 3) { - $(this).find('.img-brand-switch').hide(); - return; - } - for (j = 0; j < $banneritems.length; j++) { - bannerarr.push($banneritems[j]); - } - _size = bannerarr.length; - $(this).find('.img-list').css({ - width: (_width * _size) - }); - $(this).find('.next').on('click', function(e) { - var i = 0, - _obj = null; - - e.preventDefault(); - - changePic(3, _width, function() { - for (i = 0; i < 3; i++) { - _obj = bannerarr.shift(); - - $('.img-item').parent().append(_obj.outerHTML); - bannerarr.push(_obj); - } - $('.img-item').first().remove(); - $('.img-item').first().remove(); - $('.img-item').first().remove(); - $('.img-list').css({ - 'margin-left': '0' - }); - }); - }); - $(this).find('.prev').on('click', function(e) { - var i = 0, - _obj = null, - offersetleft = ''; - - e.preventDefault(); - for (i = 0; i < 3; i++) { - _obj = bannerarr.pop(); - - $('.img-item').parent().prepend(_obj.outerHTML); - bannerarr.unshift(_obj); - } - offersetleft = 3 * _width; - $('.img-item').last().remove(); - $('.img-item').last().remove(); - $('.img-item').last().remove(); - $('.img-list').css({ - 'margin-left': -offersetleft + 'px' - }); - changePic(0, _width); - }); - if (opts.autoplay === true) { - autoplayrecycle(opts.index, _size, true); - } - }); - - }; - +/** + * (品牌优选)图片幻灯片插件 + * @author: wangqing(robin.wang@yoho.cn) + * @date: 205/7/2 + */ +var $ = require("jquery"); + +(function($) { + $.fn.slider2 = function(options) { + function autoplay(index, limit, toright) { + if (toright === true) { + $('.next').trigger('click'); + if (index === (limit - 3)) { + autoplayrecycle(--index, limit, false); + } else { + autoplayrecycle(++index, limit, true); + } + } else { + $('.prev').trigger('click'); + if (index === 0) { + autoplayrecycle(++index, limit, true); + } else { + autoplayrecycle(--index, limit, false); + } + } + } + + function autoplayrecycle(index, limit, toright) { + window.setTimeout(autoplay, $.fn.slider2.defaults.delaytime, index, limit, toright); + } + + function changePic(index, width, callback) { + var offersetleft = -(index * width); + + $('.img-list') + .animate({ + 'margin-left': offersetleft + 'px' + }, 'slow', callback); + + } + $.fn.slider2.defaults = { + index: 0, + shownum: 3, + autoplay: false, + delaytime: 3000 + }; + return this.each(function() { + var opts = $.extend({}, $.fn.slider2.defaults, options); + var mr = parseInt($('.img-item').css('margin-right')); + var $banneritems = $('.img-item'); + var bannerarr = []; + var _width = $banneritems.outerWidth() + mr, + _size = $banneritems.length, + j = 0; + + if (_size <= 3) { + $(this).find('.img-brand-switch').hide(); + return; + } + for (j = 0; j < $banneritems.length; j++) { + bannerarr.push($banneritems[j]); + } + _size = bannerarr.length; + $(this).find('.img-list').css({ + width: (_width * _size) + }); + $(this).find('.next').on('click', function(e) { + var i = 0, + _obj = null; + + e.preventDefault(); + + changePic(3, _width, function() { + for (i = 0; i < 3; i++) { + _obj = bannerarr.shift(); + + $('.img-item').parent().append(_obj.outerHTML); + bannerarr.push(_obj); + } + $('.img-item').first().remove(); + $('.img-item').first().remove(); + $('.img-item').first().remove(); + $('.img-list').css({ + 'margin-left': '0' + }); + }); + }); + $(this).find('.prev').on('click', function(e) { + var i = 0, + _obj = null, + offersetleft = ''; + + e.preventDefault(); + for (i = 0; i < 3; i++) { + _obj = bannerarr.pop(); + + $('.img-item').parent().prepend(_obj.outerHTML); + bannerarr.unshift(_obj); + } + offersetleft = 3 * _width; + $('.img-item').last().remove(); + $('.img-item').last().remove(); + $('.img-item').last().remove(); + $('.img-list').css({ + 'margin-left': -offersetleft + 'px' + }); + changePic(0, _width); + }); + if (opts.autoplay === true) { + autoplayrecycle(opts.index, _size, true); + } + }); + + }; + }($)); }); define("js/common/accordion", ["jquery"], function(require, exports, module){ -var Slide = require("js/common/yohoui/YH.slide"); -var $ = require("jquery"); - -var $contain = $('.slide-accordion'); -var $item = $contain.find('li'); - -var $width = $item.width(); -var $spn = parseInt($('.home-page').width()) === 1150 ? (120 + 5) : (102 + 5); -var slide; - -function switchfun(to) { - $item.each(function(index) { - $(this).css('zIndex', index); - if (index <= to) { - $(this).stop().animate({ - left: index * $spn - }, 400); - } else { - $(this).stop().animate({ - left: (to) * $spn + $width + $spn * (index - to - 1) - }, 400); - } - }); -} - -switchfun(0); - -slide = new Slide({ - length: 5, - loop: false, - auto: false, - timeout: 2, - index: 0 -}); - -slide.on('change', function(data) { - switchfun(data.to); -}); - -$item.mouseover(function() { - slide.go($(this).index()); -}); - +var Slide = require("js/common/yohoui/YH.slide"); +var $ = require("jquery"); + +var $contain = $('.slide-accordion'); +var $item = $contain.find('li'); + +var $width = $item.width(); +var $spn = parseInt($('.home-page').width()) === 1150 ? (120 + 5) : (102 + 5); +var slide; + +function switchfun(to) { + $item.each(function(index) { + $(this).css('zIndex', index); + if (index <= to) { + $(this).stop().animate({ + left: index * $spn + }, 400); + } else { + $(this).stop().animate({ + left: (to) * $spn + $width + $spn * (index - to - 1) + }, 400); + } + }); +} + +switchfun(0); + +slide = new Slide({ + length: 5, + loop: false, + auto: false, + timeout: 2, + index: 0 +}); + +slide.on('change', function(data) { + switchfun(data.to); +}); + +$item.mouseover(function() { + slide.go($(this).index()); +}); + slide.init(); }); define("js/common/yohoui/YH.slide", [], function(require, exports, module){ -var me = require("js/common/yohoui/YH.base"); - -var slide = function(options) { - this.__lastTime = null; - this.__isStop = false; - options = me.extend(this.defaults, options); - slide.superclass.constructor.call(this, options); -}; - -me.inherit(slide, me.assembly); - -slide.prototype.oninit = function() { - var __self = this, - _o = __self.options; - - if (_o.auto) { - __self.play(); - } - __self.go(_o.index); - return this; -}; - -slide.prototype.go = function(_to, _from) { - var __self = this, - _o = __self.options; - var _direction,_loop,_current,_index,_originalto,o,key,_e; - - if (__self.__lastTime) { - clearTimeout(__self.__lastTime); - __self.__lastTime = null; - } - _from = 'undefined' === typeof _from ? _o.index : _from; - _direction = _to === _from ? 0 : _to > _from ? 1 : -1; - _loop = _o.loop, _index = _o.length - 1, _originalto = _to; - if (_loop) { - if (_to > _index) { - _to = _to - _index - 1; - } else { - if (0 > _to) { - _to = _to + _index + 1; - } else { - _to = _to; - } - } - } else { - if (_to > _index) { - _to = _index; - } else { - if (0 > _to) { - _to = 0; - } else { - _to = _to; - } - } - } - _current = _o.index = _to; - - o = { - from: _from, - to: _to, - originalto: _originalto, - direction: _direction - }; - - for (key in __self.registerEvent) { - if (__self.registerEvent[key].length > 0) { - for (_e in __self.registerEvent[key]) { - if (__self.registerEvent[key].hasOwnProperty(_e)) { - __self.registerEvent[key][_e](o); - } - } - } - } - - if (_current !== _index || _to) { - if (!__self.__isStop && _o.auto) { - __self.play(); - } - } else { - if (__self.__lastTime) { - clearTimeout(__self.__lastTime); - } - } -}; - -slide.prototype.play = function() { - var __self = this, - _o = __self.options; - - __self.__lastTime = setTimeout(function() { - __self.next(); - }, 1000 * _o.timeout); - return this; -}; - -slide.prototype.next = function() { - var __self = this, - _o = __self.options; - var _from = _o.index; - var _to = _from + _o.step; - - __self.go(_to, _from); -}; - -slide.prototype.prev = function() { - var __self = this, - _o = __self.options; - var _from = _o.index; - var _to = _from - _o.step; - - __self.go(_to, _from); -}; - -slide.prototype.pause = function() { - var __self = this; - - if (__self.__lastTime) { - clearTimeout(__self.__lastTime); - } - __self.__isStop = true; -}; - -slide.prototype.resume = function() { - var __self = this; - - __self.__isStop = false; - __self.play(); -}; - -slide.prototype.defaults = { - index: 0, - timeout: 5, - step: 1, - per: 1, - auto: false, - loop: false -}; - +var me = require("js/common/yohoui/YH.base"); + +var slide = function(options) { + this.__lastTime = null; + this.__isStop = false; + options = me.extend(this.defaults, options); + slide.superclass.constructor.call(this, options); +}; + +me.inherit(slide, me.assembly); + +slide.prototype.oninit = function() { + var __self = this, + _o = __self.options; + + if (_o.auto) { + __self.play(); + } + __self.go(_o.index); + return this; +}; + +slide.prototype.go = function(_to, _from) { + var __self = this, + _o = __self.options; + var _direction,_loop,_current,_index,_originalto,o,key,_e; + + if (__self.__lastTime) { + clearTimeout(__self.__lastTime); + __self.__lastTime = null; + } + _from = 'undefined' === typeof _from ? _o.index : _from; + _direction = _to === _from ? 0 : _to > _from ? 1 : -1; + _loop = _o.loop, _index = _o.length - 1, _originalto = _to; + if (_loop) { + if (_to > _index) { + _to = _to - _index - 1; + } else { + if (0 > _to) { + _to = _to + _index + 1; + } else { + _to = _to; + } + } + } else { + if (_to > _index) { + _to = _index; + } else { + if (0 > _to) { + _to = 0; + } else { + _to = _to; + } + } + } + _current = _o.index = _to; + + o = { + from: _from, + to: _to, + originalto: _originalto, + direction: _direction + }; + + for (key in __self.registerEvent) { + if (__self.registerEvent[key].length > 0) { + for (_e in __self.registerEvent[key]) { + if (__self.registerEvent[key].hasOwnProperty(_e)) { + __self.registerEvent[key][_e](o); + } + } + } + } + + if (_current !== _index || _to) { + if (!__self.__isStop && _o.auto) { + __self.play(); + } + } else { + if (__self.__lastTime) { + clearTimeout(__self.__lastTime); + } + } +}; + +slide.prototype.play = function() { + var __self = this, + _o = __self.options; + + __self.__lastTime = setTimeout(function() { + __self.next(); + }, 1000 * _o.timeout); + return this; +}; + +slide.prototype.next = function() { + var __self = this, + _o = __self.options; + var _from = _o.index; + var _to = _from + _o.step; + + __self.go(_to, _from); +}; + +slide.prototype.prev = function() { + var __self = this, + _o = __self.options; + var _from = _o.index; + var _to = _from - _o.step; + + __self.go(_to, _from); +}; + +slide.prototype.pause = function() { + var __self = this; + + if (__self.__lastTime) { + clearTimeout(__self.__lastTime); + } + __self.__isStop = true; +}; + +slide.prototype.resume = function() { + var __self = this; + + __self.__isStop = false; + __self.play(); +}; + +slide.prototype.defaults = { + index: 0, + timeout: 5, + step: 1, + per: 1, + auto: false, + loop: false +}; + module.exports = slide; }); define("js/common/yohoui/YH.base", [], function(require, exports, module){ -var assembly; -var classtype = { - '[object Array]': 'array', - '[object Boolean]': 'boolean', - '[object Date]': 'date', - '[object Function]': 'function', - '[object Number]': 'number', - '[object Object]': 'object', - '[object RegExp]': 'regexp', - '[object String]': 'string' - }; -var me = { - __Index: 0, - list: [], - get: function(id) { - return id === undefined ? this.list : this.list[id]; - }, - fn: function() { }, - inherit: function(childClass, parentClass) { - var Constructor = me.fn; - - Constructor.prototype = parentClass.prototype; - childClass.prototype = new Constructor(); - - childClass.prototype.constructor = childClass; - childClass.superclass = parentClass.prototype; - - if (childClass.prototype.constructor === Object.prototype.constructor) { - childClass.prototype.constructor = parentClass; - } - }, - extend: function(obj, newProperties) { - var key; - - for (key in newProperties) { - if (newProperties.hasOwnProperty(key)) { - obj[key] = newProperties[key]; - } - } - return obj; - }, - copy: function(TargetClass, obj, newProperties) { - var value,o,key; - - if (typeof obj !== 'object') { - return obj; - } - value = obj.valueOf(); - if (obj !== value) { - return new obj.constructor(value); - } - if (obj instanceof obj.constructor && obj.constructor !== Object) { - if (TargetClass) { - o = new TargetClass(); - } else { - o = me.clone(obj.constructor.prototype); - } - - for (key in obj) { - if (TargetClass || obj.hasOwnProperty(key)) { - o[key] = obj[key]; - } - } - } else { - o = {}; - for (key in obj) { - if (o.hasOwnProperty(key)) { - o[key] = obj[key]; - } - } - } - if (newProperties) { - for (key in newProperties) { - if (o.hasOwnProperty(key)) { - o[key] = newProperties[key]; - } - } - } - - return o; - }, - clone: function(obj) { - me.__cloneFunc.prototype = obj; - return new me.__cloneFunc(); - }, - __cloneFunc: function() { - }, - delegate: function(func, scope) { - var args; - - scope = scope || window; - - if (arguments.length > 2) { - args = Array.prototype.slice.call(arguments, 2); - - return function() { - return func.apply(scope, args); - }; - } else { - return function() { - return func.call(scope); - }; - } - }, - dom: function($select, classCss) { - var wrap = $select; - var name, DOM = { - wrap: wrap - }, - els = wrap[0].getElementsByTagName('*'), - elsLen = els.length; - var i; - - for (i = 0; i < elsLen; i++) { - name = els[i].className; - if (name.indexOf(classCss) > -1) { - name = name.split(classCss)[1]; - } - if (name) { - DOM[name] = wrap.find(els[i]); - } - } - return DOM; - }, - - //模板引擎 - template: function() { - var result, key, reg,i; - var args = arguments; - - if (args.length > 0) { - if (me.isString(args[0])) { - result = args[0]; - if (args.length === 2 && me.isObject(args[1])) { - for (key in args[1]) { - if (args[1][key] !== undefined) { - reg = new RegExp('({' + key + '})', 'g'); - - result = result.replace(reg, args[1][key]); - } - } - } else { - for (i = 1; i < args.length; i++) { - if (args[i] !== undefined) { - reg = new RegExp('({[' + (i - 1) + ']})', 'g'); - - result = result.replace(reg, args[i]); - } - } - } - } - } - return result; - }, - __type: function(obj) { - return obj == null ? String(obj) : classtype[Object.prototype.toString.call(obj)] || 'object'; - }, - isObject: function(obj) { - return this.isFunction(obj) || !!(obj && 'object' === typeof obj); - }, - isFunction: function(obj) { - return this.__type(obj) === 'function'; - }, - isArray: Array.isArray || function(obj) { - return this.__type(obj) === 'array'; - }, - isNum: function(obj) { - return !isNaN(parseFloat(obj)) && isFinite(obj); - }, - isString: function(obj) { - return this.__type(obj) === 'string'; - }, - each: function(data, callback, args) { - var i, len; - - if (me.isArray(data)) { - for (i = 0, len = data.length; i < len; i++) { - if (callback.call(data[i], i, data[i], args) === false) { - break; - } - } - } else { - - for (i in data) { - if (callback.call(data[i], i, data[i], args) === false) { - break; - } - } - } - }, - funManager: { - __loadList: {}, - __loadFun: function(item, callback, win) { - - if (item.methord && me.isFunction(item.methord())) { - win = win || window; - item.methord()(item, function() { - callback(); - }, win); - } - }, - load: function(fns, statechange, win, __index) { - __index = __index || 0; - - if (fns[__index]) { - me.funManager.__loadFun(fns[__index], function() { - me.funManager.load(fns, statechange, win, __index + 1); - }, win); - } - statechange(__index, win); - }, - get: function(id) { - return this.__loadList[id]; - } - }, - log: function(msg) { - var console = window.console || { - log: function() { } - }; - - console.log(msg); - }, - Event: { - mousewheel: function(e) { - var _eoe = e.originalEvent; - var _de = _eoe.detail ? _eoe.detail * -1 : _eoe.wheelDelta / 40; - var _direction = _de < 0 ? -1 : 1; - - return { - direction: _direction, - unit: _de - }; - }, - __: function(_e, el, event, handle) { - var key; - - for (key in _e) { - if (window[_e[key].validator]) { - el[_e[key].validator](_e[key].prefix + event, handle, false); - break; - } - } - }, - add: function(el, event, handle) { - var _e = [ - { - validator: 'addEventListener', - prefix: '' - }, - { - validator: 'attachEvent', - prefix: 'on' - } - ]; - - this.__(_e, el, event, handle); - }, - remove: function(el, event, handle) { - var _e = [ - { - validator: 'removeEventListener', - prefix: '' - }, - { - validator: 'detachEvent', - prefix: 'on' - } - ]; - - this.__(_e, el, event, handle); - } - }, - getUid: function(_name) { - return me.template('me-{0}{1}-{2}', _name, new Date().getTime(), me.__Index++); - }, - Browser: { - isTouch: function() { - var msGesture = window.navigator && window.navigator.msPointerEnabled && window.MSGesture; - - return (('ontouchstart' in window) || msGesture || window.DocumentTouch) ? true : false; - }, - Prefix: function() { - var i; - - var props = ['perspectiveProperty', 'WebkitPerspective', 'MozPerspective', 'OPerspective', 'msPerspective']; - var obj = document.createElement('div'); - - for (i in props) { - if (obj.style[props[i]] !== undefined) { - return me.template('-{0}-', props[i].replace('Perspective', '').toLowerCase()); - } - } - }, - parseURL: function(url) { - var a = document.createElement('a'); - var ret,seg,len,i,s; - - a.href = url; - return { - source: url, - protocol: a.protocol.replace(':', ''), - host: a.hostname, - port: a.port, - query: a.search, - params: (function() { - ret = {}, - seg = a.search.replace(/^\?/, '').split('&'), - len = seg.length, i = 0, s; - - for (; i < len; i++) { - if (!seg[i]) { - continue; - } - s = seg[i].split('='); - ret[s[0]] = s[1]; - } - return ret; - })(), - file: (a.pathname.match(/\/([^\/?#]+)$/i) || [null, ''])[1], - hash: a.hash.replace('#', ''), - path: a.pathname.replace(/^([^\/])/, '/$1'), - relative: (a.href.match(/tps?:\/\/[^\/]+(.+)/) || [null, ''])[1], - segments: a.pathname.replace(/^\//, '').split('/') - }; - } - }, - Array: { - indexOf: function(array, val) { - var i; - - for (i = 0; i < array.length; i++) { - if (this[i] === val) { - return i; - } - } - return -1; - }, - remove: function(array, val) { - var index = this.indexOf(array, val); - - if (index > -1) { - array.splice(index, 1); - } - return array; - } - } -}; - -assembly = function(options) { - this.initialized = false; - this.registerEvent = { - before: [], - change: [], - after: [] - }; - this.options = options; - - this.init(options); -}; - -assembly.output = function() { - me.log(me.list); -}; -assembly.prototype.oninit = me.fn; - -assembly.prototype.init = function(cfg) { - this.initialized = true; - - // function _getClassName(_constructor, _constr) { - // var _constr = _constr || ""; - // if (_constructor.superclass) { - // var args = /(\w+)\.superclass/.exec(_constructor.arguments.callee); - // if (args != null) { - // _constr += args[1] + "-"; - // // return _getClassName(_constructor.superclass.constructor, _constr); - // } - // } - // return _constr; - // } - this.__Uid = me.getUid('me'); - this.oninit(cfg); - me.list[this.__Uid] = this; -}; -assembly.prototype.destory = function() { - this.initialized = false; - delete me.list[this.__Uid]; -}; -assembly.prototype.getUid = function() { - return this.__Uid; -}; -assembly.prototype.getOptions = function() { - return this.options; -}; -assembly.prototype.config = function() { - if (arguments.length > 0) { - if (typeof (arguments[0]) === 'string') { - if (arguments.length > 1) { - this.options[arguments[0]] = arguments[1]; - } else { - return this.options[name]; - } - } - } else { - return this.options; - } -}; -assembly.prototype.on = function(name, callback) { - var __self = this; - var _e = __self.registerEvent[name]; - - if (_e) { - _e.push(callback); - } - return _e; -}; -assembly.prototype.off = function(name, callback) { - var __self = this; - var _e = __self.registerEvent[name]; - var e = []; - - me.each(_e, function(name, _callback) { - - if (_callback === callback) { - e.push(name); - } - }); - - me.each(e.reverse(), function(name, _callback) { - _e.splice(_callback, 1); - }); -}; -me.assembly = assembly; - +var assembly; +var classtype = { + '[object Array]': 'array', + '[object Boolean]': 'boolean', + '[object Date]': 'date', + '[object Function]': 'function', + '[object Number]': 'number', + '[object Object]': 'object', + '[object RegExp]': 'regexp', + '[object String]': 'string' + }; +var me = { + __Index: 0, + list: [], + get: function(id) { + return id === undefined ? this.list : this.list[id]; + }, + fn: function() { }, + inherit: function(childClass, parentClass) { + var Constructor = me.fn; + + Constructor.prototype = parentClass.prototype; + childClass.prototype = new Constructor(); + + childClass.prototype.constructor = childClass; + childClass.superclass = parentClass.prototype; + + if (childClass.prototype.constructor === Object.prototype.constructor) { + childClass.prototype.constructor = parentClass; + } + }, + extend: function(obj, newProperties) { + var key; + + for (key in newProperties) { + if (newProperties.hasOwnProperty(key)) { + obj[key] = newProperties[key]; + } + } + return obj; + }, + copy: function(TargetClass, obj, newProperties) { + var value,o,key; + + if (typeof obj !== 'object') { + return obj; + } + value = obj.valueOf(); + if (obj !== value) { + return new obj.constructor(value); + } + if (obj instanceof obj.constructor && obj.constructor !== Object) { + if (TargetClass) { + o = new TargetClass(); + } else { + o = me.clone(obj.constructor.prototype); + } + + for (key in obj) { + if (TargetClass || obj.hasOwnProperty(key)) { + o[key] = obj[key]; + } + } + } else { + o = {}; + for (key in obj) { + if (o.hasOwnProperty(key)) { + o[key] = obj[key]; + } + } + } + if (newProperties) { + for (key in newProperties) { + if (o.hasOwnProperty(key)) { + o[key] = newProperties[key]; + } + } + } + + return o; + }, + clone: function(obj) { + me.__cloneFunc.prototype = obj; + return new me.__cloneFunc(); + }, + __cloneFunc: function() { + }, + delegate: function(func, scope) { + var args; + + scope = scope || window; + + if (arguments.length > 2) { + args = Array.prototype.slice.call(arguments, 2); + + return function() { + return func.apply(scope, args); + }; + } else { + return function() { + return func.call(scope); + }; + } + }, + dom: function($select, classCss) { + var wrap = $select; + var name, DOM = { + wrap: wrap + }, + els = wrap[0].getElementsByTagName('*'), + elsLen = els.length; + var i; + + for (i = 0; i < elsLen; i++) { + name = els[i].className; + if (name.indexOf(classCss) > -1) { + name = name.split(classCss)[1]; + } + if (name) { + DOM[name] = wrap.find(els[i]); + } + } + return DOM; + }, + + //模板引擎 + template: function() { + var result, key, reg,i; + var args = arguments; + + if (args.length > 0) { + if (me.isString(args[0])) { + result = args[0]; + if (args.length === 2 && me.isObject(args[1])) { + for (key in args[1]) { + if (args[1][key] !== undefined) { + reg = new RegExp('({' + key + '})', 'g'); + + result = result.replace(reg, args[1][key]); + } + } + } else { + for (i = 1; i < args.length; i++) { + if (args[i] !== undefined) { + reg = new RegExp('({[' + (i - 1) + ']})', 'g'); + + result = result.replace(reg, args[i]); + } + } + } + } + } + return result; + }, + __type: function(obj) { + return obj == null ? String(obj) : classtype[Object.prototype.toString.call(obj)] || 'object'; + }, + isObject: function(obj) { + return this.isFunction(obj) || !!(obj && 'object' === typeof obj); + }, + isFunction: function(obj) { + return this.__type(obj) === 'function'; + }, + isArray: Array.isArray || function(obj) { + return this.__type(obj) === 'array'; + }, + isNum: function(obj) { + return !isNaN(parseFloat(obj)) && isFinite(obj); + }, + isString: function(obj) { + return this.__type(obj) === 'string'; + }, + each: function(data, callback, args) { + var i, len; + + if (me.isArray(data)) { + for (i = 0, len = data.length; i < len; i++) { + if (callback.call(data[i], i, data[i], args) === false) { + break; + } + } + } else { + + for (i in data) { + if (callback.call(data[i], i, data[i], args) === false) { + break; + } + } + } + }, + funManager: { + __loadList: {}, + __loadFun: function(item, callback, win) { + + if (item.methord && me.isFunction(item.methord())) { + win = win || window; + item.methord()(item, function() { + callback(); + }, win); + } + }, + load: function(fns, statechange, win, __index) { + __index = __index || 0; + + if (fns[__index]) { + me.funManager.__loadFun(fns[__index], function() { + me.funManager.load(fns, statechange, win, __index + 1); + }, win); + } + statechange(__index, win); + }, + get: function(id) { + return this.__loadList[id]; + } + }, + log: function(msg) { + var console = window.console || { + log: function() { } + }; + + console.log(msg); + }, + Event: { + mousewheel: function(e) { + var _eoe = e.originalEvent; + var _de = _eoe.detail ? _eoe.detail * -1 : _eoe.wheelDelta / 40; + var _direction = _de < 0 ? -1 : 1; + + return { + direction: _direction, + unit: _de + }; + }, + __: function(_e, el, event, handle) { + var key; + + for (key in _e) { + if (window[_e[key].validator]) { + el[_e[key].validator](_e[key].prefix + event, handle, false); + break; + } + } + }, + add: function(el, event, handle) { + var _e = [ + { + validator: 'addEventListener', + prefix: '' + }, + { + validator: 'attachEvent', + prefix: 'on' + } + ]; + + this.__(_e, el, event, handle); + }, + remove: function(el, event, handle) { + var _e = [ + { + validator: 'removeEventListener', + prefix: '' + }, + { + validator: 'detachEvent', + prefix: 'on' + } + ]; + + this.__(_e, el, event, handle); + } + }, + getUid: function(_name) { + return me.template('me-{0}{1}-{2}', _name, new Date().getTime(), me.__Index++); + }, + Browser: { + isTouch: function() { + var msGesture = window.navigator && window.navigator.msPointerEnabled && window.MSGesture; + + return (('ontouchstart' in window) || msGesture || window.DocumentTouch) ? true : false; + }, + Prefix: function() { + var i; + + var props = ['perspectiveProperty', 'WebkitPerspective', 'MozPerspective', 'OPerspective', 'msPerspective']; + var obj = document.createElement('div'); + + for (i in props) { + if (obj.style[props[i]] !== undefined) { + return me.template('-{0}-', props[i].replace('Perspective', '').toLowerCase()); + } + } + }, + parseURL: function(url) { + var a = document.createElement('a'); + var ret,seg,len,i,s; + + a.href = url; + return { + source: url, + protocol: a.protocol.replace(':', ''), + host: a.hostname, + port: a.port, + query: a.search, + params: (function() { + ret = {}, + seg = a.search.replace(/^\?/, '').split('&'), + len = seg.length, i = 0, s; + + for (; i < len; i++) { + if (!seg[i]) { + continue; + } + s = seg[i].split('='); + ret[s[0]] = s[1]; + } + return ret; + })(), + file: (a.pathname.match(/\/([^\/?#]+)$/i) || [null, ''])[1], + hash: a.hash.replace('#', ''), + path: a.pathname.replace(/^([^\/])/, '/$1'), + relative: (a.href.match(/tps?:\/\/[^\/]+(.+)/) || [null, ''])[1], + segments: a.pathname.replace(/^\//, '').split('/') + }; + } + }, + Array: { + indexOf: function(array, val) { + var i; + + for (i = 0; i < array.length; i++) { + if (this[i] === val) { + return i; + } + } + return -1; + }, + remove: function(array, val) { + var index = this.indexOf(array, val); + + if (index > -1) { + array.splice(index, 1); + } + return array; + } + } +}; + +assembly = function(options) { + this.initialized = false; + this.registerEvent = { + before: [], + change: [], + after: [] + }; + this.options = options; + + this.init(options); +}; + +assembly.output = function() { + me.log(me.list); +}; +assembly.prototype.oninit = me.fn; + +assembly.prototype.init = function(cfg) { + this.initialized = true; + + // function _getClassName(_constructor, _constr) { + // var _constr = _constr || ""; + // if (_constructor.superclass) { + // var args = /(\w+)\.superclass/.exec(_constructor.arguments.callee); + // if (args != null) { + // _constr += args[1] + "-"; + // // return _getClassName(_constructor.superclass.constructor, _constr); + // } + // } + // return _constr; + // } + this.__Uid = me.getUid('me'); + this.oninit(cfg); + me.list[this.__Uid] = this; +}; +assembly.prototype.destory = function() { + this.initialized = false; + delete me.list[this.__Uid]; +}; +assembly.prototype.getUid = function() { + return this.__Uid; +}; +assembly.prototype.getOptions = function() { + return this.options; +}; +assembly.prototype.config = function() { + if (arguments.length > 0) { + if (typeof (arguments[0]) === 'string') { + if (arguments.length > 1) { + this.options[arguments[0]] = arguments[1]; + } else { + return this.options[name]; + } + } + } else { + return this.options; + } +}; +assembly.prototype.on = function(name, callback) { + var __self = this; + var _e = __self.registerEvent[name]; + + if (_e) { + _e.push(callback); + } + return _e; +}; +assembly.prototype.off = function(name, callback) { + var __self = this; + var _e = __self.registerEvent[name]; + var e = []; + + me.each(_e, function(name, _callback) { + + if (_callback === callback) { + e.push(name); + } + }); + + me.each(e.reverse(), function(name, _callback) { + _e.splice(_callback, 1); + }); +}; +me.assembly = assembly; + module.exports = me; }); define("js/common/new-arrivls", ["jquery","lazyload","handlebars","source-map"], function(require, exports, module){ -var $ = require("jquery"), - lazyload = require("lazyload"); -var Handlebars = require("handlebars"); - -function InfiniteLoad(options) { - var defaults = { - index: 0, - isload: true,//是否正在加载 - isrun: true,//判断是否执行 - offset: { - height: null, - width: null - } - }; - - this.registerEvent = { - before: [], - change: [], - after: [] - }; - - this.options = $.extend(true, {}, defaults, options); - - return this; -} - -InfiniteLoad.prototype.on = function(name, callback) { - var g = this; - var _e = g.registerEvent[name]; - - if (_e) { - _e.push(callback); - } - return _e; -}; - -InfiniteLoad.prototype.exect = function(key, params) { - var g = this; - var e; - - if (g.registerEvent[key] && g.registerEvent[key].length > 0) { - for (e in g.registerEvent[key]) { - if (g.registerEvent[key].hasOwnProperty(e)) { - g.registerEvent[key][e](params); - } - } - } -}; - -InfiniteLoad.prototype.init = function() { - var g = this; - var p = this.options; - - function __loadMore() { - - if (p.isrun && p.isload && g.__directionCalculation()) { - p.isload = false; - p.index++; - g.exect('after', p); - } - - g.exect('change', p); - } - - g.exect('before', p); - - $(window).scroll(__loadMore); -}; - -InfiniteLoad.prototype.emit = function() { - var p = this.options; - - p.isload = true; -}; - -InfiniteLoad.prototype.stop = function() { - var p = this.options; - - p.isrun = false; - p.isload = false; -}; - -InfiniteLoad.prototype.__directionCalculation = function() { - var p = this.options; - - if (p.offset.height && p.offset.height() > 0 && $(window).scrollTop() + $(window).height() >= p.offset.height()) { - return true; - } - return false; -}; - -module.exports = function(data) { - var $container = $('#newarrivals .goods-container'); - var $load = $('.loading a'); - var load = new InfiniteLoad({ - index: 1, - isload: false, - offset: { - height: function() { - return parseFloat($container.offset().top) + parseFloat($container.height()) - 200; - } - } - }); - var loadAjax; - var url = data.url, - count = data.count, - rows = data.rows; - - data.pageIndex = 0; - - delete data.url; - delete data.count; - delete data.rows; - - loadAjax = function(url, data, count) { - - var options = { - type: 'POST', - url: url, - success: function(result) { - var code = result.code; - var myTemplate,len,pos; - - if (code === 200) { - len = result.goods.length % count; - pos = result.goods.length - len - 1; - - result.goods.splice(pos, len); - - myTemplate = Handlebars.compile(load.tpl); - - $container.append(myTemplate(result.goods)); - data.pageIndex = data.pageIndex + result.goods.length; - - //懒加载插件貌似有点问题,图片先直接展示 - lazyload($container.find('img.lazy')); - - load.emit(); - } else { - - load.stop(); - $load.html('查看更多'); - } - }, - error: function() { - - load.stop(); - $load.html('网络断开连接了~'); - } - }; - - options.data = data; - $.ajax(options); - }; - - - load.on('after', function(p) { - - data.pageCount = count * rows[1]; - - loadAjax(url, data); - }); - - load.on('before', function(p) { - - - load.tpl = '{{#each this}}'; - load.tpl += '<div class="good-info imgopacity" data-skn="{{skn}}">'; - load.tpl += ' <div class="tag-container clearfix">'; - load.tpl += ' {{# tags}}'; - load.tpl += ' {{# isNew}}'; - load.tpl += ' <span class="good-tag new-tag">NEW</span>'; - load.tpl += ' {{/ isNew}}'; - load.tpl += ' {{# isReNew}}'; - load.tpl += ' <span class="good-tag renew-tag">再到着</span>'; - load.tpl += ' {{/ isReNew}}'; - load.tpl += ' {{# isSale}}'; - load.tpl += ' <span class="good-tag sale-tag">SALE</span>'; - load.tpl += ' {{/ isSale}}'; - load.tpl += ' {{# isNewFestival}}'; - load.tpl += ' <span class="good-tag new-festival-tag">新品节</span>'; - load.tpl += ' {{/ isNewFestival}}'; - load.tpl += ' {{# isLimit}}'; - load.tpl += ' <span class="good-tag limit-tag">限量商品</span>'; - load.tpl += ' {{/ isLimit}}'; - load.tpl += ' {{# isYearEndPromotion}}'; - load.tpl += ' <span class="good-tag yep-tag">年终大促</span>'; - load.tpl += ' {{/ isYearEndPromotion}}'; - load.tpl += ' {{# isYearMidPromotion}}'; - load.tpl += ' <span class="good-tag ymp-tag">年中热促</span>'; - load.tpl += ' {{/ isYearMidPromotion}}'; - load.tpl += ' {{/ tags}}'; - load.tpl += ' </div>'; - load.tpl += ' <div class="good-detail-img">'; - load.tpl += ' <a class="good-thumb" href="{{url}}" target= "_blank">'; - load.tpl += ' <img class="lazy" data-original="{{thumb}}">'; - load.tpl += ' </a>'; - load.tpl += ' {{# isFew}}'; - load.tpl += ' <p class="few-tag">即将售罄</p>'; - load.tpl += ' {{/ isFew}}'; - - load.tpl += ' {{#if showColBtn}}'; - load.tpl += ' <span class="col-btn iconfont{{#if coled}} coled{{/if}}"></span>'; - load.tpl += ' {{/if}}'; - load.tpl += ' </div>'; - load.tpl += ' <div class="good-detail-text">'; - load.tpl += ' <a href="{{url}}" target= "_blank">{{name}}</a>'; - load.tpl += ' <p class="price">'; - load.tpl += ' <span class="sale-price{{#unless marketPrice}}prime-cost{{/unless}}">'; - load.tpl += ' ¥{{salePrice}}'; - load.tpl += ' </span>'; - load.tpl += ' {{# marketPrice}}'; - load.tpl += ' <span class="market-price">¥{{.}}</span>'; - load.tpl += ' {{/ marketPrice}}'; - load.tpl += ' </p>'; - load.tpl += ' </div>'; - load.tpl += '</div>'; - load.tpl += '{{/each}}'; - - - data.pageCount = count * rows[0]; - - loadAjax(url, data, data.count); - - //load.emit(); - }); - - load.init(); - +var $ = require("jquery"), + lazyload = require("lazyload"); +var Handlebars = require("handlebars"); + +function InfiniteLoad(options) { + var defaults = { + index: 0, + isload: true,//是否正在加载 + isrun: true,//判断是否执行 + offset: { + height: null, + width: null + } + }; + + this.registerEvent = { + before: [], + change: [], + after: [] + }; + + this.options = $.extend(true, {}, defaults, options); + + return this; +} + +InfiniteLoad.prototype.on = function(name, callback) { + var g = this; + var _e = g.registerEvent[name]; + + if (_e) { + _e.push(callback); + } + return _e; +}; + +InfiniteLoad.prototype.exect = function(key, params) { + var g = this; + var e; + + if (g.registerEvent[key] && g.registerEvent[key].length > 0) { + for (e in g.registerEvent[key]) { + if (g.registerEvent[key].hasOwnProperty(e)) { + g.registerEvent[key][e](params); + } + } + } +}; + +InfiniteLoad.prototype.init = function() { + var g = this; + var p = this.options; + + function __loadMore() { + + if (p.isrun && p.isload && g.__directionCalculation()) { + p.isload = false; + p.index++; + g.exect('after', p); + } + + g.exect('change', p); + } + + g.exect('before', p); + + $(window).scroll(__loadMore); +}; + +InfiniteLoad.prototype.emit = function() { + var p = this.options; + + p.isload = true; +}; + +InfiniteLoad.prototype.stop = function() { + var p = this.options; + + p.isrun = false; + p.isload = false; +}; + +InfiniteLoad.prototype.__directionCalculation = function() { + var p = this.options; + + if (p.offset.height && p.offset.height() > 0 && $(window).scrollTop() + $(window).height() >= p.offset.height()) { + return true; + } + return false; +}; + +module.exports = function(data) { + var $container = $('#newarrivals .goods-container'); + var $load = $('.loading a'); + var load = new InfiniteLoad({ + index: 1, + isload: false, + offset: { + height: function() { + return parseFloat($container.offset().top) + parseFloat($container.height()) - 200; + } + } + }); + var loadAjax; + var url = data.url, + count = data.count, + rows = data.rows; + + data.pageIndex = 0; + + delete data.url; + delete data.count; + delete data.rows; + + loadAjax = function(url, data, count) { + + var options = { + type: 'POST', + url: url, + success: function(result) { + var code = result.code; + var myTemplate,len,pos; + + if (code === 200) { + len = result.goods.length % count; + pos = result.goods.length - len - 1; + + result.goods.splice(pos, len); + + myTemplate = Handlebars.compile(load.tpl); + + $container.append(myTemplate(result.goods)); + data.pageIndex = data.pageIndex + result.goods.length; + + //懒加载插件貌似有点问题,图片先直接展示 + lazyload($container.find('img.lazy')); + + load.emit(); + } else { + + load.stop(); + $load.html('查看更多'); + } + }, + error: function() { + + load.stop(); + $load.html('网络断开连接了~'); + } + }; + + options.data = data; + $.ajax(options); + }; + + + load.on('after', function(p) { + + data.pageCount = count * rows[1]; + + loadAjax(url, data); + }); + + load.on('before', function(p) { + + + load.tpl = '{{#each this}}'; + load.tpl += '<div class="good-info imgopacity" data-skn="{{skn}}">'; + load.tpl += ' <div class="tag-container clearfix">'; + load.tpl += ' {{# tags}}'; + load.tpl += ' {{# isNew}}'; + load.tpl += ' <span class="good-tag new-tag">NEW</span>'; + load.tpl += ' {{/ isNew}}'; + load.tpl += ' {{# isReNew}}'; + load.tpl += ' <span class="good-tag renew-tag">再到着</span>'; + load.tpl += ' {{/ isReNew}}'; + load.tpl += ' {{# isSale}}'; + load.tpl += ' <span class="good-tag sale-tag">SALE</span>'; + load.tpl += ' {{/ isSale}}'; + load.tpl += ' {{# isNewFestival}}'; + load.tpl += ' <span class="good-tag new-festival-tag">新品节</span>'; + load.tpl += ' {{/ isNewFestival}}'; + load.tpl += ' {{# isLimit}}'; + load.tpl += ' <span class="good-tag limit-tag">限量商品</span>'; + load.tpl += ' {{/ isLimit}}'; + load.tpl += ' {{# isYearEndPromotion}}'; + load.tpl += ' <span class="good-tag yep-tag">年终大促</span>'; + load.tpl += ' {{/ isYearEndPromotion}}'; + load.tpl += ' {{# isYearMidPromotion}}'; + load.tpl += ' <span class="good-tag ymp-tag">年中热促</span>'; + load.tpl += ' {{/ isYearMidPromotion}}'; + load.tpl += ' {{/ tags}}'; + load.tpl += ' </div>'; + load.tpl += ' <div class="good-detail-img">'; + load.tpl += ' <a class="good-thumb" href="{{url}}" target= "_blank">'; + load.tpl += ' <img class="lazy" data-original="{{thumb}}">'; + load.tpl += ' </a>'; + load.tpl += ' {{# isFew}}'; + load.tpl += ' <p class="few-tag">即将售罄</p>'; + load.tpl += ' {{/ isFew}}'; + + load.tpl += ' {{#if showColBtn}}'; + load.tpl += ' <span class="col-btn iconfont{{#if coled}} coled{{/if}}"></span>'; + load.tpl += ' {{/if}}'; + load.tpl += ' </div>'; + load.tpl += ' <div class="good-detail-text">'; + load.tpl += ' <a href="{{url}}" target= "_blank">{{name}}</a>'; + load.tpl += ' <p class="price">'; + load.tpl += ' <span class="sale-price{{#unless marketPrice}}prime-cost{{/unless}}">'; + load.tpl += ' ¥{{salePrice}}'; + load.tpl += ' </span>'; + load.tpl += ' {{# marketPrice}}'; + load.tpl += ' <span class="market-price">¥{{.}}</span>'; + load.tpl += ' {{/ marketPrice}}'; + load.tpl += ' </p>'; + load.tpl += ' </div>'; + load.tpl += '</div>'; + load.tpl += '{{/each}}'; + + + data.pageCount = count * rows[0]; + + loadAjax(url, data, data.count); + + //load.emit(); + }); + + load.init(); + }; }); define("js/brand/index", ["jquery","lazyload","handlebars","source-map","dot"], function(require, exports, module){ -/** - * 首页 - * @author: xuqi<qi.xu@yoho.cn> - * @date: 2015/11/23 - */ - -var $ = require("jquery"), - lazyLoad = require("lazyload"); - - -require("js/common/slider"); -require("js/brand/brands"); - -lazyLoad($('img.lazy')); -$('.slide-container').slider({ - orient: true +/** + * 首页 + * @author: xuqi<qi.xu@yoho.cn> + * @date: 2015/11/23 + */ + +var $ = require("jquery"), + lazyLoad = require("lazyload"); + + +require("js/common/slider"); +require("js/brand/brands"); + +lazyLoad($('img.lazy')); +$('.slide-container').slider({ + orient: true }); }); define("js/brand/brands", ["jquery","handlebars","source-map","dot"], function(require, exports, module){ -var $ = require("jquery"), - Handlebars = require("handlebars"), - dot = require("dot"); - -var $tabs = $('.brands-tabs'); -var $list = $('.brands-list'); -var $gory = $('.brands-category'); -var $news = $('.news-txt ul'); -var $clearfix = $list.find('dl.clearfix'); -var $brand = $list.find('li>a'); -var $category = $gory.find('a'); -var $tab = $tabs.find('li>a'); -var $arr = $tabs.find('.hoverarr'); -var $thisTab; - -var categoryHeight = $category.height(); -var categoryTop = $category.offset() ? $category.offset().top : 0; -var newsHeight = $news.height(); -var newsTop = $news.offset() ? $news.offset().top : 0; -var timeout, _id; - - -//用于临时存储数据 -var tempdata = {}; - -var templete = '<div class="brands-dialog">'; - -templete += ' <div class="brands-layer">'; -templete += ' <div class="layer-content">'; -templete += ' <div class="title">{{title}}</div>'; -templete += ' <div class="clearfix desc">'; -templete += ' <img src="{{icon}}">'; -templete += ' <p class="right">{{content}}</p>'; -templete += ' </div> '; -templete += ' <div class="featured">'; -templete += ' <p>{{subtitle}}</p> '; -templete += ' <div class="clearfix"> '; -templete += ' {{#each imgs}}'; -templete += ' <img src="{{src}}">'; -templete += ' {{/each}}'; -templete += ' </div>'; -templete += ' </div>'; -templete += ' </div>'; -templete += ' </div>'; -templete += '</div>'; - -dot($('.brand-desc')); - -$.easing.easeOutQuint = function(x, t, b, c, d) { - return c * ((t = t / d - 1) * t * t * t * t + 1) + b; -}; - -function getQueryString(name) { - var reg = new RegExp('(^|&)' + name + '=([^&]*)(&|$)'); - var r = window.location.search.substr(1).match(reg); - - if (r != null) { - return window.unescape(r[2]); - } - return null; -} - -// 格式化资讯NEWS标题数量 -if ($news.length) { - $news.find('li').each(function() { - var $dom = $(this); - var domHeight = $dom.offset().top - newsTop + $dom.height(); - - if (domHeight > newsHeight) { - $dom.hide(); - } - }); -} - -//头部图片TAB切换展示 -$tab.eq(0).parent('li').find('.brands-content').css('z-index', '1'); - -_id = getQueryString('id') ? getQueryString('id') : 0; - -// 设置对应TAB选中 -$thisTab = $tab.eq(_id); -$thisTab.find('.g-mask').addClass('g-mask-on'); - -if (_id && $thisTab.length) { - $arr.css({ - left: parseFloat($thisTab.offset().left) - parseFloat($tabs.offset().left) - }); -} -$tab.hover(function() { - var $this = $(this); - - clearTimeout(timeout); - timeout = setTimeout(function() { - var targetLeft = parseFloat($this.offset().left) - parseFloat($tabs.offset().left); - - $arr.animate({ - left: targetLeft - }, 200, 'easeOutQuint'); - }, 50); - $tabs.find('.brands-content').removeAttr('style'); - $this.parent('li').find('.brands-content').css('z-index', '1'); - -}, function() { - clearTimeout(timeout); -}); - -//品牌类别滚动事件 -$(window).scroll(function() { - if ($(this).scrollTop() >= categoryTop) { - $gory.addClass('category-fix'); - } else { - $gory.removeClass('category-fix'); - } -}); - -//点击字母,页面滚动到相关区域 -$category.click(function() { - var name = $(this).attr('href').split('#')[1]; - var targetTop = $list.find('[name=' + name + ']').offset().top - categoryHeight; - - if (!$gory.hasClass('category-fix')) { - targetTop -= categoryHeight; - } - - $('html,body').animate({ - scrollTop: targetTop - }, 200); - return false; -}); - - -//浮层代码 -function bindTemplete($select, data, templete) { - var $this = $select; - var offset = { - width: $this.width(), - left: $this.offset().left, - right: parseFloat($(window).width()) - parseFloat($this.offset().left) - parseFloat($this.width()) - }; - - var $parent = $this.parent('li'); - var myTemplate; - - $list.find('.brands-dialog').remove(); - myTemplate = Handlebars.compile(templete); - $parent.append(myTemplate(data)); - dot($parent.find('.right')); - - if (offset.right - 350 < 0) { - $parent.find('.brands-layer') - .addClass('brands-layer-right').css('left', -330 - offset.width); - } -} - -//鼠标悬浮品牌,请求数据,并且展示 -function bindHoverEvent() { - $brand.unbind('mouseenter').unbind('mouseleave').hover(function() { - var $this = $(this); - var key = $this.attr('data-key'); - - var options = { - url: '/brands/brandinfo', - type: 'get', - data: { - brandId: key - }, - success: function(_data) { - - if (_data.code === 200 && _data.brand) { - if (!tempdata.hasOwnProperty(_data.brand.key)) { - tempdata[_data.brand.key] = _data.brand; - } - bindTemplete($this, tempdata[_data.brand.key], templete); - } - } - }; - - clearTimeout(timeout); - timeout = setTimeout(function() { - if (!tempdata.hasOwnProperty(key)) { - $.ajax(options); - } else { - bindTemplete($this, tempdata[key], templete); - } - }, 200); - }, function() { - clearTimeout(timeout); - $list.find('.brands-dialog').remove(); - }); -} - -if ($clearfix.length < 26) { - $.ajax({ - url: '/brands/brandList', - type: 'POST', - data: { - start: $clearfix.length ? ($clearfix.length + 1) : 1 - }, - success: function(_data) { - if (_data) { - $list.append(_data); - $brand = $list.find('li>a'); - bindHoverEvent(); - } - } - }); -} - -bindHoverEvent(); +var $ = require("jquery"), + Handlebars = require("handlebars"), + dot = require("dot"); + +var $tabs = $('.brands-tabs'); +var $list = $('.brands-list'); +var $gory = $('.brands-category'); +var $news = $('.news-txt ul'); +var $clearfix = $list.find('dl.clearfix'); +var $brand = $list.find('li>a'); +var $category = $gory.find('a'); +var $tab = $tabs.find('li>a'); +var $arr = $tabs.find('.hoverarr'); +var $thisTab; + +var categoryHeight = $category.height(); +var categoryTop = $category.offset() ? $category.offset().top : 0; +var newsHeight = $news.height(); +var newsTop = $news.offset() ? $news.offset().top : 0; +var timeout, _id; + + +//用于临时存储数据 +var tempdata = {}; + +var templete = '<div class="brands-dialog">'; + +templete += ' <div class="brands-layer">'; +templete += ' <div class="layer-content">'; +templete += ' <div class="title">{{title}}</div>'; +templete += ' <div class="clearfix desc">'; +templete += ' <img src="{{icon}}">'; +templete += ' <p class="right">{{content}}</p>'; +templete += ' </div> '; +templete += ' <div class="featured">'; +templete += ' <p>{{subtitle}}</p> '; +templete += ' <div class="clearfix"> '; +templete += ' {{#each imgs}}'; +templete += ' <img src="{{src}}">'; +templete += ' {{/each}}'; +templete += ' </div>'; +templete += ' </div>'; +templete += ' </div>'; +templete += ' </div>'; +templete += '</div>'; + +dot($('.brand-desc')); + +$.easing.easeOutQuint = function(x, t, b, c, d) { + return c * ((t = t / d - 1) * t * t * t * t + 1) + b; +}; + +function getQueryString(name) { + var reg = new RegExp('(^|&)' + name + '=([^&]*)(&|$)'); + var r = window.location.search.substr(1).match(reg); + + if (r != null) { + return window.unescape(r[2]); + } + return null; +} + +// 格式化资讯NEWS标题数量 +if ($news.length) { + $news.find('li').each(function() { + var $dom = $(this); + var domHeight = $dom.offset().top - newsTop + $dom.height(); + + if (domHeight > newsHeight) { + $dom.hide(); + } + }); +} + +//头部图片TAB切换展示 +$tab.eq(0).parent('li').find('.brands-content').css('z-index', '1'); + +_id = getQueryString('id') ? getQueryString('id') : 0; + +// 设置对应TAB选中 +$thisTab = $tab.eq(_id); +$thisTab.find('.g-mask').addClass('g-mask-on'); + +if (_id && $thisTab.length) { + $arr.css({ + left: parseFloat($thisTab.offset().left) - parseFloat($tabs.offset().left) + }); +} +$tab.hover(function() { + var $this = $(this); + + clearTimeout(timeout); + timeout = setTimeout(function() { + var targetLeft = parseFloat($this.offset().left) - parseFloat($tabs.offset().left); + + $arr.animate({ + left: targetLeft + }, 200, 'easeOutQuint'); + }, 50); + $tabs.find('.brands-content').removeAttr('style'); + $this.parent('li').find('.brands-content').css('z-index', '1'); + +}, function() { + clearTimeout(timeout); }); -define("js/passport/entry", ["jquery","jquery.placeholder"], function(require, exports, module){ -/* - * 密码中心打包入口文件 - */ - -require("js/passport/reg"); -require("js/passport/back"); -require("js/passport/login"); -require("js/passport/reset"); -require("js/passport/vertification"); -require("js/passport/thirdlogin"); -require("js/passport/third-pwd"); -require("js/passport/relate"); + +//品牌类别滚动事件 +$(window).scroll(function() { + if ($(this).scrollTop() >= categoryTop) { + $gory.addClass('category-fix'); + } else { + $gory.removeClass('category-fix'); + } }); -define("js/passport/reg", ["jquery","jquery.placeholder"], function(require, exports, module){ -/* - * @description 注册页js - * @time 2015/12/14 - */ - -var $ = require("jquery"), - regValidate = require("js/passport/mail-phone-regx"), - computeComplex = require("js/passport/pwd-strength"); - -var $registerPage = $('.register-page'), - $pwdTips = $('#pwd-tips'), - $pwdTip1 = $pwdTips.find('#pwd-tip1'), - $errTip = $('#err-tip'), - $registerBtn = $('#register-btn'), - $countDown = $('#count-down'), - $successBtn = $('.success-btn'), - countDown = 5, - clearT; - -var $sendCaptcha = $('#send-captcha'), - caCount = 4, - validateResult = []; - -var $pn = $('#phone-num'), - $mc = $('#msg-captcha'), - $pwd = $('#pwd'), - $repwd = $('#repwd'), - $ca = $('#captcha'), - timeResidue = 0; - -// 密码强度验证 -var $pwdIntensity = $('.pwd-intensity'), - $pwdParent = $pwdIntensity.closest('.pwd-intensity-container'); - -//signup验证 -var $region = $('#country-code'), - $regionSelect = $('#region'), - isPwd = false, - pwdVal; - -var pwdReg = regValidate.pwdValidateRegx; - -var $curErrContainer; - -var oldPhone = ''; //如果手机号改变时刷新验证码 - -require("jquery.placeholder"); - -setTimeout(function() { - $pn.val(''); - $mc.val(''); - $pwd.val(''); - $repwd.val(''); - $ca.val(''); -}, 0); - -//验证码位数 -$ca.attr('maxlength', caCount); - -//密码规则提示 -$pwd.focus(function(event) { - $pwdTips.removeClass('hide'); - isPwd = true; - pwdVal = $(this).val(); -}).blur(function() { - $pwdTips.addClass('hide'); - isPwd = false; -}); - - -//IE8 placeholder -$('[placeholder]').placeholder(); - -// 存储校验信息 -validateResult = [ - { - id: 'phone-num', - message: '', //错误信息 - status: false //当前的状态 - }, - { - id: 'captcha', - message: '', - status: false - }, - { - id: 'msg-captcha', - message: '', - status: false - }, - { - id: 'pwd', - message: '', - status: false - }, - { - id: 'repwd', - message: '', - status: false - } -]; - -//刷新图形验证码 -function refreshPic() { - var time = new Date(), - $captchaImg = $('.captcha-img'), - captchaImgSrc = $captchaImg.attr('src').split('?')[0]; - - $captchaImg.attr('src', captchaImgSrc + '?t=' + time.getTime()); -} - -//手机号ajax校验 -function phoneAjaxFn(page, callback) { - var url, - data; - - if (page === 'reg') { - url = '/passport/register/checkmobile'; - data = { - mobile: $pn.val(), - area: $region.text().split('+')[1] - }; - } else if (page === 'third') { - url = '/passport/autouserinfo/bindCheck'; - data = { - mobile: $pn.val(), - area: $region.text().split('+')[1], - openId: $('#open-id').val(), - sourceType: $('#source-type').val() - }; - } - - validateResult[0].message = 'err'; - validateResult[0].status = false; - - $.ajax({ - url: url, - type: 'POST', - data: data - }).then(function(data) { - if (!data) { - return; - } - - switch (data.code) { - case 200: - - if ($pn.val() !== oldPhone && oldPhone !== '') { - - // 如果手机号发生改变则刷新验证码并且更新状态 - refreshPic(); - $sendCaptcha.addClass('disable').attr('disabled', 'disabled'); - validateResult[1].message = '图形验证码错误'; - validateResult[1].status = false; - } - - oldPhone = $pn.val(); - - validateResult[0].message = ''; - validateResult[0].status = true; - break; - case 400: - refreshPic(); - validateResult[0].message = data.message; - validateResult[0].status = false; - break; - } - - callback(); - }); -} - -//图形验证码ajax校验 -function picCaptchaAjaxFn(page, callback) { - var url; - - if (page === 'reg') { - url = '/passport/register/piccaptcha'; - } else if (page === 'third') { - url = '/passport/autouserinfo/checkPicCode'; - } - $.ajax({ - type: 'POST', - url: url, - data: { - verifyCode: $ca.val() - - //mobile: $pn.val(), - //area: $region.text().split('+')[1] - } - }).then(function(data) { - if (!data) { - return; - } - - switch (data.code) { - case 200: - validateResult[1].message = ''; - validateResult[1].status = true; - break; - case 400: - refreshPic(); - validateResult[1].message = '图形验证码错误'; - validateResult[1].status = false; - break; - } - callback(); - }); -} - -//短信验证码ajax校验 -function msgCaptchaAjaxFn(page, callback) { - var url; - - if (page === 'reg') { - url = '/passport/register/msgcaptcha'; - } else if (page === 'third') { - url = '/passport/autouserinfo/checkBindMsg'; - } - $.ajax({ - type: 'POST', - url: url, - data: { - code: $mc.val(), - mobile: $pn.val(), - area: $region.text().split('+')[1] - } - }).then(function(data) { - if (!data) { - return; - } - - switch (data.code) { - case 200: - validateResult[2].message = ''; - validateResult[2].status = true; - break; - case 400: - validateResult[2].message = '短信验证码错误'; - validateResult[2].status = false; - break; - } - - callback(); - }); -} - -// 验证 -function validateRule(page, $element, callback) { - - var val = $.trim($element.val()), - regionCode; - - - - // 根据需求http://redmine.yoho.cn/issues/3117改成上边的正则 - // 对应的错误提示语也改了,感觉要不了多久就会改回来 - // pwdReg = /^([a-zA-Z0-9\-\+_!@\#$%\^&\*\(\)\:\;\.=\[\]\\\',\?]){6,20}$/gi; - - //手机号校验 - if ($element.hasClass('phone-num')) { - - regionCode = $region.text(); - - - if (val === '') { - validateResult[0].message = '请输入手机号码'; - validateResult[0].status = false; - callback(); - - } else { - if (!/^[0-9]+$/.test(val) || - (regionCode === '+86' && !regValidate.phoneRegx[regionCode].test(val))) { - validateResult[0].message = '手机号码格式不正确,请重新输入'; - validateResult[0].status = false; - callback(); - } else { - phoneAjaxFn(page, callback); - } - } - - //图形验证码校验 - } else if ($element.hasClass('captcha')) { - if (val === '') { - validateResult[1].message = '请输入图形验证码'; - validateResult[1].status = false; - callback(); - - } else if (val.length <= 3) { - validateResult[1].message = '图形验证码为4位'; - validateResult[1].status = false; - callback(); - - } else { - - // 并且手机号正确 - if (validateResult[0].status) { - picCaptchaAjaxFn(page, callback); - } else { - validateResult[1].message = '图形验证码错误'; - validateResult[1].status = false; - callback(); - } - - } - - //短信验证码校验 - } else if ($element.hasClass('msg-captcha')) { - - if (val === '') { - validateResult[2].message = '请输入短信验证码'; - validateResult[2].status = false; - callback(); - - } else if (val.length <= 3) { - validateResult[2].message = '短信验证码错误'; - validateResult[2].status = false; - callback(); - - } else { - - // 并且图形验证码正确 - if (validateResult[1].status) { - msgCaptchaAjaxFn(page, callback); - } else { - validateResult[2].message = '短信验证码错误'; - validateResult[2].status = false; - callback(); - } - } - - //密码校验 - } else if ($element.hasClass('pwd')) { - if (val === '') { - validateResult[3].message = '请输入密码'; - validateResult[3].status = false; - - } else if (val.length < 6 || val.length > 20) { - validateResult[3].message = '密码只支持6-20位字符'; - validateResult[3].status = false; - - } else if (!pwdReg.test($element.val())) { - validateResult[3].message = '密码须字母和数字组合'; - validateResult[3].status = false; - - } else { - validateResult[3].message = ''; - validateResult[3].status = true; - } - callback(); - - //二次密码校验 - } else if ($element.hasClass('repwd')) { - if (val === '') { - validateResult[4].message = '请输入密码确认'; - validateResult[4].status = false; - - } else if ($pwd.val() !== val) { - validateResult[4].message = '与密码不一致,请重新输入'; - validateResult[4].status = false; - - } else { - validateResult[4].message = ''; - validateResult[4].status = true; - - } - - callback(); - } -} - -function posErrTip() { - var tipPos = $curErrContainer.offset(); - - return $errTip.css({ - top: tipPos.top - 40, - left: tipPos.left - }); -} - -//显示提示信息 -function showErrTip() { - - var show = false, - i, - validateResultLen = validateResult.length; - - for (i = 0; i < validateResultLen; i++) { - if (!show) { - - //不可以通过status判断 - if (!!validateResult[i].message && validateResult[i].message !== 'err') { - - //显示错误提示 - $errTip.find('span').text(validateResult[i].message); - $curErrContainer = $('#' + validateResult[i].id); - posErrTip().removeClass('hide'); - - show = true; //停止判断 - } else { - $errTip.addClass('hide'); - } - } - } -} - -//显示红色边框 -function showBorder() { - - var $errInput, - i, - validateResultLen = validateResult.length; - - for (i = 0; i < validateResultLen; i++) { - if (!!validateResult[i].message) { - - //显示红色边框 - $errInput = $('#' + validateResult[i].id); - $errInput.addClass('error'); - - } else { - - //去掉红色边框 - $errInput = $('#' + validateResult[i].id); - $errInput.removeClass('error'); - } - } -} - -// 密码强度验证 -function pwdFn($obj) { - var pwd = $obj.val(), - pwdStrength = computeComplex(pwd), - level = 0; - - if (pwdStrength === 0) { - level = 0; - } else if (pwdStrength <= 10) { - level = 1; - } else if (pwdStrength <= 20) { - level = 2; - } else { - level = 3; - } - - switch (level) { - case 0: - $pwdParent.removeClass('red yellow green'); - $pwdIntensity.removeClass('color'); - break; - case 1: - $pwdParent.addClass('red').removeClass('yellow green'); - $pwdIntensity.filter('.low').addClass('color'); - $pwdIntensity.filter('.mid,.high').removeClass('color'); - break; - case 2: - $pwdParent.addClass('yellow').removeClass('red green'); - $pwdIntensity.filter('.low,.mid').addClass('color'); - $pwdIntensity.filter('.high').removeClass('color'); - break; - case 3: - $pwdParent.addClass('green').removeClass('yellow red'); - $pwdIntensity.addClass('color'); - break; - } - - //提示框 - if (pwd === '') { - $pwdTip1.removeClass('red yes no').addClass('default'); - } else if (pwd.length < 6 || pwd.length > 20) { - $pwdTip1.removeClass('default yes').addClass('no red'); - } else { - $pwdTip1.removeClass('default no red').addClass('yes'); - } -} - -//重新定位错误提示 -$(window).resize(function() { - if ($errTip.hasClass('hide')) { - return; - } - - posErrTip(); -}); - -// 失去焦点时开始校验 -// Tips: 不可以在获得焦点的时候验证,获得焦点和失去焦点的间隔太小,如果中间存在ajax校验的话会出现问题 -// ( ▼-▼ )注册页和信息完善页面接口不同 -exports.init = function(page) { - - $('#agree-terms').click(function() { - - var $this = $(this), - i, - passI = 0; - - if (!!$this.attr('notchecked')) { - - $this.removeAttr('notchecked'); - - //勾选 - for (i = 0; i < validateResult.length; i++) { - if (validateResult[i].status) { - passI++; - } - } - if (passI === 4) { - $registerBtn.removeClass('disable').removeAttr('disabled'); - } - } else { - - //取消勾选 - $registerBtn.addClass('disable').attr('disabled', 'disabled'); - $this.attr('notchecked', 'notchecked'); - } - }); - - // 按回车键提交 - $registerPage.on('keydown', function(e) { - var key = e.which; - - if (key === 13) { - $registerBtn.click(); - } - }); - - $registerPage.find('.va').keyup(function() { - - var j, - statusLen = 0, - vLen = validateResult.length, - $that = $(this); - - validateRule(page, $(this), function() { - showErrTip(); // 显示错误提示 - showBorder(); // 显示红色边框 - - // 如果validateResult中有4个status为true表示验证通过 - for (j = 0; j < vLen; j++) { - - if (validateResult[j].status) { - - statusLen++; - } - - } - - if (statusLen === 4 && !$('#agree-terms').attr('notchecked')) { - $registerBtn.removeClass('disable').removeAttr('disabled'); - } else { - $registerBtn.addClass('disable').attr('disabled', 'disabled'); - } - - // 图形验证通过时,发送短信按钮可点击 - if (validateResult[1].status && timeResidue <= 0) { - $sendCaptcha.removeClass('disable').removeAttr('disabled'); - } else { - $sendCaptcha.addClass('disable').attr('disabled', 'disabled'); - } - - //图形验证通过时,发送短信按钮可点击 end - - }); - - // 如果是密码则校验强度 - if (($that).hasClass('pwd')) { - pwdFn($that); - } - - }).blur(function() { - - /*validateRule($(this), function() { - showErrTip(); - showBorder(); // 显示红色边框 - });*/ - }); - - $regionSelect.change(function() { - - $region.text($('#region').val()); - - validateRule(page, $pn, showErrTip); //验证 - }); - - // 点击发送验证码 - $sendCaptcha.click(function() { - var t, - url; - - if ($(this).hasClass('disable')) { - return; - } - - timeResidue = 60; - - $('#msg-tip').removeClass('hide'); - - $sendCaptcha.addClass('disable').attr('disabled', 'disabled'); - $sendCaptcha.val('60秒可重新发送'); - - t = setInterval(function() { - if (timeResidue <= 0) { - $sendCaptcha.removeClass('disable').removeAttr('disabled').val('获取短信验证码'); - clearInterval(t); - return; - } - $sendCaptcha.val(timeResidue-- + '秒可重新发送'); - }, 1000); - - if (page === 'reg') { - url = '/passport/register/sendBindMsg'; - } else if (page === 'third') { - url = '/passport/autouserinfo/sendBindMsg'; - } - - //todo ajax 发送验证码 - $.ajax({ - type: 'POST', - url: url, - data: { - area: $region.text().split('+')[1], - mobile: $pn.val(), - verifyCode: $ca.val() - } - }); - }); - - // 防止粘贴密码 - if ($('.success-box').length <= 0) { - $pwd[0].onpaste = function() { - return false; - }; - } - - //ajax表单提交 - $registerBtn.click(function() { - var url; - - if (page === 'reg') { - url = '/passport/register/mobileregister'; - } else if (page === 'third') { - url = '/passport/autouserinfo/bindMobile'; - } - - if ($(this).hasClass('disable')) { - return; - } else { - - //ajax提交 - $.ajax({ - type: 'POST', - url: url, - data: { - area: $region.text().split('+')[1], - mobile: $pn.val(), - verifyCode: $ca.val(), - code: $mc.val(), - password: $pwd.val() - } - }).then(function(data) { - - var time = 0, - t, - refer; - - if (data.code === 200) { - - refer = data.data.href; - - t = setTimeout(function() { - time++; - }, 1000); - - $.ajax({ - type: 'GET', - url: data.data.session - }).then(function(data) { - - if (data.code === 200 && t < 3) { - clearInterval(t); - location.href = refer; - } - }); - - if (t >= 3) { - clearInterval(t); - location.href = refer; - } - } else { - - //todo - console.log('网络超时~'); - } - - }); - } - }); - - $('.change-captcha').click(function() { - refreshPic(); - }); - - //注册成功页面5秒后跳转 - if ($('.success-box').length > 0) { - clearT = setInterval(function() { - - if (countDown === 0) { - - window.location.href = $successBtn.attr('data-url'); - - clearInterval(clearT); - } - $countDown.text(countDown--); - }, 1000); - } -}; -}); -define("js/passport/mail-phone-regx", [], function(require, exports, module){ -/** - * 国家区号Map手机号码以及邮箱验证正则 - * @author: xuqi<qi.xu@yoho.cn> - * @date: 2015/12/11 - */ - -var countryPhoneRegx = { - '+86': /^1[35847]{1}[0-9]{9}$/, - '+852': /^[965]{1}[0-9]{7}$/, - '+853': /^[0-9]{8}$/, - '+886': /^[0-9]{10}$/, - '+65': /^[98]{1}[0-9]{7}$/, - '+60': /^1[1234679]{1}[0-9]{8}$/, - '+1': /^[0-9]{10}$/, - '+82': /^01[0-9]{9}$/, - '+44': /^7[789]{1}[0-9]{8}$/, - '+81': /^0[9|8|7][0-9]{9}$/, - '+61': /^[0-9]{11}$/ -}; - -var emailRegx = /^[.\-_a-zA-Z0-9]+@[\-_a-zA-Z0-9]+\.[a-zA-Z0-9]/; - -var pwdValidateRegx = /^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{6,20}$/; - -exports.phoneRegx = countryPhoneRegx; - -exports.emailRegx = emailRegx; - -exports.pwdValidateRegx = pwdValidateRegx; -}); -define("js/passport/pwd-strength", [], function(require, exports, module){ -/* - * 计算密码复杂度 - */ - -function gettype(str, i) { - if (str.charCodeAt(i) >= 48 && str.charCodeAt(i) <= 57) { - return 1; - } else if (str.charCodeAt(i) >= 97 && str.charCodeAt(i) <= 122) { - return 2; - } else if (str.charCodeAt(i) >= 65 && str.charCodeAt(i) <= 90) { - return 3; - } - - return 4; -} - -function isregular(cur, pre, type) { - var curCode = cur.charCodeAt(0); - var preCode = pre.charCodeAt(0); - - if (curCode - preCode === 0) { - return true; - } - - if (type !== 4 && (curCode - preCode === 1 || curCode - preCode === -1)) { - return true; - } - - return false; -} - -function getcomplex(curType, preType) { - if (preType === 0 || curType === preType) { - return 0; - } else if (curType === 4 || preType === 4) { - return 2; - } else { - return 1; - } -} - -function computeComplex(password) { - var complex = 0, - length = password.length, - pre = '', - preType = 0, - i = 0, - cur, - curType; - - - for (i = 0; i < length; i++) { - cur = password.charAt(i); - curType = gettype(password, i); - - if (preType !== curType || !isregular(cur, pre, curType)) { - complex += curType + getcomplex(curType, preType); - } - - pre = cur; - preType = curType; - } - - return complex; -} - -module.exports = computeComplex; -}); -define("js/passport/back", ["jquery","jquery.placeholder"], function(require, exports, module){ -/** - * 找回密码 - * @author: xuqi<qi.xu@yoho.cn> - * @date: 2015/12/14 - */ - -var $ = require("jquery"), - regx = require("js/passport/mail-phone-regx"), - emailReg = regx.emailRegx, - phoneRegx = regx.phoneRegx; - -var emailAc = require("js/passport/ac-email"); //邮箱自动完成 - -var $cr = $('#country-code-hide'), - $phoneNum = $('#phone-num'), - $ca = $('#captcha'), - $ccList = $('#country-code-list'), - $cc = $('#country-code'), - $btn = $('#find-btn'), - $accErr = $('#account-err'), - $caErr = $('#captcha-err'), - caCount = 4, //验证码位数 - hasPh = false, - hasCa = false; - - -require("jquery.placeholder"); - -function imgcode() { - var time = new Date(), - $captchaImg = $('#captcha-img'), - captchaImgSrc = $captchaImg.attr('src').split('?')[0]; - - $('#captcha-img').attr('src', captchaImgSrc + '?t=' + time.getTime()); -} - -function enableBtn() { - if (hasPh && hasCa) { - $btn.removeClass('disable').prop('disabled', false); - } else { - $btn.addClass('disable').prop('disabled', true); - } -} - -function authcode() { - if (!hasPh || !hasCa) { - enableBtn(); - return; - } - - $.ajax({ - type: 'POST', - url: '/passport/back/authcode', - data: { - verifyCode: $.trim($ca.val()), - phoneNum: $phoneNum.val(), - area: $cr.val() - } - - }).then(function(data) { - if (data.code === 200) { - hasCa = true; - } else if (data.code === 402) { - hasPh = false; - hasCa = true; - $accErr.removeClass('hide').find('em').text('该账号不存在'); - $phoneNum.addClass('error'); - } else if (data.code === 400) { - hasCa = false; - imgcode(); - } - enableBtn(); - }); -} - -function vaPn(v) { - var pass = true, - errTxt = ''; - - v = $.trim(v); - if (v !== '') { - if (/^[0-9]+$/.test(v)) { - if (phoneRegx[$cr.val()].test(v)) { - pass = true; - } else { - errTxt = '手机号码格式不正确, 请重新输入'; - pass = false; - } - } else { - if (emailReg.test(v)) { - pass = true; - } else { - errTxt = '邮箱格式不正确, 请重新输入'; - pass = false; - } - } - } else { - errTxt = '账户名不能为空'; - pass = false; - } - hasPh = pass; - authcode(); - - return { - pass: pass, - errTxt: errTxt - }; -} - -function vaCa() { - var v = $.trim($ca.val()); - - if (v === '' || v.length < caCount) { - hasCa = false; - enableBtn(); - return; - } - - hasCa = true; - - authcode(); -} - -emailAc($phoneNum, function() { - var pnVa = vaPn($phoneNum.val()); - - if (pnVa.pass) { - $accErr.addClass('hide'); - $phoneNum.removeClass('error'); - } else { - $accErr.removeClass('hide').find('em').text(pnVa.errTxt); - $phoneNum.addClass('error'); - } - } -); - -$ca.attr('maxlength', caCount); - -//IE8 placeholder -$('input').placeholder(); - -$('#change-captcha, #captcha-img').on('click', function() { - imgcode(); -}); - -$cc.on('click', function(e) { - e.stopPropagation(); - if ($ccList.css('style') === 'block') { - $ccList.slideUp('fast'); - } else { - $ccList.slideDown('fast'); - } -}); - -$ccList.delegate('li', 'click', function(e) { - var $cur = $(this), - code = $cur.data('cc'), - pnVa; - - e.stopPropagation(); - $cr.val(code); - $cc.find('em').html($cur.text()); - - //切换后验证手机号码 - if ($.trim($phoneNum.val()) !== '') { - pnVa = vaPn($phoneNum.val()); - enableBtn(); - if (hasPh) { - $accErr.addClass('hide'); - $phoneNum.removeClass('error'); - } else { - $accErr.removeClass('hide').text(pnVa.errTxt); - $phoneNum.addClass('error'); - } - } - $ccList.slideUp('fast'); -}); - -$(document).click(function() { - if ($ccList.css('display') === 'block') { - $ccList.slideUp(); - } -}); - -$phoneNum.keyup(function() { - vaPn($.trim($(this).val())); -}).focus(function() { - $(this).removeClass('error'); - - //focus隐藏错误提示 - $accErr.addClass('hide'); -}); - -//验证码在鼠标移开后验证, keyup时不再验证 -$ca.blur(function() { - var errTxt = $.trim($ca.val()) === '' ? '验证码不能为空' : '验证码不正确'; - - if (hasCa) { - $caErr.addClass('hide'); - $ca.removeClass('error'); - } else { - $caErr.removeClass('hide').find('em').text(errTxt); - $ca.addClass('error'); - - //验证码错误则刷新验证码 - if ($ca.val() < caCount) { - - //防止重复刷新验证码 - imgcode(); - } - } -}).focus(function() { - $(this).removeClass('error'); - - //focus隐藏错误提示 - $caErr.addClass('hide'); -}).keyup(function() { - vaCa(); -}); - -$('#find-btn').click(function(e) { - - if (/^[0-9]+$/.test($.trim($phoneNum.val()))) { - $('#find-form').attr('action', '/passport/back/mobile'); - } - if ($(this).hasClass('disable')) { - return; - } - if (!hasCa || !hasPh) { - e.preventDefault(); - return true; - } -}); -}); -define("js/passport/ac-email", ["jquery"], function(require, exports, module){ -/** - * 邮箱自动补全 - * @author:xuqi<qi.xu@yoho.cn> - * @date: 2016/2/22 - */ -var $ = require("jquery"); - -var mailPostfix = { - num: ['qq.com', '163.com', '126.com', 'sina.com', 'gmail.com', 'sohu.com', 'hotmail.com', '139.com', '189.com'], - other: ['gmail.com', 'qq.com', '163.com', '126.com', 'sina.com', 'sohu.com', 'hotmail.com', '139.com', '189.com'] -}; - -var emailAcTime; - -/** - * @param $input 需要自动完成的$对象 - * @param cb 鼠标移开/点击自动完成项后需要执行的操作(验证等) - */ -module.exports = function($input, cb) { - var ulHtml = '<ul id="email-autocomplete" class="email-autocomplete hide"></ul>'; - - var $emailAutoComplete; - - $input.parent().append(ulHtml); - - $emailAutoComplete = $('#email-autocomplete'); - - $input.on('keyup', function() { - var account = $.trim($(this).val()), - html = '', - accountMatch, - matchStr, - postfix, - i; - - //输入@时自动补全邮箱后缀 - //此处>0非错误,用于避免输入的第一个字符为@被识别为邮箱 - if (account.indexOf('@') > 0) { - accountMatch = account.match(/^[0-9]+@(.*)/); - if (accountMatch) { - - //数字邮箱补全 - postfix = mailPostfix.num; - matchStr = accountMatch[1]; - } else { - postfix = mailPostfix.other; - matchStr = account.match(/@(.*)/)[1]; - } - - for (i = 0; i < postfix.length; i++) { - if (postfix[i].indexOf(matchStr) > -1) { - html += '<li>' + account.slice(0, account.indexOf('@')) + '@' + postfix[i] + '</li>'; - } - } - - if (html !== '' && /.com$/.test(account) === false) { - $emailAutoComplete.html(html).removeClass('hide'); - } else { - - //隐藏autocomplete - $emailAutoComplete.html('').addClass('hide'); - } - } - }).on('blur', function() { - emailAcTime = setTimeout(function() { - - //未点击自动完成项 - $emailAutoComplete.addClass('hide'); - - cb && cb(); - }, 200); - }); - - //邮箱自动完成列表项点击 - $emailAutoComplete.on('click', 'li', function() { - clearTimeout(emailAcTime); //清空默认关闭 - - //点击自动完成项后进行验证 - $input.val($(this).text()).focus(); - - $emailAutoComplete.addClass('hide'); - - cb && cb(); - }); -}; -}); -define("js/passport/login", ["jquery","jquery.placeholder"], function(require, exports, module){ -/** - * 登录 - * @author: xuqi<qi.xu@yoho.cn> - * @date: 2015/12/11 - */ -var $ = require("jquery"); - -var $account = $('#account'), - $password = $('#password'), - $captcha = $('#captcha'); - -var $accountTip = $account.siblings('.err-tip'), - $passwordTip = $password.siblings('.err-tip'), - $captchaTip = $captcha.siblings('.err-tip'), - $capsLock = $('#caps-lock'); - -var $countryCodeHide = $('#country-code-hide'), - $countryCodeEm = $('#country-code > em'), - $countryList = $('#country-list'); - -var $emailAutoComplete = $('#email-autocomplete'); - -var mailPhoneRegx = require("js/passport/mail-phone-regx"); -var mailAc = require("js/passport/ac-email"); //邮箱自动完成 - -var $remember = $('.remember-me'); - -var captchaUrl = '/passport/images?t='; // /passport/images?t=1454464125 - -var $captchaWrap = $('.captcha-wrap'), - $captcha = $captchaWrap.find('#captcha'), - $captchaImg = $captchaWrap.find('#captcha-img'), - $captchaTip = $captchaWrap.find('.err-tip'); - -//checkbox status unicode -var checkbox = { - checked: '', - unchecked: '' -}; - -var authing = false; - -var emailAcTime; - -require("jquery.placeholder"); - -//验证账户名 -function validateAccount() { - var pass = false, - account = $.trim($account.val()), - countryCode = $countryCodeHide.val(), - err; - - if (account !== '') { - if (/^[0-9]+$/.test(account)) { - - //如果是纯数字,则作为手机号码处理 - if (countryCode !== '+86' || - mailPhoneRegx.phoneRegx[countryCode].test(account)) { - pass = true; - } else { - pass = false; - err = '手机号码不正确,请重新输入'; - } - } else { - if (mailPhoneRegx.emailRegx.test(account)) { - pass = true; - } else { - pass = false; - err = '邮箱格式不正确,请重新输入'; - } - } - } else { - err = '请输入账户名'; - } - - if (pass) { - $accountTip.addClass('hide'); - $account.removeClass('error'); - } else { - $accountTip.removeClass('hide').children('em').text(err); - $account.addClass('error'); - } - return pass; -} - -//验证密码 -function validatePassword() { - var pass = false, - password = $.trim($password.val()), - err; - - if (password !== '') { - if (password.length < 6) { - err = '请输入长度为6-20字符的密码'; - } else { - pass = true; - } - } else { - err = '请输入密码'; - } - - if (pass) { - $passwordTip.addClass('hide'); - $password.removeClass('error'); - } else { - $passwordTip.removeClass('hide').children('em').text(err); - $password.addClass('error'); - } - return pass; -} - -//验证验证码 -function validateCaptcha() { - var pass = false, - captcha = $.trim($captcha.val()), - err; - - // 验证码不可见的时候不验证 - if ($captchaWrap.is(':hidden')) { - return true; - } - - if (captcha !== '') { - if (captcha.length !== 4) { - err = '请输入长度为4字符的验证码'; - } else { - pass = true; - } - } else { - err = '请输入验证码'; - } - - if (pass) { - $captchaTip.addClass('hide'); - $captcha.removeClass('error'); - } else { - $captchaTip.removeClass('hide').children('em').text(err); - $captcha.addClass('error'); - } - return pass; -} - -//验证 -function validate() { - var pass = true, - account = $.trim($account.val()), - password = $.trim($password.val()); - - if (account !== '') { - pass = validateAccount() && validatePassword() && validateCaptcha(); - } else { - pass = false; - $account.addClass('error'); - - if (password === '') { - - //账户名和密码都为空的情况下点击登陆,只在账户输入框后显示错误提示 - $accountTip.addClass('both-error').removeClass('hide').children('em').text('请输入账户名和密码'); - $passwordTip.addClass('hide'); - $password.addClass('error'); - } else { - $accountTip.removeClass('hide').children('em').text('请输入账户名'); - } - } - - return pass; -} - -//密码错误次数,超过三次显示验证码 -function vaAccountErrTimes() { - $captchaImg.attr('src', captchaUrl + $.now()); - $captcha.val(''); - $captchaWrap.removeClass('hide'); -} - -//登录 -function login() { - var pass = validate(); - - if (pass && authing === false) { - authing = true; - - $.ajax({ - url: '/passport/login/auth', - type: 'POST', - data: { - areaCode: $countryCodeHide.val().replace('+', ''), - account: $.trim($account.val()), - password: $.trim($password.val()), - captcha: $.trim($captcha.val()), - isRemember: $remember.hasClass('checked') ? true : false - }, - success: function(res) { - if (res.code === 200) { - if (res.data) { - - //防止data.data为undefined时下行语句执行出错而导致脚本不能走到complete去处理authing - location.href = res.data.session; - } - } else { - if (res.data.errorType === 'captcha') { - $captchaTip.removeClass('hide').children('em').html(res.message); - $captcha.addClass('error').val(''); - } else { - $passwordTip.removeClass('hide').children('em').html(res.message); - $password.addClass('error').val(''); - } - - //验证错误次数 - if (res.data && res.data.needCaptcha) { - vaAccountErrTimes(); - } - } - }, - complete: function() { - authing = false; - } - }); - } -} - -mailAc($account, function() { - if (validateAccount()) { - $.ajax({ - url: '/passport/login/account', - type: 'GET', - data: { - account: $.trim($account.val()) - } - }).then(function(res) { - if (res.data && res.data.needCaptcha) { - vaAccountErrTimes(); - } - }); - } - } -); - -$('[placeholder]').placeholder(); - -//展开地区列表 -$('#country-code').on('click', function() { - if ($countryList.css('display') === 'none') { - $countryList.slideDown(); - } -}); - -//选中地区列表项 -$countryList.on('click', 'li', function() { - var $this = $(this), - cc = $this.data('cc'); - - $countryCodeEm.html($this.html()); - - $countryCodeHide.val(cc); - - $countryList.slideUp(); -}); - -//点击其他区域,收起区域列表 -$(document).on('click', function(e) { - if ($(e.target).closest('#country-code').length > 0) { - return; - } - - if ($countryList.css('display') === 'block') { - $countryList.slideUp(); - } -}); - -//密码 -$password.on('blur', function() { - validatePassword(); - - if ($capsLock.hasClass('hide')) { - return; - } - - $capsLock.addClass('hide'); -}).on('keypress', function(e) { - var code = e.which; - - //CapsLock检测 - if (code >= 65 && code <= 90) { - $capsLock.removeClass('hide'); - return; - } - $capsLock.addClass('hide'); -}); - -// 验证码 -$captcha.on('blur', function() { - validateCaptcha(); -}); - -//邮箱自动完成列表项点击 -$emailAutoComplete.on('click', 'li', function() { - clearTimeout(emailAcTime); //清空默认关闭 - - $account.val($(this).text()).focus(); - - $emailAutoComplete.addClass('hide'); -}); - -//记住登录状态 -$remember.on('click', function() { - var $this = $(this); - - $this.toggleClass('checked'); - - if ($this.hasClass('checked')) { - $this.children('i').html(checkbox.checked); - } else { - $this.children('i').html(checkbox.unchecked); - } -}); - -//focus到输入框则隐藏错误提示和样式 -$('.va').on('focus', function() { - var $this = $(this); - - $this.removeClass('error'); - - $this.siblings('.err-tip').addClass('hide'); -}); - -// 验证码刷新 -$captchaWrap.on('click', '.change-captcha, .captcha-img', function() { - $captchaImg.attr('src', captchaUrl + $.now()); -}); - -//登录 -$('#login-btn').on('click', login); - -//Enter登录 -$('input.va').on('keypress', function(e) { - if (e.which === 13) { - login(); - } -}); - -// 初始:只带账户名的页面,密码输入获得焦点 -if (($account.val() !== '' || $account.val() === $account.attr('placeholder')) && - $password.val() === '') { - $password.focus(); -} -}); -define("js/passport/reset", ["jquery","jquery.placeholder"], function(require, exports, module){ -/** - * 找回密码 - * @author: xuqi<qi.xu@yoho.cn> - * @date: 2015/12/14 - */ - -var $ = require("jquery"); - -var $pwd = $('#pwd'), - $repwd = $('#re-input'), - $next = $('#reset-pwd-btn'), - $pwdErr = $('#pwd-err'), - $repwdErr = $('#repwd-err'), - $pwdTips = $('#pwd-tips'); - -var hasNoErrPw = false; - -var $pwdIntensity = $('.pwd-intensity'), - $pwdParent = $pwdIntensity.closest('.pwd-intensity-container'), - $pwdTip1 = $('#pwd-tip1'); - -var pwdRegx = require("js/passport/mail-phone-regx").pwdValidateRegx; - -require("jquery.placeholder"); - - -/* - * 计算密码复杂度 - */ - -function gettype(str, i) { - if (str.charCodeAt(i) >= 48 && str.charCodeAt(i) <= 57) { - return 1; - } else if (str.charCodeAt(i) >= 97 && str.charCodeAt(i) <= 122) { - return 2; - } else if (str.charCodeAt(i) >= 65 && str.charCodeAt(i) <= 90) { - return 3; - } - - return 4; -} - -function isregular(cur, pre, type) { - var curCode = cur.charCodeAt(0); - var preCode = pre.charCodeAt(0); - - if (curCode - preCode === 0) { - return true; - } - - if (type !== 4 && (curCode - preCode === 1 || curCode - preCode === -1)) { - return true; - } - - return false; -} - -function getcomplex(curType, preType) { - if (preType === 0 || curType === preType) { - return 0; - } else if (curType === 4 || preType === 4) { - return 2; - } else { - return 1; - } -} - -function computeComplex(password) { - var complex = 0, - length = password.length, - pre = '', - preType = 0, - i = 0, - cur, - curType; - - - for (i = 0; i < length; i++) { - cur = password.charAt(i); - curType = gettype(password, i); - - if (preType !== curType || !isregular(cur, pre, curType)) { - complex += curType + getcomplex(curType, preType); - } - - pre = cur; - preType = curType; - } - - return complex; -} - -function pwdKeyupEvt() { - var pwd = $pwd.val(), - pwdStrength = computeComplex(pwd), - level = 0; - - //TODO:自定义密码强度规则,需要修正 - if (pwdStrength === 0) { - level = 0; - } else if (pwdStrength <= 10) { - level = 1; - } else if (pwdStrength <= 20) { - level = 2; - } else { - level = 3; - } - switch (level) { - case 0: - $pwdParent.removeClass('red yellow green'); - $pwdIntensity.removeClass('color'); - break; - case 1: - $pwdParent.addClass('red').removeClass('yellow green'); - $pwdIntensity.filter('.low').addClass('color'); - $pwdIntensity.filter('.mid,.high').removeClass('color'); - break; - case 2: - $pwdParent.addClass('yellow').removeClass('red green'); - $pwdIntensity.filter('.low,.mid').addClass('color'); - $pwdIntensity.filter('.high').removeClass('color'); - break; - case 3: - $pwdParent.addClass('green').removeClass('yellow red'); - $pwdIntensity.addClass('color'); - break; - } - - //提示框 - if (pwd === '') { - $pwdTip1.removeClass('red yes no').addClass('default'); - } else if (pwd.length < 6 || pwd.length > 20) { - $pwdTip1.removeClass('default yes').addClass('no red'); - } else { - $pwdTip1.removeClass('default no red').addClass('yes'); - } - - if (pwdRegx.test(pwd)) { - hasNoErrPw = true; - } else { - hasNoErrPw = false; - } -} - -//IE8 placeholder -$('input').placeholder(); - -$('.va').keyup(function() { - var pass = true; - - if ($(this).hasClass('pwd')) { - pwdKeyupEvt(); - } else { - if ($(this).val() === '') { - pass = false; - } - } - if (pass && hasNoErrPw && $pwd.val() === $repwd.val()) { - pass = true; - } else { - pass = false; - } - if (pass) { - $next.removeClass('disable').prop('disabled', false); - } else { - $next.addClass('disable').prop('disabled', true); - } -}).blur(function() { - var $this = $(this), - v = $this.val(); - - if ($this.hasClass('pwd')) { - if (v === '') { - $this.addClass('error'); - $pwdErr.removeClass('hide').find('em').text('请输入密码'); - } else if (v.length < 6 || v.length > 20) { - $this.addClass('error'); - $pwdErr.removeClass('hide').find('em').text('密码只支持6-20位'); - } else if (!pwdRegx.test(v)) { - $this.addClass('error'); - $pwdErr.removeClass('hide').find('em').text('密码须字母和数字组合'); - } else { - $pwdErr.addClass('hide'); - if ($repwd.val() !== '') { - if (v !== $repwd.val()) { - $repwd.addClass('error'); - $repwdErr.removeClass('hide').find('em').text('两次密码输入不一致,请重新输入'); - } else { - $repwd.removeClass('error'); - $repwdErr.addClass('hide'); - } - } - } - } else { - if (v === '') { - $this.addClass('error'); - $repwdErr.removeClass('hide').find('em').text('请输入密码确认'); - } else { - if ($pwd.val() !== '' && v !== $pwd.val()) { - $this.addClass('error'); - $repwdErr.removeClass('hide').find('em').text('两次密码输入不一致,请重新输入'); - } else { - $this.removeClass('error'); - $repwdErr.addClass('hide'); - } - } - } -}).focus(function() { - $(this).removeClass('error'); - - //focus后错误提示隐藏 - if ($(this).hasClass('pwd')) { - $pwdErr.addClass('hide'); - } else { - $repwdErr.addClass('hide'); - } -}); - -$pwd.focus(function() { - $pwdErr.addClass('hide'); - $pwdTips.removeClass('hide'); -}).blur(function() { - $pwdTips.addClass('hide'); -}); - -$('#pwd, #repwd').keydown(function(e) { - var code = e.keyCode || e.which; - - //空格输入过滤 - if (code === 32) { - e.preventDefault(); - return; - } -}); - -}); -define("js/passport/vertification", ["jquery"], function(require, exports, module){ -/** - * 验证手机 - * @author: xuqi<qi.xu@yoho.cn> - * @date: 2015/12/14 - */ - -var $ = require("jquery"); - -var $sc = $('#send-captcha'), - $msgTip = $('#captcha-tip'), - $errTip = $('#err-tip'), - $next = $('#next-step'), - seconds, - itime; - -$sc.click(function() { - $.post('/passport/back/sendbackmobile', { - mobile: $('#mobile').val(), - area: $('#area').val(), - verifyCode: $('#captchaPic').val() - }, function(jsonData) { - if (jsonData.code === 200) { - $errTip.hide(); - if ($(this).hasClass('disable')) { - return; - } - seconds = 60; - - //$sc.addClass('disable').prop('disabled', true); - $sc.addClass('disable').attr('disabled', true); - $msgTip.removeClass('hide'); - - $sc.val(seconds-- + '秒后可重新操作'); - itime = setInterval(function() { - if (seconds === 0) { - clearInterval(itime); - - //$sc.val('发送验证码').removeClass('disable').prop('disabled', false); - $sc.val('发送验证码').removeClass('disable').removeAttr('disabled'); - } else { - $sc.val(seconds-- + '秒后可重新操作'); - } - }, 1000); - } else { - $(this).addClass('error'); - $errTip.removeClass('hide').text('发送失败'); - } - }); -}); - -seconds = 60; - -//$sc.addClass('disable').prop('disabled', true); -$sc.addClass('disable').attr('disabled', true); -$msgTip.removeClass('hide'); - -$sc.val(seconds-- + '秒后可重新操作'); -itime = setInterval(function() { - if (seconds === 0) { - clearInterval(itime); - - //$sc.val('发送验证码').removeClass('disable').prop('disabled', false); - $sc.val('发送验证码').removeClass('disable').removeAttr('disabled'); - } else { - $sc.val(seconds-- + '秒后可重新操作'); - } -}, 1000); - - -$('#captcha').keyup(function() { - var v = $.trim($(this).val()), - that = this; - - if (v.length === 4) { - $.ajax({ - type: 'POST', - url: '/passport/back/backmobile', - dataType: 'json', - data: { - code: $('#captcha').val(), - verifyCode: $('#captchaPic').val(), - area: $('#area').val(), - mobile: $('#mobile').val() - }, - success: function(res) { - if (res.code === 200) { - - //添加验证码正确验证 - $next.removeClass('disable').attr('href', res.data); - $errTip.addClass('hide'); - $(that).removeClass('error'); - } else { - $next.addClass('disable'); - $errTip.removeClass('hide').find('em').text('验证码输入错误'); - $(that).addClass('error'); - } - } - }); - } else { - $next.addClass('disable').attr('href', 'javascript:;'); - } -}).blur(function() { - var v = $.trim($(this).val()); - - if (v === '') { - - //添加验证码正确验证 - $(this).addClass('error'); - $errTip.removeClass('hide').text('请输入验证码'); - } -}).focus(function() { - $(this).removeClass('error'); -}); -}); -define("js/passport/thirdlogin", ["jquery"], function(require, exports, module){ -/** - * 第三方登录首页 - * @author: wq - * @date: 2016/1/21 - */ -var $ = require("jquery"); -var phoneRegx = require("js/passport/mail-phone-regx").phoneRegx; - -var nopermissionoption = $('#nopermissionmessage').html(); //倒计时dom -var sendmessagehtml = $('.validatewrapper').html(); //发送短信dom -var second = +$('.second').text(); //倒计时秒数 -var dovalidate = false; //校验验证码标识 -var validatecode = false; //验证码是否通过 -var choosedpic = 'http://cdn.yoho.cn/yohobuy/assets/img/passport/choosed.png';//已选择图片 - -var $wrapper = $('.bindwrapper'), - $phoneTip = $wrapper.find('.phone-err-tip'), - $nextBtn = $wrapper.find('.yohobindbtn'); - -/** - * 选择协议 - * @return {[type]} [description] - */ -function chooseProtocol() { - $('.choosetag').on('change', function() { - var btnColor = '#f02200'; - - if ($(this).attr('checked') === 'checked') { - $('.choosewrapper').css({ - 'background-image': 'url("' + choosedpic + '")' - }); - } else { - $('.choosewrapper').css({ - 'background-image': 'none' - }); - btnColor = '#CCCCCC'; - } - $nextBtn.css({ - 'background-color': btnColor - }); - }); -} -/** - * 判断是否同意协议 - * @return {[type]} [description] - */ -function isagree() { - return $('.choosetag').attr('checked') === 'checked'; -} -/** - * 选择区域的开关 - * @return {[type]} [description] - */ -function chooseAreaToogle() { - $('.optionshow').on('click', function() { - $('.optionslist').toggleClass('hide'); - }); -} - -/** - * 验证码校验 - * @return {[type]} [description] - */ -function codeValidate() { - var validatenum = ''; - - $(document).on('keyup', '#validatenum', function() { - validatenum = $(this).val(); - if (validatenum.length === 4) { - if (!dovalidate) { - dovalidate = true; - $.ajax({ - type: 'POST', - url: '/passport/autouserinfo/checkBindMsg', - data: { - code: validatenum, - mobile: $('#mobile').val(), - area: $('#areacode').val() - } - }).then(function(data) { - dovalidate = false; - if (data.code === 200) { - validatecode = true; - } else { - alert(data.message); - } - }); - } - } - }); - - $('#validatenum').focus(function() { - $(this).removeAttr('placeholder'); - }).blur(function() { - $(this).attr('placeholder', '验证码'); - }); -} - -/** - * 选择区域 - * @return {[type]} [description] - */ -function chooseArea() { - $('.optionitem').on('click', function() { - var $option = $(this); - var areanum = $option.attr('areanum'); - var areaname = $option.text(); - - $('#areaname').text(areaname); - $('#areanum').text(areanum); - $('#areacode').val(areanum); - $('.optionslist').addClass('hide'); - }); -} -/** - * 取消选择区域 - * @return {[type]} [description] - */ -function cancelChooseArea() { - $(document).on('click', 'body', function(e) { - var $target = $(e.target); - - if ($target.hasClass('yohoselectarea') || - $target.hasClass('areaname') || - $target.hasClass('righttag') || - $target.hasClass('optionslist') || - $target.hasClass('optionitem')) { - return; - } else { - $('.optionslist').addClass('hide'); - } - }); -} -/** - * 去掉区域号的加号 - * @return {[type]} [description] - */ -function fixAreaNum() { - var $opitem = ''; - var itemarecode = ''; - - $('.optionitem').each(function() { - $opitem = $(this); - itemarecode = $opitem.attr('areanum').replace(/\+/g, ''); - $opitem.attr('areanum', itemarecode); - }); -} - -/** - * 关闭蒙层 - * @return {[type]} [description] - */ -function closeMask() { - var $target; - - $(document).on('click', '#alreayregist', function(e) { - $target = $(e.target); - if ($target.hasClass('mask') || $target.hasClass('backdrop')) { - $('#alreayregist').hide(); - $('.backdrop').hide(); - } - }); - $(document).on('click', '#bindconfirm', function(e) { - $target = $(e.target); - if ($target.hasClass('mask') || $target.hasClass('backdrop')) { - $('#bindconfirm').hide(); - $('.backdrop').hide(); - } - }); -} -/** - * 绑定其他手机号 - * @return {[type]} [description] - */ -function yohoBindBtn() { - $(document).on('click', '#yohobindbtn', function(e) { - $('.phonenum').val(''); - $('#bindconfirm').hide(); - $('.backdrop').hide(); - }); - $(document).on('click', '#yohobindbtn2', function(e) { - $('.phonenum').val(''); - $('#alreayregist').hide(); - $('.backdrop').hide(); - }); -} -/** - * 发送短信的时间变换动画 - * @return {[type]} [description] - */ -function changeSecond() { - second -= 1; - if (second < 0) { - second = 60; - $('.validatewrapper').html(sendmessagehtml); - return; - } else { - $('.second').text(second); - window.setTimeout(changeSecond, 1000); - } - -} -/** - * 时间循环 - * @param {[type]} phonenum [description] - * @return {[type]} [description] - */ -function circleTime(phonenum) { - $('.validatewrapper').html(nopermissionoption); - window.setTimeout(changeSecond, 1000); -} -/** - * 发送短信 - * @return {[type]} [description] - */ -function sendMessageValidate() { - $(document).on('click', '#sendmessage', function() { - if ($('#sendmessage').attr('disabled') === 'disabled') { - return; - } - circleTime($('#mobile').val()); - $.ajax({ - type: 'POST', - url: '/passport/autouserinfo/sendBindMsg', - data: { - mobile: $('#mobile').val(), - area: $('#areacode').val() - } - }).then(function(data) { - if (data.code !== 200) { - alert(data.message); - } - }); - - }); -} - -/** - * 最终提交表单 - */ -function actionSubmit() { - var mobile = ''; - var area = ''; - - area = $('#areacode').val(); - mobile = $('#mobile').val(); - $.ajax({ - type: 'POST', - url: '/passport/autouserinfo/bindMobile', - data: { - area: area, - openId: $('#openId').val(), - sourceType: $('#sourceType').val(), - mobile: mobile, - code: $('#validatenum').val() - } - }).then(function(data) { - if (data.code === 200) { - if (data.data && data.data.refer) { - window.location.href = data.data.refer; - } else { - window.location.href = '/passport/thirdlogin/bindsuccess'; - } - } else { - alert(data.message); - } - }); -} - -/** - * 确认去绑定 - * @return {[type]} [description] - */ -function goToBindPhone() { - $(document).on('click', '#gotobindphone', function() { - if (validatecode === true) { - $('#inarea').val($('#areacode').val()); - $('#inmobile').val($('#mobile').val()); - actionSubmit(); - } else { - alert('请输入正确验证码'); - } - }); -} -/** - * 点击下一步 - * @return {[type]} [description] - */ -function nextStep() { - var openId = ''; - var sourceType = ''; - var mobile = ''; - var areaCode = ''; - var username = ''; - var headImg = ''; - - $('#bindfirststep').on('click', function(e) { - var regx; - - e.preventDefault(); - mobile = $('.phonenum').val(); - areaCode = $('#areanum').text(); - regx = phoneRegx['+' + areaCode]; - - if (!isagree()) { - return; - } - if (mobile === '' || !regx || !regx.test(mobile)) { - $phoneTip.find('em').text('手机格式错误'); - $phoneTip.removeClass('hide'); - return; - } - openId = $('#openId').val() || '29803EC6D4AAC3AAB8ABDB6AE829D579'; - sourceType = $('#sourceType').val() || 'qq'; - $.ajax({ - type: 'post', - url: '/passport/autouserinfo/bindCheck', - data: { - mobile: mobile, - area: areaCode, - openId: openId, - sourceType: sourceType - }, - dataType: 'json', - success: function(data) { - var winHeight = $(window).height(); - - if (data.code === 200) { - $('#bindmobileform').attr('action', data.data.next); - $('#bindmobileform').submit(); - } else if (data.code === 201) { - - // 已注册 未绑定 - username = data.data.user.username; - headImg = data.data.user.headImg; - $('#registphone').text(mobile); - $('#username').text(username); - if (headImg === '') { - $('#userphoto').attr('src', 'http://img10.static.yhbimg.com/headimg/2013/11/28/09/' + - '01cae078abe5fe320c88cdf4c220212688.gif?imageView/2/w/100/h/100'); - } else { - $('#userphoto').attr('src', headImg); - } - $('#logindirectly2').attr('href', data.data.user.bindLogin); - $('.backdrop').show(); - $('#sendmessage').click(); - $('#alreayregist .mask').css({ - 'padding-top': winHeight > 440 ? winHeight / 2 : 217 - }); - $('#alreayregist').show(); - } else if (data.code === 203) { - - // 已注册 可关联 - $('#bindmobileform').attr('action', data.data.next); - $('#bindmobileform').submit(); - } else if (data.code === 205) { - - // 未注册 不可关联 - username = data.data.user.username; - headImg = data.data.user.headImg; - $('#registphonetwo').text(mobile); - $('#username1').text(username); - if (headImg === '') { - $('#userphoto1').attr('src', 'http://img10.static.yhbimg.com/headimg/2013/11/28/09/' + - '01cae078abe5fe320c88cdf4c220212688.gif?imageView/2/w/100/h/100'); - } else { - $('#userphoto1').attr('src', headImg); - } - $('#logindirectly').attr('href', data.data.user.bindLogin); - $('.backdrop').show(); - $('#bindconfirm .mask').css({ - 'padding-top': winHeight > 440 ? winHeight / 2 : 217 - }); - $('#bindconfirm').show(); - } else if (data.code === 402) { - $phoneTip.find('em').text('手机格式错误'); - $phoneTip.removeClass('hide'); - } else { - if (data && data.message) { - alert(data.message); - } - } - } - }); - }); -} - -$wrapper.on('keydown', '.phonenum', function(e) { - if (e.keyCode === 13) { - $nextBtn.trigger('click'); - return false; - } -}); - -function init() { - fixAreaNum(); //去掉所有区域的+ - sendMessageValidate(); //有交互的发送短信 - chooseProtocol(); //选择协议 - chooseArea(); //选择区域 - chooseAreaToogle(); //选择区域展示或关闭 - cancelChooseArea(); //取消选择区域 - nextStep(); //下一步 - closeMask(); //关闭蒙层 - yohoBindBtn(); //绑定其他手机号点击 - goToBindPhone(); //绑定手机 - codeValidate(); //验证码校验 -} -init(); -}); -define("js/passport/third-pwd", ["jquery"], function(require, exports, module){ -/** - * 第三方绑定完善个人信息 - * @author: wq - * @date: 2016/1/27 - */ -var $ = require("jquery"); -var dovalidate = false; //校验验证码的标识 -var isvalidatecode = false; //是否验证成功的标识 -var isvalidatepwd = false; //密码验证是否通过的标识 -var second = ''; //倒计时时间 -var nopermissionoption = ''; //倒计时的dom -var sendmessagehtml = ''; //发送短信的dom -var submitStatus = false; //信息提交状态 - -var $wrapper = $('.bindwrapper'), - $codeTip = $wrapper.find('.code-err-tip'), - $pwdTip = $wrapper.find('.pwd-err-tip'), - $pwdTip2 = $('#pwd-tip2'), - $sendMsgBtn = $('#sendmessage'); -var $pwd, - $pwdParent, - $pwdTip1, - $pwdIntensity; - -var pwdRegx = require("js/passport/mail-phone-regx").pwdValidateRegx; -var mobile = $('#mobile').val(), - area = $('#area').val(); - -nopermissionoption = $('#nopermissionmessage').html(); -sendmessagehtml = $('.validatewrapper').html(); -second = +$('.second').text(); - - -function gettype(str, i) { - if (str.charCodeAt(i) >= 48 && str.charCodeAt(i) <= 57) { - return 1; - } else if (str.charCodeAt(i) >= 97 && str.charCodeAt(i) <= 122) { - return 2; - } else if (str.charCodeAt(i) >= 65 && str.charCodeAt(i) <= 90) { - return 3; - } - - return 4; -} - -function isregular(cur, pre, type) { - var curCode = cur.charCodeAt(0); - var preCode = pre.charCodeAt(0); - - if (curCode - preCode === 0) { - return true; - } - - if (type !== 4 && (curCode - preCode === 1 || curCode - preCode === -1)) { - return true; - } - - return false; -} - - -function getcomplex(curType, preType) { - if (preType === 0 || curType === preType) { - return 0; - } else if (curType === 4 || preType === 4) { - return 2; - } else { - return 1; - } -} - - -/** - * @desc: 计算密码复杂度(from:http://www.oschina.net/code/snippet_127301_17269) - * @author: xuqi(qi.xu@yoho.cn) - * @date: 2015/5/6 - */ -function computeComplex(password) { - var complex = 0; - var length = password.length; - var pre = ''; - var preType = 0; - var i = 0; - var cur = ''; - var curType = ''; - - for (i; i < length; i++) { - cur = password.charAt(i); - curType = gettype(password, i); - if (preType !== curType || !isregular(cur, pre, curType)) { - complex += curType + getcomplex(curType, preType); - } - pre = cur; - preType = curType; - } - - return complex; -} - -function showErrTip($dom, info) { - $dom.find('em').text(info); - $dom.removeClass('hide'); -} - -function changeSecond() { - second -= 1; - if (second < 0) { - second = 60; - $('.validatewrapper').html(sendmessagehtml); - return; - } else { - $('.second').text(second); - window.setTimeout(changeSecond, 1000); - } - -} -/** - * 启动倒计时 - * @return {[type]} [description] - */ -function circleTime() { - $('.validatewrapper').html(nopermissionoption); - window.setTimeout(changeSecond, 1000); -} - -function sendMessageValidate() { - $(document).on('click', '#sendmessage', function() { - circleTime(); - $.ajax({ - type: 'POST', - url: '/passport/autouserinfo/sendBindMsg', - data: { - mobile: mobile, - area: area - } - }).then(function(data) { - if (data.code !== 200) { - alert(data.message); - } - }); - - }); -} - - - -function codeValidate() { - var validatenum = ''; - - $(document).on('keyup', '#validatenum', function() { - $('#err-info').hide(); - validatenum = $(this).val(); - if (validatenum.length === 4) { - if (!dovalidate) { - dovalidate = true; - $.ajax({ - type: 'POST', - url: '/passport/autouserinfo/checkBindMsg', - data: { - code: validatenum, - mobile: mobile, - area: area - } - }).then(function(data) { - dovalidate = false; - if (data.code !== 200) { - $('#err-info').show(); - } else { - isvalidatecode = true; - } - }); - } - } - }); -} - -function pwdKeyupEvt() { - var pwd = $pwd.val(), - pwdStrength = computeComplex(pwd), - level = 0; - - if (pwdStrength === 0) { - level = 0; - } else if (pwdStrength <= 10) { - level = 1; - } else if (pwdStrength <= 20) { - level = 2; - } else { - level = 3; - } - switch (level) { - case 0: - $pwdParent.removeClass('red yellow green'); - $pwdIntensity.removeClass('color'); - break; - case 1: - $pwdParent.addClass('red').removeClass('yellow green'); - $pwdIntensity.filter('.low').addClass('color'); - $pwdIntensity.filter('.mid,.high').removeClass('color'); - break; - case 2: - $pwdParent.addClass('yellow').removeClass('red green'); - $pwdIntensity.filter('.low,.mid').addClass('color'); - $pwdIntensity.filter('.high').removeClass('color'); - break; - case 3: - $pwdParent.addClass('green').removeClass('yellow red'); - $pwdIntensity.addClass('color'); - break; - } - if (pwd === '') { - isvalidatepwd = false; - $pwdTip1.removeClass('red yes no').addClass('default'); - } else { - if (pwd.length < 6 || pwd.length > 20) { - isvalidatepwd = false; - $pwdTip1.removeClass('default yes').addClass('no red'); - } else { - isvalidatepwd = true; - $pwdTip1.removeClass('default no red').addClass('yes'); - } - if (/^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]*$/.test(pwd)) { - $pwdTip2.removeClass('default no red').addClass('yes'); - } else { - $pwdTip2.removeClass('default yes').addClass('no red'); - } - } -} - -function validatePwd() { - $(document).on('keyup', '.pwdcontent', function() { - pwdKeyupEvt($(this)); - }); - $(document).on('focus', '.pwdcontent', function() { - $('#pwd-tips').removeClass('hide'); - }); - $(document).on('blur', '.pwdcontent', function() { - $('#pwd-tips').addClass('hide'); - }); -} - -/** - * 最终提交表单 - */ -function actionSubmit() { - var pwd = ''; - var code = ''; - - // 查看提交状态,避免重复提交 - if (submitStatus) { - return; - } - submitStatus = true; - setTimeout(function() { - submitStatus = false; - }, 50000); - - pwd = $('#pwd').val(); - code = $('#validatenum').val(); - $.ajax({ - type: 'POST', - url: '/passport/autouserinfo/bindMobile', - data: { - area: area, - openId: $('#openId').val(), - sourceType: $('#sourceType').val(), - mobile: mobile, - password: pwd, - code: code - } - }).then(function(data) { - submitStatus = false; - if (data.code === 200) { - if (data.data && data.data.refer) { - window.location.href = data.data.refer; - } else { - window.location.href = '/passport/thirdlogin/bindsuccess'; - } - } else { - alert(data.message); - } - }); -} -/** - * 确定完善信息 - * @return {[type]} [description] - */ -function actionConfirm() { - var validatenum = ''; - var pwd = ''; - - $('#confirmsubmit').on('click', function() { - var isAssess = true; - - validatenum = $('#validatenum').val(); - pwd = $('#pwd').val(); - - if (validatenum === '') { - showErrTip($codeTip, '短信验证码不能为空'); - isAssess = false; - } else if (isvalidatecode === false) { - showErrTip($codeTip, '请输入正确的验证码'); - isAssess = false; - } - - if (pwd === '') { - showErrTip($pwdTip, '密码不能为空'); - isAssess = false; - } else if (pwd.length < 6 || pwd.length > 20) { - showErrTip($pwdTip, '密码只支持6-20位字符'); - isAssess = false; - } else if (!pwdRegx.test(pwd)) { - showErrTip($pwdTip, '密码须由字母和数字组合'); - isAssess = false; - } else if (isvalidatepwd === false) { - showErrTip($pwdTip, '请输入符合强度的密码'); - isAssess = false; - } - - if (!isAssess) { - return; - } - - actionSubmit(); - }); -} - - - -function init() { - $pwd = $('#pwd'); - $pwdParent = $('.safelevel'); - $pwdIntensity = $('.pwd-intensity'); - $pwdTip1 = $('#pwd-tip1'); - sendMessageValidate(); - codeValidate(); - validatePwd(); - actionConfirm(); - if (mobile && area) { - $sendMsgBtn.click(); - } -} - -init(); +//点击字母,页面滚动到相关区域 +$category.click(function() { + var name = $(this).attr('href').split('#')[1]; + var targetTop = $list.find('[name=' + name + ']').offset().top - categoryHeight; + + if (!$gory.hasClass('category-fix')) { + targetTop -= categoryHeight; + } + + $('html,body').animate({ + scrollTop: targetTop + }, 200); + return false; }); -define("js/passport/relate", ["jquery"], function(require, exports, module){ -/** - * 第三方关联 - * @author: yyqing<yanqing.yang@yoho.cn> - * @date: 2016/4/11 - */ -var $ = require("jquery"); - -var $relateMain = $('#relate-main'), - $codeValidate = $('#code-validate'), - $vaWrapper = $codeValidate.find('.validate-wrapper'), - $msgCode = $codeValidate.find('.msg-code'), - $second = $codeValidate.find('.count-down span'), - $errTip = $codeValidate.find('.code-error'), - $hideDom = $('#hide-info'); - -var relate = {}; - -var circleTime = {}; - -relate = $hideDom.data(); -$hideDom.remove(); - -// 倒计时 -circleTime = { - init: function() { - if (this.timer) { - window.clearTimeout(this.timer); - } - this.second = 60; - $vaWrapper.addClass('waiting'); - this.changeTime(); - }, - changeTime: function() { - var that = this; - - if (this.second && this.second > 0) { - $second.text(this.second); - this.second--; - this.timer = window.setTimeout(function() { - that.changeTime(); - }, 1000); - } else { - this.clearTime(); - } - }, - clearTime: function() { - if (this.timer) { - window.clearTimeout(this.timer); - } - $vaWrapper.removeClass('waiting'); - } -}; - -function sendVerifyMsg() { - circleTime.init(); - - $.ajax({ - type: 'POST', - url: '/passport/autouserinfo/sendBindMsg', - data: { - mobile: relate.mobile, - area: relate.area - } - }).then(function(jsonData) { - if (jsonData && jsonData.code !== 200) { - circleTime.clearTime(); - alert(jsonData.message); - } - }); -} - -function relateMobile() { - var code = $msgCode.val(); + + +//浮层代码 +function bindTemplete($select, data, templete) { + var $this = $select; + var offset = { + width: $this.width(), + left: $this.offset().left, + right: parseFloat($(window).width()) - parseFloat($this.offset().left) - parseFloat($this.width()) + }; + + var $parent = $this.parent('li'); + var myTemplate; + + $list.find('.brands-dialog').remove(); + myTemplate = Handlebars.compile(templete); + $parent.append(myTemplate(data)); + dot($parent.find('.right')); + + if (offset.right - 350 < 0) { + $parent.find('.brands-layer') + .addClass('brands-layer-right').css('left', -330 - offset.width); + } +} + +//鼠标悬浮品牌,请求数据,并且展示 +function bindHoverEvent() { + $brand.unbind('mouseenter').unbind('mouseleave').hover(function() { + var $this = $(this); + var key = $this.attr('data-key'); + + var options = { + url: '/brands/brandinfo', + type: 'get', + data: { + brandId: key + }, + success: function(_data) { + + if (_data.code === 200 && _data.brand) { + if (!tempdata.hasOwnProperty(_data.brand.key)) { + tempdata[_data.brand.key] = _data.brand; + } + bindTemplete($this, tempdata[_data.brand.key], templete); + } + } + }; + + clearTimeout(timeout); + timeout = setTimeout(function() { + if (!tempdata.hasOwnProperty(key)) { + $.ajax(options); + } else { + bindTemplete($this, tempdata[key], templete); + } + }, 200); + }, function() { + clearTimeout(timeout); + $list.find('.brands-dialog').remove(); + }); +} + +if ($clearfix.length < 26) { + $.ajax({ + url: '/brands/brandList', + type: 'POST', + data: { + start: $clearfix.length ? ($clearfix.length + 1) : 1 + }, + success: function(_data) { + if (_data) { + $list.append(_data); + $brand = $list.find('li>a'); + bindHoverEvent(); + } + } + }); +} + +bindHoverEvent(); +}); +define("js/passport/entry", ["jquery","jquery.placeholder"], function(require, exports, module){ +/* + * 密码中心打包入口文件 + */ - if (!code) { - return; - } +require("js/passport/reg"); +require("js/passport/back"); +require("js/passport/login"); +require("js/passport/reset"); +require("js/passport/vertification"); +require("js/passport/thirdlogin"); +require("js/passport/third-pwd"); +require("js/passport/relate"); +}); +define("js/passport/reg", ["jquery","jquery.placeholder"], function(require, exports, module){ +/* + * @description 注册页js + * @time 2015/12/14 + */ - $.ajax({ - type: 'POST', - url: '/passport/autouserinfo/relateMobile', - data: { - mobile: relate.mobile, - area: relate.area, - openId: relate.openid, - sourceType: relate.source, - code: code - } - }).then(function(jsonData) { - if (jsonData.code === 200) { - window.location.href = jsonData.data.refer; - } else if (jsonData.code === 402) { - $errTip.removeClass('hide'); - } else { - $errTip.addClass('hide'); - alert(jsonData.message); - } - }); -} +var $ = require("jquery"), + regValidate = require("js/passport/mail-phone-regx"), + computeComplex = require("js/passport/pwd-strength"); -$('#next-step-btn').click(function() { - sendVerifyMsg(); - $relateMain.addClass('hide'); - $errTip.addClass('hide'); - $codeValidate.removeClass('hide'); -}); +var $registerPage = $('.register-page'), + $pwdTips = $('#pwd-tips'), + $pwdTip1 = $pwdTips.find('#pwd-tip1'), + $errTip = $('#err-tip'), + $registerBtn = $('#register-btn'), + $countDown = $('#count-down'), + $successBtn = $('.success-btn'), + countDown = 5, + clearT; -$codeValidate.on('keydown', '.msg-code', function(e) { - if (e.keyCode === 13) { - relateMobile(); - return false; - } -}); +var $sendCaptcha = $('#send-captcha'), + caCount = 4, + validateResult = []; -$codeValidate.on('click', '.get-code', function() { - sendVerifyMsg(); -}); +var $pn = $('#phone-num'), + $mc = $('#msg-captcha'), + $pwd = $('#pwd'), + $repwd = $('#repwd'), + $ca = $('#captcha'), + timeResidue = 0; -$codeValidate.on('click', '.perv-step', function() { - circleTime.clearTime(); - $relateMain.removeClass('hide'); - $codeValidate.addClass('hide'); - $msgCode.val(''); -}); +// 密码强度验证 +var $pwdIntensity = $('.pwd-intensity'), + $pwdParent = $pwdIntensity.closest('.pwd-intensity-container'); -$('#relate-btn').click(function() { - relateMobile(); -}); -}); -define("js/cart/cart", ["jquery","handlebars","source-map"], function(require, exports, module){ -/** - * @description: 购物车 - * @author: chenglong.wang@yoho.cn - * @tips: 购物车的商品计价在服务端处理,客户端只要在每次操作后刷新页面重新渲染就可以了 - */ +//signup验证 +var $region = $('#country-code'), + $regionSelect = $('#region'), + isPwd = false, + pwdVal; -var $ = require("jquery"); -var Handlerbars = require("handlebars"); -var dialog = require("js/common/dialog"); +var pwdReg = regValidate.pwdValidateRegx; -var Confirm = dialog.Confirm; -var Alert = dialog.Alert; +var $curErrContainer; -var $cartnewSum = $('.cartnew-sum'), - $cartnewTips = $('.cartnew-tips'), - $payWapper = $('.pay-wapper'), - $goodsDetail = $('.goods-detail'), - $histroy = $('.histroy'), - $together = $('.together'), - $shopCart = $('.shop-cart'), - togetherProductSource, - togetherProductTemplate, - togetherProductStr, - subjoinPage, - subjoinPageNum, - subjoinPageAll, - pageDom, - selected, - pageNum = 1, - delUrl, - count, - countJSON, - dataJSON, - pacList = 0, - shopNum = 1, - shopNumAll, - productSku, - promotionId, - promotionPrice, - yetCollect, - collect, - content, - productId, - shopName, - delNum, - understock, - selectArray = [], - PromotionArray = [], - perList = false, - commonList = false, - hasPromotion = false, - htmlInfo, - shopJson, - oldprice, - wapperPrice, - countBusy = false; +var oldPhone = ''; //如果手机号改变时刷新验证码 +require("jquery.placeholder"); -// 关闭温馨提示 -$cartnewTips.find('.btn_close').click(function() { - $cartnewTips.fadeOut(); -}); +setTimeout(function() { + $pn.val(''); + $mc.val(''); + $pwd.val(''); + $repwd.val(''); + $ca.val(''); +}, 0); -// checkbox提交ajax -function choiceOut(data) { - $.ajax({ - type: 'POST', - dataType: 'json', - url: '/cart/index/select', - data: data, - beforeSend: function() { - $('.loading').css({ - top: $(document).scrollTop() + 200 - }); - $('.loading').show(); - } - }).then(function(d) { - if (d.code === 200) { - window.history.go(0); - } - }); -} +//验证码位数 +$ca.attr('maxlength', caCount); -//单选提交 -$payWapper.one('click', '.common-sell-box input[type="checkbox"], .pre-sell-box input[type="checkbox"]', function() { - selected = $(this).attr('checked') ? 'Y' : 'N'; - selectArray = []; - selectArray.push({ - product_sku: $(this).parents('tr').data('id'), - selected: selected, - buy_number: $(this).parents('tr').data('productnum'), - goods_type: $(this).parents('tr').data('goodstype'), - promotion_id: $(this).parents('tr').data('promotionid') ? $(this).parents('tr').data('promotionid') : 0 - }); - if ($(this).parents('tr').promotion_id) { - hasPromotion = true; - } else { - hasPromotion = false; - } - dataJSON = { - skuList: JSON.stringify(selectArray), - hasPromotion: hasPromotion - }; - choiceOut(dataJSON); +//密码规则提示 +$pwd.focus(function(event) { + $pwdTips.removeClass('hide'); + isPwd = true; + pwdVal = $(this).val(); +}).blur(function() { + $pwdTips.addClass('hide'); + isPwd = false; }); -//多选提交 -$cartnewSum.one('click', 'input[type="checkbox"]', function() { - selectArray = []; - shopJson = {}; - dataJSON = {}; - selected = $(this).attr('checked') ? 'Y' : 'N'; - $('.pay-wapper:first tr').each(function() { - if ($(this).data('promotionid')) { - hasPromotion = true; - } - if ($(this).data('id')) { - selectArray.push({ - product_sku: $(this).data('id'), - selected: selected, - buy_number: $(this).data('productnum'), - goods_type: $(this).data('goodstype'), - promotion_id: $(this).data('promotionid') ? $(this).data('promotionid') : 0 - }); - } - }); - dataJSON = { - skuList: JSON.stringify(selectArray), - hasPromotion: hasPromotion - }; - choiceOut(dataJSON); -}); -// 滚动到第一个选中的商品 -function scrollToFirst() { - var $selected = $('.pay-wapper tbody tr').find('.cart-item-check:checked'); - var top = 0; +//IE8 placeholder +$('[placeholder]').placeholder(); - if ($selected.length > 0) { - $selected = $selected.eq(0); +// 存储校验信息 +validateResult = [ + { + id: 'phone-num', + message: '', //错误信息 + status: false //当前的状态 + }, + { + id: 'captcha', + message: '', + status: false + }, + { + id: 'msg-captcha', + message: '', + status: false + }, + { + id: 'pwd', + message: '', + status: false + }, + { + id: 'repwd', + message: '', + status: false } +]; - top = $selected.offset().top - 36; - $('html,body').scrollTop(top); - return false; -} -function isCheck(obj, className) { - selectArray = []; - dataJSON = {}; - selected = obj.attr('checked') ? 'Y' : 'N'; - $('.' + className).each(function() { - if ($(this).data('promotionid')) { - hasPromotion = true; - } else { - hasPromotion = false; - } - if ($(this).data('id')) { - selectArray.push({ - product_sku: $(this).data('id'), - selected: selected, - buy_number: $(this).data('productnum'), - goods_type: $(this).data('goodstype'), - promotion_id: $(this).data('promotionid') ? $(this).data('promotionid') : 0 - }); - } - }); - dataJSON = { - skuList: JSON.stringify(selectArray), - hasPromotion: hasPromotion - }; - choiceOut(dataJSON); +//刷新图形验证码 +function refreshPic() { + var time = new Date(), + $captchaImg = $('.captcha-img'), + captchaImgSrc = $captchaImg.attr('src').split('?')[0]; + + $captchaImg.attr('src', captchaImgSrc + '?t=' + time.getTime()); } -$('.per-list').on('click', 'input[type="checkbox"]', function() { - isCheck($(this), 'pre-sell-box'); -}); +//手机号ajax校验 +function phoneAjaxFn(page, callback) { + var url, + data; -$('.common-list').on('click', 'input[type="checkbox"]', function() { - isCheck($(this), 'common-sell-box'); -}); + if (page === 'reg') { + url = '/passport/register/checkmobile'; + data = { + mobile: $pn.val(), + area: $region.text().split('+')[1] + }; + } else if (page === 'third') { + url = '/passport/autouserinfo/bindCheck'; + data = { + mobile: $pn.val(), + area: $region.text().split('+')[1], + openId: $('#open-id').val(), + sourceType: $('#source-type').val() + }; + } -// 凑单商品,最近浏览异步加载 -togetherProductSource = $('#togetherProduct').html(); -togetherProductTemplate = Handlerbars.compile(togetherProductSource); + validateResult[0].message = 'err'; + validateResult[0].status = false; -function getTogetherProduct($obj, url, page) { $.ajax({ - type: 'GET', - dataType: 'json', url: url, - data: page - }).then(function(d) { - if (d.code === 200) { - if (d.data.item) { - if (d.data.item.length > 0) { - $obj.html(' '); - togetherProductStr = togetherProductTemplate(d.data); - $obj.append($(togetherProductStr)); - $('#orderProduct li:last').addClass('end'); - $('.gift').removeClass('none'); - } - } + type: 'POST', + data: data + }).then(function(data) { + if (!data) { + return; } - }); -} -// 为你优选 -getTogetherProduct($histroy, '/cart/index/getRecommendProduct'); + switch (data.code) { + case 200: -// 凑单商品 -getTogetherProduct($together, '/cart/index/getTogetherProduct'); + if ($pn.val() !== oldPhone && oldPhone !== '') { -//凑单商品翻页 -$together.on('click', '.pagenext, .pageprev', function() { - getTogetherProduct($together, '/cart/index/getTogetherProduct', { - page: Math.ceil(Math.random() * 100) + 1 + // 如果手机号发生改变则刷新验证码并且更新状态 + refreshPic(); + $sendCaptcha.addClass('disable').attr('disabled', 'disabled'); + validateResult[1].message = '图形验证码错误'; + validateResult[1].status = false; + } + + oldPhone = $pn.val(); + + validateResult[0].message = ''; + validateResult[0].status = true; + break; + case 400: + refreshPic(); + validateResult[0].message = data.message; + validateResult[0].status = false; + break; + } + + callback(); }); +} -}); +//图形验证码ajax校验 +function picCaptchaAjaxFn(page, callback) { + var url; -//凑单商品,为你优选商品商品折叠 -$shopCart.on('click', '.icon-minus, .icon-add', function() { - if ($(this).hasClass('icon-minus')) { - $(this).parents('.title').next('.main').hide(); - $(this).parents('h2').next('.right').hide(); - } else { - $(this).parents('.title').next('.main').show(); - $(this).parents('h2').next('.right').show(); + if (page === 'reg') { + url = '/passport/register/piccaptcha'; + } else if (page === 'third') { + url = '/passport/autouserinfo/checkPicCode'; } - $(this).siblings('i').toggleClass('none'); - $(this).toggleClass('none'); + $.ajax({ + type: 'POST', + url: url, + data: { + verifyCode: $ca.val() -}); + //mobile: $pn.val(), + //area: $region.text().split('+')[1] + } + }).then(function(data) { + if (!data) { + return; + } -// 最近浏览翻页 -$histroy.on('click', '.pagenext, .pageprev', function() { - if ($(this).hasClass('pagenext')) { - if (pageNum !== 5) { - pageNum++; - } else { - pageNum = 1; + switch (data.code) { + case 200: + validateResult[1].message = ''; + validateResult[1].status = true; + break; + case 400: + refreshPic(); + validateResult[1].message = '图形验证码错误'; + validateResult[1].status = false; + break; } - } else { - --pageNum > 0 || (pageNum = 1); - } - getTogetherProduct($histroy, '/cart/index/getRecommendProduct', { - page: pageNum + callback(); }); +} -}); - +//短信验证码ajax校验 +function msgCaptchaAjaxFn(page, callback) { + var url; -//根据id获取商品信息 -function productInfo(data) { + if (page === 'reg') { + url = '/passport/register/msgcaptcha'; + } else if (page === 'third') { + url = '/passport/autouserinfo/checkBindMsg'; + } $.ajax({ - type: 'GET', - dataType: 'html', - url: '/cart/index/getProductInfo', - data: data - }).then(function(d) { - pacList = 0; - $goodsDetail.html(' '); - $goodsDetail.append(d); - $goodsDetail.show(); - $('.detail-bigpic:not(.none) .con li:first').addClass('active'); - - if ($('.showSizeBox:not(.none) span').length < 2) { - $('.showSizeBox:not(.none) span:first').addClass('atcive'); + type: 'POST', + url: url, + data: { + code: $mc.val(), + mobile: $pn.val(), + area: $region.text().split('+')[1] } - if (Number($('#addToCart').val()) !== 1) { - $('.showSizeBox span').data('num', 0); + }).then(function(data) { + if (!data) { + return; } - $.each($('.showSizeBox span'), function() { - if ($(this).data('num') <= 0) { - $(this).addClass('null-atcivec'); - console.log($('.showSizeBox:not(.none) span:first')); - $('.showSizeBox:not(.none) span:first').removeClass('atcive'); - } - }); - if (typeof promotionPrice !== 'undefined') { - oldprice = $('.detail-info .oldprice del').html() ? $('.detail-info .oldprice del').html() : wapperPrice; - htmlInfo = '<span class="oldprice">现价:<del>' + oldprice + '</del></span>' + - '<span class="newprice">活动价:<b class="promotion-price">' + promotionPrice + '</b></span>'; - $('.detail-info .price').html(htmlInfo); + switch (data.code) { + case 200: + validateResult[2].message = ''; + validateResult[2].status = true; + break; + case 400: + validateResult[2].message = '短信验证码错误'; + validateResult[2].status = false; + break; } - $('.detail-bigpic:not(.none) .bigpic:gt(0)').hide(); - - $('.showSizeBox:not(.none)').find('span').each(function() { - if ($(this).hasClass('null-atcivec')) { - $('.addcart').addClass('none'); - $('.btn_sellout').removeClass('none'); - } else { - $('.addcart').removeClass('none'); - $('.btn_sellout').addClass('none'); - return false; - } - }); - + callback(); }); } -function removeInfo() { - $goodsDetail.html(' '); - $goodsDetail.css({ - top: $(document).scrollTop() + 30, - left: $(document).width() / 2 - $goodsDetail.width() / 2 - }); +// 验证 +function validateRule(page, $element, callback) { -} + var val = $.trim($element.val()), + regionCode; -//显示加价购商品信息 -$payWapper.on('click', '.cart-add-btn', function() { - productId = $(this).data('id'); - promotionId = $(this).parents('table').data('promotion'); - promotionPrice = $(this).parents('table').find('.subjoin-price').html(); - wapperPrice = $(this).parents('table').find('.wapper-price').html(); - removeInfo(); - productInfo({ - productId: productId - }); -}); -//凑单商品,为你优选商品商品记录 -$('.clearfix').on('click', '.btn_view_s', function() { - productId = $(this).data('id'); - promotionId = $(this).parents('table').data('promotion'); - promotionPrice = $(this).parents('table').find('.subjoin-price').html(); - removeInfo(); - productInfo({ - productId: productId - }); -}); -//关闭商品信息窗口 -$goodsDetail.on('click', '.colse', function() { - $goodsDetail.hide(); - $goodsDetail.html(' '); - shopNum = 1; -}); + // 根据需求http://redmine.yoho.cn/issues/3117改成上边的正则 + // 对应的错误提示语也改了,感觉要不了多久就会改回来 + // pwdReg = /^([a-zA-Z0-9\-\+_!@\#$%\^&\*\(\)\:\;\.=\[\]\\\',\?]){6,20}$/gi; -//展开加价购商品列表 -function fold(icon) { - icon.addClass('none').siblings('i').removeClass('none'); - icon.parents('.cart-product-num').siblings('div').toggleClass('fold'); - icon.siblings('.unfold-color').toggleClass('none'); - icon.siblings('.cart-page').toggleClass('none'); -} + //手机号校验 + if ($element.hasClass('phone-num')) { -$payWapper.on('click', '.icon-minusCart, .icon-addCart', function() { - fold($(this)); -}); + regionCode = $region.text(); -$payWapper.on('click', '.unfold-color', function() { - fold($(this)); - $(this).siblings('.icon-minusCart').removeClass('none'); - $(this).siblings('.icon-addCart').addClass('none'); -}); + if (val === '') { + validateResult[0].message = '请输入手机号码'; + validateResult[0].status = false; + callback(); -//加价购商品分页 -$payWapper.on('click', '.cart-btn-next', function() { - subjoinPage = $(this).siblings('p').find('.f-red'); - subjoinPageAll = Number($(this).siblings('p').find('.subjoinPageNum').html()); - subjoinPageNum = Number(subjoinPage.html()); - subjoinPage.html(subjoinPageNum + 1); - if (subjoinPageNum >= subjoinPageAll - 1) { - $(this).hide(); - } else { - $(this).siblings('i').show(); - } - pageDom = $(this).parents('.cart-product-num').siblings('div').find('table'); - pageDom.addClass('none').eq(subjoinPageNum).removeClass('none'); -}); + } else { + if (!/^[0-9]+$/.test(val) || + (regionCode === '+86' && !regValidate.phoneRegx[regionCode].test(val))) { + validateResult[0].message = '手机号码格式不正确,请重新输入'; + validateResult[0].status = false; + callback(); + } else { + phoneAjaxFn(page, callback); + } + } -$payWapper.on('click', '.cart-btn-pre', function() { - subjoinPage = $(this).siblings('p').find('.f-red'); - subjoinPageAll = Number($(this).siblings('p').find('.subjoinPageNum').html()); - subjoinPageNum = Number(subjoinPage.html()); - subjoinPage.html(subjoinPageNum - 1); - if (subjoinPageNum <= 2) { - $(this).hide(); - } else { - $(this).siblings('i').show(); - } - pageDom = $(this).parents('.cart-product-num').siblings('div').find('table'); - pageDom.addClass('none').eq(subjoinPageNum - 2).removeClass('none'); -}); + //图形验证码校验 + } else if ($element.hasClass('captcha')) { + if (val === '') { + validateResult[1].message = '请输入图形验证码'; + validateResult[1].status = false; + callback(); -//删除购物车商品,把删除的商品移入cookie中 -function cartDel(data, delUrl, cookieList) { - $.ajax({ - type: 'POST', - dataType: 'json', - url: delUrl, - data: dataJSON, - beforeSend: function() { - $('.loading').css({ - top: $(document).scrollTop() + 200 - }); - $('.loading').show(); - } - }).then(function(d) { - if (d.code === 200) { - if (cookieList) { - window.setCookie('cart-del-list', JSON.stringify(cookieList), { - domain: '.yohobuy.com', - path: '/' - }); - } - window.history.go(0); - } else if (d.code === 300) { - $('.loading').hide(); - new Alert(d.message).show(); - } else if (d.code === 403) { - if (d.data.url) { - window.location = d.data.url; + } else if (val.length <= 3) { + validateResult[1].message = '图形验证码为4位'; + validateResult[1].status = false; + callback(); + + } else { + + // 并且手机号正确 + if (validateResult[0].status) { + picCaptchaAjaxFn(page, callback); + } else { + validateResult[1].message = '图形验证码错误'; + validateResult[1].status = false; + callback(); } - } - }); -} -//商品信息弹出框,加入收藏夹 -$goodsDetail.on('click', '.fav_count', function() { - $.ajax({ - type: 'POST', - dataType: 'json', - url: '/product/item/togglecollect', - data: { - productId: productId, - type: 'add' } - }).then(function(d) { - if (d.code === 200) { - new Alert(d.message).show(); - } else if (d.code === 403) { - if (d.data.url) { - window.location = d.data.url; + + //短信验证码校验 + } else if ($element.hasClass('msg-captcha')) { + + if (val === '') { + validateResult[2].message = '请输入短信验证码'; + validateResult[2].status = false; + callback(); + + } else if (val.length <= 3) { + validateResult[2].message = '短信验证码错误'; + validateResult[2].status = false; + callback(); + + } else { + + // 并且图形验证码正确 + if (validateResult[1].status) { + msgCaptchaAjaxFn(page, callback); + } else { + validateResult[2].message = '短信验证码错误'; + validateResult[2].status = false; + callback(); } + } + + //密码校验 + } else if ($element.hasClass('pwd')) { + if (val === '') { + validateResult[3].message = '请输入密码'; + validateResult[3].status = false; + + } else if (val.length < 6 || val.length > 20) { + validateResult[3].message = '密码只支持6-20位字符'; + validateResult[3].status = false; + + } else if (!pwdReg.test($element.val())) { + validateResult[3].message = '密码须字母和数字组合'; + validateResult[3].status = false; + } else { - new Alert(d.message).show(); + validateResult[3].message = ''; + validateResult[3].status = true; } - }); -}); + callback(); + //二次密码校验 + } else if ($element.hasClass('repwd')) { + if (val === '') { + validateResult[4].message = '请输入密码确认'; + validateResult[4].status = false; -//删除商品 -$payWapper.on('click', '.cart-del-btn', function() { - dataJSON = {}; - selectArray = []; - promotionId = $(this).parents('tr').data('promotionid') ? $(this).parents('tr').data('promotionid') : 0; - selectArray.push({ - product_sku: $(this).parents('tr').data('id'), - buy_number: $(this).parents('tr').data('productnum'), - promotion_id: promotionId - }); + } else if ($pwd.val() !== val) { + validateResult[4].message = '与密码不一致,请重新输入'; + validateResult[4].status = false; - if (promotionId) { - hasPromotion = true; - } else { - hasPromotion = false; - } + } else { + validateResult[4].message = ''; + validateResult[4].status = true; - dataJSON = { - skuList: JSON.stringify(selectArray), - hasPromotion: hasPromotion - }; - content = '<div><span></span>删除商品</div>' + - '<p>确定从购物车中删除此商品?</p>'; - if (!$(this).data('gift')) { - countJSON = { - productPrice: $(this).parents('tr').find('.productPrice').text(), - productTitle: $(this).parents('tr').find('.pay-pro-info a').text(), - link: $(this).parents('tr').find('.pay-pro-info a').attr('href'), - productNum: $(this).parents('tr').data('productnum'), - productSku: $(this).parents('tr').data('id'), - promotionId: $(this).parents('tr').data('promotionid') - }; + } + + callback(); } - delUrl = '/cart/index/remove'; - new Confirm({ - content: content, - cb: function() { - cartDel(dataJSON, delUrl, countJSON); - } - }).show(); -}); +} -//移入收藏夹 -$payWapper.on('click', '.cart-remove-btn', function() { - dataJSON = {}; - selectArray = []; - promotionId = $(this).parents('tr').data('promotionid') ? $(this).parents('tr').data('promotionid') : 0; - selectArray.push({ - product_sku: $(this).parents('tr').data('id'), - buy_number: $(this).parents('tr').data('productnum'), - promotion_id: promotionId +function posErrTip() { + var tipPos = $curErrContainer.offset(); + + return $errTip.css({ + top: tipPos.top - 40, + left: tipPos.left }); +} - if (promotionId) { - hasPromotion = true; - } else { - hasPromotion = false; - } +//显示提示信息 +function showErrTip() { - dataJSON = { - skuList: JSON.stringify(selectArray), - hasPromotion: hasPromotion - }; + var show = false, + i, + validateResultLen = validateResult.length; - cartDel(dataJSON, '/cart/index/fav'); -}); + for (i = 0; i < validateResultLen; i++) { + if (!show) { -//批量删除商品 -$cartnewSum.on('click', '.delAll', function() { - dataJSON = {}; - countJSON = {}; - selectArray = []; - PromotionArray = []; - $('.pay-wapper:first tr').each(function() { - if ($(this).find('input[type="checkbox"]').attr('checked')) { - promotionId = $(this).data('promotionid') ? $(this).data('promotionid') : 0; - if (promotionId) { - hasPromotion = true; - } - if ($(this).data('id')) { - if ($(this).find('input[type="checkbox"]').attr('checked')) { - selectArray.push({ - product_sku: $(this).data('id'), - buy_number: $(this).data('productnum'), - promotion_id: promotionId - }); - } - countJSON = { - productPrice: $(this).find('.productPrice').text(), - productTitle: $(this).find('.pay-pro-info a').text(), - link: $(this).find('.pay-pro-info a').attr('href'), - productNum: $(this).data('productnum'), - productSku: $(this).data('id'), - promotionId: $(this).data('promotionid') - }; - PromotionArray.push(countJSON); - } - } - }); - delUrl = '/cart/index/remove'; - content = '<div><span></span>删除商品</div>' + - '<p>确定从购物车中删除所有选中商品?</p>'; - dataJSON = { - skuList: JSON.stringify(selectArray), - hasPromotion: hasPromotion - }; - if (!$.isEmptyObject(selectArray)) { - new Confirm({ - content: content, - cb: function() { - cartDel(dataJSON, delUrl, PromotionArray); - } - }).show(); - } else { - new Alert('请至少选择一件商品').show(); - } -}); + //不可以通过status判断 + if (!!validateResult[i].message && validateResult[i].message !== 'err') { -//批量移入收藏夹商品 -$cartnewSum.on('click', '.removeAll', function() { - dataJSON = {}; - countJSON = {}; - selectArray = []; - $('.pay-wapper:first tr').each(function() { - if ($(this).find('input[type="checkbox"]').attr('checked')) { - promotionId = $(this).data('promotionid') ? $(this).data('promotionid') : 0; - if (promotionId) { - hasPromotion = true; - } + //显示错误提示 + $errTip.find('span').text(validateResult[i].message); + $curErrContainer = $('#' + validateResult[i].id); + posErrTip().removeClass('hide'); - if ($(this).data('id')) { - if ($(this).find('input[type="checkbox"]').attr('checked')) { - selectArray.push({ - product_sku: $(this).data('id'), - buy_number: $(this).data('productnum'), - promotion_id: promotionId - }); - } + show = true; //停止判断 + } else { + $errTip.addClass('hide'); } } - }); - dataJSON = { - skuList: JSON.stringify(selectArray), - hasPromotion: hasPromotion - }; - if (!$.isEmptyObject(selectArray)) { - cartDel(dataJSON, '/cart/index/fav'); - } else { - new Alert('请至少选择一件商品').show(); } -}); - -//购物车商品增减 -function countAJAX(data) { - countBusy = true; - $.ajax({ - type: 'POST', - dataType: 'json', - url: '/cart/index/modify', - data: data - }).then(function(d) { - if (d.code === 200) { - window.history.go(0); - } - countBusy = false; - }); } -$payWapper.on('click', '.minus, .plus', function() { - countJSON = {}; - count = $(this).hasClass('minus') ? 'decreaseNum' : 'increaseNum'; - countJSON['' + count] = 1; - if (countBusy || ($(this).siblings('input').val() === '1' && $(this).hasClass('minus'))) { - return false; - } +//显示红色边框 +function showBorder() { - countAJAX($.extend(countJSON, - { - sku: $(this).parents('tr').data('id') - } - )); -}); + var $errInput, + i, + validateResultLen = validateResult.length; -$('.gift').on('click', '.up, .down', function() { - $(this).siblings('i').toggleClass('none'); - $(this).toggleClass('none'); -}); + for (i = 0; i < validateResultLen; i++) { + if (!!validateResult[i].message) { -//加入购物车 + //显示红色边框 + $errInput = $('#' + validateResult[i].id); + $errInput.addClass('error'); -function addcart(data, cookieList) { - $.ajax({ - type: 'POST', - url: '/cart/index/add', - data: data - }).then(function(d) { - if (d.code === 200) { - window.history.go(0); - if (cookieList) { - window.setCookie('cart-del-list', JSON.stringify(cookieList), { - domain: '.yohobuy.com', - path: '/' - }); - } - } else if (d.code === 500) { - new Alert(d.message).show(); + } else { + + //去掉红色边框 + $errInput = $('#' + validateResult[i].id); + $errInput.removeClass('error'); } - }); + } } -$goodsDetail.on('click', '.addcart', function() { - if ($('.showSizeBox:not(.none) .atcive').length !== 0) { - shopNumAll = $('.showSizeBox:not(.none) .atcive').data('num'); - productSku = $('.showSizeBox:not(.none) .atcive').data('sku'); - dataJSON = { - productSku: productSku, - buyNumber: $('#mnum').val(), - promotionId: promotionId - }; +// 密码强度验证 +function pwdFn($obj) { + var pwd = $obj.val(), + pwdStrength = computeComplex(pwd), + level = 0; + + if (pwdStrength === 0) { + level = 0; + } else if (pwdStrength <= 10) { + level = 1; + } else if (pwdStrength <= 20) { + level = 2; } else { - new Alert('请选择尺码').show(); - return false; + level = 3; + } + + switch (level) { + case 0: + $pwdParent.removeClass('red yellow green'); + $pwdIntensity.removeClass('color'); + break; + case 1: + $pwdParent.addClass('red').removeClass('yellow green'); + $pwdIntensity.filter('.low').addClass('color'); + $pwdIntensity.filter('.mid,.high').removeClass('color'); + break; + case 2: + $pwdParent.addClass('yellow').removeClass('red green'); + $pwdIntensity.filter('.low,.mid').addClass('color'); + $pwdIntensity.filter('.high').removeClass('color'); + break; + case 3: + $pwdParent.addClass('green').removeClass('yellow red'); + $pwdIntensity.addClass('color'); + break; } - if ($('#mnum').val() > shopNumAll) { - new Alert('库存不足,目前还有' + shopNumAll + '个库存').show(); + //提示框 + if (pwd === '') { + $pwdTip1.removeClass('red yes no').addClass('default'); + } else if (pwd.length < 6 || pwd.length > 20) { + $pwdTip1.removeClass('default yes').addClass('no red'); } else { - if (Number($('#addToCart').val()) === 1) { - addcart(dataJSON); - } else { - new Alert('该商品无法加入购物车').show(); - } + $pwdTip1.removeClass('default no red').addClass('yes'); } -}); - -$goodsDetail.on('click', '.cut, .add', function() { - count = $(this).hasClass('minus') ? 'decreaseNum' : 'increaseNum'; - if (promotionId) { - if ($(this).hasClass('cut')) { - new Alert('-_-,已经是最后一件,不能在减了!').show(); - } else { - new Alert('最多只能购买1,您好像购买的太多了!').show(); - } - } else { - if ($(this).hasClass('add')) { - shopNum++; - } else { - shopNum--; - } - if (shopNum < 1) { - new Alert('-_-,已经是最后一件,不能在减了!').show(); - shopNum = 1; - return false; - } +} - $('#mnum').val(shopNum); +//重新定位错误提示 +$(window).resize(function() { + if ($errTip.hasClass('hide')) { + return; } + posErrTip(); }); -$goodsDetail.on('click', '.color', function() { - pacList = 0; - $('.color').find('p').removeClass('atcive'); - $(this).find('p').addClass('atcive'); - $('.showSizeBox').addClass('none').eq($(this).index()).removeClass('none'); - if ($('.showSizeBox:not(.none) span').length < 2) { - $('.showSizeBox:not(.none) span:first').addClass('atcive'); - } - $('.detail-bigpic').addClass('none').eq($(this).index()).removeClass('none'); - $('.detail-bigpic').eq($(this).index()).find('.bigpic').hide(); - $('.detail-bigpic').eq($(this).index()).find('.bigpic:first').show(); - $('.detail-bigpic').eq($(this).index()).find('.con li').removeClass('active'); - $('.detail-bigpic').eq($(this).index()).find('.con li:first').addClass('active'); - $('.showSizeBox').eq($(this).index()).find('span').each(function() { - if ($(this).hasClass('null-atcivec')) { - $('.addcart').addClass('none'); - $('.btn_sellout').removeClass('none'); - } else { - $('.addcart').removeClass('none'); - $('.btn_sellout').addClass('none'); - return false; - } - }); -}); +// 失去焦点时开始校验 +// Tips: 不可以在获得焦点的时候验证,获得焦点和失去焦点的间隔太小,如果中间存在ajax校验的话会出现问题 +// ( ▼-▼ )注册页和信息完善页面接口不同 +exports.init = function(page) { -$goodsDetail.on('click', '.showSizeBox span', function() { - shopNumAll = $(this).data('num'); - if ($(this).data('num') > 0) { - $('.showSizeBox:not(.none) span').removeClass('atcivec atcive').eq($(this).index()).addClass('atcive'); - $('.addcart').removeClass('none'); - $('.btn_sellout').addClass('none'); - } else { - $('.showSizeBox:not(.none) span').removeClass('atcivec atcive').eq($(this).index()).addClass('atcivec'); - $('.addcart').addClass('none'); - $('.btn_sellout').removeClass('none'); - } -}); + $('#agree-terms').click(function() { -//撤销删除 -$('.goBack').on('click', function() { - dataJSON = {}; - delNum = $('.dev-revocation .goBack').index(this); - selectArray = []; - $('.dev-revocation tr').each(function(index) { - if (delNum !== index) { - countJSON = { - productPrice: $(this).find('.productPrice').text(), - productTitle: $(this).find('.title').text(), - link: $(this).find('.title').attr('href'), - productNum: $(this).data('productnum'), - productSku: $(this).data('productsku'), - promotionId: $(this).data('promotionid') - }; - selectArray.push(countJSON); - } - }); - dataJSON = { - productSku: $(this).parents('tr').data('productsku'), - promotionId: $(this).parents('tr').data('promotionid'), - buyNumber: $(this).parents('tr').data('productnum') - }; - addcart(dataJSON, selectArray); -}); + var $this = $(this), + i, + passI = 0; -$goodsDetail.on('click', '.piclist li', function() { - pacList = $(this).index(); - $('.detail-bigpic:not(.none) .piclist li').removeClass('active'); - $(this).addClass('active'); - $('.detail-bigpic:not(.none) .bigpic').hide().eq($(this).index()).show(); -}); + if (!!$this.attr('notchecked')) { -function isSollect() { - $('.gift-wrapper .fold').show(); - if ($('.pre-sell-box input:checked').length === $('.pre-sell-box input[type="checkbox"]').length) { - $('.per-list input[type="checkbox"]').attr('checked', true); - } - if ($('.common-sell-box input:checked').length === $('.common-sell-box input[type="checkbox"]').length) { - $('.common-list input[type="checkbox"]').attr('checked', true); - } - if ($('.common-list input[type="checkbox"]').attr('checked')) { - commonList = true; - } - if ($('.per-list input[type="checkbox"]').attr('checked')) { - perList = true; - } - if ($('.per-list').length !== 0 && $('.common-list').length !== 0) { - if (commonList && perList) { - $('.batch_div input[type="checkbox"]').attr('checked', true); - } - } else { - if (commonList || perList) { - $('.batch_div input[type="checkbox"]').attr('checked', true); - } - } + $this.removeAttr('notchecked'); - $('.cart-page').each(function() { - if ($(this).data('pageall') === 1) { - $('.cart-btn-pre', this).hide(); - $('.cart-btn-next', this).hide(); + //勾选 + for (i = 0; i < validateResult.length; i++) { + if (validateResult[i].status) { + passI++; + } + } + if (passI === 4) { + $registerBtn.removeClass('disable').removeAttr('disabled'); + } } else { - $('.cart-btn-pre', this).hide(); + + //取消勾选 + $registerBtn.addClass('disable').attr('disabled', 'disabled'); + $this.attr('notchecked', 'notchecked'); } }); - if ($('.pre-sell-box input:checked').length > 0 && $('.common-sell-box input:checked').length > 0) { - $('.go_cash_tips').show(); - $('.btn_account_disabled').show(); - $('.btn_account').hide(); - } else { - $('.go_cash_tips').hide(); - $('.btn_account').show(); - $('.btn_account_disabled').hide(); - } - - $('.pay-wapper tr').each(function() { - if ($(this).data('pid')) { - selectArray.push($(this).data('pid') + ''); - } + // 按回车键提交 + $registerPage.on('keydown', function(e) { + var key = e.which; - }); - $.ajax({ - type: 'POST', - url: '/cart/index/checkFav', - data: { - pidList: JSON.stringify(selectArray) + if (key === 13) { + $registerBtn.click(); } - }).then(function(d) { - yetCollect = '<span class="cart-yetremove-btn">已收藏</span>'; - collect = '<a href="javascript:void(0);" class="cart-remove-btn"><span>移入收藏</span></a>'; - $.each(d.data, function(key, val, index) { - $('.pay-wapper tr').each(function() { - if (Number($(this).data('pid')) === Number(key)) { - if (val) { - $(this).find('.cart-operation').append(yetCollect); - } else { - $(this).find('.cart-operation').append(collect); - } - } - }); - }); }); -} -isSollect(); + $registerPage.find('.va').keyup(function() { -$goodsDetail.on('click', '.pre, .next', function() { - if ($(this).hasClass('next')) { - if (pacList >= $(this).siblings('.con').find('li').length - 1) { - return false; - } - pacList++; - } else { - if (pacList < 1) { - return false; - } - pacList--; - } - $(this).siblings('.con').find('li').removeClass('active').eq(pacList).addClass('active'); - $('.detail-bigpic:not(.none) .bigpic').hide().eq(pacList).show(); -}); + var j, + statusLen = 0, + vLen = validateResult.length, + $that = $(this); -//结算 -$('.btn_account').on('click', function() { - understock = ''; - if ($('.pay-wapper input:checked').parents('tr').find('.tipNoStore').length > 0) { - shopName = $('.pay-wapper input:checked').parents('tr').find('.tipNoStore'); - $.each(shopName.parents('tr').find('.pay-pro-info a'), function() { - understock += $(this).html(); - }); - new Alert(understock + '库存不足').show(); - } else { - if ($('.zp').length > 0 && !$(this).attr('title')) { - $(this).attr('title', '1'); - new Alert('您有赠品没有选择,请选择完再结算!').show(); - } else { - if ($('input:checked').length > 0) { - if ($('.pre-sell-box input:checked').length > 0) { - window.location.href = '/cart/index/orderEnsure?type=2'; - } else { - window.location.href = '/cart/index/orderEnsure?type=1'; + validateRule(page, $(this), function() { + showErrTip(); // 显示错误提示 + showBorder(); // 显示红色边框 + + // 如果validateResult中有4个status为true表示验证通过 + for (j = 0; j < vLen; j++) { + + if (validateResult[j].status) { + + statusLen++; } - } else { - new Alert('请至少选择一件商品').show(); + } - } - } -}); -$payWapper.on('selectstart', function() { - return false; -}); -$goodsDetail.on('selectstart', function() { - return false; -}); + if (statusLen === 4 && !$('#agree-terms').attr('notchecked')) { + $registerBtn.removeClass('disable').removeAttr('disabled'); + } else { + $registerBtn.addClass('disable').attr('disabled', 'disabled'); + } -scrollToFirst(); -}); -define("js/guang/entry", ["jquery","lazyload","dot","jquery-pjax"], function(require, exports, module){ -/** - * 逛打包入口 - * @author: xuqi<qi.xu@yoho.cn> - * @date: 2016/3/29 - */ + // 图形验证通过时,发送短信按钮可点击 + if (validateResult[1].status && timeResidue <= 0) { + $sendCaptcha.removeClass('disable').removeAttr('disabled'); + } else { + $sendCaptcha.addClass('disable').attr('disabled', 'disabled'); + } -require("js/guang/list"); + //图形验证通过时,发送短信按钮可点击 end -require("js/guang/detail"); + }); -require("js/guang/index"); - -}); -define("js/guang/list", ["jquery","lazyload","dot"], function(require, exports, module){ -/** - * 逛编辑页、列表页 - * @author: xuqi<qi.xu@yoho.cn> - * @date: 2015/12/15 - */ + // 如果是密码则校验强度 + if (($that).hasClass('pwd')) { + pwdFn($that); + } -require("js/guang/msg"); -require("js/guang/img-blink"); -require("js/guang/right-side"); -}); -define("js/guang/msg", ["jquery","lazyload","dot"], function(require, exports, module){ -var $ = require("jquery"), - lazyLoad = require("lazyload"); + }).blur(function() { -var prising; + /*validateRule($(this), function() { + showErrTip(); + showBorder(); // 显示红色边框 + });*/ + }); -require("dot"); + $regionSelect.change(function() { -//资讯文字截取和lazyload -function dotLazy() { + $region.text($('#region').val()); - //文字截取 - $('.msg-title, .msg-content .content').dotdotdot({ - wrap: 'letter' + validateRule(page, $pn, showErrTip); //验证 }); - //Lazyload - lazyLoad($('#msg-list img.lazy')); -} + // 点击发送验证码 + $sendCaptcha.click(function() { + var t, + url; -//资讯点赞 -$('.guang-page').on('click', '.like-icon', function() { - var $this = $(this), - msgId = $this.closest('.msg-content').data('id'), - url; + if ($(this).hasClass('disable')) { + return; + } - //同一资讯多次点击归一处理 - if (prising === msgId) { - return; - } + timeResidue = 60; - prising = msgId; + $('#msg-tip').removeClass('hide'); - $this.toggleClass('liked'); + $sendCaptcha.addClass('disable').attr('disabled', 'disabled'); + $sendCaptcha.val('60秒可重新发送'); - //点赞或取消点赞 - if ($this.hasClass('liked')) { - url = '/guang/info/praise'; - } else { - url = '/guang/info/cancelPraise'; - } - $.ajax({ - type: 'GET', - url: url, - data: { - id: msgId, - time: new Date().getTime() - } - }).then(function(data) { - if (data.code === 200) { - if (data.data * 1 === 0) { - $this.next('b').addClass('num-0').children('.num').html('0'); //隐藏数字显示 - } else { - $this.next('b').removeClass('num-0').children('.num').html(data.data); + t = setInterval(function() { + if (timeResidue <= 0) { + $sendCaptcha.removeClass('disable').removeAttr('disabled').val('获取短信验证码'); + clearInterval(t); + return; } + $sendCaptcha.val(timeResidue-- + '秒可重新发送'); + }, 1000); + + if (page === 'reg') { + url = '/passport/register/sendBindMsg'; + } else if (page === 'third') { + url = '/passport/autouserinfo/sendBindMsg'; } - prising = false; + + //todo ajax 发送验证码 + $.ajax({ + type: 'POST', + url: url, + data: { + area: $region.text().split('+')[1], + mobile: $pn.val(), + verifyCode: $ca.val() + } + }); }); -}).on('mouseenter mouseleave', '.like-icon', function() { - $(this).closest('.like').toggleClass('hover'); -}); -dotLazy(); + // 防止粘贴密码 + if ($('.success-box').length <= 0) { + $pwd[0].onpaste = function() { + return false; + }; + } -exports.dotLazy = dotLazy; - -}); -define("js/guang/img-blink", ["jquery"], function(require, exports, module){ -/** - * 图片移入闪动效果JS - * @auhor: xuqi<qi.xu@yoho.cn> - * @date: 2015/7/29 - */ + //ajax表单提交 + $registerBtn.click(function() { + var url; -var $ = require("jquery"); + if (page === 'reg') { + url = '/passport/register/mobileregister'; + } else if (page === 'third') { + url = '/passport/autouserinfo/bindMobile'; + } -$('.guang-page').on('mouseover', 'a img, a .bg-img', function(e) { - var $el = $(e.target); + if ($(this).hasClass('disable')) { + return; + } else { - //slider中的图片不做此效果 - if ($el.closest('.slider').length > 0) { - return; - } + //ajax提交 + $.ajax({ + type: 'POST', + url: url, + data: { + area: $region.text().split('+')[1], + mobile: $pn.val(), + verifyCode: $ca.val(), + code: $mc.val(), + password: $pwd.val() + } + }).then(function(data) { - $el.addClass('blink'); + var time = 0, + t, + refer; - setTimeout(function() { - $el.removeClass('blink'); - }, 100); -}); - -}); -define("js/guang/right-side", ["jquery","lazyload","dot"], function(require, exports, module){ -/** - * 右侧栏文字截取js - */ -var $ = require("jquery"), - lazyLoad = require("lazyload"); + if (data.code === 200) { -require("dot"); + refer = data.data.href; -$('.ex-reco-context').dotdotdot({ - wrap: 'letter' -}); + t = setTimeout(function() { + time++; + }, 1000); -lazyLoad($('.ads img.lazy')); + $.ajax({ + type: 'GET', + url: data.data.session + }).then(function(data) { + + if (data.code === 200 && t < 3) { + clearInterval(t); + location.href = refer; + } + }); + + if (t >= 3) { + clearInterval(t); + location.href = refer; + } + } else { + + //todo + console.log('网络超时~'); + } + + }); + } + }); + + $('.change-captcha').click(function() { + refreshPic(); + }); + + //注册成功页面5秒后跳转 + if ($('.success-box').length > 0) { + clearT = setInterval(function() { + + if (countDown === 0) { + + window.location.href = $successBtn.attr('data-url'); + + clearInterval(clearT); + } + $countDown.text(countDown--); + }, 1000); + } +}; +}); +define("js/passport/mail-phone-regx", [], function(require, exports, module){ +/** + * 国家区号Map手机号码以及邮箱验证正则 + * @author: xuqi<qi.xu@yoho.cn> + * @date: 2015/12/11 + */ + +var countryPhoneRegx = { + '+86': /^1[35847]{1}[0-9]{9}$/, + '+852': /^[965]{1}[0-9]{7}$/, + '+853': /^[0-9]{8}$/, + '+886': /^[0-9]{10}$/, + '+65': /^[98]{1}[0-9]{7}$/, + '+60': /^1[1234679]{1}[0-9]{8}$/, + '+1': /^[0-9]{10}$/, + '+82': /^01[0-9]{9}$/, + '+44': /^7[789]{1}[0-9]{8}$/, + '+81': /^0[9|8|7][0-9]{9}$/, + '+61': /^[0-9]{11}$/ +}; + +var emailRegx = /^[.\-_a-zA-Z0-9]+@[\-_a-zA-Z0-9]+\.[a-zA-Z0-9]/; + +var pwdValidateRegx = /^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{6,20}$/; + +exports.phoneRegx = countryPhoneRegx; + +exports.emailRegx = emailRegx; + +exports.pwdValidateRegx = pwdValidateRegx; }); -define("js/guang/detail", ["jquery","lazyload","dot","jquery-pjax"], function(require, exports, module){ -/** - * 逛详情页 - * @author: liuyue<yue.liu@yoho.cn> - * @date: 2015/12/16 +define("js/passport/pwd-strength", [], function(require, exports, module){ +/* + * 计算密码复杂度 */ -var $ = require("jquery"), - lazyLoad = require("lazyload"), - $commentArea = $('#comment-area'), - articleId = $('.detail-body').data('id'); +function gettype(str, i) { + if (str.charCodeAt(i) >= 48 && str.charCodeAt(i) <= 57) { + return 1; + } else if (str.charCodeAt(i) >= 97 && str.charCodeAt(i) <= 122) { + return 2; + } else if (str.charCodeAt(i) >= 65 && str.charCodeAt(i) <= 90) { + return 3; + } -var $commentList = $commentArea.find('.comments-wrap'), - $commentNum = $('#article-comment > .comment-num'), - commenting = false, //评论请求尚未返回变量 - locating = false, //评论页面正在跳转 - $commentBtn = $('#comment-btn'), - MAX_COMMENTS_WORDS = 100, - $wordCountTip = $('#word-count-tip'); + return 4; +} -require("js/guang/right-side"); -require("js/guang/img-blink"); +function isregular(cur, pre, type) { + var curCode = cur.charCodeAt(0); + var preCode = pre.charCodeAt(0); -require("js/common/share"); + if (curCode - preCode === 0) { + return true; + } -//Pjax -require("jquery-pjax"); + if (type !== 4 && (curCode - preCode === 1 || curCode - preCode === -1)) { + return true; + } -lazyLoad({ - failure_limit: 50 -}); + return false; +} -//点击评论滑到评论区 -// $('#article-comment').click(function() { -// $('html, body').animate({ -// scrollTop: $commentArea.offset().top - 20 -// }, 800); -// }); +function getcomplex(curType, preType) { + if (preType === 0 || curType === preType) { + return 0; + } else if (curType === 4 || preType === 4) { + return 2; + } else { + return 1; + } +} -//文章点赞与取消点赞 -$('#prise-btn').click(function() { - var prising = false, - url, - $this = $(this); +function computeComplex(password) { + var complex = 0, + length = password.length, + pre = '', + preType = 0, + i = 0, + cur, + curType; - if (prising) { - return; - } - $this.toggleClass('liked'); - if ($this.hasClass('liked')) { - //点赞 - url = '/guang/info/praise'; - } else { + for (i = 0; i < length; i++) { + cur = password.charAt(i); + curType = gettype(password, i); - //取消点赞 - url = '/guang/info/cancelPraise'; - } - prising = true; - $.ajax({ - type: 'GET', - url: url, - data: { - id: articleId - } - }).then(function(data) { - if (data.code === 200) { - $this.find('.like-num').html(data.data); + if (preType !== curType || !isregular(cur, pre, curType)) { + complex += curType + getcomplex(curType, preType); } - prising = false; - }); -}).bind('mouseenter mouseleave', function() { - $(this).toggleClass('hover'); -}); - -//文章收藏与取消收藏 -$('#collect-btn').click(function() { - var collecting = false, - url, - col, - $this = $(this); - if (collecting) { - return; + pre = cur; + preType = curType; } - if ($this.hasClass('collected')) { - //取消收藏 - url = '/guang/info/cancelcollect'; - col = 0; - } else { + return complex; +} - //收藏 - url = '/guang/info/collect'; - col = 1; - } - collecting = true; - $.ajax({ - type: 'GET', - url: url, - data: { - id: articleId - } - }).then(function(data) { - var hrefUrl; +module.exports = computeComplex; +}); +define("js/passport/back", ["jquery","jquery.placeholder"], function(require, exports, module){ +/** + * 找回密码 + * @author: xuqi<qi.xu@yoho.cn> + * @date: 2015/12/14 + */ - switch (data.code) { - case 401: +var $ = require("jquery"), + regx = require("js/passport/mail-phone-regx"), + emailReg = regx.emailRegx, + phoneRegx = regx.phoneRegx; - //防止从已有col的页面再次进行跳转后出错的情况 - if (/\?col=(1|0)/.test(location.href)) { - hrefUrl = location.href.replace(/\?col=(1|0)/, '?col=' + col); - } else { - hrefUrl = location.href + '?col=' + col; - } - location.href = 'http://www.yohobuy.com/signin.html?refer=' + encodeURI(hrefUrl); - break; - case 400: +var emailAc = require("js/passport/ac-email"); //邮箱自动完成 - // alert(data.message); - break; - case 200: - if (/\?col=(1|0)/.test(location.href)) { +var $cr = $('#country-code-hide'), + $phoneNum = $('#phone-num'), + $ca = $('#captcha'), + $ccList = $('#country-code-list'), + $cc = $('#country-code'), + $btn = $('#find-btn'), + $accErr = $('#account-err'), + $caErr = $('#captcha-err'), + caCount = 4, //验证码位数 + hasPh = false, + hasCa = false; - //如果页面url中含有col,为了防止页面刷新时收藏或者取消收藏会根据col来的问题,进行页面跳转拿掉参数 - location.href = location.href.replace(/\?col=(1|0)/, ''); - } else { - $this.toggleClass('collected'); - } - break; - } - collecting = false; - }); -}).bind('mouseenter mouseleave', function() { - $(this).toggleClass('hover'); -}); -function showComment() { - var commonlist = $('.comments-list').find('li').length; +require("jquery.placeholder"); - if (commonlist === 0) { - $('.commnets-resultwrapper').hide(); - $('.comments-empty').show(); +function imgcode() { + var time = new Date(), + $captchaImg = $('#captcha-img'), + captchaImgSrc = $captchaImg.attr('src').split('?')[0]; + + $('#captcha-img').attr('src', captchaImgSrc + '?t=' + time.getTime()); +} + +function enableBtn() { + if (hasPh && hasCa) { + $btn.removeClass('disable').prop('disabled', false); } else { - $('.commnets-resultwrapper').show(); - $('.comments-empty').hide(); + $btn.addClass('disable').prop('disabled', true); } } -showComment(); - -//评论 -function comment(id) { - var commentInfo = $('#comment-info').val(); - if (commentInfo === '') { - alert('评论不能为空'); - return false; +function authcode() { + if (!hasPh || !hasCa) { + enableBtn(); + return; } - commenting = true; + $.ajax({ - url: '/guang/info/comment', + type: 'POST', + url: '/passport/back/authcode', data: { - id: id, - comment: commentInfo - }, - type: 'post', - success: function(data) { - switch (data.code) { - case 401: - locating = true; - location.href = 'http://www.yohobuy.com/signin.html?refer=' + - window.escape(location.href + '#comment-info'); - break; - case 400: - alert(data.message); - break; - case 200: - if (data.data) { - $commentList.html(data.data.content); - $commentNum.html(data.data.count); - showComment(); - - //clear comment-text - $('#comment-info').val('').keyup(); - } - break; - } - commenting = false; + verifyCode: $.trim($ca.val()), + phoneNum: $phoneNum.val(), + area: $cr.val() + } + + }).then(function(data) { + if (data.code === 200) { + hasCa = true; + } else if (data.code === 402) { + hasPh = false; + hasCa = true; + $accErr.removeClass('hide').find('em').text('该账号不存在'); + $phoneNum.addClass('error'); + } else if (data.code === 400) { + hasCa = false; + imgcode(); } + enableBtn(); }); } -$commentBtn.click(function(e) { +function vaPn(v) { + var pass = true, + errTxt = ''; - //页面正在跳转或者正在AJAX请求时评论无效 - if (locating || commenting) { - return false; + v = $.trim(v); + if (v !== '') { + if (/^[0-9]+$/.test(v)) { + if (phoneRegx[$cr.val()].test(v)) { + pass = true; + } else { + errTxt = '手机号码格式不正确, 请重新输入'; + pass = false; + } + } else { + if (emailReg.test(v)) { + pass = true; + } else { + errTxt = '邮箱格式不正确, 请重新输入'; + pass = false; + } + } + } else { + errTxt = '账户名不能为空'; + pass = false; } + hasPh = pass; + authcode(); - //字数不符合要求 - if ($('#comment-info').val().length - MAX_COMMENTS_WORDS > 0) { + return { + pass: pass, + errTxt: errTxt + }; +} + +function vaCa() { + var v = $.trim($ca.val()); + + if (v === '' || v.length < caCount) { + hasCa = false; + enableBtn(); return; } - e.preventDefault(); - comment(articleId); -}); + hasCa = true; -//comment pager pjax -$(document).pjax('.comment-pager a', '#pjax-container', { - timeout: 5000 -}); - -//分页后移动到评论框的位置 -$(document).on('pjax:end', function() { - showComment(); - $('html,body').scrollTop($('#comment-info').offset().top); -}); + authcode(); +} -$('#comment-info').keyup(function() { - var len = $(this).val().length, - showTxt; +emailAc($phoneNum, function() { + var pnVa = vaPn($phoneNum.val()); - if (len === 0) { - $wordCountTip.html(''); - $commentBtn.addClass('disable'); - } else { - if (len - MAX_COMMENTS_WORDS <= 0) { - showTxt = '还可以输入' + (MAX_COMMENTS_WORDS - len) + '字'; - $commentBtn.removeClass('disable'); + if (pnVa.pass) { + $accErr.addClass('hide'); + $phoneNum.removeClass('error'); } else { - showTxt = '已超过<span class="exceed-count">' + (len - MAX_COMMENTS_WORDS) + '</span>字'; - $commentBtn.addClass('disable'); + $accErr.removeClass('hide').find('em').text(pnVa.errTxt); + $phoneNum.addClass('error'); } } - $wordCountTip.html(showTxt); -}); - -//init -$('#comment-info').trigger('keyup'); - -}); -define("js/guang/index", ["jquery","lazyload","dot","jquery-pjax"], function(require, exports, module){ -/** - * 逛首页 - * @author: xuqi<qi.xu@yoho.cn> - * @date: 2015/12/15 - */ - -var $ = require("jquery"); - -var msg = require("js/guang/msg"); - -require("jquery-pjax"); -require("js/common/slider"); - -require("js/guang/img-blink"); +); -require("js/guang/right-side"); +$ca.attr('maxlength', caCount); -$('#slider').slider(); //初始化slider +//IE8 placeholder +$('input').placeholder(); -$(document).pjax('.pjax-link, .msg-pager a', '#pjax-container', { - timeout: 2000 +$('#change-captcha, #captcha-img').on('click', function() { + imgcode(); }); -$(document).on('pjax:end', function() { - msg.dotLazy(); -}); -}); -define("js/home/entry", ["jquery","handlebars","source-map","dot"], function(require, exports, module){ -/** - * 个人中心页js打包入口文件 - * @author: zhaobiao<bill.zhao@yoho.cn> - * @date: 2016/02/17 - */ - -require("js/home/index"); -require("js/home/orders"); -require("js/home/favorite"); -require("js/home/currency"); - -require("js/home/returns"); -require("js/home/comment"); -require("js/home/complaints"); -require("js/home/message"); - -require("js/home/edit"); -require("js/home/gift"); -require("js/home/validate"); -require("js/home/address"); -require("js/home/common-address"); -}); -define("js/home/index", ["jquery","handlebars","source-map"], function(require, exports, module){ -/** - * 个人中心首页 - * @author: xuqi<qi.xu@yoho.cn> - * @date: 2016/2/17 - */ - -var $ = require("jquery"); - -require("js/home/order-block"); - -//关闭消息提示 -$('#close-message').click(function() { - $('.message-tip').slideUp(200); +$cc.on('click', function(e) { + e.stopPropagation(); + if ($ccList.css('style') === 'block') { + $ccList.slideUp('fast'); + } else { + $ccList.slideDown('fast'); + } }); -/** - * - * @param self 点击的控件 - * @param $ul 列表父 - * @param page 总共页数 - * @param itemWith 子元素宽 - * @param curPage 当前页码 - * @param num 一页商品数量 - */ -function pageChange(self, $ul, page, itemWith, curPage, num) { - var $this = self, - left; - - if ($this.hasClass('next')) { - - //第2页显示前翻按钮 - if (curPage === 2) { - $this.siblings().removeClass('no-visible'); - } +$ccList.delegate('li', 'click', function(e) { + var $cur = $(this), + code = $cur.data('cc'), + pnVa; - //最后一页隐藏后翻按钮 - if (curPage === page) { - $this.addClass('no-visible'); - } - } else { + e.stopPropagation(); + $cr.val(code); + $cc.find('em').html($cur.text()); - //倒数第2页显示后翻按钮 - if (curPage === page - 1) { - $this.siblings().removeClass('no-visible'); + //切换后验证手机号码 + if ($.trim($phoneNum.val()) !== '') { + pnVa = vaPn($phoneNum.val()); + enableBtn(); + if (hasPh) { + $accErr.addClass('hide'); + $phoneNum.removeClass('error'); + } else { + $accErr.removeClass('hide').text(pnVa.errTxt); + $phoneNum.addClass('error'); } + } + $ccList.slideUp('fast'); +}); - //第1页隐藏前翻按钮 - if (curPage === 1) { - $this.addClass('no-visible'); - } +$(document).click(function() { + if ($ccList.css('display') === 'block') { + $ccList.slideUp(); } +}); - left = -num * (curPage - 1) * itemWith; +$phoneNum.keyup(function() { + vaPn($.trim($(this).val())); +}).focus(function() { + $(this).removeClass('error'); - $ul.animate({ - marginLeft: left - }, 400); -} + //focus隐藏错误提示 + $accErr.addClass('hide'); +}); -//新品上架 -(function() { - var $naPager = $('.na-pager'), - $rcPager = $('.rc-pager'), - $naUl = $('.new-arrival ul'), - $rcUl = $('.recommend ul'), - naPage = Math.ceil($naUl.children('li').length / 5), - rcPage = Math.ceil($rcUl.children('li').length / 6), - naItemWith = $naUl.children('li:last-child').outerWidth(), - rcItemWith = $rcUl.children('li:last-child').outerWidth(), - naCurPage = 1, - rcCurPage = 1; +//验证码在鼠标移开后验证, keyup时不再验证 +$ca.blur(function() { + var errTxt = $.trim($ca.val()) === '' ? '验证码不能为空' : '验证码不正确'; - $naUl.width($naUl.width() * naPage); - $rcUl.width($rcUl.width() * rcPage); + if (hasCa) { + $caErr.addClass('hide'); + $ca.removeClass('error'); + } else { + $caErr.removeClass('hide').find('em').text(errTxt); + $ca.addClass('error'); - //最新上架翻页 - $naPager.click(function() { - var $this = $(this); + //验证码错误则刷新验证码 + if ($ca.val() < caCount) { - if (naPage > 1) { - if ($this.hasClass('next')) { - ++naCurPage; - } else { - --naCurPage; - } - pageChange($this, $naUl, naPage, naItemWith, naCurPage, 5); + //防止重复刷新验证码 + imgcode(); } - }); + } +}).focus(function() { + $(this).removeClass('error'); - //为你推荐翻页 - $rcPager.click(function() { - var $this = $(this); + //focus隐藏错误提示 + $caErr.addClass('hide'); +}).keyup(function() { + vaCa(); +}); - if (rcPage > 1) { - if ($this.hasClass('next')) { - ++rcCurPage; - } else { - --rcCurPage; - } +$('#find-btn').click(function(e) { - pageChange($this, $rcUl, rcPage, rcItemWith, rcCurPage, 6); - } - }); -}()); + if (/^[0-9]+$/.test($.trim($phoneNum.val()))) { + $('#find-form').attr('action', '/passport/back/mobile'); + } + if ($(this).hasClass('disable')) { + return; + } + if (!hasCa || !hasPh) { + e.preventDefault(); + return true; + } +}); +}); +define("js/passport/ac-email", ["jquery"], function(require, exports, module){ +/** + * 邮箱自动补全 + * @author:xuqi<qi.xu@yoho.cn> + * @date: 2016/2/22 + */ +var $ = require("jquery"); + +var mailPostfix = { + num: ['qq.com', '163.com', '126.com', 'sina.com', 'gmail.com', 'sohu.com', 'hotmail.com', '139.com', '189.com'], + other: ['gmail.com', 'qq.com', '163.com', '126.com', 'sina.com', 'sohu.com', 'hotmail.com', '139.com', '189.com'] +}; + +var emailAcTime; + +/** + * @param $input 需要自动完成的$对象 + * @param cb 鼠标移开/点击自动完成项后需要执行的操作(验证等) + */ +module.exports = function($input, cb) { + var ulHtml = '<ul id="email-autocomplete" class="email-autocomplete hide"></ul>'; + + var $emailAutoComplete; + + $input.parent().append(ulHtml); + + $emailAutoComplete = $('#email-autocomplete'); + + $input.on('keyup', function() { + var account = $.trim($(this).val()), + html = '', + accountMatch, + matchStr, + postfix, + i; + + //输入@时自动补全邮箱后缀 + //此处>0非错误,用于避免输入的第一个字符为@被识别为邮箱 + if (account.indexOf('@') > 0) { + accountMatch = account.match(/^[0-9]+@(.*)/); + if (accountMatch) { + + //数字邮箱补全 + postfix = mailPostfix.num; + matchStr = accountMatch[1]; + } else { + postfix = mailPostfix.other; + matchStr = account.match(/@(.*)/)[1]; + } + + for (i = 0; i < postfix.length; i++) { + if (postfix[i].indexOf(matchStr) > -1) { + html += '<li>' + account.slice(0, account.indexOf('@')) + '@' + postfix[i] + '</li>'; + } + } + + if (html !== '' && /.com$/.test(account) === false) { + $emailAutoComplete.html(html).removeClass('hide'); + } else { + + //隐藏autocomplete + $emailAutoComplete.html('').addClass('hide'); + } + } + }).on('blur', function() { + emailAcTime = setTimeout(function() { + + //未点击自动完成项 + $emailAutoComplete.addClass('hide'); + + cb && cb(); + }, 200); + }); + + //邮箱自动完成列表项点击 + $emailAutoComplete.on('click', 'li', function() { + clearTimeout(emailAcTime); //清空默认关闭 + + //点击自动完成项后进行验证 + $input.val($(this).text()).focus(); + + $emailAutoComplete.addClass('hide'); + + cb && cb(); + }); +}; +}); +define("js/passport/login", ["jquery","jquery.placeholder"], function(require, exports, module){ +/** + * 登录 + * @author: xuqi<qi.xu@yoho.cn> + * @date: 2015/12/11 + */ +var $ = require("jquery"); + +var $account = $('#account'), + $password = $('#password'), + $captcha = $('#captcha'); + +var $accountTip = $account.siblings('.err-tip'), + $passwordTip = $password.siblings('.err-tip'), + $captchaTip = $captcha.siblings('.err-tip'), + $capsLock = $('#caps-lock'); + +var $countryCodeHide = $('#country-code-hide'), + $countryCodeEm = $('#country-code > em'), + $countryList = $('#country-list'); + +var $emailAutoComplete = $('#email-autocomplete'); + +var mailPhoneRegx = require("js/passport/mail-phone-regx"); +var mailAc = require("js/passport/ac-email"); //邮箱自动完成 + +var $remember = $('.remember-me'); + +var captchaUrl = '/passport/images?t='; // /passport/images?t=1454464125 + +var $captchaWrap = $('.captcha-wrap'), + $captcha = $captchaWrap.find('#captcha'), + $captchaImg = $captchaWrap.find('#captcha-img'), + $captchaTip = $captchaWrap.find('.err-tip'); + +//checkbox status unicode +var checkbox = { + checked: '', + unchecked: '' +}; + +var authing = false; + +var emailAcTime; + +require("jquery.placeholder"); + +//验证账户名 +function validateAccount() { + var pass = false, + account = $.trim($account.val()), + countryCode = $countryCodeHide.val(), + err; + + if (account !== '') { + if (/^[0-9]+$/.test(account)) { + + //如果是纯数字,则作为手机号码处理 + if (countryCode !== '+86' || + mailPhoneRegx.phoneRegx[countryCode].test(account)) { + pass = true; + } else { + pass = false; + err = '手机号码不正确,请重新输入'; + } + } else { + if (mailPhoneRegx.emailRegx.test(account)) { + pass = true; + } else { + pass = false; + err = '邮箱格式不正确,请重新输入'; + } + } + } else { + err = '请输入账户名'; + } + + if (pass) { + $accountTip.addClass('hide'); + $account.removeClass('error'); + } else { + $accountTip.removeClass('hide').children('em').text(err); + $account.addClass('error'); + } + return pass; +} + +//验证密码 +function validatePassword() { + var pass = false, + password = $.trim($password.val()), + err; + + if (password !== '') { + if (password.length < 6) { + err = '请输入长度为6-20字符的密码'; + } else { + pass = true; + } + } else { + err = '请输入密码'; + } + + if (pass) { + $passwordTip.addClass('hide'); + $password.removeClass('error'); + } else { + $passwordTip.removeClass('hide').children('em').text(err); + $password.addClass('error'); + } + return pass; +} + +//验证验证码 +function validateCaptcha() { + var pass = false, + captcha = $.trim($captcha.val()), + err; + + // 验证码不可见的时候不验证 + if ($captchaWrap.is(':hidden')) { + return true; + } + + if (captcha !== '') { + if (captcha.length !== 4) { + err = '请输入长度为4字符的验证码'; + } else { + pass = true; + } + } else { + err = '请输入验证码'; + } + + if (pass) { + $captchaTip.addClass('hide'); + $captcha.removeClass('error'); + } else { + $captchaTip.removeClass('hide').children('em').text(err); + $captcha.addClass('error'); + } + return pass; +} + +//验证 +function validate() { + var pass = true, + account = $.trim($account.val()), + password = $.trim($password.val()); + + if (account !== '') { + pass = validateAccount() && validatePassword() && validateCaptcha(); + } else { + pass = false; + $account.addClass('error'); + + if (password === '') { + + //账户名和密码都为空的情况下点击登陆,只在账户输入框后显示错误提示 + $accountTip.addClass('both-error').removeClass('hide').children('em').text('请输入账户名和密码'); + $passwordTip.addClass('hide'); + $password.addClass('error'); + } else { + $accountTip.removeClass('hide').children('em').text('请输入账户名'); + } + } + + return pass; +} + +//密码错误次数,超过三次显示验证码 +function vaAccountErrTimes() { + $captchaImg.attr('src', captchaUrl + $.now()); + $captcha.val(''); + $captchaWrap.removeClass('hide'); +} + +//登录 +function login() { + var pass = validate(); + + if (pass && authing === false) { + authing = true; + + $.ajax({ + url: '/passport/login/auth', + type: 'POST', + data: { + areaCode: $countryCodeHide.val().replace('+', ''), + account: $.trim($account.val()), + password: $.trim($password.val()), + captcha: $.trim($captcha.val()), + isRemember: $remember.hasClass('checked') ? true : false + }, + success: function(res) { + if (res.code === 200) { + if (res.data) { + + //防止data.data为undefined时下行语句执行出错而导致脚本不能走到complete去处理authing + location.href = res.data.session; + } + } else { + if (res.data.errorType === 'captcha') { + $captchaTip.removeClass('hide').children('em').html(res.message); + $captcha.addClass('error').val(''); + } else { + $passwordTip.removeClass('hide').children('em').html(res.message); + $password.addClass('error').val(''); + } + + //验证错误次数 + if (res.data && res.data.needCaptcha) { + vaAccountErrTimes(); + } + } + }, + complete: function() { + authing = false; + } + }); + } +} + +mailAc($account, function() { + if (validateAccount()) { + $.ajax({ + url: '/passport/login/account', + type: 'GET', + data: { + account: $.trim($account.val()) + } + }).then(function(res) { + if (res.data && res.data.needCaptcha) { + vaAccountErrTimes(); + } + }); + } + } +); + +$('[placeholder]').placeholder(); + +//展开地区列表 +$('#country-code').on('click', function() { + if ($countryList.css('display') === 'none') { + $countryList.slideDown(); + } +}); + +//选中地区列表项 +$countryList.on('click', 'li', function() { + var $this = $(this), + cc = $this.data('cc'); + + $countryCodeEm.html($this.html()); + + $countryCodeHide.val(cc); + + $countryList.slideUp(); +}); + +//点击其他区域,收起区域列表 +$(document).on('click', function(e) { + if ($(e.target).closest('#country-code').length > 0) { + return; + } + + if ($countryList.css('display') === 'block') { + $countryList.slideUp(); + } +}); + +//密码 +$password.on('blur', function() { + validatePassword(); + + if ($capsLock.hasClass('hide')) { + return; + } + + $capsLock.addClass('hide'); +}).on('keypress', function(e) { + var code = e.which; + + //CapsLock检测 + if (code >= 65 && code <= 90) { + $capsLock.removeClass('hide'); + return; + } + $capsLock.addClass('hide'); +}); + +// 验证码 +$captcha.on('blur', function() { + validateCaptcha(); +}); + +//邮箱自动完成列表项点击 +$emailAutoComplete.on('click', 'li', function() { + clearTimeout(emailAcTime); //清空默认关闭 + + $account.val($(this).text()).focus(); + + $emailAutoComplete.addClass('hide'); +}); + +//记住登录状态 +$remember.on('click', function() { + var $this = $(this); + + $this.toggleClass('checked'); + + if ($this.hasClass('checked')) { + $this.children('i').html(checkbox.checked); + } else { + $this.children('i').html(checkbox.unchecked); + } +}); + +//focus到输入框则隐藏错误提示和样式 +$('.va').on('focus', function() { + var $this = $(this); + + $this.removeClass('error'); + + $this.siblings('.err-tip').addClass('hide'); +}); + +// 验证码刷新 +$captchaWrap.on('click', '.change-captcha, .captcha-img', function() { + $captchaImg.attr('src', captchaUrl + $.now()); +}); + +//登录 +$('#login-btn').on('click', login); + +//Enter登录 +$('input.va').on('keypress', function(e) { + if (e.which === 13) { + login(); + } +}); + +// 初始:只带账户名的页面,密码输入获得焦点 +if (($account.val() !== '' || $account.val() === $account.attr('placeholder')) && + $password.val() === '') { + $password.focus(); +} +}); +define("js/passport/reset", ["jquery","jquery.placeholder"], function(require, exports, module){ +/** + * 找回密码 + * @author: xuqi<qi.xu@yoho.cn> + * @date: 2015/12/14 + */ + +var $ = require("jquery"); + +var $pwd = $('#pwd'), + $repwd = $('#re-input'), + $next = $('#reset-pwd-btn'), + $pwdErr = $('#pwd-err'), + $repwdErr = $('#repwd-err'), + $pwdTips = $('#pwd-tips'); + +var hasNoErrPw = false; + +var $pwdIntensity = $('.pwd-intensity'), + $pwdParent = $pwdIntensity.closest('.pwd-intensity-container'), + $pwdTip1 = $('#pwd-tip1'); + +var pwdRegx = require("js/passport/mail-phone-regx").pwdValidateRegx; + +require("jquery.placeholder"); + + +/* + * 计算密码复杂度 + */ + +function gettype(str, i) { + if (str.charCodeAt(i) >= 48 && str.charCodeAt(i) <= 57) { + return 1; + } else if (str.charCodeAt(i) >= 97 && str.charCodeAt(i) <= 122) { + return 2; + } else if (str.charCodeAt(i) >= 65 && str.charCodeAt(i) <= 90) { + return 3; + } + + return 4; +} + +function isregular(cur, pre, type) { + var curCode = cur.charCodeAt(0); + var preCode = pre.charCodeAt(0); + + if (curCode - preCode === 0) { + return true; + } + + if (type !== 4 && (curCode - preCode === 1 || curCode - preCode === -1)) { + return true; + } + + return false; +} + +function getcomplex(curType, preType) { + if (preType === 0 || curType === preType) { + return 0; + } else if (curType === 4 || preType === 4) { + return 2; + } else { + return 1; + } +} + +function computeComplex(password) { + var complex = 0, + length = password.length, + pre = '', + preType = 0, + i = 0, + cur, + curType; + + + for (i = 0; i < length; i++) { + cur = password.charAt(i); + curType = gettype(password, i); + + if (preType !== curType || !isregular(cur, pre, curType)) { + complex += curType + getcomplex(curType, preType); + } + + pre = cur; + preType = curType; + } + + return complex; +} + +function pwdKeyupEvt() { + var pwd = $pwd.val(), + pwdStrength = computeComplex(pwd), + level = 0; + + //TODO:自定义密码强度规则,需要修正 + if (pwdStrength === 0) { + level = 0; + } else if (pwdStrength <= 10) { + level = 1; + } else if (pwdStrength <= 20) { + level = 2; + } else { + level = 3; + } + switch (level) { + case 0: + $pwdParent.removeClass('red yellow green'); + $pwdIntensity.removeClass('color'); + break; + case 1: + $pwdParent.addClass('red').removeClass('yellow green'); + $pwdIntensity.filter('.low').addClass('color'); + $pwdIntensity.filter('.mid,.high').removeClass('color'); + break; + case 2: + $pwdParent.addClass('yellow').removeClass('red green'); + $pwdIntensity.filter('.low,.mid').addClass('color'); + $pwdIntensity.filter('.high').removeClass('color'); + break; + case 3: + $pwdParent.addClass('green').removeClass('yellow red'); + $pwdIntensity.addClass('color'); + break; + } + + //提示框 + if (pwd === '') { + $pwdTip1.removeClass('red yes no').addClass('default'); + } else if (pwd.length < 6 || pwd.length > 20) { + $pwdTip1.removeClass('default yes').addClass('no red'); + } else { + $pwdTip1.removeClass('default no red').addClass('yes'); + } + + if (pwdRegx.test(pwd)) { + hasNoErrPw = true; + } else { + hasNoErrPw = false; + } +} + +//IE8 placeholder +$('input').placeholder(); + +$('.va').keyup(function() { + var pass = true; + + if ($(this).hasClass('pwd')) { + pwdKeyupEvt(); + } else { + if ($(this).val() === '') { + pass = false; + } + } + if (pass && hasNoErrPw && $pwd.val() === $repwd.val()) { + pass = true; + } else { + pass = false; + } + if (pass) { + $next.removeClass('disable').prop('disabled', false); + } else { + $next.addClass('disable').prop('disabled', true); + } +}).blur(function() { + var $this = $(this), + v = $this.val(); + + if ($this.hasClass('pwd')) { + if (v === '') { + $this.addClass('error'); + $pwdErr.removeClass('hide').find('em').text('请输入密码'); + } else if (v.length < 6 || v.length > 20) { + $this.addClass('error'); + $pwdErr.removeClass('hide').find('em').text('密码只支持6-20位'); + } else if (!pwdRegx.test(v)) { + $this.addClass('error'); + $pwdErr.removeClass('hide').find('em').text('密码须字母和数字组合'); + } else { + $pwdErr.addClass('hide'); + if ($repwd.val() !== '') { + if (v !== $repwd.val()) { + $repwd.addClass('error'); + $repwdErr.removeClass('hide').find('em').text('两次密码输入不一致,请重新输入'); + } else { + $repwd.removeClass('error'); + $repwdErr.addClass('hide'); + } + } + } + } else { + if (v === '') { + $this.addClass('error'); + $repwdErr.removeClass('hide').find('em').text('请输入密码确认'); + } else { + if ($pwd.val() !== '' && v !== $pwd.val()) { + $this.addClass('error'); + $repwdErr.removeClass('hide').find('em').text('两次密码输入不一致,请重新输入'); + } else { + $this.removeClass('error'); + $repwdErr.addClass('hide'); + } + } + } +}).focus(function() { + $(this).removeClass('error'); + + //focus后错误提示隐藏 + if ($(this).hasClass('pwd')) { + $pwdErr.addClass('hide'); + } else { + $repwdErr.addClass('hide'); + } +}); + +$pwd.focus(function() { + $pwdErr.addClass('hide'); + $pwdTips.removeClass('hide'); +}).blur(function() { + $pwdTips.addClass('hide'); +}); + +$('#pwd, #repwd').keydown(function(e) { + var code = e.keyCode || e.which; + + //空格输入过滤 + if (code === 32) { + e.preventDefault(); + return; + } +}); + }); -define("js/home/order-block", ["jquery","handlebars","source-map"], function(require, exports, module){ +define("js/passport/vertification", ["jquery"], function(require, exports, module){ /** - * 订单 + * 验证手机 * @author: xuqi<qi.xu@yoho.cn> - * @date: 2016/2/17 + * @date: 2015/12/14 */ var $ = require("jquery"); -var Handlebars = require("handlebars"); - -var dialog = require("js/common/dialog"); - -var Dialog = dialog.Dialog; -var Confirm = dialog.Confirm; - -var $tpl = $('#cancel-dialog-tpl'); - -var html = $tpl.html(); - -var active; - -var dialogMessage = '<p class="message-title"><i class="order-icon {{messageIcon}}"></i>{{messageTitle}}</p><p class="message-summary">{{messageSummary}}</p>'; -var $dialogEdit = $('#edit-dialog-tpl'); -var $addressManage, $province, $city, $county, $selectList, $name, $phone, $address, $telCode, $tel, isProvinceChecked = false; -; - -function cancelFactory(id) { - var options = { - mask: true, - btns: [ - { - id: 'cancel-sure', - name: '确定并取消订单', - btnClass: ['cancel-sure'], - cb: function() { - var $checked = $('.cancel-dialog :checked'); - var $tip = $('.cancel-dialog .cancel-tip'); - var text = ''; - if ($checked.val() === '10') { - text = $checked.parent().find('#reason_other').val(); - } else { - text = $checked.siblings('label').text(); - } - if ($checked.length === 0) { - $tip.html('请选择要取消订单的原因'); - return; - } - $.ajax({ - type: 'POST', - url: '/home/orders/cancelorder', - data: { - orderCode: id, - reasonId: $checked.val(), - reason: text - } - }).then(function(data) { - if (data.code === 200) { - active.close(); - active = showMessgaeDialog('icon-success', '订单修改', '您已成功取消了该订单', function() { - location.reload(true); - }); - active.show(); - } else { - $tip.html(data.message); - } - }); - } - }, - { - id: 'cancel-no', - name: '暂不取消', - btnClass: ['cancel-no'], - cb: function() { - active.close(); - } - } - ], - content: html, - className: 'cancel-dialog' - }; - return new Dialog(options); -} +var $sc = $('#send-captcha'), + $msgTip = $('#captcha-tip'), + $errTip = $('#err-tip'), + $next = $('#next-step'), + seconds, + itime; -function showMessgaeDialog(message_icon, message_title, message_summary, cb) { - var template = Handlebars.compile(dialogMessage); - var html = template({messageIcon: message_icon, messageTitle: message_title, messageSummary: message_summary}); - var options = { - mask: true, - btns: [ - { - id: 'message-sure', - name: '确定', - btnClass: ['message-sure'], - cb: function() { - active.close(); - cb && cb(); - } +$sc.click(function() { + $.post('/passport/back/sendbackmobile', { + mobile: $('#mobile').val(), + area: $('#area').val(), + verifyCode: $('#captchaPic').val() + }, function(jsonData) { + if (jsonData.code === 200) { + $errTip.hide(); + if ($(this).hasClass('disable')) { + return; } - ], - content: html, - className: 'message-dialog', - }; + seconds = 60; - return new Dialog(options); + //$sc.addClass('disable').prop('disabled', true); + $sc.addClass('disable').attr('disabled', true); + $msgTip.removeClass('hide'); -} + $sc.val(seconds-- + '秒后可重新操作'); + itime = setInterval(function() { + if (seconds === 0) { + clearInterval(itime); -// 编辑订单 -function editOrder(id) { - var options = { - mask: true, - btns: [ - { - id: 'edit-sure', - name: '确定', - btnClass: ['edit-sure'], - cb: function() { - saveAddress(id); - } - }, - { - id: 'edit-no', - name: '取消', - btnClass: ['edit-no'], - cb: function() { - active.close(); + //$sc.val('发送验证码').removeClass('disable').prop('disabled', false); + $sc.val('发送验证码').removeClass('disable').removeAttr('disabled'); + } else { + $sc.val(seconds-- + '秒后可重新操作'); } - } - ], - content: $dialogEdit.html(), - className: 'edit-order-dialog' - }; - - return new Dialog(options); -} - -$tpl.remove(); -$dialogEdit.remove(); - -//查看物流 -$('.check-logistics').click(function() { - $(this).siblings('.logistics').removeClass('hide'); -}); - -$('.close-logistics').click(function() { - $(this).closest('.logistics').addClass('hide'); + }, 1000); + } else { + $(this).addClass('error'); + $errTip.removeClass('hide').text('发送失败'); + } + }); }); +seconds = 60; -//订单列表&订单详情【取消订单和确认收货】 -$('.me-orders, .order-detail').on('click', '.cancel-order', function(e) { - - //取消订单 - active = cancelFactory($(this).closest('.order, .order-detail').data('id')); - active.show(); -}).on('click', '.confirm-received', function(e) { - var id = $(this).closest('.order, .order-detail').data('id'); +//$sc.addClass('disable').prop('disabled', true); +$sc.addClass('disable').attr('disabled', true); +$msgTip.removeClass('hide'); - //确认收货 - active = new Confirm({ - cb: function() { - $.ajax({ - type: 'POST', - url: '/home/orders/confirmorder', - data: { - orderCode: id - } - }).then(function(data) { - if (data.code === 200) { - active.close(); - history.go(0); - } - }); - }, - content: '您确定要确认收货吗?' - }); - active.show(); -}).on('click', '.edit-order', function() { - $(this).addClass('edit-order-active'); - active = editOrder($(this).closest('.order, .order-detail').data('id')) - active.show(); - newAddress(0); -}).on('click', '.rebuy', function() { - var id = $(this).closest('.order, .order-detail').data('id'); - buyAgain(id); -}); -//再次购买 -function buyAgain(id){ - $.ajax({ - type: 'post', - url: '/home/orders/reAdd', - data: {orderCode: id} - }).then(function(d) { - if (d.code === 200) { - location.href = '/shopping/cart'; - } else { - new dialog.Alert(d.message).show(); - } - }) -} -// 地址操作 -function newAddress(id) { - var code, codeId; +$sc.val(seconds-- + '秒后可重新操作'); +itime = setInterval(function() { + if (seconds === 0) { + clearInterval(itime); - var pId = id || 0; //如果没有传id则获取所有省列表 + //$sc.val('发送验证码').removeClass('disable').prop('disabled', false); + $sc.val('发送验证码').removeClass('disable').removeAttr('disabled'); + } else { + $sc.val(seconds-- + '秒后可重新操作'); + } +}, 1000); - var addressCodeReg = /[0-9]{2}/gi; - $addressManage = $('.edit-order-dialog'); - $province = $addressManage.find('select[name="province"]'); - $city = $addressManage.find('select[name="city"]'); - $county = $addressManage.find('select[name="county"]'); - $selectList = $addressManage.find('select[name="province"],select[name="city"]'); - $name = $addressManage.find('.inp[name="name"]'); - $phone = $addressManage.find('.inp[name="phone"]'); - $address = $addressManage.find('.inp[name="address"]'); - $telCode = $addressManage.find('.inp[name="tel-code"]'); - $tel = $addressManage.find('.inp[name="tel"]'); +$('#captcha').keyup(function() { + var v = $.trim($(this).val()), + that = this; - var validate = validateForm(); + if (v.length === 4) { + $.ajax({ + type: 'POST', + url: '/passport/back/backmobile', + dataType: 'json', + data: { + code: $('#captcha').val(), + verifyCode: $('#captchaPic').val(), + area: $('#area').val(), + mobile: $('#mobile').val() + }, + success: function(res) { + if (res.code === 200) { - code = $province.data("areacode") + ''; - codeId = !!code && code.match(addressCodeReg); + //添加验证码正确验证 + $next.removeClass('disable').attr('href', res.data); + $errTip.addClass('hide'); + $(that).removeClass('error'); + } else { + $next.addClass('disable'); + $errTip.removeClass('hide').find('em').text('验证码输入错误'); + $(that).addClass('error'); + } + } + }); + } else { + $next.addClass('disable').attr('href', 'javascript:;'); + } +}).blur(function() { + var v = $.trim($(this).val()); - //获取省 - getAddress({ - id: pId, - type: 'getProvince', - selectId: codeId[0] - }, function() { + if (v === '') { - var provinceId = $province.val(); + //添加验证码正确验证 + $(this).addClass('error'); + $errTip.removeClass('hide').text('请输入验证码'); + } +}).focus(function() { + $(this).removeClass('error'); +}); +}); +define("js/passport/thirdlogin", ["jquery"], function(require, exports, module){ +/** + * 第三方登录首页 + * @author: wq + * @date: 2016/1/21 + */ +var $ = require("jquery"); +var phoneRegx = require("js/passport/mail-phone-regx").phoneRegx; - if (provinceId !== '0') { - isProvinceChecked = true; +var nopermissionoption = $('#nopermissionmessage').html(); //倒计时dom +var sendmessagehtml = $('.validatewrapper').html(); //发送短信dom +var second = +$('.second').text(); //倒计时秒数 +var dovalidate = false; //校验验证码标识 +var validatecode = false; //验证码是否通过 +var choosedpic = 'http://cdn.yoho.cn/yohobuy/assets/img/passport/choosed.png';//已选择图片 - //如果获取的省有默认选中项则获取市 - getAddress({ - id: provinceId, - type: 'getCity', - selectId: '' + codeId[0] + codeId[1] - }, function() { +var $wrapper = $('.bindwrapper'), + $phoneTip = $wrapper.find('.phone-err-tip'), + $nextBtn = $wrapper.find('.yohobindbtn'); - var cityId = $city.val(); +/** + * 选择协议 + * @return {[type]} [description] + */ +function chooseProtocol() { + $('.choosetag').on('change', function() { + var btnColor = '#f02200'; - //如果获取的市有默认选中项则获取县 - if (cityId !== '0') { - getAddress({ - id: cityId, - type: 'getCounty', - selectId: code - }); - } + if ($(this).attr('checked') === 'checked') { + $('.choosewrapper').css({ + 'background-image': 'url("' + choosedpic + '")' }); } else { - $addressManage.find('select[name="city"]').html('<option value="0">请选择城市</option>'); - $addressManage.find('select[name="county"]').html('<option value="0">请选择区县</option>'); + $('.choosewrapper').css({ + 'background-image': 'none' + }); + btnColor = '#CCCCCC'; } + $nextBtn.css({ + 'background-color': btnColor + }); }); +} +/** + * 判断是否同意协议 + * @return {[type]} [description] + */ +function isagree() { + return $('.choosetag').attr('checked') === 'checked'; +} +/** + * 选择区域的开关 + * @return {[type]} [description] + */ +function chooseAreaToogle() { + $('.optionshow').on('click', function() { + $('.optionslist').toggleClass('hide'); + }); +} - // 发生change事件时获取下一级地址 - $selectList.change(function() { - - var $this = $(this); - - if ($this.attr('name') === 'province') { - - if ($this.val() === '0') { - $addressManage.find('select[name="city"]').html('<option value="0">请选择城市</option>'); - $addressManage.find('select[name="county"]').html('<option value="0">请选择区县</option>'); - } else { - getAddress({ - id: $this.val(), - type: 'getCity' - }, function() { - isProvinceChecked = true; - }); - $addressManage.find('select[name="county"]').html('<option value="0">请选择区县</option>'); - } - } - - if ($this.attr('name') === 'city' && isProvinceChecked) { +/** + * 验证码校验 + * @return {[type]} [description] + */ +function codeValidate() { + var validatenum = ''; - if ($this.val() === '0') { - $addressManage.find('select[name="county"]').html('<option value="0">请选择区县</option>'); - } else { - getAddress({ - id: $this.val(), - type: 'getCounty' + $(document).on('keyup', '#validatenum', function() { + validatenum = $(this).val(); + if (validatenum.length === 4) { + if (!dovalidate) { + dovalidate = true; + $.ajax({ + type: 'POST', + url: '/passport/autouserinfo/checkBindMsg', + data: { + code: validatenum, + mobile: $('#mobile').val(), + area: $('#areacode').val() + } + }).then(function(data) { + dovalidate = false; + if (data.code === 200) { + validatecode = true; + } else { + alert(data.message); + } }); } } }); - $name.on('blur', function() { - validate.name($.trim($name.val())); - }); - $address.on('blur', function() { - validate.address($.trim($address.val())); - }); - $phone.on('blur', function() { - validate.mobile($.trim($phone.val())); + + $('#validatenum').focus(function() { + $(this).removeAttr('placeholder'); + }).blur(function() { + $(this).attr('placeholder', '验证码'); }); - $tel.on('blur', function() { - validate.tel($.trim($telCode.val()), $.trim($tel.val())); - }) - $county.on('change', function() { - validate.city($province.val(), $city.val(),$county.val()); - }) } + /** - * @description: 改函数会返回地址信息 - * d {Object} type: 'getProvince'获取省 type: 'getCity'获取城市 type: 'getCounty'获取县 - * id: 0 && type: 'getProvince' 获取所有省,默认没有选中项 - * id !== 0 && type: 'getProvince' 获取所有省,默认选中用户所在的省 + * 选择区域 + * @return {[type]} [description] */ -function getAddress(d, callback) { - - var $obj; - var selectId = d.selectId; - - if (d.type === 'getProvince') { - - //url = 'getProvince'; - $obj = $province; - } else if (d.type === 'getCity') { - - //url = 'getCity'; - $obj = $city; - } else if (d.type === 'getCounty') { - - //url = 'getCounty'; - $obj = $county; - } - - $.ajax({ - type: 'GET', - url: '/cart/index/getAreaList', - dataType: 'json', - data: { - id: d.id * 1 - } - }).then(function(d) { +function chooseArea() { + $('.optionitem').on('click', function() { + var $option = $(this); + var areanum = $option.attr('areanum'); + var areaname = $option.text(); - structureOption($obj, d.data, selectId); + $('#areaname').text(areaname); + $('#areanum').text(areanum); + $('#areacode').val(areanum); + $('.optionslist').addClass('hide'); + }); +} +/** + * 取消选择区域 + * @return {[type]} [description] + */ +function cancelChooseArea() { + $(document).on('click', 'body', function(e) { + var $target = $(e.target); - if (typeof callback === 'function') { - callback(); + if ($target.hasClass('yohoselectarea') || + $target.hasClass('areaname') || + $target.hasClass('righttag') || + $target.hasClass('optionslist') || + $target.hasClass('optionitem')) { + return; + } else { + $('.optionslist').addClass('hide'); } + }); +} +/** + * 去掉区域号的加号 + * @return {[type]} [description] + */ +function fixAreaNum() { + var $opitem = ''; + var itemarecode = ''; + $('.optionitem').each(function() { + $opitem = $(this); + itemarecode = $opitem.attr('areanum').replace(/\+/g, ''); + $opitem.attr('areanum', itemarecode); }); } -// 构建select下拉选项 -function structureOption($obj, data, selectId) { - - var i, - optionHtml = '', - defaultOption, - isStar = ''; - - for (i = 0; i < data.length; i++) { +/** + * 关闭蒙层 + * @return {[type]} [description] + */ +function closeMask() { + var $target; - if (data[i].is_support_express === 'Y') { - isStar = '*'; - } else { - isStar = ''; + $(document).on('click', '#alreayregist', function(e) { + $target = $(e.target); + if ($target.hasClass('mask') || $target.hasClass('backdrop')) { + $('#alreayregist').hide(); + $('.backdrop').hide(); } - - if (data[i].id === selectId) { - optionHtml += '<option selected value="' + data[i].id + '">' + isStar + data[i].caption + '</option>'; - } else { - optionHtml += '<option value="' + data[i].id + '">' + isStar + data[i].caption + '</option>'; + }); + $(document).on('click', '#bindconfirm', function(e) { + $target = $(e.target); + if ($target.hasClass('mask') || $target.hasClass('backdrop')) { + $('#bindconfirm').hide(); + $('.backdrop').hide(); } - } - - - if ($obj.attr('name') === 'province') { - defaultOption = '<option value="0">请选择省份</option>'; - } else if ($obj.attr('name') === 'city') { - defaultOption = '<option value="0">请选择城市</option>'; - - } else if ($obj.attr('name') === 'county') { - defaultOption = '<option value="0">请选择区县</option>'; - } - - $obj.html(defaultOption + optionHtml); + }); } - -// 保存地址 -function saveAddress(id) { - var name = $name.val(), - province = $province.val(), - city = $city.val(), - county = $county.val(), - address = $address.val(), - phone = $phone.val(), - telCode = $telCode.val(), - tel = $tel.val(); - - // var $err_name = $name.siblings('.error'), - // $err_province = $province.siblings('.error'), - // $err_address = $address.siblings('.error'), - // $err_phone = $phone.siblings('.error'), - // $err_tel = $tel.siblings('.error'); - - var postData = { - orderCode: id, - userName: name, - areaCode: county, - address: address, - mobile: phone, - phoneCode: telCode, - phoneNum: tel - }; - var validate = validateForm(); - if (!validate.name(name) || !validate.city(province, city, county) || !validate.address(address) || !validate.mobile(phone) || !validate.tel(telCode, tel)) { +/** + * 绑定其他手机号 + * @return {[type]} [description] + */ +function yohoBindBtn() { + $(document).on('click', '#yohobindbtn', function(e) { + $('.phonenum').val(''); + $('#bindconfirm').hide(); + $('.backdrop').hide(); + }); + $(document).on('click', '#yohobindbtn2', function(e) { + $('.phonenum').val(''); + $('#alreayregist').hide(); + $('.backdrop').hide(); + }); +} +/** + * 发送短信的时间变换动画 + * @return {[type]} [description] + */ +function changeSecond() { + second -= 1; + if (second < 0) { + second = 60; + $('.validatewrapper').html(sendmessagehtml); return; + } else { + $('.second').text(second); + window.setTimeout(changeSecond, 1000); } - $.ajax({ - type: 'post', - url: '/home/orders/modifyAddress', - data: postData - }).then(function(d) { - if (d.code === 200) { - active.close(); - active = showMessgaeDialog('icon-waiting', '订单修改', '您的订单正在尝试修改,请耐心等待。稍后可在订单详情页查看修改情况!', function() { - location.reload(true); - }); - active.show(); - } else { - new dialog.Alert(d.message).show(); +} +/** + * 时间循环 + * @param {[type]} phonenum [description] + * @return {[type]} [description] + */ +function circleTime(phonenum) { + $('.validatewrapper').html(nopermissionoption); + window.setTimeout(changeSecond, 1000); +} +/** + * 发送短信 + * @return {[type]} [description] + */ +function sendMessageValidate() { + $(document).on('click', '#sendmessage', function() { + if ($('#sendmessage').attr('disabled') === 'disabled') { + return; } - }) + circleTime($('#mobile').val()); + $.ajax({ + type: 'POST', + url: '/passport/autouserinfo/sendBindMsg', + data: { + mobile: $('#mobile').val(), + area: $('#areacode').val() + } + }).then(function(data) { + if (data.code !== 200) { + alert(data.message); + } + }); + + }); } -function validateForm() { - var $err_name = $name.siblings('.error'), - $err_province = $province.siblings('.error'), - $err_address = $address.siblings('.error'), - $err_phone = $phone.siblings('.error'), - $err_tel = $tel.siblings('.error'); - var nameReg = /^[\u4e00-\u9fa5]{2,5}$/; - var addressReg = /^[a-zA-Z0-9-#()()\u4e00-\u9fa5]+$/; - var phoneReg = /^(13[0-9]|15[012356789]|17[678]|18[0-9]|14[57])[0-9]{8}$/; - var telCodeReg = /^[0-9]{3,4}$/; - var telReg = /^[0-9]{8}$/; - var _right_html = '<i class="order-icon icon-right"></i>'; - var _error_html = '<i class="order-icon icon-error"></i><b></b>'; +/** + * 最终提交表单 + */ +function actionSubmit() { + var mobile = ''; + var area = ''; - return { - name: function(name) { - if (!nameReg.test(name)) { - $err_name.html(_error_html); - $err_name.find('b').html('真实姓名至少2个中文,最多5个中文'); - $err_name.show(); - return false; - } else { - $err_name.html(_right_html).show(); - return true; - } - }, - city: function(province, city, county) { - if (province === '0' || city === '0' || county === '0') { - $err_province.html(_error_html); - $err_province.find('b').html('请填写完整的省市区信息'); - $err_province.show(); - return false; - } else { - $err_province.html(_right_html).show(); - return true; - } - }, - address: function(address) { - if (!addressReg.test(address)) { - var message = '详细地址不能为空'; - if ($.trim(address) !== '') { - message = '只能包含数字、字母、汉字、#、-、()及其组合'; - } - $err_address.html(_error_html); - $err_address.find('b').html(message); - $err_address.show(); - return false; - } else { - $err_address.html(_right_html).show(); - return true; - } - }, - mobile: function(phone) { - if (!phoneReg.test(phone)) { - var message = '手机号码不能为空'; - if ($.trim(phone) !== '') { - message = '你输入的联系电话格式不正确'; - } - $err_phone.html(_error_html); - $err_phone.find('b').html(message); - $err_phone.show(); - return false; - } else { - $err_phone.html(_right_html).show(); - return true; - } - }, - tel: function(telCode, tel) { - if(telCode === '' && tel === ''){ - _right_html = ''; - } - if ((!!telCode && !telCodeReg.test(telCode)) || (!!tel && !telReg.test(tel)) || - (telCodeReg.test(telCode) && !telReg.test(tel)) || - (!telCodeReg.test(telCode) && telReg.test(tel))) { - $err_tel.html(_error_html); - $err_tel.find('b').html('你输入的电话格式不正确'); - $err_tel.show(); - return false; + area = $('#areacode').val(); + mobile = $('#mobile').val(); + $.ajax({ + type: 'POST', + url: '/passport/autouserinfo/bindMobile', + data: { + area: area, + openId: $('#openId').val(), + sourceType: $('#sourceType').val(), + mobile: mobile, + code: $('#validatenum').val() + } + }).then(function(data) { + if (data.code === 200) { + if (data.data && data.data.refer) { + window.location.href = data.data.refer; } else { - $err_tel.html(_right_html).show(); - return true; + window.location.href = '/passport/thirdlogin/bindsuccess'; } + } else { + alert(data.message); } - } + }); } - -}); -define("js/home/orders", ["jquery","handlebars","source-map"], function(require, exports, module){ + /** - * 我的订单 - * @author: xuqi<qi.xu@yoho.cn> - * @date: 2016/2/17 + * 确认去绑定 + * @return {[type]} [description] */ -var $ = require("jquery"); +function goToBindPhone() { + $(document).on('click', '#gotobindphone', function() { + if (validatecode === true) { + $('#inarea').val($('#areacode').val()); + $('#inmobile').val($('#mobile').val()); + actionSubmit(); + } else { + alert('请输入正确验证码'); + } + }); +} +/** + * 点击下一步 + * @return {[type]} [description] + */ +function nextStep() { + var openId = ''; + var sourceType = ''; + var mobile = ''; + var areaCode = ''; + var username = ''; + var headImg = ''; + $('#bindfirststep').on('click', function(e) { + var regx; -require("js/home/order-block"); + e.preventDefault(); + mobile = $('.phonenum').val(); + areaCode = $('#areanum').text(); + regx = phoneRegx['+' + areaCode]; + + if (!isagree()) { + return; + } + if (mobile === '' || !regx || !regx.test(mobile)) { + $phoneTip.find('em').text('手机格式错误'); + $phoneTip.removeClass('hide'); + return; + } + openId = $('#openId').val() || '29803EC6D4AAC3AAB8ABDB6AE829D579'; + sourceType = $('#sourceType').val() || 'qq'; + $.ajax({ + type: 'post', + url: '/passport/autouserinfo/bindCheck', + data: { + mobile: mobile, + area: areaCode, + openId: openId, + sourceType: sourceType + }, + dataType: 'json', + success: function(data) { + var winHeight = $(window).height(); -//不同订单包裹提示 + if (data.code === 200) { + $('#bindmobileform').attr('action', data.data.next); + $('#bindmobileform').submit(); + } else if (data.code === 201) { -$('.why').click(function() { - $('#differentBag').show(); - return false; + // 已注册 未绑定 + username = data.data.user.username; + headImg = data.data.user.headImg; + $('#registphone').text(mobile); + $('#username').text(username); + if (headImg === '') { + $('#userphoto').attr('src', 'http://img10.static.yhbimg.com/headimg/2013/11/28/09/' + + '01cae078abe5fe320c88cdf4c220212688.gif?imageView/2/w/100/h/100'); + } else { + $('#userphoto').attr('src', headImg); + } + $('#logindirectly2').attr('href', data.data.user.bindLogin); + $('.backdrop').show(); + $('#sendmessage').click(); + $('#alreayregist .mask').css({ + 'padding-top': winHeight > 440 ? winHeight / 2 : 217 + }); + $('#alreayregist').show(); + } else if (data.code === 203) { + // 已注册 可关联 + $('#bindmobileform').attr('action', data.data.next); + $('#bindmobileform').submit(); + } else if (data.code === 205) { + + // 未注册 不可关联 + username = data.data.user.username; + headImg = data.data.user.headImg; + $('#registphonetwo').text(mobile); + $('#username1').text(username); + if (headImg === '') { + $('#userphoto1').attr('src', 'http://img10.static.yhbimg.com/headimg/2013/11/28/09/' + + '01cae078abe5fe320c88cdf4c220212688.gif?imageView/2/w/100/h/100'); + } else { + $('#userphoto1').attr('src', headImg); + } + $('#logindirectly').attr('href', data.data.user.bindLogin); + $('.backdrop').show(); + $('#bindconfirm .mask').css({ + 'padding-top': winHeight > 440 ? winHeight / 2 : 217 + }); + $('#bindconfirm').show(); + } else if (data.code === 402) { + $phoneTip.find('em').text('手机格式错误'); + $phoneTip.removeClass('hide'); + } else { + if (data && data.message) { + alert(data.message); + } + } + } + }); + }); +} + +$wrapper.on('keydown', '.phonenum', function(e) { + if (e.keyCode === 13) { + $nextBtn.trigger('click'); + return false; + } }); -$('#differentBag').click(function() { - return false; -}); -$(document).click(function() { - $('#differentBag').hide(); -}); +function init() { + fixAreaNum(); //去掉所有区域的+ + sendMessageValidate(); //有交互的发送短信 + chooseProtocol(); //选择协议 + chooseArea(); //选择区域 + chooseAreaToogle(); //选择区域展示或关闭 + cancelChooseArea(); //取消选择区域 + nextStep(); //下一步 + closeMask(); //关闭蒙层 + yohoBindBtn(); //绑定其他手机号点击 + goToBindPhone(); //绑定手机 + codeValidate(); //验证码校验 +} +init(); +}); +define("js/passport/third-pwd", ["jquery"], function(require, exports, module){ +/** + * 第三方绑定完善个人信息 + * @author: wq + * @date: 2016/1/27 + */ +var $ = require("jquery"); +var dovalidate = false; //校验验证码的标识 +var isvalidatecode = false; //是否验证成功的标识 +var isvalidatepwd = false; //密码验证是否通过的标识 +var second = ''; //倒计时时间 +var nopermissionoption = ''; //倒计时的dom +var sendmessagehtml = ''; //发送短信的dom +var submitStatus = false; //信息提交状态 + +var $wrapper = $('.bindwrapper'), + $codeTip = $wrapper.find('.code-err-tip'), + $pwdTip = $wrapper.find('.pwd-err-tip'), + $pwdTip2 = $('#pwd-tip2'), + $sendMsgBtn = $('#sendmessage'); +var $pwd, + $pwdParent, + $pwdTip1, + $pwdIntensity; + +var pwdRegx = require("js/passport/mail-phone-regx").pwdValidateRegx; +var mobile = $('#mobile').val(), + area = $('#area').val(); + +nopermissionoption = $('#nopermissionmessage').html(); +sendmessagehtml = $('.validatewrapper').html(); +second = +$('.second').text(); + + +function gettype(str, i) { + if (str.charCodeAt(i) >= 48 && str.charCodeAt(i) <= 57) { + return 1; + } else if (str.charCodeAt(i) >= 97 && str.charCodeAt(i) <= 122) { + return 2; + } else if (str.charCodeAt(i) >= 65 && str.charCodeAt(i) <= 90) { + return 3; + } + + return 4; +} + +function isregular(cur, pre, type) { + var curCode = cur.charCodeAt(0); + var preCode = pre.charCodeAt(0); + + if (curCode - preCode === 0) { + return true; + } + + if (type !== 4 && (curCode - preCode === 1 || curCode - preCode === -1)) { + return true; + } + + return false; +} + + +function getcomplex(curType, preType) { + if (preType === 0 || curType === preType) { + return 0; + } else if (curType === 4 || preType === 4) { + return 2; + } else { + return 1; + } +} + + +/** + * @desc: 计算密码复杂度(from:http://www.oschina.net/code/snippet_127301_17269) + * @author: xuqi(qi.xu@yoho.cn) + * @date: 2015/5/6 + */ +function computeComplex(password) { + var complex = 0; + var length = password.length; + var pre = ''; + var preType = 0; + var i = 0; + var cur = ''; + var curType = ''; + + for (i; i < length; i++) { + cur = password.charAt(i); + curType = gettype(password, i); + if (preType !== curType || !isregular(cur, pre, curType)) { + complex += curType + getcomplex(curType, preType); + } + pre = cur; + preType = curType; + } + + return complex; +} + +function showErrTip($dom, info) { + $dom.find('em').text(info); + $dom.removeClass('hide'); +} + +function changeSecond() { + second -= 1; + if (second < 0) { + second = 60; + $('.validatewrapper').html(sendmessagehtml); + return; + } else { + $('.second').text(second); + window.setTimeout(changeSecond, 1000); + } + +} +/** + * 启动倒计时 + * @return {[type]} [description] + */ +function circleTime() { + $('.validatewrapper').html(nopermissionoption); + window.setTimeout(changeSecond, 1000); +} + +function sendMessageValidate() { + $(document).on('click', '#sendmessage', function() { + circleTime(); + $.ajax({ + type: 'POST', + url: '/passport/autouserinfo/sendBindMsg', + data: { + mobile: mobile, + area: area + } + }).then(function(data) { + if (data.code !== 200) { + alert(data.message); + } + }); + + }); +} + + + +function codeValidate() { + var validatenum = ''; + + $(document).on('keyup', '#validatenum', function() { + $('#err-info').hide(); + validatenum = $(this).val(); + if (validatenum.length === 4) { + if (!dovalidate) { + dovalidate = true; + $.ajax({ + type: 'POST', + url: '/passport/autouserinfo/checkBindMsg', + data: { + code: validatenum, + mobile: mobile, + area: area + } + }).then(function(data) { + dovalidate = false; + if (data.code !== 200) { + $('#err-info').show(); + } else { + isvalidatecode = true; + } + }); + } + } + }); +} + +function pwdKeyupEvt() { + var pwd = $pwd.val(), + pwdStrength = computeComplex(pwd), + level = 0; + + if (pwdStrength === 0) { + level = 0; + } else if (pwdStrength <= 10) { + level = 1; + } else if (pwdStrength <= 20) { + level = 2; + } else { + level = 3; + } + switch (level) { + case 0: + $pwdParent.removeClass('red yellow green'); + $pwdIntensity.removeClass('color'); + break; + case 1: + $pwdParent.addClass('red').removeClass('yellow green'); + $pwdIntensity.filter('.low').addClass('color'); + $pwdIntensity.filter('.mid,.high').removeClass('color'); + break; + case 2: + $pwdParent.addClass('yellow').removeClass('red green'); + $pwdIntensity.filter('.low,.mid').addClass('color'); + $pwdIntensity.filter('.high').removeClass('color'); + break; + case 3: + $pwdParent.addClass('green').removeClass('yellow red'); + $pwdIntensity.addClass('color'); + break; + } + if (pwd === '') { + isvalidatepwd = false; + $pwdTip1.removeClass('red yes no').addClass('default'); + } else { + if (pwd.length < 6 || pwd.length > 20) { + isvalidatepwd = false; + $pwdTip1.removeClass('default yes').addClass('no red'); + } else { + isvalidatepwd = true; + $pwdTip1.removeClass('default no red').addClass('yes'); + } + if (/^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]*$/.test(pwd)) { + $pwdTip2.removeClass('default no red').addClass('yes'); + } else { + $pwdTip2.removeClass('default yes').addClass('no red'); + } + } +} + +function validatePwd() { + $(document).on('keyup', '.pwdcontent', function() { + pwdKeyupEvt($(this)); + }); + $(document).on('focus', '.pwdcontent', function() { + $('#pwd-tips').removeClass('hide'); + }); + $(document).on('blur', '.pwdcontent', function() { + $('#pwd-tips').addClass('hide'); + }); +} + +/** + * 最终提交表单 + */ +function actionSubmit() { + var pwd = ''; + var code = ''; + + // 查看提交状态,避免重复提交 + if (submitStatus) { + return; + } + submitStatus = true; + setTimeout(function() { + submitStatus = false; + }, 50000); + + pwd = $('#pwd').val(); + code = $('#validatenum').val(); + $.ajax({ + type: 'POST', + url: '/passport/autouserinfo/bindMobile', + data: { + area: area, + openId: $('#openId').val(), + sourceType: $('#sourceType').val(), + mobile: mobile, + password: pwd, + code: code + } + }).then(function(data) { + submitStatus = false; + if (data.code === 200) { + if (data.data && data.data.refer) { + window.location.href = data.data.refer; + } else { + window.location.href = '/passport/thirdlogin/bindsuccess'; + } + } else { + alert(data.message); + } + }); +} +/** + * 确定完善信息 + * @return {[type]} [description] + */ +function actionConfirm() { + var validatenum = ''; + var pwd = ''; + + $('#confirmsubmit').on('click', function() { + var isAssess = true; + + validatenum = $('#validatenum').val(); + pwd = $('#pwd').val(); + + if (validatenum === '') { + showErrTip($codeTip, '短信验证码不能为空'); + isAssess = false; + } else if (isvalidatecode === false) { + showErrTip($codeTip, '请输入正确的验证码'); + isAssess = false; + } + + if (pwd === '') { + showErrTip($pwdTip, '密码不能为空'); + isAssess = false; + } else if (pwd.length < 6 || pwd.length > 20) { + showErrTip($pwdTip, '密码只支持6-20位字符'); + isAssess = false; + } else if (!pwdRegx.test(pwd)) { + showErrTip($pwdTip, '密码须由字母和数字组合'); + isAssess = false; + } else if (isvalidatepwd === false) { + showErrTip($pwdTip, '请输入符合强度的密码'); + isAssess = false; + } + + if (!isAssess) { + return; + } + + actionSubmit(); + }); +} + + + +function init() { + $pwd = $('#pwd'); + $pwdParent = $('.safelevel'); + $pwdIntensity = $('.pwd-intensity'); + $pwdTip1 = $('#pwd-tip1'); + sendMessageValidate(); + codeValidate(); + validatePwd(); + actionConfirm(); + if (mobile && area) { + $sendMsgBtn.click(); + } +} + +init(); + +}); +define("js/passport/relate", ["jquery"], function(require, exports, module){ +/** + * 第三方关联 + * @author: yyqing<yanqing.yang@yoho.cn> + * @date: 2016/4/11 + */ +var $ = require("jquery"); + +var $relateMain = $('#relate-main'), + $codeValidate = $('#code-validate'), + $vaWrapper = $codeValidate.find('.validate-wrapper'), + $msgCode = $codeValidate.find('.msg-code'), + $second = $codeValidate.find('.count-down span'), + $errTip = $codeValidate.find('.code-error'), + $hideDom = $('#hide-info'); + +var relate = {}; -//订单包裹左右切换 -function lunBo($pre, $next, $ul, $iWidth) { - var i = 1, - j = 1; +var circleTime = {}; - var iSpeed = 0, - isMoving = false; +relate = $hideDom.data(); +$hideDom.remove(); - $pre.click(function() { - if (isMoving) { - return; +// 倒计时 +circleTime = { + init: function() { + if (this.timer) { + window.clearTimeout(this.timer); } + this.second = 60; + $vaWrapper.addClass('waiting'); + this.changeTime(); + }, + changeTime: function() { + var that = this; - if ($ul.css('left') === '0px') { - iSpeed = 0; - + if (this.second && this.second > 0) { + $second.text(this.second); + this.second--; + this.timer = window.setTimeout(function() { + that.changeTime(); + }, 1000); } else { - iSpeed += j * $iWidth; - isMoving = true; + this.clearTime(); } - $ul.stop().animate({ - left: iSpeed - }, 300, function() { - isMoving = false; - }); - }); - $next.click(function() { - var $largeLeft = $ul.parent().width() - $ul.width() + 'px'; + }, + clearTime: function() { + if (this.timer) { + window.clearTimeout(this.timer); + } + $vaWrapper.removeClass('waiting'); + } +}; - if (isMoving) { - return; +function sendVerifyMsg() { + circleTime.init(); + + $.ajax({ + type: 'POST', + url: '/passport/autouserinfo/sendBindMsg', + data: { + mobile: relate.mobile, + area: relate.area + } + }).then(function(jsonData) { + if (jsonData && jsonData.code !== 200) { + circleTime.clearTime(); + alert(jsonData.message); } + }); +} + +function relateMobile() { + var code = $msgCode.val(); + + if (!code) { + return; + } - if ($ul.css('left') === $largeLeft) { - $ul.css('left', $largeLeft); + $.ajax({ + type: 'POST', + url: '/passport/autouserinfo/relateMobile', + data: { + mobile: relate.mobile, + area: relate.area, + openId: relate.openid, + sourceType: relate.source, + code: code + } + }).then(function(jsonData) { + if (jsonData.code === 200) { + window.location.href = jsonData.data.refer; + } else if (jsonData.code === 402) { + $errTip.removeClass('hide'); } else { - iSpeed += -i * $iWidth; - isMoving = true; + $errTip.addClass('hide'); + alert(jsonData.message); } - - $ul.stop().animate({ - left: iSpeed - }, 300, function() { - isMoving = false; - }); }); } -//订单分类 -$('.bag').find('ul').each(function() { - var $pre = $(this).parent().parent().find('.pre'); - var $next = $(this).parent().parent().find('.next'); - - var $iWidth = $(this).find('li').eq(0).width(); - var $length = $(this).find('li').size(); - var $ulWidth = $iWidth * $length; +$('#next-step-btn').click(function() { + sendVerifyMsg(); + $relateMain.addClass('hide'); + $errTip.addClass('hide'); + $codeValidate.removeClass('hide'); +}); - $(this).css('width', $ulWidth); - if ($length > 5) { - $pre.show(); - $next.show(); - lunBo($pre, $next, $(this), $iWidth); - } else { - $pre.hide(); - $next.hide(); +$codeValidate.on('keydown', '.msg-code', function(e) { + if (e.keyCode === 13) { + relateMobile(); + return false; } +}); +$codeValidate.on('click', '.get-code', function() { + sendVerifyMsg(); }); - + +$codeValidate.on('click', '.perv-step', function() { + circleTime.clearTime(); + $relateMain.removeClass('hide'); + $codeValidate.addClass('hide'); + $msgCode.val(''); +}); + +$('#relate-btn').click(function() { + relateMobile(); }); -define("js/home/favorite", ["jquery","handlebars","source-map","dot"], function(require, exports, module){ +}); +define("js/cart/cart", ["jquery","handlebars","source-map"], function(require, exports, module){ /** - * 我的收藏 - * @author: xuqi<qi.xu@yoho.cn> - * @date: 2016/2/23 + * @description: 购物车 + * @author: chenglong.wang@yoho.cn + * @tips: 购物车的商品计价在服务端处理,客户端只要在每次操作后刷新页面重新渲染就可以了 */ -var $ = require("jquery"), - Handlebars = require("handlebars"); - -var phoneReg = require("js/passport/mail-phone-regx").phoneRegx['+86']; - -var clockTxt = { - on: '[ 降价通知 ]', - off: '[ 取消通知 ]' -}; - -var param = location.href.match(/type=(.*)[&]*/), - favType; - -var curSkn; +var $ = require("jquery"); +var Handlerbars = require("handlebars"); +var dialog = require("js/common/dialog"); -var $curClock; +var Confirm = dialog.Confirm; +var Alert = dialog.Alert; -require("dot"); +var $cartnewSum = $('.cartnew-sum'), + $cartnewTips = $('.cartnew-tips'), + $payWapper = $('.pay-wapper'), + $goodsDetail = $('.goods-detail'), + $histroy = $('.histroy'), + $together = $('.together'), + $shopCart = $('.shop-cart'), + togetherProductSource, + togetherProductTemplate, + togetherProductStr, + subjoinPage, + subjoinPageNum, + subjoinPageAll, + pageDom, + selected, + pageNum = 1, + delUrl, + count, + countJSON, + dataJSON, + pacList = 0, + shopNum = 1, + shopNumAll, + productSku, + promotionId, + promotionPrice, + yetCollect, + collect, + content, + productId, + shopName, + delNum, + understock, + selectArray = [], + PromotionArray = [], + perList = false, + commonList = false, + hasPromotion = false, + htmlInfo, + shopJson, + oldprice, + wapperPrice, + countBusy = false; -//商品收藏 -(function() { - var $defaultSorts, - $allSorts; - var $bodyMask, - $noticeNum, - $priceNotice, - $noticeContent, - $noticeSuccess, - $noticeErrorMsg, - $noticeSubOrCancel, - $phone; +// 关闭温馨提示 +$cartnewTips.find('.btn_close').click(function() { + $cartnewTips.fadeOut(); +}); - var reduction = {}, - noticeNum; +// checkbox提交ajax +function choiceOut(data) { + $.ajax({ + type: 'POST', + dataType: 'json', + url: '/cart/index/select', + data: data, + beforeSend: function() { + $('.loading').css({ + top: $(document).scrollTop() + 200 + }); + $('.loading').show(); + } + }).then(function(d) { + if (d.code === 200) { + window.history.go(0); + } + }); +} - // 同步订阅数量 - function syncSubscribeNum(num) { - noticeNum = num * 1; - $noticeNum.text(num); - $noticeSuccess.find('.notice-num').text(5 - num); +//单选提交 +$payWapper.one('click', '.common-sell-box input[type="checkbox"], .pre-sell-box input[type="checkbox"]', function() { + selected = $(this).attr('checked') ? 'Y' : 'N'; + selectArray = []; + selectArray.push({ + product_sku: $(this).parents('tr').data('id'), + selected: selected, + buy_number: $(this).parents('tr').data('productnum'), + goods_type: $(this).parents('tr').data('goodstype'), + promotion_id: $(this).parents('tr').data('promotionid') ? $(this).parents('tr').data('promotionid') : 0 + }); + if ($(this).parents('tr').promotion_id) { + hasPromotion = true; + } else { + hasPromotion = false; } + dataJSON = { + skuList: JSON.stringify(selectArray), + hasPromotion: hasPromotion + }; + choiceOut(dataJSON); +}); + +//多选提交 +$cartnewSum.one('click', 'input[type="checkbox"]', function() { + selectArray = []; + shopJson = {}; + dataJSON = {}; + selected = $(this).attr('checked') ? 'Y' : 'N'; + $('.pay-wapper:first tr').each(function() { + if ($(this).data('promotionid')) { + hasPromotion = true; + } + if ($(this).data('id')) { + selectArray.push({ + product_sku: $(this).data('id'), + selected: selected, + buy_number: $(this).data('productnum'), + goods_type: $(this).data('goodstype'), + promotion_id: $(this).data('promotionid') ? $(this).data('promotionid') : 0 + }); + } + }); + dataJSON = { + skuList: JSON.stringify(selectArray), + hasPromotion: hasPromotion + }; + choiceOut(dataJSON); +}); - //关闭价格订阅弹窗和蒙层 - function closeNoticeBox() { - $bodyMask.addClass('hide'); - $priceNotice.addClass('hide'); +// 滚动到第一个选中的商品 +function scrollToFirst() { + var $selected = $('.pay-wapper tbody tr').find('.cart-item-check:checked'); + var top = 0; - //重置头部文字 - $noticeSubOrCancel.text('订阅成功'); + if ($selected.length > 0) { + $selected = $selected.eq(0); } - //显示价格订阅弹窗和蒙层 - function showNoticeBox() { - var top = $(document).scrollTop() + $(window).height() / 2; - - if (typeof $bodyMask === 'undefined') { - $('body').append('<div class="body-mask hide"></div>'); - $bodyMask = $('.body-mask'); + top = $selected.offset().top - 36; + $('html,body').scrollTop(top); + return false; +} +function isCheck(obj, className) { + selectArray = []; + dataJSON = {}; + selected = obj.attr('checked') ? 'Y' : 'N'; + $('.' + className).each(function() { + if ($(this).data('promotionid')) { + hasPromotion = true; + } else { + hasPromotion = false; } + if ($(this).data('id')) { + selectArray.push({ + product_sku: $(this).data('id'), + selected: selected, + buy_number: $(this).data('productnum'), + goods_type: $(this).data('goodstype'), + promotion_id: $(this).data('promotionid') ? $(this).data('promotionid') : 0 + }); + } + }); + dataJSON = { + skuList: JSON.stringify(selectArray), + hasPromotion: hasPromotion + }; + choiceOut(dataJSON); +} - $bodyMask.css({ - height: $(document).height(), - width: $(document).width() - }).removeClass('hide'); - - $priceNotice.removeClass('error'); +$('.per-list').on('click', 'input[type="checkbox"]', function() { + isCheck($(this), 'pre-sell-box'); +}); - if ($curClock.hasClass('noticed')) { +$('.common-list').on('click', 'input[type="checkbox"]', function() { + isCheck($(this), 'common-sell-box'); +}); - //取消降价通知 - $.ajax({ - type: 'GET', - url: '/home/favorite/cancelnotice', - data: { - id: curSkn - } - }).then(function(data) { - if (data.code === 200) { - syncSubscribeNum(data.data.num); - $noticeContent.addClass('hide'); - $noticeSuccess.removeClass('hide'); - $noticeSubOrCancel.text('取消成功'); - $priceNotice.removeClass('hide').css({ - top: top - }); +// 凑单商品,最近浏览异步加载 +togetherProductSource = $('#togetherProduct').html(); +togetherProductTemplate = Handlerbars.compile(togetherProductSource); - if ($curClock.closest('.reduction-products').length > 0) { - $curClock.closest('.fav-good').remove(); - } else { - $curClock.removeClass('noticed').text(clockTxt.on); - } - } else { - if (data.message) { - $noticeErrorMsg.text(data.message); - $priceNotice.removeClass('hide').addClass('error').css({ - top: top - }); - } +function getTogetherProduct($obj, url, page) { + $.ajax({ + type: 'GET', + dataType: 'json', + url: url, + data: page + }).then(function(d) { + if (d.code === 200) { + if (d.data.item) { + if (d.data.item.length > 0) { + $obj.html(' '); + togetherProductStr = togetherProductTemplate(d.data); + $obj.append($(togetherProductStr)); + $('#orderProduct li:last').addClass('end'); + $('.gift').removeClass('none'); } - }); - } else { - if (noticeNum >= 5) { - $noticeErrorMsg.text('您的订阅数已经到达上限'); - $priceNotice.removeClass('hide').addClass('error').css({ - top: top - }); - } else { - $noticeContent.removeClass('hide'); - $noticeSuccess.addClass('hide'); - $priceNotice.removeClass('hide').css({ - top: top - }); } } + }); +} - } - - if ($('.fav-products').length === 0) { - return; - } - - $defaultSorts = $('.default-sorts'); - $allSorts = $('.all-sorts'); - - $noticeNum = $('.reduction-notice span'); - - $priceNotice = $('.price-notice'); - - $noticeContent = $('#price-notice .content'); - $noticeSuccess = $('#price-notice .success'); - $noticeErrorMsg = $('#price-notice .error-message'); - $noticeSubOrCancel = $noticeSuccess.find('.subscribe-or-cancel'); - $phone = $('#notice-phone-num'); - - reduction.phone = $phone.val(); - reduction.change = false; - - noticeNum = $noticeNum.text() * 1; +// 为你优选 +getTogetherProduct($histroy, '/cart/index/getRecommendProduct'); - //展开分类 - $('#spread-sort').click(function() { - $defaultSorts.slideUp(function() { - $allSorts.slideDown(); - }); - }); +// 凑单商品 +getTogetherProduct($together, '/cart/index/getTogetherProduct'); - //收起分类 - $('#retract-sort').click(function() { - $allSorts.slideUp(function() { - $defaultSorts.slideDown(); - }); +//凑单商品翻页 +$together.on('click', '.pagenext, .pageprev', function() { + getTogetherProduct($together, '/cart/index/getTogetherProduct', { + page: Math.ceil(Math.random() * 100) + 1 }); - //降价通知 - $('.price-down-clock').click(function() { - $curClock = $(this); - curSkn = $curClock.closest('.fav-good').data('id'); - showNoticeBox(); - }); +}); - //checkbox【手动触发checkbox点击后跳转链接的地址】 - $('.reduction-filter input[type="checkbox"]').change(function() { - location.href = $(this).parent().attr('href'); - }); +//凑单商品,为你优选商品商品折叠 +$shopCart.on('click', '.icon-minus, .icon-add', function() { + if ($(this).hasClass('icon-minus')) { + $(this).parents('.title').next('.main').hide(); + $(this).parents('h2').next('.right').hide(); + } else { + $(this).parents('.title').next('.main').show(); + $(this).parents('h2').next('.right').show(); + } + $(this).siblings('i').toggleClass('none'); + $(this).toggleClass('none'); - //降价通知确定按钮 - $('#price-notice').on('click', '.close', function() { - closeNoticeBox(); - }).on('click', '.price-notice-sure', function() { - var phone, - errTxt; +}); - if (!$priceNotice.hasClass('error') && !$noticeContent.hasClass('hide')) { +// 最近浏览翻页 +$histroy.on('click', '.pagenext, .pageprev', function() { + if ($(this).hasClass('pagenext')) { + if (pageNum !== 5) { + pageNum++; + } else { + pageNum = 1; + } + } else { + --pageNum > 0 || (pageNum = 1); + } + getTogetherProduct($histroy, '/cart/index/getRecommendProduct', { + page: pageNum + }); - //订阅到手机号 - phone = $.trim($phone.val()); +}); - if (phone === '' || !phoneReg.test(phone)) { - errTxt = phone === '' ? '请输入手机号码' : '手机号码格式不正确'; - $phone.addClass('error'); - $('#price-notice .err-text').removeClass('hide').find('em').html(errTxt); - return; - } else { - $phone.removeClass('error'); - $('#price-notice .err-text').addClass('hide'); - } +//根据id获取商品信息 +function productInfo(data) { + $.ajax({ + type: 'GET', + dataType: 'html', + url: '/cart/index/getProductInfo', + data: data + }).then(function(d) { + pacList = 0; + $goodsDetail.html(' '); + $goodsDetail.append(d); + $goodsDetail.show(); + $('.detail-bigpic:not(.none) .con li:first').addClass('active'); - if (reduction.phone !== '' && reduction.phone !== phone && !reduction.change) { - $('#price-notice .phone-diff').removeClass('hide'); - reduction.change = true; - return; + if ($('.showSizeBox:not(.none) span').length < 2) { + $('.showSizeBox:not(.none) span:first').addClass('atcive'); + } + if (Number($('#addToCart').val()) !== 1) { + $('.showSizeBox span').data('num', 0); + } + $.each($('.showSizeBox span'), function() { + if ($(this).data('num') <= 0) { + $(this).addClass('null-atcivec'); + console.log($('.showSizeBox:not(.none) span:first')); + $('.showSizeBox:not(.none) span:first').removeClass('atcive'); } + }); - $.ajax({ - type: 'GET', - url: '/home/favorite/notice', - data: { - mobile: phone, - id: curSkn - } - }).then(function(data) { - if (data.code === 200) { - syncSubscribeNum(data.data.num); - $noticeSuccess.removeClass('hide'); - $noticeContent.addClass('hide'); + if (typeof promotionPrice !== 'undefined') { + oldprice = $('.detail-info .oldprice del').html() ? $('.detail-info .oldprice del').html() : wapperPrice; + htmlInfo = '<span class="oldprice">现价:<del>' + oldprice + '</del></span>' + + '<span class="newprice">活动价:<b class="promotion-price">' + promotionPrice + '</b></span>'; + $('.detail-info .price').html(htmlInfo); + } - reduction.phone = phone; - reduction.change = false; - $('#price-notice .phone-diff').addClass('hide'); + $('.detail-bigpic:not(.none) .bigpic:gt(0)').hide(); - //切换商品通知文字 - $curClock.toggleClass('noticed').text(clockTxt.off); - } else { - if (data.message) { - $noticeErrorMsg.text(data.message); - $priceNotice.removeClass('hide').addClass('error'); - } - } - }); - } else { + $('.showSizeBox:not(.none)').find('span').each(function() { + if ($(this).hasClass('null-atcivec')) { + $('.addcart').addClass('none'); + $('.btn_sellout').removeClass('none'); + } else { + $('.addcart').removeClass('none'); + $('.btn_sellout').addClass('none'); + return false; + } + }); - //关闭窗口 - closeNoticeBox(); - } }); +} - //商品可参加活动 - $('.has-activity').click(function() { - var $this = $(this), - $activites = $this.next('.activites'), - $li = $this.closest('li'); +function removeInfo() { + $goodsDetail.html(' '); + $goodsDetail.css({ + top: $(document).scrollTop() + 30, + left: $(document).width() / 2 - $goodsDetail.width() / 2 + }); - if ($activites.hasClass('hide')) { +} - //显示 - $activites.removeClass('hide'); - $li.css('padding-bottom', $activites.outerHeight()); - } else { +//显示加价购商品信息 +$payWapper.on('click', '.cart-add-btn', function() { + productId = $(this).data('id'); + promotionId = $(this).parents('table').data('promotion'); + promotionPrice = $(this).parents('table').find('.subjoin-price').html(); + wapperPrice = $(this).parents('table').find('.wapper-price').html(); + removeInfo(); + productInfo({ + productId: productId + }); +}); - //隐藏 - $activites.addClass('hide'); - $li.css('padding-bottom', ''); - } +//凑单商品,为你优选商品商品记录 +$('.clearfix').on('click', '.btn_view_s', function() { + productId = $(this).data('id'); + promotionId = $(this).parents('table').data('promotion'); + promotionPrice = $(this).parents('table').find('.subjoin-price').html(); + removeInfo(); + productInfo({ + productId: productId }); -}()); +}); +//关闭商品信息窗口 +$goodsDetail.on('click', '.colse', function() { + $goodsDetail.hide(); + $goodsDetail.html(' '); + shopNum = 1; +}); -//品牌收藏 -(function() { - var naTpl; - var naCache = {}; +//展开加价购商品列表 +function fold(icon) { + icon.addClass('none').siblings('i').removeClass('none'); + icon.parents('.cart-product-num').siblings('div').toggleClass('fold'); + icon.siblings('.unfold-color').toggleClass('none'); + icon.siblings('.cart-page').toggleClass('none'); +} - /** - * 翻页控制 - * @param $li 当前品牌容器 - * @param flag 翻页方向/-1-pre 1-next - */ - function pageControll($li, flag) { - var id = $li.data('id'), - $ul = $li.find('.na-goods-ul'), - theCache = naCache[id], - curPage = theCache.cur ? theCache.cur : 1, - page = Math.ceil(theCache.total / 5); +$payWapper.on('click', '.icon-minusCart, .icon-addCart', function() { + fold($(this)); +}); - var $pre = $li.find('.na-pre'); - var $next = $li.find('.na-next'); - curPage += flag; +$payWapper.on('click', '.unfold-color', function() { + fold($(this)); + $(this).siblings('.icon-minusCart').removeClass('none'); + $(this).siblings('.icon-addCart').addClass('none'); +}); - //初始 - $pre.removeClass('hidden'); - $next.removeClass('hidden'); +//加价购商品分页 +$payWapper.on('click', '.cart-btn-next', function() { + subjoinPage = $(this).siblings('p').find('.f-red'); + subjoinPageAll = Number($(this).siblings('p').find('.subjoinPageNum').html()); + subjoinPageNum = Number(subjoinPage.html()); + subjoinPage.html(subjoinPageNum + 1); + if (subjoinPageNum >= subjoinPageAll - 1) { + $(this).hide(); + } else { + $(this).siblings('i').show(); + } + pageDom = $(this).parents('.cart-product-num').siblings('div').find('table'); + pageDom.addClass('none').eq(subjoinPageNum).removeClass('none'); +}); - //第一页 - if (curPage === 1) { - $pre.addClass('hidden'); +$payWapper.on('click', '.cart-btn-pre', function() { + subjoinPage = $(this).siblings('p').find('.f-red'); + subjoinPageAll = Number($(this).siblings('p').find('.subjoinPageNum').html()); + subjoinPageNum = Number(subjoinPage.html()); + subjoinPage.html(subjoinPageNum - 1); + if (subjoinPageNum <= 2) { + $(this).hide(); + } else { + $(this).siblings('i').show(); + } + pageDom = $(this).parents('.cart-product-num').siblings('div').find('table'); + pageDom.addClass('none').eq(subjoinPageNum - 2).removeClass('none'); +}); + +//删除购物车商品,把删除的商品移入cookie中 +function cartDel(data, delUrl, cookieList) { + $.ajax({ + type: 'POST', + dataType: 'json', + url: delUrl, + data: dataJSON, + beforeSend: function() { + $('.loading').css({ + top: $(document).scrollTop() + 200 + }); + $('.loading').show(); + } + }).then(function(d) { + if (d.code === 200) { + if (cookieList) { + window.setCookie('cart-del-list', JSON.stringify(cookieList), { + domain: '.yohobuy.com', + path: '/' + }); + } + window.history.go(0); + } else if (d.code === 300) { + $('.loading').hide(); + new Alert(d.message).show(); + } else if (d.code === 403) { + if (d.data.url) { + window.location = d.data.url; + } } + }); +} - //最后一页 - if (curPage === page) { - $next.addClass('hidden'); +//商品信息弹出框,加入收藏夹 +$goodsDetail.on('click', '.fav_count', function() { + $.ajax({ + type: 'POST', + dataType: 'json', + url: '/product/item/togglecollect', + data: { + productId: productId, + type: 'add' } + }).then(function(d) { + if (d.code === 200) { + new Alert(d.message).show(); + } else if (d.code === 403) { + if (d.data.url) { + window.location = d.data.url; + } + } else { + new Alert(d.message).show(); + } + }); +}); - $ul.animate({ - marginLeft: -(curPage - 1) * $ul.parent('.na-goods').width() - }, 200); - theCache.cur = curPage; +//删除商品 +$payWapper.on('click', '.cart-del-btn', function() { + dataJSON = {}; + selectArray = []; + promotionId = $(this).parents('tr').data('promotionid') ? $(this).parents('tr').data('promotionid') : 0; + selectArray.push({ + product_sku: $(this).parents('tr').data('id'), + buy_number: $(this).parents('tr').data('productnum'), + promotion_id: promotionId + }); + + if (promotionId) { + hasPromotion = true; + } else { + hasPromotion = false; + } + + dataJSON = { + skuList: JSON.stringify(selectArray), + hasPromotion: hasPromotion + }; + content = '<div><span></span>删除商品</div>' + + '<p>确定从购物车中删除此商品?</p>'; + if (!$(this).data('gift')) { + countJSON = { + productPrice: $(this).parents('tr').find('.productPrice').text(), + productTitle: $(this).parents('tr').find('.pay-pro-info a').text(), + link: $(this).parents('tr').find('.pay-pro-info a').attr('href'), + productNum: $(this).parents('tr').data('productnum'), + productSku: $(this).parents('tr').data('id'), + promotionId: $(this).parents('tr').data('promotionid') + }; } + delUrl = '/cart/index/remove'; + new Confirm({ + content: content, + cb: function() { + cartDel(dataJSON, delUrl, countJSON); + } + }).show(); +}); - function setListPadding($li, $naList) { - $li.css('padding-bottom', $naList.outerHeight() + 10); - } +//移入收藏夹 +$payWapper.on('click', '.cart-remove-btn', function() { + dataJSON = {}; + selectArray = []; + promotionId = $(this).parents('tr').data('promotionid') ? $(this).parents('tr').data('promotionid') : 0; + selectArray.push({ + product_sku: $(this).parents('tr').data('id'), + buy_number: $(this).parents('tr').data('productnum'), + promotion_id: promotionId + }); - if ($('.fav-brands').length === 0) { - return; + if (promotionId) { + hasPromotion = true; + } else { + hasPromotion = false; } - naTpl = Handlebars.compile($('#na-tpl').html()); - - // 新品到着【重要信息:最多显示20个新品到着商品】 - $('.na-trigger').click(function() { - var $this = $(this), - $naList = $this.next('.na-list'), - $li = $this.closest('li'), - id; - - if (!$naList.hasClass('hide')) { - $naList.addClass('hide'); - $li.css('padding-bottom', ''); - return; - } - - id = $li.data('id'); + dataJSON = { + skuList: JSON.stringify(selectArray), + hasPromotion: hasPromotion + }; - if (naCache[id] && naCache[id].cache) { - $naList.removeClass('hide'); - setListPadding($li, $naList); - return; - } + cartDel(dataJSON, '/cart/index/fav'); +}); - $.ajax({ - type: 'GET', - url: '/home/favorite/newproduct', - data: { - id: id +//批量删除商品 +$cartnewSum.on('click', '.delAll', function() { + dataJSON = {}; + countJSON = {}; + selectArray = []; + PromotionArray = []; + $('.pay-wapper:first tr').each(function() { + if ($(this).find('input[type="checkbox"]').attr('checked')) { + promotionId = $(this).data('promotionid') ? $(this).data('promotionid') : 0; + if (promotionId) { + hasPromotion = true; } - }).then(function(data) { - var html, - res, - tplData; - - if (data.code === 200) { - res = data.data; - tplData = res.length === 0 ? {} : { - naGoods: res + if ($(this).data('id')) { + if ($(this).find('input[type="checkbox"]').attr('checked')) { + selectArray.push({ + product_sku: $(this).data('id'), + buy_number: $(this).data('productnum'), + promotion_id: promotionId + }); + } + countJSON = { + productPrice: $(this).find('.productPrice').text(), + productTitle: $(this).find('.pay-pro-info a').text(), + link: $(this).find('.pay-pro-info a').attr('href'), + productNum: $(this).data('productnum'), + productSku: $(this).data('id'), + promotionId: $(this).data('promotionid') }; - html = naTpl(tplData); - - $naList.removeClass('hide').find('.na-content').html(html); - setListPadding($li, $naList); - - //初始,判断是否显示Next翻页 - if (res.length > 5) { - $li.find('.na-next').removeClass('hidden'); + PromotionArray.push(countJSON); + } + } + }); + delUrl = '/cart/index/remove'; + content = '<div><span></span>删除商品</div>' + + '<p>确定从购物车中删除所有选中商品?</p>'; + dataJSON = { + skuList: JSON.stringify(selectArray), + hasPromotion: hasPromotion + }; + if (!$.isEmptyObject(selectArray)) { + new Confirm({ + content: content, + cb: function() { + cartDel(dataJSON, delUrl, PromotionArray); } + }).show(); + } else { + new Alert('请至少选择一件商品').show(); + } +}); - if (!naCache[id]) { - naCache[id] = {}; - } +//批量移入收藏夹商品 +$cartnewSum.on('click', '.removeAll', function() { + dataJSON = {}; + countJSON = {}; + selectArray = []; + $('.pay-wapper:first tr').each(function() { + if ($(this).find('input[type="checkbox"]').attr('checked')) { + promotionId = $(this).data('promotionid') ? $(this).data('promotionid') : 0; + if (promotionId) { + hasPromotion = true; + } - naCache[id].cache = true;//set cache - naCache[id].total = res.length; + if ($(this).data('id')) { + if ($(this).find('input[type="checkbox"]').attr('checked')) { + selectArray.push({ + product_sku: $(this).data('id'), + buy_number: $(this).data('productnum'), + promotion_id: promotionId + }); + } } - }); + } }); + dataJSON = { + skuList: JSON.stringify(selectArray), + hasPromotion: hasPromotion + }; + if (!$.isEmptyObject(selectArray)) { + cartDel(dataJSON, '/cart/index/fav'); + } else { + new Alert('请至少选择一件商品').show(); + } +}); - $('.na-content').on('click', '.na-pre, .na-next', function() { - var $this = $(this); - - var flag = $this.hasClass('na-pre') ? -1 : 1; - - pageControll($this.closest('.fav-brand'), flag); +//购物车商品增减 +function countAJAX(data) { + countBusy = true; + $.ajax({ + type: 'POST', + dataType: 'json', + url: '/cart/index/modify', + data: data + }).then(function(d) { + if (d.code === 200) { + window.history.go(0); + } + countBusy = false; }); -}()); +} -//文章收藏 -(function() { - if ($('.fav-articles').length < 0) { - return; +$payWapper.on('click', '.minus, .plus', function() { + countJSON = {}; + count = $(this).hasClass('minus') ? 'decreaseNum' : 'increaseNum'; + countJSON['' + count] = 1; + if (countBusy || ($(this).siblings('input').val() === '1' && $(this).hasClass('minus'))) { + return false; } - $('.fav-articles .desc').dotdotdot(); -}()); - -if (param && param.length) { - favType = param[1]; -} - -//全选【通用】 -$('#me-checkall').click(function() { - $('.checkbox input[type="checkbox"]').prop('checked', $(this).prop('checked')); + countAJAX($.extend(countJSON, + { + sku: $(this).parents('tr').data('id') + } + )); }); -//删除收藏 -$('.del-favorite').click(function(e) { - var id = $(this).closest('.fav-row').data('id'), - shopid = $(this).closest('.fav-row').data('shopid'), - brandorshoptype = $(this).closest('.fav-row').data('brandorshoptype'); +$('.gift').on('click', '.up, .down', function() { + $(this).siblings('i').toggleClass('none'); + $(this).toggleClass('none'); +}); - e.preventDefault(); +//加入购物车 +function addcart(data, cookieList) { $.ajax({ - type: 'GET', - url: '/home/favorite/cancel', - data: { - id: id, - shopid: shopid, - brandorshoptype: brandorshoptype, - type: favType + type: 'POST', + url: '/cart/index/add', + data: data + }).then(function(d) { + if (d.code === 200) { + window.history.go(0); + if (cookieList) { + window.setCookie('cart-del-list', JSON.stringify(cookieList), { + domain: '.yohobuy.com', + path: '/' + }); + } + } else if (d.code === 500) { + new Alert(d.message).show(); } - }).then(function(data) { - if (data.code === 200) { - history.go(0); + }); +} + +$goodsDetail.on('click', '.addcart', function() { + if ($('.showSizeBox:not(.none) .atcive').length !== 0) { + shopNumAll = $('.showSizeBox:not(.none) .atcive').data('num'); + productSku = $('.showSizeBox:not(.none) .atcive').data('sku'); + dataJSON = { + productSku: productSku, + buyNumber: $('#mnum').val(), + promotionId: promotionId + }; + } else { + new Alert('请选择尺码').show(); + return false; + } + + if ($('#mnum').val() > shopNumAll) { + new Alert('库存不足,目前还有' + shopNumAll + '个库存').show(); + } else { + if (Number($('#addToCart').val()) === 1) { + addcart(dataJSON); + } else { + new Alert('该商品无法加入购物车').show(); } - }); + } }); -//删除多个商品/品牌/文章【通用】 -$('#me-del-checked').click(function() { - var ids = [], - name = '商品'; +$goodsDetail.on('click', '.cut, .add', function() { + count = $(this).hasClass('minus') ? 'decreaseNum' : 'increaseNum'; + if (promotionId) { + if ($(this).hasClass('cut')) { + new Alert('-_-,已经是最后一件,不能在减了!').show(); + } else { + new Alert('最多只能购买1,您好像购买的太多了!').show(); + } + } else { + if ($(this).hasClass('add')) { + shopNum++; + } else { + shopNum--; + } + if (shopNum < 1) { + new Alert('-_-,已经是最后一件,不能在减了!').show(); + shopNum = 1; + return false; + } - if (favType === 'brand') { - name = '品牌'; - } else if (favType === 'article') { - name = '文章'; + $('#mnum').val(shopNum); } - if (confirm('您确定要删除您收藏的' + name + '吗?')) { - $('.checkbox input[type="checkbox"]:checked').each(function() { - ids.push($(this).closest('.fav-row').data('id')); - }); +}); - if (ids.length === 0) { - alert('请选中您要移除的' + name); - return; +$goodsDetail.on('click', '.color', function() { + pacList = 0; + $('.color').find('p').removeClass('atcive'); + $(this).find('p').addClass('atcive'); + $('.showSizeBox').addClass('none').eq($(this).index()).removeClass('none'); + if ($('.showSizeBox:not(.none) span').length < 2) { + $('.showSizeBox:not(.none) span:first').addClass('atcive'); + } + $('.detail-bigpic').addClass('none').eq($(this).index()).removeClass('none'); + $('.detail-bigpic').eq($(this).index()).find('.bigpic').hide(); + $('.detail-bigpic').eq($(this).index()).find('.bigpic:first').show(); + $('.detail-bigpic').eq($(this).index()).find('.con li').removeClass('active'); + $('.detail-bigpic').eq($(this).index()).find('.con li:first').addClass('active'); + $('.showSizeBox').eq($(this).index()).find('span').each(function() { + if ($(this).hasClass('null-atcivec')) { + $('.addcart').addClass('none'); + $('.btn_sellout').removeClass('none'); + } else { + $('.addcart').removeClass('none'); + $('.btn_sellout').addClass('none'); + return false; } + }); +}); - $.ajax({ - type: 'GET', - url: '/home/favorite/cancel', - data: { - id: ids.join(','), - type: favType - } - }).then(function(data) { - if (data.code === 200) { - history.go(0); - } - }); +$goodsDetail.on('click', '.showSizeBox span', function() { + shopNumAll = $(this).data('num'); + if ($(this).data('num') > 0) { + $('.showSizeBox:not(.none) span').removeClass('atcivec atcive').eq($(this).index()).addClass('atcive'); + $('.addcart').removeClass('none'); + $('.btn_sellout').addClass('none'); + } else { + $('.showSizeBox:not(.none) span').removeClass('atcivec atcive').eq($(this).index()).addClass('atcivec'); + $('.addcart').addClass('none'); + $('.btn_sellout').removeClass('none'); } }); -if (location.href.match(/is_reduction=(.*)[&]*/)) { - $('.reductionChecked').attr('checked', true); -} -if (location.href.match(/is_promotion=(.*)[&]*/)) { - $('.activityChecked').attr('checked', true); -} -}); -define("js/home/currency", ["jquery"], function(require, exports, module){ -/** - * 我的YOHO币 - * @author: xuqi<qi.xu@yoho.cn> - * @date: 2016/3/22 - */ - -var $ = require("jquery"); - -$('.filter-select').change(function() { - location.href = $(this).val(); -}); -}); -define("js/home/returns", ["jquery","handlebars","source-map"], function(require, exports, module){ -/** - * 我的退/换货 - * @author: yyqing<yanqing.yang@yoho.cn> - * @date: 2016/2/26 - */ - -require("js/home/returns-detail"); -require("js/home/returns-apply"); -}); -define("js/home/returns-detail", ["jquery"], function(require, exports, module){ -/** - * 退换货详情 - * @author: yyqing<yanqing.yang@yoho.cn> - * @date: 2016/2/26 - */ - -var $ = require("jquery"); - -var $returnState = $('.visual-return-state li'), - $detail = $('.detail-container'), - $courierCode = $('.courier-code'), - $expressCompany = $('#express-company'), - $expressNumber = $('#express-number'), - $expressViewBox = $('.express-view-box > span'); - -var returnId = $('#return-id').val(), - expId = $('#express-old-id').val(), - expNumber = $expressNumber.val(), - expCompany = '', - expList = {}, - isChange = false; - -function syncExpressInfo() { - expCompany = expList[expId] ? expList[expId] : ''; - $expressViewBox.html(expCompany + ' 快递单号:' + expNumber); - $expressCompany.val(expId); - $expressNumber.val(expNumber); -} - -function validateExpress() { - var send = {}; +//撤销删除 +$('.goBack').on('click', function() { + dataJSON = {}; + delNum = $('.dev-revocation .goBack').index(this); + selectArray = []; + $('.dev-revocation tr').each(function(index) { + if (delNum !== index) { + countJSON = { + productPrice: $(this).find('.productPrice').text(), + productTitle: $(this).find('.title').text(), + link: $(this).find('.title').attr('href'), + productNum: $(this).data('productnum'), + productSku: $(this).data('productsku'), + promotionId: $(this).data('promotionid') + }; + selectArray.push(countJSON); + } + }); + dataJSON = { + productSku: $(this).parents('tr').data('productsku'), + promotionId: $(this).parents('tr').data('promotionid'), + buyNumber: $(this).parents('tr').data('productnum') + }; + addcart(dataJSON, selectArray); +}); - send.number = $expressNumber.val(); - send.id = $expressCompany.val() * 1; +$goodsDetail.on('click', '.piclist li', function() { + pacList = $(this).index(); + $('.detail-bigpic:not(.none) .piclist li').removeClass('active'); + $(this).addClass('active'); + $('.detail-bigpic:not(.none) .bigpic').hide().eq($(this).index()).show(); +}); - if (!send.id) { - alert('请选择快递公司'); - } else if (!send.number) { - alert('请填入快递单号'); +function isSollect() { + $('.gift-wrapper .fold').show(); + if ($('.pre-sell-box input:checked').length === $('.pre-sell-box input[type="checkbox"]').length) { + $('.per-list input[type="checkbox"]').attr('checked', true); + } + if ($('.common-sell-box input:checked').length === $('.common-sell-box input[type="checkbox"]').length) { + $('.common-list input[type="checkbox"]').attr('checked', true); + } + if ($('.common-list input[type="checkbox"]').attr('checked')) { + commonList = true; + } + if ($('.per-list input[type="checkbox"]').attr('checked')) { + perList = true; + } + if ($('.per-list').length !== 0 && $('.common-list').length !== 0) { + if (commonList && perList) { + $('.batch_div input[type="checkbox"]').attr('checked', true); + } } else { - return send; + if (commonList || perList) { + $('.batch_div input[type="checkbox"]').attr('checked', true); + } } - return false; -} - -function sendExpressCode() { - var sendParm = validateExpress(); + $('.cart-page').each(function() { + if ($(this).data('pageall') === 1) { + $('.cart-btn-pre', this).hide(); + $('.cart-btn-next', this).hide(); + } else { + $('.cart-btn-pre', this).hide(); + } + }); - if (!sendParm) { - return; + if ($('.pre-sell-box input:checked').length > 0 && $('.common-sell-box input:checked').length > 0) { + $('.go_cash_tips').show(); + $('.btn_account_disabled').show(); + $('.btn_account').hide(); + } else { + $('.go_cash_tips').hide(); + $('.btn_account').show(); + $('.btn_account_disabled').hide(); } + $('.pay-wapper tr').each(function() { + if ($(this).data('pid')) { + selectArray.push($(this).data('pid') + ''); + } + + }); $.ajax({ type: 'POST', - url: '/home/returns/setExpressNumber', + url: '/cart/index/checkFav', data: { - id: returnId, - isChange: isChange, - expressId: sendParm.id, - expressNumber: sendParm.number, - expressCompany: expList[sendParm.id] - } - }).then(function(jsonData) { - if (jsonData.code === 200) { - expId = sendParm.id; - expNumber = sendParm.number; - $returnState.eq(2).addClass('act'); - } else { - alert(jsonData.message); + pidList: JSON.stringify(selectArray) } - syncExpressInfo(); - $courierCode.removeClass('in-edit'); + }).then(function(d) { + yetCollect = '<span class="cart-yetremove-btn">已收藏</span>'; + collect = '<a href="javascript:void(0);" class="cart-remove-btn"><span>移入收藏</span></a>'; + $.each(d.data, function(key, val, index) { + $('.pay-wapper tr').each(function() { + if (Number($(this).data('pid')) === Number(key)) { + if (val) { + $(this).find('.cart-operation').append(yetCollect); + } else { + $(this).find('.cart-operation').append(collect); + } + } + }); + }); }); } -if ($detail.parent().hasClass('exchange-detail')) { - isChange = true; -} - -$expressCompany.val(expId); +isSollect(); -$detail.find('.company-list').each(function() { - var data = $(this).data(); +$goodsDetail.on('click', '.pre, .next', function() { + if ($(this).hasClass('next')) { + if (pacList >= $(this).siblings('.con').find('li').length - 1) { + return false; + } + pacList++; + } else { + if (pacList < 1) { + return false; + } + pacList--; + } + $(this).siblings('.con').find('li').removeClass('active').eq(pacList).addClass('active'); + $('.detail-bigpic:not(.none) .bigpic').hide().eq(pacList).show(); +}); - expList[data.id] = data.name; +//结算 +$('.btn_account').on('click', function() { + understock = ''; + if ($('.pay-wapper input:checked').parents('tr').find('.tipNoStore').length > 0) { + shopName = $('.pay-wapper input:checked').parents('tr').find('.tipNoStore'); + $.each(shopName.parents('tr').find('.pay-pro-info a'), function() { + understock += $(this).html(); + }); + new Alert(understock + '库存不足').show(); + } else { + if ($('.zp').length > 0 && !$(this).attr('title')) { + $(this).attr('title', '1'); + new Alert('您有赠品没有选择,请选择完再结算!').show(); + } else { + if ($('input:checked').length > 0) { + if ($('.pre-sell-box input:checked').length > 0) { + window.location.href = '/cart/index/orderEnsure?type=2'; + } else { + window.location.href = '/cart/index/orderEnsure?type=1'; + } + } else { + new Alert('请至少选择一件商品').show(); + } + } + } }); -$('#modify').click(function() { - $courierCode.addClass('in-edit'); +$payWapper.on('selectstart', function() { + return false; +}); +$goodsDetail.on('selectstart', function() { + return false; }); -$('#submit-btn').click(function() { - sendExpressCode(); -}); +scrollToFirst(); }); -define("js/home/returns-apply", ["jquery","handlebars","source-map"], function(require, exports, module){ +define("js/guang/entry", ["jquery","lazyload","dot","jquery-pjax"], function(require, exports, module){ /** - * 退换货申请 - * @author: yyqing<yanqing.yang@yoho.cn> - * @date: 2016/2/29 + * 逛打包入口 + * @author: xuqi<qi.xu@yoho.cn> + * @date: 2016/3/29 */ -var $ = require("jquery"), - Addr = require("js/home/common-address"); - -var $goodsTable = $('#goods-table'), - $checkBox = $goodsTable.find('input[type="checkbox"]'), - $reasons = $goodsTable.find('.return-reason'), - $file = $goodsTable.find('input[type=file]'), - $refundType = $('input[name="refund-type"]'), - $province = $('#province'), - $city = $('#city'), - $areaCode = $('#area'); - -var $refundInfo = $('#refund-pay-info'), - $payYoho = $refundInfo.find('.type-yoho'), - $payBank = $refundInfo.find('.type-bank'), - $payAli = $refundInfo.find('.type-alipay'); - -var $exchange = $('.exchange-detail'), - $hidePhone = $exchange.find('input[name="hide-phone"]'), - $refundMode = $exchange.find('.refund-mode'); -var $submitBox = $('.submit-box'), - $waitPoint = $submitBox.find('.wait-gif span'); +require("js/guang/list"); -var pageType = 0, // 0-换货 1-退货 - orderCode = $('#order-code').val(), - defaultArea = $exchange.find('input[name="hide-area"]').val(), - defaultPhone = $hidePhone.val(), - disPhone = '', - verifyTip = '', - colorSize = {}, - timer; +require("js/guang/detail"); -require("plugin/jquery.qupload"); +require("js/guang/index"); + +}); +define("js/guang/list", ["jquery","lazyload","dot"], function(require, exports, module){ +/** + * 逛编辑页、列表页 + * @author: xuqi<qi.xu@yoho.cn> + * @date: 2015/12/15 + */ + +require("js/guang/msg"); +require("js/guang/img-blink"); +require("js/guang/right-side"); +}); +define("js/guang/msg", ["jquery","lazyload","dot"], function(require, exports, module){ +var $ = require("jquery"), + lazyLoad = require("lazyload"); -if (defaultPhone) { - $hidePhone.remove(); - disPhone = defaultPhone.replace(/(\d{3})\d{4}(\d{4})/, '$1****$2'); - $exchange.find('input[name="phone"]').val(disPhone); -} +var prising; -function syncRefundMode(code) { - $.ajax({ - type: 'POST', - url: '/home/returns/getDelivery', - data: { - areaCode: code - } - }).then(function(jsonData) { - var _html = ''; +require("dot"); - if (jsonData.code === 200) { - $.each(jsonData.data, function(k, v) { - var checked = ''; +//资讯文字截取和lazyload +function dotLazy() { - if (v.is_default === 'Y') { - checked = 'checked="checked"'; - } - _html += '<input type="radio" name="delivery-tpye" value="' + - v.id + '" ' + checked + '"">' + v.name; - }); - $refundMode.html(_html); - } + //文字截取 + $('.msg-title, .msg-content .content').dotdotdot({ + wrap: 'letter' }); + + //Lazyload + lazyLoad($('#msg-list img.lazy')); } -function setBackInput(type) { - $payYoho.hide(); - if (type === 2) { - $payBank.show(); - $payAli.hide(); - $payYoho.hide(); - } else if (type === 3) { - $payAli.show(); - $payBank.hide(); - $payYoho.hide(); - } else if (type === 4) { - $payYoho.show(); - $payBank.hide(); - $payAli.hide(); +//资讯点赞 +$('.guang-page').on('click', '.like-icon', function() { + var $this = $(this), + msgId = $this.closest('.msg-content').data('id'), + url; + + //同一资讯多次点击归一处理 + if (prising === msgId) { + return; } -} -if ($refundInfo.length) { - pageType = 1; + prising = msgId; - $refundType.each(function() { - if ($(this).prop('checked')) { - setBackInput($(this).val() * 1); + $this.toggleClass('liked'); + + //点赞或取消点赞 + if ($this.hasClass('liked')) { + url = '/guang/info/praise'; + } else { + url = '/guang/info/cancelPraise'; + } + $.ajax({ + type: 'GET', + url: url, + data: { + id: msgId, + time: new Date().getTime() + } + }).then(function(data) { + if (data.code === 200) { + if (data.data * 1 === 0) { + $this.next('b').addClass('num-0').children('.num').html('0'); //隐藏数字显示 + } else { + $this.next('b').removeClass('num-0').children('.num').html(data.data); + } } + prising = false; }); -} else if (defaultArea) { - syncRefundMode(defaultArea); -} - -defaultArea = defaultArea ? defaultArea : ''; -Addr.loadAllData(defaultArea, { - areaDomId: 'area' +}).on('mouseenter mouseleave', '.like-icon', function() { + $(this).closest('.like').toggleClass('hover'); }); -// 页面获取size列表数据 -$goodsTable.find('.sizeinfo').each(function() { - var sizes = []; +dotLazy(); - $(this).children().each(function() { - sizes.push($(this).data()); - }); - colorSize[$(this).data().id] = sizes; -}); +exports.dotLazy = dotLazy; + +}); +define("js/guang/img-blink", ["jquery"], function(require, exports, module){ +/** + * 图片移入闪动效果JS + * @auhor: xuqi<qi.xu@yoho.cn> + * @date: 2015/7/29 + */ -$reasons.change(function() { - var $par = $(this).parent().parent(), - type = $(this).val() * 1; +var $ = require("jquery"); - if (type === 4 || type === 6 || type === 8) { - $par.next().show(); - } else { - $par.next().hide(); +$('.guang-page').on('mouseover', 'a img, a .bg-img', function(e) { + var $el = $(e.target); + + //slider中的图片不做此效果 + if ($el.closest('.slider').length > 0) { + return; } -}); -$checkBox.change(function() { - var $par = $(this).parent().parent(); + $el.addClass('blink'); - if ($(this).prop('checked')) { - $par.find('select').prop('disabled', false); - } else { - $par.find('select').val(0).prop('disabled', true); - $par.next().hide(); - } + setTimeout(function() { + $el.removeClass('blink'); + }, 100); }); + +}); +define("js/guang/right-side", ["jquery","lazyload","dot"], function(require, exports, module){ +/** + * 右侧栏文字截取js + */ +var $ = require("jquery"), + lazyLoad = require("lazyload"); + +require("dot"); + +$('.ex-reco-context').dotdotdot({ + wrap: 'letter' +}); + +lazyLoad($('.ads img.lazy')); +}); +define("js/guang/detail", ["jquery","lazyload","dot","jquery-pjax"], function(require, exports, module){ +/** + * 逛详情页 + * @author: liuyue<yue.liu@yoho.cn> + * @date: 2015/12/16 + */ -$goodsTable.on('change', '.exchange-color', function() { - var $warp = $(this).closest('.exchange-choose-wrap'), - _html = '<option value="0">请选择尺码</option>', - id = $(this).val(); +var $ = require("jquery"), + lazyLoad = require("lazyload"), + $commentArea = $('#comment-area'), + articleId = $('.detail-body').data('id'); - if (colorSize[id]) { - $.each(colorSize[id], function(k, v) { - _html += '<option value="' + v.id + '">' + v.name + '</option>'; - }); - } - $warp.find('.exchange-size').html(_html).val(0); -}); +var $commentList = $commentArea.find('.comments-wrap'), + $commentNum = $('#article-comment > .comment-num'), + commenting = false, //评论请求尚未返回变量 + locating = false, //评论页面正在跳转 + $commentBtn = $('#comment-btn'), + MAX_COMMENTS_WORDS = 100, + $wordCountTip = $('#word-count-tip'); -$goodsTable.on('click', '.btn-del', function() { - $(this).parent().empty(); -}); +require("js/guang/right-side"); +require("js/guang/img-blink"); -$file.each(function(e) { - var $this = $('#upload-img-' + e), - $par = $this.closest('.problem-description'); +require("js/common/share"); - $this.qupload({ - button_image_url: '', - upload_url: window.location.origin + '/home/returns/imgUpload', - file_post_name: 'fileData', - button_text: '<span class="btn_upload_text">上传图片</span>', - button_text_style: '.btn_upload_text{color: #ffffff;}', - button_width: 116, - button_height: 33, - button_text_left_padding: 32, - button_text_top_padding: 8, - button_action: window.SWFUpload.BUTTON_ACTION.SELECT_FILE, - file_size_limit: '10240', - file_types: '*.jpg;*.jpeg;*.png;*.bmp', - uploadSuccessed: function(data) { - var $imgList = $par.find('li'), - isShow = false, - img, _html; +//Pjax +require("jquery-pjax"); - img = JSON.parse(data).imgList[0]; - _html = '<span class="btn-del" title="删除"></span>' + - '<img src="' + img.imgUrl + '" width="126" height="126">' + - '<input type="hidden" name="imgs" value="' + img.imgRelUrl + '">'; - $imgList.each(function() { - if (!isShow && !$(this).find('img').length) { - isShow = true; - $(this).html(_html); - } - }); - } - }); +lazyLoad({ + failure_limit: 50 }); -$exchange.on('change', '#area', function() { - var code = $(this).val() * 1; +//点击评论滑到评论区 +// $('#article-comment').click(function() { +// $('html, body').animate({ +// scrollTop: $commentArea.offset().top - 20 +// }, 800); +// }); - if (code) { - syncRefundMode(code); +//文章点赞与取消点赞 +$('#prise-btn').click(function() { + var prising = false, + url, + $this = $(this); + + if (prising) { + return; } -}); + $this.toggleClass('liked'); + if ($this.hasClass('liked')) { -$refundType.change(function() { - var type = $(this).val() * 1; + //点赞 + url = '/guang/info/praise'; + } else { - setBackInput(type); + //取消点赞 + url = '/guang/info/cancelPraise'; + } + prising = true; + $.ajax({ + type: 'GET', + url: url, + data: { + id: articleId + } + }).then(function(data) { + if (data.code === 200) { + $this.find('.like-num').html(data.data); + } + prising = false; + }); +}).bind('mouseenter mouseleave', function() { + $(this).toggleClass('hover'); }); -// 打包退换货商品信息 -function packGoogsList() { - var goods = [], - type = '换货'; +//文章收藏与取消收藏 +$('#collect-btn').click(function() { + var collecting = false, + url, + col, + $this = $(this); - if (pageType) { - type = '退货'; - } - if (!$checkBox.length) { - verifyTip = '没有可以' + type + '的商品'; + if (collecting) { + return; } + if ($this.hasClass('collected')) { - $checkBox.each(function() { - var $par = $(this).parent().parent(), - $next = $par.next(), - goodsInfo; + //取消收藏 + url = '/guang/info/cancelcollect'; + col = 0; + } else { - if (verifyTip.length) { - return; + //收藏 + url = '/guang/info/collect'; + col = 1; + } + collecting = true; + $.ajax({ + type: 'GET', + url: url, + data: { + id: articleId } + }).then(function(data) { + var hrefUrl; - if ($(this).prop('checked')) { - goodsInfo = { - product_skn: $par.find('input[name="skn"]').val(), - product_skc: $par.find('input[name="skc"]').val(), - product_sku: $par.find('input[name="sku"]').val(), - goods_type: $par.find('input[name="typeid"]').val(), - last_price: $par.find('input[name="price"]').val(), - reason: $par.find('.return-reason').val() * 1 - }; - - if (pageType) { - goodsInfo.returned_reason = goodsInfo.reason; - } else { - goodsInfo.exchange_reason = goodsInfo.reason; - goodsInfo.new_goods_id = $par.find('.exchange-color').val() * 1; - goodsInfo.new_product_sku = $par.find('.exchange-size').val() * 1; + switch (data.code) { + case 401: - if (!verifyTip && !goodsInfo.new_goods_id) { - verifyTip = '请选择要换的颜色'; + //防止从已有col的页面再次进行跳转后出错的情况 + if (/\?col=(1|0)/.test(location.href)) { + hrefUrl = location.href.replace(/\?col=(1|0)/, '?col=' + col); + } else { + hrefUrl = location.href + '?col=' + col; } + location.href = 'http://www.yohobuy.com/signin.html?refer=' + encodeURI(hrefUrl); + break; + case 400: - if (!verifyTip && !goodsInfo.new_product_sku) { - verifyTip = '请选择要换的尺码'; + // alert(data.message); + break; + case 200: + if (/\?col=(1|0)/.test(location.href)) { + + //如果页面url中含有col,为了防止页面刷新时收藏或者取消收藏会根据col来的问题,进行页面跳转拿掉参数 + location.href = location.href.replace(/\?col=(1|0)/, ''); + } else { + $this.toggleClass('collected'); } - } - if (!verifyTip && !goodsInfo.reason) { - verifyTip = '请选择' + type + '原因'; - } + break; + } + collecting = false; + }); +}).bind('mouseenter mouseleave', function() { + $(this).toggleClass('hover'); +}); - if (goodsInfo.reason === 4 || - goodsInfo.reason === 6 || - goodsInfo.reason === 8) { - goodsInfo.remark = $.trim($next.find('textarea').val()); - goodsInfo.evidence_images = []; - $next.find('input[name="imgs"]').each(function() { - goodsInfo.evidence_images.push($(this).val()); - }); +function showComment() { + var commonlist = $('.comments-list').find('li').length; - if (!verifyTip && !goodsInfo.remark) { - verifyTip = '请填写' + type + '描述'; - } + if (commonlist === 0) { + $('.commnets-resultwrapper').hide(); + $('.comments-empty').show(); + } else { + $('.commnets-resultwrapper').show(); + $('.comments-empty').hide(); + } +} +showComment(); + +//评论 +function comment(id) { + var commentInfo = $('#comment-info').val(); + + if (commentInfo === '') { + alert('评论不能为空'); + return false; + } + commenting = true; + $.ajax({ + url: '/guang/info/comment', + data: { + id: id, + comment: commentInfo + }, + type: 'post', + success: function(data) { + switch (data.code) { + case 401: + locating = true; + location.href = 'http://www.yohobuy.com/signin.html?refer=' + + window.escape(location.href + '#comment-info'); + break; + case 400: + alert(data.message); + break; + case 200: + if (data.data) { + $commentList.html(data.data.content); + $commentNum.html(data.data.count); + showComment(); - if (!verifyTip && !goodsInfo.evidence_images.length) { - verifyTip = '请上传图片'; - } + //clear comment-text + $('#comment-info').val('').keyup(); + } + break; } - delete goodsInfo.reason; - - goods.push(goodsInfo); + commenting = false; } }); +} - if (!verifyTip && !goods.length) { - verifyTip = '请选择要' + type + '的商品'; - } +$commentBtn.click(function(e) { - return goods; -} + //页面正在跳转或者正在AJAX请求时评论无效 + if (locating || commenting) { + return false; + } -// 打包退货信息 -function packRefundInfo() { - var res = {}; + //字数不符合要求 + if ($('#comment-info').val().length - MAX_COMMENTS_WORDS > 0) { + return; + } + e.preventDefault(); + comment(articleId); +}); - res.goods = packGoogsList(); - res.payment = {}; - $refundType.each(function() { - if ($(this).prop('checked')) { - res.payment.return_amount_mode = $(this).val() * 1; - } - }); +//comment pager pjax +$(document).pjax('.comment-pager a', '#pjax-container', { + timeout: 5000 +}); - if (!verifyTip && !res.payment.return_amount_mode) { - verifyTip = '请选择退款方式'; - } +//分页后移动到评论框的位置 +$(document).on('pjax:end', function() { + showComment(); + $('html,body').scrollTop($('#comment-info').offset().top); +}); - if (res.payment.return_amount_mode === 2) { - res.payment.province = $province.val(); - res.payment.city = $city.val(); - res.payment.area_code = $areaCode.val(); - if (!verifyTip && !res.payment.area_code * 1) { - verifyTip = '请选择银行所在地'; - } +$('#comment-info').keyup(function() { + var len = $(this).val().length, + showTxt; - res.payment.bank_name = $.trim($refundInfo.find('input[name="bank-name"]').val()); - if (!verifyTip && !res.payment.bank_name) { - verifyTip = '请填写银行名称'; + if (len === 0) { + $wordCountTip.html(''); + $commentBtn.addClass('disable'); + } else { + if (len - MAX_COMMENTS_WORDS <= 0) { + showTxt = '还可以输入' + (MAX_COMMENTS_WORDS - len) + '字'; + $commentBtn.removeClass('disable'); + } else { + showTxt = '已超过<span class="exceed-count">' + (len - MAX_COMMENTS_WORDS) + '</span>字'; + $commentBtn.addClass('disable'); } + } + $wordCountTip.html(showTxt); +}); - res.payment.payee_name = $.trim($refundInfo.find('input[name="payee-name"]').val()); - if (!verifyTip && !res.payment.payee_name) { - verifyTip = '请填写收款人姓名'; - } +//init +$('#comment-info').trigger('keyup'); + +}); +define("js/guang/index", ["jquery","lazyload","dot","jquery-pjax"], function(require, exports, module){ +/** + * 逛首页 + * @author: xuqi<qi.xu@yoho.cn> + * @date: 2015/12/15 + */ + +var $ = require("jquery"); + +var msg = require("js/guang/msg"); + +require("jquery-pjax"); +require("js/common/slider"); + +require("js/guang/img-blink"); + +require("js/guang/right-side"); + +$('#slider').slider(); //初始化slider + +$(document).pjax('.pjax-link, .msg-pager a', '#pjax-container', { + timeout: 2000 +}); + +$(document).on('pjax:end', function() { + msg.dotLazy(); +}); +}); +define("js/home/entry", ["jquery","handlebars","source-map","dot"], function(require, exports, module){ +/** + * 个人中心页js打包入口文件 + * @author: zhaobiao<bill.zhao@yoho.cn> + * @date: 2016/02/17 + */ - res.payment.bank_card = $.trim($refundInfo.find('input[name="bank-card"]').val()); - if (!verifyTip && !res.payment.bank_card) { - verifyTip = '请填写收款账户'; - } +require("js/home/index"); +require("js/home/orders"); +require("js/home/favorite"); +require("js/home/currency"); - } else if (res.payment.return_amount_mode === 3) { - res.payment.alipay_name = $.trim($refundInfo.find('input[name="alipay-name"]').val()); - if (!verifyTip && !res.payment.alipay_name) { - verifyTip = '请填写收款人姓名'; - } +require("js/home/returns"); +require("js/home/comment"); +require("js/home/complaints"); +require("js/home/message"); - res.payment.alipay_account = $.trim($refundInfo.find('input[name="alipay-account"]').val()); - if (!verifyTip && !res.payment.alipay_account) { - verifyTip = '请填写收款账户'; - } +require("js/home/edit"); +require("js/home/gift"); +require("js/home/validate"); +require("js/home/address"); +require("js/home/common-address"); +}); +define("js/home/index", ["jquery","handlebars","source-map"], function(require, exports, module){ +/** + * 个人中心首页 + * @author: xuqi<qi.xu@yoho.cn> + * @date: 2016/2/17 + */ - } - return res; -} +var $ = require("jquery"); -// 打包换货信息 -function packExchangeInfo() { - var res = {}; +require("js/home/order-block"); - res.goods = packGoogsList(); +//关闭消息提示 +$('#close-message').click(function() { + $('.message-tip').slideUp(200); +}); - res.consigneeName = $.trim($exchange.find('input[name="name"]').val()); - if (!verifyTip && !res.consigneeName) { - verifyTip = '请填写收货人姓名'; - } +/** + * + * @param self 点击的控件 + * @param $ul 列表父 + * @param page 总共页数 + * @param itemWith 子元素宽 + * @param curPage 当前页码 + * @param num 一页商品数量 + */ +function pageChange(self, $ul, page, itemWith, curPage, num) { + var $this = self, + left; - res.areaCode = $areaCode.val(); - if (!verifyTip && !res.areaCode * 1) { - verifyTip = '请选择地区'; - } + if ($this.hasClass('next')) { - res.address = $.trim($exchange.find('input[name="address"]').val()); - if (!verifyTip && !res.address) { - verifyTip = '请填写详细地址'; - } + //第2页显示前翻按钮 + if (curPage === 2) { + $this.siblings().removeClass('no-visible'); + } - res.mobile = $.trim($exchange.find('input[name="phone"]').val()); - if (res.mobile === disPhone) { - res.mobile = defaultPhone; + //最后一页隐藏后翻按钮 + if (curPage === page) { + $this.addClass('no-visible'); + } } else { - if (!verifyTip && !res.mobile) { - verifyTip = '请填写手机号'; + + //倒数第2页显示后翻按钮 + if (curPage === page - 1) { + $this.siblings().removeClass('no-visible'); } - } - res.zipCode = $.trim($exchange.find('input[name="postcode"]').val()); - res.deliveryType = $exchange.find('input[name="delivery-tpye"]:checked').val(); - if (!verifyTip && !res.deliveryType) { - verifyTip = '请选择商品返回方式'; + //第1页隐藏前翻按钮 + if (curPage === 1) { + $this.addClass('no-visible'); + } } - return res; -} - -function loadWaiting(status) { - var text = '○'; + left = -num * (curPage - 1) * itemWith; - if (status) { - $submitBox.addClass('applying'); - timer = setInterval(function() { - $waitPoint.text(text); - if (text.length > 3) { - text = ''; - } - text += '○'; - }, 600); - } else { - $submitBox.removeClass('applying'); - clearInterval(timer); - } + $ul.animate({ + marginLeft: left + }, 400); } -// 提交申请 -$('.save-btn').click(function() { - var url, data; +//新品上架 +(function() { + var $naPager = $('.na-pager'), + $rcPager = $('.rc-pager'), + $naUl = $('.new-arrival ul'), + $rcUl = $('.recommend ul'), + naPage = Math.ceil($naUl.children('li').length / 5), + rcPage = Math.ceil($rcUl.children('li').length / 6), + naItemWith = $naUl.children('li:last-child').outerWidth(), + rcItemWith = $rcUl.children('li:last-child').outerWidth(), + naCurPage = 1, + rcCurPage = 1; + + $naUl.width($naUl.width() * naPage); + $rcUl.width($rcUl.width() * rcPage); - verifyTip = ''; // 初始化提示语 - if (pageType) { - url = '/home/returns/saveRefund'; - data = packRefundInfo(); - } else { - url = '/home/returns/saveExchange'; - data = packExchangeInfo(); - } - data.orderCode = orderCode; + //最新上架翻页 + $naPager.click(function() { + var $this = $(this); - if (verifyTip) { - alert(verifyTip); - return; - } + if (naPage > 1) { + if ($this.hasClass('next')) { + ++naCurPage; + } else { + --naCurPage; + } + pageChange($this, $naUl, naPage, naItemWith, naCurPage, 5); + } + }); - loadWaiting(true); - $.ajax({ - type: 'POST', - url: url, - data: data - }).then(function(jsonData) { - if (jsonData.code === 200) { - if (jsonData.data && jsonData.data.refer) { - window.location.href = jsonData.data.refer; + //为你推荐翻页 + $rcPager.click(function() { + var $this = $(this); + + if (rcPage > 1) { + if ($this.hasClass('next')) { + ++rcCurPage; + } else { + --rcCurPage; } - } else { - alert(jsonData.message); - loadWaiting(false); + + pageChange($this, $rcUl, rcPage, rcItemWith, rcCurPage, 6); } }); +}()); }); -}); -define("js/home/common-address", ["jquery","handlebars","source-map"], function(require, exports, module){ +define("js/home/order-block", ["jquery","handlebars","source-map"], function(require, exports, module){ /** - * 个人中心页-地址管理 - * @author: wsl<shuiling.wang@yoho.cn> - * @date: 2016/02/24 + * 订单 + * @author: xuqi<qi.xu@yoho.cn> + * @date: 2016/2/17 */ -var $ = require("jquery"), - dialog = require("js/common/dialog"), - Alert = dialog.Alert; +var $ = require("jquery"); +var Handlebars = require("handlebars"); -var address = { +var dialog = require("js/common/dialog"); - // 省的控件ID - provinceDomId: 'province', +var Dialog = dialog.Dialog; +var Confirm = dialog.Confirm; - // 城市的控件ID - cityDomId: 'city', +var $tpl = $('#cancel-dialog-tpl'); - // 地区的控件ID - areaDomId: 'areaCode', +var html = $tpl.html(); - initDomIds: function(domOptions) { - var the = this; +var active; - if (domOptions.provinceDomId !== undefined) { - the.provinceDomId = domOptions.provinceDomId; - } - if (domOptions.cityDomId !== undefined) { - the.cityDomId = domOptions.cityDomId; - } - if (domOptions.areaDomId !== undefined) { - the.areaDomId = domOptions.areaDomId; - } - }, +var dialogMessage = '<p class="message-title"><i class="order-icon {{messageIcon}}"></i>{{messageTitle}}</p><p class="message-summary">{{messageSummary}}</p>'; +var $dialogEdit = $('#edit-dialog-tpl'); +var $addressManage, $province, $city, $county, $selectList, $name, $phone, $address, $telCode, $tel, isProvinceChecked = false; +; - // 初始化地址数据 - loadAreaData: function(pCode, toDomId, defaultValue, allCode) { - var the = this, - $toDom = $('#' + toDomId), - i = 0, - point = ''; +function cancelFactory(id) { + var options = { + mask: true, + btns: [ + { + id: 'cancel-sure', + name: '确定并取消订单', + btnClass: ['cancel-sure'], + cb: function() { + var $checked = $('.cancel-dialog :checked'); + var $tip = $('.cancel-dialog .cancel-tip'); + var text = ''; + if ($checked.val() === '10') { + text = $checked.parent().find('#reason_other').val(); + } else { + text = $checked.siblings('label').text(); + } + if ($checked.length === 0) { + $tip.html('请选择要取消订单的原因'); + return; + } + $.ajax({ + type: 'POST', + url: '/home/orders/cancelorder', + data: { + orderCode: id, + reasonId: $checked.val(), + reason: text + } + }).then(function(data) { + if (data.code === 200) { + active.close(); + active = showMessgaeDialog('icon-success', '订单修改', '您已成功取消了该订单', function() { + location.reload(true); + }); + active.show(); + } else { + $tip.html(data.message); + } + }); + } + }, + { + id: 'cancel-no', + name: '暂不取消', + btnClass: ['cancel-no'], + cb: function() { + active.close(); + } + } + ], + content: html, + className: 'cancel-dialog' + }; - var active, - val, - nId, - selecter; + return new Dialog(options); +} - $toDom.empty(); +function showMessgaeDialog(message_icon, message_title, message_summary, cb) { + var template = Handlebars.compile(dialogMessage); + var html = template({messageIcon: message_icon, messageTitle: message_title, messageSummary: message_summary}); + var options = { + mask: true, + btns: [ + { + id: 'message-sure', + name: '确定', + btnClass: ['message-sure'], + cb: function() { + active.close(); + cb && cb(); + } + } + ], + content: html, + className: 'message-dialog', + }; - if (pCode < 91) { - $('#' + the.areaDomId).empty(); - $('#county').attr('disabled', 'disabled'); - } + return new Dialog(options); - $.ajax({ - type: 'GET', - url: '/home/address/area', - data: 'id=' + pCode, +} - success: function(jsonData) { - jsonData.code = 200; +// 编辑订单 +function editOrder(id) { + var options = { + mask: true, + btns: [ + { + id: 'edit-sure', + name: '确定', + btnClass: ['edit-sure'], + cb: function() { + saveAddress(id); + } + }, + { + id: 'edit-no', + name: '取消', + btnClass: ['edit-no'], + cb: function() { + active.close(); + } + } + ], + content: $dialogEdit.html(), + className: 'edit-order-dialog' + }; - if (jsonData.code !== 200) { - active = new Alert('暂无数据'); - active.show(); - return false; + return new Dialog(options); +} + +$tpl.remove(); +$dialogEdit.remove(); + +//查看物流 +$('.check-logistics').click(function() { + $(this).siblings('.logistics').removeClass('hide'); +}); + +$('.close-logistics').click(function() { + $(this).closest('.logistics').addClass('hide'); +}); + + +//订单列表&订单详情【取消订单和确认收货】 +$('.me-orders, .order-detail').on('click', '.cancel-order', function(e) { + + //取消订单 + active = cancelFactory($(this).closest('.order, .order-detail').data('id')); + active.show(); +}).on('click', '.confirm-received', function(e) { + var id = $(this).closest('.order, .order-detail').data('id'); + + //确认收货 + active = new Confirm({ + cb: function() { + $.ajax({ + type: 'POST', + url: '/home/orders/confirmorder', + data: { + orderCode: id + } + }).then(function(data) { + if (data.code === 200) { + active.close(); + history.go(0); } + }); + }, + content: '您确定要确认收货吗?' + }); + active.show(); +}).on('click', '.edit-order', function() { + $(this).addClass('edit-order-active'); + active = editOrder($(this).closest('.order, .order-detail').data('id')) + active.show(); + newAddress(0); +}).on('click', '.rebuy', function() { + var id = $(this).closest('.order, .order-detail').data('id'); + buyAgain(id); +}); +//再次购买 +function buyAgain(id){ + $.ajax({ + type: 'post', + url: '/home/orders/reAdd', + data: {orderCode: id} + }).then(function(d) { + if (d.code === 200) { + location.href = '/shopping/cart'; + } else { + new dialog.Alert(d.message).show(); + } + }) +} +// 地址操作 +function newAddress(id) { + var code, codeId; - $toDom.append('<option value="0">' + defaultValue + '</option>'); - for (i in jsonData.options) { - if (jsonData.options[i]) { - val = jsonData.options[i]; - point = (toDomId === the.areaDomId && val.is_support === 'Y') ? '*' : ''; - nId = val.value; - selecter = ''; + var pId = id || 0; //如果没有传id则获取所有省列表 - if (typeof (allCode) !== 'undefined' && allCode !== 0 && - nId === allCode.substr(0, nId.length)) { - selecter = 'selected'; - } - $toDom.append('<option value="' + nId + '" ' + selecter + '>' + point + val.text + '</option>'); - } - } - } - }); - }, - bindAreaChange: function(domOptions) { - var the = this; + var addressCodeReg = /[0-9]{2}/gi; - if ($('#' + the.provinceDomId).data('events') !== undefined) { - return; - } + $addressManage = $('.edit-order-dialog'); + $province = $addressManage.find('select[name="province"]'); + $city = $addressManage.find('select[name="city"]'); + $county = $addressManage.find('select[name="county"]'); + $selectList = $addressManage.find('select[name="province"],select[name="city"]'); + $name = $addressManage.find('.inp[name="name"]'); + $phone = $addressManage.find('.inp[name="phone"]'); + $address = $addressManage.find('.inp[name="address"]'); + $telCode = $addressManage.find('.inp[name="tel-code"]'); + $tel = $addressManage.find('.inp[name="tel"]'); - // 初始化 - $('#' + the.provinceDomId).change(function() { - var pCode = $('#' + the.provinceDomId).val(); + var validate = validateForm(); - if (pCode === '0') { - return; - } + code = $province.data("areacode") + ''; + codeId = !!code && code.match(addressCodeReg); - the.loadAreaData(pCode, the.cityDomId, '请选择城市', pCode); - $('#' + the.areaDomId).hide(); - the.showAreaSel(domOptions.dispDomId); - }); + //获取省 + getAddress({ + id: pId, + type: 'getProvince', + selectId: codeId[0] + }, function() { - $('#' + this.cityDomId).change(function() { - var pCode = $('#' + the.cityDomId).val(); + var provinceId = $province.val(); - if (pCode === '0') { - return; - } + if (provinceId !== '0') { + isProvinceChecked = true; - the.loadAreaData(pCode, the.areaDomId, '请选择区县', pCode); - $('#' + the.areaDomId).show(); - the.showAreaSel(domOptions.dispDomId); - }); + //如果获取的省有默认选中项则获取市 + getAddress({ + id: provinceId, + type: 'getCity', + selectId: '' + codeId[0] + codeId[1] + }, function() { - $('#' + the.areaDomId).change(function() { - the.showAreaSel(domOptions.dispDomId); - }); + var cityId = $city.val(); - the.showAreaSel(domOptions.dispDomId); - }, + //如果获取的市有默认选中项则获取县 + if (cityId !== '0') { + getAddress({ + id: cityId, + type: 'getCounty', + selectId: code + }); + } + }); + } else { + $addressManage.find('select[name="city"]').html('<option value="0">请选择城市</option>'); + $addressManage.find('select[name="county"]').html('<option value="0">请选择区县</option>'); + } + }); - /** - * 显示地区选择 - */ - showAreaSel: function(dispDomId) { - var the = this, - strAddr = '', - strProvince = $('#' + the.provinceDomId).find('option:selected').text(), - strCity = $('#' + the.cityDomId).find('option:selected').text(), - strArea = $('#' + the.areaDomId).find('option:selected').text(); + // 发生change事件时获取下一级地址 + $selectList.change(function() { - if (dispDomId !== undefined && dispDomId !== '') { - if (strProvince.indexOf('选择') < 0) { - strAddr = strProvince; - } + var $this = $(this); - if (strCity !== '' && strCity.indexOf('选择') < 0) { - strAddr += ',' + strCity; - } + if ($this.attr('name') === 'province') { - if (strArea !== '' && strArea.indexOf('选择') < 0) { - strAddr += ',' + strArea; + if ($this.val() === '0') { + $addressManage.find('select[name="city"]').html('<option value="0">请选择城市</option>'); + $addressManage.find('select[name="county"]').html('<option value="0">请选择区县</option>'); + } else { + getAddress({ + id: $this.val(), + type: 'getCity' + }, function() { + isProvinceChecked = true; + }); + $addressManage.find('select[name="county"]').html('<option value="0">请选择区县</option>'); } - $('#' + dispDomId).html(strAddr); } - }, - loadAllData: function(areaCode, domOptions) { - var the = this; - - the.initDomIds(domOptions); - areaCode += ''; + if ($this.attr('name') === 'city' && isProvinceChecked) { - if (areaCode < 91) { - the.loadAreaData(0, the.provinceDomId, '请选择省份', ''); - $('#' + the.areaDomId).hide(); - $('#' + the.cityDomId).html('<option value="0">请选择市</option>'); - } else if (areaCode.length === 4) { - the.loadAreaData(0, the.provinceDomId, '请选择省份', areaCode); - the.loadAreaData(areaCode.substr(0, 2), the.cityDomId, '请选择城市', areaCode); - the.loadAreaData(areaCode, the.areaDomId, '请选择区县', areaCode); - $('#' + the.areaDomId).show(); - } else if (areaCode.length === 6) { - the.loadAreaData(0, the.provinceDomId, '请选择省份', areaCode); - the.loadAreaData(areaCode.substr(0, 2), the.cityDomId, '请选择城市', areaCode); - the.loadAreaData(areaCode.substr(0, 4), the.areaDomId, '请选择区县', areaCode); - $('#' + this.areaDomId).show(); + if ($this.val() === '0') { + $addressManage.find('select[name="county"]').html('<option value="0">请选择区县</option>'); + } else { + getAddress({ + id: $this.val(), + type: 'getCounty' + }); + } } - the.bindAreaChange(domOptions); - } -}; - -module.exports = address; - -}); -define("plugin/jquery.qupload", ["jquery"], function(require, exports, module){ + }); + $name.on('blur', function() { + validate.name($.trim($name.val())); + }); + $address.on('blur', function() { + validate.address($.trim($address.val())); + }); + $phone.on('blur', function() { + validate.mobile($.trim($phone.val())); + }); + $tel.on('blur', function() { + validate.tel($.trim($telCode.val()), $.trim($tel.val())); + }) + $county.on('change', function() { + validate.city($province.val(), $city.val(),$county.val()); + }) +} /** - * upload plugin - * + * @description: 改函数会返回地址信息 + * d {Object} type: 'getProvince'获取省 type: 'getCity'获取城市 type: 'getCounty'获取县 + * id: 0 && type: 'getProvince' 获取所有省,默认没有选中项 + * id !== 0 && type: 'getProvince' 获取所有省,默认选中用户所在的省 */ -var $ = require("jquery"); -var SWFUpload = require("plugin/swfupload.queue").SWFUpload; +function getAddress(d, callback) { -var file_upload_limit = 6; -$.fn.extend({ - qupload : function(options) { - writeProgressHtml(); - initSwfUpload($(this).attr('id'), options); - } -}); + var $obj; + var selectId = d.selectId; -var hasProgreeHtml = 0; + if (d.type === 'getProvince') { -// 创建进度条的html -function writeProgressHtml() { - if (hasProgreeHtml == 0) // 一个页面只创建一次 - { - $('body') - .append( - '<div id="progressDialog" style="display: none;width:370px;height:80px !important;"><div style="padding:10px 20px;"><span id="curUploadStatus">图片上传中……请稍等</span><div id="progress"></div></div></div>'); - hasProgreeHtml = 1; + //url = 'getProvince'; + $obj = $province; + } else if (d.type === 'getCity') { + + //url = 'getCity'; + $obj = $city; + } else if (d.type === 'getCounty') { + + //url = 'getCounty'; + $obj = $county; } -} -function setUploadStatus(uploadNum, totalUploadNum) { - $('#uploadNum').html(uploadNum); - $('#totalUploadNum').html(totalUploadNum); -} + $.ajax({ + type: 'GET', + url: '/cart/index/getAreaList', + dataType: 'json', + data: { + id: d.id * 1 + } + }).then(function(d) { -// 初始化swf -function initSwfUpload(btnId, options) { - // 上传成功的回调函数 - var uploadSuccessCallBack = null; - if (options.uploadSuccessed != undefined) { - uploadSuccessCallBack = options.uploadSuccessed; - } - // 上传的key - var uploadKeyValue = ''; - if (options.uploadKey != undefined) { - uploadKeyValue = options.uploadKey; - } + structureOption($obj, d.data, selectId); - // 上传之前可以做的操作参数 - var preUploadCallBack = null; - if (options.preupload != undefined) { - preUploadCallBack = options.preupload; - } + if (typeof callback === 'function') { + callback(); + } - // 弹出层ID - var progressDivId = 'progressDialog'; - // 进度条ID - var progressTargetId = 'progress'; + }); +} - // 共有多少张需要上传 - var totalUploadNum = 0; +// 构建select下拉选项 +function structureOption($obj, data, selectId) { - // 当前已经上传的张数 - var curUploadedNum = 0; + var i, + optionHtml = '', + defaultOption, + isStar = ''; - this.options = options; + for (i = 0; i < data.length; i++) { - var numTest = 0; - - var errmsg_box = this.options.errmsg_box; + if (data[i].is_support_express === 'Y') { + isStar = '*'; + } else { + isStar = ''; + } - // 设置默认值函数 - function setDefaultValue(optionName, optionValue) { - this.options[optionName] = options[optionName] == undefined ? optionValue - : options[optionName]; + if (data[i].id === selectId) { + optionHtml += '<option selected value="' + data[i].id + '">' + isStar + data[i].caption + '</option>'; + } else { + optionHtml += '<option value="' + data[i].id + '">' + isStar + data[i].caption + '</option>'; + } } - setDefaultValue('flash_url', - "http://static.yohobuy.com/admin/js/swfupload/swfupload.swf"); - setDefaultValue('upload_url', "http://upload.yohobuy.com"); - setDefaultValue('file_post_name', "Filedata"); - setDefaultValue('file_size_limit', "2 MB"); - setDefaultValue('file_types', "*.*"); - setDefaultValue('file_types_description', "All Files"); - setDefaultValue('file_upload_limit', file_upload_limit); - setDefaultValue('file_queue_limit', 0); - setDefaultValue('button_image_url', - "http://static.yohobuy.com/admin/images/btn_swfupload.png"); - setDefaultValue('button_width', "104"); - setDefaultValue('button_height', "20"); - setDefaultValue('button_text', '<span class="btn_upload_xzzp">选择本地照片</span>'); - setDefaultValue('button_text_style', '.btn_upload_xzzp{color:#ffffff}'); - setDefaultValue('button_text_left_padding', 24); - setDefaultValue('button_text_top_padding', 0); - setDefaultValue('button_window_mode', 'TRANSPARENT'); - setDefaultValue('button_cursor', '-2'); - var settings = { - flash_url : this.options.flash_url, - upload_url : this.options.upload_url, - file_post_name : this.options.file_post_name, - // post_params: {"PHPSESSID" : "<?php echo session_id(); ?>"}, - file_size_limit : this.options.file_size_limit, - file_types : this.options.file_types, - file_types_description : this.options.file_types_description, - file_upload_limit : this.options.file_upload_limit, - file_queue_limit : this.options.file_queue_limit, - prevent_swf_caching : false, - preserve_relative_urls : false, - custom_settings : { + if ($obj.attr('name') === 'province') { + defaultOption = '<option value="0">请选择省份</option>'; + } else if ($obj.attr('name') === 'city') { + defaultOption = '<option value="0">请选择城市</option>'; - }, - debug : false, + } else if ($obj.attr('name') === 'county') { + defaultOption = '<option value="0">请选择区县</option>'; + } - // Button settings - button_image_url : this.options.button_image_url, - button_width : this.options.button_width, - button_height : this.options.button_height, - button_placeholder_id : btnId, - button_text : this.options.button_text, - button_text_style : this.options.button_text_style, - button_text_left_padding : this.options.button_text_left_padding, - button_text_top_padding : this.options.button_text_top_padding, - button_window_mode : this.options.button_window_mode, - button_cursor : this.options.button_cursor, + $obj.html(defaultOption + optionHtml); +} - // The event handler functions are defined in handlers.js - file_dialog_start_handler : fileDialogStart, - file_queued_handler : fileQueued, - file_queue_error_handler : fileQueueError, - file_dialog_complete_handler : fileDialogComplete, - upload_start_handler : uploadStart, - upload_progress_handler : uploadProgress, - upload_error_handler : uploadError, - upload_success_handler : uploadSuccess, - upload_complete_handler : uploadComplete, - queue_complete_handler : queueComplete, - button_action: this.options.button_action - }; +// 保存地址 +function saveAddress(id) { + var name = $name.val(), + province = $province.val(), + city = $city.val(), + county = $county.val(), + address = $address.val(), + phone = $phone.val(), + telCode = $telCode.val(), + tel = $tel.val(); - var swfu = new SWFUpload(settings); + // var $err_name = $name.siblings('.error'), + // $err_province = $province.siblings('.error'), + // $err_address = $address.siblings('.error'), + // $err_phone = $phone.siblings('.error'), + // $err_tel = $tel.siblings('.error'); - function fileQueued(file) { - try { + var postData = { + orderCode: id, + userName: name, + areaCode: county, + address: address, + mobile: phone, + phoneCode: telCode, + phoneNum: tel + }; + var validate = validateForm(); + if (!validate.name(name) || !validate.city(province, city, county) || !validate.address(address) || !validate.mobile(phone) || !validate.tel(telCode, tel)) { + return; + } - } catch (ex) { - this.debug(ex); + $.ajax({ + type: 'post', + url: '/home/orders/modifyAddress', + data: postData + }).then(function(d) { + if (d.code === 200) { + active.close(); + active = showMessgaeDialog('icon-waiting', '订单修改', '您的订单正在尝试修改,请耐心等待。稍后可在订单详情页查看修改情况!', function() { + location.reload(true); + }); + active.show(); + } else { + new dialog.Alert(d.message).show(); } + }) +} +function validateForm() { + var $err_name = $name.siblings('.error'), + $err_province = $province.siblings('.error'), + $err_address = $address.siblings('.error'), + $err_phone = $phone.siblings('.error'), + $err_tel = $tel.siblings('.error'); - } + var nameReg = /^[\u4e00-\u9fa5]{2,5}$/; + var addressReg = /^[a-zA-Z0-9-#()()\u4e00-\u9fa5]+$/; + var phoneReg = /^(13[0-9]|15[012356789]|17[678]|18[0-9]|14[57])[0-9]{8}$/; + var telCodeReg = /^[0-9]{3,4}$/; + var telReg = /^[0-9]{8}$/; + var _right_html = '<i class="order-icon icon-right"></i>'; + var _error_html = '<i class="order-icon icon-error"></i><b></b>'; - function fileQueueError(file, errorCode, message) { - var errmsg; - try { - if (errorCode === SWFUpload.QUEUE_ERROR.QUEUE_LIMIT_EXCEEDED) { - alert("您尝试上传太多文件.\n" - + (message === 0 ? "您已达到上传限制." : "您最多还可以 " - + (message > 1 ? "上传 " + message + "文件." - : "一个文件."))); - return; + return { + name: function(name) { + if (!nameReg.test(name)) { + $err_name.html(_error_html); + $err_name.find('b').html('真实姓名至少2个中文,最多5个中文'); + $err_name.show(); + return false; + } else { + $err_name.html(_right_html).show(); + return true; } - - // var progress = new FileProgress(file, - // this.customSettings.progressTarget); - // progress.setError(); - // progress.toggleCancel(false); - switch (errorCode) { - - case SWFUpload.QUEUE_ERROR.FILE_EXCEEDS_SIZE_LIMIT: - // progress.setStatus("File is too big."); - - errmsg = '文件超过'+settings.file_size_limit/1024+'M'; - alert(errmsg); - this.debug("Error Code: File too big, File name: " - + file.name + ", File size: " + file.size - + ", Message: " + message); - break; - case SWFUpload.QUEUE_ERROR.ZERO_BYTE_FILE: - // progress.setStatus("Cannot upload Zero Byte files."); - alert('请上传有内容的文件!'); - this.debug("Error Code: Zero byte file, File name: " - + file.name + ", File size: " + file.size - + ", Message: " + message); - break; - case SWFUpload.QUEUE_ERROR.INVALID_FILETYPE: - alert('请上传指定类型的文件!'); - this.debug("Error Code: Invalid File Type, File name: " - + file.name + ", File size: " + file.size - + ", Message: " + message); - break; - default: - if (file !== null) { - // progress.setStatus("Unhandled Error"); + }, + city: function(province, city, county) { + if (province === '0' || city === '0' || county === '0') { + $err_province.html(_error_html); + $err_province.find('b').html('请填写完整的省市区信息'); + $err_province.show(); + return false; + } else { + $err_province.html(_right_html).show(); + return true; + } + }, + address: function(address) { + if (!addressReg.test(address)) { + var message = '详细地址不能为空'; + if ($.trim(address) !== '') { + message = '只能包含数字、字母、汉字、#、-、()及其组合'; } - alert('上传文件失败,请稍后在试!'); - this.debug("Error Code: " + errorCode + ", File name: " - + file.name + ", File size: " + file.size - + ", Message: " + message); - break; + $err_address.html(_error_html); + $err_address.find('b').html(message); + $err_address.show(); + return false; + } else { + $err_address.html(_right_html).show(); + return true; } - } catch (ex) { - this.debug(ex); - } - } - - function fileDialogStart() { - if (preUploadCallBack != null) { - preUploadCallBack(); - } - } - - // 选择文件完成 - function fileDialogComplete(numFilesSelected, numFilesQueued) { - try { - - if (numFilesSelected > 0) { - // document.getElementById(this.customSettings.cancelButtonId).disabled - // = false; - totalUploadNum = numFilesSelected; - curUploadedNum = 1; - setUploadStatus(curUploadedNum, totalUploadNum); - this.startUpload(); + }, + mobile: function(phone) { + if (!phoneReg.test(phone)) { + var message = '手机号码不能为空'; + if ($.trim(phone) !== '') { + message = '你输入的联系电话格式不正确'; + } + $err_phone.html(_error_html); + $err_phone.find('b').html(message); + $err_phone.show(); + return false; + } else { + $err_phone.html(_right_html).show(); + return true; + } + }, + tel: function(telCode, tel) { + if(telCode === '' && tel === ''){ + _right_html = ''; + } + if ((!!telCode && !telCodeReg.test(telCode)) || (!!tel && !telReg.test(tel)) || + (telCodeReg.test(telCode) && !telReg.test(tel)) || + (!telCodeReg.test(telCode) && telReg.test(tel))) { + $err_tel.html(_error_html); + $err_tel.find('b').html('你输入的电话格式不正确'); + $err_tel.show(); + return false; + } else { + $err_tel.html(_right_html).show(); + return true; } - - } catch (ex) { - this.debug(ex); } } +} + +}); +define("js/home/orders", ["jquery","handlebars","source-map"], function(require, exports, module){ +/** + * 我的订单 + * @author: xuqi<qi.xu@yoho.cn> + * @date: 2016/2/17 + */ +var $ = require("jquery"); + + +require("js/home/order-block"); + +//不同订单包裹提示 + +$('.why').click(function() { + $('#differentBag').show(); + return false; + +}); +$('#differentBag').click(function() { + return false; +}); +$(document).click(function() { + $('#differentBag').hide(); +}); + + +//订单包裹左右切换 +function lunBo($pre, $next, $ul, $iWidth) { + var i = 1, + j = 1; + + var iSpeed = 0, + isMoving = false; + + $pre.click(function() { + if (isMoving) { + return; + } + + if ($ul.css('left') === '0px') { + iSpeed = 0; + + } else { + iSpeed += j * $iWidth; + isMoving = true; + } + $ul.stop().animate({ + left: iSpeed + }, 300, function() { + isMoving = false; + }); + }); + $next.click(function() { + var $largeLeft = $ul.parent().width() - $ul.width() + 'px'; + + if (isMoving) { + return; + } + + if ($ul.css('left') === $largeLeft) { + $ul.css('left', $largeLeft); + } else { + iSpeed += -i * $iWidth; + isMoving = true; + } + + $ul.stop().animate({ + left: iSpeed + }, 300, function() { + isMoving = false; + }); + }); +} + +//订单分类 +$('.bag').find('ul').each(function() { + var $pre = $(this).parent().parent().find('.pre'); + var $next = $(this).parent().parent().find('.next'); + + var $iWidth = $(this).find('li').eq(0).width(); + var $length = $(this).find('li').size(); + var $ulWidth = $iWidth * $length; + + $(this).css('width', $ulWidth); + if ($length > 5) { + $pre.show(); + $next.show(); + lunBo($pre, $next, $(this), $iWidth); + } else { + $pre.hide(); + $next.hide(); + } + +}); + +}); +define("js/home/favorite", ["jquery","handlebars","source-map","dot"], function(require, exports, module){ +/** + * 我的收藏 + * @author: xuqi<qi.xu@yoho.cn> + * @date: 2016/2/23 + */ - // 开始上传 - function uploadStart(file) { - this.addPostParam('_key', uploadKeyValue); - //$('#' + progressDivId).dialog(); - } - - // 上传进度 - function uploadProgress(file, bytesLoaded, bytesTotal) { - // $('#uploadData').html(bytesLoaded + "/" + bytesTotal); - // $('#uploadData').html( $('#uploadData').html() + ' - ' + bytesLoaded - // + '+' + ',' + bytesTotal ); - var percent = Math.ceil((bytesLoaded / bytesTotal) * 100); - //$("#progress").progressbar({ - // value : percent - //}); - } +var $ = require("jquery"), + Handlebars = require("handlebars"); - // 上传成功 - function uploadSuccess(file, serverData) { - curUploadedNum++; - setUploadStatus(curUploadedNum, totalUploadNum); - if (uploadSuccessCallBack != null) { - uploadSuccessCallBack(serverData); - } - } +var phoneReg = require("js/passport/mail-phone-regx").phoneRegx['+86']; - // 上传出错 - function uploadError(file, errorCode, message) { +var clockTxt = { + on: '[ 降价通知 ]', + off: '[ 取消通知 ]' +}; - try { - if (errorCode === SWFUpload.QUEUE_ERROR.QUEUE_LIMIT_EXCEEDED) { - alert("您尝试上传太多文件.\n" - + (message === 0 ? "您已达到上传限制." : "您最多还可以 " - + (message > 1 ? "上传 " + message + "文件." - : "一个文件."))); - return; - } - switch (errorCode) { - - case SWFUpload.QUEUE_ERROR.FILE_EXCEEDS_SIZE_LIMIT: - alert("Error Code: 文件太大。 文件名为: " + file.name + ", 大小为: " - + file.size + ", Message: " + message); - break; - case SWFUpload.QUEUE_ERROR.ZERO_BYTE_FILE: +var param = location.href.match(/type=(.*)[&]*/), + favType; - alert("Error Code: 文件为0, 文件名为: " + file.name + ", 大小为: " - + file.size + ", Message: " + message); - break; - case SWFUpload.QUEUE_ERROR.INVALID_FILETYPE: - alert("Error Code: 文件类型不合要求, 文件名为: " + file.name + ", 大小为: " - + file.size + ", Message: " + message); - break; - default: - if (file !== null) { +var curSkn; - } - alert("上传出错" + "Error Code: " + errorCode + ", File name: " - + file.name + ", File size: " + file.size - + ", Message: " + message); - break; - } - } catch (ex) { - this.debug(ex); - } - } +var $curClock; - // 上传完成 - function uploadComplete(file) { - //$('#' + progressDivId).dialog('close'); - } +require("dot"); - // This event comes from the Queue Plugin - function queueComplete(numFilesUploaded) { +//商品收藏 +(function() { + var $defaultSorts, + $allSorts; - } -} + var $bodyMask, + $noticeNum, + $priceNotice, + $noticeContent, + $noticeSuccess, + $noticeErrorMsg, + $noticeSubOrCancel, + $phone; -window.SWFUpload = SWFUpload; -}); -define("plugin/swfupload.queue", [], function(require, exports, module){ -/* - Queue Plug-in - - Features: - *Adds a cancelQueue() method for cancelling the entire queue. - *All queued files are uploaded when startUpload() is called. - *If false is returned from uploadComplete then the queue upload is stopped. - If false is not returned (strict comparison) then the queue upload is continued. - *Adds a QueueComplete event that is fired when all the queued files have finished uploading. - Set the event handler with the queue_complete_handler setting. - - */ -var SWFUpload = require("plugin/swfupload").SWFUpload; + var reduction = {}, + noticeNum; -if (typeof(SWFUpload) === "function") { - SWFUpload.queue = {}; - - SWFUpload.prototype.initSettings = (function (oldInitSettings) { - return function () { - if (typeof(oldInitSettings) === "function") { - oldInitSettings.call(this); - } - - this.queueSettings = {}; - - this.queueSettings.queue_cancelled_flag = false; - this.queueSettings.queue_upload_count = 0; - - this.queueSettings.user_upload_complete_handler = this.settings.upload_complete_handler; - this.queueSettings.user_upload_start_handler = this.settings.upload_start_handler; - this.settings.upload_complete_handler = SWFUpload.queue.uploadCompleteHandler; - this.settings.upload_start_handler = SWFUpload.queue.uploadStartHandler; - - this.settings.queue_complete_handler = this.settings.queue_complete_handler || null; - }; - })(SWFUpload.prototype.initSettings); + // 同步订阅数量 + function syncSubscribeNum(num) { + noticeNum = num * 1; + $noticeNum.text(num); + $noticeSuccess.find('.notice-num').text(5 - num); + } - SWFUpload.prototype.startUpload = function (fileID) { - this.queueSettings.queue_cancelled_flag = false; - this.callFlash("StartUpload", [fileID]); - }; + //关闭价格订阅弹窗和蒙层 + function closeNoticeBox() { + $bodyMask.addClass('hide'); + $priceNotice.addClass('hide'); - SWFUpload.prototype.cancelQueue = function () { - this.queueSettings.queue_cancelled_flag = true; - this.stopUpload(); - - var stats = this.getStats(); - while (stats.files_queued > 0) { - this.cancelUpload(); - stats = this.getStats(); - } - }; - - SWFUpload.queue.uploadStartHandler = function (file) { - var returnValue; - if (typeof(this.queueSettings.user_upload_start_handler) === "function") { - returnValue = this.queueSettings.user_upload_start_handler.call(this, file); - } - - // To prevent upload a real "FALSE" value must be returned, otherwise default to a real "TRUE" value. - returnValue = (returnValue === false) ? false : true; - - this.queueSettings.queue_cancelled_flag = !returnValue; + //重置头部文字 + $noticeSubOrCancel.text('订阅成功'); + } - return returnValue; - }; - - SWFUpload.queue.uploadCompleteHandler = function (file) { - var user_upload_complete_handler = this.queueSettings.user_upload_complete_handler; - var continueUpload; - - if (file.filestatus === SWFUpload.FILE_STATUS.COMPLETE) { - this.queueSettings.queue_upload_count++; + //显示价格订阅弹窗和蒙层 + function showNoticeBox() { + var top = $(document).scrollTop() + $(window).height() / 2; + + if (typeof $bodyMask === 'undefined') { + $('body').append('<div class="body-mask hide"></div>'); + $bodyMask = $('.body-mask'); } - if (typeof(user_upload_complete_handler) === "function") { - continueUpload = (user_upload_complete_handler.call(this, file) === false) ? false : true; - } else if (file.filestatus === SWFUpload.FILE_STATUS.QUEUED) { - // If the file was stopped and re-queued don't restart the upload - continueUpload = false; + $bodyMask.css({ + height: $(document).height(), + width: $(document).width() + }).removeClass('hide'); + + $priceNotice.removeClass('error'); + + if ($curClock.hasClass('noticed')) { + + //取消降价通知 + $.ajax({ + type: 'GET', + url: '/home/favorite/cancelnotice', + data: { + id: curSkn + } + }).then(function(data) { + if (data.code === 200) { + syncSubscribeNum(data.data.num); + $noticeContent.addClass('hide'); + $noticeSuccess.removeClass('hide'); + $noticeSubOrCancel.text('取消成功'); + $priceNotice.removeClass('hide').css({ + top: top + }); + + if ($curClock.closest('.reduction-products').length > 0) { + $curClock.closest('.fav-good').remove(); + } else { + $curClock.removeClass('noticed').text(clockTxt.on); + } + } else { + if (data.message) { + $noticeErrorMsg.text(data.message); + $priceNotice.removeClass('hide').addClass('error').css({ + top: top + }); + } + } + }); } else { - continueUpload = true; - } - - if (continueUpload) { - var stats = this.getStats(); - if (stats.files_queued > 0 && this.queueSettings.queue_cancelled_flag === false) { - this.startUpload(); - } else if (this.queueSettings.queue_cancelled_flag === false) { - this.queueEvent("queue_complete_handler", [this.queueSettings.queue_upload_count]); - this.queueSettings.queue_upload_count = 0; + if (noticeNum >= 5) { + $noticeErrorMsg.text('您的订阅数已经到达上限'); + $priceNotice.removeClass('hide').addClass('error').css({ + top: top + }); } else { - this.queueSettings.queue_cancelled_flag = false; - this.queueSettings.queue_upload_count = 0; + $noticeContent.removeClass('hide'); + $noticeSuccess.addClass('hide'); + $priceNotice.removeClass('hide').css({ + top: top + }); } } - }; -} -exports.SWFUpload = SWFUpload; -}); -define("plugin/swfupload", [], function(require, exports, module){ -/** - * SWFUpload: http://www.swfupload.org, http://swfupload.googlecode.com - * - * mmSWFUpload 1.0: Flash upload dialog - http://profandesign.se/swfupload/, http://www.vinterwebb.se/ - * - * SWFUpload is (c) 2006-2007 Lars Huring, Olov Nilz锟絥 and Mammon Media and is released under the MIT License: - * http://www.opensource.org/licenses/mit-license.php - * - * SWFUpload 2 is (c) 2007-2008 Jake Roberts and is released under the MIT License: - * http://www.opensource.org/licenses/mit-license.php - * - */ + } + if ($('.fav-products').length === 0) { + return; + } -/* ******************* */ -/* Constructor & Init */ -/* ******************* */ -var SWFUpload; + $defaultSorts = $('.default-sorts'); + $allSorts = $('.all-sorts'); -if (SWFUpload == undefined) { - SWFUpload = function (settings) { - this.initSWFUpload(settings); - }; -} + $noticeNum = $('.reduction-notice span'); -SWFUpload.prototype.initSWFUpload = function (settings) { - try { - this.customSettings = {}; // A container where developers can place their own settings associated with this instance. - this.settings = settings; - this.eventQueue = []; - this.movieName = "SWFUpload_" + SWFUpload.movieCount++; - this.movieElement = null; + $priceNotice = $('.price-notice'); + $noticeContent = $('#price-notice .content'); + $noticeSuccess = $('#price-notice .success'); + $noticeErrorMsg = $('#price-notice .error-message'); + $noticeSubOrCancel = $noticeSuccess.find('.subscribe-or-cancel'); + $phone = $('#notice-phone-num'); - // Setup global control tracking - SWFUpload.instances[this.movieName] = this; + reduction.phone = $phone.val(); + reduction.change = false; - // Load the settings. Load the Flash movie. - this.initSettings(); - this.loadFlash(); - this.displayDebugInfo(); - } catch (ex) { - delete SWFUpload.instances[this.movieName]; - throw ex; - } -}; + noticeNum = $noticeNum.text() * 1; -/* *************** */ -/* Static Members */ -/* *************** */ -SWFUpload.instances = {}; -SWFUpload.movieCount = 0; -SWFUpload.version = "2.2.0 2009-03-25"; -SWFUpload.QUEUE_ERROR = { - QUEUE_LIMIT_EXCEEDED : -100, - FILE_EXCEEDS_SIZE_LIMIT : -110, - ZERO_BYTE_FILE : -120, - INVALID_FILETYPE : -130 -}; -SWFUpload.UPLOAD_ERROR = { - HTTP_ERROR : -200, - MISSING_UPLOAD_URL : -210, - IO_ERROR : -220, - SECURITY_ERROR : -230, - UPLOAD_LIMIT_EXCEEDED : -240, - UPLOAD_FAILED : -250, - SPECIFIED_FILE_ID_NOT_FOUND : -260, - FILE_VALIDATION_FAILED : -270, - FILE_CANCELLED : -280, - UPLOAD_STOPPED : -290 -}; -SWFUpload.FILE_STATUS = { - QUEUED : -1, - IN_PROGRESS : -2, - ERROR : -3, - COMPLETE : -4, - CANCELLED : -5 -}; -SWFUpload.BUTTON_ACTION = { - SELECT_FILE : -100, - SELECT_FILES : -110, - START_UPLOAD : -120 -}; -SWFUpload.CURSOR = { - ARROW : -1, - HAND : -2 -}; -SWFUpload.WINDOW_MODE = { - WINDOW : "window", - TRANSPARENT : "transparent", - OPAQUE : "opaque" -}; + //展开分类 + $('#spread-sort').click(function() { + $defaultSorts.slideUp(function() { + $allSorts.slideDown(); + }); + }); + + //收起分类 + $('#retract-sort').click(function() { + $allSorts.slideUp(function() { + $defaultSorts.slideDown(); + }); + }); + + //降价通知 + $('.price-down-clock').click(function() { + $curClock = $(this); + curSkn = $curClock.closest('.fav-good').data('id'); + showNoticeBox(); + }); + + //checkbox【手动触发checkbox点击后跳转链接的地址】 + $('.reduction-filter input[type="checkbox"]').change(function() { + location.href = $(this).parent().attr('href'); + }); + + //降价通知确定按钮 + $('#price-notice').on('click', '.close', function() { + closeNoticeBox(); + }).on('click', '.price-notice-sure', function() { + var phone, + errTxt; -// Private: takes a URL, determines if it is relative and converts to an absolute URL -// using the current site. Only processes the URL if it can, otherwise returns the URL untouched -SWFUpload.completeURL = function(url) { - if (typeof(url) !== "string" || url.match(/^https?:\/\//i) || url.match(/^\//)) { - return url; - } - - var currentURL = window.location.protocol + "//" + window.location.hostname + (window.location.port ? ":" + window.location.port : ""); - - var indexSlash = window.location.pathname.lastIndexOf("/"); - if (indexSlash <= 0) { - path = "/"; - } else { - path = window.location.pathname.substr(0, indexSlash) + "/"; - } - - return /*currentURL +*/ path + url; - -}; + if (!$priceNotice.hasClass('error') && !$noticeContent.hasClass('hide')) { + //订阅到手机号 + phone = $.trim($phone.val()); -/* ******************** */ -/* Instance Members */ -/* ******************** */ + if (phone === '' || !phoneReg.test(phone)) { + errTxt = phone === '' ? '请输入手机号码' : '手机号码格式不正确'; -// Private: initSettings ensures that all the -// settings are set, getting a default value if one was not assigned. -SWFUpload.prototype.initSettings = function () { - this.ensureDefault = function (settingName, defaultValue) { - this.settings[settingName] = (this.settings[settingName] == undefined) ? defaultValue : this.settings[settingName]; - }; - - // Upload backend settings - this.ensureDefault("upload_url", ""); - this.ensureDefault("preserve_relative_urls", false); - this.ensureDefault("file_post_name", "Filedata"); - this.ensureDefault("post_params", {}); - this.ensureDefault("use_query_string", false); - this.ensureDefault("requeue_on_error", false); - this.ensureDefault("http_success", []); - this.ensureDefault("assume_success_timeout", 0); - - // File Settings - this.ensureDefault("file_types", "*.*"); - this.ensureDefault("file_types_description", "All Files"); - this.ensureDefault("file_size_limit", 0); // Default zero means "unlimited" - this.ensureDefault("file_upload_limit", 0); - this.ensureDefault("file_queue_limit", 0); + $phone.addClass('error'); + $('#price-notice .err-text').removeClass('hide').find('em').html(errTxt); + return; + } else { + $phone.removeClass('error'); + $('#price-notice .err-text').addClass('hide'); + } - // Flash Settings - this.ensureDefault("flash_url", "swfupload.swf"); - this.ensureDefault("prevent_swf_caching", true); - - // Button Settings - this.ensureDefault("button_image_url", ""); - this.ensureDefault("button_width", 1); - this.ensureDefault("button_height", 1); - this.ensureDefault("button_text", ""); - this.ensureDefault("button_text_style", "color: #000000; font-size: 16pt;"); - this.ensureDefault("button_text_top_padding", 0); - this.ensureDefault("button_text_left_padding", 0); - this.ensureDefault("button_action", SWFUpload.BUTTON_ACTION.SELECT_FILES); - this.ensureDefault("button_disabled", false); - this.ensureDefault("button_placeholder_id", ""); - this.ensureDefault("button_placeholder", null); - this.ensureDefault("button_cursor", SWFUpload.CURSOR.ARROW); - this.ensureDefault("button_window_mode", SWFUpload.WINDOW_MODE.WINDOW); - - // Debug Settings - this.ensureDefault("debug", false); - this.settings.debug_enabled = this.settings.debug; // Here to maintain v2 API - - // Event Handlers - this.settings.return_upload_start_handler = this.returnUploadStart; - this.ensureDefault("swfupload_loaded_handler", null); - this.ensureDefault("file_dialog_start_handler", null); - this.ensureDefault("file_queued_handler", null); - this.ensureDefault("file_queue_error_handler", null); - this.ensureDefault("file_dialog_complete_handler", null); - - this.ensureDefault("upload_start_handler", null); - this.ensureDefault("upload_progress_handler", null); - this.ensureDefault("upload_error_handler", null); - this.ensureDefault("upload_success_handler", null); - this.ensureDefault("upload_complete_handler", null); - - this.ensureDefault("debug_handler", this.debugMessage); + if (reduction.phone !== '' && reduction.phone !== phone && !reduction.change) { + $('#price-notice .phone-diff').removeClass('hide'); + reduction.change = true; + return; + } - this.ensureDefault("custom_settings", {}); + $.ajax({ + type: 'GET', + url: '/home/favorite/notice', + data: { + mobile: phone, + id: curSkn + } + }).then(function(data) { + if (data.code === 200) { + syncSubscribeNum(data.data.num); + $noticeSuccess.removeClass('hide'); + $noticeContent.addClass('hide'); - // Other settings - this.customSettings = this.settings.custom_settings; - - // Update the flash url if needed - if (!!this.settings.prevent_swf_caching) { - this.settings.flash_url = this.settings.flash_url + (this.settings.flash_url.indexOf("?") < 0 ? "?" : "&") + "preventswfcaching=" + new Date().getTime(); - } - - if (!this.settings.preserve_relative_urls) { - //this.settings.flash_url = SWFUpload.completeURL(this.settings.flash_url); // Don't need to do this one since flash doesn't look at it - this.settings.upload_url = SWFUpload.completeURL(this.settings.upload_url); - if (this.settings.button_image_url) { - this.settings.button_image_url = SWFUpload.completeURL(this.settings.button_image_url); + reduction.phone = phone; + reduction.change = false; + $('#price-notice .phone-diff').addClass('hide'); + + //切换商品通知文字 + $curClock.toggleClass('noticed').text(clockTxt.off); + } else { + if (data.message) { + $noticeErrorMsg.text(data.message); + $priceNotice.removeClass('hide').addClass('error'); + } + } + }); + } else { + + //关闭窗口 + closeNoticeBox(); } - } - - delete this.ensureDefault; -}; + }); -// Private: loadFlash replaces the button_placeholder element with the flash movie. -SWFUpload.prototype.loadFlash = function () { - var targetElement, tempParent; + //商品可参加活动 + $('.has-activity').click(function() { + var $this = $(this), + $activites = $this.next('.activites'), + $li = $this.closest('li'); - // Make sure an element with the ID we are going to use doesn't already exist - if (document.getElementById(this.movieName) !== null) { - throw "ID " + this.movieName + " is already in use. The Flash Object could not be added"; - } + if ($activites.hasClass('hide')) { - // Get the element where we will be placing the flash movie - targetElement = document.getElementById(this.settings.button_placeholder_id) || this.settings.button_placeholder; + //显示 + $activites.removeClass('hide'); + $li.css('padding-bottom', $activites.outerHeight()); + } else { - if (targetElement == undefined) { - throw "Could not find the placeholder element: " + this.settings.button_placeholder_id; - } + //隐藏 + $activites.addClass('hide'); + $li.css('padding-bottom', ''); + } + }); +}()); - // Append the container and load the flash - tempParent = document.createElement("div"); - tempParent.innerHTML = this.getFlashHTML(); // Using innerHTML is non-standard but the only sensible way to dynamically add Flash in IE (and maybe other browsers) - targetElement.parentNode.replaceChild(tempParent.firstChild, targetElement); - // Fix IE Flash/Form bug - if (window[this.movieName] == undefined) { - window[this.movieName] = this.getMovieElement(); - } - -}; +//品牌收藏 +(function() { + var naTpl; + var naCache = {}; -// Private: getFlashHTML generates the object tag needed to embed the flash in to the document -SWFUpload.prototype.getFlashHTML = function () { - // Flash Satay object syntax: http://www.alistapart.com/articles/flashsatay - return ['<object id="', this.movieName, '" type="application/x-shockwave-flash" data="', this.settings.flash_url, '" width="', this.settings.button_width, '" height="', this.settings.button_height, '" class="swfupload">', - '<param name="wmode" value="', this.settings.button_window_mode, '" />', - '<param name="movie" value="', this.settings.flash_url, '" />', - '<param name="quality" value="high" />', - '<param name="menu" value="false" />', - '<param name="allowScriptAccess" value="always" />', - '<param name="flashvars" value="' + this.getFlashVars() + '" />', - '</object>'].join(""); -}; + /** + * 翻页控制 + * @param $li 当前品牌容器 + * @param flag 翻页方向/-1-pre 1-next + */ + function pageControll($li, flag) { + var id = $li.data('id'), + $ul = $li.find('.na-goods-ul'), + theCache = naCache[id], + curPage = theCache.cur ? theCache.cur : 1, + page = Math.ceil(theCache.total / 5); -// Private: getFlashVars builds the parameter string that will be passed -// to flash in the flashvars param. -SWFUpload.prototype.getFlashVars = function () { - // Build a string from the post param object - var paramString = this.buildParamString(); - var httpSuccessString = this.settings.http_success.join(","); - - // Build the parameter string - return ["movieName=", encodeURIComponent(this.movieName), - "&uploadURL=", encodeURIComponent(this.settings.upload_url), - "&useQueryString=", encodeURIComponent(this.settings.use_query_string), - "&requeueOnError=", encodeURIComponent(this.settings.requeue_on_error), - "&httpSuccess=", encodeURIComponent(httpSuccessString), - "&assumeSuccessTimeout=", encodeURIComponent(this.settings.assume_success_timeout), - "&params=", encodeURIComponent(paramString), - "&filePostName=", encodeURIComponent(this.settings.file_post_name), - "&fileTypes=", encodeURIComponent(this.settings.file_types), - "&fileTypesDescription=", encodeURIComponent(this.settings.file_types_description), - "&fileSizeLimit=", encodeURIComponent(this.settings.file_size_limit), - "&fileUploadLimit=", encodeURIComponent(this.settings.file_upload_limit), - "&fileQueueLimit=", encodeURIComponent(this.settings.file_queue_limit), - "&debugEnabled=", encodeURIComponent(this.settings.debug_enabled), - "&buttonImageURL=", encodeURIComponent(this.settings.button_image_url), - "&buttonWidth=", encodeURIComponent(this.settings.button_width), - "&buttonHeight=", encodeURIComponent(this.settings.button_height), - "&buttonText=", encodeURIComponent(this.settings.button_text), - "&buttonTextTopPadding=", encodeURIComponent(this.settings.button_text_top_padding), - "&buttonTextLeftPadding=", encodeURIComponent(this.settings.button_text_left_padding), - "&buttonTextStyle=", encodeURIComponent(this.settings.button_text_style), - "&buttonAction=", encodeURIComponent(this.settings.button_action), - "&buttonDisabled=", encodeURIComponent(this.settings.button_disabled), - "&buttonCursor=", encodeURIComponent(this.settings.button_cursor) - ].join(""); -}; + var $pre = $li.find('.na-pre'); + var $next = $li.find('.na-next'); + + curPage += flag; + + //初始 + $pre.removeClass('hidden'); + $next.removeClass('hidden'); -// Public: getMovieElement retrieves the DOM reference to the Flash element added by SWFUpload -// The element is cached after the first lookup -SWFUpload.prototype.getMovieElement = function () { - if (this.movieElement == undefined) { - this.movieElement = document.getElementById(this.movieName); + //第一页 + if (curPage === 1) { + $pre.addClass('hidden'); + } + + //最后一页 + if (curPage === page) { + $next.addClass('hidden'); + } + + $ul.animate({ + marginLeft: -(curPage - 1) * $ul.parent('.na-goods').width() + }, 200); + + theCache.cur = curPage; } - if (this.movieElement === null) { - throw "Could not find Flash element"; + function setListPadding($li, $naList) { + $li.css('padding-bottom', $naList.outerHeight() + 10); } - - return this.movieElement; -}; -// Private: buildParamString takes the name/value pairs in the post_params setting object -// and joins them up in to a string formatted "name=value&name=value" -SWFUpload.prototype.buildParamString = function () { - var postParams = this.settings.post_params; - var paramStringPairs = []; + if ($('.fav-brands').length === 0) { + return; + } - if (typeof(postParams) === "object") { - for (var name in postParams) { - if (postParams.hasOwnProperty(name)) { - paramStringPairs.push(encodeURIComponent(name.toString()) + "=" + encodeURIComponent(postParams[name].toString())); - } + naTpl = Handlebars.compile($('#na-tpl').html()); + + // 新品到着【重要信息:最多显示20个新品到着商品】 + $('.na-trigger').click(function() { + var $this = $(this), + $naList = $this.next('.na-list'), + $li = $this.closest('li'), + id; + + if (!$naList.hasClass('hide')) { + $naList.addClass('hide'); + $li.css('padding-bottom', ''); + return; } - } - return paramStringPairs.join("&"); -}; + id = $li.data('id'); -// Public: Used to remove a SWFUpload instance from the page. This method strives to remove -// all references to the SWF, and other objects so memory is properly freed. -// Returns true if everything was destroyed. Returns a false if a failure occurs leaving SWFUpload in an inconsistant state. -// Credits: Major improvements provided by steffen -SWFUpload.prototype.destroy = function () { - try { - // Make sure Flash is done before we try to remove it - this.cancelUpload(null, false); - + if (naCache[id] && naCache[id].cache) { + $naList.removeClass('hide'); + setListPadding($li, $naList); + return; + } - // Remove the SWFUpload DOM nodes - var movieElement = null; - movieElement = this.getMovieElement(); - - if (movieElement && typeof(movieElement.CallFunction) === "unknown") { // We only want to do this in IE - // Loop through all the movie's properties and remove all function references (DOM/JS IE 6/7 memory leak workaround) - for (var i in movieElement) { - try { - if (typeof(movieElement[i]) === "function") { - movieElement[i] = null; - } - } catch (ex1) {} + $.ajax({ + type: 'GET', + url: '/home/favorite/newproduct', + data: { + id: id } + }).then(function(data) { + var html, + res, + tplData; - // Remove the Movie Element from the page - try { - movieElement.parentNode.removeChild(movieElement); - } catch (ex) {} - } - - // Remove IE form fix reference - window[this.movieName] = null; + if (data.code === 200) { + res = data.data; + tplData = res.length === 0 ? {} : { + naGoods: res + }; + html = naTpl(tplData); - // Destroy other references - SWFUpload.instances[this.movieName] = null; - delete SWFUpload.instances[this.movieName]; + $naList.removeClass('hide').find('.na-content').html(html); + setListPadding($li, $naList); - this.movieElement = null; - this.settings = null; - this.customSettings = null; - this.eventQueue = null; - this.movieName = null; - - - return true; - } catch (ex2) { - return false; - } -}; + //初始,判断是否显示Next翻页 + if (res.length > 5) { + $li.find('.na-next').removeClass('hidden'); + } + if (!naCache[id]) { + naCache[id] = {}; + } -// Public: displayDebugInfo prints out settings and configuration -// information about this SWFUpload instance. -// This function (and any references to it) can be deleted when placing -// SWFUpload in production. -SWFUpload.prototype.displayDebugInfo = function () { - this.debug( - [ - "---SWFUpload Instance Info---\n", - "Version: ", SWFUpload.version, "\n", - "Movie Name: ", this.movieName, "\n", - "Settings:\n", - "\t", "upload_url: ", this.settings.upload_url, "\n", - "\t", "flash_url: ", this.settings.flash_url, "\n", - "\t", "use_query_string: ", this.settings.use_query_string.toString(), "\n", - "\t", "requeue_on_error: ", this.settings.requeue_on_error.toString(), "\n", - "\t", "http_success: ", this.settings.http_success.join(", "), "\n", - "\t", "assume_success_timeout: ", this.settings.assume_success_timeout, "\n", - "\t", "file_post_name: ", this.settings.file_post_name, "\n", - "\t", "post_params: ", this.settings.post_params.toString(), "\n", - "\t", "file_types: ", this.settings.file_types, "\n", - "\t", "file_types_description: ", this.settings.file_types_description, "\n", - "\t", "file_size_limit: ", this.settings.file_size_limit, "\n", - "\t", "file_upload_limit: ", this.settings.file_upload_limit, "\n", - "\t", "file_queue_limit: ", this.settings.file_queue_limit, "\n", - "\t", "debug: ", this.settings.debug.toString(), "\n", + naCache[id].cache = true;//set cache + naCache[id].total = res.length; + } + }); + }); - "\t", "prevent_swf_caching: ", this.settings.prevent_swf_caching.toString(), "\n", + $('.na-content').on('click', '.na-pre, .na-next', function() { + var $this = $(this); - "\t", "button_placeholder_id: ", this.settings.button_placeholder_id.toString(), "\n", - "\t", "button_placeholder: ", (this.settings.button_placeholder ? "Set" : "Not Set"), "\n", - "\t", "button_image_url: ", this.settings.button_image_url.toString(), "\n", - "\t", "button_width: ", this.settings.button_width.toString(), "\n", - "\t", "button_height: ", this.settings.button_height.toString(), "\n", - "\t", "button_text: ", this.settings.button_text.toString(), "\n", - "\t", "button_text_style: ", this.settings.button_text_style.toString(), "\n", - "\t", "button_text_top_padding: ", this.settings.button_text_top_padding.toString(), "\n", - "\t", "button_text_left_padding: ", this.settings.button_text_left_padding.toString(), "\n", - "\t", "button_action: ", this.settings.button_action.toString(), "\n", - "\t", "button_disabled: ", this.settings.button_disabled.toString(), "\n", + var flag = $this.hasClass('na-pre') ? -1 : 1; - "\t", "custom_settings: ", this.settings.custom_settings.toString(), "\n", - "Event Handlers:\n", - "\t", "swfupload_loaded_handler assigned: ", (typeof this.settings.swfupload_loaded_handler === "function").toString(), "\n", - "\t", "file_dialog_start_handler assigned: ", (typeof this.settings.file_dialog_start_handler === "function").toString(), "\n", - "\t", "file_queued_handler assigned: ", (typeof this.settings.file_queued_handler === "function").toString(), "\n", - "\t", "file_queue_error_handler assigned: ", (typeof this.settings.file_queue_error_handler === "function").toString(), "\n", - "\t", "upload_start_handler assigned: ", (typeof this.settings.upload_start_handler === "function").toString(), "\n", - "\t", "upload_progress_handler assigned: ", (typeof this.settings.upload_progress_handler === "function").toString(), "\n", - "\t", "upload_error_handler assigned: ", (typeof this.settings.upload_error_handler === "function").toString(), "\n", - "\t", "upload_success_handler assigned: ", (typeof this.settings.upload_success_handler === "function").toString(), "\n", - "\t", "upload_complete_handler assigned: ", (typeof this.settings.upload_complete_handler === "function").toString(), "\n", - "\t", "debug_handler assigned: ", (typeof this.settings.debug_handler === "function").toString(), "\n" - ].join("") - ); -}; + pageControll($this.closest('.fav-brand'), flag); + }); +}()); -/* Note: addSetting and getSetting are no longer used by SWFUpload but are included - the maintain v2 API compatibility -*/ -// Public: (Deprecated) addSetting adds a setting value. If the value given is undefined or null then the default_value is used. -SWFUpload.prototype.addSetting = function (name, value, default_value) { - if (value == undefined) { - return (this.settings[name] = default_value); - } else { - return (this.settings[name] = value); +//文章收藏 +(function() { + if ($('.fav-articles').length < 0) { + return; } -}; -// Public: (Deprecated) getSetting gets a setting. Returns an empty string if the setting was not found. -SWFUpload.prototype.getSetting = function (name) { - if (this.settings[name] != undefined) { - return this.settings[name]; + $('.fav-articles .desc').dotdotdot(); +}()); + +if (param && param.length) { + favType = param[1]; +} + +//全选【通用】 +$('#me-checkall').click(function() { + $('.checkbox input[type="checkbox"]').prop('checked', $(this).prop('checked')); +}); + +//删除收藏 +$('.del-favorite').click(function(e) { + var id = $(this).closest('.fav-row').data('id'), + shopid = $(this).closest('.fav-row').data('shopid'), + brandorshoptype = $(this).closest('.fav-row').data('brandorshoptype'); + + e.preventDefault(); + + $.ajax({ + type: 'GET', + url: '/home/favorite/cancel', + data: { + id: id, + shopid: shopid, + brandorshoptype: brandorshoptype, + type: favType + } + }).then(function(data) { + if (data.code === 200) { + history.go(0); + } + }); +}); + +//删除多个商品/品牌/文章【通用】 +$('#me-del-checked').click(function() { + var ids = [], + name = '商品'; + + if (favType === 'brand') { + name = '品牌'; + } else if (favType === 'article') { + name = '文章'; } - return ""; -}; + if (confirm('您确定要删除您收藏的' + name + '吗?')) { + $('.checkbox input[type="checkbox"]:checked').each(function() { + ids.push($(this).closest('.fav-row').data('id')); + }); + if (ids.length === 0) { + alert('请选中您要移除的' + name); + return; + } + $.ajax({ + type: 'GET', + url: '/home/favorite/cancel', + data: { + id: ids.join(','), + type: favType + } + }).then(function(data) { + if (data.code === 200) { + history.go(0); + } + }); + } +}); -// Private: callFlash handles function calls made to the Flash element. -// Calls are made with a setTimeout for some functions to work around -// bugs in the ExternalInterface library. -SWFUpload.prototype.callFlash = function (functionName, argumentArray) { - argumentArray = argumentArray || []; - - var movieElement = this.getMovieElement(); - var returnValue, returnString; +if (location.href.match(/is_reduction=(.*)[&]*/)) { + $('.reductionChecked').attr('checked', true); +} +if (location.href.match(/is_promotion=(.*)[&]*/)) { + $('.activityChecked').attr('checked', true); +} +}); +define("js/home/currency", ["jquery"], function(require, exports, module){ +/** + * 我的YOHO币 + * @author: xuqi<qi.xu@yoho.cn> + * @date: 2016/3/22 + */ - // Flash's method if calling ExternalInterface methods (code adapted from MooTools). - try { - returnString = movieElement.CallFunction('<invoke name="' + functionName + '" returntype="javascript">' + __flash__argumentsToXML(argumentArray, 0) + '</invoke>'); - returnValue = eval(returnString); - } catch (ex) { - throw "Call to " + functionName + " failed"; - } - - // Unescape file post param values - if (returnValue != undefined && typeof returnValue.post === "object") { - returnValue = this.unescapeFilePostParams(returnValue); - } +var $ = require("jquery"); - return returnValue; -}; +$('.filter-select').change(function() { + location.href = $(this).val(); +}); +}); +define("js/home/returns", ["jquery","handlebars","source-map"], function(require, exports, module){ +/** + * 我的退/换货 + * @author: yyqing<yanqing.yang@yoho.cn> + * @date: 2016/2/26 + */ + +require("js/home/returns-detail"); +require("js/home/returns-apply"); +}); +define("js/home/returns-detail", ["jquery"], function(require, exports, module){ +/** + * 退换货详情 + * @author: yyqing<yanqing.yang@yoho.cn> + * @date: 2016/2/26 + */ -/* ***************************** - -- Flash control methods -- - Your UI should use these - to operate SWFUpload - ***************************** */ +var $ = require("jquery"); -// WARNING: this function does not work in Flash Player 10 -// Public: selectFile causes a File Selection Dialog window to appear. This -// dialog only allows 1 file to be selected. -SWFUpload.prototype.selectFile = function () { - this.callFlash("SelectFile"); -}; +var $returnState = $('.visual-return-state li'), + $detail = $('.detail-container'), + $courierCode = $('.courier-code'), + $expressCompany = $('#express-company'), + $expressNumber = $('#express-number'), + $expressViewBox = $('.express-view-box > span'); -// WARNING: this function does not work in Flash Player 10 -// Public: selectFiles causes a File Selection Dialog window to appear/ This -// dialog allows the user to select any number of files -// Flash Bug Warning: Flash limits the number of selectable files based on the combined length of the file names. -// If the selection name length is too long the dialog will fail in an unpredictable manner. There is no work-around -// for this bug. -SWFUpload.prototype.selectFiles = function () { - this.callFlash("SelectFiles"); -}; +var returnId = $('#return-id').val(), + expId = $('#express-old-id').val(), + expNumber = $expressNumber.val(), + expCompany = '', + expList = {}, + isChange = false; +function syncExpressInfo() { + expCompany = expList[expId] ? expList[expId] : ''; + $expressViewBox.html(expCompany + ' 快递单号:' + expNumber); + $expressCompany.val(expId); + $expressNumber.val(expNumber); +} -// Public: startUpload starts uploading the first file in the queue unless -// the optional parameter 'fileID' specifies the ID -SWFUpload.prototype.startUpload = function (fileID) { - this.callFlash("StartUpload", [fileID]); -}; +function validateExpress() { + var send = {}; -// Public: cancelUpload cancels any queued file. The fileID parameter may be the file ID or index. -// If you do not specify a fileID the current uploading file or first file in the queue is cancelled. -// If you do not want the uploadError event to trigger you can specify false for the triggerErrorEvent parameter. -SWFUpload.prototype.cancelUpload = function (fileID, triggerErrorEvent) { - if (triggerErrorEvent !== false) { - triggerErrorEvent = true; + send.number = $expressNumber.val(); + send.id = $expressCompany.val() * 1; + + if (!send.id) { + alert('请选择快递公司'); + } else if (!send.number) { + alert('请填入快递单号'); + } else { + return send; } - this.callFlash("CancelUpload", [fileID, triggerErrorEvent]); -}; -// Public: stopUpload stops the current upload and requeues the file at the beginning of the queue. -// If nothing is currently uploading then nothing happens. -SWFUpload.prototype.stopUpload = function () { - this.callFlash("StopUpload"); -}; + return false; +} -/* ************************ - * Settings methods - * These methods change the SWFUpload settings. - * SWFUpload settings should not be changed directly on the settings object - * since many of the settings need to be passed to Flash in order to take - * effect. - * *********************** */ +function sendExpressCode() { + var sendParm = validateExpress(); -// Public: getStats gets the file statistics object. -SWFUpload.prototype.getStats = function () { - return this.callFlash("GetStats"); -}; + if (!sendParm) { + return; + } -// Public: setStats changes the SWFUpload statistics. You shouldn't need to -// change the statistics but you can. Changing the statistics does not -// affect SWFUpload accept for the successful_uploads count which is used -// by the upload_limit setting to determine how many files the user may upload. -SWFUpload.prototype.setStats = function (statsObject) { - this.callFlash("SetStats", [statsObject]); -}; + $.ajax({ + type: 'POST', + url: '/home/returns/setExpressNumber', + data: { + id: returnId, + isChange: isChange, + expressId: sendParm.id, + expressNumber: sendParm.number, + expressCompany: expList[sendParm.id] + } + }).then(function(jsonData) { + if (jsonData.code === 200) { + expId = sendParm.id; + expNumber = sendParm.number; + $returnState.eq(2).addClass('act'); + } else { + alert(jsonData.message); + } + syncExpressInfo(); + $courierCode.removeClass('in-edit'); + }); +} -// Public: getFile retrieves a File object by ID or Index. If the file is -// not found then 'null' is returned. -SWFUpload.prototype.getFile = function (fileID) { - if (typeof(fileID) === "number") { - return this.callFlash("GetFileByIndex", [fileID]); - } else { - return this.callFlash("GetFile", [fileID]); - } -}; +if ($detail.parent().hasClass('exchange-detail')) { + isChange = true; +} -// Public: addFileParam sets a name/value pair that will be posted with the -// file specified by the Files ID. If the name already exists then the -// exiting value will be overwritten. -SWFUpload.prototype.addFileParam = function (fileID, name, value) { - return this.callFlash("AddFileParam", [fileID, name, value]); -}; +$expressCompany.val(expId); -// Public: removeFileParam removes a previously set (by addFileParam) name/value -// pair from the specified file. -SWFUpload.prototype.removeFileParam = function (fileID, name) { - this.callFlash("RemoveFileParam", [fileID, name]); -}; +$detail.find('.company-list').each(function() { + var data = $(this).data(); -// Public: setUploadUrl changes the upload_url setting. -SWFUpload.prototype.setUploadURL = function (url) { - this.settings.upload_url = url.toString(); - this.callFlash("SetUploadURL", [url]); -}; + expList[data.id] = data.name; +}); -// Public: setPostParams changes the post_params setting -SWFUpload.prototype.setPostParams = function (paramsObject) { - this.settings.post_params = paramsObject; - this.callFlash("SetPostParams", [paramsObject]); -}; +$('#modify').click(function() { + $courierCode.addClass('in-edit'); +}); -// Public: addPostParam adds post name/value pair. Each name can have only one value. -SWFUpload.prototype.addPostParam = function (name, value) { - this.settings.post_params[name] = value; - this.callFlash("SetPostParams", [this.settings.post_params]); -}; +$('#submit-btn').click(function() { + sendExpressCode(); +}); +}); +define("js/home/returns-apply", ["jquery","handlebars","source-map"], function(require, exports, module){ +/** + * 退换货申请 + * @author: yyqing<yanqing.yang@yoho.cn> + * @date: 2016/2/29 + */ +var $ = require("jquery"), + Addr = require("js/home/common-address"); + +var $goodsTable = $('#goods-table'), + $checkBox = $goodsTable.find('input[type="checkbox"]'), + $reasons = $goodsTable.find('.return-reason'), + $file = $goodsTable.find('input[type=file]'), + $refundType = $('input[name="refund-type"]'), + $province = $('#province'), + $city = $('#city'), + $areaCode = $('#area'); -// Public: removePostParam deletes post name/value pair. -SWFUpload.prototype.removePostParam = function (name) { - delete this.settings.post_params[name]; - this.callFlash("SetPostParams", [this.settings.post_params]); -}; +var $refundInfo = $('#refund-pay-info'), + $payYoho = $refundInfo.find('.type-yoho'), + $payBank = $refundInfo.find('.type-bank'), + $payAli = $refundInfo.find('.type-alipay'); -// Public: setFileTypes changes the file_types setting and the file_types_description setting -SWFUpload.prototype.setFileTypes = function (types, description) { - this.settings.file_types = types; - this.settings.file_types_description = description; - this.callFlash("SetFileTypes", [types, description]); -}; +var $exchange = $('.exchange-detail'), + $hidePhone = $exchange.find('input[name="hide-phone"]'), + $refundMode = $exchange.find('.refund-mode'); -// Public: setFileSizeLimit changes the file_size_limit setting -SWFUpload.prototype.setFileSizeLimit = function (fileSizeLimit) { - this.settings.file_size_limit = fileSizeLimit; - this.callFlash("SetFileSizeLimit", [fileSizeLimit]); -}; +var $submitBox = $('.submit-box'), + $waitPoint = $submitBox.find('.wait-gif span'); -// Public: setFileUploadLimit changes the file_upload_limit setting -SWFUpload.prototype.setFileUploadLimit = function (fileUploadLimit) { - this.settings.file_upload_limit = fileUploadLimit; - this.callFlash("SetFileUploadLimit", [fileUploadLimit]); -}; +var pageType = 0, // 0-换货 1-退货 + orderCode = $('#order-code').val(), + defaultArea = $exchange.find('input[name="hide-area"]').val(), + defaultPhone = $hidePhone.val(), + disPhone = '', + verifyTip = '', + colorSize = {}, + timer; -// Public: setFileQueueLimit changes the file_queue_limit setting -SWFUpload.prototype.setFileQueueLimit = function (fileQueueLimit) { - this.settings.file_queue_limit = fileQueueLimit; - this.callFlash("SetFileQueueLimit", [fileQueueLimit]); -}; +require("plugin/jquery.qupload"); -// Public: setFilePostName changes the file_post_name setting -SWFUpload.prototype.setFilePostName = function (filePostName) { - this.settings.file_post_name = filePostName; - this.callFlash("SetFilePostName", [filePostName]); -}; +if (defaultPhone) { + $hidePhone.remove(); + disPhone = defaultPhone.replace(/(\d{3})\d{4}(\d{4})/, '$1****$2'); + $exchange.find('input[name="phone"]').val(disPhone); +} -// Public: setUseQueryString changes the use_query_string setting -SWFUpload.prototype.setUseQueryString = function (useQueryString) { - this.settings.use_query_string = useQueryString; - this.callFlash("SetUseQueryString", [useQueryString]); -}; +function syncRefundMode(code) { + $.ajax({ + type: 'POST', + url: '/home/returns/getDelivery', + data: { + areaCode: code + } + }).then(function(jsonData) { + var _html = ''; -// Public: setRequeueOnError changes the requeue_on_error setting -SWFUpload.prototype.setRequeueOnError = function (requeueOnError) { - this.settings.requeue_on_error = requeueOnError; - this.callFlash("SetRequeueOnError", [requeueOnError]); -}; + if (jsonData.code === 200) { + $.each(jsonData.data, function(k, v) { + var checked = ''; -// Public: setHTTPSuccess changes the http_success setting -SWFUpload.prototype.setHTTPSuccess = function (http_status_codes) { - if (typeof http_status_codes === "string") { - http_status_codes = http_status_codes.replace(" ", "").split(","); + if (v.is_default === 'Y') { + checked = 'checked="checked"'; + } + _html += '<input type="radio" name="delivery-tpye" value="' + + v.id + '" ' + checked + '"">' + v.name; + }); + $refundMode.html(_html); + } + }); +} + +function setBackInput(type) { + $payYoho.hide(); + if (type === 2) { + $payBank.show(); + $payAli.hide(); + $payYoho.hide(); + } else if (type === 3) { + $payAli.show(); + $payBank.hide(); + $payYoho.hide(); + } else if (type === 4) { + $payYoho.show(); + $payBank.hide(); + $payAli.hide(); } - - this.settings.http_success = http_status_codes; - this.callFlash("SetHTTPSuccess", [http_status_codes]); -}; +} -// Public: setHTTPSuccess changes the http_success setting -SWFUpload.prototype.setAssumeSuccessTimeout = function (timeout_seconds) { - this.settings.assume_success_timeout = timeout_seconds; - this.callFlash("SetAssumeSuccessTimeout", [timeout_seconds]); -}; +if ($refundInfo.length) { + pageType = 1; -// Public: setDebugEnabled changes the debug_enabled setting -SWFUpload.prototype.setDebugEnabled = function (debugEnabled) { - this.settings.debug_enabled = debugEnabled; - this.callFlash("SetDebugEnabled", [debugEnabled]); -}; + $refundType.each(function() { + if ($(this).prop('checked')) { + setBackInput($(this).val() * 1); + } + }); +} else if (defaultArea) { + syncRefundMode(defaultArea); +} -// Public: setButtonImageURL loads a button image sprite -SWFUpload.prototype.setButtonImageURL = function (buttonImageURL) { - if (buttonImageURL == undefined) { - buttonImageURL = ""; - } - - this.settings.button_image_url = buttonImageURL; - this.callFlash("SetButtonImageURL", [buttonImageURL]); -}; +defaultArea = defaultArea ? defaultArea : ''; +Addr.loadAllData(defaultArea, { + areaDomId: 'area' +}); -// Public: setButtonDimensions resizes the Flash Movie and button -SWFUpload.prototype.setButtonDimensions = function (width, height) { - this.settings.button_width = width; - this.settings.button_height = height; - - var movie = this.getMovieElement(); - if (movie != undefined) { - movie.style.width = width + "px"; - movie.style.height = height + "px"; - } - - this.callFlash("SetButtonDimensions", [width, height]); -}; -// Public: setButtonText Changes the text overlaid on the button -SWFUpload.prototype.setButtonText = function (html) { - this.settings.button_text = html; - this.callFlash("SetButtonText", [html]); -}; -// Public: setButtonTextPadding changes the top and left padding of the text overlay -SWFUpload.prototype.setButtonTextPadding = function (left, top) { - this.settings.button_text_top_padding = top; - this.settings.button_text_left_padding = left; - this.callFlash("SetButtonTextPadding", [left, top]); -}; +// 页面获取size列表数据 +$goodsTable.find('.sizeinfo').each(function() { + var sizes = []; -// Public: setButtonTextStyle changes the CSS used to style the HTML/Text overlaid on the button -SWFUpload.prototype.setButtonTextStyle = function (css) { - this.settings.button_text_style = css; - this.callFlash("SetButtonTextStyle", [css]); -}; -// Public: setButtonDisabled disables/enables the button -SWFUpload.prototype.setButtonDisabled = function (isDisabled) { - this.settings.button_disabled = isDisabled; - this.callFlash("SetButtonDisabled", [isDisabled]); -}; -// Public: setButtonAction sets the action that occurs when the button is clicked -SWFUpload.prototype.setButtonAction = function (buttonAction) { - this.settings.button_action = buttonAction; - this.callFlash("SetButtonAction", [buttonAction]); -}; + $(this).children().each(function() { + sizes.push($(this).data()); + }); + colorSize[$(this).data().id] = sizes; +}); -// Public: setButtonCursor changes the mouse cursor displayed when hovering over the button -SWFUpload.prototype.setButtonCursor = function (cursor) { - this.settings.button_cursor = cursor; - this.callFlash("SetButtonCursor", [cursor]); -}; +$reasons.change(function() { + var $par = $(this).parent().parent(), + type = $(this).val() * 1; -/* ******************************* - Flash Event Interfaces - These functions are used by Flash to trigger the various - events. - - All these functions a Private. - - Because the ExternalInterface library is buggy the event calls - are added to a queue and the queue then executed by a setTimeout. - This ensures that events are executed in a determinate order and that - the ExternalInterface bugs are avoided. -******************************* */ + if (type === 4 || type === 6 || type === 8) { + $par.next().show(); + } else { + $par.next().hide(); + } +}); -SWFUpload.prototype.queueEvent = function (handlerName, argumentArray) { - // Warning: Don't call this.debug inside here or you'll create an infinite loop - - if (argumentArray == undefined) { - argumentArray = []; - } else if (!(argumentArray instanceof Array)) { - argumentArray = [argumentArray]; +$checkBox.change(function() { + var $par = $(this).parent().parent(); + + if ($(this).prop('checked')) { + $par.find('select').prop('disabled', false); + } else { + $par.find('select').val(0).prop('disabled', true); + $par.next().hide(); } - - var self = this; - if (typeof this.settings[handlerName] === "function") { - // Queue the event - this.eventQueue.push(function () { - this.settings[handlerName].apply(this, argumentArray); - }); - - // Execute the next queued event - setTimeout(function () { - self.executeNextEvent(); - }, 0); - - } else if (this.settings[handlerName] !== null) { - throw "Event handler " + handlerName + " is unknown or is not a function"; +}); + +$goodsTable.on('change', '.exchange-color', function() { + var $warp = $(this).closest('.exchange-choose-wrap'), + _html = '<option value="0">请选择尺码</option>', + id = $(this).val(); + + if (colorSize[id]) { + $.each(colorSize[id], function(k, v) { + _html += '<option value="' + v.id + '">' + v.name + '</option>'; + }); } -}; + $warp.find('.exchange-size').html(_html).val(0); +}); -// Private: Causes the next event in the queue to be executed. Since events are queued using a setTimeout -// we must queue them in order to garentee that they are executed in order. -SWFUpload.prototype.executeNextEvent = function () { - // Warning: Don't call this.debug inside here or you'll create an infinite loop +$goodsTable.on('click', '.btn-del', function() { + $(this).parent().empty(); +}); - var f = this.eventQueue ? this.eventQueue.shift() : null; - if (typeof(f) === "function") { - f.apply(this); - } -}; +$file.each(function(e) { + var $this = $('#upload-img-' + e), + $par = $this.closest('.problem-description'); -// Private: unescapeFileParams is part of a workaround for a flash bug where objects passed through ExternalInterface cannot have -// properties that contain characters that are not valid for JavaScript identifiers. To work around this -// the Flash Component escapes the parameter names and we must unescape again before passing them along. -SWFUpload.prototype.unescapeFilePostParams = function (file) { - var reg = /[$]([0-9a-f]{4})/i; - var unescapedPost = {}; - var uk; + $this.qupload({ + button_image_url: '', + upload_url: window.location.origin + '/home/returns/imgUpload', + file_post_name: 'fileData', + button_text: '<span class="btn_upload_text">上传图片</span>', + button_text_style: '.btn_upload_text{color: #ffffff;}', + button_width: 116, + button_height: 33, + button_text_left_padding: 32, + button_text_top_padding: 8, + button_action: window.SWFUpload.BUTTON_ACTION.SELECT_FILE, + file_size_limit: '10240', + file_types: '*.jpg;*.jpeg;*.png;*.bmp', + uploadSuccessed: function(data) { + var $imgList = $par.find('li'), + isShow = false, + img, _html; - if (file != undefined) { - for (var k in file.post) { - if (file.post.hasOwnProperty(k)) { - uk = k; - var match; - while ((match = reg.exec(uk)) !== null) { - uk = uk.replace(match[0], String.fromCharCode(parseInt("0x" + match[1], 16))); + img = JSON.parse(data).imgList[0]; + _html = '<span class="btn-del" title="删除"></span>' + + '<img src="' + img.imgUrl + '" width="126" height="126">' + + '<input type="hidden" name="imgs" value="' + img.imgRelUrl + '">'; + $imgList.each(function() { + if (!isShow && !$(this).find('img').length) { + isShow = true; + $(this).html(_html); } - unescapedPost[uk] = file.post[k]; - } + }); } + }); +}); - file.post = unescapedPost; +$exchange.on('change', '#area', function() { + var code = $(this).val() * 1; + + if (code) { + syncRefundMode(code); } +}); - return file; -}; +$refundType.change(function() { + var type = $(this).val() * 1; -// Private: Called by Flash to see if JS can call in to Flash (test if External Interface is working) -SWFUpload.prototype.testExternalInterface = function () { - try { - return this.callFlash("TestExternalInterface"); - } catch (ex) { - return false; - } -}; + setBackInput(type); +}); -// Private: This event is called by Flash when it has finished loading. Don't modify this. -// Use the swfupload_loaded_handler event setting to execute custom code when SWFUpload has loaded. -SWFUpload.prototype.flashReady = function () { - // Check that the movie element is loaded correctly with its ExternalInterface methods defined - var movieElement = this.getMovieElement(); +// 打包退换货商品信息 +function packGoogsList() { + var goods = [], + type = '换货'; - if (!movieElement) { - this.debug("Flash called back ready but the flash movie can't be found."); - return; + if (pageType) { + type = '退货'; + } + if (!$checkBox.length) { + verifyTip = '没有可以' + type + '的商品'; } - this.cleanUp(movieElement); - - this.queueEvent("swfupload_loaded_handler"); -}; + $checkBox.each(function() { + var $par = $(this).parent().parent(), + $next = $par.next(), + goodsInfo; -// Private: removes Flash added fuctions to the DOM node to prevent memory leaks in IE. -// This function is called by Flash each time the ExternalInterface functions are created. -SWFUpload.prototype.cleanUp = function (movieElement) { - // Pro-actively unhook all the Flash functions - try { - if (this.movieElement && typeof(movieElement.CallFunction) === "unknown") { // We only want to do this in IE - this.debug("Removing Flash functions hooks (this should only run in IE and should prevent memory leaks)"); - for (var key in movieElement) { - try { - if (typeof(movieElement[key]) === "function") { - movieElement[key] = null; - } - } catch (ex) { - } - } + if (verifyTip.length) { + return; } - } catch (ex1) { - - } - // Fix Flashes own cleanup code so if the SWFMovie was removed from the page - // it doesn't display errors. - window["__flash__removeCallback"] = function (instance, name) { - try { - if (instance) { - instance[name] = null; + if ($(this).prop('checked')) { + goodsInfo = { + product_skn: $par.find('input[name="skn"]').val(), + product_skc: $par.find('input[name="skc"]').val(), + product_sku: $par.find('input[name="sku"]').val(), + goods_type: $par.find('input[name="typeid"]').val(), + last_price: $par.find('input[name="price"]').val(), + reason: $par.find('.return-reason').val() * 1 + }; + + if (pageType) { + goodsInfo.returned_reason = goodsInfo.reason; + } else { + goodsInfo.exchange_reason = goodsInfo.reason; + goodsInfo.new_goods_id = $par.find('.exchange-color').val() * 1; + goodsInfo.new_product_sku = $par.find('.exchange-size').val() * 1; + + if (!verifyTip && !goodsInfo.new_goods_id) { + verifyTip = '请选择要换的颜色'; + } + + if (!verifyTip && !goodsInfo.new_product_sku) { + verifyTip = '请选择要换的尺码'; + } + } + if (!verifyTip && !goodsInfo.reason) { + verifyTip = '请选择' + type + '原因'; } - } catch (flashEx) { - - } - }; -}; + if (goodsInfo.reason === 4 || + goodsInfo.reason === 6 || + goodsInfo.reason === 8) { + goodsInfo.remark = $.trim($next.find('textarea').val()); + goodsInfo.evidence_images = []; + $next.find('input[name="imgs"]').each(function() { + goodsInfo.evidence_images.push($(this).val()); + }); + if (!verifyTip && !goodsInfo.remark) { + verifyTip = '请填写' + type + '描述'; + } -/* This is a chance to do something before the browse window opens */ -SWFUpload.prototype.fileDialogStart = function () { - this.queueEvent("file_dialog_start_handler"); -}; + if (!verifyTip && !goodsInfo.evidence_images.length) { + verifyTip = '请上传图片'; + } + } + delete goodsInfo.reason; + goods.push(goodsInfo); + } + }); -/* Called when a file is successfully added to the queue. */ -SWFUpload.prototype.fileQueued = function (file) { - file = this.unescapeFilePostParams(file); - this.queueEvent("file_queued_handler", file); -}; + if (!verifyTip && !goods.length) { + verifyTip = '请选择要' + type + '的商品'; + } + return goods; +} -/* Handle errors that occur when an attempt to queue a file fails. */ -SWFUpload.prototype.fileQueueError = function (file, errorCode, message) { - file = this.unescapeFilePostParams(file); - this.queueEvent("file_queue_error_handler", [file, errorCode, message]); -}; +// 打包退货信息 +function packRefundInfo() { + var res = {}; -/* Called after the file dialog has closed and the selected files have been queued. - You could call startUpload here if you want the queued files to begin uploading immediately. */ -SWFUpload.prototype.fileDialogComplete = function (numFilesSelected, numFilesQueued, numFilesInQueue) { - this.queueEvent("file_dialog_complete_handler", [numFilesSelected, numFilesQueued, numFilesInQueue]); -}; + res.goods = packGoogsList(); + res.payment = {}; -SWFUpload.prototype.uploadStart = function (file) { - file = this.unescapeFilePostParams(file); - this.queueEvent("return_upload_start_handler", file); -}; + $refundType.each(function() { + if ($(this).prop('checked')) { + res.payment.return_amount_mode = $(this).val() * 1; + } + }); -SWFUpload.prototype.returnUploadStart = function (file) { - var returnValue; - if (typeof this.settings.upload_start_handler === "function") { - file = this.unescapeFilePostParams(file); - returnValue = this.settings.upload_start_handler.call(this, file); - } else if (this.settings.upload_start_handler != undefined) { - throw "upload_start_handler must be a function"; + if (!verifyTip && !res.payment.return_amount_mode) { + verifyTip = '请选择退款方式'; } - // Convert undefined to true so if nothing is returned from the upload_start_handler it is - // interpretted as 'true'. - if (returnValue === undefined) { - returnValue = true; - } - - returnValue = !!returnValue; - - this.callFlash("ReturnUploadStart", [returnValue]); -}; + if (res.payment.return_amount_mode === 2) { + res.payment.province = $province.val(); + res.payment.city = $city.val(); + res.payment.area_code = $areaCode.val(); + if (!verifyTip && !res.payment.area_code * 1) { + verifyTip = '请选择银行所在地'; + } + + res.payment.bank_name = $.trim($refundInfo.find('input[name="bank-name"]').val()); + if (!verifyTip && !res.payment.bank_name) { + verifyTip = '请填写银行名称'; + } + res.payment.payee_name = $.trim($refundInfo.find('input[name="payee-name"]').val()); + if (!verifyTip && !res.payment.payee_name) { + verifyTip = '请填写收款人姓名'; + } + res.payment.bank_card = $.trim($refundInfo.find('input[name="bank-card"]').val()); + if (!verifyTip && !res.payment.bank_card) { + verifyTip = '请填写收款账户'; + } -SWFUpload.prototype.uploadProgress = function (file, bytesComplete, bytesTotal) { - file = this.unescapeFilePostParams(file); - this.queueEvent("upload_progress_handler", [file, bytesComplete, bytesTotal]); -}; + } else if (res.payment.return_amount_mode === 3) { + res.payment.alipay_name = $.trim($refundInfo.find('input[name="alipay-name"]').val()); + if (!verifyTip && !res.payment.alipay_name) { + verifyTip = '请填写收款人姓名'; + } -SWFUpload.prototype.uploadError = function (file, errorCode, message) { - file = this.unescapeFilePostParams(file); - this.queueEvent("upload_error_handler", [file, errorCode, message]); -}; + res.payment.alipay_account = $.trim($refundInfo.find('input[name="alipay-account"]').val()); + if (!verifyTip && !res.payment.alipay_account) { + verifyTip = '请填写收款账户'; + } -SWFUpload.prototype.uploadSuccess = function (file, serverData, responseReceived) { - file = this.unescapeFilePostParams(file); - this.queueEvent("upload_success_handler", [file, serverData, responseReceived]); -}; + } + return res; +} -SWFUpload.prototype.uploadComplete = function (file) { - file = this.unescapeFilePostParams(file); - this.queueEvent("upload_complete_handler", file); -}; +// 打包换货信息 +function packExchangeInfo() { + var res = {}; -/* Called by SWFUpload JavaScript and Flash functions when debug is enabled. By default it writes messages to the - internal debug console. You can override this event and have messages written where you want. */ -SWFUpload.prototype.debug = function (message) { - this.queueEvent("debug_handler", message); -}; + res.goods = packGoogsList(); + res.consigneeName = $.trim($exchange.find('input[name="name"]').val()); + if (!verifyTip && !res.consigneeName) { + verifyTip = '请填写收货人姓名'; + } -/* ********************************** - Debug Console - The debug console is a self contained, in page location - for debug message to be sent. The Debug Console adds - itself to the body if necessary. + res.areaCode = $areaCode.val(); + if (!verifyTip && !res.areaCode * 1) { + verifyTip = '请选择地区'; + } - The console is automatically scrolled as messages appear. - - If you are using your own debug handler or when you deploy to production and - have debug disabled you can remove these functions to reduce the file size - and complexity. -********************************** */ - -// Private: debugMessage is the default debug_handler. If you want to print debug messages -// call the debug() function. When overriding the function your own function should -// check to see if the debug setting is true before outputting debug information. -SWFUpload.prototype.debugMessage = function (message) { - if (this.settings.debug) { - var exceptionMessage, exceptionValues = []; + res.address = $.trim($exchange.find('input[name="address"]').val()); + if (!verifyTip && !res.address) { + verifyTip = '请填写详细地址'; + } - // Check for an exception object and print it nicely - if (typeof message === "object" && typeof message.name === "string" && typeof message.message === "string") { - for (var key in message) { - if (message.hasOwnProperty(key)) { - exceptionValues.push(key + ": " + message[key]); - } - } - exceptionMessage = exceptionValues.join("\n") || ""; - exceptionValues = exceptionMessage.split("\n"); - exceptionMessage = "EXCEPTION: " + exceptionValues.join("\nEXCEPTION: "); - SWFUpload.Console.writeLine(exceptionMessage); - } else { - SWFUpload.Console.writeLine(message); + res.mobile = $.trim($exchange.find('input[name="phone"]').val()); + if (res.mobile === disPhone) { + res.mobile = defaultPhone; + } else { + if (!verifyTip && !res.mobile) { + verifyTip = '请填写手机号'; } } -}; -SWFUpload.Console = {}; -SWFUpload.Console.writeLine = function (message) { - var console, documentForm; + res.zipCode = $.trim($exchange.find('input[name="postcode"]').val()); + res.deliveryType = $exchange.find('input[name="delivery-tpye"]:checked').val(); + if (!verifyTip && !res.deliveryType) { + verifyTip = '请选择商品返回方式'; + } - try { - console = document.getElementById("SWFUpload_Console"); + return res; +} - if (!console) { - documentForm = document.createElement("form"); - document.getElementsByTagName("body")[0].appendChild(documentForm); +function loadWaiting(status) { + var text = '○'; - console = document.createElement("textarea"); - console.id = "SWFUpload_Console"; - console.style.fontFamily = "monospace"; - console.setAttribute("wrap", "off"); - console.wrap = "off"; - console.style.overflow = "auto"; - console.style.width = "700px"; - console.style.height = "350px"; - console.style.margin = "5px"; - documentForm.appendChild(console); - } + if (status) { + $submitBox.addClass('applying'); + timer = setInterval(function() { + $waitPoint.text(text); + if (text.length > 3) { + text = ''; + } + text += '○'; + }, 600); + } else { + $submitBox.removeClass('applying'); + clearInterval(timer); + } +} - console.value += message + "\n"; +// 提交申请 +$('.save-btn').click(function() { + var url, data; - console.scrollTop = console.scrollHeight - console.clientHeight; - } catch (ex) { - alert("Exception: " + ex.name + " Message: " + ex.message); + verifyTip = ''; // 初始化提示语 + if (pageType) { + url = '/home/returns/saveRefund'; + data = packRefundInfo(); + } else { + url = '/home/returns/saveExchange'; + data = packExchangeInfo(); } -}; + data.orderCode = orderCode; -exports.SWFUpload = SWFUpload; + if (verifyTip) { + alert(verifyTip); + return; + } + + loadWaiting(true); + $.ajax({ + type: 'POST', + url: url, + data: data + }).then(function(jsonData) { + if (jsonData.code === 200) { + if (jsonData.data && jsonData.data.refer) { + window.location.href = jsonData.data.refer; + } + } else { + alert(jsonData.message); + loadWaiting(false); + } + }); }); -define("js/home/comment", ["jquery"], function(require, exports, module){ +}); +define("js/home/common-address", ["jquery","handlebars","source-map"], function(require, exports, module){ /** - * 我的评论 - * @author: yyqing<yanqing.yang@yoho.cn> - * @date: 2016/3/1 + * 个人中心页-地址管理 + * @author: wsl<shuiling.wang@yoho.cn> + * @date: 2016/02/24 */ -var $ = require("jquery"); -var $comment = $('.comment-table'), - $remarkBtn = $comment.find('.remark-btn'); +var $ = require("jquery"), + dialog = require("js/common/dialog"), + Alert = dialog.Alert; -var $dialog = $('#comment-dialog-widget'), - $titleBar = $dialog.find('.dialog-titlebar'), - $commentArea = $dialog.find('textarea'); +var address = { -var pageW = $(document).width(), - pageH = $(document).height(), - winH = $(window).height(); + // 省的控件ID + provinceDomId: 'province', -var dialog = { - canmove: false, - offset: {}, - maxtop: 0, - maxleft: 0 - }, - orderInfo = {}, - $optDom; + // 城市的控件ID + cityDomId: 'city', -// 处理订单数据 -$remarkBtn.each(function() { - var $next = $(this).next(), - data = $next.data(), - key = data.orderid; + // 地区的控件ID + areaDomId: 'areaCode', - orderInfo[key] = {}; - orderInfo[key].productSkn = data.productskn; - orderInfo[key].productId = data.productid; - orderInfo[key].goodsId = data.goodsid; - orderInfo[key].orderId = data.orderid; - orderInfo[key].erpSkuId = data.erpskuid; + initDomIds: function(domOptions) { + var the = this; - $next.remove(); - $(this).data('code', key); -}); + if (domOptions.provinceDomId !== undefined) { + the.provinceDomId = domOptions.provinceDomId; + } + if (domOptions.cityDomId !== undefined) { + the.cityDomId = domOptions.cityDomId; + } + if (domOptions.areaDomId !== undefined) { + the.areaDomId = domOptions.areaDomId; + } + }, -$remarkBtn.click(function() { - var scrollTop = $(document).scrollTop(); + // 初始化地址数据 + loadAreaData: function(pCode, toDomId, defaultValue, allCode) { + var the = this, + $toDom = $('#' + toDomId), + i = 0, + point = ''; - $optDom = $(this); - $commentArea.val(''); - $dialog.removeClass('hide').css({ - top: scrollTop + (winH - $dialog.outerHeight()) / 2, - left: (pageW - $dialog.outerWidth()) / 2 - }); -}); + var active, + val, + nId, + selecter; + + $toDom.empty(); -// 评论弹窗 -$titleBar.bind('mousedown', function(e) { - if ($(e.target).hasClass('dialog-close-btn')) { - return; - } + if (pCode < 91) { + $('#' + the.areaDomId).empty(); + $('#county').attr('disabled', 'disabled'); + } - dialog.canmove = true; - dialog.offset = { - x: e.offsetX, - y: e.offsetY - }; - dialog.maxtop = pageH - $dialog.outerHeight(); - dialog.maxleft = pageW - $dialog.outerWidth(); -}); + $.ajax({ + type: 'GET', + url: '/home/address/area', + data: 'id=' + pCode, -$(document).mousemove(function(e) { - var mtop, mleft; + success: function(jsonData) { + jsonData.code = 200; - if (!dialog.canmove) { - return; - } + if (jsonData.code !== 200) { + active = new Alert('暂无数据'); + active.show(); + return false; + } - mtop = e.pageY - dialog.offset.y; - mleft = e.pageX - dialog.offset.x; - mtop = mtop < dialog.maxtop ? mtop : dialog.maxtop; - mleft = mleft < dialog.maxleft ? mleft : dialog.maxleft; - $dialog.css({ - top: mtop > 0 ? mtop : 0, - left: mleft > 0 ? mleft : 0 - }); -}).mouseup(function(e) { - dialog.canmove = false; -}); + $toDom.append('<option value="0">' + defaultValue + '</option>'); + for (i in jsonData.options) { + if (jsonData.options[i]) { + val = jsonData.options[i]; + point = (toDomId === the.areaDomId && val.is_support === 'Y') ? '*' : ''; + nId = val.value; + selecter = ''; -$dialog.on('click', '.dialog-save-btn', function() { - var remark = $.trim($commentArea.val()), - param; + if (typeof (allCode) !== 'undefined' && allCode !== 0 && + nId === allCode.substr(0, nId.length)) { + selecter = 'selected'; + } + $toDom.append('<option value="' + nId + '" ' + selecter + '>' + point + val.text + '</option>'); + } + } + } + }); + }, + bindAreaChange: function(domOptions) { + var the = this; - if (remark === '') { - alert('请添加评论内容'); - return; - } - if ($optDom.length) { - param = orderInfo[$optDom.data().code]; - param.content = remark; + if ($('#' + the.provinceDomId).data('events') !== undefined) { + return; + } - $.ajax({ - type: 'POST', - url: '/home/comment/saveComment', - data: param - }).then(function(jsonData) { - var $par = $optDom.parent(); + // 初始化 + $('#' + the.provinceDomId).change(function() { + var pCode = $('#' + the.provinceDomId).val(); - if (jsonData.code === 200) { - $par.prev().text(remark); - $par.html('<span class="remarked">已评论!</span>'); - $optDom.length = 0; - $dialog.addClass('hide'); - } else { - alert(jsonData.message); + if (pCode === '0') { + return; } + + the.loadAreaData(pCode, the.cityDomId, '请选择城市', pCode); + $('#' + the.areaDomId).hide(); + the.showAreaSel(domOptions.dispDomId); }); - } -}); -$dialog.on('click', '.dialog-close-btn', function() { - $optDom.length = 0; - $dialog.addClass('hide'); -}); -}); -define("js/home/complaints", ["jquery"], function(require, exports, module){ -/** - * 我的投诉 - * @author: yyqing<yanqing.yang@yoho.cn> - * @date: 2016/3/18 - */ + $('#' + this.cityDomId).change(function() { + var pCode = $('#' + the.cityDomId).val(); -var $ = require("jquery"); + if (pCode === '0') { + return; + } -var $cancelBtn = $('.cancel-btn'), - $title = $('#title'), - $customer = $('#customer'), - $complaintsType = $('#complaintsType'), - $orderCode = $('#orderCode'), - $content = $('#content'); + the.loadAreaData(pCode, the.areaDomId, '请选择区县', pCode); + $('#' + the.areaDomId).show(); + the.showAreaSel(domOptions.dispDomId); + }); -var ajaxing = false; -var rule = { - title: { - dom: $title, - min: 1, - max: 10, - onshow: '请输入您的投诉主题', - onfocus: '请输入主题', - onmin: '投诉主题不能为空', - onmax: '输入投诉主题不能超过10个字' - }, - customer: { - dom: $customer, - min: 1, - max: 10, - onshow: '请填写您要投诉的对象,比如:客服00*号、发货员...', - onfocus: '请填写您要投诉的对象', - onmin: '投诉对象不能为空', - onmax: '输入投诉对象不能超过10个字' - }, - orderCode: { - dom: $orderCode, - regexp: /^([0-9,]{9,})$/, //一个和多个订单 - onshow: '如果多个是多个订单号,请用英文逗号隔开,没有则不填', - onfocus: '请输入订单号', - onerror: '您输入的订单格式不对,如果多个是多个订单号,请用英文逗号隔开' - }, - content: { - dom: $content, - min: 1, - max: 130, - onshow: '输入您投诉的内容', - onfocus: '请输入您投诉的内容', - onmin: '投诉内容不能为空', - onmax: '输入的投诉内容不能超过130个字' - } - }; + $('#' + the.areaDomId).change(function() { + the.showAreaSel(domOptions.dispDomId); + }); -function preventResubmit() { - if (!ajaxing) { - ajaxing = true; - setTimeout(function() { - ajaxing = false; - }, 1000); - return false; - } - return true; -} + the.showAreaSel(domOptions.dispDomId); + }, -function validate(info) { - var $tips = info.dom.siblings('.option-tip'), - val = $.trim(info.dom.val()), - len = val.length; + /** + * 显示地区选择 + */ + showAreaSel: function(dispDomId) { + var the = this, + strAddr = '', + strProvince = $('#' + the.provinceDomId).find('option:selected').text(), + strCity = $('#' + the.cityDomId).find('option:selected').text(), + strArea = $('#' + the.areaDomId).find('option:selected').text(); - if (info.min && len < info.min) { - $tips.text(info.onmin); - return false; - } else if (info.max && len > info.max) { - $tips.text(info.onmax); - return false; - } + if (dispDomId !== undefined && dispDomId !== '') { + if (strProvince.indexOf('选择') < 0) { + strAddr = strProvince; + } - if (info.regexp && !info.regexp.test(val)) { - $tips.text(info.onerror); - return false; - } + if (strCity !== '' && strCity.indexOf('选择') < 0) { + strAddr += ',' + strCity; + } - $tips.text('输入正确'); - return true; -} + if (strArea !== '' && strArea.indexOf('选择') < 0) { + strAddr += ',' + strArea; + } + $('#' + dispDomId).html(strAddr); + } + }, -function validateForm() { - var res = {}, - focus; + loadAllData: function(areaCode, domOptions) { + var the = this; - $.each(rule, function(key, info) { - if (validate(info)) { - res[key] = $.trim(info.dom.val()); - } else { - if (!focus) { - focus = key; - info.dom.focus(); - } + the.initDomIds(domOptions); + areaCode += ''; + + if (areaCode < 91) { + the.loadAreaData(0, the.provinceDomId, '请选择省份', ''); + $('#' + the.areaDomId).hide(); + $('#' + the.cityDomId).html('<option value="0">请选择市</option>'); + } else if (areaCode.length === 4) { + the.loadAreaData(0, the.provinceDomId, '请选择省份', areaCode); + the.loadAreaData(areaCode.substr(0, 2), the.cityDomId, '请选择城市', areaCode); + the.loadAreaData(areaCode, the.areaDomId, '请选择区县', areaCode); + $('#' + the.areaDomId).show(); + } else if (areaCode.length === 6) { + the.loadAreaData(0, the.provinceDomId, '请选择省份', areaCode); + the.loadAreaData(areaCode.substr(0, 2), the.cityDomId, '请选择城市', areaCode); + the.loadAreaData(areaCode.substr(0, 4), the.areaDomId, '请选择区县', areaCode); + $('#' + this.areaDomId).show(); } - }); - res.complaintsType = $complaintsType.val(); + the.bindAreaChange(domOptions); + } +}; + +module.exports = address; + +}); +define("plugin/jquery.qupload", ["jquery"], function(require, exports, module){ +/** + * upload plugin + * + */ +var $ = require("jquery"); +var SWFUpload = require("plugin/swfupload.queue").SWFUpload; - if (focus) { - return false; +var file_upload_limit = 6; +$.fn.extend({ + qupload : function(options) { + writeProgressHtml(); + initSwfUpload($(this).attr('id'), options); } - return res; -} +}); -function addComplaint() { - var sendParm = validateForm(); +var hasProgreeHtml = 0; - if (preventResubmit() || !sendParm) { - return; +// 创建进度条的html +function writeProgressHtml() { + if (hasProgreeHtml == 0) // 一个页面只创建一次 + { + $('body') + .append( + '<div id="progressDialog" style="display: none;width:370px;height:80px !important;"><div style="padding:10px 20px;"><span id="curUploadStatus">图片上传中……请稍等</span><div id="progress"></div></div></div>'); + hasProgreeHtml = 1; } +} - $.ajax({ - type: 'POST', - url: '/home/complaints/addcomplaints', - data: sendParm - }).then(function(jsonData) { - ajaxing = false; - if (jsonData.code === 200) { - window.location.reload(); - } else { - alert(jsonData.message); - } - }); +function setUploadStatus(uploadNum, totalUploadNum) { + $('#uploadNum').html(uploadNum); + $('#totalUploadNum').html(totalUploadNum); } -function cancelComplaint(id, dom) { - var $dom = dom; +// 初始化swf +function initSwfUpload(btnId, options) { + // 上传成功的回调函数 + var uploadSuccessCallBack = null; + if (options.uploadSuccessed != undefined) { + uploadSuccessCallBack = options.uploadSuccessed; + } + // 上传的key + var uploadKeyValue = ''; + if (options.uploadKey != undefined) { + uploadKeyValue = options.uploadKey; + } - if (preventResubmit()) { - return; + // 上传之前可以做的操作参数 + var preUploadCallBack = null; + if (options.preupload != undefined) { + preUploadCallBack = options.preupload; } - $.ajax({ - type: 'POST', - url: '/home/complaints/cancelcomplaints', - data: { - id: id - } - }).then(function(jsonData) { - ajaxing = false; - if (jsonData.code === 200) { - $dom.prev().remove(); - $dom.text('问题已撤销'); - } else { - alert(jsonData.message); - } - }); -} + // 弹出层ID + var progressDivId = 'progressDialog'; + // 进度条ID + var progressTargetId = 'progress'; -$.each(rule, function(key, info) { - info.dom.focus(function() { - info.dom.siblings('.option-tip').text(info.onfocus); - }).blur(function() { - validate(info); - }); -}); + // 共有多少张需要上传 + var totalUploadNum = 0; -$('#complaint-submit').click(function() { - addComplaint(); -}); + // 当前已经上传的张数 + var curUploadedNum = 0; -$cancelBtn.click(function() { - var data = $(this).data(); + this.options = options; - if (data && data.id) { - cancelComplaint(data.id, $(this).parent()); - } -}); -}); -define("js/home/message", ["jquery"], function(require, exports, module){ -/** - * 我的信息 - * @author: yyqing<yanqing.yang@yoho.cn> - * @date: 2016/3/21 - */ -var $ = require("jquery"); + var numTest = 0; + + var errmsg_box = this.options.errmsg_box; -var $container = $('#message-main-container'), - $msgCheck = $container.find('.msg-check'), - $readBtn = $container.find('.read-choose-btn'), - $checked; + // 设置默认值函数 + function setDefaultValue(optionName, optionValue) { + this.options[optionName] = options[optionName] == undefined ? optionValue + : options[optionName]; + } -var operationId = []; + setDefaultValue('flash_url', + "http://static.yohobuy.com/admin/js/swfupload/swfupload.swf"); + setDefaultValue('upload_url', "http://upload.yohobuy.com"); + setDefaultValue('file_post_name', "Filedata"); + setDefaultValue('file_size_limit', "2 MB"); + setDefaultValue('file_types', "*.*"); + setDefaultValue('file_types_description', "All Files"); + setDefaultValue('file_upload_limit', file_upload_limit); + setDefaultValue('file_queue_limit', 0); + setDefaultValue('button_image_url', + "http://static.yohobuy.com/admin/images/btn_swfupload.png"); + setDefaultValue('button_width', "104"); + setDefaultValue('button_height', "20"); + setDefaultValue('button_text', '<span class="btn_upload_xzzp">选择本地照片</span>'); + setDefaultValue('button_text_style', '.btn_upload_xzzp{color:#ffffff}'); + setDefaultValue('button_text_left_padding', 24); + setDefaultValue('button_text_top_padding', 0); + setDefaultValue('button_window_mode', 'TRANSPARENT'); + setDefaultValue('button_cursor', '-2'); -require("js/home/message-content"); + var settings = { + flash_url : this.options.flash_url, + upload_url : this.options.upload_url, + file_post_name : this.options.file_post_name, + // post_params: {"PHPSESSID" : "<?php echo session_id(); ?>"}, + file_size_limit : this.options.file_size_limit, + file_types : this.options.file_types, + file_types_description : this.options.file_types_description, + file_upload_limit : this.options.file_upload_limit, + file_queue_limit : this.options.file_queue_limit, + prevent_swf_caching : false, + preserve_relative_urls : false, + custom_settings : { -function hasNew() { - var newMsg = false; + }, + debug : false, - $checked = $container.find('.msg-check:checked'); - operationId = []; + // Button settings + button_image_url : this.options.button_image_url, + button_width : this.options.button_width, + button_height : this.options.button_height, + button_placeholder_id : btnId, + button_text : this.options.button_text, + button_text_style : this.options.button_text_style, + button_text_left_padding : this.options.button_text_left_padding, + button_text_top_padding : this.options.button_text_top_padding, + button_window_mode : this.options.button_window_mode, + button_cursor : this.options.button_cursor, - $checked.each(function() { - var $par = $(this).parent().parent(); + // The event handler functions are defined in handlers.js + file_dialog_start_handler : fileDialogStart, + file_queued_handler : fileQueued, + file_queue_error_handler : fileQueueError, + file_dialog_complete_handler : fileDialogComplete, + upload_start_handler : uploadStart, + upload_progress_handler : uploadProgress, + upload_error_handler : uploadError, + upload_success_handler : uploadSuccess, + upload_complete_handler : uploadComplete, + queue_complete_handler : queueComplete, + button_action: this.options.button_action + }; - operationId.push($(this).val()); - if ($par.hasClass('new-msg')) { - newMsg = true; - } - }); + var swfu = new SWFUpload(settings); - if (newMsg) { - $readBtn.addClass('has-new'); - } else { - $readBtn.removeClass('has-new'); - } -} + function fileQueued(file) { + try { -function msgOperation(type, data) { - var url; + } catch (ex) { + this.debug(ex); + } - switch (type) { - case 'del': - url = '/home/message/delMessage'; - break; - case 'read': - url = '/home/message/readMessage'; - break; } - $.ajax({ - type: 'GET', - url: url, - data: data - }).then(function(jsonData) { - if (!jsonData.code) { - if (type === 'del') { - $container.html(jsonData); - $msgCheck = $container.find('.msg-check'); - $readBtn = $container.find('.read-choose-btn'); + function fileQueueError(file, errorCode, message) { + var errmsg; + try { + if (errorCode === SWFUpload.QUEUE_ERROR.QUEUE_LIMIT_EXCEEDED) { + alert("您尝试上传太多文件.\n" + + (message === 0 ? "您已达到上传限制." : "您最多还可以 " + + (message > 1 ? "上传 " + message + "文件." + : "一个文件."))); + return; } - } else { - if (jsonData.code === 200) { - if (type === 'read') { - $checked.removeAttr('checked'); - $checked.parent().parent().removeClass('new-msg'); - hasNew(); + + // var progress = new FileProgress(file, + // this.customSettings.progressTarget); + // progress.setError(); + // progress.toggleCancel(false); + switch (errorCode) { + + case SWFUpload.QUEUE_ERROR.FILE_EXCEEDS_SIZE_LIMIT: + // progress.setStatus("File is too big."); + + errmsg = '文件超过'+settings.file_size_limit/1024+'M'; + alert(errmsg); + this.debug("Error Code: File too big, File name: " + + file.name + ", File size: " + file.size + + ", Message: " + message); + break; + case SWFUpload.QUEUE_ERROR.ZERO_BYTE_FILE: + // progress.setStatus("Cannot upload Zero Byte files."); + alert('请上传有内容的文件!'); + this.debug("Error Code: Zero byte file, File name: " + + file.name + ", File size: " + file.size + + ", Message: " + message); + break; + case SWFUpload.QUEUE_ERROR.INVALID_FILETYPE: + alert('请上传指定类型的文件!'); + this.debug("Error Code: Invalid File Type, File name: " + + file.name + ", File size: " + file.size + + ", Message: " + message); + break; + default: + if (file !== null) { + // progress.setStatus("Unhandled Error"); } - } else { - alert(jsonData.message); + alert('上传文件失败,请稍后在试!'); + this.debug("Error Code: " + errorCode + ", File name: " + + file.name + ", File size: " + file.size + + ", Message: " + message); + break; } + } catch (ex) { + this.debug(ex); } - }); -} - -$container.on('change', 'input[type="checkbox"]', function() { - var checked = $(this).attr('checked'); + } - if ($(this).hasClass('choose-all')) { - if (checked === 'checked') { - $msgCheck.attr('checked', true); - } else { - $msgCheck.removeAttr('checked'); + function fileDialogStart() { + if (preUploadCallBack != null) { + preUploadCallBack(); } } - hasNew(); -}); -$container.on('click', '.del-btn', function() { - if (confirm('您确定要删除这条短消息?')) { - msgOperation('del', $(this).data()); - } -}); + // 选择文件完成 + function fileDialogComplete(numFilesSelected, numFilesQueued) { + try { -$container.on('click', '.del-choose-btn', function() { - if (!operationId.length) { - alert('请选中您要删除的消息'); - return; - } + if (numFilesSelected > 0) { + // document.getElementById(this.customSettings.cancelButtonId).disabled + // = false; + totalUploadNum = numFilesSelected; + curUploadedNum = 1; + setUploadStatus(curUploadedNum, totalUploadNum); + this.startUpload(); + } - if (confirm('确定要删除您选中的消息')) { - msgOperation('del', { - id: operationId.join(',') - }); + } catch (ex) { + this.debug(ex); + } } -}); -$container.on('click', '.read-choose-btn', function() { - if ($(this).hasClass('has-new')) { - msgOperation('read', { - id: operationId.join(',') - }); + // 开始上传 + function uploadStart(file) { + this.addPostParam('_key', uploadKeyValue); + //$('#' + progressDivId).dialog(); } -}); -}); -define("js/home/message-content", ["jquery"], function(require, exports, module){ -/** - * 我的信息 - * @author: yyqing<yanqing.yang@yoho.cn> - * @date: 2016/3/25 - */ -var $ = require("jquery"); - -var $pickBtn = $('.pick-coupon-btn'); -var pickBusy = false; - -$pickBtn.click(function() { - var data = $(this).data(); - - if (pickBusy) { - return; + // 上传进度 + function uploadProgress(file, bytesLoaded, bytesTotal) { + // $('#uploadData').html(bytesLoaded + "/" + bytesTotal); + // $('#uploadData').html( $('#uploadData').html() + ' - ' + bytesLoaded + // + '+' + ',' + bytesTotal ); + var percent = Math.ceil((bytesLoaded / bytesTotal) * 100); + //$("#progress").progressbar({ + // value : percent + //}); } - pickBusy = true; - $.ajax({ - type: 'GET', - url: '/home/message/pickCoupon', - data: data - }).then(function(jsonData) { - var msg = jsonData.message; - if (jsonData.code === 200) { - msg = '领取成功'; - $(this).removeClass('pick-coupon-btn'); + // 上传成功 + function uploadSuccess(file, serverData) { + curUploadedNum++; + setUploadStatus(curUploadedNum, totalUploadNum); + if (uploadSuccessCallBack != null) { + uploadSuccessCallBack(serverData); } + } - pickBusy = false; + // 上传出错 + function uploadError(file, errorCode, message) { - alert(msg); - }); -}); -}); -define("js/home/edit", ["jquery","handlebars","source-map"], function(require, exports, module){ -/** - * 个人中心页-个人资料编辑 - * @author: zhaobiao<bill.zhao@yoho.cn> - * @date: 2016/02/17 - */ -var $ = require("jquery"); + try { + if (errorCode === SWFUpload.QUEUE_ERROR.QUEUE_LIMIT_EXCEEDED) { + alert("您尝试上传太多文件.\n" + + (message === 0 ? "您已达到上传限制." : "您最多还可以 " + + (message > 1 ? "上传 " + message + "文件." + : "一个文件."))); + return; + } + switch (errorCode) { + + case SWFUpload.QUEUE_ERROR.FILE_EXCEEDS_SIZE_LIMIT: + alert("Error Code: 文件太大。 文件名为: " + file.name + ", 大小为: " + + file.size + ", Message: " + message); + break; + case SWFUpload.QUEUE_ERROR.ZERO_BYTE_FILE: -var $allEditForms = $('.userinfo-edit form'); + alert("Error Code: 文件为0, 文件名为: " + file.name + ", 大小为: " + + file.size + ", Message: " + message); + break; + case SWFUpload.QUEUE_ERROR.INVALID_FILETYPE: + alert("Error Code: 文件类型不合要求, 文件名为: " + file.name + ", 大小为: " + + file.size + ", Message: " + message); + break; + default: + if (file !== null) { -var address = require("js/home/common-address"); + } + alert("上传出错" + "Error Code: " + errorCode + ", File name: " + + file.name + ", File size: " + file.size + + ", Message: " + message); + break; + } + } catch (ex) { + this.debug(ex); + } + } -var date = { - init: function(year, month, day) { - var $year = $('#year'), - $month = $('#month'), - $day = $('#day'); + // 上传完成 + function uploadComplete(file) { + //$('#' + progressDivId).dialog('close'); + } - var that = this; + // This event comes from the Queue Plugin + function queueComplete(numFilesUploaded) { - this.createDay($year.val(), $month.val(), $day.val()); + } +} - $year.on('change', function() { - that.update(); - }); +window.SWFUpload = SWFUpload; +}); +define("plugin/swfupload.queue", [], function(require, exports, module){ +/* + Queue Plug-in + + Features: + *Adds a cancelQueue() method for cancelling the entire queue. + *All queued files are uploaded when startUpload() is called. + *If false is returned from uploadComplete then the queue upload is stopped. + If false is not returned (strict comparison) then the queue upload is continued. + *Adds a QueueComplete event that is fired when all the queued files have finished uploading. + Set the event handler with the queue_complete_handler setting. + + */ +var SWFUpload = require("plugin/swfupload").SWFUpload; - $month.on('change', function() { - that.update(); - }); - }, - update: function() { - this.createDay($('#year').val(), $('#month').val(), $('#day').val()); - }, - createDay: function(year, month, day) { - var html = '<select name="day" id="day">', - monthArray = new Array(4, 6, 9, 11), - dayNum = 31; +if (typeof(SWFUpload) === "function") { + SWFUpload.queue = {}; + + SWFUpload.prototype.initSettings = (function (oldInitSettings) { + return function () { + if (typeof(oldInitSettings) === "function") { + oldInitSettings.call(this); + } + + this.queueSettings = {}; + + this.queueSettings.queue_cancelled_flag = false; + this.queueSettings.queue_upload_count = 0; + + this.queueSettings.user_upload_complete_handler = this.settings.upload_complete_handler; + this.queueSettings.user_upload_start_handler = this.settings.upload_start_handler; + this.settings.upload_complete_handler = SWFUpload.queue.uploadCompleteHandler; + this.settings.upload_start_handler = SWFUpload.queue.uploadStartHandler; + + this.settings.queue_complete_handler = this.settings.queue_complete_handler || null; + }; + })(SWFUpload.prototype.initSettings); - var select, - i; + SWFUpload.prototype.startUpload = function (fileID) { + this.queueSettings.queue_cancelled_flag = false; + this.callFlash("StartUpload", [fileID]); + }; - year = parseInt(year); - month = parseInt(month); + SWFUpload.prototype.cancelQueue = function () { + this.queueSettings.queue_cancelled_flag = true; + this.stopUpload(); + + var stats = this.getStats(); + while (stats.files_queued > 0) { + this.cancelUpload(); + stats = this.getStats(); + } + }; + + SWFUpload.queue.uploadStartHandler = function (file) { + var returnValue; + if (typeof(this.queueSettings.user_upload_start_handler) === "function") { + returnValue = this.queueSettings.user_upload_start_handler.call(this, file); + } + + // To prevent upload a real "FALSE" value must be returned, otherwise default to a real "TRUE" value. + returnValue = (returnValue === false) ? false : true; + + this.queueSettings.queue_cancelled_flag = !returnValue; - if (year === 0) { - year = 0; + return returnValue; + }; + + SWFUpload.queue.uploadCompleteHandler = function (file) { + var user_upload_complete_handler = this.queueSettings.user_upload_complete_handler; + var continueUpload; + + if (file.filestatus === SWFUpload.FILE_STATUS.COMPLETE) { + this.queueSettings.queue_upload_count++; } - if (month === 0) { - month = 0; + if (typeof(user_upload_complete_handler) === "function") { + continueUpload = (user_upload_complete_handler.call(this, file) === false) ? false : true; + } else if (file.filestatus === SWFUpload.FILE_STATUS.QUEUED) { + // If the file was stopped and re-queued don't restart the upload + continueUpload = false; + } else { + continueUpload = true; } - - $('#year').val(year.toString()); - $('#month').val(month.toString()); - - html += '<option value="0">日</option>'; - - if (year > 0 && month > 0) { - if ($.inArray(month, monthArray) !== -1) { - dayNum = 30; - } else if (month === 2) { - dayNum = 28; - if (0 === year % 4 && (year % 100 !== 0 || year % 400 === 0)) { - dayNum = 29; - } - } - - for (i = 1; i <= dayNum; i++) { - select = ''; - - if (parseInt(day) === i) { - select = 'selected'; - } - html += '<option value="' + i + '" ' + select + '>' + i + '</option>'; + + if (continueUpload) { + var stats = this.getStats(); + if (stats.files_queued > 0 && this.queueSettings.queue_cancelled_flag === false) { + this.startUpload(); + } else if (this.queueSettings.queue_cancelled_flag === false) { + this.queueEvent("queue_complete_handler", [this.queueSettings.queue_upload_count]); + this.queueSettings.queue_upload_count = 0; + } else { + this.queueSettings.queue_cancelled_flag = false; + this.queueSettings.queue_upload_count = 0; } } - html += '</select>'; - - $('#day').replaceWith(html); - } -}; - - -$('.userinfo-edit h2').on('click', function() { - var $form = $(this).next(); - - $allEditForms.slideUp('fast'); - $form.css('display') === 'none' ? $form.slideDown('slow') : null; + }; +} -}); +exports.SWFUpload = SWFUpload; +}); +define("plugin/swfupload", [], function(require, exports, module){ +/** + * SWFUpload: http://www.swfupload.org, http://swfupload.googlecode.com + * + * mmSWFUpload 1.0: Flash upload dialog - http://profandesign.se/swfupload/, http://www.vinterwebb.se/ + * + * SWFUpload is (c) 2006-2007 Lars Huring, Olov Nilz锟絥 and Mammon Media and is released under the MIT License: + * http://www.opensource.org/licenses/mit-license.php + * + * SWFUpload 2 is (c) 2007-2008 Jake Roberts and is released under the MIT License: + * http://www.opensource.org/licenses/mit-license.php + * + */ -function checkBaseForm() { - var nicknameLength = $('#nickname').val().length, - usernameLength = $('#username').val().length, - $gender = $('input[name="gender"]'), - $year = $('#year'), - $month = $('#month'), - $day = $('#day'); - if (nicknameLength === 0) { - alert('请输入昵称'); - return false; - } +/* ******************* */ +/* Constructor & Init */ +/* ******************* */ +var SWFUpload; - if (usernameLength === 0) { - alert('请输入用户名'); - return false; - } +if (SWFUpload == undefined) { + SWFUpload = function (settings) { + this.initSWFUpload(settings); + }; +} - if (nicknameLength >= 20) { - alert('昵称最长为20个字符'); - return false; - } +SWFUpload.prototype.initSWFUpload = function (settings) { + try { + this.customSettings = {}; // A container where developers can place their own settings associated with this instance. + this.settings = settings; + this.eventQueue = []; + this.movieName = "SWFUpload_" + SWFUpload.movieCount++; + this.movieElement = null; - if (!$gender.is(':checked')) { - alert('请选择性别'); - return false; - } + // Setup global control tracking + SWFUpload.instances[this.movieName] = this; - if ($year.val() === '0' || $month.val() === '0' || $day.val() === '0') { - alert('请选择出生年月日'); - return false; + // Load the settings. Load the Flash movie. + this.initSettings(); + this.loadFlash(); + this.displayDebugInfo(); + } catch (ex) { + delete SWFUpload.instances[this.movieName]; + throw ex; } +}; - return true; -} +/* *************** */ +/* Static Members */ +/* *************** */ +SWFUpload.instances = {}; +SWFUpload.movieCount = 0; +SWFUpload.version = "2.2.0 2009-03-25"; +SWFUpload.QUEUE_ERROR = { + QUEUE_LIMIT_EXCEEDED : -100, + FILE_EXCEEDS_SIZE_LIMIT : -110, + ZERO_BYTE_FILE : -120, + INVALID_FILETYPE : -130 +}; +SWFUpload.UPLOAD_ERROR = { + HTTP_ERROR : -200, + MISSING_UPLOAD_URL : -210, + IO_ERROR : -220, + SECURITY_ERROR : -230, + UPLOAD_LIMIT_EXCEEDED : -240, + UPLOAD_FAILED : -250, + SPECIFIED_FILE_ID_NOT_FOUND : -260, + FILE_VALIDATION_FAILED : -270, + FILE_CANCELLED : -280, + UPLOAD_STOPPED : -290 +}; +SWFUpload.FILE_STATUS = { + QUEUED : -1, + IN_PROGRESS : -2, + ERROR : -3, + COMPLETE : -4, + CANCELLED : -5 +}; +SWFUpload.BUTTON_ACTION = { + SELECT_FILE : -100, + SELECT_FILES : -110, + START_UPLOAD : -120 +}; +SWFUpload.CURSOR = { + ARROW : -1, + HAND : -2 +}; +SWFUpload.WINDOW_MODE = { + WINDOW : "window", + TRANSPARENT : "transparent", + OPAQUE : "opaque" +}; -function checkContactForm() { - if ($('#province').val() === '0' || $('#city').val() === '0' || $('#areaCode').val() === '0') { - alert('请选择所在区域'); - return false; +// Private: takes a URL, determines if it is relative and converts to an absolute URL +// using the current site. Only processes the URL if it can, otherwise returns the URL untouched +SWFUpload.completeURL = function(url) { + if (typeof(url) !== "string" || url.match(/^https?:\/\//i) || url.match(/^\//)) { + return url; } - - if ($('#province').val() === null || $('#city').val() === null || $('#areaCode').val() === null) { - alert('请选择所在区域'); - return false; + + var currentURL = window.location.protocol + "//" + window.location.hostname + (window.location.port ? ":" + window.location.port : ""); + + var indexSlash = window.location.pathname.lastIndexOf("/"); + if (indexSlash <= 0) { + path = "/"; + } else { + path = window.location.pathname.substr(0, indexSlash) + "/"; } + + return /*currentURL +*/ path + url; + +}; - if ($('#phone').val().length === 0 && $('#mobile').val().length === 0) { - alert('电话和手机号码不能同时为空,请填写!'); - return false; - } +/* ******************** */ +/* Instance Members */ +/* ******************** */ - if ($('#fullAddress').val().length === 0) { - alert('请填写地址'); - return false; - } +// Private: initSettings ensures that all the +// settings are set, getting a default value if one was not assigned. +SWFUpload.prototype.initSettings = function () { + this.ensureDefault = function (settingName, defaultValue) { + this.settings[settingName] = (this.settings[settingName] == undefined) ? defaultValue : this.settings[settingName]; + }; + + // Upload backend settings + this.ensureDefault("upload_url", ""); + this.ensureDefault("preserve_relative_urls", false); + this.ensureDefault("file_post_name", "Filedata"); + this.ensureDefault("post_params", {}); + this.ensureDefault("use_query_string", false); + this.ensureDefault("requeue_on_error", false); + this.ensureDefault("http_success", []); + this.ensureDefault("assume_success_timeout", 0); + + // File Settings + this.ensureDefault("file_types", "*.*"); + this.ensureDefault("file_types_description", "All Files"); + this.ensureDefault("file_size_limit", 0); // Default zero means "unlimited" + this.ensureDefault("file_upload_limit", 0); + this.ensureDefault("file_queue_limit", 0); - if ($('#zipCode').val().length === 0 || $('#zipCode').val().length < 2) { - alert('请填写邮编'); - return false; - } + // Flash Settings + this.ensureDefault("flash_url", "swfupload.swf"); + this.ensureDefault("prevent_swf_caching", true); + + // Button Settings + this.ensureDefault("button_image_url", ""); + this.ensureDefault("button_width", 1); + this.ensureDefault("button_height", 1); + this.ensureDefault("button_text", ""); + this.ensureDefault("button_text_style", "color: #000000; font-size: 16pt;"); + this.ensureDefault("button_text_top_padding", 0); + this.ensureDefault("button_text_left_padding", 0); + this.ensureDefault("button_action", SWFUpload.BUTTON_ACTION.SELECT_FILES); + this.ensureDefault("button_disabled", false); + this.ensureDefault("button_placeholder_id", ""); + this.ensureDefault("button_placeholder", null); + this.ensureDefault("button_cursor", SWFUpload.CURSOR.ARROW); + this.ensureDefault("button_window_mode", SWFUpload.WINDOW_MODE.WINDOW); + + // Debug Settings + this.ensureDefault("debug", false); + this.settings.debug_enabled = this.settings.debug; // Here to maintain v2 API + + // Event Handlers + this.settings.return_upload_start_handler = this.returnUploadStart; + this.ensureDefault("swfupload_loaded_handler", null); + this.ensureDefault("file_dialog_start_handler", null); + this.ensureDefault("file_queued_handler", null); + this.ensureDefault("file_queue_error_handler", null); + this.ensureDefault("file_dialog_complete_handler", null); + + this.ensureDefault("upload_start_handler", null); + this.ensureDefault("upload_progress_handler", null); + this.ensureDefault("upload_error_handler", null); + this.ensureDefault("upload_success_handler", null); + this.ensureDefault("upload_complete_handler", null); + + this.ensureDefault("debug_handler", this.debugMessage); - return true; -} + this.ensureDefault("custom_settings", {}); -function checkHabbitForm() { - if (!$('.user-habbit-info input').is(':checked')) { - alert('请填写购物&着装习惯'); - return false; + // Other settings + this.customSettings = this.settings.custom_settings; + + // Update the flash url if needed + if (!!this.settings.prevent_swf_caching) { + this.settings.flash_url = this.settings.flash_url + (this.settings.flash_url.indexOf("?") < 0 ? "?" : "&") + "preventswfcaching=" + new Date().getTime(); } - - return true; -} - -function checkFavoriteForm() { - if ($('#likebrand').val() === '') { - alert('请选择品牌'); - return false; + + if (!this.settings.preserve_relative_urls) { + //this.settings.flash_url = SWFUpload.completeURL(this.settings.flash_url); // Don't need to do this one since flash doesn't look at it + this.settings.upload_url = SWFUpload.completeURL(this.settings.upload_url); + if (this.settings.button_image_url) { + this.settings.button_image_url = SWFUpload.completeURL(this.settings.button_image_url); + } } + + delete this.ensureDefault; +}; - return true; -} - -function delBrand(brandId) { - var brand = $('#likebrand').val(); +// Private: loadFlash replaces the button_placeholder element with the flash movie. +SWFUpload.prototype.loadFlash = function () { + var targetElement, tempParent; - if (parseInt(brandId) === 0) { - return false; + // Make sure an element with the ID we are going to use doesn't already exist + if (document.getElementById(this.movieName) !== null) { + throw "ID " + this.movieName + " is already in use. The Flash Object could not be added"; } - $('#likebrand').val(brand.replace(',' + brandId + ',', ',')); - $('#pp-' + brandId).attr('checked', false); - $('#brand-' + brandId).remove(); -} + // Get the element where we will be placing the flash movie + targetElement = document.getElementById(this.settings.button_placeholder_id) || this.settings.button_placeholder; + if (targetElement == undefined) { + throw "Could not find the placeholder element: " + this.settings.button_placeholder_id; + } + // Append the container and load the flash + tempParent = document.createElement("div"); + tempParent.innerHTML = this.getFlashHTML(); // Using innerHTML is non-standard but the only sensible way to dynamically add Flash in IE (and maybe other browsers) + targetElement.parentNode.replaceChild(tempParent.firstChild, targetElement); -function addBrand(domObj, brandId, brandName) { - var html = '<li id="brand-' + brandId + '">' + - brandName + '<a href="javascript:void(0);" class="btn-del"></a></li>'; + // Fix IE Flash/Form bug + if (window[this.movieName] == undefined) { + window[this.movieName] = this.getMovieElement(); + } + +}; - var brandInfo = $('#brand-' + brandId).html(), - brandStr = $('#likebrand').val(); +// Private: getFlashHTML generates the object tag needed to embed the flash in to the document +SWFUpload.prototype.getFlashHTML = function () { + // Flash Satay object syntax: http://www.alistapart.com/articles/flashsatay + return ['<object id="', this.movieName, '" type="application/x-shockwave-flash" data="', this.settings.flash_url, '" width="', this.settings.button_width, '" height="', this.settings.button_height, '" class="swfupload">', + '<param name="wmode" value="', this.settings.button_window_mode, '" />', + '<param name="movie" value="', this.settings.flash_url, '" />', + '<param name="quality" value="high" />', + '<param name="menu" value="false" />', + '<param name="allowScriptAccess" value="always" />', + '<param name="flashvars" value="' + this.getFlashVars() + '" />', + '</object>'].join(""); +}; - var $brandBox = $('#brand-box'); +// Private: getFlashVars builds the parameter string that will be passed +// to flash in the flashvars param. +SWFUpload.prototype.getFlashVars = function () { + // Build a string from the post param object + var paramString = this.buildParamString(); + var httpSuccessString = this.settings.http_success.join(","); + + // Build the parameter string + return ["movieName=", encodeURIComponent(this.movieName), + "&uploadURL=", encodeURIComponent(this.settings.upload_url), + "&useQueryString=", encodeURIComponent(this.settings.use_query_string), + "&requeueOnError=", encodeURIComponent(this.settings.requeue_on_error), + "&httpSuccess=", encodeURIComponent(httpSuccessString), + "&assumeSuccessTimeout=", encodeURIComponent(this.settings.assume_success_timeout), + "&params=", encodeURIComponent(paramString), + "&filePostName=", encodeURIComponent(this.settings.file_post_name), + "&fileTypes=", encodeURIComponent(this.settings.file_types), + "&fileTypesDescription=", encodeURIComponent(this.settings.file_types_description), + "&fileSizeLimit=", encodeURIComponent(this.settings.file_size_limit), + "&fileUploadLimit=", encodeURIComponent(this.settings.file_upload_limit), + "&fileQueueLimit=", encodeURIComponent(this.settings.file_queue_limit), + "&debugEnabled=", encodeURIComponent(this.settings.debug_enabled), + "&buttonImageURL=", encodeURIComponent(this.settings.button_image_url), + "&buttonWidth=", encodeURIComponent(this.settings.button_width), + "&buttonHeight=", encodeURIComponent(this.settings.button_height), + "&buttonText=", encodeURIComponent(this.settings.button_text), + "&buttonTextTopPadding=", encodeURIComponent(this.settings.button_text_top_padding), + "&buttonTextLeftPadding=", encodeURIComponent(this.settings.button_text_left_padding), + "&buttonTextStyle=", encodeURIComponent(this.settings.button_text_style), + "&buttonAction=", encodeURIComponent(this.settings.button_action), + "&buttonDisabled=", encodeURIComponent(this.settings.button_disabled), + "&buttonCursor=", encodeURIComponent(this.settings.button_cursor) + ].join(""); +}; - if (parseInt(brandId) === 0) { - return false; +// Public: getMovieElement retrieves the DOM reference to the Flash element added by SWFUpload +// The element is cached after the first lookup +SWFUpload.prototype.getMovieElement = function () { + if (this.movieElement == undefined) { + this.movieElement = document.getElementById(this.movieName); } - if (typeof domObj !== 'undefined' && domObj !== '' && domObj.checked === false) { - delBrand(brandId); - return false; - } - if (brandInfo) { - alert('您已经选择了该品牌.'); - return false; + if (this.movieElement === null) { + throw "Could not find Flash element"; } - $brandBox.append(html); - - $brandBox.find('li>a').off('click').on('click', function() { - delBrand($(this).closest('li').attr('id').substr(6)); - }); - - brandStr += brandId + ','; - $('#likebrand').val(brandStr); -} + + return this.movieElement; +}; -function checkBrand() { - var postData = { - brandName: $('#keywords').val() - }; +// Private: buildParamString takes the name/value pairs in the post_params setting object +// and joins them up in to a string formatted "name=value&name=value" +SWFUpload.prototype.buildParamString = function () { + var postParams = this.settings.post_params; + var paramStringPairs = []; - $.post('/home/user/isbrandname', postData, function(data) { - if (data.code === 200) { - if (data.data.id && data.data.brand_name) { - addBrand('', data.data.id, data.data.brand_name); - $('#keywords').val(''); - return true; - } else { - alert('网络异常,请重试'); - return false; + if (typeof(postParams) === "object") { + for (var name in postParams) { + if (postParams.hasOwnProperty(name)) { + paramStringPairs.push(encodeURIComponent(name.toString()) + "=" + encodeURIComponent(postParams[name].toString())); } } - alert(data.message); - return false; - }, 'json'); -} - -function save(postUrl, btnId) { - var $form = $('#' + btnId).closest('form'); + } - $.post(postUrl, $form.serialize(), function(data) { - if (data.code === 200) { - alert(data.message); - setTimeout(function() { - $form.closest('div').next().find('h2').click(); - }, 100); - return true; - } - alert(data.message); - return false; - }, 'json'); -} + return paramStringPairs.join("&"); +}; +// Public: Used to remove a SWFUpload instance from the page. This method strives to remove +// all references to the SWF, and other objects so memory is properly freed. +// Returns true if everything was destroyed. Returns a false if a failure occurs leaving SWFUpload in an inconsistant state. +// Credits: Major improvements provided by steffen +SWFUpload.prototype.destroy = function () { + try { + // Make sure Flash is done before we try to remove it + this.cancelUpload(null, false); + -$('#base-info').on('click', function() { - if (checkBaseForm()) { - save('/home/user/edituserinfo/', 'base-info'); - } -}); + // Remove the SWFUpload DOM nodes + var movieElement = null; + movieElement = this.getMovieElement(); + + if (movieElement && typeof(movieElement.CallFunction) === "unknown") { // We only want to do this in IE + // Loop through all the movie's properties and remove all function references (DOM/JS IE 6/7 memory leak workaround) + for (var i in movieElement) { + try { + if (typeof(movieElement[i]) === "function") { + movieElement[i] = null; + } + } catch (ex1) {} + } -$('#contact-info').on('click', function() { - if (checkContactForm()) { - save('/home/user/editusercontactinfo/', 'contact-info'); - } -}); + // Remove the Movie Element from the page + try { + movieElement.parentNode.removeChild(movieElement); + } catch (ex) {} + } + + // Remove IE form fix reference + window[this.movieName] = null; -$('#shopping-info').on('click', function() { - if (checkHabbitForm()) { - save('/home/user/edituserhabitsinfo/', 'shopping-info'); - } -}); + // Destroy other references + SWFUpload.instances[this.movieName] = null; + delete SWFUpload.instances[this.movieName]; -$('#favorite-brand').on('click', function() { - if (checkFavoriteForm()) { - $.ajax({ - url: '/home/user/edituserlikebrand/', - type: 'post', - datatype: 'json', - data: { - brand: $('#likebrand').val() - }, - success: function(data) { - if (data.code === 200) { - alert(data.message); - return true; - } - alert(data.message); - return false; - }, - error: function(err) { - alert('网络异常'); - } - }); + this.movieElement = null; + this.settings = null; + this.customSettings = null; + this.eventQueue = null; + this.movieName = null; + + + return true; + } catch (ex2) { + return false; } -}); - -$('#add-brand-btn').on('click', function() { - checkBrand(); -}); +}; -$('.user-favorite-info input[type="checkbox"]').on('click', function() { - var $this = $(this); - addBrand(this, $this.attr('id').substr(3), $this.parent().text()); -}); +// Public: displayDebugInfo prints out settings and configuration +// information about this SWFUpload instance. +// This function (and any references to it) can be deleted when placing +// SWFUpload in production. +SWFUpload.prototype.displayDebugInfo = function () { + this.debug( + [ + "---SWFUpload Instance Info---\n", + "Version: ", SWFUpload.version, "\n", + "Movie Name: ", this.movieName, "\n", + "Settings:\n", + "\t", "upload_url: ", this.settings.upload_url, "\n", + "\t", "flash_url: ", this.settings.flash_url, "\n", + "\t", "use_query_string: ", this.settings.use_query_string.toString(), "\n", + "\t", "requeue_on_error: ", this.settings.requeue_on_error.toString(), "\n", + "\t", "http_success: ", this.settings.http_success.join(", "), "\n", + "\t", "assume_success_timeout: ", this.settings.assume_success_timeout, "\n", + "\t", "file_post_name: ", this.settings.file_post_name, "\n", + "\t", "post_params: ", this.settings.post_params.toString(), "\n", + "\t", "file_types: ", this.settings.file_types, "\n", + "\t", "file_types_description: ", this.settings.file_types_description, "\n", + "\t", "file_size_limit: ", this.settings.file_size_limit, "\n", + "\t", "file_upload_limit: ", this.settings.file_upload_limit, "\n", + "\t", "file_queue_limit: ", this.settings.file_queue_limit, "\n", + "\t", "debug: ", this.settings.debug.toString(), "\n", -(function() { - var $brands = $('#brand-box li'); + "\t", "prevent_swf_caching: ", this.settings.prevent_swf_caching.toString(), "\n", - if ($brands.length > 0) { - $brands.find('a').on('click', function() { - delBrand($(this).closest('li').attr('id').substr(6)); - }); - } -})(); + "\t", "button_placeholder_id: ", this.settings.button_placeholder_id.toString(), "\n", + "\t", "button_placeholder: ", (this.settings.button_placeholder ? "Set" : "Not Set"), "\n", + "\t", "button_image_url: ", this.settings.button_image_url.toString(), "\n", + "\t", "button_width: ", this.settings.button_width.toString(), "\n", + "\t", "button_height: ", this.settings.button_height.toString(), "\n", + "\t", "button_text: ", this.settings.button_text.toString(), "\n", + "\t", "button_text_style: ", this.settings.button_text_style.toString(), "\n", + "\t", "button_text_top_padding: ", this.settings.button_text_top_padding.toString(), "\n", + "\t", "button_text_left_padding: ", this.settings.button_text_left_padding.toString(), "\n", + "\t", "button_action: ", this.settings.button_action.toString(), "\n", + "\t", "button_disabled: ", this.settings.button_disabled.toString(), "\n", -date.init(); + "\t", "custom_settings: ", this.settings.custom_settings.toString(), "\n", + "Event Handlers:\n", + "\t", "swfupload_loaded_handler assigned: ", (typeof this.settings.swfupload_loaded_handler === "function").toString(), "\n", + "\t", "file_dialog_start_handler assigned: ", (typeof this.settings.file_dialog_start_handler === "function").toString(), "\n", + "\t", "file_queued_handler assigned: ", (typeof this.settings.file_queued_handler === "function").toString(), "\n", + "\t", "file_queue_error_handler assigned: ", (typeof this.settings.file_queue_error_handler === "function").toString(), "\n", + "\t", "upload_start_handler assigned: ", (typeof this.settings.upload_start_handler === "function").toString(), "\n", + "\t", "upload_progress_handler assigned: ", (typeof this.settings.upload_progress_handler === "function").toString(), "\n", + "\t", "upload_error_handler assigned: ", (typeof this.settings.upload_error_handler === "function").toString(), "\n", + "\t", "upload_success_handler assigned: ", (typeof this.settings.upload_success_handler === "function").toString(), "\n", + "\t", "upload_complete_handler assigned: ", (typeof this.settings.upload_complete_handler === "function").toString(), "\n", + "\t", "debug_handler assigned: ", (typeof this.settings.debug_handler === "function").toString(), "\n" + ].join("") + ); +}; -(function() { - if (!$('#province').val()) { - address.loadAllData(0, { - provinceDomId: 'province', - cityDomId: 'city', - areaDomId: 'areaCode' - }); +/* Note: addSetting and getSetting are no longer used by SWFUpload but are included + the maintain v2 API compatibility +*/ +// Public: (Deprecated) addSetting adds a setting value. If the value given is undefined or null then the default_value is used. +SWFUpload.prototype.addSetting = function (name, value, default_value) { + if (value == undefined) { + return (this.settings[name] = default_value); } else { - address.bindAreaChange({ - provinceDomId: 'province', - cityDomId: 'city', - areaDomId: 'areaCode' - }); + return (this.settings[name] = value); } -})(); - -}); -define("js/home/gift", ["jquery","handlebars","source-map"], function(require, exports, module){ -/** - * 个人中心页-兑换礼品卡 - * @author: wsl<shuiling.wang@yoho.cn> - * @date: 2016/02/22 - */ -var $ = require("jquery"), - dialog = require("js/common/dialog"), - Alert = dialog.Alert; +}; -var $giftError = $('.giftCardCode').find('.gift-error'), - $codeError = $('.captchaCode').find('.gift-error'), - reg = '', - code = '', - i = 1; +// Public: (Deprecated) getSetting gets a setting. Returns an empty string if the setting was not found. +SWFUpload.prototype.getSetting = function (name) { + if (this.settings[name] != undefined) { + return this.settings[name]; + } -var active; + return ""; +}; -var Gift = { - suc: [ - false, - false, - false, - false - ], - checkCard: function(num) { - reg = /^[0-9a-zA-Z]{4,4}$/; - if (!reg.test($('#giftCardCode' + num).val())) { - $giftError.html('您输入的兑换码有误,兑换码必须为数字或字母,每个文本框里只能输入四个兑换码!'); - Gift.suc[num - 1] = false; - } else { - for (i = 1; i <= 3; i++) { - if (!reg.test($('#giftCardCode' + i).val())) { - $giftError.html('您输入的兑换码有误,兑换码必须为数字或字母,每个文本框里只能输入四个兑换码!'); - Gift.suc[i] = false; - } else { - $giftError.html(''); - Gift.suc[i] = true; - } - } - if (num !== 3) { - $('#giftCardCode' + (num + 1)).focus(); - } - } - }, - bindGiftCardForm: function() { - $('#giftCardCode1').bind('blur keyup', function() { - Gift.checkCard(1); - }); +// Private: callFlash handles function calls made to the Flash element. +// Calls are made with a setTimeout for some functions to work around +// bugs in the ExternalInterface library. +SWFUpload.prototype.callFlash = function (functionName, argumentArray) { + argumentArray = argumentArray || []; + + var movieElement = this.getMovieElement(); + var returnValue, returnString; - $('#giftCardCode2').bind('blur keyup', function() { - Gift.checkCard(2); - }); + // Flash's method if calling ExternalInterface methods (code adapted from MooTools). + try { + returnString = movieElement.CallFunction('<invoke name="' + functionName + '" returntype="javascript">' + __flash__argumentsToXML(argumentArray, 0) + '</invoke>'); + returnValue = eval(returnString); + } catch (ex) { + throw "Call to " + functionName + " failed"; + } + + // Unescape file post param values + if (returnValue != undefined && typeof returnValue.post === "object") { + returnValue = this.unescapeFilePostParams(returnValue); + } - $('#giftCardCode3').bind('blur keyup', function() { - Gift.checkCard(3); - }); + return returnValue; +}; - $('#captchaCode').bind('blur keyup', function() { - code = $('#captchaCode').val(); +/* ***************************** + -- Flash control methods -- + Your UI should use these + to operate SWFUpload + ***************************** */ - if (code.length <= 0) { - $codeError.html('请输入验证码!'); - Gift.suc[3] = false; - } else { - $codeError.html(''); - Gift.suc[3] = true; - } - }); - }, +// WARNING: this function does not work in Flash Player 10 +// Public: selectFile causes a File Selection Dialog window to appear. This +// dialog only allows 1 file to be selected. +SWFUpload.prototype.selectFile = function () { + this.callFlash("SelectFile"); +}; - checkForm: function() { - if (!reg.test($('#giftCardCode1').val()) || !reg.test($('#giftCardCode2').val()) || - !reg.test($('#giftCardCode3').val())) { - $giftError.html('您输入的兑换码有误,兑换码必须为数字或字母,每个文本框里只能输入四个兑换码!'); - return false; - } +// WARNING: this function does not work in Flash Player 10 +// Public: selectFiles causes a File Selection Dialog window to appear/ This +// dialog allows the user to select any number of files +// Flash Bug Warning: Flash limits the number of selectable files based on the combined length of the file names. +// If the selection name length is too long the dialog will fail in an unpredictable manner. There is no work-around +// for this bug. +SWFUpload.prototype.selectFiles = function () { + this.callFlash("SelectFiles"); +}; - if ($.trim($('#captchaCode').val()) === '') { - $codeError.html('请输入验证码!'); - return false; - } - return true; + +// Public: startUpload starts uploading the first file in the queue unless +// the optional parameter 'fileID' specifies the ID +SWFUpload.prototype.startUpload = function (fileID) { + this.callFlash("StartUpload", [fileID]); +}; + +// Public: cancelUpload cancels any queued file. The fileID parameter may be the file ID or index. +// If you do not specify a fileID the current uploading file or first file in the queue is cancelled. +// If you do not want the uploadError event to trigger you can specify false for the triggerErrorEvent parameter. +SWFUpload.prototype.cancelUpload = function (fileID, triggerErrorEvent) { + if (triggerErrorEvent !== false) { + triggerErrorEvent = true; } + this.callFlash("CancelUpload", [fileID, triggerErrorEvent]); }; -//更换验证码 -function refreshCaptcha() { - var dt = new Date(); +// Public: stopUpload stops the current upload and requeues the file at the beginning of the queue. +// If nothing is currently uploading then nothing happens. +SWFUpload.prototype.stopUpload = function () { + this.callFlash("StopUpload"); +}; - $('#imgcode').attr('src', '/passport/images?t=' + dt.getTime()); - return false; -} +/* ************************ + * Settings methods + * These methods change the SWFUpload settings. + * SWFUpload settings should not be changed directly on the settings object + * since many of the settings need to be passed to Flash in order to take + * effect. + * *********************** */ -$('#sub-gift').on('click', function() { - if (Gift.checkForm()) { - $.post('/home/gift/exchange', $('#giftCardForm').serialize(), function(data) { - if (data.code === 200) { - window.location.href = '/home/gift?type=1'; - } else if (data.code === 400) { - active = new Alert(data.message); - active.show(); - refreshCaptcha(); - } else { - window.location.href = '/home/gift?type=2'; - } - }, 'json'); +// Public: getStats gets the file statistics object. +SWFUpload.prototype.getStats = function () { + return this.callFlash("GetStats"); +}; + +// Public: setStats changes the SWFUpload statistics. You shouldn't need to +// change the statistics but you can. Changing the statistics does not +// affect SWFUpload accept for the successful_uploads count which is used +// by the upload_limit setting to determine how many files the user may upload. +SWFUpload.prototype.setStats = function (statsObject) { + this.callFlash("SetStats", [statsObject]); +}; + +// Public: getFile retrieves a File object by ID or Index. If the file is +// not found then 'null' is returned. +SWFUpload.prototype.getFile = function (fileID) { + if (typeof(fileID) === "number") { + return this.callFlash("GetFileByIndex", [fileID]); } else { - return false; + return this.callFlash("GetFile", [fileID]); } -}); +}; -$(document).on('click', '#imgcode,.check-img', function() { - refreshCaptcha(); -}); +// Public: addFileParam sets a name/value pair that will be posted with the +// file specified by the Files ID. If the name already exists then the +// exiting value will be overwritten. +SWFUpload.prototype.addFileParam = function (fileID, name, value) { + return this.callFlash("AddFileParam", [fileID, name, value]); +}; -$(function() { - refreshCaptcha(); - Gift.bindGiftCardForm(); -}); -}); -define("js/home/validate", ["jquery","handlebars","source-map"], function(require, exports, module){ -/** - * 个人中心页-账号安全验证 - * @author:wsl<shuiling.wang@yoho.cn> - * @date: 2016/02/23 - */ -var $ = require("jquery"), - dialog = require("js/common/dialog"), - phoneRegx = require("js/passport/mail-phone-regx"), - Alert = dialog.Alert; +// Public: removeFileParam removes a previously set (by addFileParam) name/value +// pair from the specified file. +SWFUpload.prototype.removeFileParam = function (fileID, name) { + this.callFlash("RemoveFileParam", [fileID, name]); +}; -var $checkUser = $('.check-user'), - $checkInput = $checkUser.find('input').not('input[type=button],input[type=hidden],input[type=reset]'), - canSend = true, - canFlag = true, - stime = 60; +// Public: setUploadUrl changes the upload_url setting. +SWFUpload.prototype.setUploadURL = function (url) { + this.settings.upload_url = url.toString(); + this.callFlash("SetUploadURL", [url]); +}; -var sInt, - active; +// Public: setPostParams changes the post_params setting +SWFUpload.prototype.setPostParams = function (paramsObject) { + this.settings.post_params = paramsObject; + this.callFlash("SetPostParams", [paramsObject]); +}; + +// Public: addPostParam adds post name/value pair. Each name can have only one value. +SWFUpload.prototype.addPostParam = function (name, value) { + this.settings.post_params[name] = value; + this.callFlash("SetPostParams", [this.settings.post_params]); +}; + +// Public: removePostParam deletes post name/value pair. +SWFUpload.prototype.removePostParam = function (name) { + delete this.settings.post_params[name]; + this.callFlash("SetPostParams", [this.settings.post_params]); +}; + +// Public: setFileTypes changes the file_types setting and the file_types_description setting +SWFUpload.prototype.setFileTypes = function (types, description) { + this.settings.file_types = types; + this.settings.file_types_description = description; + this.callFlash("SetFileTypes", [types, description]); +}; -$.ajaxSetup({ - async: false -}); +// Public: setFileSizeLimit changes the file_size_limit setting +SWFUpload.prototype.setFileSizeLimit = function (fileSizeLimit) { + this.settings.file_size_limit = fileSizeLimit; + this.callFlash("SetFileSizeLimit", [fileSizeLimit]); +}; -if (!Array.prototype.indexOf) { - Array.prototype.indexOf = function(obj, start) { - var i, - j; +// Public: setFileUploadLimit changes the file_upload_limit setting +SWFUpload.prototype.setFileUploadLimit = function (fileUploadLimit) { + this.settings.file_upload_limit = fileUploadLimit; + this.callFlash("SetFileUploadLimit", [fileUploadLimit]); +}; - for (i = (start || 0), j = this.length; i < j; i++) { - if (this[i] === obj) { - return i; - } - } +// Public: setFileQueueLimit changes the file_queue_limit setting +SWFUpload.prototype.setFileQueueLimit = function (fileQueueLimit) { + this.settings.file_queue_limit = fileQueueLimit; + this.callFlash("SetFileQueueLimit", [fileQueueLimit]); +}; - return -1; - }; -} +// Public: setFilePostName changes the file_post_name setting +SWFUpload.prototype.setFilePostName = function (filePostName) { + this.settings.file_post_name = filePostName; + this.callFlash("SetFilePostName", [filePostName]); +}; -function errorInfoAction(opt, txt) { - opt.$checkInfo.html('<div class="form-error">' + txt + '</div>'); - if (opt.dom.attr('name') !== 'code' && opt.dom.attr('name') !== 'verifyCode') { - opt.dom.addClass('input-error'); - } - return false; -} +// Public: setUseQueryString changes the use_query_string setting +SWFUpload.prototype.setUseQueryString = function (useQueryString) { + this.settings.use_query_string = useQueryString; + this.callFlash("SetUseQueryString", [useQueryString]); +}; -function successInfoAction(opt) { - opt.$checkInfo.html('<div class="form-success"> </div>'); +// Public: setRequeueOnError changes the requeue_on_error setting +SWFUpload.prototype.setRequeueOnError = function (requeueOnError) { + this.settings.requeue_on_error = requeueOnError; + this.callFlash("SetRequeueOnError", [requeueOnError]); +}; - if (opt.dom.attr('name') !== 'code' && opt.dom.attr('name') !== 'verifyCode') { - opt.dom.removeClass('input-error'); +// Public: setHTTPSuccess changes the http_success setting +SWFUpload.prototype.setHTTPSuccess = function (http_status_codes) { + if (typeof http_status_codes === "string") { + http_status_codes = http_status_codes.replace(" ", "").split(","); } - return true; -} - -function checkFormAjax(ajaxData) { - var res; - - $.post(ajaxData.url, ajaxData.data, function(data) { - if (typeof data.code !== 'undefined' && data.code === 200) { - res = successInfoAction(ajaxData.opt); - } else { - ajaxData.txt = ajaxData.txt !== '' && ajaxData.txt !== null ? ajaxData.txt : data.message; - res = errorInfoAction(ajaxData.opt, ajaxData.txt); - } - }); + + this.settings.http_success = http_status_codes; + this.callFlash("SetHTTPSuccess", [http_status_codes]); +}; - return res; -} +// Public: setHTTPSuccess changes the http_success setting +SWFUpload.prototype.setAssumeSuccessTimeout = function (timeout_seconds) { + this.settings.assume_success_timeout = timeout_seconds; + this.callFlash("SetAssumeSuccessTimeout", [timeout_seconds]); +}; -// 身份校验 -function checkForm(dom) { - var val = dom.val(), - len = val.length, - $domParent = dom.parent(), - $checkInfo = $domParent.find('.check-info'), - inputName = dom.attr('name'), - regular = '', - text = '', - mobileValue = '', - opt = { - $checkInfo: $checkInfo, - dom: dom - }, - ajaxData = { - opt: opt - }; +// Public: setDebugEnabled changes the debug_enabled setting +SWFUpload.prototype.setDebugEnabled = function (debugEnabled) { + this.settings.debug_enabled = debugEnabled; + this.callFlash("SetDebugEnabled", [debugEnabled]); +}; - $checkInfo.html(''); +// Public: setButtonImageURL loads a button image sprite +SWFUpload.prototype.setButtonImageURL = function (buttonImageURL) { + if (buttonImageURL == undefined) { + buttonImageURL = ""; + } + + this.settings.button_image_url = buttonImageURL; + this.callFlash("SetButtonImageURL", [buttonImageURL]); +}; - if (inputName === 'password') { - if (len === 0) { - return errorInfoAction(opt, '密码不能为空!'); - } else { - $.extend(ajaxData, { - url: '/home/account/checkpassword', - data: { - password: val - }, - txt: '密码错误!' - }); - return checkFormAjax(ajaxData); - } - } else if (inputName === 'verifyCode') { - $.extend(ajaxData, { - url: '/home/account/checkverifycode', - data: { - verifyCode: val - }, - txt: '验证码错误!' - }); - return checkFormAjax(ajaxData); - } else if (inputName === 'email') { - regular = phoneRegx.emailRegx; +// Public: setButtonDimensions resizes the Flash Movie and button +SWFUpload.prototype.setButtonDimensions = function (width, height) { + this.settings.button_width = width; + this.settings.button_height = height; + + var movie = this.getMovieElement(); + if (movie != undefined) { + movie.style.width = width + "px"; + movie.style.height = height + "px"; + } + + this.callFlash("SetButtonDimensions", [width, height]); +}; +// Public: setButtonText Changes the text overlaid on the button +SWFUpload.prototype.setButtonText = function (html) { + this.settings.button_text = html; + this.callFlash("SetButtonText", [html]); +}; +// Public: setButtonTextPadding changes the top and left padding of the text overlay +SWFUpload.prototype.setButtonTextPadding = function (left, top) { + this.settings.button_text_top_padding = top; + this.settings.button_text_left_padding = left; + this.callFlash("SetButtonTextPadding", [left, top]); +}; - if (val.match(regular) === null) { - return errorInfoAction(opt, '邮箱错误!'); - } else { - $.extend(ajaxData, { - url: '/home/account/checkemail', - data: { - email: val - }, - txt: '' - }); - return checkFormAjax(ajaxData); - } - } else if (inputName === 'mobile') { - regular = phoneRegx.phoneRegx; - text = val.split('-'); +// Public: setButtonTextStyle changes the CSS used to style the HTML/Text overlaid on the button +SWFUpload.prototype.setButtonTextStyle = function (css) { + this.settings.button_text_style = css; + this.callFlash("SetButtonTextStyle", [css]); +}; +// Public: setButtonDisabled disables/enables the button +SWFUpload.prototype.setButtonDisabled = function (isDisabled) { + this.settings.button_disabled = isDisabled; + this.callFlash("SetButtonDisabled", [isDisabled]); +}; +// Public: setButtonAction sets the action that occurs when the button is clicked +SWFUpload.prototype.setButtonAction = function (buttonAction) { + this.settings.button_action = buttonAction; + this.callFlash("SetButtonAction", [buttonAction]); +}; - if (text.length === 1) { - regular = val.match('^1[35847]{1}[0-9]{9}'); - } else { - regular = regular['+' + text[0]].test(text[1]); - } +// Public: setButtonCursor changes the mouse cursor displayed when hovering over the button +SWFUpload.prototype.setButtonCursor = function (cursor) { + this.settings.button_cursor = cursor; + this.callFlash("SetButtonCursor", [cursor]); +}; - if (len === 0) { - return errorInfoAction(opt, '手机号不能为空!'); - } else if (regular === null || !regular) { - return errorInfoAction(opt, '手机号错误!'); - } else { - $.extend(ajaxData, { - url: '/home/account/checkmobile', - data: { - mobile: val - }, - txt: '手机号已经存在!' - }); - return checkFormAjax(ajaxData); - } - } else if (inputName === 'newPwd') { - regular = phoneRegx.pwdValidateRegx; +/* ******************************* + Flash Event Interfaces + These functions are used by Flash to trigger the various + events. + + All these functions a Private. + + Because the ExternalInterface library is buggy the event calls + are added to a queue and the queue then executed by a setTimeout. + This ensures that events are executed in a determinate order and that + the ExternalInterface bugs are avoided. +******************************* */ - if (!regular.test(val)) { - return errorInfoAction(opt, '建议6~20个数字+字母组合!'); - } else { - return successInfoAction(opt); - } - } else if (inputName === 'confirm_password') { - if ($('#newPwd').val() !== val) { - return errorInfoAction(opt, '两次密码不一致!'); - } else { - return successInfoAction(opt); - } +SWFUpload.prototype.queueEvent = function (handlerName, argumentArray) { + // Warning: Don't call this.debug inside here or you'll create an infinite loop + + if (argumentArray == undefined) { + argumentArray = []; + } else if (!(argumentArray instanceof Array)) { + argumentArray = [argumentArray]; + } + + var self = this; + if (typeof this.settings[handlerName] === "function") { + // Queue the event + this.eventQueue.push(function () { + this.settings[handlerName].apply(this, argumentArray); + }); + + // Execute the next queued event + setTimeout(function () { + self.executeNextEvent(); + }, 0); + + } else if (this.settings[handlerName] !== null) { + throw "Event handler " + handlerName + " is unknown or is not a function"; + } +}; - // else if ($('#newPwd').val() !== '') { - // $('#newPwd').next().html('<div class="form-success"> </div>'); - // return successInfoAction(opt); - // } - } else if (inputName === 'code') { - mobileValue = $('#realAccount').length > 0 ? $('#realAccount').val() : $('#mobilevalue').val(); +// Private: Causes the next event in the queue to be executed. Since events are queued using a setTimeout +// we must queue them in order to garentee that they are executed in order. +SWFUpload.prototype.executeNextEvent = function () { + // Warning: Don't call this.debug inside here or you'll create an infinite loop - if (val !== '') { - $.extend(ajaxData, { - url: '/home/account/checkmobilemsg', - data: { - mobile: mobileValue, - code: $('#inputcode').val() - }, - txt: '验证码错误!' - }); - return checkFormAjax(ajaxData); - } - } else { - return true; + var f = this.eventQueue ? this.eventQueue.shift() : null; + if (typeof(f) === "function") { + f.apply(this); } -} - -// 校验表单 -function checkAllForm() { - var arr = []; +}; - canFlag = false; +// Private: unescapeFileParams is part of a workaround for a flash bug where objects passed through ExternalInterface cannot have +// properties that contain characters that are not valid for JavaScript identifiers. To work around this +// the Flash Component escapes the parameter names and we must unescape again before passing them along. +SWFUpload.prototype.unescapeFilePostParams = function (file) { + var reg = /[$]([0-9a-f]{4})/i; + var unescapedPost = {}; + var uk; - $.each($checkInput, function(key, item) { - arr[key] = checkForm($(item)); - }); + if (file != undefined) { + for (var k in file.post) { + if (file.post.hasOwnProperty(k)) { + uk = k; + var match; + while ((match = reg.exec(uk)) !== null) { + uk = uk.replace(match[0], String.fromCharCode(parseInt("0x" + match[1], 16))); + } + unescapedPost[uk] = file.post[k]; + } + } - if (arr.indexOf(false) >= 0) { - return false; - } else { - return true; + file.post = unescapedPost; } -} -// 切换验证码 -function changeCode() { - var timestamp = (new Date()).getTime(); + return file; +}; - $('#the-code-img').attr('src', '/passport/images?len=6&time=' + timestamp); -} +// Private: Called by Flash to see if JS can call in to Flash (test if External Interface is working) +SWFUpload.prototype.testExternalInterface = function () { + try { + return this.callFlash("TestExternalInterface"); + } catch (ex) { + return false; + } +}; -// 重新发送倒计时 -function code() { - var sstring = ''; +// Private: This event is called by Flash when it has finished loading. Don't modify this. +// Use the swfupload_loaded_handler event setting to execute custom code when SWFUpload has loaded. +SWFUpload.prototype.flashReady = function () { + // Check that the movie element is loaded correctly with its ExternalInterface methods defined + var movieElement = this.getMovieElement(); - if (stime > 0) { - sstring = '重新发送' + stime + '秒'; - $('#sendButton').text(sstring); - stime = stime - 1; - } else { - stime = 60; - $('#sendButton').text('发送验证码'); - clearInterval(sInt); - canSend = true; + if (!movieElement) { + this.debug("Flash called back ready but the flash movie can't be found."); + return; } -} -// 发送手机验证码ajax请求 -function sendMobileMsg(mobileV) { - var $code = $('#inputcode'), - $ccheckInfo = $code.parent().find('check-info'); + this.cleanUp(movieElement); + + this.queueEvent("swfupload_loaded_handler"); +}; - $.post('/home/account/sendmobilemsg', { - mobile: mobileV - }, function(data) { - if (typeof data.code !== 'undefined' && data.code === 200) { - canSend = false; - sInt = setInterval(function() { - code(); - }, 1000); - $ccheckInfo.html(''); - } else { - $ccheckInfo.html('<div class="form-error">验证码发送失败</div>'); +// Private: removes Flash added fuctions to the DOM node to prevent memory leaks in IE. +// This function is called by Flash each time the ExternalInterface functions are created. +SWFUpload.prototype.cleanUp = function (movieElement) { + // Pro-actively unhook all the Flash functions + try { + if (this.movieElement && typeof(movieElement.CallFunction) === "unknown") { // We only want to do this in IE + this.debug("Removing Flash functions hooks (this should only run in IE and should prevent memory leaks)"); + for (var key in movieElement) { + try { + if (typeof(movieElement[key]) === "function") { + movieElement[key] = null; + } + } catch (ex) { + } + } } - }); -} + } catch (ex1) { + + } -// 发送手机验证码 -function sendcode() { - var $mobile = $('#mobilevalue'); + // Fix Flashes own cleanup code so if the SWFMovie was removed from the page + // it doesn't display errors. + window["__flash__removeCallback"] = function (instance, name) { + try { + if (instance) { + instance[name] = null; + } + } catch (flashEx) { + + } + }; - var $mcheckInfo, - mobileV, - mobileObj; +}; - if ($mobile.length > 0) { - $mcheckInfo = $mobile.next(), - mobileV = $mobile.val(), - mobileObj = mobileV.split('-'); - if (mobileObj.length === 1) { - mobileObj = mobileV.match('^1[35847]{1}[0-9]{9}'); - } else { - mobileObj = phoneRegx.phoneRegx['+' + mobileObj[0]].test(mobileObj[1]); - } - } else { - mobileV = $('#realAccount').val(); - } +/* This is a chance to do something before the browse window opens */ +SWFUpload.prototype.fileDialogStart = function () { + this.queueEvent("file_dialog_start_handler"); +}; - if (canSend) { - if ($mobile.length > 0) { - if (mobileObj === null || !mobileObj) { - $mcheckInfo.html('<div class="form-error">手机号错误!</div>'); - $mobile.addClass('input-error'); - return false; - } - if ($mcheckInfo.find('.form-success').length > 0) { - sendMobileMsg(mobileV); - } - } +/* Called when a file is successfully added to the queue. */ +SWFUpload.prototype.fileQueued = function (file) { + file = this.unescapeFilePostParams(file); + this.queueEvent("file_queued_handler", file); +}; - if ($('#realAccount').length > 0) { - sendMobileMsg(mobileV); - } - } else { - return false; - } -} -// 验证完成后倒计时跳转 -function toHome() { - window.location.href = '/home/account'; -} +/* Handle errors that occur when an attempt to queue a file fails. */ +SWFUpload.prototype.fileQueueError = function (file, errorCode, message) { + file = this.unescapeFilePostParams(file); + this.queueEvent("file_queue_error_handler", [file, errorCode, message]); +}; -// ajax公共处理模块 -function ajaxAction(opt, flag) { - $.post(opt.url, opt.data, function(data) { - if (data.code === 200) { - if (flag) { - opt.hrefUrl += '&checkCode=' + data.data; - } - window.location.href = opt.hrefUrl; - } else { - canFlag = true; - active = new Alert(data.message); - active.show(); - return false; - } - }, 'json'); -} +/* Called after the file dialog has closed and the selected files have been queued. + You could call startUpload here if you want the queued files to begin uploading immediately. */ +SWFUpload.prototype.fileDialogComplete = function (numFilesSelected, numFilesQueued, numFilesInQueue) { + this.queueEvent("file_dialog_complete_handler", [numFilesSelected, numFilesQueued, numFilesInQueue]); +}; -// 提交表单 -function submitForm() { - var step = $('.progress-bar .cur').index(), - verifyType = $('#verifyType').val(), - curType = '', - opt = {}; +SWFUpload.prototype.uploadStart = function (file) { + file = this.unescapeFilePostParams(file); + this.queueEvent("return_upload_start_handler", file); +}; - if ($('.email').length > 0) { - curType = 'email'; +SWFUpload.prototype.returnUploadStart = function (file) { + var returnValue; + if (typeof this.settings.upload_start_handler === "function") { + file = this.unescapeFilePostParams(file); + returnValue = this.settings.upload_start_handler.call(this, file); + } else if (this.settings.upload_start_handler != undefined) { + throw "upload_start_handler must be a function"; } - if ($('.mobile').length > 0) { - curType = 'mobile'; + // Convert undefined to true so if nothing is returned from the upload_start_handler it is + // interpretted as 'true'. + if (returnValue === undefined) { + returnValue = true; } + + returnValue = !!returnValue; + + this.callFlash("ReturnUploadStart", [returnValue]); +}; - if ($('.userpwd').length > 0) { - curType = 'userpwd'; - } - /* - * step 0: 验证身份 1:验证第二步骤 2:验证第三步骤 - * verifyType 验证身份的状态 1:登录密码验证 2:邮箱的身份验证 3:手机的身份验证 - */ - if (step === 0) { - if (verifyType === '1') { - opt = { - url: '/home/account/verifypassword', - data: $('#pwdform').serialize(), - hrefUrl: '/home/account/' + curType + '?step=2' - }; - ajaxAction(opt, 'step1'); +SWFUpload.prototype.uploadProgress = function (file, bytesComplete, bytesTotal) { + file = this.unescapeFilePostParams(file); + this.queueEvent("upload_progress_handler", [file, bytesComplete, bytesTotal]); +}; - // if (!ajaxAction(opt)) { - // $("input[type=reset]").trigger("click"); - // } - } else if (verifyType === '2') { - opt = { - url: '/home/account/sendemail', - data: { - checkType: curType, - email: $('#realAccount').val() - }, - hrefUrl: '/home/account/sendemailsuccess?email=' + $('#realAccount').val() + - '&type=1&checkType=' + curType - }; - ajaxAction(opt); - } else { - opt = { - url: '/home/account/checkmobilemsg', - data: { - mobile: $('#realAccount').val(), - code: $('#inputcode').val() - }, - hrefUrl: '/home/account/' + curType + '?step=2' - }; - ajaxAction(opt, 'step1'); - } - } else if (step === 1) { - if (curType === 'userpwd') { - opt = { - url: '/home/account/modifypwd', - data: $('#pwdform').serialize(), - hrefUrl: '/home/account/userpwd?step=3&success=true' - }; - ajaxAction(opt); - } else if (curType === 'email') { - opt = { - url: '/home/account/modifyemail', - data: { - email: $('#email').val() - }, - hrefUrl: '/home/account/sendemailsuccess?email=' + $('#email').val() + - '&type=2&checkType=email' - }; - ajaxAction(opt); - } else { - opt = { - url: '/home/account/modifymobile', - data: { - mobile: $('#mobilevalue').val(), - code: $('#inputcode').val() - }, - hrefUrl: '/home/account/mobile?step=3&success=true' - }; - ajaxAction(opt); - } - } -} +SWFUpload.prototype.uploadError = function (file, errorCode, message) { + file = this.unescapeFilePostParams(file); + this.queueEvent("upload_error_handler", [file, errorCode, message]); +}; -$(function() { - var t = null; +SWFUpload.prototype.uploadSuccess = function (file, serverData, responseReceived) { + file = this.unescapeFilePostParams(file); + this.queueEvent("upload_success_handler", [file, serverData, responseReceived]); +}; - if ($('.res-info').length > 0) { - t = setTimeout(function() { - toHome(); - }, 5000); - } +SWFUpload.prototype.uploadComplete = function (file) { + file = this.unescapeFilePostParams(file); + this.queueEvent("upload_complete_handler", file); +}; - changeCode(); +/* Called by SWFUpload JavaScript and Flash functions when debug is enabled. By default it writes messages to the + internal debug console. You can override this event and have messages written where you want. */ +SWFUpload.prototype.debug = function (message) { + this.queueEvent("debug_handler", message); +}; - $('#pwdform').submit(function() { - return false; - }); - $checkInput.blur(function() { - checkForm($(this)); - }); +/* ********************************** + Debug Console + The debug console is a self contained, in page location + for debug message to be sent. The Debug Console adds + itself to the body if necessary. - $('.sub-btn').on('click', function() { - if (canFlag === false) { - return false; - } + The console is automatically scrolled as messages appear. + + If you are using your own debug handler or when you deploy to production and + have debug disabled you can remove these functions to reduce the file size + and complexity. +********************************** */ + +// Private: debugMessage is the default debug_handler. If you want to print debug messages +// call the debug() function. When overriding the function your own function should +// check to see if the debug setting is true before outputting debug information. +SWFUpload.prototype.debugMessage = function (message) { + if (this.settings.debug) { + var exceptionMessage, exceptionValues = []; - if (checkAllForm()) { - submitForm(); + // Check for an exception object and print it nicely + if (typeof message === "object" && typeof message.name === "string" && typeof message.message === "string") { + for (var key in message) { + if (message.hasOwnProperty(key)) { + exceptionValues.push(key + ": " + message[key]); + } + } + exceptionMessage = exceptionValues.join("\n") || ""; + exceptionValues = exceptionMessage.split("\n"); + exceptionMessage = "EXCEPTION: " + exceptionValues.join("\nEXCEPTION: "); + SWFUpload.Console.writeLine(exceptionMessage); } else { - return false; + SWFUpload.Console.writeLine(message); } - }); + } +}; - $('input[name=verifyCode]').keydown(function(e) { - if (e.keyCode === 13) { - if (canFlag === false) { - return false; - } +SWFUpload.Console = {}; +SWFUpload.Console.writeLine = function (message) { + var console, documentForm; - if (checkAllForm()) { - submitForm(); - } else { - return false; - } - } - }); + try { + console = document.getElementById("SWFUpload_Console"); - $('.the-code').on('click', function() { - changeCode(); - }); + if (!console) { + documentForm = document.createElement("form"); + document.getElementsByTagName("body")[0].appendChild(documentForm); - $('#send-mobile-code').on('click', function() { - sendcode(); - }); + console = document.createElement("textarea"); + console.id = "SWFUpload_Console"; + console.style.fontFamily = "monospace"; + console.setAttribute("wrap", "off"); + console.wrap = "off"; + console.style.overflow = "auto"; + console.style.width = "700px"; + console.style.height = "350px"; + console.style.margin = "5px"; + documentForm.appendChild(console); + } - if ($('#newPwd').length > 0) { - $('#newPwd').on('input', function(e) { - var $confirm = $('input[name=confirm_password]'), - confirmV = $confirm.val(), - newPwdV = $('#newPwd').val(), - opt = { - dom: $confirm, - $checkInfo: $confirm.next() - }; + console.value += message + "\n"; - if (confirmV.length > 0 && newPwdV !== confirmV) { - errorInfoAction(opt, '两次密码不一致!'); - } - }); + console.scrollTop = console.scrollHeight - console.clientHeight; + } catch (ex) { + alert("Exception: " + ex.name + " Message: " + ex.message); } +}; + +exports.SWFUpload = SWFUpload; }); -}); -define("js/home/address", ["jquery","handlebars","source-map"], function(require, exports, module){ +define("js/home/comment", ["jquery"], function(require, exports, module){ /** - * 个人中心页-地址管理 - * @author: wsl<shuiling.wang@yoho.cn> - * @date: 2016/02/24 + * 我的评论 + * @author: yyqing<yanqing.yang@yoho.cn> + * @date: 2016/3/1 */ -var $ = require("jquery"), - regionCode = require("js/home/common-address"), - dialog = require("js/common/dialog"), - Alert = dialog.Alert; +var $ = require("jquery"); + +var $comment = $('.comment-table'), + $remarkBtn = $comment.find('.remark-btn'); + +var $dialog = $('#comment-dialog-widget'), + $titleBar = $dialog.find('.dialog-titlebar'), + $commentArea = $dialog.find('textarea'); + +var pageW = $(document).width(), + pageH = $(document).height(), + winH = $(window).height(); + +var dialog = { + canmove: false, + offset: {}, + maxtop: 0, + maxleft: 0 + }, + orderInfo = {}, + $optDom; + +// 处理订单数据 +$remarkBtn.each(function() { + var $next = $(this).next(), + data = $next.data(), + key = data.orderid; + + orderInfo[key] = {}; + orderInfo[key].productSkn = data.productskn; + orderInfo[key].productId = data.productid; + orderInfo[key].goodsId = data.goodsid; + orderInfo[key].orderId = data.orderid; + orderInfo[key].erpSkuId = data.erpskuid; -var active; + $next.remove(); + $(this).data('code', key); +}); -var $del = $('.address-del'), - $edit = $('.address-modify'), - $input = $('.input-1'); +$remarkBtn.click(function() { + var scrollTop = $(document).scrollTop(); -var address = { + $optDom = $(this); + $commentArea.val(''); + $dialog.removeClass('hide').css({ + top: scrollTop + (winH - $dialog.outerHeight()) / 2, + left: (pageW - $dialog.outerWidth()) / 2 + }); +}); - evil: function(fn) { - var Fn = Function; +// 评论弹窗 +$titleBar.bind('mousedown', function(e) { + if ($(e.target).hasClass('dialog-close-btn')) { + return; + } - return new Fn('return ' + fn)(); - }, + dialog.canmove = true; + dialog.offset = { + x: e.offsetX, + y: e.offsetY + }; + dialog.maxtop = pageH - $dialog.outerHeight(); + dialog.maxleft = pageW - $dialog.outerWidth(); +}); - clearAddrForm: function() { - $('#addressName').val(''); - $('#address').val(''); - $('#zipCode').val(''); - $('#phone').val(''); - $('#mobile').val(''); - $('#email').val(''); - $('#addrId').val(0); - $('#province').val(0); - $('#city').val(0); - $('#areaCode').val(0).hide(); - $('#btn-reset').hide(); - $('#form-status').html('添加新地址'); - }, +$(document).mousemove(function(e) { + var mtop, mleft; - editAddr: function(id) { - $.getJSON('/home/address/editAddress?id=' + id, function(jsonData) { - if (jsonData.code === 200) { - $('#form-status').html('修改地址'); - $('#addressName').val(jsonData.data.consignee); + if (!dialog.canmove) { + return; + } - regionCode.loadAllData(jsonData.data.area_code, {}); - $('#address').val(jsonData.data.address); - $('#email').val(jsonData.data.email); - $('#phone').val(jsonData.data.phone); - $('#mobile').val(jsonData.data.mobile); - $('#zipCode').val(jsonData.data.zip_code); - $('#addrId').val(jsonData.data.address_id); - $('#btn-reset').show(); - } - }); - }, + mtop = e.pageY - dialog.offset.y; + mleft = e.pageX - dialog.offset.x; + mtop = mtop < dialog.maxtop ? mtop : dialog.maxtop; + mleft = mleft < dialog.maxleft ? mleft : dialog.maxleft; + $dialog.css({ + top: mtop > 0 ? mtop : 0, + left: mleft > 0 ? mleft : 0 + }); +}).mouseup(function(e) { + dialog.canmove = false; +}); - saveAddr: function(callbackFunc) { - $.post('/home/address/saveAddress', $('#address-form').serialize(), function(data) { - if (data.code === 200) { - location.reload(); - } else { - active = new Alert(data.message); - active.show(); - } - }, 'json'); - }, +$dialog.on('click', '.dialog-save-btn', function() { + var remark = $.trim($commentArea.val()), + param; - // 删除地址 - delAddr: function(addrId) { - $.getJSON('/home/address/delAddress?id=' + addrId, function(jsonData) { - if (jsonData.code === 200) { - $('.address-list').find('li[addressId=' + addrId + ']').remove(); - if (addrId === $('#addrId').val()) { - address.clearAddrForm(); - } - } else { - active = new Alert('删除失败'); - active.show(); - } - }); - }, + if (remark === '') { + alert('请添加评论内容'); + return; + } + if ($optDom.length) { + param = orderInfo[$optDom.data().code]; + param.content = remark; - setDefaultAddr: function(addrId) { - var oldBtn = $('.address-list').find('.default-btn'), - oldLi = $('.address-list').find('.default-btn').parents('li'), - curLi = $('.address-list').find('li[addressId=' + addrId + ']'), - curBtn = curLi.find('.set-default-btn'); + $.ajax({ + type: 'POST', + url: '/home/comment/saveComment', + data: param + }).then(function(jsonData) { + var $par = $optDom.parent(); - $.getJSON('/home/address/defaultAddress?id=' + addrId, function(jsonData) { if (jsonData.code === 200) { - oldBtn.attr('class', 'btn-c3 set-default-btn'); - oldLi.removeClass('preferred'); - oldBtn.html('<span>设为常用地址</span>'); - curBtn.attr('class', 'btn-c2 default-btn'); - oldBtn.html('<span>设为常用地址</span>'); - curLi.addClass('preferred'); + $par.prev().text(remark); + $par.html('<span class="remarked">已评论!</span>'); + $optDom.length = 0; + $dialog.addClass('hide'); } else { - active = new Alert('设置失败'); - active.show(); + alert(jsonData.message); } }); } -}; - -if (!Array.prototype.indexOf) { - Array.prototype.indexOf = function(obj, start) { - var i, - j; - - for (i = (start || 0), j = this.length; i < j; i++) { - if (this[i] === obj) { - return i; - } - } - - return -1; - }; -} - -// 获取地址id -function getAddressId(dom) { - var li = dom.parents('.address-content'), - id = li.attr('addressId'); +}); - return id; -} +$dialog.on('click', '.dialog-close-btn', function() { + $optDom.length = 0; + $dialog.addClass('hide'); +}); +}); +define("js/home/complaints", ["jquery"], function(require, exports, module){ +/** + * 我的投诉 + * @author: yyqing<yanqing.yang@yoho.cn> + * @date: 2016/3/18 + */ -//表单焦点显示 -function focusAction(opt) { - var msg = ''; +var $ = require("jquery"); - if (opt.inputName === 'addressName') { - msg = '真实姓名在2到5个汉字之间'; - } +var $cancelBtn = $('.cancel-btn'), + $title = $('#title'), + $customer = $('#customer'), + $complaintsType = $('#complaintsType'), + $orderCode = $('#orderCode'), + $content = $('#content'); - if (opt.inputName === 'address') { - msg = '请填写详细地址'; - } +var ajaxing = false; +var rule = { + title: { + dom: $title, + min: 1, + max: 10, + onshow: '请输入您的投诉主题', + onfocus: '请输入主题', + onmin: '投诉主题不能为空', + onmax: '输入投诉主题不能超过10个字' + }, + customer: { + dom: $customer, + min: 1, + max: 10, + onshow: '请填写您要投诉的对象,比如:客服00*号、发货员...', + onfocus: '请填写您要投诉的对象', + onmin: '投诉对象不能为空', + onmax: '输入投诉对象不能超过10个字' + }, + orderCode: { + dom: $orderCode, + regexp: /^([0-9,]{9,})$/, //一个和多个订单 + onshow: '如果多个是多个订单号,请用英文逗号隔开,没有则不填', + onfocus: '请输入订单号', + onerror: '您输入的订单格式不对,如果多个是多个订单号,请用英文逗号隔开' + }, + content: { + dom: $content, + min: 1, + max: 130, + onshow: '输入您投诉的内容', + onfocus: '请输入您投诉的内容', + onmin: '投诉内容不能为空', + onmax: '输入的投诉内容不能超过130个字' + } + }; - if (opt.inputName === 'zipCode') { - msg = '请输入收货人所在地邮编号'; +function preventResubmit() { + if (!ajaxing) { + ajaxing = true; + setTimeout(function() { + ajaxing = false; + }, 1000); + return false; } + return true; +} - if (opt.inputName === 'phone') { - msg = '格式例如:0577-88888888'; - } +function validate(info) { + var $tips = info.dom.siblings('.option-tip'), + val = $.trim(info.dom.val()), + len = val.length; - if (opt.inputName === 'mobile') { - msg = '请输入手机号,如1360000000'; + if (info.min && len < info.min) { + $tips.text(info.onmin); + return false; + } else if (info.max && len > info.max) { + $tips.text(info.onmax); + return false; } - if (opt.inputName === 'email') { - msg = '用来接收订单提醒邮件,便于您及时了解订单状态'; + if (info.regexp && !info.regexp.test(val)) { + $tips.text(info.onerror); + return false; } - opt.$checkInfo.removeClass('form-prompt').addClass('form-focus').html(msg); + $tips.text('输入正确'); + return true; } -//表单失去焦点显示 -function blurAction(opt) { - var regular = '', - res = true, - msg = '输入正确', - domClass = 'form-info form-success', - value = opt.val; - - if (opt.inputName === 'addressName') { - regular = /^[\u4e00-\u9fa5]{2,5}$/; +function validateForm() { + var res = {}, + focus; - if (opt.len < 1 || opt.len > 12) { - msg = '真实姓名在2到5个汉字之间,请确认'; - res = false; - domClass = 'form-info form-error'; - } else if (regular.test(opt.val) === false) { - msg = '真实姓名至少2个中文,最多5个中文'; - res = false; - domClass = 'form-info form-error'; + $.each(rule, function(key, info) { + if (validate(info)) { + res[key] = $.trim(info.dom.val()); + } else { + if (!focus) { + focus = key; + info.dom.focus(); + } } - } + }); + res.complaintsType = $complaintsType.val(); - if (opt.inputName === 'address') { - if (opt.len < 2) { - msg = '请填写详细地址'; - res = false; - domClass = 'form-info form-error'; - } + if (focus) { + return false; } + return res; +} - if (opt.inputName === 'zipCode') { - regular = /^[0-9]{6}$/; +function addComplaint() { + var sendParm = validateForm(); - if (opt.len === 0) { - msg = '请输入收货人所在地邮编号'; - res = false; - domClass = 'form-info form-error'; - } else if (regular.test(opt.val) === false) { - msg = '你输入的邮编式不正确'; - res = false; - domClass = 'form-info form-error'; - } + if (preventResubmit() || !sendParm) { + return; } - if (opt.inputName === 'phone') { - regular = /^(0[0-9]{2,3}\-)?([2-9][0-9]{6,7})+(\-[0-9]{1,4})?$/; - - if (opt.len === 0) { - msg = '你真的不想留联系电话了吗?'; - res = true; - domClass = 'form-info form-success'; - } else if (regular.test(opt.val) === false) { - msg = '你输入的联系电话格式不正确'; - res = false; - domClass = 'form-info form-error'; + $.ajax({ + type: 'POST', + url: '/home/complaints/addcomplaints', + data: sendParm + }).then(function(jsonData) { + ajaxing = false; + if (jsonData.code === 200) { + window.location.reload(); + } else { + alert(jsonData.message); } - } + }); +} - if (opt.inputName === 'mobile') { - regular = /^1[3|4|5|8|7][0-9]{9}$/; +function cancelComplaint(id, dom) { + var $dom = dom; - if (opt.len !== 11) { - msg = '手机号码必须是11位的,请确认'; - res = false; - domClass = 'form-info form-error'; - } else if (regular.test(opt.val) === false) { - msg = '您输入的手机号格式不正确'; - res = false; - domClass = 'form-info form-error'; - } + if (preventResubmit()) { + return; } - if (opt.inputName === 'email') { - regular = '^[a-z0-9_\-]+(\.[_a-z0-9\-]+)*@([_a-z0-9\-]+\.)+([a-z]{2}|aero|arpa|biz|com|coop|' + - 'edu|gov|info|int|jobs|mil|museum|name|nato|net|org|pro|travel)$'; - - if (value.match(regular) === null || opt.len === 0) { - msg = '你输入的邮件地址格式不正确'; - res = false; - domClass = 'form-info form-error'; + $.ajax({ + type: 'POST', + url: '/home/complaints/cancelcomplaints', + data: { + id: id } - } - - opt.$checkInfo.removeClass().addClass(domClass).html(msg); - return res; + }).then(function(jsonData) { + ajaxing = false; + if (jsonData.code === 200) { + $dom.prev().remove(); + $dom.text('问题已撤销'); + } else { + alert(jsonData.message); + } + }); } +$.each(rule, function(key, info) { + info.dom.focus(function() { + info.dom.siblings('.option-tip').text(info.onfocus); + }).blur(function() { + validate(info); + }); +}); -// 地址表单验证 -function checkAddressForm(dom, action) { - var val = dom.val(), - $domParent = dom.parent(), - opt = { - val: val, - len: val.length, - $domParent: dom.parent(), - $checkInfo: $domParent.find('span'), - inputName: dom.attr('name') - }; +$('#complaint-submit').click(function() { + addComplaint(); +}); - if (action === 'focus') { - focusAction(opt); - } +$cancelBtn.click(function() { + var data = $(this).data(); - if (action === 'blur') { - return blurAction(opt); + if (data && data.id) { + cancelComplaint(data.id, $(this).parent()); } -} +}); +}); +define("js/home/message", ["jquery"], function(require, exports, module){ +/** + * 我的信息 + * @author: yyqing<yanqing.yang@yoho.cn> + * @date: 2016/3/21 + */ +var $ = require("jquery"); -function fullOneValidator() { - var phone = $('#phone').next(), - mobile = $('#mobile').next(); +var $container = $('#message-main-container'), + $msgCheck = $container.find('.msg-check'), + $readBtn = $container.find('.read-choose-btn'), + $checked; - if (mobile.hasClass('form-success') && !phone.hasClass('form-error') && $('#phone').val().length === 0) { - phone.removeClass().addClass('form-prompt form-info').html('请输入你的联系电话,可以为空哦'); - return true; - } else if (phone.html() === '输入正确' && !mobile.hasClass('form-error') && $('#mobile').val().length === 0) { - mobile.removeClass().addClass('form-prompt form-info').html('填写手机号便于接收发货和收货通知'); - return true; - } else if (!mobile.hasClass('form-success') && phone.html() !== '输入正确') { - phone.removeClass().addClass('form-success form-info').html('你真的不想留联系电话了吗?'); - mobile.removeClass().addClass('form-prompt form-info').html('填写手机号便于接收发货和收货通知'); - $('#mobile').focus(); - return false; - } -} +var operationId = []; -//校验所有内容 -function checkAllForm() { - var arr = []; +require("js/home/message-content"); - $.each($input, function(key, item) { - arr.push(checkAddressForm($(item), 'blur')); +function hasNew() { + var newMsg = false; + + $checked = $container.find('.msg-check:checked'); + operationId = []; + + $checked.each(function() { + var $par = $(this).parent().parent(); + + operationId.push($(this).val()); + if ($par.hasClass('new-msg')) { + newMsg = true; + } }); - arr.push(fullOneValidator()); + if (newMsg) { + $readBtn.addClass('has-new'); + } else { + $readBtn.removeClass('has-new'); + } +} - $.each($('.form-info'), function(key, item) { - if ($(item).hasClass('form-error')) { - $(item).prev().focus(); - return false; +function msgOperation(type, data) { + var url; + + switch (type) { + case 'del': + url = '/home/message/delMessage'; + break; + case 'read': + url = '/home/message/readMessage'; + break; + } + + $.ajax({ + type: 'GET', + url: url, + data: data + }).then(function(jsonData) { + if (!jsonData.code) { + if (type === 'del') { + $container.html(jsonData); + $msgCheck = $container.find('.msg-check'); + $readBtn = $container.find('.read-choose-btn'); + } + } else { + if (jsonData.code === 200) { + if (type === 'read') { + $checked.removeAttr('checked'); + $checked.parent().parent().removeClass('new-msg'); + hasNew(); + } + } else { + alert(jsonData.message); + } } }); - - - if (arr.indexOf(false) === -1) { - return true; - } else { - return false; - } } -$(document).on('click', '.set-default-btn', function() { - var id = getAddressId($(this)); - - address.setDefaultAddr(id); -}); - -$del.on('click', function() { - var id = getAddressId($(this)); - - address.delAddr(id); -}); - -$edit.on('click', function() { - var id = getAddressId($(this)); +$container.on('change', 'input[type="checkbox"]', function() { + var checked = $(this).attr('checked'); - address.editAddr(id); - $('#btn-reset').show(); + if ($(this).hasClass('choose-all')) { + if (checked === 'checked') { + $msgCheck.attr('checked', true); + } else { + $msgCheck.removeAttr('checked'); + } + } + hasNew(); }); -$input.on('focus', function() { - checkAddressForm($(this), 'focus'); +$container.on('click', '.del-btn', function() { + if (confirm('您确定要删除这条短消息?')) { + msgOperation('del', $(this).data()); + } }); -$input.on('blur', function() { - checkAddressForm($(this), 'blur'); -}); +$container.on('click', '.del-choose-btn', function() { + if (!operationId.length) { + alert('请选中您要删除的消息'); + return; + } -$('#address-info').on('click', function() { - if (checkAllForm()) { - address.saveAddr(); + if (confirm('确定要删除您选中的消息')) { + msgOperation('del', { + id: operationId.join(',') + }); } }); -$(document).ready(function() { - regionCode.loadAllData( - 0, - { - provinceDomId: 'province', - cityDomId: 'city', - areaDomId: 'areaCode' - } - ); - - address.clearAddrForm(); - - $('#btn-reset').click(function() { - address.clearAddrForm(); - }); -}); +$container.on('click', '.read-choose-btn', function() { + if ($(this).hasClass('has-new')) { + msgOperation('read', { + id: operationId.join(',') + }); + } }); -define("js/help/entry", ["jquery","handlebars","source-map"], function(require, exports, module){ -/** - * 帮助中心页js打包入口文件 - * @author: yyqing<yanqing.yang@yoho.cn> - * @date: 2016/3/23 - */ - -require("js/help/search"); }); -define("js/help/search", ["jquery","handlebars","source-map"], function(require, exports, module){ +define("js/home/message-content", ["jquery"], function(require, exports, module){ /** * 我的信息 * @author: yyqing<yanqing.yang@yoho.cn> - * @date: 2016/3/23 + * @date: 2016/3/25 */ -var $ = require("jquery"), - Handlebars = require("handlebars"); +var $ = require("jquery"); -var $searchMain = $('.search-content'), - $dialog = $('#help-dialog-widget'), - $dialogBg = $('#help-dialog-bg'); +var $pickBtn = $('.pick-coupon-btn'); -var docW = $(document).width(), - winH = $(window).height(); +var pickBusy = false; -var tpl = - '<div class="dialog-titlebar">' + - '<span class="dialog-close-btn"></span>' + - '</div>' + - '<div class="dialog-content">' + - '<p class="ask">问:<br>{{ask}}</p>' + - '<p class="answer">答:<br>{{answer}}</p>' + - '</div>'; +$pickBtn.click(function() { + var data = $(this).data(); -var tplFn = Handlebars.compile(tpl); + if (pickBusy) { + return; + } + pickBusy = true; + $.ajax({ + type: 'GET', + url: '/home/message/pickCoupon', + data: data + }).then(function(jsonData) { + var msg = jsonData.message; -$searchMain.on('click', '.faqs', function() { - var data = $(this).data(), - top = $(document).scrollTop(); + if (jsonData.code === 200) { + msg = '领取成功'; + $(this).removeClass('pick-coupon-btn'); + } - $dialog.html(tplFn(data)).removeClass('hide'); - $dialogBg.removeClass('hide'); + pickBusy = false; - $dialog.html(tplFn(data)).css({ - top: top + (winH - $dialog.outerHeight()) / 2, - left: (docW - $dialog.outerWidth()) / 2 + alert(msg); }); -}); - -$dialog.on('click', '.dialog-close-btn', function() { - $dialog.addClass('hide'); - $dialogBg.addClass('hide'); }); }); -define("js/order/ensure", ["jquery","handlebars","source-map"], function(require, exports, module){ +define("js/home/edit", ["jquery","handlebars","source-map"], function(require, exports, module){ +/** + * 个人中心页-个人资料编辑 + * @author: zhaobiao<bill.zhao@yoho.cn> + * @date: 2016/02/17 + */ +var $ = require("jquery"); + +var $allEditForms = $('.userinfo-edit form'); + +var address = require("js/home/common-address"); + +var date = { + init: function(year, month, day) { + var $year = $('#year'), + $month = $('#month'), + $day = $('#day'); + + var that = this; + + this.createDay($year.val(), $month.val(), $day.val()); + + $year.on('change', function() { + that.update(); + }); + + $month.on('change', function() { + that.update(); + }); + }, + update: function() { + this.createDay($('#year').val(), $('#month').val(), $('#day').val()); + }, + createDay: function(year, month, day) { + var html = '<select name="day" id="day">', + monthArray = new Array(4, 6, 9, 11), + dayNum = 31; + + var select, + i; + + year = parseInt(year); + month = parseInt(month); + + if (year === 0) { + year = 0; + } + + if (month === 0) { + month = 0; + } + + $('#year').val(year.toString()); + $('#month').val(month.toString()); + + html += '<option value="0">日</option>'; + + if (year > 0 && month > 0) { + if ($.inArray(month, monthArray) !== -1) { + dayNum = 30; + } else if (month === 2) { + dayNum = 28; + if (0 === year % 4 && (year % 100 !== 0 || year % 400 === 0)) { + dayNum = 29; + } + } + + for (i = 1; i <= dayNum; i++) { + select = ''; + + if (parseInt(day) === i) { + select = 'selected'; + } + html += '<option value="' + i + '" ' + select + '>' + i + '</option>'; + } + } + html += '</select>'; + + $('#day').replaceWith(html); + } +}; + + +$('.userinfo-edit h2').on('click', function() { + var $form = $(this).next(); + + $allEditForms.slideUp('fast'); + $form.css('display') === 'none' ? $form.slideDown('slow') : null; + +}); + +function checkBaseForm() { + var nicknameLength = $('#nickname').val().length, + usernameLength = $('#username').val().length, + $gender = $('input[name="gender"]'), + $year = $('#year'), + $month = $('#month'), + $day = $('#day'); + + if (nicknameLength === 0) { + alert('请输入昵称'); + return false; + } + + if (usernameLength === 0) { + alert('请输入用户名'); + return false; + } + + if (nicknameLength >= 20) { + alert('昵称最长为20个字符'); + return false; + } + + + if (!$gender.is(':checked')) { + alert('请选择性别'); + return false; + } + + if ($year.val() === '0' || $month.val() === '0' || $day.val() === '0') { + alert('请选择出生年月日'); + return false; + } + + return true; +} + +function checkContactForm() { + if ($('#province').val() === '0' || $('#city').val() === '0' || $('#areaCode').val() === '0') { + alert('请选择所在区域'); + return false; + } + + if ($('#province').val() === null || $('#city').val() === null || $('#areaCode').val() === null) { + alert('请选择所在区域'); + return false; + } + + if ($('#phone').val().length === 0 && $('#mobile').val().length === 0) { + alert('电话和手机号码不能同时为空,请填写!'); + return false; + } + + + if ($('#fullAddress').val().length === 0) { + alert('请填写地址'); + return false; + } + + if ($('#zipCode').val().length === 0 || $('#zipCode').val().length < 2) { + alert('请填写邮编'); + return false; + } + + return true; +} + +function checkHabbitForm() { + if (!$('.user-habbit-info input').is(':checked')) { + alert('请填写购物&着装习惯'); + return false; + } + + return true; +} + +function checkFavoriteForm() { + if ($('#likebrand').val() === '') { + alert('请选择品牌'); + return false; + } + + return true; +} + +function delBrand(brandId) { + var brand = $('#likebrand').val(); + + if (parseInt(brandId) === 0) { + return false; + } + + $('#likebrand').val(brand.replace(',' + brandId + ',', ',')); + $('#pp-' + brandId).attr('checked', false); + $('#brand-' + brandId).remove(); +} + + + +function addBrand(domObj, brandId, brandName) { + var html = '<li id="brand-' + brandId + '">' + + brandName + '<a href="javascript:void(0);" class="btn-del"></a></li>'; + + var brandInfo = $('#brand-' + brandId).html(), + brandStr = $('#likebrand').val(); + + var $brandBox = $('#brand-box'); + + if (parseInt(brandId) === 0) { + return false; + } + + if (typeof domObj !== 'undefined' && domObj !== '' && domObj.checked === false) { + delBrand(brandId); + return false; + } + if (brandInfo) { + alert('您已经选择了该品牌.'); + return false; + } + $brandBox.append(html); + + $brandBox.find('li>a').off('click').on('click', function() { + delBrand($(this).closest('li').attr('id').substr(6)); + }); + + brandStr += brandId + ','; + $('#likebrand').val(brandStr); +} + +function checkBrand() { + var postData = { + brandName: $('#keywords').val() + }; + + $.post('/home/user/isbrandname', postData, function(data) { + if (data.code === 200) { + if (data.data.id && data.data.brand_name) { + addBrand('', data.data.id, data.data.brand_name); + $('#keywords').val(''); + return true; + } else { + alert('网络异常,请重试'); + return false; + } + } + alert(data.message); + return false; + }, 'json'); +} + +function save(postUrl, btnId) { + var $form = $('#' + btnId).closest('form'); + + $.post(postUrl, $form.serialize(), function(data) { + if (data.code === 200) { + alert(data.message); + setTimeout(function() { + $form.closest('div').next().find('h2').click(); + }, 100); + return true; + } + alert(data.message); + return false; + }, 'json'); +} + + +$('#base-info').on('click', function() { + if (checkBaseForm()) { + save('/home/user/edituserinfo/', 'base-info'); + } +}); + +$('#contact-info').on('click', function() { + if (checkContactForm()) { + save('/home/user/editusercontactinfo/', 'contact-info'); + } +}); + +$('#shopping-info').on('click', function() { + if (checkHabbitForm()) { + save('/home/user/edituserhabitsinfo/', 'shopping-info'); + } +}); + +$('#favorite-brand').on('click', function() { + if (checkFavoriteForm()) { + $.ajax({ + url: '/home/user/edituserlikebrand/', + type: 'post', + datatype: 'json', + data: { + brand: $('#likebrand').val() + }, + success: function(data) { + if (data.code === 200) { + alert(data.message); + return true; + } + alert(data.message); + return false; + }, + error: function(err) { + alert('网络异常'); + } + }); + } +}); + +$('#add-brand-btn').on('click', function() { + checkBrand(); +}); + +$('.user-favorite-info input[type="checkbox"]').on('click', function() { + var $this = $(this); + + addBrand(this, $this.attr('id').substr(3), $this.parent().text()); +}); + +(function() { + var $brands = $('#brand-box li'); + + if ($brands.length > 0) { + $brands.find('a').on('click', function() { + delBrand($(this).closest('li').attr('id').substr(6)); + }); + } +})(); + +date.init(); + +(function() { + if (!$('#province').val()) { + address.loadAllData(0, { + provinceDomId: 'province', + cityDomId: 'city', + areaDomId: 'areaCode' + }); + } else { + address.bindAreaChange({ + provinceDomId: 'province', + cityDomId: 'city', + areaDomId: 'areaCode' + }); + } +})(); + +}); +define("js/home/gift", ["jquery","handlebars","source-map"], function(require, exports, module){ /** - * @description: 订单保存 - * @time: 2015/12/21 + * 个人中心页-兑换礼品卡 + * @author: wsl<shuiling.wang@yoho.cn> + * @date: 2016/02/22 */ - var $ = require("jquery"), - $invoiceCheck = $('.invoice'), - $receiptInfo = $('.receipt-info'), - $receiptInfoSaveBtn = $('.receipt-info .save-receipt'), - $receiptInfoCancelBtn = $('.receipt-info .cancel-receipt'), - $eReceiptBtn = $('.receipt-type .e-receipt'), - $paperReceiptBtn = $('.receipt-type .paper-receipt'); - - -var address = require("js/order/address"), - receiptTitle = "个人", - receiptMobile = $('#recordMobileNumb').val(), - receiptMobileStar; - -var dialog = require("js/common/dialog"); - -var accMul = function(arg1, arg2) { - var m = 0, - s1 = arg1.toString(), - s2 = arg2.toString(); - - try { - m += s1.split('.')[1].length; - } catch (e) { - } - try { - m += s2.split('.')[1].length; - } catch (e) { - } - return Number(s1.replace('.', '')) * Number(s2.replace('.', '')) / Math.pow(10, m); -}; - -var Order = { - /*业务数据(人民币)*/ - Data: { - product: 0, //商品价格 - activity: 0, //活动 - carriage: 0, //邮费 - juan: 0, //优惠卷 - yohocoin: 0 //YOHO币 - }, - /*view 交互*/ - UI: { - e: { - $pan: $('.pan'), - $jc: $('#juancode'), - $bp: $('#biprice'), - $statistics: $('li', '.play-total'), - $tobi: $('p em', '.play-bi-pan .play-pan'), - $cancel: $('.cancel', '.btn-group'), - $total: $('em', '.to-play'), - $tbody: $('table tbody', '.pay-wapper'), - - //请填写并核对一下信息 - $orderSelectionSave: $('.address-list h2 span'), - $addAddress: $('.add-address'), - $addressManage: $('.address-manage'), - $spanPayTypeLegend: $('span.pay-type-legend'), - $supportType: $('.support-type'), - $existAddressListWrap: $('.exist-address-list'), - $existAddressList: $('.exist-address-list').find('li'), - $existAddress: $('.exist-address-list').find('input[name="exist-address"]'), - $payTimeModify: $('.pay-time-modify'), - $switchPayModify: $('.switch-pay-modify'), - $modityPayInfo: $('.modity-pay-info'), - $payTotal: $('.play-total'), - $toPay: $('.to-play em'), - $redEnvelopes: $('.red-envelopes'), - $useEnvelopes: $('.use-envelopes'), - $hasEnvelopes: $('.has-envelopes span'), - $useEnvelopesInput: $('.use-envelopes').find('input'), - $expressFee: $('.express-fee') - }, - init: function() { - var e = this.e, - d = Order.Data, - c = Order.Common; - - //初始化产品价格(表格中的价格) - e.$tbody.find('tr').each(function(index) { - - var td = $(this).find('td'); - var len = e.$tbody.find('tr').length; - var subtotal = parseFloat(td.eq(1).html()) * parseInt(td.eq(3).html()); - - td.eq(1).html('¥' + td.eq(1).html()); - - if (td.hasClass('xforone')) { - td.eq(4).find('del').html('¥' + c.strFixed(subtotal)); - subtotal = 0; - } else { - td.eq(4).html('¥' + c.strFixed(subtotal)); - } - d.product += subtotal; - if (!index) { - td.last().attr('rowspan', len); - } else { - td.last().remove(); - } - if (index === len - 1) { - e.$tbody.find('tr').eq(0).find('td').last().html('<strong>¥' + c.strFixed(d.product) + '</strong>'); - } - }); - - // 使用优惠券、使用yoho币点击展开 - e.$pan.find('dt').click(function() { - - var pan = $(this).parent('dl.pan'); - - if (pan.find('dd').is(':hidden')) { - c.winShow(pan); - - $(this).addClass('active'); - } else { - c.winHide(pan); - - $(this).removeClass('active'); - } - - }); - - //请填写并核对一下信息 - e.$orderSelectionSave.click(function() { - var i = 0, - $addressLi = $('.exist-address-list li'), - liLen = $addressLi.length, - notSelect = 0; - - if (!$(this).attr('expand')) { - - $(this).attr('expand', 'expand').text('[不保存并关闭]'); - - $('.exist-address-list li').removeClass('hide'); - - $('.save-btn').removeClass('hide'); - - e.$existAddressListWrap.addClass('address-expand'); - - if (liLen === 1) { - e.$addressManage.removeClass('hide'); - } - - } else { - - for (i = 0; i < liLen; i++) { - - if ($addressLi.eq(i).hasClass('address_select')) { - notSelect++; - } - - if (!$addressLi.eq(i).hasClass('address_select')) { - $addressLi.eq(i).addClass('hide'); - } - } - - if (notSelect === 0) { - $('.exist-address-list li:not(".use-new-address")').removeClass('hide'); - - $('.use-new-address input').removeAttr('checked'); - } - - $('.address-list-inner li.address_select input').attr('checked', 'checked'); - $('.address-list-inner li').removeClass('active'); - $('.address-list-inner li.address_select').addClass('active'); - - $(this).removeAttr('expand').text('[修改]'); - - $('.save-btn').addClass('hide'); - - e.$existAddressListWrap.removeClass('address-expand'); - - e.$addressManage.addClass('hide'); - } + dialog = require("js/common/dialog"), + Alert = dialog.Alert; - }); +var $giftError = $('.giftCardCode').find('.gift-error'), + $codeError = $('.captchaCode').find('.gift-error'), + reg = '', + code = '', + i = 1; +var active; - //支付及送货时间 - e.$switchPayModify.click(function() { +var Gift = { + suc: [ + false, + false, + false, + false + ], + checkCard: function(num) { + reg = /^[0-9a-zA-Z]{4,4}$/; - if (e.$payTimeModify.hasClass('hide')) { - e.$payTimeModify.removeClass('hide'); - e.$modityPayInfo.addClass('hide'); - $(this).text('[不保存并关闭]'); + if (!reg.test($('#giftCardCode' + num).val())) { + $giftError.html('您输入的兑换码有误,兑换码必须为数字或字母,每个文本框里只能输入四个兑换码!'); + Gift.suc[num - 1] = false; + } else { + for (i = 1; i <= 3; i++) { + if (!reg.test($('#giftCardCode' + i).val())) { + $giftError.html('您输入的兑换码有误,兑换码必须为数字或字母,每个文本框里只能输入四个兑换码!'); + Gift.suc[i] = false; } else { - e.$payTimeModify.addClass('hide'); - e.$modityPayInfo.removeClass('hide'); - $(this).text('[修改]'); - - e.$payTimeModify.find('input[name="pay-type"]').filter('.checked').attr('checked', 'checked'); - e.$payTimeModify.find('input[name="pay-time-radio"]').filter('.checked').attr('checked', 'checked'); - e.$payTimeModify.find('input[name="call-me"]').filter('.checked').attr('checked', 'checked'); - } - }); - - e.$spanPayTypeLegend.click(function() { - $(this).toggleClass('active'); - - e.$supportType.toggleClass('hide'); - }); - - $(document).on('click', '.exist-address-list li', function() { - - $('.exist-address-list li').removeClass('active'); - - $(this).addClass('active'); - - $(this).find('input').attr('checked', 'checked'); - - if ($(this).hasClass('use-new-address')) { - e.$addressManage.removeClass('hide'); - - $('.address-manage input').val(''); - - $('.save-btn').removeAttr('data-id'); - - // 0表示获取所有省的列表,'000000'表示无匹配的区域码 - address.newAddress(0, '000000'); + $giftError.html(''); + Gift.suc[i] = true; } - }); - }, - - //渲染价格明细 - render: function(data, tips) { - - // 下面这段是在服务端算价格 - var e = this.e, - i, - dArr = data.promotion_formula_list, - packageList = data.package_list, - str = '', - isExpress = ''; - - var tipsStr; - - var envelopesVal; - - if (!!tips) { - tipsStr = tips; - } else { - tipsStr = ''; } - for (i = 0; i < dArr.length; i++) { - - if (dArr[i].promotion === '优惠券:') { - dArr[i].promotion = (tipsStr ? tipsStr : '优惠券') + '<span class="juan-modify">[修改]</span>:'; - } - - if (dArr[i].promotion === 'YOHO币:') { - dArr[i].promotion = 'YOHO币<span class="bi-modify">[修改]</span>:'; - } - - if (dArr[i].isExpress) { - isExpress = 'total-express-w'; - } else { - isExpress = ''; - } - - str += '<li class="' + isExpress + '">' + - '<label>' + dArr[i].promotion + '</label>' + - '<em>' + dArr[i].promotion_amount + '</em>' + - '</li>'; + if (num !== 3) { + $('#giftCardCode' + (num + 1)).focus(); } + } + }, + bindGiftCardForm: function() { + $('#giftCardCode1').bind('blur keyup', function() { + Gift.checkCard(1); + }); - e.$payTotal.html(str); - e.$toPay.html((data.last_order_amount).toFixed(2)); + $('#giftCardCode2').bind('blur keyup', function() { + Gift.checkCard(2); + }); - //有货币清零状态更新 - $('#biprice').val(accMul(100, data.use_yoho_coin)); - if (~~data.use_yoho_coin === 0) { - $('.errbitip').text(''); - } else { - $('.errbitip').text('抵扣' + data.use_yoho_coin.toFixed(2) + '元'); - } + $('#giftCardCode3').bind('blur keyup', function() { + Gift.checkCard(3); + }); - envelopesVal = e.$useEnvelopesInput.data('all') - data.use_red_envelopes; + $('#captchaCode').bind('blur keyup', function() { + code = $('#captchaCode').val(); - if (~~data.use_red_envelopes > 0) { - e.$useEnvelopes.find('span').html('-¥' + data.use_red_envelopes.toFixed(2)); - e.$useEnvelopes.find('input').attr('data-use', data.use_red_envelopes); + if (code.length <= 0) { + $codeError.html('请输入验证码!'); + Gift.suc[3] = false; } else { - e.$useEnvelopes.find('span').html('-¥0.00'); - e.$hasEnvelopes.html('¥' + (e.$useEnvelopesInput.attr('data-all') * 1).toFixed(2)); - e.$redEnvelopes.removeClass('active'); - e.$useEnvelopesInput.prop('checked', false); - } - e.$hasEnvelopes.html('¥' + envelopesVal.toFixed(2)); - - if (packageList) { - e.$expressFee.each(function(index, expressCost) { - var orignCost = packageList[index].shopping_orig_cost, - disCount = packageList[index].shopping_cut_cost, - realCost = packageList[index].shopping_cost; - - var cost = parseInt(orignCost) === 0 ? - '运费:¥0.00元' : - '运费:¥' + realCost + '元(原价' + orignCost + '元,优惠' + disCount + ')元'; - - $(expressCost).text(cost); - }); + $codeError.html(''); + Gift.suc[3] = true; } - } + }); }, - /*公共方法*/ - Common: { - enterNUM: function(str1, str2) { - str1 = str1.replace(/[^\d]/g, ''); - if (str1 && str2) { - str1 = parseInt(str1); - str2 = parseInt(str2); - if (str1 > str2) { - str1 = str2; - } - } - return str1; - }, - calucate: function() { - var p = Order.Data; - - $.each(Order.Data, function(key, index) { - p[key] = parseFloat(Order.Data[key]); - }); - return p.product - p.activity + p.carriage - p.juan - p.yohocoin; - }, - winShow: function(pan) { - pan.find('dt').show(); - pan.find('dd').show(); - if (pan.attr('class').match(/(-bi-)|(-juan-)/g)) { - pan.find('dt').hide(); - } - }, - winHide: function(pan) { - pan.find('dt').show(); - pan.find('dd').hide(); - /*if (pan.hasClass('play-juan-pan') && $('.juan-modify').length > 0) { - pan.find('dt').hide(); - } + checkForm: function() { + if (!reg.test($('#giftCardCode1').val()) || !reg.test($('#giftCardCode2').val()) || + !reg.test($('#giftCardCode3').val())) { + $giftError.html('您输入的兑换码有误,兑换码必须为数字或字母,每个文本框里只能输入四个兑换码!'); + return false; + } - if (pan.hasClass('play-bi-pan') && $('.bi-modify').length > 0) { - pan.find('dt').hide(); - }*/ - }, - strFixed: function(str) { - return parseFloat(str).toFixed(2); + if ($.trim($('#captchaCode').val()) === '') { + $codeError.html('请输入验证码!'); + return false; } - }, - /*业务逻辑*/ - Bll: { - e: { - $juanok: $('#juansubmit'), - $juantip: $('.errtip', '.play-juan-pan'), - $biok: $('#bisubmit'), - $carriageGroup: $('input[name="carriagegroup"]'), - $selectExpress: $('.express-list input'), - $bp: $('#biprice'), - $errorTip: $('.errbitip'), - $useEnvelopes: $('.use-envelopes'), - $hasEnvelopes: $('.has-envelopes span'), - $useEnvelopesInput: $('.use-envelopes').find('input'), - $redEnvelopes: $('.red-envelopes'), - $loading: $('.loading') - }, - init: function() { - var e = this.e, - u = Order.UI, - options, - c = Order.Common, - envelopesVal; - - function getSelectData(callback) { - - var $juangroupInput = $('.play-juan.is-select input[name="juangroup"]:checked'); - var expressVal = $('.express-list input[name="carriagegroup"]:checked').val(); - var biVal = $('#biprice.is-select').val(); - var codeVal = $juangroupInput.val(); - var cartType = $('.address-manage').attr('cart-type'); - var redEnvelopes = $('.use-envelopes input:checked').attr('data-use'); - var resultData; - - codeVal = codeVal ? codeVal : $juangroupInput.closest('li').find('#juancode').val(); - - resultData = { - cartType: cartType, - deliveryWay: expressVal, - couponCode: codeVal, - yohoCoin: biVal - - //redEnvelopes: e.$useEnvelopesInput.length > 0 ? ~~e.$hasEnvelopes.text().substring(1) : '0' - }; + return true; + } +}; - if (!!redEnvelopes) { - resultData.redEnvelopes = redEnvelopes; - } +//更换验证码 +function refreshCaptcha() { + var dt = new Date(); - callback(resultData); + $('#imgcode').attr('src', '/passport/images?t=' + dt.getTime()); + return false; +} +$('#sub-gift').on('click', function() { + if (Gift.checkForm()) { + $.post('/home/gift/exchange', $('#giftCardForm').serialize(), function(data) { + if (data.code === 200) { + window.location.href = '/home/gift?type=1'; + } else if (data.code === 400) { + active = new Alert(data.message); + active.show(); + refreshCaptcha(); + } else { + window.location.href = '/home/gift?type=2'; } + }, 'json'); + } else { + return false; + } +}); - // 选择快递 - e.$selectExpress.click(function() { - - var expressId = $(this).val(); - - e.$loading.show(); - - getSelectData(function(d) { - - d.deliveryWay = expressId; - - options = { - type: 'POST', - url: '/cart/index/orderCompute', - data: d, - success: function(data) { - e.$loading.hide(); - - if (data.code === 200) { - u.render(data.data); - - if (expressId === '1') { - - $('.express-list.sf').addClass('hide'); - } else if (expressId === '2') { - $('.express-list.sf').removeClass('hide'); - } - } else { - new dialog.Alert(data.message).show(); - } - } - }; - - $.ajax(options); - }); - }); - - //点击 优惠卷支付 确认按钮 - e.$juanok.click(function() { - - var pan = $(this).parents('dl.pan'); - - var juanText = ''; - - $('.play-juan').addClass('is-select'); - - getSelectData(function(d) { - - var code = d.couponCode; - - if (!code) { - - e.$juantip.html('请选择或填写一个优惠券'); - $('.play-juan').removeClass('is-select'); +$(document).on('click', '#imgcode,.check-img', function() { + refreshCaptcha(); +}); - } else { +$(function() { + refreshCaptcha(); + Gift.bindGiftCardForm(); +}); +}); +define("js/home/validate", ["jquery","handlebars","source-map"], function(require, exports, module){ +/** + * 个人中心页-账号安全验证 + * @author:wsl<shuiling.wang@yoho.cn> + * @date: 2016/02/23 + */ +var $ = require("jquery"), + dialog = require("js/common/dialog"), + phoneRegx = require("js/passport/mail-phone-regx"), + Alert = dialog.Alert; - e.$loading.show(); +var $checkUser = $('.check-user'), + $checkInput = $checkUser.find('input').not('input[type=button],input[type=hidden],input[type=reset]'), + canSend = true, + canFlag = true, + stime = 60; - options = { - type: 'POST', - url: '/cart/index/orderCompute', - data: d, - success: function(data) { +var sInt, + active; - e.$loading.hide(); +$.ajaxSetup({ + async: false +}); - if (data.code === 200) { +if (!Array.prototype.indexOf) { + Array.prototype.indexOf = function(obj, start) { + var i, + j; - juanText = $('.play-juan input[value="' + code + '"]').next().text(); - u.render(data.data, juanText); + for (i = (start || 0), j = this.length; i < j; i++) { + if (this[i] === obj) { + return i; + } + } - //$('#juancode').val(code); + return -1; + }; +} - c.winHide(pan); - e.$juantip.html(''); +function errorInfoAction(opt, txt) { + opt.$checkInfo.html('<div class="form-error">' + txt + '</div>'); + if (opt.dom.attr('name') !== 'code' && opt.dom.attr('name') !== 'verifyCode') { + opt.dom.addClass('input-error'); + } + return false; +} - //$('.play-juan-pan dt').hide(); +function successInfoAction(opt) { + opt.$checkInfo.html('<div class="form-success"> </div>'); - } else { - e.$juantip.html(data.message); - $('.play-juan').removeClass('is-select'); - } - } - }; + if (opt.dom.attr('name') !== 'code' && opt.dom.attr('name') !== 'verifyCode') { + opt.dom.removeClass('input-error'); + } + return true; +} - $.ajax(options); - } - }); +function checkFormAjax(ajaxData) { + var res; - }); + $.post(ajaxData.url, ajaxData.data, function(data) { + if (typeof data.code !== 'undefined' && data.code === 200) { + res = successInfoAction(ajaxData.opt); + } else { + ajaxData.txt = ajaxData.txt !== '' && ajaxData.txt !== null ? ajaxData.txt : data.message; + res = errorInfoAction(ajaxData.opt, ajaxData.txt); + } + }); - // 优惠券修改 - $(document).on('click', '.juan-modify', function() { + return res; +} +// 身份校验 +function checkForm(dom) { + var val = dom.val(), + len = val.length, + $domParent = dom.parent(), + $checkInfo = $domParent.find('.check-info'), + inputName = dom.attr('name'), + regular = '', + text = '', + mobileValue = '', + opt = { + $checkInfo: $checkInfo, + dom: dom + }, + ajaxData = { + opt: opt + }; - var $pan = $('.play-juan-pan'); + $checkInfo.html(''); - c.winShow($pan); + if (inputName === 'password') { + if (len === 0) { + return errorInfoAction(opt, '密码不能为空!'); + } else { + $.extend(ajaxData, { + url: '/home/account/checkpassword', + data: { + password: val + }, + txt: '密码错误!' }); + return checkFormAjax(ajaxData); + } + } else if (inputName === 'verifyCode') { + $.extend(ajaxData, { + url: '/home/account/checkverifycode', + data: { + verifyCode: val + }, + txt: '验证码错误!' + }); + return checkFormAjax(ajaxData); + } else if (inputName === 'email') { + regular = phoneRegx.emailRegx; - e.$biok.click(function() { - - var pan = $(this).parents('dl.pan'); - var juanText; + if (val.match(regular) === null) { + return errorInfoAction(opt, '邮箱错误!'); + } else { + $.extend(ajaxData, { + url: '/home/account/checkemail', + data: { + email: val + }, + txt: '' + }); + return checkFormAjax(ajaxData); + } + } else if (inputName === 'mobile') { + regular = phoneRegx.phoneRegx; + text = val.split('-'); - $('#biprice').addClass('is-select'); + if (text.length === 1) { + regular = val.match('^1[35847]{1}[0-9]{9}'); + } else { + regular = regular['+' + text[0]].test(text[1]); + } - getSelectData(function(d) { + if (len === 0) { + return errorInfoAction(opt, '手机号不能为空!'); + } else if (regular === null || !regular) { + return errorInfoAction(opt, '手机号错误!'); + } else { + $.extend(ajaxData, { + url: '/home/account/checkmobile', + data: { + mobile: val + }, + txt: '手机号已经存在!' + }); + return checkFormAjax(ajaxData); + } + } else if (inputName === 'newPwd') { + regular = phoneRegx.pwdValidateRegx; - if (!!d.couponCode) { - juanText = $('.play-juan input[value="' + d.couponCode + '"]').next().text(); - } + if (!regular.test(val)) { + return errorInfoAction(opt, '建议6~20个数字+字母组合!'); + } else { + return successInfoAction(opt); + } + } else if (inputName === 'confirm_password') { + if ($('#newPwd').val() !== val) { + return errorInfoAction(opt, '两次密码不一致!'); + } else { + return successInfoAction(opt); + } - //if (d.yohoCoin * 1 === 0) { - if (!/^\d+$/.test(d.yohoCoin + '') || d.yohoCoin * 1 === 0) { - $('.errbitip').html('请输入一个正整数'); - $('#biprice').removeClass('is-select'); + // else if ($('#newPwd').val() !== '') { + // $('#newPwd').next().html('<div class="form-success"> </div>'); + // return successInfoAction(opt); + // } + } else if (inputName === 'code') { + mobileValue = $('#realAccount').length > 0 ? $('#realAccount').val() : $('#mobilevalue').val(); - } else if (d.yohoCoin * 1 > $('.play-pan em').text() * 1) { + if (val !== '') { + $.extend(ajaxData, { + url: '/home/account/checkmobilemsg', + data: { + mobile: mobileValue, + code: $('#inputcode').val() + }, + txt: '验证码错误!' + }); + return checkFormAjax(ajaxData); + } + } else { + return true; + } +} - $('.errbitip').html('您的YOHO币不足'); - $('#biprice').removeClass('is-select'); +// 校验表单 +function checkAllForm() { + var arr = []; - } else { - e.$loading.show(); + canFlag = false; - options = { - type: 'POST', - url: '/cart/index/orderCompute', - data: d, - success: function(data) { + $.each($checkInput, function(key, item) { + arr[key] = checkForm($(item)); + }); - e.$loading.hide(); + if (arr.indexOf(false) >= 0) { + return false; + } else { + return true; + } +} - if (data.code === 200) { +// 切换验证码 +function changeCode() { + var timestamp = (new Date()).getTime(); - u.render(data.data, juanText); - c.winHide(pan); + $('#the-code-img').attr('src', '/passport/images?len=6&time=' + timestamp); +} - //$('.play-bi-pan dt').hide(); +// 重新发送倒计时 +function code() { + var sstring = ''; - } else { - $('.errbitip').html(data.message); - $('#biprice').removeClass('is-select'); - } - } - }; + if (stime > 0) { + sstring = '重新发送' + stime + '秒'; + $('#sendButton').text(sstring); + stime = stime - 1; + } else { + stime = 60; + $('#sendButton').text('发送验证码'); + clearInterval(sInt); + canSend = true; + } +} - $.ajax(options); - } +// 发送手机验证码ajax请求 +function sendMobileMsg(mobileV) { + var $code = $('#inputcode'), + $ccheckInfo = $code.parent().find('check-info'); - }); - }); + $.post('/home/account/sendmobilemsg', { + mobile: mobileV + }, function(data) { + if (typeof data.code !== 'undefined' && data.code === 200) { + canSend = false; + sInt = setInterval(function() { + code(); + }, 1000); + $ccheckInfo.html(''); + } else { + $ccheckInfo.html('<div class="form-error">验证码发送失败</div>'); + } + }); +} - // 修改yoho币 - $(document).on('click', '.bi-modify', function() { +// 发送手机验证码 +function sendcode() { + var $mobile = $('#mobilevalue'); + var $mcheckInfo, + mobileV, + mobileObj; - var $pan = $('.play-bi-pan'); + if ($mobile.length > 0) { + $mcheckInfo = $mobile.next(), + mobileV = $mobile.val(), + mobileObj = mobileV.split('-'); - c.winShow($pan); - }); + if (mobileObj.length === 1) { + mobileObj = mobileV.match('^1[35847]{1}[0-9]{9}'); + } else { + mobileObj = phoneRegx.phoneRegx['+' + mobileObj[0]].test(mobileObj[1]); + } + } else { + mobileV = $('#realAccount').val(); + } - e.$bp.keyup(function() { + if (canSend) { + if ($mobile.length > 0) { + if (mobileObj === null || !mobileObj) { + $mcheckInfo.html('<div class="form-error">手机号错误!</div>'); + $mobile.addClass('input-error'); + return false; + } - var val = $(this).val(); + if ($mcheckInfo.find('.form-success').length > 0) { + sendMobileMsg(mobileV); + } + } - //if (val * 1 < 0 || val.indexOf('.') > 0) { - if (!/^\d+$/.test(val + '')) { - e.$errorTip.html('请输入一个正整数'); - } else if (val * 1 > $(this).data('bi') * 1) { - e.$errorTip.html('您的YOHO币不足'); - } else { - e.$errorTip.html('抵扣' + (val / 100).toFixed(2) + '元'); - } - }); + if ($('#realAccount').length > 0) { + sendMobileMsg(mobileV); + } + } else { + return false; + } +} - // 取消yoho 币 - $('.cancel-bi').click(function() { +// 验证完成后倒计时跳转 +function toHome() { + window.location.href = '/home/account'; +} +// ajax公共处理模块 +function ajaxAction(opt, flag) { + $.post(opt.url, opt.data, function(data) { + if (data.code === 200) { + if (flag) { + opt.hrefUrl += '&checkCode=' + data.data; + } + window.location.href = opt.hrefUrl; + } else { + canFlag = true; + active = new Alert(data.message); + active.show(); + return false; + } + }, 'json'); +} - var $pan = $('.play-bi-pan'); - var juanText; +// 提交表单 +function submitForm() { + var step = $('.progress-bar .cur').index(), + verifyType = $('#verifyType').val(), + curType = '', + opt = {}; - $('.errbitip').html(''); + if ($('.email').length > 0) { + curType = 'email'; + } - if ($('#biprice').hasClass('is-select')) { + if ($('.mobile').length > 0) { + curType = 'mobile'; + } - e.$loading.show(); + if ($('.userpwd').length > 0) { + curType = 'userpwd'; + } - getSelectData(function(d) { + /* + * step 0: 验证身份 1:验证第二步骤 2:验证第三步骤 + * verifyType 验证身份的状态 1:登录密码验证 2:邮箱的身份验证 3:手机的身份验证 + */ + if (step === 0) { + if (verifyType === '1') { + opt = { + url: '/home/account/verifypassword', + data: $('#pwdform').serialize(), + hrefUrl: '/home/account/' + curType + '?step=2' + }; - d.yohoCoin = 0; + ajaxAction(opt, 'step1'); - if (!!d.couponCode) { - juanText = $('.play-juan input[value="' + d.couponCode + '"]').next().text(); - } + // if (!ajaxAction(opt)) { + // $("input[type=reset]").trigger("click"); + // } + } else if (verifyType === '2') { + opt = { + url: '/home/account/sendemail', + data: { + checkType: curType, + email: $('#realAccount').val() + }, + hrefUrl: '/home/account/sendemailsuccess?email=' + $('#realAccount').val() + + '&type=1&checkType=' + curType + }; + ajaxAction(opt); + } else { + opt = { + url: '/home/account/checkmobilemsg', + data: { + mobile: $('#realAccount').val(), + code: $('#inputcode').val() + }, + hrefUrl: '/home/account/' + curType + '?step=2' + }; + ajaxAction(opt, 'step1'); + } + } else if (step === 1) { + if (curType === 'userpwd') { + opt = { + url: '/home/account/modifypwd', + data: $('#pwdform').serialize(), + hrefUrl: '/home/account/userpwd?step=3&success=true' + }; + ajaxAction(opt); + } else if (curType === 'email') { + opt = { + url: '/home/account/modifyemail', + data: { + email: $('#email').val() + }, + hrefUrl: '/home/account/sendemailsuccess?email=' + $('#email').val() + + '&type=2&checkType=email' + }; + ajaxAction(opt); + } else { + opt = { + url: '/home/account/modifymobile', + data: { + mobile: $('#mobilevalue').val(), + code: $('#inputcode').val() + }, + hrefUrl: '/home/account/mobile?step=3&success=true' + }; + ajaxAction(opt); + } + } +} - options = { - type: 'POST', - url: '/cart/index/orderCompute', - data: d, - success: function(data) { +$(function() { + var t = null; - e.$loading.hide(); + if ($('.res-info').length > 0) { + t = setTimeout(function() { + toHome(); + }, 5000); + } - if (data.code === 200) { - u.render(data.data, juanText); - c.winHide($pan); + changeCode(); - $('#biprice').val('0'); + $('#pwdform').submit(function() { + return false; + }); - //$('.play-bi-pan dt').hide(); - $('#biprice').removeClass('is-select'); + $checkInput.blur(function() { + checkForm($(this)); + }); - $('.errbitip').html(''); + $('.sub-btn').on('click', function() { + if (canFlag === false) { + return false; + } - // $('.use-envelopes input').attr('checked', 'checked'); - // $('.red-envelopes').addClass('active'); + if (checkAllForm()) { + submitForm(); + } else { + return false; + } + }); - } else { - $('.errbitip').html(data.message); - } - } - }; + $('input[name=verifyCode]').keydown(function(e) { + if (e.keyCode === 13) { + if (canFlag === false) { + return false; + } - $.ajax(options); - }); + if (checkAllForm()) { + submitForm(); + } else { + return false; + } + } + }); - } else { - c.winHide($pan); - $('#biprice').val('0'); - } + $('.the-code').on('click', function() { + changeCode(); + }); - }); + $('#send-mobile-code').on('click', function() { + sendcode(); + }); - // 取消优惠券 - $('.cancel-code').click(function() { + if ($('#newPwd').length > 0) { + $('#newPwd').on('input', function(e) { + var $confirm = $('input[name=confirm_password]'), + confirmV = $confirm.val(), + newPwdV = $('#newPwd').val(), + opt = { + dom: $confirm, + $checkInfo: $confirm.next() + }; - var $pan = $('.play-juan-pan'); + if (confirmV.length > 0 && newPwdV !== confirmV) { + errorInfoAction(opt, '两次密码不一致!'); + } + }); + } +}); +}); +define("js/home/address", ["jquery","handlebars","source-map"], function(require, exports, module){ +/** + * 个人中心页-地址管理 + * @author: wsl<shuiling.wang@yoho.cn> + * @date: 2016/02/24 + */ +var $ = require("jquery"), + regionCode = require("js/home/common-address"), + dialog = require("js/common/dialog"), + Alert = dialog.Alert; - if ($('.play-juan').hasClass('is-select')) { +var active; - e.$loading.show(); +var $del = $('.address-del'), + $edit = $('.address-modify'), + $input = $('.input-1'); - getSelectData(function(d) { +var address = { - d.couponCode = ''; + evil: function(fn) { + var Fn = Function; - options = { - type: 'POST', - url: '/cart/index/orderCompute', - data: d, - success: function(data) { + return new Fn('return ' + fn)(); + }, - e.$loading.hide(); + clearAddrForm: function() { + $('#addressName').val(''); + $('#address').val(''); + $('#zipCode').val(''); + $('#phone').val(''); + $('#mobile').val(''); + $('#email').val(''); + $('#addrId').val(0); + $('#province').val(0); + $('#city').val(0); + $('#areaCode').val(0).hide(); + $('#btn-reset').hide(); + $('#form-status').html('添加新地址'); + }, - if (data.code === 200) { - u.render(data.data); + editAddr: function(id) { + $.getJSON('/home/address/editAddress?id=' + id, function(jsonData) { + if (jsonData.code === 200) { + $('#form-status').html('修改地址'); + $('#addressName').val(jsonData.data.consignee); - c.winHide($pan); - $('.play-juan').removeClass('is-select'); + regionCode.loadAllData(jsonData.data.area_code, {}); + $('#address').val(jsonData.data.address); + $('#email').val(jsonData.data.email); + $('#phone').val(jsonData.data.phone); + $('#mobile').val(jsonData.data.mobile); + $('#zipCode').val(jsonData.data.zip_code); + $('#addrId').val(jsonData.data.address_id); + $('#btn-reset').show(); + } + }); + }, - $('#juancode').val('') - .siblings('input[name="juangroup"]').attr('checked', 'checked'); + saveAddr: function(callbackFunc) { + $.post('/home/address/saveAddress', $('#address-form').serialize(), function(data) { + if (data.code === 200) { + location.reload(); + } else { + active = new Alert(data.message); + active.show(); + } + }, 'json'); + }, - // $('.use-envelopes input').attr('checked', 'checked'); - // $('.red-envelopes').addClass('active'); + // 删除地址 + delAddr: function(addrId) { + $.getJSON('/home/address/delAddress?id=' + addrId, function(jsonData) { + if (jsonData.code === 200) { + $('.address-list').find('li[addressId=' + addrId + ']').remove(); + if (addrId === $('#addrId').val()) { + address.clearAddrForm(); + } + } else { + active = new Alert('删除失败'); + active.show(); + } + }); + }, - } else { - e.$juantip.html(data.message); - } - } - }; + setDefaultAddr: function(addrId) { + var oldBtn = $('.address-list').find('.default-btn'), + oldLi = $('.address-list').find('.default-btn').parents('li'), + curLi = $('.address-list').find('li[addressId=' + addrId + ']'), + curBtn = curLi.find('.set-default-btn'); - $.ajax(options); - }); - } else { - c.winHide($pan); - } - }); + $.getJSON('/home/address/defaultAddress?id=' + addrId, function(jsonData) { + if (jsonData.code === 200) { + oldBtn.attr('class', 'btn-c3 set-default-btn'); + oldLi.removeClass('preferred'); + oldBtn.html('<span>设为常用地址</span>'); + curBtn.attr('class', 'btn-c2 default-btn'); + oldBtn.html('<span>设为常用地址</span>'); + curLi.addClass('preferred'); + } else { + active = new Alert('设置失败'); + active.show(); + } + }); + } +}; +if (!Array.prototype.indexOf) { + Array.prototype.indexOf = function(obj, start) { + var i, + j; - // 红包 - envelopesVal = e.$useEnvelopesInput.data('all') - e.$useEnvelopesInput.data('use'); // 剩余的红包 - e.$hasEnvelopes.text('¥' + envelopesVal.toFixed(2)); - e.$useEnvelopes.find('input').click(function() { + for (i = (start || 0), j = this.length; i < j; i++) { + if (this[i] === obj) { + return i; + } + } - var $this = $(this), - juanText; + return -1; + }; +} - e.$loading.show(); +// 获取地址id +function getAddressId(dom) { + var li = dom.parents('.address-content'), + id = li.attr('addressId'); - $this.attr('disabled', 'disabled'); + return id; +} - getSelectData(function(d) { +//表单焦点显示 +function focusAction(opt) { + var msg = ''; - if (!!$this.attr('checked')) { + if (opt.inputName === 'addressName') { + msg = '真实姓名在2到5个汉字之间'; + } - //d.redEnvelopes = $this.val(); - d.redEnvelopes = $this.data('use'); + if (opt.inputName === 'address') { + msg = '请填写详细地址'; + } - } else { + if (opt.inputName === 'zipCode') { + msg = '请输入收货人所在地邮编号'; + } - d.redEnvelopes = 0; - } + if (opt.inputName === 'phone') { + msg = '格式例如:0577-88888888'; + } - juanText = $('.play-juan input[value="' + d.couponCode + '"]').next().text(); + if (opt.inputName === 'mobile') { + msg = '请输入手机号,如1360000000'; + } - options = { - type: 'POST', - url: '/cart/index/orderCompute', - data: d, - success: function(data) { - e.$loading.hide(); - - if (data.code === 200) { - u.render(data.data, juanText); - - $this.removeAttr('disabled'); - - if (!!$this.attr('checked')) { - e.$redEnvelopes.addClass('active'); - } else { - e.$useEnvelopes.find('span').html('-¥0.00'); - e.$hasEnvelopes.html('¥' + ($this.attr('data-all') * 1).toFixed(2)); - e.$redEnvelopes.removeClass('active'); - } - } else { - - new dialog.Alert(data.message).show(); - } - } - }; + if (opt.inputName === 'email') { + msg = '用来接收订单提醒邮件,便于您及时了解订单状态'; + } - $.ajax(options); - }); + opt.$checkInfo.removeClass('form-prompt').addClass('form-focus').html(msg); +} - }); +//表单失去焦点显示 +function blurAction(opt) { + var regular = '', + res = true, + msg = '输入正确', + domClass = 'form-info form-success', + value = opt.val; + if (opt.inputName === 'addressName') { + regular = /^[\u4e00-\u9fa5]{2,5}$/; - //发票抬头和备注字数限制 - function limitStrLen($obj, len) { + if (opt.len < 1 || opt.len > 12) { + msg = '真实姓名在2到5个汉字之间,请确认'; + res = false; + domClass = 'form-info form-error'; + } else if (regular.test(opt.val) === false) { + msg = '真实姓名至少2个中文,最多5个中文'; + res = false; + domClass = 'form-info form-error'; + } + } - var $this = $obj; + if (opt.inputName === 'address') { + if (opt.len < 2) { + msg = '请填写详细地址'; + res = false; + domClass = 'form-info form-error'; + } + } - $this.keyup(function() { + if (opt.inputName === 'zipCode') { + regular = /^[0-9]{6}$/; - if ($this.val().length > len) { + if (opt.len === 0) { + msg = '请输入收货人所在地邮编号'; + res = false; + domClass = 'form-info form-error'; + } else if (regular.test(opt.val) === false) { + msg = '你输入的邮编式不正确'; + res = false; + domClass = 'form-info form-error'; + } + } - $this.val($this.val().substr(0, len)); - } - }); - } + if (opt.inputName === 'phone') { + regular = /^(0[0-9]{2,3}\-)?([2-9][0-9]{6,7})+(\-[0-9]{1,4})?$/; - limitStrLen($('#piaodesc'), 30); - limitStrLen($('#notedesc'), 100); + if (opt.len === 0) { + msg = '你真的不想留联系电话了吗?'; + res = true; + domClass = 'form-info form-success'; + } else if (regular.test(opt.val) === false) { + msg = '你输入的联系电话格式不正确'; + res = false; + domClass = 'form-info form-error'; } } -}; -Order.Data.activity = 0; -Order.Data.carriage = 0; + if (opt.inputName === 'mobile') { + regular = /^1[3|4|5|8|7][0-9]{9}$/; -Order.UI.init(); -Order.Bll.init(); + if (opt.len !== 11) { + msg = '手机号码必须是11位的,请确认'; + res = false; + domClass = 'form-info form-error'; + } else if (regular.test(opt.val) === false) { + msg = '您输入的手机号格式不正确'; + res = false; + domClass = 'form-info form-error'; + } + } + if (opt.inputName === 'email') { + regular = '^[a-z0-9_\-]+(\.[_a-z0-9\-]+)*@([_a-z0-9\-]+\.)+([a-z]{2}|aero|arpa|biz|com|coop|' + + 'edu|gov|info|int|jobs|mil|museum|name|nato|net|org|pro|travel)$'; -address.getUserAddressList(); + if (value.match(regular) === null || opt.len === 0) { + msg = '你输入的邮件地址格式不正确'; + res = false; + domClass = 'form-info form-error'; + } + } -// 0表示获取所有省的列表,'000000'表示无匹配的区域码 -address.newAddress(0, '000000'); -address.modifyAddress(); -address.saveAddress(); + opt.$checkInfo.removeClass().addClass(domClass).html(msg); + return res; +} -//不同订单包裹提示 -$('.why').click(function() { - $('#differentBag').show(); - return false; +// 地址表单验证 +function checkAddressForm(dom, action) { + var val = dom.val(), + $domParent = dom.parent(), + opt = { + val: val, + len: val.length, + $domParent: dom.parent(), + $checkInfo: $domParent.find('span'), + inputName: dom.attr('name') + }; -}); -$('#differentBag').click(function() { - return false; -}); -$(document).click(function() { - $('#differentBag').hide(); -}); + if (action === 'focus') { + focusAction(opt); + } -//订单包裹左右切换 -function lunBo($pre, $next, $ul, $iWidth) { - var i = 1, - j = 1; + if (action === 'blur') { + return blurAction(opt); + } +} - var iSpeed = 0, - isMoving = false; +function fullOneValidator() { + var phone = $('#phone').next(), + mobile = $('#mobile').next(); - $pre.click(function() { - if (isMoving) { - return; - } + if (mobile.hasClass('form-success') && !phone.hasClass('form-error') && $('#phone').val().length === 0) { + phone.removeClass().addClass('form-prompt form-info').html('请输入你的联系电话,可以为空哦'); + return true; + } else if (phone.html() === '输入正确' && !mobile.hasClass('form-error') && $('#mobile').val().length === 0) { + mobile.removeClass().addClass('form-prompt form-info').html('填写手机号便于接收发货和收货通知'); + return true; + } else if (!mobile.hasClass('form-success') && phone.html() !== '输入正确') { + phone.removeClass().addClass('form-success form-info').html('你真的不想留联系电话了吗?'); + mobile.removeClass().addClass('form-prompt form-info').html('填写手机号便于接收发货和收货通知'); + $('#mobile').focus(); + return false; + } +} - if ($ul.css('left') === '0px') { - iSpeed = 0; +//校验所有内容 +function checkAllForm() { + var arr = []; - } else { - iSpeed += j * $iWidth; - isMoving = true; - } - $ul.stop().animate({ - left: iSpeed - }, 300, function() { - isMoving = false; - }); + $.each($input, function(key, item) { + arr.push(checkAddressForm($(item), 'blur')); }); - $next.click(function() { - var $largeLeft = $ul.parent().width() - $ul.width() + 'px'; - if (isMoving) { - return; - } + arr.push(fullOneValidator()); - if ($ul.css('left') === $largeLeft) { - $ul.css('left', $largeLeft); - } else { - iSpeed += -i * $iWidth; - isMoving = true; + $.each($('.form-info'), function(key, item) { + if ($(item).hasClass('form-error')) { + $(item).prev().focus(); + return false; } - - $ul.stop().animate({ - left: iSpeed - }, 300, function() { - isMoving = false; - }); }); -} - - -//订单分类 -$('.bag').find('ul').each(function() { - var $pre = $(this).parent().parent().find('.pre'); - var $next = $(this).parent().parent().find('.next'); - var $iWidth = $(this).find('li').eq(0).width(); - var $length = $(this).find('li').size(); - var $ulWidth = $iWidth * $length; - - $(this).css('width', $ulWidth); - if ($length > 5) { - $pre.show(); - $next.show(); - lunBo($pre, $next, $(this), $iWidth); + if (arr.indexOf(false) === -1) { + return true; } else { - $pre.hide(); - $next.hide(); + return false; } -}); - -$invoiceCheck.click(function(){ +} - receiptMobile = $('#recordMobileNumb').val(), - (function receiptMobileToStarString(numb) { - receiptMobileStar = numb.substr(0, 3) + '****' + numb.substr(7); - $('#input-mobile').val(receiptMobileStar); - }(receiptMobile)); - if ($invoiceCheck.hasClass('active')) { - $invoiceCheck.removeAttr('checked'); - $invoiceCheck.removeClass('active'); - $('.section-play .invoice-content-outter').addClass('hide'); - } +$(document).on('click', '.set-default-btn', function() { + var id = getAddressId($(this)); - if ($invoiceCheck.attr('checked')) { - $invoiceCheck.addClass('active'); - if ($('.invoice-content-outter').hasClass('hide')) { - $receiptInfo.removeClass('hide'); - } - } + address.setDefaultAddr(id); }); +$del.on('click', function() { + var id = getAddressId($(this)); -//电子发票 + address.delAddr(id); +}); -function saveReceiptInfo() { - var passInfoVerify = true, - receiptType, - receiptContent, - verifymobile, - receiptTypeID, - invoiceTypeInt, - finalReceiptMobile; +$edit.on('click', function() { + var id = getAddressId($(this)); - if ($eReceiptBtn.hasClass('receipt-type-selected')) { - receiptType = "电子发票"; - invoiceTypeInt = '2'; - } else { - receiptType = "纸质发票"; - invoiceTypeInt = '1'; - } + address.editAddr(id); + $('#btn-reset').show(); +}); - if (receiptTitle === "单位") { - $('.input-line').each(function(){ - if ($(this).find('input').val() === '') { - $(this).find('.enpty-input').removeClass('hide'); - passInfoVerify = false; - }; - }) - }; +$input.on('focus', function() { + checkAddressForm($(this), 'focus'); +}); - finalReceiptMobile = $('#input-mobile').val(); - if (finalReceiptMobile === receiptMobileStar) { - finalReceiptMobile = receiptMobile; - } else { - verifymobile = /[0-9]{11}/; - if (!verifymobile.test(finalReceiptMobile)) { - $('.invoice-phone .enpty-input').removeClass('hide'); - if (finalReceiptMobile.length === 0) { - $('.invoice-phone .enpty-input').html(' 请填写手机号码'); - } else { - $('.invoice-phone .enpty-input').html(' 手机号码不正确'); - } - passInfoVerify = false; - } - } +$input.on('blur', function() { + checkAddressForm($(this), 'blur'); +}); - if (!passInfoVerify) { - return; - } else { - $('.invoice-title .enpty-input').addClass('hide'); - $('.invoice-phone .enpty-input').addClass('hide'); - if (receiptTitle === "单位") { - receiptTitle = $('#input-organization-name').val(); - } +$('#address-info').on('click', function() { + if (checkAllForm()) { + address.saveAddr(); } +}); - receiptContent = $('input[name="content"]:checked').val(); - receiptTypeID = $('input[name="content"]:checked').data('receiptid'); - - $('.invoice-type').html(receiptType); - $('.invoice-partment').html(receiptTitle); - $('.invoice-kind').html(receiptContent); +$(document).ready(function() { + regionCode.loadAllData( + 0, + { + provinceDomId: 'province', + cityDomId: 'city', + areaDomId: 'areaCode' + } + ); - $('.invoice-upload-type').html(invoiceTypeInt); - $('.invoice-upload-content').html(receiptTypeID); - $('.invoice-upload-mobile').html(finalReceiptMobile); - $('.invoice-upload-title').html(receiptTitle); + address.clearAddrForm(); - $receiptInfo.addClass('hide'); - $('.invoice-content-outter').removeClass('hide'); -} -$receiptInfoSaveBtn.click(function(){ - saveReceiptInfo(); -}); + $('#btn-reset').click(function() { + address.clearAddrForm(); + }); +}); +}); +define("js/help/entry", ["jquery","handlebars","source-map"], function(require, exports, module){ +/** + * 帮助中心页js打包入口文件 + * @author: yyqing<yanqing.yang@yoho.cn> + * @date: 2016/3/23 + */ -$receiptInfoCancelBtn.click(function(){ - $receiptInfo.addClass('hide'); +require("js/help/search"); +}); +define("js/help/search", ["jquery","handlebars","source-map"], function(require, exports, module){ +/** + * 我的信息 + * @author: yyqing<yanqing.yang@yoho.cn> + * @date: 2016/3/23 + */ +var $ = require("jquery"), + Handlebars = require("handlebars"); - if ($('.invoice-content-outter').hasClass('hide')) { - $invoiceCheck.removeAttr('checked'); - $invoiceCheck.removeClass('active'); - } else { +var $searchMain = $('.search-content'), + $dialog = $('#help-dialog-widget'), + $dialogBg = $('#help-dialog-bg'); - } -}); +var docW = $(document).width(), + winH = $(window).height(); -$('.revise').click(function(){ - $receiptInfo.removeClass('hide'); -}); +var tpl = + '<div class="dialog-titlebar">' + + '<span class="dialog-close-btn"></span>' + + '</div>' + + '<div class="dialog-content">' + + '<p class="ask">问:<br>{{ask}}</p>' + + '<p class="answer">答:<br>{{answer}}</p>' + + '</div>'; -$eReceiptBtn.click(function(){ - $eReceiptBtn.addClass('receipt-type-selected'); - $paperReceiptBtn.removeClass('receipt-type-selected'); - $('.e-receipt-desc').removeClass('hide'); - $('.invoice-phone').removeClass('hide'); -}); +var tplFn = Handlebars.compile(tpl); -$paperReceiptBtn.click(function(){ - $paperReceiptBtn.addClass('receipt-type-selected'); - $eReceiptBtn.removeClass('receipt-type-selected'); - $('.e-receipt-desc').addClass('hide'); - $('.invoice-phone').addClass('hide'); -}); +$searchMain.on('click', '.faqs', function() { + var data = $(this).data(), + top = $(document).scrollTop(); -$('.invoice-title').change(function(){ - var selectType = $('input[name="title"]:checked').val(); - if (selectType === "1") { - receiptTitle = "个人"; - $('.invoice-title').addClass('invoice-title-personal-hight'); - $('.invoice-title .input-line').addClass('hide'); - } else { - receiptTitle = "单位"; - $('.invoice-title').removeClass('invoice-title-personal-hight'); - $('.invoice-title .input-line').removeClass('hide'); - } -}) + $dialog.html(tplFn(data)).removeClass('hide'); + $dialogBg.removeClass('hide'); -$('#input-organization-name').bind('input propertychange', function() { - if ($(this).val().length >= 1) { - $('.invoice-title .enpty-input').addClass('hide'); - } + $dialog.html(tplFn(data)).css({ + top: top + (winH - $dialog.outerHeight()) / 2, + left: (docW - $dialog.outerWidth()) / 2 + }); }); -$('#input-mobile').bind('input propertychange', function() { - if ($(this).val().length >= 1) { - $('.invoice-phone .enpty-input').addClass('hide'); - } -}); +$dialog.on('click', '.dialog-close-btn', function() { + $dialog.addClass('hide'); + $dialogBg.addClass('hide'); +}); +}); +define("js/order/ensure", ["jquery","handlebars","source-map"], function(require, exports, module){ +/** + * @description: 订单保存 + * @time: 2015/12/21 + */ + +var $ = require("jquery"), + $invoiceCheck = $('.invoice'), + $receiptInfo = $('.receipt-info'), + $receiptInfoSaveBtn = $('.receipt-info .save-receipt'), + $receiptInfoCancelBtn = $('.receipt-info .cancel-receipt'), + $eReceiptBtn = $('.receipt-type .e-receipt'), + $paperReceiptBtn = $('.receipt-type .paper-receipt'); + + +var address = require("js/order/address"), + receiptTitle = "个人", + receiptMobile = $('#recordMobileNumb').val(), + receiptMobileStar; + +var dialog = require("js/common/dialog"); + +var accMul = function(arg1, arg2) { + var m = 0, + s1 = arg1.toString(), + s2 = arg2.toString(); + + try { + m += s1.split('.')[1].length; + } catch (e) { + } + try { + m += s2.split('.')[1].length; + } catch (e) { + } + return Number(s1.replace('.', '')) * Number(s2.replace('.', '')) / Math.pow(10, m); +}; + +var Order = { + /*业务数据(人民币)*/ + Data: { + product: 0, //商品价格 + activity: 0, //活动 + carriage: 0, //邮费 + juan: 0, //优惠卷 + yohocoin: 0 //YOHO币 + }, + /*view 交互*/ + UI: { + e: { + $pan: $('.pan'), + $jc: $('#juancode'), + $bp: $('#biprice'), + $statistics: $('li', '.play-total'), + $tobi: $('p em', '.play-bi-pan .play-pan'), + $cancel: $('.cancel', '.btn-group'), + $total: $('em', '.to-play'), + $tbody: $('table tbody', '.pay-wapper'), + + //请填写并核对一下信息 + $orderSelectionSave: $('.address-list h2 span'), + $addAddress: $('.add-address'), + $addressManage: $('.address-manage'), + $spanPayTypeLegend: $('span.pay-type-legend'), + $supportType: $('.support-type'), + $existAddressListWrap: $('.exist-address-list'), + $existAddressList: $('.exist-address-list').find('li'), + $existAddress: $('.exist-address-list').find('input[name="exist-address"]'), + $payTimeModify: $('.pay-time-modify'), + $switchPayModify: $('.switch-pay-modify'), + $modityPayInfo: $('.modity-pay-info'), + $payTotal: $('.play-total'), + $toPay: $('.to-play em'), + $redEnvelopes: $('.red-envelopes'), + $useEnvelopes: $('.use-envelopes'), + $hasEnvelopes: $('.has-envelopes span'), + $useEnvelopesInput: $('.use-envelopes').find('input'), + $expressFee: $('.express-fee') + }, + init: function() { + var e = this.e, + d = Order.Data, + c = Order.Common; + + //初始化产品价格(表格中的价格) + e.$tbody.find('tr').each(function(index) { + + var td = $(this).find('td'); + var len = e.$tbody.find('tr').length; + var subtotal = parseFloat(td.eq(1).html()) * parseInt(td.eq(3).html()); + + td.eq(1).html('¥' + td.eq(1).html()); + + if (td.hasClass('xforone')) { + td.eq(4).find('del').html('¥' + c.strFixed(subtotal)); + subtotal = 0; + } else { + td.eq(4).html('¥' + c.strFixed(subtotal)); + } + d.product += subtotal; + if (!index) { + td.last().attr('rowspan', len); + } else { + td.last().remove(); + } + if (index === len - 1) { + e.$tbody.find('tr').eq(0).find('td').last().html('<strong>¥' + c.strFixed(d.product) + '</strong>'); + } + }); + + // 使用优惠券、使用yoho币点击展开 + e.$pan.find('dt').click(function() { + + var pan = $(this).parent('dl.pan'); + + if (pan.find('dd').is(':hidden')) { + c.winShow(pan); + + $(this).addClass('active'); + } else { + c.winHide(pan); + + $(this).removeClass('active'); + } + + }); + + //请填写并核对一下信息 + e.$orderSelectionSave.click(function() { + var i = 0, + $addressLi = $('.exist-address-list li'), + liLen = $addressLi.length, + notSelect = 0; + + if (!$(this).attr('expand')) { + + $(this).attr('expand', 'expand').text('[不保存并关闭]'); + + $('.exist-address-list li').removeClass('hide'); + + $('.save-btn').removeClass('hide'); + + e.$existAddressListWrap.addClass('address-expand'); + + if (liLen === 1) { + e.$addressManage.removeClass('hide'); + } + + } else { + + for (i = 0; i < liLen; i++) { + + if ($addressLi.eq(i).hasClass('address_select')) { + notSelect++; + } + + if (!$addressLi.eq(i).hasClass('address_select')) { + $addressLi.eq(i).addClass('hide'); + } + } + + if (notSelect === 0) { + $('.exist-address-list li:not(".use-new-address")').removeClass('hide'); + + $('.use-new-address input').removeAttr('checked'); + } + + $('.address-list-inner li.address_select input').attr('checked', 'checked'); + $('.address-list-inner li').removeClass('active'); + $('.address-list-inner li.address_select').addClass('active'); + + $(this).removeAttr('expand').text('[修改]'); + + $('.save-btn').addClass('hide'); + + e.$existAddressListWrap.removeClass('address-expand'); + + e.$addressManage.addClass('hide'); + } + + }); + + + //支付及送货时间 + e.$switchPayModify.click(function() { + + if (e.$payTimeModify.hasClass('hide')) { + e.$payTimeModify.removeClass('hide'); + e.$modityPayInfo.addClass('hide'); + $(this).text('[不保存并关闭]'); + } else { + e.$payTimeModify.addClass('hide'); + e.$modityPayInfo.removeClass('hide'); + $(this).text('[修改]'); + + e.$payTimeModify.find('input[name="pay-type"]').filter('.checked').attr('checked', 'checked'); + e.$payTimeModify.find('input[name="pay-time-radio"]').filter('.checked').attr('checked', 'checked'); + e.$payTimeModify.find('input[name="call-me"]').filter('.checked').attr('checked', 'checked'); + } + }); + + e.$spanPayTypeLegend.click(function() { + $(this).toggleClass('active'); + + e.$supportType.toggleClass('hide'); + }); + + $(document).on('click', '.exist-address-list li', function() { + + $('.exist-address-list li').removeClass('active'); + + $(this).addClass('active'); + + $(this).find('input').attr('checked', 'checked'); + + if ($(this).hasClass('use-new-address')) { + e.$addressManage.removeClass('hide'); + + $('.address-manage input').val(''); + + $('.save-btn').removeAttr('data-id'); + + // 0表示获取所有省的列表,'000000'表示无匹配的区域码 + address.newAddress(0, '000000'); + } + }); + }, + + //渲染价格明细 + render: function(data, tips) { + + // 下面这段是在服务端算价格 + var e = this.e, + i, + dArr = data.promotion_formula_list, + packageList = data.package_list, + str = '', + isExpress = ''; + + var tipsStr; + + var envelopesVal; + + if (!!tips) { + tipsStr = tips; + } else { + tipsStr = ''; + } + + for (i = 0; i < dArr.length; i++) { + + if (dArr[i].promotion === '优惠券:') { + dArr[i].promotion = (tipsStr ? tipsStr : '优惠券') + '<span class="juan-modify">[修改]</span>:'; + } + + if (dArr[i].promotion === 'YOHO币:') { + dArr[i].promotion = 'YOHO币<span class="bi-modify">[修改]</span>:'; + } + + if (dArr[i].isExpress) { + isExpress = 'total-express-w'; + } else { + isExpress = ''; + } + + str += '<li class="' + isExpress + '">' + + '<label>' + dArr[i].promotion + '</label>' + + '<em>' + dArr[i].promotion_amount + '</em>' + + '</li>'; + } + + e.$payTotal.html(str); + e.$toPay.html((data.last_order_amount).toFixed(2)); + + //有货币清零状态更新 + $('#biprice').val(accMul(100, data.use_yoho_coin)); + if (~~data.use_yoho_coin === 0) { + $('.errbitip').text(''); + } else { + $('.errbitip').text('抵扣' + data.use_yoho_coin.toFixed(2) + '元'); + } + + envelopesVal = e.$useEnvelopesInput.data('all') - data.use_red_envelopes; + + if (~~data.use_red_envelopes > 0) { + e.$useEnvelopes.find('span').html('-¥' + data.use_red_envelopes.toFixed(2)); + e.$useEnvelopes.find('input').attr('data-use', data.use_red_envelopes); + } else { + e.$useEnvelopes.find('span').html('-¥0.00'); + e.$hasEnvelopes.html('¥' + (e.$useEnvelopesInput.attr('data-all') * 1).toFixed(2)); + e.$redEnvelopes.removeClass('active'); + e.$useEnvelopesInput.prop('checked', false); + } + e.$hasEnvelopes.html('¥' + envelopesVal.toFixed(2)); + + if (packageList) { + e.$expressFee.each(function(index, expressCost) { + var orignCost = packageList[index].shopping_orig_cost, + disCount = packageList[index].shopping_cut_cost, + realCost = packageList[index].shopping_cost; + + var cost = parseInt(orignCost) === 0 ? + '运费:¥0.00元' : + '运费:¥' + realCost + '元(原价' + orignCost + '元,优惠' + disCount + ')元'; + + $(expressCost).text(cost); + }); + } + } + }, + /*公共方法*/ + Common: { + enterNUM: function(str1, str2) { + str1 = str1.replace(/[^\d]/g, ''); + if (str1 && str2) { + str1 = parseInt(str1); + str2 = parseInt(str2); + if (str1 > str2) { + str1 = str2; + } + } + return str1; + }, + calucate: function() { + var p = Order.Data; + + $.each(Order.Data, function(key, index) { + p[key] = parseFloat(Order.Data[key]); + }); + return p.product - p.activity + p.carriage - p.juan - p.yohocoin; + }, + winShow: function(pan) { + pan.find('dt').show(); + pan.find('dd').show(); + if (pan.attr('class').match(/(-bi-)|(-juan-)/g)) { + pan.find('dt').hide(); + } + }, + winHide: function(pan) { + pan.find('dt').show(); + pan.find('dd').hide(); + + /*if (pan.hasClass('play-juan-pan') && $('.juan-modify').length > 0) { + pan.find('dt').hide(); + } + + if (pan.hasClass('play-bi-pan') && $('.bi-modify').length > 0) { + pan.find('dt').hide(); + }*/ + }, + strFixed: function(str) { + return parseFloat(str).toFixed(2); + } + }, + /*业务逻辑*/ + Bll: { + e: { + $juanok: $('#juansubmit'), + $juantip: $('.errtip', '.play-juan-pan'), + $biok: $('#bisubmit'), + $carriageGroup: $('input[name="carriagegroup"]'), + $selectExpress: $('.express-list input'), + $bp: $('#biprice'), + $errorTip: $('.errbitip'), + $useEnvelopes: $('.use-envelopes'), + $hasEnvelopes: $('.has-envelopes span'), + $useEnvelopesInput: $('.use-envelopes').find('input'), + $redEnvelopes: $('.red-envelopes'), + $loading: $('.loading') + }, + init: function() { + var e = this.e, + u = Order.UI, + options, + c = Order.Common, + envelopesVal; + + function getSelectData(callback) { + + var $juangroupInput = $('.play-juan.is-select input[name="juangroup"]:checked'); + var expressVal = $('.express-list input[name="carriagegroup"]:checked').val(); + var biVal = $('#biprice.is-select').val(); + var codeVal = $juangroupInput.val(); + var cartType = $('.address-manage').attr('cart-type'); + var redEnvelopes = $('.use-envelopes input:checked').attr('data-use'); + var resultData; + + codeVal = codeVal ? codeVal : $juangroupInput.closest('li').find('#juancode').val(); + + resultData = { + cartType: cartType, + deliveryWay: expressVal, + couponCode: codeVal, + yohoCoin: biVal + + //redEnvelopes: e.$useEnvelopesInput.length > 0 ? ~~e.$hasEnvelopes.text().substring(1) : '0' + }; + + if (!!redEnvelopes) { + resultData.redEnvelopes = redEnvelopes; + } + + callback(resultData); + + } + + // 选择快递 + e.$selectExpress.click(function() { + + var expressId = $(this).val(); + + e.$loading.show(); + + getSelectData(function(d) { + + d.deliveryWay = expressId; + + options = { + type: 'POST', + url: '/cart/index/orderCompute', + data: d, + success: function(data) { + e.$loading.hide(); + + if (data.code === 200) { + u.render(data.data); + + if (expressId === '1') { + + $('.express-list.sf').addClass('hide'); + } else if (expressId === '2') { + $('.express-list.sf').removeClass('hide'); + } + } else { + new dialog.Alert(data.message).show(); + } + } + }; + + $.ajax(options); + }); + }); + + //点击 优惠卷支付 确认按钮 + e.$juanok.click(function() { + + var pan = $(this).parents('dl.pan'); + + var juanText = ''; + + $('.play-juan').addClass('is-select'); + + getSelectData(function(d) { + + var code = d.couponCode; + + if (!code) { + + e.$juantip.html('请选择或填写一个优惠券'); + $('.play-juan').removeClass('is-select'); + + } else { + + e.$loading.show(); + + options = { + type: 'POST', + url: '/cart/index/orderCompute', + data: d, + success: function(data) { + + e.$loading.hide(); + + if (data.code === 200) { + + juanText = $('.play-juan input[value="' + code + '"]').next().text(); + u.render(data.data, juanText); + + //$('#juancode').val(code); + + c.winHide(pan); + e.$juantip.html(''); + + //$('.play-juan-pan dt').hide(); + + } else { + e.$juantip.html(data.message); + $('.play-juan').removeClass('is-select'); + } + } + }; + + $.ajax(options); + } + }); + + }); + + // 优惠券修改 + $(document).on('click', '.juan-modify', function() { + + + var $pan = $('.play-juan-pan'); + + c.winShow($pan); + }); + + e.$biok.click(function() { + + var pan = $(this).parents('dl.pan'); + var juanText; + + $('#biprice').addClass('is-select'); + + getSelectData(function(d) { + + if (!!d.couponCode) { + juanText = $('.play-juan input[value="' + d.couponCode + '"]').next().text(); + } + + //if (d.yohoCoin * 1 === 0) { + if (!/^\d+$/.test(d.yohoCoin + '') || d.yohoCoin * 1 === 0) { + $('.errbitip').html('请输入一个正整数'); + $('#biprice').removeClass('is-select'); + + } else if (d.yohoCoin * 1 > $('.play-pan em').text() * 1) { + + $('.errbitip').html('您的YOHO币不足'); + $('#biprice').removeClass('is-select'); + + } else { + e.$loading.show(); + + options = { + type: 'POST', + url: '/cart/index/orderCompute', + data: d, + success: function(data) { + + e.$loading.hide(); + + if (data.code === 200) { + + u.render(data.data, juanText); + c.winHide(pan); + + //$('.play-bi-pan dt').hide(); + + } else { + $('.errbitip').html(data.message); + $('#biprice').removeClass('is-select'); + } + } + }; + + $.ajax(options); + } + + }); + }); + + // 修改yoho币 + $(document).on('click', '.bi-modify', function() { + + + var $pan = $('.play-bi-pan'); + + c.winShow($pan); + }); + + e.$bp.keyup(function() { + + var val = $(this).val(); + + //if (val * 1 < 0 || val.indexOf('.') > 0) { + if (!/^\d+$/.test(val + '')) { + e.$errorTip.html('请输入一个正整数'); + } else if (val * 1 > $(this).data('bi') * 1) { + e.$errorTip.html('您的YOHO币不足'); + } else { + e.$errorTip.html('抵扣' + (val / 100).toFixed(2) + '元'); + } + }); + + // 取消yoho 币 + $('.cancel-bi').click(function() { + + + var $pan = $('.play-bi-pan'); + var juanText; + + $('.errbitip').html(''); + + if ($('#biprice').hasClass('is-select')) { + + e.$loading.show(); + + getSelectData(function(d) { + + d.yohoCoin = 0; + + if (!!d.couponCode) { + juanText = $('.play-juan input[value="' + d.couponCode + '"]').next().text(); + } + + options = { + type: 'POST', + url: '/cart/index/orderCompute', + data: d, + success: function(data) { + + e.$loading.hide(); + + if (data.code === 200) { + u.render(data.data, juanText); + c.winHide($pan); + + $('#biprice').val('0'); + + //$('.play-bi-pan dt').hide(); + $('#biprice').removeClass('is-select'); + + $('.errbitip').html(''); + + // $('.use-envelopes input').attr('checked', 'checked'); + // $('.red-envelopes').addClass('active'); + + } else { + $('.errbitip').html(data.message); + } + } + }; + + $.ajax(options); + }); + + } else { + c.winHide($pan); + $('#biprice').val('0'); + } + + }); + + // 取消优惠券 + $('.cancel-code').click(function() { + + var $pan = $('.play-juan-pan'); + + if ($('.play-juan').hasClass('is-select')) { + + e.$loading.show(); + + getSelectData(function(d) { + + d.couponCode = ''; + + options = { + type: 'POST', + url: '/cart/index/orderCompute', + data: d, + success: function(data) { + + e.$loading.hide(); + + if (data.code === 200) { + u.render(data.data); + + c.winHide($pan); + $('.play-juan').removeClass('is-select'); + + $('#juancode').val('') + .siblings('input[name="juangroup"]').attr('checked', 'checked'); + + // $('.use-envelopes input').attr('checked', 'checked'); + // $('.red-envelopes').addClass('active'); + + } else { + e.$juantip.html(data.message); + } + } + }; + + $.ajax(options); + }); + } else { + c.winHide($pan); + } + }); + + + // 红包 + envelopesVal = e.$useEnvelopesInput.data('all') - e.$useEnvelopesInput.data('use'); // 剩余的红包 + e.$hasEnvelopes.text('¥' + envelopesVal.toFixed(2)); + e.$useEnvelopes.find('input').click(function() { + + var $this = $(this), + juanText; + + e.$loading.show(); + + $this.attr('disabled', 'disabled'); + + getSelectData(function(d) { + + if (!!$this.attr('checked')) { + + //d.redEnvelopes = $this.val(); + d.redEnvelopes = $this.data('use'); + + } else { + + d.redEnvelopes = 0; + } + + juanText = $('.play-juan input[value="' + d.couponCode + '"]').next().text(); + + options = { + type: 'POST', + url: '/cart/index/orderCompute', + data: d, + success: function(data) { + e.$loading.hide(); + + if (data.code === 200) { + u.render(data.data, juanText); + + $this.removeAttr('disabled'); + + if (!!$this.attr('checked')) { + e.$redEnvelopes.addClass('active'); + } else { + e.$useEnvelopes.find('span').html('-¥0.00'); + e.$hasEnvelopes.html('¥' + ($this.attr('data-all') * 1).toFixed(2)); + e.$redEnvelopes.removeClass('active'); + } + } else { + + new dialog.Alert(data.message).show(); + } + } + }; + + $.ajax(options); + }); + + }); + + + //发票抬头和备注字数限制 + function limitStrLen($obj, len) { + + var $this = $obj; + + $this.keyup(function() { + + if ($this.val().length > len) { + + $this.val($this.val().substr(0, len)); + } + }); + } + + limitStrLen($('#piaodesc'), 30); + limitStrLen($('#notedesc'), 100); + } + } +}; + +Order.Data.activity = 0; +Order.Data.carriage = 0; + +Order.UI.init(); +Order.Bll.init(); + + +address.getUserAddressList(); + +// 0表示获取所有省的列表,'000000'表示无匹配的区域码 +address.newAddress(0, '000000'); +address.modifyAddress(); +address.saveAddress(); + +//不同订单包裹提示 + +$('.why').click(function() { + $('#differentBag').show(); + return false; + +}); +$('#differentBag').click(function() { + return false; +}); +$(document).click(function() { + $('#differentBag').hide(); +}); + +//订单包裹左右切换 +function lunBo($pre, $next, $ul, $iWidth) { + var i = 1, + j = 1; + + var iSpeed = 0, + isMoving = false; + + $pre.click(function() { + if (isMoving) { + return; + } + + if ($ul.css('left') === '0px') { + iSpeed = 0; + + } else { + iSpeed += j * $iWidth; + isMoving = true; + } + $ul.stop().animate({ + left: iSpeed + }, 300, function() { + isMoving = false; + }); + }); + $next.click(function() { + var $largeLeft = $ul.parent().width() - $ul.width() + 'px'; + + if (isMoving) { + return; + } + + if ($ul.css('left') === $largeLeft) { + $ul.css('left', $largeLeft); + } else { + iSpeed += -i * $iWidth; + isMoving = true; + } + + $ul.stop().animate({ + left: iSpeed + }, 300, function() { + isMoving = false; + }); + }); +} + + + +//订单分类 +$('.bag').find('ul').each(function() { + var $pre = $(this).parent().parent().find('.pre'); + var $next = $(this).parent().parent().find('.next'); + + var $iWidth = $(this).find('li').eq(0).width(); + var $length = $(this).find('li').size(); + var $ulWidth = $iWidth * $length; + + $(this).css('width', $ulWidth); + if ($length > 5) { + $pre.show(); + $next.show(); + lunBo($pre, $next, $(this), $iWidth); + } else { + $pre.hide(); + $next.hide(); + } +}); + +$invoiceCheck.click(function(){ + + receiptMobile = $('#recordMobileNumb').val(), + (function receiptMobileToStarString(numb) { + receiptMobileStar = numb.substr(0, 3) + '****' + numb.substr(7); + $('#input-mobile').val(receiptMobileStar); + }(receiptMobile)); + if ($invoiceCheck.hasClass('active')) { + $invoiceCheck.removeAttr('checked'); + $invoiceCheck.removeClass('active'); + $('.section-play .invoice-content-outter').addClass('hide'); + } + + if ($invoiceCheck.attr('checked')) { + $invoiceCheck.addClass('active'); + if ($('.invoice-content-outter').hasClass('hide')) { + $receiptInfo.removeClass('hide'); + } + } +}); + + +//电子发票 + +function saveReceiptInfo() { + var passInfoVerify = true, + receiptType, + receiptContent, + verifymobile, + receiptTypeID, + invoiceTypeInt, + finalReceiptMobile; + + if ($eReceiptBtn.hasClass('receipt-type-selected')) { + receiptType = "电子发票"; + invoiceTypeInt = '2'; + } else { + receiptType = "纸质发票"; + invoiceTypeInt = '1'; + } + + if (receiptTitle === "单位") { + $('.input-line').each(function(){ + if ($(this).find('input').val() === '') { + $(this).find('.enpty-input').removeClass('hide'); + passInfoVerify = false; + }; + }) + }; + + finalReceiptMobile = $('#input-mobile').val(); + if (finalReceiptMobile === receiptMobileStar) { + finalReceiptMobile = receiptMobile; + } else { + verifymobile = /[0-9]{11}/; + if (!verifymobile.test(finalReceiptMobile)) { + $('.invoice-phone .enpty-input').removeClass('hide'); + if (finalReceiptMobile.length === 0) { + $('.invoice-phone .enpty-input').html(' 请填写手机号码'); + } else { + $('.invoice-phone .enpty-input').html(' 手机号码不正确'); + } + passInfoVerify = false; + } + } + + if (!passInfoVerify) { + return; + } else { + $('.invoice-title .enpty-input').addClass('hide'); + $('.invoice-phone .enpty-input').addClass('hide'); + if (receiptTitle === "单位") { + receiptTitle = $('#input-organization-name').val(); + } + } + + receiptContent = $('input[name="content"]:checked').val(); + receiptTypeID = $('input[name="content"]:checked').data('receiptid'); + + $('.invoice-type').html(receiptType); + $('.invoice-partment').html(receiptTitle); + $('.invoice-kind').html(receiptContent); + + $('.invoice-upload-type').html(invoiceTypeInt); + $('.invoice-upload-content').html(receiptTypeID); + $('.invoice-upload-mobile').html(finalReceiptMobile); + $('.invoice-upload-title').html(receiptTitle); + + $receiptInfo.addClass('hide'); + $('.invoice-content-outter').removeClass('hide'); +} +$receiptInfoSaveBtn.click(function(){ + saveReceiptInfo(); +}); + +$receiptInfoCancelBtn.click(function(){ + $receiptInfo.addClass('hide'); + + if ($('.invoice-content-outter').hasClass('hide')) { + $invoiceCheck.removeAttr('checked'); + $invoiceCheck.removeClass('active'); + } else { + + } +}); + +$('.revise').click(function(){ + $receiptInfo.removeClass('hide'); +}); + +$eReceiptBtn.click(function(){ + $eReceiptBtn.addClass('receipt-type-selected'); + $paperReceiptBtn.removeClass('receipt-type-selected'); + $('.e-receipt-desc').removeClass('hide'); + $('.invoice-phone').removeClass('hide'); +}); + +$paperReceiptBtn.click(function(){ + $paperReceiptBtn.addClass('receipt-type-selected'); + $eReceiptBtn.removeClass('receipt-type-selected'); + $('.e-receipt-desc').addClass('hide'); + $('.invoice-phone').addClass('hide'); +}); + +$('.invoice-title').change(function(){ + var selectType = $('input[name="title"]:checked').val(); + if (selectType === "1") { + receiptTitle = "个人"; + $('.invoice-title').addClass('invoice-title-personal-hight'); + $('.invoice-title .input-line').addClass('hide'); + } else { + receiptTitle = "单位"; + $('.invoice-title').removeClass('invoice-title-personal-hight'); + $('.invoice-title .input-line').removeClass('hide'); + } +}) + +$('#input-organization-name').bind('input propertychange', function() { + if ($(this).val().length >= 1) { + $('.invoice-title .enpty-input').addClass('hide'); + } +}); + +$('#input-mobile').bind('input propertychange', function() { + if ($(this).val().length >= 1) { + $('.invoice-phone .enpty-input').addClass('hide'); + } +}); }); define("js/order/address", ["jquery","handlebars","source-map"], function(require, exports, module){ @@ -16891,1398 +16891,1398 @@ exports.saveAddress = function() { '<label>' + '<strong>' + name + '</strong>' + '<span>' + provinceText + ' ' + cityText + ' ' + countyText + ' ' + address + - ' ' + hasText(code) + setPhoneStar(phone) + hasText(telCode) + hasText(tel) + '</span>' + - '<a href="javascript:void(0);" class="default-address">设为默认地址</a>' + - '<div class="order-modify-btn">' + - '<span class="address-modify">[修改]</span>' + - '<span class="address-del">[删除]</span>' + - '</div>' + - '</label>' + - '</li>'; - } - - - - // 如果dataID存在说明是修改操作 - if (!!$this.attr('data-id')) { - - $modifyLi = $('.exist-address-list li[data-id="' + $this.attr('data-id') + '"]'); - - $modifyLi.after($(addressStr)).remove(); - } else { - $('.use-new-address').before($(addressStr)); - } - - $('.address-list span').removeAttr('expand'); - - refreshAddressStatus(); - } else { - new dialog.Alert(d.message).show(); - } - }); - } - - if ($('.exist-address-list li').find('input[name="address"]:checked').length === 0) { - new dialog.Alert('请选择一个地址').show(); - return; - } else { - - if ($('.exist-address-list li').find('input[name="address"]:checked') - .closest('li').attr('data-express') === 'N') { - $('.express-list input[name="carriagegroup"][value="2"]').attr('disabled', 'disabled'); - $('.express-list input[name="carriagegroup"][value="1"]').attr('checked', 'checked'); - $('.express-list.sf').addClass('hide'); - $('.is-sup').removeClass('hide'); - } else { - $('.express-list input[name="carriagegroup"][value="2"]').removeAttr('disabled'); - $('.express-list.sf').removeClass('hide'); - $('.is-sup').addClass('hide'); - } - } - - - // 说明需要新用户引导,展开支付及送货时间 - if ($this.hasClass('new-user-btn')) { - - $('.switch-pay-modify').click(); - } - - }); -}; - - -// 支付及送货时间选择 -$('.pay-time-modify .pay-btn').click(function() { - - var $this = $(this); - - var $payInfoBox = $('.modity-pay-info'), - $payTime = $('.pay-time-modify'), - payTypeVal = $payTime.find('input[name="pay-type"]:checked').val(), - payTypeText = $payTime.find('input[name="pay-type"]:checked').next('label').text(), - payTimeText = $payTime.find('input[name="pay-time-radio"]:checked').next('label').text(), - payTimeVal = $payTime.find('input[name="pay-time-radio"]:checked').val(), - isCall = $payTime.find('input[name="call-me"]:checked').next('label').text(), - callMeVal = $payTime.find('input[name="call-me"]:checked').val(); - - - $loading.show(); - - $.ajax({ - type: 'POST', - url: '/cart/index/orderCompute', - dataType: 'json', - data: { - cartType: cartType, - paymentType: payTypeVal - } - }).then(function(d) { - - $loading.hide(); - - if (d.code === 200) { - - $payInfoBox.find('li').eq(0).find('span').text(payTypeText); - $payInfoBox.find('li').eq(1).find('span').text(payTimeText); - $payInfoBox.find('li').eq(2).find('span').text(isCall); - - $('.pay-time-modify').addClass('hide') - .find('input[name="pay-type"][value=' + payTypeVal + ']').addClass('checked') - .end().find('input[name="pay-time-radio"][value=' + payTimeVal + ']').addClass('checked') - .end().find('input[name="call-me"][value=' + callMeVal + ']').addClass('checked'); - - $('.modity-pay-info').removeClass('hide'); - - $('.switch-pay-modify').text('[修改]'); - - if ($this.hasClass('new-user-pay')) { - - $('.play-piao-pan dd').css({ - - display: 'block' - }); - $('.play-piao-pan dt').addClass('active'); - } - - } else { - new dialog.Alert(d.message).show(); - } - }); -}); - -function getYohoBiList() { - - var $juanUl = $('.play-juan ul'), - juanStr = '', - dLen, - data, - i; - - $.ajax({ - type: 'GET', - dataType: 'json', - url: '/cart/index/getCouponList' - }).then(function(d) { - - if (d.code === 200) { - data = d.data; - dLen = data.length; - - for (i = 0; i < dLen; i++) { - juanStr += '<li>' + - '<input name="juangroup" type="radio" value="' + - data[i].code + '" ' + (data[i].valid ? '' : 'disabled="disabled"') + '>' + - '<label>' + data[i].desc + '</label>' + - '</li>'; - } - - $juanUl.prepend($(juanStr)); - - } - }); -} -getYohoBiList(); - -// 把Y、N转换成bool - -function ytoTrue(val) { - - if (val === 'N') { - return false; - } else { - return true; - } -} - - -// 去支付 -$('.to-play input.submit').click(function() { + ' ' + hasText(code) + setPhoneStar(phone) + hasText(telCode) + hasText(tel) + '</span>' + + '<a href="javascript:void(0);" class="default-address">设为默认地址</a>' + + '<div class="order-modify-btn">' + + '<span class="address-modify">[修改]</span>' + + '<span class="address-del">[删除]</span>' + + '</div>' + + '</label>' + + '</li>'; + } - var $this = $(this); - var addressId = $('.exist-address-list input[name="address"]:checked').closest('li').attr('data-id'), - deliveryTimeId = $('.pay-time-modify input[name="pay-time-radio"]:checked').val(), - deliveryWayId = $('.select-express input[name="carriagegroup"]:checked').val(), - invoiceType, - invoiceContent, - receiverMobile, - invoiceTitle, - paymentType = $('.pay-time-modify input[name="pay-type"]:checked').val(), - paymentId = $('.pay-time-modify input[name="pay-type"]:checked').data('pay'), - remark = $('#notedesc').val(), - yohoCoin = $('#biprice').val(), - isPreContact = $('.pay-time-modify input[name="call-me"]:checked').val(), - isPrintPrice = $('.play-pan input[name="isPP"]:checked').val(), - redEnvelopes = $('.use-envelopes input:checked').attr('data-use'), - $juangroupInput = $('.play-juan.is-select input[name="juangroup"]:checked'), - codeVal = $juangroupInput.val(), - juanCode = !!codeVal ? codeVal : $juangroupInput.closest('li').find('#juancode').val(); - if ($invoiceCheck.hasClass('active')) { - invoiceType = $('.invoice-upload-type').html(); - invoiceContent = $('.invoice-upload-content').html(); - receiverMobile = $('.invoice-upload-mobile').html(); - invoiceTitle = $('.invoice-upload-title').html(); - } + // 如果dataID存在说明是修改操作 + if (!!$this.attr('data-id')) { - $loading.show(); + $modifyLi = $('.exist-address-list li[data-id="' + $this.attr('data-id') + '"]'); - if (!!$this.attr('disabled')) { - return; - } + $modifyLi.after($(addressStr)).remove(); + } else { + $('.use-new-address').before($(addressStr)); + } - $this.attr('disabled', 'disabled'); + $('.address-list span').removeAttr('expand'); - $.ajax({ - type: 'POST', - dataType: 'json', - url: '/cart/index/orderSub', - data: { - addressId: addressId, - cartType: cartType, - deliveryTimeId: deliveryTimeId, - deliveryWayId: deliveryWayId, - invoiceType: invoiceType, - invoiceContent: invoiceContent, - receiverMobile: receiverMobile, - invoiceTitle: invoiceTitle, - paymentId: paymentId, - paymentType: paymentType, - remark: remark, - couponCode: juanCode, - yohoCoin: yohoCoin, - isPreContact: ytoTrue(isPreContact), - isPrintPrice: ytoTrue(isPrintPrice), - redEnvelopes: redEnvelopes + refreshAddressStatus(); + } else { + new dialog.Alert(d.message).show(); + } + }); } - }).then(function(d) { - - $loading.hide(); - if (d.code === 200) { - window.location.href = d.data.payUrl; + if ($('.exist-address-list li').find('input[name="address"]:checked').length === 0) { + new dialog.Alert('请选择一个地址').show(); + return; } else { - new dialog.Alert(d.message).show(); + + if ($('.exist-address-list li').find('input[name="address"]:checked') + .closest('li').attr('data-express') === 'N') { + $('.express-list input[name="carriagegroup"][value="2"]').attr('disabled', 'disabled'); + $('.express-list input[name="carriagegroup"][value="1"]').attr('checked', 'checked'); + $('.express-list.sf').addClass('hide'); + $('.is-sup').removeClass('hide'); + } else { + $('.express-list input[name="carriagegroup"][value="2"]').removeAttr('disabled'); + $('.express-list.sf').removeClass('hide'); + $('.is-sup').addClass('hide'); + } } - }).always(function() { - $this.removeAttr('disabled'); - }); -}); - -}); -define("js/shopping/pay", ["jquery"], function(require, exports, module){ -/** - * 支付页面 - */ -//切换选项卡 -var $ = require("jquery"), - $choseTag = $('.mode div'), - $mode = $('.mode'), - $showPayImg = $('#show-pay-img'), - $btnty = $('#btnby'), - $lightBox = $('.light-box'), - $choosePay = $('#choosePay').val(), - $chooseMoid = $('.mode div[id="' + $choosePay + '"]').parent().data('value'), - $showValue = $choosePay ? $chooseMoid : $('.mode').eq(0).data('value'), - $payUrl = $('#payUrl').val(), - $modeData, - activeTab, - imgAlt, - imgSrc, - orderCode, - payment; -$.jqtab = function(tabtit, tabcon) { + // 说明需要新用户引导,展开支付及送货时间 + if ($this.hasClass('new-user-btn')) { - $(tabtit + ' li').click(function() { - activeTab = $(this).find('a').attr('tab'); + $('.switch-pay-modify').click(); + } - $(tabtit + ' li').removeClass('thistab'); - $(this).addClass('thistab'); - $(tabcon).hide(); - $('#' + activeTab).fadeIn(); - return false; }); }; -$.jqtab('#tabs', '.tab-con'); - -//选项卡点击 -function choosed() { - if ($choosePay) { - $('.mode div[id="' + $choosePay + '"]').addClass('choosed-tag').parent().addClass('choose-type'); - } else { - $mode.eq(0).addClass('choose-type').show(); - $mode.eq(0).find('div').addClass('choosed-tag'); - } - $btnty.attr('value', '前往' + $('#' + $chooseMoid).attr('alt')); - $showPayImg.attr('src', $('#' + $chooseMoid).attr('src')); -} - -choosed(); - -$mode.click(function() { - $modeData = $(this).data(); - $showValue = $modeData.value; - imgAlt = $('#' + $showValue).attr('alt'); - imgSrc = $('#' + $showValue).attr('src'); +// 支付及送货时间选择 +$('.pay-time-modify .pay-btn').click(function() { - $mode.removeClass('choose-type'); - $(this).addClass('choose-type'); - $choseTag.removeClass('choosed-tag'); - $(this).find('.borer-tag').addClass('choosed-tag'); - $btnty.attr('value', '前往' + imgAlt); - $showPayImg.attr('src', imgSrc); - return false; -}); + var $this = $(this); + var $payInfoBox = $('.modity-pay-info'), + $payTime = $('.pay-time-modify'), + payTypeVal = $payTime.find('input[name="pay-type"]:checked').val(), + payTypeText = $payTime.find('input[name="pay-type"]:checked').next('label').text(), + payTimeText = $payTime.find('input[name="pay-time-radio"]:checked').next('label').text(), + payTimeVal = $payTime.find('input[name="pay-time-radio"]:checked').val(), + isCall = $payTime.find('input[name="call-me"]:checked').next('label').text(), + callMeVal = $payTime.find('input[name="call-me"]:checked').val(); -$('.close').click(function() { - $lightBox.hide(); -}); -$('.change').click(function() { - $lightBox.hide(); -}); + $loading.show(); -//支付方式选择按钮 -function getData(payment, orderCode) { $.ajax({ - type: 'get', - url: '/common/addpaymentinterval', + type: 'POST', + url: '/cart/index/orderCompute', dataType: 'json', data: { - orderCode: orderCode, - payment: payment - } - }); -} - -$('#btnby').click(function() { - payment = $('.choose-type').attr('data-id'); - orderCode = $('.order-num').text(); - getData(payment, orderCode); - window.open($payUrl + '?order_code=' + orderCode + '&payment_type=' + $showValue); - $lightBox.show(); -}); - -//发送支付确认 -$('.pay-over').unbind('click').bind('click', function() { - var _this = this; - - $.post('/shopping/pay/sendPay', - { - orderCode: orderCode, - paymentId: payment - }, - function() { - window.location.href = $(_this).data('url'); + cartType: cartType, + paymentType: payTypeVal } - ); -}); -}); -define("js/pay/wechatqrcode", ["jquery"], function(require, exports, module){ -/** - * 微信支付页面 - */ - -var $ = require("jquery"), - $wOdetail = $('.w-odetail'), - $payHost = $('#payHost').val(), - $paySuccessUrl = $('#paySuccessUrl').val(), - $wPerm = $('.w-p-erm'); - -require("plugin/jquery.qrcode"); - -$wOdetail.click(function() { - $('.w-addrinfo').slideToggle('slow'); + }).then(function(d) { - if ($wOdetail.find('i').hasClass('up')) { - $wOdetail.html('收起详情<i class="down"></i>'); - } else { - $wOdetail.html('订单详情<i class="up"></i>'); - } -}); + $loading.hide(); -$wPerm.qrcode({ - render: 'table', - text: $wPerm.data('url') -}); + if (d.code === 200) { -function checkPayStatus() { - $.ajax({ - url: $payHost, - dataType: 'jsonp', - success: function(data) { - if (data.message === 'success') { - window.location.href = $paySuccessUrl; - } - } - }); -} + $payInfoBox.find('li').eq(0).find('span').text(payTypeText); + $payInfoBox.find('li').eq(1).find('span').text(payTimeText); + $payInfoBox.find('li').eq(2).find('span').text(isCall); + $('.pay-time-modify').addClass('hide') + .find('input[name="pay-type"][value=' + payTypeVal + ']').addClass('checked') + .end().find('input[name="pay-time-radio"][value=' + payTimeVal + ']').addClass('checked') + .end().find('input[name="call-me"][value=' + callMeVal + ']').addClass('checked'); -setInterval(checkPayStatus, 3000); -}); -define("plugin/jquery.qrcode", ["jquery"], function(require, exports, module){ -/* jscs: disable */ -/* jshint ignore:start */ -var jQuery = require("jquery"); + $('.modity-pay-info').removeClass('hide'); -(function(r) { - r.fn.qrcode = function(h) { - var s; + $('.switch-pay-modify').text('[修改]'); - function u(a) { - this.mode = s; - this.data = a - } + if ($this.hasClass('new-user-pay')) { - function o(a, c) { - this.typeNumber = a; - this.errorCorrectLevel = c; - this.modules = null; - this.moduleCount = 0; - this.dataCache = null; - this.dataList = [] - } + $('.play-piao-pan dd').css({ - function q(a, c) { - if (void 0 == a.length) throw Error(a.length + "/" + c); - for (var d = 0; d < a.length && 0 == a[d];) d++; - this.num = Array(a.length - d + c); - for (var b = 0; b < a.length - d; b++) this.num[b] = a[b + d] - } + display: 'block' + }); + $('.play-piao-pan dt').addClass('active'); + } - function p(a, c) { - this.totalCount = a; - this.dataCount = c + } else { + new dialog.Alert(d.message).show(); } + }); +}); - function t() { - this.buffer = []; - this.length = 0 - } - u.prototype = { - getLength: function() { - return this.data.length - }, - write: function(a) { - for (var c = 0; c < this.data.length; c++) a.put(this.data.charCodeAt(c), 8) - } - }; - o.prototype = { - addData: function(a) { - this.dataList.push(new u(a)); - this.dataCache = null - }, - isDark: function(a, c) { - if (0 > a || this.moduleCount <= a || 0 > c || this.moduleCount <= c) throw Error(a + "," + c); - return this.modules[a][c] - }, - getModuleCount: function() { - return this.moduleCount - }, - make: function() { - if (1 > this.typeNumber) { - for (var a = 1, a = 1; 40 > a; a++) { - for (var c = p.getRSBlocks(a, this.errorCorrectLevel), d = new t, b = 0, e = 0; e < c.length; e++) b += c[e].dataCount; - for (e = 0; e < this.dataList.length; e++) c = this.dataList[e], d.put(c.mode, 4), d.put(c.getLength(), j.getLengthInBits(c.mode, a)), c.write(d); - if (d.getLengthInBits() <= 8 * b) break - } - this.typeNumber = a - } - this.makeImpl(!1, this.getBestMaskPattern()) - }, - makeImpl: function(a, c) { - this.moduleCount = 4 * this.typeNumber + 17; - this.modules = Array(this.moduleCount); - for (var d = 0; d < this.moduleCount; d++) { - this.modules[d] = Array(this.moduleCount); - for (var b = 0; b < this.moduleCount; b++) this.modules[d][b] = null - } - this.setupPositionProbePattern(0, 0); - this.setupPositionProbePattern(this.moduleCount - - 7, 0); - this.setupPositionProbePattern(0, this.moduleCount - 7); - this.setupPositionAdjustPattern(); - this.setupTimingPattern(); - this.setupTypeInfo(a, c); - 7 <= this.typeNumber && this.setupTypeNumber(a); - null == this.dataCache && (this.dataCache = o.createData(this.typeNumber, this.errorCorrectLevel, this.dataList)); - this.mapData(this.dataCache, c) - }, - setupPositionProbePattern: function(a, c) { - for (var d = -1; 7 >= d; d++) - if (!(-1 >= a + d || this.moduleCount <= a + d)) - for (var b = -1; 7 >= b; b++) - 1 >= c + b || this.moduleCount <= c + b || (this.modules[a + d][c + b] = - 0 <= d && 6 >= d && (0 == b || 6 == b) || 0 <= b && 6 >= b && (0 == d || 6 == d) || 2 <= d && 4 >= d && 2 <= b && 4 >= b ? !0 : !1) - }, - getBestMaskPattern: function() { - for (var a = 0, c = 0, d = 0; 8 > d; d++) { - this.makeImpl(!0, d); - var b = j.getLostPoint(this); - if (0 == d || a > b) a = b, c = d - } - return c - }, - createMovieClip: function(a, c, d) { - a = a.createEmptyMovieClip(c, d); - this.make(); - for (c = 0; c < this.modules.length; c++) - for (var d = 1 * c, b = 0; b < this.modules[c].length; b++) { - var e = 1 * b; - this.modules[c][b] && (a.beginFill(0, 100), a.moveTo(e, d), a.lineTo(e + 1, d), a.lineTo(e + 1, d + 1), a.lineTo(e, d + 1), a.endFill()) - } - return a - }, - setupTimingPattern: function() { - for (var a = 8; a < this.moduleCount - 8; a++) null == this.modules[a][6] && (this.modules[a][6] = 0 == a % 2); - for (a = 8; a < this.moduleCount - 8; a++) null == this.modules[6][a] && (this.modules[6][a] = 0 == a % 2) - }, - setupPositionAdjustPattern: function() { - for (var a = j.getPatternPosition(this.typeNumber), c = 0; c < a.length; c++) - for (var d = 0; d < a.length; d++) { - var b = a[c], - e = a[d]; - if (null == this.modules[b][e]) - for (var f = -2; 2 >= f; f++) - for (var i = -2; 2 >= i; i++) this.modules[b + f][e + i] = -2 == f || 2 == f || -2 == i || 2 == i || 0 == f && 0 == i ? !0 : !1 - } - }, - setupTypeNumber: function(a) { - for (var c = - j.getBCHTypeNumber(this.typeNumber), d = 0; 18 > d; d++) { - var b = !a && 1 == (c >> d & 1); - this.modules[Math.floor(d / 3)][d % 3 + this.moduleCount - 8 - 3] = b - } - for (d = 0; 18 > d; d++) b = !a && 1 == (c >> d & 1), this.modules[d % 3 + this.moduleCount - 8 - 3][Math.floor(d / 3)] = b - }, - setupTypeInfo: function(a, c) { - for (var d = j.getBCHTypeInfo(this.errorCorrectLevel << 3 | c), b = 0; 15 > b; b++) { - var e = !a && 1 == (d >> b & 1); - 6 > b ? this.modules[b][8] = e : 8 > b ? this.modules[b + 1][8] = e : this.modules[this.moduleCount - 15 + b][8] = e - } - for (b = 0; 15 > b; b++) e = !a && 1 == (d >> b & 1), 8 > b ? this.modules[8][this.moduleCount - - b - 1 - ] = e : 9 > b ? this.modules[8][15 - b - 1 + 1] = e : this.modules[8][15 - b - 1] = e; - this.modules[this.moduleCount - 8][8] = !a - }, - mapData: function(a, c) { - for (var d = -1, b = this.moduleCount - 1, e = 7, f = 0, i = this.moduleCount - 1; 0 < i; i -= 2) - for (6 == i && i--;;) { - for (var g = 0; 2 > g; g++) - if (null == this.modules[b][i - g]) { - var n = !1; - f < a.length && (n = 1 == (a[f] >>> e & 1)); - j.getMask(c, b, i - g) && (n = !n); - this.modules[b][i - g] = n; - e--; - 1 == e && (f++, e = 7) - } - b += d; - if (0 > b || this.moduleCount <= b) { - b -= d; - d = -d; - break - } - } - } - }; - o.PAD0 = 236; - o.PAD1 = 17; - o.createData = function(a, c, d) { - for (var c = p.getRSBlocks(a, - c), b = new t, e = 0; e < d.length; e++) { - var f = d[e]; - b.put(f.mode, 4); - b.put(f.getLength(), j.getLengthInBits(f.mode, a)); - f.write(b) - } - for (e = a = 0; e < c.length; e++) a += c[e].dataCount; - if (b.getLengthInBits() > 8 * a) throw Error("code length overflow. (" + b.getLengthInBits() + ">" + 8 * a + ")"); - for (b.getLengthInBits() + 4 <= 8 * a && b.put(0, 4); 0 != b.getLengthInBits() % 8;) b.putBit(!1); - for (; !(b.getLengthInBits() >= 8 * a);) { - b.put(o.PAD0, 8); - if (b.getLengthInBits() >= 8 * a) break; - b.put(o.PAD1, 8) - } - return o.createBytes(b, c) - }; - o.createBytes = function(a, c) { - for (var d = - 0, b = 0, e = 0, f = Array(c.length), i = Array(c.length), g = 0; g < c.length; g++) { - var n = c[g].dataCount, - h = c[g].totalCount - n, - b = Math.max(b, n), - e = Math.max(e, h); - f[g] = Array(n); - for (var k = 0; k < f[g].length; k++) f[g][k] = 255 & a.buffer[k + d]; - d += n; - k = j.getErrorCorrectPolynomial(h); - n = (new q(f[g], k.getLength() - 1)).mod(k); - i[g] = Array(k.getLength() - 1); - for (k = 0; k < i[g].length; k++) h = k + n.getLength() - i[g].length, i[g][k] = 0 <= h ? n.get(h) : 0 - } - for (k = g = 0; k < c.length; k++) g += c[k].totalCount; - d = Array(g); - for (k = n = 0; k < b; k++) - for (g = 0; g < c.length; g++) k < f[g].length && - (d[n++] = f[g][k]); - for (k = 0; k < e; k++) - for (g = 0; g < c.length; g++) k < i[g].length && (d[n++] = i[g][k]); - return d - }; - s = 4; - for (var j = { - PATTERN_POSITION_TABLE: [ - [], - [6, 18], - [6, 22], - [6, 26], - [6, 30], - [6, 34], - [6, 22, 38], - [6, 24, 42], - [6, 26, 46], - [6, 28, 50], - [6, 30, 54], - [6, 32, 58], - [6, 34, 62], - [6, 26, 46, 66], - [6, 26, 48, 70], - [6, 26, 50, 74], - [6, 30, 54, 78], - [6, 30, 56, 82], - [6, 30, 58, 86], - [6, 34, 62, 90], - [6, 28, 50, 72, 94], - [6, 26, 50, 74, 98], - [6, 30, 54, 78, 102], - [6, 28, 54, 80, 106], - [6, 32, 58, 84, 110], - [6, 30, 58, 86, 114], - [6, 34, 62, 90, 118], - [6, 26, 50, 74, 98, 122], - [6, 30, 54, 78, 102, 126], - [6, 26, 52, - 78, 104, 130 - ], - [6, 30, 56, 82, 108, 134], - [6, 34, 60, 86, 112, 138], - [6, 30, 58, 86, 114, 142], - [6, 34, 62, 90, 118, 146], - [6, 30, 54, 78, 102, 126, 150], - [6, 24, 50, 76, 102, 128, 154], - [6, 28, 54, 80, 106, 132, 158], - [6, 32, 58, 84, 110, 136, 162], - [6, 26, 54, 82, 110, 138, 166], - [6, 30, 58, 86, 114, 142, 170] - ], - G15: 1335, - G18: 7973, - G15_MASK: 21522, - getBCHTypeInfo: function(a) { - for (var c = a << 10; 0 <= j.getBCHDigit(c) - j.getBCHDigit(j.G15);) c ^= j.G15 << j.getBCHDigit(c) - j.getBCHDigit(j.G15); - return (a << 10 | c) ^ j.G15_MASK - }, - getBCHTypeNumber: function(a) { - for (var c = a << 12; 0 <= j.getBCHDigit(c) - - j.getBCHDigit(j.G18);) c ^= j.G18 << j.getBCHDigit(c) - j.getBCHDigit(j.G18); - return a << 12 | c - }, - getBCHDigit: function(a) { - for (var c = 0; 0 != a;) c++, a >>>= 1; - return c - }, - getPatternPosition: function(a) { - return j.PATTERN_POSITION_TABLE[a - 1] - }, - getMask: function(a, c, d) { - switch (a) { - case 0: - return 0 == (c + d) % 2; - case 1: - return 0 == c % 2; - case 2: - return 0 == d % 3; - case 3: - return 0 == (c + d) % 3; - case 4: - return 0 == (Math.floor(c / 2) + Math.floor(d / 3)) % 2; - case 5: - return 0 == c * d % 2 + c * d % 3; - case 6: - return 0 == (c * d % 2 + c * d % 3) % 2; - case 7: - return 0 == (c * d % 3 + (c + d) % 2) % 2; - default: - throw Error("bad maskPattern:" + - a); - } - }, - getErrorCorrectPolynomial: function(a) { - for (var c = new q([1], 0), d = 0; d < a; d++) c = c.multiply(new q([1, l.gexp(d)], 0)); - return c - }, - getLengthInBits: function(a, c) { - if (1 <= c && 10 > c) switch (a) { - case 1: - return 10; - case 2: - return 9; - case s: - return 8; - case 8: - return 8; - default: - throw Error("mode:" + a); - } else if (27 > c) switch (a) { - case 1: - return 12; - case 2: - return 11; - case s: - return 16; - case 8: - return 10; - default: - throw Error("mode:" + a); - } else if (41 > c) switch (a) { - case 1: - return 14; - case 2: - return 13; - case s: - return 16; - case 8: - return 12; - default: - throw Error("mode:" + - a); - } else throw Error("type:" + c); - }, - getLostPoint: function(a) { - for (var c = a.getModuleCount(), d = 0, b = 0; b < c; b++) - for (var e = 0; e < c; e++) { - for (var f = 0, i = a.isDark(b, e), g = -1; 1 >= g; g++) - if (!(0 > b + g || c <= b + g)) - for (var h = -1; 1 >= h; h++) 0 > e + h || c <= e + h || 0 == g && 0 == h || i == a.isDark(b + g, e + h) && f++; - 5 < f && (d += 3 + f - 5) - } - for (b = 0; b < c - 1; b++) - for (e = 0; e < c - 1; e++) - if (f = 0, a.isDark(b, e) && f++, a.isDark(b + 1, e) && f++, a.isDark(b, e + 1) && f++, a.isDark(b + 1, e + 1) && f++, 0 == f || 4 == f) d += 3; - for (b = 0; b < c; b++) - for (e = 0; e < c - 6; e++) a.isDark(b, e) && !a.isDark(b, e + 1) && a.isDark(b, e + - 2) && a.isDark(b, e + 3) && a.isDark(b, e + 4) && !a.isDark(b, e + 5) && a.isDark(b, e + 6) && (d += 40); - for (e = 0; e < c; e++) - for (b = 0; b < c - 6; b++) a.isDark(b, e) && !a.isDark(b + 1, e) && a.isDark(b + 2, e) && a.isDark(b + 3, e) && a.isDark(b + 4, e) && !a.isDark(b + 5, e) && a.isDark(b + 6, e) && (d += 40); - for (e = f = 0; e < c; e++) - for (b = 0; b < c; b++) a.isDark(b, e) && f++; - a = Math.abs(100 * f / c / c - 50) / 5; - return d + 10 * a - } - }, l = { - glog: function(a) { - if (1 > a) throw Error("glog(" + a + ")"); - return l.LOG_TABLE[a] - }, - gexp: function(a) { - for (; 0 > a;) a += 255; - for (; 256 <= a;) a -= 255; - return l.EXP_TABLE[a] - }, - EXP_TABLE: Array(256), - LOG_TABLE: Array(256) - }, m = 0; 8 > m; m++) l.EXP_TABLE[m] = 1 << m; - for (m = 8; 256 > m; m++) l.EXP_TABLE[m] = l.EXP_TABLE[m - 4] ^ l.EXP_TABLE[m - 5] ^ l.EXP_TABLE[m - 6] ^ l.EXP_TABLE[m - 8]; - for (m = 0; 255 > m; m++) l.LOG_TABLE[l.EXP_TABLE[m]] = m; - q.prototype = { - get: function(a) { - return this.num[a] - }, - getLength: function() { - return this.num.length - }, - multiply: function(a) { - for (var c = Array(this.getLength() + a.getLength() - 1), d = 0; d < this.getLength(); d++) - for (var b = 0; b < a.getLength(); b++) c[d + b] ^= l.gexp(l.glog(this.get(d)) + l.glog(a.get(b))); - return new q(c, 0) - }, - mod: function(a) { - if (0 > - this.getLength() - a.getLength()) return this; - for (var c = l.glog(this.get(0)) - l.glog(a.get(0)), d = Array(this.getLength()), b = 0; b < this.getLength(); b++) d[b] = this.get(b); - for (b = 0; b < a.getLength(); b++) d[b] ^= l.gexp(l.glog(a.get(b)) + c); - return (new q(d, 0)).mod(a) - } - }; - p.RS_BLOCK_TABLE = [ - [1, 26, 19], - [1, 26, 16], - [1, 26, 13], - [1, 26, 9], - [1, 44, 34], - [1, 44, 28], - [1, 44, 22], - [1, 44, 16], - [1, 70, 55], - [1, 70, 44], - [2, 35, 17], - [2, 35, 13], - [1, 100, 80], - [2, 50, 32], - [2, 50, 24], - [4, 25, 9], - [1, 134, 108], - [2, 67, 43], - [2, 33, 15, 2, 34, 16], - [2, 33, 11, 2, 34, 12], - [2, 86, 68], - [4, 43, 27], - [4, 43, 19], - [4, 43, 15], - [2, 98, 78], - [4, 49, 31], - [2, 32, 14, 4, 33, 15], - [4, 39, 13, 1, 40, 14], - [2, 121, 97], - [2, 60, 38, 2, 61, 39], - [4, 40, 18, 2, 41, 19], - [4, 40, 14, 2, 41, 15], - [2, 146, 116], - [3, 58, 36, 2, 59, 37], - [4, 36, 16, 4, 37, 17], - [4, 36, 12, 4, 37, 13], - [2, 86, 68, 2, 87, 69], - [4, 69, 43, 1, 70, 44], - [6, 43, 19, 2, 44, 20], - [6, 43, 15, 2, 44, 16], - [4, 101, 81], - [1, 80, 50, 4, 81, 51], - [4, 50, 22, 4, 51, 23], - [3, 36, 12, 8, 37, 13], - [2, 116, 92, 2, 117, 93], - [6, 58, 36, 2, 59, 37], - [4, 46, 20, 6, 47, 21], - [7, 42, 14, 4, 43, 15], - [4, 133, 107], - [8, 59, 37, 1, 60, 38], - [8, 44, 20, 4, 45, 21], - [12, 33, 11, 4, 34, 12], - [3, 145, 115, 1, 146, - 116 - ], - [4, 64, 40, 5, 65, 41], - [11, 36, 16, 5, 37, 17], - [11, 36, 12, 5, 37, 13], - [5, 109, 87, 1, 110, 88], - [5, 65, 41, 5, 66, 42], - [5, 54, 24, 7, 55, 25], - [11, 36, 12], - [5, 122, 98, 1, 123, 99], - [7, 73, 45, 3, 74, 46], - [15, 43, 19, 2, 44, 20], - [3, 45, 15, 13, 46, 16], - [1, 135, 107, 5, 136, 108], - [10, 74, 46, 1, 75, 47], - [1, 50, 22, 15, 51, 23], - [2, 42, 14, 17, 43, 15], - [5, 150, 120, 1, 151, 121], - [9, 69, 43, 4, 70, 44], - [17, 50, 22, 1, 51, 23], - [2, 42, 14, 19, 43, 15], - [3, 141, 113, 4, 142, 114], - [3, 70, 44, 11, 71, 45], - [17, 47, 21, 4, 48, 22], - [9, 39, 13, 16, 40, 14], - [3, 135, 107, 5, 136, 108], - [3, 67, 41, 13, 68, 42], - [15, 54, 24, 5, 55, 25], - [15, - 43, 15, 10, 44, 16 - ], - [4, 144, 116, 4, 145, 117], - [17, 68, 42], - [17, 50, 22, 6, 51, 23], - [19, 46, 16, 6, 47, 17], - [2, 139, 111, 7, 140, 112], - [17, 74, 46], - [7, 54, 24, 16, 55, 25], - [34, 37, 13], - [4, 151, 121, 5, 152, 122], - [4, 75, 47, 14, 76, 48], - [11, 54, 24, 14, 55, 25], - [16, 45, 15, 14, 46, 16], - [6, 147, 117, 4, 148, 118], - [6, 73, 45, 14, 74, 46], - [11, 54, 24, 16, 55, 25], - [30, 46, 16, 2, 47, 17], - [8, 132, 106, 4, 133, 107], - [8, 75, 47, 13, 76, 48], - [7, 54, 24, 22, 55, 25], - [22, 45, 15, 13, 46, 16], - [10, 142, 114, 2, 143, 115], - [19, 74, 46, 4, 75, 47], - [28, 50, 22, 6, 51, 23], - [33, 46, 16, 4, 47, 17], - [8, 152, 122, 4, 153, 123], - [22, 73, 45, - 3, 74, 46 - ], - [8, 53, 23, 26, 54, 24], - [12, 45, 15, 28, 46, 16], - [3, 147, 117, 10, 148, 118], - [3, 73, 45, 23, 74, 46], - [4, 54, 24, 31, 55, 25], - [11, 45, 15, 31, 46, 16], - [7, 146, 116, 7, 147, 117], - [21, 73, 45, 7, 74, 46], - [1, 53, 23, 37, 54, 24], - [19, 45, 15, 26, 46, 16], - [5, 145, 115, 10, 146, 116], - [19, 75, 47, 10, 76, 48], - [15, 54, 24, 25, 55, 25], - [23, 45, 15, 25, 46, 16], - [13, 145, 115, 3, 146, 116], - [2, 74, 46, 29, 75, 47], - [42, 54, 24, 1, 55, 25], - [23, 45, 15, 28, 46, 16], - [17, 145, 115], - [10, 74, 46, 23, 75, 47], - [10, 54, 24, 35, 55, 25], - [19, 45, 15, 35, 46, 16], - [17, 145, 115, 1, 146, 116], - [14, 74, 46, 21, 75, 47], - [29, 54, 24, 19, - 55, 25 - ], - [11, 45, 15, 46, 46, 16], - [13, 145, 115, 6, 146, 116], - [14, 74, 46, 23, 75, 47], - [44, 54, 24, 7, 55, 25], - [59, 46, 16, 1, 47, 17], - [12, 151, 121, 7, 152, 122], - [12, 75, 47, 26, 76, 48], - [39, 54, 24, 14, 55, 25], - [22, 45, 15, 41, 46, 16], - [6, 151, 121, 14, 152, 122], - [6, 75, 47, 34, 76, 48], - [46, 54, 24, 10, 55, 25], - [2, 45, 15, 64, 46, 16], - [17, 152, 122, 4, 153, 123], - [29, 74, 46, 14, 75, 47], - [49, 54, 24, 10, 55, 25], - [24, 45, 15, 46, 46, 16], - [4, 152, 122, 18, 153, 123], - [13, 74, 46, 32, 75, 47], - [48, 54, 24, 14, 55, 25], - [42, 45, 15, 32, 46, 16], - [20, 147, 117, 4, 148, 118], - [40, 75, 47, 7, 76, 48], - [43, 54, 24, 22, 55, 25], - [10, - 45, 15, 67, 46, 16 - ], - [19, 148, 118, 6, 149, 119], - [18, 75, 47, 31, 76, 48], - [34, 54, 24, 34, 55, 25], - [20, 45, 15, 61, 46, 16] - ]; - p.getRSBlocks = function(a, c) { - var d = p.getRsBlockTable(a, c); - if (void 0 == d) throw Error("bad rs block @ typeNumber:" + a + "/errorCorrectLevel:" + c); - for (var b = d.length / 3, e = [], f = 0; f < b; f++) - for (var h = d[3 * f + 0], g = d[3 * f + 1], j = d[3 * f + 2], l = 0; l < h; l++) e.push(new p(g, j)); - return e - }; - p.getRsBlockTable = function(a, c) { - switch (c) { - case 1: - return p.RS_BLOCK_TABLE[4 * (a - 1) + 0]; - case 0: - return p.RS_BLOCK_TABLE[4 * (a - 1) + 1]; - case 3: - return p.RS_BLOCK_TABLE[4 * - (a - 1) + 2]; - case 2: - return p.RS_BLOCK_TABLE[4 * (a - 1) + 3] - } - }; - t.prototype = { - get: function(a) { - return 1 == (this.buffer[Math.floor(a / 8)] >>> 7 - a % 8 & 1) - }, - put: function(a, c) { - for (var d = 0; d < c; d++) this.putBit(1 == (a >>> c - d - 1 & 1)) - }, - getLengthInBits: function() { - return this.length - }, - putBit: function(a) { - var c = Math.floor(this.length / 8); - this.buffer.length <= c && this.buffer.push(0); - a && (this.buffer[c] |= 128 >>> this.length % 8); - this.length++ - } - }; - "string" === typeof h && (h = { - text: h - }); - h = r.extend({}, { - render: "canvas", - width: 256, - height: 256, - typeNumber: -1, - correctLevel: 2, - background: "#ffffff", - foreground: "#000000" - }, h); - return this.each(function() { - var a; - if ("canvas" == h.render) { - a = new o(h.typeNumber, h.correctLevel); - a.addData(h.text); - a.make(); - var c = document.createElement("canvas"); - c.width = h.width; - c.height = h.height; - for (var d = c.getContext("2d"), b = h.width / a.getModuleCount(), e = h.height / a.getModuleCount(), f = 0; f < a.getModuleCount(); f++) - for (var i = 0; i < a.getModuleCount(); i++) { - d.fillStyle = a.isDark(f, i) ? h.foreground : h.background; - var g = Math.ceil((i + 1) * b) - Math.floor(i * b), - j = Math.ceil((f + 1) * b) - Math.floor(f * b); - d.fillRect(Math.round(i * b), Math.round(f * e), g, j) - } - } else { - a = new o(h.typeNumber, h.correctLevel); - a.addData(h.text); - a.make(); - c = r("<table></table>").css("width", h.width + "px").css("height", h.height + "px").css("border", "0px").css("border-collapse", "collapse").css("background-color", h.background); - d = h.width / a.getModuleCount(); - b = h.height / a.getModuleCount(); - for (e = 0; e < a.getModuleCount(); e++) { - f = r("<tr></tr>").css("height", b + "px").appendTo(c); - for (i = 0; i < a.getModuleCount(); i++) r("<td></td>").css("width", - d + "px").css("background-color", a.isDark(e, i) ? h.foreground : h.background).appendTo(f) - } - } - a = c; - jQuery(a).appendTo(this) - }) - } -})(jQuery); -/* jscs: enable */ -/* jshint ignore:end */ -}); -define("js/about/entry", ["jquery","jquery.placeholder","handlebars","source-map"], function(require, exports, module){ -/** - * 逛打包入口 - * @author: yyqing<yanqing.yang@yoho.cn> - * @date: 2016/4/14 - */ +function getYohoBiList() { -require("js/about/settled"); - -}); -define("js/about/settled", ["jquery","jquery.placeholder","handlebars","source-map"], function(require, exports, module){ -/** - * 商家入驻 - * @author: xuqi<qi.xu@yoho> - * @date: 2016/3/24 - */ + var $juanUl = $('.play-juan ul'), + juanStr = '', + dLen, + data, + i; -var $ = require("jquery"); + $.ajax({ + type: 'GET', + dataType: 'json', + url: '/cart/index/getCouponList' + }).then(function(d) { -var reg = require("js/passport/mail-phone-regx"); + if (d.code === 200) { + data = d.data; + dLen = data.length; -require("jquery.placeholder"); -require("plugin/jquery.qupload"); + for (i = 0; i < dLen; i++) { + juanStr += '<li>' + + '<input name="juangroup" type="radio" value="' + + data[i].code + '" ' + (data[i].valid ? '' : 'disabled="disabled"') + '>' + + '<label>' + data[i].desc + '</label>' + + '</li>'; + } -//入口页 -(function() { - var $mask, - $dialog; + $juanUl.prepend($(juanStr)); - if ($('.settled-page').length === 0) { - return; - } + } + }); +} +getYohoBiList(); - $mask = $('#mask'); - $dialog = $('#notice-container'); +// 把Y、N转换成bool - function showNotice() { - var wh = $(window).height(); +function ytoTrue(val) { - $mask.removeClass('hide'); - $dialog.css({ - 'max-height': wh - 60 - }).removeClass('hide'); + if (val === 'N') { + return false; + } else { + return true; } +} - function hideNotice() { - $mask.addClass('hide'); - $dialog.addClass('hide'); - } - $('#fake-link').click(showNotice); +// 去支付 +$('.to-play input.submit').click(function() { - $('#fake-close').click(hideNotice); - $('#mask').click(hideNotice); -}()); + var $this = $(this); -//申请页 -(function() { - var $otherBr, - $otherNp, - $otherRp, - $categoryUl, - $shopListTr, - $shops, - $panel; - - var $postcode, - $email, - $phoneNum, - $upKey, - $styleCount; - - var categoryHtml = $('#category-tpl').html(); - - var Dialog = require("js/common/dialog").Dialog; - var successDialog, - SWFUpload = window.SWFUpload, - upKey; - - if ($('.settled-apply-page').length < 0) { - return; - } + var addressId = $('.exist-address-list input[name="address"]:checked').closest('li').attr('data-id'), + deliveryTimeId = $('.pay-time-modify input[name="pay-time-radio"]:checked').val(), + deliveryWayId = $('.select-express input[name="carriagegroup"]:checked').val(), + invoiceType, + invoiceContent, + receiverMobile, + invoiceTitle, + paymentType = $('.pay-time-modify input[name="pay-type"]:checked').val(), + paymentId = $('.pay-time-modify input[name="pay-type"]:checked').data('pay'), + remark = $('#notedesc').val(), + yohoCoin = $('#biprice').val(), + isPreContact = $('.pay-time-modify input[name="call-me"]:checked').val(), + isPrintPrice = $('.play-pan input[name="isPP"]:checked').val(), + redEnvelopes = $('.use-envelopes input:checked').attr('data-use'), + $juangroupInput = $('.play-juan.is-select input[name="juangroup"]:checked'), + codeVal = $juangroupInput.val(), + juanCode = !!codeVal ? codeVal : $juangroupInput.closest('li').find('#juancode').val(); - $('[placeholder]').placeholder(); - - $otherBr = $('#other-brand-relation'); - $otherNp = $('#other-new-period'); - $otherRp = $('#other-replenishment-period'); - $categoryUl = $('#category-list'); - $shopListTr = $('#shop-list'); - $shops = $('#shops'); - $panel = $('#mask, #submit-success'); - - $postcode = $('#postcode'); - $email = $('#email'); - $phoneNum = $('#phone-number'); - $upKey = $('#upload-key'); - $styleCount = $('#style-count'); - upKey = $upKey.val(); - $upKey.remove(); - - function initUpload(arr) { - $.each(arr, function(k, v) { - $('#' + v.dom).qupload({ - uploadKey: upKey, - button_image_url: '', - button_text: '<span class="btn_upload_text">上传</span>', - button_text_style: - '.btn_upload_text{color:#000;margin-left:30px;' + - 'line-height: 2em;font-size:14px;}', - button_text_left_padding: 32, - button_text_top_padding: 8, - button_width: 160, - button_height: 35, - button_action: SWFUpload.BUTTON_ACTION.SELECT_FILE,//单选 - file_size_limit: '10240', - file_types: v.type, - uploadSuccessed: function(serverData) { - var data = JSON.parse(serverData); - - if (data.code !== 12) { - alert(data.message); - return false; - } - v.callback(data.data.hit.Filedata.return_file_path); - } - }); - }); + if ($invoiceCheck.hasClass('active')) { + invoiceType = $('.invoice-upload-type').html(); + invoiceContent = $('.invoice-upload-content').html(); + receiverMobile = $('.invoice-upload-mobile').html(); + invoiceTitle = $('.invoice-upload-title').html(); } - function validate() { - var pass = true, - postcodeReg = /[0-9]\d{5}(?!\d)/, - emailReg = reg.emailRegx, - phoneReg = reg.phoneRegx['+86'], - styleCountReg = /^(0|[1-9][0-9]*)$/; + $loading.show(); - $('.va, .category-item select, .for-other, .category-item').removeClass('error'); + if (!!$this.attr('disabled')) { + return; + } - $('.va-null').each(function() { - if ($(this).val() === '') { - $(this).addClass('error'); - pass = false; - } - }); + $this.attr('disabled', 'disabled'); - if ($postcode.val() === '' || !postcodeReg.test($postcode.val())) { - $postcode.addClass('error'); - pass = false; + $.ajax({ + type: 'POST', + dataType: 'json', + url: '/cart/index/orderSub', + data: { + addressId: addressId, + cartType: cartType, + deliveryTimeId: deliveryTimeId, + deliveryWayId: deliveryWayId, + invoiceType: invoiceType, + invoiceContent: invoiceContent, + receiverMobile: receiverMobile, + invoiceTitle: invoiceTitle, + paymentId: paymentId, + paymentType: paymentType, + remark: remark, + couponCode: juanCode, + yohoCoin: yohoCoin, + isPreContact: ytoTrue(isPreContact), + isPrintPrice: ytoTrue(isPrintPrice), + redEnvelopes: redEnvelopes } + }).then(function(d) { - if ($email.val() === '' || !emailReg.test($email.val())) { - $email.addClass('error'); - pass = false; - } + $loading.hide(); - if ($phoneNum.val() === '' || !(phoneReg.test($phoneNum.val()))) { - $phoneNum.addClass('error'); - pass = false; + if (d.code === 200) { + window.location.href = d.data.payUrl; + } else { + new dialog.Alert(d.message).show(); } + }).always(function() { + $this.removeAttr('disabled'); + }); +}); + +}); +define("js/shopping/pay", ["jquery"], function(require, exports, module){ +/** + * 支付页面 + */ - if ($styleCount.val() === '' || !(styleCountReg.test($styleCount.val()))) { - $styleCount.addClass('error'); - pass = false; - } +//切换选项卡 +var $ = require("jquery"), + $choseTag = $('.mode div'), + $mode = $('.mode'), + $showPayImg = $('#show-pay-img'), + $btnty = $('#btnby'), + $lightBox = $('.light-box'), + $choosePay = $('#choosePay').val(), + $chooseMoid = $('.mode div[id="' + $choosePay + '"]').parent().data('value'), + $showValue = $choosePay ? $chooseMoid : $('.mode').eq(0).data('value'), + $payUrl = $('#payUrl').val(), + $modeData, + activeTab, + imgAlt, + imgSrc, + orderCode, + payment; - $('.category-item').each(function() { - if ($(this).get(0).selectedIndex === 0) { - $(this).addClass('error'); - pass = false; - } - }); +$.jqtab = function(tabtit, tabcon) { - if ($('input[name="seller-role"]:checked').index() === 3 && - $otherBr.val() === '') { - pass = false; - $otherBr.addClass('error'); - } + $(tabtit + ' li').click(function() { + activeTab = $(this).find('a').attr('tab'); + + $(tabtit + ' li').removeClass('thistab'); + $(this).addClass('thistab'); + $(tabcon).hide(); + $('#' + activeTab).fadeIn(); + return false; + }); +}; - if ($('input[name="new_cycle"]:checked').index() === 5 && - $otherNp.val() === '') { - pass = false; - $otherNp.addClass('error'); - } - if ($('input[name="supply_cycle"]:checked').index() === 5 && - $otherRp.val() === '') { - pass = false; - $otherRp.addClass('error'); - } +$.jqtab('#tabs', '.tab-con'); - return pass; +//选项卡点击 +function choosed() { + if ($choosePay) { + $('.mode div[id="' + $choosePay + '"]').addClass('choosed-tag').parent().addClass('choose-type'); + } else { + $mode.eq(0).addClass('choose-type').show(); + $mode.eq(0).find('div').addClass('choosed-tag'); } + $btnty.attr('value', '前往' + $('#' + $chooseMoid).attr('alt')); + $showPayImg.attr('src', $('#' + $chooseMoid).attr('src')); +} - function addCategoryUI() { - $categoryUl.closest('tr').removeClass('hide'); - $categoryUl.append('<li>' + categoryHtml + '</li>'); - } +choosed(); - //获取二级分类的方法 - function getCategoryTwo() { - var id = $(this).val(); - var $categoryTwo = $(this).parent().find('.category-two'); - var html = '<option>选择二级分类</option>'; +$mode.click(function() { + $modeData = $(this).data(); + $showValue = $modeData.value; + imgAlt = $('#' + $showValue).attr('alt'); + imgSrc = $('#' + $showValue).attr('src'); - if (id === '') { - $categoryTwo.html(html); - return; - } + $mode.removeClass('choose-type'); + $(this).addClass('choose-type'); + $choseTag.removeClass('choosed-tag'); + $(this).find('.borer-tag').addClass('choosed-tag'); + $btnty.attr('value', '前往' + imgAlt); + $showPayImg.attr('src', imgSrc); + return false; +}); - $.ajax({ - url: '/shop/settled/getTwoCategory', - type: 'GET', - data: { - id: id - } - }).then(function(data) { - var res = []; - var key; - if (data.code === 200) { - res = data.data; - for (key = 0; key < res.length; key++) { - html += '<option value="' + res[key].id + '" >' + res[key].name + '</option>'; - } - } - $categoryTwo.html(html); - }); - } +$('.close').click(function() { + $lightBox.hide(); +}); - // 初始化上传插件 - initUpload([ - { - dom: 'upload-brand-material', - type: '*.ppt;*.pdf;*.zip;*.rar', - callback: function(data) { - $('#brand-material').val(data); - $('.brand-tip').html('上传成功'); - alert('上传成功!'); - } - }, - { - dom: 'upload-goods-material', - type: '*.xls;*.xlsx;*.zip;*.rar', - callback: function(data) { - $('#goods-material').val(data); - $('.goods-tip').html('上传成功'); - alert('上传成功!'); - } - } - ]); - - // 提交成功 - if (location.search.indexOf('state=1') > -1) { - successDialog = new Dialog({ - className: 'settled-success', - closeIcon: false, - content: '<h1 class="main-title">恭喜您已提交成功</h1><h2 class="sub-title">我们将尽快与您联系</h2>', - btns: [ - { - id: 'apply-success-ok', - btnClass: ['apply-success-ok'], - name: '确认', - cb: function() { - location.href = '/shop/settled/index'; - } - } - ] - }); - successDialog.show(); - return; - } +$('.change').click(function() { + $lightBox.hide(); +}); - $('input[name="seller_role"]').change(function() { - if ($(this).index() === 3) { - $otherBr.removeClass('hide'); - } else { - $otherBr.addClass('hide'); +//支付方式选择按钮 +function getData(payment, orderCode) { + $.ajax({ + type: 'get', + url: '/common/addpaymentinterval', + dataType: 'json', + data: { + orderCode: orderCode, + payment: payment } }); +} - $('input[name="new-cycle"]').change(function() { - if ($(this).index() === 5) { - $otherNp.removeClass('hide'); - } else { - $otherNp.addClass('hide'); - } - }); +$('#btnby').click(function() { + payment = $('.choose-type').attr('data-id'); + orderCode = $('.order-num').text(); + getData(payment, orderCode); + window.open($payUrl + '?order_code=' + orderCode + '&payment_type=' + $showValue); + $lightBox.show(); +}); - $('input[name="supply-cycle"]').change(function() { - if ($(this).index() === 5) { - $otherRp.removeClass('hide'); - } else { - $otherRp.addClass('hide'); - } - }); +//发送支付确认 +$('.pay-over').unbind('click').bind('click', function() { + var _this = this; - $('input[name="have-store"]').change(function() { - if ($(this).index() === 1) { - $shopListTr.addClass('hide'); - } else { - $shopListTr.removeClass('hide'); + $.post('/shopping/pay/sendPay', + { + orderCode: orderCode, + paymentId: payment + }, + function() { + window.location.href = $(_this).data('url'); } - }); + ); +}); +}); +define("js/pay/wechatqrcode", ["jquery"], function(require, exports, module){ +/** + * 微信支付页面 + */ - $('.form-container').on('change', '.category-one', getCategoryTwo); +var $ = require("jquery"), + $wOdetail = $('.w-odetail'), + $payHost = $('#payHost').val(), + $paySuccessUrl = $('#paySuccessUrl').val(), + $wPerm = $('.w-p-erm'); - $('#category-add').click(addCategoryUI); +require("plugin/jquery.qrcode"); - $shops.delegate('.shop-add', 'click', function() { - $shops.append( - '<li>' + - '<input class="shop-addres" name="store-address[]" type="text" placeholder="输入店铺地址">' + - '<span>月均销售:</span>' + - '<input class="shop-sales-volume" type="text" name="store-sales-volume[]" placeholder="输入价格">' + - '<span>元</span>' + - '</li>' - ); - }); +$wOdetail.click(function() { + $('.w-addrinfo').slideToggle('slow'); - $('#apply-post').click(function() { - var scrollTo; + if ($wOdetail.find('i').hasClass('up')) { + $wOdetail.html('收起详情<i class="down"></i>'); + } else { + $wOdetail.html('订单详情<i class="up"></i>'); + } +}); - if (validate()) { - $panel.removeClass('hide'); - $('form').submit(); - } else { - $('.error').first().focus(); - scrollTo = $('.error').first().offset().top; - $(window).scrollTop(scrollTo - 10); +$wPerm.qrcode({ + render: 'table', + text: $wPerm.data('url') +}); + +function checkPayStatus() { + $.ajax({ + url: $payHost, + dataType: 'jsonp', + success: function(data) { + if (data.message === 'success') { + window.location.href = $paySuccessUrl; + } } }); +} - if (navigator.userAgent.indexOf('MSIE') >= 0) { - $('[placeholder]').focus(function() { - var $input = $(this); - $input.removeClass('placeholder'); - }).blur(function() { - var $input = $(this); +setInterval(checkPayStatus, 3000); +}); +define("plugin/jquery.qrcode", ["jquery"], function(require, exports, module){ +/* jscs: disable */ +/* jshint ignore:start */ +var jQuery = require("jquery"); + +(function(r) { + r.fn.qrcode = function(h) { + var s; + + function u(a) { + this.mode = s; + this.data = a + } + + function o(a, c) { + this.typeNumber = a; + this.errorCorrectLevel = c; + this.modules = null; + this.moduleCount = 0; + this.dataCache = null; + this.dataList = [] + } + + function q(a, c) { + if (void 0 == a.length) throw Error(a.length + "/" + c); + for (var d = 0; d < a.length && 0 == a[d];) d++; + this.num = Array(a.length - d + c); + for (var b = 0; b < a.length - d; b++) this.num[b] = a[b + d] + } + + function p(a, c) { + this.totalCount = a; + this.dataCount = c + } + + function t() { + this.buffer = []; + this.length = 0 + } + u.prototype = { + getLength: function() { + return this.data.length + }, + write: function(a) { + for (var c = 0; c < this.data.length; c++) a.put(this.data.charCodeAt(c), 8) + } + }; + o.prototype = { + addData: function(a) { + this.dataList.push(new u(a)); + this.dataCache = null + }, + isDark: function(a, c) { + if (0 > a || this.moduleCount <= a || 0 > c || this.moduleCount <= c) throw Error(a + "," + c); + return this.modules[a][c] + }, + getModuleCount: function() { + return this.moduleCount + }, + make: function() { + if (1 > this.typeNumber) { + for (var a = 1, a = 1; 40 > a; a++) { + for (var c = p.getRSBlocks(a, this.errorCorrectLevel), d = new t, b = 0, e = 0; e < c.length; e++) b += c[e].dataCount; + for (e = 0; e < this.dataList.length; e++) c = this.dataList[e], d.put(c.mode, 4), d.put(c.getLength(), j.getLengthInBits(c.mode, a)), c.write(d); + if (d.getLengthInBits() <= 8 * b) break + } + this.typeNumber = a + } + this.makeImpl(!1, this.getBestMaskPattern()) + }, + makeImpl: function(a, c) { + this.moduleCount = 4 * this.typeNumber + 17; + this.modules = Array(this.moduleCount); + for (var d = 0; d < this.moduleCount; d++) { + this.modules[d] = Array(this.moduleCount); + for (var b = 0; b < this.moduleCount; b++) this.modules[d][b] = null + } + this.setupPositionProbePattern(0, 0); + this.setupPositionProbePattern(this.moduleCount - + 7, 0); + this.setupPositionProbePattern(0, this.moduleCount - 7); + this.setupPositionAdjustPattern(); + this.setupTimingPattern(); + this.setupTypeInfo(a, c); + 7 <= this.typeNumber && this.setupTypeNumber(a); + null == this.dataCache && (this.dataCache = o.createData(this.typeNumber, this.errorCorrectLevel, this.dataList)); + this.mapData(this.dataCache, c) + }, + setupPositionProbePattern: function(a, c) { + for (var d = -1; 7 >= d; d++) + if (!(-1 >= a + d || this.moduleCount <= a + d)) + for (var b = -1; 7 >= b; b++) - 1 >= c + b || this.moduleCount <= c + b || (this.modules[a + d][c + b] = + 0 <= d && 6 >= d && (0 == b || 6 == b) || 0 <= b && 6 >= b && (0 == d || 6 == d) || 2 <= d && 4 >= d && 2 <= b && 4 >= b ? !0 : !1) + }, + getBestMaskPattern: function() { + for (var a = 0, c = 0, d = 0; 8 > d; d++) { + this.makeImpl(!0, d); + var b = j.getLostPoint(this); + if (0 == d || a > b) a = b, c = d + } + return c + }, + createMovieClip: function(a, c, d) { + a = a.createEmptyMovieClip(c, d); + this.make(); + for (c = 0; c < this.modules.length; c++) + for (var d = 1 * c, b = 0; b < this.modules[c].length; b++) { + var e = 1 * b; + this.modules[c][b] && (a.beginFill(0, 100), a.moveTo(e, d), a.lineTo(e + 1, d), a.lineTo(e + 1, d + 1), a.lineTo(e, d + 1), a.endFill()) + } + return a + }, + setupTimingPattern: function() { + for (var a = 8; a < this.moduleCount - 8; a++) null == this.modules[a][6] && (this.modules[a][6] = 0 == a % 2); + for (a = 8; a < this.moduleCount - 8; a++) null == this.modules[6][a] && (this.modules[6][a] = 0 == a % 2) + }, + setupPositionAdjustPattern: function() { + for (var a = j.getPatternPosition(this.typeNumber), c = 0; c < a.length; c++) + for (var d = 0; d < a.length; d++) { + var b = a[c], + e = a[d]; + if (null == this.modules[b][e]) + for (var f = -2; 2 >= f; f++) + for (var i = -2; 2 >= i; i++) this.modules[b + f][e + i] = -2 == f || 2 == f || -2 == i || 2 == i || 0 == f && 0 == i ? !0 : !1 + } + }, + setupTypeNumber: function(a) { + for (var c = + j.getBCHTypeNumber(this.typeNumber), d = 0; 18 > d; d++) { + var b = !a && 1 == (c >> d & 1); + this.modules[Math.floor(d / 3)][d % 3 + this.moduleCount - 8 - 3] = b + } + for (d = 0; 18 > d; d++) b = !a && 1 == (c >> d & 1), this.modules[d % 3 + this.moduleCount - 8 - 3][Math.floor(d / 3)] = b + }, + setupTypeInfo: function(a, c) { + for (var d = j.getBCHTypeInfo(this.errorCorrectLevel << 3 | c), b = 0; 15 > b; b++) { + var e = !a && 1 == (d >> b & 1); + 6 > b ? this.modules[b][8] = e : 8 > b ? this.modules[b + 1][8] = e : this.modules[this.moduleCount - 15 + b][8] = e + } + for (b = 0; 15 > b; b++) e = !a && 1 == (d >> b & 1), 8 > b ? this.modules[8][this.moduleCount - + b - 1 + ] = e : 9 > b ? this.modules[8][15 - b - 1 + 1] = e : this.modules[8][15 - b - 1] = e; + this.modules[this.moduleCount - 8][8] = !a + }, + mapData: function(a, c) { + for (var d = -1, b = this.moduleCount - 1, e = 7, f = 0, i = this.moduleCount - 1; 0 < i; i -= 2) + for (6 == i && i--;;) { + for (var g = 0; 2 > g; g++) + if (null == this.modules[b][i - g]) { + var n = !1; + f < a.length && (n = 1 == (a[f] >>> e & 1)); + j.getMask(c, b, i - g) && (n = !n); + this.modules[b][i - g] = n; + e--; - 1 == e && (f++, e = 7) + } + b += d; + if (0 > b || this.moduleCount <= b) { + b -= d; + d = -d; + break + } + } + } + }; + o.PAD0 = 236; + o.PAD1 = 17; + o.createData = function(a, c, d) { + for (var c = p.getRSBlocks(a, + c), b = new t, e = 0; e < d.length; e++) { + var f = d[e]; + b.put(f.mode, 4); + b.put(f.getLength(), j.getLengthInBits(f.mode, a)); + f.write(b) + } + for (e = a = 0; e < c.length; e++) a += c[e].dataCount; + if (b.getLengthInBits() > 8 * a) throw Error("code length overflow. (" + b.getLengthInBits() + ">" + 8 * a + ")"); + for (b.getLengthInBits() + 4 <= 8 * a && b.put(0, 4); 0 != b.getLengthInBits() % 8;) b.putBit(!1); + for (; !(b.getLengthInBits() >= 8 * a);) { + b.put(o.PAD0, 8); + if (b.getLengthInBits() >= 8 * a) break; + b.put(o.PAD1, 8) + } + return o.createBytes(b, c) + }; + o.createBytes = function(a, c) { + for (var d = + 0, b = 0, e = 0, f = Array(c.length), i = Array(c.length), g = 0; g < c.length; g++) { + var n = c[g].dataCount, + h = c[g].totalCount - n, + b = Math.max(b, n), + e = Math.max(e, h); + f[g] = Array(n); + for (var k = 0; k < f[g].length; k++) f[g][k] = 255 & a.buffer[k + d]; + d += n; + k = j.getErrorCorrectPolynomial(h); + n = (new q(f[g], k.getLength() - 1)).mod(k); + i[g] = Array(k.getLength() - 1); + for (k = 0; k < i[g].length; k++) h = k + n.getLength() - i[g].length, i[g][k] = 0 <= h ? n.get(h) : 0 + } + for (k = g = 0; k < c.length; k++) g += c[k].totalCount; + d = Array(g); + for (k = n = 0; k < b; k++) + for (g = 0; g < c.length; g++) k < f[g].length && + (d[n++] = f[g][k]); + for (k = 0; k < e; k++) + for (g = 0; g < c.length; g++) k < i[g].length && (d[n++] = i[g][k]); + return d + }; + s = 4; + for (var j = { + PATTERN_POSITION_TABLE: [ + [], + [6, 18], + [6, 22], + [6, 26], + [6, 30], + [6, 34], + [6, 22, 38], + [6, 24, 42], + [6, 26, 46], + [6, 28, 50], + [6, 30, 54], + [6, 32, 58], + [6, 34, 62], + [6, 26, 46, 66], + [6, 26, 48, 70], + [6, 26, 50, 74], + [6, 30, 54, 78], + [6, 30, 56, 82], + [6, 30, 58, 86], + [6, 34, 62, 90], + [6, 28, 50, 72, 94], + [6, 26, 50, 74, 98], + [6, 30, 54, 78, 102], + [6, 28, 54, 80, 106], + [6, 32, 58, 84, 110], + [6, 30, 58, 86, 114], + [6, 34, 62, 90, 118], + [6, 26, 50, 74, 98, 122], + [6, 30, 54, 78, 102, 126], + [6, 26, 52, + 78, 104, 130 + ], + [6, 30, 56, 82, 108, 134], + [6, 34, 60, 86, 112, 138], + [6, 30, 58, 86, 114, 142], + [6, 34, 62, 90, 118, 146], + [6, 30, 54, 78, 102, 126, 150], + [6, 24, 50, 76, 102, 128, 154], + [6, 28, 54, 80, 106, 132, 158], + [6, 32, 58, 84, 110, 136, 162], + [6, 26, 54, 82, 110, 138, 166], + [6, 30, 58, 86, 114, 142, 170] + ], + G15: 1335, + G18: 7973, + G15_MASK: 21522, + getBCHTypeInfo: function(a) { + for (var c = a << 10; 0 <= j.getBCHDigit(c) - j.getBCHDigit(j.G15);) c ^= j.G15 << j.getBCHDigit(c) - j.getBCHDigit(j.G15); + return (a << 10 | c) ^ j.G15_MASK + }, + getBCHTypeNumber: function(a) { + for (var c = a << 12; 0 <= j.getBCHDigit(c) - + j.getBCHDigit(j.G18);) c ^= j.G18 << j.getBCHDigit(c) - j.getBCHDigit(j.G18); + return a << 12 | c + }, + getBCHDigit: function(a) { + for (var c = 0; 0 != a;) c++, a >>>= 1; + return c + }, + getPatternPosition: function(a) { + return j.PATTERN_POSITION_TABLE[a - 1] + }, + getMask: function(a, c, d) { + switch (a) { + case 0: + return 0 == (c + d) % 2; + case 1: + return 0 == c % 2; + case 2: + return 0 == d % 3; + case 3: + return 0 == (c + d) % 3; + case 4: + return 0 == (Math.floor(c / 2) + Math.floor(d / 3)) % 2; + case 5: + return 0 == c * d % 2 + c * d % 3; + case 6: + return 0 == (c * d % 2 + c * d % 3) % 2; + case 7: + return 0 == (c * d % 3 + (c + d) % 2) % 2; + default: + throw Error("bad maskPattern:" + + a); + } + }, + getErrorCorrectPolynomial: function(a) { + for (var c = new q([1], 0), d = 0; d < a; d++) c = c.multiply(new q([1, l.gexp(d)], 0)); + return c + }, + getLengthInBits: function(a, c) { + if (1 <= c && 10 > c) switch (a) { + case 1: + return 10; + case 2: + return 9; + case s: + return 8; + case 8: + return 8; + default: + throw Error("mode:" + a); + } else if (27 > c) switch (a) { + case 1: + return 12; + case 2: + return 11; + case s: + return 16; + case 8: + return 10; + default: + throw Error("mode:" + a); + } else if (41 > c) switch (a) { + case 1: + return 14; + case 2: + return 13; + case s: + return 16; + case 8: + return 12; + default: + throw Error("mode:" + + a); + } else throw Error("type:" + c); + }, + getLostPoint: function(a) { + for (var c = a.getModuleCount(), d = 0, b = 0; b < c; b++) + for (var e = 0; e < c; e++) { + for (var f = 0, i = a.isDark(b, e), g = -1; 1 >= g; g++) + if (!(0 > b + g || c <= b + g)) + for (var h = -1; 1 >= h; h++) 0 > e + h || c <= e + h || 0 == g && 0 == h || i == a.isDark(b + g, e + h) && f++; + 5 < f && (d += 3 + f - 5) + } + for (b = 0; b < c - 1; b++) + for (e = 0; e < c - 1; e++) + if (f = 0, a.isDark(b, e) && f++, a.isDark(b + 1, e) && f++, a.isDark(b, e + 1) && f++, a.isDark(b + 1, e + 1) && f++, 0 == f || 4 == f) d += 3; + for (b = 0; b < c; b++) + for (e = 0; e < c - 6; e++) a.isDark(b, e) && !a.isDark(b, e + 1) && a.isDark(b, e + + 2) && a.isDark(b, e + 3) && a.isDark(b, e + 4) && !a.isDark(b, e + 5) && a.isDark(b, e + 6) && (d += 40); + for (e = 0; e < c; e++) + for (b = 0; b < c - 6; b++) a.isDark(b, e) && !a.isDark(b + 1, e) && a.isDark(b + 2, e) && a.isDark(b + 3, e) && a.isDark(b + 4, e) && !a.isDark(b + 5, e) && a.isDark(b + 6, e) && (d += 40); + for (e = f = 0; e < c; e++) + for (b = 0; b < c; b++) a.isDark(b, e) && f++; + a = Math.abs(100 * f / c / c - 50) / 5; + return d + 10 * a + } + }, l = { + glog: function(a) { + if (1 > a) throw Error("glog(" + a + ")"); + return l.LOG_TABLE[a] + }, + gexp: function(a) { + for (; 0 > a;) a += 255; + for (; 256 <= a;) a -= 255; + return l.EXP_TABLE[a] + }, + EXP_TABLE: Array(256), + LOG_TABLE: Array(256) + }, m = 0; 8 > m; m++) l.EXP_TABLE[m] = 1 << m; + for (m = 8; 256 > m; m++) l.EXP_TABLE[m] = l.EXP_TABLE[m - 4] ^ l.EXP_TABLE[m - 5] ^ l.EXP_TABLE[m - 6] ^ l.EXP_TABLE[m - 8]; + for (m = 0; 255 > m; m++) l.LOG_TABLE[l.EXP_TABLE[m]] = m; + q.prototype = { + get: function(a) { + return this.num[a] + }, + getLength: function() { + return this.num.length + }, + multiply: function(a) { + for (var c = Array(this.getLength() + a.getLength() - 1), d = 0; d < this.getLength(); d++) + for (var b = 0; b < a.getLength(); b++) c[d + b] ^= l.gexp(l.glog(this.get(d)) + l.glog(a.get(b))); + return new q(c, 0) + }, + mod: function(a) { + if (0 > + this.getLength() - a.getLength()) return this; + for (var c = l.glog(this.get(0)) - l.glog(a.get(0)), d = Array(this.getLength()), b = 0; b < this.getLength(); b++) d[b] = this.get(b); + for (b = 0; b < a.getLength(); b++) d[b] ^= l.gexp(l.glog(a.get(b)) + c); + return (new q(d, 0)).mod(a) + } + }; + p.RS_BLOCK_TABLE = [ + [1, 26, 19], + [1, 26, 16], + [1, 26, 13], + [1, 26, 9], + [1, 44, 34], + [1, 44, 28], + [1, 44, 22], + [1, 44, 16], + [1, 70, 55], + [1, 70, 44], + [2, 35, 17], + [2, 35, 13], + [1, 100, 80], + [2, 50, 32], + [2, 50, 24], + [4, 25, 9], + [1, 134, 108], + [2, 67, 43], + [2, 33, 15, 2, 34, 16], + [2, 33, 11, 2, 34, 12], + [2, 86, 68], + [4, 43, 27], + [4, 43, 19], + [4, 43, 15], + [2, 98, 78], + [4, 49, 31], + [2, 32, 14, 4, 33, 15], + [4, 39, 13, 1, 40, 14], + [2, 121, 97], + [2, 60, 38, 2, 61, 39], + [4, 40, 18, 2, 41, 19], + [4, 40, 14, 2, 41, 15], + [2, 146, 116], + [3, 58, 36, 2, 59, 37], + [4, 36, 16, 4, 37, 17], + [4, 36, 12, 4, 37, 13], + [2, 86, 68, 2, 87, 69], + [4, 69, 43, 1, 70, 44], + [6, 43, 19, 2, 44, 20], + [6, 43, 15, 2, 44, 16], + [4, 101, 81], + [1, 80, 50, 4, 81, 51], + [4, 50, 22, 4, 51, 23], + [3, 36, 12, 8, 37, 13], + [2, 116, 92, 2, 117, 93], + [6, 58, 36, 2, 59, 37], + [4, 46, 20, 6, 47, 21], + [7, 42, 14, 4, 43, 15], + [4, 133, 107], + [8, 59, 37, 1, 60, 38], + [8, 44, 20, 4, 45, 21], + [12, 33, 11, 4, 34, 12], + [3, 145, 115, 1, 146, + 116 + ], + [4, 64, 40, 5, 65, 41], + [11, 36, 16, 5, 37, 17], + [11, 36, 12, 5, 37, 13], + [5, 109, 87, 1, 110, 88], + [5, 65, 41, 5, 66, 42], + [5, 54, 24, 7, 55, 25], + [11, 36, 12], + [5, 122, 98, 1, 123, 99], + [7, 73, 45, 3, 74, 46], + [15, 43, 19, 2, 44, 20], + [3, 45, 15, 13, 46, 16], + [1, 135, 107, 5, 136, 108], + [10, 74, 46, 1, 75, 47], + [1, 50, 22, 15, 51, 23], + [2, 42, 14, 17, 43, 15], + [5, 150, 120, 1, 151, 121], + [9, 69, 43, 4, 70, 44], + [17, 50, 22, 1, 51, 23], + [2, 42, 14, 19, 43, 15], + [3, 141, 113, 4, 142, 114], + [3, 70, 44, 11, 71, 45], + [17, 47, 21, 4, 48, 22], + [9, 39, 13, 16, 40, 14], + [3, 135, 107, 5, 136, 108], + [3, 67, 41, 13, 68, 42], + [15, 54, 24, 5, 55, 25], + [15, + 43, 15, 10, 44, 16 + ], + [4, 144, 116, 4, 145, 117], + [17, 68, 42], + [17, 50, 22, 6, 51, 23], + [19, 46, 16, 6, 47, 17], + [2, 139, 111, 7, 140, 112], + [17, 74, 46], + [7, 54, 24, 16, 55, 25], + [34, 37, 13], + [4, 151, 121, 5, 152, 122], + [4, 75, 47, 14, 76, 48], + [11, 54, 24, 14, 55, 25], + [16, 45, 15, 14, 46, 16], + [6, 147, 117, 4, 148, 118], + [6, 73, 45, 14, 74, 46], + [11, 54, 24, 16, 55, 25], + [30, 46, 16, 2, 47, 17], + [8, 132, 106, 4, 133, 107], + [8, 75, 47, 13, 76, 48], + [7, 54, 24, 22, 55, 25], + [22, 45, 15, 13, 46, 16], + [10, 142, 114, 2, 143, 115], + [19, 74, 46, 4, 75, 47], + [28, 50, 22, 6, 51, 23], + [33, 46, 16, 4, 47, 17], + [8, 152, 122, 4, 153, 123], + [22, 73, 45, + 3, 74, 46 + ], + [8, 53, 23, 26, 54, 24], + [12, 45, 15, 28, 46, 16], + [3, 147, 117, 10, 148, 118], + [3, 73, 45, 23, 74, 46], + [4, 54, 24, 31, 55, 25], + [11, 45, 15, 31, 46, 16], + [7, 146, 116, 7, 147, 117], + [21, 73, 45, 7, 74, 46], + [1, 53, 23, 37, 54, 24], + [19, 45, 15, 26, 46, 16], + [5, 145, 115, 10, 146, 116], + [19, 75, 47, 10, 76, 48], + [15, 54, 24, 25, 55, 25], + [23, 45, 15, 25, 46, 16], + [13, 145, 115, 3, 146, 116], + [2, 74, 46, 29, 75, 47], + [42, 54, 24, 1, 55, 25], + [23, 45, 15, 28, 46, 16], + [17, 145, 115], + [10, 74, 46, 23, 75, 47], + [10, 54, 24, 35, 55, 25], + [19, 45, 15, 35, 46, 16], + [17, 145, 115, 1, 146, 116], + [14, 74, 46, 21, 75, 47], + [29, 54, 24, 19, + 55, 25 + ], + [11, 45, 15, 46, 46, 16], + [13, 145, 115, 6, 146, 116], + [14, 74, 46, 23, 75, 47], + [44, 54, 24, 7, 55, 25], + [59, 46, 16, 1, 47, 17], + [12, 151, 121, 7, 152, 122], + [12, 75, 47, 26, 76, 48], + [39, 54, 24, 14, 55, 25], + [22, 45, 15, 41, 46, 16], + [6, 151, 121, 14, 152, 122], + [6, 75, 47, 34, 76, 48], + [46, 54, 24, 10, 55, 25], + [2, 45, 15, 64, 46, 16], + [17, 152, 122, 4, 153, 123], + [29, 74, 46, 14, 75, 47], + [49, 54, 24, 10, 55, 25], + [24, 45, 15, 46, 46, 16], + [4, 152, 122, 18, 153, 123], + [13, 74, 46, 32, 75, 47], + [48, 54, 24, 14, 55, 25], + [42, 45, 15, 32, 46, 16], + [20, 147, 117, 4, 148, 118], + [40, 75, 47, 7, 76, 48], + [43, 54, 24, 22, 55, 25], + [10, + 45, 15, 67, 46, 16 + ], + [19, 148, 118, 6, 149, 119], + [18, 75, 47, 31, 76, 48], + [34, 54, 24, 34, 55, 25], + [20, 45, 15, 61, 46, 16] + ]; + p.getRSBlocks = function(a, c) { + var d = p.getRsBlockTable(a, c); + if (void 0 == d) throw Error("bad rs block @ typeNumber:" + a + "/errorCorrectLevel:" + c); + for (var b = d.length / 3, e = [], f = 0; f < b; f++) + for (var h = d[3 * f + 0], g = d[3 * f + 1], j = d[3 * f + 2], l = 0; l < h; l++) e.push(new p(g, j)); + return e + }; + p.getRsBlockTable = function(a, c) { + switch (c) { + case 1: + return p.RS_BLOCK_TABLE[4 * (a - 1) + 0]; + case 0: + return p.RS_BLOCK_TABLE[4 * (a - 1) + 1]; + case 3: + return p.RS_BLOCK_TABLE[4 * + (a - 1) + 2]; + case 2: + return p.RS_BLOCK_TABLE[4 * (a - 1) + 3] + } + }; + t.prototype = { + get: function(a) { + return 1 == (this.buffer[Math.floor(a / 8)] >>> 7 - a % 8 & 1) + }, + put: function(a, c) { + for (var d = 0; d < c; d++) this.putBit(1 == (a >>> c - d - 1 & 1)) + }, + getLengthInBits: function() { + return this.length + }, + putBit: function(a) { + var c = Math.floor(this.length / 8); + this.buffer.length <= c && this.buffer.push(0); + a && (this.buffer[c] |= 128 >>> this.length % 8); + this.length++ + } + }; + "string" === typeof h && (h = { + text: h + }); + h = r.extend({}, { + render: "canvas", + width: 256, + height: 256, + typeNumber: -1, + correctLevel: 2, + background: "#ffffff", + foreground: "#000000" + }, h); + return this.each(function() { + var a; + if ("canvas" == h.render) { + a = new o(h.typeNumber, h.correctLevel); + a.addData(h.text); + a.make(); + var c = document.createElement("canvas"); + c.width = h.width; + c.height = h.height; + for (var d = c.getContext("2d"), b = h.width / a.getModuleCount(), e = h.height / a.getModuleCount(), f = 0; f < a.getModuleCount(); f++) + for (var i = 0; i < a.getModuleCount(); i++) { + d.fillStyle = a.isDark(f, i) ? h.foreground : h.background; + var g = Math.ceil((i + 1) * b) - Math.floor(i * b), + j = Math.ceil((f + 1) * b) - Math.floor(f * b); + d.fillRect(Math.round(i * b), Math.round(f * e), g, j) + } + } else { + a = new o(h.typeNumber, h.correctLevel); + a.addData(h.text); + a.make(); + c = r("<table></table>").css("width", h.width + "px").css("height", h.height + "px").css("border", "0px").css("border-collapse", "collapse").css("background-color", h.background); + d = h.width / a.getModuleCount(); + b = h.height / a.getModuleCount(); + for (e = 0; e < a.getModuleCount(); e++) { + f = r("<tr></tr>").css("height", b + "px").appendTo(c); + for (i = 0; i < a.getModuleCount(); i++) r("<td></td>").css("width", + d + "px").css("background-color", a.isDark(e, i) ? h.foreground : h.background).appendTo(f) + } + } + a = c; + jQuery(a).appendTo(this) + }) + } +})(jQuery); +/* jscs: enable */ +/* jshint ignore:end */ +}); +define("js/about/entry", ["jquery","jquery.placeholder","handlebars","source-map"], function(require, exports, module){ +/** + * 逛打包入口 + * @author: yyqing<yanqing.yang@yoho.cn> + * @date: 2016/4/14 + */ - if ($input.val() === '') { - $input.addClass('placeholder'); - } - }); - } +require("js/about/settled"); + +}); +define("js/about/settled", ["jquery","jquery.placeholder","handlebars","source-map"], function(require, exports, module){ +/** + * 商家入驻 + * @author: xuqi<qi.xu@yoho> + * @date: 2016/3/24 + */ + +var $ = require("jquery"); + +var reg = require("js/passport/mail-phone-regx"); + +require("jquery.placeholder"); +require("plugin/jquery.qupload"); + +//入口页 +(function() { + var $mask, + $dialog; + + if ($('.settled-page').length === 0) { + return; + } + + $mask = $('#mask'); + $dialog = $('#notice-container'); + + function showNotice() { + var wh = $(window).height(); + + $mask.removeClass('hide'); + $dialog.css({ + 'max-height': wh - 60 + }).removeClass('hide'); + } + + function hideNotice() { + $mask.addClass('hide'); + $dialog.addClass('hide'); + } + + $('#fake-link').click(showNotice); + + $('#fake-close').click(hideNotice); + $('#mask').click(hideNotice); +}()); + +//申请页 +(function() { + var $otherBr, + $otherNp, + $otherRp, + $categoryUl, + $shopListTr, + $shops, + $panel; + + var $postcode, + $email, + $phoneNum, + $upKey, + $styleCount; + + var categoryHtml = $('#category-tpl').html(); + + var Dialog = require("js/common/dialog").Dialog; + var successDialog, + SWFUpload = window.SWFUpload, + upKey; + + if ($('.settled-apply-page').length < 0) { + return; + } + + $('[placeholder]').placeholder(); + + $otherBr = $('#other-brand-relation'); + $otherNp = $('#other-new-period'); + $otherRp = $('#other-replenishment-period'); + $categoryUl = $('#category-list'); + $shopListTr = $('#shop-list'); + $shops = $('#shops'); + $panel = $('#mask, #submit-success'); + + $postcode = $('#postcode'); + $email = $('#email'); + $phoneNum = $('#phone-number'); + $upKey = $('#upload-key'); + $styleCount = $('#style-count'); + upKey = $upKey.val(); + $upKey.remove(); + + function initUpload(arr) { + $.each(arr, function(k, v) { + $('#' + v.dom).qupload({ + uploadKey: upKey, + button_image_url: '', + button_text: '<span class="btn_upload_text">上传</span>', + button_text_style: + '.btn_upload_text{color:#000;margin-left:30px;' + + 'line-height: 2em;font-size:14px;}', + button_text_left_padding: 32, + button_text_top_padding: 8, + button_width: 160, + button_height: 35, + button_action: SWFUpload.BUTTON_ACTION.SELECT_FILE,//单选 + file_size_limit: '10240', + file_types: v.type, + uploadSuccessed: function(serverData) { + var data = JSON.parse(serverData); + + if (data.code !== 12) { + alert(data.message); + return false; + } + v.callback(data.data.hit.Filedata.return_file_path); + } + }); + }); + } + + function validate() { + var pass = true, + postcodeReg = /[0-9]\d{5}(?!\d)/, + emailReg = reg.emailRegx, + phoneReg = reg.phoneRegx['+86'], + styleCountReg = /^(0|[1-9][0-9]*)$/; + + $('.va, .category-item select, .for-other, .category-item').removeClass('error'); + + $('.va-null').each(function() { + if ($(this).val() === '') { + $(this).addClass('error'); + pass = false; + } + }); + + if ($postcode.val() === '' || !postcodeReg.test($postcode.val())) { + $postcode.addClass('error'); + pass = false; + } + + if ($email.val() === '' || !emailReg.test($email.val())) { + $email.addClass('error'); + pass = false; + } + + if ($phoneNum.val() === '' || !(phoneReg.test($phoneNum.val()))) { + $phoneNum.addClass('error'); + pass = false; + } + + if ($styleCount.val() === '' || !(styleCountReg.test($styleCount.val()))) { + $styleCount.addClass('error'); + pass = false; + } + + $('.category-item').each(function() { + if ($(this).get(0).selectedIndex === 0) { + $(this).addClass('error'); + pass = false; + } + }); + + if ($('input[name="seller-role"]:checked').index() === 3 && + $otherBr.val() === '') { + pass = false; + $otherBr.addClass('error'); + } + + if ($('input[name="new_cycle"]:checked').index() === 5 && + $otherNp.val() === '') { + pass = false; + $otherNp.addClass('error'); + } + + if ($('input[name="supply_cycle"]:checked').index() === 5 && + $otherRp.val() === '') { + pass = false; + $otherRp.addClass('error'); + } + + return pass; + } + + function addCategoryUI() { + $categoryUl.closest('tr').removeClass('hide'); + $categoryUl.append('<li>' + categoryHtml + '</li>'); + } + + //获取二级分类的方法 + function getCategoryTwo() { + var id = $(this).val(); + var $categoryTwo = $(this).parent().find('.category-two'); + var html = '<option>选择二级分类</option>'; + + if (id === '') { + $categoryTwo.html(html); + return; + } + + $.ajax({ + url: '/shop/settled/getTwoCategory', + type: 'GET', + data: { + id: id + } + }).then(function(data) { + var res = []; + var key; + + if (data.code === 200) { + res = data.data; + for (key = 0; key < res.length; key++) { + html += '<option value="' + res[key].id + '" >' + res[key].name + '</option>'; + } + } + $categoryTwo.html(html); + }); + } + + // 初始化上传插件 + initUpload([ + { + dom: 'upload-brand-material', + type: '*.ppt;*.pdf;*.zip;*.rar', + callback: function(data) { + $('#brand-material').val(data); + $('.brand-tip').html('上传成功'); + alert('上传成功!'); + } + }, + { + dom: 'upload-goods-material', + type: '*.xls;*.xlsx;*.zip;*.rar', + callback: function(data) { + $('#goods-material').val(data); + $('.goods-tip').html('上传成功'); + alert('上传成功!'); + } + } + ]); + + // 提交成功 + if (location.search.indexOf('state=1') > -1) { + successDialog = new Dialog({ + className: 'settled-success', + closeIcon: false, + content: '<h1 class="main-title">恭喜您已提交成功</h1><h2 class="sub-title">我们将尽快与您联系</h2>', + btns: [ + { + id: 'apply-success-ok', + btnClass: ['apply-success-ok'], + name: '确认', + cb: function() { + location.href = '/shop/settled/index'; + } + } + ] + }); + successDialog.show(); + return; + } + + $('input[name="seller_role"]').change(function() { + if ($(this).index() === 3) { + $otherBr.removeClass('hide'); + } else { + $otherBr.addClass('hide'); + } + }); + + $('input[name="new-cycle"]').change(function() { + if ($(this).index() === 5) { + $otherNp.removeClass('hide'); + } else { + $otherNp.addClass('hide'); + } + }); + + $('input[name="supply-cycle"]').change(function() { + if ($(this).index() === 5) { + $otherRp.removeClass('hide'); + } else { + $otherRp.addClass('hide'); + } + }); + + $('input[name="have-store"]').change(function() { + if ($(this).index() === 1) { + $shopListTr.addClass('hide'); + } else { + $shopListTr.removeClass('hide'); + } + }); + + $('.form-container').on('change', '.category-one', getCategoryTwo); + + $('#category-add').click(addCategoryUI); + + $shops.delegate('.shop-add', 'click', function() { + $shops.append( + '<li>' + + '<input class="shop-addres" name="store-address[]" type="text" placeholder="输入店铺地址">' + + '<span>月均销售:</span>' + + '<input class="shop-sales-volume" type="text" name="store-sales-volume[]" placeholder="输入价格">' + + '<span>元</span>' + + '</li>' + ); + }); + + $('#apply-post').click(function() { + var scrollTo; + + if (validate()) { + $panel.removeClass('hide'); + $('form').submit(); + } else { + $('.error').first().focus(); + scrollTo = $('.error').first().offset().top; + $(window).scrollTop(scrollTo - 10); + } + }); + + if (navigator.userAgent.indexOf('MSIE') >= 0) { + $('[placeholder]').focus(function() { + var $input = $(this); + + $input.removeClass('placeholder'); + }).blur(function() { + var $input = $(this); + + if ($input.val() === '') { + $input.addClass('placeholder'); + } + }); + } }()); }); define("js/coupon/entry", ["jquery","lazyload","handlebars","source-map"], function(require, exports, module){ diff --git a/web-static/dist/yohobuy/4.6.2/index.css b/web-static/dist/yohobuy/4.6.2/index.css index b30ebc4..f7e1f43 100644 --- a/web-static/dist/yohobuy/4.6.2/index.css +++ b/web-static/dist/yohobuy/4.6.2/index.css @@ -1 +1 @@ -@charset "utf-8";a,abbr,acronym,address,applet,article,aside,audio,b,big,blockquote,body,canvas,caption,center,cite,code,dd,del,details,dfn,div,dl,dt,em,embed,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,html,i,iframe,img,ins,kbd,label,legend,li,mark,menu,nav,object,ol,output,p,pre,q,ruby,s,samp,section,small,span,strike,strong,sub,summary,sup,table,tbody,td,tfoot,th,thead,time,tr,tt,u,ul,var,video{margin:0;padding:0;border:0;font:inherit;font-size:100%;vertical-align:baseline}html{line-height:1}ol,ul{list-style:none}table{border-collapse:collapse;border-spacing:0}caption,td,th{text-align:left;font-weight:400;vertical-align:middle}blockquote,q{quotes:none}blockquote:after,blockquote:before,q:after,q:before{content:"";content:none}a img{border:none}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block}.clearfix:after{content:'';display:table;clear:both}body{font-family:arial,Microsoft YaHei}@font-face{font-family:iconfont;src:url(../assets/font/iconfont.eot?v155e77e2131);src:url(../assets/font/iconfont.eot?v155e77e2131#iefix) format('embedded-opentype'),url(../assets/font/iconfont.woff?v155e77e2b74) format('woff'),url(../assets/font/iconfont.ttf?v155e77e2999) format('truetype'),url(../assets/font/iconfont.svg?v155e77e2145#iconfont) format('svg')}.iconfont{font-family:iconfont!important;font-size:16px;font-style:normal;text-decoration:none;-webkit-font-smoothing:antialiased;-webkit-text-stroke-width:.2px;-moz-osx-font-smoothing:grayscale}.center-content{width:1150px;margin-left:auto;margin-right:auto}.min-screen .center-content{width:990px}.left,.pull-left{float:left}.pull-right,.right{float:right}.center{text-align:center}.hide{display:none!important}a:focus,input,textarea{outline:none}a{text-decoration:none;color:#000}.body-mask{position:absolute;z-index:9;background:#000;opacity:.2;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=20)";top:0;left:0}.yoho-notice{width:100%;height:100px;font-size:12px;background-color:#555;font-family:微软雅黑}.yoho-notice .notice-title{height:100px;line-height:100px;font-size:27px;font-weight:700;color:#fff;width:245px;position:absolute}.yoho-notice .notice-content{padding:16px 0 0 300px;color:#e8e8e8}.yoho-notice .notice-content .tips{margin-bottom:10px}.yoho-notice .notice-content .detail{line-height:16px}.yoho-header .header-topwrapper{width:100%;background-color:#f4f4f4;min-width:1150px}.yoho-header .header-top{width:1150px;height:32px;line-height:32px;margin:0 auto;position:relative}.yoho-header #loginBox{display:none}.yoho-header .leftpart{position:relative;padding-left:5px;padding-right:5px}.yoho-header .leftpart:hover{background-color:#dcdcdc}.yoho-header .leftpart:hover .yohoproducts-list{display:block!important}.yoho-header .leftpart .acttags{background-color:#dcdcdc}.yoho-header .yohoproducts-list{position:absolute;display:none;width:170px;left:0;top:32px;background-color:#f4f4f4;padding-top:30px;padding-bottom:10px;padding-left:20px;z-index:19}.yoho-header .yohoproducts-item{height:14px;line-height:14px;margin-bottom:20px}.yoho-header .yohoproducts-item a{color:#9196a0;font-size:14px}.yoho-header .yohoproducts-item:hover a{color:#000}.yoho-header .rightpart{position:absolute;right:0;top:0}.yoho-header .rightpart .acttags{background-color:#dcdcdc}.yoho-header .rightpart .tag-seprate{border-color:#dcdcdc}.yoho-header .hi,.yoho-header .loginbar,.yoho-header .registbar{display:inline-block;float:left}.yoho-header .hi{color:#8e8e8e;font-size:12px}.yoho-header #loginBox a,.yoho-header #loginBox span,.yoho-header .header-yoho,.yoho-header .login-out,.yoho-header .loginbar,.yoho-header .registbar{color:#000;font-size:12px}.yoho-header .registbar{margin-left:7px}.yoho-header .tag-list-wrapper{margin-left:13px;float:left}.yoho-header .tag-list{margin-left:13px;height:34px}.yoho-header .tag-seprate{margin-top:11px;width:0;height:14px;display:inline-block;float:left;border-left:1px solid #dcdcdc}.yoho-header .tag-item{display:inline-block;float:left;line-height:32px;box-sizing:border-box;margin-left:-1px}.yoho-header .tag-item a{color:#8e8e8e;font-size:12px;display:inline-block}.yoho-header .tag-item span{display:inline-block}.yoho-header .myyoho{padding-right:10px;position:relative}.yoho-header .myyoho .tag-seprate{margin-right:12px}.yoho-header .myyoho-info{position:absolute;display:none;top:32px;left:-110px;width:300px;background-color:#f8f8f8;z-index:18}.yoho-header .myyoho-photo{overflow:hidden}.yoho-header .myyoho-photo img{display:block;margin:0 auto;width:63px;height:63px;border-radius:50%}.yoho-header .myyoho-info-header{margin:17px auto 0;width:257px;border-bottom:1px solid #dcdcdc;text-align:center;padding-bottom:15px}.yoho-header .user-email{margin-top:14px;color:#000;height:25px;line-height:20px;font-size:18px}.yoho-header .user-level{color:#000;height:20px;line-height:20px;font-size:18px}.yoho-header .user-level .leveldetail{color:#8cc4f9}.yoho-header .levelinfo{width:100%;padding-top:10px;clear:both;height:15px}.yoho-header .levelwrapper{width:150px;height:14px;background-color:#e2e2e2;margin-left:40px;position:relative}.yoho-header .levelspan{position:absolute;left:2px;height:14px;top:0;line-height:16px}.yoho-header .levelwrapper .integrate{height:14px;line-height:15px;background-color:#ceae64;text-align:left;padding-left:5px}.yoho-header .cardcate{font-size:14px;line-height:14px;margin-left:5px}.yoho-header .myyoho-info-content{margin:20px auto 0;padding-left:35px;padding-right:29px;border-bottom:1px solid #dcdcdc}.yoho-header .myyoho-info-content .item{height:12px;line-height:12px;margin-bottom:16px}.yoho-header .myyoho-info-content .item a{font-size:14px;color:#000}.yoho-header .myyoho-info-footer{height:51px;line-height:51px;text-align:center}.yoho-header .myyoho-info-footer a{color:#000;font-size:14px}.yoho-header .myorder{padding-right:10px}.yoho-header .myorder .tag-seprate{margin-right:11px}.yoho-header .mycollect{padding-right:11px}.yoho-header .mycollect .tag-seprate{margin-right:11px}.yoho-header .message{padding-right:10px}.yoho-header .message .tag-seprate{margin-right:11px}.yoho-header .phone{padding-right:8px;position:relative}.yoho-header .phone .tag-seprate{margin-right:10px}.yoho-header .qr{position:absolute;display:none;top:32px;left:-100px;width:231px;height:290px;background-color:#f8f8f8;z-index:19}.yoho-header .qr-img{position:relative;background-image:url(../assets/img/header/qr.png?v155e77e3cfa);background-repeat:no-repeat;background-size:100% 100%;margin:32px auto 15px;width:143px;height:147px}.yoho-header .qr-words{height:25px;line-height:25px;font-size:16px;text-align:center}.yoho-header .qr-more{margin-top:6px;line-height:25px;font-size:14px;text-align:center}.yoho-header .onlineserver .tag-seprate{margin-right:10px}.yoho-header .header-navwrapper{width:100%;height:130px;position:relative;min-width:1150px}.yoho-header .header-navcontent{width:1150px;height:130px;margin:0 auto}.yoho-header .first-nav-list{margin-top:45px}.yoho-header .first-nav-item{float:left;padding:8px 23px 0}.yoho-header .first-nav-item .menu-ico{width:84px;height:32px;display:block}.yoho-header .all a,.yoho-header .all span,.yoho-header .boys a,.yoho-header .boys span,.yoho-header .girls a,.yoho-header .girls span,.yoho-header .kids a,.yoho-header .kids span,.yoho-header .lifestyle a,.yoho-header .lifestyle span{color:#fff!important}.yoho-header .all{background-color:#5e4b3c}.yoho-header .all .sub-nav-wrapper{background-color:#000;display:block!important}.yoho-header .all .third-nav-wrapper{border-top:2px solid #000}.yoho-header .searchcateboys .searchinput{border:1px solid #3a3a3a}.yoho-header .searchcateboys .icon-search{background-color:#3a3a3a!important}.yoho-header .searchcategirls .searchinput{border:1px solid #ff88ae}.yoho-header .searchcategirls .icon-search{background-color:#ff88ae!important}.yoho-header .searchcatewoman .searchinput{border:1px solid #ff88ae}.yoho-header .searchcatewoman .icon-search{background-color:#ff88ae!important}.yoho-header .searchcatekids .searchinput{border:1px solid #7bd3f9!important}.yoho-header .searchcatekids .icon-search{background-color:#7bd3f9!important}.yoho-header .gobuyboys{background-position:0 0}.yoho-header .gobuyboys,.yoho-header .gobuygirls{background-image:url(../assets/img/sprite.header.png?v155e77e4826)}.yoho-header .gobuygirls{background-position:-56px 0}.yoho-header .gobuykids{background-position:-28px 0}.yoho-header .gobuykids,.yoho-header .gobuylifestyle{background-image:url(../assets/img/sprite.header.png?v155e77e4826)}.yoho-header .gobuylifestyle{background-position:0 -28px}.yoho-header .gobuyoutlets{background-image:url(../assets/img/sprite.header.png?v155e77e4826);background-position:-28px -28px}.yoho-header .searchcatelifestyle .searchinput{border:1px solid #5e4b3c!important}.yoho-header .searchcatelifestyle .icon-search{background-color:#5e4b3c!important}.yoho-header .boys{background-color:#3a3a3a}.yoho-header .boys .sub-nav-wrapper{background-color:#3a3a3a;display:block!important}.yoho-header .boys .third-nav-wrapper{border-top:2px solid #3a3a3a}.yoho-header .girls{background-color:#ff88ae}.yoho-header .girls .sub-nav-wrapper{background-color:#ff88ae;display:block!important}.yoho-header .girls .third-nav-wrapper{border-top:2px solid #ff88ae}.yoho-header .kids{background-color:#7bd3f9}.yoho-header .kids .sub-nav-wrapper{background-color:#7bd3f9;display:block!important}.yoho-header .kids .third-nav-wrapper{border-top:2px solid #7bd3f9}.yoho-header .lifestyle{background-color:#5e4b3c}.yoho-header .lifestyle .sub-nav-wrapper{background-color:#5e4b3c;display:block!important}.yoho-header .lifestyle .third-nav-wrapper{border-top:2px solid #5e4b3c}.yoho-header .outlets>.sub-nav-wrapper{display:block!important}.yoho-header .name-cn{text-align:center;line-height:16px!important}.yoho-header .name-cn a{color:#000;font-size:16px!important}.yoho-header .name-en{text-align:center;line-height:14px!important;margin-bottom:6px}.yoho-header .name-en a{color:#8e8e8e;font-size:12px;line-height:14px!important;font-family:arial!important}.yoho-header .sub-nav-wrapper{display:none;height:40px;left:0;width:100%;position:absolute;z-index:11}.yoho-header .sub-nav-list{width:1150px;height:40px;margin:0 auto;overflow:hidden}.yoho-header .sub-nav-item{float:left;padding:12px 46px 12px 0;box-sizing:border-box;margin-right:38px}.yoho-header .sub-nav-item a{position:relative;color:#fff;font-size:14px;line-height:14px;display:inline-block}.yoho-header .sub-nav-item:last-child{margin-right:0!important}.yoho-header .newlogo{display:block;width:26px;height:12px;background-image:url(../assets/img/header/new.png?v155e77e3cf5);background-repeat:no-repeat;position:absolute;right:-29px;top:-6px}.yoho-header .actsecondnav,.yoho-header .sub-nav-item:hover>a{padding-bottom:3px;border-bottom:2px solid #fff}.yoho-header .sub-nav-item:hover .third-nav-wrapper{display:block}.yoho-header .third-nav-wrapper{box-sizing:border-box;height:410px;position:absolute;left:0;top:38px;width:100%;min-width:1150px;display:none;z-index:17;padding-top:30px;padding-bottom:30px;background-color:#f8f8f8}.yoho-header .third-nav{width:1150px;height:100%;margin:0 auto}.yoho-header .category{width:880px;float:left;overflow:hidden}.yoho-header .category .thirdnavlist{box-sizing:border-box;width:220px;height:240px;float:left;padding-left:20px;border-right:1px solid #dcdcdc;padding-right:20px}.yoho-header .category-title{color:#000;font-size:16px;width:178px;padding-bottom:12px;border-bottom:1px solid #000;line-height:16px;margin-bottom:20px}.yoho-header .category-title a{color:#000!important}.yoho-header .category-list{margin-top:16px;margin-bottom:30px}.yoho-header .category-item{line-height:28px}.yoho-header .category-list a{color:#a1a1a1!important;font-size:14px}.yoho-header .category-list .category-item .hot{color:#e01!important;font-size:14px}.yoho-header .category-item-act a{color:#000!important}.yoho-header .showdetail{box-sizing:border-box;padding-left:19px;padding-right:19px;width:337px;height:250px;float:right}.yoho-header [class*=" icon-"],.yoho-header [class^=icon-]{display:inline-block;vertical-align:middle;background-repeat:none}.yoho-header .icon-hamburger{background-position:-56px -40px;width:13px;height:11px}.yoho-header .icon-hamburger,.yoho-header .icon-headphones{background-image:url(../assets/img/sprite.header.png?v155e77e4826)}.yoho-header .icon-headphones{background-position:-84px 0;width:15px;height:10px;margin-top:2px}.yoho-header .icon-heart{background-position:-41px -56px;width:12px;height:11px}.yoho-header .icon-heart,.yoho-header .icon-mail{background-image:url(../assets/img/sprite.header.png?v155e77e4826);margin-top:-2px}.yoho-header .icon-mail{background-position:-56px -28px;width:16px;height:10px}.yoho-header .icon-iphone{background-position:-84px 0;width:8px}.yoho-header .icon-iphone,.yoho-header .icon-papers{background-image:url(../assets/img/sprite.header.png?v155e77e4826);height:14px;margin-top:-2px}.yoho-header .icon-papers{background-position:-29px -56px;width:10px}.yoho-header .icon-bottomarrow{background-image:url(../assets/img/sprite.header.png?v155e77e4826);background-position:-71px -40px;width:10px;height:5px;margin-top:-2px}.yoho-header .outlets-logo{background:url(../assets/img/header/outlets.png?v155e77e3cf7) no-repeat 50%;width:200px;height:34px;left:42%;margin-top:28px;position:absolute;display:none}.yoho-header .icon-logo{background:url(../assets/img/header/logo.png?v155e77e3cf2) no-repeat 50%;width:182px;height:53px;top:22px;left:44.2%;position:absolute}.yoho-header .icon-logo .main-link{display:block;width:100%;height:100%}.yoho-header .search{position:relative}.yoho-header .searchspan{margin-top:45px;float:left;display:inline-block;overflow:hidden}.yoho-header .searchinput{float:left;width:240px;height:28px;border:1px solid #000;box-sizing:border-box;padding:6px 0 5px 10px;border-right:none}.yoho-header .icon-search{background:url(../assets/img/header/search.png?v155e77e3cfb) no-repeat 50%;width:80px;height:28px;float:left;border:none;margin-top:45px;background-color:#3a3a3a}.yoho-header .search-list{position:absolute;top:73px;left:0;z-index:11;box-sizing:border-box;display:none;background-color:#fff;padding-top:20px;width:100%;max-height:500px;border-left:1px solid #000;border-right:1px solid #000;border-bottom:1px solid #000}.yoho-header .search-item{position:relative;padding:5px;height:25px;line-height:25px;font:12px}.yoho-header .search-item:hover{background-color:#f4f4f4}.yoho-header .searchvalue{position:absolute;left:10px;max-width:192px;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.yoho-header .valuenum{position:absolute;right:10px;font-size:12px}.yoho-header .header-tool{padding-right:23px}.yoho-header .gobuy{margin-top:47px;margin-left:23px;width:26px;height:26px;position:relative;cursor:pointer}.yoho-header .gobuy-wrapper{position:absolute;display:none;top:24px;right:-14px;width:378px;padding-top:6px;z-index:19}.yoho-header .gobuy-empty{position:absolute;width:100%;height:507px;z-index:1;background:#f8f8f8 url(../assets/img/header/empty_car.png?v155e77e3ce9) no-repeat 106px 132px}.yoho-header .gobuy-empty .information{margin-top:300px;width:100%;height:18px;line-height:18px;font-size:18px;text-align:center}.yoho-header .gobuy-loading{position:absolute;width:100%;height:407px;z-index:1;background:#f8f8f8 url(../assets/img/header/loading.gif?v155e77e3cf1) no-repeat center 150px}.yoho-header .gobuy-loading .information{margin-top:180px;width:100%;height:12px;line-height:12px;font-size:12px;text-align:center}.yoho-header .gobuy-notempty{position:absolute;width:100%;z-index:1;background-color:#f8f8f8;overflow:hidden}.yoho-header .goods-list-wrapper{width:100%;max-height:444px;margin-bottom:19px;overflow-y:auto;overflow-x:hidden}.yoho-header .goods-list{margin-top:40px}.yoho-header .goods-item{height:64px;margin-bottom:18px;padding-left:18px}.yoho-header .goods-img{display:inline-block;float:left;width:46px;height:62px;margin-right:13px}.yoho-header .goods-detail{margin-right:16px}.yoho-header .goods-detail .content{width:170px;height:14px;line-height:14px;font-size:14px;margin-bottom:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.yoho-header .goods-detail .content a{color:#666;outline:none;text-decoration:none}.yoho-header .goods-detail .style{height:14px;line-height:14px;font-size:14px;color:#b0b0b0}.yoho-header .goods-price .priceandnum{height:14px;line-height:14px;font-size:14px;margin-bottom:13px;min-width:75px;text-align:right}.yoho-header .goods-price .delete{display:inline-block;float:right;font-size:14px;color:#000}.yoho-header .activity-item{margin-bottom:8px;padding-left:18px}.yoho-header .activity-name{display:inline-block;box-sizing:border-box;border:none;width:60px;height:18px;line-height:18px;background-color:#3a3a3a;color:#fff;font-size:14px;text-align:center;margin-right:13px;vertical-align:top}.yoho-header .activity-content{display:inline-block;line-height:14px;width:250px;color:#3a3a3a;font-size:12px;word-break:break-all}.yoho-header .gobuy-notempty-footer{width:100%;height:61px;text-align:center}.yoho-header .gobuy-notempty-footer h3{box-sizing:border-box;width:349px;margin:0 auto;height:61px;line-height:61px;border-top:1px solid #dcdcdc}.yoho-header .gobuy-notempty-footer a{font-size:18px;color:#444}.yoho-header .ic-infomation{position:absolute;background-image:url(../assets/img/sprite.header.png?v155e77e4826);background-position:0 -56px;width:27px;height:20px;top:-10px;right:-15px;color:#fff;text-align:center;line-height:20px;font-size:12px}.yoho-header .float-left{float:left}.yoho-header .float-right{float:right}.yoho-header .showdetail img{display:block;box-sizing:border-box;width:337px;height:250px}.yoho-header .showdetail .title{display:block;margin-top:40px;width:100%;height:15px;text-align:center;line-height:15px;font-size:14px;color:#000!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.yoho-header .cate_row{float:left;height:352px;box-sizing:border-box}.yoho-header .cate_row li{box-sizing:border-box}.yoho-header .cate_row1{width:253px}.yoho-header .cate_row2{width:278px;border-left:1px solid #ccc;padding-left:50px}.yoho-header .cate_row3{width:270px;border-left:1px solid #ccc;padding-left:50px}.yoho-header .third-nav .cattitle{width:180px;padding-bottom:10px;border-bottom:1px solid #000;line-height:18px;margin-bottom:20px}.yoho-header .third-nav .cattitle h3 a{color:#000!important;font-size:14px}.yoho-header .third-nav .catdetail{line-height:14px;height:14px;margin-bottom:24px;min-width:200px}.yoho-header .third-nav .catdetail a{color:#a1a1a1!important;font-size:14px}.yoho-header .third-nav .catdetail .hot{color:#e01!important}.yoho-header .thirdcatelink:hover{text-decoration:underline!important}.yoho-header .hovercontent{display:none}.yoho-header.outlets .header-navwrapper{background-color:#3a3a3a}.yoho-header.outlets .header-navwrapper .sub-nav-wrapper{background-color:#e6e6e6;margin-top:37px}.yoho-header.outlets .header-navwrapper .third-nav-wrapper{border-top:0}.yoho-header.outlets .outlets-logo{display:block}.yoho-header.outlets .icon-logo{display:none}.yoho-header.outlets .first-nav-item.cure{background:none}.yoho-header.outlets .first-nav-item>h3,.yoho-header.outlets .header-tool>.search{display:none}.yoho-header.outlets .sub-nav-list{padding-left:15%}.yoho-header.outlets .sub-nav-list .sub-nav-item{width:14%;text-align:center}.yoho-header.outlets .sub-nav-list .sub-nav-item>a{color:#222!important}.yoho-header.outlets .sub-nav-list .sub-nav-item:hover a{border-color:#555}.yoho-header.outlets .sub-nav-list .third-nav{text-align:left}.simple-header{height:66px;margin:0 0 20px;border-bottom:2px solid #222}.simple-header .header-inner{width:990px;height:100%;margin:0 auto}.simple-header .logo{float:left;line-height:66px;font-size:0}.simple-header .logo img{vertical-align:middle}.simple-header .header-tool{float:right;line-height:66px;font-size:0}.simple-header .header-tool li{display:inline-block;padding:0 10px;line-height:28px}.simple-header .header-tool li,.simple-header .header-tool li a,.simple-header .header-tool li span{font-size:12px;vertical-align:middle}.simple-header .header-tool li .tell-icon{font-size:12px}.simple-header .header-tool li .tell-icon~span{font-weight:700}.simple-header .header-tool .login-box a{color:#666}.simple-header .header-tool .tool-options{position:relative;font-size:0;cursor:pointer}.simple-header .header-tool .tool-options .iconfont,.simple-header .header-tool .tool-options span{display:inline-block;font-size:12px;height:28px;line-height:28px;vertical-align:top}.simple-header .header-tool .tool-options .iconfont.up,.simple-header .header-tool .tool-options span.up{display:none}.simple-header .header-tool .tool-options .tool-select{display:none;position:absolute;width:74px;left:0;background:#eaeceb;z-index:6}.simple-header .header-tool .tool-options .tool-select a{display:block;padding:0 0 0 10px;border-top:1px solid #ddd}.simple-header .header-tool .tool-options:hover{background-color:#eaeceb}.simple-header .header-tool .tool-options:hover .iconfont.up{display:inline-block}.simple-header .header-tool .tool-options:hover .iconfont.down{display:none}.min-screen .yoho-header .header-topwrapper{min-width:990px}.min-screen .yoho-header .header-top{width:990px}.min-screen .yoho-header .header-navwrapper{min-width:990px}.min-screen .yoho-header .header-navcontent,.min-screen .yoho-header .header-wrapper{width:990px}.min-screen .yoho-header .icon-logo{left:39.2%}.min-screen .yoho-header .icon-logo .main-link{display:block;width:100%;height:100%}.min-screen .yoho-header .sub-nav-list{width:990px;min-width:990px}.min-screen .yoho-header .sub-nav-item{margin-right:15px}.min-screen .yoho-header .first-nav-item{float:left;padding:10px 14px 0;margin-right:3px}.min-screen .yoho-header .third-nav{width:990px}.min-screen .yoho-header .third-nav-wrapper{min-width:990px}.min-screen .yoho-header .category{width:800px}.min-screen .yoho-header .cate_row1{width:204px}.min-screen .yoho-header .cate_row2{width:244px;border-left:1px solid #ccc;padding-left:39px}.min-screen .yoho-header .cate_row3{width:163px;border-left:1px solid #ccc;padding-left:28px}.min-screen .yoho-header .category .thirdnavlist{width:200px}.min-screen .yoho-header .category-title{width:152px}.min-screen .yoho-header .showdetail{width:190px;padding-right:0}.min-screen .yoho-header .showdetail img{width:174px;height:155px}#cover{position:fixed;z-index:12}#cover,#cover .con{left:0;top:0;width:100%;height:100%}#cover .con{background:rgba(0,0,0,.6)!important;position:absolute;z-index:13;opacity:.5;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)"}#cover .tag_img_warpper{margin:0 auto;width:180px;height:168px}#cover .tag_img_warpper img{width:100%;height:100%}#cover .guide-box{background:#fff;margin:0 auto;height:400px;position:relative;z-index:14}#cover .guide-box .close{top:-15px;text-align:center;right:-15px;color:#fff;line-height:22px;font-size:24px;position:absolute;background:#000;border-radius:50px;border:currentColor;border-image:none;width:28px;height:28px;line-height:25px;display:block}#cover .guide-box li{padding:10px;width:200px;height:400px;float:left;box-sizing:border-box}#cover .guide-box li .go{margin:26px auto 0;width:100%;height:18px;text-align:center;color:#b0b0b0;line-height:18px;font-size:18px;font-style:italic;font-weight:lighter;display:block}#cover .guide-box li.girls{border-left-color:#eee;border-left-width:1px;border-left-style:solid}#cover .guide-box li.girls .goods-num{text-align:center;color:#bbb;line-height:12px;font-size:12px;margin-top:16px}#cover .guide-box li.lifestyle{border-left-color:#eee;border-left-width:1px;border-left-style:solid}#cover .guide-box li.lifestyle .goods-num{text-align:center;color:#bbb;line-height:12px;font-size:12px;margin-top:16px}#cover .guide-box li.kids{border-left-color:#eee;border-left-width:1px;border-left-style:solid}#cover .guide-box li.boys .goods-num,#cover .guide-box li.kids .goods-num{text-align:center;color:#bbb;line-height:12px;font-size:12px;margin-top:16px}#cover .boys .block_cn,#cover .girls .block_cn,#cover .kids .block_cn,#cover .lifestyle .block_cn{text-align:center;line-height:26px;font-size:26px;font-weight:700;margin-top:30px}#cover .boys .block_en,#cover .girls .block_en,#cover .kids .block_en,#cover .lifestyle .block_en{text-align:center;line-height:26px;font-size:26px;font-weight:700;margin-top:19px}#cover .boys .block_cn,#cover .boys .block_en{color:#000}#cover .girls .block_cn,#cover .girls .block_en{color:#ff88ae}#cover .kids .block_cn,#cover .kids .block_en{color:#7ad9f8}#cover .lifestyle .block_cn,#cover .lifestyle .block_en{color:#4f4037!important}#cover .boys .block_line,#cover .girls .block_line,#cover .kids .block_line,#cover .lifestyle .block_line{margin:20px auto 0;width:50px;height:0;border-bottom-color:#ccc;border-bottom-width:1px;border-bottom-style:solid}.yoho-footer{font-size:12px}.yoho-footer *{box-sizing:border-box}.yoho-footer .red{color:#e01}.yoho-footer .rgb6{color:#666}.yoho-footer .rgb9{color:#999}.yoho-footer .rgbf{color:#fff}.yoho-footer .index-foot{background:#eee;padding:20px 0}.yoho-footer .index-foot dd{float:left;width:370px;margin-right:20px;overflow:hidden}.yoho-footer .index-foot dd ul{margin-top:18px;padding-top:18px}.yoho-footer .index-foot dd.last{margin-right:0}.yoho-footer .foot-panel{background:#fff;padding:20px}.yoho-footer .title{position:relative;text-align:center}.yoho-footer .title-line{border-bottom:1px solid #ddd;position:absolute;top:9px;width:100%;left:0}.yoho-footer .text{position:absolute;width:100%;text-align:center;left:0;top:0}.yoho-footer .text span{background:#fff;font-size:18px;line-height:18px;padding:0 10px}.yoho-footer .item-nav{padding-top:20px}.yoho-footer .item-nav span{color:#fff;padding:0 3px;cursor:pointer;font-size:20px}.yoho-footer .item-nav .cur{color:#999}.yoho-footer .vote{line-height:24px}.yoho-footer .vote input{margin:0 5px 0 1px}.yoho-footer .vote .button{height:24px;line-height:24px;width:55px;font-size:12px;margin-top:11px;margin-right:10px;background:#222;color:#fff;display:inline-block;text-align:center;cursor:pointer}.yoho-footer .vote p{height:24px;overflow:hidden}.yoho-footer .vote textarea{width:98%;height:68px;vertical-align:middle;margin:5px 0 0;resize:none}.yoho-footer .vote-item p{float:left;width:50%}.yoho-footer .mobile{margin-right:-10px}.yoho-footer .mobile li{margin-right:10px;float:left}.yoho-footer .mobile img{display:block;width:103px;height:131px}.yoho-footer .index-banner{width:100%;margin-top:20px}.yoho-footer .two-dim{margin-right:-10px;overflow:hidden}.yoho-footer .two-dim li{border:1px solid #ddd;margin-right:10px}.yoho-footer .two-dim li a{display:block}.yoho-footer .two-dim li p{text-align:center;margin-top:13px;margin-bottom:10px;line-height:12px}.yoho-footer .dim-img{display:block;width:87px;height:87px;margin:7px}.yoho-footer .dim-hover{position:absolute}.yoho-footer .dim-hover img{width:38px;height:38px}.yoho-footer .dim-active .dim-img{opacity:1;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)"}.yoho-footer .dim-active .dim-hover{display:none}.yoho-footer .footerbottom{width:100%}.yoho-footer .promise{padding:20px 0 10px;background:#000}.yoho-footer .promise .left{margin-right:60px;line-height:30px;font-size:12px;font-weight:700}.yoho-footer .promise .left .iconfont{display:inline-block;font-weight:400;font-size:22px;vertical-align:middle;margin-right:5px}.yoho-footer .promise .left:first-child .iconfont{font-size:27px}.yoho-footer .subscribe{border:1px solid #262626;width:240px}.yoho-footer .subscribe input{width:180px;height:32px;padding:0 10px;line-height:32px;border:none;margin:0;background:#000}.yoho-footer .subscribe a{display:block;float:right;margin-right:20px;font-size:20px;line-height:28px;opacity:.5;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)"}.yoho-footer .footer-help{background:#000;font-size:12px;overflow:hidden}.yoho-footer .footer-help>div{padding:15px 0;border-top:1px solid #262626}.yoho-footer .footer-help ul{width:110%}.yoho-footer .footer-help p{line-height:24px}.yoho-footer .footer-help p span{color:#fff}.yoho-footer .footer-help p a{color:#666}.yoho-footer .footer-help p a:hover{text-decoration:underline}.yoho-footer .footer-help li{width:180px}.yoho-footer .footer-help .screen{border-top:1px solid #262626;padding:15px 0}.yoho-footer .footer-link{background:#000;padding:10px 0 30px;font-size:12px}.yoho-footer .footer-link .right-flag{margin-top:3px}.yoho-footer .footer-link .right-flag a{margin-right:5px}.yoho-footer .footer-link .about-us{line-height:20px;color:#666;margin-left:10px}.yoho-footer .footer-link .about-us a{color:#666}.yoho-footer .footer-link .about-us span{padding:0 10px}.yoho-footer .return-top{position:fixed;width:60px;height:60px;left:50%;margin-left:595px;text-align:center;line-height:50px;color:#fff;background:#000;opacity:.5;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";bottom:20px;cursor:pointer;z-index:4}.yoho-footer .return-top .iconfont{font-size:34px}.yoho-footer .return-top:hover{opacity:.9;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=90)"}.yoho-footer .return-top.min{left:100%;right:20px;margin-left:auto}.min-screen .yoho-footer .index-foot dd{width:316px}.min-screen .yoho-footer .two-dim{margin-top:26px;margin-bottom:10px;overflow:hidden}.min-screen .yoho-footer .dim-img{width:69px;height:69px}.min-screen .yoho-footer .mobile{margin-top:26px;padding-bottom:15px}.min-screen .yoho-footer .mobile img{width:85px;height:108px}.min-screen .yoho-footer .promise .left{margin-right:45px}.min-screen .yoho-footer .subscribe{width:200px}.min-screen .yoho-footer .subscribe input{width:140px}.min-screen .yoho-footer .footer-help li{width:150px}.path-nav{font-size:12px;padding:15px 0;height:18px;line-height:18px}.path-nav,.path-nav a{color:#666}.path-nav .iconfont{font-size:12px}.path-nav .last{font-weight:700}.slider{position:relative;height:327px;width:100%;overflow:hidden}.slider img{max-width:100%;max-height:100%}.slide-pagination{position:absolute;left:0;right:0;bottom:12px;text-align:center}.slide-pagination-inner{display:inline-block;position:relative;padding:7px;vertical-align:middle}.slide-shade{position:absolute;left:0;right:0;top:0;bottom:0;background:#000;opacity:.3;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";border-radius:13px}.slide-pagination-last span{display:block;float:left;position:relative;margin:0 7px;width:12px;height:12px;background:#fff;cursor:pointer;opacity:.6;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=60)";border-radius:6px;z-index:2}.slide-pagination-last span.focus{opacity:1;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)"}.slide-switch{display:none}.slide-switch a{display:block;position:absolute;top:50%;margin:-30px 0 0;width:60px;height:60px;line-height:56px;text-align:center;z-index:2;background:#fff;opacity:.55;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=55)"}.slide-switch a .iconfont{font-size:32px;color:#59585a}.slide-switch a:hover{opacity:.9;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=90)"}.slide-switch .prev{left:0}.slide-switch .next{right:0}.slide-switch.show{display:block}.yoho-dialog{position:fixed;padding:20px;top:50%;left:50%;min-height:130px;min-width:350px;background:#f8f8f8;z-index:12;border:5px solid rgba(0,0,0,.38)}.yoho-dialog .close{position:absolute;top:5px;right:5px;cursor:pointer}.yoho-dialog .btns,.yoho-dialog .content{text-align:center}.yoho-dialog .alert-sure,.yoho-dialog .confirm-sure{background:#000;color:#fff}.yoho-dialog .btn{display:inline-block;width:56px;height:26px;line-height:26px;text-align:center;border:1px solid #000;cursor:pointer;margin-left:10px}.yoho-dialog .btn:first-child{margin-left:0}.yoho-dialog.alert-dialog .content,.yoho-dialog.confirm-dialog .content{width:350px;height:auto;min-height:90px;overflow:hidden;line-height:20px;position:relative;padding-top:40px;padding-bottom:20px}.yoho-dialog.alert-dialog .content p,.yoho-dialog.confirm-dialog .content p{position:absolute;left:0;bottom:25px;width:100%;color:#444;line-height:25px}.yoho-dialog.alert-dialog .content div,.yoho-dialog.confirm-dialog .content div{position:absolute;top:0;left:100px;padding-top:30px;font-size:22px;font-weight:700;width:150px;height:30px;line-height:30px;margin:0 auto}.yoho-dialog.alert-dialog .content div span,.yoho-dialog.confirm-dialog .content div span{background-image:url(../assets/img/sprite.cart.png?v155e77e4827);background-position:0 -272px;float:left;width:27px;height:30px}.yoho-dialog.subcontent-dialog{padding:30px 0}.yoho-dialog.subcontent-dialog .content{font-weight:700;margin:0 auto 30px}.yoho-dialog.subcontent-dialog .sub-content{text-align:center;font-size:12px;color:#555;margin-left:5px;margin-bottom:5px}.yoho-dialog.subcontent-dialog .btn{margin-top:25px;width:100px;font-size:13px;margin-left:0;margin-right:0}.yoho-dialog.subcontent-dialog .btn.black{background-color:#000;color:#fff}.pager{font-size:12px}.pager a{height:24px;padding:0 9px;line-height:24px;display:inline-block;text-align:center;margin-right:8px;color:#222}.pager a.cur{color:#fff;background-color:#222}.pager a:first-child .iconfont{right:auto;left:-5px}.pager .iconfont{position:relative;vertical-align:middle;bottom:1px;right:-5px;font-size:14px}.err-page{width:650px;height:200px;overflow:hidden;margin:100px auto}.err-page .tips-404{float:left;height:200px;padding-left:20px}.err-page .tips-404 .tip{font-size:24px;color:#000;margin-top:55px}.err-page .tips-404 .links{font-size:12px;color:#666;margin-top:15px}.err-page:before{content:'';display:block;width:200px;height:200px;background:url(../assets/img/404.png?v155e77e212e) 50% no-repeat;float:left}.share-wrapper{position:relative}.share-wrapper i{display:block;float:left;width:16px;height:16px;margin-left:5px;cursor:pointer}.share-wrapper .weibo{background-position:0 0}.share-wrapper .tweibo,.share-wrapper .weibo{background-image:url(../assets/img/sprite.share.png?v155e77e4828)}.share-wrapper .tweibo{background-position:-18px 0}.share-wrapper .renren{background-position:0 -18px}.share-wrapper .qzone,.share-wrapper .renren{background-image:url(../assets/img/sprite.share.png?v155e77e4828)}.share-wrapper .qzone{background-position:-18px -18px}.share-wrapper .qq{background-position:-36px 0}.share-wrapper .douban,.share-wrapper .qq{background-image:url(../assets/img/sprite.share.png?v155e77e4828)}.share-wrapper .douban{background-position:-36px -18px}.share-wrapper .weixin{background-image:url(../assets/img/sprite.share.png?v155e77e4828);background-position:0 -36px}.share-wrapper .weixin-share-box{display:none;position:absolute;width:282px;height:302px;padding-top:9px;text-align:center;font-family:Microsoft Yahei,Arial,Verdana;top:22px;right:-26px;z-index:2}.share-wrapper .weixin-share-box em,.share-wrapper .weixin-share-box em i{position:absolute;width:0;height:0;font-size:0;border-width:0 10px 9px;border-style:dashed dashed solid}.share-wrapper .weixin-share-box em{border-color:transparent transparent #d6d6d6;top:0;left:50%;margin-left:-10px}.share-wrapper .weixin-share-box em i{border-color:transparent transparent #e8e8e8;overflow:hidden;top:1px;left:-15px}.share-wrapper .weixin-share-box .con{position:relative;width:280px;height:300px;overflow:hidden;background-color:#fff;border:1px solid #d6d6d6;box-shadow:0 2px 4px #d1d1d1}.share-wrapper .weixin-share-box h2{display:block;height:46px;line-height:46px;background-color:#e8e8e8;color:#000;font-size:18px}.share-wrapper .weixin-share-box .pic,.share-wrapper .weixin-share-box .pic img{width:168px;height:168px}.share-wrapper .weixin-share-box .pic{overflow:hidden;margin:16px auto}.share-wrapper .weixin-share-box .w{font-size:13px;color:#9f9f9f;line-height:20px}.share-wrapper .weixin-share-box .close{position:absolute;width:45px;height:45px;line-height:45px;overflow:hidden;top:0;right:0;font-size:16px;color:#999}.product-search-page .goods-container{height:auto;padding:25px 0 0;position:relative;width:1160px}.product-search-page .goods-container .good-info{width:222px}.product-search-page .path-nav .last{font-weight:400}.product-search-page .path-nav .last span{font-weight:700}.min-screen .product-search-page .goods-container{height:auto;padding-top:25px;position:relative;width:1000px}.min-screen .product-search-page .goods-container .good-info{width:190px}.min-screen .product-search-page .goods-container .good-info .good-detail-img{height:255px}.min-screen .product-search-page .goods-container .block-next-page{width:190px;height:255px}.min-screen .product-search-page .filter-box .brand .attr-content{max-width:750px}.product-list-page .list-left{width:160px}.product-list-page .list-right{width:970px}.product-list-page .brand-banner{position:relative;height:150px;overflow:hidden}.product-list-page .brand-banner .opt-wrap{position:absolute;width:100%;height:32px;top:50%;margin-top:-16px;text-align:right}.product-list-page .brand-banner a,.product-list-page .brand-banner span{display:inline-block;height:20px;margin-right:5px;line-height:20px;border:1px solid #fff;padding:5px 10px;color:#fff;font-size:12px}.product-list-page .brand-banner .iconfont{font-size:13px}.product-list-page .brand-banner .brand-favor{margin-right:0;cursor:pointer}.product-list-page .brand-banner .coled{color:red}.product-list-page .base-shop-banner{margin-left:auto;margin-right:auto;width:1150px;height:200px}.product-list-page .base-shop-banner .opt .shop-name{margin-left:60px;font-size:32px;float:left;border:none}.product-list-page .base-shop-banner .opt .shop-favor{margin-right:60px}.product-list-page .brand-about{font-size:12px;line-height:150%}.product-list-page .sort-intro{margin-bottom:20px}.product-list-page .sort-intro .texts{width:386px;height:298px;padding:0 50px;border:1px solid #eaeceb;text-align:center;overflow:hidden}.product-list-page .sort-intro .name{font-size:30px;font-weight:700;margin-top:60px}.product-list-page .sort-intro .en-name{font-size:14px;font-weight:700}.product-list-page .sort-intro .desc{color:#666;margin-top:15px;font-size:12px;line-height:150%}.product-list-page .sort-intro .img{width:480px;height:300px}.product-list-page .sort-intro .key-entry{width:330px;margin:30px auto 0}.product-list-page .sort-intro .key-entry a{float:left;display:block;width:110px;line-height:20px;font-size:12px;color:#069;text-decoration:underline}.product-list-page .sell-signboard .left-list li{padding-left:0;height:auto;margin-bottom:10px;line-height:inherit}.product-list-page .sell-signboard .left-list li img{width:100%}.product-list-page.search-page .path-nav .last{font-weight:400}.product-list-page.search-page .path-nav .last span{font-weight:700}.min-screen .product-list-page .sort-intro .texts{width:346px;height:248px;padding:0 30px}.min-screen .product-list-page .sort-intro .name{margin-top:30px}.min-screen .product-list-page .sort-intro .img{width:400px;height:250px}.new-sale-page .sale-list-banner{width:100%;position:relative}.new-sale-page .sale-list-banner ul{overflow:hidden;width:100%;position:relative;z-index:1}.new-sale-page .sale-list-banner ul li{width:100%;height:100%;display:block;float:left;position:absolute;top:0;left:0}.new-sale-page .sale-list-pagation{z-index:2;position:absolute;left:0;bottom:50px;width:100%;height:20px;text-align:center}.new-sale-page .sale-list-pagation div{display:inline-block}.new-sale-page .sale-list-pagation span{display:block;width:20px;height:20px;background:url(../assets/img/product/default-normal.png?v155e77e3df0);float:left;margin:0 10px;cursor:pointer}.new-sale-page .sale-list-pagation span.active{background:url(../assets/img/product/default-active.png?v155e77e3def)}.new-sale-page .header-title{position:relative;width:100%;height:42px;margin:20px 0;text-align:center;font-size:20px}.new-sale-page .header-title .count-wrap{position:relative}.new-sale-page .header-title .count{background:#fff;padding:0 5px;color:#999;font-size:12px;margin-top:6px}.new-sale-page .header-title .line-through{position:absolute;bottom:9px;left:0;right:0;height:1px;border-top:1px dotted #999}.new-sale-page .new-banner img{display:block;width:100%}.new-sale-page .new-brands{position:relative;width:100%;margin-top:25px}.new-sale-page .new-brands>*{float:left}.new-sale-page .new-brands .next,.new-sale-page .new-brands .pre{position:absolute;display:block;width:40px;height:40px;line-height:40px;color:#fff;background:#e0e0e0;text-align:center;top:50%;margin-top:-20px;cursor:pointer;opacity:.8;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=80)"}.new-sale-page .new-brands .next:hover,.new-sale-page .new-brands .pre:hover{opacity:.9;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=90)"}.new-sale-page .new-brands .pre{left:0}.new-sale-page .new-brands .next{right:0}.new-sale-page .new-brands .brands-wrap{position:relative;overflow:hidden;width:890px;height:76px;margin-left:40px}.new-sale-page .new-brands .brands{position:absolute;width:auto;height:76px}.new-sale-page .new-brands .brands li{float:left;margin-left:14px}.new-sale-page .new-brands .brands li a{display:block;width:164px;height:76px;line-height:76px;vertical-align:middle;text-align:center}.new-sale-page .new-brands .brands li img{vertical-align:middle;max-width:100%;max-height:100%;border:none}.new-sale-page .new-floor-title{position:relative;margin:35px auto;width:300px;height:31px;line-height:31px;font-size:18px;border:1px solid #000}.new-sale-page .new-floor-title .date{position:absolute;left:-1px;top:-1px;width:155px;height:33px;color:#fff;text-align:center;background:url(../assets/img/product/floor-title.png?v155e77e3df1)}.new-sale-page .new-floor-title .title{float:right;margin-right:40px}.min-screen .new-sale-page .new-brands .brands-wrap{width:730px}.filter-box{border:1px solid #dfdfdf}.filter-box .section{padding:10px 15px;font-size:12px;border-top:1px solid #dfdfdf}.filter-box .section:first-child{border-top:none;padding:5px 15px}.filter-box .title{float:left;width:75px;line-height:30px;font-weight:700}.filter-box .attr-content{margin-left:75px}.filter-box .multi-select{display:inline-block;width:60px;height:18px;line-height:18px;border:1px solid #555;color:#555;text-align:center;cursor:pointer}.filter-box .attr{display:block;float:left;padding:0 10px;margin-right:30px;line-height:30px;cursor:pointer;color:#666;-moz-user-select:none}.filter-box .attr a{color:#666}.filter-box .attr:first-child{margin-left:0}.filter-box .attr.checked,.filter-box .attr.checked a{color:#e01}.filter-box .attr:hover{text-decoration:underline}.filter-box .color .attr{margin-right:0}.filter-box .checked .color-block{width:16px;height:16px;border:2px solid #222;padding:2px;background-size:100%!important}.filter-box .checked .color-block .sub-color-block{display:block;width:16px;height:16px;background-position:50%!important}.filter-box .checked-conditions{line-height:30px;background:#eaeceb}.filter-box .checked-conditions .title{margin-top:5px}.filter-box .checked-conditions .tag{display:block;float:left;padding:0 10px;margin:5px 30px 5px 0;background:#000;color:#fff;cursor:pointer}.filter-box .checked-conditions .color-block{height:14px;width:14px;border:1px solid #fff;margin-bottom:-3px;background-size:100%!important;background-position:50%!important}.filter-box .checked-conditions .clear-checked{margin-top:5px;color:#999;float:right}.filter-box .checked-conditions .clear-checked:hover{color:#468fa2}.filter-box .checked-conditions .close{font-size:14px}.filter-box .sort-pre .active .attr{border:1px solid #000}.filter-box .sort-pre .attr{position:relative}.filter-box .active .sort-up-icon{visibility:visible}.filter-box .sort-up-icon{position:absolute;width:15px;height:9px;left:50%;margin-left:-7px;bottom:-17px;z-index:3;visibility:hidden;background:url(../assets/img/product/senior-up.png?v155e77e3df4) no-repeat;background-position:50% 0}.filter-box .sort-sub-wrap{width:100%}.filter-box .sort-sub-wrap .sort-sub{border-top:1px solid #eaeceb;margin-top:15px;padding:0 0 15px}.filter-box .sort-sub-wrap .sort-sub .attr{padding-top:15px}.filter-box .brand{position:relative}.filter-box .brand .attr{box-sizing:border-box;width:20%;height:30px;margin:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.filter-box .brand .attr-content{max-width:900px}.filter-box .brand .brand-opt{position:absolute;right:20px;top:15px;color:#555}.filter-box .brand .multi .attr.checked,.filter-box .brand .multi .attr.checked a{color:#000}.filter-box .brand .brand-more{margin-right:10px;cursor:pointer}.filter-box .brand .brands-index{float:left;line-height:30px;margin-right:5px;cursor:pointer}.filter-box .brand .brands-index span{margin:0 3px;-moz-user-select:none}.filter-box .brand .brands-index span:first-child{margin-left:10px}.filter-box .brand .brands-index span.hover{color:red}.filter-box .brand .brand-search{float:left;height:18px;line-height:18px;border:1px solid #b0b0b0;margin-top:5px;margin-left:10px}.filter-box .brand .brand-search input{float:left;border:none;width:100px;height:18px;padding:0}.filter-box .brand .brand-search .btn{position:relative;display:inline-block;top:-1px;width:55px;height:20px;line-height:20px;background:#3a3a3a;color:#fff;text-align:center;cursor:default}.filter-box .brand .panel-body{padding:15px 20px;background:#f4f7f6;margin-top:5px;margin-left:10px}.filter-box .brand .panel-body .ul-scroll{overflow:auto;min-height:30px;max-height:150px}.filter-box .btns{display:none;margin-top:10px;text-align:center}.filter-box .multi .btns{display:block}.filter-box .multi-select-cancel,.filter-box .multi-select-ok{width:55px;height:24px;border:none;background:#000;color:#fff;font-size:14px;margin-right:20px;cursor:pointer;outline:none;font-family:Microsoft YaHei}.filter-box .multi-select-cancel.dis,.filter-box .multi-select-ok.dis{background:#ccc}.filter-box .ud-price-range{margin-top:2px}.filter-box .limit{height:22px;width:42px;border:1px solid #ccc;padding:0}.filter-box .price-sep{margin:0 5px}.filter-box .price-sure{height:24px;width:44px;background:#333;color:#fff;margin-left:10px;outline:none;border:none;font-size:12px;cursor:pointer}.filter-box .color-block{display:inline-block;height:22px;width:22px;border:1px solid #ccc;margin-bottom:-6px;margin-right:5px;background-size:100%!important;background-repeat:no-repeat!important;background-position:50%!important}.filter-box .senior{padding-bottom:6px}.filter-box .senior .attr-content{position:relative}.filter-box .senior .senior-attr-wrap>.attr:hover{text-decoration:none}.filter-box .senior-attr-wrap{position:relative}.filter-box .senior-attr-wrap>.attr.hover,.filter-box .senior-attr-wrap>.attr:hover{font-weight:700}.filter-box .senior-attr-wrap>.attr.hover>.iconfont,.filter-box .senior-attr-wrap>.attr:hover>.iconfont{visibility:hidden}.filter-box .senior-attr-wrap>.attr.hover .senior-up-icon,.filter-box .senior-attr-wrap>.attr:hover .senior-up-icon{visibility:visible}.filter-box .senior-sub{box-sizing:border-box;position:absolute;padding:0 15px 15px 91px;left:-91px;right:-16px;top:39px;background:#fff;border:1px solid #dfdfdf;border-top:0;z-index:2}.filter-box .senior-sub ul{max-width:950px}.filter-box .senior-sub .multi-select{position:absolute;top:20px;right:15px}.filter-box .senior-sub .attr{height:30px}.filter-box .senior-sub.multi .multi-select{display:none}.filter-box .senior-baffle{height:18px;margin-top:-18px;background:none}.filter-box .senior-content{padding-top:15px;border-top:1px solid #eaeceb}.filter-box .senior-up-icon{position:relative;width:100%;height:9px;z-index:3;margin-left:-11px;visibility:hidden;background:url(../assets/img/product/senior-up.png?v155e77e3df4) no-repeat;background-position:50% 0;top:-1px;top:1px\9}.filter-box .checkbox{display:none;float:left}.filter-box .multi .checkbox{display:block;color:#ccc;font-size:12px;margin-right:3px}.filter-box .multi .checkbox.checked{color:#000}.filter-box .multi .checkbox.checked+span{color:#000;font-weight:700}.min-screen .filter-box .brand .attr{width:25%}:root .senior-up-icon,_:-ms-fullscreen{top:1px}.sort-pager{height:48px;background:#f5f7f6;line-height:48px;margin:10px 0}.sort-pager .checks,.sort-pager .sort-type{color:#999;font-size:12px;padding:0 10px}.sort-pager .checks .iconfont,.sort-pager .sort-type .iconfont{font-size:12px}.sort-pager .checks.active,.sort-pager .checks.checked,.sort-pager .sort-type.active,.sort-pager .sort-type.checked{color:#000;font-weight:700}.sort-pager .checks.active .iconfont,.sort-pager .checks.checked .iconfont,.sort-pager .sort-type.active .iconfont,.sort-pager .sort-type.checked .iconfont{font-weight:100}.sort-pager .checks .iconfont{background:#fff}.sort-pager .sort-type:first-child .iconfont{display:none}.sort-pager .pager-wrap{float:right;padding:15px 0}.sort-pager .page-count{position:relative;height:18px;float:left;font-size:12px;line-height:18px}.sort-pager .page-count>span{float:left;display:block;width:42px;height:10px;line-height:10px;padding:3px;border:1px solid #ccc;color:#222;cursor:pointer;margin-right:10px;background:#fff}.sort-pager .page-count .iconfont{font-size:14px;color:#ccc;float:right}.sort-pager .page-count>ul{position:absolute;display:none;width:48px;border-left:1px solid #ccc;border-right:1px solid #ccc;background:#fff;z-index:1}.sort-pager .page-count li{padding:0 3px;border-bottom:1px solid #ccc}.sort-pager .page-count li:hover{background:#376cf7;color:#fff}.sort-pager .page-count a{display:block;width:100%}.sort-pager .page-orient{float:left;font-size:14px;line-height:15px;margin:0 20px}.sort-pager .page-orient .dis-icon{color:#e6e6e6}.sort-pager .page-orient i{color:red}.good-info{margin-bottom:35px;width:222px;margin-right:10px;float:left}.good-info .good-detail-img{width:100%;height:300px;position:relative}.good-info .good-detail-img .good-thumb,.good-info .good-detail-img img.lazy{display:block;overflow:hidden;width:100%;height:100%}.good-info .good-detail-img .few-tag{width:100%;position:absolute;left:0;height:16px;line-height:16px;background:#ffac5b;color:#fff;font-size:12px;text-align:center;bottom:0}.good-info .good-detail-text{color:#222;font-size:12px;text-align:left;overflow:hidden}.good-info .good-detail-text>a{margin-top:16px;line-height:1.5;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.good-info .good-detail-text>.price{margin-top:5px}.good-info .good-detail-text .brand a{color:#666;line-height:1.5}.good-info .good-detail-text .market-price{text-decoration:line-through;color:#999}.good-info .col-btn{position:absolute;top:15px;right:15px;color:#ccc;font-size:12px}.good-info .col-btn.coled{color:#f95b4f}.good-info .tag-container{font-size:12px;height:22px;line-height:22px}.good-info .tag-container .good-tag{float:left;box-sizing:border-box;display:block;height:22px;padding:0 7px;margin-right:3px;color:#fff}.good-info .tag-container .good-tag:nth-last-of-type(1){margin-right:0}.good-info .tag-container .new-tag{background:#78dc7d}.good-info .tag-container .renew-tag{background:#78dc7e}.good-info .tag-container .running-man-tag{background-color:#017df9;color:#f7ed02}.good-info .tag-container .sale-tag,.good-info .tag-container .yep-tag,.good-info .tag-container .ymp-tag{background:#ff565b}.good-info .tag-container .limit-tag{color:#4e4e4e;border:1px solid #4e4e4e}@keyframes a{0%{max-width:0}to{max-width:150px}}.good-item-wrapper{border:1px solid #ddd;padding-left:20px;padding-top:18px;padding-right:20px;position:absolute;background:#fff;display:none}.good-item-wrapper .good-info-main{float:left}.good-item-wrapper .col-btn{display:block}.good-item-wrapper .col-btn:hover{cursor:pointer}.good-item-wrapper .good-select-color{float:left;margin-top:22px;overflow:hidden;animation:a .6s 1}.good-item-wrapper .good-select-color ul{display:block;float:left;margin-left:15px}.good-item-wrapper .good-select-color li{width:50px;margin-bottom:15px}.good-item-wrapper .good-select-color li a,.good-item-wrapper .good-select-color li img{display:block;overflow:hidden;width:100%}.block-next-page,.good-item-wrapper .good-info{margin-right:10px}.block-next-page{width:222px;height:297px;padding-top:22px;margin-bottom:35px;float:left;cursor:pointer}.block-next-page a{display:block}.block-next-page a img{width:100%;height:100%;display:block;overflow:hidden}.latest-walk{overflow:hidden;border-top:2px solid #eaeceb;font-size:12px}.latest-walk h2{padding-top:15px;font-size:14px}.latest-walk .goods{min-width:984px;height:241px;margin:30px 0;overflow:hidden}.latest-walk .good{float:left;margin-right:14px;width:150px}.latest-walk img{display:block;width:150px;height:201px}.latest-walk .name{display:block;height:18px;line-height:18px;max-width:150px;margin:5px 0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.latest-walk .market-price{color:#999;margin-right:5px;text-decoration:line-through}.latest-walk .sale-price{color:#000;font-weight:700}.min-screen .latest-walk .goods{width:820px;min-width:820px;height:301px}.min-screen .latest-walk .good{margin-right:10px;width:195px}.min-screen .latest-walk img{width:195px;height:261px}.product-page .sort-container{width:100%;font-size:12px;border-bottom:1px solid #ebebeb;padding-bottom:10px;margin-bottom:10px}.product-page .sort-container h2{height:28px;line-height:28px;color:#222;font-weight:700;position:relative}.product-page .sort-container h2 span{color:#bbb;padding-left:5px}.product-page .product-list-nav h3{height:28px;line-height:28px;color:#222;font-weight:700;position:relative;text-indent:10px;cursor:pointer}.product-page .product-list-nav h3 span{color:#bbb;padding-left:5px}.product-page .product-list-nav h3 span.icon-triangle{display:inline-block;padding-left:0;width:0;height:0;border-top:6px solid #fff;border-left:6px solid #000;border-bottom:6px solid #fff;position:absolute;top:50%;margin-top:-6px;left:0;transition:transform .3s}.product-page .product-list-nav.active .icon-triangle{transform:rotate(90deg)}.product-page .product-list-nav.active .sort-child-list{display:block}.product-page .sort-child-list{display:none}.product-page .sort-child-list li{color:#bbb}.product-page .sort-child-list li span{padding-left:5px;color:#bbb}.product-page .sort-child-list li.active{background:#333;color:#fff}.product-page .sort-child-list li.active a{color:#fff}.product-page .sort-child-list a{display:block;color:#666;padding-left:10px;height:22px;line-height:22px}.product-page .sort-child-list.new-sale{display:block}.product-page .nav-pic-title{height:35px;line-height:35px;color:#000;font-weight:700;border-bottom:1px solid #ebebeb;font-size:12px}.product-page .pic-nav{display:block}.product-page .pic-nav li{margin-bottom:10px}.product-page .pic-nav img,.product-page .pic-nav li{display:block;width:100%;overflow:hidden}.product-page .brand-ad img,.product-page .brand-card img{max-width:100%}.product-page .no-result{border:1px solid #eaeceb;padding:60px 0;text-align:center;margin-bottom:20px}.product-page .no-result .no-title{font-size:16px}.product-page .no-result .keyword{color:#e01}.product-page .no-result .search-again{width:490px;margin:15px auto}.product-page .no-result .search-again input{float:left;width:380px;height:18px;padding:15px 5px;border:10px solid #343434;color:#333;outline:none;box-sizing:content-box}.product-page .no-result .search-again .search-again-btn{float:left;width:80px;height:68px;line-height:68px;background:#343434;vertical-align:middle;color:#fff;cursor:pointer;outline:none;border:none}.product-page .no-result .search-again .iconfont{font-size:30px}.product-page .no-result .no-tip{font-size:12px;color:#999}.hotrank-page .popular-list{width:1160px}.hotrank-page .popular-list li{position:relative;float:left;width:378px;height:596px;overflow:hidden;list-style:none;margin:0 8px 0 0}.hotrank-page .popular-list li .item-img{width:100%;height:506px;line-height:506px;text-align:center;overflow:hidden}.hotrank-page .popular-list li img{display:block;width:100%;height:100%}.hotrank-page .popular-list .polular-icon{position:absolute;top:0;right:0;width:50px;height:50px;line-height:60px;background:#ffc513 url(../assets/img/product/hotrank/popular-icon.png?v155e77e3e6d) no-repeat 50%;text-align:center;color:#ffc513;font-weight:700}.hotrank-page .popular-list .item-content{width:100%;padding:14px 0 0;height:77px;overflow:hidden;text-align:center;color:#222;line-height:18px}.hotrank-page .popular-list .item-content h2{max-height:36px;font-size:12px;color:#000;line-height:18px;text-align:center;overflow:hidden}.hotrank-page .popular-list .item-content p{display:inline-block;margin:3px 0 0;font-size:12px;text-align:center;line-height:20px;color:#000}.hotrank-page .popular-list .item-content p span{text-decoration:line-through;margin:0 10px 0 0;color:#999}.hotrank-page .popular-list .popular-item6,.hotrank-page .popular-list .popular-item7,.hotrank-page .popular-list .popular-item8,.hotrank-page .popular-list .popular-item9{width:280px;height:464px;margin:0 10px 0 0;overflow:hidden}.hotrank-page .popular-list .popular-item6 .item-img,.hotrank-page .popular-list .popular-item7 .item-img,.hotrank-page .popular-list .popular-item8 .item-img,.hotrank-page .popular-list .popular-item9 .item-img{height:374px;line-height:374px}.hotrank-page .hot-week{position:relative;padding:0 0 40px}.hotrank-page .hot-cate{height:45px;background:#f5f7f6;overflow:hidden}.hotrank-page .hot-cate li{float:left;height:45px;line-height:45px;display:table-cell}.hotrank-page .hot-cate li a{vertical-align:middle;padding:0 26px;font-size:14px;color:#777;border-left:1px solid #999}.hotrank-page .hot-cate li:first-child a{border:none}.hotrank-page .hot-cate li.current a{font-size:16px;color:#000}.hotrank-page .hot-week-list{width:1160px}.hotrank-page .hot-week-list .good-info{width:280px;height:464px;margin:10px 10px 0 0}.hotrank-page .hot-week-list .good-info .tag-container{display:none}.hotrank-page .hot-week-list .good-info .good-detail-img{height:374px;line-height:374px;text-align:center;font-size:0}.hotrank-page .hot-week-list .good-info .good-detail-img img{vertical-align:middle}.hotrank-page .hot-week-list .good-info .good-detail-text{height:77px;overflow:hidden;text-align:center;color:#222;line-height:18px}.hotrank-page .hot-week-list .good-info .good-detail-text a{max-height:36px;font-size:12px;color:#000;line-height:18px;text-align:center;overflow:hidden}.hotrank-page .hot-week-list .good-info .good-detail-text p{display:inline-block;margin:3px 0 0;font-size:12px;text-align:center;line-height:20px;color:#000}.hotrank-page .hot-week-list .good-info .good-detail-text p .sale-price{margin:0 10px 0 0}.hotrank-page .floatlayer{display:none;position:fixed;top:50%;left:50%;margin:0 0 0 575px;opacity:0;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"}.hotrank-page .floatlayer li{width:42px;height:42px;border:2px solid #555;border-top:none;border-bottom-width:1px;text-align:center}.hotrank-page .floatlayer li a{position:relative;display:table-cell;width:42px;height:42px;vertical-align:middle;color:#555;font-size:12px}.hotrank-page .floatlayer li a span{display:inline-block;vertical-align:middle;width:28px;word-wrap:break-word}.hotrank-page .floatlayer li:first-child{border-top:1px solid #555}.hotrank-page .floatlayer li.current,.hotrank-page .floatlayer li:hover{background:#555}.hotrank-page .floatlayer li.current a,.hotrank-page .floatlayer li:hover a{color:#fff}.min-screen .hotrank-page{width:990px}.min-screen .hotrank-page .popular-list li{width:324px;height:521px}.min-screen .hotrank-page .popular-list li .item-img{height:434px;line-height:434px}.min-screen .hotrank-page .popular-list .popular-item6,.min-screen .hotrank-page .popular-list .popular-item7,.min-screen .hotrank-page .popular-list .popular-item8,.min-screen .hotrank-page .popular-list .popular-item9{width:240px;height:408px}.min-screen .hotrank-page .popular-list .popular-item6 .item-img,.min-screen .hotrank-page .popular-list .popular-item7 .item-img,.min-screen .hotrank-page .popular-list .popular-item8 .item-img,.min-screen .hotrank-page .popular-list .popular-item9 .item-img{height:320px;line-height:320px}.min-screen .hotrank-page .hot-week-list .good-info{width:240px;height:408px}.min-screen .hotrank-page .hot-week-list .good-info .good-detail-img{height:320px;line-height:320px}.shop-entry-area{width:100%;height:auto;overflow:hidden;display:none}.shop-entry-area .shop-entry:first-child{margin-left:0}.shop-entry{position:relative;background:#f5f7f6;border:1px solid #eaeceb;padding:12px 15px;width:49%;box-sizing:border-box;float:left;margin:0 0 10px 2%}.shop-entry .logo{width:80px;height:50px}.shop-entry .name{margin-left:10px;width:70%}.shop-entry .shop-name{font-size:16px;color:#222;line-height:26px;height:26px}.shop-entry .shop-name,.shop-entry .sorts{width:100%;display:block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.shop-entry .sorts{color:#999;font-size:12px;line-height:18px;height:18px}.shop-entry .sorts a{color:#999}.shop-entry .entry-btn{position:absolute;right:15px;top:50%;width:110px;height:32px;line-height:32px;margin-top:-16px;background:#222;text-align:center;color:#fff;font-size:12px}.shop-entry .entry-btn .iconfont{font-size:12px}.goods-container{height:auto;padding:25px 0 0;position:relative;width:980px}.goods-container .good-info{width:235px}.product-detail-page .brand-banner{height:45px;width:100%}.product-detail-page .brand-banner img{display:block;height:45px}.product-detail-page .brand-banner .opt{margin-top:5px}.product-detail-page .brand-banner .brand-fav,.product-detail-page .brand-banner .home{display:inline-block;width:32px;height:32px;line-height:32px;border:1px solid #fff;text-align:center;color:#fff;cursor:pointer}.product-detail-page .brand-banner .home{margin-right:5px}.product-detail-page .brand-banner .home .iconfont{font-size:14px}.product-detail-page .brand-banner .brand-fav .iconfont{font-size:13px}.product-detail-page .brand-banner .coled{color:#ee0014}.product-detail-page .path-nav{border:none;margin-bottom:0}.product-detail-page .main{width:990px;margin:0 auto}.product-detail-page .main .infos{width:465px}.product-detail-page .main .img{position:relative;width:420px;height:560px}.product-detail-page .main .img-show{display:block;width:100%;height:100%}.product-detail-page .main .tags{position:absolute;top:0;left:0}.product-detail-page .main .good-tag{float:left;box-sizing:border-box;height:22px;line-height:22px;color:#fff;padding:0 7px;margin-right:5px;font-size:12px}.product-detail-page .main .new-tag{background:#78dc7d}.product-detail-page .main .renew-tag{background:#78dc7e}.product-detail-page .main .running-man-tag{background-color:#017df9;color:#f7ed02}.product-detail-page .main .sale-tag,.product-detail-page .main .yep-tag,.product-detail-page .main .ymp-tag{background:#ff565b}.product-detail-page .main .few-tag{background:#ffac5b}.product-detail-page .main .limit-tag{border:1px solid #4e4e4e;color:#4e4e4e;background:#fff}.product-detail-page .main .thumbs{width:75px;height:510px;margin-left:2px;overflow:hidden}.product-detail-page .main .thumb{display:block;width:75px;cursor:pointer;margin-bottom:2px}.product-detail-page .main .name{font-size:18px;font-weight:700;line-height:24px}.product-detail-page .main .sale-tip{color:#ee0014;padding-left:3px}.product-detail-page .main .brand-name{color:#666;font-size:12px}.product-detail-page .main .title{color:#999;font-size:12px}.product-detail-page .main .market-price{margin-top:8px}.product-detail-page .main .price{color:#000;font-size:22px;line-height:24px;font-weight:700}.product-detail-page .main .has-other-price{color:#999;text-decoration:line-through;font-size:12px}.product-detail-page .main .arrival-date{color:#ee0014;font-size:14px;font-weight:700;margin-left:24px}.product-detail-page .main .vip-price{line-height:14px;color:#222;margin-top:5px;background:url(../assets/img/product/vip-price-icon.png?v155e77e3e08) no-repeat;padding-left:48px;font-size:12px}.product-detail-page .main .vip-price .cur,.product-detail-page .main .vip-price .login-url{color:#f02200}.product-detail-page .main .vip-price .vip-price-item{margin-left:5px}.product-detail-page .main .vip-price .vip-schedual{color:#999;text-decoration:underline;margin-left:5px}.product-detail-page .main .activity{margin-top:12px}.product-detail-page .main .activity li{line-height:20px}.product-detail-page .main .ac-type{display:inline-block;min-width:50px;max-width:100px;height:16px;line-height:16px;margin-right:5px;padding:0 5px;text-align:center;background:#999;color:#fff;font-size:12px;overflow:hidden;vertical-align:middle}.product-detail-page .main .ac-des{font-size:12px}.product-detail-page .main .row{margin-top:10px}.product-detail-page .main .trade-content{padding-top:20px;margin-top:20px;border-top:1px solid #eaeceb}.product-detail-page .main .chose-color{font-size:12px}.product-detail-page .main .chose-color .title{margin-top:14px}.product-detail-page .main .chose-color img{display:block;height:36px;width:36px;border:2px solid #fff}.product-detail-page .main .chose-color .focus img{border-color:#222}.product-detail-page .main .chose-color li{margin-right:5px;margin-bottom:5px;cursor:pointer}.product-detail-page .main .chose-size{font-size:12px}.product-detail-page .main .chose-size .title{margin-top:6px}.product-detail-page .main .chose-size li{float:left;display:block;height:22px;line-height:22px;margin-right:5px;margin-bottom:5px;padding:0 5px;border:1px solid #eaeceb;text-align:center;cursor:pointer;min-width:28px}.product-detail-page .main .chose-size li.disable{opacity:.5;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)"}.product-detail-page .main .chose-size li.focus{color:#fff;background:#222}.product-detail-page .main .size-wrapper{width:415px}.product-detail-page .main .size{float:left;color:#666}.product-detail-page .main .size-ruler{float:left;display:block;width:57px;height:24px;background:url(../assets/img/product/size-ruler.jpg?v155e77e3e06);margin-bottom:5px;cursor:pointer}.product-detail-page .main .num-warn,.product-detail-page .main .size-warn{float:left;height:24px;line-height:24px}.product-detail-page .main .color-size-tip{color:#999;clear:both;line-height:18px}.product-detail-page .main .chose-count .title{margin-top:6px}.product-detail-page .main .num{display:block;width:38px;height:23px;line-height:23px;text-align:center;border:1px solid #eaeceb;color:#333;font-size:12px;background:#ebebe4}.product-detail-page .main .minus-plus{display:block;width:14px;height:23px;border:1px solid #eaeceb;border-left:none;text-align:center;cursor:pointer}.product-detail-page .main .minus-plus i{display:block;width:13px;height:11px;line-height:8px;font-size:12px;-moz-user-select:none}.product-detail-page .main .minus-plus .dis{color:#999}.product-detail-page .main .minus{border-top:1px solid #eaeceb;font-size:13px}.product-detail-page .main .lc-btn{float:left;display:block;width:80px;height:25px;line-height:25px;color:#fff;background:#222;margin-left:10px;font-size:12px;text-align:center;cursor:default}.product-detail-page .main .lc-btn.dis,.product-detail-page .main .lc-btn.had-lc,.product-detail-page .main .lc-btn.lc-sold-out{background:#ccc}.product-detail-page .main .num-wraper{position:relative}.product-detail-page .main .lc-container{position:absolute;top:-39px;right:-233px;z-index:1}.product-detail-page .main .lc-arrow{position:absolute;top:40px;left:-12px;width:13px;height:20px;background:url(../assets/img/product/arrow.png?v155e77e3ded)}.product-detail-page .main .lc-content{box-sizing:border-box;width:220px;height:285px;text-align:center;background:#f8f8f8;border:1px solid #cecece;padding:40px 25px 0}.product-detail-page .main .lc-content .qr-code{width:137px;height:137px;background:url(../assets/img/product/top-good-qr.png?v155e77e3e07);margin:0 auto}.product-detail-page .main .lc-content .title{font-size:18px;color:#000;margin:12px 0;line-height:24px}.product-detail-page .main .lc-content .sub-title{font-size:14px;color:#939290}.product-detail-page .main .buy-btn{display:inline-block;margin-right:10px;height:48px;line-height:48px;width:197px;text-align:center;color:#fff;background:#e92601;font-size:14px;cursor:pointer}.product-detail-page .main .buy-btn.hover{background:#eb3b19;background:rgba(233,38,1,.8)}.product-detail-page .main .buy-btn.dis{background:#ccc}.product-detail-page .main .collect-product,.product-detail-page .main .keep-shopping{display:inline-block;width:127px;height:48px;text-align:center;line-height:48px;background:#fff;color:#222;border:1px solid #ccc;font-weight:700;font-size:12px;cursor:pointer}.product-detail-page .main .collect-product .iconfont,.product-detail-page .main .keep-shopping .iconfont{color:#ccc;font-size:14px}.product-detail-page .main .collect-product.coled .iconfont,.product-detail-page .main .keep-shopping.coled .iconfont{color:#fa5252}.product-detail-page .main .share-row{margin-top:20px}.product-detail-page .main .share-row .title{margin-top:2px}.product-detail-page .main .balance{display:none}.product-detail-page .main .balance .success-tip{color:#222;font-size:18px;margin-bottom:10px}.product-detail-page .main .balance .cart-total{color:#999;font-size:12px}.product-detail-page .main .balance .balance-btns{margin-top:20px}.product-detail-page .other-infos{padding-bottom:30px}.product-detail-page .info-block{margin-top:30px;color:#999;border-top:2px solid #eaeceb;font-size:12px}.product-detail-page .info-block .basic{width:640px;margin:0 auto}.product-detail-page .info-block .basic li{float:left;width:25%;line-height:20px}.product-detail-page .info-block .comfort{width:470px;border:1px solid #eaeceb;margin:17px auto 0;padding-bottom:15px}.product-detail-page .info-block .comfort li{margin:12px 20px 0}.product-detail-page .info-block .comfort-block{display:inline-block;width:14px;height:10px;border:1px solid #eaeceb;margin-right:2px}.product-detail-page .info-block .comfort-block.cur{background:#999;border:1px solid #999}.product-detail-page .block-title{margin-bottom:25px;text-align:center}.product-detail-page .block-title .title{display:inline-block;padding-top:15px;font-weight:700;cursor:pointer}.product-detail-page .block-title .title.cur{color:#222;border-top:2px solid #222;margin-top:-2px}.product-detail-page .block-title .sep{display:inline-block;margin:0 30px;color:#eaeceb;font-size:14px;cursor:default;font-weight:700}.product-detail-page .description-content{overflow:hidden}.product-detail-page .material-content{display:none;overflow:hidden}.product-detail-page .material-detail li{width:860px;padding-bottom:20px;border-bottom:1px dotted #eaeceb;margin:0 auto 20px}.product-detail-page .material-detail li img{float:left;width:125px;height:50px}.product-detail-page .material-detail li .name{float:left;width:100px;line-height:25px;border-right:1px dotted #eaeceb;color:#666;font-weight:700;text-align:center;font-size:14px}.product-detail-page .material-detail li .text{float:left;width:614px;padding-left:20px;line-height:18px}.product-detail-page .wash{text-align:center}.product-detail-page .wash li{display:inline-block;padding:0 20px;color:#666;border-right:1px solid #eaeceb}.product-detail-page .size-info{text-align:center}.product-detail-page .fitting-report-table,.product-detail-page .reference-table,.product-detail-page .size-table{text-align:center;margin:0 auto}.product-detail-page .fitting-report-table th,.product-detail-page .reference-table th,.product-detail-page .size-table th{width:110px;text-align:center}.product-detail-page .fitting-report-table tr,.product-detail-page .reference-table tr,.product-detail-page .size-table tr{height:30px}.product-detail-page .fitting-report-table td,.product-detail-page .fitting-report-table tr,.product-detail-page .reference-table td,.product-detail-page .reference-table tr,.product-detail-page .size-table td,.product-detail-page .size-table tr{text-align:center}.product-detail-page .fitting-report-table thead,.product-detail-page .reference-table thead,.product-detail-page .size-table thead{background:#f5f7f6;color:#999}.product-detail-page .fitting-report-table tbody,.product-detail-page .reference-table tbody,.product-detail-page .size-table tbody{color:#222}.product-detail-page .fitting-report-table .avatar,.product-detail-page .reference-table .avatar,.product-detail-page .size-table .avatar{width:26px;height:26px;border-radius:50px}.product-detail-page .fitting-report-table .avatar-col,.product-detail-page .reference-table .avatar-col,.product-detail-page .size-table .avatar-col{width:26px;padding-left:20px;padding-right:20px}.product-detail-page .fitting-report-table .model-col,.product-detail-page .reference-table .model-col,.product-detail-page .size-table .model-col{width:90px}.product-detail-page .fitting-report-table .remark-col,.product-detail-page .reference-table .remark-col,.product-detail-page .size-table .remark-col{width:200px}.product-detail-page .fr-img-wrap{width:100%;text-align:center}.product-detail-page .fr-img-wrap img{max-width:100%}.product-detail-page .ref-model{padding-top:10px}.product-detail-page .ref-model .model{width:444px;height:35px;padding-top:47px;padding-left:316px;color:#666;overflow:hidden;margin:10px auto 0}.product-detail-page .ref-model .model em{margin-left:5px}.product-detail-page .size-tip{color:#999;margin-top:15px;text-align:center}.product-detail-page .details{text-align:center;font-size:12px;color:#999;line-height:18px}.product-detail-page .details-html{width:750px;text-align:center;margin:0 auto}.product-detail-page .details-html b{font-weight:700}.product-detail-page .details-html i{font-style:italic}.product-detail-page .consults{display:none}.product-detail-page .consult-comment .title,.product-detail-page .consult-comment .title.cur{color:#666}.product-detail-page .cc-content{background:#f5f7f6;padding:20px 20px 0;font-size:12px}.product-detail-page .cc-content h2{font-weight:700;font-size:14px;margin-bottom:10px;color:#000}.product-detail-page .cc-content li{border-top:1px solid #eaeceb;padding:20px 0}.product-detail-page .cc-content .user-info{color:#999;line-height:16px}.product-detail-page .cc-content .user-info>*{float:left}.product-detail-page .cc-content .user-info .name{color:#666}.product-detail-page .cc-content .user-info .date{color:#bbb}.product-detail-page .cc-content .user-info .question{color:#222}.product-detail-page .cc-content .user-avatar{width:30px;height:30px;margin-right:5px}.product-detail-page .cc-content .more-wrap{text-align:center;border-top:1px solid #eaeceb;padding:20px 0;font-size:14px;font-weight:700;color:#666}.product-detail-page .cc-content .btn-wrap{padding:20px 0;border-top:1px solid #eaeceb}.product-detail-page .cc-content .load-more{cursor:pointer}.product-detail-page .cc-content .btn{display:block;width:140px;height:32px;line-height:32px;color:#fff;background:#222;text-align:center;font-size:12px;margin:0 auto;cursor:pointer}.product-detail-page .cc-content .btn .iconfont{font-size:14px}.product-detail-page .cc-content .comment,.product-detail-page .cc-content .consult{margin-top:10px}.product-detail-page .cc-content .consults{display:none}.product-detail-page .new-consult{padding:20px 0;border-top:1px solid #eaeceb}.product-detail-page .new-consult textarea{width:590px;height:80px;padding:5px;outline:none;resize:none}.product-detail-page .new-consult .submit-consult{display:block;width:140px;height:32px;line-height:32px;margin:8px 0 0}.product-detail-page .new-consult .error{border-color:#e01}.product-detail-page .consult-success{border-top:1px solid #eaeceb;margin-top:30px;text-align:center;padding:20px 0}.product-detail-page .consult-success p{width:295px;height:55px;line-height:55px;margin:0 auto;border:2px solid #222;display:block;color:#222;font-weight:700}.product-detail-page .after-service{text-align:center;margin-top:30px}.product-detail-page .after-service .after-service-content{display:none}.product-detail-page .after-service .after-service-switch{height:44px;line-height:44px;background:#eaeceb;text-align:center;font-size:12px;cursor:pointer}.product-detail-page .after-service .after-service-switch .iconfont{font-size:12px}.product-detail-page .after-service .text{padding:20px 15px;background:#f5f7f6;text-align:left;color:#666;line-height:18px}.product-detail-page .after-service .orange{color:#f9761a}.product-detail-page .after-service h4{font-weight:700;font-size:14px;line-height:24px;color:#222;margin-top:10px}.product-detail-page .after-service h4:first-child{margin-top:0}.product-detail-page .after-service .img-1{width:715px;height:259px;margin:0 auto;background:url(../assets/img/product/after-service-1.png?v155e77e3dea)}.product-detail-page .after-service .img-2{width:715px;height:230px;margin:0 auto;background:url(../assets/img/product/after-service-2.png?v155e77e3deb)}.product-detail-page .after-service a{color:#666}.product-detail-page .service{width:403px;height:19px;margin:45px auto;background:url(../assets/img/product/service.png?v155e77e3df5)}.product-detail-page .latest-walk{overflow:inherit}.product-detail-page .latest-walk .goods{width:1010px;margin:0 auto;height:auto}.product-detail-page .latest-walk .goods>div{float:left;width:180px;margin-right:22px}.product-detail-page .latest-walk img{height:240px;width:180px;display:block}.product-detail-page .latest-walk .name{display:block;margin-top:5px;color:#222;line-height:16px}.product-detail-page .latest-walk .price{color:#222;font-weight:700;margin-top:5px}.product-detail-page .latest-walk .market-price{margin-right:5px}.product-detail-page .latest-walk .has-sale{text-decoration:line-through;color:#999}.product-detail-page .warn-tip{display:inline-block;color:#e01;margin-left:7px;font-size:12px}.product-detail-page .warn-tip i{font-size:14px}.product-detail-page .hot-point-wrap{position:relative;margin:0 auto}.product-detail-page .hot-point-wrap .hot-point{position:absolute;background:#fff\9;filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=0)}.product-detail-page .hot-point-wrap .hot-point.hover .pointer{background-position:0 -25px}.product-detail-page .hot-point-wrap .hot-point.hover .hp-good{display:block}.product-detail-page .hot-point-wrap .pointer{position:absolute;display:block;background:url(../assets/img/product/hp-num.png?v155e77e3df3) no-repeat 0 0;color:#fff;cursor:pointer;width:25px;height:25px;line-height:25px;text-align:center;left:0;top:0;font-size:18px}.product-detail-page .hot-point-wrap .hp-good{display:none;position:absolute;left:30px;top:0;width:210px;background:#000;height:60px;padding:10px}.product-detail-page .hot-point-wrap .hp-good .pic{display:block;float:left;width:60px;height:60px;margin-right:10px}.product-detail-page .hot-point-wrap .hp-good .info{position:relative;float:left;color:#fff;font-size:12px;width:140px;height:60px;line-height:20px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;text-align:left}.product-detail-page .hot-point-wrap .hp-good .check-btn{display:block;position:absolute;height:18px;width:40px;text-decoration:none;right:0;bottom:0;text-align:center;background:#e8e8e8;border-radius:2px}.shop-index-page{margin:10px auto 30px;width:1150px}.shop-index-page .shop-banner{position:relative}.shop-index-page .shop-banner .shop-name{position:absolute;left:260px;bottom:20px;font-size:36px;color:#fff}.shop-index-page .shop-banner .banner-img{width:100%;height:150px}.shop-index-page .shop-banner .opt-wrap{position:absolute;top:65%;right:0;padding:0 10px}.shop-index-page .shop-banner .shop-collect,.shop-index-page .shop-banner .shop-intro{display:inline-block;width:110px;height:30px;margin-right:10px;font-size:16px;line-height:30px;text-align:center;color:#fff;border:1px solid #fff;cursor:pointer}.shop-index-page .shop-banner .shop-collect i,.shop-index-page .shop-banner .shop-intro i{background-repeat:no-repeat;float:left;position:relative;left:11px;top:5px}.shop-index-page .shop-banner .shop-collect .shop-intro-ico,.shop-index-page .shop-banner .shop-intro .shop-intro-ico{width:16px;height:20px;background-image:url(../assets/img/product/shop-instro.png?v155e77e3df9);margin-right:12px}.shop-index-page .shop-banner .shop-collect .shop-collect-ico,.shop-index-page .shop-banner .shop-intro .shop-collect-ico{width:20px;height:19px;background-image:url(../assets/img/product/shop-collection.png?v155e77e3df7);top:6px;margin-right:12px}.shop-index-page .shop-banner .shop-collect .shop-collect-ico.on,.shop-index-page .shop-banner .shop-intro .shop-collect-ico.on{background-image:url(../assets/img/product/shop-collection-on.png?v155e77e3df6)}.shop-index-page .shop-nav{box-sizing:border-box;margin-bottom:30px;padding:0 20px;width:100%;height:40px;color:#fff;background:#000;font-size:16px}.shop-index-page .shop-nav a{position:relative;top:8px;display:inline-block;line-height:26px;color:#fff}.shop-index-page .shop-nav .nav-item{position:relative;float:left;width:160px;text-align:center}.shop-index-page .shop-nav .nav-item.first{width:100px;text-align:left}.shop-index-page .shop-nav .current a{border-bottom:2px solid #fff}.shop-index-page .coupon{margin-top:20px;width:100%;height:80px}.shop-index-page .coupon .coupon-title{width:162px;height:100%;background-image:url(../assets/img/sprite.product.png?v155e77e4828);background-position:0 0}.shop-index-page .slider-wrap{height:360px}.shop-index-page .slider-wrap .slide-wrapper img{width:auto;height:auto}.shop-index-page .slider-left{float:left;margin-right:10px;width:660px;height:100%;overflow:hidden;position:relative}.shop-index-page .slider-left .slide-wrapper{height:358px}.shop-index-page .slider-left .slide-switch a.prev{margin-left:-330px}.shop-index-page .slider-left .slide-switch a.next{margin-right:-330px}.shop-index-page .slider-left img{width:100%;height:100%}.shop-index-page .slider-left .slide-pagination{display:none}.shop-index-page .slider-right{float:left;width:300px;height:100%}.shop-index-page .slider-right .slider-item{display:block;margin-bottom:10px;width:100%;height:175px}.shop-index-page .floor-header{margin-top:50px}.shop-index-page .hot-single,.shop-index-page .new-arrivel{width:980px}.shop-index-page .hot-single .item,.shop-index-page .new-arrivel .item{float:left;position:relative;margin-right:10px;margin-bottom:20px;width:235px;height:315px;font-size:14px;text-align:center;line-height:1.5;background:#f5f5f5;font-weight:700}.shop-index-page .hot-single .item img,.shop-index-page .new-arrivel .item img{width:235px;height:250px}.shop-index-page .hot-single .item .title,.shop-index-page .new-arrivel .item .title{width:220px;padding:0 5px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.shop-index-page .hot-single .hat,.shop-index-page .new-arrivel .hat{position:absolute;top:0;right:0;width:50px;height:50px;color:#ffc513;text-align:center;line-height:57px;background-image:url(../assets/img/sprite.product.png?v155e77e4828);background-position:0 -82px}.shop-index-page .mask{background-color:#000;opacity:.5;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";position:fixed;top:0;left:0;right:0;bottom:0;z-index:12;display:none;cursor:pointer}.shop-index-page .pop-shop-intro{display:none}.shop-index-page .shop-intro-bg{width:908px;height:604px;background-color:#000;opacity:.5;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";position:fixed;left:50%;top:50%;z-index:13;margin:-302px 0 0 -454px}.shop-index-page .shop-intro-area{width:898px;height:594px;padding:60px 10px 35px 40px;background-color:#fff;position:fixed;left:50%;top:50%;margin:-297px 0 0 -449px;z-index:14;box-sizing:border-box}.shop-index-page .shop-intro-area .close-btn{width:18px;height:18px;background-image:url(../assets/img/product/shop-instro-close.png?v155e77e3df8);position:absolute;right:20px;top:20px;cursor:pointer}.shop-index-page .shop-intro-area .brand-cont{overflow:auto;width:100%;height:499px;padding-right:30px;box-sizing:border-box}.shop-index-page .shop-intro-area .intro-title{float:left}.shop-index-page .shop-intro-area .intro-title h2{width:100%;float:left;text-align:left;font-size:26px;font-weight:700;color:#000;font-style:italic}.shop-index-page .shop-intro-area .intro-title p{font-family:黑体;font-size:20px;text-align:left;padding:10px 0;float:left}.shop-index-page .shop-intro-area .intro-cont{width:100%;float:left;margin-top:55px;font-size:14px;line-height:20px}.shop-index-page .shop-intro-area .intro-cont p{text-indent:2em}.shop-index-page .shop-intro-area .intro-cont img{width:100%;margin-top:10px}.shop-index-page .fixed-area{background:#fff;z-index:1;width:970px}.shop-index-page .all-goods-menu{width:100%;height:40px;line-height:40px}.shop-index-page .all-goods-menu .menu-tag{color:#d0021b;font-size:18px;font-weight:700;text-align:left;padding:0 20px 0 10px;border-right:1px solid #000;float:left}.shop-index-page .all-goods-menu .menu-list{width:810px;height:40px;overflow:hidden;float:left;font-size:14px}.shop-index-page .all-goods-menu .menu-list li{display:inline-block;padding:0 15px}.shop-index-page .all-goods-menu .menu-list .on{background:#000;height:28px;line-height:28px}.shop-index-page .all-goods-menu .menu-list .on a{color:#fff}.shop-index-page .all-goods-menu .more{font-size:14px;float:right}.shop-index-page .sort-pager .sort-type:first-child .iconfont{display:inline-block}.shop-index-page .loading{position:relative;width:100%;text-align:center}.shop-index-page .loading a{display:block;height:35px;width:120px;margin:0 auto;background-color:#000;color:#fff;font-size:14px;line-height:35px;text-align:center}.shop-index-page .trend-info,.shop-index-page .trend-info .trend-list{width:100%}.shop-index-page .trend-info .trend-list li{float:left;width:316px;margin-left:10px;text-align:center}.shop-index-page .trend-info .trend-list li:first-child{margin-left:0}.shop-index-page .trend-info .trend-list img{width:100%;height:181px}.shop-index-page .trend-info .trend-list .main-title,.shop-index-page .trend-info .trend-list .sub-title{box-sizing:border-box;font-size:16px;margin-top:15px;padding:0 10px;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:24px}.shop-index-page .trend-info .trend-list .sub-title{margin-top:0;font-size:14px}.shop-index-page .goods-wrap .goods-container .good-info{width:235px;height:auto;margin-bottom:35px}.shop-index-page .goods-wrap .goods-container .good-detail-text{text-align:left}.shop-index-page .left-modular{width:160px;font-size:14px;margin-top:20px;float:left}.shop-index-page .left-modular .title{width:100%;height:25px;line-height:25px;background:#000;color:#fff;font-family:黑体;padding-left:14px;box-sizing:border-box}.shop-index-page .left-modular .left-list{width:100%;margin-top:5px}.shop-index-page .left-modular .left-list li{width:100%;height:42px;line-height:42px;background:#f5f5f5;float:left;box-sizing:border-box;margin-top:5px;padding-left:14px}.shop-index-page .left-modular .left-list li a{color:#000}.shop-index-page .left-modular .left-list li.on{border:1px solid #000}.shop-index-page .classic-recommend .left-list li{height:50px;line-height:50px}.shop-index-page .classic-recommend .classic-name{width:96px;display:inline-block;line-height:14px;vertical-align:middle;font-weight:700}.shop-index-page .classic-recommend .classic-name .name{font-size:14px}.shop-index-page .classic-recommend .classic-name .en-name{font-size:12px}.shop-index-page .classic-recommend img{width:40px;max-height:40px;margin-right:5px;vertical-align:middle}.shop-index-page .sell-recommend .left-list li{padding-left:0;height:auto;margin-bottom:25px;line-height:inherit}.shop-index-page .sell-recommend .left-list li img{width:100%}.shop-index-page ::-webkit-scrollbar{width:16px;height:16px}.shop-index-page ::-webkit-scrollbar-thumb,.shop-index-page ::-webkit-scrollbar-track{border-radius:999px;border:5px solid transparent}.shop-index-page ::-webkit-scrollbar-track{box-shadow:inset 0 0 6px transparent}.shop-index-page ::-webkit-scrollbar-thumb{min-height:20px;background-clip:content-box;box-shadow:inset 0 0 0 6px rgba(0,0,0,.3)}.shop-index-page ::-webkit-scrollbar-corner{background:transparent}.shop-index-page .page-nav{padding:7px 0;float:right;font-size:14px}.shop-index-page .page-nav .page-prev{width:33px;height:33px;background:#ccc;text-align:center;float:left}.shop-index-page .page-nav .arrow-left{width:10px;height:10px;display:inline-block;position:relative;top:-7px;background:url(../assets/img/product/arrow-left.png?v155e77e3dec) no-repeat}.shop-index-page .page-nav a .page-next,.shop-index-page .page-nav a .page-prev{background:#000;color:#fff}.shop-index-page .page-nav .page-next{min-width:110px;height:33px;background:#a9a9a9;float:left;margin-left:1px;line-height:33px;padding-left:10px;box-sizing:border-box;padding-right:10px}.shop-index-page .page-nav .arrow-right{width:10px;height:10px;display:inline-block;vertical-align:middle;background:url(../assets/img/product/arrow-right.png?v155e77e3dec) no-repeat}.shop-index-page .page-nav .pages{margin-left:10px}.product-page .product-pager{padding:20px 0;font-size:12px;color:#6a6a6a;border-top:2px solid #eaeceb}.product-page .product-pager .pager{float:right}.product-page .list-left{width:160px}.product-page .list-right{width:970px}.new-sale-page .goods-container,.product-list-page .goods-container{height:auto;padding-top:25px;position:relative;width:980px}.new-sale-page .goods-container .good-info,.product-list-page .goods-container .good-info{width:235px}.new-sale-page .goods-container .good-info .good-detail-img,.product-list-page .goods-container .good-info .good-detail-img{height:315px}.new-sale-page .goods-container .block-next-page,.product-list-page .goods-container .block-next-page{width:235px;height:315px}.new-sale-page .filter-box .brand .attr-content,.product-list-page .filter-box .brand .attr-content{max-width:730px}.min-screen .new-sale-page .list-right,.min-screen .product-list-page .list-right{width:810px}.min-screen .new-sale-page .goods-container,.min-screen .product-list-page .goods-container{height:auto;padding-top:25px;position:relative;width:820px}.min-screen .new-sale-page .goods-container .good-info,.min-screen .product-list-page .goods-container .good-info{width:195px}.min-screen .new-sale-page .goods-container .good-info .good-detail-img,.min-screen .product-list-page .goods-container .good-info .good-detail-img{height:261px}.min-screen .new-sale-page .goods-container .block-next-page,.min-screen .product-list-page .goods-container .block-next-page{width:195px;height:261px}.min-screen .new-sale-page .filter-box .brand .attr-content,.min-screen .product-list-page .filter-box .brand .attr-content{max-width:570px}.passport-page{width:1150px;margin-left:auto;margin-right:auto}.passport-page .content{float:left;margin-top:107px;padding-left:85px}.passport-page .input{height:43px;font-size:16px;line-height:1.2;line-height:43px\9;width:268px;border:1px solid #dbdbdb;text-indent:10px;color:#9a9a9a;color:rgba(0,0,0,.5)}.passport-page .error{border-color:red!important}.passport-page .btn{display:block;height:46px;line-height:46px;width:100%;text-align:center;color:#fff;background-color:#ff1901;letter-spacing:10px;font-size:20px;cursor:pointer}.passport-page .btn.disable{background-color:#555;cursor:default}.passport-page .pwd-intensity-container{width:270px;text-align:right;padding-top:5px}.passport-page .pwd-intensity-container .pwd-intensity{height:15px;font-size:12px;background-color:#e8e8e8;padding:0 10px;text-align:center;color:#b9b9b9}.passport-page .pwd-intensity-container.red .pwd-intensity{color:#e01}.passport-page .pwd-intensity-container.red .color{background:#e01;color:#fff}.passport-page .pwd-intensity-container.yellow .pwd-intensity{color:#f6da1e}.passport-page .pwd-intensity-container.yellow .color{background:#f6da1e;color:#fff}.passport-page .pwd-intensity-container.green .pwd-intensity{color:#3ee392}.passport-page .pwd-intensity-container.green .color{background:#3ee392;color:#fff}.passport-page .pwd-tips{position:absolute;top:-10px;left:285px;width:160px!important;height:72px;padding-top:7px;font-size:12px;background-image:url(../assets/img/sprite.passport.png?v155e77e4828);background-position:0 0}.passport-page .pwd-tips>div{position:relative;height:22px;line-height:22px;margin-left:15px;padding-left:15px;font-size:12px;color:#b9b9b9}.passport-page .pwd-tips>div i{position:absolute;width:14px;height:14px;left:-2px;top:50%;margin:-7px 0 0;background-image:url(../assets/img/sprite.passport.png?v155e77e4828);background-position:-63px -113px}.passport-page .pwd-tips>div.no{color:red}.passport-page .pwd-tips>div.no i{background-image:url(../assets/img/sprite.passport.png?v155e77e4828);background-position:-95px -113px}.passport-page .pwd-tips>div.yes i{background-image:url(../assets/img/sprite.passport.png?v155e77e4828);background-position:-79px -113px}.passport-page .email-autocomplete{position:absolute;width:248px;padding:0 10px;z-index:1;margin-top:5px;border-radius:5px;cursor:pointer;border:1px solid #fefefe;background-color:#161616;color:#fff;font-size:16px}.passport-page .email-autocomplete li{height:24px;line-height:24px}.passport-page .err-tip{position:absolute;font-size:14px;white-space:nowrap;top:8px;left:285px;padding:6px 0;color:red}.passport-page .err-tip i{display:block;float:left;height:14px;width:14px;background-image:url(../assets/img/sprite.passport.png?v155e77e4828);background-position:-95px -113px;margin-right:5px}.passport-page .err-tip a{text-decoration:underline;color:red}.passport-page .page-tip{display:block;width:100%;height:30px;line-height:30px;text-align:center;font-size:20px;font-weight:700;color:#ccc;clear:both;margin-bottom:15px}.passport-cover{float:left;margin:107px 0;width:575px}.passport-cover .cover-content{width:100%;height:318px;padding:50px 0;border-right:1px solid #dfdfdf}.passport-cover .cover-img{display:block;width:252px;height:190px;margin:0 auto;margin-top:50px}.login-page .relative{position:relative}.login-page .right{float:right}.login-page .login-ul>li{margin-bottom:25px}.login-page .title{float:left;font-size:20px}.login-page .country-code{cursor:pointer;color:#b9b9b9}.login-page .country-list{display:none;position:absolute;padding:0 10px;background:#fff;border:1px solid #000;top:20px;right:0;z-index:1;border-radius:5px}.login-page .country-list li{height:20px;line-height:20px;color:#000}.login-page .captcha-wrap{position:relative}.login-page .captcha-wrap .err-tip{left:335px}.login-page .captcha{width:160px;float:left}.login-page .captcha-img{height:37px;width:90px;border:0;vertical-align:middle;outline:none;margin-left:10px;margin-top:4px;float:left}.login-page .change-captcha{position:absolute;top:0;right:-50px;cursor:pointer;float:left;height:43px;font-size:14px;line-height:43px;color:#ff1901}.login-page .remember-me{cursor:pointer}.login-page .other-opts{color:#b9b9b9;font-size:14px}.login-page .other-opts .iconfont{font-size:14px}.login-page .other-opts .fast-reg{color:#ff1901}.login-page .forget-password{color:#b9b9b9}.login-page .third-party-login{display:table}.login-page .third-party-login a{display:table-cell;width:45px;background-size:100% 100%}.login-page .third-party-login .icon{display:block;width:30px;height:30px;margin:0 auto}.login-page .third-party-login .weixin{background-image:url(../assets/img/sprite.passport.png?v155e77e4828);background-position:-96px -81px}.login-page .third-party-login .qq{background-image:url(../assets/img/sprite.passport.png?v155e77e4828);background-position:-128px -81px}.login-page .third-party-login .weibo{background-image:url(../assets/img/sprite.passport.png?v155e77e4828);background-position:0 -81px}.login-page .third-party-login .alipay{background-image:url(../assets/img/sprite.passport.png?v155e77e4828);background-position:0 -113px}.login-page .third-party-login .douban{background-image:url(../assets/img/sprite.passport.png?v155e77e4828);background-position:-64px -81px}.login-page .third-party-login .renren{background-image:url(../assets/img/sprite.passport.png?v155e77e4828);background-position:-32px -81px}.login-page .caps-lock{position:absolute;color:#666;border:#ffe57d;background:#fff6d2;white-space:nowrap;top:8px;left:278px;padding:0 20px;height:27px;line-height:30px}.register-page{font-size:14px;color:#b9b9b9}.register-page li{margin-bottom:25px;width:270px;position:relative}.register-page li input,.register-page li select{outline:none}.register-page li .input{height:43px;line-height:43px;font-size:16px;width:268px;border:1px solid #dbdbdb;text-indent:10px;color:#9a9a9a;padding:0}.register-page li .input.error{border:1px solid red}.register-page li .input.phone-num{width:209px;display:block;float:left;position:absolute;top:0;right:0}.register-page li .input.captcha,.register-page li .input.msg-captcha{width:160px;float:left}.register-page li .input.agree-terms{vertical-align:middle}.register-page li .send-captcha{top:0;background:#ff1901;position:absolute;width:100px;right:0;font-size:12px;text-indent:0;letter-spacing:0}.register-page li .send-captcha.disable{background:#555}.register-page li .link{text-decoration:underline;color:#ff1901}.register-page li .btn{height:45px;line-height:45px;color:#fff;border:none;padding:0;font-family:黑体,Regular;text-align:center}.register-page li .region{height:30px;padding:4px 0;width:132px;border-color:#c1c1c1;color:#9a9a9a;font-size:16px;font-family:黑体,Regular}.register-page li .country-code{width:58px;height:43px;line-height:43px;text-align:center;white-space:nowrap;border:1px solid #dbdbdb;border-right:0;font-size:16px;display:block;float:left}.register-page li .captcha-img{height:37px;width:90px;border:0;vertical-align:middle;outline:none;margin-left:10px;margin-top:4px;float:left}.register-page li .change-captcha{margin-left:10px;cursor:pointer;float:left;height:43px;line-height:43px}.register-page li .pwd-intensity-container{width:270px;text-align:right;margin-top:5px;height:auto;overflow:hidden}.register-page li .pwd-intensity-container .pwd-intensity{height:15px;font-size:12px;background-color:#e8e8e8;padding:1px 10px;text-align:center}.register-page li .pwd-intensity-container.red{color:red}.register-page li .pwd-intensity-container.red .color{background:red;color:#fff}.register-page li .pwd-intensity-container.yellow .color{background:#ff0;color:#fff}.register-page li .pwd-intensity-container.green .color{background:#3ee392;color:#fff}.register-page li .register-btn{width:270px;font-size:20px;font-weight:700;background:#ff1901}.register-page li .register-btn.disable{background:#555}.register-page li.w330{width:330px}.register-page li.items-container,.register-page li.quick-login-container{font-size:13px;text-align:right;white-space:nowrap}.register-page li.quick-login-container{width:270px}.register-page li.skip-user-info{font-size:18px;text-align:center}.register-page li.skip-user-info a{color:#ff1901;text-decoration:underline}.register-page .msg-tip{position:absolute;top:17px;left:285px;white-space:nowrap}.register-page .msg-tip:before{content:'';display:inline-block;width:12px;height:12px;margin-right:5px;background-image:url(../assets/img/sprite.passport.png?v155e77e4828);background-position:-63px -129px}.register-page .err-tip{z-index:11;position:absolute;height:30px;line-height:30px;color:red;background-color:#ffebeb;border:1px solid #ffbdbe;padding:0 10px}.register-page .err-tip b{display:block;position:absolute;top:30px;left:20px;background-image:url(../assets/img/sprite.passport.png?v155e77e4828);background-position:-111px -113px;width:17px;height:9px}.register-page .success-box{font-size:14px;color:#b9b9b9;margin-top:130px}.register-page .success-box .success-text{line-height:29px;padding-left:46px;font-size:16px;color:#000}.register-page .success-box .success-text span{font-size:22px}.register-page .success-box .success-text #count-down{color:#ff1901}.register-page .success-box .success-text:before{content:'';display:inline-block;background-image:url(../assets/img/sprite.passport.png?v155e77e4828);background-position:-32px -113px;width:29px;height:29px;margin-right:5px;position:relative;top:6px}.register-page .success-box .success-btn{display:block;margin:46px auto 0;width:270px;height:45px;line-height:45px;background:#ff1901;text-align:center;color:#fff;letter-spacing:2px}.back-page{font-size:14px}.back-page .content{margin:175px 0 0!important}.back-page .back-header{position:relative;width:268px;line-height:40px;margin-bottom:5px}.back-page .back-header .country-code{float:right;cursor:pointer;color:#b9b9b9}.back-page .back-header .country-code .iconfont{font-size:14px;vertical-align:middle}.back-page .title{float:left;margin:0}.back-page .title,.back-page .title2{font-size:22px;line-height:40px;color:#000;font-weight:400}.back-page .title2{margin:0 0 5px}.back-page .err-tip.captcha-err{top:10px;left:326px}.back-page .country-code-list{display:none;position:absolute;padding:0 10px;color:#000;background-color:#fff;border:1px solid #000;margin-top:5px;cursor:pointer;z-index:9;top:30px;right:0;border-radius:5px}.back-page .country-code-list li{height:20px;line-height:20px}.back-page .input-container-li{position:relative;margin-bottom:22px}.back-page .input-container-li .btn{width:270px;height:45px;line-height:45px;cursor:pointer;font-size:20px;border:none;letter-spacing:0}.back-page .input-container-li .captcha{width:160px}.back-page .input-container-li .captcha-img{height:37px;width:90px;border:0;margin-left:10px;vertical-align:middle;outline:none;cursor:pointer}.back-page .input-container-li .change-captcha{color:#ff1901;font-size:12px;text-decoration:underline;margin-left:10px;cursor:pointer}.send-email-page{font-size:14px}.send-email-page .content{margin:216px 0 0!important}.send-email-page .send-tips{line-height:28px;color:#4c4c4c;text-align:center;font-size:15px}.send-email-page .send-tips .iconfont{margin:0 8px 0 0}.send-email-page .no-find{margin:10px 0 0;line-height:20px;color:#a5a4a4;text-align:center}.send-email-page .to-my-email a{display:block;margin:53px auto 0;width:270px;height:45px;line-height:45px;background:#ff1901;text-align:center;color:#fff;letter-spacing:2px}.verification-page .content li{position:relative;margin-bottom:43px}.verification-page .content .btn{display:inline-block;border:none}.verification-page .content .head-title{font-size:24px;color:#000}.verification-page .content .pn-label{color:#828282;font-size:16px}.verification-page .content .country-code{margin:0 10px}.verification-page .content .country-code,.verification-page .content .phone-num{color:#000;font-size:16px}.verification-page .content .captcha{width:160px!important}.verification-page .content .send-captcha{width:133px;font-size:12px;position:relative;top:-1px;letter-spacing:0}.verification-page .content .err-tip{left:310px}.verification-page .content .captcha-tips{position:absolute;top:50px;color:#a5a4a4}.verification-page .content .captcha-tips .iconfont{color:#0f9acd;font-size:14px;margin:0 8px 0 0;vertical-align:12%}.reset-success-page .content{margin:255px 0 0!important}.reset-success-page .success-text{line-height:35px}.reset-success-page .success-text .iconfont{font-size:30px;color:#ee3f14}.reset-success-page .success-text span{font-size:24px;margin:0 18px}.reset-success-page .success-text #count-down{color:#ee3f14}.reset-success-page .success-btn{display:block;margin:43px auto 0;width:269px;line-height:269px;height:45px;line-height:45px;font-size:14px;color:#fff;text-align:center;background-color:#ff1901}.welcome-page{text-align:center;color:#7f7f7f}.welcome-page .content{padding-top:82px}.welcome-page .wel-title{font-size:30px;margin-bottom:30px}.welcome-page .wel-title em{font-style:normal;color:#ff1901}.welcome-page .wel-sub-title{font-size:16px;margin-bottom:60px}.welcome-page .link{display:block}.welcome-page .link span{color:#7f7f7f}.welcome-page .link-img{height:91px;width:91px;background-size:100% 100%;margin-bottom:10px}.welcome-page .go-shopping{float:left;padding-left:100px}.welcome-page .go-shopping div{background-image:url(../assets/img/passport/go-shopping.png?v155e77e3dc3)}.welcome-page .complete-info{float:right;padding-right:100px}.welcome-page .complete-info div{background-image:url(../assets/img/passport/edit-info.png?v155e77e3dc2)}.yohobindbtn{display:block;width:210px;height:45px;line-height:45px;background-color:#f02200;color:#fff;font-size:16px;text-align:center}.hide{display:none}.novisiable{visibility:hidden}.actlevel{background-color:#f02200!important;color:#fff!important}.mask{position:fixed;top:0;right:0;bottom:0;left:0;z-index:15;overflow:hidden;-webkit-overflow-scrolling:touch;outline:0}.bindwrapper{margin:0 auto;width:980px;min-height:450px;padding-top:122px}.welcomeword{width:100%;text-align:center;font-size:22px;line-height:22px;color:#545454;margin-bottom:15px}.welcomeword .yoho{color:#e12000}.safeword{width:100%;text-align:center;font-size:16px;line-height:16px;color:#545454;margin-bottom:63px}.yohobindrow{width:485px;margin:0 auto 22px;height:40px}.yohobindrow .name{float:left;text-align:right;margin-right:14px;width:96px}.yohobindrow .areatag{height:30px;line-height:30px}.yohobindrow .phonetag,.yohobindrow .setpwdtag{height:47px;line-height:47px}.yohobindrow .content{float:left;text-align:left;margin-top:0;padding-left:0}.yohobindrow .errinfo{color:#f02200;line-height:49px;margin-left:5px}.yohobindrow:after{display:block;content:'';clear:both}.sendnotify{width:260px;text-align:left;margin:0 auto 18px}.validaterow{margin:0 auto 22px;padding-left:248px}.validaterow .name{float:left;text-align:right;margin-right:14px;width:96px}.validaterow .areatag{height:30px;line-height:30px}.validaterow .phonetag{height:47px;line-height:47px}.validaterow .content{float:left;text-align:left}.validaterow .content .err-tip{left:430px}.validaterow .validatewrapper{float:left;height:45px;width:133px;text-align:center;line-height:45px;background-color:#d8d8d8;color:#000;font-size:13px;margin-left:18px}.validaterow .validatewrapper .yohobindbtn{width:133px;font-size:13px}.validaterow:after{display:block;content:'';clear:both}.validatepicrow{overflow:hidden;margin:0 auto 22px;padding-left:250px}.validatepicrow .name{float:left;text-align:right;margin-right:14px;width:96px}.validatepicrow .areatag{height:30px;line-height:30px}.validatepicrow .phonetag{height:47px;line-height:47px}.validatepicrow .content{float:left;text-align:left}.validatepicrow .validatewrapper{float:left;height:45px;text-align:center;line-height:45px;color:#000;font-size:13px;margin-left:18px}.validatepicrow .validatewrapper .yohobindbtn{width:133px;font-size:13px}.validatepicrow .change-captcha{cursor:pointer;color:#f02200;text-decoration:underline}.validatepicrow:after{display:block;content:'';clear:both}.setpwdwrapper{margin-bottom:10px;height:45px}.safelevel{width:291px;margin:0 auto;text-align:right}.safelevel,.safelevel span{height:15px;font-size:10px;color:#000}.safelevel span{width:28px;line-height:15px;background-color:#e5e5e5;margin-right:4px;padding:1px 8px}.green .color{background-color:#0f0;color:#fff}.yellow .color{background-color:#ff0;color:#fff}.red .color{background-color:red;color:#fff}.yohoselectarea{position:relative;box-sizing:border-box;width:131px;height:33px}.yohoselectarea .optionshow{width:100%;height:100%;padding-left:16px;border:1px solid #d9d9d9}.yohoselectarea .optionshow .areaname{display:block;float:left;width:110px;height:100%;line-height:33px;font-size:13px;color:#000}.yohoselectarea .optionshow .righttag{display:block;float:left;width:21px;height:100%;line-height:33px;background-color:#d8d8d8;background-image:url(../assets/img/passport/arrowbottom.png?v155e77e3dbe);background-repeat:no-repeat;background-position:50%}.yohoselectarea .optionslist{background-color:#fff;position:absolute;top:35px;left:0;width:149px;z-index:2}.yohoselectarea .optionslist .optionitem{height:33px;line-height:33px;padding-left:16px;font-size:13px}.yohoselectarea .optionslist .optionitem:hover{background-color:#dfdfdf}.yohophonewrapper{width:271px;height:47px;border:1px solid #d9d9d9;position:relative}.yohophonewrapper .areanum{float:left;height:100%;width:63px;line-height:47px;text-align:center;color:#000;background-color:#d8d8d8}.yohophonewrapper .phonenum{outline:none;box-sizing:border-box;float:left;height:45px;width:205px;line-height:38px;padding-left:8px;border:none;color:#000}.yohophonewrapper .pwdcontent,.yohophonewrapper .validatenum{width:100%}.protoctolwrapper{width:350px;margin:38px auto 0;padding-left:85px;overflow:hidden}.protoctolwrapper .choosewrapper{float:left;width:13px;height:13px;background-color:#4c4c4c;background-image:url(../assets/img/passport/choosed.png?v155e77e3dc1);background-position:50%;background-repeat:no-repeat;margin-right:14px}.protoctolwrapper .choosetag{width:110%;height:110%;display:block;opacity:0;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";margin:0}.protoctolwrapper span{float:left;color:#666;font-size:13px;line-height:14px}.protoctolwrapper .protoctol{color:#f02200;text-decoration:underline}.protoctolwrapper:after{display:block;content:'';clear:both}.confirmwrapper{overflow:hidden;margin-top:47px!important}.btnwrapper{width:350px;margin:20px auto 0;padding-left:85px}.thirdloginwrapper{margin:0 auto;width:1150px;min-height:450px;padding-top:160px}.thirdloginwrapper .safeword{margin-bottom:30px}.thirdloginwrapper .left{box-sizing:border-box;float:left;width:450px;height:318px;border-right:1px solid #e5e5e5}.thirdloginwrapper .right{box-sizing:border-box;float:right;width:696px;padding-top:64px;height:318px}.thirdloginwrapper .completeprofile,.thirdloginwrapper .gobuy{float:left;display:inline-block;width:94px;height:94px;line-height:94px;text-align:center;border-radius:50%;background-color:#f02200;color:#fff}.thirdloginwrapper .gobuy{margin-left:228px;margin-right:80px}.bindsuccesswrapper{margin:0 auto;width:1150px;min-height:450px;padding-top:160px}.bindsuccesswrapper .successwrapper{width:320px;height:29px;margin:0 auto 16px}.bindsuccesswrapper .successwrapper .successtag{display:inline-block;margin-right:28px;float:left;width:29px;height:29px;background-image:url(../assets/img/passport/bindsuccess.png?v155e77e3dbf);background-repeat:no-repeat}.bindsuccesswrapper .successwrapper .congratulation{display:inline-block;height:29px;line-height:29px;font-size:22px}.bindsuccesswrapper .info{text-align:center;font-size:16px;margin-bottom:48px}.bindsuccesswrapper .gobuynow{margin:0 auto}.bindconfrimwrapper{width:900px;height:439px;margin:-217px auto;background-color:#fff;box-sizing:border-box;padding-top:37px}.bindconfrimwrapper .topwrapper{width:281px;height:90px;margin:0 auto 32px}.bindconfrimwrapper .topwrapper .userphoto{width:90px;height:90px;vertical-align:middle;border-radius:50%;margin-right:22px}.bindconfrimwrapper .topwrapper .username{vertical-align:middle;display:inline-block;width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:700;color:#545454}.bindconfrimwrapper .usertaginfo{text-align:center;font-size:18px;font-weight:700;color:#545454;margin-bottom:15px}.bindconfrimwrapper .usertagremind{text-align:center;font-size:16px;color:#888;margin-bottom:47px}.bindconfrimwrapper .otherphone{margin:0 auto 64px}.bindconfrimwrapper .logindirectly{display:block;text-align:center;text-decoration:underline;color:#f02200}.yohobindbtn[disabled]{background-color:#e5e5e5;cursor:not-allowed}.gobindwrapper{width:100%;height:45px;margin-bottom:70px}.gobindwrapper .myphone{float:left;margin-left:20px;width:193px}.gobindwrapper .logindirectly{display:inline-block}.gobindwrapper .validaterow{overflow:hidden;margin:0 auto 22px;padding-left:222px;float:left}.gobindwrapper .validaterow .name{float:left;text-align:right;margin-right:14px;width:96px}.gobindwrapper .validaterow .areatag{height:30px;line-height:30px}.gobindwrapper .validaterow .phonetag{height:47px;line-height:47px}.gobindwrapper .validaterow .content{float:left;text-align:left}.gobindwrapper .validaterow .content .validatacode{outline:none;box-sizing:border-box;float:left;height:45px;width:113px;line-height:38px;padding-left:8px;border:1px solid #d9d9d9;color:#000}.gobindwrapper .validaterow .validatewrapper{float:left;height:45px;width:133px;text-align:center;line-height:45px;background-color:#d8d8d8;color:#000;font-size:13px;margin-left:18px}.gobindwrapper .validaterow .validatewrapper .yohobindbtn{width:133px;font-size:13px}.gobindwrapper:after{display:block;content:'';clear:both}.gobindbottomwrapper{width:100%;padding-left:341px}.gobindbottomwrapper .logindirectly{display:inline-block;float:left;margin-right:36px;text-decoration:underline;color:#f02200}.pwd-tips{position:absolute;z-index:11;top:-10px;left:285px;width:160px!important;height:72px;padding-top:7px;font-size:12px;background-image:url(../assets/img/sprite.passport.png?v155e77e4828);background-position:0 0;background-color:#fff}.pwd-tips>div{position:relative;height:22px;line-height:22px;margin-left:15px;padding-left:15px;font-size:12px;color:#b9b9b9}.pwd-tips>div i{position:absolute;width:14px;height:14px;left:-2px;top:50%;margin:-7px 0 0;background-image:url(../assets/img/sprite.passport.png?v155e77e4828);background-position:-63px -113px}.pwd-tips>div.no{color:red}.pwd-tips>div.no i{background-position:-95px -113px}.pwd-tips>div.no i,.pwd-tips>div.yes i{background-image:url(../assets/img/sprite.passport.png?v155e77e4828)}.pwd-tips>div.yes i{background-position:-79px -113px}.tip-panel{position:absolute;display:none;width:248px;padding:0 10px;z-index:9;background-color:#161616;border:1px solid hsla(0,0%,100%,.7);margin-top:5px;cursor:pointer;border-radius:5px}.tip-panel li{height:20px;line-height:20px;color:#b9b9b9}.err-tip{position:absolute;font-size:14px;white-space:nowrap;top:8px;left:285px;padding:6px 0;color:red}.err-tip i{display:block;float:left;height:14px;width:14px;background-image:url(../assets/img/sprite.passport.png?v155e77e4828);background-position:-95px -113px;margin-right:5px}.err-tip a{text-decoration:underline;color:red}.backdrop{position:fixed;background:#000;width:100%;height:100%;left:0;top:0;bottom:0;right:0;opacity:.5;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)"}.err-info{display:none;z-index:11;position:absolute;top:-41px;left:0;height:30px;line-height:30px;color:red;background-color:#ffebeb;border:1px solid #ffbdbe;padding:0 10px}.err-info b{background:url(../assets/img/passport/angle.png?v155e77e3dbc);position:absolute;height:9px;width:17px;top:30px;left:10px}.third-relate-page{min-height:600px}.third-relate-page .relate-main{padding-top:100px}.third-relate-page .user-wrapper{width:280px;margin:0 auto}.third-relate-page .user-wrapper .user-thumb{width:94px;height:94px;border-radius:50%;display:inline-block;overflow:hidden}.third-relate-page .user-wrapper .user-thumb img{width:100%;height:100%}.third-relate-page .user-wrapper label{width:190px;line-height:94px;margin-left:20px;font-size:18px;font-weight:700;color:#545454;word-break:keep-all;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;position:absolute}.third-relate-page .remind-info{width:490px;min-height:54px;padding-left:50px;margin:35px auto;background:url(../assets/img/passport/warn.png?v155e77e3dc9) no-repeat;text-align:center}.third-relate-page .remind-info h3{font-size:18px;font-weight:700;color:#545454;margin-bottom:12px}.third-relate-page .remind-info a{color:#f22c26;text-decoration:underline;cursor:pointer}.third-relate-page .remind-info p{font-size:16px;color:#888}.third-relate-page .option-btn{text-align:center}.third-relate-page .option-btn a{width:192px;height:46px;color:#fff;font-size:18px;line-height:46px;display:inline-block;background-color:#f12200;cursor:pointer}.third-relate-page .option-btn a:first-child{margin-right:14px}.third-relate-page .remind-tips{width:390px;margin:0 auto;font-size:14px;color:#888;text-align:center;margin-top:30px;text-decoration:underline;display:block}.third-relate-page .remind-tips a{color:#f12200;cursor:pointer}.third-relate-page .remind-tips>*{text-decoration:underline}.third-relate-page .code-validate{padding-top:140px}.third-relate-page .action-link{width:440px;margin:0 auto;padding-left:180px;color:#545454;line-height:46px}.third-relate-page .action-link .code-name{margin-left:-100px;position:absolute}.third-relate-page .action-link input{width:260px;height:40px;padding-left:10px;font-size:16px;margin-right:14px}.third-relate-page .action-link label{width:140px;height:46px;font-size:14px;color:#fff;background-color:#f12200;display:inline-block;text-align:center;cursor:pointer}.third-relate-page .action-link .count-down{color:#979797;background-color:#d8d8d8;display:none}.third-relate-page .action-link .code-error{position:absolute;width:200px;display:inline-block;color:red;padding-left:10px}.third-relate-page .action-link .code-error i{display:inline-block;height:14px;width:14px;background-image:url(../assets/img/sprite.passport.png?v155e77e4828);background-position:-95px -113px;vertical-align:middle;margin-right:5px;margin-top:-2px}.third-relate-page .waiting .get-code{display:none}.third-relate-page .waiting .count-down{display:inline-block}.third-relate-page .relate-btn{width:212px;height:46px;font-family:arial,Microsoft YaHei;color:#fff;font-size:18px;background-color:#f12200;border:0;outline:none;margin:20px 0}.guang-page{width:1150px;margin:0 auto}.guang-page .left-side{float:left;width:830px}.guang-page .right-side{float:left;width:290px;margin-left:30px}.guang-page .bg-img.blink,.guang-page img.blink{opacity:.8;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=80)"}.guang-page .ex-reco-title{color:#333;line-height:24px;padding-bottom:10px;border-bottom:1px solid #ccc;font-size:20px;font-weight:700}.guang-page .ex-reco-list{margin-top:14px}.guang-page .ex-reco-item{box-sizing:border-box;height:60px;margin-bottom:14px}.guang-page .ex-reco-item:last-child{margin-bottom:0}.guang-page .ex-reco-img{display:block;float:left;width:90px;height:60px;margin-right:5px}.guang-page .ex-reco-img span{display:block;height:100%;width:100%;background-size:cover;background-position:50%}.guang-page .ex-reco-img span img{width:100%;height:100%}.guang-page .ex-reco-context{float:left;max-width:195px;height:40px;line-height:20px;font-size:13px;color:#666;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.guang-page .ex-reco-context:hover{color:#c30}.guang-page .hot{margin-top:40px}.guang-page .hot .hot-title{color:#333;line-height:24px;padding-bottom:10px;border-bottom:1px solid #ccc;font-weight:700;font-size:20px}.guang-page .hot .hot-tag-list{margin-top:14px;max-height:150px;overflow:hidden}.guang-page .hot .hot-tag{display:inline-block;float:left;padding:5px;font-size:12px;background-color:#ccc;border:none;margin-right:10px;margin-bottom:10px;color:#fff;font-weight:700}.guang-page .hot .hot-tag:hover{background-color:#333}.guang-page .ads{margin-top:30px}.guang-page .ads .ad{display:block;box-sizing:border-box;margin-bottom:24px;width:290px}.guang-page .ads .ad img{display:block;width:100%}.guang-page .msg-content{padding:24px 0;border-bottom:1px solid #ccc;position:relative}.guang-page .msg-content .content{height:80px;line-height:24px}.guang-page .msg-content .iconfont{color:#ccc}.guang-page .msg-content .msg-img{position:relative;float:left;margin-right:26px}.guang-page .msg-content .msg-img img{display:block;width:360px;height:240px}.guang-page .msg-content .msg-img img.square{height:360px}.guang-page .msg-content .classification{position:absolute;background-color:#000;color:#fff;text-align:center;width:80px;height:32px;line-height:32px;font-size:13px;opacity:.9;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=90)";z-index:8}.guang-page .msg-content .reco{position:absolute;top:0;left:66px;height:32px;width:32px;background:url(../assets/img/guang/msg-reco.png?v155e77e3ce5);background-size:100% 100%;z-index:9}.guang-page .msg-content .msg-info{float:left;width:440px}.guang-page .msg-content .msg-title{display:block;font-size:22px;color:#333;line-height:30px;max-height:64px}.guang-page .msg-content .msg-title:hover{color:#c30}.guang-page .msg-content .content{font-size:14px;color:#666}.guang-page .msg-content .msg-app{line-height:34px;color:#999;font-size:13px}.guang-page .msg-content .author{display:block;float:left;color:#333;margin-right:22px;max-width:180px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.guang-page .msg-content .author:hover{color:#c30}.guang-page .msg-content .page-view,.guang-page .msg-content .publish-time{color:#999}.guang-page .msg-content .publish-time{margin-right:30px}.guang-page .msg-content .like-comment,.guang-page .msg-content .tags{position:absolute;bottom:24px;font-size:12px}.guang-page .msg-content .like-comment .like,.guang-page .msg-content .tags .like{margin-right:10px}.guang-page .msg-content .like-comment .like:hover *,.guang-page .msg-content .tags .like:hover *{color:#000}.guang-page .msg-content .like-comment .like-icon,.guang-page .msg-content .tags .like-icon{cursor:pointer}.guang-page .msg-content .like-comment .like-icon.liked,.guang-page .msg-content .tags .like-icon.liked{color:#000}.guang-page .msg-content .like-comment.tags,.guang-page .msg-content .tags.tags{left:386px;max-width:350px;height:20px;overflow:hidden}.guang-page .msg-content .like-comment.like-comment,.guang-page .msg-content .tags.like-comment{right:0;color:#999}.guang-page .msg-content .msg-tag{display:inline-block;text-align:center;height:20px;line-height:20px;padding:0 10px;margin-right:10px;background-color:#ccc;color:#fff}.guang-page .msg-content .msg-tag:last-child{margin-right:0}.guang-page .msg-content .msg-tag:hover{background-color:#333}.guang-page .pager{font-size:12px}.guang-page .pager a{height:24px;padding:0 9px;line-height:24px;display:inline-block;text-align:center;margin-right:8px;color:#222}.guang-page .pager a.cur{background-color:#222;color:#fff}.guang-index-page .msg-nav{border-bottom:1px solid #000;margin-top:24px;height:30px}.guang-index-page .msg-nav li{float:left;height:30px;line-height:30px;text-align:center;font-size:18px;padding:0 28px}.guang-index-page .msg-nav li a{display:block;height:100%;width:100%;color:#333}.guang-index-page .msg-nav li.actived{background-color:#111}.guang-index-page .msg-nav li.actived a{color:#fff}.guang-index-page .msg-pager{float:right;margin:20px 0}.guang-detail-page{width:1150px;margin:0 auto 95px}.guang-detail-page b{font-weight:700}.guang-detail-page i{font-style:italic}.guang-detail-page .block{margin:15px 0}.guang-detail-page .excellent-recommendation-title{margin-top:4px}.guang-detail-page .block-header{position:relative;border-bottom:1px solid #c1c1c1;font-size:18px;height:38px;line-height:38px;text-align:center;margin-bottom:24px;color:#333}.guang-detail-page .block-header .more-reco{position:absolute;right:0;color:#000;font-size:14px;text-decoration:none}.guang-detail-page .related-brand .brands{width:852px}.guang-detail-page .related-reco .recos{width:850px}.guang-detail-page .detail-title{font-size:28px;line-height:64px;border-bottom:1px dotted #c1c1c1;word-wrap:break-word}.guang-detail-page .article-author{float:left;line-height:64px}.guang-detail-page .article-author .author-avatar{clear:both;width:38px;height:64px}.guang-detail-page .article-author .author-avatar img{width:38px;height:38px;border-radius:50%;vertical-align:middle}.guang-detail-page .author-info{float:left;margin-left:10px;font-size:14px;max-width:447px}.guang-detail-page .author-info .author-name{display:block;height:64px;line-height:64px;cursor:pointer;color:#000}.guang-detail-page .author-info .author-name:hover{color:#c30}.guang-detail-page .author-info .author-introduce{color:#999}.guang-detail-page .article-status{float:right;height:64px;line-height:64px;color:#999;font-size:13px}.guang-detail-page .article-status .article-click{margin:0 25px}.guang-detail-page .article-status .article-comment{color:#c30;cursor:pointer}.guang-detail-page .article-main img{display:block;max-width:100%;margin:0 auto}.guang-detail-page .article-main .article-text{margin:2px 0 20px;line-height:28px;font-size:14px}.guang-detail-page .article-main .article-small-pic{text-align:center;font-size:0}.guang-detail-page .article-main .article-small-pic img{display:inline-block;max-width:412px}.guang-detail-page .article-main .article-small-pic img:first-child{margin:0 6px 0 0}.guang-detail-page .article-main .block:first-child{margin-top:10px}.guang-detail-page .user-handle{margin:30px 0 0;text-align:center}.guang-detail-page .user-handle ul{display:inline-block}.guang-detail-page .user-handle ul li{float:left;margin:0 15px;cursor:pointer}.guang-detail-page .user-handle ul li a{position:relative;display:block;padding:0 10px;height:36px;line-height:36px;color:#535353;font-size:0;background:#efefef;text-align:left}.guang-detail-page .user-handle ul li a i,.guang-detail-page .user-handle ul li a span{display:inline-block;font-style:normal;font-size:14px}.guang-detail-page .user-handle ul li a i{margin:0 5px 0 0;font-size:18px;opacity:.5;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)"}.guang-detail-page .user-handle ul li a .cancel-collect{display:none}.guang-detail-page .user-handle ul .like-status.hover i,.guang-detail-page .user-handle ul .like-status.liked i{opacity:1;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)"}.guang-detail-page .user-handle ul .like-statis.hover .like-num{color:#000}.guang-detail-page .user-handle ul .sort-collect a i{width:21px}.guang-detail-page .user-handle ul .sort-collect.collected a i{opacity:1;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)"}.guang-detail-page .user-handle ul .sort-collect.collected a span{display:none}.guang-detail-page .user-handle ul .sort-collect.collected a .cancel-collect{display:inline}.guang-detail-page .user-handle ul .sort-collect.hover i{opacity:1;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)"}.guang-detail-page .user-handle ul .sort-collect.hover span{color:#000}.guang-detail-page .article-bottom-info{margin:44px 0 0;padding:0 0 10px;border-bottom:1px dotted #c1c1c1}.guang-detail-page .article-tag{float:left;width:588px}.guang-detail-page .article-tag .tag-icon{float:left;margin:0 12px 0 0;font-size:20px;font-style:normal}.guang-detail-page .article-tag ul{float:left;max-width:555px}.guang-detail-page .article-tag ul li{float:left;margin:0 10px 10px 0}.guang-detail-page .article-tag ul li a{display:block;padding:0 15px;height:20px;line-height:20px;font-size:12px;color:#fff;font-weight:700;background:#c1c1c1}.guang-detail-page .article-tag ul li:hover a{background:#333}.guang-detail-page .article-tag ul li:first-child{margin-left:0}.guang-detail-page .article-share{float:right}.guang-detail-page .article-share .title{font-size:12px}.guang-detail-page .detail-related-posts{margin:14px 0 0}.guang-detail-page .detail-related-posts li{float:left;width:264px;margin-left:19px}.guang-detail-page .detail-related-posts li a{display:block}.guang-detail-page .detail-related-posts li .bg-img{display:block;width:100%;height:173px;line-height:173px;text-align:center;font-size:0}.guang-detail-page .detail-related-posts li .bg-img img{max-width:100%;max-height:100%;vertical-align:middle}.guang-detail-page .detail-related-posts li .post-title{margin:8px 0 0}.guang-detail-page .detail-related-posts li .post-title h2{line-height:16px;font-size:14px;color:#000;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.guang-detail-page .detail-related-posts li .post-title:hover h2{color:#c30!important}.guang-detail-page .detail-related-posts li:first-child{margin-left:0}.guang-detail-page .comment-area{margin:58px 0 0}.guang-detail-page .comment-area .comment-publish{height:48px}.guang-detail-page .comment-textarea textarea{display:block;width:812px;height:86px;padding:12px;resize:none;outline:none;font-size:14px;line-height:18px;color:#535353;font-family:arial,helvetica,微软雅黑;border:1px solid #e7e7e7}.guang-detail-page .word-count-tip{display:inline-block;height:48px;line-height:48px;font-size:12px;color:#c8c8c8}.guang-detail-page .word-count-tip .exceed-count{color:red}.guang-detail-page .publish-btn{margin:10px 0 0;float:right;width:90px;height:33px;line-height:33px;text-align:center;color:#fff;font-size:14px;background:#cb3a3e;cursor:pointer}.guang-detail-page .publish-btn:hover{background:#c03234}.guang-detail-page .publish-btn.disable{background-color:#e79c9e}.guang-detail-page .comments-wrap h4{position:relative;line-height:32px;border-bottom:1px solid #e7e7e7}.guang-detail-page .comments-wrap h4 .comment-num{margin-right:5px;color:#c11e00}.guang-detail-page .comments-wrap h4 i{position:absolute;width:13px;height:7px;left:30px;bottom:-7px;background:url(../assets/img/guang/comment-icon.png?v155e77e3ce3) no-repeat}.guang-detail-page .comments-wrap .comment-pager{float:right;margin:20px 0}.guang-detail-page .comments-empty{display:none;color:#ccc;margin:20px 0;font-size:12px;line-height:12px;text-align:center}.guang-detail-page .commnets-resultwrapper{display:none}.guang-detail-page .comments-list li{margin:14px 0 0;padding:0 0 15px;border-bottom:1px dotted #e7e7e7}.guang-detail-page .comments-list li .avatar{float:left;width:40px;height:40px;overflow:hidden}.guang-detail-page .comments-list li .avatar img{display:block;width:100%;height:100%;border-radius:50%}.guang-detail-page .comments-list li .comment-info{float:left;width:774px;margin:0 0 0 16px}.guang-detail-page .comments-list li .comment-info .comment-user-name{color:#c11e00;font-size:15px;line-height:15px}.guang-detail-page .comments-list li .comment-info .comment-content{margin-top:10px;line-height:16px;font-size:12px;word-wrap:break-word}.guang-detail-page .comments-list li .comment-info .comment-time{margin:10px 0 0;color:#c8c8c8;font-size:12px;line-height:12px;clear:both}.guang-detail-page .brand{margin-right:22px;margin-bottom:20px;float:left}.guang-detail-page .brand .thumb{display:table-cell;border:1px solid #f5f5f5;height:120px;width:120px;box-sizing:border-box;text-align:center;vertical-align:middle}.guang-detail-page .brand .thumb img{display:block;max-width:120px;max-height:120px;margin:0 auto}.guang-detail-page .brand .brand-name{width:120px;font-size:13px;line-height:20px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;text-align:center;color:#333}.guang-detail-page .few-tag,.guang-detail-page .tag-container{display:none}.guang-detail-page .good-info{width:192px;margin-right:20px;margin-bottom:12px}.guang-detail-page .good-info .good-detail-img{height:auto}.guang-detail-page .good-info .good-detail-img .good-thumb,.guang-detail-page .good-info .good-detail-img img.lazy{height:257px}.guang-detail-page .good-info .good-detail-text>a{margin-top:0;line-height:36px}.guang-detail-page .good-info .good-detail-text>.price{margin-top:0}.guang-editor-page .tag-header,.guang-list-page .tag-header{height:45px;line-height:45px;color:#333;font-size:14px;font-weight:700;border-bottom:1px solid #ccc}.guang-editor-page .tag-header>span,.guang-list-page .tag-header>span{font-size:20px}.guang-editor-page .msg-pager,.guang-list-page .msg-pager{float:right;margin:20px 0}.guang-editor-page .right-side{margin-top:20px}.guang-list-page .right-side{margin-top:11px}.guang-editor-page .editor-info{padding:10px;background:#fafafa}.guang-editor-page .editor-info .author-avatar{float:left;width:80px;height:100%}.guang-editor-page .editor-info .author-avatar img{width:80px;height:80px;vertical-align:middle;border-radius:50%}.guang-editor-page .editor-info .author-info{float:left;margin:0 0 0 10px;max-width:1060px}.guang-editor-page .editor-info .author-name{margin-top:11px;font-size:20px;height:30px!important;line-height:30px!important}.guang-editor-page .editor-info .author-introduce{line-height:24px;font-size:14px;color:#999}.guang-editor-page .editor-info .intro-content{margin:15px 0 0;line-height:18px;font-size:14px;color:#999}.home-page{width:1150px;margin:10px auto 0}.home-page .slide-container{position:absolute;left:0;right:0;height:450px}.home-page .slide-thumb-container{height:510px}.home-page .slide-wrapper{position:relative;height:450px;overflow:hidden}.home-page .slide-wrapper ul{position:relative;height:100%}.home-page .slide-wrapper li{display:none;position:absolute;top:0;right:0;width:100%;height:100%}.home-page .slide-wrapper li a{display:block;height:100%;width:1150px;margin:0 auto}.home-page .slide-wrapper li img{width:100%;height:100%}.home-page .slide-wrapper:hover .slide-switch.show,.home-page .slide-wrapper li:first-child{display:block}.home-page .slide-container-placeholder{height:450px;width:100%}.home-page .slide-thumb-container-placeholder{height:510px}.home-page .slide-switch{display:block}.home-page .slide-switch a{position:absolute;top:50%;margin:-30px 0 0;width:60px;height:60px;line-height:56px;text-align:center;z-index:2;background:#fff;opacity:.55;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=55)"}.home-page .slide-switch a .iconfont{font-size:32px;color:#59585a}.home-page .slide-switch a.prev{left:50%;margin-left:-575px}.home-page .slide-switch a.next{right:50%;margin-right:-575px}.home-page .slide-switch a:hover{opacity:.9;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=90)"}.home-page .thumb-pagination{width:1148px;margin:6px auto 0;padding-left:2px}.home-page .thumb-pagination li{position:relative;float:left;margin-left:6px;width:138px;height:54px}.home-page .thumb-pagination li a{position:absolute;left:0;right:0;bottom:0;top:0;background:#000;opacity:.3;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=30)"}.home-page .thumb-pagination li img{width:100%;height:100%}.home-page .thumb-pagination li:first-child{margin:0}.home-page .thumb-pagination li.focus a{opacity:0;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"}.home-page .slide-pagination{font-size:0}.home-page .slide-pagination .slide-shade{position:absolute;left:0;right:0;top:0;bottom:0;background:#000;opacity:.3;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";border-radius:13px}.home-page .slide-pagination span{position:relative;display:inline-block;margin:0 7px;width:12px;height:12px;background:#fff;cursor:pointer;opacity:.6;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=60)";border-radius:6px;z-index:2}.home-page .slide-pagination span.focus{opacity:1;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)"}.home-page .debris-slider{height:510px;width:100%}.home-page .debris-slider .col{float:left}.home-page .debris-slider .col a{display:block}.home-page .debris-slider .left-col a,.home-page .debris-slider .right-col a{margin-bottom:10px}.home-page .debris-slider .left-col a:last-child,.home-page .debris-slider .right-col a:last-child{margin-bottom:0}.home-page .debris-slider .left-col img,.home-page .debris-slider .right-col img{height:100%;width:100%}.home-page .debris-slider .left-col{margin-right:10px}.home-page .debris-slider .left-col a{width:280px;height:120px}.home-page .debris-slider .left-col a:first-child{height:250px}.home-page .debris-slider .center-col{position:relative;width:570px;height:100%;margin-right:10px;font-size:0}.home-page .debris-slider .center-col .slide-wrapper{height:100%}.home-page .debris-slider .center-col .slide-wrapper li a{width:100%}.home-page .debris-slider .center-col .slide-switch a.prev{left:0;margin-left:0}.home-page .debris-slider .center-col .slide-switch a.next{right:0;margin-right:0}.home-page .debris-slider .center-col img{max-width:100%;max-height:100%}.home-page .debris-slider .center-col:hover .slide-switch.show{display:block}.home-page .debris-slider .right-col a{width:280px;height:120px}.home-page .debris-slider .right-col a:first-child{height:380px;margin-bottom:11px}.home-page .new-report img{display:block;width:100%;height:100%}.home-page .new-report .report-list{float:left;width:868px}.home-page .new-report .report-list li{float:left;margin:0 8px 8px 0;width:185px;height:248px;overflow:hidden}.home-page .new-report .report-list li:first-child{margin-right:7px;width:282px;height:504px}.home-page .new-report .last-item{float:left;width:282px;height:504px;overflow:hidden}.home-page .preference-brand{overflow:hidden}.home-page .preference-brand-list{margin-top:8px;width:1158px}.home-page .preference-brand-item{float:left;margin-right:8px;margin-bottom:8px}.home-page .preference-brand-item a{display:table-cell;width:185px;height:86px;text-align:center;vertical-align:middle}.home-page .preference-brand-item img{display:block;max-width:100%;max-height:100%;margin:0 auto}.home-page .preference-more{float:left;width:185px;height:86px;line-height:100px;text-align:center;color:#000;font-size:16px}.home-page .img-slider-wrapper{position:relative;width:100%;height:558px;background:#8ae6e0;overflow:hidden}.home-page .img-slider-wrapper .img-brand-switch{display:block}.home-page .img-slider-wrapper .img-brand-switch a{position:absolute;top:50%;font-size:36px;color:#fff}.home-page .img-slider-wrapper .img-brand-switch a.next{right:30px}.home-page .img-slider-wrapper .img-brand-switch a.prev{left:30px}.home-page .img-container-landscape{box-sizing:border-box;margin:86px auto 0;width:982px;height:433px;overflow:hidden}.home-page .img-container-landscape .img-list{width:1000px;height:100%}.home-page .img-container-landscape .img-item{float:left;box-sizing:border-box;width:320px;height:100%;margin-right:10px}.home-page .img-container-landscape .img-item img{width:100%;height:100%}.home-page .img-brand{position:relative;width:100%;height:175px;overflow:hidden}.home-page .img-brand ul{width:1158px}.home-page .img-brand li{float:left;margin:0 8px 0 0;width:378px;height:175px;line-height:175px;overflow:hidden;font-size:0;text-align:center}.home-page .img-brand li img{max-width:100%;max-height:100%;vertical-align:middle}.home-page .img-brand .img-brand-switch{display:none}.home-page .img-brand .img-brand-switch a{position:absolute;top:50%;margin:-20px 0 0;width:40px;height:40px;line-height:40px;text-align:center;z-index:2;background:#fff;opacity:.55;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=55)"}.home-page .img-brand .img-brand-switch a.prev{left:0}.home-page .img-brand .img-brand-switch a.next{right:0}.home-page .img-brand .img-brand-switch a:hover{opacity:.9;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=90)"}.home-page .img-brand:hover .img-brand-switch{display:block}.home-page .logo-brand{width:100%;height:282px;overflow:hidden}.home-page .logo-brand ul{width:1158px}.home-page .logo-brand li{float:left;margin:8px 8px 0 0;width:185px;height:86px;line-height:86px;font-size:0;text-align:center}.home-page .logo-brand li img{max-width:100%;max-height:100%;vertical-align:middle}.home-page .logo-brand .logo-brand-switch{position:relative;background:url(../assets/img/index/logo-brand-line.png?v155e77e3d45) no-repeat 50%;line-height:normal}.home-page .logo-brand .logo-brand-switch .iconfont{position:absolute;left:50%;font-size:32px}.home-page .logo-brand .logo-brand-switch .iconfont.prev{top:10px;margin-left:-48px}.home-page .logo-brand .logo-brand-switch .iconfont.next{bottom:12px;margin-left:20px}.home-page .logo-brand .brand-more{font-size:16px}.home-page .logo-brand .brand-more:hover{text-decoration:underline}.home-page .logo-brand.logos-10{height:188px}.home-page .categorys-list ul{width:1158px}.home-page .categorys-list li{float:left;margin:0 8px 8px 0;width:185px;height:248px}.home-page .categorys-list li img{display:block;width:100%;height:100%}.home-page .categorys-list li.cate-item0{width:185px;height:504px}.home-page .categorys-list li.cate-item1{width:377px;height:504px}.home-page .floor-header{position:relative;margin:80px 0 40px}.home-page .floor-header .floor-title{margin:0 auto;width:298px;height:31px;line-height:31px;border:1px solid #000;font-size:16px;text-align:center}.home-page .floor-header .header-navs{position:absolute;padding:10px 0;top:0;right:0;font-size:14px}.home-page .floor-header .header-navs li{float:left;padding:1px 15px;border-left:1px solid #ccc}.home-page .floor-header .header-navs li a{color:#333}.home-page .floor-header .header-navs li:first-child{border-left:none}.home-page .floor-header .header-navs li:hover{text-decoration:underline}.g-list li{float:left}.g-list li a{position:relative;display:block;overflow:hidden}.g-list li a img,.g-mask{width:100%;height:100%}.g-mask{display:block;position:absolute;z-index:1;background:#000;opacity:.5;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";overflow:hidden;transition:opacity .6s}.g-title{display:block;text-align:center;font-weight:700;line-height:1.5;width:100%;margin-top:14px}.home-page .tpl-recommend{width:100%;position:relative}.home-page .tpl-recommend a{display:block}.home-page .tpl-recommend a img{display:block;width:100%;height:100%}.home-page .tpl-recommend .tpl-body{margin-bottom:8px}.home-page .tpl-recommend .tpl-nav{float:left;overflow:hidden}.home-page .tpl-recommend .tpl-nav .tpl-keywords{margin-bottom:8px}.home-page .tpl-recommend .tpl-nav .tpl-category{padding:10px 0;background-color:#f8f8f8;overflow:hidden}.home-page .tpl-recommend .tpl-nav .tpl-category a{float:left;width:50%;text-align:center;color:#000;overflow:hidden}.home-page .tpl-recommend .tpl-brands{float:left;overflow:hidden;margin-left:8px}.home-page .tpl-recommend .tpl-brands li{margin-top:8px}.home-page .tpl-recommend .tpl-types{float:left;overflow:hidden;margin-top:-8px;width:579px}.home-page .tpl-recommend .tpl-types li{float:left;margin-left:8px;margin-top:8px}.home-page .tpl-recommend .tpl-types li a{width:185px;height:248px}.home-page .tpl-recommend .tpl-products{overflow:hidden;margin-left:-10px}.home-page .tpl-recommend .tpl-products li{float:left;margin-left:10px}.home-page .tpl-recommend .tpl-products li a{width:222px;height:298px}.home-page .tpl-recommend .tpl-nav{width:185px}.home-page .tpl-recommend .tpl-nav .keywords0,.home-page .tpl-recommend .tpl-nav .keywords1,.home-page .tpl-recommend .tpl-nav .keywords2{margin-bottom:10px;height:76px}.home-page .tpl-recommend .tpl-nav .keywords2{margin-bottom:0}.home-page .tpl-recommend .tpl-nav .tpl-category{height:228px}.home-page .tpl-recommend .tpl-nav .tpl-category a{height:38px;line-height:38px;font-size:14px}.home-page .tpl-recommend .tpl-brands{width:378px;height:512px}.home-page .tpl-recommend .tpl-brands li a{height:248px}.min-screen .home-page .tpl-recommend .tpl-nav{width:158px}.min-screen .home-page .tpl-recommend .tpl-nav .keywords0,.min-screen .home-page .tpl-recommend .tpl-nav .keywords1,.min-screen .home-page .tpl-recommend .tpl-nav .keywords2{margin-bottom:8px;height:65px}.min-screen .home-page .tpl-recommend .tpl-nav .keywords2{margin-bottom:0}.min-screen .home-page .tpl-recommend .tpl-nav .tpl-category{height:192px}.min-screen .home-page .tpl-recommend .tpl-nav .tpl-category a{height:32px;line-height:32px;font-size:12px}.min-screen .home-page .tpl-recommend .tpl-nav .tpl-category a:hover{text-decoration:underline}.min-screen .home-page .tpl-recommend .tpl-brands{width:324px;height:432px}.min-screen .home-page .tpl-recommend .tpl-brands li a{height:212px}.min-screen .home-page .tpl-recommend .tpl-types{width:498px}.min-screen .home-page .tpl-recommend .tpl-types li a{width:158px;height:212px}.min-screen .home-page .tpl-recommend .tpl-products li a{width:190px;height:254px}.home-page .singlehot{overflow:hidden;margin-left:-8px}.home-page .singlehot li{margin-left:8px;margin-bottom:8px}.home-page .singlehot li a{width:185px;height:248px}.home-page .singlehot .impo1,.home-page .singlehot .impo9{width:378px}.home-page .floor-ad a{display:block;height:129px}.home-page .floor-ad a img{display:block;width:100%;height:100%}.home-page .goods-container{margin-right:-10px;width:inherit;padding-top:0}.home-page .goods-container .good-info{margin-bottom:0;width:280px;height:485px}.home-page .goods-container .good-detail-img{height:374px}.home-page .goods-container .good-detail-text{text-align:center}.home-page .adbanner{margin-top:12px}.home-page .adbanner a{height:150px}.min-screen .home-page .singlehot li a{width:158px;height:212px}.min-screen .home-page .singlehot .impo1,.min-screen .home-page .singlehot .impo9{width:323px}.min-screen .home-page .goods-container .good-info{width:240px;height:412px}.min-screen .home-page .goods-container .good-info .good-detail-img{height:320px}.home-page .commodity .commodity-list{margin-left:-10px}.home-page .commodity .commodity-list a{height:465px;width:280px}.home-page .commodity .commodity-list li{margin-left:10px}.home-page .commodity .commodity-list i{position:absolute;bottom:0;width:100%;height:20px;background:#ffac5b;color:#fff;line-height:20px;text-align:center;font-size:12px}.home-page .commodity .commodity-list i.top{position:absolute;top:10px;right:10px;background-color:#ff575c;color:#fff;border-radius:30px;z-index:2;height:60px;width:60px;line-height:60px;font-size:20px}.home-page .commodity .commodity-list .commodity-img{position:relative;height:374px}.home-page .commodity .commodity-list p.commodity-name{font-size:12px;color:#000;text-align:center;margin-top:14px;line-height:18px}.home-page .commodity .commodity-list p.commodity-price{position:relative;margin:3px 0 0;text-align:center;line-height:20px;color:#000}.home-page .commodity .commodity-list p.commodity-price span{display:inline-block;font-size:12px}.home-page .commodity .commodity-brands{margin-left:-8px}.home-page .commodity .commodity-brands a{float:left;margin-left:8px;display:block;width:185px;height:86px}.home-page .commodity .commodity-brands a img{width:100%;height:100%}.home-page .commodity .loading{position:relative;width:100%;text-align:center;padding-top:40px}.home-page .commodity .loading a{display:block;height:35px;width:120px;margin:0 auto 40px;background-color:#000;color:#fff;font-size:14px;line-height:35px;text-align:center}.min-screen .home-page .commodity .commodity-list a{height:400px;width:240px}.min-screen .home-page .commodity .commodity-list .commodity-img{height:320px}.min-screen .home-page .commodity .commodity-list i.top{height:52px;width:52px;line-height:52px;font-size:14px}.min-screen .home-page .commodity .commodity-brands a{width:158px;height:74px}.home-page .slide-accordion{overflow:hidden;position:relative;height:400px}.home-page .slide-accordion a{position:relative;display:block}.home-page .slide-accordion a img{display:block;width:100%;height:100%}.home-page .slide-accordion ul{position:absolute;left:-5px}.home-page .slide-accordion li{position:absolute;border-left:5px solid #fff}.home-page .slide-accordion li a{width:650px;height:400px}.home-page .slide-accordion .g-mask{opacity:.2;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=20)"}.home-page .slide-accordion .g-mask:hover{opacity:0;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"}.min-screen .home-page .slide-accordion{height:342px}.min-screen .home-page .slide-accordion li a{width:558px;height:342px}.boys .tpl-nav .keywords0{margin-bottom:10px!important;height:152px!important}.boys .tpl-nav .keywords1{height:86px!important}.boys .tpl-nav .tpl-category a{height:38px!important;line-height:38px!important;font-size:14px!important}.boys .tpl-brands{margin-top:-8px!important}.boys .goods-container .good-info,.lifestyle .goods-container .good-info{width:222px!important;height:408px!important}.boys .goods-container .good-info .good-detail-img,.lifestyle .goods-container .good-info .good-detail-img{height:298px!important}.min-screen .boys .tpl-nav .keywords0{margin-bottom:8px!important;height:130px!important}.min-screen .boys .tpl-nav .keywords1{margin-bottom:0!important;height:74px!important}.min-screen .boys .tpl-brands{margin-top:-8px!important}.min-screen .boys .goods-container .good-info,.min-screen .lifestyle .goods-container .good-info{width:188px;height:360px}.min-screen .boys .goods-container .good-info .good-detail-img,.min-screen .lifestyle .goods-container .good-info .good-detail-img{height:255px}.min-screen .home-page{width:990px}.min-screen .home-page .slide-container{height:387px}.min-screen .home-page .slide-container img{display:block}.min-screen .home-page .slide-thumb-container{height:440px}.min-screen .home-page .slide-container-placeholder{height:387px}.min-screen .home-page .slide-thumb-container-placeholder{height:440px}.min-screen .home-page .slide-wrapper{height:387px}.min-screen .home-page .slide-wrapper li a{width:990px}.min-screen .home-page .slide-switch{display:block}.min-screen .home-page .slide-switch a.prev{margin-left:-495px}.min-screen .home-page .slide-switch a.next{margin-right:-495px}.min-screen .home-page .slide-switch a:hover{opacity:.9;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=90)"}.min-screen .home-page .thumb-pagination{width:990px;margin:7px auto 0;padding:0}.min-screen .home-page .thumb-pagination li{width:118px;height:46px}.min-screen .home-page .debris-slider{height:440px}.min-screen .home-page .debris-slider .left-col{margin-right:9px}.min-screen .home-page .debris-slider .left-col a{width:240px;height:103px}.min-screen .home-page .debris-slider .left-col a:first-child{height:214px}.min-screen .home-page .debris-slider .center-col{width:492px;margin-right:9px}.min-screen .home-page .debris-slider .right-col a{width:240px;height:103px}.min-screen .home-page .debris-slider .right-col a:first-child{height:326px;margin-bottom:10px}.min-screen .home-page .new-report .report-list{width:748px}.min-screen .home-page .new-report .report-list li{width:158px;height:212px}.min-screen .home-page .new-report .last-item,.min-screen .home-page .new-report .report-list li:first-child{width:242px;height:432px}.min-screen .home-page .preference-brand-list{width:998px}.min-screen .home-page .preference-brand-item{margin-right:7px}.min-screen .home-page .preference-brand-item a{width:159px;height:74px}.min-screen .home-page .preference-more{width:159px;height:74px;line-height:90px}.min-screen .home-page .img-slider-wrapper{height:480px}.min-screen .home-page .img-container-landscape{margin:73px auto 0;width:844px;height:370px}.min-screen .home-page .img-container-landscape .img-item{width:275px;height:100%;margin-right:9px}.min-screen .home-page .img-brand{height:150px}.min-screen .home-page .img-brand ul{width:998px}.min-screen .home-page .img-brand li{width:325px;height:150px;line-height:150px}.min-screen .home-page .logo-brand{height:246px}.min-screen .home-page .logo-brand ul{width:998px}.min-screen .home-page .logo-brand li{margin:8px 8px 0 0;width:158px;height:74px;line-height:74px}.min-screen .home-page .logo-brand .logo-brand-switch .iconfont{font-size:24px}.min-screen .home-page .logo-brand .logo-brand-switch .iconfont.prev{top:-12px}.min-screen .home-page .logo-brand .logo-brand-switch .iconfont.next{bottom:-12px}.min-screen .home-page .logo-brand.logos-10{height:164px}.min-screen .home-page .categorys-list ul{width:1004px}.min-screen .home-page .categorys-list li{margin:0 7px 7px 0;width:161px;height:214px}.min-screen .home-page .categorys-list li.cate-item0{width:160px;height:435px}.min-screen .home-page .categorys-list li.cate-item1{width:326px;height:435px}.min-screen .home-page .floor-header{margin:50px 0 30px}.min-screen .home-page .floor-header .header-navs li{padding:1px 10px}.brands .path-nav{border-bottom:none;margin-bottom:0;padding-top:10px;padding-bottom:20px}.brands .brands-tabs{position:relative}.brands .brands-tabs a{display:block}.brands .brands-tabs a img{width:100%;height:100%;display:block}.brands .brands-tabs li{float:left}.brands .brands-tabs li p{display:block;font-size:30px;text-align:center;color:#dedede;position:absolute;top:50%;width:100%;margin-top:-15px;z-index:3}.brands .brands-tabs li .g-mask{opacity:.4;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=40)"}.brands .brands-tabs li .g-mask-on,.brands .brands-tabs li:hover .g-mask{opacity:0;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"}.brands .brands-tabs .hover-contain{position:relative;border-bottom:1px solid #dfdfdf}.brands .brands-tabs .hover-contain .hoverarr{background-color:#3d3d3d;position:absolute;bottom:0;z-index:7}.brands .brands-tabs .hover-contain .hoverarr i{width:0;height:0;position:absolute;left:50%;border-left:6px solid transparent;border-right:6px solid transparent;border-bottom:6px solid #3d3d3d;top:-6px;margin-left:-3px}.brands .header-navs{margin-right:-15px}.brands .category-nav{border:2px solid #222;padding-left:16px;height:44px;line-height:44px;font-size:12px;font-weight:700;position:relative;z-index:9;background-color:#fff}.brands .category-nav span{display:inline-block;margin-right:15px}.brands .category-nav a{display:inline-block;padding:0 7px;text-align:center;color:#222;cursor:pointer}.brands .category-fix{position:fixed;top:0;z-index:9;margin-top:0!important}.brands .brands-list dl{position:relative;border-top:1px dotted #999;padding:20px 0}.brands .brands-list dt{position:absolute;width:130px;font-weight:700;font-size:16px;text-align:center;top:50%;margin-top:-9px}.brands .brands-list dd{margin-left:130px}.brands .brands-list dd li{float:left;display:block;width:170px;height:18px}.brands .brands-list dd a{color:#666;line-height:18px;font-size:12px;position:relative}.brands .brands-list dd a span{max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:inline-block}.brands .brands-list dd a span:hover{text-decoration:underline}.brands .brands-list dd .brands-dialog{display:inline;position:relative}.brands .brands-list dd .hot{font-weight:700;color:#222}.brands .brands-list dd i{position:relative;top:-4px;color:#e01;font-size:14px}.brands .brands-category{width:1150px}.brands .brands-tabs{width:100%}.brands .brands-tabs li{margin-left:10px}.brands .brands-tabs li a{position:relative;width:222px;height:180px}.brands .brands-tabs li:first-child{margin-left:0}.brands .brands-tabs .hover-contain{height:30px}.brands .brands-tabs .hover-contain .hoverarr{height:5px;width:222px}.brands .brands-ad,.brands .brands-logo{margin:20px 0}.brands .brands-ad li{float:left;margin-left:10px}.brands .brands-ad li img{display:block;width:280px;height:280px}.brands .brands-ad li:first-child{margin-left:0}.brands .brands-ad li:first-child img{width:570px}.brands .brands-logo a{float:left;margin-left:26px}.brands .brands-logo a img{display:block;width:91px;height:38px}.brands .brands-logo a:first-child{margin-left:0}.brands .list-floor{width:1160px}.brands .brandfloor .g-list{margin-top:-32px}.brands .brandfloor li{margin-right:8px;margin-top:32px}.brands .brandfloor li a{width:378px;height:250px}.brands .singlegoods .g-list{margin-top:-10px}.brands .singlegoods li{margin-right:10px;margin-top:10px}.brands .singlegoods li a{width:280px;height:374px}.brands .singlegoods .singlegoods-title{position:absolute;left:0;bottom:0;height:50px;width:100%}.brands .singlegoods .singlegoods-title p{position:absolute;z-index:2;top:0;left:0;display:block;width:100%;height:100%;line-height:50px;font-size:18px;text-align:center;color:#fff}.brands .video .g-list{margin-top:-10px}.brands .video li{margin-right:8px;margin-top:10px}.brands .video li a{width:378px;height:242px}.brands .video .video-play{display:block;position:absolute;left:50%;top:50%;margin-left:-30px;margin-top:-28px;width:60px;height:56px;background-image:url(../assets/img/index/play.png?v155e77e3d47)}.brands .video .video-title{position:absolute;left:0;bottom:0;height:32px;width:100%}.brands .video .video-title p{position:absolute;z-index:2;top:0;left:0;display:block;width:100%;height:100%;font-size:14px;line-height:32px;text-align:center;color:#fff}.brands .news{margin-bottom:40px}.brands .news .news-pic{position:relative;float:left;width:764px;height:436px}.brands .news .news-pic .slide-container{height:100%}.brands .news .news-pic .slide-container li a{height:100%;width:764px}.brands .news .news-pic .slide-container .slide-wrapper{height:100%}.brands .news .news-pic .slide-container .slide-switch{display:none}.brands .news .news-pic .slide-container .slide-switch .prev{left:0;margin-left:0}.brands .news .news-pic .slide-container .slide-switch .next{right:0;margin-right:0}.brands .news .news-pic .slide-container .slide-switch.show{display:block}.brands .news .news-pic .slide-tips{position:absolute;left:0;bottom:0;height:30px;width:100%;background:#000;opacity:.8;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=80)"}.brands .news .news-pic .slide-tips p{position:absolute;left:18px;z-index:2;height:30px;font-size:14px;line-height:30px;color:#fff}.brands .news .news-pic .slide-pagination{right:0;left:auto;bottom:0}.brands .news .news-pic .slide-pagination .slide-shade{opacity:0;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";background:none}.brands .news .news-pic .slide-pagination span{margin-top:3px}.brands .news .news-txt{padding:20px 16px;float:right;border:1px solid #000;overflow:hidden}.brands .news .news-txt ul{height:100%}.brands .news .news-txt li{position:relative;display:block;margin-bottom:10px;margin-left:20px}.brands .news .news-txt a{font-size:14px;line-height:27px;cursor:pointer;color:#010101;display:block}.brands .news .news-txt a:hover{color:#fff;background:#000;padding-left:12px;transition:padding .4s}.brands .news .news-txt i{position:absolute;top:0;left:-26px;font-size:22px}.brands .news .news-txt{width:342px;height:394px}.brands .ads{margin:40px 0}.brands .ads li{margin-right:10px;margin-bottom:10px}.brands .ads li a{width:280px}.brands .ads li a img{height:160px}.brands .ads li .name{font-size:14px}.brands .ads li .des{font-size:12px}.brands .brands-items{margin:25px auto}.brands .brands-items .brands-item{float:left;padding:15px 0;width:50%}.brands .brands-items a.brands-pic{float:left;width:280px;height:136px;display:block}.brands .brands-items a.brands-pic img{width:100%;height:100%}.brands .brands-items .brand-info{float:right;padding:0 20px;width:255px;color:#000}.brands .brands-items .brand-info h3{width:100%;font-size:20px;line-height:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.brands .brands-items .brand-info .brand-desc{padding:12px 0;height:92px;font-size:14px;line-height:22px;overflow:hidden}.brands .pagination{margin:40px 0 80px;text-align:center}.brands .pagination a{height:24px;padding:0 9px;line-height:24px;display:inline-block;text-align:center;margin-right:8px;color:#222;font-size:12px}.brands .pagination a i{position:relative;top:-1px;font-size:10px;transform:scale(.8)}.brands .pagination a.cur{background:#222;color:#fff}.min-screen .brands .header-navs{margin-right:-10px}.min-screen .brands .sit-nav{padding-top:10px;font-size:12px}.min-screen .brands .sit-nav .sep{margin:0 6px}.min-screen .brands .brands-category{width:990px}.min-screen .brands .brands-tabs li a{width:190px;height:154px}.min-screen .brands .brands-tabs .hover-contain{height:25px}.min-screen .brands .brands-tabs .hover-contain .hoverarr{height:4px;width:190px}.min-screen .brands .brands-ad li img{width:240px;height:240px}.min-screen .brands .brands-ad li:first-child img{width:490px}.min-screen .brands .brands-logo a{margin-left:10px}.min-screen .brands .brands-logo a img{width:90px;height:37px}.min-screen .brands .brands-logo a:first-child{margin-left:0}.min-screen .brands .list-floor{width:1000px}.min-screen .brands .brandfloor .g-list{margin-top:-26px}.min-screen .brands .brandfloor li{margin-right:9px;margin-top:26px}.min-screen .brands .brandfloor li a{width:324px;height:214px}.min-screen .brands .singlegoods .g-list{margin-top:-10px}.min-screen .brands .singlegoods li{margin-right:10px;margin-top:10px}.min-screen .brands .singlegoods li a{width:240px;height:324px}.min-screen .brands .singlegoods .singlegoods-title{position:absolute;left:0;bottom:0;height:50px;width:100%}.min-screen .brands .singlegoods .singlegoods-title p{position:absolute;z-index:2;top:0;left:0;display:block;width:100%;height:100%;line-height:50px;font-size:18px;text-align:center;color:#fff}.min-screen .brands .video .g-list{margin-top:-10px}.min-screen .brands .video li{margin-right:9px;margin-top:10px}.min-screen .brands .video li a{width:324px;height:206px}.min-screen .brands .video .video-play{display:block;position:absolute;left:50%;top:50%;margin-left:-30px;margin-top:-28px;width:60px;height:56px;background-image:url(../assets/img/index/play.png?v155e77e3d47)}.min-screen .brands .video .video-title{position:absolute;left:0;bottom:0;height:30px;width:100%}.min-screen .brands .video .video-title p{position:absolute;z-index:2;top:0;left:0;display:block;width:100%;height:100%;font-size:14px;line-height:30px;text-align:center;color:#fff}.min-screen .brands .news .news-pic{width:660px;height:376px}.min-screen .brands .news .news-pic .slide-container,.min-screen .brands .news .news-pic .slide-container img{height:376px}.min-screen .brands .news .news-txt{width:284px;height:334px}.min-screen .brands .news .news-txt li{margin-bottom:13px}.min-screen .brands .ads{margin-bottom:30px}.min-screen .brands .ads li{margin-right:10px;margin-bottom:10px}.min-screen .brands .ads li a{width:240px}.min-screen .brands .ads li a img{height:138px}.min-screen .brands .ads li .name{font-size:14px}.min-screen .brands .ads li .des{font-size:12px}.min-screen .brands .brands-items a.brands-pic{width:240px;height:116px}.min-screen .brands .brands-items .brand-info{width:212px}.min-screen .brands .brands-items .brand-info .brand-desc{height:72px}.brands-layer{position:absolute;z-index:9;top:-83px;left:15px;width:325px;height:287px;background:url(../assets/img/index/brands-layer.png?v155e77e3d44) no-repeat;font-weight:400}.brands-layer .layer-content{padding:20px 20px 20px 35px}.brands-layer .layer-content .title{font-size:24px;line-height:24px;border-bottom:1px solid #ccc;padding-bottom:5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.brands-layer .layer-content .desc{margin:5px 0;height:72px;overflow:hidden}.brands-layer .layer-content .desc img{width:80px;height:50px;margin:3px 5px 0 0;float:left}.brands-layer .layer-content .desc .right{width:180px;float:right;font-size:12px;line-height:150%;max-height:80px}.brands-layer .layer-content .featured{font-size:16px;margin-right:-15px}.brands-layer .layer-content .featured img{height:100px;width:80px;float:left;margin:15px 15px 0 0}.brands-layer-right{background:url(../assets/img/index/brands-layer.png?v155e77e3d44) no-repeat 0 -287px;left:-325px;top:-83px}.brands-layer-right .layer-content{padding:20px 35px 20px 20px}.coupon-page{width:1150px;margin:10px auto 0}.coupon-page .slide-container{position:relative}.coupon-page .slide-wrapper{position:relative;height:450px;overflow:hidden}.coupon-page .slide-wrapper ul{position:relative;height:100%}.coupon-page .slide-wrapper li{display:none;position:absolute;top:0;right:0;width:100%;height:100%}.coupon-page .slide-wrapper li a{display:block;height:100%;width:1150px;margin:0 auto}.coupon-page .slide-wrapper li img{width:100%;height:100%}.coupon-page .slide-switch,.coupon-page .slide-wrapper:hover .slide-switch.show,.coupon-page .slide-wrapper li:first-child{display:block}.coupon-page .slide-switch a{position:absolute;top:50%;margin:-30px 0 0;width:60px;height:60px;line-height:56px;text-align:center;z-index:2;background:#fff;opacity:.55;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=55)"}.coupon-page .slide-switch a .iconfont{font-size:32px;color:#59585a}.coupon-page .slide-switch a.prev{left:50%;margin-left:-575px}.coupon-page .slide-switch a.next{right:50%;margin-right:-575px}.coupon-page .slide-switch a:hover{opacity:.9;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=90)"}.coupon-page .title{width:300px;margin:80px auto 40px;text-align:center;border:1px solid #000;height:31px;line-height:31px;position:relative}.coupon-page .title span{margin:5px}.coupon-page .coupon{display:inline-block;position:relative;width:282px;height:258px;margin-right:2px}.coupon-page .coupon img{width:100%;height:100%}.coupon-page .coupon .coupon-mask{width:100%;height:259px;background-color:rgba(0,0,0,.6);position:absolute;top:0;left:0;right:0;z-index:8}.coupon-page .coupon .info{width:78px;height:78px;position:absolute;right:2px;bottom:-1px}.coupon-page .coupon .info>div{width:100%;height:38px;font-size:16px;color:#fff;text-align:center;position:absolute;top:50%;margin-top:-19px}.coupon-page .coupon .info p{margin-bottom:5px}.coupon-page .coupon .info .guang{width:50px;height:18px;line-height:18px;font-size:12px;background-color:#fff;color:#d0021b;margin:0 auto}.me-page{width:990px;margin:0 auto 20px}.me-page .home-path{height:40px;line-height:40px;color:#ccc;font-size:12px}.me-page .home-path .path-icon{float:left;display:block;background-image:url(../assets/img/sprite.home.png?v155e77e4829);background-position:-22px -24px;width:15px;height:15px;margin-right:10px;margin-top:11px}.me-page .home-path a,.me-page .home-path span{color:#666}.me-page .home-path span{font-weight:700}.me-page .block{border:1px solid #dedede;border-radius:2px}.me-page .me-main .block{margin-bottom:10px}.me-page .title{height:40px;line-height:40px;padding:0 8px;background-color:#e3e3e3;background-position:10px 12px;background-repeat:no-repeat}.me-page .user-thumb{text-align:center;padding:20px 0;background:#f8f8f8}.me-page .user-thumb .thumb-bg{width:100px;height:100px;padding:5px 7px 7px 5px;margin:0 auto;background:url(../assets/img/home/thumb-bg.png?v155e77e3da4)}.me-page .user-thumb .default-user-thumb,.me-page .user-thumb img{width:100px;height:100px}.me-page .user-thumb .default-user-thumb{background:url(../assets/img/home/default-thumb.png?v155e77e3d5f) no-repeat;background-size:100%}.me-page .home-navigation{float:left;width:180px;margin-right:8px}.me-page .home-navigation .ucenter{background-image:url(../assets/img/home/ucenter.png?v155e77e3da5)}.me-page .nav-group .row{height:38px;line-height:38px;border-top:1px solid #e2e2e2;padding-left:35px;color:#666;background:#f8f8f8;font-size:12px}.me-page .nav-group .row a{display:inline-block;color:#666}.me-page .nav-group .row span{color:#e0012b;font-weight:700}.me-page .nav-group .row.active{background:#636363}.me-page .nav-group .row.active a{color:#fff}.me-page .nav-group .row.first{border-top:none}.me-page .nav-group li:hover{background:#fff;color:#000}.me-page .nav-group .nav-title{font-size:14px;border-top:1px solid #ccc;border-bottom:1px solid #ccc;color:#333;background:#e6e6e6;padding-left:0}.me-page .nav-group .nav-title .title-icon{float:left;display:block;width:15px;height:15px;background-image:url(../assets/img/sprite.home.png?v155e77e4829);background-position:-48px 0;margin:10px 10px 0}.me-page .me-main{float:left;width:800px;min-height:945px}.me-page .me-pager{width:778px;height:22px;line-height:22px;background:#f3f3f3;border-top:1px solid #e3e3e3;padding:10px;font-size:12px;color:#666}.me-page .me-pager .check-all{margin:0;vertical-align:text-top;margin-right:5px}.me-page .me-pager .del-checked{cursor:pointer;margin-left:5px}.me-page .me-pager .del-checked:hover{color:#468fa2;text-decoration:underline}.me-page .me-pager a{border:1px solid #cecece;padding:0 6px;height:18px;line-height:18px;border-radius:2px;margin-right:4px;background-color:#fff}.me-page .me-pager a.cur,.me-page .me-pager a:hover{background-color:#222;color:#fff}.me-page .me-pager .pager-html{display:inline}.me-page .help-us{height:20px;line-height:20px;font-size:12px}.me-page .help-us a{color:#468fa2}.me-page .help-us .help-us-icon{display:inline-block;width:12px;height:12px;margin-right:8px;margin-top:-3px;vertical-align:middle;background-image:url(../assets/img/sprite.home.png?v155e77e4829);background-position:-48px -17px}.me-page .empty-tip{padding:200px 0;text-align:center;overflow:hidden}.me-page .tabs{height:25px;margin:10px;background:url(../assets/img/home/tab.png?v155e77e3da3) repeat-x 0 -25px;font-size:12px;line-height:25px;padding-left:10px}.me-page .tabs li{display:block;float:left;width:88px;height:25px;text-align:center;background:url(../assets/img/home/tab.png?v155e77e3da3) no-repeat -92px 0;margin-right:3px;color:#333}.me-page .tabs li.active{background-position:0 0;font-weight:700}.me-page .tabs a{display:block;width:100%;height:100%}.me-page .table-header{height:30px;line-height:30px;background:#efefef;border:1px solid #e6e6e6;padding:0 10px}.me-page .table-header>span{display:block;float:left;text-align:center}.me-page .advance-buy-tag,.me-page .freebie-tag,.me-page .presall-tag,.me-page .virtual-good-tag{display:block;position:absolute;bottom:0;left:0;right:0;height:15px;line-height:16px;text-align:center;color:#fff}.me-page .freebie-tag{background:#88be51}.me-page .advance-buy-tag{background:#fc1264}.me-page .presall-tag,.me-page .virtual-good-tag{background:#333}.default-me-page .message-tip{box-sizing:border-box;width:800px;height:40px;line-height:40px;padding:0 10px;margin-bottom:10px;background:#faf6d9;border:1px solid #f5e8c5;border-radius:2px;font-weight:700;font-size:12px}.default-me-page .message-tip a{color:#468fa2;font-weight:400}.default-me-page .message-tip b{color:#e8044f;margin-right:5px}.default-me-page .message-tip .close{float:right;cursor:pointer;font-weight:400}.default-me-page .more{display:block;float:right;height:21px;line-height:22px;width:63px;margin-top:8px;padding-right:8px;font-size:12px;color:#fdfdfd;text-align:center;border-radius:2px;background:url(../assets/img/home/btn-more.png?v155e77e3d53) no-repeat}.default-me-page .brands ul{padding:10px 0 10px 10px}.default-me-page .brands ul li{float:left;width:122px;height:103px;border:1px solid #f6f6f6;margin-right:7px;overflow:hidden}.default-me-page .brands ul img{width:80px;height:50px;display:block;vertical-align:middle;margin:15px auto}.default-me-page .brands ul .brand-name{display:block;width:114px;height:18px;line-height:18px;color:#333;background:#f4f4f4;font-size:12px;text-align:center;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin:0 auto}.default-me-page .new-arrival,.default-me-page .recommend{overflow:hidden}.default-me-page .new-arrival .na-pager-wrap,.default-me-page .recommend .na-pager-wrap{float:right}.default-me-page .new-arrival .na-pager-wrap .next,.default-me-page .new-arrival .na-pager-wrap .pre,.default-me-page .recommend .na-pager-wrap .next,.default-me-page .recommend .na-pager-wrap .pre{display:inline-block;height:22px;line-height:22px;margin-top:8px;padding:0 6px;font-size:12px;color:#fff;background:#646464;text-align:center;border-radius:2px;cursor:pointer}.default-me-page .new-arrival .na-pager-wrap .next .iconfont,.default-me-page .new-arrival .na-pager-wrap .pre .iconfont,.default-me-page .recommend .na-pager-wrap .next .iconfont,.default-me-page .recommend .na-pager-wrap .pre .iconfont{font-size:12px}.default-me-page .new-arrival .na-pager-wrap .no-visible,.default-me-page .recommend .na-pager-wrap .no-visible{visibility:hidden}.default-me-page .new-arrival ul,.default-me-page .recommend ul{width:800px;height:218px;overflow:hidden}.default-me-page .new-arrival li,.default-me-page .recommend li{float:left;width:101px;height:160px;padding:29px;border-right:1px solid #e3e3e3;text-align:center;font-size:12px;overflow:hidden}.default-me-page .new-arrival li .thumb,.default-me-page .recommend li .thumb{width:100px;height:100px}.default-me-page .new-arrival li .name,.default-me-page .recommend li .name{margin:10px 0;text-decoration:underline;color:#666;line-height:14px}.default-me-page .new-arrival li .price,.default-me-page .recommend li .price{color:#000}.default-me-page .new-arrival li p,.default-me-page .recommend li p{height:28px;overflow:hidden}.default-me-page .recommend{margin-bottom:10px}.default-me-page .recommend ul{width:990px}.default-me-page .recommend li{width:106px}.default-me-page .ho-btm{float:right;width:800px}.default-me-page .banner{display:block;width:800px;border:none}.default-me-page .latest-orders .title{background-image:url(../assets/img/home/latest-orders.png?v155e77e3d79)}.default-me-page .brands .title{background-image:url(../assets/img/home/brands.png?v155e77e3d51)}.default-me-page .new-arrival .title{background-image:url(../assets/img/home/new-arrival.png?v155e77e3d7b)}.default-me-page .recommend .title{background-image:url(../assets/img/home/recommend.png?v155e77e3d87)}.me-orders{font-size:12px}.me-orders .right{float:right}.me-orders .order-table-header .info{width:330px;text-align:left;padding-left:10px}.me-orders .order-table-header .price{width:75px}.me-orders .order-table-header .count{width:60px}.me-orders .order-table-header .operation,.me-orders .order-table-header .order-status,.me-orders .order-table-header .pay{width:100px}.me-orders .order-title{height:28px;line-height:28px;background:#efefef;padding:0 5px;border-bottom:1px solid #e6e6e6}.me-orders .order{margin:10px;border:1px solid #e6e6e6;border-radius:2px}.me-orders .order .order-wrap{position:relative;display:table;text-align:center}.me-orders .order .order-wrap>*{display:table-cell;vertical-align:middle}.me-orders .order li{display:table;border-top:1px solid #e6e6e6}.me-orders .order li>div{display:table-cell;color:#666;text-align:center;vertical-align:middle}.me-orders .order li:first-child{border-top:none}.me-orders .order .thumb-wrap{position:relative}.me-orders .order .thumb{width:60px;height:60px}.me-orders .order .info{position:relative;width:320px;text-align:left;padding:10px 0 10px 10px}.me-orders .order .info>*{float:left}.me-orders .order .info .color-size{color:#999}.me-orders .order .info .arrival-date{color:#e8044f;margin-left:2px}.me-orders .order .text-info{position:absolute;padding:5px;bottom:10px;left:72px}.me-orders .order .text-info>*{display:block;line-height:18px}.me-orders .order .name{color:#468fa2;max-width:245px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.me-orders .order .had-refund{color:#e8044f}.me-orders .order .price{width:80px;padding:5px;font-weight:700}.me-orders .order .price .free-icon{display:block;width:37px;height:18px;line-height:18px;font-size:12px;text-align:center;color:#80bb45;background:#e7fbc0;margin:5px auto;border:1px solid #80bb45;border-radius:3px}.me-orders .order .price.free-price em{text-decoration:line-through}.me-orders .order .count{width:50px}.me-orders .order .operation,.me-orders .order .order-status,.me-orders .order .pay{width:90px;border-left:1px solid #e6e6e6;padding:5px}.me-orders .order .pay{font-weight:700}.me-orders .order .pay-tip{font-weight:400;display:block;line-height:18px;color:#999}.me-orders .order .op-item{display:block;color:#468fa2;line-height:18px}.me-orders .order .op-item.op-dis{color:#999}.me-orders .order .no-pay,.me-orders .order .paid{color:#e8044f}.me-orders .order .order-status span{line-height:18px;color:#999}.me-orders .order .order-status .cancel{color:#e8044f}.me-orders .order .check-logistics{display:block;cursor:pointer;color:#468fa2}.me-orders .order .cancel{color:#e8044f}.me-orders .order .logistics{position:absolute;padding:20px 12px;color:#ff8341;border:1px solid #c9c9c9;background:#fff;right:185px;margin-top:-40px;z-index:11}.me-orders .order .logistics li{line-height:18px;white-space:nowrap}.me-orders .order .logistics .close-logistics{position:absolute;top:0;right:0;color:#c9c9c9;cursor:pointer}.me-orders .order .logistics .right-triangle{position:absolute;width:0;height:0;right:-6px;top:24px}.me-orders .order .logistics .right-triangle.top{margin-top:1px;border-top:5px solid transparent;border-bottom:5px solid transparent;border-left:6px solid #fff}.me-orders .order .logistics .right-triangle.bottom{margin-right:-1px;border-top:6px solid transparent;border-bottom:6px solid transparent;border-left:7px solid #c9c9c9}.me-orders .order .operation>*{cursor:pointer}.me-orders .order .operation .pay-now{display:block;color:#fff;background:#de034a;height:20px;line-height:20px;text-align:center;margin:0 auto;border-radius:4px;width:68px}.me-orders .order .operation .rebuy{display:inline-block;box-sizing:border-box;width:68px;height:18px;line-height:18px;border-radius:5px;text-align:center;border:1px solid #000}.me-history-orders .order-table-header .info,.me-history-orders .order .info{width:520px}.me-history-orders .order .info{text-align:center}.me-history-orders .order-table-header .order-sum,.me-history-orders .order .order-sum{width:90px;text-align:left}.me-history-orders .order li{border:none}.cancel-dialog{width:600px;background:#fff;padding:20px 30px 35px}.cancel-dialog header{font-size:18px;padding-bottom:20px;border-bottom:1px solid #e8e8e8;color:#000;text-align:left}.cancel-dialog .close{top:15px;right:30px}.cancel-dialog .close .iconfont{font-size:30px}.cancel-dialog .cancel-reason{text-align:left}.cancel-dialog .cancel-reason li{float:left;width:50%;height:28px;line-height:28px;font-size:14px}.cancel-dialog .cancel-reason label{padding-left:10px}.cancel-dialog .cancel-reason input[type=text]{margin-left:10px;height:24px;text-indent:5px}.cancel-dialog .cancel-tip{margin-top:20px;color:#d60248;font-size:14px;padding-left:17px;text-align:left}.cancel-dialog .btns{padding:15px 30px 0;text-align:center}.cancel-dialog .btns .btn{height:35px;font-size:15px;line-height:35px}.cancel-dialog .btns .cancel-sure{width:130px;color:#fff;background:#000;border:none}.cancel-dialog .btns .cancel-no{margin-left:30px;background:#fff;color:#000;border-color:#000;width:126px}.cancel-dialog .tip{margin:20px 0;font-size:12px;text-align:left;color:#db3d50}.cancel-dialog .reminder{margin:20px 0 10px}.cancel-dialog .info-prompt ul{margin-top:-10px}.cancel-dialog .info-prompt li{margin:10px 0;font-size:14px;line-height:16px;text-align:left}.cancel-dialog .info-prompt i{color:#d70400;font-family:SimSun;font-size:16px;margin-right:10px;vertical-align:-6px}.message-dialog{width:350px;background:#fff;padding:20px 30px 35px}.message-dialog .message-title{margin-top:40px;margin-bottom:27px;font-size:24px;font-weight:700}.message-dialog .message-summary{width:250px;margin:0 auto 22px;font-size:14px;word-wrap:break-word;line-height:20px}.message-dialog .btns{padding:15px 30px 0;text-align:center}.message-dialog .btns .btn{height:35px;font-size:15px;line-height:35px}.message-dialog .btns .message-sure{width:130px;color:#fff;background:#000;border:none}.message-dialog .close{top:15px;right:15px}.message-dialog .close .iconfont{font-size:30px}.edit-order-dialog{width:600px;background:#fff;padding:20px 30px 35px}.edit-order-dialog header{font-size:18px;padding-bottom:20px;border-bottom:1px solid #e8e8e8;color:#000;text-align:left}.edit-order-dialog .close{top:15px;right:30px}.edit-order-dialog .close .iconfont{font-size:30px}.edit-order-dialog .edit-order-info{text-align:left}.edit-order-dialog .edit-order-info li{height:26px;margin:20px 0;line-height:26px;font-size:14px;white-space:nowrap}.edit-order-dialog .edit-order-info .form-required{color:#d70400;font-family:SimSun;font-size:16px;margin-right:10px;vertical-align:-6px}.edit-order-dialog .edit-order-info label{display:inline-block;width:90px;text-align:right}.edit-order-dialog .edit-order-info .inp{width:188px;height:18px;line-height:18px;padding:3px 0;border:1px solid #e8e8e8;margin-left:10px;text-indent:5px;box-sizing:content-box}.edit-order-dialog .edit-order-info .w271{width:271px}.edit-order-dialog .edit-order-info .w40{width:40px}.edit-order-dialog .edit-order-info .inp[name=tel]{margin-left:0}.edit-order-dialog .ml10{margin-left:10px}.edit-order-dialog select{height:25px;line-height:25px;width:100px;padding:0;border:1px solid #ccc}.edit-order-dialog .error{display:none;margin-left:10px;color:#db3d50;font-size:12px}.edit-order-dialog .error .icon-error{margin-right:8px;vertical-align:text-bottom}.edit-order-dialog .btns{padding:15px 30px 0;text-align:center}.edit-order-dialog .btns .btn{height:35px;font-size:15px;line-height:35px}.edit-order-dialog .btns .edit-sure{width:130px;color:#fff;background:#000;border:none}.edit-order-dialog .btns .edit-no{margin-left:30px;background:#fff;color:#000;border-color:#000;width:126px}.edit-order-dialog .tip{margin:20px 0;font-size:12px;text-align:left;color:#db3d50}.order-icon{display:inline-block;vertical-align:middle;margin-right:10px;background:url(../assets/img/home/order-sprite.png?v155e77e3d84)}.icon-success{background-position:0 0}.icon-success,.icon-waiting{width:30px;height:30px;vertical-align:-6px}.icon-waiting{background-position:-32px 0}.icon-arrow{width:11px;height:7px;background-position:-36px -33px}.icon-error{width:15px;height:15px;background-position:0 -33px}.icon-right{width:15px;height:15px;background-position:-50px -33px}.icon-recycle{width:15px;height:17px;background-position:-18px -33px}.orders-me-page .orders .title{padding-left:130px;line-height:40px;background-image:url(../assets/img/home/orders.png?v155e77e3d85);font-size:12px;font-weight:700}.orders-me-page .order-table-header{padding:0;margin:0 10px;border:1px solid #e6e6e6}.order-detail-page{font-size:12px}.order-detail-page .order-detail>.title{background-image:url(../assets/img/home/order-detail.png?v155e77e3d80)}.order-detail-page .status{margin:10px 0;padding:10px;background:#efefef;border-bottom:1px solid #e6e6e6}.order-detail-page .status p{margin:5px 0;line-height:18px}.order-detail-page .status .cur-status{color:#e8044f}.order-detail-page .status .complete-tip{color:#999}.order-detail-page .status .cancel-order{margin-right:20px}.order-detail-page .status .cancel-order,.order-detail-page .status .edit-order{float:right;background:#ebebeb;border:1px solid #c1c1c1;color:#000}.order-detail-page .status .edit-order-active{background:#444;border:1px solid #444;color:#fff}.order-detail-page .status .go-pay{margin-left:60px}.order-detail-page .detail-info{padding:10px}.order-detail-page .sub-title{height:21px;line-height:21px;border:1px solid #e6e6e6;color:#333;background:#efefef}.order-detail-page .sub-title .icon{display:inline-block;height:11px;width:11px;background-image:url(../assets/img/home/complaint-icon.png?v155e77e3d58);margin:5px 5px 0}.order-detail-page .content{padding:10px 20px 20px}.order-detail-page .content p{line-height:18px}.order-detail-page .order-progress{padding-top:20px}.order-detail-page .order-progress li{position:absolute;width:150px;line-height:15px;top:20px}.order-detail-page .order-progress .cur{color:#e9034e;font-weight:700}.order-detail-page .order-progress .date{display:block;color:#999;padding-left:12px}.order-detail-page .progress-box{position:relative;width:552px;height:70px;margin:0 auto}.order-detail-page .progress-box .pg-0{left:-20px}.order-detail-page .progress-box .pg-1{left:145px}.order-detail-page .progress-box .pg-2{left:330px}.order-detail-page .progress-box .pg-3{left:515px}.order-detail-page .virtual-detail .pg-1{left:245px}.order-detail-page .virtual-detail .pg-2{left:515px}.order-detail-page .virtual-detail .outter-progress{background:url(../assets/img/home/virtual-order-progress.png?v155e77e3da8) no-repeat 0 0}.order-detail-page .virtual-detail .inner-progress{background:url(../assets/img/home/virtual-order-progress.png?v155e77e3da8) no-repeat 0 -12px}.order-detail-page .outter-progress{width:552px;height:12px;background:url(../assets/img/home/order-progress.png?v155e77e3d82) no-repeat 0 0}.order-detail-page .inner-progress{height:12px;background:url(../assets/img/home/order-progress.png?v155e77e3d82) no-repeat 0 -12px}.order-detail-page .handle-time{width:300px}.order-detail-page .recive-place{width:200px}.order-detail-page .logistics-info{width:800px}.order-detail-page .trace-order td,.order-detail-page .trace-order th{line-height:18px}.order-detail-page .invoice-type,.order-detail-page .invoice-type p{display:inline-block}.order-detail-page .invoice-button{display:inline-block;margin-left:20px;color:#d93549;border:1px solid #444;padding:5px}.order-detail-page .differentOrder{position:relative;width:100%;margin-top:10px}.order-detail-page .differentOrder .warn{text-align:center;background:#fefbd5;font:initial;height:40px;line-height:40px;font-size:16px}.order-detail-page .differentOrder .warn .red{color:red}.order-detail-page .differentOrder .warn .why{background-image:url(../assets/img/sprite.order.png?v155e77e4829);background-position:-366px -160px;width:26px;height:20px;display:inline-block;vertical-align:middle}.order-detail-page .differentOrder .warn .why:hover{cursor:pointer}.order-detail-page .differentOrder .differentBag:before{content:"";position:absolute;width:0;height:0;border-bottom:10px solid #000;border-left:10px solid transparent;border-right:10px solid transparent;top:-10px;right:113px}.order-detail-page .differentOrder .differentBag{display:none;position:absolute;right:-10px;top:40px;width:510px;padding:0 50px;background:#fff;z-index:1;border:1px solid #000;font-size:14px}.order-detail-page .differentOrder .bag{position:relative;border-bottom:1px solid #e0e0e0;margin-top:10px;padding:20px 0}.order-detail-page .differentOrder .bag h3{height:30px;line-height:30px;font-weight:700;margin-left:15px}.order-detail-page .differentOrder .bag .pre{background-position:0 -261px;left:-30px}.order-detail-page .differentOrder .bag .next,.order-detail-page .differentOrder .bag .pre{position:absolute;background-image:url(../assets/img/sprite.order.png?v155e77e4829);width:30px;height:50px;top:70px;display:none;cursor:pointer}.order-detail-page .differentOrder .bag .next{background-position:-32px -261px;right:-30px}.order-detail-page .differentOrder .bag p{color:#767676;margin-left:15px}.order-detail-page .differentOrder .bagDetil{position:relative;height:90px;width:510px;overflow:hidden;margin-bottom:20px}.order-detail-page .differentOrder .bagDetil ul{list-style:none;position:absolute;left:0;clear:both;height:90px}.order-detail-page .differentOrder .bagDetil ul li{float:left;width:102px;height:90px;line-height:90px;text-align:center;position:relative}.order-detail-page .differentOrder .bagDetil ul li img{width:90px;height:90px}.order-detail-page .differentOrder .bagDetil ul li p{position:absolute;bottom:0;background:#9c3;width:90px;height:1rem;line-height:1rem;color:#fff;margin-left:7px}.order-detail-page .differentOrder .bagDetil ul li a,.order-detail-page .differentOrder .bagDetil ul li a:hover{cursor:default}.order-detail-page .good-list table{border-collapse:collapse}.order-detail-page .good-list thead{height:25px;line-height:25px;background:#000;padding:2px 5px;color:#fff}.order-detail-page .good-list td,.order-detail-page .good-list th{padding:5px;text-align:center;border-right:1px solid #e6e6e6;border-bottom:1px solid #e6e6e6}.order-detail-page .good-list th{border-color:#000}.order-detail-page .good-list tr td:last-child,.order-detail-page .good-list tr th:last-child{border-right:none}.order-detail-page .good-list .product-info{width:314px}.order-detail-page .good-list .good-price,.order-detail-page .good-list .num,.order-detail-page .good-list .sum{width:91px}.order-detail-page .good-list .yoho-coin{width:100px}.order-detail-page .good-list .yoho-coin a{display:inline-block;width:12px;height:12px;background-image:url(../assets/img/sprite.home.png?v155e77e4829);background-position:0 -44px;vertical-align:text-top}.order-detail-page .good-list .thumb-link{float:left;position:relative;margin-left:5px;margin-right:10px}.order-detail-page .good-list .thumb{display:block;width:60px;height:60px}.order-detail-page .good-list .name-color-size{float:left;color:#999;padding-top:12px;text-align:left}.order-detail-page .good-list .name{display:block;color:#468fa2;line-height:18px;text-align:left;max-width:230px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.order-detail-page .order-balance{text-align:right;border-bottom:1px solid #e6e6e6;padding:10px 0}.order-detail-page .order-balance .back-coin{height:30px}.order-detail-page .order-balance .yoho-coin{width:14px;height:14px;display:inline-block;background-image:url(../assets/img/sprite.cart.png?v155e77e4827);background-position:-321px -225px;vertical-align:middle;margin-top:-2px;margin-right:4px}.order-detail-page .order-balance em{font-weight:700}.order-detail-page .order-balance .payment{color:#e8044f}.order-detail-page .oo-btn{display:inline-block;height:30px;width:92px;line-height:30px;text-align:center;border-radius:3px;color:#fff;cursor:pointer}.order-detail-page .go-pay{background:#d9044a;border:1px solid #c54b73}.order-detail-page .order-operation{text-align:right;padding:20px 10px}.order-detail-page .order-operation .oo-icon{display:inline-block;height:22px;width:22px;vertical-align:text-bottom}.order-detail-page .order-operation .success-icon{background-image:url(../assets/img/sprite.home.png?v155e77e4829);background-position:0 0}.order-detail-page .order-operation .cancel-icon{background-image:url(../assets/img/sprite.home.png?v155e77e4829);background-position:-24px 0}.order-detail-page .order-operation .confirm-received{display:block;float:right;margin-top:5px;background:#d9044a;border:1px solid #c54b73}.order-detail-page .order-operation .cancel-order{background:#ebebeb;border:1px solid #c1c1c1;color:#000}.order-detail-page .freebie-tag{background:#9c3}.order-detail-page .advance-buy-tag{background:#fc1264}.order-detail-page .virtual-good-tag{background:red}.order-detail-page .presall-tag{background:blue}.order-ticket-page{font-size:12px}.order-ticket-page .order-ticket .title{background-image:url(../assets/img/home/orders.png?v155e77e3d85)}.order-ticket-page .ticket-info{padding:20px 10px}.order-ticket-page .ticket-info .ticket-tag{display:inline-block;width:72px;height:19px;line-height:19px;text-align:center;font-size:12px;color:#fff;background:#000;border-radius:3px;margin-right:5px}.order-ticket-page .ticket-info .order-num{margin-left:10px}.order-ticket-page .ticket-info .return-to-orders{float:right;color:#468fa2}.order-ticket-page .qr-codes{width:768px;padding:10px 0 10px 10px;border:1px solid #e7e7e7;background:#fff;margin:0 auto}.order-ticket-page .qr-codes li{float:left;width:232px;height:260px;margin:10px;border:1px solid #e7e7e7;word-break:break-all;overflow:hidden;text-align:center}.order-ticket-page .qr-codes .qr{width:230px;height:230px}.order-ticket-page .tickets-tip{width:758px;padding:10px;border:1px solid #e7e7e7;background:#fff;margin:20px auto}.order-ticket-page .tickets-tip p{padding-left:20px;padding-bottom:10px;line-height:20px;background:url(../assets/img/home/qr-tip.png?v155e77e3d86) no-repeat -27px 5px}.order-ticket-page .tickets-tip .warn{background-position:0 -23px}.red-envelopes-page{font-size:12px}.red-envelopes-page .red-envelopes>.title{font-size:14px;font-weight:700}.red-envelopes-page .re-header{height:25px;line-height:25px;width:100%;text-align:center;border-bottom:1px solid #e6e6e6;background:#efefef}.red-envelopes-page .re-header span{display:inline-block;width:33%}.red-envelopes-page .money{color:#d52c29;font-family:微软雅黑;font-size:20px;font-weight:700}.red-envelopes-page .re-icon{display:inline-block;width:20px;height:18px;background-image:url(../assets/img/sprite.home.png?v155e77e4829);background-position:0 -24px}.red-envelopes-page .red-envelopes-list{display:table;width:100%}.red-envelopes-page .red-envelopes-list li{display:table-row;color:#666;border-top:1px solid #e6e6e6}.red-envelopes-page .red-envelopes-list li>*{display:table-cell;width:33%;padding:10px;text-align:center;vertical-align:middle;border-left:1px solid #e6e6e6}.red-envelopes-page .red-envelopes-list li>:first-child{border-left:none}.red-envelopes-page .red-envelopes-list .use-remark{text-align:left;line-height:18px}.me-coupons-page{font-size:12px}.me-coupons-page .coupons>.title{font-size:14px;font-weight:700}.me-coupons-page .coupons-header{width:776px;height:25px;line-height:25px;text-align:center;border:1px solid #e6e6e6;background:#efefef;margin:0 auto}.me-coupons-page .coupons-header span{display:block;float:left}.me-coupons-page .coupon{display:table;border:1px solid #e6e6e6;width:778px;margin:10px auto;text-align:center;color:#666}.me-coupons-page .coupon>*{display:table-cell;vertical-align:middle;border-left:1px solid #e6e6e6;padding:5px;line-height:18px}.me-coupons-page .coupon .coupons-img{border-left:none}.me-coupons-page .coupon .end-soon{color:#e8044f}.me-coupons-page .un-use-coupons .coupons-img{width:20%}.me-coupons-page .un-use-coupons .value{width:18%}.me-coupons-page .un-use-coupons .term-of-validity{width:22%}.me-coupons-page .un-use-coupons .term-of-validity span{display:none}.me-coupons-page .un-use-coupons .use-remark{width:24%}.me-coupons-page .un-use-coupons .status{width:16%}.me-coupons-page .un-use-coupons .end-soon span{display:inline;padding:3px 10px;color:#fff;background:#e8044f}.me-coupons-page .used-coupons .coupon>*,.me-coupons-page .used-coupons .coupons-header>span{width:16.66%}.me-coupons-page .no-valid-coupons .coupon>*,.me-coupons-page .no-valid-coupons .coupons-header>span{width:25%}.me-currency-page{font-size:12px}.me-currency-page .currencies>.title{background-image:url(../assets/img/home/currency.png?v155e77e3d5e)}.me-currency-page .my-currency{height:58px;line-height:58px;font-weight:700;border-bottom:1px solid #e8e8e8;font-size:18px;color:#333;margin:0 10px}.me-currency-page .my-currency em{color:#ff2400;font-weight:400}.me-currency-page .my-currency.has-tip{border-bottom:none}.me-currency-page .currency-tip{height:40px;line-height:24px;font-size:18px;color:#333;font-weight:700;margin:-16px 10px 0;border-bottom:1px solid #e8e8e8}.me-currency-page .currency-tip em{color:#ff2400;font-weight:400}.me-currency-page .currency,.me-currency-page .tab-wrap{margin:0 10px}.me-currency-page .tab-wrap{position:relative}.me-currency-page .tab-wrap .options-helper{position:absolute;right:10px;top:0}.me-currency-page .tab-wrap .coin-helper{margin-left:10px;color:#468fa2}.me-currency-page .tabs{margin-left:0;margin-right:0}.me-currency-page .currency-header{height:25px;line-height:25px;text-align:center;border:1px solid #e6e6e6;background:#efefef;margin:0 10px}.me-currency-page .currency-header span{display:block;float:left;font-size:14px;font-weight:700}.me-currency-page .currency-header .date{width:159px}.me-currency-page .currency-header .income-expenditure{width:317px}.me-currency-page .currency-header .remark{width:300px}.me-currency-page .currency{display:table;border:1px solid #e6e6e6;margin-bottom:20px;border-bottom:none}.me-currency-page .currency li{display:table-row;text-align:center;font-size:14px;height:50px;line-height:50px}.me-currency-page .currency li>*{display:table-cell;border-left:1px solid #e6e6e6;border-bottom:1px solid #e6e6e6;vertical-align:middle;color:#666;padding:5px;line-height:18px}.me-currency-page .currency li>:first-child{border-left:none}.me-currency-page .currency .date{width:155px}.me-currency-page .currency .remark{width:300px}.me-currency-page .currency .remark>a{color:#468fa2;margin-left:10px;text-decoration:underline}.me-currency-page .currency .income-expenditure{width:320px;color:#73a7b5}.me-currency-page .currency .income{color:#e10049}.me-favorite-page .favorite .title{background-image:url(../assets/img/home/favorite.png?v155e77e3d64)}.me-favorite-page .favorite-table-header{font-size:12px;padding:0}.me-favorite-page .favorite-table-header .options{width:136px}.me-favorite-page .fav-row{display:table;padding:10px 0;border-bottom:1px solid #e6e6e6}.me-favorite-page .fav-row>*{display:table-cell;vertical-align:middle}.me-favorite-page .fav-row .checkbox{width:40px;padding-left:10px}.me-favorite-page .del-favorite{color:#666;visibility:hidden;cursor:pointer}.me-favorite-page .fav-row:hover .del-favorite{visibility:visible}.me-favorite-page .empty-reduction,.me-favorite-page .favorite-articles,.me-favorite-page .favorite-brands,.me-favorite-page .favorite-products,.me-favorite-page .reduction-notice-tip{margin:0 10px;font-size:12px}.me-favorite-page .price-notice{position:absolute;width:320px;height:194px;z-index:12;top:50%;left:50%;margin-left:-160px;margin-top:-130px;background:#fff;border:1px solid #999;padding:20px;font-size:14px}.me-favorite-page .price-notice .close{position:absolute;display:block;top:5px;right:5px;width:46px;height:16px;cursor:pointer;background:#cdcdcd;color:#fff;border-radius:2px;font-size:12px}.me-favorite-page .price-notice .close:hover{background:#414141}.me-favorite-page .price-notice .price-notice-sure{display:block;width:82px;height:34px;line-height:34px;text-align:center;color:#fff;background:#e90024;font-weight:700;cursor:pointer;margin:20px auto 0}.me-favorite-page .price-notice .tip{line-height:20px;margin:20px 0}.me-favorite-page .price-notice label{margin-right:10px}.me-favorite-page .price-notice input{width:180px;height:30px;line-height:30px;color:#333;padding:0 5px;font-size:14px;border:1px solid #bebebe}.me-favorite-page .price-notice input.error{border-color:red}.me-favorite-page .price-notice .err-text{padding-left:70px;line-height:24px;color:red}.me-favorite-page .price-notice .err-text i{display:block;float:left;height:14px;width:14px;background-image:url(../assets/img/sprite.passport.png?v155e77e4828);background-position:-95px -113px;margin-right:5px;margin-top:5px}.me-favorite-page .price-notice .phone-diff{color:red;line-height:18px}.me-favorite-page .price-notice .success{text-align:center}.me-favorite-page .price-notice .success p{font-size:14px;line-height:22px;margin-top:20px}.me-favorite-page .price-notice .success .iconfont{color:#51c516;font-size:24px}.me-favorite-page .price-notice .success .notice-num{color:#e20d29}.me-favorite-page .price-notice .cue{text-align:center;padding:70px 0 50px;display:none}.me-favorite-page .price-notice .cue span{color:#e90024}.me-favorite-page .price-notice .cue p{font-size:14px;line-height:22px}.me-favorite-page .error .content,.me-favorite-page .error .success{display:none}.me-favorite-page .error .cue{display:block}.me-favorite-page .reduction-notice-tip{border:1px solid #e7e7e7;padding:20px;margin-bottom:10px}.me-favorite-page .reduction-notice-tip .notice-text{width:245px;float:left}.me-favorite-page .reduction-notice-tip h2{color:#000;font-size:14px;line-height:1.5}.me-favorite-page .reduction-notice-tip p{padding:10px 0;color:#999;font-size:12px;line-height:1.5}.me-favorite-page .reduction-notice-tip .notice-img{float:right;width:458px;height:197px;background:url(../assets/img/home/reduction-notice.jpg?v155e77e3d96)}.me-favorite-page .empty-reduction{text-align:center;font-size:14px;border:1px solid #e7e7e7;padding:40px;margin-bottom:20px}.me-favorite-page .empty-reduction a{display:inline-block;width:92px;height:30px;line-height:30px;color:#666;text-align:center;cursor:pointer;background:#ededed;border:1px solid #dbdbdb;border-radius:3px}.me-favorite-page .reduction-products{margin-bottom:20px}.fav-products .favorite-products>ul{padding-bottom:20px}.fav-products .sorts{position:relative;padding:10px 35px 10px 10px;min-height:20px;line-height:20px;margin:0 10px 10px;background:#f3f3f3;border:1px solid #e6e6e6;color:#ccc}.fav-products .sorts .sort{height:20px;line-height:20px;color:#666;font-size:12px;display:inline-block}.fav-products .sorts .sort.focus{background:url(../assets/img/home/sort-select.png?v155e77e3d9f) no-repeat 0;padding-left:18px;color:#fff}.fav-products .sorts .sort.focus a{display:inline-block;background:url(../assets/img/home/sort-select.png?v155e77e3d9f) no-repeat 100%;font-weight:700;color:#fff}.fav-products .sorts .sep{margin:0 10px}.fav-products .sorts .has-more{margin-left:10px}.fav-products .all-sorts{display:none}.fav-products .sort-btn{position:absolute;display:block;width:19px;height:19px;line-height:19px;right:10px;top:10px;text-align:center;border:1px solid #ececec;background:#fff;cursor:pointer}.fav-products .sort-btn .iconfont{color:#000;font-size:12px}.fav-products .reduction-filter{height:30px;line-height:30px;text-align:right;font-size:12px;margin:0 10px}.fav-products .reduction-notice{float:left;color:#666}.fav-products .favorite-goods{margin:0 10px;font-size:12px}.fav-products .favorite-goods>ul{padding-bottom:20px}.fav-products .favorite-table-header .info{width:390px;padding-left:50px;text-align:left}.fav-products .favorite-table-header .price{width:200px;text-align:left}.fav-products .fav-good{position:relative}.fav-products .fav-good .thumb{width:110px;text-align:center}.fav-products .fav-good .thumb img{width:100px}.fav-products .fav-good .text-info{width:270px;line-height:16px}.fav-products .fav-good .name{color:#468fa2;display:block}.fav-products .fav-good .name:hover{text-decoration:underline}.fav-products .fav-good .has-bought{display:inline-block;width:37px;height:15px;line-height:15px;text-align:center;color:#fff;background:#418fa3;border-radius:2px}.fav-products .fav-good .has-activity{color:#666;cursor:pointer}.fav-products .fav-good .price{width:200px;padding-left:10px}.fav-products .fav-good .price>em{font-weight:700;color:#e8044f;font-size:14px}.fav-products .fav-good .price .price-down{display:block;margin-top:5px}.fav-products .fav-good .price .price-down>em{color:#e8044f}.fav-products .fav-good .price .price-down .iconfont{font-size:12px}.fav-products .fav-good .options{width:136px;text-align:center}.fav-products .fav-good .options>*{display:block}.fav-products .fav-good .options .buy-again,.fav-products .fav-good .options .buy-now{width:92px;height:30px;line-height:30px;font-size:14px;text-align:center;border-radius:4px;margin:0 auto}.fav-products .fav-good .options .buy-now{color:#fff;background:#da044a}.fav-products .fav-good .options .buy-again{color:#666;background:#ececec;border:1px solid #cecece}.fav-products .fav-good .options .price-down-clock{line-height:20px;color:#666;cursor:pointer}.fav-products .fav-good .options .sold-out{color:#666}.fav-products .fav-good .options .buy-again,.fav-products .fav-good .options .buy-now,.fav-products .fav-good .options .sold-out{margin-top:12px}.fav-products .fav-good .activites{position:absolute;left:160px;right:0;top:120px;padding:10px 0;border-top:1px dashed #ccc}.fav-products .fav-good .activites li{line-height:18px}.fav-products .fav-good .activites .type{display:inline-block;width:54px;height:14px;line-height:14px;margin-right:5px;overflow:hidden;background:#6c6c6c;border-radius:2px;color:#fff;text-align:center;vertical-align:middle}.fav-products .fav-good .activites .arrow{position:absolute;width:13px;left:20px;top:-7px;height:7px;background-image:url(../assets/img/sprite.home.png?v155e77e4829);background-position:-48px -31px}.fav-products .fav-good:hover{background:#f3f3f3}.fav-brands .favorite-brands>ul{padding-bottom:20px}.fav-brands .favorite-table-header .name{width:190px;padding-left:50px;text-align:left}.fav-brands .favorite-table-header .col-count,.fav-brands .favorite-table-header .new-arrival{width:200px}.fav-brands .fav-brand{position:relative;font-size:12px}.fav-brands .fav-brand .thumb{width:190px}.fav-brands .fav-brand .thumb a{display:block;width:115px;padding:5px;text-align:center;border:1px solid #f4f4f4}.fav-brands .fav-brand .thumb .name{display:block;background:#f4f4f4;color:#666;line-height:18px}.fav-brands .fav-brand .thumb img{width:100px;height:100px}.fav-brands .fav-brand .col-count,.fav-brands .fav-brand .new-arrival{width:200px;text-align:center}.fav-brands .fav-brand .new-arrival{cursor:pointer}.fav-brands .fav-brand .options{width:136px;text-align:center}.fav-brands .fav-brand .brand-shop{display:block;width:92px;height:30px;line-height:30px;border:1px solid #c2c2c2;background:#ececec;text-align:center;cursor:pointer;margin:14px auto 10px;border-radius:2px;color:#666;font-size:14px}.fav-brands .fav-brand .na-list{position:absolute;left:50px;right:0;top:152px;padding:10px 0;border-top:1px dashed #ccc}.fav-brands .fav-brand .na-list .arrow{position:absolute;width:13px;left:265px;top:-7px;height:7px;background-image:url(../assets/img/sprite.home.png?v155e77e4829);background-position:-48px -31px}.fav-brands .fav-brand .na-good{width:102px;height:165px;padding:0 15px;text-align:left}.fav-brands .fav-brand .na-good-thumb{border:1px solid #ccc;width:100px;height:100px;vertical-align:middle}.fav-brands .fav-brand .na-good-name{color:#666;line-height:14px;margin:5px 0;max-height:28px;overflow:hidden}.fav-brands .fav-brand .na-content>*{float:left}.fav-brands .fav-brand .has-no-na{text-align:center;float:none;padding:20px 183px 20px 0}.fav-brands .fav-brand .has-sale{text-decoration:line-through}.fav-brands .fav-brand .na-next,.fav-brands .fav-brand .na-pre{display:block;width:31px;height:31px;line-height:33px;text-align:center;background:#f4f4f4;border:1px solid #eee;margin-top:66px}.fav-brands .fav-brand .na-next.hidden,.fav-brands .fav-brand .na-pre.hidden{visibility:hidden}.fav-brands .fav-brand .na-goods{width:660px;height:165px;padding-top:20px;overflow:hidden}.fav-brands .fav-brand .na-goods-ul{width:2640px}.fav-brands .fav-brand .na-goods-ul>li{float:left}.fav-articles .favorite-articles>ul{padding-bottom:20px}.fav-articles .fav-article:first-child{padding-top:8px}.fav-articles .bg-img{display:block;width:146px;height:96px;backgound-size:cover;background-position:50%}.fav-articles .text-info{width:559px;padding-left:20px}.fav-articles .name{display:block;font-weight:700;font-size:14px;line-height:30px;color:#000;width:550px;word-break:keep-all;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.fav-articles .name:hover{text-decoration:underline}.fav-articles .desc{color:#333;font-size:12px;line-height:24px;height:48px}.fav-articles .del-favorite{float:right;font-size:12px;cursor:pointer}.user-me-page{font-size:12px;line-height:150%}.user-me-page form{display:inline}.user-me-page strong{font-weight:700}.user-me-page .clear{zoom:1}.user-me-page .clear:after{content:".";display:block;height:0;visibility:hidden;overflow:hidden;clear:both}.user-me-page .userinfo-edit form{display:none}.user-me-page .userinfo-edit h2.title{background-image:url(../assets/img/home/edit/title-informations.png?v155e77e3e3c)}.user-me-page .account,.user-me-page .email,.user-me-page .gift,.user-me-page .mobile,.user-me-page .userpwd{font-size:12px;line-height:150%}.user-me-page .account .title,.user-me-page .email .title,.user-me-page .gift .title,.user-me-page .mobile .title,.user-me-page .userpwd .title{position:relative}.user-me-page .account .title h2,.user-me-page .email .title h2,.user-me-page .gift .title h2,.user-me-page .mobile .title h2,.user-me-page .userpwd .title h2{height:16px;font-size:14px;font-weight:700;line-height:16px;position:absolute;top:50%;margin-top:-8px}.user-me-page .account .title h2 span,.user-me-page .email .title h2 span,.user-me-page .gift .title h2 span,.user-me-page .mobile .title h2 span,.user-me-page .userpwd .title h2 span{font-size:10px;-webkit-transform:scale(.85);display:inline-block;line-height:15px;font-weight:400;padding-left:0}.user-me-page .address{font-family:arial,Microsoft YaHei}.user-me-page .address a{color:#468fa2;text-decoration:none}.user-me-page .address .a-underline{text-decoration:underline}.user-me-page .address input[type=button]{margin-top:0}.user-me-page .address input#address{width:340px}.user-me-page .address .title{position:relative}.user-me-page .address .title h2{width:66px;height:16px;background:url(../assets/img/home/edit/title-address.png?v155e77e3e3b) no-repeat;text-indent:-999em;float:left;position:absolute;top:50%;margin-top:-8px}.user-me-page .address .main{width:798px;padding:10px 1px 1px;float:left;border:1px solid #dedede;border-radius:2px}.user-me-page .address .address-list{width:776px;margin:0 10px;display:inline;border:1px solid #e6e6e6;border-bottom:0;float:left}.user-me-page .address .address-content{width:756px;padding:10px;border-bottom:1px solid #e6e6e6;float:left}.user-me-page .address .address-content.preferred{background:#fdfcdd;color:#333}.user-me-page .address .address-detail{width:596px;float:left}.user-me-page .address .address-edit{width:150px;padding:10px 0 10px 10px;text-align:center;float:left}.user-me-page .address.block{border:none}.user-me-page .btn-c3{height:22px;background:url(../assets/img/home/edit/btn_hs.png?v155e77e3e32) no-repeat left -66px;padding-left:8px;display:inline-block}.user-me-page .btn-c3 span{height:22px;line-height:21px;background:url(../assets/img/home/edit/btn_hs.png?v155e77e3e32) no-repeat right -66px;padding-right:10px;display:inline-block;cursor:pointer;color:#fff}.user-me-page .btn-c2{height:22px;background:url(../assets/img/home/edit/btn_hs.png?v155e77e3e32) no-repeat left -44px;padding-left:8px;display:inline-block}.user-me-page .btn-c2 span{height:22px;line-height:21px;background:url(../assets/img/home/edit/btn_hs.png?v155e77e3e32) no-repeat right -44px;padding-right:10px;display:inline-block;cursor:pointer;color:#b3b3b3}.user-me-page .main-info{border-top:1px solid #ddd;padding:20px 10px 10px}.user-me-page .main-info .p1{padding-bottom:10px;font-weight:700}.user-me-page .main-info .blue2{color:#468fa2}.user-me-page .block{min-height:375px;height:auto}.user-me-page .block form#giftCardForm,.user-me-page .block form#pwdform,.user-me-page .block form.first{display:block}.user-me-page .edit-box{padding:10px 11px 11px}.user-me-page .form-group{height:30px;border:1px solid #fff;margin-bottom:2px;line-height:22px;font-size:12px;font-family:Arial,helvetica,sans-serif}.user-me-page .form-group label{width:80px;text-align:right;color:#333;float:left}.user-me-page .plain{color:#666;font-weight:700}.user-me-page .width-300{width:300px}.user-me-page .width-150{width:150px}.user-me-page .input-1{height:20px;line-height:20px;color:#333;border:1px solid #c9c9c9;background:url(../assets/img/home/edit/input_1.png?v155e77e3e39) repeat-x #fff;vertical-align:top}.user-me-page .btn-b1{width:118px;height:34px;border:0;background:url(../assets/img/home/edit/btn_b1.png?v155e77e3e2f) no-repeat;color:#fff;font-size:14px;font-weight:700;padding-right:10px;cursor:pointer;display:inline-block;margin-top:12px;margin-left:80px}.user-me-page #btn-reset{margin-left:0}.user-me-page .tips-p{margin-left:10px;color:#999;display:inline-block}.user-me-page .box{width:778px;clear:both;padding-top:10px;margin-bottom:10px;float:left}.user-me-page .sub-title{clear:both;height:21px;line-height:21px;padding-left:23px;background:url(../assets/img/home/edit/ico_arrow2.png?v155e77e3e36) no-repeat 5px 5px #efefef;border:1px solid #e6e6e6;font-size:12px;color:#333;font-weight:400;cursor:pointer;margin-bottom:2px}.user-me-page .sub-title .more{padding:2px 10px 0 0;float:right}.user-me-page .sub-title .btn-edit{width:37px;height:17px;background:url(../assets/img/home/edit/btn_edit.png?v155e77e3e31) no-repeat;display:inline-block;overflow:hidden;border:0}.user-me-page .user-personal-info .user-info{width:552px;padding-right:38px;float:left}.user-me-page .user-personal-info .user-profile{width:148px;padding:18px;text-align:center;float:right;border-left:1px solid #e0e0e0}.user-me-page .user-personal-info .user-profile img{width:100px;height:100px;margin-bottom:10px}.user-me-page .user-favorite-info ul{clear:both;width:750px;padding:0 20px 0 0;float:left}.user-me-page .user-favorite-info ul li{height:22px;padding-left:20px;float:left;font-size:12px}.user-me-page .user-favorite-info .brand-box{width:725px;margin:0 0 10px 20px;display:inline;padding:5px 10px 5px 0;border:1px solid #ccc;background:#f8f8f8;color:#000}.user-me-page .user-favorite-info .brand-box li{height:22px;line-height:22px;padding:0 0 0 10px;float:left;display:inline-block;white-space:nowrap}.user-me-page .user-favorite-info .btn-del{height:20px;line-height:20px;border:0;padding-left:18px;background:url(../assets/img/home/edit/ico_del.png?v155e77e3e37) no-repeat 0 2px;color:#468fa2;display:inline-block;overflow:hidden;text-decoration:none;vertical-align:middle}.user-me-page .user-favorite-info .btn-submit-sm{width:56px;height:20px;border:0;font-size:12px;color:#fff;line-height:20px;padding:0;margin:0;background:url(../assets/img/home/edit/btn_s1_z2.png?v155e77e3e33) repeat-x;text-align:center;display:inline-block;cursor:pointer}.user-me-page .user-favorite-info span{color:#999;line-height:25px;display:inline-block}.user-me-page .user-favorite-info .form-group{clear:both;width:730px;padding:0 20px 5px;float:left}.user-me-page .account-row{padding:30px 0;border-bottom:1px solid #ddd}.user-me-page .account-row .content{height:32px;line-height:32px;position:relative}.user-me-page .account-row .content div{float:left;display:inline-block}.user-me-page .account-row .content .left-content{width:200px}.user-me-page .account-row .content .middle-content{width:500px}.user-me-page .account-row .content .middle-content .tip{color:#666}.user-me-page .account-row .content .middle-content .tip.red{color:#e01}.user-me-page .account-row .content .right-content{width:75px;height:20px;line-height:20px;position:absolute;top:50%;margin-top:-10px;text-align:center}.user-me-page .account-row .center{text-align:center}.user-me-page .account-row a{text-decoration:none;color:#666;outline:none}.user-me-page .account-row [class*=" icon-"],.user-me-page .account-row [class^=icon-]{height:32px;line-height:32px;vertical-align:middle;display:inline-block;padding-left:42px;margin-left:20px}.user-me-page .account-row .icon-ok{background:url(../assets/img/home/edit/icon-32.png?v155e77e3e34) no-repeat 0 0}.user-me-page .account-row .icon-warning{background:url(../assets/img/home/edit/icon-32.png?v155e77e3e34) no-repeat 0 -32px}.user-me-page .account-row .account-type{font-size:18px;line-height:32px;display:inline-block;padding-left:20px}.user-me-page .button-icon20{padding-left:5px;background:url(../assets/img/home/edit/btn_bg_20.png?v155e77e3e30) no-repeat left 0;display:inline-block;cursor:pointer}.user-me-page .button-icon20 i{font-style:normal;background:url(../assets/img/home/edit/btn_bg_20.png?v155e77e3e30) repeat-x left -20px;display:inline-block;height:20px;line-height:20px;text-align:center}.user-me-page .button-sliver20 i{background-position:left -80px;width:52px}.user-me-page .button-icon20 span{background:url(../assets/img/home/edit/btn_bg_20.png?v155e77e3e30) no-repeat right -40px;display:inline-block;padding-right:5px}.user-me-page .button-sliver20 span{background-position:right -100px}.user-me-page .button-sliver20{background-position:left -60px}.user-me-page .gift-box{padding:10px 11px 11px}.user-me-page .gift-box h2{height:16px;font-size:14px;font-weight:700;line-height:16px}.user-me-page .gift-box li{font-size:12px;font-family:arial,Microsoft YaHei;margin-bottom:25px}.user-me-page .gift-box .gift-input{width:60px;height:20px;line-height:20px;color:#333;border:1px solid #c9c9c9;background:url(../assets/img/home/edit/input_1.png?v155e77e3e39) repeat-x #fff}.user-me-page .gift-box .gift-error{color:red;margin-left:10px}.user-me-page .gift-box #imgcode{border:0;vertical-align:middle;outline:none;cursor:pointer}.user-me-page .gift-box .check-img{color:#468fa2;text-decoration:underline}.user-me-page .gift-box .btn-b1{margin:0}.user-me-page .form-error{background:url(../assets/img/home/onError.png?v155e77e3d7d) no-repeat 5px 9px #fff2e8;color:#e8044f}.user-me-page .form-error,.user-me-page .form-success{padding-left:25px;padding-right:5px;font-size:12px;line-height:30px;height:30px;display:inline-block;margin-left:5px}.user-me-page .form-success{background:url(../assets/img/home/onCorrect.png?v155e77e3d7c) no-repeat 5px 9px #e9ffeb;color:green}.user-me-page .form-focus,.user-me-page .form-prompt{background:url(../assets/img/home/onShow.png?v155e77e3d7e) no-repeat 5px 9px;padding-left:25px;font-size:12px;line-height:30px;height:30px;display:inline-block;color:#999}.user-me-page .form-focus{background:url(../assets/img/home/onShow.png?v155e77e3d7e) no-repeat 5px 9px #e9f0ff;color:#666}.user-me-page .add-address{width:778px;padding:10px 0;float:left}.user-me-page .add-address h2{clear:both;height:21px;line-height:21px;padding-left:23px;margin-left:10px;background:url(../assets/img/home/edit/ico_arrow2.png?v155e77e3e36) no-repeat 5px 5px #efefef;border:1px solid #e6e6e6;font-size:12px;color:#333;font-weight:400}.user-me-page .add-address .form-group{width:130%}.user-me-page .add-address .add-address-detail{padding:10px 0}.user-me-page .add-address .add-address-detail .form-info{vertical-align:middle;line-height:22px;height:22px;background-position:5px 5px}.user-me-page .add-address #btnReset{margin-left:0}.user-me-page .gift-fail,.user-me-page .gift-ok{padding:50px 260px;height:310px;display:block}.user-me-page .gift-fail h3,.user-me-page .gift-ok h3{font-size:18px;height:22px;line-height:25px;padding-left:25px;color:#000;background:url(../assets/img/home/edit/ico_i_sf.png?v155e77e3e38) no-repeat}.user-me-page .gift-fail .fail,.user-me-page .gift-ok .fail{background-position:0 -22px}.user-me-page .gift-fail .input-again,.user-me-page .gift-ok .input-again{text-decoration:underline;color:#c4153a}.user-me-page .gift-fail .input-again:active,.user-me-page .gift-fail .input-again:hover,.user-me-page .gift-ok .input-again:active,.user-me-page .gift-ok .input-again:hover{color:#c4153a}.user-me-page .gift-fail .success,.user-me-page .gift-ok .success{background-position:0 0}.user-me-page .gift-fail .currency-info,.user-me-page .gift-ok .currency-info{margin-top:20px;padding-left:25px}.user-me-page .gift-fail .gift-red,.user-me-page .gift-ok .gift-red{color:#bc0029;font-size:16px;font-weight:700;margin-left:5px}.user-me-page .gift-fail .yoho-currency,.user-me-page .gift-ok .yoho-currency{font-size:16px;font-weight:700;color:#3e3e3e}.user-me-page .check-safe{padding:10px 11px 11px;height:auto;overflow:hidden}.user-me-page .check-safe .form-success{background:url(../assets/img/home/onCorrect.png?v155e77e3d7c) no-repeat 5px 9px}.user-me-page .check-safe .progress-bar{width:780px;height:24px}.user-me-page .check-safe .progress-bar li{float:left;width:260px;color:#666;text-align:center;height:24px;line-height:24px}.user-me-page .check-safe .progress-bar li.cur{color:#fff}.user-me-page .check-safe .progress1{background:url(../assets/img/home/edit/icon-bar.png?v155e77e3e36) no-repeat}.user-me-page .check-safe .progress2{background:url(../assets/img/home/edit/icon-bar.png?v155e77e3e36) no-repeat 0 -24px}.user-me-page .check-safe .progress3{background:url(../assets/img/home/edit/icon-bar.png?v155e77e3e36) no-repeat 0 -48px}.user-me-page .check-safe input[type=password],.user-me-page .check-safe input[type=text]{height:28px;border:1px solid #bebebe;line-height:28px;padding:0 5px}.user-me-page .check-safe .form-nav{padding:30px 0}.user-me-page .check-safe .form-nav ul{width:690px;margin:0 auto}.user-me-page .check-safe .form-nav li{padding:10px 0;float:left}.user-me-page .check-safe .form-nav .safe-form-l{float:left;width:220px;line-height:30px;padding:0 5px;text-align:right}.user-me-page .check-safe .form-nav .safe-form-r{width:422px;line-height:30px;float:left}.user-me-page .check-safe .form-nav .input-text{width:208px}.user-me-page .check-safe .form-nav .input-code{width:54px;margin-right:5px}.user-me-page .check-safe .form-nav #the-code-img{border:0;vertical-align:middle;outline:none;height:30px;cursor:pointer}.user-me-page .check-safe .form-nav .change-code{height:30px;padding:0 0 0 5px;line-height:15px;display:inline-block;vertical-align:middle;color:#666}.user-me-page .check-safe .form-nav .the-code{color:#468fa2}.user-me-page .check-safe .form-nav .btn-b1{margin:0}.user-me-page .check-safe .form-nav .check-info{display:inline-block;vertical-align:top}.user-me-page .check-safe .form-nav .input-error{border:2px solid #e8044f;height:26px;padding:0 4px}.user-me-page .feedback dt{height:20px;line-height:20px;background:url(../assets/img/home/suggest-icon.png?v155e77e3da2) no-repeat 2px 3px;padding:0 0 0 20px;float:left;font-family:arial,Microsoft YaHei;font-size:12px}.user-me-page .feedback dt a{color:#468fa2}.user-me-page .feedback dd{float:right}.user-me-page .button-top{width:66px;height:22px;padding-left:10px;line-height:21px;border:0;text-align:center;background:url(../assets/img/home/btn_top.png?v155e77e3d53) no-repeat;color:#666;font-size:12px;cursor:pointer;display:inline-block}.user-me-page .rgb6{color:#666}.user-me-page .font14{font-size:14px}.user-me-page .button-icon{padding-left:5px;background:url(../assets/img/home/button-icon.png?v155e77e3d54) no-repeat left 0;display:inline-block;cursor:pointer}.user-me-page .button-icon i{font-style:normal;background:url(../assets/img/home/button-icon.png?v155e77e3d54) repeat-x left -33px;display:inline-block;height:33px;line-height:33px;text-align:center}.user-me-page .button-icon span{background:url(../assets/img/home/button-icon.png?v155e77e3d54) no-repeat right -66px;display:inline-block;padding-right:5px}.user-me-page .button-red{background-position:left -99px;color:#fff}.user-me-page .button-red i{background-position:left -134px;width:120px}.user-me-page .button-red i .btn-jt{background:url(../assets/img/home/btn-jt.png?v155e77e3d52) no-repeat;width:5px;height:8px;display:inline-block;margin-left:10px}.user-me-page .button-red span{background-position:right -169px}.user-me-page .button-sliver i{width:100px;color:#666}.user-me-page .result-email,.user-me-page .result-info{padding:30px 0;min-height:360px;width:616px;margin:0 auto;text-align:center}.user-me-page .result-email p,.user-me-page .result-info p{line-height:24px}.user-me-page .result-email .info-detail,.user-me-page .result-info .info-detail{margin-top:20px;text-align:left}.user-me-page .result-email .button-icon,.user-me-page .result-info .button-icon{margin-top:20px}.user-me-page .result-email{text-align:left;width:400px}.user-me-page .res-info{height:24px;line-height:51px;padding-left:28px;font-size:20px;color:#000;line-height:24px;display:inline-block}.user-me-page .res-success{background:url(../assets/img/home/icon-24.png?v155e77e3d77) no-repeat}.user-me-page .res-error{background:url(../assets/img/home/icon-24.png?v155e77e3d77) no-repeat 0 -24px;color:red}.returns-me-page .returns .title{background-image:url(../assets/img/home/returns.png?v155e77e3d9d)}.returns-me-page .operation,.returns-me-page .return-status,.returns-me-page .time{width:100px;border-left:1px solid #e6e6e6}.returns-me-page .return-type{width:80px;border-left:1px solid #e6e6e6}.returns-me-page .order-table-header{padding:0;margin:10px;border:1px solid #e6e6e6}.returns-me-page .order-table-header>span{text-align:center;border-left:none}.returns-me-page .order-table-header .info{width:384px;padding-left:10px;text-align:left}.returns-me-page .order-wrap li{border-top:none}.returns-me-page .order-wrap li .info{width:384px;padding:5px 0 5px 10px}.returns-me-page .order-wrap li .text-info{width:300px;right:0;bottom:15px}.returns-me-page .order-wrap li .text-info .name{max-width:300px}.returns-me-page .order-wrap li .text-info .name:hover{text-decoration:underline}.detail-me-page{font-size:12px}.detail-me-page .returns-detail .title{background-image:url(../assets/img/home/returns.png?v155e77e3d9d)}.detail-me-page .order-info{background:#efefef;padding:10px}.detail-me-page .order-info span{color:#468fa2;margin:0 8px}.detail-me-page .visual-return-state{margin:40px auto;height:40px;width:560px;background:url(../assets/img/home/exchange-bg.png?v155e77e3d64) no-repeat top}.detail-me-page .visual-return-state li{width:112px;padding:20px 0 0;text-align:center;float:left}.detail-me-page .visual-return-state .act{background:url(../assets/img/home/detail-act.png?v155e77e3d61) no-repeat top}.detail-me-page .detail-container{padding:10px}.detail-me-page .detail-container h2{height:21px;line-height:21px;padding-left:23px;background:url(../../../img/home/complaint-icon.png?v155ba3cdb93) no-repeat 5px 5px #efefef;border:1px solid #e6e6e6;font-size:12px;color:#333;font-weight:400;margin-bottom:10px}.detail-me-page .detail-container .courier-code{margin:60px auto;text-align:center}.detail-me-page .detail-container .courier-code .express-edit-box{display:none}.detail-me-page .detail-container .courier-code button{padding:5px 15px}.detail-me-page .detail-container .in-edit .express-view-box{display:none}.detail-me-page .detail-container .in-edit .express-edit-box{display:block}.detail-me-page .detail-container .main-detail table{width:100%}.detail-me-page .detail-container .main-detail table tr{border:1px solid #e6e6e6}.detail-me-page .detail-container .main-detail table td{text-align:left;padding:8px 10px;border:none;color:#333}.detail-me-page .detail-container .word-h{display:none}.detail-me-page .detail-container .refund-tips{color:#999;margin-top:10px;margin-bottom:40px}.detail-me-page .exchange-detail .word-t{display:none}.detail-me-page .exchange-detail .word-h{display:inline-block}.detail-me-page .exchange-detail .refund-tips span{display:none}.apply-returns-page{font-size:12px}.apply-returns-page .title{background-image:url(../assets/img/home/refund-apply.png?v155e77e3d97)}.apply-returns-page .exchange .title{background-image:url(../assets/img/home/exchange-apply.png?v155e77e3d63)}.apply-returns-page select{width:85px;font-size:12px;outline:none}.apply-returns-page .apply-container{padding:10px}.apply-returns-page .apply-container .return-prompt{padding:20px;border:1px solid #e6e6e6;margin-bottom:10px;line-height:21px;color:#333}.apply-returns-page .apply-container .return-prompt span{color:red}.apply-returns-page .apply-container .return-prompt .footwear-tip{height:142px;line-height:18px;margin-top:20px;padding-left:536px;background:url(../assets/img/home/footwear-tips.jpg?v155e77e3d72) no-repeat}.apply-returns-page .apply-container .return-prompt .footwear-tip span{color:#666}.apply-returns-page .apply-container .return-prompt .footwear-tip span:first-child{display:block;margin-bottom:15px}.apply-returns-page .apply-container h2{height:21px;line-height:21px;padding-left:23px;background:url(../assets/img/home/complaint-icon.png?v155e77e3d58) no-repeat 5px 5px #efefef;border:1px solid #e6e6e6;font-size:12px;color:#333;font-weight:400}.apply-returns-page .apply-container .goods-list-table{width:100%;margin-bottom:10px}.apply-returns-page .apply-container .goods-list-table tr{border:1px solid #e6e6e6;height:18px;line-height:18px}.apply-returns-page .apply-container .goods-list-table tr th{text-align:center;background:#efefef;padding:5px;color:#333}.apply-returns-page .apply-container .goods-list-table tr th:first-child{text-align:left}.apply-returns-page .apply-container .goods-list-table tr td{color:#666;padding:5px}.apply-returns-page .apply-container .goods-list-table .return-goods-info>*{display:block}.apply-returns-page .apply-container .goods-list-table .return-goods-info a{color:#468fa2;text-decoration:none;max-width:250px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.apply-returns-page .apply-container .goods-list-table .return-goods-info span{color:#999}.apply-returns-page .apply-container .goods-list-table .exchange-choose-wrap{width:185px;border:1px solid #e6e6e6;text-align:center}.apply-returns-page .apply-container .goods-list-table .exchange-choose-wrap p{line-height:29px}.apply-returns-page .apply-container .goods-list-table .exchange-choose-wrap select{width:85px}.apply-returns-page .apply-container .goods-list-table .refund-price{width:185px;color:#666;font-weight:700;text-align:center}.apply-returns-page .apply-container .goods-list-table .return-reason-wrap{width:200px;text-align:center}.apply-returns-page .apply-container .goods-list-table .return-reason-wrap select{width:190px}.apply-returns-page .apply-container .goods-list-table .return-reason-wrap label{color:#999;padding:4px 20px;background:#f5f5f5;border:1px solid #dadada}.apply-returns-page .apply-container .goods-list-table .border-style{border:1px solid #e6e6e6}.apply-returns-page .apply-container .goods-list-table .ex-tips,.apply-returns-page .apply-container .goods-list-table .re-tips{text-align:left;padding-left:10px;color:#666}.apply-returns-page .apply-container .goods-list-table .problem-description{display:none}.apply-returns-page .apply-container .goods-list-table .problem-description .left-title{width:160px;text-align:right;padding-right:15px}.apply-returns-page .apply-container .goods-list-table .problem-description .left-title .red-icon{color:red}.apply-returns-page .apply-container .goods-list-table .problem-description textarea{width:545px;height:75px;max-width:545px;max-height:300px;padding:5px;border:1px solid #ccc}.apply-returns-page .apply-container .goods-list-table .problem-description .up-image-tips{width:545px;background:#f5f5f5;border:1px solid #ccc;margin-bottom:15px;padding:3px 5px}.apply-returns-page .apply-container .goods-list-table .problem-description .up-image-list li{float:left;width:126px;height:126px;border:1px solid #ccc;padding:2px;display:inline-block;vertical-align:bottom;margin:0 0 10px 10px;background:url(../assets/img/home/up-pic-back.png?v155e77e3da6) no-repeat;position:relative}.apply-returns-page .apply-container .goods-list-table .problem-description .up-image-list li:first-child{margin-left:0}.apply-returns-page .apply-container .goods-list-table .problem-description .up-image-list .btn-del{padding:8px;background:url(../assets/img/home/del-icon.png?v155e77e3d60) no-repeat;color:#468fa2;display:inline-block;position:absolute;right:-1px;z-index:5;cursor:pointer}.apply-returns-page .apply-container .goods-list-table .problem-description .swfupload{background:#000}.apply-returns-page .apply-container .goods-list-table .problem-description .btn_upload_text{font-family:SimHei;font-size:16px;font-weight:700}.apply-returns-page .apply-container .refund-detail{padding-top:20px;text-align:center}.apply-returns-page .apply-container .refund-detail p{margin-bottom:25px}.apply-returns-page .apply-container .refund-detail p input[type=radio]{vertical-align:middle;margin:0 5px 0 40px}.apply-returns-page .apply-container .refund-detail .refund-pay-info p{height:23px;line-height:22px;padding-top:11px;color:#666;background:url(../assets/img/home/refund_tips.png?v155e77e3d99) no-repeat;display:none}.apply-returns-page .apply-container .refund-detail .refund-pay-info tr{display:none}.apply-returns-page .apply-container .refund-detail .refund-pay-info .type-yoho-tips{width:515px;margin-left:160px}.apply-returns-page .apply-container .refund-detail .refund-pay-info .type-bank-tips{width:290px;margin-left:260px;background-position:0 -35px}.apply-returns-page .apply-container .refund-detail .refund-pay-info .type-alipay-tips{width:290px;margin-left:260px;background-position:0 -70px}.apply-returns-page .apply-container .refund-detail .refund-pay-table{width:100%;margin-bottom:25px}.apply-returns-page .apply-container .refund-detail .refund-pay-table td{padding:5px 0 5px 5px}.apply-returns-page .apply-container .refund-detail .refund-pay-table tr td:first-child{width:310px;text-align:right}.apply-returns-page .apply-container .exchange-detail{padding:30px}.apply-returns-page .apply-container .exchange-detail dt{font-weight:700;font-size:14px;color:#333;margin:10px 0}.apply-returns-page .apply-container .exchange-detail dd{padding:10px 5px}.apply-returns-page .apply-container .exchange-detail dd input[type=radio]{margin-left:50px;margin-top:0;vertical-align:middle}.apply-returns-page .apply-container .exchange-detail dd input[type=radio]:first-child{margin-left:0}.apply-returns-page .apply-container .exchange-detail dd>label{line-height:20px;width:100px;float:left;display:block}.apply-returns-page .apply-container .exchange-detail dd>label span{color:red}.apply-returns-page .apply-container .submit-box{text-align:center;margin-bottom:30px}.apply-returns-page .apply-container .submit-box .save-btn{width:138px;height:34px;border:0;background:url(../assets/img/home/submit-btn.png?v155e77e3da0) no-repeat;color:#fff;font-size:14px;font-weight:700;padding-right:20px;cursor:pointer;display:inline-block;outline:none}.apply-returns-page .apply-container .submit-box .wait-gif{width:138px;height:34px;line-height:34px;font-size:14px;color:#8c8686;background:url(../assets/img/home/return-waiting.png?v155e77e3d9c) no-repeat top;vertical-align:top;display:none}.apply-returns-page .apply-container .submit-box .wait-gif span{display:inline-block;width:32px;text-align:left;padding-left:4px}.apply-returns-page .apply-container .applying .save-btn{display:none}.apply-returns-page .apply-container .applying .wait-gif{display:inline-block}.save-returns-page .title{background-image:url(../assets/img/home/refund-apply.png?v155e77e3d97)}.save-returns-page .exchange .title{background-image:url(../assets/img/home/exchange-apply.png?v155e77e3d63)}.save-returns-page .save-container{padding:10px}.save-returns-page .save-container h2{height:21px;line-height:21px;padding-left:23px;background:url(../assets/img/home/complaint-icon.png?v155e77e3d58) no-repeat 5px 5px #efefef;border:1px solid #e6e6e6;font-size:12px;color:#333;font-weight:400}.save-returns-page .save-container .save-prompt{width:527px;margin:0 auto;padding:100px 0}.save-returns-page .save-container .save-prompt h1{font-size:30px;color:#9c0;margin-bottom:20px;font-weight:700;background:url(../assets/img/home/return-success-icon.png?v155e77e3d9b) no-repeat;cursor:pointer;display:inline-block;height:31px;line-height:31px;padding-left:45px}.save-returns-page .save-container .save-prompt p{font-size:12px;color:#999;line-height:23px}.save-returns-page .save-container .save-prompt p span{color:#9c0}.save-returns-page .save-container .save-prompt .retund-address{font-size:15px;font-weight:700;color:#333;margin-bottom:15px}.save-returns-page .save-container .save-prompt .backto-center{margin-top:30px}.save-returns-page .save-container .save-prompt .backto-center label{width:174px;height:35px;line-height:33px;font-size:14px;font-weight:700;color:#fff;text-align:center;display:inline-block;background:url(../assets/img/home/back-returns-btn.png?v155e77e3d50) no-repeat;cursor:pointer}.save-returns-page .save-container .save-prompt .backto-center a:first-child{margin-right:15px}.save-returns-page .save-container .save-prompt .backto-center a:first-child label{background:url(../assets/img/home/back-orders-btn.png?v155e77e3d4f) no-repeat}.consult-me-page{font-size:12px}.consult-me-page .consult .title{background-image:url(../assets/img/home/consult.png?v155e77e3d5d)}.consult-me-page .consults{margin:10px}.consult-me-page .consults-table{width:100%;border:1px solid #e6e6e6}.consult-me-page .consults-table th{height:28px;line-height:28px;background:#efefef;padding:0 5px}.consult-me-page .consults-table td{color:#666;border-top:1px solid #e6e6e6;padding:5px;line-height:18px}.consult-me-page .consults-table td .thumb{width:60px;height:60px}.consult-me-page .consults-table td a{color:#468fa2;text-decoration:none}.consult-me-page .consults-table td a:hover{text-decoration:underline}.consult-me-page .consults-table td p{padding-left:20px;margin-top:5px;color:#999;word-break:break-all;overflow:hidden}.consult-me-page .consults-table td .question{color:#e9034e;background:url(../assets/img/home/consult-wd.png?v155e77e3d5c) no-repeat -13px 2px}.consult-me-page .consults-table td .reply{color:#390;background:url(../assets/img/home/consult-wd.png?v155e77e3d5c) no-repeat 0 -25px}.comment-me-page .comment .title{background-image:url(../assets/img/home/comment.png?v155e77e3d57)}.comment-me-page .me-comment{padding:10px;font-size:12px;line-height:18px}.comment-me-page .main-tip span{color:#e8044f}.comment-me-page .comment-table-header{padding:0;margin-top:10px}.comment-me-page .comment-table-header .info{width:260px}.comment-me-page .comment-table-header .time{width:415px;border-left:1px solid #e6e6e6;border-right:1px solid #e6e6e6}.comment-me-page .comment-table-header .type{width:98px}.comment-me-page .comment-table{width:100%;margin-top:10px}.comment-me-page .comment-table tr{border:1px solid #e6e6e6}.comment-me-page .comment-table tr th{background:#efefef;padding:5px}.comment-me-page .comment-table tr td{color:#666;padding:5px;text-align:center}.comment-me-page .comment-table tr a{color:#468fa2;text-decoration:none}.comment-me-page .comment-table tr .remarked{color:#e8044f}.comment-me-page .comment-table tr .remark-btn{width:69px;height:22px;line-height:21px;border:0;background:url(../assets/img/home/remark-btn.png?v155e77e3d9a) no-repeat;cursor:pointer;color:#fff;outline:none}.comment-me-page .comment-table .remark-content{width:405px;border:1px solid #e6e6e6;word-break:break-all}.comment-me-page #comment-dialog-widget{position:absolute;padding:5px;border:1px solid #999;background:#fff;border-radius:4px;z-index:15}.comment-me-page #comment-dialog-widget .dialog-titlebar{height:16px;cursor:move}.comment-me-page #comment-dialog-widget .dialog-titlebar .dialog-close-btn{float:right;width:46px;height:16px;background:url(../assets/img/home/openbox_close.png?v155e77e3d7f) no-repeat 0 0;cursor:pointer}.comment-me-page #comment-dialog-widget .dialog-titlebar .dialog-close-btn:hover{background-position:0 -16px}.comment-me-page #comment-dialog-widget .dialog-content{padding:3px 30px}.comment-me-page #comment-dialog-widget .dialog-content dl{display:table-row}.comment-me-page #comment-dialog-widget .dialog-content dd{display:table-cell;vertical-align:top;font-size:13px;line-height:15px}.comment-me-page #comment-dialog-widget .dialog-content textarea{width:390px;height:80px;max-width:390px;max-height:240px;background:url(../assets/img/home/input-back.png?v155e77e3d78) repeat-x;font-family:Trebuchet MS,Tahoma,Verdana,Arial,sans-serif}.comment-me-page #comment-dialog-widget .dialog-buttons{padding-right:30px}.comment-me-page #comment-dialog-widget .dialog-buttons button{color:#666;float:right;padding:8px 15px;margin-left:5px;border:1px solid #aaa;border-radius:3px;background-color:#f2f2f2;outline:none}.comment-me-page #comment-dialog-widget .dialog-buttons .dialog-save-btn{color:#fff;font-weight:700;border-color:#b5023d;background-color:#da0249}.complaint-me-page{font-size:12px}.complaint-me-page .complaint .title{background-image:url(../assets/img/home/complaints.png?v155e77e3d5a)}.complaint-me-page .me-complaints{padding:10px 10px 0}.complaint-me-page .me-complaints .empty-tip{padding:100px 0}.complaint-me-page .me-complaints .complaints-table-header{margin-bottom:10px}.complaint-me-page .me-complaints .complaint-item{padding:10px;border:1px solid #e6e6e6;margin-bottom:5px;color:#999;line-height:18px}.complaint-me-page .me-complaints .complaint-item .question{color:#e9034e;background:url(../assets/img/home/complaints-sd.png?v155e77e3d59) no-repeat -13px 2px}.complaint-me-page .me-complaints .complaint-item .reply{color:#390;background:url(../assets/img/home/complaints-sd.png?v155e77e3d59) no-repeat 0 -25px}.complaint-me-page .me-complaints .complaint-item .cancel-btn{width:68px;line-height:23px;text-align:center;color:#fff;background:url(../assets/img/home/remark-btn.png?v155e77e3d9a) no-repeat;display:inline-block;cursor:pointer}.complaint-me-page .me-complaints .complaint-item>div{display:inline-block;vertical-align:top}.complaint-me-page .me-complaints .info{width:280px;color:#000;text-align:left}.complaint-me-page .me-complaints .content{width:340px;text-align:left}.complaint-me-page .me-complaints .content p{padding-left:20px;margin-top:5px}.complaint-me-page .complaint-form{padding:10px}.complaint-me-page .complaint-form h2{clear:both;height:21px;line-height:21px;padding-left:23px;background:url(../assets/img/home/complaint-icon.png?v155e77e3d58) no-repeat 5px 5px #efefef;border:1px solid #e6e6e6;font-size:12px;color:#333;font-weight:400}.complaint-me-page .complaint-form .form-content{font-size:12px;padding:7px 0}.complaint-me-page .complaint-form .form-content dl{padding:7px 5px;line-height:22px}.complaint-me-page .complaint-form .form-content dt{width:75px;color:#333;text-align:right;float:left}.complaint-me-page .complaint-form .form-content dd>input{width:150px;height:18px;line-height:18px}.complaint-me-page .complaint-form .form-content dd>input,.complaint-me-page .complaint-form .form-content dd>textarea{color:#333;border:1px solid #c9c9c9;background:url(../assets/img/home/input-back.png?v155e77e3d78) repeat-x;vertical-align:top}.complaint-me-page .complaint-form .form-content dd>textarea{width:400px;height:80px;max-width:500px;max-height:320px;overflow:auto}.complaint-me-page .complaint-form .form-submit>input{width:138px;height:34px;margin-left:80px;border:0;background:url(../assets/img/home/submit-btn.png?v155e77e3da0) no-repeat;color:#fff;font-size:14px;font-weight:700;text-align:center;padding-right:20px;cursor:pointer;display:inline-block}.message-me-page .message .title{background-image:url(../assets/img/home/message.png?v155e77e3d7a)}.message-me-page .message-table-header{font-size:12px}.message-me-page .message-table-header .sender{width:118px;padding-left:38px;text-align:left}.message-me-page .message-table-header .heading{width:408px;text-align:left}.message-me-page .message-table-header .time{width:130px}.message-me-page .message-table-header .action{padding-left:10px;width:66px}.message-me-page .message-list{padding:10px;font-size:12px}.message-me-page .message-list table{width:100%;line-height:38px}.message-me-page .message-list table tr{color:#999;border:1px solid #e6e6e6}.message-me-page .message-list table tr td{text-align:center}.message-me-page .message-list table tr input{vertical-align:middle;margin:0}.message-me-page .message-list table tr .del-btn{color:#468fa2;text-decoration:none;cursor:pointer}.message-me-page .message-list table .list-foot{background:#f8f8f8}.message-me-page .message-list table .list-foot button{float:left;line-height:18px;padding:2px 10px;border:1px solid #ccc;border-radius:2px;cursor:pointer;outline:none}.message-me-page .message-list table .list-foot .del-choose-btn{background:#da044a;border-color:#cc0345;margin-right:10px;color:#fff}.message-me-page .message-list table .list-foot .read-choose-btn{background:#ddd;color:#b3b3b3}.message-me-page .message-list table .list-foot .has-new{background:#3797af;border-color:#147e98;color:#fff}.message-me-page .message-list table .td-sender{width:110px;color:#666;text-align:left;white-space:nowrap;overflow:hidden}.message-me-page .message-list table .td-title{width:410px;padding-left:10px;color:#666;text-align:left;white-space:nowrap;overflow:hidden}.message-me-page .message-list table .new-msg{background:#f0f5f8;border-bottom:1px solid #becfd3}.message-me-page .message-list table .new-msg .td-sender a,.message-me-page .message-list table .new-msg .td-title a{font-weight:700;color:#468fa2}.content-message-page .title{background-image:url(../assets/img/home/message.png?v155e77e3d7a)}.content-message-page .title .back-list{font-size:12px;float:right;width:67px;height:22px;line-height:22px;margin-top:9px;padding-right:4px;text-align:center;color:#fdfdfd;display:inline-block;background:url(../assets/img/home/btn-more.png?v155e77e3d53) no-repeat;cursor:pointer}.content-message-page .text-container{font-size:12px;line-height:18px;padding:20px}.content-message-page .text-container .text-title{margin-bottom:10px;padding-bottom:10px;border-bottom:1px dashed #999}.content-message-page .text-container .text-title span{color:#999}.content-message-page .text-container .coupon-item{display:table-row}.content-message-page .text-container .coupon-item>div{padding:10px 0;display:table-cell;vertical-align:middle}.content-message-page .text-container .coupon-item img{vertical-align:middle}.content-message-page .text-container .coupon-item a{width:90px;height:30px;line-height:30px;text-align:center;color:#b3b3b3;font-size:14px;background-color:#ddd;border:1px solid #ccc;border-radius:4px;display:inline-block;cursor:pointer}.content-message-page .text-container .coupon-item .coupon-img{width:160px;text-align:center}.content-message-page .text-container .coupon-item .coupon-info{width:470px;line-height:20px}.content-message-page .text-container .coupon-item .pick-coupon-btn,.content-message-page .text-container .coupon-item .view-coupon-btn{color:#fff;background:#da044a;border-color:#cc0345;display:inline-block}.content-message-page .text-container .sale-img{margin-bottom:15px;overflow:hidden}.content-message-page .text-container .sale-img img{vertical-align:top}.content-message-page .text-container .sale-btn{color:#fff;padding:0 10px;background:#e1044b;margin-top:15px;border:1px solid #c10241;border-radius:2px;display:inline-block;cursor:pointer}.vip-me-page .title{background-image:url(../assets/img/home/vip-img/vip-title.png?v155e77e3e47)}.vip-me-page .vip-level{clear:both;overflow:hidden}.vip-me-page .level{margin:20px 15px 0 40px;line-height:31px;float:left;clear:both;font-size:14px;color:#000}.vip-me-page .vipimg1{background-image:url(../assets/img/home/vip-img/silver-vip.png?v155e77e3e41)}.vip-me-page .vipimg1,.vip-me-page .vipimg2{margin-top:20px;width:138px;height:31px;float:left}.vip-me-page .vipimg2{background-image:url(../assets/img/home/vip-img/gold-vip.png?v155e77e3e3c)}.vip-me-page .vipimg3{margin-top:20px;width:138px;height:31px;float:left;background-image:url(../assets/img/home/vip-img/platinum-vip.png?v155e77e3e3f)}.vip-me-page .favimg{float:left;width:645px;margin-top:20px;overflow:hidden}.vip-me-page .list{width:145px;float:left;margin:0 10px 8px 0}.vip-me-page .imgsrc{width:25px;float:left;margin-top:5px}.vip-me-page .fav-font{line-height:31px;font-size:12px;margin-left:30px;color:#000}.vip-me-page .year-amount{float:left;width:600px;margin-top:20px}.vip-me-page .amount{float:left}.vip-me-page .amount,.vip-me-page .ps{font-size:14px;font-weight:700;line-height:31px}.vip-me-page .ps{margin-left:30px}.vip-me-page .plalevel{margin-top:7px;width:160px;height:21px;background-image:url(../assets/img/home/vip-img/platinum.png?v155e77e3e40)}.vip-me-page .amount-length{width:400px;height:15px;margin-bottom:5px}.vip-me-page .img-length{width:293px;height:12px;background-color:#e0e0e0}.vip-me-page .amount-left{width:298px;height:12px;overflow:hidden;float:left}.vip-me-page .img-left{height:12px;background-color:#cda16c;z-index:7;float:left}.vip-me-page .img-right{width:5px;height:12px;float:left;z-index:7;background-image:url(../assets/img/sprite.home.png?v155e77e4829);background-position:-39px -24px;margin-left:-5px}.vip-me-page .letter{width:100px;font-size:12px;margin-left:303px;line-height:10px;margin-bottom:2px}.vip-me-page .change-img0{width:293px;height:18px;background-image:url(../assets/img/home/vip-img/vip-change1.png?v155e77e3e43)}.vip-me-page .change-img1{width:293px;height:18px;background-image:url(../assets/img/home/vip-img/vip-change2.png?v155e77e3e44)}.vip-me-page .change-img2{width:293px;height:18px;background-image:url(../assets/img/home/vip-img/vip-change3.png?v155e77e3e45)}.vip-me-page .balance{margin-top:7px;font-size:13px;font-weight:700;margin-bottom:10px}.vip-me-page .balance p{float:left}.vip-me-page .balance a{color:red;margin-left:10px;float:left}.vip-me-page .history{margin-top:10px;clear:both;overflow:hidden}.vip-me-page .hisamout{margin-left:10px}.vip-me-page .line{clear:both;width:703px;height:1px;margin-bottom:5px;margin-left:40px;margin-top:25px;background-color:#e8e8e8;overflow:hidden}.vip-me-page .valid{overflow:hidden}.vip-me-page .valid-time{clear:both;width:720px;height:175px;margin-left:40px;position:relative;font-size:14px}.vip-me-page .time1{float:left;width:135px;height:135px;border-right:2px dashed #000}.vip-me-page .time1-img{margin-top:95px;width:130px;height:33px;background-image:url(../assets/img/home/vip-img/time1.png?v155e77e3e42)}.vip-me-page .time2{width:129px}.vip-me-page .time2,.vip-me-page .time3{float:left;height:175px;border-right:2px dashed #000}.vip-me-page .time3{width:354px}.vip-me-page .time4{float:left;width:90px;height:155px}.vip-me-page .time-top{display:block;font-size:13px;margin-top:10px;margin-left:10px;line-height:18px}.vip-me-page .time-top span{font-weight:700}.vip-me-page .time-top a{color:red}.vip-me-page .time2-img{margin-top:47px;width:131px;height:33px;background-color:#ecdbca}.vip-me-page .time-left{float:left;display:block;font-size:13px;margin-top:10px;margin-left:10px;line-height:18px}.vip-me-page .time-left span{font-weight:700}.vip-me-page .time-right{float:right;display:block;font-size:13px;margin-top:10px;margin-right:10px;line-height:18px}.vip-me-page .time-right span{font-weight:700}.vip-me-page .time3-img{color:#fff;line-height:33px;margin-top:93px;width:356px;height:33px;background-color:#cda16d;text-align:center}.vip-me-page .time4-img{margin-top:65px;width:62px;height:33px;border-color:#ecdbca #fff transparent transparent;border-style:solid solid dashed dashed;border-width:33px 20px 0 0}.vip-me-page .doubt{margin-left:40px;margin-bottom:25px;margin-top:20px;font-size:14px}.vip-me-page .doubt a{float:right;margin-right:55px}.vip-me-page .tell{color:red}.vip-me-page .time-line{position:absolute;width:703px;height:2px;background-color:#e8e8e8;margin-top:65px}.help-page{width:990px;font-size:12px;margin:0 auto 20px}.help-page .path-nav{padding:11px 0;border-bottom:0;padding-left:25px;background:url(../assets/img/help/home-icon.png?v155e77e3d41) no-repeat 0 12px}.help-page .left-container{float:left;width:180px;margin-right:8px}.help-page .block{border:1px solid #dedede;border-radius:2px}.help-page .title{height:40px;line-height:40px;padding:0 8px;background-color:#e3e3e3;background-position:10px 12px;background-repeat:no-repeat}.help-page .help-navigation{background:#f8f8f8;margin-bottom:10px}.help-page .help-navigation .help-center{background-image:url(../assets/img/help/help-center.png?v155e77e3d3d)}.help-page .help-navigation dl{width:100%;height:40px;background:#efefef;border-top:1px solid #e6e6e6;border-bottom:1px solid #e6e6e6}.help-page .help-navigation dl dt{width:132px;height:22px;margin:10px 0 10px 7px;overflow:hidden;background:url(../assets/img/help/help-search.png?v155e77e3d3f) no-repeat;float:left}.help-page .help-navigation dl dt input{width:110px;border:0;background:none;margin:3px 10px}.help-page .help-navigation dl dd{width:31px;float:left;margin:10px 0}.help-page .help-navigation dl dd .search-btn{width:31px;height:22px;border:0;background:url(../assets/img/help/help-search.png?v155e77e3d3f) no-repeat -134px 0;cursor:pointer;text-indent:-999em}.help-page .help-navigation ul{width:154px;padding:8px 12px}.help-page .help-navigation ul li{line-height:20px;font-family:Arial,helvetica,sans-serif;margin:5px 0;padding-left:20px;color:#333;background:url(../assets/img/help/help-nav-li.png?v155e77e3d3e) no-repeat}.help-page .help-navigation ul .active{background-position:0 -20px}.help-page .help-navigation ul .active a{color:#fff}.help-page .help-service{background:#f8f8f8;line-height:15px}.help-page .help-service .service-center{background-image:url(../assets/img/help/yoho-service.png?v155e77e3d43);background-position:10px 9px}.help-page .help-service .service-main{padding:12px}.help-page .help-service .service-main strong{color:#000;font-size:18px;font-weight:700;font-family:Arial,helvetica,sans-serif}.help-page .help-service .service-main p:first-child{margin-bottom:10px}.help-page .help-main{width:800px;float:left;line-height:18px}.help-page .help-main strong{font-weight:700}.help-page .help-main .help-content{padding:15px}.help-page .help-main .help-content a{color:#468fa2;text-decoration:underline}.search-help-page .search-content{padding:15px}.search-help-page .search-content h2{border-bottom:2px solid #eee;font-size:14px;color:#333;height:20px;line-height:20px;padding-top:10px}.search-help-page .search-content ul{margin:10px 0;display:block;min-height:20px}.search-help-page .search-content ul li{width:345px;height:20px;line-height:20px;padding:0 0 0 20px;margin:0 15px 5px 0;display:inline-block;overflow:hidden;background:url(../assets/img/help/ask-icon.png?v155e77e3d3c) no-repeat 2px 3px;font-family:Arial,helvetica,sans-serif}.search-help-page .search-content ul .faqs{color:#666;cursor:pointer}.search-help-page .search-content .full-search{line-height:22px;padding:10px 8px;background-color:#e3e3e3;font-size:14px;font-weight:700}.search-help-page .search-content .full-search label{padding:12px}.search-help-page .search-content .full-search .full-search-name{width:185px;height:22px;padding:0 10px;border:0;background:url(../assets/img/help/help-search.png?v155e77e3d3f) no-repeat 0 -22px}.search-help-page .search-content .full-search .search-btn{width:31px;height:22px;border:0;background:url(../assets/img/help/help-search.png?v155e77e3d3f) no-repeat -134px 0;cursor:pointer;text-indent:-999em}.search-help-page .search-content .full-search .yoho-im-btn{width:120px;height:20px;background:url(../assets/img/help/yoho-im.png?v155e77e3d42);display:inline-block;vertical-align:middle;margin-left:10px;border:0;cursor:pointer}.search-help-page .search-content .empty-tip{padding:200px 0;text-align:center}.search-help-page .search-content .empty-tip span{color:#e8044f;font-weight:700}.search-help-page .search-content .all-ask-list{line-height:18px;padding-top:10px}.search-help-page .search-content .all-ask-list .ask-item{padding:10px}.search-help-page .search-content .all-ask-list .ask-item.even{border:1px solid #fbf0d5;background:#fefaf0}.search-help-page .search-content .all-ask-list .ask{min-height:10px;padding-left:20px;margin-bottom:10px;background:url(../assets/img/help/ask-icon.png?v155e77e3d3c) no-repeat 2px 2px}.search-help-page .search-content .all-ask-list .answer{padding-left:20px;color:#f07100;background:url(../assets/img/help/answer-icon.png?v155e77e3d3b) no-repeat 2px 2px}.search-help-page .search-content .search-pager{height:20px;padding:10px}.search-help-page .search-content .search-pager .pager-html{display:inline}.search-help-page .search-content .search-pager a{border:1px solid #cecece;padding:0 6px;height:18px;line-height:18px;border-radius:2px;margin-right:4px;background-color:#fff}.search-help-page .search-content .search-pager a.cur{background-color:#222;color:#fff}.search-help-page .dialog-widget{position:absolute;width:450px;padding:5px;border:1px solid #999;background:#fff;border-radius:4px;z-index:16}.search-help-page .dialog-widget .dialog-titlebar{height:16px;cursor:move}.search-help-page .dialog-widget .dialog-titlebar .dialog-close-btn{float:right;width:46px;height:16px;background:url(../assets/img/home/openbox_close.png?v155e77e3d7f) no-repeat 0 0;cursor:pointer}.search-help-page .dialog-widget .dialog-titlebar .dialog-close-btn:hover{background-position:0 -16px}.search-help-page .dialog-widget .dialog-content{padding:20px 30px}.search-help-page .dialog-widget .dialog-content p{line-height:20px;padding-left:20px;padding-bottom:10px;font-size:12px;background:url(../assets/img/help/ask-icon.png?v155e77e3d3c) no-repeat 2px 3px}.search-help-page .dialog-widget .dialog-content .answer{color:#f07100;background:url(../assets/img/help/answer-icon.png?v155e77e3d3b) no-repeat 2px 2px}.search-help-page .dialog-bg{position:fixed;top:0;left:0;width:100%;height:100%;background:#000;opacity:.2;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=20)";z-index:15}.order-ensure-page{width:990px;margin:40px auto}.order-ensure-page .order-edit{width:100%;position:relative;margin-bottom:35px}.order-ensure-page .order-edit .order-title{position:relative;margin-bottom:15px}.order-ensure-page .order-edit .order-title ul{display:block;background-image:url(../assets/img/sprite.order.png?v155e77e4829);background-position:0 -146px;width:364px;height:12px;position:absolute;right:0;top:0}.order-ensure-page .order-edit .order-title ul li{display:block;width:33.33333333%;float:left;font-size:12px;color:#999;height:50px;line-height:50px;text-align:center;position:relative}.order-ensure-page .order-edit .order-title ul li.active{color:#333}.order-ensure-page .order-edit .order-title ul li.active:after{display:block;content:'';background-image:url(../assets/img/sprite.order.png?v155e77e4829);background-position:-568px -110px;width:12px;height:12px;position:absolute;left:50%;margin-left:-6px;top:0}.order-ensure-page .order-edit .order-title ul li.first{text-align:left}.order-ensure-page .order-edit .order-title ul li.first.active:after{left:0;margin-left:0}.order-ensure-page .order-edit .order-title ul li.end{text-align:right}.order-ensure-page .order-edit .order-title ul li.end.active:after{right:0;margin-left:0}.order-ensure-page .order-edit .order-title:before{content:'';display:block;background-image:url(../assets/img/sprite.order.png?v155e77e4829);background-position:-449px -110px;width:117px;height:33px}.order-ensure-page .order-edit .order-title.cart-page-title:before{content:'';display:block;background-image:url(../assets/img/sprite.order.png?v155e77e4829);background-position:0 -192px;width:117px;height:33px}.order-ensure-page .order-edit .order-edit-main{border:1px solid #ccc;margin-top:20px}.order-ensure-page .order-edit .order-edit-main h2.title{height:30px;line-height:30px;background:#000;color:#fff;font-size:12px;text-indent:15px;overflow:hidden}.order-ensure-page .order-edit .order-edit-main h2.title a{display:block;width:90px;height:22px;background-image:url(../assets/img/sprite.order.png?v155e77e4829);background-position:-274px -160px;float:right;margin-top:4px;margin-right:10px;cursor:pointer}.order-ensure-page .order-edit .order-edit-main .order-content{padding:5px 30px;font-size:12px;color:#333}.order-ensure-page .order-edit .order-edit-main .order-content .order-selection{border-bottom:1px dashed #ccc;padding:15px 0 0}.order-ensure-page .order-edit .order-edit-main .order-content .order-selection h2{font-size:14px;color:#000}.order-ensure-page .order-edit .order-edit-main .order-content .order-selection h2 span{color:#e8044f;text-decoration:underline;cursor:pointer}.order-ensure-page .order-edit .order-edit-main .order-content .address-list h2{margin-bottom:15px}.order-ensure-page .order-edit .order-edit-main .order-content .address-list ul li{padding:10px 0}.order-ensure-page .order-edit .order-edit-main .order-content .address-list ul li strong{font-weight:700;margin-right:15px}.order-ensure-page .order-edit .order-edit-main .order-content .address-list ul li input.radio{margin:0;vertical-align:middle}.order-ensure-page .order-edit .order-edit-main .order-content .address-list ul .order-modify-btn{display:inline-block;float:right;color:#e8044f;width:80px;padding-right:20px;height:auto;overflow:hidden}.order-ensure-page .order-edit .order-edit-main .order-content .address-list ul .order-modify-btn span{text-decoration:underline;cursor:pointer;float:right}.order-ensure-page .order-edit .order-edit-main .order-content .address-list ul .order-modify-btn span.address-modify{float:left}.order-ensure-page .order-edit .order-edit-main .order-content .address-list .exist-address-list{min-height:35px}.order-ensure-page .order-edit .order-edit-main .order-content .address-list .exist-address-list li{border:1px solid #fff;padding-left:15px}.order-ensure-page .order-edit .order-edit-main .order-content .address-list .exist-address-list li strong{color:#e8044f}.order-ensure-page .order-edit .order-edit-main .order-content .address-list .exist-address-list li .default-address,.order-ensure-page .order-edit .order-edit-main .order-content .address-list .exist-address-list li .order-modify-btn{display:none}.order-ensure-page .order-edit .order-edit-main .order-content .address-list .exist-address-list li .default-address{margin-left:15px;color:#468fa2;text-decoration:underline}.order-ensure-page .order-edit .order-edit-main .order-content .address-list .exist-address-list li .radio{display:none}.order-ensure-page .order-edit .order-edit-main .order-content .address-list .exist-address-list li.has-exist-address .default-address{color:#468fa2;text-decoration:underline;cursor:pointer}.order-ensure-page .order-edit .order-edit-main .order-content .address-list .exist-address-list.address-expand li .default-address,.order-ensure-page .order-edit .order-edit-main .order-content .address-list .exist-address-list.address-expand li .order-modify-btn,.order-ensure-page .order-edit .order-edit-main .order-content .address-list .exist-address-list.address-expand li .radio{display:inline-block}.order-ensure-page .order-edit .order-edit-main .order-content .address-list .exist-address-list.address-expand li.active{background:#dbedf7;border:1px solid #8fb8e0}.order-ensure-page .order-edit .order-edit-main .order-content .address-list .exist-address-list.address-expand li.address_select .default-address{color:#999;text-decoration:none}.order-ensure-page .order-edit .order-edit-main .order-content .address-manage{margin-top:20px;border-top:1px dashed #ccc}.order-ensure-page .order-edit .order-edit-main .order-content .address-manage li{height:25px;line-height:25px}.order-ensure-page .order-edit .order-edit-main .order-content .address-manage li .address-legend{width:80px;text-align:right;display:inline-block;color:#333}.order-ensure-page .order-edit .order-edit-main .order-content .address-manage li .address-legend i{color:#e8044f}.order-ensure-page .order-edit .order-edit-main .order-content .address-manage li .text-input{height:25px;line-height:25px;width:180px;padding:0;border:1px solid #ccc}.order-ensure-page .order-edit .order-edit-main .order-content .address-manage li select.text-input{width:100px}.order-ensure-page .order-edit .order-edit-main .order-content .address-manage li .address-tel-input{width:180px;text-align:center;display:inline-block;height:25px;line-height:25px}.order-ensure-page .order-edit .order-edit-main .order-content .address-manage li .address-tel-input input{text-align:left;float:right;width:120px}.order-ensure-page .order-edit .order-edit-main .order-content .address-manage li .address-tel-input input.tel-lengend{float:left;width:40px}.order-ensure-page .order-edit .order-edit-main .order-content .pay-btn,.order-ensure-page .order-edit .order-edit-main .order-content .save-btn{display:block;font-size:14px;color:#fff;font-weight:700;text-indent:25px;cursor:pointer;margin-bottom:15px}.order-ensure-page .order-edit .order-edit-main .order-content .save-btn{background-image:url(../assets/img/sprite.order.png?v155e77e4829);background-position:-247px -110px;width:200px;height:34px;line-height:34px}.order-ensure-page .order-edit .order-edit-main .order-content .save-btn.new-user-btn{width:245px;background-image:url(../assets/img/sprite.order.png?v155e77e4829);background-position:0 -110px}.order-ensure-page .order-edit .order-edit-main .order-content .pay-btn{background-image:url(../assets/img/sprite.order.png?v155e77e4829);background-position:0 -226px;width:90px;height:34px;line-height:34px}.order-ensure-page .order-edit .order-edit-main .order-content .pay-btn.new-user-pay{background-image:url(../assets/img/sprite.order.png?v155e77e4829);background-position:-247px -110px;width:200px}.order-ensure-page .order-edit .order-edit-main .order-content .pay-time ul{padding:15px}.order-ensure-page .order-edit .order-edit-main .order-content .pay-time ul li{margin:10px 0}.order-ensure-page .order-edit .order-edit-main .order-content .pay-time ul li input.radio{margin:0;vertical-align:middle}.order-ensure-page .order-edit .order-edit-main .order-content .pay-time ul .prev-sell-item{color:#e8044f}.order-ensure-page .order-edit .order-edit-main .order-content .pay-time .pay-time-modify .pay-time-title{margin-top:20px}.order-ensure-page .order-edit .order-edit-main .order-content .pay-time .pay-time-modify h3{height:25px;line-height:25px;border:1px solid #e6e6e6;background:#efefef;text-indent:25px;position:relative}.order-ensure-page .order-edit .order-edit-main .order-content .pay-time .pay-time-modify h3:after{content:'';display:block;width:11px;height:11px;background:url(../assets/img/order/roundgreybtn.gif?v155e77e3db6);position:absolute;top:7px;left:8px}.order-ensure-page .order-edit .order-edit-main .order-content .pay-time .pay-time-modify .pay-dashed-hr{border-bottom:1px dashed #ccc;padding-bottom:10px}.order-ensure-page .order-edit .order-edit-main .order-content .pay-time .pay-time-modify .pay-type-tips{color:#999;padding-left:15px}.order-ensure-page .order-edit .order-edit-main .order-content .pay-time .pay-time-modify div.pay-type-legend{width:130px;display:inline-block;padding:0;text-indent:0}.order-ensure-page .order-edit .order-edit-main .order-content .pay-time .pay-time-modify span.pay-type-legend{margin:0;color:#468fa2;cursor:pointer}.order-ensure-page .order-edit .order-edit-main .order-content .pay-time .pay-time-modify span.pay-type-legend:after{content:'';width:12px;height:12px;background:url(../assets/img/order/icon-arrow.png?v155e77e3db1);display:inline-block;transition:transform .3}.order-ensure-page .order-edit .order-edit-main .order-content .pay-time .pay-time-modify span.pay-type-legend.active:after{transform:rotate(180deg)}.order-ensure-page .order-edit .order-edit-main .order-content .pay-time .pay-time-modify .support-type{display:block;margin-left:130px;border-left:1px dashed #ccc;font-size:12px}.order-ensure-page .order-edit .order-edit-main .order-content .pay-time .pay-time-modify .support-type h4{padding:10px 0 10px 15px}.order-ensure-page .order-edit .order-edit-main .order-content .pay-time .pay-time-modify .support-type ul{height:auto;overflow:hidden;margin:0;padding:0}.order-ensure-page .order-edit .order-edit-main .order-content .pay-time .pay-time-modify .support-type ul li{display:block;float:left;width:105px;height:30px;border:1px solid #ccc;margin:0 0 10px 15px}.order-ensure-page .order-edit .order-edit-main .order-content .pay-time .pay-time-modify .support-type ul li img{display:block;width:100%;height:100%;overflow:hidden}.order-ensure-page .order-edit .order-edit-main .order-content .pay-time .pay-time-modify .pay-recommend{font-size:0}.order-ensure-page .order-edit .order-edit-main .order-content .pay-time .pay-time-modify .pay-recommend .pay-type-legend,.order-ensure-page .order-edit .order-edit-main .order-content .pay-time .pay-time-modify .pay-recommend .support-type{font-size:12px}.order-ensure-page .order-edit .order-edit-main .order-content .select-express{border-bottom:none}.order-ensure-page .order-edit .order-edit-main .order-content .select-express .sf{color:red;text-decoration:underline}.order-ensure-page .order-edit .order-edit-main .order-content .select-express .express-list{padding-left:15px;margin:10px 0}.order-ensure-page .order-edit .order-edit-main .order-content .select-express .express-list input.radio{margin:0;vertical-align:middle}.order-ensure-page .order-edit .order-edit-main .order-content .select-express .express-tips{color:#999}.order-ensure-page .order-pay{width:100%}.order-ensure-page .differentOrder{position:relative;width:100%}.order-ensure-page .differentOrder .warn{text-align:center;background:#fefbd5;font:initial;height:40px;line-height:40px;font-size:16px}.order-ensure-page .differentOrder .warn .red{color:red}.order-ensure-page .differentOrder .warn .why{background-image:url(../assets/img/sprite.order.png?v155e77e4829);background-position:-366px -160px;width:26px;height:20px;display:inline-block;vertical-align:middle}.order-ensure-page .differentOrder .warn .why:hover{cursor:pointer}.order-ensure-page .differentOrder .differentBag:before{content:"";position:absolute;width:0;height:0;border-bottom:10px solid #000;border-left:10px solid transparent;border-right:10px solid transparent;top:-10px;right:219px}.order-ensure-page .differentOrder .differentBag{display:none;position:absolute;right:-10px;top:40px;width:510px;padding:0 50px;background:#fff;z-index:1;border:1px solid #000;font-size:14px}.order-ensure-page .differentOrder .bag{position:relative;border-bottom:1px solid #e0e0e0;margin-top:10px;padding:20px 0}.order-ensure-page .differentOrder .bag h3{height:30px;line-height:30px;font-weight:700;margin-left:15px}.order-ensure-page .differentOrder .bag .pre{background-position:0 -261px;left:-30px}.order-ensure-page .differentOrder .bag .next,.order-ensure-page .differentOrder .bag .pre{position:absolute;background-image:url(../assets/img/sprite.order.png?v155e77e4829);width:30px;height:50px;top:70px;display:none}.order-ensure-page .differentOrder .bag .next{background-position:-32px -261px;right:-30px}.order-ensure-page .differentOrder .bag p{color:#767676;margin-left:15px}.order-ensure-page .differentOrder .bagDetil{position:relative;height:90px;width:510px;overflow:hidden;margin-bottom:20px}.order-ensure-page .differentOrder .bagDetil ul{list-style:none;position:absolute;left:0;clear:both;height:90px}.order-ensure-page .differentOrder .bagDetil ul li{float:left;width:102px;height:90px;line-height:90px;text-align:center;position:relative}.order-ensure-page .differentOrder .bagDetil ul li img{width:90px;height:90px}.order-ensure-page .differentOrder .bagDetil ul li p{position:absolute;bottom:0;background:#9c3;width:90px;height:1rem;line-height:1rem;color:#fff;margin-left:7px}.order-ensure-page .receipt-info{position:fixed;top:0;left:0;width:100%;height:100%!important}.order-ensure-page .receipt-info .receipt-mask{width:100%;height:100%;overflow:hidden;background-color:#000;opacity:.4;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=40)";z-index:11}.order-ensure-page .receipt-info .receipt-info-container{position:fixed;top:5%;left:0;right:0;width:700px;height:auto;margin-left:auto;margin-right:auto;background-color:#fff;border:3px solid #444}.order-ensure-page .receipt-info .receipt-title{margin:42px 55px 0;text-align:left;font-size:16px;padding-bottom:20px;border-bottom:3px solid #888}.order-ensure-page .receipt-info .receipt-type{margin:17px 0}.order-ensure-page .receipt-info .receipt-type span{margin-right:17px;padding:5px 15px;font-size:14px;border:1px solid #e0e0e0;color:#505050}.order-ensure-page .receipt-info .receipt-type .receipt-type-selected{border:1px solid #d0021b;color:#d0021b}.order-ensure-page .receipt-info .e-receipt-desc{position:relative;background-image:url(../assets/img/sprite.order.png?v155e77e4829);background-position:0 0;width:100%;height:108px}.order-ensure-page .receipt-info .e-receipt-desc a{position:absolute;left:0;bottom:0;width:150px;height:40px}.order-ensure-page .receipt-info .receipt-margin{margin-left:55px;margin-right:55px}.order-ensure-page .receipt-info .invoice-list{position:relative;margin-top:17px;height:90px}.order-ensure-page .receipt-info .invoice-list .invoice-star{position:absolute;top:0;left:0;margin-top:5px;width:12px;height:20px;line-height:20px;font-size:20px;color:#d0021b;text-align:center}.order-ensure-page .receipt-info .invoice-list .invoice-list-type{position:absolute;top:0;left:15px;width:80px;height:20px;line-height:20px;font-size:14px}.order-ensure-page .receipt-info .invoice-list .invoice-line{position:absolute;left:120px;width:500px;height:30px}.order-ensure-page .receipt-info .invoice-list .first-line{top:0}.order-ensure-page .receipt-info .invoice-list .second-line{top:30px}.order-ensure-page .receipt-info .invoice-list .input-line{height:40px}.order-ensure-page .receipt-info .invoice-list .input-line input{width:200px;height:30px;font-size:14px}.order-ensure-page .receipt-info .invoice-list .invoice-line label{width:90px;display:inline-block}.order-ensure-page .receipt-info .invoice-list .invoice-line i{margin-left:20px}.order-ensure-page .receipt-info .invoice-title-personal-hight{height:30px}.order-ensure-page .receipt-info .invoice-phone{height:40px}.order-ensure-page .receipt-info .invoice-title_group{height:90px}.order-ensure-page .receipt-info .blind{display:inline-block;margin-top:5px;margin-bottom:5px}.order-ensure-page .receipt-info .receipt-footer{margin-left:160px}.order-ensure-page .receipt-info .receipt-footer div{display:inline-block;width:140px;height:40px;line-height:40px;text-align:center;margin:30px 20px 35px}.order-ensure-page .receipt-info .receipt-footer .highlight{border:1px solid #3a3a3a;background:#3a3a3a;color:#fff}.order-ensure-page .receipt-info .receipt-footer .normal{border:1px solid #b0b0b0;background:#fff;color:#444}.order-ensure-page .receipt-info .enpty-input{color:#d3132a}.freebie-tag{background:#9c3}.advance-buy-tag{background:#fc1264}.virtual-good-tag{background:red}.presall-tag{background:blue}.order-pay{font-size:12px;line-height:150%}.order-pay .pay-wapper{border:1px solid #ccc;border-top:none}.order-pay .pay-wapper .cart-sub-total{font-weight:700}.order-pay .pay-wapper .cart-sub-total-all{font-weight:700;font-size:18px}.order-pay table{width:100%}.order-pay table td{border:1px solid #ccc;border-left:0 none;padding:10px;text-align:center}.order-pay thead{background:#000}.order-pay thead th{height:32px;line-height:32px;color:#fff;vertical-align:middle;text-align:center;font-weight:700}.order-pay thead .clo1{width:10%}.order-pay thead .clo2{width:20%}.order-pay thead .clo4{width:40%}.order-pay .pay-pro-icon{float:left;width:60px;height:60px;display:block;position:relative}.order-pay .pay-pro-icon span{width:100%;height:16px;line-height:16px;position:absolute;left:0;bottom:0;text-align:center;color:#fff;display:block;cursor:pointer}.order-pay .pay-pro-icon .incentive{background:#f74a87}.order-pay .pay-pro-icon .gift{background:#9c3}.order-pay .pay-pro-info{color:#999;margin-left:70px;text-align:left}.order-pay .pay-pro-info a{color:#468fa2;text-decoration:none;display:block}.order-pay .pay-pro-info a:hover{text-decoration:underline}.order-pay .section-play{margin:20px auto;border:1px solid #ccc}.order-pay .section-play .section-head{line-height:40px;background:#eaeaea;font-size:14px;padding-left:20px;font-weight:500}.order-pay .section-play .play-pan{padding-left:20px;line-height:60px;font-size:10px;display:inline-block}.order-pay .section-play .invoice-content-outter{display:inline-block}.order-pay .section-play .mes{display:inline-block;margin:10px}.order-pay .section-play .revise{width:40px;height:20px;line-height:20px;border:1px solid #e0e0e0;text-align:center}.order-pay .play-content{padding:10px}.order-pay .play-content .red{color:#e8044f!important}.order-pay .play-content .orange{color:#f60!important}.order-pay .play-content .strong{font-weight:700;color:#000}.order-pay .play-content .pan dt{width:105px;height:30px;padding:0 0 0 30px;line-height:30px;text-align:left;border:0;color:#fff;display:inline-block;cursor:pointer;background:url(../assets/img/order/btn-openclose.png?v155e77e3daf) no-repeat 0 -60px;margin-bottom:5px}.order-pay .play-content .pan dd{display:none;border:1px solid #ccc;padding:10px 15px;margin-bottom:10px}.order-pay .play-content .dropdown,.order-pay .play-content .textbox{height:20px;line-height:20px;color:#333;border:1px solid #c9c9c9;vertical-align:top}.order-pay .play-content .btn-group{text-align:right}.order-pay .play-content .btn-group input{display:inline-block;background:none;border:1px solid #ccc;border-radius:2px;height:20px}.order-pay .play-content .btn-group .ok{background-color:#000;color:#fff;cursor:pointer}.order-pay .play-content .btn-group .cancel{cursor:pointer}.order-pay .play-content .play-left{float:left;width:405px}.order-pay .play-content .play-left .pan{text-align:left}.order-pay .play-content .play-left .pan dt{color:#000;background-image:url(../assets/img/sprite.order.png?v155e77e4829);background-position:-137px -160px}.order-pay .play-content .play-left .pan dt.active{background-image:url(../assets/img/sprite.order.png?v155e77e4829);background-position:0 -160px}.order-pay .play-content .play-piao-pan li{height:25px;padding:10px 0;line-height:22px}.order-pay .play-content .play-piao-pan li label{width:65px;display:inline-block}.order-pay .play-content .play-piao-pan li .textbox{width:200px}.order-pay .play-content .play-remark-pan .textbox{width:369px;height:70px}.order-pay .play-content .play-remark-pan .note{padding:5px 0;color:#999}.order-pay .play-content .play-right{float:right;width:50%;width:405px}.order-pay .play-content .play-right .pan{text-align:right}.order-pay .play-content .play-right .red-envelopes{width:200px;height:60px;border:1px dashed #000;margin-top:10px;float:right;padding:15px;font-size:12px;color:#000}.order-pay .play-content .play-right .red-envelopes.active{background:#fefccb}.order-pay .play-content .play-right .use-envelopes{font-weight:700}.order-pay .play-content .play-right .has-envelopes{margin-top:5px}.order-pay .play-content .play-right .has-envelopes span{font-weight:700}.order-pay .play-content .back-coin{text-align:right;height:30px;line-height:30px;padding-right:18px}.order-pay .play-content .back-coin .yoho-coin{width:14px;height:14px;display:inline-block;background-image:url(../assets/img/sprite.cart.png?v155e77e4827);background-position:-321px -225px;vertical-align:middle;margin-top:-2px;margin-right:4px}.order-pay .play-content .play-total{text-align:right;padding-bottom:20px}.order-pay .play-content .play-total .bi-modify,.order-pay .play-content .play-total .juan-modify{color:#468fa2;text-decoration:underline;cursor:pointer}.order-pay .play-content .play-total label{padding-right:10px}.order-pay .play-content .play-total em{width:80px;text-align:left;display:inline-block}.order-pay .play-content .play-total a{color:#468fa2;text-decoration:underline}.order-pay .play-content .play-total .total-express-w{color:#e80480}.order-pay .play-content .play-juan-pan dd{text-align:left}.order-pay .play-content .play-juan{padding:10px 0}.order-pay .play-content .play-juan .textbox{width:70px}.order-pay .play-content .play-juan [disabled=disabled]+label{color:#999}.order-pay .play-content .play-bi-pan dd{text-align:right}.order-pay .play-content .play-bi-pan .textbox{width:70px}.order-pay .play-content .play-bi-pan p{padding:10px 0}.order-pay .play-content .play-bi-pan p.errbitip{padding-top:0}.order-pay .to-play p{padding:10px 0;font-size:14px;text-align:right;color:#000}.order-pay .to-play p em{color:#e8044f;font-size:24px}.order-pay .to-play .btn-group{padding:10px 0 40px}.order-pay .to-play .btn-group .submit{float:right;width:133px;height:33px;padding:0;text-align:center;border:0;line-height:33px;font-size:14px;color:#fff;font-weight:700;background:url(../assets/img/order/btns.png?v155e77e3db0) no-repeat 0 -33px;display:inline-block;cursor:pointer}.order-ensure-page .none{display:none}.order-ensure-page .curser-button{cursor:pointer}.order-ensure-page .gift{position:relative;width:988px;height:50px;background:url(../assets/img/cart/cart_gift.png?v155e77e3d12) 0 0 repeat;border:1px solid #ccc;text-align:center}.order-ensure-page .gift p{background:url(../assets/img/cart/cart_gift_banner.jpg?v155e77e3d21) 0 0 no-repeat;display:inline-block;width:450px;height:50px;overflow:hidden}.order-ensure-page .gift i{width:30px;height:30px;overflow:hidden;position:absolute;top:10px;right:5px;cursor:pointer}.order-ensure-page .gift .up{background-position:-329px -141px}.order-ensure-page .gift .down,.order-ensure-page .gift .up{background-image:url(../assets/img/sprite.cart.png?v155e77e4827)}.order-ensure-page .gift .down{background-position:-332px -178px}.order-ensure-page .loading{width:120px;height:28px;overflow:hidden;position:absolute;left:50%;top:50%;display:none;line-height:30px;border:1px solid #ccc;font-size:12px;text-indent:10px;background:#fff}.order-ensure-page .loading span{width:20px;height:20px;float:left;margin:4px 4px 4px 13px;background:url(../assets/img/cart/loading_s.gif?v155e77e3d34) 2px 2px no-repeat}.order-ensure-page .dev-revocation{border:1px solid #fcd081;background:#fff8d9;margin-bottom:15px}.order-ensure-page .dev-revocation td{border:none}.order-ensure-page .dev-revocation td a{color:#468fa2;margin-left:12px}.order-ensure-page .dev-revocation td a:hover{text-decoration:underline}.order-ensure-page .order-title{margin-top:30px;height:auto;overflow:hidden}.order-ensure-page .salesPromotion{width:990px;height:36px;border-bottom:1px solid #ccc;font-size:12px}.order-ensure-page .salesPromotion p{width:800px;height:36px;line-height:36px;float:left;padding:0 10px}.order-ensure-page .salesPromotion p b{margin-right:5px;background:#6c6c6c;border-radius:4px;padding:1px 5px;color:#fff}.order-ensure-page .salesPromotion span{width:150px;height:36px;padding:0 10px;line-height:36px;float:right;text-align:right;position:relative}.order-ensure-page .salesPromotion span i{position:absolute;top:11px;left:108px;float:left;width:13px;height:13px;background-image:url(../assets/img/sprite.cart.png?v155e77e4827);background-position:-357px -71px}.order-ensure-page .cartnew-tips{height:auto;overflow:hidden;font-size:12px;margin-bottom:5px}.order-ensure-page .cartnew-tips .tipsbox{width:648px;height:23px;line-height:18px;padding:4px 5px 4px 10px;color:#666;background:url(../assets/img/cart/cartnew_tipsbox.png?v155e77e3d0c) no-repeat;position:relative;float:left}.order-ensure-page .cartnew-tips .tipsbox .btn_close{width:17px;height:17px;padding:0;background-image:url(../assets/img/sprite.cart.png?v155e77e4827);background-position:-270px -225px;float:right;cursor:pointer}.order-ensure-page .cartnew-tips .tipsbox strong{color:#000;font-weight:700}.order-ensure-page .cartnew-tips .tipsbox a{color:#468fa2}.order-ensure-page .pay-wapper{position:relative}.order-ensure-page .pay-wapper .pre-sell .pre-sell-title{background:#fff9d9}.order-ensure-page .pay-wapper .pre-sell .pre-sell-title span{margin-right:10px}.order-ensure-page .pay-wapper .free{display:inline-block;width:39px;height:20px;background-image:url(../assets/img/sprite.cart.png?v155e77e4827);background-position:-150px -225px}.order-ensure-page .pay-wapper .fold,.order-ensure-page .pay-wapper .none{display:none}.order-ensure-page .pay-wapper .vipPrice{color:#e8044f;display:block}.order-ensure-page .pay-wapper .presell{color:#c21250;display:block}.order-ensure-page .pay-wapper .giftInfo{margin-left:30px}.order-ensure-page .pay-wapper .pay-pro-info{padding-left:15px;padding-top:10px;margin-left:0;float:left}.order-ensure-page .pay-wapper .pay-pro-info a{width:200px}.order-ensure-page .pay-wapper .pre-sell-box .cart-empty{border:none;padding:100px 0 100px 260px;background:url(../assets/img/cart/cart_empty.gif?v155e77e3d11) 200px 56px no-repeat}.order-ensure-page .pay-wapper .pre-sell-box .cart-empty a{display:inline-block;width:90px;height:35px;background-image:url(../assets/img/sprite.cart.png?v155e77e4827);background-position:-237px -141px;overflow:hidden;color:#666;line-height:32px}.order-ensure-page .pay-wapper .pre-sell-box .incentive{background:#000100;color:#fff}.order-ensure-page .pay-wapper .tip-message{background:#e8044f;color:#fff;font-size:12px;margin-top:5px}.order-ensure-page .pay-wapper .cart-product-num{font-size:12px;text-align:left;height:33px;line-height:33px;background:#f8f8f8;padding:0 10px;position:relative}.order-ensure-page .pay-wapper .cart-product-num strong{padding-left:20px;font-weight:700}.order-ensure-page .pay-wapper .cart-product-num .icon-minusCart{background-position:-289px -225px}.order-ensure-page .pay-wapper .cart-product-num .icon-addCart,.order-ensure-page .pay-wapper .cart-product-num .icon-minusCart{position:absolute;top:9px;left:15px;float:left;width:15px;height:15px;cursor:pointer;background-image:url(../assets/img/sprite.cart.png?v155e77e4827)}.order-ensure-page .pay-wapper .cart-product-num .icon-addCart{background-position:-305px -225px}.order-ensure-page .pay-wapper .cart-product-num .icon-zp{position:absolute;top:8px;left:10px;float:left;width:18px;height:19px;background-image:url(../assets/img/sprite.cart.png?v155e77e4827);background-position:-251px -225px}.order-ensure-page .pay-wapper .cart-product-num .cart-unfold{position:absolute;top:0;right:10px}.order-ensure-page .pay-wapper .cart-product-num .cart-unfold i{width:28px;height:20px;overflow:hidden;display:inline-block;margin-top:5px;cursor:pointer}.order-ensure-page .pay-wapper .cart-product-num .cart-btn-pre{background-image:url(../assets/img/sprite.cart.png?v155e77e4827);background-position:-191px -225px}.order-ensure-page .pay-wapper .cart-product-num .cart-btn-next{background-image:url(../assets/img/sprite.cart.png?v155e77e4827);background-position:-221px -225px}.order-ensure-page .pay-wapper .cart-product-num .unfold-color{color:#666;cursor:pointer}.order-ensure-page .pay-wapper .cart-product-num .cart-page p{float:left;padding-right:5px}.order-ensure-page .pay-wapper .cart-product-num .cart-page .f-red{color:red}.order-ensure-page .pay-wapper .cart-product-num input{position:relative;top:2px}.order-ensure-page .pay-wapper input.cart-item-check{float:left;margin-top:25px;margin-left:15px}.order-ensure-page .pay-wapper .adjust-cart-num input{width:30px;margin:0 5px;text-align:center}.order-ensure-page .pay-wapper .adjust-cart-num span{display:inline-block;width:11px;height:11px;cursor:pointer;font-size:10px}.order-ensure-page .pay-wapper .adjust-cart-num .minus{background-image:url(../assets/img/sprite.cart.png?v155e77e4827);background-position:-357px -119px}.order-ensure-page .pay-wapper .adjust-cart-num .plus{background-image:url(../assets/img/sprite.cart.png?v155e77e4827);background-position:-357px -106px}.order-ensure-page .pay-wapper .cart-add-btn{width:118px;height:32px;display:inline-block;overflow:hidden;border:0;cursor:pointer;line-height:32px}.order-ensure-page .pay-wapper .zp{background-image:url(../assets/img/sprite.cart.png?v155e77e4827);background-position:-237px -71px}.order-ensure-page .pay-wapper .order{background-image:url(../assets/img/sprite.cart.png?v155e77e4827);background-position:-237px -106px}.order-ensure-page .pay-wapper .cart-yetremove-btn{height:20px;line-height:21px;padding:0 10px;display:inline-block;color:#b3b3b3;position:relative;border:1px solid #dcdcdc;background:#ebebeb;border-radius:3px}.order-ensure-page .pay-wapper .cart-del-btn,.order-ensure-page .pay-wapper .cart-remove-btn{height:22px;line-height:21px;padding:0 10px;display:inline-block;cursor:pointer;color:#666;position:relative}.order-ensure-page .pay-wapper .cart-del-btn span,.order-ensure-page .pay-wapper .cart-remove-btn span{position:relative;z-index:9}.order-ensure-page .pay-wapper .cart-del-btn:after,.order-ensure-page .pay-wapper .cart-remove-btn:after{content:'';display:block;width:16px;height:100%;background-image:url(../assets/img/sprite.cart.png?v155e77e4827);background-position:-102px -248px;position:absolute;right:0;top:0;z-index:7}.order-ensure-page .pay-wapper .cart-del-btn:before,.order-ensure-page .pay-wapper .cart-remove-btn:before{content:'';display:block;width:100%;height:100%;background-image:url(../assets/img/sprite.cart.png?v155e77e4827);background-position:0 -225px;position:absolute;left:0;top:0}.order-ensure-page .cartnew-sum{background:#efefef;border:1px solid #ccc;padding:10px;margin-bottom:10px;zoom:1;margin-top:20px;height:auto;overflow:hidden;font-size:12px}.order-ensure-page .cartnew-sum .left{float:left}.order-ensure-page .cartnew-sum .left a{color:#333;margin-left:20px}.order-ensure-page .cartnew-sum .left input{position:relative;top:2px}.order-ensure-page .cartnew-sum .right{float:right;text-align:right}.order-ensure-page .cartnew-sum .right strong{color:#e8044f;font-size:18px}.order-ensure-page .cartnew-sum .sum{color:#333;font-weight:700;padding-bottom:5px}.order-ensure-page .cartnew-sum .yoho-coin{width:14px;height:14px;display:inline-block;background-image:url(../assets/img/sprite.cart.png?v155e77e4827);background-position:-321px -225px;vertical-align:middle;margin-top:-2px;margin-right:4px}.order-ensure-page .cartnew-submit{padding:10px 0 40px;text-align:right;position:relative}.order-ensure-page .cartnew-submit .btn_continue{width:60px;padding:0 0 0 33px;text-align:left;color:#333;background-position:-237px -178px;float:left}.order-ensure-page .cartnew-submit .btn_account,.order-ensure-page .cartnew-submit .btn_continue{height:33px;border:0;line-height:33px;font-size:14px;font-weight:700;background-image:url(../assets/img/sprite.cart.png?v155e77e4827);display:inline-block;cursor:pointer}.order-ensure-page .cartnew-submit .btn_account{width:133px;padding:0;text-align:center;color:#fff;background-position:-237px 0;float:right}.order-ensure-page .cartnew-submit .go_cash_tips{font-size:12px;width:200px;padding:5px 7px 0 28px;height:45px;position:absolute;right:135px;top:10px;text-align:left;color:#e8044f;background-image:url(../assets/img/sprite.cart.png?v155e77e4827);background-position:0 0;display:block}.order-ensure-page .cartnew-submit .btn_account_disabled{width:133px;height:33px;padding:0;text-align:center;border:0;line-height:33px;font-size:14px;color:#ccc;font-weight:700;background-image:url(../assets/img/sprite.cart.png?v155e77e4827);background-position:-237px -36px;display:inline-block;cursor:pointer}.order-ensure-page .cartnew-goodslist{margin-bottom:10px;font-size:12px;border:1px solid #ccc}.order-ensure-page .cartnew-goodslist .title{height:20px;padding:8px 10px;background:#efefef}.order-ensure-page .cartnew-goodslist .title h2{height:20px;line-height:24px;overflow:hidden;font-size:12px;float:left;cursor:pointer}.order-ensure-page .cartnew-goodslist .title h2 i{width:15px;height:15px;float:left;position:relative;top:4px;margin-right:5px}.order-ensure-page .cartnew-goodslist .title h2 .icon-minus{background-image:url(../assets/img/sprite.cart.png?v155e77e4827);background-position:-289px -225px}.order-ensure-page .cartnew-goodslist .title h2 .icon-add{background-image:url(../assets/img/sprite.cart.png?v155e77e4827);background-position:-305px -225px}.order-ensure-page .cartnew-goodslist .right{float:right}.order-ensure-page .cartnew-goodslist .right span{width:28px;height:22px;display:inline-block}.order-ensure-page .cartnew-goodslist .right .pageprev{background-image:url(../assets/img/sprite.cart.png?v155e77e4827);background-position:-191px -225px}.order-ensure-page .cartnew-goodslist .right .pagenext{background-image:url(../assets/img/sprite.cart.png?v155e77e4827);background-position:-221px -225px}.order-ensure-page .cartnew-goodslist .main{height:230px;border-top:1px solid #e3e3e3;display:block}.order-ensure-page .cartnew-goodslist .main ul{height:auto;width:100%;overflow:hidden}.order-ensure-page .cartnew-goodslist .main li{width:16.6667%;box-sizing:border-box;height:230px;border-right:1px solid #e3e3e3;float:left}.order-ensure-page .cartnew-goodslist .main li.end{border:none}.order-ensure-page .cartnew-goodslist .main .list{width:102px;padding:10px 0 0;margin:0 auto}.order-ensure-page .cartnew-goodslist .main .thumb{height:110px}.order-ensure-page .cartnew-goodslist .main .thumb img{display:block;margin:0 auto}.order-ensure-page .cartnew-goodslist .main .name{height:35px;overflow:hidden;font-size:12px}.order-ensure-page .cartnew-goodslist .main .name h3{height:30px;line-height:15px;font-size:12px;font-weight:400;color:#333;cursor:pointer;overflow:hidden}.order-ensure-page .cartnew-goodslist .main .name a{color:#333;text-decoration:underline}.order-ensure-page .cartnew-goodslist .main .price{color:#333;height:25px;line-height:25px;font-weight:700;white-space:nowrap;overflow:hidden;text-align:center;font-size:12px}.order-ensure-page .cartnew-goodslist .main .price del{color:#999}.order-ensure-page .cartnew-goodslist .main .op{text-align:center;padding:0 0 5px}.order-ensure-page .cartnew-goodslist .main .btn_view_s{width:100px;height:22px;background-image:url(../assets/img/sprite.cart.png?v155e77e4827);background-position:0 -248px;display:inline-block;border:0}.shop-cart .goods-detail{position:absolute;top:10%;left:0;z-index:10;width:650px;height:auto;overflow:hidden;border:1px solid #ccc;border-radius:5px;background:#fff;display:none}.shop-cart .goods-detail .magnify{position:absolute;width:12px;height:12px;background-image:url(../assets/img/sprite.cart.png?v155e77e4827);background-position:-357px -85px;bottom:2px;right:2px}.shop-cart .goods-detail .detail-header{display:block;font-size:12px;line-height:16px;text-align:center;color:#fff;margin-top:5px;box-sizing:border-box;padding-right:5px;height:16px;cursor:move}.shop-cart .goods-detail .detail-header .colse{float:right;width:46px;height:16px;background:#ccc;border-radius:2px;cursor:pointer}.shop-cart .goods-detail .detail-header .colse:hover{background:#414141}.shop-cart .goods-detail .detail-body{width:610px;padding:15px;margin:0 auto}.shop-cart .goods-detail .detail-body .none{display:none}.shop-cart .goods-detail .detail-body .detail-bigpic{width:290px;padding-bottom:15px;float:left}.shop-cart .goods-detail .detail-body .detail-bigpic .bigpic{width:210px;height:280px;display:block;margin:0 auto 10px}.shop-cart .goods-detail .detail-body .detail-bigpic .bigpic img{width:100%;height:auto}.shop-cart .goods-detail .detail-body .detail-bigpic .piclist{height:65px;cursor:pointer}.shop-cart .goods-detail .detail-body .detail-bigpic .piclist span{width:10px;height:60px}.shop-cart .goods-detail .detail-body .detail-bigpic .piclist .pre{background-image:url(../assets/img/sprite.cart.png?v155e77e4827);background-position:0 -304px;float:left}.shop-cart .goods-detail .detail-body .detail-bigpic .piclist .con{width:260px;height:65px;overflow:hidden;float:left;margin-left:5px}.shop-cart .goods-detail .detail-body .detail-bigpic .piclist .con li{float:left;width:58px;height:58px;border:1px solid #ccc;margin:1px;vertical-align:top;overflow:hidden;text-align:center}.shop-cart .goods-detail .detail-body .detail-bigpic .piclist .con li img{width:auto;height:100%;display:inline-block}.shop-cart .goods-detail .detail-body .detail-bigpic .piclist .con .active{width:56px;height:56px;border:2px solid #333}.shop-cart .goods-detail .detail-body .detail-bigpic .piclist .next{background-image:url(../assets/img/sprite.cart.png?v155e77e4827);background-position:-12px -304px;float:right}.shop-cart .goods-detail .detail-body .detail-info{width:300px;float:right;padding-bottom:15px}.shop-cart .goods-detail .detail-body .detail-info .title{padding:5px 0}.shop-cart .goods-detail .detail-body .detail-info .title h2{width:300px;color:#000;font-size:12px;font-weight:400;white-space:nowrap;overflow:hidden}.shop-cart .goods-detail .detail-body .detail-info .arrivalDate{color:red}.shop-cart .goods-detail .detail-body .detail-info .type{padding-bottom:10px}.shop-cart .goods-detail .detail-body .detail-info .type .type-s{background:#ccc;padding:0 5px;color:#fff;font-size:12px;height:15px;line-height:15px;display:inline-block}.shop-cart .goods-detail .detail-body .detail-info .price{padding:0 0 10px;margin-bottom:10px;border-bottom:1px solid #000}.shop-cart .goods-detail .detail-body .detail-info .price .oldprice{color:#999;font-size:14px;font-weight:700;display:block;padding-bottom:5px}.shop-cart .goods-detail .detail-body .detail-info .price .newprice{color:#000;font-size:14px;font-weight:700;height:30px;line-height:30px;padding:0 0 5px}.shop-cart .goods-detail .detail-body .detail-info .price .newprice b{font-size:22px;font-family:arial}.shop-cart .goods-detail .detail-body .detail-info .order{color:#000;font-size:12px}.shop-cart .goods-detail .detail-body .detail-info .order dd{width:55px;float:left;padding-bottom:8px}.shop-cart .goods-detail .detail-body .detail-info .order dt{width:245px;float:left;padding-bottom:8px}.shop-cart .goods-detail .detail-body .detail-info .order dd.colorBox{line-height:44px}.shop-cart .goods-detail .detail-body .detail-info .order .colorBox{height:75px}.shop-cart .goods-detail .detail-body .detail-info .order .colorBox li{width:44px;height:65px;overflow:hidden;text-align:center;margin-right:4px;display:inline;float:left;cursor:pointer}.shop-cart .goods-detail .detail-body .detail-info .order .colorBox li .atcive{width:40px;height:40px;border:2px solid #e8044f}.shop-cart .goods-detail .detail-body .detail-info .order .colorBox li .atcive span{position:absolute;bottom:0;right:0;width:11px;height:11px;overflow:hidden;background:url(../assets/img/cart/ico_r_act.png?v155e77e3d2b) 0 0 no-repeat}.shop-cart .goods-detail .detail-body .detail-info .order .colorBox li p{width:42px;height:42px;margin:0;display:inline-block;border:1px solid #ccc;position:relative}.shop-cart .goods-detail .detail-body .detail-info .order .colorBox li p img{width:100%;height:auto}.shop-cart .goods-detail .detail-body .detail-info .order .colorBox li span{line-height:20px}.shop-cart .goods-detail .detail-body .detail-info .order .showSizeBox{height:25px;line-height:18px}.shop-cart .goods-detail .detail-body .detail-info .order .showSizeBox span{cursor:pointer;height:18px;padding:0 10px;border:1px solid #ccc;margin:1px 5px 5px 1px;display:inline;float:left;overflow:hidden}.shop-cart .goods-detail .detail-body .detail-info .order .showSizeBox .atcive{height:16px;border:2px solid red;background:url(../assets/img/cart/ico_r_act.png?v155e77e3d2b) 100% 100% no-repeat}.shop-cart .goods-detail .detail-body .detail-info .order .showSizeBox .null-atcivec{height:18px;border:1px solid #ccc;color:#ccc}.shop-cart .goods-detail .detail-body .detail-info .order .showSizeBox .atcivec{height:16px;border:2px solid #ccc;background:url(../assets/img/cart/ico_r_act_h.png?v155e77e3d2f) 100% 100% no-repeat;color:#ccc}.shop-cart .goods-detail .detail-body .detail-info .order .amount_wrapper{width:100px;height:20px;display:inline-block}.shop-cart .goods-detail .detail-body .detail-info .order .amount_wrapper .amount{width:12px;height:12px;display:inline;cursor:pointer;border:0;float:left;font-size:10px;color:#c4c4c4}.shop-cart .goods-detail .detail-body .detail-info .order .amount_wrapper .cut{background-image:url(../assets/img/sprite.cart.png?v155e77e4827);background-position:-357px -119px;margin:5px 5px 0 0}.shop-cart .goods-detail .detail-body .detail-info .order .amount_wrapper .add{background-image:url(../assets/img/sprite.cart.png?v155e77e4827);background-position:-357px -106px;margin:5px 0 0 5px}.shop-cart .goods-detail .detail-body .detail-info .order .amount_wrapper .mnum{width:33px;height:18px;line-height:16px;border:1px solid #c4c4c4;text-align:center;overflow:hidden;float:left;font-size:12px}.shop-cart .goods-detail .detail-body .detail-info .submit{padding-top:10px;float:left}.shop-cart .goods-detail .detail-body .detail-info .submit input{width:225px;height:45px;overflow:hidden;border:0;cursor:pointer;float:left}.shop-cart .goods-detail .detail-body .detail-info .submit .addcart{background-image:url(../assets/img/sprite.cart.png?v155e77e4827);background-position:0 -146px}.shop-cart .goods-detail .detail-body .detail-info .submit .btn_pre_sale{background-image:url(../assets/img/sprite.cart.png?v155e77e4827);background-position:0 -52px}.shop-cart .goods-detail .detail-body .detail-info .submit .btn_sellout{background-image:url(../assets/img/sprite.cart.png?v155e77e4827);background-position:0 -99px}.shop-cart .goods-detail .detail-body .detail-info .submit .fav_count{background-image:url(../assets/img/sprite.cart.png?v155e77e4827);background-position:0 -193px;height:30px}.shop-cart .goods-detail .detail-body .detail-size{float:left;border-top:1px dashed #ccc;width:100%;height:auto;padding-bottom:15px}.shop-cart .goods-detail .detail-body .detail-size h3{height:35px;line-height:35px;font-size:14px}.shop-cart .goods-detail .detail-body .detail-size h3 span{font-size:12px}.shop-cart .goods-detail .detail-body .detail-size table{width:100%;height:auto;border:1px solid #ccc;margin-bottom:5px;font-size:12px}.shop-cart .goods-detail .detail-body .detail-size table td{border:1px solid #fff;padding:3px;font-weight:400;background:#fbfbfb;text-align:center;padding:8px 3px}.shop-cart .goods-detail .detail-body .detail-size table tr:nth-of-type(even) td{background:#f4f4f4}.shop-cart .goods-detail .detail-body .detail-size .size-info{font-size:12px;color:#999}.shopping-pay-page{margin:25px auto}.shopping-pay-page .pay-page{width:100%;position:relative}.shopping-pay-page .not-pay{width:680px;height:400px;margin:0 auto;overflow:hidden;padding-top:100px;padding-left:200px}.shopping-pay-page .not-pay p{padding-left:30px;line-height:32px}.shopping-pay-page .not-pay .success{background:url(../assets/img/pay/success.png?v155e77e3de7) no-repeat 0}.shopping-pay-page .not-pay a{margin-top:40px;margin-left:140px;float:left;color:#c5c5c5}.shopping-pay-page .pay-title{width:980px;height:52px;overflow:hidden;padding:20px 0 0;margin:0 auto;border-bottom:2px solid #000}.shopping-pay-page .pay-title ul{width:446px;height:12px;float:right;list-style:none;padding:0;margin:0;background:url(../assets/img/pay/pay-list.png?v155e77e3de4) no-repeat 100% 0}.shopping-pay-page .pay-title li{width:176px;height:12px;text-align:center;color:#999;float:left}.shopping-pay-page .pay-title li span{display:block;height:15px;padding:15px 0 0;line-height:15px;font-size:12px}.shopping-pay-page .pay-title .end{width:93px;height:18px;color:#000}.shopping-pay-page .pay-title .end span{text-align:right}.shopping-pay-page .step4{height:24px;width:99px;overflow:hidden;background-image:url(../assets/img/pay/pay-title.png?v155e77e3de6);float:left}.shopping-pay-page .step5{height:31px;width:117px;overflow:hidden;background-image:url(../assets/img/pay/bc.png?v155e77e3dcc);float:left}.shopping-pay-page .cart-pay{width:980px;margin:25px auto}.shopping-pay-page .cart-pay h2{width:950px;height:40px;padding:0 0 0 30px;line-height:40px;color:#000;font-size:20px;font-family:Arial,helvetica,sans-serif;background:url(../assets/img/pay/cat-pay.png?v155e77e3dd1) no-repeat 0 11px;font-weight:400}.shopping-pay-page .cart-pay h3{height:40px;line-height:40px;font-weight:400;color:#666;font-size:12px;margin:0}.shopping-pay-page .cart-pay h3 strong{color:#e8044f;font-size:14px;font-weight:700}.shopping-pay-page .cart-pay h4{height:30px;line-height:30px;color:#000;font-size:14px;display:block;margin:0}.shopping-pay-page .wrapper{width:980px;margin:25px auto;overflow:hidden;border-top:2px solid #d9d9d9;padding-top:19px}.shopping-pay-page .pay-way{width:980px;height:32px;margin-bottom:27px;overflow:hidden;margin:30 auto}.shopping-pay-page .word{display:block;float:left;line-height:32px;font-size:16px;margin-right:10px}.shopping-pay-page .pay-type-img{height:30px;float:left;vertical-align:middle}.shopping-pay-page #tab-box{width:980px;margin-top:30px}.shopping-pay-page .tab-conbox,.shopping-pay-page .tabs{border-bottom:1px solid #d9d9d9}.shopping-pay-page .tabs{height:40px;padding-left:20px;background:#fff}.shopping-pay-page .tabs li{height:40px;width:85px;line-height:40px;float:left;margin-bottom:-1px;background:#ededed;overflow:hidden;position:relative;margin-left:20px;font-size:12px}.shopping-pay-page .tabs li a{display:block;outline:none;font-size:12px;text-align:center}.shopping-pay-page .tabs li.thistab{background:#fff;border-bottom:1px solid #fff;border:1px solid #d9d9d9;border-bottom:none}.shopping-pay-page .tab-con{padding-top:30px;font-size:14px;line-height:175%;overflow:hidden}.shopping-pay-page .none{display:none}.shopping-pay-page .count{width:1020px;height:170px}.shopping-pay-page .mode{width:210px;height:50px;border:1px solid #d9d9d9;margin-right:45px;margin-bottom:30px;float:left;box-sizing:border-box;text-align:center;vertical-align:middle;display:block;position:relative;line-height:44px}.shopping-pay-page .mode img{vertical-align:middle;outline:none}.shopping-pay-page .mode:hover{border:1px solid red}.shopping-pay-page .choosed-tag{background-image:url(../assets/img/pay/mode-top.png?v155e77e3dd3);height:22px;width:23px;position:absolute;top:0;right:0}.shopping-pay-page .choose-type,.shopping-pay-page .choose-type:hover{border:2px solid red}.shopping-pay-page .btn-wrapper{width:100%;padding-top:21px;margin-top:10px;margin-bottom:55px}.shopping-pay-page .btnby{outline:none;background:url(../assets/img/pay/pay-btn.png?v155e77e3de3) no-repeat 100% 0;background-repeat:no-repeat;background-position:191px;float:right;width:230px;height:40px;line-height:40px;background-color:#da0040;color:#fff;font-size:16px;border:none;font-weight:700;font-family:arial,Microsoft YaHei!important}.shopping-pay-page .light-box{display:block;position:fixed;width:100%;height:100%;z-index:17;top:0;left:0;font-family:Microsoft Yahei;display:none}.shopping-pay-page .opacity{width:100%;height:1000px;background:#000;filter:Alpha(Opacity=50);opacity:.5;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";overflow:hidden;position:absolute;top:0;left:0}.shopping-pay-page .content{margin-left:-203px;margin-top:-124px;padding:50px 40px;background-color:#fff;position:absolute;top:50%;left:50%;box-shadow:0 0 8px #e8e8e8}.shopping-pay-page .notice{padding:26px 14px;line-height:20px;font-size:13px;color:#9f9f9f}.shopping-pay-page .btns a{width:134px;height:38px;line-height:38px;color:#fff;font-size:14px;margin:0 14px;display:inline-block;text-align:center;text-decoration:none}.shopping-pay-page .change{background:#bdbdbd}.shopping-pay-page .over{background:#da0040}.shopping-pay-page .close a{text-decoration:none;color:#666;outline:none}.shopping-pay-page .close,.shopping-pay-page .close a{width:30px;height:30px;line-height:30px;position:absolute;top:0;right:0;font-size:16px;font-family:arial;text-align:center}.shopping-cashondelivery-page{width:860px;margin:0 auto;font-family:arial,Microsoft YaHei;font-size:12px;text-align:left;line-height:150%}.shopping-cashondelivery-page .cart-order{width:860px;margin-top:70px}.shopping-cashondelivery-page .cart-order h1{height:70px;line-height:40px;color:#333;text-align:center;font-size:20px;font-family:Arial,helvetica,sans-serif}.shopping-cashondelivery-page .ok-br{width:30px;height:30px;background:url(../assets/img/pay/ok.png?v155e77e3de2) no-repeat;display:inline-block;vertical-align:middle}.shopping-cashondelivery-page .list-box{border:1px solid #dadada;border-top:10px solid #000;border-bottom:0;margin-bottom:20px;font-size:14px}.shopping-cashondelivery-page .list-t{height:36px;line-height:36px;background:#f3f3f3;text-align:center;color:#333;border-bottom:1px solid #dadada}.shopping-cashondelivery-page .list-t .yoho-coin{width:14px;height:14px;display:inline-block;background-image:url(../assets/img/sprite.cart.png?v155e77e4827);background-position:-321px -225px;vertical-align:middle;margin-top:-2px;margin-right:4px}.shopping-cashondelivery-page .li-1{width:170px;height:36px;border-right:1px solid #dadada;font-weight:700;float:left}.shopping-cashondelivery-page .li-1 a{text-decoration:none;color:#468fa2;outline:none}.shopping-cashondelivery-page .li-2,.shopping-cashondelivery-page .li-3,.shopping-cashondelivery-page .li-4{width:170px;height:36px;border-right:1px solid #dadada;float:left}.shopping-cashondelivery-page .li-5{width:170px;height:36px;float:left}.shopping-cashondelivery-page .list{height:36px;line-height:36px;background:#fff;text-align:center;border-bottom:1px solid #dadada;font-size:14px}.shopping-cashondelivery-page .f-rz{font-weight:700;font-size:14px;color:#e8044f}.shopping-cashondelivery-page .f-e{color:#468fa2}.shopping-cashondelivery-page .f-a{color:#e8044f}.shopping-cashondelivery-page .list-b{border:1px solid #fdcf74;background:#fcfbdd;color:#976637;padding:20px;line-height:1.8;margin-bottom:20px;font-family:Arial,helvetica,sans-serif}.shopping-cashondelivery-page .list-b a{text-decoration:none;color:#468fa2;outline:none}.shopping-cashondelivery-page .list-b b{color:#c00}.shopping-cashondelivery-page .pay-mode{color:#666}.shopping-cashondelivery-page .btns{text-align:center;padding:20px 0;margin-bottom:150px}.shopping-cashondelivery-page .btns a{display:inline-block;height:33px;line-height:33px;text-align:center;font-size:14px;font-weight:700;cursor:pointer;border-radius:4px}.shopping-cashondelivery-page .btns .check-order{background:#da034a;color:#fff;border:1px solid #9d0134;width:134px;margin-right:15px}.shopping-cashondelivery-page .btns .return-home{background:#eee;color:#000;border:1px solid #b0b0b0;width:97px}.pay-notice-page{width:860px;margin:70px auto;font-size:12px}.pay-notice-page .font-red{color:#e8044f}.pay-notice-page h1{height:70px;line-height:40px;color:#333;text-align:center;font-size:20px;font-family:Arial,helvetica,sans-serif}.pay-notice-page .ok-icon{display:inline-block;width:30px;height:30px;background:url(../assets/img/pay/ok.png?v155e77e3de2) no-repeat;vertical-align:text-top}.pay-notice-page .order-info{border-right:1px solid #dadada;border-top:10px solid #000;margin-bottom:20px}.pay-notice-page .table-row{height:36px;line-height:36px;text-align:center;color:#333;border-bottom:1px solid #dadada}.pay-notice-page .table-row .order-num,.pay-notice-page .table-row .pay,.pay-notice-page .table-row em{font-weight:700}.pay-notice-page .table-row .pay-mode{color:#666}.pay-notice-page .table-row li{float:left;width:170px;border-left:1px solid #dadada;font-size:14px}.pay-notice-page .order-table-header{background:#f3f3f3}.pay-notice-page .order-table-header .yoho-coin{width:14px;height:14px;display:inline-block;background-image:url(../assets/img/sprite.cart.png?v155e77e4827);background-position:-321px -225px;vertical-align:middle;margin-top:-2px;margin-right:4px}.pay-notice-page .notice-link{color:#468fa2}.pay-notice-page .notice-tip{border:1px solid #fdcf74;background:#fcfbdd;color:#976637;line-height:1.8;margin-bottom:20px;padding:20px;font-family:Arial,helvetica,sans-serif}.pay-notice-page .btns{text-align:center;padding:20px 0}.pay-notice-page .btns a{display:inline-block;height:33px;line-height:33px;text-align:center;font-size:14px;font-weight:700;cursor:pointer;border-radius:4px}.pay-notice-page .btns .check-order{background:#da034a;color:#fff;border:1px solid #9d0134;width:134px;margin-right:15px}.pay-notice-page .btns .return-home{background:#eee;color:#000;border:1px solid #b0b0b0;width:97px}.pay-notice-page .notice-img{width:100%}.pay-wechatqrcode-page{width:990px;margin:0 auto;font-size:12px;font-family:arial,Microsoft YaHei}.pay-wechatqrcode-page .pay-title{height:52px;overflow:hidden;padding:20px 0 0;margin:0 auto;border-bottom:2px solid #000}.pay-wechatqrcode-page .pay-title ul{width:446px;height:12px;float:right;list-style:none;padding:0;margin:0;background:url(../assets/img/pay/pay-list.png?v155e77e3de4) no-repeat 100% 0}.pay-wechatqrcode-page .pay-title li{width:176px;height:12px;text-align:center;color:#999;float:left}.pay-wechatqrcode-page .pay-title li span{display:block;height:15px;padding:15px 0 0;line-height:15px}.pay-wechatqrcode-page .pay-title .end{width:93px;height:18px;color:#000}.pay-wechatqrcode-page .pay-title .end span{text-align:right}.pay-wechatqrcode-page .step4{height:24px;width:99px;overflow:hidden;background-image:url(../assets/img/pay/pay-title.png?v155e77e3de6);float:left}.pay-wechatqrcode-page .w-title{padding:25px 0 12px;overflow:hidden}.pay-wechatqrcode-page .w-left{width:670px;float:left}.pay-wechatqrcode-page .w-left h3{line-height:26px;height:26px;margin-bottom:4px;overflow:hidden;font-size:14px;font-weight:400}.pay-wechatqrcode-page .w-left p{height:22px;line-height:22px;color:#9b9b9b}.pay-wechatqrcode-page .w-left p span{color:red}.pay-wechatqrcode-page .w-right{margin-left:670px;overflow:hidden;text-align:right}.pay-wechatqrcode-page .w-right p{line-height:26px;height:26px;margin-bottom:4px;overflow:hidden;font-size:14px}.pay-wechatqrcode-page .w-right p strong{color:#ff5d5b;font-size:18px;margin:0 3px;font-weight:700}.pay-wechatqrcode-page .w-right a{color:#2ea7e7;padding-right:14px;position:relative;display:inline-block;height:22px;line-height:22px}.pay-wechatqrcode-page .w-right a i{width:0;height:0;font-size:0;position:absolute;top:9px;right:4px;z-index:1;cursor:pointer}.pay-wechatqrcode-page .up{float:right;border-width:4px 3px 0;border-style:solid dashed dashed;border-color:#2ea7e7 transparent transparent}.pay-wechatqrcode-page .down{float:right;border-width:0 3px 4px;border-style:dashed dashed solid;border-color:transparent transparent #2ea7e7}.pay-wechatqrcode-page .w-addrinfo{padding:12px 0;color:#9b9b9b;line-height:22px;border-top:1px solid #e4e5eb;display:none}.pay-wechatqrcode-page .w-addrinfo span{padding:0 20px}.pay-wechatqrcode-page .w-payment{border:1px solid #e5e5e5;border-top:3px solid #4b5b78;background-color:#fff;padding:26px 30px 30px;margin-top:6px;margin-bottom:50px}.pay-wechatqrcode-page .w-payment h2{font-size:18px;font-weight:400;display:block}.pay-wechatqrcode-page .w-p-weixin{width:300px;height:380px;padding:20px 370px 30px 0;margin:0 auto;overflow:hidden;background:url(../assets/img/pay/w-p-phone.png?v155e77e3de8) no-repeat 100% 0}.pay-wechatqrcode-page .w-p-erm{width:250px;height:250px;padding:24px;margin-bottom:20px;border:1px solid #ddd;overflow:hidden}.pay-wechatqrcode-page .w-p-word{height:44px;padding:8px 0 8px 125px;background:url(../assets/img/pay/w-p-word.png?v155e77e3de9) no-repeat 50px 8px #090909}.pay-wechatqrcode-page .w-p-word p{margin:0;font-size:14px;line-height:22px;color:#fff;font-weight:700}.pay-wechatqrcode-page .w-pay-change{display:block;height:30px;line-height:30px;margin-top:50px;color:#0aaefa;cursor:14px}.pay-wechatqrcode-page .w-pay-change i{float:left;margin-right:14px;font-family:arial;font-style:normal;font-size:16px}.wechatqrcodereturn{width:990px;margin:0 auto;font-size:12px;font-family:Arial,helvetica,sans-serif}.wechatqrcodereturn .pay-title{height:65px;overflow:hidden;padding:20px 0 0;margin:0 auto;border-bottom:2px solid #000}.wechatqrcodereturn .pay-title ul{width:446px;height:12px;float:right;list-style:none;padding:0;margin:0;background:url(../assets/img/pay/pay-list.png?v155e77e3de4) no-repeat 100% 0}.wechatqrcodereturn .pay-title li{width:176px;height:12px;text-align:center;color:#999;float:left}.wechatqrcodereturn .pay-title li span{display:block;height:15px;padding:15px 0 0;line-height:15px}.wechatqrcodereturn .pay-title .end{width:93px;height:18px;color:#000}.wechatqrcodereturn .pay-title .end span{text-align:right}.wechatqrcodereturn .step5{height:33px;width:97px;overflow:hidden;background-image:url(../assets/img/pay/finsh.png?v155e77e3dd2);float:left}.wechatqrcodereturn .pay-wechat-return{overflow:hidden;padding-top:10px}.wechatqrcodereturn .payerror{margin:50px 0 0 300px;font-size:14px;font-weight:700;color:#000;padding-left:25px;line-height:21px;background:url(../assets/img/pay/pay-fail.png?v155e77e3de3) no-repeat}.wechatqrcodereturn .arrival-time{margin:10px 0 0 325px;color:#666}.wechatqrcodereturn .tell-phone{color:#e8044f;font-weight:700;font-size:16px}.wechatqrcodereturn .cart-bigbtns span{margin-right:5px}.wechatqrcodereturn .btn-type{display:inline-block;height:35px;padding:0 0 0 2px;overflow:hidden;font-size:14px;margin:40px 0 0 320px}.wechatqrcodereturn .btn-type a{display:inline-block;height:35px;line-height:32px;padding:0 20px;background:url(../assets/img/pay/btnby.png?v155e77e3dcd) no-repeat;border:none;overflow:visible;cursor:pointer;margin:0;color:#666}.wechatqrcodereturn .we-font{margin:20px 0 0 320px;height:36px;line-height:36px;padding-left:16px;color:#999;display:block;background:url(../assets/img/pay/pay-plaint.png?v155e77e3de5) no-repeat 1px}.about-page{width:990px;padding:10px 0 20px}.about-page .about-nav{width:210px;padding:10px 20px;background-color:#ebe9ea;border:1px solid #d7d7d7;border-radius:5px}.about-page .about-nav li{line-height:30px;font-size:12px;text-align:center;border-bottom:1px solid #ddd;border-top:1px solid #fff}.about-page .about-nav li a{color:#333;font-weight:700}.about-page .about-nav li a:hover{color:#f60}.about-page .about-nav li:first-child{border-top:0}.about-page .about-nav .act a{color:#ed004c;cursor:pointer}.about-page .about-nav .act a:hover{color:#ed004c}.yohobuy-about-page .main-container{width:720px;border:1px solid #d7d7d7;border-radius:5px;overflow:hidden}.yohobuy-about-page .main-container .text-title{border-bottom:4px solid red;font-family:微软雅黑;height:100px;line-height:100px;font-weight:700;font-size:36px;color:#333;text-align:center}.yohobuy-about-page .main-container .text-info{padding:20px;color:#333;overflow:hidden;font-size:12px;font-weight:400;line-height:24px}.newpower-about-page .main-container{width:720px;border:1px solid #d7d7d7;border-radius:5px;overflow:hidden}.newpower-about-page .main-container .text-info{line-height:30px;font-size:14px;font-weight:700;text-align:center;color:#333;padding:20px;overflow:hidden}.contact-about-page .main-container{width:720px;border:1px solid #d7d7d7;border-radius:5px;overflow:hidden}.contact-about-page .main-container .text-title{border-bottom:4px solid red;font-family:微软雅黑;height:100px;line-height:100px;font-weight:700;font-size:36px;color:#333;text-align:center}.contact-about-page .main-container .text-info{padding:20px;color:#333;overflow:hidden;font-size:12px;font-weight:400;line-height:24px}.contact-about-page .main-container strong{font-weight:700}.link-about-page .main-container{width:720px;border:1px solid #d7d7d7;border-radius:5px;overflow:hidden}.link-about-page .main-container .text-title{border-bottom:4px solid red;font-family:微软雅黑;height:100px;line-height:100px;font-weight:700;font-size:36px;color:#333;text-align:center}.link-about-page .main-container .text-info{padding:20px;color:#333;overflow:hidden;font-size:12px;font-weight:400;line-height:24px}.link-about-page .main-container h2{font-size:14px;line-height:30px;border-bottom:1px dashed #ccc}.link-about-page .main-container ul{padding:10px 0;list-style:none}.link-about-page .main-container strong{font-weight:700}.privacy-about-page .main-container{width:720px;border:1px solid #d7d7d7;border-radius:5px;overflow:hidden}.privacy-about-page .main-container .text-title{border-bottom:4px solid red;font-family:微软雅黑;height:100px;line-height:100px;font-weight:700;font-size:36px;color:#333;text-align:center}.privacy-about-page .main-container .text-info{padding:20px;color:#333;overflow:hidden;font-size:12px;font-weight:400;line-height:24px}.privacy-about-page .main-container strong{font-weight:700}.settled-apply-page .mask,.settled-page .mask{position:fixed;top:0;right:0;bottom:0;left:0;background:#ccc;opacity:.3;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";z-index:20}.settled-page{margin-top:10px;margin-bottom:30px}.settled-page .banner{margin-bottom:45px}.settled-page .flow-container{position:relative;width:1033px;margin:0 auto}.settled-page .fake-link{position:absolute;bottom:-4px;left:221px;width:150px;height:32px;background:#fff;opacity:0;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";cursor:pointer}.settled-page .notice-container{position:fixed;width:960px;left:50%;top:30px;margin-left:-480px;z-index:2;overflow-y:auto;overflow-x:hidden;border-radius:10px;z-index:21}.settled-page .fake-close{position:fixed;width:30px;height:30px;top:44px;margin-left:914px;cursor:pointer;background:url(../assets/img/about/close.png?v155e77e3c1c) no-repeat 50%}.min-screen .settled-page .banner{width:990px}.min-screen .settled-page .flow-container,.min-screen .settled-page .flow-path{width:890px}.min-screen .settled-page .fake-link{bottom:-6px;left:190px;width:130px}.settled-apply-page{font-size:14px}.settled-apply-page .error{border-color:red!important}.settled-apply-page .required-mark{color:red}.settled-apply-page .banner{display:block;margin-top:10px;margin-bottom:30px}.settled-apply-page .title{margin-bottom:10px;padding-left:215px}.settled-apply-page .title span{font-size:18px;line-height:20px;color:#000;font-weight:700;vertical-align:top}.settled-apply-page .title .edit-img{width:24px;height:22px}.settled-apply-page .form-container{width:100%;padding:30px 0;border:1px solid #f4f5f5;border-left:none;border-right:none}.settled-apply-page .signup-form{width:790px;margin:0 auto}.settled-apply-page .signup-form .long-input{width:400px}.settled-apply-page .signup-form .short-input{width:150px}.settled-apply-page .signup-form td{border:10px solid transparent;height:41px}.settled-apply-page .signup-form tr.has-sub td{border-bottom:0}.settled-apply-page .signup-form tr.sub td{border-top:2px}.settled-apply-page .signup-form tr td:first-child{text-align:right}.settled-apply-page .signup-form .sub .tip-td{vertical-align:top}.settled-apply-page .signup-form .button,.settled-apply-page .signup-form input,.settled-apply-page .signup-form select{height:36px;line-height:36px;border-radius:3px;border:1px solid #979797}.settled-apply-page .signup-form select{line-height:18px;padding:9px 0}.settled-apply-page .signup-form input[type=radio]{border:none;vertical-align:text-bottom;margin-bottom:-10px}.settled-apply-page .signup-form .button{width:156px;background-color:#fff;border-radius:6px}.settled-apply-page .signup-form input[type=text]{text-indent:5px}.settled-apply-page .signup-form .swfupload{border:1px solid #ccc;border-radius:6px;height:35px;width:160px;background-color:#fff;cursor:pointer}.settled-apply-page .signup-form .placeholder{color:#979797}.settled-apply-page .signup-form ul{list-style:none;padding-left:0}.settled-apply-page .signup-form .for-other{width:120px;padding:0}.settled-apply-page .signup-form .upload-btn{font-size:13px;border-radius:3px;border:1px solid #979797}.settled-apply-page .signup-form .upload-btn input{cursor:pointer}.settled-apply-page .signup-form .uploadifive-queue{display:none}.settled-apply-page .shop-addres{width:300px}.settled-apply-page .shop-sales-volume{width:80px}.settled-apply-page .shop-list li{margin-bottom:5px}.settled-apply-page .shop-list li>span{margin:0 4px}.settled-apply-page .shop-list li:last-child{margin-bottom:0}.settled-apply-page .tip{font-size:12px;color:#c7c7c7;margin:2px 0}.settled-apply-page .submit-btn{background-color:#000;color:#fff;height:37px;width:157px;border-radius:6px;border:none;margin-top:30px;margin-left:377px;cursor:pointer;margin-bottom:30px}.settled-apply-page .add-btn{width:22px;height:22px;vertical-align:middle;margin-left:20px;cursor:pointer}.settled-apply-page .submit-success{position:fixed;width:500px;height:180px;top:50%;left:50%;margin-top:-170px;margin-left:-280px;z-index:8;padding:30px 50px;background-color:#fff;border-radius:10px;text-align:center}.settled-apply-page .submit-success .content{border-bottom:1px solid #ccc;margin-bottom:20px}.settled-apply-page .submit-success .content h1,.settled-apply-page .submit-success .content h2{margin-bottom:30px}.settled-apply-page .submit-success .sure{font-size:24px;color:red;text-align:center;text-decoration:none;font-weight:700}.settled-apply-page .category-list{margin-top:-12px}.settled-apply-page .category-list li{margin-bottom:5px}.settled-apply-page .category-list li:last-child{margin-bottom:0}.settled-apply-page .has-radio td{line-height:41px}.settled-apply-page .tip-sub td{height:14px}.settled-apply-page input[type=radio]{margin-left:10px}.settled-apply-page .brand-tip,.settled-apply-page .goods-tip{color:#000;margin-top:10px}.settled-success{border:none;border-radius:10px;background:#fff}.settled-success .content{border-bottom:1px solid #ccc}.settled-success .main-title{font-size:28px}.settled-success .sub-title{font-size:16px;margin:20px 0}.settled-success .apply-success-ok{border:none;color:red;font-weight:700;font-size:18px;line-height:60px}.app-download-page .top-wrapper{height:550px;background:url(../assets/img/download/main-top.png?random=1466056691&v155e77e3ce2) no-repeat top}.app-download-page .top-wrapper .top-down{width:444px;margin:0 auto;padding-top:305px}.app-download-page .top-wrapper .down-btns{width:216px;height:65px;display:block;margin-left:200px;float:right}.app-download-page .top-wrapper .down-btns:first-child{margin-bottom:10px}.app-download-page .main-wrapper .intro{width:990px;height:437px;margin:114px auto 0}.app-download-page .main-wrapper .intro-6{height:350px}.app-download-page .main-wrapper .bottom-down{width:350px;margin:0 auto;overflow:hidden;padding-top:34px}.app-download-page .main-wrapper .bottom-down .qr-code{width:130px;height:130px;background-image:url(../assets/img/sprite.download.png?v155e77e482a);background-position:0 0}.app-download-page .main-wrapper .bottom-down .down-btns{width:200px;height:60px;display:block}.app-download-page .main-wrapper .bottom-down .down-app-btn{margin-bottom:8px;background-image:url(../assets/img/sprite.download.png?v155e77e482a);background-position:-132px 0}.app-download-page .main-wrapper .bottom-down .down-apk-btn{background-image:url(../assets/img/sprite.download.png?v155e77e482a);background-position:-132px -62px}.app-download-page .foot-wrapper{height:100px;text-align:center} \ No newline at end of file +@charset "utf-8";a,abbr,acronym,address,applet,article,aside,audio,b,big,blockquote,body,canvas,caption,center,cite,code,dd,del,details,dfn,div,dl,dt,em,embed,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,html,i,iframe,img,ins,kbd,label,legend,li,mark,menu,nav,object,ol,output,p,pre,q,ruby,s,samp,section,small,span,strike,strong,sub,summary,sup,table,tbody,td,tfoot,th,thead,time,tr,tt,u,ul,var,video{margin:0;padding:0;border:0;font:inherit;font-size:100%;vertical-align:baseline}html{line-height:1}ol,ul{list-style:none}table{border-collapse:collapse;border-spacing:0}caption,td,th{text-align:left;font-weight:400;vertical-align:middle}blockquote,q{quotes:none}blockquote:after,blockquote:before,q:after,q:before{content:"";content:none}a img{border:none}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block}.clearfix:after{content:'';display:table;clear:both}body{font-family:arial,Microsoft YaHei}@font-face{font-family:iconfont;src:url(../assets/font/iconfont.eot?v155e7e2b3d0);src:url(../assets/font/iconfont.eot?v155e7e2b3d0#iefix) format('embedded-opentype'),url(../assets/font/iconfont.woff?v155e7e2b3d0) format('woff'),url(../assets/font/iconfont.ttf?v155e7e2b3d0) format('truetype'),url(../assets/font/iconfont.svg?v155e7e2b3d0#iconfont) format('svg')}.iconfont{font-family:iconfont!important;font-size:16px;font-style:normal;text-decoration:none;-webkit-font-smoothing:antialiased;-webkit-text-stroke-width:.2px;-moz-osx-font-smoothing:grayscale}.center-content{width:1150px;margin-left:auto;margin-right:auto}.min-screen .center-content{width:990px}.left,.pull-left{float:left}.pull-right,.right{float:right}.center{text-align:center}.hide{display:none!important}a:focus,input,textarea{outline:none}a{text-decoration:none;color:#000}.body-mask{position:absolute;z-index:9;background:#000;opacity:.2;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=20)";top:0;left:0}.yoho-notice{width:100%;height:100px;font-size:12px;background-color:#555;font-family:微软雅黑}.yoho-notice .notice-title{height:100px;line-height:100px;font-size:27px;font-weight:700;color:#fff;width:245px;position:absolute}.yoho-notice .notice-content{padding:16px 0 0 300px;color:#e8e8e8}.yoho-notice .notice-content .tips{margin-bottom:10px}.yoho-notice .notice-content .detail{line-height:16px}.yoho-header .header-topwrapper{width:100%;background-color:#f4f4f4;min-width:1150px}.yoho-header .header-top{width:1150px;height:32px;line-height:32px;margin:0 auto;position:relative}.yoho-header #loginBox{display:none}.yoho-header .leftpart{position:relative;padding-left:5px;padding-right:5px}.yoho-header .leftpart:hover{background-color:#dcdcdc}.yoho-header .leftpart:hover .yohoproducts-list{display:block!important}.yoho-header .leftpart .acttags{background-color:#dcdcdc}.yoho-header .yohoproducts-list{position:absolute;display:none;width:170px;left:0;top:32px;background-color:#f4f4f4;padding-top:30px;padding-bottom:10px;padding-left:20px;z-index:19}.yoho-header .yohoproducts-item{height:14px;line-height:14px;margin-bottom:20px}.yoho-header .yohoproducts-item a{color:#9196a0;font-size:14px}.yoho-header .yohoproducts-item:hover a{color:#000}.yoho-header .rightpart{position:absolute;right:0;top:0}.yoho-header .rightpart .acttags{background-color:#dcdcdc}.yoho-header .rightpart .tag-seprate{border-color:#dcdcdc}.yoho-header .hi,.yoho-header .loginbar,.yoho-header .registbar{display:inline-block;float:left}.yoho-header .hi{color:#8e8e8e;font-size:12px}.yoho-header #loginBox a,.yoho-header #loginBox span,.yoho-header .header-yoho,.yoho-header .login-out,.yoho-header .loginbar,.yoho-header .registbar{color:#000;font-size:12px}.yoho-header .registbar{margin-left:7px}.yoho-header .tag-list-wrapper{margin-left:13px;float:left}.yoho-header .tag-list{margin-left:13px;height:34px}.yoho-header .tag-seprate{margin-top:11px;width:0;height:14px;display:inline-block;float:left;border-left:1px solid #dcdcdc}.yoho-header .tag-item{display:inline-block;float:left;line-height:32px;box-sizing:border-box;margin-left:-1px}.yoho-header .tag-item a{color:#8e8e8e;font-size:12px;display:inline-block}.yoho-header .tag-item span{display:inline-block}.yoho-header .myyoho{padding-right:10px;position:relative}.yoho-header .myyoho .tag-seprate{margin-right:12px}.yoho-header .myyoho-info{position:absolute;display:none;top:32px;left:-110px;width:300px;background-color:#f8f8f8;z-index:18}.yoho-header .myyoho-photo{overflow:hidden}.yoho-header .myyoho-photo img{display:block;margin:0 auto;width:63px;height:63px;border-radius:50%}.yoho-header .myyoho-info-header{margin:17px auto 0;width:257px;border-bottom:1px solid #dcdcdc;text-align:center;padding-bottom:15px}.yoho-header .user-email{margin-top:14px;color:#000;height:25px;line-height:20px;font-size:18px}.yoho-header .user-level{color:#000;height:20px;line-height:20px;font-size:18px}.yoho-header .user-level .leveldetail{color:#8cc4f9}.yoho-header .levelinfo{width:100%;padding-top:10px;clear:both;height:15px}.yoho-header .levelwrapper{width:150px;height:14px;background-color:#e2e2e2;margin-left:40px;position:relative}.yoho-header .levelspan{position:absolute;left:2px;height:14px;top:0;line-height:16px}.yoho-header .levelwrapper .integrate{height:14px;line-height:15px;background-color:#ceae64;text-align:left;padding-left:5px}.yoho-header .cardcate{font-size:14px;line-height:14px;margin-left:5px}.yoho-header .myyoho-info-content{margin:20px auto 0;padding-left:35px;padding-right:29px;border-bottom:1px solid #dcdcdc}.yoho-header .myyoho-info-content .item{height:12px;line-height:12px;margin-bottom:16px}.yoho-header .myyoho-info-content .item a{font-size:14px;color:#000}.yoho-header .myyoho-info-footer{height:51px;line-height:51px;text-align:center}.yoho-header .myyoho-info-footer a{color:#000;font-size:14px}.yoho-header .myorder{padding-right:10px}.yoho-header .myorder .tag-seprate{margin-right:11px}.yoho-header .mycollect{padding-right:11px}.yoho-header .mycollect .tag-seprate{margin-right:11px}.yoho-header .message{padding-right:10px}.yoho-header .message .tag-seprate{margin-right:11px}.yoho-header .phone{padding-right:8px;position:relative}.yoho-header .phone .tag-seprate{margin-right:10px}.yoho-header .qr{position:absolute;display:none;top:32px;left:-100px;width:231px;height:290px;background-color:#f8f8f8;z-index:19}.yoho-header .qr-img{position:relative;background-image:url(../assets/img/header/qr.png?v155e7e2c370);background-repeat:no-repeat;background-size:100% 100%;margin:32px auto 15px;width:143px;height:147px}.yoho-header .qr-words{height:25px;line-height:25px;font-size:16px;text-align:center}.yoho-header .qr-more{margin-top:6px;line-height:25px;font-size:14px;text-align:center}.yoho-header .onlineserver .tag-seprate{margin-right:10px}.yoho-header .header-navwrapper{width:100%;height:130px;position:relative;min-width:1150px}.yoho-header .header-navcontent{width:1150px;height:130px;margin:0 auto}.yoho-header .first-nav-list{margin-top:45px}.yoho-header .first-nav-item{float:left;padding:8px 23px 0}.yoho-header .first-nav-item .menu-ico{width:84px;height:32px;display:block}.yoho-header .all a,.yoho-header .all span,.yoho-header .boys a,.yoho-header .boys span,.yoho-header .girls a,.yoho-header .girls span,.yoho-header .kids a,.yoho-header .kids span,.yoho-header .lifestyle a,.yoho-header .lifestyle span{color:#fff!important}.yoho-header .all{background-color:#5e4b3c}.yoho-header .all .sub-nav-wrapper{background-color:#000;display:block!important}.yoho-header .all .third-nav-wrapper{border-top:2px solid #000}.yoho-header .searchcateboys .searchinput{border:1px solid #3a3a3a}.yoho-header .searchcateboys .icon-search{background-color:#3a3a3a!important}.yoho-header .searchcategirls .searchinput{border:1px solid #ff88ae}.yoho-header .searchcategirls .icon-search{background-color:#ff88ae!important}.yoho-header .searchcatewoman .searchinput{border:1px solid #ff88ae}.yoho-header .searchcatewoman .icon-search{background-color:#ff88ae!important}.yoho-header .searchcatekids .searchinput{border:1px solid #7bd3f9!important}.yoho-header .searchcatekids .icon-search{background-color:#7bd3f9!important}.yoho-header .gobuyboys{background-position:0 0}.yoho-header .gobuyboys,.yoho-header .gobuygirls{background-image:url(../assets/img/sprite.header.png?v155e7e2f638)}.yoho-header .gobuygirls{background-position:-56px 0}.yoho-header .gobuykids{background-position:-28px 0}.yoho-header .gobuykids,.yoho-header .gobuylifestyle{background-image:url(../assets/img/sprite.header.png?v155e7e2f638)}.yoho-header .gobuylifestyle{background-position:0 -28px}.yoho-header .gobuyoutlets{background-image:url(../assets/img/sprite.header.png?v155e7e2f638);background-position:-28px -28px}.yoho-header .searchcatelifestyle .searchinput{border:1px solid #5e4b3c!important}.yoho-header .searchcatelifestyle .icon-search{background-color:#5e4b3c!important}.yoho-header .boys{background-color:#3a3a3a}.yoho-header .boys .sub-nav-wrapper{background-color:#3a3a3a;display:block!important}.yoho-header .boys .third-nav-wrapper{border-top:2px solid #3a3a3a}.yoho-header .girls{background-color:#ff88ae}.yoho-header .girls .sub-nav-wrapper{background-color:#ff88ae;display:block!important}.yoho-header .girls .third-nav-wrapper{border-top:2px solid #ff88ae}.yoho-header .kids{background-color:#7bd3f9}.yoho-header .kids .sub-nav-wrapper{background-color:#7bd3f9;display:block!important}.yoho-header .kids .third-nav-wrapper{border-top:2px solid #7bd3f9}.yoho-header .lifestyle{background-color:#5e4b3c}.yoho-header .lifestyle .sub-nav-wrapper{background-color:#5e4b3c;display:block!important}.yoho-header .lifestyle .third-nav-wrapper{border-top:2px solid #5e4b3c}.yoho-header .outlets>.sub-nav-wrapper{display:block!important}.yoho-header .name-cn{text-align:center;line-height:16px!important}.yoho-header .name-cn a{color:#000;font-size:16px!important}.yoho-header .name-en{text-align:center;line-height:14px!important;margin-bottom:6px}.yoho-header .name-en a{color:#8e8e8e;font-size:12px;line-height:14px!important;font-family:arial!important}.yoho-header .sub-nav-wrapper{display:none;height:40px;left:0;width:100%;position:absolute;z-index:11}.yoho-header .sub-nav-list{width:1150px;height:40px;margin:0 auto;overflow:hidden}.yoho-header .sub-nav-item{float:left;padding:12px 46px 12px 0;box-sizing:border-box;margin-right:38px}.yoho-header .sub-nav-item a{position:relative;color:#fff;font-size:14px;line-height:14px;display:inline-block}.yoho-header .sub-nav-item:last-child{margin-right:0!important}.yoho-header .newlogo{display:block;width:26px;height:12px;background-image:url(../assets/img/header/new.png?v155e7e2c370);background-repeat:no-repeat;position:absolute;right:-29px;top:-6px}.yoho-header .actsecondnav,.yoho-header .sub-nav-item:hover>a{padding-bottom:3px;border-bottom:2px solid #fff}.yoho-header .sub-nav-item:hover .third-nav-wrapper{display:block}.yoho-header .third-nav-wrapper{box-sizing:border-box;height:410px;position:absolute;left:0;top:38px;width:100%;min-width:1150px;display:none;z-index:17;padding-top:30px;padding-bottom:30px;background-color:#f8f8f8}.yoho-header .third-nav{width:1150px;height:100%;margin:0 auto}.yoho-header .category{width:880px;float:left;overflow:hidden}.yoho-header .category .thirdnavlist{box-sizing:border-box;width:220px;height:240px;float:left;padding-left:20px;border-right:1px solid #dcdcdc;padding-right:20px}.yoho-header .category-title{color:#000;font-size:16px;width:178px;padding-bottom:12px;border-bottom:1px solid #000;line-height:16px;margin-bottom:20px}.yoho-header .category-title a{color:#000!important}.yoho-header .category-list{margin-top:16px;margin-bottom:30px}.yoho-header .category-item{line-height:28px}.yoho-header .category-list a{color:#a1a1a1!important;font-size:14px}.yoho-header .category-list .category-item .hot{color:#e01!important;font-size:14px}.yoho-header .category-item-act a{color:#000!important}.yoho-header .showdetail{box-sizing:border-box;padding-left:19px;padding-right:19px;width:337px;height:250px;float:right}.yoho-header [class*=" icon-"],.yoho-header [class^=icon-]{display:inline-block;vertical-align:middle;background-repeat:none}.yoho-header .icon-hamburger{background-position:-56px -40px;width:13px;height:11px}.yoho-header .icon-hamburger,.yoho-header .icon-headphones{background-image:url(../assets/img/sprite.header.png?v155e7e2f638)}.yoho-header .icon-headphones{background-position:-84px 0;width:15px;height:10px;margin-top:2px}.yoho-header .icon-heart{background-position:-41px -56px;width:12px;height:11px}.yoho-header .icon-heart,.yoho-header .icon-mail{background-image:url(../assets/img/sprite.header.png?v155e7e2f638);margin-top:-2px}.yoho-header .icon-mail{background-position:-56px -28px;width:16px;height:10px}.yoho-header .icon-iphone{background-position:-84px 0;width:8px}.yoho-header .icon-iphone,.yoho-header .icon-papers{background-image:url(../assets/img/sprite.header.png?v155e7e2f638);height:14px;margin-top:-2px}.yoho-header .icon-papers{background-position:-29px -56px;width:10px}.yoho-header .icon-bottomarrow{background-image:url(../assets/img/sprite.header.png?v155e7e2f638);background-position:-71px -40px;width:10px;height:5px;margin-top:-2px}.yoho-header .outlets-logo{background:url(../assets/img/header/outlets.png?v155e7e2c370) no-repeat 50%;width:200px;height:34px;left:42%;margin-top:28px;position:absolute;display:none}.yoho-header .icon-logo{background:url(../assets/img/header/logo.png?v155e7e2c370) no-repeat 50%;width:182px;height:53px;top:22px;left:44.2%;position:absolute}.yoho-header .icon-logo .main-link{display:block;width:100%;height:100%}.yoho-header .search{position:relative}.yoho-header .searchspan{margin-top:45px;float:left;display:inline-block;overflow:hidden}.yoho-header .searchinput{float:left;width:240px;height:28px;border:1px solid #000;box-sizing:border-box;padding:6px 0 5px 10px;border-right:none}.yoho-header .icon-search{background:url(../assets/img/header/search.png?v155e7e2c370) no-repeat 50%;width:80px;height:28px;float:left;border:none;margin-top:45px;background-color:#3a3a3a}.yoho-header .search-list{position:absolute;top:73px;left:0;z-index:11;box-sizing:border-box;display:none;background-color:#fff;padding-top:20px;width:100%;max-height:500px;border-left:1px solid #000;border-right:1px solid #000;border-bottom:1px solid #000}.yoho-header .search-item{position:relative;padding:5px;height:25px;line-height:25px;font:12px}.yoho-header .search-item:hover{background-color:#f4f4f4}.yoho-header .searchvalue{position:absolute;left:10px;max-width:192px;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.yoho-header .valuenum{position:absolute;right:10px;font-size:12px}.yoho-header .header-tool{padding-right:23px}.yoho-header .gobuy{margin-top:47px;margin-left:23px;width:26px;height:26px;position:relative;cursor:pointer}.yoho-header .gobuy-wrapper{position:absolute;display:none;top:24px;right:-14px;width:378px;padding-top:6px;z-index:19}.yoho-header .gobuy-empty{position:absolute;width:100%;height:507px;z-index:1;background:#f8f8f8 url(../assets/img/header/empty_car.png?v155e7e2c370) no-repeat 106px 132px}.yoho-header .gobuy-empty .information{margin-top:300px;width:100%;height:18px;line-height:18px;font-size:18px;text-align:center}.yoho-header .gobuy-loading{position:absolute;width:100%;height:407px;z-index:1;background:#f8f8f8 url(../assets/img/header/loading.gif?v155e7e2c370) no-repeat center 150px}.yoho-header .gobuy-loading .information{margin-top:180px;width:100%;height:12px;line-height:12px;font-size:12px;text-align:center}.yoho-header .gobuy-notempty{position:absolute;width:100%;z-index:1;background-color:#f8f8f8;overflow:hidden}.yoho-header .goods-list-wrapper{width:100%;max-height:444px;margin-bottom:19px;overflow-y:auto;overflow-x:hidden}.yoho-header .goods-list{margin-top:40px}.yoho-header .goods-item{height:64px;margin-bottom:18px;padding-left:18px}.yoho-header .goods-img{display:inline-block;float:left;width:46px;height:62px;margin-right:13px}.yoho-header .goods-detail{margin-right:16px}.yoho-header .goods-detail .content{width:170px;height:14px;line-height:14px;font-size:14px;margin-bottom:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.yoho-header .goods-detail .content a{color:#666;outline:none;text-decoration:none}.yoho-header .goods-detail .style{height:14px;line-height:14px;font-size:14px;color:#b0b0b0}.yoho-header .goods-price .priceandnum{height:14px;line-height:14px;font-size:14px;margin-bottom:13px;min-width:75px;text-align:right}.yoho-header .goods-price .delete{display:inline-block;float:right;font-size:14px;color:#000}.yoho-header .activity-item{margin-bottom:8px;padding-left:18px}.yoho-header .activity-name{display:inline-block;box-sizing:border-box;border:none;width:60px;height:18px;line-height:18px;background-color:#3a3a3a;color:#fff;font-size:14px;text-align:center;margin-right:13px;vertical-align:top}.yoho-header .activity-content{display:inline-block;line-height:14px;width:250px;color:#3a3a3a;font-size:12px;word-break:break-all}.yoho-header .gobuy-notempty-footer{width:100%;height:61px;text-align:center}.yoho-header .gobuy-notempty-footer h3{box-sizing:border-box;width:349px;margin:0 auto;height:61px;line-height:61px;border-top:1px solid #dcdcdc}.yoho-header .gobuy-notempty-footer a{font-size:18px;color:#444}.yoho-header .ic-infomation{position:absolute;background-image:url(../assets/img/sprite.header.png?v155e7e2f638);background-position:0 -56px;width:27px;height:20px;top:-10px;right:-15px;color:#fff;text-align:center;line-height:20px;font-size:12px}.yoho-header .float-left{float:left}.yoho-header .float-right{float:right}.yoho-header .showdetail img{display:block;box-sizing:border-box;width:337px;height:250px}.yoho-header .showdetail .title{display:block;margin-top:40px;width:100%;height:15px;text-align:center;line-height:15px;font-size:14px;color:#000!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.yoho-header .cate_row{float:left;height:352px;box-sizing:border-box}.yoho-header .cate_row li{box-sizing:border-box}.yoho-header .cate_row1{width:253px}.yoho-header .cate_row2{width:278px;border-left:1px solid #ccc;padding-left:50px}.yoho-header .cate_row3{width:270px;border-left:1px solid #ccc;padding-left:50px}.yoho-header .third-nav .cattitle{width:180px;padding-bottom:10px;border-bottom:1px solid #000;line-height:18px;margin-bottom:20px}.yoho-header .third-nav .cattitle h3 a{color:#000!important;font-size:14px}.yoho-header .third-nav .catdetail{line-height:14px;height:14px;margin-bottom:24px;min-width:200px}.yoho-header .third-nav .catdetail a{color:#a1a1a1!important;font-size:14px}.yoho-header .third-nav .catdetail .hot{color:#e01!important}.yoho-header .thirdcatelink:hover{text-decoration:underline!important}.yoho-header .hovercontent{display:none}.yoho-header.outlets .header-navwrapper{background-color:#3a3a3a}.yoho-header.outlets .header-navwrapper .sub-nav-wrapper{background-color:#e6e6e6;margin-top:37px}.yoho-header.outlets .header-navwrapper .third-nav-wrapper{border-top:0}.yoho-header.outlets .outlets-logo{display:block}.yoho-header.outlets .icon-logo{display:none}.yoho-header.outlets .first-nav-item.cure{background:none}.yoho-header.outlets .first-nav-item>h3,.yoho-header.outlets .header-tool>.search{display:none}.yoho-header.outlets .sub-nav-list{padding-left:15%}.yoho-header.outlets .sub-nav-list .sub-nav-item{width:14%;text-align:center}.yoho-header.outlets .sub-nav-list .sub-nav-item>a{color:#222!important}.yoho-header.outlets .sub-nav-list .sub-nav-item:hover a{border-color:#555}.yoho-header.outlets .sub-nav-list .third-nav{text-align:left}.simple-header{height:66px;margin:0 0 20px;border-bottom:2px solid #222}.simple-header .header-inner{width:990px;height:100%;margin:0 auto}.simple-header .logo{float:left;line-height:66px;font-size:0}.simple-header .logo img{vertical-align:middle}.simple-header .header-tool{float:right;line-height:66px;font-size:0}.simple-header .header-tool li{display:inline-block;padding:0 10px;line-height:28px}.simple-header .header-tool li,.simple-header .header-tool li a,.simple-header .header-tool li span{font-size:12px;vertical-align:middle}.simple-header .header-tool li .tell-icon{font-size:12px}.simple-header .header-tool li .tell-icon~span{font-weight:700}.simple-header .header-tool .login-box a{color:#666}.simple-header .header-tool .tool-options{position:relative;font-size:0;cursor:pointer}.simple-header .header-tool .tool-options .iconfont,.simple-header .header-tool .tool-options span{display:inline-block;font-size:12px;height:28px;line-height:28px;vertical-align:top}.simple-header .header-tool .tool-options .iconfont.up,.simple-header .header-tool .tool-options span.up{display:none}.simple-header .header-tool .tool-options .tool-select{display:none;position:absolute;width:74px;left:0;background:#eaeceb;z-index:6}.simple-header .header-tool .tool-options .tool-select a{display:block;padding:0 0 0 10px;border-top:1px solid #ddd}.simple-header .header-tool .tool-options:hover{background-color:#eaeceb}.simple-header .header-tool .tool-options:hover .iconfont.up{display:inline-block}.simple-header .header-tool .tool-options:hover .iconfont.down{display:none}.min-screen .yoho-header .header-topwrapper{min-width:990px}.min-screen .yoho-header .header-top{width:990px}.min-screen .yoho-header .header-navwrapper{min-width:990px}.min-screen .yoho-header .header-navcontent,.min-screen .yoho-header .header-wrapper{width:990px}.min-screen .yoho-header .icon-logo{left:39.2%}.min-screen .yoho-header .icon-logo .main-link{display:block;width:100%;height:100%}.min-screen .yoho-header .sub-nav-list{width:990px;min-width:990px}.min-screen .yoho-header .sub-nav-item{margin-right:15px}.min-screen .yoho-header .first-nav-item{float:left;padding:10px 14px 0;margin-right:3px}.min-screen .yoho-header .third-nav{width:990px}.min-screen .yoho-header .third-nav-wrapper{min-width:990px}.min-screen .yoho-header .category{width:800px}.min-screen .yoho-header .cate_row1{width:204px}.min-screen .yoho-header .cate_row2{width:244px;border-left:1px solid #ccc;padding-left:39px}.min-screen .yoho-header .cate_row3{width:163px;border-left:1px solid #ccc;padding-left:28px}.min-screen .yoho-header .category .thirdnavlist{width:200px}.min-screen .yoho-header .category-title{width:152px}.min-screen .yoho-header .showdetail{width:190px;padding-right:0}.min-screen .yoho-header .showdetail img{width:174px;height:155px}#cover{position:fixed;z-index:12}#cover,#cover .con{left:0;top:0;width:100%;height:100%}#cover .con{background:rgba(0,0,0,.6)!important;position:absolute;z-index:13;opacity:.5;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)"}#cover .tag_img_warpper{margin:0 auto;width:180px;height:168px}#cover .tag_img_warpper img{width:100%;height:100%}#cover .guide-box{background:#fff;margin:0 auto;height:400px;position:relative;z-index:14}#cover .guide-box .close{top:-15px;text-align:center;right:-15px;color:#fff;line-height:22px;font-size:24px;position:absolute;background:#000;border-radius:50px;border:currentColor;border-image:none;width:28px;height:28px;line-height:25px;display:block}#cover .guide-box li{padding:10px;width:200px;height:400px;float:left;box-sizing:border-box}#cover .guide-box li .go{margin:26px auto 0;width:100%;height:18px;text-align:center;color:#b0b0b0;line-height:18px;font-size:18px;font-style:italic;font-weight:lighter;display:block}#cover .guide-box li.girls{border-left-color:#eee;border-left-width:1px;border-left-style:solid}#cover .guide-box li.girls .goods-num{text-align:center;color:#bbb;line-height:12px;font-size:12px;margin-top:16px}#cover .guide-box li.lifestyle{border-left-color:#eee;border-left-width:1px;border-left-style:solid}#cover .guide-box li.lifestyle .goods-num{text-align:center;color:#bbb;line-height:12px;font-size:12px;margin-top:16px}#cover .guide-box li.kids{border-left-color:#eee;border-left-width:1px;border-left-style:solid}#cover .guide-box li.boys .goods-num,#cover .guide-box li.kids .goods-num{text-align:center;color:#bbb;line-height:12px;font-size:12px;margin-top:16px}#cover .boys .block_cn,#cover .girls .block_cn,#cover .kids .block_cn,#cover .lifestyle .block_cn{text-align:center;line-height:26px;font-size:26px;font-weight:700;margin-top:30px}#cover .boys .block_en,#cover .girls .block_en,#cover .kids .block_en,#cover .lifestyle .block_en{text-align:center;line-height:26px;font-size:26px;font-weight:700;margin-top:19px}#cover .boys .block_cn,#cover .boys .block_en{color:#000}#cover .girls .block_cn,#cover .girls .block_en{color:#ff88ae}#cover .kids .block_cn,#cover .kids .block_en{color:#7ad9f8}#cover .lifestyle .block_cn,#cover .lifestyle .block_en{color:#4f4037!important}#cover .boys .block_line,#cover .girls .block_line,#cover .kids .block_line,#cover .lifestyle .block_line{margin:20px auto 0;width:50px;height:0;border-bottom-color:#ccc;border-bottom-width:1px;border-bottom-style:solid}.yoho-footer{font-size:12px}.yoho-footer *{box-sizing:border-box}.yoho-footer .red{color:#e01}.yoho-footer .rgb6{color:#666}.yoho-footer .rgb9{color:#999}.yoho-footer .rgbf{color:#fff}.yoho-footer .index-foot{background:#eee;padding:20px 0}.yoho-footer .index-foot dd{float:left;width:370px;margin-right:20px;overflow:hidden}.yoho-footer .index-foot dd ul{margin-top:18px;padding-top:18px}.yoho-footer .index-foot dd.last{margin-right:0}.yoho-footer .foot-panel{background:#fff;padding:20px}.yoho-footer .title{position:relative;text-align:center}.yoho-footer .title-line{border-bottom:1px solid #ddd;position:absolute;top:9px;width:100%;left:0}.yoho-footer .text{position:absolute;width:100%;text-align:center;left:0;top:0}.yoho-footer .text span{background:#fff;font-size:18px;line-height:18px;padding:0 10px}.yoho-footer .item-nav{padding-top:20px}.yoho-footer .item-nav span{color:#fff;padding:0 3px;cursor:pointer;font-size:20px}.yoho-footer .item-nav .cur{color:#999}.yoho-footer .vote{line-height:24px}.yoho-footer .vote input{margin:0 5px 0 1px}.yoho-footer .vote .button{height:24px;line-height:24px;width:55px;font-size:12px;margin-top:11px;margin-right:10px;background:#222;color:#fff;display:inline-block;text-align:center;cursor:pointer}.yoho-footer .vote p{height:24px;overflow:hidden}.yoho-footer .vote textarea{width:98%;height:68px;vertical-align:middle;margin:5px 0 0;resize:none}.yoho-footer .vote-item p{float:left;width:50%}.yoho-footer .mobile{margin-right:-10px}.yoho-footer .mobile li{margin-right:10px;float:left}.yoho-footer .mobile img{display:block;width:103px;height:131px}.yoho-footer .index-banner{width:100%;margin-top:20px}.yoho-footer .two-dim{margin-right:-10px;overflow:hidden}.yoho-footer .two-dim li{border:1px solid #ddd;margin-right:10px}.yoho-footer .two-dim li a{display:block}.yoho-footer .two-dim li p{text-align:center;margin-top:13px;margin-bottom:10px;line-height:12px}.yoho-footer .dim-img{display:block;width:87px;height:87px;margin:7px}.yoho-footer .dim-hover{position:absolute}.yoho-footer .dim-hover img{width:38px;height:38px}.yoho-footer .dim-active .dim-img{opacity:1;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)"}.yoho-footer .dim-active .dim-hover{display:none}.yoho-footer .footerbottom{width:100%}.yoho-footer .promise{padding:20px 0 10px;background:#000}.yoho-footer .promise .left{margin-right:60px;line-height:30px;font-size:12px;font-weight:700}.yoho-footer .promise .left .iconfont{display:inline-block;font-weight:400;font-size:22px;vertical-align:middle;margin-right:5px}.yoho-footer .promise .left:first-child .iconfont{font-size:27px}.yoho-footer .subscribe{border:1px solid #262626;width:240px}.yoho-footer .subscribe input{width:180px;height:32px;padding:0 10px;line-height:32px;border:none;margin:0;background:#000}.yoho-footer .subscribe a{display:block;float:right;margin-right:20px;font-size:20px;line-height:28px;opacity:.5;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)"}.yoho-footer .footer-help{background:#000;font-size:12px;overflow:hidden}.yoho-footer .footer-help>div{padding:15px 0;border-top:1px solid #262626}.yoho-footer .footer-help ul{width:110%}.yoho-footer .footer-help p{line-height:24px}.yoho-footer .footer-help p span{color:#fff}.yoho-footer .footer-help p a{color:#666}.yoho-footer .footer-help p a:hover{text-decoration:underline}.yoho-footer .footer-help li{width:180px}.yoho-footer .footer-help .screen{border-top:1px solid #262626;padding:15px 0}.yoho-footer .footer-link{background:#000;padding:10px 0 30px;font-size:12px}.yoho-footer .footer-link .right-flag{margin-top:3px}.yoho-footer .footer-link .right-flag a{margin-right:5px}.yoho-footer .footer-link .about-us{line-height:20px;color:#666;margin-left:10px}.yoho-footer .footer-link .about-us a{color:#666}.yoho-footer .footer-link .about-us span{padding:0 10px}.yoho-footer .return-top{position:fixed;width:60px;height:60px;left:50%;margin-left:595px;text-align:center;line-height:50px;color:#fff;background:#000;opacity:.5;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";bottom:20px;cursor:pointer;z-index:4}.yoho-footer .return-top .iconfont{font-size:34px}.yoho-footer .return-top:hover{opacity:.9;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=90)"}.yoho-footer .return-top.min{left:100%;right:20px;margin-left:auto}.min-screen .yoho-footer .index-foot dd{width:316px}.min-screen .yoho-footer .two-dim{margin-top:26px;margin-bottom:10px;overflow:hidden}.min-screen .yoho-footer .dim-img{width:69px;height:69px}.min-screen .yoho-footer .mobile{margin-top:26px;padding-bottom:15px}.min-screen .yoho-footer .mobile img{width:85px;height:108px}.min-screen .yoho-footer .promise .left{margin-right:45px}.min-screen .yoho-footer .subscribe{width:200px}.min-screen .yoho-footer .subscribe input{width:140px}.min-screen .yoho-footer .footer-help li{width:150px}.path-nav{font-size:12px;padding:15px 0;height:18px;line-height:18px}.path-nav,.path-nav a{color:#666}.path-nav .iconfont{font-size:12px}.path-nav .last{font-weight:700}.slider{position:relative;height:327px;width:100%;overflow:hidden}.slider img{max-width:100%;max-height:100%}.slide-pagination{position:absolute;left:0;right:0;bottom:12px;text-align:center}.slide-pagination-inner{display:inline-block;position:relative;padding:7px;vertical-align:middle}.slide-shade{position:absolute;left:0;right:0;top:0;bottom:0;background:#000;opacity:.3;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";border-radius:13px}.slide-pagination-last span{display:block;float:left;position:relative;margin:0 7px;width:12px;height:12px;background:#fff;cursor:pointer;opacity:.6;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=60)";border-radius:6px;z-index:2}.slide-pagination-last span.focus{opacity:1;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)"}.slide-switch{display:none}.slide-switch a{display:block;position:absolute;top:50%;margin:-30px 0 0;width:60px;height:60px;line-height:56px;text-align:center;z-index:2;background:#fff;opacity:.55;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=55)"}.slide-switch a .iconfont{font-size:32px;color:#59585a}.slide-switch a:hover{opacity:.9;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=90)"}.slide-switch .prev{left:0}.slide-switch .next{right:0}.slide-switch.show{display:block}.yoho-dialog{position:fixed;padding:20px;top:50%;left:50%;min-height:130px;min-width:350px;background:#f8f8f8;z-index:12;border:5px solid rgba(0,0,0,.38)}.yoho-dialog .close{position:absolute;top:5px;right:5px;cursor:pointer}.yoho-dialog .btns,.yoho-dialog .content{text-align:center}.yoho-dialog .alert-sure,.yoho-dialog .confirm-sure{background:#000;color:#fff}.yoho-dialog .btn{display:inline-block;width:56px;height:26px;line-height:26px;text-align:center;border:1px solid #000;cursor:pointer;margin-left:10px}.yoho-dialog .btn:first-child{margin-left:0}.yoho-dialog.alert-dialog .content,.yoho-dialog.confirm-dialog .content{width:350px;height:auto;min-height:90px;overflow:hidden;line-height:20px;position:relative;padding-top:40px;padding-bottom:20px}.yoho-dialog.alert-dialog .content p,.yoho-dialog.confirm-dialog .content p{position:absolute;left:0;bottom:25px;width:100%;color:#444;line-height:25px}.yoho-dialog.alert-dialog .content div,.yoho-dialog.confirm-dialog .content div{position:absolute;top:0;left:100px;padding-top:30px;font-size:22px;font-weight:700;width:150px;height:30px;line-height:30px;margin:0 auto}.yoho-dialog.alert-dialog .content div span,.yoho-dialog.confirm-dialog .content div span{background-image:url(../assets/img/sprite.cart.png?v155e7e2f638);background-position:0 -272px;float:left;width:27px;height:30px}.yoho-dialog.subcontent-dialog{padding:30px 0}.yoho-dialog.subcontent-dialog .content{font-weight:700;margin:0 auto 30px}.yoho-dialog.subcontent-dialog .sub-content{text-align:center;font-size:12px;color:#555;margin-left:5px;margin-bottom:5px}.yoho-dialog.subcontent-dialog .btn{margin-top:25px;width:100px;font-size:13px;margin-left:0;margin-right:0}.yoho-dialog.subcontent-dialog .btn.black{background-color:#000;color:#fff}.pager{font-size:12px}.pager a{height:24px;padding:0 9px;line-height:24px;display:inline-block;text-align:center;margin-right:8px;color:#222}.pager a.cur{color:#fff;background-color:#222}.pager a:first-child .iconfont{right:auto;left:-5px}.pager .iconfont{position:relative;vertical-align:middle;bottom:1px;right:-5px;font-size:14px}.err-page{width:650px;height:200px;overflow:hidden;margin:100px auto}.err-page .tips-404{float:left;height:200px;padding-left:20px}.err-page .tips-404 .tip{font-size:24px;color:#000;margin-top:55px}.err-page .tips-404 .links{font-size:12px;color:#666;margin-top:15px}.err-page:before{content:'';display:block;width:200px;height:200px;background:url(../assets/img/404.png?v155e7e2b3d0) 50% no-repeat;float:left}.share-wrapper{position:relative}.share-wrapper i{display:block;float:left;width:16px;height:16px;margin-left:5px;cursor:pointer}.share-wrapper .weibo{background-position:0 0}.share-wrapper .tweibo,.share-wrapper .weibo{background-image:url(../assets/img/sprite.share.png?v155e7e2f638)}.share-wrapper .tweibo{background-position:-18px 0}.share-wrapper .renren{background-position:0 -18px}.share-wrapper .qzone,.share-wrapper .renren{background-image:url(../assets/img/sprite.share.png?v155e7e2f638)}.share-wrapper .qzone{background-position:-18px -18px}.share-wrapper .qq{background-position:-36px 0}.share-wrapper .douban,.share-wrapper .qq{background-image:url(../assets/img/sprite.share.png?v155e7e2f638)}.share-wrapper .douban{background-position:-36px -18px}.share-wrapper .weixin{background-image:url(../assets/img/sprite.share.png?v155e7e2f638);background-position:0 -36px}.share-wrapper .weixin-share-box{display:none;position:absolute;width:282px;height:302px;padding-top:9px;text-align:center;font-family:Microsoft Yahei,Arial,Verdana;top:22px;right:-26px;z-index:2}.share-wrapper .weixin-share-box em,.share-wrapper .weixin-share-box em i{position:absolute;width:0;height:0;font-size:0;border-width:0 10px 9px;border-style:dashed dashed solid}.share-wrapper .weixin-share-box em{border-color:transparent transparent #d6d6d6;top:0;left:50%;margin-left:-10px}.share-wrapper .weixin-share-box em i{border-color:transparent transparent #e8e8e8;overflow:hidden;top:1px;left:-15px}.share-wrapper .weixin-share-box .con{position:relative;width:280px;height:300px;overflow:hidden;background-color:#fff;border:1px solid #d6d6d6;box-shadow:0 2px 4px #d1d1d1}.share-wrapper .weixin-share-box h2{display:block;height:46px;line-height:46px;background-color:#e8e8e8;color:#000;font-size:18px}.share-wrapper .weixin-share-box .pic,.share-wrapper .weixin-share-box .pic img{width:168px;height:168px}.share-wrapper .weixin-share-box .pic{overflow:hidden;margin:16px auto}.share-wrapper .weixin-share-box .w{font-size:13px;color:#9f9f9f;line-height:20px}.share-wrapper .weixin-share-box .close{position:absolute;width:45px;height:45px;line-height:45px;overflow:hidden;top:0;right:0;font-size:16px;color:#999}.product-search-page .goods-container{height:auto;padding:25px 0 0;position:relative;width:1160px}.product-search-page .goods-container .good-info{width:222px}.product-search-page .path-nav .last{font-weight:400}.product-search-page .path-nav .last span{font-weight:700}.min-screen .product-search-page .goods-container{height:auto;padding-top:25px;position:relative;width:1000px}.min-screen .product-search-page .goods-container .good-info{width:190px}.min-screen .product-search-page .goods-container .good-info .good-detail-img{height:255px}.min-screen .product-search-page .goods-container .block-next-page{width:190px;height:255px}.min-screen .product-search-page .filter-box .brand .attr-content{max-width:750px}.product-list-page .list-left{width:160px}.product-list-page .list-right{width:970px}.product-list-page .brand-banner{position:relative;height:150px;overflow:hidden}.product-list-page .brand-banner .opt-wrap{position:absolute;width:100%;height:32px;top:50%;margin-top:-16px;text-align:right}.product-list-page .brand-banner a,.product-list-page .brand-banner span{display:inline-block;height:20px;margin-right:5px;line-height:20px;border:1px solid #fff;padding:5px 10px;color:#fff;font-size:12px}.product-list-page .brand-banner .iconfont{font-size:13px}.product-list-page .brand-banner .brand-favor{margin-right:0;cursor:pointer}.product-list-page .brand-banner .coled{color:red}.product-list-page .base-shop-banner{margin-left:auto;margin-right:auto;width:1150px;height:200px}.product-list-page .base-shop-banner .opt .shop-name{margin-left:60px;font-size:32px;float:left;border:none}.product-list-page .base-shop-banner .opt .shop-favor{margin-right:60px}.product-list-page .brand-about{font-size:12px;line-height:150%}.product-list-page .sort-intro{margin-bottom:20px}.product-list-page .sort-intro .texts{width:386px;height:298px;padding:0 50px;border:1px solid #eaeceb;text-align:center;overflow:hidden}.product-list-page .sort-intro .name{font-size:30px;font-weight:700;margin-top:60px}.product-list-page .sort-intro .en-name{font-size:14px;font-weight:700}.product-list-page .sort-intro .desc{color:#666;margin-top:15px;font-size:12px;line-height:150%}.product-list-page .sort-intro .img{width:480px;height:300px}.product-list-page .sort-intro .key-entry{width:330px;margin:30px auto 0}.product-list-page .sort-intro .key-entry a{float:left;display:block;width:110px;line-height:20px;font-size:12px;color:#069;text-decoration:underline}.product-list-page .sell-signboard .left-list li{padding-left:0;height:auto;margin-bottom:10px;line-height:inherit}.product-list-page .sell-signboard .left-list li img{width:100%}.product-list-page.search-page .path-nav .last{font-weight:400}.product-list-page.search-page .path-nav .last span{font-weight:700}.min-screen .product-list-page .sort-intro .texts{width:346px;height:248px;padding:0 30px}.min-screen .product-list-page .sort-intro .name{margin-top:30px}.min-screen .product-list-page .sort-intro .img{width:400px;height:250px}.new-sale-page .sale-list-banner{width:100%;position:relative}.new-sale-page .sale-list-banner ul{overflow:hidden;width:100%;position:relative;z-index:1}.new-sale-page .sale-list-banner ul li{width:100%;height:100%;display:block;float:left;position:absolute;top:0;left:0}.new-sale-page .sale-list-pagation{z-index:2;position:absolute;left:0;bottom:50px;width:100%;height:20px;text-align:center}.new-sale-page .sale-list-pagation div{display:inline-block}.new-sale-page .sale-list-pagation span{display:block;width:20px;height:20px;background:url(../assets/img/product/default-normal.png?v155e7e2c758);float:left;margin:0 10px;cursor:pointer}.new-sale-page .sale-list-pagation span.active{background:url(../assets/img/product/default-active.png?v155e7e2c758)}.new-sale-page .header-title{position:relative;width:100%;height:42px;margin:20px 0;text-align:center;font-size:20px}.new-sale-page .header-title .count-wrap{position:relative}.new-sale-page .header-title .count{background:#fff;padding:0 5px;color:#999;font-size:12px;margin-top:6px}.new-sale-page .header-title .line-through{position:absolute;bottom:9px;left:0;right:0;height:1px;border-top:1px dotted #999}.new-sale-page .new-banner img{display:block;width:100%}.new-sale-page .new-brands{position:relative;width:100%;margin-top:25px}.new-sale-page .new-brands>*{float:left}.new-sale-page .new-brands .next,.new-sale-page .new-brands .pre{position:absolute;display:block;width:40px;height:40px;line-height:40px;color:#fff;background:#e0e0e0;text-align:center;top:50%;margin-top:-20px;cursor:pointer;opacity:.8;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=80)"}.new-sale-page .new-brands .next:hover,.new-sale-page .new-brands .pre:hover{opacity:.9;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=90)"}.new-sale-page .new-brands .pre{left:0}.new-sale-page .new-brands .next{right:0}.new-sale-page .new-brands .brands-wrap{position:relative;overflow:hidden;width:890px;height:76px;margin-left:40px}.new-sale-page .new-brands .brands{position:absolute;width:auto;height:76px}.new-sale-page .new-brands .brands li{float:left;margin-left:14px}.new-sale-page .new-brands .brands li a{display:block;width:164px;height:76px;line-height:76px;vertical-align:middle;text-align:center}.new-sale-page .new-brands .brands li img{vertical-align:middle;max-width:100%;max-height:100%;border:none}.new-sale-page .new-floor-title{position:relative;margin:35px auto;width:300px;height:31px;line-height:31px;font-size:18px;border:1px solid #000}.new-sale-page .new-floor-title .date{position:absolute;left:-1px;top:-1px;width:155px;height:33px;color:#fff;text-align:center;background:url(../assets/img/product/floor-title.png?v155e7e2c758)}.new-sale-page .new-floor-title .title{float:right;margin-right:40px}.min-screen .new-sale-page .new-brands .brands-wrap{width:730px}.filter-box{border:1px solid #dfdfdf}.filter-box .section{padding:10px 15px;font-size:12px;border-top:1px solid #dfdfdf}.filter-box .section:first-child{border-top:none;padding:5px 15px}.filter-box .title{float:left;width:75px;line-height:30px;font-weight:700}.filter-box .attr-content{margin-left:75px}.filter-box .multi-select{display:inline-block;width:60px;height:18px;line-height:18px;border:1px solid #555;color:#555;text-align:center;cursor:pointer}.filter-box .attr{display:block;float:left;padding:0 10px;margin-right:30px;line-height:30px;cursor:pointer;color:#666;-moz-user-select:none}.filter-box .attr a{color:#666}.filter-box .attr:first-child{margin-left:0}.filter-box .attr.checked,.filter-box .attr.checked a{color:#e01}.filter-box .attr:hover{text-decoration:underline}.filter-box .color .attr{margin-right:0}.filter-box .checked .color-block{width:16px;height:16px;border:2px solid #222;padding:2px;background-size:100%!important}.filter-box .checked .color-block .sub-color-block{display:block;width:16px;height:16px;background-position:50%!important}.filter-box .checked-conditions{line-height:30px;background:#eaeceb}.filter-box .checked-conditions .title{margin-top:5px}.filter-box .checked-conditions .tag{display:block;float:left;padding:0 10px;margin:5px 30px 5px 0;background:#000;color:#fff;cursor:pointer}.filter-box .checked-conditions .color-block{height:14px;width:14px;border:1px solid #fff;margin-bottom:-3px;background-size:100%!important;background-position:50%!important}.filter-box .checked-conditions .clear-checked{margin-top:5px;color:#999;float:right}.filter-box .checked-conditions .clear-checked:hover{color:#468fa2}.filter-box .checked-conditions .close{font-size:14px}.filter-box .sort-pre .active .attr{border:1px solid #000}.filter-box .sort-pre .attr{position:relative}.filter-box .active .sort-up-icon{visibility:visible}.filter-box .sort-up-icon{position:absolute;width:15px;height:9px;left:50%;margin-left:-7px;bottom:-17px;z-index:3;visibility:hidden;background:url(../assets/img/product/senior-up.png?v155e7e2c758) no-repeat;background-position:50% 0}.filter-box .sort-sub-wrap{width:100%}.filter-box .sort-sub-wrap .sort-sub{border-top:1px solid #eaeceb;margin-top:15px;padding:0 0 15px}.filter-box .sort-sub-wrap .sort-sub .attr{padding-top:15px}.filter-box .brand{position:relative}.filter-box .brand .attr{box-sizing:border-box;width:20%;height:30px;margin:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.filter-box .brand .attr-content{max-width:900px}.filter-box .brand .brand-opt{position:absolute;right:20px;top:15px;color:#555}.filter-box .brand .multi .attr.checked,.filter-box .brand .multi .attr.checked a{color:#000}.filter-box .brand .brand-more{margin-right:10px;cursor:pointer}.filter-box .brand .brands-index{float:left;line-height:30px;margin-right:5px;cursor:pointer}.filter-box .brand .brands-index span{margin:0 3px;-moz-user-select:none}.filter-box .brand .brands-index span:first-child{margin-left:10px}.filter-box .brand .brands-index span.hover{color:red}.filter-box .brand .brand-search{float:left;height:18px;line-height:18px;border:1px solid #b0b0b0;margin-top:5px;margin-left:10px}.filter-box .brand .brand-search input{float:left;border:none;width:100px;height:18px;padding:0}.filter-box .brand .brand-search .btn{position:relative;display:inline-block;top:-1px;width:55px;height:20px;line-height:20px;background:#3a3a3a;color:#fff;text-align:center;cursor:default}.filter-box .brand .panel-body{padding:15px 20px;background:#f4f7f6;margin-top:5px;margin-left:10px}.filter-box .brand .panel-body .ul-scroll{overflow:auto;min-height:30px;max-height:150px}.filter-box .btns{display:none;margin-top:10px;text-align:center}.filter-box .multi .btns{display:block}.filter-box .multi-select-cancel,.filter-box .multi-select-ok{width:55px;height:24px;border:none;background:#000;color:#fff;font-size:14px;margin-right:20px;cursor:pointer;outline:none;font-family:Microsoft YaHei}.filter-box .multi-select-cancel.dis,.filter-box .multi-select-ok.dis{background:#ccc}.filter-box .ud-price-range{margin-top:2px}.filter-box .limit{height:22px;width:42px;border:1px solid #ccc;padding:0}.filter-box .price-sep{margin:0 5px}.filter-box .price-sure{height:24px;width:44px;background:#333;color:#fff;margin-left:10px;outline:none;border:none;font-size:12px;cursor:pointer}.filter-box .color-block{display:inline-block;height:22px;width:22px;border:1px solid #ccc;margin-bottom:-6px;margin-right:5px;background-size:100%!important;background-repeat:no-repeat!important;background-position:50%!important}.filter-box .senior{padding-bottom:6px}.filter-box .senior .attr-content{position:relative}.filter-box .senior .senior-attr-wrap>.attr:hover{text-decoration:none}.filter-box .senior-attr-wrap{position:relative}.filter-box .senior-attr-wrap>.attr.hover,.filter-box .senior-attr-wrap>.attr:hover{font-weight:700}.filter-box .senior-attr-wrap>.attr.hover>.iconfont,.filter-box .senior-attr-wrap>.attr:hover>.iconfont{visibility:hidden}.filter-box .senior-attr-wrap>.attr.hover .senior-up-icon,.filter-box .senior-attr-wrap>.attr:hover .senior-up-icon{visibility:visible}.filter-box .senior-sub{box-sizing:border-box;position:absolute;padding:0 15px 15px 91px;left:-91px;right:-16px;top:39px;background:#fff;border:1px solid #dfdfdf;border-top:0;z-index:2}.filter-box .senior-sub ul{max-width:950px}.filter-box .senior-sub .multi-select{position:absolute;top:20px;right:15px}.filter-box .senior-sub .attr{height:30px}.filter-box .senior-sub.multi .multi-select{display:none}.filter-box .senior-baffle{height:18px;margin-top:-18px;background:none}.filter-box .senior-content{padding-top:15px;border-top:1px solid #eaeceb}.filter-box .senior-up-icon{position:relative;width:100%;height:9px;z-index:3;margin-left:-11px;visibility:hidden;background:url(../assets/img/product/senior-up.png?v155e7e2c758) no-repeat;background-position:50% 0;top:-1px;top:1px\9}.filter-box .checkbox{display:none;float:left}.filter-box .multi .checkbox{display:block;color:#ccc;font-size:12px;margin-right:3px}.filter-box .multi .checkbox.checked{color:#000}.filter-box .multi .checkbox.checked+span{color:#000;font-weight:700}.min-screen .filter-box .brand .attr{width:25%}:root .senior-up-icon,_:-ms-fullscreen{top:1px}.sort-pager{height:48px;background:#f5f7f6;line-height:48px;margin:10px 0}.sort-pager .checks,.sort-pager .sort-type{color:#999;font-size:12px;padding:0 10px}.sort-pager .checks .iconfont,.sort-pager .sort-type .iconfont{font-size:12px}.sort-pager .checks.active,.sort-pager .checks.checked,.sort-pager .sort-type.active,.sort-pager .sort-type.checked{color:#000;font-weight:700}.sort-pager .checks.active .iconfont,.sort-pager .checks.checked .iconfont,.sort-pager .sort-type.active .iconfont,.sort-pager .sort-type.checked .iconfont{font-weight:100}.sort-pager .checks .iconfont{background:#fff}.sort-pager .sort-type:first-child .iconfont{display:none}.sort-pager .pager-wrap{float:right;padding:15px 0}.sort-pager .page-count{position:relative;height:18px;float:left;font-size:12px;line-height:18px}.sort-pager .page-count>span{float:left;display:block;width:42px;height:10px;line-height:10px;padding:3px;border:1px solid #ccc;color:#222;cursor:pointer;margin-right:10px;background:#fff}.sort-pager .page-count .iconfont{font-size:14px;color:#ccc;float:right}.sort-pager .page-count>ul{position:absolute;display:none;width:48px;border-left:1px solid #ccc;border-right:1px solid #ccc;background:#fff;z-index:1}.sort-pager .page-count li{padding:0 3px;border-bottom:1px solid #ccc}.sort-pager .page-count li:hover{background:#376cf7;color:#fff}.sort-pager .page-count a{display:block;width:100%}.sort-pager .page-orient{float:left;font-size:14px;line-height:15px;margin:0 20px}.sort-pager .page-orient .dis-icon{color:#e6e6e6}.sort-pager .page-orient i{color:red}.good-info{margin-bottom:35px;width:222px;margin-right:10px;float:left}.good-info .good-detail-img{width:100%;height:300px;position:relative}.good-info .good-detail-img .good-thumb,.good-info .good-detail-img img.lazy{display:block;overflow:hidden;width:100%;height:100%}.good-info .good-detail-img .few-tag{width:100%;position:absolute;left:0;height:16px;line-height:16px;background:#ffac5b;color:#fff;font-size:12px;text-align:center;bottom:0}.good-info .good-detail-text{color:#222;font-size:12px;text-align:left;overflow:hidden}.good-info .good-detail-text>a{margin-top:16px;line-height:1.5;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.good-info .good-detail-text>.price{margin-top:5px}.good-info .good-detail-text .brand a{color:#666;line-height:1.5}.good-info .good-detail-text .market-price{text-decoration:line-through;color:#999}.good-info .col-btn{position:absolute;top:15px;right:15px;color:#ccc;font-size:12px}.good-info .col-btn.coled{color:#f95b4f}.good-info .tag-container{font-size:12px;height:22px;line-height:22px}.good-info .tag-container .good-tag{float:left;box-sizing:border-box;display:block;height:22px;padding:0 7px;margin-right:3px;color:#fff}.good-info .tag-container .good-tag:nth-last-of-type(1){margin-right:0}.good-info .tag-container .new-tag{background:#78dc7d}.good-info .tag-container .renew-tag{background:#78dc7e}.good-info .tag-container .running-man-tag{background-color:#017df9;color:#f7ed02}.good-info .tag-container .sale-tag,.good-info .tag-container .yep-tag,.good-info .tag-container .ymp-tag{background:#ff565b}.good-info .tag-container .limit-tag{color:#4e4e4e;border:1px solid #4e4e4e}@keyframes a{0%{max-width:0}to{max-width:150px}}.good-item-wrapper{border:1px solid #ddd;padding-left:20px;padding-top:18px;padding-right:20px;position:absolute;background:#fff;display:none}.good-item-wrapper .good-info-main{float:left}.good-item-wrapper .col-btn{display:block}.good-item-wrapper .col-btn:hover{cursor:pointer}.good-item-wrapper .good-select-color{float:left;margin-top:22px;overflow:hidden;animation:a .6s 1}.good-item-wrapper .good-select-color ul{display:block;float:left;margin-left:15px}.good-item-wrapper .good-select-color li{width:50px;margin-bottom:15px}.good-item-wrapper .good-select-color li a,.good-item-wrapper .good-select-color li img{display:block;overflow:hidden;width:100%}.block-next-page,.good-item-wrapper .good-info{margin-right:10px}.block-next-page{width:222px;height:297px;padding-top:22px;margin-bottom:35px;float:left;cursor:pointer}.block-next-page a{display:block}.block-next-page a img{width:100%;height:100%;display:block;overflow:hidden}.latest-walk{overflow:hidden;border-top:2px solid #eaeceb;font-size:12px}.latest-walk h2{padding-top:15px;font-size:14px}.latest-walk .goods{min-width:984px;height:241px;margin:30px 0;overflow:hidden}.latest-walk .good{float:left;margin-right:14px;width:150px}.latest-walk img{display:block;width:150px;height:201px}.latest-walk .name{display:block;height:18px;line-height:18px;max-width:150px;margin:5px 0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.latest-walk .market-price{color:#999;margin-right:5px;text-decoration:line-through}.latest-walk .sale-price{color:#000;font-weight:700}.min-screen .latest-walk .goods{width:820px;min-width:820px;height:301px}.min-screen .latest-walk .good{margin-right:10px;width:195px}.min-screen .latest-walk img{width:195px;height:261px}.product-page .sort-container{width:100%;font-size:12px;border-bottom:1px solid #ebebeb;padding-bottom:10px;margin-bottom:10px}.product-page .sort-container h2{height:28px;line-height:28px;color:#222;font-weight:700;position:relative}.product-page .sort-container h2 span{color:#bbb;padding-left:5px}.product-page .product-list-nav h3{height:28px;line-height:28px;color:#222;font-weight:700;position:relative;text-indent:10px;cursor:pointer}.product-page .product-list-nav h3 span{color:#bbb;padding-left:5px}.product-page .product-list-nav h3 span.icon-triangle{display:inline-block;padding-left:0;width:0;height:0;border-top:6px solid #fff;border-left:6px solid #000;border-bottom:6px solid #fff;position:absolute;top:50%;margin-top:-6px;left:0;transition:transform .3s}.product-page .product-list-nav.active .icon-triangle{transform:rotate(90deg)}.product-page .product-list-nav.active .sort-child-list{display:block}.product-page .sort-child-list{display:none}.product-page .sort-child-list li{color:#bbb}.product-page .sort-child-list li span{padding-left:5px;color:#bbb}.product-page .sort-child-list li.active{background:#333;color:#fff}.product-page .sort-child-list li.active a{color:#fff}.product-page .sort-child-list a{display:block;color:#666;padding-left:10px;height:22px;line-height:22px}.product-page .sort-child-list.new-sale{display:block}.product-page .nav-pic-title{height:35px;line-height:35px;color:#000;font-weight:700;border-bottom:1px solid #ebebeb;font-size:12px}.product-page .pic-nav{display:block}.product-page .pic-nav li{margin-bottom:10px}.product-page .pic-nav img,.product-page .pic-nav li{display:block;width:100%;overflow:hidden}.product-page .brand-ad img,.product-page .brand-card img{max-width:100%}.product-page .no-result{border:1px solid #eaeceb;padding:60px 0;text-align:center;margin-bottom:20px}.product-page .no-result .no-title{font-size:16px}.product-page .no-result .keyword{color:#e01}.product-page .no-result .search-again{width:490px;margin:15px auto}.product-page .no-result .search-again input{float:left;width:380px;height:18px;padding:15px 5px;border:10px solid #343434;color:#333;outline:none;box-sizing:content-box}.product-page .no-result .search-again .search-again-btn{float:left;width:80px;height:68px;line-height:68px;background:#343434;vertical-align:middle;color:#fff;cursor:pointer;outline:none;border:none}.product-page .no-result .search-again .iconfont{font-size:30px}.product-page .no-result .no-tip{font-size:12px;color:#999}.hotrank-page .popular-list{width:1160px}.hotrank-page .popular-list li{position:relative;float:left;width:378px;height:596px;overflow:hidden;list-style:none;margin:0 8px 0 0}.hotrank-page .popular-list li .item-img{width:100%;height:506px;line-height:506px;text-align:center;overflow:hidden}.hotrank-page .popular-list li img{display:block;width:100%;height:100%}.hotrank-page .popular-list .polular-icon{position:absolute;top:0;right:0;width:50px;height:50px;line-height:60px;background:#ffc513 url(../assets/img/product/hotrank/popular-icon.png?v155e7e2c758) no-repeat 50%;text-align:center;color:#ffc513;font-weight:700}.hotrank-page .popular-list .item-content{width:100%;padding:14px 0 0;height:77px;overflow:hidden;text-align:center;color:#222;line-height:18px}.hotrank-page .popular-list .item-content h2{max-height:36px;font-size:12px;color:#000;line-height:18px;text-align:center;overflow:hidden}.hotrank-page .popular-list .item-content p{display:inline-block;margin:3px 0 0;font-size:12px;text-align:center;line-height:20px;color:#000}.hotrank-page .popular-list .item-content p span{text-decoration:line-through;margin:0 10px 0 0;color:#999}.hotrank-page .popular-list .popular-item6,.hotrank-page .popular-list .popular-item7,.hotrank-page .popular-list .popular-item8,.hotrank-page .popular-list .popular-item9{width:280px;height:464px;margin:0 10px 0 0;overflow:hidden}.hotrank-page .popular-list .popular-item6 .item-img,.hotrank-page .popular-list .popular-item7 .item-img,.hotrank-page .popular-list .popular-item8 .item-img,.hotrank-page .popular-list .popular-item9 .item-img{height:374px;line-height:374px}.hotrank-page .hot-week{position:relative;padding:0 0 40px}.hotrank-page .hot-cate{height:45px;background:#f5f7f6;overflow:hidden}.hotrank-page .hot-cate li{float:left;height:45px;line-height:45px;display:table-cell}.hotrank-page .hot-cate li a{vertical-align:middle;padding:0 26px;font-size:14px;color:#777;border-left:1px solid #999}.hotrank-page .hot-cate li:first-child a{border:none}.hotrank-page .hot-cate li.current a{font-size:16px;color:#000}.hotrank-page .hot-week-list{width:1160px}.hotrank-page .hot-week-list .good-info{width:280px;height:464px;margin:10px 10px 0 0}.hotrank-page .hot-week-list .good-info .tag-container{display:none}.hotrank-page .hot-week-list .good-info .good-detail-img{height:374px;line-height:374px;text-align:center;font-size:0}.hotrank-page .hot-week-list .good-info .good-detail-img img{vertical-align:middle}.hotrank-page .hot-week-list .good-info .good-detail-text{height:77px;overflow:hidden;text-align:center;color:#222;line-height:18px}.hotrank-page .hot-week-list .good-info .good-detail-text a{max-height:36px;font-size:12px;color:#000;line-height:18px;text-align:center;overflow:hidden}.hotrank-page .hot-week-list .good-info .good-detail-text p{display:inline-block;margin:3px 0 0;font-size:12px;text-align:center;line-height:20px;color:#000}.hotrank-page .hot-week-list .good-info .good-detail-text p .sale-price{margin:0 10px 0 0}.hotrank-page .floatlayer{display:none;position:fixed;top:50%;left:50%;margin:0 0 0 575px;opacity:0;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"}.hotrank-page .floatlayer li{width:42px;height:42px;border:2px solid #555;border-top:none;border-bottom-width:1px;text-align:center}.hotrank-page .floatlayer li a{position:relative;display:table-cell;width:42px;height:42px;vertical-align:middle;color:#555;font-size:12px}.hotrank-page .floatlayer li a span{display:inline-block;vertical-align:middle;width:28px;word-wrap:break-word}.hotrank-page .floatlayer li:first-child{border-top:1px solid #555}.hotrank-page .floatlayer li.current,.hotrank-page .floatlayer li:hover{background:#555}.hotrank-page .floatlayer li.current a,.hotrank-page .floatlayer li:hover a{color:#fff}.min-screen .hotrank-page{width:990px}.min-screen .hotrank-page .popular-list li{width:324px;height:521px}.min-screen .hotrank-page .popular-list li .item-img{height:434px;line-height:434px}.min-screen .hotrank-page .popular-list .popular-item6,.min-screen .hotrank-page .popular-list .popular-item7,.min-screen .hotrank-page .popular-list .popular-item8,.min-screen .hotrank-page .popular-list .popular-item9{width:240px;height:408px}.min-screen .hotrank-page .popular-list .popular-item6 .item-img,.min-screen .hotrank-page .popular-list .popular-item7 .item-img,.min-screen .hotrank-page .popular-list .popular-item8 .item-img,.min-screen .hotrank-page .popular-list .popular-item9 .item-img{height:320px;line-height:320px}.min-screen .hotrank-page .hot-week-list .good-info{width:240px;height:408px}.min-screen .hotrank-page .hot-week-list .good-info .good-detail-img{height:320px;line-height:320px}.shop-entry-area{width:100%;height:auto;overflow:hidden;display:none}.shop-entry-area .shop-entry:first-child{margin-left:0}.shop-entry{position:relative;background:#f5f7f6;border:1px solid #eaeceb;padding:12px 15px;width:49%;box-sizing:border-box;float:left;margin:0 0 10px 2%}.shop-entry .logo{width:80px;height:50px}.shop-entry .name{margin-left:10px;width:70%}.shop-entry .shop-name{font-size:16px;color:#222;line-height:26px;height:26px}.shop-entry .shop-name,.shop-entry .sorts{width:100%;display:block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.shop-entry .sorts{color:#999;font-size:12px;line-height:18px;height:18px}.shop-entry .sorts a{color:#999}.shop-entry .entry-btn{position:absolute;right:15px;top:50%;width:110px;height:32px;line-height:32px;margin-top:-16px;background:#222;text-align:center;color:#fff;font-size:12px}.shop-entry .entry-btn .iconfont{font-size:12px}.goods-container{height:auto;padding:25px 0 0;position:relative;width:980px}.goods-container .good-info{width:235px}.product-detail-page .brand-banner{height:45px;width:100%}.product-detail-page .brand-banner img{display:block;height:45px}.product-detail-page .brand-banner .opt{margin-top:5px}.product-detail-page .brand-banner .brand-fav,.product-detail-page .brand-banner .home{display:inline-block;width:32px;height:32px;line-height:32px;border:1px solid #fff;text-align:center;color:#fff;cursor:pointer}.product-detail-page .brand-banner .home{margin-right:5px}.product-detail-page .brand-banner .home .iconfont{font-size:14px}.product-detail-page .brand-banner .brand-fav .iconfont{font-size:13px}.product-detail-page .brand-banner .coled{color:#ee0014}.product-detail-page .path-nav{border:none;margin-bottom:0}.product-detail-page .main{width:990px;margin:0 auto}.product-detail-page .main .infos{width:465px}.product-detail-page .main .img{position:relative;width:420px;height:560px}.product-detail-page .main .img-show{display:block;width:100%;height:100%}.product-detail-page .main .tags{position:absolute;top:0;left:0}.product-detail-page .main .good-tag{float:left;box-sizing:border-box;height:22px;line-height:22px;color:#fff;padding:0 7px;margin-right:5px;font-size:12px}.product-detail-page .main .new-tag{background:#78dc7d}.product-detail-page .main .renew-tag{background:#78dc7e}.product-detail-page .main .running-man-tag{background-color:#017df9;color:#f7ed02}.product-detail-page .main .sale-tag,.product-detail-page .main .yep-tag,.product-detail-page .main .ymp-tag{background:#ff565b}.product-detail-page .main .few-tag{background:#ffac5b}.product-detail-page .main .limit-tag{border:1px solid #4e4e4e;color:#4e4e4e;background:#fff}.product-detail-page .main .thumbs{width:75px;height:510px;margin-left:2px;overflow:hidden}.product-detail-page .main .thumb{display:block;width:75px;cursor:pointer;margin-bottom:2px}.product-detail-page .main .name{font-size:18px;font-weight:700;line-height:24px}.product-detail-page .main .sale-tip{color:#ee0014;padding-left:3px}.product-detail-page .main .brand-name{color:#666;font-size:12px}.product-detail-page .main .title{color:#999;font-size:12px}.product-detail-page .main .market-price{margin-top:8px}.product-detail-page .main .price{color:#000;font-size:22px;line-height:24px;font-weight:700}.product-detail-page .main .has-other-price{color:#999;text-decoration:line-through;font-size:12px}.product-detail-page .main .arrival-date{color:#ee0014;font-size:14px;font-weight:700;margin-left:24px}.product-detail-page .main .vip-price{line-height:14px;color:#222;margin-top:5px;background:url(../assets/img/product/vip-price-icon.png?v155e7e2c758) no-repeat;padding-left:48px;font-size:12px}.product-detail-page .main .vip-price .cur,.product-detail-page .main .vip-price .login-url{color:#f02200}.product-detail-page .main .vip-price .vip-price-item{margin-left:5px}.product-detail-page .main .vip-price .vip-schedual{color:#999;text-decoration:underline;margin-left:5px}.product-detail-page .main .activity{margin-top:12px}.product-detail-page .main .activity li{line-height:20px}.product-detail-page .main .ac-type{display:inline-block;min-width:50px;max-width:100px;height:16px;line-height:16px;margin-right:5px;padding:0 5px;text-align:center;background:#999;color:#fff;font-size:12px;overflow:hidden;vertical-align:middle}.product-detail-page .main .ac-des{font-size:12px}.product-detail-page .main .row{margin-top:10px}.product-detail-page .main .trade-content{padding-top:20px;margin-top:20px;border-top:1px solid #eaeceb}.product-detail-page .main .chose-color{font-size:12px}.product-detail-page .main .chose-color .title{margin-top:14px}.product-detail-page .main .chose-color img{display:block;height:36px;width:36px;border:2px solid #fff}.product-detail-page .main .chose-color .focus img{border-color:#222}.product-detail-page .main .chose-color li{margin-right:5px;margin-bottom:5px;cursor:pointer}.product-detail-page .main .chose-size{font-size:12px}.product-detail-page .main .chose-size .title{margin-top:6px}.product-detail-page .main .chose-size li{float:left;display:block;height:22px;line-height:22px;margin-right:5px;margin-bottom:5px;padding:0 5px;border:1px solid #eaeceb;text-align:center;cursor:pointer;min-width:28px}.product-detail-page .main .chose-size li.disable{opacity:.5;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)"}.product-detail-page .main .chose-size li.focus{color:#fff;background:#222}.product-detail-page .main .size-wrapper{width:415px}.product-detail-page .main .size{float:left;color:#666}.product-detail-page .main .size-ruler{float:left;display:block;width:57px;height:24px;background:url(../assets/img/product/size-ruler.jpg?v155e7e2c758);margin-bottom:5px;cursor:pointer}.product-detail-page .main .num-warn,.product-detail-page .main .size-warn{float:left;height:24px;line-height:24px}.product-detail-page .main .color-size-tip{color:#999;clear:both;line-height:18px}.product-detail-page .main .chose-count .title{margin-top:6px}.product-detail-page .main .num{display:block;width:38px;height:23px;line-height:23px;text-align:center;border:1px solid #eaeceb;color:#333;font-size:12px;background:#ebebe4}.product-detail-page .main .minus-plus{display:block;width:14px;height:23px;border:1px solid #eaeceb;border-left:none;text-align:center;cursor:pointer}.product-detail-page .main .minus-plus i{display:block;width:13px;height:11px;line-height:8px;font-size:12px;-moz-user-select:none}.product-detail-page .main .minus-plus .dis{color:#999}.product-detail-page .main .minus{border-top:1px solid #eaeceb;font-size:13px}.product-detail-page .main .lc-btn{float:left;display:block;width:80px;height:25px;line-height:25px;color:#fff;background:#222;margin-left:10px;font-size:12px;text-align:center;cursor:default}.product-detail-page .main .lc-btn.dis,.product-detail-page .main .lc-btn.had-lc,.product-detail-page .main .lc-btn.lc-sold-out{background:#ccc}.product-detail-page .main .num-wraper{position:relative}.product-detail-page .main .lc-container{position:absolute;top:-39px;right:-233px;z-index:1}.product-detail-page .main .lc-arrow{position:absolute;top:40px;left:-12px;width:13px;height:20px;background:url(../assets/img/product/arrow.png?v155e7e2c758)}.product-detail-page .main .lc-content{box-sizing:border-box;width:220px;height:285px;text-align:center;background:#f8f8f8;border:1px solid #cecece;padding:40px 25px 0}.product-detail-page .main .lc-content .qr-code{width:137px;height:137px;background:url(../assets/img/product/top-good-qr.png?v155e7e2c758);margin:0 auto}.product-detail-page .main .lc-content .title{font-size:18px;color:#000;margin:12px 0;line-height:24px}.product-detail-page .main .lc-content .sub-title{font-size:14px;color:#939290}.product-detail-page .main .buy-btn{display:inline-block;margin-right:10px;height:48px;line-height:48px;width:197px;text-align:center;color:#fff;background:#e92601;font-size:14px;cursor:pointer}.product-detail-page .main .buy-btn.hover{background:#eb3b19;background:rgba(233,38,1,.8)}.product-detail-page .main .buy-btn.dis{background:#ccc}.product-detail-page .main .collect-product,.product-detail-page .main .keep-shopping{display:inline-block;width:127px;height:48px;text-align:center;line-height:48px;background:#fff;color:#222;border:1px solid #ccc;font-weight:700;font-size:12px;cursor:pointer}.product-detail-page .main .collect-product .iconfont,.product-detail-page .main .keep-shopping .iconfont{color:#ccc;font-size:14px}.product-detail-page .main .collect-product.coled .iconfont,.product-detail-page .main .keep-shopping.coled .iconfont{color:#fa5252}.product-detail-page .main .share-row{margin-top:20px}.product-detail-page .main .share-row .title{margin-top:2px}.product-detail-page .main .balance{display:none}.product-detail-page .main .balance .success-tip{color:#222;font-size:18px;margin-bottom:10px}.product-detail-page .main .balance .cart-total{color:#999;font-size:12px}.product-detail-page .main .balance .balance-btns{margin-top:20px}.product-detail-page .other-infos{padding-bottom:30px}.product-detail-page .info-block{margin-top:30px;color:#999;border-top:2px solid #eaeceb;font-size:12px}.product-detail-page .info-block .basic{width:640px;margin:0 auto}.product-detail-page .info-block .basic li{float:left;width:25%;line-height:20px}.product-detail-page .info-block .comfort{width:470px;border:1px solid #eaeceb;margin:17px auto 0;padding-bottom:15px}.product-detail-page .info-block .comfort li{margin:12px 20px 0}.product-detail-page .info-block .comfort-block{display:inline-block;width:14px;height:10px;border:1px solid #eaeceb;margin-right:2px}.product-detail-page .info-block .comfort-block.cur{background:#999;border:1px solid #999}.product-detail-page .block-title{margin-bottom:25px;text-align:center}.product-detail-page .block-title .title{display:inline-block;padding-top:15px;font-weight:700;cursor:pointer}.product-detail-page .block-title .title.cur{color:#222;border-top:2px solid #222;margin-top:-2px}.product-detail-page .block-title .sep{display:inline-block;margin:0 30px;color:#eaeceb;font-size:14px;cursor:default;font-weight:700}.product-detail-page .description-content{overflow:hidden}.product-detail-page .material-content{display:none;overflow:hidden}.product-detail-page .material-detail li{width:860px;padding-bottom:20px;border-bottom:1px dotted #eaeceb;margin:0 auto 20px}.product-detail-page .material-detail li img{float:left;width:125px;height:50px}.product-detail-page .material-detail li .name{float:left;width:100px;line-height:25px;border-right:1px dotted #eaeceb;color:#666;font-weight:700;text-align:center;font-size:14px}.product-detail-page .material-detail li .text{float:left;width:614px;padding-left:20px;line-height:18px}.product-detail-page .wash{text-align:center}.product-detail-page .wash li{display:inline-block;padding:0 20px;color:#666;border-right:1px solid #eaeceb}.product-detail-page .size-info{text-align:center}.product-detail-page .fitting-report-table,.product-detail-page .reference-table,.product-detail-page .size-table{text-align:center;margin:0 auto}.product-detail-page .fitting-report-table th,.product-detail-page .reference-table th,.product-detail-page .size-table th{width:110px;text-align:center}.product-detail-page .fitting-report-table tr,.product-detail-page .reference-table tr,.product-detail-page .size-table tr{height:30px}.product-detail-page .fitting-report-table td,.product-detail-page .fitting-report-table tr,.product-detail-page .reference-table td,.product-detail-page .reference-table tr,.product-detail-page .size-table td,.product-detail-page .size-table tr{text-align:center}.product-detail-page .fitting-report-table thead,.product-detail-page .reference-table thead,.product-detail-page .size-table thead{background:#f5f7f6;color:#999}.product-detail-page .fitting-report-table tbody,.product-detail-page .reference-table tbody,.product-detail-page .size-table tbody{color:#222}.product-detail-page .fitting-report-table .avatar,.product-detail-page .reference-table .avatar,.product-detail-page .size-table .avatar{width:26px;height:26px;border-radius:50px}.product-detail-page .fitting-report-table .avatar-col,.product-detail-page .reference-table .avatar-col,.product-detail-page .size-table .avatar-col{width:26px;padding-left:20px;padding-right:20px}.product-detail-page .fitting-report-table .model-col,.product-detail-page .reference-table .model-col,.product-detail-page .size-table .model-col{width:90px}.product-detail-page .fitting-report-table .remark-col,.product-detail-page .reference-table .remark-col,.product-detail-page .size-table .remark-col{width:200px}.product-detail-page .fr-img-wrap{width:100%;text-align:center}.product-detail-page .fr-img-wrap img{max-width:100%}.product-detail-page .ref-model{padding-top:10px}.product-detail-page .ref-model .model{width:444px;height:35px;padding-top:47px;padding-left:316px;color:#666;overflow:hidden;margin:10px auto 0}.product-detail-page .ref-model .model em{margin-left:5px}.product-detail-page .size-tip{color:#999;margin-top:15px;text-align:center}.product-detail-page .details{text-align:center;font-size:12px;color:#999;line-height:18px}.product-detail-page .details-html{width:750px;text-align:center;margin:0 auto}.product-detail-page .details-html b{font-weight:700}.product-detail-page .details-html i{font-style:italic}.product-detail-page .consults{display:none}.product-detail-page .consult-comment .title,.product-detail-page .consult-comment .title.cur{color:#666}.product-detail-page .cc-content{background:#f5f7f6;padding:20px 20px 0;font-size:12px}.product-detail-page .cc-content h2{font-weight:700;font-size:14px;margin-bottom:10px;color:#000}.product-detail-page .cc-content li{border-top:1px solid #eaeceb;padding:20px 0}.product-detail-page .cc-content .user-info{color:#999;line-height:16px}.product-detail-page .cc-content .user-info>*{float:left}.product-detail-page .cc-content .user-info .name{color:#666}.product-detail-page .cc-content .user-info .date{color:#bbb}.product-detail-page .cc-content .user-info .question{color:#222}.product-detail-page .cc-content .user-avatar{width:30px;height:30px;margin-right:5px}.product-detail-page .cc-content .more-wrap{text-align:center;border-top:1px solid #eaeceb;padding:20px 0;font-size:14px;font-weight:700;color:#666}.product-detail-page .cc-content .btn-wrap{padding:20px 0;border-top:1px solid #eaeceb}.product-detail-page .cc-content .load-more{cursor:pointer}.product-detail-page .cc-content .btn{display:block;width:140px;height:32px;line-height:32px;color:#fff;background:#222;text-align:center;font-size:12px;margin:0 auto;cursor:pointer}.product-detail-page .cc-content .btn .iconfont{font-size:14px}.product-detail-page .cc-content .comment,.product-detail-page .cc-content .consult{margin-top:10px}.product-detail-page .cc-content .consults{display:none}.product-detail-page .new-consult{padding:20px 0;border-top:1px solid #eaeceb}.product-detail-page .new-consult textarea{width:590px;height:80px;padding:5px;outline:none;resize:none}.product-detail-page .new-consult .submit-consult{display:block;width:140px;height:32px;line-height:32px;margin:8px 0 0}.product-detail-page .new-consult .error{border-color:#e01}.product-detail-page .consult-success{border-top:1px solid #eaeceb;margin-top:30px;text-align:center;padding:20px 0}.product-detail-page .consult-success p{width:295px;height:55px;line-height:55px;margin:0 auto;border:2px solid #222;display:block;color:#222;font-weight:700}.product-detail-page .after-service{text-align:center;margin-top:30px}.product-detail-page .after-service .after-service-content{display:none}.product-detail-page .after-service .after-service-switch{height:44px;line-height:44px;background:#eaeceb;text-align:center;font-size:12px;cursor:pointer}.product-detail-page .after-service .after-service-switch .iconfont{font-size:12px}.product-detail-page .after-service .text{padding:20px 15px;background:#f5f7f6;text-align:left;color:#666;line-height:18px}.product-detail-page .after-service .orange{color:#f9761a}.product-detail-page .after-service h4{font-weight:700;font-size:14px;line-height:24px;color:#222;margin-top:10px}.product-detail-page .after-service h4:first-child{margin-top:0}.product-detail-page .after-service .img-1{width:715px;height:259px;margin:0 auto;background:url(../assets/img/product/after-service-1.png?v155e7e2c758)}.product-detail-page .after-service .img-2{width:715px;height:230px;margin:0 auto;background:url(../assets/img/product/after-service-2.png?v155e7e2c758)}.product-detail-page .after-service a{color:#666}.product-detail-page .service{width:403px;height:19px;margin:45px auto;background:url(../assets/img/product/service.png?v155e7e2c758)}.product-detail-page .latest-walk{overflow:inherit}.product-detail-page .latest-walk .goods{width:1010px;margin:0 auto;height:auto}.product-detail-page .latest-walk .goods>div{float:left;width:180px;margin-right:22px}.product-detail-page .latest-walk img{height:240px;width:180px;display:block}.product-detail-page .latest-walk .name{display:block;margin-top:5px;color:#222;line-height:16px}.product-detail-page .latest-walk .price{color:#222;font-weight:700;margin-top:5px}.product-detail-page .latest-walk .market-price{margin-right:5px}.product-detail-page .latest-walk .has-sale{text-decoration:line-through;color:#999}.product-detail-page .warn-tip{display:inline-block;color:#e01;margin-left:7px;font-size:12px}.product-detail-page .warn-tip i{font-size:14px}.product-detail-page .hot-point-wrap{position:relative;margin:0 auto}.product-detail-page .hot-point-wrap .hot-point{position:absolute;background:#fff\9;filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=0)}.product-detail-page .hot-point-wrap .hot-point.hover .pointer{background-position:0 -25px}.product-detail-page .hot-point-wrap .hot-point.hover .hp-good{display:block}.product-detail-page .hot-point-wrap .pointer{position:absolute;display:block;background:url(../assets/img/product/hp-num.png?v155e7e2c758) no-repeat 0 0;color:#fff;cursor:pointer;width:25px;height:25px;line-height:25px;text-align:center;left:0;top:0;font-size:18px}.product-detail-page .hot-point-wrap .hp-good{display:none;position:absolute;left:30px;top:0;width:210px;background:#000;height:60px;padding:10px}.product-detail-page .hot-point-wrap .hp-good .pic{display:block;float:left;width:60px;height:60px;margin-right:10px}.product-detail-page .hot-point-wrap .hp-good .info{position:relative;float:left;color:#fff;font-size:12px;width:140px;height:60px;line-height:20px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;text-align:left}.product-detail-page .hot-point-wrap .hp-good .check-btn{display:block;position:absolute;height:18px;width:40px;text-decoration:none;right:0;bottom:0;text-align:center;background:#e8e8e8;border-radius:2px}.shop-index-page{margin:10px auto 30px;width:1150px}.shop-index-page .shop-banner{position:relative}.shop-index-page .shop-banner .shop-name{position:absolute;left:260px;bottom:20px;font-size:36px;color:#fff}.shop-index-page .shop-banner .banner-img{width:100%;height:150px}.shop-index-page .shop-banner .opt-wrap{position:absolute;top:65%;right:0;padding:0 10px}.shop-index-page .shop-banner .shop-collect,.shop-index-page .shop-banner .shop-intro{display:inline-block;width:110px;height:30px;margin-right:10px;font-size:16px;line-height:30px;text-align:center;color:#fff;border:1px solid #fff;cursor:pointer}.shop-index-page .shop-banner .shop-collect i,.shop-index-page .shop-banner .shop-intro i{background-repeat:no-repeat;float:left;position:relative;left:11px;top:5px}.shop-index-page .shop-banner .shop-collect .shop-intro-ico,.shop-index-page .shop-banner .shop-intro .shop-intro-ico{width:16px;height:20px;background-image:url(../assets/img/product/shop-instro.png?v155e7e2c758);margin-right:12px}.shop-index-page .shop-banner .shop-collect .shop-collect-ico,.shop-index-page .shop-banner .shop-intro .shop-collect-ico{width:20px;height:19px;background-image:url(../assets/img/product/shop-collection.png?v155e7e2c758);top:6px;margin-right:12px}.shop-index-page .shop-banner .shop-collect .shop-collect-ico.on,.shop-index-page .shop-banner .shop-intro .shop-collect-ico.on{background-image:url(../assets/img/product/shop-collection-on.png?v155e7e2c758)}.shop-index-page .shop-nav{box-sizing:border-box;margin-bottom:30px;padding:0 20px;width:100%;height:40px;color:#fff;background:#000;font-size:16px}.shop-index-page .shop-nav a{position:relative;top:8px;display:inline-block;line-height:26px;color:#fff}.shop-index-page .shop-nav .nav-item{position:relative;float:left;width:160px;text-align:center}.shop-index-page .shop-nav .nav-item.first{width:100px;text-align:left}.shop-index-page .shop-nav .current a{border-bottom:2px solid #fff}.shop-index-page .coupon{margin-top:20px;width:100%;height:80px}.shop-index-page .coupon .coupon-title{width:162px;height:100%;background-image:url(../assets/img/sprite.product.png?v155e7e2f638);background-position:0 0}.shop-index-page .slider-wrap{height:360px}.shop-index-page .slider-wrap .slide-wrapper img{width:auto;height:auto}.shop-index-page .slider-left{float:left;margin-right:10px;width:660px;height:100%;overflow:hidden;position:relative}.shop-index-page .slider-left .slide-wrapper{height:358px}.shop-index-page .slider-left .slide-switch a.prev{margin-left:-330px}.shop-index-page .slider-left .slide-switch a.next{margin-right:-330px}.shop-index-page .slider-left img{width:100%;height:100%}.shop-index-page .slider-left .slide-pagination{display:none}.shop-index-page .slider-right{float:left;width:300px;height:100%}.shop-index-page .slider-right .slider-item{display:block;margin-bottom:10px;width:100%;height:175px}.shop-index-page .floor-header{margin-top:50px}.shop-index-page .hot-single,.shop-index-page .new-arrivel{width:980px}.shop-index-page .hot-single .item,.shop-index-page .new-arrivel .item{float:left;position:relative;margin-right:10px;margin-bottom:20px;width:235px;height:315px;font-size:14px;text-align:center;line-height:1.5;background:#f5f5f5;font-weight:700}.shop-index-page .hot-single .item img,.shop-index-page .new-arrivel .item img{width:235px;height:250px}.shop-index-page .hot-single .item .title,.shop-index-page .new-arrivel .item .title{width:220px;padding:0 5px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.shop-index-page .hot-single .hat,.shop-index-page .new-arrivel .hat{position:absolute;top:0;right:0;width:50px;height:50px;color:#ffc513;text-align:center;line-height:57px;background-image:url(../assets/img/sprite.product.png?v155e7e2f638);background-position:0 -82px}.shop-index-page .mask{background-color:#000;opacity:.5;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";position:fixed;top:0;left:0;right:0;bottom:0;z-index:12;display:none;cursor:pointer}.shop-index-page .pop-shop-intro{display:none}.shop-index-page .shop-intro-bg{width:908px;height:604px;background-color:#000;opacity:.5;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";position:fixed;left:50%;top:50%;z-index:13;margin:-302px 0 0 -454px}.shop-index-page .shop-intro-area{width:898px;height:594px;padding:60px 10px 35px 40px;background-color:#fff;position:fixed;left:50%;top:50%;margin:-297px 0 0 -449px;z-index:14;box-sizing:border-box}.shop-index-page .shop-intro-area .close-btn{width:18px;height:18px;background-image:url(../assets/img/product/shop-instro-close.png?v155e7e2c758);position:absolute;right:20px;top:20px;cursor:pointer}.shop-index-page .shop-intro-area .brand-cont{overflow:auto;width:100%;height:499px;padding-right:30px;box-sizing:border-box}.shop-index-page .shop-intro-area .intro-title{float:left}.shop-index-page .shop-intro-area .intro-title h2{width:100%;float:left;text-align:left;font-size:26px;font-weight:700;color:#000;font-style:italic}.shop-index-page .shop-intro-area .intro-title p{font-family:黑体;font-size:20px;text-align:left;padding:10px 0;float:left}.shop-index-page .shop-intro-area .intro-cont{width:100%;float:left;margin-top:55px;font-size:14px;line-height:20px}.shop-index-page .shop-intro-area .intro-cont p{text-indent:2em}.shop-index-page .shop-intro-area .intro-cont img{width:100%;margin-top:10px}.shop-index-page .fixed-area{background:#fff;z-index:1;width:970px}.shop-index-page .all-goods-menu{width:100%;height:40px;line-height:40px}.shop-index-page .all-goods-menu .menu-tag{color:#d0021b;font-size:18px;font-weight:700;text-align:left;padding:0 20px 0 10px;border-right:1px solid #000;float:left}.shop-index-page .all-goods-menu .menu-list{width:810px;height:40px;overflow:hidden;float:left;font-size:14px}.shop-index-page .all-goods-menu .menu-list li{display:inline-block;padding:0 15px}.shop-index-page .all-goods-menu .menu-list .on{background:#000;height:28px;line-height:28px}.shop-index-page .all-goods-menu .menu-list .on a{color:#fff}.shop-index-page .all-goods-menu .more{font-size:14px;float:right}.shop-index-page .sort-pager .sort-type:first-child .iconfont{display:inline-block}.shop-index-page .loading{position:relative;width:100%;text-align:center}.shop-index-page .loading a{display:block;height:35px;width:120px;margin:0 auto;background-color:#000;color:#fff;font-size:14px;line-height:35px;text-align:center}.shop-index-page .trend-info,.shop-index-page .trend-info .trend-list{width:100%}.shop-index-page .trend-info .trend-list li{float:left;width:316px;margin-left:10px;text-align:center}.shop-index-page .trend-info .trend-list li:first-child{margin-left:0}.shop-index-page .trend-info .trend-list img{width:100%;height:181px}.shop-index-page .trend-info .trend-list .main-title,.shop-index-page .trend-info .trend-list .sub-title{box-sizing:border-box;font-size:16px;margin-top:15px;padding:0 10px;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:24px}.shop-index-page .trend-info .trend-list .sub-title{margin-top:0;font-size:14px}.shop-index-page .goods-wrap .goods-container .good-info{width:235px;height:auto;margin-bottom:35px}.shop-index-page .goods-wrap .goods-container .good-detail-text{text-align:left}.shop-index-page .left-modular{width:160px;font-size:14px;margin-top:20px;float:left}.shop-index-page .left-modular .title{width:100%;height:25px;line-height:25px;background:#000;color:#fff;font-family:黑体;padding-left:14px;box-sizing:border-box}.shop-index-page .left-modular .left-list{width:100%;margin-top:5px}.shop-index-page .left-modular .left-list li{width:100%;height:42px;line-height:42px;background:#f5f5f5;float:left;box-sizing:border-box;margin-top:5px;padding-left:14px}.shop-index-page .left-modular .left-list li a{color:#000}.shop-index-page .left-modular .left-list li.on{border:1px solid #000}.shop-index-page .classic-recommend .left-list li{height:50px;line-height:50px}.shop-index-page .classic-recommend .classic-name{width:96px;display:inline-block;line-height:14px;vertical-align:middle;font-weight:700}.shop-index-page .classic-recommend .classic-name .name{font-size:14px}.shop-index-page .classic-recommend .classic-name .en-name{font-size:12px}.shop-index-page .classic-recommend img{width:40px;max-height:40px;margin-right:5px;vertical-align:middle}.shop-index-page .sell-recommend .left-list li{padding-left:0;height:auto;margin-bottom:25px;line-height:inherit}.shop-index-page .sell-recommend .left-list li img{width:100%}.shop-index-page ::-webkit-scrollbar{width:16px;height:16px}.shop-index-page ::-webkit-scrollbar-thumb,.shop-index-page ::-webkit-scrollbar-track{border-radius:999px;border:5px solid transparent}.shop-index-page ::-webkit-scrollbar-track{box-shadow:inset 0 0 6px transparent}.shop-index-page ::-webkit-scrollbar-thumb{min-height:20px;background-clip:content-box;box-shadow:inset 0 0 0 6px rgba(0,0,0,.3)}.shop-index-page ::-webkit-scrollbar-corner{background:transparent}.shop-index-page .page-nav{padding:7px 0;float:right;font-size:14px}.shop-index-page .page-nav .page-prev{width:33px;height:33px;background:#ccc;text-align:center;float:left}.shop-index-page .page-nav .arrow-left{width:10px;height:10px;display:inline-block;position:relative;top:-7px;background:url(../assets/img/product/arrow-left.png?v155e7e2c758) no-repeat}.shop-index-page .page-nav a .page-next,.shop-index-page .page-nav a .page-prev{background:#000;color:#fff}.shop-index-page .page-nav .page-next{min-width:110px;height:33px;background:#a9a9a9;float:left;margin-left:1px;line-height:33px;padding-left:10px;box-sizing:border-box;padding-right:10px}.shop-index-page .page-nav .arrow-right{width:10px;height:10px;display:inline-block;vertical-align:middle;background:url(../assets/img/product/arrow-right.png?v155e7e2c758) no-repeat}.shop-index-page .page-nav .pages{margin-left:10px}.product-page .product-pager{padding:20px 0;font-size:12px;color:#6a6a6a;border-top:2px solid #eaeceb}.product-page .product-pager .pager{float:right}.product-page .list-left{width:160px}.product-page .list-right{width:970px}.new-sale-page .goods-container,.product-list-page .goods-container{height:auto;padding-top:25px;position:relative;width:980px}.new-sale-page .goods-container .good-info,.product-list-page .goods-container .good-info{width:235px}.new-sale-page .goods-container .good-info .good-detail-img,.product-list-page .goods-container .good-info .good-detail-img{height:315px}.new-sale-page .goods-container .block-next-page,.product-list-page .goods-container .block-next-page{width:235px;height:315px}.new-sale-page .filter-box .brand .attr-content,.product-list-page .filter-box .brand .attr-content{max-width:730px}.min-screen .new-sale-page .list-right,.min-screen .product-list-page .list-right{width:810px}.min-screen .new-sale-page .goods-container,.min-screen .product-list-page .goods-container{height:auto;padding-top:25px;position:relative;width:820px}.min-screen .new-sale-page .goods-container .good-info,.min-screen .product-list-page .goods-container .good-info{width:195px}.min-screen .new-sale-page .goods-container .good-info .good-detail-img,.min-screen .product-list-page .goods-container .good-info .good-detail-img{height:261px}.min-screen .new-sale-page .goods-container .block-next-page,.min-screen .product-list-page .goods-container .block-next-page{width:195px;height:261px}.min-screen .new-sale-page .filter-box .brand .attr-content,.min-screen .product-list-page .filter-box .brand .attr-content{max-width:570px}.passport-page{width:1150px;margin-left:auto;margin-right:auto}.passport-page .content{float:left;margin-top:107px;padding-left:85px}.passport-page .input{height:43px;font-size:16px;line-height:1.2;line-height:43px\9;width:268px;border:1px solid #dbdbdb;text-indent:10px;color:#9a9a9a;color:rgba(0,0,0,.5)}.passport-page .error{border-color:red!important}.passport-page .btn{display:block;height:46px;line-height:46px;width:100%;text-align:center;color:#fff;background-color:#ff1901;letter-spacing:10px;font-size:20px;cursor:pointer}.passport-page .btn.disable{background-color:#555;cursor:default}.passport-page .pwd-intensity-container{width:270px;text-align:right;padding-top:5px}.passport-page .pwd-intensity-container .pwd-intensity{height:15px;font-size:12px;background-color:#e8e8e8;padding:0 10px;text-align:center;color:#b9b9b9}.passport-page .pwd-intensity-container.red .pwd-intensity{color:#e01}.passport-page .pwd-intensity-container.red .color{background:#e01;color:#fff}.passport-page .pwd-intensity-container.yellow .pwd-intensity{color:#f6da1e}.passport-page .pwd-intensity-container.yellow .color{background:#f6da1e;color:#fff}.passport-page .pwd-intensity-container.green .pwd-intensity{color:#3ee392}.passport-page .pwd-intensity-container.green .color{background:#3ee392;color:#fff}.passport-page .pwd-tips{position:absolute;top:-10px;left:285px;width:160px!important;height:72px;padding-top:7px;font-size:12px;background-image:url(../assets/img/sprite.passport.png?v155e7e2f638);background-position:0 0}.passport-page .pwd-tips>div{position:relative;height:22px;line-height:22px;margin-left:15px;padding-left:15px;font-size:12px;color:#b9b9b9}.passport-page .pwd-tips>div i{position:absolute;width:14px;height:14px;left:-2px;top:50%;margin:-7px 0 0;background-image:url(../assets/img/sprite.passport.png?v155e7e2f638);background-position:-63px -113px}.passport-page .pwd-tips>div.no{color:red}.passport-page .pwd-tips>div.no i{background-image:url(../assets/img/sprite.passport.png?v155e7e2f638);background-position:-95px -113px}.passport-page .pwd-tips>div.yes i{background-image:url(../assets/img/sprite.passport.png?v155e7e2f638);background-position:-79px -113px}.passport-page .email-autocomplete{position:absolute;width:248px;padding:0 10px;z-index:1;margin-top:5px;border-radius:5px;cursor:pointer;border:1px solid #fefefe;background-color:#161616;color:#fff;font-size:16px}.passport-page .email-autocomplete li{height:24px;line-height:24px}.passport-page .err-tip{position:absolute;font-size:14px;white-space:nowrap;top:8px;left:285px;padding:6px 0;color:red}.passport-page .err-tip i{display:block;float:left;height:14px;width:14px;background-image:url(../assets/img/sprite.passport.png?v155e7e2f638);background-position:-95px -113px;margin-right:5px}.passport-page .err-tip a{text-decoration:underline;color:red}.passport-page .page-tip{display:block;width:100%;height:30px;line-height:30px;text-align:center;font-size:20px;font-weight:700;color:#ccc;clear:both;margin-bottom:15px}.passport-cover{float:left;margin:107px 0;width:575px}.passport-cover .cover-content{width:100%;height:318px;padding:50px 0;border-right:1px solid #dfdfdf}.passport-cover .cover-img{display:block;width:252px;height:190px;margin:0 auto;margin-top:50px}.login-page .relative{position:relative}.login-page .right{float:right}.login-page .login-ul>li{margin-bottom:25px}.login-page .title{float:left;font-size:20px}.login-page .country-code{cursor:pointer;color:#b9b9b9}.login-page .country-list{display:none;position:absolute;padding:0 10px;background:#fff;border:1px solid #000;top:20px;right:0;z-index:1;border-radius:5px}.login-page .country-list li{height:20px;line-height:20px;color:#000}.login-page .captcha-wrap{position:relative}.login-page .captcha-wrap .err-tip{left:335px}.login-page .captcha{width:160px;float:left}.login-page .captcha-img{height:37px;width:90px;border:0;vertical-align:middle;outline:none;margin-left:10px;margin-top:4px;float:left}.login-page .change-captcha{position:absolute;top:0;right:-50px;cursor:pointer;float:left;height:43px;font-size:14px;line-height:43px;color:#ff1901}.login-page .remember-me{cursor:pointer}.login-page .other-opts{color:#b9b9b9;font-size:14px}.login-page .other-opts .iconfont{font-size:14px}.login-page .other-opts .fast-reg{color:#ff1901}.login-page .forget-password{color:#b9b9b9}.login-page .third-party-login{display:table}.login-page .third-party-login a{display:table-cell;width:45px;background-size:100% 100%}.login-page .third-party-login .icon{display:block;width:30px;height:30px;margin:0 auto}.login-page .third-party-login .weixin{background-image:url(../assets/img/sprite.passport.png?v155e7e2f638);background-position:-96px -81px}.login-page .third-party-login .qq{background-image:url(../assets/img/sprite.passport.png?v155e7e2f638);background-position:-128px -81px}.login-page .third-party-login .weibo{background-image:url(../assets/img/sprite.passport.png?v155e7e2f638);background-position:0 -81px}.login-page .third-party-login .alipay{background-image:url(../assets/img/sprite.passport.png?v155e7e2f638);background-position:0 -113px}.login-page .third-party-login .douban{background-image:url(../assets/img/sprite.passport.png?v155e7e2f638);background-position:-64px -81px}.login-page .third-party-login .renren{background-image:url(../assets/img/sprite.passport.png?v155e7e2f638);background-position:-32px -81px}.login-page .caps-lock{position:absolute;color:#666;border:#ffe57d;background:#fff6d2;white-space:nowrap;top:8px;left:278px;padding:0 20px;height:27px;line-height:30px}.register-page{font-size:14px;color:#b9b9b9}.register-page li{margin-bottom:25px;width:270px;position:relative}.register-page li input,.register-page li select{outline:none}.register-page li .input{height:43px;line-height:43px;font-size:16px;width:268px;border:1px solid #dbdbdb;text-indent:10px;color:#9a9a9a;padding:0}.register-page li .input.error{border:1px solid red}.register-page li .input.phone-num{width:209px;display:block;float:left;position:absolute;top:0;right:0}.register-page li .input.captcha,.register-page li .input.msg-captcha{width:160px;float:left}.register-page li .input.agree-terms{vertical-align:middle}.register-page li .send-captcha{top:0;background:#ff1901;position:absolute;width:100px;right:0;font-size:12px;text-indent:0;letter-spacing:0}.register-page li .send-captcha.disable{background:#555}.register-page li .link{text-decoration:underline;color:#ff1901}.register-page li .btn{height:45px;line-height:45px;color:#fff;border:none;padding:0;font-family:黑体,Regular;text-align:center}.register-page li .region{height:30px;padding:4px 0;width:132px;border-color:#c1c1c1;color:#9a9a9a;font-size:16px;font-family:黑体,Regular}.register-page li .country-code{width:58px;height:43px;line-height:43px;text-align:center;white-space:nowrap;border:1px solid #dbdbdb;border-right:0;font-size:16px;display:block;float:left}.register-page li .captcha-img{height:37px;width:90px;border:0;vertical-align:middle;outline:none;margin-left:10px;margin-top:4px;float:left}.register-page li .change-captcha{margin-left:10px;cursor:pointer;float:left;height:43px;line-height:43px}.register-page li .pwd-intensity-container{width:270px;text-align:right;margin-top:5px;height:auto;overflow:hidden}.register-page li .pwd-intensity-container .pwd-intensity{height:15px;font-size:12px;background-color:#e8e8e8;padding:1px 10px;text-align:center}.register-page li .pwd-intensity-container.red{color:red}.register-page li .pwd-intensity-container.red .color{background:red;color:#fff}.register-page li .pwd-intensity-container.yellow .color{background:#ff0;color:#fff}.register-page li .pwd-intensity-container.green .color{background:#3ee392;color:#fff}.register-page li .register-btn{width:270px;font-size:20px;font-weight:700;background:#ff1901}.register-page li .register-btn.disable{background:#555}.register-page li.w330{width:330px}.register-page li.items-container,.register-page li.quick-login-container{font-size:13px;text-align:right;white-space:nowrap}.register-page li.quick-login-container{width:270px}.register-page li.skip-user-info{font-size:18px;text-align:center}.register-page li.skip-user-info a{color:#ff1901;text-decoration:underline}.register-page .msg-tip{position:absolute;top:17px;left:285px;white-space:nowrap}.register-page .msg-tip:before{content:'';display:inline-block;width:12px;height:12px;margin-right:5px;background-image:url(../assets/img/sprite.passport.png?v155e7e2f638);background-position:-63px -129px}.register-page .err-tip{z-index:11;position:absolute;height:30px;line-height:30px;color:red;background-color:#ffebeb;border:1px solid #ffbdbe;padding:0 10px}.register-page .err-tip b{display:block;position:absolute;top:30px;left:20px;background-image:url(../assets/img/sprite.passport.png?v155e7e2f638);background-position:-111px -113px;width:17px;height:9px}.register-page .success-box{font-size:14px;color:#b9b9b9;margin-top:130px}.register-page .success-box .success-text{line-height:29px;padding-left:46px;font-size:16px;color:#000}.register-page .success-box .success-text span{font-size:22px}.register-page .success-box .success-text #count-down{color:#ff1901}.register-page .success-box .success-text:before{content:'';display:inline-block;background-image:url(../assets/img/sprite.passport.png?v155e7e2f638);background-position:-32px -113px;width:29px;height:29px;margin-right:5px;position:relative;top:6px}.register-page .success-box .success-btn{display:block;margin:46px auto 0;width:270px;height:45px;line-height:45px;background:#ff1901;text-align:center;color:#fff;letter-spacing:2px}.back-page{font-size:14px}.back-page .content{margin:175px 0 0!important}.back-page .back-header{position:relative;width:268px;line-height:40px;margin-bottom:5px}.back-page .back-header .country-code{float:right;cursor:pointer;color:#b9b9b9}.back-page .back-header .country-code .iconfont{font-size:14px;vertical-align:middle}.back-page .title{float:left;margin:0}.back-page .title,.back-page .title2{font-size:22px;line-height:40px;color:#000;font-weight:400}.back-page .title2{margin:0 0 5px}.back-page .err-tip.captcha-err{top:10px;left:326px}.back-page .country-code-list{display:none;position:absolute;padding:0 10px;color:#000;background-color:#fff;border:1px solid #000;margin-top:5px;cursor:pointer;z-index:9;top:30px;right:0;border-radius:5px}.back-page .country-code-list li{height:20px;line-height:20px}.back-page .input-container-li{position:relative;margin-bottom:22px}.back-page .input-container-li .btn{width:270px;height:45px;line-height:45px;cursor:pointer;font-size:20px;border:none;letter-spacing:0}.back-page .input-container-li .captcha{width:160px}.back-page .input-container-li .captcha-img{height:37px;width:90px;border:0;margin-left:10px;vertical-align:middle;outline:none;cursor:pointer}.back-page .input-container-li .change-captcha{color:#ff1901;font-size:12px;text-decoration:underline;margin-left:10px;cursor:pointer}.send-email-page{font-size:14px}.send-email-page .content{margin:216px 0 0!important}.send-email-page .send-tips{line-height:28px;color:#4c4c4c;text-align:center;font-size:15px}.send-email-page .send-tips .iconfont{margin:0 8px 0 0}.send-email-page .no-find{margin:10px 0 0;line-height:20px;color:#a5a4a4;text-align:center}.send-email-page .to-my-email a{display:block;margin:53px auto 0;width:270px;height:45px;line-height:45px;background:#ff1901;text-align:center;color:#fff;letter-spacing:2px}.verification-page .content li{position:relative;margin-bottom:43px}.verification-page .content .btn{display:inline-block;border:none}.verification-page .content .head-title{font-size:24px;color:#000}.verification-page .content .pn-label{color:#828282;font-size:16px}.verification-page .content .country-code{margin:0 10px}.verification-page .content .country-code,.verification-page .content .phone-num{color:#000;font-size:16px}.verification-page .content .captcha{width:160px!important}.verification-page .content .send-captcha{width:133px;font-size:12px;position:relative;top:-1px;letter-spacing:0}.verification-page .content .err-tip{left:310px}.verification-page .content .captcha-tips{position:absolute;top:50px;color:#a5a4a4}.verification-page .content .captcha-tips .iconfont{color:#0f9acd;font-size:14px;margin:0 8px 0 0;vertical-align:12%}.reset-success-page .content{margin:255px 0 0!important}.reset-success-page .success-text{line-height:35px}.reset-success-page .success-text .iconfont{font-size:30px;color:#ee3f14}.reset-success-page .success-text span{font-size:24px;margin:0 18px}.reset-success-page .success-text #count-down{color:#ee3f14}.reset-success-page .success-btn{display:block;margin:43px auto 0;width:269px;line-height:269px;height:45px;line-height:45px;font-size:14px;color:#fff;text-align:center;background-color:#ff1901}.welcome-page{text-align:center;color:#7f7f7f}.welcome-page .content{padding-top:82px}.welcome-page .wel-title{font-size:30px;margin-bottom:30px}.welcome-page .wel-title em{font-style:normal;color:#ff1901}.welcome-page .wel-sub-title{font-size:16px;margin-bottom:60px}.welcome-page .link{display:block}.welcome-page .link span{color:#7f7f7f}.welcome-page .link-img{height:91px;width:91px;background-size:100% 100%;margin-bottom:10px}.welcome-page .go-shopping{float:left;padding-left:100px}.welcome-page .go-shopping div{background-image:url(../assets/img/passport/go-shopping.png?v155e7e2c758)}.welcome-page .complete-info{float:right;padding-right:100px}.welcome-page .complete-info div{background-image:url(../assets/img/passport/edit-info.png?v155e7e2c758)}.yohobindbtn{display:block;width:210px;height:45px;line-height:45px;background-color:#f02200;color:#fff;font-size:16px;text-align:center}.hide{display:none}.novisiable{visibility:hidden}.actlevel{background-color:#f02200!important;color:#fff!important}.mask{position:fixed;top:0;right:0;bottom:0;left:0;z-index:15;overflow:hidden;-webkit-overflow-scrolling:touch;outline:0}.bindwrapper{margin:0 auto;width:980px;min-height:450px;padding-top:122px}.welcomeword{width:100%;text-align:center;font-size:22px;line-height:22px;color:#545454;margin-bottom:15px}.welcomeword .yoho{color:#e12000}.safeword{width:100%;text-align:center;font-size:16px;line-height:16px;color:#545454;margin-bottom:63px}.yohobindrow{width:485px;margin:0 auto 22px;height:40px}.yohobindrow .name{float:left;text-align:right;margin-right:14px;width:96px}.yohobindrow .areatag{height:30px;line-height:30px}.yohobindrow .phonetag,.yohobindrow .setpwdtag{height:47px;line-height:47px}.yohobindrow .content{float:left;text-align:left;margin-top:0;padding-left:0}.yohobindrow .errinfo{color:#f02200;line-height:49px;margin-left:5px}.yohobindrow:after{display:block;content:'';clear:both}.sendnotify{width:260px;text-align:left;margin:0 auto 18px}.validaterow{margin:0 auto 22px;padding-left:248px}.validaterow .name{float:left;text-align:right;margin-right:14px;width:96px}.validaterow .areatag{height:30px;line-height:30px}.validaterow .phonetag{height:47px;line-height:47px}.validaterow .content{float:left;text-align:left}.validaterow .content .err-tip{left:430px}.validaterow .validatewrapper{float:left;height:45px;width:133px;text-align:center;line-height:45px;background-color:#d8d8d8;color:#000;font-size:13px;margin-left:18px}.validaterow .validatewrapper .yohobindbtn{width:133px;font-size:13px}.validaterow:after{display:block;content:'';clear:both}.validatepicrow{overflow:hidden;margin:0 auto 22px;padding-left:250px}.validatepicrow .name{float:left;text-align:right;margin-right:14px;width:96px}.validatepicrow .areatag{height:30px;line-height:30px}.validatepicrow .phonetag{height:47px;line-height:47px}.validatepicrow .content{float:left;text-align:left}.validatepicrow .validatewrapper{float:left;height:45px;text-align:center;line-height:45px;color:#000;font-size:13px;margin-left:18px}.validatepicrow .validatewrapper .yohobindbtn{width:133px;font-size:13px}.validatepicrow .change-captcha{cursor:pointer;color:#f02200;text-decoration:underline}.validatepicrow:after{display:block;content:'';clear:both}.setpwdwrapper{margin-bottom:10px;height:45px}.safelevel{width:291px;margin:0 auto;text-align:right}.safelevel,.safelevel span{height:15px;font-size:10px;color:#000}.safelevel span{width:28px;line-height:15px;background-color:#e5e5e5;margin-right:4px;padding:1px 8px}.green .color{background-color:#0f0;color:#fff}.yellow .color{background-color:#ff0;color:#fff}.red .color{background-color:red;color:#fff}.yohoselectarea{position:relative;box-sizing:border-box;width:131px;height:33px}.yohoselectarea .optionshow{width:100%;height:100%;padding-left:16px;border:1px solid #d9d9d9}.yohoselectarea .optionshow .areaname{display:block;float:left;width:110px;height:100%;line-height:33px;font-size:13px;color:#000}.yohoselectarea .optionshow .righttag{display:block;float:left;width:21px;height:100%;line-height:33px;background-color:#d8d8d8;background-image:url(../assets/img/passport/arrowbottom.png?v155e7e2c758);background-repeat:no-repeat;background-position:50%}.yohoselectarea .optionslist{background-color:#fff;position:absolute;top:35px;left:0;width:149px;z-index:2}.yohoselectarea .optionslist .optionitem{height:33px;line-height:33px;padding-left:16px;font-size:13px}.yohoselectarea .optionslist .optionitem:hover{background-color:#dfdfdf}.yohophonewrapper{width:271px;height:47px;border:1px solid #d9d9d9;position:relative}.yohophonewrapper .areanum{float:left;height:100%;width:63px;line-height:47px;text-align:center;color:#000;background-color:#d8d8d8}.yohophonewrapper .phonenum{outline:none;box-sizing:border-box;float:left;height:45px;width:205px;line-height:38px;padding-left:8px;border:none;color:#000}.yohophonewrapper .pwdcontent,.yohophonewrapper .validatenum{width:100%}.protoctolwrapper{width:350px;margin:38px auto 0;padding-left:85px;overflow:hidden}.protoctolwrapper .choosewrapper{float:left;width:13px;height:13px;background-color:#4c4c4c;background-image:url(../assets/img/passport/choosed.png?v155e7e2c758);background-position:50%;background-repeat:no-repeat;margin-right:14px}.protoctolwrapper .choosetag{width:110%;height:110%;display:block;opacity:0;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";margin:0}.protoctolwrapper span{float:left;color:#666;font-size:13px;line-height:14px}.protoctolwrapper .protoctol{color:#f02200;text-decoration:underline}.protoctolwrapper:after{display:block;content:'';clear:both}.confirmwrapper{overflow:hidden;margin-top:47px!important}.btnwrapper{width:350px;margin:20px auto 0;padding-left:85px}.thirdloginwrapper{margin:0 auto;width:1150px;min-height:450px;padding-top:160px}.thirdloginwrapper .safeword{margin-bottom:30px}.thirdloginwrapper .left{box-sizing:border-box;float:left;width:450px;height:318px;border-right:1px solid #e5e5e5}.thirdloginwrapper .right{box-sizing:border-box;float:right;width:696px;padding-top:64px;height:318px}.thirdloginwrapper .completeprofile,.thirdloginwrapper .gobuy{float:left;display:inline-block;width:94px;height:94px;line-height:94px;text-align:center;border-radius:50%;background-color:#f02200;color:#fff}.thirdloginwrapper .gobuy{margin-left:228px;margin-right:80px}.bindsuccesswrapper{margin:0 auto;width:1150px;min-height:450px;padding-top:160px}.bindsuccesswrapper .successwrapper{width:320px;height:29px;margin:0 auto 16px}.bindsuccesswrapper .successwrapper .successtag{display:inline-block;margin-right:28px;float:left;width:29px;height:29px;background-image:url(../assets/img/passport/bindsuccess.png?v155e7e2c758);background-repeat:no-repeat}.bindsuccesswrapper .successwrapper .congratulation{display:inline-block;height:29px;line-height:29px;font-size:22px}.bindsuccesswrapper .info{text-align:center;font-size:16px;margin-bottom:48px}.bindsuccesswrapper .gobuynow{margin:0 auto}.bindconfrimwrapper{width:900px;height:439px;margin:-217px auto;background-color:#fff;box-sizing:border-box;padding-top:37px}.bindconfrimwrapper .topwrapper{width:281px;height:90px;margin:0 auto 32px}.bindconfrimwrapper .topwrapper .userphoto{width:90px;height:90px;vertical-align:middle;border-radius:50%;margin-right:22px}.bindconfrimwrapper .topwrapper .username{vertical-align:middle;display:inline-block;width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:700;color:#545454}.bindconfrimwrapper .usertaginfo{text-align:center;font-size:18px;font-weight:700;color:#545454;margin-bottom:15px}.bindconfrimwrapper .usertagremind{text-align:center;font-size:16px;color:#888;margin-bottom:47px}.bindconfrimwrapper .otherphone{margin:0 auto 64px}.bindconfrimwrapper .logindirectly{display:block;text-align:center;text-decoration:underline;color:#f02200}.yohobindbtn[disabled]{background-color:#e5e5e5;cursor:not-allowed}.gobindwrapper{width:100%;height:45px;margin-bottom:70px}.gobindwrapper .myphone{float:left;margin-left:20px;width:193px}.gobindwrapper .logindirectly{display:inline-block}.gobindwrapper .validaterow{overflow:hidden;margin:0 auto 22px;padding-left:222px;float:left}.gobindwrapper .validaterow .name{float:left;text-align:right;margin-right:14px;width:96px}.gobindwrapper .validaterow .areatag{height:30px;line-height:30px}.gobindwrapper .validaterow .phonetag{height:47px;line-height:47px}.gobindwrapper .validaterow .content{float:left;text-align:left}.gobindwrapper .validaterow .content .validatacode{outline:none;box-sizing:border-box;float:left;height:45px;width:113px;line-height:38px;padding-left:8px;border:1px solid #d9d9d9;color:#000}.gobindwrapper .validaterow .validatewrapper{float:left;height:45px;width:133px;text-align:center;line-height:45px;background-color:#d8d8d8;color:#000;font-size:13px;margin-left:18px}.gobindwrapper .validaterow .validatewrapper .yohobindbtn{width:133px;font-size:13px}.gobindwrapper:after{display:block;content:'';clear:both}.gobindbottomwrapper{width:100%;padding-left:341px}.gobindbottomwrapper .logindirectly{display:inline-block;float:left;margin-right:36px;text-decoration:underline;color:#f02200}.pwd-tips{position:absolute;z-index:11;top:-10px;left:285px;width:160px!important;height:72px;padding-top:7px;font-size:12px;background-image:url(../assets/img/sprite.passport.png?v155e7e2f638);background-position:0 0;background-color:#fff}.pwd-tips>div{position:relative;height:22px;line-height:22px;margin-left:15px;padding-left:15px;font-size:12px;color:#b9b9b9}.pwd-tips>div i{position:absolute;width:14px;height:14px;left:-2px;top:50%;margin:-7px 0 0;background-image:url(../assets/img/sprite.passport.png?v155e7e2f638);background-position:-63px -113px}.pwd-tips>div.no{color:red}.pwd-tips>div.no i{background-position:-95px -113px}.pwd-tips>div.no i,.pwd-tips>div.yes i{background-image:url(../assets/img/sprite.passport.png?v155e7e2f638)}.pwd-tips>div.yes i{background-position:-79px -113px}.tip-panel{position:absolute;display:none;width:248px;padding:0 10px;z-index:9;background-color:#161616;border:1px solid hsla(0,0%,100%,.7);margin-top:5px;cursor:pointer;border-radius:5px}.tip-panel li{height:20px;line-height:20px;color:#b9b9b9}.err-tip{position:absolute;font-size:14px;white-space:nowrap;top:8px;left:285px;padding:6px 0;color:red}.err-tip i{display:block;float:left;height:14px;width:14px;background-image:url(../assets/img/sprite.passport.png?v155e7e2f638);background-position:-95px -113px;margin-right:5px}.err-tip a{text-decoration:underline;color:red}.backdrop{position:fixed;background:#000;width:100%;height:100%;left:0;top:0;bottom:0;right:0;opacity:.5;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)"}.err-info{display:none;z-index:11;position:absolute;top:-41px;left:0;height:30px;line-height:30px;color:red;background-color:#ffebeb;border:1px solid #ffbdbe;padding:0 10px}.err-info b{background:url(../assets/img/passport/angle.png?v155e7e2c758);position:absolute;height:9px;width:17px;top:30px;left:10px}.third-relate-page{min-height:600px}.third-relate-page .relate-main{padding-top:100px}.third-relate-page .user-wrapper{width:280px;margin:0 auto}.third-relate-page .user-wrapper .user-thumb{width:94px;height:94px;border-radius:50%;display:inline-block;overflow:hidden}.third-relate-page .user-wrapper .user-thumb img{width:100%;height:100%}.third-relate-page .user-wrapper label{width:190px;line-height:94px;margin-left:20px;font-size:18px;font-weight:700;color:#545454;word-break:keep-all;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;position:absolute}.third-relate-page .remind-info{width:490px;min-height:54px;padding-left:50px;margin:35px auto;background:url(../assets/img/passport/warn.png?v155e7e2c758) no-repeat;text-align:center}.third-relate-page .remind-info h3{font-size:18px;font-weight:700;color:#545454;margin-bottom:12px}.third-relate-page .remind-info a{color:#f22c26;text-decoration:underline;cursor:pointer}.third-relate-page .remind-info p{font-size:16px;color:#888}.third-relate-page .option-btn{text-align:center}.third-relate-page .option-btn a{width:192px;height:46px;color:#fff;font-size:18px;line-height:46px;display:inline-block;background-color:#f12200;cursor:pointer}.third-relate-page .option-btn a:first-child{margin-right:14px}.third-relate-page .remind-tips{width:390px;margin:0 auto;font-size:14px;color:#888;text-align:center;margin-top:30px;text-decoration:underline;display:block}.third-relate-page .remind-tips a{color:#f12200;cursor:pointer}.third-relate-page .remind-tips>*{text-decoration:underline}.third-relate-page .code-validate{padding-top:140px}.third-relate-page .action-link{width:440px;margin:0 auto;padding-left:180px;color:#545454;line-height:46px}.third-relate-page .action-link .code-name{margin-left:-100px;position:absolute}.third-relate-page .action-link input{width:260px;height:40px;padding-left:10px;font-size:16px;margin-right:14px}.third-relate-page .action-link label{width:140px;height:46px;font-size:14px;color:#fff;background-color:#f12200;display:inline-block;text-align:center;cursor:pointer}.third-relate-page .action-link .count-down{color:#979797;background-color:#d8d8d8;display:none}.third-relate-page .action-link .code-error{position:absolute;width:200px;display:inline-block;color:red;padding-left:10px}.third-relate-page .action-link .code-error i{display:inline-block;height:14px;width:14px;background-image:url(../assets/img/sprite.passport.png?v155e7e2f638);background-position:-95px -113px;vertical-align:middle;margin-right:5px;margin-top:-2px}.third-relate-page .waiting .get-code{display:none}.third-relate-page .waiting .count-down{display:inline-block}.third-relate-page .relate-btn{width:212px;height:46px;font-family:arial,Microsoft YaHei;color:#fff;font-size:18px;background-color:#f12200;border:0;outline:none;margin:20px 0}.guang-page{width:1150px;margin:0 auto}.guang-page .left-side{float:left;width:830px}.guang-page .right-side{float:left;width:290px;margin-left:30px}.guang-page .bg-img.blink,.guang-page img.blink{opacity:.8;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=80)"}.guang-page .ex-reco-title{color:#333;line-height:24px;padding-bottom:10px;border-bottom:1px solid #ccc;font-size:20px;font-weight:700}.guang-page .ex-reco-list{margin-top:14px}.guang-page .ex-reco-item{box-sizing:border-box;height:60px;margin-bottom:14px}.guang-page .ex-reco-item:last-child{margin-bottom:0}.guang-page .ex-reco-img{display:block;float:left;width:90px;height:60px;margin-right:5px}.guang-page .ex-reco-img span{display:block;height:100%;width:100%;background-size:cover;background-position:50%}.guang-page .ex-reco-img span img{width:100%;height:100%}.guang-page .ex-reco-context{float:left;max-width:195px;height:40px;line-height:20px;font-size:13px;color:#666;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.guang-page .ex-reco-context:hover{color:#c30}.guang-page .hot{margin-top:40px}.guang-page .hot .hot-title{color:#333;line-height:24px;padding-bottom:10px;border-bottom:1px solid #ccc;font-weight:700;font-size:20px}.guang-page .hot .hot-tag-list{margin-top:14px;max-height:150px;overflow:hidden}.guang-page .hot .hot-tag{display:inline-block;float:left;padding:5px;font-size:12px;background-color:#ccc;border:none;margin-right:10px;margin-bottom:10px;color:#fff;font-weight:700}.guang-page .hot .hot-tag:hover{background-color:#333}.guang-page .ads{margin-top:30px}.guang-page .ads .ad{display:block;box-sizing:border-box;margin-bottom:24px;width:290px}.guang-page .ads .ad img{display:block;width:100%}.guang-page .msg-content{padding:24px 0;border-bottom:1px solid #ccc;position:relative}.guang-page .msg-content .content{height:80px;line-height:24px}.guang-page .msg-content .iconfont{color:#ccc}.guang-page .msg-content .msg-img{position:relative;float:left;margin-right:26px}.guang-page .msg-content .msg-img img{display:block;width:360px;height:240px}.guang-page .msg-content .msg-img img.square{height:360px}.guang-page .msg-content .classification{position:absolute;background-color:#000;color:#fff;text-align:center;width:80px;height:32px;line-height:32px;font-size:13px;opacity:.9;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=90)";z-index:8}.guang-page .msg-content .reco{position:absolute;top:0;left:66px;height:32px;width:32px;background:url(../assets/img/guang/msg-reco.png?v155e7e2c370);background-size:100% 100%;z-index:9}.guang-page .msg-content .msg-info{float:left;width:440px}.guang-page .msg-content .msg-title{display:block;font-size:22px;color:#333;line-height:30px;max-height:64px}.guang-page .msg-content .msg-title:hover{color:#c30}.guang-page .msg-content .content{font-size:14px;color:#666}.guang-page .msg-content .msg-app{line-height:34px;color:#999;font-size:13px}.guang-page .msg-content .author{display:block;float:left;color:#333;margin-right:22px;max-width:180px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.guang-page .msg-content .author:hover{color:#c30}.guang-page .msg-content .page-view,.guang-page .msg-content .publish-time{color:#999}.guang-page .msg-content .publish-time{margin-right:30px}.guang-page .msg-content .like-comment,.guang-page .msg-content .tags{position:absolute;bottom:24px;font-size:12px}.guang-page .msg-content .like-comment .like,.guang-page .msg-content .tags .like{margin-right:10px}.guang-page .msg-content .like-comment .like:hover *,.guang-page .msg-content .tags .like:hover *{color:#000}.guang-page .msg-content .like-comment .like-icon,.guang-page .msg-content .tags .like-icon{cursor:pointer}.guang-page .msg-content .like-comment .like-icon.liked,.guang-page .msg-content .tags .like-icon.liked{color:#000}.guang-page .msg-content .like-comment.tags,.guang-page .msg-content .tags.tags{left:386px;max-width:350px;height:20px;overflow:hidden}.guang-page .msg-content .like-comment.like-comment,.guang-page .msg-content .tags.like-comment{right:0;color:#999}.guang-page .msg-content .msg-tag{display:inline-block;text-align:center;height:20px;line-height:20px;padding:0 10px;margin-right:10px;background-color:#ccc;color:#fff}.guang-page .msg-content .msg-tag:last-child{margin-right:0}.guang-page .msg-content .msg-tag:hover{background-color:#333}.guang-page .pager{font-size:12px}.guang-page .pager a{height:24px;padding:0 9px;line-height:24px;display:inline-block;text-align:center;margin-right:8px;color:#222}.guang-page .pager a.cur{background-color:#222;color:#fff}.guang-index-page .msg-nav{border-bottom:1px solid #000;margin-top:24px;height:30px}.guang-index-page .msg-nav li{float:left;height:30px;line-height:30px;text-align:center;font-size:18px;padding:0 28px}.guang-index-page .msg-nav li a{display:block;height:100%;width:100%;color:#333}.guang-index-page .msg-nav li.actived{background-color:#111}.guang-index-page .msg-nav li.actived a{color:#fff}.guang-index-page .msg-pager{float:right;margin:20px 0}.guang-detail-page{width:1150px;margin:0 auto 95px}.guang-detail-page b{font-weight:700}.guang-detail-page i{font-style:italic}.guang-detail-page .block{margin:15px 0}.guang-detail-page .excellent-recommendation-title{margin-top:4px}.guang-detail-page .block-header{position:relative;border-bottom:1px solid #c1c1c1;font-size:18px;height:38px;line-height:38px;text-align:center;margin-bottom:24px;color:#333}.guang-detail-page .block-header .more-reco{position:absolute;right:0;color:#000;font-size:14px;text-decoration:none}.guang-detail-page .related-brand .brands{width:852px}.guang-detail-page .related-reco .recos{width:850px}.guang-detail-page .detail-title{font-size:28px;line-height:64px;border-bottom:1px dotted #c1c1c1;word-wrap:break-word}.guang-detail-page .article-author{float:left;line-height:64px}.guang-detail-page .article-author .author-avatar{clear:both;width:38px;height:64px}.guang-detail-page .article-author .author-avatar img{width:38px;height:38px;border-radius:50%;vertical-align:middle}.guang-detail-page .author-info{float:left;margin-left:10px;font-size:14px;max-width:447px}.guang-detail-page .author-info .author-name{display:block;height:64px;line-height:64px;cursor:pointer;color:#000}.guang-detail-page .author-info .author-name:hover{color:#c30}.guang-detail-page .author-info .author-introduce{color:#999}.guang-detail-page .article-status{float:right;height:64px;line-height:64px;color:#999;font-size:13px}.guang-detail-page .article-status .article-click{margin:0 25px}.guang-detail-page .article-status .article-comment{color:#c30;cursor:pointer}.guang-detail-page .article-main img{display:block;max-width:100%;margin:0 auto}.guang-detail-page .article-main .article-text{margin:2px 0 20px;line-height:28px;font-size:14px}.guang-detail-page .article-main .article-small-pic{text-align:center;font-size:0}.guang-detail-page .article-main .article-small-pic img{display:inline-block;max-width:412px}.guang-detail-page .article-main .article-small-pic img:first-child{margin:0 6px 0 0}.guang-detail-page .article-main .block:first-child{margin-top:10px}.guang-detail-page .user-handle{margin:30px 0 0;text-align:center}.guang-detail-page .user-handle ul{display:inline-block}.guang-detail-page .user-handle ul li{float:left;margin:0 15px;cursor:pointer}.guang-detail-page .user-handle ul li a{position:relative;display:block;padding:0 10px;height:36px;line-height:36px;color:#535353;font-size:0;background:#efefef;text-align:left}.guang-detail-page .user-handle ul li a i,.guang-detail-page .user-handle ul li a span{display:inline-block;font-style:normal;font-size:14px}.guang-detail-page .user-handle ul li a i{margin:0 5px 0 0;font-size:18px;opacity:.5;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)"}.guang-detail-page .user-handle ul li a .cancel-collect{display:none}.guang-detail-page .user-handle ul .like-status.hover i,.guang-detail-page .user-handle ul .like-status.liked i{opacity:1;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)"}.guang-detail-page .user-handle ul .like-statis.hover .like-num{color:#000}.guang-detail-page .user-handle ul .sort-collect a i{width:21px}.guang-detail-page .user-handle ul .sort-collect.collected a i{opacity:1;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)"}.guang-detail-page .user-handle ul .sort-collect.collected a span{display:none}.guang-detail-page .user-handle ul .sort-collect.collected a .cancel-collect{display:inline}.guang-detail-page .user-handle ul .sort-collect.hover i{opacity:1;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)"}.guang-detail-page .user-handle ul .sort-collect.hover span{color:#000}.guang-detail-page .article-bottom-info{margin:44px 0 0;padding:0 0 10px;border-bottom:1px dotted #c1c1c1}.guang-detail-page .article-tag{float:left;width:588px}.guang-detail-page .article-tag .tag-icon{float:left;margin:0 12px 0 0;font-size:20px;font-style:normal}.guang-detail-page .article-tag ul{float:left;max-width:555px}.guang-detail-page .article-tag ul li{float:left;margin:0 10px 10px 0}.guang-detail-page .article-tag ul li a{display:block;padding:0 15px;height:20px;line-height:20px;font-size:12px;color:#fff;font-weight:700;background:#c1c1c1}.guang-detail-page .article-tag ul li:hover a{background:#333}.guang-detail-page .article-tag ul li:first-child{margin-left:0}.guang-detail-page .article-share{float:right}.guang-detail-page .article-share .title{font-size:12px}.guang-detail-page .detail-related-posts{margin:14px 0 0}.guang-detail-page .detail-related-posts li{float:left;width:264px;margin-left:19px}.guang-detail-page .detail-related-posts li a{display:block}.guang-detail-page .detail-related-posts li .bg-img{display:block;width:100%;height:173px;line-height:173px;text-align:center;font-size:0}.guang-detail-page .detail-related-posts li .bg-img img{max-width:100%;max-height:100%;vertical-align:middle}.guang-detail-page .detail-related-posts li .post-title{margin:8px 0 0}.guang-detail-page .detail-related-posts li .post-title h2{line-height:16px;font-size:14px;color:#000;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.guang-detail-page .detail-related-posts li .post-title:hover h2{color:#c30!important}.guang-detail-page .detail-related-posts li:first-child{margin-left:0}.guang-detail-page .comment-area{margin:58px 0 0}.guang-detail-page .comment-area .comment-publish{height:48px}.guang-detail-page .comment-textarea textarea{display:block;width:812px;height:86px;padding:12px;resize:none;outline:none;font-size:14px;line-height:18px;color:#535353;font-family:arial,helvetica,微软雅黑;border:1px solid #e7e7e7}.guang-detail-page .word-count-tip{display:inline-block;height:48px;line-height:48px;font-size:12px;color:#c8c8c8}.guang-detail-page .word-count-tip .exceed-count{color:red}.guang-detail-page .publish-btn{margin:10px 0 0;float:right;width:90px;height:33px;line-height:33px;text-align:center;color:#fff;font-size:14px;background:#cb3a3e;cursor:pointer}.guang-detail-page .publish-btn:hover{background:#c03234}.guang-detail-page .publish-btn.disable{background-color:#e79c9e}.guang-detail-page .comments-wrap h4{position:relative;line-height:32px;border-bottom:1px solid #e7e7e7}.guang-detail-page .comments-wrap h4 .comment-num{margin-right:5px;color:#c11e00}.guang-detail-page .comments-wrap h4 i{position:absolute;width:13px;height:7px;left:30px;bottom:-7px;background:url(../assets/img/guang/comment-icon.png?v155e7e2c370) no-repeat}.guang-detail-page .comments-wrap .comment-pager{float:right;margin:20px 0}.guang-detail-page .comments-empty{display:none;color:#ccc;margin:20px 0;font-size:12px;line-height:12px;text-align:center}.guang-detail-page .commnets-resultwrapper{display:none}.guang-detail-page .comments-list li{margin:14px 0 0;padding:0 0 15px;border-bottom:1px dotted #e7e7e7}.guang-detail-page .comments-list li .avatar{float:left;width:40px;height:40px;overflow:hidden}.guang-detail-page .comments-list li .avatar img{display:block;width:100%;height:100%;border-radius:50%}.guang-detail-page .comments-list li .comment-info{float:left;width:774px;margin:0 0 0 16px}.guang-detail-page .comments-list li .comment-info .comment-user-name{color:#c11e00;font-size:15px;line-height:15px}.guang-detail-page .comments-list li .comment-info .comment-content{margin-top:10px;line-height:16px;font-size:12px;word-wrap:break-word}.guang-detail-page .comments-list li .comment-info .comment-time{margin:10px 0 0;color:#c8c8c8;font-size:12px;line-height:12px;clear:both}.guang-detail-page .brand{margin-right:22px;margin-bottom:20px;float:left}.guang-detail-page .brand .thumb{display:table-cell;border:1px solid #f5f5f5;height:120px;width:120px;box-sizing:border-box;text-align:center;vertical-align:middle}.guang-detail-page .brand .thumb img{display:block;max-width:120px;max-height:120px;margin:0 auto}.guang-detail-page .brand .brand-name{width:120px;font-size:13px;line-height:20px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;text-align:center;color:#333}.guang-detail-page .few-tag,.guang-detail-page .tag-container{display:none}.guang-detail-page .good-info{width:192px;margin-right:20px;margin-bottom:12px}.guang-detail-page .good-info .good-detail-img{height:auto}.guang-detail-page .good-info .good-detail-img .good-thumb,.guang-detail-page .good-info .good-detail-img img.lazy{height:257px}.guang-detail-page .good-info .good-detail-text>a{margin-top:0;line-height:36px}.guang-detail-page .good-info .good-detail-text>.price{margin-top:0}.guang-editor-page .tag-header,.guang-list-page .tag-header{height:45px;line-height:45px;color:#333;font-size:14px;font-weight:700;border-bottom:1px solid #ccc}.guang-editor-page .tag-header>span,.guang-list-page .tag-header>span{font-size:20px}.guang-editor-page .msg-pager,.guang-list-page .msg-pager{float:right;margin:20px 0}.guang-editor-page .right-side{margin-top:20px}.guang-list-page .right-side{margin-top:11px}.guang-editor-page .editor-info{padding:10px;background:#fafafa}.guang-editor-page .editor-info .author-avatar{float:left;width:80px;height:100%}.guang-editor-page .editor-info .author-avatar img{width:80px;height:80px;vertical-align:middle;border-radius:50%}.guang-editor-page .editor-info .author-info{float:left;margin:0 0 0 10px;max-width:1060px}.guang-editor-page .editor-info .author-name{margin-top:11px;font-size:20px;height:30px!important;line-height:30px!important}.guang-editor-page .editor-info .author-introduce{line-height:24px;font-size:14px;color:#999}.guang-editor-page .editor-info .intro-content{margin:15px 0 0;line-height:18px;font-size:14px;color:#999}.home-page{width:1150px;margin:10px auto 0}.home-page .slide-container{position:absolute;left:0;right:0;height:450px}.home-page .slide-thumb-container{height:510px}.home-page .slide-wrapper{position:relative;height:450px;overflow:hidden}.home-page .slide-wrapper ul{position:relative;height:100%}.home-page .slide-wrapper li{display:none;position:absolute;top:0;right:0;width:100%;height:100%}.home-page .slide-wrapper li a{display:block;height:100%;width:1150px;margin:0 auto}.home-page .slide-wrapper li img{width:100%;height:100%}.home-page .slide-wrapper:hover .slide-switch.show,.home-page .slide-wrapper li:first-child{display:block}.home-page .slide-container-placeholder{height:450px;width:100%}.home-page .slide-thumb-container-placeholder{height:510px}.home-page .slide-switch{display:block}.home-page .slide-switch a{position:absolute;top:50%;margin:-30px 0 0;width:60px;height:60px;line-height:56px;text-align:center;z-index:2;background:#fff;opacity:.55;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=55)"}.home-page .slide-switch a .iconfont{font-size:32px;color:#59585a}.home-page .slide-switch a.prev{left:50%;margin-left:-575px}.home-page .slide-switch a.next{right:50%;margin-right:-575px}.home-page .slide-switch a:hover{opacity:.9;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=90)"}.home-page .thumb-pagination{width:1148px;margin:6px auto 0;padding-left:2px}.home-page .thumb-pagination li{position:relative;float:left;margin-left:6px;width:138px;height:54px}.home-page .thumb-pagination li a{position:absolute;left:0;right:0;bottom:0;top:0;background:#000;opacity:.3;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=30)"}.home-page .thumb-pagination li img{width:100%;height:100%}.home-page .thumb-pagination li:first-child{margin:0}.home-page .thumb-pagination li.focus a{opacity:0;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"}.home-page .slide-pagination{font-size:0}.home-page .slide-pagination .slide-shade{position:absolute;left:0;right:0;top:0;bottom:0;background:#000;opacity:.3;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";border-radius:13px}.home-page .slide-pagination span{position:relative;display:inline-block;margin:0 7px;width:12px;height:12px;background:#fff;cursor:pointer;opacity:.6;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=60)";border-radius:6px;z-index:2}.home-page .slide-pagination span.focus{opacity:1;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=100)"}.home-page .debris-slider{height:510px;width:100%}.home-page .debris-slider .col{float:left}.home-page .debris-slider .col a{display:block}.home-page .debris-slider .left-col a,.home-page .debris-slider .right-col a{margin-bottom:10px}.home-page .debris-slider .left-col a:last-child,.home-page .debris-slider .right-col a:last-child{margin-bottom:0}.home-page .debris-slider .left-col img,.home-page .debris-slider .right-col img{height:100%;width:100%}.home-page .debris-slider .left-col{margin-right:10px}.home-page .debris-slider .left-col a{width:280px;height:120px}.home-page .debris-slider .left-col a:first-child{height:250px}.home-page .debris-slider .center-col{position:relative;width:570px;height:100%;margin-right:10px;font-size:0}.home-page .debris-slider .center-col .slide-wrapper{height:100%}.home-page .debris-slider .center-col .slide-wrapper li a{width:100%}.home-page .debris-slider .center-col .slide-switch a.prev{left:0;margin-left:0}.home-page .debris-slider .center-col .slide-switch a.next{right:0;margin-right:0}.home-page .debris-slider .center-col img{max-width:100%;max-height:100%}.home-page .debris-slider .center-col:hover .slide-switch.show{display:block}.home-page .debris-slider .right-col a{width:280px;height:120px}.home-page .debris-slider .right-col a:first-child{height:380px;margin-bottom:11px}.home-page .new-report img{display:block;width:100%;height:100%}.home-page .new-report .report-list{float:left;width:868px}.home-page .new-report .report-list li{float:left;margin:0 8px 8px 0;width:185px;height:248px;overflow:hidden}.home-page .new-report .report-list li:first-child{margin-right:7px;width:282px;height:504px}.home-page .new-report .last-item{float:left;width:282px;height:504px;overflow:hidden}.home-page .preference-brand{overflow:hidden}.home-page .preference-brand-list{margin-top:8px;width:1158px}.home-page .preference-brand-item{float:left;margin-right:8px;margin-bottom:8px}.home-page .preference-brand-item a{display:table-cell;width:185px;height:86px;text-align:center;vertical-align:middle}.home-page .preference-brand-item img{display:block;max-width:100%;max-height:100%;margin:0 auto}.home-page .preference-more{float:left;width:185px;height:86px;line-height:100px;text-align:center;color:#000;font-size:16px}.home-page .img-slider-wrapper{position:relative;width:100%;height:558px;background:#8ae6e0;overflow:hidden}.home-page .img-slider-wrapper .img-brand-switch{display:block}.home-page .img-slider-wrapper .img-brand-switch a{position:absolute;top:50%;font-size:36px;color:#fff}.home-page .img-slider-wrapper .img-brand-switch a.next{right:30px}.home-page .img-slider-wrapper .img-brand-switch a.prev{left:30px}.home-page .img-container-landscape{box-sizing:border-box;margin:86px auto 0;width:982px;height:433px;overflow:hidden}.home-page .img-container-landscape .img-list{width:1000px;height:100%}.home-page .img-container-landscape .img-item{float:left;box-sizing:border-box;width:320px;height:100%;margin-right:10px}.home-page .img-container-landscape .img-item img{width:100%;height:100%}.home-page .img-brand{position:relative;width:100%;height:175px;overflow:hidden}.home-page .img-brand ul{width:1158px}.home-page .img-brand li{float:left;margin:0 8px 0 0;width:378px;height:175px;line-height:175px;overflow:hidden;font-size:0;text-align:center}.home-page .img-brand li img{max-width:100%;max-height:100%;vertical-align:middle}.home-page .img-brand .img-brand-switch{display:none}.home-page .img-brand .img-brand-switch a{position:absolute;top:50%;margin:-20px 0 0;width:40px;height:40px;line-height:40px;text-align:center;z-index:2;background:#fff;opacity:.55;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=55)"}.home-page .img-brand .img-brand-switch a.prev{left:0}.home-page .img-brand .img-brand-switch a.next{right:0}.home-page .img-brand .img-brand-switch a:hover{opacity:.9;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=90)"}.home-page .img-brand:hover .img-brand-switch{display:block}.home-page .logo-brand{width:100%;height:282px;overflow:hidden}.home-page .logo-brand ul{width:1158px}.home-page .logo-brand li{float:left;margin:8px 8px 0 0;width:185px;height:86px;line-height:86px;font-size:0;text-align:center}.home-page .logo-brand li img{max-width:100%;max-height:100%;vertical-align:middle}.home-page .logo-brand .logo-brand-switch{position:relative;background:url(../assets/img/index/logo-brand-line.png?v155e7e2c758) no-repeat 50%;line-height:normal}.home-page .logo-brand .logo-brand-switch .iconfont{position:absolute;left:50%;font-size:32px}.home-page .logo-brand .logo-brand-switch .iconfont.prev{top:10px;margin-left:-48px}.home-page .logo-brand .logo-brand-switch .iconfont.next{bottom:12px;margin-left:20px}.home-page .logo-brand .brand-more{font-size:16px}.home-page .logo-brand .brand-more:hover{text-decoration:underline}.home-page .logo-brand.logos-10{height:188px}.home-page .categorys-list ul{width:1158px}.home-page .categorys-list li{float:left;margin:0 8px 8px 0;width:185px;height:248px}.home-page .categorys-list li img{display:block;width:100%;height:100%}.home-page .categorys-list li.cate-item0{width:185px;height:504px}.home-page .categorys-list li.cate-item1{width:377px;height:504px}.home-page .floor-header{position:relative;margin:80px 0 40px}.home-page .floor-header .floor-title{margin:0 auto;width:298px;height:31px;line-height:31px;border:1px solid #000;font-size:16px;text-align:center}.home-page .floor-header .header-navs{position:absolute;padding:10px 0;top:0;right:0;font-size:14px}.home-page .floor-header .header-navs li{float:left;padding:1px 15px;border-left:1px solid #ccc}.home-page .floor-header .header-navs li a{color:#333}.home-page .floor-header .header-navs li:first-child{border-left:none}.home-page .floor-header .header-navs li:hover{text-decoration:underline}.g-list li{float:left}.g-list li a{position:relative;display:block;overflow:hidden}.g-list li a img,.g-mask{width:100%;height:100%}.g-mask{display:block;position:absolute;z-index:1;background:#000;opacity:.5;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";overflow:hidden;transition:opacity .6s}.g-title{display:block;text-align:center;font-weight:700;line-height:1.5;width:100%;margin-top:14px}.home-page .tpl-recommend{width:100%;position:relative}.home-page .tpl-recommend a{display:block}.home-page .tpl-recommend a img{display:block;width:100%;height:100%}.home-page .tpl-recommend .tpl-body{margin-bottom:8px}.home-page .tpl-recommend .tpl-nav{float:left;overflow:hidden}.home-page .tpl-recommend .tpl-nav .tpl-keywords{margin-bottom:8px}.home-page .tpl-recommend .tpl-nav .tpl-category{padding:10px 0;background-color:#f8f8f8;overflow:hidden}.home-page .tpl-recommend .tpl-nav .tpl-category a{float:left;width:50%;text-align:center;color:#000;overflow:hidden}.home-page .tpl-recommend .tpl-brands{float:left;overflow:hidden;margin-left:8px}.home-page .tpl-recommend .tpl-brands li{margin-top:8px}.home-page .tpl-recommend .tpl-types{float:left;overflow:hidden;margin-top:-8px;width:579px}.home-page .tpl-recommend .tpl-types li{float:left;margin-left:8px;margin-top:8px}.home-page .tpl-recommend .tpl-types li a{width:185px;height:248px}.home-page .tpl-recommend .tpl-products{overflow:hidden;margin-left:-10px}.home-page .tpl-recommend .tpl-products li{float:left;margin-left:10px}.home-page .tpl-recommend .tpl-products li a{width:222px;height:298px}.home-page .tpl-recommend .tpl-nav{width:185px}.home-page .tpl-recommend .tpl-nav .keywords0,.home-page .tpl-recommend .tpl-nav .keywords1,.home-page .tpl-recommend .tpl-nav .keywords2{margin-bottom:10px;height:76px}.home-page .tpl-recommend .tpl-nav .keywords2{margin-bottom:0}.home-page .tpl-recommend .tpl-nav .tpl-category{height:228px}.home-page .tpl-recommend .tpl-nav .tpl-category a{height:38px;line-height:38px;font-size:14px}.home-page .tpl-recommend .tpl-brands{width:378px;height:512px}.home-page .tpl-recommend .tpl-brands li a{height:248px}.min-screen .home-page .tpl-recommend .tpl-nav{width:158px}.min-screen .home-page .tpl-recommend .tpl-nav .keywords0,.min-screen .home-page .tpl-recommend .tpl-nav .keywords1,.min-screen .home-page .tpl-recommend .tpl-nav .keywords2{margin-bottom:8px;height:65px}.min-screen .home-page .tpl-recommend .tpl-nav .keywords2{margin-bottom:0}.min-screen .home-page .tpl-recommend .tpl-nav .tpl-category{height:192px}.min-screen .home-page .tpl-recommend .tpl-nav .tpl-category a{height:32px;line-height:32px;font-size:12px}.min-screen .home-page .tpl-recommend .tpl-nav .tpl-category a:hover{text-decoration:underline}.min-screen .home-page .tpl-recommend .tpl-brands{width:324px;height:432px}.min-screen .home-page .tpl-recommend .tpl-brands li a{height:212px}.min-screen .home-page .tpl-recommend .tpl-types{width:498px}.min-screen .home-page .tpl-recommend .tpl-types li a{width:158px;height:212px}.min-screen .home-page .tpl-recommend .tpl-products li a{width:190px;height:254px}.home-page .singlehot{overflow:hidden;margin-left:-8px}.home-page .singlehot li{margin-left:8px;margin-bottom:8px}.home-page .singlehot li a{width:185px;height:248px}.home-page .singlehot .impo1,.home-page .singlehot .impo9{width:378px}.home-page .floor-ad a{display:block;height:129px}.home-page .floor-ad a img{display:block;width:100%;height:100%}.home-page .goods-container{margin-right:-10px;width:inherit;padding-top:0}.home-page .goods-container .good-info{margin-bottom:0;width:280px;height:485px}.home-page .goods-container .good-detail-img{height:374px}.home-page .goods-container .good-detail-text{text-align:center}.home-page .adbanner{margin-top:12px}.home-page .adbanner a{height:150px}.min-screen .home-page .singlehot li a{width:158px;height:212px}.min-screen .home-page .singlehot .impo1,.min-screen .home-page .singlehot .impo9{width:323px}.min-screen .home-page .goods-container .good-info{width:240px;height:412px}.min-screen .home-page .goods-container .good-info .good-detail-img{height:320px}.home-page .commodity .commodity-list{margin-left:-10px}.home-page .commodity .commodity-list a{height:465px;width:280px}.home-page .commodity .commodity-list li{margin-left:10px}.home-page .commodity .commodity-list i{position:absolute;bottom:0;width:100%;height:20px;background:#ffac5b;color:#fff;line-height:20px;text-align:center;font-size:12px}.home-page .commodity .commodity-list i.top{position:absolute;top:10px;right:10px;background-color:#ff575c;color:#fff;border-radius:30px;z-index:2;height:60px;width:60px;line-height:60px;font-size:20px}.home-page .commodity .commodity-list .commodity-img{position:relative;height:374px}.home-page .commodity .commodity-list p.commodity-name{font-size:12px;color:#000;text-align:center;margin-top:14px;line-height:18px}.home-page .commodity .commodity-list p.commodity-price{position:relative;margin:3px 0 0;text-align:center;line-height:20px;color:#000}.home-page .commodity .commodity-list p.commodity-price span{display:inline-block;font-size:12px}.home-page .commodity .commodity-brands{margin-left:-8px}.home-page .commodity .commodity-brands a{float:left;margin-left:8px;display:block;width:185px;height:86px}.home-page .commodity .commodity-brands a img{width:100%;height:100%}.home-page .commodity .loading{position:relative;width:100%;text-align:center;padding-top:40px}.home-page .commodity .loading a{display:block;height:35px;width:120px;margin:0 auto 40px;background-color:#000;color:#fff;font-size:14px;line-height:35px;text-align:center}.min-screen .home-page .commodity .commodity-list a{height:400px;width:240px}.min-screen .home-page .commodity .commodity-list .commodity-img{height:320px}.min-screen .home-page .commodity .commodity-list i.top{height:52px;width:52px;line-height:52px;font-size:14px}.min-screen .home-page .commodity .commodity-brands a{width:158px;height:74px}.home-page .slide-accordion{overflow:hidden;position:relative;height:400px}.home-page .slide-accordion a{position:relative;display:block}.home-page .slide-accordion a img{display:block;width:100%;height:100%}.home-page .slide-accordion ul{position:absolute;left:-5px}.home-page .slide-accordion li{position:absolute;border-left:5px solid #fff}.home-page .slide-accordion li a{width:650px;height:400px}.home-page .slide-accordion .g-mask{opacity:.2;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=20)"}.home-page .slide-accordion .g-mask:hover{opacity:0;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"}.min-screen .home-page .slide-accordion{height:342px}.min-screen .home-page .slide-accordion li a{width:558px;height:342px}.boys .tpl-nav .keywords0{margin-bottom:10px!important;height:152px!important}.boys .tpl-nav .keywords1{height:86px!important}.boys .tpl-nav .tpl-category a{height:38px!important;line-height:38px!important;font-size:14px!important}.boys .tpl-brands{margin-top:-8px!important}.boys .goods-container .good-info,.lifestyle .goods-container .good-info{width:222px!important;height:408px!important}.boys .goods-container .good-info .good-detail-img,.lifestyle .goods-container .good-info .good-detail-img{height:298px!important}.min-screen .boys .tpl-nav .keywords0{margin-bottom:8px!important;height:130px!important}.min-screen .boys .tpl-nav .keywords1{margin-bottom:0!important;height:74px!important}.min-screen .boys .tpl-brands{margin-top:-8px!important}.min-screen .boys .goods-container .good-info,.min-screen .lifestyle .goods-container .good-info{width:188px;height:360px}.min-screen .boys .goods-container .good-info .good-detail-img,.min-screen .lifestyle .goods-container .good-info .good-detail-img{height:255px}.min-screen .home-page{width:990px}.min-screen .home-page .slide-container{height:387px}.min-screen .home-page .slide-container img{display:block}.min-screen .home-page .slide-thumb-container{height:440px}.min-screen .home-page .slide-container-placeholder{height:387px}.min-screen .home-page .slide-thumb-container-placeholder{height:440px}.min-screen .home-page .slide-wrapper{height:387px}.min-screen .home-page .slide-wrapper li a{width:990px}.min-screen .home-page .slide-switch{display:block}.min-screen .home-page .slide-switch a.prev{margin-left:-495px}.min-screen .home-page .slide-switch a.next{margin-right:-495px}.min-screen .home-page .slide-switch a:hover{opacity:.9;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=90)"}.min-screen .home-page .thumb-pagination{width:990px;margin:7px auto 0;padding:0}.min-screen .home-page .thumb-pagination li{width:118px;height:46px}.min-screen .home-page .debris-slider{height:440px}.min-screen .home-page .debris-slider .left-col{margin-right:9px}.min-screen .home-page .debris-slider .left-col a{width:240px;height:103px}.min-screen .home-page .debris-slider .left-col a:first-child{height:214px}.min-screen .home-page .debris-slider .center-col{width:492px;margin-right:9px}.min-screen .home-page .debris-slider .right-col a{width:240px;height:103px}.min-screen .home-page .debris-slider .right-col a:first-child{height:326px;margin-bottom:10px}.min-screen .home-page .new-report .report-list{width:748px}.min-screen .home-page .new-report .report-list li{width:158px;height:212px}.min-screen .home-page .new-report .last-item,.min-screen .home-page .new-report .report-list li:first-child{width:242px;height:432px}.min-screen .home-page .preference-brand-list{width:998px}.min-screen .home-page .preference-brand-item{margin-right:7px}.min-screen .home-page .preference-brand-item a{width:159px;height:74px}.min-screen .home-page .preference-more{width:159px;height:74px;line-height:90px}.min-screen .home-page .img-slider-wrapper{height:480px}.min-screen .home-page .img-container-landscape{margin:73px auto 0;width:844px;height:370px}.min-screen .home-page .img-container-landscape .img-item{width:275px;height:100%;margin-right:9px}.min-screen .home-page .img-brand{height:150px}.min-screen .home-page .img-brand ul{width:998px}.min-screen .home-page .img-brand li{width:325px;height:150px;line-height:150px}.min-screen .home-page .logo-brand{height:246px}.min-screen .home-page .logo-brand ul{width:998px}.min-screen .home-page .logo-brand li{margin:8px 8px 0 0;width:158px;height:74px;line-height:74px}.min-screen .home-page .logo-brand .logo-brand-switch .iconfont{font-size:24px}.min-screen .home-page .logo-brand .logo-brand-switch .iconfont.prev{top:-12px}.min-screen .home-page .logo-brand .logo-brand-switch .iconfont.next{bottom:-12px}.min-screen .home-page .logo-brand.logos-10{height:164px}.min-screen .home-page .categorys-list ul{width:1004px}.min-screen .home-page .categorys-list li{margin:0 7px 7px 0;width:161px;height:214px}.min-screen .home-page .categorys-list li.cate-item0{width:160px;height:435px}.min-screen .home-page .categorys-list li.cate-item1{width:326px;height:435px}.min-screen .home-page .floor-header{margin:50px 0 30px}.min-screen .home-page .floor-header .header-navs li{padding:1px 10px}.brands .path-nav{border-bottom:none;margin-bottom:0;padding-top:10px;padding-bottom:20px}.brands .brands-tabs{position:relative}.brands .brands-tabs a{display:block}.brands .brands-tabs a img{width:100%;height:100%;display:block}.brands .brands-tabs li{float:left}.brands .brands-tabs li p{display:block;font-size:30px;text-align:center;color:#dedede;position:absolute;top:50%;width:100%;margin-top:-15px;z-index:3}.brands .brands-tabs li .g-mask{opacity:.4;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=40)"}.brands .brands-tabs li .g-mask-on,.brands .brands-tabs li:hover .g-mask{opacity:0;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)"}.brands .brands-tabs .hover-contain{position:relative;border-bottom:1px solid #dfdfdf}.brands .brands-tabs .hover-contain .hoverarr{background-color:#3d3d3d;position:absolute;bottom:0;z-index:7}.brands .brands-tabs .hover-contain .hoverarr i{width:0;height:0;position:absolute;left:50%;border-left:6px solid transparent;border-right:6px solid transparent;border-bottom:6px solid #3d3d3d;top:-6px;margin-left:-3px}.brands .header-navs{margin-right:-15px}.brands .category-nav{border:2px solid #222;padding-left:16px;height:44px;line-height:44px;font-size:12px;font-weight:700;position:relative;z-index:9;background-color:#fff}.brands .category-nav span{display:inline-block;margin-right:15px}.brands .category-nav a{display:inline-block;padding:0 7px;text-align:center;color:#222;cursor:pointer}.brands .category-fix{position:fixed;top:0;z-index:9;margin-top:0!important}.brands .brands-list dl{position:relative;border-top:1px dotted #999;padding:20px 0}.brands .brands-list dt{position:absolute;width:130px;font-weight:700;font-size:16px;text-align:center;top:50%;margin-top:-9px}.brands .brands-list dd{margin-left:130px}.brands .brands-list dd li{float:left;display:block;width:170px;height:18px}.brands .brands-list dd a{color:#666;line-height:18px;font-size:12px;position:relative}.brands .brands-list dd a span{max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:inline-block}.brands .brands-list dd a span:hover{text-decoration:underline}.brands .brands-list dd .brands-dialog{display:inline;position:relative}.brands .brands-list dd .hot{font-weight:700;color:#222}.brands .brands-list dd i{position:relative;top:-4px;color:#e01;font-size:14px}.brands .brands-category{width:1150px}.brands .brands-tabs{width:100%}.brands .brands-tabs li{margin-left:10px}.brands .brands-tabs li a{position:relative;width:222px;height:180px}.brands .brands-tabs li:first-child{margin-left:0}.brands .brands-tabs .hover-contain{height:30px}.brands .brands-tabs .hover-contain .hoverarr{height:5px;width:222px}.brands .brands-ad,.brands .brands-logo{margin:20px 0}.brands .brands-ad li{float:left;margin-left:10px}.brands .brands-ad li img{display:block;width:280px;height:280px}.brands .brands-ad li:first-child{margin-left:0}.brands .brands-ad li:first-child img{width:570px}.brands .brands-logo a{float:left;margin-left:26px}.brands .brands-logo a img{display:block;width:91px;height:38px}.brands .brands-logo a:first-child{margin-left:0}.brands .list-floor{width:1160px}.brands .brandfloor .g-list{margin-top:-32px}.brands .brandfloor li{margin-right:8px;margin-top:32px}.brands .brandfloor li a{width:378px;height:250px}.brands .singlegoods .g-list{margin-top:-10px}.brands .singlegoods li{margin-right:10px;margin-top:10px}.brands .singlegoods li a{width:280px;height:374px}.brands .singlegoods .singlegoods-title{position:absolute;left:0;bottom:0;height:50px;width:100%}.brands .singlegoods .singlegoods-title p{position:absolute;z-index:2;top:0;left:0;display:block;width:100%;height:100%;line-height:50px;font-size:18px;text-align:center;color:#fff}.brands .video .g-list{margin-top:-10px}.brands .video li{margin-right:8px;margin-top:10px}.brands .video li a{width:378px;height:242px}.brands .video .video-play{display:block;position:absolute;left:50%;top:50%;margin-left:-30px;margin-top:-28px;width:60px;height:56px;background-image:url(../assets/img/index/play.png?v155e7e2c758)}.brands .video .video-title{position:absolute;left:0;bottom:0;height:32px;width:100%}.brands .video .video-title p{position:absolute;z-index:2;top:0;left:0;display:block;width:100%;height:100%;font-size:14px;line-height:32px;text-align:center;color:#fff}.brands .news{margin-bottom:40px}.brands .news .news-pic{position:relative;float:left;width:764px;height:436px}.brands .news .news-pic .slide-container{height:100%}.brands .news .news-pic .slide-container li a{height:100%;width:764px}.brands .news .news-pic .slide-container .slide-wrapper{height:100%}.brands .news .news-pic .slide-container .slide-switch{display:none}.brands .news .news-pic .slide-container .slide-switch .prev{left:0;margin-left:0}.brands .news .news-pic .slide-container .slide-switch .next{right:0;margin-right:0}.brands .news .news-pic .slide-container .slide-switch.show{display:block}.brands .news .news-pic .slide-tips{position:absolute;left:0;bottom:0;height:30px;width:100%;background:#000;opacity:.8;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=80)"}.brands .news .news-pic .slide-tips p{position:absolute;left:18px;z-index:2;height:30px;font-size:14px;line-height:30px;color:#fff}.brands .news .news-pic .slide-pagination{right:0;left:auto;bottom:0}.brands .news .news-pic .slide-pagination .slide-shade{opacity:0;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";background:none}.brands .news .news-pic .slide-pagination span{margin-top:3px}.brands .news .news-txt{padding:20px 16px;float:right;border:1px solid #000;overflow:hidden}.brands .news .news-txt ul{height:100%}.brands .news .news-txt li{position:relative;display:block;margin-bottom:10px;margin-left:20px}.brands .news .news-txt a{font-size:14px;line-height:27px;cursor:pointer;color:#010101;display:block}.brands .news .news-txt a:hover{color:#fff;background:#000;padding-left:12px;transition:padding .4s}.brands .news .news-txt i{position:absolute;top:0;left:-26px;font-size:22px}.brands .news .news-txt{width:342px;height:394px}.brands .ads{margin:40px 0}.brands .ads li{margin-right:10px;margin-bottom:10px}.brands .ads li a{width:280px}.brands .ads li a img{height:160px}.brands .ads li .name{font-size:14px}.brands .ads li .des{font-size:12px}.brands .brands-items{margin:25px auto}.brands .brands-items .brands-item{float:left;padding:15px 0;width:50%}.brands .brands-items a.brands-pic{float:left;width:280px;height:136px;display:block}.brands .brands-items a.brands-pic img{width:100%;height:100%}.brands .brands-items .brand-info{float:right;padding:0 20px;width:255px;color:#000}.brands .brands-items .brand-info h3{width:100%;font-size:20px;line-height:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.brands .brands-items .brand-info .brand-desc{padding:12px 0;height:92px;font-size:14px;line-height:22px;overflow:hidden}.brands .pagination{margin:40px 0 80px;text-align:center}.brands .pagination a{height:24px;padding:0 9px;line-height:24px;display:inline-block;text-align:center;margin-right:8px;color:#222;font-size:12px}.brands .pagination a i{position:relative;top:-1px;font-size:10px;transform:scale(.8)}.brands .pagination a.cur{background:#222;color:#fff}.min-screen .brands .header-navs{margin-right:-10px}.min-screen .brands .sit-nav{padding-top:10px;font-size:12px}.min-screen .brands .sit-nav .sep{margin:0 6px}.min-screen .brands .brands-category{width:990px}.min-screen .brands .brands-tabs li a{width:190px;height:154px}.min-screen .brands .brands-tabs .hover-contain{height:25px}.min-screen .brands .brands-tabs .hover-contain .hoverarr{height:4px;width:190px}.min-screen .brands .brands-ad li img{width:240px;height:240px}.min-screen .brands .brands-ad li:first-child img{width:490px}.min-screen .brands .brands-logo a{margin-left:10px}.min-screen .brands .brands-logo a img{width:90px;height:37px}.min-screen .brands .brands-logo a:first-child{margin-left:0}.min-screen .brands .list-floor{width:1000px}.min-screen .brands .brandfloor .g-list{margin-top:-26px}.min-screen .brands .brandfloor li{margin-right:9px;margin-top:26px}.min-screen .brands .brandfloor li a{width:324px;height:214px}.min-screen .brands .singlegoods .g-list{margin-top:-10px}.min-screen .brands .singlegoods li{margin-right:10px;margin-top:10px}.min-screen .brands .singlegoods li a{width:240px;height:324px}.min-screen .brands .singlegoods .singlegoods-title{position:absolute;left:0;bottom:0;height:50px;width:100%}.min-screen .brands .singlegoods .singlegoods-title p{position:absolute;z-index:2;top:0;left:0;display:block;width:100%;height:100%;line-height:50px;font-size:18px;text-align:center;color:#fff}.min-screen .brands .video .g-list{margin-top:-10px}.min-screen .brands .video li{margin-right:9px;margin-top:10px}.min-screen .brands .video li a{width:324px;height:206px}.min-screen .brands .video .video-play{display:block;position:absolute;left:50%;top:50%;margin-left:-30px;margin-top:-28px;width:60px;height:56px;background-image:url(../assets/img/index/play.png?v155e7e2c758)}.min-screen .brands .video .video-title{position:absolute;left:0;bottom:0;height:30px;width:100%}.min-screen .brands .video .video-title p{position:absolute;z-index:2;top:0;left:0;display:block;width:100%;height:100%;font-size:14px;line-height:30px;text-align:center;color:#fff}.min-screen .brands .news .news-pic{width:660px;height:376px}.min-screen .brands .news .news-pic .slide-container,.min-screen .brands .news .news-pic .slide-container img{height:376px}.min-screen .brands .news .news-txt{width:284px;height:334px}.min-screen .brands .news .news-txt li{margin-bottom:13px}.min-screen .brands .ads{margin-bottom:30px}.min-screen .brands .ads li{margin-right:10px;margin-bottom:10px}.min-screen .brands .ads li a{width:240px}.min-screen .brands .ads li a img{height:138px}.min-screen .brands .ads li .name{font-size:14px}.min-screen .brands .ads li .des{font-size:12px}.min-screen .brands .brands-items a.brands-pic{width:240px;height:116px}.min-screen .brands .brands-items .brand-info{width:212px}.min-screen .brands .brands-items .brand-info .brand-desc{height:72px}.brands-layer{position:absolute;z-index:9;top:-83px;left:15px;width:325px;height:287px;background:url(../assets/img/index/brands-layer.png?v155e7e2c758) no-repeat;font-weight:400}.brands-layer .layer-content{padding:20px 20px 20px 35px}.brands-layer .layer-content .title{font-size:24px;line-height:24px;border-bottom:1px solid #ccc;padding-bottom:5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.brands-layer .layer-content .desc{margin:5px 0;height:72px;overflow:hidden}.brands-layer .layer-content .desc img{width:80px;height:50px;margin:3px 5px 0 0;float:left}.brands-layer .layer-content .desc .right{width:180px;float:right;font-size:12px;line-height:150%;max-height:80px}.brands-layer .layer-content .featured{font-size:16px;margin-right:-15px}.brands-layer .layer-content .featured img{height:100px;width:80px;float:left;margin:15px 15px 0 0}.brands-layer-right{background:url(../assets/img/index/brands-layer.png?v155e7e2c758) no-repeat 0 -287px;left:-325px;top:-83px}.brands-layer-right .layer-content{padding:20px 35px 20px 20px}.coupon-page{width:1150px;margin:10px auto 0}.coupon-page .slide-container{position:relative}.coupon-page .slide-wrapper{position:relative;height:450px;overflow:hidden}.coupon-page .slide-wrapper ul{position:relative;height:100%}.coupon-page .slide-wrapper li{display:none;position:absolute;top:0;right:0;width:100%;height:100%}.coupon-page .slide-wrapper li a{display:block;height:100%;width:1150px;margin:0 auto}.coupon-page .slide-wrapper li img{width:100%;height:100%}.coupon-page .slide-switch,.coupon-page .slide-wrapper:hover .slide-switch.show,.coupon-page .slide-wrapper li:first-child{display:block}.coupon-page .slide-switch a{position:absolute;top:50%;margin:-30px 0 0;width:60px;height:60px;line-height:56px;text-align:center;z-index:2;background:#fff;opacity:.55;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=55)"}.coupon-page .slide-switch a .iconfont{font-size:32px;color:#59585a}.coupon-page .slide-switch a.prev{left:50%;margin-left:-575px}.coupon-page .slide-switch a.next{right:50%;margin-right:-575px}.coupon-page .slide-switch a:hover{opacity:.9;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=90)"}.coupon-page .title{width:300px;margin:80px auto 40px;text-align:center;border:1px solid #000;height:31px;line-height:31px;position:relative}.coupon-page .title span{margin:5px}.coupon-page .coupon{display:inline-block;position:relative;width:282px;height:258px;margin-right:2px}.coupon-page .coupon img{width:100%;height:100%}.coupon-page .coupon .coupon-mask{width:100%;height:259px;background-color:rgba(0,0,0,.6);position:absolute;top:0;left:0;right:0;z-index:8}.coupon-page .coupon .info{width:78px;height:78px;position:absolute;right:2px;bottom:-1px}.coupon-page .coupon .info>div{width:100%;height:38px;font-size:16px;color:#fff;text-align:center;position:absolute;top:50%;margin-top:-19px}.coupon-page .coupon .info p{margin-bottom:5px}.coupon-page .coupon .info .guang{width:50px;height:18px;line-height:18px;font-size:12px;background-color:#fff;color:#d0021b;margin:0 auto}.me-page{width:990px;margin:0 auto 20px}.me-page .home-path{height:40px;line-height:40px;color:#ccc;font-size:12px}.me-page .home-path .path-icon{float:left;display:block;background-image:url(../assets/img/sprite.home.png?v155e7e2f638);background-position:-22px -24px;width:15px;height:15px;margin-right:10px;margin-top:11px}.me-page .home-path a,.me-page .home-path span{color:#666}.me-page .home-path span{font-weight:700}.me-page .block{border:1px solid #dedede;border-radius:2px}.me-page .me-main .block{margin-bottom:10px}.me-page .title{height:40px;line-height:40px;padding:0 8px;background-color:#e3e3e3;background-position:10px 12px;background-repeat:no-repeat}.me-page .user-thumb{text-align:center;padding:20px 0;background:#f8f8f8}.me-page .user-thumb .thumb-bg{width:100px;height:100px;padding:5px 7px 7px 5px;margin:0 auto;background:url(../assets/img/home/thumb-bg.png?v155e7e2c758)}.me-page .user-thumb .default-user-thumb,.me-page .user-thumb img{width:100px;height:100px}.me-page .user-thumb .default-user-thumb{background:url(../assets/img/home/default-thumb.png?v155e7e2c370) no-repeat;background-size:100%}.me-page .home-navigation{float:left;width:180px;margin-right:8px}.me-page .home-navigation .ucenter{background-image:url(../assets/img/home/ucenter.png?v155e7e2c758)}.me-page .nav-group .row{height:38px;line-height:38px;border-top:1px solid #e2e2e2;padding-left:35px;color:#666;background:#f8f8f8;font-size:12px}.me-page .nav-group .row a{display:inline-block;color:#666}.me-page .nav-group .row span{color:#e0012b;font-weight:700}.me-page .nav-group .row.active{background:#636363}.me-page .nav-group .row.active a{color:#fff}.me-page .nav-group .row.first{border-top:none}.me-page .nav-group li:hover{background:#fff;color:#000}.me-page .nav-group .nav-title{font-size:14px;border-top:1px solid #ccc;border-bottom:1px solid #ccc;color:#333;background:#e6e6e6;padding-left:0}.me-page .nav-group .nav-title .title-icon{float:left;display:block;width:15px;height:15px;background-image:url(../assets/img/sprite.home.png?v155e7e2f638);background-position:-48px 0;margin:10px 10px 0}.me-page .me-main{float:left;width:800px;min-height:945px}.me-page .me-pager{width:778px;height:22px;line-height:22px;background:#f3f3f3;border-top:1px solid #e3e3e3;padding:10px;font-size:12px;color:#666}.me-page .me-pager .check-all{margin:0;vertical-align:text-top;margin-right:5px}.me-page .me-pager .del-checked{cursor:pointer;margin-left:5px}.me-page .me-pager .del-checked:hover{color:#468fa2;text-decoration:underline}.me-page .me-pager a{border:1px solid #cecece;padding:0 6px;height:18px;line-height:18px;border-radius:2px;margin-right:4px;background-color:#fff}.me-page .me-pager a.cur,.me-page .me-pager a:hover{background-color:#222;color:#fff}.me-page .me-pager .pager-html{display:inline}.me-page .help-us{height:20px;line-height:20px;font-size:12px}.me-page .help-us a{color:#468fa2}.me-page .help-us .help-us-icon{display:inline-block;width:12px;height:12px;margin-right:8px;margin-top:-3px;vertical-align:middle;background-image:url(../assets/img/sprite.home.png?v155e7e2f638);background-position:-48px -17px}.me-page .empty-tip{padding:200px 0;text-align:center;overflow:hidden}.me-page .tabs{height:25px;margin:10px;background:url(../assets/img/home/tab.png?v155e7e2c758) repeat-x 0 -25px;font-size:12px;line-height:25px;padding-left:10px}.me-page .tabs li{display:block;float:left;width:88px;height:25px;text-align:center;background:url(../assets/img/home/tab.png?v155e7e2c758) no-repeat -92px 0;margin-right:3px;color:#333}.me-page .tabs li.active{background-position:0 0;font-weight:700}.me-page .tabs a{display:block;width:100%;height:100%}.me-page .table-header{height:30px;line-height:30px;background:#efefef;border:1px solid #e6e6e6;padding:0 10px}.me-page .table-header>span{display:block;float:left;text-align:center}.me-page .advance-buy-tag,.me-page .freebie-tag,.me-page .presall-tag,.me-page .virtual-good-tag{display:block;position:absolute;bottom:0;left:0;right:0;height:15px;line-height:16px;text-align:center;color:#fff}.me-page .freebie-tag{background:#88be51}.me-page .advance-buy-tag{background:#fc1264}.me-page .presall-tag,.me-page .virtual-good-tag{background:#333}.default-me-page .message-tip{box-sizing:border-box;width:800px;height:40px;line-height:40px;padding:0 10px;margin-bottom:10px;background:#faf6d9;border:1px solid #f5e8c5;border-radius:2px;font-weight:700;font-size:12px}.default-me-page .message-tip a{color:#468fa2;font-weight:400}.default-me-page .message-tip b{color:#e8044f;margin-right:5px}.default-me-page .message-tip .close{float:right;cursor:pointer;font-weight:400}.default-me-page .more{display:block;float:right;height:21px;line-height:22px;width:63px;margin-top:8px;padding-right:8px;font-size:12px;color:#fdfdfd;text-align:center;border-radius:2px;background:url(../assets/img/home/btn-more.png?v155e7e2c370) no-repeat}.default-me-page .brands ul{padding:10px 0 10px 10px}.default-me-page .brands ul li{float:left;width:122px;height:103px;border:1px solid #f6f6f6;margin-right:7px;overflow:hidden}.default-me-page .brands ul img{width:80px;height:50px;display:block;vertical-align:middle;margin:15px auto}.default-me-page .brands ul .brand-name{display:block;width:114px;height:18px;line-height:18px;color:#333;background:#f4f4f4;font-size:12px;text-align:center;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin:0 auto}.default-me-page .new-arrival,.default-me-page .recommend{overflow:hidden}.default-me-page .new-arrival .na-pager-wrap,.default-me-page .recommend .na-pager-wrap{float:right}.default-me-page .new-arrival .na-pager-wrap .next,.default-me-page .new-arrival .na-pager-wrap .pre,.default-me-page .recommend .na-pager-wrap .next,.default-me-page .recommend .na-pager-wrap .pre{display:inline-block;height:22px;line-height:22px;margin-top:8px;padding:0 6px;font-size:12px;color:#fff;background:#646464;text-align:center;border-radius:2px;cursor:pointer}.default-me-page .new-arrival .na-pager-wrap .next .iconfont,.default-me-page .new-arrival .na-pager-wrap .pre .iconfont,.default-me-page .recommend .na-pager-wrap .next .iconfont,.default-me-page .recommend .na-pager-wrap .pre .iconfont{font-size:12px}.default-me-page .new-arrival .na-pager-wrap .no-visible,.default-me-page .recommend .na-pager-wrap .no-visible{visibility:hidden}.default-me-page .new-arrival ul,.default-me-page .recommend ul{width:800px;height:218px;overflow:hidden}.default-me-page .new-arrival li,.default-me-page .recommend li{float:left;width:101px;height:160px;padding:29px;border-right:1px solid #e3e3e3;text-align:center;font-size:12px;overflow:hidden}.default-me-page .new-arrival li .thumb,.default-me-page .recommend li .thumb{width:100px;height:100px}.default-me-page .new-arrival li .name,.default-me-page .recommend li .name{margin:10px 0;text-decoration:underline;color:#666;line-height:14px}.default-me-page .new-arrival li .price,.default-me-page .recommend li .price{color:#000}.default-me-page .new-arrival li p,.default-me-page .recommend li p{height:28px;overflow:hidden}.default-me-page .recommend{margin-bottom:10px}.default-me-page .recommend ul{width:990px}.default-me-page .recommend li{width:106px}.default-me-page .ho-btm{float:right;width:800px}.default-me-page .banner{display:block;width:800px;border:none}.default-me-page .latest-orders .title{background-image:url(../assets/img/home/latest-orders.png?v155e7e2c758)}.default-me-page .brands .title{background-image:url(../assets/img/home/brands.png?v155e7e2c370)}.default-me-page .new-arrival .title{background-image:url(../assets/img/home/new-arrival.png?v155e7e2c758)}.default-me-page .recommend .title{background-image:url(../assets/img/home/recommend.png?v155e7e2c758)}.me-orders{font-size:12px}.me-orders .right{float:right}.me-orders .order-table-header .info{width:330px;text-align:left;padding-left:10px}.me-orders .order-table-header .price{width:75px}.me-orders .order-table-header .count{width:60px}.me-orders .order-table-header .operation,.me-orders .order-table-header .order-status,.me-orders .order-table-header .pay{width:100px}.me-orders .order-title{height:28px;line-height:28px;background:#efefef;padding:0 5px;border-bottom:1px solid #e6e6e6}.me-orders .order{margin:10px;border:1px solid #e6e6e6;border-radius:2px}.me-orders .order .order-wrap{position:relative;display:table;text-align:center}.me-orders .order .order-wrap>*{display:table-cell;vertical-align:middle}.me-orders .order li{display:table;border-top:1px solid #e6e6e6}.me-orders .order li>div{display:table-cell;color:#666;text-align:center;vertical-align:middle}.me-orders .order li:first-child{border-top:none}.me-orders .order .thumb-wrap{position:relative}.me-orders .order .thumb{width:60px;height:60px}.me-orders .order .info{position:relative;width:320px;text-align:left;padding:10px 0 10px 10px}.me-orders .order .info>*{float:left}.me-orders .order .info .color-size{color:#999}.me-orders .order .info .arrival-date{color:#e8044f;margin-left:2px}.me-orders .order .text-info{position:absolute;padding:5px;bottom:10px;left:72px}.me-orders .order .text-info>*{display:block;line-height:18px}.me-orders .order .name{color:#468fa2;max-width:245px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.me-orders .order .had-refund{color:#e8044f}.me-orders .order .price{width:80px;padding:5px;font-weight:700}.me-orders .order .price .free-icon{display:block;width:37px;height:18px;line-height:18px;font-size:12px;text-align:center;color:#80bb45;background:#e7fbc0;margin:5px auto;border:1px solid #80bb45;border-radius:3px}.me-orders .order .price.free-price em{text-decoration:line-through}.me-orders .order .count{width:50px}.me-orders .order .operation,.me-orders .order .order-status,.me-orders .order .pay{width:90px;border-left:1px solid #e6e6e6;padding:5px}.me-orders .order .pay{font-weight:700}.me-orders .order .pay-tip{font-weight:400;display:block;line-height:18px;color:#999}.me-orders .order .op-item{display:block;color:#468fa2;line-height:18px}.me-orders .order .op-item.op-dis{color:#999}.me-orders .order .no-pay,.me-orders .order .paid{color:#e8044f}.me-orders .order .order-status span{line-height:18px;color:#999}.me-orders .order .order-status .cancel{color:#e8044f}.me-orders .order .check-logistics{display:block;cursor:pointer;color:#468fa2}.me-orders .order .cancel{color:#e8044f}.me-orders .order .logistics{position:absolute;padding:20px 12px;color:#ff8341;border:1px solid #c9c9c9;background:#fff;right:185px;margin-top:-40px;z-index:11}.me-orders .order .logistics li{line-height:18px;white-space:nowrap}.me-orders .order .logistics .close-logistics{position:absolute;top:0;right:0;color:#c9c9c9;cursor:pointer}.me-orders .order .logistics .right-triangle{position:absolute;width:0;height:0;right:-6px;top:24px}.me-orders .order .logistics .right-triangle.top{margin-top:1px;border-top:5px solid transparent;border-bottom:5px solid transparent;border-left:6px solid #fff}.me-orders .order .logistics .right-triangle.bottom{margin-right:-1px;border-top:6px solid transparent;border-bottom:6px solid transparent;border-left:7px solid #c9c9c9}.me-orders .order .operation>*{cursor:pointer}.me-orders .order .operation .pay-now{display:block;color:#fff;background:#de034a;height:20px;line-height:20px;text-align:center;margin:0 auto;border-radius:4px;width:68px}.me-orders .order .operation .rebuy{display:inline-block;box-sizing:border-box;width:68px;height:18px;line-height:18px;border-radius:5px;text-align:center;border:1px solid #000}.me-history-orders .order-table-header .info,.me-history-orders .order .info{width:520px}.me-history-orders .order .info{text-align:center}.me-history-orders .order-table-header .order-sum,.me-history-orders .order .order-sum{width:90px;text-align:left}.me-history-orders .order li{border:none}.cancel-dialog{width:600px;background:#fff;padding:20px 30px 35px}.cancel-dialog header{font-size:18px;padding-bottom:20px;border-bottom:1px solid #e8e8e8;color:#000;text-align:left}.cancel-dialog .close{top:15px;right:30px}.cancel-dialog .close .iconfont{font-size:30px}.cancel-dialog .cancel-reason{text-align:left}.cancel-dialog .cancel-reason li{float:left;width:50%;height:28px;line-height:28px;font-size:14px}.cancel-dialog .cancel-reason label{padding-left:10px}.cancel-dialog .cancel-reason input[type=text]{margin-left:10px;height:24px;text-indent:5px}.cancel-dialog .cancel-tip{margin-top:20px;color:#d60248;font-size:14px;padding-left:17px;text-align:left}.cancel-dialog .btns{padding:15px 30px 0;text-align:center}.cancel-dialog .btns .btn{height:35px;font-size:15px;line-height:35px}.cancel-dialog .btns .cancel-sure{width:130px;color:#fff;background:#000;border:none}.cancel-dialog .btns .cancel-no{margin-left:30px;background:#fff;color:#000;border-color:#000;width:126px}.cancel-dialog .tip{margin:20px 0;font-size:12px;text-align:left;color:#db3d50}.cancel-dialog .reminder{margin:20px 0 10px}.cancel-dialog .info-prompt ul{margin-top:-10px}.cancel-dialog .info-prompt li{margin:10px 0;font-size:14px;line-height:16px;text-align:left}.cancel-dialog .info-prompt i{color:#d70400;font-family:SimSun;font-size:16px;margin-right:10px;vertical-align:-6px}.message-dialog{width:350px;background:#fff;padding:20px 30px 35px}.message-dialog .message-title{margin-top:40px;margin-bottom:27px;font-size:24px;font-weight:700}.message-dialog .message-summary{width:250px;margin:0 auto 22px;font-size:14px;word-wrap:break-word;line-height:20px}.message-dialog .btns{padding:15px 30px 0;text-align:center}.message-dialog .btns .btn{height:35px;font-size:15px;line-height:35px}.message-dialog .btns .message-sure{width:130px;color:#fff;background:#000;border:none}.message-dialog .close{top:15px;right:15px}.message-dialog .close .iconfont{font-size:30px}.edit-order-dialog{width:600px;background:#fff;padding:20px 30px 35px}.edit-order-dialog header{font-size:18px;padding-bottom:20px;border-bottom:1px solid #e8e8e8;color:#000;text-align:left}.edit-order-dialog .close{top:15px;right:30px}.edit-order-dialog .close .iconfont{font-size:30px}.edit-order-dialog .edit-order-info{text-align:left}.edit-order-dialog .edit-order-info li{height:26px;margin:20px 0;line-height:26px;font-size:14px;white-space:nowrap}.edit-order-dialog .edit-order-info .form-required{color:#d70400;font-family:SimSun;font-size:16px;margin-right:10px;vertical-align:-6px}.edit-order-dialog .edit-order-info label{display:inline-block;width:90px;text-align:right}.edit-order-dialog .edit-order-info .inp{width:188px;height:18px;line-height:18px;padding:3px 0;border:1px solid #e8e8e8;margin-left:10px;text-indent:5px;box-sizing:content-box}.edit-order-dialog .edit-order-info .w271{width:271px}.edit-order-dialog .edit-order-info .w40{width:40px}.edit-order-dialog .edit-order-info .inp[name=tel]{margin-left:0}.edit-order-dialog .ml10{margin-left:10px}.edit-order-dialog select{height:25px;line-height:25px;width:100px;padding:0;border:1px solid #ccc}.edit-order-dialog .error{display:none;margin-left:10px;color:#db3d50;font-size:12px}.edit-order-dialog .error .icon-error{margin-right:8px;vertical-align:text-bottom}.edit-order-dialog .btns{padding:15px 30px 0;text-align:center}.edit-order-dialog .btns .btn{height:35px;font-size:15px;line-height:35px}.edit-order-dialog .btns .edit-sure{width:130px;color:#fff;background:#000;border:none}.edit-order-dialog .btns .edit-no{margin-left:30px;background:#fff;color:#000;border-color:#000;width:126px}.edit-order-dialog .tip{margin:20px 0;font-size:12px;text-align:left;color:#db3d50}.order-icon{display:inline-block;vertical-align:middle;margin-right:10px;background:url(../assets/img/home/order-sprite.png?v155e7e2c758)}.icon-success{background-position:0 0}.icon-success,.icon-waiting{width:30px;height:30px;vertical-align:-6px}.icon-waiting{background-position:-32px 0}.icon-arrow{width:11px;height:7px;background-position:-36px -33px}.icon-error{width:15px;height:15px;background-position:0 -33px}.icon-right{width:15px;height:15px;background-position:-50px -33px}.icon-recycle{width:15px;height:17px;background-position:-18px -33px}.orders-me-page .orders .title{padding-left:130px;line-height:40px;background-image:url(../assets/img/home/orders.png?v155e7e2c758);font-size:12px;font-weight:700}.orders-me-page .order-table-header{padding:0;margin:0 10px;border:1px solid #e6e6e6}.order-detail-page{font-size:12px}.order-detail-page .order-detail>.title{background-image:url(../assets/img/home/order-detail.png?v155e7e2c758)}.order-detail-page .status{margin:10px 0;padding:10px;background:#efefef;border-bottom:1px solid #e6e6e6}.order-detail-page .status p{margin:5px 0;line-height:18px}.order-detail-page .status .cur-status{color:#e8044f}.order-detail-page .status .complete-tip{color:#999}.order-detail-page .status .cancel-order{margin-right:20px}.order-detail-page .status .cancel-order,.order-detail-page .status .edit-order{float:right;background:#ebebeb;border:1px solid #c1c1c1;color:#000}.order-detail-page .status .edit-order-active{background:#444;border:1px solid #444;color:#fff}.order-detail-page .status .go-pay{margin-left:60px}.order-detail-page .detail-info{padding:10px}.order-detail-page .sub-title{height:21px;line-height:21px;border:1px solid #e6e6e6;color:#333;background:#efefef}.order-detail-page .sub-title .icon{display:inline-block;height:11px;width:11px;background-image:url(../assets/img/home/complaint-icon.png?v155e7e2c370);margin:5px 5px 0}.order-detail-page .content{padding:10px 20px 20px}.order-detail-page .content p{line-height:18px}.order-detail-page .order-progress{padding-top:20px}.order-detail-page .order-progress li{position:absolute;width:150px;line-height:15px;top:20px}.order-detail-page .order-progress .cur{color:#e9034e;font-weight:700}.order-detail-page .order-progress .date{display:block;color:#999;padding-left:12px}.order-detail-page .progress-box{position:relative;width:552px;height:70px;margin:0 auto}.order-detail-page .progress-box .pg-0{left:-20px}.order-detail-page .progress-box .pg-1{left:145px}.order-detail-page .progress-box .pg-2{left:330px}.order-detail-page .progress-box .pg-3{left:515px}.order-detail-page .virtual-detail .pg-1{left:245px}.order-detail-page .virtual-detail .pg-2{left:515px}.order-detail-page .virtual-detail .outter-progress{background:url(../assets/img/home/virtual-order-progress.png?v155e7e2c758) no-repeat 0 0}.order-detail-page .virtual-detail .inner-progress{background:url(../assets/img/home/virtual-order-progress.png?v155e7e2c758) no-repeat 0 -12px}.order-detail-page .outter-progress{width:552px;height:12px;background:url(../assets/img/home/order-progress.png?v155e7e2c758) no-repeat 0 0}.order-detail-page .inner-progress{height:12px;background:url(../assets/img/home/order-progress.png?v155e7e2c758) no-repeat 0 -12px}.order-detail-page .handle-time{width:300px}.order-detail-page .recive-place{width:200px}.order-detail-page .logistics-info{width:800px}.order-detail-page .trace-order td,.order-detail-page .trace-order th{line-height:18px}.order-detail-page .invoice-type,.order-detail-page .invoice-type p{display:inline-block}.order-detail-page .invoice-button{display:inline-block;margin-left:20px;color:#d93549;border:1px solid #444;padding:5px}.order-detail-page .differentOrder{position:relative;width:100%;margin-top:10px}.order-detail-page .differentOrder .warn{text-align:center;background:#fefbd5;font:initial;height:40px;line-height:40px;font-size:16px}.order-detail-page .differentOrder .warn .red{color:red}.order-detail-page .differentOrder .warn .why{background-image:url(../assets/img/sprite.order.png?v155e7e2f638);background-position:-366px -160px;width:26px;height:20px;display:inline-block;vertical-align:middle}.order-detail-page .differentOrder .warn .why:hover{cursor:pointer}.order-detail-page .differentOrder .differentBag:before{content:"";position:absolute;width:0;height:0;border-bottom:10px solid #000;border-left:10px solid transparent;border-right:10px solid transparent;top:-10px;right:113px}.order-detail-page .differentOrder .differentBag{display:none;position:absolute;right:-10px;top:40px;width:510px;padding:0 50px;background:#fff;z-index:1;border:1px solid #000;font-size:14px}.order-detail-page .differentOrder .bag{position:relative;border-bottom:1px solid #e0e0e0;margin-top:10px;padding:20px 0}.order-detail-page .differentOrder .bag h3{height:30px;line-height:30px;font-weight:700;margin-left:15px}.order-detail-page .differentOrder .bag .pre{background-position:0 -261px;left:-30px}.order-detail-page .differentOrder .bag .next,.order-detail-page .differentOrder .bag .pre{position:absolute;background-image:url(../assets/img/sprite.order.png?v155e7e2f638);width:30px;height:50px;top:70px;display:none;cursor:pointer}.order-detail-page .differentOrder .bag .next{background-position:-32px -261px;right:-30px}.order-detail-page .differentOrder .bag p{color:#767676;margin-left:15px}.order-detail-page .differentOrder .bagDetil{position:relative;height:90px;width:510px;overflow:hidden;margin-bottom:20px}.order-detail-page .differentOrder .bagDetil ul{list-style:none;position:absolute;left:0;clear:both;height:90px}.order-detail-page .differentOrder .bagDetil ul li{float:left;width:102px;height:90px;line-height:90px;text-align:center;position:relative}.order-detail-page .differentOrder .bagDetil ul li img{width:90px;height:90px}.order-detail-page .differentOrder .bagDetil ul li p{position:absolute;bottom:0;background:#9c3;width:90px;height:1rem;line-height:1rem;color:#fff;margin-left:7px}.order-detail-page .differentOrder .bagDetil ul li a,.order-detail-page .differentOrder .bagDetil ul li a:hover{cursor:default}.order-detail-page .good-list table{border-collapse:collapse}.order-detail-page .good-list thead{height:25px;line-height:25px;background:#000;padding:2px 5px;color:#fff}.order-detail-page .good-list td,.order-detail-page .good-list th{padding:5px;text-align:center;border-right:1px solid #e6e6e6;border-bottom:1px solid #e6e6e6}.order-detail-page .good-list th{border-color:#000}.order-detail-page .good-list tr td:last-child,.order-detail-page .good-list tr th:last-child{border-right:none}.order-detail-page .good-list .product-info{width:314px}.order-detail-page .good-list .good-price,.order-detail-page .good-list .num,.order-detail-page .good-list .sum{width:91px}.order-detail-page .good-list .yoho-coin{width:100px}.order-detail-page .good-list .yoho-coin a{display:inline-block;width:12px;height:12px;background-image:url(../assets/img/sprite.home.png?v155e7e2f638);background-position:0 -44px;vertical-align:text-top}.order-detail-page .good-list .thumb-link{float:left;position:relative;margin-left:5px;margin-right:10px}.order-detail-page .good-list .thumb{display:block;width:60px;height:60px}.order-detail-page .good-list .name-color-size{float:left;color:#999;padding-top:12px;text-align:left}.order-detail-page .good-list .name{display:block;color:#468fa2;line-height:18px;text-align:left;max-width:230px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.order-detail-page .order-balance{text-align:right;border-bottom:1px solid #e6e6e6;padding:10px 0}.order-detail-page .order-balance .back-coin{height:30px}.order-detail-page .order-balance .yoho-coin{width:14px;height:14px;display:inline-block;background-image:url(../assets/img/sprite.cart.png?v155e7e2f638);background-position:-321px -225px;vertical-align:middle;margin-top:-2px;margin-right:4px}.order-detail-page .order-balance em{font-weight:700}.order-detail-page .order-balance .payment{color:#e8044f}.order-detail-page .oo-btn{display:inline-block;height:30px;width:92px;line-height:30px;text-align:center;border-radius:3px;color:#fff;cursor:pointer}.order-detail-page .go-pay{background:#d9044a;border:1px solid #c54b73}.order-detail-page .order-operation{text-align:right;padding:20px 10px}.order-detail-page .order-operation .oo-icon{display:inline-block;height:22px;width:22px;vertical-align:text-bottom}.order-detail-page .order-operation .success-icon{background-image:url(../assets/img/sprite.home.png?v155e7e2f638);background-position:0 0}.order-detail-page .order-operation .cancel-icon{background-image:url(../assets/img/sprite.home.png?v155e7e2f638);background-position:-24px 0}.order-detail-page .order-operation .confirm-received{display:block;float:right;margin-top:5px;background:#d9044a;border:1px solid #c54b73}.order-detail-page .order-operation .cancel-order{background:#ebebeb;border:1px solid #c1c1c1;color:#000}.order-detail-page .freebie-tag{background:#9c3}.order-detail-page .advance-buy-tag{background:#fc1264}.order-detail-page .virtual-good-tag{background:red}.order-detail-page .presall-tag{background:blue}.order-ticket-page{font-size:12px}.order-ticket-page .order-ticket .title{background-image:url(../assets/img/home/orders.png?v155e7e2c758)}.order-ticket-page .ticket-info{padding:20px 10px}.order-ticket-page .ticket-info .ticket-tag{display:inline-block;width:72px;height:19px;line-height:19px;text-align:center;font-size:12px;color:#fff;background:#000;border-radius:3px;margin-right:5px}.order-ticket-page .ticket-info .order-num{margin-left:10px}.order-ticket-page .ticket-info .return-to-orders{float:right;color:#468fa2}.order-ticket-page .qr-codes{width:768px;padding:10px 0 10px 10px;border:1px solid #e7e7e7;background:#fff;margin:0 auto}.order-ticket-page .qr-codes li{float:left;width:232px;height:260px;margin:10px;border:1px solid #e7e7e7;word-break:break-all;overflow:hidden;text-align:center}.order-ticket-page .qr-codes .qr{width:230px;height:230px}.order-ticket-page .tickets-tip{width:758px;padding:10px;border:1px solid #e7e7e7;background:#fff;margin:20px auto}.order-ticket-page .tickets-tip p{padding-left:20px;padding-bottom:10px;line-height:20px;background:url(../assets/img/home/qr-tip.png?v155e7e2c758) no-repeat -27px 5px}.order-ticket-page .tickets-tip .warn{background-position:0 -23px}.red-envelopes-page{font-size:12px}.red-envelopes-page .red-envelopes>.title{font-size:14px;font-weight:700}.red-envelopes-page .re-header{height:25px;line-height:25px;width:100%;text-align:center;border-bottom:1px solid #e6e6e6;background:#efefef}.red-envelopes-page .re-header span{display:inline-block;width:33%}.red-envelopes-page .money{color:#d52c29;font-family:微软雅黑;font-size:20px;font-weight:700}.red-envelopes-page .re-icon{display:inline-block;width:20px;height:18px;background-image:url(../assets/img/sprite.home.png?v155e7e2f638);background-position:0 -24px}.red-envelopes-page .red-envelopes-list{display:table;width:100%}.red-envelopes-page .red-envelopes-list li{display:table-row;color:#666;border-top:1px solid #e6e6e6}.red-envelopes-page .red-envelopes-list li>*{display:table-cell;width:33%;padding:10px;text-align:center;vertical-align:middle;border-left:1px solid #e6e6e6}.red-envelopes-page .red-envelopes-list li>:first-child{border-left:none}.red-envelopes-page .red-envelopes-list .use-remark{text-align:left;line-height:18px}.me-coupons-page{font-size:12px}.me-coupons-page .coupons>.title{font-size:14px;font-weight:700}.me-coupons-page .coupons-header{width:776px;height:25px;line-height:25px;text-align:center;border:1px solid #e6e6e6;background:#efefef;margin:0 auto}.me-coupons-page .coupons-header span{display:block;float:left}.me-coupons-page .coupon{display:table;border:1px solid #e6e6e6;width:778px;margin:10px auto;text-align:center;color:#666}.me-coupons-page .coupon>*{display:table-cell;vertical-align:middle;border-left:1px solid #e6e6e6;padding:5px;line-height:18px}.me-coupons-page .coupon .coupons-img{border-left:none}.me-coupons-page .coupon .end-soon{color:#e8044f}.me-coupons-page .un-use-coupons .coupons-img{width:20%}.me-coupons-page .un-use-coupons .value{width:18%}.me-coupons-page .un-use-coupons .term-of-validity{width:22%}.me-coupons-page .un-use-coupons .term-of-validity span{display:none}.me-coupons-page .un-use-coupons .use-remark{width:24%}.me-coupons-page .un-use-coupons .status{width:16%}.me-coupons-page .un-use-coupons .end-soon span{display:inline;padding:3px 10px;color:#fff;background:#e8044f}.me-coupons-page .used-coupons .coupon>*,.me-coupons-page .used-coupons .coupons-header>span{width:16.66%}.me-coupons-page .no-valid-coupons .coupon>*,.me-coupons-page .no-valid-coupons .coupons-header>span{width:25%}.me-currency-page{font-size:12px}.me-currency-page .currencies>.title{background-image:url(../assets/img/home/currency.png?v155e7e2c370)}.me-currency-page .my-currency{height:58px;line-height:58px;font-weight:700;border-bottom:1px solid #e8e8e8;font-size:18px;color:#333;margin:0 10px}.me-currency-page .my-currency em{color:#ff2400;font-weight:400}.me-currency-page .my-currency.has-tip{border-bottom:none}.me-currency-page .currency-tip{height:40px;line-height:24px;font-size:18px;color:#333;font-weight:700;margin:-16px 10px 0;border-bottom:1px solid #e8e8e8}.me-currency-page .currency-tip em{color:#ff2400;font-weight:400}.me-currency-page .currency,.me-currency-page .tab-wrap{margin:0 10px}.me-currency-page .tab-wrap{position:relative}.me-currency-page .tab-wrap .options-helper{position:absolute;right:10px;top:0}.me-currency-page .tab-wrap .coin-helper{margin-left:10px;color:#468fa2}.me-currency-page .tabs{margin-left:0;margin-right:0}.me-currency-page .currency-header{height:25px;line-height:25px;text-align:center;border:1px solid #e6e6e6;background:#efefef;margin:0 10px}.me-currency-page .currency-header span{display:block;float:left;font-size:14px;font-weight:700}.me-currency-page .currency-header .date{width:159px}.me-currency-page .currency-header .income-expenditure{width:317px}.me-currency-page .currency-header .remark{width:300px}.me-currency-page .currency{display:table;border:1px solid #e6e6e6;margin-bottom:20px;border-bottom:none}.me-currency-page .currency li{display:table-row;text-align:center;font-size:14px;height:50px;line-height:50px}.me-currency-page .currency li>*{display:table-cell;border-left:1px solid #e6e6e6;border-bottom:1px solid #e6e6e6;vertical-align:middle;color:#666;padding:5px;line-height:18px}.me-currency-page .currency li>:first-child{border-left:none}.me-currency-page .currency .date{width:155px}.me-currency-page .currency .remark{width:300px}.me-currency-page .currency .remark>a{color:#468fa2;margin-left:10px;text-decoration:underline}.me-currency-page .currency .income-expenditure{width:320px;color:#73a7b5}.me-currency-page .currency .income{color:#e10049}.me-favorite-page .favorite .title{background-image:url(../assets/img/home/favorite.png?v155e7e2c370)}.me-favorite-page .favorite-table-header{font-size:12px;padding:0}.me-favorite-page .favorite-table-header .options{width:136px}.me-favorite-page .fav-row{display:table;padding:10px 0;border-bottom:1px solid #e6e6e6}.me-favorite-page .fav-row>*{display:table-cell;vertical-align:middle}.me-favorite-page .fav-row .checkbox{width:40px;padding-left:10px}.me-favorite-page .del-favorite{color:#666;visibility:hidden;cursor:pointer}.me-favorite-page .fav-row:hover .del-favorite{visibility:visible}.me-favorite-page .empty-reduction,.me-favorite-page .favorite-articles,.me-favorite-page .favorite-brands,.me-favorite-page .favorite-products,.me-favorite-page .reduction-notice-tip{margin:0 10px;font-size:12px}.me-favorite-page .price-notice{position:absolute;width:320px;height:194px;z-index:12;top:50%;left:50%;margin-left:-160px;margin-top:-130px;background:#fff;border:1px solid #999;padding:20px;font-size:14px}.me-favorite-page .price-notice .close{position:absolute;display:block;top:5px;right:5px;width:46px;height:16px;cursor:pointer;background:#cdcdcd;color:#fff;border-radius:2px;font-size:12px}.me-favorite-page .price-notice .close:hover{background:#414141}.me-favorite-page .price-notice .price-notice-sure{display:block;width:82px;height:34px;line-height:34px;text-align:center;color:#fff;background:#e90024;font-weight:700;cursor:pointer;margin:20px auto 0}.me-favorite-page .price-notice .tip{line-height:20px;margin:20px 0}.me-favorite-page .price-notice label{margin-right:10px}.me-favorite-page .price-notice input{width:180px;height:30px;line-height:30px;color:#333;padding:0 5px;font-size:14px;border:1px solid #bebebe}.me-favorite-page .price-notice input.error{border-color:red}.me-favorite-page .price-notice .err-text{padding-left:70px;line-height:24px;color:red}.me-favorite-page .price-notice .err-text i{display:block;float:left;height:14px;width:14px;background-image:url(../assets/img/sprite.passport.png?v155e7e2f638);background-position:-95px -113px;margin-right:5px;margin-top:5px}.me-favorite-page .price-notice .phone-diff{color:red;line-height:18px}.me-favorite-page .price-notice .success{text-align:center}.me-favorite-page .price-notice .success p{font-size:14px;line-height:22px;margin-top:20px}.me-favorite-page .price-notice .success .iconfont{color:#51c516;font-size:24px}.me-favorite-page .price-notice .success .notice-num{color:#e20d29}.me-favorite-page .price-notice .cue{text-align:center;padding:70px 0 50px;display:none}.me-favorite-page .price-notice .cue span{color:#e90024}.me-favorite-page .price-notice .cue p{font-size:14px;line-height:22px}.me-favorite-page .error .content,.me-favorite-page .error .success{display:none}.me-favorite-page .error .cue{display:block}.me-favorite-page .reduction-notice-tip{border:1px solid #e7e7e7;padding:20px;margin-bottom:10px}.me-favorite-page .reduction-notice-tip .notice-text{width:245px;float:left}.me-favorite-page .reduction-notice-tip h2{color:#000;font-size:14px;line-height:1.5}.me-favorite-page .reduction-notice-tip p{padding:10px 0;color:#999;font-size:12px;line-height:1.5}.me-favorite-page .reduction-notice-tip .notice-img{float:right;width:458px;height:197px;background:url(../assets/img/home/reduction-notice.jpg?v155e7e2c758)}.me-favorite-page .empty-reduction{text-align:center;font-size:14px;border:1px solid #e7e7e7;padding:40px;margin-bottom:20px}.me-favorite-page .empty-reduction a{display:inline-block;width:92px;height:30px;line-height:30px;color:#666;text-align:center;cursor:pointer;background:#ededed;border:1px solid #dbdbdb;border-radius:3px}.me-favorite-page .reduction-products{margin-bottom:20px}.fav-products .favorite-products>ul{padding-bottom:20px}.fav-products .sorts{position:relative;padding:10px 35px 10px 10px;min-height:20px;line-height:20px;margin:0 10px 10px;background:#f3f3f3;border:1px solid #e6e6e6;color:#ccc}.fav-products .sorts .sort{height:20px;line-height:20px;color:#666;font-size:12px;display:inline-block}.fav-products .sorts .sort.focus{background:url(../assets/img/home/sort-select.png?v155e7e2c758) no-repeat 0;padding-left:18px;color:#fff}.fav-products .sorts .sort.focus a{display:inline-block;background:url(../assets/img/home/sort-select.png?v155e7e2c758) no-repeat 100%;font-weight:700;color:#fff}.fav-products .sorts .sep{margin:0 10px}.fav-products .sorts .has-more{margin-left:10px}.fav-products .all-sorts{display:none}.fav-products .sort-btn{position:absolute;display:block;width:19px;height:19px;line-height:19px;right:10px;top:10px;text-align:center;border:1px solid #ececec;background:#fff;cursor:pointer}.fav-products .sort-btn .iconfont{color:#000;font-size:12px}.fav-products .reduction-filter{height:30px;line-height:30px;text-align:right;font-size:12px;margin:0 10px}.fav-products .reduction-notice{float:left;color:#666}.fav-products .favorite-goods{margin:0 10px;font-size:12px}.fav-products .favorite-goods>ul{padding-bottom:20px}.fav-products .favorite-table-header .info{width:390px;padding-left:50px;text-align:left}.fav-products .favorite-table-header .price{width:200px;text-align:left}.fav-products .fav-good{position:relative}.fav-products .fav-good .thumb{width:110px;text-align:center}.fav-products .fav-good .thumb img{width:100px}.fav-products .fav-good .text-info{width:270px;line-height:16px}.fav-products .fav-good .name{color:#468fa2;display:block}.fav-products .fav-good .name:hover{text-decoration:underline}.fav-products .fav-good .has-bought{display:inline-block;width:37px;height:15px;line-height:15px;text-align:center;color:#fff;background:#418fa3;border-radius:2px}.fav-products .fav-good .has-activity{color:#666;cursor:pointer}.fav-products .fav-good .price{width:200px;padding-left:10px}.fav-products .fav-good .price>em{font-weight:700;color:#e8044f;font-size:14px}.fav-products .fav-good .price .price-down{display:block;margin-top:5px}.fav-products .fav-good .price .price-down>em{color:#e8044f}.fav-products .fav-good .price .price-down .iconfont{font-size:12px}.fav-products .fav-good .options{width:136px;text-align:center}.fav-products .fav-good .options>*{display:block}.fav-products .fav-good .options .buy-again,.fav-products .fav-good .options .buy-now{width:92px;height:30px;line-height:30px;font-size:14px;text-align:center;border-radius:4px;margin:0 auto}.fav-products .fav-good .options .buy-now{color:#fff;background:#da044a}.fav-products .fav-good .options .buy-again{color:#666;background:#ececec;border:1px solid #cecece}.fav-products .fav-good .options .price-down-clock{line-height:20px;color:#666;cursor:pointer}.fav-products .fav-good .options .sold-out{color:#666}.fav-products .fav-good .options .buy-again,.fav-products .fav-good .options .buy-now,.fav-products .fav-good .options .sold-out{margin-top:12px}.fav-products .fav-good .activites{position:absolute;left:160px;right:0;top:120px;padding:10px 0;border-top:1px dashed #ccc}.fav-products .fav-good .activites li{line-height:18px}.fav-products .fav-good .activites .type{display:inline-block;width:54px;height:14px;line-height:14px;margin-right:5px;overflow:hidden;background:#6c6c6c;border-radius:2px;color:#fff;text-align:center;vertical-align:middle}.fav-products .fav-good .activites .arrow{position:absolute;width:13px;left:20px;top:-7px;height:7px;background-image:url(../assets/img/sprite.home.png?v155e7e2f638);background-position:-48px -31px}.fav-products .fav-good:hover{background:#f3f3f3}.fav-brands .favorite-brands>ul{padding-bottom:20px}.fav-brands .favorite-table-header .name{width:190px;padding-left:50px;text-align:left}.fav-brands .favorite-table-header .col-count,.fav-brands .favorite-table-header .new-arrival{width:200px}.fav-brands .fav-brand{position:relative;font-size:12px}.fav-brands .fav-brand .thumb{width:190px}.fav-brands .fav-brand .thumb a{display:block;width:115px;padding:5px;text-align:center;border:1px solid #f4f4f4}.fav-brands .fav-brand .thumb .name{display:block;background:#f4f4f4;color:#666;line-height:18px}.fav-brands .fav-brand .thumb img{width:100px;height:100px}.fav-brands .fav-brand .col-count,.fav-brands .fav-brand .new-arrival{width:200px;text-align:center}.fav-brands .fav-brand .new-arrival{cursor:pointer}.fav-brands .fav-brand .options{width:136px;text-align:center}.fav-brands .fav-brand .brand-shop{display:block;width:92px;height:30px;line-height:30px;border:1px solid #c2c2c2;background:#ececec;text-align:center;cursor:pointer;margin:14px auto 10px;border-radius:2px;color:#666;font-size:14px}.fav-brands .fav-brand .na-list{position:absolute;left:50px;right:0;top:152px;padding:10px 0;border-top:1px dashed #ccc}.fav-brands .fav-brand .na-list .arrow{position:absolute;width:13px;left:265px;top:-7px;height:7px;background-image:url(../assets/img/sprite.home.png?v155e7e2f638);background-position:-48px -31px}.fav-brands .fav-brand .na-good{width:102px;height:165px;padding:0 15px;text-align:left}.fav-brands .fav-brand .na-good-thumb{border:1px solid #ccc;width:100px;height:100px;vertical-align:middle}.fav-brands .fav-brand .na-good-name{color:#666;line-height:14px;margin:5px 0;max-height:28px;overflow:hidden}.fav-brands .fav-brand .na-content>*{float:left}.fav-brands .fav-brand .has-no-na{text-align:center;float:none;padding:20px 183px 20px 0}.fav-brands .fav-brand .has-sale{text-decoration:line-through}.fav-brands .fav-brand .na-next,.fav-brands .fav-brand .na-pre{display:block;width:31px;height:31px;line-height:33px;text-align:center;background:#f4f4f4;border:1px solid #eee;margin-top:66px}.fav-brands .fav-brand .na-next.hidden,.fav-brands .fav-brand .na-pre.hidden{visibility:hidden}.fav-brands .fav-brand .na-goods{width:660px;height:165px;padding-top:20px;overflow:hidden}.fav-brands .fav-brand .na-goods-ul{width:2640px}.fav-brands .fav-brand .na-goods-ul>li{float:left}.fav-articles .favorite-articles>ul{padding-bottom:20px}.fav-articles .fav-article:first-child{padding-top:8px}.fav-articles .bg-img{display:block;width:146px;height:96px;backgound-size:cover;background-position:50%}.fav-articles .text-info{width:559px;padding-left:20px}.fav-articles .name{display:block;font-weight:700;font-size:14px;line-height:30px;color:#000;width:550px;word-break:keep-all;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.fav-articles .name:hover{text-decoration:underline}.fav-articles .desc{color:#333;font-size:12px;line-height:24px;height:48px}.fav-articles .del-favorite{float:right;font-size:12px;cursor:pointer}.user-me-page{font-size:12px;line-height:150%}.user-me-page form{display:inline}.user-me-page strong{font-weight:700}.user-me-page .clear{zoom:1}.user-me-page .clear:after{content:".";display:block;height:0;visibility:hidden;overflow:hidden;clear:both}.user-me-page .userinfo-edit form{display:none}.user-me-page .userinfo-edit h2.title{background-image:url(../assets/img/home/edit/title-informations.png?v155e7e2c758)}.user-me-page .account,.user-me-page .email,.user-me-page .gift,.user-me-page .mobile,.user-me-page .userpwd{font-size:12px;line-height:150%}.user-me-page .account .title,.user-me-page .email .title,.user-me-page .gift .title,.user-me-page .mobile .title,.user-me-page .userpwd .title{position:relative}.user-me-page .account .title h2,.user-me-page .email .title h2,.user-me-page .gift .title h2,.user-me-page .mobile .title h2,.user-me-page .userpwd .title h2{height:16px;font-size:14px;font-weight:700;line-height:16px;position:absolute;top:50%;margin-top:-8px}.user-me-page .account .title h2 span,.user-me-page .email .title h2 span,.user-me-page .gift .title h2 span,.user-me-page .mobile .title h2 span,.user-me-page .userpwd .title h2 span{font-size:10px;-webkit-transform:scale(.85);display:inline-block;line-height:15px;font-weight:400;padding-left:0}.user-me-page .address{font-family:arial,Microsoft YaHei}.user-me-page .address a{color:#468fa2;text-decoration:none}.user-me-page .address .a-underline{text-decoration:underline}.user-me-page .address input[type=button]{margin-top:0}.user-me-page .address input#address{width:340px}.user-me-page .address .title{position:relative}.user-me-page .address .title h2{width:66px;height:16px;background:url(../assets/img/home/edit/title-address.png?v155e7e2c758) no-repeat;text-indent:-999em;float:left;position:absolute;top:50%;margin-top:-8px}.user-me-page .address .main{width:798px;padding:10px 1px 1px;float:left;border:1px solid #dedede;border-radius:2px}.user-me-page .address .address-list{width:776px;margin:0 10px;display:inline;border:1px solid #e6e6e6;border-bottom:0;float:left}.user-me-page .address .address-content{width:756px;padding:10px;border-bottom:1px solid #e6e6e6;float:left}.user-me-page .address .address-content.preferred{background:#fdfcdd;color:#333}.user-me-page .address .address-detail{width:596px;float:left}.user-me-page .address .address-edit{width:150px;padding:10px 0 10px 10px;text-align:center;float:left}.user-me-page .address.block{border:none}.user-me-page .btn-c3{height:22px;background:url(../assets/img/home/edit/btn_hs.png?v155e7e2c758) no-repeat left -66px;padding-left:8px;display:inline-block}.user-me-page .btn-c3 span{height:22px;line-height:21px;background:url(../assets/img/home/edit/btn_hs.png?v155e7e2c758) no-repeat right -66px;padding-right:10px;display:inline-block;cursor:pointer;color:#fff}.user-me-page .btn-c2{height:22px;background:url(../assets/img/home/edit/btn_hs.png?v155e7e2c758) no-repeat left -44px;padding-left:8px;display:inline-block}.user-me-page .btn-c2 span{height:22px;line-height:21px;background:url(../assets/img/home/edit/btn_hs.png?v155e7e2c758) no-repeat right -44px;padding-right:10px;display:inline-block;cursor:pointer;color:#b3b3b3}.user-me-page .main-info{border-top:1px solid #ddd;padding:20px 10px 10px}.user-me-page .main-info .p1{padding-bottom:10px;font-weight:700}.user-me-page .main-info .blue2{color:#468fa2}.user-me-page .block{min-height:375px;height:auto}.user-me-page .block form#giftCardForm,.user-me-page .block form#pwdform,.user-me-page .block form.first{display:block}.user-me-page .edit-box{padding:10px 11px 11px}.user-me-page .form-group{height:30px;border:1px solid #fff;margin-bottom:2px;line-height:22px;font-size:12px;font-family:Arial,helvetica,sans-serif}.user-me-page .form-group label{width:80px;text-align:right;color:#333;float:left}.user-me-page .plain{color:#666;font-weight:700}.user-me-page .width-300{width:300px}.user-me-page .width-150{width:150px}.user-me-page .input-1{height:20px;line-height:20px;color:#333;border:1px solid #c9c9c9;background:url(../assets/img/home/edit/input_1.png?v155e7e2c758) repeat-x #fff;vertical-align:top}.user-me-page .btn-b1{width:118px;height:34px;border:0;background:url(../assets/img/home/edit/btn_b1.png?v155e7e2c758) no-repeat;color:#fff;font-size:14px;font-weight:700;padding-right:10px;cursor:pointer;display:inline-block;margin-top:12px;margin-left:80px}.user-me-page #btn-reset{margin-left:0}.user-me-page .tips-p{margin-left:10px;color:#999;display:inline-block}.user-me-page .box{width:778px;clear:both;padding-top:10px;margin-bottom:10px;float:left}.user-me-page .sub-title{clear:both;height:21px;line-height:21px;padding-left:23px;background:url(../assets/img/home/edit/ico_arrow2.png?v155e7e2c758) no-repeat 5px 5px #efefef;border:1px solid #e6e6e6;font-size:12px;color:#333;font-weight:400;cursor:pointer;margin-bottom:2px}.user-me-page .sub-title .more{padding:2px 10px 0 0;float:right}.user-me-page .sub-title .btn-edit{width:37px;height:17px;background:url(../assets/img/home/edit/btn_edit.png?v155e7e2c758) no-repeat;display:inline-block;overflow:hidden;border:0}.user-me-page .user-personal-info .user-info{width:552px;padding-right:38px;float:left}.user-me-page .user-personal-info .user-profile{width:148px;padding:18px;text-align:center;float:right;border-left:1px solid #e0e0e0}.user-me-page .user-personal-info .user-profile img{width:100px;height:100px;margin-bottom:10px}.user-me-page .user-favorite-info ul{clear:both;width:750px;padding:0 20px 0 0;float:left}.user-me-page .user-favorite-info ul li{height:22px;padding-left:20px;float:left;font-size:12px}.user-me-page .user-favorite-info .brand-box{width:725px;margin:0 0 10px 20px;display:inline;padding:5px 10px 5px 0;border:1px solid #ccc;background:#f8f8f8;color:#000}.user-me-page .user-favorite-info .brand-box li{height:22px;line-height:22px;padding:0 0 0 10px;float:left;display:inline-block;white-space:nowrap}.user-me-page .user-favorite-info .btn-del{height:20px;line-height:20px;border:0;padding-left:18px;background:url(../assets/img/home/edit/ico_del.png?v155e7e2c758) no-repeat 0 2px;color:#468fa2;display:inline-block;overflow:hidden;text-decoration:none;vertical-align:middle}.user-me-page .user-favorite-info .btn-submit-sm{width:56px;height:20px;border:0;font-size:12px;color:#fff;line-height:20px;padding:0;margin:0;background:url(../assets/img/home/edit/btn_s1_z2.png?v155e7e2c758) repeat-x;text-align:center;display:inline-block;cursor:pointer}.user-me-page .user-favorite-info span{color:#999;line-height:25px;display:inline-block}.user-me-page .user-favorite-info .form-group{clear:both;width:730px;padding:0 20px 5px;float:left}.user-me-page .account-row{padding:30px 0;border-bottom:1px solid #ddd}.user-me-page .account-row .content{height:32px;line-height:32px;position:relative}.user-me-page .account-row .content div{float:left;display:inline-block}.user-me-page .account-row .content .left-content{width:200px}.user-me-page .account-row .content .middle-content{width:500px}.user-me-page .account-row .content .middle-content .tip{color:#666}.user-me-page .account-row .content .middle-content .tip.red{color:#e01}.user-me-page .account-row .content .right-content{width:75px;height:20px;line-height:20px;position:absolute;top:50%;margin-top:-10px;text-align:center}.user-me-page .account-row .center{text-align:center}.user-me-page .account-row a{text-decoration:none;color:#666;outline:none}.user-me-page .account-row [class*=" icon-"],.user-me-page .account-row [class^=icon-]{height:32px;line-height:32px;vertical-align:middle;display:inline-block;padding-left:42px;margin-left:20px}.user-me-page .account-row .icon-ok{background:url(../assets/img/home/edit/icon-32.png?v155e7e2c758) no-repeat 0 0}.user-me-page .account-row .icon-warning{background:url(../assets/img/home/edit/icon-32.png?v155e7e2c758) no-repeat 0 -32px}.user-me-page .account-row .account-type{font-size:18px;line-height:32px;display:inline-block;padding-left:20px}.user-me-page .button-icon20{padding-left:5px;background:url(../assets/img/home/edit/btn_bg_20.png?v155e7e2c758) no-repeat left 0;display:inline-block;cursor:pointer}.user-me-page .button-icon20 i{font-style:normal;background:url(../assets/img/home/edit/btn_bg_20.png?v155e7e2c758) repeat-x left -20px;display:inline-block;height:20px;line-height:20px;text-align:center}.user-me-page .button-sliver20 i{background-position:left -80px;width:52px}.user-me-page .button-icon20 span{background:url(../assets/img/home/edit/btn_bg_20.png?v155e7e2c758) no-repeat right -40px;display:inline-block;padding-right:5px}.user-me-page .button-sliver20 span{background-position:right -100px}.user-me-page .button-sliver20{background-position:left -60px}.user-me-page .gift-box{padding:10px 11px 11px}.user-me-page .gift-box h2{height:16px;font-size:14px;font-weight:700;line-height:16px}.user-me-page .gift-box li{font-size:12px;font-family:arial,Microsoft YaHei;margin-bottom:25px}.user-me-page .gift-box .gift-input{width:60px;height:20px;line-height:20px;color:#333;border:1px solid #c9c9c9;background:url(../assets/img/home/edit/input_1.png?v155e7e2c758) repeat-x #fff}.user-me-page .gift-box .gift-error{color:red;margin-left:10px}.user-me-page .gift-box #imgcode{border:0;vertical-align:middle;outline:none;cursor:pointer}.user-me-page .gift-box .check-img{color:#468fa2;text-decoration:underline}.user-me-page .gift-box .btn-b1{margin:0}.user-me-page .form-error{background:url(../assets/img/home/onError.png?v155e7e2c758) no-repeat 5px 9px #fff2e8;color:#e8044f}.user-me-page .form-error,.user-me-page .form-success{padding-left:25px;padding-right:5px;font-size:12px;line-height:30px;height:30px;display:inline-block;margin-left:5px}.user-me-page .form-success{background:url(../assets/img/home/onCorrect.png?v155e7e2c758) no-repeat 5px 9px #e9ffeb;color:green}.user-me-page .form-focus,.user-me-page .form-prompt{background:url(../assets/img/home/onShow.png?v155e7e2c758) no-repeat 5px 9px;padding-left:25px;font-size:12px;line-height:30px;height:30px;display:inline-block;color:#999}.user-me-page .form-focus{background:url(../assets/img/home/onShow.png?v155e7e2c758) no-repeat 5px 9px #e9f0ff;color:#666}.user-me-page .add-address{width:778px;padding:10px 0;float:left}.user-me-page .add-address h2{clear:both;height:21px;line-height:21px;padding-left:23px;margin-left:10px;background:url(../assets/img/home/edit/ico_arrow2.png?v155e7e2c758) no-repeat 5px 5px #efefef;border:1px solid #e6e6e6;font-size:12px;color:#333;font-weight:400}.user-me-page .add-address .form-group{width:130%}.user-me-page .add-address .add-address-detail{padding:10px 0}.user-me-page .add-address .add-address-detail .form-info{vertical-align:middle;line-height:22px;height:22px;background-position:5px 5px}.user-me-page .add-address #btnReset{margin-left:0}.user-me-page .gift-fail,.user-me-page .gift-ok{padding:50px 260px;height:310px;display:block}.user-me-page .gift-fail h3,.user-me-page .gift-ok h3{font-size:18px;height:22px;line-height:25px;padding-left:25px;color:#000;background:url(../assets/img/home/edit/ico_i_sf.png?v155e7e2c758) no-repeat}.user-me-page .gift-fail .fail,.user-me-page .gift-ok .fail{background-position:0 -22px}.user-me-page .gift-fail .input-again,.user-me-page .gift-ok .input-again{text-decoration:underline;color:#c4153a}.user-me-page .gift-fail .input-again:active,.user-me-page .gift-fail .input-again:hover,.user-me-page .gift-ok .input-again:active,.user-me-page .gift-ok .input-again:hover{color:#c4153a}.user-me-page .gift-fail .success,.user-me-page .gift-ok .success{background-position:0 0}.user-me-page .gift-fail .currency-info,.user-me-page .gift-ok .currency-info{margin-top:20px;padding-left:25px}.user-me-page .gift-fail .gift-red,.user-me-page .gift-ok .gift-red{color:#bc0029;font-size:16px;font-weight:700;margin-left:5px}.user-me-page .gift-fail .yoho-currency,.user-me-page .gift-ok .yoho-currency{font-size:16px;font-weight:700;color:#3e3e3e}.user-me-page .check-safe{padding:10px 11px 11px;height:auto;overflow:hidden}.user-me-page .check-safe .form-success{background:url(../assets/img/home/onCorrect.png?v155e7e2c758) no-repeat 5px 9px}.user-me-page .check-safe .progress-bar{width:780px;height:24px}.user-me-page .check-safe .progress-bar li{float:left;width:260px;color:#666;text-align:center;height:24px;line-height:24px}.user-me-page .check-safe .progress-bar li.cur{color:#fff}.user-me-page .check-safe .progress1{background:url(../assets/img/home/edit/icon-bar.png?v155e7e2c758) no-repeat}.user-me-page .check-safe .progress2{background:url(../assets/img/home/edit/icon-bar.png?v155e7e2c758) no-repeat 0 -24px}.user-me-page .check-safe .progress3{background:url(../assets/img/home/edit/icon-bar.png?v155e7e2c758) no-repeat 0 -48px}.user-me-page .check-safe input[type=password],.user-me-page .check-safe input[type=text]{height:28px;border:1px solid #bebebe;line-height:28px;padding:0 5px}.user-me-page .check-safe .form-nav{padding:30px 0}.user-me-page .check-safe .form-nav ul{width:690px;margin:0 auto}.user-me-page .check-safe .form-nav li{padding:10px 0;float:left}.user-me-page .check-safe .form-nav .safe-form-l{float:left;width:220px;line-height:30px;padding:0 5px;text-align:right}.user-me-page .check-safe .form-nav .safe-form-r{width:422px;line-height:30px;float:left}.user-me-page .check-safe .form-nav .input-text{width:208px}.user-me-page .check-safe .form-nav .input-code{width:54px;margin-right:5px}.user-me-page .check-safe .form-nav #the-code-img{border:0;vertical-align:middle;outline:none;height:30px;cursor:pointer}.user-me-page .check-safe .form-nav .change-code{height:30px;padding:0 0 0 5px;line-height:15px;display:inline-block;vertical-align:middle;color:#666}.user-me-page .check-safe .form-nav .the-code{color:#468fa2}.user-me-page .check-safe .form-nav .btn-b1{margin:0}.user-me-page .check-safe .form-nav .check-info{display:inline-block;vertical-align:top}.user-me-page .check-safe .form-nav .input-error{border:2px solid #e8044f;height:26px;padding:0 4px}.user-me-page .feedback dt{height:20px;line-height:20px;background:url(../assets/img/home/suggest-icon.png?v155e7e2c758) no-repeat 2px 3px;padding:0 0 0 20px;float:left;font-family:arial,Microsoft YaHei;font-size:12px}.user-me-page .feedback dt a{color:#468fa2}.user-me-page .feedback dd{float:right}.user-me-page .button-top{width:66px;height:22px;padding-left:10px;line-height:21px;border:0;text-align:center;background:url(../assets/img/home/btn_top.png?v155e7e2c370) no-repeat;color:#666;font-size:12px;cursor:pointer;display:inline-block}.user-me-page .rgb6{color:#666}.user-me-page .font14{font-size:14px}.user-me-page .button-icon{padding-left:5px;background:url(../assets/img/home/button-icon.png?v155e7e2c370) no-repeat left 0;display:inline-block;cursor:pointer}.user-me-page .button-icon i{font-style:normal;background:url(../assets/img/home/button-icon.png?v155e7e2c370) repeat-x left -33px;display:inline-block;height:33px;line-height:33px;text-align:center}.user-me-page .button-icon span{background:url(../assets/img/home/button-icon.png?v155e7e2c370) no-repeat right -66px;display:inline-block;padding-right:5px}.user-me-page .button-red{background-position:left -99px;color:#fff}.user-me-page .button-red i{background-position:left -134px;width:120px}.user-me-page .button-red i .btn-jt{background:url(../assets/img/home/btn-jt.png?v155e7e2c370) no-repeat;width:5px;height:8px;display:inline-block;margin-left:10px}.user-me-page .button-red span{background-position:right -169px}.user-me-page .button-sliver i{width:100px;color:#666}.user-me-page .result-email,.user-me-page .result-info{padding:30px 0;min-height:360px;width:616px;margin:0 auto;text-align:center}.user-me-page .result-email p,.user-me-page .result-info p{line-height:24px}.user-me-page .result-email .info-detail,.user-me-page .result-info .info-detail{margin-top:20px;text-align:left}.user-me-page .result-email .button-icon,.user-me-page .result-info .button-icon{margin-top:20px}.user-me-page .result-email{text-align:left;width:400px}.user-me-page .res-info{height:24px;line-height:51px;padding-left:28px;font-size:20px;color:#000;line-height:24px;display:inline-block}.user-me-page .res-success{background:url(../assets/img/home/icon-24.png?v155e7e2c758) no-repeat}.user-me-page .res-error{background:url(../assets/img/home/icon-24.png?v155e7e2c758) no-repeat 0 -24px;color:red}.returns-me-page .returns .title{background-image:url(../assets/img/home/returns.png?v155e7e2c758)}.returns-me-page .operation,.returns-me-page .return-status,.returns-me-page .time{width:100px;border-left:1px solid #e6e6e6}.returns-me-page .return-type{width:80px;border-left:1px solid #e6e6e6}.returns-me-page .order-table-header{padding:0;margin:10px;border:1px solid #e6e6e6}.returns-me-page .order-table-header>span{text-align:center;border-left:none}.returns-me-page .order-table-header .info{width:384px;padding-left:10px;text-align:left}.returns-me-page .order-wrap li{border-top:none}.returns-me-page .order-wrap li .info{width:384px;padding:5px 0 5px 10px}.returns-me-page .order-wrap li .text-info{width:300px;right:0;bottom:15px}.returns-me-page .order-wrap li .text-info .name{max-width:300px}.returns-me-page .order-wrap li .text-info .name:hover{text-decoration:underline}.detail-me-page{font-size:12px}.detail-me-page .returns-detail .title{background-image:url(../assets/img/home/returns.png?v155e7e2c758)}.detail-me-page .order-info{background:#efefef;padding:10px}.detail-me-page .order-info span{color:#468fa2;margin:0 8px}.detail-me-page .visual-return-state{margin:40px auto;height:40px;width:560px;background:url(../assets/img/home/exchange-bg.png?v155e7e2c370) no-repeat top}.detail-me-page .visual-return-state li{width:112px;padding:20px 0 0;text-align:center;float:left}.detail-me-page .visual-return-state .act{background:url(../assets/img/home/detail-act.png?v155e7e2c370) no-repeat top}.detail-me-page .detail-container{padding:10px}.detail-me-page .detail-container h2{height:21px;line-height:21px;padding-left:23px;background:url(../../../img/home/complaint-icon.png?v155c9ef7750) no-repeat 5px 5px #efefef;border:1px solid #e6e6e6;font-size:12px;color:#333;font-weight:400;margin-bottom:10px}.detail-me-page .detail-container .courier-code{margin:60px auto;text-align:center}.detail-me-page .detail-container .courier-code .express-edit-box{display:none}.detail-me-page .detail-container .courier-code button{padding:5px 15px}.detail-me-page .detail-container .in-edit .express-view-box{display:none}.detail-me-page .detail-container .in-edit .express-edit-box{display:block}.detail-me-page .detail-container .main-detail table{width:100%}.detail-me-page .detail-container .main-detail table tr{border:1px solid #e6e6e6}.detail-me-page .detail-container .main-detail table td{text-align:left;padding:8px 10px;border:none;color:#333}.detail-me-page .detail-container .word-h{display:none}.detail-me-page .detail-container .refund-tips{color:#999;margin-top:10px;margin-bottom:40px}.detail-me-page .exchange-detail .word-t{display:none}.detail-me-page .exchange-detail .word-h{display:inline-block}.detail-me-page .exchange-detail .refund-tips span{display:none}.apply-returns-page{font-size:12px}.apply-returns-page .title{background-image:url(../assets/img/home/refund-apply.png?v155e7e2c758)}.apply-returns-page .exchange .title{background-image:url(../assets/img/home/exchange-apply.png?v155e7e2c370)}.apply-returns-page select{width:85px;font-size:12px;outline:none}.apply-returns-page .apply-container{padding:10px}.apply-returns-page .apply-container .return-prompt{padding:20px;border:1px solid #e6e6e6;margin-bottom:10px;line-height:21px;color:#333}.apply-returns-page .apply-container .return-prompt span{color:red}.apply-returns-page .apply-container .return-prompt .footwear-tip{height:142px;line-height:18px;margin-top:20px;padding-left:536px;background:url(../assets/img/home/footwear-tips.jpg?v155e7e2c758) no-repeat}.apply-returns-page .apply-container .return-prompt .footwear-tip span{color:#666}.apply-returns-page .apply-container .return-prompt .footwear-tip span:first-child{display:block;margin-bottom:15px}.apply-returns-page .apply-container h2{height:21px;line-height:21px;padding-left:23px;background:url(../assets/img/home/complaint-icon.png?v155e7e2c370) no-repeat 5px 5px #efefef;border:1px solid #e6e6e6;font-size:12px;color:#333;font-weight:400}.apply-returns-page .apply-container .goods-list-table{width:100%;margin-bottom:10px}.apply-returns-page .apply-container .goods-list-table tr{border:1px solid #e6e6e6;height:18px;line-height:18px}.apply-returns-page .apply-container .goods-list-table tr th{text-align:center;background:#efefef;padding:5px;color:#333}.apply-returns-page .apply-container .goods-list-table tr th:first-child{text-align:left}.apply-returns-page .apply-container .goods-list-table tr td{color:#666;padding:5px}.apply-returns-page .apply-container .goods-list-table .return-goods-info>*{display:block}.apply-returns-page .apply-container .goods-list-table .return-goods-info a{color:#468fa2;text-decoration:none;max-width:250px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.apply-returns-page .apply-container .goods-list-table .return-goods-info span{color:#999}.apply-returns-page .apply-container .goods-list-table .exchange-choose-wrap{width:185px;border:1px solid #e6e6e6;text-align:center}.apply-returns-page .apply-container .goods-list-table .exchange-choose-wrap p{line-height:29px}.apply-returns-page .apply-container .goods-list-table .exchange-choose-wrap select{width:85px}.apply-returns-page .apply-container .goods-list-table .refund-price{width:185px;color:#666;font-weight:700;text-align:center}.apply-returns-page .apply-container .goods-list-table .return-reason-wrap{width:200px;text-align:center}.apply-returns-page .apply-container .goods-list-table .return-reason-wrap select{width:190px}.apply-returns-page .apply-container .goods-list-table .return-reason-wrap label{color:#999;padding:4px 20px;background:#f5f5f5;border:1px solid #dadada}.apply-returns-page .apply-container .goods-list-table .border-style{border:1px solid #e6e6e6}.apply-returns-page .apply-container .goods-list-table .ex-tips,.apply-returns-page .apply-container .goods-list-table .re-tips{text-align:left;padding-left:10px;color:#666}.apply-returns-page .apply-container .goods-list-table .problem-description{display:none}.apply-returns-page .apply-container .goods-list-table .problem-description .left-title{width:160px;text-align:right;padding-right:15px}.apply-returns-page .apply-container .goods-list-table .problem-description .left-title .red-icon{color:red}.apply-returns-page .apply-container .goods-list-table .problem-description textarea{width:545px;height:75px;max-width:545px;max-height:300px;padding:5px;border:1px solid #ccc}.apply-returns-page .apply-container .goods-list-table .problem-description .up-image-tips{width:545px;background:#f5f5f5;border:1px solid #ccc;margin-bottom:15px;padding:3px 5px}.apply-returns-page .apply-container .goods-list-table .problem-description .up-image-list li{float:left;width:126px;height:126px;border:1px solid #ccc;padding:2px;display:inline-block;vertical-align:bottom;margin:0 0 10px 10px;background:url(../assets/img/home/up-pic-back.png?v155e7e2c758) no-repeat;position:relative}.apply-returns-page .apply-container .goods-list-table .problem-description .up-image-list li:first-child{margin-left:0}.apply-returns-page .apply-container .goods-list-table .problem-description .up-image-list .btn-del{padding:8px;background:url(../assets/img/home/del-icon.png?v155e7e2c370) no-repeat;color:#468fa2;display:inline-block;position:absolute;right:-1px;z-index:5;cursor:pointer}.apply-returns-page .apply-container .goods-list-table .problem-description .swfupload{background:#000}.apply-returns-page .apply-container .goods-list-table .problem-description .btn_upload_text{font-family:SimHei;font-size:16px;font-weight:700}.apply-returns-page .apply-container .refund-detail{padding-top:20px;text-align:center}.apply-returns-page .apply-container .refund-detail p{margin-bottom:25px}.apply-returns-page .apply-container .refund-detail p input[type=radio]{vertical-align:middle;margin:0 5px 0 40px}.apply-returns-page .apply-container .refund-detail .refund-pay-info p{height:23px;line-height:22px;padding-top:11px;color:#666;background:url(../assets/img/home/refund_tips.png?v155e7e2c758) no-repeat;display:none}.apply-returns-page .apply-container .refund-detail .refund-pay-info tr{display:none}.apply-returns-page .apply-container .refund-detail .refund-pay-info .type-yoho-tips{width:515px;margin-left:160px}.apply-returns-page .apply-container .refund-detail .refund-pay-info .type-bank-tips{width:290px;margin-left:260px;background-position:0 -35px}.apply-returns-page .apply-container .refund-detail .refund-pay-info .type-alipay-tips{width:290px;margin-left:260px;background-position:0 -70px}.apply-returns-page .apply-container .refund-detail .refund-pay-table{width:100%;margin-bottom:25px}.apply-returns-page .apply-container .refund-detail .refund-pay-table td{padding:5px 0 5px 5px}.apply-returns-page .apply-container .refund-detail .refund-pay-table tr td:first-child{width:310px;text-align:right}.apply-returns-page .apply-container .exchange-detail{padding:30px}.apply-returns-page .apply-container .exchange-detail dt{font-weight:700;font-size:14px;color:#333;margin:10px 0}.apply-returns-page .apply-container .exchange-detail dd{padding:10px 5px}.apply-returns-page .apply-container .exchange-detail dd input[type=radio]{margin-left:50px;margin-top:0;vertical-align:middle}.apply-returns-page .apply-container .exchange-detail dd input[type=radio]:first-child{margin-left:0}.apply-returns-page .apply-container .exchange-detail dd>label{line-height:20px;width:100px;float:left;display:block}.apply-returns-page .apply-container .exchange-detail dd>label span{color:red}.apply-returns-page .apply-container .submit-box{text-align:center;margin-bottom:30px}.apply-returns-page .apply-container .submit-box .save-btn{width:138px;height:34px;border:0;background:url(../assets/img/home/submit-btn.png?v155e7e2c758) no-repeat;color:#fff;font-size:14px;font-weight:700;padding-right:20px;cursor:pointer;display:inline-block;outline:none}.apply-returns-page .apply-container .submit-box .wait-gif{width:138px;height:34px;line-height:34px;font-size:14px;color:#8c8686;background:url(../assets/img/home/return-waiting.png?v155e7e2c758) no-repeat top;vertical-align:top;display:none}.apply-returns-page .apply-container .submit-box .wait-gif span{display:inline-block;width:32px;text-align:left;padding-left:4px}.apply-returns-page .apply-container .applying .save-btn{display:none}.apply-returns-page .apply-container .applying .wait-gif{display:inline-block}.save-returns-page .title{background-image:url(../assets/img/home/refund-apply.png?v155e7e2c758)}.save-returns-page .exchange .title{background-image:url(../assets/img/home/exchange-apply.png?v155e7e2c370)}.save-returns-page .save-container{padding:10px}.save-returns-page .save-container h2{height:21px;line-height:21px;padding-left:23px;background:url(../assets/img/home/complaint-icon.png?v155e7e2c370) no-repeat 5px 5px #efefef;border:1px solid #e6e6e6;font-size:12px;color:#333;font-weight:400}.save-returns-page .save-container .save-prompt{width:527px;margin:0 auto;padding:100px 0}.save-returns-page .save-container .save-prompt h1{font-size:30px;color:#9c0;margin-bottom:20px;font-weight:700;background:url(../assets/img/home/return-success-icon.png?v155e7e2c758) no-repeat;cursor:pointer;display:inline-block;height:31px;line-height:31px;padding-left:45px}.save-returns-page .save-container .save-prompt p{font-size:12px;color:#999;line-height:23px}.save-returns-page .save-container .save-prompt p span{color:#9c0}.save-returns-page .save-container .save-prompt .retund-address{font-size:15px;font-weight:700;color:#333;margin-bottom:15px}.save-returns-page .save-container .save-prompt .backto-center{margin-top:30px}.save-returns-page .save-container .save-prompt .backto-center label{width:174px;height:35px;line-height:33px;font-size:14px;font-weight:700;color:#fff;text-align:center;display:inline-block;background:url(../assets/img/home/back-returns-btn.png?v155e7e2c370) no-repeat;cursor:pointer}.save-returns-page .save-container .save-prompt .backto-center a:first-child{margin-right:15px}.save-returns-page .save-container .save-prompt .backto-center a:first-child label{background:url(../assets/img/home/back-orders-btn.png?v155e7e2c370) no-repeat}.consult-me-page{font-size:12px}.consult-me-page .consult .title{background-image:url(../assets/img/home/consult.png?v155e7e2c370)}.consult-me-page .consults{margin:10px}.consult-me-page .consults-table{width:100%;border:1px solid #e6e6e6}.consult-me-page .consults-table th{height:28px;line-height:28px;background:#efefef;padding:0 5px}.consult-me-page .consults-table td{color:#666;border-top:1px solid #e6e6e6;padding:5px;line-height:18px}.consult-me-page .consults-table td .thumb{width:60px;height:60px}.consult-me-page .consults-table td a{color:#468fa2;text-decoration:none}.consult-me-page .consults-table td a:hover{text-decoration:underline}.consult-me-page .consults-table td p{padding-left:20px;margin-top:5px;color:#999;word-break:break-all;overflow:hidden}.consult-me-page .consults-table td .question{color:#e9034e;background:url(../assets/img/home/consult-wd.png?v155e7e2c370) no-repeat -13px 2px}.consult-me-page .consults-table td .reply{color:#390;background:url(../assets/img/home/consult-wd.png?v155e7e2c370) no-repeat 0 -25px}.comment-me-page .comment .title{background-image:url(../assets/img/home/comment.png?v155e7e2c370)}.comment-me-page .me-comment{padding:10px;font-size:12px;line-height:18px}.comment-me-page .main-tip span{color:#e8044f}.comment-me-page .comment-table-header{padding:0;margin-top:10px}.comment-me-page .comment-table-header .info{width:260px}.comment-me-page .comment-table-header .time{width:415px;border-left:1px solid #e6e6e6;border-right:1px solid #e6e6e6}.comment-me-page .comment-table-header .type{width:98px}.comment-me-page .comment-table{width:100%;margin-top:10px}.comment-me-page .comment-table tr{border:1px solid #e6e6e6}.comment-me-page .comment-table tr th{background:#efefef;padding:5px}.comment-me-page .comment-table tr td{color:#666;padding:5px;text-align:center}.comment-me-page .comment-table tr a{color:#468fa2;text-decoration:none}.comment-me-page .comment-table tr .remarked{color:#e8044f}.comment-me-page .comment-table tr .remark-btn{width:69px;height:22px;line-height:21px;border:0;background:url(../assets/img/home/remark-btn.png?v155e7e2c758) no-repeat;cursor:pointer;color:#fff;outline:none}.comment-me-page .comment-table .remark-content{width:405px;border:1px solid #e6e6e6;word-break:break-all}.comment-me-page #comment-dialog-widget{position:absolute;padding:5px;border:1px solid #999;background:#fff;border-radius:4px;z-index:15}.comment-me-page #comment-dialog-widget .dialog-titlebar{height:16px;cursor:move}.comment-me-page #comment-dialog-widget .dialog-titlebar .dialog-close-btn{float:right;width:46px;height:16px;background:url(../assets/img/home/openbox_close.png?v155e7e2c758) no-repeat 0 0;cursor:pointer}.comment-me-page #comment-dialog-widget .dialog-titlebar .dialog-close-btn:hover{background-position:0 -16px}.comment-me-page #comment-dialog-widget .dialog-content{padding:3px 30px}.comment-me-page #comment-dialog-widget .dialog-content dl{display:table-row}.comment-me-page #comment-dialog-widget .dialog-content dd{display:table-cell;vertical-align:top;font-size:13px;line-height:15px}.comment-me-page #comment-dialog-widget .dialog-content textarea{width:390px;height:80px;max-width:390px;max-height:240px;background:url(../assets/img/home/input-back.png?v155e7e2c758) repeat-x;font-family:Trebuchet MS,Tahoma,Verdana,Arial,sans-serif}.comment-me-page #comment-dialog-widget .dialog-buttons{padding-right:30px}.comment-me-page #comment-dialog-widget .dialog-buttons button{color:#666;float:right;padding:8px 15px;margin-left:5px;border:1px solid #aaa;border-radius:3px;background-color:#f2f2f2;outline:none}.comment-me-page #comment-dialog-widget .dialog-buttons .dialog-save-btn{color:#fff;font-weight:700;border-color:#b5023d;background-color:#da0249}.complaint-me-page{font-size:12px}.complaint-me-page .complaint .title{background-image:url(../assets/img/home/complaints.png?v155e7e2c370)}.complaint-me-page .me-complaints{padding:10px 10px 0}.complaint-me-page .me-complaints .empty-tip{padding:100px 0}.complaint-me-page .me-complaints .complaints-table-header{margin-bottom:10px}.complaint-me-page .me-complaints .complaint-item{padding:10px;border:1px solid #e6e6e6;margin-bottom:5px;color:#999;line-height:18px}.complaint-me-page .me-complaints .complaint-item .question{color:#e9034e;background:url(../assets/img/home/complaints-sd.png?v155e7e2c370) no-repeat -13px 2px}.complaint-me-page .me-complaints .complaint-item .reply{color:#390;background:url(../assets/img/home/complaints-sd.png?v155e7e2c370) no-repeat 0 -25px}.complaint-me-page .me-complaints .complaint-item .cancel-btn{width:68px;line-height:23px;text-align:center;color:#fff;background:url(../assets/img/home/remark-btn.png?v155e7e2c758) no-repeat;display:inline-block;cursor:pointer}.complaint-me-page .me-complaints .complaint-item>div{display:inline-block;vertical-align:top}.complaint-me-page .me-complaints .info{width:280px;color:#000;text-align:left}.complaint-me-page .me-complaints .content{width:340px;text-align:left}.complaint-me-page .me-complaints .content p{padding-left:20px;margin-top:5px}.complaint-me-page .complaint-form{padding:10px}.complaint-me-page .complaint-form h2{clear:both;height:21px;line-height:21px;padding-left:23px;background:url(../assets/img/home/complaint-icon.png?v155e7e2c370) no-repeat 5px 5px #efefef;border:1px solid #e6e6e6;font-size:12px;color:#333;font-weight:400}.complaint-me-page .complaint-form .form-content{font-size:12px;padding:7px 0}.complaint-me-page .complaint-form .form-content dl{padding:7px 5px;line-height:22px}.complaint-me-page .complaint-form .form-content dt{width:75px;color:#333;text-align:right;float:left}.complaint-me-page .complaint-form .form-content dd>input{width:150px;height:18px;line-height:18px}.complaint-me-page .complaint-form .form-content dd>input,.complaint-me-page .complaint-form .form-content dd>textarea{color:#333;border:1px solid #c9c9c9;background:url(../assets/img/home/input-back.png?v155e7e2c758) repeat-x;vertical-align:top}.complaint-me-page .complaint-form .form-content dd>textarea{width:400px;height:80px;max-width:500px;max-height:320px;overflow:auto}.complaint-me-page .complaint-form .form-submit>input{width:138px;height:34px;margin-left:80px;border:0;background:url(../assets/img/home/submit-btn.png?v155e7e2c758) no-repeat;color:#fff;font-size:14px;font-weight:700;text-align:center;padding-right:20px;cursor:pointer;display:inline-block}.message-me-page .message .title{background-image:url(../assets/img/home/message.png?v155e7e2c758)}.message-me-page .message-table-header{font-size:12px}.message-me-page .message-table-header .sender{width:118px;padding-left:38px;text-align:left}.message-me-page .message-table-header .heading{width:408px;text-align:left}.message-me-page .message-table-header .time{width:130px}.message-me-page .message-table-header .action{padding-left:10px;width:66px}.message-me-page .message-list{padding:10px;font-size:12px}.message-me-page .message-list table{width:100%;line-height:38px}.message-me-page .message-list table tr{color:#999;border:1px solid #e6e6e6}.message-me-page .message-list table tr td{text-align:center}.message-me-page .message-list table tr input{vertical-align:middle;margin:0}.message-me-page .message-list table tr .del-btn{color:#468fa2;text-decoration:none;cursor:pointer}.message-me-page .message-list table .list-foot{background:#f8f8f8}.message-me-page .message-list table .list-foot button{float:left;line-height:18px;padding:2px 10px;border:1px solid #ccc;border-radius:2px;cursor:pointer;outline:none}.message-me-page .message-list table .list-foot .del-choose-btn{background:#da044a;border-color:#cc0345;margin-right:10px;color:#fff}.message-me-page .message-list table .list-foot .read-choose-btn{background:#ddd;color:#b3b3b3}.message-me-page .message-list table .list-foot .has-new{background:#3797af;border-color:#147e98;color:#fff}.message-me-page .message-list table .td-sender{width:110px;color:#666;text-align:left;white-space:nowrap;overflow:hidden}.message-me-page .message-list table .td-title{width:410px;padding-left:10px;color:#666;text-align:left;white-space:nowrap;overflow:hidden}.message-me-page .message-list table .new-msg{background:#f0f5f8;border-bottom:1px solid #becfd3}.message-me-page .message-list table .new-msg .td-sender a,.message-me-page .message-list table .new-msg .td-title a{font-weight:700;color:#468fa2}.content-message-page .title{background-image:url(../assets/img/home/message.png?v155e7e2c758)}.content-message-page .title .back-list{font-size:12px;float:right;width:67px;height:22px;line-height:22px;margin-top:9px;padding-right:4px;text-align:center;color:#fdfdfd;display:inline-block;background:url(../assets/img/home/btn-more.png?v155e7e2c370) no-repeat;cursor:pointer}.content-message-page .text-container{font-size:12px;line-height:18px;padding:20px}.content-message-page .text-container .text-title{margin-bottom:10px;padding-bottom:10px;border-bottom:1px dashed #999}.content-message-page .text-container .text-title span{color:#999}.content-message-page .text-container .coupon-item{display:table-row}.content-message-page .text-container .coupon-item>div{padding:10px 0;display:table-cell;vertical-align:middle}.content-message-page .text-container .coupon-item img{vertical-align:middle}.content-message-page .text-container .coupon-item a{width:90px;height:30px;line-height:30px;text-align:center;color:#b3b3b3;font-size:14px;background-color:#ddd;border:1px solid #ccc;border-radius:4px;display:inline-block;cursor:pointer}.content-message-page .text-container .coupon-item .coupon-img{width:160px;text-align:center}.content-message-page .text-container .coupon-item .coupon-info{width:470px;line-height:20px}.content-message-page .text-container .coupon-item .pick-coupon-btn,.content-message-page .text-container .coupon-item .view-coupon-btn{color:#fff;background:#da044a;border-color:#cc0345;display:inline-block}.content-message-page .text-container .sale-img{margin-bottom:15px;overflow:hidden}.content-message-page .text-container .sale-img img{vertical-align:top}.content-message-page .text-container .sale-btn{color:#fff;padding:0 10px;background:#e1044b;margin-top:15px;border:1px solid #c10241;border-radius:2px;display:inline-block;cursor:pointer}.vip-me-page .title{background-image:url(../assets/img/home/vip-img/vip-title.png?v155e7e2c758)}.vip-me-page .vip-level{clear:both;overflow:hidden}.vip-me-page .level{margin:20px 15px 0 40px;line-height:31px;float:left;clear:both;font-size:14px;color:#000}.vip-me-page .vipimg1{background-image:url(../assets/img/home/vip-img/silver-vip.png?v155e7e2c758)}.vip-me-page .vipimg1,.vip-me-page .vipimg2{margin-top:20px;width:138px;height:31px;float:left}.vip-me-page .vipimg2{background-image:url(../assets/img/home/vip-img/gold-vip.png?v155e7e2c758)}.vip-me-page .vipimg3{margin-top:20px;width:138px;height:31px;float:left;background-image:url(../assets/img/home/vip-img/platinum-vip.png?v155e7e2c758)}.vip-me-page .favimg{float:left;width:645px;margin-top:20px;overflow:hidden}.vip-me-page .list{width:145px;float:left;margin:0 10px 8px 0}.vip-me-page .imgsrc{width:25px;float:left;margin-top:5px}.vip-me-page .fav-font{line-height:31px;font-size:12px;margin-left:30px;color:#000}.vip-me-page .year-amount{float:left;width:600px;margin-top:20px}.vip-me-page .amount{float:left}.vip-me-page .amount,.vip-me-page .ps{font-size:14px;font-weight:700;line-height:31px}.vip-me-page .ps{margin-left:30px}.vip-me-page .plalevel{margin-top:7px;width:160px;height:21px;background-image:url(../assets/img/home/vip-img/platinum.png?v155e7e2c758)}.vip-me-page .amount-length{width:400px;height:15px;margin-bottom:5px}.vip-me-page .img-length{width:293px;height:12px;background-color:#e0e0e0}.vip-me-page .amount-left{width:298px;height:12px;overflow:hidden;float:left}.vip-me-page .img-left{height:12px;background-color:#cda16c;z-index:7;float:left}.vip-me-page .img-right{width:5px;height:12px;float:left;z-index:7;background-image:url(../assets/img/sprite.home.png?v155e7e2f638);background-position:-39px -24px;margin-left:-5px}.vip-me-page .letter{width:100px;font-size:12px;margin-left:303px;line-height:10px;margin-bottom:2px}.vip-me-page .change-img0{width:293px;height:18px;background-image:url(../assets/img/home/vip-img/vip-change1.png?v155e7e2c758)}.vip-me-page .change-img1{width:293px;height:18px;background-image:url(../assets/img/home/vip-img/vip-change2.png?v155e7e2c758)}.vip-me-page .change-img2{width:293px;height:18px;background-image:url(../assets/img/home/vip-img/vip-change3.png?v155e7e2c758)}.vip-me-page .balance{margin-top:7px;font-size:13px;font-weight:700;margin-bottom:10px}.vip-me-page .balance p{float:left}.vip-me-page .balance a{color:red;margin-left:10px;float:left}.vip-me-page .history{margin-top:10px;clear:both;overflow:hidden}.vip-me-page .hisamout{margin-left:10px}.vip-me-page .line{clear:both;width:703px;height:1px;margin-bottom:5px;margin-left:40px;margin-top:25px;background-color:#e8e8e8;overflow:hidden}.vip-me-page .valid{overflow:hidden}.vip-me-page .valid-time{clear:both;width:720px;height:175px;margin-left:40px;position:relative;font-size:14px}.vip-me-page .time1{float:left;width:135px;height:135px;border-right:2px dashed #000}.vip-me-page .time1-img{margin-top:95px;width:130px;height:33px;background-image:url(../assets/img/home/vip-img/time1.png?v155e7e2c758)}.vip-me-page .time2{width:129px}.vip-me-page .time2,.vip-me-page .time3{float:left;height:175px;border-right:2px dashed #000}.vip-me-page .time3{width:354px}.vip-me-page .time4{float:left;width:90px;height:155px}.vip-me-page .time-top{display:block;font-size:13px;margin-top:10px;margin-left:10px;line-height:18px}.vip-me-page .time-top span{font-weight:700}.vip-me-page .time-top a{color:red}.vip-me-page .time2-img{margin-top:47px;width:131px;height:33px;background-color:#ecdbca}.vip-me-page .time-left{float:left;display:block;font-size:13px;margin-top:10px;margin-left:10px;line-height:18px}.vip-me-page .time-left span{font-weight:700}.vip-me-page .time-right{float:right;display:block;font-size:13px;margin-top:10px;margin-right:10px;line-height:18px}.vip-me-page .time-right span{font-weight:700}.vip-me-page .time3-img{color:#fff;line-height:33px;margin-top:93px;width:356px;height:33px;background-color:#cda16d;text-align:center}.vip-me-page .time4-img{margin-top:65px;width:62px;height:33px;border-color:#ecdbca #fff transparent transparent;border-style:solid solid dashed dashed;border-width:33px 20px 0 0}.vip-me-page .doubt{margin-left:40px;margin-bottom:25px;margin-top:20px;font-size:14px}.vip-me-page .doubt a{float:right;margin-right:55px}.vip-me-page .tell{color:red}.vip-me-page .time-line{position:absolute;width:703px;height:2px;background-color:#e8e8e8;margin-top:65px}.help-page{width:990px;font-size:12px;margin:0 auto 20px}.help-page .path-nav{padding:11px 0;border-bottom:0;padding-left:25px;background:url(../assets/img/help/home-icon.png?v155e7e2c758) no-repeat 0 12px}.help-page .left-container{float:left;width:180px;margin-right:8px}.help-page .block{border:1px solid #dedede;border-radius:2px}.help-page .title{height:40px;line-height:40px;padding:0 8px;background-color:#e3e3e3;background-position:10px 12px;background-repeat:no-repeat}.help-page .help-navigation{background:#f8f8f8;margin-bottom:10px}.help-page .help-navigation .help-center{background-image:url(../assets/img/help/help-center.png?v155e7e2c758)}.help-page .help-navigation dl{width:100%;height:40px;background:#efefef;border-top:1px solid #e6e6e6;border-bottom:1px solid #e6e6e6}.help-page .help-navigation dl dt{width:132px;height:22px;margin:10px 0 10px 7px;overflow:hidden;background:url(../assets/img/help/help-search.png?v155e7e2c758) no-repeat;float:left}.help-page .help-navigation dl dt input{width:110px;border:0;background:none;margin:3px 10px}.help-page .help-navigation dl dd{width:31px;float:left;margin:10px 0}.help-page .help-navigation dl dd .search-btn{width:31px;height:22px;border:0;background:url(../assets/img/help/help-search.png?v155e7e2c758) no-repeat -134px 0;cursor:pointer;text-indent:-999em}.help-page .help-navigation ul{width:154px;padding:8px 12px}.help-page .help-navigation ul li{line-height:20px;font-family:Arial,helvetica,sans-serif;margin:5px 0;padding-left:20px;color:#333;background:url(../assets/img/help/help-nav-li.png?v155e7e2c758) no-repeat}.help-page .help-navigation ul .active{background-position:0 -20px}.help-page .help-navigation ul .active a{color:#fff}.help-page .help-service{background:#f8f8f8;line-height:15px}.help-page .help-service .service-center{background-image:url(../assets/img/help/yoho-service.png?v155e7e2c758);background-position:10px 9px}.help-page .help-service .service-main{padding:12px}.help-page .help-service .service-main strong{color:#000;font-size:18px;font-weight:700;font-family:Arial,helvetica,sans-serif}.help-page .help-service .service-main p:first-child{margin-bottom:10px}.help-page .help-main{width:800px;float:left;line-height:18px}.help-page .help-main strong{font-weight:700}.help-page .help-main .help-content{padding:15px}.help-page .help-main .help-content a{color:#468fa2;text-decoration:underline}.search-help-page .search-content{padding:15px}.search-help-page .search-content h2{border-bottom:2px solid #eee;font-size:14px;color:#333;height:20px;line-height:20px;padding-top:10px}.search-help-page .search-content ul{margin:10px 0;display:block;min-height:20px}.search-help-page .search-content ul li{width:345px;height:20px;line-height:20px;padding:0 0 0 20px;margin:0 15px 5px 0;display:inline-block;overflow:hidden;background:url(../assets/img/help/ask-icon.png?v155e7e2c758) no-repeat 2px 3px;font-family:Arial,helvetica,sans-serif}.search-help-page .search-content ul .faqs{color:#666;cursor:pointer}.search-help-page .search-content .full-search{line-height:22px;padding:10px 8px;background-color:#e3e3e3;font-size:14px;font-weight:700}.search-help-page .search-content .full-search label{padding:12px}.search-help-page .search-content .full-search .full-search-name{width:185px;height:22px;padding:0 10px;border:0;background:url(../assets/img/help/help-search.png?v155e7e2c758) no-repeat 0 -22px}.search-help-page .search-content .full-search .search-btn{width:31px;height:22px;border:0;background:url(../assets/img/help/help-search.png?v155e7e2c758) no-repeat -134px 0;cursor:pointer;text-indent:-999em}.search-help-page .search-content .full-search .yoho-im-btn{width:120px;height:20px;background:url(../assets/img/help/yoho-im.png?v155e7e2c758);display:inline-block;vertical-align:middle;margin-left:10px;border:0;cursor:pointer}.search-help-page .search-content .empty-tip{padding:200px 0;text-align:center}.search-help-page .search-content .empty-tip span{color:#e8044f;font-weight:700}.search-help-page .search-content .all-ask-list{line-height:18px;padding-top:10px}.search-help-page .search-content .all-ask-list .ask-item{padding:10px}.search-help-page .search-content .all-ask-list .ask-item.even{border:1px solid #fbf0d5;background:#fefaf0}.search-help-page .search-content .all-ask-list .ask{min-height:10px;padding-left:20px;margin-bottom:10px;background:url(../assets/img/help/ask-icon.png?v155e7e2c758) no-repeat 2px 2px}.search-help-page .search-content .all-ask-list .answer{padding-left:20px;color:#f07100;background:url(../assets/img/help/answer-icon.png?v155e7e2c758) no-repeat 2px 2px}.search-help-page .search-content .search-pager{height:20px;padding:10px}.search-help-page .search-content .search-pager .pager-html{display:inline}.search-help-page .search-content .search-pager a{border:1px solid #cecece;padding:0 6px;height:18px;line-height:18px;border-radius:2px;margin-right:4px;background-color:#fff}.search-help-page .search-content .search-pager a.cur{background-color:#222;color:#fff}.search-help-page .dialog-widget{position:absolute;width:450px;padding:5px;border:1px solid #999;background:#fff;border-radius:4px;z-index:16}.search-help-page .dialog-widget .dialog-titlebar{height:16px;cursor:move}.search-help-page .dialog-widget .dialog-titlebar .dialog-close-btn{float:right;width:46px;height:16px;background:url(../assets/img/home/openbox_close.png?v155e7e2c758) no-repeat 0 0;cursor:pointer}.search-help-page .dialog-widget .dialog-titlebar .dialog-close-btn:hover{background-position:0 -16px}.search-help-page .dialog-widget .dialog-content{padding:20px 30px}.search-help-page .dialog-widget .dialog-content p{line-height:20px;padding-left:20px;padding-bottom:10px;font-size:12px;background:url(../assets/img/help/ask-icon.png?v155e7e2c758) no-repeat 2px 3px}.search-help-page .dialog-widget .dialog-content .answer{color:#f07100;background:url(../assets/img/help/answer-icon.png?v155e7e2c758) no-repeat 2px 2px}.search-help-page .dialog-bg{position:fixed;top:0;left:0;width:100%;height:100%;background:#000;opacity:.2;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=20)";z-index:15}.order-ensure-page{width:990px;margin:40px auto}.order-ensure-page .order-edit{width:100%;position:relative;margin-bottom:35px}.order-ensure-page .order-edit .order-title{position:relative;margin-bottom:15px}.order-ensure-page .order-edit .order-title ul{display:block;background-image:url(../assets/img/sprite.order.png?v155e7e2f638);background-position:0 -146px;width:364px;height:12px;position:absolute;right:0;top:0}.order-ensure-page .order-edit .order-title ul li{display:block;width:33.33333333%;float:left;font-size:12px;color:#999;height:50px;line-height:50px;text-align:center;position:relative}.order-ensure-page .order-edit .order-title ul li.active{color:#333}.order-ensure-page .order-edit .order-title ul li.active:after{display:block;content:'';background-image:url(../assets/img/sprite.order.png?v155e7e2f638);background-position:-568px -110px;width:12px;height:12px;position:absolute;left:50%;margin-left:-6px;top:0}.order-ensure-page .order-edit .order-title ul li.first{text-align:left}.order-ensure-page .order-edit .order-title ul li.first.active:after{left:0;margin-left:0}.order-ensure-page .order-edit .order-title ul li.end{text-align:right}.order-ensure-page .order-edit .order-title ul li.end.active:after{right:0;margin-left:0}.order-ensure-page .order-edit .order-title:before{content:'';display:block;background-image:url(../assets/img/sprite.order.png?v155e7e2f638);background-position:-449px -110px;width:117px;height:33px}.order-ensure-page .order-edit .order-title.cart-page-title:before{content:'';display:block;background-image:url(../assets/img/sprite.order.png?v155e7e2f638);background-position:0 -192px;width:117px;height:33px}.order-ensure-page .order-edit .order-edit-main{border:1px solid #ccc;margin-top:20px}.order-ensure-page .order-edit .order-edit-main h2.title{height:30px;line-height:30px;background:#000;color:#fff;font-size:12px;text-indent:15px;overflow:hidden}.order-ensure-page .order-edit .order-edit-main h2.title a{display:block;width:90px;height:22px;background-image:url(../assets/img/sprite.order.png?v155e7e2f638);background-position:-274px -160px;float:right;margin-top:4px;margin-right:10px;cursor:pointer}.order-ensure-page .order-edit .order-edit-main .order-content{padding:5px 30px;font-size:12px;color:#333}.order-ensure-page .order-edit .order-edit-main .order-content .order-selection{border-bottom:1px dashed #ccc;padding:15px 0 0}.order-ensure-page .order-edit .order-edit-main .order-content .order-selection h2{font-size:14px;color:#000}.order-ensure-page .order-edit .order-edit-main .order-content .order-selection h2 span{color:#e8044f;text-decoration:underline;cursor:pointer}.order-ensure-page .order-edit .order-edit-main .order-content .address-list h2{margin-bottom:15px}.order-ensure-page .order-edit .order-edit-main .order-content .address-list ul li{padding:10px 0}.order-ensure-page .order-edit .order-edit-main .order-content .address-list ul li strong{font-weight:700;margin-right:15px}.order-ensure-page .order-edit .order-edit-main .order-content .address-list ul li input.radio{margin:0;vertical-align:middle}.order-ensure-page .order-edit .order-edit-main .order-content .address-list ul .order-modify-btn{display:inline-block;float:right;color:#e8044f;width:80px;padding-right:20px;height:auto;overflow:hidden}.order-ensure-page .order-edit .order-edit-main .order-content .address-list ul .order-modify-btn span{text-decoration:underline;cursor:pointer;float:right}.order-ensure-page .order-edit .order-edit-main .order-content .address-list ul .order-modify-btn span.address-modify{float:left}.order-ensure-page .order-edit .order-edit-main .order-content .address-list .exist-address-list{min-height:35px}.order-ensure-page .order-edit .order-edit-main .order-content .address-list .exist-address-list li{border:1px solid #fff;padding-left:15px}.order-ensure-page .order-edit .order-edit-main .order-content .address-list .exist-address-list li strong{color:#e8044f}.order-ensure-page .order-edit .order-edit-main .order-content .address-list .exist-address-list li .default-address,.order-ensure-page .order-edit .order-edit-main .order-content .address-list .exist-address-list li .order-modify-btn{display:none}.order-ensure-page .order-edit .order-edit-main .order-content .address-list .exist-address-list li .default-address{margin-left:15px;color:#468fa2;text-decoration:underline}.order-ensure-page .order-edit .order-edit-main .order-content .address-list .exist-address-list li .radio{display:none}.order-ensure-page .order-edit .order-edit-main .order-content .address-list .exist-address-list li.has-exist-address .default-address{color:#468fa2;text-decoration:underline;cursor:pointer}.order-ensure-page .order-edit .order-edit-main .order-content .address-list .exist-address-list.address-expand li .default-address,.order-ensure-page .order-edit .order-edit-main .order-content .address-list .exist-address-list.address-expand li .order-modify-btn,.order-ensure-page .order-edit .order-edit-main .order-content .address-list .exist-address-list.address-expand li .radio{display:inline-block}.order-ensure-page .order-edit .order-edit-main .order-content .address-list .exist-address-list.address-expand li.active{background:#dbedf7;border:1px solid #8fb8e0}.order-ensure-page .order-edit .order-edit-main .order-content .address-list .exist-address-list.address-expand li.address_select .default-address{color:#999;text-decoration:none}.order-ensure-page .order-edit .order-edit-main .order-content .address-manage{margin-top:20px;border-top:1px dashed #ccc}.order-ensure-page .order-edit .order-edit-main .order-content .address-manage li{height:25px;line-height:25px}.order-ensure-page .order-edit .order-edit-main .order-content .address-manage li .address-legend{width:80px;text-align:right;display:inline-block;color:#333}.order-ensure-page .order-edit .order-edit-main .order-content .address-manage li .address-legend i{color:#e8044f}.order-ensure-page .order-edit .order-edit-main .order-content .address-manage li .text-input{height:25px;line-height:25px;width:180px;padding:0;border:1px solid #ccc}.order-ensure-page .order-edit .order-edit-main .order-content .address-manage li select.text-input{width:100px}.order-ensure-page .order-edit .order-edit-main .order-content .address-manage li .address-tel-input{width:180px;text-align:center;display:inline-block;height:25px;line-height:25px}.order-ensure-page .order-edit .order-edit-main .order-content .address-manage li .address-tel-input input{text-align:left;float:right;width:120px}.order-ensure-page .order-edit .order-edit-main .order-content .address-manage li .address-tel-input input.tel-lengend{float:left;width:40px}.order-ensure-page .order-edit .order-edit-main .order-content .pay-btn,.order-ensure-page .order-edit .order-edit-main .order-content .save-btn{display:block;font-size:14px;color:#fff;font-weight:700;text-indent:25px;cursor:pointer;margin-bottom:15px}.order-ensure-page .order-edit .order-edit-main .order-content .save-btn{background-image:url(../assets/img/sprite.order.png?v155e7e2f638);background-position:-247px -110px;width:200px;height:34px;line-height:34px}.order-ensure-page .order-edit .order-edit-main .order-content .save-btn.new-user-btn{width:245px;background-image:url(../assets/img/sprite.order.png?v155e7e2f638);background-position:0 -110px}.order-ensure-page .order-edit .order-edit-main .order-content .pay-btn{background-image:url(../assets/img/sprite.order.png?v155e7e2f638);background-position:0 -226px;width:90px;height:34px;line-height:34px}.order-ensure-page .order-edit .order-edit-main .order-content .pay-btn.new-user-pay{background-image:url(../assets/img/sprite.order.png?v155e7e2f638);background-position:-247px -110px;width:200px}.order-ensure-page .order-edit .order-edit-main .order-content .pay-time ul{padding:15px}.order-ensure-page .order-edit .order-edit-main .order-content .pay-time ul li{margin:10px 0}.order-ensure-page .order-edit .order-edit-main .order-content .pay-time ul li input.radio{margin:0;vertical-align:middle}.order-ensure-page .order-edit .order-edit-main .order-content .pay-time ul .prev-sell-item{color:#e8044f}.order-ensure-page .order-edit .order-edit-main .order-content .pay-time .pay-time-modify .pay-time-title{margin-top:20px}.order-ensure-page .order-edit .order-edit-main .order-content .pay-time .pay-time-modify h3{height:25px;line-height:25px;border:1px solid #e6e6e6;background:#efefef;text-indent:25px;position:relative}.order-ensure-page .order-edit .order-edit-main .order-content .pay-time .pay-time-modify h3:after{content:'';display:block;width:11px;height:11px;background:url(../assets/img/order/roundgreybtn.gif?v155e7e2c758);position:absolute;top:7px;left:8px}.order-ensure-page .order-edit .order-edit-main .order-content .pay-time .pay-time-modify .pay-dashed-hr{border-bottom:1px dashed #ccc;padding-bottom:10px}.order-ensure-page .order-edit .order-edit-main .order-content .pay-time .pay-time-modify .pay-type-tips{color:#999;padding-left:15px}.order-ensure-page .order-edit .order-edit-main .order-content .pay-time .pay-time-modify div.pay-type-legend{width:130px;display:inline-block;padding:0;text-indent:0}.order-ensure-page .order-edit .order-edit-main .order-content .pay-time .pay-time-modify span.pay-type-legend{margin:0;color:#468fa2;cursor:pointer}.order-ensure-page .order-edit .order-edit-main .order-content .pay-time .pay-time-modify span.pay-type-legend:after{content:'';width:12px;height:12px;background:url(../assets/img/order/icon-arrow.png?v155e7e2c758);display:inline-block;transition:transform .3}.order-ensure-page .order-edit .order-edit-main .order-content .pay-time .pay-time-modify span.pay-type-legend.active:after{transform:rotate(180deg)}.order-ensure-page .order-edit .order-edit-main .order-content .pay-time .pay-time-modify .support-type{display:block;margin-left:130px;border-left:1px dashed #ccc;font-size:12px}.order-ensure-page .order-edit .order-edit-main .order-content .pay-time .pay-time-modify .support-type h4{padding:10px 0 10px 15px}.order-ensure-page .order-edit .order-edit-main .order-content .pay-time .pay-time-modify .support-type ul{height:auto;overflow:hidden;margin:0;padding:0}.order-ensure-page .order-edit .order-edit-main .order-content .pay-time .pay-time-modify .support-type ul li{display:block;float:left;width:105px;height:30px;border:1px solid #ccc;margin:0 0 10px 15px}.order-ensure-page .order-edit .order-edit-main .order-content .pay-time .pay-time-modify .support-type ul li img{display:block;width:100%;height:100%;overflow:hidden}.order-ensure-page .order-edit .order-edit-main .order-content .pay-time .pay-time-modify .pay-recommend{font-size:0}.order-ensure-page .order-edit .order-edit-main .order-content .pay-time .pay-time-modify .pay-recommend .pay-type-legend,.order-ensure-page .order-edit .order-edit-main .order-content .pay-time .pay-time-modify .pay-recommend .support-type{font-size:12px}.order-ensure-page .order-edit .order-edit-main .order-content .select-express{border-bottom:none}.order-ensure-page .order-edit .order-edit-main .order-content .select-express .sf{color:red;text-decoration:underline}.order-ensure-page .order-edit .order-edit-main .order-content .select-express .express-list{padding-left:15px;margin:10px 0}.order-ensure-page .order-edit .order-edit-main .order-content .select-express .express-list input.radio{margin:0;vertical-align:middle}.order-ensure-page .order-edit .order-edit-main .order-content .select-express .express-tips{color:#999}.order-ensure-page .order-pay{width:100%}.order-ensure-page .differentOrder{position:relative;width:100%}.order-ensure-page .differentOrder .warn{text-align:center;background:#fefbd5;font:initial;height:40px;line-height:40px;font-size:16px}.order-ensure-page .differentOrder .warn .red{color:red}.order-ensure-page .differentOrder .warn .why{background-image:url(../assets/img/sprite.order.png?v155e7e2f638);background-position:-366px -160px;width:26px;height:20px;display:inline-block;vertical-align:middle}.order-ensure-page .differentOrder .warn .why:hover{cursor:pointer}.order-ensure-page .differentOrder .differentBag:before{content:"";position:absolute;width:0;height:0;border-bottom:10px solid #000;border-left:10px solid transparent;border-right:10px solid transparent;top:-10px;right:219px}.order-ensure-page .differentOrder .differentBag{display:none;position:absolute;right:-10px;top:40px;width:510px;padding:0 50px;background:#fff;z-index:1;border:1px solid #000;font-size:14px}.order-ensure-page .differentOrder .bag{position:relative;border-bottom:1px solid #e0e0e0;margin-top:10px;padding:20px 0}.order-ensure-page .differentOrder .bag h3{height:30px;line-height:30px;font-weight:700;margin-left:15px}.order-ensure-page .differentOrder .bag .pre{background-position:0 -261px;left:-30px}.order-ensure-page .differentOrder .bag .next,.order-ensure-page .differentOrder .bag .pre{position:absolute;background-image:url(../assets/img/sprite.order.png?v155e7e2f638);width:30px;height:50px;top:70px;display:none}.order-ensure-page .differentOrder .bag .next{background-position:-32px -261px;right:-30px}.order-ensure-page .differentOrder .bag p{color:#767676;margin-left:15px}.order-ensure-page .differentOrder .bagDetil{position:relative;height:90px;width:510px;overflow:hidden;margin-bottom:20px}.order-ensure-page .differentOrder .bagDetil ul{list-style:none;position:absolute;left:0;clear:both;height:90px}.order-ensure-page .differentOrder .bagDetil ul li{float:left;width:102px;height:90px;line-height:90px;text-align:center;position:relative}.order-ensure-page .differentOrder .bagDetil ul li img{width:90px;height:90px}.order-ensure-page .differentOrder .bagDetil ul li p{position:absolute;bottom:0;background:#9c3;width:90px;height:1rem;line-height:1rem;color:#fff;margin-left:7px}.order-ensure-page .receipt-info{position:fixed;top:0;left:0;width:100%;height:100%!important}.order-ensure-page .receipt-info .receipt-mask{width:100%;height:100%;overflow:hidden;background-color:#000;opacity:.4;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=40)";z-index:11}.order-ensure-page .receipt-info .receipt-info-container{position:fixed;top:5%;left:0;right:0;width:700px;height:auto;margin-left:auto;margin-right:auto;background-color:#fff;border:3px solid #444}.order-ensure-page .receipt-info .receipt-title{margin:42px 55px 0;text-align:left;font-size:16px;padding-bottom:20px;border-bottom:3px solid #888}.order-ensure-page .receipt-info .receipt-type{margin:17px 0}.order-ensure-page .receipt-info .receipt-type span{margin-right:17px;padding:5px 15px;font-size:14px;border:1px solid #e0e0e0;color:#505050}.order-ensure-page .receipt-info .receipt-type .receipt-type-selected{border:1px solid #d0021b;color:#d0021b}.order-ensure-page .receipt-info .e-receipt-desc{position:relative;background-image:url(../assets/img/sprite.order.png?v155e7e2f638);background-position:0 0;width:100%;height:108px}.order-ensure-page .receipt-info .e-receipt-desc a{position:absolute;left:0;bottom:0;width:150px;height:40px}.order-ensure-page .receipt-info .receipt-margin{margin-left:55px;margin-right:55px}.order-ensure-page .receipt-info .invoice-list{position:relative;margin-top:17px;height:90px}.order-ensure-page .receipt-info .invoice-list .invoice-star{position:absolute;top:0;left:0;margin-top:5px;width:12px;height:20px;line-height:20px;font-size:20px;color:#d0021b;text-align:center}.order-ensure-page .receipt-info .invoice-list .invoice-list-type{position:absolute;top:0;left:15px;width:80px;height:20px;line-height:20px;font-size:14px}.order-ensure-page .receipt-info .invoice-list .invoice-line{position:absolute;left:120px;width:500px;height:30px}.order-ensure-page .receipt-info .invoice-list .first-line{top:0}.order-ensure-page .receipt-info .invoice-list .second-line{top:30px}.order-ensure-page .receipt-info .invoice-list .input-line{height:40px}.order-ensure-page .receipt-info .invoice-list .input-line input{width:200px;height:30px;font-size:14px}.order-ensure-page .receipt-info .invoice-list .invoice-line label{width:90px;display:inline-block}.order-ensure-page .receipt-info .invoice-list .invoice-line i{margin-left:20px}.order-ensure-page .receipt-info .invoice-title-personal-hight{height:30px}.order-ensure-page .receipt-info .invoice-phone{height:40px}.order-ensure-page .receipt-info .invoice-title_group{height:90px}.order-ensure-page .receipt-info .blind{display:inline-block;margin-top:5px;margin-bottom:5px}.order-ensure-page .receipt-info .receipt-footer{margin-left:160px}.order-ensure-page .receipt-info .receipt-footer div{display:inline-block;width:140px;height:40px;line-height:40px;text-align:center;margin:30px 20px 35px}.order-ensure-page .receipt-info .receipt-footer .highlight{border:1px solid #3a3a3a;background:#3a3a3a;color:#fff}.order-ensure-page .receipt-info .receipt-footer .normal{border:1px solid #b0b0b0;background:#fff;color:#444}.order-ensure-page .receipt-info .enpty-input{color:#d3132a}.freebie-tag{background:#9c3}.advance-buy-tag{background:#fc1264}.virtual-good-tag{background:red}.presall-tag{background:blue}.order-pay{font-size:12px;line-height:150%}.order-pay .pay-wapper{border:1px solid #ccc;border-top:none}.order-pay .pay-wapper .cart-sub-total{font-weight:700}.order-pay .pay-wapper .cart-sub-total-all{font-weight:700;font-size:18px}.order-pay table{width:100%}.order-pay table td{border:1px solid #ccc;border-left:0 none;padding:10px;text-align:center}.order-pay thead{background:#000}.order-pay thead th{height:32px;line-height:32px;color:#fff;vertical-align:middle;text-align:center;font-weight:700}.order-pay thead .clo1{width:10%}.order-pay thead .clo2{width:20%}.order-pay thead .clo4{width:40%}.order-pay .pay-pro-icon{float:left;width:60px;height:60px;display:block;position:relative}.order-pay .pay-pro-icon span{width:100%;height:16px;line-height:16px;position:absolute;left:0;bottom:0;text-align:center;color:#fff;display:block;cursor:pointer}.order-pay .pay-pro-icon .incentive{background:#f74a87}.order-pay .pay-pro-icon .gift{background:#9c3}.order-pay .pay-pro-info{color:#999;margin-left:70px;text-align:left}.order-pay .pay-pro-info a{color:#468fa2;text-decoration:none;display:block}.order-pay .pay-pro-info a:hover{text-decoration:underline}.order-pay .section-play{margin:20px auto;border:1px solid #ccc}.order-pay .section-play .section-head{line-height:40px;background:#eaeaea;font-size:14px;padding-left:20px;font-weight:500}.order-pay .section-play .play-pan{padding-left:20px;line-height:60px;font-size:10px;display:inline-block}.order-pay .section-play .invoice-content-outter{display:inline-block}.order-pay .section-play .mes{display:inline-block;margin:10px}.order-pay .section-play .revise{width:40px;height:20px;line-height:20px;border:1px solid #e0e0e0;text-align:center}.order-pay .play-content{padding:10px}.order-pay .play-content .red{color:#e8044f!important}.order-pay .play-content .orange{color:#f60!important}.order-pay .play-content .strong{font-weight:700;color:#000}.order-pay .play-content .pan dt{width:105px;height:30px;padding:0 0 0 30px;line-height:30px;text-align:left;border:0;color:#fff;display:inline-block;cursor:pointer;background:url(../assets/img/order/btn-openclose.png?v155e7e2c758) no-repeat 0 -60px;margin-bottom:5px}.order-pay .play-content .pan dd{display:none;border:1px solid #ccc;padding:10px 15px;margin-bottom:10px}.order-pay .play-content .dropdown,.order-pay .play-content .textbox{height:20px;line-height:20px;color:#333;border:1px solid #c9c9c9;vertical-align:top}.order-pay .play-content .btn-group{text-align:right}.order-pay .play-content .btn-group input{display:inline-block;background:none;border:1px solid #ccc;border-radius:2px;height:20px}.order-pay .play-content .btn-group .ok{background-color:#000;color:#fff;cursor:pointer}.order-pay .play-content .btn-group .cancel{cursor:pointer}.order-pay .play-content .play-left{float:left;width:405px}.order-pay .play-content .play-left .pan{text-align:left}.order-pay .play-content .play-left .pan dt{color:#000;background-image:url(../assets/img/sprite.order.png?v155e7e2f638);background-position:-137px -160px}.order-pay .play-content .play-left .pan dt.active{background-image:url(../assets/img/sprite.order.png?v155e7e2f638);background-position:0 -160px}.order-pay .play-content .play-piao-pan li{height:25px;padding:10px 0;line-height:22px}.order-pay .play-content .play-piao-pan li label{width:65px;display:inline-block}.order-pay .play-content .play-piao-pan li .textbox{width:200px}.order-pay .play-content .play-remark-pan .textbox{width:369px;height:70px}.order-pay .play-content .play-remark-pan .note{padding:5px 0;color:#999}.order-pay .play-content .play-right{float:right;width:50%;width:405px}.order-pay .play-content .play-right .pan{text-align:right}.order-pay .play-content .play-right .red-envelopes{width:200px;height:60px;border:1px dashed #000;margin-top:10px;float:right;padding:15px;font-size:12px;color:#000}.order-pay .play-content .play-right .red-envelopes.active{background:#fefccb}.order-pay .play-content .play-right .use-envelopes{font-weight:700}.order-pay .play-content .play-right .has-envelopes{margin-top:5px}.order-pay .play-content .play-right .has-envelopes span{font-weight:700}.order-pay .play-content .back-coin{text-align:right;height:30px;line-height:30px;padding-right:18px}.order-pay .play-content .back-coin .yoho-coin{width:14px;height:14px;display:inline-block;background-image:url(../assets/img/sprite.cart.png?v155e7e2f638);background-position:-321px -225px;vertical-align:middle;margin-top:-2px;margin-right:4px}.order-pay .play-content .play-total{text-align:right;padding-bottom:20px}.order-pay .play-content .play-total .bi-modify,.order-pay .play-content .play-total .juan-modify{color:#468fa2;text-decoration:underline;cursor:pointer}.order-pay .play-content .play-total label{padding-right:10px}.order-pay .play-content .play-total em{width:80px;text-align:left;display:inline-block}.order-pay .play-content .play-total a{color:#468fa2;text-decoration:underline}.order-pay .play-content .play-total .total-express-w{color:#e80480}.order-pay .play-content .play-juan-pan dd{text-align:left}.order-pay .play-content .play-juan{padding:10px 0}.order-pay .play-content .play-juan .textbox{width:70px}.order-pay .play-content .play-juan [disabled=disabled]+label{color:#999}.order-pay .play-content .play-bi-pan dd{text-align:right}.order-pay .play-content .play-bi-pan .textbox{width:70px}.order-pay .play-content .play-bi-pan p{padding:10px 0}.order-pay .play-content .play-bi-pan p.errbitip{padding-top:0}.order-pay .to-play p{padding:10px 0;font-size:14px;text-align:right;color:#000}.order-pay .to-play p em{color:#e8044f;font-size:24px}.order-pay .to-play .btn-group{padding:10px 0 40px}.order-pay .to-play .btn-group .submit{float:right;width:133px;height:33px;padding:0;text-align:center;border:0;line-height:33px;font-size:14px;color:#fff;font-weight:700;background:url(../assets/img/order/btns.png?v155e7e2c758) no-repeat 0 -33px;display:inline-block;cursor:pointer}.order-ensure-page .none{display:none}.order-ensure-page .curser-button{cursor:pointer}.order-ensure-page .gift{position:relative;width:988px;height:50px;background:url(../assets/img/cart/cart_gift.png?v155e7e2c370) 0 0 repeat;border:1px solid #ccc;text-align:center}.order-ensure-page .gift p{background:url(../assets/img/cart/cart_gift_banner.jpg?v155e7e2c370) 0 0 no-repeat;display:inline-block;width:450px;height:50px;overflow:hidden}.order-ensure-page .gift i{width:30px;height:30px;overflow:hidden;position:absolute;top:10px;right:5px;cursor:pointer}.order-ensure-page .gift .up{background-position:-329px -141px}.order-ensure-page .gift .down,.order-ensure-page .gift .up{background-image:url(../assets/img/sprite.cart.png?v155e7e2f638)}.order-ensure-page .gift .down{background-position:-332px -178px}.order-ensure-page .loading{width:120px;height:28px;overflow:hidden;position:absolute;left:50%;top:50%;display:none;line-height:30px;border:1px solid #ccc;font-size:12px;text-indent:10px;background:#fff}.order-ensure-page .loading span{width:20px;height:20px;float:left;margin:4px 4px 4px 13px;background:url(../assets/img/cart/loading_s.gif?v155e7e2c370) 2px 2px no-repeat}.order-ensure-page .dev-revocation{border:1px solid #fcd081;background:#fff8d9;margin-bottom:15px}.order-ensure-page .dev-revocation td{border:none}.order-ensure-page .dev-revocation td a{color:#468fa2;margin-left:12px}.order-ensure-page .dev-revocation td a:hover{text-decoration:underline}.order-ensure-page .order-title{margin-top:30px;height:auto;overflow:hidden}.order-ensure-page .salesPromotion{width:990px;height:36px;border-bottom:1px solid #ccc;font-size:12px}.order-ensure-page .salesPromotion p{width:800px;height:36px;line-height:36px;float:left;padding:0 10px}.order-ensure-page .salesPromotion p b{margin-right:5px;background:#6c6c6c;border-radius:4px;padding:1px 5px;color:#fff}.order-ensure-page .salesPromotion span{width:150px;height:36px;padding:0 10px;line-height:36px;float:right;text-align:right;position:relative}.order-ensure-page .salesPromotion span i{position:absolute;top:11px;left:108px;float:left;width:13px;height:13px;background-image:url(../assets/img/sprite.cart.png?v155e7e2f638);background-position:-357px -71px}.order-ensure-page .cartnew-tips{height:auto;overflow:hidden;font-size:12px;margin-bottom:5px}.order-ensure-page .cartnew-tips .tipsbox{width:648px;height:23px;line-height:18px;padding:4px 5px 4px 10px;color:#666;background:url(../assets/img/cart/cartnew_tipsbox.png?v155e7e2c370) no-repeat;position:relative;float:left}.order-ensure-page .cartnew-tips .tipsbox .btn_close{width:17px;height:17px;padding:0;background-image:url(../assets/img/sprite.cart.png?v155e7e2f638);background-position:-270px -225px;float:right;cursor:pointer}.order-ensure-page .cartnew-tips .tipsbox strong{color:#000;font-weight:700}.order-ensure-page .cartnew-tips .tipsbox a{color:#468fa2}.order-ensure-page .pay-wapper{position:relative}.order-ensure-page .pay-wapper .pre-sell .pre-sell-title{background:#fff9d9}.order-ensure-page .pay-wapper .pre-sell .pre-sell-title span{margin-right:10px}.order-ensure-page .pay-wapper .free{display:inline-block;width:39px;height:20px;background-image:url(../assets/img/sprite.cart.png?v155e7e2f638);background-position:-150px -225px}.order-ensure-page .pay-wapper .fold,.order-ensure-page .pay-wapper .none{display:none}.order-ensure-page .pay-wapper .vipPrice{color:#e8044f;display:block}.order-ensure-page .pay-wapper .presell{color:#c21250;display:block}.order-ensure-page .pay-wapper .giftInfo{margin-left:30px}.order-ensure-page .pay-wapper .pay-pro-info{padding-left:15px;padding-top:10px;margin-left:0;float:left}.order-ensure-page .pay-wapper .pay-pro-info a{width:200px}.order-ensure-page .pay-wapper .pre-sell-box .cart-empty{border:none;padding:100px 0 100px 260px;background:url(../assets/img/cart/cart_empty.gif?v155e7e2c370) 200px 56px no-repeat}.order-ensure-page .pay-wapper .pre-sell-box .cart-empty a{display:inline-block;width:90px;height:35px;background-image:url(../assets/img/sprite.cart.png?v155e7e2f638);background-position:-237px -141px;overflow:hidden;color:#666;line-height:32px}.order-ensure-page .pay-wapper .pre-sell-box .incentive{background:#000100;color:#fff}.order-ensure-page .pay-wapper .tip-message{background:#e8044f;color:#fff;font-size:12px;margin-top:5px}.order-ensure-page .pay-wapper .cart-product-num{font-size:12px;text-align:left;height:33px;line-height:33px;background:#f8f8f8;padding:0 10px;position:relative}.order-ensure-page .pay-wapper .cart-product-num strong{padding-left:20px;font-weight:700}.order-ensure-page .pay-wapper .cart-product-num .icon-minusCart{background-position:-289px -225px}.order-ensure-page .pay-wapper .cart-product-num .icon-addCart,.order-ensure-page .pay-wapper .cart-product-num .icon-minusCart{position:absolute;top:9px;left:15px;float:left;width:15px;height:15px;cursor:pointer;background-image:url(../assets/img/sprite.cart.png?v155e7e2f638)}.order-ensure-page .pay-wapper .cart-product-num .icon-addCart{background-position:-305px -225px}.order-ensure-page .pay-wapper .cart-product-num .icon-zp{position:absolute;top:8px;left:10px;float:left;width:18px;height:19px;background-image:url(../assets/img/sprite.cart.png?v155e7e2f638);background-position:-251px -225px}.order-ensure-page .pay-wapper .cart-product-num .cart-unfold{position:absolute;top:0;right:10px}.order-ensure-page .pay-wapper .cart-product-num .cart-unfold i{width:28px;height:20px;overflow:hidden;display:inline-block;margin-top:5px;cursor:pointer}.order-ensure-page .pay-wapper .cart-product-num .cart-btn-pre{background-image:url(../assets/img/sprite.cart.png?v155e7e2f638);background-position:-191px -225px}.order-ensure-page .pay-wapper .cart-product-num .cart-btn-next{background-image:url(../assets/img/sprite.cart.png?v155e7e2f638);background-position:-221px -225px}.order-ensure-page .pay-wapper .cart-product-num .unfold-color{color:#666;cursor:pointer}.order-ensure-page .pay-wapper .cart-product-num .cart-page p{float:left;padding-right:5px}.order-ensure-page .pay-wapper .cart-product-num .cart-page .f-red{color:red}.order-ensure-page .pay-wapper .cart-product-num input{position:relative;top:2px}.order-ensure-page .pay-wapper input.cart-item-check{float:left;margin-top:25px;margin-left:15px}.order-ensure-page .pay-wapper .adjust-cart-num input{width:30px;margin:0 5px;text-align:center}.order-ensure-page .pay-wapper .adjust-cart-num span{display:inline-block;width:11px;height:11px;cursor:pointer;font-size:10px}.order-ensure-page .pay-wapper .adjust-cart-num .minus{background-image:url(../assets/img/sprite.cart.png?v155e7e2f638);background-position:-357px -119px}.order-ensure-page .pay-wapper .adjust-cart-num .plus{background-image:url(../assets/img/sprite.cart.png?v155e7e2f638);background-position:-357px -106px}.order-ensure-page .pay-wapper .cart-add-btn{width:118px;height:32px;display:inline-block;overflow:hidden;border:0;cursor:pointer;line-height:32px}.order-ensure-page .pay-wapper .zp{background-image:url(../assets/img/sprite.cart.png?v155e7e2f638);background-position:-237px -71px}.order-ensure-page .pay-wapper .order{background-image:url(../assets/img/sprite.cart.png?v155e7e2f638);background-position:-237px -106px}.order-ensure-page .pay-wapper .cart-yetremove-btn{height:20px;line-height:21px;padding:0 10px;display:inline-block;color:#b3b3b3;position:relative;border:1px solid #dcdcdc;background:#ebebeb;border-radius:3px}.order-ensure-page .pay-wapper .cart-del-btn,.order-ensure-page .pay-wapper .cart-remove-btn{height:22px;line-height:21px;padding:0 10px;display:inline-block;cursor:pointer;color:#666;position:relative}.order-ensure-page .pay-wapper .cart-del-btn span,.order-ensure-page .pay-wapper .cart-remove-btn span{position:relative;z-index:9}.order-ensure-page .pay-wapper .cart-del-btn:after,.order-ensure-page .pay-wapper .cart-remove-btn:after{content:'';display:block;width:16px;height:100%;background-image:url(../assets/img/sprite.cart.png?v155e7e2f638);background-position:-102px -248px;position:absolute;right:0;top:0;z-index:7}.order-ensure-page .pay-wapper .cart-del-btn:before,.order-ensure-page .pay-wapper .cart-remove-btn:before{content:'';display:block;width:100%;height:100%;background-image:url(../assets/img/sprite.cart.png?v155e7e2f638);background-position:0 -225px;position:absolute;left:0;top:0}.order-ensure-page .cartnew-sum{background:#efefef;border:1px solid #ccc;padding:10px;margin-bottom:10px;zoom:1;margin-top:20px;height:auto;overflow:hidden;font-size:12px}.order-ensure-page .cartnew-sum .left{float:left}.order-ensure-page .cartnew-sum .left a{color:#333;margin-left:20px}.order-ensure-page .cartnew-sum .left input{position:relative;top:2px}.order-ensure-page .cartnew-sum .right{float:right;text-align:right}.order-ensure-page .cartnew-sum .right strong{color:#e8044f;font-size:18px}.order-ensure-page .cartnew-sum .sum{color:#333;font-weight:700;padding-bottom:5px}.order-ensure-page .cartnew-sum .yoho-coin{width:14px;height:14px;display:inline-block;background-image:url(../assets/img/sprite.cart.png?v155e7e2f638);background-position:-321px -225px;vertical-align:middle;margin-top:-2px;margin-right:4px}.order-ensure-page .cartnew-submit{padding:10px 0 40px;text-align:right;position:relative}.order-ensure-page .cartnew-submit .btn_continue{width:60px;padding:0 0 0 33px;text-align:left;color:#333;background-position:-237px -178px;float:left}.order-ensure-page .cartnew-submit .btn_account,.order-ensure-page .cartnew-submit .btn_continue{height:33px;border:0;line-height:33px;font-size:14px;font-weight:700;background-image:url(../assets/img/sprite.cart.png?v155e7e2f638);display:inline-block;cursor:pointer}.order-ensure-page .cartnew-submit .btn_account{width:133px;padding:0;text-align:center;color:#fff;background-position:-237px 0;float:right}.order-ensure-page .cartnew-submit .go_cash_tips{font-size:12px;width:200px;padding:5px 7px 0 28px;height:45px;position:absolute;right:135px;top:10px;text-align:left;color:#e8044f;background-image:url(../assets/img/sprite.cart.png?v155e7e2f638);background-position:0 0;display:block}.order-ensure-page .cartnew-submit .btn_account_disabled{width:133px;height:33px;padding:0;text-align:center;border:0;line-height:33px;font-size:14px;color:#ccc;font-weight:700;background-image:url(../assets/img/sprite.cart.png?v155e7e2f638);background-position:-237px -36px;display:inline-block;cursor:pointer}.order-ensure-page .cartnew-goodslist{margin-bottom:10px;font-size:12px;border:1px solid #ccc}.order-ensure-page .cartnew-goodslist .title{height:20px;padding:8px 10px;background:#efefef}.order-ensure-page .cartnew-goodslist .title h2{height:20px;line-height:24px;overflow:hidden;font-size:12px;float:left;cursor:pointer}.order-ensure-page .cartnew-goodslist .title h2 i{width:15px;height:15px;float:left;position:relative;top:4px;margin-right:5px}.order-ensure-page .cartnew-goodslist .title h2 .icon-minus{background-image:url(../assets/img/sprite.cart.png?v155e7e2f638);background-position:-289px -225px}.order-ensure-page .cartnew-goodslist .title h2 .icon-add{background-image:url(../assets/img/sprite.cart.png?v155e7e2f638);background-position:-305px -225px}.order-ensure-page .cartnew-goodslist .right{float:right}.order-ensure-page .cartnew-goodslist .right span{width:28px;height:22px;display:inline-block}.order-ensure-page .cartnew-goodslist .right .pageprev{background-image:url(../assets/img/sprite.cart.png?v155e7e2f638);background-position:-191px -225px}.order-ensure-page .cartnew-goodslist .right .pagenext{background-image:url(../assets/img/sprite.cart.png?v155e7e2f638);background-position:-221px -225px}.order-ensure-page .cartnew-goodslist .main{height:230px;border-top:1px solid #e3e3e3;display:block}.order-ensure-page .cartnew-goodslist .main ul{height:auto;width:100%;overflow:hidden}.order-ensure-page .cartnew-goodslist .main li{width:16.6667%;box-sizing:border-box;height:230px;border-right:1px solid #e3e3e3;float:left}.order-ensure-page .cartnew-goodslist .main li.end{border:none}.order-ensure-page .cartnew-goodslist .main .list{width:102px;padding:10px 0 0;margin:0 auto}.order-ensure-page .cartnew-goodslist .main .thumb{height:110px}.order-ensure-page .cartnew-goodslist .main .thumb img{display:block;margin:0 auto}.order-ensure-page .cartnew-goodslist .main .name{height:35px;overflow:hidden;font-size:12px}.order-ensure-page .cartnew-goodslist .main .name h3{height:30px;line-height:15px;font-size:12px;font-weight:400;color:#333;cursor:pointer;overflow:hidden}.order-ensure-page .cartnew-goodslist .main .name a{color:#333;text-decoration:underline}.order-ensure-page .cartnew-goodslist .main .price{color:#333;height:25px;line-height:25px;font-weight:700;white-space:nowrap;overflow:hidden;text-align:center;font-size:12px}.order-ensure-page .cartnew-goodslist .main .price del{color:#999}.order-ensure-page .cartnew-goodslist .main .op{text-align:center;padding:0 0 5px}.order-ensure-page .cartnew-goodslist .main .btn_view_s{width:100px;height:22px;background-image:url(../assets/img/sprite.cart.png?v155e7e2f638);background-position:0 -248px;display:inline-block;border:0}.shop-cart .goods-detail{position:absolute;top:10%;left:0;z-index:10;width:650px;height:auto;overflow:hidden;border:1px solid #ccc;border-radius:5px;background:#fff;display:none}.shop-cart .goods-detail .magnify{position:absolute;width:12px;height:12px;background-image:url(../assets/img/sprite.cart.png?v155e7e2f638);background-position:-357px -85px;bottom:2px;right:2px}.shop-cart .goods-detail .detail-header{display:block;font-size:12px;line-height:16px;text-align:center;color:#fff;margin-top:5px;box-sizing:border-box;padding-right:5px;height:16px;cursor:move}.shop-cart .goods-detail .detail-header .colse{float:right;width:46px;height:16px;background:#ccc;border-radius:2px;cursor:pointer}.shop-cart .goods-detail .detail-header .colse:hover{background:#414141}.shop-cart .goods-detail .detail-body{width:610px;padding:15px;margin:0 auto}.shop-cart .goods-detail .detail-body .none{display:none}.shop-cart .goods-detail .detail-body .detail-bigpic{width:290px;padding-bottom:15px;float:left}.shop-cart .goods-detail .detail-body .detail-bigpic .bigpic{width:210px;height:280px;display:block;margin:0 auto 10px}.shop-cart .goods-detail .detail-body .detail-bigpic .bigpic img{width:100%;height:auto}.shop-cart .goods-detail .detail-body .detail-bigpic .piclist{height:65px;cursor:pointer}.shop-cart .goods-detail .detail-body .detail-bigpic .piclist span{width:10px;height:60px}.shop-cart .goods-detail .detail-body .detail-bigpic .piclist .pre{background-image:url(../assets/img/sprite.cart.png?v155e7e2f638);background-position:0 -304px;float:left}.shop-cart .goods-detail .detail-body .detail-bigpic .piclist .con{width:260px;height:65px;overflow:hidden;float:left;margin-left:5px}.shop-cart .goods-detail .detail-body .detail-bigpic .piclist .con li{float:left;width:58px;height:58px;border:1px solid #ccc;margin:1px;vertical-align:top;overflow:hidden;text-align:center}.shop-cart .goods-detail .detail-body .detail-bigpic .piclist .con li img{width:auto;height:100%;display:inline-block}.shop-cart .goods-detail .detail-body .detail-bigpic .piclist .con .active{width:56px;height:56px;border:2px solid #333}.shop-cart .goods-detail .detail-body .detail-bigpic .piclist .next{background-image:url(../assets/img/sprite.cart.png?v155e7e2f638);background-position:-12px -304px;float:right}.shop-cart .goods-detail .detail-body .detail-info{width:300px;float:right;padding-bottom:15px}.shop-cart .goods-detail .detail-body .detail-info .title{padding:5px 0}.shop-cart .goods-detail .detail-body .detail-info .title h2{width:300px;color:#000;font-size:12px;font-weight:400;white-space:nowrap;overflow:hidden}.shop-cart .goods-detail .detail-body .detail-info .arrivalDate{color:red}.shop-cart .goods-detail .detail-body .detail-info .type{padding-bottom:10px}.shop-cart .goods-detail .detail-body .detail-info .type .type-s{background:#ccc;padding:0 5px;color:#fff;font-size:12px;height:15px;line-height:15px;display:inline-block}.shop-cart .goods-detail .detail-body .detail-info .price{padding:0 0 10px;margin-bottom:10px;border-bottom:1px solid #000}.shop-cart .goods-detail .detail-body .detail-info .price .oldprice{color:#999;font-size:14px;font-weight:700;display:block;padding-bottom:5px}.shop-cart .goods-detail .detail-body .detail-info .price .newprice{color:#000;font-size:14px;font-weight:700;height:30px;line-height:30px;padding:0 0 5px}.shop-cart .goods-detail .detail-body .detail-info .price .newprice b{font-size:22px;font-family:arial}.shop-cart .goods-detail .detail-body .detail-info .order{color:#000;font-size:12px}.shop-cart .goods-detail .detail-body .detail-info .order dd{width:55px;float:left;padding-bottom:8px}.shop-cart .goods-detail .detail-body .detail-info .order dt{width:245px;float:left;padding-bottom:8px}.shop-cart .goods-detail .detail-body .detail-info .order dd.colorBox{line-height:44px}.shop-cart .goods-detail .detail-body .detail-info .order .colorBox{height:75px}.shop-cart .goods-detail .detail-body .detail-info .order .colorBox li{width:44px;height:65px;overflow:hidden;text-align:center;margin-right:4px;display:inline;float:left;cursor:pointer}.shop-cart .goods-detail .detail-body .detail-info .order .colorBox li .atcive{width:40px;height:40px;border:2px solid #e8044f}.shop-cart .goods-detail .detail-body .detail-info .order .colorBox li .atcive span{position:absolute;bottom:0;right:0;width:11px;height:11px;overflow:hidden;background:url(../assets/img/cart/ico_r_act.png?v155e7e2c370) 0 0 no-repeat}.shop-cart .goods-detail .detail-body .detail-info .order .colorBox li p{width:42px;height:42px;margin:0;display:inline-block;border:1px solid #ccc;position:relative}.shop-cart .goods-detail .detail-body .detail-info .order .colorBox li p img{width:100%;height:auto}.shop-cart .goods-detail .detail-body .detail-info .order .colorBox li span{line-height:20px}.shop-cart .goods-detail .detail-body .detail-info .order .showSizeBox{height:25px;line-height:18px}.shop-cart .goods-detail .detail-body .detail-info .order .showSizeBox span{cursor:pointer;height:18px;padding:0 10px;border:1px solid #ccc;margin:1px 5px 5px 1px;display:inline;float:left;overflow:hidden}.shop-cart .goods-detail .detail-body .detail-info .order .showSizeBox .atcive{height:16px;border:2px solid red;background:url(../assets/img/cart/ico_r_act.png?v155e7e2c370) 100% 100% no-repeat}.shop-cart .goods-detail .detail-body .detail-info .order .showSizeBox .null-atcivec{height:18px;border:1px solid #ccc;color:#ccc}.shop-cart .goods-detail .detail-body .detail-info .order .showSizeBox .atcivec{height:16px;border:2px solid #ccc;background:url(../assets/img/cart/ico_r_act_h.png?v155e7e2c370) 100% 100% no-repeat;color:#ccc}.shop-cart .goods-detail .detail-body .detail-info .order .amount_wrapper{width:100px;height:20px;display:inline-block}.shop-cart .goods-detail .detail-body .detail-info .order .amount_wrapper .amount{width:12px;height:12px;display:inline;cursor:pointer;border:0;float:left;font-size:10px;color:#c4c4c4}.shop-cart .goods-detail .detail-body .detail-info .order .amount_wrapper .cut{background-image:url(../assets/img/sprite.cart.png?v155e7e2f638);background-position:-357px -119px;margin:5px 5px 0 0}.shop-cart .goods-detail .detail-body .detail-info .order .amount_wrapper .add{background-image:url(../assets/img/sprite.cart.png?v155e7e2f638);background-position:-357px -106px;margin:5px 0 0 5px}.shop-cart .goods-detail .detail-body .detail-info .order .amount_wrapper .mnum{width:33px;height:18px;line-height:16px;border:1px solid #c4c4c4;text-align:center;overflow:hidden;float:left;font-size:12px}.shop-cart .goods-detail .detail-body .detail-info .submit{padding-top:10px;float:left}.shop-cart .goods-detail .detail-body .detail-info .submit input{width:225px;height:45px;overflow:hidden;border:0;cursor:pointer;float:left}.shop-cart .goods-detail .detail-body .detail-info .submit .addcart{background-image:url(../assets/img/sprite.cart.png?v155e7e2f638);background-position:0 -146px}.shop-cart .goods-detail .detail-body .detail-info .submit .btn_pre_sale{background-image:url(../assets/img/sprite.cart.png?v155e7e2f638);background-position:0 -52px}.shop-cart .goods-detail .detail-body .detail-info .submit .btn_sellout{background-image:url(../assets/img/sprite.cart.png?v155e7e2f638);background-position:0 -99px}.shop-cart .goods-detail .detail-body .detail-info .submit .fav_count{background-image:url(../assets/img/sprite.cart.png?v155e7e2f638);background-position:0 -193px;height:30px}.shop-cart .goods-detail .detail-body .detail-size{float:left;border-top:1px dashed #ccc;width:100%;height:auto;padding-bottom:15px}.shop-cart .goods-detail .detail-body .detail-size h3{height:35px;line-height:35px;font-size:14px}.shop-cart .goods-detail .detail-body .detail-size h3 span{font-size:12px}.shop-cart .goods-detail .detail-body .detail-size table{width:100%;height:auto;border:1px solid #ccc;margin-bottom:5px;font-size:12px}.shop-cart .goods-detail .detail-body .detail-size table td{border:1px solid #fff;padding:3px;font-weight:400;background:#fbfbfb;text-align:center;padding:8px 3px}.shop-cart .goods-detail .detail-body .detail-size table tr:nth-of-type(even) td{background:#f4f4f4}.shop-cart .goods-detail .detail-body .detail-size .size-info{font-size:12px;color:#999}.shopping-pay-page{margin:25px auto}.shopping-pay-page .pay-page{width:100%;position:relative}.shopping-pay-page .not-pay{width:680px;height:400px;margin:0 auto;overflow:hidden;padding-top:100px;padding-left:200px}.shopping-pay-page .not-pay p{padding-left:30px;line-height:32px}.shopping-pay-page .not-pay .success{background:url(../assets/img/pay/success.png?v155e7e2c758) no-repeat 0}.shopping-pay-page .not-pay a{margin-top:40px;margin-left:140px;float:left;color:#c5c5c5}.shopping-pay-page .pay-title{width:980px;height:52px;overflow:hidden;padding:20px 0 0;margin:0 auto;border-bottom:2px solid #000}.shopping-pay-page .pay-title ul{width:446px;height:12px;float:right;list-style:none;padding:0;margin:0;background:url(../assets/img/pay/pay-list.png?v155e7e2c758) no-repeat 100% 0}.shopping-pay-page .pay-title li{width:176px;height:12px;text-align:center;color:#999;float:left}.shopping-pay-page .pay-title li span{display:block;height:15px;padding:15px 0 0;line-height:15px;font-size:12px}.shopping-pay-page .pay-title .end{width:93px;height:18px;color:#000}.shopping-pay-page .pay-title .end span{text-align:right}.shopping-pay-page .step4{height:24px;width:99px;overflow:hidden;background-image:url(../assets/img/pay/pay-title.png?v155e7e2c758);float:left}.shopping-pay-page .step5{height:31px;width:117px;overflow:hidden;background-image:url(../assets/img/pay/bc.png?v155e7e2c758);float:left}.shopping-pay-page .cart-pay{width:980px;margin:25px auto}.shopping-pay-page .cart-pay h2{width:950px;height:40px;padding:0 0 0 30px;line-height:40px;color:#000;font-size:20px;font-family:Arial,helvetica,sans-serif;background:url(../assets/img/pay/cat-pay.png?v155e7e2c758) no-repeat 0 11px;font-weight:400}.shopping-pay-page .cart-pay h3{height:40px;line-height:40px;font-weight:400;color:#666;font-size:12px;margin:0}.shopping-pay-page .cart-pay h3 strong{color:#e8044f;font-size:14px;font-weight:700}.shopping-pay-page .cart-pay h4{height:30px;line-height:30px;color:#000;font-size:14px;display:block;margin:0}.shopping-pay-page .wrapper{width:980px;margin:25px auto;overflow:hidden;border-top:2px solid #d9d9d9;padding-top:19px}.shopping-pay-page .pay-way{width:980px;height:32px;margin-bottom:27px;overflow:hidden;margin:30 auto}.shopping-pay-page .word{display:block;float:left;line-height:32px;font-size:16px;margin-right:10px}.shopping-pay-page .pay-type-img{height:30px;float:left;vertical-align:middle}.shopping-pay-page #tab-box{width:980px;margin-top:30px}.shopping-pay-page .tab-conbox,.shopping-pay-page .tabs{border-bottom:1px solid #d9d9d9}.shopping-pay-page .tabs{height:40px;padding-left:20px;background:#fff}.shopping-pay-page .tabs li{height:40px;width:85px;line-height:40px;float:left;margin-bottom:-1px;background:#ededed;overflow:hidden;position:relative;margin-left:20px;font-size:12px}.shopping-pay-page .tabs li a{display:block;outline:none;font-size:12px;text-align:center}.shopping-pay-page .tabs li.thistab{background:#fff;border-bottom:1px solid #fff;border:1px solid #d9d9d9;border-bottom:none}.shopping-pay-page .tab-con{padding-top:30px;font-size:14px;line-height:175%;overflow:hidden}.shopping-pay-page .none{display:none}.shopping-pay-page .count{width:1020px;height:170px}.shopping-pay-page .mode{width:210px;height:50px;border:1px solid #d9d9d9;margin-right:45px;margin-bottom:30px;float:left;box-sizing:border-box;text-align:center;vertical-align:middle;display:block;position:relative;line-height:44px}.shopping-pay-page .mode img{vertical-align:middle;outline:none}.shopping-pay-page .mode:hover{border:1px solid red}.shopping-pay-page .choosed-tag{background-image:url(../assets/img/pay/mode-top.png?v155e7e2c758);height:22px;width:23px;position:absolute;top:0;right:0}.shopping-pay-page .choose-type,.shopping-pay-page .choose-type:hover{border:2px solid red}.shopping-pay-page .btn-wrapper{width:100%;padding-top:21px;margin-top:10px;margin-bottom:55px}.shopping-pay-page .btnby{outline:none;background:url(../assets/img/pay/pay-btn.png?v155e7e2c758) no-repeat 100% 0;background-repeat:no-repeat;background-position:191px;float:right;width:230px;height:40px;line-height:40px;background-color:#da0040;color:#fff;font-size:16px;border:none;font-weight:700;font-family:arial,Microsoft YaHei!important}.shopping-pay-page .light-box{display:block;position:fixed;width:100%;height:100%;z-index:17;top:0;left:0;font-family:Microsoft Yahei;display:none}.shopping-pay-page .opacity{width:100%;height:1000px;background:#000;filter:Alpha(Opacity=50);opacity:.5;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";overflow:hidden;position:absolute;top:0;left:0}.shopping-pay-page .content{margin-left:-203px;margin-top:-124px;padding:50px 40px;background-color:#fff;position:absolute;top:50%;left:50%;box-shadow:0 0 8px #e8e8e8}.shopping-pay-page .notice{padding:26px 14px;line-height:20px;font-size:13px;color:#9f9f9f}.shopping-pay-page .btns a{width:134px;height:38px;line-height:38px;color:#fff;font-size:14px;margin:0 14px;display:inline-block;text-align:center;text-decoration:none}.shopping-pay-page .change{background:#bdbdbd}.shopping-pay-page .over{background:#da0040}.shopping-pay-page .close a{text-decoration:none;color:#666;outline:none}.shopping-pay-page .close,.shopping-pay-page .close a{width:30px;height:30px;line-height:30px;position:absolute;top:0;right:0;font-size:16px;font-family:arial;text-align:center}.shopping-cashondelivery-page{width:860px;margin:0 auto;font-family:arial,Microsoft YaHei;font-size:12px;text-align:left;line-height:150%}.shopping-cashondelivery-page .cart-order{width:860px;margin-top:70px}.shopping-cashondelivery-page .cart-order h1{height:70px;line-height:40px;color:#333;text-align:center;font-size:20px;font-family:Arial,helvetica,sans-serif}.shopping-cashondelivery-page .ok-br{width:30px;height:30px;background:url(../assets/img/pay/ok.png?v155e7e2c758) no-repeat;display:inline-block;vertical-align:middle}.shopping-cashondelivery-page .list-box{border:1px solid #dadada;border-top:10px solid #000;border-bottom:0;margin-bottom:20px;font-size:14px}.shopping-cashondelivery-page .list-t{height:36px;line-height:36px;background:#f3f3f3;text-align:center;color:#333;border-bottom:1px solid #dadada}.shopping-cashondelivery-page .list-t .yoho-coin{width:14px;height:14px;display:inline-block;background-image:url(../assets/img/sprite.cart.png?v155e7e2f638);background-position:-321px -225px;vertical-align:middle;margin-top:-2px;margin-right:4px}.shopping-cashondelivery-page .li-1{width:170px;height:36px;border-right:1px solid #dadada;font-weight:700;float:left}.shopping-cashondelivery-page .li-1 a{text-decoration:none;color:#468fa2;outline:none}.shopping-cashondelivery-page .li-2,.shopping-cashondelivery-page .li-3,.shopping-cashondelivery-page .li-4{width:170px;height:36px;border-right:1px solid #dadada;float:left}.shopping-cashondelivery-page .li-5{width:170px;height:36px;float:left}.shopping-cashondelivery-page .list{height:36px;line-height:36px;background:#fff;text-align:center;border-bottom:1px solid #dadada;font-size:14px}.shopping-cashondelivery-page .f-rz{font-weight:700;font-size:14px;color:#e8044f}.shopping-cashondelivery-page .f-e{color:#468fa2}.shopping-cashondelivery-page .f-a{color:#e8044f}.shopping-cashondelivery-page .list-b{border:1px solid #fdcf74;background:#fcfbdd;color:#976637;padding:20px;line-height:1.8;margin-bottom:20px;font-family:Arial,helvetica,sans-serif}.shopping-cashondelivery-page .list-b a{text-decoration:none;color:#468fa2;outline:none}.shopping-cashondelivery-page .list-b b{color:#c00}.shopping-cashondelivery-page .pay-mode{color:#666}.shopping-cashondelivery-page .btns{text-align:center;padding:20px 0;margin-bottom:150px}.shopping-cashondelivery-page .btns a{display:inline-block;height:33px;line-height:33px;text-align:center;font-size:14px;font-weight:700;cursor:pointer;border-radius:4px}.shopping-cashondelivery-page .btns .check-order{background:#da034a;color:#fff;border:1px solid #9d0134;width:134px;margin-right:15px}.shopping-cashondelivery-page .btns .return-home{background:#eee;color:#000;border:1px solid #b0b0b0;width:97px}.pay-notice-page{width:860px;margin:70px auto;font-size:12px}.pay-notice-page .font-red{color:#e8044f}.pay-notice-page h1{height:70px;line-height:40px;color:#333;text-align:center;font-size:20px;font-family:Arial,helvetica,sans-serif}.pay-notice-page .ok-icon{display:inline-block;width:30px;height:30px;background:url(../assets/img/pay/ok.png?v155e7e2c758) no-repeat;vertical-align:text-top}.pay-notice-page .order-info{border-right:1px solid #dadada;border-top:10px solid #000;margin-bottom:20px}.pay-notice-page .table-row{height:36px;line-height:36px;text-align:center;color:#333;border-bottom:1px solid #dadada}.pay-notice-page .table-row .order-num,.pay-notice-page .table-row .pay,.pay-notice-page .table-row em{font-weight:700}.pay-notice-page .table-row .pay-mode{color:#666}.pay-notice-page .table-row li{float:left;width:170px;border-left:1px solid #dadada;font-size:14px}.pay-notice-page .order-table-header{background:#f3f3f3}.pay-notice-page .order-table-header .yoho-coin{width:14px;height:14px;display:inline-block;background-image:url(../assets/img/sprite.cart.png?v155e7e2f638);background-position:-321px -225px;vertical-align:middle;margin-top:-2px;margin-right:4px}.pay-notice-page .notice-link{color:#468fa2}.pay-notice-page .notice-tip{border:1px solid #fdcf74;background:#fcfbdd;color:#976637;line-height:1.8;margin-bottom:20px;padding:20px;font-family:Arial,helvetica,sans-serif}.pay-notice-page .btns{text-align:center;padding:20px 0}.pay-notice-page .btns a{display:inline-block;height:33px;line-height:33px;text-align:center;font-size:14px;font-weight:700;cursor:pointer;border-radius:4px}.pay-notice-page .btns .check-order{background:#da034a;color:#fff;border:1px solid #9d0134;width:134px;margin-right:15px}.pay-notice-page .btns .return-home{background:#eee;color:#000;border:1px solid #b0b0b0;width:97px}.pay-notice-page .notice-img{width:100%}.pay-wechatqrcode-page{width:990px;margin:0 auto;font-size:12px;font-family:arial,Microsoft YaHei}.pay-wechatqrcode-page .pay-title{height:52px;overflow:hidden;padding:20px 0 0;margin:0 auto;border-bottom:2px solid #000}.pay-wechatqrcode-page .pay-title ul{width:446px;height:12px;float:right;list-style:none;padding:0;margin:0;background:url(../assets/img/pay/pay-list.png?v155e7e2c758) no-repeat 100% 0}.pay-wechatqrcode-page .pay-title li{width:176px;height:12px;text-align:center;color:#999;float:left}.pay-wechatqrcode-page .pay-title li span{display:block;height:15px;padding:15px 0 0;line-height:15px}.pay-wechatqrcode-page .pay-title .end{width:93px;height:18px;color:#000}.pay-wechatqrcode-page .pay-title .end span{text-align:right}.pay-wechatqrcode-page .step4{height:24px;width:99px;overflow:hidden;background-image:url(../assets/img/pay/pay-title.png?v155e7e2c758);float:left}.pay-wechatqrcode-page .w-title{padding:25px 0 12px;overflow:hidden}.pay-wechatqrcode-page .w-left{width:670px;float:left}.pay-wechatqrcode-page .w-left h3{line-height:26px;height:26px;margin-bottom:4px;overflow:hidden;font-size:14px;font-weight:400}.pay-wechatqrcode-page .w-left p{height:22px;line-height:22px;color:#9b9b9b}.pay-wechatqrcode-page .w-left p span{color:red}.pay-wechatqrcode-page .w-right{margin-left:670px;overflow:hidden;text-align:right}.pay-wechatqrcode-page .w-right p{line-height:26px;height:26px;margin-bottom:4px;overflow:hidden;font-size:14px}.pay-wechatqrcode-page .w-right p strong{color:#ff5d5b;font-size:18px;margin:0 3px;font-weight:700}.pay-wechatqrcode-page .w-right a{color:#2ea7e7;padding-right:14px;position:relative;display:inline-block;height:22px;line-height:22px}.pay-wechatqrcode-page .w-right a i{width:0;height:0;font-size:0;position:absolute;top:9px;right:4px;z-index:1;cursor:pointer}.pay-wechatqrcode-page .up{float:right;border-width:4px 3px 0;border-style:solid dashed dashed;border-color:#2ea7e7 transparent transparent}.pay-wechatqrcode-page .down{float:right;border-width:0 3px 4px;border-style:dashed dashed solid;border-color:transparent transparent #2ea7e7}.pay-wechatqrcode-page .w-addrinfo{padding:12px 0;color:#9b9b9b;line-height:22px;border-top:1px solid #e4e5eb;display:none}.pay-wechatqrcode-page .w-addrinfo span{padding:0 20px}.pay-wechatqrcode-page .w-payment{border:1px solid #e5e5e5;border-top:3px solid #4b5b78;background-color:#fff;padding:26px 30px 30px;margin-top:6px;margin-bottom:50px}.pay-wechatqrcode-page .w-payment h2{font-size:18px;font-weight:400;display:block}.pay-wechatqrcode-page .w-p-weixin{width:300px;height:380px;padding:20px 370px 30px 0;margin:0 auto;overflow:hidden;background:url(../assets/img/pay/w-p-phone.png?v155e7e2c758) no-repeat 100% 0}.pay-wechatqrcode-page .w-p-erm{width:250px;height:250px;padding:24px;margin-bottom:20px;border:1px solid #ddd;overflow:hidden}.pay-wechatqrcode-page .w-p-word{height:44px;padding:8px 0 8px 125px;background:url(../assets/img/pay/w-p-word.png?v155e7e2c758) no-repeat 50px 8px #090909}.pay-wechatqrcode-page .w-p-word p{margin:0;font-size:14px;line-height:22px;color:#fff;font-weight:700}.pay-wechatqrcode-page .w-pay-change{display:block;height:30px;line-height:30px;margin-top:50px;color:#0aaefa;cursor:14px}.pay-wechatqrcode-page .w-pay-change i{float:left;margin-right:14px;font-family:arial;font-style:normal;font-size:16px}.wechatqrcodereturn{width:990px;margin:0 auto;font-size:12px;font-family:Arial,helvetica,sans-serif}.wechatqrcodereturn .pay-title{height:65px;overflow:hidden;padding:20px 0 0;margin:0 auto;border-bottom:2px solid #000}.wechatqrcodereturn .pay-title ul{width:446px;height:12px;float:right;list-style:none;padding:0;margin:0;background:url(../assets/img/pay/pay-list.png?v155e7e2c758) no-repeat 100% 0}.wechatqrcodereturn .pay-title li{width:176px;height:12px;text-align:center;color:#999;float:left}.wechatqrcodereturn .pay-title li span{display:block;height:15px;padding:15px 0 0;line-height:15px}.wechatqrcodereturn .pay-title .end{width:93px;height:18px;color:#000}.wechatqrcodereturn .pay-title .end span{text-align:right}.wechatqrcodereturn .step5{height:33px;width:97px;overflow:hidden;background-image:url(../assets/img/pay/finsh.png?v155e7e2c758);float:left}.wechatqrcodereturn .pay-wechat-return{overflow:hidden;padding-top:10px}.wechatqrcodereturn .payerror{margin:50px 0 0 300px;font-size:14px;font-weight:700;color:#000;padding-left:25px;line-height:21px;background:url(../assets/img/pay/pay-fail.png?v155e7e2c758) no-repeat}.wechatqrcodereturn .arrival-time{margin:10px 0 0 325px;color:#666}.wechatqrcodereturn .tell-phone{color:#e8044f;font-weight:700;font-size:16px}.wechatqrcodereturn .cart-bigbtns span{margin-right:5px}.wechatqrcodereturn .btn-type{display:inline-block;height:35px;padding:0 0 0 2px;overflow:hidden;font-size:14px;margin:40px 0 0 320px}.wechatqrcodereturn .btn-type a{display:inline-block;height:35px;line-height:32px;padding:0 20px;background:url(../assets/img/pay/btnby.png?v155e7e2c758) no-repeat;border:none;overflow:visible;cursor:pointer;margin:0;color:#666}.wechatqrcodereturn .we-font{margin:20px 0 0 320px;height:36px;line-height:36px;padding-left:16px;color:#999;display:block;background:url(../assets/img/pay/pay-plaint.png?v155e7e2c758) no-repeat 1px}.about-page{width:990px;padding:10px 0 20px}.about-page .about-nav{width:210px;padding:10px 20px;background-color:#ebe9ea;border:1px solid #d7d7d7;border-radius:5px}.about-page .about-nav li{line-height:30px;font-size:12px;text-align:center;border-bottom:1px solid #ddd;border-top:1px solid #fff}.about-page .about-nav li a{color:#333;font-weight:700}.about-page .about-nav li a:hover{color:#f60}.about-page .about-nav li:first-child{border-top:0}.about-page .about-nav .act a{color:#ed004c;cursor:pointer}.about-page .about-nav .act a:hover{color:#ed004c}.yohobuy-about-page .main-container{width:720px;border:1px solid #d7d7d7;border-radius:5px;overflow:hidden}.yohobuy-about-page .main-container .text-title{border-bottom:4px solid red;font-family:微软雅黑;height:100px;line-height:100px;font-weight:700;font-size:36px;color:#333;text-align:center}.yohobuy-about-page .main-container .text-info{padding:20px;color:#333;overflow:hidden;font-size:12px;font-weight:400;line-height:24px}.newpower-about-page .main-container{width:720px;border:1px solid #d7d7d7;border-radius:5px;overflow:hidden}.newpower-about-page .main-container .text-info{line-height:30px;font-size:14px;font-weight:700;text-align:center;color:#333;padding:20px;overflow:hidden}.contact-about-page .main-container{width:720px;border:1px solid #d7d7d7;border-radius:5px;overflow:hidden}.contact-about-page .main-container .text-title{border-bottom:4px solid red;font-family:微软雅黑;height:100px;line-height:100px;font-weight:700;font-size:36px;color:#333;text-align:center}.contact-about-page .main-container .text-info{padding:20px;color:#333;overflow:hidden;font-size:12px;font-weight:400;line-height:24px}.contact-about-page .main-container strong{font-weight:700}.link-about-page .main-container{width:720px;border:1px solid #d7d7d7;border-radius:5px;overflow:hidden}.link-about-page .main-container .text-title{border-bottom:4px solid red;font-family:微软雅黑;height:100px;line-height:100px;font-weight:700;font-size:36px;color:#333;text-align:center}.link-about-page .main-container .text-info{padding:20px;color:#333;overflow:hidden;font-size:12px;font-weight:400;line-height:24px}.link-about-page .main-container h2{font-size:14px;line-height:30px;border-bottom:1px dashed #ccc}.link-about-page .main-container ul{padding:10px 0;list-style:none}.link-about-page .main-container strong{font-weight:700}.privacy-about-page .main-container{width:720px;border:1px solid #d7d7d7;border-radius:5px;overflow:hidden}.privacy-about-page .main-container .text-title{border-bottom:4px solid red;font-family:微软雅黑;height:100px;line-height:100px;font-weight:700;font-size:36px;color:#333;text-align:center}.privacy-about-page .main-container .text-info{padding:20px;color:#333;overflow:hidden;font-size:12px;font-weight:400;line-height:24px}.privacy-about-page .main-container strong{font-weight:700}.settled-apply-page .mask,.settled-page .mask{position:fixed;top:0;right:0;bottom:0;left:0;background:#ccc;opacity:.3;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";z-index:20}.settled-page{margin-top:10px;margin-bottom:30px}.settled-page .banner{margin-bottom:45px}.settled-page .flow-container{position:relative;width:1033px;margin:0 auto}.settled-page .fake-link{position:absolute;bottom:-4px;left:221px;width:150px;height:32px;background:#fff;opacity:0;-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";cursor:pointer}.settled-page .notice-container{position:fixed;width:960px;left:50%;top:30px;margin-left:-480px;z-index:2;overflow-y:auto;overflow-x:hidden;border-radius:10px;z-index:21}.settled-page .fake-close{position:fixed;width:30px;height:30px;top:44px;margin-left:914px;cursor:pointer;background:url(../assets/img/about/close.png?v155e7e2c370) no-repeat 50%}.min-screen .settled-page .banner{width:990px}.min-screen .settled-page .flow-container,.min-screen .settled-page .flow-path{width:890px}.min-screen .settled-page .fake-link{bottom:-6px;left:190px;width:130px}.settled-apply-page{font-size:14px}.settled-apply-page .error{border-color:red!important}.settled-apply-page .required-mark{color:red}.settled-apply-page .banner{display:block;margin-top:10px;margin-bottom:30px}.settled-apply-page .title{margin-bottom:10px;padding-left:215px}.settled-apply-page .title span{font-size:18px;line-height:20px;color:#000;font-weight:700;vertical-align:top}.settled-apply-page .title .edit-img{width:24px;height:22px}.settled-apply-page .form-container{width:100%;padding:30px 0;border:1px solid #f4f5f5;border-left:none;border-right:none}.settled-apply-page .signup-form{width:790px;margin:0 auto}.settled-apply-page .signup-form .long-input{width:400px}.settled-apply-page .signup-form .short-input{width:150px}.settled-apply-page .signup-form td{border:10px solid transparent;height:41px}.settled-apply-page .signup-form tr.has-sub td{border-bottom:0}.settled-apply-page .signup-form tr.sub td{border-top:2px}.settled-apply-page .signup-form tr td:first-child{text-align:right}.settled-apply-page .signup-form .sub .tip-td{vertical-align:top}.settled-apply-page .signup-form .button,.settled-apply-page .signup-form input,.settled-apply-page .signup-form select{height:36px;line-height:36px;border-radius:3px;border:1px solid #979797}.settled-apply-page .signup-form select{line-height:18px;padding:9px 0}.settled-apply-page .signup-form input[type=radio]{border:none;vertical-align:text-bottom;margin-bottom:-10px}.settled-apply-page .signup-form .button{width:156px;background-color:#fff;border-radius:6px}.settled-apply-page .signup-form input[type=text]{text-indent:5px}.settled-apply-page .signup-form .swfupload{border:1px solid #ccc;border-radius:6px;height:35px;width:160px;background-color:#fff;cursor:pointer}.settled-apply-page .signup-form .placeholder{color:#979797}.settled-apply-page .signup-form ul{list-style:none;padding-left:0}.settled-apply-page .signup-form .for-other{width:120px;padding:0}.settled-apply-page .signup-form .upload-btn{font-size:13px;border-radius:3px;border:1px solid #979797}.settled-apply-page .signup-form .upload-btn input{cursor:pointer}.settled-apply-page .signup-form .uploadifive-queue{display:none}.settled-apply-page .shop-addres{width:300px}.settled-apply-page .shop-sales-volume{width:80px}.settled-apply-page .shop-list li{margin-bottom:5px}.settled-apply-page .shop-list li>span{margin:0 4px}.settled-apply-page .shop-list li:last-child{margin-bottom:0}.settled-apply-page .tip{font-size:12px;color:#c7c7c7;margin:2px 0}.settled-apply-page .submit-btn{background-color:#000;color:#fff;height:37px;width:157px;border-radius:6px;border:none;margin-top:30px;margin-left:377px;cursor:pointer;margin-bottom:30px}.settled-apply-page .add-btn{width:22px;height:22px;vertical-align:middle;margin-left:20px;cursor:pointer}.settled-apply-page .submit-success{position:fixed;width:500px;height:180px;top:50%;left:50%;margin-top:-170px;margin-left:-280px;z-index:8;padding:30px 50px;background-color:#fff;border-radius:10px;text-align:center}.settled-apply-page .submit-success .content{border-bottom:1px solid #ccc;margin-bottom:20px}.settled-apply-page .submit-success .content h1,.settled-apply-page .submit-success .content h2{margin-bottom:30px}.settled-apply-page .submit-success .sure{font-size:24px;color:red;text-align:center;text-decoration:none;font-weight:700}.settled-apply-page .category-list{margin-top:-12px}.settled-apply-page .category-list li{margin-bottom:5px}.settled-apply-page .category-list li:last-child{margin-bottom:0}.settled-apply-page .has-radio td{line-height:41px}.settled-apply-page .tip-sub td{height:14px}.settled-apply-page input[type=radio]{margin-left:10px}.settled-apply-page .brand-tip,.settled-apply-page .goods-tip{color:#000;margin-top:10px}.settled-success{border:none;border-radius:10px;background:#fff}.settled-success .content{border-bottom:1px solid #ccc}.settled-success .main-title{font-size:28px}.settled-success .sub-title{font-size:16px;margin:20px 0}.settled-success .apply-success-ok{border:none;color:red;font-weight:700;font-size:18px;line-height:60px}.app-download-page .top-wrapper{height:550px;background:url(../assets/img/download/main-top.png?random=1466056691&v155e7e2c370) no-repeat top}.app-download-page .top-wrapper .top-down{width:444px;margin:0 auto;padding-top:305px}.app-download-page .top-wrapper .down-btns{width:216px;height:65px;display:block;margin-left:200px;float:right}.app-download-page .top-wrapper .down-btns:first-child{margin-bottom:10px}.app-download-page .main-wrapper .intro{width:990px;height:437px;margin:114px auto 0}.app-download-page .main-wrapper .intro-6{height:350px}.app-download-page .main-wrapper .bottom-down{width:350px;margin:0 auto;overflow:hidden;padding-top:34px}.app-download-page .main-wrapper .bottom-down .qr-code{width:130px;height:130px;background-image:url(../assets/img/sprite.download.png?v155e7e2f638);background-position:0 0}.app-download-page .main-wrapper .bottom-down .down-btns{width:200px;height:60px;display:block}.app-download-page .main-wrapper .bottom-down .down-app-btn{margin-bottom:8px;background-image:url(../assets/img/sprite.download.png?v155e7e2f638);background-position:-132px 0}.app-download-page .main-wrapper .bottom-down .down-apk-btn{background-image:url(../assets/img/sprite.download.png?v155e7e2f638);background-position:-132px -62px}.app-download-page .foot-wrapper{height:100px;text-align:center} \ No newline at end of file diff --git a/web-static/dist/yohobuy/assets/font/iconfont.svg b/web-static/dist/yohobuy/assets/font/iconfont.svg index 9beff5f..3cac520 100644 --- a/web-static/dist/yohobuy/assets/font/iconfont.svg +++ b/web-static/dist/yohobuy/assets/font/iconfont.svg @@ -1,197 +1,197 @@ -<?xml version="1.0" standalone="no"?> -<!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 Thu Jul 14 10:27:46 2016 - By admin -</metadata> -<defs> -<font id="iconfont" horiz-adv-x="1024" > - <font-face - font-family="iconfont" - font-weight="500" - font-stretch="normal" - units-per-em="1024" - panose-1="2 0 6 3 0 0 0 0 0 0" - ascent="896" - descent="-128" - x-height="792" - bbox="-0.75 -212 1160 896.75" - underline-thickness="50" - underline-position="-100" - unicode-range="U+0078-E63E" - /> -<missing-glyph horiz-adv-x="374" -d="M34 0v682h272v-682h-272zM68 34h204v614h-204v-614z" /> - <glyph glyph-name=".notdef" horiz-adv-x="374" -d="M34 0v682h272v-682h-272zM68 34h204v614h-204v-614z" /> - <glyph glyph-name=".null" horiz-adv-x="0" - /> - <glyph glyph-name="nonmarkingreturn" horiz-adv-x="341" - /> - <glyph glyph-name="x" unicode="x" horiz-adv-x="1001" -d="M281 543q-27 -1 -53 -1h-83q-18 0 -36.5 -6t-32.5 -18.5t-23 -32t-9 -45.5v-76h912v41q0 16 -0.5 30t-0.5 18q0 13 -5 29t-17 29.5t-31.5 22.5t-49.5 9h-133v-97h-438v97zM955 310v-52q0 -23 0.5 -52t0.5 -58t-10.5 -47.5t-26 -30t-33 -16t-31.5 -4.5q-14 -1 -29.5 -0.5 -t-29.5 0.5h-32l-45 128h-439l-44 -128h-29h-34q-20 0 -45 1q-25 0 -41 9.5t-25.5 23t-13.5 29.5t-4 30v167h911zM163 247q-12 0 -21 -8.5t-9 -21.5t9 -21.5t21 -8.5q13 0 22 8.5t9 21.5t-9 21.5t-22 8.5zM316 123q-8 -26 -14 -48q-5 -19 -10.5 -37t-7.5 -25t-3 -15t1 -14.5 -t9.5 -10.5t21.5 -4h37h67h81h80h64h36q23 0 34 12t2 38q-5 13 -9.5 30.5t-9.5 34.5q-5 19 -11 39h-368zM336 498v228q0 11 2.5 23t10 21.5t20.5 15.5t34 6h188q31 0 51.5 -14.5t20.5 -52.5v-227h-327z" /> - <glyph glyph-name="uniE600" unicode="" -d="M286 509l-46 -45l272 -272l272 272l-46 45l-226 -226z" /> - <glyph glyph-name="uniE601" unicode="" -d="M387 158l45 -46l272 272l-272 272l-45 -46l226 -226z" /> - <glyph glyph-name="uniE602" unicode="" -d="M766 193l-196 192l196 192l-61 60l-196 -193l-196 193l-60 -60l196 -192l-196 -192l60 -59l196 192l196 -192z" /> - <glyph glyph-name="uniE603" unicode="" -d="M951 77h-878l439 614z" /> - <glyph glyph-name="uniE604" unicode="" -d="M512 77l-439 614h878z" /> - <glyph glyph-name="uniE605" unicode="" -d="M819 823v-878l-614 439z" /> - <glyph glyph-name="uniE606" unicode="" -d="M205 -55v878l614 -439z" /> - <glyph glyph-name="uniE607" unicode="" -d="M786 789l-415 -405l415 -404q19 -18 19 -44t-19 -44.5t-46 -18.5t-46 18l-461 449q-19 18 -19 44.5t19 44.5l461 449q19 18 46 18t46 -18.5t19 -44.5t-19 -44zM786 789z" /> - <glyph glyph-name="uniE608" unicode="" -d="M233 789q-19 18 -19 44t19 44.5t46 18.5t46 -18l461 -449q19 -18 19 -44.5t-19 -44.5l-461 -449q-19 -18 -46 -18t-46 18.5t-19 44.5t19 44l416 404zM233 789z" /> - <glyph glyph-name="uniE609" unicode="" -d="M577 -118q-17 0 -30 11q-16 12 -18 31.5t11 35.5l357 443l-350 404q-13 15 -11.5 34.5t16.5 32.5t34.5 11.5t32.5 -16.5l376 -433q12 -13 12 -30.5t-11 -30.5l-382 -475q-14 -18 -37 -18z" /> - <glyph glyph-name="uniE60A" unicode="" -d="M447 -118q-23 0 -37 18l-382 475q-11 13 -11 30.5t12 30.5l376 433q13 15 32.5 16.5t34.5 -11.5t16.5 -32.5t-11.5 -34.5l-350 -404l357 -443q13 -16 11 -35.5t-18 -31.5q-13 -11 -30 -11z" /> - <glyph glyph-name="uniE60B" unicode="" -d="M284 15q-14 -14 -14 -33t13.5 -32.5t32.5 -13.5t32 14l397 401q13 14 13 33t-13 33l-397 401q-13 14 -32 14t-32.5 -13.5t-13.5 -32.5t13 -33l351 -369l-350 -369v0zM284 15z" /> - <glyph glyph-name="uniE60C" unicode="" -d="M745 753q13 14 13 33t-13.5 32.5t-32.5 13.5t-32 -14l-396 -401q-14 -14 -14 -33t14 -33l396 -401q14 -14 32.5 -14t32 13.5t13.5 32.5t-13 33l-351 369l351 369v0zM745 753z" /> - <glyph glyph-name="uniE60D" unicode="" -d="M512.5 750q-12.5 0 -21.5 -9t-9 -22v-311h-249q-12 0 -21.5 -9t-9.5 -22t9.5 -22t21.5 -9h280q12 0 21.5 9t9.5 22v342q0 13 -9.5 22t-22 9zM513 874q-101 0 -193 -39.5t-158.5 -105.5t-106 -158t-39.5 -193t39.5 -193t106 -158.5t158.5 -105.5t193 -39t192.5 39 -t158 105.5t106 158.5t39.5 193t-39.5 193t-106 158t-158 105.5t-192.5 39.5zM513 -56q-118 0 -218 58t-158.5 158t-58.5 218t58.5 218t158.5 158t218 58t218 -58t158 -158t58 -218t-58 -218t-158 -158t-218 -58z" /> - <glyph glyph-name="uniE60E" unicode="" -d="M710 384l-473 474l38 38l512 -512l-512 -512l-38 38z" /> - <glyph glyph-name="uniE60F" unicode="" -d="M314 384l473 -474l-38 -38l-512 512l512 512l38 -38z" /> - <glyph glyph-name="uniE610" unicode="" -d="M797 219.5q0 -7.5 -5 -13.5l-29 -28q-6 -6 -13.5 -6t-12.5 6l-225 224l-224 -224q-6 -6 -13.5 -6t-13.5 6l-28 28q-6 6 -6 13.5t6 13.5l266 266q6 6 13.5 6t12.5 -6l267 -266q5 -6 5 -13.5z" /> - <glyph glyph-name="uniE611" unicode="" -d="M892 125l-236 236q54 77 54 172q0 124 -87 211t-210.5 87t-211 -87t-87.5 -211t87.5 -211t210.5 -87q95 0 173 55l236 -236q16 -17 38 -18t37 14t14 37t-18 38zM213 533q0 82 58.5 140.5t140.5 58.5t140.5 -58.5t58.5 -140.5t-58.5 -140.5t-140.5 -58.5t-140.5 58.5 -t-58.5 140.5z" /> - <glyph glyph-name="uniE612" unicode="" -d="M939 -128h-854q-35 0 -60 25t-25 60v854q0 35 25 60t60 25h854q35 0 60 -25t25 -60v-854q0 -35 -25 -60t-60 -25zM939 789q0 10 -6 16t-16 6h-810q-10 0 -16 -6t-6 -16v-810q0 -10 6 -16t16 -6h810q10 0 16 6t6 16v810zM457 183q-10 -12 -30.5 -12t-29.5 12l-171 171 -q-13 10 -13 30q0 18 12.5 30.5t30.5 12.5q20 0 30 -13l141 -141l311 312q13 12 30 12q18 0 30.5 -12.5t12.5 -29.5q0 -21 -13 -30z" /> - <glyph glyph-name="uniE613" unicode="" -d="M877 896h-730q-61 0 -104 -43t-43 -104v-730q0 -61 43 -104t104 -43h730q61 0 104 43t43 104v730q0 61 -43 104t-104 43zM939 19q0 -26 -18 -44t-44 -18h-730q-26 0 -44 18t-18 44v730q0 26 18 44t44 18h730q26 0 44 -18t18 -44v-730z" /> - <glyph glyph-name="uniE614" unicode="" -d="M160 996zM865 247q0 -18 -13 -31l-308 -308q-13 -13 -31 -13t-31 13l-309 308q-13 13 -13 31t13.5 31t30.5 13h617q18 0 31 -13t13 -31zM865 511q0 -18 -13 -31t-31 -13h-617q-18 0 -31 13t-13 31t13 31l309 309q13 13 31 13t31 -13l308 -309q13 -13 13 -31z" /> - <glyph glyph-name="uniE615" unicode="" -d="M704 665l-41 39l-343 -320l343 -320l41 39l-301 281z" /> - <glyph glyph-name="uniE616" unicode="" horiz-adv-x="1173" -d="M569 607q-28 66 -74 108.5t-95 56.5t-100 2.5t-91.5 -45t-66 -94t-26.5 -137.5q0 -36 8.5 -67.5t26 -58t35.5 -47t46.5 -41t49 -34t52.5 -32.5t48 -30q71 -47 124.5 -106.5t63.5 -93.5q7 31 62.5 92t124.5 110q19 14 55.5 36.5t61 38.5t55 42.5t49 52t31.5 62.5t13 79 -q0 76 -26.5 136t-67 92t-92 42.5t-101 -4t-94.5 -56t-72 -104.5z" /> - <glyph glyph-name="uniE617" unicode="" -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="uniE618" unicode="" horiz-adv-x="1000" -d="M751 766q21 -20 34 -33t19.5 -22.5t8.5 -16t2 -10.5v-13h-119q-8 0 -14 6t-10 14t-6 16.5t-2 12.5v100h3q6 0 13 -2t15.5 -8t22 -16t33.5 -28zM614 720q0 -16 5 -33.5t15 -32t26 -24t38 -9.5h117v-451q0 -24 -9.5 -42t-24.5 -31t-33.5 -20t-35.5 -7h-394q-15 0 -33 8.5 -t-33.5 23t-26 33t-10.5 38.5v543q0 17 7.5 35t21 33.5t30 25.5t35.5 10h305v-100zM664 221q21 0 35.5 14.5t14.5 35.5t-14.5 35.5t-35.5 14.5h-299q-21 0 -35.5 -14.5t-14.5 -35.5t14.5 -35.5t35.5 -14.5h299zM714 470q0 21 -14.5 36t-35.5 15h-299q-21 0 -35.5 -15 -t-14.5 -36t14.5 -35t35.5 -14h299q21 0 35.5 14t14.5 35zM714 470z" /> - <glyph glyph-name="uniE619" unicode="" -d="M512 599q47 0 88 -18t72 -49t49 -72t18 -89q0 -46 -18 -87t-49 -72t-72 -49t-88 -18t-88 18t-72 49t-49 72t-18 87q0 48 18 89t49 72t72 49t88 18v0zM512 599z" /> - <glyph glyph-name="uniE61A" unicode="" -d="M903 577l-68 69l-388 -388l-231 230l-68 -68l299 -298l65 65z" /> - <glyph glyph-name="uniE61B" unicode="" -d="M505 337l2 -2q2 -1 3.5 -1t3.5 1l430 364q2 2 1 5.5t-5 3.5h-435h-424q-4 0 -5 -3.5t1 -5.5zM72 669q-3 2 -6 0.5t-3 -4.5v-584q0 -4 3.5 -5t5.5 1l288 346zM953 669.5q-3 1.5 -5 -0.5l-288 -246l287 -346q3 -2 6 -1t3 5v584q0 3 -3 4.5zM641 406l-131 -111l-5 5 -l-125 103l-275 -328q-2 -3 -1 -6t5 -3h396h407q4 0 5 3t-1 6z" /> - <glyph glyph-name="uniE61C" unicode="" -d="M982 137l-4 6l-10 12q-12 13 -42 38q-43 36 -79 59l-48 31l-21 11q-17 8 -36 1q-16 -5 -23 -18l-17 -25q-4 -6 -8 -13l-12 -24q-9 -18 -15 -28q-7 -14 -21 -24t-32 -13.5t-36 7.5q-102 57 -171 123q-101 95 -135 172q-8 13 -1.5 37t26.5 34q13 7 34.5 15.5t31.5 14.5 -q7 4 14.5 8.5t18.5 11.5l4 3l4 3l3 3q19 18 9 43l-3 8q-14 32 -36 69q-17 30 -41 62q-16 21 -32.5 36t-25.5 20l-9 5q-9 5 -13 7q-23 10 -50 -1q-15 -6 -30.5 -15.5t-22 -14.5t-26.5 -21q-44 -37 -69.5 -82.5t-19.5 -86.5q10 -72 88 -198.5t182.5 -225.5t237.5 -173t209 -84 -q79 -10 169 73q38 36 56 73q6 14 7.5 30t-5.5 31zM982 137z" /> - <glyph glyph-name="uniE61D" unicode="" -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="" -d="M127 769v-770h770v770h-770zM555 170h-86v86h86v-86zM555 298h-86v257h86v-257z" /> - <glyph glyph-name="uniE61F" unicode="" -d="M511.5 831q-90.5 0 -173.5 -35.5t-143 -95t-95 -142.5t-35 -174t35 -173.5t95 -142.5t143 -95.5t173.5 -35.5t173.5 35.5t143 95.5t95 142.5t35.5 173.5t-35 174t-95.5 142.5t-143 95t-173.5 35.5zM452 184h-1v0l-38 38l-179 180l38 37l179 -179l318 318l38 -38zM512 -63 -q-91 0 -175 35q-80 34 -142 96t-96 142q-35 83 -35 174t35 174q34 81 96 142.5t142 95.5q84 36 175 36t174 -36q80 -34 142 -95.5t96 -142.5q35 -83 35 -174t-35 -174q-34 -80 -96 -142t-142 -96q-83 -35 -174 -35zM511.5 831q-90.5 0 -173 -35.5t-142.5 -95.5t-95.5 -142.5 -t-35.5 -173.5t35.5 -173.5t95.5 -142.5t142.5 -95t173 -35t173.5 35t142.5 95t95 142.5t35.5 173.5t-35.5 173.5t-95 142.5t-142.5 95.5t-173.5 35.5zM451 183l-38 39l-180 180l39 38l179 -180l318 318l39 -38zM414 222l37 -37l355 355l-37 37l-318 -318l-179 180l-38 -37z -" /> - <glyph glyph-name="uniE620" unicode="" -d="M958 758q0 30 -21 51.5t-51 21.5h-749q-30 0 -51 -21.5t-21 -51.5v-748q0 -30 21 -51t51 -21h749q30 0 51 21t21 51v748zM778 454l-267 -267q-14 -14 -34 -14t-34 14l-168 168q-14 14 -14 34t14 34.5t34 14.5t34 -15l134 -133l233 232q14 14 34 14t34 -14t14 -34t-14 -34 -z" /> - <glyph glyph-name="uniE621" unicode="" -d="M384 640v-513l321 257z" /> - <glyph glyph-name="uniE622" unicode="" horiz-adv-x="1000" -d="M662 662v-499l-299 250zM662 662z" /> - <glyph glyph-name="uniE623" unicode="" horiz-adv-x="1000" -d="M744 598h-488q-38 0 -64.5 -26.5t-26.5 -64.5v-290q0 -38 26.5 -64.5t64.5 -26.5h227l200 -138v138h61q38 0 64.5 26.5t26.5 64.5v290q0 38 -26.5 64.5t-64.5 26.5zM744 358z" /> - <glyph glyph-name="uniE624" unicode="" horiz-adv-x="1025" -d="M1024 480v338q0 32 -23 55t-55 23h-331h-14q-55 0 -76 -21l-506 -506q-19 -19 -19 -46t19 -45l387 -387q18 -19 45 -19t46 19l506 506q10 10 15 25.5t5.5 26.5t0.5 31zM764 549q-36 0 -61.5 25.5t-25.5 61.5t25.5 61t61.5 25t61 -25t25 -61t-25 -61.5t-61 -25.5z" /> - <glyph glyph-name="uniE625" unicode="" -d="M511 832q-91 0 -173.5 -35.5t-142 -95t-95 -142t-35.5 -173.5t35.5 -173.5t95 -142t142 -95t173.5 -35.5t173.5 35.5t142.5 95t95 142t35 173.5t-35 173.5t-95 142t-142.5 95t-173.5 35.5zM734 337h-237q-7 0 -14 3q-22 9 -22 33v237q0 15 10.5 26t26 11t26 -11t10.5 -26 -v-200h200q15 0 26 -10.5t11 -26t-11 -26t-26 -10.5zM734 337z" /> - <glyph glyph-name="uniE626" unicode="" horiz-adv-x="1025" -d="M994 163q-18 9 -16 30.5t27 46.5q24 27 17.5 54.5t-33.5 40.5q-17 8 -24.5 17.5t-2 20t26.5 19.5q30 11 29.5 55.5t-31.5 80.5q-34 39 -278 23l-23 -1q3 2 3 145q0 101 -28 139t-84 36q-18 0 -28.5 -5t-17 -13t-11 -26.5t-7.5 -38t-10 -56.5t-16 -74q-12 -47 -38 -94 -t-54 -80t-55 -59t-44 -39l-18 -13v-386q10 -14 27 -25.5t31 -17t31 -11.5t21 -8q9 -4 65 -10.5t105.5 -11t51.5 -4.5q4 0 11 0.5t30 2.5t45 4.5t52 6.5t56.5 8t53.5 9.5t47 11t33.5 13t15.5 14.5q8 24 3 39t-2 27t23 20q27 10 34.5 34.5t0.5 46t-19 28.5zM0 379v-380 -q0 -28 20 -48.5t49 -20.5h137v518h-137q-29 0 -49 -20.5t-20 -48.5zM0 379z" /> - <glyph glyph-name="uniE627" unicode="" horiz-adv-x="1025" -d="M512 719q-167 0 -304.5 -89.5t-205.5 -236.5q-4 -9 0 -18q68 -147 205.5 -236.5t304.5 -89.5t304.5 89.5t205.5 236.5q4 9 0 18q-68 147 -205.5 236.5t-304.5 89.5zM512 153q-96 0 -163.5 67.5t-67.5 163.5t67.5 163.5t163.5 67.5t163.5 -67.5t67.5 -163.5t-67.5 -163.5 -t-163.5 -67.5zM512 384zM364 384q0 61 43.5 104.5t104.5 43.5t104.5 -43.5t43.5 -104.5t-43.5 -104.5t-104.5 -43.5t-104.5 43.5t-43.5 104.5z" /> - <glyph glyph-name="uniE628" unicode="" -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="uniE629" unicode="" -d="M154 770v-646h146l-14 -208l240 208h344v646h-716zM752 260h-134v159h-192v-159h-134v382h134v-148h192v148h134v-382z" /> - <glyph glyph-name="uniE62A" unicode="" -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="uniE62B" unicode="" -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" /> - <glyph glyph-name="uniE62C" unicode="" -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="uniE62D" unicode="" -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="uniE62E" unicode="" horiz-adv-x="1025" -d="M491 6q9 -10 21.5 -10t21.5 10l357 407q9 10 5.5 17.5t-17.5 7.5h-133q-14 0 -23.5 9.5t-9.5 22.5v261q0 13 -10 22.5t-24 9.5h-333q-14 0 -24 -9.5t-10 -22.5v-261q0 -13 -9.5 -22.5t-23.5 -9.5h-133q-14 0 -17.5 -7.5t5.5 -17.5z" /> - <glyph glyph-name="uniE62F" unicode="" -d="M512 809v0q-58 0 -112.5 -12t-105.5 -38t-80.5 -44t-77.5 -51v-450q0 -57 19.5 -110.5t49 -93.5t69 -76t75.5 -59.5t73.5 -43t57 -28t32.5 -12.5q13 4 32.5 12.5t57 28t73.5 43t75.5 59.5t69 76t49 93.5t19.5 110.5v450q-48 33 -77.5 51t-80.5 44t-105.5 38t-112.5 12z -M808 214q0 -76 -36.5 -138t-112.5 -117q-73 -53 -147 -82q-74 29 -147 82q-76 55 -112.5 117t-36.5 138v421q87 53 146.5 75t149.5 23q90 -1 149.5 -23t146.5 -75v-421zM512 671q-67 0 -112.5 -12.5t-119.5 -49.5v-399q0 -35 12.5 -68.5t30 -57.5t44 -46t47 -35.5t46 -26 -t34 -16t18.5 -6.5q10 3 18.5 6.5t34 16t46 26t47 35.5t44 46t30 57.5t12.5 68.5v399q-74 37 -119.5 49.5t-112.5 12.5v0zM667 515v-47h-105v-67h92v-61h-92v-77h116v-57h-332v57h42v168h64v-168h46v205h-138v61h307v-14z" /> - <glyph glyph-name="uniE630" unicode="" horiz-adv-x="1163" -d="M295 196q67 0 114 -47t47 -113.5t-47 -114t-114 -47.5t-114 47.5t-47 114t47 113.5t114 47zM917.5 196q66.5 0 113.5 -47t47 -113.5t-47 -114t-113.5 -47.5t-114 47.5t-47.5 114t47.5 113.5t114 47zM400 894v-99h-210v0l-187 -294v-372h95q27 56 80 90.5t117 34.5 -t117 -34.5t80 -90.5h228q27 56 80 90.5t117.5 34.5t117.5 -34.5t79 -90.5h46v765h-760zM400 452h-283l159 250l124 1v-251v0zM893 701l-131 -276l-63 31l101 206h-105v68h198v-29v0z" /> - <glyph glyph-name="uniE631" unicode="" -d="M799 456l127 127v313h-830v-609l421 -413l409 404v181l-414 -401l-288 284v426h575v-312zM671 518l-107 22l-53 100l-52 -100l-108 -22l75 -83l-14 -114l99 49l99 -49l-14 114z" /> - <glyph glyph-name="uniE632" unicode="" -d="M512 769q-104 0 -192.5 -51.5t-140 -140t-51.5 -193t51.5 -193t140 -140t192.5 -51.5t192.5 51.5t140 140t51.5 193t-51.5 193t-140 140t-192.5 51.5zM660 181h-50v175h-196v-175h-50v395h50v-179h196v179h50v-395z" /> - <glyph glyph-name="uniE633" unicode="" -d="M1020 810q0 34 -24 58t-59 24h-851q-34 0 -58.5 -24t-24.5 -58v-852q0 -34 24.5 -58t58.5 -24h851q35 0 59 24t24 58v852zM815 464l-304 -304q-16 -16 -38.5 -16t-38.5 16l-191 191q-17 16 -17 39t16.5 39t39 16t38.5 -16l153 -152l264 264q16 16 39 16t39 -16t16 -38.5 -t-16 -38.5z" /> - <glyph glyph-name="uniE634" unicode="" -d="M637 610l-45 46l-272 -272l272 -272l45 46l-226 226z" /> - <glyph glyph-name="uniE635" unicode="" -d="M0 896h1024v-1024h-1024v1024zM85 -43h854v854h-854v-854z" /> - <glyph glyph-name="uniE636" unicode="" -d="M1024 -128h-1024v1024h1024v-1024zM947 674l-34 34q-13 13 -30 13t-30 -13l-486 -495l-196 205q-13 13 -30 13t-30 -13l-34 -34q-13 -13 -13 -30t13 -30l256 -256q23 -22 51 -8q9 0 9 8l546 546q18 13 20 30.5t-12 29.5z" /> - <glyph glyph-name="uniE637" unicode="" -d="M0 812v-1024h1024v1024h-1024zM983 -171h-942v942h942v-942zM288 280h448q9 0 15 6t6 14t-6 14t-15 6h-448q-9 0 -15 -6t-6 -14t6 -14t15 -6z" /> - <glyph glyph-name="uniE638" unicode="" -d="M0 812v-1024h1024v1024h-1024zM983 -171h-942v942h942v-942zM288 280h204v-204q0 -9 6 -15t14 -6t14 6t6 15v204h204q9 0 15 6t6 14t-6 14t-15 6h-204v204q0 9 -6 15t-14 6t-14 -6t-6 -15v-204h-204q-9 0 -15 -6t-6 -14t6 -14t15 -6z" /> - <glyph glyph-name="uniE639" unicode="" -d="M774 201h-524l262 366z" /> - <glyph glyph-name="uniE63A" unicode="" -d="M512 188l-280 392h560z" /> - <glyph glyph-name="uniE63B" unicode="" horiz-adv-x="1048" -d="M297.5 528q-20.5 0 -35 -14.5t-14.5 -35t14.5 -35.5t35 -15t35.5 15t15 35.5t-15 35t-35.5 14.5zM381 251q0 96 84 164t202 68t202 -68t84 -163.5t-84 -163.5t-202 -68t-202 68t-84 163zM286 251q0 -17 2 -35v1q-88 42 -140.5 114t-52.5 157t51.5 157t139.5 114t192 42 -q142 0 249.5 -76.5t128.5 -189.5q-88 43 -189 43q-104 0 -191.5 -43.5t-138.5 -119t-51 -164.5zM953 36q95 93 95 215t-94 214q2 20 2 23q0 111 -64 205t-174.5 148.5t-240 54.5t-239.5 -54.5t-174 -148.5t-64 -205q0 -78 33 -148.5t93 -125.5l-77 -123q-8 -12 -6.5 -26 -t10.5 -25q13 -15 32 -15q9 0 18 4l180 80q4 2 7 4q20 -7 39 -12q48 -80 138.5 -128t199.5 -48q75 0 145 25q1 -1 2 -1l140 -62q8 -4 17 -4q20 0 32 15q10 10 11 24t-7 26zM527 282q-16 0 -27.5 -11t-11.5 -27t11.5 -27.5t27.5 -11.5t27.5 11.5t11.5 27.5t-11.5 27t-27.5 11z -M667 282q-16 0 -27.5 -11t-11.5 -27t11.5 -27.5t27.5 -11.5t27.5 11.5t11.5 27.5t-11.5 27t-27.5 11zM806 282q-16 0 -27 -11t-11 -27t11 -27.5t27 -11.5t27.5 11.5t11.5 27.5t-11.5 27t-27.5 11z" /> - <glyph glyph-name="uniE63C" unicode="" horiz-adv-x="1158" -d="M1069 181h-245v378h132l113 -169v-209zM1158 417l-155 231h-268v-467h-45v508q0 20 -14 34t-34 14h-63l-67 -89h89v-467h-512v467h45l22 89h-108q-20 0 -34 -14t-14 -34v-549q0 -20 14 -34t34 -14h139q-33 -37 -33 -87q0 -53 37.5 -91t91 -38t91.5 38t38 91q0 50 -34 87 -h264h191q-34 -37 -34 -87q0 -53 38 -91t91.5 -38t91 38t37.5 91q0 50 -33 87h134v325zM326 668q-89 -153 -94 -296v-12h129v12q0 43 17 112q17 68 39 116q27 61 67.5 118t62.5 79l4 3v96h-390l-2 -114h245q-33 -40 -78 -114z" /> - <glyph glyph-name="uniE63D" unicode="" -d="M875 126l-363 -164l-363 164v610q247 75 363 75t363 -75v-610zM930 808q-34 11 -84.5 26t-159.5 38.5t-174 23.5t-174 -23.5t-159.5 -38.5t-84.5 -26q-14 -4 -22 -15.5t-8 -25.5v-669q0 -27 25 -39l405 -183q9 -3 18 -3t18 3l405 183q25 12 25 39v669q0 14 -8 25.5 -t-22 15.5zM751 552v83h-473v-83h206v-298h-72v237h-87v-237h-66v-84h506v84h-193v119h151v83h-151v96h179z" /> - <glyph glyph-name="uniE63E" unicode="" -d="M866.5 747.5q-97.5 97.5 -228 132t-261.5 0t-228.5 -132t-132 -228.5t0 -261.5t132 -228t228.5 -132t261.5 0t228 132t132 228t0 261.5t-132 228.5zM798 199l-101 -101l-187 186l-186 -186l-101 101l186 186l-186 187l101 101l186 -186l187 186l101 -101l-186 -187z" /> - </font> -</defs></svg> +<?xml version="1.0" standalone="no"?> +<!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 Thu Jul 14 10:27:46 2016 + By admin +</metadata> +<defs> +<font id="iconfont" horiz-adv-x="1024" > + <font-face + font-family="iconfont" + font-weight="500" + font-stretch="normal" + units-per-em="1024" + panose-1="2 0 6 3 0 0 0 0 0 0" + ascent="896" + descent="-128" + x-height="792" + bbox="-0.75 -212 1160 896.75" + underline-thickness="50" + underline-position="-100" + unicode-range="U+0078-E63E" + /> +<missing-glyph horiz-adv-x="374" +d="M34 0v682h272v-682h-272zM68 34h204v614h-204v-614z" /> + <glyph glyph-name=".notdef" horiz-adv-x="374" +d="M34 0v682h272v-682h-272zM68 34h204v614h-204v-614z" /> + <glyph glyph-name=".null" horiz-adv-x="0" + /> + <glyph glyph-name="nonmarkingreturn" horiz-adv-x="341" + /> + <glyph glyph-name="x" unicode="x" horiz-adv-x="1001" +d="M281 543q-27 -1 -53 -1h-83q-18 0 -36.5 -6t-32.5 -18.5t-23 -32t-9 -45.5v-76h912v41q0 16 -0.5 30t-0.5 18q0 13 -5 29t-17 29.5t-31.5 22.5t-49.5 9h-133v-97h-438v97zM955 310v-52q0 -23 0.5 -52t0.5 -58t-10.5 -47.5t-26 -30t-33 -16t-31.5 -4.5q-14 -1 -29.5 -0.5 +t-29.5 0.5h-32l-45 128h-439l-44 -128h-29h-34q-20 0 -45 1q-25 0 -41 9.5t-25.5 23t-13.5 29.5t-4 30v167h911zM163 247q-12 0 -21 -8.5t-9 -21.5t9 -21.5t21 -8.5q13 0 22 8.5t9 21.5t-9 21.5t-22 8.5zM316 123q-8 -26 -14 -48q-5 -19 -10.5 -37t-7.5 -25t-3 -15t1 -14.5 +t9.5 -10.5t21.5 -4h37h67h81h80h64h36q23 0 34 12t2 38q-5 13 -9.5 30.5t-9.5 34.5q-5 19 -11 39h-368zM336 498v228q0 11 2.5 23t10 21.5t20.5 15.5t34 6h188q31 0 51.5 -14.5t20.5 -52.5v-227h-327z" /> + <glyph glyph-name="uniE600" unicode="" +d="M286 509l-46 -45l272 -272l272 272l-46 45l-226 -226z" /> + <glyph glyph-name="uniE601" unicode="" +d="M387 158l45 -46l272 272l-272 272l-45 -46l226 -226z" /> + <glyph glyph-name="uniE602" unicode="" +d="M766 193l-196 192l196 192l-61 60l-196 -193l-196 193l-60 -60l196 -192l-196 -192l60 -59l196 192l196 -192z" /> + <glyph glyph-name="uniE603" unicode="" +d="M951 77h-878l439 614z" /> + <glyph glyph-name="uniE604" unicode="" +d="M512 77l-439 614h878z" /> + <glyph glyph-name="uniE605" unicode="" +d="M819 823v-878l-614 439z" /> + <glyph glyph-name="uniE606" unicode="" +d="M205 -55v878l614 -439z" /> + <glyph glyph-name="uniE607" unicode="" +d="M786 789l-415 -405l415 -404q19 -18 19 -44t-19 -44.5t-46 -18.5t-46 18l-461 449q-19 18 -19 44.5t19 44.5l461 449q19 18 46 18t46 -18.5t19 -44.5t-19 -44zM786 789z" /> + <glyph glyph-name="uniE608" unicode="" +d="M233 789q-19 18 -19 44t19 44.5t46 18.5t46 -18l461 -449q19 -18 19 -44.5t-19 -44.5l-461 -449q-19 -18 -46 -18t-46 18.5t-19 44.5t19 44l416 404zM233 789z" /> + <glyph glyph-name="uniE609" unicode="" +d="M577 -118q-17 0 -30 11q-16 12 -18 31.5t11 35.5l357 443l-350 404q-13 15 -11.5 34.5t16.5 32.5t34.5 11.5t32.5 -16.5l376 -433q12 -13 12 -30.5t-11 -30.5l-382 -475q-14 -18 -37 -18z" /> + <glyph glyph-name="uniE60A" unicode="" +d="M447 -118q-23 0 -37 18l-382 475q-11 13 -11 30.5t12 30.5l376 433q13 15 32.5 16.5t34.5 -11.5t16.5 -32.5t-11.5 -34.5l-350 -404l357 -443q13 -16 11 -35.5t-18 -31.5q-13 -11 -30 -11z" /> + <glyph glyph-name="uniE60B" unicode="" +d="M284 15q-14 -14 -14 -33t13.5 -32.5t32.5 -13.5t32 14l397 401q13 14 13 33t-13 33l-397 401q-13 14 -32 14t-32.5 -13.5t-13.5 -32.5t13 -33l351 -369l-350 -369v0zM284 15z" /> + <glyph glyph-name="uniE60C" unicode="" +d="M745 753q13 14 13 33t-13.5 32.5t-32.5 13.5t-32 -14l-396 -401q-14 -14 -14 -33t14 -33l396 -401q14 -14 32.5 -14t32 13.5t13.5 32.5t-13 33l-351 369l351 369v0zM745 753z" /> + <glyph glyph-name="uniE60D" unicode="" +d="M512.5 750q-12.5 0 -21.5 -9t-9 -22v-311h-249q-12 0 -21.5 -9t-9.5 -22t9.5 -22t21.5 -9h280q12 0 21.5 9t9.5 22v342q0 13 -9.5 22t-22 9zM513 874q-101 0 -193 -39.5t-158.5 -105.5t-106 -158t-39.5 -193t39.5 -193t106 -158.5t158.5 -105.5t193 -39t192.5 39 +t158 105.5t106 158.5t39.5 193t-39.5 193t-106 158t-158 105.5t-192.5 39.5zM513 -56q-118 0 -218 58t-158.5 158t-58.5 218t58.5 218t158.5 158t218 58t218 -58t158 -158t58 -218t-58 -218t-158 -158t-218 -58z" /> + <glyph glyph-name="uniE60E" unicode="" +d="M710 384l-473 474l38 38l512 -512l-512 -512l-38 38z" /> + <glyph glyph-name="uniE60F" unicode="" +d="M314 384l473 -474l-38 -38l-512 512l512 512l38 -38z" /> + <glyph glyph-name="uniE610" unicode="" +d="M797 219.5q0 -7.5 -5 -13.5l-29 -28q-6 -6 -13.5 -6t-12.5 6l-225 224l-224 -224q-6 -6 -13.5 -6t-13.5 6l-28 28q-6 6 -6 13.5t6 13.5l266 266q6 6 13.5 6t12.5 -6l267 -266q5 -6 5 -13.5z" /> + <glyph glyph-name="uniE611" unicode="" +d="M892 125l-236 236q54 77 54 172q0 124 -87 211t-210.5 87t-211 -87t-87.5 -211t87.5 -211t210.5 -87q95 0 173 55l236 -236q16 -17 38 -18t37 14t14 37t-18 38zM213 533q0 82 58.5 140.5t140.5 58.5t140.5 -58.5t58.5 -140.5t-58.5 -140.5t-140.5 -58.5t-140.5 58.5 +t-58.5 140.5z" /> + <glyph glyph-name="uniE612" unicode="" +d="M939 -128h-854q-35 0 -60 25t-25 60v854q0 35 25 60t60 25h854q35 0 60 -25t25 -60v-854q0 -35 -25 -60t-60 -25zM939 789q0 10 -6 16t-16 6h-810q-10 0 -16 -6t-6 -16v-810q0 -10 6 -16t16 -6h810q10 0 16 6t6 16v810zM457 183q-10 -12 -30.5 -12t-29.5 12l-171 171 +q-13 10 -13 30q0 18 12.5 30.5t30.5 12.5q20 0 30 -13l141 -141l311 312q13 12 30 12q18 0 30.5 -12.5t12.5 -29.5q0 -21 -13 -30z" /> + <glyph glyph-name="uniE613" unicode="" +d="M877 896h-730q-61 0 -104 -43t-43 -104v-730q0 -61 43 -104t104 -43h730q61 0 104 43t43 104v730q0 61 -43 104t-104 43zM939 19q0 -26 -18 -44t-44 -18h-730q-26 0 -44 18t-18 44v730q0 26 18 44t44 18h730q26 0 44 -18t18 -44v-730z" /> + <glyph glyph-name="uniE614" unicode="" +d="M160 996zM865 247q0 -18 -13 -31l-308 -308q-13 -13 -31 -13t-31 13l-309 308q-13 13 -13 31t13.5 31t30.5 13h617q18 0 31 -13t13 -31zM865 511q0 -18 -13 -31t-31 -13h-617q-18 0 -31 13t-13 31t13 31l309 309q13 13 31 13t31 -13l308 -309q13 -13 13 -31z" /> + <glyph glyph-name="uniE615" unicode="" +d="M704 665l-41 39l-343 -320l343 -320l41 39l-301 281z" /> + <glyph glyph-name="uniE616" unicode="" horiz-adv-x="1173" +d="M569 607q-28 66 -74 108.5t-95 56.5t-100 2.5t-91.5 -45t-66 -94t-26.5 -137.5q0 -36 8.5 -67.5t26 -58t35.5 -47t46.5 -41t49 -34t52.5 -32.5t48 -30q71 -47 124.5 -106.5t63.5 -93.5q7 31 62.5 92t124.5 110q19 14 55.5 36.5t61 38.5t55 42.5t49 52t31.5 62.5t13 79 +q0 76 -26.5 136t-67 92t-92 42.5t-101 -4t-94.5 -56t-72 -104.5z" /> + <glyph glyph-name="uniE617" unicode="" +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="uniE618" unicode="" horiz-adv-x="1000" +d="M751 766q21 -20 34 -33t19.5 -22.5t8.5 -16t2 -10.5v-13h-119q-8 0 -14 6t-10 14t-6 16.5t-2 12.5v100h3q6 0 13 -2t15.5 -8t22 -16t33.5 -28zM614 720q0 -16 5 -33.5t15 -32t26 -24t38 -9.5h117v-451q0 -24 -9.5 -42t-24.5 -31t-33.5 -20t-35.5 -7h-394q-15 0 -33 8.5 +t-33.5 23t-26 33t-10.5 38.5v543q0 17 7.5 35t21 33.5t30 25.5t35.5 10h305v-100zM664 221q21 0 35.5 14.5t14.5 35.5t-14.5 35.5t-35.5 14.5h-299q-21 0 -35.5 -14.5t-14.5 -35.5t14.5 -35.5t35.5 -14.5h299zM714 470q0 21 -14.5 36t-35.5 15h-299q-21 0 -35.5 -15 +t-14.5 -36t14.5 -35t35.5 -14h299q21 0 35.5 14t14.5 35zM714 470z" /> + <glyph glyph-name="uniE619" unicode="" +d="M512 599q47 0 88 -18t72 -49t49 -72t18 -89q0 -46 -18 -87t-49 -72t-72 -49t-88 -18t-88 18t-72 49t-49 72t-18 87q0 48 18 89t49 72t72 49t88 18v0zM512 599z" /> + <glyph glyph-name="uniE61A" unicode="" +d="M903 577l-68 69l-388 -388l-231 230l-68 -68l299 -298l65 65z" /> + <glyph glyph-name="uniE61B" unicode="" +d="M505 337l2 -2q2 -1 3.5 -1t3.5 1l430 364q2 2 1 5.5t-5 3.5h-435h-424q-4 0 -5 -3.5t1 -5.5zM72 669q-3 2 -6 0.5t-3 -4.5v-584q0 -4 3.5 -5t5.5 1l288 346zM953 669.5q-3 1.5 -5 -0.5l-288 -246l287 -346q3 -2 6 -1t3 5v584q0 3 -3 4.5zM641 406l-131 -111l-5 5 +l-125 103l-275 -328q-2 -3 -1 -6t5 -3h396h407q4 0 5 3t-1 6z" /> + <glyph glyph-name="uniE61C" unicode="" +d="M982 137l-4 6l-10 12q-12 13 -42 38q-43 36 -79 59l-48 31l-21 11q-17 8 -36 1q-16 -5 -23 -18l-17 -25q-4 -6 -8 -13l-12 -24q-9 -18 -15 -28q-7 -14 -21 -24t-32 -13.5t-36 7.5q-102 57 -171 123q-101 95 -135 172q-8 13 -1.5 37t26.5 34q13 7 34.5 15.5t31.5 14.5 +q7 4 14.5 8.5t18.5 11.5l4 3l4 3l3 3q19 18 9 43l-3 8q-14 32 -36 69q-17 30 -41 62q-16 21 -32.5 36t-25.5 20l-9 5q-9 5 -13 7q-23 10 -50 -1q-15 -6 -30.5 -15.5t-22 -14.5t-26.5 -21q-44 -37 -69.5 -82.5t-19.5 -86.5q10 -72 88 -198.5t182.5 -225.5t237.5 -173t209 -84 +q79 -10 169 73q38 36 56 73q6 14 7.5 30t-5.5 31zM982 137z" /> + <glyph glyph-name="uniE61D" unicode="" +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="" +d="M127 769v-770h770v770h-770zM555 170h-86v86h86v-86zM555 298h-86v257h86v-257z" /> + <glyph glyph-name="uniE61F" unicode="" +d="M511.5 831q-90.5 0 -173.5 -35.5t-143 -95t-95 -142.5t-35 -174t35 -173.5t95 -142.5t143 -95.5t173.5 -35.5t173.5 35.5t143 95.5t95 142.5t35.5 173.5t-35 174t-95.5 142.5t-143 95t-173.5 35.5zM452 184h-1v0l-38 38l-179 180l38 37l179 -179l318 318l38 -38zM512 -63 +q-91 0 -175 35q-80 34 -142 96t-96 142q-35 83 -35 174t35 174q34 81 96 142.5t142 95.5q84 36 175 36t174 -36q80 -34 142 -95.5t96 -142.5q35 -83 35 -174t-35 -174q-34 -80 -96 -142t-142 -96q-83 -35 -174 -35zM511.5 831q-90.5 0 -173 -35.5t-142.5 -95.5t-95.5 -142.5 +t-35.5 -173.5t35.5 -173.5t95.5 -142.5t142.5 -95t173 -35t173.5 35t142.5 95t95 142.5t35.5 173.5t-35.5 173.5t-95 142.5t-142.5 95.5t-173.5 35.5zM451 183l-38 39l-180 180l39 38l179 -180l318 318l39 -38zM414 222l37 -37l355 355l-37 37l-318 -318l-179 180l-38 -37z +" /> + <glyph glyph-name="uniE620" unicode="" +d="M958 758q0 30 -21 51.5t-51 21.5h-749q-30 0 -51 -21.5t-21 -51.5v-748q0 -30 21 -51t51 -21h749q30 0 51 21t21 51v748zM778 454l-267 -267q-14 -14 -34 -14t-34 14l-168 168q-14 14 -14 34t14 34.5t34 14.5t34 -15l134 -133l233 232q14 14 34 14t34 -14t14 -34t-14 -34 +z" /> + <glyph glyph-name="uniE621" unicode="" +d="M384 640v-513l321 257z" /> + <glyph glyph-name="uniE622" unicode="" horiz-adv-x="1000" +d="M662 662v-499l-299 250zM662 662z" /> + <glyph glyph-name="uniE623" unicode="" horiz-adv-x="1000" +d="M744 598h-488q-38 0 -64.5 -26.5t-26.5 -64.5v-290q0 -38 26.5 -64.5t64.5 -26.5h227l200 -138v138h61q38 0 64.5 26.5t26.5 64.5v290q0 38 -26.5 64.5t-64.5 26.5zM744 358z" /> + <glyph glyph-name="uniE624" unicode="" horiz-adv-x="1025" +d="M1024 480v338q0 32 -23 55t-55 23h-331h-14q-55 0 -76 -21l-506 -506q-19 -19 -19 -46t19 -45l387 -387q18 -19 45 -19t46 19l506 506q10 10 15 25.5t5.5 26.5t0.5 31zM764 549q-36 0 -61.5 25.5t-25.5 61.5t25.5 61t61.5 25t61 -25t25 -61t-25 -61.5t-61 -25.5z" /> + <glyph glyph-name="uniE625" unicode="" +d="M511 832q-91 0 -173.5 -35.5t-142 -95t-95 -142t-35.5 -173.5t35.5 -173.5t95 -142t142 -95t173.5 -35.5t173.5 35.5t142.5 95t95 142t35 173.5t-35 173.5t-95 142t-142.5 95t-173.5 35.5zM734 337h-237q-7 0 -14 3q-22 9 -22 33v237q0 15 10.5 26t26 11t26 -11t10.5 -26 +v-200h200q15 0 26 -10.5t11 -26t-11 -26t-26 -10.5zM734 337z" /> + <glyph glyph-name="uniE626" unicode="" horiz-adv-x="1025" +d="M994 163q-18 9 -16 30.5t27 46.5q24 27 17.5 54.5t-33.5 40.5q-17 8 -24.5 17.5t-2 20t26.5 19.5q30 11 29.5 55.5t-31.5 80.5q-34 39 -278 23l-23 -1q3 2 3 145q0 101 -28 139t-84 36q-18 0 -28.5 -5t-17 -13t-11 -26.5t-7.5 -38t-10 -56.5t-16 -74q-12 -47 -38 -94 +t-54 -80t-55 -59t-44 -39l-18 -13v-386q10 -14 27 -25.5t31 -17t31 -11.5t21 -8q9 -4 65 -10.5t105.5 -11t51.5 -4.5q4 0 11 0.5t30 2.5t45 4.5t52 6.5t56.5 8t53.5 9.5t47 11t33.5 13t15.5 14.5q8 24 3 39t-2 27t23 20q27 10 34.5 34.5t0.5 46t-19 28.5zM0 379v-380 +q0 -28 20 -48.5t49 -20.5h137v518h-137q-29 0 -49 -20.5t-20 -48.5zM0 379z" /> + <glyph glyph-name="uniE627" unicode="" horiz-adv-x="1025" +d="M512 719q-167 0 -304.5 -89.5t-205.5 -236.5q-4 -9 0 -18q68 -147 205.5 -236.5t304.5 -89.5t304.5 89.5t205.5 236.5q4 9 0 18q-68 147 -205.5 236.5t-304.5 89.5zM512 153q-96 0 -163.5 67.5t-67.5 163.5t67.5 163.5t163.5 67.5t163.5 -67.5t67.5 -163.5t-67.5 -163.5 +t-163.5 -67.5zM512 384zM364 384q0 61 43.5 104.5t104.5 43.5t104.5 -43.5t43.5 -104.5t-43.5 -104.5t-104.5 -43.5t-104.5 43.5t-43.5 104.5z" /> + <glyph glyph-name="uniE628" unicode="" +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="uniE629" unicode="" +d="M154 770v-646h146l-14 -208l240 208h344v646h-716zM752 260h-134v159h-192v-159h-134v382h134v-148h192v148h134v-382z" /> + <glyph glyph-name="uniE62A" unicode="" +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="uniE62B" unicode="" +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" /> + <glyph glyph-name="uniE62C" unicode="" +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="uniE62D" unicode="" +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="uniE62E" unicode="" horiz-adv-x="1025" +d="M491 6q9 -10 21.5 -10t21.5 10l357 407q9 10 5.5 17.5t-17.5 7.5h-133q-14 0 -23.5 9.5t-9.5 22.5v261q0 13 -10 22.5t-24 9.5h-333q-14 0 -24 -9.5t-10 -22.5v-261q0 -13 -9.5 -22.5t-23.5 -9.5h-133q-14 0 -17.5 -7.5t5.5 -17.5z" /> + <glyph glyph-name="uniE62F" unicode="" +d="M512 809v0q-58 0 -112.5 -12t-105.5 -38t-80.5 -44t-77.5 -51v-450q0 -57 19.5 -110.5t49 -93.5t69 -76t75.5 -59.5t73.5 -43t57 -28t32.5 -12.5q13 4 32.5 12.5t57 28t73.5 43t75.5 59.5t69 76t49 93.5t19.5 110.5v450q-48 33 -77.5 51t-80.5 44t-105.5 38t-112.5 12z +M808 214q0 -76 -36.5 -138t-112.5 -117q-73 -53 -147 -82q-74 29 -147 82q-76 55 -112.5 117t-36.5 138v421q87 53 146.5 75t149.5 23q90 -1 149.5 -23t146.5 -75v-421zM512 671q-67 0 -112.5 -12.5t-119.5 -49.5v-399q0 -35 12.5 -68.5t30 -57.5t44 -46t47 -35.5t46 -26 +t34 -16t18.5 -6.5q10 3 18.5 6.5t34 16t46 26t47 35.5t44 46t30 57.5t12.5 68.5v399q-74 37 -119.5 49.5t-112.5 12.5v0zM667 515v-47h-105v-67h92v-61h-92v-77h116v-57h-332v57h42v168h64v-168h46v205h-138v61h307v-14z" /> + <glyph glyph-name="uniE630" unicode="" horiz-adv-x="1163" +d="M295 196q67 0 114 -47t47 -113.5t-47 -114t-114 -47.5t-114 47.5t-47 114t47 113.5t114 47zM917.5 196q66.5 0 113.5 -47t47 -113.5t-47 -114t-113.5 -47.5t-114 47.5t-47.5 114t47.5 113.5t114 47zM400 894v-99h-210v0l-187 -294v-372h95q27 56 80 90.5t117 34.5 +t117 -34.5t80 -90.5h228q27 56 80 90.5t117.5 34.5t117.5 -34.5t79 -90.5h46v765h-760zM400 452h-283l159 250l124 1v-251v0zM893 701l-131 -276l-63 31l101 206h-105v68h198v-29v0z" /> + <glyph glyph-name="uniE631" unicode="" +d="M799 456l127 127v313h-830v-609l421 -413l409 404v181l-414 -401l-288 284v426h575v-312zM671 518l-107 22l-53 100l-52 -100l-108 -22l75 -83l-14 -114l99 49l99 -49l-14 114z" /> + <glyph glyph-name="uniE632" unicode="" +d="M512 769q-104 0 -192.5 -51.5t-140 -140t-51.5 -193t51.5 -193t140 -140t192.5 -51.5t192.5 51.5t140 140t51.5 193t-51.5 193t-140 140t-192.5 51.5zM660 181h-50v175h-196v-175h-50v395h50v-179h196v179h50v-395z" /> + <glyph glyph-name="uniE633" unicode="" +d="M1020 810q0 34 -24 58t-59 24h-851q-34 0 -58.5 -24t-24.5 -58v-852q0 -34 24.5 -58t58.5 -24h851q35 0 59 24t24 58v852zM815 464l-304 -304q-16 -16 -38.5 -16t-38.5 16l-191 191q-17 16 -17 39t16.5 39t39 16t38.5 -16l153 -152l264 264q16 16 39 16t39 -16t16 -38.5 +t-16 -38.5z" /> + <glyph glyph-name="uniE634" unicode="" +d="M637 610l-45 46l-272 -272l272 -272l45 46l-226 226z" /> + <glyph glyph-name="uniE635" unicode="" +d="M0 896h1024v-1024h-1024v1024zM85 -43h854v854h-854v-854z" /> + <glyph glyph-name="uniE636" unicode="" +d="M1024 -128h-1024v1024h1024v-1024zM947 674l-34 34q-13 13 -30 13t-30 -13l-486 -495l-196 205q-13 13 -30 13t-30 -13l-34 -34q-13 -13 -13 -30t13 -30l256 -256q23 -22 51 -8q9 0 9 8l546 546q18 13 20 30.5t-12 29.5z" /> + <glyph glyph-name="uniE637" unicode="" +d="M0 812v-1024h1024v1024h-1024zM983 -171h-942v942h942v-942zM288 280h448q9 0 15 6t6 14t-6 14t-15 6h-448q-9 0 -15 -6t-6 -14t6 -14t15 -6z" /> + <glyph glyph-name="uniE638" unicode="" +d="M0 812v-1024h1024v1024h-1024zM983 -171h-942v942h942v-942zM288 280h204v-204q0 -9 6 -15t14 -6t14 6t6 15v204h204q9 0 15 6t6 14t-6 14t-15 6h-204v204q0 9 -6 15t-14 6t-14 -6t-6 -15v-204h-204q-9 0 -15 -6t-6 -14t6 -14t15 -6z" /> + <glyph glyph-name="uniE639" unicode="" +d="M774 201h-524l262 366z" /> + <glyph glyph-name="uniE63A" unicode="" +d="M512 188l-280 392h560z" /> + <glyph glyph-name="uniE63B" unicode="" horiz-adv-x="1048" +d="M297.5 528q-20.5 0 -35 -14.5t-14.5 -35t14.5 -35.5t35 -15t35.5 15t15 35.5t-15 35t-35.5 14.5zM381 251q0 96 84 164t202 68t202 -68t84 -163.5t-84 -163.5t-202 -68t-202 68t-84 163zM286 251q0 -17 2 -35v1q-88 42 -140.5 114t-52.5 157t51.5 157t139.5 114t192 42 +q142 0 249.5 -76.5t128.5 -189.5q-88 43 -189 43q-104 0 -191.5 -43.5t-138.5 -119t-51 -164.5zM953 36q95 93 95 215t-94 214q2 20 2 23q0 111 -64 205t-174.5 148.5t-240 54.5t-239.5 -54.5t-174 -148.5t-64 -205q0 -78 33 -148.5t93 -125.5l-77 -123q-8 -12 -6.5 -26 +t10.5 -25q13 -15 32 -15q9 0 18 4l180 80q4 2 7 4q20 -7 39 -12q48 -80 138.5 -128t199.5 -48q75 0 145 25q1 -1 2 -1l140 -62q8 -4 17 -4q20 0 32 15q10 10 11 24t-7 26zM527 282q-16 0 -27.5 -11t-11.5 -27t11.5 -27.5t27.5 -11.5t27.5 11.5t11.5 27.5t-11.5 27t-27.5 11z +M667 282q-16 0 -27.5 -11t-11.5 -27t11.5 -27.5t27.5 -11.5t27.5 11.5t11.5 27.5t-11.5 27t-27.5 11zM806 282q-16 0 -27 -11t-11 -27t11 -27.5t27 -11.5t27.5 11.5t11.5 27.5t-11.5 27t-27.5 11z" /> + <glyph glyph-name="uniE63C" unicode="" horiz-adv-x="1158" +d="M1069 181h-245v378h132l113 -169v-209zM1158 417l-155 231h-268v-467h-45v508q0 20 -14 34t-34 14h-63l-67 -89h89v-467h-512v467h45l22 89h-108q-20 0 -34 -14t-14 -34v-549q0 -20 14 -34t34 -14h139q-33 -37 -33 -87q0 -53 37.5 -91t91 -38t91.5 38t38 91q0 50 -34 87 +h264h191q-34 -37 -34 -87q0 -53 38 -91t91.5 -38t91 38t37.5 91q0 50 -33 87h134v325zM326 668q-89 -153 -94 -296v-12h129v12q0 43 17 112q17 68 39 116q27 61 67.5 118t62.5 79l4 3v96h-390l-2 -114h245q-33 -40 -78 -114z" /> + <glyph glyph-name="uniE63D" unicode="" +d="M875 126l-363 -164l-363 164v610q247 75 363 75t363 -75v-610zM930 808q-34 11 -84.5 26t-159.5 38.5t-174 23.5t-174 -23.5t-159.5 -38.5t-84.5 -26q-14 -4 -22 -15.5t-8 -25.5v-669q0 -27 25 -39l405 -183q9 -3 18 -3t18 3l405 183q25 12 25 39v669q0 14 -8 25.5 +t-22 15.5zM751 552v83h-473v-83h206v-298h-72v237h-87v-237h-66v-84h506v84h-193v119h151v83h-151v96h179z" /> + <glyph glyph-name="uniE63E" unicode="" +d="M866.5 747.5q-97.5 97.5 -228 132t-261.5 0t-228.5 -132t-132 -228.5t0 -261.5t132 -228t228.5 -132t261.5 0t228 132t132 228t0 261.5t-132 228.5zM798 199l-101 -101l-187 186l-186 -186l-101 101l186 186l-186 187l101 101l186 -186l187 186l101 -101l-186 -187z" /> + </font> +</defs></svg> -- libgit2 0.24.0