Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
dev
/
pingan-life-index-pro
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
81f5e8df
authored
2020-05-18 16:12:31 +0800
by
simon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
页脚三语和首页加速
1 parent
f747ac5b
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
56 additions
and
45 deletions
src/common/lang/en.js
src/common/lang/tc.js
src/common/lang/zh.js
src/components/home/footer/footer.scss
src/components/home/footer/footer.vue
src/pages/index/index.js
src/common/lang/en.js
View file @
81f5e8d
...
...
@@ -72,7 +72,7 @@ module.exports = {
]
},
navList
:
[{
name
:
"Products"
,
name
:
"
Our
Products"
,
path
:
"/product/introduction"
,
list
:
[{
name
:
"VHIS"
,
...
...
@@ -177,6 +177,14 @@ module.exports = {
quote
:
"Quote now"
,
},
footer
:
{
hotline
:
"customer service hotline"
,
serviceHour
:
"Service Hour:9:00 - 17:30 Monday to Friday"
,
address
:
"A137, 16/F, Tower 5, The Gateway, 21 Canton Road, Tsim Sha Tsui, Kowloon, Hong Kong"
,
ourProducts
:
"Our Products"
,
VHIS
:
"VHIS"
,
Insurance
:
"Insurance with Investment Focus"
,
hkPhone
:
"Hong Kong Phone No."
,
cnPhone
:
"Mainland Phone No."
,
aboutUs
:
"About Us"
,
...
...
src/common/lang/tc.js
View file @
81f5e8d
...
...
@@ -179,6 +179,14 @@ module.exports = {
quote
:
"立即報價"
,
},
footer
:
{
hotline
:
"客戶服務熱線"
,
serviceHour
:
"服務時間:星期一至五 9:00-17:30"
,
address
:
"香港尖沙咀廣東道21號港威大廈第五座16樓A137"
,
ourProducts
:
"產品介紹"
,
VHIS
:
"自願醫保"
,
Insurance
:
"投資成份保險"
,
hkPhone
:
"香港號碼"
,
cnPhone
:
"內地號碼"
,
aboutUs
:
"關於我們"
,
...
...
src/common/lang/zh.js
View file @
81f5e8d
...
...
@@ -179,6 +179,14 @@ module.exports = {
quote
:
"立即报价"
,
},
footer
:
{
hotline
:
"客户服务热线"
,
serviceHour
:
"服务时间:星期一至五 9:00-17:30"
,
address
:
"香港尖沙咀广东道21号港威大厦第五座16楼A137"
,
ourProducts
:
"产品介绍"
,
VHIS
:
"自愿医保"
,
Insurance
:
"投资成份保险"
,
hkPhone
:
"香港号码"
,
cnPhone
:
"内地号码"
,
aboutUs
:
"关于我们"
,
...
...
src/components/home/footer/footer.scss
View file @
81f5e8d
...
...
@@ -33,7 +33,7 @@
// 热线 左边菜单
.hotline
{
@extend
.bb
;
min-width
:
36
0px
;
min-width
:
50
0px
;
padding-right
:
24px
;
&
-tit
{
...
...
src/components/home/footer/footer.vue
View file @
81f5e8d
...
...
@@ -11,7 +11,7 @@
<div
class=
"info"
>
<!-- 左边菜单 -->
<div
class=
"hotline"
>
<div
class=
"hotline-tit"
>
客戶服務熱線
</div>
<div
class=
"hotline-tit"
>
{{
$t
(
'footer.hotline'
)
}}
</div>
<div
class=
"contact"
>
<div
class=
"n-item"
>
{{
$t
(
'footer.hkPhone'
)
}}
</div>
<div
class=
"phone"
>
(852)2983 8866
</div>
...
...
@@ -20,12 +20,12 @@
<div
class=
"n-item"
>
{{
$t
(
'footer.cnPhone'
)
}}
</div>
<div
class=
"phone"
>
(86)40078 95511
</div>
</div>
<div
class=
"server-time"
>
服務時間:星期一至五 9:00-17:30
</div>
<div
class=
"server-time"
>
{{
$t
(
'footer.serviceHour'
)
}}
</div>
<div
class=
"contact-us"
>
<div
class=
"tit"
>
{{
$t
(
'footer.contactUs'
)
}}
</div>
<div
class=
"address"
>
香港尖沙咀廣東道21號港威大廈第五座16樓A137
</div>
<div
class=
"time"
>
服務時間:星期一至五 9:00-17:30
</div>
<div
class=
"address"
>
{{
$t
(
'footer.address'
)
}}
</div>
<div
class=
"time"
>
{{
$t
(
'footer.serviceHour'
)
}}
</div>
</div>
<div
class=
"email"
>
{{
$t
(
'common.Email'
)
}}
:cs@pingan.com.hk
</div>
</div>
...
...
@@ -34,10 +34,9 @@
<div
class=
"nav"
>
<div
class=
"nav-v"
>
<div
class=
"n-item n-item-tit"
>
產品介紹
</div>
<div
@
click=
"toPage('vhisDetail')"
class=
"n-item"
>
自願醫保
</div>
<div
@
click=
"toPage('genRich')"
class=
"n-item"
>
投資成份保險
</div>
<div
class=
"n-item"
>
推廣優惠
</div>
<div
class=
"n-item n-item-tit"
>
{{
$t
(
'footer.ourProducts'
)
}}
</div>
<div
@
click=
"toPage('vhisDetail')"
class=
"n-item"
>
{{
$t
(
'footer.VHIS'
)
}}
</div>
<div
@
click=
"toPage('genRich')"
class=
"n-item"
>
{{
$t
(
'footer.Insurance'
)
}}
</div>
</div>
<div
class=
"nav-v"
>
...
...
@@ -47,35 +46,16 @@
<div
@
click=
"toPage('terms')"
class=
"n-item"
>
{{
$t
(
'footer.terms'
)
}}
</div>
<div
@
click=
"toPage('personalDataCollection')"
class=
"n-item"
>
{{
$t
(
'footer.protocol'
)
}}
</div>
</div>
<!--
<div
class=
"nav-v"
>
<div
@
click=
"toPage('profile')"
class=
"n-item"
>
{{
$t
(
'footer.aboutUs'
)
}}
</div>
<div
@
click=
"toPage('profile')"
class=
"n-item"
>
{{
$t
(
'footer.companyIntroduction'
)
}}
</div>
<div
@
click=
"toPage('newsList')"
class=
"n-item"
>
{{
$t
(
'footer.news'
)
}}
</div>
<div
@
click=
"toPage('joinUs')"
class=
"n-item"
>
{{
$t
(
'footer.joinUs'
)
}}
</div>
</div>
<div
class=
"nav-v"
>
<div
@
click=
"toPage('help')"
class=
"n-item"
>
{{
$t
(
'footer.helpCenter'
)
}}
</div>
<div
@
click=
"toPage('privacy')"
class=
"n-item"
>
{{
$t
(
'footer.privacy'
)
}}
</div>
<div
@
click=
"toPage('terms')"
class=
"n-item"
>
{{
$t
(
'footer.terms'
)
}}
</div>
<div
@
click=
"toPage('personalDataCollection')"
class=
"n-item"
>
{{
$t
(
'footer.protocol'
)
}}
</div>
</div>
<div
class=
"nav-v"
>
<div
@
click=
"toPath('/custom/service?q=m1')"
class=
"n-item"
>
{{
$t
(
'footer.contactUs'
)
}}
</div>
<div
@
click=
"toPage('contactMethod')"
class=
"n-item"
>
{{
$t
(
'footer.contactInformation'
)
}}
</div>
<div
@
click=
"toPage('serviceNet')"
class=
"n-item"
>
{{
$t
(
'footer.service'
)
}}
</div>
<div
@
click=
"toPage('map')"
class=
"n-item"
>
{{
$t
(
'footer.map'
)
}}
</div>
</div>
-->
</div>
<!-- 菜单 移动端 -->
<!-- 菜单 移动端
前一版本移动端菜单跟PC版菜单不同,先照样独立维护两个菜单
-->
<div
class=
"nav nav2"
>
<div
class=
"nav-v"
>
<div
@
click=
"toPage('profile')"
class=
"n-item"
>
{{
$t
(
'footer.aboutUs'
)
}}
</div>
<div
@
click=
"toPage('profile')"
class=
"n-item"
>
{{
$t
(
'footer.companyIntroduction'
)
}}
</div>
<div
@
click=
"toPage('newsList')"
class=
"n-item"
>
{{
$t
(
'footer.news'
)
}}
</div>
<div
class=
"n-item n-item-tit"
>
產品介紹
</div>
<div
@
click=
"toPage('vhisDetail')"
class=
"n-item"
>
自願醫保
</div>
<div
@
click=
"toPage('genRich')"
class=
"n-item"
>
投資成份保險
</div>
</div>
<div
class=
"nav-v"
>
<div
@
click=
"toPage('profile')"
class=
"n-item"
>
{{
$t
(
'footer.aboutUs'
)
}}
</div>
<div
@
click=
"toPage('joinUs')"
class=
"n-item"
>
{{
$t
(
'footer.joinUs'
)
}}
</div>
...
...
@@ -83,11 +63,6 @@
<div
@
click=
"toPage('terms')"
class=
"n-item"
>
{{
$t
(
'footer.terms'
)
}}
</div>
<div
@
click=
"toPage('personalDataCollection')"
class=
"n-item"
>
{{
$t
(
'footer.protocol'
)
}}
</div>
</div>
<!--
<div
class=
"nav-v"
>
<div
@
click=
"toPage('privacy')"
class=
"n-item"
>
{{
$t
(
'footer.privacy'
)
}}
</div>
<div
@
click=
"toPage('terms')"
class=
"n-item"
>
{{
$t
(
'footer.terms'
)
}}
</div>
<div
@
click=
"toPage('personalDataCollection')"
class=
"n-item"
>
{{
$t
(
'footer.protocol'
)
}}
</div>
</div>
-->
</div>
<!-- 右边菜单 -->
...
...
src/pages/index/index.js
View file @
81f5e8d
...
...
@@ -165,7 +165,7 @@ export default {
v
:
"F"
}
]
console
.
log
(
"result:"
,
result
);
//
console.log("result:", result);
return
result
;
},
submitBtnDisabled
()
{
...
...
@@ -340,7 +340,7 @@ export default {
gender
:
this
.
quoteData
.
gender
,
birthday
:
this
.
quoteData
.
birthday
,
}
console
.
log
(
"d:"
,
d
);
//
console.log("d:", d);
this
.
btnNavigateTo
(
"vhis"
,
this
.
curTab
.
lastBtnDescribe
.
l
,
d
);
}
if
(
this
.
curTab
.
relation
==
this
.
PRODUCT_REN_RICH
)
{
...
...
@@ -492,6 +492,18 @@ export default {
this
.
paymentOptionList
[
2
].
n
=
this
.
i18n
.
index
.
quote
.
genRich
.
Quarterly
;
this
.
paymentOptionList
[
3
].
n
=
this
.
i18n
.
index
.
quote
.
genRich
.
Monthly
;
// 读取缓存 其实也没啥用 图大的话还是慢
let
tempDataList
=
JSON
.
parse
(
sessionStorage
.
getItem
(
"_pingan_index_datalist"
));
let
tempBannerList
=
JSON
.
parse
(
sessionStorage
.
getItem
(
"_pingan_index_bannerlist"
));
if
(
tempDataList
)
{
this
.
dataList
=
tempDataList
;
}
if
(
tempBannerList
)
{
this
.
bannerList
=
tempBannerList
;
}
// 可以埋数据在 localStorage
httpPost
({
url
:
api
.
indexManageListApi
,
...
...
@@ -517,9 +529,6 @@ export default {
});
// 增加一个tap
// this.dataList.push(JSON.parse(JSON.stringify(this.dataList[0])));
// this.dataList.push(JSON.parse(JSON.stringify(this.dataList[0])));
// this.dataList.push(JSON.parse(JSON.stringify(this.dataList[0])));
this
.
dataList
.
forEach
((
element
,
idx
)
=>
{
element
.
index
=
idx
;
...
...
@@ -530,7 +539,10 @@ export default {
this
.
bannerList
.
forEach
(
element
=>
{
element
.
btns
=
element
.
btnDescribe
;
});
// console.log("this.dataList:", this.dataList);
// 设置缓存
sessionStorage
.
setItem
(
"_pingan_index_datalist"
,
JSON
.
stringify
(
this
.
dataList
));
sessionStorage
.
setItem
(
"_pingan_index_bannerlist"
,
JSON
.
stringify
(
this
.
bannerList
));
})
},
...
...
Please
register
or
sign in
to post a comment