feat: 首页的欢迎UI调整
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
<template>
|
||||
<view class="top-bg">
|
||||
<image src="/static/top_bg_icon.png" mode="aspectFit" class="top-bg-img"></image>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
@@ -12,6 +11,7 @@
|
||||
width: 100%;
|
||||
height: 270px;
|
||||
overflow: hidden;
|
||||
background: linear-gradient( 180deg, #42ADF9 0%, #6CD1FF 51%, #E9F3F7 99%);
|
||||
.top-bg-img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<view class="nav-bar">
|
||||
<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>
|
||||
|
||||
<uni-drawer ref="showLeft" mode="left" :width="320">
|
||||
|
||||
@@ -1,14 +1,9 @@
|
||||
<template>
|
||||
<view class="top-bg-content">
|
||||
<view class="top-item1" >
|
||||
<view class="top-item" >
|
||||
<!-- :style="backgroundStyle" -->
|
||||
<view class="top-item1-left">
|
||||
<image :src="initPageImages.welcomeImageUrl"></image>
|
||||
<text>{{ currentDate }} 多云 -3~6℃ dd </text>
|
||||
</view>
|
||||
<view class="top-item1-right">
|
||||
<image :src="initPageImages.logoImageUrl"></image>
|
||||
</view>
|
||||
<image class="top-item-left" :src="initPageImages.welcomeImageUrl"></image>
|
||||
<image class="top-item-right" :src="initPageImages.logoImageUrl"></image>
|
||||
</view>
|
||||
<ChatCardAI :text='welcomeContent'/>
|
||||
</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(() => {
|
||||
return {
|
||||
@@ -60,40 +48,23 @@
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.top-item1 {
|
||||
.top-item {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: space-between;
|
||||
padding: 0 32px 0 32px;
|
||||
margin-bottom: -6px;
|
||||
|
||||
.top-item1-left {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: flex-end;
|
||||
|
||||
image {
|
||||
width: 118px;
|
||||
height: 52px;
|
||||
}
|
||||
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;
|
||||
}
|
||||
}
|
||||
align-items: center;
|
||||
padding: 0 32px;
|
||||
margin-bottom: -8px;
|
||||
}
|
||||
|
||||
.top-item-left {
|
||||
width: 118px;
|
||||
height: 52px;
|
||||
}
|
||||
|
||||
.top-item-right {
|
||||
width: 130px;
|
||||
height: 130px;
|
||||
margin: -12px 0;
|
||||
}
|
||||
</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