Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
bigwood
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
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
罗超
bigwood
Commits
237e473b
Commit
237e473b
authored
Oct 17, 2024
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改行程
parent
f6f1e7c5
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
261 additions
and
256 deletions
+261
-256
rightList.vue
src/components/searchdata/rightList.vue
+12
-8
search.vue
src/components/searchdata/search.vue
+213
-221
orderPreview.vue
src/components/trip/orderPreview.vue
+14
-12
TripOrderPreview.vue
src/pages/scheduledTrip/TripOrderPreview.vue
+13
-9
detailsNew.vue
src/pages/scheduledTrip/detailsNew.vue
+5
-3
validate.ts
src/utils/validate.ts
+4
-3
No files found.
src/components/searchdata/rightList.vue
View file @
237e473b
...
@@ -147,7 +147,7 @@
...
@@ -147,7 +147,7 @@
>
{{ x.dayNum }} {{$t('v103.scheduledTrip.day')}}
</span
>
{{ x.dayNum }} {{$t('v103.scheduledTrip.day')}}
</span
>
>
</div>
</div>
<div
class=
"text-h6 product-price"
>
CNY
:{{ x.b2BPrice }}
</div>
<div
class=
"text-h6 product-price"
>
{{domain==`id.oytour`?'IDR':'CNY'}}
:{{ x.b2BPrice }}
</div>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -197,6 +197,7 @@
...
@@ -197,6 +197,7 @@
const
$q
=
useQuasar
()
const
$q
=
useQuasar
()
const
qDateProxy
=
ref
(
null
)
as
any
const
qDateProxy
=
ref
(
null
)
as
any
const
qNameProxy
=
ref
(
null
)
as
any
const
qNameProxy
=
ref
(
null
)
as
any
const
domain
=
inject
(
DirtionmaryHelper
.
DOMAIN_NAME
)
const
{
locale
,
t
}
=
useI18n
()
const
{
locale
,
t
}
=
useI18n
()
const
data
=
reactive
({
const
data
=
reactive
({
ordertype
:
0
,
ordertype
:
0
,
...
@@ -255,7 +256,7 @@
...
@@ -255,7 +256,7 @@
data
.
qMsg
=
JSON
.
parse
(
JSON
.
stringify
(
n
.
msg
))
data
.
qMsg
=
JSON
.
parse
(
JSON
.
stringify
(
n
.
msg
))
data
.
msg
=
JSON
.
parse
(
JSON
.
stringify
(
n
.
msg
))
data
.
msg
=
JSON
.
parse
(
JSON
.
stringify
(
n
.
msg
))
if
(
n
.
RetrievalState
)
methods
.
setSearchHandler
()
if
(
n
.
RetrievalState
)
methods
.
setSearchHandler
()
},{
deep
:
true
})
},{
deep
:
true
,
immediate
:
true
})
const
methods
=
{
const
methods
=
{
changeOrderType
(
i
){
changeOrderType
(
i
){
if
(
data
.
orderindex
==
i
){
if
(
data
.
orderindex
==
i
){
...
@@ -288,10 +289,12 @@
...
@@ -288,10 +289,12 @@
}
else
if
(
x
.
type
==
5
){
}
else
if
(
x
.
type
==
5
){
search
.
datesId
=
0
search
.
datesId
=
0
search
.
msg
.
startDate
=
""
search
.
msg
.
startDate
=
""
search
.
msg
.
endDate
=
""
}
else
if
(
x
.
type
==
6
){
}
else
if
(
x
.
type
==
6
){
search
.
msg
.
startDate
=
""
search
.
msg
.
startDate
=
""
search
.
msg
.
endDate
=
""
search
.
msg
.
endDate
=
""
}
}
search
.
RetrievalState
=
true
},
},
// 排序方式
// 排序方式
chosenSortHandler
(
i
)
{
chosenSortHandler
(
i
)
{
...
@@ -327,18 +330,18 @@
...
@@ -327,18 +330,18 @@
return
false
;
return
false
;
}
}
}
}
var
companyId
=
-
1
;
if
(
localStorage
.
groupinfo
)
{
var
groupinfo
=
JSON
.
parse
(
localStorage
.
groupinfo
);
companyId
=
groupinfo
.
siteList
[
0
].
companyId
;
}
if
(
localStorage
.
b2bUser
)
{
if
(
localStorage
.
b2bUser
)
{
var
b2bUser
=
JSON
.
parse
(
window
.
localStorage
.
getItem
(
"b2bUser"
));
var
b2bUser
=
JSON
.
parse
(
window
.
localStorage
.
getItem
(
"b2bUser"
));
if
(
b2bUser
)
{
if
(
b2bUser
)
{
data
.
msg
.
priceOrderByField
=
2
;
data
.
msg
.
priceOrderByField
=
2
;
}
}
}
}
let
param
=
Object
.
assign
(
data
.
msg
,
search
.
msg
)
let
param
=
Object
.
assign
(
search
.
msg
,
data
.
msg
)
if
(
domain
==
'id.oytour'
)
{
param
.
companyId
=
1252
}
scheduledTripService
.
GetB2BTravelPageList
(
param
).
then
(
r
=>
{
scheduledTripService
.
GetB2BTravelPageList
(
param
).
then
(
r
=>
{
$q
.
loading
.
hide
();
$q
.
loading
.
hide
();
if
(
r
.
data
.
resultCode
==
ApiResult
.
SUCCESS
)
{
if
(
r
.
data
.
resultCode
==
ApiResult
.
SUCCESS
)
{
...
@@ -386,6 +389,7 @@
...
@@ -386,6 +389,7 @@
methods
.
goSearchHandler
();
methods
.
goSearchHandler
();
return
{
return
{
...
toRefs
(
data
),
...
toRefs
(
data
),
domain
,
search
,
search
,
...
methods
,
...
methods
,
}
}
...
...
src/components/searchdata/search.vue
View file @
237e473b
This diff is collapsed.
Click to expand it.
src/components/trip/orderPreview.vue
View file @
237e473b
...
@@ -19,13 +19,13 @@
...
@@ -19,13 +19,13 @@
</div>
</div>
<div
v-if=
"$q.platform.is.mobile"
>
<div
v-if=
"$q.platform.is.mobile"
>
<span
class=
"text-grey-7 product-price"
style=
"font-size: 13px"
>
<span
class=
"text-grey-7 product-price"
style=
"font-size: 13px"
>
CNY
{{
p
.
originalB2BPrice
}}
/
{{
$t
(
'v103.scheduledTripDetails.each'
)
}}
{{
domain
==
`id.oytour`
?
'IDR'
:
'CNY'
}}
{{
p
.
originalB2BPrice
}}
/
{{
$t
(
'v103.scheduledTripDetails.each'
)
}}
</span>
</span>
</div>
</div>
</div>
</div>
<div
class=
"row items-end"
>
<div
class=
"row items-end"
>
<span
v-if=
"$q.platform.is.desktop"
class=
"text-grey-7 product-price"
style=
"font-size: 13px"
>
<span
v-if=
"$q.platform.is.desktop"
class=
"text-grey-7 product-price"
style=
"font-size: 13px"
>
CNY
{{
p
.
originalB2BPrice
}}
/
{{
$t
(
'v103.scheduledTripDetails.each'
)
}}
{{
domain
==
`id.oytour`
?
'IDR'
:
'CNY'
}}
{{
p
.
originalB2BPrice
}}
/
{{
$t
(
'v103.scheduledTripDetails.each'
)
}}
</span>
</span>
<q-input
<q-input
style=
"width: 150px"
style=
"width: 150px"
...
@@ -74,14 +74,14 @@
...
@@ -74,14 +74,14 @@
</div>
</div>
<div
v-if=
"$q.platform.is.mobile"
>
<div
v-if=
"$q.platform.is.mobile"
>
<span
class=
"text-grey-7 product-price"
style=
"font-size: 13px"
>
<span
class=
"text-grey-7 product-price"
style=
"font-size: 13px"
>
CNY
{{domain==`id.oytour`?'IDR':'CNY'}}
{{ p.originalB2BPrice - p.childNoNeedPrice }} /{{$t('v103.scheduledTripDetails.each')}}
{{ p.originalB2BPrice - p.childNoNeedPrice }} /{{$t('v103.scheduledTripDetails.each')}}
</span>
</span>
</div>
</div>
</div>
</div>
<div
class=
"row items-end"
>
<div
class=
"row items-end"
>
<span
v-if=
"$q.platform.is.desktop"
class=
"text-grey-7 product-price"
style=
"font-size: 13px"
>
<span
v-if=
"$q.platform.is.desktop"
class=
"text-grey-7 product-price"
style=
"font-size: 13px"
>
CNY
{{domain==`id.oytour`?'IDR':'CNY'}}
{{ p.originalB2BPrice - p.childNoNeedPrice }} /{{$t('v103.scheduledTripDetails.each')}}
{{ p.originalB2BPrice - p.childNoNeedPrice }} /{{$t('v103.scheduledTripDetails.each')}}
</span>
</span>
<q-input
<q-input
...
@@ -131,7 +131,7 @@
...
@@ -131,7 +131,7 @@
</div>
</div>
<div
v-if=
"$q.platform.is.mobile"
>
<div
v-if=
"$q.platform.is.mobile"
>
<span
class=
"text-grey-7 product-price"
style=
"font-size: 13px"
>
<span
class=
"text-grey-7 product-price"
style=
"font-size: 13px"
>
CNY
{{domain==`id.oytour`?'IDR':'CNY'}}
{{ p.childNeedPrice + p.originalB2BPrice }} /{{$t('v103.scheduledTripDetails.each')}}
{{ p.childNeedPrice + p.originalB2BPrice }} /{{$t('v103.scheduledTripDetails.each')}}
</span>
</span>
</div>
</div>
...
@@ -142,7 +142,7 @@
...
@@ -142,7 +142,7 @@
class=
"text-grey-7 product-price"
class=
"text-grey-7 product-price"
style=
"font-size: 13px"
style=
"font-size: 13px"
>
>
CNY
{{domain==`id.oytour`?'IDR':'CNY'}}
{{ p.childNeedPrice + p.originalB2BPrice }} /{{$t('v103.scheduledTripDetails.each')}}
{{ p.childNeedPrice + p.originalB2BPrice }} /{{$t('v103.scheduledTripDetails.each')}}
</span>
</span>
<q-input
<q-input
...
@@ -192,13 +192,13 @@
...
@@ -192,13 +192,13 @@
</div>
</div>
<div
v-if=
"$q.platform.is.mobile"
>
<div
v-if=
"$q.platform.is.mobile"
>
<span
v-if=
"$q.platform.is.desktop"
class=
"text-grey-7 product-price"
style=
"font-size: 13px"
>
<span
v-if=
"$q.platform.is.desktop"
class=
"text-grey-7 product-price"
style=
"font-size: 13px"
>
CNY
{{ p.babyPrice }} /{{$t('v103.scheduledTripDetails.each')}}
{{domain==`id.oytour`?'IDR':'CNY'}}
{{ p.babyPrice }} /{{$t('v103.scheduledTripDetails.each')}}
</span>
</span>
</div>
</div>
</div>
</div>
<div
class=
"row items-end"
>
<div
class=
"row items-end"
>
<span
v-if=
"$q.platform.is.desktop"
class=
"text-grey-7 product-price"
style=
"font-size: 13px"
>
<span
v-if=
"$q.platform.is.desktop"
class=
"text-grey-7 product-price"
style=
"font-size: 13px"
>
CNY
{{ p.babyPrice }} /{{$t('v103.scheduledTripDetails.each')}}
{{domain==`id.oytour`?'IDR':'CNY'}}
{{ p.babyPrice }} /{{$t('v103.scheduledTripDetails.each')}}
</span>
</span>
<q-input
<q-input
style=
"width: 150px"
style=
"width: 150px"
...
@@ -256,13 +256,13 @@
...
@@ -256,13 +256,13 @@
</div>
</div>
<div
v-if=
"$q.platform.is.mobile"
>
<div
v-if=
"$q.platform.is.mobile"
>
<span
class=
"text-grey-7 product-price"
style=
"font-size: 13px"
>
<span
class=
"text-grey-7 product-price"
style=
"font-size: 13px"
>
CNY
{{ p.singleRoomPrice }} /{{$t('v103.scheduledTripDetails.each')}}
{{domain==`id.oytour`?'IDR':'CNY'}}
{{ p.singleRoomPrice }} /{{$t('v103.scheduledTripDetails.each')}}
</span>
</span>
</div>
</div>
</div>
</div>
<div
class=
"row items-end"
>
<div
class=
"row items-end"
>
<span
v-if=
"$q.platform.is.desktop"
class=
"text-grey-7 product-price"
style=
"font-size: 13px"
>
<span
v-if=
"$q.platform.is.desktop"
class=
"text-grey-7 product-price"
style=
"font-size: 13px"
>
CNY
{{ p.singleRoomPrice }} /{{$t('v103.scheduledTripDetails.each')}}
{{domain==`id.oytour`?'IDR':'CNY'}}
{{ p.singleRoomPrice }} /{{$t('v103.scheduledTripDetails.each')}}
</span>
</span>
<q-input
<q-input
style=
"width: 150px"
style=
"width: 150px"
...
@@ -309,13 +309,13 @@
...
@@ -309,13 +309,13 @@
style=
"border-top: 1px dashed #eee"
style=
"border-top: 1px dashed #eee"
>
>
<div
class=
"text-grey-6 f12 col"
>
{{$t('v103.scheduledTripDetails.insurance')}}
</div>
<div
class=
"text-grey-6 f12 col"
>
{{$t('v103.scheduledTripDetails.insurance')}}
</div>
<div
class=
"product-money f12"
>
CNY
{{ p.safeMoney }}/{{$t('v103.scheduledTripDetails.each')}}
</div>
<div
class=
"product-money f12"
>
{{domain==`id.oytour`?'IDR':'CNY'}}
{{ p.safeMoney }}/{{$t('v103.scheduledTripDetails.each')}}
</div>
</div>
</div>
</div>
</div>
<div
class=
"q-mt-md q-pt-md"
style=
"border-top: 1px dashed #eee"
>
<div
class=
"q-mt-md q-pt-md"
style=
"border-top: 1px dashed #eee"
>
<div
class=
"row items-center"
>
<div
class=
"row items-center"
>
<span
class=
"text-subtitle2 text-grey-6 col"
>
{{$t('v103.scheduledTripDetails.total')}}
</span>
<span
class=
"text-subtitle2 text-grey-6 col"
>
{{$t('v103.scheduledTripDetails.total')}}
</span>
<span
class=
"text-h6 text-primary product-price"
>
CNY
{{ sumPrice }}
</span>
<span
class=
"text-h6 text-primary product-price"
>
{{domain==`id.oytour`?'IDR':'CNY'}}
{{ sumPrice }}
</span>
</div>
</div>
<div
class=
"q-mt-md text-right"
>
<div
class=
"q-mt-md text-right"
>
<span
class=
"q-mr-lg f12 text-negative"
v-if=
"!p.startDate"
>
{{$q.platform.is.mobile?$t('v103.scheduledTripDetails.selectdatetop'):$t('v103.scheduledTripDetails.selectdateleft')}}
</span>
<span
class=
"q-mr-lg f12 text-negative"
v-if=
"!p.startDate"
>
{{$q.platform.is.mobile?$t('v103.scheduledTripDetails.selectdatetop'):$t('v103.scheduledTripDetails.selectdateleft')}}
</span>
...
@@ -340,6 +340,7 @@ export default defineComponent({
...
@@ -340,6 +340,7 @@ export default defineComponent({
components
:
{
},
components
:
{
},
props
:
[
'msg'
,
'price'
],
props
:
[
'msg'
,
'price'
],
setup
(
props
,
context
)
{
setup
(
props
,
context
)
{
const
domain
=
inject
(
DirtionmaryHelper
.
DOMAIN_NAME
)
const
$router
=
useRouter
()
const
$router
=
useRouter
()
const
{
t
}
=
useI18n
()
const
{
t
}
=
useI18n
()
const
$q
=
useQuasar
()
const
$q
=
useQuasar
()
...
@@ -462,6 +463,7 @@ export default defineComponent({
...
@@ -462,6 +463,7 @@ export default defineComponent({
return
{
return
{
...
toRefs
(
data
),
...
toRefs
(
data
),
...
methods
,
...
methods
,
domain
,
moneyFormat
,
moneyFormat
,
}
}
}
}
...
...
src/pages/scheduledTrip/TripOrderPreview.vue
View file @
237e473b
...
@@ -198,7 +198,7 @@
...
@@ -198,7 +198,7 @@
/>
/>
x
{{
chosenObj
.
crCount
}}
x
{{
chosenObj
.
crCount
}}
</div>
</div>
<div>
CNY
{{
price
.
originalB2BPrice
}}
</div>
<div>
{{
domain
==
`id.oytour`
?
'IDR'
:
'CNY'
}}
{{
price
.
originalB2BPrice
}}
</div>
</div>
</div>
<div
class=
"row q-my-sm"
v-if=
"chosenObj.etzcCount > 0"
>
<div
class=
"row q-my-sm"
v-if=
"chosenObj.etzcCount > 0"
>
<div
class=
"col"
>
<div
class=
"col"
>
...
@@ -214,7 +214,7 @@
...
@@ -214,7 +214,7 @@
x
{{
chosenObj
.
etzcCount
}}
x
{{
chosenObj
.
etzcCount
}}
</div>
</div>
<div>
<div>
CNY
{{
domain
==
`id.oytour`
?
'IDR'
:
'CNY'
}}
{{
price
.
originalB2BPrice
+
price
.
childNeedPrice
}}
{{
price
.
originalB2BPrice
+
price
.
childNeedPrice
}}
</div>
</div>
</div>
</div>
...
@@ -232,7 +232,7 @@
...
@@ -232,7 +232,7 @@
x
{{
chosenObj
.
etbzcCount
}}
x
{{
chosenObj
.
etbzcCount
}}
</div>
</div>
<div>
<div>
CNY
{{
domain
==
`id.oytour`
?
'IDR'
:
'CNY'
}}
{{
price
.
originalB2BPrice
-
price
.
childNoNeedPrice
}}
{{
price
.
originalB2BPrice
-
price
.
childNoNeedPrice
}}
</div>
</div>
</div>
</div>
...
@@ -249,7 +249,7 @@
...
@@ -249,7 +249,7 @@
/>
/>
x
{{
chosenObj
.
yeCount
}}
x
{{
chosenObj
.
yeCount
}}
</div>
</div>
<div>
CNY
{{
price
.
babyPrice
}}
</div>
<div>
{{
domain
==
`id.oytour`
?
'IDR'
:
'CNY'
}}
{{
price
.
babyPrice
}}
</div>
</div>
</div>
<div
v-if=
"price.safeMoney > 0"
>
<div
v-if=
"price.safeMoney > 0"
>
...
@@ -263,7 +263,7 @@
...
@@ -263,7 +263,7 @@
{{
price
.
safeMoney
}}
/
{{
$t
(
"v103.scheduledTripDetails.people"
)
}}
{{
price
.
safeMoney
}}
/
{{
$t
(
"v103.scheduledTripDetails.people"
)
}}
</div>
</div>
<div>
<div>
CNY
{{
domain
==
`id.oytour`
?
'IDR'
:
'CNY'
}}
{{
{{
moneyFormat
(
moneyFormat
(
price
.
safeMoney
*
price
.
safeMoney
*
...
@@ -286,7 +286,7 @@
...
@@ -286,7 +286,7 @@
}}
}}
</div>
</div>
<div>
<div>
CNY
{{
domain
==
`id.oytour`
?
'IDR'
:
'CNY'
}}
{{
{{
moneyFormat
(
moneyFormat
(
price
.
visaPrice
*
price
.
visaPrice
*
...
@@ -302,7 +302,7 @@
...
@@ -302,7 +302,7 @@
{{
price
.
otherPrice
}}
/
{{
$t
(
"v103.scheduledTripDetails.people"
)
}}
{{
price
.
otherPrice
}}
/
{{
$t
(
"v103.scheduledTripDetails.people"
)
}}
</div>
</div>
<div>
<div>
CNY
{{
domain
==
`id.oytour`
?
'IDR'
:
'CNY'
}}
{{
{{
price
.
otherPrice
*
price
.
otherPrice
*
(
chosenObj
.
crCount
+
chosenObj
.
etCount
+
chosenObj
.
yeCount
)
(
chosenObj
.
crCount
+
chosenObj
.
etCount
+
chosenObj
.
yeCount
)
...
@@ -319,13 +319,13 @@
...
@@ -319,13 +319,13 @@
<div
class=
"col"
>
<div
class=
"col"
>
{{
$t
(
"v103.scheduledTripDetails.surcharge"
)
}}
x
{{
chosenObj
.
etCount
}}
{{
$t
(
"v103.scheduledTripDetails.surcharge"
)
}}
x
{{
chosenObj
.
etCount
}}
</div>
</div>
<div>
CNY
{{
price
.
babyChargePrice
}}
</div>
<div>
{{
domain
==
`id.oytour`
?
'IDR'
:
'CNY'
}}
{{
price
.
babyChargePrice
}}
</div>
</div>
</div>
<div
class=
"row q-mb-sm"
v-if=
"chosenObj.df > 0"
>
<div
class=
"row q-mb-sm"
v-if=
"chosenObj.df > 0"
>
<div
class=
"col"
>
<div
class=
"col"
>
{{
$t
(
"v103.scheduledTripDetails.pricedifference"
)
}}
x
{{
chosenObj
.
df
}}
{{
$t
(
"v103.scheduledTripDetails.pricedifference"
)
}}
x
{{
chosenObj
.
df
}}
</div>
</div>
<div>
CNY
{{
price
.
singleRoomPrice
}}
</div>
<div>
{{
domain
==
`id.oytour`
?
'IDR'
:
'CNY'
}}
{{
price
.
singleRoomPrice
}}
</div>
</div>
</div>
</div>
</div>
<div
class=
"q-pt-md q-mb-lg text-right"
style=
"border-top: 1px dashed #eee"
>
<div
class=
"q-pt-md q-mb-lg text-right"
style=
"border-top: 1px dashed #eee"
>
...
@@ -382,6 +382,7 @@ import { useI18n } from "vue-i18n";
...
@@ -382,6 +382,7 @@ import { useI18n } from "vue-i18n";
import
{
DirtionmaryHelper
}
from
"../../config/dictionary"
;
import
{
DirtionmaryHelper
}
from
"../../config/dictionary"
;
import
TicketCard
from
"../../components/ticket/TicketCard.vue"
;
import
TicketCard
from
"../../components/ticket/TicketCard.vue"
;
import
{
date
,
useQuasar
}
from
"quasar"
;
import
{
date
,
useQuasar
}
from
"quasar"
;
import
{
moneyFormat
}
from
'src/utils/tools'
export
default
defineComponent
({
export
default
defineComponent
({
components
:
{
TicketCard
},
components
:
{
TicketCard
},
setup
(
props
)
{
setup
(
props
)
{
...
@@ -392,6 +393,7 @@ export default defineComponent({
...
@@ -392,6 +393,7 @@ export default defineComponent({
const
pageTitle
=
inject
(
DirtionmaryHelper
.
PAGE_TITLE_KEY
)
as
any
;
const
pageTitle
=
inject
(
DirtionmaryHelper
.
PAGE_TITLE_KEY
)
as
any
;
pageTitle
.
value
=
t
(
"v102.ticket.preview.pageTitle"
);
pageTitle
.
value
=
t
(
"v102.ticket.preview.pageTitle"
);
setTitle
(
pageTitle
.
value
);
setTitle
(
pageTitle
.
value
);
const
domain
=
inject
(
DirtionmaryHelper
.
DOMAIN_NAME
)
const
data
=
reactive
({
const
data
=
reactive
({
loading
:
false
,
loading
:
false
,
...
@@ -770,6 +772,8 @@ export default defineComponent({
...
@@ -770,6 +772,8 @@ export default defineComponent({
guestEName
,
guestEName
,
guestMobile
,
guestMobile
,
guestAddress
,
guestAddress
,
domain
,
moneyFormat
};
};
},
},
});
});
...
...
src/pages/scheduledTrip/detailsNew.vue
View file @
237e473b
...
@@ -34,7 +34,7 @@
...
@@ -34,7 +34,7 @@
style=
"text-align: left"
style=
"text-align: left"
v-if=
"dataList.priceList.length > 0"
v-if=
"dataList.priceList.length > 0"
>
>
<span>
CNY
{{
dataList
.
priceList
[
0
].
originalB2BPrice
}}
</span>
<span>
{{
domain
==
`id.oytour`
?
'IDR'
:
'CNY'
}}
{{
dataList
.
priceList
[
0
].
originalB2BPrice
}}
</span>
<span
class=
"q-ml-sm f12 text-grey-7"
>
{{
<span
class=
"q-ml-sm f12 text-grey-7"
>
{{
$t
(
"v103.scheduledTripDetails.since"
)
$t
(
"v103.scheduledTripDetails.since"
)
}}
</span>
}}
</span>
...
@@ -172,7 +172,7 @@
...
@@ -172,7 +172,7 @@
}"
}"
>
>
<div
class=
"product-price text-h6"
v-if=
"dataList.priceList.length > 0"
>
<div
class=
"product-price text-h6"
v-if=
"dataList.priceList.length > 0"
>
CNY
:
{{
dataList
.
priceList
[
0
].
originalB2BPrice
}}
{{
domain
==
`id.oytour`
?
'IDR'
:
'CNY'
}}
:
{{
dataList
.
priceList
[
0
].
originalB2BPrice
}}
<span
class=
"f12 text-grey-6"
>
{{
<span
class=
"f12 text-grey-6"
>
{{
$t
(
"v103.scheduledTripDetails.since"
)
$t
(
"v103.scheduledTripDetails.since"
)
}}
</span>
}}
</span>
...
@@ -278,7 +278,7 @@
...
@@ -278,7 +278,7 @@
<span
<span
class=
"product-price text-h6 q-mr-md"
class=
"product-price text-h6 q-mr-md"
v-if=
"dataList.priceList.length > 0"
v-if=
"dataList.priceList.length > 0"
>
CNY
{{ dataList.priceList[0].originalB2BPrice }}
</span
>
{{domain==`id.oytour`?'IDR':'CNY'}}
{{ dataList.priceList[0].originalB2BPrice }}
</span
>
>
<q-btn
<q-btn
color=
"primary"
color=
"primary"
...
@@ -638,6 +638,7 @@ export default defineComponent({
...
@@ -638,6 +638,7 @@ export default defineComponent({
},
},
props
:
[],
props
:
[],
setup
(
props
)
{
setup
(
props
)
{
const
domain
=
inject
(
DirtionmaryHelper
.
DOMAIN_NAME
)
const
$router
=
useRouter
();
const
$router
=
useRouter
();
const
{
t
}
=
useI18n
();
const
{
t
}
=
useI18n
();
const
$q
=
useQuasar
();
const
$q
=
useQuasar
();
...
@@ -1032,6 +1033,7 @@ export default defineComponent({
...
@@ -1032,6 +1033,7 @@ export default defineComponent({
...
toRefs
(
data
),
...
toRefs
(
data
),
...
methods
,
...
methods
,
moneyFormat
,
moneyFormat
,
domain
,
calendarRef
,
calendarRef
,
qDateProxy
,
qDateProxy
,
getDivDom
,
getDivDom
,
...
...
src/utils/validate.ts
View file @
237e473b
...
@@ -67,16 +67,17 @@ export function compareArray(arrA: any[], arrB: any[]) {
...
@@ -67,16 +67,17 @@ export function compareArray(arrA: any[], arrB: any[]) {
export
function
getDomainName
()
{
export
function
getDomainName
()
{
let
domainNameUrl
=
window
.
location
.
hostname
;
let
domainNameUrl
=
window
.
location
.
hostname
;
if
(
domainNameUrl
==
'localhost'
)
{
if
(
domainNameUrl
==
'localhost'
)
{
return
'
pic
.oytour'
return
'
id
.oytour'
}
else
if
(
domainNameUrl
.
indexOf
(
"192.168.10"
)
>
-
1
)
{
}
else
if
(
domainNameUrl
.
indexOf
(
"192.168.10"
)
>
-
1
)
{
return
"typic.oytour"
return
"typic.oytour"
}
}
else
if
(
domainNameUrl
==
"typic.oytour.com"
)
{
else
if
(
domainNameUrl
==
"typic.oytour.com"
)
{
return
"typic.oytour"
return
"typic.oytour"
}
}
else
if
(
domainNameUrl
==
'pic.oytour.com'
)
{
else
if
(
domainNameUrl
==
'pic.oytour.com'
)
{
return
'pic.oytour'
return
'pic.oytour'
}
else
if
(
domainNameUrl
==
'sell.oytour.com'
)
{
}
else
if
(
domainNameUrl
==
'sell.oytour.com'
)
{
return
'sell.oytour'
return
'sell.oytour'
}
else
if
(
domainNameUrl
==
'id.oytour.com'
)
{
return
'id.oytour'
}
}
}
}
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