1. 账号体系与数据库解耦: - 师傅表 fa_master 解除对 fa_user.id 的外键依赖,升级为独立认证账号主表; - 新增师傅端独立支撑表:fa_master_security、fa_master_token、fa_master_wechat、fa_master_agreement_read; - 新增工单超时未接单自动关闭与原路退款配置(order_unaccepted_close_days)。 2. 服务端(Server): - 新增师傅端独立 API 控制器与认证库(MasterAuth, MasterBase, MasterMessage, MasterSecurity, MasterToken); - WxLogin 支持双小程序端(user/master)独立换取 session_key、openid 与 access_token; - 新增控制台调度命令 php think order:autoclose,支持订单超时自动关闭与售后退款闭环; - 修复 PHP 8.5 兼容性问题(Request.php 的 (bool) 强制转换); - 系统业务配置全面收敛至数据库 fa_config 及 site.php。 3. 小程序端: - yjyf-app(用户端):彻底剥离师傅端路由、组件及静态资源,增加隐私授权弹窗与评价模块; - yjyf-master-app(师傅端):全新独立微信小程序工程(wx140d90ceda786107),实现工作台、接单大厅、资质认证、工单协同与钱包提现完整闭环。
1053 行
25 KiB
Vue
1053 行
25 KiB
Vue
<template>
|
||
<view class="page">
|
||
<YjyfNavBar theme="orange" title="信用与申诉" />
|
||
|
||
<!-- 顶部分段切换栏 -->
|
||
<view class="seg-bar">
|
||
<view class="seg-item" :class="{ on: activeTab === 'credit' }" @tap="activeTab = 'credit'">
|
||
<text class="seg-txt">信用档案</text>
|
||
<view class="seg-line" v-if="activeTab === 'credit'"></view>
|
||
</view>
|
||
<view class="seg-item" :class="{ on: activeTab === 'appeal' }" @tap="activeTab = 'appeal'">
|
||
<text class="seg-txt">发起申诉</text>
|
||
<view class="seg-line" v-if="activeTab === 'appeal'"></view>
|
||
</view>
|
||
<view class="seg-item" :class="{ on: activeTab === 'records' }" @tap="activeTab = 'records'">
|
||
<text class="seg-txt">申诉记录{{ list.length ? ` (${list.length})` : '' }}</text>
|
||
<view class="seg-line" v-if="activeTab === 'records'"></view>
|
||
</view>
|
||
</view>
|
||
|
||
<!-- Tab 1: 信用档案 -->
|
||
<view class="tab-panel" v-if="activeTab === 'credit'">
|
||
<view class="empty-card" v-if="!credit && creditError">
|
||
<text class="empty-title">信用档案加载失败</text>
|
||
<text class="empty-sub">{{ creditError }}</text>
|
||
<view class="retry-btn clickable-hover" @tap="load">
|
||
<text class="retry-txt">重新加载</text>
|
||
</view>
|
||
</view>
|
||
|
||
<view class="score-hero" v-if="credit">
|
||
<view class="sh-left">
|
||
<text class="sh-label">综合信用评分</text>
|
||
<view class="sh-score-row">
|
||
<text class="sh-score">{{ Number(credit.score ?? 0).toFixed(1) }}</text>
|
||
<text class="sh-max">/ 5.0</text>
|
||
</view>
|
||
<text class="sh-sub">累计完单 {{ credit.order_count || 0 }} 单</text>
|
||
</view>
|
||
<view class="sh-badge">
|
||
<image class="sh-shield" src="/static/icons/shield-white.svg" mode="aspectFit" />
|
||
<text class="sh-level">等级 Lv{{ credit.level || 1 }}</text>
|
||
</view>
|
||
</view>
|
||
|
||
<view class="card" v-if="credit">
|
||
<view class="card-head">
|
||
<text class="card-title">履约质量六维指标</text>
|
||
</view>
|
||
<view class="metrics-grid">
|
||
<view class="m-cell">
|
||
<text class="m-num">{{ Number(credit.score ?? 0).toFixed(1) }}</text>
|
||
<text class="m-lab">综合评分</text>
|
||
</view>
|
||
<view class="m-cell">
|
||
<text class="m-num">{{ credit.accept_rate }}%</text>
|
||
<text class="m-lab">接单响应率</text>
|
||
</view>
|
||
<view class="m-cell">
|
||
<text class="m-num">{{ credit.ontime_rate }}%</text>
|
||
<text class="m-lab">准时上门率</text>
|
||
</view>
|
||
<view class="m-cell">
|
||
<text class="m-num">{{ credit.has_review === false ? '暂无' : `${credit.good_rate}%` }}</text>
|
||
<text class="m-lab">客户好评率</text>
|
||
</view>
|
||
<view class="m-cell">
|
||
<text class="m-num" :class="{ warn: Number(credit.complaint_rate) > 0 }">{{ credit.complaint_rate }}%</text>
|
||
<text class="m-lab">争议投诉率</text>
|
||
</view>
|
||
<view class="m-cell">
|
||
<text class="m-num">{{ credit.appeal_total || 0 }}</text>
|
||
<text class="m-lab">累计申诉单</text>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
|
||
<!-- 查看客户评价入口 -->
|
||
<view class="entry-card clickable-hover" @tap="goReviews">
|
||
<view class="entry-left">
|
||
<image class="entry-ico" src="/static/icons/master/menu-review.svg" mode="aspectFit" />
|
||
<view class="entry-info">
|
||
<text class="entry-title">客户评价明细</text>
|
||
<text class="entry-desc">共收到 {{ credit ? (credit.review_total || 0) : 0 }} 条真实服务评价</text>
|
||
</view>
|
||
</view>
|
||
<view class="entry-right">
|
||
<text class="entry-link">查看全部</text>
|
||
<image class="entry-arrow" src="/static/icons/arrow-right.svg" mode="aspectFit" />
|
||
</view>
|
||
</view>
|
||
|
||
<!-- 考核规则说明 -->
|
||
<view class="card" v-if="credit && credit.rules && credit.rules.length">
|
||
<view class="card-head">
|
||
<text class="card-title">指标核算规则</text>
|
||
</view>
|
||
<view class="rules-list">
|
||
<view class="rule-row" v-for="(r, i) in credit.rules" :key="i">
|
||
<view class="rule-dot"></view>
|
||
<text class="rule-txt">{{ r }}</text>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
|
||
<!-- Tab 2: 发起申诉 -->
|
||
<view class="tab-panel" v-if="activeTab === 'appeal'">
|
||
<view class="card">
|
||
<view class="card-head">
|
||
<text class="card-title">选择申诉类型</text>
|
||
</view>
|
||
<view class="types-grid">
|
||
<view
|
||
v-for="t in types"
|
||
:key="t.key"
|
||
class="type-pill clickable-hover"
|
||
:class="{ on: form.type === t.key }"
|
||
@tap="form.type = t.key"
|
||
>
|
||
{{ t.name }}
|
||
</view>
|
||
</view>
|
||
|
||
<view class="field-block">
|
||
<text class="field-label">关联工单 ID(选填)</text>
|
||
<view class="input-box">
|
||
<input
|
||
class="field-input"
|
||
type="number"
|
||
v-model="form.order_id"
|
||
placeholder="填写争议对应的工单数字 ID"
|
||
/>
|
||
</view>
|
||
</view>
|
||
|
||
<view class="field-block">
|
||
<view class="label-row">
|
||
<text class="field-label">申诉情况说明(必填)</text>
|
||
<text class="char-count">{{ form.content.length }}/300</text>
|
||
</view>
|
||
<textarea
|
||
class="field-ta"
|
||
v-model="form.content"
|
||
maxlength="300"
|
||
placeholder="请客观描述异常原因(如:客户临时改期误判超时、恶意差评、扣款异议等,不少于 5 个字)"
|
||
/>
|
||
</view>
|
||
|
||
<view class="field-block">
|
||
<text class="field-label">举证截图(最多 3 张,聊天记录或现场照片)</text>
|
||
<view class="img-picker">
|
||
<view class="img-item" v-for="(img, idx) in evidenceImgs" :key="idx">
|
||
<image class="thumb" :src="img" mode="aspectFill" @tap="previewImages(evidenceImgs, idx)" />
|
||
<view class="del-hit" @tap.stop="delImg(idx)">
|
||
<view class="del-circle">
|
||
<image class="del-ico" src="/static/icons/media-del-white.svg" mode="aspectFit" />
|
||
</view>
|
||
</view>
|
||
</view>
|
||
<view class="add-btn clickable-hover" v-if="evidenceImgs.length < 3" @tap="chooseEvidence">
|
||
<image class="add-ico" src="/static/icons/camera.svg" mode="aspectFit" />
|
||
<text class="add-txt">上传凭证</text>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
|
||
<view class="primary-btn clickable-hover" :class="{ disabled: submitting }" @tap="submit">
|
||
{{ submitting ? '提交审核中...' : '提交申诉' }}
|
||
</view>
|
||
</view>
|
||
</view>
|
||
|
||
<!-- Tab 3: 申诉记录 -->
|
||
<view class="tab-panel" v-if="activeTab === 'records'">
|
||
<view class="record-list" v-if="list.length">
|
||
<view
|
||
class="record-card clickable-hover"
|
||
v-for="a in list"
|
||
:key="a.id"
|
||
@tap="activeAppeal = a"
|
||
>
|
||
<view class="rc-head">
|
||
<view class="rc-title-group">
|
||
<text class="rc-type">{{ a.type_text }}</text>
|
||
<view
|
||
class="rc-oid"
|
||
v-if="Number(a.order_id) > 0"
|
||
@tap.stop="goOrderDetail(a.order_id)"
|
||
>
|
||
<text class="rc-oid-txt">工单 #{{ a.order_id }}</text>
|
||
<image class="rc-oid-arrow" src="/static/icons/arrow-right-orange.svg" mode="aspectFit" />
|
||
</view>
|
||
</view>
|
||
<text class="rc-status" :class="'st-' + a.status">{{ a.status_text }}</text>
|
||
</view>
|
||
|
||
<text class="rc-content">{{ a.content }}</text>
|
||
|
||
<view class="rc-thumbs" v-if="a.image_list && a.image_list.length">
|
||
<image
|
||
v-for="(im, idx) in a.image_list"
|
||
:key="idx"
|
||
class="rc-thumb"
|
||
:src="im"
|
||
mode="aspectFill"
|
||
@tap.stop="previewImages(a.image_list, idx)"
|
||
/>
|
||
</view>
|
||
|
||
<view class="rc-reply" v-if="a.reply">
|
||
<text class="reply-tag">平台复核意见:</text>
|
||
<text class="reply-txt">{{ a.reply }}</text>
|
||
</view>
|
||
|
||
<view class="rc-foot">
|
||
<text class="rc-time">提交时间:{{ a.time_text }}</text>
|
||
<view class="rc-detail-link">
|
||
<text class="rc-link-txt">查看详情</text>
|
||
<image class="rc-link-ico" src="/static/icons/arrow-right.svg" mode="aspectFit" />
|
||
</view>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
|
||
<view class="empty-card" v-else>
|
||
<image class="empty-img" src="/static/icons/master/empty-appeal.svg" mode="aspectFit" />
|
||
<text class="empty-title">暂无争议申诉记录</text>
|
||
<text class="empty-sub">保持准时履约与规范沟通,维护良好信用等级</text>
|
||
</view>
|
||
</view>
|
||
|
||
<!-- 申诉详情半屏抽屉 -->
|
||
<view class="drawer-mask" v-if="activeAppeal" @tap="activeAppeal = null">
|
||
<view class="drawer-panel" @tap.stop>
|
||
<view class="drawer-head">
|
||
<text class="drawer-title">申诉处理详情</text>
|
||
<view class="drawer-close" @tap="activeAppeal = null">
|
||
<image class="close-ico" src="/static/icons/close.svg" mode="aspectFit" />
|
||
</view>
|
||
</view>
|
||
|
||
<view class="detail-row">
|
||
<text class="d-lab">申诉编号</text>
|
||
<text class="d-val">#{{ activeAppeal.id }}</text>
|
||
</view>
|
||
<view class="detail-row">
|
||
<text class="d-lab">申诉类型</text>
|
||
<text class="d-val">{{ activeAppeal.type_text }}</text>
|
||
</view>
|
||
<view class="detail-row">
|
||
<text class="d-lab">当前状态</text>
|
||
<text class="d-val status-val" :class="'st-' + activeAppeal.status">{{ activeAppeal.status_text }}</text>
|
||
</view>
|
||
<view class="detail-row">
|
||
<text class="d-lab">提交时间</text>
|
||
<text class="d-val">{{ activeAppeal.time_text }}</text>
|
||
</view>
|
||
|
||
<view class="detail-section">
|
||
<text class="ds-title">申诉说明</text>
|
||
<text class="ds-body">{{ activeAppeal.content }}</text>
|
||
</view>
|
||
|
||
<view class="detail-section" v-if="activeAppeal.image_list && activeAppeal.image_list.length">
|
||
<text class="ds-title">举证图片</text>
|
||
<view class="rc-thumbs">
|
||
<image
|
||
v-for="(im, idx) in activeAppeal.image_list"
|
||
:key="idx"
|
||
class="rc-thumb"
|
||
:src="im"
|
||
mode="aspectFill"
|
||
@tap="previewImages(activeAppeal.image_list, idx)"
|
||
/>
|
||
</view>
|
||
</view>
|
||
|
||
<view class="detail-section reply-box" v-if="activeAppeal.reply">
|
||
<text class="ds-title reply">平台审核结论</text>
|
||
<text class="ds-body">{{ activeAppeal.reply }}</text>
|
||
</view>
|
||
|
||
<view
|
||
v-if="Number(activeAppeal.order_id) > 0"
|
||
class="primary-btn clickable-hover"
|
||
@tap="goOrderDetail(activeAppeal.order_id)"
|
||
>
|
||
查看关联工单 (#{{ activeAppeal.order_id }})
|
||
</view>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
</template>
|
||
|
||
<script setup>
|
||
import { ref, reactive } from 'vue';
|
||
import { onLoad, onShow } from '@dcloudio/uni-app';
|
||
import api from '@/utils/api.js';
|
||
|
||
const activeTab = ref('credit');
|
||
const credit = ref(null);
|
||
const creditError = ref('');
|
||
const list = ref([]);
|
||
const submitting = ref(false);
|
||
const evidenceImgs = ref([]);
|
||
const activeAppeal = ref(null);
|
||
const form = reactive({ type: 'misjudge', order_id: '', content: '' });
|
||
|
||
const types = [
|
||
{ key: 'misjudge', name: '误判申诉' },
|
||
{ key: 'review', name: '恶意评价' },
|
||
{ key: 'deduct', name: '扣款申诉' },
|
||
{ key: 'other', name: '其他问题' }
|
||
];
|
||
|
||
onLoad((options) => {
|
||
if (options?.tab && ['credit', 'appeal', 'records'].includes(options.tab)) {
|
||
activeTab.value = options.tab;
|
||
}
|
||
if (options?.order_id) {
|
||
form.order_id = String(options.order_id);
|
||
if (!options.tab) activeTab.value = 'appeal';
|
||
}
|
||
});
|
||
|
||
async function load() {
|
||
creditError.value = '';
|
||
try {
|
||
credit.value = await api.masterCredit();
|
||
} catch (e) {
|
||
creditError.value = (e && (e.message || e.msg)) || '信用档案加载失败,请重试';
|
||
}
|
||
try {
|
||
const res = await api.masterAppeals();
|
||
list.value = res.list || [];
|
||
} catch (e) {
|
||
uni.showToast({ title: (e && (e.message || e.msg)) || '申诉记录加载失败', icon: 'none' });
|
||
}
|
||
}
|
||
|
||
const uploading = ref(false);
|
||
|
||
function chooseEvidence() {
|
||
if (uploading.value || submitting.value) return;
|
||
uni.chooseImage({
|
||
count: 3 - evidenceImgs.value.length,
|
||
success: async (res) => {
|
||
uploading.value = true;
|
||
uni.showLoading({ title: '凭证上传中...', mask: true });
|
||
try {
|
||
for (const path of res.tempFilePaths) {
|
||
const up = await api.upload(path, 'dispute');
|
||
const imgUrl = up.fullurl || up.url;
|
||
if (imgUrl) {
|
||
evidenceImgs.value.push(imgUrl);
|
||
}
|
||
}
|
||
} catch (e) {
|
||
} finally {
|
||
uploading.value = false;
|
||
uni.hideLoading();
|
||
}
|
||
}
|
||
});
|
||
}
|
||
|
||
function delImg(idx) {
|
||
evidenceImgs.value.splice(idx, 1);
|
||
}
|
||
|
||
function previewImages(urls, currentIdx) {
|
||
if (!urls || !urls.length) return;
|
||
uni.previewImage({
|
||
urls,
|
||
current: urls[currentIdx] || urls[0]
|
||
});
|
||
}
|
||
|
||
async function submit() {
|
||
if (submitting.value || uploading.value) {
|
||
if (uploading.value) uni.showToast({ title: '凭证上传中,请稍候', icon: 'none' });
|
||
return;
|
||
}
|
||
const content = form.content.trim();
|
||
if (content.length < 5) {
|
||
uni.showToast({ title: '请填写不少于 5 个字的申诉说明', icon: 'none' });
|
||
return;
|
||
}
|
||
submitting.value = true;
|
||
try {
|
||
await api.masterAppeal({
|
||
type: form.type,
|
||
order_id: Number(form.order_id) || 0,
|
||
content,
|
||
images: evidenceImgs.value.join(',')
|
||
});
|
||
uni.showToast({ title: '申诉已提交,等待平台复核', icon: 'none' });
|
||
form.content = '';
|
||
form.order_id = '';
|
||
evidenceImgs.value = [];
|
||
await load();
|
||
activeTab.value = 'records';
|
||
} catch (e) {
|
||
} finally {
|
||
submitting.value = false;
|
||
}
|
||
}
|
||
|
||
function goReviews() {
|
||
uni.navigateTo({ url: '/pages/master/reviews' });
|
||
}
|
||
|
||
function goOrderDetail(orderId) {
|
||
activeAppeal.value = null;
|
||
uni.navigateTo({ url: `/pages/master/detail?id=${orderId}` });
|
||
}
|
||
|
||
onShow(() => load());
|
||
</script>
|
||
|
||
<style lang="scss" scoped>
|
||
.page {
|
||
min-height: 100vh;
|
||
background: $yjyf-bg-page;
|
||
padding-bottom: calc(48rpx + env(safe-area-inset-bottom));
|
||
}
|
||
|
||
/* 顶部分段切换栏 */
|
||
.seg-bar {
|
||
background: $yjyf-bg-card;
|
||
display: flex;
|
||
align-items: center;
|
||
border-bottom: 1rpx solid $yjyf-border-color;
|
||
}
|
||
.seg-item {
|
||
flex: 1;
|
||
height: 88rpx;
|
||
position: relative;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
}
|
||
.seg-txt {
|
||
font-size: $yjyf-font-body;
|
||
color: $yjyf-text-regular;
|
||
font-weight: 500;
|
||
}
|
||
.seg-item.on .seg-txt {
|
||
color: $yjyf-primary;
|
||
font-weight: 700;
|
||
}
|
||
.seg-line {
|
||
position: absolute;
|
||
bottom: 0;
|
||
width: 48rpx;
|
||
height: 6rpx;
|
||
border-radius: 3rpx;
|
||
background: $yjyf-primary;
|
||
}
|
||
|
||
.tab-panel {
|
||
padding: 20rpx $yjyf-space-md 0;
|
||
}
|
||
|
||
/* 顶部信用大卡 */
|
||
.score-hero {
|
||
padding: 32rpx;
|
||
border-radius: $yjyf-radius-md;
|
||
background: $yjyf-gradient-primary;
|
||
box-shadow: $yjyf-shadow-card;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
}
|
||
.sh-left {
|
||
display: flex;
|
||
flex-direction: column;
|
||
}
|
||
.sh-label {
|
||
font-size: $yjyf-font-sub;
|
||
color: rgba(255, 255, 255, 0.9);
|
||
}
|
||
.sh-score-row {
|
||
margin-top: 8rpx;
|
||
display: flex;
|
||
align-items: baseline;
|
||
}
|
||
.sh-score {
|
||
font-size: 64rpx;
|
||
font-weight: 700;
|
||
color: $yjyf-bg-card;
|
||
line-height: 1.1;
|
||
}
|
||
.sh-max {
|
||
margin-left: 8rpx;
|
||
font-size: $yjyf-font-sub;
|
||
color: rgba(255, 255, 255, 0.85);
|
||
}
|
||
.sh-sub {
|
||
margin-top: 10rpx;
|
||
font-size: $yjyf-font-micro;
|
||
color: rgba(255, 255, 255, 0.88);
|
||
}
|
||
.sh-badge {
|
||
height: 64rpx;
|
||
padding: 0 24rpx;
|
||
border-radius: $yjyf-radius-pill;
|
||
background: rgba(255, 255, 255, 0.2);
|
||
display: inline-flex;
|
||
align-items: center;
|
||
}
|
||
.sh-shield {
|
||
width: 30rpx;
|
||
height: 30rpx;
|
||
margin-right: 10rpx;
|
||
}
|
||
.sh-level {
|
||
font-size: $yjyf-font-sub;
|
||
font-weight: 700;
|
||
color: $yjyf-bg-card;
|
||
}
|
||
|
||
/* 通用白卡 */
|
||
.card {
|
||
margin-top: 20rpx;
|
||
padding: $yjyf-space-md;
|
||
background: $yjyf-bg-card;
|
||
border-radius: $yjyf-radius-md;
|
||
box-shadow: $yjyf-shadow-card;
|
||
}
|
||
.tab-panel > .card:first-child {
|
||
margin-top: 0;
|
||
}
|
||
.card-head {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
margin-bottom: 20rpx;
|
||
}
|
||
.card-title {
|
||
font-size: $yjyf-font-title;
|
||
font-weight: 700;
|
||
color: $yjyf-text-main;
|
||
}
|
||
|
||
/* 六维指标宫格 */
|
||
.metrics-grid {
|
||
display: grid;
|
||
grid-template-columns: repeat(3, 1fr);
|
||
gap: 16rpx;
|
||
}
|
||
.m-cell {
|
||
padding: 20rpx 12rpx;
|
||
border-radius: $yjyf-radius-sm;
|
||
background: $yjyf-bg-page;
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
}
|
||
.m-num {
|
||
font-size: 36rpx;
|
||
font-weight: 700;
|
||
color: $yjyf-primary;
|
||
line-height: 1.15;
|
||
font-variant-numeric: tabular-nums;
|
||
}
|
||
.m-num.warn {
|
||
color: $yjyf-danger;
|
||
}
|
||
.m-lab {
|
||
margin-top: 8rpx;
|
||
font-size: $yjyf-font-micro;
|
||
color: $yjyf-text-secondary;
|
||
}
|
||
|
||
/* 评价入口卡片 */
|
||
.entry-card {
|
||
margin-top: 20rpx;
|
||
padding: 24rpx;
|
||
background: $yjyf-bg-card;
|
||
border-radius: $yjyf-radius-md;
|
||
box-shadow: $yjyf-shadow-card;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
}
|
||
.entry-left {
|
||
display: flex;
|
||
align-items: center;
|
||
}
|
||
.entry-ico {
|
||
width: 72rpx;
|
||
height: 72rpx;
|
||
margin-right: 20rpx;
|
||
flex-shrink: 0;
|
||
}
|
||
.entry-info {
|
||
display: flex;
|
||
flex-direction: column;
|
||
}
|
||
.entry-title {
|
||
font-size: $yjyf-font-body;
|
||
font-weight: 700;
|
||
color: $yjyf-text-main;
|
||
}
|
||
.entry-desc {
|
||
margin-top: 6rpx;
|
||
font-size: $yjyf-font-sub;
|
||
color: $yjyf-text-secondary;
|
||
}
|
||
.entry-right {
|
||
display: flex;
|
||
align-items: center;
|
||
}
|
||
.entry-link {
|
||
font-size: $yjyf-font-sub;
|
||
color: $yjyf-primary;
|
||
font-weight: 600;
|
||
}
|
||
.entry-arrow {
|
||
width: 24rpx;
|
||
height: 24rpx;
|
||
margin-left: 8rpx;
|
||
}
|
||
|
||
/* 规则说明 */
|
||
.rules-list {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 14rpx;
|
||
}
|
||
.rule-row {
|
||
display: flex;
|
||
align-items: flex-start;
|
||
}
|
||
.rule-dot {
|
||
width: 10rpx;
|
||
height: 10rpx;
|
||
border-radius: 50%;
|
||
background: $yjyf-primary;
|
||
margin-top: 14rpx;
|
||
margin-right: 14rpx;
|
||
flex-shrink: 0;
|
||
}
|
||
.rule-txt {
|
||
flex: 1;
|
||
font-size: $yjyf-font-sub;
|
||
color: $yjyf-text-regular;
|
||
line-height: 1.5;
|
||
}
|
||
|
||
/* 申诉表单 */
|
||
.types-grid {
|
||
display: grid;
|
||
grid-template-columns: repeat(2, 1fr);
|
||
gap: 16rpx;
|
||
}
|
||
.type-pill {
|
||
height: 72rpx;
|
||
border-radius: $yjyf-radius-sm;
|
||
background: $yjyf-bg-page;
|
||
border: 1rpx solid transparent;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
font-size: $yjyf-font-sub;
|
||
color: $yjyf-text-regular;
|
||
font-weight: 500;
|
||
}
|
||
.type-pill.on {
|
||
background: $yjyf-primary-bg;
|
||
border-color: $yjyf-primary;
|
||
color: $yjyf-primary;
|
||
font-weight: 700;
|
||
}
|
||
|
||
.field-block {
|
||
margin-top: 28rpx;
|
||
}
|
||
.label-row {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
}
|
||
.field-label {
|
||
font-size: $yjyf-font-sub;
|
||
font-weight: 600;
|
||
color: $yjyf-text-main;
|
||
}
|
||
.char-count {
|
||
font-size: $yjyf-font-micro;
|
||
color: $yjyf-text-muted;
|
||
}
|
||
.input-box {
|
||
margin-top: 14rpx;
|
||
height: 80rpx;
|
||
padding: 0 20rpx;
|
||
border-radius: $yjyf-radius-sm;
|
||
background: $yjyf-bg-page;
|
||
display: flex;
|
||
align-items: center;
|
||
}
|
||
.field-input {
|
||
flex: 1;
|
||
font-size: $yjyf-font-body;
|
||
color: $yjyf-text-main;
|
||
}
|
||
.field-ta {
|
||
margin-top: 14rpx;
|
||
width: 100%;
|
||
height: 200rpx;
|
||
padding: 20rpx;
|
||
box-sizing: border-box;
|
||
border-radius: $yjyf-radius-sm;
|
||
background: $yjyf-bg-page;
|
||
font-size: $yjyf-font-body;
|
||
color: $yjyf-text-main;
|
||
line-height: 1.5;
|
||
}
|
||
|
||
.img-picker {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
gap: 20rpx;
|
||
margin-top: 16rpx;
|
||
}
|
||
.img-item {
|
||
width: 156rpx;
|
||
height: 156rpx;
|
||
border-radius: $yjyf-radius-sm;
|
||
position: relative;
|
||
}
|
||
.thumb {
|
||
width: 100%;
|
||
height: 100%;
|
||
border-radius: $yjyf-radius-sm;
|
||
}
|
||
.del-hit {
|
||
position: absolute;
|
||
right: -12rpx;
|
||
top: -12rpx;
|
||
width: 52rpx;
|
||
height: 52rpx;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
}
|
||
.del-circle {
|
||
width: 38rpx;
|
||
height: 38rpx;
|
||
border-radius: 50%;
|
||
background: rgba(0, 0, 0, 0.65);
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
}
|
||
.del-ico {
|
||
width: 20rpx;
|
||
height: 20rpx;
|
||
}
|
||
.add-btn {
|
||
width: 156rpx;
|
||
height: 156rpx;
|
||
border-radius: $yjyf-radius-sm;
|
||
border: 2rpx dashed $yjyf-text-disabled;
|
||
background: $yjyf-bg-page;
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
justify-content: center;
|
||
}
|
||
.add-ico {
|
||
width: 40rpx;
|
||
height: 40rpx;
|
||
margin-bottom: 8rpx;
|
||
}
|
||
.add-txt {
|
||
font-size: $yjyf-font-micro;
|
||
color: $yjyf-text-secondary;
|
||
}
|
||
|
||
.primary-btn {
|
||
margin-top: 36rpx;
|
||
height: 88rpx;
|
||
border-radius: $yjyf-radius-pill;
|
||
background: $yjyf-gradient-primary;
|
||
color: $yjyf-bg-card;
|
||
font-size: $yjyf-font-body;
|
||
font-weight: 600;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
box-shadow: $yjyf-shadow-card;
|
||
}
|
||
.primary-btn.disabled {
|
||
opacity: 0.6;
|
||
}
|
||
|
||
/* 申诉记录列表 */
|
||
.record-list {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 20rpx;
|
||
}
|
||
.record-card {
|
||
padding: $yjyf-space-md;
|
||
background: $yjyf-bg-card;
|
||
border-radius: $yjyf-radius-md;
|
||
box-shadow: $yjyf-shadow-card;
|
||
}
|
||
.rc-head {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
}
|
||
.rc-title-group {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 12rpx;
|
||
}
|
||
.rc-type {
|
||
font-size: $yjyf-font-body;
|
||
font-weight: 700;
|
||
color: $yjyf-text-main;
|
||
}
|
||
.rc-oid {
|
||
height: 42rpx;
|
||
padding: 0 14rpx;
|
||
border-radius: 8rpx;
|
||
background: $yjyf-primary-bg;
|
||
display: inline-flex;
|
||
align-items: center;
|
||
}
|
||
.rc-oid-txt {
|
||
font-size: $yjyf-font-micro;
|
||
color: $yjyf-primary;
|
||
font-weight: 600;
|
||
}
|
||
.rc-oid-arrow {
|
||
width: 20rpx;
|
||
height: 20rpx;
|
||
margin-left: 4rpx;
|
||
}
|
||
.rc-status {
|
||
font-size: $yjyf-font-sub;
|
||
font-weight: 600;
|
||
color: $yjyf-warning;
|
||
}
|
||
.rc-status.st-handling {
|
||
color: $yjyf-info;
|
||
}
|
||
.rc-status.st-done {
|
||
color: $yjyf-success;
|
||
}
|
||
.rc-status.st-reject {
|
||
color: $yjyf-danger;
|
||
}
|
||
.rc-content {
|
||
display: block;
|
||
margin-top: 16rpx;
|
||
font-size: $yjyf-font-body;
|
||
color: $yjyf-text-regular;
|
||
line-height: 1.5;
|
||
}
|
||
.rc-thumbs {
|
||
margin-top: 16rpx;
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
gap: 16rpx;
|
||
}
|
||
.rc-thumb {
|
||
width: 140rpx;
|
||
height: 140rpx;
|
||
border-radius: $yjyf-radius-sm;
|
||
background: $yjyf-bg-page;
|
||
}
|
||
.rc-reply {
|
||
margin-top: 16rpx;
|
||
padding: 18rpx 20rpx;
|
||
border-radius: $yjyf-radius-sm;
|
||
background: $yjyf-bg-page;
|
||
}
|
||
.reply-tag {
|
||
font-size: $yjyf-font-sub;
|
||
font-weight: 700;
|
||
color: $yjyf-info;
|
||
}
|
||
.reply-txt {
|
||
font-size: $yjyf-font-sub;
|
||
color: $yjyf-text-main;
|
||
line-height: 1.5;
|
||
}
|
||
.rc-foot {
|
||
margin-top: 20rpx;
|
||
padding-top: 16rpx;
|
||
border-top: 1rpx solid $yjyf-border-color;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
}
|
||
.rc-time {
|
||
font-size: $yjyf-font-micro;
|
||
color: $yjyf-text-muted;
|
||
}
|
||
.rc-detail-link {
|
||
display: flex;
|
||
align-items: center;
|
||
}
|
||
.rc-link-txt {
|
||
font-size: $yjyf-font-micro;
|
||
color: $yjyf-text-secondary;
|
||
}
|
||
.rc-link-ico {
|
||
width: 22rpx;
|
||
height: 22rpx;
|
||
margin-left: 4rpx;
|
||
}
|
||
|
||
.empty-card {
|
||
padding: 96rpx 32rpx;
|
||
background: $yjyf-bg-card;
|
||
border-radius: $yjyf-radius-md;
|
||
box-shadow: $yjyf-shadow-card;
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
}
|
||
.empty-img {
|
||
width: 180rpx;
|
||
height: 180rpx;
|
||
margin-bottom: 20rpx;
|
||
}
|
||
.empty-title {
|
||
font-size: $yjyf-font-body;
|
||
font-weight: 700;
|
||
color: $yjyf-text-main;
|
||
}
|
||
.empty-sub {
|
||
margin-top: 10rpx;
|
||
font-size: $yjyf-font-sub;
|
||
color: $yjyf-text-secondary;
|
||
}
|
||
|
||
/* 申诉详情抽屉 */
|
||
.drawer-mask {
|
||
position: fixed;
|
||
inset: 0;
|
||
z-index: 900;
|
||
background: rgba(0, 0, 0, 0.48);
|
||
display: flex;
|
||
flex-direction: column;
|
||
justify-content: flex-end;
|
||
}
|
||
.drawer-panel {
|
||
max-height: 82vh;
|
||
overflow-y: auto;
|
||
background: $yjyf-bg-card;
|
||
border-radius: 28rpx 28rpx 0 0;
|
||
padding: 28rpx $yjyf-space-lg calc(32rpx + env(safe-area-inset-bottom));
|
||
box-sizing: border-box;
|
||
}
|
||
.drawer-head {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
margin-bottom: 20rpx;
|
||
}
|
||
.drawer-title {
|
||
font-size: $yjyf-font-title;
|
||
font-weight: 700;
|
||
color: $yjyf-text-main;
|
||
}
|
||
.drawer-close {
|
||
width: 56rpx;
|
||
height: 56rpx;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
}
|
||
.close-ico {
|
||
width: 30rpx;
|
||
height: 30rpx;
|
||
}
|
||
.detail-row {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
padding: 16rpx 0;
|
||
border-bottom: 1rpx solid $yjyf-border-color;
|
||
}
|
||
.d-lab {
|
||
font-size: $yjyf-font-sub;
|
||
color: $yjyf-text-secondary;
|
||
}
|
||
.d-val {
|
||
font-size: $yjyf-font-sub;
|
||
font-weight: 600;
|
||
color: $yjyf-text-main;
|
||
}
|
||
.status-val {
|
||
color: $yjyf-warning;
|
||
}
|
||
.status-val.st-handling {
|
||
color: $yjyf-info;
|
||
}
|
||
.status-val.st-done {
|
||
color: $yjyf-success;
|
||
}
|
||
.status-val.st-reject {
|
||
color: $yjyf-danger;
|
||
}
|
||
.detail-section {
|
||
margin-top: 24rpx;
|
||
}
|
||
.ds-title {
|
||
display: block;
|
||
font-size: $yjyf-font-sub;
|
||
font-weight: 700;
|
||
color: $yjyf-text-main;
|
||
margin-bottom: 10rpx;
|
||
}
|
||
.ds-title.reply {
|
||
color: $yjyf-info;
|
||
}
|
||
.ds-body {
|
||
display: block;
|
||
font-size: $yjyf-font-body;
|
||
color: $yjyf-text-regular;
|
||
line-height: 1.55;
|
||
}
|
||
.reply-box {
|
||
padding: 20rpx;
|
||
border-radius: $yjyf-radius-sm;
|
||
background: $yjyf-bg-page;
|
||
}
|
||
.retry-btn {
|
||
margin-top: 24rpx;
|
||
padding: 14rpx 40rpx;
|
||
border-radius: $yjyf-radius-pill;
|
||
background: $yjyf-primary-bg;
|
||
border: 1rpx solid $yjyf-primary;
|
||
display: inline-flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
}
|
||
.retry-txt {
|
||
font-size: $yjyf-font-sub;
|
||
color: $yjyf-primary;
|
||
font-weight: 600;
|
||
}
|
||
</style>
|