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 line
10 KiB
1 line
10 KiB
|
7 months ago
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["package-packagestat-pages-statinfo-statinfo"],{"08bb":function(t,e,n){"use strict";n("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a={name:"topnav",props:{title:{type:String,default:""},hasHome:{type:String,default:"home"}},data:function(){return{}},methods:{toback:function(){uni.navigateBack({delta:0})},tohome:function(){this.$emit("tohome")}}};e.default=a},1304:function(t,e,n){"use strict";n.r(e);var a=n("08bb"),i=n.n(a);for(var o in a)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(o);e["default"]=i.a},"1da8":function(t,e,n){"use strict";n("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a={data:function(){return{}},components:{},props:{content:String},methods:{}};e.default=a},"30f7":function(t,e,n){"use strict";n("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},n("7a76"),n("c9b5")},"45d7":function(t,e,n){t.exports=n.p+"static/resources/pic-kong.png"},"46bc":function(t,e,n){"use strict";var a=n("8bba"),i=n.n(a);i.a},4733:function(t,e,n){"use strict";n("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){if(Array.isArray(t))return(0,a.default)(t)};var a=function(t){return t&&t.__esModule?t:{default:t}}(n("8d0b"))},"4f4f":function(t,e,n){"use strict";var a=n("7192"),i=n.n(a);i.a},50751:function(t,e,n){"use strict";n("6a54");var a=n("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=a(n("b7c7"));n("8f71"),n("bf0f"),n("aa9c");var o=n("8f30"),s={data:function(){return{news:[],currentPage:1,host:"",pagetitle:"今日统计",detailtype:"recharge",duration:"today",info:[{type:"today",name:"今日",data:{}},{type:"yesterday",name:"昨日营收",data:{}},{type:"this_week",name:"本周营收",data:{}},{type:"this_month",name:"本月营收",data:{}}]}},onLoad:function(t){var e=t.type,n=this.getJsonObj(t.from)[0];console.log(n),this.duration=n.type,this.detailtype=e,this.pagetitle=n.name+("recharge"==e?"营收":"退款"),this.loadPage(1),this.host=o.HOST},onReachBottom:function(t){console.log(this.currentPage),this.loadPage(this.currentPage+1)},onPullDownRefresh:function(t){this.loadPage(1)},methods:{tohome:function(){uni.navigateTo({url:"../../../../pages/index/index"})},getJsonObj:function(t){var e=this.info.filter((function(e){return e.type==t}));return e},loadPage:function(t){var e=this,n=uni.getStorageSync("currentProject");o.request({bindThis:e,api:"manager/statistics/by-duration",customLoading:!1,data:{page:t,project_id:n.id,page_size:12,detail_type:e.detailtype,duration:e.duration},utilSuccess:function(n){var a=n.data;uni.stopPullDownRefresh(),console.log(a);var o=e.news.length<12&&t>1;if(o||0==a.length&&t>1)uni.showToast({title:"已加载到最后一页",icon:"none"});else{var s,r=e.news;if(1==t)r=a;else(s=r).push.apply(s,(0,i.default)(a));e.currentPage=t,e.news=r}},utilFail:function(n){uni.stopPullDownRefresh(),1==t&&(e.currentPage=t,e.news=[]),o.alert(n)}})}}};e.default=s},"5d0c":function(t,e,n){var a=n("c86c");e=a(!1),e.push([t.i,"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/* components/emptyListHint/emptyListHint.wxss */.emptyHint[data-v-900f57b6]{display:flex;justify-content:center;align-items:center;flex-direction:column;padding-top:%?200?%}.hintContent[data-v-900f57b6]{font-family:PingFangSC-Regular;font-size:%?34?%;color:#ccc;letter-spacing:0;text-align:center;line-height:%?50?%;padding:%?52?%}.noneimg[data-v-900f57b6]{width:%?120?%;height:%?94?%;margin-bottom:%?0?%}",""]),t.exports=e},"6aa9":function(t,e,n){var a=n("5d0c");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var i=n("967d").default;i("4161586c",a,!0,{sourceMap:!1,shadowMode:!1})},"6f2a":function(t,e,n){var a=n("c86c");e=a(!1),e.push([t.i,"uni-page-body[data-v-0891745b]{padding-top:%?160?%}.listBox[data-v-08917
|