From 54bb26dd12dacbbd2bdf006ed8ca3e28f45fcf7d Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期三, 11 三月 2026 13:38:53 +0800
Subject: [PATCH] 进销存升级app 1.将首页与工作台分开,添加新首页样式 2.首页饼状图不展示修改
---
src/pages/index.vue | 124 ++++++++++++++++++++++++++++++++++++++++-
src/components/qiun-data-charts/components/qiun-data-charts/qiun-data-charts.vue | 5 +
2 files changed, 124 insertions(+), 5 deletions(-)
diff --git a/src/components/qiun-data-charts/components/qiun-data-charts/qiun-data-charts.vue b/src/components/qiun-data-charts/components/qiun-data-charts/qiun-data-charts.vue
index bdcbb9f..96734e8 100644
--- a/src/components/qiun-data-charts/components/qiun-data-charts/qiun-data-charts.vue
+++ b/src/components/qiun-data-charts/components/qiun-data-charts/qiun-data-charts.vue
@@ -869,7 +869,10 @@
const ctx = cfu.option[cid].context;
if(typeof ctx === "object" && !!!cfu.option[cid].update){
ctx.clearRect(0, 0, this.cWidth*this.pixel, this.cHeight*this.pixel);
- ctx.draw();
+ // 鏃х増 canvas 闇� draw() 涓婂睆锛沜anvas2d 鐨� CanvasRenderingContext2D 鏃� draw 鏂规硶
+ if (typeof ctx.draw === 'function') {
+ ctx.draw();
+ }
}
}
},
diff --git a/src/pages/index.vue b/src/pages/index.vue
index 8f7a18a..0c17b0f 100644
--- a/src/pages/index.vue
+++ b/src/pages/index.vue
@@ -1,8 +1,16 @@
<template>
<view class="page">
- <view class="safe-top" />
-
<scroll-view class="scroll" scroll-y>
+ <!-- 椤堕儴 Banner锛氭斁鍏ユ粴鍔ㄥ尯鍩燂紝闅忛〉闈竴璧锋粴鍔紝涓嶅浐瀹氬湪椤堕儴 -->
+ <view class="hero-section">
+ <view class="bg-img">
+ <view class="hero-content">
+ <!-- 棰勭暀锛氬鍚庣画闇�瑕佸彲鍦ㄦ鏀� logo 鎴栫畝鐭彁绀� -->
+ </view>
+ <view class="hero-wave"></view>
+ </view>
+ </view>
+
<!-- 蹇嵎鍏ュ彛 -->
<view class="quick-section">
<up-grid :border="false" col="4">
@@ -451,8 +459,116 @@
<style scoped lang="scss">
.page {
- min-height: 100vh;
- background: #f5f6fa;
+ background: #f6f7fb;
+ min-height: 100vh;
+ // padding: 12px;
+ /* 涓烘墍鏈夎澶囪缃熀纭�padding-top锛堝寘鍚畨鍏ㄥ尯锛� */
+ padding-top: calc(env(safe-area-inset-top) + 30px);
+ position: relative;
+
+ /* 涓哄畨鍗撹澶囪缃洿澶х殑椤堕儴鍐呰竟璺� */
+ /* #ifdef APP-PLUS && !MP && !H5 */
+ padding-top: calc(env(safe-area-inset-top) + 45px);
+ /* #endif */
+
+ /* H5鍜屽皬绋嬪簭骞冲彴鐨勯�氱敤鏍峰紡 */
+ /* #ifdef H5 || MP */
+ padding-top: calc(env(safe-area-inset-top) + 30px);
+ /* #endif */
+ &::before {
+ content: "";
+ position: fixed;
+ top: 0;
+ left: 0;
+ right: 0;
+ bottom: 0;
+ background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="24" height="24" patternUnits="userSpaceOnUse"><circle cx="12" cy="12" r="1" fill="rgba(41, 121, 255, 0.02)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
+ pointer-events: none;
+ z-index: -1;
+ }
+
+ &::after {
+ content: "";
+ position: fixed;
+ top: 0;
+ left: 0;
+ right: 0;
+ bottom: 0;
+ background: radial-gradient(
+ circle at 20% 80%,
+ rgba(41, 121, 255, 0.02) 0%,
+ transparent 55%
+ ),
+ radial-gradient(
+ circle at 80% 20%,
+ rgba(156, 39, 176, 0.015) 0%,
+ transparent 55%
+ );
+ pointer-events: none;
+ z-index: -1;
+ }
+}
+.hero-section {
+ margin: 0 12px;
+ margin-bottom: 12px;
+ animation: fadeInUp 0.6s ease-out 0.1s both;
+}
+
+.bg-img {
+ width: 100%;
+ height: 9.25rem;
+ background-image: url("../static/images/banner/backview.png");
+ background-size: cover;
+ border-radius: 14px;
+ position: relative;
+ overflow: hidden;
+ box-shadow: 0 10px 26px rgba(17, 24, 39, 0.08);
+
+ &::before {
+ content: "";
+ position: absolute;
+ top: -50%;
+ left: -50%;
+ width: 200%;
+ height: 200%;
+ background: conic-gradient(
+ from 0deg,
+ transparent,
+ rgba(255, 255, 255, 0.1),
+ transparent,
+ rgba(255, 255, 255, 0.05),
+ transparent
+ );
+ animation: rotate 20s linear infinite;
+ }
+
+ &::after {
+ content: "";
+ position: absolute;
+ top: 0;
+ right: 0;
+ width: 7.5rem;
+ height: 7.5rem;
+ background: radial-gradient(
+ circle,
+ rgba(255, 255, 255, 0.15) 0%,
+ transparent 70%
+ );
+ border-radius: 50%;
+ transform: translate(2.5rem, -2.5rem);
+ }
+}
+
+.hero-content {
+ position: relative;
+ z-index: 1;
+
+ padding: 14px 14px 18px 14px;
+ margin: 0 12px;
+ height: 100%;
+}
+.hero-wave {
+ height: 2.75rem;
}
.safe-top {
--
Gitblit v1.9.3