- 新增用户消息中心组件 UserMessageView - 新增师傅消息中心组件 MasterMessageView - 新增用户订单列表组件 UserOrdersView - 重构订单列表页,复用独立组件 - 新增系统工具 getWindowInfoSafe 兼容多端系统信息获取 - 重构 TabBar 组件,支持单母页模式和事件回调 - 优化消息跳转逻辑,支持角色自适应 Tab 切换
2965 行
74 KiB
Vue
2965 行
74 KiB
Vue
<template>
|
||
<view class="page">
|
||
<!-- 统一规范顶部沉浸式导航栏与步骤条 -->
|
||
<view class="nav-header">
|
||
<YjyfNavBar theme="transparent" :title="currentStepTitle" :fixed="false" @back="handleNavBack" />
|
||
<!-- 步骤指示器条 -->
|
||
<view class="step-indicator-bar">
|
||
<view class="step-tab" :class="{ active: currentStep >= 1 }">
|
||
<text class="st-num">1</text>
|
||
<text class="st-txt">添加商品</text>
|
||
</view>
|
||
<view class="step-line" :class="{ active: currentStep >= 2 }"></view>
|
||
<view class="step-tab" :class="{ active: currentStep >= 2 }">
|
||
<text class="st-num">2</text>
|
||
<text class="st-txt">客户信息</text>
|
||
</view>
|
||
<view class="step-line" :class="{ active: currentStep >= 3 }"></view>
|
||
<view class="step-tab" :class="{ active: currentStep >= 3 }">
|
||
<text class="st-num">3</text>
|
||
<text class="st-txt">确认订单</text>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
|
||
<!-- ==================== 步骤 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" v-if="currentCatIconUrl">
|
||
<image class="tsc-img" :src="currentCatIconUrl" 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">
|
||
<view class="tsc-left">
|
||
<view class="tsc-icon-wrap">
|
||
<image class="tsc-img" :src="priceType === 'quote' ? '/static/icons/mode-hammer.svg' : '/static/icons/mode-coin.svg'" mode="aspectFit" />
|
||
</view>
|
||
<view class="tsc-mode-info">
|
||
<text class="tsc-title">{{ currentModeName }}</text>
|
||
<view class="tsc-benefit-tag" v-if="priceType === 'quote'">下单送券·慢必赔</view>
|
||
</view>
|
||
</view>
|
||
<view class="tsc-btn clickable-hover" @tap="showModeDrawer = true">
|
||
<text class="tsc-btn-txt">重新选择下单模式</text>
|
||
</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">
|
||
<!-- 组头部 -->
|
||
<view class="gc-head">
|
||
<text class="gc-title">商品信息</text>
|
||
<view class="gc-meta">
|
||
<text class="gc-group-num">第 {{ idx + 1 }} 组</text>
|
||
<view class="gc-del-btn clickable-hover" v-if="goodsList.length > 1" @tap="removeGroup(idx)">
|
||
<image class="gc-trash-img" src="/static/icons/trash.svg" mode="aspectFit" />
|
||
</view>
|
||
</view>
|
||
</view>
|
||
|
||
<!-- 并排 3 个宽阔虚线框(图片、视频、环境图) -->
|
||
<view class="media-upload-row">
|
||
<!-- 1. 添加图片 -->
|
||
<view class="dash-card pic-dash clickable-hover" @tap="openMediaDrawer(idx, 'image')">
|
||
<image class="dc-icon" src="/static/icons/add-img.svg" mode="aspectFit" />
|
||
<text class="dc-txt orange">*添加图片</text>
|
||
</view>
|
||
|
||
<!-- 2. 安装视频 -->
|
||
<view class="dash-card video-dash clickable-hover" @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>
|
||
|
||
<!-- 3. 安装环境图 -->
|
||
<view class="dash-card env-dash clickable-hover" @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>
|
||
|
||
<!-- 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="media-preview-area" v-if="(g.images && g.images.length) || (g.videos && g.videos.length) || (g.envImages && g.envImages.length)">
|
||
<view class="mp-section" v-if="g.images && g.images.length">
|
||
<text class="mp-tag">商品照片 ({{ g.images.length }}):</text>
|
||
<view class="mp-thumbs">
|
||
<view class="mp-thumb-item" v-for="(img, iIdx) in g.images" :key="'img-' + iIdx">
|
||
<image class="mp-img" :src="img" mode="aspectFill" @tap="previewImg(g.images, iIdx)" />
|
||
<view class="mp-del-btn" @tap.stop="removeGroupImg(idx, iIdx)">×</view>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
|
||
<view class="mp-section" v-if="g.videos && g.videos.length">
|
||
<text class="mp-tag">安装视频 ({{ g.videos.length }}):</text>
|
||
<view class="mp-thumbs">
|
||
<view class="mp-thumb-item video-item" v-for="(v, vIdx) in g.videos" :key="'v-' + vIdx">
|
||
<image class="mp-img" :src="v.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="mp-del-btn" @tap.stop="removeGroupVideo(idx, vIdx)">×</view>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
|
||
<view class="mp-section" v-if="g.envImages && g.envImages.length">
|
||
<text class="mp-tag">环境照片 ({{ g.envImages.length }}):</text>
|
||
<view class="mp-thumbs">
|
||
<view class="mp-thumb-item" v-for="(eimg, eIdx) in g.envImages" :key="'env-' + eIdx">
|
||
<image class="mp-img" :src="eimg" mode="aspectFill" @tap="previewImg(g.envImages, eIdx)" />
|
||
<view class="mp-del-btn" @tap.stop="removeGroupEnvImg(idx, eIdx)">×</view>
|
||
</view>
|
||
</view>
|
||
</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 + ')' : '')) : '点击选择品类规格' }}
|
||
</text>
|
||
<image class="fr-arrow" src="/static/icons/arrow-right.svg" mode="aspectFit" />
|
||
</view>
|
||
</view>
|
||
|
||
<!-- ② 商品数量:步进器 -->
|
||
<view class="form-row">
|
||
<view class="fr-label">
|
||
<text class="req-star">*</text>
|
||
<text class="label-txt">商品数量</text>
|
||
</view>
|
||
<view class="fr-stepper">
|
||
<view class="step-btn step-minus clickable-hover" @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>
|
||
</view>
|
||
|
||
<!-- ③ 服务项目:抽屉展示(参考图 frame_004) -->
|
||
<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 highlight-dark">
|
||
{{ g.service_type_name || '安装' }}
|
||
</text>
|
||
<image class="fr-arrow" src="/static/icons/arrow-right.svg" mode="aspectFit" />
|
||
</view>
|
||
</view>
|
||
|
||
<!-- ④ 增项服务:抽屉展示(参考图 frame_005) -->
|
||
<view class="form-row clickable-hover" @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="{ highlight: hasAddons(g) }">
|
||
{{ addonSummary(g) }}
|
||
</text>
|
||
<image class="fr-arrow" src="/static/icons/arrow-right.svg" mode="aspectFit" />
|
||
</view>
|
||
</view>
|
||
|
||
<!-- ⑤ 商品备注 -->
|
||
<view class="form-row no-border">
|
||
<view class="fr-label">
|
||
<text class="label-txt no-star">商品备注</text>
|
||
</view>
|
||
<view class="fr-value-box">
|
||
<input class="fr-input" v-model="g.remark" placeholder="点击输入商品备注(选填)" />
|
||
</view>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
|
||
<!-- ==================== 步骤 2:客户信息 (参考图 frame_014, frame_018, frame_021) ==================== -->
|
||
<view class="main-body" v-else-if="currentStep === 2">
|
||
<!-- 智能地址粘贴识别卡片 (参考图 18) -->
|
||
<view class="paste-parse-card">
|
||
<view class="ppc-box">
|
||
<textarea
|
||
class="ppc-textarea"
|
||
v-model="rawAddressText"
|
||
placeholder="粘贴整段:姓名,手机号,地址,可自动识别; 示例:张三,180****0000,贵州省贵阳市南明区花果园M区"
|
||
/>
|
||
<view class="ppc-btn-row">
|
||
<view class="ppc-clipboard-btn clickable-hover" @tap="pasteFromClipboard">
|
||
<image class="ppc-clip-icon" src="/static/icons/scan-paste.svg" mode="aspectFit" />
|
||
<text class="pcb-txt">读取剪贴板</text>
|
||
</view>
|
||
<view class="ppc-action-btn clickable-hover" @tap="executeParseAddress">
|
||
<text class="pab-txt">立即识别</text>
|
||
</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="请输入客户姓名" />
|
||
</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="请输入客户手机号" />
|
||
</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>
|
||
|
||
<!-- 客户地址(省市区选择) -->
|
||
<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>
|
||
<!-- 师傅运力提示(参考图 18 1:1 精确复刻) -->
|
||
<view class="master-capacity-hint" v-if="currentDistrictMasterCount > 0">
|
||
<text class="mch-txt">该地区可提供服务师傅共 </text>
|
||
<text class="mch-num">{{ currentDistrictMasterCount }}</text>
|
||
<text class="mch-txt"> 位</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="详细门牌号、楼栋房号" />
|
||
</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" v-if="form.has_elevator === 1"></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" v-if="form.has_elevator === 0"></view>
|
||
<text class="rd-txt">无电梯(步梯)</text>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
|
||
<!-- 服务备注与常用模板抽屉入口 (参考图 18) -->
|
||
<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="点击输入订单服务备注..." />
|
||
</view>
|
||
</view>
|
||
</view>
|
||
|
||
<!-- 订单联系人与交付协同卡片 (参考图 18) -->
|
||
<view class="customer-card">
|
||
<!-- 订单联系人 -->
|
||
<view class="form-row clickable-hover" @tap="openAddressBook">
|
||
<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>
|
||
|
||
<!-- 期望上门时间:抽屉展示 (参考图 18, 21) -->
|
||
<view class="form-row clickable-hover" @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="{ highlight: appointDate }">
|
||
{{ appointDisplay || '选择上门时间' }}
|
||
</text>
|
||
<image class="fr-arrow" src="/static/icons/arrow-right.svg" mode="aspectFit" />
|
||
</view>
|
||
</view>
|
||
|
||
<!-- 物流单号 -->
|
||
<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.logistics_no" placeholder="请输入物流单号(选填)" />
|
||
</view>
|
||
</view>
|
||
|
||
<!-- 物流公司:抽屉展示 (参考图 21) -->
|
||
<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="{ highlight: form.logistics_company }">
|
||
{{ form.logistics_company || '选择物流公司' }}
|
||
</text>
|
||
<image class="fr-arrow" src="/static/icons/arrow-right.svg" mode="aspectFit" />
|
||
</view>
|
||
</view>
|
||
|
||
<!-- 货物是否到达客户家 (参考图 21 药丸切换) -->
|
||
<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>
|
||
|
||
<!-- 师傅要求:抽屉展示 (参考图 21, 22, 23, 24) -->
|
||
<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="{ highlight: hasDemandReq }">
|
||
{{ demandSummaryText }}
|
||
</text>
|
||
<image class="fr-arrow" src="/static/icons/arrow-right.svg" mode="aspectFit" />
|
||
</view>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
|
||
<!-- ==================== 步骤 3:确认订单 (参考图 frame_025, frame_027, frame_028, frame_029) ==================== -->
|
||
<view class="main-body" v-else-if="currentStep === 3">
|
||
<!-- 顶部地址卡片 (参考图 25) -->
|
||
<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-btn clickable-hover" @tap="currentStep = 2">
|
||
<text class="ceb-txt">编辑</text>
|
||
</view>
|
||
</view>
|
||
|
||
<!-- 商品列表清单卡片 (参考图 25) -->
|
||
<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.item_name }}) x{{ g.num }}</text>
|
||
<text class="cgc-price">¥{{ getGroupEstimatedPrice(g) }}</text>
|
||
</view>
|
||
<view class="cgc-services-row">
|
||
<text class="cgc-service-tag">{{ g.service_type_name || '安装' }}</text>
|
||
<text class="cgc-addon-tag" v-if="hasAddons(g)">{{ addonSummary(g) }}</text>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
|
||
<!-- 附加服务卡片 (参考图 25, 27) -->
|
||
<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">
|
||
<text class="cec-label">加急订单(加急费20元~200元)</text>
|
||
<switch color="#F0710D" :checked="isUrgent" @change="onUrgentChange" />
|
||
</view>
|
||
</view>
|
||
|
||
<!-- 费用与优惠明细卡片 (参考图 25) -->
|
||
<view class="confirm-fee-card">
|
||
<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">
|
||
<image class="cfc-coupon-icon" src="/static/icons/coupon-tag.svg" mode="aspectFit" />
|
||
<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>
|
||
|
||
<!-- 平台履约空跑说明 (参考图 27) -->
|
||
<view class="cfc-notice-box">
|
||
<text class="cnb-txt">注:订单服务过程中,非师傅原因导致空跑,若师傅申请空跑费30元需由下单方承担(师傅不申请则无需支付)。</text>
|
||
</view>
|
||
</view>
|
||
|
||
<!-- 超时自动转报价订单保障 (参考图 27, 28) -->
|
||
<view class="confirm-guarantee-card">
|
||
<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>
|
||
<text class="cgc-check-label">如超过无法匹配合适师傅,自动换成报价订单</text>
|
||
</view>
|
||
<view class="cgc-sub-hint">
|
||
一口价订单转成报价订单后会生成一笔新的报价单,已支付的金额会退回您的支付账户。
|
||
</view>
|
||
</view>
|
||
</view>
|
||
|
||
<!-- ==================== 吸底操作栏(分步对应) ==================== -->
|
||
<!-- 步骤 1 吸底栏:优惠浮动条 + [+ 继续添加商品] + [下一步] -->
|
||
<view class="step1-bottom-bar" v-if="currentStep === 1">
|
||
<!-- 费用浮动折叠条 (仅在非报价模式且有预估价时展示) -->
|
||
<view class="step1-floating-notice clickable-hover" v-if="priceType !== 'quote' && amount && Number(amount.pay_amount) > 0" @tap="showFeeDrawer = true">
|
||
<text class="sfn-txt">已使用优惠券,共减 ¥{{ (amount && amount.discount_amount) || 0 }}(原价 ¥{{ (amount && amount.base_amount) || 0 }})</text>
|
||
<image class="sfn-arrow" src="/static/icons/chevron-up.svg" mode="aspectFit" />
|
||
</view>
|
||
|
||
<!-- 报价模式下:顶部简洁商品组数计数,对标奇兵到家 1:1 -->
|
||
<view class="step1-group-count-bar" v-if="priceType === 'quote'">
|
||
<text class="sgc-txt">共{{ goodsList.length }}组商品</text>
|
||
</view>
|
||
|
||
<view class="step1-action-row" :class="{ 'quote-action-row': priceType === 'quote' }">
|
||
<view class="step1-summary" v-if="priceType !== 'quote'">
|
||
<text class="s1-count">共{{ goodsList.length }}组商品合计</text>
|
||
<text class="s1-coupon-tag">券</text>
|
||
<text class="s1-price">¥{{ amount ? amount.pay_amount : '0.00' }}</text>
|
||
</view>
|
||
<view class="step1-btns" :class="{ 'quote-btns-full': priceType === 'quote' }">
|
||
<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>
|
||
</view>
|
||
|
||
<!-- 步骤 2 吸底栏:[返回上一步] + [下一步] (参考图 frame_018, frame_021) -->
|
||
<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_027) -->
|
||
<view class="step3-bottom-bar" v-else-if="currentStep === 3">
|
||
<view class="step3-summary">
|
||
<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">共减¥{{ amount ? amount.discount_amount : '0.00' }}</text>
|
||
</view>
|
||
</view>
|
||
<view class="btn-publish-order clickable-hover" :class="{ disabled: submitting }" @tap="confirmSubmitAndPay">
|
||
<text class="bpo-txt">{{ submitting ? '提交中...' : (priceType === 'quote' ? '发布报价单' : '发布订单') }}</text>
|
||
</view>
|
||
</view>
|
||
|
||
<!-- ==================== 所有下拉选项:全部使用专业抽屉展示 ==================== -->
|
||
<!-- 1. 商品规格选择抽屉 (参考图 008) -->
|
||
<GoodsPickerDrawer
|
||
:visible="showGoodsDrawer"
|
||
:cat-id="drawerCatId"
|
||
:cat-name="drawerCatName"
|
||
@update:visible="showGoodsDrawer = $event"
|
||
@select="handleGoodsDrawerSelect"
|
||
@custom="handleGoodsDrawerCustom"
|
||
/>
|
||
|
||
<!-- 2. 服务项目选择抽屉 (参考图 004) -->
|
||
<ServiceTypeDrawer
|
||
:visible="showServiceTypeDrawer"
|
||
:list="currentEditingServiceTypes"
|
||
:current-code="currentEditingServiceTypeCode"
|
||
@update:visible="showServiceTypeDrawer = $event"
|
||
@confirm="handleServiceTypeConfirm"
|
||
/>
|
||
|
||
<!-- 3. 增项服务抽屉 (参考图 005) -->
|
||
<AddonServiceDrawer
|
||
:visible="showAddonDrawerFlag"
|
||
:list="currentEditingAddons"
|
||
@update:visible="showAddonDrawerFlag = $event"
|
||
@confirm="handleAddonConfirm"
|
||
/>
|
||
|
||
<!-- 4. 期望上门时间抽屉 (参考图 018, 021) -->
|
||
<AppointTimeDrawer
|
||
:visible="showAppointDrawer"
|
||
:date="appointDate"
|
||
:slot="appointSlot"
|
||
@update:visible="showAppointDrawer = $event"
|
||
@confirm="handleAppointConfirm"
|
||
/>
|
||
|
||
<!-- 5. 师傅要求选择抽屉 (参考图 022, 023, 024) -->
|
||
<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. 常用备注模板抽屉 (参考图 018) -->
|
||
<RemarkTemplateDrawer
|
||
:visible="showRemarkDrawer"
|
||
@update:visible="showRemarkDrawer = $event"
|
||
@select="handleRemarkTemplateSelect"
|
||
/>
|
||
|
||
<!-- 7. 物流公司选择抽屉 (参考图 021) -->
|
||
<LogisticsDrawer
|
||
:visible="showLogisticsDrawer"
|
||
:current-name="form.logistics_company"
|
||
@update:visible="showLogisticsDrawer = $event"
|
||
@select="handleLogisticsSelect"
|
||
/>
|
||
|
||
<!-- 8. 费用明细抽屉 (参考图 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. 下单模式选择抽屉 (参考图 004 弹窗抽屉) -->
|
||
<ModePickerDrawer
|
||
:visible="showModeDrawer"
|
||
:current-mode="priceType"
|
||
@update:visible="showModeDrawer = $event"
|
||
@select="handleModeSelect"
|
||
/>
|
||
|
||
<!-- 10. 图片/媒体操作选择抽屉 (参考图 012) -->
|
||
<MediaActionDrawer
|
||
:visible="showMediaDrawer"
|
||
@update:visible="showMediaDrawer = $event"
|
||
@select="handleMediaActionSelect"
|
||
/>
|
||
</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';
|
||
import { getWindowInfoSafe } from '@/utils/system.js';
|
||
|
||
// 状态栏与导航栏高度
|
||
const statusBarHeight = ref(20);
|
||
const navBarHeight = ref(44);
|
||
|
||
try {
|
||
const info = getWindowInfoSafe();
|
||
if (info && info.statusBarHeight) statusBarHeight.value = info.statusBarHeight;
|
||
if (typeof uni.getMenuButtonBoundingClientRect === 'function') {
|
||
const menu = uni.getMenuButtonBoundingClientRect();
|
||
if (menu && menu.height) navBarHeight.value = (menu.top - statusBarHeight.value) * 2 + menu.height;
|
||
}
|
||
} catch (e) {}
|
||
|
||
// 流程步骤控制:1: 添加商品, 2: 客户信息, 3: 确认订单
|
||
const currentStep = ref(1);
|
||
|
||
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 {
|
||
uni.navigateBack();
|
||
}
|
||
}
|
||
|
||
// 计价模式
|
||
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 '一口价下单';
|
||
});
|
||
|
||
function handleModeSelect(mode) {
|
||
priceType.value = mode;
|
||
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_name: '',
|
||
cat_id: 0,
|
||
cat_name: '',
|
||
unit: '件',
|
||
base_price: 0,
|
||
num: 1,
|
||
service_type: 'install',
|
||
service_type_name: '安装',
|
||
service_types: [
|
||
{ code: 'install', name: '安装', price: 60 },
|
||
{ code: 'repair', name: '维修', price: 40 },
|
||
{ code: 'remove', name: '拆旧', price: 30 }
|
||
],
|
||
remark: '',
|
||
images: [],
|
||
videos: [],
|
||
envImages: [],
|
||
extras: [
|
||
{ key: 'tear', name: '拆旧', price: 50, num: 0 },
|
||
{ key: 'cut', name: '切割', price: 20, num: 0 }
|
||
]
|
||
}
|
||
]);
|
||
|
||
function stepGroupNum(idx, d) {
|
||
goodsList.value[idx].num = Math.max(1, goodsList.value[idx].num + d);
|
||
scheduleCalc();
|
||
}
|
||
|
||
function removeGroup(idx) {
|
||
if (goodsList.value.length <= 1) return;
|
||
goodsList.value.splice(idx, 1);
|
||
scheduleCalc();
|
||
}
|
||
|
||
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 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 handleGoodsDrawerSelect(spec) {
|
||
const rawAddons = spec.addons && spec.addons.length ? spec.addons : [];
|
||
const extras = rawAddons.map(ad => ({
|
||
id: ad.id,
|
||
key: 'addon_' + ad.id,
|
||
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 : [
|
||
{ code: 'install', name: '安装', price: Number(spec.base_price) || 60, is_default: 1 },
|
||
{ code: 'repair', name: '维修', price: Math.round((Number(spec.base_price) || 60) * 0.7), is_default: 0 },
|
||
{ code: 'remove', name: '拆旧', price: Math.round((Number(spec.base_price) || 60) * 0.5), is_default: 0 }
|
||
];
|
||
const defType = serviceTypes.find(st => st.is_default) || serviceTypes[0];
|
||
|
||
const newGroup = {
|
||
service_id: spec.service_id,
|
||
item_name: spec.item_name,
|
||
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 = {
|
||
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: 'remove', name: '拆卸/拆旧', price: 0, is_default: 0 },
|
||
{ code: 'measure', name: '现场测量', price: 0, is_default: 0 },
|
||
{ code: 'clean', name: '深度清洗保养', price: 0, is_default: 0 }
|
||
],
|
||
remark: '',
|
||
images: [],
|
||
videos: [],
|
||
envImages: [],
|
||
extras: []
|
||
};
|
||
|
||
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({
|
||
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: 'remove', name: '拆卸/拆旧', price: 0, is_default: 0 },
|
||
{ code: 'measure', name: '现场测量', price: 0, is_default: 0 },
|
||
{ code: 'clean', name: '深度清洗保养', price: 0, is_default: 0 }
|
||
],
|
||
remark: '',
|
||
images: [],
|
||
videos: [],
|
||
envImages: [],
|
||
extras: []
|
||
});
|
||
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;
|
||
if (typeItem.price > 0) {
|
||
g.base_price = Number(typeItem.price);
|
||
}
|
||
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. 媒体选择抽屉
|
||
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;
|
||
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: '请拍摄安装位置周围环境、墙体材质及水电管路,以便师傅提前备齐辅料配件。',
|
||
showCancel: false,
|
||
confirmText: '我知道了',
|
||
confirmColor: '#F0710D'
|
||
});
|
||
}
|
||
|
||
// 客户信息表单
|
||
const form = reactive({
|
||
contact: '',
|
||
mobile: '',
|
||
use_virtual: false,
|
||
province: '贵州省',
|
||
city: '贵阳市',
|
||
district: '南明区',
|
||
address: '',
|
||
has_elevator: 1,
|
||
floor: 1,
|
||
remark: '',
|
||
logistics_no: '',
|
||
logistics_company: '',
|
||
goods_arrived: 0,
|
||
demand_same_goods: false,
|
||
demand_high_rating: false,
|
||
demand_timeout: 1
|
||
});
|
||
|
||
const contactDisplay = computed(() => {
|
||
if (form.contact && form.mobile) {
|
||
const safeMob = form.mobile.replace(/(\d{3})\d{4}(\d{4})/, '$1****$2');
|
||
return `${form.contact} ${safeMob}`;
|
||
}
|
||
return '点击选择常用地址簿';
|
||
});
|
||
|
||
const currentDistrictMasterCount = ref(0);
|
||
|
||
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;
|
||
}
|
||
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);
|
||
|
||
function onUrgentChange(e) {
|
||
isUrgent.value = e.detail.value;
|
||
scheduleCalc();
|
||
}
|
||
|
||
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() {
|
||
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,
|
||
logistics_no: form.logistics_no,
|
||
logistics_company: form.logistics_company,
|
||
goods_list: JSON.stringify(goodsList.value)
|
||
});
|
||
|
||
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 === '其它') {
|
||
matchedCat = cats.find(c => c.id === 15 || 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 = [
|
||
{
|
||
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: 'remove', name: '拆卸/拆旧', price: 0, is_default: 0 },
|
||
{ code: 'measure', name: '现场测量', price: 0, is_default: 0 },
|
||
{ code: 'clean', name: '深度清洗保养', price: 0, is_default: 0 }
|
||
],
|
||
remark: '',
|
||
images: [],
|
||
videos: [],
|
||
envImages: [],
|
||
extras: []
|
||
}
|
||
];
|
||
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 => ({
|
||
id: ad.id,
|
||
key: 'addon_' + ad.id,
|
||
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 : [
|
||
{ code: 'install', name: '安装', price: Number(firstS.base_price) || 60, is_default: 1 },
|
||
{ code: 'repair', name: '维修', price: Math.round((Number(firstS.base_price) || 60) * 0.7), is_default: 0 },
|
||
{ code: 'remove', name: '拆旧', price: Math.round((Number(firstS.base_price) || 60) * 0.5), is_default: 0 }
|
||
];
|
||
const defType = serviceTypes.find(st => st.is_default) || serviceTypes[0];
|
||
|
||
goodsList.value = [
|
||
{
|
||
service_id: firstS.id,
|
||
item_name: firstS.name,
|
||
spec_name: firstS.name,
|
||
cat_id: matchedCat.id,
|
||
cat_name: matchedCat.name,
|
||
unit: firstS.unit || '件',
|
||
base_price: Number(firstS.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
|
||
}
|
||
];
|
||
}
|
||
}
|
||
} catch (e) {}
|
||
calc();
|
||
fetchMasterCount();
|
||
}
|
||
|
||
onLoad((options) => {
|
||
loadRealCategoryAndServices(options);
|
||
});
|
||
|
||
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: 240rpx;
|
||
box-sizing: border-box;
|
||
}
|
||
|
||
/* ---------- 导航栏与步骤条 ---------- */
|
||
.nav-header {
|
||
background: linear-gradient(135deg, #FFA93F 0%, #F0710D 100%);
|
||
position: sticky;
|
||
top: 0;
|
||
z-index: 99;
|
||
}
|
||
|
||
.nav-bar {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
padding: 0 20rpx;
|
||
position: relative;
|
||
}
|
||
|
||
.nav-back {
|
||
width: 72rpx;
|
||
height: 72rpx;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
}
|
||
|
||
.back-icon {
|
||
width: 38rpx;
|
||
height: 38rpx;
|
||
filter: brightness(10);
|
||
}
|
||
|
||
.nav-title {
|
||
position: absolute;
|
||
left: 0;
|
||
right: 0;
|
||
text-align: center;
|
||
pointer-events: none;
|
||
}
|
||
|
||
.title-txt {
|
||
font-size: 34rpx;
|
||
font-weight: 700;
|
||
color: #FFFFFF;
|
||
letter-spacing: 1rpx;
|
||
}
|
||
|
||
.nav-right {
|
||
width: 72rpx;
|
||
}
|
||
|
||
.step-indicator-bar {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
padding: 10rpx 40rpx 20rpx;
|
||
}
|
||
|
||
.step-tab {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 8rpx;
|
||
opacity: 0.65;
|
||
transition: opacity 0.2s;
|
||
}
|
||
|
||
.step-tab.active {
|
||
opacity: 1;
|
||
}
|
||
|
||
.st-num {
|
||
width: 32rpx;
|
||
height: 32rpx;
|
||
border-radius: 50%;
|
||
background: rgba(255, 255, 255, 0.3);
|
||
color: #FFFFFF;
|
||
font-size: 20rpx;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
font-weight: 600;
|
||
}
|
||
|
||
.step-tab.active .st-num {
|
||
background: #FFFFFF;
|
||
color: #F0710D;
|
||
}
|
||
|
||
.st-txt {
|
||
font-size: 24rpx;
|
||
color: #FFFFFF;
|
||
font-weight: 500;
|
||
}
|
||
|
||
.step-line {
|
||
width: 60rpx;
|
||
height: 2rpx;
|
||
background: rgba(255, 255, 255, 0.3);
|
||
margin: 0 16rpx;
|
||
}
|
||
|
||
.step-line.active {
|
||
background: #FFFFFF;
|
||
}
|
||
|
||
/* ---------- 主体内容区 ---------- */
|
||
.main-body {
|
||
padding: 20rpx 24rpx;
|
||
}
|
||
|
||
/* ---------- 顶部品类与模式双行卡片 ---------- */
|
||
.top-service-card {
|
||
background: #FFFFFF;
|
||
border-radius: 20rpx;
|
||
padding: 0 24rpx;
|
||
margin-bottom: 24rpx;
|
||
}
|
||
|
||
.tsc-row {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
height: 104rpx;
|
||
border-bottom: 1rpx solid #F3F4F6;
|
||
}
|
||
|
||
.tsc-row.no-border {
|
||
border-bottom: none;
|
||
}
|
||
|
||
.tsc-left {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 16rpx;
|
||
}
|
||
|
||
.tsc-icon-wrap {
|
||
width: 48rpx;
|
||
height: 48rpx;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
}
|
||
|
||
.tsc-img {
|
||
width: 44rpx;
|
||
height: 44rpx;
|
||
}
|
||
|
||
.tsc-title {
|
||
font-size: 30rpx;
|
||
font-weight: 600;
|
||
color: #1F2937;
|
||
}
|
||
|
||
.tsc-mode-info {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 12rpx;
|
||
}
|
||
|
||
.tsc-benefit-tag {
|
||
background: #FFF2E8;
|
||
border: 1rpx solid #FFA940;
|
||
color: #D4380D;
|
||
font-size: 20rpx;
|
||
font-weight: 600;
|
||
padding: 2rpx 12rpx;
|
||
border-radius: 6rpx;
|
||
line-height: 28rpx;
|
||
}
|
||
|
||
.tsc-btn {
|
||
padding: 10rpx 24rpx;
|
||
background: #F9FAFB;
|
||
border: 1rpx solid #E5E7EB;
|
||
border-radius: 30rpx;
|
||
}
|
||
|
||
.tsc-btn-txt {
|
||
font-size: 24rpx;
|
||
color: #4B5563;
|
||
}
|
||
|
||
.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: #1F2937;
|
||
}
|
||
|
||
.cpb-input-wrap {
|
||
display: flex;
|
||
align-items: center;
|
||
flex: 1;
|
||
background: #FFF7ED;
|
||
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: #1F2937;
|
||
flex: 1;
|
||
}
|
||
|
||
/* ---------- 商品卡片组 ---------- */
|
||
.group-list {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 24rpx;
|
||
}
|
||
|
||
.group-card {
|
||
background: #FFFFFF;
|
||
border-radius: 20rpx;
|
||
padding: 28rpx 24rpx;
|
||
}
|
||
|
||
.gc-head {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
margin-bottom: 24rpx;
|
||
}
|
||
|
||
.gc-title {
|
||
font-size: 32rpx;
|
||
font-weight: 700;
|
||
color: #1F2937;
|
||
}
|
||
|
||
.gc-meta {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 16rpx;
|
||
}
|
||
|
||
.gc-group-num {
|
||
font-size: 28rpx;
|
||
color: #6B7280;
|
||
}
|
||
|
||
.gc-trash-img {
|
||
width: 36rpx;
|
||
height: 36rpx;
|
||
}
|
||
|
||
/* 媒体上传并排虚线框 */
|
||
.media-upload-row {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 16rpx;
|
||
margin-bottom: 24rpx;
|
||
}
|
||
|
||
.dash-card {
|
||
flex: 1;
|
||
height: 160rpx;
|
||
border: 2rpx dashed #D1D5DB;
|
||
border-radius: 16rpx;
|
||
background: #FAFAFA;
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
justify-content: center;
|
||
gap: 6rpx;
|
||
}
|
||
|
||
.dash-card.pic-dash {
|
||
border-color: #F0710D;
|
||
background: #FFFBF7;
|
||
}
|
||
|
||
.dc-icon {
|
||
width: 44rpx;
|
||
height: 44rpx;
|
||
}
|
||
|
||
.dc-txt {
|
||
font-size: 24rpx;
|
||
font-weight: 600;
|
||
}
|
||
|
||
.dc-txt.orange {
|
||
color: #F0710D;
|
||
}
|
||
|
||
.dc-txt.gray {
|
||
color: #6B7280;
|
||
}
|
||
|
||
.dc-sub {
|
||
font-size: 20rpx;
|
||
}
|
||
|
||
.env-help-box {
|
||
width: 48rpx;
|
||
height: 48rpx;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
}
|
||
|
||
.eh-icon {
|
||
width: 36rpx;
|
||
height: 36rpx;
|
||
}
|
||
|
||
/* 媒体预览 */
|
||
.media-preview-area {
|
||
padding: 16rpx 0;
|
||
border-bottom: 1rpx solid #F3F4F6;
|
||
margin-bottom: 12rpx;
|
||
}
|
||
|
||
.mp-section {
|
||
margin-bottom: 12rpx;
|
||
}
|
||
|
||
.mp-tag {
|
||
font-size: 24rpx;
|
||
color: #6B7280;
|
||
margin-bottom: 8rpx;
|
||
display: block;
|
||
}
|
||
|
||
.mp-thumbs {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
gap: 16rpx;
|
||
}
|
||
|
||
.mp-thumb-item {
|
||
width: 130rpx;
|
||
height: 130rpx;
|
||
border-radius: 12rpx;
|
||
position: relative;
|
||
overflow: hidden;
|
||
}
|
||
|
||
.mp-img {
|
||
width: 100%;
|
||
height: 100%;
|
||
}
|
||
|
||
.mp-del-btn {
|
||
position: absolute;
|
||
top: 0;
|
||
right: 0;
|
||
background: rgba(0, 0, 0, 0.65);
|
||
color: #FFFFFF;
|
||
width: 36rpx;
|
||
height: 36rpx;
|
||
border-bottom-left-radius: 12rpx;
|
||
font-size: 24rpx;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
}
|
||
|
||
.mp-play-badge {
|
||
position: absolute;
|
||
top: 50%;
|
||
left: 50%;
|
||
transform: translate(-50%, -50%);
|
||
width: 44rpx;
|
||
height: 44rpx;
|
||
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: 104rpx;
|
||
border-bottom: 1rpx solid #F3F4F6;
|
||
padding: 10rpx 0;
|
||
}
|
||
|
||
.form-row.no-border {
|
||
border-bottom: none;
|
||
}
|
||
|
||
.fr-label {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 4rpx;
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.req-star {
|
||
color: #EF4444;
|
||
font-size: 30rpx;
|
||
font-weight: 700;
|
||
}
|
||
|
||
.label-txt {
|
||
font-size: 30rpx;
|
||
font-weight: 500;
|
||
color: #1F2937;
|
||
}
|
||
|
||
.label-txt.no-star {
|
||
padding-left: 12rpx;
|
||
}
|
||
|
||
.fr-value-box {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 12rpx;
|
||
flex: 1;
|
||
justify-content: flex-end;
|
||
}
|
||
|
||
.val-txt {
|
||
font-size: 28rpx;
|
||
color: #1F2937;
|
||
text-align: right;
|
||
max-width: 460rpx;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
}
|
||
|
||
.val-txt.placeholder {
|
||
color: #9CA3AF;
|
||
}
|
||
|
||
.val-txt.highlight {
|
||
color: #F0710D;
|
||
font-weight: 500;
|
||
}
|
||
|
||
.val-txt.highlight-dark {
|
||
color: #1F2937;
|
||
font-weight: 600;
|
||
}
|
||
|
||
.fr-arrow {
|
||
width: 32rpx;
|
||
height: 32rpx;
|
||
opacity: 0.6;
|
||
}
|
||
|
||
.fr-stepper {
|
||
display: flex;
|
||
align-items: center;
|
||
border: 1rpx solid #D1D5DB;
|
||
border-radius: 8rpx;
|
||
overflow: hidden;
|
||
}
|
||
|
||
.step-btn {
|
||
width: 64rpx;
|
||
height: 56rpx;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
font-size: 32rpx;
|
||
background: #FAFAFA;
|
||
color: #374151;
|
||
}
|
||
|
||
.step-num-box {
|
||
width: 72rpx;
|
||
height: 56rpx;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
font-size: 26rpx;
|
||
font-weight: 600;
|
||
border-left: 1rpx solid #E5E7EB;
|
||
border-right: 1rpx solid #E5E7EB;
|
||
background: #FFFFFF;
|
||
}
|
||
|
||
.fr-input {
|
||
font-size: 28rpx;
|
||
color: #1F2937;
|
||
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: #1F2937;
|
||
text-align: right;
|
||
}
|
||
|
||
.fr-char-count {
|
||
font-size: 24rpx;
|
||
color: #9CA3AF;
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.fr-input.right-align {
|
||
text-align: right;
|
||
}
|
||
|
||
/* ---------- 步骤 2:客户信息卡片 ---------- */
|
||
.paste-parse-card {
|
||
background: #FFFFFF;
|
||
border-radius: 20rpx;
|
||
padding: 24rpx;
|
||
margin-bottom: 24rpx;
|
||
}
|
||
|
||
.ppc-box {
|
||
background: #F9FAFB;
|
||
border-radius: 14rpx;
|
||
padding: 20rpx;
|
||
}
|
||
|
||
.ppc-textarea {
|
||
width: 100%;
|
||
height: 140rpx;
|
||
font-size: 26rpx;
|
||
line-height: 1.5;
|
||
color: #1F2937;
|
||
}
|
||
|
||
.ppc-btn-row {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: flex-end;
|
||
gap: 20rpx;
|
||
margin-top: 16rpx;
|
||
}
|
||
|
||
.ppc-clipboard-btn {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 6rpx;
|
||
padding: 10rpx 20rpx;
|
||
background: #FFFFFF;
|
||
border: 1rpx solid #D1D5DB;
|
||
border-radius: 30rpx;
|
||
}
|
||
|
||
.ppc-clip-icon {
|
||
width: 28rpx;
|
||
height: 28rpx;
|
||
}
|
||
|
||
.pcb-txt {
|
||
font-size: 24rpx;
|
||
color: #4B5563;
|
||
}
|
||
|
||
.ppc-action-btn {
|
||
padding: 12rpx 32rpx;
|
||
background: #F0710D;
|
||
border-radius: 30rpx;
|
||
}
|
||
|
||
.pab-txt {
|
||
font-size: 24rpx;
|
||
font-weight: 600;
|
||
color: #FFFFFF;
|
||
}
|
||
|
||
.customer-card {
|
||
background: #FFFFFF;
|
||
border-radius: 20rpx;
|
||
padding: 0 24rpx;
|
||
margin-bottom: 24rpx;
|
||
}
|
||
|
||
.sub-row {
|
||
min-height: 70rpx;
|
||
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 #D1D5DB;
|
||
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: 26rpx;
|
||
color: #4B5563;
|
||
}
|
||
|
||
.sub-info-icon {
|
||
width: 28rpx;
|
||
height: 28rpx;
|
||
}
|
||
|
||
.sub-hint-txt {
|
||
font-size: 22rpx;
|
||
color: #9CA3AF;
|
||
}
|
||
|
||
.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;
|
||
padding-left: 20rpx;
|
||
}
|
||
|
||
.mch-txt {
|
||
font-size: 24rpx;
|
||
color: #6B7280;
|
||
}
|
||
|
||
.mch-num {
|
||
font-size: 26rpx;
|
||
font-weight: 700;
|
||
color: #F0710D;
|
||
}
|
||
|
||
.elevator-radios {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 28rpx;
|
||
}
|
||
|
||
.el-radio {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 10rpx;
|
||
}
|
||
|
||
.rd-dot {
|
||
width: 28rpx;
|
||
height: 28rpx;
|
||
border-radius: 50%;
|
||
border: 6rpx solid #F0710D;
|
||
background: #FFFFFF;
|
||
box-sizing: border-box;
|
||
}
|
||
|
||
.el-radio:not(.on) .rd-dot {
|
||
border: 2rpx solid #D1D5DB;
|
||
}
|
||
|
||
.rd-txt {
|
||
font-size: 28rpx;
|
||
color: #1F2937;
|
||
}
|
||
|
||
.flex-col-start {
|
||
flex-direction: column;
|
||
align-items: stretch;
|
||
padding: 20rpx 0;
|
||
}
|
||
|
||
.remark-head-row {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
margin-bottom: 12rpx;
|
||
}
|
||
|
||
.tpl-btn {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 6rpx;
|
||
}
|
||
|
||
.tpl-txt {
|
||
font-size: 24rpx;
|
||
color: #F0710D;
|
||
}
|
||
|
||
.tpl-arrow {
|
||
width: 24rpx;
|
||
height: 24rpx;
|
||
opacity: 0.6;
|
||
}
|
||
|
||
.remark-input-box {
|
||
background: #F9FAFB;
|
||
border-radius: 12rpx;
|
||
padding: 16rpx 20rpx;
|
||
}
|
||
|
||
.remark-input {
|
||
font-size: 26rpx;
|
||
color: #1F2937;
|
||
width: 100%;
|
||
}
|
||
|
||
.goods-arrived-pills {
|
||
display: flex;
|
||
align-items: center;
|
||
border: 1rpx solid #D1D5DB;
|
||
border-radius: 8rpx;
|
||
overflow: hidden;
|
||
}
|
||
|
||
.arrived-pill {
|
||
padding: 10rpx 24rpx;
|
||
font-size: 26rpx;
|
||
color: #4B5563;
|
||
background: #FAFAFA;
|
||
}
|
||
|
||
.arrived-pill.active {
|
||
background: #FFF7ED;
|
||
color: #F0710D;
|
||
font-weight: 600;
|
||
}
|
||
|
||
/* ---------- 步骤 3:确认订单卡片 ---------- */
|
||
.confirm-addr-card {
|
||
background: #FFFFFF;
|
||
border-radius: 20rpx;
|
||
padding: 28rpx 24rpx;
|
||
margin-bottom: 24rpx;
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 20rpx;
|
||
}
|
||
|
||
.cac-icon-wrap {
|
||
width: 52rpx;
|
||
height: 52rpx;
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.cac-pin-icon {
|
||
width: 52rpx;
|
||
height: 52rpx;
|
||
}
|
||
|
||
.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: 32rpx;
|
||
font-weight: 700;
|
||
color: #1F2937;
|
||
}
|
||
|
||
.cac-mobile {
|
||
font-size: 28rpx;
|
||
color: #4B5563;
|
||
}
|
||
|
||
.cac-full-addr {
|
||
font-size: 26rpx;
|
||
color: #6B7280;
|
||
line-height: 1.4;
|
||
}
|
||
|
||
.cac-edit-btn {
|
||
padding: 8rpx 20rpx;
|
||
border: 1rpx solid #E5E7EB;
|
||
border-radius: 24rpx;
|
||
}
|
||
|
||
.ceb-txt {
|
||
font-size: 24rpx;
|
||
color: #4B5563;
|
||
}
|
||
|
||
.confirm-goods-card {
|
||
background: #FFFFFF;
|
||
border-radius: 20rpx;
|
||
padding: 10rpx 24rpx;
|
||
margin-bottom: 24rpx;
|
||
}
|
||
|
||
.cgc-item {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 20rpx;
|
||
padding: 24rpx 0;
|
||
border-bottom: 1rpx solid #F3F4F6;
|
||
}
|
||
|
||
.cgc-item:last-child {
|
||
border-bottom: none;
|
||
}
|
||
|
||
.cgc-thumb-wrap {
|
||
width: 140rpx;
|
||
height: 140rpx;
|
||
border-radius: 12rpx;
|
||
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;
|
||
gap: 12rpx;
|
||
}
|
||
|
||
.cgc-top-row {
|
||
display: flex;
|
||
align-items: flex-start;
|
||
justify-content: space-between;
|
||
gap: 16rpx;
|
||
}
|
||
|
||
.cgc-name {
|
||
font-size: 30rpx;
|
||
font-weight: 600;
|
||
color: #1F2937;
|
||
flex: 1;
|
||
}
|
||
|
||
.cgc-price {
|
||
font-size: 32rpx;
|
||
font-weight: 700;
|
||
color: #1F2937;
|
||
}
|
||
|
||
.cgc-services-row {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 12rpx;
|
||
}
|
||
|
||
.cgc-service-tag {
|
||
font-size: 22rpx;
|
||
color: #4B5563;
|
||
background: #F3F4F6;
|
||
padding: 4rpx 14rpx;
|
||
border-radius: 6rpx;
|
||
}
|
||
|
||
.cgc-addon-tag {
|
||
font-size: 22rpx;
|
||
color: #F0710D;
|
||
background: #FFF7ED;
|
||
padding: 4rpx 14rpx;
|
||
border-radius: 6rpx;
|
||
}
|
||
|
||
.confirm-extra-card {
|
||
background: #FFFFFF;
|
||
border-radius: 20rpx;
|
||
padding: 24rpx;
|
||
margin-bottom: 24rpx;
|
||
}
|
||
|
||
.cec-head {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 12rpx;
|
||
margin-bottom: 16rpx;
|
||
}
|
||
|
||
.cec-title {
|
||
font-size: 30rpx;
|
||
font-weight: 700;
|
||
color: #1F2937;
|
||
}
|
||
|
||
.cec-info-icon {
|
||
width: 32rpx;
|
||
height: 32rpx;
|
||
}
|
||
|
||
.cec-row {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
}
|
||
|
||
.cec-label {
|
||
font-size: 28rpx;
|
||
color: #374151;
|
||
}
|
||
|
||
.confirm-fee-card {
|
||
background: #FFFFFF;
|
||
border-radius: 20rpx;
|
||
padding: 24rpx;
|
||
margin-bottom: 24rpx;
|
||
}
|
||
|
||
.cfc-row {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
padding: 16rpx 0;
|
||
}
|
||
|
||
.cfc-label {
|
||
font-size: 28rpx;
|
||
color: #4B5563;
|
||
}
|
||
|
||
.cfc-val {
|
||
font-size: 30rpx;
|
||
font-weight: 600;
|
||
color: #1F2937;
|
||
}
|
||
|
||
.cfc-coupon-left {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 10rpx;
|
||
}
|
||
|
||
.cfc-coupon-icon {
|
||
width: 32rpx;
|
||
height: 32rpx;
|
||
}
|
||
|
||
.cfc-coupon-right {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 8rpx;
|
||
}
|
||
|
||
.cfc-discount-val {
|
||
font-size: 30rpx;
|
||
font-weight: 600;
|
||
color: #DC2626;
|
||
}
|
||
|
||
.cfc-arrow {
|
||
width: 28rpx;
|
||
height: 28rpx;
|
||
opacity: 0.5;
|
||
}
|
||
|
||
.cfc-total-line {
|
||
border-top: 1rpx dashed #E5E7EB;
|
||
margin-top: 16rpx;
|
||
padding-top: 24rpx;
|
||
display: flex;
|
||
align-items: baseline;
|
||
justify-content: flex-end;
|
||
gap: 8rpx;
|
||
}
|
||
|
||
.total-tag {
|
||
font-size: 28rpx;
|
||
color: #4B5563;
|
||
}
|
||
|
||
.total-price {
|
||
font-size: 40rpx;
|
||
font-weight: 700;
|
||
color: #F0710D;
|
||
}
|
||
|
||
.cfc-notice-box {
|
||
background: #FFF7ED;
|
||
border-radius: 12rpx;
|
||
padding: 16rpx;
|
||
margin-top: 20rpx;
|
||
}
|
||
|
||
.cnb-txt {
|
||
font-size: 22rpx;
|
||
color: #D97706;
|
||
line-height: 1.5;
|
||
}
|
||
|
||
.confirm-guarantee-card {
|
||
background: #FFFFFF;
|
||
border-radius: 20rpx;
|
||
padding: 24rpx;
|
||
margin-bottom: 24rpx;
|
||
}
|
||
|
||
.cgc-check-row {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 16rpx;
|
||
margin-bottom: 12rpx;
|
||
}
|
||
|
||
.guarantee-checkbox {
|
||
width: 36rpx;
|
||
height: 36rpx;
|
||
border-radius: 8rpx;
|
||
border: 2rpx solid #D1D5DB;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
}
|
||
|
||
.guarantee-checkbox.on {
|
||
background: #F0710D;
|
||
border-color: #F0710D;
|
||
}
|
||
|
||
.gc-icon {
|
||
width: 24rpx;
|
||
height: 24rpx;
|
||
}
|
||
|
||
.cgc-check-label {
|
||
font-size: 28rpx;
|
||
font-weight: 600;
|
||
color: #1F2937;
|
||
}
|
||
|
||
.cgc-sub-hint {
|
||
font-size: 22rpx;
|
||
color: #6B7280;
|
||
line-height: 1.5;
|
||
padding-left: 52rpx;
|
||
}
|
||
|
||
/* ---------- 吸底栏统一样式 ---------- */
|
||
/* 步骤 1 吸底栏 */
|
||
.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-floating-notice {
|
||
background: linear-gradient(90deg, #FF7A00 0%, #FF9500 100%);
|
||
padding: 14rpx 28rpx;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
}
|
||
|
||
.sfn-txt {
|
||
font-size: 24rpx;
|
||
color: #FFFFFF;
|
||
}
|
||
|
||
.sfn-arrow {
|
||
width: 24rpx;
|
||
height: 24rpx;
|
||
}
|
||
|
||
.step1-action-row {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
padding: 20rpx 24rpx;
|
||
}
|
||
|
||
.step1-group-count-bar {
|
||
display: flex;
|
||
justify-content: flex-end;
|
||
padding: 16rpx 28rpx 0;
|
||
}
|
||
|
||
.sgc-txt {
|
||
font-size: 24rpx;
|
||
color: #4B5563;
|
||
font-weight: 500;
|
||
}
|
||
|
||
.quote-action-row {
|
||
padding-top: 12rpx;
|
||
}
|
||
|
||
.quote-btns-full {
|
||
width: 100% !important;
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 20rpx;
|
||
}
|
||
|
||
.quote-btns-full .btn-add-more {
|
||
flex: 1;
|
||
border-radius: 12rpx;
|
||
}
|
||
|
||
.quote-btns-full .btn-step-next {
|
||
flex: 1;
|
||
border-radius: 12rpx;
|
||
}
|
||
|
||
.step1-summary {
|
||
display: flex;
|
||
align-items: baseline;
|
||
gap: 6rpx;
|
||
}
|
||
|
||
.s1-count {
|
||
font-size: 24rpx;
|
||
color: #4B5563;
|
||
}
|
||
|
||
.s1-coupon-tag {
|
||
background: #EF4444;
|
||
color: #FFFFFF;
|
||
font-size: 20rpx;
|
||
padding: 2rpx 6rpx;
|
||
border-radius: 4rpx;
|
||
font-weight: 600;
|
||
}
|
||
|
||
.s1-price {
|
||
font-size: 38rpx;
|
||
font-weight: 700;
|
||
color: #F0710D;
|
||
}
|
||
|
||
.step1-btns {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 16rpx;
|
||
}
|
||
|
||
.btn-add-more {
|
||
height: 80rpx;
|
||
padding: 0 32rpx;
|
||
border: 2rpx solid #FFA033;
|
||
background: #FFFFFF;
|
||
border-radius: 12rpx;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
}
|
||
|
||
.bam-txt {
|
||
font-size: 28rpx;
|
||
font-weight: 600;
|
||
color: #F0710D;
|
||
}
|
||
|
||
.btn-step-next {
|
||
height: 80rpx;
|
||
padding: 0 52rpx;
|
||
background: #F0710D;
|
||
border-radius: 12rpx;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
}
|
||
|
||
.bsn-txt {
|
||
font-size: 28rpx;
|
||
font-weight: 600;
|
||
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: 20rpx 24rpx calc(20rpx + env(safe-area-inset-bottom));
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 20rpx;
|
||
}
|
||
|
||
.btn-step-back {
|
||
flex: 1;
|
||
height: 84rpx;
|
||
border: 2rpx solid #D5D5D5;
|
||
background: #FFFFFF;
|
||
border-radius: 12rpx;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
}
|
||
|
||
.bsb-txt {
|
||
font-size: 28rpx;
|
||
color: #4B5563;
|
||
font-weight: 600;
|
||
}
|
||
|
||
.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: 28rpx;
|
||
font-weight: 600;
|
||
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: 20rpx 24rpx calc(20rpx + 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: 26rpx;
|
||
color: #4B5563;
|
||
}
|
||
|
||
.s3-price {
|
||
font-size: 40rpx;
|
||
font-weight: 700;
|
||
color: #F0710D;
|
||
}
|
||
|
||
.s3-sub {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 12rpx;
|
||
}
|
||
|
||
.s3-origin {
|
||
font-size: 22rpx;
|
||
color: #9CA3AF;
|
||
text-decoration: line-through;
|
||
}
|
||
|
||
.s3-discount {
|
||
font-size: 22rpx;
|
||
color: #DC2626;
|
||
}
|
||
|
||
.btn-publish-order {
|
||
height: 88rpx;
|
||
padding: 0 60rpx;
|
||
background: #F0710D;
|
||
border-radius: 12rpx;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
}
|
||
|
||
.btn-publish-order.disabled {
|
||
opacity: 0.6;
|
||
}
|
||
|
||
.bpo-txt {
|
||
font-size: 32rpx;
|
||
font-weight: 700;
|
||
color: #FFFFFF;
|
||
letter-spacing: 2rpx;
|
||
}
|
||
|
||
.clickable-hover:active {
|
||
opacity: 0.85;
|
||
}
|
||
</style>
|