text: (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/extend-view/productList/productList"],{"145a":function(e,t,n){"use strict";n.r(t);var a=n("6825"),s=n("5d67");for(var i in s)"default"!==i&&function(e){n.d(t,e,function(){return s[e]})}(i);n("dc68");var r=n("2877"),c=Object(r["a"])(s["default"],a["a"],a["b"],!1,null,null,null);t["default"]=c.exports},"5d67":function(e,t,n){"use strict";n.r(t);var a=n("7174"),s=n.n(a);for(var i in a)"default"!==i&&function(e){n.d(t,e,function(){return a[e]})}(i);t["default"]=s.a},6825:function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=(e._self._c,e.px(e.selectH)),a=e.px(e.dropScreenH+18);e.$mp.data=Object.assign({},{$root:{m0:n,m1:a}})},s=[];n.d(t,"a",function(){return a}),n.d(t,"b",function(){return s})},7174:function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=function(){return n.e("components/icon/icon").then(n.bind(null,"7c3f"))},s=function(){return n.e("components/drawer/drawer").then(n.bind(null,"d7a8"))},i=function(){return n.e("components/loadmore/loadmore").then(n.bind(null,"022c"))},r=function(){return n.e("components/nomore/nomore").then(n.bind(null,"9645"))},c=function(){return n.e("components/top-dropdown/top-dropdown").then(n.bind(null,"95b5"))},o={components:{tuiIcon:a,tuiDrawer:s,tuiLoadmore:i,tuiNomore:r,tuiTopDropdown:c},data:function(){return{searchKey:"",width:200,height:64,inputTop:0,arrowTop:0,dropScreenH:0,attrData:[],attrIndex:-1,dropScreenShow:!1,scrollTop:0,tabIndex:0,isList:!1,drawer:!1,drawerH:0,selectedName:"综合",selectH:0,dropdownList:[{name:"综合",selected:!0},{name:"价格升序",selected:!1},{name:"价格降序",selected:!1}],attrArr:[{name:"新品",selectedName:"新品",isActive:!1,list:[]},{name:"品牌",selectedName:"品牌",isActive:!1,list:[{name:"trendsetter",selected:!1},{name:"维肯（Viken）",selected:!1},{name:"AORO",selected:!1},{name:"苏发",selected:!1},{name:"飞花令（FHL）",selected:!1},{name:"叶梦丝",selected:!1},{name:"ITZOOM",selected:!1},{name:"亿魅",selected:!1},{name:"LEIKS",selected:!1},{name:"雷克士",selected:!1},{name:"蕊芬妮",selected:!1},{name:"辉宏达",selected:!1},{name:"英西达",selected:!1},{name:"戴为",selected:!1},{name:"魔风者",selected:!1},{name:"即满",selected:!1},{name:"北比",selected:!1},{name:"娱浪",selected:!1},{name:"搞怪猪",selected:!1}]},{name:"类型",selectedName:"类型",isActive:!1,list:[{name:"线充套装",selected:!1},{name:"单条装",selected:!1},{name:"车载充电器",selected:!1},{name:"PD快充",selected:!1},{name:"数据线转换器",selected:!1},{name:"多条装",selected:!1},{name:"充电插头",selected:!1},{name:"无线充电器",selected:!1},{name:"座式充电器",selected:!1},{name:"万能充",selected:!1},{name:"转换器/转接线",selected:!1},{name:"MFI苹果认证",selected:!1},{name:"转换器",selected:!1},{name:"苹果认证",selected:!1}]},{name:"适用手机",selectedName:"适用手机",isActive:!1,list:[{name:"通用",selected:!1},{name:"vivo",selected:!1},{name:"OPPO",selected:!1},{name:"魅族",selected:!1},{name:"苹果",selected:!1},{name:"华为",selected:!1},{name:"三星",selected:!1},{name:"荣耀",selected:!1},{name:"诺基亚5",selected:!1},{name:"荣耀4",selected:!1},{name:"诺基",selected:!1},{name:"荣耀",selected:!1},{name:"诺基亚2",selected:!1},{name:"荣耀2",selected:!1},{name:"诺基",selected:!1}]}],productList:[{img:1,name:"欧莱雅（LOREAL）奇焕光彩粉嫩透亮修颜霜 30ml（欧莱雅彩妆 BB霜 粉BB 遮瑕疵 隔离）",sale:599,factory:899,payNum:2342},{img:2,name:"德国DMK进口牛奶  欧德堡（Oldenburger）超高温处理全脂纯牛奶1L*12盒",sale:29,factory:69,payNum:999},{img:3,name:"【第2支1元】柔色尽情丝柔口红唇膏女士不易掉色保湿滋润防水 珊瑚红",sale:299,factory:699,payNum:666},{img:4,name:"百雀羚套装女补水保湿护肤品",sale:1599,factory:2899,payNum:236},{img:5,name:"百草味 肉干肉脯 休闲零食 靖江精制猪肉脯200g/袋",sale:599,factory:899,payNum:2399},{img:6,name:"短袖睡衣女夏季薄款休闲家居服短裤套装女可爱韩版清新学生两件套 短袖粉色长颈鹿 M码75-95斤",sale:599,factory:899,payNum:2399},{img:1,name:"欧莱雅（LOREAL）奇焕光彩粉嫩透亮修颜霜",sale:599,factory:899,payNum:2342},{img:2,name:"德国DMK进口牛奶",sale:29,factory:69,payNum:999},{img:3,name:"【第2支1元】柔色尽情丝柔口红唇膏女士不易掉色保湿滋润防水 珊瑚红",sale:299,factory:699,payNum:666},{img:4,name:"百雀羚套装女补水保湿护肤品",sale:1599,factory:2899,payNum:236}],pageIndex:1,loadding:!1,pullUpOn:!0}},onLoad:function(t){var n=this,a={};e.getSystemInfo({success:function(s){n.width=a.left||s.windowWidth,n.height=a.top?a.top+a.height+8:s.statusBarHeight+44,n.inputTop=a.top?a.top+(a.height-30)/2:s.statusBarHeight+7,n.arrowTop=a.top?a.top+(a.height-32)/2:s.statusBarHeight+6,n.searchKey=t.searchKey||"",n.dropScreenH=750*n.height/s.windowWidth+186,n.drawerH=s.windowHeight-e.upx2px(100)-n.height}})},methods:{px:function(t){return e.upx2px(t)+"px"},btnDropChange:function(e){var t=this,n=e.currentTarget.dataset.index,a=JSON.parse(JSON.stringify(this.attrArr[n].list));0===a.length?this.$set(this.attrArr[n],"isActive",!this.attrArr[n].isActive):(this.attrData=a,this.attrIndex=n,this.dropScreenShow=!0,this.$set(this.attrArr[n],"isActive",!1),this.scrollTop=1,this.$nextTick(function(){t.scrollTop=0}))},btnSelected:function(e){var t=e.currentTarget.dataset.index;this.$set(this.attrData[t],"selected",!this.attrData[t].selected)},reset:function(){var e=this.attrData,t=!0,n=!1,a=void 0;try{for(var s,i=e[Symbol.iterator]();!(t=(s=i.next()).done);t=!0){var r=s.value;r.selected=!1}}catch(c){n=!0,a=c}finally{try{t||null==i.return||i.return()}finally{if(n)throw a}}this.attrData=e},btnCloseDrop:function(){var e=this;this.scrollTop=1,this.$nextTick(function(){e.scrollTop=0}),this.dropScreenShow=!1,this.attrIndex=-1},btnSure:function(){var e=this.attrIndex,t=this.attrData,n=!1,a="",s=!0,i=!1,r=void 0;try{for(var c,o=t[Symbol.iterator]();!(s=(c=o.next()).done);s=!0){var d=c.value;d.selected&&(n=!0,a+=a?";"+d.name:d.name)}}catch(u){i=!0,r=u}finally{try{s||null==o.return||o.return()}finally{if(i)throw r}}var l=this.attrArr[e];this.btnCloseDrop(),this.$set(l,"isActive",n),this.$set(l,"selectedName",a)},showDropdownList:function(){this.selectH=246,this.tabIndex=0},hideDropdownList:function(){this.selectH=0},dropdownItem:function(e){for(var t=e.currentTarget.dataset.index,n=this.dropdownList,a=0;a<n.length;a++)n[a].selected=a===t;this.dropdownList=n,this.selectedName=0==t?"综合":"价格",this.selectH=0},screen:function(e){var t=e.currentTarget.dataset.index;0==t?this.showDropdownList():1==t?this.tabIndex=1:2==t?this.isList=!this.isList:3==t&&(this.drawer=!0)},closeDrawer:function(){this.drawer=!1},back:function(){this.drawer?this.closeDrawer():e.navigateBack()},search:function(){e.navigateTo({url:"../news-search/news-search"})},detail:function(){e.navigateTo({url:"../productDetail/productDetail"})}},onPullDownRefresh:function(){var t=JSON.parse(JSON.stringify(this.productList));t=t.splice(0,10),this.productList=t,this.pageIndex=1,this.pullUpOn=!0,this.loadding=!1,e.stopPullDownRefresh()},onReachBottom:function(){if(this.pullUpOn)if(this.loadding=!0,4==this.pageIndex)this.loadding=!1,this.pullUpOn=!1;else{var e=JSON.parse(JSON.stringify(this.productList));e=e.splice(0,10),1==this.pageIndex&&(e=e.reverse()),this.productList=this.productList.concat(e),this.pageIndex=this.pageIndex+1,this.loadding=!1}}};t.default=o}).call(this,n("6e42")["default"])},dc68:function(e,t,n){"use strict";var a=n("f607"),s=n.n(a);s.a},f607:function(e,t,n){}},[["eddc","common/runtime","common/vendor"]]]);