feat: 对未实现的功能增加占位信息
1. 修改手机号 2. 剧本市场
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 2.0 MiB |
@@ -0,0 +1,25 @@
|
|||||||
|
<script setup lang="ts">
|
||||||
|
import { ref } from 'vue'
|
||||||
|
|
||||||
|
const showModal = defineModel('showModal', { required: true })
|
||||||
|
|
||||||
|
const newPhone = ref('')
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<template>
|
||||||
|
<n-modal v-model:show="showModal" preset="card" style="width: 600px" title="修改手机号">
|
||||||
|
<n-form label-placement="left">
|
||||||
|
<n-p>你需要使用新的手机号接收一个验证码来完成修改。</n-p>
|
||||||
|
<n-form-item path="to" label="新的手机号">
|
||||||
|
<n-input v-model:value="newPhone" />
|
||||||
|
</n-form-item>
|
||||||
|
<n-flex>
|
||||||
|
<n-button type="warning" disabled>获取验证码</n-button>
|
||||||
|
<n-button type="tertiary">暂不支持喵!</n-button>
|
||||||
|
<n-tag type="info">验证码有效期为 5 分钟,且不允许多个同时有效。</n-tag>
|
||||||
|
</n-flex>
|
||||||
|
</n-form>
|
||||||
|
</n-modal>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<style scoped></style>
|
||||||
@@ -0,0 +1,33 @@
|
|||||||
|
<script setup lang="ts">
|
||||||
|
import InDev from '@/components/InDev.vue'
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<template>
|
||||||
|
<div class="marketplace-page">
|
||||||
|
<div class="marketplace-header-card"></div>
|
||||||
|
|
||||||
|
<in-dev />
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
div.marketplace-page {
|
||||||
|
min-width: min(1200px, 90%);
|
||||||
|
width: min(1200px, 90%);
|
||||||
|
min-height: 0;
|
||||||
|
padding: 6px 20px;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
div.marketplace-header-card {
|
||||||
|
background-image: url('/nyahome/normal-header.png');
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-size: cover;
|
||||||
|
background-position: center;
|
||||||
|
border-radius: 12px;
|
||||||
|
width: 100%;
|
||||||
|
height: 500px;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -6,6 +6,7 @@ import { api } from '@/tools/web.js'
|
|||||||
import type { UploadFileDto, UserDto } from '@/types/user.js'
|
import type { UploadFileDto, UserDto } from '@/types/user.js'
|
||||||
import { useHead } from '@unhead/vue'
|
import { useHead } from '@unhead/vue'
|
||||||
import ChangeEmailModal from '@/components/admin/ChangeEmailModal.vue'
|
import ChangeEmailModal from '@/components/admin/ChangeEmailModal.vue'
|
||||||
|
import ChangePhoneModal from '@/components/admin/ChangePhoneModal.vue'
|
||||||
|
|
||||||
useHead({
|
useHead({
|
||||||
title: '用户资料',
|
title: '用户资料',
|
||||||
@@ -146,10 +147,12 @@ async function save() {
|
|||||||
</n-form>
|
</n-form>
|
||||||
<n-flex>
|
<n-flex>
|
||||||
<n-button class="ui-button" type="primary" @click="save">保存</n-button>
|
<n-button class="ui-button" type="primary" @click="save">保存</n-button>
|
||||||
<n-button class="ui-button" type="warning" @click="showChangeEmailModal = true"
|
<n-button class="ui-button" type="warning" secondary @click="showChangeEmailModal = true">
|
||||||
>更改邮箱</n-button
|
更改邮箱
|
||||||
>
|
</n-button>
|
||||||
<n-button class="ui-button" type="warning">更改手机号</n-button>
|
<n-button class="ui-button" type="warning" secondary @click="showChangePhoneModal = true">
|
||||||
|
更改手机号
|
||||||
|
</n-button>
|
||||||
<n-button class="ui-button" type="tertiary">重置全部</n-button>
|
<n-button class="ui-button" type="tertiary">重置全部</n-button>
|
||||||
</n-flex>
|
</n-flex>
|
||||||
</div>
|
</div>
|
||||||
@@ -169,6 +172,7 @@ async function save() {
|
|||||||
v-model:select-files="background_selectFiles"
|
v-model:select-files="background_selectFiles"
|
||||||
/>
|
/>
|
||||||
<change-email-modal v-model:show-modal="showChangeEmailModal"/>
|
<change-email-modal v-model:show-modal="showChangeEmailModal"/>
|
||||||
|
<change-phone-modal v-model:show-modal="showChangePhoneModal"/>
|
||||||
</n-card>
|
</n-card>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ import AdminUserSecurity from '@/pages/admin/AdminUserSecurity.vue'
|
|||||||
import AdminUserUpload from '@/pages/admin/AdminUserUpload.vue'
|
import AdminUserUpload from '@/pages/admin/AdminUserUpload.vue'
|
||||||
import AdminNyahome from '@/pages/admin/AdminNyahome.vue'
|
import AdminNyahome from '@/pages/admin/AdminNyahome.vue'
|
||||||
import AdminUserScript from '@/pages/admin/AdminUserScript.vue'
|
import AdminUserScript from '@/pages/admin/AdminUserScript.vue'
|
||||||
|
import Marketplace from '@/pages/Marketplace.vue'
|
||||||
|
|
||||||
const router = createRouter({
|
const router = createRouter({
|
||||||
history: createWebHashHistory(import.meta.env.BASE_URL),
|
history: createWebHashHistory(import.meta.env.BASE_URL),
|
||||||
@@ -28,6 +29,11 @@ const router = createRouter({
|
|||||||
path: '/chatroom',
|
path: '/chatroom',
|
||||||
component: ChatroomPage,
|
component: ChatroomPage,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: 'marketplace',
|
||||||
|
path: '/marketplace',
|
||||||
|
component: Marketplace,
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name: 'admin',
|
name: 'admin',
|
||||||
path: '/admin/',
|
path: '/admin/',
|
||||||
|
|||||||
Reference in New Issue
Block a user