feat: 首页的欢迎UI调整
This commit is contained in:
@@ -1,6 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="top-bg">
|
<view class="top-bg">
|
||||||
<image src="/static/top_bg_icon.png" mode="aspectFit" class="top-bg-img"></image>
|
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -12,6 +11,7 @@
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
height: 270px;
|
height: 270px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
background: linear-gradient( 180deg, #42ADF9 0%, #6CD1FF 51%, #E9F3F7 99%);
|
||||||
.top-bg-img {
|
.top-bg-img {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="nav-bar">
|
<view class="nav-bar">
|
||||||
<view class="nav-item" @click="showDrawer('showLeft')">
|
<view class="nav-item" @click="showDrawer('showLeft')">
|
||||||
<image class="nav-item-icon" src="/static/drawer_icon.png" mode="aspectFit"></image>
|
<uni-icons type="bars" size="24" color="#333"></uni-icons>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<uni-drawer ref="showLeft" mode="left" :width="320">
|
<uni-drawer ref="showLeft" mode="left" :width="320">
|
||||||
|
|||||||
@@ -1,14 +1,9 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="top-bg-content">
|
<view class="top-bg-content">
|
||||||
<view class="top-item1" >
|
<view class="top-item" >
|
||||||
<!-- :style="backgroundStyle" -->
|
<!-- :style="backgroundStyle" -->
|
||||||
<view class="top-item1-left">
|
<image class="top-item-left" :src="initPageImages.welcomeImageUrl"></image>
|
||||||
<image :src="initPageImages.welcomeImageUrl"></image>
|
<image class="top-item-right" :src="initPageImages.logoImageUrl"></image>
|
||||||
<text>{{ currentDate }} 多云 -3~6℃ dd </text>
|
|
||||||
</view>
|
|
||||||
<view class="top-item1-right">
|
|
||||||
<image :src="initPageImages.logoImageUrl"></image>
|
|
||||||
</view>
|
|
||||||
</view>
|
</view>
|
||||||
<ChatCardAI :text='welcomeContent'/>
|
<ChatCardAI :text='welcomeContent'/>
|
||||||
</view>
|
</view>
|
||||||
@@ -33,13 +28,6 @@
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
// 获取当前日期
|
|
||||||
const today = new Date();
|
|
||||||
const currentDate = ref(today.getFullYear() + '/' +
|
|
||||||
((today.getMonth() + 1) < 10 ? '0' : '') + (today.getMonth() + 1) + '/' +
|
|
||||||
(today.getDate() < 10 ? '0' : '') + today.getDate());
|
|
||||||
|
|
||||||
|
|
||||||
// 计算背景样式
|
// 计算背景样式
|
||||||
const backgroundStyle = computed(() => {
|
const backgroundStyle = computed(() => {
|
||||||
return {
|
return {
|
||||||
@@ -60,40 +48,23 @@
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
}
|
}
|
||||||
|
|
||||||
.top-item1 {
|
.top-item {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
padding: 0 32px 0 32px;
|
align-items: center;
|
||||||
margin-bottom: -6px;
|
padding: 0 32px;
|
||||||
|
margin-bottom: -8px;
|
||||||
|
}
|
||||||
|
|
||||||
.top-item1-left {
|
.top-item-left {
|
||||||
display: flex;
|
width: 118px;
|
||||||
flex-direction: column;
|
height: 52px;
|
||||||
justify-content: flex-end;
|
}
|
||||||
|
|
||||||
image {
|
.top-item-right {
|
||||||
width: 118px;
|
width: 130px;
|
||||||
height: 52px;
|
height: 130px;
|
||||||
}
|
margin: -12px 0;
|
||||||
text {
|
|
||||||
font-family: PingFang SC, PingFang SC;
|
|
||||||
font-weight: 400;
|
|
||||||
font-size: 12px;
|
|
||||||
color: #1E4C69;
|
|
||||||
line-height: 24px;
|
|
||||||
text-align: justify;
|
|
||||||
font-style: normal;
|
|
||||||
text-transform: none;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.top-item1-right {
|
|
||||||
image {
|
|
||||||
width: 130px;
|
|
||||||
height: 130px;
|
|
||||||
margin-bottom: -20px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
Binary file not shown.
|
Before Width: | Height: | Size: 1.7 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 51 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 10 KiB |
BIN
static/logo.png
BIN
static/logo.png
Binary file not shown.
|
Before Width: | Height: | Size: 3.9 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 164 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 30 KiB |
Reference in New Issue
Block a user