修改报错

This commit is contained in:
HHS
2025-06-03 10:47:38 +08:00
parent 31ab2be9b4
commit 490d8e9077
10 changed files with 17 additions and 48 deletions

View File

@@ -72,15 +72,15 @@ const switchTab = (url) => {
width: 104rpx; width: 104rpx;
height: 104rpx; height: 104rpx;
} }
text { .tab-text { // 修改前可能是直接用的 text 选择器
font-size: 22rpx; font-size: 22rpx;
color: #a1a1a1; color: #a1a1a1;
} }
&.active { &.active {
.icon, .icon,
text { .tab-text { // 修改前可能是直接用的 text 选择器
color: #07c160; // 激活状态的颜色 color: #07c160;
} }
} }
} }

View File

@@ -35,7 +35,7 @@
<!-- 添加空状态展示 --> <!-- 添加空状态展示 -->
<view v-if="filteredList.length === 0" class="empty-state"> <view v-if="filteredList.length === 0" class="empty-state">
<image src="/static/images/empty.png" class="empty-image"></image>
<text class="empty-text">暂无认养记录</text> <text class="empty-text">暂无认养记录</text>
</view> </view>
</scroll-view> </scroll-view>
@@ -227,11 +227,7 @@ const formatDateTime = (dateString) => {
justify-content: center; justify-content: center;
padding: 100rpx 0; padding: 100rpx 0;
.empty-image {
width: 200rpx;
height: 200rpx;
margin-bottom: 30rpx;
}
.empty-text { .empty-text {
font-size: 28rpx; font-size: 28rpx;

View File

@@ -7,7 +7,7 @@
<scroll-view scroll-y="true" class="device-list"> <scroll-view scroll-y="true" class="device-list">
<view v-if="devices.length === 0" class="empty-container"> <view v-if="devices.length === 0" class="empty-container">
<image src="/static/images/empty.png" class="empty-image"></image>
<text class="empty-text">暂无设备数据</text> <text class="empty-text">暂无设备数据</text>
</view> </view>
<view <view
@@ -225,11 +225,7 @@ const handleUnbind = (id) => {
justify-content: center; justify-content: center;
height: 60vh; height: 60vh;
.empty-image {
width: 300rpx;
height: 300rpx;
margin-bottom: 40rpx;
}
.empty-text { .empty-text {
font-size: 28rpx; font-size: 28rpx;

View File

@@ -10,7 +10,7 @@
<scroll-view scroll-y="true" class="scroll-view"> <scroll-view scroll-y="true" class="scroll-view">
<view class="swiper-content"> <view class="swiper-content">
<swiper class="swiper" circular indicator-active-color="#ffffff" indicator-dots="true" autoplay="true" interval="2000" duration="500"> <swiper class="swiper" circular indicator-active-color="#ffffff" indicator-dots="true" autoplay="true" interval="2000" duration="500">
<swiper-item class="swiper-item" v-for="item in swiperList" :key="item"> <swiper-item class="swiper-item" v-for="(item,index) in swiperList" :key="index">
<image :src=item.url class="swiper-image" mode=""></image> <image :src=item.url class="swiper-image" mode=""></image>
</swiper-item> </swiper-item>

View File

@@ -11,7 +11,7 @@
<view class="container"> <view class="container">
<scroll-view scroll-y="true" class="scroll-content"> <scroll-view scroll-y="true" class="scroll-content">
<view v-if="messageList.length === 0" class="empty-tip"> <view v-if="messageList.length === 0" class="empty-tip">
<image src="/static/images/empty.png" mode="aspectFit"></image>
<text>暂无消息数据</text> <text>暂无消息数据</text>
</view> </view>
<view <view
@@ -227,11 +227,7 @@ const formatDateTime = (dateString) => {
justify-content: center; justify-content: center;
height: 500rpx; height: 500rpx;
image {
width: 200rpx;
height: 200rpx;
margin-bottom: 30rpx;
}
text { text {
font-size: 28rpx; font-size: 28rpx;

View File

@@ -35,7 +35,7 @@
<!-- 添加空状态展示 --> <!-- 添加空状态展示 -->
<view v-if="filteredList.length === 0" class="empty-state"> <view v-if="filteredList.length === 0" class="empty-state">
<image src="/static/images/empty.png" class="empty-image"></image>
<text class="empty-text">暂无订单记录</text> <text class="empty-text">暂无订单记录</text>
</view> </view>
</scroll-view> </scroll-view>
@@ -230,11 +230,7 @@ const formatDateTime = (dateString) => {
justify-content: center; justify-content: center;
padding: 100rpx 0; padding: 100rpx 0;
.empty-image {
width: 200rpx;
height: 200rpx;
margin-bottom: 30rpx;
}
.empty-text { .empty-text {
font-size: 28rpx; font-size: 28rpx;

View File

@@ -476,11 +476,7 @@ const deleteItem = async (item) => {
justify-content: center; justify-content: center;
height: 60vh; height: 60vh;
.empty-image {
width: 300rpx;
height: 300rpx;
margin-bottom: 40rpx;
}
.empty-text { .empty-text {
font-size: 28rpx; font-size: 28rpx;

View File

@@ -9,7 +9,7 @@
<scroll-view scroll-y="true" class="scroll-view" enable-flex> <scroll-view scroll-y="true" class="scroll-view" enable-flex>
<view class="scroll-content"> <view class="scroll-content">
<view class="goods-item" v-for="item in shoppingList" :key="item" @click="shopDetails(item)"> <view class="goods-item" v-for="(item,index) in shoppingList" :key="index" @click="shopDetails(item)">
<image :src="item.imgUrl" mode="" class="goods-image"></image> <image :src="item.imgUrl" mode="" class="goods-image"></image>
<view class="goods-title" >{{item.name}}</view> <view class="goods-title" >{{item.name}}</view>
<view class="goods-info"> <view class="goods-info">

View File

@@ -16,7 +16,7 @@
<!-- 空状态提示 --> <!-- 空状态提示 -->
<view v-if="smartBeeList.length === 0" class="empty-state"> <view v-if="smartBeeList.length === 0" class="empty-state">
<image src="/static/images/empty.png" class="empty-image"></image>
<text class="empty-text">暂无相关内容</text> <text class="empty-text">暂无相关内容</text>
</view> </view>
</scroll-view> </scroll-view>
@@ -102,12 +102,7 @@ const getSmartBeeList= async () => {
justify-content: center; justify-content: center;
padding: 100rpx 0; padding: 100rpx 0;
.empty-image {
width: 200rpx;
height: 200rpx;
margin-bottom: 30rpx;
}
.empty-text { .empty-text {
font-size: 28rpx; font-size: 28rpx;
color: #999; color: #999;

View File

@@ -21,7 +21,7 @@
<!-- 空状态提示 --> <!-- 空状态提示 -->
<view v-if="surveyList.length === 0" class="empty-state"> <view v-if="surveyList.length === 0" class="empty-state">
<image src="/static/images/empty.png" class="empty-image"></image>
<text class="empty-text">暂无问卷调查</text> <text class="empty-text">暂无问卷调查</text>
</view> </view>
</scroll-view> </scroll-view>
@@ -141,12 +141,6 @@ const getQuestionList = async () => {
justify-content: center; justify-content: center;
padding: 100rpx 0; padding: 100rpx 0;
.empty-image {
width: 200rpx;
height: 200rpx;
margin-bottom: 30rpx;
}
.empty-text { .empty-text {
font-size: 28rpx; font-size: 28rpx;
color: #999; color: #999;