From 87779aa2eb38f07e266ecb536e8ecd30c3b994b5 Mon Sep 17 00:00:00 2001
From: doum <doum>
Date: 星期二, 28 四月 2026 18:55:33 +0800
Subject: [PATCH] 支付宝支付ddd

---
 small-program/pages/luggage-storage/luggage-storage.vue |  107 +++++++++++++++++++++++++++++++++++++++++++----------
 1 files changed, 87 insertions(+), 20 deletions(-)

diff --git a/small-program/pages/luggage-storage/luggage-storage.vue b/small-program/pages/luggage-storage/luggage-storage.vue
index 92f2114..cc509dd 100644
--- a/small-program/pages/luggage-storage/luggage-storage.vue
+++ b/small-program/pages/luggage-storage/luggage-storage.vue
@@ -145,10 +145,12 @@
 						:class="{ active: item.count > 0 }"
 					>
 						<view class="luggage-info">
-							<image class="luggage-image" :src="item.iconFull" mode="widthFix"></image>
+							<view class="luggage-image">
+								<image style="height: 100%;"  :src="item.iconFull" mode="heightFix"></image>
+							</view>
 							<view class="luggage-copy">
 								<text class="luggage-name">{{ item.name }}</text>
-								<text class="luggage-size">{{ item.otherField || '' }}</text>
+								<text class="luggage-size">{{ item.remark || '' }}</text>
 							</view>
 						</view>
 						<view class="luggage-stepper">
@@ -208,9 +210,13 @@
 							<text class="unit-text">鍏�</text>
 						</view>
 					</view>
-					<view v-if="amountData" class="insurance-tip-row">
-						<text class="insurance-tip-label">鐗╁搧淇濊垂:</text>
-						<text class="insurance-tip-value">锟{ amountData.insuranceFee }}</text>
+					<view v-if="amountData || showInsuranceTip" class="insurance-tip-row">
+						<text v-if="showInsuranceTip" class="insurance-tip-warning">{{ showInsuranceTipText }}</text>
+						<text v-else></text>
+						<view style="display: flex; align-items: center;">
+							<text v-if="amountData" class="insurance-tip-label">鐗╁搧淇濊垂:</text>
+							<text v-if="amountData" class="insurance-tip-value">锟{ amountData.insuranceFee }}</text>
+						</view>
 					</view>
 				</view>
 
@@ -255,7 +261,7 @@
 									<image class="store-option-address-icon" src="/static/icon/home_ic_location3@2x.png" mode="widthFix"></image>
 									<text class="store-option-address">{{ item.address }}</text>
 								</view>
-								<text class="store-option-time">{{ item.time }}</text>
+								<text class="store-option-time">{{ item.shopHours || '' }}</text>
 							</view>
 						</view>
 						<view v-if="tempSelectedStoreId === item.id" class="store-check">
@@ -317,6 +323,18 @@
 						</view>
 						<text class="amount-row-value">{{ '锟�' + item.unitPrice }}</text>
 					</view>
+					<view v-if="activeMode === 'city' && amountData.distance" class="amount-row amount-row-extra">
+						<view class="amount-row-left">
+							<text class="amount-row-label">閰嶉�侀噷绋�</text>
+						</view>
+						<text class="amount-row-value">{{ amountData.distance + 'km' }}</text>
+					</view>
+					<view v-if="amountData.insuranceFee" class="amount-row amount-row-extra">
+						<view class="amount-row-left">
+							<text class="amount-row-label">琛屾潕淇濅环</text>
+						</view>
+						<text class="amount-row-value">{{ '锟�' + amountData.insuranceFee }}</text>
+					</view>
 				</view>
 				<view class="agreement-bar popup-agreement-bar" @click="toggleAgreement">
 					<image class="agreement-icon" :src="agreementChecked ? '/static/icon/ic_accept_sel@2x.png' : '/static/icon/ic_accept@2x.png'" mode="widthFix" />
@@ -329,7 +347,7 @@
 					<view class="total-wrap">
 						<text class="total-label">鎬昏垂鐢�</text>
 						<text class="total-price">{{ amountData ? '锟�' + amountData.totalPrice : '锟�--' }}</text>
-						<view @click="showAmountPopup = false">
+						<view style="display: flex; align-items: center;" @click="showAmountPopup = false">
 							<text class="detail-text">鏄庣粏</text>
 							<u-icon name="arrow-up" size="13" color="#7B7F86"></u-icon>
 						</view>
@@ -359,6 +377,7 @@
 				<view class="submit-btn active-submit-btn" @click="createOrder">绔嬪嵆涓嬪崟</view>
 			</view>
 		</view>
+		
 		<!-- 閫夋嫨鏈嶅姟鐐�/鍦板潃 -->
 		<u-action-sheet
 			:show="showReceiveAddress"
@@ -406,6 +425,8 @@
 					goodsImages: [],
 				},
 				amountData: null,
+				showInsuranceTip: false,
+				showInsuranceTipText: '',
 				luggageTypes: [],
 				serviceTimes: [],
 
@@ -647,6 +668,8 @@
 				}
 				this.form.goodTypeName = this.goodsOptions.find(item => item.active)?.name || ''
 				this.form.goodType = this.goodsOptions.find(item => item.active)?.id || ''
