(self.webpackchunk_n_e=self.webpackchunk_n_e||[]).push([[6230],{97751:function(e,t,n){"use strict";n.d(t,{z:function(){return y}});var r=n(4942),a=n(87462),c=n(67294),o=n(94184),l=n.n(o),s=n(98423),i=n(59844),u=function(e,t){var n={};for(var r in e)object.prototype.hasownproperty.call(e,r)&&t.indexof(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof object.getownpropertysymbols){var a=0;for(r=object.getownpropertysymbols(e);a=o?(0,c.jsx)(u.z,{children:a("components.nextpage")}):(0,c.jsx)(u.z,{children:(0,c.jsx)(c.default,{href:"/product/".concat(t.props.superid,"/").concat(t.props.id,"?page=").concat(number(t.props.currentpage)+1),children:a("components.nextpage")})})}return"page"===n?(0,c.jsx)(c.default,{href:"/product/".concat(t.props.superid,"/").concat(t.props.id,"?page=").concat(e),children:(0,c.jsx)("a",{children:e})}):r})),t.state={ismobile:g,loading:!1,openkeys:[]},t}return t=o,(n=[{key:"componentdidmount",value:function(){var e=this,t=this.props.superid;this.setstate({openkeys:[t]}),(0,g.ac)((function(t){e.setstate({ismobile:!!t})}))}},{key:"componentdidupdate",value:function(e,t,n){var r=this.props.superid;r&&e.superid!==r&&this.setstate({openkeys:[r]})}},{key:"render",value:function(){var e=this,t=this.props,n=t.productmenu,r=t.supername,a=t.name,o=t.superid,l=t.data,u=t.totalnum,g=t.currentpage,z=t.pagesize,j=t.t,_=this.state.openkeys;return(0,c.jsxs)("div",{classname:"templates-wrapper",style:{backgroundcolor:"#fff"},children:[(0,c.jsx)(x.z,{title:"".concat("\u5168\u90e8"===a?r:a," - \u5357\u4eac\u845b\u5357\u5b9e\u4e1a\u6709\u9650\u516c\u53f8")}),(0,c.jsxs)("div",{classname:e().product_content,children:[(0,c.jsx)("div",{classname:"".concat(w().banner_content," ").concat(e().product_banner),children:(0,c.jsxs)("div",{classname:"".concat(w().home_page),style:{width:"100%"},children:[(0,c.jsx)("h1",{classname:w().banner_miantitle_narrow,children:j("menu.products")}),(0,c.jsxs)(d.z,{classname:e().product_breadcrumb,children:[(0,c.jsx)(d.z.item,{children:(0,c.jsx)(c.default,{href:"/",classname:e().product_breadcrumb_text,children:j("menu.home")})}),(0,c.jsx)(d.z.item,{classname:e().product_breadcrumb_text,children:j("menu.products")}),(0,c.jsx)(d.z.item,{children:(0,c.jsx)(c.default,{href:"/product/".concat(o,"/all"),classname:e().product_breadcrumb_text,children:r})}),"\u5168\u90e8"!==a&&(0,c.jsx)(d.z.item,{classname:e().product_breadcrumb_text,children:a})]})]})}),(0,c.jsx)("div",{classname:"".concat(w().home_page_wrapper," ").concat(e().product_list),children:(0,c.jsx)("div",{classname:"".concat(w().home_page_product),children:(0,c.jsxs)(p.z,{gutter:[32,32],children:[(0,c.jsx)(m.z,{xs:24,sm:8,md:8,lg:6,xl:6,children:(0,c.jsx)("div",{classname:n().leftmenu_product,children:(0,c.jsx)(i.z,{selectedkeys:["".concat(o,"_").concat(a)],openkeys:_,onopenchange:this.onopenchange,mode:"inline",children:n.map((function(e){return 0===e.catechildren.length?(0,c.jsx)(i.z.item,{classname:o.tostring()===e.id.tostring()?n().custom_title_selected:n().custom_title,style:{border:"1px solid #fff"},children:(0,c.jsx)(c.default,{href:"/product/".concat(e.id,"/all"),children:e.catename})},e.id):(0,c.jsx)(v,{style:{border:"1px solid #fff",position:"relative"},classname:o.tostring()===e.id.tostring()?n().custom_submenu_selected:n().custom_submenu,title:(0,c.jsx)("div",{classname:o.tostring()===e.id.tostring()?n().custom_title_selected_:n().custom_title,children:(0,c.jsx)(c.default,{href:"/product/".concat(e.id,"/all"),children:(0,c.jsx)("a",{style:{position:"relative"},children:e.catename})})}),children:e.catechildren.map((function(t){return(0,c.jsx)(i.z.item,{style:{userselect:"none"},classname:n().custom_title_child,children:(0,c.jsx)(c.default,{href:t.href?t.href:"",children:t.name})},"".concat(e.id,"_").concat(t.name))}))},e.id)}))})})}),(0,c.jsxs)(m.z,{xs:24,sm:16,md:16,lg:18,xl:18,classname:e().product_card,children:[(0,c.jsx)(p.z,{gutter:[24,24],children:0!==l.length?l.map((function(t,n){return(0,c.jsx)(m.z,{xs:24,sm:12,md:12,lg:8,xl:8,children:(0,c.jsx)(c.default,{href:"/detail/".concat(t.id),passhref:!0,children:(0,c.jsx)("a",{target:"_blank",children:(0,c.jsx)(f.z,{loading:e.state.loading,active:!0,children:(0,c.jsxs)(s.z,{hoverable:!0,bordered:!1,classname:e().rightcard_product,cover:(0,c.jsx)("img",{src:t.coverphotopath,alt:t.proname}),children:[(0,c.jsx)(u,{title:t.proname,description:t.model}),(0,c.jsx)("div",{classname:e().rightcard_mask,children:(0,c.jsx)("div",{classname:e().rightcard_mask_inter,children:(0,c.jsxs)("div",{direction:"vertical",align:"center",children:[(0,c.jsxs)("div",{children:[(0,c.jsx)("div",{children:t.proname}),(0,c.jsx)("div",{children:t.model})]}),(0,c.jsx)(h,{ellipsis:{rows:3,expandable:!1},style:{color:"#fff",margintop:23},children:t.content}),(0,c.jsx)("div",{classname:e().rightcard_mask_more,children:j("products.viewdetails")})]})})})]})})})})},n)})):(0,c.jsx)(h.z,{image:h.z.presented_image_simple,style:{margin:"auto",margintop:100,marginbottom:100}})}),(0,c.jsx)(p.z,{justify:"end",style:{margintop:20},children:(0,c.jsx)(v.z,{hideonsinglepage:!0,showsizechanger:!1,total:u,current:g,pagesize:z,showtotal:function(e){return"".concat(j("components.total")," ").concat(e," ").concat(j("components.items"),"\uff0c").concat(j("components.perpage")," ").concat(z," ").concat(j("components.items"))},showquickjumper:!1,itemrender:this.itemrender})})]})]})})}),(0,c.jsx)(y.z,{}),(0,c.jsx)(b.z,{id:"footer",ismobile:g},"footer")]})]})}}])&&t(t.prototype,n),r&&t(t,r),o}(o.component),l=!0;function f(e,t){return j.apply(this,arguments)}function j(){return(j=z(a().mark((function e(t,n){var r,c,o,l,s,i,u,d,p,m,f,h,v,x,g,b,y,z,n,j,e,_;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r={language:encodeuri("en"===n?"\u82f1\u6587":"\u4e2d\u6587")},c=(0,o.gr)(p.z.producturl+"query_all_super_cate",r),e.next=4,new promise((function(e){return settimeout(e,0)}));case 4:return e.next=6,fetch(c,{method:"get",headers:{"content-type":"application/json"}});case 6:return o=e.sent,e.next=9,o.json();case 9:if(l=e.sent,s="",i="",u=[],"0000"!==l.code){e.next=75;break}"all"===t.id&&(i="\u5168\u90e8"),d=!0,p=!1,m=void 0,e.prev=14,f=l.result[symbol.iterator]();case 16:if(d=(h=f.next()).done){e.next=61;break}(v=h.value).id.tostring()===t.superid&&(s=v.catename),(x=object.create(null)).id=v.id,x.catename=v.catename,x.catesort=v.catesort,g=[],b=!0,y=!1,z=void 0,e.prev=25,n=v.newcategory[symbol.iterator]();case 27:if(b=(j=n.next()).done){e.next=41;break}if(e=j.value,(_=object.create(null)).id=e.id,_.href="/product/".concat(x.id,"/").concat(e.id),_.name=e.category,_.catesort=e.catesort,"#"!==_.name.substr(0,1)){e.next=36;break}return e.abrupt("continue",38);case 36:t.id===_.id.tostring()&&(i=_.name),g.push(_);case 38:b=!0,e.next=27;break;case 41:e.next=47;break;case 43:e.prev=43,e.t0=e.catch(25),y=!0,z=e.t0;case 47:e.prev=47,e.prev=48,b||null==n.return||n.return();case 50:if(e.prev=50,!y){e.next=53;break}throw z;case 53:return e.finish(50);case 54:return e.finish(47);case 55:g.sort((function(e,t){return t.catesort-e.catesort})),x.catechildren=g,u.push(x);case 58:d=!0,e.next=16;break;case 61:e.next=67;break;case 63:e.prev=63,e.t1=e.catch(14),p=!0,m=e.t1;case 67:e.prev=67,e.prev=68,d||null==f.return||f.return();case 70:if(e.prev=70,!p){e.next=73;break}throw m;case 73:return e.finish(70);case 74:return e.finish(67);case 75:return u.sort((function(e,t){return t.catesort-e.catesort})),e.abrupt("return",{productmenu:u,supername:s,name:i});case 77:case"end":return e.stop()}}),e,null,[[14,63,67,75],[25,43,47,55],[48,,50,54],[68,,70,74]])})))).apply(this,arguments)}function x(e,t){return q.apply(this,arguments)}function q(){return(q=z(a().mark((function e(t,n){var r,c,o,l,s,i,u,d,p,m,f,h,v,x;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r={cateid:t.id,superid:t.superid,limit:t.pagesize,offset:t.pagesize*(t.currentpage-1),sortcolumnname:"sort",sortordertype:"desc",pushflag:!0,language:encodeuri("en"===n?"\u82f1\u6587":"\u4e2d\u6587")},"all"===t.id&&(delete r.cateid,delete r.sortcolumnname,delete r.sortordertype),c=(0,o.gr)(p.z.producturl+"querybycondition",r),e.next=5,new promise((function(e){return settimeout(e,0)}));case 5:return e.next=7,fetch(c,{method:"get",headers:{"content-type":"application/json"}});case 7:return o=e.sent,e.next=10,o.json();case 10:if(l=e.sent,s=[],i=0,"0000"!==l.code){e.next=31;break}for(u=!0,d=!1,p=void 0,e.prev=14,m=l.result[symbol.iterator]();!(u=(f=m.next()).done);u=!0)h=f.value,(v=object.create(null)).id=h.id,v.proname=h.proname,v.model=h.model,v.content=h.content,x=json.parse(h.image),v.coverphotopath="".concat(p.z.fileresourceurl).concat(x["\u5c01\u9762\u56fe\u7247"]),s.push(v);e.next=22;break;case 18:e.prev=18,e.t0=e.catch(14),d=!0,p=e.t0;case 22:e.prev=22,e.prev=23,u||null==m.return||m.return();case 25:if(e.prev=25,!d){e.next=28;break}throw p;case 28:return e.finish(25);case 29:return e.finish(22);case 30:i=l.totalnum;case 31:return e.abrupt("return",{data:s,totalnum:i});case 32:case"end":return e.stop()}}),e,null,[[14,18,22,30],[23,,25,29]])})))).apply(this,arguments)}t.default=(0,s.zh)("common")(d)}},function(e){e.o(0,[9774,3265,8492,7961,6673,9027,2888,179],(function(){return t=54558,e(e.s=t);var t}));var t=e.o();_n_e=t}]);