徐总多门店
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

1 lines
5.7 KiB

require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/users/user_cash/index"],{"2e14":function(t,e,i){},"3a90":function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return r})),i.d(e,"a",(function(){}));var n=function(){var t=this.$createElement,e=(this._self._c,this.navList.length),i=this.navList.length,n=this.navList.length,r=this.navList.length;this.$mp.data=Object.assign({},{$root:{g0:e,g1:i,g2:n,g3:r}})},r=[]},4675:function(t,e,i){"use strict";i.r(e);var n=i("7ad1"),r=i.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(a);e["default"]=r.a},"612c":function(t,e,i){"use strict";i.r(e);var n=i("3a90"),r=i("4675");for(var a in r)["default"].indexOf(a)<0&&function(t){i.d(e,t,(function(){return r[t]}))}(a);i("e9d7");var s=i("828b"),u=Object(s["a"])(r["default"],n["b"],n["c"],!1,null,null,null,!1,n["a"],void 0);e["default"]=u.exports},"7a0f":function(t,e,i){"use strict";(function(t,e){var n=i("47a9");i("7561");n(i("3240"));var r=n(i("612c"));t.__webpack_require_UNI_MP_PLUGIN__=i,e(r.default)}).call(this,i("3223")["default"],i("df3c")["createPage"])},"7ad1":function(t,e,i){"use strict";(function(t){var n=i("47a9");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(i("7ca3")),a=i("77d7"),s=i("7ba4"),u=i("8f59"),c=n(i("cef6"));function o(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function l(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?o(Object(i),!0).forEach((function(e){(0,r.default)(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):o(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var h={components:{},mixins:[c.default],data:function(){return{getHeight:this.$util.getWXStatusHeight(),navList:[],currentTab:"",currentIndex:0,index:0,array:[],minPrice:0,userInfo:[],isClone:!1,isAuto:!1,isShowAuth:!1,qrcodeUrlW:"",qrcodeUrlZ:"",prevent:!0,moneyMaxLeng:8,withdraw_fee:"0",true_money:0,extract_wechat_type:0,cashVal:""}},computed:l(l({},(0,u.mapGetters)(["isLogin"])),{},{disabled:function(){return!0}}),onLoad:function(){},onShow:function(){var e=this;t.removeStorageSync("form_type_cart"),this.isLogin?(this.navList=[],this.currentIndex=0,this.prevent=!0,this.cashVal=0,this.$nextTick((function(){e.cashVal=""})),this.getUserInfo(),this.getUserExtractBank()):(0,s.toLogin)()},methods:{goarrow:function(){t.navigateBack()},allCash:function(){var t=this;this.cashVal="",this.$nextTick((function(){t.cashVal=t.userInfo.commissionCount,t.inputNum()}))},inputNum:function(t){var e=t?t.detail.value:this.cashVal,i=e.indexOf(".");this.moneyMaxLeng=i>-1?i+3:8,this.true_money=Math.floor(100*this.$util.$h.Mul(e,this.$util.$h.Div(this.$util.$h.Sub(100,this.withdraw_fee),100)))/100||0},uploadpic:function(t){var e=this;e.$util.uploadImageOne("upload/image",(function(i){"W"===t?e.qrcodeUrlW=i.data.url:e.qrcodeUrlZ=i.data.url}))},DelPicW:function(){this.qrcodeUrlW=""},DelPicZ:function(){this.qrcodeUrlZ=""},onLoadFun:function(){this.getUserInfo(),this.getUserExtractBank(),this.isShowAuth=!1},authColse:function(t){this.isShowAuth=t},getUserExtractBank:function(){var t=this;(0,a.extractBank)().then((function(e){var i=e.data.extractBank;i.unshift("请选择银行"),t.$set(t,"array",i),t.minPrice=e.data.minPrice,t.withdraw_fee=e.data.withdraw_fee,t.extract_wechat_type=e.data.extract_wechat_type}))},getUserInfo:function(){var t=this,e=this;(0,a.getUserInfo)().then((function(i){e.userInfo=i.data,i.data.user_extract_bank_status&&t.navList.push({name:"银行卡",id:0}),i.data.user_extract_balance_status&&t.navList.push({name:"余额",id:1}),i.data.user_extract_wechat_status&&t.navList.push({name:"微信",id:2}),i.data.user_extract_alipay_status&&t.navList.push({name:"支付宝",id:3}),t.currentTab=t.navList[0].id}))},swichNav:function(t,e){this.currentTab=t,this.currentIndex=e},bindPickerChange:function(t){this.index=t.detail.value},subCash:function(t){var e=this,i=this,n=t.detail.value;if(0==i.currentTab){if(0==n.name.length)return this.$util.Tips({title:"请填写持卡人姓名"});if(0==n.cardnum.length)return this.$util.Tips({title:"请填写卡号"});if(0==i.index)return this.$util.Tips({title:"请选择银行"});n.extract_type="bank",n.bankname=i.array[i.index]}else if(1==i.currentTab)n.extract_type="balance";else if(2==i.currentTab){if(n.extract_type="weixin",0==i.extract_wechat_type){if(0==n.name.length)return this.$util.Tips({title:"请填写微信号"});if(""==i.qrcodeUrlW)return this.$util.Tips({title:"请上传图片"});n.weixin=n.name,n.qrcode_url=i.qrcodeUrlW}}else if(3==i.currentTab){if(n.extract_type="alipay",0==n.name.length)return this.$util.Tips({title:"请填写账号"});if(""==i.qrcodeUrlZ)return this.$util.Tips({title:"请上传图片"});n.alipay_code=n.name,n.qrcode_url=i.qrcodeUrlZ}return 0==n.money.length?this.$util.Tips({title:"请填写提现金额"}):Number(n.money)<Number(i.minPrice)?this.$util.Tips({title:"提现金额不能低于:¥"+i.minPrice}):void(this.prevent&&(this.prevent=!1,(0,a.extractCash)(n).then((function(t){return 1==i.currentTab?e.$util.Tips({title:t.msg,icon:"success"},{url:"/pages/users/user_money/index",tab:2}):e.$util.Tips({title:t.msg,icon:"success"},{url:"/pages/users/user_cash/status",tab:2})})).catch((function(t){return setTimeout((function(t){e.prevent=!0}),1500),e.$util.Tips({title:t})}))))}}};e.default=h}).call(this,i("df3c")["default"])},e9d7:function(t,e,i){"use strict";var n=i("2e14"),r=i.n(n);r.a}},[["7a0f","common/runtime","common/vendor"]]]);