bztang-admin/addons/yun_shop/static/app/js/chunk-f7c53978.39373a34.js

1 line
25 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-f7c53978"],{"1f3f":function(e,t,a){"use strict";var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"goods-item flex",on:{click:function(t){return e.goodsNavTo(e.purchaseItem.id)}}},[a("div",{staticClass:"left-goods"},[a("img",{attrs:{src:e.purchaseItem.thumb}})]),a("div",{staticClass:"right-goods"},[a("div",{staticClass:"title ell"},[e._v(e._s(e.purchaseItem.title))]),a("div",{staticClass:"company-name flex-a-c flex-j-sb"},[a("div",{staticClass:"company-label flex-a-c"},[a("img",{attrs:{src:e.purchaseItem.thumb,alt:""}}),a("span",{staticClass:"name"},[e._v(e._s(e.purchaseItem.name||e.purchaseItem.brand_name))])])]),a("div",{staticClass:"goods-price"},[e.purchaseItem.product_price?a("span",{staticClass:"price"},[e._v("¥"+e._s(e.purchaseItem.product_price))]):e._e(),e.purchaseItem.has_many_options?a("span",{staticClass:"price"},[e._v("¥"+e._s(e.purchaseItem.has_many_options[0]&&e.purchaseItem.has_many_options[0].product_price))]):e._e(),0!=e.purchaseItem.market_price&&e.purchaseItem.has_many_options&&e.purchaseItem.has_many_options[0].product_price!=e.purchaseItem.market_price?a("span",{staticClass:"original-price"},[e._v("¥"+e._s(e.purchaseItem.market_price))]):e._e(),0!=e.purchaseItem.market_price&&e.purchaseItem.product_price&&e.purchaseItem.product_price!=e.purchaseItem.market_price?a("span",{staticClass:"original-price"},[e._v("¥"+e._s(e.purchaseItem.market_price))]):e._e()])])])},s=[],n=(a("14d9"),{name:"goodsItem",props:{purchaseItem:{type:Object,default:function(){return{}}},city:{type:String}},components:{},data:function(){return{}},mounted:function(){},computed:{},watch:{},methods:{goodsNavTo:function(e){this.$router.push(this.fun.getUrl("sachertorteGoods",{},{id:e,city:this.city}))}}}),r=n,o=(a("f895"),a("2877")),c=Object(o["a"])(r,i,s,!1,null,"793fb30c",null);t["a"]=c.exports},"2b1a":function(e,t,a){var i=a("24fb");t=i(!1),t.push([e.i,'.bandDetail[data-v-282dbe56]{margin:.75rem;margin-bottom:0;padding:.75rem 1.03rem 0 .63rem;background:#fff;border-radius:.5rem}.bandDetail .bandConten[data-v-282dbe56]{text-align:left;margin-top:.75rem;padding-bottom:.75rem;border-bottom:1px solid #e7e7e7}.bandDetail .bandTop[data-v-282dbe56]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.bandDetail .bandTop img[data-v-282dbe56]{width:2.5rem;height:2.5rem;border-radius:50%;margin:0}.bandDetail .bandTop .title[data-v-282dbe56]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;margin-left:.63rem;text-align:left}.bandDetail .nav[data-v-282dbe56]{height:2.75rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-justify-content:space-around;-ms-flex-pack:distribute;justify-content:space-around;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;font-size:.88rem;color:#333}.bandDetail .nav .isOn[data-v-282dbe56]:after{content:"";position:absolute;bottom:-.38rem;left:0;height:.19rem;border-radius:.19rem;background:#e32323;width:100%}.bandDetail .nav .isOn[data-v-282dbe56]{color:#e32323}.bandDetail .nav .left[data-v-282dbe56],.bandDetail .nav .right[data-v-282dbe56]{position:relative;line-height:1.25rem}.screen-content[data-v-282dbe56]{margin-top:.75rem;width:100%;-webkit-box-sizing:border-box;box-sizing:border-box;padding:.75rem 1.75rem .75rem 2.25rem;font-size:.75rem;font-weight:400;line-height:.75rem}.screen-content .sort[data-v-282dbe56]{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;margin:0 0 0 .25rem}.on[data-v-282dbe56]{color:#e32323}.salesOn text[data-v-282dbe56]{font-size:.75rem;line-height:1.0625rem}.salesOn .iconfont[data-v-282dbe56]{line-height:.75rem}.icon-member-bottom[data-v-282dbe56],.sort .icon-member-top[data-v-282dbe56]{font-size:.75rem;line-height:.75rem}.goods-list[data-v-282dbe56]{margin:.75rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;border-radius:.5rem .5rem 0 0}.goods-list .goods-item[data-v-282dbe56]{margin-bottom:.5rem;background-color:#fff;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;overflow:hidden;-webkit-box-sizing:border-box;box-sizing:border-box;width:10.69rem}.storeList[data-v-282dbe56]{padding:.75rem;margin:.75rem;margin-bottom:0;background:#fff}.storeList .storeName[data-v-282dbe56]{font-size:.88rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}.storeList .storeName .saleNum[data-v-282dbe56]{font-size:.75rem;color:#e32323;margin-left:.325rem}.storeList .phone[data-v-282dbe56]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;font-size:.75rem;color:#999;margin-top:.25rem}.storeList .phone img[data-v-282dbe56]{width:.75rem;height:.75rem;margin:0;margin-right:.25rem}',""]),e.exports=t},"2bb17":function(e,t,a){var i=a("f113");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var s=a("499e").default;s("e8108212",i,!0,{sourceMap:!1,shadowMode:!1})},39808:function(e,t,a){var i=a("2b1a");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var s=a("499e").default;s("564186d8",i,!0,{sourceMap:!1,shadowMode:!1})},"77c2":function(e,t,a){var i=a("24fb");t=i(!1),t.push([e.i,"#appMain.pcStyle .van-popup[data-v-53db1d91]{width:375px!important}.classify-list .calssify-mb:nth-child(3) .classify-item[data-v-53db1d91]{margin:0 0 .5rem 0}",""]),e.exports=t},"7dfbe":function(e,t,a){"use strict";a("39808")},9514:function(e,t,a){var i=a("77c2");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var s=a("499e").default;s("511264e9",i,!0,{sourceMap:!1,shadowMode:!1})},a58a:function(e,t,a){"use strict";var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("van-popup",{style:{height:"100%",width:"85%"},attrs:{position:"right"},on:{close:e.onClose},model:{value:e.screenShow,callback:function(t){e.screenShow=t},expression:"screenShow"}},[a("div",{staticClass:"screen-main"},[a("div",{staticClass:"container-box"},[a("div",{staticClass:"brand"},[a("div",{staticClass:"brand-title"},[e._v("品牌")]),a("div",{staticClass:"brand-list flex"},[e._l(e.getBrand,(function(t,i){return a("block",{key:t.id},[i<e.brandNum?a("div",{staticClass:"brand-item-btn",class:e.brandIndex===i?"on":"",on:{click:function(a){return a.stopPropagation(),e.brandOn(i,t.id)}}},[e._v(" "+e._s(t.name)+" "),e.brandIndex===i?a("img",{attrs:{src:"https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/plugin/cake/screen-bg.png"}}):e._e()]):e._e()])})),e.getBrand.length>e.brandNum?a("div",{staticClass:"brand-item-btn brand-item-more flex-j-c flex-a-c",on:{click:function(t){return t.stopPropagation(),e.exhibitionOn.apply(null,arguments)}}},[a("span",{staticClass:"text"},[e._v("展开")]),a("span",{staticClass:"iconfont icon-member-bottom"})]):e._e()],2),e.getBrand.length===e.brandNum?a("div",{staticClass:"brand-item-more flex-j-c",on:{click:function(t){return t.stopPropagation(),e.packup.apply(null,arguments)}}},[a("span",{staticClass:"text"},[e._v("收起")]),a("span",{staticClass:"iconfont icon-member-bottom"})]):e._e()]),a("div",{staticClass:"classify-popup flex"},[a("div",{staticClass:"classify-title title-class"},[a("h3",[e._v("分类")])]),a("div",{staticClass:"classify-list flex"},e._l(e.category,(function(t,i){return a("block",{key:i,staticClass:"calssify-mb"},[a("div",{staticClass:"classify-item flex-a-c flex-j-c ",class:e.categoryIndex===i?"on":"",on:{click:function(a){return a.stopPropagation(),e.classifyOn(t.id,i)}}},[e._v(" "+e._s(t.name)+" "),e.categoryIndex===i?a("img",{attrs:{src:"https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/plugin/cake/screen-bg.png"}}):e._e()])])})),1)]),a("div",{staticClass:"price-range"},[a("div",{staticClass:"title-class price-title"},[e._v("蛋糕价格")]),a("div",{staticClass:"brand-list flex"},e._l(e.cakePriceArr,(function(t,i){return a("block",{key:i},[a("div",{staticClass:"brand-item-btn ",class:e.cakeIndex===i?"on":"",on:{click:function(a){return e.cakeClick(i,t.type)}}},[e._v(" "+e._s(t.text)+" "),e.cakeIndex===i?a("img",{attrs:{src:"https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/plugin/cake/screen-bg.png"}}):e._e()])])})),1)]),a("div",{staticClass:"price-range"},[a("div",{staticClass:"title-class price-title"},[e._v("蛋糕尺寸")]),a("div",{staticClass:"brand-list flex"},e._l(e.cakeType,(function(t,i){return a("block",{key:i},[a("div",{staticClass:"brand-item-btn",class:i==e.indexType?"on":"",on:{click:function(a){return e.measureOn(t.type,i)}}},[e._v(" "+e._s(t.text)+" "),i===e.indexType?a("img",{attrs:{src:"https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/plugin/cake/screen-bg.png"}}):e._e()])])})),1)]),a("div",{staticClass:"price-range"},[a("div",{staticClass:"title-class price-title"},[e._v("零食价格")]),a("div",{staticClass:"brand-list flex"},e._l(e.priceSnacks,(function(t,i){return a("block",{key:i},[a("div",{staticClass:"brand-item-btn",class:e.snacksIndex===i?"on":"",on:{click:function(a){return e.snacksOn(i,t.type)}}},[e._v(" "+e._s(t.text)+" "),e.snacksIndex===i?a("img",{attrs:{src:"https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/plugin/cake/screen-bg.png"}}):e._e()])])})),1)])]),a("div",{staticClass:"filtrate flex"},[a("div",{staticClass:"filtrate-btn flex-j-c replacement",on:{click:function(t){return t.stopPropagation(),e.replacementOn.apply(null,arguments)}}},[e._v("重置")]),a("div",{staticClass:"filtrate-btn flex-j-c confirm",on:{click:function(t){return t.stopPropagation(),e.screenOn.apply(null,arguments)}}},[e._v("确定")])])])])],1)},s=[],n=(a("14d9"),{name:"screenPopup",props:{goodsItem:{type:Object,default:function(){return{}}},cakeType:{type:Array,default:function(){return[]}},getBrand:{type:Array,default:function(){return[]}},priceSnacks:{type:Array,default:function(){return[]}},category:{type:Array,default:function(){return[]}},cakePriceArr:{type:Array,default:function(){return[]}},screenShow:Boolean},components:{},data:function(){return{brandNum:5,indexType:-1,brandIndex:-1,snacksIndex:-1,categoryIndex:-1,cakeIndex:-1,brandValue:"",categoryValue:"",priceValue:["",""],cakeValue:"",cakePirceValue:["",""],iPnoneBottomBol:!1}},mounted:function(){},computed:{},watch:{},methods:{replacementOn:function(){this.indexType=-1,this.brandIndex=-1,this.snacksIndex=-1,this.categoryIndex=-1,this.cakeIndex=-1,this.brandValue="",this.categoryValue="",this.priceValue=["",""],this.cakeValue="",this.cakePirceValue=["",""],this.$emit("screenClick",{brandValue:"",categoryValue:"",priceValue:["",""],cakeValue:"",cakePirceValue:["",""],screenShow:this.screenShow})},onClose:function(){this.$emit("screenClose",this.screenShow)},exhibitionOn:function(){this.brandNum=this.getBrand.length},packup:function(){this.brandNum=5},measureOn:function(e,t){this.indexType=e,this.cakeValue=t},classifyOn:function(e,t){this.categoryIndex=t,this.categoryValue=e},brandOn:function(e,t){this.brandIndex=e,this.brandValue=t},snacksOn:function(e,t){this.snacksIndex=e,this.priceValue=t},cakeClick:function(e,t){this.cakeIndex=e,this.cakePirceValue=t},screenOn:function(){this.$emit("screenClick",{brandValue:this.brandValue,categoryValue:this.categoryValue,priceValue:this.priceValue,cakeValue:this.cakeValue,cakePirceValue:this.cakePirceValue,screenShow:this.screenShow})},goodsNavTo:function(e){this.$router.push(this.fun.getUrl("sachertorteGoods",{},{id:e}))}}}),r=n,o=(a("de63"),a("d16d"),a("2877")),c=Object(o["a"])(r,i,s,!1,null,"53db1d91",null);t["a"]=c.exports},ac0d:function(e,t,a){"use strict";a.d(t,"a",(function(){return n}));var i=document.documentElement,s=document.body,n={data:function(){return{}},activated:function(){window.addEventListener("scroll",this.handleScroll)},deactivated:function(){window.removeEventListener("scroll",this.handleScroll)},methods:{getScrollTop:function(){var e=0;return i&&i.scrollTop?e=i.scrollTop:s&&(e=s.scrollTop),e},getClientHeight:function(){var e=0;return e=s.clientHeight&&i.clientHeight?Math.min(s.clientHeight,i.clientHeight):Math.max(s.clientHeight,i.clientHeight),e},getScrollHeight:function(){return Math.max(s.scrollHeight,i.scrollHeight)},handleScroll:function(){this.otherScroll();var e=document.documentElement.scrollTop||document.body.scrollTop;this.btnFlag=e>60,this.getScrollTop()+this.getClientHeight()+105>this.getScrollHeight()?(this.isLoadMore&&this.getMoreData(),this.isBottom=!0):this.isBottom=!1},otherScroll:function(){}}}},be173:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"sachertorteBandShop"},[a("c-title",{attrs:{hide:!1,text:e.band.title}}),a("div",{staticClass:"bandDetail"},[a("div",{staticClass:"bandTop"},[a("img",{attrs:{src:e.band.logo,alt:""}}),a("div",{staticClass:"title"},[e._v(e._s(e.band.title))])]),e.band.brief_introduction?a("div",{staticClass:"bandConten",domProps:{innerHTML:e._s(e.band.brief_introduction)}}):e._e(),a("div",{staticClass:"nav"},[a("div",{staticClass:"left",class:[0==e.active?"isOn":""],on:{click:function(t){return e.tapChange(0)}}},[e._v("商品列表")]),a("div",{staticClass:"right",class:[1==e.active?"isOn":""],on:{click:function(t){return e.tapChange(1)}}},[e._v("门店列表")])])]),0==e.active?[a("div",{staticClass:"screen-content flex-a-c flex-j-sb"},[a("div",{staticClass:"popularity",class:e.query&&"popularity"===e.query.order_field?"on":"",on:{click:e.popularity}},[e._v("人气")]),a("div",{staticClass:"flex-a-c salesOn",on:{click:function(t){return e.salesClick(e.query.order_by)}}},[a("span",{class:"show_sales"===e.query.order_field?"on":""},[e._v("销量")]),a("div",{staticClass:"flex-a-c sort"},["asc"===e.query.order_by&&"show_sales"===e.query.order_field?a("span",{staticClass:"iconfont icon-member-top",class:"asc"===e.query.order_by&&"show_sales"===e.query.order_field?"on":""}):e._e(),"desc"===e.query.order_by&&"show_sales"===e.query.order_field?a("span",{staticClass:"iconfont icon-member-bottom ",class:"desc"===e.query.order_by&&"show_sales"===e.query.order_field?"on":""}):e._e()])]),a("div",{staticClass:"flex-a-c",on:{click:function(t){return e.priceClick(e.query.order_by)}}},[a("span",{class:"price"===e.query.order_field?"on":""},[e._v("价格")]),a("div",{staticClass:"flex-a-c sort"},["asc"===e.query.order_by&&"price"===e.query.order_field?a("span",{staticClass:"iconfont icon-member-top",class:"asc"===e.query.order_by&&"price"===e.query.order_field?"on":""}):e._e(),"desc"===e.query.order_by&&"price"===e.query.order_field?a("span",{staticClass:"iconfont icon-member-bottom ",class:"desc"===e.query.order_by&&"price"===e.query.order_field?"on":""}):e._e()])]),a("div",{staticClass:"flex-a-c",on:{click:e.screeningPopup}},[a("span",[e._v("筛选")]),a("span",{staticClass:"iconfont sort icon-fontclass-shaixuan"})])]),a("screen-popup",{attrs:{screenShow:e.screenShow,cakeType:e.cakeType,getBrand:e.getBrand,priceSnacks:e.priceSnacks,category:e.categorys,cakePriceArr:e.cakePriceArr},on:{screenClick:e.screenClick,screenClose:e.screenClose}}),e.goodsList.length>0?a("div",{staticClass:"goods-list"},e._l(e.goodsList,(function(t){return a("block",{key:t.id},[a("goods-item",{attrs:{purchaseItem:t,city:e.query.city}})],1)})),1):e._e()]:e._l(e.BandStore,(function(t){return a("div",{key:t.id,staticClass:"storeList",on:{click:function(a){return e.tapStoreList(t.id,t)}}},[a("div",{staticClass:"storeName"},[e._v(" "+e._s(t.shop_name)+" ")]),a("div",{staticClass:"phone"},[a("img",{attrs:{src:"https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/images%2Fsachertorte%2F%E7%94%B5%E8%AF%9D_phone-telephone%402x.png",alt:""}}),a("div",[e._v(e._s(t.phone))])]),a("div",{staticClass:"phone",staticStyle:{"justify-content":"space-between"}},[a("img",{attrs:{src:"https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/images%2Fsachertorte%2Flocal%20(1)%402x.png",alt:""}}),a("div",{staticStyle:{flex:"1","text-align":"left"}},[e._v(e._s(t.address))]),a("div",{staticClass:"distance"},[e._v(e._s(e.setDistance(t.distance)))])])])}))],2)},s=[],n=a("2909"),r=(a("14d9"),a("b680"),a("a9e3"),a("99af"),a("a58a")),o=a("1f3f"),c=a("ac0d"),d={components:{screenPopup:r["a"],goodsItem:o["a"]},mixins:[c["a"]],data:function(){return{band:[],active:0,query:{page:1,city:"",order_field:"",order_by:"",cake_type:"",cake_price_max:"",cake_price_min:"",snacks_price_max:"",snacks_price_min:""},screenShow:!1,cakeType:[{type:"",text:"全部"},{type:1,text:"4-5人食"},{type:2,text:"6-9人"},{type:3,text:"10-12人"},{type:4,text:"12人以上"}],priceSnacks:[{type:["",""],text:"全部"},{type:[20,99],text:"20-99"},{type:[100,199],text:"100-199"},{type:[199,""],text:"199以上"}],brandsId:"",categorysId:"",goodsList:[],BandStore:[],point:{}}},activated:function(){var e=this;this.getData(),this.query.city=this.$route.query.city,this.query.page=1,this.active=0,this.fun.getLocation().then((function(t){e.point=t.point,e.locationStatus=!0,""===e.query.city&&(e.query.city=t.city),e.goodsByList()})).catch((function(t){e.goodsByList(),e.locationStatus=!1})),this.brandsId=this.$route.params.brand_id},mounted:function(){this.getBrandsData(),this.categorysList()},methods:{tapStoreList:function(e,t){var a={city:this.query.city,store_id:e};this.$router.push(this.fun.getUrl("sachertorteSearch",{},a))},goodsByList:function(){var e=this,t="plugin.yz-supply-cake.frontend.goods.goods.getGoodsList";t+="&search[brand_id]=".concat(this.brandsId),t+="&search[category]=".concat(this.categorysId),$http.get(t,this.query,"正在获取").then((function(t){if(1==t.result){var a=t.data;e.isLoadMore=!0,e.total_page=a.last_page,e.total_page||(e.page=0),e.goodsList=a.data}else e.query.page=e.query.page-1,e.isLoadMore=!1,e.$dialog.alert({message:t.msg})}),(function(e){}))},setDistance:function(e){return Number(e).toFixed(2)+"km"},getBandStore:function(){var e=this,t={brand_id:this.$route.params.brand_id,lat:this.point.lat?this.point.lat:"",lng:this.point.lng?this.point.lng:""};$http.get("plugin.yz-supply-cake.frontend.index.index.getStoreByBrandId",t,"正在获取").then((function(t){1==t.result?(e.BandStore=t.data.data,e.total_page=t.data.last_page,e.isLoadMore=!0):e.$dialog.alert({message:t.msg})}),(function(e){}))},getMoreData:function(){var e=this;if(this.isLoadMore=!1,!(this.query.page>=this.total_page))if(this.query.page=this.query.page+1,0==this.active){var t="plugin.yz-supply-cake.frontend.goods.goods.getGoodsList";t+="&search[brand_id]=".concat(this.brandsId),t+="&search[category]=".concat(this.categorysId),$http.post(t,this.query,"加载中").then((function(t){if(e.isLoadMore=!0,1===t.result){var a=t.data.data;e.goodsList=[].concat(Object(n["a"])(e.goodsList),Object(n["a"])(a))}else e.query.page=e.query.page-1,e.isLoadMore=!1}),(function(e){}))}else{var a="plugin.yz-supply-cake.frontend.index.index.getStoreByBrandId",i={brand_id:this.$route.params.brand_id,lat:this.point.lat?this.point.lat:"",lng:this.point.lng?this.point.lng:"",page:this.query.page};$http.post(a,i,"加载中").then((function(t){if(e.isLoadMore=!0,1===t.result){var a=t.data.data;e.BandStore=[].concat(Object(n["a"])(e.BandStore),Object(n["a"])(a))}else e.query.page=e.query.page-1,e.isLoadMore=!1}),(function(e){}))}},categorysList:function(){var e=this;$http.get("plugin.yz-supply-cake.frontend.index.index.getCategorys",{},"正在获取").then((function(t){if(1==t.result){var a=t.data,i=a;e.categorys=i}else e.$dialog.alert({message:t.msg})}),(function(e){}))},getBrandsData:function(){var e=this,t={city:this.query.city};$http.get("plugin.yz-supply-cake.frontend.goods.goods.getBrand",t,"正在获取").then((function(t){if(1==t.result){var a=t.data;e.getBrand=a}else e.$dialog.alert({message:t.msg})}),(function(e){}))},screenClose:function(){this.screenShow=!1},screenClick:function(e){var t=e.brandValue,a=e.cakeValue,i=e.categoryValue,s=e.priceValue,n=e.cakePirceValue;this.screenShow=!1,this.isLoadMore=!0,this.brandsId=t,this.categorysId=i,this.query.cake_type=a,this.query.page=1,this.query.cake_price_min=n[0],this.query.cake_price_max=n[1],this.query.snacks_price_min=s[0],this.query.snacks_price_max=s[1],this.goodsByList()},screeningPopup:function(){this.screenShow=!0},popularity:function(){this.query.page=1,this.query.order_by="",this.query.order_field="popularity",this.isLoadMore=!0,this.goodsByList()},priceClick:function(e){var t="asc";this.sortSwicth(e,t,"price")},tapChange:function(e){this.active=e,this.query.page=1,this.isLoadMore=!0,this.total_page=0,1==e?this.getBandStore():this.goodsByList()},salesClick:function(e){var t="asc";this.sortSwicth(e,t,"show_sales")},sortSwicth:function(e,t,a){switch(e){case"asc":t="desc";break;case"desc":t="asc";break}this.query.page=1,this.query.order_by=t,this.query.order_field=a,this.isLoadMore=!0,this.goodsByList()},getData:function(){var e=this;$http.get("plugin.yz-supply-cake.frontend.goods.goods.getBrandDetails",{brand_id:this.$route.params.brand_id},"正在获取").then((function(t){1==t.result?e.band=t.data:e.$dialog.alert({message:t.msg})}),(function(e){}))}}},l=d,p=(a("7dfbe"),a("2877")),u=Object(p["a"])(l,i,s,!1,null,"282dbe56",null);t["default"]=u.exports},cfb2:function(e,t,a){var i=a("24fb");t=i(!1),t.push([e.i,".container-box[data-v-53db1d91]{padding:0 0 0 .75rem}.container-box .brand[data-v-53db1d91]{padding:.75rem 0}.container-box .brand .brand-title[data-v-53db1d91]{text-align:left;font-size:1rem;font-weight:700;line-height:1.4375rem;color:#333;padding:0 0 .75rem 0}.brand-list[data-v-53db1d91]{-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;padding:0 .5rem 0 0}.brand-item-btn[data-v-53db1d91]{min-width:5.6875rem;text-align:center;-webkit-box-sizing:border-box;box-sizing:border-box;padding:.5rem 1rem;background:#f6f6f6;border-radius:.25rem;font-size:.75rem;line-height:1.03125rem;color:#666;margin:0 .5rem .75rem 0}.brand-item-btn[data-v-53db1d91]:nth-child(3){margin-right:0}.brand-item-more[data-v-53db1d91]{background-color:transparent;font-size:.625rem;line-height:.875rem;color:#999}.brand-item-more .text[data-v-53db1d91]{padding:0 .125rem 0 0}.screen-main .on[data-v-53db1d91]{-webkit-box-sizing:border-box;box-sizing:border-box;color:#e95352;background:rgba(233,83,82,.04);border:.0625rem solid #e95352;position:relative}.brand-item-btn img[data-v-53db1d91],.classify-item img[data-v-53db1d91]{width:1.0625rem;height:.875rem;position:absolute;bottom:0;right:0}.classify-popup[data-v-53db1d91]{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;padding:.25rem .9375rem 0 0}.classify-popup .classify-title[data-v-53db1d91]{text-align:left;padding:0 0 0 0;font-size:.875rem;line-height:1.25rem;color:#333}.title-class[data-v-53db1d91]{font-size:1rem;font-weight:700;line-height:1.375rem;color:#333}.classify-list[data-v-53db1d91]{padding:.75rem 0 0 0;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap}.classify-item[data-v-53db1d91]{min-width:5.6875rem;-webkit-box-sizing:border-box;box-sizing:border-box;text-align:center;border:.0625rem solid #ccc;border-radius:.25rem;padding:.25rem .75rem;margin:0 .5rem .5rem 0}.classify-item[data-v-53db1d91] :nth-child(3){margin:0 0 .5rem 0}.price-range[data-v-53db1d91]{padding:1.5rem 0 0 0}.price-range .price-title[data-v-53db1d91]{padding:0 0 .75rem 0;text-align:left}.filtrate[data-v-53db1d91]{padding:.75rem 0 0 0}.filtrate .filtrate-btn[data-v-53db1d91]{width:50%;font-size:.875rem;line-height:1.25rem;padding:.5rem 0}.replacement[data-v-53db1d91]{background-color:#f6f6f6;color:#999}.confirm[data-v-53db1d91]{background-color:#e95352;color:#fff}",""]),e.exports=t},d16d:function(e,t,a){"use strict";a("d3bf")},d3bf:function(e,t,a){var i=a("cfb2");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var s=a("499e").default;s("3427efa6",i,!0,{sourceMap:!1,shadowMode:!1})},de63:function(e,t,a){"use strict";a("9514")},f113:function(e,t,a){var i=a("24fb");t=i(!1),t.push([e.i,".ell[data-v-793fb30c]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.goods-list .left-goods[data-v-793fb30c],.goods-list .left-goods img[data-v-793fb30c]{width:10.69rem;height:10.69rem;border-radius:.5rem .5rem 0 0}.right-goods[data-v-793fb30c]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;overflow:hidden;padding:.25rem .72rem .75rem .5rem;-webkit-box-sizing:border-box;box-sizing:border-box}.right-goods .title[data-v-793fb30c]{text-align:left;font-size:.875rem;line-height:1.25rem;color:#333;padding:.4375rem 0 .75rem 0}.company-name[data-v-793fb30c]{margin:0 0 .75rem 0}.company-name .company-label img[data-v-793fb30c]{width:1rem;height:1rem;border-radius:100%;margin-right:.25rem}.company-name .company-label .name[data-v-793fb30c]{padding:0 0 0 .125rem}.company-name .company-label .name[data-v-793fb30c],.company-sum[data-v-793fb30c]{font-size:.75rem;line-height:1rem;color:#999}.goods-price[data-v-793fb30c]{text-align:left}.goods-price .price[data-v-793fb30c]{font-size:.875rem;font-weight:700;line-height:1.25rem;color:#e32323;padding:0 .25rem 0 0}.goods-price .original-price[data-v-793fb30c]{font-size:.75rem;line-height:1rem;color:#999;text-decoration:line-through}",""]),e.exports=t},f895:function(e,t,a){"use strict";a("2bb17")}}]);