﻿///<reference path="../jquery.js" />
$(function () {
    var items = $(".dymp");
    var list = "";
    $.each(items, function () {
        list += $(this).attr("title") + ",";
    });
    if (list != "") {
        list = list.substring(0, list.length - 1);
        $.post("/Service/Mall/Product/GetPrice.aspx", { list: list }, function (resp) {
            if (resp.Success) {
                if (resp.Result.length > 0) {
                    var array = eval(resp.Result);
                    for (var i = 0; i < array.length; i++) {
                        items.filter("[title='" + array[i][0] + "']").html(array[i][1]);
                    }
                }
            }
            else {
                items.html("<a href='/login.html' style='color:#a10000;'>登录后显示</a>");
            }
        }, "json");
    }
});
