Authored by 梁志锋

merge release/detail

Showing 62 changed files with 1845 additions and 1 deletions
@@ -98,7 +98,7 @@ fabric.properties @@ -98,7 +98,7 @@ fabric.properties
98 nbproject/private/ 98 nbproject/private/
99 build/ 99 build/
100 nbbuild/ 100 nbbuild/
101 -dist/ 101 +public/dist
102 nbdist/ 102 nbdist/
103 nbactions.xml 103 nbactions.xml
104 .nb-gradle/ 104 .nb-gradle/
  1 +/**
  2 + * 邀请好友赢福利
  3 + * <xiaoxiao.hao@yoho.cn>
  4 + * 2016/07/13
  5 + */
  6 +'use strict';
  7 +const inviteModel = require('../models/invite');
  8 +const inviteTitle = '有货 邀请好友赢福利';
  9 +const _ = require('lodash');
  10 +const md5 = require('md5');
  11 +const secretKey = '5466ee572bcbc75830d044e66ab429bc';// 秘钥
  12 +
  13 +// 简介、好友领取列表页面
  14 +exports.index = (req, res, next) => {
  15 + let actId = req.query.act_id * 1 || 0;
  16 + let uid = req.query.uid || 0;
  17 + let renderPage = 'invite/list';
  18 +
  19 + inviteModel.index({
  20 + uid: uid,
  21 + activityId: actId
  22 + }).then((result) => {
  23 +
  24 + // 非法参数跳到首页
  25 + if (result.isGo) {
  26 + res.redirect('/');
  27 + return false;
  28 + }
  29 +
  30 + if (result.isNil) {
  31 + renderPage = 'invite/intro';
  32 + }
  33 +
  34 + res.render(renderPage, {
  35 + module: 'activity',
  36 + page: 'invite',
  37 + result: result,
  38 + title: inviteTitle
  39 + });
  40 + }).catch(next);
  41 +};
  42 +
  43 +// 微信好友获取红包方法(即分享出去的地址)页面
  44 +exports.share = (req, res, next) => {
  45 + let shareUid = req.params[0];
  46 + let actId = req.params[1];
  47 + let nums = req.params[2];
  48 + let shareUrl = inviteModel.createShareUrl(shareUid, actId, nums);
  49 + let callback = 'http://m.yohobuy.com/activity/invite/getwxinfo?url=' + shareUrl;
  50 + let url = inviteModel.getWxOauthUrl(callback);
  51 + let wxUserInfo = req.cookies.wxUserInfo || {};
  52 +
  53 + if (_.isEmpty(wxUserInfo) || _.isEmpty(wxUserInfo.unionid)) {
  54 + res.redirect(url);
  55 + return false;
  56 + }
  57 +
  58 + inviteModel.shareModel({
  59 + uid: shareUid,
  60 + activityId: actId,
  61 + nums: nums,
  62 + openId: wxUserInfo.unionid,
  63 + nickName: wxUserInfo.nickname,
  64 + headImgUrl: wxUserInfo.headimgurl
  65 + }).then(result => {
  66 +
  67 + if (result.code * 1 !== 200) {
  68 + res.redirect('/');
  69 + return false;
  70 + }
  71 +
  72 + if (_.isEmpty(result.data.list)) {
  73 + res.render('invite/myshare', {
  74 + module: 'activity',
  75 + page: 'invite',
  76 + result: {
  77 + shareUid: shareUid,
  78 + nums: nums,
  79 + actId: actId,
  80 + openId: wxUserInfo.unionid
  81 + },
  82 + title: inviteTitle
  83 + });
  84 + } else {
  85 + // 是自己分享的连接
  86 + res.render('invite/list', {
  87 + module: 'activity',
  88 + page: 'invite',
  89 + result: result.data.list,
  90 + title: inviteTitle
  91 + });
  92 + }
  93 +
  94 +
  95 + }).catch(next);
  96 +};
  97 +
  98 +// 发送短信验证码API
  99 +exports.sendRegCodeToMobile = (req, res, next) => {
  100 + let mobile = req.query.mobile || '';
  101 +
  102 + inviteModel.sendRegCodeToMobile({
  103 + area: 86,
  104 + mobile: mobile
  105 + }).then((result) => {
  106 + res.json(result);
  107 + }).catch(next);
  108 +};
  109 +
  110 +// 发送已注册用户参与活动的优惠券API
  111 +exports.checkOldUserCoupon = (req, res, next) => {
  112 + let mobile = req.query.mobile || '';
  113 + let actId = req.query.actId || '';
  114 +
  115 + inviteModel.checkOldUserCoupon({
  116 + mobile: mobile,
  117 + activityId: actId
  118 + }).then((result) => {
  119 + res.json(result);
  120 + }).catch(next);
  121 +};
  122 +
  123 +// 验证手机验证码是否正确API
  124 +exports.validRegCode = (req, res, next) => {
  125 + let mobile = req.query.mobile || '';
  126 + let code = req.query.code || '';
  127 +
  128 + inviteModel.validRegCode({
  129 + area: 86,
  130 + mobile: mobile,
  131 + code: code
  132 + }).then((result) => {
  133 + res.json(result);
  134 + }).catch(next);
  135 +};
  136 +
  137 +// 手机注册账号API
  138 +exports.register = (req, res, next) => {
  139 + let mobile = req.query.mobile || '';
  140 + let activityName = req.query.activityName || 'invite';
  141 +
  142 + inviteModel.register({
  143 + mobile: mobile,
  144 + activityName: activityName
  145 + }).then((result) => {
  146 + res.json(result);
  147 + }).catch(next);
  148 +};
  149 +
  150 +// 领福利-领取优惠券API
  151 +exports.receiveCoupons = (req, res, next) => {
  152 + let uid = req.query.uid;
  153 + let actId = req.query.actId;
  154 + let nums = req.query.nums;
  155 + let shareUid = req.query.shareUid;
  156 + let openId = req.query.openId;
  157 +
  158 + inviteModel.receiveCoupons({
  159 + uid: uid,
  160 + activityId: actId,
  161 + nums: nums,
  162 + shareUid: shareUid,
  163 + openId: openId
  164 + }).then((result) => {
  165 + if (result.code === 200) {
  166 + result.data.goUrl = result.data.goUrl + '?sign=' + md5(result.data.couponAmount + secretKey);
  167 + }
  168 + res.json(result);
  169 + }).catch(next);
  170 +};
  171 +
  172 +// 好友领取优惠券成功页面
  173 +exports.myCoupons = (req, res, next) => {
  174 + let shareUid = req.params[0];
  175 + let amount = req.params[1];
  176 + let actId = req.params[2];
  177 + let nums = req.params[3];
  178 + let sign = req.query.sign;
  179 + let uid = req.cookies.inviteUid || '';
  180 +
  181 + // 这个只是过滤一下非法的参数
  182 + if (md5(amount + secretKey) !== sign || _.isEmpty(uid)) {
  183 + res.redirect('/');
  184 + return false;
  185 + }
  186 +
  187 + inviteModel.myCoupons({
  188 + uid: uid,
  189 + shareUid: shareUid,
  190 + nums: nums,
  191 + amount: amount,
  192 + activityId: actId
  193 + }).then((result) => {
  194 + // 非法参数跳到首页
  195 + if (result[0].isGo || result[0].isEmpty) {
  196 + res.redirect('/');
  197 + return false;
  198 + }
  199 +
  200 + res.render('invite/mycoupons', {
  201 + module: 'activity',
  202 + page: 'invite',
  203 + result: result[0],
  204 + userInfo: result[1],
  205 + amount: amount,
  206 + title: inviteTitle
  207 + });
  208 + }).catch(next);
  209 +};
  210 +
  211 +// 好友领取完页面
  212 +exports.shareover = (req, res) => {
  213 + let amount = req.query.amount * 1 || 5;
  214 + let sign = req.query.sign;
  215 +
  216 + if (md5(amount + secretKey) !== sign) {
  217 + res.redirect('/');
  218 + return false;
  219 + }
  220 +
  221 + res.render('invite/shareover', {
  222 + module: 'activity',
  223 + page: 'invite',
  224 + result: {
  225 + amount: amount
  226 + },
  227 + title: inviteTitle
  228 + });
  229 +};
  230 +
  231 +// 接收微信返回后的信息
  232 +exports.getwxinfo = (req, res, next) => {
  233 + let url = req.query.url;
  234 + let code = req.query.code;
  235 +
  236 + inviteModel.getWxUserInfo({
  237 + code: code
  238 + }).then((result) => {
  239 + if (result === false) {
  240 + res.redirect('/');
  241 + } else {
  242 + res.cookie('wxUserInfo', result, {
  243 + domain: 'yohobuy.com'
  244 + });
  245 + res.redirect(url);
  246 + }
  247 + }).catch(next);
  248 +};
  249 +
  250 +// 活动结束页面
  251 +exports.over = (req, res) => {
  252 + res.render('invite/over', {
  253 + module: 'activity',
  254 + page: 'invite',
  255 + result: [],
  256 + title: inviteTitle
  257 + });
  258 +};
  259 +
  260 +
  261 +
  1 +/**
  2 + * Created by PhpStorm.
  3 + * User: Targaryen
  4 + * Date: 2016/7/15
  5 + * Time: 13:47
  6 + */
  7 +'use strict';
  8 +const api = global.yoho.API;
  9 +
  10 +/**
  11 + * 根据 ID 获取活动信息 tar note 待处理
  12 + * @param actId
  13 + * @returns {*}
  14 + */
  15 +exports.getInfoById = (actId) => {
  16 + return api.get('', {
  17 + method: '',
  18 + actId: actId
  19 + });
  20 +};
  21 +
  22 +/**
  23 + * 获取一条用户的分享信息 tar note 待处理
  24 + * @param shareUid
  25 + * @param actId
  26 + * @param shareUrl
  27 + * @returns {*}
  28 + */
  29 +exports.getOne = (shareUid, actId, shareUrl) => {
  30 + return api.get('', {
  31 + method: '',
  32 + shareUid: shareUid,
  33 + actId: actId,
  34 + shareUrl: shareUrl
  35 + });
  36 +};
  37 +
  38 +/**
  39 + * 通过opend_id 获取用户uid
  40 + * @param openId
  41 + * @returns {*}
  42 + */
  43 +exports.getByOpenId = (openId) => {
  44 + if (!openId) {
  45 + return;
  46 + }
  47 +
  48 + return api.get('', {
  49 + method: '',
  50 + openId: openId
  51 + });
  52 +};
  53 +
  54 +/**
  55 + * 添加绑定信息
  56 + * @param uid
  57 + * @param openId
  58 + * @param snsNick
  59 + * @param snsHeadImg
  60 + * @param snsType
  61 + * @returns {*}
  62 + */
  63 +exports.set = (uid, openId, snsNick, snsHeadImg, snsType) => {
  64 + if (!openId || parseInt(snsType, 10) < 1) {
  65 + return;
  66 + }
  67 +
  68 + return api.get('', {
  69 + method: '',
  70 + uid: uid,
  71 + openId: openId,
  72 + snsNick: snsNick,
  73 + snsHeadImg: snsHeadImg,
  74 + snsType: snsType || '1'
  75 + });
  76 +};
  77 +
  78 +/**
  79 + * 更新头像
  80 + * @param id
  81 + * @param nick
  82 + * @param headImg
  83 + * @returns {*}
  84 + */
  85 +exports.updateHeadimg = (id, nick, headImg) => {
  86 + if (parseInt(id, 10) < 1) {
  87 + return;
  88 + }
  89 +
  90 + return api.get('', {
  91 + id: id,
  92 + nick: nick,
  93 + headImg: headImg
  94 + });
  95 +};
  96 +
  97 +/**
  98 + * 获取分享数量
  99 + * @param uid
  100 + * @param activityId
  101 + * @returns {*}
  102 + */
  103 +exports.getCount = (uid, activityId) => {
  104 + return api.get('', {
  105 + uid: uid || '0',
  106 + activityId: activityId
  107 + });
  108 +};
  109 +
  110 +/**
  111 + * 根据分享者id获取领券列表
  112 + * @param shareUid
  113 + * @param activityId
  114 + * @param offset
  115 + * @param size
  116 + * @param couponType
  117 + * @returns {*}
  118 + */
  119 +exports.getListByShareUid = (shareUid, activityId, offset, size, couponType) => {
  120 + if (parseInt(shareUid, 10) < 1 || parseInt(activityId, 10) < 1) {
  121 + return;
  122 + }
  123 + return api.get('', {
  124 + method: '',
  125 + shareUid: shareUid,
  126 + activityId: activityId,
  127 + offset: offset,
  128 + size: size,
  129 + couponType: couponType
  130 + });
  131 +};
  1 +'use strict';
  2 +const api = global.yoho.API;
  3 +const camelCase = global.yoho.camelCase;
  4 +const _ = require('lodash');
  5 +
  6 +/* 微信相关 */
  7 +const wxCode = {
  8 + wxAppId: 'wx75e5a7c0c88e45c2',
  9 + wxAppSecret: 'ce21ae4a3f93852279175a167e54509b'
  10 +};
  11 +
  12 +/**
  13 + * 获取微信授权地址
  14 + * @param callback
  15 + * @returns {string}
  16 + */
  17 +const getWxOauthUrl = (callback) => {
  18 + return 'https://open.weixin.qq.com/connect/oauth2/authorize?appid=' +
  19 + wxCode.wxAppId + '&redirect_uri=' + callback +
  20 + '&response_type=code&scope=snsapi_userinfo#wechat_redirect';
  21 +};
  22 +
  23 +/**
  24 + * 生成分享url
  25 + * @param shareUid
  26 + * @param actId
  27 + * @param nums
  28 + * @returns {string}
  29 + */
  30 +const createShareUrl = (shareUid, actId, nums) => {
  31 + return 'http://m.yohobuy.com/activity/invite/share_' + shareUid + '_' + actId + '_' + nums + '.html';
  32 +};
  33 +
  34 +/**
  35 + * 根据第三方id,查询绑定信息
  36 + * @param {[string || array]} openIds 第三方id数组
  37 + * @return {[array]}
  38 + */
  39 +const getBindLogByOpenId = (openIds) => {
  40 + openIds = _.isArray(openIds) ? openIds : [openIds];
  41 + return api.get('', {
  42 + method: 'wap.invite.getBindLogByOpenId',
  43 + openIds: openIds.join(',')
  44 + });
  45 +};
  46 +
  47 +/**
  48 + * 合并第三方头像和昵称
  49 + * @param {[array]} data 邀请的用户列表,最主要的是openId字段
  50 + * @return {[array]}
  51 + */
  52 +const mergeBindLogDate = (data) => {
  53 + let openIds = [];
  54 + let photo = '//static.yohobuy.com/m/v1/activity/newyear/images/108.png';
  55 +
  56 + // 取5条
  57 + data = _.slice(data, 0, 5);
  58 +
  59 + _.forEach(data, (req) => {
  60 + openIds.push(req.openId);
  61 + });
  62 +
  63 + return getBindLogByOpenId(openIds).then(result => {
  64 + if (!_.isEmpty(result.data)) {
  65 + _.forEach(data, (req, key) => {
  66 + data[key].img = photo;
  67 + _.forEach(result.data, (bind) => {
  68 + if (req.openId === bind.openId) {
  69 + data[key].img = _.isEmpty(bind.snsHeadimg) ?
  70 + photo : bind.snsHeadimg;
  71 + data[key].nick = bind.snsNick;
  72 + }
  73 + });
  74 + });
  75 + }
  76 + return data;
  77 + });
  78 +};
  79 +
  80 +/**
  81 + * 获取分享页面列表数据
  82 + * @param {[int]} uid 用户id
  83 + * @param {[int]} activityId 活动id
  84 + * @return {[array]}
  85 + */
  86 +const index = (params) => {
  87 + params = params || {};
  88 +
  89 + return api.get('', Object.assign({
  90 + method: 'wap.invite.index'
  91 + }, params
  92 + )).then((result) => {
  93 + let firstData = {
  94 + isNil: false,
  95 + isEmpty: false,
  96 + isFive: false,
  97 + isGo: false,
  98 + remainData: ['', '', '', '', ''],
  99 + data: []
  100 + };
  101 +
  102 + switch (result.code) {
  103 + case 401:
  104 + // 没有分享记录
  105 + firstData.isNil = true;
  106 + break;
  107 + case 200:
  108 + return mergeBindLogDate(result.data).then(data => {
  109 + let len = data.length;
  110 +
  111 + // 判断是否否5条分享
  112 + result.data = data;
  113 +
  114 + if (len === 0) {
  115 + firstData.isEmpty = true;
  116 + } else if (len < 5) {
  117 + firstData.remainData =
  118 + _.slice(firstData.remainData, 0, 5 - len);
  119 + } else {
  120 + firstData.isFive = true;
  121 + firstData.remainData = [];
  122 + }
  123 +
  124 + return Object.assign(firstData, camelCase(result));
  125 + });
  126 + default:
  127 + // 活动状态不正确
  128 + firstData.isGo = true;
  129 + break;
  130 + }
  131 +
  132 + return Object.assign(firstData, camelCase(result));
  133 + });
  134 +};
  135 +
  136 +/**
  137 + * 通过手机号发送验证码
  138 + * @param {[int]} area 区域,中国:86
  139 + * @param {[string]} mobile 手机号
  140 + * @return {[array]}
  141 + */
  142 +const sendRegCodeToMobile = (params) => {
  143 + return api.get('', Object.assign({
  144 + method: 'app.register.sendRegCodeToMobile'
  145 + }, params));
  146 +};
  147 +
  148 +/**
  149 + * 发送已注册用户参与活动的优惠券
  150 + * @param {[string]} mobile 手机号
  151 + * @param {[int]} activityId 活动id
  152 + * @return {[array]}
  153 + */
  154 +const checkOldUserCoupon = (params) => {
  155 + return api.get('', Object.assign({
  156 + method: 'wap.invite.checkOldUserCoupon'
  157 + }, params));
  158 +};
  159 +
  160 +/**
  161 + * 验证手机验证码是否正确
  162 + * @param {[int]} area 区域,中国:86
  163 + * @param {[string]} mobile 手机号
  164 + * @param {[int]} code 验证码
  165 + * @return {[array]}
  166 + */
  167 +const validRegCode = (params) => {
  168 + return api.get('', Object.assign({
  169 + method: 'app.register.validRegCode'
  170 + }, params));
  171 +};
  172 +
  173 +/**
  174 + * 手机账号注册
  175 + * @param {[string]} mobile 手机号
  176 + * @param {[string]} activityName 活动名称
  177 + * @return {[array]}
  178 + */
  179 +const register = (params) => {
  180 + return api.get('', Object.assign({
  181 + method: 'wap.invite.register'
  182 + }, params));
  183 +};
  184 +
  185 +/**
  186 + * 微信好友获取红包方法(即分享出去的地址)
  187 + * @param {[int]} uid 分享用户id
  188 + * @param {[int]} activityId 活动id
  189 + * @param {[int]} nums 发送优惠券的数量
  190 + * @param {[String]} openId 微信的union_id
  191 + * @param {[String]} nickName 微信昵称
  192 + * @param {[String]} headImgUrl 微信头像
  193 + * @returns {[array]}
  194 + */
  195 +const shareModel = (params) => {
  196 + let firstData = {
  197 + isEmpty: false,
  198 + isFive: false,
  199 + isGo: false,
  200 + remainData: ['', '', '', '', ''],
  201 + data: []
  202 + };
  203 + let listData = [];
  204 +
  205 + // 这里面的逻辑就是获取第三方用户的头像和昵称,然后插入数据和更新数据
  206 + return api.get('', Object.assign({
  207 + method: 'wap.invite.share'
  208 + }, params))
  209 + .then((result) => {
  210 + // list为空,说明不是分享者本人
  211 + if (result.code !== 200 || _.isEmpty(result.data.list)) {
  212 + return result;
  213 + }
  214 +
  215 + return mergeBindLogDate(listData).then(data => {
  216 + let len = data.length;
  217 +
  218 + // 判断是否满5条分享
  219 + listData = data;
  220 +
  221 + if (len === 0) {
  222 + firstData.isEmpty = true;
  223 + } else if (len < 5) {
  224 + firstData.remainData =
  225 + _.slice(firstData.remainData, 0, 5 - len);
  226 + } else {
  227 + firstData.isFive = true;
  228 + firstData.remainData = [];
  229 + }
  230 +
  231 + firstData.data = listData;
  232 + result.data.list = firstData;
  233 +
  234 + // 释放内存
  235 + listData = [];
  236 + return camelCase(result);
  237 + });
  238 + });
  239 +};
  240 +
  241 +/**
  242 + * 邀请好友赢福利之后领取优惠券
  243 + * @param {[int]} uid 用户id
  244 + * @param {[int]} activityId 活动id
  245 + * @param {[int]} nums 发送优惠券的数量
  246 + * @param {[int]} shareUid 分享者的uid
  247 + * @param {[string]} openId 微信的union_id
  248 + * @returns {[array]}
  249 + */
  250 +const receiveCoupons = (params) => {
  251 + return api.get('', Object.assign({
  252 + method: 'wap.invite.receiveCoupons'
  253 + }, params));
  254 +};
  255 +
  256 +/**
  257 + * 获取分享列表和用户信息
  258 + * @param {[int]} uid 用户id
  259 + * @param {[int]} shareUid 分享着uid
  260 + * @param {[int]} nums 发送优惠券的数量
  261 + * @param {[int]} amount 金额
  262 + * @param {[int]} activityId 活动id
  263 + * @return {[array]}
  264 + */
  265 +const myCoupons = (params) => {
  266 + let mobile;
  267 + let firstData = {
  268 + isEmpty: false,
  269 + isFive: false,
  270 + isGo: false,
  271 + remainData: ['', '', '', '', ''],
  272 + data: []
  273 + };
  274 + let listData = [];
  275 +
  276 + return api.get('', Object.assign({
  277 + method: 'wap.invite.myCoupons'
  278 + }, params)).then((result) => {
  279 +
  280 + if (result.code !== 200) {
  281 + return result;
  282 + }
  283 +
  284 + return mergeBindLogDate(result.data.list).then(data => {
  285 + listData = data;
  286 +
  287 + if (listData.length < 5) {
  288 + firstData.remainData =
  289 + _.slice(firstData.remainData, 0, 5 - listData.length);
  290 + } else {
  291 + firstData.isFive = true;
  292 + firstData.remainData = [];
  293 + }
  294 +
  295 + firstData.data = listData;
  296 + result.data.list = firstData;
  297 +
  298 + mobile = result.data.myProfile.mobile;
  299 + result.data.myProfile.encMobile = mobile.replace(mobile.substring(3, 7), '****');
  300 +
  301 + // 释放内存
  302 + listData = [];
  303 + return camelCase([result.data.list, result.data.myProfile]);
  304 + });
  305 + });
  306 +};
  307 +
  308 +/**
  309 + * 授权后获取微信用户信息
  310 + * @return {[array]}
  311 + */
  312 +const getWxUserInfo = (params) => {
  313 + let url1 = 'https://api.weixin.qq.com/sns/oauth2/access_token?appid=' +
  314 + wxCode.wxAppId + '&secret=' + wxCode.wxAppSecret + '&code=' +
  315 + params.code + '&grant_type=authorization_code';
  316 + let url2 = 'https://api.weixin.qq.com/sns/userinfo?lang=zh_CN';
  317 +
  318 + return api._requestFromAPI({
  319 + url: url1,
  320 + qs: {},
  321 + json: true,
  322 + gzip: true,
  323 + timeout: 3000
  324 + })
  325 + .then((result) => {
  326 + if (_.isEmpty(result.openid)) {
  327 + return false;
  328 + }
  329 + url2 = url2 + '&access_token=' + result.access_token +
  330 + '&openid=' + result.openid;
  331 + return api._requestFromAPI({
  332 + url: url2,
  333 + qs: {},
  334 + json: true,
  335 + gzip: true,
  336 + timeout: 3000
  337 + })
  338 + .then((result2) => {
  339 + return result2;
  340 + });
  341 + });
  342 +};
  343 +
  344 +module.exports = {
  345 + index,
  346 + shareModel,
  347 + getBindLogByOpenId,
  348 + sendRegCodeToMobile,
  349 + checkOldUserCoupon,
  350 + validRegCode,
  351 + register,
  352 + receiveCoupons,
  353 + myCoupons,
  354 + createShareUrl,
  355 + getWxOauthUrl,
  356 + getWxUserInfo
  357 +};
@@ -11,6 +11,7 @@ const cRoot = './controllers'; @@ -11,6 +11,7 @@ const cRoot = './controllers';
11 11
12 const coupon = require(`${cRoot}/coupon`); 12 const coupon = require(`${cRoot}/coupon`);
13 const wechat = require(`${cRoot}/wechat`); 13 const wechat = require(`${cRoot}/wechat`);
  14 +const invite = require(`${cRoot}/invite`);
14 15
15 // routers 16 // routers
16 17
@@ -22,4 +23,18 @@ router.get('/coupon/verify', coupon.verify); @@ -22,4 +23,18 @@ router.get('/coupon/verify', coupon.verify);
22 23
23 router.get('/wechat/share', wechat.wechatShare); 24 router.get('/wechat/share', wechat.wechatShare);
24 25
  26 +router.get('/invite', invite.index);
  27 +router.get('/invite/index', invite.index);
  28 +
  29 +router.get(/\/invite\/share_([\d]+)_([\d]+)_([\d]+).html/, invite.share);
  30 +router.get('/invite/sendRegCodeToMobile', invite.sendRegCodeToMobile);
  31 +router.get('/invite/checkOldUserCoupon', invite.checkOldUserCoupon);
  32 +router.get('/invite/validRegCode', invite.validRegCode);
  33 +router.get('/invite/register', invite.register);
  34 +router.get('/invite/receiveCoupons', invite.receiveCoupons);
  35 +router.get(/\/invite\/mycoupons_([\d]+)_([\d]+)_([\d]+)_([\d]+).html/, invite.myCoupons); // 好友领取完优惠券的页面
  36 +router.get('/invite/getwxinfo', invite.getwxinfo);
  37 +router.get('/invite/shareover', invite.shareover);
  38 +router.get('/invite/over', invite.over);
  39 +
25 module.exports = router; 40 module.exports = router;
  1 +<div class="invite-page invite-page-bg">
  2 + <div class="invite-content-list">
  3 + <div>
  4 + <img src="//cdn.yoho.cn/m-yohobuy-node/assets/img/activity/invite/title_new.png" />
  5 + <br />
  6 + <p class="fz14">只需1位小伙伴领取,<br/>即得<strong class="fz17">10元现金券</strong><br/>全部领完,可继续发,上不封顶!<br/>奔跑吧,潮人们!</p>
  7 +
  8 + <a href="javascript:void(0)" class="weal-btn fz16" id="send_gift">立刻发福利</a>
  9 + <h2 class="rule-tit fz15">活动细则</h2>
  10 + <ol class="rule-con hide">
  11 + <li>本次活动所获现金券仅限Yoho!Buy有货商城购买商品使用,不得转借他人,不可兑换现金;</li>
  12 + <li>一个订单只可使用一张优惠券,优惠券需在有效期内使用,过期则无法使用;</li>
  13 + <li>使用优惠券支付的订单,退款结算按照实际支付金额退款,优惠券返还账户,且有效期不变;</li>
  14 + <li>本活动仅限普通消费者参与,如有代购或批发行为Yoho!Buy有货有权取消订单并做相关处理;</li>
  15 + <li>每位会员有10次发福利机会,超过10次不再赠送现金券;</li>
  16 + <li>Yoho!Buy有货在法律允许范围内拥有本规则解释权。</li>
  17 + </ol>
  18 + </div>
  19 + <div class="share-tag"><img src="//static.yohobuy.com/m/v1/img/invite/yd_share.png"></div>
  20 + </div>
  21 +</div><!--/invite-page-->
  1 +<div class="invite-page invite-page-bg">
  2 + <div class="invite-content-list">
  3 + {{#if result.isEmpty}}
  4 + <div class="coupon-box coupon-box02 relative mar-top-a">
  5 + <p class="fz9 bold">YUAN</p>
  6 + <strong class="fz18">现金券</strong>
  7 + <p class="fz9 bold">CPOUPON</p>
  8 + <div class="pirbox absolute">
  9 + <em class="absolute"></em>0
  10 + </div>
  11 + </div>
  12 +
  13 + <p class="draw-coupon fz19 bold t-shadow">至少1位小伙伴领取<br />才能获得现金券!</p>
  14 + <p class="goon fz11 t-shadow">~继续呼唤小伙伴吧~</p>
  15 + <p class="t-shadow">(点击右上角可以继续召集哦)</p>
  16 +
  17 + <ul class="list-port">
  18 + <li><p class="pic"></p></li>
  19 + <li><p class="pic"></p></li>
  20 + <li><p class="pic"></p></li>
  21 + <li><p class="pic"></p></li>
  22 + <li><p class="pic"></p></li>
  23 + </ul>
  24 + <p><a href="javascript:void(0)" class="weal-btn fz16">再次分享</a></p>
  25 + {{else if result.isFive}}
  26 + <!-- 现金券 start -->
  27 + <div class="coupon-box coupon-box02 relative mar-top-a">
  28 + <p class="fz9 bold">YUAN</p>
  29 + <strong class="fz18">现金券</strong>
  30 + <p class="fz9 bold">CPOUPON</p>
  31 + <div class="pirbox absolute">
  32 + <em class="absolute"></em>10
  33 + </div>
  34 + <div class="count-not fz11 absolute"><hr class="fn-left"><hr class="fn-right">已送达您的账户</div>
  35 + </div>
  36 + <!-- 现金券 end -->
  37 +
  38 + <p class="draw-coupon fz16 bold t-shadow">您的号召力爆棚!!!</p>
  39 + <p class="fz11">已有5位小伙伴领取红包</p>
  40 + <ul class="list-port">
  41 + {{# result.data}}
  42 + <li><img class="pic" src="{{img}}"><p class="name">{{nick}}</p><p class="pon">{{couponAmount}}</p></li>
  43 + {{/ result.data}}
  44 + </ul>
  45 + <br />
  46 + <p><a href="javascript:void(0)" class="weal-btn fz16">还要发福利</a></p>
  47 + <br />
  48 + <p class="fz11 t-shadow">优惠券有效期:优惠券到账以后7天内有效(自然天)</p>
  49 + {{else}}
  50 + <!-- 现金券 start -->
  51 + <div class="coupon-box coupon-box02 relative mar-top-a">
  52 + <p class="fz9 bold">YUAN</p>
  53 + <strong class="fz18">现金券</strong>
  54 + <p class="fz9 bold">CPOUPON</p>
  55 + <div class="pirbox absolute">
  56 + <em class="absolute"></em>10
  57 + </div>
  58 + <div class="count-not fz11 absolute"><hr class="fn-left"><hr class="fn-right">已送达您的账户</div>
  59 + </div>
  60 + <!-- 现金券 end -->
  61 +
  62 + <p class="draw-coupon fz19 bold t-shadow">召集5位小伙伴领取,<br>即可再发福利,赶快召唤吧!</p>
  63 + <br /><br />
  64 + <ul class="list-port">
  65 + {{# result.data}}
  66 + <li><img class="pic" src="{{img}}"><p class="name">{{nick}}</p><p class="pon">{{couponAmount}}</p></li>
  67 + {{/ result.data}}
  68 +
  69 + {{# result.remainData}}
  70 + <li><p class="pic"></p></li>
  71 + {{/ result.remainData}}
  72 + </ul>
  73 + <p><a href="javascript:void(0)" class="weal-btn fz16">继续发福利</a></p>
  74 + <br />
  75 + <p class="fz11 t-shadow">优惠券有效期:优惠券到账以后7天内有效(自然天)</p>
  76 + {{/if}}
  77 +
  78 + <div class="share-tag"><img src="//static.yohobuy.com/m/v1/img/invite/yd_share.png"></div>
  79 + </div>
  80 +</div><!--/invite-page-->
  1 +<div class="invite-page invite-page-bg">
  2 + <div class="invite-content-list">
  3 + <!-- 已有小伙伴 start -->
  4 + <div class="coupon-box coupon-box02 relative mar-top-a">
  5 + <p class="fz9 bold">YUAN</p>
  6 + <strong class="fz18">现金券</strong>
  7 + <p class="fz9 bold">CPOUPON</p>
  8 + <div class="pirbox absolute">
  9 + <em class="absolute"></em>{{amount}}
  10 + </div>
  11 + <div class="count-not fz11 absolute"><hr class="fn-left"><hr class="fn-right">已送达您的账户</div>
  12 + </div>
  13 +
  14 + <p class="congratu-coupon fz15 t-shadow">{{amount}}元现金券<br/>已自动存入YOHO!有货账户 {{userInfo.encMobile}}</p>
  15 + <p class="fz11">(首次下载客户端还能再次领取10元现金券)</p>
  16 +
  17 + <a href="javascript:void(0)" onclick="downLoadApp()" class="download-btn fz16" style="margin-top: 30px;">下载客户端查看</a>
  18 + <p><a href="//m.yohobuy.com" class="now-login fz14" style="border-bottom: 1px solid #fff; text-decoration:none;color:#FFF;line-height: normal;">立即登录网站使用</a></p>
  19 + <br />
  20 + <p class="fz11 t-shadow">优惠券有效期:优惠券到账以后7天内有效(自然天)</p>
  21 + <ul class="list-port">
  22 + {{# result.data}}
  23 + <li><img class="pic" src="{{img}}"><p class="name">{{nick}}</p><p class="pon">{{couponAmount}}</p></li>
  24 + {{/ result.data}}
  25 +
  26 + {{# result.remainData}}
  27 + <li><p class="pic"></p></li>
  28 + {{/ result.remainData}}
  29 + </ul>
  30 + <!-- 已有小伙伴 end -->
  31 + </div>
  32 +</div><!--/invite-page-->
  1 +<div class="invite-page invite-page-bg">
  2 + <div class="invite-content-page">
  3 + <img src="//cdn.yoho.cn/m-yohobuy-node/assets/img/activity/invite/title_new.png" />
  4 + <h2 class="bold fz16">YoHo!Buy有货福利来袭,即领即用!</h2>
  5 + <p>全球1000+潮流品牌每日上新!</p>
  6 + <div class='invite-group relative'>
  7 + <p class="fz13">&nbsp;&nbsp;&nbsp;&nbsp;<span class='bold'>填写您的手机号码,来YOHO潮流!</span>&nbsp;&nbsp;&nbsp;&nbsp;</p>
  8 + <p class='fz11'>已注册YOHO!Buy有货的手机号不能领取哦</p><br />
  9 + <span class='send-validate-btn'>发送验证码</span>
  10 + <input type='text' placeholder='输入手机号' class='invite-mobile' />
  11 + <input type='text' placeholder='输入验证码' class='invite-code' />
  12 + <input type='hidden' name="actId" class='invite-actId' value='{{result.actId}}' />
  13 + <input type="hidden" name="nums" value="{{result.nums}}" />
  14 + <input type="hidden" name="shareUid" value="{{result.shareUid}}" />
  15 + <input type="hidden" name="openId" value="{{result.openId}}" />
  16 + <input type='button' value='领福利' class='invite-btn receive-btn'/>
  17 + </div>
  18 +
  19 + <div class='invite-dialog oldget hide'>
  20 + <div class='invite-dialog-center'>
  21 + <p class="fz13 mtTop03">您已是Yoho!Buy有货的顾客,</p>
  22 + <p class="fz13">此福利仅限新用户领取,</p>
  23 + <p class="fz13">您只需下载Yoho!Buy有货手机客户端,</p>
  24 + <p class="fz13">在【我的】栏目中邀请好友领福利,</p>
  25 + <p class="fz13 mtTop04">即可赢取<strong class="fz18">10元现金券</strong></p>
  26 + <div class='btn-group'>
  27 + <input type='button' class='invite-btn cancelbtn' value='重新输入' />
  28 + <input type='button' class='invite-btn download-btn' value='立即查看' />
  29 + </div>
  30 + </div>
  31 + </div><!--/oldget-->
  32 +
  33 + <div class="invite-dialog isreg hide">
  34 + <br />
  35 + <br />
  36 + <p class="fz13 mtTop03">您已经领取福利券!</p>
  37 + <p class="fz13">下载Yoho!Buy有货手机客户端,</p>
  38 + <p class="fz13">在【我的】栏目中邀请好友领福利,</p>
  39 + <p class="fz13 mtTop04">还可赢取<strong class="fz18">10元现金券</strong></p>
  40 + <br />
  41 + <div class='btn-group'>
  42 + <input type='button' class='invite-btn cancelbtn' value='重新输入' />
  43 + <input type='button' class='invite-btn download-btn' value='立即查看' />
  44 + </div>
  45 + </div><!--/isreg-->
  46 +
  47 + <div class="invite-dialog ishint hide">
  48 + <div class="fz13 ishint-content">操作失败!</div>
  49 + <div class='btn-group'>
  50 + <input type='button' class='invite-btn closeBtn fw90' value='确定' />
  51 + </div>
  52 + </div><!--/ishint-->
  53 +
  54 + </div>
  55 +</div><!--/invite-page-->
  1 +<div class="invite-page invite-page-bg">
  2 + <div class="invite-content-list">
  3 + <div>
  4 + <img src="//cdn.yoho.cn/m-yohobuy-node/assets/img/activity/invite/title_new.png" />
  5 + <br />
  6 + <p class="fz14">只需1位小伙伴领取,<br/>即得<strong class="fz17">10元现金券</strong><br/>全部领完,可继续发,上不封顶!<br/>奔跑吧,潮人们!</p>
  7 +
  8 + <a href="javascript:void(0)" class="invite-btn fz16">立刻发福利</a>
  9 + <h2 class="rule-tit fz15">活动细则</h2>
  10 + </div>
  11 +
  12 + <div class='invite-dialog-bg'></div>
  13 + <div class='invite-dialog over-color'>
  14 + <div class='bold invite-dialog-center'>
  15 + <br /><br />
  16 + <p class="fz13 mtTop03">来晚了?!</p>
  17 + <p class="fz16">活动已结束!</p>
  18 + <br />
  19 + <a href='//m.yohobuy.com' class='invite-btn fw90'>继续逛潮牌</a>
  20 + </div>
  21 + </div>
  22 + </div>
  23 +</div><!--/invite-page-->
  1 +<div class="invite-page invite-page-bg">
  2 + <div class="invite-content-list">
  3 + <div class='mar-top-a'>
  4 + <h2 class="fz37 bold t-shadow">太可惜了,</h2>
  5 + <p class="fz15 t-shadow">您与88元现金券擦肩而过!别伤心,</p>
  6 + <p class="fz22 bold t-shadow">赠您5元现金券</p>
  7 + <p class="t-shadow">(仅限Yobo!Buy有货客户端使用)</p>
  8 + <!-- 现金券 start -->
  9 + <div class="coupon-box coupon-box02 relative mar-top-a">
  10 + <p class="fz9 bold">YUAN</p>
  11 + <strong class="fz18">现金券</strong>
  12 + <p class="fz9 bold">CPOUPON</p>
  13 + <div class="pirbox absolute">
  14 + <em class="absolute"></em>{{result.amount}}
  15 + </div>
  16 + <div class="count-not fz11 absolute"><hr class="fn-left"><hr class="fn-right">已送达您的账户</div>
  17 + </div>
  18 + <!-- 现金券 end -->
  19 +
  20 + <p class="hurry-size fz17 bold t-shadow">赶紧来Yobo!Buy有货<br/>逛潮牌吧!</p>
  21 + <a href="javascript:void(0)" class="download-btn fz16">立即下载客户端</a>
  22 + <p class="fz11">优惠券有效期:优惠券到账以后7天内有效(自然天)</p>
  23 + </div>
  24 + </div>
  25 +</div><!--/invite-page-->
  1 +webpackJsonp([34],[function(e,n,o){var t,i,s=o(1),a=s("#orderCode").html(),d=s("#oldUserCouponPic").html(),r=s("#newUserCouponPic").html(),l=s("#tipMessage").html(),c=s("#activityID").html(),h="//m.yohobuy.com/life/getSignPackage",u=s("#shareTitle").val(),m=s("#shareImg").val(),p=s("#shareDesc").val(),g=s("#shareLink").val(),v=window.wx;o(3),s("#phone").bind("input propertychange",function(){11===s(this).val().length?s(".input-content div").eq("0").addClass("verification-code"):(s(".input-content div").eq("0").removeClass(),s(this).val().length>=1?s(".input-content i").eq("0").removeClass("hidden"):s(".input-content i").eq("0").addClass("hidden"))}),s("#verification").bind("input propertychange",function(){4===s(this).val().length?s(".input-content div").eq("1").addClass("get"):(s(".input-content div").eq("1").removeClass(),s(this).val().length>=1?s(".input-content i").eq("1").removeClass("hidden"):s(".input-content i").eq("1").addClass("hidden"))}),s("#activityEnded").html()&&(s(".tip-wrap").removeClass("hidden"),s(".tip-wrap .title").html(l)),s("#newUser").html()||s(".gain-coupon-centent .coupon img").attr("src",d),"undefined"!=typeof v&&(s.getJSON(h+"?pageurl="+encodeURIComponent(location.href.split("#")[0])+"&callback=?",function(e){var n,o,t,i;e&&(n=e.appId.toString(),o=e.timestamp,t=e.nonceStr.toString(),i=e.signature.toString(),v.config({debug:!1,appId:n,timestamp:o,nonceStr:t,signature:i,jsApiList:["checkJsApi","onMenuShareTimeline","onMenuShareAppMessage","onMenuShareQQ","onMenuShareWeibo","hideMenuItems","showMenuItems","hideAllNonBaseMenuItem","showAllNonBaseMenuItem","translateVoice","startRecord","stopRecord","onRecordEnd","playVoice","pauseVoice","stopVoice","uploadVoice","downloadVoice","chooseImage","previewImage","uploadImage","downloadImage","getNetworkType","openLocation","getLocation","hideOptionMenu","showOptionMenu","closeWindow","scanQRCode","chooseWXPay","openProductSpecificView","addCard","chooseCard","openCard"]}))}),v.ready(function(){var e={title:u,desc:p,imgUrl:m,link:g};v.onMenuShareAppMessage(e),v.onMenuShareTimeline(e),v.onMenuShareQQ(e),v.onMenuShareWeibo(e)})),s(".phone-input-content div").on("click",function(){return t=s(this).siblings("input").val(),i=/[0-9]{11}/,i.test(t)?void s.ajax({url:"/activity/coupon/phone",data:{mobile:s("#phone").val(),ordercode:a},success:function(e){if(200===e.result.code)if(window._yas&&window._yas.sendCustomInfo&&window._yas.sendCustomInfo({activityID:c,returnCode:e.result.returnCode},!0),e.result.newUser?s(".gain-coupon-centent .coupon img").attr("src",r):s(".gain-coupon-centent .coupon img").attr("src",d),e.result.ended)s(".tip-wrap").removeClass("hidden"),s(".tip-wrap .title").html(e.result.message);else if(e.result.geted)s(".page .gain-coupon-centent").removeClass("hidden"),s(".page .coupon-centent").addClass("hidden"),s("#mobile").html("优惠券已放至账户"+e.result.mobile);else if(e.result.newUser)s(".coupon-centent .phone-input-content").addClass("hidden"),s(".coupon-centent .vertify-input-content").removeClass("hidden");else{if(e.result.wrongNumb)return s("#dialog").removeClass("hidden"),s(".mask").removeClass("hidden"),s("#dialog .content").html('<p class="phone-error">手机号错误,请重新输入。<p>'),void setTimeout(function(){s(".messages").addClass("hidden"),s(".mask").addClass("hidden"),s("#dialog .content").html(" ")},1400);if(e.result.oldUserAskCouponOnceMore)return s("#dialog").removeClass("hidden"),s(".mask").removeClass("hidden"),s("#dialog .content").html('<p class="phone-error">您今天已经领过咯,速度去有货购潮流!<p>'),void setTimeout(function(){s(".messages").addClass("hidden"),s(".mask").addClass("hidden"),s("#dialog .content").html(" "),s(".page .gain-coupon-centent").removeClass("hidden"),s(".page .coupon-centent").addClass("hidden"),s("#mobile").html("优惠券已放至账户"+e.result.mobile)},2500)}else s("#dialog").removeClass("hidden"),s(".mask").removeClass("hidden"),s("#dialog .content").html('<p class="phone-error">网络错误<p>'),setTimeout(function(){s(".messages").addClass("hidden"),s(".mask").addClass("hidden"),s("#dialog .content").html(" ")},1400)},error:function(){s("#dialog").removeClass("hidden"),s(".mask").removeClass("hidden"),s("#dialog .content").html('<p class="phone-error">网络错误,稍后再试!<p>'),setTimeout(function(){s(".messages").addClass("hidden"),s(".mask").addClass("hidden"),s("#dialog .content").html(" ")},1400)}}):(s("#dialog").removeClass("hidden"),s(".mask").removeClass("hidden"),s("#dialog .content").html('<p class="phone-error">手机号错误,请重新输入。<p>'),void setTimeout(function(){s(".messages").addClass("hidden"),s(".mask").addClass("hidden"),s("#dialog .content").html(" ")},1400))}),s(".vertify-input-content").on("click",".get",function(){s(".input-content div").eq("1").removeClass("get"),4===s(this).siblings("input").val().length?s.ajax({url:"/activity/coupon/verify",data:{identifycode:s("#verification").val(),mobile:s("#phone").val(),ordercode:a},dataType:"json",success:function(e){if(200===e.result.code)if(window._yas&&window._yas.sendCustomInfo&&window._yas.sendCustomInfo({activityID:c,returnCode:e.result.returnCode},!0),e.result.newUser?s(".gain-coupon-centent .coupon img").attr("src",r):s(".gain-coupon-centent .coupon img").attr("src",d),e.result.ended)s(".tip-wrap").removeClass("hidden"),s(".tip-wrap .title").html(e.result.message);else if(e.result.geted)s(".page .gain-coupon-centent").removeClass("hidden"),s(".page .coupon-centent").addClass("hidden"),s("#mobile").html("优惠券已放至账户"+e.result.mobile);else if(e.result.newUser)s(".coupon-centent .phone-input-content").addClass("hidden"),s(".coupon-centent .vertify-input-content").removeClass("hidden");else{if(e.result.wrongNumb)return s("#dialog").removeClass("hidden"),s(".mask").removeClass("hidden"),s("#dialog .content").html('<p class="phone-error">手机号错误,请重新输入。<p>'),void setTimeout(function(){s(".messages").addClass("hidden"),s(".mask").addClass("hidden"),s("#dialog .content").html(" ")},1400);if(e.result.vertifyWrong)return s("#dialog").removeClass("hidden"),s(".mask").removeClass("hidden"),s("#dialog .content").html('<p class="phone-error">验证码错误,请重新输入。<p>'),void setTimeout(function(){s(".messages").addClass("hidden"),s(".mask").addClass("hidden"),s("#dialog .content").html(" ")},1400);if(e.result.oldUserAskCouponOnceMore)return s("#dialog").removeClass("hidden"),s(".mask").removeClass("hidden"),s("#dialog .content").html('<p class="phone-error">您今天已经领过咯,速度去有货购潮流!<p>'),void setTimeout(function(){s(".messages").addClass("hidden"),s(".mask").addClass("hidden"),s("#dialog .content").html(" "),s(".page .gain-coupon-centent").removeClass("hidden"),s(".page .coupon-centent").addClass("hidden"),s("#mobile").html("优惠券已放至账户"+e.result.mobile)},2500)}else s("#dialog").removeClass("hidden"),s(".mask").removeClass("hidden"),s("#dialog .content").html('<p class="phone-error">'+e.result.message+"<p>"),setTimeout(function(){s(".messages").addClass("hidden"),s(".mask").addClass("hidden"),s("#dialog .content").html(" ")},1400)},error:function(){s("#dialog").removeClass("hidden"),s(".mask").removeClass("hidden"),s("#dialog .content").html('<p class="phone-error">网络错误,稍后再试!<p>'),setTimeout(function(){s(".messages").addClass("hidden"),s(".mask").addClass("hidden"),s("#dialog .content").html(" ")},1400)}}):(s("#dialog").removeClass("hidden"),s(".mask").removeClass("hidden"),s("#dialog .content").html('<p class="phone-error">验证码错误,请重新输入。<p>'),setTimeout(function(){s(".messages").addClass("hidden"),s(".mask").addClass("hidden"),s("#dialog .content").html(" ")},1400))}),s(".close").on("click",function(){s(".dialog").addClass("hidden"),s(".mask").addClass("hidden"),s("#dialog .content").html(" ")}),s(".coupon-description span").on("click",function(){s("#message").removeClass("hidden"),s(".mask").removeClass("hidden")}),s(".description").on("click",function(){s("#message").removeClass("hidden"),s(".mask").removeClass("hidden")}),s(".use-coupon-btn").on("click",function(){window._yas&&window._yas.sendCustomInfo&&window._yas.sendCustomInfo({activityID:c},!1)}),s(".input-content .clear-mobile").on("click",function(){s(".input-content input").eq("0").val(""),s(this).addClass("hidden"),s(".input-content div").eq("0").removeClass()}),s(".input-content .clear-verify").on("click",function(){s(".input-content input").eq("1").val(""),s(this).addClass("hidden"),s(".input-content div").eq("1").removeClass()})},,,function(e,n,o){function t(e){var n,o,t=document.cookie;return document.cookie&&""!==document.cookie&&(o=t.indexOf(e+"="),o>-1&&(o+=e.length+1,n=decodeURIComponent(m.trim(t.substring(o,t.indexOf(";",o)))))),n}function i(e,n,o){var t,i,s,a,d="";"undefined"!=typeof n&&(o=o||{},null===n&&(n="",o.expires=-1),o.expires&&("number"==typeof o.expires||o.expires.toUTCString)&&("number"==typeof o.expires?(a=new Date,a.setTime(a.getTime()+24*o.expires*60*60*1e3)):a=o.expires,d="; expires="+a.toUTCString()),t=o.path?"; path="+o.path:"",i=o.domain?"; domain="+o.domain:"",s=o.secure?"; secure":"",document.cookie=[e,"=",encodeURIComponent(n),d,t,i,s].join(""))}function s(){var e=!!navigator.cookieEnabled;return"undefined"!=typeof navigator.cookieEnabled||e||(document.cookie="testcookie",e=-1!==document.cookie.indexOf("testcookie")),e}function a(){var e,n=t("_UID");return"undefined"==typeof n?0:(e=n.split("::"),"undefined"==typeof e||e.length<4?0:e)}function d(){var e=a();return 0===e?0:e[1]}function r(){var e=t("_g");return"undefined"==typeof e?"":JSON.parse(e).k}function l(){var e;0!==g.length&&(e=Math.min(m(window).height(),window.screen.availHeight),m("body").height()<=e-parseInt(g.css("height"),0)?g.addClass("bottom"):g.removeClass("bottom"))}function c(e){var n=m(e).outerHeight();e&&g.css("margin-bottom",n+"px")}function h(){var e,n,o=[],t=window.location.search.slice(1).split("&");for(n=0;n<t.length;n++)e=t[n].split("="),o.push(e[0]),o[e[0]]=e[1];return o}function u(e){return e.replace(/(\d{3})\d{4}(\d{4})/,"$1****$2")}var m=o(1),p=o(4),g=m("#yoho-footer"),v=m(".yoho-page"),f=m(".yoho-header");!function(){var e,n=g.children(".op-row"),o=m(".back-to-top"),t=a();l(),0===t?n.prepend('<a href="http://m.yohobuy.com/signin.html?refer='+location.href+'">登录</a><span class="sep-line">|</span><a href="http://m.yohobuy.com/reg.html">注册</a>'):n.prepend('<span>Hi,</span><a class="user-name" href="http://m.yohobuy.com/home?tmp='+Math.random()+'">'+t[0]+'</a><a href="http://m.yohobuy.com/passport/signout/index">退出</a>'),o.length>0&&(e=new p(o[0]),e.on("tap",function(e){return m(window).scrollTop(0),e.srcEvent.preventDefault(),!1})),g.removeClass("hide")}(),function(e,n,o,t,i){var s=n.createElement(o),a=n.getElementsByTagName(o)[0];e.YohoAcquisitionObject=i,e[i]=function(){e[i].p=arguments},s.async=1,s.src=t,a.parentNode.insertBefore(s,a)}(window,document,"script",("https:"===document.location.protocol?"https":"http")+"://cdn.yoho.cn/yas-jssdk/1.0.17/yas.js","_yas"),function(){var e=d();e=0===e?"":e,window._ozuid=e,window._yas&&window._yas(1*new Date,"1.0.17","yohobuy_m",e,"","")}(),f.on("touchstart","a",function(){f.find("a").removeClass("highlight"),m(this).addClass("highlight")}).on("touchend touchcancel","a",function(){m(this).removeClass("highlight")}),v.on("touchstart",".tap-hightlight",function(){m(this).siblings(".tap-hightlight").removeClass("highlight"),m(this).addClass("highlight")}).on("touchend touchcancel",".tap-hightlight",function(){m(this).removeClass("highlight")}),m(".nav-home").on("touchstart",function(){m(".homebuttom").toggleClass("hide")}),function(){var e,n,o=0,t="webkit moz ms o".split(" "),i=window.requestAnimationFrame,s=window.cancelAnimationFrame;for(n=0;n<t.length&&(!i||!s);n++)e=t[n],i=i||window[e+"RequestAnimationFrame"],s=s||window[e+"CancelAnimationFrame"]||window[e+"CancelRequestAnimationFrame"];i&&s||(i=function(e){var n=(new Date).getTime(),t=Math.max(0,16-(n-o)),i=window.setTimeout(function(){e(n+t)},t);return o=n+t,i},s=function(e){window.clearTimeout(e)}),window.requestAnimationFrame=i,window.cancelAnimationFrame=s}(),m.extend({queryString:h}),11===g.find(".user-name").text().length&&g.find(".user-name").html(u(g.find(".user-name").text())),window.cookie=t,window.setCookie=i,window.isCookiesEnabled=s,window.getUser=a,window.getUid=d,window.getShoppingKey=r,window.rePosFooter=l,window.reMarginFooter=c,window.queryString=h()}]);
  1 +webpackJsonp([19],{0:function(e,i,n){n(24)},2:function(e,i,n){function t(e,i){var n,t;"undefined"!=typeof e&&(n=e.toString(),t=i&&i>0?i:2e3,o.text(n).show(),a=setTimeout(function(){"block"===o.css("display")&&o.hide()},t))}var o,a,s=n(1);!function(){var e='<div id="yoho-tip" class="yoho-tip"></div>';s(".yoho-page").append(e),o=s("#yoho-tip"),o.on("touchend",function(){o.hide(),clearTimeout(a)})}(),i.show=t},3:function(e,i,n){function t(e){var i,n,t=document.cookie;return document.cookie&&""!==document.cookie&&(n=t.indexOf(e+"="),n>-1&&(n+=e.length+1,i=decodeURIComponent(g.trim(t.substring(n,t.indexOf(";",n)))))),i}function o(e,i,n){var t,o,a,s,c="";"undefined"!=typeof i&&(n=n||{},null===i&&(i="",n.expires=-1),n.expires&&("number"==typeof n.expires||n.expires.toUTCString)&&("number"==typeof n.expires?(s=new Date,s.setTime(s.getTime()+24*n.expires*60*60*1e3)):s=n.expires,c="; expires="+s.toUTCString()),t=n.path?"; path="+n.path:"",o=n.domain?"; domain="+n.domain:"",a=n.secure?"; secure":"",document.cookie=[e,"=",encodeURIComponent(i),c,t,o,a].join(""))}function a(){var e=!!navigator.cookieEnabled;return"undefined"!=typeof navigator.cookieEnabled||e||(document.cookie="testcookie",e=-1!==document.cookie.indexOf("testcookie")),e}function s(){var e,i=t("_UID");return"undefined"==typeof i?0:(e=i.split("::"),"undefined"==typeof e||e.length<4?0:e)}function c(){var e=s();return 0===e?0:e[1]}function r(){var e=t("_g");return"undefined"==typeof e?"":JSON.parse(e).k}function d(){var e;0!==f.length&&(e=Math.min(g(window).height(),window.screen.availHeight),g("body").height()<=e-parseInt(f.css("height"),0)?f.addClass("bottom"):f.removeClass("bottom"))}function l(e){var i=g(e).outerHeight();e&&f.css("margin-bottom",i+"px")}function h(){var e,i,n=[],t=window.location.search.slice(1).split("&");for(i=0;i<t.length;i++)e=t[i].split("="),n.push(e[0]),n[e[0]]=e[1];return n}function u(e){return e.replace(/(\d{3})\d{4}(\d{4})/,"$1****$2")}var g=n(1),v=n(4),f=g("#yoho-footer"),m=g(".yoho-page"),p=g(".yoho-header");!function(){var e,i=f.children(".op-row"),n=g(".back-to-top"),t=s();d(),0===t?i.prepend('<a href="http://m.yohobuy.com/signin.html?refer='+location.href+'">登录</a><span class="sep-line">|</span><a href="http://m.yohobuy.com/reg.html">注册</a>'):i.prepend('<span>Hi,</span><a class="user-name" href="http://m.yohobuy.com/home?tmp='+Math.random()+'">'+t[0]+'</a><a href="http://m.yohobuy.com/passport/signout/index">退出</a>'),n.length>0&&(e=new v(n[0]),e.on("tap",function(e){return g(window).scrollTop(0),e.srcEvent.preventDefault(),!1})),f.removeClass("hide")}(),function(e,i,n,t,o){var a=i.createElement(n),s=i.getElementsByTagName(n)[0];e.YohoAcquisitionObject=o,e[o]=function(){e[o].p=arguments},a.async=1,a.src=t,s.parentNode.insertBefore(a,s)}(window,document,"script",("https:"===document.location.protocol?"https":"http")+"://cdn.yoho.cn/yas-jssdk/1.0.17/yas.js","_yas"),function(){var e=c();e=0===e?"":e,window._ozuid=e,window._yas&&window._yas(1*new Date,"1.0.17","yohobuy_m",e,"","")}(),p.on("touchstart","a",function(){p.find("a").removeClass("highlight"),g(this).addClass("highlight")}).on("touchend touchcancel","a",function(){g(this).removeClass("highlight")}),m.on("touchstart",".tap-hightlight",function(){g(this).siblings(".tap-hightlight").removeClass("highlight"),g(this).addClass("highlight")}).on("touchend touchcancel",".tap-hightlight",function(){g(this).removeClass("highlight")}),g(".nav-home").on("touchstart",function(){g(".homebuttom").toggleClass("hide")}),function(){var e,i,n=0,t="webkit moz ms o".split(" "),o=window.requestAnimationFrame,a=window.cancelAnimationFrame;for(i=0;i<t.length&&(!o||!a);i++)e=t[i],o=o||window[e+"RequestAnimationFrame"],a=a||window[e+"CancelAnimationFrame"]||window[e+"CancelRequestAnimationFrame"];o&&a||(o=function(e){var i=(new Date).getTime(),t=Math.max(0,16-(i-n)),o=window.setTimeout(function(){e(i+t)},t);return n=i+t,o},a=function(e){window.clearTimeout(e)}),window.requestAnimationFrame=o,window.cancelAnimationFrame=a}(),g.extend({queryString:h}),11===f.find(".user-name").text().length&&f.find(".user-name").html(u(f.find(".user-name").text())),window.cookie=t,window.setCookie=o,window.isCookiesEnabled=a,window.getUser=s,window.getUid=c,window.getShoppingKey=r,window.rePosFooter=d,window.reMarginFooter=l,window.queryString=h()},6:function(e,i,n){function t(e){var i='<div class="loading-mask hide"><div class="loading"><div></div><div></div><div></div></div></div>';d=!0,e||(e=r),e.append(i),s=e.children(".loading-mask"),c("body").on("touchstart touchmove touchend",".loading-mask",function(){return!1})}function o(){d||(t(),d=!0),s.removeClass("hide")}function a(){s.addClass("hide")}var s,c=n(1),r=c(".yoho-page"),d=!1;i.init=t,i.showLoadingMask=o,i.hideLoadingMask=a,i.show=o,i.hide=a},24:function(e,i,n){var t=n(1),o=n(6),a=n(2),s={};n(3),s={el:{$sendValidateBtn:t(".send-validate-btn"),$inviteDialog:t(".invite-dialog"),$isreg:t(".isreg"),$oldget:t(".oldget"),$receiveBtn:t(".receive-btn"),$wealBtn:t(".weal-btn"),$shareTag:t(".share-tag"),$ruleTit:t(".rule-tit"),$downloadBtn:t(".download-btn"),inter:0,ischeckCode:!1,actId:t('.invite-group input[name="actId"]').val(),shareUid:t('.invite-group input[name="shareUid"]').val(),openId:t('.invite-group input[name="openId"]').val(),nums:t('.invite-group input[name="nums"]').val()},init:function(){var e=this.el,i=this,n=!1;t(".invite-page").length>0&&(t("body").addClass("invite-page-bg"),t(".invite-page").removeClass("invite-page-bg"),t(".invite-dialog-bg").css({height:t(window).height()})),e.$sendValidateBtn.click(function(){var n=t(".invite-mobile").val();return""===n||t(this).hasClass("gray-info")?!0:(e.ischeckCode=!1,void t.ajax({url:"/activity/invite/sendRegCodeToMobile",data:{mobile:n},success:function(t){switch(t.code){case 404:i.ischeckOldUserCoupon(n);break;case 200:i.setGrayInfo(),e.ischeckCode=!0;break;default:i.ishintDialog(t.message)}},error:function(){a.show("发送验证码失败~")}}))}),e.$wealBtn.click(function(){e.$shareTag.fadeIn(),setTimeout(function(){e.$shareTag.fadeOut()},2e3)}),e.$ruleTit.click(function(){t(".rule-con").toggle()}),e.$downloadBtn.click(function(){i.downLoadApp()}),e.$receiveBtn.click(function(){return n?!0:(n=!0,o.showLoadingMask(),i.receiveFun(),o.hideLoadingMask(),void(n=!1))})},ischeckOldUserCoupon:function(e){var i=this,n=this.el;t.ajax({url:"/activity/invite/checkOldUserCoupon",data:{mobile:e,actId:n.actId},async:!1,success:function(e){switch(e.code){case 201:i.showDialog(n.$isreg);break;case 200:i.showDialog(n.$oldget);break;default:a.show("发送验证码失败~")}},error:function(){a.show("发送验证码失败~")}})},setGrayInfo:function(){var e=this.el,i=this,n=60;e.$sendValidateBtn.html(n+"S"),e.$sendValidateBtn.addClass("gray-info"),clearInterval(e.inter),e.inter=setInterval(function(){e.$sendValidateBtn.html(n--+"S"),0>=n&&i.clearGrayInfo()},1e3)},clearGrayInfo:function(){var e=this.el;clearInterval(e.inter),e.$sendValidateBtn.removeClass("gray-info"),e.$sendValidateBtn.html("发送验证码")},receiveFun:function(){var e=this,i=this.el,n=t(".invite-mobile").val(),o=t(".invite-code").val();return""===n?(e.ishintDialog("请输入手机号!"),!0):""===o?(e.ishintDialog("请输入验证码!"),!0):i.ischeckCode===!1?(e.ishintDialog("该验证码或已失效,请单击发送验证码!"),e.clearGrayInfo(),!0):void t.ajax({url:"/activity/invite/validRegCode",data:{mobile:n,code:o},async:!1,success:function(i){200===i.code?e.registerFun():e.ishintDialog(i.message)},error:function(){a.show("账号注册失败,请稍后在试~")}})},registerFun:function(){var e=this,i=t(".invite-mobile").val();return""===i?(e.ishintDialog("请输入手机号!"),!0):void t.ajax({url:"/activity/invite/register",data:{mobile:i},async:!1,success:function(n){switch(n.code){case 205:e.ischeckOldUserCoupon(i);break;case 200:e.receiveCouponsFun(n.data.uid);break;default:e.ishintDialog(n.message)}},error:function(){a.show("操作失败~")}})},receiveCouponsFun:function(e){var i=this,n=this.el;window.setCookie("inviteUid",e),t.ajax({url:"/activity/invite/receiveCoupons",data:{actId:n.actId,shareUid:n.shareUid,openId:n.openId,uid:e,nums:n.nums},async:!1,success:function(e){switch(e.code){case 200:document.location.href=e.data.goUrl;break;default:i.ishintDialog(e.message)}},error:function(){a.show("操作失败~")}})},showDialog:function(e){var i=this,n=t("<div>").addClass("invite-dialog-bg");e.show(),t(".invite-dialog-bg").remove(),n.css({height:t(window).height()}),t(".invite-content-page").append(n),e.find(".cancelbtn").unbind("click").bind("click",function(){t(".invite-mobile").val(""),i.clearShowDialog()}),e.find(".closeBtn").unbind("click").bind("click",function(){i.clearShowDialog()})},ishintDialog:function(e){this.showDialog(t(".ishint")),t(".ishint-content").html(e)},clearShowDialog:function(){var e=this.el,i=this;t(".invite-dialog-bg").remove(),e.$inviteDialog.hide(),i.clearGrayInfo()},downLoadApp:function(){var e="http://a.app.qq.com/o/simple.jsp?pkgname=com.yoho&g_f=995445";setTimeout(function(){window.location=e},200)}},s.init()}});
  1 +webpackJsonp([10],{0:function(e,n,o){function i(){u.hasClass("menu-open")&&(u.removeClass("menu-open"),m.hide(),r(".sub-nav").removeClass("show"),p.removeClass("on"))}function t(e){e.find("li").on("touchstart",function(){e.find(".highlight").removeClass("highlight"),r(this).addClass("highlight")}).on("touchend touchcancel",function(){r(this).removeClass("highlight")})}function a(){w+=10,g.css({transform:"rotateX("+w+"deg)","-webkit-transform":"rotateX("+w+"deg)","-moz-transform":"rotateX("+w+"deg)"}),w/90%2===1&&(v?(g.addClass("animate"),v=!1):(g.removeClass("animate"),v=!0)),w/90%2===0&&w%360!==0?window.setTimeout(a,3e3):w%360===0?window.setTimeout(a,6e4):window.requestAnimationFrame(a)}var s,r=o(1),d=o(11),l=o(7),c=o(18),h=o(44),u=r(".mobile-wrap"),m=r(".overlay"),p=r(".side-nav"),f=r(".sub-nav"),g=r(".home-header .logo"),w=0,v=!0;o(3),c.attach(document.body),l(r("img.lazy")),h(".notice",1e3*r(".notice").data("time")),r(".nav-btn").on("touchstart",function(){return p.css("pointer-events","none"),u.addClass("menu-open"),m.show().css("opacity",.3),p.addClass("on"),setTimeout(function(){p.css("pointer-events","auto")},400),!1}),m.on("touchstart",function(){return i(),!1}),p.on("touchmove scroll",function(){return!1}),p.on("touchend","li",function(e){return r(this).find(".sub-nav").size()>0&&(r(".sub-nav").removeClass("show"),r(this).find(".sub-nav").addClass("show"),r(this).find(".highlight").removeClass("highlight")),e.target.pathname===location.pathname?(i(),!1):void 0}),f.each(function(){r(this).find("li").eq(0).on("click",function(){return r(".sub-nav").removeClass("show"),!1})}).on("touchstart",function(e){e.currentTarget!==e.target&&f.find("li").removeClass("current")}),t(p),t(f),r(".banner-swiper").find("li").size()>1&&new d(".banner-swiper",{lazyLoading:!0,lazyLoadingInPrevNext:!0,loop:!0,autoplay:3e3,autoplayDisableOnInteraction:!1,paginationClickable:!0,slideElement:"li",pagination:".banner-top .pagination-inner"}),new d(".brands-swiper",{grabCursor:!0,slidesPerView:"auto",wrapperClass:"brands-list",slideElement:"li"}),new d(".recommend-swiper",{grabCursor:!0,slidesPerView:"auto",wrapperClass:"recommend-list",slideElement:"li"}),r(".trend-topic-swiper").find("li").size()>1&&new d(".trend-topic-swiper",{loop:!0,autoplay:3e3,autoplayDisableOnInteraction:!1,paginationClickable:!0,slideElement:"li",pagination:".trend-topic-content .pagination-inner"}),r(".fresh-list-swiper").find("li").size()>1&&new d(".fresh-list-swiper",{lazyLoading:!0,lazyLoadingInPrevNext:!0,grabCursor:!0,slidesPerView:"auto",slideElement:"li",watchSlidesVisibility:!0}),r(".category-swiper").each(function(e){s="category-swiper"+e,r(this).addClass(s),r("."+s).find(".swiper-slide").size()>1&&new d("."+s,{loop:!0,autoplay:3e3,autoplayDisableOnInteraction:!1,paginationClickable:!0,slideElement:"li",pagination:"."+s+" .pagination-inner"})}),setTimeout(a,3e3),r(".home-header .iconfont").on("touchstart",function(){r(this).addClass("highlight")}).on("touchend touchcancel",function(){r(this).removeClass("highlight")}),window.reMarginFooter(".footer-tab"),window.setCookie("_Channel",u.data("channel"),{expires:-1,domain:".m.yohobuy.com"}),window.setCookie("_Channel",u.data("channel"),{expires:30,domain:".yohobuy.com"}),o(26)()},2:function(e,n,o){function i(e,n){var o,i;"undefined"!=typeof e&&(o=e.toString(),i=n&&n>0?n:2e3,t.text(o).show(),a=setTimeout(function(){"block"===t.css("display")&&t.hide()},i))}var t,a,s=o(1);!function(){var e='<div id="yoho-tip" class="yoho-tip"></div>';s(".yoho-page").append(e),t=s("#yoho-tip"),t.on("touchend",function(){t.hide(),clearTimeout(a)})}(),n.show=i},3:function(e,n,o){function i(e){var n,o,i=document.cookie;return document.cookie&&""!==document.cookie&&(o=i.indexOf(e+"="),o>-1&&(o+=e.length+1,n=decodeURIComponent(m.trim(i.substring(o,i.indexOf(";",o)))))),n}function t(e,n,o){var i,t,a,s,r="";"undefined"!=typeof n&&(o=o||{},null===n&&(n="",o.expires=-1),o.expires&&("number"==typeof o.expires||o.expires.toUTCString)&&("number"==typeof o.expires?(s=new Date,s.setTime(s.getTime()+24*o.expires*60*60*1e3)):s=o.expires,r="; expires="+s.toUTCString()),i=o.path?"; path="+o.path:"",t=o.domain?"; domain="+o.domain:"",a=o.secure?"; secure":"",document.cookie=[e,"=",encodeURIComponent(n),r,i,t,a].join(""))}function a(){var e=!!navigator.cookieEnabled;return"undefined"!=typeof navigator.cookieEnabled||e||(document.cookie="testcookie",e=-1!==document.cookie.indexOf("testcookie")),e}function s(){var e,n=i("_UID");return"undefined"==typeof n?0:(e=n.split("::"),"undefined"==typeof e||e.length<4?0:e)}function r(){var e=s();return 0===e?0:e[1]}function d(){var e=i("_g");return"undefined"==typeof e?"":JSON.parse(e).k}function l(){var e;0!==f.length&&(e=Math.min(m(window).height(),window.screen.availHeight),m("body").height()<=e-parseInt(f.css("height"),0)?f.addClass("bottom"):f.removeClass("bottom"))}function c(e){var n=m(e).outerHeight();e&&f.css("margin-bottom",n+"px")}function h(){var e,n,o=[],i=window.location.search.slice(1).split("&");for(n=0;n<i.length;n++)e=i[n].split("="),o.push(e[0]),o[e[0]]=e[1];return o}function u(e){return e.replace(/(\d{3})\d{4}(\d{4})/,"$1****$2")}var m=o(1),p=o(4),f=m("#yoho-footer"),g=m(".yoho-page"),w=m(".yoho-header");!function(){var e,n=f.children(".op-row"),o=m(".back-to-top"),i=s();l(),0===i?n.prepend('<a href="http://m.yohobuy.com/signin.html?refer='+location.href+'">登录</a><span class="sep-line">|</span><a href="http://m.yohobuy.com/reg.html">注册</a>'):n.prepend('<span>Hi,</span><a class="user-name" href="http://m.yohobuy.com/home?tmp='+Math.random()+'">'+i[0]+'</a><a href="http://m.yohobuy.com/passport/signout/index">退出</a>'),o.length>0&&(e=new p(o[0]),e.on("tap",function(e){return m(window).scrollTop(0),e.srcEvent.preventDefault(),!1})),f.removeClass("hide")}(),function(e,n,o,i,t){var a=n.createElement(o),s=n.getElementsByTagName(o)[0];e.YohoAcquisitionObject=t,e[t]=function(){e[t].p=arguments},a.async=1,a.src=i,s.parentNode.insertBefore(a,s)}(window,document,"script",("https:"===document.location.protocol?"https":"http")+"://cdn.yoho.cn/yas-jssdk/1.0.17/yas.js","_yas"),function(){var e=r();e=0===e?"":e,window._ozuid=e,window._yas&&window._yas(1*new Date,"1.0.17","yohobuy_m",e,"","")}(),w.on("touchstart","a",function(){w.find("a").removeClass("highlight"),m(this).addClass("highlight")}).on("touchend touchcancel","a",function(){m(this).removeClass("highlight")}),g.on("touchstart",".tap-hightlight",function(){m(this).siblings(".tap-hightlight").removeClass("highlight"),m(this).addClass("highlight")}).on("touchend touchcancel",".tap-hightlight",function(){m(this).removeClass("highlight")}),m(".nav-home").on("touchstart",function(){m(".homebuttom").toggleClass("hide")}),function(){var e,n,o=0,i="webkit moz ms o".split(" "),t=window.requestAnimationFrame,a=window.cancelAnimationFrame;for(n=0;n<i.length&&(!t||!a);n++)e=i[n],t=t||window[e+"RequestAnimationFrame"],a=a||window[e+"CancelAnimationFrame"]||window[e+"CancelRequestAnimationFrame"];t&&a||(t=function(e){var n=(new Date).getTime(),i=Math.max(0,16-(n-o)),t=window.setTimeout(function(){e(n+i)},i);return o=n+i,t},a=function(e){window.clearTimeout(e)}),window.requestAnimationFrame=t,window.cancelAnimationFrame=a}(),m.extend({queryString:h}),11===f.find(".user-name").text().length&&f.find(".user-name").html(u(f.find(".user-name").text())),window.cookie=i,window.setCookie=t,window.isCookiesEnabled=a,window.getUser=s,window.getUid=r,window.getShoppingKey=d,window.rePosFooter=l,window.reMarginFooter=c,window.queryString=h()},6:function(e,n,o){function i(e){var n='<div class="loading-mask hide"><div class="loading"><div></div><div></div><div></div></div></div>';l=!0,e||(e=d),e.append(n),s=e.children(".loading-mask"),r("body").on("touchstart touchmove touchend",".loading-mask",function(){return!1})}function t(){l||(i(),l=!0),s.removeClass("hide")}function a(){s.addClass("hide")}var s,r=o(1),d=r(".yoho-page"),l=!1;n.init=i,n.showLoadingMask=t,n.hideLoadingMask=a,n.show=t,n.hide=a},26:function(e,n,o){e.exports=function(e){function n(){y||(y=!0,f.showLoadingMask(),h.ajax({type:"GET",url:s,data:{page:b+1},success:function(n){if(" "!==n)y=!1,n.length>1&&(l?null:l=h("#yoho-footer"),l.hasClass("bottom")?l.removeClass("bottom"):null),a=v.find(".good-info").length,v.append(n),g(0===a?v.find(".good-info").find("img.lazy"):v.find(".good-info:gt("+(a-1)+")").find("img.lazy")),f.hideLoadingMask(),b++,h(".good-detail-text .name").each(function(){var e=h(this),n=e.find("a");n[0].mlellipsis(2)});else if(f.hideLoadingMask(),C&&!e){if(c)return;s="/channel/bottomBanner",h.ajax({type:"GET",url:s,data:{gender:C},success:function(e){e=e.data,c=!0,e&&e.img&&(h("#load-more-img").show(),h("#load-more-img a").attr("href",e.url),h("#load-more-img a > img").attr("src",e.img))}})}},error:function(){p.show("网络断开连接了~"),y=!1,f.hideLoadingMask()}}))}function i(){h(window).scrollTop()+w>=h(document).height()-200&&n()}var t,a,s,r,d,l,c,h=o(1),u=o(4),m=o(8),p=o(2),f=o(6),g=o(7),w=h(window).height(),v=h("#goods-list"),y=!1,b=0,C=null,k=!("kids"!==e&&!h(".mobile-wrap").hasClass("kids-wrap")),x=!("lifestyle"!==e&&!h(".mobile-wrap").hasClass("lifestyle-wrap")),T=h("#maybe-like-nav");m.init(),k?s="/product/recom/maylikekids":x?s="lifestyle"===e?"/product/recom/maylike?gender=1,3":"/product/recom/maylikelife":(C="boys"===e||h(".mobile-wrap").hasClass("boys-wrap")?"1,3":"2,3",s="/product/recom/maylike?gender="+C),r=T.children(".focus"),x&&(t=T[0]?new u(T[0]):null,t&&t.on("tap",function(e){var n,o=h(e.target).closest("li"),i=h(".goods-list");e.preventDefault(),o.hasClass("focus")||(d=o.index(),o.addClass("focus"),r.removeClass("focus"),i.not(".hide").addClass("hide"),n=i.eq(d),n.removeClass("hide"),r=o,h(document).trigger("scroll"),e.srcEvent.stopPropagation())})),f.init(h(".maybe-like")),h(".maybe-like p").on("touchstart",function(){n()}),e&&n(),h(window).scroll(function(){window.requestAnimationFrame(i)})}},44:function(e,n,o){function i(e,n){var o=t(e),i=o.find(".notice-item"),a=i.length,s=1;e=e||".notice",n=n||3e3,a>1&&setInterval(function(){s>=a&&(s=0),i.fadeOut(),o.find(".item-"+s).fadeIn(),s++},n)}var t=o(1);e.exports=i}});
  1 +webpackJsonp([29],{0:function(o,n,e){var t=e(1),i=e(46),r=t(".search-box"),a=t(".box"),c=t(".index-search"),s=t(".index-logo"),u=t(".index-channel a:not(#yohood)"),h=r.children('input[type="text"]'),d=a.children(".no-search"),l=r.children(".search-icon");e(3),h.on("focus",function(){a.addClass("action"),s.addClass("action")}).on("input",function(){""===h.val()?l.addClass("empty"):l.removeClass("empty")}),d.on("touchend",function(){return a.removeClass("action"),s.removeClass("action"),h.blur(),!1}),r.children(".clear-text").on("touchstart",function(){h.val("").focus().trigger("input")}),r.children(".search-icon").on("touchstart",function(){return i.hasDangerInput()?!1:void c.submit()}),r.keyup(function(o){if(13===o.keyCode){if(i.hasDangerInput())return!1;c.submit()}}),t(".index-channel img").on("load error",function(){window.rePosFooter&&window.rePosFooter()}),u.on("touchstart",function(){u.css({background:"#000",color:"#fff",borderColor:"#fff"}),t(this).css({background:"rgba(255, 255, 255, 0.5)",color:"#000",borderColor:"#000"})}).on("touchend touchcancel",function(){t(this).css({background:"#000",color:"#fff",borderColor:"#fff"})})},2:function(o,n,e){function t(o,n){var e,t;"undefined"!=typeof o&&(e=o.toString(),t=n&&n>0?n:2e3,i.text(e).show(),r=setTimeout(function(){"block"===i.css("display")&&i.hide()},t))}var i,r,a=e(1);!function(){var o='<div id="yoho-tip" class="yoho-tip"></div>';a(".yoho-page").append(o),i=a("#yoho-tip"),i.on("touchend",function(){i.hide(),clearTimeout(r)})}(),n.show=t},3:function(o,n,e){function t(o){var n,e,t=document.cookie;return document.cookie&&""!==document.cookie&&(e=t.indexOf(o+"="),e>-1&&(e+=o.length+1,n=decodeURIComponent(f.trim(t.substring(e,t.indexOf(";",e)))))),n}function i(o,n,e){var t,i,r,a,c="";"undefined"!=typeof n&&(e=e||{},null===n&&(n="",e.expires=-1),e.expires&&("number"==typeof e.expires||e.expires.toUTCString)&&("number"==typeof e.expires?(a=new Date,a.setTime(a.getTime()+24*e.expires*60*60*1e3)):a=e.expires,c="; expires="+a.toUTCString()),t=e.path?"; path="+e.path:"",i=e.domain?"; domain="+e.domain:"",r=e.secure?"; secure":"",document.cookie=[o,"=",encodeURIComponent(n),c,t,i,r].join(""))}function r(){var o=!!navigator.cookieEnabled;return"undefined"!=typeof navigator.cookieEnabled||o||(document.cookie="testcookie",o=-1!==document.cookie.indexOf("testcookie")),o}function a(){var o,n=t("_UID");return"undefined"==typeof n?0:(o=n.split("::"),"undefined"==typeof o||o.length<4?0:o)}function c(){var o=a();return 0===o?0:o[1]}function s(){var o=t("_g");return"undefined"==typeof o?"":JSON.parse(o).k}function u(){var o;0!==m.length&&(o=Math.min(f(window).height(),window.screen.availHeight),f("body").height()<=o-parseInt(m.css("height"),0)?m.addClass("bottom"):m.removeClass("bottom"))}function h(o){var n=f(o).outerHeight();o&&m.css("margin-bottom",n+"px")}function d(){var o,n,e=[],t=window.location.search.slice(1).split("&");for(n=0;n<t.length;n++)o=t[n].split("="),e.push(o[0]),e[o[0]]=o[1];return e}function l(o){return o.replace(/(\d{3})\d{4}(\d{4})/,"$1****$2")}var f=e(1),p=e(4),m=f("#yoho-footer"),g=f(".yoho-page"),w=f(".yoho-header");!function(){var o,n=m.children(".op-row"),e=f(".back-to-top"),t=a();u(),0===t?n.prepend('<a href="http://m.yohobuy.com/signin.html?refer='+location.href+'">登录</a><span class="sep-line">|</span><a href="http://m.yohobuy.com/reg.html">注册</a>'):n.prepend('<span>Hi,</span><a class="user-name" href="http://m.yohobuy.com/home?tmp='+Math.random()+'">'+t[0]+'</a><a href="http://m.yohobuy.com/passport/signout/index">退出</a>'),e.length>0&&(o=new p(e[0]),o.on("tap",function(o){return f(window).scrollTop(0),o.srcEvent.preventDefault(),!1})),m.removeClass("hide")}(),function(o,n,e,t,i){var r=n.createElement(e),a=n.getElementsByTagName(e)[0];o.YohoAcquisitionObject=i,o[i]=function(){o[i].p=arguments},r.async=1,r.src=t,a.parentNode.insertBefore(r,a)}(window,document,"script",("https:"===document.location.protocol?"https":"http")+"://cdn.yoho.cn/yas-jssdk/1.0.17/yas.js","_yas"),function(){var o=c();o=0===o?"":o,window._ozuid=o,window._yas&&window._yas(1*new Date,"1.0.17","yohobuy_m",o,"","")}(),w.on("touchstart","a",function(){w.find("a").removeClass("highlight"),f(this).addClass("highlight")}).on("touchend touchcancel","a",function(){f(this).removeClass("highlight")}),g.on("touchstart",".tap-hightlight",function(){f(this).siblings(".tap-hightlight").removeClass("highlight"),f(this).addClass("highlight")}).on("touchend touchcancel",".tap-hightlight",function(){f(this).removeClass("highlight")}),f(".nav-home").on("touchstart",function(){f(".homebuttom").toggleClass("hide")}),function(){var o,n,e=0,t="webkit moz ms o".split(" "),i=window.requestAnimationFrame,r=window.cancelAnimationFrame;for(n=0;n<t.length&&(!i||!r);n++)o=t[n],i=i||window[o+"RequestAnimationFrame"],r=r||window[o+"CancelAnimationFrame"]||window[o+"CancelRequestAnimationFrame"];i&&r||(i=function(o){var n=(new Date).getTime(),t=Math.max(0,16-(n-e)),i=window.setTimeout(function(){o(n+t)},t);return e=n+t,i},r=function(o){window.clearTimeout(o)}),window.requestAnimationFrame=i,window.cancelAnimationFrame=r}(),f.extend({queryString:d}),11===m.find(".user-name").text().length&&m.find(".user-name").html(l(m.find(".user-name").text())),window.cookie=t,window.setCookie=i,window.isCookiesEnabled=r,window.getUser=a,window.getUid=c,window.getShoppingKey=s,window.rePosFooter=u,window.reMarginFooter=h,window.queryString=d()},46:function(o,n,e){function t(o){var n,e,t,a=i("input[type!=hidden], textarea"),c=/['"<>&\|]|--/g,s=a.length,u="undefined"==typeof o||"boolean"!=typeof o?!0:o;for(e=0;s>e;e++)if(n=a.eq(e).val(),c.test(n))return u?a.eq(e).val(n.replace(c," ")):(t=n.match(c).join(" "),r.show("不可以输入 "+t+" 哦!")),!u&&!0;return!1}var i=e(1),r=e(2);n.hasDangerInput=t}});
  1 +webpackJsonp([33],[function(e,n,o){o(3)},,,function(e,n,o){function t(e){var n,o,t=document.cookie;return document.cookie&&""!==document.cookie&&(o=t.indexOf(e+"="),o>-1&&(o+=e.length+1,n=decodeURIComponent(p.trim(t.substring(o,t.indexOf(";",o)))))),n}function i(e,n,o){var t,i,a,r,s="";"undefined"!=typeof n&&(o=o||{},null===n&&(n="",o.expires=-1),o.expires&&("number"==typeof o.expires||o.expires.toUTCString)&&("number"==typeof o.expires?(r=new Date,r.setTime(r.getTime()+24*o.expires*60*60*1e3)):r=o.expires,s="; expires="+r.toUTCString()),t=o.path?"; path="+o.path:"",i=o.domain?"; domain="+o.domain:"",a=o.secure?"; secure":"",document.cookie=[e,"=",encodeURIComponent(n),s,t,i,a].join(""))}function a(){var e=!!navigator.cookieEnabled;return"undefined"!=typeof navigator.cookieEnabled||e||(document.cookie="testcookie",e=-1!==document.cookie.indexOf("testcookie")),e}function r(){var e,n=t("_UID");return"undefined"==typeof n?0:(e=n.split("::"),"undefined"==typeof e||e.length<4?0:e)}function s(){var e=r();return 0===e?0:e[1]}function c(){var e=t("_g");return"undefined"==typeof e?"":JSON.parse(e).k}function h(){var e;0!==w.length&&(e=Math.min(p(window).height(),window.screen.availHeight),p("body").height()<=e-parseInt(w.css("height"),0)?w.addClass("bottom"):w.removeClass("bottom"))}function d(e){var n=p(e).outerHeight();e&&w.css("margin-bottom",n+"px")}function u(){var e,n,o=[],t=window.location.search.slice(1).split("&");for(n=0;n<t.length;n++)e=t[n].split("="),o.push(e[0]),o[e[0]]=e[1];return o}function m(e){return e.replace(/(\d{3})\d{4}(\d{4})/,"$1****$2")}var p=o(1),l=o(4),w=p("#yoho-footer"),f=p(".yoho-page"),g=p(".yoho-header");!function(){var e,n=w.children(".op-row"),o=p(".back-to-top"),t=r();h(),0===t?n.prepend('<a href="http://m.yohobuy.com/signin.html?refer='+location.href+'">登录</a><span class="sep-line">|</span><a href="http://m.yohobuy.com/reg.html">注册</a>'):n.prepend('<span>Hi,</span><a class="user-name" href="http://m.yohobuy.com/home?tmp='+Math.random()+'">'+t[0]+'</a><a href="http://m.yohobuy.com/passport/signout/index">退出</a>'),o.length>0&&(e=new l(o[0]),e.on("tap",function(e){return p(window).scrollTop(0),e.srcEvent.preventDefault(),!1})),w.removeClass("hide")}(),function(e,n,o,t,i){var a=n.createElement(o),r=n.getElementsByTagName(o)[0];e.YohoAcquisitionObject=i,e[i]=function(){e[i].p=arguments},a.async=1,a.src=t,r.parentNode.insertBefore(a,r)}(window,document,"script",("https:"===document.location.protocol?"https":"http")+"://cdn.yoho.cn/yas-jssdk/1.0.17/yas.js","_yas"),function(){var e=s();e=0===e?"":e,window._ozuid=e,window._yas&&window._yas(1*new Date,"1.0.17","yohobuy_m",e,"","")}(),g.on("touchstart","a",function(){g.find("a").removeClass("highlight"),p(this).addClass("highlight")}).on("touchend touchcancel","a",function(){p(this).removeClass("highlight")}),f.on("touchstart",".tap-hightlight",function(){p(this).siblings(".tap-hightlight").removeClass("highlight"),p(this).addClass("highlight")}).on("touchend touchcancel",".tap-hightlight",function(){p(this).removeClass("highlight")}),p(".nav-home").on("touchstart",function(){p(".homebuttom").toggleClass("hide")}),function(){var e,n,o=0,t="webkit moz ms o".split(" "),i=window.requestAnimationFrame,a=window.cancelAnimationFrame;for(n=0;n<t.length&&(!i||!a);n++)e=t[n],i=i||window[e+"RequestAnimationFrame"],a=a||window[e+"CancelAnimationFrame"]||window[e+"CancelRequestAnimationFrame"];i&&a||(i=function(e){var n=(new Date).getTime(),t=Math.max(0,16-(n-o)),i=window.setTimeout(function(){e(n+t)},t);return o=n+t,i},a=function(e){window.clearTimeout(e)}),window.requestAnimationFrame=i,window.cancelAnimationFrame=a}(),p.extend({queryString:u}),11===w.find(".user-name").text().length&&w.find(".user-name").html(m(w.find(".user-name").text())),window.cookie=t,window.setCookie=i,window.isCookiesEnabled=a,window.getUser=r,window.getUid=s,window.getShoppingKey=c,window.rePosFooter=h,window.reMarginFooter=d,window.queryString=u()}]);
  1 +webpackJsonp([18],{0:function(o,n,e){function t(o){var n,e,t;c.showLoadingMask(),a.ajax({type:"GET",url:"/guang/star/collocation/list",data:{page:o,appVersion:window.queryString.app_version},dataType:"html",success:function(o){l=!1,""===o&&(l=!0,s.show("没有更多内容了")),a(".collocation-list").append(o),a(".cont-area").each(function(){n=a(this),e=n.find(".title"),t=n.find(".cont-txt"),e[0].mlellipsis(2),t[0].mlellipsis(2)}),c.hideLoadingMask(),r(a("img.lazy"))},error:function(){s.show("网络断开连接了~")}})}function i(){!l&&a(window).scrollTop()+a(window).height()>.75*a("body").height()&&(l=!0,h++,t(h))}var a=e(1),s=e(2),c=e(6),r=e(7),d=e(8),l=!1,h=1;e(20),d.init(),a(window).scroll(function(){window.requestAnimationFrame(i)}),0===a(".collocation-list").find("li").length&&t(1)},2:function(o,n,e){function t(o,n){var e,t;"undefined"!=typeof o&&(e=o.toString(),t=n&&n>0?n:2e3,i.text(e).show(),a=setTimeout(function(){"block"===i.css("display")&&i.hide()},t))}var i,a,s=e(1);!function(){var o='<div id="yoho-tip" class="yoho-tip"></div>';s(".yoho-page").append(o),i=s("#yoho-tip"),i.on("touchend",function(){i.hide(),clearTimeout(a)})}(),n.show=t},3:function(o,n,e){function t(o){var n,e,t=document.cookie;return document.cookie&&""!==document.cookie&&(e=t.indexOf(o+"="),e>-1&&(e+=o.length+1,n=decodeURIComponent(p.trim(t.substring(e,t.indexOf(";",e)))))),n}function i(o,n,e){var t,i,a,s,c="";"undefined"!=typeof n&&(e=e||{},null===n&&(n="",e.expires=-1),e.expires&&("number"==typeof e.expires||e.expires.toUTCString)&&("number"==typeof e.expires?(s=new Date,s.setTime(s.getTime()+24*e.expires*60*60*1e3)):s=e.expires,c="; expires="+s.toUTCString()),t=e.path?"; path="+e.path:"",i=e.domain?"; domain="+e.domain:"",a=e.secure?"; secure":"",document.cookie=[o,"=",encodeURIComponent(n),c,t,i,a].join(""))}function a(){var o=!!navigator.cookieEnabled;return"undefined"!=typeof navigator.cookieEnabled||o||(document.cookie="testcookie",o=-1!==document.cookie.indexOf("testcookie")),o}function s(){var o,n=t("_UID");return"undefined"==typeof n?0:(o=n.split("::"),"undefined"==typeof o||o.length<4?0:o)}function c(){var o=s();return 0===o?0:o[1]}function r(){var o=t("_g");return"undefined"==typeof o?"":JSON.parse(o).k}function d(){var o;0!==f.length&&(o=Math.min(p(window).height(),window.screen.availHeight),p("body").height()<=o-parseInt(f.css("height"),0)?f.addClass("bottom"):f.removeClass("bottom"))}function l(o){var n=p(o).outerHeight();o&&f.css("margin-bottom",n+"px")}function h(){var o,n,e=[],t=window.location.search.slice(1).split("&");for(n=0;n<t.length;n++)o=t[n].split("="),e.push(o[0]),e[o[0]]=o[1];return e}function u(o){return o.replace(/(\d{3})\d{4}(\d{4})/,"$1****$2")}var p=e(1),m=e(4),f=p("#yoho-footer"),g=p(".yoho-page"),w=p(".yoho-header");!function(){var o,n=f.children(".op-row"),e=p(".back-to-top"),t=s();d(),0===t?n.prepend('<a href="http://m.yohobuy.com/signin.html?refer='+location.href+'">登录</a><span class="sep-line">|</span><a href="http://m.yohobuy.com/reg.html">注册</a>'):n.prepend('<span>Hi,</span><a class="user-name" href="http://m.yohobuy.com/home?tmp='+Math.random()+'">'+t[0]+'</a><a href="http://m.yohobuy.com/passport/signout/index">退出</a>'),e.length>0&&(o=new m(e[0]),o.on("tap",function(o){return p(window).scrollTop(0),o.srcEvent.preventDefault(),!1})),f.removeClass("hide")}(),function(o,n,e,t,i){var a=n.createElement(e),s=n.getElementsByTagName(e)[0];o.YohoAcquisitionObject=i,o[i]=function(){o[i].p=arguments},a.async=1,a.src=t,s.parentNode.insertBefore(a,s)}(window,document,"script",("https:"===document.location.protocol?"https":"http")+"://cdn.yoho.cn/yas-jssdk/1.0.17/yas.js","_yas"),function(){var o=c();o=0===o?"":o,window._ozuid=o,window._yas&&window._yas(1*new Date,"1.0.17","yohobuy_m",o,"","")}(),w.on("touchstart","a",function(){w.find("a").removeClass("highlight"),p(this).addClass("highlight")}).on("touchend touchcancel","a",function(){p(this).removeClass("highlight")}),g.on("touchstart",".tap-hightlight",function(){p(this).siblings(".tap-hightlight").removeClass("highlight"),p(this).addClass("highlight")}).on("touchend touchcancel",".tap-hightlight",function(){p(this).removeClass("highlight")}),p(".nav-home").on("touchstart",function(){p(".homebuttom").toggleClass("hide")}),function(){var o,n,e=0,t="webkit moz ms o".split(" "),i=window.requestAnimationFrame,a=window.cancelAnimationFrame;for(n=0;n<t.length&&(!i||!a);n++)o=t[n],i=i||window[o+"RequestAnimationFrame"],a=a||window[o+"CancelAnimationFrame"]||window[o+"CancelRequestAnimationFrame"];i&&a||(i=function(o){var n=(new Date).getTime(),t=Math.max(0,16-(n-e)),i=window.setTimeout(function(){o(n+t)},t);return e=n+t,i},a=function(o){window.clearTimeout(o)}),window.requestAnimationFrame=i,window.cancelAnimationFrame=a}(),p.extend({queryString:h}),11===f.find(".user-name").text().length&&f.find(".user-name").html(u(f.find(".user-name").text())),window.cookie=t,window.setCookie=i,window.isCookiesEnabled=a,window.getUser=s,window.getUid=c,window.getShoppingKey=r,window.rePosFooter=d,window.reMarginFooter=l,window.queryString=h()},6:function(o,n,e){function t(o){var n='<div class="loading-mask hide"><div class="loading"><div></div><div></div><div></div></div></div>';d=!0,o||(o=r),o.append(n),s=o.children(".loading-mask"),c("body").on("touchstart touchmove touchend",".loading-mask",function(){return!1})}function i(){d||(t(),d=!0),s.removeClass("hide")}function a(){s.addClass("hide")}var s,c=e(1),r=c(".yoho-page"),d=!1;n.init=t,n.showLoadingMask=i,n.hideLoadingMask=a,n.show=i,n.hide=a},20:function(o,n,e){var t=e(1),i=e(2);e(3),window.setCookie("guangStarUid",window.queryString.uid),t(".collocation-list,.detail-list").on("click",".collection",function(){var o,n,e,a=t(this),s=a.find(".collected-ico");o=s.hasClass("collected")?"del":"fav",t(this).parents(".collocation-list").length>0?(n="1",e=""):(n="2",e=t(".detail-list").data("name")),t.ajax({type:"POST",url:"/guang/star/setFavorite",data:{articleId:a.parents("li").attr("articleId"),type:o,pageType:n,tag:e},success:function(o){var n=o.code;200===n&&(s.hasClass("collected")?s.removeClass("collected"):s.addClass("collected")),400===n&&(t("#collocation-link").length<=0&&t("body").append("<a href='"+o.data+'\' style="display:none;" id="collocation-link"><span class="collocation-link"></span></a>'),t(".collocation-link").click())},error:function(){i.show("网络断开连接了~")}})})}});
  1 +webpackJsonp([17],{0:function(n,e,o){function t(n){var e,o,t;c.showLoadingMask(),a.ajax({type:"GET",url:"/guang/star/detailList",data:{page:n,tag:a(".detail-list").data("name")},dataType:"html",success:function(n){h=!1,""===n&&(h=!0,s.show("没有更多内容了")),a(".detail-list").append(n),a(".cont-area").each(function(){e=a(this),o=e.find(".title"),t=e.find(".cont-txt"),o[0].mlellipsis(2),t[0].mlellipsis(2)}),d(a("img.lazy")),c.hideLoadingMask()},error:function(){s.show("网络断开连接了~")}})}function i(){!h&&a(window).scrollTop()+a(window).height()>a("body").height()-100&&(h=!0,u++,t(u))}var a=o(1),s=o(2),c=o(6),d=o(7),r=o(8),l=a(".detail-list"),h=!1,u=1;o(20),r.init(),a(window).scroll(function(){window.requestAnimationFrame(i)}),0===l.find("li").length&&t(1)},2:function(n,e,o){function t(n,e){var o,t;"undefined"!=typeof n&&(o=n.toString(),t=e&&e>0?e:2e3,i.text(o).show(),a=setTimeout(function(){"block"===i.css("display")&&i.hide()},t))}var i,a,s=o(1);!function(){var n='<div id="yoho-tip" class="yoho-tip"></div>';s(".yoho-page").append(n),i=s("#yoho-tip"),i.on("touchend",function(){i.hide(),clearTimeout(a)})}(),e.show=t},3:function(n,e,o){function t(n){var e,o,t=document.cookie;return document.cookie&&""!==document.cookie&&(o=t.indexOf(n+"="),o>-1&&(o+=n.length+1,e=decodeURIComponent(p.trim(t.substring(o,t.indexOf(";",o)))))),e}function i(n,e,o){var t,i,a,s,c="";"undefined"!=typeof e&&(o=o||{},null===e&&(e="",o.expires=-1),o.expires&&("number"==typeof o.expires||o.expires.toUTCString)&&("number"==typeof o.expires?(s=new Date,s.setTime(s.getTime()+24*o.expires*60*60*1e3)):s=o.expires,c="; expires="+s.toUTCString()),t=o.path?"; path="+o.path:"",i=o.domain?"; domain="+o.domain:"",a=o.secure?"; secure":"",document.cookie=[n,"=",encodeURIComponent(e),c,t,i,a].join(""))}function a(){var n=!!navigator.cookieEnabled;return"undefined"!=typeof navigator.cookieEnabled||n||(document.cookie="testcookie",n=-1!==document.cookie.indexOf("testcookie")),n}function s(){var n,e=t("_UID");return"undefined"==typeof e?0:(n=e.split("::"),"undefined"==typeof n||n.length<4?0:n)}function c(){var n=s();return 0===n?0:n[1]}function d(){var n=t("_g");return"undefined"==typeof n?"":JSON.parse(n).k}function r(){var n;0!==f.length&&(n=Math.min(p(window).height(),window.screen.availHeight),p("body").height()<=n-parseInt(f.css("height"),0)?f.addClass("bottom"):f.removeClass("bottom"))}function l(n){var e=p(n).outerHeight();n&&f.css("margin-bottom",e+"px")}function h(){var n,e,o=[],t=window.location.search.slice(1).split("&");for(e=0;e<t.length;e++)n=t[e].split("="),o.push(n[0]),o[n[0]]=n[1];return o}function u(n){return n.replace(/(\d{3})\d{4}(\d{4})/,"$1****$2")}var p=o(1),m=o(4),f=p("#yoho-footer"),g=p(".yoho-page"),w=p(".yoho-header");!function(){var n,e=f.children(".op-row"),o=p(".back-to-top"),t=s();r(),0===t?e.prepend('<a href="http://m.yohobuy.com/signin.html?refer='+location.href+'">登录</a><span class="sep-line">|</span><a href="http://m.yohobuy.com/reg.html">注册</a>'):e.prepend('<span>Hi,</span><a class="user-name" href="http://m.yohobuy.com/home?tmp='+Math.random()+'">'+t[0]+'</a><a href="http://m.yohobuy.com/passport/signout/index">退出</a>'),o.length>0&&(n=new m(o[0]),n.on("tap",function(n){return p(window).scrollTop(0),n.srcEvent.preventDefault(),!1})),f.removeClass("hide")}(),function(n,e,o,t,i){var a=e.createElement(o),s=e.getElementsByTagName(o)[0];n.YohoAcquisitionObject=i,n[i]=function(){n[i].p=arguments},a.async=1,a.src=t,s.parentNode.insertBefore(a,s)}(window,document,"script",("https:"===document.location.protocol?"https":"http")+"://cdn.yoho.cn/yas-jssdk/1.0.17/yas.js","_yas"),function(){var n=c();n=0===n?"":n,window._ozuid=n,window._yas&&window._yas(1*new Date,"1.0.17","yohobuy_m",n,"","")}(),w.on("touchstart","a",function(){w.find("a").removeClass("highlight"),p(this).addClass("highlight")}).on("touchend touchcancel","a",function(){p(this).removeClass("highlight")}),g.on("touchstart",".tap-hightlight",function(){p(this).siblings(".tap-hightlight").removeClass("highlight"),p(this).addClass("highlight")}).on("touchend touchcancel",".tap-hightlight",function(){p(this).removeClass("highlight")}),p(".nav-home").on("touchstart",function(){p(".homebuttom").toggleClass("hide")}),function(){var n,e,o=0,t="webkit moz ms o".split(" "),i=window.requestAnimationFrame,a=window.cancelAnimationFrame;for(e=0;e<t.length&&(!i||!a);e++)n=t[e],i=i||window[n+"RequestAnimationFrame"],a=a||window[n+"CancelAnimationFrame"]||window[n+"CancelRequestAnimationFrame"];i&&a||(i=function(n){var e=(new Date).getTime(),t=Math.max(0,16-(e-o)),i=window.setTimeout(function(){n(e+t)},t);return o=e+t,i},a=function(n){window.clearTimeout(n)}),window.requestAnimationFrame=i,window.cancelAnimationFrame=a}(),p.extend({queryString:h}),11===f.find(".user-name").text().length&&f.find(".user-name").html(u(f.find(".user-name").text())),window.cookie=t,window.setCookie=i,window.isCookiesEnabled=a,window.getUser=s,window.getUid=c,window.getShoppingKey=d,window.rePosFooter=r,window.reMarginFooter=l,window.queryString=h()},6:function(n,e,o){function t(n){var e='<div class="loading-mask hide"><div class="loading"><div></div><div></div><div></div></div></div>';r=!0,n||(n=d),n.append(e),s=n.children(".loading-mask"),c("body").on("touchstart touchmove touchend",".loading-mask",function(){return!1})}function i(){r||(t(),r=!0),s.removeClass("hide")}function a(){s.addClass("hide")}var s,c=o(1),d=c(".yoho-page"),r=!1;e.init=t,e.showLoadingMask=i,e.hideLoadingMask=a,e.show=i,e.hide=a},20:function(n,e,o){var t=o(1),i=o(2);o(3),window.setCookie("guangStarUid",window.queryString.uid),t(".collocation-list,.detail-list").on("click",".collection",function(){var n,e,o,a=t(this),s=a.find(".collected-ico");n=s.hasClass("collected")?"del":"fav",t(this).parents(".collocation-list").length>0?(e="1",o=""):(e="2",o=t(".detail-list").data("name")),t.ajax({type:"POST",url:"/guang/star/setFavorite",data:{articleId:a.parents("li").attr("articleId"),type:n,pageType:e,tag:o},success:function(n){var e=n.code;200===e&&(s.hasClass("collected")?s.removeClass("collected"):s.addClass("collected")),400===e&&(t("#collocation-link").length<=0&&t("body").append("<a href='"+n.data+'\' style="display:none;" id="collocation-link"><span class="collocation-link"></span></a>'),t(".collocation-link").click())},error:function(){i.show("网络断开连接了~")}})})}});
  1 +webpackJsonp([32],[function(e,n,o){var t=o(1),i=o(7);o(3),i(t("img.lazy"))},,,function(e,n,o){function t(e){var n,o,t=document.cookie;return document.cookie&&""!==document.cookie&&(o=t.indexOf(e+"="),o>-1&&(o+=e.length+1,n=decodeURIComponent(p.trim(t.substring(o,t.indexOf(";",o)))))),n}function i(e,n,o){var t,i,a,r,s="";"undefined"!=typeof n&&(o=o||{},null===n&&(n="",o.expires=-1),o.expires&&("number"==typeof o.expires||o.expires.toUTCString)&&("number"==typeof o.expires?(r=new Date,r.setTime(r.getTime()+24*o.expires*60*60*1e3)):r=o.expires,s="; expires="+r.toUTCString()),t=o.path?"; path="+o.path:"",i=o.domain?"; domain="+o.domain:"",a=o.secure?"; secure":"",document.cookie=[e,"=",encodeURIComponent(n),s,t,i,a].join(""))}function a(){var e=!!navigator.cookieEnabled;return"undefined"!=typeof navigator.cookieEnabled||e||(document.cookie="testcookie",e=-1!==document.cookie.indexOf("testcookie")),e}function r(){var e,n=t("_UID");return"undefined"==typeof n?0:(e=n.split("::"),"undefined"==typeof e||e.length<4?0:e)}function s(){var e=r();return 0===e?0:e[1]}function c(){var e=t("_g");return"undefined"==typeof e?"":JSON.parse(e).k}function h(){var e;0!==w.length&&(e=Math.min(p(window).height(),window.screen.availHeight),p("body").height()<=e-parseInt(w.css("height"),0)?w.addClass("bottom"):w.removeClass("bottom"))}function d(e){var n=p(e).outerHeight();e&&w.css("margin-bottom",n+"px")}function u(){var e,n,o=[],t=window.location.search.slice(1).split("&");for(n=0;n<t.length;n++)e=t[n].split("="),o.push(e[0]),o[e[0]]=e[1];return o}function m(e){return e.replace(/(\d{3})\d{4}(\d{4})/,"$1****$2")}var p=o(1),l=o(4),w=p("#yoho-footer"),f=p(".yoho-page"),g=p(".yoho-header");!function(){var e,n=w.children(".op-row"),o=p(".back-to-top"),t=r();h(),0===t?n.prepend('<a href="http://m.yohobuy.com/signin.html?refer='+location.href+'">登录</a><span class="sep-line">|</span><a href="http://m.yohobuy.com/reg.html">注册</a>'):n.prepend('<span>Hi,</span><a class="user-name" href="http://m.yohobuy.com/home?tmp='+Math.random()+'">'+t[0]+'</a><a href="http://m.yohobuy.com/passport/signout/index">退出</a>'),o.length>0&&(e=new l(o[0]),e.on("tap",function(e){return p(window).scrollTop(0),e.srcEvent.preventDefault(),!1})),w.removeClass("hide")}(),function(e,n,o,t,i){var a=n.createElement(o),r=n.getElementsByTagName(o)[0];e.YohoAcquisitionObject=i,e[i]=function(){e[i].p=arguments},a.async=1,a.src=t,r.parentNode.insertBefore(a,r)}(window,document,"script",("https:"===document.location.protocol?"https":"http")+"://cdn.yoho.cn/yas-jssdk/1.0.17/yas.js","_yas"),function(){var e=s();e=0===e?"":e,window._ozuid=e,window._yas&&window._yas(1*new Date,"1.0.17","yohobuy_m",e,"","")}(),g.on("touchstart","a",function(){g.find("a").removeClass("highlight"),p(this).addClass("highlight")}).on("touchend touchcancel","a",function(){p(this).removeClass("highlight")}),f.on("touchstart",".tap-hightlight",function(){p(this).siblings(".tap-hightlight").removeClass("highlight"),p(this).addClass("highlight")}).on("touchend touchcancel",".tap-hightlight",function(){p(this).removeClass("highlight")}),p(".nav-home").on("touchstart",function(){p(".homebuttom").toggleClass("hide")}),function(){var e,n,o=0,t="webkit moz ms o".split(" "),i=window.requestAnimationFrame,a=window.cancelAnimationFrame;for(n=0;n<t.length&&(!i||!a);n++)e=t[n],i=i||window[e+"RequestAnimationFrame"],a=a||window[e+"CancelAnimationFrame"]||window[e+"CancelRequestAnimationFrame"];i&&a||(i=function(e){var n=(new Date).getTime(),t=Math.max(0,16-(n-o)),i=window.setTimeout(function(){e(n+t)},t);return o=n+t,i},a=function(e){window.clearTimeout(e)}),window.requestAnimationFrame=i,window.cancelAnimationFrame=a}(),p.extend({queryString:u}),11===w.find(".user-name").text().length&&w.find(".user-name").html(m(w.find(".user-name").text())),window.cookie=t,window.setCookie=i,window.isCookiesEnabled=a,window.getUser=r,window.getUid=s,window.getShoppingKey=c,window.rePosFooter=h,window.reMarginFooter=d,window.queryString=u()}]);
  1 +webpackJsonp([11],{0:function(t,i,e){function s(t,i,e){var s=t.find(i),o=t.find(e);s[0].mlellipsis(2),o[0].mlellipsis(3)}function o(t){var i=new Image,e="";e=t.data("avatar"),i.onload=function(){t.css("background-image","url("+e+")")},e?i.src=e:t.addClass("default-avater")}function n(t){return h=t.index(),t.hasClass("swiper-slide-active")?void 0:(h>=2*l+1?(d&&d.slideTo(l+1,0),p.slideTo(l+1,0)):l-1>=h?(d&&d.slideTo(2*l-1,0),p.slideTo(2*l-(l-h),0)):(d&&d.slideTo(h,200),p.slideTo(h,200)),!1)}function r(){y(".avatar").each(function(t,i){y(i).addClass("avatar-"+t)}),l>1&&(p=new w(".avatar-1",{loop:!0,initialSlide:2,centeredSlides:!0,slidesPerView:"auto",loopedSlides:l,spaceBetween:10,slidesOffsetBefore:-W,watchSlidesProgress:!0,watchSlidesVisibility:!0,onInit:function(){y(".avatar-1 li").on("click",function(){return c=n(y(this))})}})),y(".article-avatar-swiper").find("li").length>1&&new w(".article-avatar-swiper",{initialSlide:0,lazyLoading:!0,lazyLoadingInPrevNext:!0,loop:!0,autoplay:5e3}),y(".banner-swiper").find("li").length>1&&new w(".banner-swiper",{lazyLoading:!0,lazyLoadingInPrevNext:!0,loop:!0,autoplay:3e3,autoplayDisableOnInteraction:!1,paginationClickable:!0,slideElement:"li",pagination:".banner-top .pagination-inner"}),y(".star-info").find("li").length>0&&m.each(function(t,i){s(y(i),".article-title","p")}),y(".rank-avatar").each(function(t,i){o(y(i))}),y("#yoho-header, .head-tab").on("touchmove",function(){return!1})}function a(){m=y(".star-article"),g=y(".avatar-wrap"),l=y(".avatar-wrap").find(".swiper-slide").length,f&&f.remove(),H.before(y(".avatar-swiper").clone().addClass("avatar-clone").hide()),f=y(".avatar-clone"),y(".cont-area").each(function(){s(y(this),".title",".cont-txt")}),S(y("img.lazy")),r()}var h,l,c,p,d,u,f,m,g,v,y=e(1),w=e(11),x=e(2),S=e(7),T=e(8),b=e(6),E=e(45),P=y(window),k=!1,X=y(".main-content"),Y=y(".head-tab"),_=Y.height(),z=y(window).height()-_,H=y(".loading-tip"),D=navigator.userAgent,C=!!D.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),W=y(".avatar-wrap .swiper-slide").width()/2;375===P.width()&&C&&(W=32),e(3),S(y("img.lazy")),T.init(),P.on("mousewheel",!1),u=function(){b.showLoadingMask(),y.ajax({url:"/guang/star/getIndexHtml",dataType:"html",success:function(t){k=!1,t&&(d&&(d.destroy(!0,!0),d=""),X.html(t),a()),b.hideLoadingMask()},error:function(){x.show("网络断开连接了~")}})},a(),v=new E(".star-main",{height:z,pullDown:function(){k||(k=!0,u())}}),v.iScroll.on("scrollStart",function(){-1===this.directionY&&H.slideDown()}),v.iScroll.on("scroll",function(){-1!==this.directionY&&v.iScroll.refresh(),g.offset().top<=_&&(f.show(),d||(d=new w(".avatar-0",{loop:!0,initialSlide:y(".avatar-1").find(".swiper-slide-active").index()%l,centeredSlides:!0,slidesPerView:"auto",loopedSlides:l,spaceBetween:10,slidesOffsetBefore:-W,watchSlidesProgress:!0,watchSlidesVisibility:!0,onInit:function(){y(".avatar-0 li").on("click",function(){return c=n(y(this))})}}),d.params.control=p,p.params.control=d)),g.offset().top>y(".avatar-1")[0].scrollHeight&&f.hide()}),v.iScroll.on("scrollEnd",function(){H.slideUp()}),y("img").on("load",function(){v&&v.iScroll.refresh()}),window.setCookie("guangStarUid",window.queryString.uid)},2:function(t,i,e){function s(t,i){var e,s;"undefined"!=typeof t&&(e=t.toString(),s=i&&i>0?i:2e3,o.text(e).show(),n=setTimeout(function(){"block"===o.css("display")&&o.hide()},s))}var o,n,r=e(1);!function(){var t='<div id="yoho-tip" class="yoho-tip"></div>';r(".yoho-page").append(t),o=r("#yoho-tip"),o.on("touchend",function(){o.hide(),clearTimeout(n)})}(),i.show=s},3:function(t,i,e){function s(t){var i,e,s=document.cookie;return document.cookie&&""!==document.cookie&&(e=s.indexOf(t+"="),e>-1&&(e+=t.length+1,i=decodeURIComponent(u.trim(s.substring(e,s.indexOf(";",e)))))),i}function o(t,i,e){var s,o,n,r,a="";"undefined"!=typeof i&&(e=e||{},null===i&&(i="",e.expires=-1),e.expires&&("number"==typeof e.expires||e.expires.toUTCString)&&("number"==typeof e.expires?(r=new Date,r.setTime(r.getTime()+24*e.expires*60*60*1e3)):r=e.expires,a="; expires="+r.toUTCString()),s=e.path?"; path="+e.path:"",o=e.domain?"; domain="+e.domain:"",n=e.secure?"; secure":"",document.cookie=[t,"=",encodeURIComponent(i),a,s,o,n].join(""))}function n(){var t=!!navigator.cookieEnabled;return"undefined"!=typeof navigator.cookieEnabled||t||(document.cookie="testcookie",t=-1!==document.cookie.indexOf("testcookie")),t}function r(){var t,i=s("_UID");return"undefined"==typeof i?0:(t=i.split("::"),"undefined"==typeof t||t.length<4?0:t)}function a(){var t=r();return 0===t?0:t[1]}function h(){var t=s("_g");return"undefined"==typeof t?"":JSON.parse(t).k}function l(){var t;0!==m.length&&(t=Math.min(u(window).height(),window.screen.availHeight),u("body").height()<=t-parseInt(m.css("height"),0)?m.addClass("bottom"):m.removeClass("bottom"))}function c(t){var i=u(t).outerHeight();t&&m.css("margin-bottom",i+"px")}function p(){var t,i,e=[],s=window.location.search.slice(1).split("&");for(i=0;i<s.length;i++)t=s[i].split("="),e.push(t[0]),e[t[0]]=t[1];return e}function d(t){return t.replace(/(\d{3})\d{4}(\d{4})/,"$1****$2")}var u=e(1),f=e(4),m=u("#yoho-footer"),g=u(".yoho-page"),v=u(".yoho-header");!function(){var t,i=m.children(".op-row"),e=u(".back-to-top"),s=r();l(),0===s?i.prepend('<a href="http://m.yohobuy.com/signin.html?refer='+location.href+'">登录</a><span class="sep-line">|</span><a href="http://m.yohobuy.com/reg.html">注册</a>'):i.prepend('<span>Hi,</span><a class="user-name" href="http://m.yohobuy.com/home?tmp='+Math.random()+'">'+s[0]+'</a><a href="http://m.yohobuy.com/passport/signout/index">退出</a>'),e.length>0&&(t=new f(e[0]),t.on("tap",function(t){return u(window).scrollTop(0),t.srcEvent.preventDefault(),!1})),m.removeClass("hide")}(),function(t,i,e,s,o){var n=i.createElement(e),r=i.getElementsByTagName(e)[0];t.YohoAcquisitionObject=o,t[o]=function(){t[o].p=arguments},n.async=1,n.src=s,r.parentNode.insertBefore(n,r)}(window,document,"script",("https:"===document.location.protocol?"https":"http")+"://cdn.yoho.cn/yas-jssdk/1.0.17/yas.js","_yas"),function(){var t=a();t=0===t?"":t,window._ozuid=t,window._yas&&window._yas(1*new Date,"1.0.17","yohobuy_m",t,"","")}(),v.on("touchstart","a",function(){v.find("a").removeClass("highlight"),u(this).addClass("highlight")}).on("touchend touchcancel","a",function(){u(this).removeClass("highlight")}),g.on("touchstart",".tap-hightlight",function(){u(this).siblings(".tap-hightlight").removeClass("highlight"),u(this).addClass("highlight")}).on("touchend touchcancel",".tap-hightlight",function(){u(this).removeClass("highlight")}),u(".nav-home").on("touchstart",function(){u(".homebuttom").toggleClass("hide")}),function(){var t,i,e=0,s="webkit moz ms o".split(" "),o=window.requestAnimationFrame,n=window.cancelAnimationFrame;for(i=0;i<s.length&&(!o||!n);i++)t=s[i],o=o||window[t+"RequestAnimationFrame"],n=n||window[t+"CancelAnimationFrame"]||window[t+"CancelRequestAnimationFrame"];o&&n||(o=function(t){var i=(new Date).getTime(),s=Math.max(0,16-(i-e)),o=window.setTimeout(function(){t(i+s)},s);return e=i+s,o},n=function(t){window.clearTimeout(t)}),window.requestAnimationFrame=o,window.cancelAnimationFrame=n}(),u.extend({queryString:p}),11===m.find(".user-name").text().length&&m.find(".user-name").html(d(m.find(".user-name").text())),window.cookie=s,window.setCookie=o,window.isCookiesEnabled=n,window.getUser=r,window.getUid=a,window.getShoppingKey=h,window.rePosFooter=l,window.reMarginFooter=c,window.queryString=p()},6:function(t,i,e){function s(t){var i='<div class="loading-mask hide"><div class="loading"><div></div><div></div><div></div></div></div>';l=!0,t||(t=h),t.append(i),r=t.children(".loading-mask"),a("body").on("touchstart touchmove touchend",".loading-mask",function(){return!1})}function o(){l||(s(),l=!0),r.removeClass("hide")}function n(){r.addClass("hide")}var r,a=e(1),h=a(".yoho-page"),l=!1;i.init=s,i.showLoadingMask=o,i.hideLoadingMask=n,i.show=o,i.hide=n},22:function(t,i,e){var s;/*! iScroll v5.2.0 ~ (c) 2008-2016 Matteo Spinelli ~ http://cubiq.org/license */
  2 +!function(o,n,r){function a(t,i){this.wrapper="string"==typeof t?n.querySelector(t):t,this.scroller=this.wrapper.children[0],this.scrollerStyle=this.scroller.style,this.options={resizeScrollbars:!0,mouseWheelSpeed:20,snapThreshold:.334,disablePointer:!p.hasPointer,disableTouch:p.hasPointer||!p.hasTouch,disableMouse:p.hasPointer||p.hasTouch,startX:0,startY:0,scrollY:!0,directionLockThreshold:5,momentum:!0,bounce:!0,bounceTime:600,bounceEasing:"",preventDefault:!0,preventDefaultException:{tagName:/^(INPUT|TEXTAREA|BUTTON|SELECT)$/},HWCompositing:!0,useTransition:!0,useTransform:!0,bindToWrapper:"undefined"==typeof o.onmousedown};for(var e in i)this.options[e]=i[e];this.translateZ=this.options.HWCompositing&&p.hasPerspective?" translateZ(0)":"",this.options.useTransition=p.hasTransition&&this.options.useTransition,this.options.useTransform=p.hasTransform&&this.options.useTransform,this.options.eventPassthrough=this.options.eventPassthrough===!0?"vertical":this.options.eventPassthrough,this.options.preventDefault=!this.options.eventPassthrough&&this.options.preventDefault,this.options.scrollY="vertical"==this.options.eventPassthrough?!1:this.options.scrollY,this.options.scrollX="horizontal"==this.options.eventPassthrough?!1:this.options.scrollX,this.options.freeScroll=this.options.freeScroll&&!this.options.eventPassthrough,this.options.directionLockThreshold=this.options.eventPassthrough?0:this.options.directionLockThreshold,this.options.bounceEasing="string"==typeof this.options.bounceEasing?p.ease[this.options.bounceEasing]||p.ease.circular:this.options.bounceEasing,this.options.resizePolling=void 0===this.options.resizePolling?60:this.options.resizePolling,this.options.tap===!0&&(this.options.tap="tap"),"scale"==this.options.shrinkScrollbars&&(this.options.useTransition=!1),this.options.invertWheelDirection=this.options.invertWheelDirection?-1:1,3==this.options.probeType&&(this.options.useTransition=!1),this.x=0,this.y=0,this.directionX=0,this.directionY=0,this._events={},this._init(),this.refresh(),this.scrollTo(this.options.startX,this.options.startY),this.enable()}function h(t,i,e){var s=n.createElement("div"),o=n.createElement("div");return e===!0&&(s.style.cssText="position:absolute;z-index:9999",o.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:absolute;background:rgba(0,0,0,0.5);border:1px solid rgba(255,255,255,0.9);border-radius:3px"),o.className="iScrollIndicator","h"==t?(e===!0&&(s.style.cssText+=";height:7px;left:2px;right:2px;bottom:0",o.style.height="100%"),s.className="iScrollHorizontalScrollbar"):(e===!0&&(s.style.cssText+=";width:7px;bottom:2px;top:2px;right:1px",o.style.width="100%"),s.className="iScrollVerticalScrollbar"),s.style.cssText+=";overflow:hidden",i||(s.style.pointerEvents="none"),s.appendChild(o),s}function l(t,i){this.wrapper="string"==typeof i.el?n.querySelector(i.el):i.el,this.wrapperStyle=this.wrapper.style,this.indicator=this.wrapper.children[0],this.indicatorStyle=this.indicator.style,this.scroller=t,this.options={listenX:!0,listenY:!0,interactive:!1,resize:!0,defaultScrollbars:!1,shrink:!1,fade:!1,speedRatioX:0,speedRatioY:0};for(var e in i)this.options[e]=i[e];if(this.sizeRatioX=1,this.sizeRatioY=1,this.maxPosX=0,this.maxPosY=0,this.options.interactive&&(this.options.disableTouch||(p.addEvent(this.indicator,"touchstart",this),p.addEvent(o,"touchend",this)),this.options.disablePointer||(p.addEvent(this.indicator,p.prefixPointerEvent("pointerdown"),this),p.addEvent(o,p.prefixPointerEvent("pointerup"),this)),this.options.disableMouse||(p.addEvent(this.indicator,"mousedown",this),p.addEvent(o,"mouseup",this))),this.options.fade){this.wrapperStyle[p.style.transform]=this.scroller.translateZ;var s=p.style.transitionDuration;this.wrapperStyle[s]=p.isBadAndroid?"0.0001ms":"0ms";var r=this;p.isBadAndroid&&c(function(){"0.0001ms"===r.wrapperStyle[s]&&(r.wrapperStyle[s]="0s")}),this.wrapperStyle.opacity="0"}}var c=o.requestAnimationFrame||o.webkitRequestAnimationFrame||o.mozRequestAnimationFrame||o.oRequestAnimationFrame||o.msRequestAnimationFrame||function(t){o.setTimeout(t,1e3/60)},p=function(){function t(t){return s===!1?!1:""===s?t:s+t.charAt(0).toUpperCase()+t.substr(1)}var i={},e=n.createElement("div").style,s=function(){for(var t,i=["t","webkitT","MozT","msT","OT"],s=0,o=i.length;o>s;s++)if(t=i[s]+"ransform",t in e)return i[s].substr(0,i[s].length-1);return!1}();i.getTime=Date.now||function(){return(new Date).getTime()},i.extend=function(t,i){for(var e in i)t[e]=i[e]},i.addEvent=function(t,i,e,s){t.addEventListener(i,e,!!s)},i.removeEvent=function(t,i,e,s){t.removeEventListener(i,e,!!s)},i.prefixPointerEvent=function(t){return o.MSPointerEvent?"MSPointer"+t.charAt(7).toUpperCase()+t.substr(8):t},i.momentum=function(t,i,e,s,o,n){var a,h,l=t-i,c=r.abs(l)/e;return n=void 0===n?6e-4:n,a=t+c*c/(2*n)*(0>l?-1:1),h=c/n,s>a?(a=o?s-o/2.5*(c/8):s,l=r.abs(a-t),h=l/c):a>0&&(a=o?o/2.5*(c/8):0,l=r.abs(t)+a,h=l/c),{destination:r.round(a),duration:h}};var a=t("transform");return i.extend(i,{hasTransform:a!==!1,hasPerspective:t("perspective")in e,hasTouch:"ontouchstart"in o,hasPointer:!(!o.PointerEvent&&!o.MSPointerEvent),hasTransition:t("transition")in e}),i.isBadAndroid=function(){var t=o.navigator.appVersion;if(/Android/.test(t)&&!/Chrome\/\d/.test(t)){var i=t.match(/Safari\/(\d+.\d)/);return i&&"object"==typeof i&&i.length>=2?parseFloat(i[1])<535.19:!0}return!1}(),i.extend(i.style={},{transform:a,transitionTimingFunction:t("transitionTimingFunction"),transitionDuration:t("transitionDuration"),transitionDelay:t("transitionDelay"),transformOrigin:t("transformOrigin")}),i.hasClass=function(t,i){var e=new RegExp("(^|\\s)"+i+"(\\s|$)");return e.test(t.className)},i.addClass=function(t,e){if(!i.hasClass(t,e)){var s=t.className.split(" ");s.push(e),t.className=s.join(" ")}},i.removeClass=function(t,e){if(i.hasClass(t,e)){var s=new RegExp("(^|\\s)"+e+"(\\s|$)","g");t.className=t.className.replace(s," ")}},i.offset=function(t){for(var i=-t.offsetLeft,e=-t.offsetTop;t=t.offsetParent;)i-=t.offsetLeft,e-=t.offsetTop;return{left:i,top:e}},i.preventDefaultException=function(t,i){for(var e in i)if(i[e].test(t[e]))return!0;return!1},i.extend(i.eventType={},{touchstart:1,touchmove:1,touchend:1,mousedown:2,mousemove:2,mouseup:2,pointerdown:3,pointermove:3,pointerup:3,MSPointerDown:3,MSPointerMove:3,MSPointerUp:3}),i.extend(i.ease={},{quadratic:{style:"cubic-bezier(0.25, 0.46, 0.45, 0.94)",fn:function(t){return t*(2-t)}},circular:{style:"cubic-bezier(0.1, 0.57, 0.1, 1)",fn:function(t){return r.sqrt(1- --t*t)}},back:{style:"cubic-bezier(0.175, 0.885, 0.32, 1.275)",fn:function(t){var i=4;return(t-=1)*t*((i+1)*t+i)+1}},bounce:{style:"",fn:function(t){return(t/=1)<1/2.75?7.5625*t*t:2/2.75>t?7.5625*(t-=1.5/2.75)*t+.75:2.5/2.75>t?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375}},elastic:{style:"",fn:function(t){var i=.22,e=.4;return 0===t?0:1==t?1:e*r.pow(2,-10*t)*r.sin((t-i/4)*(2*r.PI)/i)+1}}}),i.tap=function(t,i){var e=n.createEvent("Event");e.initEvent(i,!0,!0),e.pageX=t.pageX,e.pageY=t.pageY,t.target.dispatchEvent(e)},i.click=function(t){var i,e=t.target;/(SELECT|INPUT|TEXTAREA)/i.test(e.tagName)||(i=n.createEvent("MouseEvents"),i.initMouseEvent("click",!0,!0,t.view,1,e.screenX,e.screenY,e.clientX,e.clientY,t.ctrlKey,t.altKey,t.shiftKey,t.metaKey,0,null),i._constructed=!0,e.dispatchEvent(i))},i}();a.prototype={version:"5.2.0",_init:function(){this._initEvents(),(this.options.scrollbars||this.options.indicators)&&this._initIndicators(),this.options.mouseWheel&&this._initWheel(),this.options.snap&&this._initSnap(),this.options.keyBindings&&this._initKeys()},destroy:function(){this._initEvents(!0),clearTimeout(this.resizeTimeout),this.resizeTimeout=null,this._execEvent("destroy")},_transitionEnd:function(t){t.target==this.scroller&&this.isInTransition&&(this._transitionTime(),this.resetPosition(this.options.bounceTime)||(this.isInTransition=!1,this._execEvent("scrollEnd")))},_start:function(t){if(1!=p.eventType[t.type]){var i;if(i=t.which?t.button:t.button<2?0:4==t.button?1:2,0!==i)return}if(this.enabled&&(!this.initiated||p.eventType[t.type]===this.initiated)){!this.options.preventDefault||p.isBadAndroid||p.preventDefaultException(t.target,this.options.preventDefaultException)||t.preventDefault();var e,s=t.touches?t.touches[0]:t;this.initiated=p.eventType[t.type],this.moved=!1,this.distX=0,this.distY=0,this.directionX=0,this.directionY=0,this.directionLocked=0,this.startTime=p.getTime(),this.options.useTransition&&this.isInTransition?(this._transitionTime(),this.isInTransition=!1,e=this.getComputedPosition(),this._translate(r.round(e.x),r.round(e.y)),this._execEvent("scrollEnd")):!this.options.useTransition&&this.isAnimating&&(this.isAnimating=!1,this._execEvent("scrollEnd")),this.startX=this.x,this.startY=this.y,this.absStartX=this.x,this.absStartY=this.y,this.pointX=s.pageX,this.pointY=s.pageY,this._execEvent("beforeScrollStart")}},_move:function(t){if(this.enabled&&p.eventType[t.type]===this.initiated){this.options.preventDefault&&t.preventDefault();var i,e,s,o,n=t.touches?t.touches[0]:t,a=n.pageX-this.pointX,h=n.pageY-this.pointY,l=p.getTime();if(this.pointX=n.pageX,this.pointY=n.pageY,this.distX+=a,this.distY+=h,s=r.abs(this.distX),o=r.abs(this.distY),!(l-this.endTime>300&&10>s&&10>o)){if(this.directionLocked||this.options.freeScroll||(s>o+this.options.directionLockThreshold?this.directionLocked="h":o>=s+this.options.directionLockThreshold?this.directionLocked="v":this.directionLocked="n"),"h"==this.directionLocked){if("vertical"==this.options.eventPassthrough)t.preventDefault();else if("horizontal"==this.options.eventPassthrough)return void(this.initiated=!1);h=0}else if("v"==this.directionLocked){if("horizontal"==this.options.eventPassthrough)t.preventDefault();else if("vertical"==this.options.eventPassthrough)return void(this.initiated=!1);a=0}a=this.hasHorizontalScroll?a:0,h=this.hasVerticalScroll?h:0,i=this.x+a,e=this.y+h,(i>0||i<this.maxScrollX)&&(i=this.options.bounce?this.x+a/3:i>0?0:this.maxScrollX),(e>0||e<this.maxScrollY)&&(e=this.options.bounce?this.y+h/3:e>0?0:this.maxScrollY),this.directionX=a>0?-1:0>a?1:0,this.directionY=h>0?-1:0>h?1:0,this.moved||this._execEvent("scrollStart"),this.moved=!0,this._translate(i,e),l-this.startTime>300&&(this.startTime=l,this.startX=this.x,this.startY=this.y,1==this.options.probeType&&this._execEvent("scroll")),this.options.probeType>1&&this._execEvent("scroll")}}},_end:function(t){if(this.enabled&&p.eventType[t.type]===this.initiated){this.options.preventDefault&&!p.preventDefaultException(t.target,this.options.preventDefaultException)&&t.preventDefault();var i,e,s=(t.changedTouches?t.changedTouches[0]:t,p.getTime()-this.startTime),o=r.round(this.x),n=r.round(this.y),a=r.abs(o-this.startX),h=r.abs(n-this.startY),l=0,c="";if(this.isInTransition=0,this.initiated=0,this.endTime=p.getTime(),!this.resetPosition(this.options.bounceTime)){if(this.scrollTo(o,n),!this.moved)return this.options.tap&&p.tap(t,this.options.tap),this.options.click&&p.click(t),void this._execEvent("scrollCancel");if(this._events.flick&&200>s&&100>a&&100>h)return void this._execEvent("flick");if(this.options.momentum&&300>s&&(i=this.hasHorizontalScroll?p.momentum(this.x,this.startX,s,this.maxScrollX,this.options.bounce?this.wrapperWidth:0,this.options.deceleration):{destination:o,duration:0},e=this.hasVerticalScroll?p.momentum(this.y,this.startY,s,this.maxScrollY,this.options.bounce?this.wrapperHeight:0,this.options.deceleration):{destination:n,duration:0},o=i.destination,n=e.destination,l=r.max(i.duration,e.duration),this.isInTransition=1),this.options.snap){var d=this._nearestSnap(o,n);this.currentPage=d,l=this.options.snapSpeed||r.max(r.max(r.min(r.abs(o-d.x),1e3),r.min(r.abs(n-d.y),1e3)),300),o=d.x,n=d.y,this.directionX=0,this.directionY=0,c=this.options.bounceEasing}return o!=this.x||n!=this.y?((o>0||o<this.maxScrollX||n>0||n<this.maxScrollY)&&(c=p.ease.quadratic),void this.scrollTo(o,n,l,c)):void this._execEvent("scrollEnd")}}},_resize:function(){var t=this;clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(function(){t.refresh()},this.options.resizePolling)},resetPosition:function(t){var i=this.x,e=this.y;return t=t||0,!this.hasHorizontalScroll||this.x>0?i=0:this.x<this.maxScrollX&&(i=this.maxScrollX),!this.hasVerticalScroll||this.y>0?e=0:this.y<this.maxScrollY&&(e=this.maxScrollY),i==this.x&&e==this.y?!1:(this.scrollTo(i,e,t,this.options.bounceEasing),!0)},disable:function(){this.enabled=!1},enable:function(){this.enabled=!0},refresh:function(){this.wrapper.offsetHeight;this.wrapperWidth=this.wrapper.clientWidth,this.wrapperHeight=this.wrapper.clientHeight,this.scrollerWidth=this.scroller.offsetWidth,this.scrollerHeight=this.scroller.offsetHeight,this.maxScrollX=this.wrapperWidth-this.scrollerWidth,this.maxScrollY=this.wrapperHeight-this.scrollerHeight,this.hasHorizontalScroll=this.options.scrollX&&this.maxScrollX<0,this.hasVerticalScroll=this.options.scrollY&&this.maxScrollY<0,this.hasHorizontalScroll||(this.maxScrollX=0,this.scrollerWidth=this.wrapperWidth),this.hasVerticalScroll||(this.maxScrollY=0,this.scrollerHeight=this.wrapperHeight),this.endTime=0,this.directionX=0,this.directionY=0,this.wrapperOffset=p.offset(this.wrapper),this._execEvent("refresh"),this.resetPosition()},on:function(t,i){this._events[t]||(this._events[t]=[]),this._events[t].push(i)},off:function(t,i){if(this._events[t]){var e=this._events[t].indexOf(i);e>-1&&this._events[t].splice(e,1)}},_execEvent:function(t){if(this._events[t]){var i=0,e=this._events[t].length;if(e)for(;e>i;i++)this._events[t][i].apply(this,[].slice.call(arguments,1))}},scrollBy:function(t,i,e,s){t=this.x+t,i=this.y+i,e=e||0,this.scrollTo(t,i,e,s)},scrollTo:function(t,i,e,s){s=s||p.ease.circular,this.isInTransition=this.options.useTransition&&e>0;var o=this.options.useTransition&&s.style;!e||o?(o&&(this._transitionTimingFunction(s.style),this._transitionTime(e)),this._translate(t,i)):this._animate(t,i,e,s.fn)},scrollToElement:function(t,i,e,s,o){if(t=t.nodeType?t:this.scroller.querySelector(t)){var n=p.offset(t);n.left-=this.wrapperOffset.left,n.top-=this.wrapperOffset.top,e===!0&&(e=r.round(t.offsetWidth/2-this.wrapper.offsetWidth/2)),s===!0&&(s=r.round(t.offsetHeight/2-this.wrapper.offsetHeight/2)),n.left-=e||0,n.top-=s||0,n.left=n.left>0?0:n.left<this.maxScrollX?this.maxScrollX:n.left,n.top=n.top>0?0:n.top<this.maxScrollY?this.maxScrollY:n.top,i=void 0===i||null===i||"auto"===i?r.max(r.abs(this.x-n.left),r.abs(this.y-n.top)):i,this.scrollTo(n.left,n.top,i,o)}},_transitionTime:function(t){t=t||0;var i=p.style.transitionDuration;if(this.scrollerStyle[i]=t+"ms",!t&&p.isBadAndroid){this.scrollerStyle[i]="0.0001ms";var e=this;c(function(){"0.0001ms"===e.scrollerStyle[i]&&(e.scrollerStyle[i]="0s")})}if(this.indicators)for(var s=this.indicators.length;s--;)this.indicators[s].transitionTime(t)},_transitionTimingFunction:function(t){if(this.scrollerStyle[p.style.transitionTimingFunction]=t,this.indicators)for(var i=this.indicators.length;i--;)this.indicators[i].transitionTimingFunction(t)},_translate:function(t,i){if(this.options.useTransform?this.scrollerStyle[p.style.transform]="translate("+t+"px,"+i+"px)"+this.translateZ:(t=r.round(t),i=r.round(i),this.scrollerStyle.left=t+"px",this.scrollerStyle.top=i+"px"),this.x=t,this.y=i,this.indicators)for(var e=this.indicators.length;e--;)this.indicators[e].updatePosition()},_initEvents:function(t){var i=t?p.removeEvent:p.addEvent,e=this.options.bindToWrapper?this.wrapper:o;i(o,"orientationchange",this),i(o,"resize",this),this.options.click&&i(this.wrapper,"click",this,!0),this.options.disableMouse||(i(this.wrapper,"mousedown",this),i(e,"mousemove",this),i(e,"mousecancel",this),i(e,"mouseup",this)),p.hasPointer&&!this.options.disablePointer&&(i(this.wrapper,p.prefixPointerEvent("pointerdown"),this),i(e,p.prefixPointerEvent("pointermove"),this),i(e,p.prefixPointerEvent("pointercancel"),this),i(e,p.prefixPointerEvent("pointerup"),this)),p.hasTouch&&!this.options.disableTouch&&(i(this.wrapper,"touchstart",this),i(e,"touchmove",this),i(e,"touchcancel",this),i(e,"touchend",this)),i(this.scroller,"transitionend",this),i(this.scroller,"webkitTransitionEnd",this),i(this.scroller,"oTransitionEnd",this),i(this.scroller,"MSTransitionEnd",this)},getComputedPosition:function(){var t,i,e=o.getComputedStyle(this.scroller,null);return this.options.useTransform?(e=e[p.style.transform].split(")")[0].split(", "),t=+(e[12]||e[4]),i=+(e[13]||e[5])):(t=+e.left.replace(/[^-\d.]/g,""),i=+e.top.replace(/[^-\d.]/g,"")),{x:t,y:i}},_initIndicators:function(){function t(t){if(n.indicators)for(var i=n.indicators.length;i--;)t.call(n.indicators[i])}var i,e=this.options.interactiveScrollbars,s="string"!=typeof this.options.scrollbars,o=[],n=this;this.indicators=[],this.options.scrollbars&&(this.options.scrollY&&(i={el:h("v",e,this.options.scrollbars),interactive:e,defaultScrollbars:!0,customStyle:s,resize:this.options.resizeScrollbars,shrink:this.options.shrinkScrollbars,fade:this.options.fadeScrollbars,listenX:!1},this.wrapper.appendChild(i.el),o.push(i)),this.options.scrollX&&(i={el:h("h",e,this.options.scrollbars),interactive:e,defaultScrollbars:!0,customStyle:s,resize:this.options.resizeScrollbars,shrink:this.options.shrinkScrollbars,fade:this.options.fadeScrollbars,listenY:!1},this.wrapper.appendChild(i.el),o.push(i))),this.options.indicators&&(o=o.concat(this.options.indicators));for(var r=o.length;r--;)this.indicators.push(new l(this,o[r]));this.options.fadeScrollbars&&(this.on("scrollEnd",function(){t(function(){this.fade()})}),this.on("scrollCancel",function(){t(function(){this.fade()})}),this.on("scrollStart",function(){t(function(){this.fade(1)})}),this.on("beforeScrollStart",function(){t(function(){this.fade(1,!0)})})),this.on("refresh",function(){t(function(){this.refresh()})}),this.on("destroy",function(){t(function(){this.destroy()}),delete this.indicators})},_initWheel:function(){p.addEvent(this.wrapper,"wheel",this),p.addEvent(this.wrapper,"mousewheel",this),p.addEvent(this.wrapper,"DOMMouseScroll",this),this.on("destroy",function(){clearTimeout(this.wheelTimeout),this.wheelTimeout=null,p.removeEvent(this.wrapper,"wheel",this),p.removeEvent(this.wrapper,"mousewheel",this),p.removeEvent(this.wrapper,"DOMMouseScroll",this)})},_wheel:function(t){if(this.enabled){t.preventDefault();var i,e,s,o,n=this;if(void 0===this.wheelTimeout&&n._execEvent("scrollStart"),clearTimeout(this.wheelTimeout),this.wheelTimeout=setTimeout(function(){n.options.snap||n._execEvent("scrollEnd"),n.wheelTimeout=void 0},400),"deltaX"in t)1===t.deltaMode?(i=-t.deltaX*this.options.mouseWheelSpeed,e=-t.deltaY*this.options.mouseWheelSpeed):(i=-t.deltaX,e=-t.deltaY);else if("wheelDeltaX"in t)i=t.wheelDeltaX/120*this.options.mouseWheelSpeed,e=t.wheelDeltaY/120*this.options.mouseWheelSpeed;else if("wheelDelta"in t)i=e=t.wheelDelta/120*this.options.mouseWheelSpeed;else{if(!("detail"in t))return;i=e=-t.detail/3*this.options.mouseWheelSpeed}if(i*=this.options.invertWheelDirection,e*=this.options.invertWheelDirection,this.hasVerticalScroll||(i=e,e=0),this.options.snap)return s=this.currentPage.pageX,o=this.currentPage.pageY,i>0?s--:0>i&&s++,e>0?o--:0>e&&o++,void this.goToPage(s,o);s=this.x+r.round(this.hasHorizontalScroll?i:0),o=this.y+r.round(this.hasVerticalScroll?e:0),this.directionX=i>0?-1:0>i?1:0,this.directionY=e>0?-1:0>e?1:0,s>0?s=0:s<this.maxScrollX&&(s=this.maxScrollX),o>0?o=0:o<this.maxScrollY&&(o=this.maxScrollY),this.scrollTo(s,o,0),this.options.probeType>1&&this._execEvent("scroll")}},_initSnap:function(){this.currentPage={},"string"==typeof this.options.snap&&(this.options.snap=this.scroller.querySelectorAll(this.options.snap)),this.on("refresh",function(){var t,i,e,s,o,n,a=0,h=0,l=0,c=this.options.snapStepX||this.wrapperWidth,p=this.options.snapStepY||this.wrapperHeight;if(this.pages=[],this.wrapperWidth&&this.wrapperHeight&&this.scrollerWidth&&this.scrollerHeight){if(this.options.snap===!0)for(e=r.round(c/2),s=r.round(p/2);l>-this.scrollerWidth;){for(this.pages[a]=[],t=0,o=0;o>-this.scrollerHeight;)this.pages[a][t]={x:r.max(l,this.maxScrollX),y:r.max(o,this.maxScrollY),width:c,height:p,cx:l-e,cy:o-s},o-=p,t++;l-=c,a++}else for(n=this.options.snap,t=n.length,i=-1;t>a;a++)(0===a||n[a].offsetLeft<=n[a-1].offsetLeft)&&(h=0,i++),this.pages[h]||(this.pages[h]=[]),l=r.max(-n[a].offsetLeft,this.maxScrollX),o=r.max(-n[a].offsetTop,this.maxScrollY),e=l-r.round(n[a].offsetWidth/2),s=o-r.round(n[a].offsetHeight/2),this.pages[h][i]={x:l,y:o,width:n[a].offsetWidth,height:n[a].offsetHeight,cx:e,cy:s},l>this.maxScrollX&&h++;this.goToPage(this.currentPage.pageX||0,this.currentPage.pageY||0,0),this.options.snapThreshold%1===0?(this.snapThresholdX=this.options.snapThreshold,this.snapThresholdY=this.options.snapThreshold):(this.snapThresholdX=r.round(this.pages[this.currentPage.pageX][this.currentPage.pageY].width*this.options.snapThreshold),this.snapThresholdY=r.round(this.pages[this.currentPage.pageX][this.currentPage.pageY].height*this.options.snapThreshold))}}),this.on("flick",function(){var t=this.options.snapSpeed||r.max(r.max(r.min(r.abs(this.x-this.startX),1e3),r.min(r.abs(this.y-this.startY),1e3)),300);this.goToPage(this.currentPage.pageX+this.directionX,this.currentPage.pageY+this.directionY,t)})},_nearestSnap:function(t,i){if(!this.pages.length)return{x:0,y:0,pageX:0,pageY:0};var e=0,s=this.pages.length,o=0;if(r.abs(t-this.absStartX)<this.snapThresholdX&&r.abs(i-this.absStartY)<this.snapThresholdY)return this.currentPage;for(t>0?t=0:t<this.maxScrollX&&(t=this.maxScrollX),i>0?i=0:i<this.maxScrollY&&(i=this.maxScrollY);s>e;e++)if(t>=this.pages[e][0].cx){t=this.pages[e][0].x;break}for(s=this.pages[e].length;s>o;o++)if(i>=this.pages[0][o].cy){i=this.pages[0][o].y;break}return e==this.currentPage.pageX&&(e+=this.directionX,0>e?e=0:e>=this.pages.length&&(e=this.pages.length-1),t=this.pages[e][0].x),o==this.currentPage.pageY&&(o+=this.directionY,0>o?o=0:o>=this.pages[0].length&&(o=this.pages[0].length-1),i=this.pages[0][o].y),{x:t,y:i,pageX:e,pageY:o}},goToPage:function(t,i,e,s){s=s||this.options.bounceEasing,t>=this.pages.length?t=this.pages.length-1:0>t&&(t=0),i>=this.pages[t].length?i=this.pages[t].length-1:0>i&&(i=0);var o=this.pages[t][i].x,n=this.pages[t][i].y;e=void 0===e?this.options.snapSpeed||r.max(r.max(r.min(r.abs(o-this.x),1e3),r.min(r.abs(n-this.y),1e3)),300):e,this.currentPage={x:o,y:n,pageX:t,pageY:i},this.scrollTo(o,n,e,s)},next:function(t,i){var e=this.currentPage.pageX,s=this.currentPage.pageY;e++,e>=this.pages.length&&this.hasVerticalScroll&&(e=0,s++),this.goToPage(e,s,t,i)},prev:function(t,i){var e=this.currentPage.pageX,s=this.currentPage.pageY;e--,0>e&&this.hasVerticalScroll&&(e=0,s--),this.goToPage(e,s,t,i)},_initKeys:function(t){var i,e={pageUp:33,pageDown:34,end:35,home:36,left:37,up:38,right:39,down:40};if("object"==typeof this.options.keyBindings)for(i in this.options.keyBindings)"string"==typeof this.options.keyBindings[i]&&(this.options.keyBindings[i]=this.options.keyBindings[i].toUpperCase().charCodeAt(0));else this.options.keyBindings={};for(i in e)this.options.keyBindings[i]=this.options.keyBindings[i]||e[i];p.addEvent(o,"keydown",this),this.on("destroy",function(){p.removeEvent(o,"keydown",this)})},_key:function(t){if(this.enabled){var i,e=this.options.snap,s=e?this.currentPage.pageX:this.x,o=e?this.currentPage.pageY:this.y,n=p.getTime(),a=this.keyTime||0,h=.25;switch(this.options.useTransition&&this.isInTransition&&(i=this.getComputedPosition(),this._translate(r.round(i.x),r.round(i.y)),this.isInTransition=!1),this.keyAcceleration=200>n-a?r.min(this.keyAcceleration+h,50):0,t.keyCode){case this.options.keyBindings.pageUp:this.hasHorizontalScroll&&!this.hasVerticalScroll?s+=e?1:this.wrapperWidth:o+=e?1:this.wrapperHeight;break;case this.options.keyBindings.pageDown:this.hasHorizontalScroll&&!this.hasVerticalScroll?s-=e?1:this.wrapperWidth:o-=e?1:this.wrapperHeight;break;case this.options.keyBindings.end:s=e?this.pages.length-1:this.maxScrollX,o=e?this.pages[0].length-1:this.maxScrollY;break;case this.options.keyBindings.home:s=0,o=0;break;case this.options.keyBindings.left:s+=e?-1:5+this.keyAcceleration>>0;break;case this.options.keyBindings.up:o+=e?1:5+this.keyAcceleration>>0;break;case this.options.keyBindings.right:s-=e?-1:5+this.keyAcceleration>>0;break;case this.options.keyBindings.down:o-=e?1:5+this.keyAcceleration>>0;break;default:return}if(e)return void this.goToPage(s,o);s>0?(s=0,this.keyAcceleration=0):s<this.maxScrollX&&(s=this.maxScrollX,this.keyAcceleration=0),o>0?(o=0,this.keyAcceleration=0):o<this.maxScrollY&&(o=this.maxScrollY,this.keyAcceleration=0),this.scrollTo(s,o,0),this.keyTime=n}},_animate:function(t,i,e,s){function o(){var d,u,f,m=p.getTime();return m>=l?(n.isAnimating=!1,n._translate(t,i),void(n.resetPosition(n.options.bounceTime)||n._execEvent("scrollEnd"))):(m=(m-h)/e,f=s(m),d=(t-r)*f+r,u=(i-a)*f+a,n._translate(d,u),n.isAnimating&&c(o),void(3==n.options.probeType&&n._execEvent("scroll")))}var n=this,r=this.x,a=this.y,h=p.getTime(),l=h+e;this.isAnimating=!0,o()},handleEvent:function(t){switch(t.type){case"touchstart":case"pointerdown":case"MSPointerDown":case"mousedown":this._start(t);break;case"touchmove":case"pointermove":case"MSPointerMove":case"mousemove":this._move(t);break;case"touchend":case"pointerup":case"MSPointerUp":case"mouseup":case"touchcancel":case"pointercancel":case"MSPointerCancel":case"mousecancel":this._end(t);break;case"orientationchange":case"resize":this._resize();break;case"transitionend":case"webkitTransitionEnd":case"oTransitionEnd":case"MSTransitionEnd":this._transitionEnd(t);break;case"wheel":case"DOMMouseScroll":case"mousewheel":this._wheel(t);break;case"keydown":this._key(t);break;case"click":this.enabled&&!t._constructed&&(t.preventDefault(),t.stopPropagation())}}},l.prototype={handleEvent:function(t){switch(t.type){case"touchstart":case"pointerdown":case"MSPointerDown":case"mousedown":this._start(t);break;case"touchmove":case"pointermove":case"MSPointerMove":case"mousemove":this._move(t);break;case"touchend":case"pointerup":case"MSPointerUp":case"mouseup":case"touchcancel":case"pointercancel":case"MSPointerCancel":case"mousecancel":this._end(t)}},destroy:function(){this.options.fadeScrollbars&&(clearTimeout(this.fadeTimeout),this.fadeTimeout=null),this.options.interactive&&(p.removeEvent(this.indicator,"touchstart",this),p.removeEvent(this.indicator,p.prefixPointerEvent("pointerdown"),this),p.removeEvent(this.indicator,"mousedown",this),p.removeEvent(o,"touchmove",this),p.removeEvent(o,p.prefixPointerEvent("pointermove"),this),p.removeEvent(o,"mousemove",this),p.removeEvent(o,"touchend",this),p.removeEvent(o,p.prefixPointerEvent("pointerup"),this),p.removeEvent(o,"mouseup",this)),this.options.defaultScrollbars&&this.wrapper.parentNode.removeChild(this.wrapper)},_start:function(t){var i=t.touches?t.touches[0]:t;t.preventDefault(),t.stopPropagation(),this.transitionTime(),this.initiated=!0,this.moved=!1,this.lastPointX=i.pageX,this.lastPointY=i.pageY,this.startTime=p.getTime(),this.options.disableTouch||p.addEvent(o,"touchmove",this),this.options.disablePointer||p.addEvent(o,p.prefixPointerEvent("pointermove"),this),this.options.disableMouse||p.addEvent(o,"mousemove",this),this.scroller._execEvent("beforeScrollStart")},_move:function(t){var i,e,s,o,n=t.touches?t.touches[0]:t,r=p.getTime();this.moved||this.scroller._execEvent("scrollStart"),this.moved=!0,i=n.pageX-this.lastPointX,this.lastPointX=n.pageX,e=n.pageY-this.lastPointY,this.lastPointY=n.pageY,s=this.x+i,o=this.y+e,this._pos(s,o),1==this.scroller.options.probeType&&r-this.startTime>300?(this.startTime=r,this.scroller._execEvent("scroll")):this.scroller.options.probeType>1&&this.scroller._execEvent("scroll"),t.preventDefault(),t.stopPropagation()},_end:function(t){if(this.initiated){if(this.initiated=!1,t.preventDefault(),t.stopPropagation(),p.removeEvent(o,"touchmove",this),p.removeEvent(o,p.prefixPointerEvent("pointermove"),this),p.removeEvent(o,"mousemove",this),this.scroller.options.snap){var i=this.scroller._nearestSnap(this.scroller.x,this.scroller.y),e=this.options.snapSpeed||r.max(r.max(r.min(r.abs(this.scroller.x-i.x),1e3),r.min(r.abs(this.scroller.y-i.y),1e3)),300);this.scroller.x==i.x&&this.scroller.y==i.y||(this.scroller.directionX=0,this.scroller.directionY=0,this.scroller.currentPage=i,this.scroller.scrollTo(i.x,i.y,e,this.scroller.options.bounceEasing))}this.moved&&this.scroller._execEvent("scrollEnd")}},transitionTime:function(t){t=t||0;var i=p.style.transitionDuration;if(this.indicatorStyle[i]=t+"ms",!t&&p.isBadAndroid){this.indicatorStyle[i]="0.0001ms";var e=this;c(function(){"0.0001ms"===e.indicatorStyle[i]&&(e.indicatorStyle[i]="0s")})}},transitionTimingFunction:function(t){this.indicatorStyle[p.style.transitionTimingFunction]=t},refresh:function(){this.transitionTime(),this.options.listenX&&!this.options.listenY?this.indicatorStyle.display=this.scroller.hasHorizontalScroll?"block":"none":this.options.listenY&&!this.options.listenX?this.indicatorStyle.display=this.scroller.hasVerticalScroll?"block":"none":this.indicatorStyle.display=this.scroller.hasHorizontalScroll||this.scroller.hasVerticalScroll?"block":"none",this.scroller.hasHorizontalScroll&&this.scroller.hasVerticalScroll?(p.addClass(this.wrapper,"iScrollBothScrollbars"),p.removeClass(this.wrapper,"iScrollLoneScrollbar"),this.options.defaultScrollbars&&this.options.customStyle&&(this.options.listenX?this.wrapper.style.right="8px":this.wrapper.style.bottom="8px")):(p.removeClass(this.wrapper,"iScrollBothScrollbars"),p.addClass(this.wrapper,"iScrollLoneScrollbar"),this.options.defaultScrollbars&&this.options.customStyle&&(this.options.listenX?this.wrapper.style.right="2px":this.wrapper.style.bottom="2px"));this.wrapper.offsetHeight;this.options.listenX&&(this.wrapperWidth=this.wrapper.clientWidth,this.options.resize?(this.indicatorWidth=r.max(r.round(this.wrapperWidth*this.wrapperWidth/(this.scroller.scrollerWidth||this.wrapperWidth||1)),8),this.indicatorStyle.width=this.indicatorWidth+"px"):this.indicatorWidth=this.indicator.clientWidth,this.maxPosX=this.wrapperWidth-this.indicatorWidth,"clip"==this.options.shrink?(this.minBoundaryX=-this.indicatorWidth+8,this.maxBoundaryX=this.wrapperWidth-8):(this.minBoundaryX=0,this.maxBoundaryX=this.maxPosX),this.sizeRatioX=this.options.speedRatioX||this.scroller.maxScrollX&&this.maxPosX/this.scroller.maxScrollX),this.options.listenY&&(this.wrapperHeight=this.wrapper.clientHeight,this.options.resize?(this.indicatorHeight=r.max(r.round(this.wrapperHeight*this.wrapperHeight/(this.scroller.scrollerHeight||this.wrapperHeight||1)),8),this.indicatorStyle.height=this.indicatorHeight+"px"):this.indicatorHeight=this.indicator.clientHeight,this.maxPosY=this.wrapperHeight-this.indicatorHeight,"clip"==this.options.shrink?(this.minBoundaryY=-this.indicatorHeight+8,this.maxBoundaryY=this.wrapperHeight-8):(this.minBoundaryY=0,this.maxBoundaryY=this.maxPosY),this.maxPosY=this.wrapperHeight-this.indicatorHeight,this.sizeRatioY=this.options.speedRatioY||this.scroller.maxScrollY&&this.maxPosY/this.scroller.maxScrollY),this.updatePosition()},updatePosition:function(){var t=this.options.listenX&&r.round(this.sizeRatioX*this.scroller.x)||0,i=this.options.listenY&&r.round(this.sizeRatioY*this.scroller.y)||0;this.options.ignoreBoundaries||(t<this.minBoundaryX?("scale"==this.options.shrink&&(this.width=r.max(this.indicatorWidth+t,8),this.indicatorStyle.width=this.width+"px"),t=this.minBoundaryX):t>this.maxBoundaryX?"scale"==this.options.shrink?(this.width=r.max(this.indicatorWidth-(t-this.maxPosX),8),this.indicatorStyle.width=this.width+"px",t=this.maxPosX+this.indicatorWidth-this.width):t=this.maxBoundaryX:"scale"==this.options.shrink&&this.width!=this.indicatorWidth&&(this.width=this.indicatorWidth,this.indicatorStyle.width=this.width+"px"),i<this.minBoundaryY?("scale"==this.options.shrink&&(this.height=r.max(this.indicatorHeight+3*i,8),
  3 +this.indicatorStyle.height=this.height+"px"),i=this.minBoundaryY):i>this.maxBoundaryY?"scale"==this.options.shrink?(this.height=r.max(this.indicatorHeight-3*(i-this.maxPosY),8),this.indicatorStyle.height=this.height+"px",i=this.maxPosY+this.indicatorHeight-this.height):i=this.maxBoundaryY:"scale"==this.options.shrink&&this.height!=this.indicatorHeight&&(this.height=this.indicatorHeight,this.indicatorStyle.height=this.height+"px")),this.x=t,this.y=i,this.scroller.options.useTransform?this.indicatorStyle[p.style.transform]="translate("+t+"px,"+i+"px)"+this.scroller.translateZ:(this.indicatorStyle.left=t+"px",this.indicatorStyle.top=i+"px")},_pos:function(t,i){0>t?t=0:t>this.maxPosX&&(t=this.maxPosX),0>i?i=0:i>this.maxPosY&&(i=this.maxPosY),t=this.options.listenX?r.round(t/this.sizeRatioX):this.scroller.x,i=this.options.listenY?r.round(i/this.sizeRatioY):this.scroller.y,this.scroller.scrollTo(t,i)},fade:function(t,i){if(!i||this.visible){clearTimeout(this.fadeTimeout),this.fadeTimeout=null;var e=t?250:500,s=t?0:300;t=t?"1":"0",this.wrapperStyle[p.style.transitionDuration]=e+"ms",this.fadeTimeout=setTimeout(function(t){this.wrapperStyle.opacity=t,this.visible=+t}.bind(this,t),s)}}},a.utils=p,"undefined"!=typeof t&&t.exports?t.exports=a:(s=function(){return a}.call(i,e,i,t),!(void 0!==s&&(t.exports=s)))}(window,document,Math)},45:function(t,i,e){function s(t,i){var e,s,r=o(window),a=!1;e=o(t),e.length&&(i.height&&e.height(i.height),this.iScroll=new n(e.get(0),{click:!0,probeType:3}),this.iScroll.on("scrollStart",function(){0===this.y&&(a=!0),s=this.y,r.trigger("scroll")}),this.iScroll.on("scrollEnd",function(){a&&-1===this.directionY&&i.pullDown&&i.pullDown(),a=!1,s===this.y&&1===this.directionY&&i.pullUp&&i.pullUp(),r.trigger("scroll")}))}var o=e(1),n=e(22);t.exports=s}});
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
  1 +webpackJsonp([15],{0:function(e,a,t){t(28)},2:function(e,a,t){function n(e,a){var t,n;"undefined"!=typeof e&&(t=e.toString(),n=a&&a>0?a:2e3,o.text(t).show(),s=setTimeout(function(){"block"===o.css("display")&&o.hide()},n))}var o,s,i=t(1);!function(){var e='<div id="yoho-tip" class="yoho-tip"></div>';i(".yoho-page").append(e),o=i("#yoho-tip"),o.on("touchend",function(){o.hide(),clearTimeout(s)})}(),a.show=n},5:function(e,a,t){function n(e){var a,t=c(".has-eye");e&&"open"===e.status?t.append('<div class="eye"></div>'):t.append('<div class="eye close"></div>'),a=t.children(".eye"),a.on("touchstart",function(e){var a=c(this),t=a.siblings(".pwd");e.preventDefault(),a.toggleClass("close"),a.hasClass("close")?t.attr("type","password"):t.attr("type","text"),t.focus()})}function o(){var e,a=c(".has-clear");a.append('<div class="clear-input"></div>'),e=a.children(".clear-input"),e.on("touchstart",function(a){var t=e.siblings(".input");t.val("").trigger("input").focus(),a.preventDefault()}),a.children(".input").bind("input",function(){var e=c(this),a=e.siblings(".clear-input"),t=r(e.val());""===t?a.hide():a.show()})}function s(e){return e.length>=6&&e.length<=20}function i(e){function a(){var a=e.find("option:selected").text().length;switch(a){case 2:e.outerWidth(90);break;case 3:e.outerWidth(110);break;default:e.outerWidth(130)}}var t=navigator.userAgent;t.match(/uc/i)&&t.match(/android/i)?e.change(function(){a()}):e.removeClass("in-android-uc")}var c=t(1),r=c.trim,d=/^([a-zA-Z0-9]+[_|\_|\.|-]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.|-]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/,l={"+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][0-9]{8}$/,"+81":/^0[9|8|7][0-9]{9}$/,"+61":/^[0-9]{11}$/};e.exports={emailRegx:d,phoneRegx:l,bindEyesEvt:n,bindClearEvt:o,pwdValidate:s,selectCssHack:i}},13:function(e,a,t){var n=t(1);e.exports=function(e,a,o){function s(){n.ajax({url:a?"/passport/bind/bindMobile":"/passport/bind/relateMobile",type:"post",data:{areaCode:f.replace("+",""),phoneNum:v,openId:h,sourceType:p,nickname:u,password:"",code:m(r.val())},success:function(e){200===e.code?(g.show("登录成功"),setTimeout(function(){location.href=e.data.refer},2e3)):g.show(e.message)},error:function(){g.show("登录失败,请重试!")}})}function i(){n.ajax({type:"POST",url:"/passport/"+C+"/verifycode",data:{phoneNum:v,areaCode:f,code:m(r.val()),token:n("#token").val()},success:function(e){200===e.code?location.href=e.data:y(e.message)}})}function c(){var e,a=59;e=setInterval(function(){0===a?(l.text("重新发送").removeClass("disable"),clearInterval(e)):l.text("重新发送 ("+a--+"秒)")},1e3)}var r=n("#captcha"),d=n("#btn-next"),l=n("#captcha-tip"),u=n("#nickname").val(),p=n("#sourceType").val(),h=n("#openId").val(),v=n("#phone-num").val(),f=n("#area-code").val().replace("+",""),b=t(5),g=t(2),m=n.trim,y=g.show,C=e?"reg":"back",w=parseInt(n("#isReg").val(),10);b.bindClearEvt(),r.bind("input",function(){""!==m(r.val())?d.removeClass("disable"):d.addClass("disable")}),l.on("touchstart",function(){l.hasClass("disable")||n.ajax({type:"POST",url:a||o?"/passport/bind/sendBindMsg":"/passport/"+C+"/sendcode",data:{phoneNum:v,areaCode:f},success:function(e){200===e.code?(l.text("重发验证码 (60秒)").addClass("disable"),c()):y(e.message)}})}),d.on("touchstart",function(){d.hasClass("disable")||(a||o?w?s():location.href="/passport/bind/password?phoneNum="+v+"&areaCode="+f+"&openId="+h+"&sourceType="+p+"&nickname="+u+"&code="+m(r.val()):i())}),c()}},28:function(e,a,t){t(13)(!1)}});
  1 +webpackJsonp([30],{0:function(o,n,t){t(29)},2:function(o,n,t){function e(o,n){var t,e;"undefined"!=typeof o&&(t=o.toString(),e=n&&n>0?n:2e3,i.text(t).show(),c=setTimeout(function(){"block"===i.css("display")&&i.hide()},e))}var i,c,u=t(1);!function(){var o='<div id="yoho-tip" class="yoho-tip"></div>';u(".yoho-page").append(o),i=u("#yoho-tip"),i.on("touchend",function(){i.hide(),clearTimeout(c)})}(),n.show=e},29:function(o,n,t){var e=t(1),i=e("#resend"),c=t(2),u=c.show;i.on("touchstart",function(o){o.preventDefault(),e.ajax({url:i.data("url"),type:"GET",success:function(o){u(o.message)}})})}});
  1 +webpackJsonp([28],{0:function(t,e,a){a(30)},2:function(t,e,a){function n(t,e){var a,n;"undefined"!=typeof t&&(a=t.toString(),n=e&&e>0?e:2e3,i.text(a).show(),s=setTimeout(function(){"block"===i.css("display")&&i.hide()},n))}var i,s,o=a(1);!function(){var t='<div id="yoho-tip" class="yoho-tip"></div>';o(".yoho-page").append(t),i=o("#yoho-tip"),i.on("touchend",function(){i.hide(),clearTimeout(s)})}(),e.show=n},5:function(t,e,a){function n(t){var e,a=c(".has-eye");t&&"open"===t.status?a.append('<div class="eye"></div>'):a.append('<div class="eye close"></div>'),e=a.children(".eye"),e.on("touchstart",function(t){var e=c(this),a=e.siblings(".pwd");t.preventDefault(),e.toggleClass("close"),e.hasClass("close")?a.attr("type","password"):a.attr("type","text"),a.focus()})}function i(){var t,e=c(".has-clear");e.append('<div class="clear-input"></div>'),t=e.children(".clear-input"),t.on("touchstart",function(e){var a=t.siblings(".input");a.val("").trigger("input").focus(),e.preventDefault()}),e.children(".input").bind("input",function(){var t=c(this),e=t.siblings(".clear-input"),a=l(t.val());""===a?e.hide():e.show()})}function s(t){return t.length>=6&&t.length<=20}function o(t){function e(){var e=t.find("option:selected").text().length;switch(e){case 2:t.outerWidth(90);break;case 3:t.outerWidth(110);break;default:t.outerWidth(130)}}var a=navigator.userAgent;a.match(/uc/i)&&a.match(/android/i)?t.change(function(){e()}):t.removeClass("in-android-uc")}var c=a(1),l=c.trim,r=/^([a-zA-Z0-9]+[_|\_|\.|-]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.|-]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/,d={"+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][0-9]{8}$/,"+81":/^0[9|8|7][0-9]{9}$/,"+61":/^[0-9]{11}$/};t.exports={emailRegx:r,phoneRegx:d,bindEyesEvt:n,bindClearEvt:i,pwdValidate:s,selectCssHack:o}},30:function(t,e,a){var n=a(1),i=n("#email"),s=n("#btn-sure"),o=a(5),c=a(2),l=n.trim,r=c.show;o.bindClearEvt(),i.bind("input",function(){""===l(i.val())?s.addClass("disable"):s.removeClass("disable")}),s.on("touchstart",function(){var t=l(i.val());s.hasClass("disable")||(o.emailRegx.test(t)?n.ajax({url:"/passport/back/sendemail",type:"POST",data:{email:t},success:function(t){console.log(t),200===t.code?location.href=t.data:r(t.message)}}):r("邮箱格式不正确,请重新输入"))})}});
  1 +webpackJsonp([27],{0:function(e,t,n){n(31)},2:function(e,t,n){function a(e,t){var n,a;"undefined"!=typeof e&&(n=e.toString(),a=t&&t>0?t:2e3,i.text(n).show(),s=setTimeout(function(){"block"===i.css("display")&&i.hide()},a))}var i,s,o=n(1);!function(){var e='<div id="yoho-tip" class="yoho-tip"></div>';o(".yoho-page").append(e),i=o("#yoho-tip"),i.on("touchend",function(){i.hide(),clearTimeout(s)})}(),t.show=a},5:function(e,t,n){function a(e){var t,n=c(".has-eye");e&&"open"===e.status?n.append('<div class="eye"></div>'):n.append('<div class="eye close"></div>'),t=n.children(".eye"),t.on("touchstart",function(e){var t=c(this),n=t.siblings(".pwd");e.preventDefault(),t.toggleClass("close"),t.hasClass("close")?n.attr("type","password"):n.attr("type","text"),n.focus()})}function i(){var e,t=c(".has-clear");t.append('<div class="clear-input"></div>'),e=t.children(".clear-input"),e.on("touchstart",function(t){var n=e.siblings(".input");n.val("").trigger("input").focus(),t.preventDefault()}),t.children(".input").bind("input",function(){var e=c(this),t=e.siblings(".clear-input"),n=r(e.val());""===n?t.hide():t.show()})}function s(e){return e.length>=6&&e.length<=20}function o(e){function t(){var t=e.find("option:selected").text().length;switch(t){case 2:e.outerWidth(90);break;case 3:e.outerWidth(110);break;default:e.outerWidth(130)}}var n=navigator.userAgent;n.match(/uc/i)&&n.match(/android/i)?e.change(function(){t()}):e.removeClass("in-android-uc")}var c=n(1),r=c.trim,u=/^([a-zA-Z0-9]+[_|\_|\.|-]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.|-]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/,d={"+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][0-9]{8}$/,"+81":/^0[9|8|7][0-9]{9}$/,"+61":/^[0-9]{11}$/};e.exports={emailRegx:u,phoneRegx:d,bindEyesEvt:a,bindClearEvt:i,pwdValidate:s,selectCssHack:o}},31:function(e,t,n){var a=n(1),i=a("#phone-num"),s=a("#country-select"),o=a("#area-code"),c=a("#btn-next"),r=n(5),u=n(2),d=a.trim,l=u.show;r.selectCssHack(a("#country-select")),r.bindClearEvt(),i.bind("input",function(){""===d(i.val())?c.addClass("disable"):c.removeClass("disable")}),s.change(function(){o.text(s.val())}),c.on("touchstart",function(){var e=d(i.val()),t=d(s.val());c.hasClass("disable")||(t&&e&&r.phoneRegx[t].test(e)?a.ajax({url:"/passport/back/sendcode",type:"POST",data:{areaCode:t.replace("+",""),phoneNum:e},success:function(e){200===e.code?location.href=e.data:l(e.message)}}):l(t?"手机号格式不正确,请重新输入":"出错了,请重新刷新页面"))})}});
  1 +webpackJsonp([26],{0:function(e,t,a){a(32)},2:function(e,t,a){function n(e,t){var a,n;"undefined"!=typeof e&&(a=e.toString(),n=t&&t>0?t:2e3,i.text(a).show(),o=setTimeout(function(){"block"===i.css("display")&&i.hide()},n))}var i,o,s=a(1);!function(){var e='<div id="yoho-tip" class="yoho-tip"></div>';s(".yoho-page").append(e),i=s("#yoho-tip"),i.on("touchend",function(){i.hide(),clearTimeout(o)})}(),t.show=n},5:function(e,t,a){function n(e){var t,a=c(".has-eye");e&&"open"===e.status?a.append('<div class="eye"></div>'):a.append('<div class="eye close"></div>'),t=a.children(".eye"),t.on("touchstart",function(e){var t=c(this),a=t.siblings(".pwd");e.preventDefault(),t.toggleClass("close"),t.hasClass("close")?a.attr("type","password"):a.attr("type","text"),a.focus()})}function i(){var e,t=c(".has-clear");t.append('<div class="clear-input"></div>'),e=t.children(".clear-input"),e.on("touchstart",function(t){var a=e.siblings(".input");a.val("").trigger("input").focus(),t.preventDefault()}),t.children(".input").bind("input",function(){var e=c(this),t=e.siblings(".clear-input"),a=d(e.val());""===a?t.hide():t.show()})}function o(e){return e.length>=6&&e.length<=20}function s(e){function t(){var t=e.find("option:selected").text().length;switch(t){case 2:e.outerWidth(90);break;case 3:e.outerWidth(110);break;default:e.outerWidth(130)}}var a=navigator.userAgent;a.match(/uc/i)&&a.match(/android/i)?e.change(function(){t()}):e.removeClass("in-android-uc")}var c=a(1),d=c.trim,r=/^([a-zA-Z0-9]+[_|\_|\.|-]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.|-]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/,l={"+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][0-9]{8}$/,"+81":/^0[9|8|7][0-9]{9}$/,"+61":/^[0-9]{11}$/};e.exports={emailRegx:r,phoneRegx:l,bindEyesEvt:n,bindClearEvt:i,pwdValidate:o,selectCssHack:s}},32:function(e,t,a){var n=a(1),i=n("#pwd"),o=n("#btn-ok"),s=a(5),c=a(2),d=n.trim,r=c.show,l=n("#phone-num");s.bindEyesEvt({status:"open"}),i.bind("input",function(){""===d(i.val())?o.addClass("disable"):o.removeClass("disable")}),o.on("touchstart",function(){var e,t,a=d(i.val()),c=!0;o.hasClass("disable")||(e={password:a},0===l.length&&(c=!1),c?(n.extend(e,{phoneNum:l.val(),areaCode:n("#area-code").val(),token:n("#token").val()}),t="/passport/back/passwordByMobile"):(n.extend(e,{code:n("#email-code").val()}),t="/passport/back/passwordByEmail"),s.pwdValidate(a)?n.ajax({type:"POST",url:t,data:e,success:function(e){200===e.code?(r("密码修改成功"),setTimeout(function(){location.href=e.data},1e3)):r(e.message)}}):r("密码6-20位,请重新输入"))})}});
  1 +webpackJsonp([14],{0:function(e,a,t){t(34)},2:function(e,a,t){function n(e,a){var t,n;"undefined"!=typeof e&&(t=e.toString(),n=a&&a>0?a:2e3,o.text(t).show(),s=setTimeout(function(){"block"===o.css("display")&&o.hide()},n))}var o,s,i=t(1);!function(){var e='<div id="yoho-tip" class="yoho-tip"></div>';i(".yoho-page").append(e),o=i("#yoho-tip"),o.on("touchend",function(){o.hide(),clearTimeout(s)})}(),a.show=n},5:function(e,a,t){function n(e){var a,t=c(".has-eye");e&&"open"===e.status?t.append('<div class="eye"></div>'):t.append('<div class="eye close"></div>'),a=t.children(".eye"),a.on("touchstart",function(e){var a=c(this),t=a.siblings(".pwd");e.preventDefault(),a.toggleClass("close"),a.hasClass("close")?t.attr("type","password"):t.attr("type","text"),t.focus()})}function o(){var e,a=c(".has-clear");a.append('<div class="clear-input"></div>'),e=a.children(".clear-input"),e.on("touchstart",function(a){var t=e.siblings(".input");t.val("").trigger("input").focus(),a.preventDefault()}),a.children(".input").bind("input",function(){var e=c(this),a=e.siblings(".clear-input"),t=r(e.val());""===t?a.hide():a.show()})}function s(e){return e.length>=6&&e.length<=20}function i(e){function a(){var a=e.find("option:selected").text().length;switch(a){case 2:e.outerWidth(90);break;case 3:e.outerWidth(110);break;default:e.outerWidth(130)}}var t=navigator.userAgent;t.match(/uc/i)&&t.match(/android/i)?e.change(function(){a()}):e.removeClass("in-android-uc")}var c=t(1),r=c.trim,d=/^([a-zA-Z0-9]+[_|\_|\.|-]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.|-]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/,l={"+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][0-9]{8}$/,"+81":/^0[9|8|7][0-9]{9}$/,"+61":/^[0-9]{11}$/};e.exports={emailRegx:d,phoneRegx:l,bindEyesEvt:n,bindClearEvt:o,pwdValidate:s,selectCssHack:i}},13:function(e,a,t){var n=t(1);e.exports=function(e,a,o){function s(){n.ajax({url:a?"/passport/bind/bindMobile":"/passport/bind/relateMobile",type:"post",data:{areaCode:f.replace("+",""),phoneNum:v,openId:h,sourceType:p,nickname:u,password:"",code:m(r.val())},success:function(e){200===e.code?(g.show("登录成功"),setTimeout(function(){location.href=e.data.refer},2e3)):g.show(e.message)},error:function(){g.show("登录失败,请重试!")}})}function i(){n.ajax({type:"POST",url:"/passport/"+C+"/verifycode",data:{phoneNum:v,areaCode:f,code:m(r.val()),token:n("#token").val()},success:function(e){200===e.code?location.href=e.data:y(e.message)}})}function c(){var e,a=59;e=setInterval(function(){0===a?(l.text("重新发送").removeClass("disable"),clearInterval(e)):l.text("重新发送 ("+a--+"秒)")},1e3)}var r=n("#captcha"),d=n("#btn-next"),l=n("#captcha-tip"),u=n("#nickname").val(),p=n("#sourceType").val(),h=n("#openId").val(),v=n("#phone-num").val(),f=n("#area-code").val().replace("+",""),b=t(5),g=t(2),m=n.trim,y=g.show,C=e?"reg":"back",w=parseInt(n("#isReg").val(),10);b.bindClearEvt(),r.bind("input",function(){""!==m(r.val())?d.removeClass("disable"):d.addClass("disable")}),l.on("touchstart",function(){l.hasClass("disable")||n.ajax({type:"POST",url:a||o?"/passport/bind/sendBindMsg":"/passport/"+C+"/sendcode",data:{phoneNum:v,areaCode:f},success:function(e){200===e.code?(l.text("重发验证码 (60秒)").addClass("disable"),c()):y(e.message)}})}),d.on("touchstart",function(){d.hasClass("disable")||(a||o?w?s():location.href="/passport/bind/password?phoneNum="+v+"&areaCode="+f+"&openId="+h+"&sourceType="+p+"&nickname="+u+"&code="+m(r.val()):i())}),c()}},34:function(e,a,t){t(13)(!0,!0)}});
  1 +webpackJsonp([25],{0:function(e,t,n){n(35)},2:function(e,t,n){function a(e,t){var n,a;"undefined"!=typeof e&&(n=e.toString(),a=t&&t>0?t:2e3,i.text(n).show(),o=setTimeout(function(){"block"===i.css("display")&&i.hide()},a))}var i,o,s=n(1);!function(){var e='<div id="yoho-tip" class="yoho-tip"></div>';s(".yoho-page").append(e),i=s("#yoho-tip"),i.on("touchend",function(){i.hide(),clearTimeout(o)})}(),t.show=a},5:function(e,t,n){function a(e){var t,n=c(".has-eye");e&&"open"===e.status?n.append('<div class="eye"></div>'):n.append('<div class="eye close"></div>'),t=n.children(".eye"),t.on("touchstart",function(e){var t=c(this),n=t.siblings(".pwd");e.preventDefault(),t.toggleClass("close"),t.hasClass("close")?n.attr("type","password"):n.attr("type","text"),n.focus()})}function i(){var e,t=c(".has-clear");t.append('<div class="clear-input"></div>'),e=t.children(".clear-input"),e.on("touchstart",function(t){var n=e.siblings(".input");n.val("").trigger("input").focus(),t.preventDefault()}),t.children(".input").bind("input",function(){var e=c(this),t=e.siblings(".clear-input"),n=r(e.val());""===n?t.hide():t.show()})}function o(e){return e.length>=6&&e.length<=20}function s(e){function t(){var t=e.find("option:selected").text().length;switch(t){case 2:e.outerWidth(90);break;case 3:e.outerWidth(110);break;default:e.outerWidth(130)}}var n=navigator.userAgent;n.match(/uc/i)&&n.match(/android/i)?e.change(function(){t()}):e.removeClass("in-android-uc")}var c=n(1),r=c.trim,d=/^([a-zA-Z0-9]+[_|\_|\.|-]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.|-]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/,u={"+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][0-9]{8}$/,"+81":/^0[9|8|7][0-9]{9}$/,"+61":/^[0-9]{11}$/};e.exports={emailRegx:d,phoneRegx:u,bindEyesEvt:a,bindClearEvt:i,pwdValidate:o,selectCssHack:s}},35:function(e,t,n){function a(e){i.ajax({url:"/passport/bind/bindMobile",type:"post",data:{areaCode:v.replace("+",""),phoneNum:h,openId:p,sourceType:l,password:e,code:f},success:function(e){200===e.code?(r.show("登录成功"),setTimeout(function(){location.href=e.data.refer},2e3)):r.show(e.message)},error:function(){r.show("登录失败,请重试!")}})}var i=n(1),o=i("#pwd"),s=i("#btn-sure"),c=n(5),r=n(2),d=i.trim,u=r.show,l=i("#sourceType").val(),p=i("#openId").val(),h=i("#phone-num").val(),v=i("#area-code").val().replace("+",""),f=i("#code").val();c.bindEyesEvt({status:"open"}),o.bind("input",function(){""===d(o.val())?s.addClass("disable"):s.removeClass("disable")}),s.on("touchstart",function(){var e=d(o.val());s.hasClass("disable")||(c.pwdValidate(e)===!1?u("密码6-20位,请重新输入"):a(e))})}});
  1 +webpackJsonp([37],[function(n,c){}]);
  1 +webpackJsonp([9],{0:function(e,t,n){n(33)},2:function(e,t,n){function o(e,t){var n,o;"undefined"!=typeof e&&(n=e.toString(),o=t&&t>0?t:2e3,i.text(n).show(),a=setTimeout(function(){"block"===i.css("display")&&i.hide()},o))}var i,a,s=n(1);!function(){var e='<div id="yoho-tip" class="yoho-tip"></div>';s(".yoho-page").append(e),i=s("#yoho-tip"),i.on("touchend",function(){i.hide(),clearTimeout(a)})}(),t.show=o},3:function(e,t,n){function o(e){var t,n,o=document.cookie;return document.cookie&&""!==document.cookie&&(n=o.indexOf(e+"="),n>-1&&(n+=e.length+1,t=decodeURIComponent(p.trim(o.substring(n,o.indexOf(";",n)))))),t}function i(e,t,n){var o,i,a,s,r="";"undefined"!=typeof t&&(n=n||{},null===t&&(t="",n.expires=-1),n.expires&&("number"==typeof n.expires||n.expires.toUTCString)&&("number"==typeof n.expires?(s=new Date,s.setTime(s.getTime()+24*n.expires*60*60*1e3)):s=n.expires,r="; expires="+s.toUTCString()),o=n.path?"; path="+n.path:"",i=n.domain?"; domain="+n.domain:"",a=n.secure?"; secure":"",document.cookie=[e,"=",encodeURIComponent(t),r,o,i,a].join(""))}function a(){var e=!!navigator.cookieEnabled;return"undefined"!=typeof navigator.cookieEnabled||e||(document.cookie="testcookie",e=-1!==document.cookie.indexOf("testcookie")),e}function s(){var e,t=o("_UID");return"undefined"==typeof t?0:(e=t.split("::"),"undefined"==typeof e||e.length<4?0:e)}function r(){var e=s();return 0===e?0:e[1]}function d(){var e=o("_g");return"undefined"==typeof e?"":JSON.parse(e).k}function c(){var e;0!==f.length&&(e=Math.min(p(window).height(),window.screen.availHeight),p("body").height()<=e-parseInt(f.css("height"),0)?f.addClass("bottom"):f.removeClass("bottom"))}function l(e){var t=p(e).outerHeight();e&&f.css("margin-bottom",t+"px")}function u(){var e,t,n=[],o=window.location.search.slice(1).split("&");for(t=0;t<o.length;t++)e=o[t].split("="),n.push(e[0]),n[e[0]]=e[1];return n}function h(e){return e.replace(/(\d{3})\d{4}(\d{4})/,"$1****$2")}var p=n(1),g=n(4),f=p("#yoho-footer"),m=p(".yoho-page"),w=p(".yoho-header");!function(){var e,t=f.children(".op-row"),n=p(".back-to-top"),o=s();c(),0===o?t.prepend('<a href="http://m.yohobuy.com/signin.html?refer='+location.href+'">登录</a><span class="sep-line">|</span><a href="http://m.yohobuy.com/reg.html">注册</a>'):t.prepend('<span>Hi,</span><a class="user-name" href="http://m.yohobuy.com/home?tmp='+Math.random()+'">'+o[0]+'</a><a href="http://m.yohobuy.com/passport/signout/index">退出</a>'),n.length>0&&(e=new g(n[0]),e.on("tap",function(e){return p(window).scrollTop(0),e.srcEvent.preventDefault(),!1})),f.removeClass("hide")}(),function(e,t,n,o,i){var a=t.createElement(n),s=t.getElementsByTagName(n)[0];e.YohoAcquisitionObject=i,e[i]=function(){e[i].p=arguments},a.async=1,a.src=o,s.parentNode.insertBefore(a,s)}(window,document,"script",("https:"===document.location.protocol?"https":"http")+"://cdn.yoho.cn/yas-jssdk/1.0.17/yas.js","_yas"),function(){var e=r();e=0===e?"":e,window._ozuid=e,window._yas&&window._yas(1*new Date,"1.0.17","yohobuy_m",e,"","")}(),w.on("touchstart","a",function(){w.find("a").removeClass("highlight"),p(this).addClass("highlight")}).on("touchend touchcancel","a",function(){p(this).removeClass("highlight")}),m.on("touchstart",".tap-hightlight",function(){p(this).siblings(".tap-hightlight").removeClass("highlight"),p(this).addClass("highlight")}).on("touchend touchcancel",".tap-hightlight",function(){p(this).removeClass("highlight")}),p(".nav-home").on("touchstart",function(){p(".homebuttom").toggleClass("hide")}),function(){var e,t,n=0,o="webkit moz ms o".split(" "),i=window.requestAnimationFrame,a=window.cancelAnimationFrame;for(t=0;t<o.length&&(!i||!a);t++)e=o[t],i=i||window[e+"RequestAnimationFrame"],a=a||window[e+"CancelAnimationFrame"]||window[e+"CancelRequestAnimationFrame"];i&&a||(i=function(e){var t=(new Date).getTime(),o=Math.max(0,16-(t-n)),i=window.setTimeout(function(){e(t+o)},o);return n=t+o,i},a=function(e){window.clearTimeout(e)}),window.requestAnimationFrame=i,window.cancelAnimationFrame=a}(),p.extend({queryString:u}),11===f.find(".user-name").text().length&&f.find(".user-name").html(h(f.find(".user-name").text())),window.cookie=o,window.setCookie=i,window.isCookiesEnabled=a,window.getUser=s,window.getUid=r,window.getShoppingKey=d,window.rePosFooter=c,window.reMarginFooter=l,window.queryString=u()},5:function(e,t,n){function o(e){var t,n=r(".has-eye");e&&"open"===e.status?n.append('<div class="eye"></div>'):n.append('<div class="eye close"></div>'),t=n.children(".eye"),t.on("touchstart",function(e){var t=r(this),n=t.siblings(".pwd");e.preventDefault(),t.toggleClass("close"),t.hasClass("close")?n.attr("type","password"):n.attr("type","text"),n.focus()})}function i(){var e,t=r(".has-clear");t.append('<div class="clear-input"></div>'),e=t.children(".clear-input"),e.on("touchstart",function(t){var n=e.siblings(".input");n.val("").trigger("input").focus(),t.preventDefault()}),t.children(".input").bind("input",function(){var e=r(this),t=e.siblings(".clear-input"),n=d(e.val());""===n?t.hide():t.show()})}function a(e){return e.length>=6&&e.length<=20}function s(e){function t(){var t=e.find("option:selected").text().length;switch(t){case 2:e.outerWidth(90);break;case 3:e.outerWidth(110);break;default:e.outerWidth(130)}}var n=navigator.userAgent;n.match(/uc/i)&&n.match(/android/i)?e.change(function(){t()}):e.removeClass("in-android-uc")}var r=n(1),d=r.trim,c=/^([a-zA-Z0-9]+[_|\_|\.|-]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.|-]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/,l={"+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][0-9]{8}$/,"+81":/^0[9|8|7][0-9]{9}$/,"+61":/^[0-9]{11}$/};e.exports={emailRegx:c,phoneRegx:l,bindEyesEvt:o,bindClearEvt:i,pwdValidate:a,selectCssHack:s}},21:function(e,t,n){var o=n(1),i=n(19),a=n(4);t.showDialog=function(e,t,n,s){function r(){var e,t=null;return null===t&&(t='<div id="dialog-wrapper" class="dialog-wrapper"><div class="dialog-box">{{# hasHeader}}{{/ hasHeader}}<div class="dialog-content">{{dialogText}}</div>{{# hasFooter}}<div class="dialog-footer">{{# leftBtnText}}<span class="dialog-left-btn tap-hightlight">{{.}}</span>{{/ leftBtnText}}{{# rightBtnText}}<span class="dialog-right-btn tap-hightlight">{{.}}</span>{{/ rightBtnText}}</div>{{/ hasFooter}}</div></div>',e=i.compile(t)),e}var d,c,l,u,h;d=r()(e),o(".dialog-wrapper").remove(),o("body").append(o(d)),c=o(".dialog-box"),u=o(".dialog-wrapper"),h=new a(document.getElementById("dialog-wrapper")),e.fast?u.css({display:"block"}):u.fadeIn(),s&&(o(".dialog-wrapper .dialog-footer > span").css("width","100%"),o(".dialog-wrapper .dialog-content").css({"padding-left":"1.85rem","padding-right":"1.85rem"}),u.css("z-index","10")),c.css({top:"50%",marginTop:-(c.height()/2)}),e.autoHide&&(l=1e3,e.autoHide>1&&(l=e.autoHide),setTimeout(function(){u.fadeOut()},l)),u.on("touchmove",function(){return!1}),h.on("tap",function(e){if(o(e.target).hasClass("dialog-left-btn"))"function"==typeof n&&n(),u.fadeOut();else if(o(e.target).hasClass("dialog-right-btn"))return t();e.preventDefault(),e.srcEvent.stopPropagation()})},t.hideDialog=function(){o(".dialog-wrapper").remove()}},33:function(e,t,n){function o(e,t,n){return w?!1:(w=!0,u.addClass("disable").html("绑定中..."),void i.ajax({type:"POST",url:"/passport/bind/sendBindMsg",data:{phoneNum:t,areaCode:n.replace("+","")},success:function(t){200===t.code?(window._yas&&window._yas.sendCustomInfo&&window._yas.sendCustomInfo({loginRefer:l.val()},!1),location.href=e):p.show(t.message)},error:function(){p.show("出错了,请重试!"),u.removeClass("disable").html("下一步"),w=!1}}))}var i=n(1),a=i("#phone-num"),s=i("#country-select"),r=i("#area-code"),d=i("#openId"),c=i("#nickname"),l=i("#sourceType"),u=i("#btn-next"),h=n(5),p=n(2),g=n(21),f=i.trim,m=p.show,w=!1;n(3),h.selectCssHack(i("#country-select")),h.bindClearEvt(),a.bind("input",function(){""===f(a.val())?u.addClass("disable"):u.removeClass("disable")}),s.change(function(){r.text(s.val())}),u.on("touchstart",function(){var e=f(a.val()),t=f(d.val()),n=f(c.val()),r=f(l.val()),p=s.val();u.hasClass("disable")||(h.phoneRegx[p].test(e)?i.ajax({url:"/passport/bind/bindCheck",type:"POST",data:{areaCode:p.replace("+",""),phoneNum:e,openId:t,sourceType:r,nickname:n},success:function(t){200===t.code?1===t.data.isReg?g.showDialog({dialogText:"该手机号已注册过有货\n"+e+",确定绑定吗?",hasFooter:{leftBtnText:"更换号码",rightBtnText:"继续绑定"}},function(){o(t.data.next,e,p)}):3===t.data.isReg?g.showDialog({dialogText:"该手机号已注册过有货\n"+e+",是否进行关联?",hasFooter:{leftBtnText:"更换号码",rightBtnText:"确定"}},function(){o(t.data.next,e,p)}):o(t.data.next,e,p):m(t.message)}}):m("手机号格式不正确,请重新输入"))}),/MicroMessenger/i.test(navigator.userAgent)&&i.queryString().refer&&i(".go-back").attr("href",decodeURIComponent(i.queryString().refer))}});
  1 +webpackJsonp([12],{0:function(e,a,t){t(39)},2:function(e,a,t){function n(e,a){var t,n;"undefined"!=typeof e&&(t=e.toString(),n=a&&a>0?a:2e3,o.text(t).show(),s=setTimeout(function(){"block"===o.css("display")&&o.hide()},n))}var o,s,i=t(1);!function(){var e='<div id="yoho-tip" class="yoho-tip"></div>';i(".yoho-page").append(e),o=i("#yoho-tip"),o.on("touchend",function(){o.hide(),clearTimeout(s)})}(),a.show=n},5:function(e,a,t){function n(e){var a,t=c(".has-eye");e&&"open"===e.status?t.append('<div class="eye"></div>'):t.append('<div class="eye close"></div>'),a=t.children(".eye"),a.on("touchstart",function(e){var a=c(this),t=a.siblings(".pwd");e.preventDefault(),a.toggleClass("close"),a.hasClass("close")?t.attr("type","password"):t.attr("type","text"),t.focus()})}function o(){var e,a=c(".has-clear");a.append('<div class="clear-input"></div>'),e=a.children(".clear-input"),e.on("touchstart",function(a){var t=e.siblings(".input");t.val("").trigger("input").focus(),a.preventDefault()}),a.children(".input").bind("input",function(){var e=c(this),a=e.siblings(".clear-input"),t=r(e.val());""===t?a.hide():a.show()})}function s(e){return e.length>=6&&e.length<=20}function i(e){function a(){var a=e.find("option:selected").text().length;switch(a){case 2:e.outerWidth(90);break;case 3:e.outerWidth(110);break;default:e.outerWidth(130)}}var t=navigator.userAgent;t.match(/uc/i)&&t.match(/android/i)?e.change(function(){a()}):e.removeClass("in-android-uc")}var c=t(1),r=c.trim,d=/^([a-zA-Z0-9]+[_|\_|\.|-]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.|-]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/,l={"+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][0-9]{8}$/,"+81":/^0[9|8|7][0-9]{9}$/,"+61":/^[0-9]{11}$/};e.exports={emailRegx:d,phoneRegx:l,bindEyesEvt:n,bindClearEvt:o,pwdValidate:s,selectCssHack:i}},13:function(e,a,t){var n=t(1);e.exports=function(e,a,o){function s(){n.ajax({url:a?"/passport/bind/bindMobile":"/passport/bind/relateMobile",type:"post",data:{areaCode:f.replace("+",""),phoneNum:v,openId:h,sourceType:p,nickname:u,password:"",code:m(r.val())},success:function(e){200===e.code?(g.show("登录成功"),setTimeout(function(){location.href=e.data.refer},2e3)):g.show(e.message)},error:function(){g.show("登录失败,请重试!")}})}function i(){n.ajax({type:"POST",url:"/passport/"+C+"/verifycode",data:{phoneNum:v,areaCode:f,code:m(r.val()),token:n("#token").val()},success:function(e){200===e.code?location.href=e.data:y(e.message)}})}function c(){var e,a=59;e=setInterval(function(){0===a?(l.text("重新发送").removeClass("disable"),clearInterval(e)):l.text("重新发送 ("+a--+"秒)")},1e3)}var r=n("#captcha"),d=n("#btn-next"),l=n("#captcha-tip"),u=n("#nickname").val(),p=n("#sourceType").val(),h=n("#openId").val(),v=n("#phone-num").val(),f=n("#area-code").val().replace("+",""),b=t(5),g=t(2),m=n.trim,y=g.show,C=e?"reg":"back",w=parseInt(n("#isReg").val(),10);b.bindClearEvt(),r.bind("input",function(){""!==m(r.val())?d.removeClass("disable"):d.addClass("disable")}),l.on("touchstart",function(){l.hasClass("disable")||n.ajax({type:"POST",url:a||o?"/passport/bind/sendBindMsg":"/passport/"+C+"/sendcode",data:{phoneNum:v,areaCode:f},success:function(e){200===e.code?(l.text("重发验证码 (60秒)").addClass("disable"),c()):y(e.message)}})}),d.on("touchstart",function(){d.hasClass("disable")||(a||o?w?s():location.href="/passport/bind/password?phoneNum="+v+"&areaCode="+f+"&openId="+h+"&sourceType="+p+"&nickname="+u+"&code="+m(r.val()):i())}),c()}},39:function(e,a,t){t(13)(!0)}});
  1 +webpackJsonp([24],{0:function(e,t,n){n(37)},2:function(e,t,n){function a(e,t){var n,a;"undefined"!=typeof e&&(n=e.toString(),a=t&&t>0?t:2e3,i.text(n).show(),s=setTimeout(function(){"block"===i.css("display")&&i.hide()},a))}var i,s,o=n(1);!function(){var e='<div id="yoho-tip" class="yoho-tip"></div>';o(".yoho-page").append(e),i=o("#yoho-tip"),i.on("touchend",function(){i.hide(),clearTimeout(s)})}(),t.show=a},5:function(e,t,n){function a(e){var t,n=c(".has-eye");e&&"open"===e.status?n.append('<div class="eye"></div>'):n.append('<div class="eye close"></div>'),t=n.children(".eye"),t.on("touchstart",function(e){var t=c(this),n=t.siblings(".pwd");e.preventDefault(),t.toggleClass("close"),t.hasClass("close")?n.attr("type","password"):n.attr("type","text"),n.focus()})}function i(){var e,t=c(".has-clear");t.append('<div class="clear-input"></div>'),e=t.children(".clear-input"),e.on("touchstart",function(t){var n=e.siblings(".input");n.val("").trigger("input").focus(),t.preventDefault()}),t.children(".input").bind("input",function(){var e=c(this),t=e.siblings(".clear-input"),n=r(e.val());""===n?t.hide():t.show()})}function s(e){return e.length>=6&&e.length<=20}function o(e){function t(){var t=e.find("option:selected").text().length;switch(t){case 2:e.outerWidth(90);break;case 3:e.outerWidth(110);break;default:e.outerWidth(130)}}var n=navigator.userAgent;n.match(/uc/i)&&n.match(/android/i)?e.change(function(){t()}):e.removeClass("in-android-uc")}var c=n(1),r=c.trim,u=/^([a-zA-Z0-9]+[_|\_|\.|-]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.|-]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/,l={"+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][0-9]{8}$/,"+81":/^0[9|8|7][0-9]{9}$/,"+61":/^[0-9]{11}$/};e.exports={emailRegx:u,phoneRegx:l,bindEyesEvt:a,bindClearEvt:i,pwdValidate:s,selectCssHack:o}},37:function(e,t,n){function a(){l&&d?u.removeClass("disable"):u.addClass("disable")}var i=n(1),s=i("#phone-num"),o=i("#country-select"),c=i("#area-code"),r=i("#pwd"),u=i("#btn-login"),l=!1,d=!1,p=n(5),h=n(2),v=i.trim,f=h.show;p.selectCssHack(o),p.bindEyesEvt(),p.bindClearEvt(),s.bind("input",function(){l=""!==v(s.val()),a()}),r.bind("input",function(){var e=v(r.val());d=""!==e,a()}),o.change(function(){c.text(o.val())}),u.on("touchstart",function(){var e=v(s.val()),t=o.val(),n=v(r.val());u.hasClass("disable")||(u.text("正在登录...").addClass("disable"),p.phoneRegx[t].test(e)&&p.pwdValidate(n)?i.ajax({type:"POST",url:"/passport/login/auth",data:{areaCode:t.replace("+",""),account:e,password:n},success:function(e){var t,n;200===e.code?(t=e.data,f("登录成功"),i.ajax({url:t.session,dataType:"jsonp",success:function(){clearTimeout(n),setTimeout(function(){location.href=t.href},1e3)}}),n=setTimeout(function(){location.href=t.href},3e3),f("登录成功")):f(e.message)},error:function(){f("网络断开连接啦~")},complete:function(){u.text("登录").removeClass("disable")}}):(f("账号或密码有错误,请重新输入"),u.text("登录").removeClass("disable")))}),s.trigger("input"),r.trigger("input")}});
  1 +webpackJsonp([23],{0:function(t,e,n){n(38)},2:function(t,e,n){function i(t,e){var n,i;"undefined"!=typeof t&&(n=t.toString(),i=e&&e>0?e:2e3,a.text(n).show(),o=setTimeout(function(){"block"===a.css("display")&&a.hide()},i))}var a,o,s=n(1);!function(){var t='<div id="yoho-tip" class="yoho-tip"></div>';s(".yoho-page").append(t),a=s("#yoho-tip"),a.on("touchend",function(){a.hide(),clearTimeout(o)})}(),e.show=i},5:function(t,e,n){function i(t){var e,n=c(".has-eye");t&&"open"===t.status?n.append('<div class="eye"></div>'):n.append('<div class="eye close"></div>'),e=n.children(".eye"),e.on("touchstart",function(t){var e=c(this),n=e.siblings(".pwd");t.preventDefault(),e.toggleClass("close"),e.hasClass("close")?n.attr("type","password"):n.attr("type","text"),n.focus()})}function a(){var t,e=c(".has-clear");e.append('<div class="clear-input"></div>'),t=e.children(".clear-input"),t.on("touchstart",function(e){var n=t.siblings(".input");n.val("").trigger("input").focus(),e.preventDefault()}),e.children(".input").bind("input",function(){var t=c(this),e=t.siblings(".clear-input"),n=r(t.val());""===n?e.hide():e.show()})}function o(t){return t.length>=6&&t.length<=20}function s(t){function e(){var e=t.find("option:selected").text().length;switch(e){case 2:t.outerWidth(90);break;case 3:t.outerWidth(110);break;default:t.outerWidth(130)}}var n=navigator.userAgent;n.match(/uc/i)&&n.match(/android/i)?t.change(function(){e()}):t.removeClass("in-android-uc")}var c=n(1),r=c.trim,u=/^([a-zA-Z0-9]+[_|\_|\.|-]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.|-]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/,d={"+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][0-9]{8}$/,"+81":/^0[9|8|7][0-9]{9}$/,"+61":/^[0-9]{11}$/};t.exports={emailRegx:u,phoneRegx:d,bindEyesEvt:i,bindClearEvt:a,pwdValidate:o,selectCssHack:s}},38:function(t,e,n){function i(){p&&h?u.removeClass("disable"):u.addClass("disable")}function a(){d.show(),l.show()}function o(){d.hide(),l.hide()}var s=n(1),c=s("#account"),r=s("#pwd"),u=s("#btn-login"),d=s("#retrive-pwd-mask"),l=s("#retrive-pwd-ways"),p=!1,h=!1,v=n(5),f=n(2),g=s.trim,b=f.show;v.bindEyesEvt(),v.bindClearEvt(),c.bind("input",function(){p=""!==g(c.val()),i()}),r.bind("input",function(){h=""!==g(r.val()),i()}),u.on("touchstart",function(){var t=g(c.val()),e=g(r.val());u.hasClass("disable")||(u.text("正在登录...").addClass("disable"),(/^[0-9]+$/.test(t)||v.emailRegx.test(t))&&v.pwdValidate(e)?s.ajax({type:"POST",url:"/passport/login/auth",data:{account:t,password:e},success:function(t){var e;200===t.code?(e=t.data,b("登录成功"),location.href=e.href):b(t.message)},error:function(){b("网络断开连接啦~")},complete:function(){u.text("登录").removeClass("disable")}}):(b("账号或密码有错误,请重新输入"),u.text("登录").removeClass("disable")))}),s("#forget-pwd").on("touchstart",function(){a()}),d.on("touchstart",function(){o()}),s("#cancel-retrive").on("touchstart",function(t){t.preventDefault(),o()}),c.trigger("input"),r.trigger("input")}});
  1 +webpackJsonp([22],{0:function(t,e,a){a(40)},2:function(t,e,a){function n(t,e){var a,n;"undefined"!=typeof t&&(a=t.toString(),n=e&&e>0?e:2e3,i.text(a).show(),s=setTimeout(function(){"block"===i.css("display")&&i.hide()},n))}var i,s,o=a(1);!function(){var t='<div id="yoho-tip" class="yoho-tip"></div>';o(".yoho-page").append(t),i=o("#yoho-tip"),i.on("touchend",function(){i.hide(),clearTimeout(s)})}(),e.show=n},5:function(t,e,a){function n(t){var e,a=c(".has-eye");t&&"open"===t.status?a.append('<div class="eye"></div>'):a.append('<div class="eye close"></div>'),e=a.children(".eye"),e.on("touchstart",function(t){var e=c(this),a=e.siblings(".pwd");t.preventDefault(),e.toggleClass("close"),e.hasClass("close")?a.attr("type","password"):a.attr("type","text"),a.focus()})}function i(){var t,e=c(".has-clear");e.append('<div class="clear-input"></div>'),t=e.children(".clear-input"),t.on("touchstart",function(e){var a=t.siblings(".input");a.val("").trigger("input").focus(),e.preventDefault()}),e.children(".input").bind("input",function(){var t=c(this),e=t.siblings(".clear-input"),a=r(t.val());""===a?e.hide():e.show()})}function s(t){return t.length>=6&&t.length<=20}function o(t){function e(){var e=t.find("option:selected").text().length;switch(e){case 2:t.outerWidth(90);break;case 3:t.outerWidth(110);break;default:t.outerWidth(130)}}var a=navigator.userAgent;a.match(/uc/i)&&a.match(/android/i)?t.change(function(){e()}):t.removeClass("in-android-uc")}var c=a(1),r=c.trim,d=/^([a-zA-Z0-9]+[_|\_|\.|-]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.|-]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/,u={"+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][0-9]{8}$/,"+81":/^0[9|8|7][0-9]{9}$/,"+61":/^[0-9]{11}$/};t.exports={emailRegx:d,phoneRegx:u,bindEyesEvt:n,bindClearEvt:i,pwdValidate:s,selectCssHack:o}},40:function(t,e,a){var n=a(1),i=n("#pwd"),s=n("#btn-sure"),o=a(5),c=a(2),r=n.trim,d=c.show;o.bindEyesEvt({status:"open"}),i.bind("input",function(){""===r(i.val())?s.addClass("disable"):s.removeClass("disable")}),s.on("touchstart",function(){var t=r(i.val());s.hasClass("disable")||(o.pwdValidate(t)===!1?d("密码6-20位,请重新输入"):n.ajax({type:"POST",url:"/passport/reg/setpassword",data:{password:t,phoneNum:n("#phone-num").val(),areaCode:n("#area-code").val(),token:n("#token").val()},success:function(t){var e=t.data;200===t.code?(d("注册成功"),location.href=e.href):d(t.message)}}))})}});
  1 +webpackJsonp([21],{0:function(e,t,n){n(41)},2:function(e,t,n){function a(e,t){var n,a;"undefined"!=typeof e&&(n=e.toString(),a=t&&t>0?t:2e3,i.text(n).show(),o=setTimeout(function(){"block"===i.css("display")&&i.hide()},a))}var i,o,s=n(1);!function(){var e='<div id="yoho-tip" class="yoho-tip"></div>';s(".yoho-page").append(e),i=s("#yoho-tip"),i.on("touchend",function(){i.hide(),clearTimeout(o)})}(),t.show=a},5:function(e,t,n){function a(e){var t,n=c(".has-eye");e&&"open"===e.status?n.append('<div class="eye"></div>'):n.append('<div class="eye close"></div>'),t=n.children(".eye"),t.on("touchstart",function(e){var t=c(this),n=t.siblings(".pwd");e.preventDefault(),t.toggleClass("close"),t.hasClass("close")?n.attr("type","password"):n.attr("type","text"),n.focus()})}function i(){var e,t=c(".has-clear");t.append('<div class="clear-input"></div>'),e=t.children(".clear-input"),e.on("touchstart",function(t){var n=e.siblings(".input");n.val("").trigger("input").focus(),t.preventDefault()}),t.children(".input").bind("input",function(){var e=c(this),t=e.siblings(".clear-input"),n=r(e.val());""===n?t.hide():t.show()})}function o(e){return e.length>=6&&e.length<=20}function s(e){function t(){var t=e.find("option:selected").text().length;switch(t){case 2:e.outerWidth(90);break;case 3:e.outerWidth(110);break;default:e.outerWidth(130)}}var n=navigator.userAgent;n.match(/uc/i)&&n.match(/android/i)?e.change(function(){t()}):e.removeClass("in-android-uc")}var c=n(1),r=c.trim,u=/^([a-zA-Z0-9]+[_|\_|\.|-]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.|-]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/,l={"+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][0-9]{8}$/,"+81":/^0[9|8|7][0-9]{9}$/,"+61":/^[0-9]{11}$/};e.exports={emailRegx:u,phoneRegx:l,bindEyesEvt:a,bindClearEvt:i,pwdValidate:o,selectCssHack:s}},41:function(e,t,n){var a=n(1),i=a("#phone-num"),o=a("#country-select"),s=a("#area-code"),c=a("#btn-next"),r=n(5),u=n(2),l=a.trim,d=u.show,p=!1;r.selectCssHack(a("#country-select")),r.bindClearEvt(),i.bind("input",function(){""===l(i.val())?c.addClass("disable"):c.removeClass("disable")}),o.change(function(){s.text(o.val())}),c.on("touchstart",function(){var e=l(i.val()),t=o.val();if(!c.hasClass("disable"))return p?!1:void(r.phoneRegx[t].test(e)?(p=!0,a.ajax({url:"/passport/reg/verifymobile",type:"POST",data:{areaCode:t.replace("+",""),phoneNum:e},success:function(e){200===e.code?location.href=e.data:(d(e.message),p=!1)},error:function(){d("出错了,请重试"),p=!1}})):d("手机号格式不正确,请重新输入"))})}});
  1 +webpackJsonp([13],{0:function(e,a,t){t(36)},2:function(e,a,t){function n(e,a){var t,n;"undefined"!=typeof e&&(t=e.toString(),n=a&&a>0?a:2e3,o.text(t).show(),s=setTimeout(function(){"block"===o.css("display")&&o.hide()},n))}var o,s,i=t(1);!function(){var e='<div id="yoho-tip" class="yoho-tip"></div>';i(".yoho-page").append(e),o=i("#yoho-tip"),o.on("touchend",function(){o.hide(),clearTimeout(s)})}(),a.show=n},5:function(e,a,t){function n(e){var a,t=c(".has-eye");e&&"open"===e.status?t.append('<div class="eye"></div>'):t.append('<div class="eye close"></div>'),a=t.children(".eye"),a.on("touchstart",function(e){var a=c(this),t=a.siblings(".pwd");e.preventDefault(),a.toggleClass("close"),a.hasClass("close")?t.attr("type","password"):t.attr("type","text"),t.focus()})}function o(){var e,a=c(".has-clear");a.append('<div class="clear-input"></div>'),e=a.children(".clear-input"),e.on("touchstart",function(a){var t=e.siblings(".input");t.val("").trigger("input").focus(),a.preventDefault()}),a.children(".input").bind("input",function(){var e=c(this),a=e.siblings(".clear-input"),t=r(e.val());""===t?a.hide():a.show()})}function s(e){return e.length>=6&&e.length<=20}function i(e){function a(){var a=e.find("option:selected").text().length;switch(a){case 2:e.outerWidth(90);break;case 3:e.outerWidth(110);break;default:e.outerWidth(130)}}var t=navigator.userAgent;t.match(/uc/i)&&t.match(/android/i)?e.change(function(){a()}):e.removeClass("in-android-uc")}var c=t(1),r=c.trim,d=/^([a-zA-Z0-9]+[_|\_|\.|-]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.|-]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/,l={"+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][0-9]{8}$/,"+81":/^0[9|8|7][0-9]{9}$/,"+61":/^[0-9]{11}$/};e.exports={emailRegx:d,phoneRegx:l,bindEyesEvt:n,bindClearEvt:o,pwdValidate:s,selectCssHack:i}},13:function(e,a,t){var n=t(1);e.exports=function(e,a,o){function s(){n.ajax({url:a?"/passport/bind/bindMobile":"/passport/bind/relateMobile",type:"post",data:{areaCode:f.replace("+",""),phoneNum:v,openId:h,sourceType:p,nickname:u,password:"",code:m(r.val())},success:function(e){200===e.code?(g.show("登录成功"),setTimeout(function(){location.href=e.data.refer},2e3)):g.show(e.message)},error:function(){g.show("登录失败,请重试!")}})}function i(){n.ajax({type:"POST",url:"/passport/"+C+"/verifycode",data:{phoneNum:v,areaCode:f,code:m(r.val()),token:n("#token").val()},success:function(e){200===e.code?location.href=e.data:y(e.message)}})}function c(){var e,a=59;e=setInterval(function(){0===a?(l.text("重新发送").removeClass("disable"),clearInterval(e)):l.text("重新发送 ("+a--+"秒)")},1e3)}var r=n("#captcha"),d=n("#btn-next"),l=n("#captcha-tip"),u=n("#nickname").val(),p=n("#sourceType").val(),h=n("#openId").val(),v=n("#phone-num").val(),f=n("#area-code").val().replace("+",""),b=t(5),g=t(2),m=n.trim,y=g.show,C=e?"reg":"back",w=parseInt(n("#isReg").val(),10);b.bindClearEvt(),r.bind("input",function(){""!==m(r.val())?d.removeClass("disable"):d.addClass("disable")}),l.on("touchstart",function(){l.hasClass("disable")||n.ajax({type:"POST",url:a||o?"/passport/bind/sendBindMsg":"/passport/"+C+"/sendcode",data:{phoneNum:v,areaCode:f},success:function(e){200===e.code?(l.text("重发验证码 (60秒)").addClass("disable"),c()):y(e.message)}})}),d.on("touchstart",function(){d.hasClass("disable")||(a||o?w?s():location.href="/passport/bind/password?phoneNum="+v+"&areaCode="+f+"&openId="+h+"&sourceType="+p+"&nickname="+u+"&code="+m(r.val()):i())}),c()}},36:function(e,a,t){t(13)(!0,!1,!0)}});
  1 +webpackJsonp([36],[function(n,c){}]);
  1 +webpackJsonp([7],{0:function(e,t,i){function a(e){var t=new RegExp("(^|&)"+e+"=([^&]*)(&|$)"),i=window.location.search.substr(1).match(t);return null!==i?i[2]:null}function n(e){var t;return t=e.hasClass("coat")?"coat":e.hasClass("trouser")?"trouser":e.hasClass("shoes")?"shoes":"other"}function o(e){var t,i,a,o,s,r={},d={};if(!c){if("object"===l.type(e)&&(e=[e]),e){for(t in q)q.hasOwnProperty(t)&&(q[t].reload=!0);for(s=0;s<e.length;s++){switch(e[s].type){case"gender":d={gender:e[s].id};break;case"brand":d={brand:e[s].id};break;case"sort":d={sort:e[s].id};break;case"color":d={color:e[s].id};break;case"size":d={size:e[s].id};break;case"price":d={price:e[s].id};break;case"discount":d={discount:e[s].id};break;case"p_d":d={p_d:e[s].id};break;case"ageLevel":d={age_level:e[s].id};break;case"breakSort":d={breakSort:e[s].id};break;case"breakSize":d={breakSize:e[s].id}}l.extend(F,d)}}if(a=n(E),i=q[a],o=i.page+1,i.reload)o=1;else if(i.end)return;l.extend(r,F,{type:"stock",order:0,page:o}),c=!0,m.showLoadingMask(),l.ajax({type:"GET",url:"/product/sale/search",data:r,success:function(e){var t,n;switch(a){case"coat":t=b;break;case"trouser":t=y;break;case"shoes":t=C;break;default:t=k}t.hasClass("hide")&&(t.siblings().addClass("hide"),t.removeClass("hide")),""===e?(i.end=!0,i.reload&&t.html(S)):i.reload?(t.html(e),f(t.find(".lazy"))):(n=t.find(".good-info").length,t.append(e),f(t.find(".good-info:gt("+(n-1)+") .lazy"))),l(".good-detail-text .name").each(function(){var e=l(this),t=e.find("a");t[0].mlellipsis(2)}),i.reload=!1,i.page=o,c=!1,m.hideLoadingMask(),window.rePosFooter()},error:function(){p.show("网络断开连接了~"),c=!1,m.hideLoadingMask()}})}}function s(e){l.ajax({type:"GET",url:"/product/sale/filter",data:l.extend(F,{saleType:"1"},e),success:function(e){d&&d.remove(),v.append(e),d=l(".filter-mask"),g.initFilter({fCbFn:o,hCbFn:function(){E.addClass("active"),E.siblings(".filter").removeClass("active"),l("#size-swiper-"+E.index()).show()},missStatus:!0})}})}function r(){l(window).scrollTop()+x>l(document).height()-.25*v.height()-50&&"undefined"!=typeof E&&o()}var d,c,l=i(1),h=i(11),u=i(8),f=i(7),p=i(2),g=i(10),m=i(6),v=l("#goods-container"),w=v.children(),b=l(w.get(0)),y=l(w.get(1)),C=l(w.get(2)),k=l(w.get(3)),x=l(window).height(),S='<p class="no-result">未找到相关搜索结果</p>',F=i(9),z={},T=l("#list-nav"),_=l(".swiper-size"),q={coat:{reload:!0,page:0,end:!1},trouser:{reload:!0,page:0,end:!1},shoes:{reload:!0,page:0,end:!1},other:{reload:!0,page:0,end:!1}},E=T.find(".active"),A=[],D=["coat","trouser","shoes","other"];i(27),i(3),u.init(),f(l("img.lazy")),F=l.extend({yh_channel:a("channel")||"boys",saleType:1},F),z=l.extend({},F),l(".banner-swiper .swiper-slide").length>1&&new h(".swiper-container",{observer:!0,observeParents:!0,lazyLoading:!0,lazyLoadingInPrevNext:!0,loop:!0,autoplay:3e3,autoplayDisableOnInteraction:!0,paginationClickable:!0,pagination:".banner-top .pagination-inner"}),l.each(_,function(e){A[e]=new h("#size-swiper-"+e,{slidesPerView:"auto"})}),l.each(T.find("li"),function(e,t){l(t).addClass(D[e])}),l.each(_,function(e,t){l(t).addClass(D[e])}),f(l(".lazy")),T.bind("contextmenu",function(){return!1}),T.on("touchend touchcancel",function(e){var t,i,a,r,d,c=l(e.target).closest("li");if(e.preventDefault(),c.hasClass("filter"))c.hasClass("active")?(g.hideFilter(),E.addClass("active"),c.removeClass("active"),_.eq(E.index()).show()):(E=c.siblings(".active"),_.hide(),E.removeClass("active"),c.addClass("active"),g.showFilter());else{if(r=n(c),t=q[r],!c.hasClass("active")){if(d=c.siblings(".active"),c.attr("class")!==E.attr("class")&&(g.resetFilter(),l(".classify .shower").removeClass("default"),F.breakSort=c.data("id"),F.breakSize=c.data("allsub"),s(),F=l.extend({},z)),E=c,d.hasClass("filter"))g.hideFilter();else switch(v.children(".container:not(.hide)").addClass("hide"),r){case"coat":b.removeClass("hide");break;case"trouser":y.removeClass("hide");break;case"shoes":C.removeClass("hide");break;case"other":k.removeClass("hide")}d.removeClass("active"),c.addClass("active"),i=c.data("id"),a=c.data("allsub"),_.hide(),l("#size-swiper-"+c.index()).show(),A[c.index()].onResize()}t.reload&&o([{type:"breakSort",id:i},{type:"breakSize",id:a}])}e.stopPropagation()}),_.on("click",function(e){var t,i,a,s,r,d=l(e.target).closest("li"),c=d.parents(".size-area").index(),h=T.find("li").eq(c);e.preventDefault(),"undefined"!=typeof d&&0!==d.length&&(s=n(h),t=q[s],d.hasClass("active")||(t.reload=!0,r=d.siblings(".active"),E=h,r.removeClass("active"),d.addClass("active"),i=h.data("id"),a=d.data("id"),t.reload&&o([{type:"breakSort",id:i},{type:"breakSize",id:a}]),e.stopPropagation()))}),l(window).scroll(function(){window.requestAnimationFrame(r)}),l(function(){var e,t,i=window.queryString.type;e=i&&"1"!==i?"3"===i?".trouser":".shoes":".coat",t=T.find(e),t.addClass("active").siblings().removeClass("active"),_.hide(),_.filter(e).show(),s({breakSort:t.data("id"),breakSize:t.data("allsub")}),o([{type:"breakSort",id:t.data("id")},{type:"breakSize",id:t.data("allsub")}])}),T.on("touchstart","li",function(){l(this).addClass("bytouch")}).on("touchend touchcancel",function(){T.find("li").removeClass("bytouch")})},2:function(e,t,i){function a(e,t){var i,a;"undefined"!=typeof e&&(i=e.toString(),a=t&&t>0?t:2e3,n.text(i).show(),o=setTimeout(function(){"block"===n.css("display")&&n.hide()},a))}var n,o,s=i(1);!function(){var e='<div id="yoho-tip" class="yoho-tip"></div>';s(".yoho-page").append(e),n=s("#yoho-tip"),n.on("touchend",function(){n.hide(),clearTimeout(o)})}(),t.show=a},3:function(e,t,i){function a(e){var t,i,a=document.cookie;return document.cookie&&""!==document.cookie&&(i=a.indexOf(e+"="),i>-1&&(i+=e.length+1,t=decodeURIComponent(f.trim(a.substring(i,a.indexOf(";",i)))))),t}function n(e,t,i){var a,n,o,s,r="";"undefined"!=typeof t&&(i=i||{},null===t&&(t="",i.expires=-1),i.expires&&("number"==typeof i.expires||i.expires.toUTCString)&&("number"==typeof i.expires?(s=new Date,s.setTime(s.getTime()+24*i.expires*60*60*1e3)):s=i.expires,r="; expires="+s.toUTCString()),a=i.path?"; path="+i.path:"",n=i.domain?"; domain="+i.domain:"",o=i.secure?"; secure":"",document.cookie=[e,"=",encodeURIComponent(t),r,a,n,o].join(""))}function o(){var e=!!navigator.cookieEnabled;return"undefined"!=typeof navigator.cookieEnabled||e||(document.cookie="testcookie",e=-1!==document.cookie.indexOf("testcookie")),e}function s(){var e,t=a("_UID");return"undefined"==typeof t?0:(e=t.split("::"),"undefined"==typeof e||e.length<4?0:e)}function r(){var e=s();return 0===e?0:e[1]}function d(){var e=a("_g");return"undefined"==typeof e?"":JSON.parse(e).k}function c(){var e;0!==g.length&&(e=Math.min(f(window).height(),window.screen.availHeight),f("body").height()<=e-parseInt(g.css("height"),0)?g.addClass("bottom"):g.removeClass("bottom"))}function l(e){var t=f(e).outerHeight();e&&g.css("margin-bottom",t+"px")}function h(){var e,t,i=[],a=window.location.search.slice(1).split("&");for(t=0;t<a.length;t++)e=a[t].split("="),i.push(e[0]),i[e[0]]=e[1];return i}function u(e){return e.replace(/(\d{3})\d{4}(\d{4})/,"$1****$2")}var f=i(1),p=i(4),g=f("#yoho-footer"),m=f(".yoho-page"),v=f(".yoho-header");!function(){var e,t=g.children(".op-row"),i=f(".back-to-top"),a=s();c(),0===a?t.prepend('<a href="http://m.yohobuy.com/signin.html?refer='+location.href+'">登录</a><span class="sep-line">|</span><a href="http://m.yohobuy.com/reg.html">注册</a>'):t.prepend('<span>Hi,</span><a class="user-name" href="http://m.yohobuy.com/home?tmp='+Math.random()+'">'+a[0]+'</a><a href="http://m.yohobuy.com/passport/signout/index">退出</a>'),i.length>0&&(e=new p(i[0]),e.on("tap",function(e){return f(window).scrollTop(0),e.srcEvent.preventDefault(),!1})),g.removeClass("hide")}(),function(e,t,i,a,n){var o=t.createElement(i),s=t.getElementsByTagName(i)[0];e.YohoAcquisitionObject=n,e[n]=function(){e[n].p=arguments},o.async=1,o.src=a,s.parentNode.insertBefore(o,s)}(window,document,"script",("https:"===document.location.protocol?"https":"http")+"://cdn.yoho.cn/yas-jssdk/1.0.17/yas.js","_yas"),function(){var e=r();e=0===e?"":e,window._ozuid=e,window._yas&&window._yas(1*new Date,"1.0.17","yohobuy_m",e,"","")}(),v.on("touchstart","a",function(){v.find("a").removeClass("highlight"),f(this).addClass("highlight")}).on("touchend touchcancel","a",function(){f(this).removeClass("highlight")}),m.on("touchstart",".tap-hightlight",function(){f(this).siblings(".tap-hightlight").removeClass("highlight"),f(this).addClass("highlight")}).on("touchend touchcancel",".tap-hightlight",function(){f(this).removeClass("highlight")}),f(".nav-home").on("touchstart",function(){f(".homebuttom").toggleClass("hide")}),function(){var e,t,i=0,a="webkit moz ms o".split(" "),n=window.requestAnimationFrame,o=window.cancelAnimationFrame;for(t=0;t<a.length&&(!n||!o);t++)e=a[t],n=n||window[e+"RequestAnimationFrame"],o=o||window[e+"CancelAnimationFrame"]||window[e+"CancelRequestAnimationFrame"];n&&o||(n=function(e){var t=(new Date).getTime(),a=Math.max(0,16-(t-i)),n=window.setTimeout(function(){e(t+a)},a);return i=t+a,n},o=function(e){window.clearTimeout(e)}),window.requestAnimationFrame=n,window.cancelAnimationFrame=o}(),f.extend({queryString:h}),11===g.find(".user-name").text().length&&g.find(".user-name").html(u(g.find(".user-name").text())),window.cookie=a,window.setCookie=n,window.isCookiesEnabled=o,window.getUser=s,window.getUid=r,window.getShoppingKey=d,window.rePosFooter=c,window.reMarginFooter=l,window.queryString=h()},6:function(e,t,i){function a(e){var t='<div class="loading-mask hide"><div class="loading"><div></div><div></div><div></div></div></div>';c=!0,e||(e=d),e.append(t),s=e.children(".loading-mask"),r("body").on("touchstart touchmove touchend",".loading-mask",function(){return!1})}function n(){c||(a(),c=!0),s.removeClass("hide")}function o(){s.addClass("hide")}var s,r=i(1),d=r(".yoho-page"),c=!1;t.init=a,t.showLoadingMask=n,t.hideLoadingMask=o,t.show=n,t.hide=o},9:function(e,t,i){var a=i(1),n={};a(".query-param").each(function(){var e=a(this);n[e.data("attr")]=e.val()}),e.exports=n},10:function(e,t,i){function a(){u.addClass("hide")}function n(){u.removeClass("hide")}function o(){var e=g(".filter-body .classify");e.on("touchstart",".shower",function(){e.removeClass("highlight"),g(this).addClass("highlight")}).on("touchend touchcancel",".shower",function(){g(this).removeClass("highlight")})}function s(){var e=g(".filter-body .sub-item");e.on("touchstart",function(){e.removeClass("highlight"),g(this).addClass("highlight")}).on("touchend touchcancel",function(){g(this).removeClass("highlight")})}function r(e){e.hasClass("active")||(e.siblings(".active").removeClass("active"),e.addClass("active"))}function d(e){var t,i,a=e.closest(".sub-classify"),n=a.siblings(".shower");return e.hasClass("chosed")?a:(a.children(".chosed").removeClass("chosed"),e.addClass("chosed"),t=g.trim(e.html()),i=g.trim(n.html()),n.html(i.substring(0,i.indexOf("</span>")+7)+t.substring(0,t.indexOf("<i"))),0===e.index()?n.addClass("default"):n.removeClass("default"),a)}function c(e){var t,i=e.data("id");t=d(e),f&&f({type:t.data("type"),id:i}),p&&p(),a()}function l(e){var t;f=e.fCbFn,p=e.hCbFn,window.missStatus=e.missStatus,o(),s(),u=g(".filter-mask"),u[0]&&(t=new m(u[0]),t.on("tap",function(e){var t,i=g(e.target);e.preventDefault(),i.closest(".filter-body").length>0?(t=i.closest(".sub-item"),t.length>0?(t=i.closest("li"),c(t)):(t=i.closest(".classify-item"),e.srcEvent.stopPropagation(),r(t))):(a(),p&&p())}))}function h(){"undefined"!=typeof u&&(g(".sub-classify").each(function(){d(g(this).children(":first-child"))}),r(g(".classify > :first-child")))}var u,f,p,g=i(1),m=i(4);t.initFilter=l,t.showFilter=n,t.hideFilter=a,t.resetFilter=h},27:function(e,t,i){var a=i(1),n=a("#suspend-cart");a.ajax({type:"GET",url:"/cart/index/count",success:function(e){var t;200===e.code&&(t=e.data.cart_goods_count,t>99&&(t="99+"),0===t&&a(".cart-count").remove(),n.find(".cart-count").html(t).removeClass("hide"))}})}});
  1 +webpackJsonp([1],{0:function(o,e,t){function n(){var o=i(".cart-bar"),e=setInterval(function(){o?(window.reMarginFooter(".cart-bar"),clearInterval(e)):o=i(".cart-bar")},200)}var i=t(1),a=t(11),s=t(4),d=t(7),r=i(".goods-discount .discount-folder"),c=i(".goods-discount .first-item span"),l=document.getElementById("goodsDiscount"),u=l&&new s(l),h=i(l).find(".first-item"),f=i(".cart-bar"),m=i('input[name="limitCodeUrl"]').val(),p=t(21);t(3),n(),d(i("img.lazy")),i("#goodsDiscount h1").length<1&&i(".dropdown").remove(),new a(".banner-swiper",{lazyLoading:!0,lazyLoadingInPrevNext:!0,paginationClickable:!0,pagination:".banner-top .pagination-inner",nextButton:".my-swiper-button-next",prevButton:".my-swiper-button-prev",spaceBetween:3}),0===r.children().length&&(r.css("display","none"),c.html("")),u&&r.children().length>0&&u.on("tap",function(){r.is(":hidden")?(h.removeClass("short-text"),c.removeClass("icon-down").addClass("icon-up").html("&#xe608;"),r.slideDown()):(h.addClass("short-text"),c.removeClass("icon-up").addClass("icon-down").html("&#xe609;"),r.slideUp())}),i("#limit-sale").on("touchend",function(o){var e,t,n=i("#loginUrl").val();o.stopPropagation(),n?window.location=n:(p.showDialog({dialogText:"进入有货APP,获取限购码",hasFooter:{rightBtnText:"打开Yoho!Buy有货APP"}},function(){t=document.createElement("iframe"),t.src=m,t.style.display="none",document.body.appendChild(t),window.location.href=m,e=Date.now(),window.setTimeout(function(){document.body.removeChild(t),Date.now()-e<3200&&(window.location.href="http://a.app.qq.com/o/simple.jsp?pkgname=com.yoho")},3e3)},null,!0),i(".dialog-wrapper").off("touchstart").on("touchstart",function(o){o.stopPropagation(),i(o.target).hasClass("dialog-wrapper")&&p.hideDialog()}))}),t(51),t(49),t(47),t(48),t(52),i.ajax({type:"GET",url:"/cart/index/count",success:function(o){var e;if(200===o.code){if(e=o.data.cart_goods_count||0,0===e)return!1;e>99&&(e="99+"),f.find(".num-tag").html(e).removeClass("hide")}}}),i(".good-detail-page").length>0&&i("#yoho-footer").css("border-top","1px solid #e0e0e0")},2:function(o,e,t){function n(o,e){var t,n;"undefined"!=typeof o&&(t=o.toString(),n=e&&e>0?e:2e3,i.text(t).show(),a=setTimeout(function(){"block"===i.css("display")&&i.hide()},n))}var i,a,s=t(1);!function(){var o='<div id="yoho-tip" class="yoho-tip"></div>';s(".yoho-page").append(o),i=s("#yoho-tip"),i.on("touchend",function(){i.hide(),clearTimeout(a)})}(),e.show=n},3:function(o,e,t){function n(o){var e,t,n=document.cookie;return document.cookie&&""!==document.cookie&&(t=n.indexOf(o+"="),t>-1&&(t+=o.length+1,e=decodeURIComponent(f.trim(n.substring(t,n.indexOf(";",t)))))),e}function i(o,e,t){var n,i,a,s,d="";"undefined"!=typeof e&&(t=t||{},null===e&&(e="",t.expires=-1),t.expires&&("number"==typeof t.expires||t.expires.toUTCString)&&("number"==typeof t.expires?(s=new Date,s.setTime(s.getTime()+24*t.expires*60*60*1e3)):s=t.expires,d="; expires="+s.toUTCString()),n=t.path?"; path="+t.path:"",i=t.domain?"; domain="+t.domain:"",a=t.secure?"; secure":"",document.cookie=[o,"=",encodeURIComponent(e),d,n,i,a].join(""))}function a(){var o=!!navigator.cookieEnabled;return"undefined"!=typeof navigator.cookieEnabled||o||(document.cookie="testcookie",o=-1!==document.cookie.indexOf("testcookie")),o}function s(){var o,e=n("_UID");return"undefined"==typeof e?0:(o=e.split("::"),"undefined"==typeof o||o.length<4?0:o)}function d(){var o=s();return 0===o?0:o[1]}function r(){var o=n("_g");return"undefined"==typeof o?"":JSON.parse(o).k}function c(){var o;0!==p.length&&(o=Math.min(f(window).height(),window.screen.availHeight),f("body").height()<=o-parseInt(p.css("height"),0)?p.addClass("bottom"):p.removeClass("bottom"))}function l(o){var e=f(o).outerHeight();o&&p.css("margin-bottom",e+"px")}function u(){var o,e,t=[],n=window.location.search.slice(1).split("&");for(e=0;e<n.length;e++)o=n[e].split("="),t.push(o[0]),t[o[0]]=o[1];return t}function h(o){return o.replace(/(\d{3})\d{4}(\d{4})/,"$1****$2")}var f=t(1),m=t(4),p=f("#yoho-footer"),g=f(".yoho-page"),v=f(".yoho-header");!function(){var o,e=p.children(".op-row"),t=f(".back-to-top"),n=s();c(),0===n?e.prepend('<a href="http://m.yohobuy.com/signin.html?refer='+location.href+'">登录</a><span class="sep-line">|</span><a href="http://m.yohobuy.com/reg.html">注册</a>'):e.prepend('<span>Hi,</span><a class="user-name" href="http://m.yohobuy.com/home?tmp='+Math.random()+'">'+n[0]+'</a><a href="http://m.yohobuy.com/passport/signout/index">退出</a>'),t.length>0&&(o=new m(t[0]),o.on("tap",function(o){return f(window).scrollTop(0),o.srcEvent.preventDefault(),!1})),p.removeClass("hide")}(),function(o,e,t,n,i){var a=e.createElement(t),s=e.getElementsByTagName(t)[0];o.YohoAcquisitionObject=i,o[i]=function(){o[i].p=arguments},a.async=1,a.src=n,s.parentNode.insertBefore(a,s)}(window,document,"script",("https:"===document.location.protocol?"https":"http")+"://cdn.yoho.cn/yas-jssdk/1.0.17/yas.js","_yas"),function(){var o=d();o=0===o?"":o,window._ozuid=o,window._yas&&window._yas(1*new Date,"1.0.17","yohobuy_m",o,"","")}(),v.on("touchstart","a",function(){v.find("a").removeClass("highlight"),f(this).addClass("highlight")}).on("touchend touchcancel","a",function(){f(this).removeClass("highlight")}),g.on("touchstart",".tap-hightlight",function(){f(this).siblings(".tap-hightlight").removeClass("highlight"),f(this).addClass("highlight")}).on("touchend touchcancel",".tap-hightlight",function(){f(this).removeClass("highlight")}),f(".nav-home").on("touchstart",function(){f(".homebuttom").toggleClass("hide")}),function(){var o,e,t=0,n="webkit moz ms o".split(" "),i=window.requestAnimationFrame,a=window.cancelAnimationFrame;for(e=0;e<n.length&&(!i||!a);e++)o=n[e],i=i||window[o+"RequestAnimationFrame"],a=a||window[o+"CancelAnimationFrame"]||window[o+"CancelRequestAnimationFrame"];i&&a||(i=function(o){var e=(new Date).getTime(),n=Math.max(0,16-(e-t)),i=window.setTimeout(function(){o(e+n)},n);return t=e+n,i},a=function(o){window.clearTimeout(o)}),window.requestAnimationFrame=i,window.cancelAnimationFrame=a}(),f.extend({queryString:u}),11===p.find(".user-name").text().length&&p.find(".user-name").html(h(p.find(".user-name").text())),window.cookie=n,window.setCookie=i,window.isCookiesEnabled=a,window.getUser=s,window.getUid=d,window.getShoppingKey=r,window.rePosFooter=c,window.reMarginFooter=l,window.queryString=u()},6:function(o,e,t){function n(o){var e='<div class="loading-mask hide"><div class="loading"><div></div><div></div><div></div></div></div>';c=!0,o||(o=r),o.append(e),s=o.children(".loading-mask"),d("body").on("touchstart touchmove touchend",".loading-mask",function(){return!1})}function i(){c||(n(),c=!0),s.removeClass("hide")}function a(){s.addClass("hide")}var s,d=t(1),r=d(".yoho-page"),c=!1;e.init=n,e.showLoadingMask=i,e.hideLoadingMask=a,e.show=i,e.hide=a},21:function(o,e,t){var n=t(1),i=t(19),a=t(4);e.showDialog=function(o,e,t,s){function d(){var o,e=null;return null===e&&(e='<div id="dialog-wrapper" class="dialog-wrapper"><div class="dialog-box">{{# hasHeader}}{{/ hasHeader}}<div class="dialog-content">{{dialogText}}</div>{{# hasFooter}}<div class="dialog-footer">{{# leftBtnText}}<span class="dialog-left-btn tap-hightlight">{{.}}</span>{{/ leftBtnText}}{{# rightBtnText}}<span class="dialog-right-btn tap-hightlight">{{.}}</span>{{/ rightBtnText}}</div>{{/ hasFooter}}</div></div>',o=i.compile(e)),o}var r,c,l,u,h;r=d()(o),n(".dialog-wrapper").remove(),n("body").append(n(r)),c=n(".dialog-box"),u=n(".dialog-wrapper"),h=new a(document.getElementById("dialog-wrapper")),o.fast?u.css({display:"block"}):u.fadeIn(),s&&(n(".dialog-wrapper .dialog-footer > span").css("width","100%"),n(".dialog-wrapper .dialog-content").css({"padding-left":"1.85rem","padding-right":"1.85rem"}),u.css("z-index","10")),c.css({top:"50%",marginTop:-(c.height()/2)}),o.autoHide&&(l=1e3,o.autoHide>1&&(l=o.autoHide),setTimeout(function(){u.fadeOut()},l)),u.on("touchmove",function(){return!1}),h.on("tap",function(o){if(n(o.target).hasClass("dialog-left-btn"))"function"==typeof t&&t(),u.fadeOut();else if(n(o.target).hasClass("dialog-right-btn"))return e();o.preventDefault(),o.srcEvent.stopPropagation()})},e.hideDialog=function(){n(".dialog-wrapper").remove()}},25:function(o,e,t){function n(){var o=U(".chose-panel").find(".num .btn>.iconfont");o.hasClass("disabled")?null:o.addClass("disabled"),G.off("touchstart",".btn-minus"),G.off("touchstart",".btn-plus")}function i(){x=!1,T=!1,q=null,_=U.queryString(),v=U(".chose-panel").find(".thumb"),M=U(".chose-panel .main .chose-items"),S=U(".chose-items"),I=U(".size-list ul"),P=U(".color-list ul"),w=U("#left-num"),B=U(".cart-bar"),C=0,k=0,F=0}function a(o,e){U("#chose-btn-sure").html("确认"),F=1,z=o,L=e}function s(o,e){n(),U("#chose-btn-sure").html("立即购买"),j=o,A=e}function d(){var o=U(".chose-panel"),e=U("#promotionId");o&&o.remove(),e&&e.remove()}function r(){return x||T?x?T?!0:(O.show("请选择尺码~"),!1):(O.show("请选择颜色~"),!1):(O.show("请选择颜色和尺码~"),!1)}function c(o,e){o&&(R.html(o),""!==U("#promotionId").val()&&n(),i()),U(".chose-panel").show(),p=U("#good-num"),D=e,N.disableScroll(M)}function l(){U(".chose-panel").hide(),N.enableScroll(M),B.length>0&&B.show()}function u(){g=S.find(".chosed"),2===g.closest(".zero-stock").length?U("#chose-btn-sure").css("background-color","#c0c0c0").html("已售罄"):j?U("#chose-btn-sure").css("background-color","#eb0313").html("立即购买"):U("#chose-btn-sure").css("background-color","#eb0313").html(F?"确认":"加入购物车")}function h(o){o>0?(V.length>0?S.find(".num .left-num").html("即将售罄"):S.find(".num .left-num").html("剩余"+o+"件"),w.val(o)):(S.find(".num .left-num").html(""),w.val(0))}function f(o){var e,t;if(C&&q&&q.length>0){for(q.removeClass("chosed"),e=I.eq(o).children(),t=0;t<e.length;t++)if(U(e[t]).data("id")===q.data("id"))return q=U(e[t]),_="#"+q.data("id"),C=U(_).data("index"),q.addClass("chosed"),q.data("num");return q=null,T=!1,P.eq(C).addClass("hide"),P.eq(0).removeClass("hide"),C=0,-1}return 0}function m(o){return k&&E&&E.length>0?(E.removeClass("chosed"),E=U(P.eq(o).children().get(k-1)),E.addClass("chosed"),E.data("num")):0}var p,g,v,w,b,y,C,k,x,T,q,I,E,P,D,S,_,M,B,F,L,z,j,A,U=t(1),O=t(2),H=t(6),N=t(43),R=U("#chose-panel"),V=U(".soonSoldOut-tag"),G=U(".yoho-page");i(),G.on("touchstart",".chose-panel",function(o){var e=U(o.target);if(!(e.closest(".main").length>0))return l(),!1}),G.on("touchstart",".color-list .block",function(){var o,e=U(this),t=e.index();e.hasClass("chosed")?(S.find(".num .left-num").html(""),w.val(0),x=!1,I.eq(k).addClass("hide"),I.eq(0).removeClass("hide"),k=0,f(0)):(x=!0,I.eq(k).addClass("hide"),o=f(t+1),h(o),I.eq(t+1).removeClass("hide"),k=t+1,E=e,v.addClass("hide").eq(t).removeClass("hide")),e.siblings(".chosed").removeClass("chosed"),-1===o?(E=U(P.eq(0).children().get(t)),E.addClass("chosed")):e.toggleClass("chosed"),U("#good-num").val(1),u()}).on("touchstart",".size-list .block",function(){var o,e,t=U(this);t.hasClass("chosed")?(S.find(".num .left-num").html(""),w.val(0),T=!1,P.eq(C).addClass("hide"),P.eq(0).removeClass("hide"),C=0,m(0)):(T=!0,o=U("#"+t.data("id")).data("index")-1,P.eq(C).addClass("hide"),e=m(o+1),h(e),P.eq(o+1).removeClass("hide"),C=o+1,q=t),t.siblings(".chosed").removeClass("chosed"),t.toggleClass("chosed"),U("#good-num").val(1),u()}),G.on("touchstart",".btn-minus",function(){var o=parseInt(p.val(),10);return b=U("#left-num").val(),r()?1===o||b-0===0?void O.show("您选择的数量不能为零~"):0>o?void O.show("您选择的数量不能为负数~"):void p.val(o-1):void 0}).on("touchstart",".btn-plus",function(){var o=parseInt(p.val(),10);return b=U("#left-num").val(),r()&&o-0!==b&&0!==b?o>b-1?void O.show("您选择的数量超过了最大库存量~"):void p.val(o+1):void 0}).on("touchstart","#chose-btn-sure",function(){var o,e,t,n,i=U("#good-num").val()-0,a=parseInt(p.val(),10);if(r()&&"已售罄"!==U("#chose-btn-sure").html()){if(b=U("#left-num").val()-0,a>b)return void O.show("您选择的数量超过了最大库存量~");if(0>a)return void O.show("您选择的数量小于一件~");if(g=U(".block-list>ul>li.chosed"),2===g.length&&0===g.closest(".zero-stock").length){if(o=q.data("skuid"),e=U("#promotionId").val(),y)return!1;if(y=!0,H.showLoadingMask(),F)t={new_product_sku:o,old_product_sku:z,buy_number:i,selected:L},n="/cart/index/modify";else{if(j)return U(this).css("background-color","#ccc").removeAttr("id"),n=U("#limitProductPay").val()+"?limitproductcode="+j+"&sku="+o+"&skn="+A+"&buy_number="+i,d(),H.showLoadingMask(),U.ajax({url:n}).then(function(o){o.error?(O.show(o.message),setTimeout(function(){location.reload()},2e3)):location.href=n}).fail(function(){O.show("网络异常!"),setTimeout(function(){location.reload()},2e3)}),!1;t={productSku:o,buyNumber:i,promotionId:e,isEdit:F,cartType:_.cartType},n="/cart/index/add"}U.ajax({method:"POST",url:n,data:t}).done(function(o){var e;H.hideLoadingMask(),200!==o.code||F||(e=o.data.goods_count,e>99&&(e="99+"),U(".num-tag").html(e).removeClass("hide"),y=!1,D&&D()),o.message&&!F&&O.show(o.message),l(),F&&(H.showLoadingMask(),setTimeout(function(){window.location.href="/cart/index/index?cartType="+U("#cartType").val()},1))}).fail(function(){O.show("网络出了点问题~")}).always(function(){y=!1})}}}),e.init=i,e.show=c,e.remove=d,e.setEditModeWithSknId=a,e.disableNumEdit=n,e.setLimitGoodModeWithSknId=s},43:function(o,e,t){function n(o){o=o||window.event,o.preventDefault&&o.preventDefault(),o.returnValue=!1}function i(o){o=o||window.event,o.stopPropagation&&o.stopPropagation(),o.cancelBubble=!1}function a(o){var e=o.wheelDelta||o.originalEvent.wheelDelta||o.detail||0,t=r(this).get(0);return i(o),r(t).height()+t.scrollTop>=t.scrollHeight&&0>e?(n(o),!1):0===t.scrollTop&&e>0?(n(o),!1):void 0}function s(o){var e,t;o.on("mousewheel",a),o.on("touchstart",function(o){e=o.originalEvent.changedTouches[0].pageX,t=o.originalEvent.changedTouches[0].pageY}),o.on("touchmove",function(o){var n=o.originalEvent.changedTouches[0].pageX-e,i=o.originalEvent.changedTouches[0].pageY-t,a=r(this).get(0);return o.stopPropagation(),Math.abs(i)<Math.abs(n)?(o.preventDefault(),!1):r(a).height()+a.scrollTop>=a.scrollHeight&&0>i?(o.preventDefault(),!1):0===a.scrollTop&&i>0?(o.preventDefault(),!1):void 0}),r(document).on("mousewheel",n),r(document).on("touchmove",n)}function d(o){o.off("touchstart"),o.off("touchmove"),o.off("mousewheel"),r(document).off("mousewheel",n),r(document).off("touchmove",n)}var r=t(1);e.enableScroll=d,e.disableScroll=s},47:function(o,e,t){var n,i,a=t(1),s=t(2),d=t(4),r=document.getElementById("nav-tab"),c=r&&new d(r),l=document.getElementById("goto-consult"),u=l&&new d(l),h=document.getElementById("readmore"),f=h&&new d(h);!function(){i=a("#nav-tab .consults-num").html()-0,n=a("#nav-tab .comments-num").html()-0,a("#nav-tab li").each(function(){a(this).removeClass("focus")}),a("#feedback-content .content").each(function(){a(this).addClass("hide")}),0!==n?(a("#nav-tab .comment-nav").addClass("focus"),a("#feedback-content .comment-content").removeClass("hide")):0!==i&&(a("#nav-tab .consult-nav").addClass("focus"),a("#feedback-content .consult-content").removeClass("hide")),a(".goods-consults .consult-item:lt(2)").removeClass("hide")}(),c&&c.on("tap",function(o){var e=a(o.target).closest("li"),t=e.index();e.hasClass("comment-nav")&&0===n?s.show("暂无商品评价"):e.hasClass("focus")||(a("#nav-tab li").each(function(){a(this).removeClass("focus")}),a("#feedback-content .content").each(function(){a(this).addClass("hide")}),e.addClass("focus"),a("#feedback-content .content:eq("+t+")").removeClass("hide"))}),u&&u.on("tap",function(){location.href=a(l).find("a").attr("href")}),a(".goods-consults-page").length>0&&a("#yoho-header").css("position","fixed").css("top","0"),a(".goods-consults-page").length>0&&a("#yoho-footer").css("border-top","1px solid #e0e0e0"),f&&f.on("tap",function(){return a(".readmore").hide(),a(".goods-consults").find(".consult-item").removeClass("hide"),!1}),t(50)},48:function(o,e,t){var n,i=t(1),a=t(2),s=t(6),d=i(".consult-form"),r=i("#submit"),c=i("#content"),l=i("#product_id").val();r.on("touchend",function(){return c.blur(),d.submit(),!1}).on("touchstart",function(){i(this).addClass("highlight")}).on("touchend touchcancel",function(){i(this).removeClass("highlight")}),c.on("focus",function(){"请输入咨询内容"===c.val()&&c.val("")}).on("blur",function(){""===c.val()&&c.val("请输入咨询内容")}),d.on("submit",function(){var o;return n?!1:(o=c.val(),o&&"请输入咨询内容"!==o?(n=!0,s.showLoadingMask(),i.ajax({method:"POST",url:"/product/detail/consultsubmit",data:{product_id:l,content:o}}).then(function(o){"object"!==i.type(o)&&(o={}),200!==o.code?(a.show(o.message||"网络出了点问题~"),n=!1,s.hideLoadingMask()):(a.show("提交成功~"),setTimeout(function(){window.history.go(-1)},3e3))}).fail(function(){a.show("网络出了点问题~"),n=!1}),!1):(a.show("咨询内容不能为空"),!1))})},49:function(o,e,t){function n(o){var e,t;o.length>0&&(e=o[0].getBoundingClientRect().right,o.find(".swiper-slide:last-child")[0]&&(t=o.find(".swiper-slide:last-child")[0].getBoundingClientRect().right),0>t-e?o.next(".tips").css("display","none"):o.next(".tips").css("display","block"))}function i(o,e){var t=null;r(o).each(function(n){t=r(o).slice(n,n+e),t.length===e&&n%e===0&&r(t).wrapAll(r('<div class="js-wraper"></div>'))})}function a(){p||g||!f||(p=!0,u.showLoadingMask(),r.ajax({type:"GET",url:f,success:function(o){d=r("#productDesc"),d.append(o),window.rePosFooter(),c(d.find("img.lazy")),new l("#size-swiper-container",{slidesPerView:"auto"}),new l("#reference-swiper-container",{slidesPerView:"auto"}),n(r("#size-swiper-container")),n(r("#reference-swiper-container")),i(".detail .column",2),p=!1,g=!0,u.hideLoadingMask()},error:function(){h.show("网络断开连接了~"),p=!1,u.hideLoadingMask()}}))}function s(){(!g||r(window).scrollTop()+m>=r(document).height()-200)&&a()}var d,r=t(1),c=t(7),l=t(11),u=t(6),h=t(2),f=r("#introUrl").val(),m=r(window).height(),p=!1,g=!1;r(window).scroll(function(){window.requestAnimationFrame(s)})},50:function(o,e,t){function n(o){var e=o.find(".animate-count");e.css("display","inline"),e.animate({opacity:.25,fontSize:"0.7rem",right:"-=5"},300,function(){e.css("display","none")})}var i,a,s=t(1),d=t(4),r=t(2),c=s("#goods-consults")[0],l=c&&new d(c);!function(){var o=window.location.search.substring(1);i=o.split("&")[0].split("=")[1],a=o.split("&")[1]?o.split("&")[1].split("=")[1]:null}(),l&&l.on("tap",function(o){var e,t=s(o.target).closest("li"),d=t.closest(".consult-item").data("id"),c=t.find(".count").html()-0;t.hasClass("highlight")||(t.hasClass("fav")?e="/product/detail/consultupvote":t.hasClass("useful")&&(e="/product/detail/consultuseful"),s.ajax({method:"post",url:e,data:{id:d,productId:i,total:a}}).done(function(o){200===o.code?(n(t),t.addClass("highlight"),t.find(".count").html(c+1)):401===o.code&&(location.href=o.data)}).fail(function(){r.show("网络断开连接了~")}))})},51:function(o,e,t){var n=t(1),i=t(2),a=t(25),s=n("#productId").val(),d=n("#productSkn").val(),r=n("#limitProductCode").val();n("#likeBtn").on("touchstart",function(){var o,e,t=n(this);return t.hasClass("liked")?(o="cancel",e=0):(o="ok",e=1),n.ajax({type:"POST",url:"/product/opt/favoriteProduct",data:{id:s,opt:o},success:function(e){200===e.code?(t.toggleClass("liked"),"cancel"===o?i.show("取消收藏成功"):"ok"===o&&i.show("收藏成功")):400===e.code?location.href=e.data:i.show(e.message)},error:function(){i.show("网络断开连接了~")}}),window._yas&&window._yas.sendCustomInfo({pd:s,fa:e},!0),!1}),n("#addtoCart").on("touchstart",function(){return n(".cart-bar").hide(),r&&a.setLimitGoodModeWithSknId(r,d),a.show(),window._yas&&window._yas.sendCustomInfo({pd:s,by:1},!0),!1})},52:function(o,e,t){function n(){u||l||(u=!0,r&&s.get(r).then(function(o){s(o).find(".swiper-slide").length<5?d.hide():(d.html(o).show(),s("#swiper-recommend").length&&new a("#swiper-recommend",{slidesPerView:"auto",grabCursor:!0,slideElement:"a",lazyLoading:!0,watchSlidesVisibility:!0})),u=!1,l=!0,window.rePosFooter()}).fail(function(){d.hide()}))}function i(){(!l||s(window).scrollTop()+c>=s(document).height()-200)&&n()}var a=t(11),s=t(1),d=s(".recommend-for-you"),r=s("#preferenceUrl").val(),c=s(window).height(),l=!1,u=!1;s(window).scroll(function(){window.requestAnimationFrame(i)})}});
  1 +webpackJsonp([4],{0:function(e,t,n){var i=n(1),o=n(7),a=n(42),s=n(12);s.start(),o(i("img.lazy")),a()},2:function(e,t,n){function i(e,t){var n,i;"undefined"!=typeof e&&(n=e.toString(),i=t&&t>0?t:2e3,o.text(n).show(),a=setTimeout(function(){"block"===o.css("display")&&o.hide()},i))}var o,a,s=n(1);!function(){var e='<div id="yoho-tip" class="yoho-tip"></div>';s(".yoho-page").append(e),o=s("#yoho-tip"),o.on("touchend",function(){o.hide(),clearTimeout(a)})}(),t.show=i},3:function(e,t,n){function i(e){var t,n,i=document.cookie;return document.cookie&&""!==document.cookie&&(n=i.indexOf(e+"="),n>-1&&(n+=e.length+1,t=decodeURIComponent(f.trim(i.substring(n,i.indexOf(";",n)))))),t}function o(e,t,n){var i,o,a,s,r="";"undefined"!=typeof t&&(n=n||{},null===t&&(t="",n.expires=-1),n.expires&&("number"==typeof n.expires||n.expires.toUTCString)&&("number"==typeof n.expires?(s=new Date,s.setTime(s.getTime()+24*n.expires*60*60*1e3)):s=n.expires,r="; expires="+s.toUTCString()),i=n.path?"; path="+n.path:"",o=n.domain?"; domain="+n.domain:"",a=n.secure?"; secure":"",document.cookie=[e,"=",encodeURIComponent(t),r,i,o,a].join(""))}function a(){var e=!!navigator.cookieEnabled;return"undefined"!=typeof navigator.cookieEnabled||e||(document.cookie="testcookie",e=-1!==document.cookie.indexOf("testcookie")),e}function s(){var e,t=i("_UID");return"undefined"==typeof t?0:(e=t.split("::"),"undefined"==typeof e||e.length<4?0:e)}function r(){var e=s();return 0===e?0:e[1]}function d(){var e=i("_g");return"undefined"==typeof e?"":JSON.parse(e).k}function c(){var e;0!==p.length&&(e=Math.min(f(window).height(),window.screen.availHeight),f("body").height()<=e-parseInt(p.css("height"),0)?p.addClass("bottom"):p.removeClass("bottom"))}function l(e){var t=f(e).outerHeight();e&&p.css("margin-bottom",t+"px")}function h(){var e,t,n=[],i=window.location.search.slice(1).split("&");for(t=0;t<i.length;t++)e=i[t].split("="),n.push(e[0]),n[e[0]]=e[1];return n}function u(e){return e.replace(/(\d{3})\d{4}(\d{4})/,"$1****$2")}var f=n(1),g=n(4),p=f("#yoho-footer"),m=f(".yoho-page"),v=f(".yoho-header");!function(){var e,t=p.children(".op-row"),n=f(".back-to-top"),i=s();c(),0===i?t.prepend('<a href="http://m.yohobuy.com/signin.html?refer='+location.href+'">登录</a><span class="sep-line">|</span><a href="http://m.yohobuy.com/reg.html">注册</a>'):t.prepend('<span>Hi,</span><a class="user-name" href="http://m.yohobuy.com/home?tmp='+Math.random()+'">'+i[0]+'</a><a href="http://m.yohobuy.com/passport/signout/index">退出</a>'),n.length>0&&(e=new g(n[0]),e.on("tap",function(e){return f(window).scrollTop(0),e.srcEvent.preventDefault(),!1})),p.removeClass("hide")}(),function(e,t,n,i,o){var a=t.createElement(n),s=t.getElementsByTagName(n)[0];e.YohoAcquisitionObject=o,e[o]=function(){e[o].p=arguments},a.async=1,a.src=i,s.parentNode.insertBefore(a,s)}(window,document,"script",("https:"===document.location.protocol?"https":"http")+"://cdn.yoho.cn/yas-jssdk/1.0.17/yas.js","_yas"),function(){var e=r();e=0===e?"":e,window._ozuid=e,window._yas&&window._yas(1*new Date,"1.0.17","yohobuy_m",e,"","")}(),v.on("touchstart","a",function(){v.find("a").removeClass("highlight"),f(this).addClass("highlight")}).on("touchend touchcancel","a",function(){f(this).removeClass("highlight")}),m.on("touchstart",".tap-hightlight",function(){f(this).siblings(".tap-hightlight").removeClass("highlight"),f(this).addClass("highlight")}).on("touchend touchcancel",".tap-hightlight",function(){f(this).removeClass("highlight")}),f(".nav-home").on("touchstart",function(){f(".homebuttom").toggleClass("hide")}),function(){var e,t,n=0,i="webkit moz ms o".split(" "),o=window.requestAnimationFrame,a=window.cancelAnimationFrame;for(t=0;t<i.length&&(!o||!a);t++)e=i[t],o=o||window[e+"RequestAnimationFrame"],a=a||window[e+"CancelAnimationFrame"]||window[e+"CancelRequestAnimationFrame"];o&&a||(o=function(e){var t=(new Date).getTime(),i=Math.max(0,16-(t-n)),o=window.setTimeout(function(){e(t+i)},i);return n=t+i,o},a=function(e){window.clearTimeout(e)}),window.requestAnimationFrame=o,window.cancelAnimationFrame=a}(),f.extend({queryString:h}),11===p.find(".user-name").text().length&&p.find(".user-name").html(u(p.find(".user-name").text())),window.cookie=i,window.setCookie=o,window.isCookiesEnabled=a,window.getUser=s,window.getUid=r,window.getShoppingKey=d,window.rePosFooter=c,window.reMarginFooter=l,window.queryString=h()},6:function(e,t,n){function i(e){var t='<div class="loading-mask hide"><div class="loading"><div></div><div></div><div></div></div></div>';c=!0,e||(e=d),e.append(t),s=e.children(".loading-mask"),r("body").on("touchstart touchmove touchend",".loading-mask",function(){return!1})}function o(){c||(i(),c=!0),s.removeClass("hide")}function a(){s.addClass("hide")}var s,r=n(1),d=r(".yoho-page"),c=!1;t.init=i,t.showLoadingMask=o,t.hideLoadingMask=a,t.show=o,t.hide=a},9:function(e,t,n){var i=n(1),o={};i(".query-param").each(function(){var e=i(this);o[e.data("attr")]=e.val()}),e.exports=o},10:function(e,t,n){function i(){u.addClass("hide")}function o(){u.removeClass("hide")}function a(){var e=p(".filter-body .classify");e.on("touchstart",".shower",function(){e.removeClass("highlight"),p(this).addClass("highlight")}).on("touchend touchcancel",".shower",function(){p(this).removeClass("highlight")})}function s(){var e=p(".filter-body .sub-item");e.on("touchstart",function(){e.removeClass("highlight"),p(this).addClass("highlight")}).on("touchend touchcancel",function(){p(this).removeClass("highlight")})}function r(e){e.hasClass("active")||(e.siblings(".active").removeClass("active"),e.addClass("active"))}function d(e){var t,n,i=e.closest(".sub-classify"),o=i.siblings(".shower");return e.hasClass("chosed")?i:(i.children(".chosed").removeClass("chosed"),e.addClass("chosed"),t=p.trim(e.html()),n=p.trim(o.html()),o.html(n.substring(0,n.indexOf("</span>")+7)+t.substring(0,t.indexOf("<i"))),0===e.index()?o.addClass("default"):o.removeClass("default"),i)}function c(e){var t,n=e.data("id");t=d(e),f&&f({type:t.data("type"),id:n}),g&&g(),i()}function l(e){var t;f=e.fCbFn,g=e.hCbFn,window.missStatus=e.missStatus,a(),s(),u=p(".filter-mask"),u[0]&&(t=new m(u[0]),t.on("tap",function(e){var t,n=p(e.target);e.preventDefault(),n.closest(".filter-body").length>0?(t=n.closest(".sub-item"),t.length>0?(t=n.closest("li"),c(t)):(t=n.closest(".classify-item"),e.srcEvent.stopPropagation(),r(t))):(i(),g&&g())}))}function h(){"undefined"!=typeof u&&(p(".sub-classify").each(function(){d(p(this).children(":first-child"))}),r(p(".classify > :first-child")))}var u,f,g,p=n(1),m=n(4);t.initFilter=l,t.showFilter=o,t.hideFilter=i,t.resetFilter=h},12:function(e,t,n){function i(e){var t=new RegExp("(^|&)"+e+"=([^&]*)(&|$)"),n=window.location.search.substr(1).match(t);return null!==n?n[2]:null}function o(e){var t="category";return e.hasClass("new")?t="newest":e.hasClass("price")?t="price":e.hasClass("discount")?t="discount":e.hasClass("sale")?t="sale":e.hasClass("all")?t="all":e.hasClass("category")&&(t="category"),t}function a(e,t,n){var i,a,s,r,h,g={};if(!c){if(e&&!n){for(a in _)_.hasOwnProperty(a)&&(_[a].reload=!0);switch(S.children(".active").removeClass("active"),E.addClass("active"),e.type){case"gender":i={gender:e.id};break;case"ageLevel":i={age_level:e.id};break;case"brand":i={brand:e.id};break;case"sort":i={sort:e.id};break;case"color":i={color:e.id};break;case"size":i={size:e.id};break;case"price":i={price:e.id};break;case"discount":i={discount:e.id};break;case"p_d":i={p_d:e.id}}l.extend(M,i)}if(l.extend(t||{},M),r=o(E),s=_[r||"all"],h=s.page+1,s.reload)h=1;else if(s.end)return;t?(d=t,l.extend(g,t,{type:r,order:s.order,page:h})):(d=null,l.extend(g,M,{type:r,order:s.order,page:h})),c=!0,p.showLoadingMask(),l.ajax({type:"GET",url:"/product/sale/search",data:g,success:function(e){var t,n;switch(r){case"newest":t=v;break;case"price":t=y;break;case"discount":t=w;break;case"sale":t=k;break;case"all":t=C;break;case"categroy":t=b;break;default:t=C}t.hasClass("hide")&&(t.siblings().addClass("hide"),t.removeClass("hide")),""===e?(s.end=!0,s.reload&&t.html(T)):("category"===r&&(s.page=1),s.reload?(t.html(e),u(t.find(".lazy"))):(n=t.find(".good-info").length,t.append(e),u(t.find(".good-info:gt("+(n-1)+") .lazy")))),s.reload=!1,s.page=h,c=!1,p.hideLoadingMask(),window.rePosFooter(),l(".good-detail-text .name").each(function(){var e=l(this),t=e.find("a");t[0].mlellipsis(2)})},error:function(){f.show("网络断开连接了~"),c=!1,p.hideLoadingMask()}})}}function s(){l.ajax({type:"GET",url:"/product/sale/filter",data:M,success:function(e){m.append(e),g.initFilter({fCbFn:a,hCbFn:function(){E.addClass("active"),E.siblings(".filter").removeClass("active")},missStatus:!0})}})}function r(){var e=l(window).scrollTop();e>F&&e+x>l(document).height()-.25*m.height()-50&&"undefined"!=typeof E&&(d?a({type:"category"},d,!0):a()),F=e}var d,c,l=n(1),h=n(8),u=n(7),f=n(2),g=n(10),p=n(6),m=l("#goods-container"),v=m.find(".new-goods"),w=m.find(".discount-goods"),y=m.find(".price-goods"),C=m.find(".all-goods"),b=m.find(".category-goods"),k=m.find(".sale-goods"),x=l(window).height(),T='<p class="no-result">未找到相关搜索结果</p>',F=0,M=n(9),S=l("#list-nav"),_={all:{order:0,reload:!0,page:0,end:!1},newest:{order:0,reload:!0,page:0,end:!1},price:{order:1,reload:!0,page:0,end:!1},discount:{order:1,reload:!0,page:0,end:!1},sale:{order:0,reload:!0,page:0,end:!1},category:{order:0,reload:!0,page:0,end:!1}},E=S.find(".active");n(3),h.init(),u(l("img.lazy")),l(".sale-vip-page").length>0?M.saleType=2:l(".discount-detail-page").length>0&&(M.saleType=3,M.productPool=l(".discount-detail-page").data("product-pool")||""),l.extend(M,{yh_channel:i("channel")||"all"}),0===l(".outlet-index-page").length&&s(),u(l(".lazy")),S.bind("contextmenu",function(){return!1}),S.on("touchend touchcancel",function(e){var t,n,i,s=l(e.target).closest("li");if(e.preventDefault(),"undefined"!=typeof s&&0!==s.length){if(s.hasClass("filter"))s.hasClass("active")?(g.hideFilter(),E.addClass("active"),s.removeClass("active")):(E=s.siblings(".active"),E.removeClass("active"),s.addClass("active"),g.showFilter());else{if(n=o(s),t=_[n],s.hasClass("active")){if(s.hasClass("new")||s.hasClass("sale")||s.hasClass("all"))return;(s.hasClass("price")||s.hasClass("discount"))&&(s.find(".icon > .iconfont").toggleClass("cur"),E=s,t.reload=!0,t.order=0===t.order?1:0)}else{if(i=s.siblings(".active"),E=s,i.hasClass("filter"))g.hideFilter();else switch(m.children(".container:not(.hide)").addClass("hide"),n){case"newest":v.removeClass("hide");break;case"price":y.removeClass("hide");break;case"discount":w.removeClass("hide");break;case"sale":k.removeClass("hide");break;case"all":C.removeClass("hide")}i.removeClass("active"),s.addClass("active")}t.reload&&a()}e.stopPropagation()}}),l(window).scroll(function(){0===l(".outlet-index-page").length&&window.requestAnimationFrame(r)}),S.on("touchstart","li",function(){l(this).addClass("bytouch")}).on("touchend touchcancel",function(){S.find("li").removeClass("bytouch")}),e.exports={start:a}},42:function(e,t,n){function i(e){var t="",n=0,i=0,o=0,s=0;e.timeDom.each(function(r,d){t="",e.endTime[r]=e.endTime[r]-e.aSecond,e.endTime[r]>e.aSecond?(n=Math.floor(e.endTime[r]/e.anHour/24),i=Math.floor(e.endTime[r]/e.anHour%24),o=Math.floor(e.endTime[r]/e.aMinute%60),s=Math.floor(e.endTime[r]/e.aSecond%60),t+=n>0?n+"天":"",t+=i>0?i+"小时":"",t+=o+"分钟",t+=s>0?s+"秒":"",""!==t.length&&(t="剩"+t),a(d).find("span").html(t),a(d).fadeIn()):a(d).hide()})}function o(e){a.extend(d,e||{}),setInterval(function(){i(d)},1e3)}var a=n(1),s=a(".activity-time"),r=s?s.data("time-s"):"",d={anHour:3600,aMinute:60,aSecond:1,timeDom:s,endTime:[r]};e.exports=o}});
  1 +webpackJsonp([31],[function(e,n,o){var t=o(1),i=o(7);o(3),i(t("img.lazy"))},,,function(e,n,o){function t(e){var n,o,t=document.cookie;return document.cookie&&""!==document.cookie&&(o=t.indexOf(e+"="),o>-1&&(o+=e.length+1,n=decodeURIComponent(p.trim(t.substring(o,t.indexOf(";",o)))))),n}function i(e,n,o){var t,i,a,r,s="";"undefined"!=typeof n&&(o=o||{},null===n&&(n="",o.expires=-1),o.expires&&("number"==typeof o.expires||o.expires.toUTCString)&&("number"==typeof o.expires?(r=new Date,r.setTime(r.getTime()+24*o.expires*60*60*1e3)):r=o.expires,s="; expires="+r.toUTCString()),t=o.path?"; path="+o.path:"",i=o.domain?"; domain="+o.domain:"",a=o.secure?"; secure":"",document.cookie=[e,"=",encodeURIComponent(n),s,t,i,a].join(""))}function a(){var e=!!navigator.cookieEnabled;return"undefined"!=typeof navigator.cookieEnabled||e||(document.cookie="testcookie",e=-1!==document.cookie.indexOf("testcookie")),e}function r(){var e,n=t("_UID");return"undefined"==typeof n?0:(e=n.split("::"),"undefined"==typeof e||e.length<4?0:e)}function s(){var e=r();return 0===e?0:e[1]}function c(){var e=t("_g");return"undefined"==typeof e?"":JSON.parse(e).k}function h(){var e;0!==w.length&&(e=Math.min(p(window).height(),window.screen.availHeight),p("body").height()<=e-parseInt(w.css("height"),0)?w.addClass("bottom"):w.removeClass("bottom"))}function d(e){var n=p(e).outerHeight();e&&w.css("margin-bottom",n+"px")}function u(){var e,n,o=[],t=window.location.search.slice(1).split("&");for(n=0;n<t.length;n++)e=t[n].split("="),o.push(e[0]),o[e[0]]=e[1];return o}function m(e){return e.replace(/(\d{3})\d{4}(\d{4})/,"$1****$2")}var p=o(1),l=o(4),w=p("#yoho-footer"),f=p(".yoho-page"),g=p(".yoho-header");!function(){var e,n=w.children(".op-row"),o=p(".back-to-top"),t=r();h(),0===t?n.prepend('<a href="http://m.yohobuy.com/signin.html?refer='+location.href+'">登录</a><span class="sep-line">|</span><a href="http://m.yohobuy.com/reg.html">注册</a>'):n.prepend('<span>Hi,</span><a class="user-name" href="http://m.yohobuy.com/home?tmp='+Math.random()+'">'+t[0]+'</a><a href="http://m.yohobuy.com/passport/signout/index">退出</a>'),o.length>0&&(e=new l(o[0]),e.on("tap",function(e){return p(window).scrollTop(0),e.srcEvent.preventDefault(),!1})),w.removeClass("hide")}(),function(e,n,o,t,i){var a=n.createElement(o),r=n.getElementsByTagName(o)[0];e.YohoAcquisitionObject=i,e[i]=function(){e[i].p=arguments},a.async=1,a.src=t,r.parentNode.insertBefore(a,r)}(window,document,"script",("https:"===document.location.protocol?"https":"http")+"://cdn.yoho.cn/yas-jssdk/1.0.17/yas.js","_yas"),function(){var e=s();e=0===e?"":e,window._ozuid=e,window._yas&&window._yas(1*new Date,"1.0.17","yohobuy_m",e,"","")}(),g.on("touchstart","a",function(){g.find("a").removeClass("highlight"),p(this).addClass("highlight")}).on("touchend touchcancel","a",function(){p(this).removeClass("highlight")}),f.on("touchstart",".tap-hightlight",function(){p(this).siblings(".tap-hightlight").removeClass("highlight"),p(this).addClass("highlight")}).on("touchend touchcancel",".tap-hightlight",function(){p(this).removeClass("highlight")}),p(".nav-home").on("touchstart",function(){p(".homebuttom").toggleClass("hide")}),function(){var e,n,o=0,t="webkit moz ms o".split(" "),i=window.requestAnimationFrame,a=window.cancelAnimationFrame;for(n=0;n<t.length&&(!i||!a);n++)e=t[n],i=i||window[e+"RequestAnimationFrame"],a=a||window[e+"CancelAnimationFrame"]||window[e+"CancelRequestAnimationFrame"];i&&a||(i=function(e){var n=(new Date).getTime(),t=Math.max(0,16-(n-o)),i=window.setTimeout(function(){e(n+t)},t);return o=n+t,i},a=function(e){window.clearTimeout(e)}),window.requestAnimationFrame=i,window.cancelAnimationFrame=a}(),p.extend({queryString:u}),11===w.find(".user-name").text().length&&w.find(".user-name").html(m(w.find(".user-name").text())),window.cookie=t,window.setCookie=i,window.isCookiesEnabled=a,window.getUser=r,window.getUid=s,window.getShoppingKey=c,window.rePosFooter=h,window.reMarginFooter=d,window.queryString=u()}]);
  1 +webpackJsonp([20],{0:function(t,n,e){(function(t){var n=e(15),i=e(14),a=t(".cd-lite");n({el:"#index_nav"})["goto"](t("#index_nav").find(".active").index()),new i.Countdown({el:a})}).call(n,e(1))},2:function(t,n,e){function i(t,n){var e,i;"undefined"!=typeof t&&(e=t.toString(),i=n&&n>0?n:2e3,a.text(e).show(),o=setTimeout(function(){"block"===a.css("display")&&a.hide()},i))}var a,o,l=e(1);!function(){var t='<div id="yoho-tip" class="yoho-tip"></div>';l(".yoho-page").append(t),a=l("#yoho-tip"),a.on("touchend",function(){a.hide(),clearTimeout(o)})}(),n.show=i},14:function(t,n,e){"use strict";function i(t){var n;return this instanceof i?(t.el=a(t.el),void(t.el&&(n=t.el.attr("data-config"),n&&(n=JSON.parse(n.replace(/'/g,'"')),t=a.extend(!0,{},r,n,t)),this.config=t,this._init()))):new i(t)}var a=e(1),o=e(2),l="afterPaint",r={el:{},stopPoint:0,leftTime:0,template:"",varRegular:/\$\{([\-\w]+)\}/g,clock:["d",100,2,"h",24,2,"m",60,2,"s",60,2,"u",10,1],effect:"normal"},f={normal:{paint:function(){var t,n=this;a.each(n.hands,function(e,i){i.lastValue!==i.value&&(t="",a.each(n._toDigitals(i.value,i.bits),function(e,i){t+=n._html(i,"","digital")}),i.node.html(t))})}}},c=function(){function t(){for(var n,a,o,l,r=+new Date-t.nextTime,f=1+Math.floor(r/100);i.length;)i.shift()();for(r=100-r%100,t.nextTime+=100*f,o=0,l=e.length;l>o;o+=2)n=e[o+1],0===n?e[o](f):(n+=2*f-1,a=Math.floor(n/20),a>0&&e[o](a),e[o+1]=n%20+1);setTimeout(t,r)}function n(t,n){var e,i;for(e=0,i=n.length;i>e;++e)if(n[e]===t)return e;return-1}var e=[],i=[];return t.nextTime=+new Date,t(),{add:function(t,n){i.push(function(){e.push(t),e.push(1e3===n?1:0)})},remove:function(t){var a;i.push(function(){a=n(t,e),-1!==a&&e.splice(n(t,e),2)})}}}();a.extend(i.prototype,{_init:function(){var t,n,e=this,i=e.config.el,o=[],l=i.html(),r=e.config.varRegular;e.hands=o,e.frequency=1e3,e._notify=[],r.lastIndex=0,i.html(l.replace(r,function(t,n){var i="";return"u"!==n&&"s-ext"!==n||(e.frequency=100),"s-ext"===n?(o.push({type:"s"}),o.push({type:"u"}),i=e._html("","s","handlet")+e._html(".","","digital")+e._html("","u","handlet")):o.push({type:n}),e._html(i,n,"hand")})),t=e.config.clock,a.each(o,function(n,e){var a,o=e.type,l=100;for(e.node=i.find(".hand-"+o),a=t.length-3;a>-1&&o!==t[a];a-=3)l*=t[a+1];e.base=l,e.radix=t[a+1],e.bits=t[a+2]}),e._getLeft(),e._reflow(),n=e._reflow,e._reflow=function(){return n.apply(e,arguments)},c.add(e._reflow,e.frequency),i.show()},_getLeft:function(){var t=1e3*this.config.leftTime,n=this.config.stopPoint;!t&&n&&(t=n-+new Date),this.left=t-t%this.frequency},_reflow:function(t){var n=this,e=n.config.el;return t=t||0,n.left=n.left-n.frequency*t,a.each(n.hands,function(t,e){e.lastValue=e.value,e.value=Math.floor(n.left/e.base)%e.radix}),n._repaint(),n._notify[n.left]&&a.each(n._notify[n.left],function(t,e){e.call(n)}),n.left<1&&(e.text("— 活动已结束 —"),e.parents(".back-ground-white").on("click",function(){return o.show("活动即将开始,敬请期待!"),!1}),c.remove(n._reflow)),n.left<864e5&&e.find(".left-day").hide(),n},_repaint:function(){f[this.config.effect].paint.apply(this),this.config.el.trigger(l)},_toDigitals:function(t,n){var e=[];for(t=0>t?0:t,n=t.toString().length>1?2:1;n--;)e[n]=t%10,t=Math.floor(t/10);return e},_html:function(t,n,e){switch(a.isArray(t)&&(t=t.join("")),e){case"hand":n=e+" hand-"+n;break;case"handlet":n=e+" hand-"+n;break;case"digital":n="."===t?e+" "+e+"-point "+n:e+" "+e+"-"+t+" "+n}return'<i class="'+n+'">'+t+"</i>"},notify:function(t,n){var e;return t=1e3*t,t-=t%this.frequency,e=this._notify[t]||[],e.push(n),this._notify[t]=e,this}}),n.Countdown=i},15:function(t,n,e){function i(t){function n(t){var n;n=e.find("li").eq(t),n.length>0&&setTimeout(function(){i.scrollToElement(n[0],400)},1)}var e,i,a,o={el:".outlet-nav"};return a=r.extend({},o,t),e=r(a.el),i=new f(e[0],{scrollX:!0,scrollY:!1,tap:!0,eventPassthrough:!0,preventDefault:!0}),{"goto":n}}function a(t){var n=new RegExp("(^|&)"+t+"=([^&]*)(&|$)"),e=window.location.search.substr(1).match(n);return null!==e?decodeURIComponent(e[2]):null}function o(){r("#index_nav").find("li").each(function(){r(this).find("a").text()===s?r(this).attr({"data-nav":"other","data-type":3}):r(this).find("a").text()===c&&r(this).attr({"data-nav":"other","data-type":2})})}function l(){var t=r("#index_nav"),n=a("yh_channel");o(),null===n?(n=a("type"),null===n?t.find('li:not([data-nav="other"])').eq(0).addClass("active").siblings().removeClass("active"):t.find("li[data-type="+n+"]").addClass("active").siblings().removeClass("active")):t.find('li:not([data-nav="other"])').eq(n).addClass("active").siblings().removeClass("active")}var r=e(1),f=e(16),c="即将结束",s="上线预告";l(),t.exports=i}});
  1 +webpackJsonp([3],[function(e,t,n){var i=n(1),o=n(14),a=n(12),s=i(".cd-lite");a.start(),new o.Countdown({el:s}),i(".back-ground-white").css("padding","0")},,function(e,t,n){function i(e,t){var n,i;"undefined"!=typeof e&&(n=e.toString(),i=t&&t>0?t:2e3,o.text(n).show(),a=setTimeout(function(){"block"===o.css("display")&&o.hide()},i))}var o,a,s=n(1);!function(){var e='<div id="yoho-tip" class="yoho-tip"></div>';s(".yoho-page").append(e),o=s("#yoho-tip"),o.on("touchend",function(){o.hide(),clearTimeout(a)})}(),t.show=i},function(e,t,n){function i(e){var t,n,i=document.cookie;return document.cookie&&""!==document.cookie&&(n=i.indexOf(e+"="),n>-1&&(n+=e.length+1,t=decodeURIComponent(f.trim(i.substring(n,i.indexOf(";",n)))))),t}function o(e,t,n){var i,o,a,s,r="";"undefined"!=typeof t&&(n=n||{},null===t&&(t="",n.expires=-1),n.expires&&("number"==typeof n.expires||n.expires.toUTCString)&&("number"==typeof n.expires?(s=new Date,s.setTime(s.getTime()+24*n.expires*60*60*1e3)):s=n.expires,r="; expires="+s.toUTCString()),i=n.path?"; path="+n.path:"",o=n.domain?"; domain="+n.domain:"",a=n.secure?"; secure":"",document.cookie=[e,"=",encodeURIComponent(t),r,i,o,a].join(""))}function a(){var e=!!navigator.cookieEnabled;return"undefined"!=typeof navigator.cookieEnabled||e||(document.cookie="testcookie",e=-1!==document.cookie.indexOf("testcookie")),e}function s(){var e,t=i("_UID");return"undefined"==typeof t?0:(e=t.split("::"),"undefined"==typeof e||e.length<4?0:e)}function r(){var e=s();return 0===e?0:e[1]}function l(){var e=i("_g");return"undefined"==typeof e?"":JSON.parse(e).k}function c(){var e;0!==p.length&&(e=Math.min(f(window).height(),window.screen.availHeight),f("body").height()<=e-parseInt(p.css("height"),0)?p.addClass("bottom"):p.removeClass("bottom"))}function d(e){var t=f(e).outerHeight();e&&p.css("margin-bottom",t+"px")}function h(){var e,t,n=[],i=window.location.search.slice(1).split("&");for(t=0;t<i.length;t++)e=i[t].split("="),n.push(e[0]),n[e[0]]=e[1];return n}function u(e){return e.replace(/(\d{3})\d{4}(\d{4})/,"$1****$2")}var f=n(1),g=n(4),p=f("#yoho-footer"),m=f(".yoho-page"),v=f(".yoho-header");!function(){var e,t=p.children(".op-row"),n=f(".back-to-top"),i=s();c(),0===i?t.prepend('<a href="http://m.yohobuy.com/signin.html?refer='+location.href+'">登录</a><span class="sep-line">|</span><a href="http://m.yohobuy.com/reg.html">注册</a>'):t.prepend('<span>Hi,</span><a class="user-name" href="http://m.yohobuy.com/home?tmp='+Math.random()+'">'+i[0]+'</a><a href="http://m.yohobuy.com/passport/signout/index">退出</a>'),n.length>0&&(e=new g(n[0]),e.on("tap",function(e){return f(window).scrollTop(0),e.srcEvent.preventDefault(),!1})),p.removeClass("hide")}(),function(e,t,n,i,o){var a=t.createElement(n),s=t.getElementsByTagName(n)[0];e.YohoAcquisitionObject=o,e[o]=function(){e[o].p=arguments},a.async=1,a.src=i,s.parentNode.insertBefore(a,s)}(window,document,"script",("https:"===document.location.protocol?"https":"http")+"://cdn.yoho.cn/yas-jssdk/1.0.17/yas.js","_yas"),function(){var e=r();e=0===e?"":e,window._ozuid=e,window._yas&&window._yas(1*new Date,"1.0.17","yohobuy_m",e,"","")}(),v.on("touchstart","a",function(){v.find("a").removeClass("highlight"),f(this).addClass("highlight")}).on("touchend touchcancel","a",function(){f(this).removeClass("highlight")}),m.on("touchstart",".tap-hightlight",function(){f(this).siblings(".tap-hightlight").removeClass("highlight"),f(this).addClass("highlight")}).on("touchend touchcancel",".tap-hightlight",function(){f(this).removeClass("highlight")}),f(".nav-home").on("touchstart",function(){f(".homebuttom").toggleClass("hide")}),function(){var e,t,n=0,i="webkit moz ms o".split(" "),o=window.requestAnimationFrame,a=window.cancelAnimationFrame;for(t=0;t<i.length&&(!o||!a);t++)e=i[t],o=o||window[e+"RequestAnimationFrame"],a=a||window[e+"CancelAnimationFrame"]||window[e+"CancelRequestAnimationFrame"];o&&a||(o=function(e){var t=(new Date).getTime(),i=Math.max(0,16-(t-n)),o=window.setTimeout(function(){e(t+i)},i);return n=t+i,o},a=function(e){window.clearTimeout(e)}),window.requestAnimationFrame=o,window.cancelAnimationFrame=a}(),f.extend({queryString:h}),11===p.find(".user-name").text().length&&p.find(".user-name").html(u(p.find(".user-name").text())),window.cookie=i,window.setCookie=o,window.isCookiesEnabled=a,window.getUser=s,window.getUid=r,window.getShoppingKey=l,window.rePosFooter=c,window.reMarginFooter=d,window.queryString=h()},,,function(e,t,n){function i(e){var t='<div class="loading-mask hide"><div class="loading"><div></div><div></div><div></div></div></div>';c=!0,e||(e=l),e.append(t),s=e.children(".loading-mask"),r("body").on("touchstart touchmove touchend",".loading-mask",function(){return!1})}function o(){c||(i(),c=!0),s.removeClass("hide")}function a(){s.addClass("hide")}var s,r=n(1),l=r(".yoho-page"),c=!1;t.init=i,t.showLoadingMask=o,t.hideLoadingMask=a,t.show=o,t.hide=a},,,function(e,t,n){var i=n(1),o={};i(".query-param").each(function(){var e=i(this);o[e.data("attr")]=e.val()}),e.exports=o},function(e,t,n){function i(){u.addClass("hide")}function o(){u.removeClass("hide")}function a(){var e=p(".filter-body .classify");e.on("touchstart",".shower",function(){e.removeClass("highlight"),p(this).addClass("highlight")}).on("touchend touchcancel",".shower",function(){p(this).removeClass("highlight")})}function s(){var e=p(".filter-body .sub-item");e.on("touchstart",function(){e.removeClass("highlight"),p(this).addClass("highlight")}).on("touchend touchcancel",function(){p(this).removeClass("highlight")})}function r(e){e.hasClass("active")||(e.siblings(".active").removeClass("active"),e.addClass("active"))}function l(e){var t,n,i=e.closest(".sub-classify"),o=i.siblings(".shower");return e.hasClass("chosed")?i:(i.children(".chosed").removeClass("chosed"),e.addClass("chosed"),t=p.trim(e.html()),n=p.trim(o.html()),o.html(n.substring(0,n.indexOf("</span>")+7)+t.substring(0,t.indexOf("<i"))),0===e.index()?o.addClass("default"):o.removeClass("default"),i)}function c(e){var t,n=e.data("id");t=l(e),f&&f({type:t.data("type"),id:n}),g&&g(),i()}function d(e){var t;f=e.fCbFn,g=e.hCbFn,window.missStatus=e.missStatus,a(),s(),u=p(".filter-mask"),u[0]&&(t=new m(u[0]),t.on("tap",function(e){var t,n=p(e.target);e.preventDefault(),n.closest(".filter-body").length>0?(t=n.closest(".sub-item"),t.length>0?(t=n.closest("li"),c(t)):(t=n.closest(".classify-item"),e.srcEvent.stopPropagation(),r(t))):(i(),g&&g())}))}function h(){"undefined"!=typeof u&&(p(".sub-classify").each(function(){l(p(this).children(":first-child"))}),r(p(".classify > :first-child")))}var u,f,g,p=n(1),m=n(4);t.initFilter=d,t.showFilter=o,t.hideFilter=i,t.resetFilter=h},,function(e,t,n){function i(e){var t=new RegExp("(^|&)"+e+"=([^&]*)(&|$)"),n=window.location.search.substr(1).match(t);return null!==n?n[2]:null}function o(e){var t="category";return e.hasClass("new")?t="newest":e.hasClass("price")?t="price":e.hasClass("discount")?t="discount":e.hasClass("sale")?t="sale":e.hasClass("all")?t="all":e.hasClass("category")&&(t="category"),t}function a(e,t,n){var i,a,s,r,h,g={};if(!c){if(e&&!n){for(a in M)M.hasOwnProperty(a)&&(M[a].reload=!0);switch(q.children(".active").removeClass("active"),D.addClass("active"),e.type){case"gender":i={gender:e.id};break;case"ageLevel":i={age_level:e.id};break;case"brand":i={brand:e.id};break;case"sort":i={sort:e.id};break;case"color":i={color:e.id};break;case"size":i={size:e.id};break;case"price":i={price:e.id};break;case"discount":i={discount:e.id};break;case"p_d":i={p_d:e.id}}d.extend(T,i)}if(d.extend(t||{},T),r=o(D),s=M[r||"all"],h=s.page+1,s.reload)h=1;else if(s.end)return;t?(l=t,d.extend(g,t,{type:r,order:s.order,page:h})):(l=null,d.extend(g,T,{type:r,order:s.order,page:h})),c=!0,p.showLoadingMask(),d.ajax({type:"GET",url:"/product/sale/search",data:g,success:function(e){var t,n;switch(r){case"newest":t=v;break;case"price":t=y;break;case"discount":t=w;break;case"sale":t=k;break;case"all":t=C;break;case"categroy":t=b;break;default:t=C}t.hasClass("hide")&&(t.siblings().addClass("hide"),t.removeClass("hide")),""===e?(s.end=!0,s.reload&&t.html(_)):("category"===r&&(s.page=1),s.reload?(t.html(e),u(t.find(".lazy"))):(n=t.find(".good-info").length,t.append(e),u(t.find(".good-info:gt("+(n-1)+") .lazy")))),s.reload=!1,s.page=h,c=!1,p.hideLoadingMask(),window.rePosFooter(),d(".good-detail-text .name").each(function(){var e=d(this),t=e.find("a");t[0].mlellipsis(2)})},error:function(){f.show("网络断开连接了~"),c=!1,p.hideLoadingMask()}})}}function s(){d.ajax({type:"GET",url:"/product/sale/filter",data:T,success:function(e){m.append(e),g.initFilter({fCbFn:a,hCbFn:function(){D.addClass("active"),D.siblings(".filter").removeClass("active")},missStatus:!0})}})}function r(){var e=d(window).scrollTop();e>F&&e+x>d(document).height()-.25*m.height()-50&&"undefined"!=typeof D&&(l?a({type:"category"},l,!0):a()),F=e}var l,c,d=n(1),h=n(8),u=n(7),f=n(2),g=n(10),p=n(6),m=d("#goods-container"),v=m.find(".new-goods"),w=m.find(".discount-goods"),y=m.find(".price-goods"),C=m.find(".all-goods"),b=m.find(".category-goods"),k=m.find(".sale-goods"),x=d(window).height(),_='<p class="no-result">未找到相关搜索结果</p>',F=0,T=n(9),q=d("#list-nav"),M={all:{order:0,reload:!0,page:0,end:!1},newest:{order:0,reload:!0,page:0,end:!1},price:{order:1,reload:!0,page:0,end:!1},discount:{order:1,reload:!0,page:0,end:!1},sale:{order:0,reload:!0,page:0,end:!1},category:{order:0,reload:!0,page:0,end:!1}},D=q.find(".active");n(3),h.init(),u(d("img.lazy")),d(".sale-vip-page").length>0?T.saleType=2:d(".discount-detail-page").length>0&&(T.saleType=3,T.productPool=d(".discount-detail-page").data("product-pool")||""),d.extend(T,{yh_channel:i("channel")||"all"}),0===d(".outlet-index-page").length&&s(),u(d(".lazy")),q.bind("contextmenu",function(){return!1}),q.on("touchend touchcancel",function(e){var t,n,i,s=d(e.target).closest("li");if(e.preventDefault(),"undefined"!=typeof s&&0!==s.length){if(s.hasClass("filter"))s.hasClass("active")?(g.hideFilter(),D.addClass("active"),s.removeClass("active")):(D=s.siblings(".active"),D.removeClass("active"),s.addClass("active"),g.showFilter());else{if(n=o(s),t=M[n],s.hasClass("active")){if(s.hasClass("new")||s.hasClass("sale")||s.hasClass("all"))return;(s.hasClass("price")||s.hasClass("discount"))&&(s.find(".icon > .iconfont").toggleClass("cur"),D=s,t.reload=!0,t.order=0===t.order?1:0)}else{if(i=s.siblings(".active"),D=s,i.hasClass("filter"))g.hideFilter();else switch(m.children(".container:not(.hide)").addClass("hide"),n){case"newest":v.removeClass("hide");break;case"price":y.removeClass("hide");break;case"discount":w.removeClass("hide");break;case"sale":k.removeClass("hide");break;case"all":C.removeClass("hide")}i.removeClass("active"),s.addClass("active")}t.reload&&a()}e.stopPropagation()}}),d(window).scroll(function(){0===d(".outlet-index-page").length&&window.requestAnimationFrame(r)}),q.on("touchstart","li",function(){d(this).addClass("bytouch")}).on("touchend touchcancel",function(){q.find("li").removeClass("bytouch")}),e.exports={start:a}},,function(e,t,n){"use strict";function i(e){var t;return this instanceof i?(e.el=o(e.el),void(e.el&&(t=e.el.attr("data-config"),t&&(t=JSON.parse(t.replace(/'/g,'"')),e=o.extend(!0,{},r,t,e)),this.config=e,this._init()))):new i(e)}var o=n(1),a=n(2),s="afterPaint",r={el:{},stopPoint:0,leftTime:0,template:"",varRegular:/\$\{([\-\w]+)\}/g,clock:["d",100,2,"h",24,2,"m",60,2,"s",60,2,"u",10,1],effect:"normal"},l={normal:{paint:function(){var e,t=this;o.each(t.hands,function(n,i){i.lastValue!==i.value&&(e="",o.each(t._toDigitals(i.value,i.bits),function(n,i){e+=t._html(i,"","digital")}),i.node.html(e))})}}},c=function(){function e(){for(var t,o,a,s,r=+new Date-e.nextTime,l=1+Math.floor(r/100);i.length;)i.shift()();for(r=100-r%100,e.nextTime+=100*l,a=0,s=n.length;s>a;a+=2)t=n[a+1],0===t?n[a](l):(t+=2*l-1,o=Math.floor(t/20),o>0&&n[a](o),n[a+1]=t%20+1);setTimeout(e,r)}function t(e,t){var n,i;for(n=0,i=t.length;i>n;++n)if(t[n]===e)return n;return-1}var n=[],i=[];return e.nextTime=+new Date,e(),{add:function(e,t){i.push(function(){n.push(e),n.push(1e3===t?1:0)})},remove:function(e){var o;i.push(function(){o=t(e,n),-1!==o&&n.splice(t(e,n),2)})}}}();o.extend(i.prototype,{_init:function(){var e,t,n=this,i=n.config.el,a=[],s=i.html(),r=n.config.varRegular;n.hands=a,n.frequency=1e3,n._notify=[],r.lastIndex=0,i.html(s.replace(r,function(e,t){var i="";return"u"!==t&&"s-ext"!==t||(n.frequency=100),"s-ext"===t?(a.push({type:"s"}),a.push({type:"u"}),i=n._html("","s","handlet")+n._html(".","","digital")+n._html("","u","handlet")):a.push({type:t}),n._html(i,t,"hand")})),e=n.config.clock,o.each(a,function(t,n){var o,a=n.type,s=100;for(n.node=i.find(".hand-"+a),o=e.length-3;o>-1&&a!==e[o];o-=3)s*=e[o+1];n.base=s,n.radix=e[o+1],n.bits=e[o+2]}),n._getLeft(),n._reflow(),t=n._reflow,n._reflow=function(){return t.apply(n,arguments)},c.add(n._reflow,n.frequency),i.show()},_getLeft:function(){var e=1e3*this.config.leftTime,t=this.config.stopPoint;!e&&t&&(e=t-+new Date),this.left=e-e%this.frequency},_reflow:function(e){var t=this,n=t.config.el;return e=e||0,t.left=t.left-t.frequency*e,o.each(t.hands,function(e,n){n.lastValue=n.value,n.value=Math.floor(t.left/n.base)%n.radix}),t._repaint(),t._notify[t.left]&&o.each(t._notify[t.left],function(e,n){n.call(t)}),t.left<1&&(n.text("— 活动已结束 —"),n.parents(".back-ground-white").on("click",function(){return a.show("活动即将开始,敬请期待!"),!1}),c.remove(t._reflow)),t.left<864e5&&n.find(".left-day").hide(),t},_repaint:function(){l[this.config.effect].paint.apply(this),this.config.el.trigger(s)},_toDigitals:function(e,t){var n=[];for(e=0>e?0:e,t=e.toString().length>1?2:1;t--;)n[t]=e%10,e=Math.floor(e/10);return n},_html:function(e,t,n){switch(o.isArray(e)&&(e=e.join("")),n){case"hand":t=n+" hand-"+t;break;case"handlet":t=n+" hand-"+t;break;case"digital":t="."===e?n+" "+n+"-point "+t:n+" "+n+"-"+e+" "+t}return'<i class="'+t+'">'+e+"</i>"},notify:function(e,t){var n;return e=1e3*e,e-=e%this.frequency,n=this._notify[e]||[],n.push(t),this._notify[e]=n,this}}),t.Countdown=i}]);
  1 +webpackJsonp([8],[function(e,t,n){var o=n(1),i=n(14),a=n(15),r=o(".cd-lite");n(3),n(17),r.length>0&&r.each(function(){new i.Countdown({el:o(this)})}),o("#index_nav").length>0&&a({el:"#index_nav"})["goto"](o("#index_nav").find(".active").index()),o(".back-ground-white").length<1&&o(".empty").show()},,function(e,t,n){function o(e,t){var n,o;"undefined"!=typeof e&&(n=e.toString(),o=t&&t>0?t:2e3,i.text(n).show(),a=setTimeout(function(){"block"===i.css("display")&&i.hide()},o))}var i,a,r=n(1);!function(){var e='<div id="yoho-tip" class="yoho-tip"></div>';r(".yoho-page").append(e),i=r("#yoho-tip"),i.on("touchend",function(){i.hide(),clearTimeout(a)})}(),t.show=o},function(e,t,n){function o(e){var t,n,o=document.cookie;return document.cookie&&""!==document.cookie&&(n=o.indexOf(e+"="),n>-1&&(n+=e.length+1,t=decodeURIComponent(d.trim(o.substring(n,o.indexOf(";",n)))))),t}function i(e,t,n){var o,i,a,r,s="";"undefined"!=typeof t&&(n=n||{},null===t&&(t="",n.expires=-1),n.expires&&("number"==typeof n.expires||n.expires.toUTCString)&&("number"==typeof n.expires?(r=new Date,r.setTime(r.getTime()+24*n.expires*60*60*1e3)):r=n.expires,s="; expires="+r.toUTCString()),o=n.path?"; path="+n.path:"",i=n.domain?"; domain="+n.domain:"",a=n.secure?"; secure":"",document.cookie=[e,"=",encodeURIComponent(t),s,o,i,a].join(""))}function a(){var e=!!navigator.cookieEnabled;return"undefined"!=typeof navigator.cookieEnabled||e||(document.cookie="testcookie",e=-1!==document.cookie.indexOf("testcookie")),e}function r(){var e,t=o("_UID");return"undefined"==typeof t?0:(e=t.split("::"),"undefined"==typeof e||e.length<4?0:e)}function s(){var e=r();return 0===e?0:e[1]}function c(){var e=o("_g");return"undefined"==typeof e?"":JSON.parse(e).k}function h(){var e;0!==m.length&&(e=Math.min(d(window).height(),window.screen.availHeight),d("body").height()<=e-parseInt(m.css("height"),0)?m.addClass("bottom"):m.removeClass("bottom"))}function l(e){var t=d(e).outerHeight();e&&m.css("margin-bottom",t+"px")}function u(){var e,t,n=[],o=window.location.search.slice(1).split("&");for(t=0;t<o.length;t++)e=o[t].split("="),n.push(e[0]),n[e[0]]=e[1];return n}function f(e){return e.replace(/(\d{3})\d{4}(\d{4})/,"$1****$2")}var d=n(1),p=n(4),m=d("#yoho-footer"),g=d(".yoho-page"),v=d(".yoho-header");!function(){var e,t=m.children(".op-row"),n=d(".back-to-top"),o=r();h(),0===o?t.prepend('<a href="http://m.yohobuy.com/signin.html?refer='+location.href+'">登录</a><span class="sep-line">|</span><a href="http://m.yohobuy.com/reg.html">注册</a>'):t.prepend('<span>Hi,</span><a class="user-name" href="http://m.yohobuy.com/home?tmp='+Math.random()+'">'+o[0]+'</a><a href="http://m.yohobuy.com/passport/signout/index">退出</a>'),n.length>0&&(e=new p(n[0]),e.on("tap",function(e){return d(window).scrollTop(0),e.srcEvent.preventDefault(),!1})),m.removeClass("hide")}(),function(e,t,n,o,i){var a=t.createElement(n),r=t.getElementsByTagName(n)[0];e.YohoAcquisitionObject=i,e[i]=function(){e[i].p=arguments},a.async=1,a.src=o,r.parentNode.insertBefore(a,r)}(window,document,"script",("https:"===document.location.protocol?"https":"http")+"://cdn.yoho.cn/yas-jssdk/1.0.17/yas.js","_yas"),function(){var e=s();e=0===e?"":e,window._ozuid=e,window._yas&&window._yas(1*new Date,"1.0.17","yohobuy_m",e,"","")}(),v.on("touchstart","a",function(){v.find("a").removeClass("highlight"),d(this).addClass("highlight")}).on("touchend touchcancel","a",function(){d(this).removeClass("highlight")}),g.on("touchstart",".tap-hightlight",function(){d(this).siblings(".tap-hightlight").removeClass("highlight"),d(this).addClass("highlight")}).on("touchend touchcancel",".tap-hightlight",function(){d(this).removeClass("highlight")}),d(".nav-home").on("touchstart",function(){d(".homebuttom").toggleClass("hide")}),function(){var e,t,n=0,o="webkit moz ms o".split(" "),i=window.requestAnimationFrame,a=window.cancelAnimationFrame;for(t=0;t<o.length&&(!i||!a);t++)e=o[t],i=i||window[e+"RequestAnimationFrame"],a=a||window[e+"CancelAnimationFrame"]||window[e+"CancelRequestAnimationFrame"];i&&a||(i=function(e){var t=(new Date).getTime(),o=Math.max(0,16-(t-n)),i=window.setTimeout(function(){e(t+o)},o);return n=t+o,i},a=function(e){window.clearTimeout(e)}),window.requestAnimationFrame=i,window.cancelAnimationFrame=a}(),d.extend({queryString:u}),11===m.find(".user-name").text().length&&m.find(".user-name").html(f(m.find(".user-name").text())),window.cookie=o,window.setCookie=i,window.isCookiesEnabled=a,window.getUser=r,window.getUid=s,window.getShoppingKey=c,window.rePosFooter=h,window.reMarginFooter=l,window.queryString=u()},,,,,,,,,,,function(e,t,n){"use strict";function o(e){var t;return this instanceof o?(e.el=i(e.el),void(e.el&&(t=e.el.attr("data-config"),t&&(t=JSON.parse(t.replace(/'/g,'"')),e=i.extend(!0,{},s,t,e)),this.config=e,this._init()))):new o(e)}var i=n(1),a=n(2),r="afterPaint",s={el:{},stopPoint:0,leftTime:0,template:"",varRegular:/\$\{([\-\w]+)\}/g,clock:["d",100,2,"h",24,2,"m",60,2,"s",60,2,"u",10,1],effect:"normal"},c={normal:{paint:function(){var e,t=this;i.each(t.hands,function(n,o){o.lastValue!==o.value&&(e="",i.each(t._toDigitals(o.value,o.bits),function(n,o){e+=t._html(o,"","digital")}),o.node.html(e))})}}},h=function(){function e(){for(var t,i,a,r,s=+new Date-e.nextTime,c=1+Math.floor(s/100);o.length;)o.shift()();for(s=100-s%100,e.nextTime+=100*c,a=0,r=n.length;r>a;a+=2)t=n[a+1],0===t?n[a](c):(t+=2*c-1,i=Math.floor(t/20),i>0&&n[a](i),n[a+1]=t%20+1);setTimeout(e,s)}function t(e,t){var n,o;for(n=0,o=t.length;o>n;++n)if(t[n]===e)return n;return-1}var n=[],o=[];return e.nextTime=+new Date,e(),{add:function(e,t){o.push(function(){n.push(e),n.push(1e3===t?1:0)})},remove:function(e){var i;o.push(function(){i=t(e,n),-1!==i&&n.splice(t(e,n),2)})}}}();i.extend(o.prototype,{_init:function(){var e,t,n=this,o=n.config.el,a=[],r=o.html(),s=n.config.varRegular;n.hands=a,n.frequency=1e3,n._notify=[],s.lastIndex=0,o.html(r.replace(s,function(e,t){var o="";return"u"!==t&&"s-ext"!==t||(n.frequency=100),"s-ext"===t?(a.push({type:"s"}),a.push({type:"u"}),o=n._html("","s","handlet")+n._html(".","","digital")+n._html("","u","handlet")):a.push({type:t}),n._html(o,t,"hand")})),e=n.config.clock,i.each(a,function(t,n){var i,a=n.type,r=100;for(n.node=o.find(".hand-"+a),i=e.length-3;i>-1&&a!==e[i];i-=3)r*=e[i+1];n.base=r,n.radix=e[i+1],n.bits=e[i+2]}),n._getLeft(),n._reflow(),t=n._reflow,n._reflow=function(){return t.apply(n,arguments)},h.add(n._reflow,n.frequency),o.show()},_getLeft:function(){var e=1e3*this.config.leftTime,t=this.config.stopPoint;!e&&t&&(e=t-+new Date),this.left=e-e%this.frequency},_reflow:function(e){var t=this,n=t.config.el;return e=e||0,t.left=t.left-t.frequency*e,i.each(t.hands,function(e,n){n.lastValue=n.value,n.value=Math.floor(t.left/n.base)%n.radix}),t._repaint(),t._notify[t.left]&&i.each(t._notify[t.left],function(e,n){n.call(t)}),t.left<1&&(n.text("— 活动已结束 —"),n.parents(".back-ground-white").on("click",function(){return a.show("活动即将开始,敬请期待!"),!1}),h.remove(t._reflow)),t.left<864e5&&n.find(".left-day").hide(),t},_repaint:function(){c[this.config.effect].paint.apply(this),this.config.el.trigger(r)},_toDigitals:function(e,t){var n=[];for(e=0>e?0:e,t=e.toString().length>1?2:1;t--;)n[t]=e%10,e=Math.floor(e/10);return n},_html:function(e,t,n){switch(i.isArray(e)&&(e=e.join("")),n){case"hand":t=n+" hand-"+t;break;case"handlet":t=n+" hand-"+t;break;case"digital":t="."===e?n+" "+n+"-point "+t:n+" "+n+"-"+e+" "+t}return'<i class="'+t+'">'+e+"</i>"},notify:function(e,t){var n;return e=1e3*e,e-=e%this.frequency,n=this._notify[e]||[],n.push(t),this._notify[e]=n,this}}),t.Countdown=o},function(e,t,n){function o(e){function t(e){var t;t=n.find("li").eq(e),t.length>0&&setTimeout(function(){o.scrollToElement(t[0],400)},1)}var n,o,i,a={el:".outlet-nav"};return i=s.extend({},a,e),n=s(i.el),o=new c(n[0],{scrollX:!0,scrollY:!1,tap:!0,eventPassthrough:!0,preventDefault:!0}),{"goto":t}}function i(e){var t=new RegExp("(^|&)"+e+"=([^&]*)(&|$)"),n=window.location.search.substr(1).match(t);return null!==n?decodeURIComponent(n[2]):null}function a(){s("#index_nav").find("li").each(function(){s(this).find("a").text()===l?s(this).attr({"data-nav":"other","data-type":3}):s(this).find("a").text()===h&&s(this).attr({"data-nav":"other","data-type":2})})}function r(){var e=s("#index_nav"),t=i("yh_channel");a(),null===t?(t=i("type"),null===t?e.find('li:not([data-nav="other"])').eq(0).addClass("active").siblings().removeClass("active"):e.find("li[data-type="+t+"]").addClass("active").siblings().removeClass("active")):e.find('li:not([data-nav="other"])').eq(t).addClass("active").siblings().removeClass("active")}var s=n(1),c=n(16),h="即将结束",l="上线预告";r(),e.exports=o},,function(e,t,n){var o=n(1);o(".nav-back").on("click",function(e){var t=window.cookie("_Channel")||"boys";e.preventDefault(),location.href="//m.yohobuy.com/"+t})}]);
  1 +webpackJsonp([16],{0:function(e,n,t){var o=t(1),i=t(2),a=t(15);t(3),t(17),o("#index_nav").length>0&&a({el:"#index_nav"})["goto"](o("#index_nav").find(".active").index()),o(".back-ground-white").length<1&&o(".empty").show(),o(".back-ground-white").on("click",function(){return i.show("活动即将开始,敬请期待!"),!1}),o(".cd-medium").show()},2:function(e,n,t){function o(e,n){var t,o;"undefined"!=typeof e&&(t=e.toString(),o=n&&n>0?n:2e3,i.text(t).show(),a=setTimeout(function(){"block"===i.css("display")&&i.hide()},o))}var i,a,r=t(1);!function(){var e='<div id="yoho-tip" class="yoho-tip"></div>';r(".yoho-page").append(e),i=r("#yoho-tip"),i.on("touchend",function(){i.hide(),clearTimeout(a)})}(),n.show=o},3:function(e,n,t){function o(e){var n,t,o=document.cookie;return document.cookie&&""!==document.cookie&&(t=o.indexOf(e+"="),t>-1&&(t+=e.length+1,n=decodeURIComponent(m.trim(o.substring(t,o.indexOf(";",t)))))),n}function i(e,n,t){var o,i,a,r,s="";"undefined"!=typeof n&&(t=t||{},null===n&&(n="",t.expires=-1),t.expires&&("number"==typeof t.expires||t.expires.toUTCString)&&("number"==typeof t.expires?(r=new Date,r.setTime(r.getTime()+24*t.expires*60*60*1e3)):r=t.expires,s="; expires="+r.toUTCString()),o=t.path?"; path="+t.path:"",i=t.domain?"; domain="+t.domain:"",a=t.secure?"; secure":"",document.cookie=[e,"=",encodeURIComponent(n),s,o,i,a].join(""))}function a(){var e=!!navigator.cookieEnabled;return"undefined"!=typeof navigator.cookieEnabled||e||(document.cookie="testcookie",e=-1!==document.cookie.indexOf("testcookie")),e}function r(){var e,n=o("_UID");return"undefined"==typeof n?0:(e=n.split("::"),"undefined"==typeof e||e.length<4?0:e)}function s(){var e=r();return 0===e?0:e[1]}function c(){var e=o("_g");return"undefined"==typeof e?"":JSON.parse(e).k}function d(){var e;0!==p.length&&(e=Math.min(m(window).height(),window.screen.availHeight),m("body").height()<=e-parseInt(p.css("height"),0)?p.addClass("bottom"):p.removeClass("bottom"))}function h(e){var n=m(e).outerHeight();e&&p.css("margin-bottom",n+"px")}function u(){var e,n,t=[],o=window.location.search.slice(1).split("&");for(n=0;n<o.length;n++)e=o[n].split("="),t.push(e[0]),t[e[0]]=e[1];return t}function l(e){return e.replace(/(\d{3})\d{4}(\d{4})/,"$1****$2")}var m=t(1),f=t(4),p=m("#yoho-footer"),w=m(".yoho-page"),g=m(".yoho-header");!function(){var e,n=p.children(".op-row"),t=m(".back-to-top"),o=r();d(),0===o?n.prepend('<a href="http://m.yohobuy.com/signin.html?refer='+location.href+'">登录</a><span class="sep-line">|</span><a href="http://m.yohobuy.com/reg.html">注册</a>'):n.prepend('<span>Hi,</span><a class="user-name" href="http://m.yohobuy.com/home?tmp='+Math.random()+'">'+o[0]+'</a><a href="http://m.yohobuy.com/passport/signout/index">退出</a>'),t.length>0&&(e=new f(t[0]),e.on("tap",function(e){return m(window).scrollTop(0),e.srcEvent.preventDefault(),!1})),p.removeClass("hide")}(),function(e,n,t,o,i){var a=n.createElement(t),r=n.getElementsByTagName(t)[0];e.YohoAcquisitionObject=i,e[i]=function(){e[i].p=arguments},a.async=1,a.src=o,r.parentNode.insertBefore(a,r)}(window,document,"script",("https:"===document.location.protocol?"https":"http")+"://cdn.yoho.cn/yas-jssdk/1.0.17/yas.js","_yas"),function(){var e=s();e=0===e?"":e,window._ozuid=e,window._yas&&window._yas(1*new Date,"1.0.17","yohobuy_m",e,"","")}(),g.on("touchstart","a",function(){g.find("a").removeClass("highlight"),m(this).addClass("highlight")}).on("touchend touchcancel","a",function(){m(this).removeClass("highlight")}),w.on("touchstart",".tap-hightlight",function(){m(this).siblings(".tap-hightlight").removeClass("highlight"),m(this).addClass("highlight")}).on("touchend touchcancel",".tap-hightlight",function(){m(this).removeClass("highlight")}),m(".nav-home").on("touchstart",function(){m(".homebuttom").toggleClass("hide")}),function(){var e,n,t=0,o="webkit moz ms o".split(" "),i=window.requestAnimationFrame,a=window.cancelAnimationFrame;for(n=0;n<o.length&&(!i||!a);n++)e=o[n],i=i||window[e+"RequestAnimationFrame"],a=a||window[e+"CancelAnimationFrame"]||window[e+"CancelRequestAnimationFrame"];i&&a||(i=function(e){var n=(new Date).getTime(),o=Math.max(0,16-(n-t)),i=window.setTimeout(function(){e(n+o)},o);return t=n+o,i},a=function(e){window.clearTimeout(e)}),window.requestAnimationFrame=i,window.cancelAnimationFrame=a}(),m.extend({queryString:u}),11===p.find(".user-name").text().length&&p.find(".user-name").html(l(p.find(".user-name").text())),window.cookie=o,window.setCookie=i,window.isCookiesEnabled=a,window.getUser=r,window.getUid=s,window.getShoppingKey=c,window.rePosFooter=d,window.reMarginFooter=h,window.queryString=u()},15:function(e,n,t){function o(e){function n(e){var n;n=t.find("li").eq(e),n.length>0&&setTimeout(function(){o.scrollToElement(n[0],400)},1)}var t,o,i,a={el:".outlet-nav"};return i=s.extend({},a,e),t=s(i.el),o=new c(t[0],{scrollX:!0,scrollY:!1,tap:!0,eventPassthrough:!0,preventDefault:!0}),{"goto":n}}function i(e){var n=new RegExp("(^|&)"+e+"=([^&]*)(&|$)"),t=window.location.search.substr(1).match(n);return null!==t?decodeURIComponent(t[2]):null}function a(){s("#index_nav").find("li").each(function(){s(this).find("a").text()===h?s(this).attr({"data-nav":"other","data-type":3}):s(this).find("a").text()===d&&s(this).attr({"data-nav":"other","data-type":2})})}function r(){var e=s("#index_nav"),n=i("yh_channel");a(),null===n?(n=i("type"),null===n?e.find('li:not([data-nav="other"])').eq(0).addClass("active").siblings().removeClass("active"):e.find("li[data-type="+n+"]").addClass("active").siblings().removeClass("active")):e.find('li:not([data-nav="other"])').eq(n).addClass("active").siblings().removeClass("active")}var s=t(1),c=t(16),d="即将结束",h="上线预告";r(),e.exports=o},17:function(e,n,t){var o=t(1);o(".nav-back").on("click",function(e){var n=window.cookie("_Channel")||"boys";e.preventDefault(),location.href="//m.yohobuy.com/"+n})}});
  1 +webpackJsonp([2],{0:function(e,t,n){function i(e){var t=e.attr("href"),n=t.split("?")[1].split("&"),i={};return n.forEach(function(e){var t=e.split("="),n=t[0],o=t[1];"actiontype"!==n&&(i[n]=o)}),i}var o=n(1),a=n(11),s=n(7),r=n(14),l=o(".cd-lite"),c=o(".outlet-category-nav a"),d=o(".outlet-category-nav"),h=n(12),u=n(15);n(53),n(17),s(o("img.lazy")),l.length>0&&l.each(function(){new r.Countdown({el:o(this)})}),o(".swiper-container .swiper-slide").length>1&&new a(".swiper-container",{lazyLoading:!0,lazyLoadingInPrevNext:!0,loop:!0,autoplay:3e3,autoplayDisableOnInteraction:!0,paginationClickable:!0,pagination:".banner-top .pagination-inner"}),c.on("click",function(e){var t=i(o(this));o(".category a").removeClass("active"),o(this).addClass("active"),e.preventDefault(),h.start({type:"category"},t)}),c.length>0&&h.start({type:"category"},i(c.eq(0))),o("#index_nav").length>0&&u({el:"#index_nav"})["goto"](o("#index_nav").find(".active").index()),o(".outlet-category-nav").length>0&&u({el:".outlet-category-nav"})["goto"](0),o(".back-ground-white").length>10&&(o(".more-activity").show(),o(".back-ground-white").each(function(e,t){e>9&&o(t).hide()})),o(".more-activity").click(function(){o(".more-activity").hide(),o(".back-ground-white").each(function(e,t){e>9&&o(t).show()})}),-1===navigator.userAgent.indexOf("UCBrowser")&&(window.onload=function(){d.fixNav({autoRollTop:!0})})},2:function(e,t,n){function i(e,t){var n,i;"undefined"!=typeof e&&(n=e.toString(),i=t&&t>0?t:2e3,o.text(n).show(),a=setTimeout(function(){"block"===o.css("display")&&o.hide()},i))}var o,a,s=n(1);!function(){var e='<div id="yoho-tip" class="yoho-tip"></div>';s(".yoho-page").append(e),o=s("#yoho-tip"),o.on("touchend",function(){o.hide(),clearTimeout(a)})}(),t.show=i},3:function(e,t,n){function i(e){var t,n,i=document.cookie;return document.cookie&&""!==document.cookie&&(n=i.indexOf(e+"="),n>-1&&(n+=e.length+1,t=decodeURIComponent(f.trim(i.substring(n,i.indexOf(";",n)))))),t}function o(e,t,n){var i,o,a,s,r="";"undefined"!=typeof t&&(n=n||{},null===t&&(t="",n.expires=-1),n.expires&&("number"==typeof n.expires||n.expires.toUTCString)&&("number"==typeof n.expires?(s=new Date,s.setTime(s.getTime()+24*n.expires*60*60*1e3)):s=n.expires,r="; expires="+s.toUTCString()),i=n.path?"; path="+n.path:"",o=n.domain?"; domain="+n.domain:"",a=n.secure?"; secure":"",document.cookie=[e,"=",encodeURIComponent(t),r,i,o,a].join(""))}function a(){var e=!!navigator.cookieEnabled;return"undefined"!=typeof navigator.cookieEnabled||e||(document.cookie="testcookie",e=-1!==document.cookie.indexOf("testcookie")),e}function s(){var e,t=i("_UID");return"undefined"==typeof t?0:(e=t.split("::"),"undefined"==typeof e||e.length<4?0:e)}function r(){var e=s();return 0===e?0:e[1]}function l(){var e=i("_g");return"undefined"==typeof e?"":JSON.parse(e).k}function c(){var e;0!==g.length&&(e=Math.min(f(window).height(),window.screen.availHeight),f("body").height()<=e-parseInt(g.css("height"),0)?g.addClass("bottom"):g.removeClass("bottom"))}function d(e){var t=f(e).outerHeight();e&&g.css("margin-bottom",t+"px")}function h(){var e,t,n=[],i=window.location.search.slice(1).split("&");for(t=0;t<i.length;t++)e=i[t].split("="),n.push(e[0]),n[e[0]]=e[1];return n}function u(e){return e.replace(/(\d{3})\d{4}(\d{4})/,"$1****$2")}var f=n(1),p=n(4),g=f("#yoho-footer"),v=f(".yoho-page"),m=f(".yoho-header");!function(){var e,t=g.children(".op-row"),n=f(".back-to-top"),i=s();c(),0===i?t.prepend('<a href="http://m.yohobuy.com/signin.html?refer='+location.href+'">登录</a><span class="sep-line">|</span><a href="http://m.yohobuy.com/reg.html">注册</a>'):t.prepend('<span>Hi,</span><a class="user-name" href="http://m.yohobuy.com/home?tmp='+Math.random()+'">'+i[0]+'</a><a href="http://m.yohobuy.com/passport/signout/index">退出</a>'),n.length>0&&(e=new p(n[0]),e.on("tap",function(e){return f(window).scrollTop(0),e.srcEvent.preventDefault(),!1})),g.removeClass("hide")}(),function(e,t,n,i,o){var a=t.createElement(n),s=t.getElementsByTagName(n)[0];e.YohoAcquisitionObject=o,e[o]=function(){e[o].p=arguments},a.async=1,a.src=i,s.parentNode.insertBefore(a,s)}(window,document,"script",("https:"===document.location.protocol?"https":"http")+"://cdn.yoho.cn/yas-jssdk/1.0.17/yas.js","_yas"),function(){var e=r();e=0===e?"":e,window._ozuid=e,window._yas&&window._yas(1*new Date,"1.0.17","yohobuy_m",e,"","")}(),m.on("touchstart","a",function(){m.find("a").removeClass("highlight"),f(this).addClass("highlight")}).on("touchend touchcancel","a",function(){f(this).removeClass("highlight")}),v.on("touchstart",".tap-hightlight",function(){f(this).siblings(".tap-hightlight").removeClass("highlight"),f(this).addClass("highlight")}).on("touchend touchcancel",".tap-hightlight",function(){f(this).removeClass("highlight")}),f(".nav-home").on("touchstart",function(){f(".homebuttom").toggleClass("hide")}),function(){var e,t,n=0,i="webkit moz ms o".split(" "),o=window.requestAnimationFrame,a=window.cancelAnimationFrame;for(t=0;t<i.length&&(!o||!a);t++)e=i[t],o=o||window[e+"RequestAnimationFrame"],a=a||window[e+"CancelAnimationFrame"]||window[e+"CancelRequestAnimationFrame"];o&&a||(o=function(e){var t=(new Date).getTime(),i=Math.max(0,16-(t-n)),o=window.setTimeout(function(){e(t+i)},i);return n=t+i,o},a=function(e){window.clearTimeout(e)}),window.requestAnimationFrame=o,window.cancelAnimationFrame=a}(),f.extend({queryString:h}),11===g.find(".user-name").text().length&&g.find(".user-name").html(u(g.find(".user-name").text())),window.cookie=i,window.setCookie=o,window.isCookiesEnabled=a,window.getUser=s,window.getUid=r,window.getShoppingKey=l,window.rePosFooter=c,window.reMarginFooter=d,window.queryString=h()},6:function(e,t,n){function i(e){var t='<div class="loading-mask hide"><div class="loading"><div></div><div></div><div></div></div></div>';c=!0,e||(e=l),e.append(t),s=e.children(".loading-mask"),r("body").on("touchstart touchmove touchend",".loading-mask",function(){return!1})}function o(){c||(i(),c=!0),s.removeClass("hide")}function a(){s.addClass("hide")}var s,r=n(1),l=r(".yoho-page"),c=!1;t.init=i,t.showLoadingMask=o,t.hideLoadingMask=a,t.show=o,t.hide=a},9:function(e,t,n){var i=n(1),o={};i(".query-param").each(function(){var e=i(this);o[e.data("attr")]=e.val()}),e.exports=o},10:function(e,t,n){function i(){u.addClass("hide")}function o(){u.removeClass("hide")}function a(){var e=g(".filter-body .classify");e.on("touchstart",".shower",function(){e.removeClass("highlight"),g(this).addClass("highlight")}).on("touchend touchcancel",".shower",function(){g(this).removeClass("highlight")})}function s(){var e=g(".filter-body .sub-item");e.on("touchstart",function(){e.removeClass("highlight"),g(this).addClass("highlight")}).on("touchend touchcancel",function(){g(this).removeClass("highlight")})}function r(e){e.hasClass("active")||(e.siblings(".active").removeClass("active"),e.addClass("active"))}function l(e){var t,n,i=e.closest(".sub-classify"),o=i.siblings(".shower");return e.hasClass("chosed")?i:(i.children(".chosed").removeClass("chosed"),e.addClass("chosed"),t=g.trim(e.html()),n=g.trim(o.html()),o.html(n.substring(0,n.indexOf("</span>")+7)+t.substring(0,t.indexOf("<i"))),0===e.index()?o.addClass("default"):o.removeClass("default"),i)}function c(e){var t,n=e.data("id");t=l(e),f&&f({type:t.data("type"),id:n}),p&&p(),i()}function d(e){var t;f=e.fCbFn,p=e.hCbFn,window.missStatus=e.missStatus,a(),s(),u=g(".filter-mask"),u[0]&&(t=new v(u[0]),t.on("tap",function(e){var t,n=g(e.target);e.preventDefault(),n.closest(".filter-body").length>0?(t=n.closest(".sub-item"),t.length>0?(t=n.closest("li"),c(t)):(t=n.closest(".classify-item"),e.srcEvent.stopPropagation(),r(t))):(i(),p&&p())}))}function h(){"undefined"!=typeof u&&(g(".sub-classify").each(function(){l(g(this).children(":first-child"))}),r(g(".classify > :first-child")))}var u,f,p,g=n(1),v=n(4);t.initFilter=d,t.showFilter=o,t.hideFilter=i,t.resetFilter=h},12:function(e,t,n){function i(e){var t=new RegExp("(^|&)"+e+"=([^&]*)(&|$)"),n=window.location.search.substr(1).match(t);return null!==n?n[2]:null}function o(e){var t="category";return e.hasClass("new")?t="newest":e.hasClass("price")?t="price":e.hasClass("discount")?t="discount":e.hasClass("sale")?t="sale":e.hasClass("all")?t="all":e.hasClass("category")&&(t="category"),t}function a(e,t,n){var i,a,s,r,h,p={};if(!c){if(e&&!n){for(a in D)D.hasOwnProperty(a)&&(D[a].reload=!0);switch(S.children(".active").removeClass("active"),q.addClass("active"),e.type){case"gender":i={gender:e.id};break;case"ageLevel":i={age_level:e.id};break;case"brand":i={brand:e.id};break;case"sort":i={sort:e.id};break;case"color":i={color:e.id};break;case"size":i={size:e.id};break;case"price":i={price:e.id};break;case"discount":i={discount:e.id};break;case"p_d":i={p_d:e.id}}d.extend(F,i)}if(d.extend(t||{},F),r=o(q),s=D[r||"all"],h=s.page+1,s.reload)h=1;else if(s.end)return;t?(l=t,d.extend(p,t,{type:r,order:s.order,page:h})):(l=null,d.extend(p,F,{type:r,order:s.order,page:h})),c=!0,g.showLoadingMask(),d.ajax({type:"GET",url:"/product/sale/search",data:p,success:function(e){var t,n;switch(r){case"newest":t=m;break;case"price":t=y;break;case"discount":t=w;break;case"sale":t=x;break;case"all":t=C;break;case"categroy":t=b;break;default:t=C}t.hasClass("hide")&&(t.siblings().addClass("hide"),t.removeClass("hide")),""===e?(s.end=!0,s.reload&&t.html(T)):("category"===r&&(s.page=1),s.reload?(t.html(e),u(t.find(".lazy"))):(n=t.find(".good-info").length,t.append(e),u(t.find(".good-info:gt("+(n-1)+") .lazy")))),s.reload=!1,s.page=h,c=!1,g.hideLoadingMask(),window.rePosFooter(),d(".good-detail-text .name").each(function(){var e=d(this),t=e.find("a");t[0].mlellipsis(2)})},error:function(){f.show("网络断开连接了~"),c=!1,g.hideLoadingMask()}})}}function s(){d.ajax({type:"GET",url:"/product/sale/filter",data:F,success:function(e){v.append(e),p.initFilter({fCbFn:a,hCbFn:function(){q.addClass("active"),q.siblings(".filter").removeClass("active")},missStatus:!0})}})}function r(){var e=d(window).scrollTop();e>_&&e+k>d(document).height()-.25*v.height()-50&&"undefined"!=typeof q&&(l?a({type:"category"},l,!0):a()),_=e}var l,c,d=n(1),h=n(8),u=n(7),f=n(2),p=n(10),g=n(6),v=d("#goods-container"),m=v.find(".new-goods"),w=v.find(".discount-goods"),y=v.find(".price-goods"),C=v.find(".all-goods"),b=v.find(".category-goods"),x=v.find(".sale-goods"),k=d(window).height(),T='<p class="no-result">未找到相关搜索结果</p>',_=0,F=n(9),S=d("#list-nav"),D={all:{order:0,reload:!0,page:0,end:!1},newest:{order:0,reload:!0,page:0,end:!1},price:{order:1,reload:!0,page:0,end:!1},discount:{order:1,reload:!0,page:0,end:!1},sale:{order:0,reload:!0,page:0,end:!1},category:{order:0,reload:!0,page:0,end:!1}},q=S.find(".active");n(3),h.init(),u(d("img.lazy")),d(".sale-vip-page").length>0?F.saleType=2:d(".discount-detail-page").length>0&&(F.saleType=3,F.productPool=d(".discount-detail-page").data("product-pool")||""),d.extend(F,{yh_channel:i("channel")||"all"}),0===d(".outlet-index-page").length&&s(),u(d(".lazy")),S.bind("contextmenu",function(){return!1}),S.on("touchend touchcancel",function(e){var t,n,i,s=d(e.target).closest("li");if(e.preventDefault(),"undefined"!=typeof s&&0!==s.length){if(s.hasClass("filter"))s.hasClass("active")?(p.hideFilter(),q.addClass("active"),s.removeClass("active")):(q=s.siblings(".active"),q.removeClass("active"),s.addClass("active"),p.showFilter());else{if(n=o(s),t=D[n],s.hasClass("active")){if(s.hasClass("new")||s.hasClass("sale")||s.hasClass("all"))return;(s.hasClass("price")||s.hasClass("discount"))&&(s.find(".icon > .iconfont").toggleClass("cur"),q=s,t.reload=!0,t.order=0===t.order?1:0)}else{if(i=s.siblings(".active"),q=s,i.hasClass("filter"))p.hideFilter();else switch(v.children(".container:not(.hide)").addClass("hide"),n){case"newest":m.removeClass("hide");break;case"price":y.removeClass("hide");break;case"discount":w.removeClass("hide");break;case"sale":x.removeClass("hide");break;case"all":C.removeClass("hide")}i.removeClass("active"),s.addClass("active")}t.reload&&a()}e.stopPropagation()}}),d(window).scroll(function(){0===d(".outlet-index-page").length&&window.requestAnimationFrame(r)}),S.on("touchstart","li",function(){d(this).addClass("bytouch")}).on("touchend touchcancel",function(){S.find("li").removeClass("bytouch")}),e.exports={start:a}},14:function(e,t,n){"use strict";function i(e){var t;return this instanceof i?(e.el=o(e.el),void(e.el&&(t=e.el.attr("data-config"),t&&(t=JSON.parse(t.replace(/'/g,'"')),e=o.extend(!0,{},r,t,e)),this.config=e,this._init()))):new i(e)}var o=n(1),a=n(2),s="afterPaint",r={el:{},stopPoint:0,leftTime:0,template:"",varRegular:/\$\{([\-\w]+)\}/g,clock:["d",100,2,"h",24,2,"m",60,2,"s",60,2,"u",10,1],effect:"normal"},l={normal:{paint:function(){var e,t=this;o.each(t.hands,function(n,i){i.lastValue!==i.value&&(e="",o.each(t._toDigitals(i.value,i.bits),function(n,i){e+=t._html(i,"","digital")}),i.node.html(e))})}}},c=function(){function e(){for(var t,o,a,s,r=+new Date-e.nextTime,l=1+Math.floor(r/100);i.length;)i.shift()();for(r=100-r%100,e.nextTime+=100*l,a=0,s=n.length;s>a;a+=2)t=n[a+1],0===t?n[a](l):(t+=2*l-1,o=Math.floor(t/20),o>0&&n[a](o),n[a+1]=t%20+1);setTimeout(e,r)}function t(e,t){var n,i;for(n=0,i=t.length;i>n;++n)if(t[n]===e)return n;return-1}var n=[],i=[];return e.nextTime=+new Date,e(),{add:function(e,t){i.push(function(){n.push(e),n.push(1e3===t?1:0)})},remove:function(e){var o;i.push(function(){o=t(e,n),-1!==o&&n.splice(t(e,n),2)})}}}();o.extend(i.prototype,{_init:function(){var e,t,n=this,i=n.config.el,a=[],s=i.html(),r=n.config.varRegular;n.hands=a,n.frequency=1e3,n._notify=[],r.lastIndex=0,i.html(s.replace(r,function(e,t){var i="";return"u"!==t&&"s-ext"!==t||(n.frequency=100),"s-ext"===t?(a.push({type:"s"}),a.push({type:"u"}),i=n._html("","s","handlet")+n._html(".","","digital")+n._html("","u","handlet")):a.push({type:t}),n._html(i,t,"hand")})),e=n.config.clock,o.each(a,function(t,n){var o,a=n.type,s=100;for(n.node=i.find(".hand-"+a),o=e.length-3;o>-1&&a!==e[o];o-=3)s*=e[o+1];n.base=s,n.radix=e[o+1],n.bits=e[o+2]}),n._getLeft(),n._reflow(),t=n._reflow,n._reflow=function(){return t.apply(n,arguments)},c.add(n._reflow,n.frequency),i.show()},_getLeft:function(){var e=1e3*this.config.leftTime,t=this.config.stopPoint;!e&&t&&(e=t-+new Date),this.left=e-e%this.frequency},_reflow:function(e){var t=this,n=t.config.el;return e=e||0,t.left=t.left-t.frequency*e,o.each(t.hands,function(e,n){n.lastValue=n.value,n.value=Math.floor(t.left/n.base)%n.radix}),t._repaint(),t._notify[t.left]&&o.each(t._notify[t.left],function(e,n){n.call(t)}),t.left<1&&(n.text("— 活动已结束 —"),n.parents(".back-ground-white").on("click",function(){return a.show("活动即将开始,敬请期待!"),!1}),c.remove(t._reflow)),t.left<864e5&&n.find(".left-day").hide(),t},_repaint:function(){l[this.config.effect].paint.apply(this),this.config.el.trigger(s)},_toDigitals:function(e,t){var n=[];for(e=0>e?0:e,t=e.toString().length>1?2:1;t--;)n[t]=e%10,e=Math.floor(e/10);return n},_html:function(e,t,n){switch(o.isArray(e)&&(e=e.join("")),n){case"hand":t=n+" hand-"+t;break;case"handlet":t=n+" hand-"+t;break;case"digital":t="."===e?n+" "+n+"-point "+t:n+" "+n+"-"+e+" "+t}return'<i class="'+t+'">'+e+"</i>"},notify:function(e,t){var n;return e=1e3*e,e-=e%this.frequency,n=this._notify[e]||[],n.push(t),this._notify[e]=n,this}}),t.Countdown=i},15:function(e,t,n){function i(e){function t(e){var t;t=n.find("li").eq(e),t.length>0&&setTimeout(function(){i.scrollToElement(t[0],400)},1)}var n,i,o,a={el:".outlet-nav"};return o=r.extend({},a,e),n=r(o.el),i=new l(n[0],{scrollX:!0,scrollY:!1,tap:!0,eventPassthrough:!0,preventDefault:!0}),{"goto":t}}function o(e){var t=new RegExp("(^|&)"+e+"=([^&]*)(&|$)"),n=window.location.search.substr(1).match(t);return null!==n?decodeURIComponent(n[2]):null}function a(){r("#index_nav").find("li").each(function(){r(this).find("a").text()===d?r(this).attr({"data-nav":"other","data-type":3}):r(this).find("a").text()===c&&r(this).attr({"data-nav":"other","data-type":2})})}function s(){var e=r("#index_nav"),t=o("yh_channel");a(),null===t?(t=o("type"),null===t?e.find('li:not([data-nav="other"])').eq(0).addClass("active").siblings().removeClass("active"):e.find("li[data-type="+t+"]").addClass("active").siblings().removeClass("active")):e.find('li:not([data-nav="other"])').eq(t).addClass("active").siblings().removeClass("active")}var r=n(1),l=n(16),c="即将结束",d="上线预告";s(),e.exports=i},17:function(e,t,n){var i=n(1);i(".nav-back").on("click",function(e){var t=window.cookie("_Channel")||"boys";e.preventDefault(),location.href="//m.yohobuy.com/"+t})},53:function(e,t,n){var i=n(1);!function(){i.fn.fixNav=function(e){var t={autoRollTop:!1,zIndex:999},n=i.extend({},t,e||{}),o={direction:"",preScrollTop:0,curScrollTop:0,getDirection:function(){this.curScrollTop=i(window).scrollTop(),this.curScrollTop<this.preScrollTop?this.direction="up":this.direction="down",this.preScrollTop=this.curScrollTop},isUp:function(){return this.getDirection(),"up"===this.direction},isDown:function(){return this.getDirection(),"down"===this.direction}},a={rollTo:function(e,t){i(e).click(function(){"fixed"===i(this).css("position")&&i("body").animate({scrollTop:t},100)})}},s={isSet:!1,preStyle:"",preTop:null,$el:null,setFix:function(e,t){this.isSet||(this.$el=i(e),this.preStyle=this.$el.attr("style"),this.preTop=t,this.$el.css({position:"fixed",top:0,"z-index":n.zIndex}),this.isSet=!0,n.autoRollTop&&a.rollTo(this.$el.get(0),t))},clearFix:function(){var e;this.$el&&(e=i(window).scrollTop(),e<=this.preTop&&(this.preStyle?this.$el.attr("style",this.preStyle):this.$el.removeAttr("style"),this.isSet=!1))}};return this.each(function(e,t){var n=i(t).offset().top;i(window).scroll(function(){var e=n-i(window).scrollTop();o.isDown()&&0>=e?s.setFix(t,n):s.clearFix()})})}}()}});
  1 +webpackJsonp([35],[function(n,c){}]);
  1 +webpackJsonp([6],[function(e,t,i){var n=i(1),a=i(11),o=i(8),s=i(18),r=i(7),d=i(12);i(3),d.start(),r(n("img.lazy")),o.init(),n(".swiper-container").each(function(){n(this).find(".swiper-slide").length>1&&new a(n(this).get(0),{lazyLoading:!0,lazyLoadingInPrevNext:!0,loop:!0,autoplay:3e3,autoplayDisableOnInteraction:!0,paginationClickable:!0,pagination:n(this).closest(".banner-top").find(".pagination-inner").get(0)})}),n(function(){var e=n("body"),t=n(".sale-nav-select"),i=n(".vip-floor"),a=n(".sale-nav-wrap"),o=a.find("#list-nav"),d=n(".filter-mask");s.attach(document.body),n(".sale-nav").on("click",function(){t.toggleClass("show")}),n.ajax({url:"/product/sale/search",data:{yh_channel:window.queryString.channel||"boys",saleType:"2",productPool:i.data("id"),limit:"4"}}).then(function(e){/good-info/.test(e)&&(i.html(e).addClass("goods-container"),r(i.find("img.lazy")),n(".good-detail-text .name").each(function(){var e=n(this),t=e.find("a");t[0].mlellipsis(2)}),i.css("padding-bottom","0.75rem"))}),a.css({height:a.height()}),n(window).on("scroll",function(){d.length||(d=n(".filter-mask")),e.scrollTop()>a.offset().top?(o.addClass("fixed"),d.addClass("fixed")):(o.removeClass("fixed"),d.removeClass("fixed"))}).trigger("scroll")})},,function(e,t,i){function n(e,t){var i,n;"undefined"!=typeof e&&(i=e.toString(),n=t&&t>0?t:2e3,a.text(i).show(),o=setTimeout(function(){"block"===a.css("display")&&a.hide()},n))}var a,o,s=i(1);!function(){var e='<div id="yoho-tip" class="yoho-tip"></div>';s(".yoho-page").append(e),a=s("#yoho-tip"),a.on("touchend",function(){a.hide(),clearTimeout(o)})}(),t.show=n},function(e,t,i){function n(e){var t,i,n=document.cookie;return document.cookie&&""!==document.cookie&&(i=n.indexOf(e+"="),i>-1&&(i+=e.length+1,t=decodeURIComponent(f.trim(n.substring(i,n.indexOf(";",i)))))),t}function a(e,t,i){var n,a,o,s,r="";"undefined"!=typeof t&&(i=i||{},null===t&&(t="",i.expires=-1),i.expires&&("number"==typeof i.expires||i.expires.toUTCString)&&("number"==typeof i.expires?(s=new Date,s.setTime(s.getTime()+24*i.expires*60*60*1e3)):s=i.expires,r="; expires="+s.toUTCString()),n=i.path?"; path="+i.path:"",a=i.domain?"; domain="+i.domain:"",o=i.secure?"; secure":"",document.cookie=[e,"=",encodeURIComponent(t),r,n,a,o].join(""))}function o(){var e=!!navigator.cookieEnabled;return"undefined"!=typeof navigator.cookieEnabled||e||(document.cookie="testcookie",e=-1!==document.cookie.indexOf("testcookie")),e}function s(){var e,t=n("_UID");return"undefined"==typeof t?0:(e=t.split("::"),"undefined"==typeof e||e.length<4?0:e)}function r(){var e=s();return 0===e?0:e[1]}function d(){var e=n("_g");return"undefined"==typeof e?"":JSON.parse(e).k}function l(){var e;0!==p.length&&(e=Math.min(f(window).height(),window.screen.availHeight),f("body").height()<=e-parseInt(p.css("height"),0)?p.addClass("bottom"):p.removeClass("bottom"))}function c(e){var t=f(e).outerHeight();e&&p.css("margin-bottom",t+"px")}function h(){var e,t,i=[],n=window.location.search.slice(1).split("&");for(t=0;t<n.length;t++)e=n[t].split("="),i.push(e[0]),i[e[0]]=e[1];return i}function u(e){return e.replace(/(\d{3})\d{4}(\d{4})/,"$1****$2")}var f=i(1),g=i(4),p=f("#yoho-footer"),m=f(".yoho-page"),v=f(".yoho-header");!function(){var e,t=p.children(".op-row"),i=f(".back-to-top"),n=s();l(),0===n?t.prepend('<a href="http://m.yohobuy.com/signin.html?refer='+location.href+'">登录</a><span class="sep-line">|</span><a href="http://m.yohobuy.com/reg.html">注册</a>'):t.prepend('<span>Hi,</span><a class="user-name" href="http://m.yohobuy.com/home?tmp='+Math.random()+'">'+n[0]+'</a><a href="http://m.yohobuy.com/passport/signout/index">退出</a>'),i.length>0&&(e=new g(i[0]),e.on("tap",function(e){return f(window).scrollTop(0),e.srcEvent.preventDefault(),!1})),p.removeClass("hide")}(),function(e,t,i,n,a){var o=t.createElement(i),s=t.getElementsByTagName(i)[0];e.YohoAcquisitionObject=a,e[a]=function(){e[a].p=arguments},o.async=1,o.src=n,s.parentNode.insertBefore(o,s)}(window,document,"script",("https:"===document.location.protocol?"https":"http")+"://cdn.yoho.cn/yas-jssdk/1.0.17/yas.js","_yas"),function(){var e=r();e=0===e?"":e,window._ozuid=e,window._yas&&window._yas(1*new Date,"1.0.17","yohobuy_m",e,"","")}(),v.on("touchstart","a",function(){v.find("a").removeClass("highlight"),f(this).addClass("highlight")}).on("touchend touchcancel","a",function(){f(this).removeClass("highlight")}),m.on("touchstart",".tap-hightlight",function(){f(this).siblings(".tap-hightlight").removeClass("highlight"),f(this).addClass("highlight")}).on("touchend touchcancel",".tap-hightlight",function(){f(this).removeClass("highlight")}),f(".nav-home").on("touchstart",function(){f(".homebuttom").toggleClass("hide")}),function(){var e,t,i=0,n="webkit moz ms o".split(" "),a=window.requestAnimationFrame,o=window.cancelAnimationFrame;for(t=0;t<n.length&&(!a||!o);t++)e=n[t],a=a||window[e+"RequestAnimationFrame"],o=o||window[e+"CancelAnimationFrame"]||window[e+"CancelRequestAnimationFrame"];a&&o||(a=function(e){var t=(new Date).getTime(),n=Math.max(0,16-(t-i)),a=window.setTimeout(function(){e(t+n)},n);return i=t+n,a},o=function(e){window.clearTimeout(e)}),window.requestAnimationFrame=a,window.cancelAnimationFrame=o}(),f.extend({queryString:h}),11===p.find(".user-name").text().length&&p.find(".user-name").html(u(p.find(".user-name").text())),window.cookie=n,window.setCookie=a,window.isCookiesEnabled=o,window.getUser=s,window.getUid=r,window.getShoppingKey=d,window.rePosFooter=l,window.reMarginFooter=c,window.queryString=h()},,,function(e,t,i){function n(e){var t='<div class="loading-mask hide"><div class="loading"><div></div><div></div><div></div></div></div>';l=!0,e||(e=d),e.append(t),s=e.children(".loading-mask"),r("body").on("touchstart touchmove touchend",".loading-mask",function(){return!1})}function a(){l||(n(),l=!0),s.removeClass("hide")}function o(){s.addClass("hide")}var s,r=i(1),d=r(".yoho-page"),l=!1;t.init=n,t.showLoadingMask=a,t.hideLoadingMask=o,t.show=a,t.hide=o},,,function(e,t,i){var n=i(1),a={};n(".query-param").each(function(){var e=n(this);a[e.data("attr")]=e.val()}),e.exports=a},function(e,t,i){function n(){u.addClass("hide")}function a(){u.removeClass("hide")}function o(){var e=p(".filter-body .classify");e.on("touchstart",".shower",function(){e.removeClass("highlight"),p(this).addClass("highlight")}).on("touchend touchcancel",".shower",function(){p(this).removeClass("highlight")})}function s(){var e=p(".filter-body .sub-item");e.on("touchstart",function(){e.removeClass("highlight"),p(this).addClass("highlight")}).on("touchend touchcancel",function(){p(this).removeClass("highlight")})}function r(e){e.hasClass("active")||(e.siblings(".active").removeClass("active"),e.addClass("active"))}function d(e){var t,i,n=e.closest(".sub-classify"),a=n.siblings(".shower");return e.hasClass("chosed")?n:(n.children(".chosed").removeClass("chosed"),e.addClass("chosed"),t=p.trim(e.html()),i=p.trim(a.html()),a.html(i.substring(0,i.indexOf("</span>")+7)+t.substring(0,t.indexOf("<i"))),0===e.index()?a.addClass("default"):a.removeClass("default"),n)}function l(e){var t,i=e.data("id");t=d(e),f&&f({type:t.data("type"),id:i}),g&&g(),n()}function c(e){var t;f=e.fCbFn,g=e.hCbFn,window.missStatus=e.missStatus,o(),s(),u=p(".filter-mask"),u[0]&&(t=new m(u[0]),t.on("tap",function(e){var t,i=p(e.target);e.preventDefault(),i.closest(".filter-body").length>0?(t=i.closest(".sub-item"),t.length>0?(t=i.closest("li"),l(t)):(t=i.closest(".classify-item"),e.srcEvent.stopPropagation(),r(t))):(n(),g&&g())}))}function h(){"undefined"!=typeof u&&(p(".sub-classify").each(function(){d(p(this).children(":first-child"))}),r(p(".classify > :first-child")))}var u,f,g,p=i(1),m=i(4);t.initFilter=c,t.showFilter=a,t.hideFilter=n,t.resetFilter=h},,function(e,t,i){function n(e){var t=new RegExp("(^|&)"+e+"=([^&]*)(&|$)"),i=window.location.search.substr(1).match(t);return null!==i?i[2]:null}function a(e){var t="category";return e.hasClass("new")?t="newest":e.hasClass("price")?t="price":e.hasClass("discount")?t="discount":e.hasClass("sale")?t="sale":e.hasClass("all")?t="all":e.hasClass("category")&&(t="category"),t}function o(e,t,i){var n,o,s,r,h,g={};if(!l){if(e&&!i){for(o in S)S.hasOwnProperty(o)&&(S[o].reload=!0);switch(_.children(".active").removeClass("active"),q.addClass("active"),e.type){case"gender":n={gender:e.id};break;case"ageLevel":n={age_level:e.id};break;case"brand":n={brand:e.id};break;case"sort":n={sort:e.id};break;case"color":n={color:e.id};break;case"size":n={size:e.id};break;case"price":n={price:e.id};break;case"discount":n={discount:e.id};break;case"p_d":n={p_d:e.id}}c.extend(z,n)}if(c.extend(t||{},z),r=a(q),s=S[r||"all"],h=s.page+1,s.reload)h=1;else if(s.end)return;t?(d=t,c.extend(g,t,{type:r,order:s.order,page:h})):(d=null,c.extend(g,z,{type:r,order:s.order,page:h})),l=!0,p.showLoadingMask(),c.ajax({type:"GET",url:"/product/sale/search",data:g,success:function(e){var t,i;switch(r){case"newest":t=v;break;case"price":t=y;break;case"discount":t=w;break;case"sale":t=k;break;case"all":t=C;break;case"categroy":t=b;break;default:t=C}t.hasClass("hide")&&(t.siblings().addClass("hide"),t.removeClass("hide")),""===e?(s.end=!0,s.reload&&t.html(F)):("category"===r&&(s.page=1),s.reload?(t.html(e),u(t.find(".lazy"))):(i=t.find(".good-info").length,t.append(e),u(t.find(".good-info:gt("+(i-1)+") .lazy")))),s.reload=!1,s.page=h,l=!1,p.hideLoadingMask(),window.rePosFooter(),c(".good-detail-text .name").each(function(){var e=c(this),t=e.find("a");t[0].mlellipsis(2)})},error:function(){f.show("网络断开连接了~"),l=!1,p.hideLoadingMask()}})}}function s(){c.ajax({type:"GET",url:"/product/sale/filter",data:z,success:function(e){m.append(e),g.initFilter({fCbFn:o,hCbFn:function(){q.addClass("active"),q.siblings(".filter").removeClass("active")},missStatus:!0})}})}function r(){var e=c(window).scrollTop();e>T&&e+x>c(document).height()-.25*m.height()-50&&"undefined"!=typeof q&&(d?o({type:"category"},d,!0):o()),T=e}var d,l,c=i(1),h=i(8),u=i(7),f=i(2),g=i(10),p=i(6),m=c("#goods-container"),v=m.find(".new-goods"),w=m.find(".discount-goods"),y=m.find(".price-goods"),C=m.find(".all-goods"),b=m.find(".category-goods"),k=m.find(".sale-goods"),x=c(window).height(),F='<p class="no-result">未找到相关搜索结果</p>',T=0,z=i(9),_=c("#list-nav"),S={all:{order:0,reload:!0,page:0,end:!1},newest:{order:0,reload:!0,page:0,end:!1},price:{order:1,reload:!0,page:0,end:!1},discount:{order:1,reload:!0,page:0,end:!1},sale:{order:0,reload:!0,page:0,end:!1},category:{order:0,reload:!0,page:0,end:!1}},q=_.find(".active");i(3),h.init(),u(c("img.lazy")),c(".sale-vip-page").length>0?z.saleType=2:c(".discount-detail-page").length>0&&(z.saleType=3,z.productPool=c(".discount-detail-page").data("product-pool")||""),c.extend(z,{yh_channel:n("channel")||"all"}),0===c(".outlet-index-page").length&&s(),u(c(".lazy")),_.bind("contextmenu",function(){return!1}),_.on("touchend touchcancel",function(e){var t,i,n,s=c(e.target).closest("li");if(e.preventDefault(),"undefined"!=typeof s&&0!==s.length){if(s.hasClass("filter"))s.hasClass("active")?(g.hideFilter(),q.addClass("active"),s.removeClass("active")):(q=s.siblings(".active"),q.removeClass("active"),s.addClass("active"),g.showFilter());else{if(i=a(s),t=S[i],s.hasClass("active")){if(s.hasClass("new")||s.hasClass("sale")||s.hasClass("all"))return;(s.hasClass("price")||s.hasClass("discount"))&&(s.find(".icon > .iconfont").toggleClass("cur"),q=s,t.reload=!0,t.order=0===t.order?1:0)}else{if(n=s.siblings(".active"),q=s,n.hasClass("filter"))g.hideFilter();else switch(m.children(".container:not(.hide)").addClass("hide"),i){case"newest":v.removeClass("hide");break;case"price":y.removeClass("hide");break;case"discount":w.removeClass("hide");break;case"sale":k.removeClass("hide");break;case"all":C.removeClass("hide")}n.removeClass("active"),s.addClass("active")}t.reload&&o()}e.stopPropagation()}}),c(window).scroll(function(){0===c(".outlet-index-page").length&&window.requestAnimationFrame(r)}),_.on("touchstart","li",function(){c(this).addClass("bytouch")}).on("touchend touchcancel",function(){_.find("li").removeClass("bytouch")}),e.exports={start:o}}]);
  1 +webpackJsonp([5],[function(e,t,i){var n=i(12);n.start()},,function(e,t,i){function n(e,t){var i,n;"undefined"!=typeof e&&(i=e.toString(),n=t&&t>0?t:2e3,o.text(i).show(),a=setTimeout(function(){"block"===o.css("display")&&o.hide()},n))}var o,a,s=i(1);!function(){var e='<div id="yoho-tip" class="yoho-tip"></div>';s(".yoho-page").append(e),o=s("#yoho-tip"),o.on("touchend",function(){o.hide(),clearTimeout(a)})}(),t.show=n},function(e,t,i){function n(e){var t,i,n=document.cookie;return document.cookie&&""!==document.cookie&&(i=n.indexOf(e+"="),i>-1&&(i+=e.length+1,t=decodeURIComponent(f.trim(n.substring(i,n.indexOf(";",i)))))),t}function o(e,t,i){var n,o,a,s,r="";"undefined"!=typeof t&&(i=i||{},null===t&&(t="",i.expires=-1),i.expires&&("number"==typeof i.expires||i.expires.toUTCString)&&("number"==typeof i.expires?(s=new Date,s.setTime(s.getTime()+24*i.expires*60*60*1e3)):s=i.expires,r="; expires="+s.toUTCString()),n=i.path?"; path="+i.path:"",o=i.domain?"; domain="+i.domain:"",a=i.secure?"; secure":"",document.cookie=[e,"=",encodeURIComponent(t),r,n,o,a].join(""))}function a(){var e=!!navigator.cookieEnabled;return"undefined"!=typeof navigator.cookieEnabled||e||(document.cookie="testcookie",e=-1!==document.cookie.indexOf("testcookie")),e}function s(){var e,t=n("_UID");return"undefined"==typeof t?0:(e=t.split("::"),"undefined"==typeof e||e.length<4?0:e)}function r(){var e=s();return 0===e?0:e[1]}function d(){var e=n("_g");return"undefined"==typeof e?"":JSON.parse(e).k}function c(){var e;0!==p.length&&(e=Math.min(f(window).height(),window.screen.availHeight),f("body").height()<=e-parseInt(p.css("height"),0)?p.addClass("bottom"):p.removeClass("bottom"))}function l(e){var t=f(e).outerHeight();e&&p.css("margin-bottom",t+"px")}function h(){var e,t,i=[],n=window.location.search.slice(1).split("&");for(t=0;t<n.length;t++)e=n[t].split("="),i.push(e[0]),i[e[0]]=e[1];return i}function u(e){return e.replace(/(\d{3})\d{4}(\d{4})/,"$1****$2")}var f=i(1),g=i(4),p=f("#yoho-footer"),m=f(".yoho-page"),v=f(".yoho-header");!function(){var e,t=p.children(".op-row"),i=f(".back-to-top"),n=s();c(),0===n?t.prepend('<a href="http://m.yohobuy.com/signin.html?refer='+location.href+'">登录</a><span class="sep-line">|</span><a href="http://m.yohobuy.com/reg.html">注册</a>'):t.prepend('<span>Hi,</span><a class="user-name" href="http://m.yohobuy.com/home?tmp='+Math.random()+'">'+n[0]+'</a><a href="http://m.yohobuy.com/passport/signout/index">退出</a>'),i.length>0&&(e=new g(i[0]),e.on("tap",function(e){return f(window).scrollTop(0),e.srcEvent.preventDefault(),!1})),p.removeClass("hide")}(),function(e,t,i,n,o){var a=t.createElement(i),s=t.getElementsByTagName(i)[0];e.YohoAcquisitionObject=o,e[o]=function(){e[o].p=arguments},a.async=1,a.src=n,s.parentNode.insertBefore(a,s)}(window,document,"script",("https:"===document.location.protocol?"https":"http")+"://cdn.yoho.cn/yas-jssdk/1.0.17/yas.js","_yas"),function(){var e=r();e=0===e?"":e,window._ozuid=e,window._yas&&window._yas(1*new Date,"1.0.17","yohobuy_m",e,"","")}(),v.on("touchstart","a",function(){v.find("a").removeClass("highlight"),f(this).addClass("highlight")}).on("touchend touchcancel","a",function(){f(this).removeClass("highlight")}),m.on("touchstart",".tap-hightlight",function(){f(this).siblings(".tap-hightlight").removeClass("highlight"),f(this).addClass("highlight")}).on("touchend touchcancel",".tap-hightlight",function(){f(this).removeClass("highlight")}),f(".nav-home").on("touchstart",function(){f(".homebuttom").toggleClass("hide")}),function(){var e,t,i=0,n="webkit moz ms o".split(" "),o=window.requestAnimationFrame,a=window.cancelAnimationFrame;for(t=0;t<n.length&&(!o||!a);t++)e=n[t],o=o||window[e+"RequestAnimationFrame"],a=a||window[e+"CancelAnimationFrame"]||window[e+"CancelRequestAnimationFrame"];o&&a||(o=function(e){var t=(new Date).getTime(),n=Math.max(0,16-(t-i)),o=window.setTimeout(function(){e(t+n)},n);return i=t+n,o},a=function(e){window.clearTimeout(e)}),window.requestAnimationFrame=o,window.cancelAnimationFrame=a}(),f.extend({queryString:h}),11===p.find(".user-name").text().length&&p.find(".user-name").html(u(p.find(".user-name").text())),window.cookie=n,window.setCookie=o,window.isCookiesEnabled=a,window.getUser=s,window.getUid=r,window.getShoppingKey=d,window.rePosFooter=c,window.reMarginFooter=l,window.queryString=h()},,,function(e,t,i){function n(e){var t='<div class="loading-mask hide"><div class="loading"><div></div><div></div><div></div></div></div>';c=!0,e||(e=d),e.append(t),s=e.children(".loading-mask"),r("body").on("touchstart touchmove touchend",".loading-mask",function(){return!1})}function o(){c||(n(),c=!0),s.removeClass("hide")}function a(){s.addClass("hide")}var s,r=i(1),d=r(".yoho-page"),c=!1;t.init=n,t.showLoadingMask=o,t.hideLoadingMask=a,t.show=o,t.hide=a},,,function(e,t,i){var n=i(1),o={};n(".query-param").each(function(){var e=n(this);o[e.data("attr")]=e.val()}),e.exports=o},function(e,t,i){function n(){u.addClass("hide")}function o(){u.removeClass("hide")}function a(){var e=p(".filter-body .classify");e.on("touchstart",".shower",function(){e.removeClass("highlight"),p(this).addClass("highlight")}).on("touchend touchcancel",".shower",function(){p(this).removeClass("highlight")})}function s(){var e=p(".filter-body .sub-item");e.on("touchstart",function(){e.removeClass("highlight"),p(this).addClass("highlight")}).on("touchend touchcancel",function(){p(this).removeClass("highlight")})}function r(e){e.hasClass("active")||(e.siblings(".active").removeClass("active"),e.addClass("active"))}function d(e){var t,i,n=e.closest(".sub-classify"),o=n.siblings(".shower");return e.hasClass("chosed")?n:(n.children(".chosed").removeClass("chosed"),e.addClass("chosed"),t=p.trim(e.html()),i=p.trim(o.html()),o.html(i.substring(0,i.indexOf("</span>")+7)+t.substring(0,t.indexOf("<i"))),0===e.index()?o.addClass("default"):o.removeClass("default"),n)}function c(e){var t,i=e.data("id");t=d(e),f&&f({type:t.data("type"),id:i}),g&&g(),n()}function l(e){var t;f=e.fCbFn,g=e.hCbFn,window.missStatus=e.missStatus,a(),s(),u=p(".filter-mask"),u[0]&&(t=new m(u[0]),t.on("tap",function(e){var t,i=p(e.target);e.preventDefault(),i.closest(".filter-body").length>0?(t=i.closest(".sub-item"),t.length>0?(t=i.closest("li"),c(t)):(t=i.closest(".classify-item"),e.srcEvent.stopPropagation(),r(t))):(n(),g&&g())}))}function h(){"undefined"!=typeof u&&(p(".sub-classify").each(function(){d(p(this).children(":first-child"))}),r(p(".classify > :first-child")))}var u,f,g,p=i(1),m=i(4);t.initFilter=l,t.showFilter=o,t.hideFilter=n,t.resetFilter=h},,function(e,t,i){function n(e){var t=new RegExp("(^|&)"+e+"=([^&]*)(&|$)"),i=window.location.search.substr(1).match(t);return null!==i?i[2]:null}function o(e){var t="category";return e.hasClass("new")?t="newest":e.hasClass("price")?t="price":e.hasClass("discount")?t="discount":e.hasClass("sale")?t="sale":e.hasClass("all")?t="all":e.hasClass("category")&&(t="category"),t}function a(e,t,i){var n,a,s,r,h,g={};if(!c){if(e&&!i){for(a in S)S.hasOwnProperty(a)&&(S[a].reload=!0);switch(E.children(".active").removeClass("active"),q.addClass("active"),e.type){case"gender":n={gender:e.id};break;case"ageLevel":n={age_level:e.id};break;case"brand":n={brand:e.id};break;case"sort":n={sort:e.id};break;case"color":n={color:e.id};break;case"size":n={size:e.id};break;case"price":n={price:e.id};break;case"discount":n={discount:e.id};break;case"p_d":n={p_d:e.id}}l.extend(_,n)}if(l.extend(t||{},_),r=o(q),s=S[r||"all"],h=s.page+1,s.reload)h=1;else if(s.end)return;t?(d=t,l.extend(g,t,{type:r,order:s.order,page:h})):(d=null,l.extend(g,_,{type:r,order:s.order,page:h})),c=!0,p.showLoadingMask(),l.ajax({type:"GET",url:"/product/sale/search",data:g,success:function(e){var t,i;switch(r){case"newest":t=v;break;case"price":t=y;break;case"discount":t=w;break;case"sale":t=k;break;case"all":t=C;break;case"categroy":t=b;break;default:t=C}t.hasClass("hide")&&(t.siblings().addClass("hide"),t.removeClass("hide")),""===e?(s.end=!0,s.reload&&t.html(F)):("category"===r&&(s.page=1),s.reload?(t.html(e),u(t.find(".lazy"))):(i=t.find(".good-info").length,t.append(e),u(t.find(".good-info:gt("+(i-1)+") .lazy")))),s.reload=!1,s.page=h,c=!1,p.hideLoadingMask(),window.rePosFooter(),l(".good-detail-text .name").each(function(){var e=l(this),t=e.find("a");t[0].mlellipsis(2)})},error:function(){f.show("网络断开连接了~"),c=!1,p.hideLoadingMask()}})}}function s(){l.ajax({type:"GET",url:"/product/sale/filter",data:_,success:function(e){m.append(e),g.initFilter({fCbFn:a,hCbFn:function(){q.addClass("active"),q.siblings(".filter").removeClass("active")},missStatus:!0})}})}function r(){var e=l(window).scrollTop();e>T&&e+x>l(document).height()-.25*m.height()-50&&"undefined"!=typeof q&&(d?a({type:"category"},d,!0):a()),T=e}var d,c,l=i(1),h=i(8),u=i(7),f=i(2),g=i(10),p=i(6),m=l("#goods-container"),v=m.find(".new-goods"),w=m.find(".discount-goods"),y=m.find(".price-goods"),C=m.find(".all-goods"),b=m.find(".category-goods"),k=m.find(".sale-goods"),x=l(window).height(),F='<p class="no-result">未找到相关搜索结果</p>',T=0,_=i(9),E=l("#list-nav"),S={all:{order:0,reload:!0,page:0,end:!1},newest:{order:0,reload:!0,page:0,end:!1},price:{order:1,reload:!0,page:0,end:!1},discount:{order:1,reload:!0,page:0,end:!1},sale:{order:0,reload:!0,page:0,end:!1},category:{order:0,reload:!0,page:0,end:!1}},q=E.find(".active");i(3),h.init(),u(l("img.lazy")),l(".sale-vip-page").length>0?_.saleType=2:l(".discount-detail-page").length>0&&(_.saleType=3,_.productPool=l(".discount-detail-page").data("product-pool")||""),l.extend(_,{yh_channel:n("channel")||"all"}),0===l(".outlet-index-page").length&&s(),u(l(".lazy")),E.bind("contextmenu",function(){return!1}),E.on("touchend touchcancel",function(e){var t,i,n,s=l(e.target).closest("li");if(e.preventDefault(),"undefined"!=typeof s&&0!==s.length){if(s.hasClass("filter"))s.hasClass("active")?(g.hideFilter(),q.addClass("active"),s.removeClass("active")):(q=s.siblings(".active"),q.removeClass("active"),s.addClass("active"),g.showFilter());else{if(i=o(s),t=S[i],s.hasClass("active")){if(s.hasClass("new")||s.hasClass("sale")||s.hasClass("all"))return;(s.hasClass("price")||s.hasClass("discount"))&&(s.find(".icon > .iconfont").toggleClass("cur"),q=s,t.reload=!0,t.order=0===t.order?1:0)}else{if(n=s.siblings(".active"),q=s,n.hasClass("filter"))g.hideFilter();else switch(m.children(".container:not(.hide)").addClass("hide"),i){case"newest":v.removeClass("hide");break;case"price":y.removeClass("hide");break;case"discount":w.removeClass("hide");break;case"sale":k.removeClass("hide");break;case"all":C.removeClass("hide")}n.removeClass("active"),s.addClass("active")}t.reload&&a()}e.stopPropagation()}}),l(window).scroll(function(){0===l(".outlet-index-page").length&&window.requestAnimationFrame(r)}),E.on("touchstart","li",function(){l(this).addClass("bytouch")}).on("touchend touchcancel",function(){E.find("li").removeClass("bytouch")}),e.exports={start:a}}]);
  1 +require('./invite/index');
  1 +
  2 +var $ = require('yoho-jquery'),
  3 + loading = require('../../plugin/loading'),
  4 + tip = require('../../plugin/tip'),
  5 + inviteObj = {};
  6 +
  7 +require('../../common');
  8 +
  9 +inviteObj = {
  10 + el: {
  11 + $sendValidateBtn: $('.send-validate-btn'),
  12 + $inviteDialog: $('.invite-dialog'),
  13 + $isreg: $('.isreg'),
  14 + $oldget: $('.oldget'),
  15 + $receiveBtn: $('.receive-btn'),
  16 + $wealBtn: $('.weal-btn'),
  17 + $shareTag: $('.share-tag'),
  18 + $ruleTit: $('.rule-tit'),
  19 + $downloadBtn: $('.download-btn'),
  20 +
  21 + // 变量
  22 + inter: 0, // 定时器变量
  23 + ischeckCode: false, // 是否成功发送验证码
  24 + actId: $('.invite-group input[name="actId"]').val(), // 活动id
  25 + shareUid: $('.invite-group input[name="shareUid"]').val(), // 分享者id
  26 + openId: $('.invite-group input[name="openId"]').val(), // 微信openId
  27 + nums: $('.invite-group input[name="nums"]').val() // 发送优惠券的次数
  28 + },
  29 + init: function() {
  30 + var $el = this.el, that = this, isreceiveBtn = false;
  31 +
  32 + // 设置大背景,因为body只能后来设置,前期设置page里面
  33 + if ($('.invite-page').length > 0) {
  34 + $('body').addClass('invite-page-bg');
  35 + $('.invite-page').removeClass('invite-page-bg');
  36 +
  37 + // 活动已结束背景
  38 + $('.invite-dialog-bg').css({
  39 + height: $(window).height()
  40 + });
  41 + }
  42 +
  43 + // 发送验证码
  44 + $el.$sendValidateBtn.click(function() {
  45 + var mobile = $('.invite-mobile').val();
  46 +
  47 + if (mobile === '' || $(this).hasClass('gray-info')) {
  48 + return true;
  49 + }
  50 +
  51 + $el.ischeckCode = false;
  52 +
  53 + $.ajax({
  54 + url: '/activity/invite/sendRegCodeToMobile',
  55 + data: {
  56 + mobile: mobile
  57 + },
  58 + success: function(result) {
  59 + switch (result.code) {
  60 + case 404:
  61 + // 老用户
  62 + that.ischeckOldUserCoupon(mobile);
  63 + break;
  64 + case 200:
  65 + that.setGrayInfo();
  66 + $el.ischeckCode = true;
  67 + break;
  68 + default:
  69 + that.ishintDialog(result.message);
  70 + break;
  71 + }
  72 + },
  73 + error: function() {
  74 + tip.show('发送验证码失败~');
  75 + }
  76 + });
  77 + });
  78 +
  79 + // 立即分享
  80 + $el.$wealBtn.click(function() {
  81 + $el.$shareTag.fadeIn();
  82 + setTimeout(function() {
  83 + $el.$shareTag.fadeOut();
  84 + }, 2000);
  85 + });
  86 +
  87 + // 活动细节
  88 + $el.$ruleTit.click(function() {
  89 + $('.rule-con').toggle();
  90 + });
  91 +
  92 + // 下载app
  93 + $el.$downloadBtn.click(function() {
  94 + that.downLoadApp();
  95 + });
  96 +
  97 + // 领取福利
  98 + $el.$receiveBtn.click(function() {
  99 + if (isreceiveBtn) {
  100 + return true;
  101 + }
  102 + isreceiveBtn = true;
  103 + loading.showLoadingMask();
  104 + that.receiveFun();
  105 + loading.hideLoadingMask();
  106 + isreceiveBtn = false;
  107 + });
  108 + },
  109 +
  110 + // 发送已注册用户参与活动的优惠券
  111 + ischeckOldUserCoupon: function(mobile) {
  112 + var that = this, $el = this.el;
  113 +
  114 + $.ajax({
  115 + url: '/activity/invite/checkOldUserCoupon',
  116 + data: {
  117 + mobile: mobile,
  118 + actId: $el.actId
  119 + },
  120 + async: false,
  121 + success: function(result) {
  122 + switch (result.code) {
  123 + case 201:
  124 + // 已经领取过
  125 + that.showDialog($el.$isreg);
  126 + break;
  127 + case 200:
  128 + // 发送慰问劵--不须要发送验证码,后台自动发送
  129 + that.showDialog($el.$oldget);
  130 + break;
  131 + default:
  132 + tip.show('发送验证码失败~');
  133 + break;
  134 + }
  135 + },
  136 + error: function() {
  137 + tip.show('发送验证码失败~');
  138 + }
  139 + });
  140 + },
  141 +
  142 + // 发送验证码提示
  143 + setGrayInfo: function() {
  144 + var $el = this.el,
  145 + that = this,
  146 + timeoutPutCount = 60;
  147 +
  148 + $el.$sendValidateBtn.html(timeoutPutCount + 'S');
  149 + $el.$sendValidateBtn.addClass('gray-info');
  150 +
  151 + // 设置定时器
  152 + clearInterval($el.inter);
  153 + $el.inter = setInterval(function() {
  154 + $el.$sendValidateBtn.html(timeoutPutCount-- + 'S');
  155 + if (timeoutPutCount <= 0) {
  156 + that.clearGrayInfo();
  157 + }
  158 + }, 1000);
  159 + },
  160 +
  161 + // 取消 验证码提示
  162 + clearGrayInfo: function() {
  163 + var $el = this.el;
  164 +
  165 + clearInterval($el.inter);
  166 + $el.$sendValidateBtn.removeClass('gray-info');
  167 + $el.$sendValidateBtn.html('发送验证码');
  168 + },
  169 +
  170 + // 验证验证码
  171 + receiveFun: function() {
  172 + var that = this,
  173 + $el = this.el,
  174 + mobile = $('.invite-mobile').val(),
  175 + code = $('.invite-code').val();
  176 +
  177 + if (mobile === '') {
  178 + that.ishintDialog('请输入手机号!');
  179 + return true;
  180 + }
  181 +
  182 + if (code === '') {
  183 + that.ishintDialog('请输入验证码!');
  184 + return true;
  185 + }
  186 +
  187 + // 如果未单击发送验证码
  188 + if ($el.ischeckCode === false) {
  189 + that.ishintDialog('该验证码或已失效,请单击发送验证码!');
  190 + that.clearGrayInfo();
  191 + return true;
  192 + }
  193 +
  194 + $.ajax({
  195 + url: '/activity/invite/validRegCode',
  196 + data: {
  197 + mobile: mobile,
  198 + code: code
  199 + },
  200 + async: false,
  201 + success: function(result) {
  202 + if (result.code === 200) {
  203 + // 跳注册方法
  204 + that.registerFun();
  205 + } else {
  206 + that.ishintDialog(result.message);
  207 + }
  208 + },
  209 + error: function() {
  210 + tip.show('账号注册失败,请稍后在试~');
  211 + }
  212 + });
  213 + },
  214 +
  215 + // 验证码通过,跳注册方法
  216 + registerFun: function() {
  217 + var that = this,
  218 + mobile = $('.invite-mobile').val();
  219 +
  220 + if (mobile === '') {
  221 + that.ishintDialog('请输入手机号!');
  222 + return true;
  223 + }
  224 +
  225 + $.ajax({
  226 + url: '/activity/invite/register',
  227 + data: {
  228 + mobile: mobile
  229 + },
  230 + async: false,
  231 + success: function(result) {
  232 + switch (result.code) {
  233 + case 205:
  234 + that.ischeckOldUserCoupon(mobile);
  235 + break;
  236 + case 200:
  237 + that.receiveCouponsFun(result.data.uid);
  238 + break;
  239 + default:
  240 + that.ishintDialog(result.message);
  241 + break;
  242 + }
  243 + },
  244 + error: function() {
  245 + tip.show('操作失败~');
  246 + }
  247 + });
  248 + },
  249 +
  250 + // 领取优惠券
  251 + receiveCouponsFun: function(uid) {
  252 + var that = this,
  253 + $el = this.el;
  254 +
  255 + window.setCookie('inviteUid', uid);
  256 + $.ajax({
  257 + url: '/activity/invite/receiveCoupons',
  258 + data: {
  259 + actId: $el.actId,
  260 + shareUid: $el.shareUid,
  261 + openId: $el.openId,
  262 + uid: uid,
  263 + nums: $el.nums
  264 + },
  265 + async: false,
  266 + success: function(result) {
  267 + switch (result.code) {
  268 + case 200:
  269 + document.location.href = result.data.goUrl;
  270 + break;
  271 + default:
  272 + that.ishintDialog(result.message);
  273 + break;
  274 + }
  275 + },
  276 + error: function() {
  277 + tip.show('操作失败~');
  278 + }
  279 + });
  280 + },
  281 +
  282 + // 弹出框
  283 + showDialog: function($dom) {
  284 + var that = this,
  285 + $bg = $('<div>').addClass('invite-dialog-bg');
  286 +
  287 + $dom.show();
  288 + $('.invite-dialog-bg').remove();
  289 +
  290 + $bg.css({
  291 + height: $(window).height()
  292 + });
  293 +
  294 + $('.invite-content-page').append($bg);
  295 +
  296 + // 弹框重置
  297 + $dom.find('.cancelbtn').unbind('click').bind('click', function() {
  298 + $('.invite-mobile').val('');
  299 + that.clearShowDialog();
  300 + });
  301 +
  302 + // 错误信息提示,确定按钮
  303 + $dom.find('.closeBtn').unbind('click').bind('click', function() {
  304 + that.clearShowDialog();
  305 + });
  306 + },
  307 +
  308 + // 错误提示弹框
  309 + ishintDialog: function(msg) {
  310 + this.showDialog($('.ishint'));
  311 + $('.ishint-content').html(msg);
  312 + },
  313 + clearShowDialog: function() {
  314 + var $el = this.el,
  315 + that = this;
  316 +
  317 + $('.invite-dialog-bg').remove();
  318 + $el.$inviteDialog.hide();
  319 + that.clearGrayInfo();
  320 + },
  321 +
  322 + // 下载app
  323 + downLoadApp: function() {
  324 + var appUrl = 'http://a.app.qq.com/o/simple.jsp?pkgname=com.yoho&g_f=995445';
  325 +
  326 + setTimeout(function() {
  327 + window.location = appUrl;
  328 + }, 200);
  329 + }
  330 +};
  331 +
  332 +inviteObj.init();
  1 +.invite-page-bg {
  2 + background-image: resolve('activity/invite/body_bg.png');
  3 + min-height: 200px;
  4 +}
  5 +
  6 +.invite-page {
  7 + font-family: 'Microsoft YaHei';
  8 + color: #fff;
  9 +
  10 + * {
  11 + margin: 0;
  12 + padding: 0;
  13 + font-size: 28px;
  14 + }
  15 +
  16 + /* 手机号 领福利 */
  17 + .invite-content-page {
  18 +
  19 + text-align: center;
  20 + color: #fff;
  21 +
  22 + .bold {
  23 + font-weight: bold;
  24 + }
  25 +
  26 + .fz9 {
  27 + -webkit-transform: scale(0.75);
  28 + font-size: 18px;
  29 + -webkit-transform-origin: top left;
  30 + }
  31 +
  32 + .fz11 {
  33 + -webkit-transform: scale(0.92);
  34 + font-size: 22px;
  35 + }
  36 +
  37 + .fz13 {
  38 + font-size: 26px;
  39 + }
  40 +
  41 + .fz14 {
  42 + font-size: 28px;
  43 + }
  44 +
  45 + .fz15 {
  46 + font-size: 30px;
  47 + }
  48 +
  49 + .fz16 {
  50 + font-size: 32px;
  51 + }
  52 +
  53 + .fz17 {
  54 + font-size: 34px;
  55 + }
  56 +
  57 + .fz18 {
  58 + font-size: 36px;
  59 + }
  60 +
  61 + .t-shadow {
  62 + text-shadow: 0 4px 10px #797979;
  63 + }
  64 +
  65 + .invite-group {
  66 + text-align: left;
  67 + margin: 20px 40px 0;
  68 +
  69 + input {
  70 + width: 100%;
  71 + height: 70px;
  72 + margin-bottom: 20px;
  73 + border-radius: 4px;
  74 + border: none;
  75 + padding: 10px;
  76 + }
  77 +
  78 + p {
  79 + text-align: center;
  80 + }
  81 +
  82 + .send-validate-btn,
  83 + .gray-info {
  84 + position: absolute;
  85 + background-color: #ff7900;
  86 + height: 70px;
  87 + line-height: 70px;
  88 + cursor: pointer;
  89 + right: 0;
  90 + padding: 0 10px;
  91 + width: 160px;
  92 + }
  93 +
  94 + .gray-info {
  95 + color: #b7ad80;
  96 + background-color: #fef7d8;
  97 + cursor: none;
  98 + text-align: center;
  99 + font-size: 36px;
  100 + }
  101 + }
  102 + }
  103 +
  104 + .invite-dialog-bg {
  105 + background-color: #0d0d0d;
  106 + opacity: 0.5;
  107 + width: 100%;
  108 + height: 664px;
  109 + position: fixed;
  110 + top: 0;
  111 + left: 0;
  112 + z-index: 1;
  113 + }
  114 +
  115 + .relative {
  116 + position: relative;
  117 + right: 0;
  118 + }
  119 +
  120 + .invite-dialog {
  121 + position: fixed;
  122 + background-color: #272624;
  123 + height: 400px;
  124 + top: 32%;
  125 + left: 10%;
  126 + width: 80%;
  127 + z-index: 2;
  128 + overflow-y: auto;
  129 +
  130 + .invite-dialog-center {
  131 + text-align: center;
  132 + padding: 30px 20px;
  133 +
  134 + p {
  135 + line-height: 50px;
  136 + }
  137 + }
  138 + }
  139 +
  140 + .invite-btn {
  141 + width: 48%;
  142 + border: 1px solid #ff7900;
  143 + background-color: #ff7900;
  144 + color: #fff;
  145 + line-height: 50px;
  146 + font-weight: bold;
  147 + margin-top: 10px;
  148 + cursor: pointer;
  149 + display: inline-block;
  150 + padding: 14px 20px;
  151 + }
  152 +
  153 + .btn-group .invite-btn {
  154 + color: #ede6c9;
  155 + }
  156 +
  157 + .over-color a {
  158 + color: #fff;
  159 + }
  160 +
  161 + .fw90 {
  162 + width: 90%;
  163 + }
  164 +
  165 + .ishint-content {
  166 + margin-top: 80px;
  167 + height: 180px;
  168 + padding: 20px;
  169 + }
  170 +
  171 + /** 分享列表 **/
  172 + .invite-content-list {
  173 + text-align: center;
  174 +
  175 + .bold {
  176 + font-weight: bold;
  177 + }
  178 +
  179 + .center {
  180 + text-align: center;
  181 + }
  182 +
  183 + .relative {
  184 + position: relative;
  185 + overflow: hidden;
  186 + }
  187 +
  188 + .absolute {
  189 + position: absolute;
  190 + top: 0;
  191 + left: 0;
  192 + z-index: 0;
  193 + }
  194 +
  195 + .fz9 {
  196 + -webkit-transform: scale(0.75);
  197 + font-size: 18px;
  198 + -webkit-transform-origin: top left;
  199 + }
  200 +
  201 + .fz11 {
  202 + -webkit-transform: scale(0.92);
  203 + font-size: 22px;
  204 + }
  205 +
  206 + .fz13 {
  207 + font-size: 26px;
  208 + }
  209 +
  210 + .fz14 {
  211 + font-size: 28px;
  212 + }
  213 +
  214 + .fz15 {
  215 + font-size: 30px;
  216 + }
  217 +
  218 + .fz16 {
  219 + font-size: 32px;
  220 + }
  221 +
  222 + .fz17 {
  223 + font-size: 34px;
  224 + }
  225 +
  226 + .fz18 {
  227 + font-size: 36px;
  228 + }
  229 +
  230 + .fz19 {
  231 + font-size: 38px;
  232 + }
  233 +
  234 + .fz20 {
  235 + font-size: 40px;
  236 + }
  237 +
  238 + .fz22 {
  239 + font-size: 44px;
  240 + }
  241 +
  242 + .fz37 {
  243 + font-size: 74px;
  244 + }
  245 +
  246 + .mar-top-a {
  247 + margin-top: 14%;
  248 + }
  249 +
  250 + .mar-top-b {
  251 + margin-top: 4%;
  252 + }
  253 +
  254 + .mar-top-c {
  255 + margin-top: 80px;
  256 + }
  257 +
  258 + .mar-top-d {
  259 + margin-top: 40px;
  260 + }
  261 +
  262 + .t-shadow {
  263 + text-shadow: 0 8px 20px #797979;
  264 + }
  265 +
  266 + /* 红包已领完 */
  267 + .invite-box {
  268 + width: 100%;
  269 + min-width: 320px;
  270 + font-family: "Microsoft YaHei";
  271 + color: #fff;
  272 + padding-bottom: 5%;
  273 + }
  274 +
  275 + .fn-left {
  276 + float: left !important;
  277 + }
  278 +
  279 + .fn-right {
  280 + float: right !important;
  281 + }
  282 +
  283 + .coupon-box {
  284 + width: 384px;
  285 + height: 220px;
  286 + padding: 32px 0 0 240px;
  287 + background-color: #f4a70f;
  288 + margin: 80px auto 0;
  289 + text-align: left;
  290 + border-left: 1px dashed #000;
  291 + border-right: 1px dashed #000;
  292 + }
  293 +
  294 + .coupon-box strong {
  295 + display: inline-block;
  296 + margin-top: -4px;
  297 + }
  298 +
  299 + .coupon-box .pirbox {
  300 + width: 200px;
  301 + height: 160px;
  302 + font-size: 120px;
  303 + font-weight: bold;
  304 + font-family: arial;
  305 + padding-left: 44px;
  306 + left: 40px;
  307 + letter-spacing: -0.07em;
  308 + text-align: left;
  309 + overflow: hidden;
  310 + }
  311 +
  312 + .coupon-box .pirbox em {
  313 + font-size: 50px;
  314 + font-weight: normal;
  315 + font-family: 'Microsoft YaHei';
  316 + top: 32px;
  317 + line-height: normal;
  318 + }
  319 +
  320 + .coupon-box .count-not {
  321 + text-align: center;
  322 + overflow: hidden;
  323 + margin-top: 144px;
  324 + padding: 0 24px;
  325 + width: 100%;
  326 + }
  327 +
  328 + .coupon-box .count-not hr {
  329 + height: 0;
  330 + border: 0;
  331 + width: 60px;
  332 + margin: 12px;
  333 + border-top: 1px solid #e4e4e4;
  334 + }
  335 +
  336 + .coupon-box.mar-top-a {
  337 + margin-top: 14%;
  338 + padding-top: 40px;
  339 + }
  340 +
  341 + .hurry-size {
  342 + line-height: 1.4em;
  343 + margin-top: 60px;
  344 + }
  345 +
  346 + .download-btn,
  347 + .weal-btn {
  348 + width: 410px;
  349 + height: 88px;
  350 + line-height: 88px;
  351 + background-color: #ff7800;
  352 + color: #fef7d8;
  353 + display: inline-block;
  354 + margin: 40px 0 6px;
  355 + border-radius: 4px;
  356 + }
  357 +
  358 + /* 活动细则 */
  359 + .rule-tit {
  360 + text-decoration: underline;
  361 + margin-top: 36px;
  362 + }
  363 +
  364 + ol.rule-con {
  365 + padding: 20px 30px;
  366 + text-align: left;
  367 + margin: 0;
  368 + }
  369 +
  370 + ol.rule-con li {
  371 + list-style-type: decimal;
  372 + list-style-position: inside;
  373 + padding-bottom: 6px;
  374 + }
  375 +
  376 + /* 邀请小伙伴 */
  377 + .draw-coupon {
  378 + margin-top: 30px;
  379 + text-align: center;
  380 + }
  381 +
  382 + .goon {
  383 + margin: 60px 0 12px;
  384 + }
  385 +
  386 + .congratu-coupon {
  387 + margin-top: 68px;
  388 + }
  389 +
  390 + ul.list-port {
  391 + display: inline-block;
  392 + margin-top: 60px;
  393 + }
  394 +
  395 + ul.list-port li {
  396 + width: 120px;
  397 + float: left;
  398 + overflow: hidden;
  399 + }
  400 +
  401 + ul.list-port li .pic {
  402 + width: 80px;
  403 + height: 80px;
  404 + background-color: #808080;
  405 + border-radius: 50%;
  406 + margin: 0 20px;
  407 + }
  408 +
  409 + ul.list-port li .name,
  410 + ul.list-port li .pon {
  411 + -webkit-transform: scale(0.84);
  412 + font-size: 20px;
  413 + }
  414 +
  415 + ul.list-port li .name {
  416 + height: 1.3em;
  417 + line-height: 1.4em;
  418 + white-space: nowrap;
  419 + text-overflow: ellipsis;
  420 + overflow: hidden;
  421 + }
  422 +
  423 + ul.list-port li .pon {
  424 + color: #ebd518;
  425 + }
  426 +
  427 + ul.list-firends {
  428 + margin-top: 172px;
  429 + }
  430 +
  431 + /* 新用户10元领券 */
  432 + .now-login {
  433 + margin: 12px 0 20px;
  434 + text-decoration: underline;
  435 + display: inline-block;
  436 + }
  437 +
  438 + /* 引导层 */
  439 + .share-tag {
  440 + width: 100%;
  441 + height: 100%;
  442 + position: fixed;
  443 + top: 0;
  444 + left: 0;
  445 + z-index: 100;
  446 + overflow: hidden;
  447 + background-color: #0d0d0d;
  448 + opacity: 0.5;
  449 + display: none;
  450 +
  451 + img {
  452 + float: right;
  453 + }
  454 + }
  455 +
  456 + /* v4 */
  457 + .cgreen {
  458 + color: #3e7e27;
  459 + }
  460 +
  461 + .cfe {
  462 + color: #fef7d8;
  463 + }
  464 +
  465 + .ts {
  466 + text-shadow: 0 2px 6px #5b5b59;
  467 + }
  468 + }
  469 +}
  470 +
1 @charset "utf-8"; 1 @charset "utf-8";
  2 +@import "me/index";
2 @import "layout/reset"; 3 @import "layout/reset";
3 @import "layout/common"; 4 @import "layout/common";
4 @import "layout/loading"; 5 @import "layout/loading";
@@ -10,6 +11,7 @@ @@ -10,6 +11,7 @@
10 @import "product/index"; 11 @import "product/index";
11 @import "activity/index"; 12 @import "activity/index";
12 @import "passport/index"; 13 @import "passport/index";
  14 +@import "activity/invite";
13 @import "guang/index"; 15 @import "guang/index";
14 @import "cart/chose-panel"; 16 @import "cart/chose-panel";
15 @import "home/index"; 17 @import "home/index";