0){
Temp=dateLeft+"天";
}
else{
if(hourLeft>0){
Temp = hourLeft+"小时";
}
else{
if(minuteLeft>0){
Temp = minuteLeft+"分钟";
}
else{
if(secondLeft>0){
Temp = secondLeft+"秒";
}
}
}
}
if(dateLeft<=0 && hourLeft<=0 && minuteLeft<=0 && secondLeft <=0)
{
Temp = "成交结束";
}
document.write(Temp);
}
0.0 && fDiscount< 10.0){
showUserCardInfo(ucArr);
showAuctionPrice(fDiscount, unescape(ucArr['curGradeName']), ucArr['isUserLogon']);
}
}
}
function showUserCardInfo(ucArr){
var curGradeIndex = unescape(ucArr['curGradeIndex']);
var sHTML = '您拥有该店的' + unescape(ucArr['curGradeName']) + '卡,';
sHTML += '可
' + ucArr['curDiscount'] + '折享受该店宝贝(除不打折宝贝)';
if (cardPicArr[curGradeIndex]){
sHTML += '

';
}
var VipTitle = document.getElementById('VipCardTitle');
if (oVipTitle){
oVipTitle.style.display='';
oVipTitle.innerHTML = sHTML;
}
}
function showAuctionPrice(discount, gradeName, isUserLogon){
var Divs = document.getElementsByTagName("div");
if (oDivs && oDivs.length > 0){
for (var loop = 0; loop< oDivs.length; loop ++){
var Div = null;
try{
var Div = oDivs[loop];
if (oDiv.tagName.toLowerCase() != 'div') {
continue;
}
}
catch(e){
}
if (oDiv){
var id = oDiv.getAttribute('id');
if (id && id.indexOf('id_div_') >-1){
var curPrice = oDiv.getAttribute('price');
var displayUnit = oDiv.getAttribute('unit');
var tp = oDiv.getAttribute('tp');
var promoted = oDiv.getAttribute('promoted');
var disPrice = processPrice(curPrice, discount);
var actype = oDiv.getAttribute('actype');
if (disPrice){
if (tp){
var sClass = oDiv.className;
if (tp == 'rec'){
if (isUserLogon && isUserLogon == 'true' && promoted == 'true' && actype == 'b'){
oDiv.className = sClass + ' Through';
}
try{
var nDiv = document.createElement('div');
nDiv.className = "ReVIPPrice";
if (promoted && promoted == 'true' && actype == 'b'){
nDiv.innerHTML = '' + gradeName + '价
' + disPrice + ' ' + displayUnit + '';
}
else{
if (actype == 'b'){
nDiv.innerHTML = '特价宝贝,不参加活动';
}else if(actype == 'e'){
nDiv.innerHTML = '团购宝贝,不参加活动';
}else if(actype == 'a'){
nDiv.innerHTML = '拍卖宝贝,不参加活动';
}
}
oDiv.parentNode.appendChild(nDiv);
}
catch (e){
}
}
else if (tp == 'list'){
if (isUserLogon && isUserLogon == 'true' && promoted == 'true' && actype == 'b'){
oDiv.className = sClass + ' Through';
}
var index = id.substring('id_div_'.length, id.length);
try{
var SellType = document.getElementById('id_otype_' + index);
if (oSellType){
if (isUserLogon && isUserLogon == 'true' && promoted == 'true' && actype == 'b'){
oSellType.className = oSellType.className + ' Through';
}
}
var nPrice = document.getElementById('id_nprice_' + index);
if (nPrice){
if (promoted == 'true' && actype == 'b'){
nPrice.style.display='';
nPrice.innerHTML = gradeName + '价
' + disPrice + ' ' + displayUnit + '';
}
else{
nPrice.style.display='';
if (actype == 'b'){
nPrice.innerHTML = '特价宝贝,不参加活动';
}else if(actype == 'e'){
nPrice.innerHTML = '团购宝贝,不参加活动';
}else if(actype == 'a'){
nPrice.innerHTML = '拍卖宝贝,不参加活动';
}
}
}
/*
var nCard = document.getElementById('id_ncard_' + index);
if (nCard){
if (promoted == 'true'){
nCard.style.display='';
nCard.innerHTML = gradeName + '价';
}
else{
nCard.style.display='';
nCard.innerHTML = '特价宝贝,';
}
}
*/
}
catch (e){
}
}
}
}
}
}
}
}
}
function processPrice(cPrice, cDiscount){
var fPrice = 0.0;
var sDisPrice;
try{
fPrice = parseFloat(cPrice);
}
catch(e){
}
if (fPrice > 0.0){
var fTemp = fPrice * cDiscount / 10;
if (fTemp > 100.0){
fPrice = Math.round(fTemp);
var nTemp = new Number(fPrice);
sDisPrice = nTemp.toString() + ".00";
}
else{
fTemp = fTemp * 100;
fPrice = Math.round(fTemp);
fPrice = fPrice / 100;
var nTemp = new Number(fPrice);
sDisPrice = nTemp.toString();
if (sDisPrice.indexOf(".") == -1){
sDisPrice += ".00";
}
else if (((sDisPrice.length) - (sDisPrice.indexOf("."))) != 3){
sDisPrice += "0";
}
}
}
return sDisPrice;
}
function checkTrackNick(){
var bResult = false;
try {
var trackNick = tracenick;
if (trackNick && trackNick.length > 0){
bResult = true;
}
}catch (e) {
}
return bResult;
}
function handleGetUserCard(res){
if (b_callFlag){
return;
}
b_callFlag = true;
var uc = null;
if (res)
{
try
{
var resData = res.responseText;
if (resData){
resData = trim(resData);
if (resData.length > 0){
uc = new Array();
eval(resData);
}
}
}
catch (e) {
//alert(e.description);
}
}
if (!isArrayEmpty(uc)){
calAuctionPrice(uc);
}
}
function getTimestamp()
{
var d = new Date();
return d.getTime();
}
function initShopView(){
var isSeniorShop = "false";
isSeniorShop = "false";
if (isSeniorShop =="true" && (checkTrackNick() || (nick && nick.length > 0))){
var sURL = "/shop/get_user_card.htm?seller_id=126d52072f7048f36d62510d2e92a442";
sURL += '&t=' + getTimestamp();
try{
sAJAX(handleGetUserCard, 'GET', sURL, null, handleGetUserCardExcep);
}
catch (e)
{
}
}
}
function handleGetUserCardExcep(res){
}
//]]>
- 掌柜:qcwh540

- 卖家信用:0买家信用:0 宝贝数:17
- 创店时间:2008/05/18
- 地址:
- 旺旺在线 发站内信件
店铺公告
105.00 元
一口价
剩余
105.00 元
一口价
剩余
19.00 元
一口价
剩余
20.00 元
一口价
剩余
19.00 元
一口价
剩余
19.00 元
一口价
剩余
19.00 元
一口价
剩余
199.00 元
一口价
剩余
199.00 元
一口价
剩余
20.00 元
一口价
剩余
标题搜索
日历
|
|
| 日 |
一 |
二 |
三 |
四 |
五 |
六 |
| | | | 1 | 2 | 3 | 4 |
| 5 | 6 | 7 | 8 | 9 | 10 | 11 |
| 12 | 13 | 14 | 15 | 16 | 17 | 18 |
| 19 | 20 | 21 | 22 | 23 | 24 | 25 |
| 26 | 27 | 28 | 29 | 30 | 31 | |
数据统计
- 访问量: 4630
- 日志数: 12
- 建立时间: 2008-05-29
- 更新时间: 2008-08-04