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