Merge remote-tracking branch 'origin/develop' into develop

This commit is contained in:
wangzhuo
2025-09-16 18:06:13 +08:00
3 changed files with 13 additions and 4 deletions

View File

@@ -28,7 +28,8 @@
class="scroll-h" :class="{ 'loading-scroll': cssFlag }">
<view class="white-bg margin-bottom20" v-for="(item, index) in list" :key="index"
@longpress="touchstart(item)"
@tap="touchend"
longpress-time="1500"
@tap="touchend(item)"
>
<view>
<view class="report-list">
@@ -257,7 +258,11 @@ function touchstart(item) {
}
let isLongPressed = ref(false);
function touchend() {
function touchend(item) {
visistId.value = item.visistId
cusName.value = item.cusName
cusId.value = item.cusId
status.value = item.status
// 如果未触发长按,则执行点击逻辑
if (!isLongPressed.value) {
uni.navigateTo({