⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 auction1_common.js

📁 设置POS机资料、班次资料、收银员资料等。   2)灵活、细分的权限管理
💻 JS
📖 第 1 页 / 共 2 页
字号:

function loadscript(rURL,rID)
{
    var oldscript = $(rID);
    var newscript = document.createElement("script");
    newscript.setAttribute("id", rID)
    newscript.setAttribute("src", rURL);
    oldscript.parentNode.replaceChild(newscript, oldscript);
}
function ItemFormSubmit(v)
{
    if(v)
    {
        document.itemForm.submit();
    }
    else
    {
        //showpaipailogin(2,"document.itemForm.submit();");
        ShowBuyLoginDiv();
    }
}
var retryTimes=0;
function CheckIsLogin()
{
    var uin=getCookie("uin");
    if(uin==0)
    {
        //showpaipailogin(2,"document.itemForm.submit();");
        ShowBuyLoginDiv();
    }
    else
    {
        var url="http://auction.paipai.com/cgi-bin/check_login_state?domain=auction&function=ItemFormSubmit&uin="+uin+"&pt="+Math.random();
        loadscript(url,"LoginJs");
    }
}
var g_isRated=false;
var g_isHaveRate=false;
function loadImg(imgName)
{
    document.write("<img src='http://pics.paipai.com/auction1/wareTitleTop"+styleType+".gif"+"' />");
}
function countPTag(pageId,domainId,linkId)
{
    pUrl="http://auction.paipai.com/cgi-bin/go?pageId="+pageId+"&domainId="+domainId+"&linkId="+linkId+ "&url=" + escape("http://auction.paipai.com/null.shtml");
    loadscript(pUrl,"countPTagScript");
}
function ZengSong()
{
    $("present").value=1;
    doSubmit();
}
function refreshMoney(sItemid)
{
    tempSrc="http://auction.paipai.com/cgi-bin/auction_refurbish_price.js?sItemid="+sItemid+"&rantime="+Math.random();
    loadscript(tempSrc,"priceJs");
}
function reloadMoney(auc_num,refreshPrice)
{
    var strTemp1=refreshPrice;
    var strTemp2=refreshPrice+" &nbsp;元";
    $('html_tem_price').innerHTML = strTemp1;
    $('html_tem_price2').innerHTML = strTemp2;
    $("auction_num").innerHTML=auc_num;
}
function DoDisplayUserRateScoreForCommodity(Role,score,uin)
{
    var allContent = "";
    var cRole,tmp;
    if (Role)
    {
        if(score<32000)
        allContent+="<a href='http://shop1.paipai.com/cgi-bin/credit_info?uin="+uin+"&PTAG=10.1.37'>"+score+"</a><a href='http://shop1.paipai.com/cgi-bin/credit_info?uin="+uin+"&PTAG=10.1.38' target='_blank'>";
        else
        allContent+="<a href='http://shop1.paipai.com/cgi-bin/credit_info?uin="+uin+"&PTAG=10.1.38' target='_blank'>";
        if(score<1)
        {
            cRole="(0个信用积分)&#13;&#10;点击查看详情";
        }
        else if(score>=1 && score<=4)
        {
            cRole="一星卖家(1-4个信用积分)&#13;&#10;点击查看详情";
            tmp="seller01";
        }
        else if(score>=5 && score<=10)
        {
            cRole="二星卖家(5-10个信用积分)&#13;&#10;点击查看详情";
            tmp="seller02";
        }
        else if(score>=11 && score<=20)
        {
            cRole="三星卖家(11-20个信用积分)&#13;&#10;点击查看详情";
            tmp="seller03";
        }
        else if(score>=21 && score<=40)
        {
            cRole="四星卖家(21-40个信用积分)&#13;&#10;点击查看详情";
            tmp="seller04";
        }
        else if(score>=41 && score<=100)
        {
            cRole="五星卖家(41-100个信用积分)&#13;&#10;点击查看详情";
            tmp="seller05";
        }
        else if(score>=101 && score<=300)
        {
            cRole="一钻卖家(101-300个信用积分)&#13;&#10;点击查看详情";
            tmp="seller11";
        }
        else if(score>=301 && score<=1000)
        {
            cRole="二钻卖家(301-1000个信用积分)&#13;&#10;点击查看详情";
            tmp="seller12";
        }
        else if(score>=1001 && score<=3000)
        {
            cRole="三钻卖家(1001-3000个信用积分)&#13;&#10;点击查看详情";
            tmp="seller13";
        }
        else if(score>=3001 && score<=10000)
        {
            cRole="四钻卖家(3001-10000个信用积分)&#13;&#10;点击查看详情";
            tmp="seller14";
        }
        else if(score>=10001 && score<=30000)
        {
            cRole="五钻卖家(10001-30000个信用积分)&#13;&#10;点击查看详情";
            tmp="seller15";
        }
        else if(score>=30001 && score<=1899999999)
        {
            cRole="超级卖家("+score+"个信用积分)&#13;&#10;点击查看详情";
            tmp="sellersuper";
        }
        else if(score>=1900000000 && score<=1900999999)
        {
            cRole="拍拍网官方信用保证,官方活动专用店铺。";
            tmp="prove";
        }
        else if(score>=1901000000 && score<=1901999999)
        {
            cRole="官方信用保证,腾讯公益,让爱传递。";
            tmp="jijinhui";
        }
        else if(score>=1902000000 && score<=1902999999)
        {
            cRole="已通过商家营业执照认证。";
            tmp="shangjia";
        }
    }
    else
    {
        allContent+="<a href='http://shop1.paipai.com/cgi-bin/credit_info?uin="+uin+"&PTAG=10.1.37'>"+score+"</a><a href='http://shop1.paipai.com/cgi-bin/credit_info?uin="+uin+"&PTAG=10.1.38' target='_blank'>";
        if(score<1)
        {
            cRole="(0个信用积分)&#13;&#10;点击查看详情>>";
        }
        else if(score>=1 && score<=4)
        {
            cRole="一星买家(1-4个信用积分)&#13;&#10;点击查看详情>>";
            tmp="buyer01";
        }
        else if(score>=5 && score<=10)
        {
            cRole="二星买家(5-10个信用积分)&#13;&#10;点击查看详情>>";
            tmp="buyer02";
        }
        else if(score>=11 && score<=20)
        {
            cRole="三星买家(11-20个信用积分)&#13;&#10;点击查看详情>>";
            tmp="buyer03";
        }
        else if(score>=21 && score<=40)
        {
            cRole="四星买家(21-40个信用积分)&#13;&#10;点击查看详情>>";
            tmp="buyer04";
        }
        else if(score>=41 && score<=100)
        {
            cRole="五星买家(41-100个信用积分)&#13;&#10;点击查看详情>>";
            tmp="buyer05";
        }
        else if(score>=101 && score<=200)
        {
            cRole="一钻买家(101-200个信用积分)&#13;&#10;点击查看详情>>";
            tmp="buyer11";
        }
        else if(score>=201 && score<=500)
        {
            cRole="二钻买家(201-500个信用积分)&#13;&#10;点击查看详情>>";
            tmp="buyer12";
        }
        else if(score>=501 && score<=1000)
        {
            cRole="三钻买家(501-1000个信用积分)&#13;&#10;点击查看详情>>";
            tmp="buyer13";
        }
        else if(score>=1001 && score<=2000)
        {
            cRole="四钻买家(1001-2000个信用积分)&#13;&#10;点击查看详情>>";
            tmp="buyer14";
        }
        else if(score>=2001 && score<=5000)
        {
            cRole="五钻买家(2001-5000个信用积分)&#13;&#10;点击查看详情>>";
            tmp="buyer15";
        }
        else
        {
            cRole="超级买家("+score+"个信用积分)&#13;&#10;点击查看详情>>";
            tmp="buyersuper";
        }
    }
    allContent+="<span title='"+cRole+"'>";
    if( score>=1)
    allContent+="<img src='http://pics.paipai.com/common/icon/"+tmp+".gif' align='absmiddle'>";
    $('html_seller_credit').innerHTML=allContent;
}
function showVisitCount(visitCount)
{
    var obj=$('visitCount_td');
    if(visitCount * 1 > 0)
    {
        if(obj)
        {
            obj.innerHTML = visitCount;
            $('viewCount').style.display="";
        }
    }
}
function showVipTips()
{
    isVipItem=document.itemForm.isVipItem.value;
    if(isVipItem=='1') /*qq会员特权商品*/
    {
        if($("DiscountSpan1"))
        {
            if(document.itemForm.sTitle.value.indexOf("[QQ音乐VIP特价]")!=-1
            || document.itemForm.sTitle.value.indexOf("[绿钻贵族特权]")!=-1 )
            $("DiscountSpan1").innerHTML="(绿钻贵族独享此价!)";
            else
            $("DiscountSpan1").innerHTML="<a href='http://vip.qq.com/' target='_blank'>(QQ会员独享此价!)</a>";
        }
        if($("DiscountSpan2"))
        {
            $("DiscountSpan2").style.display="";
            $("DiscountSpan2").innerHTML="财付通交易成功后送30元红包!";
        }
    }
}
function showCity(cityName)
{
    var cityL=cityName.length;
    if(cityL>6)
    cityName=cityName.substr(0,6)+"<br />     "+cityName.substr(6,cityL-6);
    if($('city'))
    $('city').innerHTML = cityName;
}
function showItemNum(auctionType,auctionNum)
{
    $("auction_num").innerHTML = auctionNum;
}
function doSubmit()
{
   if (document.readyState!="complete")
	 {
 		 document.itemForm.submit();
	 }
	else
	{
   	 CheckIsLogin();
  	}
}
function buy()
{
  
  countPTag(10,1,33);
  setTimeout('doSubmit()',500);

}

