bztang-admin/addons/yun_shop/static/app/js/chunk-883c9c20.0d7faf00.js

1 line
9.2 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-883c9c20"],{"253a":function(t,a,e){t.exports=e.p+"static/app/img/img_default.a608a24a.png"},"2a2a":function(t,a,e){"use strict";e.r(a);var i=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{attrs:{id:"category"}},[e("c-title",{attrs:{hide:!1,text:(t.shoplang?t.shoplang:"微店")+"分类"}}),e("div",{ref:"menucontent",attrs:{id:"category-content"}},[t.err?e("div",{attrs:{id:"err"}},[t._v("未检测到子分类数据!")]):t._e(),t.err?t._e():e("c-carcontent",{attrs:{list:t.contentlist}})],1),e("div",{ref:"menu",attrs:{id:"rootlists"}},[t.list?e("ul",{attrs:{id:"rootList"}},[t._e(),t._e(),t._l(t.list,(function(a,i){return e("li",{key:i,class:{active:t.active==i},on:{click:function(e){return t.tabsa(i,a)}}},[e("span",[t._v(t._s(a.name))])])})),e("div",{staticStyle:{height:"3.125rem"}})],2):t._e()]),e("div",{staticStyle:{height:"2.8125rem"}})],1)},r=[],o=(e("14d9"),e("b64b"),e("6968")),n=function(){var t=this,a=t.$createElement,i=t._self._c||a;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(a,r){return i("li",{key:r},[i("router-link",{attrs:{to:t.fun.getUrl("micro_shop_share_carelist",{id:a.id,fromHome:1})}},[a.thumb?i("div",{staticClass:"thumb"},[i("img",{attrs:{src:a.thumb}})]):t._e(),a.thumb?t._e():i("div",{staticClass:"thumb"},[i("img",{attrs:{src:e("253a")}})]),i("span",[t._v(t._s(a.name))])])],1)})),0)]):t._e(),t._l(t.list.data,(function(a,r){return[3==t.list.set.cat_level?[a.adv_img?i("div",{key:r,staticClass:"branch"},[i("a",{attrs:{href:t._f("href_filters")(a.adv_url)}},[i("img",{attrs:{src:a.adv_img}})])]):t._e(),t.list.data?i("div",{key:r,staticClass:"sote"},[a.name?i("h3",{},[i("router-link",{attrs:{to:t.fun.getUrl("micro_shop_share_carelist",{id:a.id,fromHome:1})}},[t._v(t._s(a.name))])],1):t._e(),a.has_many_children.length>0?i("ul",t._l(a.has_many_children,(function(a,r){return i("li",{key:r},[i("router-link",{attrs:{to:t.fun.getUrl("micro_shop_share_carelist",{id:a.id,fromHome:1})}},[a.thumb?i("div",{staticClass:"thumb"},[i("img",{attrs:{src:a.thumb}})]):t._e(),a.thumb?t._e():i("div",{staticClass:"thumb"},[i("img",{attrs:{src:e("253a")}})]),i("span",[t._v(t._s(a.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(a,r){return i("li",{key:r},[i("router-link",{attrs:{to:t.fun.getUrl("micro_shop_share_carelist",{id:a.id,fromHome:1})}},[a.thumb?i("div",{staticClass:"thumb"},[i("img",{attrs:{src:a.thumb}})]):t._e(),a.thumb?t._e():i("div",{staticClass:"thumb"},[i("img",{attrs:{src:e("253a")}})]),i("span",[t._v(t._s(a.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=(e("8ac7"),e("2877")),f=Object(d["a"])(l,n,s,!1,null,"254b0405",null),g=f.exports,h=e("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(h["mapState"])(["category","blurst"]),methods:{allList:function(){this.active2=!0,this.active=9999,this.getContentlist2()},tabsa:function(t,a){this.$store.commit("setAdvimg",a),this.active=t,this.active2=!1,this.getContentlist(a.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(a){if(1==a.result){if(t.list=a.data.data,t.shoplang=a.data.lang,t.fun.isTextEmpty(a.data)||t.fun.isTextEmpty(a.data.data)||t.fun.isTextEmpty(a.data.data[0]))return;t.tabsa(0,a.data.data[0])}}),(function(t){}))},getContentlist:function(t){var a=this,e={parent_id:t};$http.get("plugin.micro.frontend.controllers.MicroShop.CategoryByShare.getChildrenCategory",e).then((function(t){1==t.result?(a.err=!1,a.contentlist={data:t.data.data,tjfl:!1,set:t.data.set}):a.err=!0}))},getContentlist2:function(){var t=this;$http.get("goods.category.category-home",{},"loading").then((function(a){1===a.result?(t.err=!1,a.data.recommend.goo=!0,t.contentlist=a.data.recommend,t.contentlist.tjfl=!0,t.contentlist.set=a.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:g}},m=b,u=m,v=(e("f01d"),Object(d["a"])(u,i,r,!1,null,"49cb2f18",null));a["default"]=v.exports},"4be9":function(t,a,e){var i=e("b6db");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=e("499e").default;r("99827170",i,!0,{sourceMap:!1,shadowMode:!1})},"8ac7":function(t,a,e){"use strict";e("4be9")},"9a09":function(t,a,e){var i=e("be9c");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=e("499e").default;r("58391126",i,!0,{sourceMap:!1,shadowMode:!1})},b6db:function(t,a,e){var i=e("24fb");a=i(!1),a.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=a},be9c:function(t,a,e){var i=e("24fb");a=i(!1),a.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}#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:#f7f7f7}#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%;font-size:12px}#rootList .active[data-v-49cb2f18]{color:#f15353;background-color:rgba(241,83,83,.1);border-radius:0 5px 5px 0;font-weight:700}#rootList .active span[data-v-49cb2f18]{border-color:#fb4a4a}#rootList li[data-v-49cb2f18]{padding:.75rem 0;color:#666;background-color:#f7f7f7;font-size:.875rem}#rootList li span[data-v-49cb2f18]{display:inline-block;padding:0 10px;text-align:left;width:100%;line-height:1rem;border-left:2px solid #f7f7f7}",""]),t.exports=a},f01d:function(t,a,e){"use strict";e("9a09")}}]);