PageSourceSearch

https://www.ctfmall.com/js/995.9809f738.js

js ctfmall.com collected 2026-10-09 22:41:19 UTC 36,949 bytes, 1 lines download raw bytes

1"use strict";(self["webpackChunkdemo5_vue2"]=self["webpackChunkdemo5_vue2"]||[]).push([[995],{1995:function(e,s,t){t.r(s),t.d(s,{default:function(){return p}});var i=function(){var e=this,s=e._self._c;return s("div",{staticClass:"wrapper"},[e.breadcrumbList.length>0?s("div",{class:["breadcrumb",!(e.bannerList.length<=0&&e.navList.length<=0)||e.sloganInfo&&e.sloganInfo.bgLink?"":"border-bottom-1"]},[s("div",{staticClass:"breadcrumb-cont"},[e._l(e.breadcrumbList,function(t,i){return[i<e.breadcrumbList.length-1&&t.jumpLink?s("div",{staticClass:"item is-link",on:{click:function(s){return e.navClickFn(t,t.breadcrumb)}}},[e._v(e._s(t.title))]):s("div",{staticClass:"item"},[e._v(e._s(t.title))]),i<e.breadcrumbList.length-1?s("div",{staticClass:"separator"},[e._v("/")]):e._e()]})],2)]):e._e(),e.ediInfo?s("div",{staticClass:"goods_edi_box"},[s("div",{staticClass:"goods_edi_title"},[e._v(e._s(e.ediInfo?e.ediInfo.merchantName:""))]),s("div",{staticClass:"goods_edi_body",on:{click:e.showQualificationImages}},[s("div",{staticClass:"goods_edi_body_text"},[e._v("资质证照信息")]),s("el-image",{staticClass:"goods_edi_body_icon",attrs:{src:"https://cdn.ctfmall.com/goodsother/order_tip_v5.png"}})],1)]):e.bannerList.length>0?s("div",{class:["banner-wrap",e.breadcrumbList.length>0?"has":""]},[s("div",{staticClass:"banner"},[s("el-carousel",{ref:"bannner",attrs:{autoplay:e.bannerAutoplay&&!e.isBannerPlay,interval:5e3,arrow:"never","indicator-position":"none",height:"340px"},on:{change:e.bannerChange}},[e._l(e.bannerList,function(t,i){return[1==t.isVideo?s("el-carousel-item",[s("div",{staticClass:"banner-item cursor-pointer",on:{click:function(s){return s.stopPropagation(),e.handleAdvClick(t)}}},[s("div",{staticClass:"video-box"},[s("video",{ref:"video_"+i,refInFor:!0,staticStyle:{width:"100%",height:"100%"},attrs:{src:t.imgUrl,autoplay:!1,controls:!1,loop:!1,preload:"auto"},domProps:{muted:t.muted},on:{play:function(s){return e.bannerVideoPlayCb(i)},pause:function(s){return e.bannerVideoPauseCb(i)},ended:function(s){return e.bannerVideoEndedCb(i)}}}),s("div",{staticClass:"control"},[s("div",{staticClass:"control-item cursor-pointer",on:{click:function(s){return s.stopPropagation(),e.handleBannerVideoMuted(i)}}},[t.muted?s("img",{attrs:{src:"https://cdn.ctfmall.com/goodsother/pc_soundoff_v5.png",alt:"静音"}}):s("img",{attrs:{src:"https://cdn.ctfmall.com/goodsother/pc_soundon_v5.png",alt:"声音"}})]),s("div",{staticClass:"control-item cursor-pointer",on:{click:function(s){return s.stopPropagation(),e.handleBannerVideoPlay(i)}}},[t.playing?s("img",{attrs:{src:"https://cdn.ctfmall.com/goodsother/pc_stop_v5.png",alt:"暂停中"}}):s("img",{attrs:{src:"https://cdn.ctfmall.com/goodsother/pc_play_v5.png",alt:"播放中"}})])])])])]):s("el-carousel-item",[s("div",{staticClass:"banner-item cursor-pointer",on:{click:function(s){return s.stopPropagation(),e.handleAdvClick(t)}}},[s("img",{staticClass:"img",attrs:{src:t.imgUrl,alt:t.adsName}})])])]})],2),e.bannerList.length>1?s("div",{staticClass:"swiper-arrow-1 swiper-arrow-1-left is-bg",on:{click:function(s){return s.stopPropagation(),e.handleBannerChange("prev")}}}):e._e(),e.bannerList.length>1?s("div",{staticClass:"swiper-arrow-1 swiper-arrow-1-right is-bg",on:{click:function(s){return s.stopPropagation(),e.handleBannerChange("next")}}}):e._e(),e.bannerList.length>1?s("div",{staticClass:"swiper-slider"},[s("div",{staticClass:"slider-bar"},[s("div",{staticClass:"slider-show",style:"width:"+(e.bannerCurrent+1)/e.bannerList.length*100+"%;"})])]):e._e()],1)]):e.navList.length>0||e.sloganInfo&&e.sloganInfo.bgLink?s("div",{class:["slogan",e.breadcrumbList.length>0?"has":""]},[s("div",{class:["nav-list",e.sloganInfo&&e.sloganInfo.bgLink?"has-img":""],style:(e.sloganInfo&&e.sloganInfo.bgColor?"background-color:"+e.sloganInfo.bgColor+";":"")+"height: "+e.sloganHeight+"px;"},[e.navList.length>0?s("div",{staticClass:"cont",style:"margin-top:"+(e.sloganHeight-196)+"px;"},[s("div",{staticClass:"name font-title"},[e._v(e._s(e.breadcrumbList[e.breadcrumbList.length-1].title))]),s("div",{class:["nav-scroll-wrap",e.navShowArrow?"
1show-arrow":""]},[s("div",{ref:"navScrollContainer",staticClass:"nav-scroll-container"},[s("div",{staticClass:"nav-scroll-content"},[s("div",{ref:"navScrollBox",staticClass:"nav-scroll-box"},e._l(e.navList,function(t,i){return s("div",{key:i,ref:"navScrollItem"+i,refInFor:!0,class:["item",t.jumpLink?"is-link":""],on:{click:function(s){return e.navJumpFn(t,i)}}},[e._v(e._s(t.title))])}),0)])]),e.navShowArrow?s("div",{staticClass:"btn-arrow btn-arrow-left cursor-pointer",on:{click:function(s){return e.handleNavChange("left")}}}):e._e(),e.navShowArrow?s("div",{staticClass:"btn-arrow btn-arrow-right cursor-pointer",on:{click:function(s){return e.handleNavChange("right")}}}):e._e()])]):e._e(),e.sloganInfo&&e.sloganInfo.bgLink?s("div",{staticClass:"bg"},[e.sloganInfo.isVideo?s("video",{staticClass:"img",attrs:{src:e.sloganInfo.bgLink,autoplay:!0,controls:!1,loop:!0,preload:"auto"},domProps:{muted:!0}}):s("el-image",{staticClass:"img",attrs:{src:e.sloganInfo.bgLink,fit:"cover"}})],1):e._e()])]):e._e(),!e.screen.hide&&e.dataList.length>0?s("div",{staticClass:"screen-bar",style:`position:${e.navList.length<=0&&(!e.sloganInfo||!e.sloganInfo.bgLink)||e.scrollTop>=(e.navList.length>0||e.sloganInfo&&e.sloganInfo.bgLink?e.sloganHeight-e.breadcrumbHeight:0)?"sticky":"initial"};top:${e.navList.length>0||e.sloganInfo&&e.sloganInfo.bgLink?e.contentTop-e.sloganHeight+e.breadcrumbHeight:e.contentTop}px;`},[s("div",{staticClass:"cont"},[s("div",{staticClass:"screen-left"},[s("div",{staticClass:"trigger",on:{click:e.handleScreen}},[s("p",[e._v(e._s(e.screen.show?"收起":"展开")+"筛选")]),s("img",{attrs:{src:"https://cdn.ctfmall.com/goodsother/pc_filter_v5.png",alt:"筛选"}})])]),s("div",{staticClass:"screen-center"},[s("div",{staticClass:"total"},[e._v("展示"),s("span",[e._v(e._s(e.screen.show?e.screen.screenTotal:e.pagination.listTotal))]),e._v("件商品")]),e.showScreenClear?s("div",{staticClass:"screen-result"},[s("div",{staticClass:"result-list"},[e._l(e.screen.screenList,function(t,i){return[0==t.isFill&&t.list&&t.list.length>0?[e._l(t.list,function(i,n){return[i.checked?s("div",{staticClass:"result-item cursor-pointer",on:{click:function(s){return s.stopPropagation(),e.handleScreenClear(t.key,i.value,n)}}},[e._v(e._s(i.name)),s("img",{attrs:{src:"https://cdn.ctfmall.com/goodsother/pc_close_v5.png",alt:"清除"}})]):e._e()]})]:""!=e.screen.screenChoice[t.key].children_list[t.list[0].name]&&e.screen.screenChoice[t.key].children_list[t.list[0].name]>=0||t.list&&t.list[1]&&""!=e.screen.screenChoice[t.key].children_list[t.list[1].name]&&e.screen.screenChoice[t.key].children_list[t.list[1].name]>=0?[s("div",{staticClass:"result-item cursor-pointer",on:{click:function(s){return s.stopPropagation(),e.handleScreenClear(t.key,"","","input")}}},[e._v("¥"+e._s(e.screen.screenChoice[t.key].children_list[t.list[0].name]||0)+e._s(t.list&&t.list[1]?" - "+(e.screen.screenChoice[t.key].children_list[t.list[1].name]>0?"¥"+e.screen.screenChoice[t.key].children_list[t.list[1].name]:"不限"):"")),s("img",{attrs:{src:"https://cdn.ctfmall.com/goodsother/pc_close_v5.png",alt:"清除"}})])]:e._e()]})],2),s("div",{directives:[{name:"show",rawName:"v-show",value:e.showScreenClear,expression:"showScreenClear"}],staticClass:"clear cursor-pointer",on:{click:function(s){return s.stopPropagation(),e.handleScreenReset.apply(null,arguments)}}},[e._v("清空全部")])]):e._e()]),s("div",{staticClass:"screen-right"},[s("el-popover",{attrs:{placement:"bottom",width:"194","visible-arrow":!1,"popper-class":"sort-popover el-popover-no-gap",trigger:"manual","append-to-body":!1,"popper-options":{boundariesElement:"body"}},model:{value:e.sortVisible,callback:function(s){e.sortVisible=s},expression:"sortVisible"}},[s("div",{staticClass:"sort-list",on:{mouseenter:e.sortPopoverShowFn,mouseleave:e.sortPopoverHideFn}},e._l(e.sortList,function(t,i){return s("div",{key:i,class:["item",i==e.sortCurrent?"active":""],on:{click:function(s){return e.handleSort(i)}}},[e._v(e._s(t.name))])}),0),s("div",{staticClass:"btn-order",attrs:{slot:"reference"},on:{mouseenter:e.sortPopoverShowFn,mouseleave:e.sortPopoverHideFn},slot:"reference"},[s("p",[e._v("排序方式:")]),s("span",[e._v(e._s(e.sortList[e.sortCurrent].name))]),s("img",{class:[e.sortVisible?"show":""],attrs:{src:"https://cdn.ctfmall.com/goodsother/pc_arrowdown_v5.png",alt:"箭头"}}
1)])])],1)]),s("div",{staticClass:"bor border-bottom-1"})]):e._e(),s("div",{class:["container",e.screen.show?"show":""]},[s("div",{staticClass:"screen-detail"},[s("div",{staticClass:"screen-wrap"},[s("div",{staticClass:"screen-box"},[s("el-collapse",e._l(e.screen.screenList,function(t,i){return s("el-collapse-item",{key:i,attrs:{name:t.key}},[s("template",{slot:"title"},[s("div",{staticClass:"collapse-hd"},[s("p",[e._v(e._s(t.name))]),s("img",{attrs:{src:"https://cdn.ctfmall.com/goodsother/pc_arrowdown_v5.png",alt:"箭头"}})])]),s("div",{staticClass:"collapse-bd"},[0==t.isFill&&t.list&&t.list.length>0?s("div",{staticClass:"screen-list"},e._l(t.list,function(i,n){return s("div",{key:n,class:["screen-item cursor-pointer",i.checked?"active":"",i.disabled?"disabled":""],on:{click:function(s){return s.stopPropagation(),e.handleScreenChoice(t.key,n,i.value)}}},[e._v(e._s(i.name))])}),0):e._e(),0!=t.isFill&&t.list&&t.list.length>0?s("div",{staticClass:"screen-input"},[s("div",{staticClass:"input-wrap"},[s("el-input",{attrs:{value:e.screen.screenChoice[t.key].children_list[t.list[0].name],placeholder:t.list&&t.list[1]?"最低":"请输入",disabled:t.list[0].disabled,maxlength:9},on:{input:s=>e.changeScreenInput(s,t.key,t.list[0].name),blur:s=>e.changeScreenBlur(s,t.key,t.list[0].name,0,t.list.length>=2,t.list&&t.list[1]?t.list[1].name:"")}})],1),t.list&&t.list[1]?s("div",{staticClass:"centerline"}):e._e(),t.list&&t.list[1]?s("div",{staticClass:"input-wrap"},[s("el-input",{attrs:{value:e.screen.screenChoice[t.key].children_list[t.list[1].name],placeholder:"最高",disabled:t.list[1].disabled,maxlength:9},on:{input:s=>e.changeScreenInput(s,t.key,t.list[1].name),blur:s=>e.changeScreenBlur(s,t.key,t.list[1].name,1,t.list.length>=2,t.list[0].name)}})],1):e._e()]):e._e()])],2)}),1)],1),s("div",{staticClass:"opera"},[s("div",{staticClass:"common-btn common-btn-fill-red-2",on:{click:function(s){return s.stopPropagation(),e.handleScreenConfirm.apply(null,arguments)}}},[e._v("确认")])])])]),s("div",{staticClass:"content"},[s("div",{ref:"goodsList",staticClass:"goods-list"},[e._l(e.dataList,function(t,i){return[e.getAdvIndex(i)>=0&&e.advList[e.getAdvIndex(i)]&&e.advList[e.getAdvIndex(i)].imgUrl?[s("div",{staticClass:"item-adv cursor-pointer",on:{click:function(s){e.handleAdvClick(e.advList[e.getAdvIndex(i)]&&e.advList[e.getAdvIndex(i)])}}},[1==e.advList[e.getAdvIndex(i)].isVideo?s("video",{staticClass:"adv-img",attrs:{src:e.advList[e.getAdvIndex(i)].imgUrl,autoplay:!0,controls:!1,loop:!0,preload:"auto"},domProps:{muted:!0}}):s("img",{staticClass:"adv-img",attrs:{src:e.advList[e.getAdvIndex(i)].imgUrl,alt:e.advList[e.getAdvIndex(i)].adsName}})])]:e._e(),s("div",{key:i,staticClass:"item cursor-pointer",on:{click:function(s){return e.toGoodsDetail(t)}}},[s("div",{staticClass:"top"},[s("div",{staticClass:"tags"},[1==t.IsHot?s("div",{staticClass:"tags-txt"},[e._v("热卖")]):e._e(),1==t.IsNew?s("div",{staticClass:"tags-txt"},[e._v("新品")]):e._e(),!e.userInfo.staff&&t.integralSpecialFunds?s("div",{staticClass:"tags-txt"}
1,[e._v("积分专享")]):e._e()])]),s("div",{staticClass:"thumb"},[t.bannerItem&&t.bannerItem.length>1?s("div",{staticClass:"carousel"},[s("el-carousel",{ref:"goods_carousel_"+i,refInFor:!0,attrs:{autoplay:!1,arrow:"never","indicator-position":"none",height:e.screen.show?"246px":"311px"},on:{change:s=>e.swiperChange(s,i)}},e._l(t.bannerItem,function(i,n){return s("el-carousel-item",{key:n},[s("div",{staticClass:"img-box"},[s("el-image",{attrs:{src:i,fit:"cover"}}),t.watermark&&t.watermark.length>0&&0==n?s("div",{staticClass:"watermark"},e._l(t.watermark,function(t,i){return s("div",{key:i,staticClass:"watermark-box"},[t.topLink?s("div",{staticClass:"watermark-item"},[s("el-image",{attrs:{src:t.topLink}})],1):e._e(),t.rightLink?s("div",{staticClass:"watermark-item"},[s("el-image",{attrs:{src:t.rightLink}})],1):e._e(),t.bottomLink?s("div",{staticClass:"watermark-item"},[s("el-image",{attrs:{src:t.bottomLink}})],1):e._e(),t.leftLink?s("div",{staticClass:"watermark-item"},[s("el-image",{attrs:{src:t.leftLink}})],1):e._e()])}),0):e._e()],1)])}),1),s("div",{staticClass:"swiper-arrow-2 is-bg swiper-arrow-2-left",on:{click:function(s){return s.stopPropagation(),e.handleSwiperChange("prev",i)}}}),s("div",{staticClass:"swiper-arrow-2 is-bg swiper-arrow-2-right",on:{click:function(s){return s.stopPropagation(),e.handleSwiperChange("next",i)}}}),s("div",{staticClass:"swiper-slider"},[s("div",{staticClass:"slider-bar"},[s("div",{staticClass:"slider-show",style:"width:"+(t.bannerCurrent+1)/t.bannerItem.length*100+"%;"})])])],1):s("div",{staticClass:"img-box"},[s("el-image",{attrs:{src:t.bannerItem&&t.bannerItem.length>0?t.bannerItem[0]:t.thumbHD||t.thum,fit:"cover"}}),t.watermark&&t.watermark.length>0?s("div",{staticClass:"watermark"},e._l(t.watermark,function(t,i){return s("div",{key:i,staticClass:"watermark-box"},[t.topLink?s("div",{staticClass:"watermark-item"},[s("el-image",{attrs:{src:t.topLink,fit:"cover"}})],1):e._e(),t.rightLink?s("div",{staticClass:"watermark-item"},[s("el-image",{attrs:{src:t.rightLink,fit:"cover"}})],1):e._e(),t.bottomLink?s("div",{staticClass:"watermark-item"},[s("el-image",{attrs:{src:t.bottomLink,fit:"cover"}})],1):e._e(),t.leftLink?s("div",{staticClass:"watermark-item"},[s("el-image",{attrs:{src:t.leftLink,fit:"cover"}})],1):e._e()])}),0):e._e()],1)]),s("div",{staticClass:"caption"},[t.brandName||t.seriesName?s("div",{staticClass:"brand"},[e._v(e._s(t.brandName||"")+e._s(t.seriesName?(t.brandName?" ":"")+t.seriesName:""))]):e._e(),s("div",{staticClass:"title"},[e._v(e._s(t.newTitle||t.title))])]),s("div",{staticClass:"tag-wrap"},[t.marketingLabelNames&&t.marketingLabelNames.length>0?[e._l(t.marketingLabelNames,function(t,i){return s("span",{key:i},[e._v(e._s(t))])}),t.qgSales>0&&"4"==t.productMType?s("span",[e._v("已抢"+e._s(t.qgSales)+"件")]):e._e(),t.qgSales>0&&"13"==t.productMType?s("span",[e._v("已拼"+e._s(t.qgSales)+"件")]):e._e()]:e._e()],2),s("div",{staticClass:"price"},[t._isPointsGoods?s("div",{staticClass:"point"},[s("span",{staticClass:"bigger"},[e._v(e._s(t._points))]),s("span",[e._v("积分")]),s("span",{staticClass:"plus"},[e._v("+")])]):e._e(),s("div",{staticClass:"price-show"},[s("span",{staticClass:"yen"},[e._v("¥")]),e._v(e._s(e.$utils.priceFormat(t.price_show)[0])),s("span",[e._v("."+e._s(e.$utils.priceFormat(t.price_show)[1]))]),s("span",{staticClass:"qi"},[e._v("起")])]),t.scribePriceShow&&!t._isPointsGoods?s("div",{staticClass:"price-shop"},[s("span",{staticClass:"yen"},[e._v("¥")]),s("span",{staticClass:"line-throungh"},[e._v(e._s(e.$utils.priceFormat(t.shopPrice)[2]))])]):e._e()])])]})],2),e.pagination.showLoading&&e.dataList.length>0?s("div",{directives:[{name:"loading",rawName:"v-loading",value:e.pagination.showLoading,expression:"pagination.showLoading"}],staticClass:"list-loading",attrs:{"element-loading-spinner":"el-icon-loading"}}):e._e(),!e.pagination.showLoading&&e.dataList.length<=0?s("div",{staticClass:"nodata"},[s("img",{attrs:{src:"https://cdn.ctfmall.com/goodsother/pc_empty_v5.png",alt:"无结果"}}),s("p",[e._v("暂无"+e._s(e.params.keyword?"“"+e.params.keyword+"”的":"")+"搜索结果")])]):!e.pagination.showLoading&&e.dataList.length>0&&e.pagination.noMore?s("div",{staticClass:"nomore"}
1,[s("p",[e._v("没有更多了… ")])]):e._e()])]),e.ediInfo&&e.ediInfo.qualificationImages?s("el-image",{ref:"imageRef",staticStyle:{display:"none"},attrs:{src:e.ediInfo.qualificationImages,"preview-src-list":e.ediInfoPreviewList,"hide-on-click-modal":""}}):e._e()],1)},n=[],r=t(5353),a=t(1297),o=t(6776),c={props:{navHeight:{type:Number|String,default:0}},data(){return{windowHeight:0,breadcrumbStr:"",breadcrumbList:[],breadcrumbHeight:0,navList:[],navCurrent:0,navShowArrow:!1,scrollTop:0,sloganInfo:null,searchType:"",isSearchView:!1,isSearchClickGoods:!1,screen:{show:!1,hide:!0,isScreen:!1,screenBaseList:null,screenList:null,screenChoice:{},screenChoiceBackup:{},screenTotal:0,screenTimer:null},screenHeight:68,sortList:[{id:3,name:"热门产品"},{id:5,name:"新品上市"},{id:6,name:"优惠"},{id:1,name:"价格由高到低"},{id:2,name:"价格由低到高"}],sortCurrent:0,sortVisible:!1,dataList:[],pagination:{total:0,listTotal:0,advTotal:0,advStart:2,advStep:6,pageIndex:1,pageSize:8,showLoading:!1,noMore:!1,showTips:!0},params:{keyword:"",orderType:3,marketingID:0,min:"",max:""},advList:[],advStart:6,advStep:6,bannerList:[],bannerCurrent:0,bannerAutoplay:!1,bannerVideoId:"",isBannerPlay:!1,userPoints:-1,ediInfo:null,merchantId:null,ediInfoPreviewList:[]}},computed:{...(0,r.L8)(["userInfo","showTopNotice","bodyZoom"]),tabList(){return this.$store.state.indexTabList},contentTop(){let e=this.navList.length>0||this.sloganInfo&&this.sloganInfo.bgLink?this.sloganHeight:this.breadcrumbList.length>0?this.breadcrumbHeight:0;return this.navHeight+e},sloganHeight(){return this.sloganInfo&&this.sloganInfo.bgLink?340:268},screenStyle(){let e={position:"relative",top:"0px",maxHeight:"auto"};return this.navList.length<=0&&(!this.sloganInfo||!this.sloganInfo.bgLink)&&this.breadcrumbList.length<=0&&(e.position="fixed",e.top=this.contentTop+this.screenHeight+"px"),e},showScreenClear(){let e=!1;for(const s in this.screen.screenList){if(0==this.screen.screenList[s].isFill){for(let t=0;t<this.screen.screenList[s].list.length;t++)if(this.screen.screenList[s].list[t].checked)return e=!0,e}else(""!=this.screen.screenChoice[s].children_list[this.screen.screenList[s].list[0].name]&&this.screen.screenChoice[s].children_list[this.screen.screenList[s].list[0].name]>=0||this.screen.screenList[s].list&&this.screen.screenList[s].list[1]&&""!=this.screen.screenChoice[s].children_list[this.screen.screenList[s].list[1].name]&&this.screen.screenChoice[s].children_list[this.screen.screenList[s].list[1].name]>=0)&&(e=!0);if(e)return e}return e}},watch:{"$route.query":{handler(e){if(e.merchantId?this.merchantId=e.merchantId:this.merchantId=null,this.breadcrumbStr=e.breadcrumb,this.setBreadcrumbData(),this.resetPageData(),this.params.keyword=e.keyword||"",this.params.marketingID=e.mid||0,this.params.min=!isNaN(parseFloat(e.min))&&e.min>0?e.min:"",this.params.max=!isNaN(parseFloat(e.max))&&e.max>0?e.max:"",this.searchType=e.searchType||e.type||"输入搜索",this.isSearchView=e.isSearchView||!1,e.sortType){for(let s=0;s<this.sortList.length;s++)if(e.sortType==this.sortList[s].id){this.sortCurrent=s,this.params.orderType=this.sortList[s].id;break}}else if("isNewUp"==e.type)for(let s=0;s<this.sortList.length;s++)if(5==this.sortList[s].id){this.sortCurrent=s,this.params.orderType=this.sortList[s].id;break}this.getProductsList("load")},immediate:!0,deep:!0},tabList:{handler(){this.setBreadcrumbData()},immediate:!0,deep:!0}},mounted(){this.handleScrollFn(),window.addEventListener("scroll",this.handleScrollFn,!0),this.handleWindowResize(),window.addEventListener("resize",this.handleWindowResize,!0)},beforeDestroy(){window.removeEventListener("scroll",this.handleScrollFn,!0),window.removeEventListener("resize",this.handleWindowResize,!0)},methods:{setBreadcrumbData(){if(this.breadcrumbList=[],this.navList=[],this.navCurrent=0,this.navShowArrow=!1,this.sloganInfo=null,this.tabList.length>0&&this.breadcrumbStr){let e=this.breadcrumbStr.split(",");if(e.length>0){let s=[];s.push({title:"首页",jumpLink:"/home",srcLink:"",breadcrumb:""});let t=0,i=this.tabList[parseInt(e[t])];while(i)s.push({title:i.title,jumpLink:i.jumpLink,srcLink:i.srcLink,breadcrumb:e.slice(0,t+1).join()}),t<e.length-1?(t++,i=i.children[parseInt(e[t])]):((i.bgLink||i.bgColor)&&(this.sloganInfo={bgLink:i.bgLink,bgColor:i.bgColor,
1isVideo:i.isBgVideo}),i.children&&i.children.length>0&&(this.navList=i.children,this.$nextTick(()=>{this.$refs.navScrollBox&&this.$refs.navScrollBox.offsetWidth>1400&&(this.navShowArrow=!0)})),i=null);s.length>1&&(this.breadcrumbList=s)}}},navClickFn(e,s){if(!e.jumpLink||0!=e.jumpLink.indexOf("/goodsList")&&0!=e.jumpLink.indexOf("goodsList"))this.handleNavClick(e,!0);else{let t=JSON.parse(JSON.stringify(e));t.jumpLink.indexOf("?")>=0?t.jumpLink=t.jumpLink+"&breadcrumb="+s:t.jumpLink=t.jumpLink+"?breadcrumb="+s,this.handleNavClick(t,!0)}},resetPageData(){this.handleScrollFn(),this.screen=this.$options.data().screen,this.sortCurrent=this.$options.data().sortCurrent,this.pagination=this.$options.data().pagination,this.params=this.$options.data().params},handleScrollFn(){this.scrollTop=document.documentElement.scrollTop||document.body.scrollTop,this.$nextTick(()=>{this.checkLoadMore(!0)})},handleWindowResize(){this.windowHeight=window.innerHeight},navJumpFn(e,s){this.navClickFn(e,this.breadcrumbStr?this.breadcrumbStr+","+s:"")},sortPopoverShowFn(){this.sortVisible=!0},sortPopoverHideFn(){this.sortVisible=!1},handleSort(e){this.sortCurrent!=e&&(this.sortCurrent=e,this.params.orderType=this.sortList[e].id,this.resetListData(),this.getProductsList("sort")),this.sortPopoverHideFn()},resetListData(){this.pagination.pageIndex=1,this.pagination.current=0,this.pagination.showLoading=!1,this.pagination.noMore=!1,this.pagination.showTips=!0},keywordSearchFn(e){return!!e.linkUrl&&(0==e.linkUrl.indexOf("http")?location.href=e.linkUrl:this.toView(e.linkUrl),!0)},getProductsList(e=""){if(this.pagination.showLoading)return!1;if(this.pagination.noMore)return!1;
1"load"==e&&(this.getScreenData(),this.getAdvInfo(),this.getScreenTotal()),this.pagination.showLoading=!0;let s=this.userInfo.uid,t="";"1"===this.$route.query.openSearchType?t=this.$localStorage.getItem("recommendRequestId"):"2"===this.$route.query.openSearchType&&(t=this.$localStorage.getItem("hotRequestId"));let i={uid:s,pageIndex:this.pagination.pageIndex,pageSize:this.pagination.pageSize,orderType:this.params.orderType,keyword:this.params.keyword,mid:this.params.marketingID,isBrand:0,brandID:0,fileUrl:"",branchSelfCode:0,userType:this.userInfo&&this.userInfo.staff?3:0,requestId:t};"isHot"==this.searchType?i.isHot=1:"isNewUp"==this.searchType&&(i.isNewUp=1),"load"==e&&""!=this.params.min&&this.params.min>=0&&""!=this.params.max&&this.params.max>=0&&(i.minShopPrice=this.params.min,i.maxShopPrice=this.params.max);for(const n in this.screen.screenChoice)if("object"==typeof this.screen.screenChoice[n].value&&this.screen.screenChoice[n].value.length>0)i[n]=this.screen.screenChoice[n].value;else if("object"==typeof this.screen.screenChoice[n].children_list)for(const e in this.screen.screenChoice[n].children_list)""!=this.screen.screenChoice[n].children_list[e]&&(i[e]=this.screen.screenChoice[n].children_list[e]);this.merchantId&&(i.merchantId=this.merchantId),(0,a.KC)(i).then(async s=>{var t=s[0];if(this.keywordSearchFn(t))return!1;if("0"==t.retcode){let s=this.userPoints;if(s<0&&this.userInfo&&this.userInfo.uid>0&&!this.userInfo.staff){let e=await(0,o.Gf)();s=e.availablePoint,this.userPoints=s}if(this.ediInfo=t.merchant||null,this.ediInfo&&this.ediInfo.qualificationImages&&(this.ediInfoPreviewList=[this.ediInfo.qualificationImages]),t.list&&t.list.length>=0){let i=parseInt(s/50);t.list.forEach(e=>{e.bannerCurrent=0;let s=!1;if(i>0&&e.integralSpecialFunds&&(s=!0,e._isPointsGoods=!0),Number(e.marketingPrice)>0&&Number(e.marketingPrice)<Number(e.shopPrice)){if(e.scribePriceShow=!0,e.price_show=Number(e.marketingPrice),s){let s=Math.min(i,parseInt(e.marketingPrice));e._points=parseInt(50*s),e.price_show=this.$utils.keepDecimal(parseFloat(e.marketingPrice)-s)}}else if(e.price_show=Number(e.shopPrice),s){let s=Math.min(i,parseInt(e.shopPrice));e._points=parseInt(50*s),e.price_show=this.$utils.keepDecimal(parseFloat(e.shopPrice)-s)}}),"more"!=e?this.dataList=[...t.list]:this.dataList.push(...t.list);let n=t.mouldNos||[];this.params.mouldNos=n,this.pagination.pageIndex=this.pagination.pageIndex+1,this.pagination.noMore=this.pagination.pageIndex>Math.ceil(parseInt(t.productCount)/this.pagination.pageSize),"more"!=e&&this.gioSearchSuccessFn(this.dataList.length>0?"是":"否"),this.$nextTick(()=>{this.checkLoadMore()}),this.screen.hide&&(this.screen.hide=!1)}else"load"==e||"screen"==e?(this.resetListData(),this.dataList=[],this.pagination.noMore=!0):this.$toast(t.retmsg||"没有更多的产品啦!");this.pagination.listTotal=parseInt(t.productCount)}else"load"!=e&&"screen"!=e||this.$toast(t.retmsg||"网络异常!");this.pagination.showLoading=!1}).catch(()=>{this.pagination.showLoading=!1})},checkLoadMore(e=!1){if(this.pagination.showLoading)return!1;if(this.$refs.goodsList&&this.scrollTop+this.windowHeight+Math.max(this.windowHeight/3,500)>(this.contentTop+this.$refs.goodsList.clientHeight)*this.bodyZoom){if(this.pagination.noMore)return e&&!this.screen.hide&&this.pagination.showTips&&(this.pagination.showTips=!1),!1;this.getProductsList("more")}},swiperChange(e,s){this.dataList[s].bannerCurrent=e},handleSwiperChange(e,s){this.$refs["goods_carousel_"+s]&&this.$refs["goods_carousel_"+s][0][e]()},handleNavChange(e){if("left"==e){if(this.navCurrent<=0)return!1;this.navCurrent--}else{if(Math.abs(this.$refs.navScrollContainer.scrollLeft)+this.$refs.navScrollContainer.clientWidth>=this.$refs.navScrollContainer.scrollWidth)return!1;this.navCurrent++}this.$refs.navScrollContainer.scrollLeft=this.$refs["navScrollItem"+this.navCurrent][0].offsetLeft},getAdvInfo(){this.bannerVideoPause(),this.bannerCurrent=0,this.bannerVideoId="",this.isBannerPlay=!1,this.advList=[],this.bannerList=[];let e=this.userInfo.uid;(0,a.kM)({keyword:this.params.keyword,uid:e}).then(e=>{if(e.data&&e.data.list&&e.data.list.length>0){let s=[],t=[];
1if(e.data.list.forEach(e=>{e.muted=!0,e.initialTime=0,e.playing=!1,1==e.advertiseType?t.push(e):2==e.advertiseType&&s.push(e)}),s.length>0){let t=isNaN(parseInt(e.data.adStartPositionWeb))?6:parseInt(e.data.adStartPositionWeb),i=isNaN(parseInt(e.data.adIntervalWeb))?6:parseInt(e.data.adIntervalWeb);this.advList=s,this.advStart=t,this.advStep=i}t.length>0&&(this.bannerList=t,this.checkBannerVideo())}})},getScreenBaseData(){return new Promise(e=>{if(this.screen.screenBaseList)e(this.screen.screenBaseList);else{let t=this.userInfo.uid,i="";"1"===this.$route.query.openSearchType?i=this.$localStorage.getItem("recommendRequestId"):"2"===this.$route.query.openSearchType&&(i=this.$localStorage.getItem("hotRequestId"));var s={uid:t,keyword:this.params.keyword,orderType:this.params.orderType,mid:this.params.marketingID,isBrand:0,brandID:0,fileUrl:"",mouldNos:this.params.mouldNos,branchSelfCode:0,userType:this.userInfo&&this.userInfo.staff?3:0,requestId:i};"isHot"==this.searchType?s.isHot=1:"isNewUp"==this.searchType&&(s.isNewUp=1),(0,a.gl)(s).then(s=>{if(s.data&&s.data.length>0){let t={},i=null;s.data.forEach(e=>{0==e.isFill&&(t[e.key]={},t[e.key].value=[],t[e.key].name=e.name),e.list&&e.list.length>0&&(0!=e.isFill&&(t[e.key]={name:e.name,children_list:{}}),e.list.forEach((s,i)=>{s.checked=!1,s.disabled=!0,0!=e.isFill&&i<2&&(t[e.key].children_list[s.name]="","shopPrice"==e.key?"minShopPrice"==s.name?t[e.key].children_list[s.name]=this.params.min||"":"maxShopPrice"==s.name?t[e.key].children_list[s.name]=this.params.max||"":t[e.key].children_list[s.name]="":t[e.key].children_list[s.name]="")})),e.isOpen=!1,e.relation=[],e.key&&(null==i&&(i={}),i[e.key]=e)}),this.screen.screenBaseList=i,this.screen.screenList=i,this.screen.screenChoice=t,e(i)}else e(null)}).catch(()=>{e(null)})}})},getScreenData(){this.getScreenBaseData().then(e=>{let s=this.userInfo.uid,t="";"1"===this.$route.query.openSearchType?t=this.$localStorage.getItem("recommendRequestId"):"2"===this.$route.query.openSearchType&&(t=this.$localStorage.getItem("hotRequestId"));var i={uid:s,keyword:this.params.keyword,orderType:this.params.orderType,mid:this.params.marketingID,isBrand:0,brandID:0,fileUrl:"",mouldNos:this.params.mouldNos,branchSelfCode:0,userType:this.userInfo&&this.userInfo.staff?3:0,requestId:t};"isHot"==this.searchType?i.isHot=1:"isNewUp"==this.searchType&&(i.isNewUp=1);for(const n in this.screen.screenChoice)if("object"==typeof this.screen.screenChoice[n].value&&this.screen.screenChoice[n].value.length>0)i[n]=this.screen.screenChoice[n].value;else if("object"==typeof this.screen.screenChoice[n].children_list)for(const e in this.screen.screenChoice[n].children_list)""!=this.screen.screenChoice[n].children_list[e]&&(i[e]=this.screen.screenChoice[n].children_list[e]);(0,a.gl)(i).then(s=>{let t=JSON.parse(JSON.stringify(this.screen.screenChoice)),i=null;if(s.data&&s.data.length>0&&s.data.forEach(s=>{e||(0==s.isFill&&(t[s.key]={},t[s.key].value=[],t[s.key].name=s.name),s.list&&s.list.length>0&&(0!=s.isFill&&(t[s.key]={name:s.name,children_list:{}}),s.list.forEach((e,i)=>{e.checked=!1,0!=s.isFill&&i<2&&(t[s.key].children_list[e.name]="")})),s.isOpen=!1,s.relation=[]),s.key&&(null==i&&(i={}),i[s.key]=s)}),e){let t=JSON.parse(JSON.stringify(e)),n=this.screen.screenList;if(s.data&&s.data.length>0){for(const e in t){if(n[e]&&(t[e].isOpen=n[e].isOpen,t[e].isShow=n[e].isShow,t[e].value=n[e].value,t[e].relaName=n[e].relaName,t[e].relation=JSON.parse(JSON.stringify(n[e].relation)),n[e].list.length>0))for(let s=0;s<n[e].list.length;s++)for(const i in t[e].list[s])"disabled"!=i&&(t[e].list[s][i]=n[e].list[s][i]);i&&i[e]&&i[e].list&&i[e].list.length>0&&t[e].list&&t[e].list.length>0&&t[e].list.forEach(s=>{i[e].list.find(e=>e.name==s.name)&&(s.disabled=!1)})}this.screen.screenList=t}}else this.screen.screenList=i,this.screen.screenChoice=t})})},getScreenTotal(e=100){clearTimeout(this.screen.screenTimer),this.screen.screenTimer=setTimeout(()=>{let e=this.params.keyword,s=this.userInfo.uid,t="";"1"===this.$route.query.openSearchType?t=this.$localStorage.getItem("recommendRequestId"):"2"===this.$route.query.openSearchType&&(t=this.$localStorage.getItem("hotRequestId"));var i={uid:s,orderType:this.params.orderType,keyword:e,mid:this.params.marketingID,isBrand:0,brandID:0,fileUrl:"",mouldNos:this.params.mouldNos,branchSelfCode:0,userType:this.userInfo&&this.userInfo.staff?3:0,requestId:t};"isHot"==this.searchType?i.isHot=1:"isNewUp"==this.searchType&&(i.isNewUp=1);for(const n in this.screen.screenChoice)if("object"==typeof this.screen.screenChoice[n].value&&this.screen.screenChoice[n].value.length>0)i[n]=this.screen.screenChoice[n].value;else if("object"==typeof this.screen.screenChoice[n].children_list)for(const e in this.screen.screenChoice[n].children_list)""!=this.screen.screenChoice[n].children_list[e]&&(i[e]=this.screen.screenChoice[n].children_list[e]);(0,a.Fj)(i).then(e=>
1{e[0]&&e[0].productCount?(this.screen.screenTotal=e[0].productCount,e[0].productCount<=0&&this.screen.show&&this.$toast("暂无匹配商品,更换选项试试吧")):(this.screen.screenTotal=0,this.screen.show&&this.$toast("暂无匹配商品,更换选项试试吧"))}).catch(()=>{this.screen.screenTotal=0,this.screen.show&&this.$toast("暂无匹配商品,更换选项试试吧")})},e)},handleScreen(){this.screen.show=!this.screen.show,this.screen.show?(this.screen.screenChoiceBackup=JSON.stringify(this.screen.screenChoice),this.getScreenData(),this.getScreenTotal(0),this.$root.$emit("toTop")):this.handleScreenConfirm()},handleScreenChoice(e,s,t){if(!this.screen.screenList[e].list[s].checked&&this.screen.screenList[e].list[s].disabled)return!1;const i=this.screen.screenList[e].list[s].relaName;if(this.screen.screenList[e].list[s].checked)this.handleUncheck(e,s,t);else{this.screen.screenList[e].list[s].checked=!0;let n=JSON.parse(JSON.stringify(this.screen.screenChoice[e].value));if(n.push(t),this.screen.screenChoice[e].value=n,this.$nextTick(()=>{this.getScreenTotal(),this.getScreenData()}),i&&this.screen.screenList[i]){if(!this.screen.screenList[i].relation.includes){let s=this.screen.screenList[i].relation;s.push(e),this.screen.screenList[i].relation=s}this.screen.screenList[i].isShow=!0}}},handleUncheck(e,s,t){const i=this.screen.screenList[e].list[s].relaName;this.screen.screenList[e].list[s].checked=!1;let n=JSON.parse(JSON.stringify(this.screen.screenChoice[e].value));if(n.splice(n.indexOf(t),1),this.screen.screenChoice[e].value=n,this.$nextTick(()=>{this.getScreenTotal(),this.getScreenData()}),i&&this.screen.screenList[i]&&this.screen.screenList[i].relation.includes){let s=this.screen.screenList[i].relation;s.splice(s.indexOf(e),1),this.screen.screenList[e].relation=s,s.length<=0&&(this.screen.screenList[i].list&&this.screen.screenList[i].list.length>0&&(this.screen.screenList[i].list.forEach((e,s)=>{0==this.screen.screenList[i].isFill?e.checked&&this.handleUncheck(i,s,e.value):(this.screen.screenChoice[e.name].value="",this.$nextTick(()=>{this.getScreenTotal(),this.getScreenData()}))}),0==this.screen.screenList[i].isFill&&(this.screen.screenChoice[i].value=[],this.$nextTick(()=>{this.getScreenTotal(),this.getScreenData()}))),this.screen.screenList[i].isShow=!1)}},changeScreenInput(e,s,t){isNaN(parseFloat(e))?this.screen.screenChoice[s].children_list[t]="":this.screen.screenChoice[s].children_list[t]=parseInt(e)},changeScreenBlur(e,s,t,i,n,r){let a=parseInt(this.screen.screenChoice[s].children_list[t]),o=parseInt(this.screen.screenChoice[s].children_list[r]);n&&!isNaN(a)&&a>0&&this.screen.screenChoice[s].children_list[r]>0&&(0==i&&a>o||1==i&&a<o)&&(this.screen.screenChoice[s].children_list[t]=o,this.screen.screenChoice[s].children_list[r]=a),this.getScreenTotal()},handleScreenClear(e="",s="",t="",i=""){if(this.screen.show||(this.screen.screenChoiceBackup=JSON.stringify(this.screen.screenChoice)),"input"==i){for(const s in this.screen.screenChoice[e].children_list)this.screen.screenChoice[e].children_list[s]="";this.getScreenTotal(),this.getScreenData()}else this.handleUncheck(e,t,s);this.screen.show||this.handleScreenConfirm()},handleScreenReset(){this.screen.show||(this.screen.screenChoiceBackup=JSON.stringify(this.screen.screenChoice));for(const e in this.screen.screenList)if(0==this.screen.screenList[e].isFill&&this.screen.screenList[e].list&&this.screen.screenList[e].list.length>0&&this.screen.screenList[e].list.forEach((s,t)=>{s.checked&&this.handleUncheck(e,t,s.value)}),"object"==typeof this.screen.screenChoice[e].children_list)for(const s in this.screen.screenChoice[e].children_list)this.screen.screenChoice[e].children_list[s]="";this.screen.screenChoice=this.screen.screenChoice,this.$nextTick(()=>{this.getScreenTotal(),this.screen.show||this.handleScreenConfirm()})},handleScreenConfirm(){let e=this.screen.screenList;for(const s in e)e[s].isOpen=!1;this.screen.show=!1,this.screen.isScreen=!0,this.screen.screenList=e,this.screen.screenChoiceBackup!=JSON.stringify(this.screen.screenChoice)&&(this.resetListData(),this.getProductsList("screen"),this.$root.$emit("toTop"),this.screen.show||(this.screen.screenChoiceBackup=JSON.stringify(this.screen.screenChoice)))},bannerChange(e){this.bannerCurrent=e,this.bannerVideoStop(),this.checkBannerVideo()},handleBannerChange(e){this.$refs.bannner&&this.$refs.bannner[e]()},checkBannerVideo(){1==this.bannerList[this.bannerCurrent].isVideo&&(this.bannerVideoId="video_"+this.bannerCurrent,this.bannerVideoPlay())},bannerVideoPlay(){this.bannerVideoId&&this.$refs[this.bannerVideoId]&&this.$refs[this.bannerVideoId][0].play()},bannerVideoPause(){this.bannerVideoId&&this.$refs[this.bannerVideoId]&&this.$refs[this.bannerVideoId][0].pause()},bannerVideoStop(){this.bannerVideoId&&this.$refs[this.bannerVideoId]&&(this.$refs[this.bannerVideoId][0].pause(),this.$refs[this.bannerVideoId][0].currentTime=0)},bannerVideoPlayCb(e){this.bannerList[e].playing=!0,this.isBannerPlay=!0},bannerVideoPauseCb(e){this.bannerList[e].playing=!1,this.isBannerPlay=!1},bannerVideoEndedCb(e){this.bannerList[e].playing=!1,this.isBannerPlay=!1,this.bannerAutoplay&&setTimeout(()=>{this.handleBannerChange("next")},500)},handleBannerVideoMuted(e){this.bannerList[e].muted=!this.bannerList[e].muted},handleBannerVideoPlay(e){this.bannerList[e].playing?this.bannerVideoPause():this.bannerVideoPlay()},getAdvIndex(e){return e==this.advStart-1?0:(e-(this.advStart-1))%this.advStep==0?(e-(this.advStart-1))/this.advStep:-1},handleAdvClick(e){if(!e.linkAddress)return!1;this.toPageBlank(e.linkAddress)},toGoodsDetail(e){this.toPageBlank(`/goods?mouldNo=${e.mouldNo}${this.breadcrumbStr?"&breadcrumb="+this.breadcrumbStr:""}`)},gioSearchSuccessFn(e){this.isSearchView&&(this.gioSearchSuccess({searchType_var:this.searchType,searchWord_var:this.params.keyword,ifSearchResult_var:e}),this.isSearchView=!1,this.isSearchClickGoods=!0)},showQualificationImages(){this.$refs.imageRef&&(this.$refs.imageRef.showViewer=!0)}}},l=c,h=t(1656),d=(0,h.A)(l,i,n,!1,null,"18696e07",null),p=d.exports}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.