Merge remote-tracking branch 'origin/develop' into develop
This commit is contained in:
@@ -27,14 +27,16 @@
|
||||
:up="upOption" :down="downOption" :fixed="false" textColor="#ffffff" bgColor="#ffffff"
|
||||
class="scroll-h" :class="{ 'loading-scroll': cssFlag }">
|
||||
<view class="white-bg margin-bottom20" v-for="(item, index) in list" :key="index"
|
||||
@touchstart.prevent="touchstart(item)" @touchend.prevent="touchend">
|
||||
@longpress="touchstart(item)"
|
||||
@tap="touchend"
|
||||
>
|
||||
<view>
|
||||
<view class="report-list">
|
||||
<view class="title">客户:{{ item.cusName }}</view>
|
||||
<view class="r-list">
|
||||
<view class="r-name">{{ item.visistCode }}</view>
|
||||
<view @touchstart.stop="handleStatusTouchStart"
|
||||
@touchend.stop="handleStatusTouchEnd" @click.stop="chooseStatus(item)">
|
||||
<view
|
||||
@click.stop="chooseStatus(item)">
|
||||
<view v-if="item.status == '驳回'" class="r-right btn-orange" size="mini">
|
||||
{{ item.status == '驳回' ? '再次提交' : item.status }}
|
||||
</view>
|
||||
@@ -211,8 +213,6 @@ const getVisitorReportList = (pageNum, pageSize) => {
|
||||
}
|
||||
|
||||
|
||||
let Loop = ref(0)
|
||||
let now
|
||||
const visistId = ref();
|
||||
const cusName = ref();
|
||||
const cusId = ref();
|
||||
@@ -223,9 +223,6 @@ function touchstart(item) {
|
||||
cusName.value = item.cusName
|
||||
cusId.value = item.cusId
|
||||
status.value = item.status
|
||||
now = new Date();
|
||||
clearInterval(Loop.value); //再次清空定时器,防止重复注册定时器
|
||||
Loop.value = setTimeout(() => {
|
||||
uni.showModal({
|
||||
title: '删除',
|
||||
content: '请问要删除本条消息吗?',
|
||||
@@ -257,21 +254,25 @@ function touchstart(item) {
|
||||
}
|
||||
}
|
||||
});
|
||||
}, 750);
|
||||
|
||||
}
|
||||
|
||||
let isLongPressed = ref(false);
|
||||
function touchend() {
|
||||
let endDate = new Date();
|
||||
console.log('结束时间', endDate)
|
||||
let cha = endDate.getTime() - now.getTime();
|
||||
console.log(cha, 'casd')
|
||||
if (cha < 750) {
|
||||
// 如果未触发长按,则执行点击逻辑
|
||||
if (!isLongPressed.value) {
|
||||
uni.navigateTo({
|
||||
url: "/pages/business/CRM/marketActivity/visitorReportEnter?visistId=" + visistId.value + '&cusName=' + cusName.value + '&cusId=' + cusId.value + '&status=' + status.value
|
||||
url: "/pages/business/CRM/marketActivity/visitorReportEnter?visistId="
|
||||
+ visistId.value
|
||||
+ '&cusName='
|
||||
+ cusName.value
|
||||
+ '&cusId='
|
||||
+ cusId.value
|
||||
+ '&status='
|
||||
+ status.value
|
||||
})
|
||||
}
|
||||
clearInterval(Loop.value);
|
||||
// 重置状态(避免影响下次事件)
|
||||
isLongPressed.value = false;
|
||||
}
|
||||
|
||||
//点击状态按钮
|
||||
|
||||
Reference in New Issue
Block a user