!function(){var e={5798:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return f}});n(2843);function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==r(t)?t:t+""}function a(e,t){for(var n=0;n2&&void 0!==arguments[2]&&arguments[2];if(!e)return"";var r=Object.assign({},e);return n&&Object.keys(r).map((function(e){void 0!==r[e]&&null!==r[e]||delete r[e]})),Object.keys(r).map((function(e){return t?"".concat(e,"=").concat(encodeURIComponent(r[e])):"".concat(e,"=").concat(r[e])})).join("&")}},686:function(e,t,n){"use strict";n(4119),Object.defineProperty(t,"__esModule",{value:!0});var r=n(5608),i=n(1085);n(1292);var a=r.__importDefault(n(2023)),o=r.__importDefault(n(9884)),s=r.__importStar(n(3839)),l=r.__importDefault(n(3169)),c=s.animateScroll,u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.scrollToTop=function(){c.scrollToTop({duration:300})},t.openSobot=function(){window.openSobotChat&&window.openSobotChat()},t}return r.__extends(t,e),t.prototype.componentDidMount=function(){this.setShareMenu()},t.prototype.setShareMenu=function(){var e=window._CONFIG.page,t={root:".share-pop",shareConfig:{douban:{url:e.share_config.douban.url,title:e.share_config.douban.title,desc:e.share_config.douban.desc,image:e.share_config.douban.image,other_params:null},weibo:{url:encodeURIComponent(e.share_config.weibo.url),title:encodeURIComponent(e.share_config.weibo.title),desc:encodeURIComponent(e.share_config.weibo.desc),image:encodeURIComponent(e.share_config.weibo.image),other_params:null},wechat:{url:e.share_config.wechat.url,width:88,height:88}}};this.shareMenu=new l.default({root:t.root,shareConfig:t.shareConfig});var n=$(".share-wrapper"),r=$(".share-pop");n.hover((function(){r.addClass("show")}),(function(){r.removeClass("show")}))},t.prototype.render=function(){var e=(0,o.default)("action-bar","fixed",{"action-bar-hidden":this.props.hidden});return(0,i.jsx)("div",r.__assign({className:e},{children:(0,i.jsxs)("ul",{children:[(0,i.jsx)("li",r.__assign({className:"action-item"},{children:(0,i.jsx)("i",{className:"icon top",onClick:this.scrollToTop})})),(0,i.jsxs)("li",r.__assign({className:"action-item service"},{children:[(0,i.jsx)("i",{className:"icon service"}),(0,i.jsxs)("div",r.__assign({className:"conf service"},{children:[(0,i.jsxs)("div",r.__assign({className:"inner"},{children:[(0,i.jsxs)("p",{children:["在线客服: ",(0,i.jsx)("a",r.__assign({href:"#",onClick:this.openSobot},{children:"豆品在线客服"}))]}),(0,i.jsx)("p",{children:"在线时间: 周一至周日 09:00 - 22:00"}),(0,i.jsx)("p",r.__assign({className:"space"},{children:"客服电话: 4008353331-5"})),(0,i.jsx)("p",{children:"接线时间: 周一至周五 09:30 - 18:00"})]})),(0,i.jsx)("i",{className:"triangle"})]}))]})),(0,i.jsxs)("li",r.__assign({className:"action-item follow"},{children:[(0,i.jsx)("i",{className:"icon follow"}),(0,i.jsxs)("div",r.__assign({className:"conf follow"},{children:[(0,i.jsxs)("div",r.__assign({className:"inner"},{children:[(0,i.jsxs)("a",r.__assign({className:"platform",href:"https://www.douban.com/people/doubanshiji/",target:"_blank"},{children:[(0,i.jsx)("i",{className:"drc-icon douban"}),(0,i.jsx)("em",{children:"豆瓣豆品"})]})),(0,i.jsxs)("a",r.__assign({className:"platform",href:"https://weibo.com/u/6348655664",target:"_blank"},{children:[(0,i.jsx)("i",{className:"drc-icon weibo"}),(0,i.jsx)("em",{children:"@豆瓣豆品"})]})),(0,i.jsxs)("div",r.__assign({className:"platform"},{children:[(0,i.jsx)("i",{className:"drc-icon wechat"}),(0,i.jsx)("em",{children:"豆瓣豆品"})]})),(0,i.jsx)("img",{className:"qrcode",src:"https://img1.doubanio.com/f/market/15119522f04e3122f8566562ce84a684065dd6a2/pics/qrcode.png"})]})),(0,i.jsx)("i",{className:"triangle"})]}))]})),(0,i.jsxs)("li",r.__assign({className:"action-item share"},{children:[(0,i.jsx)("i",{className:"icon share"}),(0,i.jsxs)("div",r.__assign({className:"conf share"},{children:[(0,i.jsx)("div",r.__assign({className:"inner"},{children:(0,i.jsx)("div",{className:"share-pop"})})),(0,i.jsx)("i",{className:"triangle"})]}))]}))]})}))},t.defaultProps={hidden:!1},t}(a.default.Component);t.default=u},3169:function(e,t,n){"use strict";n(4119),n(667),Object.defineProperty(t,"__esModule",{value:!0});var r=n(5608);n(6075);var i=r.__importDefault(n(7272)),a=r.__importDefault(n(6484)),o=function(){function e(e){this.defaultConfig={root:"#share-to-douban",url:"",title:"",desc:"",image:"",other_params:null},this.config=Object.assign({},this.defaultConfig,e),this.init()}return e.prototype.init=function(){var e=this.config,t=e.root,n=e.url,r=e.title,a=e.desc,o=e.image,s=e.other_params,l="".concat("https://www.douban.com/share/service","?url=").concat(n,"&name=").concat(r,"&text=").concat(a,"&image=").concat(o,"&").concat((0,i.default)(s)),c='')+'分享到豆瓣';$(t).append(c)},e}(),s=function(){function e(e){this.defaultConfig={root:"#share-to-weibo",url:"",title:"",desc:"",image:"",content:"utf-8",other_params:null},this.config=Object.assign({},this.defaultConfig,e),this.init()}return e.prototype.init=function(){var e=this.config,t=e.root,n=e.url,r=e.title,a=(e.desc,e.image),o=e.other_params,s=e.content,l="".concat("http://v.t.sina.com.cn/share/share.php","?url=").concat(n,"&title=").concat(r,"&pic=").concat(a,"&content=").concat(s,"&").concat((0,i.default)(o)),c='')+'分享到微博';$(t).append(c)},e}(),l=1,c=function(){function e(e){this.defaultConfig={root:"#share-to-wechat",url:window.location.href,width:100,height:100},this.config=Object.assign({},this.defaultConfig,e),this.container_id="qrcode-".concat(l),this.init(),l+=1}return e.prototype.init=function(){var e=this.config,t=e.root,n=e.url,r='
分享到微信
'+'')+'
';$(t).append(l),this.shareToDouban=new o({root:"#".concat(this.id," .share-to-douban"),url:encodeURIComponent(r.url),title:r.title,desc:r.desc,image:r.image,other_params:r.other_params}),this.shareToWeibo=new s({root:"#".concat(this.id," .share-to-weibo"),url:i.url,title:i.title,desc:i.desc,image:i.image,other_params:i.other_params}),this.shareToWechat=new c({root:"#".concat(this.id," .share-to-wechat"),url:a.url})},e}();t.default=p},1607:function(e,t,n){"use strict";n(4119),Object.defineProperty(t,"__esModule",{value:!0});var r=n(5608),i=n(1085),a=r.__importDefault(n(2023)),o=r.__importDefault(n(5424)),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.render=function(){var e=this.props,t=e.alias,n=e.isHome,a=e.category;return a?(0,i.jsx)("div",r.__assign({className:"category"},{children:(0,i.jsx)(o.default,{items:a.products,title:a.title?a.title:"全部商品",desc:a.description,kind:"category",more_url:n?a.url:""})}),"_".concat(t)):null},t}(a.default.Component);t.default=s},2659:function(e,t,n){"use strict";n(4119),n(7132),Object.defineProperty(t,"__esModule",{value:!0});var r=n(5608),i=n(1085);n(4963);var a=r.__importDefault(n(2023)),o=n(8025),s=n(8479),l=r.__importStar(n(7167)),c=r.__importDefault(n(1607)),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.componentDidMount=function(){var e=this.props,t=e.actions,n=e.category_items,r=e.isHome?4:10;n.map((function(e){t.loadProducts(e.alias,0,r)}))},t.prototype.render=function(){var e=this.props,t=e.category_items,n=e.categoryState.categorys;return t&&n?(0,i.jsx)("div",r.__assign({className:"product-wrap categorys-wrap"},{children:t.map((function(e){return n[e.alias]?(0,i.jsx)(c.default,{category:n[e.alias],alias:e.alias,isHome:!0},e.alias):null}))})):null},t}(a.default.Component);var d=(0,s.connect)((function(e){return{categoryState:e}}),(function(e){return{actions:(0,o.bindActionCreators)(l,e)}}));t.default=d(u)},6469:function(e,t,n){"use strict";n(4119),n(1680),n(7132),Object.defineProperty(t,"__esModule",{value:!0});var r=n(5608),i=n(1085);n(8525);var a=r.__importDefault(n(2023)),o=r.__importDefault(n(9884)),s=r.__importDefault(n(9967)),l=function(e){function t(t){var n=e.call(this,t)||this;return n.loaded=function(e){var t=n.state.loaded,r=e.target.getAttribute("data-id");t[r]||(t[r]=!0,n.setState({loaded:t}))},n.renderCard=function(e,t){return(0,i.jsxs)("div",r.__assign({className:"product-card product-card-evaluation"},{children:[(0,i.jsxs)("a",r.__assign({href:e.link,target:"_blank",className:"product-card-main"},{children:[(0,i.jsx)("div",r.__assign({className:"product-card-cover"},{children:(0,i.jsx)("img",{src:e.image,alt:e.title,className:"product-cover-pic",onLoad:n.loaded,"data-id":t})})),(0,i.jsx)("div",r.__assign({className:"product-card-info"},{children:(0,i.jsx)("div",r.__assign({className:"product-card-title"},{children:e.title}))}))]})),(0,i.jsxs)("a",r.__assign({href:"//www.douban.com/people/".concat(e.user_id),className:"product-card-user"},{children:[(0,i.jsx)("img",{className:"product-card-avatar",src:e.user_avatar}),(0,i.jsx)("div",r.__assign({className:"product-card-username"},{children:e.user_name}))]}))]}))},n.state={loaded:[]},n}return r.__extends(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.title,a=t.items,l=t.isHome;if(!a)return null;var c=a.length;return 1===c?"col-12":2===c?"col-6":3===c&&"col-4",(0,i.jsxs)("div",r.__assign({className:"product-wrap product-list-evaluation"},{children:[(0,i.jsx)("div",r.__assign({className:"product-list-title"},{children:n})),(0,i.jsx)("ul",r.__assign({className:"product-list-content"},{children:(0,i.jsx)(s.default,r.__assign({breakpointCols:4,className:"my-masonry-grid",columnClassName:"my-masonry-grid_column"},{children:a.map((function(t,n){return(0,i.jsx)("li",r.__assign({className:(0,o.default)("product-list-item")},{children:e.renderCard(t,n)}),"_product_list_".concat(n))}))}))})),l?(0,i.jsx)("a",r.__assign({href:"/evaluations",target:"_blank",className:"evaluation-more"},{children:"查看更多"})):null]}))},t}(a.default.Component);t.default=l},7108:function(e,t,n){"use strict";n(4119),n(7132),Object.defineProperty(t,"__esModule",{value:!0});var r=n(5608),i=n(1085);n(602);var a=r.__importDefault(n(2023)),o=r.__importDefault(n(9884)),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.render=function(){var e=this.props,t=e.title,n=e.topics,a=e.group_id;return n?(0,i.jsxs)("div",r.__assign({className:"group-wrap"},{children:[(0,i.jsxs)("div",r.__assign({className:"group-hd"},{children:[(0,i.jsxs)("a",r.__assign({href:"//www.douban.com/group/".concat(a),className:"more",target:"_blank"},{children:["查看更多小组讨论 ",(0,i.jsx)("em",{className:"drc-icon arrow-right"})]})),(0,i.jsx)("h4",{children:t})]})),(0,i.jsx)("ul",r.__assign({className:"group-topics"},{children:n.map((function(e,t){return(0,i.jsxs)("li",r.__assign({className:"group-topic-item"},{children:[(0,i.jsx)("span",r.__assign({className:(0,o.default)("topic-comment-amount",{hot:e.hot_amount>100})},{children:(0,i.jsx)("em",{children:e.hot_amount})})),(0,i.jsx)("em",r.__assign({className:"topic-update-time"},{children:e.update_time})),(0,i.jsx)("a",r.__assign({href:"//www.douban.com/group/topic/".concat(e.id,"/"),className:"topic-title",target:"_blank"},{children:e.title}))]}),"_topic_".concat(t))}))}))]})):null},t}(a.default.Component);t.default=s},9879:function(e,t,n){"use strict";n(4119),Object.defineProperty(t,"__esModule",{value:!0}),t.LOAD_CATEGORY_FAIL=t.LOAD_CATEGORY_SUCCESS=t.LOAD_CATEGORY=t.LOAD_PRODUCTS_FAIL=t.LOAD_PRODUCTS_SUCCESS=t.LOAD_PRODUCTS=t.LOAD_EVALUATION_FAIL=t.LOAD_EVALUATION_SUCCESS=t.LOAD_EVALUATION=t.LOAD_SPECIAL_FAIL=t.LOAD_SPECIAL_SUCCESS=t.LOAD_SPECIAL=t.LOAD_FAIL=t.LOAD_SUCCESS=t.LOAD=t.INIT=void 0,t.INIT="INIT",t.LOAD="LOAD",t.LOAD_SUCCESS="LOAD_SUCCESS",t.LOAD_FAIL="LOAD_FAIL",t.LOAD_SPECIAL="LOAD_SPECIAL",t.LOAD_SPECIAL_SUCCESS="LOAD_SPECIAL_SUCCESS",t.LOAD_SPECIAL_FAIL="LOAD_SPECIAL_FAIL",t.LOAD_EVALUATION="LOAD_EVALUATION",t.LOAD_EVALUATION_SUCCESS="LOAD_EVALUATION_SUCCESS",t.LOAD_EVALUATION_FAIL="LOAD_EVALUATION_FAIL",t.LOAD_PRODUCTS="LOAD_PRODUCTS",t.LOAD_PRODUCTS_SUCCESS="LOAD_PRODUCTS_SUCCESS",t.LOAD_PRODUCTS_FAIL="LOAD_PRODUCTS_FAIL",t.LOAD_CATEGORY="LOAD_CATEGORY",t.LOAD_CATEGORY_SUCCESS="LOAD_CATEGORY_SUCCESS",t.LOAD_CATEGORY_FAIL="LOAD_CATEGORY_FAIL"},7167:function(e,t,n){"use strict";n(4119),Object.defineProperty(t,"__esModule",{value:!0}),t.loadEvaluations=t.loadSpecials=t.loadProducts=t.loadModules=void 0;var r=n(5608),i=r.__importDefault(n(6206)),a=r.__importStar(n(9879)),o="?dt_market_source=pc",s="/api/v2/market/home/modules"+o,l="/api/v2/market/specials"+o;t.loadModules=function(){return function(e,t){return e({type:a.LOAD}),i.default.get(s).then((function(t){var n=parseInt(t.r,10),r=t.error||"加载失败, 请刷新重试";return e(0===n?{type:a.LOAD_SUCCESS,res:t}:{type:a.LOAD_FAIL,msg:r})})).catch((function(t){return e({type:a.LOAD_FAIL,msg:t||"加载失败,请刷行重试"})}))}};var c={all:null};t.loadProducts=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=10),function(r,s){r({type:a.LOAD_CATEGORY});var l="all"===e?"/api/v2/market/products":"/api/v2/market/category/".concat(e).concat(o),u={start:t,count:n};return i.default.get(l,u).then((function(n){var i=parseInt(n.r,10),o=n.error||"加载失败, 请刷新重试";return 0===i?(t>0&&(n.data.products=c[e].products.concat(n.data.products)),c[e]=n.data,r({type:a.LOAD_CATEGORY_SUCCESS,categorys:c})):r({type:a.LOAD_CATEGORY_FAIL,msg:o})})).catch((function(e){return r({type:a.LOAD_CATEGORY_FAIL,msg:e||"加载失败, 请刷新重试"})}))}};var u=[];t.loadSpecials=function(e,t){return void 0===e&&(e=0),void 0===t&&(t=10),function(n,r){var o={start:e,count:t};return n({type:a.LOAD_SPECIAL}),i.default.get(l,o).then((function(t){var r=parseInt(t.r,10),i=t.error||"加载失败, 请刷新重试";return 0===r?(e>0&&(t.data.items=u.concat(t.data.items)),u=t.data.items,n({type:a.LOAD_SPECIAL_SUCCESS,res:t})):n({type:a.LOAD_SPECIAL_FAIL,msg:i})})).catch((function(e){return n({type:a.LOAD_FAIL,msg:e||"加载失败,请刷行重试"})}))}};var d=[];t.loadEvaluations=function(e,t){return void 0===e&&(e=0),void 0===t&&(t=10),function(n,r){var o={start:e,count:t};return n({type:a.LOAD_EVALUATION}),i.default.get("/api/v2/market/evaluations",o).then((function(t){var r=parseInt(t.r,10),i=t.error||"加载失败, 请刷新重试";return 0===r?(e>0&&(t.data.items=d.concat(t.data.items)),d=t.data.items,n({type:a.LOAD_EVALUATION_SUCCESS,res:t})):n({type:a.LOAD_EVALUATION_FAIL,msg:i})})).catch((function(e){return n({type:a.LOAD_FAIL,msg:e||"加载失败,请刷行重试"})}))}}},5848:function(e,t,n){"use strict";n(4119),n(7132),Object.defineProperty(t,"__esModule",{value:!0});var r=n(5608),i=n(1085);n(3614);var a=r.__importDefault(n(2023)),o=n(8025),s=n(8479),l=r.__importStar(n(7167)),c=r.__importDefault(n(686)),u=r.__importDefault(n(5798)),d=r.__importDefault(n(9049)),p=r.__importDefault(n(9662)),f=r.__importDefault(n(5424)),h=r.__importDefault(n(2659)),m=r.__importDefault(n(5656)),g=r.__importDefault(n(6469)),v=r.__importDefault(n(7108)),y=r.__importDefault(n(3871)),b=function(e){function t(t){var n=e.call(this,t)||this;return n.scrollHandler=(0,y.default)((function(){var e=n.state.hideActionBar;window.scrollY<=570&&!e?n.setState({hideActionBar:!0}):e&&n.setState({hideActionBar:!1})}),500),n.state={hideActionBar:window.scrollY<=570},n}return r.__extends(t,e),t.prototype.componentDidMount=function(){var e=this,t=this.props.actions;t.loadModules(),t.loadSpecials(0,5),t.loadEvaluations(0,8),document.onscroll=function(){e.scrollHandler()}},t.prototype.render=function(){var e=this.props.homepageState,t=e.page;return"success"!=e.loadState?(0,i.jsx)(u.default,{}):t&&t.modules?(0,i.jsxs)("div",r.__assign({className:"homepage"},{children:[this.renderPage(),(0,i.jsx)(c.default,{hidden:this.state.hideActionBar})]})):null},t.prototype.renderPage=function(){var e=this.props.homepageState,t=e.page,n=e.specials,a=e.evaluations,o=t.modules;return(0,i.jsx)("div",r.__assign({className:"homepage-wrap"},{children:o.map((function(e,t){var o=e.data,s=e.title,l=e.key;switch(l){case"market_banner":return(0,i.jsx)(d.default,{banners:o.banner},l);case"market_newproducts":return(0,i.jsx)(f.default,{title:s,items:o.product_items,kind:"new"},l);case"market_flashsales":return(0,i.jsx)(p.default,{title:s,items:o.product_items,remaining:o.remaining_seconds,kind:"sale"},l);case"market_member":return(0,i.jsx)("div",r.__assign({className:"product-wrap member"},{children:(0,i.jsx)("a",r.__assign({href:"/people/member"},{children:(0,i.jsx)("img",{src:o.image})}))}),l);case"market_hotproducts":return(0,i.jsx)(f.default,{title:s,items:o.product_items,kind:"hot"},l);case"market_categories":return(0,i.jsx)(h.default,{category_items:o.category_items,isHome:!0},l);case"market_specials":return n&&n.items?(0,i.jsx)(m.default,{items:n.items},l):null;case"market_evaluations":return a&&a.items?(0,i.jsx)(g.default,{title:s,items:a.items,isHome:!0},l):null;case"market_group":return(0,i.jsx)(v.default,{title:s,topics:o.topics,group_id:o.group_id},l);default:return null}}))}))},t}(a.default.Component);var w=(0,s.connect)((function(e){return{homepageState:e}}),(function(e){return{actions:(0,o.bindActionCreators)(l,e)}}));t.default=w(b)},9228:function(e,t,n){"use strict";n(4119),Object.defineProperty(t,"__esModule",{value:!0});var r=n(5608),i=r.__importStar(n(9879)),a="pending",o="success",s="fail",l={page:null,specials:null,evaluations:null,categorys:null,loadState:"",error:"",loadCategoryState:"",loadSpecialState:"",loadEvaluationState:""};t.default=function(e,t){switch(void 0===e&&(e=l),t.type){case i.LOAD:return(n=r.__assign({},e)).loadState=a,n;case i.LOAD_SUCCESS:return(n=r.__assign({},e)).page=t.res.data,n.loadState=o,n;case i.LOAD_FAIL:return(n=r.__assign({},e)).error=t.error,n.loadState=s,n;case i.LOAD_CATEGORY:return(n=r.__assign({},e)).loadCategoryState=a,n;case i.LOAD_CATEGORY_SUCCESS:return(n=r.__assign({},e)).categorys=t.categorys,n.loadCategoryState=o,n;case i.LOAD_CATEGORY_FAIL:return(n=r.__assign({},e)).error=t.error,n.loadCategoryState=s,n;case i.LOAD_SPECIAL:return(n=r.__assign({},e)).loadSpecialState=a,n;case i.LOAD_SPECIAL_SUCCESS:return(n=r.__assign({},e)).specials=t.res.data,n.loadSpecialState=o,n;case i.LOAD_SPECIAL_FAIL:return(n=r.__assign({},e)).error=t.error,n.loadSpecialState=s,n;case i.LOAD_EVALUATION:return(n=r.__assign({},e)).loadEvaluationState=a,n;case i.LOAD_EVALUATION_SUCCESS:return(n=r.__assign({},e)).evaluations=t.res.data,n.loadEvaluationState=o,n;case i.LOAD_EVALUATION_FAIL:var n;return(n=r.__assign({},e)).error=t.error,n.loadEvaluationState=s,n;default:return e}}},9453:function(e,t,n){"use strict";n(4119),Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(5608),a=n(8025),o=i.__importDefault(n(6074)),s=(i.__importDefault(n(7783)),i.__importDefault(n(9228)));r=(0,a.compose)((0,a.applyMiddleware)(o.default))(a.createStore),t.default=function(e){return r(s.default,e)}},7526:function(e,t,n){"use strict";n(4119),n(7132),Object.defineProperty(t,"__esModule",{value:!0});var r=n(5608),i=n(1085);n(1188);var a=r.__importDefault(n(2023)),o=r.__importDefault(n(9884)),s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.gotoProduct=function(e,t){e.preventDefault(),window.open(t)},t}return r.__extends(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.item,a=t.kind,s=n.tags,l=n.price,c=n.promote_price,u=n.stock;return(0,i.jsx)("div",r.__assign({className:(0,o.default)("product-card","product-card-".concat(a)),onClick:function(t){e.gotoProduct(t,n.url)}},{children:(0,i.jsxs)("div",r.__assign({className:"product-card-main"},{children:[(0,i.jsxs)("div",r.__assign({className:"product-card-cover"},{children:[(0,i.jsx)("img",{src:n.image,alt:n.title,className:"product-cover-pic"}),n.stock_filling?(0,i.jsx)("div",r.__assign({className:"product-corner-mark filling"},{children:"补货中"})):void 0!==u&&0===parseInt("".concat(u),10)?(0,i.jsx)("div",r.__assign({className:"product-corner-mark sellout"},{children:"已售罄"})):null]})),(0,i.jsxs)("div",r.__assign({className:"product-card-info"},{children:[(0,i.jsx)("div",r.__assign({className:"product-card-title"},{children:n.title})),(0,i.jsx)("div",r.__assign({className:"product-card-desc"},{children:n.desc})),s&&s.length>0?(0,i.jsx)("div",r.__assign({className:"product-card-tags"},{children:s.map((function(e,t){return(0,i.jsx)("span",r.__assign({className:"product-card-tag"},{children:e}),"_product_tag_".concat(t,"}"))}))})):null,(0,i.jsxs)("div",r.__assign({className:"product-card-price"},{children:[(0,i.jsxs)("span",r.__assign({className:"product-card-promote"},{children:["¥",c]})),l&&c&&l>c?(0,i.jsxs)("span",r.__assign({className:"product-card-del"},{children:["¥",l]})):null]})),"sale"===a?(0,i.jsx)("div",r.__assign({className:"product-card-action"},{children:(0,i.jsx)("a",r.__assign({className:"product-card-btn",href:""},{children:"马上抢"}))})):null]}))]}))}))},t}(a.default.Component);t.default=s},5424:function(e,t,n){"use strict";n(4119),n(7132),Object.defineProperty(t,"__esModule",{value:!0});var r=n(5608),i=n(1085);n(4806);var a=r.__importDefault(n(2023)),o=r.__importDefault(n(9884)),s=r.__importDefault(n(7526)),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.render=function(){var e=this.props,t=e.title,n=e.desc,a=e.items,l=e.kind,c=e.more_url;if(!a||!a.length)return null;var u=a.length,d="col-3";return 1===u?d="col-12":2===u?d="col-6":3===u&&(d="col-4"),(0,i.jsxs)("div",r.__assign({className:(0,o.default)("product-wrap","product-list-wrap","product-list-".concat(l))},{children:[t?(0,i.jsxs)("div",r.__assign({className:"product-list-title"},{children:[t,n?(0,i.jsx)("span",r.__assign({className:"product-list-desc"},{children:n})):null,c?(0,i.jsxs)("a",r.__assign({href:c,target:"_blank",className:"product-list-more"},{children:["查看更多",(0,i.jsx)("em",{className:"drc-icon arrow-right"})]})):null]})):null,(0,i.jsx)("ul",r.__assign({className:"product-list-content"},{children:a.map((function(e,t){return(0,i.jsxs)("li",r.__assign({className:(0,o.default)("product-list-item",d)},{children:[1===u?(0,i.jsx)("a",r.__assign({className:"product-card-large",href:e.url,target:"_blank"},{children:(0,i.jsx)("img",{src:e.activity_image,alt:e.title,className:"product-cover-pic"})})):null,(0,i.jsx)(s.default,{item:e,kind:l})]}),"_product_list_".concat(t))}))}))]}))},t}(a.default.Component);t.default=l},5656:function(e,t,n){"use strict";n(4119),n(7132),n(1680),Object.defineProperty(t,"__esModule",{value:!0});var r=n(5608),i=n(1085);n(958);var a=r.__importDefault(n(2023)),o=r.__importDefault(n(9368)),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.render=function(){var e=this.props.items;if(e)return(0,i.jsxs)("div",r.__assign({className:"product-wrap product-list-wrap product-list-specials"},{children:[(0,i.jsx)("div",r.__assign({className:"product-list-title"},{children:(0,i.jsxs)("a",r.__assign({href:"/specials",target:"_blank",className:"more"},{children:["查看更多",(0,i.jsx)("em",{className:"drc-icon arrow-right"})]}))})),(0,i.jsx)("ul",r.__assign({className:"product-list-content"},{children:(0,i.jsx)(o.default,r.__assign({},{speed:600,loop:!0,autoplay:{delay:5e3},pagination:{el:".product-list-specials .swiper-pagination",type:"bullets",clickable:!0},navigation:{nextEl:".product-list-specials .swiper-button-next",prevEl:".product-list-specials .swiper-button-prev"}},{children:e.map((function(e,t){return(0,i.jsxs)("a",r.__assign({href:e.link,target:"_blank"},{children:[(0,i.jsx)("span",r.__assign({className:"special-title"},{children:e.title})),(0,i.jsx)("img",{src:e.image_pc})]}),"_special_".concat(t))}))}))}))]}))},t}(a.default.Component);t.default=s},9049:function(e,t,n){"use strict";n(4119),n(7132),n(1680),Object.defineProperty(t,"__esModule",{value:!0});var r=n(5608),i=n(1085);n(8818),n(5361);var a=r.__importDefault(n(2023)),o=r.__importDefault(n(9368)),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.render=function(){var e=this.props.banners;return(0,i.jsx)("div",r.__assign({className:"homepage-banner"},{children:(0,i.jsx)(o.default,r.__assign({},{speed:600,loop:!0,autoplay:{delay:5e3},pagination:{el:".swiper-pagination",type:"bullets",clickable:!0},navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"}},{children:e.map((function(e,t){return(0,i.jsx)("div",{children:e.link?(0,i.jsx)("a",r.__assign({target:"_blank",href:e.link},{children:(0,i.jsx)("img",{src:e.image})})):(0,i.jsx)("span",{children:(0,i.jsx)("img",{src:e.image})})},"_banner_".concat(t))}))}))}))},t}(a.default.Component);t.default=s},9662:function(e,t,n){"use strict";n(4119),n(7132),Object.defineProperty(t,"__esModule",{value:!0});var r=n(5608),i=n(1085);n(8818),n(1948);var a=r.__importDefault(n(2023)),o=r.__importDefault(n(9368)),s=r.__importDefault(n(9884)),l=r.__importDefault(n(7526)),c=function(e){function t(t){var n=e.call(this,t)||this;return n.formatTime=function(e){if(!(e<=0)){var t=Math.floor(e/3600/24),n=Math.floor(e/60/60%24),a=Math.floor(e/60%60),o=Math.floor(e%60);return(0,i.jsxs)("div",r.__assign({className:"product-list-time"},{children:["距结束:",(0,i.jsx)("em",{children:t?t<10?"0"+t:t:"00"})," 天",(0,i.jsxs)("em",{children:[" ",n?n<10?"0"+n:n:"00"]})," 时",(0,i.jsxs)("em",{children:[" ",a||o?a<10?"0"+a:a:"0"]})," 分"]}))}},n.changeTime=function(){var e=n.props.remaining,t=n.formatTime(e);n.setState({endTime:t,remaining:e}),n.timer=setInterval((function(){(!(e-=1)||e<0)&&n.timer&&clearInterval(n.timer),0===Math.floor(e%60)&&(t=n.formatTime(e),n.setState({endTime:t,remaining:e}))}),1e3)},n.renderItem=function(e,t){var a=n.props.kind;return(0,i.jsxs)("div",{children:[(0,i.jsx)("a",r.__assign({className:"product-card-large",href:e.url,target:"_blank"},{children:(0,i.jsx)("img",{src:e.activity_image,alt:e.title,className:"product-cover-pic",onLoad:n.loaded})})),(0,i.jsx)(l.default,{item:e,kind:a})]},"_product_list_".concat(t))},n.loaded=function(){n.setState({loaded:!0})},n.state={remaining:0,loaded:!1},n}return r.__extends(t,e),t.prototype.componentDidMount=function(){this.timer&&clearInterval(this.timer),this.props.remaining&&this.changeTime()},t.prototype.render=function(){var e=this,t=this.props,n=t.items,a=t.title,l=t.kind,c=this.state.endTime;return n&&c?(0,i.jsxs)("div",r.__assign({className:(0,s.default)("product-wrap","product-list-".concat(l))},{children:[(0,i.jsxs)("div",r.__assign({className:"product-list-title"},{children:[a,c]})),(0,i.jsx)("div",r.__assign({className:"product-list-content"},{children:n.length>1?(0,i.jsx)(o.default,r.__assign({},{speed:600,loop:!0,autoplay:{delay:5e3},navigation:{nextEl:".product-list-sale .swiper-button-next",prevEl:".product-list-sale .swiper-button-prev"}},{children:n.map((function(t,n){return e.renderItem(t,n)}))})):this.renderItem(n[0],0)}))]})):null},t}(a.default.Component);t.default=c},8958:function(e){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},8899:function(e,t,n){var r=n(1926);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},5306:function(e,t,n){var r=n(9684),i=n(6162),a=n(3518);e.exports=function(e){return function(t,n,o){var s,l=r(t),c=i(l.length),u=a(o,c);if(e&&n!=n){for(;c>u;)if((s=l[u++])!=s)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}}},3828:function(e,t,n){var r=n(6675),i=n(6366),a=n(3801),o=n(6162),s=n(8337);e.exports=function(e,t){var n=1==e,l=2==e,c=3==e,u=4==e,d=6==e,p=5==e||d,f=t||s;return function(t,s,h){for(var m,g,v=a(t),y=i(v),b=r(s,h,3),w=o(y.length),E=0,x=n?f(t,w):l?f(t,0):void 0;w>E;E++)if((p||E in y)&&(g=b(m=y[E],E,v),e))if(n)x[E]=g;else if(g)switch(e){case 3:return!0;case 5:return m;case 6:return E;case 2:x.push(m)}else if(u)return!1;return d?-1:c||u?u:x}}},2925:function(e,t,n){var r=n(1926),i=n(1212),a=n(6917)("species");e.exports=function(e){var t;return i(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!i(t.prototype)||(t=void 0),r(t)&&null===(t=t[a])&&(t=void 0)),void 0===t?Array:t}},8337:function(e,t,n){var r=n(2925);e.exports=function(e,t){return new(r(e))(t)}},3923:function(e,t,n){"use strict";var r=n(8958),i=n(1926),a=n(4904),o=[].slice,s={};e.exports=Function.bind||function(e){var t=r(this),n=o.call(arguments,1),l=function(){var r=n.concat(o.call(arguments));return this instanceof l?function(e,t,n){if(!(t in s)){for(var r=[],i=0;iu;)for(var f,h=l(arguments[u++]),m=d?i(h).concat(d(h)):i(h),g=m.length,v=0;g>v;)f=m[v++],r&&!p.call(h,f)||(n[f]=h[f]);return n}:c},20:function(e,t,n){var r=n(8899),i=n(1287),a=n(7571),o=n(1523)("IE_PROTO"),s=function(){},l="prototype",c=function(){var e,t=n(799)("iframe"),r=a.length;for(t.style.display="none",n(7297).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("