(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["user-info-page-becomeMember-becomeMember"],{"0bcf":function(e,t,a){"use strict";a.r(t);var n=a("a60f"),i=a.n(n);for(var r in n)["default"].indexOf(r)<0&&function(e){a.d(t,e,(function(){return n[e]}))}(r);t["default"]=i.a},"38f3":function(e,t,a){"use strict";a("6a54");var n=a("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.getRedpacketListApi=t.getMealRedpacket=t.exchangeApi=t.createOrderTcRedpacket=t.createOrderJlRedpacket=t.checkSvipApi=t.checkExchangeApi=void 0;var i=n(a("7653"));t.createOrderJlRedpacket=function(e){return i.default.post("api/user.mealRedpacket.meal_redpacket_order/createAddOrder",e)};t.createOrderTcRedpacket=function(e){return i.default.post("api/user.mealRedpacket.meal_redpacket_order/createOrder",e)};t.getMealRedpacket=function(){return i.default.get("api/user.mealRedpacket.meal_redpacket/index")};t.getRedpacketListApi=function(e){var t=e.status,a=e.page,n=e.psize;return i.default.get("api/user.member.redpacket/list",{status:t||0,page:a||1,psize:n||20})};t.checkExchangeApi=function(e){return i.default.get("api/user.mealRedpacket.meal_redpacket/checkExchange?sid="+e)};t.exchangeApi=function(e){return i.default.post("api/user.mealRedpacket.meal_redpacket/exchange",e)};t.checkSvipApi=function(){return i.default.get("api/user.mealRedpacket.meal_redpacket_order/checkSvip")}},"989f":function(e,t,a){"use strict";a.d(t,"b",(function(){return n})),a.d(t,"c",(function(){return i})),a.d(t,"a",(function(){}));var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("custom-page",{attrs:{"custom-navbar":!0,"navbar-title":"套餐红包"}},[e.redpacket_ready?a("v-uni-view",{staticClass:"mine-page"},[a("v-uni-view",{staticClass:"bg"}),a("v-uni-view",{staticClass:"cardBox tn-flex-row-center",style:[{paddingTop:e.navBarInfo.height-50+"px"}]},[a("v-uni-view",{staticClass:"card"},[a("v-uni-view",{staticClass:"title"},[a("v-uni-text",{staticClass:"tn-icon-vip-fill",staticStyle:{"font-size":"32rpx"}}),e._v("开通会员每月可省"+e._s(Number(e.tcRedEnvelope[0].discount)*e.tcRedEnvelope.length)+"元")],1),a("v-uni-view",{staticClass:"subtitleBox"},[a("v-uni-view",{staticClass:"subtitleLeft"},[e._v("全场通用红包")]),a("v-uni-view",{staticClass:"subtitleLine"}),a("v-uni-view",{staticClass:"subtitleRight"},[e._v("价值"+e._s(Number(e.tcRedEnvelope[0].discount)*e.tcRedEnvelope.length)+"元")])],1),a("v-uni-view",{staticClass:"redEnvelopeBox"},[e._l(e.tcRedEnvelope,(function(t,n){return a("v-uni-view",{key:n,staticClass:"redEnvelopeItem"},[a("v-uni-view",{staticClass:"redEnvelopeItem_Bg"},[a("v-uni-view",{staticClass:"redEnvelopeItem_Bg_center"},[a("v-uni-view",{staticClass:"redEnvelopeItem_Bg_center_price"},[e._v(e._s(e.CurrencyUnit)+e._s(t.discount))]),a("v-uni-view",{staticClass:"redEnvelopeItem_Bg_center_title"},[e._v("无门槛")])],1)],1)],1)})),a("v-uni-view",{staticStyle:{width:"100%",height:"190rpx",display:"flex","align-items":"center","justify-content":"center"}},[a("v-uni-view",{staticStyle:{width:"600rpx",height:"92rpx",color:"#fff","border-radius":"60rpx",display:"flex","justify-content":"center","align-items":"center"},style:{background:e.canBuy?"linear-gradient(to top,#FF9B4E,#F74D35)":"#9f9f9f"},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.createOrderTc(e.mealRedpacket.id)}}},[a("v-uni-view",{staticStyle:{width:"600rpx",height:"48rpx",display:"flex","justify-content":"center","align-items":"flex-end"}},[a("v-uni-text",{staticStyle:{"font-size":"48rpx","font-weight":"400","padding-right":"9rpx"}},[e._v(e._s(e.CurrencyUnit)+e._s(e.mealRedpacket.data.params.new_person_price))]),a("v-uni-text",{staticStyle:{width:"auto","text-decoration":"line-through",color:"#fff","font-size":"25rpx"}},[e._v(e._s(e.CurrencyUnit)+e._s(e.mealRedpacket.data.params.price))]),a("v-uni-text",{staticStyle:{"font-size":"35rpx","padding-left":"9rpx"}},[e._v("开通一个月会员")])],1)],1)],1)],2)],1),a("v-uni-view",{staticClass:"card",staticStyle:{"padding-bottom":"35rpx","padding-top":"20rpx"}},[a("v-uni-view",{staticClass:"subtitleBox"},[e._v("低价购买会员加量包")]),a("v-uni-view",{staticClass:"prompt"},[e._v("开通会员即可购买使用")]),a("v-uni-view",{staticClass:"redEnvelopeBox"},e._l(e.jlRedEnvelope,(function(t,n){return a("v-uni-view",{staticClass:"redEnvelopeItem",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.createOrderJl(n,e.mealRedpacket.id)}}},[a("v-uni-view",{staticClass:"redEnvelopeItemCar"},[a("v-uni-view",{staticClass:"redEnvelopeItemCarBg"},[a("v-uni-view",{staticClass:"redEnvelopeItemCarCenter"},[a("v-uni-text",{staticClass:"redEnvelopeItemCarCenter_price"},[e._v(e._s(e.CurrencyUnit)+e._s(t.discount))]),a("v-uni-text",{staticClass:"redEnvelopeItemCarCenter_ride"},[e._v("X")]),a("v-uni-text",{staticClass:"redEnvelopeItemCarCenter_number"},[e._v(e._s(t.number)+"张")])],1)],1)],1),a("v-uni-view",{staticClass:"redEnvelopeItemTitle"},[e._v(e._s(t.name))]),a("v-uni-view",{staticClass:"redEnvelopeItemPrice"},[a("v-uni-text",{staticClass:"currentPrice"},[e._v(e._s(e.CurrencyUnit)+e._s(t.price))]),a("v-uni-text",{staticClass:"originalPrice"},[e._v(e._s(e.CurrencyUnit)+e._s(t.origin_price))])],1),a("v-uni-view",{staticClass:"activity"},[a("v-uni-view",{staticClass:"activityBg"},[e._v("限时活动")])],1)],1)})),1)],1),a("v-uni-view",{staticStyle:{width:"100%",height:"65rpx",display:"flex","align-items":"center","font-size":"31rpx","font-weight":"bold","margin-top":"20rpx"}},[e._v("会员红包膨胀专属商家")]),e.shopData.length>0?a("v-uni-view",{staticClass:"store-data",staticStyle:{"margin-bottom":"40rpx"}},e._l(e.shopData,(function(e,t){return a("v-uni-view",{key:t,staticClass:"store-item tn-shadow"},[a("store-list-item",{attrs:{store:e}})],1)})),1):e._e()],1),a("pay-select-modal",{attrs:{"order-id":e.orderId,"order-type":"mealRedpacket"},on:{success:function(t){arguments[0]=t=e.$handleEvent(t),e.successPayEvent.apply(void 0,arguments)},fail:function(t){arguments[0]=t=e.$handleEvent(t),e.failPayEvent.apply(void 0,arguments)},cancel:function(t){arguments[0]=t=e.$handleEvent(t),e.cancelPayEvent.apply(void 0,arguments)}},model:{value:e.showSelectPayWayModal,callback:function(t){e.showSelectPayWayModal=t},expression:"showSelectPayWayModal"}})],1):e._e()],1)},i=[]},a2c9:function(e,t,a){var n=a("d3b4d");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var i=a("967d").default;i("6dec2929",n,!0,{sourceMap:!1,shadowMode:!1})},a60f:function(e,t,a){"use strict";a("6a54");var n=a("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a("aa9c"),a("64aa");var i=a("38f3"),r=a("af51"),d=n(a("34cae")),o=n(a("a5f1")),c=n(a("6fbe")),l=n(a("dc1f")),s=a("9d0a"),p=a("419c"),f={components:{StoreListItem:o.default,PaySelectModal:d.default},mixins:[c.default,l.default],data:function(){return{type:-1,navbarBgOpacity:0,orderId:0,showSelectPayWayModal:!1,canBuy:!1,tcRedEnvelope:[],mealRedpacket:{},jlRedEnvelope:[],shopData:[],redpacket_ready:!1}},onPageScroll:function(e){var t=e.scrollTop,a=this.navBarInfo.height-this.boundingInfo.top,n=t/a;n>1&&(n=1),n<.1&&(n=0),this.navbarBgOpacity=n},computed:{homePageNavbarStyle:function(){var e={};return e.backgroundColor="rgba(255, 255, 255, ".concat(this.navbarBgOpacity,")"),e}},created:function(){this.initCustomNavBarInfo()},onShow:function(){this.getMealRedpacketIndex()},onHide:function(){this.tcRedEnvelope=[],this.mealRedpacket={},this.jlRedEnvelope=[],this.shopData=[]},methods:{navPage:p.navPage,cancellationOrder:function(){(0,r.cancelTcOrderApi)(this.orderId).then((function(e){console.log("取消成功")})).catch((function(e){console.error("[order-cancel]取消订单失败",e),(0,s.showToast)({title:"取消订单失败, 请重试"})}))},cancelPayEvent:function(){this.cancellationOrder()},failPayEvent:function(){this.cancellationOrder()},successPayEvent:function(){0==this.type&&(this.canBuy=!0,uni.showModal({title:"提示",content:"恭喜您开通会员,获得专属红包福利!快去下单吧!",showCancel:!1,success:function(e){e.confirm&&(0,p.navPage)("/pages/index/index","reLaunch")}})),1==this.type&&uni.showModal({title:"提示",content:"您已成功购买加量红包,快去下单吧!",showCancel:!1,success:function(e){e.confirm&&(0,p.navPage)("/pages/index/index","reLaunch")}})},createOrderJl:function(e,t){var a=this;this.canBuy?(0,s.showToast)({title:"需先开通会员才可购买加量红包"}):(this.type=1,(0,i.createOrderJlRedpacket)({mealRedpacket_id:t,dosages_index:e}).then((function(e){a.orderId=e.data.id,setTimeout((function(){a.$nextTick((function(){a.showSelectPayWayModal=!0}))}),150)})).catch((function(e){console.error("创建加量红包订单失败",e)})))},createOrderTc:function(e){var t=this;this.canBuy?(this.type=0,(0,i.createOrderTcRedpacket)({mealRedpacket_id:e}).then((function(e){t.orderId=e.data.id,setTimeout((function(){t.$nextTick((function(){t.showSelectPayWayModal=!0}))}),150)})).catch((function(e){console.error("创建套餐红包订单失败",e)}))):(0,s.showToast)({title:"本月次数已用完"})},getMealRedpacketIndex:function(){var e=this;this.tcRedEnvelope=[],(0,i.getMealRedpacket)().then((function(t){for(var a in t.mealRedpacket.data.redpackets){var n=t.mealRedpacket.data.redpackets[a];e.tcRedEnvelope.push(n)}if(e.mealRedpacket=t.mealRedpacket,e.jlRedEnvelope=t.dosages,e.canBuy=t.can_buy_meal_redpacket,2==t.status)return(0,s.showToast)({title:"活动已结束"}),void uni.navigateBack();var i=t.exchanges.stores;if(i&&i.length>0){console.log("整理数据=============");for(var r=[],d=0;d0&&void 0!==arguments[0]?arguments[0]:"";return i.default.get("api/user.order.cut_time/getOpen?sid="+e,{})};t.getCutTImeData=function(){return i.default.get("api/user.order.cut_time/list",{})}},afb7:function(e,t,a){"use strict";var n=a("a2c9"),i=a.n(n);i.a},c4d1:function(e,t,a){"use strict";a.r(t);var n=a("989f"),i=a("0bcf");for(var r in i)["default"].indexOf(r)<0&&function(e){a.d(t,e,(function(){return i[e]}))}(r);a("afb7");var d=a("828b"),o=Object(d["a"])(i["default"],n["b"],n["c"],!1,null,"efc977f0",null,!1,n["a"],void 0);t["default"]=o.exports},d3b4d:function(e,t,a){var n=a("c86c");t=n(!1),t.push([e.i,'@charset "UTF-8";\n/**\n * 下方引入的为Tuniao UI的集成样式文件,为scss预处理器,其中包含了一些"tn-"开头的自定义变量\n * 使用的时候,请将下面的一行复制到您的uniapp项目根目录的uni.scss中即可\n * Tuniao UI自定义的css类名和scss变量,均以"tn-"开头,不会造成冲突,请放心使用 \n */.a-page[data-v-efc977f0]{background-color:#f3f3f3!important}.mine-page[data-v-efc977f0]{position:relative;width:100%\n /* 顶部设置按钮 start */\n /* 顶部设置按钮 end */\n /* 背景 start */\n /* 背景 end */\n /* 用户账户信息 start */\n /* 用户账户信息 end */}.mine-page .navbar[data-v-efc977f0]{position:fixed;left:0;top:0;width:100%;z-index:19999}.mine-page .navbar__title[data-v-efc977f0]{position:absolute;left:%?0?%;font-size:%?36?%;z-index:20000;width:100%;display:flex;justify-content:center;align-items:center}.mine-page .store-data[data-v-efc977f0]{position:relative;width:100%;margin-top:%?20?%\n /* 普通商家 */\n /* 广告商家 */}.mine-page .store-data .normal-store[data-v-efc977f0]{width:100%;margin-top:%?20?%}.mine-page .store-data .normal-store[data-v-efc977f0]:first-child{margin-top:%?0?%}.mine-page .store-data .ad-store[data-v-efc977f0]{position:relative;width:100%;margin-top:%?20?%}.mine-page .bg[data-v-efc977f0]{position:fixed;top:0;left:0;width:100%;height:%?768?%;background-repeat:no-repeat;background-size:100% 100%;background-image:url(http://qny.wdsp666.com/%E7%A6%8F%E8%A2%8B%E8%83%8C%E6%99%AF%E5%9B%BE/becomeMemberTopBg1.png)}.mine-page .cardBox[data-v-efc977f0]{position:relative;width:100%;padding:%?0?% %?30?%;flex-wrap:wrap}.mine-page .cardBox .limitation[data-v-efc977f0]{width:100%;height:%?60?%;display:flex;align-items:center}.mine-page .cardBox .card[data-v-efc977f0]{width:100%;height:auto;background-color:#fff;border-radius:%?11?%;margin-top:%?20?%}.mine-page .cardBox .card .title[data-v-efc977f0]{width:100%;height:%?114?%;border-radius:%?11?%;background-repeat:no-repeat;background-size:100% 100%;background-image:url(http://qny.wdsp666.com/%E7%A6%8F%E8%A2%8B%E8%83%8C%E6%99%AF%E5%9B%BE/cardTopBg.png);text-align:center;line-height:59px;color:#5d3d00;font-size:%?32?%}.mine-page .cardBox .card .subtitleBox[data-v-efc977f0]{width:100%;height:%?90?%;border-radius:%?11?%;text-align:center;line-height:59px;display:flex;align-items:center;justify-content:flex-start;padding-left:%?29?%;font-size:%?34?%;font-weight:500}.mine-page .cardBox .card .subtitleBox .subtitleLeft[data-v-efc977f0]{padding-right:%?10?%}.mine-page .cardBox .card .subtitleBox .subtitleLine[data-v-efc977f0]{width:%?1?%;height:%?25?%;background-color:#8f8f8f}.mine-page .cardBox .card .subtitleBox .subtitleRight[data-v-efc977f0]{padding-left:%?10?%}.mine-page .cardBox .card .prompt[data-v-efc977f0]{width:100%;height:%?40?%;font-size:%?26?%;color:#707070;padding-left:%?29?%;line-height:%?40?%}.mine-page .cardBox .card .redEnvelopeBox[data-v-efc977f0]{width:100%;height:auto;display:flex;justify-content:flex-start;flex-wrap:wrap;padding-left:%?10?%;padding-right:%?10?%}.mine-page .cardBox .card .redEnvelopeBox .redEnvelopeItem[data-v-efc977f0]{width:calc(100% / 3);height:auto;display:flex;justify-content:center;align-items:center;flex-wrap:wrap;margin-top:%?20?%}.mine-page .cardBox .card .redEnvelopeBox .redEnvelopeItem_Bg[data-v-efc977f0]{width:%?200?%;height:%?116?%;background-repeat:no-repeat;background-size:100% 100%;background-image:url(http://qny.wdsp666.com/%E7%A6%8F%E8%A2%8B%E8%83%8C%E6%99%AF%E5%9B%BE/redEnvelopeBg1.png);display:flex;justify-content:center;align-items:center}.mine-page .cardBox .card .redEnvelopeBox .redEnvelopeItem_Bg .redEnvelopeItem_Bg_center[data-v-efc977f0]{width:100%;height:%?83?%}.mine-page .cardBox .card .redEnvelopeBox .redEnvelopeItem_Bg .redEnvelopeItem_Bg_center_price[data-v-efc977f0]{width:100%;height:%?50?%;font-size:%?48?%;text-align:center;line-height:%?50?%;color:#f74c37}.mine-page .cardBox .card .redEnvelopeBox .redEnvelopeItem_Bg .redEnvelopeItem_Bg_center_title[data-v-efc977f0]{width:100%;height:%?33?%;font-size:%?26?%;text-align:center;line-height:%?33?%;color:#a77821}.mine-page .cardBox .card .redEnvelopeBox .redEnvelopeItem .redEnvelopeItemCar[data-v-efc977f0]{width:100%;height:%?154?%;display:flex;align-items:center;justify-content:center}.mine-page .cardBox .card .redEnvelopeBox .redEnvelopeItem .redEnvelopeItemCar .redEnvelopeItemCarBg[data-v-efc977f0]{width:%?201?%;height:%?154?%;background-repeat:no-repeat;background-size:100% 100%;background-image:url(http://qny.wdsp666.com/%E7%A6%8F%E8%A2%8B%E8%83%8C%E6%99%AF%E5%9B%BE/redEnvelopeBg2.png)}.mine-page .cardBox .card .redEnvelopeBox .redEnvelopeItem .redEnvelopeItemCar .redEnvelopeItemCarBg .redEnvelopeItemCarCenter[data-v-efc977f0]{width:100%;height:%?98?%;color:#f74c37;display:flex;align-items:center;justify-content:center}.mine-page .cardBox .card .redEnvelopeBox .redEnvelopeItem .redEnvelopeItemCar .redEnvelopeItemCarBg .redEnvelopeItemCarCenter_price[data-v-efc977f0]{font-size:%?38?%}.mine-page .cardBox .card .redEnvelopeBox .redEnvelopeItem .redEnvelopeItemCar .redEnvelopeItemCarBg .redEnvelopeItemCarCenter_ride[data-v-efc977f0]{font-size:%?21?%;padding-right:%?7?%;padding-left:%?7?%}.mine-page .cardBox .card .redEnvelopeBox .redEnvelopeItem .redEnvelopeItemCar .redEnvelopeItemCarBg .redEnvelopeItemCarCenter_number[data-v-efc977f0]{font-size:%?28?%}.mine-page .cardBox .card .redEnvelopeBox .redEnvelopeItem .redEnvelopeItemTitle[data-v-efc977f0]{width:100%;height:%?57?%;display:flex;align-items:center;justify-content:flex-start;padding-left:calc((100% - %?201?%) / 2)}.mine-page .cardBox .card .redEnvelopeBox .redEnvelopeItem .redEnvelopeItemPrice[data-v-efc977f0]{width:100%;height:%?34?%;display:flex;align-items:center;justify-content:flex-start;padding-left:calc((100% - %?201?%) / 2)}.mine-page .cardBox .card .redEnvelopeBox .redEnvelopeItem .redEnvelopeItemPrice .currentPrice[data-v-efc977f0]{font-size:%?32?%;color:#f74c37}.mine-page .cardBox .card .redEnvelopeBox .redEnvelopeItem .redEnvelopeItemPrice .originalPrice[data-v-efc977f0]{font-size:%?26?%;padding-left:%?9?%;text-decoration:line-through;color:#707070}.mine-page .cardBox .card .redEnvelopeBox .redEnvelopeItem .activity[data-v-efc977f0]{width:100%;height:%?60?%;display:flex;align-items:center;justify-content:flex-start;padding-left:calc((100% - %?201?%) / 2)}.mine-page .cardBox .card .redEnvelopeBox .redEnvelopeItem .activity .activityBg[data-v-efc977f0]{width:auto;height:%?40?%;background-color:rgba(255,121,26,.2);display:flex;align-items:center;justify-content:center;padding-left:%?10?%;padding-right:%?10?%;color:#ff791a;border-radius:%?8?%;font-size:%?22?%}.mine-page .user-account-info[data-v-efc977f0]{position:relative;margin-top:%?40?%;padding:%?0?% %?20?%}.mine-page .user-account-info .info-item[data-v-efc977f0]{flex:1}.mine-page .user-account-info .info-item .value[data-v-efc977f0]{font-size:%?38?%;font-weight:500}.mine-page .user-account-info .info-item .text[data-v-efc977f0]{color:#aaa;font-size:%?24?%;margin-top:%?14?%}.mine-page .user-account-info .info-item .text .icon[data-v-efc977f0]{margin-left:%?4?%}',""]),e.exports=t}}]);