Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
self-support
Project
Project
Details
Activity
Releases
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
李俊赕
self-support
Commits
0a83b361
Commit
0a83b361
authored
Apr 26, 2021
by
Morson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改预约组件信息
parent
2b16f348
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
14 deletions
+20
-14
appoint-time.vue
src/components/appoint/appoint-time.vue
+4
-4
feedback.vue
src/pages/order/feedback.vue
+16
-10
No files found.
src/components/appoint/appoint-time.vue
View file @
0a83b361
...
...
@@ -7,7 +7,7 @@
<view
class=
"select-date"
>
<view
class=
"u-flex u-row-between "
>
<view
class=
"txt"
>
选择日期
</view>
<view
class=
"txt active"
>
2021.04.21
</view>
<view
class=
"txt active"
>
{{
dateList
[
currentDay
].
day
}}
</view>
</view>
<view
class=
"u-m-t-30 u-flex u-row-between date-list"
>
<view
:class=
"
{'date-item':true,'active':index===currentDay}"
...
...
@@ -24,7 +24,7 @@
<view
class=
"select-time u-p-t-50"
>
<view
class=
"u-flex u-row-between"
>
<view
class=
"txt"
>
选择时间
</view>
<view
class=
"txt active"
>
14:00-16:00
</view>
<view
class=
"txt active"
>
{{
timeList
[
currentTime
]
}}
</view>
</view>
<view
class=
"u-p-t-30 u-flex u-flex-wrap time-list"
>
<view
@
click=
"timeChange(item,index,timeList)"
...
...
@@ -71,8 +71,8 @@
weekDay
:
'周三'
,
day
:
'21'
},
],
timeList
:
[
'06:00-08:00'
,
'0
6:00-08:00'
,
'06:00-08:00'
,
'06:00-08:00'
,
'06:00-08:00'
,
'06:00-0
8:00'
,
'
06:00-08:00'
,
'06:00-08:00'
,
'06:00-08
:00'
timeList
:
[
'06:00-08:00'
,
'0
8:00-10:00'
,
'10:00-12:00'
,
'12:00-14:00'
,
'14:00-16:00'
,
'16:00-1
8:00'
,
'
18:00-20:00'
,
'20:00-22:00'
,
'22:00-24
:00'
]
}
},
...
...
src/pages/order/feedback.vue
View file @
0a83b361
...
...
@@ -62,7 +62,7 @@
<appoint-time
@
dateChange=
"dateChange"
@
timeChange=
"timeChange"
@
weekChange=
"weekChange"
></appoint-time>
</view>
<view
class=
"u-m-60"
>
<button
class=
"btn"
@
click=
"submitFrom"
:loading=
"submiting"
:disabled=
"disabledSubmit
Btn
"
>
确定
</button>
<button
class=
"btn"
@
click=
"submitFrom"
:loading=
"submiting"
:disabled=
"disabledSubmit"
>
确定
</button>
</view>
</view>
</
template
>
...
...
@@ -114,18 +114,19 @@
}
},
computed
:
{
disabledSubmitBtn
()
{
disabledSubmit
()
{
let
self
=
this
if
(
self
.
trace
.
reasonType
==
'预约'
&&
(
self
.
trace
.
appointmentDatetime
==
null
||
self
.
trace
.
appointmentDatetimeRange
==
''
||
self
.
trace
.
nextTraceDatetime
==
''
))
{
return
true
}
else
if
(
self
.
trace
.
reasonType
!=
'预约'
&&
(
!
self
.
trace
.
reasonType
||
!
self
.
trace
.
reasonRelegation
||
!
self
.
trace
.
reason
))
{
return
true
debugger
if
(
self
.
trace
.
reasonType
&&
(
self
.
trace
.
reasonType
==
'报备'
||
self
.
trace
.
reasonType
==
'改约'
))
{
if
(
self
.
trace
.
reasonRelegation
&&
self
.
trace
.
reason
&&
self
.
trace
.
appointmentDatetimeRange
)
{
return
false
}
}
return
fals
e
return
tru
e
},
},
async
onLoad
(
e
)
{
...
...
@@ -322,8 +323,13 @@
&
:
:
after
{
content
:
''
;
height
:
0
;
border
:
none
;
}
}
button
[
disabled
]
:not
([
type
])
{
background
:
#D1D4D4
;
color
:
#FFFFFF
;
}
.btn
{
padding
:
30rpx
;
border-radius
:
52rpx
;
...
...
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