1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-money-account"],{"1a0f":function(t,a,e){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var n=e("f347"),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 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,e=getCurrentPages();console.log(e);e[e.length-1];var n=e[e.length-2];if(console.log(n),1==t.tabCurrentIndex){if(!a.name)return this.$api.msg("请输入提款人姓名");if(!a.bankName)return this.$api.msg("请输入所属银行");if(!a.code)return this.$api.msg("请输入银行卡号");var i={fullname:a.name,bank:a.bankName,bankno:a.code};n.$vm.bankData=i,uni.navigateBack({delta:1})}if(0==t.tabCurrentIndex){if(!a.name)return this.$api.msg("请输入提款人姓名");if(!a.code)return this.$api.msg("请输入支付宝账号");var o={fullname:a.name,alino:a.code};n.$vm.aliData=o,uni.navigateBack({delta:1})}},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},"1a71":function(t,a,e){"use strict";var n=e("3ce0"),i=e.n(n);i.a},"3ce0":function(t,a,e){var n=e("88a8");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=e("4f06").default;i("4edce582",n,!0,{sourceMap:!1,shadowMode:!1})},"51d2":function(t,a,e){"use strict";e.r(a);var n=e("1a0f"),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},"68c6":function(t,a,e){"use strict";e.r(a);var n=e("7cb4"),i=e("51d2");for(var o in i)"default"!==o&&function(t){e.d(a,t,(function(){return i[t]}))}(o);e("1a71");var r,s=e("f0c5"),c=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,"2a42af2d",null,!1,n["a"],r);a["default"]=c.exports},"7cb4":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=[]},"88a8":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-2a42af2d]{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-2a42af2d]{-webkit-flex-shrink:0;flex-shrink:0;width:%?120?%;font-size:%?30?%;color:#303133}.row .input[data-v-2a42af2d]{-webkit-box-flex:1;-webkit-flex:1;flex:1;font-size:%?30?%;color:#303133}.row .iconlocation[data-v-2a42af2d]{font-size:%?36?%;color:#909399}uni-page-body[data-v-2a42af2d],\n.content[data-v-2a42af2d]{background:#f8f6f6;height:100%}.swiper-box[data-v-2a42af2d]{height:%?750?%}.navbar[data-v-2a42af2d]{display:-webkit-box;display:-webkit-flex;display:flex;height:40px;padding:0 5px;background:#fff;-webkit-box-shadow:0 1px 5px rgba(0,0,0,.06);box-shadow:0 1px 5px rgba(0,0,0,.06);position:relative;z-index:10}.navbar .nav-item[data-v-2a42af2d]{-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-2a42af2d]{color:#921a23}.navbar .nav-item.current[data-v-2a42af2d]:after{content:"";position:absolute;left:50%;bottom:0;-webkit-transform:translateX(-50%);transform:translateX(-50%);width:44px;height:0;border-bottom:2px solid #921a23}.add-btn[data-v-2a42af2d]{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-2a42af2d]{background-color:#921a23;color:#fff}body.?%PAGE?%[data-v-2a42af2d]{background:#f8f6f6}',""]),t.exports=a},f347:function(t,a,e){"use strict";var n=e("4ea4");Object.defineProperty(a,"__esModule",{value:!0}),a.spreadCommission=o,a.userBalance=r,a.extractCash=s,a.extractBank=c,a.rechargeWechat=d,a.aliInfo=l,a.bankInfo=u,a.setAliInfo=f,a.setBankInfo=b,a.balance=p,a.getCommission=v;var i=n(e("bc58"));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/extract/cash",method:"post",data:t})}function c(t){return(0,i.default)({url:"/api/extract/bank",method:"get",data:t})}function d(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 u(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})}function v(t){return(0,i.default)({url:"/api/commission",method:"get",data:t})}}}]);
|