| 1 |
- (window.webpackJsonp=window.webpackJsonp||[]).push([[42,14,17,19,22],{473:function(t,e,o){"use strict";var r=o(14),n=o(4),c=o(5),l=o(141),d=o(24),f=o(18),h=o(290),v=o(54),m=o(104),x=o(289),_=o(3),w=o(105).f,C=o(45).f,y=o(23).f,k=o(474),S=o(475).trim,I="Number",N=n.Number,z=N.prototype,T=n.TypeError,L=c("".slice),G=c("".charCodeAt),O=function(t){var e=x(t,"number");return"bigint"==typeof e?e:E(e)},E=function(t){var e,o,r,n,c,l,d,code,f=x(t,"number");if(m(f))throw T("Cannot convert a Symbol value to a number");if("string"==typeof f&&f.length>2)if(f=S(f),43===(e=G(f,0))||45===e){if(88===(o=G(f,2))||120===o)return NaN}else if(48===e){switch(G(f,1)){case 66:case 98:r=2,n=49;break;case 79:case 111:r=8,n=55;break;default:return+f}for(l=(c=L(f,2)).length,d=0;d<l;d++)if((code=G(c,d))<48||code>n)return NaN;return parseInt(c,r)}return+f};if(l(I,!N(" 0o1")||!N("0b1")||N("+0x1"))){for(var M,$=function(t){var e=arguments.length<1?0:N(O(t)),o=this;return v(z,o)&&_((function(){k(o)}))?h(Object(e),o,$):e},j=r?w(N):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),R=0;j.length>R;R++)f(N,M=j[R])&&!f($,M)&&y($,M,C(N,M));$.prototype=z,z.constructor=$,d(n,I,$,{constructor:!0})}},474:function(t,e,o){var r=o(5);t.exports=r(1..valueOf)},475:function(t,e,o){var r=o(5),n=o(36),c=o(19),l=o(476),d=r("".replace),f="["+l+"]",h=RegExp("^"+f+f+"*"),v=RegExp(f+f+"*$"),m=function(t){return function(e){var o=c(n(e));return 1&t&&(o=d(o,h,"")),2&t&&(o=d(o,v,"")),o}};t.exports={start:m(1),end:m(2),trim:m(3)}},476:function(t,e){t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},477:function(t,e,o){var content=o(480);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,o(17).default)("7c52e05d",content,!0,{sourceMap:!1})},478:function(t,e,o){"use strict";o.r(e);o(473);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(479),o(8)),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},479:function(t,e,o){"use strict";o(477)},480:function(t,e,o){var r=o(16)(!1);r.push([t.i,".price-format{display:flex;align-items:baseline}",""]),t.exports=r},481:function(t,e,o){var content=o(483);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,o(17).default)("4bccbd40",content,!0,{sourceMap:!1})},482:function(t,e,o){"use strict";o(481)},483:function(t,e,o){var r=o(16)(!1);r.push([t.i,".null-data[data-v-93598fb0]{padding:100px}.null-data .img-null[data-v-93598fb0]{width:150px;height:150px}",""]),t.exports=r},484: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(482),o(8)),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},486:function(t,e,o){"use strict";o.d(e,"b",(function(){return n})),o.d(e,"a",(function(){return c}));o(29),o(63),o(46),o(40),o(20),o(64),o(65),o(47);var r=o(37);o(108),o(62),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,c=new Array(n),l=0;l<n;l++)c[l]=arguments[l];t.apply(e,c),o=r}}};function c(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}},487:function(t,e,o){var content=o(495);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,o(17).default)("011c3f4c",content,!0,{sourceMap:!1})},489:function(t,e,o){"use strict";var r=o(2),n=o(490);r({target:"String",proto:!0,forced:o(491)("link")},{link:function(t){return n(this,"a","href",t)}})},490:function(t,e,o){var r=o(5),n=o(36),c=o(19),l=/"/g,d=r("".replace);t.exports=function(t,e,o,r){var f=c(n(t)),h="<"+e;return""!==o&&(h+=" "+o+'="'+d(c(r),l,""")+'"'),h+">"+f+"</"+e+">"}},491:function(t,e,o){var r=o(3);t.exports=function(t){return r((function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3}))}},494:function(t,e,o){"use strict";o(487)},495:function(t,e,o){var r=o(16)(!1);r.push([t.i,".goods-list[data-v-060944d1]{align-items:stretch}.goods-list .goods-item[data-v-060944d1]{display:block;box-sizing:border-box;width:224px;height:310px;margin-bottom:16px;padding:12px 12px 16px;border-radius:4px;transition:all .2s}.goods-list .goods-item[data-v-060944d1]:hover{transform:translateY(-8px);box-shadow:0 0 6px rgba(0,0,0,.1)}.goods-list .goods-item .goods-img[data-v-060944d1]{width:200px;height:200px}.goods-list .goods-item .name[data-v-060944d1]{margin-bottom:10px;height:40px;line-height:20px}.goods-list .goods-item .seckill .btn[data-v-060944d1]{padding:4px 12px;border-radius:4px;border:1px solid transparent}.goods-list .goods-item .seckill .btn.not-start[data-v-060944d1]{border-color:#ff2c3c;color:#ff2c3c;background-color:transparent}.goods-list .goods-item .seckill .btn.end[data-v-060944d1]{background-color:#e5e5e5;color:#fff}",""]),t.exports=r},498:function(t,e,o){"use strict";o.r(e);o(29),o(473);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(494),o(8)),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(478).default})},500:function(t,e,o){t.exports=o.p+"img/goods_null.38f1689.png"},512:function(t,e,o){t.exports=o.p+"img/coupons_img_receive.d691393.png"},514:function(t,e,o){t.exports=o.p+"img/bg_coupon_s.3f57cfd.png"},515:function(t,e,o){t.exports=o.p+"img/bg_coupon.b22691e.png"},521:function(t,e,o){var content=o(544);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,o(17).default)("07ac11d2",content,!0,{sourceMap:!1})},543:function(t,e,o){"use strict";o(521)},544:function(t,e,o){var r=o(16)(!1);r.push([t.i,".ad-item[data-v-53cc496d]{width:100%;height:100%;cursor:pointer}",""]),t.exports=r},573:function(t,e,o){var content=o(633);content.__esModule&&(content=content.default),"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,o(17).default)("9d896a92",content,!0,{sourceMap:!1})},601:function(t,e,o){"use strict";o.r(e);o(489),o(486);var r={components:{},props:{item:{type:Object,default:function(){return{}}}},methods:{goPage:function(t){t.link_type,t.link,t.params;var e=t.link_query;this.$router.push({path:"/goods_details/".concat(e.id)})}}},n=(o(543),o(8)),component=Object(n.a)(r,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"ad-item",on:{click:function(e){return e.stopPropagation(),t.goPage(t.item)}}},[e("el-image",{staticStyle:{width:"100%",height:"100%"},attrs:{src:t.item.image,fit:"cover"}})],1)}),[],!1,null,"53cc496d",null);e.default=component.exports},632:function(t,e,o){"use strict";o(573)},633:function(t,e,o){var r=o(16),n=o(190),c=o(514),l=o(515),d=r(!1),f=n(c),h=n(l);d.push([t.i,".shop{width:227px;padding:15px}.shop .logo-img{width:62px;height:62px;border-radius:50%;overflow:hidden}.shop .el-rate__icon{font-size:16px}.h-item{width:82px;height:24px;margin-right:30px;cursor:pointer}.h-item-x{border-radius:100px;background-color:#ff2c3c;color:#fff}.search{width:240px}.search ::v-deep .el-input{width:240px;border-radius:10px}.shop-details{margin-top:10px}.shop-details .left .l-border{padding-bottom:27px;border-bottom:1px solid #eee;margin-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;font-size:18px;color:#101010;font-size:14px}.shop-details .left .left-btn{width:82px;height:29px;border-radius:4px;border:1px solid #bbb}.shop-details .left .left-shop{background-color:#fff;padding:20px 15px;width:210px;height:364px}.shop-details .left .r-color-h{background-color:#a4adb3;color:#fff}.shop-details .left .l-tips{padding:1px 2px}.shop-details .left .l-fen{width:210px;height:44px;line-height:20px;color:#101010;font-size:14px;text-align:center;cursor:pointer}.shop-details .left .l-fen-select{color:#ff2c3c}.shop-details .right,.shop-details .right .swiper-item{width:961px}.shop-details .right .coupon-list{background-color:#fff;padding:20px 0;margin:0 20px;border-bottom:1px solid #eee}.shop-details .right .coupon-list .coupons-more{cursor:pointer}.shop-details .right .coupon-list .swiper-item-c{width:760px;flex-wrap:nowrap;overflow:hidden}.shop-details .right .coupon-list .swiper-item-zk{width:770px;flex-wrap:wrap}.shop-details .right .shop-list{background-color:#fff;height:360px;padding:10px 20px 0}.shop-details .right .shop-list .shop-item{width:200px;height:298px;background-color:#fff;margin-right:12px}.shop-details .right .shop-list .shop-item .name{color:#101010;font-size:14px;text-align:left;margin-bottom:18px}.shop-details .sort{padding:16px 16px 0}.shop-details .sort .sort-name .item{margin-right:30px;cursor:pointer}.shop-details .sort .sort-name .item.active{color:#ff2c3c}.shop-details .swiper-item{width:672px}.shop-details .item{margin-bottom:20px;margin-right:16px;position:relative;cursor:pointer}.shop-details .item .coupon-button{background-color:#f2f2f2;width:240px;height:30px;padding:0 8px}.shop-details .item .info{padding:0 10px;background:url("+f+") no-repeat;width:240px;height:80px;background-size:100%}.shop-details .item .info.gray{background-image:url("+h+")}.shop-details .item .info .info-hd{overflow:hidden}.shop-details .item .tips{position:relative;background-color:#f2f2f2;height:30px;padding:0 8px}.shop-details .item .tips .tips-con{width:100%;left:0;background-color:#f2f2f2;position:absolute;top:30px;padding:10px;z-index:99}.shop-details .item .receice{position:absolute;top:0;right:0;width:58px;height:45px}.shop-details .item .choose{position:absolute;top:0;right:0;background-color:#ffe72c;color:#ff2c3c;padding:1px 5px}.shop-details .more{position:absolute;bottom:20px;cursor:pointer;right:30px}",""]),t.exports=d},707:function(t,e,o){"use strict";o.r(e);o(29),o(40),o(193);var r=o(9),n=(o(53),o(62),o(86),o(486)),c=(o(102),{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,c,i,l,d,f,h,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(c=[],i=0;i<Math.ceil(n.data.goods_list.length/4);i++)d=(l=4*i)+4,c.push(n.data.goods_list.slice(l,d));return console.log("num",c),e.next=8,o("coupon/getCouponList",{params:{shop_id:r.id}});case 8:return f=e.sent,e.next=11,o("shop_goods_category/getShopGoodsCategory",{params:{shop_id:r.id}});case 11:if(1==(h=e.sent).code&&h.data.length>0)for(v=[],i=0;i<Math.ceil(h.data.length/6);i++)d=(l=6*i)+6,v.push(h.data.slice(l,d));return console.log("group",v),e.abrupt("return",{recommend:c,shopInfo:n.data,goodsClassList:h.data,goodsClassListGroup:v,couponsList:f.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,c;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++)c=(n=4*i)+4,r.push(o.data.goods_list.slice(n,c));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,e){var o=this;return Object(r.a)(regeneratorRuntime.mark((function r(){var n,c,code;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,o.$post("coupon/getCoupon",{coupon_id:t});case 2:n=r.sent,c=n.msg,code=n.code,e.is_get=1,e.can_continue_get=0,1==code&&o.$message({message:c,type:"success"});case 8:case"end":return r.stop()}}),r)})))()},getCouponList:function(){var t=this;return Object(r.a)(regeneratorRuntime.mark((function e(){var o;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:o=e.sent,t.couponsList=o.data.lists;case 4: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,c,l,d,f,h;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,c="",e.t0=r,e.next="price"===e.t0?6:"sales_sum"===e.t0?8:10;break;case 6:return c=o,e.abrupt("break",10);case 8:return c=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:c,category_id:t.gClassId,shop_id:t.$route.query.id,name:t.keyword}});case 12:l=e.sent,d=l.data,f=d.list,h=d.count,t.count=h,t.goodsList=f;case 18:case"end":return e.stop()}}),e)})))()}}}),l=(o(632),o(8)),component=Object(l.a)(c,(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("\n "+t._s(t.shopInfo.on_sale_count)+"\n ")]),t._v(" "),e("div",[t._v("全部商品")])]),t._v(" "),e("div",{staticClass:"flex-1 text-center"},[e("div",{staticClass:"xxl m-b-10"},[t._v("\n "+t._s(t.shopInfo.follow_num)+"\n ")]),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}}),t._v(" "),t.shopInfo.customer_phone?e("div",{staticClass:"line-1 m-t-5 text-center"},[t._v("\n 客服电话:"+t._s(t.shopInfo.customer_phone)+"\n ")]):t._e(),t._v(" "),t.shopInfo.customer_wechat?e("div",{staticClass:"line-1 m-t-5 text-center"},[t._v("\n 客服微信号:"+t._s(t.shopInfo.customer_wechat)+"\n ")]):t._e()],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.shopInfo.ad.pc.length?e("div",{staticClass:"m-b-10"},[e("client-only",[e("el-carousel",{attrs:{height:"440px",autoplay:""}},t._l(t.shopInfo.ad.pc,(function(t,o){return e("el-carousel-item",{key:o,staticClass:"swiper-item"},[e("shopad-item",{attrs:{item:t}})],1)})),1)],1)],1):t._e(),t._v(" "),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("领券")]),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("更多")]),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:!1}]},[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("\n "+t._s(r.name)+"\n ")]),t._v(" "),e("div",{staticClass:"xs line1"},[t._v("\n "+t._s(r.condition_type_desc)+"\n ")])])]),t._v(" "),e("div",{staticClass:"info-time xs"},[t._v("\n "+t._s(r.user_time_desc)+"\n ")])]),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,r)}}},[t._v("\n 立即领取\n ")]),t._v(" "),r.is_get&&r.can_continue_get?e("div",{staticClass:"primary sm",on:{click:function(e){return t.hqCoupon(r.id,r)}}},[t._v("\n 继续领取\n ")]):t._e(),t._v(" "),r.is_get&&!r.can_continue_get?e("div",{staticClass:"primary sm"},[t._v("\n 去使用\n ")]):t._e()]),t._v(" "),r.is_get?e("img",{staticClass:"receice",attrs:{src:o(512),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("店铺推荐")]),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(500),text:"暂无商品~"}})],2)])])])}),[],!1,null,null,null);e.default=component.exports;installComponents(component,{ShopadItem:o(601).default,PriceFormate:o(478).default,GoodsList:o(498).default,NullData:o(484).default})}}]);
|