|
@@ -13,17 +13,17 @@
|
|
<div class="kanban">
|
|
<div class="kanban">
|
|
<div>
|
|
<div>
|
|
<span>获得的总积分数</span>
|
|
<span>获得的总积分数</span>
|
|
- <div>{{jf.zjf}}</div>
|
|
|
|
|
|
+ <div>{{numcal(jf.zjf)}}</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div>
|
|
<div>
|
|
<span>已兑换商品总积分数</span>
|
|
<span>已兑换商品总积分数</span>
|
|
- <div>{{jf.dhjf}}</div>
|
|
|
|
|
|
+ <div>{{numcal(jf.dhjf)}}</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div>
|
|
<div>
|
|
<span>未兑换商品总积分数</span>
|
|
<span>未兑换商品总积分数</span>
|
|
- <div>{{jf.jf}}</div>
|
|
|
|
|
|
+ <div>{{numcal(jf.jf)}}</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -41,7 +41,9 @@ export default {
|
|
jf: {}
|
|
jf: {}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+
|
|
mounted() {
|
|
mounted() {
|
|
|
|
+
|
|
getJfkb().then(res => {
|
|
getJfkb().then(res => {
|
|
this.options = res.data.data
|
|
this.options = res.data.data
|
|
this.value = this.options[0].value
|
|
this.value = this.options[0].value
|
|
@@ -60,6 +62,9 @@ export default {
|
|
})
|
|
})
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
|
|
+ numcal(num){
|
|
|
|
+ return num.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',')
|
|
|
|
+ },
|
|
xzbm() {
|
|
xzbm() {
|
|
getJfmb(this.value).then(jfmb => {
|
|
getJfmb(this.value).then(jfmb => {
|
|
this.jf = jfmb.data.data
|
|
this.jf = jfmb.data.data
|