返回列表

spec

默认分类 2015/08/14 22:24

product spec:

var res = {
    "Code": 200,
    "BCode": 0,
    "Msg": null,
    "Data": {
        "Catalogs": [{
            "CatalogId": "3a851c8a-2b63-40b2-b298-c30e6f1286b0",
            "CatalogPropertys": [{
                "CatalogPropertyId": null,
                "CatalogAttributeId": null,
                "CatalogName": "颜色分类",
                "CatalogValue": "red",
                "PicUrl": null
            }],
            "Stock": 100,
            "Price": 1000.00,
            "OriginalPrice": 1000.00
        }, {
            "CatalogId": "ca1dda0c-b4b6-4b89-b600-73418eca6a21",
            "CatalogPropertys": [],
            "Stock": 100,
            "Price": 100.00,
            "OriginalPrice": 100.00
        }, {
            "CatalogId": "24740b9a-9136-4cce-8252-b33fbc11368f",
            "CatalogPropertys": [],
            "Stock": 100,
            "Price": 100.00,
            "OriginalPrice": 100.00
        }, {
            "CatalogId": "e2975353-7f15-497c-8792-b7e5d774ecd8",
            "CatalogPropertys": [],
            "Stock": 100,
            "Price": 100.00,
            "OriginalPrice": 100.00
        }],
        "ProductCatalogLisst": [{
            "PropertyName": "颜色分类",
            "PropertyValues": [{
                "CatalogIds": ["3a851c8a-2b63-40b2-b298-c30e6f1286b0"],
                "PropertyPic": null,
                "PropertyValue": "red"
            }]
        }, {
            "PropertyName": null,
            "PropertyValues": [{
                "CatalogIds": ["ca1dda0c-b4b6-4b89-b600-73418eca6a21", "24740b9a-9136-4cce-8252-b33fbc11368f", "e2975353-7f15-497c-8792-b7e5d774ecd8"],
                "PropertyPic": null,
                "PropertyValue": null
            }]
        }]
    },
    "Trace": null
};
var datasource = {
    "Code": 200,
    "BCode": 0,
    "Msg": null,
    "Data": {
        "Catalogs": [{
            "CatalogId": "1dae37f9-725f-4a74-bbb8-e37c680d4757",
            "CatalogPropertys": [],
            "Stock": 110,
            "Price": 0.11,
            "OriginalPrice": 0.11
        }],
        "ProductCatalogLisst": [{
            "PropertyName": null,
            "PropertyValues": [{
                "CatalogIds": ["1dae37f9-725f-4a74-bbb8-e37c680d4757"],
                "PropertyPic": null,
                "PropertyValue": null
            }]
        }]
    }
};