Commit 980f566f by chenwq

个人中心-看线索

1 parent 1f158b37
...@@ -42,6 +42,19 @@ Page({ ...@@ -42,6 +42,19 @@ Page({
selectIndex: 2 selectIndex: 2
} }
], ],
levelTagObj: {
1: {
label: '初步了解'
},
2: {
label: '深入了解',
class: 'tag-red'
},
3: {
label: '签约成交',
class: 'tag-blue'
}
},
clueList: [], clueList: [],
// 看线索部分 // 看线索部分
unreadClueCount: 0, unreadClueCount: 0,
......
...@@ -105,6 +105,24 @@ ...@@ -105,6 +105,24 @@
width: 20px; width: 20px;
height: 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 { .line {
......
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
<view class="name" hover-class="none" hover-stop-propagation="false"> <view class="name" hover-class="none" hover-stop-propagation="false">
{{item.nickName}} {{item.nickName}}
<image webp class="avatar" src="{{IMG_URL}}index/man.png" wx:if="{{item.clueType != 3}}" /> <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>
<view class="source" hover-class="none" hover-stop-propagation="false">通过门店助手申请</view> <view class="source" hover-class="none" hover-stop-propagation="false">通过门店助手申请</view>
</view> </view>
...@@ -64,6 +65,7 @@ ...@@ -64,6 +65,7 @@
<view class="name" hover-class="none" hover-stop-propagation="false"> <view class="name" hover-class="none" hover-stop-propagation="false">
{{item.nickName}} {{item.nickName}}
<image webp class="avatar" src="{{IMG_URL}}index/avatar.png" wx:if="{{item.clueType != 3}}" /> <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>
<view class="line" hover-class="none" hover-stop-propagation="false" /> <view class="line" hover-class="none" hover-stop-propagation="false" />
<!-- {{item.getMoreFlag?'height':'auto'}} --> <!-- {{item.getMoreFlag?'height':'auto'}} -->
......
...@@ -120,7 +120,7 @@ Page({ ...@@ -120,7 +120,7 @@ Page({
sessionId sessionId
} }
readApi(param).then(res => { readApi(param).then(res => {
let { code } = res let { code, data } = res
if (code == 0) { if (code == 0) {
this.setData({ this.setData({
['boxItemList[' + idx + ']isRead']: !data.unreadClueCount ['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!