@@ -138,7 +138,7 @@
// 收藏店铺
shop_num: '',
// 积分
- integral:''
+ integral: ''
};
},
onShow: function() {
@@ -174,9 +174,7 @@
arr = await that.$api(`/point/computedTotal`, 'GET', {
customer: user._id
})
- if (arr.errcode == '0') {
- if (arr.data > 1) that.$set(that, `integral`, arr.data);
- }
+ if (arr.errcode == '0') that.$set(that, `integral`, Math.trunc(arr.data));
}
fail: (err) => {}