Commit bd41662f by 姜雷

Merge branch 'test'

parents 9b805d52 c7a2d77e
...@@ -45,10 +45,7 @@ function AppLaunch() { ...@@ -45,10 +45,7 @@ function AppLaunch() {
Taro.showLoading(); Taro.showLoading();
const { uuId, serviceId } = entity; const { uuId, serviceId } = entity;
if (uuId && serviceId) { if (uuId && serviceId) {
fetchAppLaunchCustomer({ fetchAppLaunchCustomer(entity)
...entity,
timeStamp: Math.floor(new Date().getTime() / 1000),
})
.then(res => { .then(res => {
console.log(res); console.log(res);
Taro.hideLoading(); Taro.hideLoading();
......
...@@ -63,6 +63,21 @@ ...@@ -63,6 +63,21 @@
flex: 1; flex: 1;
overflow-y: scroll; overflow-y: scroll;
padding: 10px 40px 20px; padding: 10px 40px 20px;
.ShowerAppointment-EmptyBox {
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
font-size: 28px;
color: #fff;
}
.ShowerAppointment-EmptyIcon {
width: 292px;
height: 248px;
margin-bottom: 72px;
}
} }
.ShowerAppointment-Footer { .ShowerAppointment-Footer {
display: flex; display: flex;
......
import './ShowerAppointment.scss'; import './ShowerAppointment.scss';
import { View, Input, Text, ScrollView } from '@tarojs/components'; import { View, Input, Text, ScrollView, Image } from '@tarojs/components';
import Taro, { useState, useEffect } from '@tarojs/taro'; import Taro, { useState, useEffect } from '@tarojs/taro';
import AppointermentCard from './components/AppointermentCard/AppointermentCard'; import AppointermentCard from './components/AppointermentCard/AppointermentCard';
import useInputValue from '@/hooks/useInputValue'; import useInputValue from '@/hooks/useInputValue';
...@@ -19,6 +19,7 @@ import useCheckAppointable from './hooks/useCheckAppointable'; ...@@ -19,6 +19,7 @@ import useCheckAppointable from './hooks/useCheckAppointable';
import { ShowerState } from '@/store/rootReducers/shower'; import { ShowerState } from '@/store/rootReducers/shower';
import AppBackButton from '@/components/AppBackButton/AppBackButton'; import AppBackButton from '@/components/AppBackButton/AppBackButton';
import WaitPayOrderComponent from '@/components/WaitPayOrder/WaitPayOrder'; import WaitPayOrderComponent from '@/components/WaitPayOrder/WaitPayOrder';
import EmptyIcon from '../../images/shower/empty_yuyue@2x.png';
function ShowerAppointment() { function ShowerAppointment() {
const userInfo = useSelector( const userInfo = useSelector(
...@@ -259,9 +260,16 @@ function ShowerAppointment() { ...@@ -259,9 +260,16 @@ function ShowerAppointment() {
scrollWithAnimation scrollWithAnimation
lowerThreshold={50} lowerThreshold={50}
onScrollToLower={fetchMoreRecordList}> onScrollToLower={fetchMoreRecordList}>
{records.map(item => ( {records.length ? (
records.map(item => (
<AppointermentCard key={item.deviceCode} data={item} /> <AppointermentCard key={item.deviceCode} data={item} />
))} ))
) : (
<View className='ShowerAppointment-EmptyBox'>
<Image className='ShowerAppointment-EmptyIcon' src={EmptyIcon} />
暂无预约记录~
</View>
)}
</ScrollView> </ScrollView>
)} )}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment