diff --git a/src/assets/img/AiEmotion/dbqb-button01.png b/src/assets/img/AiEmotion/dbqb-button01.png index 86f77c8..79e7a59 100644 Binary files a/src/assets/img/AiEmotion/dbqb-button01.png and b/src/assets/img/AiEmotion/dbqb-button01.png differ diff --git a/src/assets/img/AiEmotion/dbqb-button02.png b/src/assets/img/AiEmotion/dbqb-button02.png index bbdb494..f3cd660 100644 Binary files a/src/assets/img/AiEmotion/dbqb-button02.png and b/src/assets/img/AiEmotion/dbqb-button02.png differ diff --git a/src/assets/img/AiEmotion/emotion-button01.png b/src/assets/img/AiEmotion/emotion-button01.png index 0e31ea1..a5f2dd6 100644 Binary files a/src/assets/img/AiEmotion/emotion-button01.png and b/src/assets/img/AiEmotion/emotion-button01.png differ diff --git a/src/assets/img/AiEmotion/emotion-button02.png b/src/assets/img/AiEmotion/emotion-button02.png index 162a77c..737ae3e 100644 Binary files a/src/assets/img/AiEmotion/emotion-button02.png and b/src/assets/img/AiEmotion/emotion-button02.png differ diff --git a/src/views/homePage.vue b/src/views/homePage.vue index db3b601..7731663 100644 --- a/src/views/homePage.vue +++ b/src/views/homePage.vue @@ -733,12 +733,42 @@ const changeLevelList = ref([ const activeLevel = ref( changeLevelList.value[0] || { position: 10, calculatedPosition: 10 } ); +const gold = ref(0); + +const rechargeDialogVisible = ref(false); const chooseLevel = (item) => { activeLevel.value = item; }; -const shouldPay = ref(0); -const gold = ref(0); + +const changeToken = () => { + if (gold.value < activeLevel.value.position) { + rechargeDialogVisible.value = true; + return; + } +}; + +const goRecharge = () => { + if (isMobile.value) { + console.log("用户是移动端"); + } else { + console.log("用户是pc端"); + const env = import.meta.env.VITE_ENV; + console.log("当前的环境为:", env); + if (env == "development" || env == "test") { + window.parent.location.href = + "http://192.168.1.24:8080/user/myGold?token=" + + localStorage.getItem("localToken") + + "&where=xiaocaishen&successUrl=http://192.168.1.5:3000/aixiaocaishen/homePage"; + } else if (env == "product") { + // window.parent.location.href = + // 'https://web.homilychart.com/product/hljw/homepage?menu=999999991' + } else if (env == "production") { + // window.parent.location.href = 'https://web.homilychart.com/hljw/homepage?menu=999999991' + } + // window.parent.location.href = window.parent.document.referrer + } +}; // 8.18金币兑换Token end @@ -767,6 +797,14 @@ onMounted(async () => { // 添加原生事件监听器 window.addEventListener("resize", throttledJudgeDevice); + + if (getQueryVariable("successType") == "success") { + dialogVisible.value = true; + window.parent.location.href = window.parent.location.href.replace( + "successType=success", + "" + ); + } }); onUnmounted(() => { @@ -1080,10 +1118,32 @@ onUnmounted(() => {