function showBuyType(auctionType,Flag,dwNum)
{
    var buyHtml="";
    var dwLeafClassId=document.itemForm.dwLeafClassId.value;
	var oWishAndPresent = document.getElementById("wishandpresent");
    if(auctionType==1)
    {
        switch(Flag)
        {
            case 1:
            buyHtml='<img src="http://pics.paipai.com/auction1/fixup.gif" onclick="buy()" style="cursor:hand" />';
			buyHtml+='<img src="http://pics.paipai.com/auction1/fixupCar.gif" onclick="addshopcarinframe(this);countPTag(10,1,88);" style="cursor:hand" hspace="20" alt="加入购物车,可与其他商品合并购买。"/>';
			if(oWishAndPresent){oWishAndPresent.style.display="";}
            break;
            case 2:
		var t=document.itemForm.UploadTime.value;
		t=t.substr(0,16);
            buyHtml=showBuyMsg("此商品将于"+t+"左右开始销售","点此查看出售中的同类商品","http://list.paipai.com/list/"+dwLeafClassId+"/p-1-40-atime-"+dwLeafClassId+".shtml?PTAG=10.1.86");
            break;
            default:
		if(dwNum==0)
	buyHtml=showBuyMsg("你下手晚了,商品卖完了。","点此查看出售中的同类商品","http://list.paipai.com/list/"+dwLeafClassId+"/p-1-40-atime-"+dwLeafClassId+".shtml?PTAG=10.1.86");
		else
            buyHtml=showBuyMsg("此商品已经下架","点此查看出售中的同类商品","http://list.paipai.com/list/"+dwLeafClassId+"/p-1-40-atime-"+dwLeafClassId+".shtml?PTAG=10.1.86");
            break;
        }
    }
    else
    {
        if($("html_tem_price")&&(g_curPrice * 1 !=0))
        $("html_tem_price").innerHTML=g_curPrice;
        switch(Flag)
        {
            case 1:
            buyHtml='<img src="http://pics.paipai.com/auction1/drift.gif" onclick="buy()" style="cursor:hand" />';
            break;
            case 2:
            var t=document.itemForm.UploadTime.value;
							t=t.substr(0,16);
            buyHtml=showBuyMsg("此商品将于"+t+"左右开始拍卖","点此查看出售中的同类商品","http://list.paipai.com/list/"+dwLeafClassId+"/p-1-40-atime-"+dwLeafClassId+".shtml?PTAG=10.1.86");
            break;
            default:
            buyHtml=showBuyMsg("此商品已经下架","点此查看出售中的同类商品","http://list.paipai.com/list/"+dwLeafClassId+"/p-1-40-atime-"+dwLeafClassId+".shtml?PTAG=10.1.86");
            break;
        }
    }
    $("td_buy_button").innerHTML=buyHtml;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -