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
2078f707
Commit
2078f707
authored
Jun 03, 2021
by
Facius
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
详情页面ui修改
parent
3dc6d0d7
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
177 additions
and
161 deletions
+177
-161
bottomButtons.vue
src/components/order/bottomButtons.vue
+58
-27
index.vue
src/components/order/index.vue
+1
-1
detail.vue
src/pages/order/detail.vue
+118
-133
No files found.
src/components/order/bottomButtons.vue
View file @
2078f707
<
template
>
<view
class=
"bottom-button"
>
<view
v-for=
"(item, index) in
buttons
"
:class=
"['button-view', item.type]"
>
<u-button
:class=
"['list-button', item.type]"
@
click=
"handleClick(i
ndex
)"
:hover-class=
"item.type == 'image'
? 'none' : ''"
:custom-style=
"buttonStyle[item.type]"
type=
"primary
"
shape=
"circle"
>
<view
v-for=
"(item, index) in
list
"
:class=
"['button-view', item.type]"
>
<u-button
:class=
"['list-button', item.type]"
@
click=
"handleClick(i
tem
)"
:hover-class=
"item.type == 'image'
|| item.disabled ? 'none' : ''
"
:custom-style=
"buttonStyle[item.disabled ? 'disabled' : item.type]"
type=
"primary"
shape=
"circle"
>
<view
class=
"image-view"
v-if=
"item.type == 'image'"
>
<image
:src=
"baseImageUrl + item.image"
class=
"image-content"
></image>
</view>
<view
:class=
"['text-content', item.type]"
>
{{
item
.
label
}}
</view>
</u-button>
<view
v-if=
"index == 1"
style=
"width: 6rpx;"
></view>
</view>
</view>
</
template
>
...
...
@@ -22,17 +23,29 @@
return
[{
label
:
'过程反馈'
,
type
:
'image'
,
image
:
'dianhua.png'
image
:
'guochengfankui.png'
,
show
:
true
,
disabled
:
false
,
},
{
label
:
'异常签到'
,
type
:
'image'
,
image
:
'daohang.png'
image
:
'yichangqiandao.png'
,
show
:
false
,
disabled
:
false
},
{
label
:
'现场拍照'
,
type
:
'image'
,
image
:
'xiancahngpaizhao.png'
,
show
:
true
,
disabled
:
false
,
},
{
label
:
'接单'
,
type
:
'text'
,
image
:
''
show
:
true
,
disabled
:
true
}
]
}
...
...
@@ -42,6 +55,11 @@
baseImageUrl
()
{
return
process
.
uniEnv
.
qn_base_url
},
list
()
{
return
this
.
buttons
.
filter
((
item
)
=>
{
return
item
.
show
==
true
})
},
buttonStyle
()
{
return
{
'image'
:
{
...
...
@@ -63,12 +81,23 @@
'width'
:
'100%'
},
'disabled'
:
{
'background-color'
:
'#D1D4D4'
,
'border-color'
:
'transparent'
,
'display'
:
'flex'
,
'flex-direction'
:
'column'
,
'height'
:
'104rpx'
,
'width'
:
'100%'
},
}
},
},
methods
:
{
handleClick
(
index
)
{
this
.
$emit
(
'submit'
,
index
)
// 0 主流程; 1 过程反馈;2 异常签到; 3 现场拍照
handleClick
(
item
)
{
if
(
item
.
disabled
)
return
this
.
$emit
(
'submit'
,
item
.
id
)
}
}
}
...
...
@@ -82,6 +111,8 @@
padding
:
0
30rpx
44rpx
30rpx
;
.button-view
{
max-width
:
600rpx
;
display
:
flex
;
&
.image
{}
&
.text
{
...
...
@@ -92,16 +123,18 @@
display
:
flex
;
flex-direction
:
column
;
max-width
:
600rpx
;
width
:
100%
;
&
.image
{}
&
.text
{}
.image-view
{
flex-shrink
:
0
;
background-color
:
#FFFFFF
;
border-radius
:
38rpx
;
width
:
76rpx
;
height
:
76rpx
;
.image-content
{
width
:
76rpx
;
height
:
76rpx
;
...
...
@@ -125,7 +158,5 @@
}
}
}
}
</
style
>
src/components/order/index.vue
View file @
2078f707
...
...
@@ -40,7 +40,7 @@
<view
v-if=
"showCountTime"
class=
"bottom-left-view"
>
<view
:class=
"['bottom-tag-view',
{'timeout': timeout}]">
<text>
{{
tagText
}}
</text></view>
<u-count-down
:timestamp=
"timestamp"
font-size=
"40"
show-days
separator=
"zh"
:color=
"timeout ? '#FA5A49' : '#FF930D'"
@
change=
"handleChange"
separator-color=
"#666666"
ref=
"order-count-down"
></u-count-down>
:color=
"timeout ? '#FA5A49' : '#FF930D'"
@
change=
"handleChange"
separator-color=
"#666666"
ref=
"order-count-down"
></u-count-down>
</view>
<view
v-else-if=
"showTime"
>
<text>
{{
timeTitle
}}
</text>
...
...
src/pages/order/detail.vue
View file @
2078f707
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