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
71cc172a
Commit
71cc172a
authored
Apr 25, 2021
by
Facius
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
首页高保真
parent
ea7284f4
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
604 additions
and
625 deletions
+604
-625
index.vue
src/components/order/index.vue
+133
-139
index.vue
src/pages/index/index.vue
+471
-486
No files found.
src/components/order/index.vue
View file @
71cc172a
<
template
>
<view
class=
"order-cell"
>
<view
class=
"order-view"
@
click=
"handleClickCell"
>
<view
class=
"order-top-view"
>
<view
class=
"left-view"
>
<view
:class=
"['tag-view',
{'active': active}]">
{{
orderData
.
orderServiceType
}}
</view>
<view
class=
"store-view"
>
{{
orderData
.
categoryName
}}
</view>
<view
class=
"order-view"
@
click=
"handleClickCell"
>
<view
class=
"order-top-view"
>
<view
class=
"left-view"
>
<view
:class=
"['tag-view',
{'active': active}]">
{{
orderData
.
orderServiceType
}}
</view>
<view
class=
"
right-view"
>
{{
orderData
.
orderBusinessTypeText
}}
</view>
<view
class=
"
store-view"
>
{{
orderData
.
categoryName
}}
</view>
</view>
<view
class=
"content-view"
>
<view
class=
"info-view"
v-for=
"(item, key) in infoTexts"
:key=
"key"
>
<text>
{{
item
+
':'
}}
</text>
<text>
{{
orderData
[
key
]
}}
</text>
<view
class=
"right-view"
>
{{
orderData
.
orderBusinessTypeText
}}
</view>
</view>
<view
class=
"content-view"
>
<view
class=
"info-view"
v-for=
"(item, key) in infoTexts"
:key=
"key"
>
<text>
{{
item
+
':'
}}
</text>
<text>
{{
orderData
[
key
]
}}
</text>
</view>
<view
class=
"address-view"
>
<view
class=
"address-left-view"
>
<image
class=
"address-image"
:src=
"dizhiImage"
mode=
"widthFix"
></image>
<text>
{{
orderData
.
contactAddress
}}
</text>
</view>
<view
class=
"address-view"
>
<view
class=
"address-left-view"
>
<image
class=
"address-image"
:src=
"dizhiImage"
mode=
"widthFix"
></image>
<text>
{{
orderData
.
contactAddress
}}
</text>
</view>
<view
v-if=
"showDistance"
>
{{
getDistance
(
orderData
.
contactAddressLatitud
,
orderData
.
contactAddressLongitud
)
}}
km
</view>
<view
v-if=
"showDistance"
>
{{
getDistance
(
orderData
.
contactAddressLatitud
,
orderData
.
contactAddressLongitud
)
}}
km
</view>
</view>
</view>
<view
class=
"line-view"
></view>
<view
class=
"reason-view"
v-if=
"showReason"
><text>
未通过原因:
</text>
<text
class=
"reason-text"
>
{{
orderData
.
auditResults
.
remark
}}
</text>
</view>
<view
class=
"bottom-view"
>
<view>
<view
v-if=
"showCountTime"
class=
"bottom-left-view"
>
<view
:class=
"['bottom-tag-view',
{'will': orderData.currentWillOverTime}]">
{{
tagText
}}
</view>
<u-count-down
:timestamp=
"orderData.currentWillOverTime || orderData.currentOverTime"
font-size=
"44"
color=
"#FF930D"
@
change=
"handleChange"
ref=
"order-count-down"
></u-count-down>
</view>
<view
v-else-if=
"showTime"
>
<text>
{{
timeTitle
}}
</text>
<text>
{{
timeText
}}
</text>
</view>
<view
class=
"line-view"
></view>
<view
class=
"reason-view"
v-if=
"showReason"
><text>
未通过原因:
</text>
<text
class=
"reason-text"
>
{{
orderData
.
auditResults
.
remark
}}
</text>
</view>
<view
class=
"bottom-view"
>
<view>
<view
v-if=
"showCountTime"
class=
"bottom-left-view"
>
<view
:class=
"['bottom-tag-view',
{'will': orderData.currentWillOverTime}]">
{{
tagText
}}
</view>
<u-count-down
:timestamp=
"orderData.currentWillOverTime || orderData.currentOverTime"
font-size=
"44"
color=
"#FF930D"
@
change=
"handleChange"
ref=
"order-count-down"
></u-count-down>
</view>
<view
v-else-if=
"showTime"
>
<text>
{{
timeTitle
}}
</text>
<text>
{{
timeText
}}
</text>
</view>
<u-button
class=
"right-btn"
@
click
.
stop=
"handleClick"
:custom-style=
"buttonStyle"
type=
"primary"
shape=
"circle"
>
{{
orderText
}}
</u-button>
</view>
<u-button
class=
"right-btn"
@
click
.
stop=
"handleClick"
:custom-style=
"buttonStyle"
type=
"primary"
shape=
"circle"
>
{{
orderText
}}
</u-button>
</view>
</view>
</view>
...
...
@@ -251,138 +249,134 @@
</
script
>
<
style
lang=
"scss"
scoped
>
.order-cell
{
padding-bottom
:
20rpx
;
.order-view
{
width
:
100%
;
background-color
:
#FFFFFF
;
border-radius
:
12rpx
;
padding
:
30rpx
;
margin-bottom
:
20rpx
;
.order-view
{
width
:
100%
;
background-color
:
#FFFFFF
;
border-radius
:
12rpx
;
padding
:
30rpx
;
.order-top-view
{
display
:
flex
;
align-items
:
center
;
justify-content
:
space-between
;
margin-bottom
:
20rpx
;
.
order-top
-view
{
.
left
-view
{
display
:
flex
;
align-items
:
center
;
justify-content
:
space-between
;
margin-bottom
:
20rpx
;
.left-view
{
display
:
flex
;
align-items
:
center
;
.tag-view
{
width
:
84rpx
;
height
:
40rpx
;
color
:
#FFFFFF
;
border-radius
:
8rpx
;
background-image
:
linear-gradient
(
to
right
,
#FF930D
,
#FFC174
);
&
.active
{
background-image
:
linear-gradient
(
to
right
,
#2272FF
,
#47ABFF
);
}
}
.tag-view
{
width
:
84rpx
;
height
:
40rpx
;
color
:
#FFFFFF
;
border-radius
:
8rpx
;
background-image
:
linear-gradient
(
to
right
,
#FF930D
,
#FFC174
);
.store-view
{
color
:
#333333
;
font-size
:
36rpx
;
font-weight
:
bold
;
margin-left
:
20rpx
;
&
.active
{
background-image
:
linear-gradient
(
to
right
,
#2272FF
,
#47ABFF
);
}
}
.right-view
{
width
:
100rpx
;
height
:
40rpx
;
background-color
:
#F4F5F7
;
border-radius
:
20rpx
;
.store-view
{
color
:
#333333
;
font-size
:
22rpx
;
line-height
:
40rpx
;
font-size
:
36rpx
;
font-weight
:
bold
;
margin-left
:
20rpx
;
}
}
.content-view
{
.info-view
{
text-align
:
left
;
color
:
#333333
;
font-size
:
26rpx
;
margin-top
:
12rpx
;
margin-bottom
:
12rpx
;
}
.right-view
{
width
:
100rpx
;
height
:
40rpx
;
background-color
:
#F4F5F7
;
border-radius
:
20rpx
;
color
:
#333333
;
font-size
:
22rpx
;
line-height
:
40rpx
;
}
}
.content-view
{
.info-view
{
text-align
:
left
;
color
:
#333333
;
font-size
:
26rpx
;
margin-top
:
12rpx
;
margin-bottom
:
12rpx
;
}
.address-view
{
.address-view
{
display
:
flex
;
align-items
:
flex-start
;
justify-content
:
space-between
;
color
:
#333333
;
font-size
:
24rpx
;
margin-top
:
12rpx
;
.address-left-view
{
display
:
flex
;
align-items
:
center
;
align-items
:
flex-start
;
justify-content
:
space-between
;
color
:
#333333
;
font-size
:
24rpx
;
margin-top
:
12rpx
;
.address-left-view
{
display
:
flex
;
align-items
:
center
;
align-items
:
flex-start
;
.address-image
{
width
:
26rpx
;
height
:
28rpx
;
margin-right
:
8rpx
;
flex-shrink
:
0
;
margin-top
:
4rpx
;
}
.address-image
{
width
:
26rpx
;
height
:
28rpx
;
margin-right
:
8rpx
;
flex-shrink
:
0
;
margin-top
:
4rpx
;
}
.address-right-view
{}
}
}
.line-view
{
background-color
:
#F4F5F7
;
height
:
2rpx
;
width
:
100%
;
margin-top
:
30rpx
;
.address-right-view
{}
}
}
.reason-view
{
text-align
:
left
;
margin-top
:
30rpx
;
font-size
:
26rpx
;
color
:
#666666
;
.line-view
{
background-color
:
#F4F5F7
;
height
:
2rpx
;
width
:
100%
;
margin-top
:
30rpx
;
}
.reason-text
{
color
:
#FA5A49
;
}
.reason-view
{
text-align
:
left
;
margin-top
:
30rpx
;
font-size
:
26rpx
;
color
:
#666666
;
.reason-text
{
color
:
#FA5A49
;
}
}
.bottom-view
{
.bottom-view
{
display
:
flex
;
align-items
:
center
;
justify-content
:
space-between
;
margin-top
:
30rpx
;
.bottom-left-view
{
display
:
flex
;
align-items
:
center
;
justify-content
:
space-between
;
margin-top
:
30rpx
;
.bottom-left-view
{
display
:
flex
;
align-items
:
center
;
.bottom-tag-view
{
width
:
52rpx
;
height
:
52rpx
;
border-radius
:
26rpx
;
line-height
:
56rpx
;
color
:
#FFFFFF
;
font-size
:
26rpx
;
background-color
:
#FA5A49
;
margin-right
:
20rpx
;
.bottom-tag-view
{
width
:
52rpx
;
height
:
52rpx
;
border-radius
:
26rpx
;
line-height
:
56rpx
;
color
:
#FFFFFF
;
font-size
:
26rpx
;
background-color
:
#FA5A49
;
margin-right
:
20rpx
;
&
.will
{
background-color
:
#FF930D
;
}
&
.will
{
background-color
:
#FF930D
;
}
}
.right-btn
{}
}
.right-btn
{}
}
}
</
style
>
src/pages/index/index.vue
View file @
71cc172a
This diff is collapsed.
Click to expand it.
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