Commit 3eae00b7 by 李伟康

提交代码

1 parent 17b70496
......@@ -109,7 +109,7 @@ export default {
let { brands } = this
brands.map(e => e.active = false)
brands[index].active = true
this.brandsKey = Date.now()
// this.brandsKey = Date.now()
// this.$refs.brands.style.display = 'none'
this.change(1, i)
},
......@@ -208,6 +208,12 @@ export default {
background-color: #eb6001;
}
}
.active{
position: sticky;
top: 0;
z-index: 2;
left: 0;
}
}
::-webkit-scrollbar {
background-color: #383737;
......
......@@ -8,8 +8,8 @@
<div class="tab-total-box">
<div class="total-title-box flex">
<div class="title inline total">客户总数</div>
<div class="title inline">昨日新增</div>
<div class="title inline">上月到店</div>
<div class="title inline"> {{req.queryType == 0 ?'上月':'昨日'}}新增</div>
<div class="title inline"> {{req.queryType == 0 ?'上月':'昨日'}}到店</div>
</div>
<div class="total-number-box flex">
<transition-number
......@@ -41,7 +41,7 @@
class="item-total"
/>
<div class="item-incr flex">
上月
{{req.queryType == 0 ?'上月':'昨日'}}
<transition-number
:num="pageData[i.key].incrNum"
:idKey="`number-incr-${i.key}`"
......@@ -180,7 +180,7 @@ export default {
const params = {
queryItem,
queryType,
queryTime: this.getNDate(-1)
queryTime: this.getNDate(-1)
}
this.tabHead = this.isGroup ? ['前5品牌', '后5品牌'] : ['前5门店', '后5门店']
this.api.overview[this.isGroup ? 'getBrandOverallbase' : 'getMerchantOverallbase'](params).then(({ code, data }) => {
......@@ -204,7 +204,7 @@ export default {
},
ObjectToArray (obj) {
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] }))
})
return arr
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!