diff --git a/src/Util.js b/src/Util.js index 936b5ae..6bbdd84 100644 --- a/src/Util.js +++ b/src/Util.js @@ -16,6 +16,8 @@ export default class Util { mobile: !!userAgent.match(/AppleWebKit.*Mobile.*/), // 是否为移动终端 iPad: userAgent.indexOf('iPad') > -1, // 是否iPad webApp: userAgent.indexOf('Safari') === -1, // 是否web应该程序,没有头部与底部 - wechat: userAgent.indexOf('MicroMessenger') > -1 + wechat: userAgent.indexOf('MicroMessenger') > -1, // 是否微信浏览器 + isapp: window.innerWidth < 768, // 是否微信浏览器 + harmonyOS: userAgent.indexOf('HarmonyOS') > -1, } } diff --git a/src/components/Footer.vue b/src/components/Footer.vue index 2f845c1..14e311d 100644 --- a/src/components/Footer.vue +++ b/src/components/Footer.vue @@ -5,14 +5,13 @@ 鲁ICP备2024118666号-1  鲁公网安备37021202001661 - -

- Copyright 2024 智聪科技股份有限公司.All rights reserved. -
+

+ Copyright 2024 青岛智聪科技股份有限公司 .All rights reserved +
+

+ + diff --git a/src/views/callus.vue b/src/views/callus.vue index 891dbc7..32191a8 100644 --- a/src/views/callus.vue +++ b/src/views/callus.vue @@ -3,16 +3,18 @@

- |  记账专家 + |  记账专家
|  健康帮手

-
◄目录►
+
◄目录►
+
联系我们 资料下载 健康档案 记账平台 首页 +

@@ -60,7 +62,9 @@ feature2: feature2, feature3: feature3, feature4: feature4, - carouselPerPage: (Util.os.android || Util.os.iPhone|| Util.os.wechat|| Util.os.mobile) ? 1 : 2, + mobileShow: false, + webShow: true, + carouselPerPage: (Util.os.android || Util.os.iPhone|| Util.os.wechat|| Util.os.mobile|| Util.os.isapp|| Util.os.harmonyOS) ? 1 : 2, configData : { position: { // 设置显示位置,position top: '60px', @@ -79,12 +83,12 @@ } } }, - methods: { + methods: { onButtonClick: function (e) { if(e=="callus"){ this.$router.push({path:'/callus'}) }else if(e=="invest"){ - window.open("http://152.136.151.187:8080/admin/", '_blank'); + window.open("http://152.136.151.187:88/login", '_blank'); }else if(e=="health"){ window.open("http://152.136.151.187:81/hrms/login", '_blank'); }else if(e=="resource"){ @@ -97,18 +101,39 @@ this.$refs.droplist.show() }, gocallus: function () { - this.$router.push({path:'/'}) + this.$router.push({path:'/callus'}) }, goinvest: function () { - window.open("http://152.136.151.187:82/#/", '_blank'); + window.open("http://152.136.151.187:86/#/", '_blank'); }, goresource: function () { this.$router.push({path:'/resource'}) }, gohealth: function () { - window.open("http://152.136.151.187:81/#/", '_blank'); + window.open("http://152.136.151.187:89/#/", '_blank'); + }, + init: function () { + if((Util.os.android || Util.os.iPhone|| Util.os.mobile|| Util.os.isapp|| Util.os.harmonyOS)){ + this.webShow=false + this.mobileShow=true + }else{ + this.webShow=true + this.mobileShow=false + } + }, } } + diff --git a/src/views/resource.vue b/src/views/resource.vue index 7951d8e..249a6d3 100644 --- a/src/views/resource.vue +++ b/src/views/resource.vue @@ -3,16 +3,18 @@

- |  记账专家 + |  记账专家
|  健康帮手

-
◄目录►
+
◄目录►
+
联系我们 资料下载 健康档案 记账平台 首页 +

@@ -66,7 +68,9 @@ feature2: feature2, feature3: feature3, feature4: feature4, - carouselPerPage: (Util.os.android || Util.os.iPhone|| Util.os.wechat|| Util.os.mobile) ? 1 : 2, + mobileShow: false, + webShow: true, + carouselPerPage: (Util.os.android || Util.os.iPhone|| Util.os.wechat|| Util.os.mobile|| Util.os.isapp|| Util.os.harmonyOS) ? 1 : 2, configData : { position: { // 设置显示位置,position top: '60px', @@ -77,7 +81,6 @@ width: '40%', // 设置宽度 list: [ // 设置下拉列表数据和对应的点击事件 {text: '首页', action: this.gocallus}, - {text: '首页', action: this.gocallus}, {text: '记账平台', action: this.goinvest}, {text: '健康档案', action: this.gohealth}, {text: '资料下载', action: this.goresource}, @@ -86,12 +89,15 @@ } } }, - methods: { + created() { + this.init() + }, + methods: { onButtonClick: function (e) { if(e=="callus"){ this.$router.push({path:'/callus'}) }else if(e=="invest"){ - window.open("http://152.136.151.187:8080/admin/", '_blank'); + window.open("http://152.136.151.187:88/login", '_blank'); }else if(e=="health"){ window.open("http://152.136.151.187:81/hrms/login", '_blank'); }else if(e=="resource"){ @@ -107,7 +113,7 @@ this.$router.push({path:'/callus'}) }, goinvest: function () { - window.open("http://152.136.151.187:82/#/", '_blank'); + window.open("http://152.136.151.187:86/#/", '_blank'); }, goresource: function () { this.$router.push({path:'/resource'}) @@ -115,7 +121,28 @@ gohealth: function () { window.open("http://152.136.151.187:89/#/", '_blank'); }, + init: function () { + if((Util.os.android || Util.os.iPhone|| Util.os.mobile|| Util.os.isapp|| Util.os.harmonyOS)){ + this.webShow=false + this.mobileShow=true + }else{ + this.webShow=true + this.mobileShow=false + } + + }, } } +