$(document).ready(function() { var isMember=False; var isAgent=False; if (isMember=="False" && isAgent=="False") { $("#spConsultationUserName").css({"display":""}); $("#spConsultationPsw").css({"display":""}); $("#spConsultationReg").css({"display":""}); $("#btnConsultation").val("登录并发表"); } else { $("#txtUserName").val(Anonymous); $("#txtEmail").val(anonymous@localhost.com); $("#txtConsultationUserName").attr(); $("#txtConsultationPsw").attr(); $("#spConsultationUserName").css({"display":"none"}); $("#spConsultationPsw").css({"display":"none"}); $("#spConsultationReg").css({"display":"none"}); $("#btnConsultation").val("发表"); } }) function ResetPager(sender, eventArgs) { cbPage.callback(); } function addConsultations() { var email = $("#txtEmail").attr("value"); var name = $("#txtUserName").attr("value"); var info = $("#txtConsultation").attr("value"); var userName = $("#txtConsultationUserName").attr("value"); var password = $("#txtConsultationPsw").attr("value"); var code = $("#txtConsultationCode").attr("value"); var productId = 127; $.ajax({ url: "ProductHandler.aspx", type: post, dataType: json, timeout: 10000, data:{action:"ProductConsultation",productId:productId,name:name,Email:email,Content:info,username:userName,password:password,code:code}, async: false, success: function(resultData) { if (resultData.Status == "1") { cbProConsultations.callback(); $("#txtEmail").attr("value",""); $("#txtUserName").attr("value",""); $("#txtConsultation").attr("value",""); alert("咨询成功,管理员回复后才会显示!"); if ($("#txtConsultationUserName").val()!=&& $("#txtConsultationPsw").val()!= ) { window.location.reload(); } $("#txtUserName").val(Anonymous); $("#txtEmail").val(anonymous@localhost.com); } else if (resultData.Status == "0") { alert(resultData.Msg.replace(/
/g,\n)) } refreshConsultationCode(); refreshReviewCode(); $("#txtConsultationCode").val(""); } }); } //
//
|
| | 请在这里输入您要咨询的内容:*必填(注意请不要超过200个字符 | | - document.getElementById(imgConsultationVerifyCode).src = applicationPath + "/VerifyCodeImage.aspx"; function refreshConsultationCode() { var img = document.getElementById("imgConsultationVerifyCode"); if (img != null) { var currentDate = new Date(); img.src = applicationPath + "/VerifyCodeImage.aspx?t=" + currentDate.getTime(); } }
-
-
| |
$(document).ready(function() { var isMember=False; var isAgent=False; if (isMember=="False" && isAgent=="False") { $("#spReviewUserName").css({"display":""}); $("#spReviewPsw").css({"display":""}); $("#spReviewReg").css({"display":""}); $("#btnReview").val("登录并发表"); } else { $("#txtReviewName").val(Anonymous); $("#txtReviewEmail").val(anonymous@localhost.com); $("#txtReviewUserName").attr(); $("#txtReviewPsw").attr(); $("#spReviewUserName").css({"display":"none"}); $("#spReviewPsw").css({"display":"none"}); $("#spReviewReg").css({"display":"none"}); $("#btnReview").val("发表"); } }) function ResetPagerReview(sender, eventArgs) { cbReviewPage.callback(); } function addReview() { var email = $("#txtReviewEmail").attr("value"); var name = $("#txtReviewName").attr("value"); var info = $("#txtReviewMessage").attr("value"); var userName = $("#txtReviewUserName").attr("value"); var password = $("#txtReviewPsw").attr("value"); var code = $("#txtReviewCode").attr("value"); var productId = 127; $.ajax({ url: "ProductHandler.aspx", type: Post, dataType: json, timeout: 10000, data:{action:"ProductReview",productId:productId,Name:name,Email:email,Content:info,username:userName,password:password,code:code}, async: false, success: function(resultData) { if (resultData.Status == "1") { cbProductReviews.callback(); $("#txtReviewEmail").attr("value",""); $("#txtReviewName").attr("value",""); $("#txtReviewMessage").attr("value",""); alert("评论成功"); if ($("#txtReviewUserName").val()!=&& $("#txtReviewPsw").val()!= ) { window.location.reload(); } $("#txtReviewName").val(Anonymous); $("#txtReviewEmail").val(anonymous@localhost.com); } else if (resultData.Status == "0") { alert(resultData.Msg.replace(/
/g,\n)) } refreshReviewCode(); refreshConsultationCode(); $("#txtReviewCode").val(""); } }); } //
//
如果你对此商品评价或分享经验,在此提交 |
| | 请在这里输入您要评论的内容:*必填(注意请不要超过200个字符) | | | |
(上海市RQ-24A燃气烤鸭炉厂家)