feat:部分项目中心

This commit is contained in:
李伊帆
2026-09-14 17:09:25 +08:00
parent f5d634bbaf
commit 2c7a115dd7
131 changed files with 7476 additions and 4589 deletions

View File

@@ -0,0 +1,605 @@
@import '@/styles/variables.scss';
.project-detail {
display: flex;
flex-direction: column;
min-height: 100vh;
background: $color-bg-section;
}
.project-detail__navbar {
display: flex;
align-items: center;
justify-content: space-between;
flex-shrink: 0;
padding: calc(var(--status-bar-height, 44px) + 12rpx) 24rpx 20rpx;
background: $color-bg-page;
}
.project-detail__back {
display: flex;
align-items: center;
justify-content: center;
width: 64rpx;
height: 64rpx;
}
.project-detail__back-icon {
width: 40rpx;
height: 40rpx;
}
.project-detail__navbar-title {
font-size: 34rpx;
font-weight: 600;
color: $color-text-primary;
}
.project-detail__navbar-placeholder {
width: 64rpx;
height: 64rpx;
}
.project-detail__scroll {
flex: 1;
height: 0;
}
.project-detail__content {
padding: 24rpx 24rpx calc(32rpx + env(safe-area-inset-bottom));
}
.project-detail__hero {
position: relative;
overflow: hidden;
border-radius: 20rpx;
}
.project-detail__hero-bg {
position: absolute;
top: 0;
left: 0;
z-index: 0;
width: 100%;
height: 100%;
}
.project-detail__hero-inner {
position: relative;
z-index: 1;
padding: 28rpx 24rpx;
}
.project-detail__hero-top {
display: flex;
align-items: flex-start;
justify-content: space-between;
}
.project-detail__tag {
padding: 4rpx 12rpx;
font-size: 20rpx;
color: $color-primary;
background: $color-primary-light;
border-radius: 6rpx;
}
.project-detail__hero-status {
display: flex;
flex-direction: column;
align-items: flex-end;
}
.project-detail__status {
font-size: 24rpx;
color: $color-text-secondary;
}
.project-detail__progress-text {
margin-top: 4rpx;
font-size: 24rpx;
color: $color-text-secondary;
}
.project-detail__title {
display: block;
margin-top: 20rpx;
font-size: 32rpx;
font-weight: 600;
color: $color-text-primary;
}
.project-detail__no {
display: block;
margin-top: 16rpx;
font-size: 22rpx;
color: #666666;
}
.project-detail__tabs {
display: flex;
margin-top: 24rpx;
}
.project-detail__tab {
flex: 1;
padding-bottom: 12rpx;
font-size: 28rpx;
text-align: center;
color: $color-text-secondary;
&--active {
font-weight: 600;
color: $color-text-primary;
border-bottom: 4rpx solid $color-primary;
}
}
.project-detail__panel {
margin-top: 24rpx;
padding: 28rpx 24rpx;
background: $color-bg-page;
border-radius: 20rpx;
}
.project-detail__panel-title {
display: block;
font-size: 30rpx;
font-weight: 600;
color: $color-text-primary;
}
.project-detail__dev-progress {
padding-bottom: 8rpx;
}
.project-detail__overall {
display: flex;
align-items: center;
justify-content: space-between;
margin-top: 24rpx;
}
.project-detail__overall-label {
font-size: 26rpx;
color: $color-text-secondary;
}
.project-detail__overall-value {
font-size: 28rpx;
font-weight: 600;
color: $color-primary;
}
.project-detail__slider {
margin-top: 20rpx;
}
.project-detail__slider-track {
position: relative;
height: 8rpx;
background: #e8eaef;
border-radius: 4rpx;
}
.project-detail__slider-fill {
position: absolute;
top: 0;
left: 0;
height: 100%;
background: $color-primary;
border-radius: 4rpx;
}
.project-detail__slider-thumb {
position: absolute;
top: 50%;
width: 24rpx;
height: 24rpx;
margin-left: -12rpx;
background: $color-bg-page;
border: 4rpx solid $color-primary;
border-radius: 50%;
transform: translateY(-50%);
}
.project-detail__dates {
display: flex;
align-items: center;
justify-content: space-between;
margin-top: 20rpx;
font-size: 22rpx;
color: $color-text-secondary;
}
.project-detail__timeline {
margin-top: 32rpx;
padding-top: 8rpx;
}
.project-detail__timeline-heading {
display: block;
margin-bottom: 24rpx;
}
.project-detail__timeline-item {
display: flex;
min-height: 96rpx;
}
.project-detail__timeline-left {
position: relative;
display: flex;
flex-direction: column;
align-items: center;
width: 48rpx;
margin-right: 20rpx;
}
.project-detail__timeline-dot {
display: flex;
align-items: center;
justify-content: center;
width: 40rpx;
height: 40rpx;
border-radius: 50%;
&--done {
background: $color-primary;
}
&--active {
background: $color-primary;
}
&--pending {
background: $color-bg-page;
border: 2rpx solid #d8dde6;
}
}
.project-detail__timeline-check {
font-size: 22rpx;
color: #ffffff;
}
.project-detail__timeline-index {
font-size: 22rpx;
color: #ffffff;
.project-detail__timeline-dot--pending & {
color: $color-text-secondary;
}
}
.project-detail__timeline-line {
flex: 1;
width: 2rpx;
min-height: 40rpx;
margin-top: 8rpx;
background: #e8eaef;
&--done {
background: $color-primary;
}
}
.project-detail__timeline-body {
flex: 1;
padding-bottom: 28rpx;
}
.project-detail__timeline-title {
display: block;
font-size: 28rpx;
color: $color-text-primary;
}
.project-detail__timeline-time,
.project-detail__timeline-status {
display: block;
margin-top: 8rpx;
font-size: 22rpx;
color: $color-text-secondary;
}
.project-detail__timeline-status--active {
color: $color-primary;
}
.project-detail__team {
margin-top: 32rpx;
padding-top: 28rpx;
border-top: 1rpx solid #f0f0f0;
}
.project-detail__team-scroll {
margin-top: 24rpx;
white-space: nowrap;
}
.project-detail__team-inner {
display: inline-flex;
gap: 32rpx;
}
.project-detail__member {
display: flex;
flex-direction: column;
align-items: center;
width: 140rpx;
}
.project-detail__avatar {
display: flex;
align-items: center;
justify-content: center;
width: 96rpx;
height: 96rpx;
font-size: 28rpx;
color: #ffffff;
background: $color-primary;
border-radius: 50%;
}
.project-detail__member-name {
margin-top: 12rpx;
font-size: 26rpx;
color: $color-text-primary;
}
.project-detail__member-role {
margin-top: 6rpx;
font-size: 22rpx;
color: $color-text-secondary;
}
.project-detail__files {
display: flex;
flex-wrap: wrap;
gap: 20rpx;
padding: 10rpx 10rpx 0 0;
}
.project-detail__file {
position: relative;
display: flex;
flex-direction: column;
align-items: center;
width: 160rpx;
padding: 20rpx 16rpx;
background: $color-bg-section;
border-radius: 12rpx;
}
.project-detail__file-remove {
position: absolute;
top: -10rpx;
right: -10rpx;
width: 32rpx;
height: 32rpx;
}
.project-detail__file-remove-icon {
width: 32rpx;
height: 32rpx;
}
.project-detail__file-icon {
width: 64rpx;
height: 64rpx;
}
.project-detail__file-name {
margin-top: 12rpx;
font-size: 22rpx;
color: $color-text-primary;
text-align: center;
word-break: break-all;
}
.project-detail__panel--section {
margin-top: 24rpx;
}
.project-detail__finance,
.project-detail__aftersales {
margin-top: 24rpx;
}
.project-detail__payment-card {
padding: 28rpx 24rpx;
margin-bottom: 24rpx;
background: $color-bg-page;
border-radius: 20rpx;
}
.project-detail__payment-header {
display: flex;
align-items: flex-start;
justify-content: space-between;
}
.project-detail__payment-title {
flex: 1;
padding-right: 16rpx;
font-size: 28rpx;
font-weight: 600;
color: $color-text-primary;
}
.project-detail__payment-tag {
flex-shrink: 0;
padding: 4rpx 12rpx;
font-size: 20rpx;
border-radius: 6rpx;
&--paid,
&--pending {
color: #ffffff;
background: $color-primary;
}
&--not_due {
color: $color-primary;
background: $color-primary-light;
}
}
.project-detail__payment-body {
display: flex;
align-items: flex-end;
justify-content: space-between;
margin-top: 20rpx;
}
.project-detail__payment-meta {
flex: 1;
min-width: 0;
padding-right: 16rpx;
}
.project-detail__payment-row {
display: block;
font-size: 22rpx;
line-height: 1.6;
color: #666666;
}
.project-detail__payment-amount {
flex-shrink: 0;
font-size: 36rpx;
font-weight: 600;
color: $color-text-primary;
}
.project-detail__payment-btn {
display: flex;
align-items: center;
justify-content: center;
height: 80rpx;
margin-top: 24rpx;
font-size: 28rpx;
color: #ffffff;
background: $color-primary;
border-radius: 12rpx;
}
.project-detail__aftersales-banner {
display: flex;
align-items: center;
padding: 24rpx;
margin-bottom: 24rpx;
background: #FF7D29;
border-radius: 20rpx;
}
.project-detail__aftersales-banner-icon {
display: flex;
align-items: center;
justify-content: center;
width: 72rpx;
height: 72rpx;
margin-right: 20rpx;
border-radius: 50%;
}
.project-detail__aftersales-banner-icon-img {
width: 59.16rpx;
height: 59.16rpx;
}
.project-detail__aftersales-banner-text {
flex: 1;
min-width: 0;
}
.project-detail__aftersales-banner-title {
display: block;
font-size: 30rpx;
font-weight: 600;
color: #ffffff;
}
.project-detail__aftersales-banner-desc {
display: block;
margin-top: 8rpx;
font-size: 22rpx;
line-height: 1.5;
color: rgba(255, 255, 255, 0.92);
}
.project-detail__info-row {
display: flex;
align-items: flex-start;
justify-content: space-between;
margin-top: 24rpx;
}
.project-detail__info-label {
flex-shrink: 0;
font-size: 26rpx;
color: #333333;
font-weight: 500;
}
.project-detail__info-value {
flex: 1;
margin-left: 24rpx;
font-size: 26rpx;
color: #999999;
text-align: right;
}
.project-detail__files--with-add {
align-items: flex-start;
}
.project-detail__file-add {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
width: 160rpx;
height: 160rpx;
background: $color-bg-section;
border: 1rpx dashed #d8dde6;
border-radius: 12rpx;
}
.project-detail__file-add-icon {
font-size: 40rpx;
line-height: 1;
color: $color-text-secondary;
}
.project-detail__file-add-text {
margin-top: 8rpx;
font-size: 20rpx;
color: $color-text-secondary;
}
.project-detail__aftersales-actions {
margin-top: 32rpx;
}
.project-detail__btn {
display: flex;
align-items: center;
justify-content: center;
height: 88rpx;
font-size: 30rpx;
border-radius: 12rpx;
&--primary {
color: #ffffff;
background: $color-primary;
}
&--outline {
margin-top: 20rpx;
color: $color-text-primary;
background: $color-bg-page;
border: 1rpx solid #e8eaef;
}
}

