activity.js 456 B

123456789101112131415161718
  1. /**
  2. * @param {string|number} key 唯一值
  3. */
  4. export function getActivity(key) {
  5. return {
  6. promotionId: `${key}`,
  7. title: `满减满折回归${key}`,
  8. description: null,
  9. promotionCode: 'MERCHANT',
  10. promotionSubCode: key % 2 === 0 ? 'MYJ' : 'MYG',
  11. tag: '满减',
  12. timeType: 1,
  13. startTime: '1588737710000',
  14. endTime: '1601467070000',
  15. teasingStartTime: null,
  16. activityLadder: [{ label: '满100元减99.9元' }],
  17. };
  18. }