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
a1993a9e
Commit
a1993a9e
authored
Mar 06, 2024
by
黄奎
Browse files
Options
Browse Files
Download
Plain Diff
英语翻译文件
parents
d21a80e7
f16b50d8
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
8 deletions
+16
-8
navs.vue
src/components/layout/navs.vue
+3
-1
productHeader.vue
src/pages/travel/components/productHeader.vue
+8
-2
tools.ts
src/utils/tools.ts
+2
-2
validate.ts
src/utils/validate.ts
+3
-3
No files found.
src/components/layout/navs.vue
View file @
a1993a9e
...
...
@@ -21,7 +21,9 @@ export default defineComponent({
const
menList
=
useMenus
.
getMenus
().
filter
(
x
=>
{
return
x
.
id
==
16
})
data
.
menus
=
!
inject
(
DirtionmaryHelper
.
DOMAIN_NAME
)?
menList
:
useMenus
.
getMenus
()
// data.menus = !inject(DirtionmaryHelper.DOMAIN_NAME)?menList:useMenus.getMenus()
if
(
inject
(
DirtionmaryHelper
.
DOMAIN_NAME
)
==
'sell.oytour'
)
data
.
menus
=
menList
else
data
.
menus
=
useMenus
.
getMenus
()
return
{...
toRefs
(
data
)}
}
...
...
src/pages/travel/components/productHeader.vue
View file @
a1993a9e
<
template
>
<div
class=
"rounded-borders bg-white row items-center q-pa-md"
>
<q-field
:class=
"$q.platform.is.desktop ? '' : 'q-mb-md'"
stack-label
:label=
"$t('daterange')"
standout
class=
"q-ml-lg col-2"
style=
"min-width: 190px"
dense
>
<q-field
:class=
"$q.platform.is.desktop ? '' : 'q-mb-md'"
stack-label
:label=
"$t('daterange')"
standout
class=
"q-ml-lg col-2"
style=
"min-width: 190px"
dense
clearable
v-model=
"dateRangeFormat"
@
clear=
"getFormat"
>
<div
class=
"self-center full-width no-outline"
tabindex=
"0"
>
{{
dateRangeFormat
}}
</div>
<q-popup-proxy
:offset=
"[0, 10]"
ref=
"qDateProxy"
>
<q-date
v-model=
"dateRange"
:options=
"optionsFn"
range
mask=
"YYYY/MM/DD"
landscape
...
...
@@ -30,6 +30,12 @@ export default defineComponent({
search
.
SelectStartDate
=
dateRange
.
from
search
.
SelectEndDate
=
dateRange
.
to
const
methods
=
{
getFormat
()
{
if
(
!
dateRangeFormat
.
value
)
{
search
.
SelectStartDate
=
''
search
.
SelectEndDate
=
''
}
},
setQueryHandler
(){
realSearch
.
SelectStartDate
=
search
.
SelectStartDate
realSearch
.
SelectEndDate
=
search
.
SelectEndDate
...
...
@@ -50,7 +56,7 @@ export default defineComponent({
search
,
dateRange
,
dateRangeFormat
}
}
})
...
...
src/utils/tools.ts
View file @
a1993a9e
...
...
@@ -456,7 +456,7 @@ export function getLangs() {
langName
:
"中文简体"
}
const
enUs
:
SitLang
=
{
langLocale
:
"enU
s
"
,
langLocale
:
"enU
S
"
,
langName
:
"English"
}
const
koHG
:
SitLang
=
{
...
...
@@ -475,7 +475,7 @@ export function getLangs() {
if
(
!
getDomainName
()){
langs
.
push
(
zhSw
)
}
else
{
langs
.
push
(
zhTw
,
koHG
,
jaRB
)
langs
.
push
(
zhTw
,
koHG
,
enUs
,
jaRB
)
}
return
langs
...
...
src/utils/validate.ts
View file @
a1993a9e
...
...
@@ -67,10 +67,10 @@ export function compareArray(arrA: any[], arrB: any[]) {
export
function
getDomainName
()
{
let
domainNameUrl
=
window
.
location
.
hostname
;
if
(
domainNameUrl
==
'localhost'
){
return
true
return
'pic.oytour'
}
else
if
(
domainNameUrl
==
'pic.oytour.com'
){
return
true
return
'pic.oytour'
}
else
if
(
domainNameUrl
==
'sell.oytour.com'
){
return
false
return
'sell.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