feat: 完善对象存储上传与真实条码二维码引擎,彻底剥离保底Mock数据
这个提交包含在:
@@ -92,125 +92,330 @@
|
||||
<view class="input-row" v-if="form.payType === 'AA'">
|
||||
<text class="row-label">人均分摊 (元/人)</text>
|
||||
<input
|
||||
class="row-input"
|
||||
class="row-input price-input"
|
||||
type="digit"
|
||||
v-model="form.aaFee"
|
||||
placeholder="如:50"
|
||||
placeholder-class="ph"
|
||||
placeholder-class="price-ph"
|
||||
/>
|
||||
</view>
|
||||
|
||||
<view class="input-row" v-else>
|
||||
<text class="row-label">房主买单预算 (元)</text>
|
||||
<input
|
||||
class="row-input"
|
||||
type="digit"
|
||||
v-model="form.totalFee"
|
||||
placeholder="如:500"
|
||||
placeholder-class="ph"
|
||||
/>
|
||||
<view v-else>
|
||||
<!-- 房主请客 / 悬赏组队 出价模式切换 -->
|
||||
<view class="pricing-mode-row">
|
||||
<text class="row-label">出价方式</text>
|
||||
<view class="pricing-mode-group">
|
||||
<view
|
||||
class="pricing-mode-btn"
|
||||
:class="{ active: form.pricingMode === 'PER_PERSON' }"
|
||||
@click="form.pricingMode = 'PER_PERSON'"
|
||||
>
|
||||
按人出价
|
||||
</view>
|
||||
<view
|
||||
class="pricing-mode-btn"
|
||||
:class="{ active: form.pricingMode === 'TOTAL' }"
|
||||
@click="form.pricingMode = 'TOTAL'"
|
||||
>
|
||||
包场总预算
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="input-row" v-if="form.pricingMode === 'PER_PERSON'">
|
||||
<text class="row-label">单人出价 (元/人)</text>
|
||||
<input
|
||||
class="row-input price-input"
|
||||
type="digit"
|
||||
v-model="form.perPersonFee"
|
||||
placeholder="如:500"
|
||||
placeholder-class="price-ph"
|
||||
/>
|
||||
</view>
|
||||
|
||||
<!-- 常用赏金快捷选项 (按人出价) -->
|
||||
<view class="preset-price-row" v-if="form.pricingMode === 'PER_PERSON'">
|
||||
<text class="preset-label">快捷赏金:</text>
|
||||
<view class="preset-chips">
|
||||
<view
|
||||
v-for="amt in [200, 300, 500, 800, 1000]"
|
||||
:key="amt"
|
||||
class="preset-chip btn-active"
|
||||
:class="{ selected: Number(form.perPersonFee) === amt }"
|
||||
@click="form.perPersonFee = amt"
|
||||
>
|
||||
¥{{ amt }}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="input-row" v-else>
|
||||
<text class="row-label">房主买单总预算 (元)</text>
|
||||
<input
|
||||
class="row-input price-input"
|
||||
type="digit"
|
||||
v-model="form.totalFee"
|
||||
placeholder="如:2000"
|
||||
placeholder-class="price-ph"
|
||||
/>
|
||||
</view>
|
||||
|
||||
<!-- 常用总预算快捷选项 (包场总预算) -->
|
||||
<view class="preset-price-row" v-if="form.pricingMode === 'TOTAL'">
|
||||
<text class="preset-label">快捷预算:</text>
|
||||
<view class="preset-chips">
|
||||
<view
|
||||
v-for="amt in [500, 1000, 2000, 3000, 5000]"
|
||||
:key="amt"
|
||||
class="preset-chip btn-active"
|
||||
:class="{ selected: Number(form.totalFee) === amt }"
|
||||
@click="form.totalFee = amt"
|
||||
>
|
||||
¥{{ amt }}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="calc-preview">
|
||||
<text class="preview-label">预算测算:</text>
|
||||
<text class="preview-val highlight">
|
||||
{{ form.payType === 'AA' ? `总费用预估约 ¥${calcTotalFee} (人均 ¥${form.aaFee || 0})` : `参与者免费报名,房主请客全包约 ¥${form.totalFee || 0}` }}
|
||||
{{
|
||||
form.payType === 'AA'
|
||||
? `总费用预估约 ¥${calcTotalFee} (人均 ¥${form.aaFee || 0})`
|
||||
: form.pricingMode === 'PER_PERSON'
|
||||
? `单人出价 ¥${form.perPersonFee || 0} × 招募${form.maxParticipants}人 = 预估总额 ¥${calcTotalFee} (发单后可随时追加金额)`
|
||||
: `房主全额买单请客,总预算约 ¥${form.totalFee || 0} (发单后可随时追加预算)`
|
||||
}}
|
||||
</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 房主调价与追加金额设置 (随时灵活追加) -->
|
||||
<view class="form-card dynamic-price-card" v-if="form.payType === 'PROJECT'">
|
||||
<view class="card-header-switch">
|
||||
<view class="switch-title-box">
|
||||
<text class="form-title">灵活调价与追加金额设置</text>
|
||||
<text class="sub-label">组局进行中允许房主随时追加金额、加赏加急或修改单价</text>
|
||||
</view>
|
||||
<switch
|
||||
:checked="form.allowDynamicPrice"
|
||||
@change="form.allowDynamicPrice = $event.detail.value"
|
||||
color="#6366F1"
|
||||
/>
|
||||
</view>
|
||||
|
||||
<view class="dynamic-config-body" v-if="form.allowDynamicPrice">
|
||||
<text class="config-sec-title">追加金额/改价补差规则</text>
|
||||
<view class="rule-cards">
|
||||
<view
|
||||
class="rule-card"
|
||||
:class="{ active: form.priceAdjustRule === 'UNIFIED_HIGH' }"
|
||||
@click="form.priceAdjustRule = 'UNIFIED_HIGH'"
|
||||
>
|
||||
<view class="rule-card-header">
|
||||
<text class="rule-name">全员同享追加新高价</text>
|
||||
<text class="rule-tag recommend">推荐</text>
|
||||
</view>
|
||||
<text class="rule-desc">
|
||||
房主追加金额提价时(如从 500元/人 追加提高到 800元/人),已报名的成员自动同步补齐 300元 差额。先行者不吃亏,大幅提升组队热度。
|
||||
</text>
|
||||
</view>
|
||||
|
||||
<view
|
||||
class="rule-card"
|
||||
:class="{ active: form.priceAdjustRule === 'TIERED' }"
|
||||
@click="form.priceAdjustRule = 'TIERED'"
|
||||
>
|
||||
<view class="rule-card-header">
|
||||
<text class="rule-name">阶梯差价招募</text>
|
||||
</view>
|
||||
<text class="rule-desc">
|
||||
追加金额仅对后续新加入的成员生效。已报名的老成员按其报名时的出价结算,互不影响。
|
||||
</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 调价场景与降价提示说明 -->
|
||||
<view class="scenario-notice">
|
||||
<text class="notice-title">灵活追加金额说明:</text>
|
||||
<text class="notice-item">• 随时追加金额:如原定 500元/人 招募4人,已有2人报名;房主在活动页可随时点击【追加金额】,选择按人追加(如每人追加 +¥300)或整局追加预算,系统自动完成老成员差额补偿与看板刷新。</text>
|
||||
<text class="notice-item">• 降价调整保护:若房主手动调低单价,已报名的 2 人仍按原价受协议保护,新报名单人出价生效。</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 底部发起操作栏 (适配安全区) -->
|
||||
<view class="bottom-bar">
|
||||
<button class="btn-submit btn-active" @click="handleSubmit">
|
||||
立即发起同城组局
|
||||
</button>
|
||||
</view>
|
||||
|
||||
<!-- 敏感商圈智能风控友好预检弹窗 (P1安全风控) -->
|
||||
<view class="risk-modal-mask" v-if="riskModalVisible" @click.self="riskModalVisible = false">
|
||||
<view class="risk-modal-box">
|
||||
<view class="risk-modal-header">
|
||||
<image class="risk-shield-icon" :src="ICONS.shield" mode="aspectFit" />
|
||||
<text class="risk-title">同城线下组局安全风控提示</text>
|
||||
</view>
|
||||
<view class="risk-body">
|
||||
<text class="risk-desc">
|
||||
平台严格保障人身安全,严禁将私人住宅、酒店客房、封闭公寓等非公开场所作为履约地点。
|
||||
</text>
|
||||
<text class="risk-sub-tip">请选择以下平台认证的示范公开商圈:</text>
|
||||
<view class="recommend-zones">
|
||||
<view
|
||||
v-for="zone in recommendPublicZones"
|
||||
:key="zone"
|
||||
class="zone-chip btn-active"
|
||||
@click="applyRecommendZone(zone)"
|
||||
>
|
||||
<image class="zone-pin-icon" :src="ICONS.mapPin" mode="aspectFit" />
|
||||
<text class="zone-text">{{ zone }}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="risk-footer">
|
||||
<button class="risk-cancel-btn btn-active" @click="riskModalVisible = false">修改地点</button>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { ref, computed, onMounted, onUnmounted } from 'vue';
|
||||
import { onShow } from '@dcloudio/uni-app';
|
||||
import { ICONS } from '@/common/icons.js';
|
||||
import { ACTIVITIES_LIST } from '@/common/mock.js';
|
||||
import { getCurrentThemeKey } from '@/common/theme.js';
|
||||
import { createActivity } from '@/common/api.js';
|
||||
import { getCurrentThemeKey, applyThemeToNativeUI } from '@/common/theme.js';
|
||||
|
||||
const games = ['美食陪吃', '同城陪唱', '下午茶陪喝', '同城微醺', '同城桌游', '热门电竞'];
|
||||
const currentThemeKey = ref(getCurrentThemeKey());
|
||||
|
||||
const onThemeChanged = (key) => {
|
||||
currentThemeKey.value = key;
|
||||
applyThemeToNativeUI(key);
|
||||
};
|
||||
|
||||
onMounted(() => {
|
||||
currentThemeKey.value = getCurrentThemeKey();
|
||||
applyThemeToNativeUI(currentThemeKey.value);
|
||||
uni.$on('theme-change', onThemeChanged);
|
||||
});
|
||||
|
||||
onShow(() => {
|
||||
currentThemeKey.value = getCurrentThemeKey();
|
||||
applyThemeToNativeUI(currentThemeKey.value);
|
||||
});
|
||||
|
||||
onUnmounted(() => {
|
||||
uni.$off('theme-change', onThemeChanged);
|
||||
});
|
||||
|
||||
const form = ref({
|
||||
payType: 'AA',
|
||||
payType: 'PROJECT',
|
||||
game: '美食陪吃',
|
||||
title: '',
|
||||
startTime: '周六 18:30',
|
||||
location: '北京市朝阳区三里屯商圈',
|
||||
maxParticipants: 4,
|
||||
aaFee: 50,
|
||||
totalFee: 200,
|
||||
pricingMode: 'PER_PERSON',
|
||||
perPersonFee: 500,
|
||||
totalFee: 2000,
|
||||
allowDynamicPrice: true,
|
||||
priceAdjustRule: 'UNIFIED_HIGH',
|
||||
});
|
||||
|
||||
const calcTotalFee = computed(() => {
|
||||
if (form.value.payType === 'AA') {
|
||||
return (Number(form.value.aaFee) || 0) * form.value.maxParticipants;
|
||||
}
|
||||
if (form.value.pricingMode === 'PER_PERSON') {
|
||||
return (Number(form.value.perPersonFee) || 0) * form.value.maxParticipants;
|
||||
}
|
||||
return Number(form.value.totalFee) || 0;
|
||||
});
|
||||
|
||||
const riskModalVisible = ref(false);
|
||||
const recommendPublicZones = [
|
||||
'北京市朝阳区三里屯太古里 (AAA公开商圈)',
|
||||
'北京市朝阳区工体纯K量贩KTV (正规量贩)',
|
||||
'北京市朝阳区国贸CBD商业街 (阳光示范商圈)',
|
||||
'北京市海淀区五道口购物中心 (高校商圈)'
|
||||
];
|
||||
|
||||
const applyRecommendZone = (zone) => {
|
||||
form.value.location = zone;
|
||||
riskModalVisible.value = false;
|
||||
uni.showToast({
|
||||
title: '已选定合规商圈,请继续发起',
|
||||
icon: 'none',
|
||||
duration: 1500
|
||||
});
|
||||
};
|
||||
|
||||
const changeParticipants = (delta) => {
|
||||
form.value.maxParticipants = Math.max(2, Math.min(10, form.value.maxParticipants + delta));
|
||||
};
|
||||
|
||||
const handleSubmit = () => {
|
||||
const handleSubmit = async () => {
|
||||
// P1 敏感商圈安全风控友好预检拦截
|
||||
const sensitivePattern = /(酒店|客房|宾馆|民宿|旅馆|公寓|小区|住宅|私密|住宅区|私人房|卧室)/;
|
||||
if (sensitivePattern.test(form.value.location)) {
|
||||
riskModalVisible.value = true;
|
||||
return;
|
||||
}
|
||||
|
||||
if (!form.value.title.trim()) {
|
||||
form.value.title = `【${form.value.game}】同城聚会组局`;
|
||||
}
|
||||
|
||||
const newActivity = {
|
||||
id: `act_${Date.now()}`,
|
||||
const isProject = form.value.payType === 'PROJECT';
|
||||
const perPerson = isProject && form.value.pricingMode === 'PER_PERSON' ? (Number(form.value.perPersonFee) || 0) : 0;
|
||||
|
||||
const newActivityPayload = {
|
||||
creatorId: 1001,
|
||||
game: form.value.game,
|
||||
title: form.value.title,
|
||||
payType: form.value.payType,
|
||||
pricingMode: isProject ? form.value.pricingMode : 'AA',
|
||||
perPersonFee: perPerson,
|
||||
allowDynamicPrice: isProject ? form.value.allowDynamicPrice : false,
|
||||
priceAdjustRule: form.value.priceAdjustRule,
|
||||
totalFee: calcTotalFee.value,
|
||||
aaFee: Number(form.value.aaFee) || 0,
|
||||
currentParticipants: 1,
|
||||
maxParticipants: form.value.maxParticipants,
|
||||
startTime: form.value.startTime,
|
||||
location: form.value.location,
|
||||
creatorNickname: '同城局长',
|
||||
creatorAvatar: 'https://images.unsplash.com/photo-1535713875002-d1d0cf377fde?w=150&h=150&fit=crop',
|
||||
participants: [
|
||||
{
|
||||
id: 'u_888',
|
||||
nickname: '同城局长',
|
||||
avatar: 'https://images.unsplash.com/photo-1535713875002-d1d0cf377fde?w=150&h=150&fit=crop',
|
||||
checkedIn: true
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
ACTIVITIES_LIST.unshift(newActivity);
|
||||
uni.showLoading({ title: '正在发布组局...' });
|
||||
|
||||
uni.showToast({
|
||||
title: '组局发起成功!等待好友加入',
|
||||
icon: 'success',
|
||||
duration: 1500
|
||||
});
|
||||
|
||||
setTimeout(() => {
|
||||
uni.navigateBack();
|
||||
}, 1200);
|
||||
try {
|
||||
await createActivity(newActivityPayload);
|
||||
uni.hideLoading();
|
||||
uni.showToast({
|
||||
title: '组局发起成功!等待好友加入',
|
||||
icon: 'success',
|
||||
duration: 1500
|
||||
});
|
||||
setTimeout(() => {
|
||||
uni.switchTab({
|
||||
url: '/pages/activity/list'
|
||||
});
|
||||
}, 1200);
|
||||
} catch (err) {
|
||||
uni.hideLoading();
|
||||
uni.showToast({
|
||||
title: err.message || '发布异常,请重试',
|
||||
icon: 'none'
|
||||
});
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
@@ -319,17 +524,39 @@ const handleSubmit = () => {
|
||||
width: 220rpx;
|
||||
font-size: 26rpx;
|
||||
color: #CBD5E1;
|
||||
height: 48rpx;
|
||||
line-height: 48rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.row-input {
|
||||
flex: 1;
|
||||
font-size: 26rpx;
|
||||
color: #F8FAFC;
|
||||
height: 48rpx;
|
||||
line-height: 48rpx;
|
||||
box-sizing: border-box;
|
||||
|
||||
&.price-input {
|
||||
font-size: 34rpx;
|
||||
font-weight: 700;
|
||||
color: #F8FAFC;
|
||||
letter-spacing: 0.5px;
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
}
|
||||
|
||||
.ph {
|
||||
color: #475569;
|
||||
}
|
||||
|
||||
.price-ph {
|
||||
font-size: 26rpx;
|
||||
font-weight: normal;
|
||||
color: #475569;
|
||||
}
|
||||
}
|
||||
|
||||
.stepper-row {
|
||||
@@ -404,6 +631,182 @@ const handleSubmit = () => {
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
}
|
||||
|
||||
.pricing-mode-row {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 20rpx 0;
|
||||
border-bottom: 1px solid rgba(255, 255, 255, 0.04);
|
||||
|
||||
.pricing-mode-group {
|
||||
display: flex;
|
||||
gap: 12rpx;
|
||||
|
||||
.pricing-mode-btn {
|
||||
font-size: 22rpx;
|
||||
padding: 8rpx 22rpx;
|
||||
border-radius: 20rpx;
|
||||
background: rgba(255, 255, 255, 0.05);
|
||||
color: #94A3B8;
|
||||
border: 1px solid rgba(255, 255, 255, 0.08);
|
||||
|
||||
&.active {
|
||||
background: rgba(99, 102, 241, 0.2);
|
||||
color: #818CF8;
|
||||
border-color: #6366F1;
|
||||
font-weight: 600;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.preset-price-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 14rpx 0;
|
||||
border-bottom: 1px solid rgba(255, 255, 255, 0.04);
|
||||
|
||||
.preset-label {
|
||||
font-size: 20rpx;
|
||||
color: #94A3B8;
|
||||
width: 140rpx;
|
||||
}
|
||||
|
||||
.preset-chips {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 12rpx;
|
||||
|
||||
.preset-chip {
|
||||
font-size: 22rpx;
|
||||
padding: 6rpx 18rpx;
|
||||
border-radius: 12rpx;
|
||||
background: rgba(255, 255, 255, 0.04);
|
||||
border: 1px solid rgba(255, 255, 255, 0.08);
|
||||
color: #CBD5E1;
|
||||
|
||||
&.selected {
|
||||
background: rgba(99, 102, 241, 0.2);
|
||||
border-color: #6366F1;
|
||||
color: #818CF8;
|
||||
font-weight: 600;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
&.dynamic-price-card {
|
||||
.card-header-switch {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
|
||||
.switch-title-box {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
|
||||
.form-title {
|
||||
font-size: 28rpx;
|
||||
font-weight: 700;
|
||||
color: #F8FAFC;
|
||||
}
|
||||
.sub-label {
|
||||
font-size: 20rpx;
|
||||
color: #64748B;
|
||||
margin-top: 4rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.dynamic-config-body {
|
||||
margin-top: 24rpx;
|
||||
padding-top: 20rpx;
|
||||
border-top: 1px solid rgba(255, 255, 255, 0.04);
|
||||
|
||||
.config-sec-title {
|
||||
font-size: 22rpx;
|
||||
font-weight: 600;
|
||||
color: #94A3B8;
|
||||
display: block;
|
||||
margin-bottom: 14rpx;
|
||||
}
|
||||
|
||||
.rule-cards {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 14rpx;
|
||||
|
||||
.rule-card {
|
||||
background: rgba(255, 255, 255, 0.03);
|
||||
border: 1px solid rgba(255, 255, 255, 0.06);
|
||||
border-radius: 16rpx;
|
||||
padding: 18rpx 20rpx;
|
||||
|
||||
&.active {
|
||||
background: rgba(99, 102, 241, 0.12);
|
||||
border-color: #6366F1;
|
||||
}
|
||||
|
||||
.rule-card-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12rpx;
|
||||
margin-bottom: 8rpx;
|
||||
|
||||
.rule-name {
|
||||
font-size: 26rpx;
|
||||
font-weight: 700;
|
||||
color: #F8FAFC;
|
||||
}
|
||||
|
||||
.rule-tag {
|
||||
font-size: 18rpx;
|
||||
padding: 2rpx 10rpx;
|
||||
border-radius: 6rpx;
|
||||
|
||||
&.recommend {
|
||||
background: rgba(16, 185, 129, 0.2);
|
||||
color: #10B981;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.rule-desc {
|
||||
font-size: 20rpx;
|
||||
color: #94A3B8;
|
||||
line-height: 1.45;
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.scenario-notice {
|
||||
margin-top: 20rpx;
|
||||
padding: 16rpx 20rpx;
|
||||
background: rgba(99, 102, 241, 0.08);
|
||||
border: 1px dashed rgba(99, 102, 241, 0.3);
|
||||
border-radius: 14rpx;
|
||||
|
||||
.notice-title {
|
||||
font-size: 22rpx;
|
||||
font-weight: 700;
|
||||
color: #818CF8;
|
||||
display: block;
|
||||
margin-bottom: 6rpx;
|
||||
}
|
||||
|
||||
.notice-item {
|
||||
font-size: 20rpx;
|
||||
color: #94A3B8;
|
||||
line-height: 1.5;
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.bottom-bar {
|
||||
@@ -466,6 +869,59 @@ const handleSubmit = () => {
|
||||
border-color: #F0ECE4;
|
||||
box-shadow: 0 4rpx 20rpx rgba(28, 25, 23, 0.05);
|
||||
|
||||
.card-label {
|
||||
color: #1C1917;
|
||||
}
|
||||
|
||||
.game-pills .game-pill {
|
||||
background: #F8F5F0;
|
||||
border-color: #E7E5E4;
|
||||
color: #78716C;
|
||||
|
||||
&.selected {
|
||||
background: rgba(234, 88, 12, 0.1);
|
||||
border-color: #EA580C;
|
||||
color: #EA580C;
|
||||
font-weight: 700;
|
||||
}
|
||||
}
|
||||
|
||||
.stepper-row {
|
||||
border-bottom-color: #F5F2EC;
|
||||
|
||||
.stepper-info {
|
||||
.row-label {
|
||||
color: #1C1917;
|
||||
}
|
||||
.sub-label {
|
||||
color: #78716C;
|
||||
}
|
||||
}
|
||||
|
||||
.stepper-box {
|
||||
background: #F8F5F0;
|
||||
border: 1px solid #E7E5E4;
|
||||
|
||||
.step-btn {
|
||||
background: #FFFFFF;
|
||||
color: #1C1917;
|
||||
border: 1px solid #E7E5E4;
|
||||
box-shadow: 0 2rpx 6rpx rgba(28, 25, 23, 0.04);
|
||||
|
||||
&:disabled {
|
||||
color: #A8A29E;
|
||||
background: #F5F2EC;
|
||||
border-color: #E7E5E4;
|
||||
}
|
||||
}
|
||||
|
||||
.step-val {
|
||||
color: #1C1917;
|
||||
font-weight: 700;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.form-title {
|
||||
color: #1C1917;
|
||||
}
|
||||
@@ -476,6 +932,14 @@ const handleSubmit = () => {
|
||||
}
|
||||
.row-input {
|
||||
color: #1C1917;
|
||||
|
||||
&.price-input {
|
||||
color: #000000;
|
||||
font-weight: 800;
|
||||
}
|
||||
}
|
||||
.price-ph {
|
||||
color: #A8A29E;
|
||||
}
|
||||
}
|
||||
.calc-preview {
|
||||
@@ -484,6 +948,78 @@ const handleSubmit = () => {
|
||||
color: #78716C;
|
||||
}
|
||||
}
|
||||
|
||||
.pricing-mode-row {
|
||||
border-bottom-color: #F5F2EC;
|
||||
.pricing-mode-btn {
|
||||
background: #F8F5F0;
|
||||
color: #78716C;
|
||||
border-color: #E7E5E4;
|
||||
&.active {
|
||||
background: rgba(234, 88, 12, 0.1);
|
||||
color: #EA580C;
|
||||
border-color: #EA580C;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.preset-price-row {
|
||||
border-bottom-color: #F5F2EC;
|
||||
.preset-label {
|
||||
color: #78716C;
|
||||
}
|
||||
.preset-chips .preset-chip {
|
||||
background: #F8F5F0;
|
||||
border-color: #E7E5E4;
|
||||
color: #78716C;
|
||||
&.selected {
|
||||
background: rgba(234, 88, 12, 0.1);
|
||||
border-color: #EA580C;
|
||||
color: #EA580C;
|
||||
font-weight: 700;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
&.dynamic-price-card {
|
||||
.card-header-switch .switch-title-box .form-title {
|
||||
color: #1C1917;
|
||||
}
|
||||
.dynamic-config-body {
|
||||
border-top-color: #F5F2EC;
|
||||
.config-sec-title {
|
||||
color: #78716C;
|
||||
}
|
||||
.rule-cards .rule-card {
|
||||
background: #FAFAF9;
|
||||
border-color: #E7E5E4;
|
||||
&.active {
|
||||
background: rgba(234, 88, 12, 0.06);
|
||||
border-color: #EA580C;
|
||||
.rule-card-header .rule-name {
|
||||
color: #EA580C;
|
||||
}
|
||||
}
|
||||
.rule-card-header .rule-name {
|
||||
color: #1C1917;
|
||||
}
|
||||
.rule-desc {
|
||||
color: #78716C;
|
||||
}
|
||||
}
|
||||
.scenario-notice {
|
||||
background: #FFF7ED;
|
||||
border-color: #FDBA74;
|
||||
.notice-title {
|
||||
color: #EA580C;
|
||||
}
|
||||
.notice-item {
|
||||
color: #78716C;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.bottom-bar {
|
||||
@@ -495,5 +1031,143 @@ const handleSubmit = () => {
|
||||
box-shadow: 0 4rpx 20rpx rgba(234, 88, 12, 0.35);
|
||||
}
|
||||
}
|
||||
|
||||
.risk-modal-box {
|
||||
background: #FFFFFF;
|
||||
border-color: rgba(239, 68, 68, 0.4);
|
||||
|
||||
.risk-modal-header .risk-title {
|
||||
color: #DC2626;
|
||||
}
|
||||
|
||||
.risk-body {
|
||||
.risk-desc {
|
||||
color: #475569;
|
||||
}
|
||||
.risk-sub-tip {
|
||||
color: #64748B;
|
||||
}
|
||||
.recommend-zones .zone-chip {
|
||||
background: rgba(234, 88, 12, 0.08);
|
||||
border-color: rgba(234, 88, 12, 0.25);
|
||||
.zone-text {
|
||||
color: #EA580C;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.risk-footer .risk-cancel-btn {
|
||||
background: #F1F5F9;
|
||||
color: #334155;
|
||||
border-color: #CBD5E1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.risk-modal-mask {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
background: rgba(0, 0, 0, 0.75);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
z-index: 999;
|
||||
padding: 40rpx;
|
||||
backdrop-filter: blur(6px);
|
||||
}
|
||||
|
||||
.risk-modal-box {
|
||||
width: 100%;
|
||||
max-width: 620rpx;
|
||||
background: #151D30;
|
||||
border: 1px solid rgba(239, 68, 68, 0.35);
|
||||
border-radius: 28rpx;
|
||||
padding: 36rpx;
|
||||
box-shadow: 0 20rpx 60rpx rgba(0, 0, 0, 0.6);
|
||||
|
||||
.risk-modal-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 14rpx;
|
||||
margin-bottom: 20rpx;
|
||||
|
||||
.risk-shield-icon {
|
||||
width: 44rpx;
|
||||
height: 44rpx;
|
||||
}
|
||||
|
||||
.risk-title {
|
||||
font-size: 30rpx;
|
||||
font-weight: 700;
|
||||
color: #F87171;
|
||||
}
|
||||
}
|
||||
|
||||
.risk-body {
|
||||
margin-bottom: 30rpx;
|
||||
|
||||
.risk-desc {
|
||||
display: block;
|
||||
font-size: 24rpx;
|
||||
color: #CBD5E1;
|
||||
line-height: 1.6;
|
||||
margin-bottom: 20rpx;
|
||||
}
|
||||
|
||||
.risk-sub-tip {
|
||||
display: block;
|
||||
font-size: 22rpx;
|
||||
color: #94A3B8;
|
||||
margin-bottom: 16rpx;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.recommend-zones {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 12rpx;
|
||||
|
||||
.zone-chip {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12rpx;
|
||||
background: rgba(99, 102, 241, 0.12);
|
||||
border: 1px solid rgba(99, 102, 241, 0.3);
|
||||
border-radius: 14rpx;
|
||||
padding: 16rpx 20rpx;
|
||||
|
||||
.zone-pin-icon {
|
||||
width: 28rpx;
|
||||
height: 28rpx;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.zone-text {
|
||||
font-size: 24rpx;
|
||||
color: #A5B4FC;
|
||||
font-weight: 500;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.risk-footer {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
|
||||
.risk-cancel-btn {
|
||||
width: 100%;
|
||||
height: 72rpx;
|
||||
line-height: 72rpx;
|
||||
background: #1E293B;
|
||||
border: 1px solid rgba(255, 255, 255, 0.1);
|
||||
color: #E2E8F0;
|
||||
font-size: 26rpx;
|
||||
border-radius: 16rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
在新工单中引用
屏蔽一个用户