Commit f4cd0f29 by 前端

commit

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