Commit fb99243c by 王志慧

commit

1 parent 20ccfb75
......@@ -4,8 +4,8 @@ body .app {
color: #333333;
font-family: Arial, Helvetica, 'STHeiti STXihei', 'Microsoft YaHei', Tohoma, sans-serif;
-webkit-overflow-scrolling: touch;
height: 100%;
// overflow: hidden;
height: 100vh;
overflow: hidden;
}
img {
......
.sprite-icon { background-image: url(../images/sprite.png);background-size: 345px 270px;}
.icon-bg { width: 345px; height: 180px; background-position: 0px 0px;}
.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-equity { width: 40px; height: 44px; background-position: -50px -190px;}
.icon-helmet { width: 26px; height: 26px; background-position: -73px -244px;}
.icon-huangguan { width: 14px; height: 15px; background-position: -217px -244px;}
.icon-icondown { width: 5px; height: 8px; background-position: -287px -244px;}
.icon-iconup { width: 5px; height: 8px; background-position: -302px -244px;}
.icon-huangguan { width: 14px; height: 15px; background-position: -253px -244px;}
.icon-icondown { width: 5px; height: 8px; background-position: -323px -244px;}
.icon-iconup { width: 5px; height: 8px; background-position: -338px -244px;}
.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-proportion { width: 26px; height: 26px; background-position: -109px -244px;}
.icon-Qy { width: 40px; height: 44px; background-position: -200px -190px;}
......@@ -17,4 +17,5 @@
.icon-rank { width: 27px; height: 26px; background-position: 0px -244px;}
.icon-speed { width: 26px; height: 26px; background-position: -181px -244px;}
.icon-totalCu { width: 40px; height: 44px; background-position: -250px -190px;}
.icon-wechat-customers { width: 40px; height: 44px; background-position: -300px -190px;}
\ No newline at end of file
.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

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