- 新增师傅资质审核模块及权限 - 未审核通过的师傅默认禁用接单状态 - 新增售后退款申诉功能与相关界面 - 新增用户钱包管理及充值功能 - 更新服务定价矩阵相关数据库结构 - 修复微信支付证书验证问题
822 行
22 KiB
Vue
822 行
22 KiB
Vue
<template>
|
||
<view class="page">
|
||
<YjyfNavBar theme="orange" title="师傅入驻" />
|
||
|
||
<view class="loading-box" v-if="loading">
|
||
<text class="loading-txt">正在加载认证信息...</text>
|
||
</view>
|
||
|
||
<template v-else>
|
||
<!-- 审核状态提示条 -->
|
||
<view class="status-banner" v-if="info" :class="'st-' + info.master.verify_status">
|
||
<view class="sb-top">
|
||
<text class="sb-title">审核状态:{{ statusText }}</text>
|
||
</view>
|
||
<text class="sb-msg" v-if="info.master.audit_msg">审核说明:{{ info.master.audit_msg }}</text>
|
||
</view>
|
||
|
||
<!-- 入驻或驳回修改表单 -->
|
||
<view class="card" v-if="canEdit">
|
||
<view class="section-title">实名基本资料</view>
|
||
<view class="fi">
|
||
<text class="fk">真实姓名</text>
|
||
<input class="fv" v-model="form.realname" placeholder="请填写与身份证一致的姓名" />
|
||
</view>
|
||
<view class="fi">
|
||
<text class="fk">联系电话</text>
|
||
<input class="fv" v-model="form.mobile" type="number" maxlength="11" placeholder="请输入 11 位接单手机号" />
|
||
</view>
|
||
<view class="fi">
|
||
<text class="fk">身份证号</text>
|
||
<input class="fv" v-model="form.idcard_no" maxlength="18" placeholder="请输入 18 位二代身份证号" />
|
||
</view>
|
||
<view class="fi no-border">
|
||
<text class="fk">服务地区</text>
|
||
<!-- #ifdef MP-WEIXIN -->
|
||
<picker class="region-picker" mode="region" :value="[form.province, form.city, form.district]" @change="onRegionChange">
|
||
<view class="picker-row">
|
||
<text class="picker-val" :class="{ placeholder: !displayRegion }">{{ displayRegion || '点击选择常驻服务省市区' }}</text>
|
||
<image class="picker-arrow" src="/static/icons/arrow-right.svg" mode="aspectFit" />
|
||
</view>
|
||
</picker>
|
||
<!-- #endif -->
|
||
<!-- #ifndef MP-WEIXIN -->
|
||
<view class="picker-row region-picker clickable-hover" @tap="showRegionDrawer = true">
|
||
<text class="picker-val" :class="{ placeholder: !displayRegion }">{{ displayRegion || '点击选择常驻服务省市区' }}</text>
|
||
<image class="picker-arrow" src="/static/icons/arrow-right.svg" mode="aspectFit" />
|
||
</view>
|
||
<!-- #endif -->
|
||
</view>
|
||
|
||
<view class="section-title mt">主营服务类目(可多选)</view>
|
||
<view class="cats">
|
||
<view
|
||
v-for="c in cats"
|
||
:key="c.id"
|
||
class="cat clickable-hover"
|
||
:class="{ on: skills.indexOf(c.id) > -1 }"
|
||
@tap="toggleSkill(c.id)"
|
||
>
|
||
<text class="cat-txt">{{ c.name }}</text>
|
||
</view>
|
||
</view>
|
||
|
||
<view class="section-title mt">身份证件照片(必传,支持智能识别回填)</view>
|
||
<view class="cert-grid">
|
||
<view class="cert-box clickable-hover" @tap="uploadCert('front')">
|
||
<image v-if="form.idcard_front" class="cert-img" :src="getWatermarkUrl(form.idcard_front)" mode="aspectFill" />
|
||
<view v-else class="cert-ph">
|
||
<image class="cert-cam" src="/static/icons/camera.svg" mode="aspectFit" />
|
||
<text class="cert-ph-t">身份证人像面</text>
|
||
<text class="cert-ph-s">点击上传(自动提取信息)</text>
|
||
</view>
|
||
</view>
|
||
<view class="cert-box clickable-hover" @tap="uploadCert('back')">
|
||
<image v-if="form.idcard_back" class="cert-img" :src="getWatermarkUrl(form.idcard_back)" mode="aspectFill" />
|
||
<view v-else class="cert-ph">
|
||
<image class="cert-cam" src="/static/icons/camera.svg" mode="aspectFit" />
|
||
<text class="cert-ph-t">身份证国徽面</text>
|
||
<text class="cert-ph-s">点击上传(核验有效期限)</text>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
|
||
<!-- 入驻协议勾选 -->
|
||
<view class="agree-row" @tap="agreed = !agreed">
|
||
<image
|
||
class="agree-ico"
|
||
:src="agreed ? '/static/icons/invoice-check-on.svg' : '/static/icons/invoice-check-off.svg'"
|
||
mode="aspectFit"
|
||
/>
|
||
<text class="agree-txt">我已阅读并同意</text>
|
||
<text class="agree-link" @tap.stop="openAgreement">《师傅入驻与履约服务协议》</text>
|
||
</view>
|
||
|
||
<view class="submit-btn clickable-hover" :class="{ disabled: submitting }" @tap="submit">
|
||
<text class="submit-txt">{{ submitting ? '正在进行实名核验...' : '提交实名认证' }}</text>
|
||
</view>
|
||
</view>
|
||
|
||
<!-- 已提交待审或已认证档案卡(对标奇兵到家电子工牌大卡) -->
|
||
<view class="card badge-card" v-else-if="info && info.master">
|
||
<view class="badge-top">
|
||
<view class="badge-avatar-wrap">
|
||
<image class="badge-avatar-img" src="/static/icons/avatar-master.svg" mode="aspectFit" />
|
||
<view class="v-auth-badge">
|
||
<image class="v-badge-ico" src="/static/icons/v-auth.svg" mode="aspectFit" />
|
||
<text class="v-badge-txt">{{ info.master.verify_status === 'pass' ? '已实名' : '审核中' }}</text>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
<view class="badge-info-row">
|
||
<view class="badge-info-left">
|
||
<text class="badge-master-name">{{ masterTitleName }}</text>
|
||
<text class="badge-master-mobile">{{ info.master.mobile }}</text>
|
||
</view>
|
||
<view class="badge-qr-box">
|
||
<image class="badge-qr-img" src="/static/icons/qrcode.svg" mode="aspectFit" />
|
||
</view>
|
||
</view>
|
||
<view class="badge-divider"></view>
|
||
<view class="li">
|
||
<text class="k">真实姓名</text>
|
||
<text class="v">{{ info.master.realname }}</text>
|
||
</view>
|
||
<view class="li">
|
||
<text class="k">身份证号</text>
|
||
<text class="v">{{ info.master.idcard_no }}</text>
|
||
</view>
|
||
<view class="li">
|
||
<text class="k">服务城市</text>
|
||
<text class="v">{{ info.master.city || '-' }}</text>
|
||
</view>
|
||
<view class="li">
|
||
<text class="k">综合评分</text>
|
||
<text class="v">{{ info.master.score }} 分</text>
|
||
</view>
|
||
<view class="li no-border">
|
||
<text class="k">累计完单</text>
|
||
<text class="v">{{ info.master.order_count }} 单</text>
|
||
</view>
|
||
|
||
<view class="go-btn clickable-hover" v-if="info.master.verify_status === 'pass'" @tap="goWorkbench">
|
||
<text class="go-txt">进入师傅工作台</text>
|
||
<image class="go-arrow" src="/static/icons/arrow-right-white.svg" mode="aspectFit" />
|
||
</view>
|
||
</view>
|
||
</template>
|
||
|
||
<RegionPickerDrawer
|
||
v-model:visible="showRegionDrawer"
|
||
:province="form.province"
|
||
:city="form.city"
|
||
:district="form.district"
|
||
@confirm="onDrawerRegionConfirm"
|
||
/>
|
||
</view>
|
||
</template>
|
||
|
||
<script setup>
|
||
import { ref, reactive, computed } from 'vue';
|
||
import { onLoad, onShow, onUnload } from '@dcloudio/uni-app';
|
||
import RegionPickerDrawer from '@/components/RegionPickerDrawer.vue';
|
||
import api from '@/utils/api.js';
|
||
import { isLogin, toLogin, getUser, setUser } from '@/utils/request.js';
|
||
import { setRole } from '@/utils/role.js';
|
||
import { useShare } from '@/utils/share.js';
|
||
|
||
const MASTER_AGREEMENT_EVENT = 'master_apply_agreement_confirm';
|
||
|
||
const loading = ref(true);
|
||
const info = ref(null);
|
||
const cats = ref([]);
|
||
const skills = ref([]);
|
||
const submitting = ref(false);
|
||
const agreed = ref(false);
|
||
const showRegionDrawer = ref(false);
|
||
|
||
const form = reactive({
|
||
realname: '',
|
||
mobile: '',
|
||
idcard_no: '',
|
||
province: '',
|
||
city: '',
|
||
district: '',
|
||
idcard_front: '',
|
||
idcard_back: ''
|
||
});
|
||
|
||
const displayRegion = computed(() => {
|
||
const parts = [];
|
||
[form.province, form.city, form.district].forEach(p => {
|
||
const s = (p || '').trim();
|
||
if (s && !parts.some(ep => ep.includes(s))) parts.push(s);
|
||
});
|
||
return parts.join(' ');
|
||
});
|
||
|
||
useShare(() => ({
|
||
title: '优匠优服师傅入驻 · 实名技能认证接同城工单',
|
||
path: '/pages/master/apply',
|
||
query: ''
|
||
}));
|
||
|
||
const statusText = computed(() => {
|
||
if (!info.value || !info.value.master) return '未入驻';
|
||
const m = info.value.master;
|
||
return { pending: '审核中,请耐心等待', pass: '实名认证已通过', reject: '审核未通过,请修改后重提' }[m.verify_status] || m.verify_status;
|
||
});
|
||
|
||
const masterTitleName = computed(() => {
|
||
if (!info.value || !info.value.master || !info.value.master.realname) return '优匠师傅';
|
||
const rn = info.value.master.realname.trim();
|
||
return (rn.length > 0 ? rn.slice(0, 1) : '') + '师傅';
|
||
});
|
||
|
||
const canEdit = computed(() => !info.value || !info.value.applied || info.value.master.verify_status === 'reject');
|
||
|
||
function onRegionChange(e) {
|
||
const arr = e.detail.value || [];
|
||
if (arr.length >= 2) {
|
||
form.province = arr[0] || '';
|
||
form.city = arr[1] || '';
|
||
form.district = arr[2] || '';
|
||
}
|
||
}
|
||
|
||
function onDrawerRegionConfirm(reg) {
|
||
if (!reg) return;
|
||
form.province = reg.province || '';
|
||
form.city = reg.city || '';
|
||
form.district = reg.district || '';
|
||
}
|
||
|
||
function toggleSkill(id) {
|
||
const i = skills.value.indexOf(id);
|
||
if (i > -1) skills.value.splice(i, 1);
|
||
else skills.value.push(id);
|
||
}
|
||
|
||
function goWorkbench() {
|
||
setRole('master');
|
||
uni.reLaunch({ url: '/pages/master/workbench' });
|
||
}
|
||
|
||
function goHall() {
|
||
setRole('master');
|
||
uni.reLaunch({ url: '/pages/master/hall' });
|
||
}
|
||
|
||
function openAgreement() {
|
||
uni.navigateTo({
|
||
url: `/pages/agreement/detail?type=master&title=${encodeURIComponent('师傅入驻与履约服务协议')}&confirmEvent=${encodeURIComponent(MASTER_AGREEMENT_EVENT)}`
|
||
});
|
||
}
|
||
|
||
function handleMasterAgreementConfirm() {
|
||
agreed.value = true;
|
||
}
|
||
|
||
const uploadingCert = ref(false);
|
||
const uploadingSide = ref('');
|
||
const isSelectingImage = ref(false);
|
||
const hasInitialLoaded = ref(false);
|
||
const isExpired = ref(false);
|
||
const validDate = ref('');
|
||
|
||
// 方案1:腾讯云数据万象动态防伪水印
|
||
function getWatermarkUrl(url) {
|
||
if (!url) return '';
|
||
if ((url.includes('myqcloud.com') || url.includes('cos.')) && !url.includes('watermark')) {
|
||
const b64Text = '5LuF55So5LqO6Lqr5Lu95L-h5oGv6K6k6K-B';
|
||
const b64Color = 'I0ZGRkZGRg';
|
||
const delim = url.includes('?') ? '&' : '?';
|
||
return `${url}${delim}watermark/2/text/${b64Text}/fill/${b64Color}/fontsize/40/dissolve/85/shadow/60/gravity/center/degree/340`;
|
||
}
|
||
return url;
|
||
}
|
||
|
||
function uploadCert(side) {
|
||
if (!isLogin()) { toLogin(); return; }
|
||
if (uploadingSide.value || submitting.value) return;
|
||
|
||
isSelectingImage.value = true;
|
||
uni.chooseImage({
|
||
count: 1,
|
||
sizeType: ['compressed'],
|
||
sourceType: ['album', 'camera'],
|
||
success: async (res) => {
|
||
const temp = res.tempFilePaths[0];
|
||
uploadingSide.value = side;
|
||
uploadingCert.value = true;
|
||
uni.showLoading({ title: '证件上传中...', mask: true });
|
||
try {
|
||
const up = await api.upload(temp, 'cert');
|
||
const imgUrl = up.fullurl || up.url;
|
||
if (side === 'front') {
|
||
form.idcard_front = imgUrl;
|
||
// 调用腾讯云 OCR 智能识别姓名与身份证号
|
||
uni.showLoading({ title: 'AI 识别信息中...', mask: true });
|
||
try {
|
||
const ocrRes = await api.masterOcrIdCard({ image: imgUrl, side: 'front' });
|
||
if (ocrRes && (ocrRes.name || ocrRes.idcard_no)) {
|
||
if (ocrRes.name) form.realname = ocrRes.name;
|
||
if (ocrRes.idcard_no) form.idcard_no = ocrRes.idcard_no;
|
||
uni.showToast({
|
||
title: `已识别:${ocrRes.name || '姓名与证件号已填入'}`,
|
||
icon: 'success',
|
||
duration: 2000
|
||
});
|
||
} else {
|
||
uni.showToast({ title: '已上传,请核对姓名与证件号', icon: 'none' });
|
||
}
|
||
} catch (ocrErr) {
|
||
const msg = ocrErr?.message || ocrErr?.msg || '未能清晰识别,请手动核对';
|
||
uni.showToast({ title: msg, icon: 'none', duration: 2500 });
|
||
}
|
||
} else {
|
||
form.idcard_back = imgUrl;
|
||
try {
|
||
const ocrBack = await api.masterOcrIdCard({ image: imgUrl, side: 'back' });
|
||
if (ocrBack && ocrBack.valid_date) {
|
||
validDate.value = ocrBack.valid_date;
|
||
if (ocrBack.is_expired) {
|
||
isExpired.value = true;
|
||
uni.showModal({
|
||
title: '身份证已过期提醒',
|
||
content: `检测到该身份证有效期截止至【${ocrBack.valid_date}】,已过有效期限,无法通过实名认证,请上传最新有效证件。`,
|
||
showCancel: false,
|
||
confirmText: '我知道了',
|
||
confirmColor: '#E8331B'
|
||
});
|
||
} else {
|
||
isExpired.value = false;
|
||
uni.showToast({ title: '国徽面校验通过(' + (ocrBack.expire_info?.text || ocrBack.valid_date) + ')', icon: 'success' });
|
||
}
|
||
} else {
|
||
uni.showToast({ title: '国徽面已上传', icon: 'none' });
|
||
}
|
||
} catch (e) {
|
||
uni.showToast({ title: '国徽面已上传', icon: 'none' });
|
||
}
|
||
}
|
||
} catch (e) {
|
||
uni.showToast({ title: '上传失败,请重新选择', icon: 'none' });
|
||
} finally {
|
||
uploadingSide.value = '';
|
||
uploadingCert.value = false;
|
||
isSelectingImage.value = false;
|
||
uni.hideLoading();
|
||
}
|
||
},
|
||
fail: () => {
|
||
isSelectingImage.value = false;
|
||
}
|
||
});
|
||
}
|
||
|
||
async function load() {
|
||
if (!isLogin()) {
|
||
loading.value = false;
|
||
return;
|
||
}
|
||
try {
|
||
const res = await api.masterInfo();
|
||
info.value = res.applied ? res : null;
|
||
if (res.applied) {
|
||
// 保护机制:表单中已有新输入或刚上传的值时绝不覆盖
|
||
if (!form.realname && res.master.realname) form.realname = res.master.realname;
|
||
if (!form.mobile && res.master.mobile) form.mobile = res.master.mobile;
|
||
if (!form.province && res.master.province) form.province = res.master.province;
|
||
if (!form.city && res.master.city) form.city = res.master.city;
|
||
if (!form.district && res.master.district) form.district = res.master.district;
|
||
if (!form.idcard_no && res.master.idcard_no) form.idcard_no = res.master.idcard_no;
|
||
if (!form.idcard_front && res.master.idcard_front) form.idcard_front = res.master.idcard_front;
|
||
if (!form.idcard_back && res.master.idcard_back) form.idcard_back = res.master.idcard_back;
|
||
if (!skills.value.length && res.skills) {
|
||
skills.value = res.skills.map(s => s.cat_id).filter(Boolean);
|
||
}
|
||
} else {
|
||
const u = getUser();
|
||
if (u && !form.mobile) form.mobile = u.mobile || '';
|
||
}
|
||
} catch (e) {
|
||
} finally {
|
||
loading.value = false;
|
||
hasInitialLoaded.value = true;
|
||
}
|
||
}
|
||
|
||
async function submit() {
|
||
if (!isLogin()) { toLogin(); return; }
|
||
if (submitting.value || uploadingCert.value) {
|
||
if (uploadingCert.value) uni.showToast({ title: '证件图片上传中,请稍候', icon: 'none' });
|
||
return;
|
||
}
|
||
if (!form.idcard_front || !form.idcard_back) {
|
||
uni.showToast({ title: '请上传身份证人像面和国徽面照片', icon: 'none' });
|
||
return;
|
||
}
|
||
if (!form.realname.trim() || !form.mobile.trim() || !form.idcard_no.trim()) {
|
||
uni.showToast({ title: '请完整填写姓名、手机号与身份证号', icon: 'none' });
|
||
return;
|
||
}
|
||
if (!displayRegion.value) {
|
||
uni.showToast({ title: '请选择常驻服务省市区', icon: 'none' });
|
||
return;
|
||
}
|
||
if (!skills.value.length) {
|
||
uni.showToast({ title: '请至少选择一项主营服务类目', icon: 'none' });
|
||
return;
|
||
}
|
||
if (isExpired.value) {
|
||
uni.showToast({ title: '身份证已过有效期限,无法提交认证', icon: 'none', duration: 2500 });
|
||
return;
|
||
}
|
||
if (!agreed.value) {
|
||
uni.showToast({ title: '请先阅读并勾选入驻服务协议', icon: 'none' });
|
||
return;
|
||
}
|
||
submitting.value = true;
|
||
uni.showLoading({ title: '公安二要素实名核验中...', mask: true });
|
||
try {
|
||
const payload = {
|
||
realname: form.realname.trim(),
|
||
mobile: form.mobile.trim(),
|
||
idcard_no: form.idcard_no.trim(),
|
||
province: form.province.trim(),
|
||
city: (form.city || displayRegion.value).trim(),
|
||
district: form.district.trim(),
|
||
idcard_front: form.idcard_front,
|
||
idcard_back: form.idcard_back,
|
||
valid_date: validDate.value || ''
|
||
};
|
||
skills.value.forEach((id, i) => { payload['skills[' + i + ']'] = id; });
|
||
await api.masterApply(payload);
|
||
uni.hideLoading();
|
||
setRole('master');
|
||
const u = getUser() || {};
|
||
u.is_master = true;
|
||
if (!u.master) u.master = {};
|
||
u.master.verify_status = 'pass';
|
||
u.master.can_take = true;
|
||
setUser(u);
|
||
uni.showToast({ title: '实名认证成功!', icon: 'success' });
|
||
setTimeout(() => {
|
||
uni.reLaunch({ url: '/pages/master/workbench' });
|
||
}, 1200);
|
||
} catch (e) {
|
||
uni.hideLoading();
|
||
} finally {
|
||
submitting.value = false;
|
||
}
|
||
}
|
||
|
||
onLoad(() => {
|
||
uni.$on(MASTER_AGREEMENT_EVENT, handleMasterAgreementConfirm);
|
||
});
|
||
|
||
onUnload(() => {
|
||
uni.$off(MASTER_AGREEMENT_EVENT, handleMasterAgreementConfirm);
|
||
});
|
||
|
||
onShow(async () => {
|
||
if (isSelectingImage.value) {
|
||
return;
|
||
}
|
||
if (!hasInitialLoaded.value) {
|
||
await load();
|
||
}
|
||
try {
|
||
const res = await api.cats();
|
||
cats.value = res.list || [];
|
||
} catch (e) {}
|
||
});
|
||
</script>
|
||
|
||
<style lang="scss" scoped>
|
||
@import '@/uni.scss';
|
||
.page {
|
||
min-height: 100vh;
|
||
background: $yjyf-bg-page;
|
||
padding-bottom: calc(48rpx + env(safe-area-inset-bottom));
|
||
}
|
||
|
||
.loading-box {
|
||
padding: 120rpx 0;
|
||
text-align: center;
|
||
}
|
||
.loading-txt {
|
||
font-size: $yjyf-font-sub;
|
||
color: $yjyf-text-secondary;
|
||
}
|
||
|
||
.status-banner {
|
||
margin: 20rpx $yjyf-space-md 0;
|
||
padding: 22rpx 24rpx;
|
||
background: $yjyf-primary-bg;
|
||
border-radius: $yjyf-radius-md;
|
||
display: flex;
|
||
flex-direction: column;
|
||
}
|
||
.status-banner.st-pass {
|
||
background: rgba(47, 168, 79, 0.1);
|
||
}
|
||
.status-banner.st-reject {
|
||
background: rgba(232, 51, 27, 0.08);
|
||
}
|
||
.sb-title {
|
||
font-size: $yjyf-font-body;
|
||
color: $yjyf-primary;
|
||
font-weight: 700;
|
||
}
|
||
.status-banner.st-pass .sb-title {
|
||
color: $yjyf-success;
|
||
}
|
||
.status-banner.st-reject .sb-title {
|
||
color: $yjyf-danger;
|
||
}
|
||
.sb-msg {
|
||
margin-top: 8rpx;
|
||
font-size: $yjyf-font-sub;
|
||
color: $yjyf-text-regular;
|
||
}
|
||
|
||
.card {
|
||
margin: 20rpx $yjyf-space-md 0;
|
||
padding: $yjyf-space-md;
|
||
background: $yjyf-bg-card;
|
||
border-radius: $yjyf-radius-md;
|
||
box-shadow: $yjyf-shadow-card;
|
||
}
|
||
|
||
.section-title {
|
||
font-size: $yjyf-font-body;
|
||
font-weight: 700;
|
||
color: $yjyf-text-main;
|
||
margin-bottom: 12rpx;
|
||
}
|
||
.section-title.mt {
|
||
margin-top: 28rpx;
|
||
}
|
||
|
||
.fi {
|
||
display: flex;
|
||
align-items: center;
|
||
min-height: 92rpx;
|
||
border-bottom: 1rpx solid $yjyf-border-color;
|
||
}
|
||
.fi.no-border {
|
||
border-bottom: none;
|
||
}
|
||
.fk {
|
||
width: 168rpx;
|
||
font-size: $yjyf-font-body;
|
||
color: $yjyf-text-regular;
|
||
flex-shrink: 0;
|
||
}
|
||
.fv {
|
||
flex: 1;
|
||
height: 88rpx;
|
||
font-size: $yjyf-font-body;
|
||
color: $yjyf-text-main;
|
||
}
|
||
.region-picker {
|
||
flex: 1;
|
||
}
|
||
.picker-row {
|
||
height: 88rpx;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
}
|
||
.picker-val {
|
||
font-size: $yjyf-font-body;
|
||
color: $yjyf-text-main;
|
||
}
|
||
.picker-val.placeholder {
|
||
color: $yjyf-text-disabled;
|
||
}
|
||
.picker-arrow {
|
||
width: 24rpx;
|
||
height: 24rpx;
|
||
}
|
||
|
||
.cats {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
gap: 16rpx;
|
||
padding-top: 8rpx;
|
||
}
|
||
.cat {
|
||
height: 64rpx;
|
||
padding: 0 28rpx;
|
||
display: inline-flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
border-radius: $yjyf-radius-pill;
|
||
background: $yjyf-bg-page;
|
||
border: 2rpx solid transparent;
|
||
}
|
||
.cat.on {
|
||
background: $yjyf-primary-bg;
|
||
border-color: $yjyf-primary;
|
||
}
|
||
.cat-txt {
|
||
font-size: $yjyf-font-sub;
|
||
color: $yjyf-text-regular;
|
||
}
|
||
.cat.on .cat-txt {
|
||
color: $yjyf-primary;
|
||
font-weight: 600;
|
||
}
|
||
|
||
.cert-grid {
|
||
display: flex;
|
||
gap: 20rpx;
|
||
margin-top: 12rpx;
|
||
}
|
||
.cert-box {
|
||
flex: 1;
|
||
height: 184rpx;
|
||
border: 2rpx dashed $yjyf-text-disabled;
|
||
border-radius: $yjyf-radius-sm;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
background: $yjyf-bg-page;
|
||
overflow: hidden;
|
||
}
|
||
.cert-img {
|
||
width: 100%;
|
||
height: 100%;
|
||
}
|
||
.cert-ph {
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
}
|
||
.cert-cam {
|
||
width: 40rpx;
|
||
height: 40rpx;
|
||
margin-bottom: 8rpx;
|
||
}
|
||
.cert-ph-t {
|
||
font-size: $yjyf-font-sub;
|
||
font-weight: 600;
|
||
color: $yjyf-text-regular;
|
||
}
|
||
.cert-ph-s {
|
||
font-size: $yjyf-font-micro;
|
||
color: $yjyf-text-muted;
|
||
margin-top: 4rpx;
|
||
}
|
||
|
||
.agree-row {
|
||
margin-top: 28rpx;
|
||
display: flex;
|
||
align-items: center;
|
||
}
|
||
.agree-ico {
|
||
width: 34rpx;
|
||
height: 34rpx;
|
||
margin-right: 12rpx;
|
||
flex-shrink: 0;
|
||
}
|
||
.agree-txt {
|
||
font-size: $yjyf-font-sub;
|
||
color: $yjyf-text-secondary;
|
||
}
|
||
.agree-link {
|
||
font-size: $yjyf-font-sub;
|
||
color: $yjyf-info;
|
||
font-weight: 500;
|
||
}
|
||
|
||
.submit-btn {
|
||
height: 88rpx;
|
||
margin-top: 28rpx;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
border-radius: $yjyf-radius-pill;
|
||
background: $yjyf-gradient-primary;
|
||
box-shadow: $yjyf-shadow-card;
|
||
}
|
||
.submit-txt {
|
||
color: $yjyf-bg-card;
|
||
font-size: $yjyf-font-body;
|
||
font-weight: 700;
|
||
}
|
||
.submit-btn.disabled {
|
||
opacity: 0.6;
|
||
}
|
||
|
||
.li {
|
||
display: flex;
|
||
justify-content: space-between;
|
||
padding: 20rpx 0;
|
||
border-bottom: 1rpx solid $yjyf-border-color;
|
||
}
|
||
.li.no-border {
|
||
border-bottom: none;
|
||
}
|
||
.k {
|
||
font-size: $yjyf-font-body;
|
||
color: $yjyf-text-secondary;
|
||
}
|
||
.v {
|
||
font-size: $yjyf-font-body;
|
||
color: $yjyf-text-main;
|
||
font-weight: 500;
|
||
}
|
||
|
||
.go-btn {
|
||
margin-top: 28rpx;
|
||
height: 88rpx;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
border-radius: $yjyf-radius-pill;
|
||
background: $yjyf-gradient-primary;
|
||
box-shadow: $yjyf-shadow-card;
|
||
}
|
||
.go-txt {
|
||
color: $yjyf-bg-card;
|
||
font-size: $yjyf-font-body;
|
||
font-weight: 700;
|
||
}
|
||
.go-arrow {
|
||
width: 24rpx;
|
||
height: 24rpx;
|
||
margin-left: 8rpx;
|
||
}
|
||
|
||
/* 对标奇兵到家电子工牌大卡 */
|
||
.badge-card {
|
||
padding: 36rpx 32rpx;
|
||
}
|
||
.badge-top {
|
||
display: flex;
|
||
justify-content: center;
|
||
margin-bottom: 24rpx;
|
||
}
|
||
.badge-avatar-wrap {
|
||
width: 140rpx;
|
||
height: 140rpx;
|
||
border-radius: 70rpx;
|
||
border: 4rpx solid #FFA93F;
|
||
background: #FFF7EC;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
position: relative;
|
||
box-shadow: 0 4rpx 16rpx rgba(240, 113, 13, 0.15);
|
||
}
|
||
.badge-avatar-img {
|
||
width: 96rpx;
|
||
height: 96rpx;
|
||
}
|
||
.v-auth-badge {
|
||
position: absolute;
|
||
bottom: -10rpx;
|
||
left: 50%;
|
||
transform: translateX(-50%);
|
||
display: flex;
|
||
align-items: center;
|
||
height: 36rpx;
|
||
padding: 0 12rpx 0 6rpx;
|
||
background: #FFF5E5;
|
||
border: 1rpx solid #FFD39B;
|
||
border-radius: 18rpx;
|
||
box-shadow: 0 2rpx 8rpx rgba(240, 113, 13, 0.2);
|
||
white-space: nowrap;
|
||
}
|
||
.v-badge-ico {
|
||
width: 26rpx;
|
||
height: 26rpx;
|
||
margin-right: 4rpx;
|
||
}
|
||
.v-badge-txt {
|
||
font-size: 20rpx;
|
||
font-weight: 700;
|
||
color: #E36B0C;
|
||
line-height: 1;
|
||
}
|
||
.badge-info-row {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
padding: 10rpx 10rpx 20rpx;
|
||
}
|
||
.badge-info-left {
|
||
display: flex;
|
||
flex-direction: column;
|
||
}
|
||
.badge-master-name {
|
||
font-size: 38rpx;
|
||
font-weight: 800;
|
||
color: #1F1F1F;
|
||
line-height: 1.2;
|
||
margin-bottom: 8rpx;
|
||
}
|
||
.badge-master-mobile {
|
||
font-size: 28rpx;
|
||
color: #444444;
|
||
font-family: monospace;
|
||
}
|
||
.badge-qr-box {
|
||
width: 88rpx;
|
||
height: 88rpx;
|
||
}
|
||
.badge-qr-img {
|
||
width: 100%;
|
||
height: 100%;
|
||
}
|
||
.badge-divider {
|
||
height: 1rpx;
|
||
background: #F0F0F2;
|
||
margin-bottom: 20rpx;
|
||
}
|
||
</style>
|