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
bbdef3b7
Commit
bbdef3b7
authored
Feb 07, 2025
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
f97cfc41
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
2 deletions
+16
-2
order.vue
src/pages/usercenter/order.vue
+1
-0
orderDetail.vue
src/pages/usercenter/order/orderDetail.vue
+1
-1
listProductType.js
src/utils/listProductType.js
+6
-0
producttypeenum.js
src/utils/producttypeenum.js
+8
-1
No files found.
src/pages/usercenter/order.vue
View file @
bbdef3b7
...
...
@@ -250,6 +250,7 @@ export default {
this
.
orderList
=
pageData
;
this
.
orderList
.
forEach
(
x
=>
{
x
.
goodTypeEnum
=
mappingListType
(
x
.
goodsType
)
console
.
log
(
x
.
goodTypeEnum
)
x
.
orderStatusInfo
=
EnumHelper
.
ParseToEnum
(
OrderStatusEnum
,
x
.
orderStatus
,
'value'
)
})
}
else
{
...
...
src/pages/usercenter/order/orderDetail.vue
View file @
bbdef3b7
...
...
@@ -135,7 +135,7 @@ export default {
// GoodsType: this.productType,//商品类型(见枚举) 12包车 13 接机 14送机
data
()
{
return
{
goodTypeList
:
[
''
,
'一日游'
,
'多日游'
,
'小包团'
,
'景点门票'
,
'主题乐园'
,
'博物馆'
,
'历史景点'
,
'温泉饭店'
,
'星级饭店'
,
'度假村'
,
'民宿'
,
'包车'
,
'接机'
,
'送机'
],
goodTypeList
:
[
''
,
'一日游'
,
'多日游'
,
'小包团'
,
'景点门票'
,
'主题乐园'
,
'博物馆'
,
'历史景点'
,
'温泉饭店'
,
'星级饭店'
,
'度假村'
,
'民宿'
,
'包车'
,
'接机'
,
'送机'
,
'签证'
],
showCode
:
false
,
detail
:
{},
orderIcon
:
''
,
...
...
src/utils/listProductType.js
View file @
bbdef3b7
...
...
@@ -30,6 +30,12 @@ const ListProductTypeEnum = Object.freeze({
bgColor
:
'bg-indigo-2'
,
color
:
'text-indigo'
},
VISA
:
{
value
:
6
,
desc
:
'签证'
,
bgColor
:
'bg-pink-2'
,
color
:
'text-pink'
},
})
export
default
ListProductTypeEnum
\ No newline at end of file
src/utils/producttypeenum.js
View file @
bbdef3b7
...
...
@@ -110,6 +110,10 @@ const ProductTypeEnum = Object.freeze({
DROP_OFF
:
{
value
:
14
,
desc
:
'送机产品'
},
VISARTER
:
{
value
:
15
,
desc
:
'签证产品'
}
...
...
@@ -121,13 +125,16 @@ const mappingRules = [
[
4
,
5
,
6
,
7
],
[
-
1
],
[
12
,
13
,
14
],
[
8
,
9
,
10
,
11
]
[
8
,
9
,
10
,
11
],
[
15
]
]
const
mappingListType
=
(
value
)
=>
{
let
val
=
mappingRules
.
findIndex
(
x
=>
{
return
x
.
indexOf
(
value
)
!=
-
1
})
console
.
log
(
val
,
value
)
if
(
val
&&
val
>
0
)
{
return
EnumHelper
.
ParseToEnum
(
ListProductTypeEnum
,
val
,
'value'
)
}
...
...
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