seckill-mock.js 5.3 KB
exports.activities = {
    'alg': 'SALT_MD5',
    'code': 200,
    'data': {
        'currentTime': 1473839306925,
        'secKillProductVoList': [{
            'activityId': 1,
            'endTime': 1473739200,
            'secKillStatus': 0,
            'startTime': 1475096193,
            'status': 0,
            'storageSum': 0
        }, {
            'activityId': 2,
            'endTime': 1473746400,
            'secKillStatus': 0,
            'startTime': 1475096193,
            'status': 0,
            'storageSum': 0
        }, {
            'activityId': 3,
            'endTime': Math.round((Date.now() + 1000 * 60 * 60 * 8) / 1000),
            'secKillStatus': 0,
            'startTime': Math.round((Date.now() + 1000 * 60 * 60) / 1000),
            'status': 0,
            'storageSum': 0
        }]
    },
    'md5': 'b291f2aa3015749f676f50de0d513437',
    'message': 'query secKillActivity info'
};

// 未开抢 mock 数据
exports.waitData = {
    'alg': 'SALT_MD5',
    'code': 200,
    'data': [{
        'activityId': 3,
        'defaultImages': 'http://img11.static.yhbimg.com/goodsimg/2016/09/12/14/018aea16153cec3ad0c677a106b5d95c53.png?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/70',
        'endTime': Math.round((Date.now() + 1000 * 60 * 60 * 7) / 1000),
        'marketPrice': 100,
        'productName': 'blkheimei男休闲/运动鞋南京艾尚仅门店可售',
        'productSkn': 512581470,
        'secKillPrice': 40,
        'secKillSku': [{
            'productSkn': 512581470,
            'productSku': 1384138,
            'storageNum': 5
        }, {
            'productSkn': 512581470,
            'productSku': 1384140,
            'storageNum': 5
        }, {
            'productSkn': 512581470,
            'productSku': 1384140,
            'storageNum': 5
        }],
        'secKillStatus': 1,
        'startTime': Math.round((Date.now() + 1000 * 60 * 60) / 1000),
        'status': 0,
        'storageSum': 10,
        remindFlag: false
    }, {
        'activityId': 3,
        'defaultImages': 'http://img11.static.yhbimg.com/goodsimg/2016/09/12/14/018aea16153cec3ad0c677a106b5d95c53.png?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/70',
        'endTime': Math.round((Date.now() + 1000 * 60 * 60 * 7) / 1000),
        'marketPrice': 100,
        'productName': 'blkheimei男休闲/运动鞋南京艾尚仅门店可售',
        'productSkn': 512581470,
        'secKillPrice': 40,
        'secKillSku': [{
            'productSkn': 512581470,
            'productSku': 1384138,
            'storageNum': 5
        }, {
            'productSkn': 512581470,
            'productSku': 1384140,
            'storageNum': 5
        }, {
            'productSkn': 512581470,
            'productSku': 1384140,
            'storageNum': 5
        }],
        'secKillStatus': 1,
        'startTime': Math.round((Date.now() + 1000 * 60 * 60) / 1000),
        'status': 0,
        'storageSum': 10,
        remindFlag: true
    }],
    'md5': 'f09659c22f275fbd23d8999c58aba994',
    'message': 'query secKillProductList info'
};

exports.inActivityData = {
    'alg': 'SALT_MD5',
    'code': 200,
    'data': [{
        'activityId': 3,
        'defaultImages': 'http://img11.static.yhbimg.com/goodsimg/2016/09/12/14/018aea16153cec3ad0c677a106b5d95c53.png?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/70',
        'endTime': Math.round((Date.now() + 1000 * 60 * 60 * 7) / 1000),
        'marketPrice': 100,
        'productName': 'blkheimei男休闲/运动鞋南京艾尚仅门店可售',
        'productSkn': 512581470,
        'secKillPrice': 40,
        'secKillSku': [{
            'productSkn': 512581470,
            'productSku': 1384138,
            'storageNum': 5
        }, {
            'productSkn': 512581470,
            'productSku': 1384140,
            'storageNum': 5
        }, {
            'productSkn': 512581470,
            'productSku': 1384140,
            'storageNum': 5
        }],
        'secKillStatus': 1,
        'startTime': Math.round(Date.now() / 1000),
        'status': 0,
        'storageSum': 10,
        remind: false
    }, {
        'activityId': 3,
        'defaultImages': 'http://img11.static.yhbimg.com/goodsimg/2016/09/12/14/018aea16153cec3ad0c677a106b5d95c53.png?imageMogr2/thumbnail/{width}x{height}/extent/{width}x{height}/background/d2hpdGU=/position/center/quality/70',
        'endTime': Math.round((Date.now() + 1000 * 60 * 60 * 7) / 1000),
        'marketPrice': 100,
        'productName': 'blkheimei男休闲/运动鞋南京艾尚仅门店可售',
        'productSkn': 512581470,
        'secKillPrice': 40,
        'secKillSku': [{
            'productSkn': 512581470,
            'productSku': 1384138,
            'storageNum': 5
        }, {
            'productSkn': 512581470,
            'productSku': 1384140,
            'storageNum': 5
        }, {
            'productSkn': 512581470,
            'productSku': 1384140,
            'storageNum': 5
        }],
        'secKillStatus': 1,
        'startTime': Math.round(Date.now() / 1000),
        'status': 0,
        'storageSum': 10,
        remind: true
    }],
    'md5': 'f09659c22f275fbd23d8999c58aba994',
    'message': 'query secKillProductList info'
};