Commit 05286f2a by 李伟康
2 parents c1be6d15 8ed57ba7
const pages = {
customerGroup: [{
name: 'index'
name: 'index',
meta: {
title: '一客一群',
backgroundColor: '#F7F7F7',
keepAlive: true,
}
},
{ name: 'mass' }
],
......
......@@ -21,7 +21,7 @@
>
<div class="title text-hide">{{i.codeName}}</div>
<div class="name-list">
<div class="label">使用人员:</div>
<div class="label">扫码添加人员:</div>
<div class="value">{{i.staffName}}</div>
</div>
<div class="remark">
......@@ -196,7 +196,7 @@ export default {
margin-bottom: 8px;
.label {
color: #666666;
width: 70px;
width: 90px;
flex-shrink: 0;
}
}
......
......@@ -305,6 +305,7 @@ export default {
} = this
let userId = this.id
if (type == 'tel') {
if (info.customerPhone && save_key == 'customerPhone') return
this.$router.push({
name: 'customer.editDetail',
params: {
......
......@@ -19,9 +19,10 @@
</div>
<div class="business-card-buttom">客户名片</div>
</div>
<div class="container-bottom-title">邀入并创建新群聊</div>
</div>
<div class="container-bottom">
<div class="container-bottom-ttile">邀入并创建新群聊</div>
<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-top">
......@@ -179,8 +180,6 @@ export default {
wxConfig
.getCurExternalContact()
.then(userId => {
this.hideLoading()
this.flag = true
console.log(userId, '11111')
this.userId = userId
let externalUserId = userId
......@@ -188,6 +187,8 @@ export default {
//获取客户信息
groupChat.getDetail({ userId: externalUserId }).then(res => {
console.log(res, 'data')
this.hideLoading()
this.flag = true
this.businessCard = res.info
this.vehicleInfoList = res.vehicleInfoList
groupChat.getList({ externalUserId: externalUserId }).then(res => {
......@@ -197,17 +198,25 @@ export default {
if (res) {
for (var a = 0; a < this.groupList.length; a++) {
if (!this.vehicleInfoList) {
this.groupList[a].groupName = this.groupList[a].groupName
if (this.groupList[a].groupNameRule == 1) {
this.groupList[a].groupName = this.businessCard.customerName + this.groupList[a].groupName
}
if (this.groupList[a].groupNameRule == 0) {
this.groupList[a].groupName = this.groupList[a].groupName
}
if(this.groupList[a].groupNameRule == 2){
this.groupList[a].groupName = this.groupList[a].groupName
}
} else {
if (this.groupList[a].groupNameRule == 0) {
this.groupList[a].groupName = this.groupList[a].groupName
}
if (this.groupList[a].groupNameRule == 1) {
if (this.vehicleInfoList[0].vehicleTrain) {
this.groupList[a].groupName = this.vehicleInfoList[0].vehicleTrain + this.businessCard.customerName + this.groupList[a].groupName
} else {
this.groupList[a].groupName = this.businessCard.customerName + this.groupList[a].groupName
if (!this.vehicleInfoList[0].vehicleTrain) {
this.vehicleInfoList[0].vehicleTrain = ''
}
// this.groupList[a].groupName = `${this.businessCard.customerName}${this.groupList[a].groupName}`
this.groupList[a].groupName = this.vehicleInfoList[0].vehicleTrain + this.businessCard.customerName + this.groupList[a].groupName
}
if (this.groupList[a].groupNameRule == 2) {
if (!this.vehicleInfoList[0].vehicleTrain) {
......@@ -242,16 +251,12 @@ export default {
</script>
<style scoped>
.container {
top: 0;
left: 0;
position: fixed;
width: 100%;
height: 100vh;
background: #f7f7f7;
box-sizing: border-box;
}
.container-customerBox {
padding: 14px 16px 0px 16px;
/* padding: 14px 16px 0px 16px; */
padding-bottom: 50px;
}
.business-card {
margin: 0;
......@@ -267,6 +272,7 @@ export default {
margin-left: 55px;
margin-top: 10px;
border-radius: 4px;
margin-bottom: 17px;
}
.business-card-top {
display: flex;
......@@ -388,8 +394,11 @@ export default {
word-wrap: break-word;
}
.container-top {
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
padding-bottom: 17px;
padding: 14px 16px;
position: sticky;
z-index: 1;
background-color: rgb(247, 247, 247);
top: 0;
}
.container-bottom-title {
font-size: 16px;
......@@ -397,10 +406,11 @@ export default {
font-weight: 500;
color: #3a3a3a;
line-height: 22px;
border-top: 1px solid rgba(0, 0, 0, 0.1);
padding: 17px 0 0;
}
.container-bottom {
padding-top: 15px;
height: calc(100vh - 167px);
padding: 0 16px;
}
.groups-item {
width: 323px;
......@@ -412,8 +422,8 @@ export default {
margin-top: 10px;
}
.groups-list {
overflow-y: scroll;
height: calc(100% - 21px);
/* overflow-y: scroll;
height: calc(100% - 21px); */
}
.groups-item-top {
display: flex;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!