This commit is contained in:
2023-05-16 13:02:46 +08:00
parent d19b1ed2aa
commit c8e4e47569
719 changed files with 505 additions and 466 deletions
@@ -1 +1 @@
"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([[2758],{2098:function(e,t,r){var a=r(4165),n=r(1413),s=r(5861),u=r(9439),o=r(7294),c=r(2711),l=r(8093),i=r(1115),f=r(5893);t.Z=function InfiniteScrollPaging(e){var t=e.query,r=void 0===t?{}:t,Z=(0,o.useRef)({}),p=(0,o.useState)({list:[],total:0}),h=(0,u.Z)(p,2),g=h[0],S=h[1],d=(0,o.useState)({refreshStatus:!1,moreStatus:!1,page:1,size:10,loading:!1}),m=(0,u.Z)(d,2),v=m[0],w=m[1],_=function(){var t=(0,s.Z)((0,a.Z)().mark((function _callee(t,s){var u,o;return(0,a.Z)().wrap((function _callee$(a){for(;;)switch(a.prev=a.next){case 0:return u=Z.current,w((0,n.Z)((0,n.Z)((0,n.Z)({},u),t),{},{loading:!0})),a.next=4,e.fetchData((0,n.Z)((0,n.Z)({},r),{},{page:u.page,size:u.size}));case 4:(o=a.sent).success?(e.change&&e.change(o),o.data.total<=0?w((0,n.Z)((0,n.Z)((0,n.Z)({},u),s),{},{loading:!1})):(S({list:o.data.list,total:o.data.total}),w((0,n.Z)((0,n.Z)({},u),{},{refreshStatus:!1,moreStatus:!1,loading:!1})))):(i.Z9.none(o.msg),w((0,n.Z)((0,n.Z)({},u),{},{refreshStatus:!1,moreStatus:!0,loading:!1})));case 6:case"end":return a.stop()}}),_callee)})));return function getData(e,r){return t.apply(this,arguments)}}(),x=(0,o.useRef)({}),z=function(){var e=(0,s.Z)((0,a.Z)().mark((function _callee2(){var e;return(0,a.Z)().wrap((function _callee2$(t){for(;;)switch(t.prev=t.next){case 0:e=Z.current,w((0,n.Z)((0,n.Z)({},e),{},{page:1,size:10})),_({refreshStatus:!0,moreStatus:!1},{refreshStatus:!1,moreStatus:!0});case 3:case"end":return t.stop()}}),_callee2)})));return function handleRefresh(){return e.apply(this,arguments)}}(),k=function(){var e=(0,s.Z)((0,a.Z)().mark((function _callee3(){var e,t;return(0,a.Z)().wrap((function _callee3$(r){for(;;)switch(r.prev=r.next){case 0:e=x.current,t=Z.current,e.list.length<e.total&&(w((0,n.Z)((0,n.Z)({},t),{},{page:++t.page,size:++t.page*t.size})),_({moreStatus:!0},{moreStatus:!0}));case 3:case"end":return r.stop()}}),_callee3)})));return function handleMoreLoad(){return e.apply(this,arguments)}}(),R=(0,o.useMemo)((function(){return(0,l.rA)({list:g.list,total:g.total,status:v.loading})}),[v.loading]);return(0,o.useEffect)((function(){Z.current=v,x.current=g,_({moreStatus:!0},{moreStatus:!0})}),[]),(0,o.useEffect)((function(){(0,i.Qr)(r)||(S({list:[],total:0}),_({moreStatus:!0},{moreStatus:!0}))}),[r]),(0,f.jsx)(c.Z,{refresherEnabled:!0,refresherTriggered:v.refreshStatus,moreStatus:v.moreStatus,selfOnRefresherRefresh:z,selfonScrollToLower:k,statusMore:R,children:e.children})}}}]);
"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([[6701],{2098:function(e,t,r){var a=r(4165),n=r(1413),s=r(5861),u=r(9439),o=r(7294),c=r(2711),l=r(8093),i=r(1115),f=r(5893);t.Z=function InfiniteScrollPaging(e){var t=e.query,r=void 0===t?{}:t,Z=(0,o.useRef)({}),p=(0,o.useState)({list:[],total:0}),h=(0,u.Z)(p,2),g=h[0],S=h[1],d=(0,o.useState)({refreshStatus:!1,moreStatus:!1,page:1,size:10,loading:!1}),m=(0,u.Z)(d,2),v=m[0],w=m[1],_=function(){var t=(0,s.Z)((0,a.Z)().mark((function _callee(t,s){var u,o;return(0,a.Z)().wrap((function _callee$(a){for(;;)switch(a.prev=a.next){case 0:return u=Z.current,w((0,n.Z)((0,n.Z)((0,n.Z)({},u),t),{},{loading:!0})),a.next=4,e.fetchData((0,n.Z)((0,n.Z)({},r),{},{page:u.page,size:u.size}));case 4:(o=a.sent).success?(e.change&&e.change(o),o.data.total<=0?w((0,n.Z)((0,n.Z)((0,n.Z)({},u),s),{},{loading:!1})):(S({list:o.data.list,total:o.data.total}),w((0,n.Z)((0,n.Z)({},u),{},{refreshStatus:!1,moreStatus:!1,loading:!1})))):(i.Z9.none(o.msg),w((0,n.Z)((0,n.Z)({},u),{},{refreshStatus:!1,moreStatus:!0,loading:!1})));case 6:case"end":return a.stop()}}),_callee)})));return function getData(e,r){return t.apply(this,arguments)}}(),x=(0,o.useRef)({}),z=function(){var e=(0,s.Z)((0,a.Z)().mark((function _callee2(){var e;return(0,a.Z)().wrap((function _callee2$(t){for(;;)switch(t.prev=t.next){case 0:e=Z.current,w((0,n.Z)((0,n.Z)({},e),{},{page:1,size:10})),_({refreshStatus:!0,moreStatus:!1},{refreshStatus:!1,moreStatus:!0});case 3:case"end":return t.stop()}}),_callee2)})));return function handleRefresh(){return e.apply(this,arguments)}}(),k=function(){var e=(0,s.Z)((0,a.Z)().mark((function _callee3(){var e,t;return(0,a.Z)().wrap((function _callee3$(r){for(;;)switch(r.prev=r.next){case 0:e=x.current,t=Z.current,e.list.length<e.total&&(w((0,n.Z)((0,n.Z)({},t),{},{page:++t.page,size:++t.page*t.size})),_({moreStatus:!0},{moreStatus:!0}));case 3:case"end":return r.stop()}}),_callee3)})));return function handleMoreLoad(){return e.apply(this,arguments)}}(),R=(0,o.useMemo)((function(){return(0,l.rA)({list:g.list,total:g.total,status:v.loading})}),[v.loading]);return(0,o.useEffect)((function(){Z.current=v,x.current=g,_({moreStatus:!0},{moreStatus:!0})}),[]),(0,o.useEffect)((function(){(0,i.Qr)(r)||(S({list:[],total:0}),_({moreStatus:!0},{moreStatus:!0}))}),[r]),(0,f.jsx)(c.Z,{refresherEnabled:!0,refresherTriggered:v.refreshStatus,moreStatus:v.moreStatus,selfOnRefresherRefresh:z,selfonScrollToLower:k,statusMore:R,children:e.children})}}}]);
@@ -1 +0,0 @@
"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([[3560],{1805:function(_,e){e.Z={common_safe_area_y:"index-module__common_safe_area_y___qVHLM",hoverClass:"index-module__hoverClass___xmc2X","full-100":"index-module__full-100___f4rUs",mainBox:"index-module__mainBox___oYq7z",pic:"index-module__pic___jqHuf",text:"index-module__text___cFKLZ"}}}]);
@@ -1 +1 @@
"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([[4295],{4733:function(t,n,e){e.d(n,{UQ:function(){return r},kM:function(){return o}});var i=e(749),r=function depositInfoApi(){return(0,i.Q)({url:"/v1/mall/rechargeApplication",method:"get"})},o=function depositListApi(){return(0,i.Q)({url:"/v1/mall/rechargeApplication/list",method:"get"})}}}]);
"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([[4223],{4733:function(t,n,e){e.d(n,{UQ:function(){return r},kM:function(){return o}});var i=e(749),r=function depositInfoApi(){return(0,i.Q)({url:"/v1/mall/rechargeApplication",method:"get"})},o=function depositListApi(){return(0,i.Q)({url:"/v1/mall/rechargeApplication/list",method:"get"})}}}]);
@@ -0,0 +1 @@
"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([[33],{1805:function(_,e){e.Z={common_safe_area_y:"index-module__common_safe_area_y___qVHLM",hoverClass:"index-module__hoverClass___xmc2X","full-100":"index-module__full-100___f4rUs",mainBox:"index-module__mainBox___oYq7z",pic:"index-module__pic___jqHuf",text:"index-module__text___cFKLZ"}}}]);
@@ -1 +1 @@
"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([[9315],{2711:function(e,r,o){var n=o(1515),l=o(7294),s=o(4508),t=o(9218),c=o(6541),i=o(1027),f=o(2495),u=o(5893),a=function InfiniteScroll(e){var r=e.styleObj,o=e.selfonScrollToLower,a=e.selfOnScrollToUpper,h=e.selfOnScroll,d=e.selfOnRefresherPulling,p=e.selfOnRefresherRefresh,m=e.selfOnRefresherRestore,R=e.selfOnRefresherAbort,x=e.safeAreaInsetBottom,T=void 0===x||x,g=e.enableLoadMoreStatus,S=void 0===g||g,j=e.children,v=e.lowerThresholdNum,b=void 0===v?30:v,w=e.paddingBottom,Z=void 0===w?0:w,N=e.refresherTriggered,B=void 0!==N&&N,O=e.refresherEnabled,y=void 0!==O&&O,G=e.moreStatus,U=void 0===G||G,_=e.statusMore,k=void 0===_?0:_,A=e.enableBackToTop,F=void 0===A||A,L=e.emptySlot,M=e.defaultUrl,P=void 0===M?"":M,C=e.defaultText,E=void 0===C?"":C,I=(0,l.useMemo)((function(){if(0==k)return.1}),[k]);return(0,u.jsx)(u.Fragment,{children:(0,u.jsxs)(n.pf,{id:"infiniteScroll",style:r,className:t.Z.scroll_main,scrollY:!0,onScrollToLower:function onScrollToLower(){return function scrollToLower(){null==o||o()}()},onScrollToUpper:function onScrollToUpper(){return function scrollToUpper(){null==a||a()}()},onScroll:function onScroll(e){return function scroll(e){null==h||h(e)}(e)},lowerThreshold:b,refresherEnabled:y,refresherTriggered:B,onRefresherPulling:function onRefresherPulling(){return function refresherPulling(){null==d||d()}()},onRefresherRefresh:function onRefresherRefresh(){return function refresherRefresh(){null==p||p()}()},onRefresherRestore:function onRefresherRestore(){return function refresherRestore(){null==m||m()}()},onRefresherAbort:function onRefresherAbort(){return function refresherAbort(){null==R||R()}()},refresherBackground:"#F8F8F8",enableBackToTop:F,scrollTop:I,children:[function component(){return S&&U?(0,u.jsxs)(u.Fragment,{children:[(2==k||3==k)&&(0,u.jsxs)(n.G7,{style:{paddingBottom:"".concat(Z,"rpx")},className:t.Z.scrollViewCon,children:[j,(0,u.jsx)(n.G7,{className:t.Z.infinite_scroll,children:2==k?(0,u.jsxs)(n.G7,{className:t.Z.loading_more,children:["加载中",(0,u.jsx)(c.Z,{})]}):(0,u.jsx)(n.G7,{className:t.Z.noMore,children:"没有更多数据了"})})]}),0==k&&(0,u.jsx)(s.Z,{}),1==k&&(L||(0,u.jsx)(i.Z,{picUrl:P?"".concat(f.KC).concat(P):f.up,text:E||"暂无数据"}))]}):(0,u.jsx)(n.G7,{style:{paddingBottom:"".concat(Z,"rpx")},className:t.Z.scrollViewCon,children:j})}(),T&&(0,u.jsx)(n.G7,{className:"common_safe_area_y"})]})})};r.Z=(0,l.memo)(a)}}]);
"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([[1157],{2711:function(e,r,o){var n=o(1515),l=o(7294),s=o(4508),t=o(9218),c=o(6541),i=o(1027),f=o(2495),u=o(5893),a=function InfiniteScroll(e){var r=e.styleObj,o=e.selfonScrollToLower,a=e.selfOnScrollToUpper,h=e.selfOnScroll,d=e.selfOnRefresherPulling,p=e.selfOnRefresherRefresh,m=e.selfOnRefresherRestore,R=e.selfOnRefresherAbort,x=e.safeAreaInsetBottom,T=void 0===x||x,g=e.enableLoadMoreStatus,S=void 0===g||g,j=e.children,v=e.lowerThresholdNum,b=void 0===v?30:v,w=e.paddingBottom,Z=void 0===w?0:w,N=e.refresherTriggered,B=void 0!==N&&N,O=e.refresherEnabled,y=void 0!==O&&O,G=e.moreStatus,U=void 0===G||G,_=e.statusMore,k=void 0===_?0:_,A=e.enableBackToTop,F=void 0===A||A,L=e.emptySlot,M=e.defaultUrl,P=void 0===M?"":M,C=e.defaultText,E=void 0===C?"":C,I=(0,l.useMemo)((function(){if(0==k)return.1}),[k]);return(0,u.jsx)(u.Fragment,{children:(0,u.jsxs)(n.pf,{id:"infiniteScroll",style:r,className:t.Z.scroll_main,scrollY:!0,onScrollToLower:function onScrollToLower(){return function scrollToLower(){null==o||o()}()},onScrollToUpper:function onScrollToUpper(){return function scrollToUpper(){null==a||a()}()},onScroll:function onScroll(e){return function scroll(e){null==h||h(e)}(e)},lowerThreshold:b,refresherEnabled:y,refresherTriggered:B,onRefresherPulling:function onRefresherPulling(){return function refresherPulling(){null==d||d()}()},onRefresherRefresh:function onRefresherRefresh(){return function refresherRefresh(){null==p||p()}()},onRefresherRestore:function onRefresherRestore(){return function refresherRestore(){null==m||m()}()},onRefresherAbort:function onRefresherAbort(){return function refresherAbort(){null==R||R()}()},refresherBackground:"#F8F8F8",enableBackToTop:F,scrollTop:I,children:[function component(){return S&&U?(0,u.jsxs)(u.Fragment,{children:[(2==k||3==k)&&(0,u.jsxs)(n.G7,{style:{paddingBottom:"".concat(Z,"rpx")},className:t.Z.scrollViewCon,children:[j,(0,u.jsx)(n.G7,{className:t.Z.infinite_scroll,children:2==k?(0,u.jsxs)(n.G7,{className:t.Z.loading_more,children:["加载中",(0,u.jsx)(c.Z,{})]}):(0,u.jsx)(n.G7,{className:t.Z.noMore,children:"没有更多数据了"})})]}),0==k&&(0,u.jsx)(s.Z,{}),1==k&&(L||(0,u.jsx)(i.Z,{picUrl:P?"".concat(f.KC).concat(P):f.up,text:E||"暂无数据"}))]}):(0,u.jsx)(n.G7,{style:{paddingBottom:"".concat(Z,"rpx")},className:t.Z.scrollViewCon,children:j})}(),T&&(0,u.jsx)(n.G7,{className:"common_safe_area_y"})]})})};r.Z=(0,l.memo)(a)}}]);
@@ -0,0 +1 @@
"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([[8044],{9218:function(_,e){e.Z={common_safe_area_y:"index-module__common_safe_area_y___TfGaJ",hoverClass:"index-module__hoverClass___IvFjO","full-100":"index-module__full-100___Zf65j",scroll_main:"index-module__scroll_main___rWSFU",infinite_scroll:"index-module__infinite_scroll___GY4by",loading_more:"index-module__loading_more___Iljay",noMore:"index-module__noMore___kPVsd"}}}]);
@@ -1 +0,0 @@
"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([[635],{9218:function(_,e){e.Z={common_safe_area_y:"index-module__common_safe_area_y___TfGaJ",hoverClass:"index-module__hoverClass___IvFjO","full-100":"index-module__full-100___Zf65j",scroll_main:"index-module__scroll_main___rWSFU",infinite_scroll:"index-module__infinite_scroll___GY4by",loading_more:"index-module__loading_more___Iljay",noMore:"index-module__noMore___kPVsd"}}}]);
@@ -1 +1 @@
"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([[6878],{1027:function(s,e,a){var c=a(1515),i=a(7294),t=a(1805),n=a(5893),o=function Empty(s){var e=s.picUrl,a=void 0===e?"":e,i=s.text,o=void 0===i?"无搜索历史":i;return(0,n.jsxs)(c.G7,{className:t.Z.mainBox,children:[(0,n.jsx)(c.Ee,{className:t.Z.pic,mode:"aspectFill",lazyLoad:!0,src:a}),(0,n.jsx)(c.G7,{className:t.Z.text,children:o})]})};e.Z=(0,i.memo)(o)}}]);
"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([[4763],{1027:function(s,e,a){var c=a(1515),i=a(7294),t=a(1805),n=a(5893),o=function Empty(s){var e=s.picUrl,a=void 0===e?"":e,i=s.text,o=void 0===i?"无搜索历史":i;return(0,n.jsxs)(c.G7,{className:t.Z.mainBox,children:[(0,n.jsx)(c.Ee,{className:t.Z.pic,mode:"aspectFill",lazyLoad:!0,src:a}),(0,n.jsx)(c.G7,{className:t.Z.text,children:o})]})};e.Z=(0,i.memo)(o)}}]);