CheckIsLogin1(); function CheckIsLogin1(){ document.getElementById('topLoginStatus').innerHTML = "\"\"/"; jQuery.st.ajax('logincheck',{params:{}, success:function(response){ switch (jQuery(response).find('status').text()) { case "ok": document.getElementById('topLoginStatus').style.display = ""; document.getElementById('topLoginFrom').style.display = "none"; document.getElementById('topLoginStatus').innerHTML = GetUserInfo1(response); break; default: document.getElementById('topLoginStatus').style.display = "none"; document.getElementById('topLoginFrom').style.display = ""; break; } }} ); } function GetUserInfo1(response){ var userInfo =""+ jQuery(response).find('username').text() + ",您好!欢迎来到万可佳商城!"; userInfo = userInfo + "会员中心|"; userInfo = userInfo + "退出登录"; return userInfo; }

|订单查询

if ('' != '') { document.getElementById('topKeyWord').value = '' }; document.getElementById("topKeyWord").onkeydown = function (e) { e = e || window.event; if (e.keyCode == 13) { gSearch(); } } function gSearch() { var keyword = document.getElementById('topKeyWord').value; if (keyword == '' || keyword == '请输入搜索关键字') { alert("请输入关键词"); return; } else { keyword = encodeURI(keyword); window.location = 'http://wkjjk.com/search.aspx?searchtype=4&Keyword=' + keyword; } }
  • 24小时电话
  • 全国免运费
  • 支持货到付款
