Commit d0f59570 by 王志慧

commit

1 parent 5113b2b5
......@@ -12,6 +12,7 @@
"dev": "npm run serve"
},
"dependencies": {
"@antv/f2": "^4.0.20",
"autoprefixer": "^8.0.0",
"core-js": "^3.6.4",
"dayjs": "^1.10.5",
......
@import './normalize.scss';
@import './sprite.scss';
*{
* {
margin: 0;
padding: 0;
}
......@@ -25,6 +25,25 @@ img {
align-items: center;
}
.flex-top {
display: flex;
align-items: flex-start;
}
.text-center {
display: flex;
align-items: center;
justify-content: center;
}
.flex-between {
display: flex;
justify-content: space-between;
align-items: center;
}
.flex-around {
display: flex;
justify-content: space-around;
align-items: center;
}
.text-hide {
white-space: nowrap;
overflow: hidden;
......@@ -40,12 +59,6 @@ img {
word-break: break-all;
}
.text-center {
display: flex;
align-items: center;
justify-content: center;
}
.x-center {
position: absolute;
left: 50%;
......@@ -61,47 +74,124 @@ img {
.sticky {
position: static;
}
.text-12{
.text-12 {
font-size: 12px;
font-weight: 400;
color: #FFFFFF;
color: #ffffff;
}
.text-20{
.text-20 {
font-size: 20px;
font-weight: 500;
color: #FFFFFF;
color: #ffffff;
}
.color-3 {
color: #333333;
}
.color-2f {
color: rgba(47, 64, 86, 0.7);
}
.color39 {
color: #3975c6;
}
.colord8 {
// color: #d8d8d8;
color:rgba(216, 216, 216, 0.3)
}
.color54 {
color: #545454;
}
.font-12 {
font-size: 12px;
}
.line-28{
.font-24 {
font-size: 24px;
}
.font-14 {
font-size: 14px;
}
.font-16 {
font-size: 16px;
}
.line-24 {
line-height: 24px;
}
.line-28 {
line-height: 28px;
}
.line-17{
.line-36 {
line-height: 36px;
}
.line-17 {
line-height: 17px;
}
.text-14{
.text-14 {
font-size: 14px;
font-weight: 400;
color: #333333;
line-height: 20px;
}
.hg{
.hg {
height: 28px;
}
.button{
.m-b-12 {
margin-bottom: 12px;
}
.m-b-16 {
margin-bottom: 16px;
}
.m-t-8 {
margin-top: 8px;
}
.m-t-4 {
margin-top: 4px;
}
.m-l-8 {
margin-left: 8px;
}
.fw4 {
font-weight: 400;
}
.fw5 {
font-weight: 500;
}
.fw7 {
font-weight: 700;
}
.button {
width: 343px;
height: 42px;
background: #3975C6;
border-radius: 21px;
font-size: 14px;
font-weight: 500;
color: #FFFFFF;
line-height: 42px;
text-align: center;
margin:0 auto;
}
.bottom{
vertical-align:bottom;
height: 42px;
background: #3975c6;
border-radius: 21px;
font-size: 14px;
font-weight: 500;
color: #ffffff;
line-height: 42px;
text-align: center;
margin: 0 auto;
}
.bottom {
vertical-align: bottom;
}
.title-info {
font-size: 16px;
color: #333333;
line-height: 44px;
font-weight: 500;
height: 44px;
border-bottom: 1px solid rgba(216, 216, 216, 0.3);
}
.title-info::before {
content: '';
width: 3px;
height: 14px;
background: #3975c6;
border-radius: 1.5px;
margin-right: 13px;
display: inline-block;
}
.sprite-icon { background-image: url(../images/sprite.png);background-size: 110px 74px;}
.icon-active { width: 20px; height: 20px; background-position: 0px -54px;}
.icon-arrow { width: 7px; height: 11px; background-position: -92px -56px;}
.sprite-icon { background-image: url(../images/sprite.png);background-size: 154px 116px;}
.icon-active { width: 20px; height: 20px; background-position: 0px -96px;}
.icon-arrow { width: 7px; height: 11px; background-position: -138px -26px;}
.icon-avatar { width: 44px; height: 44px; background-position: 0px 0px;}
.icon-customer-active { width: 16px; height: 16px; background-position: -92px -30px;}
.icon-customer-add { width: 28px; height: 20px; background-position: -54px 0px;}
.icon-customer-copy { width: 18px; height: 20px; background-position: -92px 0px;}
.icon-customer-phone { width: 20px; height: 20px; background-position: -30px -54px;}
.icon-identifier { width: 20px; height: 20px; background-position: -60px -54px;}
.icon-open-arrow { width: 8px; height: 7px; background-position: -54px -30px;}
\ No newline at end of file
.icon-customer-active { width: 16px; height: 16px; background-position: -138px 0px;}
.icon-customer-add { width: 28px; height: 20px; background-position: -96px -42px;}
.icon-customer-copy { width: 18px; height: 20px; background-position: -90px -96px;}
.icon-customer-phone { width: 20px; height: 20px; background-position: -30px -96px;}
.icon-identifier { width: 20px; height: 20px; background-position: -60px -96px;}
.icon-open-arrow { width: 8px; height: 7px; background-position: -138px -47px;}
.icon-append { width: 32px; height: 32px; background-position: -54px 0px;}
.icon-appoint { width: 32px; height: 32px; background-position: 0px -54px;}
.icon-factory { width: 32px; height: 32px; background-position: -42px -54px;}
.icon-follow { width: 32px; height: 32px; background-position: -96px 0px;}
\ No newline at end of file

7.63 KB | W: | H:

24.7 KB | W: | H:

src/assets/images/sprite.png
src/assets/images/sprite.png
src/assets/images/sprite.png
src/assets/images/sprite.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -75,13 +75,26 @@ const pages = {
title: '查看客户详情',
backgroundColor: '#F7F7F7'
}
}],
solicit: [{
name: 'index',
meta: {
title: '招揽跟进',
backgroundColor: '#F7F7F7'
}
},
{
name: 'customer',
meta: {
title: '查看客户',
backgroundColor: '#F7F7F7'
}
}]
}
const redirect = ''
let routes = []
const keepAlives = []
console.log(Object.keys(pages))
Object.keys(pages).map(parent => {
pages[parent].map(val => {
const isIndex = parent == redirect && val.name == 'index'
......
......@@ -95,7 +95,6 @@ const actions = {
util.setSessionId(userInfo.sessionId)
dispatch('registerHttp', userInfo.sessionId)
// 只有一个账号 history.back()
console.log(`${redirectUrl}${route}`)
state.showWindow = true
window.location.replace(`${redirectUrl}#/${route}`)
}
......
<template>
<div class="customer-container">
<div class="customer-container-head">
<div class="font-16 color54 line-24">定保N-5</div>
</div>
</div>
</template>
<script>
export default {
}
</script>
<style lang='scss' scoped>
.customer-container{
&-head{
height:142px;
background: #fff;
}
}
</style>
\ No newline at end of file
<template>
<div class="follow-container">
<div class="follow-statistics flex m-b-16">
<template v-for="i in 3">
<div class="follow-statistics-single" :key="i">
<div class="font-24 color-3 fw7 line-36">875</div>
<div class="font-12 color-2f m-t-4">总招揽数</div>
</div>
</template>
</div>
<tab-customer :list="['企微营销', '电话招揽']" @change="changeFollow" :index="follewIndex">
<scroll-view class="content" @ReachBottom="onReachBottom" ref="scrollView">
<div class="follow-content">
<div class="follow-content-item m-b-12" v-for="i in 10" :key="i">
<div class="follow-content-item-top">
<div class="font-16 color-3 fw5 text-hide">定保招揽定保招揽定保招揽 N-3定保招揽定保招揽定保招揽 N-3</div>
<div class="m-t-8 flex-between fw7">
<div class="font-24 line-36 color-3">
265
<span class="font-12 color-2f m-l-8">个企微客户</span>
</div>
<div class="font-12 color-2f">招揽月份:5月</div>
</div>
</div>
<template v-if="follewIndex == 0">
<div class="flex-around follow-btn">
<div class="color39 font-14">一键营销</div>
<div class="colord8">|</div>
<div class="color39 font-14">触达统计</div>
</div>
</template>
<template v-else>
<div class="follow-btn">
<div class="color39 font-14">查看客户</div>
</div>
</template>
</div>
</div>
</scroll-view>
</tab-customer>
</div>
</template>
<script>
import ScrollView from '../../components/ScrollView.vue'
export default {
components: { ScrollView },
data() {
return {
follewIndex: 0
}
},
methods: {
changeFollow(index) {
this.follewIndex = index
},
onReachBottom() {
this.$refs.scrollView.loading = false
this.$refs.scrollView.finished = true
}
}
}
</script>
<style lang="scss" scoped>
.follow-container {
.follow-statistics {
background: #fff;
height: 82px;
&-single {
padding: 12px 0;
width: 33.3%;
div {
text-align: center;
}
}
}
.content {
height: calc(100vh - 202px);
.follow-content {
padding: 16px 12px;
box-sizing: border-box;
&-item {
background: #f7f7f7;
border-radius: 8px;
height: 140px;
&-top {
padding: 16px 16px 0 16px;
border-bottom: 1px solid rgba(216, 216, 216, 0.3);
height: 96px;
box-sizing: border-box;
}
.follow-btn {
padding: 10px 52px;
box-sizing: border-box;
text-align: center;
}
}
}
}
}
</style>
<template>
<div class="solicit-container">
<tab :list="['总览', '跟进(5)', '结果(672)']" :index="currentIndex" @change="changeIndex"></tab>
<div class="solicit-content">
<overview v-if="currentIndex== 0"></overview>
<follow v-if="currentIndex== 1"></follow>
</div>
</div>
</template>
<script>
import overview from './overview.vue'
import follow from './follow.vue'
export default {
name: 'index',
data() {
return {
currentIndex: 1
}
},
components: {
overview,
follow
},
methods: {
changeIndex(index) {
this.currentIndex = index
}
}
}
</script>
<style lang="scss" scoped>
.solicit-container {
.solicit-content {
padding: 16px;
width: 100%;
box-sizing: border-box;
}
}
</style>
<template>
<div class="overview-container">
<div class="overview-wrap m-b-16">
<div class="title-info">客户招揽概况</div>
<div class="overview-content"></div>
</div>
<div class="overview-wrap m-b-16">
<div class="title-info">客户分群</div>
<div class="overview-content"></div>
</div>
<div class="overview-wrap m-b-16">
<div class="title-info">工作简报</div>
<div class="bulletin flex">
<template v-for="i in 4">
<div class="bulletin-single flex-top m-b-16" :key="i">
<div class="logo sprite-icon icon-append">
</div>
<div class="bulletin-info">
<div class="color-2f font-12">今日跟进 (人)</div>
<div class="number color-3 font-24 fw7">3</div>
<div class="color-2f font-12 m-t-8">
本月跟进
<span class="font-14 color-3 fw5">240</span>
</div>
</div>
</div>
</template>
</div>
</div>
</div>
</template>
<script>
export default {}
</script>
<style lang="scss" scoped>
.overview-container {
.overview-wrap {
background: #fff;
.overview-content {
height: 160px;
}
.bulletin {
height: 236px;
padding: 8px 0 16px 0;
box-sizing: border-box;
flex-wrap: wrap;
&-single {
width: 50%;
height: 98px;
padding-left: 16px;
box-sizing: border-box;
.bulletin-info {
margin-left: 12px;
}
.number {
height: 36px;
line-height: 36px;
}
}
}
}
}
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!