(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-users-user_vip-index"],{"1ea6":function(A,g,t){"use strict";var e=t("4ea4");t("99af"),t("c740"),t("4160"),t("acd8"),t("159b"),Object.defineProperty(g,"__esModule",{value:!0}),g.default=void 0;var I=t("3474"),C=t("f15c"),a=t("c6cd"),r=t("2f62"),n=e(t("22f5")),c={components:{recommend:n.default},data:function(){return{reach_count:0,VipList:[],swiperIndex: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:0}},computed:(0,r.mapGetters)(["isLogin"]),watch:{VipList:function(){var A=this;A.VipList.length>0&&A.VipList.forEach((function(g,t){!1===g.is_clear&&(A.activeIndex=t,A.grade=g.grade)}))},isLogin:{handler:function(A,g){A&&(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 A=this;setTimeout((function(){A.loading=!0}),500)},methods:{getUserInfo:function(){var A=this;(0,I.getUserInfo)().then((function(g){A.is_open_member=g.data.is_open_member,A.task_list=[{real_name:"积分数",number:g.data.integral},{real_name:"消费金额",number:g.data.orderStatusSum},{real_name:"优惠券",number:g.data.couponCount}]}))},getlevelInfo:function(){var A=this;(0,I.getlevelInfo)().then((function(g){var t=g.data,e=t.level_info,I=t.level_list,C=t.task,a=t.user;A.levelInfo=e,A.VipList=I,A.userInfo=a,A.taskInfo=C,A.levelInfo.exp=parseFloat(A.levelInfo.exp),A.levelInfo.rate=Math.floor(A.levelInfo.exp/A.levelInfo.exp_num*100),A.levelInfo.rate>100&&(A.levelInfo.rate=100);var r=I.findIndex((function(A){var g=A.grade;return g===e.grade}));-1!==r&&(A.swiperIndex=r)}))},onLoadFun:function(){this.setLeveLComplete(),this.get_host_product()},authColse:function(A){this.isShowAuth=A},get_host_product:function(){var A=this;(0,C.getProductHot)().then((function(g){var t=A;t.hotScroll||(0,C.getProductHot)(t.hotPage,t.hotLimit).then((function(A){t.hotPage++,t.hotScroll=A.data.lengthA.levelInfo.grade?e("v-uni-view",{staticClass:"state"},[A._v("未达成")]):A._e()],1),g.grade===A.levelInfo.grade?[e("v-uni-view",{staticClass:"grow-wrap"},[e("v-uni-view",[A._v("今日成长值"),e("v-uni-text",{staticClass:"num"},[A._v(A._s(A.levelInfo.today_exp))]),A._v("点")],1),e("v-uni-view",{staticClass:"process"},[e("v-uni-view",{staticClass:"fill",style:{width:Math.floor(A.levelInfo.exp/g.next_exp_num>1?100:A.levelInfo.exp/g.next_exp_num*100)+"%"}})],1),e("v-uni-view",{staticClass:"ratio"},[e("v-uni-text",{staticClass:"num"},[A._v(A._s(A.levelInfo.exp))]),A._v("/"),e("v-uni-text",{staticClass:"num"},[A._v(A._s(g.next_exp_num))])],1)],1),e("v-uni-navigator",{staticClass:"acea-row row-between-wrapper record-wrap",attrs:{url:"/pages/users/user_vip_areer/index","hover-class":"none"}},[e("v-uni-view",[A._v("我的成长值记录")]),e("v-uni-view",{staticClass:"iconfont icon-jiantou"})],1)]:A._e(),!A.levelInfo.grade||g.grade>A.levelInfo.grade?[e("v-uni-view",{staticClass:"grow-wrap"},[e("v-uni-view",{staticClass:"lock"},[e("v-uni-text",{staticClass:"iconfont icon-quanxianguanlisuozi"}),A._v("暂未解锁该等级")],1),e("v-uni-view",{staticClass:"process"},[e("v-uni-view",{staticClass:"fill",style:{width:Math.floor(A.levelInfo.exp/g.exp_num*100)+"%"}})],1),e("v-uni-view",{staticClass:"ratio"},[e("v-uni-text",{staticClass:"num"},[A._v("当前"),e("v-uni-text",[A._v(A._s(A.levelInfo.exp))]),A._v("点,需达到"),e("v-uni-text",[A._v(A._s(g.exp_num))]),A._v("点解锁")],1)],1),e("v-uni-navigator",{staticClass:"acea-row row-between-wrapper record-wrap",staticStyle:{"padding-left":"0"},attrs:{url:"/pages/users/user_vip_areer/index","hover-class":"none"}},[e("v-uni-view",[A._v("我的成长值记录")]),e("v-uni-view",{staticClass:"iconfont icon-jiantou"})],1)],1)]:A._e(),e("v-uni-view",{staticClass:"level"},[A._v(A._s(g.name))]),g.grade