1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-money-recharge"],{"0034":function(t,e,a){"use strict";var i=a("556b"),n=a.n(i);n.a},"43e1":function(t,e,a){"use strict";var i=a("4ea4");a("4160"),a("ac1f"),a("5319"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i(a("5530")),o=a("83cb"),r=a("f347"),d=a("2f62"),c=(a("735f"),{filters:{getMoneyStyle:o.getMoneyStyle},data:function(){return{type:"weixin",money:"",payLoding:!1,addTags:[300,200,150,100,50],currentIndex:0,addMoney:0,isSect:!1,new_money:0}},onLoad:function(t){this.userBalance()},computed:(0,n.default)({},(0,d.mapState)(["weichatObj"])),methods:{navTo:function(t){uni.navigateTo({url:t})},tabRadio:function(t){this.type=t},confirm:function(){if(0==this.money)return this.$api.msg("请输入充值金额");if(!this.isSect)return this.$api.msg("请选择支付方式");var t=this;t.payLoding=!0,(0,r.rechargeWechat)({price:this.money,from:this.type}).then((function(e){var a=e.data.data;t.weichatObj.chooseWXPay({timestamp:a.timestamp,nonceStr:a.nonceStr,package:a.package,signType:a.signType,paySign:a.paySign,success:function(t){uni.showToast({title:"充值成功",duration:2e3,position:"top"})}}),t.payLoding=!1})).catch((function(e){t.payLoding=!1,console.log(e)}))},loadData:function(t){var e=this;console.log(t);var a=this.tabCurrentIndex,i=this.navList[a];i.state;"tabChange"===t&&!0===i.loaded||"loading"!==i.loadingType&&(i.loadingType="loading",setTimeout((function(){var t=[];t.forEach((function(t){i.orderList.push(t)})),e.$set(i,"loaded",!0),i.loadingType="more"}),600))},tagClick:function(t){this.currentIndex=t,this.money=this.addTags[t]},clearNoNum:function(){switch(this.money=this.money.replace(/^(\-)*(\d+)\.(\d\d).*$/,"$1$2.$3"),this.money){case"300":this.currentIndex=0;break;case"200":this.currentIndex=1;break;case"150":this.currentIndex=2;break;case"100":this.currentIndex=3;break;case"50":this.currentIndex=4;break}},btnClick:function(){this.isSect=!this.isSect},userBalance:function(){var t=this;(0,r.userBalance)().then((function(e){t.new_money=e.data.now_money,console.log(e)}))}}});e.default=c},"556b":function(t,e,a){var i=a("a3aa");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("4f06").default;n("4134571a",i,!0,{sourceMap:!1,shadowMode:!1})},"735f":function(t,e,a){"use strict";var i=a("dbce");Object.defineProperty(e,"__esModule",{value:!0}),e.edit=o,e.orderData=r,e.getUserInfo=d,e.spreadBanner=c,e.getAddressList=s,e.addressEdit=l,e.addressDel=u,e.setAddressDefault=f,e.getCartList=p,e.getCartNum=b,e.cartDel=g,e.getcollectList=h,e.delcollect=w,e.upload=v,e.getSpreadPeople=m,e.getSpreadCount=x,e.bindAdmin=y,e.orderVerific=k,e.getOrderList=C,e.getAllList=S,e.getPoint=M,e.delPoint=A,e.editPoint=T;var n=i(a("bc58"));function o(t){return(0,n.default)({url:"/api/user/edit",method:"post",data:t})}function r(t){return(0,n.default)({url:"/api/order/data",method:"get",data:t})}function d(t){return(0,n.default)({url:"/api/userinfo",method:"get",data:t})}function c(t){return(0,n.default)({url:"/api/spread/banner",method:"get",data:t})}function s(t){return(0,n.default)({url:"/api/address/list",method:"get",data:t})}function l(t){return(0,n.default)({url:"/api/address/edit",method:"post",data:t})}function u(t){return(0,n.default)({url:"/api/address/del",method:"post",data:t})}function f(t){return(0,n.default)({url:"/api/address/default/set",method:"post",data:t})}function p(t){return(0,n.default)({url:"/api/cart/list",method:"get",data:t})}function b(t){return(0,n.default)({url:"/api/cart/num",method:"post",data:t})}function g(t){return(0,n.default)({url:"/api/cart/del",method:"post",data:t})}function h(t){return(0,n.default)({url:"/api/collect/user",method:"get",data:t})}function w(t){return(0,n.default)({url:"/api/collect/del",method:"post",data:t})}function v(t){return(0,n.upFilse)({url:"/api/upload/image",method:"post",data:t})}function m(t){return(0,n.default)({url:"/api/spread/people",method:"post",data:t})}function x(t,e){return(0,n.default)({url:"/api/spread/count/"+e,method:"get",data:t})}function y(t){return(0,n.default)({url:"/api/bind_admin",method:"post",data:t})}function k(t){return(0,n.default)({url:"/api/order/order_verific",method:"post",data:t})}function C(t){return(0,n.default)({url:"/api/order/order_verific",method:"post",data:t})}function S(t){return(0,n.default)({url:"/api/admin/order/list",method:"get",data:t})}function M(t){return(0,n.default)({url:"/api/admin/point",method:"get",data:t})}function A(t,e){return(0,n.default)({url:"/api/admin/point/"+e,method:"delete",data:t})}function T(t,e){return(0,n.default)({url:"/api/admin/point/"+e,method:"post",data:t})}},"83cb":function(t,e,a){"use strict";function i(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 n(){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=!1,a=(new Date).getTime(),i=t-a;i<0&&(i*=-1,e=!0);var n=Math.floor(i/1e3/60/60/24),o=Math.floor(i/1e3/60/60%24),r=Math.floor(i/1e3/60%60),d=Math.floor(i/1e3%60);return{hours:o,minutes:r,seconds:d,day:n,tpye:e}}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 d(t){for(var e=13-(t+"").length,a=1,i=0;i<e;i++)a+="0";a=parseInt(a);var n=new Date(parseInt(t)*a),o=n.getFullYear(),r=n.getMonth()+1,d=n.getDate(),c=n.getHours(),s=n.getMinutes(),l=n.getSeconds();return o+"-"+r+"-"+d+" "+c+":"+s+":"+l}function c(t,e){var a=uni.getStorageSync("latlon"),i=a.split(","),n=i[0],o=i[1];console.log(t,e,n,o);var r=t*Math.PI/180,d=n*Math.PI/180,c=r-d,s=e*Math.PI/180-o*Math.PI/180,l=2*Math.asin(Math.sqrt(Math.pow(Math.sin(c/2),2)+Math.cos(r)*Math.cos(d)*Math.pow(Math.sin(s/2),2)));return l*=6378.137,l=Math.round(1e4*l)/1e4,1e3*l}a("a15b"),a("d81d"),a("26e9"),a("b680"),a("d3b7"),a("e25e"),a("ac1f"),a("1276"),Object.defineProperty(e,"__esModule",{value:!0}),e.isCardNo=i,e.getMoneyStyle=n,e.timeComputed=o,e.openMap=r,e.getTime=d,e.space=c},a3aa:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";\n/* 页面左右间距 */\n/* 文字尺寸 */\n/*文字颜色*/\n/* 边框颜色 */\n/*颜色*/\n/* 图片加载中颜色 */\n/* 行为相关颜色 */\n/* 功能栏字体大小 */\n/*功能栏左侧小图标*/uni-page-body[data-v-466ca064]{height:100%;background-color:#fff}.add-btn[data-v-466ca064]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;width:%?604?%;height:%?90?%;margin:0 auto;margin-top:%?30?%;font-size:%?32?%;border-radius:%?10?%}.add-btn.modified[data-v-466ca064]{color:#921a23}.add-btn.up[data-v-466ca064]{background-color:#921a23;color:#fff}.row-box[data-v-466ca064]{margin-top:%?30?%;padding:%?20?% %?30?%;background:#fff}.row-box .title[data-v-466ca064]{font-size:%?30?%;color:#303133}.row-box .row[data-v-466ca064]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;position:relative;height:%?80?%}.row-box .row .tit[data-v-466ca064]{-webkit-flex-shrink:0;flex-shrink:0;width:%?40?%;font-size:%?30?%;color:#303133}.row-box .row .input[data-v-466ca064]{-webkit-box-flex:1;-webkit-flex:1;flex:1;font-size:%?30?%;color:#303133}.row-box .row .iconlocation[data-v-466ca064]{font-size:%?36?%;color:#909399}.row-box .row .buttom[data-v-466ca064]{color:#5dbc7c;font-size:%?28?%}.list[data-v-466ca064]{padding-left:%?30?%;margin-top:%?30?%;background-color:#fff}.list .box[data-v-466ca064]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;width:100%;height:%?120?%;border-bottom:1px solid #ebeef5}.list .box .icon[data-v-466ca064]{font-size:%?48?%;padding-right:%?20?%}.list .box .iconweixin1[data-v-466ca064]{color:#18bf16}.list .box .iconzhifubao[data-v-466ca064]{color:#08aaec}.list .box .title-box[data-v-466ca064]{-webkit-box-flex:1;-webkit-flex-grow:1;flex-grow:1;text-align:left}.list .box .title-box .title[data-v-466ca064]{font-size:%?30?%;color:#606266}.list .box .title-box .node[data-v-466ca064]{font-size:%?24?%;color:#909399}[data-v-466ca064] .uni-radio-input{width:%?45?%;height:%?45?%}.active-bg[data-v-466ca064]{background-color:#999!important}.now[data-v-466ca064]{width:100%;height:%?86?%;padding:0 %?26?% 0 %?47?%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;line-height:%?86?%;background-color:#fff}.now uni-view[data-v-466ca064]{font-size:%?28?%;font-weight:500;color:#333}.now .now-money[data-v-466ca064]{font-size:%?32?%;font-weight:700;color:#901b21}.add-wrapper[data-v-466ca064]{width:%?750?%;height:%?338?%;padding-left:%?30?%;background:#fff;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.add-wrapper .add-box[data-v-466ca064]{width:100%;height:%?103?%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;padding:0 %?39?% 0 %?10?%;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.add-wrapper .add-box .add-log[data-v-466ca064]{font-size:%?37?%;font-weight:700}.add-wrapper .add-box uni-input[data-v-466ca064]{width:%?218?%;height:%?30?%;font-size:%?32?%;font-weight:500;color:#000;line-height:40px;text-align:right}.add-wrapper .add-box uni-input .place[data-v-466ca064]{color:#bfbfbf}.add-wrapper .jg[data-v-466ca064]{width:100%}.add-wrapper .add-tags[data-v-466ca064]{height:%?234?%;padding-top:%?47?%;padding-bottom:%?17?%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;-webkit-flex-wrap:wrap;flex-wrap:wrap}.add-wrapper .add-tags .tag[data-v-466ca064]{width:%?210?%;height:%?70?%;background-color:#f0f0f0;border-radius:%?4?%;margin:0 %?30?% %?30?% 0;text-align:center;line-height:%?70?%;font-size:%?22?%}.add-wrapper .add-tags .tag uni-text[data-v-466ca064]{font-size:%?32?%;font-weight:500}.add-wrapper .add-tags .action[data-v-466ca064]{color:#fff;background-color:#901b21}.btn-wrapper[data-v-466ca064]{padding:%?49?% %?32?% 0 %?40?%;height:%?183?%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;background-color:#fff}.btn-wrapper .iconweixin1[data-v-466ca064]{color:#18bf16;font-size:%?48?%;display:-webkit-box;display:-webkit-flex;display:flex}.btn-wrapper .iconweixin1 uni-view[data-v-466ca064]{height:%?48?%;text-align:%?48?%;padding-left:%?20?%;color:#000;font-size:%?30?%}.btn-wrapper .btn[data-v-466ca064]{width:%?36?%;height:%?36?%;border:%?4?% #901b21 solid;border-radius:%?8?% %?8?%}.btn-wrapper .btn uni-image[data-v-466ca064]{width:100%;height:100%}.btn-wrapper .btn .action[data-v-466ca064]{display:none}.btn-wrapper .actiont[data-v-466ca064]{border:none}.main-jg[data-v-466ca064]{width:100%;height:%?21?%;background-color:#f8f6f6}body.?%PAGE?%[data-v-466ca064]{background-color:#fff}',""]),t.exports=e},a9e5:function(t,e,a){"use strict";a.r(e);var i=a("43e1"),n=a.n(i);for(var o in i)"default"!==o&&function(t){a.d(e,t,(function(){return i[t]}))}(o);e["default"]=n.a},b859:function(t,e,a){"use strict";a.r(e);var i=a("f332"),n=a("a9e5");for(var o in n)"default"!==o&&function(t){a.d(e,t,(function(){return n[t]}))}(o);a("0034");var r,d=a("f0c5"),c=Object(d["a"])(n["default"],i["b"],i["c"],!1,null,"466ca064",null,!1,i["a"],r);e["default"]=c.exports},f332:function(t,e,a){"use strict";var i;a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return o})),a.d(e,"a",(function(){return i}));var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"content"},[i("v-uni-view",{staticClass:"now"},[i("v-uni-view",[t._v("当前余额:")]),i("v-uni-view",{staticClass:"now-money"},[t._v("¥"+t._s(t.new_money))])],1),i("v-uni-view",{staticClass:"main-jg"}),i("v-uni-view",{staticClass:"add-wrapper"},[i("v-uni-view",{staticClass:"add-box"},[i("v-uni-view",{staticClass:"add-log"},[t._v("¥")]),i("v-uni-input",{attrs:{type:"number",placeholder:"请输入充值金额","placeholder-class":"place"},on:{keyup:function(e){arguments[0]=e=t.$handleEvent(e),t.clearNoNum()}},model:{value:t.money,callback:function(e){t.money=e},expression:"money"}})],1),i("v-uni-view",{staticClass:"jg",staticStyle:{height:"1px","background-color":"#E6E6E6"}}),i("v-uni-view",{staticClass:"add-tags"},t._l(t.addTags,(function(e,a){return i("v-uni-view",{key:e,staticClass:"tag",class:{action:t.currentIndex===a&&t.money==t.addTags[a]},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.tagClick(a)}}},[i("v-uni-text",[t._v(t._s(e))]),t._v("元")],1)})),1)],1),i("v-uni-view",{staticClass:"main-jg"}),i("v-uni-view",{staticClass:"btn-wrapper"},[i("v-uni-view",{staticClass:"icon iconfont iconweixin1"},[i("v-uni-view",[t._v("微信充值")])],1),i("v-uni-view",{staticClass:"btn",class:{actiont:t.isSect},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.btnClick.apply(void 0,arguments)}}},[i("v-uni-image",{class:{action:!t.isSect},attrs:{src:a("fecf"),mode:""}})],1)],1),i("v-uni-view",{staticClass:"list"},[i("v-uni-radio-group",{on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.tabRadio.apply(void 0,arguments)}}})],1),i("v-uni-button",{staticClass:"add-btn up",class:{"active-bg":t.payLoding},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),!t.payLoding&&t.confirm()}}},[t._v("立即充值")])],1)},o=[]},f347:function(t,e,a){"use strict";var i=a("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.spreadCommission=o,e.userBalance=r,e.extractCash=d,e.extractBank=c,e.rechargeWechat=s,e.aliInfo=l,e.bankInfo=u,e.setAliInfo=f,e.setBankInfo=p,e.balance=b,e.getCommission=g;var n=i(a("bc58"));function o(t,e){return(0,n.default)({url:"/api/spread/commission/"+e,method:"get",data:t})}function r(t){return(0,n.default)({url:"/api/user/balance",method:"get",data:t})}function d(t){return(0,n.default)({url:"/api/extract/cash",method:"post",data:t})}function c(t){return(0,n.default)({url:"/api/extract/bank",method:"get",data:t})}function s(t){return(0,n.default)({url:"/api/recharge/wechat",method:"post",data:t})}function l(t){return(0,n.default)({url:"/api/ali/info",method:"get",data:t})}function u(t){return(0,n.default)({url:"/api/bank/info",method:"get",data:t})}function f(t){return(0,n.default)({url:"/api/ali/edit",method:"post",data:t})}function p(t){return(0,n.default)({url:"/api/bank/edit",method:"post",data:t})}function b(t){return(0,n.default)({url:"/api/user/balance",method:"get",data:t})}function g(t){return(0,n.default)({url:"/api/commission",method:"get",data:t})}},fecf:function(t,e){t.exports="data:image/png;base64,iVBOR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