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
774545dc
Commit
774545dc
authored
Jun 29, 2021
by
Facius
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
详情页面底部button的数字、没有物流不显示物流按钮
parent
f1c8af0f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
55 additions
and
34 deletions
+55
-34
bottomButtons.vue
src/components/order/bottomButtons.vue
+51
-31
appliedPartsCell.vue
src/components/parts/appliedPartsCell.vue
+1
-1
detail.vue
src/pages/order/detail.vue
+3
-2
No files found.
src/components/order/bottomButtons.vue
View file @
774545dc
...
...
@@ -26,37 +26,57 @@
buttons
:
{
type
:
Array
,
default
()
{
return
[{
label
:
'过程反馈'
,
type
:
'image'
,
image
:
'guochengfankui.png'
,
show
:
true
,
disabled
:
false
,
},
{
label
:
'异常签到'
,
type
:
'image'
,
image
:
'yichangqiandao.png'
,
show
:
false
,
disabled
:
false
},
{
label
:
'现场拍照'
,
type
:
'image'
,
image
:
'xiancahngpaizhao.png'
,
show
:
true
,
disabled
:
false
,
},
{
label
:
'接单'
,
type
:
'text'
,
show
:
true
,
disabled
:
true
,
customStyle
:
{
'background-color'
:
'#2272FF'
}
}
]
// id: 0 主流程; 1 过程反馈;2 异常签到; 3 现场拍照; 4 配件申请
// label: 按钮文字,
// type: 'image' 上图片下文字;'text' 纯文字,
// image: 图片名,
// show: 是否显示,
// disabled: 是 禁用;否 正常,
// id: 区分各个按钮
return
[{
label
:
'过程反馈'
,
type
:
'image'
,
image
:
'guochengfankui.png'
,
show
:
false
,
disabled
:
false
,
id
:
1
},
{
label
:
'异常签到'
,
type
:
'image'
,
image
:
'yichangqiandao.png'
,
show
:
false
,
// 待签到显示
disabled
:
false
,
id
:
2
},
{
label
:
'现场拍照'
,
type
:
'image'
,
image
:
'xiancahngpaizhao.png'
,
show
:
false
,
disabled
:
false
,
id
:
3
},
{
label
:
'配件申请'
,
type
:
'image'
,
image
:
'peijian.png'
,
show
:
false
,
disabled
:
false
,
count
:
0
,
id
:
4
},
{
label
:
'去接单'
,
type
:
'text'
,
image
:
''
,
show
:
true
,
disabled
:
false
,
id
:
0
,
customStyle
:
{
'background-color'
:
'#D1D4D4'
}
}]
}
}
},
...
...
src/components/parts/appliedPartsCell.vue
View file @
774545dc
...
...
@@ -3,7 +3,7 @@
<view
class=
"return-cell"
@
click=
"handleClick"
>
<view
class=
"title-view"
>
<text
class=
"title-text"
:style=
"
{'color': titleColor}">
{{
title
}}
</text>
<view
class=
"express-view"
@
click
.
stop=
"$u.throttle(handleClickExpress, 500)"
>
<view
class=
"express-view"
@
click
.
stop=
"$u.throttle(handleClickExpress, 500)"
v-if=
"info.express.number"
>
<text>
物流单号:
</text>
<view
class=
"order-file-right"
>
<text>
{{
info
.
express
.
number
}}
</text>
...
...
src/pages/order/detail.vue
View file @
774545dc
...
...
@@ -168,6 +168,7 @@
showCountTime
:
false
,
// 从上个页面传入是否显示倒计时
showApplyList
:
false
,
// 显示已申请配件列表
partsList
:
[],
// 已申请的配件列表
partsCount
:
0
}
},
computed
:
{
...
...
@@ -218,7 +219,7 @@
image
:
'peijian.png'
,
show
:
this
.
allowFeedback
,
disabled
:
false
,
count
:
0
,
count
:
this
.
partsCount
,
id
:
4
},
{
...
...
@@ -458,7 +459,7 @@
this
.
$u
.
api
.
getOrderPartsSum
(
this
.
orderId
).
then
((
res
)
=>
{
if
(
res
.
code
==
200
)
{
if
(
res
.
data
)
{
this
.
buttons
[
3
].
c
ount
=
res
.
data
.
totalPartCount
this
.
partsC
ount
=
res
.
data
.
totalPartCount
}
}
else
{
console
.
log
(
res
.
message
)
...
...
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