首页广告优化
parent
657fb67294
commit
0bc50874b9
|
@ -141,6 +141,7 @@
|
||||||
consult_amount: 0, //是否完善资料
|
consult_amount: 0, //是否完善资料
|
||||||
bannerSrc: "", //首页banner图
|
bannerSrc: "", //首页banner图
|
||||||
adSrc: "", //首页广告图
|
adSrc: "", //首页广告图
|
||||||
|
adUrl: "", //广告跳转地址
|
||||||
expertData: [], //专家列表
|
expertData: [], //专家列表
|
||||||
video: null,
|
video: null,
|
||||||
isPaused: true,
|
isPaused: true,
|
||||||
|
@ -229,6 +230,7 @@
|
||||||
.then(function(res) {
|
.then(function(res) {
|
||||||
console.log(res,'首页广告')
|
console.log(res,'首页广告')
|
||||||
that.adSrc = res.data.data[0].src;
|
that.adSrc = res.data.data[0].src;
|
||||||
|
that.adUrl = res.data.data[0].url;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -268,12 +270,16 @@
|
||||||
this.$router.push(path);
|
this.$router.push(path);
|
||||||
},
|
},
|
||||||
toNewPage(){
|
toNewPage(){
|
||||||
let url = 'https://zym.emingren.com';
|
let url = this.adUrl;
|
||||||
|
if(this.adUrl == '' || this.adUrl == '#'){
|
||||||
|
return false;
|
||||||
|
}else{
|
||||||
if(this.ddEntrance == 'yes'){
|
if(this.ddEntrance == 'yes'){
|
||||||
// 网页向小程序 postMessage 消息
|
// 网页向小程序 postMessage 消息
|
||||||
dd.postMessage({name:'newsPage',url:url});
|
dd.postMessage({name:'newsPage',url:url});
|
||||||
}else{
|
}else{
|
||||||
window.open('https://zym.emingren.com');
|
window.open(url);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue