新版本官网优化完成

This commit is contained in:
2025-02-15 02:53:56 +08:00
parent 3e84bbba59
commit 4c601b31a2
55 changed files with 3046 additions and 915 deletions

View File

@@ -1,36 +1,39 @@
<template>
<PageBanner title="入驻" desc="Register Account"/>
<div class="login-layout m-auto sm:w-screen-xl w-full">
<div class="m-auto flex sm:flex-row flex-col sm:px-0 px-3 ">
<div class="flash bg-white rounded-lg px-8 py-4 w-full">
<Auth @done="reload"/>
</div>
</div>
<!-- 主体部分 -->
<div class="xl:w-screen-xl m-auto py-4 mt-20">
<el-page-header :icon="ArrowLeft" @back="goBack">
<template #content>
<span class="text-large font-600 mr-3"> 注册 </span>
</template>
</el-page-header>
<el-card shadow="hover" class=" my-5 px-2">
<Auth @done="reload"/>
</el-card>
</div>
</template>
<script setup lang="ts">
import {ArrowLeft, View, Search} from '@element-plus/icons-vue'
import {useConfigInfo, useWebsite} from "~/composables/configState";
import {ref} from 'vue'
import { ref } from 'vue'
import {useServerRequest} from "~/composables/useServerRequest";
import type {ApiResult} from "~/api";
import Auth from './components/Auth.vue';
import type {ShopMerchantApply} from "~/api/shop/shopMerchantApply/model";
import Base from "~/pages/user/components/Base.vue";
// 配置信息
const runtimeConfig = useRuntimeConfig();
const route = useRoute();
const router = useRouter();
const activeIndex = ref('');
const website = useWebsite()
const config = useConfigInfo();
const merchantApply = ref<ShopMerchantApply>();
const merchantApply = ref<any>();
const reload = async () => {
const {data: response} = await useServerRequest<ApiResult<ShopMerchantApply>>('/shop/shop-merchant-apply/getByUserId', {baseURL: runtimeConfig.public.apiServer})
const {data: response} = await useServerRequest<ApiResult<any>>('/shop/shop-merchant-apply/getByUserId', {baseURL: runtimeConfig.public.apiServer})
if (response.value?.data) {
merchantApply.value = response.value.data;
}
if(config.value){
if (config.value) {
useHead({
title: `实名认证 - ${config.value?.siteName}`,
meta: [{name: website.value.keywords, content: website.value.comments}]
@@ -38,11 +41,15 @@ const reload = async () => {
}
}
const goBack = () => {
router.back(); // 返回上一页
}
watch(
() => route.path,
(path) => {
activeIndex.value = path;
reload();
// reload();
},
{immediate: true}
);