Files
yunzerwebsiteallinone/uniapp/pages/crm/project/index.vue
T
2026-11-17 17:16:02 +08:00

1030 lines
25 KiB
Vue
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<template>
<view class="page" :class="{ 'list-page': mode === 'list' }">
<view v-if="mode !== 'list'" class="page-header">
<view class="back-btn" @tap="goBack">
<FaIcon name="chevron-left" color="#64748b" :size="18" />
<text>返回</text>
</view>
<text class="page-title">{{ pageHeaderTitle }}</text>
</view>
<!-- 列表态:左侧项目类型分类,右侧项目列表 -->
<view v-if="mode === 'list'" class="split">
<scroll-view class="side" scroll-y>
<view
v-for="cat in categories"
:key="cat.value"
class="side-item"
:class="{ active: category === cat.value }"
@tap="switchCategory(cat.value)"
>
<text>{{ cat.label }}</text>
</view>
</scroll-view>
<view class="main">
<view class="filter-bar">
<view class="search-box">
<FaIcon name="magnifying-glass" color="#94a3b8" :size="16" />
<input
v-model="keyword"
class="search-input"
placeholder="搜索项目名称/单号/客户/供应商"
confirm-type="search"
@confirm="refresh"
/>
<text v-if="keyword" class="search-clear" @tap="clearKeyword">清空</text>
</view>
<scroll-view scroll-x class="status-scroll">
<view class="status-row">
<view
v-for="t in STATUS_ALL"
:key="t.value"
class="status-chip"
:class="{ active: status === t.value }"
@tap="switchStatus(t.value)"
>
<text>{{ t.label }}</text>
</view>
</view>
</scroll-view>
<view class="sum-row">
<text class="sum-item">共 {{ total }} 个项目</text>
<text class="sum-item">进行中 ¥{{ moneyText(openAmount) }}</text>
</view>
</view>
<scroll-view class="list-scroll" scroll-y @scrolltolower="loadMore">
<view v-if="loading && !list.length" class="state-box">
<text class="state-text">加载中...</text>
</view>
<view v-else-if="!list.length" class="state-box">
<u-empty mode="search" text="暂无匹配的项目" />
<text class="state-tip">可切换左侧分类或新建项目</text>
</view>
<template v-else>
<view v-for="row in list" :key="row.id" class="p-card" @tap="openDetail(row)">
<view class="p-top">
<text class="p-name">{{ row.project_name }}</text>
<u-tag :text="projectStatusLabel(row.status)" :type="statusTagType(row.status)" size="mini" />
</view>
<view class="p-meta">
<text>{{ row.project_type_label || projectTypeLabel(row.project_type) }}</text>
<text v-if="row.customer_name">客户 {{ row.customer_name }}</text>
<text>金额 ¥{{ moneyText(row.amount) }}</text>
</view>
<view class="p-bottom">
<text v-if="row.project_no">单号 {{ row.project_no }}</text>
<text v-else>暂无单号</text>
<text class="p-date">{{ row.start_date || '未登记开始日期' }}</text>
</view>
</view>
<view v-if="!finished" class="load-done">
<text>{{ loading ? '加载中...' : '上拉加载更多' }}</text>
</view>
<view v-else class="load-done">
<text>没有更多了</text>
</view>
</template>
</scroll-view>
<view class="fab" @tap="createProject">
<FaIcon name="plus" color="#ffffff" :size="20" />
<text>新建项目</text>
</view>
</view>
</view>
<!-- 详情态 -->
<view v-else-if="mode === 'detail' && current">
<view class="head-card">
<view class="head-top">
<text class="head-type">{{ current.project_type_label || projectTypeLabel(current.project_type) }}</text>
<u-tag :text="projectStatusLabel(current.status)" :type="statusTagType(current.status)" size="mini" />
</view>
<text class="head-name">{{ current.project_name }}</text>
<text class="head-no">{{ current.project_no || '暂无单号' }}</text>
<view class="head-grid">
<view class="head-cell">
<text class="cell-label">项目金额</text>
<text class="cell-value">¥{{ moneyText(current.amount) }}</text>
</view>
<view class="head-cell">
<text class="cell-label">上游金额</text>
<text class="cell-value">¥{{ moneyText(current.upstream_amount) }}</text>
</view>
<view class="head-cell">
<text class="cell-label">下游金额</text>
<text class="cell-value">¥{{ moneyText(current.downstream_amount) }}</text>
</view>
<view class="head-cell">
<text class="cell-label">归属人</text>
<text class="cell-value">{{ current.owner_user_name || '—' }}</text>
</view>
</view>
</view>
<view class="card">
<view class="block-head">
<text class="block-title">基本信息</text>
</view>
<view class="line">
<text class="line-label">客户</text>
<text class="line-value">{{ current.customer_name || '—' }}</text>
</view>
<view class="line">
<text class="line-label">供应商</text>
<text class="line-value">{{ current.supplier_name || '—' }}</text>
</view>
<view class="line">
<text class="line-label">行业</text>
<text class="line-value">{{ current.industry || '—' }}</text>
</view>
<view class="line">
<text class="line-label">开始日期</text>
<text class="line-value">{{ current.start_date || '—' }}</text>
</view>
<view class="line">
<text class="line-label">结束日期</text>
<text class="line-value">{{ current.end_date || '—' }}</text>
</view>
<view class="line">
<text class="line-label">地址</text>
<text class="line-value">{{ current.address || '—' }}</text>
</view>
<view v-if="current.remark" class="remark">
<text>备注:{{ current.remark }}</text>
</view>
</view>
<view class="card">
<view class="block-head">
<text class="block-title">联系人</text>
</view>
<view class="line">
<text class="line-label">上游联系人</text>
<text class="line-value">{{ current.upstream_contact || '—' }}</text>
</view>
<view class="line">
<text class="line-label">上游电话</text>
<text class="line-value">{{ current.upstream_phone || '—' }}</text>
</view>
<view class="line">
<text class="line-label">下游联系人</text>
<text class="line-value">{{ current.downstream_contact || '—' }}</text>
</view>
<view class="line">
<text class="line-label">下游电话</text>
<text class="line-value">{{ current.downstream_phone || '—' }}</text>
</view>
</view>
<view class="actions">
<view class="act" @tap="goEdit">编辑</view>
<view class="act ghost" @tap="showChangeStatus">变更状态</view>
<view class="act ghost danger" @tap="onDelete">删除</view>
</view>
</view>
<!-- 编辑/新建表单 -->
<view v-else-if="mode === 'edit'">
<view class="card edit-card">
<view class="form-item">
<text class="form-label">项目名称 <text class="required">*</text></text>
<input
v-model="form.projectName"
class="form-input"
placeholder="请输入项目名称"
maxlength="100"
/>
</view>
<view class="form-item">
<text class="form-label">项目单号</text>
<input
v-model="form.projectNo"
class="form-input"
placeholder="选填,便于内部管理"
maxlength="50"
/>
</view>
<view class="form-item">
<text class="form-label">项目类型</text>
<picker
:range="projectTypeOptions()"
:range-key="'label'"
:value="typeIndex"
@change="onTypeChange"
>
<view class="form-input pick-value">
<text>{{ projectTypeLabel(form.projectType) }}</text>
<FaIcon name="chevron-right" color="#94a3b8" :size="12" />
</view>
</picker>
</view>
<view class="form-item">
<text class="form-label">客户</text>
<input
v-model="form.customerName"
class="form-input"
placeholder="客户名称(可为空)"
maxlength="100"
/>
</view>
<view class="form-item">
<text class="form-label">供应商</text>
<input
v-model="form.supplierName"
class="form-input"
placeholder="选填"
maxlength="100"
/>
</view>
<view class="form-item">
<text class="form-label">行业</text>
<input
v-model="form.industry"
class="form-input"
placeholder="选填"
maxlength="50"
/>
</view>
<view class="form-row">
<view class="form-item half">
<text class="form-label">上游金额</text>
<input
v-model.number="form.upstreamAmount"
class="form-input"
type="digit"
placeholder="0.00"
/>
</view>
<view class="form-item half">
<text class="form-label">下游金额</text>
<input
v-model.number="form.downstreamAmount"
class="form-input"
type="digit"
placeholder="0.00"
/>
</view>
</view>
<view class="form-row">
<view class="form-item half">
<text class="form-label">开始日期</text>
<picker mode="date" :value="form.startDate" @change="onStartDateChange">
<view class="form-input pick-value">
<text>{{ form.startDate || '选择日期' }}</text>
<FaIcon name="chevron-right" color="#94a3b8" :size="12" />
</view>
</picker>
</view>
<view class="form-item half">
<text class="form-label">结束日期</text>
<picker mode="date" :value="form.endDate" @change="onEndDateChange">
<view class="form-input pick-value">
<text>{{ form.endDate || '选择日期' }}</text>
<FaIcon name="chevron-right" color="#94a3b8" :size="12" />
</view>
</picker>
</view>
</view>
<view class="form-item">
<text class="form-label">上游联系人</text>
<input v-model="form.upstreamContact" class="form-input" placeholder="选填" maxlength="50" />
</view>
<view class="form-item">
<text class="form-label">上游电话</text>
<input v-model="form.upstreamPhone" class="form-input" type="number" placeholder="选填" maxlength="20" />
</view>
<view class="form-item">
<text class="form-label">下游联系人</text>
<input v-model="form.downstreamContact" class="form-input" placeholder="选填" maxlength="50" />
</view>
<view class="form-item">
<text class="form-label">下游电话</text>
<input v-model="form.downstreamPhone" class="form-input" type="number" placeholder="选填" maxlength="20" />
</view>
<view class="form-item">
<text class="form-label">地址</text>
<input v-model="form.address" class="form-input" placeholder="选填" maxlength="255" />
</view>
<view class="form-item">
<text class="form-label">项目状态</text>
<picker :range="projectStatusOptions()" :range-key="'label'" :value="statusIndex" @change="onStatusChange">
<view class="form-input pick-value">
<text>{{ projectStatusLabel(form.status) }}</text>
<FaIcon name="chevron-right" color="#94a3b8" :size="12" />
</view>
</picker>
</view>
<view class="form-item" v-if="form.status === 5">
<text class="form-label">异常原因 <text class="required">*</text></text>
<textarea
v-model="form.reason"
class="form-textarea"
placeholder="请填写项目异常原因"
maxlength="500"
/>
</view>
<view class="form-item">
<text class="form-label">备注</text>
<textarea
v-model="form.remark"
class="form-textarea"
placeholder="选填"
maxlength="1000"
/>
</view>
</view>
<view class="actions">
<view class="act ghost" @tap="mode = 'detail'">取消</view>
<view class="act" :class="{ disabled: saving }" @tap="onSave">保存</view>
</view>
</view>
</view>
</template>
<script setup>
import { computed, ref } from 'vue'
import { onLoad } from '@dcloudio/uni-app'
import FaIcon from '@/components/FaIcon.vue'
const pageHeaderTitle = computed(() =>
mode.value === 'edit' ? (form.value.id ? '编辑项目' : '新建项目') : current.value?.project_name || '项目详情'
)
function goBack() {
if (mode.value === 'edit') {
if (current.value) {
mode.value = 'detail'
} else {
uni.navigateBack()
}
} else {
uni.navigateBack()
}
}
import {
deleteProject,
fetchProjects,
getProject,
projectStatusLabel,
projectStatusOptions,
projectTypeLabel,
projectTypeOptions,
saveProject,
changeProjectStatus
} from '@/api/erp-crm.js'
import { moneyText } from '@/api/erp.js'
const STATUS_ALL = [
{ value: '', label: '全部' },
{ value: 1, label: '未开始' },
{ value: 2, label: '进行中' },
{ value: 3, label: '已完成' },
{ value: 4, label: '已暂停' },
{ value: 5, label: '异常' }
]
const mode = ref('list') // list | detail | edit
const list = ref([])
const total = ref(0)
const page = ref(1)
const loading = ref(false)
const finished = ref(false)
const keyword = ref('')
const status = ref('')
const category = ref(0)
const categories = computed(() => [{ value: 0, label: '全部项目' }, ...projectTypeOptions()])
const current = ref(null)
const saving = ref(false)
const form = ref({})
const reason = ref('')
onLoad((query = {}) => {
if (query.id) {
loadDetail(Number(query.id))
} else {
refresh()
}
})
const typeIndex = computed(() => {
const idx = projectTypeOptions().findIndex((o) => o.value === form.value.projectType)
return idx >= 0 ? idx : 0
})
const statusIndex = computed(() => {
const idx = projectStatusOptions().findIndex((o) => o.value === form.value.status)
return idx >= 0 ? idx : 0
})
const openAmount = computed(() =>
list.value.reduce((sum, r) => sum + (r.status === 2 ? Number(r.amount || 0) : 0), 0)
)
async function refresh() {
page.value = 1
finished.value = false
list.value = []
await loadPage()
}
async function loadPage() {
loading.value = true
try {
const data = await fetchProjects({
page: page.value,
pageSize: 20,
keyword: keyword.value.trim(),
status: status.value,
projectType: category.value || ''
})
list.value = page.value === 1 ? data.list : [...list.value, ...data.list]
total.value = data.total || 0
finished.value = list.value.length >= total.value
} catch (e) {
if (page.value > 1) page.value -= 1
} finally {
loading.value = false
}
}
function loadMore() {
if (loading.value || finished.value) return
page.value += 1
loadPage()
}
function switchCategory(value) {
if (category.value === value) return
category.value = value
refresh()
}
function switchStatus(value) {
if (status.value === value) return
status.value = value
refresh()
}
function clearKeyword() {
keyword.value = ''
refresh()
}
async function loadDetail(id) {
const p = await getProject(id)
if (p) {
current.value = p
mode.value = 'detail'
uni.setNavigationBarTitle({ title: p.project_name || '项目详情' })
} else {
uni.showToast({ title: '项目未找到', icon: 'none' })
uni.navigateBack()
}
}
function openDetail(row) {
uni.navigateTo({ url: `/pages/crm/project/index?id=${row.id}` })
}
function createProject() {
form.value = {
projectName: '',
projectNo: '',
projectType: 1,
customerName: '',
supplierName: '',
industry: '',
upstreamAmount: 0,
downstreamAmount: 0,
startDate: '',
endDate: '',
upstreamContact: '',
upstreamPhone: '',
downstreamContact: '',
downstreamPhone: '',
address: '',
status: 1,
remark: '',
reason: ''
}
reason.value = ''
mode.value = 'edit'
uni.setNavigationBarTitle({ title: '新建项目' })
}
function goEdit() {
const p = current.value
form.value = {
id: p.id,
projectName: p.project_name,
projectNo: p.project_no,
projectType: p.project_type,
customerName: p.customer_name || '',
supplierName: p.supplier_name || '',
industry: p.industry || '',
upstreamAmount: p.upstream_amount,
downstreamAmount: p.downstream_amount,
startDate: p.start_date || '',
endDate: p.end_date || '',
upstreamContact: p.upstream_contact || '',
upstreamPhone: p.upstream_phone || '',
downstreamContact: p.downstream_contact || '',
downstreamPhone: p.downstream_phone || '',
address: p.address || '',
status: p.status,
remark: p.remark || '',
reason: ''
}
reason.value = ''
mode.value = 'edit'
uni.setNavigationBarTitle({ title: '编辑项目' })
}
function onTypeChange(e) {
form.value.projectType = projectTypeOptions()[e.detail.value].value
}
function onStatusChange(e) {
form.value.status = projectStatusOptions()[e.detail.value].value
}
function onStartDateChange(e) {
form.value.startDate = e.detail.value
}
function onEndDateChange(e) {
form.value.endDate = e.detail.value
}
function showChangeStatus() {
const options = projectStatusOptions().filter((o) => o.value !== current.value.status)
uni.showActionSheet({
itemList: options.map((o) => o.label),
success: (res) => {
const target = options[res.tapIndex]
if (target) onStatusSelect({ value: target.value })
}
})
}
async function onStatusSelect(action) {
if (action.value === 5) {
const res = await uni.showModal({
title: '异常原因',
editable: true,
placeholderText: '请输入项目异常原因',
confirmColor: '#2563eb'
})
if (!res.confirm || !String(res.content || '').trim()) {
if (res.confirm) uni.showToast({ title: '请填写异常原因', icon: 'none' })
return
}
reason.value = String(res.content).trim()
} else {
reason.value = ''
}
uni.showLoading({ title: '处理中...' })
try {
await changeProjectStatus(current.value.id, action.value, reason.value)
uni.showToast({ title: '状态已更新', icon: 'success' })
await loadDetail(current.value.id)
} catch (e) {
uni.showToast({ title: e.message || '更新失败', icon: 'none' })
} finally {
uni.hideLoading()
}
}
async function onSave() {
if (!form.value.projectName || !form.value.projectName.trim()) {
uni.showToast({ title: '项目名称不能为空', icon: 'none' })
return
}
const toAbnormal = form.value.status === 5 && (!form.value.id || current.value?.status !== 5)
if (toAbnormal && (!form.value.reason || !form.value.reason.trim())) {
uni.showToast({ title: '请填写异常原因', icon: 'none' })
return
}
saving.value = true
try {
const isCreate = !form.value.id
const res = await saveProject(form.value)
const savedId = Number(form.value.id || res?.id || 0)
uni.showToast({ title: isCreate ? '创建成功' : '保存成功', icon: 'success' })
mode.value = 'detail'
await loadDetail(savedId)
} catch (e) {
uni.showToast({ title: e.message || '保存失败', icon: 'none' })
} finally {
saving.value = false
}
}
async function onDelete() {
const res = await uni.showModal({
title: '删除项目',
content: `确定删除项目「${current.value.project_name}」吗?此操作不可撤销。`,
confirmColor: '#ef4444'
})
if (!res.confirm) return
try {
await deleteProject(current.value.id)
uni.showToast({ title: '删除成功', icon: 'success' })
uni.navigateBack()
} catch (e) {
uni.showToast({ title: e.message || '删除失败', icon: 'none' })
}
}
function statusTagType(s) {
const map = { 1: 'info', 2: 'primary', 3: 'warning', 4: 'danger', 5: 'error' }
return map[s] || 'info'
}
</script>
<style lang="scss" scoped>
@import '@/src/styles/page-common.scss';
.page {
min-height: 100vh;
background: $color-bg-page;
padding-bottom: calc(160rpx + env(safe-area-inset-bottom));
&.list-page {
height: 100vh;
min-height: 0;
padding-bottom: 0;
overflow: hidden;
}
}
.split {
display: flex;
height: 100%;
overflow: hidden;
}
.side {
width: 200rpx;
flex-shrink: 0;
height: 100%;
background: #f1f5f9;
border-right: 1rpx solid $color-border;
}
.side-item {
position: relative;
padding: 30rpx 12rpx;
text-align: center;
font-size: 25rpx;
color: $color-text-secondary;
line-height: 1.4;
&.active {
background: $color-card;
color: $color-primary;
font-weight: 600;
&::before {
content: '';
position: absolute;
left: 0;
top: 50%;
transform: translateY(-50%);
width: 6rpx;
height: 40rpx;
border-radius: 0 6rpx 6rpx 0;
background: $color-primary;
}
}
}
.main {
flex: 1;
min-width: 0;
height: 100%;
display: flex;
flex-direction: column;
position: relative;
}
.list-scroll {
flex: 1;
min-height: 0;
}
.filter-bar {
flex-shrink: 0;
background: $color-bg-page;
padding: 20rpx 20rpx 8rpx;
}
.search-box {
display: flex;
align-items: center;
gap: 12rpx;
height: 72rpx;
padding: 0 24rpx;
background: $color-card;
border-radius: $radius-full;
box-shadow: $shadow-card;
margin-bottom: 16rpx;
.search-input {
flex: 1;
font-size: 26rpx;
color: $color-text;
}
.search-clear {
font-size: 24rpx;
color: $color-text-muted;
}
}
.status-scroll {
white-space: nowrap;
}
.status-row {
display: inline-flex;
gap: 12rpx;
}
.status-chip {
display: inline-block;
padding: 8rpx 28rpx;
border-radius: $radius-full;
background: $color-card;
font-size: 24rpx;
color: $color-text-secondary;
box-shadow: $shadow-card;
&.active {
background: #2563eb;
color: #ffffff;
font-weight: 500;
}
}
.sum-row {
display: flex;
justify-content: space-between;
padding: 16rpx 8rpx 4rpx;
.sum-item {
font-size: 24rpx;
color: $color-text-muted;
}
}
.p-card {
@include card;
margin: 0 20rpx 20rpx;
padding: 24rpx 28rpx;
&:active {
opacity: 0.85;
}
}
.p-top {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16rpx;
.p-name {
flex: 1;
font-size: 29rpx;
font-weight: 500;
color: $color-text;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
}
.p-meta {
display: flex;
flex-wrap: wrap;
gap: 8rpx 24rpx;
margin-top: 10rpx;
font-size: 23rpx;
color: $color-text-muted;
}
.p-bottom {
display: flex;
justify-content: space-between;
align-items: center;
margin-top: 12rpx;
font-size: 22rpx;
color: $color-text-muted;
.p-date {
color: $color-text-muted;
}
}
.head-card {
@include card;
margin: 24rpx $page-padding-x 0;
padding: 24rpx 28rpx;
.head-top {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 12rpx;
}
.head-type {
font-size: 24rpx;
color: $color-text-muted;
}
.head-name {
font-size: 34rpx;
font-weight: 600;
color: $color-text;
margin-bottom: 6rpx;
}
.head-no {
font-size: 24rpx;
color: $color-text-muted;
margin-bottom: 16rpx;
}
.head-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 16rpx 24rpx;
}
.head-cell {
.cell-label {
font-size: 22rpx;
color: $color-text-muted;
}
.cell-value {
font-size: 26rpx;
color: $color-text;
margin-top: 4rpx;
display: block;
}
}
}
.line {
display: flex;
justify-content: space-between;
align-items: center;
padding: 14rpx 0;
border-bottom: 1rpx solid $color-divider;
.line-label {
font-size: 25rpx;
color: $color-text-muted;
}
.line-value {
font-size: 25rpx;
color: $color-text;
}
}
.remark {
padding: 14rpx 0 0;
font-size: 24rpx;
color: $color-text-secondary;
line-height: 1.6;
}
.block-head {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 12rpx;
}
.block-title {
@include section-title;
}
.form-item {
padding: 16rpx 0;
border-bottom: 1rpx solid $color-divider;
&.half {
width: 50%;
}
}
.form-row {
display: flex;
}
.form-label {
font-size: 24rpx;
color: $color-text-secondary;
margin-bottom: 10rpx;
.required {
color: #ef4444;
}
}
.form-input {
height: 72rpx;
line-height: 72rpx;
padding: 0 16rpx;
font-size: 26rpx;
color: $color-text;
background: $color-bg-page;
border-radius: $radius-sm;
}
.pick-value {
display: flex;
justify-content: space-between;
align-items: center;
}
.form-textarea {
min-height: 100rpx;
padding: 14rpx 16rpx;
font-size: 26rpx;
color: $color-text;
background: $color-bg-page;
border-radius: $radius-sm;
line-height: 1.5;
}
.actions {
display: flex;
justify-content: space-around;
margin: 24rpx $page-padding-x;
.act {
flex: 1;
text-align: center;
height: 76rpx;
line-height: 76rpx;
font-size: 26rpx;
font-weight: 500;
color: #2563eb;
background: #eff6ff;
border-radius: $radius-full;
margin: 0 10rpx;
&.ghost {
color: $color-text-secondary;
background: $color-card;
}
&.danger {
color: #ef4444;
background: #fef2f2;
}
&.disabled {
opacity: 0.5;
}
}
}
.fab {
position: absolute;
left: 50%;
transform: translateX(-50%);
bottom: calc(48rpx + env(safe-area-inset-bottom));
display: flex;
align-items: center;
gap: 10rpx;
height: 84rpx;
padding: 0 44rpx;
border-radius: $radius-full;
background: #2563eb;
color: #ffffff;
font-size: 27rpx;
font-weight: 500;
box-shadow: 0 8rpx 24rpx rgba(37, 99, 235, 0.4);
&:active {
opacity: 0.85;
}
}
.page-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 20rpx $page-padding-x;
background: $color-card;
border-bottom: 1rpx solid $color-border;
.back-btn {
display: flex;
align-items: center;
gap: 6rpx;
font-size: 26rpx;
color: #64748b;
}
.page-title {
font-size: 30rpx;
font-weight: 600;
color: $color-text;
}
}
.state-box {
display: flex;
flex-direction: column;
align-items: center;
padding: 120rpx 40rpx;
.state-text,
.state-tip {
font-size: 26rpx;
color: $color-text-muted;
margin-top: 16rpx;
}
}
.load-done {
display: flex;
justify-content: center;
padding: 8rpx 0 24rpx;
font-size: 24rpx;
color: $color-text-muted;
}
</style>