Commit 75710589 authored by 王玉鑫's avatar 王玉鑫

feat: 解锁联系我们

parent 97b11b4c
......@@ -6,7 +6,9 @@
解锁额度已用完,可通过
<span class="mx-1 cursor-pointer font-bold text-[#C0322B]">提交选址需求</span>
<span class="mx-1 cursor-pointer font-bold text-[#C0322B]">联系我们</span>
<span class="mx-1 cursor-pointer font-bold text-[#C0322B]" @click="handleContactUs">
联系我们
</span>
获得专业选址顾问服务并获取更多信息
</div>
<div v-else class="flex items-center justify-center">
......@@ -41,6 +43,8 @@ import { useAppStore } from '@/stores/app.ts';
import { useRequest } from '@/composable/useRequest.ts';
import { RequestUrl } from '@/types/api.ts';
import { useMessage } from '@/composable/useMessage.ts';
import { useJump } from '@/composable/useJump.ts';
import { RouteName } from '@/router/router.ts';
import { useLoginModal } from '../login/login.ts';
const props = withDefaults(
......@@ -71,6 +75,8 @@ const { message } = useMessage();
const { open: showLogin } = useLoginModal();
const { open: openPage } = useJump();
/** 额度用光 */
const isNoCount = computed(() => {
return props.limitNum === 0;
......@@ -124,4 +130,8 @@ const handleUnlock = async () => {
console.log(error);
}
};
const handleContactUs = () => {
openPage(RouteName.contactUs);
};
</script>
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