Commit fb99243c by 王志慧

commit

1 parent 20ccfb75
...@@ -4,8 +4,8 @@ body .app { ...@@ -4,8 +4,8 @@ body .app {
color: #333333; color: #333333;
font-family: Arial, Helvetica, 'STHeiti STXihei', 'Microsoft YaHei', Tohoma, sans-serif; font-family: Arial, Helvetica, 'STHeiti STXihei', 'Microsoft YaHei', Tohoma, sans-serif;
-webkit-overflow-scrolling: touch; -webkit-overflow-scrolling: touch;
height: 100%; height: 100vh;
// overflow: hidden; overflow: hidden;
} }
img { img {
......
.sprite-icon { background-image: url(../images/sprite.png);background-size: 345px 270px;} .sprite-icon { background-image: url(../images/sprite.png);background-size: 345px 270px;}
.icon-bg { width: 345px; height: 180px; background-position: 0px 0px;} .icon-bg { width: 345px; height: 180px; background-position: 0px 0px;}
.icon-client { width: 26px; height: 26px; background-position: -37px -244px;} .icon-client { width: 26px; height: 26px; background-position: -37px -244px;}
.icon-crown { width: 12px; height: 9px; background-position: -265px -244px;} .icon-crown { width: 12px; height: 9px; background-position: -301px -244px;}
.icon-customers { width: 40px; height: 44px; background-position: 0px -190px;} .icon-customers { width: 40px; height: 44px; background-position: 0px -190px;}
.icon-equity { width: 40px; height: 44px; background-position: -50px -190px;} .icon-equity { width: 40px; height: 44px; background-position: -50px -190px;}
.icon-helmet { width: 26px; height: 26px; background-position: -73px -244px;} .icon-helmet { width: 26px; height: 26px; background-position: -73px -244px;}
.icon-huangguan { width: 14px; height: 15px; background-position: -217px -244px;} .icon-huangguan { width: 14px; height: 15px; background-position: -253px -244px;}
.icon-icondown { width: 5px; height: 8px; background-position: -287px -244px;} .icon-icondown { width: 5px; height: 8px; background-position: -323px -244px;}
.icon-iconup { width: 5px; height: 8px; background-position: -302px -244px;} .icon-iconup { width: 5px; height: 8px; background-position: -338px -244px;}
.icon-liushi { width: 40px; height: 44px; background-position: -100px -190px;} .icon-liushi { width: 40px; height: 44px; background-position: -100px -190px;}
.icon-message { width: 14px; height: 13px; background-position: -241px -244px;} .icon-message { width: 14px; height: 13px; background-position: -277px -244px;}
.icon-production { width: 40px; height: 44px; background-position: -150px -190px;} .icon-production { width: 40px; height: 44px; background-position: -150px -190px;}
.icon-proportion { width: 26px; height: 26px; background-position: -109px -244px;} .icon-proportion { width: 26px; height: 26px; background-position: -109px -244px;}
.icon-Qy { width: 40px; height: 44px; background-position: -200px -190px;} .icon-Qy { width: 40px; height: 44px; background-position: -200px -190px;}
...@@ -18,3 +18,4 @@ ...@@ -18,3 +18,4 @@
.icon-speed { width: 26px; height: 26px; background-position: -181px -244px;} .icon-speed { width: 26px; height: 26px; background-position: -181px -244px;}
.icon-totalCu { width: 40px; height: 44px; background-position: -250px -190px;} .icon-totalCu { width: 40px; height: 44px; background-position: -250px -190px;}
.icon-wechat-customers { width: 40px; height: 44px; background-position: -300px -190px;} .icon-wechat-customers { width: 40px; height: 44px; background-position: -300px -190px;}
.icon-masonry { width: 26px; height: 26px; background-position: -217px -244px;}
\ No newline at end of file \ No newline at end of file

173 KB | W: | H:

175 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
...@@ -59,19 +59,20 @@ export default { ...@@ -59,19 +59,20 @@ export default {
? '精品升级' ? '精品升级'
: '权益提单' : '权益提单'
} }
this.fastData.push({
text: '增长速度最快业务:',
info: text,
icon: 'rank'
})
if (accountLevel !== 4) { if (accountLevel !== 4) {
this.fastData.push({ this.fastData.push(
{ text: '增长速度最快的业务:', info: text, icon: 'rank' },
{
text: '产值排行榜冠军店:', text: '产值排行榜冠军店:',
value: obj => { value: obj => {
return obj.mostProductionValueMerchantName ? obj.mostProductionValueMerchantName : '-' return obj.mostProductionValueMerchantName ? obj.mostProductionValueMerchantName : '-'
}, },
icon: 'helmet' icon: 'helmet'
}) }
)
} else {
this.fastData.push({ text: '增长速度最快的业务:', info: text, icon: 'masonry' })
} }
} else { } else {
if (accountLevel !== 4) { if (accountLevel !== 4) {
......
<template> <template>
<div :class="[{'sticky':sticky},'Tab']"> <div :class="[{ sticky: sticky }, 'Tab']">
<van-tabs <van-tabs v-model="tabIndex" :color="activeColor" title-inactive-color="#BBB" title-active-color="#2c2c2c" @click="click" :key="updata" :line-width="lineWidth">
v-model="tabIndex" <template v-for="(i, index) in data">
:color="activeColor" <van-tab :title="i" :key="index">
title-inactive-color="#BBB"
title-active-color="#2c2c2c"
@click="click"
:key="updata"
:line-width="lineWidth"
>
<template v-for="(i,index) in data">
<van-tab
:title="i"
:key="index"
>
<slot /> <slot />
</van-tab> </van-tab>
</template> </template>
...@@ -43,25 +32,24 @@ export default { ...@@ -43,25 +32,24 @@ export default {
updata: null, updata: null,
lineWidth: null lineWidth: null
}, },
data () { data() {
return { return {
tabIndex: this.index, tabIndex: this.index,
data: this.list data: this.list
} }
}, },
watch: { watch: {
'index' (n) { index(n) {
this.tabIndex = n this.tabIndex = n
}, },
'updata' (n) { updata(n) {
this.data = this.list this.data = this.list
this.tabIndex = this.index this.tabIndex = this.index
} }
}, },
mounted () { mounted() {},
},
methods: { methods: {
click (tabIndex) { click(tabIndex) {
this.tabIndex = tabIndex this.tabIndex = tabIndex
this.$emit('change', tabIndex) this.$emit('change', tabIndex)
} }
......
...@@ -152,7 +152,6 @@ export default { ...@@ -152,7 +152,6 @@ export default {
<style scoped lang='scss'> <style scoped lang='scss'>
.top { .top {
border-radius: 4px; border-radius: 4px;
// position: fixed;
width: 345px; width: 345px;
height: 40px; height: 40px;
box-sizing: border-box; box-sizing: border-box;
......
...@@ -33,7 +33,6 @@ function createRouter() { ...@@ -33,7 +33,6 @@ function createRouter() {
} }
// http://scrm.dev.glsx.com.cn/dj-scrm-wx-work-attachment-activity/ // http://scrm.dev.glsx.com.cn/dj-scrm-wx-work-attachment-activity/
router.beforeEach((to, from, next) => { router.beforeEach((to, from, next) => {
console.log(JSON.parse(window.localStorage.getItem('reportType')).reportType)
/* 路由发生变化修改页面title */ /* 路由发生变化修改页面title */
if (to.meta.title) { if (to.meta.title) {
......
...@@ -20,10 +20,11 @@ ...@@ -20,10 +20,11 @@
<div class="bottom"> <div class="bottom">
<tab :list="['客户统计', '产值统计']" @change="change" :index="tabIndex"></tab> <tab :list="['客户统计', '产值统计']" @change="change" :index="tabIndex"></tab>
</div> </div>
</div> </div>
</template> </template>
<script> <script>
import { mapState, mapGetters, mapActions, mapMutations } from 'vuex' import { mapState, mapActions, mapMutations } from 'vuex'
import { scriptData } from '@/api/reportApi' import { scriptData } from '@/api/reportApi'
export default { export default {
name: 'report', name: 'report',
...@@ -54,6 +55,7 @@ export default { ...@@ -54,6 +55,7 @@ export default {
}, },
created() { created() {
let reportType = this.getQuery().reportType ? this.getQuery().reportType : JSON.parse(window.localStorage.getItem('reportType')).reportType let reportType = this.getQuery().reportType ? this.getQuery().reportType : JSON.parse(window.localStorage.getItem('reportType')).reportType
// let reportType =0
if (reportType == 0) { if (reportType == 0) {
document.title = '周报' document.title = '周报'
} else { } else {
...@@ -130,11 +132,8 @@ export default { ...@@ -130,11 +132,8 @@ export default {
.layout-wrap { .layout-wrap {
color: #333333; color: #333333;
font-size: 14px; font-size: 14px;
height: 100%;
padding: 0 15px;
box-sizing: border-box; box-sizing: border-box;
position: relative; position: relative;
height: 100%;
box-sizing: border-box; box-sizing: border-box;
overflow: scroll; overflow: scroll;
.content { .content {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!