diff --git a/src/pages/colorRelated/sampleComparison/index.tsx b/src/pages/colorRelated/sampleComparison/index.tsx index 9c033ad..996152c 100644 --- a/src/pages/colorRelated/sampleComparison/index.tsx +++ b/src/pages/colorRelated/sampleComparison/index.tsx @@ -8,6 +8,7 @@ import { toRgb } from '@/common/bluetooth/color/colorSpace' import styles from './index.module.scss' import { productabsorbcontrast } from '@/api/index' import { isObject } from '@tarojs/shared' +import { alert } from '@/common/common' export default () => { //搜索参数 const [searchField, setSearchField] = useState({ @@ -102,6 +103,7 @@ export default () => { }) return } + alert.showLoading('分析中') const query = { ...searchField, } @@ -119,6 +121,7 @@ export default () => { let resCont = diffarray.filter(item => item).join(',') setResult(resCont) } + alert.hideLoading() } return ( diff --git a/src/pages/shopping/index.tsx b/src/pages/shopping/index.tsx index 3f5bda5..fa67eb0 100644 --- a/src/pages/shopping/index.tsx +++ b/src/pages/shopping/index.tsx @@ -94,7 +94,7 @@ const ShoppingCartContainer: FC = () => { const status = dataLoadingStatus({ list: shoppingCartData.list, total: shoppingCartData.total, - status: state.loading, + status: state.loading || true, }) console.log('status==>', status) return status