/* pages/publish/index.wxss */ .publish-container { padding: 20rpx; background-color: #f8f8f8; min-height: 100vh; } .publish-header { background-color: #fff; padding: 30rpx; border-radius: 10rpx; margin-bottom: 20rpx; box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.1); } .header-title { font-size: 36rpx; font-weight: bold; color: #333; } .form-container { background-color: #fff; padding: 30rpx; border-radius: 10rpx; box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.1); } .form-item { margin-bottom: 30rpx; } .label { display: block; font-size: 28rpx; color: #666; margin-bottom: 10rpx; } .input { width: 100%; height: 80rpx; border: 1rpx solid #ddd; border-radius: 8rpx; padding: 0 20rpx; font-size: 28rpx; box-sizing: border-box; } /* 图片上传样式 */ .image-upload-container { margin-bottom: 30rpx; } .image-list { display: flex; flex-wrap: wrap; gap: 20rpx; } .image-item { width: 160rpx; height: 160rpx; position: relative; border: 1rpx solid #ddd; border-radius: 8rpx; overflow: hidden; } .image-item image { width: 100%; height: 100%; } .image-delete { position: absolute; top: 0; right: 0; width: 40rpx; height: 40rpx; background-color: rgba(0, 0, 0, 0.5); color: #fff; text-align: center; line-height: 40rpx; font-size: 32rpx; border-radius: 0 8rpx 0 20rpx; } .image-upload { width: 160rpx; height: 160rpx; border: 2rpx dashed #ddd; border-radius: 8rpx; display: flex; justify-content: center; align-items: center; background-color: #f8f8f8; } .image-upload text { font-size: 64rpx; color: #999; } .publish-btn { margin-top: 40rpx; background-color: #07c160; color: #fff; font-size: 32rpx; height: 90rpx; line-height: 90rpx; border-radius: 45rpx; } .publish-btn:active { background-color: #06b356; }