(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/money/account"],{"1cbd":function(t,n,e){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a=e("e956"),i={data:function(){return{tabCurrentIndex:0,navList:[{state:0,text:"支付宝",loadingType:"more",orderList:{name:"",code:"",id:""}},{state:1,text:"银行卡",loadingType:"more",orderList:{name:"",code:"",bankName:"",id:""}}]}},onLoad:function(t){this.tabCurrentIndex=+t.state||0},methods:{loadAli:function(t){var n=this;(0,a.aliInfo)({}).then((function(t){var e=t.data,a=n.navList[0].orderList;n.$set(a,"name",e.fullname),n.$set(a,"code",e.alino),n.$set(a,"id",e.id)}))},loadBank:function(){var t=this;(0,a.bankInfo)({}).then((function(n){var e=n.data,a=t.navList[1].orderList;t.$set(a,"name",e.fullname),t.$set(a,"code",e.bankno),t.$set(a,"bankName",e.bank),t.$set(a,"id",e.id)}))},changeTab:function(t){this.tabCurrentIndex=t.target.current},tabClick:function(t){this.tabCurrentIndex=t},confirm:function(){var n=this,e=n.navList[n.tabCurrentIndex].orderList,a=getCurrentPages();console.log(a);a[a.length-1];var i=a[a.length-2];if(console.log(i),1==n.tabCurrentIndex){if(!e.name)return this.$api.msg("请输入提款人姓名");if(!e.bankName)return this.$api.msg("请输入所属银行");if(!e.code)return this.$api.msg("请输入银行卡号");var o={fullname:e.name,bank:e.bankName,bankno:e.code};i.setData({bankData:o}),t.navigateBack({delta:1})}if(0==n.tabCurrentIndex){if(!e.name)return this.$api.msg("请输入提款人姓名");if(!e.code)return this.$api.msg("请输入支付宝账号");var r={fullname:e.name,alino:e.code};i.setData({bankData:r}),t.navigateBack({delta:1})}},setBankInfo:function(n){var e=this;(0,a.setBankInfo)(n).then((function(n){t.showToast({title:"修改成功",duration:2e3,position:"top"}),e.$api.prePage().dataUp(),setTimeout((function(){t.navigateBack()}),1500)})).catch((function(t){console.log(t)}))},setAliInfo:function(n){var e=this;(0,a.setAliInfo)(n).then((function(n){t.showToast({title:"修改成功",duration:2e3,position:"top"}),e.$api.prePage().dataUp(),setTimeout((function(){t.navigateBack()}),1500)})).catch((function(t){console.log(t)}))}}};n.default=i}).call(this,e("543d")["default"])},"5dc6":function(t,n,e){"use strict";var a;e.d(n,"b",(function(){return i})),e.d(n,"c",(function(){return o})),e.d(n,"a",(function(){return a}));var i=function(){var t=this,n=t.$createElement;t._self._c},o=[]},"64df":function(t,n,e){},"653e":function(t,n,e){"use strict";var a=e("64df"),i=e.n(a);i.a},"6c60":function(t,n,e){"use strict";e.r(n);var a=e("5dc6"),i=e("8051");for(var o in i)"default"!==o&&function(t){e.d(n,t,(function(){return i[t]}))}(o);e("653e");var r,u=e("f0c5"),c=Object(u["a"])(i["default"],a["b"],a["c"],!1,null,null,null,!1,a["a"],r);n["default"]=c.exports},8051:function(t,n,e){"use strict";e.r(n);var a=e("1cbd"),i=e.n(a);for(var o in a)"default"!==o&&function(t){e.d(n,t,(function(){return a[t]}))}(o);n["default"]=i.a},a380:function(t,n,e){"use strict";(function(t){e("5935");a(e("66fd"));var n=a(e("6c60"));function a(t){return t&&t.__esModule?t:{default:t}}wx.__webpack_require_UNI_MP_PLUGIN__=e,t(n.default)}).call(this,e("543d")["createPage"])}},[["a380","common/runtime","common/vendor"]]]);