pages-money-wallet.af8aabeb.js 11 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-money-wallet"],{"228a":function(t,e,n){"use strict";n.r(e);var a=n("9a42"),o=n("dcda");for(var i in o)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(i);n("47e6");var r=n("f0c5"),s=Object(r["a"])(o["default"],a["b"],a["c"],!1,null,"987b2e62",null,!1,a["a"],void 0);e["default"]=s.exports},"47e6":function(t,e,n){"use strict";var a=n("f2b4"),o=n.n(a);o.a},"50c5":function(t,e,n){"use strict";n("7a82");var a=n("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=a(n("c7eb")),i=a(n("1da1"));n("ac1f"),n("99af");var r=n("6f98"),s=n("f3ff"),u=a(n("786c")),c=a(n("5f2a")),d={filters:{getMoneyStyle:s.getMoneyStyle},components:{empty:c.default,uniLoadMore:u.default},onReady:function(){var t=this;uni.createSelectorQuery().select(".content").fields({size:!0},(function(e){console.log(e),console.log(Math.floor(e.width/750*300)),t.maxheight=e.height-Math.floor(e.width/750*570),console.log(t.maxheight)})).exec()},data:function(){return{maxheight:"",tabCurrentIndex:0,navList:[{state:0,text:"全部",loadingType:"more",orderList:[],page:1,limit:10},{state:1,text:"支出",loadingType:"more",orderList:[],page:1,limit:10},{state:2,text:"收入",loadingType:"more",orderList:[],page:1,limit:10}],money:""}},onLoad:function(t){},onShow:function(){var t=this;this.loadData(),(0,r.userBalance)({}).then((function(e){var n=e.data;t.money=n.now_money}))},methods:{navto:function(t){uni.navigateTo({url:t})},loadData:function(t){var e=this;return(0,i.default)((0,o.default)().mark((function n(){var a,i,s;return(0,o.default)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(a=e.tabCurrentIndex,i=e.navList[a],s=i.state,"tabChange"!==t||!0!==i.loaded){n.next=5;break}return n.abrupt("return");case 5:if("loading"!==i.loadingType){n.next=7;break}return n.abrupt("return");case 7:i.loadingType="loading",(0,r.spreadCommission)({page:i.page,limit:i.limit},s).then((function(t){var n=t.data;n.length>0&&(i.orderList=i.orderList.concat(n[0].list),console.log(i.orderList),i.page++),i.limit!=n.length?(i.loadingType="noMore",uni.hideLoading(),e.$set(i,"loaded",!0)):i.loadingType="more"})).catch((function(t){console.log(t)}));case 9:case"end":return n.stop()}}),n)})))()},changeTab:function(t){this.tabCurrentIndex=t.target.current,this.loadData("tabChange")},tabClick:function(t){this.tabCurrentIndex=t}}};e.default=d},"6f98":function(t,e,n){"use strict";n("7a82");var a=n("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.aliInfo=function(t){return(0,o.default)({url:"/api/ali/info",method:"get",data:t})},e.balance=function(t){return(0,o.default)({url:"/api/user/balance",method:"get",data:t})},e.bankInfo=function(t){return(0,o.default)({url:"/api/bank/info",method:"get",data:t})},e.extractBank=function(t){return(0,o.default)({url:"/api/extract/bank",method:"get",data:t})},e.extractCash=function(t){return(0,o.default)({url:"/api/extract/cash",method:"post",data:t})},e.getBank=function(t){return(0,o.default)({url:"/api/auction/pay_list",method:"get",data:t})},e.integral=function(t){return(0,o.default)({url:"/api/integral/list",method:"get",data:t})},e.rechargeWechat=function(t){return(0,o.default)({url:"/api/recharge/wechat",method:"post",data:t})},e.setAliInfo=function(t){return(0,o.default)({url:"/api/ali/edit",method:"post",data:t})},e.setBank=function(t){return(0,o.default)({url:"/api/auction/pay",method:"post",data:t})},e.setBankInfo=function(t){return(0,o.default)({url:"/api/bank/edit",method:"post",data:t})},e.spreadCommission=function(t,e){return(0,o.default)({url:"/api/spread/commission/"+e,method:"get",data:t})},e.userBalance=function(t){return(0,o.default)({url:"/api/user/balance",method:"get",data:t})},e.yue=function(t){return(0,o.default)({url:"/api/now_money/list",method:"get",data:t})};var o=a(n("873e"))},"9a42":function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){return a}));var a={uniLoadMore:n("786c").default},o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"content"},[n("v-uni-view",{staticClass:"content-money"},[n("v-uni-view",{staticClass:"money-box"},[n("v-uni-view",{staticClass:"text"},[t._v("可提现金额(元)")]),n("v-uni-view",{staticClass:"money"},[t._v(t._s(t._f("getMoneyStyle")(t.money)))])],1),n("v-uni-view",{staticClass:"moneyTx",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.navto("/pages/money/recharge")}}},[t._v("充值")]),n("v-uni-view",{staticClass:"flex buttom-box"},[n("v-uni-view",{staticClass:"buttom",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.navto("/pages/money/recharge")}}},[n("v-uni-view",{staticClass:"icon"},[n("v-uni-image",{staticClass:"icon-img",attrs:{src:"/static/icon/i5.png",mode:"aspectFit"}})],1),n("v-uni-text",[t._v("充值")])],1),n("v-uni-view",{staticClass:"interval"}),n("v-uni-view",{staticClass:"buttom",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.navto("/pages/money/withdrawal")}}},[n("v-uni-view",{staticClass:"icon"},[n("v-uni-image",{staticClass:"icon-img",attrs:{src:"/static/icon/i1.png",mode:"aspectFit"}})],1),n("v-uni-text",[t._v("提现")])],1)],1)],1),n("v-uni-view",{staticClass:"navbar"},t._l(t.navList,(function(e,a){return n("v-uni-view",{key:a,staticClass:"nav-item",class:{current:t.tabCurrentIndex===a},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.tabClick(a)}}},[t._v(t._s(e.text))])})),1),n("v-uni-swiper",{staticClass:"swiper-box",style:{height:t.maxheight+"px"},attrs:{current:t.tabCurrentIndex,duration:"300"},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.changeTab.apply(void 0,arguments)}}},t._l(t.navList,(function(e,a){return n("v-uni-swiper-item",{key:a,staticClass:"tab-content"},[n("v-uni-scroll-view",{staticClass:"list-scroll-content",attrs:{"scroll-y":!0},on:{scrolltolower:function(e){arguments[0]=e=t.$handleEvent(e),t.loadData.apply(void 0,arguments)}}},[!0===e.loaded&&0===e.orderList.length?n("empty"):t._e(),t._l(e.orderList,(function(e,a){return n("v-uni-view",{key:a,staticClass:"order-item flex"},[n("v-uni-view",{staticClass:"title-box"},[n("v-uni-view",{staticClass:"title"},[n("v-uni-text",[t._v(t._s(e.title))])],1),n("v-uni-view",{staticClass:"time"},[n("v-uni-text",[t._v(t._s(e.add_time))])],1)],1),n("v-uni-view",{staticClass:"money"},[n("v-uni-text",[t._v(t._s((0==e.pm?"-":"+")+e.number))])],1)],1)})),n("uni-load-more",{attrs:{status:e.loadingType}})],2)],1)})),1)],1)},i=[]},c80a:function(t,e,n){var a=n("24fb");e=a(!1),e.push([t.i,'@charset "UTF-8";\n/* 页面左右间距 */\n/* 文字尺寸 */\n/*文字颜色*/\n/* 边框颜色 */\n/*颜色*/\n/* 图片加载中颜色 */\n/* 行为相关颜色 */\n/* 功能栏字体大小 */\n/*功能栏左侧小图标*/uni-page-body[data-v-987b2e62]{background:#fff;height:100%}body.?%PAGE?%[data-v-987b2e62]{background:#fff}.content-money[data-v-987b2e62]{padding-bottom:%?30?%;background:#f8f8f8}.content-money .moneyTx[data-v-987b2e62]{position:absolute;top:%?150?%;right:%?0?%;width:%?150?%;padding:%?10?% %?30?%;border:2px solid #fff;border-top-left-radius:%?99?%;border-bottom-left-radius:%?99?%;color:#fff;line-height:1;font-size:%?28?%}.content-money .buttom-box[data-v-987b2e62]{background-color:#fff;text-align:center;margin:0 %?30?%;padding:%?20?% 0;border-radius:%?15?%;margin-top:%?-60?%}.content-money .buttom-box .buttom[data-v-987b2e62]{font-size:%?32?%;flex-grow:1}.content-money .buttom-box .interval[data-v-987b2e62]{width:2px;height:%?60?%;background-color:#eee}.content-money .buttom-box .icon[data-v-987b2e62]{height:%?50?%;width:%?48?%;margin:0 auto}.content-money .buttom-box .icon .icon-img[data-v-987b2e62]{width:100%;height:100%}.money-box[data-v-987b2e62]{background-color:#ff4e4a;padding-top:0;height:%?368?%;color:#fff;text-align:center}.money-box .text[data-v-987b2e62]{padding-top:%?147?%;font-size:%?24?%}.money-box .money[data-v-987b2e62]{font-size:%?56?%}.navbar[data-v-987b2e62]{display:flex;height:40px;padding:0 5px;background:#fff;box-shadow:0 1px 5px rgba(0,0,0,.06);position:relative;z-index:10}.navbar .nav-item[data-v-987b2e62]{flex:1;display:flex;justify-content:center;align-items:center;height:100%;font-size:15px;color:#303133;position:relative}.navbar .nav-item.current[data-v-987b2e62]{color:#ff4e4a}.navbar .nav-item.current[data-v-987b2e62]:after{content:"";position:absolute;left:50%;bottom:0;-webkit-transform:translateX(-50%);transform:translateX(-50%);width:44px;height:0;border-bottom:2px solid #ff4e4a}.swiper-box[data-v-987b2e62]{padding-top:%?10?%}.swiper-box .order-item[data-v-987b2e62]{padding:%?20?% %?30?%;line-height:1.5}.swiper-box .order-item .title-box .title[data-v-987b2e62]{font-size:%?32?%;color:#606266}.swiper-box .order-item .title-box .time[data-v-987b2e62]{font-size:%?28?%;color:#909399}.swiper-box .order-item .money[data-v-987b2e62]{color:#fd5b23;font-size:%?32?%}.list-scroll-content[data-v-987b2e62]{height:100%}.content[data-v-987b2e62]{height:100%}.content .empty-content[data-v-987b2e62]{background-color:#fff}',""]),t.exports=e},dcda:function(t,e,n){"use strict";n.r(e);var a=n("50c5"),o=n.n(a);for(var i in a)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(i);e["default"]=o.a},f2b4:function(t,e,n){var a=n("c80a");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var o=n("4f06").default;o("2aabef5e",a,!0,{sourceMap:!1,shadowMode:!1})},f3ff:function(t,e,n){"use strict";n("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.getMoneyStyle=function(){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(""),n=e.reverse().map((function(t,e,n){return e%3==0&&e/3>1&&e!=n.length?t+",":t}));return n=n.reverse().join(""),n},e.getTime=function(t){for(var e=13-(t+"").length,n=1,a=0;a<e;a++)n+="0";n=parseInt(n);var o=new Date(parseInt(t)*n),i=o.getFullYear(),r=o.getMonth()+1,s=o.getDate(),u=o.getHours(),c=o.getMinutes(),d=o.getSeconds();return i+"-"+r+"-"+s+" "+u+":"+c+":"+d},e.isCardNo=function(t){if(!1===/(^[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}$)/.test(t))return console.log(t),!1;return!0},e.openMap=function(t){return new Promise((function(t,e){wx.getSetting({success:function(n){n.authSetting["scope.userLocation"]?t():wx.showModal({title:"提示",content:"请求获取位置权限",success:function(n){if(0==n.confirm)return e(),!1;wx.openSetting({success:function(e){e.authSetting["scope.userLocation"]?t():wx.showToast({title:"此功能需获取位置信息,请重新设置",duration:3e3,icon:"none"})}})}})}})}))},e.timeComputed=function(t){var e=(new Date).getTime(),n=t-e;n<0&&(n*=-1);var a=Math.floor(n/1e3/60/60/24),o=Math.floor(n/1e3/60/60%24),i=Math.floor(n/1e3/60%60),r=Math.floor(n/1e3%60);return{hours:o,minutes:i,seconds:r,day:a}},n("ac1f"),n("00b4"),n("d81d"),n("26e9"),n("d3b7"),n("e25e")}}]);