+				this.showInsuranceTip = this.goodsOptions.find(item => item.active)?.relationOtherField === '1'
+				this.showInsuranceTipText = this.goodsOptions.find(item => item.active)?.relationRemark
 				this.showGoodsPopup = false
 			},
 			confirmArriveTime(e) {
@@ -821,10 +844,6 @@
 				}
 			},
 			async createOrder() {
-				if (!this.agreementChecked) {
-					uni.showToast({ title: '璇峰厛闃呰骞跺悓鎰忕敤鎴锋湇鍔″崗璁強闅愮鏀跨瓥', icon: 'none' })
-					return
-				}
 				if (this.activeMode === 'local') {
 					if (!this.selectedStore) {
 						uni.showToast({ title: '璇烽�夋嫨闂ㄥ簵', icon: 'none' })
@@ -839,6 +858,20 @@
 						uni.showToast({ title: '璇烽�夋嫨鍙栦欢鍦板潃', icon: 'none' })
 						return
 					}
+				}
+				if (!this.form.receiver) {
+					uni.showToast({ title: '璇疯緭鍏ユ敹浠朵汉濮撳悕', icon: 'none' })
+					return
+				}
+				if (!this.form.mobile) {
+					uni.showToast({ title: '璇疯緭鍏ユ敹浠朵汉鐢佃瘽', icon: 'none' })
+					return
+				}
+				const mobileRegex = /^1\d{10}$/
+				const landlineRegex = /^\d{3,4}-?\d{7,8}$/
+				if (!mobileRegex.test(this.form.mobile) && !landlineRegex.test(this.form.mobile)) {
+					uni.showToast({ title: '璇疯緭鍏ユ纭殑鎵嬫満鍙锋垨鍥哄畾鐢佃瘽', icon: 'none' })
+					return
 				}
 				if (!this.form.arriveTime) {
 					uni.showToast({ title: '璇烽�夋嫨棰勮鍒板簵鏃堕棿', icon: 'none' })
@@ -860,6 +893,26 @@
 					}))
 				if (luggageList.length === 0) {
 					uni.showToast({ title: '璇烽�夋嫨琛屾潕绫诲瀷', icon: 'none' })
+					return
+				}
+				if (!this.form.goodType) {
+					uni.showToast({ title: '璇烽�夋嫨鐗╁搧淇℃伅', icon: 'none' })
+					return
+				}
+				if (!this.form.goodsImages ||!this.form.goodsImages.length) {
+					uni.showToast({ title: '璇蜂笂浼犵墿鍝佺収鐗�', icon: 'none' })
+					return
+				}
+				if (!this.form.goodsImages ||!this.form.goodsImages.length) {
+					uni.showToast({ title: '璇蜂笂浼犵墿鍝佺収鐗�', icon: 'none' })
+					return
+				}
+				if (this.form.insurance === '' || this.form.insurance <= 0) {
+					uni.showToast({ title: '璇疯緭鍏ヤ繚浠疯垂', icon: 'none' })
+					return
+				}
+				if (!this.agreementChecked) {
+					uni.showToast({ title: '璇峰厛闃呰骞跺悓鎰忕敤鎴锋湇鍔″崗璁強闅愮鏀跨瓥', icon: 'none' })
 					return
 				}
 				const items = luggageList.map(item => ({
@@ -925,9 +978,11 @@
 						} else {
 							uni.showToast({ title: '鏀粯澶辫触', icon: 'none' })
 						}
-						uni.redirectTo({
-							url: '/pages/delivery-order-detail/delivery-order-detail?id=' + orderId
+						uni.setStorageSync("orderStatus",-2)
+						uni.switchTab({
+							url: '/pages/itinerary/itinerary'
 						});
+						 
 					}
 				})
 			}
@@ -967,8 +1022,8 @@
 		position: relative;
 		width: 50%;
 		text-align: center;
-		font-size: 28rpx;
-		font-weight: 500;
+	    font-weight: 600;
+	    font-size: 32rpx;
 		color: #9097a3;
 	}
 
@@ -1001,8 +1056,7 @@
 	.store-popup-wrap {
 		background: #ffffff;
 		border-radius: 24rpx 24rpx 0 0;
-		padding: 0 30rpx;
-		box-sizing: border-box;
+		padding: 0 30rpx 16rpx 30rpx;
 		box-sizing: border-box;
 	}
 
@@ -1126,16 +1180,20 @@
 	.store-option-address-row {
 		margin-top: 8rpx;
 		display: flex;
-		align-items: center;
+		align-items: flex-start;
+		flex-wrap: wrap;
 	}
 
 	.store-option-address-icon {
+		flex-shrink: 0;
 		width: 24rpx;
 		height: 24rpx;
 		margin-right: 4rpx;
+		margin-top: 6rpx;
 	}
 
 	.store-option-address {
+		flex: 1;
 		font-size: 26rpx;
 		color: #9ea4af;
 	}
@@ -1444,7 +1502,7 @@
 
 	.luggage-item {
 		display: flex;
-		align-items: baseline;
+		align-items: flex-end;
 		justify-content: space-between;
 		padding: 24rpx;
 		box-sizing: border-box;
@@ -1470,6 +1528,9 @@
 		height: 100rpx;
 		border-radius: 8rpx;
 		margin-right: 18rpx;
+		display: flex;
+		align-items: center;
+		justify-content: center;
 		background: #f0f1f4;
 		overflow: hidden;
 		margin-right: 24rpx;
@@ -1832,7 +1893,7 @@
 		padding-bottom: 14rpx;
 		display: flex;
 		align-items: center;
-		justify-content: flex-end;
+		justify-content: space-between;
 		font-size: 22rpx;
 	}
 
@@ -1840,6 +1901,12 @@
 		color: #999999;
 	}
 
+	.insurance-tip-warning {
+		color: #ff4d4f;
+		font-size: 22rpx;
+		font-weight: 400;
+	}
+
 	.insurance-tip-value {
 		margin-left: 8rpx;
 		color: #ff4d4f;

--
Gitblit v1.9.3