(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["plugin-page-redpacket-index"],{"38f3":function(e,t,a){"use strict";a("6a54");var i=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 n=i(a("7653"));t.createOrderJlRedpacket=function(e){return n.default.post("api/user.mealRedpacket.meal_redpacket_order/createAddOrder",e)};t.createOrderTcRedpacket=function(e){return n.default.post("api/user.mealRedpacket.meal_redpacket_order/createOrder",e)};t.getMealRedpacket=function(){return n.default.get("api/user.mealRedpacket.meal_redpacket/index")};t.getRedpacketListApi=function(e){var t=e.status,a=e.page,i=e.psize;return n.default.get("api/user.member.redpacket/list",{status:t||0,page:a||1,psize:i||20})};t.checkExchangeApi=function(e){return n.default.get("api/user.mealRedpacket.meal_redpacket/checkExchange?sid="+e)};t.exchangeApi=function(e){return n.default.post("api/user.mealRedpacket.meal_redpacket/exchange",e)};t.checkSvipApi=function(){return n.default.get("api/user.mealRedpacket.meal_redpacket_order/checkSvip")}},"49ba":function(e,t,a){"use strict";a("6a54");var i=a("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a("c223"),a("fd3c");var n=i(a("6fbe")),c=i(a("ebf3")),r=i(a("a71b")),d=i(a("b9c8")),s=i(a("644f")),p=a("419c"),o=a("38f3"),u={components:{Empty:r.default,TechnicalSupport:c.default,OperationTabs:d.default,RedpacketTicket:s.default},mixins:[n.default],data:function(){return{redPackets:[],curretnPage:1,pageSize:20,isLoadAll:!1}},onLoad:function(){this.initCustomNavBarInfo(),this.getRedpacketListData()},onReachBottom:function(){this.isLoadAll||(this.curretnPage++,this.getRedpacketListData())},methods:{getRedpacketListData:function(){var e=this;(0,o.getRedpacketListApi)({status:1,page:this.curretnPage,psize:this.pageSize}).then((function(t){var a=(null===t||void 0===t?void 0:t.redPackets)||[];e.redPackets=e.redPackets.concat(a.map((function(e){return{id:e.id,sid:e.sid,title:e.title,image:"https://qny.wdsp666.com/ali-mini-img/redpack.png",endtime:e.endtime||"",get:1,discount:e.discount,condition:e.condition,limit:e.limit_cn,pageShowType:e.pageShowType,is_haodian:e.is_haodian}}))),a.length<e.pageSize&&(e.isLoadAll=!0)})).catch((function(t){console.error("[redpacket]获取红包列表失败",t),e.redPackets=[]}))},handleRedpacketClickEvent:function(e){var t=this.redPackets[e];0===t.sid?(0,p.navPage)("/pages/index/index","reLaunch"):1==t.is_haodian?(0,p.navPage)("/store-page/groupBuyingFood/groupBuyingFood?sid=".concat(t.sid)):2==t.is_haodian&&t.custom_links?(0,p.navPage)("".concat(t.custom_links)):(t.pageShowType,(0,p.navPage)("/store-page/product-showcase/template-1?sid=".concat(t.sid)))}}};t.default=u},"4e1b":function(e,t,a){"use strict";a.r(t);var i=a("49ba"),n=a.n(i);for(var c in i)["default"].indexOf(c)<0&&function(e){a.d(t,e,(function(){return i[e]}))}(c);t["default"]=n.a},"74d1":function(e,t,a){var i=a("c86c");t=i(!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 */.redpacket-wrapper[data-v-2f606666]{position:relative;top:%?30?%}\n/* 红包列表 start */.redpacket-list[data-v-2f606666]{width:100%;padding:%?30?%}.redpacket-list .redpacket-item[data-v-2f606666]{position:relative;width:100%}.redpacket-list .redpacket-item + .redpacket-item[data-v-2f606666]{margin-top:%?30?%}\n/* 红包列表 end */',""]),e.exports=t},"796f":function(e,t,a){"use strict";a.d(t,"b",(function(){return i})),a.d(t,"c",(function(){return n})),a.d(t,"a",(function(){}));var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("custom-page",{attrs:{"custom-navbar":!0,"navbar-title":"红包"}},[a("v-uni-view",{staticClass:"redpacket-wrapper"},[e.redPackets.length>0?a("v-uni-view",{staticClass:"redpacket-list"},e._l(e.redPackets,(function(t,i){return a("v-uni-view",{key:i,staticClass:"redpacket-item"},[a("redpacket-ticket",{attrs:{data:t},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.handleRedpacketClickEvent(i)}}})],1)})),1):a("empty",{attrs:{icon:"empty-coupon",tips:"暂无红包"}}),a("technical-support")],1)],1)},n=[]},"80e2":function(e,t,a){var i=a("74d1");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var n=a("967d").default;n("1e85b0f1",i,!0,{sourceMap:!1,shadowMode:!1})},"9c11":function(e,t,a){"use strict";var i=a("80e2"),n=a.n(i);n.a},b964:function(e,t,a){"use strict";a.r(t);var i=a("796f"),n=a("4e1b");for(var c in n)["default"].indexOf(c)<0&&function(e){a.d(t,e,(function(){return n[e]}))}(c);a("9c11");var r=a("828b"),d=Object(r["a"])(n["default"],i["b"],i["c"],!1,null,"2f606666",null,!1,i["a"],void 0);t["default"]=d.exports}}]);