提交 87127b81 编写于 作者: guangjun.yang's avatar guangjun.yang

代码问题

上级 cdb67d50
...@@ -26,7 +26,8 @@ ...@@ -26,7 +26,8 @@
"vue-router": "^2.1.1", "vue-router": "^2.1.1",
"vuex": "^2.0.0", "vuex": "^2.0.0",
"web-buried-point": "^2.1.0", "web-buried-point": "^2.1.0",
"weixin-js-sdk": "^1.4.0-test" "weixin-js-sdk": "^1.4.0-test",
"pica-call-app": "^1.0.43"
}, },
"devDependencies": { "devDependencies": {
"@babel/core": "^7.0.0", "@babel/core": "^7.0.0",
......
...@@ -59,67 +59,3 @@ ...@@ -59,67 +59,3 @@
.lh-25 { .lh-25 {
line-height: 2.5 !important; line-height: 2.5 !important;
} }
.shareanimate {
animation: shareani 4s ease;
-webkit-animation: shareani 4s ease;
-moz-animation: shareani 4s ease;
-ms-animation: shareani 4s ease;
}
.shareanimate2 {
animation: shareani 4s ease;
-webkit-animation: shareani 4s ease;
-moz-animation: shareani 4s ease;
-ms-animation: shareani 4s ease;
}
@keyframes shareani {
0% {
left: 50%;
top: 74%;
opacity: 0.1;
}
100% {
left: 85%;
top: 0;
opacity: 1;
}
}
@-webkit-keyframes shareani {
0% {
left: 50%;
top: 74%;
opacity: 0.8;
}
100% {
left: 85%;
top: 0;
opacity: 0;
}
}
@-moz-keyframes shareani {
0% {
left: 50%;
top: 74%;
opacity: 0.8;
}
100% {
left: 85%;
top: 0;
opacity: 0;
}
}
@-ms-keyframes shareani {
0% {
left: 50%;
top: 74%;
opacity: 0.8;
}
100% {
left: 85%;
top: 0;
opacity: 0;
}
}
\ No newline at end of file
...@@ -104,8 +104,7 @@ export default { ...@@ -104,8 +104,7 @@ export default {
swiperAnimate(this); swiperAnimate(this);
console.log('---2323', se); console.log('---2323', se);
if (activeIndex == 1) { if (activeIndex == 1) {
// document.getElementById('detail-content').className = 'shareanimate';
// $("#share").addClass("shareanimate");
} }
} }
} }
......
...@@ -38,7 +38,7 @@ import Card4 from "@/components/annual-summary/card-4"; ...@@ -38,7 +38,7 @@ import Card4 from "@/components/annual-summary/card-4";
import Card5 from "@/components/annual-summary/card-5"; import Card5 from "@/components/annual-summary/card-5";
import Card6 from "@/components/annual-summary/card-6"; import Card6 from "@/components/annual-summary/card-6";
let _this = null; let _this = null, swiperInstance = null;
export default { export default {
components: { components: {
...@@ -130,7 +130,7 @@ export default { ...@@ -130,7 +130,7 @@ export default {
setTimeout(() => { setTimeout(() => {
this.showLoading = false; this.showLoading = false;
this.initSwiper(); this.initSwiper();
}, 100); }, 2000);
}); });
} else { } else {
this.$toast(res.message); this.$toast(res.message);
...@@ -174,7 +174,7 @@ export default { ...@@ -174,7 +174,7 @@ export default {
// 初始化Swiper // 初始化Swiper
initSwiper() { initSwiper() {
new Swiper(".swiper-container", { swiperInstance = new Swiper(".swiper-container", {
direction: "vertical", direction: "vertical",
speed: 300, speed: 300,
slidesPerView: 1, slidesPerView: 1,
...@@ -192,8 +192,7 @@ export default { ...@@ -192,8 +192,7 @@ export default {
swiperAnimate(this); swiperAnimate(this);
console.log("---2323", se); console.log("---2323", se);
// if (activeIndex == 1) { // if (activeIndex == 1) {
// document.getElementById("detail-content").className =
// "shareanimate";
// } // }
} }
} }
...@@ -250,7 +249,12 @@ export default { ...@@ -250,7 +249,12 @@ export default {
shareImageUrl: shareImageUrl:
"https://file.yunqueyi.com/logo.png?version=" + new Date().getTime() "https://file.yunqueyi.com/logo.png?version=" + new Date().getTime()
}); });
} },
beforeDestroy() {
console.log('in beforeDestroy');
swiperInstance.destroy(true);
},
} }
}; };
</script> </script>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册