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
aa643772
Commit
aa643772
authored
Apr 22, 2021
by
李俊赕
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
过程反馈静态页面
parent
4b2490e8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
86 additions
and
105 deletions
+86
-105
appoint-time.vue
src/components/appoint/appoint-time.vue
+66
-40
feedback.vue
src/pages/order/feedback.vue
+20
-65
No files found.
src/components/appoint/appoint-time.vue
View file @
aa643772
<!-- 预约时间 -->
<
template
>
<view
class=
"appoint-box"
>
<view
class=
"select-date"
>
<view
class=
"u-flex u-row-between "
>
<view
class=
"txt"
>
选择日期
</view>
<view
class=
"txt active"
>
2021.04.21
</view>
</view>
<view
class=
"u-p-t-30 u-flex u-row-between date-list"
>
<view
:class=
"
{'date-item':true,'active':index===currentDay}" @click="dateChange(item,index,dateList)" v-for="(item,index) in dateList"
:key="index">
<text
class=
"day week"
>
{{
item
.
weekDay
}}
</text>
<text
class=
"day"
>
{{
item
.
day
}}
</text>
<view
:class=
"
{'con-box':titleShow}">
<view
class=
"title"
v-if=
"titleShow"
>
{{
'预约时间'
}}
</view>
<view
class=
"u-m-t-40"
>
<view
class=
"appoint-box"
>
<view
class=
"select-date"
>
<view
class=
"u-flex u-row-between "
>
<view
class=
"txt"
>
选择日期
</view>
<view
class=
"txt active"
>
2021.04.21
</view>
</view>
<view
class=
"u-p-t-30 u-flex u-row-between date-list"
>
<view
:class=
"
{'date-item':true,'active':index===currentDay}"
@click="dateChange(item,index,dateList)" v-for="(item,index) in dateList" :key="index">
<text
class=
"day week"
>
{{
item
.
weekDay
}}
</text>
<text
class=
"day"
>
{{
item
.
day
}}
</text>
</view>
</view>
</view>
</view>
</view>
<!-- weekChange -->
<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>
<view
class=
"u-p-t-30 u-flex u-flex-wrap time-list"
>
<view
@
click=
"timeChange(item,index,timeList)"
:class=
"
{'time-item':true,'active':index===currentTime}" v-for="(item,index) in timeList"
:key="index">
<text
class=
"time"
>
{{
item
}}
</text>
<!-- weekChange -->
<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>
<view
class=
"u-p-t-30 u-flex u-flex-wrap time-list"
>
<view
@
click=
"timeChange(item,index,timeList)"
:class=
"
{'time-item':true,'active':index===currentTime}" v-for="(item,index) in timeList"
:key="index">
<text
class=
"time"
>
{{
item
}}
</text>
</view>
</view>
</view>
</view>
</view>
</view>
</
template
>
<
script
>
export
default
{
props
:{
props
:
{
titleShow
:
{
type
:
Boolean
,
default
:
true
},
},
data
()
{
return
{
currentDay
:
0
,
currentTime
:
0
,
currentDay
:
0
,
currentTime
:
0
,
dateList
:
[{
weekDay
:
'周三'
,
day
:
'21'
...
...
@@ -64,42 +73,56 @@
]
}
},
methods
:{
getDateList
(){
methods
:
{
getDateList
()
{
// 获取日期
},
dateChange
(
item
,
index
,
list
)
{
dateChange
(
item
,
index
,
list
)
{
let
data
=
{
item
,
index
,
list
,
}
this
.
currentDay
=
index
this
.
$emit
(
'date-change'
,
data
)
this
.
$emit
(
'date-change'
,
data
)
},
timeChange
(
item
,
index
,
list
)
{
timeChange
(
item
,
index
,
list
)
{
let
data
=
{
item
,
index
,
list
,
}
this
.
currentTime
=
index
this
.
$emit
(
'time-change'
,
data
)
this
.
$emit
(
'time-change'
,
data
)
},
weekChange
(
item
,
index
,
list
)
{
weekChange
(
item
,
index
,
list
)
{
let
data
=
{
item
,
index
,
list
,
}
this
.
$emit
(
'week-change'
,
data
)
this
.
$emit
(
'week-change'
,
data
)
},
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.con-box
{
margin-top
:
30rpx
;
padding
:
30rpx
30rpx
30rpx
20rpx
;
border-radius
:
12rpx
;
background-color
:
#FFFFFF
;
.title
{
font-weight
:
bold
;
font-size
:
32rpx
;
line-height
:
32rpx
;
color
:
#333
;
}
}
.txt
{
font-size
:
26rpx
;
line-height
:
26rpx
;
...
...
@@ -147,17 +170,20 @@
.time-list
{
margin-bottom
:
-30rpx
;
.time-item
{
min-width
:
196rpx
;
margin-right
:
26rpx
;
margin-bottom
:
24rpx
;
border-radius
:
12rpx
;
padding
:
26rpx
20rpx
24rpx
;
padding
:
26rpx
20rpx
24rpx
;
background-color
:
#F4F5F7
;
&
:nth-child
(
3n
)
{
&
:nth-child
(
3n
)
{
margin-right
:
0
;
}
.time
{
.time
{
font-size
:
26rpx
;
line-height
:
26rpx
;
color
:
#999
;
...
...
src/pages/order/feedback.vue
View file @
aa643772
...
...
@@ -3,15 +3,20 @@
<view
class=
"feedback-box bg"
>
<u-navbar
back-icon-color=
"#FFFFFF"
:background=
"background"
title=
"过程反馈"
title-color=
"#fff"
:border-bottom=
"false"
></u-navbar>
<view
class=
"content u-p-l-30 u-p-r-30"
>
<u-subsection
:current=
"curNow"
:list=
"list"
active-color=
"white"
bg-color=
"white"
inactive-color=
"#666"
button-color=
"#2272FF"
border-radius=
"36"
></u-subsection>
<view
class=
"width-320 u-m-t-20"
>
<u-subsection
:bold=
"false"
:current=
"curNow"
:list=
"list"
active-color=
"white"
bg-color=
"white"
height=
"72"
inactive-color=
"#666"
button-color=
"#2272FF"
border-radius=
"36"
></u-subsection>
</view>
<view
class=
"con-box"
>
<view
class=
"title"
>
{{
feedback
.
own
.
title
}}
</view>
<view
class=
"u-flex u-flex-wrap"
>
...
...
@@ -29,21 +34,10 @@
</view>
<u-input
class=
"textarea"
height=
"156"
type=
"textarea"
placeholder=
"请补充详细说明,以便于记录您的接单信用分"
></u-input>
</view>
<view
class=
"con-box"
>
<view
class=
"title"
>
{{
feedback
.
appoint
.
title
}}
</view>
<view
class=
"u-m-t-40"
>
<appoint-time
@
dateChange=
"dateChange"
@
timeChange=
"timeChange"
@
weekChange=
"weekChange"
></appoint-time>
</view>
<!--
<view
class=
"u-flex u-flex-wrap"
>
<view
:class=
"
{'txt-item':true,'active':true}" v-for="(txt,index) in feedback.type.list" :key="index">
<text
class=
"txt"
>
{{
txt
}}
</text>
</view>
</view>
-->
</view>
<appoint-time
@
dateChange=
"dateChange"
@
timeChange=
"timeChange"
@
weekChange=
"weekChange"
></appoint-time>
</view>
<view
class=
"u-m-60"
>
<button
class=
"btn"
>
确定
</button>
<!--
<u-button>
确定
</u-button>
-->
</view>
</view>
</
template
>
...
...
@@ -71,13 +65,6 @@
}
},
list
:[
'报备'
,
'预约'
],
// list: [{
// name: '报备'
// },
// {
// name: '改约'
// },
// ],
curNow
:
1
};
},
...
...
@@ -120,6 +107,9 @@
background-size
:
750rpx
600rpx
;
background-repeat
:
no-repeat
;
}
/
deep
/
.u-subsection
{
padding
:
4rpx
!
important
;
}
.con-box
{
margin-top
:
30rpx
;
padding
:
30rpx
30rpx
30rpx
20rpx
;
...
...
@@ -180,42 +170,7 @@
height
:
0
;
}
}
.order-wrap
{
// width: 750rpx;
// height: 100vh;
// overflow: auto;
// background-color: #F4F5F7;
// background-image: linear-gradient(to top, #F4F5F7 , #2272FF);
// background-size: 750rpx 600rpx;
// background-repeat: no-repeat;
.header
{
padding
:
12rpx
30rpx
40rpx
30rpx
;
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
;
.title
{
font-size
:
40rpx
;
font-weight
:
bold
;
color
:
#FFFFFF
;
}
.button
{
text-align
:
center
;
width
:
106rpx
;
height
:
52rpx
;
background
:
#FFFFFF
;
border-radius
:
40rpx
;
font-size
:
24rpx
;
font-weight
:
400
;
color
:
#2272FF
;
line-height
:
52rpx
;
}
}
.content
{
height
:
2000rpx
;
}
.width-320
{
width
:
320rpx
;
}
</
style
>
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