|
@@ -490,6 +490,7 @@
|
|
|
},
|
|
|
head(){
|
|
|
return {
|
|
|
+ SystemWidthFlag:false,// 判断是否是手机端,默认为false,默认为PC端
|
|
|
title: '多媒体课件制作_视频课件制作_flash课件制作_【栋科课程开发团队】',
|
|
|
meta: [
|
|
|
{
|
|
@@ -505,7 +506,16 @@
|
|
|
},
|
|
|
computed: {},
|
|
|
methods: {
|
|
|
+ // 判断是否为移动端
|
|
|
+ getSystemWidth(){
|
|
|
+ var browserWidth=document.documentElement.clientWidth;
|
|
|
+ if(browserWidth <= 768){
|
|
|
+ this.SystemWidthFlag = true;
|
|
|
+ }else{
|
|
|
+ this.SystemWidthFlag = false;
|
|
|
+ }
|
|
|
|
|
|
+ },
|
|
|
goIntroductionPage(){
|
|
|
this.$router.push({ name: 'introduction' });
|
|
|
},
|
|
@@ -531,8 +541,13 @@
|
|
|
|
|
|
},
|
|
|
applyFun() {
|
|
|
- this.telDl = true;
|
|
|
- this.sliderFun();
|
|
|
+ this.getSystemWidth();
|
|
|
+ if(this.SystemWidthFlag){
|
|
|
+ this.$router.push({ name: 'CourseDevelopPhone', query: {pageName: 'course',} });
|
|
|
+ }else {
|
|
|
+ this.telDl = true;
|
|
|
+ this.sliderFun();
|
|
|
+ }
|
|
|
},
|
|
|
|
|
|
dialogSave(){
|
|
@@ -749,6 +764,7 @@
|
|
|
|
|
|
},
|
|
|
mounted() {
|
|
|
+ this.getSystemWidth();
|
|
|
},
|
|
|
beforeDestroy() {
|
|
|
},
|