From 17ecbaae8d036bb1f59b1d74b153fa9dfe542f3f Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期四, 27 三月 2025 14:17:36 +0800
Subject: [PATCH] 解决h5访客申请bug
---
h5/pages/driver/reserved.vue | 33 ++++++++++++++++++++++++++-------
1 files changed, 26 insertions(+), 7 deletions(-)
diff --git a/h5/pages/driver/reserved.vue b/h5/pages/driver/reserved.vue
index 1ec23fd..b5ff413 100644
--- a/h5/pages/driver/reserved.vue
+++ b/h5/pages/driver/reserved.vue
@@ -15,9 +15,9 @@
<view class="line">
<view class="label">
<text>*</text>
- <text>鍚堝悓鍙�</text>
+ <text>鍚堝悓/鍗曟嵁缂栧彿</text>
</view>
- <view class="value"><input type="text" placeholder="璇疯緭鍏ユ偍鐨勫悎鍚屽彿" v-model="param.contractNum" placeholder-style="color: #999999;" /></view>
+ <view class="value"><input type="text" placeholder="璇疯緭鍏ユ偍鐨勫悎鍚�/鍗曟嵁缂栧彿" v-model="param.contractNum" placeholder-style="color: #999999;" /></view>
</view>
<!-- -->
<view class="line">
@@ -33,7 +33,7 @@
<view class="line">
<view class="label">
<text>*</text>
- <text>鍏ュ簱绫诲瀷</text>
+ <text>浣滀笟绫诲瀷</text>
</view>
<view class="value">
<view class="btns">
@@ -55,7 +55,7 @@
<view class="line">
<view class="label">
<text>*</text>
- <text>鍑嗚繍璇佺収鐗�</text>
+ <text>鍑嗚繍璇�/杩愬崟鐓х墖</text>
</view>
<view class="value" @click="handleUpload">
<image v-if="param.transportImgFull" class="upload_wrap" :src="param.transportImgFull" alt="">
@@ -113,6 +113,7 @@
closeOnClickOverlay
:minDate="new Date().getTime()"
mode="datetime"
+ :formatter="formatter"
@close="showDatetime = false"
@cancel="showDatetime = false"
@confirm="setinDate"
@@ -151,6 +152,24 @@
this.initData()
},
methods: {
+ formatter(type, value) {
+ if (type === 'year') {
+ return `${value}骞碻
+ }
+ if (type === 'month') {
+ return `${value}鏈坄
+ }
+ if (type === 'day') {
+ return `${value}鏃
+ }
+ if (type === 'hour') {
+ return `${value}鏃禶
+ }
+ if (type === 'minute') {
+ return `${value}鍒哷
+ }
+ return value
+ },
checkSurplus() {
const { arriveDate, reasonId, totalNum } = this.param
if(!arriveDate || !reasonId || !totalNum) return
@@ -175,14 +194,14 @@
onSubmit() {
const param = { ...this.param }
if (!param.arriveDate) return this.showToast('璇烽�夋嫨鍒板満鏃堕棿')
- if (!param.inType && param.inType != 0) return this.showToast('璇烽�夋嫨鍏ュ簱绫诲瀷')
- if (!param.contractNum) return this.showToast('璇疯緭鍏ュ悎鍚屽彿')
+ if (!param.inType && param.inType != 0) return this.showToast('璇烽�夋嫨浣滀笟绫诲瀷')
+ if (!param.contractNum) return this.showToast('璇疯緭鍏ュ悎鍚�/鍗曟嵁缂栧彿')
if (!param.totalNum) return this.showToast('璇疯緭鍏ユ�昏繍杈撻噺')
if (!param.driverName) return this.showToast('璇疯緭鍏ュ徃鏈哄鍚�')
if (!param.driverPhone) return this.showToast('璇疯緭鍏ユ墜鏈哄彿')
if (!param.carCodeFront) return this.showToast('璇疯緭鍏ヨ溅鍓嶇墝鍙�')
if (!param.carCodeBack) return this.showToast('璇疯緭鍏ヨ溅鍚庣墝鍙�')
- if (!param.transportImgFull) return this.showToast('璇蜂笂浼犲噯杩愯瘉鐓х墖')
+ if (!param.transportImgFull) return this.showToast('璇蜂笂浼犲噯杩愯瘉/杩愬崟鐓х墖')
param.arriveDate = param.arriveDate + ':00'
let fn = param.id ? driverCarApplyEdit : driverCarApply
fn({...param}).then(res => {
--
Gitblit v1.9.3