function loadPage() {
$.ajax({
url: '/upos_service/getproductInfobyid',
type: 'GET',
data: { 'productId': $.getUrlVar("productId") },
success: function (responseText) {
var result = eval("(" + responseText + ")");
if (result != null) {
$("#lblProductName_0").html(result.product.Name);
$("#lblProductMemo_0").html(result.product.Description);
for (var i = 0; i < result.subProductList.length; i++) {
$("<input>", { "type": "radio", "name": "subProduct", "value": result.subProductList[i].Id }).appendTo($("#listDiv"));
var desc = $("<b>", { "class": "redFont" });
$("<span>", { "id": "lblSubProdPrice_" + i }).html(result.subProductList[i].Price.toFixed(2)).appendTo(desc);
$("<span>").html("元/"+(i+1)+"年 ").appendTo(desc);
desc.appendTo($("#listDiv"));
}
if (result.subProductList.length > 0) {
$(":radio[name='subProduct']")[0].checked = true;
}
var userType = User.GetUserType();
if (userType < 1) {
$("#txtUserMobile").show();
}
else {
$("label[for='txtUserMobile']").hide(); //bug when txtUserMobile invisible
$("#txtUserMobile").hide();
}
}
}
});
}