(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-users-user_vip-index"],{"00fd":function(A,g,t){"use strict";var e=t("df3f"),I=t.n(e);I.a},"0d3a":function(A,g,t){A.exports=t.p+"static/img/1.a4fb1eca.png"},"22bd":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||""))]),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&&g.base?t("v-uni-view",{staticClass:"vip-money"},[A._v(A._s(A.$t("¥"))+A._s(g.vip_price)),t("v-uni-image",{staticClass:"jvip",attrs:{src:"/static/images/jvip.png"}})],1):A._e(),g.vip_price&&g.vip_price>0&&g.is_vip?t("v-uni-view",{staticClass:"vip-money"},[A._v(A._s(A.$t("¥"))+A._s(g.vip_price)),t("v-uni-image",{attrs:{src:"/static/images/vip.png"}})],1):A._e()],1)})),1)],1)},a=[]},c01a:function(A,g,t){"use strict";var e=t("d533"),I=t.n(e);I.a},ce65:function(A,g,t){"use strict";t("7a82");var e=t("4ea4").default;Object.defineProperty(g,"__esModule",{value:!0}),g.collectAdd=function(A,g){return I.default.post("collect/add",{id:A,product:void 0===g?"product":g})},g.collectAll=function(A,g){return I.default.post("collect/all",{id:A,category:void 0===g?"product":g})},g.collectDel=function(A,g){return I.default.post("collect/del",{id:A,category:void 0===g?"product":g})},g.create=function(A){return I.default.post("agent/apply/".concat(A.id),A)},g.deleteVisitList=function(A){return I.default.delete("user/visit",A)},g.getAgentAgreement=function(A){return I.default.get("agent/get_agent_agreement",{},{noAuth:!0})},g.getAttr=function(A,g){return I.default.get("v2/get_attr/"+A+"/"+g)},g.getCategoryList=function(){return I.default.get("category",{},{noAuth:!0})},g.getCodeApi=function(){return I.default.get("verify_code",{},{noAuth:!0})},g.getCollectUserList=function(A){return I.default.get("collect/user",A)},g.getGoodsDetails=function(){return I.default.get("agent/apply/info",{},{noAuth:!0})},g.getGroomList=function(A,g){return I.default.get("groom/list/"+A,g,{noAuth:!0})},g.getHomeProducts=function(A){return I.default.get("home/products",A,{noAuth:!0})},g.getPresellProductDetail=function(A){return I.default.get("advance/detail/"+A)},g.getProductCode=function(A){return I.default.get("product/code/"+A,{})},g.getProductDetail=function(A){return I.default.get("product/detail/"+A,{},{noAuth:!0})},g.getProductHot=function(A,g){return I.default.get("product/hot",{page:void 0===A?1:A,limit:void 0===g?4:g},{noAuth:!0})},g.getProductslist=function(A){return I.default.get("products",A,{noAuth:!0})},g.getReplyConfig=function(A){return I.default.get("reply/config/"+A)},g.getReplyList=function(A,g){return I.default.get("reply/list/"+A,g)},g.getSearchKeyword=function(){return I.default.get("search/keyword",{},{noAuth:!0})},g.getVisitList=function(A){return I.default.get("user/visit_list",A)},g.postCartAdd=function(A){return I.default.post("cart/add",A)},g.postCartNum=function(A){return I.default.post("v2/set_cart_num",A)},g.registerVerify=function(A){return I.default.post("register/verify",A,{noAuth:!0})},g.storeDiscountsList=function(A){return I.default.get("store_discounts/list/"+A,{},{noAuth:!0})},g.storeListApi=function(A){return I.default.get("store_list",A)};var I=e(t("b7e7"))},d007:function(A,g,t){"use strict";t.r(g);var e=t("3ab7"),I=t.n(e);for(var a in e)["default"].indexOf(a)<0&&function(A){t.d(g,A,(function(){return e[A]}))}(a);g["default"]=I.a},d432:function(A,g,t){"use strict";t("7a82"),Object.defineProperty(g,"__esModule",{value:!0}),g.goPage=function(){return new Promise((function(A){if(0!=e.globalData.isIframe)return!1;A(!0)}))},g.goShopDetail=function(A,g){return new Promise((function(t){A.activity&&"1"===A.activity.type?uni.navigateTo({url:"/pages/activity/goods_seckill_details/index?id=".concat(A.activity.id,"&time=").concat(A.activity.time,"&status=1")}):A.activity&&"2"===A.activity.type?uni.navigateTo({url:"/pages/activity/goods_bargain_details/index?id=".concat(A.activity.id,"&bargain=").concat(g)}):A.activity&&"3"===A.activity.type?uni.navigateTo({url:"/pages/activity/goods_combination_details/index?id=".concat(A.activity.id)}):t(A)}))},t("d3b7"),t("99af");var e=getApp()},d533:function(A,g,t){var e=t("7bf3");e.__esModule&&(e=e.default),"string"===typeof e&&(e=[[A.i,e,""]]),e.locals&&(A.exports=e.locals);var I=t("4f06").default;I("45631e55",e,!0,{sourceMap:!1,shadowMode:!1})},df3f:function(A,g,t){var e=t("e703");e.__esModule&&(e=e.default),"string"===typeof e&&(e=[[A.i,e,""]]),e.locals&&(A.exports=e.locals);var I=t("4f06").default;I("a988ac9a",e,!0,{sourceMap:!1,shadowMode:!1})},e44a: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 I=t("b2ff"),a=t("ce65"),C=t("e69b"),r=t("26cb"),n=e(t("3022")),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,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,a=t.task,C=t.user;A.levelInfo=e,A.VipList=I,A.userInfo=C,A.taskInfo=a,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,a.getProductHot)().then((function(g){var t=A;t.hotScroll||(0,a.getProductHot)(t.hotPage,t.hotLimit).then((function(A){t.hotPage++,t.hotScroll=A.data.length