1 line
14 KiB
JavaScript
1 line
14 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-users-user_cash-index"],{"0e21":function(t,i,a){"use strict";a.r(i);var e=a("7464"),n=a.n(e);for(var s in e)["default"].indexOf(s)<0&&function(t){a.d(i,t,(function(){return e[t]}))}(s);i["default"]=n.a},"4ff5":function(t,i,a){"use strict";a.r(i);var e=a("7647"),n=a("0e21");for(var s in n)["default"].indexOf(s)<0&&function(t){a.d(i,t,(function(){return n[t]}))}(s);a("e458");var r=a("f0c5"),o=Object(r["a"])(n["default"],e["b"],e["c"],!1,null,"30862a44",null,!1,e["a"],void 0);i["default"]=o.exports},"570b":function(t,i,a){var e=a("24fb");i=e(!1),i.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* crmeb颜色变量 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */uni-page-body[data-v-30862a44]{background-color:#fff!important}body.?%PAGE?%[data-v-30862a44]{background-color:#fff!important}.cash-withdrawal .nav[data-v-30862a44]{height:%?130?%;box-shadow:0 %?10?% %?10?% #f8f8f8}.cash-withdrawal .nav .item[data-v-30862a44]{font-size:%?26?%;flex:1;text-align:center}.cash-withdrawal .nav .item ~ .item[data-v-30862a44]{border-left:1px solid #f0f0f0}.cash-withdrawal .nav .item .iconfont[data-v-30862a44]{width:%?40?%;height:%?40?%;border-radius:50%;border:%?2?% solid #e93323;text-align:center;line-height:%?37?%;margin:0 auto %?6?% auto;font-size:%?22?%;box-sizing:border-box}.cash-withdrawal .nav .item .iconfont.on[data-v-30862a44]{background-color:#e93323;color:#fff;border-color:#e93323}.cash-withdrawal .nav .item .line[data-v-30862a44]{width:%?2?%;height:%?20?%;margin:0 auto;transition:height .3s}.cash-withdrawal .nav .item .line.on[data-v-30862a44]{height:%?39?%}.cash-withdrawal .wrapper .list[data-v-30862a44]{padding:0 %?30?%}.cash-withdrawal .wrapper .list .item[data-v-30862a44]{border-bottom:%?1?% solid #eee;min-height:%?28?%;font-size:%?30?%;color:#333;padding:%?39?% 0}.cash-withdrawal .wrapper .list .item .name[data-v-30862a44]{width:%?130?%}.cash-withdrawal .wrapper .list .item .input[data-v-30862a44]{width:%?505?%}.cash-withdrawal .wrapper .list .item .input .placeholder[data-v-30862a44]{color:#bbb}.cash-withdrawal .wrapper .list .item .picEwm[data-v-30862a44], .cash-withdrawal .wrapper .list .item .pictrue[data-v-30862a44]{width:%?140?%;height:%?140?%;border-radius:%?3?%;position:relative;margin-right:%?23?%}.cash-withdrawal .wrapper .list .item .picEwm uni-image[data-v-30862a44]{width:100%;height:100%;border-radius:%?3?%}.cash-withdrawal .wrapper .list .item .picEwm .icon-guanbi1[data-v-30862a44]{position:absolute;right:%?-14?%;top:%?-16?%;font-size:%?40?%}.cash-withdrawal .wrapper .list .item .pictrue[data-v-30862a44]{border:1px solid #ddd;font-size:%?22?%;color:#bbb}.cash-withdrawal .wrapper .list .item .pictrue .icon-icon25201[data-v-30862a44]{font-size:%?47?%;color:#ddd;margin-bottom:3px}.cash-withdrawal .wrapper .list .tip[data-v-30862a44]{font-size:%?26?%;color:#999;margin-top:%?25?%}.cash-withdrawal .wrapper .list .bnt[data-v-30862a44]{font-size:%?32?%;color:#fff;width:%?690?%;height:%?90?%;text-align:center;border-radius:%?50?%;line-height:%?90?%;margin:%?64?% auto}.cash-withdrawal .wrapper .list .tip2[data-v-30862a44]{font-size:%?26?%;color:#999;text-align:center;margin:%?44?% 0 %?20?% 0}.cash-withdrawal .wrapper .list .value[data-v-30862a44]{height:%?135?%;line-height:%?135?%;border-bottom:%?1?% solid #eee;width:%?690?%;margin:0 auto}.cash-withdrawal .wrapper .list .value uni-input[data-v-30862a44]{font-size:%?80?%;color:#282828;height:%?135?%;text-align:center}.cash-withdrawal .wrapper .list .value .placeholder2[data-v-30862a44]{color:#bbb}.price[data-v-30862a44]{color:#e93323}',""]),t.exports=i},7464:function(t,i,a){"use strict";a("7a82"),Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0,a("3c65"),a("ac1f"),a("466d"),a("00b4");var e=a("2110"),n=a("1939"),s=a("26cb"),r={components:{},data:function(){return{navList:[{name:"银行卡",icon:"icon-yinhangqia"},{name:"微信",icon:"icon-weixin2"},{name:"支付宝",icon:"icon-icon34"}],currentTab:0,index:0,array:[],minPrice:0,userInfo:[],isClone:!1,isAuto:!1,isShowAuth:!1,commission:{},qrcodeUrlW:"",qrcodeUrlZ:"",isCommitted:!1}},computed:(0,s.mapGetters)(["isLogin"]),watch:{isLogin:{handler:function(t,i){t&&(this.getUserExtractBank(),this.getExtractUser())},deep:!0}},onLoad:function(){this.isLogin?(this.getUserExtractBank(),this.getExtractUser()):(0,n.toLogin)()},methods:{uploadpic:function(t){var i=this;i.$util.uploadImageOne({url:"user/upload/image",name:"multipart",model:"user",pid:1},(function(a){"W"===t?i.qrcodeUrlW=a.data.url:i.qrcodeUrlZ=a.data.url}))},DelPicW:function(){this.qrcodeUrlW=""},DelPicZ:function(){this.qrcodeUrlZ=""},onLoadFun:function(){this.getUserExtractBank()},getExtractUser:function(){var t=this;(0,e.extractUser)().then((function(i){t.commission=i.data,t.minPrice=i.data.minPrice}))},authColse:function(t){this.isShowAuth=t},getUserExtractBank:function(){var t=this;(0,e.extractBank)().then((function(i){var a=i.data;a.unshift("请选择银行"),t.$set(t,"array",a)}))},swichNav:function(t){this.currentTab=t},bindPickerChange:function(t){this.index=t.detail.value},moneyInput:function(t){var i=this;t.target.value=t.target.value.match(/^\d*(\.?\d{0,2})/g)[0]||null,this.$nextTick((function(){i.money=t.target.value}))},subCash:function(t){var i=this,a=t.detail.value;if(0==this.currentTab){if(0==a.name.length)return this.$util.Tips({title:"请填写持卡人姓名"});if(0==a.cardum.length)return this.$util.Tips({title:"请填写卡号"});if(0==this.index)return this.$util.Tips({title:"请选择银行"});a.extractType="bank",a.bankName=this.array[this.index]}else if(1==this.currentTab){if(a.extractType="weixin",0==a.name.length)return this.$util.Tips({title:"请填写微信号"});a.wechat=a.name,a.qrcodeUrl=this.qrcodeUrlW}else if(2==this.currentTab){if(a.extractType="alipay",0==a.name.length)return this.$util.Tips({title:"请填写账号"});a.alipayCode=a.name,a.qrcodeUrl=this.qrcodeUrlZ}return 0==a.money.length?this.$util.Tips({title:"请填写提现金额"}):/^(\d?)+(\.\d{0,2})?$/.test(a.money)?a.money<this.minPrice?this.$util.Tips({title:"提现金额不能低于"+this.minPrice}):void(0==this.isCommitted&&(this.isCommitted=!0,(0,e.extractCash)(a).then((function(t){return i.$util.Tips({title:"提现成功",icon:"success"},{tab:2,url:"/pages/users/user_spread_user/index"})})).catch((function(t){return i.isCommitted=!1,i.$util.Tips({title:t})})))):this.$util.Tips({title:"提现金额保留2位小数"})}}};i.default=r},7647:function(t,i,a){"use strict";a.d(i,"b",(function(){return e})),a.d(i,"c",(function(){return n})),a.d(i,"a",(function(){}));var e=function(){var t=this,i=t.$createElement,a=t._self._c||i;return a("v-uni-view",[a("v-uni-view",{staticClass:"cash-withdrawal"},[a("v-uni-view",{staticClass:"nav acea-row"},t._l(t.navList,(function(i,e){return a("v-uni-view",{key:e,staticClass:"item font-color",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.swichNav(e)}}},[a("v-uni-view",{staticClass:"line bg-color",class:t.currentTab==e?"on":""}),a("v-uni-view",{staticClass:"iconfont",class:i.icon+" "+(t.currentTab==e?"on":"")}),a("v-uni-view",[t._v(t._s(i.name))])],1)})),1),a("v-uni-view",{staticClass:"wrapper"},[a("v-uni-view",{staticClass:"list",attrs:{hidden:0!=t.currentTab}},[a("v-uni-form",{attrs:{"report-submit":"true"},on:{submit:function(i){arguments[0]=i=t.$handleEvent(i),t.subCash.apply(void 0,arguments)}}},[a("v-uni-view",{staticClass:"item acea-row row-between-wrapper"},[a("v-uni-view",{staticClass:"name"},[t._v("持卡人")]),a("v-uni-view",{staticClass:"input"},[a("v-uni-input",{attrs:{placeholder:"请输入持卡人姓名","placeholder-class":"placeholder",name:"name"}})],1)],1),a("v-uni-view",{staticClass:"item acea-row row-between-wrapper"},[a("v-uni-view",{staticClass:"name"},[t._v("卡号")]),a("v-uni-view",{staticClass:"input"},[a("v-uni-input",{attrs:{type:"number",placeholder:"请填写卡号","placeholder-class":"placeholder",name:"cardum"}})],1)],1),a("v-uni-view",{staticClass:"item acea-row row-between-wrapper"},[a("v-uni-view",{staticClass:"name"},[t._v("银行")]),a("v-uni-view",{staticClass:"input"},[a("v-uni-picker",{attrs:{value:t.index,range:t.array},on:{change:function(i){arguments[0]=i=t.$handleEvent(i),t.bindPickerChange.apply(void 0,arguments)}}},[a("v-uni-text",{staticClass:"Bank"},[t._v(t._s(t.array[t.index]))]),a("v-uni-text",{staticClass:"iconfont icon-qiepian38"})],1)],1)],1),a("v-uni-view",{staticClass:"item acea-row row-between-wrapper"},[a("v-uni-view",{staticClass:"name"},[t._v("提现")]),a("v-uni-view",{staticClass:"input"},[a("v-uni-input",{attrs:{placeholder:"最低提现金额"+t.minPrice,"placeholder-class":"placeholder",name:"money",type:"digit"}})],1)],1),a("v-uni-view",{staticClass:"tip"},[t._v("当前可提现金额:"),a("v-uni-text",{staticClass:"price"},[t._v("¥"+t._s(t.commission.commissionCount)+",")]),t._v("冻结佣金:¥"+t._s(t.commission.brokenCommission))],1),a("v-uni-view",{staticClass:"tip"},[t._v("说明: 每笔佣金的冻结期为"+t._s(t.commission.brokenDay)+"天,到期后可提现")]),a("v-uni-button",{staticClass:"bnt bg-color",attrs:{formType:"submit"}},[t._v("提现")])],1)],1),a("v-uni-view",{staticClass:"list",attrs:{hidden:1!=t.currentTab}},[a("v-uni-form",{attrs:{"report-submit":"true"},on:{submit:function(i){arguments[0]=i=t.$handleEvent(i),t.subCash.apply(void 0,arguments)}}},[a("v-uni-view",{staticClass:"item acea-row row-between-wrapper"},[a("v-uni-view",{staticClass:"name"},[t._v("账号")]),a("v-uni-view",{staticClass:"input"},[a("v-uni-input",{attrs:{placeholder:"请填写您的微信账号","placeholder-class":"placeholder",name:"name"}})],1)],1),a("v-uni-view",{staticClass:"item acea-row row-between-wrapper"},[a("v-uni-view",{staticClass:"name"},[t._v("提现")]),a("v-uni-view",{staticClass:"input"},[a("v-uni-input",{attrs:{placeholder:"最低提现金额"+t.minPrice,"placeholder-class":"placeholder",name:"money",type:"digit"}})],1)],1),a("v-uni-view",{staticClass:"item acea-row row-top row-between"},[a("v-uni-view",{staticClass:"name"},[t._v("收款码")]),a("v-uni-view",{staticClass:"input acea-row"},[t.qrcodeUrlW?a("v-uni-view",{staticClass:"picEwm"},[a("v-uni-image",{attrs:{src:t.qrcodeUrlW}}),a("v-uni-text",{staticClass:"iconfont icon-guanbi1 font-color",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.DelPicW.apply(void 0,arguments)}}})],1):a("v-uni-view",{staticClass:"pictrue acea-row row-center-wrapper row-column",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.uploadpic("W")}}},[a("v-uni-text",{staticClass:"iconfont icon-icon25201"}),a("v-uni-view",[t._v("上传图片")])],1)],1)],1),a("v-uni-view",{staticClass:"tip"},[t._v("当前可提现金额:"),a("v-uni-text",{staticClass:"price"},[t._v("¥"+t._s(t.commission.commissionCount)+",")]),t._v("冻结佣金:¥"+t._s(t.commission.brokenCommission))],1),a("v-uni-view",{staticClass:"tip"},[t._v("说明: 每笔佣金的冻结期为"+t._s(t.commission.brokenDay)+"天,到期后可提现")]),a("v-uni-button",{staticClass:"bnt bg-color",attrs:{formType:"submit"}},[t._v("提现")])],1)],1),a("v-uni-view",{staticClass:"list",attrs:{hidden:2!=t.currentTab}},[a("v-uni-form",{attrs:{"report-submit":"true"},on:{submit:function(i){arguments[0]=i=t.$handleEvent(i),t.subCash.apply(void 0,arguments)}}},[a("v-uni-view",{staticClass:"item acea-row row-between-wrapper"},[a("v-uni-view",{staticClass:"name"},[t._v("账号")]),a("v-uni-view",{staticClass:"input"},[a("v-uni-input",{attrs:{placeholder:"请填写您的支付宝账号","placeholder-class":"placeholder",name:"name"}})],1)],1),a("v-uni-view",{staticClass:"item acea-row row-between-wrapper"},[a("v-uni-view",{staticClass:"name"},[t._v("提现")]),a("v-uni-view",{staticClass:"input"},[a("v-uni-input",{attrs:{placeholder:"最低提现金额"+t.minPrice,"placeholder-class":"placeholder",name:"money",type:"digit"}})],1)],1),a("v-uni-view",{staticClass:"item acea-row row-top row-between"},[a("v-uni-view",{staticClass:"name"},[t._v("收款码")]),a("v-uni-view",{staticClass:"input acea-row"},[t.qrcodeUrlZ?a("v-uni-view",{staticClass:"picEwm"},[a("v-uni-image",{attrs:{src:t.qrcodeUrlZ}}),a("v-uni-text",{staticClass:"iconfont icon-guanbi1 font-color",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.DelPicZ.apply(void 0,arguments)}}})],1):a("v-uni-view",{staticClass:"pictrue acea-row row-center-wrapper row-column",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.uploadpic("Z")}}},[a("v-uni-text",{staticClass:"iconfont icon-icon25201"}),a("v-uni-view",[t._v("上传图片")])],1)],1)],1),a("v-uni-view",{staticClass:"tip"},[t._v("当前可提现金额:"),a("v-uni-text",{staticClass:"price"},[t._v("¥"+t._s(t.commission.commissionCount)+",")]),t._v("冻结佣金:¥"+t._s(t.commission.brokenCommission))],1),a("v-uni-view",{staticClass:"tip"},[t._v("说明: 每笔佣金的冻结期为"+t._s(t.commission.brokenDay)+"天,到期后可提现")]),a("v-uni-button",{staticClass:"bnt bg-color",attrs:{formType:"submit"}},[t._v("提现")])],1)],1)],1)],1)],1)},n=[]},d0f9:function(t,i,a){var e=a("570b");e.__esModule&&(e=e.default),"string"===typeof e&&(e=[[t.i,e,""]]),e.locals&&(t.exports=e.locals);var n=a("4f06").default;n("3879d68e",e,!0,{sourceMap:!1,shadowMode:!1})},e458:function(t,i,a){"use strict";var e=a("d0f9"),n=a.n(e);n.a}}]); |