bztang-admin/addons/yun_shop/static/app/js/chunk-22a4a81e.78e2ad95.js

1 line
26 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-22a4a81e","chunk-2d0d83d6"],{"0aec":function(t,e,i){var a=i("ae44");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var s=i("499e").default;s("13467a40",a,!0,{sourceMap:!1,shadowMode:!1})},"253a":function(t,e,i){t.exports=i.p+"static/app/img/img_default.a608a24a.png"},"493d":function(t,e,i){"use strict";i("0aec")},"79db":function(t,e,i){t.exports=i.p+"static/app/img/empty-image-search.ef236a93.png"},"9fe8f":function(t,e,i){var a=i("24fb"),s=i("1de5"),o=i("dec5");e=a(!1);var n=s(o);e.push([t.i,'.c-swipe[data-v-0b8d4a62]{background-color:#fff}ul[data-v-0b8d4a62]{margin:.875rem 0;margin-bottom:0;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap}ul[data-v-0b8d4a62],ul li[data-v-0b8d4a62]{padding:0}ul li[data-v-0b8d4a62]{list-style:none;width:20%;float:left;margin:0;margin-bottom:.625rem}ul li a[data-v-0b8d4a62]{color:#2b2f33}ul li .image[data-v-0b8d4a62]{height:11vw;width:100%;overflow:hidden}ul li img[data-v-0b8d4a62]{width:50%;vertical-align:middle;height:90%;border-radius:50%}ul li p[data-v-0b8d4a62]{margin:0;font-size:12px;line-height:1.125rem;max-height:2.25rem;overflow:hidden;text-overflow:ellipsis;-webkit-line-clamp:2;-webkit-box-orient:vertical;padding:0 .5rem;display:block}ul .pcStyle .image[data-v-0b8d4a62]{height:2.625rem}.sw_list[data-v-0b8d4a62]{background-color:#fff}.sw_list_6[data-v-0b8d4a62]{min-height:5.4rem}.sw_list_0[data-v-0b8d4a62]{min-height:0}#sort[data-v-0b8d4a62]{background:#fff;padding-bottom:.5rem;border-bottom:.0625rem solid #f9f9f9;font-size:12px;color:#333}#sort .grid-content.up[data-v-0b8d4a62]:after{background-position:-10.625rem -.9375rem}#sort .grid-content.down[data-v-0b8d4a62]:after{background-position:-10.625rem 0}#sort .grid-content.down[data-v-0b8d4a62],#sort .grid-content.up[data-v-0b8d4a62]{color:#f15353}#sort .grid-content[data-v-0b8d4a62]:after{content:"";display:inline-block;width:.5rem;height:.625rem;background:url('+n+") no-repeat;background-size:12.5rem 12.5rem;background-position:-10.625rem -1.875rem;margin-left:.25rem}#sort i[data-v-0b8d4a62]{color:#555}",""]),t.exports=e},ac0d:function(t,e,i){"use strict";i.d(e,"a",(function(){return o}));var a=document.documentElement,s=document.body,o={data:function(){return{}},activated:function(){window.addEventListener("scroll",this.handleScroll)},deactivated:function(){window.removeEventListener("scroll",this.handleScroll)},methods:{getScrollTop:function(){var t=0;return a&&a.scrollTop?t=a.scrollTop:s&&(t=s.scrollTop),t},getClientHeight:function(){var t=0;return t=s.clientHeight&&a.clientHeight?Math.min(s.clientHeight,a.clientHeight):Math.max(s.clientHeight,a.clientHeight),t},getScrollHeight:function(){return Math.max(s.scrollHeight,a.scrollHeight)},handleScroll:function(){this.otherScroll();var t=document.documentElement.scrollTop||document.body.scrollTop;this.btnFlag=t>60,this.getScrollTop()+this.getClientHeight()+105>this.getScrollHeight()?(this.isLoadMore&&this.getMoreData(),this.isBottom=!0):this.isBottom=!1},otherScroll:function(){}}}},ae44:function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,".tips[data-v-59208472]{padding:.3rem .5rem}.tips[data-v-59208472],.tips .icon[data-v-59208472]{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}.tips .icon[data-v-59208472]{color:#fff;width:1rem;height:1rem;border-radius:50%;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;background:#fa0000;margin-right:.3rem}.main[data-v-59208472]{padding:.5rem .75rem;padding-bottom:3.0625rem;background:#f5f5f5;display:grid;grid-template-columns:repeat(2,2fr);grid-column-gap:2%}.main dl[data-v-59208472]{border-radius:.5rem;padding:0;box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;margin-bottom:.5rem;margin-right:2%;background:#fff;width:100%}.main dl dt[data-v-59208472]{height:50vw;line-height:82vw;width:100%;height:0;padding-bottom:100%;position:relative}.main dl dt img[data-v-59208472]{width:100%;right:0;height:100%;position:absolute;border-top-left-radius:.5rem;border-top-right-radius:.5rem}.main dl .s3[data-v-59208472]{height:1.5625rem;text-align:left;margin:0 .3125rem;margin:0 .5rem;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;word-break:break-all;overflow:hidden}.main dl .s3.heightAuto[data-v-59208472]{height:auto!important}.main dl .s3 .s3-price[data-v-59208472]{line-height:1.5625rem;height:1.5625rem;overflow:hidden;color:#fb4a4a}.main dl .s3 .s3-price .s3-price-span1[data-v-59208472]{font-size:12px;background:#fb4a4a;color:#fff;padding:.2rem .5rem;border-top-left-radius:.5rem;border-bottom-right-radius:.5rem}.main dl .s3 .s3-price .s3-price-span2[data-v-59208472]{font-size:16px}.main dl dd[data-v-59208472]{margin:0}.main dl dd div[data-v-59208472]{line-height:1.5625rem;height:1.5625rem}.main dl dd em[data-v-59208472]{font-size:16px;font-style:normal}.main dl dd .s2[data-v-59208472]{text-decoration:line-through;vertical-align:middle;color:#999;font-size:12px;height:1rem;line-height:1.25rem}.main dl .m-text[data-v-59208472]{font-size:14px;margin:.25rem .5rem;height:2.25rem;text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;word-break:break-all;overflow:hidden;line-height:1.125rem;text-align:justify}.main dl .discount-one[data-v-59208472]{text-align:left;margin:.375rem .2rem}.main dl .discount-one .discount-one-a[data-v-59208472]{font-size:.625rem;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.main dl .discount-one .discount-one-a .discount-a[data-v-59208472]{overflow:hidden;height:1rem;background:#ffeee9;white-space:nowrap;color:#ff6c3f;padding:0 .2rem;margin-right:.2rem}.main dl .discount-one .discount-one-b .now-price[data-v-59208472]{font-size:.75rem;text-decoration:line-through;vertical-align:middle;color:#888}.main dl .discount-one .discount-one-b .discount-price[data-v-59208472]{font-size:.875rem;color:#f15353}.main dl .list-b[data-v-59208472]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;padding:.5rem 0;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center}.main dl .list-b .list-copy[data-v-59208472]{border-radius:2rem;color:#ff2c29;border:1px solid #ff2c29;padding:.25rem .5rem;margin-right:.5rem}.main dl .list-b .list-share[data-v-59208472]{border-radius:2rem;background:#ff2c29;color:#fff;padding:.35rem .5rem}.main2 .list[data-v-59208472]{display:-webkit-box;display:-webkit-flex;background:#fff;border-bottom:.0625rem solid #f9f9f9}.main2 .list .list-b[data-v-59208472]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;text-align:right;padding:.5rem 0;-webkit-box-pack:end;-webkit-justify-content:flex-end;-ms-flex-pack:end;justify-content:flex-end;margin-right:.5rem}.main2 .list .list-b .list-copy[data-v-59208472]{border-radius:2rem;color:#ff2c29;border:1px solid #ff2c29;padding:.35rem .5rem;margin-right:.5rem}.main2 .list .list-b .list-share[data-v-59208472]{border-radius:2rem;background:#ff2c29;color:#fff;padding:.35rem .5rem;margin-right:.5rem}.main2 .imgs[data-v-59208472]{width:6.5rem;height:6.5rem;margin:.375rem .375rem .375rem 1rem;-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden}.main2 .imgs img[data-v-59208472]{width:100%}.main2 .shop_info[data-v-59208472]{-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:justify;text-align:left;padding:.375rem 1rem .375rem .375rem}.main2 .shop_info[data-v-59208472],.main2 .shop_info ul[data-v-59208472]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;-webkit-box-flex:1;-webkit-flex:1}.main2 .shop_info ul[data-v-59208472]{-ms-flex:1;flex:1;-ms-flex-pack:justify;margin-bottom:.625rem}.main2 .shop_info .discount[data-v-59208472]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;margin:.2rem 0;font-size:.625rem}.main2 .shop_info .discount .discount-a[data-v-59208472]{background:#ffeee9;color:#ff6c3f;padding:0 .25rem;margin-right:.25rem}.main2 .shop_info .now-price[data-v-59208472]{font-size:.75rem;text-decoration:line-through;vertical-align:middle;color:#888}.main2 .shop_info .discount-price[data-v-59208472]{font-size:.875rem;color:#f15353}.main2 .shop_info .main2_price[data-v-59208472]{margin:0}.main2 .shop_info .s2[data-v-59208472]{text-decoration:line-through;vertical-align:middle;color:#999;font-size:12px;height:1rem;line-height:1rem}.main2 .shop_info .title[data-v-59208472]{font-size:14px;-webkit-box-flex:3;-webkit-flex:3;-ms-flex:3;flex:3;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;height:36px;line-height:18px}.main2 .shop_info .member[data-v-59208472]{font-size:16px;color:#fb4a4a;-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;text-align:left}.main2 .shop_info .member .member-span-1[data-v-59208472]{font-size:.75rem;background:#fb4a4a;color:#fff;padding:.2rem .5rem;border-top-left-radius:.5rem;border-bottom-right-radius:.5rem}.main2 .shop_info .member a[data-v-59208472]{color:#fb4a4a;font-weight:700;margin-top:.625rem}.main2 .fit[data-v-59208472]{-webkit-box-flex:0;-webkit-flex:0 0 1rem;-ms-flex:0 0 1rem;flex:0 0 1rem}.search-box[data-v-59208472]{padding:0 2rem;height:2.8125rem;line-height:2.8125rem;background:#fff;border-bottom:.0625rem solid #f4f4f4}.search-box[data-v-59208472],.search-box .search-content[data-v-59208472]{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}.search-box .search-content[data-v-59208472]{width:100%;height:1.75rem;background:#f5f5f5;padding:0 .625rem;text-align:left;border-radius:.875rem;color:#8c8c8c}.search-box .search-content input[data-v-59208472]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1;line-height:1.75rem;border:none;color:#333}.search-box .search-content i[data-v-59208472]{position:absolute;right:2.5rem;-webkit-box-flex:0;-webkit-flex:0 0 1.5rem;-ms-flex:0 0 1.5rem;flex:0 0 1.5rem}",""]),t.exports=e},b371:function(t,e,i){"use strict";i.r(e);var a=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{class:[t.fun.isIphoneX()?"iphoneXStyle":""],attrs:{id:"category"}},[a("van-sticky",[a("div",{staticClass:"search-box"},[a("div",{staticClass:"search-content"},[a("form",{attrs:{action:"#"},on:{submit:function(t){t.preventDefault()}}},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.goods_name,expression:"goods_name"}],attrs:{type:"search",placeholder:"请输入内容"},domProps:{value:t.goods_name},on:{keypress:t.enterSearch,input:function(e){e.target.composing||(t.goods_name=e.target.value)}}})]),a("i",{staticClass:"iconfont icon-sousuo1",staticStyle:{color:"#ccc"},on:{click:t.enterSearch}})])])]),a("c-header",{attrs:{cat_set:t.cat_set,top_img:t.top_img,category:t.category},on:{watchSort:t.sortOut,bindCategory:t.bindCategory}}),a("div",{staticClass:"tips"},[a("p",{staticClass:"icon"},[a("van-icon",{attrs:{name:"success"}})],1),t._v(" 根据大部分用户选择的商品,为你推荐 ")]),a("yz-blank",{directives:[{name:"show",rawName:"v-show",value:t.view,expression:"view"}],attrs:{datas:t.goods,text:"暂无信息",isBtn:!1}}),a("div",{directives:[{name:"show",rawName:"v-show",value:t.view,expression:"view"}],staticClass:"main"},t._l(t.goods,(function(e,s){return a("dl",{key:s,on:{click:function(i){return i.stopPropagation(),i.preventDefault(),t.gotoDetail(e.id)}}},[e.thumb?a("dt",[a("img",{attrs:{src:e.thumb},on:{click:function(i){return i.stopPropagation(),i.preventDefault(),t.gotoDetail(e.id)}}})]):t._e(),e.thumb?t._e():a("dt",[a("img",{attrs:{src:i("253a")}})]),a("dd",{staticClass:"m-text",staticStyle:{"-webkit-box-orient":"vertical"}},[t._v(" "+t._s(t._f("escapeTitle")(e.title))+" ")]),t.showprice?t._e():a("dd",{staticClass:"s3",class:{heightAuto:"item.is_open_micro==1"},staticStyle:{"line-height":"1.5625rem",height:"3.125rem",margin:"0.25rem 0.375rem"}},[a("div",{staticClass:"s2"},[a("span",{directives:[{name:"show",rawName:"v-show",value:parseInt(e.market_price),expression:"parseInt(item.market_price)"}]},[t._v(t._s(t.$i18n.t("money"))+t._s(e.market_price))])]),a("div",{staticClass:"s3-price",style:t.styleCon},[a("small",[t._v(t._s(t.$i18n.t("money")))]),e.vip_level_status&&1==e.vip_level_status.status?a("span",{staticClass:"s3-price-span1"},[t._v(" "+t._s(e.vip_level_status.word)+" ")]):a("span",{staticClass:"s3-price-span2"},[t._v(" "+t._s(e.price)+" ")])]),a("div",{directives:[{name:"show",rawName:"v-show",value:1==e.is_open_micro,expression:"item.is_open_micro == 1"}],staticStyle:{color:"#888","font-size":"12px"}},[t._v("会员价:"+t._s(t.$i18n.t("money"))+t._s(1==e.price_level?e.vip_price:e.vip_next_price))]),e.estimated_commission>0?a("div",{staticClass:"s3",staticStyle:{color:"#888","font-size":"12px"}},[a("small",[t._v(t._s(t.$i18n.t("money")))]),a("span",[t._v(t._s(t.$i18n.t("预估收益"))+""+t._s(e.estimated_commission))])]):t._e()])])})),0),a("div",{directives:[{name:"show",rawName:"v-show",value:0==t.view,expression:"view == false"}],staticClass:"main2"},["02"!=t.goods_style?t._l(t.goods,(function(e,s){return a("div",{key:s,staticClass:"list",on:{click:function(i){return i.stopPropagation(),i.preventDefault(),t.gotoDetail(e.id)}}},[a("div",{staticClass:"imgs"},[e.thumb?a("img",{key:e.thumb,attrs:{src:e.thumb},on:{click:function(e){return e.stopPropagation(),e.preventDefault(),t.gotoDetail(t.item.id)}}}):t._e(),e.thumb?t._e():a("img",{attrs:{src:i("253a")}})]),a("div",{staticClass:"shop_info"},[a("ul",[a("li",{staticClass:"title"},[t._v(" "+t._s(t._f("escapeTitle")(e.title))+" ")])]),a("div",[a("ul",{staticClass:"main2_price"},[t.showprice?t._e():a("li",{staticClass:"member"},[t._v(" "+t._s(t.price)+" "),a("small",[t._v(t._s(t.$i18n.t("money")))]),e.vip_level_status&&1==e.vip_level_status.status?a("span",{staticClass:"member-span-1"},[t._v(" "+t._s(e.vip_level_status.word)+" ")]):a("span",{staticClass:"member-span-2"},[t._v(" "+t._s(e.price)+" ")])])]),a("dd",{directives:[{name:"show",rawName:"v-show",value:1==e.is_open_micro,expression:"items.is_open_micro == 1"}],staticClass:"s3",staticStyle:{color:"#888","font-size":"12px"}},[a("small"),t._v(" 会员价:"+t._s(t.$i18n.t("money"))+t._s(1==e.price_level?e.vip_price:e.vip_next_price)+" ")]),e.estimated_commission>0?a("div",{staticClass:"fit",staticStyle:{color:"#888","font-size":"12px"}},[a("small",[t._v(t._s(t.$i18n.t("money")))]),t._v(" "+t._s(t.$i18n.t("预估收益"))+""+t._s(e.estimated_commission)+" ")]):t._e()])])])})):t._e(),"02"==t.goods_style?t._l(t.goods,(function(e,s){return a("div",{key:s,staticClass:"list",staticStyle:{"flex-wrap":"wrap","margin-bottom":"0.75rem"},on:{click:function(i){return i.stopPropagation(),i.preventDefault(),t.gotoDetail(e.id)}}},[a("div",{staticClass:"imgs"},[e.thumb?a("img",{key:e.thumb,attrs:{src:e.thumb},on:{click:function(e){return e.stopPropagation(),e.preventDefault(),t.gotoDetail(t.item.id)}}}):t._e(),e.thumb?t._e():a("img",{attrs:{src:i("253a")}})]),a("div",{staticClass:"shop_info"},[a("ul",[a("li",{staticClass:"title"},[t._v(" "+t._s(t._f("escapeTitle")(e.title))+" ")])]),a("div",[a("div",{staticClass:"discount"},[1==e.coupon.coupon_method?a("div",{staticClass:"discount-a"},[t._v("优惠券"+t._s(t.$i18n.t("money"))+t._s(e.coupon.deduct))]):t._e(),2==e.coupon.coupon_method?a("div",{staticClass:"discount-a"},[t._v("折扣:"+t._s(e.coupon.discount)+"折")]):t._e(),e.first_dividend?a("div",{staticClass:"discount-a"},[t._v("推广赚"+t._s(t.$i18n.t("money"))+t._s(e.first_dividend))]):t._e()]),a("div",[e.coupon.deduct_price?a("div",{staticClass:"now-price"},[t._v(t._s(t.price)+" "+t._s(t.$i18n.t("money"))+t._s(e.price))]):t._e(),e.coupon.deduct_price?a("div",{staticClass:"discount-price"},[t._v(" 券后价: "),e.vip_level_status&&1==e.vip_level_status.status?a("span",{staticClass:"member-span-1"},[t._v(" "+t._s(e.vip_level_status.word)+" ")]):a("span",{staticClass:"member-span-2"},[t._v(" "+t._s(t.$i18n.t("money"))+t._s(e.coupon.deduct_price)+" ")])]):a("div",{staticClass:"discount-price"},[t._v(t._s(t.price)+" "+t._s(t.$i18n.t("money"))+t._s(e.price))])]),a("dd",{directives:[{name:"show",rawName:"v-show",value:1==e.is_open_micro,expression:"items.is_open_micro == 1"}],staticClass:"s3",staticStyle:{color:"#888","font-size":"12px"}},[a("small"),t._v(" 会员价:"+t._s(t.$i18n.t("money"))+t._s(1==e.price_level?e.vip_price:e.vip_next_price)+" ")]),e.estimated_commission>0?a("div",{staticClass:"fit",staticStyle:{color:"#888","font-size":"12px"}},[a("small",[t._v(t._s(t.$i18n.t("money")))]),t._v(" "+t._s(t.$i18n.t("预估收益"))+""+t._s(e.estimated_commission)+" ")]):t._e()])]),a("div",{staticClass:"list-b",staticStyle:{"border-top":"1px solid #eee",width:"100%"}},[a("div",{directives:[{name:"clipboard",rawName:"v-clipboard:copy",value:e.title,expression:"items.title",arg:"copy"},{name:"clipboard",rawName:"v-clipboard:success",value:t.onCopy,expression:"onCopy",arg:"success"}],staticClass:"list-copy",on:{click:function(t){t.stopPropagation()}}},[t._v(" 复制标题 ")]),a("div",{staticClass:"list-share",on:{click:function(i){return i.stopPropagation(),t.postShow(e.id)}}},[t._v("分享海报")])])])})):t._e()],2),a("van-popup",{staticStyle:{width:"17.8125rem",height:"34.5rem",padding:"0",background:"none"},attrs:{closeOnClickModal:"true"},model:{value:t.posterShow,callback:function(e){t.posterShow=e},expression:"posterShow"}},[a("div",{staticClass:"code_box",staticStyle:{width:"100%",height:"100%",overflow:"hidden"}},[a("div",{staticStyle:{width:"100%",height:"31.25rem","border-radius":"0.375rem"}},[a("img",{staticStyle:{width:"100%","border-radius":"0.375rem"},attrs:{src:"data:"+t.posterImg.mime+";base64,"+t.posterImg.base64Image}})]),a("div",{staticClass:"icon_close",on:{click:function(e){t.posterShow=!1}}},[a("i",{staticClass:"iconfont icon-close11"})])])])],1)},s=[],o=(i("e7e5"),i("d399")),n=i("c7eb"),r=i("1da1"),d=i("5530"),l=(i("14d9"),i("99af"),i("ac0d")),c=i("5880"),m=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"page"},[a("div",{staticClass:"c-swipe"},[a("div",{staticStyle:{margin:"0 0.5rem"}},[a("img",{staticStyle:{height:"auto"},attrs:{width:"100%",src:t.top_img},nativeOn:{click:function(e){return t.bannerClick.apply(null,arguments)}}})])]),a("van-sticky",{attrs:{"offset-top":"2.55rem"}},[a("div",{staticClass:"ment",staticStyle:{background:"#fff"}},[t.fun.isTextEmpty(t.category)?t._e():a("van-swipe",{staticClass:"sw_list",class:{sw_list_6:null!=t.datas&&t.datas.length>0&&t.datas[0].length<=5,sw_list_12:null!=t.datas&&t.datas.length>0&&t.datas[0].length>5,sw_list_0:0==t.datas.length},attrs:{autoplay:0,"indicator-color":"#f15353","show-indicators":!1,width:3==t.fun.getPhoneEnv()?375:t.clientWidths}},t._l(t.datas,(function(e,s){return a("van-swipe-item",{key:s},[a("ul",t._l(e,(function(e,s){return a("li",{key:s,class:[3==t.fun.getPhoneEnv()?"pcStyle":""],staticStyle:{float:"left"}},[a("div",{on:{click:function(i){return t.bindCategory(e.id)}}},[e.thumb?a("div",{staticClass:"image"},[a("img",{attrs:{src:e.thumb}})]):t._e(),e.thumb?t._e():a("div",{staticClass:"image"},[a("img",{attrs:{src:i("253a")}})]),a("p",{staticClass:"text"},[t._v(t._s(e.name))])])])})),0)])})),1),a("van-row",{attrs:{id:"sort"}},[a("van-col",{attrs:{span:7}},[t.supplier?t._e():a("div",{staticClass:"grid-content",class:{active:1==t.sort.tab,up:1==t.sort.up,down:1==t.sort.down},on:{click:function(e){return t.toggle(e,1)}}},[t._v(" 综合推荐 ")]),t.supplier?a("div",{staticClass:"grid-content",class:{active:5==t.sort.tab,up:5==t.sort.up,down:5==t.sort.down},on:{click:function(e){return t.toggle(e,5)}}},[t._v(" 综合 ")]):t._e()]),a("van-col",{attrs:{span:7}},[a("div",{staticClass:"grid-content",class:{active:2==t.sort.tab,up:2==t.sort.up,down:2==t.sort.down},on:{click:function(e){return t.toggle(e,2)}}},[t._v(" 销量 ")])]),a("van-col",{attrs:{span:7}},[a("div",{staticClass:"grid-content",class:{active:3==t.sort.tab,up:3==t.sort.up,down:3==t.sort.down},on:{click:function(e){return t.toggle(e,3)}}},[t._v(" 价格 ")])]),a("van-col",{attrs:{span:3}},[a("div",{staticClass:"sort_icon"},[a("i",{directives:[{name:"show",rawName:"v-show",value:t.view,expression:"view"}],staticClass:"iconfont icon-sort_b",on:{click:function(e){return t.$store.commit("views")}}}),a("i",{directives:[{name:"show",rawName:"v-show",value:!t.view,expression:"!view"}],staticClass:"iconfont icon-sort_a",on:{click:function(e){return t.$store.commit("views")}}})])])],1)],1)])],1)},p=[],u=(i("4e82"),{props:["cat_set","category","top_img"],data:function(){return{show:!0,sort:{up:!1,dows:!1,tab:0},supplier:!1,clientWidths:"",view_mode:"01",carousels:[{id:3,uniacid:2,name:"11",link:"",thumb:"https://bztang.cdlfjy.com/attachment/images/2/2019/05/hV12AOIipHh4VoR1iI4yoL6SFV41f2.jpg",display_order:1,is_open:1,created_at:"2019-05-16 16:13:45",updated_at:"2019-05-16 16:13:45",deleted_at:null,min_link:"",min_url:""},{id:5,uniacid:2,name:"2",link:"https://bztang.cdlfjy.com/addons/yun_shop/?menu#/home?i=12",thumb:"https://bztang.cdlfjy.com/attachment/images/2/2019/12/SxZA32XxuaUi233I49ZMMWDsD94IxG.jpg",display_order:0,is_open:1,created_at:"2019-12-27 08:58:54",updated_at:"2019-12-27 09:23:06",deleted_at:null,min_link:"",min_url:""},{id:6,uniacid:2,name:"33",link:"https://bztang.cdlfjy.com/addons/yun_shop/?menu#/home?i=12",thumb:"https://bztang.cdlfjy.com/image/e95d14a1b91aa82a7ba17d6870d33d10.png",display_order:2,is_open:1,created_at:"2019-12-27 08:59:20",updated_at:"2020-05-14 15:08:49",deleted_at:null,min_link:"",min_url:"12121"}]}},computed:Object(d["a"])(Object(d["a"])({},Object(c["mapState"])(["view"])),{},{datas:function(){return this.fun.chunk(this.category,10)}}),methods:{sortOut:function(t){this.$emit("watchSort",t)},bindCategory:function(t){this.$emit("bindCategory",t)},showbox:function(t){},toggle:function(t,e){this.sort.up=e;var i="";4==e?this.$emit("showscreen"):(1==e&&(i="1"),2==e&&(i="2"),3==e&&(i="3"),5==e&&(i="id"),"grid-content up"==t.target.className?(t.target.className="grid-content down",this.sortOut({sort_name:i,sort_status:"1"})):(t.target.className="grid-content up",this.sortOut({sort_name:i,sort_status:"2"})))},bannerClick:function(){this.fun.isTextEmpty(this.cat_set.cat_adv_url)||(window.location.href=this.cat_set.cat_adv_url)}},mounted:function(){this.clientWidths=document.body.clientWidth},created:function(){this.clientWidths=document.body.clientWidth},activated:function(){this.clientWidths=document.body.clientWidth}}),g=u,f=(i("bf91"),i("2877")),h=Object(f["a"])(g,m,p,!1,null,"0b8d4a62",null),v=h.exports,b=i("eb17"),_={mixins:[l["a"]],components:{cHeader:v,yzBlank:b["default"]},data:function(){return{goods:[],category:[],cat_set:"",top_img:"",sort_name:1,sort_status:1,goods_name:"",goods_style:"01",page:1,isLoadMore:!0,total_page:0,cate_id:"",posterShow:!1,posterImg:""}},created:function(){1!==this.$route.params.fromHome&&(this.goods_name="",this.sort_name=1,this.sort_status=1,this.cate_id=this.$route.params.id,this.getData())},beforeRouteLeave:function(t,e,i){window.categoryChildScrollTop=document.documentElement.scrollTop||document.body.scrollTop,i()},mounted:function(){window.categoryChildScrollTop=0},activated:function(){1===this.$route.params.fromHome?(this.goods_name="",this.sort_name=1,this.sort_status=1,this.cate_id=this.$route.params.id,this.getData()):this.lastScrollHeight()},computed:Object(d["a"])({},Object(c["mapState"])(["view"])),methods:{lastScrollHeight:function(){window.location.href.indexOf("#/category_child")>-1&&setTimeout((function(){window.scrollTo(0,window.categoryChildScrollTop)}),200)},initData:function(){this.page=1,this.isLoadMore=!0,this.total_page=0},enterSearch:function(){this.getData()},getData:function(){var t=this;return Object(r["a"])(Object(n["a"])().mark((function e(){var i,a,s,o,r,d,l;return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.initData(),i=t.sort_name,a=t.sort_status,s=t.cate_id,o=t.goods_name,e.next=4,$http.get("goods.category.getThirdCategory",{cate_id:s,sort_name:i,sort_status:a,goods_name:o});case 4:if(r=e.sent,1==r.result){e.next=7;break}return e.abrupt("return");case 7:for(t.fun.isTextEmpty(r.data.category)||(t.category=r.data.category,d={id:t.$route.params.id,name:"全部商品",thumb:"https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/classificationicon@2x.png"},t.category.push(d)),t.cat_set=r.data.cat_set,l=0;l<20;l++);t.goods_style=r.data.goods_style,t.goods=r.data.goods.data,t.top_img=r.data.top_img,t.isLoadMore=!0,t.total_page=r.data.goods.last_page,t.total_page||(t.total_page=0);case 16:case"end":return e.stop()}}),e)})))()},onCopy:function(){Object(o["a"])({message:"复制成功",position:"center",duration:5e3})},getMoreData:function(){var t=this;this.isLoadMore=!1,this.page>=this.total_page||(this.page+=1,$http.get("goods.category.getThirdCategory",{page:this.page,cate_id:this.cate_id,sort_name:this.sort_name,sort_status:this.sort_status,getData:this.getData}).then((function(e){if(t.isLoadMore=!0,1===e.result){var i=e.data.goods.data;t.goods=t.goods.concat(i)}else t.page=t.page-1,t.isLoadMore=!1})))},gotosearch:function(){this.$router.push(this.fun.getUrl("search",{fromHome:1}))},sortOut:function(t){this.sort_name=t.sort_name,this.sort_status=t.sort_status,this.getData()},bindCategory:function(t){this.cate_id=t,this.getData()},gotoDetail:function(t){this.$router.push(this.fun.getUrl("goods",{id:t}))},postShow:function(t){var e=this;$http.get("goods.goods-poster.generate-goods-poster",{id:t},"").then((function(t){1==t.result?(e.posterImg=t.data,e.posterShow=!0):(e.posterShow=!1,e.$dialog.alert({message:t.msg}))})).catch((function(t){toastPoster.clear()}))}}},w=_,x=(i("493d"),Object(f["a"])(w,a,s,!1,null,"59208472",null));e["default"]=x.exports},bf91:function(t,e,i){"use strict";i("d5e87")},d5e87:function(t,e,i){var a=i("9fe8f");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var s=i("499e").default;s("5e03df24",a,!0,{sourceMap:!1,shadowMode:!1})},dec5:function(t,e,i){t.exports=i.p+"static/app/img/jd-sprites.fb1e8d8b.png"}}]);