pages-goods_cate-goods_cate.ac75bf12.js 12 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-goods_cate-goods_cate"],{"3eda":function(t,e,o){"use strict";var a=o("74f4"),i=o.n(a);i.a},"47b8":function(t,e,o){"use strict";o.r(e);var a=o("5e24"),i=o("c9ec");for(var r in i)["default"].indexOf(r)<0&&function(t){o.d(e,t,(function(){return i[t]}))}(r);o("3eda");var n=o("828b"),c=Object(n["a"])(i["default"],a["b"],a["c"],!1,null,"7032c75a",null,!1,a["a"],void 0);e["default"]=c.exports},"5e24":function(t,e,o){"use strict";o.d(e,"b",(function(){return a})),o.d(e,"c",(function(){return i})),o.d(e,"a",(function(){}));var a=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("v-uni-view",[o("skeleton",{ref:"skeleton",attrs:{show:t.showSkeleton,isNodes:t.isNodes,loading:"chiaroscuro",selector:"skeleton",bgcolor:"#FFF"}}),o("v-uni-view",{staticClass:"productSort",style:{visibility:t.showSkeleton?"hidden":"visible",height:t.winHeight+"px"}},[o("v-uni-view",{staticClass:"header acea-row row-center-wrapper"},[o("v-uni-navigator",{staticClass:"acea-row row-between-wrapper input skeleton-rect",attrs:{url:"/pages/columnGoods/goods_search/index","hover-class":"none"}},[o("v-uni-text",{staticClass:"iconfont icon-ic_search"}),o("v-uni-view",{staticClass:"input-box"},[t._v("点击搜索商品信息")])],1)],1),o("v-uni-view",{staticClass:"con-box",style:t.viewColor},[o("v-uni-view",{staticClass:"aside"},[o("v-uni-scroll-view",{staticStyle:{height:"100%",overflow:"hidden"},attrs:{"scroll-y":"true","scroll-with-animation":"true"}},t._l(t.productList,(function(e,a){return o("v-uni-view",{staticClass:"item-count"},[e.children&&e.children.length>0?o("v-uni-view",{key:e.store_category_id,staticClass:"item acea-row row-center-wrapper",class:a==t.navActive?"on":"",attrs:{id:"sort"+a},on:{click:function(o){arguments[0]=o=t.$handleEvent(o),t.tap(e,a)}}},[o("v-uni-view",{staticClass:"top-ra"},[o("v-uni-text")],1),o("v-uni-text",{staticClass:"item_text skeleton-rect"},[t._v(t._s(e.cate_name))]),o("v-uni-view",{staticClass:"bottom-ra"},[o("v-uni-text")],1)],1):t._e()],1)})),1)],1),o("v-uni-view",{staticClass:"conter"},[o("v-uni-scroll-view",{staticStyle:{height:"100%",overflow:"hidden"},attrs:{"scroll-y":"true","scroll-with-animation":"true"}},[o("v-uni-view",t._l(t.cateList,(function(e,a){return o("v-uni-view",{key:e.store_category_id,staticClass:"listw"},[o("v-uni-view",{staticClass:"title acea-row"},[t.hotList.length>0&&0==t.navActive?o("v-uni-view",{staticClass:"name skeleton-rect"},[o("v-uni-image",{staticClass:"list_title",attrs:{mode:"heightFix",src:t.domain+"/static/diy/recommend_cate"+t.keyColor+".png"}})],1):o("v-uni-view",{staticClass:"name skeleton-rect"},[t._v(t._s(e.cate_name))])],1),o("v-uni-view",{staticClass:"list acea-row"},[t._l(e.children,(function(e,a){return[o("v-uni-navigator",{key:e.store_category_id+"_0",staticClass:"item acea-row row-column row-middle",attrs:{"hover-class":"none",url:"/pages/columnGoods/goods_list/index?id="+e.store_category_id+"&title="+e.cate_name}},[o("v-uni-view",{staticClass:"picture skeleton-rect"},[o("v-uni-image",{attrs:{mode:"widthFix",src:e.pic}})],1),o("v-uni-view",{staticClass:"name line1"},[t._v(t._s(e.cate_name))])],1)]}))],2)],1)})),1),o("v-uni-view",{style:"height:"+(t.height-300)+"rpx;"})],1)],1)],1)],1),o("customTab",{attrs:{newData:t.newData,activeRouter:t.activeRouter}})],1)},i=[]},"74f4":function(t,e,o){var a=o("97f5");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var i=o("967d").default;i("86e64d2c",a,!0,{sourceMap:!1,shadowMode:!1})},"97f5":function(t,e,o){var a=o("c86c");e=a(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.productSort[data-v-7032c75a]{display:flex;flex-direction:column;width:100%}.productSort .con-box[data-v-7032c75a]{flex:1;display:flex;overflow:hidden}.productSort .header[data-v-7032c75a]{width:100%;height:%?96?%;background-color:#fff;border-bottom:%?1?% solid #f5f5f5}.productSort .header .input[data-v-7032c75a]{width:%?700?%;height:%?60?%;background-color:#f5f5f5;border-radius:%?50?%;box-sizing:border-box;padding:0 %?25?%}.productSort .header .input .iconfont[data-v-7032c75a]{font-size:%?35?%;color:#999}.productSort .header .input .placeholder[data-v-7032c75a]{color:#ccc}.productSort .header .input .input-box[data-v-7032c75a]{display:flex;align-items:center;font-size:%?26?%;height:100%;width:%?597?%;color:#ccc}.productSort .aside[data-v-7032c75a]{background-color:#fff;overflow-y:auto;overflow-x:hidden;width:%?180?%;height:100%;overflow:hidden}.productSort .aside .active-item[data-v-7032c75a]{position:relative}.productSort .aside .active-item[data-v-7032c75a]::before, .productSort .aside .active-item[data-v-7032c75a]::after{content:"";display:block;width:%?24?%;height:%?24?%;background:#f5f5f5;border-radius:100%;position:absolute;right:0}.productSort .aside .active-item[data-v-7032c75a]::before{top:0}.productSort .aside .active-item[data-v-7032c75a]::after{bottom:0}.productSort .aside .item[data-v-7032c75a]{height:%?100?%;width:100%;font-size:%?26?%}.productSort .aside .item_text[data-v-7032c75a]{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.productSort .aside .item.on[data-v-7032c75a]{background-color:#f7f7f7;width:100%;text-align:center;color:var(--view-theme);font-weight:700;position:relative}.productSort .aside .item.on[data-v-7032c75a]::before{content:"";display:block;width:%?4?%;height:%?28?%;background-color:var(--view-theme);position:absolute;left:0;top:50%;margin-top:%?-14?%}.productSort .aside .item.on .top-ra[data-v-7032c75a]{width:%?32?%;height:%?32?%;background-color:#f5f5f5;position:absolute;right:0;top:%?-32?%}.productSort .aside .item.on .top-ra uni-text[data-v-7032c75a]{position:absolute;top:0;right:0;width:100%;height:100%;background-color:#fff;display:inline-block;border-radius:0 0 %?24?% 0}.productSort .aside .item.on .bottom-ra[data-v-7032c75a]{width:%?32?%;height:%?32?%;background-color:#f5f5f5;position:absolute;right:0;bottom:%?-32?%}.productSort .aside .item.on .bottom-ra uni-text[data-v-7032c75a]{position:absolute;top:0;right:0;width:100%;height:100%;background-color:#fff;display:inline-block;border-radius:0 %?24?% 0 0}.productSort .conter[data-v-7032c75a]{flex:1;height:100%;padding:0 %?14?% 0 %?20?%;background-color:#f7f7f7}.productSort .conter .listw .title[data-v-7032c75a]{height:%?100?%;align-items:center}.productSort .conter .listw .title .line[data-v-7032c75a]{width:%?100?%;height:%?2?%;background-color:#f0f0f0}.productSort .conter .listw .title .name[data-v-7032c75a]{font-size:%?26?%;margin:0 %?30?%;font-weight:700}.productSort .conter .listw .title .list_title[data-v-7032c75a],\n.productSort .conter .listw .title uni-image[data-v-7032c75a],\n.productSort .conter .listw .title uni-image[data-v-7032c75a]{width:%?110?%;height:%?26?%;border-radius:0}.productSort .conter .list[data-v-7032c75a]{flex-wrap:wrap;background:#fff;border-radius:%?24?%;padding-bottom:%?26?%}.productSort .conter .list .item[data-v-7032c75a]{width:%?174?%;margin-top:%?26?%}.productSort .conter .list .item .picture[data-v-7032c75a],\n.productSort .conter uni-image[data-v-7032c75a],\n.productSort .conter .list .item uni-image[data-v-7032c75a],[data-v-7032c75a] .easy-loadimage{width:%?110?%;height:%?110?%}.productSort .conter .list .item .name[data-v-7032c75a]{font-size:%?22?%;height:%?56?%;line-height:%?56?%;width:%?120?%;text-align:center;margin-top:%?30?%}',""]),t.exports=e},b373:function(t,e,o){"use strict";o("6a54");var a=o("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,o("3efd"),o("fd3c");var i=o("7e00"),r=o("5999"),n=o("96e0"),c=a(o("23ab")),s=a(o("7ec6")),d=o("8f59"),l=o("aa10"),u=(getApp(),{components:{easyLoadimage:c.default,customTab:s.default},computed:(0,n.configMap)({navigation:{}},(0,d.mapGetters)(["viewColor","keyColor","isLogin","cartNum"])),data:function(){return{domain:l.HTTP_REQUEST_URL,showSkeleton:!0,isNodes:0,scrollTop:0,navlist:[],hotList:[],productList:[{cate_name:"skeleton",store_category_id:0,children:[{cate_name:"skeleton",store_category_id:10,children:[{cate_name:"",store_category_id:101},{cate_name:"",store_category_id:102},{cate_name:"",store_category_id:103},{cate_name:"",store_category_id:104},{cate_name:"",store_category_id:105},{cate_name:"",store_category_id:106}]}]},{cate_name:"skeleton",store_category_id:2,children:[{cate_name:"skeleton",store_category_id:30}]},{cate_name:"skeleton",store_category_id:3,children:[{cate_name:"skeleton",store_category_id:31}]},{cate_name:"skeleton",store_category_id:4,children:[{cate_name:"skeleton",store_category_id:32}]},{cate_name:"skeleton",store_category_id:5,children:[{cate_name:"skeleton",store_category_id:33}]},{cate_name:"skeleton",store_category_id:6,children:[{cate_name:"skeleton",store_category_id:34}]},{cate_name:"skeleton",store_category_id:7,children:[{cate_name:"skeleton",store_category_id:35}]},{cate_name:"skeleton",store_category_id:8,children:[{cate_name:"skeleton",store_category_id:36}]},{cate_name:"skeleton",store_category_id:9,children:[{cate_name:"skeleton",store_category_id:37}]},{cate_name:"skeleton",store_category_id:10,children:[{cate_name:"skeleton",store_category_id:38}]},{cate_name:"skeleton",store_category_id:11,children:[{cate_name:"skeleton",store_category_id:39}]}],cateList:[{cate_name:"skeleton",store_category_id:10,children:[{cate_name:"",store_category_id:101},{cate_name:"",store_category_id:102},{cate_name:"",store_category_id:103},{cate_name:"",store_category_id:104},{cate_name:"",store_category_id:105},{cate_name:"",store_category_id:106}]}],navActive:0,activceCate:0,number:"",height:0,hightArr:[],winHeight:0,pidIndex:0,intoindex:"",pid:"",newData:{},activeRouter:""}},onLoad:function(t){var e=this;e.getAllCategory(),uni.getSystemInfo({success:function(t){e.winHeight=t.windowHeight-2}}),document.body.addEventListener("touchmove",(function(t){"/pages/goods_cate/goods_cate"==e.$route.path&&t.preventDefault()}),{passive:!1})},onShow:function(){var t=getCurrentPages(),e=t[t.length-1].route;this.activeRouter="/"+e,this.$util.getCartNum(this.isLogin,null),this.getNav()},onHide:function(){},onReady:function(){this.isNodes++},methods:{getNav:function(){var t=this;(0,r.getNavigation)().then((function(e){t.newData=e.data,t.newData.status&&t.newData.status.status?uni.hideTabBar():uni.showTabBar()}))},tap:function(t,e){this.cateList=t["children"],this.navActive=e},getAllCategory:function(){var t=this;t.pidIndex=0,(0,i.getCategoryList)().then((function(e){if(t.productList=e.data.list,t.hotList=e.data.hot,t.hotList.length>0){var o={cate_name:"推荐分类",store_category_id:0,children:[{cate_name:"推荐分类",store_category_id:1,children:t.hotList}]};t.productList.unshift(o)}t.cateList=t.productList[0]["children"],t.getCateFrom(t.productList),uni.stopPullDownRefresh(),setTimeout((function(){t.showSkeleton=!1}),500);var a=uni.getStorageSync("storeIndex");if(a){uni.removeStorageSync("storeIndex");for(var i=0;i<t.productList.length;i++)if(t.productList[i].store_category_id==a)return void t.tap(t.productList[i],i)}}))},getCateFrom:function(t){var e=this;t.map((function(t,o){if(e.activceCate&&t.store_category_id==e.activceCate)return e.pidIndex=o,e.navActive=o,void e.tap(t,o)}))}},onPullDownRefresh:function(){this.navActive=0,this.getAllCategory()},onPageScroll:function(t){var e=t.scrollTop;this.scrollTop=e}});e.default=u},c9ec:function(t,e,o){"use strict";o.r(e);var a=o("b373"),i=o.n(a);for(var r in a)["default"].indexOf(r)<0&&function(t){o.d(e,t,(function(){return a[t]}))}(r);e["default"]=i.a}}]);