text: (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/vip/vip"],{"328a":function(t,i,n){"use strict";n.r(i);var e=n("b580"),r=n.n(e);for(var a in e)"default"!==a&&function(t){n.d(i,t,function(){return e[t]})}(a);i["default"]=r.a},"7cd0":function(t,i,n){"use strict";n.r(i);var e=n("8430"),r=n("328a");for(var a in r)"default"!==a&&function(t){n.d(i,t,function(){return r[t]})}(a);n("93b8");var u=n("2877"),c=Object(u["a"])(r["default"],e["a"],e["b"],!1,null,"022642a0",null);i["default"]=c.exports},8430:function(t,i,n){"use strict";var e=function(){var t=this,i=t.$createElement;t._self._c},r=[];n.d(i,"a",function(){return e}),n.d(i,"b",function(){return r})},"93b8":function(t,i,n){"use strict";var e=n("e9dd"),r=n.n(e);r.a},b580:function(t,i,n){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var e={data:function(){return{currentVip:0,currentIndex:0,currentVipExpired:"",rewardInvestment:[],config:[]}},created:function(){this.initVip(),this.currentVipExpired=this.$api.getConfig("vip_expired"),this.currentIndex=this.currentVip,this.rewardInvestment=this.$api.getConfig("reward_investment",this.$api.SYSTEM_CONFIG);var t=this.$api.getConfig("vip",this.$api.SYSTEM_CONFIG);for(var i in t)t[i].price?"string"===typeof t[i].price&&(t[i].price=JSON.parse(t[i].price)):t[i].price=0;this.config=t},computed:{label:function(){return this.currentVip>0?"续费":"开通"}},methods:{initVip:function(){this.currentVip=this.$api.getConfig("vip")},doApply:function(t){var i=this;this.$api.post("user/vip",{time:t.currentTarget.dataset.time,vip:this.currentIndex},function(t){0==t.code&&(0==t.data.paid?(i.$api.msg("正在前往支付"),i.$api.payment(t.data.orderInfo,function(t){i.$api.setConfig("vip",i.currentIndex,i.$api.USER_CONFIG),i.initVip(),i.$api.modal("支付成功")},function(t){i.$api.msg("支付失败")})):(i.$api.setConfig("vip",i.currentIndex,i.$api.USER_CONFIG),i.initVip(),i.$api.modal("支付成功")))})},cardSwiper:function(t){this.currentIndex=t.detail.current}}};i.default=e},ba41:function(t,i,n){"use strict";(function(t){n("ae7a"),n("921b");e(n("66fd"));var i=e(n("7cd0"));function e(t){return t&&t.__esModule?t:{default:t}}t(i.default)}).call(this,n("6e42")["createPage"])},e9dd:function(t,i,n){}},[["ba41","common/runtime","common/vendor"]]]);