diff --git a/pages/users/user_integral/index.vue b/pages/users/user_integral/index.vue index 451da42..ac08ceb 100644 --- a/pages/users/user_integral/index.vue +++ b/pages/users/user_integral/index.vue @@ -243,13 +243,14 @@ }); return; } - if((this.consumeToShareNum*this.consumeToShare).toFixed(2)>this.consume){ + if(Number(this.consumeToShareNum*this.consumeToShare).toFixed(2)>Number(this.consume)){ uni.showToast({ title: '积分不足', icon:'none' }); return; } + jifenToShare({count:this.consumeToShareNum}).then(res=>{ this.getUserInfo()