品牌汇首页
您好,欢迎来到品牌汇!
<li class="home" style='margin-right: 20px;'><a href='http://web.yrpphsc.ry600.com/_shop/index.shtml' style='color:#e13335;font-size: 14px; font-weight: 600;'>品牌汇首页</a> </li> {if userState.isLogin()} {var user=userState.getUser()} {var userOrgs=user.userOrgs} <li class="oklogin"><a href="/_user/index.shtml" target="_blank" {if !user.mail && !user.mobile} class="username warning" title="您的帐户未设置任何安全保护措施,一旦密码丢失将无法找回,请马上点击进行设置。" {else} class="username" {/if} >${user.fullName}{if !user.mail && !user.mobile}<i>!</i> {/if} </a></li><li class="welcome"> 您好,欢迎来到品牌汇! </li> {if user.org} <li class="userorginfo">当前机构:</li><li class="userorginfo hovermenu sousuo"><div class="menu-header orgname"><a class="orgName" href="javascript:void(0);" name="${user.org.orgName}">${user.org.orgName}</a><span class="arrow"> </span></div><div class="menu-header complete" style="display:none"><input type='text' id='tt' class='text' value='${user.org.orgName}' spellcheck="false" /><span class="arrow"> </span></div> {if userOrgs.length>1} <ul class="relOrgList menu-list"> {for org in userOrgs} {if org.orgId != user.selRelOrgId} <li><a href="javascript:void(0);" onclick="$.eh.userState.changeRelOrg('${org.orgId}');return false;" orgId="${org.orgId}">${org.orgName}</a></li> {/if} {/for} </ul> {/if} </li><li class="oklogin">|</li><li class="oklogin"><a href="${user.org.officeUrl}" >进入办公室</a></li> {/if} <li class="oklogin">|</li><li class="oklogin"><a href="javascript:void(0);" onclick="$.eh.userState.doLogout();return false;">安全退出</a></li> {else} <li class="welcome">您好,欢迎来到品牌汇!</li><script> $(function(){ $(".right-links .nologin").html('<a href="javascript:void(0);" class="orange" onclick="$.eh.userState.doLogin();return false;">请登录</a>'); }); </script> {/if}
请登录
加入收藏夹
我的账户
我的订单
我的账簿
我的卡包
收货地址
我的评价
我的留言
我的收藏
我的组织
服务中心
帮助中心
站点公告
留言咨询
页面设计
三九品牌店
企业名称:
三九品牌
所在区域:
经营品类:
主营品牌:
联系客服:
搜 索
搜本店
所有分类 ∨
皮肤药
感冒药
胃肠药
儿科药
骨科类
保健品
其他
抗感染
首页
皮肤药
今维多
公司简介
发展历程
企业文化
视频专区
退出三九旗舰店
{if (bargain.isSeller)} <div class="title">协议价格</div> {else} <div class="title">议价申请</div> {/if} <div class="tab-content tab-bargain"> {if (bargain.isSeller)} <div class="product-info"><div class="caption"><a title="${bargain.productCaption}">${bargain.productCaption}</a></div><div class="sku-info"><span class="pack-desc">${bargain.packDesc}</span><span class="priceTip" >${bargain.priceTip}</span></div><div class="price-info"><div> {if (bargain.priceOfOrg) && bargain.priceOfOrg.valid && bargain.priceType=="协议价"} 当前售价:<em class="priceOfOrgPrice" >${bargain.price}</em> 元 / ${bargain.packUnits} <i> 此价格于 ${bargain.priceOfOrg.createTime} 协商确定<br> {if (bargain.priceOfOrg.endDate!='')} 有效期至 ${bargain.priceOfOrg.endDate}止 {/if} {if (bargain.priceOfOrg.limitCount>0)} 限${bargain.priceOfOrg.limitCount}次,已执行${bargain.priceOfOrg.orderCount}次 {/if} {if (bargain.priceOfOrg.limitAmount>0)} 限${bargain.priceOfOrg.limitAmount}${bargain.packUnits},已执行${bargain.priceOfOrg.orderAmount}${bargain.packUnits} {/if} </i> {else} 当前售价:<em>${bargain.price}</em> 元 / ${bargain.packUnits} <i> {if bargain.priceType=="特价" && bargain.priceEndTime!=""} 此价格 ${bargain.endTime} 前有效。 {/if} </i> {/if} </div></div></div><form id="modifyForm" isSeller=true skuId="${bargain.skuId}"><input type="hidden" id="orgId" name="orgId" value="${bargain.orgId}"/><input type="hidden" id="bizCenterId" name="bizCenterId" value="${bargain.bizCenterId}"/><input type="hidden" id="orgProductId" name="orgProductId" value="${bargain.orgProductId}"/><input type="hidden" id="skuId" name="skuId" value="${bargain.skuId}"/><input type="hidden" id="billId" name="billId" {if (bargain.bill)} value="${bargain.bill.billId}" {else} value="" {/if}/><div class="refer-price"><div class="leave-message"><div class="leave-label">调价说明:</div> <textarea cols="84" rows="2" name="message" class="messageText" id="message" onfocus="if(value=='请记录调价原因备查。'){value=''}" onblur="if (value ==''){value='请记录调价原因备查。'}">请记录调价原因备查。</textarea> <div class="fast-message"><div class="message-list"><span>快速备注</span><ul><li>客户议价</li><li>厂家调价</li><li>公司调价</li><li>市场价变动</li></ul></div></div></div><div class="refer-message"><div class="take-order"><div class="basePrice" ><span>最低限价: {if bargain.basePrice<=0.01} 未设定 {else} <em>${bargain.basePrice} 元 / ${bargain.packUnits}</em> {/if} </span></div><div class="bargainPrice"><div class="stepshade"></div><div class="priceStep" id="priceStep_el"></div><span>协议价格:</span> {if bargain.priceOfOrg&&bargain.priceOfOrg.stepPrice} <input type="text" id="priceInfo" name="price" value="" minPrice=${bargain.price} basePrice=${bargain.basePrice} priceInfo='${bargain.priceOfOrg.stepPrice}' /><input type="hidden" id="pricestep" name="stepPrice" value="" minPrice=${bargain.price} basePrice=${bargain.basePrice} /> {else} <input type="text" id="priceInfo" name="price" value="" minPrice=${bargain.price} basePrice=${bargain.basePrice} priceInfo='' /><input type="hidden" id="pricestep" name="stepPrice" value="" minPrice=${bargain.price} basePrice=${bargain.basePrice} /> {/if} <i class="stepPriceClick">阶梯议价</i><span style="margin-left:42px;">有效期至:</span><input id="endDate" name="endDate" type="text" plugin="datepicker" /><a href="javascript:void(0);" class="clearEndDate">清除有效期</a></div><div class="bargainPrice"><span>限定次数:</span><input type="text" id="limitCount" name="limitCount" maxlength="10" value="0" /><span style="margin-left:108px;">限定数量:</span><input id="limitAmount" name="limitAmount" type="text" maxlength="10" value="0" /><p style="font-weight:700;color:#ff9933;"> 提示:限定次数、限定数量设置为0表示不限制次数、不限制数量 </p></div><div class="bargainPrice"><span>订购数量:</span><input type="text" name="amount" id="bargainAmount" maxlength="10" value=${bargain.amount} modCount=${bargain.modCount} minOrder=${bargain.minOrder} packUnits=${bargain.packUnits}><span style="font-weight:700;color:#ff9933;"> {if (bargain.modCount>1)} 不拆零数量${bargain.modCount} {/if} {if (bargain.minOrder>1)} 最小起订量${bargain.minOrder}${bargain.packUnits} {/if} </span></div><div class="buyaction"><a class="addtocart" href="javascript:void(0);" id="addtocartsave" >提交协议价格同时加入购物车</a><a class="commit" href="javascript:void(0);" id="save">提交协议价格</a></div></div></div></div></form> {else} <div class="product-info"><div class="caption"><a title="${bargain.productCaption}">${bargain.productCaption}</a></div><div class="sku-info"><span class="pack-desc">${bargain.packDesc}</span><span class="priceTip" >${bargain.priceTip}</span></div><div class="price-info"><div> {if (bargain.priceOfOrg) && bargain.priceOfOrg.valid && bargain.priceType=="协议价"} 当前售价:<em class="priceOfOrgPrice" >${bargain.price}</em> 元 / ${bargain.packUnits} <i> 此价格于 ${bargain.priceOfOrg.createTime} 协商确定<br> {if (bargain.priceOfOrg.endDate!='')} 有效期至 ${bargain.priceOfOrg.endDate}止 {/if} {if (bargain.priceOfOrg.limitCount>0)} 限${bargain.priceOfOrg.limitCount}次,已执行${bargain.priceOfOrg.orderCount}次 {/if} {if (bargain.priceOfOrg.limitAmount>0)} 限${bargain.priceOfOrg.limitAmount}${bargain.packUnits},已执行${bargain.priceOfOrg.orderAmount}${bargain.packUnits} {/if} </i> {else} 当前售价:<em>${bargain.price}</em> 元 / ${bargain.packUnits} <i> {if bargain.priceType=="特价" && bargain.priceEndTime!=""} 此价格 ${bargain.endTime} 前有效。 {/if} </i> {/if} </div></div></div><form id="modifyForm" isSeller=false skuId="${bargain.skuId}"><input type="hidden" id="orgId" name="orgId" value="${bargain.orgId}"/><input type="hidden" id="bizCenterId" name="bizCenterId" value="${bargain.bizCenterId}"/><input type="hidden" id="orgProductId" name="orgProductId" value="${bargain.orgProductId}"/><input type="hidden" id="skuId" name="skuId" value="${bargain.skuId}"/><input type="hidden" id="price" name="price" value="${bargain.price}"/><input type="hidden" id="billId" name="billId" {if (bargain.bill)} value="${bargain.bill.billId}" {else} value="" {/if}/><div class="refer-price"><div class="leave-message"><div class="leave-label">您的留言:</div> <textarea cols="84" rows="2" name="message" class="messageText messageText2" id="message" onfocus="if(value=='请您详细说明您的期望。'){value=''}" onblur="if (value ==''){value='请您详细说明您的期望。'}">{if bargain.bill}${bargain.bill.message}{else}请您详细说明您的期望。{/if}</textarea> <div class="fast-message" id="fast-message"><div class="message-list"><span>快速留言</span><ul id="fast"><li>请回复成交价</li><li>别人家更便宜</li><li>有什么赠品或促销</li><li>我以前的进价更低</li><li>我希望的价格是</li></ul></div></div> {if (bargain.bill)} <div class="text"><em>您已提交过议价申请,如果不需要修改留言信息,请关闭窗口等待我们的回复。</em></div> {else} <div class="text">感谢您的关注,我们的业务代表会立即为您核定成交价格并与您联系。</div> {/if} </div><div class="refer-message"><div class="take-order"><p class="tixing" style="color:#ff0000;">温馨提示:您可以先将此商品加入购物车,待我们为您修改价格后再提交订单。</p><div class="bargainPrice"><span>订购数量:</span><input type="text" name="amount" id="bargainAmount" maxlength="10" value=${bargain.amount} modCount=${bargain.modCount} minOrder=${bargain.minOrder}><span style="color:#ff0000;"> {if (bargain.modCount>1)} 不拆零数量${bargain.modCount} {/if} {if (bargain.minOrder>1)} 最小起订量${bargain.minOrder}${bargain.packUnits} {/if} </span></div><div class="buyaction"><a class="addtocart" href="javascript:void(0);" id="addtocartsave">提交协议价格同时加入购物车</a><a class="commit" href="javascript:void(0);" id="save">提交协议价格</a></div></div></div></div></form> {/if} </div><div class="tab-content tab-his"><div class="tab-his-skin" id="priceBargainHis_el"></div></div><div class="tab-label"><a class="tab-label-bargain active" href="javascript:void(0);">议价订购</a><a class="tab-label-his" href="javascript:void(0);">议价历史</a></div>
{eval} $(".fast-message").hoverDelay({ delay: 150, over :function(ee){ ee.find("ul").show(); } ,out : function(ee){ ee.find("ul").hide(); } }); $(".fast-message ul li").unbind(); $(".fast-message ul li").bind("click",function(){ $(".messageText").val($(this).html()); }); $(".clearEndDate").unbind(); $(".clearEndDate").bind("click",function(){ $("#endDate").val(""); }); //阶梯协议价 $("#priceInfo").unbind(); $("#priceInfo").bind("change",function(){ $.ex.util.validPrice(this,0.00); // $("#pricestep").val('[{"amount":"1","price":"'+$(this).val()+'"}]'); }); $(".stepPriceClick").die(); $(".stepPriceClick").live("click",function(){ $(".stepshade").show(); $("#priceStep_el").show(); var stepPrice=[]; if($("#priceInfo").attr("priceInfo")!=""){ stepPrice=$.parseJSON($("#priceInfo").attr("priceInfo")); } $.ex.util.merge("#priceStep_tpl","#priceStep_el",{stepPrice:stepPrice}); }); //数量验证 $("#bargainAmount").unbind(); $("#bargainAmount").bind("change",function(){ $.ex.util.validAmount(this,$("#bargainAmount").attr("minOrder")); }); //限定次数、限定数量 $("#limitCount").unbind(); $("#limitCount").bind("change",function(){ if($(this).val()!=0){ $.ex.util.validAmount(this,0); } }); $("#limitAmount").unbind(); $("#limitAmount").bind("change",function(){ if($(this).val()!=0){ $.ex.util.validAmount(this,0); //最少起购量,倍数 var amount= $(this).val(); var modCount=$("#bargainAmount").attr("modCount"); var minOrder = $("#bargainAmount").attr("minOrder"); var packUnits=$("#bargainAmount").attr("packUnits"); if (modCount>1 && amount%modCount!=0){ $.ex.msgbox.message('此商品不拆零销售,订购数量必须是 <b>'+modCount+'</b> 的倍数。'); $(this).val(modCount) return false; } if (minOrder-amount>0){ $.ex.msgbox.message('此商品<b>'+minOrder+packUnits+'</b>起订!'); $(this).val(minOrder); return false; } } }); //单价验证 $("#price").unbind(); $("#price").bind("change",function(){ $.ex.util.validPrice(this,0.00); }); $.Tipmsg.r=" "; //编辑表单验证与提交 var modifyForm=$('#modifyForm').Validform({ tiptype:2 ,btnSubmit:"#save,#addtocartsave" ,datatype:{} ,callback:function(data){ // if ($("#price").attr("type")=="text" && parseFloat($("#price").val()) < parseFloat($("#price").attr("basePrice"))){ // $.ex.msgbox.message('价格不能小于'+$("#price").attr("basePrice")+'元。'); // return false; // } var t=data.data("eventTarget").attr("id"); if (t=="addtocartsave"){ var amount= $("#bargainAmount").val(); var modCount=$("#bargainAmount").attr("modCount"); if (modCount>1 && amount%modCount!=0){ $.ex.msgbox.message('此商品不拆零销售,数量必须是 <b>'+modCount+'</b> 的倍数。'); return false; } var ee=$("#addtocartsave"); $.eh.shopCart.doAddProduct($("#orgId").val(),$("#bizCenterId").val(),$("#orgProductId").val(),$("#skuId").val(),amount,function(){ $.eh.bargain.savePriceOfOrgBill(data,function(success,o){ if(success){ if ($("#modifyForm").attr("isSeller") && typeof("refreshBargainPrice") != "undefined"){ refreshBargainPrice({ stepPrice:$("#pricestep").val() ,endDate:$("#endDate").val() ,skuId:$("#modifyForm").attr("skuId") ,limitCount:$("#limitCount").val() ,limitAmount:$("#limitAmount").val() }); } $.colorbox.close(); }else{ $.ex.msgbox.warning(o.message); } }); MShopcart(ee,"#shopcart"); }); } else { $.eh.bargain.savePriceOfOrgBill(data,function(success,o){ if(success){ if ($("#modifyForm").attr("isSeller") && typeof("refreshBargainPrice") != "undefined"){ refreshBargainPrice({ stepPrice:$("#pricestep").val() ,endDate:$("#endDate").val() ,skuId:$("#modifyForm").attr("skuId") ,limitCount:$("#limitCount").val() ,limitAmount:$("#limitAmount").val() }); } $.colorbox.close(); }else{ $.ex.msgbox.warning(o.message); } }); } return false; } ,usePlugin:{ datepicker:{} } }); //验证规则 var rules=[{ ele :'#caption' ,dataType :'*5-60' ,nullmsg :'请输入标题。' ,errormsg :'请输入正确的标题(5-60个字)。' }]; //添加验证规则 modifyForm.addRule(rules); //页签切换 $(".tab-label a.tab-label-his").unbind(); $(".tab-label a.tab-label-his").bind("click",function(){ $(".tab-label a").removeClass("active"); $(this).addClass("active"); $(".xunjiaWindow .tab-content").hide(); $(".xunjiaWindow .tab-his").show(); if(!$(this).attr("loaded")){ $.eh.bargain.getPriceBillHis(bargainProduct.orgId ,bargainProduct.bizCenterId ,bargainProduct.orgProductId ,bargainProduct.skuId ,function(success,o){ if (success){ for(var i=0;i<o.results.length;i++){ var stepPrice=$.parseJSON(o.results[i].stepPrice); if(stepPrice){ }else{ stepPrice=[]; } o.results[i].stepPrice=stepPrice; }; $.ex.util.merge("priceBargainHis-tpl","priceBargainHis_el",{bills:o.results}); } }) $(this).attr("loaded",true); } }); $(".tab-label a.tab-label-bargain").unbind(); $(".tab-label a.tab-label-bargain").bind("click",function(){ $(".tab-label a").removeClass("active"); $(this).addClass("active"); $(".xunjiaWindow .tab-content").hide(); $(".xunjiaWindow .tab-bargain").show(); }); {/eval}
{if bills.length>0} <table class="table-his" width="100%"><tr><td class="rq">提交日期</td><td class="price">协议信息</td><td class="message">回复信息</td></tr> {for bill in bills} <tr><td class="rq">${bill.createTime}</td><td class="price"> {if bill.stepPrice.length>0} <div class="stepPrice"><em class="turn-left"></em><div class="main" index="0"><ul id="stepPrice"> {for step in bill.stepPrice} <span class="pricelist" ><i class="price-l">¥${step.price}</i><i class="amount-r" >${step.amount}及以上</i></span> {/for} </ul></div><em class="turn-right"></em></div> {if (bill.state) && (bill.state==="1")} {if bill.endDate!=""} <p>截至:${bill.endDate}</p> {/if} <p> {if bill.limitCount>0} 限次:(${bill.orderCount}/${bill.limitCount}) {/if} {if bill.limitAmount>0} 限量:(${bill.orderAmount}/${bill.limitAmount}) {/if} </p> {else} 未同意调价 {/if} {else} {if (bill.state) && (bill.state==="1")} 价格:${bill.price} {if bill.endDate!=""} 截至:${bill.endDate} {/if} <p> {if bill.limitCount>0} 限次:(${bill.orderCount}/${bill.limitCount}) {/if} {if bill.limitAmount>0} 限量:(${bill.orderAmount}/${bill.limitAmount}) {/if} </p> {else} 未同意调价 {/if} {/if} </td><td class="message"> {if (bill.reMessage)} ${bill.accepterName}:${bill.reMessage} {else} ${bill.accepterName}受理 {/if} </td></tr> {/for} </table> {else} <div class="noData">没有历史议价记录!</div> {/if}
{eval} $(".table-his .stepPrice .turn-right").click(function(){ var listLength =$(this).parents(".stepPrice").find(".pricelist").length; var stepPriceConWidth = 98*listLength; $(this).parents(".stepPrice").find("#stepPrice").width(stepPriceConWidth+2); var index=$(this).siblings(".main").attr("index"); if(index<listLength){ var moveAmount = 99; var moveMain =$(this).siblings(".main"); moveMain.scrollLeft(moveMain.scrollLeft()+99); index++; $(this).siblings(".main").attr("index",index); } }); $(".table-his .stepPrice .turn-left").click(function(){ var listLength =$(this).parents(".stepPrice").find(".pricelist").length; var stepPriceConWidth = 98*listLength; $(this).parents(".stepPrice").find("#stepPrice").width(stepPriceConWidth+2); var index=$(this).siblings(".main").attr("index"); if(index>0){ var moveAmount = 99; var moveMain =$(this).siblings(".main"); moveMain.scrollLeft(moveMain.scrollLeft()-99); index--; $(this).siblings(".main").attr("index",index); } }); {/eval}
<p class="priceStep-title">阶梯协议价编辑<a class="close"></a></p><span class="priceStep-info">大于或等于购买数量可享受阶梯协议价格(最多支持5个阶梯)</span><div class="steplist"> {if stepPrice.length>0} {var product=stepPrice[0]} <div class="stepinput"><span>购买数量:</span><input type="text" class="stepamount" name="amount" value="${product.amount}"/><span>协议价格:</span><input type="text" class="stepprice" name="price" value="${product.price}"/><a class="add">+</a></div> {for stepinfo in stepPrice} {if (stepinfo_index>0)} <div class="stepinput"><span>购买数量:</span><input type="text" class="stepamount" name="amount" value="${stepinfo.amount}"/><span>协议价格:</span><input type="text" class="stepprice" name="price" value="${stepinfo.price}"/><a class="sub">-</a></div> {/if} {/for} {else} <div class="stepinput"><span>购买数量:</span><input type="text" class="stepamount" name="amount"/><span>协议价格:</span><input type="text" class="stepprice" name="price" /><a class="add">+</a></div> {/if} </div><div class="stepfoot"><a class="stepconfirm">确定</a></div>
{eval} $('.priceStep-title .close').die(); $(".priceStep-title .close").live("click",function(){ $(".stepshade").hide(); $(".priceStep").hide(); }); function stepPrice(e){ $.ex.util.validPrice(this,0.00); var basePrice=parseFloat($("#pricestep").attr("basePrice")); if (parseFloat(e.val()) < basePrice){ $.ex.msgbox.message('协议价不能低于最低售价'+$("#pricestep").attr("basePrice")+'元。'); e.val($("#pricestep").attr("basePrice")) return false; } } $('.steplist .add').die(); $('.steplist .add').live("click",function(){ var basePrice=parseFloat($("#pricestep").attr("basePrice")); if(basePrice>0){ var title='价格不能小于'+$("#pricestep").attr("basePrice")+'元。'; }else{ title=''; } var stepinputAmount=$(".stepinput").length; var str='<div class="stepinput">'+ '<span>'+'购买数量:'+'</span>'+ '<input type="text" class="stepamount" name="amount" maxlength="10" onchange="$.ex.util.validAmount(this,1);" />'+ '<span>'+'协议价格:'+'</span>'+ '<input type="text" class="stepprice" name="price" maxlength="10" onchange="$.ex.util.validPrice(this,'+basePrice+');" title="'+title+'" />'+ '<a class="sub">'+'-'+'</a>'+ '</div>'; if(stepinputAmount>4){ $.ex.msgbox.message('最多支持5个阶梯。'); }else{ $(".steplist").append(str); } }); $('.steplist .sub').die(); $('.steplist .sub').live("click",function(){ $(this).parents(".stepinput").remove(); }); //数量验证 $(".stepamount").unbind(); $(".stepamount").bind("change",function(){ $.ex.util.validAmount(this,1); }); $(".stepprice").unbind(); $(".stepprice").bind("change",function(){ var basePrice=parseFloat($("#pricestep").attr("basePrice")); $.ex.util.validPrice(this,basePrice); $(this).attr("title",'协议价不能低于最低售价'+$("#pricestep").attr("basePrice")+'元。'); }); $(".stepconfirm").die(); $(".stepconfirm").live("click",function(){ var isValid=true; var stepPriceArray=new Array(); var stepinputlength=$(".stepinput").length; for(var i=0;i<stepinputlength;i++){ var amount=$($(".steplist .stepinput")[i]).find(".stepamount").val(); var price=$($(".steplist .stepinput")[i]).find(".stepprice").val(); if(amount>0&&price>=0){ var step=new Object(); step.amount=amount; step.price=price; stepPriceArray.push(step); }else{ $.ex.msgbox.message('请输入正确议价阶梯。'); isValid=false; return false; } } stepPriceArray.sort(function(a,b){ if(a.amount==b.amount){ $.ex.msgbox.message('议价阶梯重复。'); isValid=false; return false; } return b.amount- a.amount; }); if(isValid){ var stepPriceShow=''; var priceOfOrgamount=stepPriceArray[stepPriceArray.length-1].amount; var amountQujian; for(var j=stepPriceArray.length-1;j>=0;j--){ if(j==0){ amountQujian=stepPriceArray[0].amount+"及以上"; }else{ priceOfOrgamount=stepPriceArray[j-1].amount-1; if((stepPriceArray[j].amount)==priceOfOrgamount){ amountQujian=stepPriceArray[j].amount; }else{ amountQujian=stepPriceArray[j].amount+"~"+priceOfOrgamount; } } stepPriceShow+=amountQujian+" ¥"+stepPriceArray[j].price+";"; } $("#priceInfo").attr("title",stepPriceShow); $("#priceInfo").val(stepPriceShow); $("#pricestep").val(JSON.stringify(stepPriceArray)); $(".stepshade").hide(); $(".priceStep").hide(); } }); {/eval}
当前位置
>
Home
>
感冒药
Loading zoom
添加收藏
999午时茶颗粒 6g*18袋 华润三九(枣庄)药业有限公司 三九
正在加载更多信息......
进入购买
<!--包装信息--><div class="product-package"><span class="fieldName">包装说明</span><span calss="fieldValue"><span sku-field="skuPackDesc"></span></span></div><!-- {if productSetup.productInfo.sellState&&productSetup.productInfo.sellState.stateActions=="buy"} <div class="p-sale"><span class="fieldName">近期销量</span><span calss="fieldValue"><span class="integral">${productSetup.productInfo.resTotal.sellCount}</span><span>${productSetup.productInfo.units}</span></span></div> {/if} -->
<div class="product-code"><span class="fieldName">编号编码:</span><span calss="fieldValue"><!-- ${productSetup.productInfo.productCodeOfOrg} --><span sku-field="skuCode">--</span></span></div>
<div class="p-favorable"><span class="fieldName">商品评价</span><span calss="fieldValue"> {var start=productSetup.productInfo.resTotal.commentMark/5*100} <a class="viewComment" href="javascript:void(0);">${productSetup.productInfo.resTotal.commentCount} <span class="start"><span style="width: {if productSetup.productInfo.resTotal.commentCount==0}100%{else}${start}%{/if};"></span></span></a></span><div class="viewDetail"><a href="javascript:void(0);" skipId="productDetail">详情</a></div></div>
{eval} //跳转到商品详细信息 $(".viewDetail a").unbind(); $(".viewDetail a").bind("click",function(e){ $(".detail-panel").Jtab().switchTab(0); $("html,body").animate({scrollTop:$("#detail-panel").offset().top},600); }); //跳转到商品评价页 $(".p-favorable .viewComment").unbind(); $(".p-favorable .viewComment").bind("click",function(e){ var i=$(".detail-panel .tab-title li.comment").index(".detail-panel .tab-title li"); if (i>=0){ $(".detail-panel").Jtab().switchTab(i); $("html,body").animate({scrollTop:$("#detail-panel").offset().top},600); } }); {/eval}
<!--价格--><div class="p-price"><div style="*height:30px;min-height:15px;"><div class="priceTip" id="priceTip"><span class="fieldName">建议零售价:</span><span class="fieldValue" sku-field="priceTip"></span><span>元</span></div></div></div>
<!--SKU如果SKU个数大于1,显示SKU选择器--> {if productSetup.productInfo.skuCount>1} {if productSetup.productInfo.multiSpec && productSetup.productInfo.specDef} <div class="p-specs"><div class="tip">请选择商品规格</div> {for defItem in productSetup.productInfo.specDef} <div class="i-spec"><span class="spec" skuAttr="${defItem.specDefCode}">${defItem.specDefName}:</span><ul class="spec-values"> {for valueItem in defItem.specDefItems} <li class="spec-value" skuAttr="${valueItem.specItemId}"> {if valueItem.photoUrl == ""} <span>${valueItem.specItemName}</span> {else} <img style="height:100%;" title="${valueItem.specItemName}" src="${valueItem.photoUrl}"> {/if} <em></em></li> {/for} </ul></div> {/for} </div> {else} <div class="p-skus"><span class="fieldName">规 格</span><ul class="sku-values"> {for sku in productSetup.skus} <li class="sku" skuId="${sku.skuId}"> {if sku.specDesc!=""}${sku.specDesc}{else}${sku.skuCode}{/if} </li> {/for} </ul></div> {/if} {/if}
{eval} //初始化sku选择 initSkuSelector(); {/eval}
三九医药
三九品牌店
联系客服
<div class="tab"><div class="tab-title"><ul> {for recommend in recommends.packages} {if recommend.canSell} <li><a href="javascript:void(0);">${recommend.caption}</a></li> {/if} {/for} {for recommend in recommends.groups} <li class="tit"><a href="javascript:void(0);">${recommend.groupName}</a></li> {/for} </ul></div><div class="tab-contents"> {for recommend in recommends.packages} {if recommend.canSell} <div class="tab-content p-package recommend-con"> {var productmain=recommend.products[0]} <div class="main-item pl"><div class="img"><a href="${productmain.url}"><img src="${productmain.photo.moderateUrl}" /></a></div><div class="caption"><a href="${productmain.url}" class="p-name" title="${productmain.productCaption}" target="_blank">${productmain.productCaption}</a></div><div class="price"><span>×${productmain.count}${productmain.packUnits}</span></div></div><div class="sum"><div class="checkedtip">套餐共有<span class="checkedpNum"></span>个商品</div><a href="javascript:void(0);" class="buy-now buyChecked" title="确认购买">加入购物车</a></div><div class="parts-items"><ul> {for product in recommend.products} {if (product_index>0)} <li class="pl"><div class="img"><a href="${product.url}"><img src="${product.photo.moderateUrl}" /></a></div><div class="caption"><a href="${product.url}" class="p-name" title="${product.productCaption}" target="_blank">${product.productCaption}</a></div><div class="price"><span>×${product.count}${product.packUnits}</span></div></li> {/if} {/for} </ul></div></div> {/if} {/for} {for recommend in recommends.groups} <div class="tab-content p-group"> {var product=recommend.products[0]} <div class="main-item pl"><div class="img"><a href="${product.url}"><img src="${product.photo.moderateUrl}" /></a></div><div class="caption"><a href="${product.url}" class="p-name" title="${product.productCaption}" target="_blank">${product.productCaption}</a></div></div><div class="sum"><div class="checkedtip">共有<span class="sumpNum"></span>个关联商品</div><div class="checkedtip">已选<span class="checkedpNum"></span>个商品</div><div class="sumPrice"><span>¥<big>${recommend.payment|money}</big></span></div><!--<a href="${recommend.url}#group${recommend.groupCode}" class="buy-now buyChecked" title="确认购买信息">去看看</a>--><a href="javascript:void(0);" class="buy-now buyChecked" title="确认购买">加入购物车</a></div><div class="parts-items"><ul> {for product in recommend.products} {if (product_index>0)} <li class="pl"><div class="img"><a href="${product.url}"><img src="${product.photo.moderateUrl}" /></a></div><div class="caption"><a href="${product.url}" class="p-name" title="${product.productCaption}" target="_blank">${product.productCaption}</a></div></li> {/if} {/for} </ul></div></div> {/for} </div></div>
{eval} //选中tab页签 $(".p-recommend .tab").Jtab({ },function(content,index){ if (!content.attr("init")){ if(content.hasClass("p-package")){ var groupel=content.find(".parts-items ul"); var items=groupel.find("li"); if (items.length>=4) groupel.css({width:items.length*190+"px"}); else alignItem(content.find(".parts-items ul")); } if(content.hasClass("p-group")){ var groupel=content.find(".parts-items ul"); var items=groupel.find("li"); if (items.length>=4) groupel.css({width:items.length*190+"px"}); else alignItem(content.find(groupel)); } } }); //选中商品 $(".productview .p-recommend .goods_mcq").each(function(){ $(this).click(function(){ if($(this).hasClass("checked")){ $(this).removeClass("checked"); }else{ $(this).addClass("checked"); } }) }) //确定购买 $('.p-recommend .buyChecked').die(); $('.p-recommend .buyChecked').each(function(){ if($(this).parents(".p-group").length>0){ //组合推荐 var sumpNum=$(this).parents(".tab-content").find("input").length; $(this).parents(".sum").find(".sumpNum,.checkedpNum").html(sumpNum); $(this).live('click',function(e){ var checkProducts=getCheckedProducts($(this).parents(".tab-content")); if(checkProducts.pass){ var products=checkProducts.products; if(products.length>0){ //加入购物车 $.eh.shopCart.doAddProducts(products,function(){ $.ex.msgbox.message('共'+products.length+'种商品成功加入购物车。',function(){ //$(".products .checkbox:checked").removeAttr("checked"); }); }); } } }); }else{ //套餐推荐 var checkedpNum=$(this).parents(".tab-content").find("ul li").length+1; $(this).parents(".sum").find(".checkedpNum").html(checkedpNum); $(this).live('click',function(e){ var el=$(this); var orgId = el.attr("orgId"); var packageId = el.attr("packageId"); var bizCenterId = el.attr("bizCenterId"); var amount = el.attr("amount"); var skus=[{orgProductId:el.attr("orgProductId"),skuId:el.attr("skuId")}]; //套餐加入购物车 $.eh.shopCart.doAddPackage(orgId,bizCenterId,packageId,amount,skus,function(){ MShopcart(el,"#shopcart"); }); }); } }); //点击复选框 $('.p-recommend .tab-content').each(function(){ var e=$(this); var sumPrice=0; if($(this).find("input").length>0){ var sumPrice=0; e.find("input:checked").each(function(){ sumPrice+=$(this).attr("price")*parseInt($(this).attr("minOrder")); }); e.find(".sumPrice big").html(sumPrice); priceFormat(e.find(".sumPrice big"),22,14); $(this).find("input").each(function(){ $(this).click(function(){ var sumpNum=e.find("input").length; var checkedpNum=e.find("input:checked").length; e.find(".sumpNum").html(sumpNum); e.find(".checkedpNum").html(checkedpNum); var sumPrice=0; e.find("input:checked").each(function(){ sumPrice+=$(this).attr("price")*parseInt($(this).attr("minOrder")); }); e.find(".sumPrice big").html(sumPrice); priceFormat(e.find(".sumPrice big"),22,14); }); }); }else{ //sumPrice=$(this).find(".sumPrice big").html(); priceFormat(e.find(".sumPrice big"),22,14); } }); //价格格式化 $("#product-recommends-el .pl .price span big").each(function(){ priceFormat($(this),22,14); }); {/eval}
详细说明
会员评论
商品咨询
产品资质
警示语:
品 名:
999午时茶颗粒
通 用 名:
午时茶颗粒
规 格:
6g*18袋
单 位:
包
生产产商:
华润三九(枣庄)药业有限公司
批准文号:
国药准字Z37021403
★剂型:
品牌名称:
三九
产 地:
英文名称:
指导零售价:
元
作用类别:
<div class="comm-count"><table style="width:100%;table-layout:fixed;" cellspacing="0" border="0"><tr><td class="comm-t-g"><span class="ratioG">${total.ratioG}</span><span class="per">%</span><span class="label">强烈推荐</span></td><td class="comm-t-p"><ul><li><span class="comm-t-p-l">好评<span class="comm-t-p-d">(${total.ratioG}%)</span></span><span class="comm-t-p-p"><em style="width:${total.ratioG}%"></em></span></li><li><span class="comm-t-p-l">中评<span class="comm-t-p-d">(${total.ratioM}%)</span></span><span class="comm-t-p-p"><em style="width:${total.ratioM}%"></em></span></li><li><span class="comm-t-p-l">差评<span class="comm-t-p-d">(${total.ratioP}%)</span></span><span class="comm-t-p-p"><em style="width:${total.ratioP}%"></em></span></li></ul></td><td class="comm-t-a" ><!--自定义元素--><span des_ElId="001" editor="text"></span><br> {if total.canComment} <a href="javascript:void(0);" class="commentBtn">我要评论</a> {/if} </td></tr></table></div><!--评论表单--><form class="comment-form baseform" id="comment-form"><a href="javascript:void(0);" title="取消" class="btn_close"> </a><div class="caption">发表评论</div><table style="width:100%;table-layout:fixed;" cellspacing="0" border="0"><tr><td class="field_label comm-f-l">总体评价:</td><td class="field_input comm-f-c"><input type="text" id="comm-caption" name="caption" value="" /></td><td class="field_msg comm-f-t"><span class="Validform_checktip"></span></td></tr><tr><td class="comm-f-l">综合评分:</td><td class="comm-f-c"><div class="mark mark5" mark="5"><span mark="1" title="1分"></span><span mark="2" title="2分"></span><span mark="3" title="3分"></span><span mark="4" title="4分"></span><span mark="5" title="5分"></span><em class="markText">5 分</em><i>点击星星进行评分。</i><input type="hidden" value="5" name="mark"></div></td><td class="comm-f-t"></td></tr><tr><td class="field_label comm-f-l">详细评价:</td><td class="field_input comm-f-c"><textarea id="detail_comment" name="comment" cols="20" rows="3"> </textarea></td><!--自定义元素--><td class="field_msg comm-f-t" des_ElId="002" editor="text"><span class="Validform_checktip"> 欢迎您发表原创、对其它用户有参考价值的评价; </span></td></tr></table><div class="action"><a class="comment-submit" href="javascript:void(0);">提交</a></div></form><!--评价分组--><table class="comm-group" cellspacing=0><tr><td class="markType cur" markType="All" class="cur"><a href="javascript:void(0);" >全部评论(${total.count})</a></td><td class="markType" markType="G"><a href="javascript:void(0);" >好评(${total.countG})</a></td><td class="markType" markType="M"><a href="javascript:void(0);" >中评(${total.countM})</a></td><td class="markType" markType="P"><a href="javascript:void(0);" >差评(${total.countP})</a></td><td class="tip"><!--自定义元素--><span des_ElId="003" editor="text"> 评论均来自网友 </span></td></tr></table>
{eval} //分组浏览评价记录 $('.comm-group [markType]').die(); $('.comm-group [markType]').live("click",function(e){ $('.comm-group .cur').removeClass("cur"); var ee=$(e.target).closest('.comm-group [markType]'); ee.addClass('cur'); $.eh.comment.getComments(ee.attr("markType"),0); }); //我要评论 $(".comm-total .commentBtn").die(); $(".comm-total .commentBtn").live("click",function(){ var form=$("#comment-form"); if(!form.is(":hidden")) return; $.eh.comment.doComment(function(){ if($.browser.msie && parseInt($.browser.version)==6){ form.show(); }else{ form.slideDown(300); } }); }); //提交评价 $('#comment-form .btn_close').die(); $('#comment-form .btn_close').live('click',function(e){ $('#comment-form')[0].reset(); if($.browser.msie && parseInt($.browser.version)==6){ $('#comment-form').hide(); }else{ $('#comment-form').slideUp(300); } }); //表单验证与提交 var commentForm=$("#comment-form").Validform({ tiptype:2 ,btnSubmit:".comment-submit" ,postonce:true ,callback:function(form){ $.eh.comment.saveComment(form,function(success,o){ commentForm.resetStatus(); if (success){ $("#comment-form").hide(); $.eh.comment.refreshCommentTotal(function(){ $.eh.comment.getComments(); }); }else{ $.ex.msgbox.warning(o.message); } },this); return false; } }) $.Tipmsg.r=" "; commentForm.addRule([{ ele:"#comm-caption", datatype:"*2-60", nullmsg:"请输入总体评价。", errormsg:"总体评价不少于2个字,不多于60个字。" },{ ele:"#detail_comment", datatype:"*1-300", errormsg:"评价信息请控制在300字以内。", ignore:"ignore" } ]); $("#comment-form [mark]").die(); $("#comment-form [mark]").live('mouseover',function(e){ var ee = $(e.target); ee.closest(".mark")[0].className="mark mark"+ee.attr("mark"); }); $("#comment-form [mark]").live('mouseout',function(e){ var ee = $(e.target); ee.closest(".mark")[0].className="mark mark"+ee.closest(".mark").find("input").val(); }); $("#comment-form [mark]").live("click",function(e){ var ee = $(e.target); ee.closest(".mark").find(".markText").html(ee.attr("mark")+" 分"); ee.closest(".mark").find("input").val(ee.attr("mark")); }); {/eval}
<table style="width:100%;table-layout:fixed;" cellspacing="0" border="0"> {for comment in comments.results} <tr><td class="comm-l-u"><div class="comm-u-h"><img alt="${comment.userName}" src="${comment.photoUrl}"></div><div class="comm-u-n">${comment.userName}</div><div class="comm-u-t">${comment.createTime}</div></td><td class="comm-l-c"><i class="i-comment"></i><div class="comm-body" commentid="${comment.commentId}"><table style="table-layout:fixed;" cellspacing="0" border="0"><tr><td class="comm-b-l">整体评分:</td><td class="comm-b-c comm-b-m"> {var mark=comment.mark/5*100} <span class="start"><span style="width:${mark}%;"> </span></span></td></tr><tr><td class="comm-b-l">总体评价:</td><td class="comm-b-c">${comment.caption}</td></tr> {if comment.comment!=""} <tr><td class="comm-b-l">评价内容:</td><td class="comm-b-c">${comment.comment}</td></tr> {/if} <tr><td class="comm-b-l"></td><td class="comm-b-c"><div class="action"> 该评价对我 <a href="javascript:void(0);" class="accept" >有用(<em fieldvalue="accept">${comment.acceptCount}</em>)</a><a href="javascript:void(0);" class="oppose" >没用(<em fieldvalue="oppose">${comment.opposeCount}</em>)</a><a href="javascript:void(0);" class="reply">回 复</a></div><form class="reply-form"><a href="javascript:void(0);" title="取消" class="btn_close"> </a> <textarea name="reply"></textarea> <a class="reply-submit" href="javascript:void(0);">回 复</a></form></td></tr></table><div id="comm-reply-el_${comment.commentId}" class="comm-reply"> {var rowNum=comment.commentReplys.length} {if rowNum>0} <table style="table-layout:fixed;" cellspacing="0" border="0"> {for reply in comment.commentReplys} <tr><td class="comm-b-l"><span class="rowNum">${rowNum}</span></td><td class="comm-b-c"><div class="replyInof"><span class="comm-r-u">${reply.userName}</span> 回复说: <span class="comm-r-t">${reply.commitTime}</span></div><div class="comm-r-c">${reply.reply}</div></td></tr> {var rowNum=rowNum-1} {/for} </table> {/if} </div></div></td></tr> {forelse} <tr><td class="noRec">暂时还没有评价记录。</td></tr> {/for} </table> {if comments.numFound>$.eh.comment.getLimit()} <div class="pages" total="${comments.numFound}" pgNum="${comments.pgNum}" markType="${comments.markType}"></div> {/if}
{eval} $('.comm-l-c .accept').die(); $('.comm-l-c .accept').live("click",$.eh.comment.acceptComment); $('.comm-l-c .oppose').die(); $('.comm-l-c .oppose').live("click",$.eh.comment.opposeComment); $('.comm-l-c .reply').die(); $('.comm-l-c .reply').live("click",$.eh.comment.reply); $('.reply-form .reply-submit').die(); $('.reply-form .reply-submit').live("click",function(){ $.eh.comment.saveCommentReply($(this)); }); $('.reply-form .btn_close').die(); $('.reply-form .btn_close').live("click",function(e){ var form=$(e.target).closest('form'); form[0].reset(); if($.browser.msie && parseInt($.browser.version)==6){ form.hide(); }else{ form.slideUp(200); } }); var pages = $(".comm-list .pages"); if (!pages) return; var markType= pages.attr("markType"); var total= pages.attr("total"); var opt = {current_page:pages.attr('pgNum') ,items_per_page:$.eh.comment.getLimit() ,link_to:"javascript:void(0);" ,prev_text:"上一页" ,next_text:"下一页" ,callback:function(page_index,jq){ $.eh.comment.getComments(markType,page_index,total); var top = $(".comm-list").offset().top-50; $('body,html').animate({scrollTop:top},200); return false; } }; pages.pagination(pages.attr('total'), opt); {/eval}
{var rowNum=results.length} {if rowNum>0} <table style="table-layout:fixed;" cellspacing="0" border="0"> {for reply in results} <tr><td class="comm-b-l"><span class="rowNum">${rowNum}</span></td><td class="comm-b-c"><div class="replyInof"><span class="comm-r-u">${reply.userName}</span> 回复说: <span class="comm-r-t">${reply.commitTime}</span></div><div class="comm-r-c">${reply.reply}</div></td></tr> {var rowNum=rowNum-1} {/for} </table> {/if}
<div class="leaveMsg-summary"><table style="width:100%;table-layout:fixed;" cellspacing="0" border="0"><tr><td class="leaveMsg-tip"> 由于每位咨询者咨询的情况、提问时间各不相同,客服回复所依据的信息也不断变化。因此,客服给到的回复仅对提问者在一定时间内有效,其他网友仅供参考!给您带来的不便还请谅解,谢谢! </td><td class="leaveMsg-action"><!--请先登录后--><br><a class="leaveMsgBtn" href="javascript:void(0);">咨 询</a></td></tr></table></div><!--留言表单--><form id="leaveMsg-form" class="leaveMsg-form baseform"><a href="javascript:void(0);" title="取消" class="btn_close"> </a><div class="caption">咨询留言</div><table style="width:100%;table-layout:fixed;" cellspacing="0" border="0"><tr class="field_group"><td class="field_label red">*留言类型:</td><td class="field_input"><ul> {for group in total.groups} <li><input type="radio" id="leaveMsg-${group.groupId}" name="groupId" value="${group.groupId}" {if group_index==0} checked="checked" {/if} /><label for="leaveMsg-${group.groupId}">${group.groupName}</label></li> {/for} </ul></td><td class="leaveMsg-f-t"></td></tr><tr><td class="field_label red">*留言内容:</td><td class="field_input"><textarea id="leaveMsg-message" name="message" cols="20" rows="3"></textarea></td><td class="field_msg"><span class="Validform_checktip">请明确的描述您要咨询的问题,我们将尽快给您回复。</span></td></tr><tr><td class="field_label red">*联系电话:</td><td class="field_input"><input type="text" id="leaveMsg-telephone" name="telephone" value="" /></td><td class="field_msg"><span class="Validform_checktip">必埴,请填写真实电话号码</span></td></tr><tr><td class="field_label red"> 邮箱地址:</td><td class="field_input"><input type="text" id="leaveMsg-email" name="email" value="" /></td><td class="field_msg"><span class="Validform_checktip">请填写常用邮箱</span></td></tr><tr class="field field_checkCode"><td class="field_label">*验证码:</td><td class="field_input"><input id="checkCode" name="checkCode" type="text"/><div class="checkCodeImg"></div></td><td class="field_msg"><span class="Validform_checktip"></span></td></tr></table><div class="action"><a id="submitMsg" class="submit" href="javascript:void(0);">提 交</a></div></form><!--评价分组--><table class="leaveMsg-groups" style="width:100%;table-layout:fixed;" cellspacing="0" border="0"><tr><td class="leaveMsg-g leaveMsg-g-l cur" groupId="All" ><a href="javascript:void(0);">全部(${total.count})</a></td> {for group in total.groups} <td class="leaveMsg-g" groupId="${group.groupId}"><a href="javascript:void(0);">${group.groupName}(${group.count})</a></td> {/for} </tr></table> {for group in total.groups} <div class="groupDesc" id="groupDesc_${group.groupId}">${group.groupDesc}</div> {/for}
{eval} //按分类浏览留言 $('.leaveMsg-groups [groupId]').die(); $('.leaveMsg-groups [groupId]').live("click",function(e){ $('.leaveMsg-groups .cur').removeClass("cur"); var ee=$(e.target).closest('.leaveMsg-groups [groupId]'); ee.addClass('cur'); var groupId=ee.attr('groupId') $(".res-leaveMsgs .groupDesc").hide(); $("#groupDesc_"+groupId).show(); $.eh.leaveMsg.getLeaveMsgs(groupId,0); }); //我要留言 $(".leaveMsg-summary .leaveMsgBtn").die(); $(".leaveMsg-summary .leaveMsgBtn").live("click",function(){ var form=$("#leaveMsg-form"); if(!form.is(":hidden")) return; $.eh.leaveMsg.doLeaveMsg(function(){ if($.browser.msie && parseInt($.browser.version)==6){ form.show(); } else{ form.slideDown(300); } }); }); var captchaCode = $('.field_input .checkCodeImg').captchaCode(); //表单验证与提交 var leaveMsgForm=$("#leaveMsg-form").Validform({ tiptype:2 ,btnSubmit:"#submitMsg" ,postonce:true ,datatype:{ "phone":/^(0[0-9]{2,3}\-)?([2-9]{1}[0-9]{6,7}){1}(\-[0-9]{1,4})?$/, "e60":/^(?=\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$).{0,60}$/ } ,callback:function(form){ $.eh.leaveMsg.saveLeaveMsg(form,$('#checkCode').val(),function(success,o){ leaveMsgForm.resetStatus(); if (success){ form[0].reset(); form.hide(); leaveMsgForm.resetStatus(); $.eh.leaveMsg.getLeaveMsgTotal(function(){ $.eh.leaveMsg.getLeaveMsgs(); }); } else { $.ex.msgbox.warning(o.message); captchaCode.refresh(); $("#checkCode").val(""); leaveMsgForm.check(false,"#checkCode"); } }); return false; } }) $.Tipmsg.r=" "; leaveMsgForm.addRule([{ ele:"#leaveMsg-telephone", datatype:"phone|m", nullmsg:"请输入您的联系电话。", errormsg:"电话号码(或手机)格式错误。" },{ ele:"#leaveMsg-message", datatype:"*1-300", nullmsg:"请输入留言内容。", errormsg:"留言内容输入超长,请控制在300字以内。" },{ ele:"#checkCode", datatype:"*", nullmsg:"请输入图中显示验证码。" },{ ele:"#leaveMsg-email", datatype:"e60", errormsg:"邮箱格式错误。", ignore:"ignore" } ]); //关闭留言窗口 $('#leaveMsg-form .btn_close').die(); $('#leaveMsg-form .btn_close').live('click',function(e){ $('#leaveMsg-form')[0].reset(); if($.browser.msie && parseInt($.browser.version)==6){ $('#leaveMsg-form').hide(); } else{ $('#leaveMsg-form').slideUp(300); } }); {/eval}
{for leaveMsg in leaveMsgs.results} <div class="leaveMsg-item"><div class="leaveMsg-q"><div class="leaveMsg-q-c"><span class="label">提问:</span><span>${leaveMsg.message}</span></div><div class="leaveMsg-q-u"> 网友:${leaveMsg.userName} ${leaveMsg.createTime} </div></div><div class="leaveMsg-a"><em> </em><span class="label">回复:</span><span> {if leaveMsg.reMessage!=""} ${leaveMsg.reMessage} {else} 尚未回复。 {/if} </span></div></div> {forelse} <div class="noRec">暂时还没有咨询留言记录。</div> {/for} {if leaveMsgs.numFound>$.eh.leaveMsg.getLimit()} <div class="pages" total="${leaveMsgs.numFound}" pgNum="${leaveMsgs.pgNum}" groupId="${leaveMsgs.groupId}"></div> {/if}
{eval} var pages = $(".leaveMsg-list .pages"); if (!pages) return; var groupId = pages.attr('groupId'); var opt = {current_page:pages.attr('pgNum') ,items_per_page:$.eh.leaveMsg.getLimit() ,link_to:"javascript:void(0);" ,prev_text:"上一页" ,next_text:"下一页" ,callback:function(page_index,jq){ $.eh.leaveMsg.getLeaveMsgs(groupId,page_index); return false; } }; pages.pagination(pages.attr('total'), opt); {/eval}
<form class="baseform productDemandForm"><input type="hidden" name="orgProductId" value="${product.orgProductId}" /><input type="hidden" name="shopProductId" value="${product.shopProductId}" /><input type="hidden" name="skuId" value="${product.skuId}" /><input type="hidden" name="productCaption" value="${product.productCaption}" /><input type="hidden" name="packUnits" value="${product.packUnits}" /><input type="hidden" name="packAmount" value="${product.packAmount}" /><input type="hidden" name="specDesc" value="${product.specDesc}" /><input type="hidden" name="url" value="${product.url}" /><input type="hidden" name="orgId" value="${product.orgId}" /><input type="hidden" name="bizCenterId" value="${product.bizCenterId}" /><input type="hidden" name="skuCode" value="${product.skuCode}" /><div class="caption">商品需求登记</div><dl><dt>商品:</dt><dd>${product.productCaption}</dd></dl><dl><dt>规格:</dt><dd>${product.packUnits} ${product.specDesc}</dd></dl><table class="contactInfo" border=0 cellspacing=0 style="width:100%;table-layout:fixed;"><tr class="field field_telephone"><td class="field_label red">数量:</td><td class="field_input"><input id="amount" name="amount" type="text" maxlength="10" value="1" /></td><td class="field_msg"><span class="Validform_checktip">欲购商品数量。</span></td></tr><tr class="field field_time"><td class="field_label red" >截止日期:</td><td class="field_input"><input id="date" name="arriveDate" type="text" placeholder="书写格式:2017-01-01" /></td><td class="field_msg"><span class="Validform_checktip">请填写欲订购商品时间。</span></td></tr><tr class="field field_telephone"><td class="field_label red">电话:</td><td class="field_input"><input id="telephone" name="telephone" type="text" /></td><td class="field_msg"><span class="Validform_checktip">请填写联系电话以便与您联系。</span></td></tr><!-- <tr class="field field_email"><td class="field_label">邮箱:</td><td class="field_input"><input id="email" name="email" type="text" /></td><td class="field_msg"><span class="Validform_checktip">请填写常用邮箱。</span></td></tr> --><tr class="field field_message"><td class="field_label " >留言:</td><td class="field_input" colspan="2"> <textarea name="message" id="message" class="message-text" ></textarea> </td></tr><!-- <tr class="field field_checkCode"><td class="field_label">验证码:</td><td class="field_input"><input id="checkCode" name="checkCode" type="text"/><div class="checkCodeImg"></div></td><td class="field_msg"><span class="Validform_checktip"></span></td></tr> --></table><div class="tip">请留下您的联系方式,以方便我们的客服人员联系您,接洽购买此商品的相关事宜。</div><div class="action"><a id="submit" href="javascript:void(0);" class="submit">提 交</a></div></form>
{eval} // var captchaCode = $('.field_input .checkCodeImg').captchaCode(); //表单验证与提交 var form=$(".productDemandForm").Validform({ tiptype:2 ,datatype:{ "phone":/^(0[0-9]{2,3}\-)?([2-9]{1}[0-9]{6,7}){1}(\-[0-9]{1,4})?$/, "amount":/^(0*|[1-9])\d{0,9}$/, "empty": /^\s*$/, "date": function(gets,obj,curform,regxp){ var nowtime = GetDateStr(0); var inputtime = $(obj).val(); var ret = /^(([0-9]{3}[1-9]|[0-9]{2}[1-9][0-9]{1}|[0-9]{1}[1-9][0-9]{2}|[1-9][0-9]{3})-(((0[13578]|1[02])-(0[1-9]|[12][0-9]|3[01]))|((0[469]|11)-(0[1-9]|[12][0-9]|30))|(02-(0[1-9]|[1][0-9]|2[0-8]))))|((([0-9]{2})(0[48]|[2468][048]|[13579][26])|((0[48]|[2468][048]|[3579][26])00))-02-29)$/; var now = new Date(nowtime.replace("-", "/").replace("-", "/")); var end = new Date(inputtime.replace("-", "/").replace("-", "/")); if(ret.test(inputtime)){ if(end>=now) return true; }else{ return false; } return false; } } ,usePlugin:{ datepicker:{} } ,btnSubmit:"#submit" ,callback:function(data){ //执行表单提交 $.eh.shopDisplay.saveProductDemand(data,function(success,o){ if (success){ $.ex.msgbox.success("需求登记成功,感谢您的支持!",function(){ $.colorbox.close(true); }); }else{ $.ex.msgbox.warning(o.message); } }); return false; } }) $.Tipmsg.r=" "; form.addRule([{ ele:"#amount", datatype:"amount", errormsg:"请输入正确的购买数量。" },{ ele:"#message", datatype:"*1-200", errormsg:"留言内容请控制在200字以内。", ignore:"ignore" },{ ele:"#telephone", datatype:"phone|m", nullmsg:"请输入电话号码。", errormsg:"请输入正确的电话号码。" },{ ele:"#date", datatype:"empty|date", nullmsg:"请按提示输入订购日期,订购日期不能小于当前日期!", errormsg:"请按提示输入订购日期,订购日期不能小于当前日期!" } ]); //获取时间 function GetDateStr(AddDayCount) { var dd = new Date(); dd.setDate(dd.getDate()+AddDayCount);//获取AddDayCount天后的日期 var y = dd.getFullYear(); var m = (dd.getMonth()+1)<10?"0"+(dd.getMonth()+1):(dd.getMonth()+1);//获取当前月份的日期,不足10补0 var d = dd.getDate()<10?"0"+dd.getDate():dd.getDate();//获取当前几号,不足10补0 return y+"-"+m+"-"+d; } {/eval}