3 lines
33 KiB
JavaScript
3 lines
33 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-578f6044","chunk-2d0d83d6"],{"0aec":function(t,e,i){var o=i("ae44");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var a=i("499e").default;a("13467a40",o,!0,{sourceMap:!1,shadowMode:!1})},"189b":function(t,e,i){var o=i("24fb"),a=i("1de5"),r=i("dec5");e=o(!1);var n=a(r);e.push([t.i,'.c-swipe[data-v-082412c6]{background-color:#fff}ul[data-v-082412c6]{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-082412c6],ul li[data-v-082412c6]{padding:0}ul li[data-v-082412c6]{list-style:none;width:20%;float:left;margin:0;margin-bottom:.625rem}ul li a[data-v-082412c6]{color:#2b2f33}ul li .image[data-v-082412c6]{height:11vw;width:100%;overflow:hidden}ul li img[data-v-082412c6]{width:50%;vertical-align:middle;height:90%;border-radius:50%}ul li p[data-v-082412c6]{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-082412c6]{height:2.625rem}.sw_list[data-v-082412c6]{background-color:#fff}.sw_list_6[data-v-082412c6]{min-height:5.4rem}.sw_list_0[data-v-082412c6]{min-height:0}#sort[data-v-082412c6]{background:#fff;padding-bottom:.5rem;border-bottom:.0625rem solid #f9f9f9;font-size:12px;color:#333}#sort .grid-content.up[data-v-082412c6]:after{background-position:-10.625rem -.9375rem}#sort .grid-content.down[data-v-082412c6]:after{background-position:-10.625rem 0}#sort .grid-content.down[data-v-082412c6],#sort .grid-content.up[data-v-082412c6]{color:#f15353}#sort .grid-content[data-v-082412c6]: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-082412c6]{color:#555}",""]),t.exports=e},"1da1":function(t,e,i){"use strict";i.d(e,"a",(function(){return a}));i("d3b7");function o(t,e,i,o,a,r,n){try{var s=t[r](n),c=s.value}catch(l){return void i(l)}s.done?e(c):Promise.resolve(c).then(o,a)}function a(t){return function(){var e=this,i=arguments;return new Promise((function(a,r){var n=t.apply(e,i);function s(t){o(n,a,r,s,c,"next",t)}function c(t){o(n,a,r,s,c,"throw",t)}s(void 0)}))}}},"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")},"62ec":function(t,e,i){"use strict";i("e13a")},"79db":function(t,e,i){t.exports=i.p+"static/app/img/empty-image-search.ef236a93.png"},ac0d:function(t,e,i){"use strict";i.d(e,"a",(function(){return r}));var o=document.documentElement,a=document.body,r={data:function(){return{}},activated:function(){window.addEventListener("scroll",this.handleScroll)},deactivated:function(){window.removeEventListener("scroll",this.handleScroll)},methods:{getScrollTop:function(){var t=0;return o&&o.scrollTop?t=o.scrollTop:a&&(t=a.scrollTop),t},getClientHeight:function(){var t=0;return t=a.clientHeight&&o.clientHeight?Math.min(a.clientHeight,o.clientHeight):Math.max(a.clientHeight,o.clientHeight),t},getScrollHeight:function(){return Math.max(a.scrollHeight,o.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 o=i("24fb");e=o(!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 o=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{class:[t.fun.isIphoneX()?"iphoneXStyle":""],attrs:{id:"category"}},[o("van-sticky",[o("div",{staticClass:"search-box"},[o("div",{staticClass:"search-content"},[o("form",{attrs:{action:"#"},on:{submit:function(t){t.preventDefault()}}},[o("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)}}})]),o("i",{staticClass:"iconfont icon-sousuo1",staticStyle:{color:"#ccc"},on:{click:t.enterSearch}})])])]),o("c-header",{attrs:{cat_set:t.cat_set,top_img:t.top_img,category:t.category},on:{watchSort:t.sortOut,bindCategory:t.bindCategory}}),o("div",{staticClass:"tips"},[o("p",{staticClass:"icon"},[o("van-icon",{attrs:{name:"success"}})],1),t._v(" 根据大部分用户选择的商品,为你推荐 ")]),o("yz-blank",{directives:[{name:"show",rawName:"v-show",value:t.view,expression:"view"}],attrs:{datas:t.goods,text:"暂无信息",isBtn:!1}}),o("div",{directives:[{name:"show",rawName:"v-show",value:t.view,expression:"view"}],staticClass:"main"},t._l(t.goods,(function(e,a){return o("dl",{key:a,on:{click:function(i){return i.stopPropagation(),i.preventDefault(),t.gotoDetail(e.id)}}},[e.thumb?o("dt",[o("img",{attrs:{src:e.thumb},on:{click:function(i){return i.stopPropagation(),i.preventDefault(),t.gotoDetail(e.id)}}})]):t._e(),e.thumb?t._e():o("dt",[o("img",{attrs:{src:i("253a")}})]),o("dd",{staticClass:"m-text",staticStyle:{"-webkit-box-orient":"vertical"}},[t._v(" "+t._s(t._f("escapeTitle")(e.title))+" ")]),t.showprice?t._e():o("dd",{staticClass:"s3",class:{heightAuto:"item.is_open_micro==1"},staticStyle:{"line-height":"1.5625rem",height:"3.125rem",margin:"0.25rem 0.375rem"}},[o("div",{staticClass:"s2"},[o("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))])]),o("div",{staticClass:"s3-price",style:t.styleCon},[o("small",[t._v(t._s(t.$i18n.t("money")))]),e.vip_level_status&&1==e.vip_level_status.status?o("span",{staticClass:"s3-price-span1"},[t._v(" "+t._s(e.vip_level_status.word)+" ")]):o("span",{staticClass:"s3-price-span2"},[t._v(" "+t._s(e.price)+" ")])]),o("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?o("div",{staticClass:"s3",staticStyle:{color:"#888","font-size":"12px"}},[o("small",[t._v(t._s(t.$i18n.t("money")))]),o("span",[t._v(t._s(t.$i18n.t("预估收益"))+":"+t._s(e.estimated_commission))])]):t._e()])])})),0),o("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,a){return o("div",{key:a,staticClass:"list",on:{click:function(i){return i.stopPropagation(),i.preventDefault(),t.gotoDetail(e.id)}}},[o("div",{staticClass:"imgs"},[e.thumb?o("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():o("img",{attrs:{src:i("253a")}})]),o("div",{staticClass:"shop_info"},[o("ul",[o("li",{staticClass:"title"},[t._v(" "+t._s(t._f("escapeTitle")(e.title))+" ")])]),o("div",[o("ul",{staticClass:"main2_price"},[t.showprice?t._e():o("li",{staticClass:"member"},[t._v(" "+t._s(t.price)+" "),o("small",[t._v(t._s(t.$i18n.t("money")))]),e.vip_level_status&&1==e.vip_level_status.status?o("span",{staticClass:"member-span-1"},[t._v(" "+t._s(e.vip_level_status.word)+" ")]):o("span",{staticClass:"member-span-2"},[t._v(" "+t._s(e.price)+" ")])])]),o("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"}},[o("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?o("div",{staticClass:"fit",staticStyle:{color:"#888","font-size":"12px"}},[o("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,a){return o("div",{key:a,staticClass:"list",staticStyle:{"flex-wrap":"wrap","margin-bottom":"0.75rem"},on:{click:function(i){return i.stopPropagation(),i.preventDefault(),t.gotoDetail(e.id)}}},[o("div",{staticClass:"imgs"},[e.thumb?o("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():o("img",{attrs:{src:i("253a")}})]),o("div",{staticClass:"shop_info"},[o("ul",[o("li",{staticClass:"title"},[t._v(" "+t._s(t._f("escapeTitle")(e.title))+" ")])]),o("div",[o("div",{staticClass:"discount"},[1==e.coupon.coupon_method?o("div",{staticClass:"discount-a"},[t._v("优惠券"+t._s(t.$i18n.t("money"))+t._s(e.coupon.deduct))]):t._e(),2==e.coupon.coupon_method?o("div",{staticClass:"discount-a"},[t._v("折扣:"+t._s(e.coupon.discount)+"折")]):t._e(),e.first_dividend?o("div",{staticClass:"discount-a"},[t._v("推广赚"+t._s(t.$i18n.t("money"))+t._s(e.first_dividend))]):t._e()]),o("div",[e.coupon.deduct_price?o("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?o("div",{staticClass:"discount-price"},[t._v(" 券后价: "),e.vip_level_status&&1==e.vip_level_status.status?o("span",{staticClass:"member-span-1"},[t._v(" "+t._s(e.vip_level_status.word)+" ")]):o("span",{staticClass:"member-span-2"},[t._v(" "+t._s(t.$i18n.t("money"))+t._s(e.coupon.deduct_price)+" ")])]):o("div",{staticClass:"discount-price"},[t._v(t._s(t.price)+" "+t._s(t.$i18n.t("money"))+t._s(e.price))])]),o("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"}},[o("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?o("div",{staticClass:"fit",staticStyle:{color:"#888","font-size":"12px"}},[o("small",[t._v(t._s(t.$i18n.t("money")))]),t._v(" "+t._s(t.$i18n.t("预估收益"))+":"+t._s(e.estimated_commission)+" ")]):t._e()])]),o("div",{staticClass:"list-b",staticStyle:{"border-top":"1px solid #eee",width:"100%"}},[o("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(" 复制标题 ")]),o("div",{staticClass:"list-share",on:{click:function(i){return i.stopPropagation(),t.postShow(e.id)}}},[t._v("分享海报")])])])})):t._e()],2),o("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"}},[o("div",{staticClass:"code_box",staticStyle:{width:"100%",height:"100%",overflow:"hidden"}},[o("div",{staticStyle:{width:"100%",height:"31.25rem","border-radius":"0.375rem"}},[o("img",{staticStyle:{width:"100%","border-radius":"0.375rem"},attrs:{src:"data:"+t.posterImg.mime+";base64,"+t.posterImg.base64Image}})]),o("div",{staticClass:"icon_close",on:{click:function(e){t.posterShow=!1}}},[o("i",{staticClass:"iconfont icon-close11"})])])])],1)},a=[],r=(i("e7e5"),i("d399")),n=i("c7eb"),s=i("1da1"),c=i("5530"),l=(i("99af"),i("ac0d")),d=i("5880"),u=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{staticClass:"page"},[o("div",{staticClass:"c-swipe"},[o("div",{staticStyle:{margin:"0 0.5rem"}},[o("img",{staticStyle:{height:"auto"},attrs:{width:"100%",src:t.top_img},nativeOn:{click:function(e){return t.bannerClick.apply(null,arguments)}}})])]),o("van-sticky",{attrs:{"offset-top":"2.55rem"}},[o("div",{staticClass:"ment",staticStyle:{background:"#fff"}},[t.fun.isTextEmpty(t.category)?t._e():o("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,a){return o("van-swipe-item",{key:a},[o("ul",t._l(e,(function(e,a){return o("li",{key:a,class:[3==t.fun.getPhoneEnv()?"pcStyle":""],staticStyle:{float:"left"}},[o("div",{on:{click:function(i){return t.bindCategory(e.id)}}},[e.thumb?o("div",{staticClass:"image"},[o("img",{attrs:{src:e.thumb}})]):t._e(),e.thumb?t._e():o("div",{staticClass:"image"},[o("img",{attrs:{src:i("253a")}})]),o("p",{staticClass:"text"},[t._v(t._s(e.name))])])])})),0)])})),1),o("van-row",{attrs:{id:"sort"}},[o("van-col",{attrs:{span:7}},[t.supplier?t._e():o("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?o("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()]),o("van-col",{attrs:{span:7}},[o("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(" 销量 ")])]),o("van-col",{attrs:{span:7}},[o("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(" 价格 ")])]),o("van-col",{attrs:{span:3}},[o("div",{staticClass:"sort_icon"},[o("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")}}}),o("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)},m=[],p=(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:"https://bztang.cdlfjy.com/addons/yun_shop/?menu#/home?i=2",thumb:"",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:"",thumb:"",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:"",thumb:"",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(c["a"])(Object(c["a"])({},Object(d["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}}),h=p,f=(i("62ec"),i("2877")),g=Object(f["a"])(h,u,m,!1,null,"082412c6",null),v=g.exports,_=i("eb17"),b={mixins:[l["a"]],components:{cHeader:v,yzBlank:_["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(c["a"])({},Object(d["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(s["a"])(Object(n["a"])().mark((function e(){var i,o,a,r,s,c,l;return Object(n["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t.initData(),i=t.sort_name,o=t.sort_status,a=t.cate_id,r=t.goods_name,e.next=4,$http.get("goods.category.getThirdCategory",{cate_id:a,sort_name:i,sort_status:o,goods_name:r});case 4:if(s=e.sent,1==s.result){e.next=7;break}return e.abrupt("return");case 7:for(t.fun.isTextEmpty(s.data.category)||(t.category=s.data.category,c={id:t.$route.params.id,name:"全部商品",thumb:"https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/classificationicon@2x.png"},t.category.push(c)),t.cat_set=s.data.cat_set,l=0;l<20;l++);t.goods_style=s.data.goods_style,t.goods=s.data.goods.data,t.top_img=s.data.top_img,t.isLoadMore=!0,t.total_page=s.data.goods.last_page,t.total_page||(t.total_page=0);case 16:case"end":return e.stop()}}),e)})))()},onCopy:function(){Object(r["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=b,y=(i("493d"),Object(f["a"])(w,o,a,!1,null,"59208472",null));e["default"]=y.exports},c7eb:function(t,e,i){"use strict";i.d(e,"a",(function(){return a}));i("a4d3"),i("e01a"),i("d3b7"),i("d28b"),i("3ca3"),i("ddb0"),i("b636"),i("944a"),i("0c47"),i("23dc"),i("d9e2"),i("3410"),i("159b"),i("b0c0"),i("131a"),i("fb6a");var o=i("53ca");function a(){
|
||
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
||
a=function(){return t};var t={},e=Object.prototype,i=e.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",s=r.asyncIterator||"@@asyncIterator",c=r.toStringTag||"@@toStringTag";function l(t,e,i){return Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch($){l=function(t,e,i){return t[e]=i}}function d(t,e,i,o){var a=e&&e.prototype instanceof p?e:p,r=Object.create(a.prototype),n=new S(o||[]);return r._invoke=function(t,e,i){var o="suspendedStart";return function(a,r){if("executing"===o)throw new Error("Generator is already running");if("completed"===o){if("throw"===a)throw r;return j()}for(i.method=a,i.arg=r;;){var n=i.delegate;if(n){var s=x(n,i);if(s){if(s===m)continue;return s}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if("suspendedStart"===o)throw o="completed",i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);o="executing";var c=u(t,e,i);if("normal"===c.type){if(o=i.done?"completed":"suspendedYield",c.arg===m)continue;return{value:c.arg,done:i.done}}"throw"===c.type&&(o="completed",i.method="throw",i.arg=c.arg)}}}(t,i,n),r}function u(t,e,i){try{return{type:"normal",arg:t.call(e,i)}}catch($){return{type:"throw",arg:$}}}t.wrap=d;var m={};function p(){}function h(){}function f(){}var g={};l(g,n,(function(){return this}));var v=Object.getPrototypeOf,_=v&&v(v(L([])));_&&_!==e&&i.call(_,n)&&(g=_);var b=f.prototype=p.prototype=Object.create(g);function w(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function y(t,e){function a(r,n,s,c){var l=u(t[r],t,n);if("throw"!==l.type){var d=l.arg,m=d.value;return m&&"object"==Object(o["a"])(m)&&i.call(m,"__await")?e.resolve(m.__await).then((function(t){a("next",t,s,c)}),(function(t){a("throw",t,s,c)})):e.resolve(m).then((function(t){d.value=t,s(d)}),(function(t){return a("throw",t,s,c)}))}c(l.arg)}var r;this._invoke=function(t,i){function o(){return new e((function(e,o){a(t,i,e,o)}))}return r=r?r.then(o,o):o()}}function x(t,e){var i=t.iterator[e.method];if(void 0===i){if(e.delegate=null,"throw"===e.method){if(t.iterator["return"]&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method))return m;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var o=u(i,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,m;var a=o.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,m):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,m)}function k(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function S(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(k,this),this.reset(!0)}function L(t){if(t){var e=t[n];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function e(){for(;++o<t.length;)if(i.call(t,o))return e.value=t[o],e.done=!1,e;return e.value=void 0,e.done=!0,e};return a.next=a}}return{next:j}}function j(){return{value:void 0,done:!0}}return h.prototype=f,l(b,"constructor",f),l(f,"constructor",h),h.displayName=l(f,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,f):(t.__proto__=f,l(t,c,"GeneratorFunction")),t.prototype=Object.create(b),t},t.awrap=function(t){return{__await:t}},w(y.prototype),l(y.prototype,s,(function(){return this})),t.AsyncIterator=y,t.async=function(e,i,o,a,r){void 0===r&&(r=Promise);var n=new y(d(e,i,o,a),r);return t.isGeneratorFunction(i)?n:n.next().then((function(t){return t.done?t.value:n.next()}))},w(b),l(b,c,"Generator"),l(b,n,(function(){return this})),l(b,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var i in t)e.push(i);return e.reverse(),function i(){for(;e.length;){var o=e.pop();if(o in t)return i.value=o,i.done=!1,i}return i.done=!0,i}},t.values=L,S.prototype={constructor:S,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(C),!t)for(var e in this)"t"===e.charAt(0)&&i.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function o(i,o){return n.type="throw",n.arg=t,e.next=i,o&&(e.method="next",e.arg=void 0),!!o}for(var a=this.tryEntries.length-1;a>=0;--a){var r=this.tryEntries[a],n=r.completion;if("root"===r.tryLoc)return o("end");if(r.tryLoc<=this.prev){var s=i.call(r,"catchLoc"),c=i.call(r,"finallyLoc");if(s&&c){if(this.prev<r.catchLoc)return o(r.catchLoc,!0);if(this.prev<r.finallyLoc)return o(r.finallyLoc)}else if(s){if(this.prev<r.catchLoc)return o(r.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<r.finallyLoc)return o(r.finallyLoc)}}}},abrupt:function(t,e){for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o];if(a.tryLoc<=this.prev&&i.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var r=a;break}}r&&("break"===t||"continue"===t)&&r.tryLoc<=e&&e<=r.finallyLoc&&(r=null);var n=r?r.completion:{};return n.type=t,n.arg=e,r?(this.method="next",this.next=r.finallyLoc,m):this.complete(n)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var i=this.tryEntries[e];if(i.finallyLoc===t)return this.complete(i.completion,i.afterLoc),C(i),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var i=this.tryEntries[e];if(i.tryLoc===t){var o=i.completion;if("throw"===o.type){var a=o.arg;C(i)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,i){return this.delegate={iterator:L(t),resultName:e,nextLoc:i},"next"===this.method&&(this.arg=void 0),m}},t}},dec5:function(t,e,i){t.exports=i.p+"static/app/img/jd-sprites.fb1e8d8b.png"},e13a:function(t,e,i){var o=i("189b");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var a=i("499e").default;a("d8161226",o,!0,{sourceMap:!1,shadowMode:!1})}}]); |