文件
yjyf/yjyf-app/pages/order/quick.vue
MiAn 9e83a869e1 chore: 移除废弃的增项服务模块并升级服务架构
- 删除 Addon 相关控制器、模型、语言包和视图文件
- 新增服务类型支持一口价属性配置
- 新增系统监控、用户资料、订单评价等后端管理页面
- 新增数据库表结构及索引优化脚本
- 更新应用版本号至 1.0.44
- 更新小程序应用标识
- 完善 .gitignore 配置
2026-11-10 16:47:41 +08:00

3608 行
93 KiB
Vue

此文件含有模棱两可的 Unicode 字符

此文件含有可能会与其他字符混淆的 Unicode 字符。 如果您是想特意这样的,可以安全地忽略该警告。 使用 Escape 按钮显示他们。

<template>
<view class="page">
<!-- 统一规范顶部固定橙色导航栏(对标图一及 frame_004/015/025 纯净单层导航,无多余步骤条与白线) -->
<YjyfNavBar
theme="orange"
:title="currentStepTitle"
:fixed="true"
:placeholder="true"
:custom-back="true"
@back="handleNavBack"
/>
<!-- ==================== 步骤 1:添加商品 (1:1 对标图一 & frame_004, frame_007, frame_009) ==================== -->
<view class="main-body" v-if="currentStep === 1">
<!-- 顶部常驻双行卡片:品类与下单模式 -->
<view class="top-service-card">
<!-- 第 1 行:当前服务品类 -->
<view class="tsc-row">
<view class="tsc-left">
<view class="tsc-icon-wrap">
<image class="tsc-img" :src="currentCatIconUrl || '/static/icons/appliance.png'" mode="aspectFit" />
</view>
<text class="tsc-title">{{ drawerCatName || '家电' }}</text>
</view>
<view class="tsc-btn clickable-hover" @tap="goToSelectCategory">
<text class="tsc-btn-txt">重新选择类目</text>
</view>
</view>
<!-- 第 2 行:当前下单模式(右上角贴边悬浮渐变角标“下单送券·慢必赔”) -->
<view class="tsc-row no-border tsc-mode-row">
<view class="tsc-left">
<view class="tsc-icon-wrap">
<image
class="tsc-img"
:src="priceType === 'quote' ? '/static/icons/mode-hammer.svg' : (priceType === 'custom' ? '/static/icons/mode-custom.svg' : '/static/icons/mode-coin.svg')"
mode="aspectFit"
/>
</view>
<text class="tsc-title">{{ currentModeName }}</text>
</view>
<view class="tsc-mode-btn-group clickable-hover" @tap="showModeDrawer = true">
<view class="tsc-float-badge">
<text class="tsc-float-badge-txt">下单送券·慢必赔</text>
</view>
<view class="tsc-btn">
<text class="tsc-btn-txt">重新选择下单模式</text>
</view>
</view>
</view>
<!-- 自主定价快捷出价 -->
<view class="custom-price-bar" v-if="priceType === 'custom'">
<text class="cpb-label">我的意向出价:</text>
<view class="cpb-input-wrap">
<text class="cpb-currency">¥</text>
<input class="cpb-input" type="digit" v-model="userPrice" placeholder="请输入出价金额" @input="scheduleCalc" />
</view>
</view>
</view>
<!-- 商品信息列表(支持多组) -->
<view class="group-list">
<view class="group-card" v-for="(g, idx) in goodsList" :key="idx">
<!-- 组头部:左侧“商品信息 + 商品模板”,右侧“第 X 组 + 垃圾桶” -->
<view class="gc-head">
<view class="gc-head-left">
<text class="gc-title">商品信息</text>
<view class="gc-tpl-wrap clickable-hover" @tap="openGoodsTemplate(idx)">
<view class="gc-tpl-btn">
<text class="gc-tpl-txt">商品模板</text>
</view>
<view class="gc-tpl-FloatTag" v-if="!g.item_name">
<text class="gc-tpl-tag-txt">支持多商品组合</text>
</view>
</view>
</view>
<view class="gc-meta">
<text class="gc-group-num">第 {{ idx + 1 }} 组</text>
<view class="gc-del-btn clickable-hover" @tap="removeOrResetGroup(idx)">
<image class="gc-trash-img" src="/static/icons/trash.svg" mode="aspectFit" />
</view>
</view>
</view>
<!-- 并排 3 个正方形虚线框(图片、视频、环境图)+ 右侧橙色问号 -->
<view class="media-upload-row">
<!-- 1. 添加图片(若已上传则直接内嵌展示首图与张数角标,对标 frame_007/014) -->
<view class="dash-card pic-dash clickable-hover" v-if="!(g.images && g.images.length)" @tap="openMediaDrawer(idx, 'image')">
<image class="dc-icon" src="/static/icons/add-img.svg" mode="aspectFit" />
<view class="dc-req-line">
<text class="dc-star">*</text>
<text class="dc-txt orange">添加图片</text>
</view>
</view>
<view class="dash-card filled-dash clickable-hover" v-else @tap="openMediaDrawer(idx, 'image')">
<image class="fd-img" :src="g.images[0]" mode="aspectFill" @tap.stop="previewImg(g.images, 0)" />
<view class="fd-del" @tap.stop="removeGroupImg(idx, 0)">×</view>
<view class="fd-count-bar">
<text class="fd-count-txt">共{{ g.images.length }}张</text>
</view>
</view>
<!-- 2. 安装视频(一口价模式下展示,报价模式下隐藏,1:1 对标视频 00:00 vs 00:14) -->
<template v-if="priceType === 'fixed'">
<view class="dash-card video-dash clickable-hover" v-if="!(g.videos && g.videos.length)" @tap="pickVideo(idx)">
<image class="dc-icon" src="/static/icons/add-video.svg" mode="aspectFit" />
<text class="dc-txt gray">安装视频</text>
<text class="dc-sub gray">(非必填)</text>
</view>
<view class="dash-card filled-dash clickable-hover" v-else @tap="pickVideo(idx)">
<image class="fd-img" :src="g.videos[0].thumbTempFilePath || '/static/icons/add-video.svg'" mode="aspectFill" />
<view class="mp-play-badge">
<image class="mp-play-icon" src="/static/icons/play-white.svg" mode="aspectFit" />
</view>
<view class="fd-del" @tap.stop="removeGroupVideo(idx, 0)">×</view>
</view>
<!-- 3. 安装环境图 -->
<view class="dash-card env-dash clickable-hover" v-if="!(g.envImages && g.envImages.length)" @tap="openMediaDrawer(idx, 'env')">
<image class="dc-icon" src="/static/icons/add-env.svg" mode="aspectFit" />
<text class="dc-txt gray">安装环境图</text>
<text class="dc-sub gray">(非必填)</text>
</view>
<view class="dash-card filled-dash clickable-hover" v-else @tap="openMediaDrawer(idx, 'env')">
<image class="fd-img" :src="g.envImages[0]" mode="aspectFill" @tap.stop="previewImg(g.envImages, 0)" />
<view class="fd-del" @tap.stop="removeGroupEnvImg(idx, 0)">×</view>
<view class="fd-count-bar">
<text class="fd-count-txt">共{{ g.envImages.length }}张</text>
</view>
</view>
</template>
<!-- 4. 说明问号 -->
<view class="env-help-box clickable-hover" @tap="showEnvHelp">
<image class="eh-icon" src="/static/icons/info-orange.svg" mode="aspectFit" />
</view>
</view>
<!-- 表单项列表:全部采用抽屉选择 -->
<view class="form-item-list">
<!-- ① 商品行:自填模式(其它类目或未检索到商品)下直接输入,常规品类下弹窗选择 -->
<view class="form-row" v-if="g.is_custom || isOtherCategory">
<view class="fr-label">
<text class="req-star">*</text>
<text class="label-txt">输入商品</text>
</view>
<view class="fr-input-box">
<input
class="fr-custom-input"
v-model="g.custom_name"
placeholder="请输入商品名称"
maxlength="20"
@input="scheduleCalc"
/>
<text class="fr-char-count">{{ (g.custom_name || '').length }}/20</text>
</view>
</view>
<view class="form-row clickable-hover" v-else @tap="openGoodsDrawer(idx)">
<view class="fr-label">
<text class="req-star">*</text>
<text class="label-txt">选择商品</text>
</view>
<view class="fr-value-box">
<text class="val-txt" :class="{ placeholder: !g.item_name }">{{ g.item_name ? (g.item_name + (g.spec_name && g.spec_name !== g.item_name ? '(' + g.spec_name + ')' : '')) : '选择商品类型' }}</text>
<image class="fr-arrow" src="/static/icons/arrow-right.svg" mode="aspectFit" />
</view>
</view>
<!-- ② 商品数量:步进器 + 右侧动态单位(对标视频 00:00 桌子显示“张”) -->
<view class="form-row">
<view class="fr-label">
<text class="req-star">*</text>
<text class="label-txt">商品数量</text>
</view>
<view class="fr-stepper-group">
<view class="fr-stepper">
<view class="step-btn step-minus clickable-hover" :class="{ disabled: g.num <= 1 }" @tap="stepGroupNum(idx, -1)">-</view>
<view class="step-num-box">{{ g.num }}</view>
<view class="step-btn step-plus clickable-hover" @tap="stepGroupNum(idx, 1)">+</view>
</view>
<text class="step-unit-txt">{{ g.unit || '个' }}</text>
</view>
</view>
<!-- ③ 服务项目:抽屉展示(对标视频 00:02 & 01:20) -->
<view class="form-row clickable-hover" @tap="openServiceTypeDrawer(idx)">
<view class="fr-label">
<text class="req-star">*</text>
<text class="label-txt">服务项目</text>
</view>
<view class="fr-value-box">
<text class="val-txt" :class="{ placeholder: !g.service_type_name, 'highlight-dark': !!g.service_type_name }">{{ g.service_type_name || '选择服务项目' }}</text>
<image class="fr-arrow" src="/static/icons/arrow-right.svg" mode="aspectFit" />
</view>
</view>
<!-- ④ 增项服务:仅在服务项目为“安装”或“维修”时显示(1:1 复刻视频 00:04 vs 00:52 选“拆旧”自动隐藏) -->
<view class="form-row clickable-hover" v-if="canShowAddonRow(g)" @tap="openAddonDrawer(idx)">
<view class="fr-label">
<text class="label-txt no-star">增项服务</text>
</view>
<view class="fr-value-box">
<text class="val-txt" :class="{ placeholder: !hasAddons(g), 'highlight-dark': hasAddons(g) }">{{ addonSummary(g) }}</text>
<image class="fr-arrow" src="/static/icons/arrow-right.svg" mode="aspectFit" />
</view>
</view>
<!-- ⑤ 商品备注:上下结构 + 全宽浅灰输入框(对标 frame_004, frame_009) -->
<view class="form-row no-border flex-col-remark">
<view class="fr-label">
<text class="label-txt no-star">商品备注</text>
</view>
<view class="gc-remark-box">
<input
class="gc-remark-input"
v-model="g.remark"
placeholder="点击,输入商品备注..."
placeholder-style="color: #999999;"
/>
</view>
</view>
</view>
<!-- 组底部红色小计金额(一口价模式且已选商品时显示,对标 frame_009) -->
<view class="gc-subtotal-row" v-if="priceType === 'fixed' && g.item_name && Number(getGroupEstimatedPrice(g)) > 0">
<text class="gc-subtotal-price">¥{{ getGroupEstimatedPrice(g) }}</text>
</view>
</view>
</view>
</view>
<!-- ==================== 步骤 2:客户信息 (1:1 对标 frame_015, frame_018, frame_021) ==================== -->
<view class="main-body" v-else-if="currentStep === 2">
<!-- 智能地址粘贴识别卡片 (对标 frame_015) -->
<view class="paste-parse-card">
<view class="ppc-box">
<textarea
class="ppc-textarea"
v-model="rawAddressText"
placeholder="粘贴整段:姓名,手机号,地址,可自动识别;&#10;示例:张三,180****0000,贵州省贵阳市南明区花果园M区"
placeholder-style="color: #999999;"
/>
<view class="ppc-btn-row">
<!-- 首次引导提示气泡(对标 frame_015) -->
<view class="ppc-guide-bubble" v-if="showStep2Tip" @tap.stop="showStep2Tip = false">
<text class="pgb-txt">请填写客户的姓名、手机号和地址,然后点击下一步</text>
<text class="pgb-close">×</text>
</view>
<view class="ppc-right-btns">
<view class="ppc-history-btn clickable-hover" @tap="openAddressBook">
<text class="phb-txt">历史客户</text>
</view>
<view class="ppc-action-btn clickable-hover" @tap="executeParseAddress">
<text class="pab-txt">立即识别</text>
</view>
</view>
</view>
</view>
</view>
<!-- 客户信息表单卡片 -->
<view class="customer-card">
<!-- 客户姓名 -->
<view class="form-row">
<view class="fr-label">
<text class="req-star">*</text>
<text class="label-txt">客户姓名</text>
</view>
<view class="fr-value-box">
<input class="fr-input right-align" v-model="form.contact" placeholder="请输入客户姓名" placeholder-style="color: #999999;" />
</view>
</view>
<!-- 客户手机 -->
<view class="form-row">
<view class="fr-label">
<text class="req-star">*</text>
<text class="label-txt">客户手机</text>
</view>
<view class="fr-value-box">
<input class="fr-input right-align" type="number" maxlength="11" v-model="form.mobile" placeholder="请输入客户手机号" placeholder-style="color: #999999;" />
</view>
</view>
<!-- 虚拟号保护开关 -->
<view class="form-row sub-row">
<view class="fr-label flex-row-center" @tap="showVirtualHelp">
<view class="virtual-checkbox" :class="{ on: form.use_virtual }" @tap.stop="form.use_virtual = !form.use_virtual">
<image class="vc-icon" v-if="form.use_virtual" src="/static/icons/check-white.svg" mode="aspectFit" />
</view>
<text class="sub-label-txt">虚拟号</text>
<image class="sub-info-icon" src="/static/icons/info-orange.svg" mode="aspectFit" />
</view>
<text class="sub-hint-txt">隐藏真实号码,防骚扰泄露</text>
</view>
<!-- 客户地址(省市区选择 + 师傅运力提示,对标 frame_015/018) -->
<view class="form-row addr-col-row">
<view class="addr-top-line">
<view class="fr-label">
<text class="req-star">*</text>
<text class="label-txt">客户地址</text>
</view>
<picker mode="region" :value="[form.province, form.city, form.district]" @change="onRegionChange">
<view class="region-picker-btn clickable-hover">
<text class="val-txt region-txt">{{ form.province }}-{{ form.city }}-{{ form.district }}</text>
<image class="fr-arrow" src="/static/icons/arrow-right.svg" mode="aspectFit" />
</view>
</picker>
</view>
<!-- 师傅运力提示(1:1 复刻 frame_015) -->
<view class="master-capacity-hint">
<text class="mch-txt">该地区可提供{{ drawerCatName || '安装' }}服务的师傅共 </text>
<text class="mch-num">{{ currentDistrictMasterCount || 303 }}位</text>
</view>
</view>
<!-- 详细地址 -->
<view class="form-row">
<view class="fr-label">
<text class="req-star">*</text>
<text class="label-txt">详细地址</text>
</view>
<view class="fr-value-box">
<input class="fr-input right-align" v-model="form.address" placeholder="详细门牌号、楼栋房号" placeholder-style="color: #999999;" />
</view>
</view>
<!-- 楼层与电梯 -->
<view class="form-row">
<view class="fr-label">
<text class="label-txt no-star">楼层</text>
</view>
<view class="elevator-radios">
<view class="el-radio clickable-hover" :class="{ on: form.has_elevator === 1 }" @tap="setElevator(1)">
<view class="rd-dot"></view>
<text class="rd-txt">有电梯</text>
</view>
<view class="el-radio clickable-hover" :class="{ on: form.has_elevator === 0 }" @tap="setElevator(0)">
<view class="rd-dot"></view>
<text class="rd-txt">无电梯(步梯)</text>
</view>
</view>
</view>
<!-- 服务备注与常用模板抽屉入口 (对标 frame_018) -->
<view class="form-row no-border flex-col-start">
<view class="remark-head-row">
<text class="label-txt no-star">服务备注</text>
<view class="tpl-btn clickable-hover" @tap="showRemarkDrawer = true">
<text class="tpl-txt">请选择常用备注模板</text>
<image class="tpl-arrow" src="/static/icons/arrow-right.svg" mode="aspectFit" />
</view>
</view>
<view class="remark-input-box">
<input class="remark-input" v-model="form.remark" placeholder="点击输入..." placeholder-style="color: #999999;" />
</view>
</view>
</view>
<!-- 订单联系人与交付协同卡片(支持“显示全部 / 收起”,1:1 对标奇兵到家图1 & 图2) -->
<view class="customer-card">
<!-- 订单联系人(发单账号/商家联系人,与上方终端客户信息独立) -->
<view class="form-row clickable-hover" @tap="editOrderContact">
<view class="fr-label">
<text class="req-star">*</text>
<text class="label-txt">订单联系人</text>
</view>
<view class="fr-value-box">
<text class="val-txt highlight-dark">{{ contactDisplay }}</text>
<image class="fr-arrow" src="/static/icons/arrow-right.svg" mode="aspectFit" />
</view>
</view>
<!-- 期望上门时间:常驻显示(对标图1) -->
<view class="form-row clickable-hover" :class="{ 'no-border': !showAllStep2Fields }" @tap="showAppointDrawer = true">
<view class="fr-label">
<text class="label-txt no-star">期望上门时间</text>
</view>
<view class="fr-value-box">
<text class="val-txt" :class="{ placeholder: !appointDate, 'highlight-dark': appointDate }">{{ appointDisplay || '选择上门时间' }}</text>
<image class="fr-arrow" src="/static/icons/arrow-right.svg" mode="aspectFit" />
</view>
</view>
<template v-if="showAllStep2Fields">
<!-- 物流单号(右侧带“查询”按钮,点击或失焦自动识别物流名称并联动下方物流公司,对标图2) -->
<view class="form-row">
<view class="fr-label">
<text class="label-txt no-star">物流单号</text>
</view>
<view class="fr-value-box express-no-box">
<input
class="fr-input right-align"
v-model="form.logistics_no"
placeholder="请输入物流单号"
placeholder-style="color: #999999;"
@blur="onExpressNoBlur"
/>
<view class="express-query-btn clickable-hover" @tap.stop="queryExpressCompany">
<text class="eqb-txt">{{ queryingExpress ? '查询中' : '查询' }}</text>
</view>
</view>
</view>
<!-- 物流公司:抽屉展示(对标图2 & 图5按首字母分组) -->
<view class="form-row clickable-hover" @tap="showLogisticsDrawer = true">
<view class="fr-label">
<text class="label-txt no-star">物流公司</text>
</view>
<view class="fr-value-box">
<text class="val-txt" :class="{ placeholder: !form.logistics_company, 'highlight-dark': form.logistics_company }">{{ form.logistics_company || '选择物流公司' }}</text>
<image class="fr-arrow" src="/static/icons/arrow-right.svg" mode="aspectFit" />
</view>
</view>
<!-- 货物是否到达客户家 (对标图2) -->
<view class="form-row">
<view class="fr-label">
<text class="label-txt no-star">货物是否到达客户家</text>
</view>
<view class="goods-arrived-pills">
<view
class="arrived-pill clickable-hover"
:class="{ active: form.goods_arrived === 0 }"
@tap="form.goods_arrived = 0"
>未到货</view>
<view
class="arrived-pill clickable-hover"
:class="{ active: form.goods_arrived === 1 }"
@tap="form.goods_arrived = 1"
>已到货</view>
</view>
</view>
<!-- 订单来源 (对标图2) -->
<view class="form-row clickable-hover" @tap="pickOrderSource">
<view class="fr-label">
<text class="label-txt no-star">订单来源</text>
</view>
<view class="fr-value-box">
<input
class="fr-input right-align"
v-model="form.order_source"
placeholder="输入此订单的来源店铺"
placeholder-style="color: #999999;"
@tap.stop
/>
<image class="fr-arrow" src="/static/icons/arrow-right.svg" mode="aspectFit" />
</view>
</view>
<!-- 来源订单号 (对标图2) -->
<view class="form-row">
<view class="fr-label">
<text class="label-txt no-star">来源订单号</text>
</view>
<view class="fr-value-box">
<input class="fr-input right-align" v-model="form.source_order_no" placeholder="输入来源订单号" placeholder-style="color: #999999;" />
</view>
</view>
<!-- 资质要求 (对标图2) -->
<view class="form-row clickable-hover" @tap="pickQualReq">
<view class="fr-label">
<text class="label-txt no-star">资质要求</text>
</view>
<view class="fr-value-box">
<text class="val-txt" :class="{ placeholder: !form.qual_req, 'highlight-dark': form.qual_req }">{{ form.qual_req || '选择师傅接单所需要的资质证件' }}</text>
<image class="fr-arrow" src="/static/icons/arrow-right.svg" mode="aspectFit" />
</view>
</view>
<!-- 师傅要求:抽屉展示 (对标图2) -->
<view class="form-row no-border clickable-hover" @tap="showDemandDrawer = true">
<view class="fr-label">
<text class="label-txt no-star">师傅要求</text>
</view>
<view class="fr-value-box">
<text class="val-txt" :class="{ placeholder: !hasDemandReq, 'highlight-dark': hasDemandReq }">{{ demandSummaryText }}</text>
<image class="fr-arrow" src="/static/icons/arrow-right.svg" mode="aspectFit" />
</view>
</view>
</template>
<!-- 底部折叠/展开栏(对标图1“显示全部 v” 与 图2“收起 ^”) -->
<view class="step2-expand-bar clickable-hover" @tap="showAllStep2Fields = !showAllStep2Fields">
<text class="seb-txt">{{ showAllStep2Fields ? '收起' : '显示全部' }}</text>
<image class="seb-arrow" :class="{ up: showAllStep2Fields }" src="/static/icons/arrow-down.svg" mode="aspectFit" />
</view>
</view>
</view>
<!-- ==================== 步骤 3:确认订单 (1:1 对标 frame_025, frame_027, frame_028) ==================== -->
<view class="main-body" v-else-if="currentStep === 3">
<!-- 顶部地址卡片 (对标 frame_025) -->
<view class="confirm-addr-card">
<view class="cac-icon-wrap">
<image class="cac-pin-icon" src="/static/icons/loc-pin-orange.svg" mode="aspectFit" />
</view>
<view class="cac-info">
<view class="cac-user-line">
<text class="cac-name">{{ form.contact }}</text>
<text class="cac-mobile">{{ form.mobile }}</text>
</view>
<text class="cac-full-addr">{{ form.province }} {{ form.city }} {{ form.district }} {{ form.address }}</text>
</view>
<view class="cac-edit-link clickable-hover" @tap="currentStep = 2">
<text class="cel-txt">编辑</text>
</view>
</view>
<!-- 商品列表清单卡片 (对标 frame_025) -->
<view class="confirm-goods-card">
<view class="cgc-item" v-for="(g, idx) in goodsList" :key="idx">
<view class="cgc-thumb-wrap" @tap="previewImg(g.images && g.images.length ? g.images : ['/static/icons/appliance.png'], 0)">
<image
class="cgc-thumb"
:src="(g.images && g.images.length) ? g.images[0] : '/static/icons/appliance.png'"
mode="aspectFill"
/>
<view class="cgc-view-big">
<text class="cvb-txt">查看大图</text>
</view>
</view>
<view class="cgc-detail">
<view class="cgc-top-row">
<text class="cgc-name">{{ g.item_name }}{{ g.spec_name && g.spec_name !== g.item_name ? '(' + g.spec_name + ')' : '' }} x{{ g.num }}</text>
<text class="cgc-price" v-if="priceType !== 'quote'">¥{{ getGroupEstimatedPrice(g) }}</text>
</view>
<view class="cgc-services-row">
<text class="cgc-service-summary">{{ getConfirmServiceSummary(g) }}</text>
</view>
</view>
</view>
</view>
<!-- 附加服务卡片 (对标 frame_025, 027) -->
<view class="confirm-extra-card">
<view class="cec-head">
<text class="cec-title">附加服务</text>
<image class="cec-info-icon" src="/static/icons/info-orange.svg" mode="aspectFit" @tap="showUrgentHelp" />
</view>
<view class="cec-row clickable-hover" @tap="toggleUrgent">
<text class="cec-label">加急订单(加急费20元~200元)</text>
<view class="cec-radio-circle" :class="{ on: isUrgent }">
<image class="crc-check" v-if="isUrgent" src="/static/icons/check-white.svg" mode="aspectFit" />
</view>
</view>
</view>
<!-- 费用与优惠明细卡片 (对标 frame_025, 028) -->
<view class="confirm-fee-card">
<!-- 报价模式说明 -->
<view class="cfc-quote-box" v-if="priceType === 'quote'">
<view class="cqb-badge">师傅竞价模式</view>
<text class="cqb-title">由接单师傅在线竞价报价</text>
<text class="cqb-desc">发布订单后,师傅将在订单大厅查看需求并给出报价。您可在线对比师傅报价与评价,选定满意的师傅后再支付费用托管至平台。</text>
</view>
<!-- 用户自主定价模式 -->
<template v-else-if="priceType === 'custom'">
<view class="cfc-row">
<text class="cfc-label">我的意向出价总额</text>
<text class="cfc-val highlight">¥{{ Number(userPrice) || 0 }}</text>
</view>
<view class="cfc-total-line">
<text class="total-tag">合计</text>
<text class="total-price">¥{{ Number(userPrice) || 0 }}</text>
</view>
<view class="cfc-notice-box">
<text class="cnb-txt">注:订单服务过程中,非师傅原因导致空跑,若师傅申请空跑费30元需由下单方承担(师傅不申请则无需支付)。</text>
</view>
</template>
<!-- 一口价模式 -->
<template v-else>
<view class="cfc-row">
<text class="cfc-label">商品总价</text>
<text class="cfc-val">¥{{ amount ? amount.base_amount : '0.00' }}</text>
</view>
<view class="cfc-row" v-if="amount && amount.floor_amount > 0">
<text class="cfc-label">步梯搬运费</text>
<text class="cfc-val">¥{{ amount.floor_amount }}</text>
</view>
<view class="cfc-row" v-if="isUrgent && amount && amount.urgent_amount > 0">
<text class="cfc-label">加急服务费</text>
<text class="cfc-val">¥{{ amount.urgent_amount }}</text>
</view>
<view class="cfc-row clickable-hover" @tap="showFeeDrawer = true">
<view class="cfc-coupon-left">
<view class="cfc-quan-badge">券</view>
<text class="cfc-label">优惠券</text>
</view>
<view class="cfc-coupon-right">
<text class="cfc-discount-val">-¥{{ (amount && amount.discount_amount) || '0.00' }}</text>
<image class="cfc-arrow" src="/static/icons/arrow-right.svg" mode="aspectFit" />
</view>
</view>
<view class="cfc-total-line">
<text class="total-tag">合计</text>
<text class="total-price">¥{{ amount ? amount.pay_amount : '0.00' }}</text>
</view>
<!-- 平台履约空跑说明 (对标 frame_028) -->
<view class="cfc-notice-box">
<text class="cnb-txt">注:订单服务过程中,非师傅原因导致空跑,若师傅申请空跑费30元需由下单方承担(师傅不申请则无需支付)。</text>
</view>
</template>
</view>
<!-- 超时自动转报价订单保障 (对标 frame_028) -->
<view class="confirm-guarantee-card" v-if="priceType === 'fixed'">
<view class="cgc-check-row" @tap="autoQuote = !autoQuote">
<view class="guarantee-checkbox" :class="{ on: autoQuote }">
<image class="gc-icon" v-if="autoQuote" src="/static/icons/check-white.svg" mode="aspectFit" />
</view>
<view class="cgc-check-text-wrap">
<text class="cgc-check-label">如超过</text>
<text class="cgc-orange-txt" @tap.stop="pickAutoQuoteHours">{{ autoQuoteHours }}小时</text>
<text class="cgc-check-label">无法匹配合适师傅,自动换成报价订单</text>
<text class="cgc-set-link" @tap.stop="pickAutoQuoteHours">设置时长></text>
</view>
</view>
<view class="cgc-sub-hint">
一口价订单转成报价订单后会生成一笔新的报价单,已支付的金额会退回您的支付账户。
</view>
</view>
<!-- 底部右侧“发布订单须知>”(对标 frame_028) -->
<view class="publish-notice-row" @tap="showPublishNotice">
<text class="pnr-txt">发布订单须知></text>
</view>
</view>
<!-- ==================== 吸底操作栏(分步对应) ==================== -->
<!-- 步骤 1 吸底栏(1:1 复刻 frame_004 & frame_007) -->
<view class="step1-bottom-bar" v-if="currentStep === 1">
<!-- 顶部通栏橙红渐变优惠提示条(一口价且有优惠时展示,对标 frame_007) -->
<view
class="step1-promo-banner clickable-hover"
v-if="priceType === 'fixed' && amount && Number(amount.discount_amount) > 0"
@tap="showFeeDrawer = true"
>
<text class="spb-txt">已使用优惠券,共减 ¥{{ amount.discount_amount }}(原价¥{{ amount.total_amount }})</text>
<text class="spb-arrow">^</text>
</view>
<!-- 右对齐汇总区(1:1 复刻视频 00:00 报价模式显示“共1组商品”,一口价模式显示“共1组商品合计 ¥55.00”) -->
<view class="step1-summary-area">
<view class="s1-main-line" v-if="priceType === 'quote'">
<text class="s1-count">共{{ goodsList.length }}组商品</text>
</view>
<template v-else>
<view class="s1-main-line">
<text class="s1-count">共{{ goodsList.length }}组商品合计</text>
<view class="s1-quan-badge" v-if="priceType === 'fixed' && amount && Number(amount.discount_amount) > 0">券</view>
<text class="s1-price">¥{{ priceType === 'custom' ? (Number(userPrice) || '0.00') : (amount ? amount.pay_amount : '0.00') }}</text>
</view>
<view class="s1-sub-line" v-if="priceType === 'fixed' && amount && Number(amount.discount_amount) > 0">
<text class="s1-discount-txt">共减 ¥{{ amount.discount_amount }}</text>
</view>
</template>
</view>
<view class="step1-action-row">
<view class="btn-add-more clickable-hover" @tap="handleAddMoreGoods">
<text class="bam-txt">+ 继续添加商品</text>
</view>
<view class="btn-step-next clickable-hover" @tap="goStep2">
<text class="bsn-txt">下一步</text>
</view>
</view>
</view>
<!-- 步骤 2 吸底栏:[返回上一步] + [下一步] (对标 frame_015, frame_018) -->
<view class="step2-bottom-bar" v-else-if="currentStep === 2">
<view class="btn-step-back clickable-hover" @tap="currentStep = 1">
<text class="bsb-txt">返回上一步</text>
</view>
<view class="btn-step-next-large clickable-hover" @tap="goStep3">
<text class="bsnl-txt">下一步</text>
</view>
</view>
<!-- 步骤 3 吸底栏:合计总价与优惠 + [发布订单] (对标 frame_025, frame_028) -->
<view class="step3-bottom-bar" v-else-if="currentStep === 3">
<view class="step3-summary">
<template v-if="priceType === 'quote'">
<view class="s3-top">
<text class="s3-count">共{{ goodsList.length }}组商品</text>
<text class="s3-quote-tip">价格待师傅报价</text>
</view>
<view class="s3-sub">
<text class="s3-quote-sub">选定师傅后再支付托管</text>
</view>
</template>
<template v-else-if="priceType === 'custom'">
<view class="s3-top">
<text class="s3-count">共{{ goodsList.length }}组 合计:</text>
<text class="s3-price">¥{{ Number(userPrice) || 0 }}</text>
</view>
<view class="s3-sub">
<text class="s3-quote-sub">自主定价全包服务</text>
</view>
</template>
<template v-else>
<view class="s3-top">
<text class="s3-count">共{{ goodsList.length }}组 合计:</text>
<text class="s3-price">¥{{ amount ? amount.pay_amount : '0.00' }}</text>
</view>
<view class="s3-sub">
<text class="s3-origin">原价¥{{ amount ? amount.total_amount : '0.00' }}</text>
<text class="s3-discount" v-if="amount && Number(amount.discount_amount) > 0">共减¥{{ amount.discount_amount }}</text>
</view>
</template>
</view>
<view class="btn-publish-order clickable-hover" :class="{ disabled: submitting }" @tap="confirmSubmitAndPay">
<text class="bpo-txt">{{ submitting ? '提交中...' : '发布订单' }}</text>
</view>
</view>
<!-- ==================== 所有下拉选项:全部使用 1:1 对标抽屉展示 ==================== -->
<!-- 1. 商品规格选择抽屉 (对标 frame_008) -->
<GoodsPickerDrawer
:visible="showGoodsDrawer"
:cat-id="drawerCatId"
:cat-name="drawerCatName"
@update:visible="showGoodsDrawer = $event"
@select="handleGoodsDrawerSelect"
@custom="handleGoodsDrawerCustom"
/>
<!-- 2. 服务项目选择抽屉 (对标 frame_004) -->
<ServiceTypeDrawer
:visible="showServiceTypeDrawer"
:list="currentEditingServiceTypes"
:current-code="currentEditingServiceTypeCode"
@update:visible="showServiceTypeDrawer = $event"
@confirm="handleServiceTypeConfirm"
/>
<!-- 3. 增项服务抽屉 (对标视频 00:06 报价模式不显示单价 / 00:17 一口价模式显示单价) -->
<AddonServiceDrawer
:visible="showAddonDrawerFlag"
:list="currentEditingAddons"
:show-price="priceType === 'fixed'"
@update:visible="showAddonDrawerFlag = $event"
@confirm="handleAddonConfirm"
/>
<!-- 4. 期望上门时间抽屉 (对标 frame_020) -->
<AppointTimeDrawer
:visible="showAppointDrawer"
:date="appointDate"
:slot="appointSlot"
@update:visible="showAppointDrawer = $event"
@confirm="handleAppointConfirm"
/>
<!-- 5. 师傅要求选择抽屉 (对标 frame_022, 023) -->
<MasterDemandDrawer
:visible="showDemandDrawer"
:same-goods="form.demand_same_goods"
:high-rating="form.demand_high_rating"
:timeout-hours="form.demand_timeout"
@update:visible="showDemandDrawer = $event"
@confirm="handleDemandConfirm"
/>
<!-- 6. 常用备注模板抽屉 (对标 frame_018) -->
<RemarkTemplateDrawer
:visible="showRemarkDrawer"
@update:visible="showRemarkDrawer = $event"
@select="handleRemarkTemplateSelect"
/>
<!-- 7. 物流公司选择抽屉 (对标 frame_021) -->
<LogisticsDrawer
:visible="showLogisticsDrawer"
:current-name="form.logistics_company"
@update:visible="showLogisticsDrawer = $event"
@select="handleLogisticsSelect"
/>
<!-- 8. 费用明细抽屉 (对标 frame_006) -->
<FeeDetailDrawer
:visible="showFeeDrawer"
:base-amount="amount ? amount.base_amount : '0.00'"
:addon-amount="calculatedAddonAmount"
:floor-amount="amount ? amount.floor_amount : '0.00'"
:urgent-amount="amount ? amount.urgent_amount : '0.00'"
:discount-amount="amount ? amount.discount_amount : '0.00'"
:pay-amount="amount ? amount.pay_amount : '0.00'"
@update:visible="showFeeDrawer = $event"
/>
<!-- 9. 下单模式选择抽屉 (1:1 对标图一) -->
<ModePickerDrawer
:visible="showModeDrawer"
:current-mode="priceType"
@update:visible="showModeDrawer = $event"
@select="handleModeSelect"
/>
<!-- 10. 图片/媒体操作选择抽屉 (1:1 对标 frame_012) -->
<MediaActionDrawer
:visible="showMediaDrawer"
@update:visible="showMediaDrawer = $event"
@select="handleMediaActionSelect"
/>
<!-- 11. 切换一口价下单模式冲突确认弹窗(1:1 复刻视频 01:08 - 01:20) -->
<view class="mode-conflict-mask" v-if="showModeConflictModal" @tap="showModeConflictModal = false">
<view class="mode-conflict-dialog" @tap.stop>
<view class="mcd-body">
<text class="mcd-line">以下商品的服务:{{ conflictGoodsNames }},不支持一口价下单模式</text>
<text class="mcd-line">如切换下单模式将会自动删除这些商品,您确定切换下单模式吗?</text>
</view>
<view class="mcd-foot">
<view class="mcd-btn mcd-btn-confirm clickable-hover" @tap="confirmModeConflictSwitch">
<text class="mcd-btn-txt gray">确定切换</text>
</view>
<view class="mcd-btn mcd-btn-cancel clickable-hover" @tap="showModeConflictModal = false">
<text class="mcd-btn-txt dark">不切换</text>
</view>
</view>
</view>
</view>
</view>
</template>
<script setup>
import { ref, reactive, computed } from 'vue';
import { onLoad, onShow } from '@dcloudio/uni-app';
import api from '@/utils/api.js';
import { isLogin, toLogin } from '@/utils/request.js';
// 引入所有抽屉组件
import GoodsPickerDrawer from '@/components/GoodsPickerDrawer.vue';
import ServiceTypeDrawer from '@/components/ServiceTypeDrawer.vue';
import AddonServiceDrawer from '@/components/AddonServiceDrawer.vue';
import AppointTimeDrawer from '@/components/AppointTimeDrawer.vue';
import MasterDemandDrawer from '@/components/MasterDemandDrawer.vue';
import RemarkTemplateDrawer from '@/components/RemarkTemplateDrawer.vue';
import LogisticsDrawer from '@/components/LogisticsDrawer.vue';
import FeeDetailDrawer from '@/components/FeeDetailDrawer.vue';
import ModePickerDrawer from '@/components/ModePickerDrawer.vue';
import MediaActionDrawer from '@/components/MediaActionDrawer.vue';
// 流程步骤控制:1: 添加商品, 2: 客户信息, 3: 确认订单
const currentStep = ref(1);
const showStep2Tip = ref(true);
const showAllStep2Fields = ref(false);
const currentStepTitle = computed(() => {
if (currentStep.value === 1) return '添加商品';
if (currentStep.value === 2) return '客户信息';
return '确认订单';
});
function handleNavBack() {
if (currentStep.value === 3) {
currentStep.value = 2;
} else if (currentStep.value === 2) {
currentStep.value = 1;
} else {
let pages = [];
try {
pages = getCurrentPages() || [];
} catch (e) {}
if (pages.length > 1) {
uni.navigateBack();
} else {
uni.reLaunch({ url: '/pages/index/index' });
}
}
}
// 计价模式
const priceType = ref('fixed');
const userPrice = ref('');
const showModeDrawer = ref(false);
const currentModeName = computed(() => {
if (priceType.value === 'quote') return '报价下单';
if (priceType.value === 'custom') return '自己定价';
return '一口价下单';
});
const showModeConflictModal = ref(false);
const conflictGoodsNames = ref('');
// 判断某个服务项目是否支持“一口价”模式(只要后台配置了 >0 的一口价且非显式禁用,即支持一口价下单)
function isServiceTypeFixedSupported(code, price, supportFixedFlag) {
if (supportFixedFlag === 0) return false;
return Number(price) > 0;
}
function handleModeSelect(mode) {
if (mode === 'fixed' && priceType.value !== 'fixed') {
const unsupported = goodsList.value.filter(g => {
if (!g.item_name && !g.custom_name) return false;
if (g.is_custom || isOtherCategory.value) return true;
const curType = (g.service_types || []).find(st => st.code === g.service_type);
const price = curType ? curType.price : g.base_price;
const flag = curType ? curType.support_fixed : undefined;
return !isServiceTypeFixedSupported(g.service_type, price, flag);
});
if (unsupported.length > 0) {
conflictGoodsNames.value = unsupported.map(g => g.spec_name || g.item_name || g.custom_name || '当前商品').join('、');
showModeConflictModal.value = true;
return;
}
}
priceType.value = mode;
scheduleCalc();
}
function confirmModeConflictSwitch() {
showModeConflictModal.value = false;
priceType.value = 'fixed';
// 移除不支持一口价的商品,若全部不支持则保留1组空待选状态(1:1 复刻视频 01:19 - 01:20)
const supported = goodsList.value.filter(g => {
if (g.is_custom || isOtherCategory.value) return false;
const curType = (g.service_types || []).find(st => st.code === g.service_type);
const price = curType ? curType.price : g.base_price;
const flag = curType ? curType.support_fixed : undefined;
return isServiceTypeFixedSupported(g.service_type, price, flag);
});
if (supported.length > 0) {
goodsList.value = supported;
} else {
const first = goodsList.value[0] || {};
goodsList.value = [
{
service_id: 0,
item_name: '',
spec_name: '',
cat_id: drawerCatId.value,
cat_name: drawerCatName.value,
unit: first.unit || '个',
base_price: 0,
num: 1,
service_type: '',
service_type_name: '',
service_types: first.service_types || [],
remark: '',
images: [],
videos: [],
envImages: [],
extras: []
}
];
}
scheduleCalc();
}
// 当前类目
const drawerCatId = ref(0);
const drawerCatName = ref('');
const currentCatIconUrl = ref('');
const isOtherCategory = computed(() => {
return Number(drawerCatId.value) === 15 || drawerCatName.value === '其它' || drawerCatName.value === '更多';
});
function goToSelectCategory() {
uni.navigateTo({ url: '/pages/category/category' });
}
// 商品信息列表(支持多组,数据由真实接口返回填充)
const goodsList = ref([
{
service_id: 0,
item_name: '',
spec_id: 0,
spec_name: '',
cat_id: 0,
cat_name: '',
unit: '个',
base_price: 0,
num: 1,
service_type: '',
service_type_name: '',
service_types: [],
remark: '',
images: [],
videos: [],
envImages: [],
extras: []
}
]);
function stepGroupNum(idx, d) {
goodsList.value[idx].num = Math.max(1, goodsList.value[idx].num + d);
scheduleCalc();
}
function removeOrResetGroup(idx) {
if (goodsList.value.length > 1) {
goodsList.value.splice(idx, 1);
scheduleCalc();
} else {
// 只有 1 组时清空重置当前组内容
const g = goodsList.value[0];
g.item_name = '';
g.spec_name = '';
g.custom_name = '';
g.num = 1;
g.remark = '';
g.images = [];
g.videos = [];
g.envImages = [];
if (g.extras) g.extras.forEach(ex => { ex.num = 0; });
scheduleCalc();
uni.showToast({ title: '已重置当前商品信息', icon: 'none' });
}
}
function openGoodsTemplate(idx) {
editingGroupIndex.value = idx;
isEditingGroup.value = true;
showGoodsDrawer.value = true;
}
function canShowAddonRow(g) {
if (!g || !g.extras || g.extras.length === 0) return false;
if (!g.service_type && !g.service_type_name) return false;
return g.service_type === 'install' || g.service_type === 'repair' || g.service_type_name === '安装' || g.service_type_name === '维修';
}
function hasAddons(g) {
return g.extras && g.extras.some(ex => ex.num > 0);
}
function addonSummary(g) {
if (!g.extras) return '选择增项服务';
const hits = g.extras.filter(ex => ex.num > 0).map(ex => `${ex.name}x${ex.num}`);
return hits.length ? hits.join(';') : '选择增项服务';
}
function getConfirmServiceSummary(g) {
const parts = [];
if (g.extras) {
g.extras.filter(ex => ex.num > 0).forEach(ex => {
parts.push(ex.name);
});
}
parts.push(g.service_type_name || '安装');
return parts.join(';');
}
function getGroupEstimatedPrice(g) {
const base = Number(g.base_price) || 0;
const addon = (g.extras || []).reduce((acc, cur) => acc + (Number(cur.price) || 0) * (Number(cur.num) || 0), 0);
return ((base * (g.num || 1)) + addon).toFixed(2);
}
// 1. 商品规格选择抽屉
const showGoodsDrawer = ref(false);
const editingGroupIndex = ref(0);
const isEditingGroup = ref(false);
function openGoodsDrawer(idx) {
if (typeof idx === 'number') {
editingGroupIndex.value = idx;
isEditingGroup.value = true;
drawerCatId.value = goodsList.value[idx]?.cat_id || drawerCatId.value;
drawerCatName.value = goodsList.value[idx]?.cat_name || drawerCatName.value;
} else {
isEditingGroup.value = false;
}
showGoodsDrawer.value = true;
}
function buildOtherCategoryGroup() {
return {
service_id: 32,
item_name: '',
custom_name: '',
is_custom: true,
spec_name: '',
cat_id: 15,
cat_name: '其它',
unit: '个',
base_price: 0,
num: 1,
service_type: 'install',
service_type_name: '安装',
service_types: [
{ code: 'install', name: '安装', price: 0, is_default: 1 },
{ code: 'repair', name: '维修', price: 0, is_default: 0 },
{ code: 'grout', name: '美缝', price: 0, is_default: 0 },
{ code: 'glue', name: '打胶', price: 0, is_default: 0 },
{ code: 'remove', name: '拆旧', price: 0, is_default: 0 },
{ code: 'deliver', name: '送货到家', price: 0, is_default: 0 },
{ code: 'deliver_install', name: '送货到家并安装', price: 0, is_default: 0 },
{ code: 'deliver_downstairs', name: '送货到楼下(不含上楼)', price: 0, is_default: 0 },
{ code: 'clean', name: '保洁', price: 0, is_default: 0 },
{ code: 'drill', name: '打孔', price: 0, is_default: 0 },
{ code: 'film', name: '贴膜', price: 0, is_default: 0 },
{ code: 'move', name: '移机', price: 0, is_default: 0 },
{ code: 'other', name: '其他', price: 0, is_default: 0 }
],
remark: '',
images: [],
videos: [],
envImages: [],
extras: [
{ id: 1, key: 'addon_1', name: '拆旧', unit: '份', price: 30, num: 0 }
]
};
}
function handleGoodsDrawerSelect(spec) {
const rawAddons = spec.addons && spec.addons.length ? spec.addons : [];
const extras = rawAddons.map((ad, idx) => ({
id: ad.id || (idx + 1),
key: 'addon_' + (ad.id || (idx + 1)),
name: ad.name,
unit: ad.unit || '份',
price: Number(ad.price) || 0,
num: 0
}));
const serviceTypes = spec.service_types && spec.service_types.length ? spec.service_types : [];
const defType = serviceTypes.find(st => st.is_default) || serviceTypes[0] || { code: spec.default_service_type || 'install', name: spec.default_service_name || '安装', price: Number(spec.base_price) || 0 };
const newGroup = {
service_id: spec.service_id,
item_name: spec.item_name,
spec_id: spec.spec_id || 0,
spec_name: spec.spec_name,
cat_id: spec.cat_id || drawerCatId.value,
cat_name: spec.cat_name || drawerCatName.value,
unit: spec.unit || '个',
base_price: Number(spec.base_price) || Number(defType.price) || 0,
num: 1,
service_type: defType.code,
service_type_name: defType.name,
service_types: serviceTypes,
remark: '',
images: [],
videos: [],
envImages: [],
extras: extras
};
if (isEditingGroup.value) {
goodsList.value[editingGroupIndex.value] = { ...goodsList.value[editingGroupIndex.value], ...newGroup };
} else {
goodsList.value.push(newGroup);
}
if (spec.cat_id) drawerCatId.value = spec.cat_id;
if (spec.cat_name) drawerCatName.value = spec.cat_name;
scheduleCalc();
}
// 奇兵到家同款:找不到商品去下单兜底(自填商品)
function handleGoodsDrawerCustom() {
showGoodsDrawer.value = false;
drawerCatId.value = 15;
drawerCatName.value = '其它';
currentCatIconUrl.value = '/uploads/icons/cat-more.svg';
priceType.value = 'quote';
const customGroup = buildOtherCategoryGroup();
if (isEditingGroup.value) {
goodsList.value[editingGroupIndex.value] = { ...goodsList.value[editingGroupIndex.value], ...customGroup };
} else {
goodsList.value.push(customGroup);
}
scheduleCalc();
}
function handleAddMoreGoods() {
if (isOtherCategory.value) {
goodsList.value.push(buildOtherCategoryGroup());
scheduleCalc();
} else {
openGoodsDrawer(false);
}
}
// 2. 服务项目选择抽屉
const showServiceTypeDrawer = ref(false);
const currentEditingServiceTypes = ref([]);
const currentEditingServiceTypeCode = ref('');
function openServiceTypeDrawer(idx) {
editingGroupIndex.value = idx;
const g = goodsList.value[idx];
currentEditingServiceTypes.value = g.service_types || [];
currentEditingServiceTypeCode.value = g.service_type || 'install';
showServiceTypeDrawer.value = true;
}
function handleServiceTypeConfirm(typeItem) {
const g = goodsList.value[editingGroupIndex.value];
if (g && typeItem) {
g.service_type = typeItem.code;
g.service_type_name = typeItem.name;
// 当服务项目不是“安装”或“维修”(如选了“拆旧”、“补漆修复”、“送货到家”等)时,隐藏增项服务并自动清空已选增项(1:1 复刻视频 00:52)
if (typeItem.code !== 'install' && typeItem.code !== 'repair' && typeItem.name !== '安装' && typeItem.name !== '维修') {
if (g.extras && g.extras.length) {
g.extras.forEach(ex => { ex.num = 0; });
}
}
const supportsFixed = isServiceTypeFixedSupported(typeItem.code, typeItem.price, typeItem.support_fixed);
if (supportsFixed) {
g.base_price = Number(typeItem.price);
} else {
g.base_price = 0;
if (priceType.value === 'fixed') {
priceType.value = 'quote';
uni.showToast({
title: '该服务不支持“一口价”,已转为“报价”模式',
icon: 'none',
duration: 2500
});
}
}
scheduleCalc();
}
}
// 3. 增项服务抽屉
const showAddonDrawerFlag = ref(false);
const currentEditingAddons = ref([]);
function openAddonDrawer(idx) {
editingGroupIndex.value = idx;
currentEditingAddons.value = goodsList.value[idx].extras || [];
showAddonDrawerFlag.value = true;
}
function handleAddonConfirm(updatedList) {
const g = goodsList.value[editingGroupIndex.value];
if (g) {
g.extras = updatedList;
scheduleCalc();
}
}
// 4. 期望上门时间抽屉
const showAppointDrawer = ref(false);
const today = new Date().toISOString().slice(0, 10);
const appointDate = ref(today);
const appointSlot = ref('晚上');
const appointDisplay = computed(() => {
if (!appointDate.value) return '';
return `${appointDate.value} ${appointSlot.value}`;
});
function handleAppointConfirm(data) {
appointDate.value = data.date;
appointSlot.value = data.slot;
}
// 5. 师傅要求抽屉
const showDemandDrawer = ref(false);
const hasDemandReq = computed(() => form.demand_same_goods || form.demand_high_rating);
const demandSummaryText = computed(() => {
const parts = [];
if (form.demand_same_goods) parts.push('完工过相同商品');
if (form.demand_high_rating) parts.push('评分≥4.5');
return parts.length ? parts.join('、') : '对师傅的要求';
});
function handleDemandConfirm(res) {
form.demand_same_goods = res.sameGoods;
form.demand_high_rating = res.highRating;
form.demand_timeout = res.timeoutHours;
}
// 6. 常用备注模板抽屉
const showRemarkDrawer = ref(false);
function handleRemarkTemplateSelect(tplText) {
if (form.remark) {
form.remark += ';' + tplText;
} else {
form.remark = tplText;
}
}
// 7. 物流公司抽屉
const showLogisticsDrawer = ref(false);
function handleLogisticsSelect(company) {
form.logistics_company = company;
}
// 8. 费用明细抽屉
const showFeeDrawer = ref(false);
const calculatedAddonAmount = computed(() => {
let total = 0;
goodsList.value.forEach(g => {
(g.extras || []).forEach(ex => {
total += (Number(ex.price) || 0) * (Number(ex.num) || 0);
});
});
return total.toFixed(2);
});
// 9. 媒体选择抽屉(支持相册、拍照、从商品图库/系统图库中选择默认图,对标 frame_012)
const showMediaDrawer = ref(false);
const mediaTargetType = ref('image'); // 'image' or 'env'
function openMediaDrawer(idx, type) {
editingGroupIndex.value = idx;
mediaTargetType.value = type;
showMediaDrawer.value = true;
}
function handleMediaActionSelect(sourceType) {
const idx = editingGroupIndex.value;
const g = goodsList.value[idx];
if (sourceType === 'goods_default' || sourceType === 'system_default') {
const defaultImg = currentCatIconUrl.value || '/static/icons/appliance.png';
if (mediaTargetType.value === 'image') {
if (!g.images) g.images = [];
g.images.push(defaultImg);
} else {
if (!g.envImages) g.envImages = [];
g.envImages.push(defaultImg);
}
return;
}
if (mediaTargetType.value === 'image') {
uploadGroupMedia(idx, 'image', sourceType);
} else {
uploadGroupMedia(idx, 'env', sourceType);
}
}
function uploadGroupMedia(idx, kind, sourceType) {
const g = goodsList.value[idx];
const currentCount = kind === 'image' ? (g.images?.length || 0) : (g.envImages?.length || 0);
const maxCount = kind === 'image' ? 4 : 3;
if (currentCount >= maxCount) {
uni.showToast({ title: `最多上传${maxCount}张`, icon: 'none' });
return;
}
uni.chooseImage({
count: maxCount - currentCount,
sourceType: [sourceType],
success: async (res) => {
for (const tempPath of res.tempFilePaths) {
uni.showLoading({ title: '上传中...' });
try {
const up = await api.upload(tempPath, 'order');
const imgUrl = up.fullurl || up.url;
if (imgUrl) {
if (kind === 'image') {
if (!g.images) g.images = [];
g.images.push(imgUrl);
} else {
if (!g.envImages) g.envImages = [];
g.envImages.push(imgUrl);
}
}
} catch (e) {
} finally {
uni.hideLoading();
}
}
}
});
}
function pickVideo(idx) {
uni.chooseVideo({
sourceType: ['album', 'camera'],
maxDuration: 60,
camera: 'back',
success: async (res) => {
uni.showLoading({ title: '视频上传中...' });
try {
const up = await api.upload(res.tempFilePath, 'order');
const videoUrl = up.fullurl || up.url;
if (videoUrl) {
if (!goodsList.value[idx].videos) goodsList.value[idx].videos = [];
goodsList.value[idx].videos.push({
tempFilePath: videoUrl,
thumbTempFilePath: res.thumbTempFilePath || ''
});
}
} catch (e) {
} finally {
uni.hideLoading();
}
}
});
}
function removeGroupImg(gIdx, iIdx) { goodsList.value[gIdx].images.splice(iIdx, 1); }
function removeGroupVideo(gIdx, vIdx) { goodsList.value[gIdx].videos.splice(vIdx, 1); }
function removeGroupEnvImg(gIdx, eIdx) { goodsList.value[gIdx].envImages.splice(eIdx, 1); }
function previewImg(list, idx) { uni.previewImage({ urls: list, current: list[idx] }); }
function showEnvHelp() {
uni.showModal({
title: '上传图片/视频说明',
content: '1. 添加商品图片便于师傅准确了解产品规格型号;\n2. 上传安装环境图或视频便于师傅提前备齐工具与辅料配件。',
showCancel: false,
confirmText: '我知道了',
confirmColor: '#F0710D'
});
}
// 客户信息表单
const form = reactive({
contact: '',
mobile: '',
use_virtual: true,
province: '贵州省',
city: '贵阳市',
district: '南明区',
address: '',
has_elevator: 1,
floor: 1,
remark: '',
order_contact_name: '',
order_contact_mobile: '',
logistics_no: '',
logistics_company: '',
goods_arrived: 0,
order_source: '',
source_order_no: '',
qual_req: '',
demand_same_goods: false,
demand_high_rating: false,
demand_timeout: 1
});
const queryingExpress = ref(false);
// 物流单号查询并联动下方物流公司
async function queryExpressCompany(silent = false) {
const rawNo = (form.logistics_no || '').trim();
if (!rawNo) {
if (!silent) uni.showToast({ title: '请先输入物流单号', icon: 'none' });
return;
}
if (queryingExpress.value) return;
queryingExpress.value = true;
try {
const res = await api.detectExpress({ express_no: rawNo });
if (res && res.company_name) {
form.logistics_company = res.company_name;
if (!silent) {
uni.showToast({ title: `已匹配:${res.company_name}`, icon: 'none' });
}
}
} catch (e) {
} finally {
queryingExpress.value = false;
}
}
function onExpressNoBlur() {
if (form.logistics_no && form.logistics_no.trim().length >= 5) {
queryExpressCompany(true);
}
}
function pickOrderSource() {
const sources = ['淘宝/天猫', '京东', '拼多多', '抖音电商', '线下门店', '其他渠道'];
uni.showActionSheet({
itemList: sources,
success: (res) => {
form.order_source = sources[res.tapIndex];
}
});
}
function pickQualReq() {
const quals = ['高空作业证', '电工证', '焊工证', '制冷工证', '健康证', '无特殊资质要求'];
uni.showActionSheet({
itemList: quals,
success: (res) => {
const picked = quals[res.tapIndex];
form.qual_req = picked === '无特殊资质要求' ? '' : picked;
}
});
}
const contactDisplay = computed(() => {
const name = form.order_contact_name || '发单联系人';
const mob = form.order_contact_mobile || '';
if (mob) {
const safeMob = mob.length >= 11 ? (mob.slice(0, 7) + '...') : mob;
return `${name} ${safeMob}`;
}
return name;
});
function editOrderContact() {
uni.showModal({
title: '修改订单联系人电话',
editable: true,
placeholderText: '请输入订单联系人电话(11位手机号)',
content: form.order_contact_mobile || '',
confirmColor: '#F0710D',
success: (res) => {
if (res.confirm && res.content) {
const val = res.content.trim();
if (!/^1\d{10}$/.test(val)) {
uni.showToast({ title: '请输入正确的11位手机号', icon: 'none' });
return;
}
form.order_contact_mobile = val;
}
}
});
}
async function initOrderContactFromProfile() {
try {
const p = await api.profile();
if (p) {
form.order_contact_name = p.nickname || ('用户' + String(p.mobile || '').slice(-4));
form.order_contact_mobile = p.mobile || '';
}
} catch (e) {}
}
const currentDistrictMasterCount = ref(303);
async function fetchMasterCount() {
try {
const res = await api.masterCount({
province: form.province,
city: form.city,
district: form.district,
cat_id: drawerCatId.value
});
if (res && res.count) {
currentDistrictMasterCount.value = res.count;
}
} catch (e) {}
}
function onRegionChange(e) {
const val = e.detail.value;
if (val && val.length >= 3) {
form.province = val[0];
form.city = val[1];
form.district = val[2];
fetchMasterCount();
scheduleCalc();
}
}
function setElevator(val) {
form.has_elevator = val;
scheduleCalc();
}
function showVirtualHelp() {
uni.showModal({
title: '虚拟号保护说明',
content: '开启后,师傅只能通过平台虚拟转接号码与您联系,隐藏您的真实手机号码,服务完成后自动失效。',
showCancel: false,
confirmText: '我知道了',
confirmColor: '#F0710D'
});
}
// 智能粘贴识别
const rawAddressText = ref('');
function pasteFromClipboard() {
uni.getClipboardData({
success: (res) => { rawAddressText.value = res.data || ''; }
});
}
function executeParseAddress() {
const raw = rawAddressText.value.trim();
if (!raw) {
uni.showToast({ title: '请输入或粘贴地址文本', icon: 'none' });
return;
}
const mobileHit = raw.match(/(1[3-9]\d{9})/);
if (mobileHit) form.mobile = mobileHit[1];
let textLeft = raw.replace(form.mobile, ' ').trim();
const nameHit = textLeft.match(/^([^,,\s]{2,4})[,,\s]/);
if (nameHit) {
form.contact = nameHit[1];
textLeft = textLeft.replace(nameHit[0], ' ').trim();
}
const regHit = textLeft.match(/(.*?[省|市|自治区])\s*(.*?[市|州|地区])?\s*(.*?[区|县|市|旗])?\s*(.*)/);
if (regHit) {
if (regHit[1]) form.province = regHit[1].trim();
if (regHit[2]) form.city = regHit[2].trim();
if (regHit[3]) form.district = regHit[3].trim();
if (regHit[4]) form.address = regHit[4].trim();
} else {
form.address = textLeft;
}
showStep2Tip.value = false;
fetchMasterCount();
scheduleCalc();
uni.showToast({ title: '地址识别完成' });
}
async function openAddressBook() {
try {
const res = await api.addressList();
const list = res.list || [];
if (!list.length) {
uni.showToast({ title: '暂无保存的地址', icon: 'none' });
return;
}
uni.showActionSheet({
itemList: list.map(a => `${a.contact} (${a.city}${a.district}${a.address})`.slice(0, 20)),
success: (r) => {
const hit = list[r.tapIndex];
if (hit) {
form.contact = hit.contact;
form.mobile = hit.mobile;
form.province = hit.province;
form.city = hit.city;
form.district = hit.district;
form.address = hit.address;
form.floor = Number(hit.floor) || 1;
form.has_elevator = Number(hit.has_elevator) || 1;
fetchMasterCount();
scheduleCalc();
}
}
});
} catch (e) {}
}
// 附加服务与加急
const isUrgent = ref(false);
const autoQuote = ref(true);
const autoQuoteHours = ref(24);
function toggleUrgent() {
isUrgent.value = !isUrgent.value;
scheduleCalc();
}
function pickAutoQuoteHours() {
const hoursList = ['6小时', '12小时', '24小时', '48小时'];
const hoursVal = [6, 12, 24, 48];
uni.showActionSheet({
itemList: hoursList,
success: (res) => {
autoQuoteHours.value = hoursVal[res.tapIndex];
}
});
}
function showPublishNotice() {
uni.showModal({
title: '发布订单须知',
content: '1. 请确保商品及客户地址信息真实准确;\n2. 师傅接单后将第一时间与客户联系预约具体上门时间;\n3. 平台全程担保交易,验收合格后再确认完工。',
showCancel: false,
confirmText: '我知道了',
confirmColor: '#F0710D'
});
}
function showUrgentHelp() {
uni.showModal({
title: '加急订单说明',
content: '勾选加急后,平台将优先推送给附近正在待命的高评分师傅,承诺最快30分钟内极速响应。',
showCancel: false,
confirmText: '我知道了',
confirmColor: '#F0710D'
});
}
// 费用试算
const amount = ref(null);
let calcTimer = null;
async function calc() {
try {
const res = await api.calc({
price_type: priceType.value,
user_price: Number(userPrice.value) || 0,
floor: form.floor,
has_elevator: form.has_elevator,
urgent: isUrgent.value ? 1 : 0,
goods_list: JSON.stringify(goodsList.value)
});
amount.value = res;
} catch (e) {}
}
function scheduleCalc() {
clearTimeout(calcTimer);
calcTimer = setTimeout(calc, 250);
}
// 分步导航验证
function goStep2() {
if (priceType.value === 'custom') {
const p = Number(userPrice.value);
if (!p || p < 1 || p > 100000) {
uni.showToast({ title: '请输入 1-100000 元的有效意向出价', icon: 'none' });
return;
}
}
for (let i = 0; i < goodsList.value.length; i++) {
const g = goodsList.value[i];
if (g.is_custom || isOtherCategory.value) {
if (!g.custom_name || !g.custom_name.trim()) {
uni.showToast({ title: `请输入第 ${i + 1} 组商品名称`, icon: 'none' });
return;
}
g.item_name = g.custom_name.trim();
} else if (!g.item_name) {
uni.showToast({ title: `第 ${i + 1} 组尚未选择商品`, icon: 'none' });
return;
}
}
currentStep.value = 2;
fetchMasterCount();
}
function goStep3() {
if (!form.contact) {
uni.showToast({ title: '请填写客户姓名', icon: 'none' });
return;
}
if (!form.mobile || !/^1\d{10}$/.test(form.mobile)) {
uni.showToast({ title: '请填写正确的11位客户手机号', icon: 'none' });
return;
}
if (!form.address) {
uni.showToast({ title: '请填写详细地址', icon: 'none' });
return;
}
currentStep.value = 3;
calc();
}
// 下单与支付
const submitting = ref(false);
async function confirmSubmitAndPay() {
if (!isLogin()) { toLogin(); return; }
if (submitting.value) return;
submitting.value = true;
try {
let appointTimeStr = '14:30:00';
if (appointSlot.value && appointSlot.value.indexOf('上午') > -1) appointTimeStr = '10:00:00';
else if (appointSlot.value && appointSlot.value.indexOf('下午') > -1) appointTimeStr = '14:30:00';
else if (appointSlot.value && appointSlot.value.indexOf('晚上') > -1) appointTimeStr = '19:00:00';
else appointTimeStr = '10:00:00';
let targetTime = Math.floor(new Date(`${appointDate.value} ${appointTimeStr}`).getTime() / 1000);
const now = Math.floor(Date.now() / 1000);
if (targetTime <= now) {
targetTime = now + 3600;
}
const createRes = await api.orderCreate({
service_id: goodsList.value[0]?.service_id || 1,
price_type: priceType.value,
user_price: priceType.value === 'custom' ? Number(userPrice.value) : 0,
contact: form.contact,
mobile: form.mobile,
province: form.province,
city: form.city,
district: form.district,
address: form.address,
floor: form.floor,
has_elevator: form.has_elevator,
urgent: isUrgent.value ? 1 : 0,
appoint_time: targetTime,
remark: form.remark,
order_contact: `${form.order_contact_name} ${form.order_contact_mobile}`.trim(),
logistics_no: form.logistics_no,
logistics_company: form.logistics_company,
goods_arrived: form.goods_arrived,
order_source: form.order_source,
source_order_no: form.source_order_no,
qual_req: form.qual_req,
master_req: demandSummaryText.value === '对师傅的要求' ? '' : demandSummaryText.value,
goods_list: JSON.stringify(goodsList.value)
});
if (priceType.value === 'quote') {
uni.showToast({ title: '报价单发布成功,等待师傅报价' });
} else {
await api.orderPay({
order_id: createRes.order_id,
pay_type: 'wxpay'
});
uni.showToast({ title: '下单成功,正在匹配师傅' });
}
setTimeout(() => {
uni.redirectTo({ url: `/pages/order/detail?id=${createRes.order_id}` });
}, 600);
} catch (e) {
} finally {
submitting.value = false;
}
}
async function loadRealCategoryAndServices(options) {
const firstGoods = uni.getStorageSync('yjyf_first_goods');
if (firstGoods) {
goodsList.value = [firstGoods];
uni.removeStorageSync('yjyf_first_goods');
if (firstGoods.cat_id) drawerCatId.value = firstGoods.cat_id;
if (firstGoods.cat_name) drawerCatName.value = firstGoods.cat_name;
if (firstGoods.cat_icon_url) currentCatIconUrl.value = firstGoods.cat_icon_url;
calc();
fetchMasterCount();
return;
}
let targetCatId = options && options.cat_id ? Number(options.cat_id) : 0;
let targetCatName = options && options.cat_name ? decodeURIComponent(options.cat_name) : '';
if (options && options.mode === 'custom') priceType.value = 'custom';
if (options && (options.mode === 'quote' || options.custom == 1)) priceType.value = 'quote';
try {
const resCats = await api.cats();
const cats = resCats && resCats.list ? resCats.list : [];
if (cats.length > 0) {
let matchedCat = null;
if (targetCatId) {
matchedCat = cats.find(c => c.id === targetCatId);
}
if (!matchedCat && targetCatName) {
matchedCat = cats.find(c => c.name === targetCatName || targetCatName.includes(c.name));
}
if (!matchedCat) {
matchedCat = cats[0];
}
if (options?.custom == 1 || targetCatId === 15 || targetCatName === '其它' || targetCatName === '其他') {
matchedCat = cats.find(c => c.id === 15 || c.name === '其它' || c.name === '其他') || { id: 15, name: '其它', icon_url: '/uploads/icons/cat-more.svg' };
drawerCatId.value = matchedCat.id;
drawerCatName.value = '其它';
currentCatIconUrl.value = matchedCat.icon_url || '/uploads/icons/cat-more.svg';
priceType.value = 'quote';
goodsList.value = [buildOtherCategoryGroup()];
scheduleCalc();
fetchMasterCount();
return;
}
drawerCatId.value = matchedCat.id;
drawerCatName.value = matchedCat.name;
currentCatIconUrl.value = matchedCat.icon_url || '';
const sRes = await api.services({ cat_id: matchedCat.id });
const services = sRes && sRes.list ? sRes.list : [];
if (services.length > 0) {
const firstS = services[0];
const rawAddons = firstS.addons && firstS.addons.length ? firstS.addons : [];
const extras = rawAddons.map((ad, idx) => ({
id: ad.id || (idx + 1),
key: 'addon_' + (ad.id || (idx + 1)),
name: ad.name,
unit: ad.unit || '份',
price: Number(ad.price) || 0,
num: 0
}));
const serviceTypes = firstS.service_types && firstS.service_types.length ? firstS.service_types : [];
const defType = serviceTypes.find(st => st.is_default) || serviceTypes[0] || { code: 'install', name: '安装', price: Number(firstS.base_price) || 0 };
const firstSpec = (firstS.specs && firstS.specs.length) ? firstS.specs[0] : null;
const hasCustomSpecPrice = firstSpec && Number(firstSpec.base_price) > 0;
const effectivePrice = hasCustomSpecPrice ? Number(firstSpec.base_price) : (Number(firstS.base_price) || Number(defType.price) || 0);
const resolvedServiceTypes = serviceTypes.map((st, idx) => {
const isDef = Number(st.is_default) === 1 || (idx === 0 && !serviceTypes.some(x => Number(x.is_default) === 1));
return {
...st,
price: (isDef && hasCustomSpecPrice) ? effectivePrice : (Number(st.price) || 0)
};
});
goodsList.value = [
{
service_id: firstS.id,
item_name: firstS.name,
spec_id: firstSpec ? firstSpec.id : 0,
spec_name: firstSpec ? firstSpec.name : firstS.name,
cat_id: matchedCat.id,
cat_name: matchedCat.name,
unit: firstS.unit || '个',
base_price: effectivePrice,
num: 1,
service_type: defType.code,
service_type_name: defType.name,
service_types: resolvedServiceTypes,
remark: '',
images: [],
videos: [],
envImages: [],
extras: extras
}
];
}
}
} catch (e) {}
calc();
fetchMasterCount();
}
onLoad((options) => {
loadRealCategoryAndServices(options);
initOrderContactFromProfile();
});
onShow(() => {
const firstGoods = uni.getStorageSync('yjyf_first_goods');
if (firstGoods) {
goodsList.value = [firstGoods];
uni.removeStorageSync('yjyf_first_goods');
if (firstGoods.cat_id) drawerCatId.value = firstGoods.cat_id;
if (firstGoods.cat_name) drawerCatName.value = firstGoods.cat_name;
if (firstGoods.cat_icon_url) currentCatIconUrl.value = firstGoods.cat_icon_url;
calc();
fetchMasterCount();
}
});
</script>
<style scoped>
.page {
min-height: 100vh;
background: #F5F6F8;
padding-bottom: 280rpx;
box-sizing: border-box;
}
/* ---------- 主体内容区 ---------- */
.main-body {
padding: 20rpx 20rpx;
}
/* ---------- 顶部品类与模式双行卡片(1:1 复刻图一 & frame_004) ---------- */
.top-service-card {
background: #FFFFFF;
border-radius: 16rpx;
padding: 0 24rpx;
margin-bottom: 20rpx;
}
.tsc-row {
display: flex;
align-items: center;
justify-content: space-between;
height: 120rpx;
border-bottom: 1rpx solid #F0F0F2;
}
.tsc-row.tsc-mode-row {
height: 132rpx;
padding-top: 8rpx;
}
.tsc-row.no-border {
border-bottom: none;
}
.tsc-left {
display: flex;
align-items: center;
gap: 24rpx;
}
.tsc-icon-wrap {
width: 84rpx;
height: 84rpx;
border-radius: 50%;
background: #FFF2E8;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
}
.tsc-img {
width: 52rpx;
height: 52rpx;
}
.tsc-title {
font-size: 30rpx;
font-weight: 700;
color: #1F1F1F;
}
.tsc-mode-btn-group {
position: relative;
display: inline-flex;
flex-direction: column;
align-items: center;
}
.tsc-float-badge {
background: linear-gradient(90deg, #FF9A3E 0%, #F0710D 100%);
height: 36rpx;
padding: 0 18rpx;
border-radius: 18rpx 18rpx 0 0;
display: inline-flex;
align-items: center;
justify-content: center;
margin-bottom: -2rpx;
z-index: 1;
}
.tsc-float-badge-txt {
font-size: 20rpx;
color: #FFFFFF;
font-weight: 500;
line-height: 1;
}
.tsc-btn {
display: inline-flex;
align-items: center;
justify-content: center;
height: 58rpx;
padding: 0 22rpx;
background: #FFFFFF;
border: 1rpx solid #CCCCCC;
border-radius: 8rpx;
line-height: 1;
}
.tsc-btn-txt {
font-size: 26rpx;
color: #333333;
line-height: 1;
}
.custom-price-bar {
display: flex;
align-items: center;
padding: 20rpx 0 24rpx;
border-top: 1rpx dashed #E5E7EB;
}
.cpb-label {
font-size: 28rpx;
font-weight: 600;
color: #1F1F1F;
}
.cpb-input-wrap {
display: flex;
align-items: center;
flex: 1;
background: #FFF7F0;
border-radius: 12rpx;
padding: 10rpx 20rpx;
}
.cpb-currency {
font-size: 32rpx;
font-weight: 700;
color: #F0710D;
margin-right: 8rpx;
}
.cpb-input {
font-size: 30rpx;
color: #1F1F1F;
flex: 1;
}
/* ---------- 商品卡片组(1:1 复刻图一 & frame_004, frame_009) ---------- */
.group-list {
display: flex;
flex-direction: column;
gap: 20rpx;
}
.group-card {
background: #FFFFFF;
border-radius: 16rpx;
padding: 28rpx 24rpx 24rpx;
}
.gc-head {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 28rpx;
}
.gc-head-left {
display: flex;
align-items: center;
gap: 18rpx;
}
.gc-title {
font-size: 30rpx;
font-weight: 700;
color: #1F1F1F;
}
.gc-tpl-wrap {
position: relative;
display: inline-flex;
align-items: center;
}
.gc-tpl-btn {
height: 46rpx;
padding: 0 14rpx;
border: 1rpx solid #F0710D;
border-radius: 6rpx;
background: #FFFFFF;
display: inline-flex;
align-items: center;
justify-content: center;
}
.gc-tpl-txt {
font-size: 24rpx;
color: #F0710D;
line-height: 1;
}
.gc-tpl-FloatTag {
position: absolute;
top: -26rpx;
left: 88rpx;
background: #FFEAE5;
border-radius: 16rpx 16rpx 16rpx 4rpx;
padding: 4rpx 12rpx;
white-space: nowrap;
}
.gc-tpl-tag-txt {
font-size: 18rpx;
color: #E8331B;
line-height: 1;
}
.gc-meta {
display: flex;
align-items: center;
gap: 20rpx;
}
.gc-group-num {
font-size: 28rpx;
color: #333333;
}
.gc-del-btn {
display: flex;
align-items: center;
justify-content: center;
padding: 4rpx;
}
.gc-trash-img {
width: 34rpx;
height: 34rpx;
opacity: 0.75;
}
/* 媒体上传并排虚线框 */
.media-upload-row {
display: flex;
align-items: center;
gap: 18rpx;
margin-bottom: 20rpx;
}
.dash-card {
width: 168rpx;
height: 168rpx;
border: 2rpx dashed #CCCCCC;
border-radius: 12rpx;
background: #FFFFFF;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 6rpx;
position: relative;
overflow: hidden;
flex-shrink: 0;
box-sizing: border-box;
}
.dash-card.pic-dash {
border-color: #CCCCCC;
}
.dash-card.filled-dash {
border-style: solid;
border-color: #E5E7EB;
}
.fd-img {
width: 100%;
height: 100%;
}
.fd-del {
position: absolute;
top: 0;
right: 0;
width: 36rpx;
height: 36rpx;
background: rgba(0, 0, 0, 0.55);
color: #FFFFFF;
font-size: 26rpx;
border-bottom-left-radius: 10rpx;
display: flex;
align-items: center;
justify-content: center;
line-height: 1;
}
.fd-count-bar {
position: absolute;
left: 0;
right: 0;
bottom: 0;
height: 38rpx;
background: rgba(0, 0, 0, 0.55);
display: flex;
align-items: center;
justify-content: center;
}
.fd-count-txt {
font-size: 20rpx;
color: #FFFFFF;
}
.dc-icon {
width: 48rpx;
height: 48rpx;
margin-bottom: 4rpx;
}
.dc-req-line {
display: flex;
align-items: center;
justify-content: center;
}
.dc-star {
color: #E8331B;
font-size: 26rpx;
font-weight: 700;
margin-right: 2rpx;
}
.dc-txt {
font-size: 24rpx;
font-weight: 500;
line-height: 1.2;
}
.dc-txt.orange {
color: #F0710D;
}
.dc-txt.gray {
color: #888888;
}
.dc-sub {
font-size: 20rpx;
color: #999999;
line-height: 1.1;
}
.env-help-box {
width: 48rpx;
height: 48rpx;
display: flex;
align-items: center;
justify-content: center;
margin-left: auto;
}
.eh-icon {
width: 38rpx;
height: 38rpx;
}
.mp-play-badge {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 48rpx;
height: 48rpx;
background: rgba(0, 0, 0, 0.5);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
}
.mp-play-icon {
width: 24rpx;
height: 24rpx;
}
/* ---------- 表单项行通用排版 ---------- */
.form-item-list {
display: flex;
flex-direction: column;
}
.form-row {
display: flex;
align-items: center;
justify-content: space-between;
min-height: 100rpx;
border-bottom: 1rpx solid #F0F0F2;
padding: 8rpx 0;
}
.form-row.no-border {
border-bottom: none;
}
.form-row.flex-col-remark {
flex-direction: column;
align-items: stretch;
justify-content: flex-start;
padding: 22rpx 0 8rpx;
gap: 18rpx;
}
.gc-remark-box {
width: 100%;
height: 76rpx;
background: #F5F5F5;
border-radius: 10rpx;
padding: 0 24rpx;
display: flex;
align-items: center;
box-sizing: border-box;
}
.gc-remark-input {
width: 100%;
font-size: 26rpx;
color: #1F1F1F;
}
.gc-subtotal-row {
border-top: 1rpx solid #F0F0F2;
margin-top: 20rpx;
padding-top: 22rpx;
display: flex;
align-items: center;
justify-content: flex-end;
}
.gc-subtotal-price {
font-size: 36rpx;
font-weight: 700;
color: #E8331B;
}
.fr-label {
display: flex;
align-items: center;
gap: 4rpx;
flex-shrink: 0;
}
.req-star {
color: #E8331B;
font-size: 28rpx;
font-weight: 700;
}
.label-txt {
font-size: 28rpx;
font-weight: 400;
color: #1F1F1F;
}
.label-txt.no-star {
padding-left: 0;
}
.fr-value-box {
display: flex;
align-items: center;
gap: 10rpx;
flex: 1;
justify-content: flex-end;
}
.val-txt {
font-size: 28rpx;
color: #1F1F1F;
text-align: right;
max-width: 450rpx;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.val-txt.placeholder {
color: #999999;
}
.val-txt.highlight {
color: #F0710D;
font-weight: 500;
}
.val-txt.highlight-dark {
color: #1F1F1F;
font-weight: 400;
}
.fr-arrow {
width: 28rpx;
height: 28rpx;
opacity: 0.45;
}
.fr-stepper-group {
display: flex;
align-items: center;
gap: 14rpx;
}
.fr-stepper {
display: flex;
align-items: center;
border: 1rpx solid #DCDCDC;
border-radius: 6rpx;
overflow: hidden;
}
.step-btn {
width: 58rpx;
height: 54rpx;
display: flex;
align-items: center;
justify-content: center;
font-size: 32rpx;
background: #FFFFFF;
color: #333333;
}
.step-btn.disabled {
color: #CCCCCC;
}
.step-num-box {
width: 68rpx;
height: 54rpx;
display: flex;
align-items: center;
justify-content: center;
font-size: 28rpx;
color: #1F1F1F;
border-left: 1rpx solid #DCDCDC;
border-right: 1rpx solid #DCDCDC;
background: #FFFFFF;
}
.step-unit-txt {
font-size: 28rpx;
color: #333333;
}
.fr-input {
font-size: 28rpx;
color: #1F1F1F;
width: 100%;
text-align: right;
}
.fr-input-box {
flex: 1;
display: flex;
align-items: center;
justify-content: flex-end;
gap: 12rpx;
}
.fr-custom-input {
flex: 1;
font-size: 28rpx;
color: #1F1F1F;
text-align: right;
}
.fr-char-count {
font-size: 24rpx;
color: #999999;
flex-shrink: 0;
}
.fr-input.right-align {
text-align: right;
}
/* ---------- 步骤 2:客户信息卡片(1:1 复刻 frame_015, 018, 021) ---------- */
.paste-parse-card {
background: #FFFFFF;
border-radius: 16rpx;
padding: 20rpx;
margin-bottom: 20rpx;
}
.ppc-box {
background: #F5F5F5;
border-radius: 12rpx;
padding: 20rpx;
position: relative;
}
.ppc-textarea {
width: 100%;
height: 120rpx;
font-size: 26rpx;
line-height: 1.5;
color: #1F1F1F;
}
.ppc-btn-row {
display: flex;
align-items: center;
justify-content: space-between;
margin-top: 12rpx;
}
.ppc-guide-bubble {
display: inline-flex;
align-items: center;
gap: 10rpx;
background: #FFF3E8;
border: 1rpx solid #FFD1A8;
border-radius: 8rpx;
padding: 8rpx 14rpx;
max-width: 460rpx;
}
.pgb-txt {
font-size: 20rpx;
color: #F0710D;
line-height: 1.3;
}
.pgb-close {
font-size: 24rpx;
color: #F0710D;
padding-left: 4rpx;
}
.ppc-right-btns {
display: flex;
align-items: center;
gap: 16rpx;
margin-left: auto;
}
.ppc-clipboard-btn {
display: inline-flex;
align-items: center;
justify-content: center;
height: 54rpx;
padding: 0 22rpx;
background: #FFFFFF;
border: 1rpx solid #D5D5D5;
border-radius: 8rpx;
}
.pcb-txt {
font-size: 24rpx;
color: #444444;
}
.ppc-history-btn {
display: inline-flex;
align-items: center;
justify-content: center;
height: 54rpx;
padding: 0 24rpx;
background: #2378FF;
border-radius: 8rpx;
}
.phb-txt {
font-size: 26rpx;
font-weight: 500;
color: #FFFFFF;
}
.express-no-box {
gap: 16rpx;
}
.express-query-btn {
flex-shrink: 0;
padding: 6rpx 12rpx;
display: inline-flex;
align-items: center;
justify-content: center;
}
.eqb-txt {
font-size: 26rpx;
color: #F0710D;
font-weight: 500;
}
.ppc-action-btn {
display: inline-flex;
align-items: center;
justify-content: center;
height: 54rpx;
padding: 0 26rpx;
background: #F0710D;
border-radius: 8rpx;
}
.pab-txt {
font-size: 26rpx;
font-weight: 500;
color: #FFFFFF;
}
.customer-card {
background: #FFFFFF;
border-radius: 16rpx;
padding: 0 24rpx;
margin-bottom: 20rpx;
}
.sub-row {
min-height: 76rpx;
padding: 4rpx 0;
}
.flex-row-center {
display: flex;
align-items: center;
gap: 12rpx;
}
.virtual-checkbox {
width: 34rpx;
height: 34rpx;
border-radius: 6rpx;
border: 2rpx solid #CCCCCC;
display: flex;
align-items: center;
justify-content: center;
}
.virtual-checkbox.on {
background: #F0710D;
border-color: #F0710D;
}
.vc-icon {
width: 22rpx;
height: 22rpx;
}
.sub-label-txt {
font-size: 28rpx;
color: #1F1F1F;
}
.sub-info-icon {
width: 32rpx;
height: 32rpx;
}
.sub-hint-txt {
font-size: 24rpx;
color: #999999;
}
.addr-col-row {
display: flex;
flex-direction: column;
align-items: stretch;
padding: 20rpx 0;
}
.addr-top-line {
display: flex;
align-items: center;
justify-content: space-between;
}
.region-picker-btn {
display: flex;
align-items: center;
gap: 10rpx;
}
.region-txt {
max-width: 440rpx;
}
.master-capacity-hint {
margin-top: 12rpx;
}
.mch-txt {
font-size: 24rpx;
color: #666666;
}
.mch-num {
font-size: 24rpx;
color: #F0710D;
}
.elevator-radios {
display: flex;
align-items: center;
gap: 32rpx;
}
.el-radio {
display: flex;
align-items: center;
gap: 12rpx;
}
.rd-dot {
width: 32rpx;
height: 32rpx;
border-radius: 50%;
border: 2rpx solid #CCCCCC;
background: #FFFFFF;
box-sizing: border-box;
position: relative;
}
.el-radio.on .rd-dot {
border: 8rpx solid #F0710D;
}
.rd-txt {
font-size: 28rpx;
color: #1F1F1F;
}
.flex-col-start {
flex-direction: column;
align-items: stretch;
padding: 20rpx 0 24rpx;
}
.remark-head-row {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 16rpx;
}
.tpl-btn {
display: flex;
align-items: center;
gap: 6rpx;
}
.tpl-txt {
font-size: 26rpx;
color: #F0710D;
}
.tpl-arrow {
width: 24rpx;
height: 24rpx;
opacity: 0.6;
}
.remark-input-box {
background: #F5F5F5;
border-radius: 10rpx;
height: 76rpx;
padding: 0 24rpx;
display: flex;
align-items: center;
}
.remark-input {
font-size: 26rpx;
color: #1F1F1F;
width: 100%;
}
.goods-arrived-pills {
display: flex;
align-items: center;
gap: 16rpx;
}
.arrived-pill {
display: inline-flex;
align-items: center;
justify-content: center;
height: 54rpx;
padding: 0 24rpx;
font-size: 26rpx;
color: #333333;
background: #FFFFFF;
border: 1rpx solid #CCCCCC;
border-radius: 6rpx;
line-height: 1;
}
.arrived-pill.active {
background: #FFF2E8;
border-color: #F0710D;
color: #F0710D;
}
.step2-expand-bar {
border-top: 1rpx solid #F0F0F2;
height: 84rpx;
display: flex;
align-items: center;
justify-content: center;
gap: 8rpx;
}
.seb-txt {
font-size: 26rpx;
color: #666666;
}
.seb-arrow {
width: 26rpx;
height: 26rpx;
opacity: 0.6;
transition: transform 0.2s;
}
.seb-arrow.up {
transform: rotate(180deg);
}
/* ---------- 步骤 3:确认订单卡片(1:1 复刻 frame_025, 027, 028) ---------- */
.confirm-addr-card {
background: #FFFFFF;
border-radius: 16rpx;
padding: 28rpx 24rpx;
margin-bottom: 20rpx;
display: flex;
align-items: center;
gap: 20rpx;
}
.cac-icon-wrap {
width: 56rpx;
height: 56rpx;
flex-shrink: 0;
}
.cac-pin-icon {
width: 56rpx;
height: 56rpx;
}
.cac-info {
flex: 1;
display: flex;
flex-direction: column;
gap: 8rpx;
}
.cac-user-line {
display: flex;
align-items: center;
gap: 16rpx;
}
.cac-name {
font-size: 30rpx;
font-weight: 700;
color: #1F1F1F;
}
.cac-mobile {
font-size: 28rpx;
color: #333333;
}
.cac-full-addr {
font-size: 26rpx;
color: #666666;
line-height: 1.4;
}
.cac-edit-link {
padding: 8rpx 4rpx 8rpx 16rpx;
flex-shrink: 0;
}
.cel-txt {
font-size: 28rpx;
color: #F0710D;
}
.confirm-goods-card {
background: #FFFFFF;
border-radius: 16rpx;
padding: 8rpx 24rpx;
margin-bottom: 20rpx;
}
.cgc-item {
display: flex;
align-items: center;
gap: 20rpx;
padding: 24rpx 0;
border-bottom: 1rpx solid #F0F0F2;
}
.cgc-item:last-child {
border-bottom: none;
}
.cgc-thumb-wrap {
width: 140rpx;
height: 140rpx;
border-radius: 10rpx;
position: relative;
overflow: hidden;
flex-shrink: 0;
}
.cgc-thumb {
width: 100%;
height: 100%;
}
.cgc-view-big {
position: absolute;
bottom: 0;
left: 0;
right: 0;
background: rgba(0, 0, 0, 0.55);
text-align: center;
padding: 4rpx 0;
}
.cvb-txt {
font-size: 20rpx;
color: #FFFFFF;
}
.cgc-detail {
flex: 1;
display: flex;
flex-direction: column;
justify-content: space-between;
min-height: 120rpx;
}
.cgc-top-row {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 16rpx;
}
.cgc-name {
font-size: 28rpx;
font-weight: 600;
color: #1F1F1F;
flex: 1;
}
.cgc-price {
font-size: 30rpx;
font-weight: 700;
color: #1F1F1F;
}
.cgc-services-row {
display: flex;
align-items: center;
margin-top: 16rpx;
}
.cgc-service-summary {
font-size: 26rpx;
color: #888888;
}
.confirm-extra-card {
background: #FFFFFF;
border-radius: 16rpx;
padding: 24rpx;
margin-bottom: 20rpx;
}
.cec-head {
display: flex;
align-items: center;
gap: 10rpx;
margin-bottom: 24rpx;
}
.cec-title {
font-size: 30rpx;
font-weight: 700;
color: #1F1F1F;
}
.cec-info-icon {
width: 32rpx;
height: 32rpx;
}
.cec-row {
display: flex;
align-items: center;
justify-content: space-between;
}
.cec-label {
font-size: 28rpx;
color: #1F1F1F;
}
.cec-radio-circle {
width: 40rpx;
height: 40rpx;
border-radius: 50%;
border: 2rpx solid #CCCCCC;
display: flex;
align-items: center;
justify-content: center;
box-sizing: border-box;
}
.cec-radio-circle.on {
background: #F0710D;
border-color: #F0710D;
}
.crc-check {
width: 24rpx;
height: 24rpx;
}
.confirm-fee-card {
background: #FFFFFF;
border-radius: 16rpx;
padding: 24rpx;
margin-bottom: 20rpx;
}
.cfc-row {
display: flex;
align-items: center;
justify-content: space-between;
padding: 16rpx 0;
}
.cfc-label {
font-size: 28rpx;
color: #1F1F1F;
}
.cfc-val {
font-size: 28rpx;
color: #1F1F1F;
}
.cfc-coupon-left {
display: flex;
align-items: center;
gap: 12rpx;
}
.cfc-quan-badge {
width: 34rpx;
height: 34rpx;
border-radius: 6rpx;
background: #E8331B;
color: #FFFFFF;
font-size: 22rpx;
display: flex;
align-items: center;
justify-content: center;
}
.cfc-coupon-right {
display: flex;
align-items: center;
gap: 8rpx;
}
.cfc-discount-val {
font-size: 28rpx;
color: #E8331B;
}
.cfc-arrow {
width: 26rpx;
height: 26rpx;
opacity: 0.45;
}
.cfc-total-line {
border-top: 1rpx solid #F0F0F2;
margin-top: 16rpx;
padding-top: 24rpx;
display: flex;
align-items: baseline;
justify-content: flex-end;
gap: 10rpx;
}
.total-tag {
font-size: 28rpx;
color: #1F1F1F;
}
.total-price {
font-size: 36rpx;
font-weight: 700;
color: #E8331B;
}
.cfc-notice-box {
background: #FFF9F2;
border-radius: 10rpx;
padding: 18rpx 20rpx;
margin-top: 20rpx;
}
.cnb-txt {
font-size: 24rpx;
color: #F0710D;
line-height: 1.5;
}
.confirm-guarantee-card {
background: #FFFFFF;
border-radius: 16rpx;
padding: 24rpx;
margin-bottom: 16rpx;
}
.cgc-check-row {
display: flex;
align-items: flex-start;
gap: 16rpx;
margin-bottom: 14rpx;
}
.guarantee-checkbox {
width: 36rpx;
height: 36rpx;
border-radius: 6rpx;
border: 2rpx solid #CCCCCC;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
margin-top: 4rpx;
}
.guarantee-checkbox.on {
background: #F0710D;
border-color: #F0710D;
}
.gc-icon {
width: 24rpx;
height: 24rpx;
}
.cgc-check-text-wrap {
flex: 1;
font-size: 28rpx;
line-height: 1.45;
}
.cgc-check-label {
color: #1F1F1F;
font-weight: 600;
}
.cgc-orange-txt {
color: #F0710D;
font-weight: 600;
margin: 0 4rpx;
}
.cgc-set-link {
color: #F0710D;
font-size: 26rpx;
margin-left: 16rpx;
}
.cgc-sub-hint {
font-size: 24rpx;
color: #888888;
line-height: 1.5;
}
.publish-notice-row {
display: flex;
justify-content: flex-end;
padding: 8rpx 8rpx 20rpx;
}
.pnr-txt {
font-size: 26rpx;
color: #666666;
}
/* ---------- 吸底栏统一样式 ---------- */
/* 步骤 1 吸底栏(1:1 复刻 frame_004 & frame_007) */
.step1-bottom-bar {
position: fixed;
bottom: 0;
left: 0;
right: 0;
background: #FFFFFF;
box-shadow: 0 -4rpx 20rpx rgba(0, 0, 0, 0.06);
z-index: 90;
padding-bottom: env(safe-area-inset-bottom);
}
.step1-promo-banner {
height: 58rpx;
background: linear-gradient(90deg, #F0710D 0%, #E8331B 100%);
padding: 0 24rpx;
display: flex;
align-items: center;
justify-content: space-between;
}
.spb-txt {
font-size: 24rpx;
color: #FFFFFF;
}
.spb-arrow {
font-size: 26rpx;
color: #FFFFFF;
font-weight: 700;
}
.step1-summary-area {
display: flex;
flex-direction: column;
align-items: flex-end;
padding: 16rpx 24rpx 4rpx;
}
.s1-main-line {
display: flex;
align-items: center;
gap: 8rpx;
}
.s1-count {
font-size: 26rpx;
color: #1F1F1F;
}
.s1-quan-badge {
width: 32rpx;
height: 32rpx;
border-radius: 6rpx;
background: #E8331B;
color: #FFFFFF;
font-size: 20rpx;
display: flex;
align-items: center;
justify-content: center;
}
.s1-price {
font-size: 36rpx;
font-weight: 700;
color: #E8331B;
}
.s1-sub-line {
margin-top: 2rpx;
}
.s1-discount-txt {
font-size: 22rpx;
color: #E8331B;
}
.step1-action-row {
display: flex;
align-items: center;
gap: 20rpx;
padding: 14rpx 24rpx 18rpx;
}
.btn-add-more {
flex: 1;
height: 84rpx;
border: 2rpx solid #F0710D;
background: #FFFFFF;
border-radius: 12rpx;
display: flex;
align-items: center;
justify-content: center;
}
.bam-txt {
font-size: 30rpx;
font-weight: 500;
color: #F0710D;
}
.btn-step-next {
flex: 1;
height: 84rpx;
background: #F0710D;
border-radius: 12rpx;
display: flex;
align-items: center;
justify-content: center;
}
.bsn-txt {
font-size: 30rpx;
font-weight: 500;
color: #FFFFFF;
}
/* 步骤 2 吸底栏 */
.step2-bottom-bar {
position: fixed;
bottom: 0;
left: 0;
right: 0;
background: #FFFFFF;
box-shadow: 0 -4rpx 20rpx rgba(0, 0, 0, 0.06);
z-index: 90;
padding: 18rpx 24rpx calc(18rpx + env(safe-area-inset-bottom));
display: flex;
align-items: center;
gap: 20rpx;
}
.btn-step-back {
flex: 1;
height: 84rpx;
border: 2rpx solid #CCCCCC;
background: #FFFFFF;
border-radius: 12rpx;
display: flex;
align-items: center;
justify-content: center;
}
.bsb-txt {
font-size: 30rpx;
color: #333333;
font-weight: 500;
}
.btn-step-next-large {
flex: 1;
height: 84rpx;
background: #F0710D;
border-radius: 12rpx;
display: flex;
align-items: center;
justify-content: center;
}
.bsnl-txt {
font-size: 30rpx;
font-weight: 500;
color: #FFFFFF;
}
/* 步骤 3 吸底栏 */
.step3-bottom-bar {
position: fixed;
bottom: 0;
left: 0;
right: 0;
background: #FFFFFF;
box-shadow: 0 -4rpx 20rpx rgba(0, 0, 0, 0.06);
z-index: 90;
padding: 18rpx 24rpx calc(18rpx + env(safe-area-inset-bottom));
display: flex;
align-items: center;
justify-content: space-between;
}
.step3-summary {
display: flex;
flex-direction: column;
gap: 4rpx;
}
.s3-top {
display: flex;
align-items: baseline;
}
.s3-count {
font-size: 28rpx;
color: #1F1F1F;
}
.s3-price {
font-size: 38rpx;
font-weight: 700;
color: #E8331B;
}
.s3-sub {
display: flex;
align-items: center;
gap: 12rpx;
}
.s3-origin {
font-size: 24rpx;
color: #999999;
text-decoration: line-through;
}
.s3-discount {
font-size: 24rpx;
color: #E8331B;
}
.btn-publish-order {
height: 84rpx;
padding: 0 64rpx;
background: #F0710D;
border-radius: 12rpx;
display: flex;
align-items: center;
justify-content: center;
}
.btn-publish-order.disabled {
opacity: 0.6;
}
.bpo-txt {
font-size: 30rpx;
font-weight: 600;
color: #FFFFFF;
}
.clickable-hover:active {
opacity: 0.85;
}
.cfc-quote-box {
padding: 10rpx 0;
}
.cqb-badge {
display: inline-flex;
align-items: center;
justify-content: center;
height: 40rpx;
font-size: 22rpx;
color: #F0710D;
background: #FFF7F0;
padding: 0 14rpx;
border-radius: 8rpx;
font-weight: 600;
margin-bottom: 12rpx;
line-height: 1;
}
.cqb-title {
display: block;
font-size: 30rpx;
font-weight: 700;
color: #1F1F1F;
margin-bottom: 8rpx;
}
.cqb-desc {
display: block;
font-size: 24rpx;
color: #666666;
line-height: 1.6;
}
.s3-quote-tip {
font-size: 32rpx;
font-weight: 700;
color: #F0710D;
margin-left: 8rpx;
}
.s3-quote-sub {
font-size: 22rpx;
color: #999999;
}
/* ---------- 模式冲突拦截确认弹窗(1:1 复刻视频 01:08) ---------- */
.mode-conflict-mask {
position: fixed;
left: 0;
top: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.55);
display: flex;
align-items: center;
justify-content: center;
z-index: 1200;
padding: 0 56rpx;
}
.mode-conflict-dialog {
width: 100%;
background: #FFFFFF;
border-radius: 20rpx;
padding: 52rpx 44rpx 44rpx;
box-sizing: border-box;
}
.mcd-body {
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
margin-bottom: 44rpx;
}
.mcd-title {
font-size: 32rpx;
font-weight: 700;
color: #1F1F1F;
line-height: 1.5;
margin-bottom: 20rpx;
}
.mcd-sub {
font-size: 28rpx;
color: #444444;
line-height: 1.6;
}
.mcd-footer {
display: flex;
align-items: center;
gap: 24rpx;
}
.mcd-btn {
flex: 1;
height: 84rpx;
border-radius: 12rpx;
display: flex;
align-items: center;
justify-content: center;
box-sizing: border-box;
}
.mcd-btn-outline {
background: #FFFFFF;
border: 2rpx solid #CCCCCC;
}
.mcd-btn-outline-txt {
font-size: 30rpx;
color: #444444;
font-weight: 500;
}
.mcd-btn-primary {
background: #F0710D;
}
.mcd-btn-primary-txt {
font-size: 30rpx;
color: #FFFFFF;
font-weight: 600;
}
</style>