1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-money-withdmoenys"],{1358:function(t,e,a){"use strict";var n=a("6aaa"),o=a.n(n);o.a},2963:function(t,e,a){"use strict";a.r(e);var n=a("8806"),o=a.n(n);for(var i in n)"default"!==i&&function(t){a.d(e,t,(function(){return n[t]}))}(i);e["default"]=o.a},3731:function(t,e,a){"use strict";function n(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 o(){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 i(t){var e=(new Date).getTime(),a=t-e;a<0&&(a*=-1);var n=Math.floor(a/1e3/60/60/24),o=Math.floor(a/1e3/60/60%24),i=Math.floor(a/1e3/60%60),r=Math.floor(a/1e3%60);return{hours:o,minutes:i,seconds:r,day:n}}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,n=0;n<e;n++)a+="0";a=parseInt(a);var o=new Date(parseInt(t)*a),i=o.getFullYear(),r=o.getMonth()+1,d=o.getDate(),s=o.getHours(),u=o.getMinutes(),l=o.getSeconds();return i+"-"+r+"-"+d+" "+s+":"+u+":"+l}a("d81d"),a("26e9"),a("d3b7"),a("e25e"),a("ac1f"),a("1276"),Object.defineProperty(e,"__esModule",{value:!0}),e.isCardNo=n,e.getMoneyStyle=o,e.timeComputed=i,e.openMap=r,e.getTime=d},"489d":function(t,e,a){"use strict";a.r(e);var n=a("4ed2"),o=a("2963");for(var i in o)"default"!==i&&function(t){a.d(e,t,(function(){return o[t]}))}(i);a("1358");var r,d=a("f0c5"),s=Object(d["a"])(o["default"],n["b"],n["c"],!1,null,"68d1c77a",null,!1,n["a"],r);e["default"]=s.exports},"4ed2":function(t,e,a){"use strict";var n;a.d(e,"b",(function(){return o})),a.d(e,"c",(function(){return i})),a.d(e,"a",(function(){return n}));var o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"content"},[a("v-uni-view",{staticClass:"content-money"},["xl"==t.type?a("v-uni-view",{staticClass:"flex"},[a("v-uni-view",{staticClass:"buttom"},[a("v-uni-view",{staticClass:"icon"},[t._v(t._s(t._f("getMoneyStyle")(t.userInfo.integral)))]),a("v-uni-text",{staticClass:"text"},[t._v("可用响亮积分")])],1)],1):t._e(),"yue"==t.type?a("v-uni-view",{staticClass:"flex"},[a("v-uni-view",{staticClass:"buttom"},[a("v-uni-view",{staticClass:"icon"},[t._v(t._s(t._f("getMoneyStyle")(t.userInfo.now_money)))]),a("v-uni-text",{staticClass:"text"},[t._v("可用余额")])],1)],1):t._e(),"cash"==t.type?a("v-uni-view",{staticClass:"flex"},[a("v-uni-view",{staticClass:"buttom"},[a("v-uni-view",{staticClass:"icon"},[t._v(t._s(t._f("getMoneyStyle")(t.userInfo.cash)))]),a("v-uni-text",{staticClass:"text"},[t._v("可用现金")])],1)],1):t._e()],1),a("v-uni-view",{staticClass:"row-box"},[a("v-uni-view",{staticClass:"title"},[t._v("收款人手机号")]),a("v-uni-view",{staticClass:"row"},[a("v-uni-input",{staticClass:"input",attrs:{type:"number",placeholder:"请输入收款人手机号","placeholder-class":"placeholder"},model:{value:t.card,callback:function(e){t.card=e},expression:"card"}})],1)],1),a("v-uni-view",{staticClass:"row-box"},[a("v-uni-view",{staticClass:"title"},[t._v("转账金额")]),a("v-uni-view",{staticClass:"row"},[a("v-uni-input",{staticClass:"input",attrs:{type:"number",placeholder:"转入金额","placeholder-class":"placeholder"},model:{value:t.withdrawal,callback:function(e){t.withdrawal=e},expression:"withdrawal"}}),"xl"==t.type?a("v-uni-view",{staticClass:"buttom",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.withdrawal=t.userInfo.integral}}},[t._v("全部转账")]):t._e(),"yue"==t.type?a("v-uni-view",{staticClass:"buttom",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.withdrawal=t.userInfo.now_money}}},[t._v("全部转账")]):t._e(),"cash"==t.type?a("v-uni-view",{staticClass:"buttom",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.withdrawal=t.userInfo.cash}}},[t._v("全部转账")]):t._e()],1)],1),0!=t.withdrawal&&"xl"==t.type?a("v-uni-view",{staticClass:"tip"},[t._v("实际转入"+t._s(t.realmoney)+"响亮积分,"+t._s(t.gy)+"响亮积分流入公益池")]):t._e(),a("v-uni-button",{staticClass:"add-btn up",class:{action:t.loding},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),!t.loding&&t.confirm()}}},[t._v("提交申请")])],1)},i=[]},"6aaa":function(t,e,a){var n=a("de6e");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var o=a("4f06").default;o("43b39a6c",n,!0,{sourceMap:!1,shadowMode:!1})},8806:function(t,e,a){"use strict";var n=a("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n(a("5530")),i=a("3731"),r=a("b726"),d=a("26cb"),s={filters:{getMoneyStyle:i.getMoneyStyle},data:function(){return{money:"0.00",withdrawal:"",password:"",card:"",name:"",weichatBsrowser:!1,loding:!1,type:"xl"}},onLoad:function(t){this.weichatBsrowser=uni.getStorageSync("weichatBrowser"),this.dataUp(),t.type&&(this.type=t.type,console.log(this.type))},computed:(0,o.default)((0,o.default)({},(0,d.mapState)("user",["userInfo"])),{},{realmoney:function(){return 1*(.9*this.withdrawal).toFixed(2)},gy:function(){return 1*(.08*this.withdrawal).toFixed(2)}}),methods:(0,o.default)((0,o.default)({},(0,d.mapMutations)("user",["setUserInfo","login"])),{},{dataUp:function(){var t=this;(0,r.getUserInfo)({}).then((function(e){t.login(),t.setUserInfo(e.data)})).catch((function(t){console.log(t)}))},tabRadio:function(t){this.type=t.detail.value},confirm:function(){var t=this;if(t.loding=!0,0==t.withdrawal)return t.loding=!1,void uni.showModal({title:"提示",content:"转账金额不要为0"});if(t.card==t.userInfo.phone)t.loding=!1,uni.showModal({title:"提示",content:"不要输入自己的用户账号"});else{var e={to_user_account:t.card,num:t.withdrawal};"xl"==t.type&&(0,r.transfer)(e).then((function(e){t.loding=!1,t.withdrawal="",uni.showToast({title:"提交成功",duration:2e3,position:"top"}),t.dataUp()})).catch((function(e){t.$api.msg(e.msg),t.loding=!1,console.log()})),"yue"==t.type&&(0,r.yuetransfer)(e).then((function(e){t.loding=!1,t.withdrawal="",uni.showToast({title:"提交成功",duration:2e3,position:"top"}),t.dataUp()})).catch((function(e){t.$api.msg(e.msg),t.loding=!1,console.log()})),"cash"==t.type&&(0,r.cashtransfer)(e).then((function(e){t.loding=!1,t.withdrawal="",uni.showToast({title:"提交成功",duration:2e3,position:"top"}),t.dataUp()})).catch((function(e){t.$api.msg(e.msg),t.loding=!1,console.log()}))}}})};e.default=s},b726:function(t,e,a){"use strict";var n=a("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.lookSubpoints=i,e.lookOneself=r,e.spread=d,e.myspread=s,e.orderData=u,e.getUserInfo=l,e.userinfo=c,e.spreadBanner=f,e.getAddressList=p,e.addressEdit=v,e.addressDel=h,e.setAddressDefault=g,e.getCartList=w,e.getCartNum=m,e.cartDel=b,e.getcollectList=x,e.delcollect=y,e.transfer=_,e.yuetransfer=C,e.cashtransfer=M,e.share=k;var o=n(a("c9b6"));function i(t,e){return(0,o.default)({url:"/api/tree/children/"+e,method:"get",data:t})}function r(t){return(0,o.default)({url:"/api/tree/points",method:"get",data:t})}function d(t){return(0,o.default)({url:"/api/user/spread",method:"post",data:t})}function s(t){return(0,o.default)({url:"/api/spread/people",method:"POST",data:t})}function u(t){return(0,o.default)({url:"/api/order/data",method:"get",data:t})}function l(t){return(0,o.default)({url:"/api/userinfo",method:"get",data:t})}function c(t){return(0,o.default)({url:"/api/userinfo",method:"get",data:t})}function f(t){return(0,o.default)({url:"/api/spread/banner",method:"get",data:t})}function p(t){return(0,o.default)({url:"/api/address/list",method:"get",data:t})}function v(t){return(0,o.default)({url:"/api/address/edit",method:"post",data:t})}function h(t){return(0,o.default)({url:"/api/address/del",method:"post",data:t})}function g(t){return(0,o.default)({url:"/api/address/default/set",method:"post",data:t})}function w(t){return(0,o.default)({url:"/api/cart/list",method:"get",data:t})}function m(t){return(0,o.default)({url:"/api/cart/num",method:"post",data:t})}function b(t){return(0,o.default)({url:"/api/cart/del",method:"post",data:t})}function x(t){return(0,o.default)({url:"/api/collect/user",method:"get",data:t})}function y(t){return(0,o.default)({url:"/api/collect/del",method:"post",data:t})}function _(t){return(0,o.default)({url:"/api/trade",method:"post",data:t})}function C(t){return(0,o.default)({url:"/api/yue/trade",method:"post",data:t})}function M(t){return(0,o.default)({url:"/api/cash/trade",method:"post",data:t})}function k(t){return(0,o.default)({url:"/api/game",method:"get",data:t})}},de6e:function(t,e,a){var n=a("24fb");e=n(!1),e.push([t.i,'@charset "UTF-8";\n/* 页面左右间距 */\n/* 文字尺寸 */\n/*文字颜色*/\n/* 边框颜色 */\n/*颜色*/\n/* 图片加载中颜色 */\n/* 行为相关颜色 */\n/* 功能栏字体大小 */\n/*功能栏左侧小图标*/uni-page-body[data-v-68d1c77a]{height:100%}.content-money[data-v-68d1c77a]{padding:%?30?% 0;background:#fff}.item[data-v-68d1c77a]{padding:0 %?30?%;background-color:#fff}.flex[data-v-68d1c77a]{background-color:#fff;text-align:center;margin:0 %?30?%;border-radius:%?15?%;justify-content:center}.flex .buttom[data-v-68d1c77a]{font-size:%?32?%;width:50%}.flex .interval[data-v-68d1c77a]{width:2px;height:%?60?%;background-color:#eee}.flex .icon[data-v-68d1c77a]{background-size:100%;font-size:%?42?%;color:#303133;font-weight:700;background-repeat:no-repeat;background-position:50%}.flex .text[data-v-68d1c77a]{color:#909399}.row-box[data-v-68d1c77a]{margin-top:%?30?%;padding:%?20?% %?30?%;background:#fff}.row-box .title[data-v-68d1c77a]{font-size:%?30?%;color:#303133}.row-box .row[data-v-68d1c77a]{display:flex;align-items:center;position:relative;height:%?80?%}.row-box .row .tit[data-v-68d1c77a]{flex-shrink:0;width:%?40?%;font-size:%?30?%;color:#303133}.row-box .row .input[data-v-68d1c77a]{flex:1;font-size:%?30?%;color:#303133}.row-box .row .iconlocation[data-v-68d1c77a]{font-size:%?36?%;color:#909399}.row-box .row .buttom[data-v-68d1c77a]{color:#f21f5d;font-size:%?28?%}.add-btn[data-v-68d1c77a]{width:%?520?%;height:%?80?%;border:%?2?% solid #f21f5d;border-radius:%?40?%;margin:%?140?% auto;font-family:PingFang SC;font-weight:700;color:#f21f5d}.name[data-v-68d1c77a]{background:#fff;padding:%?30?%}.list[data-v-68d1c77a]{padding-left:%?30?%;margin-top:%?30?%;background-color:#fff}.list .box[data-v-68d1c77a]{display:flex;align-items:center;width:100%;height:%?120?%;border-bottom:1px solid #ebeef5}.list .box .icon[data-v-68d1c77a]{font-size:%?48?%;padding-right:%?20?%}.list .box .icon .icon-img[data-v-68d1c77a]{height:%?50?%;width:%?50?%}.list .box .iconweixin1[data-v-68d1c77a]{color:#18bf16}.list .box .iconzhifubao[data-v-68d1c77a]{color:#08aaec}.list .box .title-box[data-v-68d1c77a]{flex-grow:1;text-align:left}.list .box .title-box .title[data-v-68d1c77a]{font-size:%?30?%;color:#606266}.list .box .title-box .node[data-v-68d1c77a]{font-size:%?24?%;color:#909399}.tip[data-v-68d1c77a]{padding:%?20?%;color:red}[data-v-68d1c77a] .uni-radio-input{width:%?45?%;height:%?45?%}',""]),t.exports=e}}]);
|