chore: 更改主页标题

This commit is contained in:
2025-07-17 17:35:40 +08:00
parent 51d3a5ba86
commit 82d3551921

View File

@@ -10,33 +10,33 @@ export default {
components: {
VanImage,
VanIcon: Icon,
SwiperBanner: Swiper,
SwiperBanner: Swiper
},
data() {
return {
bannerList: [
{
imgUrl: require('./img/swiper-image.svg'),
imgUrl: require('./img/swiper-image.svg')
},
{
imgUrl: require('./img/swiper-image.svg'),
},
imgUrl: require('./img/swiper-image.svg')
}
],
name: '',
sex: '',
type: '',
permission: {
goNext: true,
goNext: true
},
titleSrc: require('@/assets/images/logo.png'),
bannerSrc: 'http://ncc.ebiz-digits.com:39527/gsc/IHRHN5/7b/04/63/7b0463aa135f4a1f922b5171bcec1d14/images/主页/u44.svg',
bannerSrc: 'http://ncc.ebiz-digits.com:39527/gsc/IHRHN5/7b/04/63/7b0463aa135f4a1f922b5171bcec1d14/images/主页/u44.svg'
}
},
computed: {
title() {
if (!Number(this.type)) return '亲爱的客户'
return `亲爱的${this.name}${Number(this.sex) === 1 ? '女士' : Number(this.sex) === 0 ? '先生' : ''}`
},
}
},
methods: {
goEcosystem(ecosystem, swe) {
@@ -44,20 +44,20 @@ export default {
this.$router.push({
name: 'service',
params: {
ecosystem: getEcosystem(ecosystem),
ecosystem: getEcosystem(ecosystem)
},
query: {
swe: swe,
},
swe: swe
}
})
},
showErrorDialog(msg) {
Dialog({
message: msg,
message: msg
}).then(() => {
this.$router.go(-1)
})
},
}
},
mounted() {
const params = getParamsFromUrl(globalThis.location.href)
@@ -66,7 +66,7 @@ export default {
if (token || stoken) {
globalThis.sessionStorage.setItem('token', token || stoken)
fetchUserInfo()
.then((res) => {
.then(res => {
const { content } = res.content
this.name = content.name
this.sex = Number(content.sex)
@@ -76,7 +76,7 @@ export default {
this.showErrorDialog('您的登录已过期,请退出重试')
})
} else this.showErrorDialog('页面访问有误,请重试')
},
}
}
</script>
@@ -122,9 +122,9 @@ export default {
<div class="service-item life">
<div>
<!-- <h4>生活娱乐</h4>-->
<h4>健康管理</h4>
<h4>健康无忧</h4>
<p>健康管理</p>
<p>专业保障</p>
<p>健康无忧</p>
<!-- <p>丰富体验</p>-->
<!-- <p>乐享时光</p>-->
</div>
@@ -132,9 +132,9 @@ export default {
</div>
<div class="service-item old">
<div>
<h4>养老服务</h4>
<h4>颐养天年</h4>
<p>养老服务</p>
<p>暖心相伴</p>
<p>颐养天年</p>
</div>
<button class="go-btn" @click="goEcosystem(28)">去看看</button>
</div>
@@ -143,23 +143,23 @@ export default {
<div class="ecosy-container pt10 flex">
<div class="health">
<div class="health-box">
<h4 class="mt85">子女教育</h4>
<p>智慧规划全程守护</p>
<h4 class="mt85">成长护航</h4>
<p>子女教育智慧规划</p>
<button class="go-btn" @click="goEcosystem(38)">去看看</button>
</div>
</div>
<div class="text-left">
<div class="children text-left">
<div class="box text-left">
<h4>财富管理</h4>
<p>稳健增值从容人生</p>
<h4>财富臻享</h4>
<p>财富管理稳健增值</p>
<button class="go-btn-v" @click="goEcosystem(48)">去看看</button>
</div>
</div>
<div class="wealth mt10">
<div class="box">
<h4>生活娱乐</h4>
<p>丰富体验乐享时光</p>
<h4>生活优享</h4>
<p>生活娱乐丰富体验</p>
<button class="go-btn-v" @click="goEcosystem(55)">去看看</button>
</div>
</div>