require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/activity/vip_paid/index"],{"00f4":function(e,n,i){"use strict";(function(e,n){var t=i("47a9");i("1d3c");t(i("3240"));var o=t(i("a61e"));e.__webpack_require_UNI_MP_PLUGIN__=i,n(o.default)}).call(this,i("3223")["default"],i("df3c")["createPage"])},"064f":function(e,n,i){"use strict";i.r(n);var t=i("65e7"),o=i.n(t);for(var r in t)["default"].indexOf(r)<0&&function(e){i.d(n,e,(function(){return t[e]}))}(r);n["default"]=o.a},"206c":function(e,n,i){"use strict";i.d(n,"b",(function(){return o})),i.d(n,"c",(function(){return r})),i.d(n,"a",(function(){return t}));var t={uniPopup:function(){return i.e("uni_modules/uni-popup/components/uni-popup/uni-popup").then(i.bind(null,"e1a2"))}},o=function(){var e=this,n=e.$createElement,i=(e._self._c,e.__get_style([e.svipInfo.isPaidMember?e.paidMemberSize:e.noMemberSize])),t=e.svipInfo&&e.svipInfo.cardList&&e.svipInfo.cardList.length>0&&!e.svipInfo.isPermanentPaidMember,o=t?e.__map(e.svipInfo.cardList,(function(n,i){var t=e.__get_orig(n),o=e._f("moneyFormat")(n.price),r=e._f("moneyFormat")(n.originalPrice);return{$orig:t,f0:o,f1:r}})):null,r=e.recommendList.length,a=e.svipInfo.isPermanentPaidMember?null:parseFloat(e.svip.originalPrice);e._isMounted||(e.e0=function(n){e.isAgree=!e.isAgree}),e.$mp.data=Object.assign({},{$root:{s0:i,g0:t,l0:o,g1:r,m0:a}})},r=[]},"65e7":function(e,n,i){"use strict";(function(e){var t=i("47a9");Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var o=t(i("dd79")),r=i("0cce"),a=i("953a"),c=i("de22"),s=i("0466"),u={mixins:[o.default],components:{navBar:function(){i.e("components/navBar").then(function(){return resolve(i("820c"))}.bind(null,i)).catch(i.oe)},recommend:function(){Promise.all([i.e("common/vendor"),i.e("components/base/recommend")]).then(function(){return resolve(i("0d8d"))}.bind(null,i)).catch(i.oe)}},computed:{paidMemberSize:function(){return{backgroundImage:"url(".concat(this.$Cache.get("imgHost"),"crmebimage/presets/huiyuanbj2.png)"),width:"710rpx",height:"642rpx",backgroundSize:"710rpx 642rpx",marginLeft:"20rpx"}},noMemberSize:function(){return{backgroundImage:"url(".concat(this.$Cache.get("imgHost"),"crmebimage/presets/huiyuanbj.png)"),width:"662rpx",height:"329rpx",backgroundSize:"662rpx 329rpx",marginLeft:"36rpx"}}},data:function(){return{urlDomain:this.$Cache.get("imgHost"),userInfo:{},iconColor:"#FFFFFF",isScrolling:!1,benefitsList:[],svipInfo:{},svip:{},goodScroll:!1,params:{page:1,limit:10},loading:!1,recommendList:[],totalPrice:0,isAgree:!1,backgroundColor:""}},onLoad:function(){this.getProductMember(),this.getSvipInfo(),this.getSvipBenefitsList()},onPageScroll:function(n){e.$emit("scroll"),n.scrollTop>50?(this.backgroundColor="#fff",this.iconColor="#333333"):n.scrollTop<50&&(this.backgroundColor="",this.iconColor="#fff")},methods:{touchStart:function(){this.$refs.navBarRef.currentPage=!1},onClose:function(){this.$refs.activate.close()},goToRecord:function(){e.navigateTo({url:"/pages/activity/vip_order_record/index"})},sureOrder:function(){this.isAgree=!0,this.$refs.activate.close(),this.handlerOpen()},userAgree:function(){(0,s.goToAgreement)("paid/member/agreement/info")},goToBenefits:function(n){e.navigateTo({url:"/pages/activity/vip_paid_benefits/index?currentIndex=".concat(n)})},getProductMember:function(){var n=this;e.hideLoading(),this.goodScroll||(this.loading=!0,(0,c.productMemberApi)(this.params).then((function(e){n.$set(n.params,"page",n.params.page+1),n.goodScroll=n.params.page>e.data.totalPage,n.recommendList=n.recommendList.concat(e.data.list||[]),n.loading=!1})).catch((function(e){n.loading=!1})))},getSvipInfo:function(){var n=this;e.hideLoading(),(0,a.svipInfoApi)().then((function(e){n.svipInfo=e.data,n.svipInfo.cardList.length&&(n.svip=n.svipInfo.cardList[0])})).catch((function(n){e.showToast({title:n,icon:"none"})}))},getSvipBenefitsList:function(){var n=this;e.hideLoading(),(0,a.svipBenefitsListApi)().then((function(e){n.benefitsList=e.data})).catch((function(n){e.showToast({title:n,icon:"none"})}))},checkType:function(e){this.svip=e},subOrder:(0,r.Debounce)((function(e){if(!this.isAgree)return this.$refs.activate.open();this.handlerOpen()})),handlerOpen:function(){var n=this;e.showLoading({title:"正在提交中"}),setTimeout((function(){e.navigateTo({url:"/pages/goods/order_payment/index?orderNo=".concat(n.svip.id,"&payPrice=").concat(n.svip.price,"&fromType=svip")}),e.hideLoading()}),1e3)}}};n.default=u}).call(this,i("df3c")["default"])},"8c83":function(e,n,i){"use strict";var t=i("ebbf"),o=i.n(t);o.a},a61e:function(e,n,i){"use strict";i.r(n);var t=i("206c"),o=i("064f");for(var r in o)["default"].indexOf(r)<0&&function(e){i.d(n,e,(function(){return o[e]}))}(r);i("8c83");var a=i("828b"),c=Object(a["a"])(o["default"],t["b"],t["c"],!1,null,"462e5894",null,!1,t["a"],void 0);n["default"]=c.exports},ebbf:function(e,n,i){}},[["00f4","common/runtime","common/vendor"]]]);