提交 2995c083 authored 作者: lhh's avatar lhh

update

上级 97377249
...@@ -29,9 +29,11 @@ getMembersList().then(res => { ...@@ -29,9 +29,11 @@ getMembersList().then(res => {
// 最近活跃客户的事件 // 最近活跃客户的事件
let eventData = $ref<{ list: any }>() let eventData = $ref<{ list: any }>()
const getEvent = function (id: string) { const getEvent = function (id: string) {
getEventList({ member_id: id }).then(res => { if (id) {
eventData = res.data getEventList({ member_id: id }).then(res => {
}) eventData = res.data
})
}
} }
// 切换客户事件 // 切换客户事件
...@@ -86,14 +88,16 @@ const getDate = function (date: string) { ...@@ -86,14 +88,16 @@ const getDate = function (date: string) {
<div <div
:class="item.isActive ? 'content-user_item active' : 'content-user_item'" :class="item.isActive ? 'content-user_item active' : 'content-user_item'"
v-for="item in userList" v-for="item in userList"
@click="handleUser(item)"> @click="handleUser(item)"
>
<img <img
:src=" :src="
item?.gender === '1' item?.gender === '1'
? 'https://webapp-pub.ezijing.com/pages/assa/dml_boy.png' ? 'https://webapp-pub.ezijing.com/pages/assa/dml_boy.png'
: 'https://webapp-pub.ezijing.com/pages/assa/dml_girl.png' : 'https://webapp-pub.ezijing.com/pages/assa/dml_girl.png'
" "
alt="" /> alt=""
/>
<div class="name">{{ item.name }}</div> <div class="name">{{ item.name }}</div>
</div> </div>
</div> </div>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论