Commit 980f566f by chenwq

个人中心-看线索

1 parent 1f158b37
......@@ -42,6 +42,19 @@ Page({
selectIndex: 2
}
],
levelTagObj: {
1: {
label: '初步了解'
},
2: {
label: '深入了解',
class: 'tag-red'
},
3: {
label: '签约成交',
class: 'tag-blue'
}
},
clueList: [],
// 看线索部分
unreadClueCount: 0,
......
......@@ -105,6 +105,24 @@
width: 20px;
height: 20px;
}
.level-tag {
width: 96rpx;
height: 32rpx;
line-height: 32rpx;
font-size: 20rpx;
color: #FFFFFF;
background: #48D241;
border-radius: 6rpx;
margin-left: 24rpx;
text-align: center;
}
.tag-red {
background: #FD6C59;
}
.tag-blue {
background: #557CF7;
}
}
.line {
......
......@@ -16,6 +16,7 @@
<view class="name" hover-class="none" hover-stop-propagation="false">
{{item.nickName}}
<image webp class="avatar" src="{{IMG_URL}}index/man.png" wx:if="{{item.clueType != 3}}" />
<view class="level-tag {{levelTagObj[item.levelTag] ? levelTagObj[item.levelTag].class : ''}}">{{levelTagObj[item.levelTag] ? levelTagObj[item.levelTag].label : ''}}</view>
</view>
<view class="source" hover-class="none" hover-stop-propagation="false">通过门店助手申请</view>
</view>
......@@ -64,6 +65,7 @@
<view class="name" hover-class="none" hover-stop-propagation="false">
{{item.nickName}}
<image webp class="avatar" src="{{IMG_URL}}index/avatar.png" wx:if="{{item.clueType != 3}}" />
<view class="level-tag {{levelTagObj[item.levelTag] ? levelTagObj[item.levelTag].class : ''}}">{{levelTagObj[item.levelTag] ? levelTagObj[item.levelTag].label : ''}}</view>
</view>
<view class="line" hover-class="none" hover-stop-propagation="false" />
<!-- {{item.getMoreFlag?'height':'auto'}} -->
......
......@@ -120,7 +120,7 @@ Page({
sessionId
}
readApi(param).then(res => {
let { code } = res
let { code, data } = res
if (code == 0) {
this.setData({
['boxItemList[' + idx + ']isRead']: !data.unreadClueCount
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!