(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/money/account"],{"00fb":function(t,n,e){"use strict";(function(t){Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;var a=e("94b0"),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,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.navList[this.tabCurrentIndex].orderList;1==this.tabCurrentIndex&&this.setBankInfo({fullname:t.name,bank:t.bankName,bankno:t.code,id:t.id}),0==this.tabCurrentIndex&&this.setAliInfo({fullname:t.name,alino:t.code,id:t.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=i}).call(this,e("543d")["default"])},"09db":function(t,n,e){"use strict";e.r(n);var a=e("00fb"),i=e.n(a);for(var o in a)["default"].indexOf(o)<0&&function(t){e.d(n,t,(function(){return a[t]}))}(o);n["default"]=i.a},"5eda":function(t,n,e){"use strict";e.d(n,"b",(function(){return a})),e.d(n,"c",(function(){return i})),e.d(n,"a",(function(){}));var a=function(){var t=this.$createElement;this._self._c},i=[]},"8bf0":function(t,n,e){"use strict";e.r(n);var a=e("5eda"),i=e("09db");for(var o in i)["default"].indexOf(o)<0&&function(t){e.d(n,t,(function(){return i[t]}))}(o);e("efed");var r=e("f0c5"),u=Object(r["a"])(i["default"],a["b"],a["c"],!1,null,null,null,!1,a["a"],void 0);n["default"]=u.exports},bbd1:function(t,n,e){},cb0d:function(t,n,e){"use strict";(function(t,n){var a=e("4ea4");e("12d5");a(e("66fd"));var i=a(e("8bf0"));t.__webpack_require_UNI_MP_PLUGIN__=e,n(i.default)}).call(this,e("bc2e")["default"],e("543d")["createPage"])},efed:function(t,n,e){"use strict";var a=e("bbd1"),i=e.n(a);i.a}},[["cb0d","common/runtime","common/vendor"]]]);