require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/users/user_vip/index"],{"0c81":function(t,e,n){"use strict";n.r(e);var o=n("a27c"),i=n.n(o);for(var r in o)["default"].indexOf(r)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(r);e["default"]=i.a},"2c87":function(t,e,n){},"8b31":function(t,e,n){"use strict";(function(t,e){var o=n("47a9");n("7561");o(n("3240"));var i=o(n("ae05"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(i.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},"8e96":function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){}));var o=function(){var t=this,e=t.$createElement,n=(t._self._c,t.VipList.length),o=t.__map(t.VipList,(function(e,n){var o=t.__get_orig(e),i=t.__get_style([t.gradeStyle(e)]),r=parseFloat(e.discount),a=t.__get_style([t.progressValue(e,n)]);return{$orig:o,s0:i,m0:r,s1:a}})),i=t.hostProduct.length;t.$mp.data=Object.assign({},{$root:{g0:n,l0:o,g1:i}})},i=[]},a27c:function(t,e,n){"use strict";(function(t){var o=n("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=o(n("7ca3")),r=n("77d7"),a=n("ce7e"),l=n("7ba4"),s=n("8f59"),c=n("bad7");function u(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}var f={components:{recommend:function(){Promise.all([n.e("common/vendor"),n.e("components/recommend/index")]).then(function(){return resolve(n("6af4"))}.bind(null,n)).catch(n.oe)},NavBar:function(){n.e("components/NavBar").then(function(){return resolve(n("5962"))}.bind(null,n)).catch(n.oe)}},data:function(){return{imgHost:c.HTTP_REQUEST_URL,reach_count:0,VipList:[],currentIndex:0,growthValue:!0,task:[],illustrate:"",level_id:0,hostProduct:[],grade:0,isAuto:!1,isShowAuth:!1,hotScroll:!1,hotPage:1,hotLimit:10,level_title:"",level_discount:"",levelInfo:{},task_list:[{real_name:"积分数",number:0},{real_name:"消费金额",number:0},{real_name:"优惠券",number:0}],userInfo:{},taskInfo:{},is_open_member:!1,iconColor:"#FFFFFF",isScrolling:!1}},computed:function(t){for(var e=1;e0&&t.VipList.forEach((function(e,n){!1===e.is_clear&&(t.activeIndex=n,t.grade=e.grade)}))},isLogin:{handler:function(t,e){},deep:!0}},onLoad:function(){this.get_host_product(),this.isLogin?(this.setLeveLComplete(),this.getlevelInfo(),this.getUserInfo()):(0,l.toLogin)();var t=this;setTimeout((function(){t.loading=!0}),500)},onShow:function(){t.removeStorageSync("form_type_cart")},onPageScroll:function(e){t.$emit("scroll"),e.scrollTop>50?(this.iconColor="#333333",this.isScrolling=!0):e.scrollTop<50&&(this.iconColor="#FFFFFF",this.isScrolling=!1)},methods:{gradeStyle:function(t){return{"background-image":'url("'.concat(t.icon,'")'),color:t.color}},progressValue:function(t,e){var n=100;return this.levelInfo.grade==t.grade&&this.VipList[e+1]&&(n=this.levelInfo.exp/this.VipList[e+1].exp_num*100),{width:"".concat(n,"%"),"background-color":t.color}},getUserInfo:function(){var t=this;(0,r.getUserInfo)().then((function(e){t.is_open_member=e.data.is_open_member,t.task_list=[{real_name:"积分数",number:e.data.integral},{real_name:"消费金额",number:e.data.orderStatusSum},{real_name:"优惠券",number:e.data.couponCount}]}))},getlevelInfo:function(){var t=this;(0,r.getlevelInfo)().then((function(e){var n=e.data,o=n.level_info,i=n.level_list,r=n.task,a=n.user;t.levelInfo=o,t.VipList=i,t.userInfo=a,t.taskInfo=r,t.levelInfo.exp=parseFloat(t.levelInfo.exp),t.levelInfo.rate=Math.floor(t.levelInfo.exp/t.levelInfo.exp_num*100),t.levelInfo.rate>100&&(t.levelInfo.rate=100);var l=i.findIndex((function(t){var e=t.grade;return e===o.grade}));-1!==l&&(t.currentIndex=l)}))},onLoadFun:function(){this.setLeveLComplete(),this.getlevelInfo(),this.getUserInfo(),this.isShowAuth=!1},authColse:function(t){this.isShowAuth=t},get_host_product:function(){var t=this;t.hotScroll||(0,a.getProductHot)(t.hotPage,t.hotLimit).then((function(e){t.hotPage++,t.hotScroll=e.data.length