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
e07d9883
Commit
e07d9883
authored
Dec 13, 2022
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
2315c64a
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
154 additions
and
14 deletions
+154
-14
request.ts
src/api/request.ts
+19
-6
hotelDetails.vue
src/components/hotel/list/hotelDetails.vue
+1
-1
dictionary.ts
src/config/dictionary.ts
+5
-0
index.ts
src/i18n/zh-TW/index.ts
+96
-6
routes.ts
src/router/routes.ts
+1
-1
hotelRate.ts
src/utils/hotelRate.ts
+32
-0
No files found.
src/api/request.ts
View file @
e07d9883
...
...
@@ -7,17 +7,29 @@ import { i18n } from '../boot/i18n'
let
{
locale
}
=
i18n
.
global
let
converterSW
=
OpenCC
.
Converter
({
from
:
'tw'
,
to
:
'cn'
})
//转简
let
datas
:
any
// 接收需要转简数据
let
language
=
''
as
any
//语言
let
currencyCode
=
''
as
any
//币种
const
request
=
(
cmd
:
string
,
msg
:
any
):
Promise
<
HttpResponse
>=>
{
datas
=
msg
if
(
locale
.
value
==
'zhTW'
){
let
stringifyData
=
converterSW
(
JSON
.
stringify
(
msg
))
datas
=
JSON
.
parse
(
stringifyData
)
}
else
{
datas
=
msg
// let stringifyData = converterSW(JSON.stringify(msg))
// datas = JSON.parse(stringifyData)
language
=
'zh_TW'
currencyCode
=
'TWD'
}
else
if
(
locale
.
value
==
'zhSW'
){
language
=
'zh_CN'
currencyCode
=
'CNY'
}
else
if
(
locale
.
value
==
'koHG'
){
language
=
'ko_KR'
currencyCode
=
'KRW'
}
else
if
(
locale
.
value
==
'jaRB'
){
// language = 'JP_Y'
currencyCode
=
'JPY'
}
msg
=
datas
??{}
let
token
=
""
;
let
key
=
""
;
let
groupId
=
""
let
groupId
=
0
let
timestamp
=
(
new
Date
()).
valueOf
();
if
(
localStorage
.
vuex
&&
JSON
.
parse
(
localStorage
.
vuex
).
user
?.
token
)
{
token
=
Store
.
state
.
user
?.
token
?.
access_token
...
...
@@ -35,7 +47,8 @@ const request = (cmd:string,msg:any): Promise<HttpResponse>=>{
"timestamp"
:
timestamp
,
"token"
:
token
,
"sign"
:
md5Str
,
"languageId"
:
1
"locale"
:
language
,
"currencyCode"
:
currencyCode
}
return
service
.
post
(
''
,
postData
)
}
...
...
src/components/hotel/list/hotelDetails.vue
View file @
e07d9883
...
...
@@ -7,7 +7,7 @@
<q-icon
class=
"text-grey-13 cursor-pointer text-right q-ml-sm"
name=
"close"
size=
"md"
v-close-popup
></q-icon>
</div>
<div
class=
"text-weight-bold fz20 ellipsis desktop-only"
>
{{
h
.
Name
}}
</div>
<div
class=
"
{'q-ml-md':$q.platform.is.desktop}">
<div
:
class=
"
{'q-ml-md':$q.platform.is.desktop}">
<q-rating
v-model=
"h.Star"
size=
"1.5em"
color=
"orange"
:max=
"h.Star"
readonly
/>
</div>
</div>
...
...
src/config/dictionary.ts
View file @
e07d9883
...
...
@@ -59,6 +59,11 @@ class DirtionmaryHelper {
*/
static
readonly
HOTEL_TIPS_LASTDATE
=
"hoteltipslastdate"
/**
* 散客预约酒店缓存客房数据等
*/
static
readonly
SCATTERED_HOTEL_DATE
=
"scatteredhoteldate"
/**
* 用户是否在中国
*/
...
...
src/i18n/zh-TW/index.ts
View file @
e07d9883
...
...
@@ -137,7 +137,7 @@ export default {
copy
:
'複製'
,
copyed
:
'已複製'
,
createTime
:
'下訂時間'
,
priceTips
:
'按照入住人數*房型單價=房型總價小計
(不含稅)
'
,
priceTips
:
'按照入住人數*房型單價=房型總價小計
(不含稅)
'
,
people
:
'人數'
,
unitPrice
:
'單價'
,
xj
:
'小計'
,
...
...
@@ -357,7 +357,7 @@ export default {
registlink
:
'申請註冊'
,
title
:
'登入'
,
subTitle
:
'歡迎您的到來,開啟急速採購'
,
account
:
'帳戶
(EMail/統編)
'
,
account
:
'帳戶
(EMail/統編)
'
,
password
:
'密碼'
,
forgot
:
'忘記密碼?'
,
signin
:
'登入'
,
...
...
@@ -373,7 +373,7 @@ export default {
subtitle
:
'輸入您的郵箱,以重置密碼'
,
notaccess
:
'已經是會員了?'
,
registlink
:
'登入'
,
account
:
'帳戶
(EMail)
'
,
account
:
'帳戶
(EMail)
'
,
submit
:
'提交'
,
cancel
:
'取消'
,
goback
:
'返回'
,
...
...
@@ -561,11 +561,101 @@ export default {
zhutifea2
:
'有溫泉'
,
zhutifea3
:
'離海灘5分鐘'
,
zhutifea4
:
'退房11點以後'
,
xiangqing
:
'查看
详
情'
xiangqing
:
'查看
詳
情'
},
scatteredDetails
:{
xiangqing
:
'酒店详情'
}
xiangqing
:
'酒店詳情'
,
jiudianxinxi
:
'酒店信息'
,
miaoshu
:
'描述'
,
titlexinxi1
:
'接送服務'
,
titlexinxi2
:
'完善設施服務'
,
titlexinxi3
:
'房間類型和數量'
,
titlexinxi4
:
'客房網絡連接'
,
titlexinxi5
:
'水療'
,
titlexinxi6
:
'設施與服務'
,
InterTitle1
:
'客房网络连接'
,
InterTitle2
:
'拨号连线'
,
InterTitle3
:
'可连接LAN'
,
InterTitle4
:
'无线局域网'
,
InterTitle5
:
'PC贷款'
,
InterTitle6
:
'免费接入网络'
,
shiwai
:
'室外'
,
wunei
:
'屋內'
,
zhengqiyu
:
'蒸汽浴'
,
nan
:
'男'
,
nv
:
'女'
,
hunyu
:
'混浴'
,
SpringText1
:
'露天溫泉(也有男女(包括時間交替)·可借貸)'
,
SpringText2
:
'露天溫泉(有男女也有(包括時間交替)·不能借貸)'
,
SpringText3
:
'露天溫泉(男女中只有1個(包括混浴)、可以包租)'
,
SpringText4
:
'露天溫泉(男女中只有一個(包括混浴),不能包租)'
,
SpringText5
:
'有包租浴室'
,
SpringText6
:
'阿米尼蒂:臉·手巾'
,
SpringText7
:
'阿米尼蒂:牙刷、牙膏'
,
SpringText8
:
'阿米蒂奇:浴巾'
,
SpringText9
:
'水芹菜:洗發水'
,
SpringText10
:
'阿姆尼蒂:林斯'
,
SpringText11
:
'阿米尼蒂:沐浴露'
,
SpringText12
:
'水黽:肥皂'
,
SpringText13
:
'亞健康:浴衣'
,
SpringText14
:
'艾尼蒂:睡衣'
,
SpringText15
:
'阿姆尼蒂:浴衣'
,
SpringText16
:
'足球運動員:吹風機'
,
SpringText17
:
'艾尼蒂:羽毛被褥'
,
SpringText18
:
'艾尼蒂:刮胡子'
,
SpringText19
:
'水黽:淋浴帽'
,
SpringText20
:
'阿米尼蒂:棉簽'
,
SpringText21
:
'水黽:沖澡'
,
SpringText22
:
'石梳:梳子刷'
,
SpringText23
:
'他溫泉浴:展望浴'
,
SpringText24
:
'其他:桑拿浴'
,
SpringText25
:
'其他:jazza'
,
SpringStatesTJ0
:
'沒有條件'
,
SpringStatesTJ1
:
'有條件'
,
SpringStatesMF0
:
'免費'
,
SpringStatesMF1
:
'收費'
,
SpringStatesY1
:
'有'
,
ServicesText1
:
'浴室和廁所'
,
ServicesText2
:
'公共汽車廁所CD(有全室巴士)'
,
ServicesText3
:
'公共汽車廁所CD(有一部分巴士)'
,
ServicesText4
:
'公共汽車廁所CD(有全室廁所)'
,
ServicesText5
:
'公共汽車廁所CD(有一部分廁所)'
,
ServicesText6
:
'公共汽車廁所CD(所有廁所都沒有)'
,
ServicesText7
:
'淋浴-免費(全室)'
,
ServicesText8
:
'淋浴-收費(全室)'
,
ServicesText9
:
'淋浴-免費(部分)'
,
ServicesText10
:
'淋浴-收費(部分)'
,
ServicesText11
:
'冷暖氣-免費(全室)'
,
ServicesText12
:
'冷暖氣-收費(全室)'
,
ServicesText13
:
'冷暖氣-免費(部分)'
,
ServicesText14
:
'冷暖氣-收費(部分)'
,
ServicesText15
:
'全室有空調(收費)'
,
ServicesText16
:
'部分客房有空調(免費)'
,
ServicesText17
:
'部分客房有空調(收費)'
,
ServicesText18
:
'沒有空調'
,
ServicesText19
:
'全房間有暖氣設備(免費)'
,
ServicesText20
:
'全部房間都有暖氣(收費)'
,
ServicesText21
:
'部分客房供暖(免費)'
,
ServicesText22
:
'部分客房供暖(收費)'
,
ServicesText23
:
'沒有暖氣設備'
,
ServicesText24
:
'電視(免費)'
,
ServicesText25
:
'電視(收費)'
,
ServicesText26
:
'錄像機(免費)'
,
ServicesText27
:
'錄像機(收費)'
,
ServicesText28
:
'衛星廣播(免費)'
,
ServicesText29
:
'衛星廣播(收費)'
,
ServicesText30
:
'冰箱-有(帶飲料的)'
,
ServicesText31
:
'空冰箱'
,
ServicesText32
:
'迷你酒吧'
,
ServicesText33
:
'祖邦煎鍋(免費)'
,
ServicesText34
:
'祖邦煎鍋(收費)'
,
fuheTJroom
:
'符合條件的房型'
,
ruzhuTime
:
'入住時間'
,
tuifangTime
:
'退房時間'
,
timeTis
:
'退房時間必須大於當前時間'
,
prompt
:
'超過13歲視為成人處理'
},
}
//#endregion
}
src/router/routes.ts
View file @
e07d9883
...
...
@@ -12,7 +12,7 @@ const routes: RouteRecordRaw[] = [
{
path
:
'/hotel/offer/:orderId'
,
component
:
()
=>
import
(
'pages/hotel/ListOfQuotation.vue'
)
},
{
path
:
'/personal'
,
component
:
()
=>
import
(
'pages/personal/personal.vue'
)},
{
path
:
'/scattered'
,
component
:
()
=>
import
(
'pages/scattered/HotelList.vue'
)},
{
path
:
'/scattered/hotelDetails/:hotelId'
,
component
:
()
=>
import
(
'pages/scattered/hotelDetails.vue'
)},
{
path
:
'/scattered/hotelDetails/:hotelId
/:groupBookingFlg/:lowrateBySetCurrency
'
,
component
:
()
=>
import
(
'pages/scattered/hotelDetails.vue'
)},
{
path
:
'/comingsoon'
,
component
:
()
=>
import
(
'pages/ComingSoon.vue'
)}
]
},
...
...
src/utils/hotelRate.ts
View file @
e07d9883
...
...
@@ -86,6 +86,38 @@ const useHotel={
}
return
rates
},
// 主题标签
getHotelTheme
():
HotelArea
[]{
let
rates
=
[]
as
HotelArea
[]
for
(
let
i
=
1
;
i
<
5
;
i
++
){
rates
.
push
({
name
:
t
(
`v101.scattered.zhutifea
${
i
}
`
)})
}
return
rates
},
// 网络链接
getHotelInter
():
HotelArea
[]{
let
rates
=
[]
as
HotelArea
[]
for
(
let
i
=
1
;
i
<
7
;
i
++
){
rates
.
push
({
name
:
t
(
`v101.scatteredDetails.InterTitle
${
i
}
`
)})
}
return
rates
},
// 洗漱用品是否免费
getHotelSpring
():
HotelArea
[]{
let
rates
=
[]
as
HotelArea
[]
for
(
let
i
=
1
;
i
<
26
;
i
++
){
rates
.
push
({
name
:
t
(
`v101.scatteredDetails.SpringText
${
i
}
`
)})
}
return
rates
},
// 设施与服务是否免费
getHotelServices
():
HotelArea
[]{
let
rates
=
[]
as
HotelArea
[]
for
(
let
i
=
1
;
i
<
35
;
i
++
){
rates
.
push
({
name
:
t
(
`v101.scatteredDetails.ServicesText
${
i
}
`
)})
}
return
rates
},
}
export
{
useHotel
,
type
HotelRate
,
...
...
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