(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/money/account"],{1907:function(t,n,e){"use strict";e.r(n);var a=e("a309"),o=e.n(a);for(var i in a)"default"!==i&&function(t){e.d(n,t,(function(){return a[t]}))}(i);n["default"]=o.a},4109:function(t,n,e){"use strict";(function(t){e("856e");a(e("66fd"));var n=a(e("7cd9"));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"])},"7cd9":function(t,n,e){"use strict";e.r(n);var a=e("d33c"),o=e("1907");for(var i in o)"default"!==i&&function(t){e.d(n,t,(function(){return o[t]}))}(i);e("ab03");var r,u=e("f0c5"),c=Object(u["a"])(o["default"],a["b"],a["c"],!1,null,null,null,!1,a["a"],r);n["default"]=c.exports},"8d11":function(t,n,e){},a309:function(t,n,e){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a=e("b587"),o={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,this.loadAli(),this.loadBank()},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 t=this,n=t.navList[t.tabCurrentIndex].orderList;1==t.tabCurrentIndex&&t.setBankInfo({fullname:n.name,bank:n.bankName,bankno:n.code,id:n.id}),0==t.tabCurrentIndex&&t.setAliInfo({fullname:n.name,alino:n.code,id:n.id})},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=o}).call(this,e("543d")["default"])},ab03:function(t,n,e){"use strict";var a=e("8d11"),o=e.n(a);o.a},d33c:function(t,n,e){"use strict";var a;e.d(n,"b",(function(){return o})),e.d(n,"c",(function(){return i})),e.d(n,"a",(function(){return a}));var o=function(){var t=this,n=t.$createElement;t._self._c},i=[]}},[["4109","common/runtime","common/vendor"]]]);