(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-home-sort"],{"28c1":function(a,i,t){"use strict";t.r(i);var e=t("913a"),n=t.n(e);for(var o in e)["default"].indexOf(o)<0&&function(a){t.d(i,a,(function(){return e[a]}))}(o);i["default"]=n.a},"2d63":function(a,i,t){"use strict";t.r(i);var e=t("fded"),n=t("28c1");for(var o in n)["default"].indexOf(o)<0&&function(a){t.d(i,a,(function(){return n[a]}))}(o);t("6389");var r=t("f0c5"),c=Object(r["a"])(n["default"],e["b"],e["c"],!1,null,"e9a80ba2",null,!1,e["a"],void 0);i["default"]=c.exports},"5d33":function(a,i,t){var e=t("aff8");e.__esModule&&(e=e.default),"string"===typeof e&&(e=[[a.i,e,""]]),e.locals&&(a.exports=e.locals);var n=t("4f06").default;n("8b8d06f2",e,!0,{sourceMap:!1,shadowMode:!1})},6389:function(a,i,t){"use strict";var e=t("5d33"),n=t.n(e);n.a},"913a":function(a,i,t){"use strict";t("7a82");var e=t("ee27").default;Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0,t("ac1f");var n=e(t("c71d")),o=e(t("b27f")),r={data:function(){return{list:[],tabCur:0,mainCur:0,verticalNavTop:0,load:!0,sortList:[]}},onLoad:function(){for(var a=[{}],i=0;i<26;i++)a[i]={},a[i].name=String.fromCharCode(65+i),a[i].id=i;this.list=a,this.listCur=a[0],this.sortList=n.default.sortListData()},onReady:function(){o.default.setBarColor(!0),uni.pageScrollTo({scrollTop:0,duration:0})},methods:{BackPage:function(){uni.navigateBack()},TabSelect:function(a){this.tabCur=a.currentTarget.dataset.id,this.mainCur=a.currentTarget.dataset.id,this.verticalNavTop=50*(a.currentTarget.dataset.id-1)},VerticalMain:function(a){var i=this,t=0;if(this.load){for(var e=function(a){var e=uni.createSelectorQuery().select("#main-"+i.list[a].id);e.fields({size:!0},(function(e){i.list[a].top=t,t+=e.height,i.list[a].bottom=t})).exec()},n=0;nthis.list[r].top&&o .cu-item[data-v-e9a80ba2]{padding-bottom:%?9.09?%}.zaiui-grid-icon-box .cu-list.grid > .cu-item uni-text[data-v-e9a80ba2]{color:#333}.zaiui-grid-icon-box .cu-list.grid.no-border[data-v-e9a80ba2]{padding:0}',""]),a.exports=i},b27f:function(a,i,t){"use strict";t("7a82"),Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0,t("a9e3"),t("d401"),t("d3b7"),t("25f0"),t("e25e"),t("c975"),t("ac1f"),t("5319");var e={strLeng:function(a){if(a){for(var i=a.length,t=0,e=0;e128?t+=2:t+=1;return t}return 0},getPageNum:function(a,i){var t=Number(a)/Number(i);if(t%1!==0){var e=t.toString(),n=parseInt(e.substring(0,e.indexOf("."))),o=e.replace(/\d+\.(\d*)/,"$1");o>0&&(t=n+1)}return t},setBarColor:function(){var a=arguments.length>0&&void 0!==arguments[0]&&arguments[0];a?uni.setNavigationBarColor({frontColor:"#000000",backgroundColor:"#FAFAFA"}):uni.setNavigationBarColor({frontColor:"#ffffff",backgroundColor:"#FAFAFA"})},zaiui_log:function(a){}},n=e;i.default=n},c71d:function(a,i,t){"use strict";t("7a82"),Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var e={sortListData:function(){return[{id:1,name:"苹果",img:"/static/images/home/grid-icon/30.png"},{id:2,name:"华为",img:"/static/images/home/grid-icon/31.png"},{id:3,name:"小米",img:"/static/images/home/grid-icon/32.png"},{id:4,name:"vivo",img:"/static/images/home/grid-icon/33.png"},{id:5,name:"oppo",img:"/static/images/home/grid-icon/34.png"},{id:6,name:"魅族",img:"/static/images/home/grid-icon/35.png"},{id:7,name:"寄卖优选",img:"/static/images/home/grid-icon/36.png"},{id:8,name:"验机特惠",img:"/static/images/home/grid-icon/37.png"},{id:9,name:"直播特卖",img:"/static/images/home/grid-icon/38.png"},{id:10,name:"更多分类",img:"/static/images/home/grid-icon/39.png"}]}};i.default=e},fded:function(a,i,t){"use strict";t.d(i,"b",(function(){return e})),t.d(i,"c",(function(){return n})),t.d(i,"a",(function(){}));var e=function(){var a=this,i=a.$createElement,t=a._self._c||i;return t("v-uni-view",[t("v-uni-view",{staticClass:"zaiui-bar-search-title-box"},[t("v-uni-view",{staticClass:"cu-bar fixed no-shadow bg-white"},[t("v-uni-view",{staticClass:"action",on:{click:function(i){arguments[0]=i=a.$handleEvent(i),a.BackPage.apply(void 0,arguments)}}},[t("v-uni-text",{staticClass:"cuIcon-back"})],1),t("v-uni-view",{staticClass:"content search",on:{click:function(i){arguments[0]=i=a.$handleEvent(i),a.searchTap.apply(void 0,arguments)}}},[t("v-uni-view",{staticClass:"search-form round"},[t("v-uni-text",{staticClass:"cuIcon-search"}),t("v-uni-text",{staticClass:"margin-left-xs"},[a._v("输入您正在找的宝贝")])],1)],1)],1),t("v-uni-view",{staticClass:"zaiui-seat-height"})],1),t("v-uni-view",{staticClass:"VerticalBox"},[t("v-uni-scroll-view",{staticClass:"VerticalNav nav",attrs:{"scroll-y":!0,"scroll-with-animation":!0,"scroll-top":a.verticalNavTop}},[a._l(a.list,(function(i,e){return[t("v-uni-view",{key:e+"_0",staticClass:"cu-item",class:e==a.tabCur?"text-red cur":"",attrs:{"data-id":e},on:{click:function(i){arguments[0]=i=a.$handleEvent(i),a.TabSelect.apply(void 0,arguments)}}},[t("v-uni-view",{class:e==a.tabCur?"text-black text-bold":""},[a._v("分类-"+a._s(i.name))])],1)]}))],2),t("v-uni-scroll-view",{staticClass:"VerticalMain",attrs:{"scroll-y":!0,"scroll-with-animation":!0,"scroll-into-view":"main-"+a.mainCur},on:{scroll:function(i){arguments[0]=i=a.$handleEvent(i),a.VerticalMain.apply(void 0,arguments)}}},[a._l(a.list,(function(i,e){return[t("v-uni-view",{key:e+"_0",staticClass:"padding-top padding-lr",attrs:{id:"main-"+e}},[t("v-uni-view",{staticClass:"cu-bar bg-white"},[t("v-uni-view",{staticClass:"action"},[t("v-uni-text",{staticClass:"cuIcon-title text-red"}),t("v-uni-text",[a._v("标题栏-"+a._s(i.name))])],1)],1),t("v-uni-view",{staticClass:"zaiui-grid-icon-box"},[t("v-uni-view",{staticClass:"cu-list grid col-3 no-border"},[a._l(a.sortList,(function(i,e){return[t("v-uni-view",{key:e+"_0",staticClass:"cu-item"},[t("v-uni-view",{staticClass:"grid-icon"},[t("v-uni-image",{staticClass:"icon",attrs:{src:i.img,"lazy-load":!0,mode:"widthFix"}})],1),t("v-uni-text",{staticClass:"text-black"},[a._v(a._s(i.name))])],1)]}))],2)],1)],1)]}))],2)],1)],1)},n=[]}}]);