pages-money-account.89eb1c07.js 7.2 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-money-account"],{1424:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=a("15ad"),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 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;1==t.tabCurrentIndex&&t.setBankInfo({fullname:e.name,bank:e.bankName,bankno:e.code,id:e.id}),0==t.tabCurrentIndex&&t.setAliInfo({fullname:e.name,alino:e.code,id:e.id})},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},"15ad":function(t,e,a){"use strict";var n=a("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.spreadCommission=o,e.userBalance=r,e.zhuanList=s,e.extractCash=c,e.extractBank=d,e.rechargeWechat=u,e.aliInfo=l,e.bankInfo=f,e.setAliInfo=p,e.setBankInfo=v,e.balance=b;var i=n(a("0e39"));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/transfer_list",method:"post",data:t})}function c(t){return(0,i.default)({url:"/api/extract/cash",method:"post",data:t})}function d(t){return(0,i.default)({url:"/api/extract/bank",method:"get",data:t})}function u(t){return(0,i.default)({url:"/api/recharge/wechat",method:"post",data:t})}function l(t){return(0,i.default)({url:"/api/ali/info",method:"get",data:t})}function f(t){return(0,i.default)({url:"/api/bank/info",method:"get",data:t})}function p(t){return(0,i.default)({url:"/api/ali/edit",method:"post",data:t})}function v(t){return(0,i.default)({url:"/api/bank/edit",method:"post",data:t})}function b(t){return(0,i.default)({url:"/api/user/balance",method:"get",data:t})}},"31e1":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-029566e2]{display:flex;align-items:center;position:relative;padding:0 %?30?%;height:%?110?%;background:#fff}.row .tit[data-v-029566e2]{flex-shrink:0;width:%?120?%;font-size:%?30?%;color:#303133}.row .input[data-v-029566e2]{flex:1;font-size:%?30?%;color:#303133}.row .iconlocation[data-v-029566e2]{font-size:%?36?%;color:#909399}uni-page-body[data-v-029566e2],\n.content[data-v-029566e2]{background:#f8f8f8;height:100%}.swiper-box[data-v-029566e2]{height:%?750?%}.navbar[data-v-029566e2]{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-029566e2]{flex:1;display:flex;justify-content:center;align-items:center;height:100%;font-size:15px;color:#303133;position:relative}.navbar .nav-item.current[data-v-029566e2]{color:#5dbc7c}.navbar .nav-item.current[data-v-029566e2]: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-029566e2]{display:flex;align-items: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-029566e2]{background-color:#5dbc7c;color:#fff}body.?%PAGE?%[data-v-029566e2]{background:#f8f8f8}',""]),t.exports=e},"4b42":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=[]},"4f9c":function(t,e,a){"use strict";a.r(e);var n=a("4b42"),i=a("d743");for(var o in i)"default"!==o&&function(t){a.d(e,t,(function(){return i[t]}))}(o);a("b4cb");var r,s=a("f0c5"),c=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,"029566e2",null,!1,n["a"],r);e["default"]=c.exports},b4cb:function(t,e,a){"use strict";var n=a("dade"),i=a.n(n);i.a},d743:function(t,e,a){"use strict";a.r(e);var n=a("1424"),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},dade:function(t,e,a){var n=a("31e1");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=a("4f06").default;i("1e9f339e",n,!0,{sourceMap:!1,shadowMode:!1})}}]);