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
cae91d5f
Commit
cae91d5f
authored
Jun 09, 2021
by
Facius
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
详情页面优化
parent
096c917d
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
9 deletions
+12
-9
index.vue
src/components/order/index.vue
+4
-3
order.vue
src/pages/index/order.vue
+2
-3
detail.vue
src/pages/order/detail.vue
+6
-3
No files found.
src/components/order/index.vue
View file @
cae91d5f
...
...
@@ -279,12 +279,13 @@
}
},
methods
:
{
// title:标题,showCountTime:是否显示倒计时。详情页面情况太多,提前传值可以避免页面晃动
handleClick
()
{
// if (this.buttonDisabled) return
this
.
$emit
(
'action'
,
this
.
orderData
,
this
.
title
)
this
.
$emit
(
'action'
,
this
.
orderData
,
this
.
title
,
this
.
showCountTime
)
},
handleClickCell
()
{
this
.
$emit
(
'click'
,
this
.
orderData
,
this
.
title
)
this
.
$emit
(
'click'
,
this
.
orderData
,
this
.
title
,
this
.
showCountTime
)
},
handleChange
(
timestamp
)
{
if
(
this
.
timeout
)
this
.
$refs
[
'order-count-down'
].
seconds
+=
2
...
...
src/pages/index/order.vue
View file @
cae91d5f
...
...
@@ -282,14 +282,13 @@
}
});
},
handleClick
(
item
,
title
)
{
console
.
log
(
item
,
title
)
handleClick
(
item
,
title
,
showCountTime
)
{
// title:标题,showCountTime:是否显示倒计时。详情页面情况太多,提前传值可以避免页面晃动
if
(
item
.
orderStatus
===
86
||
item
.
orderStatus
===
88
){
this
.
filish
(
item
)
return
}
uni
.
navigateTo
({
url
:
'pages/order/detail?id='
+
item
.
orderId
+
'&title='
+
title
url
:
'pages/order/detail?id='
+
item
.
orderId
+
'&title='
+
title
+
'&showCountTime='
+
showCountTime
})
},
filish
(
item
){
...
...
src/pages/order/detail.vue
View file @
cae91d5f
<
template
>
<view
class=
"order-wrap"
>
<u-navbar
:title=
"title"
title-color=
"#FFFFFF"
title-size=
"32"
back-icon-color=
"#FFFFFF"
:background=
"background"
:border-bottom=
"false"
title-bold
></u-navbar>
<view
class=
"header"
v-if=
"
order.currentOverTime && showTimeOut || loading
"
>
<view
class=
"header"
v-if=
"
showCountTime || (order.currentOverTime && showTimeOut)
"
>
<image
class=
"bottom-tag-view"
:src=
"tagImage"
></image>
<!-- 倒计时 -->
<view
class=
"title"
>
...
...
@@ -167,7 +167,7 @@
timeout
:
false
,
timestamp
:
0
,
showFile
:
false
,
// 显示查看业务文件
loading
:
tru
e
showCountTime
:
fals
e
}
},
onLoad
(
option
)
{
...
...
@@ -176,11 +176,15 @@
if
(
option
&&
option
.
id
)
{
this
.
orderId
=
option
.
id
}
if
(
option
)
{
this
.
showCountTime
=
option
.
showCountTime
}
if
(
option
&&
option
.
title
)
{
this
.
title
=
decodeURIComponent
(
option
.
title
)
}
else
{
this
.
title
=
"订单信息"
}
this
.
loadOrderDetail
()
this
.
getLocation
()
if
(
option
&&
option
.
isFromMine
)
{
...
...
@@ -345,7 +349,6 @@
'orderId'
:
self
.
orderId
};
self
.
$u
.
api
.
orderDetail
(
data
,
self
.
orderId
).
then
((
res
)
=>
{
this
.
loading
=
false
if
(
res
.
code
==
200
)
{
self
.
order
=
res
.
data
this
.
getCurrentBtn
()
...
...
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