From 3a4ec8da75f6f9eaf9571334319388455c61c65b Mon Sep 17 00:00:00 2001
From: zhaoxing <zhaoxing@shsening.com>
Date: 星期四, 11 五月 2023 15:52:48 +0800
Subject: [PATCH] 修改样式
---
pages/index/home.vue | 23 ++++++++++++-----------
1 files changed, 12 insertions(+), 11 deletions(-)
diff --git a/pages/index/home.vue b/pages/index/home.vue
index 56acc7d..35e7d6d 100755
--- a/pages/index/home.vue
+++ b/pages/index/home.vue
@@ -1,21 +1,21 @@
<template>
<view>
<view class="margin-top-xl">
- <view v-if="config.site_title" class="flex align-center justify-center flex-direction padding-xl margin-top-lg">
+ <view v-if="config.site_title" class="flex align-center justify-center flex-direction padding margin-top-lg">
<image v-if="config.site_title" :src="main_model.icon ? `http://ai.shsening.com${main_model.icon}` : ''" mode="aspectFill"
style="background-color: #f4f5f6;width: 160rpx;height: 160rpx;" class="round"></image>
- <view class="text-bold text-xxl text-orange padding-tb"> {{ main_model.title ? main_model.title : '涓撲笟鐗�' }} </view>
- <view style="width: 650rpx;" class="padding-bottom" v-if="config.home_notice">
+ <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">
<u-notice-bar :text="config.home_notice" mode="closable"></u-notice-bar>
</view>
- <view class="cu-card bg-gradual-blue padding shadow-blur radius text-lg"
+ <view class="cu-card bg-gradual-blue padding radius text-lg"
style="line-height: 1.5;text-align: justify;">
{{ main_model.description ? main_model.description : '浣犲ソ锛屾杩庝綋楠屾櫤璐㈠皬灞嬶紒鎴戞槸浜哄伐鏅鸿兘鑳栧ぇ娴凤紝骞剁粡杩囪嚦浠婃渶鏂扮殑璐㈢◣娉曞緥鏂归潰涓撻棬璁粌锛屽洜姝ゆ垜鍙互鍥炵瓟浣犲湪璐㈢◣棰嗗煙鎵�鏈夌殑闂锛屽鎮ㄦ湁浣跨敤闂锛屽彲浠ユ煡闃呬釜浜轰腑蹇�-浣跨敤鎸囧崡锛�' }}
</view>
</view>
</view>
<view class="flex justify-center align-center flex-direction">
- <button @click="toChat" style="width: 650rpx;height: 100rpx;" class="cu-btn lines-orange text-bold round">
+ <button @click="toChat" style="width: calc(100vw - 60rpx); height: 100rpx;" class="cu-btn lines-cyan text-bold round">
寮�濮嬪挩璇� (浣檣{num}}娆�) </button>
</view>
<!-- <text>{{ main_model.icon ? `http://ai.shsening.com${main_model.icon}` : '' }}</text> -->
@@ -149,7 +149,7 @@
<style lang="scss">
.tool {
- width: 90%;
+ width: calc(100vw - 60rpx);
margin: 15rpx auto;
.header {
@@ -165,22 +165,23 @@
justify-content: space-between;
.item {
- width: 30%;
+ width: calc(calc(100vw - 60rpx - 30rpx) / 3);
display: flex;
flex-direction: column;
align-items: center;
- background-color: #F0FAF8;
- margin: 15rpx 0rpx;
+ background-color: #30324f;
+ margin: 12rpx 0rpx;
padding: 30rpx 0rpx;
border-radius: 10rpx;
.title {
- color: #1B2B20;
+ color: #fff;
+ font-size: 28rpx;
margin-top: 15rpx;
}
.desc {
- color: #67776C;
+ color: #93949d;
font-size: 24rpx;
}
}
--
Gitblit v1.9.1