Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
million
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
viitto
million
Commits
5bfdd63a
Commit
5bfdd63a
authored
Jul 07, 2020
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
b682a210
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
239 additions
and
8 deletions
+239
-8
orderlist.vue
src/pages/usercenter/orderlist.vue
+239
-8
No files found.
src/pages/usercenter/orderlist.vue
View file @
5bfdd63a
<
style
>
.demandlist
{
padding
:
30px
20px
;
width
:
100%
;
max-width
:
1200px
;
margin
:
0
auto
;
}
.order-header
{
display
:
flex
;
align-items
:
flex-start
;
margin
:
20px
0
;
}
.order-header
.order_title
{
margin-right
:
20px
;
font-size
:
25px
;
color
:
#666
;
font-weight
:
400
;
}
.order-header
.type-item
{
margin
:
0
15px
;
cursor
:
pointer
;
}
.order-header
.type-item
a
{
font-size
:
16px
;
padding
:
0
2px
12px
;
text-decoration
:
none
;
}
.type-item
.is-acted
{
color
:
#00afff
;
border-bottom
:
2px
solid
#00afff
;
}
.type-bar
{
display
:
flex
;
align-items
:
center
;
margin
:
0
;
padding
:
0
;
}
.type-bar
li
{
list-style-type
:
none
;
}
.order_link
{
display
:
block
;
padding
:
20px
25px
;
}
.order-list
li
{
margin-bottom
:
15px
;
font-size
:
0
;
background-color
:
#fff
;
box-shadow
:
0
2px
4px
0
rgba
(
10
,
8
,
8
,
.5
);
transition
:
transform
.2s
ease
,
box-shadow
.2s
ease
;
}
.order_link
.order_tour
{
font-size
:
16px
;
padding-right
:
10px
;
width
:
calc
(
100%
-
90px
);
display
:
inline-block
;
vertical-align
:
middle
;
}
.tour-name
{
margin-bottom
:
5px
;
color
:
#333
;
}
.order_link
.order-status
{
font-size
:
15px
;
display
:
inline-block
;
vertical-align
:
middle
;
color
:
#999
;
}
.order-list
li
.order-status
:not
(
:last-child
)
{
margin-right
:
20px
;
}
.order-status-ch
{
width
:
90px
;
color
:
#333
;
text-align
:
center
;
display
:
inline-block
;
vertical-align
:
middle
;
}
.order-status-tag
{
padding
:
2px
12px
;
background-color
:
#e2f0fb
;
color
:
#00afff
;
border-radius
:
50px
;
background-clip
:
padding-box
;
display
:
inline-block
;
vertical-align
:
middle
;
font-size
:
13px
;
}
@media
only
screen
and
(
min-width
:
768px
)
{
.order-list
li
:hover
{
-webkit-transform
:
translate
(
0
,
-4px
);
-moz-transform
:
translate
(
0
,
-4px
);
-ms-transform
:
translate
(
0
,
-4px
);
-o-transform
:
translate
(
0
,
-4px
);
transform
:
translate
(
0
,
-4px
);
-webkit-box-shadow
:
0
4px
25px
0
rgba
(
0
,
0
,
0
,
.2
),
0
0
0
0
rgba
(
0
,
0
,
0
,
.1
);
-moz-box-shadow
:
0
4px
25px
0
rgba
(
0
,
0
,
0
,
.2
),
0
0
0
0
rgba
(
0
,
0
,
0
,
.1
);
box-shadow
:
0
4px
25px
0
rgba
(
0
,
0
,
0
,
.2
),
0
0
0
0
rgba
(
0
,
0
,
0
,
.1
);
}
}
.demandlist
.items-center
{
justify-content
:
center
;
}
</
style
>
<
template
>
<q-page>
<div
class=
"orderlist"
>
订单列表
<div
class=
"demandlist"
>
<div
class=
"order-header"
>
<div
class=
"order_title"
>
我的訂單
</div>
<ul
class=
"type-bar"
>
<li
class=
"type-item"
v-for=
"(item,index) in TitList"
@
click=
"handleClick(item)"
:key=
"index"
>
<a
:class=
"
{'is-acted':checked==item.ID}">
{{
item
.
Type
}}
</a>
</li>
</ul>
</div>
<ul
class=
"order-list"
>
<li
v-for=
"(item,index) in DataList"
:key=
"index"
>
<a
class=
"order_link"
>
<div
class=
"order_tour"
>
<div
class=
"tour-name"
>
{{
item
.
title
}}
</div>
<div
class=
"order-status"
>
訂購日期:
{{
item
.
createDate
}}
</div>
<div
class=
"order-status"
>
出發日期:
{{
item
.
startDate
}}
</div>
<div
class=
"order-status"
>
訂單編號:
{{
item
.
orderId
}}
</div>
<div
class=
"order-status"
>
旅客:
{{
item
.
guestNum
}}
</div>
<div
class=
"order-status"
>
總額:
{{
item
.
preferPrice
}}
</div>
</div>
<div
class=
"order-status-ch"
>
<div
class=
"order-status-tag"
>
<span
v-if=
"item.orderState === 1"
>
待付定金
</span>
<span
v-else-if=
"item.orderState === 2"
>
待付尾款
</span>
<span
v-else-if=
"item.orderState === 3"
>
待发团
</span>
<span
v-else-if=
"item.orderState === 4"
>
交易完成
</span>
<span
v-else-if=
"item.orderState === 5"
>
取消
</span>
</div>
</div>
</a>
</li>
<q-pagination
v-if=
"pageCount>1"
v-model=
"getOrderMsg.pageIndex"
:max=
"pageCount"
@
input=
"gerOrderList()"
:direction-links=
"true"
>
</q-pagination>
</ul>
</div>
</q-page>
</
template
>
...
...
@@ -11,18 +177,83 @@
props
:
[],
data
()
{
return
{
qMsg
:
{
PageIndex
:
1
,
PageSize
:
10
,
CreateBy
:
0
,
},
DataList
:
[],
pageCount
:
0
,
checked
:
-
1
,
getOrderMsg
:
{
pageIndex
:
1
,
pageSize
:
5
,
orderType
:
1
,
queryDays
:
0
,
orderState
:
-
1
,
CustomerId
:
""
},
TitList
:
[{
Type
:
"全部"
,
ID
:
-
1
},
{
Type
:
"待付定金"
,
ID
:
1
},
{
Type
:
"待付尾款"
,
ID
:
2
},
{
Type
:
"待发团"
,
ID
:
3
},
{
Type
:
"交易完成"
,
ID
:
4
},
{
Type
:
"取消"
,
ID
:
5
}
],
};
},
created
()
{
},
mounted
()
{
if
(
localStorage
.
b2bUser
)
{
var
b2bUser
=
JSON
.
parse
(
window
.
localStorage
.
getItem
(
'b2bUser'
))
if
(
b2bUser
)
{
this
.
qMsg
.
CreateBy
=
b2bUser
.
accountId
;
this
.
getOrderMsg
.
CustomerId
=
b2bUser
.
customerId
;
this
.
gerOrderList
();
}
}
},
methods
:
{
getContract
()
{
gerOrderList
:
function
()
{
this
.
apiJavaPost
(
"/api/b2b/user/getrecentorder"
,
this
.
getOrderMsg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
DataList
=
res
.
data
.
data
.
pageData
;
this
.
pageCount
=
res
.
data
.
data
.
pageCount
;
}
else
{
}
},
null
);
},
handleClick
(
item
)
{
this
.
checked
=
item
.
ID
;
this
.
getOrderMsg
.
orderState
=
item
.
ID
;
this
.
gerOrderList
();
}
},
};
...
...
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