From 51d3a5ba862be3bae8861c0f222c5acbb60229d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E6=98=B1=E8=BE=BE?= Date: Thu, 17 Jul 2025 17:09:05 +0800 Subject: [PATCH] =?UTF-8?q?refactor(home):=20=E8=B0=83=E6=95=B4=E9=A6=96?= =?UTF-8?q?=E9=A1=B5=E5=85=BB=E8=80=81=E6=9C=8D=E5=8A=A1=E4=BD=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将养老服务模块从生活娱乐前面移动到后面 - 优化代码格式,添加缺失的逗号和换行 --- src/views/home/home.vue | 44 ++++++++++++++++++++--------------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/src/views/home/home.vue b/src/views/home/home.vue index 801d995..ff97042 100644 --- a/src/views/home/home.vue +++ b/src/views/home/home.vue @@ -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('页面访问有误,请重试') - } + }, } @@ -119,14 +119,6 @@ export default {
-
-
-

养老服务

-

暖心相伴

-

颐养天年

-
- -
@@ -138,6 +130,14 @@ export default {
+
+
+

养老服务

+

暖心相伴

+

颐养天年

+
+ +