account.js 3.8 KB

12
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/money/account"],{507:function(n,t,e){"use strict";(function(n){var t=e(3);e(25);t(e(24));var a=t(e(508));wx.__webpack_require_UNI_MP_PLUGIN__=e,n(a.default)}).call(this,e(1)["createPage"])},508:function(n,t,e){"use strict";e.r(t);var a=e(509),r=e(511);for(var i in r)["default"].indexOf(i)<0&&function(n){e.d(t,n,(function(){return r[n]}))}(i);e(513);var o,u=e(39),c=Object(u["default"])(r["default"],a["render"],a["staticRenderFns"],!1,null,null,null,!1,a["components"],o);c.options.__file="pages/money/account.vue",t["default"]=c.exports},509:function(n,t,e){"use strict";e.r(t);var a=e(510);e.d(t,"render",(function(){return a["render"]})),e.d(t,"staticRenderFns",(function(){return a["staticRenderFns"]})),e.d(t,"recyclableRender",(function(){return a["recyclableRender"]})),e.d(t,"components",(function(){return a["components"]}))},510:function(n,t,e){"use strict";var a;e.r(t),e.d(t,"render",(function(){return r})),e.d(t,"staticRenderFns",(function(){return o})),e.d(t,"recyclableRender",(function(){return i})),e.d(t,"components",(function(){return a}));var r=function(){var n=this,t=n.$createElement;n._self._c},i=!1,o=[];r._withStripped=!0},511:function(n,t,e){"use strict";e.r(t);var a=e(512),r=e.n(a);for(var i in a)["default"].indexOf(i)<0&&function(n){e.d(t,n,(function(){return a[n]}))}(i);t["default"]=r.a},512:function(n,t,e){"use strict";(function(n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=e(305),r={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(n){this.tabCurrentIndex=+n.state||0},methods:{loadAli:function(n){var t=this;(0,a.aliInfo)({}).then((function(n){var e=n.data,a=t.navList[0].orderList;t.$set(a,"name",e.fullname),t.$set(a,"code",e.alino),t.$set(a,"id",e.id)}))},loadBank:function(){var n=this;(0,a.bankInfo)({}).then((function(t){var e=t.data,a=n.navList[1].orderList;n.$set(a,"name",e.fullname),n.$set(a,"code",e.bankno),n.$set(a,"bankName",e.bank),n.$set(a,"id",e.id)}))},changeTab:function(n){this.tabCurrentIndex=n.target.current},tabClick:function(n){this.tabCurrentIndex=n},confirm:function(){var t=this,e=t.navList[t.tabCurrentIndex].orderList,a=getCurrentPages();console.log(a);a[a.length-1];var r=a[a.length-2];if(console.log(r),1==t.tabCurrentIndex){if(!e.name)return this.$api.msg("请输入提款人姓名");if(!e.bankName)return this.$api.msg("请输入所属银行");if(!e.code)return this.$api.msg("请输入银行卡号");var i={fullname:e.name,bank:e.bankName,bankno:e.code};r.setData({bankData:i}),n.navigateBack({delta:1})}if(0==t.tabCurrentIndex){if(!e.name)return this.$api.msg("请输入提款人姓名");if(!e.code)return this.$api.msg("请输入支付宝账号");var o={fullname:e.name,alino:e.code};r.setData({bankData:o}),n.navigateBack({delta:1})}},setBankInfo:function(t){var e=this;(0,a.setBankInfo)(t).then((function(t){n.showToast({title:"修改成功",duration:2e3,position:"top"}),e.$api.prePage().dataUp(),setTimeout((function(){n.navigateBack()}),1500)})).catch((function(n){console.log(n)}))},setAliInfo:function(t){var e=this;(0,a.setAliInfo)(t).then((function(t){n.showToast({title:"修改成功",duration:2e3,position:"top"}),e.$api.prePage().dataUp(),setTimeout((function(){n.navigateBack()}),1500)})).catch((function(n){console.log(n)}))}}};t.default=r}).call(this,e(1)["default"])},513:function(n,t,e){"use strict";e.r(t);var a=e(514),r=e.n(a);for(var i in a)["default"].indexOf(i)<0&&function(n){e.d(t,n,(function(){return a[n]}))}(i);t["default"]=r.a},514:function(n,t,e){}},[[507,"common/runtime","common/vendor"]]]);
  2. //# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/money/account.js.map