glhcp/server/public/_nuxt/39a578f.js

1 line
23 KiB
JavaScript

(window.webpackJsonp=window.webpackJsonp||[]).push([[41,13,16,18],{488:function(t,e,o){var content=o(491);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,o(18).default)("d7ac674a",content,!0,{sourceMap:!1})},489:function(t,e,o){"use strict";o.r(e);o(300);var r={data:function(){return{priceSlice:{}}},components:{},props:{firstSize:{type:Number,default:14},secondSize:{type:Number,default:14},color:{type:String},weight:{type:[String,Number],default:400},price:{type:[String,Number],default:""},showSubscript:{type:Boolean,default:!0},subscriptSize:{type:Number,default:14},lineThrough:{type:Boolean,default:!1}},created:function(){this.priceFormat()},watch:{price:function(t){this.priceFormat()}},methods:{priceFormat:function(){var t=this.price,e={};null!==t&&(t=String(t).split("."),e.first=t[0],e.second=t[1],this.priceSlice=e)}}},n=(o(490),o(9)),component=Object(n.a)(r,(function(){var t=this,e=t._self._c;return e("span",{class:(t.lineThrough?"line-through":"")+"price-format",style:{color:t.color,"font-weight":t.weight}},[t.showSubscript?e("span",{style:{"font-size":t.subscriptSize+"px","margin-right":"1px"}},[t._v("¥")]):t._e(),t._v(" "),e("span",{style:{"font-size":t.firstSize+"px","margin-right":"1px"}},[t._v(t._s(t.priceSlice.first))]),t._v(" "),t.priceSlice.second?e("span",{style:{"font-size":t.secondSize+"px"}},[t._v("."+t._s(t.priceSlice.second))]):t._e()])}),[],!1,null,null,null);e.default=component.exports},490:function(t,e,o){"use strict";o(488)},491:function(t,e,o){var r=o(17)((function(i){return i[1]}));r.push([t.i,".price-format{align-items:baseline;display:flex}",""]),r.locals={},t.exports=r},492:function(t,e,o){var content=o(494);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,o(18).default)("1e01d57a",content,!0,{sourceMap:!1})},493:function(t,e,o){"use strict";o(492)},494:function(t,e,o){var r=o(17)((function(i){return i[1]}));r.push([t.i,".null-data[data-v-93598fb0]{padding:100px}.null-data .img-null[data-v-93598fb0]{height:150px;width:150px}",""]),r.locals={},t.exports=r},495:function(t,e,o){"use strict";o.r(e);var r={components:{},props:{img:{type:String},text:{type:String,default:"暂无数据"},imgStyle:{type:String,default:""}},methods:{}},n=(o(493),o(9)),component=Object(n.a)(r,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"bg-white flex-col col-center null-data"},[e("img",{staticClass:"img-null",style:t.imgStyle,attrs:{src:t.img,alt:""}}),t._v(" "),e("div",{staticClass:"muted mt8"},[t._v(t._s(t.text))])])}),[],!1,null,"93598fb0",null);e.default=component.exports},497:function(t,e,o){"use strict";o.d(e,"b",(function(){return n})),o.d(e,"a",(function(){return l}));o(47),o(30),o(65),o(48),o(39),o(20),o(66),o(67),o(49);var r=o(22);o(109),o(63),o(12);var n=function(t){var time=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3,e=arguments.length>2?arguments[2]:void 0,o=new Date(0).getTime();return function(){var r=(new Date).getTime();if(r-o>time){for(var n=arguments.length,l=new Array(n),c=0;c<n;c++)l[c]=arguments[c];t.apply(e,l),o=r}}};function l(t){var p="";if("object"==Object(r.a)(t)){for(var e in p="?",t)p+="".concat(e,"=").concat(t[e],"&");p=p.slice(0,-1)}return p}},498:function(t,e,o){var content=o(503);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,o(18).default)("18c1d214",content,!0,{sourceMap:!1})},502:function(t,e,o){"use strict";o(498)},503:function(t,e,o){var r=o(17)((function(i){return i[1]}));r.push([t.i,".goods-list[data-v-060944d1]{align-items:stretch}.goods-list .goods-item[data-v-060944d1]{border-radius:4px;box-sizing:border-box;display:block;height:310px;margin-bottom:16px;padding:12px 12px 16px;transition:all .2s;width:224px}.goods-list .goods-item[data-v-060944d1]:hover{box-shadow:0 0 6px rgba(0,0,0,.1);transform:translateY(-8px)}.goods-list .goods-item .goods-img[data-v-060944d1]{height:200px;width:200px}.goods-list .goods-item .name[data-v-060944d1]{height:40px;line-height:20px;margin-bottom:10px}.goods-list .goods-item .seckill .btn[data-v-060944d1]{border:1px solid transparent;border-radius:4px;padding:4px 12px}.goods-list .goods-item .seckill .btn.not-start[data-v-060944d1]{background-color:transparent;border-color:#ff2c3c;color:#ff2c3c}.goods-list .goods-item .seckill .btn.end[data-v-060944d1]{background-color:#e5e5e5;color:#fff}",""]),r.locals={},t.exports=r},509:function(t,e,o){"use strict";o.r(e);o(30),o(300);var r={props:{list:{type:Array,default:function(){return[]}},num:{type:Number,default:5},type:{type:String},status:{type:Number}},watch:{list:{immediate:!0,handler:function(t){}}},computed:{getSeckillText:function(){switch(this.status){case 0:return"未开始";case 1:return"立即抢购";case 2:return"已结束"}}}},n=(o(502),o(9)),component=Object(n.a)(r,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"goods-list flex flex-wrap"},t._l(t.list,(function(o,r){return e("nuxt-link",{key:r,staticClass:"goods-item bg-white",style:{marginRight:(r+1)%t.num==0?0:"14px"},attrs:{to:"/goods_details/".concat(o.id||o.goods_id)}},[e("el-image",{staticClass:"goods-img",attrs:{lazy:"",src:o.image||o.goods_image,alt:""}}),t._v(" "),e("div",{staticClass:"name line-2"},[t._v(t._s(o.name||o.goods_name))]),t._v(" "),"seckill"==t.type?e("div",{staticClass:"seckill flex row-between"},[e("div",{staticClass:"primary flex"},[t._v("\n 秒杀价\n "),e("price-formate",{attrs:{price:o.seckill_price,"first-size":18}})],1),t._v(" "),e("div",{class:["btn bg-primary white",{"not-start":0==t.status,end:2==t.status}]},[t._v(t._s(t.getSeckillText)+"\n ")])]):e("div",{staticClass:"flex row-between flex-wrap"},[e("div",{staticClass:"price flex col-baseline"},[e("div",{staticClass:"primary m-r-8"},[e("price-formate",{attrs:{price:o.min_price||o.price,"first-size":16}})],1),t._v(" "),e("div",{staticClass:"muted sm line-through"},[e("price-formate",{attrs:{price:o.market_price}})],1)]),t._v(" "),e("div",{staticClass:"muted xs"},[t._v(t._s(o.sales_total||o.sales_sum||0)+"人购买")])])],1)})),1)}),[],!1,null,"060944d1",null);e.default=component.exports;installComponents(component,{PriceFormate:o(489).default})},511:function(t,e,o){t.exports=o.p+"img/goods_null.d774c28.png"},523:function(t,e,o){t.exports=o.p+"img/coupons_img_receive.7169d0c.png"},524:function(t,e,o){t.exports=o.p+"img/bg_coupon_s.7cd7066.png"},525:function(t,e,o){t.exports=o.p+"img/bg_coupon.dc72a74.png"},578:function(t,e,o){var content=o(640);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,o(18).default)("1c6fff99",content,!0,{sourceMap:!1})},639:function(t,e,o){"use strict";o(578)},640:function(t,e,o){var r=o(17),n=o(196),l=o(524),c=o(525),d=r((function(i){return i[1]})),h=n(l),f=n(c);d.push([t.i,".shop{padding:15px;width:227px}.shop .logo-img{border-radius:50%;height:62px;overflow:hidden;width:62px}.shop .el-rate__icon{font-size:16px}.h-item{cursor:pointer;height:24px;margin-right:30px;width:82px}.h-item-x{background-color:#ff2c3c;border-radius:100px;color:#fff}.search{width:240px}.search ::v-deep .el-input{border-radius:10px;width:240px}.shop-details{margin-top:10px}.shop-details .left .l-border{border-bottom:1px solid #eee;margin-bottom:27px;padding-bottom:27px}.shop-details .left .desc{color:#101010;font-size:12px}.shop-details .left .desc-b{color:#fff;font-size:12px}.shop-details .left .desc-n{color:#fff;color:#101010;font-size:18px;font-size:14px}.shop-details .left .left-btn{border:1px solid #bbb;border-radius:4px;height:29px;width:82px}.shop-details .left .left-shop{background-color:#fff;height:364px;padding:20px 15px;width:210px}.shop-details .left .r-color-h{background-color:#a4adb3;color:#fff}.shop-details .left .l-tips{padding:1px 2px}.shop-details .left .l-fen{color:#101010;cursor:pointer;font-size:14px;height:44px;line-height:20px;text-align:center;width:210px}.shop-details .left .l-fen-select{color:#ff2c3c}.shop-details .right{width:961px}.shop-details .right .coupon-list{background-color:#fff;border-bottom:1px solid #eee;margin:0 20px;padding:20px 0}.shop-details .right .coupon-list .coupons-more{cursor:pointer}.shop-details .right .coupon-list .swiper-item-c{flex-wrap:nowrap;overflow:hidden;width:760px}.shop-details .right .coupon-list .swiper-item-zk{flex-wrap:wrap;width:770px}.shop-details .right .shop-list{background-color:#fff;height:360px;padding:10px 20px 0}.shop-details .right .shop-list .shop-item{background-color:#fff;height:298px;margin-right:12px;width:200px}.shop-details .right .shop-list .shop-item .name{color:#101010;font-size:14px;margin-bottom:18px;text-align:left}.shop-details .sort{padding:16px 16px 0}.shop-details .sort .sort-name .item{cursor:pointer;margin-right:30px}.shop-details .sort .sort-name .item.active{color:#ff2c3c}.shop-details .swiper-item{width:672px}.shop-details .item{cursor:pointer;margin-bottom:20px;margin-right:16px;position:relative}.shop-details .item .coupon-button{background-color:#f2f2f2;height:30px;padding:0 8px;width:240px}.shop-details .item .info{background:url("+h+") no-repeat;background-size:100%;height:80px;padding:0 10px;width:240px}.shop-details .item .info.gray{background-image:url("+f+")}.shop-details .item .info .info-hd{overflow:hidden}.shop-details .item .tips{background-color:#f2f2f2;height:30px;padding:0 8px;position:relative}.shop-details .item .tips .tips-con{background-color:#f2f2f2;left:0;padding:10px;position:absolute;top:30px;width:100%;z-index:99}.shop-details .item .receice{height:45px;position:absolute;right:0;top:0;width:58px}.shop-details .item .choose{background-color:#ffe72c;color:#ff2c3c;padding:1px 5px;position:absolute;right:0;top:0}.shop-details .more{bottom:20px;cursor:pointer;position:absolute;right:30px}",""]),d.locals={},t.exports=d},716:function(t,e,o){"use strict";o.r(e);o(30),o(39),o(199);var r=o(8),n=(o(56),o(63),o(87),o(497)),l=(o(104),{head:function(){return{title:this.$store.getters.headTitle,link:[{rel:"icon",type:"image/x-icon",href:this.$store.getters.favicon}]}},layout:"street",components:{},asyncData:function(t){return Object(r.a)(regeneratorRuntime.mark((function e(){var o,r,n,l,i,c,d,h,f,v;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=t.$get,r=t.query,e.next=3,o("shop/getShopInfo",{params:{shop_id:r.id}});case 3:if(1==(n=e.sent).code&&n.data.goods_list.length>0)for(l=[],i=0;i<Math.ceil(n.data.goods_list.length/4);i++)d=(c=4*i)+4,l.push(n.data.goods_list.slice(c,d));return console.log("num",l),e.next=8,o("coupon/getCouponList",{params:{shop_id:r.id}});case 8:return h=e.sent,e.next=11,o("shop_goods_category/getShopGoodsCategory",{params:{shop_id:r.id}});case 11:if(1==(f=e.sent).code&&f.data.length>0)for(v=[],i=0;i<Math.ceil(f.data.length/6);i++)d=(c=6*i)+6,v.push(f.data.slice(c,d));return console.log("group",v),e.abrupt("return",{recommend:l,shopInfo:n.data,goodsClassList:f.data,goodsClassListGroup:v,couponsList:h.data.lists});case 15:case"end":return e.stop()}}),e)})))()},data:function(){return{goodsClassListGroup:[],recommend:[],couponsList:[],gClassId:"",shopInfo:[],goodsClassList:[],swiperOptions:{pagination:{el:".swiper-pagination",clickable:!0},navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"},preventClicks:!0,slidesPerView:"auto",autoplay:!0},sortType:"",saleSort:"desc",priceSort:"desc",page:1,count:0,goodsList:[],more:!1,keyword:"",xuanIndex:""}},created:function(){this.getGoods(),this.changeSortType=Object(n.b)(this.changeSortType,500,this)},methods:{search:function(){this.getGoods(),""==this.xuanIndex&&setTimeout((function(){document.getElementById("goods-sort").scrollIntoView()}),500)},changeXuan:function(t){this.xuanIndex=t,"all"==t?(this.gClassId="",this.getGoods()):(this.gClassId=t,this.getGoods())},getShopData:function(){var t=this;return Object(r.a)(regeneratorRuntime.mark((function e(){var o,r,i,n,l;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.$get("shop/getShopInfo",{params:{shop_id:t.$route.query.id}});case 2:if(1==(o=e.sent).code){if(t.shopInfo=o.data,o.data.goods_list.length>0)for(r=[],i=0;i<Math.ceil(o.data.goods_list.length/4);i++)l=(n=4*i)+4,r.push(o.data.goods_list.slice(n,l));console.log("num",r),t.recommend=r}case 4:case"end":return e.stop()}}),e)})))()},shopFollow:function(){this.$post("shop_follow/changeStatus",{shop_id:this.$route.query.id});this.getShopData()},hqCoupon:function(t){var e=this;return Object(r.a)(regeneratorRuntime.mark((function o(){var r,n;return regeneratorRuntime.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,e.$post("coupon/getCoupon",{coupon_id:t});case 2:r=o.sent,n=r.msg,1==r.code&&e.$message({message:n,type:"success"}),e.getCouponList();case 7:case"end":return o.stop()}}),o)})))()},getCouponList:function(){var t=this;return Object(r.a)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.$get("coupon/getCouponList",{params:{shop_id:t.$route.query.id}});case 2:e.sent;case 3:case"end":return e.stop()}}),e)})))()},getClassGoods:function(t){this.gClassId=t,this.xuanIndex=""==t?"all":t,this.getGoods()},changeSortType:function(t){switch(this.sortType=t,t){case"price":"asc"==this.priceSort?this.priceSort="desc":"desc"==this.priceSort&&(this.priceSort="asc");break;case"sales_sum":"asc"==this.saleSort?this.saleSort="desc":"desc"==this.saleSort&&(this.saleSort="asc")}this.getGoods()},changePage:function(t){this.page=t,this.getGoods()},getGoods:function(){var t=this;return Object(r.a)(regeneratorRuntime.mark((function e(){var o,r,n,l,c,d,h,f;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.$route.query.name,o=t.priceSort,r=t.sortType,n=t.saleSort,l="",e.t0=r,e.next="price"===e.t0?6:"sales_sum"===e.t0?8:10;break;case 6:return l=o,e.abrupt("break",10);case 8:return l=n,e.abrupt("break",10);case 10:return e.next=12,t.$get("pc/goodsList",{params:{page_size:20,page_no:t.page,sort_type:r,sort:l,category_id:t.gClassId,shop_id:t.$route.query.id,name:t.keyword}});case 12:c=e.sent,d=c.data,h=d.list,f=d.count,t.count=f,t.goodsList=h;case 18:case"end":return e.stop()}}),e)})))()}}}),c=(o(639),o(9)),component=Object(c.a)(l,(function(){var t=this,e=t._self._c;return e("div",{},[e("div",{staticClass:"bg-white"},[t.shopInfo.banner?e("div",{staticClass:"flex flex-1 row-center col-center",staticStyle:{width:"100%",height:"150px"}},[e("el-image",{staticStyle:{height:"100%",width:"100%","max-width":"1920px"},attrs:{src:t.shopInfo.banner,fit:"cover"}})],1):t._e(),t._v(" "),e("div",{staticClass:"wrapper1180 flex flex-1 col-center row-between",staticStyle:{height:"40px"}},[e("div",{staticClass:"h-item flex row-center",class:""==t.xuanIndex?"h-item-x":"",on:{click:function(e){return t.changeXuan("")}}},[t._v("\n 店铺首页\n ")]),t._v(" "),e("div",{staticClass:"flex row-left flex-1"},[e("div",{staticClass:"h-item flex row-center",class:"all"==t.xuanIndex?"h-item-x":"",on:{click:function(e){return t.changeXuan("all")}}},[t._v("\n 全部商品\n ")]),t._v(" "),e("swiper",{ref:"mySwiper",staticClass:"swiper flex row-left",staticStyle:{width:"672px",display:"flex","justify-content":"flex-start",margin:"0"},attrs:{options:t.swiperOptions}},t._l(t.goodsClassListGroup,(function(o,r){return e("swiper-slide",{key:r,staticClass:"swiper-item flex row-left"},[e("div",{staticClass:"flex"},t._l(o,(function(o,r){return e("div",{key:r},[e("div",{staticClass:"h-item flex row-center",class:t.xuanIndex==o.id?"h-item-x":"",on:{click:function(e){return t.changeXuan(o.id)}}},[t._v("\n "+t._s(o.name)+"\n ")])])})),0)])})),1)],1),t._v(" "),e("div",{staticClass:"search"},[e("el-input",{attrs:{placeholder:"店铺搜索",size:"mini"},on:{change:t.search},model:{value:t.keyword,callback:function(e){t.keyword=e},expression:"keyword"}})],1)])]),t._v(" "),e("div",{staticClass:"shop-details flex col-top wrapper1180 flex-1"},[e("div",{staticClass:"left"},[e("div",{staticClass:"shop bg-white"},[e("div",{staticClass:"shop-logo flex-col col-center"},[e("el-image",{staticClass:"logo-img",attrs:{src:t.shopInfo.logo}}),t._v(" "),e("div",{staticClass:"m-t-10"},[1==t.shopInfo.type?e("el-tag",{attrs:{size:"mini"}},[t._v("自营")]):t._e(),t._v(" "),e("span",{staticClass:"weight-500"},[t._v(t._s(t.shopInfo.name))])],1),t._v(" "),e("div",{staticClass:"xs muted m-t-10 line-5"},[t._v("\n "+t._s(t.shopInfo.intro)+"\n ")])],1),t._v(" "),e("div",{staticClass:"flex m-t-30"},[e("div",{staticClass:"flex-1 text-center"},[e("div",{staticClass:"xxl m-b-10"},[t._v(t._s(t.shopInfo.on_sale_count))]),t._v(" "),e("div",[t._v("全部商品")])]),t._v(" "),e("div",{staticClass:"flex-1 text-center"},[e("div",{staticClass:"xxl m-b-10"},[t._v(t._s(t.shopInfo.follow_num))]),t._v(" "),e("div",[t._v("关注人数")])])]),t._v(" "),e("el-divider"),t._v(" "),e("div",{staticClass:"flex xs m-b-16"},[e("div",{staticClass:"m-r-12"},[t._v("店铺星级")]),t._v(" "),e("div",{staticClass:"m-t-5"},[e("el-rate",{attrs:{disabled:""},model:{value:t.shopInfo.star,callback:function(e){t.$set(t.shopInfo,"star",e)},expression:"shopInfo.star"}})],1)]),t._v(" "),e("div",{staticClass:"flex xs m-b-16"},[e("div",{staticClass:"m-r-12"},[t._v("店铺评分")]),t._v(" "),e("div",{},[t._v(t._s(t.shopInfo.score)+"分")])]),t._v(" "),e("div",{staticClass:"flex row-center row-between"},[e("div",{staticClass:"flex row-center"},[e("el-button",{attrs:{size:"mini"},on:{click:t.shopFollow}},[t._v(t._s(1==t.shopInfo.shop_follow_status?"已关注":"关注店铺"))])],1),t._v(" "),e("el-popover",{attrs:{placement:"bottom",width:"200",trigger:"hover"}},[e("div",[e("el-image",{staticStyle:{width:"100%"},attrs:{src:t.shopInfo.customer_image}})],1),t._v(" "),e("div",{staticClass:"xs lighter text-center",attrs:{slot:"reference"},slot:"reference"},[e("i",{staticClass:"el-icon-chat-dot-round nr"}),t._v(" "),e("span",[t._v("联系客服")])])])],1)],1),t._v(" "),e("div",{staticClass:"m-t-10 bg-white"},[e("div",{staticClass:"l-fen flex row-center",class:""==t.gClassId?"l-fen-select":"",on:{click:function(e){return t.getClassGoods("")}}},[t._v("\n 全部商品\n ")]),t._v(" "),t._l(t.goodsClassList,(function(o,r){return e("div",{key:r,on:{click:function(e){return t.getClassGoods(o.id)}}},[e("div",{directives:[{name:"show",rawName:"v-show",value:r<4,expression:"index < 4"}],staticClass:"l-fen flex row-center",class:t.gClassId==o.id?"l-fen-select":""},[t._v("\n "+t._s(o.name)+"\n ")])])}))],2)]),t._v(" "),e("div",{staticClass:"right m-l-15"},[t.couponsList.length&&""==t.xuanIndex?e("div",{staticClass:"bg-white"},[e("div",{staticClass:"coupon-list"},[e("div",{staticClass:"m-b-10 flex row-between"},[e("div",{},[t._v("\n 领券\n ")]),t._v(" "),t.couponsList.length>3?e("div",{staticClass:"flex row-center coupons-more",on:{click:function(e){t.more=!t.more}}},[e("div",{staticClass:"m-r-5"},[t._v("\n 更多\n ")]),t._v(" "),e("i",{class:t.more?"el-icon-arrow-up":"el-icon-arrow-down"})]):t._e()]),t._v(" "),e("div",{staticClass:"flex",class:t.more?"swiper-item-zk":"swiper-item-c"},t._l(t.couponsList,(function(r,n){return e("div",{key:n,staticClass:"item"},[e("div",{class:["info white",{gray:r.is_get}]},[e("div",{staticClass:"info-hd flex"},[e("div",[e("price-formate",{attrs:{price:r.money,"first-size":38,"second-size":38}})],1),t._v(" "),e("div",{staticClass:"m-l-8 flex1"},[e("div",{staticClass:"line1"},[t._v(t._s(r.name))]),t._v(" "),e("div",{staticClass:"xs line1"},[t._v(t._s(r.condition_type_desc)+"\n ")])])]),t._v(" "),e("div",{staticClass:"info-time xs"},[t._v(t._s(r.user_time_desc))])]),t._v(" "),e("div",{staticClass:"flex row-between coupon-button"},[e("div",{staticClass:"tips-con xs lighter"},[t._v("\n "+t._s(r.use_scene_desc)+"\n ")]),t._v(" "),r.is_get?t._e():e("div",{staticClass:"primary sm",on:{click:function(e){return t.hqCoupon(r.id)}}},[t._v("\n 立即领取\n ")])]),t._v(" "),r.is_get?e("img",{staticClass:"receice",attrs:{src:o(523),alt:""}}):t._e()])})),0)])]):t._e(),t._v(" "),t.recommend&&""==t.xuanIndex?e("div",{staticClass:"shop-list"},[e("div",{staticClass:"m-b-10"},[t._v("\n 店铺推荐\n ")]),t._v(" "),e("el-carousel",{attrs:{arrow:"never","indicator-position":"outside",trigger:"click",height:"300px",autoplay:!1}},t._l(t.recommend,(function(o,r){return e("el-carousel-item",{key:r},[e("div",{staticClass:"flex"},t._l(o,(function(o,r){return e("div",{key:r,staticClass:"shop-item"},[e("nuxt-link",{attrs:{to:"/goods_details/".concat(o.id)}},[e("div",{},[e("div",{},[e("el-image",{staticStyle:{height:"200px",width:"200px"},attrs:{src:o.image}})],1),t._v(" "),e("div",{staticClass:"name m-l-10 line-1"},[t._v("\n "+t._s(o.name)+"\n ")]),t._v(" "),e("div",{staticClass:"m-l-10 flex"},[e("div",{staticClass:"primary m-r-8"},[e("price-formate",{attrs:{price:o.min_price,"first-size":16}})],1),t._v(" "),e("div",{staticClass:"muted sm line-through"},[e("price-formate",{attrs:{price:o.market_price}})],1)])])])],1)})),0)])})),1)],1):t._e(),t._v(" "),e("div",{class:""==t.xuanIndex?"m-t-10":""},[e("div",{staticClass:"sort m-b-16 flex bg-white col-top",attrs:{id:"goods-sort"}},[e("div",{staticClass:"sort-title"},[t._v("排序方式:")]),t._v(" "),e("div",{staticClass:"sort-name m-l-16 flex"},[e("div",{class:["item",{active:""==t.sortType}],on:{click:function(e){return t.changeSortType("")}}},[t._v("\n 综合\n ")]),t._v(" "),e("div",{class:["item",{active:"price"==t.sortType}],on:{click:function(e){return t.changeSortType("price")}}},[t._v("\n 价格\n "),e("i",{directives:[{name:"show",rawName:"v-show",value:"desc"==t.priceSort,expression:"priceSort == 'desc'"}],staticClass:"el-icon-arrow-down"}),t._v(" "),e("i",{directives:[{name:"show",rawName:"v-show",value:"asc"==t.priceSort,expression:"priceSort == 'asc'"}],staticClass:"el-icon-arrow-up"})]),t._v(" "),e("div",{class:["item",{active:"sales_sum"==t.sortType}],on:{click:function(e){return t.changeSortType("sales_sum")}}},[t._v("\n 销量\n "),e("i",{directives:[{name:"show",rawName:"v-show",value:"desc"==t.saleSort,expression:"saleSort == 'desc'"}],staticClass:"el-icon-arrow-down"}),t._v(" "),e("i",{directives:[{name:"show",rawName:"v-show",value:"asc"==t.saleSort,expression:"saleSort == 'asc'"}],staticClass:"el-icon-arrow-up"})])])]),t._v(" "),t.goodsList.length?[e("goods-list",{attrs:{list:t.goodsList,num:4}}),t._v(" "),t.count?e("div",{staticClass:"pagination flex m-t-30 row-center",staticStyle:{"padding-bottom":"38px"}},[e("el-pagination",{attrs:{background:"",layout:"prev, pager, next",total:t.count,"prev-text":"上一页","next-text":"下一页","hide-on-single-page":"","page-size":20},on:{"current-change":t.changePage}})],1):t._e()]:e("null-data",{attrs:{img:o(511),text:"暂无商品~"}})],2)])])])}),[],!1,null,null,null);e.default=component.exports;installComponents(component,{PriceFormate:o(489).default,GoodsList:o(509).default,NullData:o(495).default})}}]);