Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wx-school-app
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
姜雷
wx-school-app
Commits
c7a2d77e
Commit
c7a2d77e
authored
Aug 20, 2019
by
姜雷
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' into test
parents
57ef7412
12040c3f
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
7 deletions
+27
-7
empty_yuyue@2x.png
src/images/shower/empty_yuyue@2x.png
+0
-0
AppLaunch.tsx
src/pages/AppLaunch/AppLaunch.tsx
+1
-4
ShowerAppointment.scss
src/pages/Shower/ShowerAppointment.scss
+15
-0
ShowerAppointment.tsx
src/pages/Shower/ShowerAppointment.tsx
+11
-3
No files found.
src/images/shower/empty_yuyue@2x.png
0 → 100644
View file @
c7a2d77e
13.4 KB
src/pages/AppLaunch/AppLaunch.tsx
View file @
c7a2d77e
...
...
@@ -45,10 +45,7 @@ function AppLaunch() {
Taro
.
showLoading
();
const
{
uuId
,
serviceId
}
=
entity
;
if
(
uuId
&&
serviceId
)
{
fetchAppLaunchCustomer
({
...
entity
,
timeStamp
:
Math
.
floor
(
new
Date
().
getTime
()
/
1000
),
})
fetchAppLaunchCustomer
(
entity
)
.
then
(
res
=>
{
console
.
log
(
res
);
Taro
.
hideLoading
();
...
...
src/pages/Shower/ShowerAppointment.scss
View file @
c7a2d77e
...
...
@@ -63,6 +63,21 @@
flex
:
1
;
overflow-y
:
scroll
;
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
{
display
:
flex
;
...
...
src/pages/Shower/ShowerAppointment.tsx
View file @
c7a2d77e
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
AppointermentCard
from
'./components/AppointermentCard/AppointermentCard'
;
import
useInputValue
from
'@/hooks/useInputValue'
;
...
...
@@ -19,6 +19,7 @@ import useCheckAppointable from './hooks/useCheckAppointable';
import
{
ShowerState
}
from
'@/store/rootReducers/shower'
;
import
AppBackButton
from
'@/components/AppBackButton/AppBackButton'
;
import
WaitPayOrderComponent
from
'@/components/WaitPayOrder/WaitPayOrder'
;
import
EmptyIcon
from
'../../images/shower/empty_yuyue@2x.png'
;
function
ShowerAppointment
()
{
const
userInfo
=
useSelector
(
...
...
@@ -259,9 +260,16 @@ function ShowerAppointment() {
scrollWithAnimation
lowerThreshold=
{
50
}
onScrollToLower=
{
fetchMoreRecordList
}
>
{
records
.
map
(
item
=>
(
{
records
.
length
?
(
records
.
map
(
item
=>
(
<
AppointermentCard
key=
{
item
.
deviceCode
}
data=
{
item
}
/>
))
}
))
)
:
(
<
View
className=
'ShowerAppointment-EmptyBox'
>
<
Image
className=
'ShowerAppointment-EmptyIcon'
src=
{
EmptyIcon
}
/>
暂无预约记录~
</
View
>
)
}
</
ScrollView
>
)
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment