| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848 |
- <template>
- <view class="page" :style="{ '--font-scale': fontScale }">
- <!-- 审核状态展示 -->
- <view v-if="showStatusView" class="status-view">
- <view class="status-card" :class="'status-' + applyStatus">
- <view class="status-icon">{{ statusIcon }}</view>
- <text class="status-title">{{ statusTitle }}</text>
- <text class="status-desc">{{ statusDesc }}</text>
- </view>
- <view v-if="applyStatus === 'pending'" class="status-tip">
- <text>预计 1-3 个工作日内完成审核,请耐心等待</text>
- </view>
- <view v-if="applyStatus === 'rejected'" class="reject-info">
- <text class="reject-label">拒绝原因</text>
- <text class="reject-reason">{{ applyRecord && applyRecord.rejectReason }}</text>
- </view>
- <view class="action-buttons">
- <button v-if="applyStatus === 'rejected'" class="btn-reapply" @click="handleReapply">
- 重新申请
- </button>
- <button v-if="applyStatus === 'approved'" class="btn-center" @click="goToCenter">
- 进入服务商中心
- </button>
- <button v-if="applyStatus === 'approved'" class="btn-add-role" @click="handleAddRole">
- 申请其他角色
- </button>
- <button class="btn-back" @click="goBack">返回首页</button>
- </view>
- </view>
- <!-- 申请表单 -->
- <view v-else class="form-wrap">
- <view v-if="hasApprovedRole" class="multi-role-hint">
- <text>📌 您当前已是 {{ approvedRoleLabel }},可勾选下方新增其他角色</text>
- </view>
- <view class="header">
- <text class="title">服务角色申请</text>
- <text class="subtitle">选择申请角色,提交资质信息</text>
- </view>
- <view class="section">
- <view class="section-title">选择申请角色 <text class="required">*</text></view>
- <!-- 严格三列:roleRows 每行固定 3 个单元格,flex:1 等分,不依赖 calc/gap -->
- <view class="role-grid">
- <view
- v-for="(row, rowIdx) in roleRows"
- :key="getRoleRowKey(rowIdx)"
- class="role-row"
- >
- <view
- v-for="role in row"
- :key="role.key"
- class="role-cell"
- >
- <view
- v-if="!role.placeholder"
- class="role-card"
- :class="{ selected: selectedRoles.indexOf(role.key) > -1, approved: isApprovedRole(role.key) }"
- @click="toggleRole(role.key)"
- >
- <text class="role-icon">{{ role.icon }}</text>
- <text class="role-name">{{ role.name }}</text>
- <view v-if="isApprovedRole(role.key)" class="approved-badge">已通过</view>
- <view v-else-if="selectedRoles.indexOf(role.key) > -1" class="check-mark">✓</view>
- </view>
- </view>
- </view>
- </view>
- </view>
- <view class="section">
- <view class="section-title">身份证信息</view>
- <input class="input" v-model="form.idCard" placeholder="请输入身份证号码" maxlength="18" />
- <view class="upload-row">
- <view class="upload-item" @click="chooseIdCardImage('front')">
- <image v-if="form.idCardFront" :src="form.idCardFront" mode="aspectFill" class="upload-preview" />
- <view v-else class="upload-placeholder">
- <text class="upload-icon">+</text>
- <text class="upload-label">身份证正面</text>
- </view>
- </view>
- <view class="upload-item" @click="chooseIdCardImage('back')">
- <image v-if="form.idCardBack" :src="form.idCardBack" mode="aspectFill" class="upload-preview" />
- <view v-else class="upload-placeholder">
- <text class="upload-icon">+</text>
- <text class="upload-label">身份证反面</text>
- </view>
- </view>
- </view>
- </view>
- <view class="section">
- <view class="section-title">资质证书</view>
- <view class="cert-list">
- <view v-for="(img, idx) in form.certificateImages" :key="getCertKey(idx)" class="cert-item">
- <image :src="img" mode="aspectFill" class="cert-preview" />
- <text class="cert-del" @click="removeCert(idx)">×</text>
- </view>
- <view class="cert-add" @click="chooseCertificate">
- <text class="upload-icon">+</text>
- <text class="upload-label">添加证书</text>
- </view>
- </view>
- </view>
- <view class="section">
- <view class="section-title">联系地址 <text class="required">*</text></view>
- <view class="address-row" @click="openAddressPicker">
- <text class="address-label">所在地区</text>
- <view class="address-value-wrap">
- <text v-if="addressText" class="address-value">{{ addressText }}</text>
- <text v-else class="address-placeholder">请选择省市区街道</text>
- <text class="address-arrow">›</text>
- </view>
- </view>
- <input class="input" v-model="form.addressDetail" placeholder="详细地址(门牌号等)" />
- <!-- 与收件人地址共用同一组件 components/address-picker.vue -->
- <AddressPicker ref="addressPicker" :show-trigger="false" @change="onAddressChange" />
- </view>
- <button class="submit-btn" :disabled="submitting" @click="handleSubmit">
- {{ submitting ? '提交中...' : '提交申请' }}
- </button>
- <view class="footer-hint">
- <text>提交后将在 1-3 个工作日内完成审核</text>
- </view>
- </view>
- </view>
- </template>
- <script>
- import { submitServiceRoleApply, getMyServiceRoleApply, uploadServiceRoleImage } from '../../utils/api'
- import { pickImage } from '../../utils/image-picker.js'
- import AddressPicker from '@/components/address-picker.vue'
- import fontScaleMixin from '@/mixins/font-scale.js'
- export default {
- mixins: [fontScaleMixin],
- components: { AddressPicker },
- data() {
- return {
- roleList: [
- { key: 'planner', name: '规划师', icon: '📋' },
- { key: 'nutritionist', name: '营养师', icon: '🥗' },
- { key: 'butler', name: '管家', icon: '🔔' },
- { key: 'vendor', name: '服务商', icon: '🏪' },
- { key: 'article_admin', name: '文章管理员', icon: '📝' },
- { key: 'activity_provider', name: '活动提供商', icon: '🎪' }
- ],
- selectedRoles: [],
- addressText: '',
- form: {
- idCard: '',
- idCardFront: '',
- idCardBack: '',
- certificateImages: [],
- province: '',
- city: '',
- district: '',
- street: '',
- addressDetail: ''
- },
- submitting: false,
- applyRecord: null,
- showStatusView: false
- }
- },
- computed: {
- // 按每行 3 个拆分行;最后一行不足 3 个用空占位单元格补齐,保证各行严格三列等宽
- roleRows() {
- const rows = []
- const list = this.roleList || []
- const total = Math.ceil(list.length / 3) * 3
- for (let i = 0; i < total; i += 3) {
- const row = []
- for (let j = 0; j < 3; j++) {
- const item = list[i + j]
- row.push(
- item
- ? item
- : { key: 'role-placeholder-' + i + '-' + j, name: '', icon: '', placeholder: true }
- )
- }
- rows.push(row)
- }
- return rows
- },
- applyStatus() {
- if (!this.applyRecord) return 'none'
- const s = this.applyRecord.status
- return s === 0 ? 'pending' : s === 1 ? 'approved' : 'rejected'
- },
- hasApprovedRole() {
- return this.applyRecord && this.applyRecord.status === 1
- },
- // 已通过审核的角色集合(key 数组)——这些角色已开通,不可重复勾选
- approvedRoles() {
- if (!this.applyRecord || this.applyRecord.status !== 1 || !this.applyRecord.roles) return []
- try {
- const roles = JSON.parse(this.applyRecord.roles)
- return Array.isArray(roles) ? roles : []
- } catch (e) { return [] }
- },
- approvedRoleLabel() {
- if (!this.applyRecord || !this.applyRecord.roles) return ''
- try {
- const roles = JSON.parse(this.applyRecord.roles)
- // 取第一个角色名称作为展示
- const roleMap = { planner: '规划师', nutritionist: '营养师', butler: '管家', vendor: '服务商', article_admin: '文章管理员', activity_provider: '活动提供商' }
- return roles.map(r => roleMap[r] || r).join('、') || '服务商'
- } catch (e) { return '服务商' }
- },
- statusIcon() {
- return { pending: '⏳', approved: '✅', rejected: '❌' }[this.applyStatus] || '📋'
- },
- statusTitle() {
- return { pending: '审核中', approved: '申请已通过', rejected: '申请被驳回' }[this.applyStatus] || ''
- },
- statusDesc() {
- return {
- pending: '您的申请正在审核中,请留意消息通知',
- approved: '已开通服务商身份,可继续申请其他服务角色',
- rejected: '您的申请未通过审核,可查看原因后重新提交'
- }[this.applyStatus] || ''
- }
- },
- onLoad() {
- this.checkExistingApply()
- },
- methods: {
- // 模板里不能直接调用 uni.*(渲染时实例上没有 uni,会报
- // "Property or method uni is not defined"),统一收进方法
- goBack() {
- var pages = getCurrentPages()
- if (pages && pages.length > 1) {
- uni.navigateBack()
- } else {
- uni.switchTab({ url: '/pages/index/index' })
- }
- },
- async checkExistingApply() {
- try {
- const res = await getMyServiceRoleApply()
- if (res.code === 200 && res.data) {
- this.applyRecord = res.data
- // 身份证预填:原申请记录里已上传的身份证不再要求重传
- this.prefillIdCard(this.applyRecord)
- const status = res.data.status
- if (status === 0) {
- // 审核中,展示进度
- this.showStatusView = true
- } else if (status === 1) {
- // 已通过:不再强制跳转,显示当前身份卡片 + 允许申请其他角色
- this.showStatusView = true
- } else if (status === 2) {
- // 已拒绝,显示原因
- this.showStatusView = true
- }
- }
- } catch (e) {
- // 无申请记录,显示表单
- }
- },
- // 从历史申请记录回填身份证号码与正反面图片(已上传过则不再要求重传)
- prefillIdCard(record) {
- if (!record) return
- if (record.idCard) this.form.idCard = record.idCard
- if (record.idCardImages) {
- try {
- const imgs = JSON.parse(record.idCardImages)
- if (Array.isArray(imgs) && imgs.length) {
- if (imgs[0]) this.form.idCardFront = imgs[0]
- if (imgs[1]) this.form.idCardBack = imgs[1]
- }
- } catch (e) {}
- }
- },
- toggleRole(key) {
- // 已通过审核的角色不可重复申请(不可勾选)
- if (this.approvedRoles.indexOf(key) > -1) {
- uni.showToast({ title: '该角色已开通,无需重复申请', icon: 'none' })
- return
- }
- const idx = this.selectedRoles.indexOf(key)
- if (idx > -1) {
- this.selectedRoles.splice(idx, 1)
- } else {
- this.selectedRoles.push(key)
- }
- },
- isApprovedRole(key) {
- return this.approvedRoles.indexOf(key) > -1
- },
- chooseIdCardImage(side) {
- pickImage({
- count: 1,
- sizeType: ['compressed'],
- sourceType: ['album', 'camera'],
- success: async (res) => {
- uni.showLoading({ title: '上传中...' })
- try {
- const uploadRes = await uploadServiceRoleImage(res.tempFilePaths[0])
- uni.hideLoading()
- if (uploadRes.code === 200) {
- if (side === 'front') {
- this.form.idCardFront = uploadRes.data.url
- } else {
- this.form.idCardBack = uploadRes.data.url
- }
- uni.showToast({ title: '上传成功', icon: 'success' })
- } else {
- uni.showToast({ title: uploadRes.message || '上传失败', icon: 'none' })
- }
- } catch (e) {
- uni.hideLoading()
- uni.showToast({ title: '上传失败', icon: 'none' })
- }
- }
- })
- },
- async chooseCertificate() {
- pickImage({
- count: 9 - this.form.certificateImages.length,
- sizeType: ['compressed'],
- sourceType: ['album', 'camera'],
- success: async (res) => {
- uni.showLoading({ title: '上传中...' })
- try {
- for (const filePath of res.tempFilePaths) {
- const uploadRes = await uploadServiceRoleImage(filePath)
- if (uploadRes.code === 200) {
- this.form.certificateImages.push(uploadRes.data.url)
- }
- }
- uni.hideLoading()
- uni.showToast({ title: '上传成功', icon: 'success' })
- } catch (e) {
- uni.hideLoading()
- uni.showToast({ title: '上传失败', icon: 'none' })
- }
- }
- })
- },
- removeCert(idx) {
- this.form.certificateImages.splice(idx, 1)
- },
- getCertKey(idx) {
- return 'cert-' + idx
- },
- getRoleRowKey(rowIdx) {
- return 'role-row-' + rowIdx
- },
- openAddressPicker() {
- if (this.$refs.addressPicker) {
- this.$refs.addressPicker.open()
- }
- },
- onAddressChange(e) {
- this.form.province = e.province || ''
- this.form.city = e.city || ''
- this.form.district = e.district || ''
- this.form.street = e.street || ''
- this.addressText = e.fullName || ''
- },
- async handleSubmit() {
- // 提交前过滤已通过角色(防御:仅提交新增角色,不重复申请已开通角色)
- const newRoles = (this.selectedRoles || []).filter(r => this.approvedRoles.indexOf(r) === -1)
- if (newRoles.length === 0) {
- uni.showToast({ title: '请至少选择一个新增角色', icon: 'none' })
- return
- }
- if (!this.form.idCardFront || !this.form.idCardBack) {
- uni.showToast({ title: '请上传身份证正反面照片', icon: 'none' })
- return
- }
- if (!this.form.province) {
- uni.showToast({ title: '请选择联系地址', icon: 'none' })
- return
- }
- this.submitting = true
- uni.showLoading({ title: '提交中...' })
- try {
- const res = await submitServiceRoleApply({
- roles: newRoles,
- idCard: this.form.idCard,
- idCardImages: [this.form.idCardFront, this.form.idCardBack],
- certificateImages: this.form.certificateImages,
- province: this.form.province,
- city: this.form.city,
- district: this.form.district,
- street: this.form.street,
- addressDetail: this.form.addressDetail
- })
- uni.hideLoading()
- if (res.code === 200) {
- // 提交成功,刷新状态
- await this.checkExistingApply()
- if (!this.showStatusView) this.showStatusView = true
- } else {
- uni.showToast({ title: res.message || '提交失败', icon: 'none' })
- }
- } catch (e) {
- uni.hideLoading()
- uni.showToast({ title: '提交失败,请重试', icon: 'none' })
- } finally {
- this.submitting = false
- }
- },
- handleReapply() {
- this.applyRecord = null
- this.showStatusView = false
- this.selectedRoles = []
- this.addressText = ''
- this.form = {
- idCard: '',
- idCardFront: '',
- idCardBack: '',
- certificateImages: [],
- province: '',
- city: '',
- district: '',
- street: '',
- addressDetail: ''
- }
- },
- goToCenter() {
- // 活动服务商 → 活动管理页(管理 Tab 由权限控制);其余角色 → 供应商中心
- if (this.approvedRoles.indexOf('activity_provider') > -1) {
- uni.redirectTo({ url: '/pages/activity/index' })
- } else {
- uni.redirectTo({ url: '/pages/vendor/center' })
- }
- },
- handleAddRole() {
- // 保留 applyRecord(用于标记已通过角色),仅切到表单视图;身份证沿用历史预填不重传
- this.showStatusView = false
- this.selectedRoles = []
- uni.showToast({ title: '可多选新增角色', icon: 'none', duration: 2000 })
- }
- }
- }
- </script>
- <style lang="scss">
- .page {
- min-height: 100vh;
- background: linear-gradient(180deg, $uni-primary-pale 0%, $facade-fill-page 30%);
- padding: 0 $uni-space-page 120rpx;
- }
- /* ===== 状态展示区 ===== */
- .status-view {
- padding-top: 60rpx;
- display: flex;
- flex-direction: column;
- align-items: center;
- }
- .status-card {
- width: 100%;
- border-radius: 24rpx;
- padding: 60rpx 40rpx;
- text-align: center;
- margin-bottom: $uni-space-lg;
- }
- .status-card.status-pending {
- background: linear-gradient(135deg, $dim-wealth-tint, $status-warning-soft);
- border: 2rpx solid $status-warning-light;
- }
- .status-card.status-approved {
- background: linear-gradient(135deg, $status-success-tint-2, $status-success-soft-2);
- border: 2rpx solid #86EFAC;
- }
- .status-card.status-rejected {
- background: linear-gradient(135deg, $status-danger-tint-2, $status-danger-soft);
- border: 2rpx solid $status-danger-light-2;
- }
- .status-icon {
- font-size: calc($uni-font-size-5xl * var(--font-scale, 1));
- display: block;
- margin-bottom: 20rpx;
- }
- .status-title {
- font-size: calc(36rpx * var(--font-scale, 1));
- font-weight: bold;
- color: $facade-text-gray-800;
- display: block;
- margin-bottom: 12rpx;
- }
- .status-desc {
- font-size: calc(26rpx * var(--font-scale, 1));
- color: $facade-text-slate;
- line-height: 1.6;
- display: block;
- }
- .status-tip {
- background: $app-surface;
- border-radius: 16rpx;
- padding: 20rpx 28rpx;
- margin-bottom: 40rpx;
- width: 100%;
- box-sizing: border-box;
- }
- .status-tip text {
- font-size: calc(24rpx * var(--font-scale, 1));
- color: $status-warning-strong;
- }
- .reject-info {
- background: $app-surface;
- border-radius: 16rpx;
- padding: 28rpx;
- margin-bottom: 40rpx;
- width: 100%;
- box-sizing: border-box;
- }
- .reject-label {
- font-size: calc(24rpx * var(--font-scale, 1));
- color: $facade-text-gray-400;
- display: block;
- margin-bottom: 12rpx;
- }
- .reject-reason {
- font-size: calc(28rpx * var(--font-scale, 1));
- color: $status-danger-deep;
- line-height: 1.6;
- display: block;
- }
- .action-buttons {
- width: 100%;
- display: flex;
- flex-direction: column;
- gap: 20rpx;
- }
- .btn-reapply, .btn-center, .btn-back {
- width: 100%;
- height: 88rpx;
- line-height: 88rpx;
- border-radius: 24rpx;
- font-size: calc(30rpx * var(--font-scale, 1));
- text-align: center;
- border: none;
- }
- .btn-reapply {
- background: linear-gradient(135deg, $brand-primary, $brand-primary-light);
- color: $app-surface;
- }
- .btn-center {
- background: linear-gradient(135deg, $status-success, $status-success-light-3);
- color: $app-surface;
- }
- .btn-back {
- background: $facade-fill-gray-100;
- color: $facade-text-slate;
- }
- /* ===== 表单区 ===== */
- .header {
- text-align: center;
- padding: 50rpx 0 $uni-space-lg;
- }
- .title {
- font-size: calc(40rpx * var(--font-scale, 1));
- font-weight: bold;
- color: $facade-text-gray-800;
- display: block;
- }
- .subtitle {
- font-size: calc(26rpx * var(--font-scale, 1));
- color: $facade-text-gray-400;
- margin-top: 10rpx;
- display: block;
- }
- .section {
- background: $app-surface;
- border-radius: 24rpx;
- padding: $uni-space-lg;
- margin-bottom: 24rpx;
- box-shadow: 0 2rpx 12rpx rgba(0,0,0,0.04);
- }
- .section-title {
- font-size: calc(28rpx * var(--font-scale, 1));
- font-weight: bold;
- margin-bottom: 24rpx;
- color: $facade-text-gray-700;
- }
- .required {
- color: $status-danger;
- margin-left: 4rpx;
- }
- /* 角色网格:固定三列
- 不使用 calc() 与 flex gap(旧版 iOS WebView 不支持 gap,calc 除法在不同机型上
- 会出现取整偏差导致换行)——改用「每行 3 个 flex:1 单元格 + 固定 rpx 间距」,
- 所有机型/分辨率下都严格等分三列 */
- .role-grid {
- display: flex;
- flex-direction: column;
- }
- .role-row {
- display: flex;
- flex-direction: row;
- justify-content: space-between;
- }
- .role-cell {
- /* flex:1 + 可收缩,保证同一行三等分,长文案不撑破列宽 */
- flex: 1;
- min-width: 0;
- box-sizing: border-box;
- }
- /* 单元格之间留白:左右各 8rpx,首尾行视情况抵消,保证总宽不溢出 */
- .role-cell:not(:first-child) {
- margin-left: 16rpx;
- }
- .role-row:not(:first-child) {
- margin-top: 20rpx;
- }
- .role-card {
- width: 100%;
- box-sizing: border-box;
- background: $facade-fill-gray-50;
- border-radius: 16rpx;
- padding: $uni-space-lg 0;
- display: flex;
- flex-direction: column;
- align-items: center;
- position: relative;
- border: 3rpx solid transparent;
- transition: border-color 0.2s, background-color 0.2s;
- }
- .role-card.selected {
- background: $uni-primary-pale;
- border-color: $brand-primary;
- }
- /* 已通过角色:置灰锁定,显示"已通过"徽标,不可勾选 */
- .role-card.approved {
- background: #f0f7f0;
- border-color: #7cc576;
- opacity: 0.85;
- }
- .approved-badge {
- position: absolute;
- top: 8rpx;
- right: 12rpx;
- color: #4a9b4a;
- font-size: calc(20rpx * var(--font-scale, 1));
- font-weight: bold;
- background: rgba(124, 197, 118, 0.18);
- border-radius: 8rpx;
- padding: 4rpx 10rpx;
- }
- .role-icon {
- font-size: calc(44rpx * var(--font-scale, 1));
- margin-bottom: 10rpx;
- }
- .role-name {
- font-size: calc(24rpx * var(--font-scale, 1));
- color: $facade-text-gray-700;
- font-weight: 500;
- /* 保证长角色名不换行撑高导致行高不一致 */
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- max-width: 100%;
- }
- .check-mark {
- position: absolute;
- top: 8rpx;
- right: 12rpx;
- color: $brand-primary;
- font-size: calc(32rpx * var(--font-scale, 1));
- font-weight: bold;
- }
- /* 联系地址入口行(与收件人地址页保持同一套视觉) */
- .address-row {
- display: flex;
- align-items: center;
- padding: 24rpx 24rpx;
- background: $facade-fill-ghost;
- border: 2rpx solid $facade-gray-200;
- border-radius: 16rpx;
- margin-bottom: 16rpx;
- }
- .address-label {
- font-size: calc(26rpx * var(--font-scale, 1));
- color: $facade-text-gray-700;
- width: 140rpx;
- flex-shrink: 0;
- }
- .address-value-wrap {
- flex: 1;
- display: flex;
- align-items: center;
- justify-content: flex-end;
- min-width: 0;
- }
- .address-value {
- font-size: calc(26rpx * var(--font-scale, 1));
- color: $facade-text-gray-700;
- text-align: right;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- .address-placeholder {
- font-size: calc(26rpx * var(--font-scale, 1));
- color: $facade-text-gray-400;
- text-align: right;
- }
- .address-arrow {
- font-size: calc(34rpx * var(--font-scale, 1));
- color: $facade-text-gray-400;
- margin-left: 8rpx;
- flex-shrink: 0;
- }
- /* 输入框 */
- .input {
- width: 100%;
- height: 72rpx;
- border: 2rpx solid $facade-gray-200;
- border-radius: 16rpx;
- padding: 0 24rpx;
- font-size: calc(26rpx * var(--font-scale, 1));
- box-sizing: border-box;
- margin-bottom: 16rpx;
- background: $facade-fill-ghost;
- }
- /* 图片上传 */
- .upload-row {
- display: flex;
- gap: 20rpx;
- }
- .upload-item {
- flex: 1;
- height: 200rpx;
- border: 3rpx dashed $app-border-strong;
- border-radius: 16rpx;
- display: flex;
- align-items: center;
- justify-content: center;
- overflow: hidden;
- background: $facade-fill-ghost;
- }
- .upload-placeholder {
- display: flex;
- flex-direction: column;
- align-items: center;
- }
- .upload-icon {
- font-size: calc(48rpx * var(--font-scale, 1));
- color: $facade-text-gray-400;
- }
- .upload-label {
- font-size: calc(22rpx * var(--font-scale, 1));
- color: $facade-text-gray-400;
- margin-top: 8rpx;
- }
- .upload-preview {
- width: 100%;
- height: 100%;
- }
- /* 证书列表 */
- .cert-list {
- display: flex;
- flex-wrap: wrap;
- gap: 16rpx;
- }
- .cert-item {
- width: 160rpx;
- height: 160rpx;
- position: relative;
- border-radius: 16rpx;
- overflow: hidden;
- }
- .cert-preview {
- width: 100%;
- height: 100%;
- }
- .cert-del {
- position: absolute;
- top: 4rpx;
- right: 4rpx;
- width: 36rpx;
- height: 36rpx;
- background: rgba(0,0,0,0.55);
- color: $app-surface;
- border-radius: 50%;
- text-align: center;
- line-height: 36rpx;
- font-size: calc(28rpx * var(--font-scale, 1));
- }
- .cert-add {
- width: 160rpx;
- height: 160rpx;
- border: 3rpx dashed $app-border-strong;
- border-radius: 16rpx;
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- background: $facade-fill-ghost;
- }
- /* 提交按钮 */
- .submit-btn {
- width: 100%;
- height: 96rpx;
- line-height: 96rpx;
- background: linear-gradient(135deg, $brand-primary, $brand-primary-light);
- color: $app-surface;
- border-radius: 24rpx;
- font-size: calc(32rpx * var(--font-scale, 1));
- font-weight: 600;
- margin-top: 16rpx;
- border: none;
- box-shadow: 0 8rpx 24rpx rgba(249, 115, 22, 0.3);
- }
- .submit-btn[disabled] {
- opacity: 0.6;
- box-shadow: none;
- }
- .footer-hint {
- text-align: center;
- margin-top: 24rpx;
- }
- .footer-hint text {
- font-size: calc(24rpx * var(--font-scale, 1));
- color: $facade-text-gray-400;
- }
- .multi-role-hint {
- background: linear-gradient(135deg, $status-info-tint, $status-info-soft);
- border: 2rpx solid $tint-blue-line;
- border-radius: 16rpx;
- padding: 18rpx 24rpx;
- margin-bottom: 20rpx;
- }
- .multi-role-hint text {
- font-size: calc(26rpx * var(--font-scale, 1));
- color: $status-info-deep-3;
- }
- .btn-add-role {
- background: linear-gradient(135deg, $dim-wisdom, $dim-wisdom-light);
- color: $app-surface;
- }
- </style>
|