|
@@ -41,13 +41,13 @@ export default {
|
|
},
|
|
},
|
|
badgeValue() {
|
|
badgeValue() {
|
|
if (!this.valid) return ''
|
|
if (!this.valid) return ''
|
|
- if (this.value * 1 > 0) return this.exchange ? this.underText : this.overText
|
|
|
|
- return this.exchange ? this.overText : this.underText
|
|
|
|
|
|
+ if (this.value * 1 > 0) return !this.exchange ? this.underText : this.overText
|
|
|
|
+ return !this.exchange ? this.overText : this.underText
|
|
},
|
|
},
|
|
badgeType() {
|
|
badgeType() {
|
|
- if (!this.valid) return this.exchange ? this.overType : this.underType
|
|
|
|
- if (this.value * 1 > 0) return this.exchange ? this.underType : this.overType
|
|
|
|
- return this.exchange ? this.overType : this.underType
|
|
|
|
|
|
+ if (!this.valid) return !this.exchange ? this.overType : this.underType
|
|
|
|
+ if (this.value * 1 > 0) return !this.exchange ? this.underType : this.overType
|
|
|
|
+ return !this.exchange ? this.overType : this.underType
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods: {}
|
|
methods: {}
|