Commit 2c850186 authored by Facius's avatar Facius

fix: 订单管理点中数字变蓝色

parent 1ab17635
......@@ -41,9 +41,13 @@
@click="handleClick(index)"
hover-class="u-hover-class"
>
<view :class="['count-view', { active: item.type == 'finish' }]">{{
info[item.key] || 0
}}</view>
<view
:class="[
'count-view',
{ active: currentClicks[current][item.type] },
]"
>{{ info[item.key] || 0 }}</view
>
<view>{{ item.label }}</view>
</view>
</view>
......@@ -61,7 +65,7 @@ export default {
info: {},
offset: [0, 0],
current: 0,
currentTime: 'today',
currentClicks: [],
}
},
computed: {
......@@ -104,8 +108,12 @@ export default {
currentParam() {
return this.params[this.current]
},
clicks() {
return { take: false, checkin: false, finish: false }
},
},
onLoad() {
this.currentClicks = this.clicks
this.getOrderCount()
},
methods: {
......@@ -127,6 +135,14 @@ export default {
},
handleClick(index) {
var item = this.detailLabels[index]
this.currentClicks = [
{ ...this.clicks },
{ ...this.clicks },
{ ...this.clicks },
{ ...this.clicks },
]
this.currentClicks[this.current][item.type] = true
if (this.info[item.key] > 0) {
this.$u.route({
url: 'pages/mine/order/list',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment