1 |
- import{n as o,W as _,d as l,F as i}from"./index.4fdc1c7a.js";const C={name:"trade-company"};var p=function(){var t=this;return t._self._c,t._m(0)},u=[function(){var s=this,t=s._self._c;return t("div",{staticClass:"trade-company"},[t("ul",[t("li",{staticClass:"blue company-item"},[t("div",{staticClass:"top"},[t("div",{staticClass:"item-content"},[t("div",{staticClass:"title"},[s._v("\uD654\uC7A5\uD488 \uAE30\uCD08 \uC6A9\uAE30 \uC804\uBB38 \uC0DD\uC0B0")]),t("div",{staticClass:"name"},[s._v("\u4E0A\u6D77\u827A\u8482\u5316\u5986\u54C1\u6709\u9650\u516C\u53F8")])])]),t("div",{staticClass:"bottom"},[t("div",{staticClass:"selection"}),t("div",{staticClass:"type"},[s._v("PARK BEOM SOO")])])]),t("li",{staticClass:"red company-item"},[t("div",{staticClass:"top"},[t("div",{staticClass:"item-content"},[t("div",{staticClass:"title"},[s._v("\uD654\uC7A5\uD488 \uAE30\uCD08 \uC6A9\uAE30 \uC804\uBB38 \uC0DD\uC0B0")]),t("div",{staticClass:"name"},[s._v("\u4E0A\u6D77\u827A\u8482\u5316\u5986\u54C1\u6709\u9650\u516C\u53F8")])])]),t("div",{staticClass:"bottom"},[t("div",{staticClass:"selection"}),t("div",{staticClass:"type"},[s._v("PARK BEOM SOO")])])]),t("li",{staticClass:"yellow company-item"},[t("div",{staticClass:"top"},[t("div",{staticClass:"item-content"},[t("div",{staticClass:"title"},[s._v("\uD654\uC7A5\uD488 \uAE30\uCD08 \uC6A9\uAE30 \uC804\uBB38 \uC0DD\uC0B0")]),t("div",{staticClass:"name"},[s._v("\u4E0A\u6D77\u827A\u8482\u5316\u5986\u54C1\u6709\u9650\u516C\u53F8")])])]),t("div",{staticClass:"bottom"},[t("div",{staticClass:"selection"}),t("div",{staticClass:"type"},[s._v("PARK BEOM SOO")])])]),t("li",{staticClass:"green company-item"},[t("div",{staticClass:"top"},[t("div",{staticClass:"item-content"},[t("div",{staticClass:"title"},[s._v("\uD654\uC7A5\uD488 \uAE30\uCD08 \uC6A9\uAE30 \uC804\uBB38 \uC0DD\uC0B0")]),t("div",{staticClass:"name"},[s._v("\u4E0A\u6D77\u827A\u8482\u5316\u5986\u54C1\u6709\u9650\u516C\u53F8")])])]),t("div",{staticClass:"bottom"},[t("div",{staticClass:"selection"}),t("div",{staticClass:"type"},[s._v("PARK BEOM SOO")])])]),t("li",{staticClass:"blue company-item"},[t("div",{staticClass:"top"},[t("div",{staticClass:"item-content"},[t("div",{staticClass:"title"},[s._v("\uD654\uC7A5\uD488 \uAE30\uCD08 \uC6A9\uAE30 \uC804\uBB38 \uC0DD\uC0B0")]),t("div",{staticClass:"name"},[s._v("\u4E0A\u6D77\u827A\u8482\u5316\u5986\u54C1\u6709\u9650\u516C\u53F8")])])]),t("div",{staticClass:"bottom"},[t("div",{staticClass:"selection"}),t("div",{staticClass:"type"},[s._v("PARK BEOM SOO")])])]),t("li",{staticClass:"red company-item"},[t("div",{staticClass:"top"},[t("div",{staticClass:"item-content"},[t("div",{staticClass:"title"},[s._v("\uD654\uC7A5\uD488 \uAE30\uCD08 \uC6A9\uAE30 \uC804\uBB38 \uC0DD\uC0B0")]),t("div",{staticClass:"name"},[s._v("\u4E0A\u6D77\u827A\u8482\u5316\u5986\u54C1\u6709\u9650\u516C\u53F8")])])]),t("div",{staticClass:"bottom"},[t("div",{staticClass:"selection"}),t("div",{staticClass:"type"},[s._v("PARK BEOM SOO")])])]),t("li",{staticClass:"yellow company-item"},[t("div",{staticClass:"top"},[t("div",{staticClass:"item-content"},[t("div",{staticClass:"title"},[s._v("\uD654\uC7A5\uD488 \uAE30\uCD08 \uC6A9\uAE30 \uC804\uBB38 \uC0DD\uC0B0")]),t("div",{staticClass:"name"},[s._v("\u4E0A\u6D77\u827A\u8482\u5316\u5986\u54C1\u6709\u9650\u516C\u53F8")])])]),t("div",{staticClass:"bottom"},[t("div",{staticClass:"selection"}),t("div",{staticClass:"type"},[s._v("PARK BEOM SOO")])])]),t("li",{staticClass:"blue company-item"},[t("div",{staticClass:"top"},[t("div",{staticClass:"item-content"},[t("div",{staticClass:"title"},[s._v("\uD654\uC7A5\uD488 \uAE30\uCD08 \uC6A9\uAE30 \uC804\uBB38 \uC0DD\uC0B0")]),t("div",{staticClass:"name"},[s._v("\u4E0A\u6D77\u827A\u8482\u5316\u5986\u54C1\u6709\u9650\u516C\u53F8")])])]),t("div",{staticClass:"bottom"},[t("div",{staticClass:"selection"}),t("div",{staticClass:"type"},[s._v("PARK BEOM SOO")])])])])])}],y=o(C,p,u,!1,null,"a62edd46",null,null);const h=y.exports;const f={name:"trade",components:{Waterfall:_,CompanyList:h},data(){return{showCompany:!1,loading:!1,products:[],limit:10,page:1,totalPage:1}},mounted(){this.getProducts()},methods:{toggleShowCompany(){this.showCompany=!this.showCompany},loadData(s){this.getProducts({page:s,newload:!1})},getProducts({page:s=this.page,columnSize:t=this.columnSize,newload:a=!0}={}){this.loading=!0,this.page=s;const c=this.$t("common.failure");this.$axios.get("/api/index/product_list",{params:{type:this.types,limit:this.limit,page:s,go:t}}).then(n=>{const{code:d,msg:r=c,data:v={}}=n.data,{items:e=[],totalPage:m}=v;d==0?(this.products=a?e:refillData(this.products,e),this.totalPage=m):this.$message.error(r)}).finally(()=>{this.loading=!1})}},watch:{columnSize(s,t){this.getProducts({page:this.page,columnSize:s})},filterType(){this.getProducts({newload:!0})}},computed:{columnSize(){return this.$store.state.columnSize},types(){return this.filterType?l[i.trade][this.filterType]?[i.trade,l[i.trade][this.filterType]].join(","):[i.trade].join(","):this.$store.getters.strTypes},filterType(){return this.$route.query.filter},nameKey(){return this.$store.state.nameKey},filter(){let t=JSON.parse(sessionStorage.getItem("conf_trade_filters")).find(a=>a.id==this.filterType);return t=t&&t[this.nameKey]||this.$t("common.viewAll"),t}}};var g=function(){var t=this,a=t._self._c;return a("div",{staticClass:"trade"},[t.filterType&&t.filter?a("div",{staticClass:"header",attrs:{id:"scrollHeader"}},[a("div",{staticClass:"header-content"},[a("div",{staticClass:"left v-center"},[a("b",[t._v(t._s(t.filter))])]),a("div",{staticClass:"right"},[a("span",{on:{click:t.toggleShowCompany}},[t._v(t._s(t.showCompany?t.$t("trade.showPicture"):t.$t("trade.showCompany")))]),a("router-link",{attrs:{to:{path:"/trade",query:{filter:"all"}}}},[a("el-button",{attrs:{type:"primary",round:""}},[t._v(t._s(t.$t("common.viewAll")))])],1)],1)])]):t._e(),a("div",{staticClass:"bottom"},[t.showCompany?a("CompanyList"):[t.products.length?a("Waterfall",{attrs:{page:t.page,totalPage:t.totalPage,loading:t.loading,data:t.products},on:{loadData:t.loadData}}):t._e()]],2)])},O=[],S=o(f,g,O,!1,null,"66b19657",null,null);const b=S.exports;export{b as default};
|