(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-users-user_vip-index"],{"01fc":function(A,g,t){"use strict";t.r(g);var e=t("563c"),I=t.n(e);for(var C in e)"default"!==C&&function(A){t.d(g,A,(function(){return e[A]}))}(C);g["default"]=I.a},"0b82":function(A,g,t){var e=t("6d6a");"string"===typeof e&&(e=[[A.i,e,""]]),e.locals&&(A.exports=e.locals);var I=t("4f06").default;I("d8376718",e,!0,{sourceMap:!1,shadowMode:!1})},"12ac":function(A,g,t){"use strict";t.r(g);var e=t("bd3e"),I=t("01fc");for(var C in I)"default"!==C&&function(A){t.d(g,A,(function(){return I[A]}))}(C);t("cda1");var a,r=t("f0c5"),n=Object(r["a"])(I["default"],e["b"],e["c"],!1,null,"b8cd9364",null,!1,e["a"],a);g["default"]=n.exports},"3c6b":function(A,g,t){A.exports=t.p+"static/img/3.f0d15b3a.png"},"47fb":function(A,g,t){var e=t("24fb");g=e(!1),g.push([A.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* crmeb颜色变量 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.recommend[data-v-22a543e2]{background-color:#fff}.recommend .title[data-v-22a543e2]{height:%?135?%;font-size:%?28?%;color:#282828}.recommend .title .name[data-v-22a543e2]{margin:0 %?28?%}.recommend .title .iconfont[data-v-22a543e2]{font-size:%?170?%;color:#454545}.recommend .title .iconfont.lefticon[data-v-22a543e2]{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.recommend .recommendList[data-v-22a543e2]{padding:0 %?30?%}.recommend .recommendList .item[data-v-22a543e2]{width:%?335?%;margin-bottom:%?30?%;border-radius:%?20?% %?20?% 0 0;box-shadow:%?0?% %?3?% %?10?% %?2?% rgba(0,0,0,.03)}.recommend .recommendList .item .pictrue[data-v-22a543e2]{position:relative;width:100%;height:%?335?%}.recommend .recommendList .item .pictrue uni-image[data-v-22a543e2]{width:100%;height:100%;border-radius:%?20?%}.recommend .recommendList .item .name[data-v-22a543e2]{font-size:%?28?%;color:#282828;margin-top:%?20?%;padding:0 %?10?%}.recommend .recommendList .item .money[data-v-22a543e2]{font-size:%?20?%;margin-top:%?8?%;padding:0 %?10?% %?10?% %?10?%}.recommend .recommendList .item .money .num[data-v-22a543e2]{font-size:%?28?%}',""]),A.exports=g},"509e":function(A,g,t){A.exports=t.p+"static/img/2.7670768a.png"},"563c":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("cff9"),C=t("dbf8"),a=t("1118"),r=t("26cb"),n=e(t("8084")),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: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,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: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,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._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))]),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