Commit 2c850186 authored by Facius's avatar Facius

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

parent 1ab17635
...@@ -41,9 +41,13 @@ ...@@ -41,9 +41,13 @@
@click="handleClick(index)" @click="handleClick(index)"
hover-class="u-hover-class" hover-class="u-hover-class"
> >
<view :class="['count-view', { active: item.type == 'finish' }]">{{ <view
info[item.key] || 0 :class="[
}}</view> 'count-view',
{ active: currentClicks[current][item.type] },
]"
>{{ info[item.key] || 0 }}</view
>
<view>{{ item.label }}</view> <view>{{ item.label }}</view>
</view> </view>
</view> </view>
...@@ -61,7 +65,7 @@ export default { ...@@ -61,7 +65,7 @@ export default {
info: {}, info: {},
offset: [0, 0], offset: [0, 0],
current: 0, current: 0,
currentTime: 'today', currentClicks: [],
} }
}, },
computed: { computed: {
...@@ -104,8 +108,12 @@ export default { ...@@ -104,8 +108,12 @@ export default {
currentParam() { currentParam() {
return this.params[this.current] return this.params[this.current]
}, },
clicks() {
return { take: false, checkin: false, finish: false }
},
}, },
onLoad() { onLoad() {
this.currentClicks = this.clicks
this.getOrderCount() this.getOrderCount()
}, },
methods: { methods: {
...@@ -127,6 +135,14 @@ export default { ...@@ -127,6 +135,14 @@ export default {
}, },
handleClick(index) { handleClick(index) {
var item = this.detailLabels[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) { if (this.info[item.key] > 0) {
this.$u.route({ this.$u.route({
url: 'pages/mine/order/list', 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