团购模版如何获取服务器时间啊~~大家们

2016-07-07 16:03 来源:www.chinab4c.com 作者:ecshop专家

var process_request = "正在处理您的请求...";
var back_url = 'group_buy.php';
var _serverTime = '';//服务器时间
var _tuanStartTime = '{$now_time}';//开始时间
var _tuanEndTime = (_tuanStartTime - 0 + 24 * 60 * 60) * 1000;//结束时间
var _goodsID = '{$gb_goods.goods_id}';
var _goodsPrice = '{$group_buy.formated_trans_price}';
var _goodsShopPrice = '{$gb_goods.shop_price}';
var _goodsMarketPrice = '{$gb_goods.market_price}';
var _goodsName = '{$gb_goods.goods_name}';
var _quantity = ' {$group_buy.valid_goods}';
var _discountRate = Math.round((_goodsMarketPrice - _goodsPrice) / _goodsMarketPrice * 100);
var _tomorrow_goodsPrice = '{$group_buy.formated_trans_price}';
var _tomorrow_goodsShopPrice = '{$gb_goods.shop_price}';
var _tomorrow_goodsMarketPrice = '{$gb_goods.goods_name}';
var _tomorrow_discountRate = Math.round((_tomorrow_goodsMarketPrice - _tomorrow_goodsPrice) / _tomorrow_goodsMarketPrice * 100);

t.jpg

刷新后一直重新计时~~~ 如何获取服务器时间的函数呢?

回答:
你到网上百度下吧,这个不清楚

哪位指点一下啊~~

$smarty.server.REQUEST_TIME

支持一下!!!1米80以下小朋友路过