pages-wallet-withdrawal.89e5c3fc.js 9.0 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-wallet-withdrawal"],{"08f6":function(t,e,a){"use strict";var n=a("0a14"),i=a.n(n);i.a},"0a14":function(t,e,a){var n=a("4f26");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=a("4f06").default;i("ad6bf9c0",n,!0,{sourceMap:!1,shadowMode:!1})},"1e78":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:"tip"},[t._v("提现7个工作日到账")]),a("v-uni-view",{staticClass:"row-box"},[a("v-uni-view",{staticClass:"title"},[t._v("提现金额")]),a("v-uni-view",{staticClass:"row"},[a("v-uni-text",{staticClass:"tit"},[t._v("¥")]),a("v-uni-input",{staticClass:"input",attrs:{type:"number",placeholder:"最低提现金额"+t.minPrice+"元","placeholder-class":"placeholder"},model:{value:t.withdrawal,callback:function(e){t.withdrawal=e},expression:"withdrawal"}}),a("v-uni-view",{staticClass:"buttom",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.withdrawal=t.money}}},[t._v("全部提现")])],1)],1),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),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.code,callback:function(a){t.$set(e.orderList,"code",a)},expression:"tabItem.orderList.code"}})],1):t._e(),0==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.code,callback:function(a){t.$set(e.orderList,"code",a)},expression:"tabItem.orderList.code"}})],1):t._e(),2==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.code,callback:function(a){t.$set(e.orderList,"code",a)},expression:"tabItem.orderList.code"}})],1):t._e(),0==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:t.name,callback:function(e){t.name=e},expression:"name"}})],1):t._e(),0==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=[]},"37c5":function(t,e,a){"use strict";a.r(e);var n=a("3d39"),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},"3d39":function(t,e,a){"use strict";var n=a("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,a("96cf");var i=n(a("1da1")),o=a("a9a9"),r=n(a("6e27")),s={components:{LbPicker:r.default},data:function(){return{withdrawal:"",minPrice:"",money:"0.00",tabCurrentIndex:0,extract_type:"",token:"",name:"",show:!1,extract_bank:[],navList:[{state:0,text:"银行卡",loadingType:"more",orderList:{name:"",code:"",bankName:"",id:""}}]}},onLoad:function(){this.loadData()},methods:{loadData:function(){var t=this;return(0,i.default)(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:(0,o.withdraw_info)({}).then((function(e){var a=e.data;t.money=a.brokerage_price,t.minPrice=a.extract_min_money,t.extract_bank=a.extract_bank}));case 1:case"end":return e.stop()}}),e)})))()},confirm:function(){var t=this,e=t.navList[t.tabCurrentIndex].orderList,a={money:t.withdrawal,name:e.name};0==t.tabCurrentIndex&&(a.bankname=t.name+","+e.bankName,a.cardnum=e.code,a.extract_type="bank"),2==t.tabCurrentIndex&&(a.weixin=e.code,a.extract_type="weixin"),t.withdrawal<t.minPrice?t.$api.msg("提现金额必须大于"+t.minPrice):(console.log(a,55),(0,o.save_withdraw)(a).then((function(e){t.$api.msg(e.msg),t.withdrawal="",t.loadData(),setTimeout((function(){uni.navigateTo({url:"/pages/wallet/commission"})}),1e3)})).catch((function(t){console.log()})))},changeTab:function(t){this.tabCurrentIndex=t.target.current},tabClick:function(t){this.tabCurrentIndex=t}}};e.default=s},"4f26":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-75563769]{display:flex;align-items:center;position:relative;padding:0 %?30?%;height:%?110?%;background:#fff}.row .tit[data-v-75563769]{flex-shrink:0;width:%?180?%;font-size:%?30?%;color:#303133}.row .input[data-v-75563769]{flex:1;font-size:%?30?%;color:#303133}.row .iconlocation[data-v-75563769]{font-size:%?36?%;color:#909399}uni-page-body[data-v-75563769],\n.content[data-v-75563769]{background:#f8f8f8;height:100%;padding-top:%?10?%}.tip[data-v-75563769]{font-size:%?30?%;width:100%;color:#6786fb;background:rgba(103,134,251,.18);padding:%?15?% %?25?%}.money-top[data-v-75563769]{width:100%;height:%?120?%;background:#fff;display:flex;justify-content:center;flex-direction:column;align-items:center;margin-bottom:%?50?%}.money-top .text[data-v-75563769]{font-size:%?28?%;font-weight:500;color:#666}.money-top .money[data-v-75563769]{font-size:%?42?%;font-weight:700;color:#333}.swiper-box[data-v-75563769]{margin-bottom:%?25?%;height:%?500?%}.navbar[data-v-75563769]{margin-top:%?20?%;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-75563769]{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-75563769]{color:#6786fb}.navbar .nav-item.current[data-v-75563769]:after{content:"";position:absolute;left:50%;bottom:0;-webkit-transform:translateX(-50%);transform:translateX(-50%);width:44px;height:0;border-bottom:2px solid #6786fb}.add-btn[data-v-75563769]{display:flex;align-items:center;justify-content:center;width:%?690?%;height:%?80?%;margin:0 auto;margin-top:%?30?%;font-size:%?32?%;border-radius:%?10?%;background:#6786fb;border-radius:40px}.add-btn.up[data-v-75563769]{background-color:#6786fb;color:#fff}.row-box[data-v-75563769]{padding:%?20?% %?30?%;background:#fff}.row-box .title[data-v-75563769]{font-size:%?30?%;color:#303133}.row-box .row[data-v-75563769]{display:flex;align-items:center;position:relative;height:%?150?%}.row-box .row .tit[data-v-75563769]{flex-shrink:0;width:%?40?%;font-size:%?30?%;color:#303133}.row-box .row .input[data-v-75563769]{flex:1;font-size:%?30?%;color:#303133}.row-box .row .iconlocation[data-v-75563769]{font-size:%?36?%;color:#909399}.row-box .row .buttom[data-v-75563769]{color:#6786fb;font-size:%?28?%}body.?%PAGE?%[data-v-75563769]{background:#f8f8f8}',""]),t.exports=e},"9c53":function(t,e,a){"use strict";a.r(e);var n=a("1e78"),i=a("37c5");for(var o in i)"default"!==o&&function(t){a.d(e,t,(function(){return i[t]}))}(o);a("08f6");var r,s=a("f0c5"),c=Object(s["a"])(i["default"],n["b"],n["c"],!1,null,"75563769",null,!1,n["a"],r);e["default"]=c.exports},a9a9:function(t,e,a){"use strict";var n=a("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.withdraw_info=o,e.order_income=r,e.save_withdraw=s;var i=n(a("0966"));function o(t){return(0,i.default)({url:"/api/user.spread/withdraw_info",method:"get",data:t})}function r(t){return(0,i.default)({url:"/api/user.spread/order_income",method:"get",data:t})}function s(t){return(0,i.default)({url:"/api/user.spread/save_withdraw",method:"post",data:t})}}}]);