bztang-admin/addons/yun_shop/static/app/js/chunk-883c9c20.2d36382c.js

1 line
9.2 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-883c9c20"],{"253a":function(t,e,a){t.exports=a.p+"static/app/img/img_default.a608a24a.png"},"2a2a":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"category"}},[a("c-title",{attrs:{hide:!1,text:(t.shoplang?t.shoplang:"微店")+"分类"}}),a("div",{ref:"menucontent",attrs:{id:"category-content"}},[t.err?a("div",{attrs:{id:"err"}},[t._v("未检测到子分类数据!")]):t._e(),t.err?t._e():a("c-carcontent",{attrs:{list:t.contentlist}})],1),a("div",{ref:"menu",attrs:{id:"rootlists"}},[t.list?a("ul",{attrs:{id:"rootList"}},[t._e(),t._e(),t._l(t.list,(function(e,i){return a("li",{key:i,class:{active:t.active==i},on:{click:function(a){return t.tabsa(i,e)}}},[a("span",[t._v(t._s(e.name))])])})),a("div",{staticStyle:{height:"3.125rem"}})],2):t._e()]),a("div",{staticStyle:{height:"2.8125rem"}})],1)},r=[],o=a("6968"),n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{attrs:{id:"carcontent"}},[t.list.goo&&t.list.set.cat_adv_img?i("div",{staticClass:"branch"},[i("a",{attrs:{href:t._f("href_filters")(t.list.set.cat_adv_url)}},[i("img",{attrs:{src:t.list.set.cat_adv_img}})])]):t._e(),t.list.goo?i("div",{staticClass:"sote"},[i("ul",t._l(t.list,(function(e,r){return i("li",{key:r},[i("router-link",{attrs:{to:t.fun.getUrl("micro_shop_share_carelist",{id:e.id,fromHome:1})}},[e.thumb?i("div",{staticClass:"thumb"},[i("img",{attrs:{src:e.thumb}})]):t._e(),e.thumb?t._e():i("div",{staticClass:"thumb"},[i("img",{attrs:{src:a("253a")}})]),i("span",[t._v(t._s(e.name))])])],1)})),0)]):t._e(),t._l(t.list.data,(function(e,r){return[3==t.list.set.cat_level?[e.adv_img?i("div",{key:r,staticClass:"branch"},[i("a",{attrs:{href:t._f("href_filters")(e.adv_url)}},[i("img",{attrs:{src:e.adv_img}})])]):t._e(),t.list.data?i("div",{key:r,staticClass:"sote"},[e.name?i("h3",{},[i("router-link",{attrs:{to:t.fun.getUrl("micro_shop_share_carelist",{id:e.id,fromHome:1})}},[t._v(t._s(e.name))])],1):t._e(),e.has_many_children.length>0?i("ul",t._l(e.has_many_children,(function(e,r){return i("li",{key:r},[i("router-link",{attrs:{to:t.fun.getUrl("micro_shop_share_carelist",{id:e.id,fromHome:1})}},[e.thumb?i("div",{staticClass:"thumb"},[i("img",{attrs:{src:e.thumb}})]):t._e(),e.thumb?t._e():i("div",{staticClass:"thumb"},[i("img",{attrs:{src:a("253a")}})]),i("span",[t._v(t._s(e.name))])])],1)})),0):t._e()]):t._e()]:t._e()]})),t.list.goo?t._e():[t.list.set?[2==t.list.set.cat_level&&t.$store.state.category.adv_img?i("div",{staticClass:"branch"},[i("a",{attrs:{href:t._f("href_filters")(t.$store.state.category.adv_url)}},[i("img",{attrs:{src:t.$store.state.category.adv_img}})])]):t._e(),2==t.list.set.cat_level?i("div",{staticClass:"sote"},[i("ul",t._l(t.list.data,(function(e,r){return i("li",{key:r},[i("router-link",{attrs:{to:t.fun.getUrl("micro_shop_share_carelist",{id:e.id,fromHome:1})}},[e.thumb?i("div",{staticClass:"thumb"},[i("img",{attrs:{src:e.thumb}})]):t._e(),e.thumb?t._e():i("div",{staticClass:"thumb"},[i("img",{attrs:{src:a("253a")}})]),i("span",[t._v(t._s(e.name))])])],1)})),0)]):t._e()]:t._e()]],2)},s=[],c={props:["list"],data:function(){return{allLoaded:!1,topStatus:"",advimg:window.localStorage.adv_img}},methods:{}},l=c,d=(a("8ac7"),a("2877")),f=Object(d["a"])(l,n,s,!1,null,"254b0405",null),h=f.exports,g=a("5880"),b={data:function(){return{active:0,active2:!0,allLoaded:!1,topStatus:"",err:"",turl:"/category",arg:{index:10,item:"pinch"},list:[],contentlist:{},shoplang:""}},computed:Object(g["mapState"])(["category","blurst"]),methods:{allList:function(){this.active2=!0,this.active=9999,this.getContentlist2()},tabsa:function(t,e){this.$store.commit("setAdvimg",e),this.active=t,this.active2=!1,this.getContentlist(e.id)},bpfun:function(){this.$router.push(this.fun.getUrl("brand"))},getList:function(){var t=this;$http.get("plugin.micro.frontend.controllers.MicroShop.CategoryByShare.getCategory").then((function(e){if(1==e.result){if(t.list=e.data.data,t.shoplang=e.data.lang,t.fun.isTextEmpty(e.data)||t.fun.isTextEmpty(e.data.data)||t.fun.isTextEmpty(e.data.data[0]))return;t.tabsa(0,e.data.data[0])}}),(function(t){}))},getContentlist:function(t){var e=this,a={parent_id:t};$http.get("plugin.micro.frontend.controllers.MicroShop.CategoryByShare.getChildrenCategory",a).then((function(t){1==t.result?(e.err=!1,e.contentlist={data:t.data.data,tjfl:!1,set:t.data.set}):e.err=!0}))},getContentlist2:function(){var t=this;$http.get("goods.category.category-home",{},"loading").then((function(e){1===e.result?(t.err=!1,e.data.recommend.goo=!0,t.contentlist=e.data.recommend,t.contentlist.tjfl=!0,t.contentlist.set=e.data.set):t.err=!0}))},_initScroll:function(t){}},activated:function(){var t=JSON.parse(localStorage.getItem("mailLanguage"));t.micro?this.fun.setWXTitle("".concat(t.micro.title,"分类")):this.fun.setWXTitle("微店分类")},created:function(){var t=JSON.parse(localStorage.getItem("mailLanguage"));t.micro?this.fun.setWXTitle("".concat(t.micro.title,"分类")):this.fun.setWXTitle("微店分类"),this.getList()},components:{cTitle:o["a"],cCarcontent:h}},m=b,u=m,v=(a("f01d"),Object(d["a"])(u,i,r,!1,null,"49cb2f18",null));e["default"]=v.exports},"4be9":function(t,e,a){var i=a("b6db");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=a("499e").default;r("99827170",i,!0,{sourceMap:!1,shadowMode:!1})},"8ac7":function(t,e,a){"use strict";a("4be9")},"9a09":function(t,e,a){var i=a("be9c");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=a("499e").default;r("58391126",i,!0,{sourceMap:!1,shadowMode:!1})},b6db:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,"#carcontent[data-v-254b0405]{background:#eee;color:#686868;margin-bottom:3.75rem;margin-top:3%}#carcontent .branch[data-v-254b0405]{margin:0 3%}#carcontent .sote[data-v-254b0405]{clear:both;overflow:hidden;margin-bottom:.625rem}#carcontent h3[data-v-254b0405]{text-align:left;font-size:12px;margin-left:3%;margin-bottom:0;padding:.3125rem 0 0;font-weight:700;display:block;clear:both;color:#999}#carcontent h3 a[data-v-254b0405]{color:#333}#carcontent .fa-bookmark[data-v-254b0405]:before{margin-right:.375rem}#carcontent a span[data-v-254b0405]{height:1.875rem;line-height:1.875rem;color:#686868;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:-webkit-center;width:100%;display:block}#carcontent .branch img[data-v-254b0405]{width:100%}#carcontent .thumb[data-v-254b0405]{line-height:22.5vw;width:100%;height:0;padding-bottom:100%;position:relative}#carcontent .thumb[data-v-254b0405],#carcontent ul[data-v-254b0405]{overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box}#carcontent ul[data-v-254b0405]{clear:both;width:94%;padding:4% 0 0 4%;margin:3% 3% 0;background:#fff}#carcontent li[data-v-254b0405]{width:29%;text-align:center;float:left;margin-bottom:.625rem;margin-right:4%;font-size:12px;background:#fff}#carcontent li img[data-v-254b0405]{width:98%;right:0;height:98%;position:absolute}#carcontent li[data-v-254b0405]:nth-child(3n){margin-right:0}",""]),t.exports=e},be9c:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,"#category[data-v-49cb2f18]{background:#fff;height:99vh}#category .m_header[data-v-49cb2f18]{width:100%;height:2.8125rem;padding-right:.9375rem;-webkit-box-sizing:border-box;box-sizing:border-box;background:#fff;line-height:2.8125rem;font-size:18px}#category .m_header span[data-v-49cb2f18]{display:inline-block;width:1rem;height:1.5rem;float:left;margin-left:.625rem;font-size:30px}#category .m_header i[data-v-49cb2f18]{font-size:16px;float:right;font-style:normal}#category .search-box[data-v-49cb2f18]{padding:.375rem 2rem;background:#fff;border-bottom:.0625rem solid #f4f4f4}#category .search-box .search-content[data-v-49cb2f18]{width:100%;height:4.2vh;line-height:4.2vh;background:#f5f5f5;padding:0 .625rem;text-align:left;border-radius:.875rem;color:#8c8c8c}#category #rootlists[data-v-49cb2f18]{height:100vh;width:22%;border-right:.0625rem solid #f4f4f4;float:left;background:#fff;margin-top:.25rem}#category #category-content[data-v-49cb2f18]{float:right;height:100vh;overflow:scroll;width:78%;background:#fff}#category #category-content #carcontent[data-v-49cb2f18]{word-wrap:break-word;background:#fff}#category .bottom[data-v-49cb2f18]{width:100%;-webkit-box-sizing:border-box;box-sizing:border-box;padding:.9375rem;border-top:.0625rem solid #eaeaea;position:fixed;bottom:0;background:#fff;font-size:18px;text-align:left;line-height:2.5rem}#category .bottom b[data-v-49cb2f18]{color:#f37385}#category .bottom a[data-v-49cb2f18]{color:#000}#category .bottom span[data-v-49cb2f18]{width:8.125rem;text-align:center;height:2.5rem;color:#fff;background:#f15353;float:right;display:inline-block}#category .bottom span a[data-v-49cb2f18]{font-size:16px;color:#fff}#rootList[data-v-49cb2f18]{width:101%;background:#fff;font-size:12px}#rootList .active[data-v-49cb2f18]{background:#fff;color:#000}#rootList .active span[data-v-49cb2f18]{display:inline-block;border-left:2px solid #fb4a4a;width:100%;line-height:1rem}#rootList li[data-v-49cb2f18]{padding:.9375rem 0;color:#999;font-size:.75rem}#rootList li span[data-v-49cb2f18]{border-left:2px solid #fff}",""]),t.exports=e},f01d:function(t,e,a){"use strict";a("9a09")}}]);