Authored by ccbikai

商品详情页面不显示返有货币

... ... @@ -94,7 +94,7 @@ const getConsults = (id, page, limit) => {
*/
let _processComment = (data) => {
let result = {
commentsNum: data.pageResponse.totalCount,
commentsNum: (data.pageResponse && data.pageResponse.totalCount) || 0,
comments: []
};
... ...
... ... @@ -1001,7 +1001,7 @@ let getProductData = (data) => {
return api.get('', params, {
code: 200
}).then(global.yoho.camelCase).then(result => {
if (result.code === 500) {
if (result.code === 500 || !result.data) {
return {};
}
result = result.data;
... ...
... ... @@ -73,7 +73,7 @@
</div>
{{/if}}
{{#if studentCoinNum}}
{{!-- {{#if studentCoinNum}}
<div class="price-date">
<div class="student-price">
<i class="student-name">返</i> 学生返币{{ studentCoinNum}}个
... ... @@ -87,7 +87,7 @@
</div>
</div>
{{/commodityReturn}}
{{/if}}
{{/if}} --}}
{{#unless studentPrice}}
{{# vipLevel}}
... ...