Commit 286670b4 by 王志慧
2 parents 6b8532c9 d8fd22d1
...@@ -19,9 +19,10 @@ ...@@ -19,9 +19,10 @@
</div> </div>
<div class="business-card-buttom">客户名片</div> <div class="business-card-buttom">客户名片</div>
</div> </div>
<div class="container-bottom-title">邀入并创建新群聊</div>
</div> </div>
<div class="container-bottom"> <div class="container-bottom">
<div class="container-bottom-ttile">邀入并创建新群聊</div>
<div class="groups-list" v-if="groupList.length > 0 ? true : false"> <div class="groups-list" v-if="groupList.length > 0 ? true : false">
<div class="groups-item" v-for="item in groupList" :key="item.index"> <div class="groups-item" v-for="item in groupList" :key="item.index">
<div class="groups-item-top"> <div class="groups-item-top">
...@@ -179,8 +180,6 @@ export default { ...@@ -179,8 +180,6 @@ export default {
wxConfig wxConfig
.getCurExternalContact() .getCurExternalContact()
.then(userId => { .then(userId => {
this.hideLoading()
this.flag = true
console.log(userId, '11111') console.log(userId, '11111')
this.userId = userId this.userId = userId
let externalUserId = userId let externalUserId = userId
...@@ -188,6 +187,8 @@ export default { ...@@ -188,6 +187,8 @@ export default {
//获取客户信息 //获取客户信息
groupChat.getDetail({ userId: externalUserId }).then(res => { groupChat.getDetail({ userId: externalUserId }).then(res => {
console.log(res, 'data') console.log(res, 'data')
this.hideLoading()
this.flag = true
this.businessCard = res.info this.businessCard = res.info
this.vehicleInfoList = res.vehicleInfoList this.vehicleInfoList = res.vehicleInfoList
groupChat.getList({ externalUserId: externalUserId }).then(res => { groupChat.getList({ externalUserId: externalUserId }).then(res => {
...@@ -242,16 +243,12 @@ export default { ...@@ -242,16 +243,12 @@ export default {
</script> </script>
<style scoped> <style scoped>
.container { .container {
top: 0;
left: 0;
position: fixed;
width: 100%;
height: 100vh;
background: #f7f7f7; background: #f7f7f7;
box-sizing: border-box; box-sizing: border-box;
} }
.container-customerBox { .container-customerBox {
padding: 14px 16px 0px 16px; /* padding: 14px 16px 0px 16px; */
padding-bottom: 50px;
} }
.business-card { .business-card {
margin: 0; margin: 0;
...@@ -267,6 +264,7 @@ export default { ...@@ -267,6 +264,7 @@ export default {
margin-left: 55px; margin-left: 55px;
margin-top: 10px; margin-top: 10px;
border-radius: 4px; border-radius: 4px;
margin-bottom: 17px;
} }
.business-card-top { .business-card-top {
display: flex; display: flex;
...@@ -388,8 +386,11 @@ export default { ...@@ -388,8 +386,11 @@ export default {
word-wrap: break-word; word-wrap: break-word;
} }
.container-top { .container-top {
border-bottom: 1px solid rgba(0, 0, 0, 0.1); padding: 14px 16px;
padding-bottom: 17px; position: sticky;
z-index: 1;
background-color: rgb(247, 247, 247);
top: 0;
} }
.container-bottom-title { .container-bottom-title {
font-size: 16px; font-size: 16px;
...@@ -397,10 +398,11 @@ export default { ...@@ -397,10 +398,11 @@ export default {
font-weight: 500; font-weight: 500;
color: #3a3a3a; color: #3a3a3a;
line-height: 22px; line-height: 22px;
border-top: 1px solid rgba(0, 0, 0, 0.1);
padding: 17px 0 0;
} }
.container-bottom { .container-bottom {
padding-top: 15px; padding: 0 16px;
height: calc(100vh - 167px);
} }
.groups-item { .groups-item {
width: 323px; width: 323px;
...@@ -412,8 +414,8 @@ export default { ...@@ -412,8 +414,8 @@ export default {
margin-top: 10px; margin-top: 10px;
} }
.groups-list { .groups-list {
overflow-y: scroll; /* overflow-y: scroll;
height: calc(100% - 21px); height: calc(100% - 21px); */
} }
.groups-item-top { .groups-item-top {
display: flex; display: flex;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!