12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
- <template>
- <view class="home-container">
- <view class="top-bg"> </view>
- <view class="header-nav">
- <text class="navbar-title">首页</text>
- <view
- class="navbar-right"
- @click="$u.route('pages/com/msgNotification/index')"
- >
- <u-icon color="#436FF6" size="14" name="bell-fill"></u-icon>
- <view class="red-spot"></view>
- </view>
- </view>
- <oftenModular title="常用功能" :icon="cygn" />
- <toDoList />
- </view>
- </template>
- <script>
- import oftenModular from '@/pages/home/oftenModular.vue';
- import cygn from '@/static/images/home/cygn.png';
- import toDoList from './toDoList.vue';
- export default {
- name: 'home',
- components: {
- oftenModular,
- toDoList,
- },
- data() {
- return {
- cygn,
- };
- },
- };
- </script>
- <style scoped lang="scss">
- .home-container {
- display: flex;
- flex-direction: column;
- position: relative;
- height: 100%;
- overflow: hidden;
- padding: 0 16px;
- background-color: #f8f8f8;
- .top-bg {
- position: absolute;
- top: 0;
- left: 0;
- background: url('~@/static/images/home/header-bg.png') no-repeat;
- background-size: 100% 100%;
- height: 434rpx;
- width: 100%;
- }
- .header-nav {
- display: flex;
- justify-content: center;
- align-items: center;
- margin: 60rpx 0;
- position: relative;
- .navbar-title {
- width: 356rpx;
- text-align: center;
- color: #fff;
- font-size: 18px;
- }
- .navbar-right {
- position: absolute;
- padding: 10rpx;
- border-radius: 50%;
- background-color: #fff;
- right: 0;
- .red-spot {
- position: absolute;
- bottom: 0;
- right: 0;
- background-color: #f96464;
- width: 16rpx;
- height: 16rpx;
- border-radius: 50%;
- }
- }
- }
- }
- </style>
|