CRM-走访查看-优化新增走访报告报错问题
This commit is contained in:
@@ -28,7 +28,8 @@
|
|||||||
class="scroll-h" :class="{ 'loading-scroll': cssFlag }">
|
class="scroll-h" :class="{ 'loading-scroll': cssFlag }">
|
||||||
<view class="white-bg margin-bottom20" v-for="(item, index) in list" :key="index"
|
<view class="white-bg margin-bottom20" v-for="(item, index) in list" :key="index"
|
||||||
@longpress="touchstart(item)"
|
@longpress="touchstart(item)"
|
||||||
@tap="touchend"
|
longpress-time="1500"
|
||||||
|
@tap="touchend(item)"
|
||||||
>
|
>
|
||||||
<view>
|
<view>
|
||||||
<view class="report-list">
|
<view class="report-list">
|
||||||
@@ -257,7 +258,11 @@ function touchstart(item) {
|
|||||||
|
|
||||||
}
|
}
|
||||||
let isLongPressed = ref(false);
|
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) {
|
if (!isLongPressed.value) {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
|
|||||||
Reference in New Issue
Block a user