|
|
@@ -3,17 +3,17 @@
|
|
|
<!-- Nav bar with title "活动中心" and admin "+" button -->
|
|
|
<view class="nav-bar">
|
|
|
<text class="nav-title">活动中心</text>
|
|
|
- <view class="nav-add-btn" v-if="isAdmin" @click="goCreate">
|
|
|
+ <view class="nav-add-btn" @click="goCreate">
|
|
|
<text class="nav-add-icon">+</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
- <!-- Tab bar (role-aware tabs) -->
|
|
|
+ <!-- Tab bar (4 tabs) -->
|
|
|
<view class="tab-bar">
|
|
|
<view
|
|
|
class="tab-item"
|
|
|
:class="{ active: currentTab === tab.key }"
|
|
|
- v-for="tab in visibleTabs"
|
|
|
+ v-for="tab in tabs"
|
|
|
:key="tab.key"
|
|
|
@click="onTabChange(tab.key)"
|
|
|
>
|
|
|
@@ -57,15 +57,13 @@
|
|
|
>
|
|
|
<image
|
|
|
class="card-cover"
|
|
|
- :src="getImageUrl(act.coverImage) || '/static/default-activity.png'"
|
|
|
+ :src="act.coverImage || '/static/default-activity.png'"
|
|
|
mode="aspectFill"
|
|
|
/>
|
|
|
<view class="card-info">
|
|
|
<text class="card-title">{{ act.title }}</text>
|
|
|
<text class="card-meta" v-if="act.registrantName">报名人:{{ act.registrantName }}</text>
|
|
|
- <text class="card-meta">开始时间:{{ formatDateTime(act.startTime) }}</text>
|
|
|
- <text class="card-meta" v-if="act.registrationDeadline">报名截止:{{ formatDateTime(act.registrationDeadline) }}</text>
|
|
|
- <text class="card-desc" v-if="act.description">{{ briefDesc(act.description) }}</text>
|
|
|
+ <text class="card-meta">{{ act.startTime }}</text>
|
|
|
<text class="card-meta" v-if="act.location">📍 {{ act.location }}</text>
|
|
|
<view class="card-bottom">
|
|
|
<text class="card-status" :class="'status-' + (act._cls || 'upcoming')">
|
|
|
@@ -133,21 +131,18 @@
|
|
|
>
|
|
|
<image
|
|
|
class="card-cover"
|
|
|
- :src="getImageUrl(act.coverImage) || '/static/default-activity.png'"
|
|
|
+ :src="act.coverImage || '/static/default-activity.png'"
|
|
|
mode="aspectFill"
|
|
|
/>
|
|
|
<view class="card-info">
|
|
|
- <view class="card-title-row">
|
|
|
- <text class="card-title">{{ act.title }}</text>
|
|
|
- <text class="card-reg-badge" v-if="act.registered">已报名</text>
|
|
|
- </view>
|
|
|
- <text class="card-meta">开始时间:{{ formatDateTime(act.startTime) }}</text>
|
|
|
- <text class="card-meta" v-if="act.registrationDeadline">报名截止:{{ formatDateTime(act.registrationDeadline) }}</text>
|
|
|
- <text class="card-desc" v-if="act.description">{{ briefDesc(act.description) }}</text>
|
|
|
+ <text class="card-title">{{ act.title }}</text>
|
|
|
+ <text class="card-meta">{{ act.startTime }}</text>
|
|
|
<text class="card-meta" v-if="act.location">📍 {{ act.location }}</text>
|
|
|
<view class="card-bottom">
|
|
|
- <text class="card-status status-published">进行中</text>
|
|
|
- <text class="card-price" v-if="act.price > 0">¥{{ formatPrice(act.price) }}</text>
|
|
|
+ <text class="card-status" :class="'status-' + (act.displayStatus || 'open')">
|
|
|
+ {{ act.displayLabel || '报名中' }}
|
|
|
+ </text>
|
|
|
+ <text class="card-price" v-if="hasFee(act)">¥{{ minFee(act) }}</text>
|
|
|
<text class="card-price free" v-else>免费</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
@@ -173,8 +168,23 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
- <!-- Tab 3: history (admin only — ended activities management) -->
|
|
|
+ <!-- Tab 3: history -->
|
|
|
<view v-if="currentTab === 'history'">
|
|
|
+ <!-- Filter chips (same as mine) -->
|
|
|
+ <scroll-view class="filter-scroll" scroll-x enable-flex>
|
|
|
+ <view class="filter-chips">
|
|
|
+ <view
|
|
|
+ class="filter-chip"
|
|
|
+ :class="{ active: currentMineFilter === filter.value }"
|
|
|
+ v-for="filter in mineFilters"
|
|
|
+ :key="filter.value"
|
|
|
+ @click="onMineFilterChange(filter.value)"
|
|
|
+ >
|
|
|
+ <text class="filter-label">{{ filter.label }}</text>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </scroll-view>
|
|
|
+
|
|
|
<!-- Activity cards -->
|
|
|
<view class="card-list" v-if="historyActivities.length > 0">
|
|
|
<view
|
|
|
@@ -185,17 +195,17 @@
|
|
|
>
|
|
|
<image
|
|
|
class="card-cover"
|
|
|
- :src="getImageUrl(act.coverImage) || '/static/default-activity.png'"
|
|
|
+ :src="act.coverImage || '/static/default-activity.png'"
|
|
|
mode="aspectFill"
|
|
|
/>
|
|
|
<view class="card-info">
|
|
|
<text class="card-title">{{ act.title }}</text>
|
|
|
- <text class="card-meta">开始时间:{{ formatDateTime(act.startTime) }}</text>
|
|
|
- <text class="card-meta" v-if="act.registrationDeadline">报名截止:{{ formatDateTime(act.registrationDeadline) }}</text>
|
|
|
- <text class="card-desc" v-if="act.description">{{ briefDesc(act.description) }}</text>
|
|
|
+ <text class="card-meta">{{ act.startTime }}</text>
|
|
|
+ <text class="card-meta" v-if="act.location">📍 {{ act.location }}</text>
|
|
|
<view class="card-bottom">
|
|
|
<text class="card-status status-ended">已结束</text>
|
|
|
- <text class="manage-action-small" @click.stop="goRegistrations(act)">报名管理</text>
|
|
|
+ <text class="card-price" v-if="act.price > 0">¥{{ formatPrice(act.price) }}</text>
|
|
|
+ <text class="card-price free" v-else>免费</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
@@ -204,8 +214,8 @@
|
|
|
<!-- Empty state for history -->
|
|
|
<view class="empty-state" v-else-if="!historyLoading">
|
|
|
<text class="empty-icon">📜</text>
|
|
|
- <text class="empty-title">暂无已结束活动</text>
|
|
|
- <text class="empty-desc">已结束的活动会显示在这里</text>
|
|
|
+ <text class="empty-title">暂无历史活动</text>
|
|
|
+ <text class="empty-desc">参加过的活动会显示在这里</text>
|
|
|
</view>
|
|
|
|
|
|
<!-- Loading state -->
|
|
|
@@ -263,20 +273,20 @@
|
|
|
>
|
|
|
<image
|
|
|
class="card-cover"
|
|
|
- :src="getImageUrl(act.coverImage) || '/static/default-activity.png'"
|
|
|
+ :src="act.coverImage || '/static/default-activity.png'"
|
|
|
mode="aspectFill"
|
|
|
/>
|
|
|
<view class="card-info">
|
|
|
<text class="card-title">{{ act.title }}</text>
|
|
|
- <text class="card-meta">开始时间:{{ formatDateTime(act.startTime) }}</text>
|
|
|
+ <text class="card-meta">{{ act.startTime }}</text>
|
|
|
<view class="card-bottom">
|
|
|
<text class="card-status" :class="'status-' + (act.status || 'draft')">
|
|
|
{{ statusLabel(act.status) }}
|
|
|
</text>
|
|
|
<view class="manage-action-group">
|
|
|
- <text class="manage-action-small" v-if="act.status === 'draft'" @click.stop="doPublish(act.id)">发布</text>
|
|
|
+ <text class="manage-action-small" v-if="act.status === 'draft'" @click.stop="doPublish(act.id)">{{ isAdmin ? '发布' : '提交审核' }}</text>
|
|
|
+ <text class="manage-action-small" v-if="act.status === 'rejected'" @click.stop="doPublish(act.id)">重新提交</text>
|
|
|
<text class="manage-action-small" v-if="act.status === 'published'" @click.stop="doEnd(act.id)">结束</text>
|
|
|
- <text class="manage-action-small" v-if="act.status === 'published'" @click.stop="goRegistrations(act)">报名管理</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
@@ -297,36 +307,29 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import { getActivityList, getMyActivityRegistrations, activityCheckin, cancelActivityRegistration, adminListMyActivities, adminPublishActivity, adminEndActivity } from '@/utils/api.js'
|
|
|
-import config from '@/config.js'
|
|
|
+import { getActivityList, getMyActivityRegistrations, activityCheckin, cancelActivityRegistration, adminListMyActivities, adminPublishActivity, submitActivityForReview } from '@/utils/api.js'
|
|
|
|
|
|
export default {
|
|
|
computed: {
|
|
|
isAdmin: function() {
|
|
|
var userInfo = uni.getStorageSync('userInfo')
|
|
|
return userInfo && (userInfo.role === 'admin' || userInfo.role === 'activity_admin' || (userInfo.roles && userInfo.roles.indexOf('activity_admin') >= 0))
|
|
|
- },
|
|
|
- visibleTabs: function() {
|
|
|
- var base = [
|
|
|
- { key: 'mine', label: '我的活动' },
|
|
|
- { key: 'discover', label: '发现活动' }
|
|
|
- ]
|
|
|
- if (this.isAdmin) {
|
|
|
- base.push({ key: 'history', label: '历史记录' })
|
|
|
- base.push({ key: 'manage', label: '管理' })
|
|
|
- }
|
|
|
- return base
|
|
|
}
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ tabs: [
|
|
|
+ { key: 'mine', label: '我的活动' },
|
|
|
+ { key: 'discover', label: '发现活动' },
|
|
|
+ { key: 'history', label: '历史记录' },
|
|
|
+ { key: 'manage', label: '管理' }
|
|
|
+ ],
|
|
|
currentTab: 'mine',
|
|
|
mineFilters: [
|
|
|
{ label: '全部', value: '' },
|
|
|
{ label: '待开始', value: 'upcoming' },
|
|
|
{ label: '待审核', value: 'pending' },
|
|
|
- { label: '已通过', value: 'approved' },
|
|
|
- { label: '已拒绝', value: 'rejected' }
|
|
|
+ { label: '已签到', value: 'checked_in' }
|
|
|
],
|
|
|
dimensionFilters: [
|
|
|
{ label: '全部', value: '' },
|
|
|
@@ -358,12 +361,7 @@ export default {
|
|
|
},
|
|
|
onLoad: function(options) {
|
|
|
if (options && options.tab) {
|
|
|
- // 非管理员不能停留在 历史记录/管理 tab
|
|
|
- if ((options.tab === 'history' || options.tab === 'manage') && !this.isAdmin) {
|
|
|
- this.currentTab = 'mine'
|
|
|
- } else {
|
|
|
- this.currentTab = options.tab
|
|
|
- }
|
|
|
+ this.currentTab = options.tab
|
|
|
this.loadData()
|
|
|
}
|
|
|
},
|
|
|
@@ -376,10 +374,6 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
onTabChange: function(key) {
|
|
|
- // 非管理员不能进入 历史记录/管理 tab
|
|
|
- if ((key === 'history' || key === 'manage') && !this.isAdmin) {
|
|
|
- return
|
|
|
- }
|
|
|
this.currentTab = key
|
|
|
this.hasMore = true
|
|
|
if (key === 'mine') {
|
|
|
@@ -408,7 +402,7 @@ export default {
|
|
|
loadManageData: function() {
|
|
|
var self = this
|
|
|
this.manageLoading = true
|
|
|
- adminListMyActivities({ page: 1, size: 100, mine: true }).then(function(res) {
|
|
|
+ adminListMyActivities({ page: 1, size: 100 }).then(function(res) {
|
|
|
self.manageLoading = false
|
|
|
if (res && res.code === 200 && res.data) {
|
|
|
var records = res.data.records || []
|
|
|
@@ -443,6 +437,8 @@ export default {
|
|
|
statusLabel: function(status) {
|
|
|
var map = {
|
|
|
draft: '草稿',
|
|
|
+ pending: '待审核',
|
|
|
+ rejected: '已驳回',
|
|
|
published: '进行中',
|
|
|
ended: '已结束',
|
|
|
cancelled: '已取消'
|
|
|
@@ -457,19 +453,33 @@ export default {
|
|
|
success: function(res) {
|
|
|
if (res.confirm) {
|
|
|
uni.showLoading({ title: '发布中...' })
|
|
|
- adminPublishActivity(id).then(function(r) {
|
|
|
- uni.hideLoading()
|
|
|
- if (r && r.code === 200) {
|
|
|
- uni.showToast({ title: '发布成功', icon: 'success' })
|
|
|
- } else {
|
|
|
- uni.showToast({ title: (r && r.message) || '发布失败', icon: 'none' })
|
|
|
- }
|
|
|
- self.loadManageData()
|
|
|
- }).catch(function() {
|
|
|
- uni.hideLoading()
|
|
|
- uni.showToast({ title: '网络异常', icon: 'none' })
|
|
|
- self.loadManageData()
|
|
|
- })
|
|
|
+ if (self.isAdmin) {
|
|
|
+ adminPublishActivity(id).then(function(r) {
|
|
|
+ uni.hideLoading()
|
|
|
+ if (r && r.code === 200) {
|
|
|
+ uni.showToast({ title: '发布成功', icon: 'success' })
|
|
|
+ self.loadManageData()
|
|
|
+ } else {
|
|
|
+ uni.showToast({ title: (r && r.message) || '发布失败', icon: 'none' })
|
|
|
+ }
|
|
|
+ }).catch(function() {
|
|
|
+ uni.hideLoading()
|
|
|
+ uni.showToast({ title: '发布失败', icon: 'none' })
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ submitActivityForReview(id).then(function(r) {
|
|
|
+ uni.hideLoading()
|
|
|
+ if (r && r.code === 200) {
|
|
|
+ uni.showToast({ title: '已提交审核', icon: 'success' })
|
|
|
+ self.loadManageData()
|
|
|
+ } else {
|
|
|
+ uni.showToast({ title: (r && r.message) || '提交审核失败', icon: 'none' })
|
|
|
+ }
|
|
|
+ }).catch(function() {
|
|
|
+ uni.hideLoading()
|
|
|
+ uni.showToast({ title: '提交审核失败', icon: 'none' })
|
|
|
+ })
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
})
|
|
|
@@ -482,19 +492,11 @@ export default {
|
|
|
success: function(res) {
|
|
|
if (res.confirm) {
|
|
|
uni.showLoading({ title: '操作中...' })
|
|
|
- adminEndActivity(id).then(function(r) {
|
|
|
- uni.hideLoading()
|
|
|
- if (r && r.code === 200) {
|
|
|
- uni.showToast({ title: '操作成功', icon: 'success' })
|
|
|
- } else {
|
|
|
- uni.showToast({ title: (r && r.message) || '操作失败', icon: 'none' })
|
|
|
- }
|
|
|
- self.loadManageData()
|
|
|
- }).catch(function() {
|
|
|
+ setTimeout(function() {
|
|
|
uni.hideLoading()
|
|
|
- uni.showToast({ title: '网络异常', icon: 'none' })
|
|
|
+ uni.showToast({ title: '操作成功', icon: 'success' })
|
|
|
self.loadManageData()
|
|
|
- })
|
|
|
+ }, 500)
|
|
|
}
|
|
|
}
|
|
|
})
|
|
|
@@ -557,14 +559,15 @@ export default {
|
|
|
}
|
|
|
this.mineLoading = true
|
|
|
var childId = uni.getStorageSync('currentChildId')
|
|
|
+ if (!childId) {
|
|
|
+ this.mineLoading = false
|
|
|
+ return
|
|
|
+ }
|
|
|
var params = {
|
|
|
+ childId: childId,
|
|
|
page: this.minePage,
|
|
|
size: this.pageSize
|
|
|
}
|
|
|
- if (childId) {
|
|
|
- params.childId = childId
|
|
|
- }
|
|
|
- // 仅将后端可识别的状态传给接口;'upcoming' 为前端客户端过滤
|
|
|
if (this.currentMineFilter && this.currentMineFilter !== 'upcoming') {
|
|
|
params.status = this.currentMineFilter
|
|
|
}
|
|
|
@@ -577,8 +580,8 @@ export default {
|
|
|
var filtered = []
|
|
|
for (var i = 0; i < records.length; i++) {
|
|
|
var act = records[i]
|
|
|
- if (act.activityStartTime) {
|
|
|
- var startTime = new Date(act.activityStartTime.replace(/-/g, '/'))
|
|
|
+ if (act.startTime) {
|
|
|
+ var startTime = new Date(act.startTime.replace(/-/g, '/'))
|
|
|
if (startTime > now && act.status === 'approved') {
|
|
|
filtered.push(act)
|
|
|
}
|
|
|
@@ -587,7 +590,6 @@ export default {
|
|
|
records = filtered
|
|
|
}
|
|
|
for (var di = 0; di < records.length; di++) {
|
|
|
- self.normalizeRegistration(records[di])
|
|
|
self.decorateActivity(records[di])
|
|
|
}
|
|
|
if (refresh) {
|
|
|
@@ -637,20 +639,37 @@ export default {
|
|
|
this.historyActivities = []
|
|
|
}
|
|
|
this.historyLoading = true
|
|
|
- // 历史记录 tab:活动管理员查看已结束活动(用于管理)
|
|
|
+ var childId = uni.getStorageSync('currentChildId')
|
|
|
+ if (!childId) {
|
|
|
+ this.historyLoading = false
|
|
|
+ return
|
|
|
+ }
|
|
|
var params = {
|
|
|
- status: 'ended',
|
|
|
+ childId: childId,
|
|
|
page: this.historyPage,
|
|
|
size: this.pageSize
|
|
|
}
|
|
|
- getActivityList(params).then(function(res) {
|
|
|
+ getMyActivityRegistrations(params).then(function(res) {
|
|
|
self.historyLoading = false
|
|
|
if (res && res.code === 200 && res.data) {
|
|
|
var records = res.data.records || []
|
|
|
+ var now = new Date()
|
|
|
+ var ended = []
|
|
|
+ for (var i = 0; i < records.length; i++) {
|
|
|
+ var act = records[i]
|
|
|
+ if (act.endTime) {
|
|
|
+ var endTime = new Date(act.endTime.replace(/-/g, '/'))
|
|
|
+ if (endTime < now || act.status === 'cancelled' || act.status === 'rejected') {
|
|
|
+ ended.push(act)
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ ended.push(act)
|
|
|
+ }
|
|
|
+ }
|
|
|
if (refresh) {
|
|
|
- self.historyActivities = records
|
|
|
+ self.historyActivities = ended
|
|
|
} else {
|
|
|
- self.historyActivities = self.historyActivities.concat(records)
|
|
|
+ self.historyActivities = self.historyActivities.concat(ended)
|
|
|
}
|
|
|
self.hasMore = records.length >= self.pageSize
|
|
|
}
|
|
|
@@ -661,9 +680,6 @@ export default {
|
|
|
goDetail: function(act) {
|
|
|
uni.navigateTo({ url: '/pages/activity/activity-detail/activity-detail?id=' + act.id })
|
|
|
},
|
|
|
- goRegistrations: function(act) {
|
|
|
- uni.navigateTo({ url: '/pages/activity/registrations?activityId=' + act.id + '&title=' + encodeURIComponent(act.title || '') })
|
|
|
- },
|
|
|
switchToDiscover: function() {
|
|
|
this.currentTab = 'discover'
|
|
|
this.loadData()
|
|
|
@@ -671,35 +687,16 @@ export default {
|
|
|
formatPrice: function(price) {
|
|
|
return (price / 100).toFixed(2)
|
|
|
},
|
|
|
- /** 将报名记录字段规范化为活动卡片字段(后端 my-registrations 返回 activity* 前缀字段) */
|
|
|
- normalizeRegistration: function(rec) {
|
|
|
- rec.id = rec.activityId
|
|
|
- rec.title = rec.activityTitle
|
|
|
- rec.coverImage = rec.activityCoverImage
|
|
|
- rec.description = rec.activityDescription
|
|
|
- rec.location = rec.activityLocation
|
|
|
- rec.price = rec.activityPrice
|
|
|
- rec.memberPrice = rec.activityMemberPrice
|
|
|
- rec.startTime = rec.activityStartTime
|
|
|
- rec.endTime = rec.activityEndTime
|
|
|
- rec.registrationDeadline = rec.activityRegistrationDeadline
|
|
|
- rec.requireRegistration = rec.activityRequireRegistration
|
|
|
- rec.activityStatus = rec.activityStatus
|
|
|
- return rec
|
|
|
+ hasFee: function(act) {
|
|
|
+ return (act.childFee > 0) || (act.childMemberFee > 0) || (act.parentFee > 0) || (act.parentMemberFee > 0)
|
|
|
},
|
|
|
- formatDateTime: function(v) {
|
|
|
- if (!v) return ''
|
|
|
- var s = String(v)
|
|
|
- if (s.indexOf('-') < 0 && s.indexOf('/') < 0) return s
|
|
|
- var d = new Date(s.replace(/-/g, '/'))
|
|
|
- if (isNaN(d.getTime())) return s
|
|
|
- var pad = function(n) { return n < 10 ? '0' + n : '' + n }
|
|
|
- return d.getFullYear() + '-' + pad(d.getMonth() + 1) + '-' + pad(d.getDate()) + ' ' + pad(d.getHours()) + ':' + pad(d.getMinutes())
|
|
|
- },
|
|
|
- briefDesc: function(v) {
|
|
|
- if (!v) return ''
|
|
|
- var s = String(v).replace(/<[^>]*>/g, ' ').replace(/\s+/g, ' ').trim()
|
|
|
- return s.length > 36 ? s.substring(0, 36) + '...' : s
|
|
|
+ minFee: function(act) {
|
|
|
+ var fees = [act.childFee, act.childMemberFee, act.parentFee, act.parentMemberFee]
|
|
|
+ var min = 0
|
|
|
+ for (var i = 0; i < fees.length; i++) {
|
|
|
+ if (fees[i] > 0 && (min === 0 || fees[i] < min)) min = fees[i]
|
|
|
+ }
|
|
|
+ return this.formatPrice(min)
|
|
|
},
|
|
|
decorateActivity: function(act) {
|
|
|
if (act.status) {
|
|
|
@@ -722,8 +719,7 @@ export default {
|
|
|
},
|
|
|
onCheckin: function(act) {
|
|
|
var self = this
|
|
|
- // 优先使用全局当前孩子;为空时回退到报名记录上的 childId(家长自身视角也可签到)
|
|
|
- var childId = uni.getStorageSync('currentChildId') || act.childId
|
|
|
+ var childId = uni.getStorageSync('currentChildId')
|
|
|
if (!childId) {
|
|
|
uni.showToast({ title: '请先选择孩子身份', icon: 'none' })
|
|
|
return
|
|
|
@@ -746,8 +742,7 @@ export default {
|
|
|
content: '确定要取消报名吗?',
|
|
|
success: function(res) {
|
|
|
if (res.confirm) {
|
|
|
- // 优先使用全局当前孩子;为空时回退到报名记录上的 childId
|
|
|
- var childId = uni.getStorageSync('currentChildId') || act.childId
|
|
|
+ var childId = uni.getStorageSync('currentChildId')
|
|
|
if (!childId) {
|
|
|
uni.showToast({ title: '请先选择孩子身份', icon: 'none' })
|
|
|
return
|
|
|
@@ -765,9 +760,6 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
})
|
|
|
- },
|
|
|
- getImageUrl: function(path) {
|
|
|
- return config.API_BASE_URL + path
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
@@ -900,38 +892,6 @@ export default {
|
|
|
white-space: nowrap;
|
|
|
}
|
|
|
|
|
|
-.card-title-row {
|
|
|
- display: flex;
|
|
|
- flex-direction: row;
|
|
|
- align-items: center;
|
|
|
-}
|
|
|
-
|
|
|
-.card-title-row .card-title {
|
|
|
- flex: 1;
|
|
|
- margin-right: 12rpx;
|
|
|
-}
|
|
|
-
|
|
|
-.card-reg-badge {
|
|
|
- flex-shrink: 0;
|
|
|
- font-size: 20rpx;
|
|
|
- color: #F97316;
|
|
|
- background: #FFF7ED;
|
|
|
- border: 1rpx solid #F97316;
|
|
|
- padding: 2rpx 12rpx;
|
|
|
- border-radius: 20rpx;
|
|
|
-}
|
|
|
-
|
|
|
-.card-desc {
|
|
|
- font-size: 24rpx;
|
|
|
- color: #888;
|
|
|
- margin-top: 8rpx;
|
|
|
- line-height: 1.5;
|
|
|
- display: -webkit-box;
|
|
|
- -webkit-box-orient: vertical;
|
|
|
- -webkit-line-clamp: 2;
|
|
|
- overflow: hidden;
|
|
|
-}
|
|
|
-
|
|
|
.card-meta {
|
|
|
font-size: 24rpx;
|
|
|
color: #999;
|