1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-money-account"],{"211a":function(t,a,e){var n=e("24fb");a=n(!1),a.push([t.i,'@charset "UTF-8";\n/* 页面左右间距 */\n/* 文字尺寸 */\n/*文字颜色*/\n/* 边框颜色 */\n/*颜色*/\n/* 图片加载中颜色 */\n/* 行为相关颜色 */\n/* 功能栏字体大小 */\n/*功能栏左侧小图标*/.row[data-v-3cd78714]{display:flex;align-items:center;position:relative;padding:0 %?30?%;height:%?110?%;background:#fff}.row .tit[data-v-3cd78714]{flex-shrink:0;width:%?120?%;font-size:%?30?%;color:#303133}.row .input[data-v-3cd78714]{flex:1;font-size:%?30?%;color:#303133}.row .iconlocation[data-v-3cd78714]{font-size:%?36?%;color:#909399}uni-page-body[data-v-3cd78714],\n.content[data-v-3cd78714]{background:#f8f8f8;height:100%}.swiper-box[data-v-3cd78714]{height:%?750?%}.navbar[data-v-3cd78714]{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-3cd78714]{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-3cd78714]{color:#f65067}.navbar .nav-item.current[data-v-3cd78714]: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-3cd78714]{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-3cd78714]{background-color:#f65067;color:#fff}body.?%PAGE?%[data-v-3cd78714]{background:#f8f8f8}',""]),t.exports=a},2310:function(t,a,e){"use strict";var n=e("4ea4");Object.defineProperty(a,"__esModule",{value:!0}),a.spreadCommission=o,a.userBalance=r,a.wallet=s,a.extractCash=d,a.exchangeCash=c,a.extractBank=u,a.rechargeWechat=l,a.aliInfo=f,a.bankInfo=p,a.setAliInfo=v,a.setBankInfo=h,a.balance=b,a.cashList=m,a.moneyChong=g;var i=n(e("c9b6"));function o(t,a){return(0,i.default)({url:"/api/spread/commission/"+a,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/wallet",method:"get",data:t})}function d(t){return(0,i.default)({url:"/api/extract/cash",method:"post",data:t})}function c(t){return(0,i.default)({url:"/api/extract/brokerage",method:"post",data:t})}function u(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 f(t){return(0,i.default)({url:"/api/ali/info",method:"get",data:t})}function p(t){return(0,i.default)({url:"/api/bank/info",method:"get",data:t})}function v(t){return(0,i.default)({url:"/api/ali/edit",method:"post",data:t})}function h(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})}function m(t){return(0,i.default)({url:"/api/cash/list",method:"get",data:t})}function g(t){return(0,i.default)({url:"/api/recharge/index",method:"get",data:t})}},"42e6":function(t,a,e){var n=e("211a");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=e("4f06").default;i("6921e782",n,!0,{sourceMap:!1,shadowMode:!1})},"56f4":function(t,a,e){"use strict";e.r(a);var n=e("8355"),i=e.n(n);for(var o in n)"default"!==o&&function(t){e.d(a,t,(function(){return n[t]}))}(o);a["default"]=i.a},6945:function(t,a,e){"use strict";var n;e.d(a,"b",(function(){return i})),e.d(a,"c",(function(){return o})),e.d(a,"a",(function(){return n}));var i=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("v-uni-view",{staticClass:"content"},[e("v-uni-view",{staticClass:"navbar"},t._l(t.navList,(function(a,n){return e("v-uni-view",{key:n,staticClass:"nav-item",class:{current:t.tabCurrentIndex===n},on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.tabClick(n)}}},[t._v(t._s(a.text))])})),1),e("v-uni-swiper",{staticClass:"swiper-box",attrs:{current:t.tabCurrentIndex,duration:"300"},on:{change:function(a){arguments[0]=a=t.$handleEvent(a),t.changeTab.apply(void 0,arguments)}}},t._l(t.navList,(function(a,n){return e("v-uni-swiper-item",{key:n,staticClass:"tab-content"},[e("v-uni-view",{staticClass:"row b-b"},[e("v-uni-text",{staticClass:"tit"},[t._v("姓名")]),e("v-uni-input",{staticClass:"input",attrs:{type:"text",placeholder:"提款人姓名","placeholder-class":"placeholder"},model:{value:a.orderList.name,callback:function(e){t.$set(a.orderList,"name",e)},expression:"tabItem.orderList.name"}})],1),e("v-uni-view",{staticClass:"row b-b"},[e("v-uni-text",{staticClass:"tit"},[t._v(t._s(0==n?"账号":"银行卡号"))]),e("v-uni-input",{staticClass:"input",attrs:{type:"text",placeholder:"请输入账号","placeholder-class":"placeholder"},model:{value:a.orderList.code,callback:function(e){t.$set(a.orderList,"code",e)},expression:"tabItem.orderList.code"}})],1),1==n?e("v-uni-view",{staticClass:"row b-b"},[e("v-uni-text",{staticClass:"tit"},[t._v("所属银行")]),e("v-uni-input",{staticClass:"input",attrs:{type:"text",placeholder:"请输入账号","placeholder-class":"placeholder"},model:{value:a.orderList.bankName,callback:function(e){t.$set(a.orderList,"bankName",e)},expression:"tabItem.orderList.bankName"}})],1):t._e()],1)})),1),e("v-uni-button",{staticClass:"add-btn up",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.confirm.apply(void 0,arguments)}}},[t._v("提交申请")])],1)},o=[]},8355:function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var n=e("2310"),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 a=this;(0,n.aliInfo)({}).then((function(t){var e=t.data,n=a.navList[0].orderList;a.$set(n,"name",e.fullname),a.$set(n,"code",e.alino),a.$set(n,"id",e.id)}))},loadBank:function(){var t=this;(0,n.bankInfo)({}).then((function(a){var e=a.data,n=t.navList[1].orderList;t.$set(n,"name",e.fullname),t.$set(n,"code",e.bankno),t.$set(n,"bankName",e.bank),t.$set(n,"id",e.id)}))},changeTab:function(t){this.tabCurrentIndex=t.target.current},tabClick:function(t){this.tabCurrentIndex=t},confirm:function(){var t=this,a=t.navList[t.tabCurrentIndex].orderList;1==t.tabCurrentIndex&&t.setBankInfo({fullname:a.name,bank:a.bankName,bankno:a.code,id:a.id}),0==t.tabCurrentIndex&&t.setAliInfo({fullname:a.name,alino:a.code,id:a.id})},setBankInfo:function(t){var a=this;(0,n.setBankInfo)(t).then((function(t){uni.showToast({title:"修改成功",duration:2e3,position:"top"}),a.$api.prePage().dataUp(),setTimeout((function(){uni.navigateBack()}),1500)})).catch((function(t){console.log(t)}))},setAliInfo:function(t){var a=this;(0,n.setAliInfo)(t).then((function(t){uni.showToast({title:"修改成功",duration:2e3,position:"top"}),a.$api.prePage().dataUp(),setTimeout((function(){uni.navigateBack()}),1500)})).catch((function(t){console.log(t)}))}}};a.default=i},"97d5":function(t,a,e){"use strict";var n=e("42e6"),i=e.n(n);i.a},d747:function(t,a,e){"use strict";e.r(a);var n=e("6945"),i=e("56f4");for(var o in i)"default"!==o&&function(t){e.d(a,t,(function(){return i[t]}))}(o);e("97d5");var r,s=e("f0c5"),d=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,"3cd78714",null,!1,n["a"],r);a["default"]=d.exports}}]);
|