require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["plugin/cashlottery/log"],{"229f":function(t,e,n){"use strict";(function(t,o){var a=n("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=a(n("af34")),r=a(n("7ca3")),u=n("8f59");function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach((function(e){(0,r.default)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var f={data:function(){return{list:[],page:1,isLoading:!1}},computed:s(s({},(0,u.mapGetters)(["base","themeStyle"])),{},{mainColor:function(){return this.base.theme_color||"var(--main-color)"}}),onLoad:function(){this.getList()},onReachBottom:function(){this.getList()},methods:{statusText:function(t){return{0:"未提现",1:"提现成功",2:"提现失败"}[t]||"-"},statusColor:function(t){return{0:"#faad14",1:"#52c41a",2:"#ff4d4f"}[t]||"#999"},confirmText:function(t){return{"-1":"无需确认",0:"未确认",1:"已确认"}[String(t)]||"-"},confirmColor:function(t){return{"-1":"#999",0:"#faad14",1:"#52c41a"}[String(t)]||"#999"},handleTixian:function(e){var n=this;e.out_batch_no?t.showActionSheet({itemList:["余额","微信零钱"],success:function(t){var o=t.tapIndex;n.doHandleTixian(e,o)}}):this.$util.toast("提现单号不存在")},doHandleTixian:function(t,e){var n=this;this.$util.post("cashlottery/reward/tixian",{out_batch_no:t.out_batch_no,tixian_method:e},!0).then((function(e){1==e.code?(n.$util.toast("提现成功"),n.refreshItem(t,e.data)):n.$util.toast(e.message||"提现失败")}))},handleConfirm:function(t){var e=this;t.out_batch_no?o.canIUse("requestMerchantTransfer")?o.requestMerchantTransfer({mchId:t.mchId,appId:t.appId,package:t.package,success:function(){e.doConfirm(t)},fail:function(t){}}):o.showModal({content:"你的微信版本过低，请更新至最新版本。",showCancel:!1}):this.$util.toast("提现单号不存在")},doConfirm:function(t){var e=this;this.$util.get("cashlottery/reward/confirm",{out_batch_no:t.out_batch_no}).then((function(n){1==n.code?(e.$util.toast("确认成功"),e.refreshItem(t,n.data)):e.$util.toast(n.message||"确认失败")}))},refreshItem:function(t,e){this.page=1,this.getList()},getList:function(){var t=this;this.isLoading||(this.isLoading=!0,this.$util.get("cashlottery/reward/getRewardList",{page:this.page}).then((function(e){if(1==t.page&&(t.list=[]),1==e.code){var n=e.data.list||e.data||[];n.length>0&&(t.list=[].concat((0,i.default)(t.list),(0,i.default)(n)),t.page++)}})).finally((function(){t.isLoading=!1})))}}};e.default=f}).call(this,n("df3c")["default"],n("3223")["default"])},"2edc":function(t,e,n){"use strict";n.r(e);var o=n("229f"),a=n.n(o);for(var i in o)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(i);e["default"]=a.a},6357:function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){return o}));var o={uEmpty:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uview-ui/components/u-empty/u-empty")]).then(n.bind(null,"f174"))},uSafeBottom:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/uview-ui/components/u-safe-bottom/u-safe-bottom")]).then(n.bind(null,"f585"))}},a=function(){var t=this,e=t.$createElement,n=(t._self._c,t.list.length),o=n?t.__map(t.list,(function(e,n){var o=t.__get_orig(e),a=t.statusColor(e.status),i=t.statusText(e.status),r=0!=e.status?t.confirmColor(e.is_confirm):null,u=0!=e.status?t.confirmText(e.is_confirm):null;return{$orig:o,m0:a,m1:i,m2:r,m3:u}})):null;t.$mp.data=Object.assign({},{$root:{g0:n,l0:o}})},i=[]},"79e6":function(t,e,n){"use strict";var o=n("dd3a"),a=n.n(o);a.a},a5d7:function(t,e,n){"use strict";n.r(e);var o=n("6357"),a=n("2edc");for(var i in a)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(i);n("79e6");var r=n("828b"),u=Object(r["a"])(a["default"],o["b"],o["c"],!1,null,"44a5e530",null,!1,o["a"],void 0);e["default"]=u.exports},b2d1:function(t,e,n){"use strict";(function(t,e){var o=n("47a9");n("4c1a");o(n("3240"));var a=o(n("a5d7"));t.__webpack_require_UNI_MP_PLUGIN__=n,e(a.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},dd3a:function(t,e,n){}},[["b2d1","common/runtime","common/vendor"]]]);