1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-money-account"],{"056c":function(t,e,a){var n=a("b4ee");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=a("4f06").default;i("c1bcb9cc",n,!0,{sourceMap:!1,shadowMode:!1})},1907:function(t,e,a){"use strict";a.r(e);var n=a("46a7"),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},"2954c":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=[]},"46a7":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=a("b587"),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},"7cd9":function(t,e,a){"use strict";a.r(e);var n=a("2954c"),i=a("1907");for(var o in i)"default"!==o&&function(t){a.d(e,t,(function(){return i[t]}))}(o);a("cee0");var r,u=a("f0c5"),s=Object(u["a"])(i["default"],n["b"],n["c"],!1,null,"029566e2",null,!1,n["a"],r);e["default"]=s.exports},b4ee: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:#f65067}.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 #f65067}.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:#f65067;color:#fff}body.?%PAGE?%[data-v-029566e2]{background:#f8f8f8}',""]),t.exports=e},b587:function(t,e,a){"use strict";var n=a("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.spreadCommission=o,e.selectMoney=r,e.getSpreadsum=u,e.userBalance=s,e.wallet=c,e.extractCash=d,e.exchangeCash=l,e.extractBank=f,e.exchange=p,e.vipWechat=v,e.rechargeWechat=h,e.aliInfo=b,e.bankInfo=m,e.setAliInfo=g,e.setBankInfo=x,e.balance=k,e.cashList=w,e.moneyChong=C;var i=n(a("561b"));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/vip_recharge/index",method:"get",data:t})}function u(t){return(0,i.default)({url:"/api/spreadsum",method:"get",data:t})}function s(t){return(0,i.default)({url:"/api/user/balance",method:"get",data:t})}function c(t){return(0,i.default)({url:"/api/wallet",method:"get",data:t})}function d(t){return(0,i.default)({url:"/api/extract/cash",method:"post",data:t})}function l(t){return(0,i.default)({url:"/api/extract/brokerage",method:"post",data:t})}function f(t){return(0,i.default)({url:"/api/extract/bank",method:"get",data:t})}function p(t){return(0,i.default)({url:"/api/exchange_golden",method:"post",data:t})}function v(t){return(0,i.default)({url:"/api/vip_recharge/wechat",method:"post",data:t})}function h(t){return(0,i.default)({url:"/api/recharge/wechat",method:"post",data:t})}function b(t){return(0,i.default)({url:"/api/ali/info",method:"get",data:t})}function m(t){return(0,i.default)({url:"/api/bank/info",method:"get",data:t})}function g(t){return(0,i.default)({url:"/api/ali/edit",method:"post",data:t})}function x(t){return(0,i.default)({url:"/api/bank/edit",method:"post",data:t})}function k(t){return(0,i.default)({url:"/api/user/balance",method:"get",data:t})}function w(t){return(0,i.default)({url:"/api/cash/list",method:"get",data:t})}function C(t){return(0,i.default)({url:"/api/recharge/index",method:"get",data:t})}},cee0:function(t,e,a){"use strict";var n=a("056c"),i=a.n(n);i.a}}]);
|