Commit b1a5fcad by 前端

Merge branch 'wangzh_dev_2.3.3' into 'v2.3.3'

Wangzh dev 2.3.3

See merge request !19
2 parents 8c43e480 f0d61f2c
...@@ -100,7 +100,9 @@ img { ...@@ -100,7 +100,9 @@ img {
.color54 { .color54 {
color: #545454; color: #545454;
} }
.font-10{
font-size: 10px;
}
.font-12 { .font-12 {
font-size: 12px; font-size: 12px;
} }
...@@ -149,6 +151,9 @@ img { ...@@ -149,6 +151,9 @@ img {
.m-b-12 { .m-b-12 {
margin-bottom: 12px; margin-bottom: 12px;
} }
.m-b-14 {
margin-bottom: 14px;
}
.m-b-16 { .m-b-16 {
margin-bottom: 16px; margin-bottom: 16px;
} }
...@@ -164,9 +169,15 @@ img { ...@@ -164,9 +169,15 @@ img {
.m-t-6 { .m-t-6 {
margin-top: 6px; margin-top: 6px;
} }
.m-l-4 {
margin-left: 4px;
}
.m-l-8 { .m-l-8 {
margin-left: 8px; margin-left: 8px;
} }
.m-r-8 {
margin-right: 8px;
}
.m-l-16 { .m-l-16 {
margin-left: 16px; margin-left: 16px;
} }
......
...@@ -19,7 +19,7 @@ export default { ...@@ -19,7 +19,7 @@ export default {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.custom-image { .custom-image {
padding-top: 79px; // padding-top: 79px;
} }
.custom-image /deep/ .van-empty__image { .custom-image /deep/ .van-empty__image {
......
...@@ -2,13 +2,15 @@ import Vue from 'vue' ...@@ -2,13 +2,15 @@ import Vue from 'vue'
import Vuex from 'vuex' import Vuex from 'vuex'
import getters from './getters' import getters from './getters'
import app from './modules/app' import app from './modules/app'
import solicit from './modules/solicit'
// import createPersistedState from "vuex-persistedstate" // import createPersistedState from "vuex-persistedstate"
Vue.use(Vuex) Vue.use(Vuex)
const store = new Vuex.Store({ const store = new Vuex.Store({
modules: { modules: {
app app,
solicit
}, },
getters getters
// plugins: [createPersistedState({ // plugins: [createPersistedState({
......
import Vue from 'vue'
export default {
namespaced: true,
state: {
currentIndex: 0,
follewIndex: 0,
},
mutations: {
['SET_TAB_INDEX'](state, payload) {
state.currentIndex = payload.currentIndex
},
['SET_FOLLOW_INDEX'](state, payload) {
state.follewIndex = payload.follewIndex
}
},
actions: {
// getReport(conText, payload) {
// getReportData(payload).then(res => {
// if (res.code == 0) {
// conText.commit('SET_REPORT', { reportData: res.data })
// if (payload.success) {
// payload.success()
// }
// } else {
// if (payload.fail) {
// payload.fail()
// }
// }
// })
// }
}
}
...@@ -38,27 +38,27 @@ export default { ...@@ -38,27 +38,27 @@ export default {
const data = [ const data = [
{ {
year: '1951 年', year: '1951 年',
sales: 38 sales: 0
}, },
{ {
year: '1952 年', year: '1952 年',
sales: 52 sales: 0
}, },
{ {
year: '1956 年', year: '1956 年',
sales: 61 sales: 0
}, },
{ {
year: '1957 年', year: '1957 年',
sales: 145 sales: 0
}, },
{ {
year: '1958 年', year: '1958 年',
sales: 61 sales: 0
}, },
{ {
year: '1959 年', year: '1959 年',
sales: 145 sales: 0
} }
] ]
this.chart && this.chart.clear() this.chart && this.chart.clear()
......
...@@ -59,12 +59,12 @@ export default { ...@@ -59,12 +59,12 @@ export default {
{ {
const: 'const', const: 'const',
type: '交通出行', type: '交通出行',
money: 51.39 money:20
}, },
{ {
const: 'const', const: 'const',
type: '饮食', type: '饮食',
money: 356.68 money: 0
} }
] ]
this.chart && this.chart.clear() this.chart && this.chart.clear()
......
<template> <template>
<div class="follow-container"> <div class="follow-container">
<div class="follow-statistics flex m-b-16"> <div class="follow-statistics flex m-b-16">
<template v-for="(s,i) in statisticList"> <template v-for="(s, i) in statisticList">
<div class="follow-statistics-single" :key="i"> <div class="follow-statistics-single" :key="i">
<div class="font-24 color-3 fw7 line-36">875</div> <div class="font-24 color-3 fw7 line-36">875</div>
<div class="font-12 color-2f m-t-4">{{s.text}}</div> <div class="font-12 color-2f m-t-4">{{ s.text }}</div>
</div> </div>
</template> </template>
</div> </div>
<tab-customer :list="['企微营销', '电话招揽']" @change="changeFollow" :index="follewIndex"> <tab-customer :list="['企微营销', '电话招揽']" @change="changeFollow" :index="follewIndex">
<scroll-view class="content" @ReachBottom="onReachBottom" ref="scrollView"> <scroll-view class="content" @ReachBottom="onReachBottom" ref="scrollView">
<div class="follow-content"> <template v-if="true">
<div class="follow-content-item m-b-12" v-for="i in 10" :key="i"> <div class="follow-content">
<div class="follow-content-item-top"> <div class="follow-content-item m-b-12" v-for="i in 10" :key="i">
<div class="font-16 color-3 fw5 text-hide">定保招揽定保招揽定保招揽 N-3定保招揽定保招揽定保招揽 N-3</div> <div class="follow-content-item-top">
<div class="m-t-8 flex-between fw7"> <div class="font-16 color-3 fw5 text-hide">定保招揽定保招揽定保招揽 N-3定保招揽定保招揽定保招揽 N-3</div>
<div class="font-24 line-36 color-3"> <div class="m-t-8 flex-between fw7">
265 <div class="font-24 line-36 color-3">
<span class="font-12 color-2f m-l-8">个企微客户</span> 265
<span class="font-12 color-2f m-l-8">个企微客户</span>
</div>
<div class="font-12 color-2f">招揽月份:5月</div>
</div> </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" @click="goTo('solicit.marketing')">一键营销</div>
<div class="colord8">|</div>
<div class="color39 font-14" @click="goTo('solicit.statistic')">触达统计</div>
</div>
</template>
<template v-else>
<div class="follow-btn">
<div class="color39 font-14" @click="goTo('solicit.lookCustomer')">查看客户</div>
</div>
</template>
</div> </div>
<template v-if="follewIndex == 0">
<div class="flex-around follow-btn">
<div class="color39 font-14" @click="goTo('solicit.marketing')">一键营销</div>
<div class="colord8">|</div>
<div class="color39 font-14" @click="goTo('solicit.statistic')">触达统计</div>
</div>
</template>
<template v-else>
<div class="follow-btn">
<div class="color39 font-14" @click="goTo('solicit.lookCustomer')">查看客户</div>
</div>
</template>
</div> </div>
</div> </template>
<template v-else>
<empty description="暂无数据" />
</template>
</scroll-view> </scroll-view>
</tab-customer> </tab-customer>
</div> </div>
</template> </template>
<script> <script>
import { mapState, mapMutations } from 'vuex'
export default { export default {
data() { data() {
return { return {
follewIndex: 0,
statisticList: [] statisticList: []
} }
}, },
computed: {
...mapState({
follewIndex: state => state.solicit.follewIndex
})
},
created() { created() {
this.statisticList = this.$constants.STATICLIST this.statisticList = this.$constants.STATICLIST
}, },
methods: { methods: {
...mapMutations({
SET_FOLLOW_INDEX: 'solicit/SET_FOLLOW_INDEX'
}),
goTo(name) { goTo(name) {
this.$router.push({ name }) this.$router.push({ name })
}, },
changeFollow(index) { changeFollow(index) {
this.follewIndex = index this.SET_FOLLOW_INDEX({ follewIndex: index })
}, },
onReachBottom() { onReachBottom() {
this.$refs.scrollView.loading = false this.$refs.scrollView.loading = false
...@@ -101,5 +114,9 @@ export default { ...@@ -101,5 +114,9 @@ export default {
} }
} }
} }
.custom-image {
background: #fff;
height: 100%;
}
} }
</style> </style>
...@@ -12,21 +12,28 @@ ...@@ -12,21 +12,28 @@
import overview from './overview.vue' import overview from './overview.vue'
import follow from './follow.vue' import follow from './follow.vue'
import result from './result.vue' import result from './result.vue'
import { mapState, mapMutations } from 'vuex'
export default { export default {
name: 'index', name: 'index',
data() { data() {
return { return {}
currentIndex: 0
}
}, },
components: { components: {
overview, overview,
follow, follow,
result result
}, },
computed: {
...mapState({
currentIndex: state => state.solicit.currentIndex
})
},
methods: { methods: {
...mapMutations({
SET_TAB_INDEX: 'solicit/SET_TAB_INDEX'
}),
changeIndex(index) { changeIndex(index) {
this.currentIndex = index this.SET_TAB_INDEX({ currentIndex: index })
} }
} }
} }
......
...@@ -165,7 +165,6 @@ export default { ...@@ -165,7 +165,6 @@ export default {
font-size: 14px; font-size: 14px;
font-weight: 400; font-weight: 400;
color: #333333; color: #333333;
width: 77px;
margin-right: 13px; margin-right: 13px;
} }
/deep/ .van-search { /deep/ .van-search {
......
...@@ -3,12 +3,18 @@ ...@@ -3,12 +3,18 @@
<div class="overview-wrap m-b-16"> <div class="overview-wrap m-b-16">
<div class="title-info">客户招揽概况</div> <div class="title-info">客户招揽概况</div>
<div class="overview-content"> <div class="overview-content">
<pieChart :color="styleColor" id="overviewRef"></pieChart> <template>
<empty></empty>
</template>
<!-- <pieChart :color="styleColor" id="overviewRef"></pieChart> -->
</div> </div>
</div> </div>
<div class="overview-wrap m-b-16"> <div class="overview-wrap m-b-16">
<div class="title-info">客户分群</div> <div class="title-info">客户分群</div>
<div class="overview-group"> <div class="overview-group">
<!-- <template>
<empty></empty>
</template> -->
<barChart :color="styleColor" id="groupingRef"></barChart> <barChart :color="styleColor" id="groupingRef"></barChart>
</div> </div>
</div> </div>
......
<template> <template>
<div class="result-container"> <div class="result-container">
<scroll-view class="content" @ReachBottom="onReachBottom" ref="scrollView"> <scroll-view class="content" @ReachBottom="onReachBottom" ref="scrollView">
<div class="result-container-content"> <template v-if="true">
<template v-for="i in 10"> <div class="result-container-content">
<div :key="i" class="result-container-content-item"> <template v-for="i in 10">
<div class="title-info">定保 N-6</div> <div :key="i" class="result-container-content-item">
<div class="result-content flex-between"> <div class="title-info">定保 N-6</div>
<div class="result-content-list flex-top" @click="goto('solicit.succeed')"> <div class="result-content flex-between">
<div class="sprite-icon icon-succeed"></div> <div class="result-content-list flex-top" @click="goto('solicit.succeed')">
<div class="m-l-8"> <div class="sprite-icon icon-succeed"></div>
<div class="font-14 color-3 fw5">成功到店</div> <div class="m-l-8">
<div class="font-12 color-2f m-t-4">客户:200人</div> <div class="font-14 color-3 fw5">成功到店</div>
<div class="font-12 color-2f m-t-4">客户:200人</div>
</div>
</div> </div>
</div> <div class="result-content-list flex-top">
<div class="result-content-list flex-top"> <div class="sprite-icon icon-fail"></div>
<div class="sprite-icon icon-fail"></div> <div class="m-l-8">
<div class="m-l-8"> <div class="font-14 color-3 fw5">成功到店</div>
<div class="font-14 color-3 fw5">成功到店</div> <div class="font-12 color-2f m-t-4">客户:200人</div>
<div class="font-12 color-2f m-t-4">客户:200人</div> </div>
</div> </div>
</div> </div>
</div> </div>
</div> </template>
</template> </div>
</div> </template>
<template v-else>
<empty description="暂无数据" />
</template>
</scroll-view> </scroll-view>
</div> </div>
</template> </template>
...@@ -74,5 +79,9 @@ export default { ...@@ -74,5 +79,9 @@ export default {
} }
} }
} }
.custom-image {
background: #fff;
height:100%;
}
} }
</style> </style>
...@@ -10,7 +10,21 @@ ...@@ -10,7 +10,21 @@
<customer-card :customerInfo="customerInfo"></customer-card> <customer-card :customerInfo="customerInfo"></customer-card>
</van-tab> </van-tab>
<van-tab :title="'已送达(' + deliveredNum + ')'"> <van-tab :title="'已送达(' + deliveredNum + ')'">
<div class="statistic-pic"></div> <div class="statistic-pic flex">
<div class="funnel-logo">
<img src="@/assets/images/funnel.png" alt="" />
</div>
<div class="statistic-list">
<template v-for="(status, index) in reachStatus">
<div class="font-12 color-2f flex m-b-14" :key="index">
<div class="circle" :style="{'background':status.color}"></div>
{{status.text}}
<span class="font-16 color-3 m-l-8 bold">2,000</span>
<span class="font-10 color39 m-l-4 fw5">(100%)</span>
</div>
</template>
</div>
</div>
<select-bar :index="3" :list="selectBarList"></select-bar> <select-bar :index="3" :list="selectBarList"></select-bar>
<customer-card :customerInfo="customerInfo"></customer-card> <customer-card :customerInfo="customerInfo"></customer-card>
</van-tab> </van-tab>
...@@ -64,6 +78,48 @@ export default { ...@@ -64,6 +78,48 @@ export default {
updateDate: '05-07 15:30', updateDate: '05-07 15:30',
telNumber: '18818188989' telNumber: '18818188989'
} }
],
reachStatus: [
{
text: '已送达',
value: obj => {
return obj.addWayName
},
proportion: obj => {
return obj.addWayName
},
color: '#3975C6'
},
{
text: '已查看',
value: obj => {
return obj.addWayName
},
proportion: obj => {
return obj.addWayName
},
color: '#59BCFF'
},
{
text: '已领取',
value: obj => {
return obj.addWayName
},
proportion: obj => {
return obj.addWayName
},
color: '#33C1B9'
},
{
text: '已到店',
value: obj => {
return obj.addWayName
},
proportion: obj => {
return obj.addWayName
},
color: '#82D876'
}
] ]
} }
} }
...@@ -84,7 +140,32 @@ export default { ...@@ -84,7 +140,32 @@ export default {
height: 172px; height: 172px;
background: #ffffff; background: #ffffff;
box-shadow: 0px 1px 0px 0px rgba(233, 233, 233, 1); box-shadow: 0px 1px 0px 0px rgba(233, 233, 233, 1);
padding: 16px 40px;
box-sizing: border-box;
.funnel-logo {
width: 144px;
height: 140px;
margin-right: 24px;
img {
width: 100%;
height: 100%;
}
}
.statistic-list {
white-space: nowrap;
.circle {
width: 8px;
height: 8px;
background: #3975c6;
border-radius: 2px;
margin-right: 6px;
}
}
.statistic-list div:nth-child(4){
margin-bottom: 0;
}
} }
/deep/ .van-tabs__line { /deep/ .van-tabs__line {
background-color: #3975c6; background-color: #3975c6;
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!