This commit is contained in:
2025-12-16 12:58:09 +08:00
parent 3135250b1e
commit 5840a1022d
4 changed files with 31 additions and 24 deletions

View File

@@ -6,6 +6,7 @@ import { useUserStore } from "@/stores/userStore";
import { useDialogStore } from "@/stores/dialogStore";
import { useAuthStore } from "@/stores/authStore";
import { useWeixinShare } from "@/composables/useWeixinShare";
import WechatOverlay from "@/components/WechatOverlay.vue";
const router = useRouter();
const agentStore = useAgentStore();
@@ -205,6 +206,8 @@ const h5WeixinGetCode = () => {
<template>
<RouterView />
<!-- <WechatOverlay /> -->
<BindPhoneDialog />
</template>

View File

@@ -122,15 +122,19 @@ const posterImages = ref([]);
// QR码位置配置为每个海报单独配置
const qrCodePositions = ref({
// promote模式的配置 (tg_qrcode)
promote: [
{ x: 138, y: 954, size: 220 }, // tg_qrcode_1.png
{ x: 138, y: 954, size: 220 }, // tg_qrcode_2.jpg
{ x: 138, y: 954, size: 220 }, // tg_qrcode_3.jpg
{ x: 180, y: 1440, size: 300 }, // tg_qrcode_1.png
{ x: 525, y: 1955, size: 500 }, // tg_qrcode_2.jpg
{ x: 525, y: 1955, size: 500 }, // tg_qrcode_3.jpg
{ x: 525, y: 1955, size: 500 }, // tg_qrcode_4.jpg
{ x: 525, y: 1955, size: 500 }, // tg_qrcode_5.jpg
{ x: 525, y: 1955, size: 500 }, // tg_qrcode_6.jpg
{ x: 255, y: 940, size: 250 }, // tg_qrcode_7.jpg
{ x: 255, y: 940, size: 250 }, // tg_qrcode_8.jpg
],
// invitation模式的配置 (yq_qrcode)
invitation: [
{ x: 138, y: 954, size: 220 }, // yq_qrcode_1.png
{ x: 360, y: -1370, size: 360 }, // yq_qrcode_1.png
],
});
@@ -148,7 +152,7 @@ const loadPosterImages = async () => {
const basePrefix = mode.value === "promote" ? "tg_qrcode_" : "yq_qrcode_";
// 根据模式确定要加载的图片编号
const imageNumbers = mode.value === "promote" ? [1, 2, 3] : [1];
const imageNumbers = mode.value === "promote" ? [1, 2, 3, 4, 5, 6, 7, 8] : [1];
// 加载图片
for (const i of imageNumbers) {

View File

@@ -14,23 +14,23 @@ import housekeepingRiskIcon from "@/assets/images/index/housekeeping_risk_bg.png
import preLoanRiskIcon from "@/assets/images/index/preloan_risk_bg.png";
function toInquire(name) {
if (name === "marriage") {
showConfirmDialog({
title: "婚恋风险查询",
message: "是否进入天远查进行婚恋查询?",
confirmButtonText: "进入",
cancelButtonText: "取消",
})
.then(() => {
// 在当前标签页打开不新开tab
window.location.href = "https://www.tianyuancha.cn";
})
.catch(() => {
// 取消则继续后续逻辑
router.push(`/inquire/marriage`);
});
return; // 阻止继续跳转,等待 dialog 回调
}
// if (name === "marriage") {
// showConfirmDialog({
// title: "婚恋风险查询",
// message: "是否进入天远查进行婚恋查询?",
// confirmButtonText: "进入",
// cancelButtonText: "取消",
// })
// .then(() => {
// // 在当前标签页打开不新开tab
// window.location.href = "https://www.tianyuancha.cn";
// })
// .catch(() => {
// // 取消则继续后续逻辑
// router.push(`/inquire/marriage`);
// });
// return; // 阻止继续跳转,等待 dialog 回调
// }
router.push(`/inquire/${name}`);
}
function toInvitation() {