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
c2618abe
Commit
c2618abe
authored
Jun 09, 2021
by
Facius
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
详情页面超时和剩余样式修改
parent
c277d327
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
57 additions
and
36 deletions
+57
-36
detail.vue
src/pages/order/detail.vue
+57
-36
No files found.
src/pages/order/detail.vue
View file @
c2618abe
...
@@ -2,17 +2,17 @@
...
@@ -2,17 +2,17 @@
<view
class=
"order-wrap"
>
<view
class=
"order-wrap"
>
<u-navbar
:title=
"title"
title-color=
"#FFFFFF"
title-size=
"32"
back-icon-color=
"#FFFFFF"
:background=
"background"
:border-bottom=
"false"
></u-navbar>
<u-navbar
:title=
"title"
title-color=
"#FFFFFF"
title-size=
"32"
back-icon-color=
"#FFFFFF"
:background=
"background"
:border-bottom=
"false"
></u-navbar>
<view
class=
"header"
v-if=
"order.currentOverTime && showTimeOut"
>
<view
class=
"header"
v-if=
"order.currentOverTime && showTimeOut"
>
<image
class=
"bottom-tag-view"
:src=
"tagImage"
></image>
<!-- 倒计时 -->
<!-- 倒计时 -->
<view
class=
"title"
>
<view
class=
"title"
>
<view
class=
"bottom-tag-view"
><text>
{{
timeout
?
'超时'
:
'剩余'
}}
</text></view>
<u-count-down
:timestamp=
"timestamp"
font-size=
"28"
show-days
separator=
"zh"
separator-size=
"32"
height=
"40"
hide-zero-day
<u-count-down
:timestamp=
"timestamp"
font-size=
"28"
show-days
separator=
"zh"
separator-size=
"32"
height=
"40"
hide-zero-day
color=
"#2272FF
"
separator-color=
"#FFFFFF"
@
change=
"timeOutChange"
ref=
"order-count-down"
bg-color=
"#FFFFFF"
></u-count-down>
:color=
"countColor
"
separator-color=
"#FFFFFF"
@
change=
"timeOutChange"
ref=
"order-count-down"
bg-color=
"#FFFFFF"
></u-count-down>
</view
>
<view
class=
"header-content"
>
<view
class=
"header-content"
>
<!-- 抓紧时间提示 --
>
<!-- 抓紧时间提示 --
>
<view
class=
"tip-text"
>
{{
tipText
}}
</view
>
<view
class=
"tip-text"
>
{{
tipText
}}
</view
>
<!-- 拒单 --
>
<!-- 拒单 --
>
<view
v-show=
"allowRejection"
class=
"reject-button"
@
click=
"$u.throttle(rejectOrder, 500)"
>
拒单
</view
>
<
view
v-show=
"allowRejection"
class=
"reject-button"
@
click=
"$u.throttle(rejectOrder, 500)"
>
拒单
<
/view>
</view>
</view>
</view>
</view>
</view>
<view
class=
"content"
>
<view
class=
"content"
>
...
@@ -260,9 +260,21 @@
...
@@ -260,9 +260,21 @@
}
}
}]
}]
},
},
countColor
()
{
return
this
.
timeout
?
'#FA5A49'
:
'#2272FF'
},
wenjianImage
()
{
wenjianImage
()
{
return
process
.
uniEnv
.
qn_base_url
+
'wenjian.png'
return
process
.
uniEnv
.
qn_base_url
+
'wenjian.png'
},
},
tagImage
()
{
return
this
.
timeout
?
this
.
chaoshiImage
:
this
.
shengyuImage
},
chaoshiImage
()
{
return
process
.
uniEnv
.
qn_base_url
+
'chaoshi.png'
},
shengyuImage
()
{
return
process
.
uniEnv
.
qn_base_url
+
'shengyu.png'
},
},
},
methods
:
{
methods
:
{
updateLocation
(){
updateLocation
(){
...
@@ -814,6 +826,14 @@
...
@@ -814,6 +826,14 @@
}
}
};
};
</
script
>
</
script
>
<
style
lang=
"scss"
>
.order-wrap
{
.u-countdown-colon
{
margin-left
:
6rpx
;
margin-right
:
6rpx
;
}
}
</
style
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.order-wrap
{
.order-wrap
{
...
@@ -828,36 +848,37 @@
...
@@ -828,36 +848,37 @@
flex-direction
:
column
;
flex-direction
:
column
;
.header
{
.header
{
padding
:
4rpx
32rpx
14rpx
32rpx
;
padding
:
4rpx
32rpx
20rpx
32rpx
;
display
:
flex
;
.header-content
{
align-items
:
center
;
display
:
flex
;
.bottom-tag-view
{
justify-content
:
space-between
;
width
:
116rpx
;
align-items
:
center
;
height
:
116rpx
;
margin-top
:
12rpx
;
flex-shrink
:
0
;
.tip-text
{
font-size
:
26rpx
;
color
:
#EFEFEF
;
}
.reject-button
{
text-align
:
center
;
width
:
106rpx
;
height
:
52rpx
;
border-radius
:
40rpx
;
font-size
:
24rpx
;
font-weight
:
400
;
line-height
:
52rpx
;
color
:
#DEDEDE
;
text-align
:
right
;
}
}
}
.title
{
.title
{
display
:
flex
;
margin-left
:
24rpx
;
align-items
:
center
;
margin-top
:
6rpx
;
.bottom-tag-view
{
.header-content
{
color
:
#FFFFFF
;
display
:
flex
;
font-size
:
40rpx
;
justify-content
:
space-between
;
margin-right
:
10rpx
;
align-items
:
center
;
margin-top
:
24rpx
;
.tip-text
{
font-size
:
26rpx
;
color
:
#EFEFEF
;
}
.reject-button
{
text-align
:
center
;
width
:
106rpx
;
height
:
52rpx
;
border-radius
:
40rpx
;
font-size
:
24rpx
;
font-weight
:
400
;
line-height
:
52rpx
;
color
:
#DEDEDE
;
text-align
:
right
;
}
}
}
}
}
}
}
...
...
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