feat: 新增短视频支持及多媒体管理功能

1. 新增视频图标及上传示例视频文件
2. 调整开发环境后端域名
3. 新增结构化媒体列表功能,区分图片与视频
4. 新增短视频弹窗预览功能,支持在审核和详情页播放
5. 调整图片和视频文件大小限制,放宽至15MB和100MB
6. 优化详情页,支持视频播放、图片视频混合画廊展示
7. 优化后台审核和详情页面,新增短视频质检模块
这个提交包含在:
2026-11-11 14:46:02 +08:00
父节点 14d02aedcd
当前提交 e01cedd18e
共有 24 个文件被更改,包括 1373 次插入 和 202 次删除

查看文件

@@ -87,34 +87,94 @@
@input="onFieldInput"
/>
<!-- 上栏:轮播图片(最多9张,首张为封面) -->
<view class="create__label-row create__label--mt">
<text class="create__label">轮播图片 / 视频</text>
<view class="create__label-left">
<text class="create__label">轮播图片</text>
</view>
<text class="create__label-hint">首张为封面,最多9张</text>
</view>
<view class="create__media">
<view v-for="(m, i) in form.media" :key="m + i" class="create__media-item fc-thumb">
<image v-if="!isVideo(m)" class="create__media-img" :src="assetUrl(m)" mode="aspectFill" />
<view v-else class="create__media-video">
<image class="fc-icon fc-icon--md" :src="iconUrl('plus-ink')" mode="aspectFit" />
<text class="create__media-video-txt">视频</text>
<view class="create__media-grid">
<!-- 已上传成功的图片列表(点击可全屏放大预览) -->
<view
v-for="(img, idx) in imageList"
:key="img + idx"
class="create__media-item"
@click="previewImageItem(idx)"
>
<image class="create__media-img" :src="assetUrl(img)" mode="aspectFill" />
<!-- 封面主图角标 -->
<view v-if="idx === 0" class="create__media-cover-tag">
<text class="create__media-cover-txt">封面</text>
</view>
<view class="create__media-del" @click.stop="removeMedia(i)">
<text>×</text>
<!-- 删除按钮 -->
<view class="create__media-del" @click.stop="removeImage(idx)">
<text class="create__media-del-icon">✕</text>
</view>
</view>
<!-- 上传图片按钮 -->
<view v-if="!uploading && imageCount < 6" class="create__upload" @click="chooseImage">
<image class="fc-icon fc-icon--md" :src="iconUrl('image')" mode="aspectFit" />
<text class="create__upload-txt">图片 {{ imageCount }}/6</text>
<!-- 正在上传中的图片占位卡片(就地微质感加载,平滑顺滑) -->
<view
v-for="item in uploadingImageFiles"
:key="item.id"
class="create__media-item create__media-item--loading"
>
<image class="create__media-img" :src="item.localUrl" mode="aspectFill" />
<view class="create__media-loading-mask">
<view class="create__media-spinner"></view>
<text class="create__media-loading-txt">上传中</text>
</view>
</view>
<!-- 上传视频按钮 -->
<view v-if="!uploading && videoCount < 1" class="create__upload" @click="chooseVideo">
<image class="fc-icon fc-icon--md" :src="iconUrl('plus-ink')" mode="aspectFit" />
<text class="create__upload-txt">短视频 {{ videoCount }}/1</text>
<!-- 添加图片卡片(总数未满9张时稳固展示,不跳动不闪烁) -->
<view v-if="totalImageCount < 9" class="create__upload-card" @click="chooseImage">
<image class="create__upload-card-icon" :src="iconUrl('image')" mode="aspectFit" />
<text class="create__upload-card-txt">添加图片</text>
<text class="create__upload-card-count">{{ totalImageCount }}/9</text>
</view>
</view>
<!-- 下栏:实拍短视频(选填,最多1个) -->
<view class="create__label-row create__label--mt">
<view class="create__label-left">
<text class="create__label">实拍短视频</text>
</view>
<text class="create__label-hint">选填,展示更真实,限1个</text>
</view>
<view class="create__video-row">
<!-- 1. 已选视频展示卡片 -->
<view v-if="videoItem && !videoUploading" class="create__media-item create__media-item--video" @click="previewVideoItem">
<view class="create__video-poster">
<view class="create__video-play-center">▶</view>
<text class="create__video-tag">短视频</text>
</view>
<!-- 删除按钮 -->
<view class="create__media-del" @click.stop="removeVideo">
<text class="create__media-del-icon">✕</text>
</view>
</view>
<!-- 2. 视频正在上传中的微动效卡片(就地微转圈) -->
<view v-else-if="videoUploading" class="create__media-item create__media-item--video create__media-item--loading">
<view class="create__video-poster">
<view class="create__media-spinner create__media-spinner--mint"></view>
<text class="create__media-loading-txt">视频上传中</text>
</view>
</view>
<!-- 3. 未上传时的添加视频卡片 -->
<view v-else class="create__upload-card" @click="chooseVideo">
<image class="create__upload-card-icon" :src="iconUrl('video')" mode="aspectFit" />
<text class="create__upload-card-txt">添加视频</text>
<text class="create__upload-card-count">0/1</text>
</view>
<!-- 视频右侧清新说明文本 -->
<view class="create__video-tip-wrap">
<text class="create__video-tip-main">{{ videoUploading ? '实拍视频正在传输中…' : (videoItem ? '实拍视频已就绪,点击可试看' : '实拍短视频更具吸引力') }}</text>
<text class="create__video-tip-sub">{{ videoUploading ? '大文件传输中,可继续填写下方信息' : '支持常见视频格式,100MB以内' }}</text>
</view>
</view>
<text v-if="uploading" class="create__uploading">媒体上传中,请稍候…</text>
</view>
<!-- 4. 价格与产地(自由输入价格 → 农产品产地规格,商品属性集中一卡便于连续填写) -->
@@ -570,7 +630,8 @@ export default {
// 平铺服务区域(每条自带省/市/区县),交给级联选择器分组
areaRows: [],
submitting: false,
uploading: false,
uploadingFiles: [],
videoUploading: false,
showPayModal: false,
pwdPopup: { show: false, title: '', tip: '' },
draftTimer: null,
@@ -596,6 +657,7 @@ export default {
title: '',
content: '',
media: [],
cover: '',
price: '',
isNegotiable: false,
plantArea: '',
@@ -816,6 +878,30 @@ export default {
videoCount() {
return this.form.media.filter((m) => this.isVideo(m)).length
},
/** 已选纯图片列表 */
imageList() {
return this.form.media.filter((m) => !this.isVideo(m))
},
/** 已选视频列表 */
videoList() {
return this.form.media.filter((m) => this.isVideo(m))
},
/** 当前视频单项(选填最多1个) */
videoItem() {
return this.form.media.find((m) => this.isVideo(m)) || ''
},
/** 正在上传中的图片任务 */
uploadingImageFiles() {
return this.uploadingFiles.filter((f) => f.type === 'image')
},
/** 图片总数(已上传 + 正在上传中) */
totalImageCount() {
return this.imageList.length + this.uploadingImageFiles.length
},
/** 全局上传中状态计算属性(保持向后兼容) */
uploading() {
return this.uploadingFiles.length > 0 || this.videoUploading
},
discountRate() {
const r = Number(this.publish.discountRate)
return r > 0 && r <= 1 ? r : 1
@@ -1353,64 +1439,180 @@ export default {
return /\.(mp4|mov|m4v|avi|webm|mkv)(\?|$)/i.test(String(url || ''))
},
/**
* 校验上传图片的宽高比与文件大小(用于详情页顶部轮播展示,限制宽高比 0.75~2.2,单张 ≤ 5MB)
* 判断当前媒体序号是否为封面主图
* @param {number} idx 媒体数组索引
* @returns {boolean}
*/
isCoverMedia(idx) {
const firstImageIdx = this.form.media.findIndex((m) => !this.isVideo(m))
return firstImageIdx === idx
},
/**
* 点击已选媒体卡片:支持全屏大图缩放预览或视频沉浸播放
* @param {string} m 媒体相对或绝对路径
* @param {number} idx 媒体数组索引
*/
/**
* 预览图片栏中的图片
* @param {number} idx 图片索引
*/
previewImageItem(idx) {
const urls = this.imageList.map((m) => assetUrl(m))
if (!urls.length) return
uni.previewImage({
current: urls[idx] || urls[0],
urls: urls,
})
},
/**
* 预览实拍短视频
*/
previewVideoItem() {
const video = this.videoItem
if (!video) return
const videoFullUrl = assetUrl(video)
// #ifdef MP-WEIXIN
if (typeof wx !== 'undefined' && typeof wx.previewMedia === 'function') {
wx.previewMedia({
sources: [
{
url: videoFullUrl,
type: 'video',
poster: this.form.cover ? assetUrl(this.form.cover) : '',
},
],
current: 0,
})
return
}
// #endif
uni.showToast({ title: '已就绪短视频', icon: 'none' })
},
/**
* 移除图片栏指定图片
* @param {number} idx 图片索引
*/
removeImage(idx) {
const target = this.imageList[idx]
if (!target) return
const realIdx = this.form.media.indexOf(target)
if (realIdx !== -1) {
this.form.media.splice(realIdx, 1)
this.triggerAutoSave()
}
},
/**
* 移除已选短视频
*/
removeVideo() {
const realIdx = this.form.media.findIndex((m) => this.isVideo(m))
if (realIdx !== -1) {
this.form.media.splice(realIdx, 1)
this.triggerAutoSave()
}
},
previewMediaItem(m, idx) {
if (!m) return
if (this.isVideo(m)) {
const videoFullUrl = assetUrl(m)
// #ifdef MP-WEIXIN
if (typeof wx !== 'undefined' && typeof wx.previewMedia === 'function') {
wx.previewMedia({
sources: [
{
url: videoFullUrl,
type: 'video',
poster: this.form.cover ? assetUrl(this.form.cover) : '',
},
],
current: 0,
})
return
}
// #endif
uni.showToast({ title: '已选中短视频', icon: 'none' })
return
}
// 图片预览:收集当前所有图片完整地址,支持左右滑动切换与多指自由缩放
const imageUrls = this.form.media
.filter((item) => !this.isVideo(item))
.map((item) => assetUrl(item))
const curUrl = assetUrl(m)
const curIndex = Math.max(0, imageUrls.indexOf(curUrl))
uni.previewImage({
current: curIndex >= 0 ? curIndex : curUrl,
urls: imageUrls.length ? imageUrls : [curUrl],
})
},
/**
* 校验上传图片文件大小(放宽到 15MB)
* @param {string} filePath 本地临时路径
* @param {Object} fileObj chooseImage 返回的 tempFiles[i]
* @returns {Promise<{ok:boolean, message?:string}>}
*/
validateImageForCarousel(filePath, fileObj = null) {
if (fileObj && fileObj.size && Number(fileObj.size) > 5 * 1024 * 1024) {
return Promise.resolve({ ok: false, message: '单张图片大小不能超过 5MB' })
}
if (typeof uni === 'undefined' || !uni.getImageInfo) {
return Promise.resolve({ ok: true })
if (fileObj && fileObj.size && Number(fileObj.size) > 15 * 1024 * 1024) {
return Promise.resolve({ ok: false, message: '单张图片大小不能超过 15MB' })
}
return Promise.resolve({ ok: true })
},
/**
* 唤起微信原生图片裁剪(固定 1:1 黄金正方形)
* 用户可通过双指缩放拖拽框选商品核心区域,点击完成自动裁好
* @param {string} tempPath 本地临时路径
* @returns {Promise<string>} 裁剪后临时文件路径(若取消或失败则回退使用原图)
*/
cropImage(tempPath) {
return new Promise((resolve) => {
uni.getImageInfo({
src: filePath,
success: (info) => {
const w = Number(info && info.width) || 0
const h = Number(info && info.height) || 0
if (w >= 50 && h >= 50) {
const ratio = w / h
if (ratio < 0.75 || ratio > 2.2) {
resolve({
ok: false,
message: '为保证轮播展示效果,请上传宽高比在 3:4 ~ 16:9 之间的横图或方图',
})
return
}
}
resolve({ ok: true })
},
fail: () => resolve({ ok: true }),
})
// #ifdef MP-WEIXIN
if (typeof wx !== 'undefined' && typeof wx.cropImage === 'function') {
wx.cropImage({
src: tempPath,
cropScale: '1:1',
success: (res) => {
resolve((res && res.tempFilePath) || tempPath)
},
fail: () => {
// 用户点击取消裁剪或接口报错,回退使用原图,绝不卡阻流程
resolve(tempPath)
},
})
return
}
// #endif
resolve(tempPath)
})
},
/**
* 唤起图片选择与拍摄(最多上传 9 张)
*/
chooseImage() {
if (this.uploading) return
const remain = 6 - this.imageCount
if (remain <= 0) return uni.showToast({ title: '最多上传 6 张图片', icon: 'none' })
// 直接从相册选择(拍照功能已移除)
const remain = 9 - this.imageCount
if (remain <= 0) return uni.showToast({ title: '最多上传 9 张图片', icon: 'none' })
this.pickFromAlbum(remain)
},
/** 相册选图:压缩(>1MB 阶梯降质)→ 宽高比与大小校验 → 上传 */
/**
* 选择图片(支持拍照与相册多选,选完直传零打扰)
* @param {number} remain 剩余可上传图片数量
*/
pickFromAlbum(remain) {
uni.chooseImage({
count: remain,
sizeType: ['original', 'compressed'],
sizeType: ['compressed', 'original'],
sourceType: ['album', 'camera'],
success: async (res) => {
const paths = res.tempFilePaths || []
const files = res.tempFiles || []
if (!paths.length) return
// 直接进入极速并发上传流程,零弹窗阻断,极致丝滑
const validPaths = []
for (let i = 0; i < paths.length; i++) {
const compressed = await this.compressImageForUpload(paths[i], files[i])
const check = await this.validateImageForCarousel(compressed.path, { size: compressed.size })
if (!check.ok) {
uni.showToast({ title: check.message, icon: 'none', duration: 2600 })
} else {
validPaths.push(compressed.path)
}
validPaths.push(compressed.path)
}
if (validPaths.length) {
await this.uploadFiles(validPaths, 'image')
@@ -1419,8 +1621,7 @@ export default {
})
},
/**
* 上传前压缩:>1MB 才压缩,按 80/60/45 质量阶梯降质直到 ≤5MB(后端硬限制)
* gif 不支持压缩接口,直接原样返回
* 上传前轻量快速压缩:仅对大图(>1.5MB)做快速单次等比压制,告别多轮耗时等待
* @param {string} path 本地临时路径
* @param {Object} fileObj chooseImage 返回的 tempFiles[i]
* @returns {Promise<{path:string, size:number}>}
@@ -1428,53 +1629,129 @@ export default {
async compressImageForUpload(path, fileObj) {
const fileSize = Number(fileObj && fileObj.size) || 0
if (/\.gif$/i.test(path)) return { path, size: fileSize }
if (fileSize > 0 && fileSize <= 1024 * 1024) return { path, size: fileSize }
// 1.5MB 以内的小图无需额外压缩,直接极速上传
if (fileSize > 0 && fileSize <= 1.5 * 1024 * 1024) return { path, size: fileSize }
if (typeof uni === 'undefined' || !uni.compressImage) return { path, size: fileSize }
let cur = { path, size: fileSize }
for (const q of [80, 60, 45]) {
try {
const res = await new Promise((resolve, reject) => {
uni.compressImage({ src: cur.path, quality: q, success: resolve, fail: reject })
try {
const res = await new Promise((resolve, reject) => {
uni.compressImage({
src: path,
quality: 80,
success: resolve,
fail: reject,
})
if (!res || !res.tempFilePath) break
const info = await new Promise((resolve) => {
uni.getFileInfo({ filePath: res.tempFilePath, success: resolve, fail: () => resolve(null) })
})
cur = { path: res.tempFilePath, size: Number(info && info.size) || 0 }
if (cur.size > 0 && cur.size <= 5 * 1024 * 1024) return cur
} catch (e) {
break
})
if (res && res.tempFilePath) {
return { path: res.tempFilePath, size: 0 }
}
}
return cur
} catch (e) {}
return { path, size: fileSize }
},
/**
* 唤起视频拍摄与选取(微信原生支持时间轴截取片段,并自动截取首帧作为封面)
*/
chooseVideo() {
if (this.uploading) return
if (this.videoCount >= 1) return uni.showToast({ title: '最多上传 1 个视频', icon: 'none' })
const handleVideoResult = async (videoPath, thumbPath) => {
if (!videoPath) return
this.videoUploading = true
try {
// 1. 若微信回调提取到了视频封面首帧,同步上传并作为帖子封面
if (thumbPath) {
try {
const thumbUp = await postApi.uploadMedia(thumbPath, 'image')
if (thumbUp && thumbUp.url) {
this.form.cover = thumbUp.url
}
} catch (e) {
console.warn('视频封面上传非阻断:', e)
}
}
// 2. 上传视频主体文件(卡片就地微转圈,零弹窗阻断)
const videoUp = await postApi.uploadMedia(videoPath, 'video')
if (videoUp && videoUp.url) {
this.form.media.push(videoUp.url)
this.triggerAutoSave()
}
} catch (e) {
uni.showToast({ title: e.message || '视频上传失败,请重试', icon: 'none' })
} finally {
this.videoUploading = false
}
}
// 优先使用微信现代化的 chooseMedia(支持原生视频时间轴截取与封面)
if (typeof uni !== 'undefined' && typeof uni.chooseMedia === 'function') {
uni.chooseMedia({
count: 1,
mediaType: ['video'],
sourceType: ['album', 'camera'],
maxDuration: 60,
camera: 'back',
success: (res) => {
const file = (res.tempFiles && res.tempFiles[0]) || {}
handleVideoResult(file.tempFilePath, file.thumbTempFilePath)
},
fail: (err) => {
if (err && err.errMsg && err.errMsg.indexOf('cancel') === -1) {
this.fallbackChooseVideo(handleVideoResult)
}
},
})
} else {
this.fallbackChooseVideo(handleVideoResult)
}
},
/**
* 兼容降级视频选择器
* @param {Function} callback 处理回调
*/
fallbackChooseVideo(callback) {
uni.chooseVideo({
maxDuration: 60,
success: async (res) => {
await this.uploadFiles([res.tempFilePath], 'video')
sourceType: ['album', 'camera'],
compressed: true,
success: (res) => {
callback(res.tempFilePath, res.thumbTempFilePath)
},
})
},
/**
* 并发多文件上传(加速用户等待,失败容错)
* @param {string[]} paths 临时文件路径列表
* @param {'image'|'video'} type 媒体类型
*/
async uploadFiles(paths, type) {
if (!paths.length) return
this.uploading = true
uni.showLoading({ title: '上传中…', mask: true })
const uploadTasks = paths.map((p, idx) => ({
id: 'up_' + Date.now() + '_' + Math.random().toString(36).substr(2, 6) + '_' + idx,
localUrl: p,
type,
}))
this.uploadingFiles.push(...uploadTasks)
try {
for (const p of paths) {
const up = await postApi.uploadMedia(p, type)
if (up && up.url) this.form.media.push(up.url)
}
const uploadPromises = uploadTasks.map(async (task) => {
try {
const up = await postApi.uploadMedia(task.localUrl, task.type)
if (up && up.url) {
this.form.media.push(up.url)
}
} catch (err) {
console.error('单文件上传失败:', task.localUrl, err)
} finally {
const fIdx = this.uploadingFiles.findIndex((f) => f.id === task.id)
if (fIdx !== -1) {
this.uploadingFiles.splice(fIdx, 1)
}
}
})
await Promise.all(uploadPromises)
this.triggerAutoSave()
uni.hideLoading()
uni.showToast({ title: '上传成功', icon: 'none' })
} catch (e) {
uni.hideLoading()
uni.showToast({ title: e.message || '上传失败', icon: 'none' })
} finally {
this.uploading = false
uni.showToast({ title: e.message || '上传异常', icon: 'none' })
}
},
removeMedia(i) {
@@ -2031,21 +2308,35 @@ export default {
margin-top: 8rpx;
}
/* 媒体上传 */
.create__media {
display: flex;
flex-wrap: wrap;
gap: 16rpx;
margin-top: 16rpx;
/* 媒体上传与标题行 */
.create__label-hint {
font-size: 22rpx;
color: #64748b;
font-weight: 400;
}
/* ------------------------------------------------------------
* 媒体上传统一设计规范(轻氧微质感实体卡片,彻底消除粗糙虚线)
* ------------------------------------------------------------ */
.create__media-grid {
display: flex;
flex-wrap: wrap;
gap: 18rpx;
margin-top: 18rpx;
}
/* 媒体缩略展示卡片(与输入框保持一致的高级圆角与微边框) */
.create__media-item {
width: 156rpx;
height: 156rpx;
border-radius: 16rpx;
border-radius: 18rpx;
position: relative;
background: #f4f7f5;
background: #f8faf8;
overflow: hidden;
box-shadow: 0 2rpx 8rpx rgba(15, 23, 42, 0.04);
border: 1rpx solid #e6f0ea;
box-sizing: border-box;
}
.create__media-img {
@@ -2053,66 +2344,201 @@ export default {
height: 100%;
}
.create__media-video {
width: 100%;
height: 100%;
background: #1a2d23;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
.create__media-cover-tag {
position: absolute;
top: 0;
left: 0;
background: linear-gradient(135deg, #00e070, #00b85c);
padding: 4rpx 12rpx;
border-radius: 0 0 12rpx 0;
box-shadow: 0 2rpx 6rpx rgba(0, 0, 0, 0.15);
z-index: 2;
}
.create__media-video-txt {
font-size: 22rpx;
color: #ffffff;
margin-top: 8rpx;
.create__media-cover-txt {
font-size: 18rpx;
font-weight: 700;
color: #04301e;
line-height: 1;
}
/* 精致半透明暗黑背景圆形关闭删除按钮 */
.create__media-del {
position: absolute;
top: 8rpx;
right: 8rpx;
width: 38rpx;
height: 38rpx;
width: 36rpx;
height: 36rpx;
border-radius: 50%;
background: rgba(0, 0, 0, 0.65);
color: #ffffff;
background: rgba(15, 23, 42, 0.65);
backdrop-filter: blur(4px);
display: flex;
align-items: center;
justify-content: center;
font-size: 28rpx;
z-index: 3;
transition: transform 0.15s ease;
&:active {
transform: scale(0.9);
}
}
.create__media-del-icon {
color: #ffffff;
font-size: 20rpx;
font-weight: 700;
line-height: 1;
}
.create__upload {
/* 统一规范的方形上传卡片(图片与视频同构,彻底取代失衡横栏) */
.create__upload-card {
width: 156rpx;
height: 156rpx;
border-radius: 16rpx;
border: 2rpx dashed #b8d4c4;
background: #f9fbf9;
border-radius: 18rpx;
background: #f8faf8;
border: 1rpx solid #e6f0ea;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
box-sizing: border-box;
cursor: pointer;
transition: all 0.2s ease;
&:active {
background: #eef7f2;
background: #edf9f2;
border-color: #00e070;
transform: scale(0.97);
}
}
.create__upload-txt {
font-size: 20rpx;
color: $fc-text-sub;
margin-top: 10rpx;
.create__upload-card-icon {
width: 46rpx;
height: 46rpx;
margin-bottom: 8rpx;
}
.create__uploading {
display: block;
margin-top: 12rpx;
.create__upload-card-txt {
font-size: 22rpx;
color: #04874a;
font-weight: 600;
color: #334155;
line-height: 1.2;
}
.create__upload-card-count {
font-size: 19rpx;
color: #94a3b8;
margin-top: 4rpx;
line-height: 1;
}
/* 视频栏行容器 */
.create__video-row {
display: flex;
align-items: center;
gap: 24rpx;
margin-top: 18rpx;
}
/* 视频海报与试播角标 */
.create__video-poster {
width: 100%;
height: 100%;
background: linear-gradient(135deg, #0f271a, #071910);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
position: relative;
}
.create__video-play-center {
width: 48rpx;
height: 48rpx;
border-radius: 50%;
background: rgba(0, 224, 112, 0.25);
border: 2rpx solid #00e070;
color: #00e070;
font-size: 20rpx;
display: flex;
align-items: center;
justify-content: center;
padding-left: 4rpx;
}
.create__video-tag {
font-size: 20rpx;
color: #e2f7ec;
margin-top: 8rpx;
font-weight: 500;
}
/* 视频右侧说明文本 */
.create__video-tip-wrap {
flex: 1;
display: flex;
flex-direction: column;
gap: 8rpx;
}
.create__video-tip-main {
font-size: 24rpx;
font-weight: 600;
color: #334155;
line-height: 1.3;
}
.create__video-tip-sub {
font-size: 21rpx;
color: #94a3b8;
line-height: 1.3;
}
/* 上传中的卡片就地微动效(无阻断、平滑淡入) */
.create__media-item--loading {
border-color: #a4e2c0;
}
.create__media-loading-mask {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(15, 23, 42, 0.45);
backdrop-filter: blur(2px);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
z-index: 2;
}
.create__media-spinner {
width: 38rpx;
height: 38rpx;
border: 3rpx solid rgba(255, 255, 255, 0.35);
border-top-color: #00e070;
border-radius: 50%;
animation: spin 0.8s linear infinite;
&--mint {
border-color: rgba(0, 224, 112, 0.25);
border-top-color: #00e070;
}
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
.create__media-loading-txt {
font-size: 19rpx;
color: #ffffff;
font-weight: 500;
margin-top: 6rpx;
letter-spacing: 1rpx;
}
/* 价格与面议开关 */