View File

@@ -1,7 +1,9 @@
<script setup lang="ts">
import { ref } from 'vue'
import { onLoad } from '@dcloudio/uni-app'
import { getProjectDetail } from '@/constants/project-detail'
import { getProjectDetail, PAYMENT_PLAN_STATUS_LABEL } from '@/constants/project-detail'
import type { PaymentPlanStatus } from '@/types/project-detail'
import afterSalesIcon from '@/static/icons/售后.png'
import cardBg from '@/static/icons/new-card.png'
import deleteIcon from '@/static/icons/X.png'
import type { ProjectDetail, ProjectDetailTab } from '@/types/project-detail'
@@ -20,8 +22,12 @@ const tabs: Array<{ key: ProjectDetailTab, label: string }> = [
onLoad((options) => {
const rawId = options?.id
const id = rawId ? decodeURIComponent(String(rawId)) : '1'
const tab = options?.tab ? decodeURIComponent(String(options.tab)) : ''
detail.value = getProjectDetail(id)
if (tab === 'aftersales' || tab === 'progress' || tab === 'files' || tab === 'finance')
activeTab.value = tab
if (!detail.value) {
uni.showToast({ title: '项目不存在', icon: 'none' })
setTimeout(() => uni.navigateBack(), 1500)
@@ -35,6 +41,40 @@ function handleBack() {
function handleSelectTab(key: ProjectDetailTab) {
activeTab.value = key
}
function paymentStatusClass(status: PaymentPlanStatus) {
return `project-detail__payment-tag--${status}`
}
function formatAmount(amount: number) {
return `¥ ${amount}`
}
function handlePayNow(planId: string) {
if (!detail.value)
return
uni.navigateTo({
url: `/pages/project-center/payment/index?projectId=${encodeURIComponent(detail.value.id)}&planId=${encodeURIComponent(planId)}`,
})
}
function handleApplyAfterSales() {
if (!detail.value)
return
uni.navigateTo({
url: `/pages/project-center/after-sales-apply/index?id=${encodeURIComponent(detail.value.id)}`,
})
}
function handleCancelAfterSales() {
uni.showToast({ title: '取消售后功能开发中', icon: 'none' })
}
function handleAddAfterSalesAttachment() {
uni.showToast({ title: '添加附件功能开发中', icon: 'none' })
}
</script>
<template>
@@ -97,23 +137,17 @@ function handleSelectTab(key: ProjectDetailTab) {
</view>
</view>
<scroll-view
class="project-detail__tabs"
scroll-x
:show-scrollbar="false"
>
<view class="project-detail__tabs-inner">
<text
v-for="tab in tabs"
:key="tab.key"
class="project-detail__tab"
:class="{ 'project-detail__tab--active': activeTab === tab.key }"
@tap="handleSelectTab(tab.key)"
>
{{ tab.label }}
</text>
<view class="project-detail__tabs">
<view
v-for="tab in tabs"
:key="tab.key"
class="project-detail__tab"
:class="{ 'project-detail__tab--active': activeTab === tab.key }"
@tap="handleSelectTab(tab.key)"
>
{{ tab.label }}
</view>
</scroll-view>
</view>
<view
v-if="activeTab === 'progress'"
@@ -268,20 +302,209 @@ function handleSelectTab(key: ProjectDetailTab) {
<view
v-else-if="activeTab === 'finance'"
class="project-detail__panel"
class="project-detail__finance"
>
<text class="project-detail__paragraph">
{{ detail.financeSummary }}
</text>
<view
v-for="plan in detail.paymentPlans"
:key="plan.id"
class="project-detail__payment-card"
>
<view class="project-detail__payment-header">
<text class="project-detail__payment-title">
{{ plan.title }} {{ plan.ratio }}
</text>
<text
class="project-detail__payment-tag"
:class="paymentStatusClass(plan.status)"
>
{{ PAYMENT_PLAN_STATUS_LABEL[plan.status] }}
</text>
</view>
<view class="project-detail__payment-body">
<view class="project-detail__payment-meta">
<text class="project-detail__payment-row">
交易流水号:{{ plan.transactionNo }}
</text>
<text class="project-detail__payment-row">
账单号:{{ plan.billNo }}
</text>
<text class="project-detail__payment-row">
关联项目:{{ plan.relatedProject }}
</text>
</view>
<text class="project-detail__payment-amount">
{{ formatAmount(plan.amount) }}
</text>
</view>
<view
v-if="plan.status === 'pending'"
class="project-detail__payment-btn"
@tap="handlePayNow(plan.id)"
>
立即支付
</view>
</view>
<view class="project-detail__panel project-detail__panel--section">
<text class="project-detail__panel-title">
付款计划
</text>
<view class="project-detail__files">
<view
v-for="file in detail.paymentPlanFiles"
:key="file.id"
class="project-detail__file"
>
<view class="project-detail__file-remove">
<image
class="project-detail__file-remove-icon"
:src="deleteIcon"
mode="aspectFit"
/>
</view>
<image
class="project-detail__file-icon"
:src="file.icon"
mode="aspectFit"
/>
<text class="project-detail__file-name">
{{ file.name }}
</text>
</view>
</view>
</view>
<view class="project-detail__panel project-detail__panel--section">
<text class="project-detail__panel-title">
合同文件
</text>
<view class="project-detail__files">
<view
v-for="file in detail.contractFiles"
:key="file.id"
class="project-detail__file"
>
<view class="project-detail__file-remove">
<image
class="project-detail__file-remove-icon"
:src="deleteIcon"
mode="aspectFit"
/>
</view>
<image
class="project-detail__file-icon"
:src="file.icon"
mode="aspectFit"
/>
<text class="project-detail__file-name">
{{ file.name }}
</text>
</view>
</view>
</view>
</view>
<view
v-else
class="project-detail__panel"
class="project-detail__aftersales"
>
<text class="project-detail__paragraph">
{{ detail.afterSalesSummary }}
</text>
<view
v-if="detail.afterSales.processing"
class="project-detail__aftersales-banner"
>
<view class="project-detail__aftersales-banner-icon">
<image
class="project-detail__aftersales-banner-icon-img"
:src="afterSalesIcon"
mode="aspectFit"
/>
</view>
<view class="project-detail__aftersales-banner-text">
<text class="project-detail__aftersales-banner-title">
{{ detail.afterSales.bannerTitle }}
</text>
<text class="project-detail__aftersales-banner-desc">
{{ detail.afterSales.bannerDesc }}
</text>
</view>
</view>
<view class="project-detail__panel">
<text class="project-detail__panel-title">
售后信息
</text>
<view class="project-detail__info-row">
<text class="project-detail__info-label">
售后类型
</text>
<text class="project-detail__info-value">
{{ detail.afterSales.type }}
</text>
</view>
<view class="project-detail__info-row">
<text class="project-detail__info-label">
问题描述
</text>
<text class="project-detail__info-value">
{{ detail.afterSales.description }}
</text>
</view>
</view>
<view class="project-detail__panel project-detail__panel--section">
<text class="project-detail__panel-title">
附件
</text>
<view class="project-detail__files project-detail__files--with-add">
<view
v-for="file in detail.afterSales.attachments"
:key="file.id"
class="project-detail__file"
>
<view class="project-detail__file-remove">
<image
class="project-detail__file-remove-icon"
:src="deleteIcon"
mode="aspectFit"
/>
</view>
<image
class="project-detail__file-icon"
:src="file.icon"
mode="aspectFit"
/>
<text class="project-detail__file-name">
{{ file.name }}
</text>
</view>
<view
class="project-detail__file-add"
@tap="handleAddAfterSalesAttachment"
>
<text class="project-detail__file-add-icon">
+
</text>
<text class="project-detail__file-add-text">
添加附件
</text>
</view>
</view>
</view>
<view class="project-detail__aftersales-actions">
<view
class="project-detail__btn project-detail__btn--primary"
@tap="handleApplyAfterSales"
>
申请售后
</view>
<view
class="project-detail__btn project-detail__btn--outline"
@tap="handleCancelAfterSales"
>
取消售后
</view>
</view>
</view>
</view>
</scroll-view>
@@ -289,415 +512,5 @@ function handleSelectTab(key: ProjectDetailTab) {
</template>
<style scoped lang="scss">
@import '@/styles/variables.scss';
.project-detail {
display: flex;
flex-direction: column;
min-height: 100vh;
background: $color-bg-section;
}
.project-detail__navbar {
display: flex;
align-items: center;
justify-content: space-between;
flex-shrink: 0;
padding: calc(var(--status-bar-height, 44px) + 12rpx) 24rpx 20rpx;
background: $color-bg-page;
}
.project-detail__back {
display: flex;
align-items: center;
justify-content: center;
width: 64rpx;
height: 64rpx;
}
.project-detail__back-icon {
width: 40rpx;
height: 40rpx;
}
.project-detail__navbar-title {
font-size: 34rpx;
font-weight: 600;
color: $color-text-primary;
}
.project-detail__navbar-placeholder {
width: 64rpx;
height: 64rpx;
}
.project-detail__scroll {
flex: 1;
height: 0;
}
.project-detail__content {
padding: 24rpx 24rpx calc(32rpx + env(safe-area-inset-bottom));
}
.project-detail__hero {
position: relative;
overflow: hidden;
border-radius: 20rpx;
}
.project-detail__hero-bg {
position: absolute;
top: 0;
left: 0;
z-index: 0;
width: 100%;
height: 100%;
}
.project-detail__hero-inner {
position: relative;
z-index: 1;
padding: 28rpx 24rpx;
}
.project-detail__hero-top {
display: flex;
align-items: flex-start;
justify-content: space-between;
}
.project-detail__tag {
padding: 4rpx 12rpx;
font-size: 20rpx;
color: $color-primary;
background: $color-primary-light;
border-radius: 6rpx;
}
.project-detail__hero-status {
display: flex;
flex-direction: column;
align-items: flex-end;
}
.project-detail__status {
font-size: 24rpx;
color: $color-text-secondary;
}
.project-detail__progress-text {
margin-top: 4rpx;
font-size: 24rpx;
color: $color-text-secondary;
}
.project-detail__title {
display: block;
margin-top: 20rpx;
font-size: 32rpx;
font-weight: 600;
color: $color-text-primary;
}
.project-detail__no {
display: block;
margin-top: 16rpx;
font-size: 22rpx;
color: #666666;
}
.project-detail__tabs {
margin-top: 24rpx;
white-space: nowrap;
}
.project-detail__tabs-inner {
display: inline-flex;
gap: 32rpx;
padding: 0 4rpx;
}
.project-detail__tab {
flex-shrink: 0;
padding-bottom: 12rpx;
font-size: 28rpx;
color: $color-text-secondary;
&--active {
font-weight: 600;
color: $color-text-primary;
border-bottom: 4rpx solid $color-primary;
}
}
.project-detail__panel {
margin-top: 24rpx;
padding: 28rpx 24rpx;
background: $color-bg-page;
border-radius: 20rpx;
}
.project-detail__panel-title {
display: block;
font-size: 30rpx;
font-weight: 600;
color: $color-text-primary;
}
.project-detail__dev-progress {
padding-bottom: 8rpx;
}
.project-detail__overall {
display: flex;
align-items: center;
justify-content: space-between;
margin-top: 24rpx;
}
.project-detail__overall-label {
font-size: 26rpx;
color: $color-text-secondary;
}
.project-detail__overall-value {
font-size: 28rpx;
font-weight: 600;
color: $color-primary;
}
.project-detail__slider {
margin-top: 20rpx;
}
.project-detail__slider-track {
position: relative;
height: 8rpx;
background: #e8eaef;
border-radius: 4rpx;
}
.project-detail__slider-fill {
position: absolute;
top: 0;
left: 0;
height: 100%;
background: $color-primary;
border-radius: 4rpx;
}
.project-detail__slider-thumb {
position: absolute;
top: 50%;
width: 24rpx;
height: 24rpx;
margin-left: -12rpx;
background: $color-bg-page;
border: 4rpx solid $color-primary;
border-radius: 50%;
transform: translateY(-50%);
}
.project-detail__dates {
display: flex;
align-items: center;
justify-content: space-between;
margin-top: 20rpx;
font-size: 22rpx;
color: $color-text-secondary;
}
.project-detail__timeline {
margin-top: 32rpx;
padding-top: 8rpx;
}
.project-detail__timeline-heading {
display: block;
margin-bottom: 24rpx;
}
.project-detail__timeline-item {
display: flex;
min-height: 96rpx;
}
.project-detail__timeline-left {
position: relative;
display: flex;
flex-direction: column;
align-items: center;
width: 48rpx;
margin-right: 20rpx;
}
.project-detail__timeline-dot {
display: flex;
align-items: center;
justify-content: center;
width: 40rpx;
height: 40rpx;
border-radius: 50%;
&--done {
background: $color-primary;
}
&--active {
background: $color-primary;
}
&--pending {
background: $color-bg-page;
border: 2rpx solid #d8dde6;
}
}
.project-detail__timeline-check {
font-size: 22rpx;
color: #ffffff;
}
.project-detail__timeline-index {
font-size: 22rpx;
color: #ffffff;
.project-detail__timeline-dot--pending & {
color: $color-text-secondary;
}
}
.project-detail__timeline-line {
flex: 1;
width: 2rpx;
min-height: 40rpx;
margin-top: 8rpx;
background: #e8eaef;
&--done {
background: $color-primary;
}
}
.project-detail__timeline-body {
flex: 1;
padding-bottom: 28rpx;
}
.project-detail__timeline-title {
display: block;
font-size: 28rpx;
color: $color-text-primary;
}
.project-detail__timeline-time,
.project-detail__timeline-status {
display: block;
margin-top: 8rpx;
font-size: 22rpx;
color: $color-text-secondary;
}
.project-detail__timeline-status--active {
color: $color-primary;
}
.project-detail__team {
margin-top: 32rpx;
padding-top: 28rpx;
border-top: 1rpx solid #f0f0f0;
}
.project-detail__team-scroll {
margin-top: 24rpx;
white-space: nowrap;
}
.project-detail__team-inner {
display: inline-flex;
gap: 32rpx;
}
.project-detail__member {
display: flex;
flex-direction: column;
align-items: center;
width: 140rpx;
}
.project-detail__avatar {
display: flex;
align-items: center;
justify-content: center;
width: 96rpx;
height: 96rpx;
font-size: 28rpx;
color: #ffffff;
background: $color-primary;
border-radius: 50%;
}
.project-detail__member-name {
margin-top: 12rpx;
font-size: 26rpx;
color: $color-text-primary;
}
.project-detail__member-role {
margin-top: 6rpx;
font-size: 22rpx;
color: $color-text-secondary;
}
.project-detail__files {
display: flex;
flex-wrap: wrap;
gap: 20rpx;
padding: 10rpx 10rpx 0 0;
}
.project-detail__file {
position: relative;
display: flex;
flex-direction: column;
align-items: center;
width: 160rpx;
padding: 20rpx 16rpx;
background: $color-bg-section;
border-radius: 12rpx;
}
.project-detail__file-remove {
position: absolute;
top: -10rpx;
right: -10rpx;
width: 32rpx;
height: 32rpx;
}
.project-detail__file-remove-icon {
width: 32rpx;
height: 32rpx;
}
.project-detail__file-icon {
width: 64rpx;
height: 64rpx;
}
.project-detail__file-name {
margin-top: 12rpx;
font-size: 22rpx;
color: $color-text-primary;
text-align: center;
word-break: break-all;
}
.project-detail__paragraph {
display: block;
font-size: 28rpx;
line-height: 1.8;
color: $color-text-primary;
}
@import './index.scss';
</style>