1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495 |
- <template>
- <view class="recycle-container">
- <view class="recycle-title">回收站</view>
- <view v-if="items.length === 0" class="empty-box">
- <image src="/static/logo.png" class="empty-img" />
- <view class="empty-tip">暂无已删除内容</view>
- </view>
- <view v-else class="recycle-list">
- <view class="recycle-item" v-for="item in items" :key="item.id">
- <image :src="item.icon" class="item-icon" />
- <view class="item-info">
- <view class="item-title">{{ item.title }}</view>
- <view class="item-desc">{{ item.desc }}</view>
- </view>
- <button class="restore-btn">还原</button>
- </view>
- </view>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- items: [] // 可模拟 [{id:1,title:'文档A',desc:'2024-06-01删除',icon:'/static/logo.png'}]
- }
- }
- }
- </script>
- <style lang="scss">
- .recycle-container {
- min-height: 100vh;
- background: #f7f8fa;
- padding-bottom: 120rpx;
- }
- .recycle-title {
- text-align: center;
- font-size: 36rpx;
- font-weight: bold;
- color: #222;
- padding: 48rpx 0 32rpx 0;
- }
- .empty-box {
- display: flex;
- flex-direction: column;
- align-items: center;
- margin-top: 120rpx;
- }
- .empty-img {
- width: 160rpx;
- height: 160rpx;
- margin-bottom: 32rpx;
- opacity: 0.7;
- }
- .empty-tip {
- color: #bbb;
- font-size: 28rpx;
- }
- .recycle-list {
- margin: 0 24rpx;
- }
- .recycle-item {
- display: flex;
- align-items: center;
- background: #fff;
- border-radius: 16rpx;
- box-shadow: 0 4rpx 16rpx rgba(0,0,0,0.04);
- padding: 24rpx;
- margin-bottom: 24rpx;
- }
- .item-icon {
- width: 64rpx;
- height: 64rpx;
- margin-right: 24rpx;
- }
- .item-info {
- flex: 1;
- }
- .item-title {
- font-size: 30rpx;
- color: #222;
- font-weight: 600;
- }
- .item-desc {
- font-size: 24rpx;
- color: #888;
- margin-top: 8rpx;
- }
- .restore-btn {
- background: #409EFF;
- color: #fff;
- border-radius: 10rpx;
- font-size: 26rpx;
- padding: 12rpx 28rpx;
- }
- </style>
|