This commit is contained in:
2023-05-12 11:43:37 +08:00
commit afec01d797
770 changed files with 38861 additions and 0 deletions
+2
View File
@@ -0,0 +1,2 @@
"use strict";require("./sub-common/db6cc8fba2c34d36042a60bcf5f10485.js");require("./sub-common/510d0e7078f44d770a0720344fb06369.js");require("./sub-common/0762d0d2445fe1200cae192cedb39f4b.js");require("./sub-common/cf216475951e5960bcea5b5b9d46933b.js");require("./sub-common/5c9174b6e60227f44005321484937d1d.js");require("./sub-common/0b7b2bdfcff5479b356a685057eb3efe.js");/*! For license information please see index.js.LICENSE.txt */
(wx.webpackJsonp=wx.webpackJsonp||[]).push([["pages/creditUsed/index"],{"./node_modules/babel-loader/lib/index.js??ruleSet[1].rules[5].use[0]!./src/pages/creditUsed/index.tsx":function(e,s,t){var a=t("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"),d=t("./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js"),i=t("./node_modules/react/cjs/react.production.min.js"),c=t("./node_modules/classnames/index.js"),r=t.n(c),n=t("./src/api/creditLine.ts"),o=t("./src/components/InfiniteScrollPaging/index.tsx"),l=t("./src/common/format.ts"),u=t("./src/use/useLogin.ts"),m=t("./src/use/useCommon.ts"),b=t("./node_modules/react/cjs/react-jsx-runtime.production.min.js");s.default=function CreditUsed(){var e;(0,u.default)(),(0,m.useBuriedDataPoint)("pages/creditUsed/index");var s=(0,n.creditListApi)(),t=s.fetchData,c=(s.state,(0,i.useState)({list:[],total:0})),f=(0,a.default)(c,2),p=f[0],x=f[1],j=(0,i.useCallback)((function(e){x({list:e.data.list,total:e.data.total})}),[]);return(0,b.jsx)(d.View,{className:"credit-used",children:(0,b.jsxs)(o.default,{fetchData:t,change:j,children:[null==p||null===(e=p.list)||void 0===e?void 0:e.map((function(e,s){return(0,b.jsxs)(d.View,{className:"credit-used-list",children:[(0,b.jsxs)(d.View,{className:"credit-used-list-top",children:[(0,b.jsx)(d.View,{className:"credit-used-list-type",children:e.quota_order_status_name}),(0,b.jsxs)(d.View,{className:r()("credit-used-list-price",1==e.trans_type?"credit-used-list-price-add":"green"),children:[2==e.trans_type?"-":"+",(0,l.toDecimal2)((0,l.formatPriceDiv)(e.amount)).toLocaleString()]})]}),(0,b.jsxs)(d.View,{className:"credit-used-list-bottom",children:[(0,b.jsx)(d.View,{className:"credit-used-list-date",children:(0,l.formatDateTime)(e.order_pay_time)}),(0,b.jsxs)(d.View,{className:"credit-used-list-orderno",children:["订单号:",e.order_no]})]})]},s)})),(0,b.jsx)(d.View,{className:"credit-used-list"})]})})}},"./src/pages/creditUsed/index.tsx":function(e,s,t){var a=t("./node_modules/@tarojs/runtime/dist/runtime.esm.js"),d=t("./node_modules/babel-loader/lib/index.js??ruleSet[1].rules[5].use[0]!./src/pages/creditUsed/index.tsx");d.default.enableShareAppMessage=!0;Page((0,a.createPageConfig)(d.default,"pages/creditUsed/index",{root:{cn:[]}},{navigationBarTitleText:"已用额度",enableShareAppMessage:!0}||{})),d.default}},function(e){e.O(0,["sub-common/f7c2016e1fc8045300ee51e652beb947","sub-common/db6cc8fba2c34d36042a60bcf5f10485","sub-common/510d0e7078f44d770a0720344fb06369","sub-common/0762d0d2445fe1200cae192cedb39f4b","sub-common/31c2143408a2e4f5735ccb6e07aa07fc","sub-common/cf216475951e5960bcea5b5b9d46933b","sub-common/5c9174b6e60227f44005321484937d1d","sub-common/0b7b2bdfcff5479b356a685057eb3efe","taro","vendors","common"],(function(){return s="./src/pages/creditUsed/index.tsx",e(e.s=s);var s}));e.O()}]);
+31
View File
@@ -0,0 +1,31 @@
/*! ../../../node_modules/babel-loader/lib/index.js??ruleSet[1].rules[5].use[0]!./index.tsx */
/*! ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js */
/*! @/api/creditLine */
/*! @/common/format */
/*! @/components/InfiniteScrollPaging */
/*! @/use/useCommon */
/*! @/use/useLogin */
/*! @tarojs/components */
/*! @tarojs/runtime */
/*! classnames */
/*! react */
/*! react/jsx-runtime */
/*!****************************************!*\
!*** ./src/pages/creditUsed/index.tsx ***!
\****************************************/
/*!*************************************************************************************************************!*\
!*** ./node_modules/babel-loader/lib/index.js??ruleSet[1].rules[5].use[0]!./src/pages/creditUsed/index.tsx ***!
\*************************************************************************************************************/
+1
View File
@@ -0,0 +1 @@
{"navigationBarTitleText":"已用额度","usingComponents":{"custom-wrapper":"../../custom-wrapper","comp":"../../comp"}}
+2
View File
@@ -0,0 +1,2 @@
<import src="../../base.wxml"/>
<template is="taro_tmpl" data="{{root:root}}" />
+73
View File
@@ -0,0 +1,73 @@
@charset "UTF-8";@import "./sub-common/f7c2016e1fc8045300ee51e652beb947.wxss";@import "./sub-common/31c2143408a2e4f5735ccb6e07aa07fc.wxss";/*!******************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[2].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[2].use[2]!./node_modules/resolve-url-loader/index.js!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[2].use[4]!./src/pages/creditUsed/index.scss ***!
\******************************************************************************************************************************************************************************************************************************************************************************************************************************/
.common_safe_area_y {
width: 100%;
height: constant(safe-area-inset-bottom);
/* 兼容 iOS < 11.2 */
height: env(safe-area-inset-bottom);
/* 兼容 iOS >= 11.2 */
}
.hoverClass {
-webkit-filter: brightness(70%);
filter: brightness(70%);
}
.full-100 {
width: 100%;
height: 100%;
}
.credit-used {
height: 100vh;
background-color: #f3f3f3;
}
.credit-used .credit-used-list {
background-color: white;
padding: 30rpx 25rpx;
border-bottom: 1px solid #f6f6f6;
}
.credit-used .credit-used-list-top {
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-justify-content: space-between;
-ms-flex-pack: justify;
justify-content: space-between;
margin-bottom: 20rpx;
}
.credit-used .credit-used-list-type {
font-size: 26rpx;
font-weight: 400;
color: #000000;
}
.credit-used .credit-used-list-price {
font-size: 28rpx;
font-weight: 400;
}
.credit-used .credit-used-list-price-add {
color: red;
}
.credit-used .credit-used-list-bottom {
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-justify-content: space-between;
-ms-flex-pack: justify;
justify-content: space-between;
}
.credit-used .credit-used-list-date {
font-size: 24rpx;
font-weight: 400;
color: #ababab;
}
.credit-used .credit-used-list-orderno {
font-size: 20rpx;
font-weight: 400;
color: #ababab;
}
.credit-used .green {
color: #07C160;
}
.credit-used .red {
color: #FF0000;
}
@@ -0,0 +1,2 @@
/*! For license information please see 0762d0d2445fe1200cae192cedb39f4b.js.LICENSE.txt */
"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([["sub-common/0762d0d2445fe1200cae192cedb39f4b"],{"./src/components/infiniteScroll/index.tsx":function(e,r,o){var n=o("./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js"),l=o("./node_modules/react/cjs/react.production.min.js"),s=o("./src/components/loadingCard/index.tsx"),t=o("./src/components/infiniteScroll/index.module.scss"),c=o("./src/components/dotLoading/index.tsx"),i=o("./src/components/empty/index.tsx"),f=o("./src/common/constant.ts"),a=o("./node_modules/react/cjs/react-jsx-runtime.production.min.js"),d=function InfiniteScroll(e){var r=e.styleObj,o=e.selfonScrollToLower,d=e.selfOnScrollToUpper,u=e.selfOnScroll,m=e.selfOnRefresherPulling,h=e.selfOnRefresherRefresh,p=e.selfOnRefresherRestore,x=e.selfOnRefresherAbort,R=e.safeAreaInsetBottom,j=void 0===R||R,w=e.enableLoadMoreStatus,T=void 0===w||w,g=e.children,S=e.lowerThresholdNum,b=void 0===S?30:S,v=e.paddingBottom,_=void 0===v?0:v,N=e.refresherTriggered,V=void 0!==N&&N,y=e.refresherEnabled,A=void 0!==y&&y,B=e.moreStatus,M=void 0===B||B,O=e.statusMore,L=void 0===O?0:O,P=e.enableBackToTop,U=void 0===P||P,k=e.emptySlot,C=e.defaultUrl,E=void 0===C?"":C,F=e.defaultText,I=void 0===F?"":F,G=(0,l.useMemo)((function(){if(0==L)return.1}),[L]);return(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)(n.ScrollView,{id:"infiniteScroll",style:r,className:t.default.scroll_main,scrollY:!0,onScrollToLower:function onScrollToLower(){return function scrollToLower(){null==o||o()}()},onScrollToUpper:function onScrollToUpper(){return function scrollToUpper(){null==d||d()}()},onScroll:function onScroll(e){return function scroll(e){null==u||u(e)}(e)},lowerThreshold:b,refresherEnabled:A,refresherTriggered:V,onRefresherPulling:function onRefresherPulling(){return function refresherPulling(){null==m||m()}()},onRefresherRefresh:function onRefresherRefresh(){return function refresherRefresh(){null==h||h()}()},onRefresherRestore:function onRefresherRestore(){return function refresherRestore(){null==p||p()}()},onRefresherAbort:function onRefresherAbort(){return function refresherAbort(){null==x||x()}()},refresherBackground:"#F8F8F8",enableBackToTop:U,scrollTop:G,children:[function component(){return T&&M?(0,a.jsxs)(a.Fragment,{children:[(2==L||3==L)&&(0,a.jsxs)(n.View,{style:{paddingBottom:"".concat(_,"rpx")},className:t.default.scrollViewCon,children:[g,(0,a.jsx)(n.View,{className:t.default.infinite_scroll,children:2==L?(0,a.jsxs)(n.View,{className:t.default.loading_more,children:["加载中",(0,a.jsx)(c.default,{})]}):(0,a.jsx)(n.View,{className:t.default.noMore,children:"没有更多数据了"})})]}),0==L&&(0,a.jsx)(s.default,{}),1==L&&(k||(0,a.jsx)(i.default,{picUrl:E?"".concat(f.IMG_CND_Prefix).concat(E):f.SEARCH_EMPTY_IMAGE,text:I||"暂无数据"}))]}):(0,a.jsx)(n.View,{style:{paddingBottom:"".concat(_,"rpx")},className:t.default.scrollViewCon,children:g})}(),j&&(0,a.jsx)(n.View,{className:"common_safe_area_y"})]})})};r.default=(0,l.memo)(d)}}]);
@@ -0,0 +1,2 @@
/*! For license information please see 0b7b2bdfcff5479b356a685057eb3efe.js.LICENSE.txt */
"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([["sub-common/0b7b2bdfcff5479b356a685057eb3efe"],{"./src/api/creditLine.ts":function(t,e,i){i.d(e,{creditInfoApi:function(){return n},creditListApi:function(){return u}});var r=i("./src/use/useHttp.ts"),n=function creditInfoApi(){return(0,r.useRequest)({url:"/v1/mall/credit",method:"get"})},u=function creditListApi(){return(0,r.useRequest)({url:"/v1/mall/credit/list",method:"get"})}}}]);
@@ -0,0 +1,44 @@
/*!**********************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[0].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[0].use[2]!./node_modules/resolve-url-loader/index.js!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[0].use[4]!./src/components/infiniteScroll/index.module.scss ***!
\**********************************************************************************************************************************************************************************************************************************************************************************************************************************************/
@charset "UTF-8";
.index-module__common_safe_area_y___TfGaJ {
width: 100%;
height: constant(safe-area-inset-bottom);
/* 兼容 iOS < 11.2 */
height: env(safe-area-inset-bottom);
/* 兼容 iOS >= 11.2 */
}
.index-module__hoverClass___IvFjO {
-webkit-filter: brightness(70%);
filter: brightness(70%);
}
.index-module__full-100___Zf65j {
width: 100%;
height: 100%;
}
.index-module__scroll_main___rWSFU {
height: 100%;
}
.index-module__scroll_main___rWSFU .index-module__infinite_scroll___GY4by {
font-size: 24rpx;
color: #ababab;
width: 100%;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-justify-content: center;
-ms-flex-pack: center;
justify-content: center;
}
.index-module__scroll_main___rWSFU .index-module__infinite_scroll___GY4by .index-module__loading_more___Iljay {
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
}
.index-module__scroll_main___rWSFU .index-module__infinite_scroll___GY4by .index-module__noMore___kPVsd {
padding-top: 20rpx;
}
@@ -0,0 +1,2 @@
/*! For license information please see 510d0e7078f44d770a0720344fb06369.js.LICENSE.txt */
"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([["sub-common/510d0e7078f44d770a0720344fb06369"],{"./src/components/empty/index.module.scss":function(_,e){e.default={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"}}}]);
@@ -0,0 +1,2 @@
/*! For license information please see 5c9174b6e60227f44005321484937d1d.js.LICENSE.txt */
"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([["sub-common/5c9174b6e60227f44005321484937d1d"],{"./src/components/InfiniteScrollPaging/index.tsx":function(e,t,a){var r=a("./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js"),s=a("./node_modules/@babel/runtime/helpers/esm/objectSpread2.js"),n=a("./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js"),u=a("./node_modules/@babel/runtime/helpers/esm/slicedToArray.js"),l=a("./node_modules/react/cjs/react.production.min.js"),o=a("./src/components/infiniteScroll/index.tsx"),c=a("./src/common/util.ts"),f=a("./src/common/common.ts"),i=a("./node_modules/react/cjs/react-jsx-runtime.production.min.js");t.default=function InfiniteScrollPaging(e){var t=e.query,a=void 0===t?{}:t,d=(0,l.useRef)({}),m=(0,l.useState)({list:[],total:0}),p=(0,u.default)(m,2),h=p[0],g=p[1],S=(0,l.useState)({refreshStatus:!1,moreStatus:!1,page:1,size:10,loading:!1}),b=(0,u.default)(S,2),_=b[0],j=b[1],v=function(){var t=(0,n.default)((0,r.default)().mark((function _callee(t,n){var u,l;return(0,r.default)().wrap((function _callee$(r){for(;;)switch(r.prev=r.next){case 0:return u=d.current,j((0,s.default)((0,s.default)((0,s.default)({},u),t),{},{loading:!0})),r.next=4,e.fetchData((0,s.default)((0,s.default)({},a),{},{page:u.page,size:u.size}));case 4:(l=r.sent).success?(e.change&&e.change(l),l.data.total<=0?j((0,s.default)((0,s.default)((0,s.default)({},u),n),{},{loading:!1})):(g({list:l.data.list,total:l.data.total}),j((0,s.default)((0,s.default)({},u),{},{refreshStatus:!1,moreStatus:!1,loading:!1})))):(f.alert.none(l.msg),j((0,s.default)((0,s.default)({},u),{},{refreshStatus:!1,moreStatus:!0,loading:!1})));case 6:case"end":return r.stop()}}),_callee)})));return function getData(e,a){return t.apply(this,arguments)}}(),x=(0,l.useRef)({}),w=function(){var e=(0,n.default)((0,r.default)().mark((function _callee2(){var e;return(0,r.default)().wrap((function _callee2$(t){for(;;)switch(t.prev=t.next){case 0:e=d.current,j((0,s.default)((0,s.default)({},e),{},{page:1,size:10})),v({refreshStatus:!0,moreStatus:!1},{refreshStatus:!1,moreStatus:!0});case 3:case"end":return t.stop()}}),_callee2)})));return function handleRefresh(){return e.apply(this,arguments)}}(),y=function(){var e=(0,n.default)((0,r.default)().mark((function _callee3(){var e,t;return(0,r.default)().wrap((function _callee3$(a){for(;;)switch(a.prev=a.next){case 0:e=x.current,t=d.current,e.list.length<e.total&&(j((0,s.default)((0,s.default)({},t),{},{page:++t.page,size:++t.page*t.size})),v({moreStatus:!0},{moreStatus:!0}));case 3:case"end":return a.stop()}}),_callee3)})));return function handleMoreLoad(){return e.apply(this,arguments)}}(),z=(0,l.useMemo)((function(){return(0,c.dataLoadingStatus)({list:h.list,total:h.total,status:_.loading})}),[_.loading]);return(0,l.useEffect)((function(){d.current=_,x.current=h,v({moreStatus:!0},{moreStatus:!0})}),[]),(0,l.useEffect)((function(){(0,f.isEmptyObject)(a)||(g({list:[],total:0}),v({moreStatus:!0},{moreStatus:!0}))}),[a]),(0,i.jsx)(o.default,{refresherEnabled:!0,refresherTriggered:_.refreshStatus,moreStatus:_.moreStatus,selfOnRefresherRefresh:w,selfonScrollToLower:y,statusMore:z,children:e.children})}}}]);
@@ -0,0 +1,2 @@
/*! For license information please see cf216475951e5960bcea5b5b9d46933b.js.LICENSE.txt */
"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([["sub-common/cf216475951e5960bcea5b5b9d46933b"],{"./src/components/infiniteScroll/index.module.scss":function(_,e){e.default={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"}}}]);
@@ -0,0 +1,2 @@
/*! For license information please see db6cc8fba2c34d36042a60bcf5f10485.js.LICENSE.txt */
"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([["sub-common/db6cc8fba2c34d36042a60bcf5f10485"],{"./src/components/empty/index.tsx":function(e,s,c){var t=c("./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js"),o=c("./node_modules/react/cjs/react.production.min.js"),a=c("./src/components/empty/index.module.scss"),n=c("./node_modules/react/cjs/react-jsx-runtime.production.min.js"),d=function Empty(e){var s=e.picUrl,c=void 0===s?"":s,o=e.text,d=void 0===o?"无搜索历史":o;return(0,n.jsxs)(t.View,{className:a.default.mainBox,children:[(0,n.jsx)(t.Image,{className:a.default.pic,mode:"aspectFill",lazyLoad:!0,src:c}),(0,n.jsx)(t.View,{className:a.default.text,children:d})]})};s.default=(0,o.memo)(d)}}]);
@@ -0,0 +1,44 @@
/*!*************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[0].use[1]!./node_modules/postcss-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[0].use[2]!./node_modules/resolve-url-loader/index.js!./node_modules/sass-loader/dist/cjs.js??ruleSet[1].rules[1].oneOf[0].use[4]!./src/components/empty/index.module.scss ***!
\*************************************************************************************************************************************************************************************************************************************************************************************************************************************/
@charset "UTF-8";
.index-module__common_safe_area_y___qVHLM {
width: 100%;
height: constant(safe-area-inset-bottom);
/* 兼容 iOS < 11.2 */
height: env(safe-area-inset-bottom);
/* 兼容 iOS >= 11.2 */
}
.index-module__hoverClass___xmc2X {
-webkit-filter: brightness(70%);
filter: brightness(70%);
}
.index-module__full-100___f4rUs {
width: 100%;
height: 100%;
}
.index-module__mainBox___oYq7z {
height: 100%;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
-webkit-justify-content: center;
-ms-flex-pack: center;
justify-content: center;
-webkit-flex-direction: column;
-ms-flex-direction: column;
flex-direction: column;
}
.index-module__mainBox___oYq7z .index-module__pic___jqHuf {
width: 522rpx;
height: 322rpx;
margin-bottom: 24rpx;
}
.index-module__mainBox___oYq7z .index-module__text___cFKLZ {
font-size: 26rpx;
color: #ababab;
font-weight: 400;
}