Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
jz_Travel
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
zhengke
jz_Travel
Commits
391066a7
Commit
391066a7
authored
Apr 21, 2025
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
酒店接口调整
parent
9c77d820
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
1055 additions
and
986 deletions
+1055
-986
AggregateOrdersList.vue
pages/AggregateOrders/AggregateOrdersList.vue
+103
-95
AggregateOrdersSearch.vue
pages/AggregateOrders/AggregateOrdersSearch.vue
+155
-136
header.vue
pages/AggregateOrders/components/header.vue
+232
-214
orders.vue
pages/AggregateOrders/components/orders.vue
+490
-466
hotelRoom.vue
pages/hotel/components/hotelRoom.vue
+3
-3
order.vue
pages/hotel/order.vue
+7
-13
producttypeenum.js
utils/producttypeenum.js
+65
-59
No files found.
pages/AggregateOrders/AggregateOrdersList.vue
View file @
391066a7
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
@import
url("@/asset/css/flex.css")
;
@import
url("@/asset/css/flex.css")
;
.AggOrdBox
{
.AggOrdBox
{
height
:
100vh
;
height
:
100vh
;
background
:
url('https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638772246864278108.jpg')
no-repeat
#F3F1EF
;
background
:
url('https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638772246864278108.jpg')
no-repeat
#F3F1EF
;
background-size
:
100%
240rpx
;
background-size
:
100%
240rpx
;
.AggOrdHeader
{
.AggOrdHeader
{
padding-bottom
:
20rpx
;
padding-bottom
:
20rpx
;
// background: url('https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638772246864278108.jpg')no-repeat;
// background: url('https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638772246864278108.jpg')no-repeat;
// background-size: 100% 100%;
// background-size: 100% 100%;
}
}
.AggOrdStatus
{
.AggOrdStatus
{
padding-top
:
20rpx
;
padding-top
:
20rpx
;
.AggOrdT
{
.AggOrdT
{
width
:
25%
;
width
:
25%
;
padding
:
10rpx
20rpx
;
padding
:
10rpx
20rpx
;
font-size
:
28rpx
;
font-size
:
28rpx
;
color
:
#080A09
;
color
:
#080A09
;
position
:
relative
;
position
:
relative
;
}
}
.AggOrdT.active
{
.AggOrdT.active
{
color
:
#B99846
;
color
:
#B99846
;
font-weight
:
bold
;
font-weight
:
bold
;
}
}
.AggOrdT
text
{
.AggOrdT
text
{
display
:
block
;
display
:
block
;
text-align
:
center
;
text-align
:
center
;
}
}
.AggOrdT
view
{
.AggOrdT
view
{
position
:
absolute
;
position
:
absolute
;
left
:
0
;
left
:
0
;
right
:
0
;
right
:
0
;
bottom
:
0
;
bottom
:
0
;
}
}
.AggOrdT
view
view
{
.AggOrdT
view
view
{
width
:
60rpx
;
width
:
60rpx
;
height
:
10rpx
;
height
:
10rpx
;
margin
:
auto
;
margin
:
auto
;
...
@@ -42,36 +50,31 @@
...
@@ -42,36 +50,31 @@
}
}
}
}
/
deep
/
.showModalInfo
.u-drawer-bottom
{
background-color
:
rgba
(
23
,
23
,
23
,
0
)
!
important
;
/
deep
/
.showModalInfo
.u-drawer-bottom
{
background-color
:
rgba
(
23
,
23
,
23
,
0
)
!
important
;
}
}
</
style
>
</
style
>
<
template
>
<
template
>
<view
class=
"AggOrdBox column"
>
<view
class=
"AggOrdBox column"
>
<view
class=
"AggOrdHeader"
:style=
"[titleStyle]"
>
<view
class=
"AggOrdHeader"
:style=
"[titleStyle]"
>
<AggOrdHeader
:title=
"pageTitle"
<AggOrdHeader
:title=
"pageTitle"
@
change=
"getOrderType"
:params=
"msg"
></AggOrdHeader>
@
change=
"getOrderType"
:params=
"msg"
></AggOrdHeader>
<view
class=
"AggOrdStatus row items-center"
>
<view
class=
"AggOrdStatus row items-center"
>
<template>
<template>
<view
class=
"AggOrdT"
<view
class=
"AggOrdT"
v-for=
"(item,index) in statusList"
:key=
"index"
v-for=
"(item,index) in statusList"
:class=
"[msg.OrderStatus==item.ID?'active':'']"
@
click=
"getStatus(item.ID)"
>
:key=
"index"
:class=
"[msg.OrderStatus==item.ID?'active':'']"
@
click=
"getStatus(item.ID)"
>
<text>
{{
item
.
Name
}}
</text>
<text>
{{
item
.
Name
}}
</text>
</view>
</view>
</
template
>
</
template
>
</view>
</view>
</view>
</view>
<view
class=
"col"
style=
"height: 1px;flex: 1;overflow: hidden;padding-top: 10rpx;"
>
<view
class=
"col"
style=
"height: 1px;flex: 1;overflow: hidden;padding-top: 10rpx;"
>
<scroll-view
:scroll-y=
"true"
<scroll-view
:scroll-y=
"true"
:enable-back-to-top=
"true"
:enable-flex=
"true"
@
scrolltolower=
"lower"
:enable-back-to-top=
"true"
style=
"height: 100%;"
>
:enable-flex=
"true"
@
scrolltolower=
"lower"
style=
"height: 100%;"
>
<orders
:orders=
"g"
@
research=
"research"
></orders>
<orders
:orders=
"g"
@
research=
"research"
></orders>
<u-empty
v-if=
"g.length==0"
text=
"暂无数据"
mode=
"data"
padding-top=
"20"
></u-empty>
<u-empty
v-if=
"g.length==0"
text=
"暂无数据"
mode=
"data"
padding-top=
"20"
></u-empty>
<u-loadmore
v-else
:status=
"status"
:load-text=
"loadText"
:font-size=
"24"
:margin-top=
"20"
:margin-bottom=
"20"
bg-color=
"#F3F1EF"
/>
<u-loadmore
v-else
:status=
"status"
:load-text=
"loadText"
:font-size=
"24"
:margin-top=
"20"
:margin-bottom=
"20"
bg-color=
"#F3F1EF"
/>
<view
style=
"width: 100%;height: 20rpx;"
></view>
<view
style=
"width: 100%;height: 20rpx;"
></view>
</scroll-view>
</scroll-view>
</view>
</view>
...
@@ -79,22 +82,25 @@
...
@@ -79,22 +82,25 @@
</template>
</template>
<
script
>
<
script
>
import
{
mappingListType
,
mappingListTypeTy
}
from
"../../utils/producttypeenum"
;
import
{
mappingListType
,
mappingListTypeTy
}
from
"../../utils/producttypeenum"
;
import
EnumHelper
from
'../../utils/enumhelper'
;
import
EnumHelper
from
'../../utils/enumhelper'
;
import
OrderStatusEnum
from
'../../utils/orderStautsEnum'
;
import
OrderStatusEnum
from
'../../utils/orderStautsEnum'
;
import
AggOrdHeader
from
"./components/header.vue"
;
import
AggOrdHeader
from
"./components/header.vue"
;
import
orders
from
"./components/orders.vue"
;
import
orders
from
"./components/orders.vue"
;
export
default
{
export
default
{
components
:
{
components
:
{
AggOrdHeader
,
AggOrdHeader
,
orders
,
orders
,
},
},
data
()
{
data
()
{
return
{
return
{
pageTitle
:
'所有订单'
,
pageTitle
:
'所有订单'
,
msg
:{
msg
:
{
pageSize
:
10
,
pageSize
:
10
,
pageIndex
:
1
,
pageIndex
:
1
,
OrderStatus
:
0
,
OrderStatus
:
0
,
GoodsName
:
''
,
GoodsName
:
''
,
OrderTypeStr
:
''
OrderTypeStr
:
''
...
@@ -106,19 +112,19 @@
...
@@ -106,19 +112,19 @@
},
},
status
:
"loadmore"
,
status
:
"loadmore"
,
showModal
:
false
,
showModal
:
false
,
barshow
:
0
,
barshow
:
0
,
statusList
:
[],
statusList
:
[],
g
:
[],
g
:
[],
page_count
:
1
,
page_count
:
1
,
index
:
0
,
index
:
0
,
payindex
:
0
,
payindex
:
0
,
showAuth
:
false
,
showAuth
:
false
,
titleStyle
:{},
titleStyle
:
{},
}
}
},
},
onLoad
(
options
)
{
onLoad
(
options
)
{
if
(
options
.
OrderTypeStr
)
this
.
msg
.
OrderTypeStr
=
options
.
OrderTypeStr
if
(
options
.
OrderTypeStr
)
this
.
msg
.
OrderTypeStr
=
options
.
OrderTypeStr
if
(
options
.
OrderStatus
)
this
.
msg
.
OrderStatus
=
options
.
OrderStatus
if
(
options
.
OrderStatus
)
this
.
msg
.
OrderStatus
=
options
.
OrderStatus
this
.
research
()
this
.
research
()
},
},
created
()
{
created
()
{
...
@@ -131,15 +137,14 @@
...
@@ -131,15 +137,14 @@
},
},
});
});
this
.
getOrderEnums
()
this
.
getOrderEnums
()
},
},
methods
:
{
methods
:
{
getStatus
(
ID
){
getStatus
(
ID
)
{
this
.
msg
.
OrderStatus
=
ID
this
.
msg
.
OrderStatus
=
ID
this
.
research
()
this
.
research
()
},
},
research
(
status
){
research
(
status
)
{
if
(
status
)
this
.
msg
.
OrderStatus
=
status
;
if
(
status
)
this
.
msg
.
OrderStatus
=
status
;
this
.
msg
.
pageIndex
=
1
;
this
.
msg
.
pageIndex
=
1
;
this
.
msg
.
pageSize
=
10
;
this
.
msg
.
pageSize
=
10
;
this
.
status
=
"loadmore"
;
this
.
status
=
"loadmore"
;
...
@@ -147,12 +152,12 @@
...
@@ -147,12 +152,12 @@
this
.
g
=
[];
this
.
g
=
[];
this
.
init
()
this
.
init
()
},
},
getOrderType
(
item
){
getOrderType
(
item
)
{
this
.
msg
.
OrderTypeStr
=
item
.
Id
this
.
msg
.
OrderTypeStr
=
item
.
Id
this
.
pageTitle
=
item
.
Name
this
.
pageTitle
=
item
.
Name
this
.
research
()
this
.
research
()
},
},
init
()
{
init
()
{
uni
.
showLoading
({
uni
.
showLoading
({
title
:
'加载中...'
title
:
'加载中...'
})
})
...
@@ -163,19 +168,20 @@
...
@@ -163,19 +168,20 @@
this
.
OrderPageTY
();
this
.
OrderPageTY
();
// #endif
// #endif
},
},
OrderPageTY
(){
OrderPageTY
()
{
this
.
apipost
(
'b2b_get_GetB2BAllOrderPageList'
,
this
.
msg
,
this
.
apipost
(
'b2b_get_GetB2BAllOrderPageList'
,
this
.
msg
,
res
=>
{
res
=>
{
if
(
res
.
resultCode
==
1
)
{
if
(
res
.
resultCode
==
1
)
{
uni
.
hideLoading
()
uni
.
hideLoading
()
res
.
data
.
pageData
.
forEach
(
x
=>
{
res
.
data
.
pageData
.
forEach
(
x
=>
{
// #ifdef MP-DI
// #ifdef MP-DI
x
.
goodTypeEnum
=
mappingListType
(
x
.
goodsType
)
x
.
goodTypeEnum
=
mappingListType
(
x
.
goodsType
)
// #endif
// #endif
// #ifdef MP-AG
// #ifdef MP-AG
x
.
goodTypeEnum
=
mappingListTypeTy
(
x
.
goodsType
)
x
.
goodTypeEnum
=
mappingListTypeTy
(
x
.
goodsType
)
// #endif
// #endif
x
.
orderStatusInfo
=
EnumHelper
.
ParseToEnum
(
OrderStatusEnum
,
x
.
orderStatus
,
'value'
)
x
.
orderStatusInfo
=
EnumHelper
.
ParseToEnum
(
OrderStatusEnum
,
x
.
orderStatus
,
'value'
)
})
})
this
.
g
=
this
.
g
.
concat
(
res
.
data
.
pageData
);
this
.
g
=
this
.
g
.
concat
(
res
.
data
.
pageData
);
this
.
page_count
=
res
.
data
.
pageCount
;
this
.
page_count
=
res
.
data
.
pageCount
;
...
@@ -189,14 +195,15 @@
...
@@ -189,14 +195,15 @@
}
}
);
);
},
},
OrderPageZK
(){
OrderPageZK
()
{
this
.
apipost
(
'GetMyDirectOrderPageList_post'
,
this
.
msg
,
this
.
apipost
(
'GetMyDirectOrderPageList_post'
,
this
.
msg
,
res
=>
{
res
=>
{
if
(
res
.
resultCode
==
1
)
{
if
(
res
.
resultCode
==
1
)
{
uni
.
hideLoading
()
uni
.
hideLoading
()
res
.
data
.
pageData
.
forEach
(
x
=>
{
res
.
data
.
pageData
.
forEach
(
x
=>
{
x
.
goodTypeEnum
=
mappingListType
(
x
.
goodsType
)
x
.
goodTypeEnum
=
mappingListType
(
x
.
goodsType
)
x
.
orderStatusInfo
=
EnumHelper
.
ParseToEnum
(
OrderStatusEnum
,
x
.
orderStatus
,
'value'
)
x
.
orderStatusInfo
=
EnumHelper
.
ParseToEnum
(
OrderStatusEnum
,
x
.
orderStatus
,
'value'
)
})
})
this
.
g
=
this
.
g
.
concat
(
res
.
data
.
pageData
);
this
.
g
=
this
.
g
.
concat
(
res
.
data
.
pageData
);
this
.
page_count
=
res
.
data
.
pageCount
;
this
.
page_count
=
res
.
data
.
pageCount
;
...
@@ -221,23 +228,25 @@
...
@@ -221,23 +228,25 @@
},
},
getOrderEnums
()
{
getOrderEnums
()
{
this
.
apipost
(
this
.
apipost
(
"GetDirectOrderStatusEnum_post"
,
"GetDirectOrderStatusEnum_post"
,
{},
{},
(
res
)
=>
{
(
res
)
=>
{
if
(
res
.
resultCode
==
1
)
{
if
(
res
.
resultCode
==
1
)
{
// #ifdef MP-DI
// #ifdef MP-DI
this
.
statusList
=
res
.
data
.
filter
(
x
=>
x
.
ID
!=
4
);
this
.
statusList
=
res
.
data
.
filter
(
x
=>
x
.
ID
!=
4
);
// #endif
// #endif
// #ifdef MP-AG
// #ifdef MP-AG
this
.
statusList
=
res
.
data
.
filter
(
x
=>
x
.
ID
!=
5
);
this
.
statusList
=
res
.
data
.
filter
(
x
=>
x
.
ID
!=
5
);
// #endif
// #endif
this
.
statusList
.
splice
(
0
,
0
,{
ID
:
0
,
Name
:
'全部'
})
this
.
statusList
.
splice
(
0
,
0
,
{
this
.
statusList
.
forEach
(
x
=>
{
ID
:
0
,
if
(
x
.
Name
==
'已付款'
)
x
.
Name
=
'待出行'
Name
:
'全部'
})
this
.
statusList
.
forEach
(
x
=>
{
if
(
x
.
Name
==
'已付款'
)
x
.
Name
=
'待出行'
})
})
}
}
},
},
err
=>
{
err
=>
{
uni
.
showToast
({
uni
.
showToast
({
title
:
err
.
message
,
title
:
err
.
message
,
icon
:
"none"
,
icon
:
"none"
,
...
@@ -248,4 +257,3 @@
...
@@ -248,4 +257,3 @@
},
},
}
}
</
script
>
</
script
>
\ No newline at end of file
pages/AggregateOrders/AggregateOrdersSearch.vue
View file @
391066a7
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
@import
url("@/asset/css/flex.css")
;
@import
url("@/asset/css/flex.css")
;
.AggOrdBox
{
.AggOrdBox
{
height
:
100vh
;
height
:
100vh
;
background
:
url('https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638772246864278108.jpg')
no-repeat
#F3F1EF
;
background
:
url('https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638772246864278108.jpg')
no-repeat
#F3F1EF
;
background-size
:
100%
240rpx
;
background-size
:
100%
240rpx
;
.AggOrdHeader
{
}
.AggOrdHeader
{}
.AggOrdStatus
{
.AggOrdStatus
{
padding-top
:
10rpx
;
padding-top
:
10rpx
;
.AggOrdT
{
.AggOrdT
{
width
:
25%
;
width
:
25%
;
padding
:
10rpx
20rpx
;
padding
:
10rpx
20rpx
;
font-size
:
28rpx
;
font-size
:
28rpx
;
color
:
#080A09
;
color
:
#080A09
;
position
:
relative
;
position
:
relative
;
}
}
.AggOrdT.active
{
.AggOrdT.active
{
font-weight
:
bold
;
font-weight
:
bold
;
}
}
.AggOrdT
text
{
.AggOrdT
text
{
display
:
block
;
display
:
block
;
text-align
:
center
;
text-align
:
center
;
}
}
.AggOrdT
view
{
.AggOrdT
view
{
position
:
absolute
;
position
:
absolute
;
left
:
0
;
left
:
0
;
right
:
0
;
right
:
0
;
bottom
:
0
;
bottom
:
0
;
}
}
.AggOrdT
view
view
{
.AggOrdT
view
view
{
width
:
60rpx
;
width
:
60rpx
;
height
:
10rpx
;
height
:
10rpx
;
margin
:
auto
;
margin
:
auto
;
...
@@ -37,22 +43,26 @@
...
@@ -37,22 +43,26 @@
border-radius
:
10rpx
;
border-radius
:
10rpx
;
}
}
}
}
.AggregateTitle
{
.AggregateTitle
{
padding
:
40rpx
30rpx
40rpx
30rpx
;
padding
:
40rpx
30rpx
40rpx
30rpx
;
font-size
:
36rpx
;
font-size
:
36rpx
;
font-weight
:
bold
;
font-weight
:
bold
;
text-align
:
left
;
text-align
:
left
;
}
}
.AggregateTypeBox
{
.AggregateTypeBox
{
flex-wrap
:
wrap
;
flex-wrap
:
wrap
;
padding
:
0
15rpx
;
padding
:
0
15rpx
;
}
}
.AggregateType
{
.AggregateType
{
width
:
33
.33%
;
width
:
33
.33%
;
padding
:
0
15rpx
;
padding
:
0
15rpx
;
margin-bottom
:
30rpx
;
margin-bottom
:
30rpx
;
}
}
.AggregateType
view
{
.AggregateType
view
{
display
:
block
;
display
:
block
;
padding
:
10rpx
0
15rpx
35rpx
;
padding
:
10rpx
0
15rpx
35rpx
;
background
:
#E3E6D2
;
background
:
#E3E6D2
;
...
@@ -60,7 +70,8 @@
...
@@ -60,7 +70,8 @@
border
:
1rpx
solid
#E3E6D2
;
border
:
1rpx
solid
#E3E6D2
;
overflow
:
hidden
;
overflow
:
hidden
;
}
}
.AggregateType
img
{
.AggregateType
img
{
width
:
40rpx
;
width
:
40rpx
;
height
:
40rpx
;
height
:
40rpx
;
display
:
inline-block
;
display
:
inline-block
;
...
@@ -68,10 +79,12 @@
...
@@ -68,10 +79,12 @@
top
:
10rpx
;
top
:
10rpx
;
right
:
20rpx
;
right
:
20rpx
;
}
}
.AggregateType
text
{
.AggregateType
text
{
display
:
inline-block
;
display
:
inline-block
;
}
}
.AggregateType.active
view
{
.AggregateType.active
view
{
border
:
1rpx
solid
#B99846
;
border
:
1rpx
solid
#B99846
;
}
}
}
}
...
@@ -79,19 +92,16 @@
...
@@ -79,19 +92,16 @@
<
template
>
<
template
>
<view
class=
"AggOrdBox column"
>
<view
class=
"AggOrdBox column"
>
<view
class=
"AggOrdHeader"
:style=
"[titleStyle]"
>
<view
class=
"AggOrdHeader"
:style=
"[titleStyle]"
>
<AggOrdSearch
<AggOrdSearch
@
change=
"change"
:params=
"msg"
></AggOrdSearch>
@
change=
"change"
:params=
"msg"
></AggOrdSearch>
</view>
</view>
<view
class=
"col"
style=
"height: 1px;flex: 1;overflow: hidden;padding-top: 40rpx;"
>
<view
class=
"col"
style=
"height: 1px;flex: 1;overflow: hidden;padding-top: 40rpx;"
>
<view
v-if=
"!msg.keyword"
>
<view
v-if=
"!msg.keyword"
>
<view
class=
"AggregateTitle"
>
订单类型
</view>
<view
class=
"AggregateTitle"
>
订单类型
</view>
<view
class=
"AggregateTypeBox row"
>
<view
class=
"AggregateTypeBox row"
>
<view
class=
"AggregateType"
v-for=
"(item,index) in orderTypeList"
:key=
"index"
<view
class=
"AggregateType"
v-for=
"(item,index) in orderTypeList"
:key=
"index"
:class=
"[msg.OrderTypeStr==item.Id?'active':'']"
:class=
"[msg.OrderTypeStr==item.Id?'active':'']"
@
click=
"getTypeId(item)"
>
@
click=
"getTypeId(item)"
>
<view
class=
"row"
>
<view
class=
"row"
>
<img
:src=
"item.icon"
/>
<img
:src=
"item.icon"
/>
<text>
<text>
{{
item
.
Name
}}
{{
item
.
Name
}}
</text>
</text>
...
@@ -100,13 +110,12 @@
...
@@ -100,13 +110,12 @@
</view>
</view>
</view>
</view>
</view>
</view>
<scroll-view
v-else
:scroll-y=
"true"
<scroll-view
v-else
:scroll-y=
"true"
:enable-back-to-top=
"true"
:enable-flex=
"true"
@
scrolltolower=
"lower"
:enable-back-to-top=
"true"
style=
"height: 100%;"
>
:enable-flex=
"true"
@
scrolltolower=
"lower"
style=
"height: 100%;"
>
<orders
:orders=
"g"
></orders>
<orders
:orders=
"g"
></orders>
<u-empty
v-if=
"g.length==0"
text=
"暂无数据"
mode=
"data"
padding-top=
"20"
></u-empty>
<u-empty
v-if=
"g.length==0"
text=
"暂无数据"
mode=
"data"
padding-top=
"20"
></u-empty>
<u-loadmore
v-else
:status=
"status"
:load-text=
"loadText"
:font-size=
"24"
:margin-top=
"20"
:margin-bottom=
"20"
bg-color=
"#F3F1EF"
/>
<u-loadmore
v-else
:status=
"status"
:load-text=
"loadText"
:font-size=
"24"
:margin-top=
"20"
:margin-bottom=
"20"
bg-color=
"#F3F1EF"
/>
<view
style=
"width: 100%;height: 20rpx;"
></view>
<view
style=
"width: 100%;height: 20rpx;"
></view>
</scroll-view>
</scroll-view>
</view>
</view>
...
@@ -118,21 +127,24 @@
...
@@ -118,21 +127,24 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
{
mappingListType
,
mappingListTypeTy
}
from
"../../utils/producttypeenum"
;
import
{
mappingListType
,
mappingListTypeTy
}
from
"../../utils/producttypeenum"
;
import
EnumHelper
from
'../../utils/enumhelper'
;
import
EnumHelper
from
'../../utils/enumhelper'
;
import
OrderStatusEnum
from
'../../utils/orderStautsEnum'
;
import
OrderStatusEnum
from
'../../utils/orderStautsEnum'
;
import
AggOrdSearch
from
"./components/searchHeader.vue"
;
import
AggOrdSearch
from
"./components/searchHeader.vue"
;
import
orders
from
"./components/orders.vue"
;
import
orders
from
"./components/orders.vue"
;
export
default
{
export
default
{
components
:
{
components
:
{
AggOrdSearch
,
AggOrdSearch
,
orders
,
orders
,
},
},
data
()
{
data
()
{
return
{
return
{
msg
:{
msg
:
{
pageSize
:
10
,
pageSize
:
10
,
pageIndex
:
1
,
pageIndex
:
1
,
OrderStatus
:
0
,
OrderStatus
:
0
,
GoodsName
:
''
,
GoodsName
:
''
,
OrderTypeStr
:
''
,
OrderTypeStr
:
''
,
...
@@ -145,7 +157,7 @@
...
@@ -145,7 +157,7 @@
},
},
status
:
"loadmore"
,
status
:
"loadmore"
,
showModal
:
false
,
showModal
:
false
,
barshow
:
0
,
barshow
:
0
,
g
:
[],
g
:
[],
page_count
:
1
,
page_count
:
1
,
index
:
0
,
index
:
0
,
...
@@ -186,7 +198,7 @@
...
@@ -186,7 +198,7 @@
Name
:
'景点门票'
Name
:
'景点门票'
}
}
],
],
icons
:[
icons
:
[
'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638772246968492575.jpg'
,
'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638772246968492575.jpg'
,
'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638772247052998903.jpg'
,
'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638772247052998903.jpg'
,
'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638772247084971514.jpg'
,
'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638772247084971514.jpg'
,
...
@@ -197,8 +209,8 @@
...
@@ -197,8 +209,8 @@
titleStyle
:
{},
titleStyle
:
{},
}
}
},
},
onLoad
(
options
)
{
onLoad
(
options
)
{
if
(
options
.
OrderTypeStr
)
{
if
(
options
.
OrderTypeStr
)
{
this
.
msg
.
OrderTypeStr
=
options
.
OrderTypeStr
this
.
msg
.
OrderTypeStr
=
options
.
OrderTypeStr
}
}
},
},
...
@@ -215,26 +227,32 @@
...
@@ -215,26 +227,32 @@
this
.
getEnumList
()
this
.
getEnumList
()
// #endif
// #endif
},
},
methods
:
{
methods
:
{
getEnumList
()
{
getEnumList
()
{
this
.
apipost
(
"CarSingle_post_GetOrderTypeEnumList"
,
{},
(
res
)
=>
{
this
.
apipost
(
"CarSingle_post_GetOrderTypeEnumList"
,
{},
(
res
)
=>
{
if
(
res
.
resultCode
==
1
)
{
if
(
res
.
resultCode
==
1
)
{
this
.
orderTypeList
=
[]
this
.
orderTypeList
=
[]
res
.
data
.
forEach
(
x
=>
{
res
.
data
.
forEach
(
x
=>
{
if
(
x
.
Name
==
'团队'
){
x
.
Name
=
'线路'
}
if
(
x
.
Name
==
'团队'
)
{
if
(
x
.
Name
!=
'Jalan酒店'
){
x
.
Name
=
'线路'
}
if
(
x
.
Name
!=
'Jalan酒店'
)
{
let
icon
=
''
let
icon
=
''
if
(
x
.
Id
==
'1'
)
icon
=
this
.
icons
[
1
]
if
(
x
.
Id
==
'1'
)
icon
=
this
.
icons
[
1
]
if
(
x
.
Id
==
'2'
)
icon
=
this
.
icons
[
0
]
if
(
x
.
Id
==
'2'
)
icon
=
this
.
icons
[
0
]
if
(
x
.
Id
==
'3'
)
icon
=
this
.
icons
[
3
]
if
(
x
.
Id
==
'3'
)
icon
=
this
.
icons
[
3
]
if
(
x
.
Id
==
'4'
)
icon
=
this
.
icons
[
5
]
if
(
x
.
Id
==
'4'
)
icon
=
this
.
icons
[
5
]
if
(
x
.
Id
==
'5'
)
icon
=
this
.
icons
[
4
]
if
(
x
.
Id
==
'5'
)
icon
=
this
.
icons
[
4
]
if
(
x
.
Id
==
'6'
)
icon
=
this
.
icons
[
2
]
if
(
x
.
Id
==
'6'
)
icon
=
this
.
icons
[
2
]
let
obj
=
{
let
obj
=
{
Id
:
x
.
Id
,
Id
:
x
.
Id
,
Name
:
x
.
Name
+
'订单'
,
Name
:
x
.
Name
+
'订单'
,
icon
:
icon
icon
:
icon
}
}
//酒店切换为道旅酒店
if
(
obj
.
Id
==
'3'
)
{
obj
.
Id
=
'7'
;
}
this
.
orderTypeList
.
push
(
obj
)
this
.
orderTypeList
.
push
(
obj
)
}
}
})
})
...
@@ -246,7 +264,7 @@
...
@@ -246,7 +264,7 @@
});
});
})
})
},
},
research
(){
research
()
{
this
.
msg
.
pageIndex
=
1
;
this
.
msg
.
pageIndex
=
1
;
this
.
msg
.
pageSize
=
10
;
this
.
msg
.
pageSize
=
10
;
this
.
status
=
"loadmore"
;
this
.
status
=
"loadmore"
;
...
@@ -259,16 +277,16 @@
...
@@ -259,16 +277,16 @@
this
.
msg
.
keyword
=
item
.
Name
this
.
msg
.
keyword
=
item
.
Name
this
.
research
()
this
.
research
()
},
},
change
(
item
)
{
change
(
item
)
{
this
.
msg
.
keyword
=
item
.
keyword
this
.
msg
.
keyword
=
item
.
keyword
this
.
msg
.
OrderTypeStr
=
item
.
OrderTypeStr
this
.
msg
.
OrderTypeStr
=
item
.
OrderTypeStr
this
.
research
()
this
.
research
()
},
},
init
()
{
init
()
{
if
(
!
this
.
msg
.
keyword
)
return
if
(
!
this
.
msg
.
keyword
)
return
if
(
!
this
.
msg
.
OrderTypeStr
)
{
if
(
!
this
.
msg
.
OrderTypeStr
)
{
this
.
msg
.
GoodsName
=
this
.
msg
.
keyword
this
.
msg
.
GoodsName
=
this
.
msg
.
keyword
}
else
{
}
else
{
this
.
msg
.
GoodsName
=
''
this
.
msg
.
GoodsName
=
''
}
}
uni
.
showLoading
({
uni
.
showLoading
({
...
@@ -281,18 +299,19 @@
...
@@ -281,18 +299,19 @@
this
.
OrderPageTY
();
this
.
OrderPageTY
();
// #endif
// #endif
},
},
OrderPageTY
(){
OrderPageTY
()
{
this
.
apipost
(
'b2b_get_GetB2BAllOrderPageList'
,
this
.
msg
,
this
.
apipost
(
'b2b_get_GetB2BAllOrderPageList'
,
this
.
msg
,
res
=>
{
res
=>
{
if
(
res
.
resultCode
==
1
)
{
if
(
res
.
resultCode
==
1
)
{
res
.
data
.
pageData
.
forEach
(
x
=>
{
res
.
data
.
pageData
.
forEach
(
x
=>
{
// #ifdef MP-DI
// #ifdef MP-DI
x
.
goodTypeEnum
=
mappingListType
(
x
.
goodsType
)
x
.
goodTypeEnum
=
mappingListType
(
x
.
goodsType
)
// #endif
// #endif
// #ifdef MP-AG
// #ifdef MP-AG
x
.
goodTypeEnum
=
mappingListTypeTy
(
x
.
goodsType
)
x
.
goodTypeEnum
=
mappingListTypeTy
(
x
.
goodsType
)
// #endif
// #endif
x
.
orderStatusInfo
=
EnumHelper
.
ParseToEnum
(
OrderStatusEnum
,
x
.
orderStatus
,
'value'
)
x
.
orderStatusInfo
=
EnumHelper
.
ParseToEnum
(
OrderStatusEnum
,
x
.
orderStatus
,
'value'
)
})
})
this
.
g
=
this
.
g
.
concat
(
res
.
data
.
pageData
);
this
.
g
=
this
.
g
.
concat
(
res
.
data
.
pageData
);
this
.
page_count
=
res
.
data
.
pageCount
;
this
.
page_count
=
res
.
data
.
pageCount
;
...
@@ -307,13 +326,14 @@
...
@@ -307,13 +326,14 @@
}
}
);
);
},
},
OrderPageZK
(){
OrderPageZK
()
{
this
.
apipost
(
'GetMyDirectOrderPageList_post'
,
this
.
msg
,
this
.
apipost
(
'GetMyDirectOrderPageList_post'
,
this
.
msg
,
res
=>
{
res
=>
{
if
(
res
.
resultCode
==
1
)
{
if
(
res
.
resultCode
==
1
)
{
res
.
data
.
pageData
.
forEach
(
x
=>
{
res
.
data
.
pageData
.
forEach
(
x
=>
{
x
.
goodTypeEnum
=
mappingListType
(
x
.
goodsType
)
x
.
goodTypeEnum
=
mappingListType
(
x
.
goodsType
)
x
.
orderStatusInfo
=
EnumHelper
.
ParseToEnum
(
OrderStatusEnum
,
x
.
orderStatus
,
'value'
)
x
.
orderStatusInfo
=
EnumHelper
.
ParseToEnum
(
OrderStatusEnum
,
x
.
orderStatus
,
'value'
)
})
})
this
.
g
=
this
.
g
.
concat
(
res
.
data
.
pageData
);
this
.
g
=
this
.
g
.
concat
(
res
.
data
.
pageData
);
this
.
page_count
=
res
.
data
.
pageCount
;
this
.
page_count
=
res
.
data
.
pageCount
;
...
@@ -348,4 +368,3 @@
...
@@ -348,4 +368,3 @@
},
},
}
}
</
script
>
</
script
>
\ No newline at end of file
pages/AggregateOrders/components/header.vue
View file @
391066a7
...
@@ -11,10 +11,12 @@
...
@@ -11,10 +11,12 @@
</view>
</view>
<view
class=
"carrHeader-right row"
>
<view
class=
"carrHeader-right row"
>
<view
class=
"carrHeader-S row items-center justify-center"
>
<view
class=
"carrHeader-S row items-center justify-center"
>
<img
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638772246934795585.jpg"
@
click=
"goSearch"
/>
<img
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638772246934795585.jpg"
@
click=
"goSearch"
/>
</view>
</view>
<view
class=
"carrHeader-T row items-center justify-center"
>
<view
class=
"carrHeader-T row items-center justify-center"
>
<img
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638772247012340060.jpg"
@
click=
"showModal=true"
/>
<img
src=
"https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638772247012340060.jpg"
@
click=
"showModal=true"
/>
</view>
</view>
</view>
</view>
</view>
</view>
...
@@ -22,10 +24,8 @@
...
@@ -22,10 +24,8 @@
<view
style=
"padding: 0 20rpx;"
>
<view
style=
"padding: 0 20rpx;"
>
<view
class=
"AggregateTitle"
>
订单类型
</view>
<view
class=
"AggregateTitle"
>
订单类型
</view>
<view
class=
"AggregateTypeBox row"
>
<view
class=
"AggregateTypeBox row"
>
<view
class=
"AggregateType"
v-for=
"(item,index) in orderTypeList"
<view
class=
"AggregateType"
v-for=
"(item,index) in orderTypeList"
:key=
"index"
:key=
"index"
:class=
"[params.OrderTypeStr==item.Id?'active':'']"
@
click=
"getTypeId(item)"
>
:class=
"[params.OrderTypeStr==item.Id?'active':'']"
@
click=
"getTypeId(item)"
>
<text>
{{
item
.
Name
}}
</text>
<text>
{{
item
.
Name
}}
</text>
</view>
</view>
</view>
</view>
...
@@ -34,13 +34,12 @@
...
@@ -34,13 +34,12 @@
</view>
</view>
</
template
>
</
template
>
<
script
>
<
script
>
export
default
{
export
default
{
props
:[
'title'
,
'params'
],
props
:
[
'title'
,
'params'
],
data
()
{
data
()
{
return
{
return
{
titleStyle
:{},
titleStyle
:
{},
orderTypeList
:
[
orderTypeList
:
[{
{
Id
:
''
,
Id
:
''
,
Name
:
'所有订单'
Name
:
'所有订单'
},
},
...
@@ -70,7 +69,7 @@ export default {
...
@@ -70,7 +69,7 @@ export default {
}
}
],
],
showModal
:
false
,
showModal
:
false
,
icons
:
[
icons
:
[
'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638772246968492575.jpg'
,
'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638772246968492575.jpg'
,
'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638772247052998903.jpg'
,
'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638772247052998903.jpg'
,
'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638772247084971514.jpg'
,
'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Upload/Goods/638772247084971514.jpg'
,
...
@@ -80,12 +79,12 @@ export default {
...
@@ -80,12 +79,12 @@ export default {
]
]
}
}
},
},
watch
:
{
watch
:
{
params
:
{
params
:
{
handler
(
newVal
,
oldVal
)
{
handler
(
newVal
,
oldVal
)
{
},
},
deep
:
true
deep
:
true
}
}
},
},
mounted
()
{
mounted
()
{
...
@@ -93,30 +92,35 @@ export default {
...
@@ -93,30 +92,35 @@ export default {
this
.
getEnumList
()
this
.
getEnumList
()
// #endif
// #endif
},
},
methods
:
{
methods
:
{
getEnumList
()
{
getEnumList
()
{
this
.
apipost
(
"CarSingle_post_GetOrderTypeEnumList"
,
{},
(
res
)
=>
{
this
.
apipost
(
"CarSingle_post_GetOrderTypeEnumList"
,
{},
(
res
)
=>
{
if
(
res
.
resultCode
==
1
)
{
if
(
res
.
resultCode
==
1
)
{
this
.
orderTypeList
=
[]
this
.
orderTypeList
=
[]
res
.
data
.
forEach
(
x
=>
{
res
.
data
.
forEach
(
x
=>
{
if
(
x
.
Name
==
'团队'
){
x
.
Name
=
'线路'
}
if
(
x
.
Name
==
'团队'
)
{
if
(
x
.
Name
!=
'Jalan酒店'
){
x
.
Name
=
'线路'
}
if
(
x
.
Name
!=
'Jalan酒店'
)
{
let
icon
=
''
let
icon
=
''
if
(
x
.
Id
==
'1'
)
icon
=
this
.
icons
[
1
]
if
(
x
.
Id
==
'1'
)
icon
=
this
.
icons
[
1
]
if
(
x
.
Id
==
'2'
)
icon
=
this
.
icons
[
0
]
if
(
x
.
Id
==
'2'
)
icon
=
this
.
icons
[
0
]
if
(
x
.
Id
==
'3'
)
icon
=
this
.
icons
[
3
]
if
(
x
.
Id
==
'3'
)
icon
=
this
.
icons
[
3
]
if
(
x
.
Id
==
'4'
)
icon
=
this
.
icons
[
5
]
if
(
x
.
Id
==
'4'
)
icon
=
this
.
icons
[
5
]
if
(
x
.
Id
==
'5'
)
icon
=
this
.
icons
[
4
]
if
(
x
.
Id
==
'5'
)
icon
=
this
.
icons
[
4
]
if
(
x
.
Id
==
'6'
)
icon
=
this
.
icons
[
2
]
if
(
x
.
Id
==
'6'
)
icon
=
this
.
icons
[
2
]
let
obj
=
{
let
obj
=
{
Id
:
x
.
Id
,
Id
:
x
.
Id
,
Name
:
x
.
Name
+
'订单'
,
Name
:
x
.
Name
+
'订单'
,
icon
:
icon
icon
:
icon
}
}
//酒店切换为道旅酒店
if
(
obj
.
Id
==
'3'
)
{
obj
.
Id
=
'7'
;
}
this
.
orderTypeList
.
push
(
obj
)
this
.
orderTypeList
.
push
(
obj
)
}
}
})
})
// this.orderTypeList = res.data
this
.
orderTypeList
.
unshift
({
this
.
orderTypeList
.
unshift
({
Id
:
''
,
Id
:
''
,
Name
:
'所有订单'
Name
:
'所有订单'
...
@@ -133,61 +137,70 @@ export default {
...
@@ -133,61 +137,70 @@ export default {
this
.
$emit
(
'change'
,
item
)
this
.
$emit
(
'change'
,
item
)
this
.
showModal
=
false
;
this
.
showModal
=
false
;
},
},
goSearch
(){
goSearch
()
{
// ?OrderTypeStr=${this.params.OrderTypeStr}
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
`/pages/AggregateOrders/AggregateOrdersSearch`
url
:
`/pages/AggregateOrders/AggregateOrdersSearch`
})
})
},
},
goBack
(){
goBack
()
{
uni
.
navigateBack
({
delta
:
-
1
})
uni
.
navigateBack
({
delta
:
-
1
})
}
}
}
}
}
}
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
@import
url("@/asset/css/flex.css")
;
@import
url("@/asset/css/flex.css")
;
.AggregateTitle
{
.AggregateTitle
{
padding
:
40rpx
30rpx
40rpx
30rpx
;
padding
:
40rpx
30rpx
40rpx
30rpx
;
font-size
:
32rpx
;
font-size
:
32rpx
;
font-weight
:
bold
;
font-weight
:
bold
;
text-align
:
left
;
text-align
:
left
;
}
}
.AggregateTypeBox
{
.AggregateTypeBox
{
flex-wrap
:
wrap
;
flex-wrap
:
wrap
;
padding
:
0
15rpx
;
padding
:
0
15rpx
;
}
}
.AggregateType
{
.AggregateType
{
width
:
33
.33%
;
width
:
33
.33%
;
padding
:
0
15rpx
;
padding
:
0
15rpx
;
margin-bottom
:
30rpx
;
margin-bottom
:
30rpx
;
}
}
.AggregateType
text
{
.AggregateType
text
{
display
:
block
;
display
:
block
;
line-height
:
60rpx
;
line-height
:
60rpx
;
background
:
#f5f5f5
;
background
:
#f5f5f5
;
border
:
1rpx
solid
#E3E6D2
;
border
:
1rpx
solid
#E3E6D2
;
border-radius
:
60rpx
;
border-radius
:
60rpx
;
text-align
:
center
;
text-align
:
center
;
}
}
.AggregateType.active
text
{
.AggregateType.active
text
{
border
:
1rpx
solid
#B99846
;
border
:
1rpx
solid
#B99846
;
color
:
#B99846
;
color
:
#B99846
;
}
}
.carrHeader-title
{
.carrHeader-title
{
position
:
relative
;
position
:
relative
;
left
:
60rpx
;
left
:
60rpx
;
right
:
0
;
right
:
0
;
text-align
:
left
;
text-align
:
left
;
font-size
:
32rpx
;
font-size
:
32rpx
;
}
}
.carrHeader-left
{
.carrHeader-left
{
position
:
absolute
;
position
:
absolute
;
left
:
32rpx
;
left
:
32rpx
;
bottom
:
23rpx
;
bottom
:
23rpx
;
z-index
:
3
;
z-index
:
3
;
}
}
.carrHeaderBox
{
.carrHeaderBox
{
width
:
100%
;
width
:
100%
;
height
:
88rpx
;
height
:
88rpx
;
padding
:
0
32rpx
;
padding
:
0
32rpx
;
...
@@ -195,28 +208,33 @@ export default {
...
@@ -195,28 +208,33 @@ export default {
align-items
:
center
;
align-items
:
center
;
justify-content
:
space-between
;
justify-content
:
space-between
;
position
:
relative
;
position
:
relative
;
}
}
.carrHeader
{
.carrHeader
{
// padding-top: 85rpx;
// padding-top: 85rpx;
}
}
.carrHeader-right
{
.carrHeader-right
{
padding-right
:
200rpx
;
padding-right
:
200rpx
;
display
:
flex
;
display
:
flex
;
}
}
.carrHeader-right
img
{
.carrHeader-right
img
{
width
:
35rpx
;
width
:
35rpx
;
height
:
35rpx
;
height
:
35rpx
;
}
}
.carrHeader-S
{
.carrHeader-S
{
width
:
63rpx
;
width
:
63rpx
;
height
:
63rpx
;
height
:
63rpx
;
margin-right
:
20rpx
;
margin-right
:
20rpx
;
}
}
.carrHeader-T
{
.carrHeader-T
{
width
:
63rpx
;
width
:
63rpx
;
height
:
63rpx
;
height
:
63rpx
;
border-radius
:
50%
;
border-radius
:
50%
;
border
:
1px
solid
#CFC089
;
border
:
1px
solid
#CFC089
;
margin-right
:
20rpx
;
margin-right
:
20rpx
;
}
}
</
style
>
</
style
>
\ No newline at end of file
pages/AggregateOrders/components/orders.vue
View file @
391066a7
This diff is collapsed.
Click to expand it.
pages/hotel/components/hotelRoom.vue
View file @
391066a7
...
@@ -300,10 +300,10 @@
...
@@ -300,10 +300,10 @@
}
}
if
(
this
.
HotelInfo
)
{
if
(
this
.
HotelInfo
)
{
if
(
this
.
HotelInfo
.
images
&&
this
.
HotelInfo
.
images
.
length
>
0
)
{
if
(
this
.
HotelInfo
.
images
&&
this
.
HotelInfo
.
images
.
length
>
0
)
{
//pHotel.images = this.HotelInfo.images
;
pHotel
.
images
.
push
(
this
.
HotelInfo
.
images
[
0
].
url
)
;
}
}
if
(
this
.
HotelInfo
.
address
)
{
if
(
this
.
HotelInfo
.
location
&&
this
.
HotelInfo
.
location
.
address
)
{
pHotel
.
address
=
this
.
HotelInfo
.
address
;
pHotel
.
address
=
this
.
HotelInfo
.
location
.
address
;
}
}
}
}
console
.
log
(
"hotelRoom"
,
pHotel
);
console
.
log
(
"hotelRoom"
,
pHotel
);
...
...
pages/hotel/order.vue
View file @
391066a7
...
@@ -350,15 +350,16 @@
...
@@ -350,15 +350,16 @@
}
,
}
,
onLoad
(
options
)
{
onLoad
(
options
)
{
this
.
customer
=
uni
.
getStorageSync
(
"b2b_user"
)
this
.
customer
=
uni
.
getStorageSync
(
"b2b_user"
)
console
.
log
(
"hotel_order"
,
options
);
if
(
options
.
searchObj
)
{
if
(
options
.
searchObj
)
{
this
.
searchObj
=
JSON
.
parse
(
options
.
searchObj
)
this
.
searchObj
=
JSON
.
parse
(
options
.
searchObj
)
}
}
if
(
options
.
HotelInfo
)
{
if
(
options
.
HotelInfo
)
{
this
.
HotelInfo
=
JSON
.
parse
(
options
.
HotelInfo
)
this
.
HotelInfo
=
JSON
.
parse
(
options
.
HotelInfo
)
console
.
log
(
"hotel_order_hotelInfo"
,
this
.
HotelInfo
)
this
.
orderMsg
.
hotelId
=
this
.
HotelInfo
.
hotelid
;
this
.
orderMsg
.
hotelId
=
this
.
HotelInfo
.
hotelid
;
this
.
orderMsg
.
HotelName
=
this
.
HotelInfo
.
name
this
.
orderMsg
.
HotelName
=
this
.
HotelInfo
.
name
;
if
(
this
.
HotelInfo
.
images
&&
this
.
HotelInfo
.
images
.
length
>
0
)
{
this
.
orderMsg
.
HotelPic
=
this
.
HotelInfo
.
images
[
0
];
}
}
}
if
(
options
.
RoomInfo
)
{
if
(
options
.
RoomInfo
)
{
this
.
RoomInfo
=
JSON
.
parse
(
options
.
RoomInfo
)
this
.
RoomInfo
=
JSON
.
parse
(
options
.
RoomInfo
)
...
@@ -370,8 +371,6 @@
...
@@ -370,8 +371,6 @@
this
.
CreateBy
=
options
.
CreateBy
this
.
CreateBy
=
options
.
CreateBy
}
}
this
.
orderMsg
.
ProductId
=
this
.
RoomInfo
.
RoomTypeID
;
this
.
orderMsg
.
ProductId
=
this
.
RoomInfo
.
RoomTypeID
;
console
.
log
(
"hotel_order_this.searchObj"
,
this
.
searchObj
)
console
.
log
(
"hotel_order_this.RoomInfo"
,
this
.
RoomInfo
)
this
.
orderMsg
.
RatePlanID
=
this
.
RoomInfo
.
RatePlanID
this
.
orderMsg
.
RatePlanID
=
this
.
RoomInfo
.
RatePlanID
this
.
orderMsg
.
CheckInDate
=
this
.
dayObj
.
start
;
this
.
orderMsg
.
CheckInDate
=
this
.
dayObj
.
start
;
this
.
orderMsg
.
CheckOutDate
=
this
.
dayObj
.
end
;
this
.
orderMsg
.
CheckOutDate
=
this
.
dayObj
.
end
;
...
@@ -428,7 +427,8 @@
...
@@ -428,7 +427,8 @@
Name
:
this
.
customer
.
name
,
Name
:
this
.
customer
.
name
,
ContactNumber
:
this
.
orderMsg
.
guestPhoneNumber
,
ContactNumber
:
this
.
orderMsg
.
guestPhoneNumber
,
Mailbox
:
this
.
orderMsg
.
guestEmail
,
Mailbox
:
this
.
orderMsg
.
guestEmail
,
GoodsId
:
this
.
orderMsg
.
RatePlanID
,
//GoodsId: this.orderMsg.RatePlanID,
GoodsId
:
this
.
HotelInfo
.
hotelId
,
GoodsName
:
this
.
HotelInfo
.
name
,
GoodsName
:
this
.
HotelInfo
.
name
,
GoodsPic
:
""
,
GoodsPic
:
""
,
GoodsType
:
9
,
GoodsType
:
9
,
...
@@ -480,7 +480,6 @@
...
@@ -480,7 +480,6 @@
signType
:
this
.
orderInfo
.
signType
,
signType
:
this
.
orderInfo
.
signType
,
paySign
:
this
.
orderInfo
.
sign
,
paySign
:
this
.
orderInfo
.
sign
,
success
:
function
(
res
)
{
success
:
function
(
res
)
{
console
.
log
(
"success"
,
res
);
that
.
submit
=
false
;
that
.
submit
=
false
;
uni
.
showToast
({
uni
.
showToast
({
title
:
"支付成功"
,
title
:
"支付成功"
,
...
@@ -495,7 +494,6 @@
...
@@ -495,7 +494,6 @@
}
,
100
);
}
,
100
);
}
,
}
,
fail
:
function
(
err
)
{
fail
:
function
(
err
)
{
console
.
log
(
"fail:"
,
err
);
that
.
submit
=
true
;
that
.
submit
=
true
;
uni
.
showToast
({
uni
.
showToast
({
title
:
"支付失败"
,
title
:
"支付失败"
,
...
@@ -667,9 +665,6 @@
...
@@ -667,9 +665,6 @@
}
,
}
,
changeDown
(
e
)
{
changeDown
(
e
)
{
let
i
=
[
e
]
let
i
=
[
e
]
// this.customer.count = this.countrys[i].ID
// this.optionsTitle[0] = this.countrys[i].Name
// this.customer.PhoneCountryStr = '+'+this.countrys[i].PhoneCode
}
,
}
,
editNum
(
type
)
{
editNum
(
type
)
{
if
(
type
==
1
)
{
if
(
type
==
1
)
{
...
@@ -783,10 +778,9 @@
...
@@ -783,10 +778,9 @@
icon
:
'none'
icon
:
'none'
}
)
}
)
uni
.
redirectTo
({
uni
.
redirectTo
({
url
:
`/pages/AggregateOrders/AggregateOrdersList?OrderTypeStr=
3
`
,
url
:
`/pages/AggregateOrders/AggregateOrdersList?OrderTypeStr=
7
`
,
}
);
}
);
// #endif
// #endif
console
.
log
(
res
,
'-------酒店erp下单成功'
)
}
}
}
}
);
);
...
...
utils/producttypeenum.js
View file @
391066a7
import
EnumHelper
from
"./enumhelper.js"
import
EnumHelper
from
"./enumhelper.js"
import
ListProductTypeEnum
from
"./listProductType.js"
import
ListProductTypeEnum
from
"./listProductType.js"
const
ProductTypeEnum
=
[
const
ProductTypeEnum
=
[{
{
value
:
1
,
value
:
1
,
desc
:
'机票产品'
desc
:
'机票产品'
},
},
...
@@ -41,7 +40,10 @@ const ProductTypeEnum = [
...
@@ -41,7 +40,10 @@ const ProductTypeEnum = [
value
:
6
,
value
:
6
,
desc
:
'签证产品'
desc
:
'签证产品'
},
},
{
value
:
7
,
desc
:
'酒店产品'
},
]
]
const
mappingRules
=
[
const
mappingRules
=
[
...
@@ -68,7 +70,7 @@ const mappingListType = (value) => {
...
@@ -68,7 +70,7 @@ const mappingListType = (value) => {
const
mappingListTypeTy
=
(
type
)
=>
{
const
mappingListTypeTy
=
(
type
)
=>
{
let
val
=
ProductTypeEnum
.
findIndex
(
x
=>
{
let
val
=
ProductTypeEnum
.
findIndex
(
x
=>
{
return
x
.
value
==
Number
(
type
)
return
x
.
value
==
Number
(
type
)
})
})
return
ProductTypeEnum
[
val
]
return
ProductTypeEnum
[
val
]
}
}
...
@@ -79,4 +81,8 @@ const transProductEnum = (value) => {
...
@@ -79,4 +81,8 @@ const transProductEnum = (value) => {
export
default
ProductTypeEnum
export
default
ProductTypeEnum
export
{
mappingListType
,
transProductEnum
,
mappingListTypeTy
}
export
{
\ No newline at end of file
mappingListType
,
transProductEnum
,
mappingListTypeTy
}
\ 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