Преглед на файлове

fix:工作台修复

Co-authored-by: Copilot <copilot@github.com>
liujt преди 1 месец
родител
ревизия
9c962c8417
променени са 3 файла, в които са добавени 107 реда и са изтрити 6 реда
  1. 100 0
      pages/index/CellTip.vue
  2. 6 5
      pages/index/index.scss
  3. 1 1
      pages/index/index.vue

+ 100 - 0
pages/index/CellTip.vue

@@ -0,0 +1,100 @@
+<template>
+	<view class="">
+		<view class="position" v-if="cellType=='1'">
+			<text class="tag"></text>
+			<text class="titles" v-text="title"></text>
+			<slot></slot>
+		</view>
+		<view class="list-cell" v-if="cellType=='2'">
+			<text class="list-cell-span" >
+				<text v-text="title"></text>
+				<text class="num" v-if="num<=99" v-text="num"></text>
+				<text class="num" v-if="num>99">99+</text>
+			</text>
+			<slot></slot>
+		</view>
+	</view>
+	
+</template>
+
+<script>
+	export default {
+		name: "CellTip",
+		props:{
+			title:{
+				type:String,
+				default:''
+			},
+			num:{
+				type:[String, Number],
+				default:''
+			},
+			cellType:{
+				type:[String, Number],
+				default:'1'
+			}
+		},
+		data() {
+			return {
+
+			};
+		}
+	}
+</script>
+
+
+<style lang="scss" scoped>
+	.position {
+		position: relative;
+		padding: 16rpx 24rpx;
+		margin: 0 24rpx;
+		margin-top: 12rpx;
+		display: flex;
+		align-items: center;
+		// background-color: #e8e8e8;
+		font-size: $uni-font-size-base;
+		color: $uni-text-color;
+		.tag {
+			display: inline-block;
+			background-color: $j-primary-border-green;
+			width: 8rpx;
+			height: 32rpx;
+			border-radius: 4rpx;
+		}
+		.titles {
+			font-size: 32rpx;
+			font-weight: bold;
+			margin-left: 16rpx;
+		}
+	}
+	.list-cell{
+		position: relative;
+		padding: 0 20rpx;
+		background-color: #FFFFFF;
+		font-size: $uni-font-size-base;
+		color: $uni-text-regular-color;
+		.list-cell-span{
+			padding: 0 20rpx;
+			position: relative;
+			display: inline-block;
+			height: 76rpx;
+			line-height: 76rpx;
+			border-bottom: 1px solid $j-primary-border-green;
+		}
+		.num{
+			padding: 0 8rpx;
+			height: 40rpx;
+			line-height: 40rpx;
+			position: absolute;
+			top: 8rpx;
+			right: -50rpx;
+			display: inline-block;
+			transform: scale(0.7);
+			color: #FFFFFF;
+			background-color: $uni-color-error;
+			border-radius: 20rpx;
+			text-align: center;
+		}
+	}
+	
+</style>

+ 6 - 5
pages/index/index.scss

@@ -55,13 +55,14 @@ page {
 
 /* 内容区域 - 减少顶部空白 */
 .content-wrapper {
-	padding-top: calc(var(--status-bar-height) + 80rpx);
-	padding-bottom: env(safe-area-inset-bottom);
+	padding-top: 80rpx;
+	padding-bottom: 40rpx;
+	background-color: #f0f0f0;
 }
 
 /* 模块卡片容器 */
 .nav {
-	margin: 0 24rpx 24rpx;
+	margin: 0 24rpx;
 	background-color: $uni-bg-color;
 	border-radius: 16rpx;
 	box-shadow: 0 2rpx 16rpx rgba(0, 0, 0, 0.06);
@@ -88,14 +89,14 @@ page {
 			}
 
 			span {
-				font-size: 56rpx;
+				font-size: 60rpx;
 				color: $j-primary-border-green;
 				margin-bottom: 12rpx;
 				line-height: 1;
 			}
 
 			label {
-				font-size: 24rpx;
+				font-size: 30rpx;
 				color: $uni-text-color;
 				width: 90%;
 				text-align: center;

+ 1 - 1
pages/index/index.vue

@@ -251,7 +251,7 @@
 </template>
 
 <script>
-import CellTip from "@/components/CellTip.vue";
+import CellTip from "./CellTip.vue";
 import { statistics, qualityTodoByPda } from "@/api/myTicket";
 export default {
   components: {