|
|
@@ -1,15 +1,119 @@ |
|
|
|
<template> |
|
|
|
<!-- BEGIN: Top Bar --> |
|
|
|
<div class="top-bar"> |
|
|
|
<div class="top-bar p-5" style="height:80px;border-bottom:1px solid rgba(0,0,0,0.2);z-index:99;position: relative;"> |
|
|
|
<!-- BEGIN: Breadcrumb --> |
|
|
|
<div class="-intro-x breadcrumb mr-auto hidden sm:flex"> |
|
|
|
<div class="-intro-x breadcrumb mr-auto hidden sm:flex" style="float:left;margin-top: 10px;"> |
|
|
|
<div>智莺生活</div> |
|
|
|
<ChevronRightIcon class="breadcrumb__icon" /> |
|
|
|
<div class="breadcrumb--active">{{ this.$route.meta.title }}</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- END: Notifications --> |
|
|
|
<!-- BEGIN: Account Menu --> |
|
|
|
<div class="intro-x dropdown w-8 h-8 relative" style="float:right"> |
|
|
|
<div |
|
|
|
class="dropdown-toggle w-8 h-8 rounded-full overflow-hidden shadow-lg image-fit zoom-in" |
|
|
|
> |
|
|
|
<img |
|
|
|
alt="" |
|
|
|
:src="require(`@/assets/images/${$f()[9].photos[0]}`)" |
|
|
|
/> |
|
|
|
</div> |
|
|
|
<div class="dropdown-box w-56"> |
|
|
|
<div |
|
|
|
class="dropdown-box__content box bg-theme-38 text-white" |
|
|
|
> |
|
|
|
<div class="p-4 border-b border-theme-40"> |
|
|
|
<div class="font-medium">USERNAME</div> |
|
|
|
<div class="text-xs text-theme-41">会员ID:1231451565</div> |
|
|
|
</div> |
|
|
|
<div class="p-2"> |
|
|
|
<a |
|
|
|
href |
|
|
|
class="flex items-center block p-2 transition duration-300 ease-in-out hover:bg-theme-1:bg-dark-3 rounded-md" |
|
|
|
> |
|
|
|
<UserIcon class="w-4 h-4 mr-2" /> 个人资料 |
|
|
|
</a> |
|
|
|
|
|
|
|
<a |
|
|
|
href |
|
|
|
class="flex items-center block p-2 transition duration-300 ease-in-out hover:bg-theme-1:bg-dark-3 rounded-md" |
|
|
|
> |
|
|
|
<LockIcon class="w-4 h-4 mr-2" />修改密码 |
|
|
|
</a> |
|
|
|
<a |
|
|
|
href |
|
|
|
class="flex items-center block p-2 transition duration-300 ease-in-out hover:bg-theme-1:bg-dark-3 rounded-md" |
|
|
|
> |
|
|
|
<HelpCircleIcon class="w-4 h-4 mr-2" />帮助 |
|
|
|
</a> |
|
|
|
</div> |
|
|
|
<div class="p-2 border-t border-theme-40"> |
|
|
|
<a |
|
|
|
href |
|
|
|
class="flex items-center block p-2 transition duration-300 ease-in-out hover:bg-theme-1:bg-dark-3 rounded-md" |
|
|
|
> |
|
|
|
<ToggleRightIcon class="w-4 h-4 mr-2" /> |
|
|
|
退出登陆 |
|
|
|
</a> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
<!-- END: Search --> |
|
|
|
<!-- BEGIN: Notifications --> |
|
|
|
<div class="intro-x dropdown relative mr-auto sm:mr-6" style="float:right;margin:13px 23px 0 0"> |
|
|
|
<div |
|
|
|
class="dropdown-toggle notification notification--bullet cursor-pointer" |
|
|
|
> |
|
|
|
<BellIcon class="notification__icon" style="margin-top:-3px" /> |
|
|
|
</div> |
|
|
|
<div class="notification-content pt-2 dropdown-box"> |
|
|
|
<div |
|
|
|
class="notification-content__box dropdown-box__content box" |
|
|
|
> |
|
|
|
<div class="notification-content__title">Notifications</div> |
|
|
|
<div |
|
|
|
v-for="(faker, fakerKey) in $_.take($f(), 5)" |
|
|
|
:key="fakerKey" |
|
|
|
class="cursor-pointer relative flex items-center" |
|
|
|
:class="{ 'mt-5': fakerKey }" |
|
|
|
> |
|
|
|
<div class="w-12 h-12 flex-none image-fit mr-1"> |
|
|
|
<img |
|
|
|
alt="" |
|
|
|
class="rounded-full" |
|
|
|
:src="require(`@/assets/images/${faker.photos[0]}`)" |
|
|
|
/> |
|
|
|
<div |
|
|
|
class="w-3 h-3 bg-theme-9 absolute right-0 bottom-0 rounded-full border-2 border-white" |
|
|
|
></div> |
|
|
|
</div> |
|
|
|
<div class="ml-2 overflow-hidden"> |
|
|
|
<div class="flex items-center"> |
|
|
|
<a href="javascript:;" class="font-medium truncate mr-5"> |
|
|
|
{{ faker.users[0].name }} |
|
|
|
</a> |
|
|
|
<div class="text-xs text-gray-500 ml-auto whitespace-no-wrap"> |
|
|
|
{{ faker.times[0] }} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="w-full truncate text-gray-600"> |
|
|
|
{{ faker.news[0].short_content }} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<!-- END: Breadcrumb --> |
|
|
|
<!-- BEGIN: Search --> |
|
|
|
<div class="intro-x relative mr-3 sm:mr-6"> |
|
|
|
<div class="intro-x relative mr-3 sm:mr-6 " style="float:right"> |
|
|
|
<div class="search hidden sm:block"> |
|
|
|
<input |
|
|
|
type="text" |
|
|
@@ -20,11 +124,12 @@ |
|
|
|
/> |
|
|
|
<SearchIcon class="search__icon" /> |
|
|
|
</div> |
|
|
|
<a class="notification sm:hidden" href> |
|
|
|
<SearchIcon class="notification__icon" /> |
|
|
|
<a class="notification sm:hidden" href> |
|
|
|
<SearchIcon class="notification__icon" style="margin-top:8px" /> |
|
|
|
</a> |
|
|
|
<div class="search-result" :class="{ show: searchDropdown }"> |
|
|
|
<div class="search-result__content"> |
|
|
|
|
|
|
|
<div class="search-result__content"> |
|
|
|
<div class="search-result__content__title">Pages</div> |
|
|
|
<div class="mb-5"> |
|
|
|
<a href class="flex items-center"> |
|
|
@@ -94,114 +199,12 @@ |
|
|
|
{{ faker.products[0].category }} |
|
|
|
</div> |
|
|
|
</a> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<!-- END: Search --> |
|
|
|
<!-- BEGIN: Notifications --> |
|
|
|
<div class="intro-x dropdown relative mr-auto sm:mr-6"> |
|
|
|
<div |
|
|
|
class="dropdown-toggle notification notification--bullet cursor-pointer" |
|
|
|
> |
|
|
|
<BellIcon class="notification__icon" /> |
|
|
|
</div> |
|
|
|
<div class="notification-content pt-2 dropdown-box"> |
|
|
|
<div |
|
|
|
class="notification-content__box dropdown-box__content box" |
|
|
|
> |
|
|
|
<div class="notification-content__title">Notifications</div> |
|
|
|
<div |
|
|
|
v-for="(faker, fakerKey) in $_.take($f(), 5)" |
|
|
|
:key="fakerKey" |
|
|
|
class="cursor-pointer relative flex items-center" |
|
|
|
:class="{ 'mt-5': fakerKey }" |
|
|
|
> |
|
|
|
<div class="w-12 h-12 flex-none image-fit mr-1"> |
|
|
|
<img |
|
|
|
alt="" |
|
|
|
class="rounded-full" |
|
|
|
:src="require(`@/assets/images/${faker.photos[0]}`)" |
|
|
|
/> |
|
|
|
<div |
|
|
|
class="w-3 h-3 bg-theme-9 absolute right-0 bottom-0 rounded-full border-2 border-white" |
|
|
|
></div> |
|
|
|
</div> |
|
|
|
<div class="ml-2 overflow-hidden"> |
|
|
|
<div class="flex items-center"> |
|
|
|
<a href="javascript:;" class="font-medium truncate mr-5"> |
|
|
|
{{ faker.users[0].name }} |
|
|
|
</a> |
|
|
|
<div class="text-xs text-gray-500 ml-auto whitespace-no-wrap"> |
|
|
|
{{ faker.times[0] }} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="w-full truncate text-gray-600"> |
|
|
|
{{ faker.news[0].short_content }} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<!-- END: Notifications --> |
|
|
|
<!-- BEGIN: Account Menu --> |
|
|
|
<div class="intro-x dropdown w-8 h-8 relative"> |
|
|
|
<div |
|
|
|
class="dropdown-toggle w-8 h-8 rounded-full overflow-hidden shadow-lg image-fit zoom-in" |
|
|
|
> |
|
|
|
<img |
|
|
|
alt="" |
|
|
|
:src="require(`@/assets/images/${$f()[9].photos[0]}`)" |
|
|
|
/> |
|
|
|
</div> |
|
|
|
<div class="dropdown-box w-56"> |
|
|
|
<div |
|
|
|
class="dropdown-box__content box bg-theme-38 text-white" |
|
|
|
> |
|
|
|
<div class="p-4 border-b border-theme-40"> |
|
|
|
<div class="font-medium">{{ $f()[0].users[0].name }}</div> |
|
|
|
<div class="text-xs text-theme-41"> |
|
|
|
{{ $f()[0].jobs[0] }} |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="p-2"> |
|
|
|
<a |
|
|
|
href |
|
|
|
class="flex items-center block p-2 transition duration-300 ease-in-out hover:bg-theme-1:bg-dark-3 rounded-md" |
|
|
|
> |
|
|
|
<UserIcon class="w-4 h-4 mr-2" /> Profile |
|
|
|
</a> |
|
|
|
<a |
|
|
|
href |
|
|
|
class="flex items-center block p-2 transition duration-300 ease-in-out hover:bg-theme-1:bg-dark-3 rounded-md" |
|
|
|
> |
|
|
|
<EditIcon class="w-4 h-4 mr-2" /> Add Account |
|
|
|
</a> |
|
|
|
<a |
|
|
|
href |
|
|
|
class="flex items-center block p-2 transition duration-300 ease-in-out hover:bg-theme-1:bg-dark-3 rounded-md" |
|
|
|
> |
|
|
|
<LockIcon class="w-4 h-4 mr-2" /> errerrrReset Password |
|
|
|
</a> |
|
|
|
<a |
|
|
|
href |
|
|
|
class="flex items-center block p-2 transition duration-300 ease-in-out hover:bg-theme-1:bg-dark-3 rounded-md" |
|
|
|
> |
|
|
|
<HelpCircleIcon class="w-4 h-4 mr-2" /> Help |
|
|
|
</a> |
|
|
|
</div> |
|
|
|
<div class="p-2 border-t border-theme-40"> |
|
|
|
<a |
|
|
|
href |
|
|
|
class="flex items-center block p-2 transition duration-300 ease-in-out hover:bg-theme-1:bg-dark-3 rounded-md" |
|
|
|
> |
|
|
|
<ToggleRightIcon class="w-4 h-4 mr-2" /> |
|
|
|
Logout |
|
|
|
</a> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<!-- END: Account Menu --> |
|
|
|
</div> |
|
|
|
<!-- END: Top Bar --> |
|
|
@@ -224,3 +227,11 @@ export default { |
|
|
|
} |
|
|
|
}; |
|
|
|
</script> |
|
|
|
|
|
|
|
|
|
|
|
<style scoped> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</style> |