|
|
@@ -1,4 +1,7 @@
|
|
|
<script setup lang="ts">
|
|
|
+ import { ref } from 'vue';
|
|
|
+
|
|
|
+ const name = ref('haha')
|
|
|
|
|
|
</script>
|
|
|
|
|
|
@@ -9,39 +12,101 @@
|
|
|
|
|
|
<!-- </el-card>-->
|
|
|
<!-- </div>-->
|
|
|
+ <div id="updateProductModal" tabindex="-1" class="hidden overflow-y-auto overflow-x-hidden absolute justify-center items-center w-full h-full">
|
|
|
|
|
|
- <div class="flex items-center justify-center p-8 full-height">
|
|
|
- <el-container class="flex flex-col min-w-0 bg-gray-50 h-full w-full shadow-md rounded-lg">
|
|
|
- <el-aside width="200px" class="bg-gray-200 rounded-l-lg flex flex-col items-center justify-between p-8">
|
|
|
- <el-avatar :size="120">
|
|
|
- 头像
|
|
|
- </el-avatar>
|
|
|
-
|
|
|
- <el-descriptions :column="1" border class="">
|
|
|
-
|
|
|
- <el-descriptions-item>
|
|
|
- <template #label>
|
|
|
- <div class="flex items-center">
|
|
|
- Username
|
|
|
- </div>
|
|
|
- </template>
|
|
|
- kooriookami
|
|
|
- </el-descriptions-item>
|
|
|
-
|
|
|
- </el-descriptions>
|
|
|
- </el-aside>
|
|
|
-
|
|
|
- <el-main class="p-8">
|
|
|
- <span class="text-3xl font-semibold">修改信息</span>
|
|
|
- </el-main>
|
|
|
- </el-container>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="flex items-center justify-center p-8 h-full overflow-y-clip">
|
|
|
+ <el-aside width="20%" class="mr-5 h-full bg-gray-100 rounded-lg flex flex-col items-center justify-between">
|
|
|
+
|
|
|
+ <div class="h-1/3 w-full flex items-center justify-center border-b-2 border-gray-200">
|
|
|
+ <el-avatar :size="150" class="block">
|
|
|
+ <span class="text-3xl"> 头像 </span>
|
|
|
+ </el-avatar>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="bg-gray-50 h-2/3 w-full flex flex-col items-center justify-center shadow-md space-y-20">
|
|
|
+ <span class="w-full text-4xl text-center">用户名</span>
|
|
|
+ <span class="w-full text-2xl text-center">电话</span>
|
|
|
+ <span class="w-full text-2xl text-center">邮箱</span>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ </el-aside>
|
|
|
+
|
|
|
+
|
|
|
+ <div class="flex flex-col h-full w-full rounded-lg space-y-4">
|
|
|
+
|
|
|
+ <div class="h-auto bg-gray-50 rounded-2xl">
|
|
|
+
|
|
|
+ <div class="flex flex-row justify-between px-3 py-2 rounded-t-2xl bg-gray-100 border-b-2 border-gray-200">
|
|
|
+ <span class="text-2xl font-semibold text-center">个人信息</span>
|
|
|
+ <button type="submit"
|
|
|
+ class="inline text-white bg-primary-600 hover:bg-primary-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-2xl text-xs px-4 py-2 text-center">更新</button>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <form class="m-3">
|
|
|
+ <div class="grid gap-6 mb-6 grid-cols-3 mx-4">
|
|
|
+ <div>
|
|
|
+ <label for="name" class="block mb-2 text-sm font-medium text-gray-900 dark:text-white">昵称</label>
|
|
|
+ <input type="text" id="name" v-model="name"
|
|
|
+ class="bg-white border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5">
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div>
|
|
|
+ <label for="phone" class="block mb-2 text-sm font-medium text-gray-900 dark:text-white">手机号</label>
|
|
|
+ <input type="tel" id="phone" class="bg-white border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5">
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div>
|
|
|
+ <label for="email" class="block mb-2 text-sm font-medium text-gray-900 dark:text-white">邮箱</label>
|
|
|
+ <input type="email" id="email" class="bg-white border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5">
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </form>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="h-auto bg-gray-50 rounded-2xl">
|
|
|
+
|
|
|
+ <div class="flex flex-row justify-between px-3 py-2 rounded-t-2xl bg-gray-100 border-b-2 border-gray-200">
|
|
|
+ <span class="text-2xl font-semibold text-center">密码</span>
|
|
|
+ <button type="submit"
|
|
|
+ class="inline text-white bg-primary-600 hover:bg-primary-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-3xl text-xs px-4 py-2 text-center">更新</button>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <form class="m-3">
|
|
|
+ <div class="grid grid-cols-2 gap-10 mb-6 mx-4">
|
|
|
+ <div>
|
|
|
+ <label for="password" class="block mb-2 text-sm font-medium text-gray-900 dark:text-white">密码</label>
|
|
|
+ <input type="password" id="password" class="bg-white border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500" placeholder="•••••••••" required>
|
|
|
+ </div>
|
|
|
+ <div>
|
|
|
+ <label for="confirm_password" class="block mb-2 text-sm font-medium text-gray-900 dark:text-white">确认密码</label>
|
|
|
+ <input type="password" id="confirm_password" class="bg-white border border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500" placeholder="•••••••••" required>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </form>
|
|
|
+
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="h-full bg-gray-50 rounded-2xl">
|
|
|
+
|
|
|
+ <div class="flex flex-row justify-between px-3 py-2 rounded-t-2xl bg-gray-100 border-b-2 border-gray-200">
|
|
|
+ <span class="text-2xl font-semibold text-center">地址信息</span>
|
|
|
+ <button id="updateProductButton" data-modal-target="updateProductModal" data-modal-toggle="updateProductModal"
|
|
|
+ class="block text-white bg-primary-600 hover:bg-primary-800 focus:ring-4 focus:outline-none focus:ring-primary-300 font-medium rounded-3xl text-xs px-4 py-2 text-center" type="button">
|
|
|
+ 添加地址
|
|
|
+ </button>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ </div>
|
|
|
+
|
|
|
+
|
|
|
+ </div>
|
|
|
</div>
|
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
<style scoped>
|
|
|
-.full-height{
|
|
|
- min-height: calc(100vh - 68.5px);
|
|
|
-}
|
|
|
+
|
|
|
</style>
|