(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["plugins/step/top/top"],{"0f61":function(t,e,n){},9632:function(t,e,n){"use strict";n.r(e);var o=n("db50"),i=n("ea1e");for(var a in i)"default"!==a&&function(t){n.d(e,t,(function(){return i[t]}))}(a);n("bd65");var r,c=n("f0c5"),u=Object(c["a"])(i["default"],o["b"],o["c"],!1,null,"45c7793f",null,!1,o["a"],r);e["default"]=u.exports},bd65:function(t,e,n){"use strict";var o=n("0f61"),i=n.n(o);i.a},db50:function(t,e,n){"use strict";var o,i=function(){var t=this,e=t.$createElement,n=(t._self._c,t._f("getObje")(t.ad_data,t.ad_data));t.$mp.data=Object.assign({},{$root:{f0:n}})},a=[];n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return o}))},e3d1:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n("2f62");function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function a(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var c=function(){Promise.all([n.e("common/vendor"),n.e("components/basic-component/app-layout/app-layout")]).then(function(){return resolve(n("3dd6"))}.bind(null,n)).catch(n.oe)},u=function(){Promise.all([n.e("common/vendor"),n.e("components/basic-component/app-form-id/app-form-id")]).then(function(){return resolve(n("e583"))}.bind(null,n)).catch(n.oe)},s=function(){n.e("components/page-component/app-ad/app-ad").then(function(){return resolve(n("c4cc"))}.bind(null,n)).catch(n.oe)},l={data:function(){return{list:[],over:!1,ad_data:{},user:{},loading:!1,more:!1,_num:1,setting:null,adHeight:0,coupon_url:this.$api.step.receive}},components:{"app-layout":c,"app-form-id":u,appAd:s},computed:a({},(0,o.mapState)({theme:function(t){return t.mallConfig.theme},stepImg:function(t){return t.mallConfig.plugin.step}})),filters:{getObje:function(t,e){return{id:t.id}}},methods:{getHeight:function(){var e=this,n=this;setTimeout((function(){var o=t.createSelectorQuery().in(e);o.select("#ad").boundingClientRect((function(t){console.log(t),n.adHeight=t.height})).exec()}))},change:function(e){var n,o=this;t.showLoading({text:"加载中..."}),o.list=[],o.user={},o._num=e,1==e?n=o.$api.step.step_convert:2==e&&(n=o.$api.step.ranking),o.getList(n)},getSetting:function(){var e=this;e.$request({url:e.$api.step.setting}).then((function(n){e.$hideLoading(),0==n.code?e.setting=n.data:t.showToast({title:n.msg,icon:"none",duration:1e3})})).catch((function(t){e.$hideLoading()}))},getList:function(e){var n=this;n.$request({url:e,data:{status:n._num}}).then((function(e){if(n.$hideLoading(),t.hideLoading(),0==e.code){if(n.list=e.data.list,n.user=e.data.user,n.ad_data=e.data.ad_data,n.list.length>0){for(var o=0;o<n.list.length;o++)n.list[o].raking=o+1;n.list[0].img="./../image/top1.png",n.list.length>1&&(n.list[1].img="./../image/top2.png"),n.list.length>2&&(n.list[2].img="./../image/top3.png")}n.getHeight()}else t.showToast({title:e.msg,icon:"none",duration:1e3})})).catch((function(e){n.$hideLoading(),t.hideLoading()}))}},onLoad:function(){var t=this,e=t.$api.step.step_convert;t._num=1,t.$showLoading({type:"global",text:"加载中..."}),t.getList(e)}};e.default=l}).call(this,n("543d")["default"])},e9ad:function(t,e,n){"use strict";(function(t){n("8748");o(n("66fd"));var e=o(n("9632"));function o(t){return t&&t.__esModule?t:{default:t}}t(e.default)}).call(this,n("543d")["createPage"])},ea1e:function(t,e,n){"use strict";n.r(e);var o=n("e3d1"),i=n.n(o);for(var a in o)"default"!==a&&function(t){n.d(e,t,(function(){return o[t]}))}(a);e["default"]=i.a}},[["e9ad","common/runtime","common/vendor"]]]);