Commit 78d6440c authored by muyun's avatar muyun

detail

parent c4f556e5
.idea
spm_modules
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
!function(){var t,e,n,r,i,o,a,s,c,l,u,h,p,f,d,g,m,v,y,b,w,E,x,_,k,T,C,S,P,O,N,I,A;t=function(){!function(t){function e(){var e=o.clientWidth,n="}";!navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i)&&e>1024&&(e=640,n=";max-width:"+e+"px;margin-right:auto!important;margin-left:auto!important;}"),t.rem=e/16,s.innerHTML="html{font-size:"+t.rem+"px!important;}body{font-size:"+parseInt(12*(e/320))+"px"+n}var n,r,i,o=document.documentElement,a=document.querySelector('meta[name="viewport"]'),s=document.createElement("style"),n=t.devicePixelRatio||1;r=1/n,o.setAttribute("data-dpr",n),o.firstElementChild.appendChild(s);var c=navigator.userAgent.match(/Android[\S\s]+AppleWebkit\/(\d{3})/i);if(!c||c&&c[1]>534){if(a.setAttribute("content","target-densitydpi=device-dpi,initial-scale="+r+",maximum-scale="+r+", minimum-scale="+r+",user-scalable=no,width="),o.firstElementChild)o.firstElementChild.appendChild(a);else{var l=document.createElement("div");l.appendChild(a),document.write(l.innerHTML)}980==o.clientWidth&&a.setAttribute("content","target-densitydpi=device-dpi,width=device-width,user-scalable=no,initial-scale=1,maximum-scale=1,minimum-scale=1")}t.dpr=n,t.addEventListener("resize",function(){clearTimeout(i),i=setTimeout(e,300)},!1),t.addEventListener("pageshow",function(t){t.persisted&&(clearTimeout(i),i=setTimeout(e,300))},!1),e()}(window)}(),e=function(t){var e=function(){function t(t){return null==t?String(t):N[I.call(t)]||"object"}function e(e){return"function"==t(e)}function n(t){return null!=t&&t==t.window}function r(t){return null!=t&&t.nodeType==t.DOCUMENT_NODE}function i(e){return"object"==t(e)}function o(t){return i(t)&&!n(t)&&Object.getPrototypeOf(t)==Object.prototype}function a(t){return"number"==typeof t.length}function s(t){return k.call(t,function(t){return null!=t})}function c(t){return t.length>0?y.fn.concat.apply([],t):t}function l(t){return t in P?P[t]:P[t]=new RegExp("(^|\\s)"+t+"(\\s|$)")}function u(t){return"children"in t?_.call(t.children):y.map(t.childNodes,function(t){return 1==t.nodeType?t:void 0})}function h(t,e){return null==e?y(t):y(t).filter(e)}function p(t,n,r,i){return e(n)?n.call(t,r,i):n}function f(t,e,n){null==n?t.removeAttribute(e):t.setAttribute(e,n)}function d(t,e){var n=t.className,r=n&&n.baseVal!==m;return e===m?r?n.baseVal:n:void(r?n.baseVal=e:t.className=e)}function g(t){var e;try{return t?"true"==t||("false"==t?!1:"null"==t?null:/^0/.test(t)||isNaN(e=Number(t))?/^[\[\{]/.test(t)?y.parseJSON(t):t:e):t}catch(n){return t}}var m,v,y,b,w,E,x=[],_=x.slice,k=x.filter,T=window,C=T.document,S={},P={},O=/^\s*<(\w+|!)[^>]*>/,N={},I=N.toString,A={},L=Array.isArray;return A.matches=function(t,e){var n=C.createElement("div");if(!e||!t||1!==t.nodeType)return!1;var r=t.webkitMatchesSelector||t.matchesSelector;if(r)return r.call(t,e);var i,o=t.parentNode,a=!o;return a&&(o=n).appendChild(t),i=~A.qsa(o,e).indexOf(t),a&&n.removeChild(t),i},w=function(t){return t.replace(/-+(.)?/g,function(t,e){return e?e.toUpperCase():""})},E=function(t){return k.call(t,function(e,n){return t.indexOf(e)==n})},A.fragment=function(t,e){var n,r,i=C.createElement("table"),o=C.createElement("tr"),a={tr:C.createElement("tbody"),tbody:i,thead:i,tfoot:i,td:o,th:o,"*":C.createElement("div")},s=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,c=/^<(\w+)\s*\/?>(?:<\/\1>|)$/;return c.test(t)&&(n=y(C.createElement(RegExp.$1))),n||(t.replace&&(t=t.replace(s,"<$1></$2>")),e===m&&(e=O.test(t)&&RegExp.$1),e in a||(e="*"),r=a[e],r.innerHTML=""+t,n=y.each(_.call(r.childNodes),function(){r.removeChild(this)})),n},A.Z=function(t,e){return t=t||[],t.__proto__=y.fn,t.selector=e||"",t},A.isZ=function(t){return t instanceof A.Z},A.init=function(t,n){var r;if(!t)return A.Z();if("string"==typeof t)if(t=t.trim(),"<"==t[0]&&O.test(t))r=A.fragment(t,RegExp.$1,n),t=null;else{if(n!==m)return y(n).find(t);r=A.qsa(C,t)}else{if(e(t))return y(C).ready(t);if(A.isZ(t))return t;if(L(t))r=s(t);else if(i(t))r=[t],t=null;else if(O.test(t))r=A.fragment(t.trim(),RegExp.$1,n),t=null;else{if(n!==m)return y(n).find(t);r=A.qsa(C,t)}}return A.Z(r,t)},y=function(t,e){return A.init(t,e)},y.extend=function(t){var e,n=function(t,e,r){for(v in e)r&&(o(e[v])||L(e[v]))?(o(e[v])&&!o(t[v])&&(t[v]={}),L(e[v])&&!L(t[v])&&(t[v]=[]),n(t[v],e[v],r)):e[v]!==m&&(t[v]=e[v])},r=_.call(arguments,1);return"boolean"==typeof t&&(e=t,t=r.shift()),r.forEach(function(r){n(t,r,e)}),t},A.qsa=function(t,e){var n,i="#"==e[0],o=!i&&"."==e[0],a=i||o?e.slice(1):e,s=/^[\w-]*$/.test(a);return r(t)&&s&&i?(n=t.getElementById(a))?[n]:[]:1!==t.nodeType&&9!==t.nodeType?[]:_.call(s&&!i?o?t.getElementsByClassName(a):t.getElementsByTagName(e):t.querySelectorAll(e))},y.contains=function(t,e){return t!==e&&t.contains(e)},y.type=t,y.isFunction=e,y.isWindow=n,y.isArray=L,y.isPlainObject=o,y.camelCase=w,y.trim=function(t){return null==t?"":String.prototype.trim.call(t)},y.uuid=0,y.support={},y.expr={},y.map=function(t,e){var n,r,i,o=[];if(a(t))for(r=0;r<t.length;r++)n=e(t[r],r),null!=n&&o.push(n);else for(i in t)n=e(t[i],i),null!=n&&o.push(n);return c(o)},y.each=function(t,e){var n,r;if(a(t)){for(n=0;n<t.length;n++)if(e.call(t[n],n,t[n])===!1)return t}else for(r in t)if(e.call(t[r],r,t[r])===!1)return t;return t},y.parseJSON=JSON.parse,y.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(t,e){N["[object "+e+"]"]=e.toLowerCase()}),y.fn={forEach:x.forEach,reduce:x.reduce,push:x.push,sort:x.sort,indexOf:x.indexOf,concat:x.concat,map:function(t){return y(y.map(this,function(e,n){return t.call(e,n,e)}))},slice:function(){return y(_.apply(this,arguments))},ready:function(t){var e=/complete|loaded|interactive/;return e.test(C.readyState)?t(y):C.addEventListener("DOMContentLoaded",function(){t(y)},!1),this},get:function(t){return t===m?_.call(this):this[t>=0?t:t+this.length]},toArray:function(){return this.get()},size:function(){return this.length},remove:function(){return this.each(function(){null!=this.parentNode&&this.parentNode.removeChild(this)})},each:function(t){return x.every.call(this,function(e,n){return t.call(e,n,e)!==!1}),this},filter:function(t){return e(t)?this.not(this.not(t)):y(k.call(this,function(e){return A.matches(e,t)}))},add:function(t,e){return y(E(this.concat(y(t,e))))},is:function(t){return this.length>0&&A.matches(this[0],t)},not:function(t){var n=[];if(e(t)&&t.call!==m)this.each(function(e){t.call(this,e)||n.push(this)});else{var r="string"==typeof t?this.filter(t):a(t)&&e(t.item)?_.call(t):y(t);this.forEach(function(t){r.indexOf(t)<0&&n.push(t)})}return y(n)},has:function(t){return this.filter(function(){return i(t)?y.contains(this,t):y(this).find(t).size()})},eq:function(t){return-1===t?this.slice(t):this.slice(t,+t+1)},first:function(){var t=this[0];return t&&!i(t)?t:y(t)},last:function(){var t=this[this.length-1];return t&&!i(t)?t:y(t)},find:function(t){var e,n=this;return e="object"==typeof t?y(t).filter(function(){var t=this;return x.some.call(n,function(e){return y.contains(e,t)})}):1==this.length?y(A.qsa(this[0],t)):this.map(function(){return A.qsa(this,t)})},closest:function(t){return y(A.matches(this[0],t)?this[0]:this.parents(t).get(0))},parents:function(t){for(var e=[],n=this;n.length>0;)n=y.map(n,function(t){return(t=t.parentNode)&&!r(t)&&e.indexOf(t)<0?(e.push(t),t):void 0});return h(e,t)},parent:function(t){return h(E(this.pluck("parentNode")),t)},children:function(t){return h(this.map(function(){return u(this)}),t)},siblings:function(t){return h(this.map(function(t,e){return k.call(u(e.parentNode),function(t){return t!==e})}),t)},pluck:function(t){return y.map(this,function(e){return e[t]})},show:function(){var t=function(t){return getComputedStyle(t,"").getPropertyValue("display")};return this.each(function(){if("none"==this.style.display&&(this.style.display=""),"none"==t(this)){var e=function(e){var n,r;return S[e]||(n=C.createElement(e),C.body.appendChild(n),r=t(n),n.parentNode.removeChild(n),"none"==r&&(r="block"),S[e]=r),S[e]};this.style.display=e(this.nodeName)}})},replaceWith:function(t){return this.before(t).remove()},clone:function(){return this.map(function(){return this.cloneNode(!0)})},hide:function(){return this.css("display","none")},toggle:function(t){return this.each(function(){var e=y(this);(t===m?"none"==e.css("display"):t)?e.show():e.hide()})},prev:function(t){return y(this.pluck("previousElementSibling")).filter(t||"*")},next:function(t){return y(this.pluck("nextElementSibling")).filter(t||"*")},html:function(t){return 0===arguments.length?this.length>0?this[0].innerHTML:null:this.each(function(e){var n=this.innerHTML;this.innerHTML="",y(this).append(p(this,t,e,n))})},text:function(t){return 0===arguments.length?this.length>0?this[0].textContent:null:this.each(function(){this.textContent=t===m?"":""+t})},attr:function(t,e){var n;return"string"==typeof t&&e===m?0==this.length||1!==this[0].nodeType?m:"value"==t&&"INPUT"==this[0].nodeName?this.val():!(n=this[0].getAttribute(t))&&t in this[0]?this[0][t]:n:this.each(function(n){if(1===this.nodeType)if(i(t))for(v in t)f(this,v,t[v]);else f(this,t,p(this,e,n,this.getAttribute(t)))})},removeAttr:function(t){return this.each(function(){1===this.nodeType&&f(this,t)})},data:function(t,e){var n=/([A-Z])/g,r=this.attr("data-"+t.replace(n,"-$1").toLowerCase(),e);return null!==r?g(r):m},val:function(t){return 0===arguments.length?this[0]&&(this[0].multiple?y(this[0]).find("option").filter(function(){return this.selected}).pluck("value"):this[0].value):this.each(function(e){this.value=p(this,t,e,this.value)})},offset:function(){if(0==this.length)return null;var t=this[0].getBoundingClientRect();return{left:t.left+T.pageXOffset,top:t.top+T.pageYOffset,width:Math.round(t.width),height:Math.round(t.height)}},css:function(e,n){var r=function(t,e){var n={"column-count":1,columns:1,"font-weight":1,"line-height":1,opacity:1,"z-index":1,zoom:1};return"number"!=typeof e||n[i(t)]?e:e+"px"},i=function(t){return t.replace(/::/g,"/").replace(/([A-Z]+)([A-Z][a-z])/g,"$1_$2").replace(/([a-z\d])([A-Z])/g,"$1_$2").replace(/_/g,"-").toLowerCase()};if(arguments.length<2){var o=this[0],a=getComputedStyle(o,"");if(!o)return;if("string"==typeof e)return o.style[w(e)]||a.getPropertyValue(e);if(L(e)){var s={};return y.each(L(e)?e:[e],function(t,e){s[e]=o.style[w(e)]||a.getPropertyValue(e)}),s}}var c="";if("string"==t(e))n||0===n?c=i(e)+":"+r(e,n):this.each(function(){this.style.removeProperty(i(e))});else for(v in e)e[v]||0===e[v]?c+=i(v)+":"+r(v,e[v])+";":this.each(function(){this.style.removeProperty(i(v))});return this.each(function(){this.style.cssText+=";"+c})},index:function(t){return t?this.indexOf(y(t)[0]):this.parent().children().indexOf(this[0])},hasClass:function(t){return t?x.some.call(this,function(t){return this.test(d(t))},l(t)):!1},addClass:function(t){return t?this.each(function(e){b=[];var n=d(this),r=p(this,t,e,n);r.split(/\s+/g).forEach(function(t){y(this).hasClass(t)||b.push(t)},this),b.length&&d(this,n+(n?" ":"")+b.join(" "))}):this},removeClass:function(t){return this.each(function(e){return t===m?d(this,""):(b=d(this),p(this,t,e,b).split(/\s+/g).forEach(function(t){b=b.replace(l(t)," ")}),void d(this,b.trim()))})},toggleClass:function(t,e){return t?this.each(function(n){var r=y(this),i=p(this,t,n,d(this));i.split(/\s+/g).forEach(function(t){(e===m?!r.hasClass(t):e)?r.addClass(t):r.removeClass(t)})}):this},scrollTop:function(t){if(this.length){var e="scrollTop"in this[0];return t===m?e?this[0].scrollTop:this[0].pageYOffset:this.each(e?function(){this.scrollTop=t}:function(){this.scrollTo(this.scrollX,t)})}}},y.fn.detach=y.fn.remove,["width","height"].forEach(function(t){var e=t.replace(/./,function(t){return t[0].toUpperCase()});y.fn[t]=function(i){var o,a=this[0];return i===m?n(a)?a["inner"+e]:r(a)?a.documentElement["scroll"+e]:(o=this.offset())&&o[t]:this.each(function(e){a=y(this),a.css(t,p(this,i,e,a[t]()))})}}),["after","prepend","before","append"].forEach(function(e,n){var r=n%2;y.fn[e]=function(){var e,i,o=y.map(arguments,function(n){return e=t(n),"object"==e||"array"==e||null==n?n:A.fragment(n)}),a=this.length>1;return o.length<1?this:this.each(function(t,e){i=r?e:e.parentNode,e=0==n?e.nextSibling:1==n?e.firstChild:2==n?e:null;var s=function(t,e){e(t);for(var n in t.childNodes)s(t.childNodes[n],e)};o.forEach(function(t){if(a)t=t.cloneNode(!0);else if(!i)return y(t).remove();s(i.insertBefore(t,e),function(t){null==t.nodeName||"SCRIPT"!==t.nodeName.toUpperCase()||t.type&&"text/javascript"!==t.type||t.src||T.eval.call(T,t.innerHTML)})})})},y.fn[r?e+"To":"insert"+(n?"Before":"After")]=function(t){return y(t)[e](this),this}}),A.Z.prototype=y.fn,A.uniq=E,A.deserializeValue=g,y.zepto=A,y}();return t=e}(),n=function(t){function e(){}function n(t,e,n){var r=!0;if(t){var i=0,o=t.length,a=e[0],s=e[1],c=e[2];switch(e.length){case 0:for(;o>i;i+=2)r=t[i].call(t[i+1]||n)!==!1&&r;break;case 1:for(;o>i;i+=2)r=t[i].call(t[i+1]||n,a)!==!1&&r;break;case 2:for(;o>i;i+=2)r=t[i].call(t[i+1]||n,a,s)!==!1&&r;break;case 3:for(;o>i;i+=2)r=t[i].call(t[i+1]||n,a,s,c)!==!1&&r;break;default:for(;o>i;i+=2)r=t[i].apply(t[i+1]||n,e)!==!1&&r}}return r}var r=/\s+/;return e.prototype.on=function(t,e,n){var i,o,a;if(!e)return this;for(i=this.__events||(this.__events={}),t=t.split(r);o=t.shift();)a=i[o]||(i[o]=[]),a.push(e,n);return this},e.prototype.off=function(t,e,n){var i,o,a,s;if(!(i=this.__events))return this;if(!(t||e||n))return delete this.__events,this;for(t=t?t.split(r):Object.keys(i);o=t.shift();)if(a=i[o])if(e||n)for(s=a.length-2;s>=0;s-=2)e&&a[s]!==e||n&&a[s+1]!==n||a.splice(s,2);else delete i[o];return this},e.prototype.trigger=function(t){var e,i,o,a,s,c,l=[],u=!0;if(!(e=this.__events))return this;for(t=t.split(r),s=1,c=arguments.length;c>s;s++)l[s-1]=arguments[s];for(;i=t.shift();)(o=e.all)&&(o=o.slice()),(a=e[i])&&(a=a.slice()),"all"!==i&&(u=n(a,l,this)&&u),u=n(o,[i].concat(l),this)&&u;return u},e.prototype.emit=e.prototype.trigger,t=e}(),r=function(t){"use strict";function e(t){this.string=t}return e.prototype.toString=function(){return""+this.string},t["default"]=e,t}({}),i=function(t){"use strict";function e(t,e){var r;e&&e.firstLine&&(r=e.firstLine,t+=" - "+r+":"+e.firstColumn);for(var i=Error.prototype.constructor.call(this,t),o=0;o<n.length;o++)this[n[o]]=i[n[o]];r&&(this.lineNumber=r,this.column=e.firstColumn)}var n=["description","fileName","lineNumber","message","name","number","stack"];return e.prototype=new Error,t["default"]=e,t}({}),o=function(t){function e(t,e){if(!e||(e=e.replace(r,"-"),!i.getElementById(e))){var a;if(!n||e?(a=i.createElement("style"),e&&(a.id=e),o.appendChild(a)):a=n,a.styleSheet){if(i.getElementsByTagName("style").length>31)throw new Error("Exceed the maximal count of style tags in IE");a.styleSheet.cssText+=t}else a.appendChild(i.createTextNode(t));e||(n=a)}}var n,r=/\W/g,i=document,o=document.getElementsByTagName("head")[0]||document.documentElement;return t=e}(),a=function(){o('html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;}body{margin:0;}article,aside,details,figcaption,figure,footer,header,hgroup,main,nav,section,summary{display:block;}audio,canvas,progress,video{display:inline-block;vertical-align:baseline;}audio:not([controls]){display:none;height:0;}[hidden],template{display:none;}a{background:transparent;}a:active,a:hover{outline:0;}abbr[title]{border-bottom:1px dotted;}b,strong{font-weight:bold;}dfn{font-style:italic;}h1{font-size:2em;margin:0.67em 0;}mark{background:#ff0;color:#000;}small{font-size:80%;}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline;}sup{top:-0.5em;}sub{bottom:-0.25em;}img{border:0;}svg:not(:root){overflow:hidden;}figure{margin:1em 40px;}hr{-moz-box-sizing:content-box;box-sizing:content-box;height:0;}pre{overflow:auto;}code,kbd,pre,samp{font-family:monospace, monospace;font-size:1em;}button,input,optgroup,select,textarea{color:inherit;font:inherit;margin:0;}button{overflow:visible;}button,select{text-transform:none;}button,html input[type="button"],input[type="reset"],input[type="submit"]{-webkit-appearance:button;cursor:pointer;}button[disabled],html input[disabled]{cursor:default;}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0;}input{line-height:normal;}input[type="checkbox"],input[type="radio"]{box-sizing:border-box;padding:0;}input[type="number"]::-webkit-inner-spin-button,input[type="number"]::-webkit-outer-spin-button{height:auto;}input[type="search"]{-webkit-appearance:textfield;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box;}input[type="search"]::-webkit-search-cancel-button,input[type="search"]::-webkit-search-decoration{-webkit-appearance:none;}fieldset{border:1px solid #c0c0c0;margin:0 2px;padding:0.35em 0.625em 0.75em;}legend{border:0;padding:0;}textarea{overflow:auto;}optgroup{font-weight:bold;}table{border-collapse:collapse;border-spacing:0;}td,th{padding:0;}*{padding:0;margin:0;}.btn{border:none;background:none;}.price .price-unit{font-family:Verdana;}.price .figure{font-family:Arial;}#content{padding:0.5rem 0.7rem;background:#e6e6e6;padding-bottom:2.45rem;}#item-info{background:#fff;}#pic-carousel{width:14.6rem;}#pic-carousel .carousel-outer{width:14.6rem;height:13.6875rem;overflow:hidden;position:relative;margin:0 auto;}#pic-carousel .carousel-wrap{position:absolute;}#pic-carousel .carousel-wrap li{float:left;width:14.6rem;height:13.6875rem;}#pic-carousel .carousel-wrap li img{width:14.6rem;height:13.6875rem;}#pic-carousel .carousel-status{text-align:center;}#pic-carousel .carousel-status{text-align:center;}#pic-carousel .carousel-status span{display:inline-block;width:.35rem;height:.35rem;border-radius:0.1rem;background:#e7e7e7;margin-left:.25rem;}#pic-carousel .carousel-status span:first-child{margin-left:0;}#pic-carousel .carousel-status span.sel{background:#9cc54e;}#price{margin-top:.25rem;height:1.05rem;line-height:1.05rem;padding:0 .4rem;overflow:hidden;}#price .current-price{font-size:.9rem;color:#9cc54e;}#price .original-price{font-size:.7rem;color:#959595;margin-left:.25rem;}#price .sold{float:right;font-size:.7rem;color:#9cc54e;}#summary h1{border-top:2px solid #e6e6e6;border-bottom:2px solid #e6e6e6;margin-top:.5rem;height:2.4rem;line-height:2.4rem;font-size:.9rem;color:#666;padding:0 .7rem;}#summary dl{padding:0.425em .7rem;overflow:hidden;font-size:.7rem;line-height:1.05rem;}#summary dt,#summary dd{float:left;color:#666;}#summary dt{clear:left;}#item-desc{background:#fff;margin-top:.5rem;}#item-desc img{margin-top:.5rem;width:100%;display:block;}#item-desc img:first-child{margin-top:0;}#toolbar{position:fixed;bottom:0;left:0;width:100%;padding:.3rem 0;text-align:center;word-spacing:.35rem;background:#fff;height:1.85rem;}#toolbar button{height:1.85rem;padding:0 .75rem;border-radius:.2rem;background:#f0642b;border:none;font-size:.8rem;color:#fff;}#mask{position:fixed;left:0;top:0;width:100%;height:100%;background:#000;opacity:.7;}#order-popup{position:fixed;left:0;bottom:0;width:100%;background:#fff;}#order-popup .popup-wrap{padding:.75rem .7rem 0;position:relative;}#order-popup .close-btn{height:2.5rem;position:absolute;right:.7rem;top:.75rem;font-size:1.5rem;font-weight:bold;color:#ccc;-webkit-transform:rotate(45deg);transform:rotate(45deg);}#order-popup .order-info{height:2.5rem;}#order-popup .order-info .item-pic{width:2.5rem;height:2.5rem;border:1px solid #e3e3e3;float:left;margin-right:.5rem;}#order-popup .order-info .item-title{margin-top:.3rem;font-size:.7rem;line-height:1rem;}#order-popup .order-info .item-price{font-size:.6rem;line-height:.9rem;color:#f0642b;}#order-popup .order-count{margin-top:.75rem;border-top:1px solid #ddd;border-bottom:1px solid #ddd;height:3.3rem;overflow:hidden;}#order-popup .order-count label{line-height:3.3rem;font-size:.7rem;color:#666;float:left;}#order-popup .order-count .form-control{float:right;margin-top:.75rem;height:1.7rem;border:1px solid #b2b2b2;border-radius:.5rem;position:relative;text-align:center;padding:0 1.75rem;}#order-popup .order-count .form-control input{font-size:.6rem;color:#5f5f5f;width:1.9rem;height:1.7rem;text-align:center;border:none;border-left:1px solid #b2b2b2;border-right:1px solid #b2b2b2;}#order-popup .order-count .form-control .minus-btn{display:block;width:1.75rem;height:1.7rem;font-size:1.5rem;color:#5f5f5f;text-align:center;position:absolute;left:0;top:0;}#order-popup .order-count .form-control .plus-btn{display:block;width:1.75rem;height:1.7rem;font-size:1.5rem;color:#5f5f5f;text-align:center;position:absolute;right:0;top:0;}#order-popup .popup-footer{margin-top:6.65rem;padding:.25rem 0;}#order-popup .popup-footer .confirm-btn{height:1.85rem;width:100%;text-align:center;border-radius:.2rem;background:#f0642b;font-size:.8rem;color:#fff;}')}(),s=function(t){var n=e;return t=n}(),c=function(t){function e(t){return t._zid||(t._zid=f++)}function n(t,n,o,a){if(n=r(n),n.ns)var s=i(n.ns);return(v[e(t)]||[]).filter(function(t){return!(!t||n.e&&t.e!=n.e||n.ns&&!s.test(t.ns)||o&&e(t.fn)!==e(o)||a&&t.sel!=a)})}function r(t){var e=(""+t).split(".");return{e:e[0],ns:e.slice(1).sort().join(" ")}}function i(t){return new RegExp("(?:^| )"+t.replace(" "," .* ?")+"(?: |$)")}function o(t,e){return t.del&&("focus"===t.e||"blur"===t.e)||!!e}function a(t,n,i,a,s,c,u){var f=e(t),d=v[f]||(v[f]=[]);n.split(/\s/).forEach(function(e){if("ready"==e)return p(document).ready(i);var n=r(e);n.fn=i,n.sel=s,n.del=c;var f=c||i;n.proxy=function(e){if(navigator.userAgent.toLowerCase().indexOf("android")>-1&&p.gestures&&p.gestures.tap&&"click"===n.e&&!e.animaClick)return e.stopImmediatePropagation?e.stopImmediatePropagation():e.propagationStopped=!0,e.stopPropagation(),e.preventDefault(),!1;if(e=l(e),!e.isImmediatePropagationStopped()){e.data=a;var r=f.apply(t,e._args==h?[e]:[e].concat(e._args));return r===!1&&(e.preventDefault(),e.stopPropagation()),r}},n.i=d.length,d.push(n),"addEventListener"in t&&(p.gestures&&p.gestures.list&&p.gestures.list[n.e]&&p.gestures.list[n.e](t),t.addEventListener(n.e,n.proxy,o(n,u)))})}function c(t,r,i,a,s){var c=e(t);(r||"").split(/\s/).forEach(function(e){n(t,e,i,a).forEach(function(e){delete v[c][e.i],"removeEventListener"in t&&t.removeEventListener(e.e,e.proxy,o(e,s))})})}function l(t,e){return(e||!t.isDefaultPrevented)&&(e||(e=t),p.each(x,function(n,r){var i=e[n];t[n]=function(){return this[r]=b,i&&i.apply(e,arguments)},t[r]=w}),(e.defaultPrevented!==h?e.defaultPrevented:"returnValue"in e?e.returnValue===!1:e.getPreventDefault&&e.getPreventDefault())&&(t.isDefaultPrevented=b)),t}function u(t){var e,n={originalEvent:t};for(e in t)E.test(e)||t[e]===h||(n[e]=t[e]);return l(n,t)}var h,p=s,f=1,d=Array.prototype.slice,g=p.isFunction,m=function(t){return"string"==typeof t},v={},y={};y.click=y.mousedown=y.mouseup=y.mousemove="MouseEvents",p.event={add:a,remove:c},p.proxy=function(t,n){if(g(t)){var r=function(){return t.apply(n,arguments)};return r._zid=e(t),r}if(m(n))return p.proxy(t[n],t);throw new TypeError("expected function")},p.fn.one=function(t,e,n,r){return this.on(t,e,n,r,1)};var b=function(){return!0},w=function(){return!1},E=/^([A-Z]|returnValue$|layer[XY]$)/,x={preventDefault:"isDefaultPrevented",stopImmediatePropagation:"isImmediatePropagationStopped",stopPropagation:"isPropagationStopped"};return p.fn.on=function(t,e,n,r,i){var o,s,l=this;return t&&!m(t)?(p.each(t,function(t,r){l.on(t,e,n,r,i)}),l):(m(e)||g(r)||r===!1||(r=n,n=e,e=h),(g(n)||n===!1)&&(r=n,n=h),r===!1&&(r=w),l.each(function(l,h){i&&(o=function(t){return c(h,t.type,r),r.apply(this,arguments)}),e&&(s=function(t){var n,i=p(t.target).closest(e,h).get(0);return i&&i!==h?(n=p.extend(u(t),{currentTarget:i,liveFired:h}),(o||r).apply(i,[n].concat(d.call(arguments,1)))):void 0}),a(h,t,r,n,e,s||o)}))},p.fn.off=function(t,e,n){var r=this;return t&&!m(t)?(p.each(t,function(t,n){r.off(t,e,n)}),r):(m(e)||g(n)||n===!1||(n=e,e=h),n===!1&&(n=w),r.each(function(){c(this,t,n,e)}))},p.fn.trigger=function(t,e){return t=m(t)||p.isPlainObject(t)?p.Event(t):l(t),t._args=e,this.each(function(){"dispatchEvent"in this?this.dispatchEvent(t):p(this).triggerHandler(t,e)})},p.fn.triggerHandler=function(t,e){var r,i;return this.each(function(o,a){r=u(m(t)?p.Event(t):t),r._args=e,r.target=a,p.each(n(a,t.type||t),function(t,e){return i=e.proxy(r),r.isImmediatePropagationStopped()?!1:void 0})}),i},"focusin focusout load resize scroll unload click dblclick change select keydown keypress keyup error".split(" ").forEach(function(t){p.fn[t]=function(e){return e?this.on(t,e):this.trigger(t)}}),["focus","blur"].forEach(function(t){p.fn[t]=function(e){return e?this.on(t,e):this.each(function(){try{this[t]()}catch(e){}}),this}}),p.Event=function(t,e){m(t)||(e=t,t=e.type);var n=document.createEvent(y[t]||"Events"),r=!0;if(e)for(var i in e)"bubbles"==i?r=!!e[i]:n[i]=e[i];return n.initEvent(t,r,!0),l(n)},t=p}(),l=function(t){function e(t){return t._zid||(t._zid=f++)}function n(t,n,o,a){if(n=r(n),n.ns)var s=i(n.ns);return(v[e(t)]||[]).filter(function(t){return!(!t||n.e&&t.e!=n.e||n.ns&&!s.test(t.ns)||o&&e(t.fn)!==e(o)||a&&t.sel!=a)})}function r(t){var e=(""+t).split(".");return{e:e[0],ns:e.slice(1).sort().join(" ")}}function i(t){return new RegExp("(?:^| )"+t.replace(" "," .* ?")+"(?: |$)")}function o(t,e){return t.del&&("focus"===t.e||"blur"===t.e)||!!e}function a(t,n,i,a,s,c,u){var f=e(t),d=v[f]||(v[f]=[]);n.split(/\s/).forEach(function(e){if("ready"==e)return p(document).ready(i);var n=r(e);n.fn=i,n.sel=s,n.del=c;var f=c||i;n.proxy=function(e){if(e=l(e),!e.isImmediatePropagationStopped()){e.data=a;var n=f.apply(t,e._args==h?[e]:[e].concat(e._args));return n===!1&&(e.preventDefault(),e.stopPropagation()),n}},n.i=d.length,d.push(n),"addEventListener"in t&&t.addEventListener(n.e,n.proxy,o(n,u))})}function c(t,r,i,a,s){var c=e(t);(r||"").split(/\s/).forEach(function(e){n(t,e,i,a).forEach(function(e){delete v[c][e.i],"removeEventListener"in t&&t.removeEventListener(e.e,e.proxy,o(e,s))})})}function l(t,e){return(e||!t.isDefaultPrevented)&&(e||(e=t),p.each(x,function(n,r){var i=e[n];t[n]=function(){return this[r]=b,i&&i.apply(e,arguments)},t[r]=w}),(e.defaultPrevented!==h?e.defaultPrevented:"returnValue"in e?e.returnValue===!1:e.getPreventDefault&&e.getPreventDefault())&&(t.isDefaultPrevented=b)),t}function u(t){var e,n={originalEvent:t};for(e in t)E.test(e)||t[e]===h||(n[e]=t[e]);return l(n,t)}var h,p=s,f=1,d=Array.prototype.slice,g=p.isFunction,m=function(t){return"string"==typeof t},v={},y={};y.click=y.mousedown=y.mouseup=y.mousemove="MouseEvents",p.event={add:a,remove:c},p.proxy=function(t,n){if(g(t)){var r=function(){return t.apply(n,arguments)};return r._zid=e(t),r}if(m(n))return p.proxy(t[n],t);throw new TypeError("expected function")},p.fn.one=function(t,e,n,r){return this.on(t,e,n,r,1)};var b=function(){return!0},w=function(){return!1},E=/^([A-Z]|returnValue$|layer[XY]$)/,x={preventDefault:"isDefaultPrevented",stopImmediatePropagation:"isImmediatePropagationStopped",stopPropagation:"isPropagationStopped"};return p.fn.on=function(t,e,n,r,i){var o,s,l=this;return t&&!m(t)?(p.each(t,function(t,r){l.on(t,e,n,r,i)}),l):(m(e)||g(r)||r===!1||(r=n,n=e,e=h),(g(n)||n===!1)&&(r=n,n=h),r===!1&&(r=w),p.gestures&&p.gestures.list&&p.gestures.list[t]&&p.gestures.list[t](l),l.each(function(l,h){i&&(o=function(t){return c(h,t.type,r),r.apply(this,arguments)}),e&&(s=function(t){var n,i=p(t.target).closest(e,h).get(0);return i&&i!==h?(n=p.extend(u(t),{currentTarget:i,liveFired:h}),(o||r).apply(i,[n].concat(d.call(arguments,1)))):void 0}),a(h,t,r,n,e,s||o)}))},p.fn.off=function(t,e,n){var r=this;return t&&!m(t)?(p.each(t,function(t,n){r.off(t,e,n)}),r):(m(e)||g(n)||n===!1||(n=e,e=h),n===!1&&(n=w),r.each(function(){c(this,t,n,e)}))},p.fn.trigger=function(t,e){return t=m(t)||p.isPlainObject(t)?p.Event(t):l(t),t._args=e,this.each(function(){"dispatchEvent"in this?this.dispatchEvent(t):p(this).triggerHandler(t,e)})},p.fn.triggerHandler=function(t,e){var r,i;return this.each(function(o,a){r=u(m(t)?p.Event(t):t),r._args=e,r.target=a,p.each(n(a,t.type||t),function(t,e){return i=e.proxy(r),r.isImmediatePropagationStopped()?!1:void 0})}),i},"focusin focusout load resize scroll unload click dblclick change select keydown keypress keyup error".split(" ").forEach(function(t){p.fn[t]=function(e){return e?this.on(t,e):this.trigger(t)}}),["focus","blur"].forEach(function(t){p.fn[t]=function(e){return e?this.on(t,e):this.each(function(){try{this[t]()}catch(e){}}),this}}),p.Event=function(t,e){m(t)||(e=t,t=e.type);var n=document.createEvent(y[t]||"Events"),r=!0;if(e)for(var i in e)"bubbles"==i?r=!!e[i]:n[i]=e[i];return n.initEvent(t,r,!0),l(n)},t=p}(),u=function(t){"use strict";function e(t){return s[t]||"&amp;"}function n(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}function i(t){return t instanceof a?t.toString():t||0===t?(t=""+t,l.test(t)?t.replace(c,e):t):""}function o(t){return t||0===t?p(t)&&0===t.length?!0:!1:!0}var a=r["default"],s={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},c=/[&<>"'`]/g,l=/[&<>"'`]/;t.extend=n;var u=Object.prototype.toString;t.toString=u;var h=function(t){return"function"==typeof t};h(/x/)&&(h=function(t){return"function"==typeof t&&"[object Function]"===u.call(t)});var h;t.isFunction=h;var p=Array.isArray||function(t){return t&&"object"==typeof t?"[object Array]"===u.call(t):!1};return t.isArray=p,t.escapeExpression=i,t.isEmpty=o,t}({}),h=void 0,p=void 0,f=function(t){var e=Yocto=s;return Gesture={init:function(t){var n=this,r=n[t],i=function(n){function i(t){r.handler.touchmove(t)}function o(t){r.handler.touchend(t),document.removeEventListener("touchmove",i,!1),document.removeEventListener("touchend",o,!1),document.removeEventListener("touchcancel",a,!1)}function a(t){r.handler.touchcancel(t),document.removeEventListener("touchmove",i,!1),document.removeEventListener("touchend",o,!1),document.removeEventListener("touchcancel",a,!1)}var s=e(n);s.data(t)||s.data(t,1).forEach(function(t){t.addEventListener("touchstart",function(t){r.handler.touchstart(t),document.addEventListener("touchmove",i,!1),document.addEventListener("touchend",o,!1),document.addEventListener("touchcancel",a,!1)},!1)})};r.events.forEach(function(t){n.list[t]=i,e.fn[t]=function(e){return this.on(t,e)}})},list:{}},e.gestures=Gesture,t=e}(),d=function(t){var e=Yocto=s,n=e.gestures,r=navigator.userAgent.toLowerCase().indexOf("android")>0,i=/ip(ad|hone|od)/.test(navigator.userAgent.toLowerCase()),o={trackingClick:!1,trackingClickStart:0,targetElement:null,touchStartX:0,touchStartY:0,touchBoundary:10,tapDelay:200,sendClick:function(t,n){var r=e.Event("tap",{animaTap:!0});e(t).trigger(r);var i,o;document.activeElement&&document.activeElement!==t&&document.activeElement.blur(),o=n.changedTouches[0],i=document.createEvent("MouseEvents"),i.initMouseEvent("click",!0,!0,window,1,o.screenX,o.screenY,o.clientX,o.clientY,!1,!1,!1,!1,0,null),i.animaClick=!0,t.dispatchEvent(i)},needClick:function(t){switch(t.nodeName.toLowerCase()){case"button":case"select":case"textarea":if(t.disabled)return!0;break;case"input":if(i&&"file"===t.type||t.disabled)return!0;break;case"label":case"iframe":case"video":return!0}return!1},focus:function(t){var e;i&&t.setSelectionRange&&0!==t.type.indexOf("date")&&"time"!==t.type?(e=t.value.length,t.setSelectionRange(e,e)):t.focus()},needFocus:function(t){switch(t.nodeName.toLowerCase()){case"textarea":case"select":return!0;case"input":switch(t.type){case"button":case"checkbox":case"file":case"image":case"radio":case"submit":return!1}return!t.disabled&&!t.readOnly;default:return!1}},updateScrollParent:function(t){var e,n;if(e=t.yoctoTouchScrollParent,!e||!e.contains(t)){n=t;do{if(n.scrollHeight>n.offsetHeight){e=n,t.yoctoTouchScrollParent=n;break}n=n.parentElement}while(n)}e&&(e.yoctoTouchLastScrollTop=e.scrollTop)},findControl:function(t){return void 0!==t.control?t.control:t.htmlFor?document.getElementById(t.htmlFor):t.querySelector("button, input:not([type=hidden]), keygen, meter, output, progress, select, textarea")
},touchHasMoved:function(t){var e=t.changedTouches[0],n=o.touchBoundary;return Math.abs(e.pageX-o.touchStartX)>n||Math.abs(e.pageY-o.touchStartY)>n?!0:!1}};n.tap={events:["tap","click"],handler:{touchstart:function(t){var e,n,r;if(t.targetTouches.length>1)return!0;if(e=t.target,n=t.targetTouches[0],i){if(r=window.getSelection(),r.rangeCount&&!r.isCollapsed)return!0;o.updateScrollParent(e)}return o.trackingClick=!0,o.trackingClickStart=t.timeStamp,o.targetElement=e,o.touchStartX=n.pageX,o.touchStartY=n.pageY,t.timeStamp-o.lastClickTime<o.tapDelay&&t.preventDefault(),!0},touchmove:function(t){return o.trackingClick?((o.targetElement!==t.target||o.touchHasMoved(t))&&(o.trackingClick=!1,o.targetElement=null),!0):!0},touchend:function(t){var e,n,a,s,c=o.targetElement;if(t.timeStamp-o.trackingClickStart>o.tapDelay||!o.trackingClick)return!0;if(t.timeStamp-o.lastClickTime<o.tapDelay)return o.cancelNextClick=!0,!0;if(o.cancelNextClick=!1,o.lastClickTime=t.timeStamp,n=o.trackingClickStart,o.trackingClick=!1,o.trackingClickStart=0,a=c.tagName.toLowerCase(),"label"===a){if(e=o.findControl(c)){if(o.focus(c),r)return!1;c=e}}else if(o.needFocus(c))return t.timeStamp-n>100||i&&window.top!==window&&"input"===a?(o.targetElement=null,!1):(o.focus(c),t.preventDefault(),o.sendClick(c,t),!1);return i&&(s=c.yoctoTouchScrollParent,s&&s.yoctoTouchLastScrollTop!==s.scrollTop)?!0:(o.needClick(c)||(t.preventDefault(),o.sendClick(c,t)),!1)},touchcancel:function(){o.trackingClick=!1,o.targetElement=null}}},n.init("tap");var a=Event.prototype.initEvent;return Event.prototype.initEvent=function(){var t=Array.prototype.slice.call(arguments);a.apply(this,t),"click"===t[0]&&(this.animaClick=!0)},t=e}(),g=function(t){"use strict";function e(t,e){this.helpers=t||{},this.partials=e||{},n(this)}function n(t){t.registerHelper("helperMissing",function(t){if(2===arguments.length)return void 0;throw new a("Missing helper: '"+t+"'")}),t.registerHelper("blockHelperMissing",function(e,n){var r=n.inverse||function(){},i=n.fn;return p(e)&&(e=e.call(this)),e===!0?i(this):e===!1||null==e?r(this):h(e)?e.length>0?t.helpers.each(e,n):r(this):i(e)}),t.registerHelper("each",function(t,e){var n,r=e.fn,i=e.inverse,o=0,a="";if(p(t)&&(t=t.call(this)),e.data&&(n=m(e.data)),t&&"object"==typeof t)if(h(t))for(var s=t.length;s>o;o++)n&&(n.index=o,n.first=0===o,n.last=o===t.length-1),a+=r(t[o],{data:n});else for(var c in t)t.hasOwnProperty(c)&&(n&&(n.key=c,n.index=o,n.first=0===o),a+=r(t[c],{data:n}),o++);return 0===o&&(a=i(this)),a}),t.registerHelper("if",function(t,e){return p(t)&&(t=t.call(this)),!e.hash.includeZero&&!t||o.isEmpty(t)?e.inverse(this):e.fn(this)}),t.registerHelper("unless",function(e,n){return t.helpers["if"].call(this,e,{fn:n.inverse,inverse:n.fn,hash:n.hash})}),t.registerHelper("with",function(t,e){return p(t)&&(t=t.call(this)),o.isEmpty(t)?void 0:e.fn(t)}),t.registerHelper("log",function(e,n){var r=n.data&&null!=n.data.level?parseInt(n.data.level,10):1;t.log(r,e)})}function r(t,e){g.log(t,e)}var o=u,a=i["default"],s="1.3.0";t.VERSION=s;var c=4;t.COMPILER_REVISION=c;var l={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:">= 1.0.0"};t.REVISION_CHANGES=l;var h=o.isArray,p=o.isFunction,f=o.toString,d="[object Object]";t.HandlebarsEnvironment=e,e.prototype={constructor:e,logger:g,log:r,registerHelper:function(t,e,n){if(f.call(t)===d){if(n||e)throw new a("Arg not supported with multiple helpers");o.extend(this.helpers,t)}else n&&(e.not=n),this.helpers[t]=e},registerPartial:function(t,e){f.call(t)===d?o.extend(this.partials,t):this.partials[t]=e}};var g={methodMap:{0:"debug",1:"info",2:"warn",3:"error"},DEBUG:0,INFO:1,WARN:2,ERROR:3,level:3,log:function(t,e){if(g.level<=t){var n=g.methodMap[t];"undefined"!=typeof console&&console[n]&&console[n].call(console,e)}}};t.logger=g,t.log=r;var m=function(t){var e={};return o.extend(e,t),e};return t.createFrame=m,t}({}),m=function(t){"use strict";function e(t){var e=t&&t[0]||1,n=h;if(e!==n){if(n>e){var r=p[n],i=p[e];throw new l("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+r+") or downgrade your runtime to an older version ("+i+").")}throw new l("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+t[1]+").")}}function n(t,e){if(!e)throw new l("No environment passed to template");var n=function(t,n,r,i,o,a){var s=e.VM.invokePartial.apply(this,arguments);if(null!=s)return s;if(e.compile){var c={helpers:i,partials:o,data:a};return o[n]=e.compile(t,{data:void 0!==a},e),o[n](r,c)}throw new l("The partial "+n+" could not be compiled when running in runtime-only mode")},r={escapeExpression:c.escapeExpression,invokePartial:n,programs:[],program:function(t,e,n){var r=this.programs[t];return n?r=o(t,e,n):r||(r=this.programs[t]=o(t,e)),r},merge:function(t,e){var n=t||e;return t&&e&&t!==e&&(n={},c.extend(n,e),c.extend(n,t)),n},programWithDepth:e.VM.programWithDepth,noop:e.VM.noop,compilerInfo:null};return function(n,i){i=i||{};var o,a,s=i.partial?i:e;i.partial||(o=i.helpers,a=i.partials);var c=t.call(r,s,n,o,a,i.data);return i.partial||e.VM.checkRevision(r.compilerInfo),c}}function r(t,e,n){var r=Array.prototype.slice.call(arguments,3),i=function(t,i){return i=i||{},e.apply(this,[t,i.data||n].concat(r))};return i.program=t,i.depth=r.length,i}function o(t,e,n){var r=function(t,r){return r=r||{},e(t,r.data||n)};return r.program=t,r.depth=0,r}function a(t,e,n,r,i,o){var a={partial:!0,helpers:r,partials:i,data:o};if(void 0===t)throw new l("The partial "+e+" could not be found");return t instanceof Function?t(n,a):void 0}function s(){return""}var c=u,l=i["default"],h=g.COMPILER_REVISION,p=g.REVISION_CHANGES;return t.checkRevision=e,t.template=n,t.programWithDepth=r,t.program=o,t.invokePartial=a,t.noop=s,t}({}),v=function(t){var e=s;return t=e}(),y=function(t){var e=s;return t=e}(),b=function(t){function e(t){return s.isFunction(t)?n(t).implement({initialize:t}):void 0}function n(t){return o(t,e),t.extend=i,t.implement=r,t}function r(t){Array.isArray(t)||(t=[t]);for(var e,n=this.prototype;e=t.shift();)a(n,e.prototype||e);return this}function i(t){var n=e.create(t);return o(n,this),a(n,this,["extend","implement","superclass"]),n}function o(t,e){var n=t.prototype,r=Object.create(e.prototype);a(r,n),r.constructor=t,t.prototype=r,t.superclass=e.prototype}function a(t,e,n){for(var r in e)if(e.hasOwnProperty(r)){if(n&&-1!==n.indexOf(r))continue;t[r]=e[r]}}var s=y;return e.create=function(t){function e(){this.constructor===e&&this.initialize&&this.initialize.apply(this,arguments)}return t||(t={}),n(e),e.implement(t),e},t=e}(),w=function(t){function e(t){return"[object String]"===p.call(t)}function n(t){if(!t||"[object Object]"!==p.call(t))return!1;for(var e in t)if(t.hasOwnProperty(e))return!1;return!0}function r(t,e){var n;for(n in e)e.hasOwnProperty(n)&&(t[n]=i(e[n],t[n]));return t}function i(t,e){return h.isArray(t)?t=t.slice():h.isPlainObject(t)&&(h.isPlainObject(e)||(e={}),t=r(e,t)),t}function o(t,e,r){for(var i=[],o=e.constructor.prototype;o;)o.hasOwnProperty("attrs")||(o.attrs={}),s(r,o.attrs,o),n(o.attrs)||i.unshift(o.attrs),o=o.constructor.superclass;for(var a=0,u=i.length;u>a;a++)l(t,c(i[a]))}function a(t,e){l(t,c(e,!0),!0)}function s(t,e,n,r){for(var i=0,o=t.length;o>i;i++){var a=t[i];n.hasOwnProperty(a)&&(e[a]=r?e.get(a):n[a])}}function c(t,e){var n={};for(var r in t){var i=t[r];n[r]=!e&&h.isPlainObject(i)&&i.hasOwnProperty("getter")?i:{value:i}}return n}function l(t,e,n){var r,o,a;for(r in e)if(e.hasOwnProperty(r)){if(o=e[r],a=t[r],a||(a=t[r]={}),void 0!==o.value&&(a.value=i(o.value,a.value)),n)continue;void 0!==o.getter&&(a.getter=o.getter)}return t}function u(t,e){return h.isPlainObject(e)||h.isArray(e)?!1:t==e}var h=y;t.initAttrs=function(t){var e=this.attrs={},n=this.propsInAttrs||[];o(e,this,n),t&&a(e,t),s(n,this,e,!0)},t.get=function(t){var e=this.attrs[t]||{},n=e.value;return e.getter?e.getter.call(this,n,t):n},t.set=function(t,n,i){var o={};e(t)?o[t]=n:(o=t,i=n),i||(i={});var a=i.silent,s=i.override,c=this.attrs,l=this.__changedAttrs||(this.__changedAttrs={});for(t in o)if(o.hasOwnProperty(t)){{c[t]||(c[t]={})}n=o[t];var p=this.get(t);!s&&h.isPlainObject(p)&&h.isPlainObject(n)&&(n=r(r({},p),n)),c[t].value=n,this.__initializingAttrs||u(p,n)||(a?l[t]=[n,p]:this.trigger("change:"+t,n,p,t))}return this},t.change=function(){var t=this.__changedAttrs;if(t){for(var e in t)if(t.hasOwnProperty(e)){var n=t[e];this.trigger("change:"+e,n[0],n[1],e)}delete this.__changedAttrs}return this},t._isPlainObject=h.isPlainObject;{var p=Object.prototype.toString;Object.prototype.hasOwnProperty,Object.keys}return t}({}),E=function(t){function e(t,e){function r(){s=a.height(),c=a.width()}function i(t){var e,n;return u.container===window?(e=a.scrollTop(),n=a.scrollLeft()):(e=a.offset().top,n=a.offset().left),t.offset().top+t.height()>e&&t.offset().top<e+s&&t.offset().left+t.width()>n&&t.offset().left<n+c?!0:!1}function o(){l.each(function(){function t(t){return"none"!=t.css("display")&&"hidden"!=t.css("visibility")?!0:!1}var e=n(this),r=e.attr(u.attr),o=this.nodeName.toLowerCase();t(e)&&"img"===o&&i(e)&&r&&e.attr("src",r).removeAttr(u.attr)})}var a,s,c,l=n(t),u={attr:"data-url",container:window};n.extend(u,e||{}),a=n(u.container),r(),o(),a.on("scroll",o),u.container===window&&a.on("resize",function(){r(),o()})}var n=y;return t=e}(),x=function(t){var e=Yocto=s;return t=e}(),_=function(t){"use strict";var e=g,n=r["default"],o=i["default"],a=u,s=m,c=function(){var t=new e.HandlebarsEnvironment;return a.extend(t,e),t.SafeString=n,t.Exception=o,t.Utils=a,t.VM=s,t.template=function(e){return s.template(e,t)},t},l=c();return l.create=c,t["default"]=l,t}({}),k=function(t){var e=_["default"];return t=e.template(function(t,e,n,r,i){function o(t,e){var r,i="";return i+="\n ",r=n["if"].call(t,null==e||e===!1?e:e.first,{hash:{},inverse:g.program(4,s,e),fn:g.program(2,a,e),data:e}),(r||0===r)&&(i+=r),i+="\n "}function a(t){var e="";return e+='\n <li><img src="'+d(typeof t===f?t.apply(t):t)+'"></li>\n '}function s(t){var e="";return e+='\n <li><img class="lazyimg" dataimg="'+d(typeof t===f?t.apply(t):t)+'" src="http://a.tbcdn.cn/mw/webapp/fav/img/grey.gif"></li>\n '}function c(t,e){var r,i,o="";return o+="\n <dt>",(i=n.title)?r=i.call(t,{hash:{},data:e}):(i=t&&t.title,r=typeof i===f?i.call(t,{hash:{},data:e}):i),o+=d(r)+"\uff1a</dt>\n <dd>",(i=n.content)?r=i.call(t,{hash:{},data:e}):(i=t&&t.content,r=typeof i===f?i.call(t,{hash:{},data:e}):i),o+=d(r)+"</dd>\n "}function l(t){var e="";return e+='\n <img data-url="'+d(typeof t===f?t.apply(t):t)+'" src="http://a.tbcdn.cn/mw/webapp/fav/img/grey.gif">\n '}this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,t.helpers),i=i||{};var u,h,p="",f="function",d=this.escapeExpression,g=this;return p+='<div id="item-info">\n <div class="carousel" id="pic-carousel">\n <div class="carousel-outer">\n <ul class="carousel-wrap">\n ',u=n.each.call(e,e&&e.item_pics,{hash:{},inverse:g.noop,fn:g.program(1,o,i),data:i}),(u||0===u)&&(p+=u),p+='\n </ul>\n </div>\n <div class="carousel-status"></div>\n </div>\n <div id="price">\n <span class="current-price price"><span class="price-unit">&yen;</span><span class="figure">',(h=n.current_price)?u=h.call(e,{hash:{},data:i}):(h=e&&e.current_price,u=typeof h===f?h.call(e,{hash:{},data:i}):h),p+=d(u)+'</span></span><del class="original-price price"><span class="figure">',(h=n.original_price)?u=h.call(e,{hash:{},data:i}):(h=e&&e.original_price,u=typeof h===f?h.call(e,{hash:{},data:i}):h),p+=d(u)+'</span></del>\n <div class="sold">\u5df2\u552e<span class="figure">',(h=n.sold)?u=h.call(e,{hash:{},data:i}):(h=e&&e.sold,u=typeof h===f?h.call(e,{hash:{},data:i}):h),p+=d(u)+'</span></div>\n </div>\n <div id="summary">\n <h1>',(h=n.item_title)?u=h.call(e,{hash:{},data:i}):(h=e&&e.item_title,u=typeof h===f?h.call(e,{hash:{},data:i}):h),p+=d(u),(h=n.item_type)?u=h.call(e,{hash:{},data:i}):(h=e&&e.item_type,u=typeof h===f?h.call(e,{hash:{},data:i}):h),p+=d(u)+"</h1>\n <dl>\n ",u=n.each.call(e,e&&e.attr_list,{hash:{},inverse:g.noop,fn:g.program(6,c,i),data:i}),(u||0===u)&&(p+=u),p+='\n </dl>\n </div>\n</div>\n<div id="item-desc">\n ',u=n.each.call(e,e&&e.item_desc,{hash:{},inverse:g.noop,fn:g.program(8,l,i),data:i}),(u||0===u)&&(p+=u),p+="\n</div>"})}(),T=function(t){var e=_["default"];return t=e.template(function(t,e,n,r,i){this.compilerInfo=[4,">= 1.0.0"],n=this.merge(n,t.helpers),i=i||{};var o,a,s="",c="function",l=this.escapeExpression;return s+='<form id="order-popup" class="popup">\n\n <div class="popup-wrap">\n\n <div class="popup-body">\n\n <div class="order-info">\n\n <img class="item-pic" src="',(a=n.item_pic)?o=a.call(e,{hash:{},data:i}):(a=e&&e.item_pic,o=typeof a===c?a.call(e,{hash:{},data:i}):a),s+=l(o)+'">\n\n <p class="item-title">',(a=n.item_title)?o=a.call(e,{hash:{},data:i}):(a=e&&e.item_title,o=typeof a===c?a.call(e,{hash:{},data:i}):a),s+=l(o),(a=n.item_type)?o=a.call(e,{hash:{},data:i}):(a=e&&e.item_type,o=typeof a===c?a.call(e,{hash:{},data:i}):a),s+=l(o)+'</p>\n <p class="item-price price"><span class="current-price"><span class="price-unit">&yen;</span><span class="figure">',(a=n.current_price)?o=a.call(e,{hash:{},data:i}):(a=e&&e.current_price,o=typeof a===c?a.call(e,{hash:{},data:i}):a),s+=l(o)+'</span></span></p>\n\n </div>\n <div class="order-count">\n\n <label for="order-count-input">\u8d2d\u4e70\u6570\u91cf</label>\n <div class="form-control">\n <button type="button" class="btn minus-btn">-</button>\n <input id="order-count-input" type="text" value="1" name="count">\n <button type="button" class="btn plus-btn">+</button>\n </div>\n\n </div>\n\n </div>\n\n <div class="popup-footer">\n\n <button class="btn confirm-btn">\u786e\u8ba4</button>\n\n </div>\n\n <button class="btn close-btn">+</button>\n\n </div>\n\n</form>'})}(),C=function(t){function e(t,e){for(var n in e)if(e.hasOwnProperty(n)){var i="_onChange"+r(n);t[i]&&t.on("change:"+n,t[i])}}function r(t){return t.charAt(0).toUpperCase()+t.substring(1)}var i=b,o=n,a=w;return t=i.create({initialize:function(t){this.initAttrs(t),e(this,this.attrs)},destroy:function(){this.off();for(var t in this)this.hasOwnProperty(t)&&delete this[t];this.destroy=function(){}}}).implement([o,a])}(),S=function(t){return t=E}(),P=function(t){function e(){return"widget-"+h++}function n(t){return!!(16&document.documentElement.compareDocumentPosition(t))}function r(t){return t.charAt(0).toUpperCase()+t.substring(1)}function i(t){return null==t||void 0===t}var o=C,a=y,s="_onRender",c="data-widget-cid",l={},u=o.extend({propsInAttrs:["initElement","element"],element:null,attrs:{id:null,className:null,style:null,template:"<div></div>",parentNode:document.body},initialize:function(t){this.cid=e(),u.superclass.initialize.call(this,t),this.parseElement(),this.initProps(),this.setup(),this._stamp(),this._isTemplate=!(t&&t.element)},parseElement:function(){var t=this.element;if(t?this.element=a(t):this.get("template")&&(this.element=a(this.get("template"))),!this.element||!this.element[0])throw new Error("element is invalid")},initProps:function(){},setup:function(){},render:function(){this.rendered||(this._renderAndBindAttrs(),this.rendered=!0);var t=this.get("parentNode");if(t&&!n(this.element[0])){var e=this.constructor.outerBoxClass;if(e){var r=this._outerBox=a("<div></div>").addClass(e);r.append(this.element).appendTo(t)}else this.element.appendTo(t)}return this},_renderAndBindAttrs:function(){var t=this,e=t.attrs;for(var n in e)if(e.hasOwnProperty(n)){var o=s+r(n);if(this[o]){var a=this.get(n);i(a)||this[o](a,void 0,n),function(e){t.on("change:"+n,function(n,r,i){t[e](n,r,i)})}(o)}}},_onRenderId:function(t){this.element.attr("id",t)},_onRenderClassName:function(t){this.element.addClass(t)},_onRenderStyle:function(t){this.element.css(t)},_stamp:function(){var t=this.cid;(this.initElement||this.element).attr(c,t),l[t]=this},$:function(t){return this.element.find(t)},destroy:function(){delete l[this.cid],this.element&&this._isTemplate&&(this.element.off(),this._outerBox?this._outerBox.remove():this.element.remove()),this.element=null,u.superclass.destroy.call(this)}});t=u;var h=(Object.prototype.toString,0);return t}(),O=function(t){var e=P;return t=e}(),N=function(t){var e=y,n=O,r=function(){var t="WebkitTransform"in document.documentElement.style?!0:!1;return t},i=function(){var t,e=!1,n=document.createElement("div"),t=["&#173;",'<style id="smodernizr">',"@media (transform-3d),(-webkit-transform-3d){#modernizr{left:9px;position:absolute;height:3px;}}","</style>"].join(""),r=document.documentElement.style;return n.id="modernizr",n.innerHTML+=t,document.body.appendChild(n),"WebkitPerspective"in r&&"webkitPerspective"in r&&(e=9===n.offsetLeft&&3===n.offsetHeight),n.parentNode.removeChild(n),e},o=i?"translate3d(":"translate(",a=i?",0)":")",s=n.extend({attrs:{container:".slider",wrap:null,panel:null,trigger:null,activeTriggerCls:"sel",hasTrigger:!1,steps:0,left:0,visible:1,margin:0,curIndex:0,duration:300,loop:!1,play:!1,interval:5e3,useTransform:i?!0:!1,lazy:".lazyimg",lazyIndex:1,callback:null,prev:null,next:null,activePnCls:"none"},events:{},setup:function(){this._findEl()&&this._init(),this._increaseEvent()},destroy:function(){},_findEl:function(){{var t=this.element;e(".carousel-1"),e(".carousel-1")}if(!t.length)return null;if(set_wrap=this.get("wrap")&&t.find(this.get("wrap"))||t.children().first(),this.set("wrap",set_wrap),!this.get("wrap").length)return null;var n=this.get("panel")&&t.find(this.get("panel"))||this.get("wrap").children().first();return this.set("panel",n),this.get("panel").length?(this.set("panels",this.get("panel").children()),this.get("panels").length?(set_trigger=this.get("trigger")&&t.find(this.get("trigger")),this.set("trigger",set_trigger),set_prev=this.get("prev")&&t.find(this.get("prev")),this.set("prev",set_prev),set_next=this.get("next")&&t.find(this.get("next")),this.set("next",set_next),this):(this.element.hide(),null)):null},_init:function(){var t=this.get("wrap"),e=this.get("panel"),n=this.get("panels"),o=this.get("trigger"),a=n.length,s=this.get("margin"),c=0,l=this.get("visible"),u=r?this.get("useTransform"):!1;this.set("len",a),this.set("useTransform",u),set_steps=this.get("steps")||t.width(),this.set("steps",set_steps),n.each(function(t,e){c+=e.offsetWidth}),s&&"number"==typeof s&&(c+=(a-1)*s,this.set("steps",this.get("steps")+s)),l>1&&this.set("loop",!1);var h=this.get("left");h-=this.get("curIndex")*this.get("steps"),this._setCoord(e,h),u&&(i&&t.css({"-webkit-transform":"translateZ(0)"}),e.css({"-webkit-backface-visibility":"hidden"}));var p=this._pages=Math.ceil(a/l);if(this._minpage=0,this._maxpage=this._pages-1,this._loadImg(),this._updateArrow(),1>=p)return this._getImg(n[0]),o&&o.hide(),null;if(this._oldLoop){var f=e.children();f.eq(f.length-2).remove(),f.eq(f.length-1).remove()}if(this.get("loop")){e.append(n[0].cloneNode(!0));var d=n[a-1].cloneNode(!0);e.append(d),this._getImg(d),d.style.cssText+="position:relative;left:"+-this.get("steps")*(a+2)+"px;",c+=n[0].offsetWidth,c+=n[a-1].offsetWidth}if(e.css("width",c),o&&o.length){var g="",m=o.children();if(!m.length){for(var v=0;p>v;v++)g+="<span"+(v==this.get("curIndex")?" class="+this.get("activeTriggerCls"):"")+"></span>";o.html(g)}this.set("triggers",o.children()),this.set("triggerSel",this.get("triggers")[this.get("curIndex")])}else this.set("hasTrigger",!1);return this},_setCoord:function(t,e){this.get("useTransform")&&t.css("-webkit-transform",o+e+"px,0"+a)||t.css("left",e)},_loadImg:function(t){t=t||0,t<this._minpage?t=this._maxpage:t>this._maxpage&&(t=this._minpage);var e=this.get("visible"),n=this.get("lazyIndex")-1,r=n+t;if(!(r>this._maxpage)){r+=1;var i=(t&&n+t||t)*e,o=r*e,a=this.get("panels");o=Math.min(a.length,o);for(var s=i;o>s;s++)this._getImg(a[s])}},_updateArrow:function(){var t=this.get("prev"),e=this.get("next");if(t&&t.length&&e&&e.length&&!this.get("loop")){var n=this.get("curIndex"),r=this.get("activePnCls");0>=n&&t.addClass(r)||t.removeClass(r),n>=this._maxpage&&e.addClass(r)||e.removeClass(r)}},_getImg:function(t){if(t&&(t=e(t),!t.attr("l"))){var n=this.get("lazy"),r="img"+n;n=n.replace(/^\.|#/g,""),t.find(r).each(function(t,r){var i=e(r);src=i.attr("dataimg"),src&&i.attr("src",src).removeAttr("dataimg").removeClass(n)}),t.attr("l","1")}},_increaseEvent:function(){var t=this,n=this.get("wrap")[0],r=this.get("prev"),i=this.get("next"),o=this.get("triggers");n.addEventListener&&(n.addEventListener("touchstart",t,!1),n.addEventListener("touchmove",t,!1),n.addEventListener("touchend",t,!1),n.addEventListener("webkitTransitionEnd",t,!1),n.addEventListener("msTransitionEnd",t,!1),n.addEventListener("oTransitionEnd",t,!1),n.addEventListener("transitionend",t,!1)),this.get("play")&&this._begin(),r&&r.length&&r.on("click",function(e){t._backward.call(t,e)}),i&&i.length&&i.on("click",function(e){t._forward.call(t,e)}),this.get("hasTrigger")&&o&&o.each(function(n,r){e(r).on("click",function(){t._slideTo(n)})})},handleEvent:function(t){switch(t.type){case"touchstart":this._start(t);break;case"touchmove":this._move(t);break;case"touchend":case"touchcancel":this._end(t);break;case"webkitTransitionEnd":case"msTransitionEnd":case"oTransitionEnd":case"transitionend":this._transitionEnd(t)}},_start:function(t){var e=t.touches[0];this._movestart=void 0,this._disX=0,this._coord={x:e.pageX,y:e.pageY}},_move:function(t){if(!(t.touches.length>1||t.scale&&1!==t.scale)){var e,n=t.touches[0],r=this._disX=n.pageX-this._coord.x,i=this.get("left");"undefined"==typeof this._movestart&&(this._movestart=!!(this._movestart||Math.abs(r)<Math.abs(n.pageY-this._coord.y))),this._movestart||(t.preventDefault(),this._stop(),this.get("loop")||(r/=!this.get("curIndex")&&r>0||this.get("curIndex")==this._maxpage&&0>r?Math.abs(r)/this.get("steps")+1:1),e=i-this.get("curIndex")*this.get("steps")+r,this._setCoord(this.get("panel"),e),this._disX=r)}},_end:function(t){if(!this._movestart){var e=this._disX;-10>e?(t.preventDefault(),this._forward()):e>10&&(t.preventDefault(),this._backward()),e=null}},_begin:function(){var t=this;t.get("play")&&!t._playTimer&&(t._stop(),t._playTimer=setInterval(function(){t._forward()},t.get("interval")))},_stop:function(){var t=this;t.get("play")&&t._playTimer&&(clearInterval(t._playTimer),t._playTimer=null)},_backward:function(t){t&&t.preventDefault&&t.preventDefault();var e=this.get("curIndex"),n=this._minpage;console.log(e),e-=1,n>e&&(e=this.get("loop")?n-1:n),this._slideTo(e),this.get("callback")&&this.get("callback")(Math.max(e,n),-1)},_forward:function(t){t&&t.preventDefault&&t.preventDefault();var e=this.get("curIndex"),n=this._maxpage;console.log(e),e+=1,e>n&&(e=this.get("loop")?n+1:n),this._slideTo(e),this.get("callback")&&this.get("callback")(Math.min(e,n),1)},_slideTo:function(t,e){t=t||0,this.set("curIndex",t);var n=this.get("panel"),r=n[0].style,i=this.get("left")-t*this.get("steps");r.webkitTransitionDuration=r.MozTransitionDuration=r.msTransitionDuration=r.OTransitionDuration=r.transitionDuration=(e||this.get("duration"))+"ms",this._setCoord(n,i),this._loadImg(t)},_transitionEnd:function(){var t=this.get("panel"),e=t[0].style,n=this.get("loop"),r=this.get("curIndex");n&&(r>this._maxpage?this.set("curIndex",0):r<this._minpage&&this.set("curIndex",this._maxpage),this._setCoord(t,this.get("left")-this.get("curIndex")*this.get("steps"))),n||r!=this._maxpage?this._begin():(this._stop(),this.set("play",!1)),this._update(),this._updateArrow(),e.webkitTransitionDuration=e.MozTransitionDuration=e.msTransitionDuration=e.OTransitionDuration=e.transitionDuration=0},_update:function(){var t=this.get("triggers"),e=this.get("triggerSel"),n=this.get("activeTriggerCls"),r=this.get("curIndex");t&&t[r]&&(e&&(e.className=""),t[r].className=n,this.set("triggerSel",t[r]))},_updateArrow:function(){var t=this.get("prev"),e=this.get("next");if(t&&t.length&&e&&e.length&&!this.get("loop")){var n=this.get("curIndex"),r=this.get("activePnCls");0>=n&&t.addClass(r)||t.removeClass(r),n>=this._maxpage&&e.addClass(r)||e.removeClass(r)}},cache:[],destroy:function(){var t=this,n=t.get("wrap")[0],r=t.get("prev"),i=t.get(".next"),o=t.get("triggers");return n.removeEventListener&&(n.removeEventListener("touchstart",t,!1),n.removeEventListener("touchmove",t,!1),n.removeEventListener("touchend",t,!1),n.removeEventListener("webkitTransitionEnd",t,!1),n.removeEventListener("msTransitionEnd",t,!1),n.removeEventListener("oTransitionEnd",t,!1),n.removeEventListener("transitionend",t,!1)),r&&r.length&&r.off("click"),i&&i.length&&i.off("click"),t.get("hasTrigger")&&o&&o.each(function(t,n){e(n).off("click")}),s.superclass.destroy.call(this)}});return t=s}(),I=function(t){return t=N}(),A=function(){function t(){i=u('<div id="mask"></div>'),i.appendTo(document.body),o=u(l(s)),o.appendTo(document.body),a=u("#order-count-input"),a.prev().on("tap",function(t){var e,n=u(t.currentTarget);e=1*a.val(),e>1&&(a.val(--e),0==e&&n.prop("disabled",!0).addClass("btn-disabled"))}),a.next().on("tap",function(t){var e,n=u(t.currentTarget);e=1*a.val(),100>e&&(a.val(++e),99==e&&n.prop("disabled",!0).addClass("btn-disabled"))}),o.find(".close-btn").on("tap",function(){i.hide(),o.hide()})}function e(){var t,e=location.search,i={item:{addr:"\u676d\u5dde",cateId:20000011,detail:"http://welinklife.b0.upaiyun.com/1/LTE=/SVRFTS1QVUJMSVNI/MA==/20141125/vNTT-0-1416917086858.jpg;http://welinklife.b0.upaiyun.com/1/LTE=/SVRFTS1QVUJMSVNI/MA==/20141125/vNTT-0-1416917092979.jpg;http://welinklife.b0.upaiyun.com/1/LTE=/SVRFTS1QVUJMSVNI/MA==/20141125/vNTT-0-1416917089916.jpg;http://welinklife.b0.upaiyun.com/1/LTE=/SVRFTS1QVUJMSVNI/MA==/20141125/vNTT-0-1416917089362.jpg",endTime:1417605729247,features:'{"\u53e3\u611f":"\u9178\u751c","\u5b58\u50a8":"\u51b7\u85cf"}',itemId:2e3,itemNum:0,pics:"http://welinklife.b0.upaiyun.com/1/LTE=/SVRFTS1QVUJMSVNI/MA==/20141125/vNTT-0-1416917061206.jpg",price:1e12,refPrice:100,soldCnt:0,specification:"600g",title:"\u5546\u54c1\u4e0a\u4f20\u6d4b\u8bd5"}};return e&&(e=e.split("&"),u.each(e,function(e,n){return/gid=/.test(n)?(t=n.split("=")[1],!1):void 0})),t?void n(r(i.item)):void console.log("\u65e0\u6cd5\u83b7\u53d6itemId")}function n(e){s=e,u("#content").html(c(e));new h({element:"#pic-carousel",trigger:".carousel-status",loop:!0,play:!0,hasTrigger:!0});p("#item-desc img",{container:document.body}),u("#toolbar .btn").click(function(e){{var n=u(e.target);1*n.attr("data-type")}o?resetOrderPopup():t()})}function r(t){var e={},n=[];return e.item_pics=t.pics.split(";"),e.item_desc=t.detail.split(";"),e.current_price=t.price/1e3,e.original_price=t.refPrice/1e3,e.sold=t.soldCnt,e.item_title=t.title,e.item_type=t.specification,u.each(u.parseJSON(t.features),function(t,e){n.push({title:t,content:e})}),e.attr_list=n,e.item_thumb=t.pics[0],e}var i,o,a,s,c=k,l=T,u=v,h=I,p=S;e()}()}();
\ No newline at end of file
@import 'normalize.css';
* {
padding: 0;
margin: 0;
}
.btn {
border: none;
background: none;
}
.price .price-unit {
font-family: Verdana;
}
.price .figure {
font-family: Arial;
}
#content {
padding: 0.5rem 0.7rem;
background: #e6e6e6;
padding-bottom: 2.45rem;
}
#item-info {
background: #fff;
}
#pic-carousel {
width: 14.6rem;
}
#pic-carousel .carousel-outer {
width: 14.6rem;
height: 13.6875rem;
overflow: hidden;
position: relative;
margin: 0 auto;
}
#pic-carousel .carousel-wrap {
position: absolute;
}
#pic-carousel .carousel-wrap li {
float: left;
width: 14.6rem;
height: 13.6875rem;
}
#pic-carousel .carousel-wrap li img {
width: 14.6rem;
height: 13.6875rem;
}
#pic-carousel .carousel-status {
text-align: center;
}
#pic-carousel .carousel-status {
text-align: center;
}
#pic-carousel .carousel-status span {
display: inline-block;
width: .35rem;
height: .35rem;
border-radius: 0.1rem;
background: #e7e7e7;
margin-left: .25rem;
}
#pic-carousel .carousel-status span:first-child {
margin-left: 0;
}
#pic-carousel .carousel-status span.sel {
background: #9cc54e;
}
#price {
margin-top: .25rem;
height: 1.05rem;
line-height: 1.05rem;
padding: 0 .4rem;
overflow: hidden;
}
#price .current-price {
font-size: .9rem;
color: #9cc54e;
}
#price .original-price {
font-size: .7rem;
color: #959595;
margin-left: .25rem;
}
#price .sold {
float: right;
font-size: .7rem;
color: #9cc54e;
}
#summary h1 {
border-top: 2px solid #e6e6e6;
border-bottom: 2px solid #e6e6e6;
margin-top: .5rem;
height: 2.4rem;
line-height: 2.4rem;
font-size: .9rem;
color: #666;
padding: 0 .7rem;
}
#summary dl {
padding: 0.425em .7rem;
overflow: hidden;
font-size: .7rem;
line-height: 1.05rem;
}
#summary dt,
#summary dd {
float: left;
color: #666
}
#summary dt {
clear: left;
}
#item-desc {
background: #fff;
margin-top: .5rem;
}
#item-desc img {
margin-top: .5rem;
width: 100%;
display: block;
}
#item-desc img:first-child {
margin-top: 0;
}
#toolbar {
position: fixed;
bottom: 0;
left: 0;
width: 100%;
padding: .3rem 0;
text-align: center;
word-spacing: .35rem;
background: #fff;
height: 1.85rem;
}
#toolbar button {
height: 1.85rem;
padding: 0 .75rem;
border-radius: .2rem;
background: #f0642b;
border: none;
font-size: .8rem;
color: #fff;
}
#mask {
position: fixed;
left: 0;
top: 0;
width: 100%;
height: 100%;
background: #000;
opacity: .7;
}
#order-popup {
position: fixed;
left: 0;
bottom: 0;
width: 100%;
background: #fff;
}
#order-popup .popup-wrap {
padding: .75rem .7rem 0;
position: relative;
}
#order-popup .close-btn {
height: 2.5rem;
position: absolute;
right: .7rem;
top: .75rem;
font-size: 1.5rem;
font-weight: bold;
color: #ccc;
-webkit-transform: rotate(45deg);
transform: rotate(45deg);
}
#order-popup .order-info {
height: 2.5rem;
}
#order-popup .order-info .item-pic {
width: 2.5rem;
height: 2.5rem;
border: 1px solid #e3e3e3;
float: left;
margin-right: .5rem;
}
#order-popup .order-info .item-title {
margin-top: .3rem;
font-size: .7rem;
line-height: 1rem;
}
#order-popup .order-info .item-price {
font-size: .6rem;
line-height: .9rem;
color: #f0642b;
}
#order-popup .order-count {
margin-top: .75rem;
border-top: 1px solid #ddd;
border-bottom: 1px solid #ddd;
height: 3.3rem;
overflow: hidden;
}
#order-popup .order-count label {
line-height: 3.3rem;
font-size: .7rem;
color: #666;
float: left;
}
#order-popup .order-count .form-control {
float: right;
margin-top: .75rem;
height: 1.7rem;
border: 1px solid #b2b2b2;
border-radius: .5rem;
position: relative;
text-align: center;
padding: 0 1.75rem;
}
#order-popup .order-count .form-control input {
font-size: .6rem;
color: #5f5f5f;
width: 1.9rem;
height: 1.7rem;
text-align: center;
border: none;
border-left: 1px solid #b2b2b2;
border-right: 1px solid #b2b2b2;
}
#order-popup .order-count .form-control .minus-btn {
display: block;
width: 1.75rem;
height: 1.7rem;
font-size: 1.5rem;
color: #5f5f5f;
text-align: center;
position: absolute;
left: 0;
top: 0;
}
#order-popup .order-count .form-control .plus-btn {
display: block;
width: 1.75rem;
height: 1.7rem;
font-size: 1.5rem;
color: #5f5f5f;
text-align: center;
position: absolute;
right: 0;
top: 0;
}
#order-popup .popup-footer {
margin-top: 6.65rem;
padding: .25rem 0;
}
#order-popup .popup-footer .confirm-btn {
height: 1.85rem;
width: 100%;
text-align: center;
border-radius: .2rem;
background: #f0642b;
font-size: .8rem;
color: #fff;
}
\ No newline at end of file
<div id="item-info">
<div class="carousel" id="pic-carousel">
<div class="carousel-outer">
<ul class="carousel-wrap">
{{#each item_pics}}
{{#if @first}}
<li><img src="{{this}}"></li>
{{else}}
<li><img class="lazyimg" dataimg="{{this}}" src="http://a.tbcdn.cn/mw/webapp/fav/img/grey.gif"></li>
{{/if}}
{{/each}}
</ul>
</div>
<div class="carousel-status"></div>
</div>
<div id="price">
<span class="current-price price"><span class="price-unit">&yen;</span><span class="figure">{{current_price}}</span></span><del class="original-price price"><span class="figure">{{original_price}}</span></del>
<div class="sold">已售<span class="figure">{{sold}}</span></div>
</div>
<div id="summary">
<h1>{{item_title}}{{item_type}}</h1>
<dl>
{{#each attr_list}}
<dt>{{title}}</dt>
<dd>{{content}}</dd>
{{/each}}
</dl>
</div>
</div>
<div id="item-desc">
{{#each item_desc}}
<img data-url="{{this}}" src="http://a.tbcdn.cn/mw/webapp/fav/img/grey.gif">
{{/each}}
</div>
\ No newline at end of file
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>详情页demo</title>
<meta name="viewport" content="width=device-width, initial-scale=1, minimal-ui">
</head>
<body>
<script>
</script>
<div id="content">
</div>
<div id="toolbar">
<button class="btn" id="cart-btn" type="button" data-type="1">加入购物车</button>
<button class="btn" id="buy-btn" type="button" data-type="2">立即购买</button>
</div>
<script src="index.js"></script>
</body>
</html>
// todo 判断未登录
require('./index.css');
require('./rem.js');
var tpl = require('./index.handlebars');
var orderTpl = require('./order.handlebars');
var $ = require('anima-yocto-lite');
var Carousel = require('anima-carousel');
var Lazyload = require('anima-lazyload');
require('anima-yocto-touch');
var $mask, $orderPopup, $orderCountInput;
var itemData;
function createOrderPopup() {
$mask = $('<div id="mask"></div>');
$mask.appendTo(document.body);
$orderPopup = $(orderTpl(itemData));
$orderPopup.appendTo(document.body);
$orderCountInput = $('#order-count-input');
$orderCountInput.prev().on('tap', function (ev) {
var $currentTarget = $(ev.currentTarget);
var count;
count = $orderCountInput.val() * 1;
if (count > 1) {
$orderCountInput.val(--count);
if (count == 0) {
$currentTarget
.prop('disabled', true)
.addClass('btn-disabled');
}
}
});
$orderCountInput.next().on('tap', function (ev) {
var $currentTarget = $(ev.currentTarget);
var count;
count = $orderCountInput.val() * 1;
if (count < 100) {
$orderCountInput.val(++count);
if (count == 99) {
$currentTarget
.prop('disabled', true)
.addClass('btn-disabled');
}
}
});
$orderPopup.find('.close-btn').on('tap', function (ev) {
$mask.hide();
$orderPopup.hide();
});
}
function hideOrderPopup() {
$mask.hide();
$orderPopup.hide();
}
function showOrderPopup() {
$orderPopup.find('input').val(1);
$mask.show();
$orderPopup.show();
}
function requestDetailData() {
var search = location.search;
var itemId;
var data = {
"item": {
"addr": "杭州",
"cateId": 20000011,
"detail": "http://welinklife.b0.upaiyun.com/1/LTE=/SVRFTS1QVUJMSVNI/MA==/20141125/vNTT-0-1416917086858.jpg;http://welinklife.b0.upaiyun.com/1/LTE=/SVRFTS1QVUJMSVNI/MA==/20141125/vNTT-0-1416917092979.jpg;http://welinklife.b0.upaiyun.com/1/LTE=/SVRFTS1QVUJMSVNI/MA==/20141125/vNTT-0-1416917089916.jpg;http://welinklife.b0.upaiyun.com/1/LTE=/SVRFTS1QVUJMSVNI/MA==/20141125/vNTT-0-1416917089362.jpg",
"endTime": 1417605729247,
"features": "{\"口感\":\"酸甜\",\"存储\":\"冷藏\"}",
"itemId": 2000,
"itemNum": 0,
"pics": "http://welinklife.b0.upaiyun.com/1/LTE=/SVRFTS1QVUJMSVNI/MA==/20141125/vNTT-0-1416917061206.jpg",
"price": 1000000000000,
"refPrice": 100,
"soldCnt": 0,
"specification": "600g",
"title": "商品上传测试"
}
};
if (search) {
search = search.split('&');
$.each(search, function (index, param) {
if (/gid=/.test(param)) {
itemId = param.split('=')[1];
return false;
}
});
}
if (!itemId) {
console.log('无法获取itemId');
return;
}
init(decorateData(data.item));
return;
$.ajax({
type: 'GET',
url: './api/m/1.0/item.json',
data: {
itemId: itemId
},
dataType: 'json',
timeout: 300,
success: function (data) {
if (data.status == 1 && data.result && data.result.item) {
init(decorateDatadata.result.item);
} else {
// todo 异常
}
},
error: function (xhr, type) {
console.log('商品信息获取失败');
}
});
}
function init(data) {
itemData = data;
$('#content').html(tpl(data));
// 宝贝图片
var carousel = new Carousel({
element: '#pic-carousel',
trigger: '.carousel-status',
loop: true,
play: true,
hasTrigger: true
});
Lazyload('#item-desc img', {
container: document.body
});
$('#toolbar .btn').click(function (ev) {
var $target = $(ev.target);
var type = $target.attr('data-type') * 1;
if (!$orderPopup) {
createOrderPopup();
} else {
resetOrderPopup();
}
});
}
function decorateData (rawData) {
var data = {};
var attr_list = [];
data['item_pics'] = rawData['pics'].split(';');
data['item_desc'] = rawData['detail'].split(';');
data['current_price'] = rawData['price'] / 1000;
data['original_price'] = rawData['refPrice'] / 1000;
data['sold'] = rawData['soldCnt'];
data['item_title'] = rawData['title'];
data['item_type'] = rawData['specification'];
$.each($.parseJSON(rawData['features']), function (key, value) {
attr_list.push({
title: key,
content: value
});
});
data['attr_list'] = attr_list;
data['item_thumb'] = rawData['pics'][0];
return data;
}
requestDetailData();
// module.export = requestDetailData;
\ No newline at end of file
<form id="order-popup" class="popup">
<div class="popup-wrap">
<div class="popup-body">
<div class="order-info">
<img class="item-pic" src="{{item_pic}}">
<p class="item-title">{{item_title}}{{item_type}}</p>
<p class="item-price price"><span class="current-price"><span class="price-unit">&yen;</span><span class="figure">{{current_price}}</span></span></p>
</div>
<div class="order-count">
<label for="order-count-input">购买数量</label>
<div class="form-control">
<button type="button" class="btn minus-btn">-</button>
<input id="order-count-input" type="text" value="1" name="count">
<button type="button" class="btn plus-btn">+</button>
</div>
</div>
</div>
<div class="popup-footer">
<button class="btn confirm-btn">确认</button>
</div>
<button class="btn close-btn">+</button>
</div>
</form>
\ No newline at end of file
{
"name": "detail",
"version": "0.0.1",
"description": "享当家detail",
"keywords": [],
"homepage": "",
"author": "muyun <muyun1115@gmail.com>",
"repository": {
"type": "git",
"url": ""
},
"bugs": {
"url": ""
},
"licenses": "MIT",
"spm": {
"main": "index.js",
"output": [
"src/**/*.js",
"src/**/*.css"
],
"buildArgs": "--include standalone",
"dependencies": {
"zepto": "1.1.3",
"normalize.css": "3.0.1",
"seajs": "2.3.0",
"handlebars-runtime": "1.3.0",
"anima-lazyload": "1.0.1",
"anima-yocto": "1.1.5",
"anima-carousel": "1.0.1",
"anima-yocto-lite": "1.1.1",
"anima-yocto-touch": "1.0.6",
"import-style": "1.0.0"
},
"devDependencies": {
"expect.js": "0.3.1"
}
},
"devDependencies": {
"spm": "3"
},
"scripts": {
"test": "spm test",
"build": "spm build"
}
}
\ No newline at end of file
<!DOCTYPE html>
<html style="font-size:20px;">
<head>
<meta charset="utf-8">
<title>详情页demo</title>
<meta name="viewport" content="width=device-width, initial-scale=1, minimal-ui">
</head>
<body>
<script>
</script>
<div id="content">
</div>
<div id="toolbar">
<button class="btn" id="cart-btn" type="button" data-type="1">加入购物车</button>
<button class="btn" id="buy-btn" type="button" data-type="2">立即购买</button>
</div>
<script src="./dist/welinklife/0.0.0/index-debug.js"></script>
</body>
</html>
;(function(win) {
var docEl = document.documentElement;
var metaEl = document.querySelector('meta[name="viewport"]');
var fontEl = document.createElement('style');
var dpr;
var scale;
var tid;
var dpr = win.devicePixelRatio || 1;
scale = 1 / dpr;
docEl.setAttribute('data-dpr', dpr);
docEl.firstElementChild.appendChild(fontEl);
var matches = navigator.userAgent.match(/Android[\S\s]+AppleWebkit\/(\d{3})/i);
if(!matches || matches && matches[1] > 534) {
//width=空 修复ios 6.1.3的问题 因为默认把width=device-width加上会导致ios6的width=320 scale后就变为一半了
metaEl.setAttribute('content', 'target-densitydpi=device-dpi,initial-scale=' + scale + ',maximum-scale=' + scale + ', minimum-scale=' + scale + ',user-scalable=no,width=');
if (docEl.firstElementChild) {
docEl.firstElementChild.appendChild(metaEl);
} else {
var wrap = document.createElement('div');
wrap.appendChild(metaEl);
document.write(wrap.innerHTML);
}
if(docEl.clientWidth == 980) {
metaEl.setAttribute('content', 'target-densitydpi=device-dpi,width=device-width,user-scalable=no,initial-scale=1,maximum-scale=1,minimum-scale=1');
}
}
function setUnitA(){
var docWidth = docEl.clientWidth;
var extraStyle = '}';
if(!navigator.userAgent.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i) && docWidth > 1024) {
docWidth = 640;
extraStyle = ';max-width:'+ docWidth + 'px;margin-right:auto!important;margin-left:auto!important;}';
}
win.rem = docWidth / 16;
fontEl.innerHTML = 'html{font-size:' + win.rem + 'px!important;}body{font-size:' + parseInt(12 * (docWidth / 320)) + 'px' + extraStyle;
}
win.dpr = dpr;
win.addEventListener('resize', function() {
clearTimeout(tid);
tid = setTimeout(setUnitA, 300);
}, false);
win.addEventListener('pageshow', function(e) {
if (e.persisted) {
clearTimeout(tid);
tid = setTimeout(setUnitA, 300);
}
}, false);
setUnitA();
})(window);
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment