...
|
...
|
@@ -213,17 +213,13 @@ module.exports = class extends global.yoho.BaseModel { |
|
|
let shareUrl = 'http://m.yohobuy.com/activity/share-buy';
|
|
|
|
|
|
if (result && result.code === 200 && result.data) {
|
|
|
let dateTime;
|
|
|
|
|
|
_.forEach(result.data.detail, function(val) {
|
|
|
|
|
|
val.cancel = parseInt(val.status, 10) === 0 ? true : false;
|
|
|
val.already = parseInt(val.status, 10) === 2 ? true : false;
|
|
|
|
|
|
dateTime = new Date(val.createTime);
|
|
|
|
|
|
val.createTime = dateTime.getFullYear() + '.' + (dateTime.getMonth() + 1) +
|
|
|
'.' + dateTime.getDate();
|
|
|
val.createTime = helpers.dateFormat('YYYY.MM.DD', val.createTime);
|
|
|
});
|
|
|
|
|
|
result.data.currencyUrl = isApp ? currencyUrl +
|
...
|
...
|
|