修改弹窗和首页菜单

This commit is contained in:
lccsw
2025-11-20 15:44:42 +08:00
parent da58f36336
commit ed6c1f8cb3
3 changed files with 12 additions and 3 deletions
+8 -1
View File
@@ -1,7 +1,7 @@
<!-- LoginModal.vue -->
<template>
<div style="--van-popup-background:transparent;--van-cell-background:transparent;">
<van-dialog v-model:show="isVisible" :show-confirm-button="false" :closeOnClickOverlay="true">
<van-dialog v-model:show="isVisible" :show-confirm-button="false" :closeOnClickOverlay="props.closeOnClickOverlay">
<div class="relative pd10">
<div class="bg-fff ulib-rt20 inner30">
<h3 class="text-center font-34">立即登录</h3>
@@ -46,6 +46,13 @@ const callback = ref(null)
const is_show_count = ref(false)
const count_time = ref(60000)
const props = defineProps({
closeOnClickOverlay: {
type: Boolean,
default: true
}
})
// 显示模态框
const showModal = (cb) => {
callback.value = cb
+3 -1
View File
@@ -20,7 +20,7 @@
</template>
</li>
</ul>
<div v-if="route.path=='/'" class="mt20 imgsize-100X100 text-center font-24 pos-rel">
<div v-if="route.path=='/' && isWechatBrowser" class="mt20 imgsize-100X100 text-center font-24 pos-rel">
<img src="@/assets/side-link.png" alt="">
<wx-open-launch-weapp id="launch-btn" :appid="third_mp.appId" :username="third_mp.username" :path="third_mp.path"
style="position: absolute; top: 0; left: 0; width: 100%; height: 100%;">
@@ -35,6 +35,7 @@
<script setup>
import { useRoute } from 'vue-router'
import { WechatAuth } from '@/utils/wechat'
const route = useRoute()
const props = defineProps({
@@ -52,6 +53,7 @@ const third_mp = {
username: 'gh_abd358c96583',
path: '/pages/guide/localPolicy'
}
const isWechatBrowser = WechatAuth.isWechatBrowser();
</script>
<style>
+1 -1
View File
@@ -1,7 +1,7 @@
<template>
<div class="login-page">
<!-- 登录模态框组件 -->
<LoginModal ref="loginModalRef" />
<LoginModal ref="loginModalRef" :close-on-click-overlay="false"/>
</div>
</template>
<script setup>