pages-money-account.0edd35e9.js 8.0 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-money-account"],{"2c02":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=a("2e0d"),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 e=this;(0,n.aliInfo)({}).then((function(t){var a=t.data,n=e.navList[0].orderList;e.$set(n,"name",a.fullname),e.$set(n,"code",a.alino),e.$set(n,"id",a.id)}))},loadBank:function(){var t=this;(0,n.bankInfo)({}).then((function(e){var a=e.data,n=t.navList[1].orderList;t.$set(n,"name",a.fullname),t.$set(n,"code",a.bankno),t.$set(n,"bankName",a.bank),t.$set(n,"id",a.id)}))},changeTab:function(t){this.tabCurrentIndex=t.target.current},tabClick:function(t){this.tabCurrentIndex=t},confirm:function(){var t=this,e=t.navList[t.tabCurrentIndex].orderList,a=getCurrentPages();console.log(a);a[a.length-1];var n=a[a.length-2];if(console.log(n),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};n.$vm.bankData=i,uni.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};n.$vm.aliData=o,uni.navigateBack({delta:1})}},setBankInfo:function(t){var e=this;(0,n.setBankInfo)(t).then((function(t){uni.showToast({title:"修改成功",duration:2e3,position:"top"}),e.$api.prePage().dataUp(),setTimeout((function(){uni.navigateBack()}),1500)})).catch((function(t){console.log(t)}))},setAliInfo:function(t){var e=this;(0,n.setAliInfo)(t).then((function(t){uni.showToast({title:"修改成功",duration:2e3,position:"top"}),e.$api.prePage().dataUp(),setTimeout((function(){uni.navigateBack()}),1500)})).catch((function(t){console.log(t)}))}}};e.default=i},"2e0d":function(t,e,a){"use strict";var n=a("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.spreadCommission=o,e.userBalance=r,e.extractCash=s,e.extractBank=c,e.rechargeWechat=l,e.aliInfo=u,e.bankInfo=d,e.setAliInfo=f,e.setBankInfo=b,e.balance=p;var i=n(a("776a"));function o(t,e){return(0,i.default)({url:"/api/spread/commission/"+e,method:"get",data:t})}function r(t){return(0,i.default)({url:"/api/user/balance",method:"get",data:t})}function s(t){return(0,i.default)({url:"/api/extract/cash",method:"post",data:t})}function c(t){return(0,i.default)({url:"/api/extract/bank",method:"get",data:t})}function l(t){return(0,i.default)({url:"/api/recharge/wechat",method:"post",data:t})}function u(t){return(0,i.default)({url:"/api/ali/info",method:"get",data:t})}function d(t){return(0,i.default)({url:"/api/bank/info",method:"get",data:t})}function f(t){return(0,i.default)({url:"/api/ali/edit",method:"post",data:t})}function b(t){return(0,i.default)({url:"/api/bank/edit",method:"post",data:t})}function p(t){return(0,i.default)({url:"/api/user/balance",method:"get",data:t})}},"5bde":function(t,e,a){"use strict";var n=a("f085"),i=a.n(n);i.a},"7a94":function(t,e,a){"use strict";a.r(e);var n=a("b858"),i=a("e36c");for(var o in i)"default"!==o&&function(t){a.d(e,t,(function(){return i[t]}))}(o);a("5bde");var r,s=a("f0c5"),c=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,"66a6c3ae",null,!1,n["a"],r);e["default"]=c.exports},ab5b:function(t,e,a){var n=a("24fb");e=n(!1),e.push([t.i,'@charset "UTF-8";\n/* 页面左右间距 */\n/* 文字尺寸 */\n/*文字颜色*/\n/* 边框颜色 */\n/*颜色*/\n/* 图片加载中颜色 */\n/* 行为相关颜色 */\n/* 功能栏字体大小 */\n/*功能栏左侧小图标*/.row[data-v-66a6c3ae]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;position:relative;padding:0 %?30?%;height:%?110?%;background:#fff}.row .tit[data-v-66a6c3ae]{-webkit-flex-shrink:0;flex-shrink:0;width:%?120?%;font-size:%?30?%;color:#303133}.row .input[data-v-66a6c3ae]{-webkit-box-flex:1;-webkit-flex:1;flex:1;font-size:%?30?%;color:#303133}.row .iconlocation[data-v-66a6c3ae]{font-size:%?36?%;color:#909399}uni-page-body[data-v-66a6c3ae],\n.content[data-v-66a6c3ae]{background:#f8f8f8;height:100%}.swiper-box[data-v-66a6c3ae]{height:%?750?%}.navbar[data-v-66a6c3ae]{display:-webkit-box;display:-webkit-flex;display:flex;height:40px;padding:0 5px;background:#fff;box-shadow:0 1px 5px rgba(0,0,0,.06);position:relative;z-index:10}.navbar .nav-item[data-v-66a6c3ae]{-webkit-box-flex:1;-webkit-flex:1;flex:1;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center;height:100%;font-size:15px;color:#303133;position:relative}.navbar .nav-item.current[data-v-66a6c3ae]{color:#5dbc7c}.navbar .nav-item.current[data-v-66a6c3ae]:after{content:"";position:absolute;left:50%;bottom:0;-webkit-transform:translateX(-50%);transform:translateX(-50%);width:44px;height:0;border-bottom:2px solid #5dbc7c}.add-btn[data-v-66a6c3ae]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;width:%?690?%;height:%?80?%;margin:0 auto;margin-top:%?30?%;font-size:%?32?%;border-radius:%?10?%}.add-btn.up[data-v-66a6c3ae]{background-color:#5dbc7c;color:#fff}body.?%PAGE?%[data-v-66a6c3ae]{background:#f8f8f8}',""]),t.exports=e},b858:function(t,e,a){"use strict";var n;a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return o})),a.d(e,"a",(function(){return n}));var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"content"},[a("v-uni-view",{staticClass:"navbar"},t._l(t.navList,(function(e,n){return a("v-uni-view",{key:n,staticClass:"nav-item",class:{current:t.tabCurrentIndex===n},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.tabClick(n)}}},[t._v(t._s(e.text))])})),1),a("v-uni-swiper",{staticClass:"swiper-box",attrs:{current:t.tabCurrentIndex,duration:"300"},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.changeTab.apply(void 0,arguments)}}},t._l(t.navList,(function(e,n){return a("v-uni-swiper-item",{key:n,staticClass:"tab-content"},[a("v-uni-view",{staticClass:"row b-b"},[a("v-uni-text",{staticClass:"tit"},[t._v("姓名")]),a("v-uni-input",{staticClass:"input",attrs:{type:"text",placeholder:"提款人姓名","placeholder-class":"placeholder"},model:{value:e.orderList.name,callback:function(a){t.$set(e.orderList,"name",a)},expression:"tabItem.orderList.name"}})],1),a("v-uni-view",{staticClass:"row b-b"},[a("v-uni-text",{staticClass:"tit"},[t._v(t._s(0==n?"账号":"银行卡号"))]),a("v-uni-input",{staticClass:"input",attrs:{type:"text",placeholder:"请输入账号","placeholder-class":"placeholder"},model:{value:e.orderList.code,callback:function(a){t.$set(e.orderList,"code",a)},expression:"tabItem.orderList.code"}})],1),1==n?a("v-uni-view",{staticClass:"row b-b"},[a("v-uni-text",{staticClass:"tit"},[t._v("所属银行")]),a("v-uni-input",{staticClass:"input",attrs:{type:"text",placeholder:"请输入开户银行","placeholder-class":"placeholder"},model:{value:e.orderList.bankName,callback:function(a){t.$set(e.orderList,"bankName",a)},expression:"tabItem.orderList.bankName"}})],1):t._e()],1)})),1),a("v-uni-button",{staticClass:"add-btn up",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.confirm.apply(void 0,arguments)}}},[t._v("提交申请")])],1)},o=[]},e36c:function(t,e,a){"use strict";a.r(e);var n=a("2c02"),i=a.n(n);for(var o in n)"default"!==o&&function(t){a.d(e,t,(function(){return n[t]}))}(o);e["default"]=i.a},f085:function(t,e,a){var n=a("ab5b");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=a("4f06").default;i("0f728b1f",n,!0,{sourceMap:!1,shadowMode:!1})}}]);