(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-users-user_vip-index"],{"0811":function(A,g,t){"use strict";t("7a82");var e=t("4ea4").default;Object.defineProperty(g,"__esModule",{value:!0}),g.default=void 0,t("d3b7"),t("159b"),t("acd8"),t("c740"),t("99af");var a=t("8ba8"),I=t("1579"),C=t("666f"),r=t("26cb"),n=e(t("f1f8")),i={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:this.$t("积分数"),number:0},{real_name:this.$t("消费金额"),number:0},{real_name:this.$t("优惠券"),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,C.toLogin)();var A=this;setTimeout((function(){A.loading=!0}),500)},methods:{getUserInfo:function(){var A=this;(0,a.getUserInfo)().then((function(g){A.is_open_member=g.data.is_open_member,A.task_list=[{real_name:A.$t("积分数"),number:g.data.integral},{real_name:A.$t("消费金额"),number:g.data.orderStatusSum},{real_name:A.$t("优惠券"),number:g.data.couponCount}]}))},getlevelInfo:function(){var A=this;(0,a.getlevelInfo)().then((function(g){var t=g.data,e=t.level_info,a=t.level_list,I=t.task,C=t.user;A.levelInfo=e,A.VipList=a,A.userInfo=C,A.taskInfo=I,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=a.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,I.getProductHot)().then((function(g){var t=A;t.hotScroll||(0,I.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._s(A.$t("未达成")))]):A._e()],1),g.grade===A.levelInfo.grade?[e("v-uni-view",{staticClass:"grow-wrap"},[e("v-uni-view",[A._v(A._s(A.$t("今日成长值"))),e("v-uni-text",{staticClass:"num"},[A._v(A._s(A.levelInfo.today_exp||""))]),A._v(A._s(A.$t("点")))],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(A._s(A.$t("我的成长值记录")))]),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(A._s(A.$t("暂未解锁该等级")))],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(A._s(A.$t("当前"))),e("v-uni-text",[A._v(A._s(A.levelInfo.exp||0))]),A._v(A._s(A.$t("点,需达到"))),e("v-uni-text",[A._v(A._s(g.exp_num||""))]),A._v(A._s(A.$t("点解锁")))],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(A._s(A.$t("我的成长值记录")))]),e("v-uni-view",{staticClass:"iconfont icon-jiantou"})],1)],1)]:A._e(),e("v-uni-view",{staticClass:"level"},[A._v(A._s(A.$t(g.name)))]),g.grade