"use strict";(self.webpackChunk_client_app_store=self.webpackChunk_client_app_store||[]).push([[8255],{16722:function(t,e,r){r.d(e,{Z:function(){return i}});var n=function(){var t=this,e=t._self._c;return e("div",{staticClass:"tabs_stage"},t._l(t.items,function(r){return e("a",{key:r.value,staticClass:"tabs_item",class:{tabs_item_Active:r.value===t.value},attrs:{href:"javascript:"},on:{click:function(e){return t.$emit("input",r.value)}}},[t._v("\n    "+t._s(r.name)+"\n  ")])}),0)};n._withStripped=!0;var i=(0,r(6080).Z)({props:{items:{type:Array,required:!0},value:{type:null,required:!0}}},n,[],!1,null,"00d029ec",null).exports},29397:function(t,e,r){r.d(e,{Z:function(){return c}});var n=function(){var t=this;return(0,t._self._c)("ListItemImpl",{attrs:{logo:t.item.img_url,name:t.item.head,desc:t.item.subhead,button:t.btn},on:{click:t.onClick,"btn-click":function(e){return t.$emit("btn-click",e)}}})};n._withStripped=!0;var i=r(11379),a={components:{ListItemImpl:r(48365).Z},mixins:[i.Z]},c=(0,r(6080).Z)(a,n,[],!1,null,null,null).exports},10380:function(t,e,r){r.r(e),r.d(e,{default:function(){return s}});var n=function(){var t=this,e=t._self._c;return e("div",{staticClass:"hardware_stage",class:{hardware_Web:t.isWeb}},[e("header",{staticClass:"head"},[e("Tabs",{attrs:{items:t.categoryList,value:t.categoryId},on:{input:t.onSwitchCategory}})],1),t._v(" "),e("section",{staticClass:"cnt"},[t._l(t.hardwareList,function(r){return e("HardwareListItem",{key:r.good_id,staticClass:"item",attrs:{item:r},nativeOn:{click:function(e){return t.onClickItem(r)}}})}),t._v(" "),t._l(10,function(t){return e("div",{key:"placeholder-".concat(t),staticClass:"placeholder"})})],2)])};n._withStripped=!0;var i=r(16722),a=r(29397),c={components:{Tabs:i.Z,HardwareListItem:a.Z},computed:{isWeb:function(){return this.$clientEnv.web},state:function(){return this.$ctrl.home.state},data:function(){return this.state.data},categoryId:function(){return Number(this.$route.query.id)||this.data.hardware_list[0].category_id},categoryList:function(){return this.data.hardware_list.map(function(t){return{name:t.category_name,value:t.category_id}})},hardwareList:function(){var t=this;return(this.data.hardware_list.find(function(e){return e.category_id===t.categoryId})||this.data.hardware_list[0]).hw_item}},methods:{onSwitchCategory:function(t){t!==this.categoryId&&(this.reportStat("device_list_click"),this.$router.replace({query:{id:t}}))},onClickItem:function(t){this.reportStat("device_click",{strid:t.good_id})},reportStat:function(t,e){this.$reportStat(function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),n.forEach(function(e){var n,i;n=t,i=r[e],e in n?Object.defineProperty(n,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[e]=i})}return t}({key:this.$clientEnv.statKey,item:t},e))}}},s=(0,r(6080).Z)(c,n,[],!1,null,"9890d418",null).exports}}]);