| 1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["bundle-pages-user_withdraw-user_withdraw"],{"0337":function(t,e,a){"use strict";a("6a54");var i=a("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i(a("2634")),r=i(a("9b1b")),l=i(a("2fdc"));a("bf0f"),a("c9b5"),a("ab80"),a("aa9c");var o=a("e585"),d=(a("49f8"),a("49f8")),c={data:function(){return{list:[],current:0,withdrawData:{able_withdraw:2,min_withdraw:"",max_withdraw:"",percentage:"",type:[]},withdraw:{type:[],money:"",account:"",real_name:"",apply_remark:"",money_qr_code:"",bank:"",subbank:""}}},methods:{change:function(t){this.current=t},getWithdrawData:function(){var t=this;(0,o.apiWithdrawGetConfig)().then((function(e){t.withdrawData=e}))},handleSubscribeMP_WEIXIN:function(){return new Promise((function(t,e){(0,d.apiSubscribe)({scene_id:[111]}).then((function(a){a.length||e("暂无可订阅信息"),uni.requestSubscribeMessage({tmplIds:a,success:function(e){t(e)},fail:function(t){e("订阅失败")}})})).catch((function(){return e("订阅获取失败")}))}))},withdrawFun:function(){var t=this;return(0,l.default)((0,n.default)().mark((function e(){var a;return(0,n.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(""!=t.withdraw.money){e.next=2;break}return e.abrupt("return",t.$toast({title:"请输入提现金额"}));case 2:a={type:t.withdrawData.type[t.current].value,money:t.withdraw.money,account:t.withdraw.account,real_name:t.withdraw.real_name,apply_remark:t.withdraw.apply_remark,money_qr_code:t.withdraw.money_qr_code.toString(),bank:t.withdraw.bank,subbank:t.withdraw.subbank},(0,o.apiWithdrawApply)((0,r.default)({},a)).then((function(e){t.withdraw.money="",t.$Router.push({path:"/bundle/pages/withdraw_success/withdraw_success",query:{id:e.id}})}));case 4:case"end":return e.stop()}}),e)})))()},goPage:function(t){uni.navigateTo({url:t})}},onShow:function(){this.getWithdrawData()}};e.default=c},"119b":function(t,e,a){"use strict";a.r(e);var i=a("0337"),n=a.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(r);e["default"]=n.a},"30d7":function(t,e,a){"use strict";a.r(e);var i=a("3aa8"),n=a("119b");for(var r in n)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(r);a("cebc");var l=a("828b"),o=Object(l["a"])(n["default"],i["b"],i["c"],!1,null,"137240fe",null,!1,i["a"],void 0);e["default"]=o.exports},3896:function(t,e,a){"use strict";var i=a("d9b7"),n=a.n(i);n.a},"3aa8":function(t,e,a){"use strict";a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return r})),a.d(e,"a",(function(){return i}));var i={uTabs:a("6470").default,uField:a("d74b").default,uploader:a("2745").default},n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{class:t.themeName},[a("v-uni-view",{staticClass:"withdraw"},[a("v-uni-view",{staticClass:"withdraw-header m-b-24"},[void 0!=t.withdrawData.type?[a("u-tabs",{attrs:{list:t.withdrawData.type,"active-color":t.themeColor,"is-scroll":!0,current:t.current},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.change.apply(void 0,arguments)}}})]:t._e()],2),void 0!=t.withdrawData.type[t.current]?[4==t.withdrawData.type[t.current].value?[a("v-uni-view",{staticClass:"withdraw-other m-b-24"},[a("u-field",{attrs:{"label-width":"160",label:"微信账号",placeholder:"请输入微信账号"},model:{value:t.withdraw.account,callback:function(e){t.$set(t.withdraw,"account",e)},expression:"withdraw.account"}}),a("u-field",{attrs:{"label-width":"160",label:"真实姓名",placeholder:"请输入真实姓名"},model:{value:t.withdraw.real_name,callback:function(e){t.$set(t.withdraw,"real_name",e)},expression:"withdraw.real_name"}}),a("u-field",{attrs:{"label-width":"160",label:"备注",placeholder:"(选填)"},model:{value:t.withdraw.apply_remark,callback:function(e){t.$set(t.withdraw,"apply_remark",e)},expression:"withdraw.apply_remark"}}),a("v-uni-view",{staticClass:"m-t-20"},[a("uploader",{attrs:{tips:"微信收款码"},model:{value:t.withdraw.money_qr_code,callback:function(e){t.$set(t.withdraw,"money_qr_code",e)},expression:"withdraw.money_qr_code"}})],1)],1)]:t._e()]:t._e(),void 0!=t.withdrawData.type[t.current]?[5==t.withdrawData.type[t.current].value?[a("v-uni-view",{staticClass:"withdraw-other m-b-24"},[a("u-field",{attrs:{"label-width":"160",label:"支付宝账号",placeholder:"请输入支付宝账号"},model:{value:t.withdraw.account,callback:function(e){t.$set(t.withdraw,"account",e)},expression:"withdraw.account"}}),a("u-field",{attrs:{"label-width":"160",label:"真实姓名",placeholder:"请输入真实姓名"},model:{value:t.withdraw.real_name,callback:function(e){t.$set(t.withdraw,"real_name",e)},expression:"withdraw.real_name"}}),a("u-field",{attrs:{"label-width":"160",label:"备注",placeholder:"(选填)"},model:{value:t.withdraw.apply_remark,callback:function(e){t.$set(t.withdraw,"apply_remark",e)},expression:"withdraw.apply_remark"}}),a("v-uni-view",{staticClass:"m-t-20"},[a("uploader",{attrs:{tips:"支付宝收款码"},model:{value:t.withdraw.money_qr_code,callback:function(e){t.$set(t.withdraw,"money_qr_code",e)},expression:"withdraw.money_qr_code"}})],1)],1)]:t._e()]:t._e(),void 0!=t.withdrawData.type[t.current]?[3==t.withdrawData.type[t.current].value?[a("v-uni-view",{staticClass:"withdraw-other m-b-24"},[a("u-field",{attrs:{"label-width":"160",label:"银行卡账号",placeholder:"请输入银行卡账号"},model:{value:t.withdraw.account,callback:function(e){t.$set(t.withdraw,"account",e)},expression:"withdraw.account"}}),a("u-field",{attrs:{"label-width":"160",label:"持卡人姓名",placeholder:"请输入持卡人姓名"},model:{value:t.withdraw.real_name,callback:function(e){t.$set(t.withdraw,"real_name",e)},expression:"withdraw.real_name"}}),a("u-field",{attrs:{"label-width":"160",label:"提现银行",placeholder:"请输入银行名称"},model:{value:t.withdraw.bank,callback:function(e){t.$set(t.withdraw,"bank",e)},expression:"withdraw.bank"}}),a("u-field",{attrs:{"label-width":"160",label:"银行支行",placeholder:"如: 金湾银行"},model:{value:t.withdraw.subbank,callback:function(e){t.$set(t.withdraw,"subbank",e)},expression:"withdraw.subbank"}}),a("u-field",{attrs:{"label-width":"160",label:"备注",placeholder:"(选填)"},model:{value:t.withdraw.apply_remark,callback:function(e){t.$set(t.withdraw,"apply_remark",e)},expression:"withdraw.apply_remark"}})],1)]:t._e()]:t._e(),a("v-uni-view",{staticClass:"withdraw-content"},[a("v-uni-view",{staticClass:"input flex row-between"},[a("v-uni-view",{staticClass:"flex flex-1"},[a("v-uni-text",[t._v("¥")]),a("v-uni-input",{attrs:{type:"digit",placeholder:"0.00"},model:{value:t.withdraw.money,callback:function(e){t.$set(t.withdraw,"money",e)},expression:"withdraw.money"}})],1),a("v-uni-view",{staticClass:"xs"},[a("v-uni-text",{staticClass:"all-withdraw flex row-right",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.withdraw.money=t.withdrawData.able_withdraw}}},[t._v("全部提现")]),a("v-uni-view",{staticClass:"muted m-t-10"},[t._v("可提现余额¥"+t._s(t.withdrawData.able_withdraw))])],1)],1),a("v-uni-view",{staticClass:"m-t-30 xs muted"},[t._v("提示: 提现需扣除手续费"+t._s(t.withdrawData.percentage)+"%")])],1),a("v-uni-view",{staticClass:"withdraw-btn flex row-center br60 lg white",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.withdrawFun("")}}},[t._v("确认提现")]),a("v-uni-view",{staticClass:"m-t-30 muted sm flex row-center",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.goPage("/bundle/pages/withdraw_record/withdraw_record")}}},[t._v("提现记录")])],2)],1)},r=[]},"625f":function(t,e,a){var i=a("c86c");e=i(!1),e.push([t.i,'@charset "UTF-8";\n/* 颜色变量 */\n/** S Font\'s size **/\n/** E Font\'s size **/[data-v-4a8af23c]:export{red_theme:#ff2c3c;orange_theme:#f7971e;pink_theme:#fa444d;gold_theme:#e0a356;blue_theme:#2f80ed;green_theme:#2ec840}.u-field[data-v-4a8af23c]{font-size:%?28?%;padding:%?20?%;text-align:left;position:relative;color:#303133}.u-field-inner[data-v-4a8af23c]{display:flex;flex-direction:row;align-items:center}.u-textarea-inner[data-v-4a8af23c]{align-items:flex-start}.u-textarea-class[data-v-4a8af23c]{min-height:%?96?%;width:auto;font-size:%?28?%}.fild-body[data-v-4a8af23c]{display:flex;flex-direction:row;flex:1;align-items:center}.u-arror-right[data-v-4a8af23c]{margin-left:%?8?%}.u-label-text[data-v-4a8af23c]{display:inline-flex}.u-label-left-gap[data-v-4a8af23c]{margin-left:%?6?%}.u-label-postion-top[data-v-4a8af23c]{flex-direction:column;align-items:flex-start}.u-label[data-v-4a8af23c]{width:%?130?%;flex:1 1 %?130?%;text-align:left;position:relative;display:flex;flex-direction:row;align-items:center}.u-required[data-v-4a8af23c]::before{content:"*";position:absolute;left:%?-16?%;font-size:14px;color:#fa3534;height:9px;line-height:1}.u-field__input-wrap[data-v-4a8af23c]{position:relative;overflow:hidden;font-size:%?28?%;height:%?48?%;flex:1;width:auto}.u-clear-icon[data-v-4a8af23c]{display:flex;flex-direction:row;align-items:center}.u-error-message[data-v-4a8af23c]{color:#fa3534;font-size:%?26?%;text-align:left}.placeholder-style[data-v-4a8af23c]{color:#969799}.u-input-class[data-v-4a8af23c]{font-size:%?28?%}.u-button-wrap[data-v-4a8af23c]{margin-left:%?8?%}',""]),t.exports=e},"7e27":function(t,e,a){"use strict";a("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,a("64aa"),a("0c26");var i={name:"u-field",props:{icon:String,rightIcon:String,required:Boolean,label:String,password:Boolean,clearable:{type:Boolean,default:!0},labelWidth:{type:[Number,String],default:130},labelAlign:{type:String,default:"left"},inputAlign:{type:String,default:"left"},iconColor:{type:String,default:"#606266"},autoHeight:{type:Boolean,default:!0},errorMessage:{type:[String,Boolean],default:""},placeholder:String,placeholderStyle:String,focus:Boolean,fixed:Boolean,value:[Number,String],type:{type:String,default:"text"},disabled:{type:Boolean,default:!1},maxlength:{type:[Number,String],default:140},confirmType:{type:String,default:"done"},labelPosition:{type:String,default:"left"},fieldStyle:{type:Object,default:function(){return{}}},clearSize:{type:[Number,String],default:30},iconStyle:{type:Object,default:function(){return{}}},borderTop:{type:Boolean,default:!1},borderBottom:{type:Boolean,default:!0},trim:{type:Boolean,default:!0}},data:function(){return{focused:!1,itemIndex:0}},computed:{inputWrapStyle:function(){var t={};return t.textAlign=this.inputAlign,"left"==this.labelPosition?t.margin="0 8rpx":t.marginRight="8rpx",t},rightIconStyle:function(){var t={};return"top"==this.arrowDirection&&(t.transform="roate(-90deg)"),"bottom"==this.arrowDirection?t.transform="roate(90deg)":t.transform="roate(0deg)",t},labelStyle:function(){var t={};return"left"==this.labelAlign&&(t.justifyContent="flext-start"),"center"==this.labelAlign&&(t.justifyContent="center"),"right"==this.labelAlign&&(t.justifyContent="flext-end"),t},justifyContent:function(){return"left"==this.labelAlign?"flex-start":"center"==this.labelAlign?"center":"right"==this.labelAlign?"flex-end":void 0},inputMaxlength:function(){return Number(this.maxlength)},fieldInnerStyle:function(){var t={};return"left"==this.labelPosition?t.flexDirection="row":t.flexDirection="column",t}},methods:{onInput:function(t){var e=t.detail.value;this.trim&&(e=this.$u.trim(e)),this.$emit("input",e)},onFocus:function(t){this.focused=!0,this.$emit("focus",t)},onBlur:function(t){var e=this;setTimeout((function(){e.focused=!1}),100),this.$emit("blur",t)},onConfirm:function(t){this.$emit("confirm",t.detail.value)},onClear:function(t){this.$emit("input","")},rightIconClick:function(){this.$emit("right-icon-click"),this.$emit("click")},fieldClick:function(){this.$emit("click")}}};e.default=i},ae6f:function(t,e,a){"use strict";a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return r})),a.d(e,"a",(function(){return i}));var i={uIcon:a("1340").default},n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"u-field",class:{"u-border-top":t.borderTop,"u-border-bottom":t.borderBottom}},[a("v-uni-view",{staticClass:"u-field-inner",class:["textarea"==t.type?"u-textarea-inner":"","u-label-postion-"+t.labelPosition]},[a("v-uni-view",{staticClass:"u-label",class:[t.required?"u-required":""],style:{justifyContent:t.justifyContent,flex:"left"==t.labelPosition?"0 0 "+t.labelWidth+"rpx":"1"}},[t.icon?a("v-uni-view",{staticClass:"u-icon-wrap"},[a("u-icon",{staticClass:"u-icon",attrs:{size:"32","custom-style":t.iconStyle,name:t.icon,color:t.iconColor}})],1):t._e(),t._t("icon"),a("v-uni-text",{staticClass:"u-label-text",class:[this.$slots.icon||t.icon?"u-label-left-gap":""]},[t._v(t._s(t.label))])],2),a("v-uni-view",{staticClass:"fild-body"},[a("v-uni-view",{staticClass:"u-flex-1 u-flex",style:[t.inputWrapStyle]},["textarea"==t.type?a("v-uni-textarea",{staticClass:"u-flex-1 u-textarea-class",style:[t.fieldStyle],attrs:{value:t.value,placeholder:t.placeholder,placeholderStyle:t.placeholderStyle,disabled:t.disabled,maxlength:t.inputMaxlength,focus:t.focus,autoHeight:t.autoHeight,fixed:t.fixed},on:{input:function(e){arguments[0]=e=t.$handleEvent(e),t.onInput.apply(void 0,arguments)},blur:function(e){arguments[0]=e=t.$handleEvent(e),t.onBlur.apply(void 0,arguments)},focus:function(e){arguments[0]=e=t.$handleEvent(e),t.onFocus.apply(void 0,arguments)},confirm:function(e){arguments[0]=e=t.$handleEvent(e),t.onConfirm.apply(void 0,arguments)},click:function(e){arguments[0]=e=t.$handleEvent(e),t.fieldClick.apply(void 0,arguments)}}}):a("v-uni-input",{staticClass:"u-flex-1 u-field__input-wrap",style:[t.fieldStyle],attrs:{type:t.type,value:t.value,password:t.password||"password"===this.type,placeholder:t.placeholder,placeholderStyle:t.placeholderStyle,disabled:t.disabled,maxlength:t.inputMaxlength,focus:t.focus,confirmType:t.confirmType},on:{focus:function(e){arguments[0]=e=t.$handleEvent(e),t.onFocus.apply(void 0,arguments)},blur:function(e){arguments[0]=e=t.$handleEvent(e),t.onBlur.apply(void 0,arguments)},input:function(e){arguments[0]=e=t.$handleEvent(e),t.onInput.apply(void 0,arguments)},confirm:function(e){arguments[0]=e=t.$handleEvent(e),t.onConfirm.apply(void 0,arguments)},click:function(e){arguments[0]=e=t.$handleEvent(e),t.fieldClick.apply(void 0,arguments)}}})],1),t.clearable&&""!=t.value&&t.focused?a("u-icon",{staticClass:"u-clear-icon",attrs:{size:t.clearSize,name:"close-circle-fill",color:"#c0c4cc"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onClear.apply(void 0,arguments)}}}):t._e(),a("v-uni-view",{staticClass:"u-button-wrap"},[t._t("right")],2),t.rightIcon?a("u-icon",{staticClass:"u-arror-right",style:[t.rightIconStyle],attrs:{name:t.rightIcon,color:"#c0c4cc",size:"26"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.rightIconClick.apply(void 0,arguments)}}}):t._e()],1)],1),!1!==t.errorMessage&&""!=t.errorMessage?a("v-uni-view",{staticClass:"u-error-message",style:{paddingLeft:t.labelWidth+"rpx"}},[t._v(t._s(t.errorMessage))]):t._e()],1)},r=[]},c86c0:function(t,e,a){var i=a("f800");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("967d").default;n("8e5158ae",i,!0,{sourceMap:!1,shadowMode:!1})},cebc:function(t,e,a){"use strict";var i=a("c86c0"),n=a.n(i);n.a},d74b:function(t,e,a){"use strict";a.r(e);var i=a("ae6f"),n=a("f513");for(var r in n)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(r);a("3896");var l=a("828b"),o=Object(l["a"])(n["default"],i["b"],i["c"],!1,null,"4a8af23c",null,!1,i["a"],void 0);e["default"]=o.exports},d9b7:function(t,e,a){var i=a("625f");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("967d").default;n("30a3d4b0",i,!0,{sourceMap:!1,shadowMode:!1})},f513:function(t,e,a){"use strict";a.r(e);var i=a("7e27"),n=a.n(i);for(var r in i)["default"].indexOf(r)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(r);e["default"]=n.a},f800:function(t,e,a){var i=a("c86c");e=i(!1),e.push([t.i,"@charset \"UTF-8\";\n/* 颜色变量 */\n/** S Font's size **/\n/** E Font's size **/[data-v-137240fe]:export{red_theme:#ff2c3c;orange_theme:#f7971e;pink_theme:#fa444d;gold_theme:#e0a356;blue_theme:#2f80ed;green_theme:#2ec840}.withdraw[data-v-137240fe]{padding:%?30?%}.withdraw .withdraw-header[data-v-137240fe]{padding:%?10?%;border-radius:%?20?%;background-color:#fff}.withdraw .withdraw-other[data-v-137240fe]{padding:%?24?%;border-radius:%?20?%;background-color:#fff}.withdraw .withdraw-content[data-v-137240fe]{width:100%;height:%?350?%;padding:%?66?%;border-radius:%?20?%;background-color:#fff}.withdraw .withdraw-content .input[data-v-137240fe]{padding:%?24?% 0;font-size:%?46?%;border-bottom:%?1?% solid #e5e5e5}.withdraw .withdraw-content .input uni-input[data-v-137240fe]{padding-left:%?30?%;font-size:%?66?%;height:%?80?%}.red_theme .withdraw .withdraw-content .tips[data-v-137240fe]{color:#ff2c3c}.orange_theme .withdraw .withdraw-content .tips[data-v-137240fe]{color:#f7971e}.pink_theme .withdraw .withdraw-content .tips[data-v-137240fe]{color:#fa444d}.gold_theme .withdraw .withdraw-content .tips[data-v-137240fe]{color:#e0a356}.blue_theme .withdraw .withdraw-content .tips[data-v-137240fe]{color:#2f80ed}.green_theme .withdraw .withdraw-content .tips[data-v-137240fe]{color:#2ec840}.red_theme .withdraw .withdraw-content .all-withdraw[data-v-137240fe]{color:#ff2c3c}.orange_theme .withdraw .withdraw-content .all-withdraw[data-v-137240fe]{color:#f7971e}.pink_theme .withdraw .withdraw-content .all-withdraw[data-v-137240fe]{color:#fa444d}.gold_theme .withdraw .withdraw-content .all-withdraw[data-v-137240fe]{color:#e0a356}.blue_theme .withdraw .withdraw-content .all-withdraw[data-v-137240fe]{color:#2f80ed}.green_theme .withdraw .withdraw-content .all-withdraw[data-v-137240fe]{color:#2ec840}.withdraw .withdraw-btn[data-v-137240fe]{width:100%;height:%?84?%;margin-top:%?60?%}.red_theme .withdraw .withdraw-btn[data-v-137240fe]{background-color:#ff2c3c}.orange_theme .withdraw .withdraw-btn[data-v-137240fe]{background-color:#f7971e}.pink_theme .withdraw .withdraw-btn[data-v-137240fe]{background-color:#fa444d}.gold_theme .withdraw .withdraw-btn[data-v-137240fe]{background-color:#e0a356}.blue_theme .withdraw .withdraw-btn[data-v-137240fe]{background-color:#2f80ed}.green_theme .withdraw .withdraw-btn[data-v-137240fe]{background-color:#2ec840}",""]),t.exports=e}}]);
|