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
8ba78f0e
Commit
8ba78f0e
authored
Mar 15, 2023
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改订单列表
parent
39e00b69
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
245 additions
and
136 deletions
+245
-136
quasar.conf.js
quasar.conf.js
+2
-1
utils.js
src/boot/utils.js
+1
-1
city-category.vue
src/components/navs/city-category.vue
+0
-5
hor-big-one.vue
src/components/navs/hor-big-one.vue
+0
-5
order.vue
src/pages/usercenter/order.vue
+169
-117
enumhelper.js
src/utils/enumhelper.js
+0
-1
listProductType.js
src/utils/listProductType.js
+15
-5
orderStautsEnum.js
src/utils/orderStautsEnum.js
+29
-0
producttypeenum.js
src/utils/producttypeenum.js
+29
-1
No files found.
quasar.conf.js
View file @
8ba78f0e
...
@@ -183,7 +183,8 @@ module.exports = function( /* ctx */ ) {
...
@@ -183,7 +183,8 @@ module.exports = function( /* ctx */ ) {
plugins
:
[
plugins
:
[
"Meta"
,
"Meta"
,
"Notify"
,
"Notify"
,
'Loading'
'Loading'
,
'Dialog'
]
]
},
},
...
...
src/boot/utils.js
View file @
8ba78f0e
...
@@ -26,7 +26,7 @@ Vue.prototype.domainManager = function() {
...
@@ -26,7 +26,7 @@ Vue.prototype.domainManager = function() {
domainUrl
=
"http://testapi.oytour.com"
;
domainUrl
=
"http://testapi.oytour.com"
;
}
else
if
(
domainNameUrl
.
indexOf
(
'oytour'
)
!==
-
1
)
{
}
else
if
(
domainNameUrl
.
indexOf
(
'oytour'
)
!==
-
1
)
{
// domainUrl = "http://reborn.oytour.com";
// domainUrl = "http://reborn.oytour.com";
domainUrl
=
'http://192.168.10.
11:8083
'
//'http://192.168.10.206:8015' ''http://192.168.10.11:8083' '
domainUrl
=
'http://192.168.10.
206:8015
'
//'http://192.168.10.206:8015' ''http://192.168.10.11:8083' '
}
}
var
obj
=
{
var
obj
=
{
//主地址
//主地址
...
...
src/components/navs/city-category.vue
View file @
8ba78f0e
<
style
>
.q-ml-lg
.block
{
margin-right
:
12px
;
}
</
style
>
<
style
scoped
>
<
style
scoped
>
.header-box
{
.header-box
{
max-width
:
1200px
;
max-width
:
1200px
;
...
...
src/components/navs/hor-big-one.vue
View file @
8ba78f0e
<
style
>
.q-ml-lg
.block
{
margin-right
:
12px
;
}
</
style
>
<
style
scoped
>
<
style
scoped
>
.header-box
{
.header-box
{
max-width
:
1200px
;
max-width
:
1200px
;
...
...
src/pages/usercenter/order.vue
View file @
8ba78f0e
This diff is collapsed.
Click to expand it.
src/utils/enumhelper.js
View file @
8ba78f0e
...
@@ -2,7 +2,6 @@ const EnumHelper = {
...
@@ -2,7 +2,6 @@ const EnumHelper = {
ParseToEnum
(
TEnum
,
value
,
comparison
=
''
)
{
ParseToEnum
(
TEnum
,
value
,
comparison
=
''
)
{
if
(
Object
.
isFrozen
)
{
if
(
Object
.
isFrozen
)
{
let
t
=
Object
.
values
(
TEnum
)
let
t
=
Object
.
values
(
TEnum
)
console
.
log
(
t
,
Symbol
(
1
)
==
1
)
let
r
=
t
.
find
(
x
=>
(
comparison
!=
''
&&
x
[
comparison
]
==
value
)
||
(
comparison
==
''
&&
x
==
value
))
let
r
=
t
.
find
(
x
=>
(
comparison
!=
''
&&
x
[
comparison
]
==
value
)
||
(
comparison
==
''
&&
x
==
value
))
return
r
return
r
}
else
{
}
else
{
...
...
src/utils/listProductType.js
View file @
8ba78f0e
...
@@ -2,23 +2,33 @@ const ListProductTypeEnum = Object.freeze({
...
@@ -2,23 +2,33 @@ const ListProductTypeEnum = Object.freeze({
TRIP
:
{
TRIP
:
{
value
:
1
,
value
:
1
,
desc
:
'線路旅遊'
desc
:
'線路旅遊'
,
bgColor
:
'bg-pink-2'
,
color
:
'text-pink'
},
},
SCENIC
:
{
SCENIC
:
{
value
:
2
,
value
:
2
,
desc
:
'景點門票'
desc
:
'景點門票'
,
bgColor
:
'bg-purple-2'
,
color
:
'text-purple'
},
},
HOTEL
:
{
HOTEL
:
{
value
:
3
,
value
:
3
,
desc
:
'酒店住宿'
desc
:
'酒店住宿'
,
bgColor
:
'bg-indigo-2'
,
color
:
'text-indigo'
},
},
CAR
:
{
CAR
:
{
value
:
4
,
value
:
4
,
desc
:
'目的地用車'
desc
:
'目的地用車'
,
bgColor
:
'bg-teal-2'
,
color
:
'text-teal'
},
},
JALAN
:
{
JALAN
:
{
value
:
5
,
value
:
5
,
desc
:
'酒店住宿'
desc
:
'酒店住宿'
,
bgColor
:
'bg-indigo-2'
,
color
:
'text-indigo'
},
},
})
})
...
...
src/utils/orderStautsEnum.js
0 → 100644
View file @
8ba78f0e
const
OrderStatusEnum
=
Object
.
freeze
({
UN_PAY
:
{
value
:
1
,
desc
:
'待付款'
,
icon
:
'iconfont icontime1'
,
color
:
'text-orange'
},
PAYED
:
{
value
:
2
,
desc
:
'待出行'
,
icon
:
'iconfont iconflag'
,
color
:
'text-green'
},
FINISH
:
{
value
:
3
,
desc
:
'已完成'
,
icon
:
'iconfont iconsuccess'
,
color
:
'text-dark'
},
CANCEL
:
{
value
:
4
,
desc
:
'已取消'
,
icon
:
'iconfont iconminus'
,
color
:
'text-grey-6'
}
})
export
default
OrderStatusEnum
\ No newline at end of file
src/utils/producttypeenum.js
View file @
8ba78f0e
import
EnumHelper
from
"./enumhelper"
import
ListProductTypeEnum
from
"./listProductType"
const
ProductTypeEnum
=
Object
.
freeze
({
const
ProductTypeEnum
=
Object
.
freeze
({
/**
/**
* 一日游
* 一日游
...
@@ -112,4 +115,29 @@ const ProductTypeEnum = Object.freeze({
...
@@ -112,4 +115,29 @@ const ProductTypeEnum = Object.freeze({
})
})
const
mappingRules
=
[
[
-
1
],
[
1
,
2
,
3
],
[
4
,
5
,
6
,
7
],
[
-
1
],
[
12
,
13
,
14
],
[
8
,
9
,
10
,
11
]
]
const
mappingListType
=
(
value
)
=>
{
let
val
=
mappingRules
.
findIndex
(
x
=>
{
return
x
.
indexOf
(
value
)
!=
-
1
})
if
(
val
&&
val
>
0
)
{
return
EnumHelper
.
ParseToEnum
(
ListProductTypeEnum
,
val
,
'value'
)
}
return
{}
}
const
transProductEnum
=
(
value
)
=>
{
return
mappingRules
[
value
]
}
export
default
ProductTypeEnum
export
default
ProductTypeEnum
export
{
mappingListType
,
transProductEnum
}
\ No newline at end of file
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