Showing
100 changed files
with
118 additions
and
21 deletions
Too many changes to show.
To preserve performance only 100 of 100+ files are displayed.
framework @ e9d066dd
@@ -171,6 +171,24 @@ class UserData | @@ -171,6 +171,24 @@ class UserData | ||
171 | } | 171 | } |
172 | 172 | ||
173 | /** | 173 | /** |
174 | + * 删除浏览记录 | ||
175 | + * | ||
176 | + * @param int $uid 用户ID | ||
177 | + * @param int $skn 商品SKN | ||
178 | + * @return array 接口返回的数据 | ||
179 | + */ | ||
180 | + public static function delRecord($uid, $skn) | ||
181 | + { | ||
182 | + $param = Yohobuy::param(); | ||
183 | + $param['method'] = 'app.browse.delete'; | ||
184 | + $param['uid'] = $uid; | ||
185 | + $param['skn'] = $skn; | ||
186 | + $param['client_secret'] = Sign::getSign($param); | ||
187 | + | ||
188 | + return Yohobuy::get(Yohobuy::API_URL, $param); | ||
189 | + } | ||
190 | + | ||
191 | + /** | ||
174 | * YOHO币数据 | 192 | * YOHO币数据 |
175 | * | 193 | * |
176 | * @param int $uid 用户ID | 194 | * @param int $uid 用户ID |
@@ -194,30 +212,23 @@ class UserData | @@ -194,30 +212,23 @@ class UserData | ||
194 | * 优惠券数据 | 212 | * 优惠券数据 |
195 | * | 213 | * |
196 | * @param int $uid 用户ID | 214 | * @param int $uid 用户ID |
215 | + * @param int $status 优惠券状态,0表示未使用,1表示已使用 | ||
197 | * @param int $page 第几页,默认1 | 216 | * @param int $page 第几页,默认1 |
198 | * @param int $limit 限制读取的数目,默认10 | 217 | * @param int $limit 限制读取的数目,默认10 |
199 | * @return array 优惠券接口返回的数据 | 218 | * @return array 优惠券接口返回的数据 |
200 | */ | 219 | */ |
201 | - public static function couponData($uid, $page = 1, $limit = 10) | 220 | + public static function couponData($uid, $status, $page = 1, $limit = 10) |
202 | { | 221 | { |
203 | - $urlList = array(); | ||
204 | - | ||
205 | $param = Yohobuy::param(); | 222 | $param = Yohobuy::param(); |
206 | $param['method'] = 'app.coupons.li'; | 223 | $param['method'] = 'app.coupons.li'; |
207 | $param['uid'] = $uid; | 224 | $param['uid'] = $uid; |
208 | - $param['status'] = 0; | 225 | + $param['status'] = $status; |
209 | $param['page'] = $page; | 226 | $param['page'] = $page; |
210 | $param['limit'] = $limit; | 227 | $param['limit'] = $limit; |
211 | 228 | ||
212 | $param['client_secret'] = Sign::getSign($param); | 229 | $param['client_secret'] = Sign::getSign($param); |
213 | - $urlList['unused'] = Yohobuy::httpBuildQuery(Yohobuy::API_URL, $param); | ||
214 | - | ||
215 | - unset($param['client_secret']); | ||
216 | - $param['status'] = 1; | ||
217 | - $param['client_secret'] = Sign::getSign($param); | ||
218 | - $urlList['used'] = Yohobuy::httpBuildQuery(Yohobuy::API_URL, $param); | ||
219 | 230 | ||
220 | - return Yohobuy::getMulti($urlList); | 231 | + return Yohobuy::get(Yohobuy::API_URL, $param); |
221 | } | 232 | } |
222 | 233 | ||
223 | /** | 234 | /** |
@@ -349,14 +360,16 @@ class UserData | @@ -349,14 +360,16 @@ class UserData | ||
349 | * @param int $uid 用户ID | 360 | * @param int $uid 用户ID |
350 | * @param string $udid 客户端唯一标识 | 361 | * @param string $udid 客户端唯一标识 |
351 | * @param int $suggest_id 意见id | 362 | * @param int $suggest_id 意见id |
363 | + * @param int $reliable 是否靠谱,1表示靠谱,2表示不靠谱 | ||
352 | * @return array 接口返回的数据 | 364 | * @return array 接口返回的数据 |
353 | */ | 365 | */ |
354 | - public static function upAndDown($uid, $udid, $suggest_id) | 366 | + public static function upAndDown($uid, $udid, $suggest_id, $reliable) |
355 | { | 367 | { |
356 | $param = Yohobuy::param(); | 368 | $param = Yohobuy::param(); |
357 | $param['uid'] = $uid; | 369 | $param['uid'] = $uid; |
358 | $param['udid'] = $udid; | 370 | $param['udid'] = $udid; |
359 | - $param['content'] = $suggest_id; | 371 | + $param['is_reliable'] = $reliable; |
372 | + $param['suggest_id'] = $suggest_id; | ||
360 | $param['client_secret'] = Sign::getSign($param); | 373 | $param['client_secret'] = Sign::getSign($param); |
361 | 374 | ||
362 | return Yohobuy::get(Yohobuy::SERVICE_URL . 'suggest/api/v1/suggest/is_reliable', $param); | 375 | return Yohobuy::get(Yohobuy::SERVICE_URL . 'suggest/api/v1/suggest/is_reliable', $param); |
@@ -389,11 +402,11 @@ class UserData | @@ -389,11 +402,11 @@ class UserData | ||
389 | * 我的消息接口 | 402 | * 我的消息接口 |
390 | * | 403 | * |
391 | * @param int $uid 用户ID | 404 | * @param int $uid 用户ID |
392 | - * @param int $page 获取第一页,默认是0 | 405 | + * @param int $page 获取第一页,默认是1 |
393 | * @param int $size 获取数目,默认是10 | 406 | * @param int $size 获取数目,默认是10 |
394 | * @return array 消息接口返回的数据 | 407 | * @return array 消息接口返回的数据 |
395 | */ | 408 | */ |
396 | - public static function messageData($uid, $page = 0, $size = 10) | 409 | + public static function messageData($uid, $page = 1, $size = 10) |
397 | { | 410 | { |
398 | $param = Yohobuy::param(); | 411 | $param = Yohobuy::param(); |
399 | $param['uid'] = $uid; | 412 | $param['uid'] = $uid; |
static/dist/myohobuy/1.2.0/index-debug.js
0 → 100644
This diff could not be displayed because it is too large.
static/dist/myohobuy/1.2.0/index.css
0 → 100644
This diff could not be displayed because it is too large.
static/dist/myohobuy/1.2.0/index.css.map
0 → 100644
This diff could not be displayed because it is too large.
static/dist/myohobuy/1.2.0/index.js
0 → 100644
1 | +define("index",["jquery","hammer","swiper","lazyload","mlellipsis","iscroll-probe","handlebars","source-map","index"],function(e,t,n){var o;e("js/common"),e("js/category/entry"),e("js/guang/entry"),e("js/home/entry"),e("js/index/entry"),e("js/passport/entry"),e("js/product/entry"),e("js/me/entry"),n.exports=o}),define("js/common",["jquery"],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,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,t=o("_UID");return"undefined"==typeof t?0:(e=t.split("::"),"undefined"==typeof e||e.length<4?0:e)}function s(){var e=a();return 0===e?0:e[1]}function r(){var e=o("_g");return"undefined"==typeof e?"":JSON.parse(e).k}function l(){0!==c.length&&(d("body").height()<=d(window).height()-parseInt(c.css("height"),0)?c.addClass("bottom"):c.removeClass("bottom"))}var d=e("jquery"),c=d("#yoho-footer"),u=d(".yoho-header");!function(){var e=c.children(".op-row"),t=a();l(),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('Hi,<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?token='+t[3]+'">退出</a>'),e.find(".back-to-top").on("touchend",function(){return d(window).scrollTop(0),!1}),c.removeClass("hide")}(),function(){var e=s();e=0===e?"":e,window._ozuid=e,window._yas&&window._yas(1*new Date,"1.0.13.2","yohobuy_m",e,"")}(),u.on("touchstart","a",function(){u.find("a").removeClass("highlight"),d(this).addClass("highlight")}).on("touchend touchcancel","a",function(){d(this).removeClass("highlight")}),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,t){var o=(new Date).getTime(),i=Math.max(0,16-(o-n)),a=window.setTimeout(function(){e(o+i)},i);return n=o+i,a},a=function(e){window.clearTimeout(e)}),window.requestAnimationFrame=i,window.cancelAnimationFrame=a}(),window.cookie=o,window.setCookie=i,window.getUser=a,window.getUid=s,window.getShoppingKey=r,window.rePosFooter=l}),define("js/category/entry",["jquery","hammer","swiper","lazyload","index"],function(e,t,n){e("js/category/index"),e("js/category/brand")}),define("js/category/index",["jquery"],function(e,t,n){var o=e("jquery"),i=o(".category-nav"),a=o(".category-container"),s=a.children(".content"),r=a.find(".sub-level li"),l=a.find(".primary-level li"),d=s.not(".hide");!function(){var e=o(".yoho-header"),t=o("#search-input"),n=o(window).height()-e.outerHeight()-t.outerHeight()-i.outerHeight();a.css("min-height",n),s.height(n)}(),o("#search-input").focus(function(){o(this).blur()}),i.bind("contextmenu",function(e){return!1}),o(".category-container").bind("contextmenu",function(e){return!1}),i.on("touchend touchcancel",function(e){var t=o(e.target).closest("li"),n=t.index();t.hasClass("focus")||(i.find("li.focus").removeClass("focus"),t.addClass("focus"),d.addClass("hide"),d=s.eq(n).removeClass("hide"))}),a.on("touchend",function(e){var t,n,i,a=o(e.target);if(n=a.closest(".p-level-item"),n.length>0){if(i=n.index(),t=a.closest(".content").find(".sub-level"),a.hasClass("focus"))return;a.closest(".primary-level").children(".focus").removeClass("focus"),a.addClass("focus"),t.not(".hide").addClass("hide"),t.eq(i).removeClass("hide")}}),a.find(".primary-level").on("touchstart touchend touchcancel","li",function(){l.removeClass("highlight"),o(this).addClass("highlight")}).on("touchend touchcancel","li",function(){o(this).removeClass("highlight")}),a.find(".sub-level").on("touchstart","li",function(){r.removeClass("highlight"),o(this).addClass("highlight")}).on("touchend touchcancel","li",function(){o(this).removeClass("highlight")}),i.on("touchstart","li",function(){i.find("li").removeClass("bytouch"),o(this).addClass("bytouch")}).on("touchend touchcancel","li",function(){i.find("li").removeClass("bytouch")})}),define("js/category/brand",["jquery","hammer","swiper","lazyload","index"],function(e,t,n){function o(){var e=h(window).scrollTop();g.eq(0).offset().top<l&&r.hide(),g.each(function(){var t=h(this).offset().top-b;e>=t&&r.css({display:"block"}).find("h2").html(h(this).find(".title-bar").text())})}function i(){var e=h(".brand-list").find("p");e.on("touchstart",function(){e.css("background","#fff"),h(this).css("background","#eee")}).on("touchend touchcancel",function(){h(this).css("background","#fff")})}function a(){var e=(c.val()+"").toLowerCase(),t={},n=0,o="";""!==e&&(h.each(d,function(n,o){h.isArray(o)&&h.each(o,function(o,i){i.name.toLowerCase().indexOf(e)>-1&&(t[n]=t[n]||[],t[n].push(i))})}),h.each(t,function(e,t){var i=['<div class="brand-list bar-',n,'">'];n++,i.push('<div class="title-bar"><h2>'),i.push(e),i.push("</h2></div>"),h.each(t,function(e,t){i.push('<p><a href="'+t.url+'">'+t.name),t.isNew&&i.push('<i class="icon-hot">HOT</i>'),t.isHot&&i.push('<i class="icon-new">NEW</i>'),i.push("</a></p>")}),i.push("</div>"),o+=i.join("")})),h(".search-result").html(o),i()}var s,r,l,d,c,u,h=e("jquery"),p=e("hammer"),f=e("swiper"),m=e("lazyload"),g=h(".brand-list"),v=h(".search-icon"),w=h(".newbrand-search").outerHeight(),y=h(".yoho-header").outerHeight(),b=parseInt(w)+parseInt(y)-1;s=new f(".swiper-container",{lazyLoading:!0,loop:!0,autoplay:3e3,pagination:".swiper-pagination .pagination-inner"}),m(h("img.lazy")),h(".yoho-header").css({"z-index":2,position:"fixed",top:0}),r=h('<div class="title-bar fixed-title-bar"><h2></h2></div>'),r.css({position:"fixed",top:b}).hide(),l=b+h(".hot-brand").outerHeight()+h(".banner-top").outerHeight(),g.last().append(r),h(window).scroll(function(){window.requestAnimationFrame(o)}),i(),h(".brand-search-page").length&&(d=h.parseJSON(h("#brands-data").html()),c=h("#keyword"),c.on("input",function(){c.val().length?(v.css("color","#000"),h(this).closest(".search-box").css("width","11.25rem"),h(".search-action").show()):(v.css("color","#b2b2b2"),h(this).closest(".search-box").css("width","12.5rem"),h(".search-action").hide()),a()}).focus(),u=new p(h(".clear-text")[0]),u.on("tap",function(e){e.preventDefault(),h(".search-result").html(""),h("#keyword").val("").trigger("input"),e.srcEvent.stopPropagation()}),h("form.search-box").on("submit",function(){return!1}))}),define("js/guang/entry",["jquery","lazyload","swiper","hammer","mlellipsis","iscroll-probe","index"],function(e,t,n){e("js/guang/plus-star/list"),e("js/guang/plus-star/detail"),e("js/guang/home"),e("js/guang/list"),e("js/guang/detail")}),define("js/guang/plus-star/list",["jquery","lazyload","swiper","index"],function(e,t,n){var o,i=e("jquery"),a=e("lazyload"),s=e("swiper"),r=i("#nav-tab > li"),l=i("#ps-content > .content");a(i("img.lazy")),o=new s(".swiper-container",{lazyLoading:!0,pagination:".swiper-pagination"}),i("#nav-tab").bind("contextmenu",function(e){return!1}),i("#nav-tab").on("touchend touchcancel",function(e){var t=i(e.target).closest("li");t.hasClass("focus")||(r.toggleClass("focus"),l.toggleClass("hide"),i(document).trigger("scroll"))}),i("#nav-tab").on("touchstart",function(e){var t=e.target||e.srcElement;t.className="bytouch "+t.className}).on("touchend touchcancel",function(){r.removeClass("bytouch")})}),define("js/guang/plus-star/detail",["jquery","hammer","mlellipsis","lazyload"],function(e,t,n){var o,i,a,s,r=e("jquery"),l=e("hammer"),d=e("mlellipsis"),c=e("lazyload"),u=r("#intro"),h=r("#intro-more-txt"),p=r("#related-infos-container"),f=e("js/guang/info"),m=e("js/plugin/tip"),g=r("#brand-info").data("id"),v=r("#jump-to-app").val();e("js/plugin/wx-share"),d.init(),c(r("img.lazy")),u[0].mlellipsis(3),setTimeout(function(){o=u.text(),i=u.attr("title")}),f.initInfosEvt(p),a=new l(document.getElementById("more-intro")),a.on("tap",function(e){var t=r(e.target).closest("#more-intro");t.toggleClass("spread"),t.hasClass("spread")?(u.text(i),h.text("收起")):(u.text(o),h.text("more"),r(window).scrollTop(0,400)),e.preventDefault()}),s=new l(document.getElementById("brand-like")),s.on("tap",function(e){var t="ok",n=r(e.target);"1"!==v&&(e.preventDefault(),n.hasClass("like")&&(t="cancel"),r.ajax({type:"POST",url:"/guang/opt/favoriteBrand",data:{id:g,opt:t},success:function(e){200===e.code?n.toggleClass("like"):400===e.code||412===e.code?location.href=e.data:m.show(e.message)},error:function(){m.show("网络断开连接了~")}}))})}),define("js/guang/info",["jquery","hammer","mlellipsis","lazyload"],function(e,t,n){function o(e){d(e.find("img.lazy")),e.each(function(){var e=s(this),t=e.find(".info-title"),n=e.find(".info-text");t[0].mlellipsis(2),n[0].mlellipsis(2)})}function i(e){var t;"undefined"!=typeof e&&(t=new r(e[0]),t.on("tap",function(e){var t,n,o=s(e.target),i="ok";return t=o.closest(".like-btn"),t.length>0?(e.preventDefault(),t.hasClass("like")&&(i="cancel"),n=o.closest(".guang-info"),void s.ajax({type:"POST",url:"/guang/opt/praiseArticle",data:{id:n.data("id"),opt:i},success:function(e){var n=e.code;200===n&&(t.next(".like-count").text(e.data),t.toggleClass("like"))},error:function(){c.show("网络断开连接了~")}})):(t=o.closest(".collect-btn"),void(t.length>0&&(e.preventDefault(),t.hasClass("collected")&&(i="cancel"),n=o.closest(".guang-info"),s.ajax({type:"POST",url:"/guang/opt/collectArticle",data:{id:n.data("id"),opt:i},success:function(e){e.code&&200===e.code&&t.toggleClass("collected")},error:function(){c.show("网络断开连接了~")}}))))}),o(e.find(".guang-info")))}function a(e,t,n){var i;m||t.end||(1===t.page&&u.showLoadingMask(),i=e.find(".guang-info").length,m=!0,s.ajax({type:"GET",url:n?n:"/guang/index/page",data:t,success:function(n){var a;return" "===n?(t.end=!0,m=!1,p.addClass("hide"),void f.removeClass("hide")):(e.append(n),a=i>0?e.find(".guang-info:gt("+(i-1)+")"):e.find(".guang-info"),o(a),1===t.page&&(u.hideLoadingMask(),p.removeClass("hide"),window.rePosFooter()),t.page++,void(m=!1))},error:function(){c.show("网络断开连接了~"),m=!1}}))}var s=e("jquery"),r=e("hammer"),l=e("mlellipsis"),d=e("lazyload"),c=e("js/plugin/tip"),u=e("js/plugin/loading"),h=s("#load-more-info"),p=s(""),f=s(""),m=!1;l.init(),h.length>0&&(p=h.children(".loading"),f=h.children(".no-more")),t.initInfosEvt=i,t.setLazyLoadAndMellipsis=o,t.loadMore=a}),define("js/plugin/tip",["jquery"],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=e("jquery");!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}),define("js/plugin/loading",["jquery"],function(e,t,n){function o(e){var t='<div class="loading-mask hide"><div class="loading"></div></div>';d=!0,void 0===e&&(e=l),e.append(t),s=e.children(".loading-mask")}function i(){d||(o(),d=!0),s.removeClass("hide")}function a(){s.addClass("hide")}var s,r=e("jquery"),l=r(".yoho-page"),d=!1;t.init=o,t.showLoadingMask=i,t.hideLoadingMask=a}),define("js/plugin/wx-share",["jquery"],function(e,t,n){var o=e("jquery");n.exports=function(){var e="http://www.yohoshow.com/api/wechat/getSignPackage";o.getJSON(e+"?pageurl="+encodeURIComponent(location.href.split("#")[0])+"&callback=?",function(e){var t,n,o,i;void 0!==e&&""!==e&&(t=e.appId.toString(),n=e.timestamp,o=e.nonceStr.toString(),i=e.signature.toString(),wx.config({debug:!1,appId:t,timestamp:n,nonceStr:o,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"]}))}),wx.ready(function(){var e=o("#shareTitle").val(),t=o("#shareImg").val(),n=o("#shareDesc").val(),i=o("#shareLink").val(),a={title:e,desc:n,imgUrl:t,link:i};wx.onMenuShareAppMessage(a),wx.onMenuShareTimeline(a),wx.onMenuShareQQ(a),wx.onMenuShareWeibo(a)})}}),define("js/guang/home",["jquery","swiper","hammer","mlellipsis","lazyload","index"],function(e,t,n){function o(){var e=f.not(".hide");a(window).scrollTop()+h>=a(document).height()-.25*e.height()&&l(e,w[v])}var i,a=e("jquery"),s=e("swiper"),r=e("js/guang/info"),l=r.loadMore,d=a("#load-more-info"),c=a(""),u=a(""),h=a(window).height(),p=a("#info-list"),f=p.children(".info-list"),m=a("#guang-nav"),g=m.children(".focus"),v=g.data("type"),w={};d.length>0&&(c=d.children(".loading"),u=d.children(".no-more")),i=new s(".swiper-container",{lazyLoading:!0,pagination:".swiper-pagination",autoplay:3e3}),r.initInfosEvt(p),function(){var e=a("#gender").val();m.children(".guang-nav-item").each(function(){var t=a(this).data("type"),n=a(this).hasClass("focus");w[t]={page:n?2:1,gender:e,type:t,end:!1}})}(),m.bind("contextmenu",function(e){return!1}),m.on("touchend touchcancel",function(e){var t,n,o=a(e.target).closest(".guang-nav-item");o.hasClass("focus")||(n=o.index(),o.addClass("focus"),g.removeClass("focus"),t=f.eq(n),g=o,v=o.data("type"),1===w[v].page?(c.addClass("hide"),u.addClass("hide"),l(t,w[v])):w[v].end?(c.addClass("hide"),u.removeClass("hide")):(c.removeClass("hide"),u.addClass("hide")),f.not(".hide").addClass("hide"),t.removeClass("hide"),1===w[v].page&&window.rePosFooter())}),a(document).scroll(function(){window.requestAnimationFrame(o)}),m.on("touchstart",function(e){var t=e.target||e.srcElement;t.className="bytouch "+t.className}).on("touchend touchcancel",function(){m.find("li").removeClass("bytouch")})}),define("js/guang/list",["jquery","hammer","mlellipsis","lazyload"],function(e,t,n){function o(){i(window).scrollTop()+r>=i(document).height()-.25*p.height()&&s(p,h)}var i=e("jquery"),a=e("js/guang/info"),s=a.loadMore,r=i(window).height(),l=i("#author-infos"),d=i("#tag"),c=i("#gender"),u=i("#isApp"),h={page:2,end:!1},p=i("#info-list");a.initInfosEvt(p),l.length>0&&i.extend(h,{authorId:l.data("id"),isApp:u.val()}),d.length>0&&i.extend(h,{tag:d.val(),gender:c.val(),isApp:u.val()}),i(window).scroll(function(){window.requestAnimationFrame(o)})}),define("js/guang/detail",["jquery","mlellipsis","lazyload","iscroll-probe"],function(e,t,n){function o(e){var t=e.offset().left,n=-C+t+y/2+"px";r.css({backgroundPosition:n+" bottom"}),v&&b.css({backgroundPosition:n+" bottom"})}function i(e){var t,n,i,a=h(e.currentTarget),p=a.index();a.hasClass("focus")||(l.filter(".focus").removeClass("focus"),v&&(t=a.closest(".fixed-thumb-container").length>0?r:b,n=t.find(".thumb").eq(p),b.find(".thumb.focus").removeClass("focus"),n.addClass("focus")),a.addClass("focus"),o(a),d.not(".hide").addClass("hide"),i=d.eq(p),i.removeClass("hide"),f(i.find(".lazy")),v?u&&u.scrollToElement(c,400):h("body").animate({scrollTop:s.offset().top},400),u&&u.refresh())}function a(){var e,t,n,o,i,a=h("#scroller"),l=h(".yoho-header"),d=0;return l.length>0&&(d=l.outerHeight()),u=new m("#wrapper",{probeType:3,mouseWheel:!0,click:!0}),document.addEventListener("touchmove",function(e){e.preventDefault()},!1),w?(e=h(window).height()-d,i=b[0],t=r.outerHeight(),n=s.outerHeight(),o=s.offset().top-d,void u.on("scroll",function(){var s=-this.y,r=i.className;o-e+t>=s?-1===r.indexOf("fixed-bottom")&&b.addClass("fixed-bottom").removeClass("hide"):o>=s?-1===r.indexOf("hide")&&b.addClass("hide").removeClass("fixed-bottom fixed-top"):o+n-t>=s?-1===r.indexOf("fixed-top")&&b.addClass("fixed-top").removeClass("hide absolute").css("top",""):o+n>=s?(-1===r.indexOf("absolute")&&b.addClass("absolute").removeClass("fixed-top hide"),i.style.top=o+d+n-t-s+"px"):s>o+n&&-1===r.indexOf("hide")&&b.addClass("hide").removeClass("absolute"),a.trigger("scroll")})):void u.on("scroll",function(){a.trigger("scroll")})}var s,r,l,d,c,u,h=e("jquery"),p=e("mlellipsis"),f=e("lazyload"),m=e("iscroll-probe"),g=h(".author .intro"),v=!1,w=h(".collocation-block").length>0?!0:!1,y=0,b=h(""),c=document.querySelector("#wrapper .collocation-block"),C=h(window).width();e("js/plugin/wx-share")(),window.onload=function(){u&&u.refresh()},t.i=function(e){var t=navigator.userAgent.indexOf("iPhone")>0?!0:!1;v=t&&e,p.init(),f(h(".lazy")),h(".info-list .title, .one-good .reco-name").each(function(){this.mlellipsis(2)}),g.offset()&&parseInt(g.offset().left,10)===parseInt(g.css("margin-left"),10)&&g.css("padding-top",0),v&&(h(".yoho-header").length>0?h("#wrapper").addClass("ios has-head"):h("#wrapper").addClass("ios")),w&&(s=h(".collocation-block"),r=s.children(".thumb-container"),l=r.find("li"),d=s.find(".prod"),y=l.width(),v&&(b=h("#wrapper").after(r.clone().addClass("fixed-thumb-container fixed-bottom")).next(".thumb-container"),f(b.find(".lazy"),{event:"sporty"})),o(l.filter(".focus")),r.delegate(".thumb","touchend",i),v&&b.delegate(".thumb","touchend",i)),v&&a()}}),define("js/home/entry",["jquery","hammer","swiper","lazyload","index"],function(e,t,n){e("js/home/home"),e("js/home/maybe-like")}),define("js/home/home",["jquery","hammer","swiper","lazyload","index"],function(e,t,n){function o(){b.hasClass("menu-open")&&(b.removeClass("menu-open"),g(".overlay").hide(),g(".sub-nav").removeClass("show"),j.removeClass("on"),g("body").css({height:"auto",overflow:"auto"}))}function i(){k+=10,q.css({transform:"rotateX("+k+"deg)","-webkit-transform":"rotateX("+k+"deg)","-moz-transform":"rotateX("+k+"deg)"}),k/90%2===1&&(E?(q.addClass("animate"),E=!1):(q.removeClass("animate"),E=!0)),k/90%2===0&&k%360!==0?window.setTimeout(i,3e3):k%360===0?window.setTimeout(i,6e4):c(function(){i()})}var a,s,r,l,d,c,u,h,p,f,m,g=e("jquery"),v=e("hammer"),w=e("swiper"),y=e("lazyload"),b=g(".mobile-wrap"),C=g(".overlay"),j=g(".side-nav"),x=g(".sub-nav"),k=0,q=g(".home-header .logo"),E=!0;e("js/home/maybe-like"),y(g("img.lazy")),m=new v(g(".nav-btn")[0]),m.on("tap",function(e){return e.preventDefault(),b.addClass("menu-open"),C.show().css("opacity",.3),j.addClass("on"),g("body").css({height:g(window).height(),width:g(window).width(),overflow:"hidden"}),e.srcEvent.stopPropagation(),!1}),g(".overlay").on("touchstart",function(e){return o(),!1}),j.on("touchstart","li",function(e){return g(this).find(".sub-nav").size()>0&&(g(".sub-nav").removeClass("show"),g(this).find(".sub-nav").addClass("show")),e.stopPropagation(),e.target.pathname===location.pathname?(o(),!1):void 0}),x.each(function(){g(this).find("li").eq(0).on("touchstart",function(e){return g(".sub-nav").removeClass("show"),e.stopPropagation(),!1})}).on("touchstart",function(e){e.currentTarget!==e.target&&x.find("li").removeClass("current")}),j.children("ul").children("li").on("touchstart",function(){j.children("ul").children("li").css("background","#fff"),g(this).css("background","#eee")}).on("touchend touchcancel",function(){g(this).css("background","#fff")}),g(".banner-swiper").find("li").size()>1&&(a=new w(".banner-swiper",{lazyLoading:!0,lazyLoadingInPrevNext:!0,loop:!0,autoplay:3e3,autoplayDisableOnInteraction:!1,paginationClickable:!0,slideElement:"li",pagination:".banner-top .pagination-inner"})),r=new w(".brands-swiper",{grabCursor:!0,slidesPerView:"auto",wrapperClass:"brands-list",slideElement:"li"}),s=new w(".recommend-swiper",{grabCursor:!0,slidesPerView:"auto",wrapperClass:"recommend-list",slideElement:"li"}),g(".trend-topic-swiper").find("li").size()>1&&(l=new w(".trend-topic-swiper",{loop:!0,autoplay:3e3,autoplayDisableOnInteraction:!1,paginationClickable:!0,slideElement:"li",pagination:".trend-topic-content .pagination-inner"})),g(".category-swiper").each(function(e,t){p="category-swiper"+e,g(this).addClass(p),g("."+p).find(".swiper-slide").size()>1&&(d=new w("."+p,{loop:!0,autoplay:3e3,autoplayDisableOnInteraction:!1,paginationClickable:!0,slideElement:"li",pagination:"."+p+" .pagination-inner"}))}),c=function(){var e=null,t=["webkit","moz","ms"];for(h=0;h<t.length;h++)u=t[h]+"RequestAnimationFrame",window[u]&&(f=!0,e=u);return f?function(t){window[e](t)}:function(e){window.setTimeout(e,67)}}(),setTimeout(i,3e3),g(".home-header .iconfont").on("touchstart",function(){g(this).addClass("highlight")}).on("touchend touchcancel",function(){g(this).removeClass("highlight")}),g("#yoho-footer").css({"margin-bottom":"2.5rem"}),t.set=function(e){window.setCookie("_Channel",e,{expires:365,domain:".m.yohobuy.com"})}}),define("js/home/maybe-like",["jquery","hammer","lazyload"],function(e,t,n){function o(){v||(v=!0,p.showLoadingMask(),c.ajax({type:"GET",url:r,data:{page:w+1},success:function(e){return" "===e?(v=!1,p.hideLoadingMask(),void(y&&(r="1,3"===y?"/boys/bottomBanner":"/girls/bottomBanner",c.ajax({type:"GET",url:r,success:function(e){e&&e.img&&(c("#load-more-img").show(),c("#load-more-img a").attr("href",e.url),c("#load-more-img a > img").attr("src",e.img))},error:function(){}})))):(s=g.find(".good-info").length,g.append(e),f(0===s?g.find(".good-info").find("img.lazy"):g.find(".good-info:gt("+(s-1)+")").find("img.lazy")),v=!1,p.hideLoadingMask(),void w++)},error:function(){h.show("网络断开连接了~"),v=!1,p.hideLoadingMask()}}))}function i(){c(window).scrollTop()+m>=c(document).height()-50&&o()}var a,s,r,l,d,c=e("jquery"),u=e("hammer"),h=e("js/plugin/tip"),p=e("js/plugin/loading"),f=e("lazyload"),m=c(window).height(),g=c("#goods-list"),v=!1,w=0,y=null,b=c(".mobile-wrap").hasClass("kids-wrap")?!0:!1,C=c(".mobile-wrap").hasClass("lifestyle-wrap")?!0:!1,j=c("#maybe-like-nav");b?r="/product/recom/maylikekids":C?r="/product/recom/maylikelife":(y=c(".mobile-wrap").hasClass("boys-wrap")?"1,3":"2,3",r="/product/recom/maylike?gender="+y),l=j.children(".focus"),C&&(a=new u(j[0]),a.on("tap",function(e){var t,n=c(e.target).closest("li"),o=c(".goods-list");e.preventDefault(),n.hasClass("focus")||(d=n.index(),n.addClass("focus"),l.removeClass("focus"),o.not(".hide").addClass("hide"),t=o.eq(d),t.removeClass("hide"),l=n,c(document).trigger("scroll"),e.srcEvent.stopPropagation())})),p.init(c(".maybe-like")),c(".maybe-like p").on("touchstart",function(e){o()}),c(window).scroll(function(){window.requestAnimationFrame(i)})}),define("js/index/entry",["jquery","hammer"],function(e,t,n){e("js/index/search"),e("js/index/footer"),e("js/index/channel")}),define("js/index/search",["jquery","hammer"],function(e,t,n){var o,i,a=e("jquery"),s=e("js/plugin/security"),r=e("hammer"),l=a("#search-input input"),d=a("#search-input .clear-input"),c=a(".search-icon"),u=a("#search-form"),h=a(".history"),p=a("#clear-history"),f=e("js/index/write-search"),m=f.getRanToken();o=new r(p[0]),o.on("tap",function(){localStorage.removeItem("historys"),h.html("")}),l.on("input",function(){""===l.val()?(c.css("color","#b2b2b2"),d.addClass("hide")):(c.css("color","#666"),d.removeClass("hide"))}),i=new r(d[0]),i.on("tap",function(){l.val("").trigger("input")}),a("#search").on("touchend",function(){return s.hasDangerInput()?!1:(a(this).closest("form").submit(),!1)}),function(){var e,t,n,o="";if(localStorage&&(t=localStorage.getItem("historys"),t&&t.length>0)){for(t=t.split(m),n=0;n<t.length;n++)e=t[n],""!==e&&(o+='<li><a href="/?query='+e+'">'+e+"</li>");h.html(o),p.removeClass("hide")}}(),f.bindWirteLocal(u)}),define("js/plugin/security",["jquery"],function(e,t,n){function o(e){var t,n,o,s=i("input[type!=hidden], textarea"),r=/['"<>&\|]|--/g,l=s.length,d=void 0===e||"boolean"!=typeof e?!0:e;for(n=0;l>n;n++)if(t=s.eq(n).val(),r.test(t))return d?s.eq(n).val(t.replace(r," ")):(o=t.match(r).join(" "),a.show("不可以输入 "+o+" 哦!")),!d&&!0;return!1}var i=e("jquery"),a=e("js/plugin/tip");t.hasDangerInput=o}),define("js/index/write-search",[],function(e,t,n){function o(){return a}function i(e){e.on("submit",function(){var e,t=this.query.value;if(localStorage){if(e=localStorage.getItem("historys"),e=e?e:"",e.indexOf(a+t+a)>-1)return;""===e&&(t=a+t),e+=t+a,localStorage.setItem("historys",e)}})}var a=" ??++ ";t.getRanToken=o,t.bindWirteLocal=i}),define("js/index/footer",["jquery","hammer"],function(e,t,n){function o(){var e="http://a.app.qq.com/o/simple.jsp?pkgname=com.yoho&g_f=995445",t=new Date;setTimeout(function(){new Date-t<2e3&&(window.location=e)},500)}var i,a=e("jquery"),s=e("hammer");e("js/common"),a("#float-layer-close").on("touchend",function(e){return a("#float-layer-app").hide(),window.setCookie("_float-layer-app","id490655927",{domain:".yohobuy.com"}),window.setCookie("_float-layer-app-close",1,{domain:".yohobuy.com",expires:1}),!1}),a("#float-layer-btn")&&a("#float-layer-btn")[0]&&(i=new s(a("#float-layer-btn")[0]),i.on("tap",function(e){o("bottom"),e.srcEvent.stopPropagation()}),"function"!=typeof window.cookie||window.cookie("_float-layer-app")?a("#float-layer-app").hide():a("#float-layer-app").show())}),define("js/index/channel",["jquery"],function(e,t,n){function o(){var e=window.innerHeight,t=p.height(),n=h.scrollTop();w?i=y-e>200?n+y+x>=t?0:t-y-n-x:t-e-n:(y=e,i=t-e-n+x,w=!0),f.css({position:"relative",bottom:i+"px"})}var i,a=e("jquery"),s=e("js/plugin/security"),r=a(".search-box"),l=a(".box"),d=a(".index-search"),c=a(".index-logo"),u=a(".index-channel a"),h=a(window),p=a(document),f=a("#float-layer-app"),m=r.children('input[type="text"]'),g=l.children(".no-search"),v=r.children(".search-icon"),w=!1,y=0,b=f.height(),C=parseInt(f.css("padding-top")),j=parseInt(f.css("padding-bottom")),x=b+C+j;e("js/common"),m.on("focus",function(){l.addClass("action"),c.addClass("action")}).on("input",function(){""===m.val()?v.addClass("empty"):v.removeClass("empty")}),g.on("touchend",function(){return l.removeClass("action"),c.removeClass("action"),m.blur(),!1}),r.children(".clear-text").on("touchstart",function(){m.val("").focus().trigger("input")}),r.children(".search-icon").on("touchstart",function(){return s.hasDangerInput()?!1:void d.submit()}),a(".index-channel img").on("load error",function(){window.rePosFooter&&window.rePosFooter()}),u.on("touchstart",function(){u.css({background:"#000",color:"#fff",borderColor:"#fff"}),a(this).css({background:"rgba(255, 255, 255, 0.5)",color:"#000",borderColor:"#000"})}).on("touchend touchcancel",function(){a(this).css({background:"#000",color:"#fff",borderColor:"#fff"})}),a(window).scroll(function(){window.requestAnimationFrame(o)}),p.on("ready",o)}),define("js/passport/entry",["jquery"],function(e,t,n){e("js/passport/register/register"),e("js/passport/register/code"),e("js/passport/register/password"),e("js/passport/login/login"),e("js/passport/login/international"),e("js/passport/back/mobile"),e("js/passport/back/code"),e("js/passport/back/email"),e("js/passport/back/email-success"),e("js/passport/back/new-password")}),define("js/passport/register/register",["jquery"],function(e,t,n){var o=e("jquery"),i=o("#phone-num"),a=o("#country-select"),s=o("#area-code"),r=o("#btn-next"),l=e("js/passport/api"),d=e("js/plugin/tip"),c=o.trim,u=d.show;l.selectCssHack(o("#country-select")),l.bindClearEvt(),i.bind("input",function(){""===c(i.val())?r.addClass("disable"):r.removeClass("disable")}),a.change(function(){s.text(a.val())}),r.on("touchstart",function(){var e=c(i.val()),t=a.val();r.hasClass("disable")||(l.phoneRegx[t].test(e)?o.ajax({url:"/passport/reg/verifymobile",type:"POST",data:{areaCode:t.replace("+",""),phoneNum:e},success:function(e){200===e.code?location.href=e.data:u(e.message)}}):u("手机号格式不正确,请重新输入"))})}),define("js/passport/api",["jquery"],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=l(e.val());""===n?t.hide():t.show()})}function a(e){return e.length>=6&&e.length<=20?!0:!1}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=e("jquery"),l=r.trim,d=/^([a-zA-Z0-9]+[_|\_|\.|-]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.|-]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/,c={"+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}$/};n.exports={emailRegx:d,phoneRegx:c,bindEyesEvt:o,bindClearEvt:i,pwdValidate:a,selectCssHack:s}}),define("js/passport/register/code",["jquery"],function(e,t,n){e("js/passport/code")(!0)}),define("js/passport/code",["jquery"],function(e,t,n){var o=e("jquery");n.exports=function(t){function n(){var e,t=59;e=setInterval(function(){0===t?(s.text("重发验证码").removeClass("disable"),clearInterval(e)):s.text("重发验证码 ("+t--+"秒)")},1e3)}var i=o("#captcha"),a=o("#btn-next"),s=o("#captcha-tip"),r=o("#phone-num").val(),l=o("#area-code").val().replace("+",""),d=e("js/passport/api"),c=e("js/plugin/tip"),u=o.trim,h=c.show,p=t?"reg":"back";d.bindClearEvt(),i.bind("input",function(){""!==u(i.val())?a.removeClass("disable"):a.addClass("disable")}),s.on("touchstart",function(){s.hasClass("disable")||o.ajax({type:"POST",url:"/passport/"+p+"/sendcode",data:{phoneNum:r,areaCode:l},success:function(e){200===e.code?(s.text("重发验证码 (60秒)").addClass("disable"),n()):h(e.message)}})}),a.on("touchstart",function(){a.hasClass("disable")||o.ajax({type:"POST",url:"/passport/"+p+"/verifycode",data:{phoneNum:r,areaCode:l,code:u(i.val()),token:o("#token").val()},success:function(e){200===e.code?location.href=e.data:h(e.message)}})}),n()}}),define("js/passport/register/password",["jquery"],function(e,t,n){var o=e("jquery"),i=o("#pwd"),a=o("#btn-sure"),s=e("js/passport/api"),r=e("js/plugin/tip"),l=o.trim,d=r.show;s.bindEyesEvt({status:"open"}),i.bind("input",function(){""===l(i.val())?a.addClass("disable"):a.removeClass("disable")}),a.on("touchstart",function(){var e=l(i.val());a.hasClass("disable")||(s.pwdValidate(e)===!1?d("密码6-20位,请重新输入"):o.ajax({type:"POST",url:"/passport/reg/setpassword",data:{password:e,phoneNum:o("#phone-num").val(),areaCode:o("#area-code").val(),token:o("#token").val()},success:function(e){200===e.code?(d("注册成功"),setTimeout(function(){location.href=e.data},1e3)):d(e.message)}}))})}),define("js/passport/login/login",["jquery"],function(e,t,n){function o(){h&&p?d.removeClass("disable"):d.addClass("disable")}function i(){c.show(),u.show()}function a(){c.hide(),u.hide()}var s=e("jquery"),r=s("#account"),l=s("#pwd"),d=s("#btn-login"),c=s("#retrive-pwd-mask"),u=s("#retrive-pwd-ways"),h=!1,p=!1,f=e("js/passport/api"),m=e("js/plugin/tip"),g=s.trim,v=m.show;f.bindEyesEvt(),f.bindClearEvt(),r.bind("input",function(){h=""!==g(r.val())?!0:!1,o()}),l.bind("input",function(){p=""===g(l.val())?!1:!0,o()}),d.on("touchstart",function(){var e=g(r.val()),t=g(l.val());d.hasClass("disable")||((/^[0-9]+$/.test(e)||f.emailRegx.test(e))&&f.pwdValidate(t)?s.ajax({ | ||
2 | +type:"POST",url:"/passport/login/auth",data:{account:e,password:t},success:function(e){200===e.code?(v("登录成功"),setTimeout(function(){location.href=e.data},1e3)):v(e.message)},error:function(){v("网络断开连接啦~")}}):v("账号或密码有错误,请重新输入"))}),s("#forget-pwd").on("touchstart",function(){i()}),c.on("touchstart",function(){a()}),s("#cancel-retrive").on("touchstart",function(e){e.preventDefault(),a()}),r.trigger("input"),l.trigger("input")}),define("js/passport/login/international",["jquery"],function(e,t,n){function o(){c&&u?d.removeClass("disable"):d.addClass("disable")}var i=e("jquery"),a=i("#phone-num"),s=i("#country-select"),r=i("#area-code"),l=i("#pwd"),d=i("#btn-login"),c=!1,u=!1,h=e("js/passport/api"),p=e("js/plugin/tip"),f=i.trim,m=p.show;h.selectCssHack(s),h.bindEyesEvt(),h.bindClearEvt(),a.bind("input",function(){c=""===f(a.val())?!1:!0,o()}),l.bind("input",function(){var e=f(l.val());u=""===e?!1:!0,o()}),s.change(function(){r.text(s.val())}),d.on("touchstart",function(){var e=f(a.val()),t=s.val(),n=f(l.val());d.hasClass("disable")||(h.phoneRegx[t].test(e)&&h.pwdValidate(n)?i.ajax({type:"POST",url:"/passport/login/auth",data:{areaCode:t.replace("+",""),account:e,password:n},success:function(e){200===e.code?(m("登录成功"),setTimeout(function(){location.href=e.data},1e3)):m(e.message)},error:function(){m("网络断开连接啦~")}}):m("账号或密码有错误,请重新输入"))}),a.trigger("input"),l.trigger("input")}),define("js/passport/back/mobile",["jquery"],function(e,t,n){var o=e("jquery"),i=o("#phone-num"),a=o("#country-select"),s=o("#area-code"),r=o("#btn-next"),l=e("js/passport/api"),d=e("js/plugin/tip"),c=o.trim,u=d.show;l.selectCssHack(o("#country-select")),l.bindClearEvt(),i.bind("input",function(){""===c(i.val())?r.addClass("disable"):r.removeClass("disable")}),a.change(function(){s.text(a.val())}),r.on("touchstart",function(){var e=c(i.val()),t=a.val();r.hasClass("disable")||(l.phoneRegx[t].test(e)?o.ajax({url:"/passport/back/sendcode",type:"POST",data:{areaCode:t.replace("+",""),phoneNum:e},success:function(e){200===e.code?location.href=e.data:u(e.message)}}):u("手机号格式不正确,请重新输入"))})}),define("js/passport/back/code",["jquery"],function(e,t,n){e("js/passport/code")(!1)}),define("js/passport/back/email",["jquery"],function(e,t,n){var o=e("jquery"),i=o("#email"),a=o("#btn-sure"),s=e("js/passport/api"),r=e("js/plugin/tip"),l=o.trim,d=r.show;s.bindClearEvt(),i.bind("input",function(){""===l(i.val())?a.addClass("disable"):a.removeClass("disable")}),a.on("touchstart",function(){var e=l(i.val());a.hasClass("disable")||(s.emailRegx.test(e)?o.ajax({url:"/passport/back/sendemail",type:"POST",data:{email:e},success:function(e){200===e.code?location.href=e.data:d(e.message)}}):d("邮箱格式不正确,请重新输入"))})}),define("js/passport/back/email-success",["jquery"],function(e,t,n){var o=e("jquery"),i=o("#resend"),a=e("js/plugin/tip"),s=a.show;i.on("touchstart",function(e){e.preventDefault(),o.ajax({url:i.data("url"),type:"GET",success:function(e){s(200===e.code?e.message:e.message)}})})}),define("js/passport/back/new-password",["jquery"],function(e,t,n){var o=e("jquery"),i=o("#pwd"),a=o("#btn-ok"),s=e("js/passport/api"),r=e("js/plugin/tip"),l=o.trim,d=r.show,c=o("#phone-num");s.bindEyesEvt({status:"open"}),i.bind("input",function(){""===l(i.val())?a.addClass("disable"):a.removeClass("disable")}),a.on("touchstart",function(){var e,t,n=l(i.val()),r=!0;a.hasClass("disable")||(e={password:n},0===c.length&&(r=!1),r?(o.extend(e,{phoneNum:c.val(),areaCode:o("#areaCode").val(),token:o("#token").val()}),t="/passport/back/passwordByMobile"):(o.extend(e,{code:o("#email-code").val()}),t="/passport/back/passwordByEmail"),s.pwdValidate(n)?o.ajax({type:"POST",url:t,data:e,success:function(e){200===e.code?(d("密码修改成功"),setTimeout(function(){location.href=e.data},1e3)):d(e.message)}}):d("密码6-20位,请重新输入"))})}),define("js/product/entry",["jquery","swiper","lazyload","hammer","index"],function(e,t,n){e("js/product/newsale/newarrival"),e("js/product/newsale/discount"),e("js/product/list"),e("js/product/detail/detail"),e("js/product/detail/desc")}),define("js/product/newsale/newarrival",["jquery","swiper","lazyload","index"],function(e,t,n){function o(e){var t,n,o,i,a,u,f={};if(!d){if(e){for(n in E)E.hasOwnProperty(n)&&(E[n].reload=!0);switch(q.children(".active").removeClass("active"),T.addClass("active"),e.type){case"gender":t={gender:e.id};break;case"brand":t={brand:e.id};break;case"sort":t={sort:e.id};break;case"color":t={color:e.id};break;case"size":t={size:e.id};break;case"price":t={price:e.id};break;case"discount":t={discount:e.id};break;case"limit":t={limit:e.id};break;case"channel":t={channel:e.id};break;case"p_d":t={p_d:e.id}}c.extend(b,t)}if(T.hasClass("today")?(i="today",a=1):T.hasClass("week")?(i="week",a=2):T.hasClass("sale")&&(i="sale",a=3),o=E[i],u=o.page+1,o.reload)u=1;else if(o.end)return;c.extend(f,b,{dayLimit:a,page:u}),d=!0,m.showLoadingMask(),c.ajax({type:"GET",url:"/product/newsale/selectNewSale",data:f,success:function(e){var t,n;switch(i){case"today":t=s;break;case"week":t=r;break;case"sale":t=l}" "===e?(o.end=!0,o.reload&&t.html(y)):o.reload?(t.html(e),h(t.find(".lazy"))):(n=t.find(".good-info").length,t.append(e),h(t.find(".good-info:gt("+(n-1)+") .lazy"))),o.reload=!1,o.page=u,d=!1,m.hideLoadingMask(),window.rePosFooter()},error:function(){p.show("网络断开连接了~"),d=!1,m.hideLoadingMask()}})}}function i(){c(window).scrollTop()+w>c(document).height()-.25*g.height()-50&&void 0!==T&&o()}var a,s,r,l,d,c=e("jquery"),u=e("swiper"),h=e("lazyload"),p=e("js/plugin/tip"),f=e("js/plugin/filter"),m=e("js/plugin/loading"),g=c("#goods-container"),v=g.children(),s=c(v.get(0)),r=c(v.get(1)).addClass("hide"),l=c(v.get(2)).addClass("hide"),w=c(window).height(),y='<p class="no-result">未找到相关搜索结果</p>',b=e("js/product/extract-url"),C=c.extend({},b),j=new Date,x=j.getMonth()+1,k=j.getDate(),q=c("#list-nav"),E={today:{reload:!0,page:0,end:!1},week:{reload:!0,page:0,end:!1},sale:{reload:!0,page:0,end:!1}},T=q.find(".active");e("js/product/suspend-cart"),c("#today a").text(x+"月"+k+"号"),c(".swiper-container .swiper-slide").length>1&&(a=new u(".swiper-container",{lazyLoading:!0,lazyLoadingInPrevNext:!0,loop:!0,autoplay:3e3,autoplayDisableOnInteraction:!0,paginationClickable:!0,pagination:".banner-top .pagination-inner"})),c.ajax({type:"GET",url:"/product/newsale/filter",data:b,success:function(e){g.append(e),f.initFilter({fCbFn:o,hCbFn:function(){T.addClass("active"),T.siblings(".filter").removeClass("active")}})}}),h(c(".lazy")),q.bind("contextmenu",function(e){return!1}),q.on("touchend touchcancel",function(e){var t,n,i,a=c(e.target).closest("li");if(e.preventDefault(),a.hasClass("filter"))a.hasClass("active")?(f.hideFilter(),T.addClass("active"),a.removeClass("active")):(T=a.siblings(".active"),T.removeClass("active"),a.addClass("active"),f.showFilter());else{if(a.hasClass("today")?n="today":a.hasClass("week")?n="week":a.hasClass("sale")&&(n="sale"),t=E[n],!a.hasClass("active")){if(i=a.siblings(".active"),T=a,i.hasClass("filter"))f.hideFilter();else{switch(g.children(".container:not(.hide)").addClass("hide"),n){case"today":s.removeClass("hide");break;case"week":r.removeClass("hide");break;case"sale":l.removeClass("hide")}f.resetFilter(),b=c.extend({},C)}i.removeClass("active"),a.addClass("active")}t.reload&&o()}e.stopPropagation()}),c(window).scroll(function(){window.requestAnimationFrame(i)}),o(),q.on("touchstart","li",function(e){c(this).addClass("bytouch")}).on("touchend touchcancel",function(){q.find("li").removeClass("bytouch")})}),define("js/plugin/filter",["jquery"],function(e,t,n){function o(){h.addClass("hide")}function i(){h.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,o=e.closest(".sub-classify"),i=o.siblings(".shower");return e.hasClass("chosed")?o:(o.children(".chosed").removeClass("chosed"),e.addClass("chosed"),t=g.trim(e.html()),n=g.trim(i.html()),i.html(n.substring(0,n.indexOf("</span>")+7)+t.substring(0,t.indexOf("<i"))),0===e.index()?i.addClass("default"):i.removeClass("default"),o)}function d(e){var t,n=e.data("id");t=l(e),p&&p({type:t.data("type"),id:n}),o()}function c(e){p=e.fCbFn,f=e.hCbFn,m=e.missStatus,a(),s(),h=g(".filter-mask"),h.on("touchend",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"),d(t)):(t=n.closest(".classify-item"),e.stopPropagation(),r(t))):(o(),f&&f())})}function u(){"undefined"!=typeof h&&(g(".sub-classify").each(function(){l(g(this).children(":first-child"))}),r(g(".classify > :first-child")))}var h,p,f,m,g=e("jquery");t.initFilter=c,t.showFilter=i,t.hideFilter=o,t.resetFilter=u}),define("js/product/extract-url",[],function(e,t,n){var o,i,a,s={},r=window.location.search.split("?")[1],l=r.split("&");for(o=l.length;o>0;o--)switch(i=l[o-1].split("="),a=i[1],i=i[0]){case"gender":s.gender=a;break;case"brand":s.brand=a;break;case"sort":s.sort=a;break;case"msort":s.msort=a;break;case"misort":s.misort=a;break;case"color":s.color=a;break;case"size":s.size=a;break;case"price":s.price=a;break;case"discount":s.discount=a;break;case"query":s.query=a;break;case"style":s.style=a;break;case"limit":s.limit=a;break;case"channel":s.channel=a;break;case"p_d":s.p_d=a;break;case"dayLimit":s.dayLimit=a}n.exports=s}),define("js/product/suspend-cart",["jquery"],function(e,t,n){var o=e("jquery"),i=o("#suspend-cart");o.ajax({type:"GET",url:"/cart/index/count",success:function(e){200===e.code&&i.find(".cart-count").html(e.data.cart_goods_count).removeClass("hide")}})}),define("js/product/newsale/discount",["jquery","swiper","lazyload","index"],function(e,t,n){function o(e){var t,n,o,i,a,l={};if(!s){if(e){for(n in j)j.hasOwnProperty(n)&&(j[n].reload=!0);switch(C.children(".active").removeClass("active"),x.addClass("active"),e.type){case"gender":t={gender:e.id};break;case"brand":t={brand:e.id};break;case"sort":t={sort:e.id};break;case"color":t={color:e.id};break;case"size":t={size:e.id};break;case"price":t={price:e.id};break;case"discount":t={discount:e.id}}r.extend(b,t)}if(x.hasClass("new")?i="newest":x.hasClass("price")?i="price":x.hasClass("discount")&&(i="discount"),o=j[i],a=o.page+1,o.reload)a=1;else if(o.end)return;r.extend(l,b,{type:i,order:o.order,page:a}),s=!0,h.showLoadingMask(),r.ajax({type:"GET",url:"/product/newsale/selectNewSale",data:l,success:function(e){var t,n;switch(i){case"newest":t=m;break;case"price":t=g;break;case"discount":t=v}" "===e?(o.end=!0,o.reload&&t.html(y)):o.reload?(t.html(e),d(t.find(".lazy"))):(n=t.find(".good-info").length,t.append(e),d(t.find(".good-info:gt("+(n-1)+") .lazy"))),o.reload=!1,o.page=a,s=!1,h.hideLoadingMask(),window.rePosFooter()},error:function(){c.show("网络断开连接了~"),s=!1,h.hideLoadingMask()}})}}function i(){r(window).scrollTop()+w>r(document).height()-.25*p.height()-50&&void 0!==x&&o()}var a,s,r=e("jquery"),l=e("swiper"),d=e("lazyload"),c=e("js/plugin/tip"),u=e("js/plugin/filter"),h=e("js/plugin/loading"),p=r("#goods-container"),f=p.children(),m=r(f.get(0)),g=r(f.get(1)),v=r(f.get(2)),w=r(window).height(),y='<p class="no-result">未找到相关搜索结果</p>',b=e("js/product/extract-url"),C=r("#list-nav"),j={newest:{order:1,reload:!0,page:0,end:!1},price:{order:0,reload:!0,page:0,end:!1},discount:{order:0,reload:!0,page:0,end:!1}},x=C.find(".active");e("js/product/suspend-cart"),r(".swiper-container .swiper-slide").length>1&&(a=new l(".swiper-container",{lazyLoading:!0,lazyLoadingInPrevNext:!0,loop:!0,autoplay:3e3,autoplayDisableOnInteraction:!0,paginationClickable:!0,pagination:".banner-top .pagination-inner"})),r.ajax({type:"GET",url:"/product/newsale/filter",data:b,success:function(e){p.append(e),u.initFilter({fCbFn:o,hCbFn:function(){x.addClass("active"),x.siblings(".filter").removeClass("active")},missStatus:!0})}}),d(r(".lazy")),C.bind("contextmenu",function(e){return!1}),C.on("touchend touchcancel",function(e){var t,n,i,a=r(e.target).closest("li");if(e.preventDefault(),"undefined"!=typeof a&&0!==a.length){if(a.hasClass("filter"))a.hasClass("active")?(u.hideFilter(),x.addClass("active"),a.removeClass("active")):(x=a.siblings(".active"),x.removeClass("active"),a.addClass("active"),u.showFilter());else{if(a.hasClass("new")?n="newest":a.hasClass("price")?n="price":a.hasClass("discount")&&(n="discount"),t=j[n],a.hasClass("active")){if(a.hasClass("new"))return;(a.hasClass("price")||a.hasClass("discount"))&&(a.find(".icon > .iconfont").toggleClass("cur"),x=a,t.reload=!0,t.order=0===t.order?1:0)}else{if(i=a.siblings(".active"),x=a,i.hasClass("filter"))u.hideFilter();else switch(p.children(".container:not(.hide)").addClass("hide"),n){case"newest":m.removeClass("hide");break;case"price":g.removeClass("hide");break;case"discount":v.removeClass("hide")}i.removeClass("active"),a.addClass("active")}t.reload&&o()}e.stopPropagation()}}),r(window).scroll(function(){window.requestAnimationFrame(i)}),o(),C.on("touchstart","li",function(e){r(this).addClass("bytouch")}).on("touchend touchcancel",function(){C.find("li").removeClass("bytouch")})}),define("js/product/list",["jquery","hammer","lazyload"],function(e,t,n){function o(e){var t,n,o,i,s,r={};if(!a){if(e){for(n in I)I.hasOwnProperty(n)&&(I[n].reload=!0);switch(T.children(".active").removeClass("active"),z.addClass("active"),e.type){case"gender":t={gender:e.id};break;case"brand":t={brand:e.id};break;case"sort":t={sort:e.id};break;case"color":t={color:e.id};break;case"size":t={size:e.id};break;case"price":t={price:e.id};break;case"discount":t={discount:e.id}}d.extend(E,t)}if(z.hasClass("new")?i="newest":z.hasClass("price")?i="price":z.hasClass("discount")&&(i="discount"),o=I[i],s=o.page+1,o.reload)s=1;else if(o.end)return;d.extend(r,E,{type:i,order:o.order,page:s}),a=!0,v.showLoadingMask(),d.ajax({type:"GET",url:"/index/search/search",data:r,success:function(e){var t,n,r='<p class="no-result">未找到相关搜索结果</p>';switch(i){case"newest":n=y;break;case"price":n=b;break;case"discount":n=C}" "===e?(o.end=!0,o.reload&&n.html(r)):o.reload?(n.html(e),u(n.find(".lazy"))):(t=n.find(".good-info").length,n.append(e),u(n.find(".good-info:gt("+(t-1)+") .lazy"))),o.reload=!1,o.page=s,a=!1,v.hideLoadingMask(),window.rePosFooter()}})}}function i(){d(window).scrollTop()+j>d(document).height()-.25*w.height()&&o()}var a,s,r,l,d=e("jquery"),c=e("hammer"),u=e("lazyload"),h=d("#brand-header"),p=d("#intro-box"),f=e("js/plugin/filter"),m=e("js/index/write-search"),g=e("js/plugin/tip"),v=e("js/plugin/loading"),w=d("#goods-container"),y=w.children(".new-goods"),b=w.children(".price-goods"),C=w.children(".discount-goods"),j=d(window).height(),x=d("#search-input input"),k=d(".search-icon"),q=d("#search-input .clear-input"),E=e("js/product/extract-url"),T=d("#list-nav"),I={newest:{order:1,reload:!0,page:0,end:!1},price:{order:0,reload:!0,page:0,end:!1},discount:{order:0,reload:!0,page:0,end:!1}},z=T.find(".active");x.on("input",function(){""===x.val()?(k.css("color","#b2b2b2"),q.addClass("hide")):(k.css("color","#666"),q.removeClass("hide"))}),q.on("touchend",function(){x.val("").trigger("input")}),d("#search").on("touchend",function(){return d(this).closest("form").submit(),!1}),e("js/product/suspend-cart"),d.ajax({type:"GET",url:"/search/filter",data:E,success:function(e){w.append(e),f.initFilter({fCbFn:o,hCbFn:function(){z.addClass("active"),z.siblings(".filter").removeClass("active")}})}}),u(d(".lazy")),m.bindWirteLocal(d("#search-form")),T.bind("contextmenu",function(e){return!1}),T.on("touchend touchcancel",function(e){var t,n,i,a=d(e.target).closest("li");if(a.hasClass("filter"))a.hasClass("active")?(f.hideFilter(),z.addClass("active"),a.removeClass("active")):(z=a.siblings(".active"),z.removeClass("active"),a.addClass("active"),f.showFilter());else{if(a.hasClass("new")?n="newest":a.hasClass("price")?n="price":a.hasClass("discount")&&(n="discount"),t=I[n],a.hasClass("active")){if(a.hasClass("new"))return;(a.hasClass("price")||a.hasClass("discount"))&&(a.find(".icon > .iconfont").toggleClass("cur"),z=a,t.reload=!0,t.order=0===t.order?1:0)}else{if(i=a.siblings(".active"),z=a,i.hasClass("filter"))f.hideFilter();else switch(w.children(".container:not(.hide)").addClass("hide"),n){case"newest":y.removeClass("hide");break;case"price":b.removeClass("hide");break;case"discount":C.removeClass("hide")}i.removeClass("active"),a.addClass("active")}t.reload&&o()}}),d(window).scroll(function(){window.requestAnimationFrame(i)}),h.length>0&&(s=new c(h.children(".btn-intro")[0]),s.on("tap",function(){p.removeClass("hide"),d("body").addClass("overflow-hidden")}),r=new c(document.getElementById("intro-box")),r.on("tap",function(e){var t=d(e.target);e.srcEvent.preventDefault(),(0===t.closest("#brand-intro").length||t.hasClass("close-intro"))&&(p.addClass("hide"),d("body").removeClass("overflow-hidden"))}),l=new c(h.children(".btn-col")[0]),l.on("tap",function(e){var t,n=d(e.target).closest(".btn-col"),o=h.data("id");t=n.hasClass("coled")?"cancel":"ok",d.ajax({type:"POST",url:"/product/opt/favoriteBrand",data:{id:o,opt:t},success:function(e){200===e.code?n.toggleClass("coled"):400===e.code?location.href=e.data:g.show(e.message)},error:function(){g.show("网络断开连接了~")}})})),o(),T.on("touchstart","li",function(){T.find("li").removeClass("bytouch"),d(this).addClass("bytouch")}).on("touchend touchcancel","li",function(){T.find("li").removeClass("bytouch")}),window._yas&&window._yas(1*new Date,"1.0.13.2","yohobuy_m",window._ozuid,"#goods-container >div >div .good-thumb >img")}),define("js/product/detail/detail",["jquery","swiper","lazyload","hammer","index"],function(e,t,n){var o,i=e("jquery"),a=e("swiper"),s=e("lazyload"),r=i(".goodsDiscount .discount-folder"),l=i(".goodsDiscount .first-item span");e("js/product/detail/desc"),e("js/product/detail/comments-consults"),s(i("img.lazy")),o=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"}),0===i(".goodsDiscount .discount-folder").children().length&&(r.css("display","none"),l.html("")),i(".goodsDiscount .dropdown").on("click",function(){r.is(":hidden")?(l.removeClass("icon-down").addClass("icon-up").html(""),r.slideDown()):(l.removeClass("icon-up").addClass("icon-down").html(""),r.slideUp())}),e("js/product/detail/like")}),define("js/product/detail/desc",["jquery","lazyload","swiper","index"],function(e,t,n){function o(e){if(e.length>0){var t=e[0].getBoundingClientRect().right,n=e.find(".swiper-slide:last-child")[0].getBoundingClientRect().right;0>n-t?e.next(".tips").css("display","none"):e.next(".tips").css("display","block")}}function i(){g||v||(g=!0,h.showLoadingMask(),d.ajax({type:"GET",url:f,success:function(e){s=d("#productDesc"),s.append(e),c(s.find("img.lazy")),r=new u("#size-swiper-container",{slidesPerView:"auto"}),l=new u("#reference-swiper-container",{slidesPerView:"auto"}),o(d("#size-swiper-container")),o(d("#reference-swiper-container")),g=!1,v=!0,h.hideLoadingMask()},error:function(){p.show("网络断开连接了~"),g=!1,h.hideLoadingMask()}}))}function a(){(!v||d(window).scrollTop()+m>=d(document).height()-50)&&i()}var s,r,l,d=e("jquery"),c=e("lazyload"),u=e("swiper"),h=e("js/plugin/loading"),p=e("js/plugin/tip"),f=d("#introUrl").val(),m=d(window).height(),g=!1,v=!1;e("js/product/recommend-for-you"),d(window).scroll(function(){window.requestAnimationFrame(a)})}),define("js/product/recommend-for-you",["swiper","jquery","index"],function(e,t,n){var o,i=e("swiper"),a=e("jquery"),s=a(".recommend-for-you");a.get("/home/preference").then(function(e){s.html(e).show(),a("#swiper-recommend").length&&(o=new i("#swiper-recommend",{slidesPerView:"auto",grabCursor:!0,slideElement:"a",lazyLoading:!0,watchSlidesVisibility:!0}))}).fail(function(){s.hide()})}),define("js/product/detail/comments-consults",["jquery"],function(e,t,n){var o,i=e("jquery"),a=e("js/plugin/tip");!function(){var e=i("#nav-tab .consults-num").html()-0;o=i("#nav-tab .comments-num").html()-0,i("#nav-tab li").each(function(){i(this).removeClass("focus")}),i("#feedback-content .content").each(function(){i(this).addClass("hide")}),0!==o?(i("#nav-tab .comment-nav").addClass("focus"),i("#feedback-content .comment-content").removeClass("hide")):0!==e&&(i("#nav-tab .consult-nav").addClass("focus"),i("#feedback-content .consult-content").removeClass("hide"))}(),i("#nav-tab li").on("touchend",function(){var e=i(this).index();i(this).hasClass("comment-nav")&&0===o?a.show("暂无商品评价"):i(this).hasClass("focus")||(i("#nav-tab li").each(function(){i(this).removeClass("focus")}),i("#feedback-content .content").each(function(){i(this).addClass("hide")}),i(this).addClass("focus"),i("#feedback-content .content:eq("+e+")").removeClass("hide"))})}),define("js/product/detail/like",["jquery","hammer"],function(e,t,n){var o=e("jquery"),i=e("hammer"),a=e("js/plugin/tip"),s=new i(document.getElementById("likeBtn")),r=new i(document.getElementById("addtoCart")),l=o("#productId").val();s.on("tap",function(e){var t,n,i=o(e.target);i.hasClass("liked")?(t="cancel",n=0):(t="ok",n=1),o.ajax({type:"POST",url:"/product/opt/favoriteProduct",data:{id:l,opt:t},success:function(e){200===e.code?(i.toggleClass("liked"),"cancel"===t?a.show("取消收藏成功"):"ok"===t&&a.show("收藏成功")):400===e.code?location.href=e.data:a.show(e.message),window._yas&&window._yas.sendCustomInfo({pd:l,fa:n})},error:function(){a.show("网络断开连接了~")}})}),r.on("tap",function(e){window._yas&&window._yas.sendCustomInfo({pd:l,by:1})})}),define("js/me/entry",["jquery","hammer","lazyload","handlebars","source-map","swiper","mlellipsis","index"],function(e,t,n){e("js/me/order"),e("js/me/order-detail"),e("js/me/fav"),e("js/me/suggest"),e("js/me/index"),e("js/me/coupons"),e("js/me/online-service"),e("js/me/address"),e("js/me/suggest"),e("js/me/browse-record"),e("js/me/address-act")}),define("js/me/order",["jquery","hammer","lazyload","handlebars","source-map"],function(e,t,n){function o(e){var t={type:p,page:f.page+1},n=e&&e.showLoadingMask;m||(m=!0,n&&g.showLoadingMask(),s.ajax({type:"GET",url:"/home/getOrders",data:t,success:function(e){var o;" "!==e?(f.page=t.page,1===t.page?(u.html(e),l(u.find(".lazy"))):(o=u.children(".order").length,u.append(e),l(u.children(".order:gt("+(o-1)+")").find(".lazy"))),window.rePosFooter()):f.end=!0,m=!1,n&&g.hideLoadingMask()}}))}function i(){f.end===!1&&s(window).scrollTop()+h>s(document).height()-.25*c.height()&&o({noLoadingMask:!0})}var a,s=e("jquery"),r=e("hammer"),l=e("lazyload"),d=s("#order-nav > li"),c=s("#order-container"),u=c.children(".orders:not(.hide)"),h=s(window).height(),p=d.filter(".active").data("type"),f={page:0,end:!1},m=!1,g=e("js/plugin/loading"),v=e("js/me/dialog");l(),function(){var e=d.length;4!==e&&d.width(100/e+"%")}(),g.init(s("body")),a=new r(document.getElementById("order-container")),a.on("tap",function(e){var t,n,o,i=s(e.target);i.closest(".locHref").length>0||(t=i.closest(".order"),n=t.data("id"),i.closest(".del").length>0?v.showDialog({dialogText:"确定删除订单吗?",hasFooter:{leftBtnText:"取消",rightBtnText:"确定"}},function(){s.ajax({type:"GET",url:"/home/delOrder",data:{id:n},success:function(e){200===e.code&&history.go(0)}})}):i.closest(".cancel").length>0?v.showDialog({dialogText:"确定取消订单吗?",hasFooter:{leftBtnText:"取消",rightBtnText:"确定"}},function(){s.ajax({type:"GET",url:"/home/cancelOrder",data:{id:n},success:function(e){200===e.code&&history.go(0)}})}):(o=t.data("href"),location.href=o))}),s(window).scroll(function(){window.requestAnimationFrame(i)}),o()}),define("js/me/dialog",["jquery","handlebars","source-map","hammer"],function(e,t,n){var o,i,a,s=e("jquery"),r=e("handlebars"),l=e("hammer");i='<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">{{.}}</span>{{/ leftBtnText}}{{# rightBtnText}}<span class="dialog-right-btn">{{.}}</span>{{/ rightBtnText}}</div>{{/ hasFooter}}</div></div>',a=r.compile(i),t.showDialog=function(e,t){var n,i,r=a(e);s(".dialog-wrapper").remove(),s("body").append(s(r)),n=s(".dialog-box"),o=s(".dialog-wrapper"),i=new l(document.getElementById("dialog-wrapper")),e.fast?o.css({display:"block"}):o.fadeIn(),n.css({top:"50%",marginTop:-(n.height()/2)}),e.autoHide&&setTimeout(function(){o.fadeOut()},1e3),i.on("tap",function(e){s(e.target).hasClass("dialog-left-btn")?o.fadeOut():s(e.target).hasClass("dialog-right-btn")&&t()})},t.hideDialog=function(){o.fadeOut()}}),define("js/me/order-detail",["jquery","lazyload","hammer"],function(e,t,n){var o,i=e("jquery"),a=e("lazyload"),s=e("hammer"),r=i("#order-detail").data("id");a(),o=new s(document.getElementsByClassName("opt")[0]),o.on("tap",function(e){var t=i(e.target);t.hasClass("btn-del")?confirm("确定删除订单吗?")&&i.ajax({type:"GET",url:"/home/delOrder",data:{id:r}}):t.hasClass("btn-cancel")&&confirm("确定取消订单吗?")&&i.ajax({type:"GET",url:"/home/cancelOrder",data:{id:r}})})}),define("js/me/fav",["jquery","hammer","swiper","handlebars","source-map","index"],function(e,t,n){function o(e){p.filter(".active").removeClass("active"),p.eq(e).addClass("active"),f.filter(".show").removeClass("show"),f.eq(e).addClass("show")}function i(){var e,t;for(m=d(".swiper-container"),e=0;e<m.length;e++)t=m.eq(e).attr("data-id"),g[t]&&g[t].destroy(!0,!0),g[t]=new u("#swiper-container-"+t,{slidesPerView:"auto",grabCursor:!0,slideElement:"li",wrapperClass:"swiper-wrapper-"+t,lazyLoading:!0,watchSlidesVisibility:!0})}function a(e,t,n){"favBrand"===t?E=!0:q=!0,d.ajax({method:"post",url:"/home/"+t,data:{page:n},success:function(n){if("favBrand"===t?y.addClass("hide"):w.addClass("hide")," "===n)e.closest(".fav-type").find(".fav-content-loading").addClass("hide"),e.closest(".fav-type").find(".fav-null-box").removeClass("hide");else if("end"===n)e.closest(".fav-type").find(".fav-load-background").removeClass("fav-load-background").html("没有更多了");else{if(!(n.length>10))return;e.append(n),e.closest(".fav-type").find(".fav-content-loading").remove(),"favBrand"===t?(i(),E=!1):q=!1,window.rePosFooter()}window.rePosFooter()}})}function s(){d(window).scrollTop()+b>=d(document).height()-v&&(T?(y.filter(".hide").removeClass("hide"),E||(k++,a(j,"favBrand",k))):(w.filter(".hide").removeClass("hide"),q||(x++,a(C,"favProduct",x))))}var r,l,d=e("jquery"),c=e("hammer"),u=e("swiper"),h=e("js/me/dialog"),p=d("#fav-tab > li"),f=d(".fav-content > .fav-type"),m="",g={},v=d("#yoho-footer").height(),w=d(".fav-load-more"),y=d(".fav-brand-load-more"),b=d(window).height(),C=d(".fav-product-list"),j=d(".fav-brand-swiper"),x=1,k=1,q=!0,E=!0,T=!1;d("#fav-tab").hasClass("brand-tab")?(o(1),a(j,"favBrand",1),T=!0,window.rePosFooter()):(o(0),a(C,"favProduct",1),T=!1,window.rePosFooter()),r=new c(document.getElementById("fav-tab")),r.on("tap",function(e){var t,n=d(e.target).closest("li");0===n.length||n.hasClass("active")||(t=n.index(),0===t?(T=!1,0===C.find("li").length&&C.closest(".fav-type").find(".fav-null-box").hasClass("hide")&&a(C,"favProduct",1)):(T=!0,0===j.find("div").length&&j.closest(".fav-type").find(".fav-null-box").hasClass("hide")&&a(j,"favBrand",1)),o(t),window.rePosFooter())}),l=new c(document.getElementById("fav-content")),l.on("tap",function(e){var t="";d(e.target).hasClass("del-fav")&&h.showDialog({dialogText:"您确定要取消收藏吗?",hasFooter:{leftBtnText:"取消",rightBtnText:"确定"}},function(){t=d(e.target).closest("li").attr("data-id"),d.ajax({method:"post",url:"/home/favoriteDel",data:{id:t}}).then(function(t){200===t.code?(h.showDialog({autoHide:!0,fast:!0,dialogText:"已经取消收藏"}),d(e.target).closest("li").remove()):400===t.code?h.showDialog({autoHide:!0,fast:!0,dialogText:t.message}):h.showDialog({autoHide:!0,fast:!0,dialogText:"取消收藏失败"})}).fail(function(){h.showDialog({autoHide:!0,dialogText:"网络错误~"})})})}),d(window).scroll(function(){window.requestAnimationFrame(s)})}),define("js/me/suggest",["jquery","hammer","lazyload","handlebars","source-map"],function(e,t,n){var o,i,a,s,r=e("jquery"),l=e("hammer"),d=e("lazyload"),c=e("handlebars"),u=e("js/me/dialog"),h=r(".upload-img-list"),p=r(".suggest-item .like-btn"),f=r(".suggest-item .dislike-btn"),m=r(".img-add"),g="",v=0;e("js/me/jquery.uploadifive"),a='{{# imgList}}<li>{{# imgUrl}}<img src="{{.}}" /><span class="upload-img-remove"></span>{{/ imgUrl}}</li>{{/ imgList}}',s=c.compile(a),r("#upload-img").uploadifive({auto:!0,fileType:"image*/*",uploadScript:"/home/suggestimgUpload",fileObjName:"fileData",fileSizeLimit:1024,height:"100%",width:"100%",multi:!1,onAddQueueItem:function(e){h.html(s({imgList:!0}))},onUploadComplete:function(e,t){h.html(""),g=JSON.parse(t).imgList[0].imgRelUrl,h.html(s(JSON.parse(t))),m.hide(),v++}}),d(),o=new l(document.getElementById("yoho-header")),o.on("tap",function(e){var t=r("#suggest-textarea").val();r(e.target).hasClass("nav-btn")&&r.ajax({method:"post",url:"/home/savesuggest",data:{content:t,image:g}}).then(function(e){200===e.code&&u.showDialog({autoHide:!0,dialogText:"提交成功"})}).fail(function(){})}),null!==document.getElementById("img-form")&&(i=new l(document.getElementById("img-form")),i.on("tap",function(e){r(e.target).hasClass("upload-img-remove")&&(h.html(""),g="",v--,setTimeout(function(){m.show()},50))})),p.bind("click",function(){var e=r(this).closest(".suggest-item").attr("data-id"),t=r(this);r.ajax({method:"post",url:"/home/upAndDown",data:{suggest_id:e}}).then(function(e){200===e.code&&(t.closest(".suggest-type").removeClass("show"),r(".suggest-good").addClass("show"))}).fail(function(e){u.showDialog({autoHide:!0,dialogText:"网络错误~"})})}),f.bind("click",function(){var e=r(this).closest(".suggest-item").attr("data-id"),t=r(this);r.ajax({method:"post",url:"/home/upAndDown",data:{suggest_id:e}}).then(function(e){200===e.code&&(t.closest(".suggest-type").removeClass("show"),r(".suggest-bad").addClass("show"))}).fail(function(e){u.showDialog({autoHide:!0,dialogText:"网络错误~"})})})}),define("js/me/jquery.uploadifive",["jquery"],function(e,t,n){var o=e("jquery");!function(e){var t={init:function(n){return this.each(function(){var o=e(this);o.data("uploadifive",{inputs:{},inputCount:0,fileID:0,queue:{count:0,selected:0,replaced:0,errors:0,queued:0,cancelled:0},uploads:{current:0,attempts:0,successful:0,errors:0,count:0}});var a=o.data("uploadifive"),s=a.settings=e.extend({auto:!0,buttonClass:!1,buttonText:"Select Files",checkScript:!1,dnd:!0,dropTarget:!1,fileObjName:"Filedata",fileSizeLimit:0,fileType:!1,formData:{},height:30,itemTemplate:!1,method:"post",multi:!0,overrideEvents:[],queueID:!1,queueSizeLimit:0,removeCompleted:!1,simUploadLimit:0,truncateLength:0,uploadLimit:0,uploadScript:"uploadifive.php",width:100},n);if(isNaN(s.fileSizeLimit)){var r=1.024*parseInt(s.fileSizeLimit);s.fileSizeLimit.indexOf("KB")>-1?s.fileSizeLimit=1e3*r:s.fileSizeLimit.indexOf("MB")>-1?s.fileSizeLimit=1e6*r:s.fileSizeLimit.indexOf("GB")>-1&&(s.fileSizeLimit=1e9*r)}else s.fileSizeLimit=1024*s.fileSizeLimit;if(a.inputTemplate=e('<input type="file">').css({"font-size":s.height+"px",opacity:0,position:"absolute",right:"-3px",top:"-3px","z-index":999}),a.createInput=function(){var n=a.inputTemplate.clone(),i=n.name="input"+a.inputCount++;s.multi&&n.attr("multiple",!0),s.fileType&&n.attr("accept",s.fileType),n.bind("change",function(){a.queue.selected=0,a.queue.replaced=0,a.queue.errors=0,a.queue.queued=0;var n=this.files.length;if(a.queue.selected=n,a.queue.count+n>s.queueSizeLimit&&0!==s.queueSizeLimit)e.inArray("onError",s.overrideEvents)<0&&alert("The maximum number of queue items has been reached ("+s.queueSizeLimit+"). Please select fewer files."), | ||
3 | +"function"==typeof s.onError&&s.onError.call(o,"QUEUE_LIMIT_EXCEEDED");else{for(var r=0;n>r;r++)file=this.files[r],a.addQueueItem(file);a.inputs[i]=this,a.createInput()}s.auto&&t.upload.call(o),"function"==typeof s.onSelect&&s.onSelect.call(o,a.queue)}),a.currentInput&&a.currentInput.hide(),a.button.append(n),a.currentInput=n},a.destroyInput=function(t){e(a.inputs[t]).remove(),delete a.inputs[t],a.inputCount--},a.drop=function(n){a.queue.selected=0,a.queue.replaced=0,a.queue.errors=0,a.queue.queued=0;var i=n.dataTransfer,r=i.name="input"+a.inputCount++,l=i.files.length;if(a.queue.selected=l,a.queue.count+l>s.queueSizeLimit&&0!==s.queueSizeLimit)e.inArray("onError",s.overrideEvents)<0&&alert("The maximum number of queue items has been reached ("+s.queueSizeLimit+"). Please select fewer files."),"function"==typeof s.onError&&s.onError.call(o,"QUEUE_LIMIT_EXCEEDED");else{for(var d=0;l>d;d++)file=i.files[d],a.addQueueItem(file);a.inputs[r]=i}s.auto&&t.upload.call(o),"function"==typeof s.onDrop&&s.onDrop.call(o,i.files,i.files.length),n.preventDefault(),n.stopPropagation()},a.fileExistsInQueue=function(e){for(var t in a.inputs){input=a.inputs[t],limit=input.files.length;for(var n=0;n<limit;n++)if(existingFile=input.files[n],existingFile.name==e.name&&!existingFile.complete)return!0}return!1},a.removeExistingFile=function(e){for(var n in a.inputs){input=a.inputs[n],limit=input.files.length;for(var i=0;i<limit;i++)existingFile=input.files[i],existingFile.name!=e.name||existingFile.complete||(a.queue.replaced++,t.cancel.call(o,existingFile,!0))}},0==s.itemTemplate?a.queueItem=e('<div class="uploadifive-queue-item"> <a class="close" href="#">X</a> <div><span class="filename"></span><span class="fileinfo"></span></div> <div class="progress"> <div class="progress-bar"></div> </div> </div>'):a.queueItem=e(s.itemTemplate),a.addQueueItem=function(n){if(e.inArray("onAddQueueItem",s.overrideEvents)<0){a.removeExistingFile(n),n.queueItem=a.queueItem.clone(),n.queueItem.attr("id",s.id+"-file-"+a.fileID++),n.queueItem.find(".close").bind("click",function(){return t.cancel.call(o,n),!1});var i=n.name;i.length>s.truncateLength&&0!=s.truncateLength&&(i=i.substring(0,s.truncateLength)+"..."),n.queueItem.find(".filename").html(i),n.queueItem.data("file",n),a.queueEl.append(n.queueItem)}"function"==typeof s.onAddQueueItem&&s.onAddQueueItem.call(o,n),n.size>s.fileSizeLimit&&0!=s.fileSizeLimit?a.error("FILE_SIZE_LIMIT_EXCEEDED",n):(a.queue.queued++,a.queue.count++)},a.removeQueueItem=function(t,n,o){o||(o=0);var i=n?0:500;t.queueItem&&(" - Completed"!=t.queueItem.find(".fileinfo").html()&&t.queueItem.find(".fileinfo").html(" - Cancelled"),t.queueItem.find(".progress-bar").width(0),t.queueItem.delay(o).fadeOut(i,function(){e(this).remove()}),delete t.queueItem,a.queue.count--)},a.filesToUpload=function(){var e=0;for(var t in a.inputs){input=a.inputs[t],limit=input.files.length;for(var n=0;n<limit;n++)file=input.files[n],file.skip||file.complete||e++}return e},a.checkExists=function(n){if(e.inArray("onCheck",s.overrideEvents)<0){e.ajaxSetup({async:!1});var i=e.extend(s.formData,{filename:n.name});if(e.post(s.checkScript,i,function(e){n.exists=parseInt(e)}),n.exists&&!confirm("A file named "+n.name+" already exists in the upload folder.\nWould you like to replace it?"))return t.cancel.call(o,n),!0}return"function"==typeof s.onCheck&&s.onCheck.call(o,n,n.exists),!1},a.uploadFile=function(t,n){if(!t.skip&&!t.complete&&!t.uploading)if(t.uploading=!0,a.uploads.current++,a.uploads.attempted++,xhr=t.xhr=new XMLHttpRequest,"function"==typeof FormData||"object"==typeof FormData){var r=new FormData;r.append(s.fileObjName,t);for(i in s.formData)r.append(i,s.formData[i]);xhr.open(s.method,s.uploadScript,!0),xhr.upload.addEventListener("progress",function(e){e.lengthComputable&&a.progress(e,t)},!1),xhr.addEventListener("load",function(e){4==this.readyState&&(t.uploading=!1,200==this.status?"Invalid file type."!==t.xhr.responseText?a.uploadComplete(e,t,n):a.error(t.xhr.responseText,t,n):404==this.status?a.error("404_FILE_NOT_FOUND",t,n):403==this.status?a.error("403_FORBIDDEN",t,n):a.error("Unknown Error",t,n))}),xhr.send(r)}else{var l=new FileReader;l.onload=function(i){var r="-------------------------"+(new Date).getTime(),l="--",d="\r\n",c="";c+=l+r+d,c+='Content-Disposition: form-data; name="'+s.fileObjName+'"',t.name&&(c+='; filename="'+t.name+'"'),c+=d,c+="Content-Type: application/octet-stream"+d+d,c+=i.target.result+d;for(key in s.formData)c+=l+r+d,c+='Content-Disposition: form-data; name="'+key+'"'+d+d,c+=s.formData[key]+d;c+=l+r+l+d,xhr.upload.addEventListener("progress",function(e){a.progress(e,t)},!1),xhr.addEventListener("load",function(e){t.uploading=!1;var o=this.status;404==o?a.error("404_FILE_NOT_FOUND",t,n):"Invalid file type."!=t.xhr.responseText?a.uploadComplete(e,t,n):a.error(t.xhr.responseText,t,n)},!1);var u=s.uploadScript;if("get"==s.method){var h=e(s.formData).param();u+=h}xhr.open(s.method,s.uploadScript,!0),xhr.setRequestHeader("Content-Type","multipart/form-data; boundary="+r),"function"==typeof s.onUploadFile&&s.onUploadFile.call(o,t),xhr.sendAsBinary(c)},l.readAsBinaryString(t)}},a.progress=function(t,n){if(e.inArray("onProgress",s.overrideEvents)<0){if(t.lengthComputable)var i=Math.round(t.loaded/t.total*100);n.queueItem.find(".fileinfo").html(" - "+i+"%"),n.queueItem.find(".progress-bar").css("width",i+"%")}"function"==typeof s.onProgress&&s.onProgress.call(o,n,t)},a.error=function(n,i,r){if(e.inArray("onError",s.overrideEvents)<0){switch(n){case"404_FILE_NOT_FOUND":errorMsg="404 Error";break;case"403_FORBIDDEN":errorMsg="403 Forbidden";break;case"FORBIDDEN_FILE_TYPE":errorMsg="Forbidden File Type";break;case"FILE_SIZE_LIMIT_EXCEEDED":errorMsg="File Too Large";break;default:errorMsg="Unknown Error"}i.queueItem.addClass("error").find(".fileinfo").html(" - "+errorMsg),i.queueItem.find(".progress").remove()}"function"==typeof s.onError&&s.onError.call(o,n,i),i.skip=!0,"404_FILE_NOT_FOUND"==n?a.uploads.errors++:a.queue.errors++,r&&t.upload.call(o,null,!0)},a.uploadComplete=function(n,i,r){e.inArray("onUploadComplete",s.overrideEvents)<0&&(i.queueItem.find(".progress-bar").css("width","100%"),i.queueItem.find(".fileinfo").html(" - Completed"),i.queueItem.find(".progress").slideUp(250),i.queueItem.addClass("complete")),"function"==typeof s.onUploadComplete&&s.onUploadComplete.call(o,i,i.xhr.responseText),s.removeCompleted&&setTimeout(function(){t.cancel.call(o,i)},3e3),i.complete=!0,a.uploads.successful++,a.uploads.count++,a.uploads.current--,delete i.xhr,r&&t.upload.call(o,null,!0)},a.queueComplete=function(){"function"==typeof s.onQueueComplete&&s.onQueueComplete.call(o,a.uploads)},!(window.File&&window.FileList&&window.Blob&&(window.FileReader||window.FormData)))return"function"==typeof s.onFallback&&s.onFallback.call(o),!1;if(s.id="uploadifive-"+o.attr("id"),a.button=e('<div id="'+s.id+'" class="uploadifive-button">'+s.buttonText+"</div>"),s.buttonClass&&a.button.addClass(s.buttonClass),a.button.css({height:s.height,"line-height":s.height+"px",overflow:"hidden",position:"relative","text-align":"center",width:s.width}),o.before(a.button).appendTo(a.button).hide(),a.createInput.call(o),s.queueID?a.queueEl=e("#"+s.queueID):(s.queueID=s.id+"-queue",a.queueEl=e('<div id="'+s.queueID+'" class="uploadifive-queue" />'),a.button.after(a.queueEl)),s.dnd){var l=s.dropTarget?e(s.dropTarget):a.queueEl.get(0);l.addEventListener("dragleave",function(e){e.preventDefault(),e.stopPropagation()},!1),l.addEventListener("dragenter",function(e){e.preventDefault(),e.stopPropagation()},!1),l.addEventListener("dragover",function(e){e.preventDefault(),e.stopPropagation()},!1),l.addEventListener("drop",a.drop,!1)}XMLHttpRequest.prototype.sendAsBinary||(XMLHttpRequest.prototype.sendAsBinary=function(e){function t(e){return 255&e.charCodeAt(0)}var n=Array.prototype.map.call(e,t),o=new Uint8Array(n);this.send(o.buffer)}),"function"==typeof s.onInit&&s.onInit.call(o)})},debug:function(){return this.each(function(){console.log(e(this).data("uploadifive"))})},clearQueue:function(){this.each(function(){var n=e(this),o=n.data("uploadifive"),a=o.settings;for(var s in o.inputs)for(input=o.inputs[s],limit=input.files.length,i=0;i<limit;i++)file=input.files[i],t.cancel.call(n,file);"function"==typeof a.onClearQueue&&a.onClearQueue.call(n,e("#"+o.settings.queueID))})},cancel:function(n,o){this.each(function(){var i=e(this),a=i.data("uploadifive"),s=a.settings;"string"==typeof n&&(isNaN(n)||(fileID="uploadifive-"+e(this).attr("id")+"-file-"+n),n=e("#"+fileID).data("file")),n.skip=!0,a.filesCancelled++,n.uploading&&(a.uploads.current--,n.uploading=!1,n.xhr.abort(),delete n.xhr,t.upload.call(i)),e.inArray("onCancel",s.overrideEvents)<0&&a.removeQueueItem(n,o),"function"==typeof s.onCancel&&s.onCancel.call(i,n)})},upload:function(t,n){this.each(function(){var o=e(this),i=o.data("uploadifive"),a=i.settings;if(t)i.uploadFile.call(o,t);else if(i.uploads.count+i.uploads.current<a.uploadLimit||0==a.uploadLimit){if(!n){i.uploads.attempted=0,i.uploads.successsful=0,i.uploads.errors=0;var s=i.filesToUpload();"function"==typeof a.onUpload&&a.onUpload.call(o,s)}e("#"+a.queueID).find(".uploadifive-queue-item").not(".error, .complete").each(function(){return _file=e(this).data("file"),i.uploads.current>=a.simUploadLimit&&0!==a.simUploadLimit||i.uploads.current>=a.uploadLimit&&0!==a.uploadLimit||i.uploads.count>=a.uploadLimit&&0!==a.uploadLimit?!1:void(a.checkScript?(_file.checking=!0,skipFile=i.checkExists(_file),_file.checking=!1,skipFile||i.uploadFile(_file,!0)):i.uploadFile(_file,!0))}),0==e("#"+a.queueID).find(".uploadifive-queue-item").not(".error, .complete").size()&&i.queueComplete()}else 0==i.uploads.current&&(e.inArray("onError",a.overrideEvents)<0&&i.filesToUpload()>0&&0!=a.uploadLimit&&alert("The maximum upload limit has been reached."),"function"==typeof a.onError&&a.onError.call(o,"UPLOAD_LIMIT_EXCEEDED",i.filesToUpload()))})},destroy:function(){this.each(function(){var n=e(this),o=n.data("uploadifive"),i=o.settings;t.clearQueue.call(n),i.queueID||e("#"+i.queueID).remove(),n.siblings("input").remove(),n.show().insertBefore(o.button),o.button.remove(),"function"==typeof i.onDestroy&&i.onDestroy.call(n)})}};e.fn.uploadifive=function(n){return t[n]?t[n].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof n&&n?void e.error("The method "+n+" does not exist in $.uploadify"):t.init.apply(this,arguments)}}(o)}),define("js/me/index",["jquery","swiper","index"],function(e,t,n){var o,i=e("jquery"),a=i(".user-avatar"),s=i(".list-item"),r=new Image;e("js/product/recommend-for-you"),e("js/product/suspend-cart"),o=a.data("avatar"),r.src=o,r.onload=function(){a.css("background-image","url("+o+")")},i(".yoho-page").on("touchstart",".list-item, .type-item",function(){s.removeClass("highlight"),i(this).addClass("highlight")}).on("touchend touchcancel",".list-item, .type-item",function(){i(this).removeClass("highlight")})}),define("js/me/coupons",["jquery","hammer","mlellipsis"],function(e,t,n){function o(e,t){l.showLoadingMask(),a.ajax({type:"POST",url:"/home/couponData",dataType:"html",data:{statu:e,page:t},success:function(e){a("#employ").append(e),window.rePosFooter(),l.hideLoadingMask()}})}var i,a=e("jquery"),s=e("hammer"),r=e("mlellipsis"),l=e("js/plugin/loading"),d=0,c=1;r.init(),a(".yoho-footer").css("border-top","1px solid #e0e0e0"),a(".employ span").each(function(e){i=new s(a(".employ span")[e]),i.on("tap",function(t){a(".employ span").removeClass("active").eq(e).addClass("active"),a("#employ").html(" "),d=e,c=1,o(d,c),window.rePosFooter()})}),a(window).scroll(function(){return a(window).scrollTop()+a(window).height()>a("body").height()-1?(c++,void o(d,c)):void 0}),o(d,c)}),define("js/me/online-service",["jquery"],function(e,t,n){var o=e("jquery"),i=o(".question-tab .tab-item");i.on("touchend",function(){var e=o(this).data("tab");e='[data-tab-name="'+e+'"]',i.removeClass("current"),o(this).addClass("current"),o(".question-list").removeClass("current"),o(e).addClass("current")}),o(".yoho-page").on("touchstart",".connect-item, .question-item",function(){o(this).siblings().removeClass("highlight"),o(this).addClass("highlight")}).on("touchend touchcancel",".connect-item, .question-item",function(){o(this).removeClass("highlight")})}),define("js/me/address",["jquery"],function(e,t,n){var o,i=e("jquery"),a=e("js/plugin/tip"),s=e("js/plugin/security"),r=e("js/plugin/loading"),l=i(".action"),d=i(".edit-address"),c=i(".submit"),u=i(".add-address"),h=i("#yoho-footer"),p=i(".confim-mask"),f=i(".page-wrap"),m=i(".address-item");f.first().css("min-height",function(){return i(window).height()-i("#yoho-header").height()-h.height()}),window.rePosFooter(),p.on("touchend",".cancel",function(){o=null,p.hide()}).on("touchend",".confim",function(){r.showLoadingMask(),i.ajax({method:"POST",url:"/home/delAddress",data:{id:o}}).then(function(e){"object"!==i.type(e)&&(e={}),200!==e.code?a.show(e.message||"网络出了点问题~"):window.location.reload()}).fail(function(){a.show("网络出了点问题~")}).always(function(){o=null,p.hide(),r.hideLoadingMask()})}),m.length<5&&u.attr("href",u.data("href")),u.on("touchend",function(){return m.length>=5?(a.show("您最多添加5个收货地址"),!1):void 0}),l.on("touchend",".del",function(){o=i(this).data("id"),p.show()}),c.on("touchend",function(){return s.hasDangerInput(!1)?!1:(d.submit(),!1)}).on("touchstart",function(){i(this).addClass("highlight")}).on("touchend touchcancel",function(){i(this).removeClass("highlight")})}),define("js/me/browse-record",["jquery","lazyload","handlebars","source-map","hammer"],function(e,t,n){function o(e){var t=l.children(".browse-record-good").length;f||(1===h&&d.removeClass("hide"),f=!0,i.ajax({type:"GET",url:"/home/recordContent",data:{page:h+1},success:function(n){" "===n?(p=!0,c.addClass("hide"),u.removeClass("hide")):(0===t?(l.html(n),a()):(l.append(n),a(l.find(".browse-record-good:gt("+(t-1)+") .lazy"))),h++,e&&e())},complete:function(){f=!1}}))}var i=e("jquery"),a=e("lazyload"),s=e("js/plugin/loading"),r=e("js/me/dialog"),l=i(".records"),d=i(".load-more"),c=d.children(".more"),u=d.children(".no-more"),h=0,p=!1,f=!1,m=i(window).height();s.init(),s.showLoadingMask(),o(s.hideLoadingMask),i(window).scroll(function(){p||m+i(window).scrollTop()>i(document).height()-.25*l.height()&&o()}),l.on("touchstart",".del-icon",function(){var e=i(this).closest(".browse-record-good"),t=e.data("skn");r.showDialog({dialogText:"确定删除此条浏览记录吗?",hasFooter:{leftBtnText:"取消",rightBtnText:"确定"}},function(){i.ajax({type:"GET",url:"/home/delRecord",data:{skn:t},success:function(e){200===e.code&&window.history.go(0)},complete:function(){r.hideDialog()}})})})}),define("js/me/address-act",["jquery","hammer"],function(e,t,n){var o,i=e("jquery"),a=e("hammer"),s=e("js/plugin/tip"),r=e("js/plugin/security"),l=e("js/plugin/loading"),d=i(".edit-address"),c=i(".submit"),u=i(".my-edit-address-page"),h=i(".my-address-list-page"),p=i(".area"),f=i("#yoho-footer"),m=i(".nav-back"),g=i(".nav-title"),v=g.html(),w="edit",y=[];i(u,h).css("min-height",function(){return i(window).height()-i("#yoho-header").height()}),m.attr("href","javascript:void(0);"),m.on("touchend",function(e){"list"===w?(h.hide(),u.show(),e.preventDefault(),w="edit",g.html(v),h.hide(),h.find("ul").hide(),h.children("ul").show().children("li").show(),y=[]):window.history.go(-1)}),d.on("submit",function(){return o?!1:r.hasDangerInput(!1)?!1:i(this).find('[name="consignee"]').val()?i(this).find('[name="mobile"]').val()?i(this).find('[name="area_code"]').val()&&i(this).find('[name="area"]').val()?i(this).find('[name="address"]').val()?(o=!0,l.showLoadingMask(),i.ajax({method:"POST",url:"/home/saveAddress",data:i(this).serialize()}).then(function(e){"object"!==i.type(e)&&(e={}),200!==e.code?(s.show(e.message||"网络出了点问题~"),o=!1,l.hideLoadingMask()):window.location.href="/home/address"}).fail(function(){s.show("网络出了点问题~"),o=!1}),!1):(s.show("地址不能为空"),!1):(s.show("省市区不能为空"),!1):(s.show("手机号不能为空"),!1):(s.show("收件人不能为空"),!1)}),c.on("touchend",function(){return d.submit(),!1}).on("touchstart",function(){i(this).addClass("highlight")}).on("touchend touchcancel",function(){i(this).removeClass("highlight")}),p.on("touchend",function(){u.hide(),h.show(1,function(){f.hide()}),w="list",g.html("地区选择")}),h.find(".address").each(function(e,t){var n=new a(t);n.on("tap",function(e){var t=i(e.target);y.push(t.children(".caption").text()),t.siblings().hide(),t.children("ul").show().children("li").show(),i(this).removeClass("highlight"),e.srcEvent.preventDefault(),e.srcEvent.stopPropagation()})}),h.find(".address-last").each(function(e,t){var n=new a(t);n.on("tap",function(e){var t=i(e.target);y.push(t.children(".caption").text()),i('[name="area"]').val(y.join(" ")),i('[name="area_code"]').val(t.data("id")),u.show(),w="edit",g.html(v),f.show(),h.hide(),h.find("ul").hide(),h.children("ul").show().children("li").show(),y=[],e.srcEvent.preventDefault(),e.srcEvent.stopPropagation()})}),h.on("touchstart","li",function(){i(this).addClass("highlight")}).on("touchend touchcancel","li",function(){i(this).removeClass("highlight")}),i("input, textarea").on("focus",function(){f.hide()}).on("blur",function(){f.show()})}); |
static/dist/myohobuy/1.2.0/lib.js
0 → 100644
This diff could not be displayed because it is too large.
No preview for this file type
@@ -2,7 +2,7 @@ | @@ -2,7 +2,7 @@ | ||
2 | <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" > | 2 | <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" > |
3 | <svg xmlns="http://www.w3.org/2000/svg"> | 3 | <svg xmlns="http://www.w3.org/2000/svg"> |
4 | <metadata> | 4 | <metadata> |
5 | -Created by FontForge 20120731 at Wed Nov 4 11:51:58 2015 | 5 | +Created by FontForge 20120731 at Mon Nov 23 16:04:11 2015 |
6 | By Ads | 6 | By Ads |
7 | </metadata> | 7 | </metadata> |
8 | <defs> | 8 | <defs> |
@@ -13,13 +13,13 @@ Created by FontForge 20120731 at Wed Nov 4 11:51:58 2015 | @@ -13,13 +13,13 @@ Created by FontForge 20120731 at Wed Nov 4 11:51:58 2015 | ||
13 | font-stretch="normal" | 13 | font-stretch="normal" |
14 | units-per-em="1024" | 14 | units-per-em="1024" |
15 | panose-1="2 0 6 3 0 0 0 0 0 0" | 15 | panose-1="2 0 6 3 0 0 0 0 0 0" |
16 | - ascent="812" | ||
17 | - descent="-212" | 16 | + ascent="896" |
17 | + descent="-128" | ||
18 | x-height="792" | 18 | x-height="792" |
19 | - bbox="-0.75 -224 3943 812.871" | 19 | + bbox="-0.75 -224 3943 833" |
20 | underline-thickness="50" | 20 | underline-thickness="50" |
21 | underline-position="-100" | 21 | underline-position="-100" |
22 | - unicode-range="U+0078-E62D" | 22 | + unicode-range="U+0078-E63E" |
23 | /> | 23 | /> |
24 | <missing-glyph horiz-adv-x="374" | 24 | <missing-glyph horiz-adv-x="374" |
25 | d="M34 0v682h272v-682h-272zM68 34h204v614h-204v-614z" /> | 25 | d="M34 0v682h272v-682h-272zM68 34h204v614h-204v-614z" /> |
@@ -171,5 +171,86 @@ q-22 0 -37.5 -15.5t-15.5 -37.5t15.5 -38t37.5 -16h54l157 -627q3 -12 9.5 -22.5t16 | @@ -171,5 +171,86 @@ q-22 0 -37.5 -15.5t-15.5 -37.5t15.5 -38t37.5 -16h54l157 -627q3 -12 9.5 -22.5t16 | ||
171 | <glyph glyph-name="uniE62D" unicode="" | 171 | <glyph glyph-name="uniE62D" unicode="" |
172 | d="M442 274h-84v-76h-230v76h-81q-20 0 -33.5 -12.5t-13.5 -31.5v-395q0 -20 13.5 -33.5t33.5 -13.5h395q19 0 31.5 13.5t12.5 33.5v395q0 13 -5.5 23t-15.5 15.5t-23 5.5zM977 812h-81v-77h-230v77h-84q-10 0 -18 -3.5t-14 -10t-9 -15t-3 -18.5v-395q0 -13 5.5 -23 | 172 | d="M442 274h-84v-76h-230v76h-81q-20 0 -33.5 -12.5t-13.5 -31.5v-395q0 -20 13.5 -33.5t33.5 -13.5h395q19 0 31.5 13.5t12.5 33.5v395q0 13 -5.5 23t-15.5 15.5t-23 5.5zM977 812h-81v-77h-230v77h-84q-10 0 -18 -3.5t-14 -10t-9 -15t-3 -18.5v-395q0 -13 5.5 -23 |
173 | t15.5 -15.5t23 -5.5h395q20 0 33.5 12.5t13.5 31.5v395q0 20 -13.5 33.5t-33.5 13.5zM977 274h-81v-76h-230v76h-84q-13 0 -23 -5.5t-15.5 -15.5t-5.5 -23v-395q0 -13 5.5 -23.5t15.5 -17t23 -6.5h395q20 0 33.5 13.5t13.5 33.5v395q0 19 -13.5 31.5t-33.5 12.5z" /> | 173 | t15.5 -15.5t23 -5.5h395q20 0 33.5 12.5t13.5 31.5v395q0 20 -13.5 33.5t-33.5 13.5zM977 274h-81v-76h-230v76h-84q-13 0 -23 -5.5t-15.5 -15.5t-5.5 -23v-395q0 -13 5.5 -23.5t15.5 -17t23 -6.5h395q20 0 33.5 13.5t13.5 33.5v395q0 19 -13.5 31.5t-33.5 12.5z" /> |
174 | + <glyph glyph-name="uniE62E" unicode="" horiz-adv-x="1639" | ||
175 | +d="M1 783h1045v-625h-1045v625zM1424 783h-337v-625l61 -33q16 7 34 10.5t36 3.5q66 0 116 -42t61 -105l7 -4h205v398zM1178 411v290h164l121 -290h-285zM235 125h-235v-163h111q2 57 36.5 101.5t87.5 61.5zM452 -46q0 15 -2.5 29t-7.5 26.5t-12 24.5t-16 22.5t-19.5 19.5 | ||
176 | +t-22.5 15.5t-25 11.5t-27 7.5t-29 2.5q-66 0 -113.5 -46.5t-47.5 -112.5t47.5 -112.5t114 -46.5t113.5 46.5t47 112.5zM1067 125h-721q35 -11 63 -35t44 -57t18 -71h570q0 50 26 92v71zM1380 -44q0 43 -21.5 79.5t-58.5 58t-80.5 21.5t-80.5 -21.5t-58.5 -58t-21.5 -79.5 | ||
177 | +q0 -66 47 -112.5t113.5 -46.5t113.5 46.5t47 112.5z" /> | ||
178 | + <glyph glyph-name="uniE62F" unicode="" | ||
179 | +d="M474 28v161h-167v50h167v74h-167v49h134l-168 265h87l152 -257v386q-48 0 -96.5 4t-83.5 10.5t-63.5 12.5t-42.5 10l-14 4q-2 -43 -16.5 -74t-34 -44t-38.5 -20t-33 -7h-13q0 -110 10.5 -203.5t20.5 -131.5l10 -38q15 -61 45 -120.5t65.5 -105.5t75.5 -87.5t76 -70.5 | ||
180 | +t66.5 -50.5t47.5 -31.5t18 -10v225h-38zM550 28v161h167v50h-167v74h167v49h-134l168 265h-87l-152 -257v386q35 0 70.5 2t64 6t55.5 8.5t46.5 8.5t34 8t22.5 6l7 2q2 -43 16.5 -74t34 -44t38.5 -20t33 -7h13q0 -110 -10.5 -203.5t-20.5 -131.5l-10 -38q-15 -61 -45 -120.5 | ||
181 | +t-65.5 -105.5t-75.5 -87.5t-76 -70.5t-66.5 -50.5t-47.5 -31.5t-18 -10v225h38z" /> | ||
182 | + <glyph glyph-name="uniE630" unicode="" | ||
183 | +d="M629 -71h-268v20q0 31 -21.5 53t-52.5 22t-52.5 -22t-21.5 -53v-20h-174v609h590v-609zM400 -30h188v527h-508v-527h94q7 41 39 68t74 27t74 -27t39 -68zM989 -71h-136v20q0 21 -10 38t-27 27t-37 10q-31 0 -52.5 -22t-21.5 -53v-20h-117v476h210q22 0 57 -34 | ||
184 | +q27 -26 58 -67q31 -40 52 -75q14 -25 19 -39t5 -23v-238zM892 -30h56v197q0 9 -18 40t-46 68q-7 9 -14 17.5t-13.5 16.5t-13 15t-12.5 14q-10 9 -18 16t-11 8.5t-5 1.5h-168v-394h37q7 41 39 68t74 27q28 0 52 -12.5t40.5 -34t20.5 -48.5zM989 137h-287v193h191l6 -8 | ||
185 | +q35 -43 61 -84q29 -48 29 -71v-30zM743 178h202q-6 15 -21 39q-21 34 -50 72h-131v-111zM779.5 -166q-47.5 0 -81.5 34t-34 81.5t34 81.5t81 34q24 0 45 -9.5t36.5 -25t24.5 -36.5t9 -45q0 -47 -33.5 -81t-81 -34zM779 24q-31 0 -52.5 -22t-21.5 -53q0 -15 6 -28.5t16 -23.5 | ||
186 | +t23.5 -16t28.5 -6q12 0 23.5 4t20.5 10.5t16 16t10.5 20.5t3.5 23q0 21 -10 38t-27 27t-37 10zM287 -166q-48 0 -81.5 34t-33.5 81.5t33.5 81.5t81.5 34t81.5 -34t33.5 -81.5t-33.5 -81.5t-81.5 -34zM287 24q-31 0 -52.5 -22t-21.5 -52.5t21.5 -52.5t52.5 -22t52.5 22 | ||
187 | +t21.5 52.5t-21.5 52.5t-52.5 22z" /> | ||
188 | + <glyph glyph-name="uniE631" unicode="" | ||
189 | +d="M24 799zM47 799zM70 799zM94 799zM117 799zM140 799zM163 799zM187 799zM210 799zM233 799zM256 799zM280 799zM303 799zM326 799zM349 799zM373 799zM396 799zM419 799zM442 799zM466 799zM489 799zM512 799zM535 799zM558 799zM582 799zM605 799zM628 799zM651 799z | ||
190 | +M675 799zM698 799zM721 799zM744 799zM768 799zM791 799zM814 799zM837 799zM861 799zM884 799zM907 799zM930 799zM954 799zM977 799zM1000 799zM1 776zM1 753zM1 730zM1 706zM1 683zM1 660zM1 637zM1 613zM1 590zM1 567zM1 544zM1 520zM1 497zM1 474zM1 451zM1 427zM1 404 | ||
191 | +zM1 381zM1 358zM1 334zM1 311zM1 288zM1 265zM1 242zM1 218zM1 195zM1 172zM1 149zM1 125zM1 102zM1 79zM1 56zM1 32zM1 9zM1 -14zM1 -37zM1 -61zM1 -84zM1 -107zM1 -130zM1 -154zM1 -177zM1 -200zM512 -223q-7 8 -18.5 22t-45.5 59t-64.5 91t-68 113.5t-64.5 131.5 | ||
192 | +t-45.5 139t-18.5 141q0 52 11 96.5t30 75.5t43 56.5t51 41t54 27t51.5 17t43.5 8.5t30 3h11q7 0 18.5 -0.5t45.5 -7t64.5 -17.5t68 -35.5t64.5 -57.5t45.5 -87t18.5 -120t-18 -140.5t-46.5 -140.5t-63 -130t-69.5 -114.5t-63.5 -90t-46.5 -60.5zM740 517q-16 85 -86 140 | ||
193 | +q-1 1 -4 3.5t-5 3.5q-5 4 -22 13l-4 2q-2 1 -3.5 2t-3.5 2l-4 2l-4 2q-1 0 -20 7q-2 0 -7.5 2t-9 3.5t-7.5 1.5q-24 5 -48 5v0q-24 0 -47 -5q-15 -3 -29.5 -8t-27.5 -11.5t-25 -14.5h-1q-12 -9 -27 -23q-2 -1 -5 -4l-3 -3q-2 -2 -4.5 -5t-4 -4.5t-4 -5t-3.5 -4.5 | ||
194 | +q-12 -16 -13 -17q-2 -3 -4.5 -7.5t-3.5 -5.5q0 -1 -1 -2q-2 -4 -3 -6.5t-3 -6t-3.5 -6.5t-2.5 -6q-1 -2 -2 -7q-1 -3 -2 -4q-7 -21 -9 -32q-4 -22 -4 -44q0 -183 175 -470l57 -88q9 13 25 36.5t56 92t70.5 133.5t55.5 148t25 148q0 11 -1 21.5t-3 21.5zM373 474 | ||
195 | +q0 58 40.5 98.5t98.5 40.5t98.5 -40.5t40.5 -98.5t-40.5 -99t-98.5 -41q-28 0 -54 11.5t-44.5 30t-29.5 44.5t-11 54z" /> | ||
196 | + <glyph glyph-name="uniE632" unicode="" | ||
197 | +d="M313 163h397v69h-397v-69zM313 26h397v68h-397v-68zM611 747h-430q-4 0 -7 -0.5t-6 -2t-6 -3.5t-5 -4t-4 -5t-3 -6t-1.5 -6.5t-0.5 -6.5v-825q0 -5 1.5 -10.5t4.5 -9.5t7 -7.5t9 -5t11 -1.5h661q9 0 17 4.5t12.5 12.5t4.5 17v619zM644 626l131 -119h-131v119zM809 -77 | ||
198 | +h-595v755h364v-206q0 -14 9.5 -24t23.5 -10h198v-515zM313 300h397v69h-397v-69z" /> | ||
199 | + <glyph glyph-name="uniE633" unicode="" horiz-adv-x="1304" | ||
200 | +d="M1303 454l-161 242h-304v-443h233q12 0 23 6.5t17 17t6 23.5q0 8 -2.5 15t-6.5 12.5t-10 10t-13 7t-14 2.5h-140v256h161l118 -177v-242h-442v577q0 14 -7 25.5t-18.5 18.5t-25.5 7h-666q-21 0 -36 -15t-15 -36v-620q0 -21 15 -35.5t36 -14.5h142q-30 -49 -30 -105 | ||
201 | +q0 -82 58 -140t140 -58t140 58t58 140q0 28 -8 54.5t-23 50.5h363q-30 -49 -30 -105q0 -82 58 -140t140 -58t140 58t58 140q0 56 -31 105h77v363zM93 719h582v-535h-582v535zM465 -14q0 -43 -30.5 -74t-74 -31t-74 31t-30.5 74t30.5 74t74 31t74 -31t30.5 -74zM1164 -14 | ||
202 | +q0 -29 -14 -53t-38.5 -38t-52.5 -14q-43 0 -74 31t-31 74t31 74t74 31t74 -31t31 -74z" /> | ||
203 | + <glyph glyph-name="uniE634" unicode="" horiz-adv-x="1476" | ||
204 | +d="M1403 812h-1331q-14 0 -27.5 -5.5t-23.5 -15.5t-15.5 -23.5t-5.5 -27.5v-880q0 -30 21 -51t51 -21h1331q30 0 51.5 21t21.5 51v880q0 19 -10 36t-26.5 26.5t-36.5 9.5zM120 692h1235v-151h-1235v151zM120 330h1235v-422h-1235v422zM211 210h572v-61h-572v61zM211 89h331 | ||
205 | +v-60h-331v60z" /> | ||
206 | + <glyph glyph-name="uniE635" unicode="" | ||
207 | +d="M512 797q-102 0 -194.5 -39.5t-160 -106.5t-107 -160t-39.5 -195q0 -68 18 -133t50.5 -119.5t78.5 -101t101 -79t120 -50.5t133 -18q102 0 194.5 40t160 107t107 160t39.5 194q0 82 -25.5 158.5t-71.5 138t-108 108t-138 71.5t-158 25zM512 -118q-112 0 -207.5 55.5 | ||
208 | +t-151 151t-55.5 207.5q0 84 33 161t88.5 132.5t132 88t160.5 32.5q112 0 207.5 -55.5t151 -150.5t55.5 -207.5t-55.5 -208t-151 -151t-207.5 -55.5zM512 471q25 0 43 -18t18 -44h87q0 50 -29 89t-75 53v50q0 6 -3 11t-8 8t-11 3h-44q-9 0 -15.5 -6.5t-6.5 -15.5v-50 | ||
209 | +q-22 -7 -41.5 -20.5t-33.5 -32t-21.5 -41.5t-7.5 -48q0 -104 133 -154q27 -9 44 -20t23 -22t7.5 -16.5t1.5 -13.5q0 -25 -18 -43t-43 -18q-17 0 -31 8.5t-22 22.5t-8 30h-87q0 -73 59 -118q21 -16 45 -24v-50q0 -9 6.5 -15t15.5 -6h44q6 0 11 2.5t8 7.5t3 11v50q46 15 75 54 | ||
210 | +t29 88q0 105 -133 154q-18 7 -32 14.5t-22 14.5t-13 13t-6.5 12.5t-2 10t-0.5 7.5q0 26 18 44t43 18z" /> | ||
211 | + <glyph glyph-name="uniE636" unicode="" | ||
212 | +d="M947 675h-892q-23 0 -39 -16t-16 -38v-642q0 -23 16 -39t39 -16h892q22 0 38 16t16 39v642q0 15 -7 27.5t-19.5 19.5t-27.5 7zM836 584l-335 -260l-336 260h671zM91 16v511l376 -293q4 -3 8 -5t8 -3.5t8.5 -2t9.5 -0.5q18 0 33 11l376 293v-511h-819z" /> | ||
213 | + <glyph glyph-name="uniE637" unicode="" | ||
214 | +d="M512 572q-31 0 -59 -12t-48.5 -32.5t-32.5 -48.5t-12 -59q0 -63 44.5 -107.5t107.5 -44.5q31 0 59 12t48.5 32.5t32.5 48.5t12 59q0 63 -44.5 107.5t-107.5 44.5zM512 796q-149 0 -257 -103q-107 -100 -117 -245q-1 -14 -1 -28q0 -56 36 -137.5t81 -151t104 -146.5 | ||
215 | +t85 -107t44 -50l25 -28l25 28q18 20 44 50t85 107t104 146.5t81 151t36 137.5q0 76 -29.5 145.5t-80 120t-120 80.5t-145.5 30zM512 -97q-46 54 -93.5 115.5t-98.5 137t-83 147t-32 117.5q0 127 90 217t217 90t217 -90t90 -217q0 -46 -32 -117.5t-83 -147t-98.5 -137 | ||
216 | +t-93.5 -115.5z" /> | ||
217 | + <glyph glyph-name="uniE638" unicode="" horiz-adv-x="1335" | ||
218 | +d="M1273 -88h-1179q-26 0 -44 -18t-18 -44t18 -44t44 -18h1179q17 0 31 8.5t22.5 22.5t8.5 31t-8.5 31.5t-22.5 22.5t-31 8zM841 657h429q27 0 46 18t19 44t-19 44t-46 18h-429q-27 0 -46 -18t-19 -44q0 -10 3.5 -19.5t9.5 -17t14 -13.5t17.5 -9t20.5 -3zM841 230h429 | ||
219 | +q27 0 46 18t19 44q0 17 -8.5 31.5t-23.5 22.5t-33 8h-429q-13 0 -25 -5t-20.5 -13t-14 -19.5t-5.5 -24t5.5 -24t14 -20t20.5 -13.5t25 -5zM85 230h434q26 0 44 18t18 44v435q0 17 -8 31t-22.5 22.5t-31.5 8.5h-434q-26 0 -44 -18.5t-18 -43.5v-435q0 -25 18 -43.5t44 -18.5z | ||
220 | +M147 665h310v-311h-310v311z" /> | ||
221 | + <glyph glyph-name="uniE639" unicode="" | ||
222 | +d="M507 811q-81 0 -157.5 -25.5t-138 -72t-108 -108t-72 -138t-25.5 -157.5q0 -185 121 -326q115 -134 287 -167q47 -8 93 -9q46 0 90.5 8.5t85 23.5t78 37t70 49.5t60 60t49.5 70t37 78t23.5 85t8.5 90.5q0 101 -40 194t-107 160t-160 107t-195 40zM507 -104 | ||
223 | +q-112 0 -207.5 55.5t-150.5 150.5t-55 207.5t55 208t150.5 151t207.5 55.5q68 0 131 -21t114 -59.5t89.5 -89.5t59 -114t20.5 -130q0 -113 -55.5 -208t-150.5 -150.5t-208 -55.5zM506 605h-1h-1q-67 0 -115 -47q-48 -48 -48 -116q0 -9 3 -17t9 -14t14 -9.5t17 -3.5t17 3.5 | ||
224 | +t14 9.5t9.5 14t3.5 17q0 32 22 54q22 21 55 22q10 0 19.5 -3t17.5 -8t15 -12t12 -15t8 -17.5t3 -19.5q1 -24 -12 -43t-34 -29q-22 -9 -39 -26t-26 -39.5t-9 -47.5v-36q0 -18 13 -30.5t31 -12.5t31 12.5t13 30.5v36q0 24 20 33q46 20 73 61.5t26 91.5q-1 66 -48 113t-113 48z | ||
225 | +M504 135q-23 0 -39 -16t-16 -38q0 -5 1 -10t3 -9.5t4 -8.5t5 -7.5t6.5 -6.5t8 -5.5t8.5 -4t9 -2.5t10 -1q23 0 38.5 16t15.5 39q0 9 -2.5 17t-7.5 15t-12 12t-15 7.5t-17 2.5z" /> | ||
226 | + <glyph glyph-name="uniE63A" unicode="" | ||
227 | +d="M964 376q14 1 25 8t17.5 18.5t6.5 25.5v147q0 14 -7 26t-19 19t-26 7h-898q-10 0 -20 -4t-17 -11t-11 -17t-4 -20v-147q0 -21 14 -36t35 -16q29 -2 49.5 -24t20.5 -52t-20.5 -52t-49.5 -24q-21 -1 -35 -16t-14 -36v-147q0 -21 15.5 -36.5t36.5 -15.5h898q21 0 36.5 15.5 | ||
228 | +t15.5 36.5v147q0 21 -14 36t-35 16q-19 2 -35.5 12.5t-25.5 27t-9 36.5q0 15 5.5 28.5t15 23.5t22.5 16.5t27 7.5zM926 143v-83h-828v83q52 15 85.5 58.5t33.5 98.5t-33.5 98.5t-85.5 58.5v83h283v-66h66v66h479v-83q-52 -15 -85.5 -58.5t-33.5 -98.5t33.5 -98.5t85.5 -58.5 | ||
229 | +zM381 278h66v-109h-66v109zM381 431h66v-109h-66v109zM381 126h66v-66h-66v66z" /> | ||
230 | + <glyph glyph-name="uniE63B" unicode="" horiz-adv-x="1199" | ||
231 | +d="M1149 812h-1099q-21 0 -35.5 -14.5t-14.5 -35.5v-350q0 -20 14.5 -35t35.5 -15h1099q13 0 24.5 7t18.5 18.5t7 24.5v350q0 21 -14.5 35.5t-35.5 14.5zM100 712h999v-250h-999v250zM1024 312q-21 0 -35.5 -14.5t-14.5 -34.5v-375h-749v375q0 20 -14.5 34.5t-35.5 14.5 | ||
232 | +t-35.5 -14.5t-14.5 -34.5v-425q0 -21 14.5 -35.5t35.5 -14.5h849q10 0 19.5 4t16 10.5t10.5 16t4 19.5v425q0 20 -14.5 34.5t-35.5 14.5zM325 312q-10 0 -19.5 -3.5t-16 -10.5t-10.5 -16t-4 -19v-200q0 -33 30 -46q10 -4 20 -4h549q21 0 35.5 14.5t14.5 35.5v200 | ||
233 | +q0 20 -14.5 34.5t-35.5 14.5t-35.5 -14.5t-14.5 -34.5v-150h-449v150q0 32 -30 45q-10 4 -20 4z" /> | ||
234 | + <glyph glyph-name="uniE63C" unicode="" horiz-adv-x="1048" | ||
235 | +d="M298 437q-21 0 -35.5 -14.5t-14.5 -35.5t14.5 -35.5t35.5 -14.5q13 0 24.5 7t18.5 18.5t7 25t-7 25t-18.5 18t-24.5 6.5zM953 -55q95 93 95 215t-94 214q0 2 0.5 7t1 9t0.5 7q0 111 -64 205t-174.5 148.5t-239.5 54.5q-97 0 -185.5 -32.5t-152.5 -87t-102 -130 | ||
236 | +t-38 -158.5q0 -78 33 -148.5t93 -125.5l-77 -123q-8 -12 -6.5 -26t10.5 -25l5 -5q2 -2 4.5 -3.5t5 -2.5t5.5 -2t6 -1.5t6 -0.5q9 0 18 4l180 80q4 2 7 4q20 -7 39 -12q48 -80 138.5 -128t199.5 -48q38 0 74.5 6t70.5 19q1 -1 2 -1l140 -62q2 -2 5 -2l6 -2h6q20 0 32 15 | ||
237 | +q10 10 11 24t-7 26zM286 160q0 -17 2 -35v1q-35 16 -64.5 38t-53 48t-40.5 55.5t-26 62.5t-9 67q0 85 51.5 157t139.5 114t192 42q142 0 249.5 -76.5t128.5 -189.5q-43 21 -91 32t-98 11q-39 0 -77 -6.5t-71.5 -19t-64.5 -30.5t-56.5 -40t-46.5 -48.5t-35.5 -55.5t-22 -61 | ||
238 | +t-7.5 -66zM381 160q0 63 38.5 116.5t104 84.5t143.5 31q118 0 202 -68t84 -164q0 -62 -38.5 -115.5t-104.5 -84.5t-143 -31q-118 0 -202 68t-84 163zM527 191q-16 0 -27.5 -11t-11.5 -27q0 -11 5.5 -20t14.5 -14t19 -5q16 0 27.5 11.5t11.5 27.5t-11.5 27t-27.5 11zM667 191 | ||
239 | +q-16 0 -27.5 -11t-11.5 -27t11.5 -27.5t27.5 -11.5q10 0 19 5t14.5 14t5.5 20q0 7 -3.5 14.5t-8.5 12.5t-12 8t-15 3zM806 191q-16 0 -27 -11t-11 -27t11 -27.5t27 -11.5t27.5 11.5t11.5 27.5q0 7 -3 14.5t-8 12.5t-12.5 8t-15.5 3z" /> | ||
240 | + <glyph glyph-name="uniE63D" unicode="" | ||
241 | +d="M512 13q-131 0 -241.5 55t-175 149.5t-64.5 205.5t64.5 205.5t175 149.5t241.5 55q98 0 187 -32.5t153.5 -87.5t102.5 -131t38 -159q0 -111 -64.5 -205.5t-175 -149.5t-241.5 -55zM512 751q-54 0 -106 -12t-95.5 -33t-80.5 -51.5t-63 -66.5t-40 -78.5t-14 -86.5 | ||
242 | +q0 -89 53.5 -164.5t145.5 -119.5t200 -44q65 0 126 16.5t110 47t86 71t57 90.5t20 103q0 89 -53.5 164.5t-145.5 119.5t-200 44zM730 75l184 -82l-102 164zM914 -44q-8 0 -15 3l-184 82q-14 6 -19.5 20.5t0.5 28.5q3 7 8.5 12t12 7.5t14 2t14.5 -3.5l74 -33l-39 62 | ||
243 | +q-4 6 -5 13.5t0.5 14.5t6 13t10.5 10q13 8 28 4.5t23 -16.5l102 -164q15 -23 -3 -43q-4 -4 -8.5 -7t-9.5 -4.5t-10 -1.5zM379 413q0 -22 -15 -37t-36.5 -15t-36.5 15t-15 37q0 7 2 13.5t5.5 12t8 10.5t10 8t12.5 5t14 2q10 0 19.5 -4t16.5 -11t11 -16.5t4 -19.5zM563 413 | ||
244 | +q0 -14 -7 -26t-18.5 -19t-25.5 -7t-25.5 7t-18.5 19t-7 26q0 21 15 36t36 15q14 0 25.5 -7t18.5 -18.5t7 -25.5zM748 413q0 -22 -15 -37t-36.5 -15t-36.5 15t-15 36.5t15 36.5t36 15q14 0 26 -7t19 -18.5t7 -25.5z" /> | ||
245 | + <glyph glyph-name="uniE63E" unicode="" | ||
246 | +d="M521 317zM768 -178h-1h-1h-1h-1h-1h-1h-1h-1h-1h-1h-1q-11 1 -23 2h-1h-1h-1h-1h-1l-1 1h-1h-1h-1h-1h-1h-1h-1l-1 1h-1h-1h-1h-1h-1l-1 1h-1h-1h-1h-1h-1h-1l-1 1h-1h-1h-1h-1l-1 1h-1h-1h-1h-1l-1 1h-1h-1h-1h-1l-1 1h-1h-1h-1l-1 1h-1h-1h-1h-1l-1 1h-1h-1l-1 1h-1h-1 | ||
247 | +h-1h-1l-1 1h-1h-1h-1l-1 1h-1h-1h-1l-1 1h-1l-1 1h-1h-1h-1l-1 1h-1h-1h-1l-1 1h-1h-1l-1 1h-1h-1h-1l-1 1h-1h-1l-1 1h-1l-1 1h-1h-1l-1 1h-1h-1l-1 1h-1h-1l-1 1h-1h-1l-1 1h-1h-1l-1 1h-1h-1l-1 1h-1h-1l-1 1h-1l-1 1h-1h-1l-1 1h-1l-1 1h-1l-1 1h-1h-1l-1 1h-1h-1l-1 1 | ||
248 | +h-1l-1 1h-1h-1l-1 1h-1l-1 1h-1l-1 1h-1h-1l-1 1h-1l-1 1h-1l-1 1h-1h-1l-1 1h-1l-1 1h-1l-1 1h-1l-1 1h-1h-1l-1 1h-1l-1 1h-1l-1 1h-1l-1 1h-1l-1 1h-1l-1 1h-1l-1 1h-1l-1 1h-1l-1 1h-1l-1 1q-145 72 -277 204.5t-205 277.5q-55 113 -56.5 201t52.5 140q13 13 30 13 | ||
249 | +t30 -13q8 -8 11 -19t0 -21.5t-11 -19.5q-32 -32 -26.5 -98t47.5 -149q68 -137 187.5 -256.5t256.5 -187.5q83 -42 149 -47.5t98 26.5q13 13 30 13t30 -13t13 -30t-13 -30q-54 -47 -141 -47zM333 355q-26 0 -39 26q-9 16 -4 32.5t21 23.5l99 46q15 8 26 23t8 33q0 13 -17 30 | ||
250 | +l-141 145q-10 9 -24.5 12.5t-31.5 0.5q-12 -7 -25 -13l-68 -73q-9 -8 -19.5 -11t-21.5 0t-19 11q-13 13 -13 30t13 30l68 68q28 28 60 34q80 20 141 -34l140 -140q4 -4 7 -8l6 -8q3 -4 6 -8.5t5 -8.5l4 -10q2 -4 4 -9l2 -10q2 -5 3 -10l2 -10q1 -8 1 -16.5t-1 -16.5 | ||
251 | +t-3.5 -16.5t-5.5 -16.5t-7.5 -15.5t-10 -15t-11.5 -14t-13 -12.5t-14.5 -11.5t-15.5 -10.5l-98 -47q0 2 -2.5 2t-6 -1t-4.5 -1zM875 -139q-10 0 -17 3t-13 9q-13 13 -13 30t13 30l68 68q13 13 13 26q7 35 -13 55l-141 141q-4 4 -30 17q-12 2 -23.5 -2t-19.5 -12.5t-12 -19.5 | ||
252 | +l-47 -98q-3 -6 -7 -11t-10 -8t-12.5 -4t-13 0.5t-12.5 5.5q-8 3 -13.5 9t-8 13.5t-1.5 16.5t5 16l47 99q23 42 62 64.5t83 16.5q45 -7 77 -39l141 -141q29 -28 38 -65t-4 -75q-17 -43 -34 -60l-72 -73q-5 -4 -9.5 -7t-9.5 -4t-11 -1zM602 87q-4 0 -9 1.5t-8 2.5t-9 4 | ||
253 | +q-77 58 -154 128q-76 77 -128 154q-9 12 -6 29.5t19 30.5q6 3 13 5t13.5 2t13 -2t11.5 -5.5t9 -8.5q15 -21 27 -36.5t27.5 -35t32 -37t32.5 -32.5q14 -12 21 -18.5t19.5 -17.5t20.5 -18t19.5 -17t20.5 -17.5t19.5 -15.5t20.5 -15q11 -7 16 -17t3 -21.5t-10 -21.5 | ||
254 | +q-6 -21 -34 -21z" /> | ||
174 | </font> | 255 | </font> |
175 | </defs></svg> | 256 | </defs></svg> |
No preview for this file type
No preview for this file type
968 Bytes
1.04 KB
1.6 KB
18.6 KB
19.1 KB
20.5 KB
19.7 KB
18.7 KB
19.8 KB
18.4 KB
18.9 KB
18.5 KB
20.7 KB
16.9 KB
20.9 KB
18.5 KB
16.8 KB
19.3 KB
19.9 KB
18.5 KB
17 KB
18.2 KB
19.7 KB
17.2 KB
17.2 KB
18.9 KB
16.8 KB
50 KB
71.5 KB
50.4 KB
64 KB
74 KB
73.2 KB
58.6 KB
63.9 KB
66.1 KB
84.3 KB
74.1 KB
51.1 KB
360 KB
4.54 KB
4.68 KB
5.99 KB
21.3 KB
46.6 KB
137 KB
4.32 KB
1.48 KB
6.99 KB
18 KB
19.5 KB
19 KB
18.2 KB
17.8 KB
19.2 KB
19.5 KB
19.3 KB
18.5 KB
18.2 KB
19.6 KB
20.3 KB
20 KB
19 KB
17.3 KB
18 KB
19.2 KB
20.3 KB
18 KB
16.8 KB
18.7 KB
18 KB
18.1 KB
18.4 KB
16.8 KB
18.6 KB
16.3 KB
16.5 KB
53.3 KB
61 KB
45.1 KB
68.3 KB
49.8 KB
57.9 KB
71.7 KB
49.3 KB
42.7 KB
49.9 KB
65 KB
62.3 KB
-
Please register or login to post a comment