From 7298d5354963a88643a543b51b90192dc9fc934c Mon Sep 17 00:00:00 2001
From: doum <doum>
Date: 星期四, 11 九月 2025 18:43:14 +0800
Subject: [PATCH] 最新版本541200007
---
h5/pages/wdata/detail.vue | 74 ++++++++++++++++++++++++++++++++++--
1 files changed, 69 insertions(+), 5 deletions(-)
diff --git a/h5/pages/wdata/detail.vue b/h5/pages/wdata/detail.vue
index f831583..954b360 100644
--- a/h5/pages/wdata/detail.vue
+++ b/h5/pages/wdata/detail.vue
@@ -102,6 +102,14 @@
</view>
</view>
<view v-if="info.logisticsStatus == 0" @click="startTrans" class="start_btn">鍚繍</view>
+ <!-- -->
+ <view v-if="showTip" class="tip_wrap">
+ <view class="title">鎻愮ず</view>
+ <view class="text">杞﹁締鍒氬惎杩愶紝鏆傛棤娉曡繘琛屽埌</view>
+ <view class="text">璐ф搷浣滐紝璇�5鍒嗛挓鍚庡啀璇�</view>
+ <view class="btn" @click="showTip = false">鎴戠煡閬撲簡</view>
+ </view>
+ <view v-if="showTip" class="shade"></view>
</view>
</template>
@@ -110,7 +118,6 @@
putTaskDetail,
putDriverArrival,
putDriverStart,
-
} from '@/api'
export default {
data() {
@@ -118,7 +125,8 @@
info: {
productDetails: [],
transportStop: []
- }
+ },
+ showTip: false
};
},
onLoad(options) {
@@ -143,7 +151,10 @@
id: this.id,
optType: 0
}).then((ress) => {
- if (ress.code == 200) {
+ if (ress.code == 200) {
+ const transportList = uni.getStorageSync('transportList') || []
+ transportList.push({ id: this.id, time: new Date().getTime() })
+ uni.setStorageSync('transportList', transportList)
this.showToast('鍚繍鎴愬姛')
this.getDetail()
}
@@ -157,7 +168,16 @@
title: '鎻愮ず',
content: '纭鍒拌揣涔堬紵',
success: (res) => {
- if (res.confirm) {
+ if (res.confirm) {
+ const transportList = uni.getStorageSync('transportList') || []
+ const item = transportList.find(i => i.id == this.id)
+ if(item && item.id){
+ const timeN = new Date().getTime() - item.time
+ if(timeN < 5 * 60 * 1000){
+ this.showTip = true
+ return
+ }
+ }
putDriverArrival({
stopNumber,
optType: 1,
@@ -179,8 +199,52 @@
<style lang="scss">
page {
background-color: #f7f7f7;
+ }
+ .shade{
+ width: 100vw;
+ height: 100vh;
+ background: #000000;
+ opacity: 0.4;
+ position: fixed;
+ left: 0;
+ top: 0;
+ z-index: 99;
}
-
+ .tip_wrap{
+ position: fixed;
+ top: 0;
+ left: 0;
+ bottom: 0;
+ right: 0;
+ margin: auto;
+ width: 560rpx;
+ height: 328rpx;
+ background: #FFFFFF;
+ border-radius: 24rpx;
+ text-align: center;
+ z-index: 999;
+ .title{
+ font-weight: 500;
+ font-size: 32rpx;
+ color: #111111;
+ margin: 40rpx 0 30rpx;
+ }
+ .text{
+ font-weight: 400;
+ font-size: 28rpx;
+ color: #333333;
+ }
+ .btn{
+ margin-top: 32rpx;
+ height: 100rpx;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ border-top: 1rpx solid #E5E5E5;
+ color: #279BAA;
+ font-size: 32rpx;
+ }
+ }
.head_bg {
width: 750rpx;
height: 240rpx;
--
Gitblit v1.9.3