|
|
|
@ -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) |
|
|
|
|