require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/users/user_vip/index"],{"05f2":function(e,t,n){"use strict";n.r(t);var o=n("282b"),l=n("ff84");for(var a in l)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return l[e]}))}(a);n("41dd");var i=n("f0c5"),r=Object(i["a"])(l["default"],o["b"],o["c"],!1,null,"738f23f2",null,!1,o["a"],void 0);t["default"]=r.exports},"282b":function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return l})),n.d(t,"a",(function(){}));var o=function(){var e=this,t=e.$createElement,n=(e._self._c,e.$t(e.userInfo.nickname||"")),o=e.$t("商城购物可享"),l=e.$t("折"),a=e.__map(e.VipList,(function(t,n){var o=e.__get_orig(t),l=t.grade===e.levelInfo.grade?e.$t("当前等级"):null,a=!e.levelInfo.grade||t.grade>e.levelInfo.grade?e.$t("未达成"):null,i=t.grade===e.levelInfo.grade?e.$t("今日成长值"):null,r=t.grade===e.levelInfo.grade?e.$t("点"):null,u=t.grade===e.levelInfo.grade?Math.floor(e.levelInfo.exp/t.next_exp_num>1?100:e.levelInfo.exp/t.next_exp_num*100):null,s=t.grade===e.levelInfo.grade?e.$t("我的成长值记录"):null,d=!e.levelInfo.grade||t.grade>e.levelInfo.grade?e.$t("暂未解锁该等级"):null,c=!e.levelInfo.grade||t.grade>e.levelInfo.grade?Math.floor(e.levelInfo.exp/t.exp_num*100):null,f=!e.levelInfo.grade||t.grade>e.levelInfo.grade?e.$t("当前"):null,m=!e.levelInfo.grade||t.grade>e.levelInfo.grade?e.$t("点,需达到"):null,h=!e.levelInfo.grade||t.grade>e.levelInfo.grade?e.$t("点解锁"):null,v=!e.levelInfo.grade||t.grade>e.levelInfo.grade?e.$t("我的成长值记录"):null,g=e.$t(t.name),_=t.grade0&&e.VipList.forEach((function(t,n){!1===t.is_clear&&(e.activeIndex=n,e.grade=t.grade)}))},isLogin:{handler:function(e,t){e&&(this.setLeveLComplete(),this.get_host_product())},deep:!0}},onLoad:function(){this.isLogin?(this.setLeveLComplete(),this.get_host_product(),this.getlevelInfo(),this.getUserInfo()):(0,a.toLogin)();var e=this;setTimeout((function(){e.loading=!0}),500)},methods:{getUserInfo:function(){var e=this;(0,o.getUserInfo)().then((function(t){e.is_open_member=t.data.is_open_member,e.task_list=[{real_name:e.$t("积分数"),number:t.data.integral},{real_name:e.$t("消费金额"),number:t.data.orderStatusSum},{real_name:e.$t("优惠券"),number:t.data.couponCount}]}))},getlevelInfo:function(){var e=this;(0,o.getlevelInfo)().then((function(t){var n=t.data,o=n.level_info,l=n.level_list,a=n.task,i=n.user;e.levelInfo=o,e.VipList=l,e.userInfo=i,e.taskInfo=a,e.levelInfo.exp=parseFloat(e.levelInfo.exp),e.levelInfo.rate=Math.floor(e.levelInfo.exp/e.levelInfo.exp_num*100),e.levelInfo.rate>100&&(e.levelInfo.rate=100);var r=l.findIndex((function(e){var t=e.grade;return t===o.grade}));-1!==r&&(e.swiperIndex=r)}))},onLoadFun:function(){this.setLeveLComplete(),this.get_host_product()},authColse:function(e){this.isShowAuth=e},get_host_product:function(){var e=this;(0,l.getProductHot)().then((function(t){var n=e;n.hotScroll||(0,l.getProductHot)(n.hotPage,n.hotLimit).then((function(e){n.hotPage++,n.hotScroll=e.data.length