|
|
@@ -196,7 +196,7 @@ export default {
|
|
|
this.$u.api.getSearchRecommendAjax(this.keyword).then(res => {
|
|
|
if (res.code == 200) {
|
|
|
res.data.discountDesc = res.data.productPrice ? ((res.data.productPrice / res.data.price) * 10).toFixed(2) + '折' : '';
|
|
|
- res.data.discountPrice = res.data.productPrice ? res.data.price - res.data.productPrice : '';
|
|
|
+ res.data.discountPrice = res.data.productPrice ? (res.data.price - res.data.productPrice).toFixed(2) : '';
|
|
|
this.hotBook = res.data;
|
|
|
}
|
|
|
});
|