@@ -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
+ }
+
+ },
}
}
+