pages-money-account.c8720bf8.js 7.4 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-money-account"],{"274c":function(t,e,a){"use strict";a.r(e);var n=a("5680"),o=a("72a5");for(var i in o)"default"!==i&&function(t){a.d(e,t,(function(){return o[t]}))}(i);a("d068");var r,s=a("f0c5"),u=Object(s["a"])(o["default"],n["b"],n["c"],!1,null,"15860637",null,!1,n["a"],r);e["default"]=u.exports},5680:function(t,e,a){"use strict";var n;a.d(e,"b",(function(){return o})),a.d(e,"c",(function(){return i})),a.d(e,"a",(function(){return n}));var o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"content"},[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),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.phone,callback:function(a){t.$set(e.orderList,"phone",a)},expression:"tabItem.orderList.phone"}})],1)],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)},i=[]},"5cf4":function(t,e,a){var n=a("9bcd");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var o=a("4f06").default;o("2e66001e",n,!0,{sourceMap:!1,shadowMode:!1})},"6b863":function(t,e,a){"use strict";var n=a("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.spreadCommission=i,e.userBalance=r,e.getMoneyType=s,e.wallet=u,e.extractCash=c,e.exchangeCash=d,e.extractBank=l,e.rechargeWechat=f,e.aliInfo=p,e.bankInfo=h,e.setAliInfo=v,e.setBankInfo=b,e.balance=m,e.cashList=g,e.moneyChong=x;var o=n(a("60ab"));function i(t,e){return(0,o.default)({url:"/api/spread/commission/"+e,method:"get",data:t})}function r(t){return(0,o.default)({url:"/api/user/balance",method:"get",data:t})}function s(t){return(0,o.default)({url:"/api/auction/pay",method:"post",data:t})}function u(t){return(0,o.default)({url:"/api/wallet",method:"get",data:t})}function c(t){return(0,o.default)({url:"/api/extract/cash",method:"post",data:t})}function d(t){return(0,o.default)({url:"/api/extract/brokerage",method:"post",data:t})}function l(t){return(0,o.default)({url:"/api/extract/bank",method:"get",data:t})}function f(t){return(0,o.default)({url:"/api/recharge/wechat",method:"post",data:t})}function p(t){return(0,o.default)({url:"/api/auction/pay_list",method:"get",data:t})}function h(t){return(0,o.default)({url:"/api/bank/info",method:"get",data:t})}function v(t){return(0,o.default)({url:"/api/auction/pay",method:"post",data:t})}function b(t){return(0,o.default)({url:"/api/bank/edit",method:"post",data:t})}function m(t){return(0,o.default)({url:"/api/user/balance",method:"get",data:t})}function g(t){return(0,o.default)({url:"/api/cash/list",method:"get",data:t})}function x(t){return(0,o.default)({url:"/api/recharge/index",method:"get",data:t})}},"72a5":function(t,e,a){"use strict";a.r(e);var n=a("91c9"),o=a.n(n);for(var i in n)"default"!==i&&function(t){a.d(e,t,(function(){return n[t]}))}(i);e["default"]=o.a},"91c9":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=a("6b863"),o={data:function(){return{tabCurrentIndex:0,navList:[{state:0,text:"支付宝",loadingType:"more",orderList:{name:"",code:"",phone:""}},{state:1,text:"银行卡",loadingType:"more",orderList:{name:"",code:"",bankName:"",phone:""}}]}},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;console.log(a,"2232323");var n=e.navList[0].orderList;e.$set(n,"name",a.zfb.name),e.$set(n,"code",a.zfb.payment),e.$set(n,"phone",a.zfb.phone)}))},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({phone:e.phone,type:2,payment:e.code,name:e.name})},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"}),setTimeout((function(){uni.navigateBack({url:"pages/user/shopJf"})}),1500),e.$api.prePage().dataUp()})).catch((function(t){console.log(t)}))}}};e.default=o},"9bcd":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-15860637]{display:flex;align-items:center;position:relative;padding:0 %?30?%;height:%?110?%;background:#fff}.row .tit[data-v-15860637]{flex-shrink:0;width:%?120?%;font-size:%?30?%;color:#303133}.row .input[data-v-15860637]{flex:1;font-size:%?30?%;color:#303133}.row .iconlocation[data-v-15860637]{font-size:%?36?%;color:#909399}uni-page-body[data-v-15860637],\n.content[data-v-15860637]{background:#f8f8f8;height:100%}.swiper-box[data-v-15860637]{height:%?750?%}.navbar[data-v-15860637]{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-15860637]{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-15860637]{color:#f65067}.navbar .nav-item.current[data-v-15860637]: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-15860637]{display:flex;align-items:center;justify-content:center;width:%?690?%;height:%?80?%;margin:0 auto;font-size:%?32?%;border-radius:%?10?%}.add-btn.up[data-v-15860637]{background-color:#f65067;color:#fff}body.?%PAGE?%[data-v-15860637]{background:#f8f8f8}',""]),t.exports=e},d068:function(t,e,a){"use strict";var n=a("5cf4"),o=a.n(n);o.a}}]);