(function (w) { if (w.screen.availWidth >= 1280) document.body.className = 'wrapIn1280'; })(window);
首页>保健品分类>健康食品>休闲零食
    //多图片展示 var proImg = jQuery("#productPhoto"); var load = jQuery("#loading"); var pathList = ('Productmultiplephoto/201504201342335067.png$$$Productmultiplephoto/201504201342336188.png$$$Productmultiplephoto/201504201342349894.png').replace('[]',''); var pathArray = pathList.split('$$$'); var productthumb = '/UploadFiles/Shop/201504201342262619_S.png'; var productpic = '/UploadFiles/Shop/201504201342262619.png'; var uploadUrl = "/UploadFiles/"; productpic = productpic==""?productthumb:productpic; productpic = productpic==""?"/Images/nopic.gif":productpic; var tempHtml="
  • "; for(var i in pathArray){ if(pathArray[i]!=""){ var tempUrl=uploadUrl; if( pathArray[i].indexOf('://')>0 ){ tempUrl=""; } tempHtml +="
  • "; } } jQuery("#minPicScroll ul").html(tempHtml); jQuery("#minPicScroll").slide({ mainCell:"ul",autoPlay:false,autoPage:true,effect:"left",vis:5,scroll:5 }); jQuery("#minPicScroll li").mouseover(function(){ jQuery(this).addClass("on").siblings().removeClass("on");; var src=jQuery(this).find("img").attr("src"); proImg.attr({ jqimg:src,src:src }); }); jQuery("#minPicScroll li").eq(0).trigger("mouseover"); //load.hide(); proImg.show();

    好想你混装枣片360g 健康零食[wkj01]好想你混装枣片360g 健康零食[wkj01]

    【名称】:好想你混装枣片 【功效作用】:能增强肌力、消除疲劳、美白祛斑、增加心肌收缩力、改善心肌营养,补虚益气、养血安神、健脾和胃等功效 【规格】:360g 【保质期】:12个月  活动优惠咨询微信:13384009419。

    价格:70.00

    促销价:¥52.00

    (8) 人评
    • 商品品牌:好想你
    • 商品编号:20150420134049162358350
    • 用户评分:8 人评)
    • 人    气:已有 人关注
    • 购买数量:
    • 产品数量减一个
    • 产品数量加一个
    • 满99元在线支付包邮;满199元货到付款包邮

    宝贝已成功添加到购物车

    购物车共种宝贝合计:

    去购物车结算 继续购物

    购物车立即订购加入购物车

    订购热线:400-0066-106     短信订购:18003860306

    万可佳承诺:商品:保证正品支付方式:
    • 产品货到付款货到付款
    • 产品在线支付在线支付
    • 产品银行汇款银行汇款

    知心推荐

    最近浏览

    var viewProduct_ContainerId = 'ProductLog'; setTimeout("productsVisited()",1000); function productsVisited() { var itemIdInCookie = getCookie("ViewProductLog"); $.st.ajax('updatelabel',{labelName:'浏览过的商品2015',currentPage:1, params:{ItemID:itemIdInCookie}, success:function(response){ var responseBody=jQuery(response).find('body').text(); var outputHtml=responseBody || ""; jQuery("#"+viewProduct_ContainerId).html(outputHtml); } } ); } function getCookie(name) { if (document.cookie.length > 0) { cookieStart = document.cookie.indexOf( name + "=" ) if (cookieStart != - 1) { cookieStart = cookieStart + name.length + 1 cookieEnd = document.cookie.indexOf( ";", cookieStart ) if (cookieEnd == - 1) cookieEnd = document.cookie.length return unescape(document.cookie.substring( cookieStart, cookieEnd)); } } return ""; } // ------------------------------------增加浏览过的商品Cookie设置开始 function CreactViewProductLogCookie() { var productid = 2974; var current = getCookie("ViewProductLog"); if(productid.length != 0) { var pid = ""; var pidarr = "," + current + ","; if(pidarr.indexOf("," + productid + ",") < 0) { if(current.length != 0) { pid = productid + "," + current; var arr = pid.split(","); if(arr.length > 10) { pid = ""; for(var i = 0; i < 10; i ++) { if(pid.length == 0) { pid = arr[i]; } else { pid = pid + "," + arr[i]; } } } } else { pid = productid; } setCookie("ViewProductLog", pid, 30, "/", "", false); } } else { return ""; } } function ClearViewProductLog(){ setCookie("ViewProductLog", "", 0, "/", "", false); //CreactViewProductLogCookie(); productsVisited(); } function setCookie(name, value, expires, path, domain, secure) { var today = new Date(); today.setTime(today.getTime()); if (expires) { expires = expires * 1000 * 60 * 60 * 24; } var expires_date = new Date(today.getTime() + (expires)); document.cookie = name + '=' + escape(value) + ((expires) ? ';expires=' + expires_date.toGMTString() : '') + // expires.toGMTString() ((path) ? ';path=' + path : '') + ((domain) ? ';domain=' + domain : '') + ((secure) ? ';secure' : ''); } CreactViewProductLogCookie(); // ---------------------------------------增加浏览过的商品Cookie设置完毕
    • 商品详情
    • 用户评价 (8)
    • 相关问答
    • 相关资讯
    • 售后服务

    商品评价

    4.9

    8人参与评价

    8人(100%)

    0人(0%)

    0人(0%)

    0人(0%)

    0人(0%)

    评论者评价心得

    如购买过程中有任何疑问,欢迎向我们咨询

    咨询类型:
    咨询内容:
    var consultType=0; //初始化列表 function Preconsult_Changepage(pagenum, listLabelName, pageLabelName){ var params = {productId:'2974', categoryId: consultType , page:'true', pagesize:'10'}; CommonChangepage(pagenum, params, listLabelName, pageLabelName , 'DivPreconsultList' , 'DivPreconsultList_Page'); } function LoadPreconsultList(){ Preconsult_Changepage(1, '售前咨询问题列表', 'JS_基本风格_售前咨询' ); } jQuery(document).ready(function(){ LoadPreconsultList(); }); jQuery(function(){ jQuery("#BtnAddPreconsult").click(function(){ var content=jQuery("#preconsultcontent").val(); var productId='2974'; if (content == '') { alert("请输入咨询内容!"); jQuery("#preconsultcontent").focus(); return false; } var commentValidCode = ""; var checkValidCode = false; if (jQuery("#commentValidCode2").val() == '') { alert("请输入验证码!"); jQuery("#commentValidCode2").focus(); return; } else { commentValidCode =jQuery("#commentValidCode2").val(); checkValidCode = true; } jQuery.post('/ajax.aspx?HandlerName=PreConsultationAjaxHandler', "AddPreConsultation" + productId + "" + consultType + "" + content + "" + commentValidCode + "", function(resp){ var data = $(resp); var status = data.find('status').text(); switch (status) { case "ok": jQuery("#preconsultcontent").val(""); jQuery("#commentValidCode2").val(""); LoadPreconsultList(); alert("发表咨询成功,请等待管理员回复!"); break; case "needAudit": jQuery("#preconsultcontent").val(""); jQuery("#commentValidCode2").val(""); alert("发表咨询成功,请等待管理员审核并回复!"); break; case "err": alert("发表咨询失败!"); break; case "checkCodeError": jQuery("#commentValidCode2").val(""); refreshValidCode(jQuery("#commentValidCodeImg2")); alert("您输入的验证码和系统产生的不一致,请重新输入!"); break; default: alert("发表咨询失败!"); break; } //刷新评论验证码 var commentValidCodeImg=document.getElementById("commentValidCodeImg"); refreshValidCode2(commentValidCodeImg); //刷新验证码 var commentValidCodeImg2=document.getElementById("commentValidCodeImg2"); refreshValidCode2(commentValidCodeImg2); }); }); }); function getCategory(val) { consultType=val; //取得指定类型的咨询列表 LoadPreconsultList(); } //刷新验证码 function refreshValidCode2(obj) { if(obj!=null){ obj.src = obj.src + '?code=' + randomNumber(10); } }
  • 好想你混装枣片360g 健康零食怎么样/最新评价

    MicrosoftInternetExplorer402DocumentNotSpecified7.8 磅Normal0 名称】:好想你混装枣片 【功效作用】:能增强肌力、消除疲劳、美白祛斑、增加心肌收缩力、改善心肌营养,补虚益气、养血安神、健脾和胃等功效 【规格】:360g 【保质期】:12个月 好想你混装枣片360g 健康零食的评价如下: 在万可佳商城对好想你混装枣…
  • 好想你混装枣片360g 健康零食说明书/食用方法

    MicrosoftInternetExplorer402DocumentNotSpecified7.8 磅Normal0 好想你混装枣片360g 健康零食说明书 好想你混装枣片360g 健康零食精选红枣、真空浓缩、严格卫生把关、味道纯正、甜美可口,安全放心、大品牌值得信赖。 产品名称:好想你混装枣片 产品规格:360g 配料:大枣、白砂糖、苹果等 保质期:12个月 …


  • 售后服务
    $(function () { jQuery("#proConBox").slide({ defaultIndex: 0, mainCell: ".bd", autoPlay: false, effect: "fade", trigger: "click" }); var l = $("#producthd").offset().top; $("#producthd li").bind("click", function () { $(window).scrollTop(l); }); });

    根据浏览猜你喜欢

    猜你喜欢产品左侧按钮
  • 暂无资料
  • 猜你喜欢产品右侧按钮
     
       

    商务通

    function LR_showminiDiv1(){};var LR_showminiDiv_no=1; var _hmt = _hmt || []; (function() { var hm = document.createElement("script"); hm.src = "//hm.baidu.com/hm.js?bdb5ff5cfd041aebb1a7dde77120c253"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s); })();
    //购买数量,加减按钮 var setAmount ={}; function _getAmount(id){ return parseInt(jQuery(id).val()) || 0; } setAmount.add = function(id){ jQuery(id).val(_getAmount(id) + 1);}; setAmount.reduce = function(id){var t = _getAmount(id);jQuery(id).val(t <= 1 ? 1 : t-1);}; //商品图片放大功能 jQuery(".jqzoom").jqueryzoom({xzoom: 384,yzoom: 350 }); //控制图片过大撑开页面 jQuery("#productExplain img").each(function(){ var img=jQuery(this); img.hide(); var imgInt=setInterval( function(){ if(img.width()>0){ clearInterval(imgInt); if(img.width()>750){ if (window.screen.availWidth<=1024) { img.width(750).css({cursor:"pointer",height:"auto"}); } } img.show(); } },50 ); }); /* 商品多属性 */ var propertyJson = []; var stocks = {} ; var fieldJson=[{name:'mingcheng',alias:'商品名称',value:'好想你混装枣片'},{name:'Brand',alias:'品牌',value:'好想你'},{name:'Category',alias:'类别',value:'休闲零食'}] //获取商品自定义字段表格 function GetFieldList() { var container = document.getElementById("shopAllInfo"); if(fieldJson.length == 0){ container.innerHTML = "没有任何内容!"; }else{ var html=""; for(var i=0;i 0); //显示多属性选择器 PropertyPicker.show = function(){ productproperty.addClass('otherPropertyOn'); productproperty_div.addClass('ppborder'); productproperty_div.find('.proBtns .buyNow,.addCart,.addFav').css({'display':'none'}); productproperty_div.find('.proBtns').append(""); }; //关闭选择器 PropertyPicker.close = function(){ productproperty.removeClass('otherPropertyOn'); productproperty_div.removeClass('ppborder'); productproperty_div.find('.proBtns .buyNow,.addCart,.addFav').css({'display':''}); productproperty_div.find('.enterButton').remove(); } //创建多属性的选择提示 function CreateSelectInfo(){ var ul = document.getElementById(propertyContainerId); var li = document.createElement("li"); li.setAttribute("class","proType"); li.setAttribute("id","PropertyInfo"); var info = "请选择:"; for(var i in propertyJson){ info += propertyJson[i].name+","; } info= info.substr(0,info.length -1); li.innerHTML =info; ul.appendChild(li); } //获取多属性商品库存 function GetMultiPropertyStocks(){ jQuery.st.ajax('updatelabel',{labelName:'获取多属性商品库存',currentpage:1,params:{productId:2974}, success: function(response) { var data = jQuery(response); var stocks=data.find("body").text(); stocks=eval('(' +stocks+ ')'); var curProp=propertyArr.join("|"); var s=stocks[curProp]; if(s != undefined){ var arr = s.split("|"); setBuyButton(2974,arr[0],curProp); document.getElementById(productStocks).innerHTML = arr[0]; if(arr.length==2) { document.getElementById(productPrice).innerHTML = arr[1]; } } } }); } //根据当前属性和库存设置购买按钮 function setBuyButton(productId,stock,prop){ jQuery.st.ajax('accesslabel',{labelName:'商品内容页购买按钮',currentPage:1, params:{productId:productId,stocks:stock,property:prop}, success:function(response){ var data=jQuery(response); var status=data.find("status").text(); if(status=="ok"){ var btnHtml=data.find("body").text(); jQuery("#"+buyBtnContainerId).html(btnHtml); } } }); } //选择属性 PropertyPicker.selectProperty = function(index,value,photoUrl,e){ jQuery(e).find("p").remove() jQuery(e).append("

    ").siblings().find("p").remove(); //.siblings().removeClass("on").find("i").remove(); //jQuery(e).addClass("on").siblings().removeClass("on").find("i").remove(); // jQuery(e).find("a").after("已选中"); propertyArr[index] = value; GetMultiPropertyStocks(); var info = ""; for(var i in propertyArr){ if(propertyArr[i]!=""){ info += propertyArr[i]+","; } } if(info != ""){ info="您已选择:"+ info.substr(0,info.length -1) + ""; jQuery("#PropertyInfo").html(info); } SetPhoto(photoUrl); } //获取已选择的属性组合 PropertyPicker.getProperties = function(){ if(!propertyArr) return ""; var value = ""; var hasAllSelect = true; var info="请选择:"; for(var i=0;i 0){ propertyArr = new Array(propertyJson.length); //CreateSelectInfo(); var ul = document.getElementById(propertyContainerId); var limsg = document.createElement("li"); for(var i in propertyJson) { var html=""; var li = document.createElement("li"); li.setAttribute("class","proType"); var property = propertyJson[i]; html += "
  • 优惠套餐:
  • "; //html += ("
    1. "+property.name+":
    2. ") ; var j=0; if(property.type=="property"){ for(var p in property.values){ if(j==0){ html +=""; propertyArr[i] = property.values[p]; } else html +="" j++; //html += "
    3.  "+property.values[p]+" 
    4. "; } } else if(property.type=="style"){ for(var s in property.values){ var style = property.values[s]; html +="
    5. "; html +=""; if(style.url !=""){ html += "" /*生成的缩略图属性设置*/ } else if(style.color !=""){ html += " "; } else{ html += " "+style.stylename+" "; } html += "
    6. "; } } html+="
    "; li.innerHTML = html; ul.innerHTML= html; } //jQuery("li",".ProductProperty").eq(1).trigger("click"); } } }()); PropertyPicker.create(); //获取总库存 function GetTotalStocks(){ jQuery.st.ajax('updatelabel',{labelName:'商品库存',currentpage:1,params:{productId:2974}, success:function(response) { var data=jQuery(response); var totalStocks=data.find("body").text(); if(totalStocks!= undefined){ document.getElementById(productStocks).innerHTML = totalStocks.toString(); } } }); } function GetProductNum(){ var productNum = document.getElementById("txtNum"); return parseInt(productNum.value)||0; } function asyncAccess(path,mesage) { jQuery.get(path, function(data) { alert(mesage); }); } function GotoShoppingCart(isAsync) { var url="/Shop/ShoppingN.aspx?Action=AddToCart&ID="+_productId; var property=PropertyPicker.getProperties(false); if( PropertyPicker.isPropertyProduct && property == ""){ PropertyPicker.show(); return; }else{ url+="&Property="+ property; } url+="&Num="+GetProductNum(); if(isAsync){ asyncAccess(encodeURI(url),'添加成功!'); } else{ window.location.href=encodeURI(url); } } function AddShoppingCart(id) { //非多属性商品 if(!PropertyPicker.isPropertyProduct) { var url="/Shop/ShoppingN.aspx?Action=AddToCart&ID="+id; //var property=PropertyPicker.getProperties(false); //var propertyAlias = PropertyPicker.getProperties(true); //if(PropertyPicker.isPropertyProduct && property == ""){ // return; //} //if(property!=''){ // url+="&Property="+ property; //} //if(propertyAlias!=''){ // url+="&PropertyAlias="+ propertyAlias; //} url+="&Num="+GetProductNum(); jQuery.post(encodeURI(url), function(s){ if(ProssS(s)){ //刷新随身购物车 getCartProductList(); } }); return ; }else{ //多属性商品 //获取而选择的属性 var property = PropertyPicker.getProperties(); if(property == ''){ PropertyPicker.show(id); }else{ PostShoppingCart(id); } } } function PostShoppingCart(id) { var url="/Shop/ShoppingN.aspx?Action=AddToCart&ID="+id; var property=PropertyPicker.getProperties(false); if(PropertyPicker.isPropertyProduct && property == ""){ showMsg(jQuery("#PropertyInfo").text(), jQuery(".enterButton")); return; } jQuery("#addCartOk").show(); if(property!='') { url+="&Property="+ property; } var proNum = GetProductNum(); if(proNum!='') { url+="&Num="+proNum; } PropertyPicker.close(); jQuery.post(encodeURI(url), function(s){ if(ProssS(s)) { //刷新随身购物车 GetShoppingCart(); getCartProductList(); } }); } function ProssS(s) { if(s.indexOf('
    错误信息
    ')!=-1) { var msgobj=jQuery(s).find('.MS'); var title=msgobj.find('.titWrong').text(); var errmsglist=msgobj.find('li'); var msgarr=new Array(); errmsglist.each(function(){ if(jQuery(this).text().trim()!='') { msgarr.push(jQuery(this).text()); } }); alert(errmsglist.html()); //ErrMessage(title,msgarr); return false; } else { return true; } } function getCartProductList() { jQuery.ajax({ type:'Post', url:'/Shop/PackageShoppingCart.aspx?Show=', cache:false, datatype:'text', success:success, error:function(textStatus, errorThrown){ alert(textStatus); //var arr=new Array(textStatus); // ErrMessage('错误信息',arr); } }); } function success(data) { var cart_reg=new RegExp("\\('(.*?)'\\)"); if(data&&data!=""&&cart_reg.test(data)) { var jsonData=data.match(cart_reg)[1]; var obj= eval('('+jsonData+')'); var quantity=obj.cartnum; var price=obj.total; var $j_CartInfo=jQuery('#addCartOk'); var st1=$j_CartInfo.find('span:contains("购物车共") >strong'); st1.text(quantity); var st2=$j_CartInfo.find('span:contains("合计:") >strong'); st2.text(price); $j_CartInfo.show(); } } function CloseJ_CartInfo() { jQuery('#addCartOk').hide(); } //更新列表 function CommonChangepage(pagenum, paramsValue, listLabelName, pageLabelName, listContainer, pageContainer) { var htmlLoading="加载中···"; jQuery("#" + listContainer).html(htmlLoading); jQuery("#" + pageContainer).html(""); jQuery.st.ajax('accessLabel',{labelName:listLabelName,currentPage:pagenum,params:paramsValue, success:function(response){ CommonUpdatepage(pageLabelName, listLabelName, listContainer, pageContainer,response); }}); } //更新分页 function CommonUpdatepage(pageLabelName, listLabelName, listContainer, pageContainer, xml) { if (parseInt(jQuery(xml).find('total').text()) > 0) { jQuery.st.ajax('accessPage',{labelName:pageLabelName,pageName:listLabelName,recordCount:jQuery(xml).find('total').text(),currentPage:jQuery(xml).find('currentpage').text(),pageSize:jQuery(xml).find('pagesize').text(),success:function(s){ //列表 jQuery('#' + listContainer).html(jQuery(xml).find('body').text()); //分页 var $pageContainer = jQuery('#' + pageContainer); if ($pageContainer.length > 0) { $pageContainer.html(jQuery(s).find('body').text()); } }}); } else{ jQuery('#' + listContainer).html(jQuery(xml).find('body').text()); } } var containerId='commentList'; //初始化评论 function commentInit() { $.st.ajax('accessLabel',{labelName:'商城_评论框架2015',currentPage:1,params:{itemId:2974,nodeId:711},success:function(response){ $('#'+containerId).html($(response).find('body').text()); changepage(1, '商城_评论列表2015', 'JS_基本风格'); setCurrentUserInfo(); }}) } //添加评论 function addComment() { if ($('#commentTitle').val == '') { alert("请输入标题!"); $('#commentTitle').focus(); return; } if ($('#commentIsAnonymous').val() == 'false') { if ($('#commentUsername').val() == '') { alert("请输入用户名!"); $('#commentUsername').focus(); return; } if ($('#commentEmail').val() == '') { alert('请输入Email地址!'); $('#commentEmail').focus(); return; } var regEmail = /^([a-zA-Z0-9]+[_|\-|\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\-|\.]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/; if ($('#commentEmail').val().match(regEmail) == null) { alert('请输入正确的Email格式!'); $('#commentEmail').focus(); return; } } if ($('#commentContnet').val == '') { alert("请输入评论内容!"); $('#commentContnet').focus(); return false; } var commentValidCode = ""; var checkValidCode = false; if (document.getElementById('commentValidCode') != null) { if ($('#commentValidCode').val() == '') { alert("请输入验证码!"); $('#commentValidCode').focus(); return; } commentValidCode = $('#commentValidCode').val(); checkValidCode = true; } var commentContent=$("#commentContnet").val(); commentContent=commentContent.replace(/[\r\n]/g,'
    '); commentContent=encodeURI(commentContent); $.st.ajax('addcomment',{params:{ username:$("#commentUsername").val(), commenttitle:$("#commentTitle").val(), content:$("#commentContnet").val(), email:$("#commentEmail").val(), gid:2974, nid:711, private:$("#commentIsPrivate").val(), position:$("#commentViewpoint").val(), score:$("#commentRanking").val(), TxtValidCode:commentValidCode, isguest:$('#commentIsAnonymous').val() }, success:function(response){ var data = $(response); var status = data.find('status').text(); switch (status) { case "ok": changepage(1, '商城_评论列表2015', 'url_方块样式分页'); alert("发表评论成功!"); window.location.href = '#commentTarget'; $("#commentContnet").val(''); break; case "check": alert("发表评论成功,请等待管理员审核。"); break; case "err": alert("发表评论失败!"); break; case "nopurview": alert("此栏目已禁止发表评论!"); break; case "noTourists": alert("此栏目已禁止游客发表评论!"); break; case "checkCodeError": $("#commentValidCode").val(''); refreshValidCode($("#commentValidCodeImg")[0]); alert("您输入的验证码和系统产生的不一致,请重新输入!"); break; default: alert("发表评论失败!"); break; } if (checkValidCode) { refreshValidCode($("#commentValidCodeImg")[0]); $("#commentValidCode").val(''); checkValidCode = false; } }}) } function addPkZone(commentid, position, content) { $.st.ajax('addpkzone',{params:{ commentid:commentid, position:position, content:content }, success:function(response){ switch ($(response).find('status').text()) { case "ok": changepage(1, '商城_评论列表2015', 'url_方块样式分页'); break; case "repeat": alert("您已对该评论发表过评价!"); break; default: alert("辩论失败!"); break; } }} ) } //更新列表 function changepage(pagenum, sourcename, spanname) { $.st.ajax('accessLabel',{labelName:sourcename,currentPage:pagenum,params:{ itemId:2974, page:'true', pagesize:10, currentpage:pagenum }, success:function(response){ $('#pe100_'+sourcename).html($(response).find('body').text()); $('#commentCount').html($(response).find("total").text()); updatepage(spanname, sourcename, response);if(pagenum!="1"){ var l = $("#producthd").offset().top; $(window).scrollTop(l); } }} ) } //更新分页 function updatepage(spanname, sourcename, xml) { $.st.ajax('accessPage',{labelName:spanname,pageName:sourcename,recordCount:$(xml).find('total').text(),currentPage:$(xml).find('currentpage').text(),pageSize:$(xml).find('pagesize').text(),success:function(s){ if ($('#pe100_page_' + sourcename) != null) { $('#pe100_page_' + sourcename).html($(s).find('body').text()); if( $("#pe100_商城_评论列表2015").text()!="" ){ $("#pe100_商城_评论列表2015").show(); $("#pe100_page_商城_评论列表2015").show() } } }}) } //设置默用户信息 function setCurrentUserInfo() { try { $.st.ajax('checkUserLogin',{success:function(response){ if($(response).find('status').text() == 'ok'){ if ($('#commentUsername') != null) { $('#commentUsername').val($(response).find("username").text()); $('#commentEmail').val($(response).find("email").text()); $('#commentUsername').disabled = true; $('#commentEmail').disabled = true; } } }}) } catch (e) { } } //刷新验证码 function refreshValidCode(obj) { obj.src = obj.src + '?code=' + randomNumber(10); } function randomNumber(n) { var rnd = ''; for (var i = 0; i < n; i++) rnd += Math.floor(Math.random() * 10); return rnd; } //设置匿名 function setAnonymous(obj) { if (obj.checked) { $('#commentUsernameBlock').hide(); $('#commentEmailBlock').hide(); $('#commentIsAnonymous').val('true'); } else { $('#commentUsernameBlock').show(); $('#commentEmailBlock').show(); $('#commentIsAnonymous').val('false'); } } //设置私有 function setPrivate(obj) { if (obj.checked) { $('#commentIsPrivate').val(1); } else { $('#commentIsPrivate').val(0); } } //设置观点 function setViewpoint(value) { for (i = -1; i < 2; i++) { if (i == value) { $('#commentViewpointTab' + i)[0].className = "current"; } else { $('#commentViewpointTab' + i)[0].className = ""; } } $('#commentViewpoint').val(value); } //设置按钮 function changeBtnStyle(obj, className) { obj.className = className; } //设置评分 function changeRanking(index, isfixed) { var colStars = $("#commentRankingBlock input"); var k = isfixed ? parseInt($("#commentRanking").val()) : index; for (var i = 0; i < colStars.length; i++) { colStars[i].src = (i < k ? "/Images/fstar.gif" : "/Images/estar.gif"); } } function rankingClick(index) { $("#commentRanking").val(index); } function rankingMouseOver(index) { changeRanking(index, false); } function rankingMouseOut() { changeRanking(0, true); } //初始化评论 commentInit(); //添加引用回复 function addReply(i) { var referenceId=i; var replyContent=$("#textReply_"+i).val(); var commentValidCode = ""; var checkValidCode = false; if (document.getElementById('commentValidCode_'+i) != null) { if ($('#commentValidCode_'+i).val() == '') { alert("请输入验证码!"); $('#commentValidCode_'+i).focus(); return; } commentValidCode = $('#commentValidCode_'+i).val(); checkValidCode = true; } if(replyContent.length>0) { $.st.ajax('addcomment',{params:{ username:$("#commentUsername").val(), commenttitle:replyContent, content:replyContent, email:$("#commentEmail").val(), gid:2974, nid:711, private:$("#commentIsPrivate").val(), position:$("#commentViewpoint").val(), score:$("#commentRanking").val(), TxtValidCode:commentValidCode, isguest:$('#commentIsAnonymous').val(), referenceid:i }, success:function(response){ var data = $(response); var status = data.find('status').text(); switch (status) { case "ok": changepage(1, '商城_评论列表2015', 'url_方块样式分页'); alert("发表评论成功!"); $("#pe100_商城_评论列表2015").show(); $("#pe100_page_商城_评论列表2015").show() window.location.href = '#commentList'; $("#commentContnet").val(''); break; case "check": alert("发表评论成功,请等待管理员审核。"); window.location.href = '#commentList'; break; case "err": alert("发表评论失败!"); break; case "nopurview": alert("此栏目已禁止发表评论!"); break; case "noTourists": alert("此栏目已禁止游客发表评论!"); break; case "checkCodeError": $("#commentValidCode").val(''); refreshValidCode($("#commentValidCodeImg")[0]); alert("您输入的验证码和系统产生的不一致,请重新输入!"); break; default: alert("发表评论失败!"); break; } if (checkValidCode) { refreshValidCode($("#commentValidCodeImg")[0]); $("#commentValidCode").val(''); checkValidCode = false; } }}) } else { alert("请填写评论内容!"); } } //显示回复框 function showReply(i) { var replyDiv="#commReply_"+i; var btnShow="#btnShow_"+i; var btnHide="#btnHide_"+i; $(replyDiv).show(); $(btnShow).hide(); $(btnHide).show(); } //隐藏回复框 function hideReply(i) { var replyDiv="#commReply_"+i; var btnShow="#btnShow_"+i; var btnHide="#btnHide_"+i; $(replyDiv).hide(); $(btnShow).show(); $(btnHide).hide(); } //刷新引用评论时的验证码 function refreshBesideValidCode(i) { refreshValidCode($("#commentValidCodeImg_"+i)[0]); } // 顶部浮动 window.onscroll=function () { var pisrei = $("#producthd").offset().top; var scroll_top = document.documentElement.scrollTop || document.body.scrollTop; if (parseInt(pisrei) - parseInt(scroll_top) < 0) { $(".jk_float").fadeIn(200); } else { $(".jk_float").fadeOut(200); } if (parseInt(scroll_top) < 450) { $(".re_top").fadeOut(200); } else { $(".re_top").fadeIn(200); } } $(function() { jQuery(".jk_picimg img").attr("src",productthumb); jQuery("#wkjpingjia").show(); })
    产品

    好想你混装枣片360g 健康零食[wkj01]

    万可佳价:¥52.00