Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
上
上药订单生命周期升级
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
sph
上药订单生命周期升级
Commits
c42bcc9a
Commit
c42bcc9a
authored
Mar 19, 2021
by
xiejb
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.jiucaiyun.cn/sph/SH_OrderLifeCycleU
parents
38d17263
a3250456
Changes
7
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
298 additions
and
78 deletions
+298
-78
src/api/myOrder.js
src/api/myOrder.js
+9
-0
src/assets/styles/common.scss
src/assets/styles/common.scss
+8
-0
src/views/myOrder/components/goodsSimpleItem.vue
src/views/myOrder/components/goodsSimpleItem.vue
+5
-1
src/views/myOrder/components/invoiceSimpleItem.vue
src/views/myOrder/components/invoiceSimpleItem.vue
+5
-1
src/views/myOrder/components/orderState.vue
src/views/myOrder/components/orderState.vue
+7
-0
src/views/myOrder/components/orderStateItem.vue
src/views/myOrder/components/orderStateItem.vue
+103
-34
src/views/myOrder/detail/orderDetail.vue
src/views/myOrder/detail/orderDetail.vue
+161
-42
No files found.
src/api/myOrder.js
View file @
c42bcc9a
...
...
@@ -26,6 +26,15 @@ export function getOrderInvoiceList(params) {
loading
:
true
})
}
// 获取物流追踪信息
export
function
getTrackInfo
(
params
)
{
return
fetch
({
url
:
'
/OrderLife/TrackInfo
'
,
method
:
'
post
'
,
data
:
params
,
loading
:
true
})
}
// 获取商品详情列表
export
function
getGoodInfoList
(
params
)
{
...
...
src/assets/styles/common.scss
View file @
c42bcc9a
...
...
@@ -276,4 +276,12 @@ body{
text-align
:
center
;
min-width
:
20px
;
}
.empty-tips
{
height
:
70px
;
text-align
:
center
;
line-height
:
70px
;
font-size
:
13px
;
color
:
$txtGrayL
;
}
/*-----------公共样式---------------------------结束*/
src/views/myOrder/components/goodsSimpleItem.vue
View file @
c42bcc9a
<
template
>
<div
class=
"goods-simple-content "
>
<div
class=
"goods-simple-content "
:style =
"
{'border-bottom': isLast?'none':''}"
>
<!--
<div
class=
"goods-company"
>
-->
<!--
<span
class=
"company-name"
>
{{
item
.
company
}}
</span>
-->
<!--
<span
class=
"state-type order-type-tip-cold"
>
{{
item
.
goodsType
}}
</span>
-->
...
...
@@ -44,6 +44,10 @@ export default {
manufacturer
:
''
}
}
},
isLast
:
{
type
:
Boolean
,
default
:
false
}
},
methods
:
{
...
...
src/views/myOrder/components/invoiceSimpleItem.vue
View file @
c42bcc9a
<
template
>
<div
class=
"invoice-simple-content"
@
click=
"onItemClick"
>
<div
class=
"invoice-simple-content"
:style =
"
{'border-bottom': isLast?'none':''}"
@click="onItemClick">
<!--
<div
class=
"invoice-company"
>
-->
<!--
{{
item
.
company
}}
-->
<!--
</div>
-->
...
...
@@ -27,6 +27,10 @@ export default {
invoiceDate
:
''
}
}
},
isLast
:
{
type
:
Boolean
,
default
:
false
}
},
methods
:
{
...
...
src/views/myOrder/components/orderState.vue
View file @
c42bcc9a
...
...
@@ -7,6 +7,12 @@
<
script
>
export
default
{
name
:
'
orderState
'
,
props
:
{
active
:
{
type
:
Number
,
default
:
0
}
},
mounted
()
{
this
.
calDashLineWidth
()
},
...
...
@@ -16,6 +22,7 @@ export default {
let
width
=
'
88%
'
switch
(
lineEle
.
length
)
{
case
2
:
width
=
'
90%
'
break
case
3
:
width
=
'
84%
'
...
...
src/views/myOrder/components/orderStateItem.vue
View file @
c42bcc9a
<
template
>
<div
class=
"state-item"
:class=
"'state-item__'+state"
>
<div
style=
"position:relative"
>
<van-icon
class=
"state-icon"
:name=
"this.state==='select'?'checked':'passed'"
/>
<div
:style=
"
{display:state!=='end'?'inline-block':'none'}" class="state-line">
</div>
<div
class=
"state-item"
:class=
"'state-item__'+stepState"
>
<div
style=
"position:relative;z-index:1"
>
<div
:style=
"
{display:(stepState!=='end'
&&
hasNext)?'block':'none',backgroundColor:stepState==='normal'?'white':''}"
class="state-line">
</div>
<span
class=
"state-icon-layout"
>
<span
v-if=
"this.stepState!=='select'"
class=
"state-icon-text state-icon-b"
>
{{
itemNum
}}
</span>
<span
v-else
class=
"state-icon-b"
>
<van-icon
class=
"state-icon-img"
name=
"success"
/>
</span>
</span>
</div>
<div
>
{{
text
}}
</div>
<div
class=
"state-name"
>
{{
text
}}
</div>
</div>
</
template
>
...
...
@@ -14,55 +21,117 @@ export default {
props
:
{
state
:
{
type
:
String
,
default
:
'
normal
'
// normal; select; end
default
:
'
normal
'
// normal; select; next;end
},
hasNext
:
{
type
:
Boolean
,
default
:
true
},
itemNum
:
{
type
:
Number
,
default
:
0
},
text
:
{
type
:
String
,
default
:
'
已开单
'
}
},
data
()
{
data
()
{
return
{}
},
computed
:
{
stepState
:
function
()
{
let
res
=
'
normal
'
let
parentActive
=
this
.
$parent
.
active
if
(
parentActive
===
this
.
itemNum
)
{
res
=
'
select
'
}
else
if
(
parentActive
>
this
.
itemNum
)
{
res
=
'
normal
'
}
else
{
res
=
'
next
'
}
return
res
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.state-item
{
.state-item
{
text-align
:
center
;
margin
:
0
auto
;
width
:
100%
;
color
:
#fff
;
i
{
font-size
:
25px
;
.state-icon-layout
{
background
:
#16a7f0
;
padding
:
3px
;
.state-icon-b
{
display
:
inline-block
;
border-radius
:
20px
;
border
:
solid
2
.5px
#fff
;
width
:
25px
;
height
:
25px
;
text-align
:
center
;
}
.state-icon
{
position
:
relative
;
.state-icon-img
{
font-size
:
10px
;
font-weight
:
bold
;
line-height
:
22px
;
}
.state-icon-text
{
line-height
:
22px
;
font-size
:
16px
;
}
}
.state-item__normal
{
color
:
#fff
;
.state-name
{
margin-top
:
5px
;
color
:
#a8e1f3
;
}
}
.state-item__normal
{
.state-icon
{
.state-item__select
{
color
:
#ea9518
;
}
}
.state-item__end
{
color
:
#707070
;
.state-item__select
{
.state-icon-b
{
background
:
#ea9518
;
}
.state-name
{
color
:
#fff
;
}
}
.state-item__next
{
.state-line
{
}
.state-item__end
{
}
.state-line
{
position
:
absolute
;
top
:
14px
;
top
:
12px
;
left
:
50%
;
z-index
:
-1
;
width
:
88%
;
height
:
1
px
;
height
:
2
px
;
background-size
:
15px
3px
;
background-repeat
:
repeat-x
;
background-image
:
linear-gradient
(
to
right
,
#fff
0%
,
#fff
8
0%
,
#fff
6
0%
,
transparent
50%
);
}
}
</
style
>
src/views/myOrder/detail/orderDetail.vue
View file @
c42bcc9a
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