|
|
|
@ -84,77 +84,74 @@ |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
<!-- 物流车辆信息 --> |
|
|
|
|
|
|
|
|
|
|
|
<!-- 运输参数 --> |
|
|
|
<view class="section"> |
|
|
|
<text class="section-title">物流车辆信息</text> |
|
|
|
<view class="vehicle-form"> |
|
|
|
<text class="section-title">运输参数</text> |
|
|
|
<view class="address-form"> |
|
|
|
<!-- 运输模式 --> |
|
|
|
<view class="form-item"> |
|
|
|
<text class="label">车辆类型</text> |
|
|
|
<picker bindchange="bindVehicleTypeChange" range="{{vehicleTypes}}" value="{{selectedVehicleTypeIndex}}"> |
|
|
|
<text class="label">运输模式</text> |
|
|
|
<picker bindchange="bindTransportModeChange" value="{{transportModeIndex}}" range="{{transportModes}}"> |
|
|
|
<view class="picker"> |
|
|
|
{{vehicleTypes[selectedVehicleTypeIndex]}} |
|
|
|
{{transportModes[transportModeIndex]}} |
|
|
|
</view> |
|
|
|
</picker> |
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 鸡蛋重量 --> |
|
|
|
<view class="form-item"> |
|
|
|
<text class="label">载重能力 (吨)</text> |
|
|
|
<input class="input" bindinput="bindVehicleInfoInput" data-key="capacity" value="{{vehicleInfo.capacity}}" placeholder="请输入载重能力" type="number" /> |
|
|
|
<text class="label">鸡蛋重量(公斤)</text> |
|
|
|
<input class="input" type="number" name="weight" placeholder="请输入鸡蛋重量" value="{{weight}}" bindinput="bindWeightInput" /> |
|
|
|
</view> |
|
|
|
|
|
|
|
<!-- 货物体积 --> |
|
|
|
<view class="form-item"> |
|
|
|
<text class="label">车辆编号</text> |
|
|
|
<input class="input" bindinput="bindVehicleInfoInput" data-key="number" value="{{vehicleInfo.number}}" placeholder="请输入车辆编号" /> |
|
|
|
<text class="label">货物体积(立方米)</text> |
|
|
|
<input class="input" type="number" name="volume" placeholder="请输入货物体积" value="{{volume}}" bindinput="bindVolumeInput" /> |
|
|
|
</view> |
|
|
|
|
|
|
|
<!-- 包装类型 --> |
|
|
|
<view class="form-item"> |
|
|
|
<text class="label">司机姓名</text> |
|
|
|
<input class="input" bindinput="bindVehicleInfoInput" data-key="driver" value="{{vehicleInfo.driver}}" placeholder="请输入司机姓名" /> |
|
|
|
<text class="label">包装类型</text> |
|
|
|
<picker bindchange="bindPackagingChange" value="{{packagingIndex}}" range="{{packagingTypes}}"> |
|
|
|
<view class="picker"> |
|
|
|
{{packagingTypes[packagingIndex]}} |
|
|
|
</view> |
|
|
|
</picker> |
|
|
|
</view> |
|
|
|
|
|
|
|
<!-- 车型 --> |
|
|
|
<view class="form-item"> |
|
|
|
<text class="label">联系电话</text> |
|
|
|
<input class="input" bindinput="bindVehicleInfoInput" data-key="phone" value="{{vehicleInfo.phone}}" placeholder="请输入联系电话" type="number" /> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
<!-- 物流人员信息 --> |
|
|
|
<view class="section"> |
|
|
|
<text class="section-title">物流人员信息</text> |
|
|
|
<view class="logistics-intro"> |
|
|
|
<text class="intro-text">我们拥有专业的物流团队,为您提供高效、安全的运输服务。以下是我们的物流专家,他们具有丰富的行业经验和专业知识,能够为您的货物运输提供专业的解决方案。</text> |
|
|
|
</view> |
|
|
|
<view class="logistics-personnel"> |
|
|
|
<view class="personnel-card" wx:for="{{logisticsPersonnel}}" wx:key="item.id"> |
|
|
|
<view class="personnel-header-section"> |
|
|
|
<view class="personnel-avatar"> |
|
|
|
<text class="avatar-text">{{item.name.charAt(0)}}</text> |
|
|
|
</view> |
|
|
|
<view class="personnel-header-info"> |
|
|
|
<view class="personnel-name">{{item.name}}</view> |
|
|
|
<view class="personnel-position">{{item.position}}</view> |
|
|
|
<view class="personnel-tags"> |
|
|
|
<view class="personnel-tag">{{item.experience}}年物流经验</view> |
|
|
|
<view class="personnel-tag">认证物流师</view> |
|
|
|
<view class="personnel-tag">专业配送</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="personnel-description"> |
|
|
|
<view class="description-text"> |
|
|
|
{{item.description || '拥有丰富的物流行业经验,熟悉各种货物的运输要求和流程,能够为客户提供专业的物流解决方案和优质的服务。'}} |
|
|
|
<text class="label">车型</text> |
|
|
|
<picker bindchange="bindVehicleTypeChange" value="{{vehicleTypeIndex}}" range="{{vehicleTypes}}"> |
|
|
|
<view class="picker"> |
|
|
|
{{vehicleTypes[vehicleTypeIndex]}} |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="personnel-contact-section"> |
|
|
|
<view class="personnel-contact-info"> |
|
|
|
<view class="contact-label">联系电话:</view> |
|
|
|
<view class="contact-value">{{item.phone}}</view> |
|
|
|
</picker> |
|
|
|
</view> |
|
|
|
|
|
|
|
<!-- 车长 --> |
|
|
|
<view class="form-item"> |
|
|
|
<text class="label">车长</text> |
|
|
|
<picker bindchange="bindTruckLengthChange" value="{{truckLengthIndex}}" range="{{truckLengths}}"> |
|
|
|
<view class="picker"> |
|
|
|
{{truckLengths[truckLengthIndex]}} |
|
|
|
</view> |
|
|
|
<button class="contact-btn" bindtap="makePhoneCall" data-phone="{{item.phone}}"> |
|
|
|
<text>立即联系</text> |
|
|
|
</button> |
|
|
|
</view> |
|
|
|
</picker> |
|
|
|
</view> |
|
|
|
<view wx:if="{{logisticsPersonnel.length === 0}}" class="empty-state"> |
|
|
|
<text>暂无物流人员信息</text> |
|
|
|
|
|
|
|
<!-- 车型详情提示 --> |
|
|
|
<view class="form-item"> |
|
|
|
<text class="label">车型载重/体积参考</text> |
|
|
|
<text class="vehicle-info">{{vehicleInfo}}</text> |
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
@ -162,7 +159,7 @@ |
|
|
|
|
|
|
|
<!-- 计算按钮 --> |
|
|
|
<view class="calculate-section"> |
|
|
|
<button class="calculate-btn" bindtap="calculateFreight" loading="{{loading}}"> |
|
|
|
<button class="calculate-btn" bindtap="calculate" loading="{{loading}}"> |
|
|
|
<text>计算运费</text> |
|
|
|
</button> |
|
|
|
<button class="clear-btn" bindtap="clearInput"> |
|
|
|
@ -171,22 +168,34 @@ |
|
|
|
</view> |
|
|
|
|
|
|
|
<!-- 计算结果 --> |
|
|
|
<view class="result-section" wx:if="{{calculationResult}}"> |
|
|
|
<view class="result-section" wx:if="{{calculationResult || showResult}}"> |
|
|
|
<text class="section-title">计算结果</text> |
|
|
|
<view class="result-card"> |
|
|
|
<view class="result-item"> |
|
|
|
<text class="result-label">预估运费</text> |
|
|
|
<text class="result-value freight">{{calculationResult.freight}} 元</text> |
|
|
|
<text class="result-value freight">{{feeRange}}</text> |
|
|
|
</view> |
|
|
|
<view class="result-item"> |
|
|
|
<text class="result-label">运输距离</text> |
|
|
|
<text class="result-value">{{calculationResult.distance}} km</text> |
|
|
|
<text class="result-value">{{calculationResult ? calculationResult.distance + ' km' : ''}}</text> |
|
|
|
</view> |
|
|
|
<view class="result-item"> |
|
|
|
<text class="result-label">预计时效</text> |
|
|
|
<text class="result-value">{{calculationResult.deliveryTime}} 天</text> |
|
|
|
<text class="result-value">{{calculationResult ? calculationResult.deliveryTime + ' 天' : ''}}</text> |
|
|
|
</view> |
|
|
|
<view class="result-item" wx:if="{{showResult}}"> |
|
|
|
<text class="result-label">市场参考价</text> |
|
|
|
<text class="result-value">{{marketPrice}}</text> |
|
|
|
</view> |
|
|
|
<view class="result-item" wx:if="{{showResult}}"> |
|
|
|
<text class="result-label">合规性检查</text> |
|
|
|
<text class="result-value" style="color: {{isCompliant ? '#07C160' : '#F56C6C'}}">{{complianceStatus}}</text> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="detail-section" wx:if="{{showResult && detailText}}"> |
|
|
|
<text class="section-title">费用明细</text> |
|
|
|
<text class="detail-text">{{detailText}}</text> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
<!-- 历史记录 --> |
|
|
|
@ -222,6 +231,49 @@ |
|
|
|
<text>暂无历史记录</text> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
<!-- 物流人员信息 --> |
|
|
|
<view class="section"> |
|
|
|
<text class="section-title">物流人员信息</text> |
|
|
|
<view class="logistics-intro"> |
|
|
|
<text class="intro-text">我们拥有专业的物流团队,为您提供高效、安全的运输服务。以下是我们的物流专家,他们具有丰富的行业经验和专业知识,能够为您的货物运输提供专业的解决方案。</text> |
|
|
|
</view> |
|
|
|
<view class="logistics-personnel"> |
|
|
|
<view class="personnel-card" wx:for="{{logisticsPersonnel}}" wx:key="item.id"> |
|
|
|
<view class="personnel-header-section"> |
|
|
|
<view class="personnel-avatar"> |
|
|
|
<text class="avatar-text">{{item.name.charAt(0)}}</text> |
|
|
|
</view> |
|
|
|
<view class="personnel-header-info"> |
|
|
|
<view class="personnel-name">{{item.name}}</view> |
|
|
|
<view class="personnel-position">{{item.position}}</view> |
|
|
|
<view class="personnel-tags"> |
|
|
|
<view class="personnel-tag">{{item.experience}}年物流经验</view> |
|
|
|
<view class="personnel-tag">认证物流师</view> |
|
|
|
<view class="personnel-tag">专业配送</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="personnel-description"> |
|
|
|
<view class="description-text"> |
|
|
|
{{item.description || '拥有丰富的物流行业经验,熟悉各种货物的运输要求和流程,能够为客户提供专业的物流解决方案和优质的服务。'}} |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="personnel-contact-section"> |
|
|
|
<view class="personnel-contact-info"> |
|
|
|
<view class="contact-label">联系电话:</view> |
|
|
|
<view class="contact-value">{{item.phone}}</view> |
|
|
|
</view> |
|
|
|
<button class="contact-btn" bindtap="makePhoneCall" data-phone="{{item.phone}}"> |
|
|
|
<text>立即联系</text> |
|
|
|
</button> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view wx:if="{{logisticsPersonnel.length === 0}}" class="empty-state"> |
|
|
|
<text>暂无物流人员信息</text> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
<!-- 地址选择器 --> |
|
|
|
|