修正了 pages 名为拼音的问题,以及部分细节
This commit is contained in:
@@ -1,159 +1,195 @@
|
||||
<!-- pages/merchant-dispatch/merchant-dispatch.wxml -->
|
||||
<view class="page-container" style="background-image: url('{{bgImageUrl}}');">
|
||||
<!-- 顶部商家余额展示 (黑金卡片) -->
|
||||
<view class="balance-card">
|
||||
<text class="balance-label">可用余额</text>
|
||||
<view class="balance-amount">
|
||||
<text class="amount-value">{{sjyue}}</text>
|
||||
<text class="amount-unit">元</text>
|
||||
</view>
|
||||
<text class="balance-tip">派单将从此余额扣除</text>
|
||||
</view>
|
||||
|
||||
<!-- 商品类型选择 (横向滑动) -->
|
||||
<view class="section">
|
||||
<text class="section-title">选择订单类型</text>
|
||||
<scroll-view class="type-scroll" scroll-x="true" enable-flex>
|
||||
<block wx:for="{{shangpinList}}" wx:key="id">
|
||||
<view
|
||||
class="type-item {{selectedTypeId === item.id ? 'type-active' : ''}}"
|
||||
data-id="{{item.id}}"
|
||||
data-item="{{item}}"
|
||||
bindtap="onSelectType"
|
||||
>
|
||||
<text class="type-text">{{item.jieshao}}</text>
|
||||
</view>
|
||||
</block>
|
||||
</scroll-view>
|
||||
</view>
|
||||
|
||||
<!-- 表单区域 -->
|
||||
<view class="form-container">
|
||||
<!-- 订单介绍 -->
|
||||
<view class="form-item">
|
||||
<text class="form-label required">订单介绍</text>
|
||||
<input
|
||||
class="form-input"
|
||||
placeholder="请输入订单主要内容(必填,最多50字)"
|
||||
maxlength="50"
|
||||
value="{{dingdanJieshao}}"
|
||||
bindinput="onDingdanJieshaoInput"
|
||||
/>
|
||||
<text class="word-count">{{dingdanJieshao.length}}/50</text>
|
||||
</view>
|
||||
|
||||
<!-- 订单备注 -->
|
||||
<view class="form-item">
|
||||
<text class="form-label">订单备注(选填)</text>
|
||||
<input
|
||||
class="form-input"
|
||||
placeholder="填写或补充其他信息"
|
||||
maxlength="50"
|
||||
value="{{dingdanBeizhu}}"
|
||||
bindinput="onDingdanBeizhuInput"
|
||||
/>
|
||||
<text class="word-count">{{dingdanBeizhu.length}}/50</text>
|
||||
</view>
|
||||
|
||||
<!-- 老板游戏昵称/UID -->
|
||||
<view class="form-item">
|
||||
<text class="form-label required">老板昵称/ID</text>
|
||||
<input
|
||||
class="form-input"
|
||||
placeholder="请输入(必填,最多15字)"
|
||||
maxlength="15"
|
||||
value="{{laobanName}}"
|
||||
bindinput="onLaobanNameInput"
|
||||
/>
|
||||
<text class="word-count">{{laobanName.length}}/15</text>
|
||||
</view>
|
||||
|
||||
<!-- 指定打手UID -->
|
||||
<view class="form-item">
|
||||
<text class="form-label">指定UID(选填)</text>
|
||||
<input
|
||||
class="form-input"
|
||||
placeholder="请输入指定UID"
|
||||
maxlength="10"
|
||||
value="{{zhidingUid}}"
|
||||
bindinput="onZhidingUidInput"
|
||||
/>
|
||||
</view>
|
||||
|
||||
<!-- 订单价格 -->
|
||||
<view class="form-item">
|
||||
<text class="form-label required">订单价格(元)</text>
|
||||
<input
|
||||
class="form-input"
|
||||
type="digit"
|
||||
placeholder="0.1 - 10000,支持两位小数"
|
||||
value="{{jiage}}"
|
||||
bindinput="onJiageInput"
|
||||
/>
|
||||
<text class="price-tip">范围:0.1 - 10000元</text>
|
||||
</view>
|
||||
|
||||
<!-- 新增:抢单要求标签(从商品类型的称号列表选择) -->
|
||||
<view class="form-item" wx:if="{{currentTypeChenghaoList.length > 0}}">
|
||||
<text class="form-label">要求打手标签*如金牌打手(选填)</text>
|
||||
<picker
|
||||
mode="selector"
|
||||
range="{{currentTypeChenghaoList}}"
|
||||
range-key="mingcheng"
|
||||
bindchange="onLabelChange"
|
||||
>
|
||||
<view class="picker-view">
|
||||
<text>{{selectedLabelName || '无'}}</text>
|
||||
</view>
|
||||
</picker>
|
||||
</view>
|
||||
|
||||
<!-- 新增:佣金要求(压金) -->
|
||||
<view class="form-item commission-item">
|
||||
<text class="form-label">要求打手押金(建议≤50元)</text>
|
||||
<switch checked="{{commissionEnabled}}" bindchange="onCommissionToggle"/>
|
||||
<input
|
||||
wx:if="{{commissionEnabled}}"
|
||||
class="commission-input"
|
||||
type="digit"
|
||||
placeholder="押金金额"
|
||||
value="{{commissionValue}}"
|
||||
bindinput="onCommissionValueInput"
|
||||
/>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 立即派发按钮 -->
|
||||
<view class="btn-container">
|
||||
<view
|
||||
class="submit-btn {{isSubmitting ? 'btn-disabled' : ''}}"
|
||||
bindtap="onSubmit"
|
||||
hover-class="btn-hover"
|
||||
>
|
||||
<text class="btn-text">{{isSubmitting ? '派发中...' : '立即派发'}}</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 加载遮罩 -->
|
||||
<view class="loading-mask" wx:if="{{isLoading}}">
|
||||
<view class="loading-content">
|
||||
<view class="loading-spinner"></view>
|
||||
<text class="loading-text">加载中...</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 全局通知组件 -->
|
||||
<global-notification id="global-notification" />
|
||||
|
||||
<!-- 教程按钮(紧贴右侧,5秒后缩进) -->
|
||||
<view
|
||||
class="tutorial-btn {{tutorialBtnHidden ? 'tutorial-btn-hidden' : ''}}"
|
||||
bindtap="onTutorialBtnTap"
|
||||
hover-class="tutorial-btn-hover"
|
||||
>
|
||||
<text class="tutorial-btn-text">教程</text>
|
||||
</view>
|
||||
|
||||
<!-- 使用教程弹窗组件 -->
|
||||
<popup-notice id="popupNotice" />
|
||||
</view>
|
||||
<!-- pages/merchant-dispatch/merchant-dispatch.wxml -->
|
||||
<view class="page">
|
||||
<!-- 余额卡片 -->
|
||||
<view class="balance-card">
|
||||
<text class="balance-label">可用余额</text>
|
||||
<view class="balance-row">
|
||||
<text class="balance-value">{{sjyue}}</text>
|
||||
<text class="balance-unit">元</text>
|
||||
</view>
|
||||
<text class="balance-tip">派单将从此余额扣除</text>
|
||||
</view>
|
||||
|
||||
<!-- 订单类型 -->
|
||||
<view class="card">
|
||||
<view class="card-header">
|
||||
<view class="card-dot"></view>
|
||||
<text class="card-title">选择订单类型</text>
|
||||
</view>
|
||||
<scroll-view class="type-scroll" scroll-x="true" enable-flex>
|
||||
<view
|
||||
class="type-chip {{selectedTypeId === item.id ? 'type-chip--active' : ''}}"
|
||||
wx:for="{{shangpinList}}"
|
||||
wx:key="id"
|
||||
data-id="{{item.id}}"
|
||||
data-item="{{item}}"
|
||||
bindtap="onSelectType"
|
||||
>
|
||||
{{item.jieshao}}
|
||||
</view>
|
||||
</scroll-view>
|
||||
</view>
|
||||
|
||||
<!-- 表单 -->
|
||||
<view class="card">
|
||||
<view class="card-header">
|
||||
<view class="card-dot"></view>
|
||||
<text class="card-title">填写订单信息</text>
|
||||
</view>
|
||||
|
||||
<!-- 订单介绍 -->
|
||||
<view class="field">
|
||||
<view class="field-head">
|
||||
<text class="field-label">订单介绍</text>
|
||||
<text class="field-required">*</text>
|
||||
<text class="field-count">{{dingdanJieshao.length}}/50</text>
|
||||
</view>
|
||||
<input
|
||||
class="field-input"
|
||||
placeholder="请输入订单主要内容"
|
||||
maxlength="50"
|
||||
value="{{dingdanJieshao}}"
|
||||
bindinput="onDingdanJieshaoInput"
|
||||
/>
|
||||
</view>
|
||||
|
||||
<!-- 订单备注 -->
|
||||
<view class="field">
|
||||
<view class="field-head">
|
||||
<text class="field-label">订单备注</text>
|
||||
<text class="field-count">{{dingdanBeizhu.length}}/50</text>
|
||||
</view>
|
||||
<input
|
||||
class="field-input"
|
||||
placeholder="选填,补充其他信息"
|
||||
maxlength="50"
|
||||
value="{{dingdanBeizhu}}"
|
||||
bindinput="onDingdanBeizhuInput"
|
||||
/>
|
||||
</view>
|
||||
|
||||
<!-- 老板昵称/ID -->
|
||||
<view class="field">
|
||||
<view class="field-head">
|
||||
<text class="field-label">老板昵称/ID</text>
|
||||
<text class="field-required">*</text>
|
||||
<text class="field-count">{{laobanName.length}}/15</text>
|
||||
</view>
|
||||
<input
|
||||
class="field-input"
|
||||
placeholder="请输入老板昵称或ID"
|
||||
maxlength="15"
|
||||
value="{{laobanName}}"
|
||||
bindinput="onLaobanNameInput"
|
||||
/>
|
||||
</view>
|
||||
|
||||
<!-- 指定打手UID -->
|
||||
<view class="field">
|
||||
<view class="field-head">
|
||||
<text class="field-label">指定UID</text>
|
||||
<text class="field-optional">选填</text>
|
||||
</view>
|
||||
<input
|
||||
class="field-input"
|
||||
placeholder="指定某位打手接单"
|
||||
maxlength="10"
|
||||
value="{{zhidingUid}}"
|
||||
bindinput="onZhidingUidInput"
|
||||
/>
|
||||
</view>
|
||||
|
||||
<!-- 订单价格 -->
|
||||
<view class="field">
|
||||
<view class="field-head">
|
||||
<text class="field-label">订单价格</text>
|
||||
<text class="field-required">*</text>
|
||||
</view>
|
||||
<view class="price-input-wrap">
|
||||
<text class="price-prefix">¥</text>
|
||||
<input
|
||||
class="field-input price-input"
|
||||
type="digit"
|
||||
placeholder="0.1 - 10000"
|
||||
value="{{jiage}}"
|
||||
bindinput="onJiageInput"
|
||||
/>
|
||||
</view>
|
||||
<text class="field-hint">范围 0.1 ~ 10000 元,最多两位小数</text>
|
||||
</view>
|
||||
|
||||
<!-- 打手标签 -->
|
||||
<view class="field" wx:if="{{currentTypeChenghaoList.length > 0}}">
|
||||
<view class="field-head">
|
||||
<text class="field-label">要求打手标签</text>
|
||||
<text class="field-optional">选填</text>
|
||||
</view>
|
||||
<picker
|
||||
mode="selector"
|
||||
range="{{currentTypeChenghaoList}}"
|
||||
range-key="mingcheng"
|
||||
bindchange="onLabelChange"
|
||||
>
|
||||
<view class="field-picker">
|
||||
<text class="{{selectedLabelName ? '' : 'field-picker-ph'}}">{{selectedLabelName || '不限制'}}</text>
|
||||
<text class="field-picker-arrow">▸</text>
|
||||
</view>
|
||||
</picker>
|
||||
</view>
|
||||
|
||||
<!-- 押金要求 -->
|
||||
<view class="field">
|
||||
<view class="field-head">
|
||||
<text class="field-label">要求打手押金</text>
|
||||
<text class="field-optional">选填</text>
|
||||
</view>
|
||||
<view class="switch-row">
|
||||
<switch checked="{{commissionEnabled}}" bindchange="onCommissionToggle" color="#9C27B0"/>
|
||||
<text class="switch-label">{{commissionEnabled ? '已开启' : '未开启'}}</text>
|
||||
</view>
|
||||
<input
|
||||
wx:if="{{commissionEnabled}}"
|
||||
class="field-input"
|
||||
type="digit"
|
||||
placeholder="输入押金金额(建议≤50元)"
|
||||
value="{{commissionValue}}"
|
||||
bindinput="onCommissionValueInput"
|
||||
/>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 底部留白 -->
|
||||
<view class="bottom-space"></view>
|
||||
|
||||
<!-- 提交按钮 -->
|
||||
<view class="submit-bar">
|
||||
<view
|
||||
class="submit-btn {{isSubmitting ? 'submit-btn--disabled' : ''}}"
|
||||
bindtap="onSubmit"
|
||||
hover-class="submit-btn--hover"
|
||||
>
|
||||
{{isSubmitting ? '派发中...' : '立即派发'}}
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 加载遮罩 -->
|
||||
<view class="loading-mask" wx:if="{{isLoading}}">
|
||||
<view class="loading-box">
|
||||
<view class="loading-spinner"></view>
|
||||
<text class="loading-text">加载中...</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<global-notification id="global-notification" />
|
||||
|
||||
<!-- 教程按钮 -->
|
||||
<view
|
||||
class="tutorial-btn {{tutorialBtnHidden ? 'tutorial-btn--hidden' : ''}}"
|
||||
bindtap="onTutorialBtnTap"
|
||||
hover-class="tutorial-btn--hover"
|
||||
>
|
||||
<text class="tutorial-btn-text">教程</text>
|
||||
</view>
|
||||
|
||||
<popup-notice id="popupNotice" />
|
||||
</view>
|
||||
|
||||
@@ -1,374 +1,339 @@
|
||||
/* pages/merchant-dispatch/merchant-dispatch.wxss - 黑金升级版 + 背景图由js动态拼接 */
|
||||
page {
|
||||
background-color: #0a0a0f;
|
||||
}
|
||||
|
||||
.page-container {
|
||||
min-height: 100vh;
|
||||
/* 背景图通过内联 style 动态设置,此处不再写死 */
|
||||
background-size: cover;
|
||||
background-position: center;
|
||||
background-attachment: fixed;
|
||||
position: relative;
|
||||
padding: 30rpx;
|
||||
box-sizing: border-box;
|
||||
padding-bottom: 140rpx;
|
||||
}
|
||||
|
||||
/* 半透明遮罩增强文字可读性 - 不使用通配符 */
|
||||
.page-container::before {
|
||||
content: '';
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
background: rgba(10, 10, 15, 0.75);
|
||||
backdrop-filter: blur(6rpx);
|
||||
z-index: 0;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
/* 所有直接子元素手动提升层级(替代 * 选择器) */
|
||||
.balance-card,
|
||||
.section,
|
||||
.form-container,
|
||||
.btn-container,
|
||||
.loading-mask {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
/* 余额卡片 - 黑金风格 */
|
||||
.balance-card {
|
||||
background: linear-gradient(135deg, rgba(20,20,30,0.95), rgba(30,30,50,0.95));
|
||||
border-radius: 24rpx;
|
||||
padding: 36rpx;
|
||||
margin-bottom: 40rpx;
|
||||
color: #fff;
|
||||
box-shadow: 0 15rpx 35rpx rgba(0,0,0,0.4), 0 0 40rpx rgba(0,180,255,0.15);
|
||||
text-align: center;
|
||||
border: 1.5rpx solid rgba(0,180,255,0.2);
|
||||
backdrop-filter: blur(10rpx);
|
||||
overflow: hidden;
|
||||
}
|
||||
.balance-card::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: -50%; left: -50%;
|
||||
width: 200%; height: 200%;
|
||||
background: linear-gradient(45deg, transparent 30%, rgba(0,180,255,0.1) 50%, transparent 70%);
|
||||
animation: cardShine 6s infinite linear;
|
||||
z-index: 1;
|
||||
}
|
||||
@keyframes cardShine {
|
||||
0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
|
||||
100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
|
||||
}
|
||||
.balance-label {
|
||||
font-size: 28rpx;
|
||||
color: rgba(255,255,255,0.8);
|
||||
margin-bottom: 18rpx;
|
||||
font-weight: 500;
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
}
|
||||
.balance-amount {
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
justify-content: center;
|
||||
margin-bottom: 15rpx;
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
}
|
||||
.amount-value {
|
||||
font-size: 64rpx;
|
||||
font-weight: bold;
|
||||
color: #FFD700;
|
||||
text-shadow: 0 0 20rpx rgba(255,215,0,0.7);
|
||||
animation: amountGlow 3s infinite alternate;
|
||||
}
|
||||
@keyframes amountGlow {
|
||||
0% { color: #FFD700; text-shadow: 0 0 15rpx rgba(255,215,0,0.6); }
|
||||
100% { color: #FFE44D; text-shadow: 0 0 25rpx rgba(255,215,0,0.9); }
|
||||
}
|
||||
.amount-unit {
|
||||
font-size: 36rpx;
|
||||
color: #FFD700;
|
||||
margin-left: 12rpx;
|
||||
font-weight: 500;
|
||||
}
|
||||
.balance-tip {
|
||||
font-size: 24rpx;
|
||||
color: rgba(255,255,255,0.6);
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
/* 区域标题 */
|
||||
.section {
|
||||
margin-bottom: 35rpx;
|
||||
}
|
||||
.section-title {
|
||||
font-size: 32rpx;
|
||||
font-weight: 700;
|
||||
color: #FFFFFF;
|
||||
margin-bottom: 25rpx;
|
||||
padding-left: 12rpx;
|
||||
border-left: 6rpx solid #9C27B0;
|
||||
text-shadow: 0 2rpx 4rpx rgba(0,0,0,0.3);
|
||||
}
|
||||
|
||||
/* 商品类型横向滚动 */
|
||||
.type-scroll {
|
||||
white-space: nowrap;
|
||||
display: flex;
|
||||
height: 90rpx;
|
||||
}
|
||||
.type-item {
|
||||
display: inline-flex;
|
||||
flex-shrink: 0;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
height: 85rpx;
|
||||
padding: 0 40rpx;
|
||||
margin-right: 20rpx;
|
||||
background: rgba(255,255,255,0.08);
|
||||
border-radius: 45rpx;
|
||||
border: 2rpx solid rgba(255,255,255,0.15);
|
||||
font-size: 28rpx;
|
||||
color: rgba(255,255,255,0.8);
|
||||
transition: all 0.3s cubic-bezier(0.175,0.885,0.32,1.275);
|
||||
backdrop-filter: blur(10rpx);
|
||||
}
|
||||
.type-active {
|
||||
background: linear-gradient(135deg, #9C27B0 0%, #673AB7 100%);
|
||||
border-color: #9C27B0;
|
||||
color: white;
|
||||
transform: scale(1.05);
|
||||
box-shadow: 0 10rpx 25rpx rgba(156,39,176,0.4);
|
||||
}
|
||||
.type-text {
|
||||
max-width: 220rpx;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
/* 表单容器 - 玻璃态 */
|
||||
.form-container {
|
||||
background: rgba(30,30,45,0.85);
|
||||
backdrop-filter: blur(20rpx);
|
||||
border-radius: 30rpx;
|
||||
padding: 30rpx;
|
||||
box-shadow: 0 10rpx 30rpx rgba(0,0,0,0.3);
|
||||
border: 1.5rpx solid rgba(255,255,255,0.1);
|
||||
margin-bottom: 40rpx;
|
||||
}
|
||||
.form-item {
|
||||
margin-bottom: 35rpx;
|
||||
position: relative;
|
||||
}
|
||||
.form-item:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.form-label {
|
||||
font-size: 30rpx;
|
||||
font-weight: 600;
|
||||
color: rgba(255,255,255,0.9);
|
||||
display: block;
|
||||
margin-bottom: 15rpx;
|
||||
}
|
||||
.form-label.required::after {
|
||||
content: '*';
|
||||
color: #ff4444;
|
||||
margin-left: 8rpx;
|
||||
}
|
||||
.form-input {
|
||||
width: 100%;
|
||||
height: 80rpx;
|
||||
background: rgba(255,255,255,0.1);
|
||||
border-radius: 16rpx;
|
||||
padding: 0 25rpx;
|
||||
font-size: 28rpx;
|
||||
color: #FFFFFF;
|
||||
border: 2rpx solid rgba(255,255,255,0.2);
|
||||
box-sizing: border-box;
|
||||
transition: all 0.3s;
|
||||
}
|
||||
.form-input:focus {
|
||||
border-color: #9C27B0;
|
||||
background: rgba(255,255,255,0.15);
|
||||
}
|
||||
.word-count {
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 0;
|
||||
font-size: 24rpx;
|
||||
color: rgba(255,255,255,0.5);
|
||||
}
|
||||
.price-tip {
|
||||
font-size: 24rpx;
|
||||
color: rgba(255,255,255,0.5);
|
||||
margin-top: 10rpx;
|
||||
display: block;
|
||||
}
|
||||
.picker-view {
|
||||
background: rgba(255,255,255,0.1);
|
||||
border-radius: 16rpx;
|
||||
padding: 20rpx 25rpx;
|
||||
border: 2rpx solid rgba(255,255,255,0.2);
|
||||
color: rgba(255,255,255,0.9);
|
||||
font-size: 28rpx;
|
||||
}
|
||||
.commission-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
gap: 20rpx;
|
||||
}
|
||||
.commission-item .form-label {
|
||||
width: 100%;
|
||||
margin-bottom: 10rpx;
|
||||
}
|
||||
.commission-input {
|
||||
flex: 1;
|
||||
background: rgba(255,255,255,0.1);
|
||||
border-radius: 16rpx;
|
||||
padding: 20rpx;
|
||||
color: #fff;
|
||||
border: 2rpx solid rgba(255,255,255,0.2);
|
||||
font-size: 28rpx;
|
||||
}
|
||||
|
||||
/* 提交按钮区域 */
|
||||
.btn-container {
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
background: linear-gradient(to top, rgba(10,10,15,0.95), transparent);
|
||||
padding: 30rpx;
|
||||
box-sizing: border-box;
|
||||
z-index: 9999;
|
||||
}
|
||||
.submit-btn {
|
||||
background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
|
||||
border-radius: 50rpx;
|
||||
height: 90rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
box-shadow: 0 10rpx 30rpx rgba(255,68,68,0.3);
|
||||
transition: all 0.3s;
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
}
|
||||
.submit-btn::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: -100%;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
|
||||
animation: shine 2s infinite;
|
||||
}
|
||||
.btn-hover {
|
||||
transform: translateY(-2rpx);
|
||||
box-shadow: 0 15rpx 40rpx rgba(255,68,68,0.4);
|
||||
}
|
||||
.btn-disabled {
|
||||
opacity: 0.6;
|
||||
filter: grayscale(0.3);
|
||||
pointer-events: none;
|
||||
}
|
||||
.btn-text {
|
||||
font-size: 36rpx;
|
||||
font-weight: bold;
|
||||
color: white;
|
||||
letter-spacing: 4rpx;
|
||||
position: relative;
|
||||
z-index: 2;
|
||||
}
|
||||
@keyframes shine {
|
||||
0% { left: -100%; }
|
||||
100% { left: 100%; }
|
||||
}
|
||||
|
||||
/* 加载遮罩 */
|
||||
.loading-mask {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
background: rgba(0,0,0,0.8);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
z-index: 10000;
|
||||
}
|
||||
.loading-content {
|
||||
background: rgba(40,40,60,0.95);
|
||||
padding: 60rpx 80rpx;
|
||||
border-radius: 30rpx;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
box-shadow: 0 25rpx 70rpx rgba(0,0,0,0.6);
|
||||
}
|
||||
.loading-spinner {
|
||||
width: 90rpx;
|
||||
height: 90rpx;
|
||||
border: 8rpx solid rgba(0,180,255,0.2);
|
||||
border-top: 8rpx solid #00B4FF;
|
||||
border-radius: 50%;
|
||||
animation: spin 1.2s linear infinite;
|
||||
margin-bottom: 35rpx;
|
||||
}
|
||||
.loading-text {
|
||||
font-size: 30rpx;
|
||||
color: #00B4FF;
|
||||
font-weight: 600;
|
||||
}
|
||||
@keyframes spin {
|
||||
0% { transform: rotate(0deg); }
|
||||
100% { transform: rotate(360deg); }
|
||||
}
|
||||
|
||||
/* ========== 教程按钮样式(修改后:右上角,更大更显眼) ========== */
|
||||
.tutorial-btn {
|
||||
position: fixed;
|
||||
right: 0;
|
||||
top: 20%; /* 右上区域,不再是垂直居中 */
|
||||
transform: translateY(-50%);
|
||||
width: 120rpx; /* 增大宽度 */
|
||||
height: 120rpx; /* 增大高度 */
|
||||
background: rgba(0, 0, 0, 0.75);
|
||||
backdrop-filter: blur(15rpx);
|
||||
border-radius: 60rpx 0 0 60rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
z-index: 10001;
|
||||
box-shadow: -8rpx 0 20rpx rgba(0,0,0,0.3);
|
||||
transition: right 0.3s ease-out;
|
||||
border: 2rpx solid rgba(255,215,0,0.5);
|
||||
border-right: none;
|
||||
}
|
||||
.tutorial-btn-text {
|
||||
color: #FFD700;
|
||||
font-size: 36rpx; /* 文字更大 */
|
||||
font-weight: bold;
|
||||
writing-mode: vertical-rl;
|
||||
letter-spacing: 6rpx;
|
||||
}
|
||||
.tutorial-btn-hidden {
|
||||
right: -80rpx; /* 缩进后只露出约40rpx边缘 */
|
||||
}
|
||||
.tutorial-btn-hover {
|
||||
background: rgba(0, 0, 0, 0.9);
|
||||
transform: translateY(-50%) scale(1.05);
|
||||
}
|
||||
/* 商家派单 */
|
||||
|
||||
page {
|
||||
background: #f5f5f5;
|
||||
}
|
||||
|
||||
.page {
|
||||
min-height: 100vh;
|
||||
padding: 24rpx;
|
||||
padding-bottom: 160rpx;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
/* 余额卡片 */
|
||||
.balance-card {
|
||||
background: #1a1a2e;
|
||||
border-radius: 16rpx;
|
||||
padding: 36rpx 32rpx;
|
||||
margin-bottom: 20rpx;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.balance-label {
|
||||
font-size: 24rpx;
|
||||
color: rgba(255,255,255,0.5);
|
||||
display: block;
|
||||
}
|
||||
|
||||
.balance-row {
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
justify-content: center;
|
||||
margin: 12rpx 0 8rpx;
|
||||
}
|
||||
|
||||
.balance-value {
|
||||
font-size: 52rpx;
|
||||
font-weight: 700;
|
||||
color: #f0d060;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.balance-unit {
|
||||
font-size: 26rpx;
|
||||
color: #f0d060;
|
||||
margin-left: 6rpx;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.balance-tip {
|
||||
font-size: 20rpx;
|
||||
color: rgba(255,255,255,0.35);
|
||||
display: block;
|
||||
}
|
||||
|
||||
/* 卡片 */
|
||||
.card {
|
||||
background: #fff;
|
||||
border-radius: 16rpx;
|
||||
padding: 28rpx;
|
||||
margin-bottom: 20rpx;
|
||||
}
|
||||
|
||||
.card-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-bottom: 20rpx;
|
||||
}
|
||||
|
||||
.card-dot {
|
||||
width: 8rpx;
|
||||
height: 8rpx;
|
||||
border-radius: 4rpx;
|
||||
background: #9C27B0;
|
||||
margin-right: 12rpx;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.card-title {
|
||||
font-size: 28rpx;
|
||||
font-weight: 700;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
/* 订单类型 */
|
||||
.type-scroll {
|
||||
white-space: nowrap;
|
||||
display: flex;
|
||||
padding: 8rpx 0;
|
||||
}
|
||||
|
||||
.type-chip {
|
||||
display: inline-flex;
|
||||
flex-shrink: 0;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
height: 64rpx;
|
||||
padding: 0 28rpx;
|
||||
margin-right: 14rpx;
|
||||
background: #f5f5f5;
|
||||
border-radius: 32rpx;
|
||||
font-size: 24rpx;
|
||||
color: #666;
|
||||
border: 1rpx solid transparent;
|
||||
}
|
||||
|
||||
.type-chip--active {
|
||||
background: #f3e5f9;
|
||||
color: #9C27B0;
|
||||
border-color: #9C27B0;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
/* 表单字段 */
|
||||
.field {
|
||||
margin-bottom: 24rpx;
|
||||
}
|
||||
|
||||
.field:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.field-head {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-bottom: 10rpx;
|
||||
}
|
||||
|
||||
.field-label {
|
||||
font-size: 26rpx;
|
||||
font-weight: 600;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.field-required {
|
||||
font-size: 26rpx;
|
||||
color: #e04040;
|
||||
margin-left: 4rpx;
|
||||
}
|
||||
|
||||
.field-optional {
|
||||
font-size: 20rpx;
|
||||
color: #bbb;
|
||||
margin-left: 8rpx;
|
||||
}
|
||||
|
||||
.field-count {
|
||||
font-size: 20rpx;
|
||||
color: #ccc;
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
.field-input {
|
||||
width: 100%;
|
||||
height: 76rpx;
|
||||
background: #f7f7f7;
|
||||
border-radius: 12rpx;
|
||||
padding: 0 20rpx;
|
||||
font-size: 26rpx;
|
||||
color: #333;
|
||||
border: 1rpx solid #eee;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.field-hint {
|
||||
font-size: 20rpx;
|
||||
color: #bbb;
|
||||
margin-top: 8rpx;
|
||||
display: block;
|
||||
}
|
||||
|
||||
/* 价格输入 */
|
||||
.price-input-wrap {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
background: #f7f7f7;
|
||||
border-radius: 12rpx;
|
||||
border: 1rpx solid #eee;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.price-prefix {
|
||||
font-size: 28rpx;
|
||||
font-weight: 700;
|
||||
color: #999;
|
||||
padding-left: 20rpx;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.price-input {
|
||||
border: none;
|
||||
background: transparent;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
/* Picker */
|
||||
.field-picker {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
height: 76rpx;
|
||||
background: #f7f7f7;
|
||||
border-radius: 12rpx;
|
||||
padding: 0 20rpx;
|
||||
border: 1rpx solid #eee;
|
||||
font-size: 26rpx;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.field-picker-ph {
|
||||
color: #bbb;
|
||||
}
|
||||
|
||||
.field-picker-arrow {
|
||||
font-size: 24rpx;
|
||||
color: #ccc;
|
||||
}
|
||||
|
||||
/* Switch 行 */
|
||||
.switch-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-bottom: 12rpx;
|
||||
}
|
||||
|
||||
.switch-label {
|
||||
font-size: 22rpx;
|
||||
color: #999;
|
||||
margin-left: 12rpx;
|
||||
}
|
||||
|
||||
/* 底部留白 */
|
||||
.bottom-space {
|
||||
height: 20rpx;
|
||||
}
|
||||
|
||||
/* 提交栏 */
|
||||
.submit-bar {
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
background: #fff;
|
||||
padding: 16rpx 24rpx;
|
||||
padding-bottom: calc(16rpx + env(safe-area-inset-bottom));
|
||||
border-top: 1rpx solid #f0f0f0;
|
||||
z-index: 9999;
|
||||
}
|
||||
|
||||
.submit-btn {
|
||||
height: 88rpx;
|
||||
background: #e04040;
|
||||
border-radius: 12rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 32rpx;
|
||||
font-weight: 700;
|
||||
color: #fff;
|
||||
letter-spacing: 2rpx;
|
||||
}
|
||||
|
||||
.submit-btn--hover {
|
||||
opacity: 0.85;
|
||||
}
|
||||
|
||||
.submit-btn--disabled {
|
||||
opacity: 0.5;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
/* 加载 */
|
||||
.loading-mask {
|
||||
position: fixed;
|
||||
top: 0; left: 0; right: 0; bottom: 0;
|
||||
background: rgba(255,255,255,0.8);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
z-index: 10000;
|
||||
}
|
||||
|
||||
.loading-box {
|
||||
background: #fff;
|
||||
padding: 48rpx 64rpx;
|
||||
border-radius: 16rpx;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
box-shadow: 0 4rpx 20rpx rgba(0,0,0,0.08);
|
||||
}
|
||||
|
||||
.loading-spinner {
|
||||
width: 44rpx;
|
||||
height: 44rpx;
|
||||
border: 4rpx solid #eee;
|
||||
border-top-color: #333;
|
||||
border-radius: 50%;
|
||||
animation: spin 0.8s linear infinite;
|
||||
margin-bottom: 16rpx;
|
||||
}
|
||||
|
||||
.loading-text {
|
||||
font-size: 24rpx;
|
||||
color: #666;
|
||||
}
|
||||
|
||||
/* 教程按钮 */
|
||||
.tutorial-btn {
|
||||
position: fixed;
|
||||
right: 0;
|
||||
top: 20%;
|
||||
transform: translateY(-50%);
|
||||
width: 72rpx;
|
||||
height: 72rpx;
|
||||
background: #9C27B0;
|
||||
border-radius: 36rpx 0 0 36rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
z-index: 10001;
|
||||
transition: right 0.3s ease-out;
|
||||
}
|
||||
|
||||
.tutorial-btn-text {
|
||||
color: #fff;
|
||||
font-size: 22rpx;
|
||||
font-weight: 600;
|
||||
writing-mode: vertical-rl;
|
||||
letter-spacing: 4rpx;
|
||||
}
|
||||
|
||||
.tutorial-btn--hidden {
|
||||
right: -44rpx;
|
||||
}
|
||||
|
||||
.tutorial-btn--hover {
|
||||
opacity: 0.85;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user