diff --git a/src/views/Customer/CustomerDetail.vue b/src/views/Customer/CustomerDetail.vue index faad74b..6f94660 100644 --- a/src/views/Customer/CustomerDetail.vue +++ b/src/views/Customer/CustomerDetail.vue @@ -54,95 +54,223 @@ + + + + @@ -154,37 +282,38 @@ export default { return { activeIndex: "1", // 大的tab activeindex1act: 0, // 筛选条件下标 - selectList: [ // 选中 - { - title: '全部', - id: '', - }, - { - title: '接待记录', - id: '1', - }, - { - title: '通话记录', - id: '2', - }, - { - title: '跟进记录', - id: '3', - }, - ] + selectList: [ + // 选中 + { + title: "全部", + id: "" + }, + { + title: "接待记录", + id: "1" + }, + { + title: "通话记录", + id: "2" + }, + { + title: "跟进记录", + id: "3" + } + ], + activeName: 1 // 折叠面板选中项 }; }, methods: { // 历史记录筛选 handleSelect(key, keyPath) { console.log(key, keyPath); - this.activeIndex = key + this.activeIndex = key; }, - + // 筛选历史记录类型 selectTap(data, index) { - this.activeindex1act = index - + this.activeindex1act = index; } } }; @@ -194,6 +323,7 @@ export default { .mainBox { padding: 0 28px; width: 100%; + min-width: 1200px; min-height: 100%; display: flex; flex-direction: column; @@ -293,150 +423,234 @@ export default { background: #fff; flex-grow: 1; - .activeIndex1 { - .select { - width: 100%; - height: 56px; + .select { + width: 100%; + height: 56px; + display: flex; + align-items: center; + border-bottom: 1px solid #e0e0e0; + + .s-items { + padding: 2px 8px; + margin-right: 40px; + font-size: 14px; + cursor: pointer; + border: 1px solid #fff; + } + + .act { + border-color: #2671e2; + color: #2671e2; + } + } + + .activeList { + .a-items { + padding: 16px 0; + width: 100%; + height: 118px; + display: flex; + border-bottom: 1px solid #e0e0e0; + + .a-lside { + margin-right: 12px; + flex-shrink: 0; + width: 36px; + height: 36px; display: flex; + justify-content: center; align-items: center; - border-bottom: 1px solid #E0E0E0; + border-radius: 50%; + border: 1px solid #e0e0e0; + } + + .a-rside { + flex-grow: 1; + + .a-top { + height: 36px; + display: flex; + align-items: center; - .s-items { - padding: 2px 8px; - margin-right: 40px; + .a-name { + margin-right: 24px; + font-size: 16px; + } + + .tag { font-size: 14px; - cursor: pointer; - border: 1px solid #fff; + } } - .act { - border-color: #2671E2; - color: #2671E2; + .a-time { + margin-top: 4px; + font-size: 14px; } - } - .activeList { - .a-items { - padding: 16px 0; - width: 100%; - height: 118px; - display: flex; - border-bottom: 1px solid #E0E0E0; - - .a-lside { - margin-right: 12px; - flex-shrink: 0; - width: 36px; - height: 36px; - display: flex; - justify-content: center; - align-items: center; - border-radius: 50%; - border: 1px solid #E0E0E0; - } - - .a-rside { - flex-grow: 1; - - .a-top { - height: 36px; - display: flex; - align-items: center; - - .a-name { - margin-right: 24px; - font-size: 16px; - } - - .tag { - font-size: 14px; - } - } - - .a-time { - margin-top: 4px; - font-size: 14px; - } - - .a-type { - margin-top: 6px; - display: flex; - align-items: center; - font-size: 14px; - - .time { - margin-right: 32px; - } - - .percent { - margin-right: 27px; - } - } - } - - .details-box { - margin-right: 80px; - height: 100%; - display: flex; - align-items: center; - - .details { - width: 82px; - height: 30px; - display: flex; - align-items: center; - justify-content: center; - color: #fff; - background: #2671E2; - border-radius: 2px; - font-size: 14px; - cursor: pointer; - } - } + .a-type { + margin-top: 6px; + display: flex; + align-items: center; + font-size: 14px; + + .time { + margin-right: 32px; + } + + .percent { + margin-right: 27px; + } + } + } + + .details-box { + margin-right: 80px; + height: 100%; + display: flex; + align-items: center; + + .details { + width: 82px; + height: 30px; + display: flex; + align-items: center; + justify-content: center; + color: #fff; + background: #2671e2; + border-radius: 2px; + font-size: 14px; + cursor: pointer; } + } } + } } .activeIndex2 { + width: 100%; + display: flex; + flex-direction: column; + + .baseInfo { + padding: 16px 0 8px 0; + display: flex; + align-items: center; + + .base-img { + margin-right: 2px; + width: 14px; + height: 16px; + } + } + + .base-items { + padding: 8px 0; width: 100%; display: flex; - flex-direction: column; - - .baseInfo { - padding: 16px 0 8px 0; - display: flex; - align-items: center; + align-items: center; - .base-img { - margin-right: 2px; - width: 14px; - height: 16px; - } + .b-lside { + width: 96px; + flex-shrink: 0; + color: #585858; } - .base-items { - padding: 8px 0; - width: 100%; - display: flex; - align-items: center; + .b-rside { + flex-grow: 1; + } + } + } - .b-lside { - width: 96px; - flex-shrink: 0; - color: #585858; - } + .all-screen { + width: 100%; + display: flex; + flex-direction: column; - .b-rside { - flex-grow: 1; + .tops { + margin: 16px 0; + padding: 16px 20px 0; + width: 100%; + height: 154px; + border: 1px solid #e0e0e0; + + .tops-title { + font-size: 16px; + } + + .p-box { + margin-top: 16px; + display: flex; + align-items: flex-end; + + .items { + display: flex; + flex-direction: column; + .circle { + display: flex; + justify-content: center; } + .p-i-titles { + text-align: center; + } + } + } + } + + .p-content { + margin-top: -16px; + border: 1px solid #E0E0E0; + border-top: none; + + .p-items { + padding: 0 0 0 80px; + width: 100%; + height: 58px; + display: flex; + align-items: center; + border-bottom: 1px solid #e0e0e0; + + .p-i-lside { + width: 43%; + flex-shrink: 0; + font-size: 16px; + } + .p-i-rside { + padding: 2px 23px; + color: #E51B1B; + background: rgba($color: #E51B1B, $alpha: .1); + } } + } + + .contents { + border: 1px solid #e0e0e0; + + .head { + height: 54px; + display: flex; + align-items: center; + } + } } } } - .el-menu-demo { - border-bottom: 1px solid #E0E0E0 !important; + border-bottom: 1px solid #e0e0e0 !important; +} + + + \ No newline at end of file