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 {
.color54 {
color: #545454;
}
.font-10{
font-size: 10px;
}
.font-12 {
font-size: 12px;
}
......@@ -149,6 +151,9 @@ img {
.m-b-12 {
margin-bottom: 12px;
}
.m-b-14 {
margin-bottom: 14px;
}
.m-b-16 {
margin-bottom: 16px;
}
......@@ -164,9 +169,15 @@ img {
.m-t-6 {
margin-top: 6px;
}
.m-l-4 {
margin-left: 4px;
}
.m-l-8 {
margin-left: 8px;
}
.m-r-8 {
margin-right: 8px;
}
.m-l-16 {
margin-left: 16px;
}
......
......@@ -19,7 +19,7 @@ export default {
</script>
<style lang="scss" scoped>
.custom-image {
padding-top: 79px;
// padding-top: 79px;
}
.custom-image /deep/ .van-empty__image {
......
......@@ -2,13 +2,15 @@ import Vue from 'vue'
import Vuex from 'vuex'
import getters from './getters'
import app from './modules/app'
import solicit from './modules/solicit'
// import createPersistedState from "vuex-persistedstate"
Vue.use(Vuex)
const store = new Vuex.Store({
modules: {
app
app,
solicit
},
getters
// 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 {
const data = [
{
year: '1951 年',
sales: 38
sales: 0
},
{
year: '1952 年',
sales: 52
sales: 0
},
{
year: '1956 年',
sales: 61
sales: 0
},
{
year: '1957 年',
sales: 145
sales: 0
},
{
year: '1958 年',
sales: 61
sales: 0
},
{
year: '1959 年',
sales: 145
sales: 0
}
]
this.chart && this.chart.clear()
......
......@@ -59,12 +59,12 @@ export default {
{
const: 'const',
type: '交通出行',
money: 51.39
money:20
},
{
const: 'const',
type: '饮食',
money: 356.68
money: 0
}
]
this.chart && this.chart.clear()
......
<template>
<div class="follow-container">
<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="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>
</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>
<template v-if="true">
<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 class="font-12 color-2f">招揽月份:5月</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>
<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>
<template v-else>
<empty description="暂无数据" />
</template>
</scroll-view>
</tab-customer>
</div>
</template>
<script>
import { mapState, mapMutations } from 'vuex'
export default {
data() {
return {
follewIndex: 0,
statisticList: []
}
},
computed: {
...mapState({
follewIndex: state => state.solicit.follewIndex
})
},
created() {
this.statisticList = this.$constants.STATICLIST
},
methods: {
...mapMutations({
SET_FOLLOW_INDEX: 'solicit/SET_FOLLOW_INDEX'
}),
goTo(name) {
this.$router.push({ name })
},
changeFollow(index) {
this.follewIndex = index
this.SET_FOLLOW_INDEX({ follewIndex: index })
},
onReachBottom() {
this.$refs.scrollView.loading = false
......@@ -101,5 +114,9 @@ export default {
}
}
}
.custom-image {
background: #fff;
height: 100%;
}
}
</style>
......@@ -12,21 +12,28 @@
import overview from './overview.vue'
import follow from './follow.vue'
import result from './result.vue'
import { mapState, mapMutations } from 'vuex'
export default {
name: 'index',
data() {
return {
currentIndex: 0
}
return {}
},
components: {
overview,
follow,
result
},
computed: {
...mapState({
currentIndex: state => state.solicit.currentIndex
})
},
methods: {
...mapMutations({
SET_TAB_INDEX: 'solicit/SET_TAB_INDEX'
}),
changeIndex(index) {
this.currentIndex = index
this.SET_TAB_INDEX({ currentIndex: index })
}
}
}
......
......@@ -165,7 +165,6 @@ export default {
font-size: 14px;
font-weight: 400;
color: #333333;
width: 77px;
margin-right: 13px;
}
/deep/ .van-search {
......
......@@ -3,12 +3,18 @@
<div class="overview-wrap m-b-16">
<div class="title-info">客户招揽概况</div>
<div class="overview-content">
<pieChart :color="styleColor" id="overviewRef"></pieChart>
<template>
<empty></empty>
</template>
<!-- <pieChart :color="styleColor" id="overviewRef"></pieChart> -->
</div>
</div>
<div class="overview-wrap m-b-16">
<div class="title-info">客户分群</div>
<div class="overview-group">
<!-- <template>
<empty></empty>
</template> -->
<barChart :color="styleColor" id="groupingRef"></barChart>
</div>
</div>
......
<template>
<div class="result-container">
<scroll-view class="content" @ReachBottom="onReachBottom" ref="scrollView">
<div class="result-container-content">
<template v-for="i in 10">
<div :key="i" class="result-container-content-item">
<div class="title-info">定保 N-6</div>
<div class="result-content flex-between">
<div class="result-content-list flex-top" @click="goto('solicit.succeed')">
<div class="sprite-icon icon-succeed"></div>
<div class="m-l-8">
<div class="font-14 color-3 fw5">成功到店</div>
<div class="font-12 color-2f m-t-4">客户:200人</div>
<template v-if="true">
<div class="result-container-content">
<template v-for="i in 10">
<div :key="i" class="result-container-content-item">
<div class="title-info">定保 N-6</div>
<div class="result-content flex-between">
<div class="result-content-list flex-top" @click="goto('solicit.succeed')">
<div class="sprite-icon icon-succeed"></div>
<div class="m-l-8">
<div class="font-14 color-3 fw5">成功到店</div>
<div class="font-12 color-2f m-t-4">客户:200人</div>
</div>
</div>
</div>
<div class="result-content-list flex-top">
<div class="sprite-icon icon-fail"></div>
<div class="m-l-8">
<div class="font-14 color-3 fw5">成功到店</div>
<div class="font-12 color-2f m-t-4">客户:200人</div>
<div class="result-content-list flex-top">
<div class="sprite-icon icon-fail"></div>
<div class="m-l-8">
<div class="font-14 color-3 fw5">成功到店</div>
<div class="font-12 color-2f m-t-4">客户:200人</div>
</div>
</div>
</div>
</div>
</div>
</template>
</div>
</template>
</div>
</template>
<template v-else>
<empty description="暂无数据" />
</template>
</scroll-view>
</div>
</template>
......@@ -74,5 +79,9 @@ export default {
}
}
}
.custom-image {
background: #fff;
height:100%;
}
}
</style>
......@@ -10,7 +10,21 @@
<customer-card :customerInfo="customerInfo"></customer-card>
</van-tab>
<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>
<customer-card :customerInfo="customerInfo"></customer-card>
</van-tab>
......@@ -64,6 +78,48 @@ export default {
updateDate: '05-07 15:30',
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 {
height: 172px;
background: #ffffff;
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 {
background-color: #3975c6;
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!