Commit 670bb2b8 authored by 郝聪敏's avatar 郝聪敏

feature: 活动链接添加微信参数

parent 14760409
...@@ -117,6 +117,7 @@ import { parseTime } from "@/service/utils"; ...@@ -117,6 +117,7 @@ import { parseTime } from "@/service/utils";
import { saveAs } from "file-saver"; import { saveAs } from "file-saver";
import qrCodeImg from "@/assets/images/home/qrcode.png"; import qrCodeImg from "@/assets/images/home/qrcode.png";
import { isXyqb } from "@/service/validation"; import { isXyqb } from "@/service/validation";
import { checkOpenId } from "@/service/wxJsSdk";
export default { export default {
name: "Activity", name: "Activity",
...@@ -144,6 +145,7 @@ export default { ...@@ -144,6 +145,7 @@ export default {
} }
}, },
mounted() { mounted() {
this.checkOpenId();
setTimeout(() => { setTimeout(() => {
this.$nextTick(() => { this.$nextTick(() => {
this.$refs?.swiper?.resize(); this.$refs?.swiper?.resize();
...@@ -151,6 +153,7 @@ export default { ...@@ -151,6 +153,7 @@ export default {
}, 600); }, 600);
}, },
computed: { computed: {
...{ checkOpenId },
voteButtonText() { voteButtonText() {
let text = "去投票"; let text = "去投票";
if (this.status === "HAS_WINNING") { if (this.status === "HAS_WINNING") {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment