1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-money-recharge"],{"0e4f":function(e,t,a){"use strict";var n;a.d(t,"b",(function(){return i})),a.d(t,"c",(function(){return o})),a.d(t,"a",(function(){return n}));var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("v-uni-view",{staticClass:"content"},[a("v-uni-view",{staticClass:"top_box"},[a("v-uni-text",{staticClass:"yue-tit"},[e._v("当前余额:")]),a("v-uni-text",{staticClass:"yue-num"},[e._v("¥"+e._s(e._f("parseFloatNum")(e.now_money)))])],1),a("v-uni-view",{staticClass:"line_box"}),a("v-uni-view",{staticClass:"cz_box"},[a("v-uni-view",{staticClass:"cz_wrap"},[a("v-uni-text",{staticClass:"cz_tit"},[e._v("¥")]),a("v-uni-input",{staticClass:"cz_input",attrs:{type:"number",placeholder:"请输入充值金额","placeholder-class":"placeholder"},on:{focus:function(t){arguments[0]=t=e.$handleEvent(t),e.changeNum()}},model:{value:e.money,callback:function(t){e.money=t},expression:"money"}})],1),a("v-uni-view",{staticClass:"zc_list_box"},e._l(e.list,(function(t,n){return a("v-uni-view",{key:n,staticClass:"zc_list_price",class:{seletPrice:e.seletNum==t},on:{click:function(a){arguments[0]=a=e.$handleEvent(a),e.seletChange(t,n)}}},[e._v(e._s(e._f("parseFloatNum")(t))+"元")])})),1)],1),a("v-uni-view",{staticClass:"line_box"}),a("v-uni-view",{staticClass:"box"},[a("v-uni-view",{staticClass:"type-item b-b",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.changePayType(1)}}},[a("v-uni-text",{staticClass:"icon iconfont iconweixin"}),a("v-uni-view",{staticClass:"con"},[a("v-uni-text",{staticClass:"tit"},[e._v("微信支付")]),a("v-uni-text",[e._v("推荐使用微信支付")])],1),a("v-uni-label",{staticClass:"radio"},[a("v-uni-radio",{attrs:{value:"",color:"#5dbc7c",checked:"weixin"==e.type}})],1)],1)],1),a("v-uni-button",{staticClass:"add-btn up",class:{"active-bg":e.payLoding},on:{click:function(t){arguments[0]=t=e.$handleEvent(t),!e.payLoding&&e.confirm()}}},[e._v("立即充值")])],1)},o=[]},"1a9a":function(e,t,a){var n=a("24fb");t=n(!1),t.push([e.i,'@charset "UTF-8";\n/* 页面左右间距 */\n/* 文字尺寸 */\n/*文字颜色*/\n/* 边框颜色 */\n/*颜色*/\n/* 图片加载中颜色 */\n/* 行为相关颜色 */\n/* 功能栏字体大小 */\n/*功能栏左侧小图标*/uni-page-body[data-v-5eae9fc0]{height:100%;background:#fff}.top_box[data-v-5eae9fc0]{padding:%?20?% %?26?% %?20?% %?47?%;display:flex;align-items:center;justify-content:space-between}.top_box .yue-tit[data-v-5eae9fc0]{font-size:%?28?%;font-family:PingFang SC;font-weight:500;color:#333}.top_box .yue-num[data-v-5eae9fc0]{font-size:%?30?%;font-family:PingFang SC;font-weight:700;color:#ff6f0f}.line_box[data-v-5eae9fc0]{width:100%;height:%?20?%;background:#f8f8f8}.cz_box[data-v-5eae9fc0]{padding:%?40?% %?20?% %?20?%}.cz_box .cz_wrap[data-v-5eae9fc0]{display:flex;align-items:center;justify-content:space-between;padding-bottom:%?20?%;border-bottom:1px solid #e6e6e6}.cz_box .cz_wrap .cz_tit[data-v-5eae9fc0]{font-size:%?32?%;font-family:PingFang SC;font-weight:500}.cz_box .cz_wrap .cz_input[data-v-5eae9fc0]{text-align:right;font-size:%?32?%;font-family:PingFang SC;font-weight:500}.cz_box .zc_list_box[data-v-5eae9fc0]{display:flex;flex-wrap:wrap}.cz_box .zc_list_box .zc_list_price[data-v-5eae9fc0]{width:%?202?%;height:%?60?%;background:#f0f0f0;border-radius:%?8?%;margin-top:%?36?%;margin-right:%?50?%;display:flex;align-items:center;justify-content:center}.cz_box .zc_list_box .zc_list_price[data-v-5eae9fc0]:nth-child(3n){margin-right:0}.cz_box .zc_list_box .seletPrice[data-v-5eae9fc0]{background:#5dbc7c;color:#fff}.recha-box[data-v-5eae9fc0]{padding:%?50?% %?30?% 0;display:flex;flex-wrap:wrap}.recha-box .recha-frame[data-v-5eae9fc0]{width:%?210?%;height:%?181?%;border:1px solid #dbdede;border-radius:%?20?%;display:flex;align-items:center;flex-direction:column;justify-content:center;margin-right:%?30?%;margin-bottom:%?30?%}.recha-box .recha-frame[data-v-5eae9fc0]:nth-child(3n){margin-right:0}.recha-box .recha-frame .recha-top[data-v-5eae9fc0]{display:flex;align-items:center}.recha-box .recha-frame .recha-top .recha-img[data-v-5eae9fc0]{width:%?64?%;height:%?62?%}.recha-box .recha-frame .recha-top .recha-tit[data-v-5eae9fc0]{margin-left:%?10?%;font-size:%?36?%;font-family:PingFang SC;font-weight:700;color:#333}.recha-box .recha-frame .recha-song[data-v-5eae9fc0]{margin-top:%?20?%;font-size:%?28?%;font-family:PingFang SC;font-weight:700;color:#f90}.recha-box .select-frame[data-v-5eae9fc0]{border:1px solid #ef041f}.rechar-box[data-v-5eae9fc0]{padding:%?30?% %?20?% 0}.rechar-box .rechar-title[data-v-5eae9fc0]{font-size:%?32?%;font-family:PingFang SC;font-weight:700;color:#333;margin-bottom:%?10?%}.rechar-box .rechar-text[data-v-5eae9fc0]{font-size:%?28?%;font-family:PingFang SC;font-weight:700;color:#333}.add-btn[data-v-5eae9fc0]{display:flex;align-items:center;justify-content:center;width:%?560?%;height:%?80?%;margin:0 auto;margin-top:%?120?%;font-size:%?32?%;background:#5dbc7c;box-shadow:0 %?12?% %?45?% %?5?% rgba(36,17,2,.04);border-radius:%?8?%}.add-btn.modified[data-v-5eae9fc0]{color:#5dbc7c}.add-btn.up[data-v-5eae9fc0]{color:#fff}.row-box[data-v-5eae9fc0]{margin-top:%?30?%;padding:%?20?% %?30?%;background:#fff}.row-box .title[data-v-5eae9fc0]{font-size:%?30?%;color:#303133}.row-box .row[data-v-5eae9fc0]{display:flex;align-items:center;position:relative;height:%?80?%}.row-box .row .tit[data-v-5eae9fc0]{flex-shrink:0;width:%?40?%;font-size:%?30?%;color:#303133}.row-box .row .input[data-v-5eae9fc0]{flex:1;font-size:%?30?%;color:#303133}.row-box .row .iconlocation[data-v-5eae9fc0]{font-size:%?36?%;color:#909399}.row-box .row .buttom[data-v-5eae9fc0]{color:#5dbc7c;font-size:%?28?%}.list[data-v-5eae9fc0]{padding-left:%?30?%;margin-top:%?30?%;background-color:#fff}.list .box[data-v-5eae9fc0]{display:flex;align-items:center;width:100%;height:%?120?%;border-bottom:1px solid #ebeef5;padding-right:%?25?%}.list .box .icon[data-v-5eae9fc0]{font-size:%?48?%;padding-right:%?20?%;display:flex}.list .box .yongjing[data-v-5eae9fc0]{width:%?48?%;height:%?48?%}.list .box .iconweixin1[data-v-5eae9fc0]{color:#18bf16}.list .box .iconzhifubao[data-v-5eae9fc0]{color:#08aaec}.list .box .title-box[data-v-5eae9fc0]{flex-grow:1;text-align:left}.list .box .title-box .title[data-v-5eae9fc0]{font-size:%?30?%;color:#606266}.list .box .title-box .node[data-v-5eae9fc0]{font-size:%?24?%;color:#909399}[data-v-5eae9fc0] .uni-radio-input{width:%?45?%;height:%?45?%}.active-bg[data-v-5eae9fc0]{background-color:#999!important}.box[data-v-5eae9fc0]{margin-top:%?20?%;background-color:#fff;padding-left:%?60?%}.type-item[data-v-5eae9fc0]{height:%?120?%;padding:%?20?% 0;display:flex;justify-content:space-between;align-items:center;padding-right:%?60?%;font-size:%?30?%;position:relative}.icon[data-v-5eae9fc0]{width:%?100?%;font-size:%?52?%}.iconyue[data-v-5eae9fc0]{color:#fe8e2e}.iconweixin[data-v-5eae9fc0]{color:#36cb59}.iconzhifubao[data-v-5eae9fc0]{color:#01aaef}.tit[data-v-5eae9fc0]{font-size:%?32?%;color:#303133;margin-bottom:%?4?%}.con[data-v-5eae9fc0]{flex:1;display:flex;flex-direction:column;font-size:%?24?%;color:#909399}body.?%PAGE?%[data-v-5eae9fc0]{background:#fff}',""]),e.exports=t},2044:function(e,t,a){"use strict";var n=a("4ea4");a("acd8"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(a("5530")),o=a("793c"),c=a("eb45"),r=a("26cb"),f={filters:{getMoneyStyle:o.getMoneyStyle,parseFloatNum:function(e){return parseFloat(e)}},data:function(){return{type:"weixin",money:300,payLoding:!1,list:["300","200","150","100","50"],now_money:"",seletNum:"300",zhuyi:[],quota:"",typeText:0}},onLoad:function(e){this.loadData()},computed:(0,i.default)({},(0,r.mapState)(["weichatObj","userInfo"])),methods:{navTo:function(e){uni.navigateTo({url:e})},changePayType:function(e){var t=e,a=this;console.log(t),1==t&&(console.log("wei"),a.type="weixin"),2==t&&(console.log("ali"),a.type="ali")},changeNum:function(){this.seletNum=this.money="",console.log(this.seletNum,this.money)},seletChange:function(e,t){this.seletNum=e,this.seletMoney=e,console.log(this.seletNum),this.money=e},tabRadio:function(e){this.type=e.detail.value,"weixin"==e.detail.value?this.typeText=0:this.typeText=1},rechargeXuan:function(e){this.money=e.price,this.quota=e.quota},loadData:function(){var e=this;(0,c.userBalance)({}).then((function(t){var a=t.data;e.now_money=a.now_money}))},confirm:function(){var e=this;if(e.payLoding=!0,!e.money)return e.$api.msg("请输入金额"),void(e.payLoding=!1);(0,c.rechargeWechat)({price:this.money,from:this.type}).then((function(t){var a=t.data.data;e.weichatObj.chooseWXPay({timestamp:a.timestamp,nonceStr:a.nonceStr,package:a.package,signType:a.signType,paySign:a.paySign,success:function(e){uni.showToast({title:"充值成功",duration:2e3,position:"top",success:function(e){uni.navigateBack()}})}}),e.payLoding=!1})).catch((function(t){e.payLoding=!1,console.log(t)}))}}};t.default=f},"343e":function(e,t,a){var n=a("1a9a");"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var i=a("4f06").default;i("358cc3c2",n,!0,{sourceMap:!1,shadowMode:!1})},"56dc":function(e,t,a){"use strict";var n=a("343e"),i=a.n(n);i.a},"728a":function(e,t,a){"use strict";a.r(t);var n=a("0e4f"),i=a("f2b2");for(var o in i)"default"!==o&&function(e){a.d(t,e,(function(){return i[e]}))}(o);a("56dc");var c,r=a("f0c5"),f=Object(r["a"])(i["default"],n["b"],n["c"],!1,null,"5eae9fc0",null,!1,n["a"],c);t["default"]=f.exports},"793c":function(e,t,a){"use strict";function n(e){var t=/(^[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!==t.test(e)||(console.log(e),!1)}function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;"string"==typeof e&&(e=(+e).toFixed(2)),"number"==typeof e&&(e=e.toFixed(2));var t=e.split(""),a=t.reverse().map((function(e,t,a){return t%3==0&&t/3>1&&t!=a.length?e+",":e}));return a=a.reverse().join(""),a}function o(e){var t=(new Date).getTime(),a=e-t;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),c=Math.floor(a/1e3%60);return{hours:i,minutes:o,seconds:c,day:n}}function c(e){return new Promise((function(e,t){wx.getSetting({success:function(a){a.authSetting["scope.userLocation"]?e():wx.showModal({title:"提示",content:"请求获取位置权限",success:function(a){if(0==a.confirm)return t(),!1;wx.openSetting({success:function(t){t.authSetting["scope.userLocation"]?e():wx.showToast({title:"此功能需获取位置信息,请重新设置",duration:3e3,icon:"none"})}})}})}})}))}function r(e){for(var t=13-(e+"").length,a=1,n=0;n<t;n++)a+="0";a=parseInt(a);var i=new Date(parseInt(e)*a),o=i.getFullYear(),c=i.getMonth()+1;c<10&&(c="0"+c);var r=i.getDate();r<10&&(r="0"+r);var f=i.getHours();f<10&&(f="0"+f);var s=i.getMinutes();s<10&&(s="0"+s);var l=i.getSeconds();return l<10&&(l="0"+l),o+"-"+c+"-"+r+" "+f+":"+s+":"+l}a("d81d"),a("26e9"),a("d3b7"),a("e25e"),a("ac1f"),a("1276"),Object.defineProperty(t,"__esModule",{value:!0}),t.isCardNo=n,t.getMoneyStyle=i,t.timeComputed=o,t.openMap=c,t.getTime=r},eb45:function(e,t,a){"use strict";var n=a("4ea4");Object.defineProperty(t,"__esModule",{value:!0}),t.spreadCommission=o,t.userBalance=c,t.extractCash=r,t.extractBank=f,t.rechargeWechat=s,t.aliInfo=l,t.bankInfo=d,t.setAliInfo=u,t.setBankInfo=g,t.balance=h,t.integral=p;var i=n(a("4c3b"));function o(e,t){return(0,i.default)({url:"/api/spread/commission/"+t,method:"get",data:e})}function c(e){return(0,i.default)({url:"/api/user/balance",method:"get",data:e})}function r(e){return(0,i.default)({url:"/api/extract/cash",method:"post",data:e})}function f(e){return(0,i.default)({url:"/api/extract/bank",method:"get",data:e})}function s(e){return(0,i.default)({url:"/api/recharge/wechat",method:"post",data:e})}function l(e){return(0,i.default)({url:"/api/ali/info",method:"get",data:e})}function d(e){return(0,i.default)({url:"/api/bank/info",method:"get",data:e})}function u(e){return(0,i.default)({url:"/api/ali/edit",method:"post",data:e})}function g(e){return(0,i.default)({url:"/api/bank/edit",method:"post",data:e})}function h(e){return(0,i.default)({url:"/api/user/balance",method:"get",data:e})}function p(e){return(0,i.default)({url:"/api/integral/list",method:"get",data:e})}},f2b2:function(e,t,a){"use strict";a.r(t);var n=a("2044"),i=a.n(n);for(var o in n)"default"!==o&&function(e){a.d(t,e,(function(){return n[e]}))}(o);t["default"]=i.a}}]);
|