Commit f4cd0f29 by 前端

commit

1 parent fd3cdb46
......@@ -8,7 +8,6 @@
<div class="apply-item-head">
<div class="title flex">
<div class="maxWidth">{{ i.merchantName }}</div>
<!-- (新能源·代理商) -->
</div>
<div class="type">主营: {{ i.carModel ? i.carModel : '--' }}</div>
</div>
......@@ -17,7 +16,7 @@
<div class="title">申请场景</div>
<div class="info">{{ i.businessScenario ? i.businessScenario : '--' }}</div>
</div>
<div class="content-wrap flex">
<div class="content-wrap flex-top">
<div class="title">申请活动</div>
<div class="info">{{ i.productItems ? i.productItems : '--' }}</div>
</div>
......@@ -28,7 +27,7 @@
<div class="content-wrap flex">
<div class="title">申请人</div>
<div class="info linkman flex" @click="makePhone(i)">
{{ i.contactName }}
<div style="max-width: 43px; overflow: hidden; white-space: nowrap">{{ i.contactName }}</div>
<span class="phone-num">{{ i.contactPhone }}</span>
<div class="sprite-icon icon-phone"></div>
</div>
......@@ -40,11 +39,11 @@
<van-popover v-model="showPopover" theme="dark" placement="top-start">
<div class="tip">点击可切换状态</div>
<template #reference>
<div :class="['sprite-icon', i.followType == 0 ? ' icon-remove' : ' icon-collect']" @click="checkCollect(i)"></div>
<div :class="['sprite-icon', i.followType == 0 ? ' icon-remove' : ' icon-collect']" @click.stop="checkCollect(i)"></div>
</template>
</van-popover>
</template>
<div v-else :class="['sprite-icon', i.followType == 0 ? ' icon-remove' : ' icon-collect']" @click="checkCollect(i)"></div>
<div v-else :class="['sprite-icon', i.followType == 0 ? ' icon-remove' : ' icon-collect']" @click.stop="checkCollect(i)"></div>
<div :class="['follew-result', i.followType == 0 ? 'fail' : 'success']">{{ i.followType == 0 ? '未跟进' : '已跟进' }}</div>
</div>
<div class="record" @click.stop="popupShow(i)">访问记录</div>
......@@ -77,10 +76,12 @@ export default {
count: 1,
pageNum: 0,
pageSize: 20,
showPopover: true
showPopover: true,
uuid: ''
}
},
mounted() {
this.uuid = this.getLocalStorage('dj_scrm_userInfo').uuid ? this.getLocalStorage('dj_scrm_userInfo').uuid : null
setTimeout(() => {
this.showPopover = false
}, 3000)
......@@ -108,14 +109,15 @@ export default {
this.finished = true
}
},
activityRecord() {
activityRecord(isdiff) {
this.loading = true
const { pageNum, pageSize } = this
businessApi.activityRecord({ pageNum, pageSize }).then(res => {
const { pageNum, pageSize, uuid } = this
businessApi.activityRecord({ pageNum, pageSize, userType: 2, uuid }).then(res => {
if (res) {
const dataList = res.data
this.dataList = this.dataList.concat(dataList)
this.count = res.count
if(isdiff) Toast('刷新成功');
if (this.dataList.length <= this.count) {
if (this.count === 0) {
this.finished = true
......@@ -130,7 +132,8 @@ export default {
onRefresh() {
this.dataList = []
this.pageNum = 1
this.activityRecord()
let isdiff = 1
this.activityRecord(isdiff)
if (this.refreshing) {
this.content = this.dataList
this.dataList = this.content
......@@ -149,6 +152,7 @@ export default {
})
},
checkCollect(item) {
this.show = false
let data = {
activityId: item.activityId,
followType: item.followType == 0 ? 1 : 0
......@@ -219,7 +223,6 @@ export default {
margin-left: 16px;
}
.linkman {
width: 178px;
height: 32px;
background: #f5f7fa;
border-radius: 4px;
......@@ -250,6 +253,10 @@ export default {
text-align: right;
}
}
.icon-remove,
.icon-collect {
margin-right: 8px;
}
}
}
</style>
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!