...
|
...
|
@@ -15,7 +15,7 @@ class magazineModel extends global.yoho.BaseModel { |
|
|
data = data.data;
|
|
|
|
|
|
let totalPrice = '';
|
|
|
let prices = _.forEach(_.get(data, 'eBook.prices'), val => {
|
|
|
let prices = _.forEach(_.get(data, 'book.prices'), val => {
|
|
|
if (val.select === 'Y') {
|
|
|
val.className = 'active';
|
|
|
totalPrice = val.price;
|
...
|
...
|
@@ -24,7 +24,7 @@ class magazineModel extends global.yoho.BaseModel { |
|
|
|
|
|
return {
|
|
|
goodsList: data.goods_list || [],
|
|
|
maxBuyNumber: _.get(data, 'eBook.maxBuyNumber'),
|
|
|
maxBuyNumber: _.get(data, 'book.maxBuyNumber'),
|
|
|
prices,
|
|
|
totalPrice,
|
|
|
};
|
...
|
...
|
|