pages-money-withdrawal.35fc1d37.js 19 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-money-withdrawal"],{"0696":function(t,e,a){"use strict";a.r(e);var n=a("2eef"),i=a("dc0d");for(var o in i)"default"!==o&&function(t){a.d(e,t,(function(){return i[t]}))}(o);a("b7e1");var r,c=a("f0c5"),l=Object(c["a"])(i["default"],n["b"],n["c"],!1,null,"5a415af8",null,!1,n["a"],r);e["default"]=l.exports},"0703":function(t,e,a){"use strict";a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return o})),a.d(e,"a",(function(){return n}));var n={uniNoticeBar:a("0696").default},i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"content"},[a("uni-notice-bar",{attrs:{single:"true",text:"每月25号到月底可提现上月结算余额"}}),a("v-uni-view",{staticClass:"content-money"},[a("v-uni-view",{staticClass:"flex "},[a("v-uni-view",{staticClass:"buttom"},[a("v-uni-view",{staticClass:"icon"},[t._v(t._s(t._f("getMoneyStyle")(t.money)))]),a("v-uni-text",{staticClass:"text"},[t._v("可提现金额")])],1),a("v-uni-view",{staticClass:"interval"}),a("v-uni-view",{staticClass:"buttom"},[a("v-uni-view",{staticClass:" icon"},[t._v(t._s(t._f("getMoneyStyle")(t.freeze)))]),a("v-uni-text",{staticClass:"text"},[t._v("待审核提现金额")])],1)],1)],1),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),t.weichatBsrowser?t._e():a("v-uni-view",{staticClass:"list"},[a("v-uni-radio-group",{on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.tabRadio.apply(void 0,arguments)}}},[a("v-uni-label",[a("v-uni-view",{staticClass:"box"},[a("v-uni-view",{staticClass:"icon iconfont iconweixin1"}),a("v-uni-view",{staticClass:"title-box"},[a("v-uni-view",{staticClass:"title"},[a("v-uni-text",[t._v("提现至微信")])],1)],1),a("v-uni-view",{staticClass:"right"},[a("v-uni-radio",{attrs:{value:"weixin",color:"#5dbc7c",checked:"weixin"==t.type}})],1)],1)],1),a("v-uni-label",[a("v-uni-view",{staticClass:"box"},[a("v-uni-view",{staticClass:"icon iconfont iconzhifubao"}),a("v-uni-view",{staticClass:"title-box"},[a("v-uni-view",{staticClass:"title"},[t.aliData.fullname?a("v-uni-text",[t._v("提现至支付宝")]):a("v-uni-text",[t._v("请创建支付宝账号")])],1),a("v-uni-view",{staticClass:"node"},[t.aliData.fullname?a("v-uni-text",[t._v("真实姓名("+t._s(t.aliData.fullname)+")")]):t._e()],1)],1),a("v-uni-view",{staticClass:"right"},[a("v-uni-radio",{attrs:{value:"alipay",color:"#5dbc7c",checked:"alipay"==t.type}})],1)],1)],1),a("v-uni-label",[a("v-uni-view",{staticClass:"box"},[a("v-uni-view",{staticClass:"icon iconfont"},[a("v-uni-image",{staticClass:"icon-img",attrs:{src:"/static/icon/i8.png",mode:"aspectFit"}})],1),a("v-uni-view",{staticClass:"title-box"},[a("v-uni-view",{staticClass:"title"},[t.bankData.bankno?a("v-uni-text",[t._v(t._s(t.bankData.bank+" "+t.bankData.bankno))]):a("v-uni-text",[t._v("请创建银行账号")])],1),a("v-uni-view",{staticClass:"node"},[t.bankData.fullname?a("v-uni-text",[t._v("真实姓名("+t._s(t.bankData.fullname)+")")]):t._e()],1)],1),a("v-uni-view",{staticClass:"right"},[a("v-uni-radio",{attrs:{value:"bank",color:"#5dbc7c",checked:"bank"==t.type}})],1)],1)],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("提交申请")]),t.weichatBsrowser?t._e():a("v-uni-button",{staticClass:"add-btn modified",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.navTo("/pages/money/account")}}},[t._v("账号管理")])],1)},o=[]},"1dd95":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/*功能栏左侧小图标*/\n/* 页面左右间距 */\n/* 文字尺寸 */\n/*文字颜色*/\n/* 边框颜色 */\n/*颜色*/\n/* 图片加载中颜色 */\n/* 行为相关颜色 */\n/* 功能栏字体大小 */\n/*功能栏左侧小图标*/.uni-noticebar[data-v-5a415af8]{display:flex;width:100%;box-sizing:border-box;flex-direction:row;align-items:center;padding:6px 12px;margin-bottom:10px}.uni-noticebar-close[data-v-5a415af8]{margin-right:5px}.uni-noticebar-icon[data-v-5a415af8]{margin-right:5px}.uni-noticebar__content-wrapper[data-v-5a415af8]{flex:1;flex-direction:column;overflow:hidden}.uni-noticebar__content-wrapper--single[data-v-5a415af8]{line-height:18px}.uni-noticebar__content-wrapper--single[data-v-5a415af8],\n.uni-noticebar__content-wrapper--scrollable[data-v-5a415af8]{flex-direction:row}.uni-noticebar__content-wrapper--scrollable[data-v-5a415af8]{position:relative;height:18px}.uni-noticebar__content--scrollable[data-v-5a415af8]{flex:1;display:block;overflow:hidden}.uni-noticebar__content--single[data-v-5a415af8]{display:flex;flex:none;width:100%;justify-content:center}.uni-noticebar__content-text[data-v-5a415af8]{font-size:14px;line-height:18px;word-break:break-all}.uni-noticebar__content-text--single[data-v-5a415af8]{display:block;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.uni-noticebar__content-text--scrollable[data-v-5a415af8]{position:absolute;display:block;height:18px;line-height:18px;white-space:nowrap;padding-left:100%;-webkit-animation:notice-data-v-5a415af8 10s 0s linear infinite both;animation:notice-data-v-5a415af8 10s 0s linear infinite both;-webkit-animation-play-state:paused;animation-play-state:paused}.uni-noticebar__more[data-v-5a415af8]{display:inline-flex;flex-direction:row;flex-wrap:nowrap;align-items:center;padding-left:5px}.uni-noticebar__more-text[data-v-5a415af8]{font-size:14px}@-webkit-keyframes notice-data-v-5a415af8{100%{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}@keyframes notice-data-v-5a415af8{100%{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}}',""]),t.exports=e},"24e7":function(t,e,a){"use strict";a.r(e);var n=a("64fb"),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},2597:function(t,e,a){var n=a("1dd95");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=a("4f06").default;i("1239b79c",n,!0,{sourceMap:!1,shadowMode:!1})},"2eef":function(t,e,a){"use strict";a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return o})),a.d(e,"a",(function(){return n}));var n={uniIcons:a("08a0").default},i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return t.show?a("v-uni-view",{staticClass:"uni-noticebar",style:{backgroundColor:t.backgroundColor},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onClick.apply(void 0,arguments)}}},[!0===t.showClose||"true"===t.showClose?a("uni-icons",{staticClass:"uni-noticebar-close",attrs:{type:"closefill",color:t.color,size:"12"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.close.apply(void 0,arguments)}}}):t._e(),!0===t.showIcon||"true"===t.showIcon?a("uni-icons",{staticClass:"uni-noticebar-icon",attrs:{type:"sound",color:t.color,size:"14"}}):t._e(),a("v-uni-view",{ref:"textBox",staticClass:"uni-noticebar__content-wrapper",class:{"uni-noticebar__content-wrapper--scrollable":t.scrollable,"uni-noticebar__content-wrapper--single":!t.scrollable&&(t.single||t.moreText)}},[a("v-uni-view",{staticClass:"uni-noticebar__content",class:{"uni-noticebar__content--scrollable":t.scrollable,"uni-noticebar__content--single":!t.scrollable&&(t.single||t.moreText)},attrs:{id:t.elIdBox}},[a("v-uni-text",{ref:"animationEle",staticClass:"uni-noticebar__content-text",class:{"uni-noticebar__content-text--scrollable":t.scrollable,"uni-noticebar__content-text--single":!t.scrollable&&(t.single||t.moreText)},style:{color:t.color,width:t.wrapWidth+"px",animationDuration:t.animationDuration,"-webkit-animationDuration":t.animationDuration,animationPlayState:t.webviewHide?"paused":t.animationPlayState,"-webkit-animationPlayState":t.webviewHide?"paused":t.animationPlayState,animationDelay:t.animationDelay,"-webkit-animationDelay":t.animationDelay},attrs:{id:t.elId}},[t._v(t._s(t.text))])],1)],1),!0===t.showGetMore||"true"===t.showGetMore?a("v-uni-view",{staticClass:"uni-noticebar__more",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.clickMore.apply(void 0,arguments)}}},[t.moreText?a("v-uni-text",{staticClass:"uni-noticebar__more-text",style:{color:t.moreColor}},[t._v(t._s(t.moreText))]):t._e(),a("uni-icons",{attrs:{type:"arrowright",color:t.moreColor,size:"14"}})],1):t._e()],1):t._e()},o=[]},"360f":function(t,e,a){"use strict";var n=a("aaf7"),i=a.n(n);i.a},"466f":function(t,e,a){"use strict";a.r(e);var n=a("0703"),i=a("24e7");for(var o in i)"default"!==o&&function(t){a.d(e,t,(function(){return i[t]}))}(o);a("360f");var r,c=a("f0c5"),l=Object(c["a"])(i["default"],n["b"],n["c"],!1,null,"87049e74",null,!1,n["a"],r);e["default"]=l.exports},"4b43":function(t,e,a){"use strict";var n=a("4ea4");a("a9e3"),a("d3b7"),a("ac1f"),a("25f0"),a("3ca3"),a("ddb0"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(a("08a0")),o={name:"UniNoticeBar",components:{uniIcons:i.default},props:{text:{type:String,default:""},moreText:{type:String,default:""},backgroundColor:{type:String,default:"#fffbe8"},speed:{type:Number,default:100},color:{type:String,default:"#de8c17"},moreColor:{type:String,default:"#999999"},single:{type:[Boolean,String],default:!1},scrollable:{type:[Boolean,String],default:!1},showIcon:{type:[Boolean,String],default:!1},showGetMore:{type:[Boolean,String],default:!1},showClose:{type:[Boolean,String],default:!1}},data:function(){var t="Uni_".concat(Math.ceil(1e6*Math.random()).toString(36)),e="Uni_".concat(Math.ceil(1e6*Math.random()).toString(36));return{textWidth:0,boxWidth:0,wrapWidth:"",webviewHide:!1,elId:t,elIdBox:e,show:!0,animationDuration:"none",animationPlayState:"paused",animationDelay:"0s"}},mounted:function(){var t=this;this.$nextTick((function(){t.initSize()}))},methods:{initSize:function(){var t=this;if(this.scrollable){var e=[],a=new Promise((function(e,a){uni.createSelectorQuery().in(t).select("#".concat(t.elId)).boundingClientRect().exec((function(a){t.textWidth=a[0].width,e()}))})),n=new Promise((function(e,a){uni.createSelectorQuery().in(t).select("#".concat(t.elIdBox)).boundingClientRect().exec((function(a){t.boxWidth=a[0].width,e()}))}));e.push(a),e.push(n),Promise.all(e).then((function(){t.animationDuration="".concat(t.textWidth/t.speed,"s"),t.animationDelay="-".concat(t.boxWidth/t.speed,"s"),setTimeout((function(){t.animationPlayState="running"}),1e3)}))}},loopAnimation:function(){},clickMore:function(){this.$emit("getmore")},close:function(){this.show=!1,this.$emit("close")},onClick:function(){this.$emit("click")}}};e.default=o},"64fb":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("793c"),r=a("eb45"),c=n(a("0696")),l={filters:{getMoneyStyle:o.getMoneyStyle},components:{uniNoticeBar:c.default},data:function(){return{type:"weixin",money:"0.00",freeze:"0.0",withdrawal:"",minPrice:"",aliData:{},bankData:{},weichatBsrowser:!1}},onLoad:function(t){this.weichatBsrowser=uni.getStorageSync("weichatBrowser"),this.loadData(),this.loadAli(),this.loadBank()},methods:{dataUp:function(){this.loadAli(),this.loadBank()},loadAli:function(t){var e=this;return(0,i.default)(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:(0,r.aliInfo)({}).then((function(t){e.aliData=t.data}));case 1:case"end":return t.stop()}}),t)})))()},loadBank: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,r.bankInfo)({}).then((function(e){t.bankData=e.data}));case 1:case"end":return e.stop()}}),e)})))()},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,r.extractBank)({}).then((function(e){var a=e.data;t.money=a.moneyCount,t.minPrice=a.minPrice,t.freeze=a.inmoneyCount}));case 1:case"end":return e.stop()}}),e)})))()},navTo:function(t){uni.navigateTo({url:t})},tabRadio:function(t){this.type=t.detail.value},confirm:function(){var t={extract_type:this.type,money:this.withdrawal,money_type:1};"alipay"==this.type&&(t.name=this.aliData.fullname,t.alipay_code=this.aliData.alino),"bank"==this.type&&(t.name=this.bankData.fullname,t.bankname=this.bankData.bank,t.cardnum=this.bankData.bankno),(0,r.extractCash)(t).then((function(t){uni.showToast({title:"提交成功",duration:2e3,position:"top"})})).catch((function(t){console.log()}))}}};e.default=l},"793c":function(t,e,a){"use strict";function n(t){var e=/(^[1-9]\d{5}(18|19|([23]\d))\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$)|(^[1-9]\d{5}\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{2}$)/;return!1!==e.test(t)||(console.log(t),!1)}function i(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;"string"==typeof t&&(t=(+t).toFixed(2)),"number"==typeof t&&(t=t.toFixed(2));var e=t.split(""),a=e.reverse().map((function(t,e,a){return e%3==0&&e/3>1&&e!=a.length?t+",":t}));return a=a.reverse().join(""),a}function o(t){var e=(new Date).getTime(),a=t-e;a<0&&(a*=-1);var n=Math.floor(a/1e3/60/60/24),i=Math.floor(a/1e3/60/60%24),o=Math.floor(a/1e3/60%60),r=Math.floor(a/1e3%60);return{hours:i,minutes:o,seconds:r,day:n}}function r(t){return new Promise((function(t,e){wx.getSetting({success:function(a){a.authSetting["scope.userLocation"]?t():wx.showModal({title:"提示",content:"请求获取位置权限",success:function(a){if(0==a.confirm)return e(),!1;wx.openSetting({success:function(e){e.authSetting["scope.userLocation"]?t():wx.showToast({title:"此功能需获取位置信息,请重新设置",duration:3e3,icon:"none"})}})}})}})}))}function c(t){for(var e=13-(t+"").length,a=1,n=0;n<e;n++)a+="0";a=parseInt(a);var i=new Date(parseInt(t)*a),o=i.getFullYear(),r=i.getMonth()+1;r<10&&(r="0"+r);var c=i.getDate();c<10&&(c="0"+c);var l=i.getHours();l<10&&(l="0"+l);var s=i.getMinutes();s<10&&(s="0"+s);var u=i.getSeconds();return u<10&&(u="0"+u),o+"-"+r+"-"+c+" "+l+":"+s+":"+u}a("d81d"),a("26e9"),a("d3b7"),a("e25e"),a("ac1f"),a("1276"),Object.defineProperty(e,"__esModule",{value:!0}),e.isCardNo=n,e.getMoneyStyle=i,e.timeComputed=o,e.openMap=r,e.getTime=c},aaf7:function(t,e,a){var n=a("f67a");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=a("4f06").default;i("05455600",n,!0,{sourceMap:!1,shadowMode:!1})},b7e1:function(t,e,a){"use strict";var n=a("2597"),i=a.n(n);i.a},dc0d:function(t,e,a){"use strict";a.r(e);var n=a("4b43"),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},eb45:function(t,e,a){"use strict";var n=a("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.spreadCommission=o,e.userBalance=r,e.extractCash=c,e.extractBank=l,e.rechargeWechat=s,e.aliInfo=u,e.bankInfo=d,e.setAliInfo=f,e.setBankInfo=v,e.balance=b,e.integral=p;var i=n(a("4c3b"));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/user/balance",method:"get",data:t})}function c(t){return(0,i.default)({url:"/api/extract/cash",method:"post",data:t})}function l(t){return(0,i.default)({url:"/api/extract/bank",method:"get",data:t})}function s(t){return(0,i.default)({url:"/api/recharge/wechat",method:"post",data:t})}function u(t){return(0,i.default)({url:"/api/ali/info",method:"get",data:t})}function d(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 v(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 p(t){return(0,i.default)({url:"/api/integral/list",method:"get",data:t})}},f67a: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/*功能栏左侧小图标*/uni-page-body[data-v-87049e74]{height:100%}.content-money[data-v-87049e74]{padding:%?30?% 0;background:#fff}.flex[data-v-87049e74]{background-color:#fff;text-align:center;margin:0 %?30?%;border-radius:%?15?%}.flex .buttom[data-v-87049e74]{font-size:%?32?%;width:50%}.flex .interval[data-v-87049e74]{width:2px;height:%?60?%;background-color:#eee}.flex .icon[data-v-87049e74]{background-size:100%;font-size:%?42?%;color:#303133;font-weight:700;background-repeat:no-repeat;background-position:50%}.flex .text[data-v-87049e74]{color:#909399}.row-box[data-v-87049e74]{margin-top:%?30?%;padding:%?20?% %?30?%;background:#fff}.row-box .title[data-v-87049e74]{font-size:%?30?%;color:#303133}.row-box .row[data-v-87049e74]{display:flex;align-items:center;position:relative;height:%?80?%}.row-box .row .tit[data-v-87049e74]{flex-shrink:0;width:%?40?%;font-size:%?30?%;color:#303133}.row-box .row .input[data-v-87049e74]{flex:1;font-size:%?30?%;color:#303133}.row-box .row .iconlocation[data-v-87049e74]{font-size:%?36?%;color:#909399}.row-box .row .buttom[data-v-87049e74]{color:#5dbc7c;font-size:%?28?%}.add-btn[data-v-87049e74]{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.modified[data-v-87049e74]{color:#5dbc7c}.add-btn.up[data-v-87049e74]{background-color:#5dbc7c;color:#fff}.list[data-v-87049e74]{padding-left:%?30?%;margin-top:%?30?%;background-color:#fff}.list .box[data-v-87049e74]{display:flex;align-items:center;width:100%;height:%?120?%;border-bottom:1px solid #ebeef5}.list .box .icon[data-v-87049e74]{font-size:%?48?%;padding-right:%?20?%}.list .box .icon .icon-img[data-v-87049e74]{height:%?50?%;width:%?50?%}.list .box .iconweixin1[data-v-87049e74]{color:#18bf16}.list .box .iconzhifubao[data-v-87049e74]{color:#08aaec}.list .box .title-box[data-v-87049e74]{flex-grow:1;text-align:left}.list .box .title-box .title[data-v-87049e74]{font-size:%?30?%;color:#606266}.list .box .title-box .node[data-v-87049e74]{font-size:%?24?%;color:#909399}[data-v-87049e74] .uni-radio-input{width:%?45?%;height:%?45?%}',""]),t.exports=e}}]);