System.register(["./index-legacy.a084919e.js"],(function(t,e){"use strict";var a,i,o,d,n,r=document.createElement("style");return r.textContent=".other[data-v-da6dabbd]{background:var(--color-white)}.other .header[data-v-da6dabbd]{position:fixed;left:0;top:50px;width:100%;height:60px;color:var(--color-black);background:var(--color-white);z-index:1}.header .header-content[data-v-da6dabbd]{width:960px;height:100%;display:flex;margin:0 auto;align-items:center;justify-content:space-between}.header .el-button[data-v-da6dabbd]{width:68px;height:25px;font-size:12px}.header .left[data-v-da6dabbd]{font-size:12px;line-height:17px}.header .left b[data-v-da6dabbd]{font-size:22px;line-height:30px;margin-right:14px}.other .bottom[data-v-da6dabbd]{padding-top:110px}.other .bottom.margin[data-v-da6dabbd]{padding-top:160px}\n",document.head.appendChild(r),{setters:[function(t){a=t.n,i=t.W,o=t.c,d=t.F,n=t.O}],execute:function(){var e={name:"other",components:{Waterfall:i},data:function(){return{loading:!1,products:[],limit:5,page:1,totalPage:1}},mounted:function(){this.getProducts()},methods:{loadData:function(t){this.getProducts({page:t,newload:!1})},getProducts:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=e.page,i=void 0===a?this.page:a,o=e.columnSize,d=void 0===o?this.columnSize:o,n=e.newload,r=void 0===n||n;this.loading=!0,this.page=i;var s=this.$t("common.failure");this.$axios.get("/api/index/product_list",{params:{type:this.types,limit:this.limit,page:i,go:d}}).then((function(e){var a=e.data,i=a.code,o=a.msg,d=void 0===o?s:o,n=a.data,l=void 0===n?{}:n,c=l.items,h=void 0===c?[]:c,u=l.totalPage;0==i?(t.products=r?h:refillData(t.products,h),t.totalPage=u):t.$message.error(d)})).catch((function(){t.$message.error(s)})).finally((function(){t.loading=!1}))}},watch:{columnSize:function(t,e){this.getProducts({page:this.page,columnSize:t})},filterType:function(){this.getProducts({newload:!0})}},computed:{columnSize:function(){return this.$store.state.columnSize},types:function(){return this.filterType?o[d.index][this.filterType]?[d.mode,o[d.mode][this.filterType]].join(","):[d.mode].join(","):this.$store.getters.strTypes},filterType:function(){return this.$route.query.filter},filterText:function(){return this.filterType?n.filterTexts[this.filterType]:""}}};t("default",a(e,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"other"},[t.filterType?e("div",{staticClass:"header",attrs:{id:"scrollHeader"}},[e("div",{staticClass:"header-content"},[e("div",{staticClass:"left v-center"},[e("b",[t._v(t._s(t.$t("header.navs.nav3")))]),t._v(" "+t._s(t.$t("".concat(t.filterText)))+" ")]),e("div",{staticClass:"right"},[e("router-link",{attrs:{to:{path:"/other",query:{filter:"all"}}}},[e("el-button",{attrs:{type:"primary",round:""}},[t._v(t._s(t.$t("common.viewAll")))])],1)],1)])]):t._e(),e("div",{class:["bottom",t.filterType?"margin":""]},[t.products.length?e("Waterfall",{attrs:{page:t.page,totalPage:t.totalPage,loading:t.loading,data:t.products},on:{loadData:t.loadData}}):t._e()],1)])}),[],!1,null,"da6dabbd",null,null).exports)}}}));
