From fb58f708f07484b490a13f45cbc0d88c2189af6a Mon Sep 17 00:00:00 2001
From: zhaoxing <zhaoxing@shsening.com>
Date: 星期四, 18 五月 2023 16:22:14 +0800
Subject: [PATCH] 样式更新
---
pages/index/write.vue | 24 +++++++++++++++++++-----
pages/index/home.vue | 21 ++++++++++++++++-----
pages/tab/assistant.vue | 3 ---
static/home_bg.jpg | 0
4 files changed, 35 insertions(+), 13 deletions(-)
diff --git a/pages/index/home.vue b/pages/index/home.vue
index af58e35..8425105 100755
--- a/pages/index/home.vue
+++ b/pages/index/home.vue
@@ -1,13 +1,13 @@
<template>
- <view>
+ <view class="home-bg">
<view class="margin-top-xl">
- <view v-if="config.site_title" class="flex align-center justify-center flex-direction padding margin-top-lg">
+ <view v-if="config.site_title" class="flex align-center justify-center flex-direction padding">
<image v-if="config.site_title" :src="main_model.icon ? `${setting_data.base_url+main_model.icon}` : ''" mode="aspectFill"
style="background-color: #f4f5f6;width: 160rpx;height: 160rpx;" class="round"></image>
- <view class="text-bold text-xxl text-cyan padding-tb"> {{ main_model.title ? main_model.title : '涓撲笟鐗�' }} </view>
- <view style="width: calc(100vw - 60rpx);" class="padding-bottom" v-if="config.home_notice">
+ <view class="text-bold text-xxl padding-tb"> {{ main_model.title ? main_model.title : '涓撲笟鐗�' }} </view>
+ <!-- <view style="width: calc(100vw - 60rpx);" class="padding-bottom" v-if="config.home_notice">
<u-notice-bar :text="config.home_notice" mode="closable"></u-notice-bar>
- </view>
+ </view> -->
</view>
</view>
<view class="flex justify-center align-center flex-direction">
@@ -202,6 +202,17 @@
<style lang="scss">
@import url("@/static/style/color-ui.css");
+ .home-bg {
+ background: url('@/static/home_bg.jpg') #ecf4fd no-repeat;
+ background-size: 100% auto;
+ background-position: 0 -32px;
+ box-sizing: border-box;
+ padding-top: 144px;
+ }
+
+ .margin-top-xl{
+ margin: 0;
+ }
.chat-button{
background: #302cd9 !important;
color: #fff;
diff --git a/pages/index/write.vue b/pages/index/write.vue
index aa4600a..4a9f8c2 100755
--- a/pages/index/write.vue
+++ b/pages/index/write.vue
@@ -1,5 +1,5 @@
<template>
- <view>
+ <view class="home-bg">
<!-- #ifndef H5 -->
<u-navbar placeholder title="AI鍒涗綔鏁欏">
</u-navbar>
@@ -280,19 +280,29 @@
}
</script>
-<style lang="scss">
+<style lang="scss" scoped>
@import url("@/static/style/color-ui.css");
+
+ .home-bg {
+ background: url('@/static/home_bg.jpg') #ecf4fd no-repeat;
+ background-size: 100% auto;
+ background-position: 0 -32px;
+ box-sizing: border-box;
+ padding-top: 144px;
+ }
.input-text{
border-radius: 16rpx;
background: #fff;
- border: 2rpx solid #607389;
+ // border: 2rpx solid #607389;
+ border: none;
padding: 20rpx 24rpx !important;
margin-bottom: 20rpx;
color: #fff;
+ box-shadow: 0 4px 6px rgba(0, 0, 0, .1);
}
.text-title{
- color: #607389;
+ color: #222;
font-size: 36rpx;
font-weight: 500;
}
@@ -302,10 +312,12 @@
border-radius: 16rpx;
border: none;
overflow: hidden;
+ box-shadow: 0 4px 6px rgba(0, 0, 0, .1);
.u-textarea--radius{
border-radius: 16rpx 16rpx 0 0;
padding: 24rpx;
+ border: none;
}
.btn{
@@ -378,11 +390,13 @@
}
.anser-area {
- color: #93949D;
+ color: #303133;
background: #fff;
border-radius: 16rpx;
padding: 24rpx;
min-height: 120px;
+ margin-bottom: 15px;
+ box-shadow: 0 4px 6px rgba(0, 0, 0, .1);
}
.directask .askaquestion {
diff --git a/pages/tab/assistant.vue b/pages/tab/assistant.vue
index 05f4725..599f280 100755
--- a/pages/tab/assistant.vue
+++ b/pages/tab/assistant.vue
@@ -325,7 +325,4 @@
width: 100vw;
height: calc(100vw * 0.324);
}
- page {
- background: #fff;
- }
</style>
\ No newline at end of file
diff --git a/static/home_bg.jpg b/static/home_bg.jpg
new file mode 100644
index 0000000..89e2b5c
--- /dev/null
+++ b/static/home_bg.jpg
Binary files differ
--
Gitblit v1.9.1