This commit is contained in:
952108534@qq.com 2022-01-27 16:28:23 +08:00
parent 03f91822aa
commit 83e69b2a28

View File

@ -6,6 +6,7 @@
<div class="ts-banner-swiper-container"> <div class="ts-banner-swiper-container">
<swiper :options="headerSwiperOption"> <swiper :options="headerSwiperOption">
<swiper-slide> <swiper-slide>
<a target="_blank" @click="diaoqi">
<picture> <picture>
<source <source
media="(max-width: 768px)" media="(max-width: 768px)"
@ -17,9 +18,11 @@
/> />
<img src="/images/banner/pc-weixin.png" /> <img src="/images/banner/pc-weixin.png" />
</picture> </picture>
</a>
</swiper-slide> </swiper-slide>
<swiper-slide> <swiper-slide>
<a href="#" target="_blank">
<picture> <picture>
<source <source
media="(max-width: 768px)" media="(max-width: 768px)"
@ -31,9 +34,10 @@
/> />
<img src="/images/banner/two.jpg" /> <img src="/images/banner/two.jpg" />
</picture> </picture>
</a>
</swiper-slide> </swiper-slide>
<swiper-slide> <swiper-slide>
<a href="#" target="_blank">
<picture> <picture>
<source <source
media="(max-width: 768px)" media="(max-width: 768px)"
@ -45,6 +49,7 @@
/> />
<img src="/images/banner/three.jpg" /> <img src="/images/banner/three.jpg" />
</picture> </picture>
</a>
</swiper-slide> </swiper-slide>
<!-- <swiper-slide> <!-- <swiper-slide>
@ -1400,28 +1405,27 @@ export default {
console.log(this.realIndex); console.log(this.realIndex);
console.log(this.realIndex); console.log(this.realIndex);
vm.indexacindex=this.realIndex; vm.indexacindex=this.realIndex;
if (this.realIndex == 0) { // if (this.realIndex == 0) {
console.log("0"); // console.log("0");
// window.location.href ='https://blog.csdn.net/smallnetvisitor/article/details/84817905'; // // window.location.href ='https://blog.csdn.net/smallnetvisitor/article/details/84817905';
// } else if (this.realIndex == 1) {
// // window.location.href ='https://blog.csdn.net/smallnetvisitor/article/details/84817905';
} else if (this.realIndex == 1) { // console.log("1");
// window.location.href ='https://blog.csdn.net/smallnetvisitor/article/details/84817905'; // }
console.log("1"); if (this.realIndex == 2) {
} else if (this.realIndex == 2) {
console.log(vm.userdata.data.id) console.log(vm.userdata.data.id)
setTimeout(() => { // setTimeout(() => {
var option = { // var option = {
customer: { // customer: {
id: "", // id: "",
name: "", // name: "",
email: "", // email: "",
mobile: "", // mobile: "",
memberId: vm.userdata.data.id, // memberId: vm.userdata.data.id,
}, // },
}; // };
dis_livchat(option); // dis_livchat(option);
}, 500); // }, 500);
} }
}, },
@ -1516,6 +1520,21 @@ export default {
window.removeEventListener("scroll", this.scrollToTop); window.removeEventListener("scroll", this.scrollToTop);
}, },
methods: { methods: {
diaoqi(){
console.log('----');
setTimeout(() => {
var option = {
customer: {
id: "",
name: "",
email: "",
mobile: "",
memberId: vm.userdata.data.id,
},
};
dis_livchat(option);
}, 500);
},
...mapMutations(["checkIsLogin"]), ...mapMutations(["checkIsLogin"]),
playMobileVideo(item) { playMobileVideo(item) {
let videoPath = item.video; let videoPath = item.video;