From de7651b6962eee038acd8c1e41ead30c6db3c727 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=96=E5=AE=B6=E5=8D=8E?= Date: Fri, 22 Jun 2018 18:32:08 +0800 Subject: [PATCH] no message --- src/view/month-card.vue | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/view/month-card.vue b/src/view/month-card.vue index e0f75c8..ec35e34 100644 --- a/src/view/month-card.vue +++ b/src/view/month-card.vue @@ -156,11 +156,11 @@ // // } if (result.code === 0 || result.code === 3) { - alert("领取成功!"); - setTimeout(function () { - window.location.href = locationUrl + '/mall/web/vgoods/detail/' + that.getData.goodsNo; - }, 1000); -// window.history.go(0); + // alert("领取成功!"); + // setTimeout(function () { + // window.location.href = locationUrl + '/mall/web/vgoods/detail/' + that.getData.goodsNo; + // }, 1000); + window.history.go(0); // hide_layer(1); } else if (result.code === 666) { alert("您还没登录,请先登录!"); @@ -183,7 +183,7 @@ filters: { numFilter(value) { // 截取当前数据到小数点后三位 - let transformVal = Number(value/100).toFixed(2) + let transformVal = Number(value/100).toFixed(1) let realVal = transformVal.substring(0, transformVal.length - 1) // num.toFixed(3)获取的是字符串 return Number(realVal)