(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-users-user_vip-index"],{"05f2":function(A,g,t){"use strict";t.r(g);var e=t("2187"),I=t("ff84");for(var C in I)["default"].indexOf(C)<0&&function(A){t.d(g,A,(function(){return I[A]}))}(C);t("0979");var a=t("f0c5"),r=Object(a["a"])(I["default"],e["b"],e["c"],!1,null,"25bd7c06",null,!1,e["a"],void 0);g["default"]=r.exports},"0979":function(A,g,t){"use strict";var e=t("664a"),I=t.n(e);I.a},"0b87":function(A,g,t){"use strict";t.r(g);var e=t("ebf7"),I=t.n(e);for(var C in e)["default"].indexOf(C)<0&&function(A){t.d(g,A,(function(){return e[A]}))}(C);g["default"]=I.a},"0fba":function(A,g,t){"use strict";var e=t("1e8a"),I=t.n(e);I.a},1598:function(A,g,t){A.exports=t.p+"pages/users/static/2.png"},"1e8a":function(A,g,t){var e=t("bead");e.__esModule&&(e=e.default),"string"===typeof e&&(e=[[A.i,e,""]]),e.locals&&(A.exports=e.locals);var I=t("4f06").default;I("7a775c27",e,!0,{sourceMap:!1,shadowMode:!1})},2187:function(A,g,t){"use strict";t.d(g,"b",(function(){return e})),t.d(g,"c",(function(){return I})),t.d(g,"a",(function(){}));var e=function(){var A=this,g=A.$createElement,e=A._self._c||g;return e("v-uni-view",[e("v-uni-view",{staticClass:"member-center"},[e("v-uni-view",{staticClass:"header"},[e("v-uni-swiper",{staticClass:"swiper",attrs:{current:A.swiperIndex,"previous-margin":"55rpx","next-margin":"55rpx"},on:{change:function(g){arguments[0]=g=A.$handleEvent(g),A.swiperChange.apply(void 0,arguments)}}},[A._l(A.VipList,(function(g,t){return[e("v-uni-swiper-item",[e("v-uni-view",{staticClass:"swiper-item",class:{on:A.swiperIndex==t},style:{"background-image":"url("+g.image+")"}},[e("v-uni-view",{staticClass:"acea-row row-middle user-wrap"},[e("v-uni-image",{staticClass:"image",attrs:{src:A.userInfo.avatar}}),e("v-uni-view",{staticClass:"text"},[e("v-uni-view",{staticClass:"name"},[A._v(A._s(A.$t(A.userInfo.nickname||"")))]),e("v-uni-view",[A._v(A._s(A.$t("商城购物可享"))),e("v-uni-text",{staticClass:"num"},[A._v(A._s(g.discount))]),A._v(A._s(A.$t("折")))],1)],1),g.grade===A.levelInfo.grade?e("v-uni-view",{staticClass:"state"},[A._v(A._s(A.$t("当前等级")))]):A._e(),!A.levelInfo.grade||g.grade>A.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.grade0&&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,0===g.data.member_func_status&&A.$util.Tips({title:A.$t("暂未开启等级")},{tab:3}),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.length