Commit 3eae00b7 by 李伟康

提交代码

1 parent 17b70496
...@@ -109,7 +109,7 @@ export default { ...@@ -109,7 +109,7 @@ export default {
let { brands } = this let { brands } = this
brands.map(e => e.active = false) brands.map(e => e.active = false)
brands[index].active = true brands[index].active = true
this.brandsKey = Date.now() // this.brandsKey = Date.now()
// this.$refs.brands.style.display = 'none' // this.$refs.brands.style.display = 'none'
this.change(1, i) this.change(1, i)
}, },
...@@ -208,6 +208,12 @@ export default { ...@@ -208,6 +208,12 @@ export default {
background-color: #eb6001; background-color: #eb6001;
} }
} }
.active{
position: sticky;
top: 0;
z-index: 2;
left: 0;
}
} }
::-webkit-scrollbar { ::-webkit-scrollbar {
background-color: #383737; background-color: #383737;
......
...@@ -8,8 +8,8 @@ ...@@ -8,8 +8,8 @@
<div class="tab-total-box"> <div class="tab-total-box">
<div class="total-title-box flex"> <div class="total-title-box flex">
<div class="title inline total">客户总数</div> <div class="title inline total">客户总数</div>
<div class="title inline">昨日新增</div> <div class="title inline"> {{req.queryType == 0 ?'上月':'昨日'}}新增</div>
<div class="title inline">上月到店</div> <div class="title inline"> {{req.queryType == 0 ?'上月':'昨日'}}到店</div>
</div> </div>
<div class="total-number-box flex"> <div class="total-number-box flex">
<transition-number <transition-number
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
class="item-total" class="item-total"
/> />
<div class="item-incr flex"> <div class="item-incr flex">
上月 {{req.queryType == 0 ?'上月':'昨日'}}
<transition-number <transition-number
:num="pageData[i.key].incrNum" :num="pageData[i.key].incrNum"
:idKey="`number-incr-${i.key}`" :idKey="`number-incr-${i.key}`"
...@@ -204,7 +204,7 @@ export default { ...@@ -204,7 +204,7 @@ export default {
}, },
ObjectToArray (obj) { ObjectToArray (obj) {
let arr = [] let arr = []
JSON.parse(obj).map(e => { if (obj) JSON.parse(obj).map(e => {
Object.keys(e).map(name => arr.push({ name, num: e[name] })) Object.keys(e).map(name => arr.push({ name, num: e[name] }))
}) })
return arr return arr
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!