12345678910111213141516171819 |
- ;(function(){function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg);var value=info.value;}catch(error){reject(error);return;}if(info.done){resolve(value);}else{Promise.resolve(value).then(_next,_throw);}}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise(function(resolve,reject){var gen=fn.apply(self,args);function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value);}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err);}_next(undefined);});};}var __vite_style__=document.createElement('style');__vite_style__.innerHTML=":root{--van-pull-refresh-head-height: 1.33333rem;--van-pull-refresh-head-font-size: var(--van-font-size-md);--van-pull-refresh-head-text-color: var(--van-text-color-2);--van-pull-refresh-loading-icon-size: .42667rem}.van-pull-refresh{overflow:hidden}.van-pull-refresh__track{position:relative;height:100%;transition-property:transform}.van-pull-refresh__head{position:absolute;left:0;width:100%;height:var(--van-pull-refresh-head-height);overflow:hidden;color:var(--van-pull-refresh-head-text-color);font-size:var(--van-pull-refresh-head-font-size);line-height:var(--van-pull-refresh-head-height);text-align:center;transform:translateY(-100%)}.van-pull-refresh__loading .van-loading__spinner{width:var(--van-pull-refresh-loading-icon-size);height:var(--van-pull-refresh-loading-icon-size)}._hotGoods_1xtmi_1{margin:.32rem .37333rem;background:url(./assets/icon-hotbg.e55afa9a.png);background-repeat:no-repeat;background-size:100%;border-radius:.18667rem}._hotGoods_1xtmi_1 ._title_1xtmi_8{font-size:.42667rem;font-weight:500;color:#333;display:flex;align-items:inherit;line-height:.58667rem}._hotGoods_1xtmi_1 ._title_1xtmi_8 .van-icon{margin-left:.21333rem;margin-right:.13333rem}._hotGoods_1xtmi_1 ._tips_1xtmi_20{display:flex;align-items:center;justify-content:flex-end}._hotGoods_1xtmi_1 ._tips_1xtmi_20>div{margin-left:.37333rem;display:flex;align-items:center;font-size:.32rem;color:#ff4e19;line-height:.42667rem}._hotGoods_1xtmi_1 ._tips_1xtmi_20 .van-icon{margin-right:.08rem}._hotGoods_1xtmi_1 ._hotGoodsSection_1xtmi_36{padding:.98667rem .21333rem .21333rem;display:flex;justify-content:space-between;align-items:center}._hotGoods_1xtmi_1 ._hotGoodsItem_1xtmi_42,._hotGoods_1xtmi_1 ._hotGoodsItemImg_1xtmi_43{width:2.8rem;height:2.8rem;background:#ffffff;border-radius:.16rem;overflow:hidden}._hotGoodsWrap_1xtmi_50{padding:.26667rem .21333rem .24rem}._hotIcon_1xtmi_53{height:.48rem}._swipeType_se6u6_1{padding-top:.53333rem;padding-bottom:.53333rem}._swipeType_se6u6_1 .van-swipe__indicators{bottom:.32rem}._swipeType_se6u6_1 .van-swipe__indicator:not(:last-child){margin-right:0}._swipeType_se6u6_1 .van-swipe__indicator{width:.53333rem;height:.10667rem;background:#ebebeb;border-radius:.10667rem}._swipeTypeShow_se6u6_17{padding-bottom:.8rem}._typeSection_se6u6_20{display:flex;align-items:center}._typeItem_se6u6_24{width:20%;text-align:center}._typeItem_se6u6_24 ._swipeTypeImg_se6u6_28{width:1.6rem;height:1.6rem;border-radius:50%;overflow:hidden}._typeItem_se6u6_24 ._typeName_se6u6_34{padding-top:.08rem;font-size:.32rem;color:#333}._shopMall_o1mpk_1{max-width:20rem;margin:0 auto}._hotContent_o1mpk_5{padding:.29333rem .37333rem 0;background-color:#fff;border-radius:0 0 .48rem .48rem}._icon-shop-cart_o1mpk_10{display:flex;align-items:center;justify-content:center}._icon-shop-cart_o1mpk_10 ._dot_o1mpk_15{line-height:.42667rem;background:#ff4e19;border-radius:.26667rem .26667rem 0;font-size:.32rem;color:#fff;padding:0 .13333rem;margin-right:.13333rem}._iconBadge_o1mpk_24 .van-badge{border:none}._searchBox_o1mpk_27 .van-search{padding-bottom:0}._searchBox_o1mpk_27 .van-search .van-search__content{background-color:#fff!important}._swipe_o1mpk_33{height:35.2vmin;border-radius:.26667rem;overflow:hidden}._swipe_o1mpk_33 ._swipeItemImg_o1mpk_38{height:100%;width:100%}._swipe_o1mpk_33 .van-swipe__indicators{right:.26667rem;left:initial}._swipe_o1mpk_33 .van-swipe__indicator{transition:width .3s}._swipe_o1mpk_33 .van-swipe__indicator--active{width:.32rem;border-radius:.10667rem}._tabs_o1mpk_53 .van-tabs__line{width:.53333rem!important;height:.18667rem;bottom:.5rem;background-image:url(./assets/bottom-line.1b4e5e26.svg);background-repeat:no-repeat;background-size:100% 100%;background-color:transparent!important}._theHomeHeader_u1nyo_1{position:sticky;top:0;background-color:#fff;padding:.26667rem .37333rem;z-index:100}._theHomeHeader_u1nyo_1 ._content_u1nyo_8{display:flex;align-items:center}._theHomeHeader_u1nyo_1 ._content_u1nyo_8 ._mall_u1nyo_12{width:1.92rem;height:.74667rem;flex-shrink:0}._theHomeHeader_u1nyo_1 ._content_u1nyo_8 ._cart_u1nyo_17{width:.8rem;height:.8rem;flex-shrink:0}._theHomeHeader_u1nyo_1 ._content_u1nyo_8 ._more_u1nyo_22{width:.53333rem;height:.48rem;flex-shrink:0;margin-left:.26667rem;-o-object-fit:contain;object-fit:contain}._theHomeHeader_u1nyo_1 ._searchBox_u1nyo_29{flex:1;display:flex;align-items:center;padding:0 .42667rem;background-color:#f8f8f8;border-radius:.53333rem;color:#ccc;height:.8rem;margin-left:.10667rem;margin-right:.26667rem}._theHomeHeader_u1nyo_1 ._searchBox_u1nyo_29 ._iconSearch_u1nyo_41{width:.42667rem;height:.42667rem;margin-right:.42667rem}._popover_u1nyo_46 .van-popover__arrow{right:0!important}:root{--van-popover-arrow-size: .16rem;--van-popover-border-radius: var(--van-border-radius-lg);--van-popover-action-width: 3.41333rem;--van-popover-action-height: 1.17333rem;--van-popover-action-font-size: var(--van-font-size-md);--van-popover-action-line-height: var(--van-line-height-md);--van-popover-action-icon-size: .53333rem;--van-popover-light-text-color: var(--van-text-color);--van-popover-light-background-color: var(--van-background-color-light);--van-popover-light-action-disabled-text-color: var(--van-text-color-3);--van-popover-dark-text-color: var(--van-white);--van-popover-dark-background-color: #4a4a4a;--van-popover-dark-action-disabled-text-color: var(--van-text-color-2)}.van-popover{position:absolute;overflow:visible;background-color:transparent;transition:opacity .15s,transform .15s}.van-popover__wrapper{display:inline-block}.van-popover__arrow{position:absolute;width:0;height:0;border-color:transparent;border-style:solid;border-width:var(--van-popover-arrow-size)}.van-popover__content{overflow:hidden;border-radius:var(--van-popover-border-radius)}.van-popover__action{position:relative;display:flex;align-items:center;box-sizing:border-box;width:var(--van-popover-action-width);height:var(--van-popover-action-height);padding:0 var(--van-padding-md);font-size:var(--van-popover-action-font-size);line-height:var(--van-line-height-md);cursor:pointer}.van-popover__action:last-child .van-popover__action-text:after{display:none}.van-popover__action-text{display:flex;flex:1;align-items:center;justify-content:center;height:100%}.van-popover__action-icon{margin-right:var(--van-padding-xs);font-size:var(--van-popover-action-icon-size)}.van-popover__action--with-icon .van-popover__action-text{justify-content:flex-start}.van-popover[data-popper-placement^=top] .van-popover__arrow{bottom:0;border-top-color:currentColor;border-bottom-width:0;transform:translate(-50%);margin-bottom:calc(var(--van-popover-arrow-size) * -1)}.van-popover[data-popper-placement=top]{transform-origin:50% 100%}.van-popover[data-popper-placement=top] .van-popover__arrow{left:50%}.van-popover[data-popper-placement=top-start]{transform-origin:0 100%}.van-popover[data-popper-placement=top-start] .van-popover__arrow{left:var(--van-padding-md)}.van-popover[data-popper-placement=top-end]{transform-origin:100% 100%}.van-popover[data-popper-placement=top-end] .van-popover__arrow{right:var(--van-padding-md)}.van-popover[data-popper-placement^=left] .van-popover__arrow{right:0;border-right-width:0;border-left-color:currentColor;transform:translateY(-50%);margin-right:calc(var(--van-popover-arrow-size) * -1)}.van-popover[data-popper-placement=left]{transform-origin:100% 50%}.van-popover[data-popper-placement=left] .van-popover__arrow{top:50%}.van-popover[data-popper-placement=left-start]{transform-origin:100% 0}.van-popover[data-popper-placement=left-start] .van-popover__arrow{top:var(--van-padding-md)}.van-popover[data-popper-placement=left-end]{transform-origin:100% 100%}.van-popover[data-popper-placement=left-end] .van-popover__arrow{bottom:var(--van-padding-md)}.van-popover[data-popper-placement^=right] .van-popover__arrow{left:0;border-right-color:currentColor;border-left-width:0;transform:translateY(-50%);margin-left:calc(var(--van-popover-arrow-size) * -1)}.van-popover[data-popper-placement=right]{transform-origin:0 50%}.van-popover[data-popper-placement=right] .van-popover__arrow{top:50%}.van-popover[data-popper-placement=right-start]{transform-origin:0 0}.van-popover[data-popper-placement=right-start] .van-popover__arrow{top:var(--van-padding-md)}.van-popover[data-popper-placement=right-end]{transform-origin:0 100%}.van-popover[data-popper-placement=right-end] .van-popover__arrow{bottom:var(--van-padding-md)}.van-popover[data-popper-placement^=bottom] .van-popover__arrow{top:0;border-top-width:0;border-bottom-color:currentColor;transform:translate(-50%);margin-top:calc(var(--van-popover-arrow-size) * -1)}.van-popover[data-popper-placement=bottom]{transform-origin:50% 0}.van-popover[data-popper-placement=bottom] .van-popover__arrow{left:50%}.van-popover[data-popper-placement=bottom-start]{transform-origin:0 0}.van-popover[data-popper-placement=bottom-start] .van-popover__arrow{left:var(--van-padding-md)}.van-popover[data-popper-placement=bottom-end]{transform-origin:100% 0}.van-popover[data-popper-placement=bottom-end] .van-popover__arrow{right:var(--van-padding-md)}.van-popover--light{color:var(--van-popover-light-text-color)}.van-popover--light .van-popover__content{background:var(--van-popover-light-background-color);box-shadow:0 .05333rem .32rem rgba(50,50,51,.12)}.van-popover--light .van-popover__arrow{color:var(--van-popover-light-background-color)}.van-popover--light .van-popover__action:active{background-color:var(--van-active-color)}.van-popover--light .van-popover__action--disabled{color:var(--van-popover-light-action-disabled-text-color);cursor:not-allowed}.van-popover--light .van-popover__action--disabled:active{background-color:transparent}.van-popover--dark{color:var(--van-popover-dark-text-color)}.van-popover--dark .van-popover__content{background:var(--van-popover-dark-background-color)}.van-popover--dark .van-popover__arrow{color:var(--van-popover-dark-background-color)}.van-popover--dark .van-popover__action:active{background-color:rgba(0,0,0,.2)}.van-popover--dark .van-popover__action--disabled{color:var(--van-popover-dark-action-disabled-text-color)}.van-popover--dark .van-popover__action--disabled:active{background-color:transparent}.van-popover--dark .van-popover__action-text:after{border-color:var(--van-gray-7)}.van-popover-zoom-enter-from,.van-popover-zoom-leave-active{transform:scale(.8);opacity:0}.van-popover-zoom-enter-active{transition-timing-function:var(--van-animation-timing-function-enter)}.van-popover-zoom-leave-active{transition-timing-function:var(--van-animation-timing-function-leave)}\n";document.head.appendChild(__vite_style__);System.register(['./vendor-legacy.73abbe39.js','./index-legacy.f25f109a4.js','./index-legacy.637f35562.js','./index-legacy.8581423a.js','./icon_search-legacy.8a51f949.js','./index-legacy.890d473e.js','./shop-mall-legacy.e5bca19b.js','./index-legacy.213ffd93.js','./index-legacy.f25f109a2.js','./index-legacy.637f35563.js','./index-legacy.f25f109a8.js','./index-legacy.f25f109a9.js','./index-legacy.f25f109a10.js'],function(exports){'use strict';var defineComponent,createVNode,Image,SwipeItem,isVNode,Swipe,ref,createTextVNode,Badge,Popover,PullRefresh,Tabs,Tab,iconSearch$1,TabList,request,cartCount,getCartCount;return{setters:[function(module){defineComponent=module.d;createVNode=module.b;Image=module.I;SwipeItem=module.O;isVNode=module.v;Swipe=module.Q;ref=module.M;createTextVNode=module.j;Badge=module.U;Popover=module.V;PullRefresh=module.W;Tabs=module.y;Tab=module.z;},function(){},function(){},function(){},function(module){iconSearch$1=module.i;TabList=module.T;},function(module){request=module.r;},function(module){cartCount=module.c;getCartCount=module.g;},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function execute(){var index$2='';var IconCart="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAMAAAANIilAAAAAAXNSR0IArs4c6QAAAVBQTFRFAAAAAAAAAAAAAAAAAAAAAAAAMzMzKioqJCQkICAgHBwcGhoaFxcXJycnJCQkJCQkIyMjISEhHR0dJycnIiIiISEhIiIiJSUlJCQkJCQkIyMjIiIiISEhIiIiJCQkIyMjIiIiISEhIyMjIyMjAMS2ISEhJCQkIiIiJCQkIyMjJCQkIyMjIyMjIiIiJCQkIyMjIiIiJCQkIyMjIyMjIyMj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PSc1dbWJs8nMuEXhJkLRDQLIPjK9vj09PSWY8eOnW4ETNOAxKCSvh0AFnXY4IZEtHd2dnZrI2mybZuKkGUohS40N+y6vaOjo+OWt/CW1FzKglHwPG+LMUZogyIiOVzWGHNPNptd9CrWaLpE779qLb1txBR+1QAAAABJRU5ErkJggg==";var IconMore="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAgCAYAAAAv8DnQAAAAAXNSR0IArs4c6QAAAKhJREFUOE+9k80NwjAMhb8ugMQQZQUYgAVgGmABugxlABigXaEMgWACZDU+ENV9OTWXKPGT/H7sivFsgCuwT+8ncAaGKhU7YJ2Kfr2BnQFuwDEr+rM1wAdYBYBvEUC2MAWzJKdkPoCLywz4jd9GciGAKWmyLE7FWbTAIWB6L7JahiWzqIE+GJitO2mgqZF7LWh1mKhzyPfib2DkyEmjpNUSIFtIkrPr/wMjhDS5mC5rjQAAAABJRU5ErkJggg==";var IconOrder="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAoCAYAAACWwljjAAAAAXNSR0IArs4c6QAAAWlJREFUWEftmL9Lw0AUx7+v6VIVBzuqo65KLsR01slVsjsLiiDo36AgiIOze3F10tlYklBXHW1HHUTt0vTJDXYoqSfpWY9yt4Xj5T73ee/y4xEAcl13h4iOACzIa4x3MIAWMx+naXpBQohdAOfjZRi62p4EagGYNwSoLYF6/5CmYftnCSRz2B9Jkoy1hgbXt0CDubKGVKfXGvoTQ77vV7Ms22bmGdUCefNE9O44zmWj0XjRUtSe590w83oRmO8YIrqN43hDC5AQ4hNAZRQgAJ0kSaa0ABlnyLgaGjFVP4bb55DKrjVkDakMqOYno4bc6CroMZ8BvKjacf48PZeI9tNgK9Ly6li9qz8CWCoG0496atbCZV1A8rNhbkSg12YtrGoBWonqBwBOiFEqAsUE+e93+BCEp1qA5E3WouvZbrkzXQSo3K183Aebb3mxk3HKilj5bYw1pDJlDU2EIeMaVsa19MxqeprWFv4Cg3ombpWgR0sAAAAASUVORK5CYII=";var hotGoods="_hotGoods_1xtmi_1";var title="_title_1xtmi_8";var tips="_tips_1xtmi_20";var hotGoodsSection="_hotGoodsSection_1xtmi_36";var hotGoodsItem="_hotGoodsItem_1xtmi_42";var hotGoodsItemImg="_hotGoodsItemImg_1xtmi_43";var hotGoodsWrap="_hotGoodsWrap_1xtmi_50";var hotIcon="_hotIcon_1xtmi_53";var styles$3={hotGoods:hotGoods,title:title,tips:tips,hotGoodsSection:hotGoodsSection,hotGoodsItem:hotGoodsItem,hotGoodsItemImg:hotGoodsItemImg,hotGoodsWrap:hotGoodsWrap,hotIcon:hotIcon};var HotGoods=defineComponent({name:'hot-goods',props:{hotProductList:{type:Array,default:[]},onOpenWebView:{type:Function,default:function _default(n){}}},render:function render(){var _this=this;return createVNode("div",{"class":styles$3.hotGoods},[createVNode("div",{"class":styles$3.hotGoodsSection},[this.hotProductList.map(function(item){return createVNode("div",{"class":styles$3.hotGoodsItem,"onClick":function onClick(){_this.onOpenWebView('/goodsDetail?id='+item.id);}},[createVNode(Image,{"class":styles$3.hotGoodsItemImg,"src":item.pic,"fit":"cover"},null)]);})])]);}});var swipeType="_swipeType_se6u6_1";var swipeTypeShow="_swipeTypeShow_se6u6_17";var typeSection="_typeSection_se6u6_20";var typeItem="_typeItem_se6u6_24";var swipeTypeImg="_swipeTypeImg_se6u6_28";var typeName="_typeName_se6u6_34";var styles$2={swipeType:swipeType,swipeTypeShow:swipeTypeShow,typeSection:typeSection,typeItem:typeItem,swipeTypeImg:swipeTypeImg,typeName:typeName};function _isSlot$1(s){return typeof s==='function'||Object.prototype.toString.call(s)==='[object Object]'&&!isVNode(s);}var MenuList=defineComponent({name:'menu-list',props:{productList:{type:Array,default:[]},onOpenWebView:{type:Function,default:function _default(a){}}},render:function render(){var _this2=this;var _slot2;return createVNode(Swipe,{"class":[styles$2.swipeType,this.productList.length>1&&styles$2.swipeTypeShow],"indicator-color":"var(--van-primary)","loop":false,"showIndicators":this.productList.length>1},_isSlot$1(_slot2=this.productList.map(function(product){var _slot;return createVNode(SwipeItem,{"class":styles$2.typeSection},_isSlot$1(_slot=product.map(function(item){return createVNode("div",{"class":styles$2.typeItem,"onClick":function onClick(){_this2.onOpenWebView('/goodsList?'+'id='+item.id+'&tag='+encodeURIComponent(item.name));}},[createVNode(Image,{"class":styles$2.swipeTypeImg,"src":item.icon,"fit":"cover"},null),createVNode("p",{"class":styles$2.typeName},[item.name])]);}))?_slot:{default:function _default(){return[_slot];}});}))?_slot2:{default:function _default(){return[_slot2];}});}});var shopMall="_shopMall_o1mpk_1";var hotContent="_hotContent_o1mpk_5";var dot="_dot_o1mpk_15";var iconBadge="_iconBadge_o1mpk_24";var searchBox$1="_searchBox_o1mpk_27";var swipe="_swipe_o1mpk_33";var swipeItemImg="_swipeItemImg_o1mpk_38";var tabs="_tabs_o1mpk_53";var styles$1={shopMall:shopMall,hotContent:hotContent,"icon-shop-cart":"_icon-shop-cart_o1mpk_10",dot:dot,iconBadge:iconBadge,searchBox:searchBox$1,swipe:swipe,swipeItemImg:swipeItemImg,tabs:tabs};var theHomeHeader="_theHomeHeader_u1nyo_1";var content="_content_u1nyo_8";var mall="_mall_u1nyo_12";var cart="_cart_u1nyo_17";var more="_more_u1nyo_22";var searchBox="_searchBox_u1nyo_29";var iconSearch="_iconSearch_u1nyo_41";var popover="_popover_u1nyo_46";var styles={theHomeHeader:theHomeHeader,content:content,mall:mall,cart:cart,more:more,searchBox:searchBox,iconSearch:iconSearch,popover:popover};var index$1='';var TheHomeHeader=defineComponent({name:'TheHomeHeader',emits:['cart','more','search'],setup:function setup(props,_ref){var emit=_ref.emit;ref(sessionStorage.getItem('navHeight'));var popoverSlots={reference:function reference(){return createVNode("img",{"class":styles.more,"src":IconMore,"onClick":function onClick(){return emit('more');}},null);}};var popoverShow=ref(false);var actions=[{text:'我的订单',icon:IconOrder,url:'/goodsOrder'},{text:'我的地址',icon:IconLocation,url:'/address'}];return function(){return createVNode("div",{"class":styles.theHomeHeader},[createVNode("div",null,null),createVNode("div",{"class":styles.content},[createVNode("div",{"class":styles.searchBox,"onClick":function onClick(){return emit('search');}},[createVNode("img",{"class":styles.iconSearch,"src":iconSearch$1},null),createVNode("span",null,[createTextVNode("\u641C\u7D22\u4F60\u559C\u6B22\u7684\u5185\u5BB9")])]),createVNode(Badge,{"content":cartCount.value,"showZero":false},{default:function _default(){return[createVNode("img",{"class":styles.cart,"src":IconCart,"onClick":function onClick(){return emit('cart');}},null)];}}),createVNode(Popover,{"placement":"bottom-end","class":styles.popover,"show":popoverShow.value,"onUpdate:show":function onUpdateShow($event){return popoverShow.value=$event;},"actions":actions,"onSelect":function onSelect(action){return emit('more',action);}},popoverSlots)])]);};}});function _isSlot(s){return typeof s==='function'||Object.prototype.toString.call(s)==='[object Object]'&&!isVNode(s);}var index=exports('default',defineComponent({name:'shop-mall',data:function data(){return{loading:false,height:'auto',count:0,// 购买车数量
- advertiseList:[],// 广告列表
- productList:[],// 商品分类
- hotProductList:[],// 热门商品列表
- productCategoryList:[]// 商品分类列表
- };},mounted:function mounted(){var _this3=this;this.init();console.log(this.$route.query);// if (browser().ios) {
- document.addEventListener('visibilitychange',function(event){if(!document.hidden){getCartCount();var tabFirst=_this3.$refs.tabFirst;tabFirst===null||tabFirst===void 0?void 0:tabFirst.onSearch();}});// }
- // else {
- // listenerMessage('UpdateToken', result => {
- // if (result?.content.token) {
- // setAuth(result?.content.token)
- // }
- // getCartCount()
- // const tabFirst = this.$refs.tabFirst as any
- // tabFirst?.onSearch()
- // })
- // }
- },unmounted:function unmounted(){// removeListenerMessage('UpdateToken', () => {})
- },methods:{onRefresh:function onRefresh(){var _this4=this;this.productCategoryList=[];this.$nextTick(function(){_this4.init();});var tabFirst=this.$refs.tabFirst;tabFirst===null||tabFirst===void 0?void 0:tabFirst.onSearch();},init:function init(){var _this5=this;return _asyncToGenerator(/*#__PURE__*/regeneratorRuntime.mark(function _callee(){var res,result,category,categoryResult,chunk;return regeneratorRuntime.wrap(function _callee$(_context){while(1){switch(_context.prev=_context.next){case 0:_context.prev=0;_context.next=3;return request.get('/api-mall-portal/home/content');case 3:res=_context.sent;result=res.data||{};_this5.count=result.count;cartCount.value=result.count;_this5.advertiseList=result.advertiseList;category=result.productCategoryList||[];categoryResult=[];while(category.length>0){chunk=category.splice(0,5);categoryResult.push(chunk);}_this5.productList=categoryResult;_this5.hotProductList=result.hotProductList||[];_this5.productCategoryList=result.productAttributeCategoryList||[];_context.next=18;break;case 16:_context.prev=16;_context.t0=_context["catch"](0);case 18:setTimeout(function(){_this5.loading=false;},500);case 19:case"end":return _context.stop();}}},_callee,null,[[0,16]]);}))();},openWebView:function openWebView(url){try{this.$router.push(url);}catch(error){}}},render:function render(){var _this6=this;var _slot;return createVNode("div",{"class":styles$1.shopMall},[createVNode(TheHomeHeader,{"onCart":function onCart(){return _this6.openWebView('/cart');},"onSearch":function onSearch(){return _this6.openWebView('/goodsList?input=focus');},"onMore":function onMore(action){if(!action)return;_this6.openWebView(action.url);}},null),createVNode(PullRefresh,{"modelValue":this.loading,"onUpdate:modelValue":function onUpdateModelValue($event){return _this6.loading=$event;},"loading-text":"正在刷新...","success-text":"刷新完成","onRefresh":function onRefresh(){return _this6.onRefresh();}},{default:function _default(){return[createVNode("div",{"class":styles$1.hotContent},[createVNode(Swipe,{"class":styles$1.swipe,"autoplay":3000,"showIndicators":false},_isSlot(_slot=_this6.advertiseList.map(function(item){return createVNode(SwipeItem,{"onClick":function onClick(){return _this6.openWebView(item.url);}},{default:function _default(){return[createVNode(Image,{"class":styles$1.swipeItemImg,"src":item.pic,"fit":"fill"},null)];}});}))?_slot:{default:function _default(){return[_slot];}}),createVNode(MenuList,{"productList":_this6.productList,"onOpenWebView":_this6.openWebView},null)]),_this6.hotProductList.length===3&&createVNode(HotGoods,{"hotProductList":_this6.hotProductList,"onOpenWebView":_this6.openWebView},null),createVNode(Tabs,{"shrink":true,"lineWidth":25,"background":'#f6f8f9',"color":"var(--van-primary)","class":styles$1.tabs,"sticky":true,"offsetTop":_this6.height,"lazyRender":true},{default:function _default(){return[createVNode(Tab,{"title":"全部","name":0},{default:function _default(){return[createVNode(TabList,{"ref":"tabFirst","isTab":true,"showAdd":false,"productAttributeCategoryId":0,"onOpenWebView":_this6.openWebView},null)];}}),_this6.productCategoryList.map(function(item){return createVNode(Tab,{"title":item.name,"name":item.id},{default:function _default(){return[createVNode(TabList,{"isTab":true,"showAdd":false,"productAttributeCategoryId":item.id,"onOpenWebView":_this6.openWebView},null)];}});})];}})];}})]);}}));}};});})();
|