102 changed files with 12214 additions and 32 deletions
@ -0,0 +1 @@ |
|||||
|
E6VQfRLuKSkhI7zW |
||||
@ -0,0 +1,231 @@ |
|||||
|
<?php |
||||
|
|
||||
|
/** |
||||
|
* ECSHOP 大连支付 |
||||
|
* $Author: shenchen |
||||
|
* $time 2023年7月19日15:57:13 |
||||
|
*/ |
||||
|
|
||||
|
if (!defined('IN_ECS')) |
||||
|
{ |
||||
|
die('Hacking attempt'); |
||||
|
} |
||||
|
|
||||
|
$payment_lang = ROOT_PATH . 'languages/' .$GLOBALS['_CFG']['lang']. '/payment/dalianpay.php'; |
||||
|
|
||||
|
if (file_exists($payment_lang)) |
||||
|
{ |
||||
|
global $_LANG; |
||||
|
include_once($payment_lang); |
||||
|
} |
||||
|
|
||||
|
/* 模块的基本信息 */ |
||||
|
if (isset($set_modules) && $set_modules == TRUE) |
||||
|
{ |
||||
|
$i = isset($modules) ? count($modules) : 0; |
||||
|
|
||||
|
/* 代码 */ |
||||
|
$modules[$i]['code'] = basename(__FILE__, '.php'); |
||||
|
|
||||
|
/* 描述对应的语言项 */ |
||||
|
$modules[$i]['desc'] = 'dalianpay_desc'; |
||||
|
|
||||
|
/* 是否支持货到付款 */ |
||||
|
$modules[$i]['is_cod'] = '0'; |
||||
|
|
||||
|
/* 是否支持在线支付 */ |
||||
|
$modules[$i]['is_online'] = '1'; |
||||
|
|
||||
|
/* 作者 */ |
||||
|
$modules[$i]['author'] = 'shenchen'; |
||||
|
|
||||
|
/* 网址 */ |
||||
|
// $modules[$i]['website'] = 'http://www.alipay.com'; |
||||
|
$modules[$i]['website'] = ''; |
||||
|
|
||||
|
/* 版本号 */ |
||||
|
$modules[$i]['version'] = '11'; |
||||
|
|
||||
|
/* 配置信息 */ |
||||
|
$modules[$i]['config'] = array( |
||||
|
array('name' => 'dalianpay_account', 'type' => 'text', 'value' => ''), |
||||
|
array('name' => 'dalianpay_key', 'type' => 'text', 'value' => ''), |
||||
|
array('name' => 'dalianpay_partner', 'type' => 'text', 'value' => ''), |
||||
|
array('name' => 'dalianpay_pay_method', 'type' => 'select', 'value' => '') |
||||
|
); |
||||
|
|
||||
|
return; |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 类 |
||||
|
*/ |
||||
|
class dalianpay |
||||
|
{ |
||||
|
|
||||
|
/** |
||||
|
* 构造函数 |
||||
|
* |
||||
|
* @access public |
||||
|
* @param |
||||
|
* |
||||
|
* @return void |
||||
|
*/ |
||||
|
function dalianpay() |
||||
|
{ |
||||
|
} |
||||
|
|
||||
|
function __construct() |
||||
|
{ |
||||
|
$this->dalianpay(); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 生成支付代码 |
||||
|
* @param array $order 订单信息 |
||||
|
* @param array $payment 支付方式信息 |
||||
|
*/ |
||||
|
function get_code($order, $payment) |
||||
|
{ |
||||
|
if (!defined('EC_CHARSET')) |
||||
|
{ |
||||
|
$charset = 'utf-8'; |
||||
|
} |
||||
|
else |
||||
|
{ |
||||
|
$charset = EC_CHARSET; |
||||
|
} |
||||
|
|
||||
|
// $real_method = $payment['alipay_pay_method']; |
||||
|
$real_method = $payment['dalianpay_pay_method']; |
||||
|
|
||||
|
switch ($real_method){ |
||||
|
case '0': |
||||
|
$service = 'trade_create_by_buyer'; |
||||
|
break; |
||||
|
case '1': |
||||
|
$service = 'create_partner_trade_by_buyer'; |
||||
|
break; |
||||
|
case '2': |
||||
|
$service = 'create_direct_pay_by_user'; |
||||
|
break; |
||||
|
} |
||||
|
|
||||
|
$extend_param = 'isv^sh22'; |
||||
|
|
||||
|
$parameter = array( |
||||
|
'extend_param' => $extend_param, |
||||
|
'service' => $service, |
||||
|
'partner' => $payment['alipay_partner'], |
||||
|
//'partner' => ALIPAY_ID, |
||||
|
'_input_charset' => $charset, |
||||
|
'notify_url' => return_url(basename(__FILE__, '.php')), |
||||
|
'return_url' => return_url(basename(__FILE__, '.php')), |
||||
|
/* 业务参数 */ |
||||
|
'subject' => $order['order_sn'], |
||||
|
'out_trade_no' => date("YmdHi") . $order['order_sn'] . $order['log_id'], |
||||
|
'price' => $order['order_amount'], |
||||
|
'quantity' => 1, |
||||
|
'payment_type' => 1, |
||||
|
/* 物流参数 */ |
||||
|
'logistics_type' => 'EXPRESS', |
||||
|
'logistics_fee' => 0, |
||||
|
'logistics_payment' => 'BUYER_PAY_AFTER_RECEIVE', |
||||
|
/* 买卖双方信息 */ |
||||
|
'seller_email' => $payment['alipay_account'] |
||||
|
); |
||||
|
|
||||
|
ksort($parameter); |
||||
|
reset($parameter); |
||||
|
|
||||
|
$param = ''; |
||||
|
$sign = ''; |
||||
|
|
||||
|
foreach ($parameter AS $key => $val) |
||||
|
{ |
||||
|
$param .= "$key=" .urlencode($val). "&"; |
||||
|
$sign .= "$key=$val&"; |
||||
|
} |
||||
|
|
||||
|
$param = substr($param, 0, -1); |
||||
|
$sign = substr($sign, 0, -1). $payment['alipay_key']; |
||||
|
//$sign = substr($sign, 0, -1). ALIPAY_AUTH; |
||||
|
|
||||
|
// $button = '<div class="alipay" style="text-align:center"><input type="button" onclick="window.open(\'https://mapi.alipay.com/gateway.do?'.$param. '&sign='.md5($sign).'&sign_type=MD5\')" value="' .$GLOBALS['_LANG']['pay_button']. '" /></div>'; |
||||
|
$button = '<div class="dalianpay" style="text-align:center"><input type="button" onclick="window.open(\'https://mapi.alipay.com/gateway.do?'.$param. '&sign='.md5($sign).'&sign_type=MD5\')" value="' .$GLOBALS['_LANG']['pay_button']. '" /></div>'; |
||||
|
|
||||
|
return $button; |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 响应操作 |
||||
|
*/ |
||||
|
function respond() |
||||
|
{ |
||||
|
if (!empty($_POST)) |
||||
|
{ |
||||
|
foreach($_POST as $key => $data) |
||||
|
{ |
||||
|
$_GET[$key] = $data; |
||||
|
} |
||||
|
} |
||||
|
$payment = get_payment($_GET['code']); |
||||
|
$seller_email = rawurldecode($_GET['seller_email']); |
||||
|
$order_sn = str_replace($_GET['subject'], '', $_GET['out_trade_no']); |
||||
|
$order_sn = trim(addslashes($order_sn)); |
||||
|
|
||||
|
/* 检查数字签名是否正确 */ |
||||
|
ksort($_GET); |
||||
|
reset($_GET); |
||||
|
|
||||
|
$sign = ''; |
||||
|
foreach ($_GET AS $key=>$val) |
||||
|
{ |
||||
|
if ($key != 'sign' && $key != 'sign_type' && $key != 'code') |
||||
|
{ |
||||
|
$sign .= "$key=$val&"; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
$sign = substr($sign, 0, -1) . $payment['alipay_key']; |
||||
|
//$sign = substr($sign, 0, -1) . ALIPAY_AUTH; |
||||
|
if (md5($sign) != $_GET['sign']) |
||||
|
{ |
||||
|
return false; |
||||
|
} |
||||
|
|
||||
|
/* 检查支付的金额是否相符 */ |
||||
|
if (!check_money($order_sn, $_GET['total_fee'])) |
||||
|
{ |
||||
|
return false; |
||||
|
} |
||||
|
|
||||
|
if ($_GET['trade_status'] == 'WAIT_SELLER_SEND_GOODS') |
||||
|
{ |
||||
|
/* 改变订单状态 */ |
||||
|
order_paid($order_sn, 2); |
||||
|
|
||||
|
return true; |
||||
|
} |
||||
|
elseif ($_GET['trade_status'] == 'TRADE_FINISHED') |
||||
|
{ |
||||
|
/* 改变订单状态 */ |
||||
|
order_paid($order_sn); |
||||
|
|
||||
|
return true; |
||||
|
} |
||||
|
elseif ($_GET['trade_status'] == 'TRADE_SUCCESS') |
||||
|
{ |
||||
|
/* 改变订单状态 */ |
||||
|
order_paid($order_sn, 2); |
||||
|
|
||||
|
return true; |
||||
|
} |
||||
|
else |
||||
|
{ |
||||
|
return false; |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
?> |
||||
@ -0,0 +1,9 @@ |
|||||
|
-----BEGIN PUBLIC KEY----- |
||||
|
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAgFoZG+UeND0T/PQK41Dg |
||||
|
5bXgpuHwBdc7sfGRTKlB2PmZ1Q8XE4b8u5SMqk9LC7iUL5wJlItJ9rcdXPgc3SnB |
||||
|
xuq133HRqvsNAxWacYQnarYMko7JKKGENdrcE+MY7ZM6Yo60/6+HVOwphIw8BuZL |
||||
|
NvvCKx7BrI84t93TFndn6WVF16XgOhQkPyUmsj2ekfw9vrQg89ipNcTHmBCtH9/K |
||||
|
KEWRPTUkH9xc+GOZ06v5O3Pmpd+hdXyE/Rjtsa1foR3l1UsWFVODHRkeoHTnBdkR |
||||
|
YiOGXpGthazAcvPAZtTWSKtRirKF87soIill1cmHMCw8d9JoZgq9k0L8n9ZpUCw7 |
||||
|
twIDAQAB |
||||
|
-----END PUBLIC KEY----- |
||||
@ -0,0 +1,28 @@ |
|||||
|
-----BEGIN RSA PRIVATE KEY----- |
||||
|
MIIEvAIBADANBgkqhkiG9w0BAQEFAASCBKYwggSiAgEAAoIBAQCOt2qd98v3uMVM |
||||
|
XtDlEJBks8spkC+SSdi+/9m+6cVE/eqSqzWMAa2QeoZ7j31ard+FV2ZynITj+Y15 |
||||
|
6iRJ84J20k7VTuUfjLSjJ079DrRweYimf5MW/QCRyz93YMjC4A9aWrbSw06pkiz4 |
||||
|
p3DMkitlp9oDEx13vJld0tLw1BO4fSMmoDLg4ri3zFA/PqPb3OWW0R/yRakOdiPx |
||||
|
kjsOYZ7EOesdc67gdYCiiEy2x38jGMKAJ5jqWmRbnCF+4Ij7QPGXQTG7ba63azNN |
||||
|
S8mBis5WNHA1EPK+KgRDykZHWTzV8Hu/x5NRnBUYpTdSlLM2zP//8dAcUOUejakv |
||||
|
DSWbLPDVAgMBAAECggEAVm5KSYTqqAnkow3BIRjY+cPRREioJsZGV9YG/xIAgHnu |
||||
|
eAjsEvBpNtidXXNXDXXDqrN1ve+Ao7hcr/rXI1owJtnTGGgBZwwF0dFaivM+3+ca |
||||
|
lQsp/4AVujYHJ7sbmrmrUqMhmZ7iott+FNEDBUF4usXeyIHpFLzJfQLS8Tre/pkS |
||||
|
KVcepRBKD7WSwSaqI5Gb9i+HHdqgE1UhY4nqMt1F07szFmPSCsS8L5DVGRTKbOlW |
||||
|
KwwbgyY53aUCb1xVVHXhyxCFTU8a02yBwWDXCeG+Qvnu2qED+wui7yF77299ypPP |
||||
|
oim72rjyxj1736+PSymgPlNuLFPkH/HLac5jxdR7eQKBgQDQq6nORGAJpPmt+BLY |
||||
|
nJtJHCJiU4cf4dJ1O+LnUTvlO1dl68wh/fulOG6xwngTXB9izq9Aj6CEGsW7GCne |
||||
|
3Q1vBELlmDcqp1AiyvpHaymtYWRr6+DdW0DKWTfcqaaF+8GEx6RwXBuwUji7kh5y |
||||
|
wCCP3ZLZG9zx7DTL9F0+2h7TwwKBgQCvFiqtPK72VT9C9+Q+Ct8Bwhzv0WDbTwx6 |
||||
|
Ke5YXWuI8mm07TA/osVav4etLrwlKine6QqZ9+1GnYtB09EKX1nmFBgiOgR52woe |
||||
|
hOhOYTG4bFRfH7caiHcgR3L0nsXCdjlfpxqLiUCvFYzwYsXnIGfQYZvWLELFua5o |
||||
|
dhRyTfxXhwKBgHxEzwJE3ADCW+ML6oVPdnbqp1txLPaCsKgaev2Q9h+E4H6VF2Ni |
||||
|
8xso6Vs5WfMFmLdqKRpErq4dl4XdVQohEN/9ZK2AodHoBCRERxqDKjXT208eETMi |
||||
|
JgqbaVYjPkVqcYvWrQoxAFhYDus9kJ575qhmpw5etozoQ2T26RUGJverAoGANKwy |
||||
|
gpNy/2B9+6Of4ppapKjFE9ClltSdKFNdBPB13WkwK+H/VeWeAcMFCjC5IWUh25G4 |
||||
|
QsG3fDsBHfifNsOgw/rfl8xkdFRVIwFQ8eODlbvhVgywhSbwz6EvEDCDxhDTCde3 |
||||
|
wKq17vZIxDiy2OmC0cnLnA8Mt3c45OxBEnIrrBkCgYBgaR0UQJq/Xfnu+CV8/hV3 |
||||
|
HYpzquWzqWve3DgEGSXA/fAVSm6JhcumndywlBVXXyML+A+U6MVdJfGVbLSHxLQV |
||||
|
1f9nTAwXPbauFLrqpHm0hOvCwfAEkK8HDt2mKOfblbWrLo7gF7wErcSEw7tEqJOg |
||||
|
M2OG+6QXvCsCZUKBf8TnnQ== |
||||
|
-----END RSA PRIVATE KEY----- |
||||
@ -0,0 +1,16 @@ |
|||||
|
-----BEGIN PRIVATE KEY----- |
||||
|
MIICdQIBADANBgkqhkiG9w0BAQEFAASCAl8wggJbAgEAAoGBAJgHMGYsspghvP+y |
||||
|
CbjLG43CkZuQ3YJyDcmEKxvmgblITfmiTPx2b9Y2iwDT9gnLGExTDm1BL2A8VzMo |
||||
|
bjaHfiCmTbDctu680MLmpDDkVXmJOqdlXh0tcLjhN4+iDA2KkRqiHxsDpiaKT6MM |
||||
|
BuecXQbJtPlVc1XjVhoUlzUgPCrvAgMBAAECgYAV9saYTGbfsdLOF5kYo0dve1Jx |
||||
|
aO7dFMCcgkV+z2ujKtNmeHtU54DlhZXJiytQY5Dhc10cjb6xfFDrftuFcfKCaLiy |
||||
|
6h5ETR8jyv5He6KH/+X6qkcGTkJBYG1XvyyFO3PxoszQAs0mrLCqq0UItlCDn0G7 |
||||
|
2MR9/NuvdYabGHSzEQJBAMXB1/DUvBTHHH4LiKDiaREruBb3QtP72JQS1ATVXA2v |
||||
|
6xJzGPMWMBGQDvRfPvuCPVmbHENX+lRxMLp39OvIn6kCQQDEzYpPcuHW/7h3TYHY |
||||
|
c+T0O6z1VKQT2Mxv92Lj35g1XqV4Oi9xrTj2DtMeV1lMx6n/3icobkCQtuvTI+Ac |
||||
|
qfTXAkB6bCz9NwUUK8sUsJktV9xJN/JnrTxetOr3h8xfDaJGCuCQdFY+rj6lsLPB |
||||
|
TnFUC+Vk4mQVwJIE0mmjFf22NWW5AkAmsVaRGkAmui41Xoq52MdZ8WWm8lY0BLrl |
||||
|
BJlvveU6EPqtcZskWW9KiU2euIO5IcRdpvrB6zNMgHpLD9GfMRcPAkBUWOV/dH13 |
||||
|
v8V2Y/Fzuag/y5k3/oXi/WQnIxdYbltad2xjmofJ7DbB7MJqiZZD8jlr8PCZPwRN |
||||
|
zc5ntDStc959 |
||||
|
-----END PRIVATE KEY----- |
||||
@ -0,0 +1,43 @@ |
|||||
|
<?php |
||||
|
|
||||
|
return array( |
||||
|
// 机构号 |
||||
|
'org_num' => '5503001', |
||||
|
// 商户号 |
||||
|
'cusid' => '10147', |
||||
|
// 产品 |
||||
|
'producp' => 'JX0002', |
||||
|
// 版本 |
||||
|
'version' => '11', |
||||
|
// 门店号 |
||||
|
'branchno' => '44', |
||||
|
// 终端号 |
||||
|
'termcode' => '000000', |
||||
|
// 加密方式 |
||||
|
'signtype' => 'RSA', |
||||
|
// 渠道公钥 |
||||
|
'public_key' => dirname(__FILE__) . '/../cert/channel_public_key.pem', |
||||
|
// 商户私钥 |
||||
|
'private_key' => dirname(__FILE__) . '/../cert/cus_private_key.pem', |
||||
|
|
||||
|
// 统一支付接口 测试地址 |
||||
|
'pay_url' => 'https://open.dalianpay.cn/payapi/unitorder/pay', |
||||
|
|
||||
|
// 统一扫码接口 测试地址 |
||||
|
'scan_url' => 'https://open.dalianpay.cn/payapi/unitorder/scanqrpay', |
||||
|
|
||||
|
// 交易撤销 测试地址 |
||||
|
'cancel_url' => 'https://open.dalianpay.cn/payapi/tranx/cancel', |
||||
|
|
||||
|
// 交易退款 测试地址 |
||||
|
'refund_url' => 'https://tpay.01pub.com/payapi/tranx/refund', |
||||
|
|
||||
|
// 统一查询接口 测试地址 |
||||
|
'query_url' => 'https://open.dalianpay.cn/payapi/tranx/query', |
||||
|
|
||||
|
// 订单关闭接口 测试地址 |
||||
|
'close_url' => 'https://open.dalianpay.cn/payapi/tranx/close' |
||||
|
|
||||
|
); |
||||
|
|
||||
|
?> |
||||
@ -0,0 +1,151 @@ |
|||||
|
<?php |
||||
|
|
||||
|
// 统一支付接口Demo |
||||
|
|
||||
|
// 加载基础类 |
||||
|
require_once('../library/Base.php'); |
||||
|
$Base = new Base(); |
||||
|
|
||||
|
// 获取配置信息 |
||||
|
$config = $Base->getConfig(); |
||||
|
// var_dump('<pre>', $config); |
||||
|
|
||||
|
// 接口URL(测试) |
||||
|
$api_url = $config['cancel_url']; |
||||
|
|
||||
|
// 加个body字段传中文试试 |
||||
|
|
||||
|
// 组装交易报文 |
||||
|
$reqsn_prefix = date('Ymd'); |
||||
|
$trade_data = array( |
||||
|
'orgid' => $config['org_num'], |
||||
|
'cusid' => $config['cusid'], |
||||
|
'branchno' => $config['branchno'], |
||||
|
'termcode' => $config['termcode'], |
||||
|
'version' => $config['version'], |
||||
|
'trxamt' => '1', |
||||
|
'reqsn' => uniqid($reqsn_prefix), |
||||
|
'producp' => 'JX0002', |
||||
|
'transtype' => 'JSP511', |
||||
|
'randomstr' => md5( uniqid() ), |
||||
|
// 'oldreqsn' => '2023072464be31055e0e0', |
||||
|
'oldtrxid' => '100000018608497', |
||||
|
); |
||||
|
|
||||
|
// $trade_data = array( |
||||
|
// "cusid" => "10147", |
||||
|
// "branchno" => "44", |
||||
|
// "termcode" => "000000", |
||||
|
// "version" => "11", |
||||
|
// "trxamt" => "1154634", |
||||
|
// "reqsn" => "112094120001088317", |
||||
|
// "producp" => "JX0002", |
||||
|
// "transtype" => "JSP501", |
||||
|
// "paytype" => "W01", |
||||
|
// "randomstr" => md5( uniqid() ), |
||||
|
// "body" => "", |
||||
|
// "remark" => "", |
||||
|
// "validtime" => "", |
||||
|
// "acct" => "", |
||||
|
// "notify_url" => "", |
||||
|
// "limit_pay" => "", |
||||
|
// "sub_appid" => "", |
||||
|
// "goods_tag" => "", |
||||
|
// "benefitdetail" => "", |
||||
|
// "chnlstoreid" => "", |
||||
|
// "extendparams" => "", |
||||
|
// "cusip" => "", |
||||
|
// "front_url" => "", |
||||
|
// "subbranch" => "", |
||||
|
// "idno" => "", |
||||
|
// "truename" => "", |
||||
|
// "asinfo" => "", |
||||
|
// "fqnum" => "", |
||||
|
// "unpid" => "", |
||||
|
// "terminfo" => "", |
||||
|
// // 其他参数... |
||||
|
// ); |
||||
|
|
||||
|
// $trade_data = array( |
||||
|
// "appid"=>"00000051", |
||||
|
// "cusid"=>"990581007426001", |
||||
|
// "randomstr"=>"82712208", |
||||
|
// "signtype"=>"RSA", |
||||
|
// "trxid"=>"112094120001088317", |
||||
|
// "version"=>"11", |
||||
|
// ); |
||||
|
|
||||
|
// 生成签名 |
||||
|
$sign = $Base->Crypt->makeSign($trade_data); |
||||
|
if($sign === false) |
||||
|
{ |
||||
|
echo $Base->Crypt->err_msg; |
||||
|
die(); |
||||
|
} |
||||
|
echo "\r\n"; |
||||
|
echo "[sign]: {$sign}"; |
||||
|
// die(); |
||||
|
|
||||
|
// 加密交易报文 |
||||
|
$crypted_trade_data = $Base->Crypt->encryptTradeData($trade_data); |
||||
|
if($crypted_trade_data === false) |
||||
|
{ |
||||
|
echo $Base->Crypt->err_msg; |
||||
|
die(); |
||||
|
} |
||||
|
echo "\r\n"; |
||||
|
echo "[crypted message]: {$crypted_trade_data}"; |
||||
|
// die(); |
||||
|
|
||||
|
// 发送报文 |
||||
|
echo "\r\n"; |
||||
|
var_dump($api_url); |
||||
|
$response = $Base->Request->send($api_url, $crypted_trade_data, $sign); |
||||
|
if($response === false) |
||||
|
{ |
||||
|
echo $Base->Request->err_msg; |
||||
|
die(); |
||||
|
} |
||||
|
|
||||
|
echo "\r\n"; |
||||
|
|
||||
|
echo "[response message]: {$response}"; |
||||
|
|
||||
|
// 解析响应报文 |
||||
|
$response = json_decode($response, true); |
||||
|
$response_data_crypted = $response['data']; |
||||
|
$response_sign = $response['sign']; |
||||
|
echo "\r\n"; |
||||
|
echo "[response sign]: {$response_sign}"; |
||||
|
echo "\r\n"; |
||||
|
echo "[response data (ciphertext)]: {$response_data_crypted}"; |
||||
|
|
||||
|
// 解密响应密文 |
||||
|
$response_data = $Base->Crypt->decryptTradeData($response_data_crypted); |
||||
|
if($response_data === false) |
||||
|
{ |
||||
|
echo $Base->Crypt->err_msg; |
||||
|
die(); |
||||
|
} |
||||
|
echo "\r\n"; |
||||
|
// $response_data = mb_convert_encoding($response_data, 'UTF-8', 'GBK'); |
||||
|
echo "[response data(clear text)]: {$response_data}"; |
||||
|
// die(); |
||||
|
|
||||
|
?> |
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
<!DOCTYPE html> |
||||
|
<html> |
||||
|
<head> |
||||
|
<meta charset="utf-8"> |
||||
|
<title>交易撤销Demo</title> |
||||
|
<style> |
||||
|
body{ word-break: break-word; } |
||||
|
</style> |
||||
|
</head> |
||||
|
<body></body> |
||||
|
</html> |
||||
@ -0,0 +1,99 @@ |
|||||
|
<?php |
||||
|
|
||||
|
// 统一支付接口Demo |
||||
|
|
||||
|
// 加载基础类 |
||||
|
require_once('../library/Base.php'); |
||||
|
$Base = new Base(); |
||||
|
|
||||
|
// 获取配置信息 |
||||
|
$config = $Base->getConfig(); |
||||
|
// var_dump('<pre>', $config); |
||||
|
|
||||
|
// 接口URL(测试) |
||||
|
$api_url = $config['close_url']; |
||||
|
|
||||
|
// 加个body字段传中文试试 |
||||
|
|
||||
|
// 组装交易报文 |
||||
|
$reqsn_prefix = date('Ymd'); |
||||
|
$trade_data = array( |
||||
|
'orgid' => $config['org_num'], |
||||
|
'cusid' => $config['cusid'], |
||||
|
'branchno' => $config['branchno'], |
||||
|
'termcode' => $config['termcode'], |
||||
|
'version' => $config['version'], |
||||
|
'randomstr' => md5( uniqid() ), |
||||
|
'oldtrxid' => '100000018608526', |
||||
|
); |
||||
|
|
||||
|
// 生成签名 |
||||
|
$sign = $Base->Crypt->makeSign($trade_data); |
||||
|
if($sign === false) |
||||
|
{ |
||||
|
echo $Base->Crypt->err_msg; |
||||
|
die(); |
||||
|
} |
||||
|
echo "\r\n"; |
||||
|
echo "[sign]: {$sign}"; |
||||
|
// die(); |
||||
|
|
||||
|
// 加密交易报文 |
||||
|
$crypted_trade_data = $Base->Crypt->encryptTradeData($trade_data); |
||||
|
if($crypted_trade_data === false) |
||||
|
{ |
||||
|
echo $Base->Crypt->err_msg; |
||||
|
die(); |
||||
|
} |
||||
|
echo "\r\n"; |
||||
|
echo "[crypted message]: {$crypted_trade_data}"; |
||||
|
// die(); |
||||
|
|
||||
|
// 发送报文 |
||||
|
echo "\r\n"; |
||||
|
var_dump($api_url); |
||||
|
$response = $Base->Request->send($api_url, $crypted_trade_data, $sign); |
||||
|
if($response === false) |
||||
|
{ |
||||
|
echo $Base->Request->err_msg; |
||||
|
die(); |
||||
|
} |
||||
|
|
||||
|
echo "\r\n"; |
||||
|
|
||||
|
echo "[response message]: {$response}"; |
||||
|
|
||||
|
// 解析响应报文 |
||||
|
$response = json_decode($response, true); |
||||
|
$response_data_crypted = $response['data']; |
||||
|
$response_sign = $response['sign']; |
||||
|
echo "\r\n"; |
||||
|
echo "[response sign]: {$response_sign}"; |
||||
|
echo "\r\n"; |
||||
|
echo "[response data (ciphertext)]: {$response_data_crypted}"; |
||||
|
|
||||
|
// 解密响应密文 |
||||
|
$response_data = $Base->Crypt->decryptTradeData($response_data_crypted); |
||||
|
if($response_data === false) |
||||
|
{ |
||||
|
echo $Base->Crypt->err_msg; |
||||
|
die(); |
||||
|
} |
||||
|
echo "\r\n"; |
||||
|
echo "[response data(clear text)]: {$response_data}"; |
||||
|
// die(); |
||||
|
|
||||
|
?> |
||||
|
|
||||
|
|
||||
|
<!DOCTYPE html> |
||||
|
<html> |
||||
|
<head> |
||||
|
<meta charset="utf-8"> |
||||
|
<title>订单关闭Demo</title> |
||||
|
<style> |
||||
|
body{ word-break: break-word; } |
||||
|
</style> |
||||
|
</head> |
||||
|
<body></body> |
||||
|
</html> |
||||
@ -0,0 +1,116 @@ |
|||||
|
<?php |
||||
|
|
||||
|
// 统一支付接口Demo |
||||
|
|
||||
|
// 加载基础类 |
||||
|
require_once('../library/Base.php'); |
||||
|
$Base = new Base(); |
||||
|
|
||||
|
// 获取配置信息 |
||||
|
$config = $Base->getConfig(); |
||||
|
// var_dump('<pre>', $config); |
||||
|
|
||||
|
// 接口URL(测试) |
||||
|
// $api_url = $config['pay_url']; |
||||
|
$api_url = $_POST['url']; |
||||
|
$message = array( |
||||
|
"url"=>$api_url, |
||||
|
); |
||||
|
// echo json_encode($message,true); |
||||
|
|
||||
|
|
||||
|
// 加个body字段传中文试试 |
||||
|
|
||||
|
// 组装交易报文 |
||||
|
$reqsn_prefix = date('Ymd'); |
||||
|
// var_dump("uniq_id(reqsn)"); |
||||
|
// echo "\r\n"; |
||||
|
// var_dump(uniqid($reqsn_prefix)); |
||||
|
$trade_data = array( |
||||
|
'orgid' => $config['org_num'], |
||||
|
'cusid' => $config['cusid'], |
||||
|
'branchno' => $config['branchno'], |
||||
|
'termcode' => $config['termcode'], |
||||
|
'version' => $config['version'], |
||||
|
'trxamt' => '1', |
||||
|
'reqsn' => uniqid($reqsn_prefix), |
||||
|
'producp' => 'JX0002', |
||||
|
'transtype' => 'JSP511', |
||||
|
'paytype' => 'W02', |
||||
|
'randomstr' => md5( uniqid() ), |
||||
|
'body' => 'pages' |
||||
|
); |
||||
|
|
||||
|
// 生成签名 |
||||
|
$sign = $Base->Crypt->makeSign($trade_data); |
||||
|
if($sign === false) |
||||
|
{ |
||||
|
// echo $Base->Crypt->err_msg; |
||||
|
$errorMessage = array( |
||||
|
"data"=>"makeSign error..." |
||||
|
); |
||||
|
return json_encode($errorMessage,true); |
||||
|
die(); |
||||
|
} |
||||
|
// echo "\r\n"; |
||||
|
// echo "[sign]: {$sign}"; |
||||
|
// die(); |
||||
|
|
||||
|
// 加密交易报文 |
||||
|
$crypted_trade_data = $Base->Crypt->encryptTradeData($trade_data); |
||||
|
if($crypted_trade_data === false) |
||||
|
{ |
||||
|
// echo $Base->Crypt->err_msg; |
||||
|
$errorMessage = array( |
||||
|
"data"=>"encryptTradeData error..." |
||||
|
); |
||||
|
return json_encode($errorMessage,true); |
||||
|
die(); |
||||
|
} |
||||
|
// echo "\r\n"; |
||||
|
// echo "[crypted message]: {$crypted_trade_data}"; |
||||
|
// die(); |
||||
|
|
||||
|
// 发送报文 |
||||
|
// echo "\r\n"; |
||||
|
// var_dump($api_url); |
||||
|
$response = $Base->Request->send($api_url, $crypted_trade_data, $sign); |
||||
|
if($response === false) |
||||
|
{ |
||||
|
// echo $Base->Request->err_msg; |
||||
|
$errorMessage = array( |
||||
|
"data"=>"send error..." |
||||
|
); |
||||
|
return json_encode($errorMessage,true); |
||||
|
die(); |
||||
|
} |
||||
|
// echo "\r\n"; |
||||
|
// echo "[response message]: {$response}"; |
||||
|
|
||||
|
// 解析响应报文 |
||||
|
$response = json_decode($response, true); |
||||
|
$response_data_crypted = $response['data']; |
||||
|
$response_sign = $response['sign']; |
||||
|
// echo "\r\n"; |
||||
|
// echo "[response sign]: {$response_sign}"; |
||||
|
// echo "\r\n"; |
||||
|
// echo "[response data (ciphertext)]: {$response_data_crypted}"; |
||||
|
|
||||
|
// 解密响应密文 |
||||
|
$response_data = $Base->Crypt->decryptTradeData($response_data_crypted); |
||||
|
if($response_data === false) |
||||
|
{ |
||||
|
// echo $Base->Crypt->err_msg; |
||||
|
$errorMessage = array( |
||||
|
"data"=>"decryptTradeData error..." |
||||
|
); |
||||
|
return json_encode($errorMessage,true); |
||||
|
die(); |
||||
|
} |
||||
|
// echo "\r\n"; |
||||
|
// echo "[response data(clear text)]: {$response_data}"; |
||||
|
// die(); |
||||
|
echo $response_data; |
||||
|
|
||||
|
?> |
||||
|
|
||||
@ -0,0 +1,98 @@ |
|||||
|
<?php |
||||
|
|
||||
|
// 统一支付接口Demo |
||||
|
|
||||
|
// 加载基础类 |
||||
|
require_once('../library/Base.php'); |
||||
|
$Base = new Base(); |
||||
|
|
||||
|
// 获取配置信息 |
||||
|
$config = $Base->getConfig(); |
||||
|
// var_dump('<pre>', $config); |
||||
|
|
||||
|
// 接口URL(测试) |
||||
|
$api_url = $config['query_url']; |
||||
|
|
||||
|
// 加个body字段传中文试试 |
||||
|
|
||||
|
// 组装交易报文 |
||||
|
$reqsn_prefix = date('Ymd'); |
||||
|
$trade_data = array( |
||||
|
'orgid' => $config['org_num'], |
||||
|
'cusid' => $config['cusid'], |
||||
|
'version' => $config['version'], |
||||
|
// 'reqsn' => '2023072464be320f45f2a', |
||||
|
'trxid' => '100000018608526', // 渠道交易流水号 如果返回的有 优先使用 |
||||
|
'randomstr' => md5( uniqid() ), |
||||
|
); |
||||
|
|
||||
|
// 生成签名 |
||||
|
$sign = $Base->Crypt->makeSign($trade_data); |
||||
|
if($sign === false) |
||||
|
{ |
||||
|
echo $Base->Crypt->err_msg; |
||||
|
die(); |
||||
|
} |
||||
|
echo "\r\n"; |
||||
|
echo "[sign]: {$sign}"; |
||||
|
// die(); |
||||
|
|
||||
|
// 加密交易报文 |
||||
|
$crypted_trade_data = $Base->Crypt->encryptTradeData($trade_data); |
||||
|
if($crypted_trade_data === false) |
||||
|
{ |
||||
|
echo $Base->Crypt->err_msg; |
||||
|
die(); |
||||
|
} |
||||
|
echo "\r\n"; |
||||
|
echo "[crypted message]: {$crypted_trade_data}"; |
||||
|
// die(); |
||||
|
|
||||
|
// 发送报文 |
||||
|
echo "\r\n"; |
||||
|
var_dump($api_url); |
||||
|
$response = $Base->Request->send($api_url, $crypted_trade_data, $sign); |
||||
|
if($response === false) |
||||
|
{ |
||||
|
echo $Base->Request->err_msg; |
||||
|
die(); |
||||
|
} |
||||
|
|
||||
|
echo "\r\n"; |
||||
|
|
||||
|
echo "[response message]: {$response}"; |
||||
|
|
||||
|
// 解析响应报文 |
||||
|
$response = json_decode($response, true); |
||||
|
$response_data_crypted = $response['data']; |
||||
|
$response_sign = $response['sign']; |
||||
|
echo "\r\n"; |
||||
|
echo "[response sign]: {$response_sign}"; |
||||
|
echo "\r\n"; |
||||
|
echo "[response data (ciphertext)]: {$response_data_crypted}"; |
||||
|
|
||||
|
// 解密响应密文 |
||||
|
$response_data = $Base->Crypt->decryptTradeData($response_data_crypted); |
||||
|
if($response_data === false) |
||||
|
{ |
||||
|
echo $Base->Crypt->err_msg; |
||||
|
die(); |
||||
|
} |
||||
|
echo "\r\n"; |
||||
|
echo "[response data(clear text)]: {$response_data}"; |
||||
|
// die(); |
||||
|
|
||||
|
?> |
||||
|
|
||||
|
|
||||
|
<!DOCTYPE html> |
||||
|
<html> |
||||
|
<head> |
||||
|
<meta charset="utf-8"> |
||||
|
<title>统一查询Demo</title> |
||||
|
<style> |
||||
|
body{ word-break: break-word; } |
||||
|
</style> |
||||
|
</head> |
||||
|
<body></body> |
||||
|
</html> |
||||
@ -0,0 +1,105 @@ |
|||||
|
<?php |
||||
|
|
||||
|
// 统一支付接口Demo |
||||
|
|
||||
|
// 加载基础类 |
||||
|
require_once('../library/Base.php'); |
||||
|
$Base = new Base(); |
||||
|
|
||||
|
// 获取配置信息 |
||||
|
$config = $Base->getConfig(); |
||||
|
// var_dump('<pre>', $config); |
||||
|
|
||||
|
// 接口URL(测试) |
||||
|
$api_url = $config['refund_url']; |
||||
|
|
||||
|
// 加个body字段传中文试试 |
||||
|
|
||||
|
// 组装交易报文 |
||||
|
$reqsn_prefix = date('Ymd'); |
||||
|
$trade_data = array( |
||||
|
// 'orgid' => $config['org_num'], |
||||
|
'cusid' => $config['cusid'], |
||||
|
'branchno' => $config['branchno'], |
||||
|
// 'termcode' => $config['termcode'], |
||||
|
'version' => $config['version'], |
||||
|
'trxamt' => '1', |
||||
|
'reqsn' => uniqid($reqsn_prefix), |
||||
|
'producp' => 'JX0002', |
||||
|
'transtype' => 'JSP511', |
||||
|
'randomstr' => md5( uniqid() ), |
||||
|
// 'oldreqsn' => '100000018608489', |
||||
|
'oldtrxid' => '100000018608532', |
||||
|
); |
||||
|
|
||||
|
// 生成签名 |
||||
|
$sign = $Base->Crypt->makeSign($trade_data); |
||||
|
if($sign === false) |
||||
|
{ |
||||
|
echo $Base->Crypt->err_msg; |
||||
|
die(); |
||||
|
} |
||||
|
echo "\r\n"; |
||||
|
echo "[sign]: {$sign}"; |
||||
|
// die(); |
||||
|
|
||||
|
// 加密交易报文 |
||||
|
$crypted_trade_data = $Base->Crypt->encryptTradeData($trade_data); |
||||
|
if($crypted_trade_data === false) |
||||
|
{ |
||||
|
echo $Base->Crypt->err_msg; |
||||
|
die(); |
||||
|
} |
||||
|
echo "\r\n"; |
||||
|
echo "[crypted message]: {$crypted_trade_data}"; |
||||
|
// die(); |
||||
|
|
||||
|
// 发送报文 |
||||
|
echo "\r\n"; |
||||
|
var_dump($api_url); |
||||
|
$response = $Base->Request->send($api_url, $crypted_trade_data, $sign); |
||||
|
if($response === false) |
||||
|
{ |
||||
|
echo $Base->Request->err_msg; |
||||
|
die(); |
||||
|
} |
||||
|
|
||||
|
echo "\r\n"; |
||||
|
|
||||
|
echo "[response message]: {$response}"; |
||||
|
|
||||
|
// 解析响应报文 |
||||
|
$response = json_decode($response, true); |
||||
|
$response_data_crypted = $response['data']; |
||||
|
$response_sign = $response['sign']; |
||||
|
echo "\r\n"; |
||||
|
echo "[response sign]: {$response_sign}"; |
||||
|
echo "\r\n"; |
||||
|
echo "[response data (ciphertext)]: {$response_data_crypted}"; |
||||
|
|
||||
|
// 解密响应密文 |
||||
|
$response_data = $Base->Crypt->decryptTradeData($response_data_crypted); |
||||
|
if($response_data === false) |
||||
|
{ |
||||
|
echo $Base->Crypt->err_msg; |
||||
|
die(); |
||||
|
} |
||||
|
echo "\r\n"; |
||||
|
echo "[response data(clear text)]: {$response_data}"; |
||||
|
// die(); |
||||
|
|
||||
|
?> |
||||
|
|
||||
|
|
||||
|
|
||||
|
<!DOCTYPE html> |
||||
|
<html> |
||||
|
<head> |
||||
|
<meta charset="utf-8"> |
||||
|
<title>统一扫码Demo</title> |
||||
|
<style> |
||||
|
body{ word-break: break-word; } |
||||
|
</style> |
||||
|
</head> |
||||
|
<body></body> |
||||
|
</html> |
||||
@ -0,0 +1,158 @@ |
|||||
|
<?php |
||||
|
|
||||
|
// 统一支付接口Demo |
||||
|
|
||||
|
// 加载基础类 |
||||
|
require_once('../library/Base.php'); |
||||
|
$Base = new Base(); |
||||
|
|
||||
|
// 获取配置信息 |
||||
|
$config = $Base->getConfig(); |
||||
|
// var_dump('<pre>', $config); |
||||
|
|
||||
|
// 接口URL(测试) |
||||
|
$api_url = $config['scan_url']; |
||||
|
|
||||
|
// 加个body字段传中文试试 |
||||
|
|
||||
|
// 组装交易报文 |
||||
|
$reqsn_prefix = date('Ymd'); |
||||
|
$terminfo = array( |
||||
|
"termsn"=>"dfjskljioe13238023", |
||||
|
"longitude"=>"+37.12", |
||||
|
"latitude"=>"-37.12", |
||||
|
"termno"=>"00000001", |
||||
|
"devicetype"=>"04", |
||||
|
); |
||||
|
$trade_data = array( |
||||
|
'orgid' => $config['org_num'], |
||||
|
'cusid' => $config['cusid'], |
||||
|
'branchno' => $config['branchno'], |
||||
|
'termcode' => $config['termcode'], |
||||
|
'version' => $config['version'], |
||||
|
'trxamt' => '1', |
||||
|
'reqsn' => uniqid($reqsn_prefix), |
||||
|
'producp' => 'JX0002', |
||||
|
'transtype' => 'JSP511', |
||||
|
'paytype' => 'W01', |
||||
|
'randomstr' => md5( uniqid() ), |
||||
|
'terminfo' => json_encode($terminfo), |
||||
|
'authcode' => '', |
||||
|
); |
||||
|
|
||||
|
// $trade_data = array( |
||||
|
// "cusid" => "10147", |
||||
|
// "branchno" => "44", |
||||
|
// "termcode" => "000000", |
||||
|
// "version" => "11", |
||||
|
// "trxamt" => "1154634", |
||||
|
// "reqsn" => "112094120001088317", |
||||
|
// "producp" => "JX0002", |
||||
|
// "transtype" => "JSP501", |
||||
|
// "paytype" => "W01", |
||||
|
// "randomstr" => md5( uniqid() ), |
||||
|
// "body" => "", |
||||
|
// "remark" => "", |
||||
|
// "validtime" => "", |
||||
|
// "acct" => "", |
||||
|
// "notify_url" => "", |
||||
|
// "limit_pay" => "", |
||||
|
// "sub_appid" => "", |
||||
|
// "goods_tag" => "", |
||||
|
// "benefitdetail" => "", |
||||
|
// "chnlstoreid" => "", |
||||
|
// "extendparams" => "", |
||||
|
// "cusip" => "", |
||||
|
// "front_url" => "", |
||||
|
// "subbranch" => "", |
||||
|
// "idno" => "", |
||||
|
// "truename" => "", |
||||
|
// "asinfo" => "", |
||||
|
// "fqnum" => "", |
||||
|
// "unpid" => "", |
||||
|
// "terminfo" => "", |
||||
|
// // 其他参数... |
||||
|
// ); |
||||
|
|
||||
|
// $trade_data = array( |
||||
|
// "appid"=>"00000051", |
||||
|
// "cusid"=>"990581007426001", |
||||
|
// "randomstr"=>"82712208", |
||||
|
// "signtype"=>"RSA", |
||||
|
// "trxid"=>"112094120001088317", |
||||
|
// "version"=>"11", |
||||
|
// ); |
||||
|
|
||||
|
// 生成签名 |
||||
|
$sign = $Base->Crypt->makeSign($trade_data); |
||||
|
if($sign === false) |
||||
|
{ |
||||
|
echo $Base->Crypt->err_msg; |
||||
|
die(); |
||||
|
} |
||||
|
echo "\r\n"; |
||||
|
echo "[sign]: {$sign}"; |
||||
|
// die(); |
||||
|
|
||||
|
// 加密交易报文 |
||||
|
$crypted_trade_data = $Base->Crypt->encryptTradeData($trade_data); |
||||
|
if($crypted_trade_data === false) |
||||
|
{ |
||||
|
echo $Base->Crypt->err_msg; |
||||
|
die(); |
||||
|
} |
||||
|
echo "\r\n"; |
||||
|
echo "[crypted message]: {$crypted_trade_data}"; |
||||
|
// die(); |
||||
|
|
||||
|
// 发送报文 |
||||
|
echo "\r\n"; |
||||
|
var_dump($api_url); |
||||
|
$response = $Base->Request->send($api_url, $crypted_trade_data, $sign); |
||||
|
if($response === false) |
||||
|
{ |
||||
|
echo $Base->Request->err_msg; |
||||
|
die(); |
||||
|
} |
||||
|
|
||||
|
echo "\r\n"; |
||||
|
|
||||
|
echo "[response message]: {$response}"; |
||||
|
|
||||
|
// 解析响应报文 |
||||
|
$response = json_decode($response, true); |
||||
|
$response_data_crypted = $response['data']; |
||||
|
$response_sign = $response['sign']; |
||||
|
echo "\r\n"; |
||||
|
echo "[response sign]: {$response_sign}"; |
||||
|
echo "\r\n"; |
||||
|
echo "[response data (ciphertext)]: {$response_data_crypted}"; |
||||
|
|
||||
|
// 解密响应密文 |
||||
|
$response_data = $Base->Crypt->decryptTradeData($response_data_crypted); |
||||
|
if($response_data === false) |
||||
|
{ |
||||
|
echo $Base->Crypt->err_msg; |
||||
|
die(); |
||||
|
} |
||||
|
echo "\r\n"; |
||||
|
echo "[response data(clear text)]: {$response_data}"; |
||||
|
// die(); |
||||
|
|
||||
|
?> |
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
|
||||
|
<!DOCTYPE html> |
||||
|
<html> |
||||
|
<head> |
||||
|
<meta charset="utf-8"> |
||||
|
<title>统一扫码Demo</title> |
||||
|
<style> |
||||
|
body{ word-break: break-word; } |
||||
|
</style> |
||||
|
</head> |
||||
|
<body></body> |
||||
|
</html> |
||||
@ -0,0 +1,41 @@ |
|||||
|
<?php |
||||
|
// 基础类 |
||||
|
class Base |
||||
|
{ |
||||
|
// 配置 |
||||
|
protected $config; |
||||
|
// 加解密类 |
||||
|
public $Crypt; |
||||
|
// 请求类 |
||||
|
public $Request; |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* 构造函数 |
||||
|
*/ |
||||
|
public function __construct() |
||||
|
{ |
||||
|
|
||||
|
// 读取配置 |
||||
|
$this->config = require_once('../config/config.php'); |
||||
|
// 实例化加解密类 |
||||
|
require_once('Crypt.php'); |
||||
|
$this->Crypt = new Crypt($this->config); |
||||
|
// 实例化请求类 |
||||
|
require_once('Request.php'); |
||||
|
$this->Request = new Request($this->config); |
||||
|
} |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* 获取配置信息 |
||||
|
* @return array |
||||
|
*/ |
||||
|
public function getConfig() |
||||
|
{ |
||||
|
return $this->config; |
||||
|
} |
||||
|
|
||||
|
|
||||
|
} |
||||
|
?> |
||||
@ -0,0 +1,220 @@ |
|||||
|
<?php |
||||
|
class Crypt |
||||
|
{ |
||||
|
// 配置 |
||||
|
public $config; |
||||
|
// 错误信息 |
||||
|
public $err_msg = ''; |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* 构造函数 |
||||
|
*/ |
||||
|
public function __construct(array $config) |
||||
|
{ |
||||
|
$this->config = $config; |
||||
|
} |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* 数据校验 |
||||
|
* @param array $data 待校验数据 |
||||
|
* @return bool |
||||
|
*/ |
||||
|
private function checkData(array $data) |
||||
|
{ |
||||
|
// 非空校验 |
||||
|
if( count($data) == 0 ) |
||||
|
{ |
||||
|
$this->err_msg = '待签名数据为空'; |
||||
|
return false; |
||||
|
} |
||||
|
// 一维数组校验 |
||||
|
if( count($data) != count($data, 1) ) |
||||
|
{ |
||||
|
$this->err_msg = '待签名数据不能是多维数组'; |
||||
|
return false; |
||||
|
} |
||||
|
|
||||
|
return true; |
||||
|
} |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* 生成签名 |
||||
|
* @param array $data 待签名数据 |
||||
|
* @return bool|string |
||||
|
*/ |
||||
|
public function makeSign(array $data) |
||||
|
{ |
||||
|
// 数据校验 |
||||
|
$check_data = $this->checkData($data); |
||||
|
if($check_data === false) |
||||
|
{ |
||||
|
return false; |
||||
|
} |
||||
|
|
||||
|
// 升序排列 |
||||
|
ksort($data); |
||||
|
// 转字符串 |
||||
|
$pre_sign_str = http_build_query($data); |
||||
|
// echo "[pre_sign_str(jiao yi message)]: {$pre_sign_str}"; |
||||
|
// die(); |
||||
|
|
||||
|
// 读取私钥 |
||||
|
$private_key = file_get_contents($this->config['private_key']); |
||||
|
$private_key = openssl_pkey_get_private($private_key); |
||||
|
|
||||
|
// 私钥签名 |
||||
|
$res = openssl_sign($pre_sign_str, $sign, $private_key); |
||||
|
if($res === false) |
||||
|
{ |
||||
|
$this->err_msg = openssl_error_string(); |
||||
|
return false; |
||||
|
} |
||||
|
// 签名转Base64 |
||||
|
$sign = base64_encode($sign); |
||||
|
|
||||
|
return $sign; |
||||
|
} |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* 校验签名 |
||||
|
* @param array $data 待校验数据 |
||||
|
* @param string $sign 签名 |
||||
|
* @return bool |
||||
|
*/ |
||||
|
public function checkSign(array $data, string $sign) |
||||
|
{ |
||||
|
// 数据校验 |
||||
|
$check_data = $this->checkData($data); |
||||
|
if($check_data === false) |
||||
|
{ |
||||
|
return false; |
||||
|
} |
||||
|
|
||||
|
// 签名转二进制 |
||||
|
$sign = base64_decode($sign); |
||||
|
|
||||
|
// 升序排列 |
||||
|
ksort($data); |
||||
|
// 转字符串 |
||||
|
$pre_sign_str = http_build_query($data); |
||||
|
$pre_sign_str = urldecode($pre_sign_str); |
||||
|
// echo "[pre sign str]: {$pre_sign_str}"; |
||||
|
// die(); |
||||
|
|
||||
|
// 读取公钥 |
||||
|
$public_key = file_get_contents($this->config['public_key']); |
||||
|
$public_key = openssl_pkey_get_public($public_key); |
||||
|
|
||||
|
// 公钥验签 |
||||
|
$res = openssl_verify($pre_sign_str, $sign, $public_key); |
||||
|
if($res === false) |
||||
|
{ |
||||
|
$this->err_msg = openssl_error_string(); |
||||
|
return false; |
||||
|
} |
||||
|
|
||||
|
return $res; |
||||
|
} |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* 加密交易报文 |
||||
|
* @param array $data 待签名数据 |
||||
|
* @return bool|string |
||||
|
*/ |
||||
|
public function encryptTradeData(array $data) |
||||
|
{ |
||||
|
// 数据校验 |
||||
|
$check_data = $this->checkData($data); |
||||
|
if($check_data === false) |
||||
|
{ |
||||
|
return false; |
||||
|
} |
||||
|
|
||||
|
// 读取公钥 |
||||
|
$public_key = file_get_contents($this->config['public_key']); |
||||
|
$public_key = openssl_pkey_get_public($public_key); |
||||
|
// 公钥长度(bit) |
||||
|
$public_key_info = openssl_pkey_get_details($public_key); |
||||
|
$public_key_bit = $public_key_info['bits']; |
||||
|
// 数据长度(数据长度=密钥字节数-11,11为OPENSSL_PKCS1_PADDING的填充长度) |
||||
|
$data_length = $public_key_bit / 8 - 11; |
||||
|
|
||||
|
// 待加密数据转json |
||||
|
$pre_encrypt_data = json_encode($data, JSON_UNESCAPED_UNICODE|JSON_UNESCAPED_SLASHES); |
||||
|
// 按密钥长度拆分数据 |
||||
|
$pre_encrypt_data_arr = str_split($pre_encrypt_data, $data_length); |
||||
|
// 分段公钥加密 |
||||
|
$crypted_data = ''; |
||||
|
foreach($pre_encrypt_data_arr as $key=>$val) |
||||
|
{ |
||||
|
$res = openssl_public_encrypt($val, $crypted_data_tmp, $public_key, OPENSSL_PKCS1_PADDING); |
||||
|
if($res === false) |
||||
|
{ |
||||
|
$this->err_msg = openssl_error_string(); |
||||
|
return false; |
||||
|
} |
||||
|
$crypted_data .= $crypted_data_tmp; |
||||
|
} |
||||
|
// 加密结果转Base64 |
||||
|
$crypted_data = base64_encode($crypted_data); |
||||
|
|
||||
|
return $crypted_data; |
||||
|
} |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* 解密交易报文 |
||||
|
* @param string $data 加密的交易报文 |
||||
|
* @return bool|array |
||||
|
*/ |
||||
|
public function decryptTradeData($data) |
||||
|
{ |
||||
|
// 加密数据转二进制 |
||||
|
$pre_decrypt_data = base64_decode($data); |
||||
|
|
||||
|
// 读取私钥 |
||||
|
$private_key = file_get_contents($this->config['private_key']); |
||||
|
$private_key = openssl_pkey_get_private($private_key); |
||||
|
// 私钥长度(bit) |
||||
|
$private_key_info = openssl_pkey_get_details($private_key); |
||||
|
$private_key_bit = $private_key_info['bits']; |
||||
|
// 数据长度(数据长度=密钥字节数,解密时无需考虑OPENSSL_PKCS1_PADDING的填充占位) |
||||
|
$data_length = $private_key_bit / 8; |
||||
|
|
||||
|
// 按密钥长度拆分数据 |
||||
|
$pre_decrypt_data_arr = str_split($pre_decrypt_data, $data_length); |
||||
|
// 分段私钥解密 |
||||
|
$decrypted_data = ''; |
||||
|
foreach($pre_decrypt_data_arr as $key=>$val) |
||||
|
{ |
||||
|
$res = openssl_private_decrypt($val, $decrypted_data_tmp, $private_key, OPENSSL_PKCS1_PADDING); |
||||
|
if($res === false) |
||||
|
{ |
||||
|
$this->err_msg = openssl_error_string(); |
||||
|
return false; |
||||
|
} |
||||
|
$decrypted_data .= $decrypted_data_tmp; |
||||
|
} |
||||
|
// 解密结果编码转换(JAVA处理后的中文一般为GBK编码) |
||||
|
// echo "\r\n"; |
||||
|
// var_dump($decrypted_data); |
||||
|
$charset = mb_detect_encoding($decrypted_data); // 这个东西有点问题 解析出来是false 先不用了 |
||||
|
// echo "\r\n"; |
||||
|
// var_dump($charset); |
||||
|
// echo "\r\n"; |
||||
|
|
||||
|
$decrypted_data = mb_convert_encoding($decrypted_data, 'UTF-8', 'GBK'); |
||||
|
// echo "\r\n"; |
||||
|
// var_dump($decrypted_data); |
||||
|
return $decrypted_data; |
||||
|
} |
||||
|
|
||||
|
|
||||
|
} |
||||
|
|
||||
|
?> |
||||
@ -0,0 +1,156 @@ |
|||||
|
<?php |
||||
|
class Request |
||||
|
{ |
||||
|
// 配置 |
||||
|
public $config; |
||||
|
// 错误信息 |
||||
|
public $err_msg = ''; |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* 构造函数 |
||||
|
*/ |
||||
|
public function __construct(array $config) |
||||
|
{ |
||||
|
$this->config = $config; |
||||
|
} |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* 发送curl请求 |
||||
|
* @param string $url 要请求的URL |
||||
|
* @param string $method 请求方法[get|post] |
||||
|
* @param string|array $post_data 请求数据,模拟表单提交时为Array,提交JSON数据时为String |
||||
|
* @param string $data_type 数据类型[form|file|json|xml] |
||||
|
*/ |
||||
|
private function curlRequest($url, $method, $post_data='', $data_type='form') |
||||
|
{ |
||||
|
$ch = curl_init(); |
||||
|
curl_setopt($ch, CURLOPT_URL, $url); |
||||
|
// 请求端口,SSL为443 |
||||
|
curl_setopt($ch, CURLOPT_PORT, 443); |
||||
|
// 为项目内调用设置专用的UA |
||||
|
curl_setopt($ch, CURLOPT_USERAGENT, 'Intract cURL'); |
||||
|
// 设置为不自动输出 |
||||
|
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); |
||||
|
// 不输出头部 |
||||
|
curl_setopt($ch, CURLOPT_HEADER, false); |
||||
|
// 跳过证书检查 |
||||
|
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); |
||||
|
|
||||
|
// 不从证书中检查SSL加密算法是否存在 |
||||
|
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false); |
||||
|
// // 设定SSL版本,1-3切换 |
||||
|
// curl_setopt($ch, CURLOPT_SSLVERSION, 1); |
||||
|
|
||||
|
// 根据$data_type,选择不同的HTTP Header |
||||
|
$data_type = strtolower($data_type); |
||||
|
// echo curl_errno($ch); |
||||
|
switch($data_type) |
||||
|
{ |
||||
|
case 'form': |
||||
|
$header = 'application/x-www-form-urlencoded'; |
||||
|
break; |
||||
|
case 'file': |
||||
|
$header = 'multipart/form-data'; |
||||
|
break; |
||||
|
case 'json': |
||||
|
$header = 'application/json'; |
||||
|
break; |
||||
|
case 'xml': |
||||
|
$header = 'text/xml'; |
||||
|
break; |
||||
|
default: |
||||
|
// 默认为form |
||||
|
$header = 'application/x-www-form-urlencoded'; |
||||
|
} |
||||
|
$header = array( |
||||
|
'Content-type: ' . $header, |
||||
|
'Content-length: ' . strlen($post_data) |
||||
|
); |
||||
|
// 根据不同的提交方式,设置头部和数据 |
||||
|
$method = strtolower($method); |
||||
|
switch($method) |
||||
|
{ |
||||
|
case 'get': |
||||
|
break; |
||||
|
case 'post': |
||||
|
// 设置头部 |
||||
|
curl_setopt($ch, CURLOPT_HTTPHEADER, $header); |
||||
|
// 设置POST提交 |
||||
|
curl_setopt($ch, CURLOPT_POST, true); |
||||
|
// 设置POST数据 |
||||
|
curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data); |
||||
|
break; |
||||
|
default: |
||||
|
; |
||||
|
} |
||||
|
// 执行请求 |
||||
|
$response = curl_exec($ch); |
||||
|
// 返回数据 |
||||
|
$res = array( |
||||
|
'status' => 0, |
||||
|
'err_msg' => '', |
||||
|
'http_code' => curl_getinfo($ch, CURLINFO_HTTP_CODE), |
||||
|
'data' => null |
||||
|
); |
||||
|
if($response === false) |
||||
|
{ |
||||
|
$res['err_msg'] = curl_error($ch); |
||||
|
} |
||||
|
else |
||||
|
{ |
||||
|
$res['status'] = 1; |
||||
|
$res['data'] = $response; |
||||
|
} |
||||
|
// 关闭连接 |
||||
|
curl_close($ch); |
||||
|
|
||||
|
return $res; |
||||
|
} |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* 发送报文 |
||||
|
* @param string $url 接口URL |
||||
|
* @param string $data 加密后的数据 |
||||
|
* @param string $sign 交易报文签名 |
||||
|
* @return bool|string 成功时返回JSON字符串 |
||||
|
*/ |
||||
|
public function send($url, $data, $sign) |
||||
|
{ |
||||
|
// var_dump(gettype($url)); |
||||
|
// echo "\r\n"; |
||||
|
// if (!($url instanceof string)) |
||||
|
// { |
||||
|
// var_dump("url is not a string"); |
||||
|
// return false; |
||||
|
// } |
||||
|
// 组装通用参数 |
||||
|
$post_data = array( |
||||
|
'data' => $data, |
||||
|
// 'data' => urlencode($data), |
||||
|
'orgid' => $this->config['org_num'], |
||||
|
'signtype' => $this->config['signtype'], |
||||
|
'sign' => $sign, |
||||
|
// 'sign' => urlencode($sign), |
||||
|
); |
||||
|
$post_data = json_encode($post_data); |
||||
|
// echo "\r\n"; |
||||
|
// echo "[send message]: {$post_data}"; |
||||
|
|
||||
|
// 发送请求 |
||||
|
$send_res = $this->curlRequest($url, 'post', $post_data, 'json'); |
||||
|
if($send_res['status'] !== 1) |
||||
|
{ |
||||
|
$this->err_msg = $send_res['err_msg'] . '(HTTP Code: ' . $send_res['http_code'] . ')'; |
||||
|
return false; |
||||
|
} |
||||
|
|
||||
|
return $send_res['data']; |
||||
|
} |
||||
|
|
||||
|
|
||||
|
} |
||||
|
|
||||
|
?> |
||||
@ -0,0 +1,24 @@ |
|||||
|
<?php |
||||
|
// 获取access_token和openid |
||||
|
$appid = "wx79343915f99167e6"; |
||||
|
$appsecret = "f2f72c5e0ac29c2373bfaf22cf059c02"; |
||||
|
$redirect_uri = "http://192.168.50.21/mobile/test_get_openid.php"; |
||||
|
|
||||
|
|
||||
|
$url = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=$appid&redirect_uri=urlencode($redirect_uri)&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect"; |
||||
|
|
||||
|
// $url = "https://api.weixin.qq.com/sns/oauth2/access_token?appid=$appid&secret=$appsecret&code=".$_GET['code']."&grant_type=authorization_code"; |
||||
|
$result = file_get_contents($url); |
||||
|
|
||||
|
echo json_encode($result); |
||||
|
|
||||
|
// $obj = json_decode($result); |
||||
|
// $access_token = $obj->access_token; |
||||
|
// $openid = $obj->openid; |
||||
|
|
||||
|
// $message = array( |
||||
|
// "openid"=>$openid, |
||||
|
// "access_token"=>$access_token |
||||
|
// ); |
||||
|
// echo json_encode($message); |
||||
|
?> |
||||
@ -0,0 +1,59 @@ |
|||||
|
<?php |
||||
|
// 配置参数 |
||||
|
$app_id = 'wx79343915f99167e6'; |
||||
|
$app_secret = 'f2f72c5e0ac29c2373bfaf22cf059c02'; |
||||
|
$redirect_uri = 'http://192.168.50.21/mobile/testauth.php'; // 授权后跳转的回调地址 |
||||
|
|
||||
|
// 处理授权请求 |
||||
|
if (isset($_GET['auth'])) { |
||||
|
// 获取授权 code |
||||
|
$url = 'https://open.weixin.qq.com/connect/oauth2/authorize?appid=' . $app_id . '&redirect_uri=' . urlencode($redirect_uri) . '&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect'; |
||||
|
header('Location: ' . $url); |
||||
|
exit; |
||||
|
} |
||||
|
|
||||
|
// 获取 access_token 和 openid |
||||
|
if (isset($_GET['code'])) { |
||||
|
$code = $_GET['code']; |
||||
|
$url = 'https://api.weixin.qq.com/sns/oauth2/access_token?appid=' . $app_id . '&secret=' . $app_secret . '&code=' . $code . '&grant_type=authorization_code'; |
||||
|
$response = file_get_contents($url); |
||||
|
$data = json_decode($response, true); |
||||
|
if (!$data || !isset($data['access_token']) || !isset($data['openid'])) { |
||||
|
// 授权失败 |
||||
|
echo '授权失败,请重试'; |
||||
|
exit; |
||||
|
} |
||||
|
|
||||
|
// 获取用户信息 |
||||
|
$access_token = $data['access_token']; |
||||
|
$openid = $data['openid']; |
||||
|
$url = 'https://api.weixin.qq.com/sns/userinfo?access_token=' . $access_token . '&openid=' . $openid . '&lang=zh_CN'; |
||||
|
$response = file_get_contents($url); |
||||
|
$userinfo = json_decode($response, true); |
||||
|
if (!$userinfo || !isset($userinfo['openid'])) { |
||||
|
// 获取用户信息失败 |
||||
|
echo '获取用户信息失败,请重试'; |
||||
|
exit; |
||||
|
} |
||||
|
|
||||
|
// 用户授权成功,这里可以将用户信息保存到数据库中,或者进行其他操作 |
||||
|
var_dump($userinfo); |
||||
|
exit; |
||||
|
} |
||||
|
?> |
||||
|
|
||||
|
<!DOCTYPE html> |
||||
|
<html> |
||||
|
<head> |
||||
|
<meta charset="utf-8"> |
||||
|
<title>测试页面</title> |
||||
|
</head> |
||||
|
<body> |
||||
|
<button onclick="auth()">授权</button> |
||||
|
<script> |
||||
|
function auth() { |
||||
|
window.location.href = '?auth=1'; |
||||
|
} |
||||
|
</script> |
||||
|
</body> |
||||
|
</html> |
||||
@ -0,0 +1,84 @@ |
|||||
|
<!DOCTYPE html> |
||||
|
<html> |
||||
|
<head> |
||||
|
<title>JS SDK</title> |
||||
|
<!-- 引入微信JS SDK --> |
||||
|
<script src="https://res.wx.qq.com/open/js/jweixin-1.6.0.js"></script> |
||||
|
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script> |
||||
|
</head> |
||||
|
<body> |
||||
|
|
||||
|
<?php |
||||
|
function get_jsapi_ticket() { |
||||
|
$access_token = get_access_token(); // 获取access_token |
||||
|
$url = "https://api.weixin.qq.com/cgi-bin/ticket/getticket?type=jsapi&access_token=".$access_token; |
||||
|
$result = file_get_contents($url); |
||||
|
$obj = json_decode($result); |
||||
|
return $obj->ticket; |
||||
|
} |
||||
|
|
||||
|
// 获取access_token |
||||
|
function get_access_token() { |
||||
|
$appid = 'wxebc3cb2a62b1eaf2'; |
||||
|
$appsecret = 'd18b00b601c71a275a19e6a4e922a412'; |
||||
|
$url = "https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=".$appid."&secret=".$appsecret; |
||||
|
$result = file_get_contents($url); |
||||
|
$obj = json_decode($result); |
||||
|
return $obj->access_token; |
||||
|
} |
||||
|
// 获取当前页面URL |
||||
|
function get_current_url() { |
||||
|
$protocol = isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off' ? 'https://' : 'http://'; |
||||
|
$url = $protocol.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']; |
||||
|
return $url; |
||||
|
} |
||||
|
|
||||
|
// 生成签名 |
||||
|
function get_signature($jsapi_ticket, $nonceStr, $timestamp, $url) { |
||||
|
$string = "jsapi_ticket=".$jsapi_ticket."&noncestr=".$nonceStr."×tamp=".$timestamp."&url=".$url; |
||||
|
return sha1($string); |
||||
|
} |
||||
|
// 设置JS-SDK配置参数 |
||||
|
$jsapi_ticket = get_jsapi_ticket(); // 获取jsapi_ticket |
||||
|
$nonceStr = "sdafsrtyw8u"; // 生成随机字符串 |
||||
|
$timestamp = time(); // 获取时间戳 |
||||
|
$url = get_current_url(); // 获取当前页面URL |
||||
|
$signature = get_signature($jsapi_ticket, $nonceStr, $timestamp, $url); // 获取签名 |
||||
|
$config = array( |
||||
|
'appId' => 'wxebc3cb2a62b1eaf2', |
||||
|
'timestamp' => $timestamp, |
||||
|
'nonceStr' => $nonceStr, |
||||
|
'signature' => $signature, |
||||
|
'jsApiList' => array('chooseWXPay', 'otherApiName'), |
||||
|
); |
||||
|
// 初始化JS-SDK |
||||
|
echo '<script type="text/javascript">'; |
||||
|
echo 'wx.config('.json_encode($config).');'; |
||||
|
echo '</script>'; |
||||
|
|
||||
|
?> |
||||
|
<script> |
||||
|
wx.login({ |
||||
|
success: function(res) { |
||||
|
if (res.code) { |
||||
|
// 发送code到后端服务器获取openid |
||||
|
$.ajax({ |
||||
|
url: 'test_get_openid.php', |
||||
|
data: {code: res.code}, |
||||
|
success: function(data) { |
||||
|
// 获取用户openid并处理支付请求 |
||||
|
var openid = data.openid; |
||||
|
console.log(openid); |
||||
|
// ... |
||||
|
}, |
||||
|
error: function(jqXHR, textStatus, errorThrown) { |
||||
|
console.error('Error:', errorThrown); |
||||
|
// 处理错误 |
||||
|
} |
||||
|
}); |
||||
|
} |
||||
|
} |
||||
|
}); |
||||
|
</script> |
||||
|
</body> |
||||
|
</html> |
||||
@ -0,0 +1,89 @@ |
|||||
|
<!DOCTYPE html> |
||||
|
<html> |
||||
|
<head> |
||||
|
<title>JS SDK</title> |
||||
|
</head> |
||||
|
<body> |
||||
|
|
||||
|
<?php |
||||
|
function get_jsapi_ticket() { |
||||
|
$access_token = get_access_token(); // 获取access_token |
||||
|
$url = "https://api.weixin.qq.com/cgi-bin/ticket/getticket?type=jsapi&access_token=".$access_token; |
||||
|
$result = file_get_contents($url); |
||||
|
$obj = json_decode($result); |
||||
|
return $obj->ticket; |
||||
|
} |
||||
|
|
||||
|
// 获取access_token |
||||
|
function get_access_token() { |
||||
|
$appid = 'wx79343915f99167e6'; |
||||
|
$appsecret = 'f2f72c5e0ac29c2373bfaf22cf059c02'; |
||||
|
$url = "https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=".$appid."&secret=".$appsecret; |
||||
|
$result = file_get_contents($url); |
||||
|
$obj = json_decode($result); |
||||
|
return $obj->access_token; |
||||
|
} |
||||
|
// 获取当前页面URL |
||||
|
function get_current_url() { |
||||
|
$protocol = isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off' ? 'https://' : 'http://'; |
||||
|
$url = $protocol.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']; |
||||
|
return $url; |
||||
|
} |
||||
|
|
||||
|
// 生成签名 |
||||
|
function get_signature($jsapi_ticket, $nonceStr, $timestamp, $url) { |
||||
|
$string = "jsapi_ticket=".$jsapi_ticket."&noncestr=".$nonceStr."×tamp=".$timestamp."&url=".$url; |
||||
|
return sha1($string); |
||||
|
} |
||||
|
// 设置JS-SDK配置参数 |
||||
|
$jsapi_ticket = get_jsapi_ticket(); // 获取jsapi_ticket |
||||
|
$nonceStr = "sdafsrtyw8u"; // 生成随机字符串 |
||||
|
$timestamp = time(); // 获取时间戳 |
||||
|
$url = get_current_url(); // 获取当前页面URL |
||||
|
$signature = get_signature($jsapi_ticket, $nonceStr, $timestamp, $url); // 获取签名 |
||||
|
$config = array( |
||||
|
'appId' => 'wx79343915f99167e6', |
||||
|
'timestamp' => $timestamp, |
||||
|
'nonceStr' => $nonceStr, |
||||
|
'signature' => $signature, |
||||
|
'jsApiList' => array('chooseWXPay'), |
||||
|
); |
||||
|
// 初始化JS-SDK |
||||
|
echo '<script type="text/javascript">'; |
||||
|
echo 'wx.config('.json_encode($config).');'; |
||||
|
echo '</script>'; |
||||
|
|
||||
|
?> |
||||
|
<!-- 引入微信JS SDK --> |
||||
|
<script type="text/javascript"> |
||||
|
define = null; |
||||
|
require = null; |
||||
|
<script src="https://res.wx.qq.com/open/js/jweixin-1.6.0.js"></script> |
||||
|
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script> |
||||
|
// <script src="http://res.wx.qq.com/connect/zh_CN/htmledition/js/wxLogin.js"></script> |
||||
|
// <script src="https://res.wx.qq.com/connect/zh_CN/htmledition/js/wxLogin.js"></script> |
||||
|
<script> |
||||
|
wx.login({ |
||||
|
success: function(res) { |
||||
|
if (res.code) { |
||||
|
// 发送code到后端服务器获取openid |
||||
|
$.ajax({ |
||||
|
url: 'test_get_openid.php', |
||||
|
data: {code: res.code}, |
||||
|
success: function(data) { |
||||
|
// 获取用户openid并处理支付请求 |
||||
|
var openid = data.openid; |
||||
|
console.log(openid); |
||||
|
// ... |
||||
|
}, |
||||
|
error: function(jqXHR, textStatus, errorThrown) { |
||||
|
console.error('Error:', errorThrown); |
||||
|
|
||||
|
} |
||||
|
}); |
||||
|
} |
||||
|
} |
||||
|
}); |
||||
|
</script> |
||||
|
</body> |
||||
|
</html> |
||||
@ -0,0 +1,64 @@ |
|||||
|
<?php |
||||
|
// require_once 'vendor/autoload.php'; // 导入Guzzle库 |
||||
|
|
||||
|
// 设置应用信息 |
||||
|
$appid = 'wx79343915f99167e6'; |
||||
|
$appsecret = 'f2f72c5e0ac29c2373bfaf22cf059c02'; |
||||
|
$redirect_uri = 'http://192.168.50.21/mobile/testsc2.php'; // 回调URL |
||||
|
|
||||
|
// 构造授权链接 |
||||
|
$auth_url = 'https://open.weixin.qq.com/connect/oauth2/authorize' |
||||
|
. '?appid=' . urlencode($appid) |
||||
|
. '&redirect_uri=' . urlencode($redirect_uri) |
||||
|
. '&response_type=code' |
||||
|
. '&scope=snsapi_base' // snsapi_base 只获取openid,snsapi_userinfo 获取用户信息 |
||||
|
. '&state=STATE'; // wechat_redirect |
||||
|
|
||||
|
// 如果用户已经授权,则重定向到回调URL,并获取用户的openid |
||||
|
if (isset($_GET['code'])) { |
||||
|
$code = $_GET['code']; |
||||
|
|
||||
|
// 构造获取access_token的URL |
||||
|
$token_url = 'https://api.weixin.qq.com/sns/oauth2/access_token' |
||||
|
. '?appid=' . urlencode($appid) |
||||
|
. '&secret=' . urlencode($appsecret) |
||||
|
. '&code=' . urlencode($code) |
||||
|
. '&grant_type=authorization_code'; |
||||
|
|
||||
|
// 发送HTTP请求获取access_token |
||||
|
|
||||
|
// 创建一个cURL句柄 |
||||
|
$ch = curl_init(); |
||||
|
|
||||
|
// 设置请求的URL和其他选项 |
||||
|
curl_setopt($ch, CURLOPT_URL, $token_url); |
||||
|
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); |
||||
|
|
||||
|
// 发送HTTP GET请求并获取响应 |
||||
|
$response = curl_exec($ch); |
||||
|
|
||||
|
// 检查是否有错误发生 |
||||
|
if(curl_errno($ch)) { |
||||
|
echo 'cURL Error: ' . curl_error($ch); |
||||
|
} |
||||
|
|
||||
|
// 关闭cURL句柄 |
||||
|
curl_close($ch); |
||||
|
|
||||
|
// 输出响应 |
||||
|
echo $response; |
||||
|
|
||||
|
|
||||
|
// $client = new \GuzzleHttp\Client(); |
||||
|
// $response = $client->request('GET', $token_url); |
||||
|
// $result = json_decode($response->getBody(), true); |
||||
|
// $openid = $result['openid']; |
||||
|
|
||||
|
// // 在这里处理获取到的openid |
||||
|
// echo $openid; |
||||
|
} else { |
||||
|
// 如果没有授权,则重定向到授权页面 |
||||
|
header('Location: ' . $auth_url); |
||||
|
exit(); |
||||
|
} |
||||
|
?> |
||||
@ -0,0 +1 @@ |
|||||
|
|
||||
File diff suppressed because it is too large
File diff suppressed because it is too large
@ -0,0 +1,8 @@ |
|||||
|
<?php |
||||
|
$k = array ( |
||||
|
'name' => 'ads', |
||||
|
'id' => $this->_var['ads_id'], |
||||
|
'num' => $this->_var['ads_num'], |
||||
|
); |
||||
|
echo $this->_echash . $k['name'] . '|' . serialize($k) . $this->_echash; |
||||
|
?> |
||||
@ -0,0 +1,53 @@ |
|||||
|
|
||||
|
<?php if ($this->_var['favourable_list']): ?> |
||||
|
<div class="ncc-title" style="height:25px; border:0px;"> |
||||
|
<h3 style="font-size:18px;"><?php echo $this->_var['lang']['label_favourable']; ?></h3> |
||||
|
</div> |
||||
|
<?php $_from = $this->_var['favourable_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'favourable');if (count($_from)): |
||||
|
foreach ($_from AS $this->_var['favourable']): |
||||
|
?> |
||||
|
<form action="flow.php" method="post"> |
||||
|
<table width="99%" class="ncc-table-style" align="center" border="0" cellpadding="5" cellspacing="1" bgcolor="#dddddd"> |
||||
|
<tr> |
||||
|
<td align="right" bgcolor="#ffffff"><?php echo $this->_var['lang']['favourable_name']; ?></td> |
||||
|
<td bgcolor="#ffffff" style="text-align:left;"><strong><?php echo $this->_var['favourable']['act_name']; ?></strong></td> |
||||
|
</tr> |
||||
|
<tr> |
||||
|
<td align="right" bgcolor="#ffffff"><?php echo $this->_var['lang']['favourable_period']; ?></td> |
||||
|
<td bgcolor="#ffffff" style="text-align:left;"><?php echo $this->_var['favourable']['start_time']; ?> --- <?php echo $this->_var['favourable']['end_time']; ?></td> |
||||
|
</tr> |
||||
|
<tr> |
||||
|
<td align="right" bgcolor="#ffffff"><?php echo $this->_var['lang']['favourable_range']; ?></td> |
||||
|
<td bgcolor="#ffffff" style="text-align:left;"><?php echo $this->_var['lang']['far_ext'][$this->_var['favourable']['act_range']]; ?><br /> |
||||
|
<?php echo $this->_var['favourable']['act_range_desc']; ?></td> |
||||
|
</tr> |
||||
|
<tr> |
||||
|
<td align="right" bgcolor="#ffffff"><?php echo $this->_var['lang']['favourable_amount']; ?></td> |
||||
|
<td bgcolor="#ffffff" style="text-align:left;"><?php echo $this->_var['favourable']['formated_min_amount']; ?> --- <?php echo $this->_var['favourable']['formated_max_amount']; ?></td> |
||||
|
</tr> |
||||
|
<tr> |
||||
|
<td align="right" bgcolor="#ffffff"><?php echo $this->_var['lang']['favourable_type']; ?></td> |
||||
|
<td bgcolor="#ffffff" style="text-align:left;"> |
||||
|
<span class="STYLE1 fl clearfix"><?php echo $this->_var['favourable']['act_type_desc']; ?></span> |
||||
|
<?php if ($this->_var['favourable']['act_type'] == 0): ?> |
||||
|
<?php $_from = $this->_var['favourable']['gift']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'gift');if (count($_from)): |
||||
|
foreach ($_from AS $this->_var['gift']): |
||||
|
?> |
||||
|
<span style="padding-top:5px; clear:both;" class="fl clearfix"><input type="checkbox" value="<?php echo $this->_var['gift']['id']; ?>" name="gift[]" /> |
||||
|
<a href="goods.php?id=<?php echo $this->_var['gift']['id']; ?>" target="_blank" class="f6" style="color:#d93600"><?php echo $this->_var['gift']['name']; ?></a> [<?php echo $this->_var['gift']['formated_price']; ?>] |
||||
|
</span> |
||||
|
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?> |
||||
|
<?php endif; ?> </td> |
||||
|
</tr> |
||||
|
<?php if ($this->_var['favourable']['available']): ?> |
||||
|
<tr> |
||||
|
<td align="right" bgcolor="#ffffff"> </td> |
||||
|
<td align="center" bgcolor="#ffffff"><input type="image" alt="" border="0" class="addto_cart" value="" /></td> |
||||
|
</tr> |
||||
|
<?php endif; ?> |
||||
|
</table> |
||||
|
<input type="hidden" name="act_id" value="<?php echo $this->_var['favourable']['act_id']; ?>" /> |
||||
|
<input type="hidden" name="step" value="add_favourable" /> |
||||
|
</form> |
||||
|
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?> |
||||
|
<?php endif; ?> |
||||
@ -0,0 +1,86 @@ |
|||||
|
|
||||
|
<div id="dialog_remove" class="hide"> |
||||
|
<div class="tip-box icon-box"> |
||||
|
<span class="warn-icon m-icon"></span> |
||||
|
<div class="item-fore"> |
||||
|
<h3 class="ftx-04">删除商品?</h3> |
||||
|
<div class="ftx-03">您可以选择移到收藏,或删除商品。</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
<div id="dialog_collect" class="hide"> |
||||
|
<div class="tip-box icon-box"> |
||||
|
<span class="warn-icon m-icon"></span> |
||||
|
<div class="item-fore"> |
||||
|
<h3 class="ftx-04">移到收藏</h3> |
||||
|
<div class="ftx-03">移动后选中商品将不在购物车中显示。</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
|
||||
|
|
||||
|
<div id="set_default" class="hide"> |
||||
|
<div class="tip-box icon-box"> |
||||
|
<span class="warn-icon m-icon"></span> |
||||
|
<div class="item-fore"> |
||||
|
<h3 class="ftx-04">您确定要设置为默认收货地址吗?</h3> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
<div id="del_address" class="hide"> |
||||
|
<div class="tip-box icon-box"> |
||||
|
<span class="warn-icon m-icon"></span> |
||||
|
<div class="item-fore"> |
||||
|
<h3 class="ftx-04">您确定要删除该收货地址吗?</h3> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
<div id="no_address_cart" class="hide"> |
||||
|
<div class="tip-box icon-box"> |
||||
|
<span class="warn-icon m-icon"></span> |
||||
|
<div class="item-fore"> |
||||
|
<h3 class="ftx-04">您还没有选择收货地址!</h3> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
<div id="no_goods_cart" class="hide"> |
||||
|
<div class="tip-box icon-box"> |
||||
|
<span class="warn-icon m-icon"></span> |
||||
|
<div class="item-fore"> |
||||
|
<h3 class="ftx-04">您的购物车中没有商品!</h3> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
<div id="delete_cart_goods" class="hide"> |
||||
|
<div class="tip-box icon-box"> |
||||
|
<span class="warn-icon m-icon"></span> |
||||
|
<div class="item-fore"> |
||||
|
<h3 class="ftx-04">删除商品?</h3> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
<div id="cart_collect_batch" class="hide"> |
||||
|
<div class="tip-box icon-box"> |
||||
|
<span class="warn-icon m-icon"></span> |
||||
|
<div class="item-fore"> |
||||
|
<h3 class="ftx-04">您确认移到我的收藏?</h3> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
<div id="cart_address_not" class="hide"> |
||||
|
<div class="tip-box icon-box"> |
||||
|
<span class="warn-icon m-icon"></span> |
||||
|
<div class="item-fore"> |
||||
|
<h3 class="ftx-04">您还没有选择收货地址!</h3> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
@ -0,0 +1,153 @@ |
|||||
|
|
||||
|
<div class="ecsc-icon"> |
||||
|
<i class="ecsc-left"></i> |
||||
|
<i class="ecsc-right">></i> |
||||
|
<i class="ecsc-count cart_num"><?php echo $this->_var['str']; ?></i> |
||||
|
<a href="flow.php">购物车</a> |
||||
|
</div> |
||||
|
<?php if ($this->_var['goods']): ?> |
||||
|
<div class="ecscup-content"> |
||||
|
<div class="ecscmc"> |
||||
|
<ul> |
||||
|
<?php $_from = $this->_var['goods']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'goods_0_61255600_1689838728');$this->_foreach['goods'] = array('total' => count($_from), 'iteration' => 0); |
||||
|
if ($this->_foreach['goods']['total'] > 0): |
||||
|
foreach ($_from AS $this->_var['goods_0_61255600_1689838728']): |
||||
|
$this->_foreach['goods']['iteration']++; |
||||
|
?> |
||||
|
<li> |
||||
|
<?php if ($this->_var['goods_0_61255600_1689838728']['rec_id'] > 0): ?> |
||||
|
<div class="ecsc-img"><a href="<?php echo $this->_var['goods_0_61255600_1689838728']['url']; ?>" target="_blank"><img src="<?php echo $this->_var['goods_0_61255600_1689838728']['goods_thumb']; ?>" /></a></div> |
||||
|
<?php endif; ?> |
||||
|
<div class="ecsc-way"> |
||||
|
<?php if ($this->_var['goods_0_61255600_1689838728']['rec_id'] > 0 && $this->_var['goods_0_61255600_1689838728']['extension_code'] == 'package_buy'): ?> |
||||
|
<a href="javascript:void(0);" class="title"><?php echo $this->_var['goods_0_61255600_1689838728']['short_name']; ?><span style="color:#FF0000">(<?php echo $this->_var['lang']['remark_package']; ?>)</span></a> |
||||
|
<?php elseif ($this->_var['goods_0_61255600_1689838728']['rec_id'] > 0 && $this->_var['goods_0_61255600_1689838728']['is_gift'] != 0): ?> |
||||
|
<a href="javascript:void(0);" class="title"><?php echo $this->_var['goods_0_61255600_1689838728']['short_name']; ?><span style="color:#FF0000">(<?php echo $this->_var['lang']['largess']; ?>)</span></a> |
||||
|
<?php else: ?> |
||||
|
<a href="<?php echo $this->_var['goods_0_61255600_1689838728']['url']; ?>" target="_blank" class="title"><?php echo $this->_var['goods_0_61255600_1689838728']['short_name']; ?></a> |
||||
|
<?php endif; ?> |
||||
|
<div class="deal"> |
||||
|
<?php if ($this->_var['goods_0_61255600_1689838728']['rec_id'] > 0 && $this->_var['goods_0_61255600_1689838728']['extension_code'] != 'package_buy' && $this->_var['goods_0_61255600_1689838728']['is_gift'] == 0): ?> |
||||
|
<div class="count"> |
||||
|
<a href="javascript:void(0);" id="min_number" onclick="changenum(<?php echo $this->_var['goods_0_61255600_1689838728']['rec_id']; ?>, -1, <?php echo $this->_var['goods_0_61255600_1689838728']['warehouse_id']; ?>, <?php echo $this->_var['goods_0_61255600_1689838728']['area_id']; ?>)" class="count-subtract"><s></s></a><span class="num" id="goods_number_<?php echo $this->_var['goods_0_61255600_1689838728']['rec_id']; ?>"><?php echo empty($this->_var['goods_0_61255600_1689838728']['goods_number']) ? '1' : $this->_var['goods_0_61255600_1689838728']['goods_number']; ?></span><a href="javascript:void(0);" onclick="changenum(<?php echo $this->_var['goods_0_61255600_1689838728']['rec_id']; ?>,1, <?php echo $this->_var['goods_0_61255600_1689838728']['warehouse_id']; ?>, <?php echo $this->_var['goods_0_61255600_1689838728']['area_id']; ?>)" class="count-add"><s></s><b></b></a> |
||||
|
</div> |
||||
|
<div class="price"><?php echo $this->_var['goods_0_61255600_1689838728']['goods_price']; ?></div> |
||||
|
<?php else: ?> |
||||
|
<div class="price" style=" margin:0px;"><?php echo $this->_var['goods_0_61255600_1689838728']['goods_price']; ?></div> |
||||
|
<?php endif; ?> |
||||
|
<a href="javascript:void(0);" onClick="deleteCartGoods(<?php echo $this->_var['goods_0_61255600_1689838728']['rec_id']; ?>,0)" class="close">删除</a> |
||||
|
</div> |
||||
|
</div> |
||||
|
</li> |
||||
|
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?> |
||||
|
</ul> |
||||
|
</div> |
||||
|
<div class="ecscmb"> |
||||
|
<input name="cart_value" id="cart_value" value="<?php echo $this->_var['cart_value']; ?>" type="hidden" /> |
||||
|
<div class="total"><span class="total-num cart_num"><?php echo $this->_var['str']; ?></span>件共计:<span class="total-price"><?php echo $this->_var['cart_info']['amount']; ?></span></div> |
||||
|
<a href="flow.php" class="ecsc-cart">去购物车 <i class="ecsc-right">></i></a> |
||||
|
</div> |
||||
|
</div> |
||||
|
<?php endif; ?> |
||||
|
|
||||
|
<script type="text/javascript"> |
||||
|
|
||||
|
function changenum(rec_id, diff, warehouse_id, area_id) |
||||
|
{ |
||||
|
var cValue = $('#cart_value').val(); |
||||
|
var goods_number =Number($('#goods_number_' + rec_id).text()) + Number(diff); |
||||
|
|
||||
|
if(goods_number < 1) |
||||
|
{ |
||||
|
return false; |
||||
|
} |
||||
|
else |
||||
|
{ |
||||
|
change_goods_number(rec_id,goods_number, warehouse_id, area_id, cValue); |
||||
|
} |
||||
|
} |
||||
|
function change_goods_number(rec_id, goods_number, warehouse_id, area_id, cValue) |
||||
|
{ |
||||
|
if(cValue != '' || cValue == 'undefined'){ |
||||
|
var cValue = $('#cart_value').val(); |
||||
|
} |
||||
|
|
||||
|
Ajax.call('flow.php?step=ajax_update_cart', 'rec_id=' + rec_id +'&goods_number=' + goods_number +'&cValue=' + cValue +'&warehouse_id=' + warehouse_id +'&area_id=' + area_id, change_goods_number_response, 'POST','JSON'); |
||||
|
} |
||||
|
function change_goods_number_response(result) |
||||
|
{ |
||||
|
var rec_id = result.rec_id; |
||||
|
if (result.error == 0) |
||||
|
{ |
||||
|
$('#goods_number_' +rec_id).val(result.goods_number);//更新数量 |
||||
|
$('#goods_subtotal_' +rec_id).html(result.goods_subtotal);//更新小计 |
||||
|
if (result.goods_number <= 0) |
||||
|
{// 数量为零则隐藏所在行 |
||||
|
$('#tr_goods_' +rec_id).style.display = 'none'; |
||||
|
$('#tr_goods_' +rec_id).innerHTML = ''; |
||||
|
} |
||||
|
$('#total_desc').html(result.flow_info);//更新合计 |
||||
|
if($('ECS_CARTINFO')) |
||||
|
{//更新购物车数量 |
||||
|
$('#ECS_CARTINFO').html(result.cart_info); |
||||
|
} |
||||
|
|
||||
|
if(result.group.length > 0){ |
||||
|
for(var i=0; i<result.group.length; i++){ |
||||
|
$("#" + result.group[i].rec_group).html(result.group[i].rec_group_number);//配件商品数量 |
||||
|
$("#" + result.group[i].rec_group_talId).html(result.group[i].rec_group_subtotal);//配件商品金额 |
||||
|
|
||||
|
} |
||||
|
} |
||||
|
|
||||
|
$("#goods_price_" + rec_id).html(result.goods_price); |
||||
|
|
||||
|
//ecmoban模板堂 --zhuo 优惠活动 start |
||||
|
$('#favourable_list').html(result.favourable_list_content); |
||||
|
$('#your_discount').html(result.your_discount); |
||||
|
if(result.discount){ |
||||
|
$('#cart_discount').css({"display" : ""}); |
||||
|
}else{ |
||||
|
$('#cart_discount').css({"display" : "none"}); |
||||
|
} |
||||
|
//ecmoban模板堂 --zhuo 优惠活动 end |
||||
|
} |
||||
|
else if (result.message != '') |
||||
|
{ |
||||
|
$('#goods_number_' +rec_id).val(result.cart_Num);//更新数量 |
||||
|
alert(result.message); |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
|
||||
|
function deleteCartGoods(rec_id,index) |
||||
|
{ |
||||
|
Ajax.call('delete_cart_goods.php', 'id='+rec_id+'&index='+index, deleteCartGoodsResponse, 'POST', 'JSON'); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 接收返回的信息 |
||||
|
*/ |
||||
|
function deleteCartGoodsResponse(res) |
||||
|
{ |
||||
|
if (res.error) |
||||
|
{ |
||||
|
alert(res.err_msg); |
||||
|
} |
||||
|
else if(res.index==1) |
||||
|
{ |
||||
|
Ajax.call('get_ajax_content.php?act=get_content', 'data_type=cart_list', return_cart_list, 'POST', 'JSON'); |
||||
|
} |
||||
|
else |
||||
|
{ |
||||
|
$("#ECS_CARTINFO").html(res.content); |
||||
|
$(".cart_num").html(res.cart_num); |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
function return_cart_list(result) |
||||
|
{ |
||||
|
$(".cart_num").html(result.cart_num); |
||||
|
$(".pop_panel").html(result.content); |
||||
|
} |
||||
|
</script> |
||||
@ -0,0 +1,8 @@ |
|||||
|
|
||||
|
<ul> |
||||
|
<?php $_from = $this->_var['articles']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'article_item');if (count($_from)): |
||||
|
foreach ($_from AS $this->_var['article_item']): |
||||
|
?> |
||||
|
<li><a href="<?php echo $this->_var['article_item']['url']; ?>" target="_blank" title="<?php echo htmlspecialchars($this->_var['article_item']['title']); ?>"><?php echo $this->_var['article_item']['short_title']; ?></a> [<?php echo $this->_var['article_item']['add_time']; ?>]</li> |
||||
|
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?> |
||||
|
</ul> |
||||
@ -0,0 +1,12 @@ |
|||||
|
|
||||
|
<?php if ($this->_var['ad_child']): ?> |
||||
|
<ul> |
||||
|
<?php $_from = $this->_var['ad_child']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'ad');$this->_foreach['noad'] = array('total' => count($_from), 'iteration' => 0); |
||||
|
if ($this->_foreach['noad']['total'] > 0): |
||||
|
foreach ($_from AS $this->_var['ad']): |
||||
|
$this->_foreach['noad']['iteration']++; |
||||
|
?> |
||||
|
<li><a href="<?php echo $this->_var['ad']['ad_link']; ?>" target="_blank" style="background:<?php echo $this->_var['ad']['link_color']; ?> url(themes/<?php echo $GLOBALS['_CFG']['template']; ?>/images/loadGoods2.gif) no-repeat;" class="lazy" data-original="<?php echo $this->_var['ad']['ad_code']; ?>"></a></li> |
||||
|
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?> |
||||
|
</ul> |
||||
|
<?php endif; ?> |
||||
@ -0,0 +1,18 @@ |
|||||
|
|
||||
|
<?php if ($this->_var['ad_child']): ?> |
||||
|
<div class="floor-new"> |
||||
|
<ul> |
||||
|
<?php $_from = $this->_var['ad_child']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'ad');$this->_foreach['noad'] = array('total' => count($_from), 'iteration' => 0); |
||||
|
if ($this->_foreach['noad']['total'] > 0): |
||||
|
foreach ($_from AS $this->_var['ad']): |
||||
|
$this->_foreach['noad']['iteration']++; |
||||
|
?> |
||||
|
<li <?php if (($this->_foreach['noad']['iteration'] == $this->_foreach['noad']['total'])): ?> class="last"<?php endif; ?>> |
||||
|
<div class="new-left"> |
||||
|
<a href="<?php echo $this->_var['ad']['ad_link']; ?>" target="_blank"><img src="themes/<?php echo $GLOBALS['_CFG']['template']; ?>/images/loadGoods.gif" style=" max-width:<?php echo $this->_var['ad']['ad_width']; ?>px; max-height:<?php echo $this->_var['ad']['ad_height']; ?>px; text-align:center; float:none;" class="lazy" data-original="<?php echo $this->_var['ad']['ad_code']; ?>"></a> |
||||
|
</div> |
||||
|
</li> |
||||
|
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?> |
||||
|
</ul> |
||||
|
</div> |
||||
|
<?php endif; ?> |
||||
@ -0,0 +1,22 @@ |
|||||
|
|
||||
|
|
||||
|
<div id="dialog_goods_collect" class="hide"> |
||||
|
<div class="tip-box icon-box"> |
||||
|
<span class="warn-icon-ok m-icon"></span> |
||||
|
<div class="item-fore"> |
||||
|
<h3 class="ftx-04">您已成功收藏该商品!</h3> |
||||
|
<div class="ftx-03">可以查看我的收藏。</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
|
||||
|
|
||||
|
<div id="delete_goods_collect" class="hide"> |
||||
|
<div class="tip-box icon-box"> |
||||
|
<span class="warn-icon-wen m-icon"></span> |
||||
|
<div class="item-fore"> |
||||
|
<h3 class="ftx-04">您确定要将该商品从收藏夹中删除吗?</h3> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
File diff suppressed because it is too large
@ -0,0 +1,414 @@ |
|||||
|
|
||||
|
<div class="step-tit"> |
||||
|
<h3>送货清单</h3> |
||||
|
<a href="flow.php" class="returnCart">返回购物车</a> |
||||
|
</div> |
||||
|
<div class="step-cont"> |
||||
|
<?php $_from = $this->_var['goods_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'goodsRu');if (count($_from)): |
||||
|
foreach ($_from AS $this->_var['goodsRu']): |
||||
|
?> |
||||
|
<div class="shopping-list"> |
||||
|
<div class="cart-tbody"> |
||||
|
|
||||
|
<div class="shopping-seller"> |
||||
|
|
||||
|
<div class="item-seller-l"> |
||||
|
<div class="shop"> |
||||
|
<div class="shop-txt"><h3>商家:<?php echo $this->_var['goodsRu']['ru_name']; ?></h3></div> |
||||
|
</div> |
||||
|
<?php $_from = $this->_var['goodsRu']['new_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('key', 'activity');$this->_foreach['nogoods'] = array('total' => count($_from), 'iteration' => 0); |
||||
|
if ($this->_foreach['nogoods']['total'] > 0): |
||||
|
foreach ($_from AS $this->_var['key'] => $this->_var['activity']): |
||||
|
$this->_foreach['nogoods']['iteration']++; |
||||
|
?> |
||||
|
<?php if ($this->_var['activity']['act_id'] > 0): ?> |
||||
|
<div class="item-list"> |
||||
|
<div class="item-goods-list"> |
||||
|
<div class="goods-suit-tit"> |
||||
|
<div class="f-txt"> |
||||
|
<span class="full-icon"><?php echo $this->_var['activity']['act_type_txt']; ?><b></b></span> |
||||
|
<?php if ($this->_var['activity']['act_type'] == 0): ?> |
||||
|
|
||||
|
<?php if ($this->_var['activity']['act_type_ext'] == 0): ?> |
||||
|
<?php if ($this->_var['activity']['available']): ?> |
||||
|
<a href="javascript:;"> |
||||
|
<span>活动商品已购满<?php echo $this->_var['activity']['min_amount']; ?>元 ,可领取赠品<?php if ($this->_var['activity']['cart_favourable_gift_num'] > 0): ?>,已领取<?php echo $this->_var['activity']['cart_favourable_gift_num']; ?>件<?php endif; ?> |
||||
|
</span> |
||||
|
</a> |
||||
|
|
||||
|
<?php else: ?> |
||||
|
<a href="javascript:;"><span>活动商品购满<?php echo $this->_var['activity']['min_amount']; ?>元即可领取赠品,先到先得 </span></a> |
||||
|
<?php endif; ?> |
||||
|
<?php else: ?> |
||||
|
<?php if ($this->_var['activity']['available']): ?> |
||||
|
<a href="javascript:;"><span>活动商品已购满<?php echo $this->_var['activity']['min_amount']; ?>元 , |
||||
|
<?php if ($this->_var['activity']['cart_favourable_gift_num'] > 0): ?>您已经领取了赠品<?php else: ?>您可以返回购物车领取赠品<?php endif; ?></span></a> |
||||
|
|
||||
|
<?php else: ?> |
||||
|
<a href="javascript:;"><span>活动商品购满<?php echo $this->_var['activity']['min_amount']; ?>元即可领取赠品,先到先得</span></a> |
||||
|
|
||||
|
<?php endif; ?> |
||||
|
<?php endif; ?> |
||||
|
|
||||
|
<?php elseif ($this->_var['activity']['act_type'] == 1): ?> |
||||
|
|
||||
|
<?php if ($this->_var['activity']['available']): ?> |
||||
|
<a href="javascript:;"><span>活动商品已购满<?php echo $this->_var['activity']['min_amount']; ?>元 ,已减<?php echo $this->_var['activity']['act_type_ext_format']; ?>元现金</span></a> |
||||
|
<?php else: ?> |
||||
|
<a href="javascript:;"><span>活动商品购满<?php echo $this->_var['activity']['min_amount']; ?>元, 即可享受满减优惠</span></a> |
||||
|
<?php endif; ?> |
||||
|
|
||||
|
<?php elseif ($this->_var['activity']['act_type'] == 2): ?> |
||||
|
|
||||
|
<?php if ($this->_var['activity']['available']): ?> |
||||
|
<a href="javascript:;"><span>活动商品已购满<?php echo $this->_var['activity']['min_amount']; ?>元 ,已享受<?php echo $this->_var['activity']['act_type_ext_format']; ?>折优惠</span></a> |
||||
|
<?php else: ?> |
||||
|
<a href="javascript:;"><span>活动商品购满<?php echo $this->_var['activity']['min_amount']; ?>元, 即可享受折扣</span></a> |
||||
|
<?php endif; ?> |
||||
|
<?php endif; ?> |
||||
|
</div> |
||||
|
</div> |
||||
|
<?php $_from = $this->_var['activity']['act_cart_gift']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'goods');if (count($_from)): |
||||
|
foreach ($_from AS $this->_var['goods']): |
||||
|
?> |
||||
|
<div class="item-item"> |
||||
|
<div class="item-form"> |
||||
|
<div class="cell p-goods"> |
||||
|
<div class="goods-item"> |
||||
|
<div class="p-img"><a href="<?php echo $this->_var['goods']['url']; ?>" target="_blank"><img src="<?php echo $this->_var['goods']['goods_thumb']; ?>" width="80" height="80"></a></div> |
||||
|
<div class="item-msg"> |
||||
|
<div class="p-name"> |
||||
|
<em class="s-ico">赠品</em> |
||||
|
<a href="<?php echo $this->_var['goods']['url']; ?>" target="_blank"><?php echo $this->_var['goods']['goods_name']; ?></a> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="cell p-attr"> |
||||
|
<?php echo nl2br($this->_var['goods']['goods_attr']); ?> |
||||
|
</div> |
||||
|
<div class="cell p-price"> |
||||
|
<strong><?php if ($this->_var['goods']['rec_type'] == 5): ?>定金:<?php echo $this->_var['goods']['formated_presale_deposit']; ?><?php else: ?><?php echo $this->_var['goods']['formated_goods_price']; ?><?php endif; ?></strong> |
||||
|
<?php if ($this->_var['goods']['dis_amount'] > 0): ?> |
||||
|
<font style="text-decoration:line-through; color:#999;">原价:¥<?php echo $this->_var['goods']['original_price']; ?></font> |
||||
|
<font style="color:#F60">(优惠:<?php echo $this->_var['goods']['discount_amount']; ?>)</font> |
||||
|
<?php endif; ?> |
||||
|
<span class="num">x<?php echo $this->_var['goods']['goods_number']; ?></span> |
||||
|
</div> |
||||
|
<div class="cell p-number"> |
||||
|
<?php if ($this->_var['goods']['attr_number']): ?> |
||||
|
有货 |
||||
|
<input name="rec_number" type="hidden" id="<?php echo $this->_var['goods']['rec_id']; ?>" value="0"> |
||||
|
<?php else: ?> |
||||
|
<font style="color:#e4393c">无货</font> |
||||
|
<input name="rec_number" type="hidden" id="<?php echo $this->_var['goods']['rec_id']; ?>" value="1"> |
||||
|
<?php endif; ?> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?> |
||||
|
|
||||
|
<?php $_from = $this->_var['activity']['act_goods_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'goods');if (count($_from)): |
||||
|
foreach ($_from AS $this->_var['goods']): |
||||
|
?> |
||||
|
<div class="item-item"> |
||||
|
<div class="item-form"> |
||||
|
<div class="cell p-goods"> |
||||
|
<div class="goods-item"> |
||||
|
<div class="p-img"><a href="<?php echo $this->_var['goods']['url']; ?>" target="_blank"><img src="<?php echo $this->_var['goods']['goods_thumb']; ?>" width="80" height="80"></a></div> |
||||
|
<div class="item-msg"> |
||||
|
<div class="p-name"> |
||||
|
<a href="<?php echo $this->_var['goods']['url']; ?>" target="_blank"><?php echo $this->_var['goods']['goods_name']; ?></a> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="cell p-attr"> |
||||
|
<?php echo nl2br($this->_var['goods']['goods_attr']); ?> |
||||
|
</div> |
||||
|
<div class="cell p-price"> |
||||
|
<strong><?php if ($this->_var['goods']['rec_type'] == 5): ?>定金:<?php echo $this->_var['goods']['formated_presale_deposit']; ?><?php else: ?><?php echo $this->_var['goods']['formated_goods_price']; ?><?php endif; ?></strong> |
||||
|
<?php if ($this->_var['goods']['dis_amount'] > 0): ?> |
||||
|
<font style="text-decoration:line-through; color:#999;">原价:¥<?php echo $this->_var['goods']['original_price']; ?></font> |
||||
|
<font style="color:#F60">(优惠:<?php echo $this->_var['goods']['discount_amount']; ?>)</font> |
||||
|
<?php endif; ?> |
||||
|
<span class="num">x<?php echo $this->_var['goods']['goods_number']; ?></span> |
||||
|
</div> |
||||
|
<div class="cell p-number"> |
||||
|
<?php if ($this->_var['goods']['attr_number']): ?> |
||||
|
有货 |
||||
|
<input name="rec_number" type="hidden" id="<?php echo $this->_var['goods']['rec_id']; ?>" value="0"> |
||||
|
<?php else: ?> |
||||
|
<font style="color:#e4393c">无货</font> |
||||
|
<input name="rec_number" type="hidden" id="<?php echo $this->_var['goods']['rec_id']; ?>" value="1"> |
||||
|
<?php endif; ?> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?> |
||||
|
</div> |
||||
|
</div> |
||||
|
<?php else: ?> |
||||
|
<?php $_from = $this->_var['activity']['act_goods_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'goods');if (count($_from)): |
||||
|
foreach ($_from AS $this->_var['goods']): |
||||
|
?> |
||||
|
<div class="item-list"> |
||||
|
<div class="item-goods-list"> |
||||
|
<div class="item-item"> |
||||
|
<div class="item-form"> |
||||
|
<div class="cell p-goods"> |
||||
|
<div class="goods-item"> |
||||
|
<?php if ($this->_var['goods']['goods_id'] > 0 && $this->_var['goods']['extension_code'] != 'package_buy'): ?> |
||||
|
<div class="p-img"><a href="<?php echo $this->_var['goods']['url']; ?>" target="_blank"><img src="<?php echo $this->_var['goods']['goods_thumb']; ?>" width="80" height="80"></a></div> |
||||
|
<?php endif; ?> |
||||
|
<div class="item-msg"> |
||||
|
<div class="p-name"> |
||||
|
<?php if ($this->_var['goods']['goods_id'] > 0 && $this->_var['goods']['extension_code'] == 'package_buy'): ?> |
||||
|
<a href="javascript:void(0)" onclick="setSuitShow(<?php echo $this->_var['goods']['goods_id']; ?>)" class="f6"><?php echo $this->_var['goods']['goods_name']; ?><span style="color:#FF0000;">(<?php echo $this->_var['lang']['remark_package']; ?>)</span></a> |
||||
|
<div id="suit_<?php echo $this->_var['goods']['goods_id']; ?>" class="package_goods"> |
||||
|
<ul> |
||||
|
<?php $_from = $this->_var['goods']['package_goods_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'package_goods_list');$this->_foreach['nopackage'] = array('total' => count($_from), 'iteration' => 0); |
||||
|
if ($this->_foreach['nopackage']['total'] > 0): |
||||
|
foreach ($_from AS $this->_var['package_goods_list']): |
||||
|
$this->_foreach['nopackage']['iteration']++; |
||||
|
?> |
||||
|
<?php if (! ($this->_foreach['nopackage']['iteration'] <= 1)): ?> |
||||
|
<li <?php if (($this->_foreach['nopackage']['iteration'] - 1) > 3): ?> style="display:none;"<?php endif; ?>> |
||||
|
<a href="goods.php?id=<?php echo $this->_var['package_goods_list']['goods_id']; ?>" target="_blank" class="f6"> |
||||
|
<img src="<?php echo $this->_var['package_goods_list']['goods_thumb']; ?>" width="40" height="40" /> |
||||
|
<?php echo $this->_var['package_goods_list']['goods_name']; ?> |
||||
|
</a> |
||||
|
</li> |
||||
|
<?php endif; ?> |
||||
|
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?> |
||||
|
</ul> |
||||
|
<span class="ellipsis">......</span> |
||||
|
<a href="javascript:void(0);" class="package-prolist-more">查看更多︾</a> |
||||
|
</div> |
||||
|
<?php else: ?> |
||||
|
<a href="<?php echo $this->_var['goods']['url']; ?>" target="_blank"><?php echo $this->_var['goods']['goods_name']; ?></a> |
||||
|
<?php endif; ?> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="cell p-attr"> |
||||
|
<?php echo nl2br($this->_var['goods']['goods_attr']); ?> |
||||
|
</div> |
||||
|
<div class="cell p-price"> |
||||
|
<strong><?php if ($this->_var['goods']['rec_type'] == 5): ?>定金:<?php echo $this->_var['goods']['formated_presale_deposit']; ?><?php else: ?><?php echo $this->_var['goods']['formated_goods_price']; ?><?php endif; ?></strong> |
||||
|
<?php if ($this->_var['goods']['dis_amount'] > 0): ?> |
||||
|
<font style="text-decoration:line-through; color:#999;">原价:¥<?php echo $this->_var['goods']['original_price']; ?></font> |
||||
|
<font style="color:#F60">(优惠:<?php echo $this->_var['goods']['discount_amount']; ?>)</font> |
||||
|
<?php endif; ?> |
||||
|
<span class="num">x<?php echo $this->_var['goods']['goods_number']; ?></span> |
||||
|
</div> |
||||
|
<div class="cell p-number"> |
||||
|
<?php if ($this->_var['goods']['attr_number']): ?> |
||||
|
有货 |
||||
|
<input name="rec_number" type="hidden" id="<?php echo $this->_var['goods']['rec_id']; ?>" value="0"> |
||||
|
<?php else: ?> |
||||
|
<font style="color:#e4393c">无货</font> |
||||
|
<input name="rec_number" type="hidden" id="<?php echo $this->_var['goods']['rec_id']; ?>" value="1"> |
||||
|
<?php endif; ?> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?> |
||||
|
<?php endif; ?> |
||||
|
|
||||
|
<?php if (! ($this->_foreach['nogoods']['iteration'] == $this->_foreach['nogoods']['total'])): ?> |
||||
|
<div class="shopping-blank"></div> |
||||
|
<?php endif; ?> |
||||
|
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?> |
||||
|
</div> |
||||
|
<div class="item-list-r"> |
||||
|
<div class="shop"><div class="shop-txt"><h3>配送方式</h3></div></div> |
||||
|
<div class="item-content"> |
||||
|
<div class="mode-tab-nav radio-list"> |
||||
|
<ul> |
||||
|
<li class="mode-tab-item shopping-list-checked <?php if ($this->_var['goodsRu']['shipping_type'] == 0): ?>item-selected<?php endif; ?>" data-ruid="<?php echo $this->_var['goodsRu']['ru_id']; ?>" data-type="0" data-shipping="<?php echo $this->_var['goodsRu']['shipping']['shipping_id']; ?>" data-shippingcode="<?php echo $this->_var['goodsRu']['shipping']['shipping_code']; ?>">快递运输</li> |
||||
|
<?php if ($this->_var['goodsRu']['ru_id'] == 0 && $this->_var['goodsRu']['self_point'] != ""): ?> |
||||
|
<li class="mode-tab-item shopping-list-checked <?php if ($this->_var['goodsRu']['shipping_type'] == 1): ?>item-selected<?php endif; ?>" data-ruid="<?php echo $this->_var['goodsRu']['ru_id']; ?>" data-type="1" data-shipping="<?php echo $this->_var['goodsRu']['self_point']['shipping_id']; ?>" data-shippingcode="<?php echo $this->_var['goodsRu']['self_point']['shipping_code']; ?>"> |
||||
|
上门自取<em style="color:#ec5051">(荐)</em> |
||||
|
</li> |
||||
|
<?php endif; ?> |
||||
|
</ul> |
||||
|
<input type="hidden" class="shipping_<?php echo $this->_var['goodsRu']['ru_id']; ?>" name="shipping[]" value="<?php if ($this->_var['goodsRu']['shipping_type'] == 0): ?><?php echo empty($this->_var['goodsRu']['shipping']['shipping_id']) ? '0' : $this->_var['goodsRu']['shipping']['shipping_id']; ?><?php else: ?><?php echo empty($this->_var['goodsRu']['self_point']['shipping_id']) ? '0' : $this->_var['goodsRu']['self_point']['shipping_id']; ?><?php endif; ?>"/> |
||||
|
<input type="hidden" class="shipping_code_<?php echo $this->_var['goodsRu']['ru_id']; ?>" name="shipping_code[]" value="<?php if ($this->_var['goodsRu']['shipping_type'] == 0): ?><?php echo empty($this->_var['goodsRu']['shipping']['shipping_code']) ? '无' : $this->_var['goodsRu']['shipping']['shipping_code']; ?><?php else: ?><?php echo empty($this->_var['goodsRu']['self_point']['shipping_code']) ? '无' : $this->_var['goodsRu']['self_point']['shipping_code']; ?><?php endif; ?>"/> |
||||
|
<input type="hidden" class="shipping_type_<?php echo $this->_var['goodsRu']['ru_id']; ?>" name="shipping_type[]" value="0" /> |
||||
|
</div> |
||||
|
<div class="mode-tab-con"> |
||||
|
<div class="hide"> |
||||
|
<div class="mode-list-item"> |
||||
|
<label class="tit">配送方式:</label> |
||||
|
<input type="hidden" name="ru_id[]" value="<?php echo $this->_var['goodsRu']['ru_id']; ?>" /> |
||||
|
<input type="hidden" name="ru_name[]" value="<?php echo $this->_var['goodsRu']['ru_name']; ?>" /> |
||||
|
<span class="value"><?php if ($this->_var['goodsRu']['shipping']['shipping_name']): ?><?php echo $this->_var['goodsRu']['shipping']['shipping_name']; ?><?php else: ?>该地区不支持配送<?php endif; ?></span> |
||||
|
|
||||
|
<a href="#none" class="ftx-05 hide" data-dialog="shopping_dialog" data-divid="shopping_seller_list" data-name="选择配送方式" data-width="730" data-height="210" data-url="#">修改</a> |
||||
|
</div> |
||||
|
<?php if ($this->_var['goodsRu']['shipping']['shipping_name']): ?> |
||||
|
<div class="mode-list-item"> |
||||
|
<label class="tit">运 费:</label> |
||||
|
<span class="value"><?php if ($this->_var['goodsRu']['shipping']['shipping_fee']): ?><?php echo $this->_var['goodsRu']['shipping']['format_shipping_fee']; ?><?php else: ?>免运费<?php endif; ?></span> |
||||
|
</div> |
||||
|
<?php endif; ?> |
||||
|
</div> |
||||
|
<div class="mode-list hide"> |
||||
|
|
||||
|
</div> |
||||
|
<?php if ($this->_var['goodsRu']['self_point'] != ""): ?> |
||||
|
<div class="mode-list <?php if ($this->_var['goodsRu']['shipping_type'] == 1): ?>show<?php else: ?>hide<?php endif; ?>"> |
||||
|
<div class="mode-list-item"> |
||||
|
<label class="tit">自提地点:</label> |
||||
|
<span class="value"><?php echo $this->_var['goodsRu']['self_point']['name']; ?></span> |
||||
|
<a href="javascript:void(0);" class="ftx-05" data-dialog="flow_dialog" data-mark="0" data-width="700" data-height="350" data-divid="picksite_box" data-title="选择自提点" data-url="flow.php?step=pickSite">修改</a> |
||||
|
</div> |
||||
|
<div class="mode-list-item"> |
||||
|
<label class="tit">自提日期:</label> |
||||
|
<span class="value"><?php echo $this->_var['goodsRu']['self_point']['shipping_dateStr']; ?></span> |
||||
|
<a href="javascript:void(0);" class="ftx-05" data-dialog="flow_dialog" data-mark="1" data-divid="take_their_time" data-title="自提时间" data-width="600" data-height="250" data-url="flow.php?step=pickSite&mark=1">修改</a> |
||||
|
</div> |
||||
|
<div class="yunfei">免运费</div> |
||||
|
<input type="hidden" name="point_id" value="<?php echo $this->_var['goodsRu']['self_point']['point_id']; ?>"> |
||||
|
<input type="hidden" name="shipping_dateStr" value="<?php echo $this->_var['goodsRu']['self_point']['shipping_dateStr']; ?>"> |
||||
|
</div> |
||||
|
<?php endif; ?> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?> |
||||
|
</div> |
||||
|
<div class="order-remarks"> |
||||
|
<div class="remark-tit">添加订单备注</div> |
||||
|
<div class="form remark-cont"> |
||||
|
<input name="postscript" type="text" id="remarkText" maxlength="45" size="15" class="itxt itxt01" placeholder="限60个字" onblur="if(this.value==''||this.value=='限60个字'){this.value='限60个字';this.style.color='#cccccc'}" onfocus="if(this.value=='限60个字') {this.value='';};this.style.color='#000000';"> |
||||
|
<span class="ml10"> 提示:请勿填写有关支付、收货、发票方面的信息</span> |
||||
|
</div> |
||||
|
</div> |
||||
|
<?php if ($this->_var['how_oos_list']): ?> |
||||
|
<div class="order-remarks hide"> |
||||
|
<div class="remark-tit"><?php echo $this->_var['lang']['booking_process']; ?></div> |
||||
|
<div class="form remark-cont"> |
||||
|
<?php $_from = $this->_var['how_oos_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('how_oos_id', 'how_oos_name');if (count($_from)): |
||||
|
foreach ($_from AS $this->_var['how_oos_id'] => $this->_var['how_oos_name']): |
||||
|
?> |
||||
|
<label><input name="how_oos" type="radio" value="<?php echo $this->_var['how_oos_id']; ?>" <?php if ($this->_var['order']['how_oos'] == $this->_var['how_oos_id']): ?>checked<?php endif; ?> onclick="changeOOS(this)" /><?php echo $this->_var['how_oos_name']; ?></label> |
||||
|
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?> |
||||
|
</div> |
||||
|
</div> |
||||
|
<?php endif; ?> |
||||
|
|
||||
|
|
||||
|
<script> |
||||
|
$(function(){ |
||||
|
//快速运输和上门自取切换 |
||||
|
$(".shopping-list-checked").live('click',function(){ |
||||
|
|
||||
|
var index = $(this).index(); |
||||
|
var ru_id = $(this).data('ruid'); |
||||
|
var type = $(this).data('type'); |
||||
|
var shipping_id = $(this).data('shipping'); |
||||
|
var shipping_code = $(this).data('shippingcode'); |
||||
|
|
||||
|
$(this).addClass("item-selected").siblings().removeClass("item-selected"); |
||||
|
|
||||
|
$(".shipping_" + ru_id).val(shipping_id); |
||||
|
$(".shipping_code_" + ru_id).val(shipping_code); |
||||
|
|
||||
|
var mode_tab_nav = $(this).parents(".mode-tab-nav"); |
||||
|
mode_tab_nav.next().find(".mode-list").eq(index).show(); |
||||
|
mode_tab_nav.next().find(".mode-list").eq(index).siblings().hide(); |
||||
|
|
||||
|
Ajax.call('ajax_dialog.php?act=shipping_type', 'ru_id=' + ru_id + '&type=' + type, changeShippingResponse, 'POST','JSON'); |
||||
|
}); |
||||
|
|
||||
|
//结算页面多个礼包产品展开 |
||||
|
$(".package-prolist-more").click(function(){ |
||||
|
$(this).prevAll("ul").find("li").show(); |
||||
|
$(this).prev().hide(); |
||||
|
$(this).hide(); |
||||
|
}); |
||||
|
|
||||
|
function changeShippingResponse(result){ |
||||
|
|
||||
|
$(".shipping_type_" + result.ru_id).val(result.shipping_type); |
||||
|
|
||||
|
if (result.error) |
||||
|
{ |
||||
|
alert(result.massage); |
||||
|
location.href = './'; |
||||
|
} |
||||
|
|
||||
|
try |
||||
|
{ |
||||
|
var layer = document.getElementById("ECS_ORDERTOTAL"); |
||||
|
|
||||
|
layer.innerHTML = (typeof result == "object") ? result.content : result; |
||||
|
} |
||||
|
catch (ex) {} |
||||
|
} |
||||
|
|
||||
|
//自提点 |
||||
|
$("*[data-dialog='flow_dialog']").live('click',function(){ |
||||
|
var ok_title,cl_title,url,title,width,height,divId,mark,ajax_picksite; |
||||
|
|
||||
|
url = $(this).data('url'); //删除连接地址 |
||||
|
title = $(this).data('title'); |
||||
|
width = $(this).data('width'); |
||||
|
height = $(this).data('height'); |
||||
|
divId = $(this).data('divid'); |
||||
|
mark = $(this).data('mark'); //区分提货站与日期修改 |
||||
|
|
||||
|
ok_title = "保存"; |
||||
|
cl_title = "取消"; |
||||
|
|
||||
|
Ajax.call(url,'',shopResponse, 'POST', 'JSON'); |
||||
|
function shopResponse(result){ |
||||
|
pb({ |
||||
|
id:divId, |
||||
|
title:title, |
||||
|
width:width, |
||||
|
height:height, |
||||
|
ok_title:ok_title, //按钮名称 |
||||
|
cl_title:cl_title, //按钮名称 |
||||
|
content:result.result, //调取内容 |
||||
|
drag:false, |
||||
|
foot:true, |
||||
|
onOk:function(){ //保存回调函数 |
||||
|
if(mark == 0){ |
||||
|
var district = $("#pickRegion_select").val(); |
||||
|
var picksite_id = $("input[name='picksite_radio']:checked").val(); |
||||
|
ajax_picksite = 'district='+ district +'&picksite_id='+ picksite_id + 'mark=' + mark ; |
||||
|
}else{ |
||||
|
var shipping_date = $("input[name='shipping_date']:checked").attr('data-shippingDate'); |
||||
|
var time_range = $("input[name='shipping_date']:checked").attr('data-range'); |
||||
|
|
||||
|
if(typeof(shipping_date) == "undefined"){ |
||||
|
alert("请选择提货时间段!");return false; |
||||
|
} |
||||
|
ajax_picksite = 'shipping_date='+ shipping_date + '&time_range='+ time_range +'&mark=' + mark ; |
||||
|
} |
||||
|
|
||||
|
Ajax.call('flow.php?step=select_picksite', ajax_picksite, selectPicksiteResponse, 'POST', 'JSON'); |
||||
|
}, |
||||
|
onCancel:function(){ //取消回调函数 |
||||
|
} |
||||
|
}); |
||||
|
} |
||||
|
}); |
||||
|
function selectPicksiteResponse(result){ |
||||
|
if(result.error == 0){ |
||||
|
$("#goods_inventory").html(result.content); |
||||
|
}else{ |
||||
|
alert(result.massage);location.href = './'; |
||||
|
} |
||||
|
} |
||||
|
}); |
||||
|
</script> |
||||
@ -0,0 +1,76 @@ |
|||||
|
|
||||
|
<div class="guess-love w1200"> |
||||
|
<div class="in-title"><i class="icon-r"></i><a href="#" target="_blank" class="bit">猜你喜欢</a></div> |
||||
|
<div class="guess-love-warper"> |
||||
|
<dl class="love-tag-list"> |
||||
|
<dt class="love-title"><i class="love-i"></i>爱搜标签</dt> |
||||
|
<dd class="love-content"> |
||||
|
<ul class="tag-name-list"> |
||||
|
<?php $_from = $this->_var['searchkeywords']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('key', 'val_0_82818700_1689900044');if (count($_from)): |
||||
|
foreach ($_from AS $this->_var['key'] => $this->_var['val_0_82818700_1689900044']): |
||||
|
?> |
||||
|
<?php if ($this->_var['key'] < 9): ?> |
||||
|
<li><a href="search.php?keywords=<?php echo urlencode($this->_var['val_0_82818700_1689900044']); ?>" target="_blank"><?php echo $this->_var['val_0_82818700_1689900044']; ?></a></li> |
||||
|
<?php endif; ?> |
||||
|
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?> |
||||
|
</ul> |
||||
|
</dd> |
||||
|
</dl> |
||||
|
<dl class="love-product-list"> |
||||
|
<dt class="love-title"><i class="love-i"></i>喜欢的商品</dt> |
||||
|
<dd class="love-content"> |
||||
|
<div class="love-product-items"> |
||||
|
<?php $_from = $this->_var['guess_goods']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'goods_0_82828400_1689900044');$this->_foreach['foo'] = array('total' => count($_from), 'iteration' => 0); |
||||
|
if ($this->_foreach['foo']['total'] > 0): |
||||
|
foreach ($_from AS $this->_var['goods_0_82828400_1689900044']): |
||||
|
$this->_foreach['foo']['iteration']++; |
||||
|
?> |
||||
|
<div class="product-item"> |
||||
|
<div class="jbox"> |
||||
|
<div class="bg"></div> |
||||
|
<a href="<?php echo $this->_var['goods_0_82828400_1689900044']['url']; ?>" target="_blank"><h1><?php echo sub_str($this->_var['goods_0_82828400_1689900044']['short_name'],5); ?></h1><div class="new-price"><?php echo $this->_var['goods_0_82828400_1689900044']['shop_price']; ?></div></a> |
||||
|
</div> |
||||
|
<div class="p-img"><img src="themes/<?php echo $GLOBALS['_CFG']['template']; ?>/images/loadGoods.gif" width="110" height="110" class="lazy" data-original="<?php echo $this->_var['goods_0_82828400_1689900044']['goods_thumb']; ?>"></div> |
||||
|
</div> |
||||
|
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?> |
||||
|
</div> |
||||
|
</dd> |
||||
|
</dl> |
||||
|
<dl class="love-store"> |
||||
|
<dt class="love-title"><i class="love-i"></i>推荐给你的店铺</dt> |
||||
|
<dd class="love-content"> |
||||
|
<div class="love-store-list"> |
||||
|
<?php $_from = $this->_var['guess_store']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'store');$this->_foreach['foo'] = array('total' => count($_from), 'iteration' => 0); |
||||
|
if ($this->_foreach['foo']['total'] > 0): |
||||
|
foreach ($_from AS $this->_var['store']): |
||||
|
$this->_foreach['foo']['iteration']++; |
||||
|
?> |
||||
|
<div class="love-store-item <?php if (($this->_foreach['foo']['iteration'] <= 1)): ?>mar_bott<?php endif; ?>"> |
||||
|
<div class="item-left"><a href="merchants_store.php?merchant_id=<?php echo $this->_var['store']['ru_id']; ?>" target="_blank" style=" text-align:center; display:block;"><img src="themes/<?php echo $GLOBALS['_CFG']['template']; ?>/images/loadGoods.gif" class="lazy" data-original="<?php echo $this->_var['store']['street_thumb']; ?>"/></a></div> |
||||
|
<div class="item-right"> |
||||
|
<div class="store-logo"><img src="<?php echo $this->_var['store']['brand_thumb']; ?>" width="90"></div> |
||||
|
<div class="store-name"><?php echo sub_str($this->_var['store']['shop_name'],6); ?></div> |
||||
|
<div class="btn"><a href="merchants_store.php?merchant_id=<?php echo $this->_var['store']['ru_id']; ?>" target="_blank">进入 ></a></div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?> |
||||
|
</div> |
||||
|
</dd> |
||||
|
</dl> |
||||
|
<dl class="love-interest"> |
||||
|
<dt class="love-title"><i class="love-i"></i>可能感兴趣</dt> |
||||
|
<dd class="love-content"> |
||||
|
<div class="love-interest-list"> |
||||
|
<?php |
||||
|
$k = array ( |
||||
|
'name' => 'ads', |
||||
|
'id' => '127', |
||||
|
'num' => '2', |
||||
|
); |
||||
|
echo $this->_echash . $k['name'] . '|' . serialize($k) . $this->_echash; |
||||
|
?> |
||||
|
</div> |
||||
|
</dd> |
||||
|
</dl> |
||||
|
</div> |
||||
|
</div> |
||||
@ -0,0 +1,70 @@ |
|||||
|
<?php if ($this->_var['area_htmlType'] != 'goods' && $this->_var['area_htmlType'] != 'exchange'): ?> |
||||
|
<?php echo $this->smarty_insert_scripts(array('files'=>'warehouse_area.js')); ?> |
||||
|
<?php else: ?> |
||||
|
<?php echo $this->smarty_insert_scripts(array('files'=>'warehouse.js')); ?> |
||||
|
<?php endif; ?> |
||||
|
<ul class="fl"> |
||||
|
<li class="dorpdown" id="city-choice"> |
||||
|
<dt class="sc-icon"> |
||||
|
<span>送货至:</span> |
||||
|
<div class="sc-choie"><i class="sc-icon-right"></i><span class="ui-areamini-text" data-id="2" title=""><?php echo $this->_var['region_name']; ?></span></div> |
||||
|
</dt> |
||||
|
<?php if ($this->_var['pin_region_list']): ?> |
||||
|
<dd class="dorpdown-layer"> |
||||
|
<div class="dd-spacer"></div> |
||||
|
<div class="ui-areamini-content-wrap" id="ui-content-wrap"> |
||||
|
<dl> |
||||
|
<dt>热门</dt> |
||||
|
<dd><a href="javascript:get_district_list(52, 0);" <?php if ($this->_var['city_top'] == 52): ?>class="city_selected"<?php endif; ?>>北京</a></dd> |
||||
|
<dd><a href="javascript:get_district_list(321, 0);" <?php if ($this->_var['city_top'] == 321): ?>class="city_selected"<?php endif; ?>>上海</a></dd> |
||||
|
<dd><a href="javascript:get_district_list(76, 0);" <?php if ($this->_var['city_top'] == 76): ?>class="city_selected"<?php endif; ?>>广州</a></dd> |
||||
|
<dd><a href="javascript:get_district_list(77, 0);" <?php if ($this->_var['city_top'] == 77): ?>class="city_selected"<?php endif; ?>>深圳</a></dd> |
||||
|
<dd><a href="javascript:get_district_list(322, 0);" <?php if ($this->_var['city_top'] == 322): ?>class="city_selected"<?php endif; ?>>成都</a></dd> |
||||
|
<dd><a href="javascript:get_district_list(311, 0);" <?php if ($this->_var['city_top'] == 311): ?>class="city_selected"<?php endif; ?>>西安</a></dd> |
||||
|
<dd><a href="javascript:get_district_list(343, 0);" <?php if ($this->_var['city_top'] == 343): ?>class="city_selected"<?php endif; ?>>天津</a></dd> |
||||
|
<dd><a href="javascript:get_district_list(180, 0);" <?php if ($this->_var['city_top'] == 180): ?>class="city_selected"<?php endif; ?>>武汉</a></dd> |
||||
|
<dd><a href="javascript:get_district_list(120, 0);" <?php if ($this->_var['city_top'] == 120): ?>class="city_selected"<?php endif; ?>>海口</a></dd> |
||||
|
<dd><a href="javascript:get_district_list(220, 0);" <?php if ($this->_var['city_top'] == 220): ?>class="city_selected"<?php endif; ?>>南京</a></dd> |
||||
|
</dl> |
||||
|
<div class="search-first-letter"> |
||||
|
<?php $_from = $this->_var['pin_region_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('letter', 'pin');if (count($_from)): |
||||
|
foreach ($_from AS $this->_var['letter'] => $this->_var['pin']): |
||||
|
?> |
||||
|
<a href="javascript:void(0);" data-letter="<?php echo $this->_var['letter']; ?>"><?php echo $this->_var['letter']; ?></a> |
||||
|
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?> |
||||
|
</div> |
||||
|
<div class="scrollBody" id="scrollBody"> |
||||
|
<div class="all-list" id="scrollMap"> |
||||
|
<ul id="ul"> |
||||
|
<?php $_from = $this->_var['pin_region_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('letter', 'pin_region');$this->_foreach['reg'] = array('total' => count($_from), 'iteration' => 0); |
||||
|
if ($this->_foreach['reg']['total'] > 0): |
||||
|
foreach ($_from AS $this->_var['letter'] => $this->_var['pin_region']): |
||||
|
$this->_foreach['reg']['iteration']++; |
||||
|
?> |
||||
|
<li data-id="<?php echo $this->_foreach['reg']['iteration']; ?>" data-name="<?php echo $this->_var['letter']; ?>"> |
||||
|
<em><?php echo $this->_var['letter']; ?></em> |
||||
|
<div class="itme-city"> |
||||
|
<?php $_from = $this->_var['pin_region']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'region');if (count($_from)): |
||||
|
foreach ($_from AS $this->_var['region']): |
||||
|
?> |
||||
|
<?php if ($this->_var['region']['is_has']): ?> |
||||
|
<a href="javascript:get_district_list(<?php echo $this->_var['region']['region_id']; ?>, 0);" <?php if ($this->_var['city_top'] == $this->_var['region']['region_id']): ?>class="city_selected"<?php endif; ?>><?php echo $this->_var['region']['region_name']; ?></a> |
||||
|
<?php else: ?> |
||||
|
<a href="javascript:void(0);" class="is_district"><?php echo $this->_var['region']['region_name']; ?></a> |
||||
|
<?php endif; ?> |
||||
|
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?> |
||||
|
</div> |
||||
|
</li> |
||||
|
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?> |
||||
|
</ul> |
||||
|
</div> |
||||
|
<div class="scrollBar" id="scrollBar"> |
||||
|
<p id="city_bar"></p> |
||||
|
</div> |
||||
|
<input name="area_phpName" type="hidden" id="phpName" value="<?php echo $this->_var['area_phpName']; ?>"> |
||||
|
</div> |
||||
|
</div> |
||||
|
</dd> |
||||
|
<?php endif; ?> |
||||
|
</li> |
||||
|
</ul> |
||||
@ -0,0 +1,413 @@ |
|||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
||||
|
<html xmlns="http://www.w3.org/1999/xhtml"> |
||||
|
<head> |
||||
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
||||
|
<meta name="Keywords" content="<?php echo $this->_var['keywords']; ?>" /> |
||||
|
<meta name="Description" content="<?php echo $this->_var['description']; ?>" /> |
||||
|
|
||||
|
<title><?php echo $this->_var['page_title']; ?></title> |
||||
|
|
||||
|
|
||||
|
|
||||
|
<link rel="shortcut icon" href="favicon.ico" /> |
||||
|
<link rel="icon" href="animated_favicon.gif" type="image/gif" /> |
||||
|
<link rel="stylesheet" type="text/css" href="themes/<?php echo $GLOBALS['_CFG']['template']; ?>/base.css" /> |
||||
|
<link href="<?php echo $this->_var['ecs_css_path']; ?>" rel="stylesheet" type="text/css" /> |
||||
|
<link rel="stylesheet" type="text/css" href="themes/<?php echo $GLOBALS['_CFG']['template']; ?>/quickLinks.css" /> |
||||
|
<link rel="alternate" type="application/rss+xml" title="RSS|<?php echo $this->_var['page_title']; ?>" href="<?php echo $this->_var['feed_url']; ?>" /> |
||||
|
<link rel="stylesheet" href="themes/<?php echo $GLOBALS['_CFG']['template']; ?>/purebox.css"> |
||||
|
|
||||
|
<?php echo $this->smarty_insert_scripts(array('files'=>'jquery-1.9.1.min.js,jquery.json.js,transport_jquery.js,cart_common.js,cart_quick_links.js')); ?> |
||||
|
<script type="text/javascript" src="themes/<?php echo $GLOBALS['_CFG']['template']; ?>/js/sc_common.js"></script> |
||||
|
<script type="text/javascript" src="themes/<?php echo $GLOBALS['_CFG']['template']; ?>/js/jquery.SuperSlide.2.1.1.js"></script> |
||||
|
<script type="text/javascript" src="themes/<?php echo $GLOBALS['_CFG']['template']; ?>/js/jquery.tabso_yeso.js"></script> |
||||
|
<script type="text/javascript" src="themes/<?php echo $GLOBALS['_CFG']['template']; ?>/js/jquery.yomi.js"></script> |
||||
|
<script type="text/javascript" src="themes/<?php echo $GLOBALS['_CFG']['template']; ?>/js/rotate3di.js"></script> |
||||
|
<script type="text/javascript" src="themes/<?php echo $GLOBALS['_CFG']['template']; ?>/js/ecsc-nav.js"></script> |
||||
|
<script type="text/javascript" src="themes/<?php echo $GLOBALS['_CFG']['template']; ?>/js/scroll_city.js"></script> |
||||
|
<script type="text/javascript" src="themes/<?php echo $GLOBALS['_CFG']['template']; ?>/js/notLogin.js"></script> |
||||
|
<script type="text/javascript" src="themes/<?php echo $GLOBALS['_CFG']['template']; ?>/js/asyLoadfloor.js"></script> |
||||
|
|
||||
|
<style>.suspension{display:none;}</style> |
||||
|
</head> |
||||
|
<body> |
||||
|
<?php echo $this->fetch('library/page_header_index.lbi'); ?> |
||||
|
<div class="banner"> |
||||
|
<div class="banner-box"> |
||||
|
<div class="bd"> |
||||
|
<?php echo $this->fetch('library/index_ad.lbi'); ?> |
||||
|
</div> |
||||
|
<div class="ecsc-warp"> |
||||
|
<div class="hd"><ul></ul></div> |
||||
|
<div class="focus-trigeminy"> |
||||
|
<div class="bd_lunbo"> |
||||
|
<ul> |
||||
|
<li> |
||||
|
|
||||
|
<?php $this->assign('ads_id','92'); ?><?php $this->assign('ads_num','1'); ?><?php echo $this->fetch('library/ad_position.lbi'); ?> |
||||
|
|
||||
|
|
||||
|
<?php $this->assign('ads_id','92'); ?><?php $this->assign('ads_num','2'); ?><?php echo $this->fetch('library/ad_position.lbi'); ?> |
||||
|
|
||||
|
|
||||
|
<?php $this->assign('ads_id','92'); ?><?php $this->assign('ads_num','3'); ?><?php echo $this->fetch('library/ad_position.lbi'); ?> |
||||
|
|
||||
|
</li> |
||||
|
<li> |
||||
|
|
||||
|
<?php $this->assign('ads_id','92'); ?><?php $this->assign('ads_num','4'); ?><?php echo $this->fetch('library/ad_position.lbi'); ?> |
||||
|
|
||||
|
|
||||
|
<?php $this->assign('ads_id','92'); ?><?php $this->assign('ads_num','5'); ?><?php echo $this->fetch('library/ad_position.lbi'); ?> |
||||
|
|
||||
|
|
||||
|
<?php $this->assign('ads_id','92'); ?><?php $this->assign('ads_num','6'); ?><?php echo $this->fetch('library/ad_position.lbi'); ?> |
||||
|
|
||||
|
</li> |
||||
|
<li> |
||||
|
|
||||
|
<?php $this->assign('ads_id','92'); ?><?php $this->assign('ads_num','7'); ?><?php echo $this->fetch('library/ad_position.lbi'); ?> |
||||
|
|
||||
|
|
||||
|
<?php $this->assign('ads_id','92'); ?><?php $this->assign('ads_num','8'); ?><?php echo $this->fetch('library/ad_position.lbi'); ?> |
||||
|
|
||||
|
|
||||
|
<?php $this->assign('ads_id','92'); ?><?php $this->assign('ads_num','9'); ?><?php echo $this->fetch('library/ad_position.lbi'); ?> |
||||
|
|
||||
|
</li> |
||||
|
</ul> |
||||
|
</div> |
||||
|
<a href="javascript:void(0);" class="tri_prev"></a> |
||||
|
<a href="javascript:void(0);" class="tri_next"></a> |
||||
|
</div> |
||||
|
<div class="right-sidebar"> |
||||
|
<?php echo $this->fetch('library/index_banner_group_ad.lbi'); ?> |
||||
|
<div class="proclamation"> |
||||
|
<ul class="tabs-nav"> |
||||
|
<li class="on">商城公告</li> |
||||
|
<li>招商入驻</li> |
||||
|
</ul> |
||||
|
<div class="tabs"> |
||||
|
<div class="tabs-panel"> |
||||
|
|
||||
|
<?php $this->assign('articles',$this->_var['articles_13']); ?><?php $this->assign('articles_cat',$this->_var['articles_cat_13']); ?><?php echo $this->fetch('library/cat_articles.lbi'); ?> |
||||
|
|
||||
|
</div> |
||||
|
<div class="tabs-panel" style=" display:none;"> |
||||
|
<div class="merSettled"> |
||||
|
<a href="merchants.php" target="_blank" class="store-join-btn" title="申请商家入驻;已提交申请,可查看当前审核状态。"></a> |
||||
|
<a href="merchants.php?id=57" target="_blank" class="store-join-help">查看开店协议</a> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div id="content"> |
||||
|
<div class="lazy-ecsc-warp"> |
||||
|
<div class="lazy-ecsc-done w1200"> |
||||
|
<div class="done-left"> |
||||
|
<div class="done-tabs"> |
||||
|
<ul class="done-tabs-nav"> |
||||
|
<li>热门推荐<i></i></li> |
||||
|
<li>疯狂抢购<i></i></li> |
||||
|
<li>商城推荐<i></i></li> |
||||
|
<li>热评商品<i></i></li> |
||||
|
</ul> |
||||
|
</div> |
||||
|
<div class="done-content"> |
||||
|
<div class="done-item"> |
||||
|
|
||||
|
<?php echo $this->fetch('library/recommend_hot.lbi'); ?> |
||||
|
|
||||
|
</div> |
||||
|
<div class="done-item"> |
||||
|
|
||||
|
<?php echo $this->fetch('library/recommend_promotion.lbi'); ?> |
||||
|
|
||||
|
</div> |
||||
|
<div class="done-item"> |
||||
|
|
||||
|
<?php echo $this->fetch('library/recommend_best.lbi'); ?> |
||||
|
|
||||
|
</div> |
||||
|
<div class="done-item"> |
||||
|
|
||||
|
<?php echo $this->fetch('library/recommend_new.lbi'); ?> |
||||
|
|
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="done-right"> |
||||
|
<?php echo $this->fetch('library/index_group_ad.lbi'); ?> |
||||
|
</div> |
||||
|
</div> |
||||
|
<?php echo $this->fetch('library/index_brand_ad.lbi'); ?> |
||||
|
<div id="goods_cat_level"> |
||||
|
|
||||
|
<?php $this->assign('cat_goods',$this->_var['cat_goods_8']); ?><?php $this->assign('goods_cat',$this->_var['goods_cat_8']); ?><?php echo $this->fetch('library/cat_goods.lbi'); ?> |
||||
|
<?php $this->assign('cat_goods',$this->_var['cat_goods_12']); ?><?php $this->assign('goods_cat',$this->_var['goods_cat_12']); ?><?php echo $this->fetch('library/cat_goods.lbi'); ?> |
||||
|
<?php $this->assign('cat_goods',$this->_var['cat_goods_6']); ?><?php $this->assign('goods_cat',$this->_var['goods_cat_6']); ?><?php echo $this->fetch('library/cat_goods.lbi'); ?> |
||||
|
<?php $this->assign('cat_goods',$this->_var['cat_goods_3']); ?><?php $this->assign('goods_cat',$this->_var['goods_cat_3']); ?><?php echo $this->fetch('library/cat_goods.lbi'); ?> |
||||
|
|
||||
|
</div> |
||||
|
<div class="w1200 floor" id="floor_loading" style="padding:220px 0px;"> |
||||
|
<div style="width:120px; height:100px; margin:auto;"><img src="themes/<?php echo $GLOBALS['_CFG']['template']; ?>/images/loading.gif"></div> |
||||
|
</div> |
||||
|
<?php echo $this->fetch('library/guess_you_like.lbi'); ?> |
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
<?php echo $this->fetch('library/page_footer.lbi'); ?> |
||||
|
<div id="elevator" class="elevator"> |
||||
|
<ul> |
||||
|
<li class="handler_floor1 curr"><i class="icon"></i></li> |
||||
|
<li class="handler_floor2"><i class="icon"></i></li> |
||||
|
<li class="handler_floor3"><i class="icon"></i></li> |
||||
|
<li class="handler_floor4"><i class="icon"></i></li> |
||||
|
</ul> |
||||
|
</div> |
||||
|
<div class="attached-search-container"> |
||||
|
<div class="attached_bg"></div> |
||||
|
<div class="w1200"> |
||||
|
<div class="fp-iconfont"><img src="themes/ecmoban_dsc/images/logo_2015_2.png" height="58" /></div> |
||||
|
<div class="mall-search"> |
||||
|
<form id="searchForm" name="searchForm" method="get" action="search.php" onSubmit="return checkSearchForm()" class="ecsc-search-form"> |
||||
|
<div class="ecsc-search-tabs"> |
||||
|
<i class="sc-icon-right"></i> |
||||
|
<ul class="shop_search" id="shop_search2"> |
||||
|
<?php if ($this->_var['search_type'] == 1): ?> |
||||
|
<li rev="1"><span>店铺</span></li> |
||||
|
<li rev="0" class="curr"><span>商品</span></li> |
||||
|
<?php else: ?> |
||||
|
<li rev="0"><span>商品</span></li> |
||||
|
<li rev="1" class="curr"><span>店铺</span></li> |
||||
|
<?php endif; ?> |
||||
|
</ul> |
||||
|
</div> |
||||
|
<input autocomplete="off" name="keywords" type="text" id="keyword2" value="<?php if ($this->_var['search_keywords']): ?><?php echo $this->_var['search_keywords']; ?><?php else: ?><?php |
||||
|
$k = array ( |
||||
|
'name' => 'rand_keyword', |
||||
|
); |
||||
|
echo $this->_echash . $k['name'] . '|' . serialize($k) . $this->_echash; |
||||
|
?><?php endif; ?>" class="ecsc-search-input"/> |
||||
|
<input type="hidden" name="store_search_cmt" value="<?php echo empty($this->_var['search_type']) ? '0' : $this->_var['search_type']; ?>"> |
||||
|
<button type="submit" class="ecsc-search-button"><i></i></button> |
||||
|
</form> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<?php |
||||
|
$k = array ( |
||||
|
'name' => 'user_menu_position', |
||||
|
); |
||||
|
echo $this->_echash . $k['name'] . '|' . serialize($k) . $this->_echash; |
||||
|
?> |
||||
|
|
||||
|
|
||||
|
<script type="text/javascript" src="themes/<?php echo $GLOBALS['_CFG']['template']; ?>/js/jfade.js"></script> |
||||
|
<script type="text/javascript" src="themes/<?php echo $GLOBALS['_CFG']['template']; ?>/js/jquery.purebox.js"></script> |
||||
|
<script type="text/javascript"> |
||||
|
//首页幻灯片 |
||||
|
$(".banner-box").slide({titCell:".hd ul",mainCell:".bd ul",effect:"fold",interTime:3500,delayTime:500,autoPlay:true,autoPage:true,trigger:"click",endFun:function(i,c,s){ |
||||
|
$(window).resize(function(){ |
||||
|
var width = $(window).width(); |
||||
|
s.find(".bd li").css("width",width); |
||||
|
}); |
||||
|
}}); |
||||
|
|
||||
|
//立即抢购滚动 |
||||
|
$(".right-sidebar").slide({mainCell:".panic-buy-slide ul",effect:"left",pnLoop:false,autoPlay:false,autoPage:true,scroll:1,vis:1,prevCell:".buy-prev",nextCell:".buy-next"}); |
||||
|
|
||||
|
//商城公告和招商入驻切换 |
||||
|
$(".proclamation").slide({titCell:".tabs-nav li",mainCell:".tabs"}); |
||||
|
|
||||
|
//首页新品热卖3条广告切换 |
||||
|
$(".focus-trigeminy").slide({mainCell:".bd_lunbo ul",effect:"left",pnLoop:false,autoPlay:false,autoPage:true,prevCell:".tri_prev",nextCell:".tri_next"}); |
||||
|
$(".focus-trigeminy").hover(function(){ |
||||
|
$(this).children(".tri_prev,.tri_next").animate({'opacity':0.5}); |
||||
|
},function(){ |
||||
|
$(this).children(".tri_prev,.tri_next").animate({'opacity':0}); |
||||
|
}); |
||||
|
|
||||
|
$('.bd_lunbo a').jfade({ |
||||
|
start_opacity: "1", |
||||
|
high_opacity: "1", |
||||
|
low_opacity: "0.5", |
||||
|
timing: "500" |
||||
|
}); |
||||
|
|
||||
|
//首页热门推荐,抢购,商城推荐,热评商品tab切换 |
||||
|
$(".done-left").slide({titCell:".done-tabs-nav li",mainCell:".done-content"}); |
||||
|
$("#dome1").slide({mainCell:".done-warp ul",effect:"left",pnLoop:false,autoPlay:false,autoPage:true,scroll:1,vis:5,prevCell:".done-prev",nextCell:".done-next"}); |
||||
|
$("#dome2").slide({mainCell:".done-warp ul",effect:"left",pnLoop:false,autoPlay:false,autoPage:true,scroll:1,vis:5,prevCell:".done-prev",nextCell:".done-next"}); |
||||
|
$("#dome3").slide({mainCell:".done-warp ul",effect:"left",pnLoop:false,autoPlay:false,autoPage:true,scroll:1,vis:5,prevCell:".done-prev",nextCell:".done-next"}); |
||||
|
$("#dome4").slide({mainCell:".done-warp ul",effect:"left",pnLoop:false,autoPlay:false,autoPage:true,scroll:1,vis:5,prevCell:".done-prev",nextCell:".done-next"}); |
||||
|
|
||||
|
//首页团购左右滚动 |
||||
|
$(".done-right").slide({mainCell:".shop-group ul",effect:"left",pnLoop:false,autoPlay:false,autoPage:true,scroll:1,vis:1}); |
||||
|
|
||||
|
//品牌街左右滚动 |
||||
|
$(".brand-warp").slide({mainCell:".brand-warp-list",effect:"left",pnLoop:false,autoPlay:false,autoPage:true,scroll:1,vis:1}); |
||||
|
$(".brand-adv").slide({titCell:".hd ul",mainCell:".bd ul",effect:"leftLoop",autoPlay:true,autoPage:true,scroll:1,vis:1}); |
||||
|
|
||||
|
//限时抢购倒计时 |
||||
|
$(".time").each(function(){ |
||||
|
$(this).yomi(); |
||||
|
}); |
||||
|
|
||||
|
//首页,顶级分类页广告栏按钮自适应宽度 |
||||
|
$.liWidth(".floor"); |
||||
|
$.liWidth(".brand-adv"); |
||||
|
|
||||
|
//首页悬浮栏 |
||||
|
$(window).scroll(function(){ |
||||
|
var scrollTop = $(document).scrollTop(); |
||||
|
var content = $(".nav").offset().top; |
||||
|
if(scrollTop>content){ |
||||
|
$(".attached-search-container").addClass("show"); |
||||
|
}else{ |
||||
|
$(".attached-search-container").removeClass("show"); |
||||
|
} |
||||
|
}); |
||||
|
|
||||
|
//楼层调用js |
||||
|
function load_js_content(key) |
||||
|
{ |
||||
|
var Floor = $("#floor_" + key); |
||||
|
|
||||
|
//首页楼层内banner广告 |
||||
|
Floor.find(".floor-left-banner").slide({titCell:".hd ul",mainCell:".bd ul",effect:"left",autoPlay:true,autoPage:true,delayTime:300,scroll:1,vis:1}); |
||||
|
|
||||
|
//首页楼层产品tab切换 |
||||
|
var tabsContent = Floor.find(".floor-tabs-content"); |
||||
|
Floor.find(".tab").tabso({cntSelect:tabsContent,tabEvent:"hover",tabStyle:"normal",onStyle:"on"}); |
||||
|
|
||||
|
//首页楼层内品牌切换 |
||||
|
Floor.find(".floor-brand").slide({mainCell:".bd-brand-list",effect:"left",pnLoop:false,autoPlay:false,autoPage:true,scroll:1,vis:1}); |
||||
|
|
||||
|
//首页标准模块中间多图广告鼠标触及凸显 |
||||
|
Floor.find('.floor-new > ul > li').jfade({ |
||||
|
start_opacity: "0.9", |
||||
|
high_opacity: "1", |
||||
|
low_opacity: ".25", |
||||
|
timing: "500" |
||||
|
}); |
||||
|
|
||||
|
Floor.find('.floor-tabs-content .ecsc-main > ul > li').jfade({ |
||||
|
start_opacity: "1", |
||||
|
high_opacity: "1", |
||||
|
low_opacity: "0.5", |
||||
|
timing: "500" |
||||
|
}); |
||||
|
|
||||
|
Floor.find(".floor-title .tab li").hover(function(){ |
||||
|
var width =$(this).width(); |
||||
|
$(this).find("i").css({"width":width+2}); |
||||
|
}); |
||||
|
Floor.find(".floor-title").each(function(){ |
||||
|
var li1 = $(this).find("li"); |
||||
|
var width = li1.width(); |
||||
|
li1.find("i").css({"width":width+2}); |
||||
|
}); |
||||
|
|
||||
|
//首页楼层分类 |
||||
|
Floor.find(".banner-nav").find("li").each(function(){ |
||||
|
$(this).mouseenter(function(){ |
||||
|
var index = $(this).index(); |
||||
|
$(this).parent().next().find("dd").eq(index).css({"background":"none"}); |
||||
|
$(this).children(".twoClass").show(); |
||||
|
}); |
||||
|
$(this).mouseleave(function(){ |
||||
|
var index = $(this).index(); |
||||
|
$(this).parent().next().find("dd").eq(index).css({"background":"#fff"}); |
||||
|
$(this).children(".twoClass").hide(); |
||||
|
}) |
||||
|
}); |
||||
|
|
||||
|
//楼层新品 |
||||
|
var num = Floor.find(".floor-new").length; |
||||
|
for(var i=0;i<num;i++){ |
||||
|
Floor.find(".floor-new").eq(i).find("li").eq(4).addClass("last"); |
||||
|
} |
||||
|
Floor.find(".floor-new li").hover(function(){ |
||||
|
$(this).addClass("current"); |
||||
|
},function(){ |
||||
|
$(this).removeClass("current"); |
||||
|
}); |
||||
|
|
||||
|
//图片延迟加载 |
||||
|
Floor.find("img.lazy").lazyload({ |
||||
|
effect : "fadeIn", |
||||
|
threshold:5000 |
||||
|
}); |
||||
|
Floor.prev().find("img.lazy").lazyload({ |
||||
|
effect : "fadeIn", |
||||
|
threshold:1000 |
||||
|
}); |
||||
|
Floor.find("a.lazy").lazyload({ |
||||
|
effect : "fadeIn", |
||||
|
threshold:1000 |
||||
|
}); |
||||
|
} |
||||
|
|
||||
|
//楼层异步加载封装函数调用 |
||||
|
$.homefloorLoad(); |
||||
|
|
||||
|
//首页楼层悬浮框 |
||||
|
function indexfloor(){ |
||||
|
var elevator,winHeight,winWidth,elevatorHeight,elevatorWidth,top,left,disTop,floors,li,index; |
||||
|
|
||||
|
elevator =$("#elevator"); |
||||
|
floors = $(".floor"); |
||||
|
li = elevator.find("li"); |
||||
|
winHeight = $(window).height(); |
||||
|
winWidth = $(window).width(); |
||||
|
elevatorHeight = elevator.height(); |
||||
|
elevatorWidth = elevator.width(); |
||||
|
top = (winHeight-elevatorHeight)/2; |
||||
|
left = (winWidth-1200)/2-elevatorWidth-40; |
||||
|
|
||||
|
disTop = $(".floor-container").offset().top - top; |
||||
|
elevator.css({"position":"fixed","top":top,"left":left}); |
||||
|
|
||||
|
$(window).resize(function(){ |
||||
|
winWidth = $(this).width(); |
||||
|
left = (winWidth-1200)/2-elevatorWidth-40; |
||||
|
elevator.css({"left":left}); |
||||
|
}); |
||||
|
li.click(function(){ |
||||
|
index = $(this).index(); |
||||
|
top = parseInt(floors.eq(index).offset().top); |
||||
|
$("body,html").stop().animate({scrollTop:top}); |
||||
|
}); |
||||
|
|
||||
|
$(window).scroll(function(){ |
||||
|
var scrollTop = $(document).scrollTop(); |
||||
|
var guessloveTop = $(".guess-love").offset().top; |
||||
|
if(scrollTop>disTop){ |
||||
|
elevator.stop().animate({"opacity":1}); |
||||
|
elevator.css({'*display':'block','display':'block '}); |
||||
|
}else{ |
||||
|
elevator.stop().animate({"opacity":0}); |
||||
|
elevator.css({'*display':'none','display':'none '}); |
||||
|
} |
||||
|
|
||||
|
if(scrollTop>guessloveTop-600){ |
||||
|
elevator.stop().animate({"opacity":0}); |
||||
|
elevator.css({'*display':'none','display':'none '}); |
||||
|
} |
||||
|
|
||||
|
for(var i=0;i<floors.length;i++){ |
||||
|
top = parseInt(floors.eq(i).offset().top); |
||||
|
if(scrollTop >= top-500){ |
||||
|
li.eq(i).addClass("curr").siblings().removeClass("curr"); |
||||
|
} |
||||
|
} |
||||
|
}); |
||||
|
} |
||||
|
</script> |
||||
|
</body> |
||||
|
</html> |
||||
@ -0,0 +1,8 @@ |
|||||
|
|
||||
|
<?php |
||||
|
$k = array ( |
||||
|
'name' => 'get_adv_child', |
||||
|
'ad_arr' => $this->_var['index_ad'], |
||||
|
); |
||||
|
echo $this->_echash . $k['name'] . '|' . serialize($k) . $this->_echash; |
||||
|
?> |
||||
@ -0,0 +1,10 @@ |
|||||
|
|
||||
|
<ul> |
||||
|
<?php $_from = $this->_var['ad_child']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'ad');$this->_foreach['noad'] = array('total' => count($_from), 'iteration' => 0); |
||||
|
if ($this->_foreach['noad']['total'] > 0): |
||||
|
foreach ($_from AS $this->_var['ad']): |
||||
|
$this->_foreach['noad']['iteration']++; |
||||
|
?> |
||||
|
<li <?php if ($this->_var['ad']['link_color']): ?>style="background:<?php echo $this->_var['ad']['link_color']; ?>;"<?php endif; ?>><div class="banner-width"><a href="<?php echo $this->_var['ad']['ad_link']; ?>" target="_blank" style="background:url(<?php echo $this->_var['ad']['ad_code']; ?>) no-repeat scroll center top <?php echo $this->_var['ad']['link_color']; ?>;"></a></div></li> |
||||
|
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?> |
||||
|
</ul> |
||||
@ -0,0 +1,10 @@ |
|||||
|
|
||||
|
<?php |
||||
|
$k = array ( |
||||
|
'name' => 'get_adv_child', |
||||
|
'ad_arr' => $this->_var['index_banner_group'], |
||||
|
'warehouse_id' => $this->_var['warehouse_id'], |
||||
|
'area_id' => $this->_var['area_id'], |
||||
|
); |
||||
|
echo $this->_echash . $k['name'] . '|' . serialize($k) . $this->_echash; |
||||
|
?> |
||||
@ -0,0 +1,33 @@ |
|||||
|
|
||||
|
<?php if ($this->_var['prom_ad']): ?> |
||||
|
<div class="panic-buying"> |
||||
|
<h3>限时抢购</h3> |
||||
|
<div class="panic-buy-slide"> |
||||
|
<ul> |
||||
|
<?php $_from = $this->_var['prom_ad']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'ad');$this->_foreach['noad'] = array('total' => count($_from), 'iteration' => 0); |
||||
|
if ($this->_foreach['noad']['total'] > 0): |
||||
|
foreach ($_from AS $this->_var['ad']): |
||||
|
$this->_foreach['noad']['iteration']++; |
||||
|
?> |
||||
|
<li> |
||||
|
<div class="time" data-time="<?php echo $this->_var['ad']['end_time']; ?>"> |
||||
|
<span class="days">00</span>天<span class="hours">00</span>时<span class="minutes">00</span>分<span class="seconds">00</span>秒 |
||||
|
</div> |
||||
|
<div class="buy-img"><a href="<?php echo $this->_var['ad']['ad_link']; ?>" target="_blank"><img src="<?php echo $this->_var['ad']['ad_code']; ?>" width="<?php echo $this->_var['ad']['ad_width']; ?>" height="<?php echo $this->_var['ad']['ad_height']; ?>" /></a></div> |
||||
|
<div class="buy-name"><a href="<?php echo $this->_var['ad']['ad_link']; ?>" title="<?php echo $this->_var['ad']['ad_name']; ?>"><?php echo $this->_var['ad']['goods_name']; ?></a></div> |
||||
|
<div class="buy-price"> |
||||
|
<span class="shop-price"><?php if ($this->_var['ad']['goods_info']['promote_price']): ?><?php echo $this->_var['ad']['goods_info']['promote_price']; ?><?php else: ?><?php echo $this->_var['ad']['goods_info']['shop_price']; ?><?php endif; ?></span> |
||||
|
<span class="original-price"><?php echo $this->_var['ad']['goods_info']['market_price']; ?></span> |
||||
|
</div> |
||||
|
<div class="buy-btn"> |
||||
|
<a href="<?php echo $this->_var['ad']['ad_link']; ?>" target="_blank" class="btn">立即抢 ></a> |
||||
|
<div class="buy-num"><?php echo empty($this->_var['ad']['goods_info']['sales_volume']) ? '0' : $this->_var['ad']['goods_info']['sales_volume']; ?>人已抢购</div> |
||||
|
</div> |
||||
|
</li> |
||||
|
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?> |
||||
|
</ul> |
||||
|
<a href="javascript:void(0);" class="buy-prev"></a> |
||||
|
<a href="javascript:void(0);" class="buy-next"></a> |
||||
|
</div> |
||||
|
</div> |
||||
|
<?php endif; ?> |
||||
@ -0,0 +1,20 @@ |
|||||
|
|
||||
|
<div class="lazy-ecsc-brand w1200"> |
||||
|
<div class="in-title"><i class="icon-r"></i><a href="brand.php" target="_blank" class="bit">品牌街</a></div> |
||||
|
<div class="brand-warp"> |
||||
|
<?php |
||||
|
$k = array ( |
||||
|
'name' => 'recommend_brands', |
||||
|
'num' => '14', |
||||
|
); |
||||
|
echo $this->_echash . $k['name'] . '|' . serialize($k) . $this->_echash; |
||||
|
?> |
||||
|
<?php |
||||
|
$k = array ( |
||||
|
'name' => 'get_adv_child', |
||||
|
'ad_arr' => $this->_var['index_brand_banner'], |
||||
|
); |
||||
|
echo $this->_echash . $k['name'] . '|' . serialize($k) . $this->_echash; |
||||
|
?> |
||||
|
</div> |
||||
|
</div> |
||||
@ -0,0 +1,17 @@ |
|||||
|
|
||||
|
<?php if ($this->_var['ad_child']): ?> |
||||
|
<div class="brand-adv"> |
||||
|
<div class="bd"> |
||||
|
<ul> |
||||
|
<?php $_from = $this->_var['ad_child']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'ad');$this->_foreach['noad'] = array('total' => count($_from), 'iteration' => 0); |
||||
|
if ($this->_foreach['noad']['total'] > 0): |
||||
|
foreach ($_from AS $this->_var['ad']): |
||||
|
$this->_foreach['noad']['iteration']++; |
||||
|
?> |
||||
|
<li><a href="<?php echo $this->_var['ad']['ad_link']; ?>" target="_blank"><img src="themes/<?php echo $GLOBALS['_CFG']['template']; ?>/images/loadBrandBanner.gif" style="max-width:<?php echo $this->_var['ad']['ad_width']; ?>px; max-height:<?php echo $this->_var['ad']['ad_width']; ?>px; display: inline;" class="lazy" data-original="<?php echo $this->_var['ad']['ad_code']; ?>"></a></li> |
||||
|
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?> |
||||
|
</ul> |
||||
|
</div> |
||||
|
<div class="hd"><ul></ul></div> |
||||
|
</div> |
||||
|
<?php endif; ?> |
||||
@ -0,0 +1,16 @@ |
|||||
|
|
||||
|
<?php if ($this->_var['recommend_brands']): ?> |
||||
|
<div class="brand-logos"> |
||||
|
<div class="brand-warp-list"> |
||||
|
<ul> |
||||
|
<?php $_from = $this->_var['recommend_brands']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'brand');if (count($_from)): |
||||
|
foreach ($_from AS $this->_var['brand']): |
||||
|
?> |
||||
|
<li><a href="brand.php?id=<?php echo $this->_var['brand']['brand_id']; ?>" target="_blank"><img src="themes/<?php echo $GLOBALS['_CFG']['template']; ?>/images/street_brand.gif" width="129" height="57" alt="<?php echo $this->_var['brand']['brand_name']; ?>"class="lazy" data-original="<?php echo $this->_var['brand']['brand_logo']; ?>"></a></li> |
||||
|
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?> |
||||
|
</ul> |
||||
|
</div> |
||||
|
<a href="javascript:void(0);" class="prev"></a> |
||||
|
<a href="javascript:void(0);" class="next"></a> |
||||
|
</div> |
||||
|
<?php endif; ?> |
||||
@ -0,0 +1,21 @@ |
|||||
|
|
||||
|
<div class="item-brands"> |
||||
|
<ul> |
||||
|
<?php $_from = $this->_var['brands_ad']['brands']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'brand');$this->_foreach['cat_brand'] = array('total' => count($_from), 'iteration' => 0); |
||||
|
if ($this->_foreach['cat_brand']['total'] > 0): |
||||
|
foreach ($_from AS $this->_var['brand']): |
||||
|
$this->_foreach['cat_brand']['iteration']++; |
||||
|
?> |
||||
|
<li class="brand-fore<?php echo $this->_foreach['cat_brand']['iteration']; ?>"> |
||||
|
<a href="<?php echo $this->_var['brand']['url']; ?>" target="_blank" title="<?php echo $this->_var['brand']['brand_name']; ?>"><img src="<?php echo $this->_var['brand']['brand_logo']; ?>" width="91" height="40" /></a> |
||||
|
</li> |
||||
|
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?> |
||||
|
</ul> |
||||
|
</div> |
||||
|
<div class="item-promotions"> |
||||
|
<?php $_from = $this->_var['brands_ad']['ad_position']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('pkey', 'posti');if (count($_from)): |
||||
|
foreach ($_from AS $this->_var['pkey'] => $this->_var['posti']): |
||||
|
?> |
||||
|
<a href="<?php echo $this->_var['posti']['ad_link']; ?>" target="_blank"><img width="<?php echo $this->_var['posti']['ad_width']; ?>" height="<?php echo $this->_var['posti']['ad_height']; ?>" src="<?php echo $this->_var['posti']['ad_code']; ?>" /></a> |
||||
|
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?> |
||||
|
</div> |
||||
@ -0,0 +1,8 @@ |
|||||
|
|
||||
|
<?php if ($this->_var['category_topic']): ?> |
||||
|
<?php $_from = $this->_var['category_topic']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'topic');if (count($_from)): |
||||
|
foreach ($_from AS $this->_var['topic']): |
||||
|
?> |
||||
|
<a href="<?php echo $this->_var['topic']['topic_link']; ?>" target="_blank"><?php echo $this->_var['topic']['topic_name']; ?><i>></i></a> |
||||
|
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?> |
||||
|
<?php endif; ?> |
||||
@ -0,0 +1,40 @@ |
|||||
|
|
||||
|
<?php $_from = $this->_var['child_tree']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'child');$this->_foreach['nocat_id'] = array('total' => count($_from), 'iteration' => 0); |
||||
|
if ($this->_foreach['nocat_id']['total'] > 0): |
||||
|
foreach ($_from AS $this->_var['child']): |
||||
|
$this->_foreach['nocat_id']['iteration']++; |
||||
|
?> |
||||
|
<dl class="dl_fore<?php echo $this->_foreach['nocat_id']['iteration']; ?>"> |
||||
|
<dt><a href="<?php echo $this->_var['child']['url']; ?>" target="_blank"><?php echo htmlspecialchars($this->_var['child']['name']); ?><i>></i></a></dt> |
||||
|
<dd> |
||||
|
<?php $_from = $this->_var['child']['cat_id']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'childer');$this->_foreach['nochild_cat'] = array('total' => count($_from), 'iteration' => 0); |
||||
|
if ($this->_foreach['nochild_cat']['total'] > 0): |
||||
|
foreach ($_from AS $this->_var['childer']): |
||||
|
$this->_foreach['nochild_cat']['iteration']++; |
||||
|
?> |
||||
|
<a href="<?php echo $this->_var['childer']['url']; ?>" target="_blank"><?php echo htmlspecialchars($this->_var['childer']['name']); ?></a> |
||||
|
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?> |
||||
|
</dd> |
||||
|
</dl> |
||||
|
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?> |
||||
|
|
||||
|
<div class="item-brands"> |
||||
|
<ul> |
||||
|
<?php $_from = $this->_var['brands']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'brand');$this->_foreach['cat_brand'] = array('total' => count($_from), 'iteration' => 0); |
||||
|
if ($this->_foreach['cat_brand']['total'] > 0): |
||||
|
foreach ($_from AS $this->_var['brand']): |
||||
|
$this->_foreach['cat_brand']['iteration']++; |
||||
|
?> |
||||
|
<li class="brand-fore<?php echo $this->_foreach['cat_brand']['iteration']; ?>"> |
||||
|
<a href="<?php echo $this->_var['brand']['url']; ?>" target="_blank" title="<?php echo $this->_var['brand']['brand_name']; ?>"><img src="<?php echo $this->_var['brand']['brand_logo']; ?>" width="91" height="40" /></a> |
||||
|
</li> |
||||
|
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?> |
||||
|
</ul> |
||||
|
</div> |
||||
|
<div class="item-promotions"> |
||||
|
<?php $_from = $this->_var['ad_position']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('pkey', 'posti');if (count($_from)): |
||||
|
foreach ($_from AS $this->_var['pkey'] => $this->_var['posti']): |
||||
|
?> |
||||
|
<a href="<?php echo $this->_var['posti']['ad_link']; ?>" target="_blank"><img width="<?php echo $this->_var['posti']['ad_width']; ?>" height="<?php echo $this->_var['posti']['ad_height']; ?>" src="<?php echo $this->_var['posti']['ad_code']; ?>" /></a> |
||||
|
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?> |
||||
|
</div> |
||||
@ -0,0 +1,8 @@ |
|||||
|
|
||||
|
<?php |
||||
|
$k = array ( |
||||
|
'name' => 'get_adv_child', |
||||
|
'ad_arr' => $this->_var['index_group_banner'], |
||||
|
); |
||||
|
echo $this->_echash . $k['name'] . '|' . serialize($k) . $this->_echash; |
||||
|
?> |
||||
@ -0,0 +1,24 @@ |
|||||
|
|
||||
|
<?php if ($this->_var['ad_child']): ?> |
||||
|
<div class="shop-group"> |
||||
|
<ul> |
||||
|
<?php $_from = $this->_var['ad_child']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'ad');$this->_foreach['noad'] = array('total' => count($_from), 'iteration' => 0); |
||||
|
if ($this->_foreach['noad']['total'] > 0): |
||||
|
foreach ($_from AS $this->_var['ad']): |
||||
|
$this->_foreach['noad']['iteration']++; |
||||
|
?> |
||||
|
<li> |
||||
|
<a href="<?php echo $this->_var['ad']['ad_link']; ?>" target="_blank"><img src="themes/<?php echo $GLOBALS['_CFG']['template']; ?>/images/loadGoods3.gif" style=" max-height:<?php echo $this->_var['ad']['ad_height']; ?>px; max-width:<?php echo $this->_var['ad']['ad_width']; ?>px;" class="lazy" data-original="<?php echo $this->_var['ad']['ad_code']; ?>"/></a> |
||||
|
<div class="group-ctr"> |
||||
|
<div class="time" data-time="<?php echo $this->_var['ad']['end_time']; ?>"> |
||||
|
<span class="days">00</span>天<span class="hours">00</span>时<span class="minutes">00</span>分<span class="seconds">00</span>秒 |
||||
|
</div> |
||||
|
</div> |
||||
|
</li> |
||||
|
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?> |
||||
|
</ul> |
||||
|
<a href="javascript:void(0);" class="prev"></a> |
||||
|
<a href="javascript:void(0);" class="next"></a> |
||||
|
<i class="picon"></i> |
||||
|
</div> |
||||
|
<?php endif; ?> |
||||
@ -0,0 +1,135 @@ |
|||||
|
|
||||
|
<?php echo $this->_var['get_adv']; ?> |
||||
|
|
||||
|
<div class="floor w1200" data-title="<?php echo $this->_var['goods_cat']['name']; ?>" data-idx="<?php echo $this->_var['goods_cat']['floor_sort_order']; ?>" id="floor_<?php echo $this->_var['goods_cat']['floor_sort_order']; ?>"> |
||||
|
<div class="floor-container"> |
||||
|
<div class="floor-title"> |
||||
|
<h2><i class="floor-icon"><?php echo $this->_var['goods_cat']['floor_sort_order']; ?>F</i><span rev='<?php echo $this->_var['goods_cat']['id']; ?>'><?php echo $this->_var['goods_cat']['name']; ?></span></h2> |
||||
|
<ul class="tab"> |
||||
|
<?php $_from = $this->_var['goods_cat']['goods_level2']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('key', 'goods_level2');$this->_foreach['foo'] = array('total' => count($_from), 'iteration' => 0); |
||||
|
if ($this->_foreach['foo']['total'] > 0): |
||||
|
foreach ($_from AS $this->_var['key'] => $this->_var['goods_level2']): |
||||
|
$this->_foreach['foo']['iteration']++; |
||||
|
?> |
||||
|
<?php if ($this->_var['key'] < 2): ?> |
||||
|
<li <?php if ($this->_foreach['foo']['iteration'] == 1): ?>class="on"<?php endif; ?>><?php echo $this->_var['goods_level2']['cat_name']; ?><i></i></li> |
||||
|
<?php endif; ?> |
||||
|
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?> |
||||
|
</ul> |
||||
|
</div> |
||||
|
<div class="floor-content"> |
||||
|
<div class="floor-left"> |
||||
|
<div class="floor-left-banner"> |
||||
|
<div class="bd"> |
||||
|
<?php echo $this->_var['cat_goods_banner']; ?> |
||||
|
</div> |
||||
|
<div class="hd"><ul></ul></div> |
||||
|
<i class="flip-icon-top"></i> |
||||
|
<i class="flip-icon-bottom"></i> |
||||
|
</div> |
||||
|
<div class="banner-nav"> |
||||
|
<ul class="oneClass"> |
||||
|
<?php $_from = $this->_var['goods_cat']['goods_level2']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'goods_level2');$this->_foreach['foo'] = array('total' => count($_from), 'iteration' => 0); |
||||
|
if ($this->_foreach['foo']['total'] > 0): |
||||
|
foreach ($_from AS $this->_var['goods_level2']): |
||||
|
$this->_foreach['foo']['iteration']++; |
||||
|
?> |
||||
|
<li> |
||||
|
<a href="<?php echo $this->_var['goods_level2']['url']; ?>" target="_blank" class="oneClass-name"><?php echo $this->_var['goods_level2']['cat_name']; ?> <i>></i></a> |
||||
|
<div class="twoClass"> |
||||
|
<?php $_from = $this->_var['goods_level2']['child_tree']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'child');$this->_foreach['foochild'] = array('total' => count($_from), 'iteration' => 0); |
||||
|
if ($this->_foreach['foochild']['total'] > 0): |
||||
|
foreach ($_from AS $this->_var['child']): |
||||
|
$this->_foreach['foochild']['iteration']++; |
||||
|
?> |
||||
|
<div class="item"><a href="<?php echo $this->_var['child']['url']; ?>" target="_blank"><?php echo $this->_var['child']['name']; ?></a></div> |
||||
|
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?> |
||||
|
</div> |
||||
|
</li> |
||||
|
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?> |
||||
|
</ul> |
||||
|
<dl> |
||||
|
<?php $_from = $this->_var['goods_cat']['goods_level2']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'goods_level2');$this->_foreach['foo'] = array('total' => count($_from), 'iteration' => 0); |
||||
|
if ($this->_foreach['foo']['total'] > 0): |
||||
|
foreach ($_from AS $this->_var['goods_level2']): |
||||
|
$this->_foreach['foo']['iteration']++; |
||||
|
?> |
||||
|
<dd></dd> |
||||
|
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?> |
||||
|
<dd></dd> |
||||
|
<dd></dd> |
||||
|
<dd></dd> |
||||
|
<dd></dd> |
||||
|
<dd></dd> |
||||
|
<dd></dd> |
||||
|
<dd></dd> |
||||
|
<dd></dd> |
||||
|
<dd></dd> |
||||
|
<dd></dd> |
||||
|
</dl> |
||||
|
</div> |
||||
|
<?php if ($this->_var['brands_theme2']): ?> |
||||
|
<div class="floor-brand"> |
||||
|
<div class="bd-brand-list"> |
||||
|
<?php $_from = $this->_var['brands_theme2']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('key1', 'brands');$this->_foreach['b_foo1'] = array('total' => count($_from), 'iteration' => 0); |
||||
|
if ($this->_foreach['b_foo1']['total'] > 0): |
||||
|
foreach ($_from AS $this->_var['key1'] => $this->_var['brands']): |
||||
|
$this->_foreach['b_foo1']['iteration']++; |
||||
|
?> |
||||
|
<ul> |
||||
|
<?php $_from = $this->_var['brands']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('key2', 'brands');$this->_foreach['b_foo2'] = array('total' => count($_from), 'iteration' => 0); |
||||
|
if ($this->_foreach['b_foo2']['total'] > 0): |
||||
|
foreach ($_from AS $this->_var['key2'] => $this->_var['brands']): |
||||
|
$this->_foreach['b_foo2']['iteration']++; |
||||
|
?> |
||||
|
<li<?php if (($this->_foreach['b_foo2']['iteration'] == $this->_foreach['b_foo2']['total'])): ?> class="last"<?php endif; ?>><a href="<?php echo $this->_var['brands']['url']; ?>" target="_blank" title="<?php echo $this->_var['brands']['brand_name']; ?>"><img src="<?php echo $this->_var['brands']['brand_logo']; ?>" width="100" height="44"></a></li> |
||||
|
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?> |
||||
|
</ul> |
||||
|
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?> |
||||
|
</div> |
||||
|
|
||||
|
<a href="javascript:void(0);" class="prev"></a> |
||||
|
<a href="javascript:void(0);" class="next"></a> |
||||
|
</div> |
||||
|
<?php endif; ?> |
||||
|
</div> |
||||
|
<div class="floor-right"> |
||||
|
<div class="floor-tabs-content"> |
||||
|
<?php $_from = $this->_var['goods_cat']['goods_level3']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('key', 'goods_level3');$this->_foreach['foo'] = array('total' => count($_from), 'iteration' => 0); |
||||
|
if ($this->_foreach['foo']['total'] > 0): |
||||
|
foreach ($_from AS $this->_var['key'] => $this->_var['goods_level3']): |
||||
|
$this->_foreach['foo']['iteration']++; |
||||
|
?> |
||||
|
<?php if ($this->_var['key'] < 2): ?> |
||||
|
<div class="ecsc-main" <?php if (! ($this->_foreach['foo']['iteration'] <= 1)): ?>style="display:none"<?php endif; ?>> |
||||
|
<ul class="p-list"> |
||||
|
<?php $_from = $this->_var['goods_level3']['goods']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'goods');$this->_foreach['foo'] = array('total' => count($_from), 'iteration' => 0); |
||||
|
if ($this->_foreach['foo']['total'] > 0): |
||||
|
foreach ($_from AS $this->_var['goods']): |
||||
|
$this->_foreach['foo']['iteration']++; |
||||
|
?> |
||||
|
<li> |
||||
|
<div class="p-img"><a href="<?php echo $this->_var['goods']['url']; ?>" target="_blank"><img src="themes/<?php echo $GLOBALS['_CFG']['template']; ?>/images/loadGoods.gif" width="140" height="140" class="lazy" data-original="<?php echo $this->_var['goods']['goods_thumb']; ?>"></a></div> |
||||
|
<div class="p-name"><a href="<?php echo $this->_var['goods']['url']; ?>" title="<?php echo htmlspecialchars($this->_var['goods']['name']); ?>"><?php echo htmlspecialchars($this->_var['goods']['goods_name']); ?></a></div> |
||||
|
<div class="p-price"> |
||||
|
<span class="shop-price"> |
||||
|
<?php if ($this->_var['goods']['promote_price'] != ''): ?> |
||||
|
<?php echo $this->_var['goods']['promote_price']; ?> |
||||
|
<?php else: ?> |
||||
|
<?php echo $this->_var['goods']['shop_price']; ?> |
||||
|
<?php endif; ?> |
||||
|
</span> |
||||
|
<span class="original-price"><?php echo $this->_var['goods']['market_price']; ?></span> |
||||
|
</div> |
||||
|
</li> |
||||
|
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?> |
||||
|
</ul> |
||||
|
</div> |
||||
|
<?php endif; ?> |
||||
|
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<?php echo $this->_var['cat_goods_hot']; ?> |
||||
|
</div> |
||||
|
</div> |
||||
@ -0,0 +1,14 @@ |
|||||
|
|
||||
|
<?php if ($this->_var['ad_child']): ?> |
||||
|
<div class="bd"> |
||||
|
<ul> |
||||
|
<?php $_from = $this->_var['ad_child']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'ad');$this->_foreach['noad'] = array('total' => count($_from), 'iteration' => 0); |
||||
|
if ($this->_foreach['noad']['total'] > 0): |
||||
|
foreach ($_from AS $this->_var['ad']): |
||||
|
$this->_foreach['noad']['iteration']++; |
||||
|
?> |
||||
|
<li style="background:<?php echo $this->_var['ad']['link_color']; ?>;"><div class="banner-width" style="background:url(<?php echo $this->_var['ad']['ad_code']; ?>) no-repeat;"></div></li> |
||||
|
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?> |
||||
|
</ul> |
||||
|
</div> |
||||
|
<?php endif; ?> |
||||
@ -0,0 +1,12 @@ |
|||||
|
|
||||
|
<?php if ($this->_var['user_info']): ?> |
||||
|
您好 |
||||
|
<span> |
||||
|
<a href="user.php"><?php echo $this->_var['user_info']['username']; ?></a>,欢迎来到<a alt="首页" title="首页" href="index.php"> |
||||
|
<span><?php echo $this->_var['shop_name']; ?></span> |
||||
|
</a> |
||||
|
</span> |
||||
|
<span>[<a href="user.php?act=logout"><?php echo $this->_var['lang']['user_logout']; ?></a>]</span> |
||||
|
<?php else: ?> |
||||
|
<a href="user.php" class="link-login style-red">请登录</a><a href="user.php?act=register" class="link-regist">注册</a> |
||||
|
<?php endif; ?> |
||||
@ -0,0 +1,197 @@ |
|||||
|
<?php echo $this->smarty_insert_scripts(array('files'=>'transport_jquery.js,utils.js')); ?> |
||||
|
|
||||
|
<div id="ECS_ORDERTOTAL"> |
||||
|
<div class="order-summary"> |
||||
|
<div class="statistic"> |
||||
|
<div class="list"> |
||||
|
<span><?php echo $this->_var['lang']['goods_all_price']; ?>:</span> |
||||
|
<em class="price" id="warePriceId"><?php echo $this->_var['total']['goods_price_formated']; ?></em> |
||||
|
</div> |
||||
|
<?php if ($this->_var['total']['discount'] > 0): ?> |
||||
|
<div class="list"> |
||||
|
<span><?php echo $this->_var['lang']['discount']; ?>:</span> |
||||
|
<em class="price" id="cachBackId"> -<?php echo $this->_var['total']['discount_formated']; ?></em> |
||||
|
</div> |
||||
|
<?php endif; ?> |
||||
|
<?php if ($this->_var['total']['tax'] > 0): ?> |
||||
|
<div class="list"> |
||||
|
<span><?php echo $this->_var['lang']['tax']; ?>:</span> |
||||
|
<em class="price" id="cachBackId"> +<?php echo $this->_var['total']['tax_formated']; ?></em> |
||||
|
</div> |
||||
|
<?php endif; ?> |
||||
|
<?php if ($this->_var['total']['shipping_fee'] > 0): ?> |
||||
|
<div class="list"> |
||||
|
<span><?php echo $this->_var['lang']['shipping_fee']; ?>:</span> |
||||
|
<em class="price" id="freightPriceId"> |
||||
|
<?php echo $this->_var['total']['shipping_fee_formated']; ?> |
||||
|
</em> |
||||
|
</div> |
||||
|
<?php endif; ?> |
||||
|
|
||||
|
<?php if ($this->_var['total']['shipping_insure'] > 0): ?> |
||||
|
<div class="list"> |
||||
|
<span><?php echo $this->_var['lang']['insure_fee']; ?>:</span> |
||||
|
<em class="price" id="cachBackId"> +<?php echo $this->_var['total']['shipping_insure_formated']; ?></em> |
||||
|
</div> |
||||
|
<?php endif; ?> |
||||
|
<?php if ($this->_var['total']['pay_fee'] > 0): ?> |
||||
|
<div class="list"> |
||||
|
<span><?php echo $this->_var['lang']['pay_fee']; ?>:</span> |
||||
|
<em class="price" id="cachBackId"> +<?php echo $this->_var['total']['pay_fee_formated']; ?></em> |
||||
|
</div> |
||||
|
<?php endif; ?> |
||||
|
<?php if ($this->_var['total']['pack_fee'] > 0): ?> |
||||
|
<div class="list"> |
||||
|
<span><?php echo $this->_var['lang']['pack_fee']; ?>:</span> |
||||
|
<em class="price" id="cachBackId"> +<?php echo $this->_var['total']['pack_fee_formated']; ?></em> |
||||
|
</div> |
||||
|
<?php endif; ?> |
||||
|
<?php if ($this->_var['total']['card_fee'] > 0): ?> |
||||
|
<div class="list"> |
||||
|
<span><?php echo $this->_var['lang']['card_fee']; ?>:</span> |
||||
|
<em class="price" id="cachBackId"> +<?php echo $this->_var['total']['card_fee_formated']; ?></em> |
||||
|
</div> |
||||
|
<?php endif; ?> |
||||
|
|
||||
|
<?php if ($this->_var['total']['surplus'] > 0 || $this->_var['total']['integral'] > 0 || $this->_var['total']['bonus'] > 0): ?> |
||||
|
<?php if ($this->_var['total']['surplus'] > 0): ?> |
||||
|
<div class="list"> |
||||
|
<span><?php echo $this->_var['lang']['use_surplus']; ?>:</span> |
||||
|
<em class="price" id="cachBackId"> -<?php echo $this->_var['total']['surplus_formated']; ?></em> |
||||
|
</div> |
||||
|
<?php endif; ?> |
||||
|
<?php if ($this->_var['total']['integral'] > 0): ?> |
||||
|
<div class="list"> |
||||
|
<span><?php echo $this->_var['lang']['use_integral']; ?>:</span> |
||||
|
<em class="price" id="cachBackId"> -<?php echo $this->_var['total']['integral_formated']; ?></em> |
||||
|
</div> |
||||
|
<?php endif; ?> |
||||
|
<?php if ($this->_var['total']['bonus'] > 0): ?> |
||||
|
<div class="list"> |
||||
|
<span><?php echo $this->_var['lang']['use_bonus']; ?>:</span> |
||||
|
<em class="price" id="cachBackId"> -<?php echo $this->_var['total']['bonus_formated']; ?></em> |
||||
|
</div> |
||||
|
<?php endif; ?> |
||||
|
<?php endif; ?> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="trade-foot"> |
||||
|
<div class="checkout-buttons"> |
||||
|
<div class="sticky-wrap"> |
||||
|
<div class="inner"> |
||||
|
<input name="rec_number_str" value="" type="hidden"> |
||||
|
<div class="btn-area"> |
||||
|
<input type="submit" class="submit-btn" value="提交订单"/> |
||||
|
</div> |
||||
|
<!-- 表单元素 --> |
||||
|
<input type="submit" class="submit-btn" value="大连支付" onclick="showConfirmation()"> |
||||
|
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11.1.5/dist/sweetalert2.all.min.js"></script> |
||||
|
<script> |
||||
|
function showConfirmation() { |
||||
|
Swal.fire({ |
||||
|
title: '支付确认', |
||||
|
text: '您确认已经支付成功了吗?', |
||||
|
icon: 'question', |
||||
|
showCancelButton: true, |
||||
|
confirmButtonText: '确认', |
||||
|
cancelButtonText: '取消', |
||||
|
customClass: { |
||||
|
confirmButton: 'btn btn-success', |
||||
|
cancelButton: 'btn btn-danger' |
||||
|
} |
||||
|
}).then((result) => { |
||||
|
if (result.isConfirmed) { |
||||
|
// 用户点击了确认按钮 |
||||
|
// 在这里执行任何必要的操作 |
||||
|
var param1 = 'some value'; // 将参数存储在变量中 |
||||
|
var param2 = 'another value'; |
||||
|
fetch('process_payment.php', { |
||||
|
method: 'POST', |
||||
|
body: JSON.stringify({param1: param1, param2: param2}) |
||||
|
}) |
||||
|
.then(response => response.json()) |
||||
|
.then(data => { |
||||
|
// 在这里处理服务器返回的数据 |
||||
|
Swal.fire(data.message, '', data.status); |
||||
|
}) |
||||
|
.catch(error => { |
||||
|
console.error('Error:', error); |
||||
|
}); |
||||
|
} else { |
||||
|
// 用户点击了取消按钮 |
||||
|
// 在这里执行任何必要的操作 |
||||
|
Swal.fire('支付取消!', '', 'error'); |
||||
|
} |
||||
|
}); |
||||
|
} |
||||
|
</script> |
||||
|
<span class="total"> |
||||
|
<?php if ($this->_var['total']['exchange_integral']): ?> |
||||
|
<span class="txt flow_exchange_goods"><?php echo $this->_var['lang']['notice_eg_integral']; ?></span> |
||||
|
<strong id="payPriceId" class="flow_exchange_goods"><?php echo $this->_var['total']['exchange_integral']; ?></strong> |
||||
|
<span class="txt" style="padding-left:15px; display:none"> |
||||
|
使用支付类型: |
||||
|
<select name="pay_type" id="sel_pay_type"> |
||||
|
<option value="0">RMB支付</option> |
||||
|
<option value="1" <?php if ($this->_var['is_exchange_goods'] == 1): ?>selected<?php endif; ?>>积分支付</option> |
||||
|
</select> |
||||
|
</span> |
||||
|
|
||||
|
<?php endif; ?> |
||||
|
|
||||
|
<span class="txt flow_general_goods"><?php echo $this->_var['lang']['total_fee']; ?>:</span> |
||||
|
<strong id="payPriceId" class="flow_general_goods"><?php echo $this->_var['total']['amount_formated']; ?></strong> |
||||
|
</span> |
||||
|
<div class="amount-sum">已选择<em><?php echo $this->_var['cart_goods_number']; ?></em>件商品</div> |
||||
|
<?php if ($this->_var['is_group_buy']): ?><div class="amount-sum"><strong><?php echo $this->_var['lang']['notice_gb_order_amount']; ?></strong></div><?php endif; ?> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="consignee-foot"> |
||||
|
<p>寄送至:<?php echo $this->_var['consignee']['consignee_address']; ?></p> |
||||
|
<p>收货人:<?php echo $this->_var['consignee']['consignee']; ?> <?php echo $this->_var['consignee']['mobile']; ?></p> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<script type="text/javascript"> |
||||
|
$(function(){ |
||||
|
$("input[name='rec_number']").each(function(index, element) { |
||||
|
if($(element).val() == 1){ |
||||
|
$(".inner .btn-area").addClass('no_goods'); |
||||
|
$(".inner .btn-area").attr('data-url', 'ajax_dialog.php?act=goods_stock_exhausted&warehouse_id=' + <?php echo $this->_var['warehouse_id']; ?> + '&area_id=' + <?php echo $this->_var['area_id']; ?>); |
||||
|
$(".inner .btn-area").html('<input type="button" class="submit-btn" value="提交订单"/>'); |
||||
|
return false; |
||||
|
} |
||||
|
}); |
||||
|
|
||||
|
var rec_number = new Array(); |
||||
|
$("input[name='rec_number']").each(function(index, element) { |
||||
|
if($(element).val() == 1){ |
||||
|
rec_number.push($(element).attr('id')); |
||||
|
} |
||||
|
}); |
||||
|
|
||||
|
$("input[name='rec_number_str']").val(rec_number); |
||||
|
|
||||
|
<?php if ($this->_var['is_exchange_goods'] == 1 || $this->_var['total']['real_goods_count'] == 0): ?> |
||||
|
$('.flow_exchange_goods').show(); |
||||
|
|
||||
|
$('#sel_pay_type').change(function(){ |
||||
|
var T = $(this); |
||||
|
var val = T.val(); |
||||
|
if(val == 1){ |
||||
|
$('.payment-list').parent().parent('.step-complete').hide(); |
||||
|
$('.flow_general_goods').hide(); |
||||
|
$('.flow_exchange_goods').show(); |
||||
|
}else{ |
||||
|
$('.payment-list').parent().parent('.step-complete').show(); |
||||
|
$('.flow_general_goods').show(); |
||||
|
$('.flow_exchange_goods').hide(); |
||||
|
} |
||||
|
}); |
||||
|
<?php endif; ?> |
||||
|
}); |
||||
|
</script> |
||||
|
|
||||
|
|
||||
|
|
||||
@ -0,0 +1,147 @@ |
|||||
|
<div id="footer"> |
||||
|
<div class="global-footer-lazy"> |
||||
|
<div class="ecsc-service-flow"> |
||||
|
<div class="ecsc-service-item"><i class="ecsc-zp"></i><span>正品保障</span></div> |
||||
|
<div class="ecsc-service-item"><i class="ecsc-qt"></i><span>七天包退</span></div> |
||||
|
<div class="ecsc-service-item"><i class="ecsc-hp"></i><span>好评如潮</span></div> |
||||
|
<div class="ecsc-service-item"><i class="ecsc-sd"></i><span>闪电发货</span></div> |
||||
|
<div class="ecsc-service-item last"><i class="ecsc-ry"></i><span>权威荣誉</span></div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="footer-desc"> |
||||
|
<div class="footer-desc-list"> |
||||
|
<?php $_from = $this->_var['helps']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'help_cat');$this->_foreach['no'] = array('total' => count($_from), 'iteration' => 0); |
||||
|
if ($this->_foreach['no']['total'] > 0): |
||||
|
foreach ($_from AS $this->_var['help_cat']): |
||||
|
$this->_foreach['no']['iteration']++; |
||||
|
?> |
||||
|
<?php if ($this->_foreach['no']['iteration'] < 6): ?> |
||||
|
<dl <?php if (($this->_foreach['no']['iteration'] == $this->_foreach['no']['total'])): ?>class="contact-us"<?php endif; ?>> |
||||
|
<dt><?php echo $this->_var['help_cat']['cat_name']; ?></dt> |
||||
|
<?php $_from = $this->_var['help_cat']['article']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'item');if (count($_from)): |
||||
|
foreach ($_from AS $this->_var['item']): |
||||
|
?> |
||||
|
<dd><a href="<?php echo $this->_var['item']['url']; ?>" title="<?php echo htmlspecialchars($this->_var['item']['title']); ?>"><i>></i><?php echo $this->_var['item']['short_title']; ?></a></dd> |
||||
|
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?> |
||||
|
</dl> |
||||
|
<?php endif; ?> |
||||
|
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?> |
||||
|
<div class="QR_code"> |
||||
|
<ul class="tabs"><li class="current">ECJia</li><li>ECtouch</li></ul> |
||||
|
<div class="code_warp"> |
||||
|
<div class="code_tp"><img src="themes/ecmoban_dsc/images/ECJia_code.png"></div> |
||||
|
<div class="code_tp hide"><img src="themes/ecmoban_dsc/images/ECtouch_code.png"></div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="footer-desc-copyright"> |
||||
|
<?php if ($this->_var['navigator_list']['bottom']): ?> |
||||
|
<p class="footer-ecscinfo"> |
||||
|
<?php $_from = $this->_var['navigator_list']['bottom']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'nav_0_87888100_1689900044');$this->_foreach['nav_bottom_list'] = array('total' => count($_from), 'iteration' => 0); |
||||
|
if ($this->_foreach['nav_bottom_list']['total'] > 0): |
||||
|
foreach ($_from AS $this->_var['nav_0_87888100_1689900044']): |
||||
|
$this->_foreach['nav_bottom_list']['iteration']++; |
||||
|
?> |
||||
|
<a href="<?php echo $this->_var['nav_0_87888100_1689900044']['url']; ?>" <?php if ($this->_var['nav_0_87888100_1689900044']['opennew'] == 1): ?> target="_blank" <?php endif; ?>><?php echo $this->_var['nav_0_87888100_1689900044']['name']; ?></a> |
||||
|
<?php if (! ($this->_foreach['nav_bottom_list']['iteration'] == $this->_foreach['nav_bottom_list']['total'])): ?> |
||||
|
| |
||||
|
<?php endif; ?> |
||||
|
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?> |
||||
|
</p> |
||||
|
<?php endif; ?> |
||||
|
<?php if ($this->_var['img_links'] || $this->_var['txt_links']): ?> |
||||
|
<p class="footer-otherlink"> |
||||
|
<?php $_from = $this->_var['img_links']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'link');if (count($_from)): |
||||
|
foreach ($_from AS $this->_var['link']): |
||||
|
?> |
||||
|
<a href="<?php echo $this->_var['link']['url']; ?>" target="_blank" title="<?php echo $this->_var['link']['name']; ?>"><img src="<?php echo $this->_var['link']['logo']; ?>" alt="<?php echo $this->_var['link']['name']; ?>" border="0" /></a> |
||||
|
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?> |
||||
|
<?php if ($this->_var['txt_links']): ?> |
||||
|
<?php $_from = $this->_var['txt_links']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'link');$this->_foreach['nolink'] = array('total' => count($_from), 'iteration' => 0); |
||||
|
if ($this->_foreach['nolink']['total'] > 0): |
||||
|
foreach ($_from AS $this->_var['link']): |
||||
|
$this->_foreach['nolink']['iteration']++; |
||||
|
?> |
||||
|
<a href="<?php echo $this->_var['link']['url']; ?>" target="_blank" title="<?php echo $this->_var['link']['name']; ?>"><?php echo $this->_var['link']['name']; ?></a> |
||||
|
<?php if (! ($this->_foreach['nolink']['iteration'] == $this->_foreach['nolink']['total'])): ?> |
||||
|
| |
||||
|
<?php endif; ?> |
||||
|
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?> |
||||
|
<?php endif; ?> |
||||
|
</p> |
||||
|
<?php endif; ?> |
||||
|
<?php if ($this->_var['icp_number']): ?> |
||||
|
<b style="display:none"><?php echo $this->_var['lang']['icp_number']; ?>:<a href="http://www.miibeian.gov.cn/" target="_blank"><?php echo $this->_var['icp_number']; ?></a></b> |
||||
|
<?php endif; ?> |
||||
|
<p style="display:none"><?php |
||||
|
$k = array ( |
||||
|
'name' => 'query_info', |
||||
|
); |
||||
|
echo $this->_echash . $k['name'] . '|' . serialize($k) . $this->_echash; |
||||
|
?></p> |
||||
|
<p> </p> |
||||
|
<?php if ($this->_var['stats_code']): ?> |
||||
|
<p style="text-align:right; display:none;"><?php echo $this->_var['stats_code']; ?></p> |
||||
|
<?php endif; ?> |
||||
|
<p class="footer-fp-img"> |
||||
|
<a href="#" target="_blank"><img src="themes/<?php echo $GLOBALS['_CFG']['template']; ?>/images/banquan_1.jpg"></a> |
||||
|
<a href="#" target="_blank"><img src="themes/<?php echo $GLOBALS['_CFG']['template']; ?>/images/banquan_2.jpg"></a> |
||||
|
<a href="#" target="_blank"><img src="themes/<?php echo $GLOBALS['_CFG']['template']; ?>/images/banquan_3.jpg"></a> |
||||
|
<a href="#" target="_blank"><img src="themes/<?php echo $GLOBALS['_CFG']['template']; ?>/images/banquan_4.jpg"></a> |
||||
|
<a href="#" target="_blank"><img src="themes/<?php echo $GLOBALS['_CFG']['template']; ?>/images/banquan_5.jpg"></a> |
||||
|
</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
<input name="seller_kf_qq" value="<?php echo $this->_var['basic_info']['kf_qq']; ?>" type="hidden"> |
||||
|
<input name="seller_kf_tel" value="<?php echo $this->_var['basic_info']['kf_tel']; ?>" type="hidden"> |
||||
|
<?php if ($this->_var['suspension_two']): ?> |
||||
|
<script>var seller_qrcode='<img src="<?php echo $this->_var['seller_qrcode_img']; ?>" alt="<?php echo $this->_var['seller_qrcode_text']; ?>" width="164" height="164">'; //by wu</script> |
||||
|
<?php echo $this->_var['suspension_two']; ?> |
||||
|
<?php endif; ?> |
||||
|
<script type="text/javascript"> |
||||
|
$("#clear_price").click(function(){ |
||||
|
$("#price-min").val(''); |
||||
|
$("#price-max").val(''); |
||||
|
}); |
||||
|
|
||||
|
$(".QR_code li").hover(function(){ |
||||
|
var index = $(this).index(); |
||||
|
$(this).addClass("current").siblings().removeClass("current"); |
||||
|
$(".QR_code .code_tp").eq(index).removeClass("hide").siblings().addClass("hide"); |
||||
|
}) |
||||
|
|
||||
|
function checkSearchForm(){ |
||||
|
var keywords = $("input[name='keywords']").val(); |
||||
|
|
||||
|
if(keywords == ''){ |
||||
|
|
||||
|
divId = "keywords_html"; |
||||
|
var content = '<div id="' + divId + '">' + |
||||
|
'<div class="tip-box icon-box">' + |
||||
|
'<span class="warn-icon m-icon"></span>' + |
||||
|
'<div class="item-fore">' + |
||||
|
'<h3 class="rem ftx-04">您搜索内容的关键字不能空</h3>' + |
||||
|
'</div>' + |
||||
|
'</div>' + |
||||
|
'</div>'; |
||||
|
|
||||
|
pb({ |
||||
|
id:divId, |
||||
|
title:'提示', |
||||
|
width:445, |
||||
|
height:58, |
||||
|
content:content, //调取内容 |
||||
|
drag:false, |
||||
|
foot:false |
||||
|
}); |
||||
|
|
||||
|
return false; |
||||
|
} |
||||
|
} |
||||
|
</script> |
||||
|
<!--[if lte IE 8]> |
||||
|
<?php echo $this->smarty_insert_scripts(array('files'=>'IE7Fix.js')); ?> |
||||
|
<![endif]--> |
||||
|
|
||||
@ -0,0 +1,54 @@ |
|||||
|
|
||||
|
<div id="footer" class="footer-minto"> |
||||
|
<div class="footer-desc-copyright"> |
||||
|
<?php if ($this->_var['navigator_list']['bottom']): ?> |
||||
|
<p class="footer-ecscinfo"> |
||||
|
<?php $_from = $this->_var['navigator_list']['bottom']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'nav_0_58260500_1689838728');$this->_foreach['nav_bottom_list'] = array('total' => count($_from), 'iteration' => 0); |
||||
|
if ($this->_foreach['nav_bottom_list']['total'] > 0): |
||||
|
foreach ($_from AS $this->_var['nav_0_58260500_1689838728']): |
||||
|
$this->_foreach['nav_bottom_list']['iteration']++; |
||||
|
?> |
||||
|
<a href="<?php echo $this->_var['nav_0_58260500_1689838728']['url']; ?>" <?php if ($this->_var['nav_0_58260500_1689838728']['opennew'] == 1): ?> target="_blank" <?php endif; ?>><?php echo $this->_var['nav_0_58260500_1689838728']['name']; ?></a> |
||||
|
<?php if (! ($this->_foreach['nav_bottom_list']['iteration'] == $this->_foreach['nav_bottom_list']['total'])): ?> |
||||
|
| |
||||
|
<?php endif; ?> |
||||
|
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?> |
||||
|
</p> |
||||
|
<?php endif; ?> |
||||
|
<?php if ($this->_var['img_links'] || $this->_var['txt_links']): ?> |
||||
|
<p class="footer-otherlink"> |
||||
|
<?php $_from = $this->_var['img_links']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'link');if (count($_from)): |
||||
|
foreach ($_from AS $this->_var['link']): |
||||
|
?> |
||||
|
<a href="<?php echo $this->_var['link']['url']; ?>" target="_blank" title="<?php echo $this->_var['link']['name']; ?>"><img src="<?php echo $this->_var['link']['logo']; ?>" alt="<?php echo $this->_var['link']['name']; ?>" border="0" /></a> |
||||
|
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?> |
||||
|
<?php if ($this->_var['txt_links']): ?> |
||||
|
<?php $_from = $this->_var['txt_links']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'link');$this->_foreach['nolink'] = array('total' => count($_from), 'iteration' => 0); |
||||
|
if ($this->_foreach['nolink']['total'] > 0): |
||||
|
foreach ($_from AS $this->_var['link']): |
||||
|
$this->_foreach['nolink']['iteration']++; |
||||
|
?> |
||||
|
<a href="<?php echo $this->_var['link']['url']; ?>" target="_blank" title="<?php echo $this->_var['link']['name']; ?>"><?php echo $this->_var['link']['name']; ?></a> |
||||
|
<?php if (! ($this->_foreach['nolink']['iteration'] == $this->_foreach['nolink']['total'])): ?> |
||||
|
| |
||||
|
<?php endif; ?> |
||||
|
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?> |
||||
|
<?php endif; ?> |
||||
|
</p> |
||||
|
<?php endif; ?> |
||||
|
<?php if ($this->_var['icp_number']): ?> |
||||
|
<b><?php echo $this->_var['lang']['icp_number']; ?>:<a href="http://www.miibeian.gov.cn/" target="_blank"><?php echo $this->_var['icp_number']; ?></a></b> |
||||
|
<?php endif; ?> |
||||
|
<p> </p> |
||||
|
<p class="footer-fp-img"> |
||||
|
<a href="#" target="_blank"><img src="themes/<?php echo $GLOBALS['_CFG']['template']; ?>/images/banquan_1.jpg"></a> |
||||
|
<a href="#" target="_blank"><img src="themes/<?php echo $GLOBALS['_CFG']['template']; ?>/images/banquan_2.jpg"></a> |
||||
|
<a href="#" target="_blank"><img src="themes/<?php echo $GLOBALS['_CFG']['template']; ?>/images/banquan_3.jpg"></a> |
||||
|
<a href="#" target="_blank"><img src="themes/<?php echo $GLOBALS['_CFG']['template']; ?>/images/banquan_4.jpg"></a> |
||||
|
<a href="#" target="_blank"><img src="themes/<?php echo $GLOBALS['_CFG']['template']; ?>/images/banquan_5.jpg"></a> |
||||
|
</p> |
||||
|
</div> |
||||
|
</div> |
||||
|
<!--[if lte IE 8]> |
||||
|
<?php echo $this->smarty_insert_scripts(array('files'=>'IE7Fix.js')); ?> |
||||
|
<![endif]--> |
||||
@ -0,0 +1,87 @@ |
|||||
|
<link rel="stylesheet" type="text/css" href="themes/<?php echo $GLOBALS['_CFG']['template']; ?>/suggest.css" /> |
||||
|
<?php echo $this->smarty_insert_scripts(array('files'=>'suggest.js')); ?> |
||||
|
<div id="site-nav" class="page_flow"> |
||||
|
<div class="w1200 dorpdown"> |
||||
|
<?php |
||||
|
$k = array ( |
||||
|
'name' => 'header_region', |
||||
|
); |
||||
|
echo $this->_echash . $k['name'] . '|' . serialize($k) . $this->_echash; |
||||
|
?> |
||||
|
<div class="ecsc-login" id="ECS_MEMBERZONE"> |
||||
|
<?php |
||||
|
$k = array ( |
||||
|
'name' => 'member_info', |
||||
|
); |
||||
|
echo $this->_echash . $k['name'] . '|' . serialize($k) . $this->_echash; |
||||
|
?> |
||||
|
</div> |
||||
|
<ul class="quick-menu fr"> |
||||
|
<?php if ($this->_var['navigator_list']['top']): ?> |
||||
|
<?php $_from = $this->_var['navigator_list']['top']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('key', 'nav');$this->_foreach['nav_top_list'] = array('total' => count($_from), 'iteration' => 0); |
||||
|
if ($this->_foreach['nav_top_list']['total'] > 0): |
||||
|
foreach ($_from AS $this->_var['key'] => $this->_var['nav']): |
||||
|
$this->_foreach['nav_top_list']['iteration']++; |
||||
|
?> |
||||
|
<?php if (($this->_foreach['nav_top_list']['iteration'] - 1) < 4): ?> |
||||
|
<li> |
||||
|
<div class="dt"><a href="<?php echo $this->_var['nav']['url']; ?>" ><?php echo $this->_var['nav']['name']; ?></a></div> |
||||
|
</li> |
||||
|
<li class="spacer"></li> |
||||
|
<?php endif; ?> |
||||
|
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?> |
||||
|
<?php endif; ?> |
||||
|
<?php if ($this->_var['navigator_list']['top']): ?> |
||||
|
<li class="li_dorpdown"> |
||||
|
<div class="dt"><a href="<?php echo $this->_var['nav']['url']; ?>" >促销活动</a><i class="ci-right"><s>◇</s></i></div> |
||||
|
<div class="dd dorpdown-layer"> |
||||
|
<div class="dd-spacer"></div> |
||||
|
<?php $_from = $this->_var['navigator_list']['top']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('key', 'nav');$this->_foreach['nav_top_list'] = array('total' => count($_from), 'iteration' => 0); |
||||
|
if ($this->_foreach['nav_top_list']['total'] > 0): |
||||
|
foreach ($_from AS $this->_var['key'] => $this->_var['nav']): |
||||
|
$this->_foreach['nav_top_list']['iteration']++; |
||||
|
?> |
||||
|
<?php if (($this->_foreach['nav_top_list']['iteration'] - 1) >= 4): ?> |
||||
|
<div class="item"><a href="<?php echo $this->_var['nav']['url']; ?>" ><?php echo $this->_var['nav']['name']; ?></a></div> |
||||
|
<?php endif; ?> |
||||
|
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?> |
||||
|
</div> |
||||
|
</li> |
||||
|
<?php endif; ?> |
||||
|
</ul> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="header w1200"> |
||||
|
<div id="logo"><a href="./index.php"><img src="themes/ecmoban_dsc/images/logo.gif" /></a></div> |
||||
|
<div class="ecsc-search cart-search"> |
||||
|
<form id="searchForm" name="searchForm" method="get" action="search.php" onSubmit="return checkSearchForm()" class="ecsc-search-form"> |
||||
|
<div class="ecsc-search-tabs"> |
||||
|
<i class="sc-icon-right"></i> |
||||
|
<ul class="shop_search" id="shop_search"> |
||||
|
<?php if ($this->_var['search_type'] == 1): ?> |
||||
|
<li rev="1"><span>店铺</span></li> |
||||
|
<li rev="0" class="curr"><span>商品</span></li> |
||||
|
<?php else: ?> |
||||
|
<li rev="0"><span>商品</span></li> |
||||
|
<li rev="1" class="curr"><span>店铺</span></li> |
||||
|
<?php endif; ?> |
||||
|
</ul> |
||||
|
</div> |
||||
|
<input autocomplete="off" onKeyUp="lookup(this.value);" name="keywords" type="text" id="keyword" value="<?php |
||||
|
$k = array ( |
||||
|
'name' => 'rand_keyword', |
||||
|
); |
||||
|
echo $this->_echash . $k['name'] . '|' . serialize($k) . $this->_echash; |
||||
|
?>" class="ecsc-search-input"/> |
||||
|
<input type="hidden" name="store_search_cmt" value="<?php echo empty($this->_var['search_type']) ? '0' : $this->_var['search_type']; ?>"> |
||||
|
<button type="submit" class="ecsc-search-button"><i></i></button> |
||||
|
</form> |
||||
|
|
||||
|
<div class="suggestions_box" id="suggestions" style="display:none;"> |
||||
|
<div class="suggestions_list" id="auto_suggestions_list"> |
||||
|
|
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
</div> |
||||
|
</div> |
||||
@ -0,0 +1,214 @@ |
|||||
|
<link rel="stylesheet" type="text/css" href="themes/<?php echo $GLOBALS['_CFG']['template']; ?>/suggest.css" /> |
||||
|
<?php echo $this->smarty_insert_scripts(array('files'=>'suggest.js,jquery.lazyload.js')); ?> |
||||
|
<?php |
||||
|
$k = array ( |
||||
|
'name' => 'get_adv', |
||||
|
'logo_name' => $this->_var['top_banner'], |
||||
|
); |
||||
|
echo $this->_echash . $k['name'] . '|' . serialize($k) . $this->_echash; |
||||
|
?> |
||||
|
|
||||
|
<div id="site-nav"> |
||||
|
<div class="w1200 dorpdown"> |
||||
|
<?php |
||||
|
$k = array ( |
||||
|
'name' => 'header_region', |
||||
|
); |
||||
|
echo $this->_echash . $k['name'] . '|' . serialize($k) . $this->_echash; |
||||
|
?> |
||||
|
<div class="user-entry"></div> |
||||
|
<div class="ecsc-login" id="ECS_MEMBERZONE"> |
||||
|
<?php |
||||
|
$k = array ( |
||||
|
'name' => 'member_info', |
||||
|
); |
||||
|
echo $this->_echash . $k['name'] . '|' . serialize($k) . $this->_echash; |
||||
|
?> |
||||
|
</div> |
||||
|
<ul class="quick-menu fr"> |
||||
|
<?php if ($this->_var['navigator_list']['top']): ?> |
||||
|
<?php $_from = $this->_var['navigator_list']['top']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('key', 'nav');$this->_foreach['nav_top_list'] = array('total' => count($_from), 'iteration' => 0); |
||||
|
if ($this->_foreach['nav_top_list']['total'] > 0): |
||||
|
foreach ($_from AS $this->_var['key'] => $this->_var['nav']): |
||||
|
$this->_foreach['nav_top_list']['iteration']++; |
||||
|
?> |
||||
|
<?php if (($this->_foreach['nav_top_list']['iteration'] - 1) < 4): ?> |
||||
|
<li> |
||||
|
<div class="dt"><a href="<?php echo $this->_var['nav']['url']; ?>" ><?php echo $this->_var['nav']['name']; ?></a></div> |
||||
|
</li> |
||||
|
<li class="spacer"></li> |
||||
|
<?php endif; ?> |
||||
|
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?> |
||||
|
<?php endif; ?> |
||||
|
<?php if ($this->_var['navigator_list']['top']): ?> |
||||
|
<li class="li_dorpdown"> |
||||
|
<div class="dt"><a href="<?php echo $this->_var['nav']['url']; ?>" >促销活动</a><i class="ci-right"><s>◇</s></i></div> |
||||
|
<div class="dd dorpdown-layer"> |
||||
|
<div class="dd-spacer"></div> |
||||
|
<?php $_from = $this->_var['navigator_list']['top']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('key', 'nav');$this->_foreach['nav_top_list'] = array('total' => count($_from), 'iteration' => 0); |
||||
|
if ($this->_foreach['nav_top_list']['total'] > 0): |
||||
|
foreach ($_from AS $this->_var['key'] => $this->_var['nav']): |
||||
|
$this->_foreach['nav_top_list']['iteration']++; |
||||
|
?> |
||||
|
<?php if (($this->_foreach['nav_top_list']['iteration'] - 1) >= 4): ?> |
||||
|
<div class="item"><a href="<?php echo $this->_var['nav']['url']; ?>" ><?php echo $this->_var['nav']['name']; ?></a></div> |
||||
|
<?php endif; ?> |
||||
|
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?> |
||||
|
</div> |
||||
|
</li> |
||||
|
<?php endif; ?> |
||||
|
</ul> |
||||
|
<div class="shopcart-2015" id="ECS_CARTINFO"> |
||||
|
<?php |
||||
|
$k = array ( |
||||
|
'name' => 'cart_info', |
||||
|
); |
||||
|
echo $this->_echash . $k['name'] . '|' . serialize($k) . $this->_echash; |
||||
|
?> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="header w1200"> |
||||
|
<div class="ecsc-logo"><a href="./index.php" class="logo"><img src="themes/ecmoban_dsc/images/logo.gif" /></a></div> |
||||
|
<div class="ecsc-join"><a href="merchants.php" target="_blank"><img src="themes/ecmoban_dsc/images/ecsc-join.gif" /></a></div> |
||||
|
<div class="ecsc-search"> |
||||
|
<form id="searchForm" name="searchForm" method="get" action="search.php" onSubmit="return checkSearchForm()" class="ecsc-search-form"> |
||||
|
<div class="ecsc-search-tabs"> |
||||
|
<i class="sc-icon-right"></i> |
||||
|
<ul class="shop_search" id="shop_search"> |
||||
|
<?php if ($this->_var['search_type'] == 1): ?> |
||||
|
<li rev="1"><span>店铺</span></li> |
||||
|
<li rev="0" class="curr"><span>商品</span></li> |
||||
|
<?php else: ?> |
||||
|
<li rev="0"><span>商品</span></li> |
||||
|
<li rev="1" class="curr"><span>店铺</span></li> |
||||
|
<?php endif; ?> |
||||
|
</ul> |
||||
|
</div> |
||||
|
<input autocomplete="off" onKeyUp="lookup(this.value);" name="keywords" type="text" id="keyword" value="<?php |
||||
|
$k = array ( |
||||
|
'name' => 'rand_keyword', |
||||
|
); |
||||
|
echo $this->_echash . $k['name'] . '|' . serialize($k) . $this->_echash; |
||||
|
?>" class="ecsc-search-input"/> |
||||
|
<input type="hidden" name="store_search_cmt" value="<?php echo empty($this->_var['search_type']) ? '0' : $this->_var['search_type']; ?>"> |
||||
|
<button type="submit" class="ecsc-search-button"><i></i></button> |
||||
|
</form> |
||||
|
<div class="keyword"> |
||||
|
<?php if ($this->_var['searchkeywords']): ?> |
||||
|
<ul> |
||||
|
<?php $_from = $this->_var['searchkeywords']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'val');if (count($_from)): |
||||
|
foreach ($_from AS $this->_var['val']): |
||||
|
?> <li><a href="search.php?keywords=<?php echo urlencode($this->_var['val']); ?>" target="_blank"><?php echo $this->_var['val']; ?></a></li> <?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?> |
||||
|
</ul> |
||||
|
<?php endif; ?> |
||||
|
</div> |
||||
|
|
||||
|
<div class="suggestions_box" id="suggestions" style="display:none;"> |
||||
|
<div class="suggestions_list" id="auto_suggestions_list"> |
||||
|
|
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
</div> |
||||
|
<div class="site-commitment"> |
||||
|
<div class="site-commitment-front"><a href="#" target="_blank"></a></div> |
||||
|
<div class="site-commitment-back"><a href="#" target="_blank"></a></div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="nav"> |
||||
|
<div class="w1200"> |
||||
|
<div class="categorys home_categorys"> |
||||
|
<div class="dt"><a href="categoryall.php" target="_blank">全部商品分类</a></div> |
||||
|
<div class="dd"> |
||||
|
<div class="cata-nav" id="cata-nav"> |
||||
|
<?php $_from = $this->_var['categories_pro']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'cat');$this->_foreach['categories_pro'] = array('total' => count($_from), 'iteration' => 0); |
||||
|
if ($this->_foreach['categories_pro']['total'] > 0): |
||||
|
foreach ($_from AS $this->_var['cat']): |
||||
|
$this->_foreach['categories_pro']['iteration']++; |
||||
|
?> |
||||
|
<div class="item fore<?php echo $this->_foreach['categories_pro']['iteration']; ?>"> |
||||
|
<div class="item-left"> |
||||
|
<div class="cata-nav-name" data-id="<?php echo $this->_var['cat']['id']; ?>" eveval="0"> |
||||
|
<h3> |
||||
|
<?php if ($this->_var['cat']['category_link'] == 1): ?> |
||||
|
<?php echo $this->_var['cat']['name']; ?> |
||||
|
<?php else: ?> |
||||
|
<a href="<?php echo $this->_var['cat']['url']; ?>" title="<?php echo htmlspecialchars($this->_var['cat']['name']); ?>"><?php echo htmlspecialchars($this->_var['cat']['name']); ?></a> |
||||
|
<?php endif; ?> |
||||
|
</h3> |
||||
|
</div> |
||||
|
<b>></b> |
||||
|
</div> |
||||
|
<div class="cata-nav-layer"> |
||||
|
<div class="cata-nav-left"> |
||||
|
<div class="item-channels"> |
||||
|
<div class="channels" id="channels_<?php echo $this->_var['cat']['id']; ?>"> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="subitems" id="subitems_<?php echo $this->_var['cat']['id']; ?>"> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="cata-nav-rigth" id="item_brands<?php echo $this->_var['cat']['id']; ?>"> |
||||
|
|
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="navitems" id="nav"> |
||||
|
<ul> |
||||
|
<li><a href="index.php" <?php if ($this->_var['navigator_list']['config']['index'] == 1): ?>class="selected"<?php endif; ?>>首页</a></li> |
||||
|
<?php $_from = $this->_var['navigator_list']['middle']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'nav');$this->_foreach['nav_middle_list'] = array('total' => count($_from), 'iteration' => 0); |
||||
|
if ($this->_foreach['nav_middle_list']['total'] > 0): |
||||
|
foreach ($_from AS $this->_var['nav']): |
||||
|
$this->_foreach['nav_middle_list']['iteration']++; |
||||
|
?> |
||||
|
<li><a href="<?php echo $this->_var['nav']['url']; ?>" <?php if ($this->_var['nav']['active'] == 1): ?>class="selected"<?php endif; ?> <?php if ($this->_var['nav']['opennew']): ?>target="_blank"<?php endif; ?>><?php echo $this->_var['nav']['name']; ?></a></li> |
||||
|
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?> |
||||
|
</ul> |
||||
|
<div class="wrap-line"><span style="left:15px;"></span></div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<script type="text/javascript"> |
||||
|
/*首页分类树*/ |
||||
|
$(function(){ |
||||
|
$('#cata-nav .item').unbind('mouseenter').bind('mouseenter',function(){ |
||||
|
var T = $(this); |
||||
|
var cat_id = T.children('.item-left').children('.cata-nav-name').data('id'); |
||||
|
var eveval = T.children('.item-left').children('.cata-nav-name').attr('eveval'); |
||||
|
|
||||
|
if(eveval != 1){ |
||||
|
T.children('.item-left').children('.cata-nav-name').attr('eveval', '1'); |
||||
|
/*加载中by wu*/ |
||||
|
$('#subitems_' + cat_id).html('<img src="themes/ecmoban_dsc/images/loadGoods.gif" width="200" height="200" class="lazy" style="margin:100px 281px">'); |
||||
|
$.ajax({ |
||||
|
type: "GET", |
||||
|
url: "ajax_dialog.php", |
||||
|
data: "act=getCategoryCallback&cat_id=" + cat_id, |
||||
|
dataType:'json', |
||||
|
success: function(data){ |
||||
|
var strLength = Number(data.topic_content.length) |
||||
|
if(strLength == 2 || strLength == 0){ |
||||
|
$('#channels_' + data.cat_id).parent('.item-channels').hide(); |
||||
|
} |
||||
|
$('#channels_' + data.cat_id).html(data.topic_content); |
||||
|
$('#subitems_' + data.cat_id).html(data.cat_content); |
||||
|
$('#item_brands' + data.cat_id).html(data.brands_ad_content); |
||||
|
} |
||||
|
}); |
||||
|
} |
||||
|
|
||||
|
T.addClass("selected"); |
||||
|
T.children('.cata-nav-layer').show(); |
||||
|
}); |
||||
|
|
||||
|
$('#cata-nav .item').unbind('mouseleave').bind('mouseleave',function(){ |
||||
|
$(this).removeClass("selected"); |
||||
|
$(this).children(".cata-nav-layer").hide(); |
||||
|
}); |
||||
|
}); |
||||
|
</script> |
||||
@ -0,0 +1,195 @@ |
|||||
|
<link rel="stylesheet" type="text/css" href="themes/<?php echo $GLOBALS['_CFG']['template']; ?>/suggest.css" /> |
||||
|
<?php echo $this->smarty_insert_scripts(array('files'=>'suggest.js')); ?> |
||||
|
<div id="site-nav"> |
||||
|
<div class="w1200 dorpdown"> |
||||
|
<?php |
||||
|
$k = array ( |
||||
|
'name' => 'header_region', |
||||
|
); |
||||
|
echo $this->_echash . $k['name'] . '|' . serialize($k) . $this->_echash; |
||||
|
?> |
||||
|
<div class="ecsc-login" id="ECS_MEMBERZONE"> |
||||
|
<?php |
||||
|
$k = array ( |
||||
|
'name' => 'member_info', |
||||
|
); |
||||
|
echo $this->_echash . $k['name'] . '|' . serialize($k) . $this->_echash; |
||||
|
?> |
||||
|
</div> |
||||
|
<ul class="quick-menu fr"> |
||||
|
<?php if ($this->_var['navigator_list']['top']): ?> |
||||
|
<?php $_from = $this->_var['navigator_list']['top']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('key', 'nav');$this->_foreach['nav_top_list'] = array('total' => count($_from), 'iteration' => 0); |
||||
|
if ($this->_foreach['nav_top_list']['total'] > 0): |
||||
|
foreach ($_from AS $this->_var['key'] => $this->_var['nav']): |
||||
|
$this->_foreach['nav_top_list']['iteration']++; |
||||
|
?> |
||||
|
<?php if (($this->_foreach['nav_top_list']['iteration'] - 1) < 4): ?> |
||||
|
<li> |
||||
|
<div class="dt"><a href="<?php echo $this->_var['nav']['url']; ?>" ><?php echo $this->_var['nav']['name']; ?></a></div> |
||||
|
</li> |
||||
|
<li class="spacer"></li> |
||||
|
<?php endif; ?> |
||||
|
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?> |
||||
|
<?php endif; ?> |
||||
|
<?php if ($this->_var['navigator_list']['top']): ?> |
||||
|
<li class="li_dorpdown"> |
||||
|
<div class="dt"><a href="<?php echo $this->_var['nav']['url']; ?>" >促销活动</a><i class="ci-right"><s>◇</s></i></div> |
||||
|
<div class="dd dorpdown-layer"> |
||||
|
<div class="dd-spacer"></div> |
||||
|
<?php $_from = $this->_var['navigator_list']['top']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('key', 'nav');$this->_foreach['nav_top_list'] = array('total' => count($_from), 'iteration' => 0); |
||||
|
if ($this->_foreach['nav_top_list']['total'] > 0): |
||||
|
foreach ($_from AS $this->_var['key'] => $this->_var['nav']): |
||||
|
$this->_foreach['nav_top_list']['iteration']++; |
||||
|
?> |
||||
|
<?php if (($this->_foreach['nav_top_list']['iteration'] - 1) >= 4): ?> |
||||
|
<div class="item"><a href="<?php echo $this->_var['nav']['url']; ?>" ><?php echo $this->_var['nav']['name']; ?></a></div> |
||||
|
<?php endif; ?> |
||||
|
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?> |
||||
|
</div> |
||||
|
</li> |
||||
|
<?php endif; ?> |
||||
|
</ul> |
||||
|
<div class="shopcart-2015" id="ECS_CARTINFO"> |
||||
|
<?php |
||||
|
$k = array ( |
||||
|
'name' => 'cart_info', |
||||
|
); |
||||
|
echo $this->_echash . $k['name'] . '|' . serialize($k) . $this->_echash; |
||||
|
?> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="header w1200"> |
||||
|
<div id="logo"><a href="./index.php"><img src="themes/ecmoban_dsc/images/logo.gif" /></a></div> |
||||
|
<div class="ecsc-join"><a href="merchants.php" target="_blank"><img src="themes/ecmoban_dsc/images/ecsc-join.gif" /></a></div> |
||||
|
<div class="ecsc-search cart-search"> |
||||
|
<form id="searchForm" name="searchForm" method="get" action="search.php" onSubmit="return checkSearchForm()" class="ecsc-search-form"> |
||||
|
<div class="ecsc-search-tabs"> |
||||
|
<i class="sc-icon-right"></i> |
||||
|
<ul class="shop_search" id="shop_search"> |
||||
|
<?php if ($this->_var['search_type'] == 1): ?> |
||||
|
<li rev="1"><span>店铺</span></li> |
||||
|
<li rev="0" class="curr"><span>商品</span></li> |
||||
|
<?php else: ?> |
||||
|
<li rev="0"><span>商品</span></li> |
||||
|
<li rev="1" class="curr"><span>店铺</span></li> |
||||
|
<?php endif; ?> |
||||
|
</ul> |
||||
|
</div> |
||||
|
<input autocomplete="off" onKeyUp="lookup(this.value);" name="keywords" type="text" id="keyword" value="<?php |
||||
|
$k = array ( |
||||
|
'name' => 'rand_keyword', |
||||
|
); |
||||
|
echo $this->_echash . $k['name'] . '|' . serialize($k) . $this->_echash; |
||||
|
?>" class="ecsc-search-input"/> |
||||
|
<input type="hidden" name="store_search_cmt" value="<?php echo empty($this->_var['search_type']) ? '0' : $this->_var['search_type']; ?>"> |
||||
|
<button type="submit" class="ecsc-search-button"><i></i></button> |
||||
|
</form> |
||||
|
|
||||
|
<div class="suggestions_box" id="suggestions" style="display:none;"> |
||||
|
<div class="suggestions_list" id="auto_suggestions_list"> |
||||
|
|
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="nav ecsc-zoom"> |
||||
|
<div class="w1200"> |
||||
|
<div class="categorys site-mast"> |
||||
|
<div class="dt"><a href="categoryall.php" target="_blank">全部商品分类</a><i class="sc-icon-right"></i></div> |
||||
|
<div class="dd" style="display:none"> |
||||
|
<div class="cata-nav" id="cata-nav"> |
||||
|
<?php $_from = $this->_var['categories_pro']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'cat');$this->_foreach['categories_pro'] = array('total' => count($_from), 'iteration' => 0); |
||||
|
if ($this->_foreach['categories_pro']['total'] > 0): |
||||
|
foreach ($_from AS $this->_var['cat']): |
||||
|
$this->_foreach['categories_pro']['iteration']++; |
||||
|
?> |
||||
|
<div class="item fore<?php echo $this->_foreach['categories_pro']['iteration']; ?>"> |
||||
|
<div class="item-left"> |
||||
|
<div class="cata-nav-name" data-id="<?php echo $this->_var['cat']['id']; ?>" eveval="0"> |
||||
|
<h3> |
||||
|
<?php if ($this->_var['cat']['category_link'] == 1): ?> |
||||
|
<?php echo $this->_var['cat']['name']; ?> |
||||
|
<?php else: ?> |
||||
|
<a href="<?php echo $this->_var['cat']['url']; ?>" title="<?php echo htmlspecialchars($this->_var['cat']['name']); ?>"><?php echo htmlspecialchars($this->_var['cat']['name']); ?></a> |
||||
|
<?php endif; ?> |
||||
|
</h3> |
||||
|
</div> |
||||
|
<b>></b> |
||||
|
</div> |
||||
|
<div class="cata-nav-layer"> |
||||
|
<div class="cata-nav-left"> |
||||
|
<div class="item-channels"> |
||||
|
<div class="channels" id="channels_<?php echo $this->_var['cat']['id']; ?>"> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="subitems" id="subitems_<?php echo $this->_var['cat']['id']; ?>"> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="cata-nav-rigth" id="item_brands<?php echo $this->_var['cat']['id']; ?>"> |
||||
|
|
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="navitems" id="nav"> |
||||
|
<ul> |
||||
|
<li><a href="index.php" <?php if ($this->_var['navigator_list']['config']['index'] == 1): ?>class="selected"<?php endif; ?>>首页</a></li> |
||||
|
<?php $_from = $this->_var['navigator_list']['middle']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'nav');$this->_foreach['nav_middle_list'] = array('total' => count($_from), 'iteration' => 0); |
||||
|
if ($this->_foreach['nav_middle_list']['total'] > 0): |
||||
|
foreach ($_from AS $this->_var['nav']): |
||||
|
$this->_foreach['nav_middle_list']['iteration']++; |
||||
|
?> |
||||
|
<li><a href="<?php echo $this->_var['nav']['url']; ?>" <?php if ($this->_var['nav']['active'] == 1): ?>class="selected"<?php endif; ?> <?php if ($this->_var['nav']['opennew']): ?>target="_blank"<?php endif; ?>><?php echo $this->_var['nav']['name']; ?></a></li> |
||||
|
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?> |
||||
|
</ul> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
<script type="text/javascript"> |
||||
|
/*首页分类树*/ |
||||
|
$(function(){ |
||||
|
$('#cata-nav .item').unbind('mouseenter').bind('mouseenter',function(){ |
||||
|
var T = $(this); |
||||
|
var cat_id = T.children('.item-left').children('.cata-nav-name').data('id'); |
||||
|
var eveval = T.children('.item-left').children('.cata-nav-name').attr('eveval'); |
||||
|
|
||||
|
if(eveval != 1){ |
||||
|
T.children('.item-left').children('.cata-nav-name').attr('eveval', '1'); |
||||
|
/*加载中by wu*/ |
||||
|
$('#subitems_' + cat_id).html('<img src="themes/ecmoban_dsc/images/loadGoods.gif" width="200" height="200" class="lazy" style="margin:100px 281px">'); |
||||
|
$.ajax({ |
||||
|
type: "GET", |
||||
|
url: "ajax_dialog.php", |
||||
|
data: "act=getCategoryCallback&cat_id=" + cat_id, |
||||
|
dataType:'json', |
||||
|
success: function(data){ |
||||
|
var strLength = Number(data.topic_content.length) |
||||
|
if(strLength == 2 || strLength == 0){ |
||||
|
$('#channels_' + data.cat_id).parent('.item-channels').hide(); |
||||
|
} |
||||
|
$('#channels_' + data.cat_id).html(data.topic_content); |
||||
|
$('#subitems_' + data.cat_id).html(data.cat_content); |
||||
|
$('#item_brands' + data.cat_id).html(data.brands_ad_content); |
||||
|
} |
||||
|
}); |
||||
|
} |
||||
|
|
||||
|
T.addClass("selected"); |
||||
|
T.children('.cata-nav-layer').show(); |
||||
|
}); |
||||
|
|
||||
|
$('#cata-nav .item').unbind('mouseleave').bind('mouseleave',function(){ |
||||
|
$(this).removeClass("selected"); |
||||
|
$(this).children(".cata-nav-layer").hide(); |
||||
|
}); |
||||
|
}); |
||||
|
</script> |
||||
|
|
||||
|
|
||||
|
|
||||
@ -0,0 +1,21 @@ |
|||||
|
|
||||
|
<?php $_from = $this->_var['ad_posti']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('key', 'posti');if (count($_from)): |
||||
|
foreach ($_from AS $this->_var['key'] => $this->_var['posti']): |
||||
|
?> |
||||
|
<?php if ($this->_var['posti']['posti_type'] == 'floor_banner'): ?> |
||||
|
<div class="floor-banner-body" <?php if ($this->_var['posti']['link_color']): ?>style="background:<?php echo $this->_var['posti']['link_color']; ?>;"<?php endif; ?>> |
||||
|
<div class="floor-banner w1200"> |
||||
|
<a href="<?php echo $this->_var['posti']['ad_link']; ?>" target="_blank"><img style="max-width:<?php echo $this->_var['posti']['ad_width']; ?>px; max-height:<?php echo $this->_var['posti']['ad_height']; ?>px;" src="themes/<?php echo $GLOBALS['_CFG']['template']; ?>/images/loadBrandBanner2.gif" class="lazy" data-original="<?php echo $this->_var['posti']['ad_code']; ?>"/></a> |
||||
|
</div> |
||||
|
</div> |
||||
|
<?php elseif ($this->_var['posti']['posti_type'] == 'top_banner'): ?> |
||||
|
<div class="top-banner" <?php if ($this->_var['posti']['link_color']): ?>style="background:<?php echo $this->_var['posti']['link_color']; ?>;"<?php endif; ?>> |
||||
|
<div class="module w1200"> |
||||
|
<a href="<?php echo $this->_var['posti']['ad_link']; ?>" target="_blank"><img width="<?php echo $this->_var['posti']['ad_width']; ?>" height="<?php echo $this->_var['posti']['ad_height']; ?>" src="<?php echo $this->_var['posti']['ad_code']; ?>" /></a> |
||||
|
<div class="close"></div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<?php else: ?> |
||||
|
<a href="<?php echo $this->_var['posti']['ad_link']; ?>" target="_blank"><img width="<?php echo $this->_var['posti']['ad_width']; ?>" height="<?php echo $this->_var['posti']['ad_height']; ?>" src="<?php echo $this->_var['posti']['ad_code']; ?>" /></a> |
||||
|
<?php endif; ?> |
||||
|
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?> |
||||
@ -0,0 +1,7 @@ |
|||||
|
<div class="marBanner"> |
||||
|
<?php $_from = $this->_var['ad_child']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'child');if (count($_from)): |
||||
|
foreach ($_from AS $this->_var['child']): |
||||
|
?> |
||||
|
<a href="<?php echo $this->_var['child']['ad_link']; ?>" target="_blank"><img src="<?php echo $this->_var['child']['ad_code']; ?>" alt="" /></a> |
||||
|
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?> |
||||
|
</div> |
||||
@ -0,0 +1,23 @@ |
|||||
|
|
||||
|
<?php if ($this->_var['best_goods']): ?> |
||||
|
<div id="dome3"> |
||||
|
<div class="done-warp"> |
||||
|
<ul> |
||||
|
<?php $_from = $this->_var['best_goods']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'goods_0_76795100_1689900044');if (count($_from)): |
||||
|
foreach ($_from AS $this->_var['goods_0_76795100_1689900044']): |
||||
|
?> |
||||
|
<li> |
||||
|
<div class="done-img"><a href="<?php echo $this->_var['goods_0_76795100_1689900044']['url']; ?>" target="_blank" title="<?php echo htmlspecialchars($this->_var['goods_0_76795100_1689900044']['name']); ?>"><img src="<?php echo $this->_var['goods_0_76795100_1689900044']['thumb']; ?>" width="136" height="136" /></a></div> |
||||
|
<div class="done-name"><a href="<?php echo $this->_var['goods_0_76795100_1689900044']['url']; ?>" target="_blank" title="<?php echo htmlspecialchars($this->_var['goods_0_76795100_1689900044']['name']); ?>"><?php echo $this->_var['goods_0_76795100_1689900044']['short_style_name']; ?></a></div> |
||||
|
<div class="done-price"> |
||||
|
<span class="shop-price"><?php echo $this->_var['goods_0_76795100_1689900044']['shop_price']; ?></span> |
||||
|
<span class="original-price"><?php echo $this->_var['goods_0_76795100_1689900044']['market_price']; ?></span> |
||||
|
</div> |
||||
|
</li> |
||||
|
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?> |
||||
|
</ul> |
||||
|
<a href="javascript:void(0);" class="done-prev"></a> |
||||
|
<a href="javascript:void(0);" class="done-next"></a> |
||||
|
</div> |
||||
|
</div> |
||||
|
<?php endif; ?> |
||||
@ -0,0 +1,30 @@ |
|||||
|
|
||||
|
<?php if ($this->_var['hot_goods']): ?> |
||||
|
<div id="dome1"> |
||||
|
<div class="done-warp"> |
||||
|
<ul> |
||||
|
<?php $_from = $this->_var['hot_goods']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'goods');if (count($_from)): |
||||
|
foreach ($_from AS $this->_var['goods']): |
||||
|
?> |
||||
|
<li> |
||||
|
<div class="done-img"><a href="<?php echo $this->_var['goods']['url']; ?>" target="_blank"><img src="themes/<?php echo $GLOBALS['_CFG']['template']; ?>/images/loadGoods.gif" title="<?php echo htmlspecialchars($this->_var['goods']['name']); ?>" width="136" height="136" class="lazy" data-original="<?php echo $this->_var['goods']['thumb']; ?>"/></a></div> |
||||
|
<div class="done-name"><a href="<?php echo $this->_var['goods']['url']; ?>" target="_blank" title="<?php echo htmlspecialchars($this->_var['goods']['name']); ?>"><?php echo $this->_var['goods']['short_style_name']; ?></a></div> |
||||
|
<div class="done-price"> |
||||
|
<span class="shop-price"> |
||||
|
<?php if ($this->_var['goods']['promote_price'] != ''): ?> |
||||
|
<?php echo $this->_var['goods']['promote_price']; ?> |
||||
|
<?php else: ?> |
||||
|
<?php echo $this->_var['goods']['shop_price']; ?> |
||||
|
<?php endif; ?> |
||||
|
</span> |
||||
|
<span class="original-price"><?php echo $this->_var['goods']['market_price']; ?></span> |
||||
|
</div> |
||||
|
</li> |
||||
|
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?> |
||||
|
</ul> |
||||
|
<a href="javascript:void(0);" class="done-prev"></a> |
||||
|
<a href="javascript:void(0);" class="done-next"></a> |
||||
|
</div> |
||||
|
</div> |
||||
|
<?php endif; ?> |
||||
|
|
||||
@ -0,0 +1,29 @@ |
|||||
|
|
||||
|
<?php if ($this->_var['new_goods']): ?> |
||||
|
<div id="dome4"> |
||||
|
<div class="done-warp"> |
||||
|
<ul> |
||||
|
<?php $_from = $this->_var['new_goods']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'goods_0_78361600_1689900044');if (count($_from)): |
||||
|
foreach ($_from AS $this->_var['goods_0_78361600_1689900044']): |
||||
|
?> |
||||
|
<li> |
||||
|
<div class="done-img"><a href="<?php echo $this->_var['goods_0_78361600_1689900044']['url']; ?>" target="_blank"><img src="<?php echo $this->_var['goods_0_78361600_1689900044']['thumb']; ?>" title="<?php echo htmlspecialchars($this->_var['goods_0_78361600_1689900044']['name']); ?>" width="136" height="136" /></a></div> |
||||
|
<div class="done-name"><a href="<?php echo $this->_var['goods_0_78361600_1689900044']['url']; ?>" target="_blank" title="<?php echo htmlspecialchars($this->_var['goods_0_78361600_1689900044']['name']); ?>"><?php echo $this->_var['goods_0_78361600_1689900044']['short_style_name']; ?></a></div> |
||||
|
<div class="done-price"> |
||||
|
<span class="shop-price"> |
||||
|
<?php if ($this->_var['goods_0_78361600_1689900044']['promote_price'] != ''): ?> |
||||
|
<?php echo $this->_var['goods_0_78361600_1689900044']['promote_price']; ?> |
||||
|
<?php else: ?> |
||||
|
<?php echo $this->_var['goods_0_78361600_1689900044']['shop_price']; ?> |
||||
|
<?php endif; ?> |
||||
|
</span> |
||||
|
<span class="original-price"><?php echo $this->_var['goods_0_78361600_1689900044']['market_price']; ?></span> |
||||
|
</div> |
||||
|
</li> |
||||
|
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?> |
||||
|
</ul> |
||||
|
<a href="javascript:void(0);" class="done-prev"></a> |
||||
|
<a href="javascript:void(0);" class="done-next"></a> |
||||
|
</div> |
||||
|
</div> |
||||
|
<?php endif; ?> |
||||
@ -0,0 +1,31 @@ |
|||||
|
|
||||
|
<?php if ($this->_var['promotion_goods']): ?> |
||||
|
<div id="dome2"> |
||||
|
<div class="done-warp"> |
||||
|
<ul> |
||||
|
<?php $_from = $this->_var['promotion_goods']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'goods_0_76061700_1689900044');$this->_foreach['promotion_foreach'] = array('total' => count($_from), 'iteration' => 0); |
||||
|
if ($this->_foreach['promotion_foreach']['total'] > 0): |
||||
|
foreach ($_from AS $this->_var['goods_0_76061700_1689900044']): |
||||
|
$this->_foreach['promotion_foreach']['iteration']++; |
||||
|
?> |
||||
|
<li> |
||||
|
<div class="done-img"><a href="<?php echo $this->_var['goods_0_76061700_1689900044']['url']; ?>" target="_blank"><img src="<?php echo $this->_var['goods_0_76061700_1689900044']['thumb']; ?>" title="<?php echo htmlspecialchars($this->_var['goods_0_76061700_1689900044']['name']); ?>" width="136" height="136" /></a></div> |
||||
|
<div class="done-name"><a href="<?php echo $this->_var['goods_0_76061700_1689900044']['url']; ?>" target="_blank" title="<?php echo htmlspecialchars($this->_var['goods_0_76061700_1689900044']['name']); ?>"><?php echo htmlspecialchars($this->_var['goods_0_76061700_1689900044']['short_name']); ?></a></div> |
||||
|
<div class="done-price"> |
||||
|
<span class="shop-price"> |
||||
|
<?php if ($this->_var['goods_0_76061700_1689900044']['promote_price'] != ''): ?> |
||||
|
<?php echo $this->_var['goods_0_76061700_1689900044']['promote_price']; ?> |
||||
|
<?php else: ?> |
||||
|
<?php echo $this->_var['goods_0_76061700_1689900044']['shop_price']; ?> |
||||
|
<?php endif; ?> |
||||
|
</span> |
||||
|
<span class="original-price"><?php echo $this->_var['goods_0_76061700_1689900044']['market_price']; ?></span> |
||||
|
</div> |
||||
|
</li> |
||||
|
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?> |
||||
|
</ul> |
||||
|
<a href="javascript:void(0);" class="done-prev"></a> |
||||
|
<a href="javascript:void(0);" class="done-next"></a> |
||||
|
</div> |
||||
|
</div> |
||||
|
<?php endif; ?> |
||||
File diff suppressed because it is too large
@ -0,0 +1,36 @@ |
|||||
|
|
||||
|
<div class="home-title"> |
||||
|
<i class="icon"></i> |
||||
|
<a href="./user.php" class="pre-home">个人主页</a> |
||||
|
</div> |
||||
|
<div id="menu"> |
||||
|
<dl class="fore1"> |
||||
|
<dt><i class="icon stretch-icon"></i><span>订单中心</span></dt> |
||||
|
<dd <?php if ($this->_var['action'] == 'order_list' || $this->_var['action'] == 'order_detail'): ?>class="current"<?php endif; ?>><a href="user.php?act=order_list" target="_self">我的订单</a></dd> |
||||
|
<dd <?php if ($this->_var['action'] == 'address_list' || $this->_var['action'] == 'address'): ?>class="current"<?php endif; ?>><a href="user.php?act=address_list" target="_self">收货地址</a></dd> |
||||
|
<dd <?php if ($this->_var['action'] == 'booking_list'): ?>class="current"<?php endif; ?>><a href="user.php?act=booking_list" target="_self">缺货登记</a></dd> |
||||
|
<dd <?php if ($this->_var['action'] == 'return_list' || $this->_var['action'] == 'return_detail'): ?>class="current"<?php endif; ?>><a href="user.php?act=return_list" target="_self">退换货订单</a></dd> |
||||
|
</dl> |
||||
|
<dl class="fore2"> |
||||
|
<dt><i class="icon stretch-icon"></i><span>会员中心</span></dt> |
||||
|
<dd <?php if ($this->_var['action'] == 'profile'): ?>class="current"<?php endif; ?>><a href="user.php?act=profile" target="_self">用户信息</a></dd> |
||||
|
<dd <?php if ($this->_var['action'] == 'collection_list' || $this->_var['action'] == 'store_list'): ?>class="current"<?php endif; ?>><a href="user.php?act=collection_list" target="_self">我的收藏</a></dd> |
||||
|
<dd <?php if ($this->_var['action'] == 'message_list'): ?>class="current"<?php endif; ?>><a href="user.php?act=message_list" target="_self">我的留言</a></dd> |
||||
|
<?php if ($this->_var['affiliate']['on'] == 1): ?> |
||||
|
<dd <?php if ($this->_var['action'] == 'affiliate'): ?>class="current"<?php endif; ?>><a href="user.php?act=affiliate" target="_self">我的推荐</a></dd> |
||||
|
<?php endif; ?> |
||||
|
<dd <?php if ($this->_var['action'] == 'comment_list' || $this->_var['action'] == 'commented_view'): ?>class="current"<?php endif; ?>><a href="user.php?act=comment_list" target="_self">评论/晒单</a></dd> |
||||
|
</dl> |
||||
|
<dl class="fore3<?php if ($this->_var['is_merchants'] == 0): ?> last<?php endif; ?>"> |
||||
|
<dt><i class="icon stretch-icon"></i><span>账户中心</span></dt> |
||||
|
<dd <?php if ($this->_var['action'] == 'bonus'): ?>class="current"<?php endif; ?>><a href="user.php?act=bonus" target="_self">我的红包</a></dd> |
||||
|
<dd <?php if ($this->_var['action'] == 'track_packages'): ?>class="current"<?php endif; ?>><a href="user.php?act=track_packages" target="_self">跟踪包裹</a></dd> |
||||
|
<dd <?php if ($this->_var['action'] == 'account_log' || $this->_var['action'] == 'account_detail' || $this->_var['action'] == 'account_raply' || $this->_var['action'] == 'account_deposit' || $this->_var['action'] == 'act_account'): ?>class="current"<?php endif; ?>><a href="user.php?act=account_log" target="_self">资金管理</a></dd> |
||||
|
</dl> |
||||
|
<?php if ($this->_var['is_merchants'] > 0): ?> |
||||
|
<dl class="fore4 last"> |
||||
|
<dt><i class="icon stretch-icon"></i><span>店铺管理</span></dt> |
||||
|
<dd><a href="./admin" target="_self">进入店铺后台</a></dd> |
||||
|
</dl> |
||||
|
<?php endif; ?> |
||||
|
</div> |
||||
@ -0,0 +1,114 @@ |
|||||
|
<div class="mui-mbar-tabs"> |
||||
|
<div class="quick_link_mian"> |
||||
|
<div class="quick_links_panel"> |
||||
|
<div id="quick_links" class="quick_links"> |
||||
|
<ul> |
||||
|
<li> |
||||
|
<a href="user.php"><i class="setting"></i></a> |
||||
|
<div class="ibar_login_box status_login"> |
||||
|
<div class="avatar_box"> |
||||
|
<p class="avatar_imgbox"> |
||||
|
<?php if ($this->_var['info']['user_picture']): ?> |
||||
|
<img src="<?php echo $this->_var['info']['user_picture']; ?>" width="100" height="100" /> |
||||
|
<?php else: ?> |
||||
|
<img src="themes/<?php echo $GLOBALS['_CFG']['template']; ?>/images/touxiang.jpg" width="100" height="100"/> |
||||
|
<?php endif; ?> |
||||
|
</p> |
||||
|
<ul class="user_info"> |
||||
|
<li>用户名:<?php echo empty($this->_var['info']['username']) ? '暂无' : $this->_var['info']['username']; ?></li> |
||||
|
<li>级 别:<?php echo empty($this->_var['info']['rank_name']) ? '暂无' : $this->_var['info']['rank_name']; ?></li> |
||||
|
</ul> |
||||
|
</div> |
||||
|
<div class="login_btnbox"> |
||||
|
<a href="user.php?act=order_list" class="login_order">我的订单</a> |
||||
|
<a href="user.php?act=collection_list" class="login_favorite">我的收藏</a> |
||||
|
</div> |
||||
|
<i class="icon_arrow_white"></i> |
||||
|
</div> |
||||
|
</li> |
||||
|
|
||||
|
<li id="shopCart"> |
||||
|
<a href="javascript:void(0);" class="cart_list"> |
||||
|
<i class="message"></i> |
||||
|
<div class="span">购物车</div> |
||||
|
<span class="cart_num"><?php echo empty($this->_var['cart_info']['number']) ? '0' : $this->_var['cart_info']['number']; ?></span> |
||||
|
</a> |
||||
|
</li> |
||||
|
<li> |
||||
|
<a href="javascript:void(0);" class="mpbtn_order"><i class="chongzhi"></i></a> |
||||
|
<div class="mp_tooltip"> |
||||
|
<font id="mpbtn_money" style="font-size:12px; cursor:pointer;">我的订单</font> |
||||
|
<i class="icon_arrow_right_black"></i> |
||||
|
</div> |
||||
|
</li> |
||||
|
<li> |
||||
|
<a href="javascript:void(0);" class="mpbtn_total"><i class="view"></i></a> |
||||
|
<div class="mp_tooltip" style=" visibility:hidden;"> |
||||
|
<font id="mpbtn_myMoney" style="font-size:12px; cursor:pointer;">我的资产</font> |
||||
|
<i class="icon_arrow_right_black"></i> |
||||
|
</div> |
||||
|
</li> |
||||
|
<li> |
||||
|
<a href="javascript:void(0);" class="mpbtn_history"><i class="zuji"></i></a> |
||||
|
<div class="mp_tooltip"> |
||||
|
<font id="mpbtn_histroy" style="font-size:12px; cursor:pointer;">我的足迹</font> |
||||
|
<i class="icon_arrow_right_black"></i> |
||||
|
</div> |
||||
|
</li> |
||||
|
<li> |
||||
|
<a href="javascript:void(0);" class="mpbtn_collection"><i class="wdsc"></i></a> |
||||
|
<div class="mp_tooltip"> |
||||
|
<font id="mpbtn_wdsc" style="font-size:12px; cursor:pointer;">我的收藏</font> |
||||
|
<i class="icon_arrow_right_black"></i> |
||||
|
</div> |
||||
|
</li> |
||||
|
</ul> |
||||
|
</div> |
||||
|
<div class="quick_toggle"> |
||||
|
<ul> |
||||
|
<li> |
||||
|
<?php if ($this->_var['basic_info']['kf_type'] == 1): ?> |
||||
|
<a href="http://www.taobao.com/webww/ww.php?ver=3&touid=<?php echo $this->_var['basic_info']['kf_ww']; ?>&siteid=cntaobao&status=1&charset=utf-8" target="_blank"><i class="kfzx"></i></a> |
||||
|
<?php else: ?> |
||||
|
<a href="http://wpa.qq.com/msgrd?v=3&uin=<?php echo $this->_var['basic_info']['kf_qq']; ?>&site=qq&menu=yes" target="_blank"><i class="kfzx"></i></a> |
||||
|
<?php endif; ?> |
||||
|
<div class="mp_tooltip">客服中心<i class="icon_arrow_right_black"></i></div> |
||||
|
</li> |
||||
|
<li class="returnTop"> |
||||
|
<a href="javascript:void(0);" class="return_top"><i class="top"></i></a> |
||||
|
</li> |
||||
|
</ul> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div id="quick_links_pop" class="quick_links_pop"></div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<script type="text/javascript"> |
||||
|
<?php if (! $this->_var['user_id']): ?> |
||||
|
$(".quick_links li").find("a").click(function(){ |
||||
|
if($(this).attr('class')!='cart_list' && $(this).attr('class')!='cart_list current' && $(this).attr('class')!='mpbtn_history' && $(this).attr('class')!='mpbtn_history current') |
||||
|
{ |
||||
|
$.notLogin("get_ajax_content.php?act=get_login_dialog",''); |
||||
|
return false; |
||||
|
} |
||||
|
}); |
||||
|
<?php endif; ?> |
||||
|
|
||||
|
//移动图标出现文字 |
||||
|
$(".quick_links_panel li").mouseenter(function(){ |
||||
|
$(this).children(".mp_tooltip").stop().animate({left:-92,queue:true}); |
||||
|
$(this).children(".mp_tooltip").css("visibility","visible"); |
||||
|
$(this).children(".ibar_login_box").css("display","block"); |
||||
|
}); |
||||
|
$(".quick_links_panel li").mouseleave(function(){ |
||||
|
$(this).children(".mp_tooltip").css("visibility","hidden"); |
||||
|
$(this).children(".mp_tooltip").stop().animate({left:-121,queue:true}); |
||||
|
$(this).children(".ibar_login_box").css("display","none"); |
||||
|
}); |
||||
|
$(".quick_toggle li").mouseover(function(){ |
||||
|
$(this).children(".mp_qrcode").show(); |
||||
|
}); |
||||
|
$(".quick_toggle li").mouseleave(function(){ |
||||
|
$(this).children(".mp_qrcode").hide(); |
||||
|
}); |
||||
|
</script> |
||||
@ -0,0 +1,630 @@ |
|||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
||||
|
<html xmlns="http://www.w3.org/1999/xhtml"> |
||||
|
<head> |
||||
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
||||
|
<meta name="Keywords" content="<?php echo $this->_var['keywords']; ?>" /> |
||||
|
<meta name="Description" content="<?php echo $this->_var['description']; ?>" /> |
||||
|
|
||||
|
<title><?php echo $this->_var['page_title']; ?></title> |
||||
|
|
||||
|
|
||||
|
|
||||
|
<link rel="shortcut icon" href="favicon.ico" /> |
||||
|
<link rel="icon" href="animated_favicon.gif" type="image/gif" /> |
||||
|
<link rel="stylesheet" type="text/css" href="themes/<?php echo $GLOBALS['_CFG']['template']; ?>/base.css" /> |
||||
|
<link rel="stylesheet" type="text/css" href="themes/<?php echo $GLOBALS['_CFG']['template']; ?>/user.css" /> |
||||
|
<link href="<?php echo $this->_var['ecs_css_path']; ?>" rel="stylesheet" type="text/css" /> |
||||
|
<link rel="alternate" type="application/rss+xml" title="RSS|<?php echo $this->_var['page_title']; ?>" href="<?php echo $this->_var['feed_url']; ?>" /> |
||||
|
|
||||
|
<?php echo $this->smarty_insert_scripts(array('files'=>'jquery-1.9.1.min.js,jquery.json.js,transport_jquery.js,common.js,user.js,utils.js,user_register.js')); ?> |
||||
|
<script type="text/javascript" src="themes/<?php echo $GLOBALS['_CFG']['template']; ?>/js/sc_common.js"></script> |
||||
|
<script type="text/javascript" src="themes/<?php echo $GLOBALS['_CFG']['template']; ?>/js/scroll_city.js"></script> |
||||
|
<script type="text/javascript" src="themes/<?php echo $GLOBALS['_CFG']['template']; ?>/js/jquery.SuperSlide.2.1.1.js"></script> |
||||
|
<script type="text/javascript" src="themes/<?php echo $GLOBALS['_CFG']['template']; ?>/js/jquery.tabso_yeso.js"></script> |
||||
|
<script type="text/javascript" src="themes/<?php echo $GLOBALS['_CFG']['template']; ?>/js/placeholder.js"></script> |
||||
|
</head> |
||||
|
|
||||
|
<body> |
||||
|
<?php if ($this->_var['action'] == 'login'): ?> |
||||
|
<div class="ecsc-registLogin"> |
||||
|
<div class="registLogin"> |
||||
|
<div class="registLogin-header w1200"> |
||||
|
<a href="./index.php" class="logo"><img src="themes/ecmoban_dsc/images/logo_2015.png" /></a> |
||||
|
<b></b> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="registLogin-layout" style="overflow:visible;"> |
||||
|
<div class="registLogin-banner"> |
||||
|
<?php |
||||
|
$k = array ( |
||||
|
'name' => 'get_adv_child', |
||||
|
'ad_arr' => $this->_var['login_banner'], |
||||
|
); |
||||
|
echo $this->_echash . $k['name'] . '|' . serialize($k) . $this->_echash; |
||||
|
?> |
||||
|
<div class="hd"> |
||||
|
<a href="javascript:void(0);" class="icon buy-prev"></a> |
||||
|
<a href="javascript:void(0);" class="icon buy-next"></a> |
||||
|
<div class="login-wrap"> |
||||
|
<form name="formLogin" action="user.php" method="post" onSubmit="userLogin();return false;"> |
||||
|
<div class="login-form"> |
||||
|
<div class="mt"> |
||||
|
<h1>欢迎登录</h1> |
||||
|
<a href="user.php?act=register" class="jump">免费注册</a> |
||||
|
</div> |
||||
|
<div class="mc"> |
||||
|
<div class="msg-wrap"> |
||||
|
<div class="msg-error" style="display:none"> |
||||
|
<b></b>账户名与密码不匹配,请重新输入 |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="form"> |
||||
|
<div class="item last"> |
||||
|
<div class="item-info"> |
||||
|
<i class="i-name"></i> |
||||
|
<input type="text" id="loginname" name="username" class="text text-2" value="" placeholder="<?php echo $this->_var['lang']['label_username']; ?>" /> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="item"> |
||||
|
<div class="item-info"> |
||||
|
<input type="password" id="nloginpwd" name="password" class="text text-2" value="" placeholder="<?php echo $this->_var['lang']['label_password']; ?>" /> |
||||
|
<i class="i-pass"></i> |
||||
|
</div> |
||||
|
</div> |
||||
|
<?php if ($this->_var['enabled_captcha']): ?> |
||||
|
<div class="item"> |
||||
|
<div class="item-info"> |
||||
|
<i class="i-captcha"></i> |
||||
|
<input type="text" id="captcha" name="captcha" value="" class="text text-3 text-4" placeholder="<?php echo $this->_var['lang']['comment_captcha']; ?>" /> |
||||
|
<img src="captcha_verify.php?captcha=is_login&<?php echo $this->_var['rand']; ?>" alt="captcha" class="fl ml5" onClick="this.src='captcha_verify.php?captcha=is_login&'+Math.random()" /> |
||||
|
</div> |
||||
|
</div> |
||||
|
<?php endif; ?> |
||||
|
<div class="safe"> |
||||
|
<span> |
||||
|
<input id="remember" name="remember" type="checkbox" class="jdcheckbox" style="outline: rgb(109, 109, 109) none 0px;"> |
||||
|
<label for="remember"><?php echo $this->_var['lang']['remember']; ?></label> |
||||
|
</span> |
||||
|
</div> |
||||
|
<div class="item"> |
||||
|
<span class="forget-pw-safe"><a href="user.php?act=get_password">忘记密码?</a></span> |
||||
|
<input type="hidden" name="act" value="act_login" /> |
||||
|
<input type="hidden" name="back_act" value="<?php echo $this->_var['back_act']; ?>" /> |
||||
|
<div class="login-btn"><input type="submit" name="submit" id="loginSubmit" value="登 录" class="btn-entry" /></div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="coagent"> |
||||
|
<h4>用第三方账号直接登录:</h4> |
||||
|
<ul> |
||||
|
<li><a href="user.php?act=oath&type=qq" class="qq"></a></li> |
||||
|
<li><a href="user.php?act=oath&type=weibo" class="sina"></a></li> |
||||
|
</ul> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</form> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
<script type="text/javascript"> |
||||
|
$(window).resize(function(){ |
||||
|
var width = $(this).width(); |
||||
|
$('.registLogin-banner').find('.tempWrap,ul,li').css('width',width); |
||||
|
}); |
||||
|
$(".registLogin-banner").slide({titCell:".msto",mainCell:".bd ul",effect:"left",pnLoop:false,autoPlay:false,autoPage:true,prevCell:".buy-prev",nextCell:".buy-next"}); |
||||
|
|
||||
|
|
||||
|
</script> |
||||
|
<?php endif; ?> |
||||
|
|
||||
|
<?php if ($this->_var['action'] == 'register'): ?> |
||||
|
<?php echo $this->smarty_insert_scripts(array('files'=>'./sms/sms.js')); ?> |
||||
|
<div class="ecsc-registLogin"> |
||||
|
<div class="registLogin borderBottom1"> |
||||
|
<div class="registLogin-header w1200"> |
||||
|
<a href="./index.php" class="logo"><img src="themes/ecmoban_dsc/images/logo_2015.png" /></a> |
||||
|
<b></b> |
||||
|
<span class="registLogin-header-fr">有账号<a href="user.php" class="jump">在此登录</a></span> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="registLogin-layout w1200" style="overflow:visible;"> |
||||
|
<div class="regist-banner"><a href="#" target="_blank"><img src="themes/ecmoban_dsc/images/regist-banner.jpg" /></a></div> |
||||
|
<div class="regist-wrap"> |
||||
|
<div class="regist-form" style="overflow:visible;"> |
||||
|
<div class="mt"> |
||||
|
<ul class="tab"> |
||||
|
<li class="curr">邮箱注册</li> |
||||
|
<li>手机注册</li> |
||||
|
</ul> |
||||
|
</div> |
||||
|
<div class="mc" style="overflow:visible;"> |
||||
|
<div class="form formtwo" style="display:block;"> |
||||
|
<form action="user.php" method="post" name="formUserE" onsubmit="return register(); "> |
||||
|
<div class="item"> |
||||
|
<div class="item-info"> |
||||
|
<input type="text" id="username" name="username" onblur="is_registered(this.value, 0);" maxlength="35" class="text" value="" placeholder="用户名" /> |
||||
|
<i class="i-name"></i> |
||||
|
</div> |
||||
|
<label id="username_notice_0" class="error"></label> |
||||
|
</div> |
||||
|
<div class="item"> |
||||
|
<div class="item-info"> |
||||
|
<input type="text" id="regName" name="email" maxlength="35" class="text" value="" placeholder="邮箱地址" /> |
||||
|
<i class="i-email"></i> |
||||
|
</div> |
||||
|
<label id="email_notice" class="error"></label> |
||||
|
</div> |
||||
|
<div class="item"> |
||||
|
<div class="item-info"> |
||||
|
<input type="password" id="pwd" name="password" maxlength="20" class="text" value="" placeholder="设置密码" /> |
||||
|
<i class="i-pass"></i> |
||||
|
</div> |
||||
|
<label id="password_notice" class="error"><b></b></label> |
||||
|
</div> |
||||
|
<div class="item"> |
||||
|
<div class="item-info"> |
||||
|
<input type="password" id="pwdRepeat" name="confirm_password" maxlength="20" class="text" value="" placeholder="确认密码" /> |
||||
|
<i class="i-pass"></i> |
||||
|
</div> |
||||
|
<label id="confirm_password" class="error"></label> |
||||
|
</div> |
||||
|
|
||||
|
<?php $_from = $this->_var['extend_info_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'field');if (count($_from)): |
||||
|
foreach ($_from AS $this->_var['field']): |
||||
|
?> |
||||
|
<?php if ($this->_var['field']['id'] == 6): ?> |
||||
|
<div class="item" style="overflow:visible;"> |
||||
|
<div class="item-info"> |
||||
|
<div id="divselect" class="divselect"> |
||||
|
<div class="cite"><?php echo $this->_var['lang']['passwd_question']; ?></div> |
||||
|
<ul> |
||||
|
<?php $_from = $this->_var['passwd_questions']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('key', 'val');if (count($_from)): |
||||
|
foreach ($_from AS $this->_var['key'] => $this->_var['val']): |
||||
|
?> |
||||
|
<li><a href="javascript:;" selectid="<?php echo $this->_var['key']; ?>"><?php echo $this->_var['val']; ?></a></li> |
||||
|
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?> |
||||
|
</ul> |
||||
|
</div> |
||||
|
<input name="sel_question" type="hidden" value="4" id="passwd_quesetion"> |
||||
|
</div> |
||||
|
<label class="sel_question error"></label> |
||||
|
</div> |
||||
|
|
||||
|
<div class="item"> |
||||
|
<div class="item-info"> |
||||
|
<input type="text" name="passwd_answer" maxlength="20" class="text" value="" placeholder="<?php echo $this->_var['lang']['passwd_answer']; ?>" /> |
||||
|
</div> |
||||
|
<label id="passwd_answer" class="error"></label> |
||||
|
</div> |
||||
|
<?php else: ?> |
||||
|
<?php if ($this->_var['field']['reg_field_name'] != '手机'): ?> |
||||
|
<div class="item"> |
||||
|
<div class="item-info"> |
||||
|
<input name="extend_field<?php echo $this->_var['field']['id']; ?>" id="extend_field<?php echo $this->_var['field']['id']; ?>" onblur="is_extend_field(this.value, <?php echo $this->_var['field']['id']; ?>, 'formUserE');" type="text" maxlength="35" class="text" placeholder="<?php echo $this->_var['field']['reg_field_name']; ?>"/> |
||||
|
</div> |
||||
|
<label class="extend_field<?php echo $this->_var['field']['id']; ?> error"></label> |
||||
|
<input type="hidden" name="extend_field" id="exis_need<?php echo $this->_var['field']['id']; ?>" value="<?php if ($this->_var['field']['is_need']): ?>1<?php else: ?>0<?php endif; ?>" /> |
||||
|
</div> |
||||
|
<?php endif; ?> |
||||
|
<?php endif; ?> |
||||
|
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?> |
||||
|
|
||||
|
<?php if ($this->_var['enabled_captcha']): ?> |
||||
|
<div class="item"> |
||||
|
<div class="item-info"> |
||||
|
<input type="text" id="captcha" name="captcha" maxlength="6" class="text text-1 text-4" value="" placeholder="验证码"/> |
||||
|
<img src="captcha_verify.php?captcha=is_register_email&<?php echo $this->_var['rand']; ?>" alt="captcha" id="captcha_img" style="vertical-align: middle;cursor: pointer;" onClick="this.src='captcha_verify.php?captcha=is_register_email&'+Math.random()" /> |
||||
|
</div> |
||||
|
<label id="identifying_code" class="error"></label> |
||||
|
</div> |
||||
|
<?php endif; ?> |
||||
|
<div class="item pt10"> |
||||
|
<div class="item-info"> |
||||
|
<input type="checkbox" id="clause" class="fl agreement" checked="checked" value="1" name="agreement"> |
||||
|
<label for="clause" class="hole">阅读并同意《<a target="_blank" href="article.php?id=57" class="agreement">服务协议</a>》</label> |
||||
|
</div> |
||||
|
<label id="agreement" class="error"></label> |
||||
|
</div> |
||||
|
<div class="item pt10"> |
||||
|
<div class="item-info"> |
||||
|
<input name="act" type="hidden" value="act_register" /> |
||||
|
<input type="hidden" name="back_act" value="<?php echo $this->_var['back_act']; ?>" /> |
||||
|
<input type="hidden" id="email_verification" name="email_verification" value=""/> |
||||
|
<input type="hidden" id="captcha_verification" name="captcha_verification" value=""/> |
||||
|
<input id="email_enabled_captcha" type="hidden" value="<?php echo $this->_var['enabled_captcha']; ?>" /> |
||||
|
<input type="submit" id="registsubmit" name="Submit" maxlength="8" class="btn-regist" value="同意协议并注册"/> |
||||
|
</div> |
||||
|
</div> |
||||
|
</form> |
||||
|
</div> |
||||
|
<div class="form formtwo" style="display:none;"> |
||||
|
<form action="user.php" method="post" name="formUser" onsubmit="return mobileRegister();"> |
||||
|
<div class="item"> |
||||
|
<div class="item-info"> |
||||
|
<input type="text" id="username" name="username" onblur="is_registered(this.value, 1);" maxlength="35" class="text" value="" placeholder="用户名" /> |
||||
|
<i class="i-name"></i> |
||||
|
</div> |
||||
|
<label id="username_notice_1" class="error"></label> |
||||
|
</div> |
||||
|
<div class="item"> |
||||
|
<div class="item-info"> |
||||
|
<input type="text" id="mobile_phone" name="mobile_phone" onblur="checkPhone(this.value);" maxlength="20" class="text" value="" placeholder="手机号码" /> |
||||
|
<i class="i-phone"></i> |
||||
|
</div> |
||||
|
<label id="phone_notice" class="error"></label> |
||||
|
</div> |
||||
|
|
||||
|
<div class="item"> |
||||
|
<div class="item-info"> |
||||
|
<input type="password" id="pwd" name="password" maxlength="20" class="text" value="" placeholder="设置密码" /> |
||||
|
<i class="i-pass"></i> |
||||
|
</div> |
||||
|
<label id="phone_password" class="error"></label> |
||||
|
</div> |
||||
|
<div class="item"> |
||||
|
<div class="item-info"> |
||||
|
<input type="password" id="pwdRepeat" name="confirm_password" maxlength="20" class="text" value="" placeholder="确认密码" /> |
||||
|
<i class="i-pass"></i> |
||||
|
</div> |
||||
|
<label id="phone_confirm_password" class="error"></label> |
||||
|
</div> |
||||
|
|
||||
|
<?php $_from = $this->_var['extend_info_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'field');if (count($_from)): |
||||
|
foreach ($_from AS $this->_var['field']): |
||||
|
?> |
||||
|
<?php if ($this->_var['field']['id'] == 6): ?> |
||||
|
<div class="item" style=" overflow:visible;"> |
||||
|
<div class="item-info"> |
||||
|
<div id="divselect2" class="divselect"> |
||||
|
<div class="cite"><?php echo $this->_var['lang']['passwd_question']; ?></div> |
||||
|
<ul> |
||||
|
<?php $_from = $this->_var['passwd_questions']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('key', 'val');if (count($_from)): |
||||
|
foreach ($_from AS $this->_var['key'] => $this->_var['val']): |
||||
|
?> |
||||
|
<li><a href="javascript:;" selectid="<?php echo $this->_var['key']; ?>"><?php echo $this->_var['val']; ?></a></li> |
||||
|
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?> |
||||
|
</ul> |
||||
|
</div> |
||||
|
<input name="sel_question" type="hidden" value="4" id="passwd_quesetion2"> |
||||
|
</div> |
||||
|
<label class="sel_question error"></label> |
||||
|
</div> |
||||
|
|
||||
|
<div class="item"> |
||||
|
<div class="item-info"> |
||||
|
<input type="text" name="passwd_answer" maxlength="20" class="text" value="" placeholder="<?php echo $this->_var['lang']['passwd_answer']; ?>" /> |
||||
|
</div> |
||||
|
<label id="passwd_answer" class="error"></label> |
||||
|
</div> |
||||
|
<?php else: ?> |
||||
|
<?php if ($this->_var['field']['reg_field_name'] != '手机'): ?> |
||||
|
<div class="item"> |
||||
|
<div class="item-info"> |
||||
|
<input name="extend_field<?php echo $this->_var['field']['id']; ?>" id="extend_field<?php echo $this->_var['field']['id']; ?>" onblur="is_extend_field(this.value, <?php echo $this->_var['field']['id']; ?>, 'formUser');" type="text" maxlength="35" class="text" placeholder="<?php echo $this->_var['field']['reg_field_name']; ?>"/> |
||||
|
</div> |
||||
|
<label class="extend_field<?php echo $this->_var['field']['id']; ?> error"></label> |
||||
|
<input type="hidden" name="extend_field" id="exis_need<?php echo $this->_var['field']['id']; ?>" value="<?php if ($this->_var['field']['is_need']): ?>1<?php else: ?>0<?php endif; ?>" /> |
||||
|
</div> |
||||
|
<?php endif; ?> |
||||
|
<?php endif; ?> |
||||
|
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?> |
||||
|
|
||||
|
<?php if ($this->_var['enabled_captcha']): ?> |
||||
|
<div class="item"> |
||||
|
<div class="item-info"> |
||||
|
<input type="text" id="captcha" name="captcha" maxlength="6" class="text text-1 text-4" value="" placeholder="验证码"/> |
||||
|
<img src="captcha_verify.php?captcha=is_register_phone&<?php echo $this->_var['rand']; ?>" alt="captcha" id="authcode_img" style="vertical-align: middle;cursor: pointer;" onClick="this.src='captcha_verify.php?captcha=is_register_phone&'+Math.random()" /> |
||||
|
</div> |
||||
|
<label id="phone_captcha" class="error"></label> |
||||
|
</div> |
||||
|
<?php endif; ?> |
||||
|
<?php if ($this->_var['sms_register']): ?> |
||||
|
<div class="item"> |
||||
|
<div class="item-info phone_code"> |
||||
|
<input type="text" id="sms" name="mobile_code" maxlength="6" class="text text-1 text-4" value="" placeholder="短信验证码" /> |
||||
|
<a href="javascript:void(0);" id="zphone" class="sms-btn">获取短信验证码</a> |
||||
|
</div> |
||||
|
<label id="code_notice" class="error"></label> |
||||
|
</div> |
||||
|
<?php endif; ?> |
||||
|
<div class="item pt10"> |
||||
|
<div class="item-info"> |
||||
|
<input type="checkbox" id="clause2" class="fl agreement" checked="checked" value="1" name="mobileagreement"> |
||||
|
<label for="clause2" class="hole">阅读并同意《<a target="_blank" href="article.php?id=57" class="agreement">服务协议</a>》</label> |
||||
|
</div> |
||||
|
<label id="mobileagreement" class="error"></label> |
||||
|
</div> |
||||
|
<div class="item pt10"> |
||||
|
<div class="item-info"> |
||||
|
<input type="hidden" name="flag" id="flag" value='register' /> |
||||
|
<input type="hidden" name="seccode" id="seccode" value="<?php echo $this->_var['sms_security_code']; ?>" /> |
||||
|
<input name="act" type="hidden" value="act_register" > |
||||
|
<input name="register_mode" type="hidden" value="1" > |
||||
|
<input id="phone_code_callback" type="hidden" value="" > |
||||
|
<input id="phone_captcha_verification" type="hidden" value="" /> |
||||
|
<input id="phone_verification" type="hidden" value="" /> |
||||
|
<input id="enabled_captcha" type="hidden" value="<?php echo $this->_var['enabled_captcha']; ?>" /> |
||||
|
<input type="submit" id="registsubmit" name="Submit" maxlength="8" class="btn-regist" value="同意协议并注册"/> |
||||
|
</div> |
||||
|
</div> |
||||
|
</form> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
|
||||
|
<script type="text/javascript"> |
||||
|
$("input[name='sel_question']").val(''); |
||||
|
</script> |
||||
|
<?php endif; ?> |
||||
|
|
||||
|
<?php if ($this->_var['action'] == 'get_password'): ?> |
||||
|
<?php echo $this->smarty_insert_scripts(array('files'=>'utils.js')); ?> |
||||
|
<?php echo $this->smarty_insert_scripts(array('files'=>'./sms/sms.js')); ?> |
||||
|
<script type="text/javascript"> |
||||
|
<?php $_from = $this->_var['lang']['password_js']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('key', 'item');if (count($_from)): |
||||
|
foreach ($_from AS $this->_var['key'] => $this->_var['item']): |
||||
|
?> |
||||
|
var <?php echo $this->_var['key']; ?> = "<?php echo $this->_var['item']; ?>"; |
||||
|
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?> |
||||
|
</script> |
||||
|
<div class="ecsc-registLogin ecsc-getPassword-list"> |
||||
|
<div class="registLogin borderBottom1"> |
||||
|
<div class="registLogin-header w1000"> |
||||
|
<a href="./index.php" class="logo"><img src="themes/ecmoban_dsc/images/logo_2015.png" /></a> |
||||
|
<b></b> |
||||
|
<span class="registLogin-header-fr">有账号<a href="user.php" class="jump">在此登录</a></span> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="registLogin-layout w1000"> |
||||
|
<div class="regist-banner"><a href="#" target="_blank"><img src="themes/ecmoban_dsc/images/regist-banner.jpg" /></a></div> |
||||
|
<div class="regist-wrap"> |
||||
|
<div class="regist-form"> |
||||
|
<div class="mt"> |
||||
|
<ul class="tab"> |
||||
|
<li class="curr">注册邮箱</li> |
||||
|
<li>绑定手机</li> |
||||
|
<li id="form_getPassword1">注册问题</li> |
||||
|
</ul> |
||||
|
</div> |
||||
|
<div class="mc"> |
||||
|
<div class="form formEmail"> |
||||
|
<form action="user.php" method="post" name="getPassword"> |
||||
|
<div class="msg_ts"><div class="msg_error"><i></i>用户名不能为空</div></div> |
||||
|
<div class="item last"> |
||||
|
<div class="item-info"> |
||||
|
<input name="user_name" type="text" class="text" value="" placeholder="用户名"/> |
||||
|
<i class="i-name"></i> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="item"> |
||||
|
<div class="item-info"> |
||||
|
<input name="email" type="text" class="text" value="" placeholder="电子邮箱" /> |
||||
|
<i class="i-email"></i> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="item"> |
||||
|
<div class="item-info"> |
||||
|
<i class="i-captcha"></i> |
||||
|
<input type="text" id="captcha" name="captcha" maxlength="6" class="text text-1 text-4" value="" placeholder="验证码"/> |
||||
|
<img src="captcha_verify.php?captcha=is_get_password&<?php echo $this->_var['rand']; ?>" alt="captcha" name="img_captcha" class="fl ml5" onClick="this.src='captcha_verify.php?captcha=is_get_password&'+Math.random()" data-key="get_password" /> |
||||
|
<div class="cap_error hide">对</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="item"> |
||||
|
<div class="item-info"> |
||||
|
<input type="hidden" name="act" value="send_pwd_email" /> |
||||
|
<input type="hidden" id="captcha_verification" name="captcha_verification" value=""/> |
||||
|
<input id="email_enabled_captcha" type="hidden" value="<?php echo $this->_var['enabled_captcha']; ?>" /> |
||||
|
<input type="button" name="button" maxlength="8" class="btn-regist" value="重置密码" onclick="submitPwdInfo(this);"/> |
||||
|
</div> |
||||
|
</div> |
||||
|
</form> |
||||
|
</div> |
||||
|
|
||||
|
<div class="form formtwo formPhone"> |
||||
|
<form action="user.php" method="post" name="getPassword"> |
||||
|
<div class="msg_ts"><div class="msg_error"><i></i>用户名不能为空</div></div> |
||||
|
<div class="item last"> |
||||
|
<div class="item-info"> |
||||
|
<input name="user_name" type="text" class="text" value="" placeholder="用户名"/> |
||||
|
<i class="i-name"></i> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="item"> |
||||
|
<div class="item-info"> |
||||
|
<input name="mobile_phone" id="mobile_phone" type="text" class="text" value="" placeholder="绑定手机号" /> |
||||
|
<i class="i-phone"></i> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="item"> |
||||
|
<div class="item-info phone_code"> |
||||
|
<input type="text" id="sms" name="mobile_code" maxlength="6" class="text text-1 text-4" placeholder="手机动态码"/> |
||||
|
<a href="javascript:void(0);" id="zphone" class="sms-btn">获取验证码</a> |
||||
|
<label id="phone_notice" class="error"></label> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="item"> |
||||
|
<div class="item-info"> |
||||
|
<input type="hidden" name="flag" id="flag" value='forget' /> |
||||
|
<input type="hidden" name="seccode" id="seccode" value="<?php echo $this->_var['sms_security_code']; ?>" /> |
||||
|
<input type="hidden" name="act" value="get_pwd_mobile" /> |
||||
|
<input type="button" name="button" maxlength="8" class="btn-regist" value="重置密码" onclick="submitPwdInfo(this);"/> |
||||
|
</div> |
||||
|
</div> |
||||
|
</form> |
||||
|
</div> |
||||
|
<div class="form formWenti" id="form_getPassword2"> |
||||
|
<form action="user.php" method="post" name="getPassword"> |
||||
|
<div class="msg_ts"><div class="msg_error"><i></i>用户名不能为空</div></div> |
||||
|
<div class="item last"> |
||||
|
<div class="item-info"> |
||||
|
<input name="user_name" type="text" class="text" value="" placeholder="用户名"/> |
||||
|
<i class="i-name"></i> |
||||
|
</div> |
||||
|
</div> |
||||
|
<?php $_from = $this->_var['extend_info_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'field');if (count($_from)): |
||||
|
foreach ($_from AS $this->_var['field']): |
||||
|
?> |
||||
|
<?php if ($this->_var['field']['id'] == 6): ?> |
||||
|
<div class="item" style="overflow:visible;"> |
||||
|
<div class="item-info"> |
||||
|
<div id="divselect" class="divselect"> |
||||
|
<div class="cite"><?php echo $this->_var['lang']['passwd_question']; ?></div> |
||||
|
<ul> |
||||
|
<?php $_from = $this->_var['passwd_questions']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('key', 'val');if (count($_from)): |
||||
|
foreach ($_from AS $this->_var['key'] => $this->_var['val']): |
||||
|
?> |
||||
|
<li><a href="javascript:;" selectid="<?php echo $this->_var['key']; ?>"><?php echo $this->_var['val']; ?></a></li> |
||||
|
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?> |
||||
|
</ul> |
||||
|
</div> |
||||
|
<input name="sel_question" type="hidden" value="4" id="passwd_quesetion"> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="item"> |
||||
|
<div class="item-info"> |
||||
|
<input name="passwd_answer" type="text" size="25" class="text" maxlengt='20' placeholder="<?php echo $this->_var['lang']['passwd_answer']; ?>"/> |
||||
|
</div> |
||||
|
</div> |
||||
|
<input name="is_passwd_questions" type="hidden" value="1" /> |
||||
|
<?php endif; ?> |
||||
|
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?> |
||||
|
<div class="item"> |
||||
|
<div class="item-info"> |
||||
|
<i class="i-captcha"></i> |
||||
|
<input type="text" id="captcha" name="captcha" maxlength="6" class="text text-1 text-4" value="" placeholder="验证码"/> |
||||
|
<img src="captcha_verify.php?captcha=get_pwd_question&<?php echo $this->_var['rand']; ?>" alt="captcha" name="img_captcha" class="fl ml5" onClick="this.src='captcha_verify.php?captcha=get_pwd_question&'+Math.random()" data-key="psw_question" /> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="item"> |
||||
|
<div class="item-info"> |
||||
|
<input type="hidden" name="act" value="check_answer" /> |
||||
|
<input type="button" name="button" maxlength="8" class="btn-regist" value="重置密码" onclick="submitPwdInfo(this);"/> |
||||
|
</div> |
||||
|
</div> |
||||
|
</form> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<?php endif; ?> |
||||
|
|
||||
|
<?php if ($this->_var['action'] == 'reset_password'): ?> |
||||
|
<script type="text/javascript"> |
||||
|
<?php $_from = $this->_var['lang']['password_js']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('key', 'item');if (count($_from)): |
||||
|
foreach ($_from AS $this->_var['key'] => $this->_var['item']): |
||||
|
?> |
||||
|
var <?php echo $this->_var['key']; ?> = "<?php echo $this->_var['item']; ?>"; |
||||
|
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?> |
||||
|
</script> |
||||
|
<div class="ecsc-registLogin ecsc-getPassword"> |
||||
|
<div class="registLogin borderBottom1"> |
||||
|
<div class="registLogin-header w1000"> |
||||
|
<a href="./index.php" class="logo"><img src="themes/ecmoban_dsc/images/logo_2015.png" /></a> |
||||
|
<b></b> |
||||
|
<span class="registLogin-header-fr">有账号<a href="user.php" class="jump">在此登录</a></span> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="registLogin-layout w1000"> |
||||
|
<div class="regist-banner"><a href="#" target="_blank"><img src="themes/ecmoban_dsc/images/regist-banner.jpg" /></a></div> |
||||
|
<div class="regist-wrap"> |
||||
|
<div class="regist-form"> |
||||
|
<div class="mt"> |
||||
|
<ul class="tab"> |
||||
|
<li class="curr">新密码</li> |
||||
|
</ul> |
||||
|
</div> |
||||
|
<div class="mc"> |
||||
|
<div class="form formtwo"> |
||||
|
<form action="user.php" method="post" name="getPassword2" onSubmit="return submitPwd()"> |
||||
|
<div class="item"> |
||||
|
<div class="item-info"> |
||||
|
<input name="new_password" type="password" size="25" class="text" placeholder="新密码" /> |
||||
|
<i class="i-pass"></i> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="item"> |
||||
|
<div class="item-info"> |
||||
|
<input name="confirm_password" type="password" size="25" class="text" placeholder="请确认密码"/> |
||||
|
<i class="i-pass"></i> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="item"> |
||||
|
<div class="item-info"> |
||||
|
<input type="text" id="captcha" name="captcha" maxlength="6" class="text text-1 text-4" placeholder="验证码"/> |
||||
|
<img src="captcha_verify.php?captcha=is_get_password&<?php echo $this->_var['rand']; ?>" alt="captcha" class="fl ml5" onClick="this.src='captcha_verify.php?captcha=is_get_password&'+Math.random()" /> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="item"> |
||||
|
<div class="item-info"> |
||||
|
<input type="hidden" name="act" value="act_edit_password" /> |
||||
|
<input type="hidden" name="uid" value="<?php echo $this->_var['uid']; ?>" /> |
||||
|
<input type="hidden" name="code" value="<?php echo $this->_var['code']; ?>" /> |
||||
|
<input type="submit" name="submit" value="<?php echo $this->_var['lang']['confirm_submit']; ?>" class="btn-regist" /> |
||||
|
</div> |
||||
|
</div> |
||||
|
</form> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<?php endif; ?> |
||||
|
<?php echo $this->fetch('library/page_footer_flow.lbi'); ?> |
||||
|
</body> |
||||
|
<script type="text/javascript" src="themes/<?php echo $GLOBALS['_CFG']['template']; ?>/js/focus.js"></script> |
||||
|
<script type="text/javascript"> |
||||
|
$(".tab").tabso({cntSelect:".mc",tabEvent:"click",tabStyle:"normal",onStyle:"curr"}); |
||||
|
|
||||
|
$(function(){ |
||||
|
//验证码切换 |
||||
|
$(".changeNextone").click(function(){ |
||||
|
$("#captcha_img").attr('src', 'captcha.php?'+Math.random()); |
||||
|
}); |
||||
|
$(".changeNexttwo").click(function(){ |
||||
|
$("#authcode_img").attr('src', 'captcha.php?'+Math.random()); |
||||
|
}); |
||||
|
|
||||
|
var is_passwd_questions = $("form[name='getPassword'] :input[name='is_passwd_questions']").val(); |
||||
|
|
||||
|
if(typeof(is_passwd_questions) == 'undefined'){ |
||||
|
$("#form_getPassword1").hide(); |
||||
|
$("#form_getPassword2").hide(); |
||||
|
} |
||||
|
}); |
||||
|
|
||||
|
var process_request = "<?php echo $this->_var['lang']['process_request']; ?>"; |
||||
|
<?php $_from = $this->_var['lang']['passport_js']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('key', 'item');if (count($_from)): |
||||
|
foreach ($_from AS $this->_var['key'] => $this->_var['item']): |
||||
|
?> |
||||
|
var <?php echo $this->_var['key']; ?> = "<?php echo $this->_var['item']; ?>"; |
||||
|
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?> |
||||
|
var username_exist = "<?php echo $this->_var['lang']['username_exist']; ?>"; |
||||
|
|
||||
|
//ie6、ie7去除a标签点击后虚线 |
||||
|
function ie67(){ |
||||
|
var b_v = navigator.appVersion; |
||||
|
var IE6 = b_v.search(/MSIE 6/i) != -1; |
||||
|
var IE7 = b_v.search(/MSIE 7/i) != -1; |
||||
|
if (IE6||IE7) |
||||
|
{ |
||||
|
$("a").ready(function(){ |
||||
|
$("a").attr("hidefocus",true); |
||||
|
}); |
||||
|
} |
||||
|
} |
||||
|
ie67(); |
||||
|
|
||||
|
$.divselect("#divselect","#passwd_quesetion"); |
||||
|
$.divselect("#divselect2","#passwd_quesetion2"); |
||||
|
</script> |
||||
|
</html> |
||||
@ -0,0 +1 @@ |
|||||
|
|
||||
@ -0,0 +1 @@ |
|||||
|
|
||||
@ -0,0 +1,6 @@ |
|||||
|
<?php |
||||
|
$this->mysql_config_cache_file_time = 1690763352; |
||||
|
$this->timeline = 0; |
||||
|
$this->timezone = 0; |
||||
|
$this->platform = 'WINDOWS'; |
||||
|
?> |
||||
@ -0,0 +1,242 @@ |
|||||
|
<?php |
||||
|
$data = array ( |
||||
|
0 => |
||||
|
array ( |
||||
|
'cat_id' => '14', |
||||
|
'cat_name' => '商家入驻流程说明', |
||||
|
'cat_type' => '1', |
||||
|
'keywords' => '', |
||||
|
'cat_desc' => '商家入驻说明专用', |
||||
|
'sort_order' => '50', |
||||
|
'show_in_nav' => '0', |
||||
|
'parent_id' => '0', |
||||
|
'has_children' => '0', |
||||
|
'aricle_num' => '7', |
||||
|
'description' => 'ecmoban', |
||||
|
), |
||||
|
1 => |
||||
|
array ( |
||||
|
'cat_id' => '15', |
||||
|
'cat_name' => '商家入驻商家说明', |
||||
|
'cat_type' => '1', |
||||
|
'keywords' => '', |
||||
|
'cat_desc' => '', |
||||
|
'sort_order' => '50', |
||||
|
'show_in_nav' => '0', |
||||
|
'parent_id' => '0', |
||||
|
'has_children' => '0', |
||||
|
'aricle_num' => '5', |
||||
|
'description' => 'ecmoban', |
||||
|
), |
||||
|
2 => |
||||
|
array ( |
||||
|
'cat_id' => '4', |
||||
|
'cat_name' => '3G资讯', |
||||
|
'cat_type' => '1', |
||||
|
'keywords' => '', |
||||
|
'cat_desc' => '', |
||||
|
'sort_order' => '50', |
||||
|
'show_in_nav' => '0', |
||||
|
'parent_id' => '0', |
||||
|
'has_children' => '0', |
||||
|
'aricle_num' => '4', |
||||
|
'description' => NULL, |
||||
|
), |
||||
|
3 => |
||||
|
array ( |
||||
|
'cat_id' => '17', |
||||
|
'cat_name' => 'App', |
||||
|
'cat_type' => '1', |
||||
|
'keywords' => '', |
||||
|
'cat_desc' => '', |
||||
|
'sort_order' => '50', |
||||
|
'show_in_nav' => '0', |
||||
|
'parent_id' => '0', |
||||
|
'has_children' => '1', |
||||
|
'aricle_num' => '0', |
||||
|
'description' => NULL, |
||||
|
), |
||||
|
4 => |
||||
|
array ( |
||||
|
'cat_id' => '19', |
||||
|
'cat_name' => '发票问题', |
||||
|
'cat_type' => '1', |
||||
|
'keywords' => '', |
||||
|
'cat_desc' => '', |
||||
|
'sort_order' => '50', |
||||
|
'show_in_nav' => '0', |
||||
|
'parent_id' => '0', |
||||
|
'has_children' => '0', |
||||
|
'aricle_num' => '1', |
||||
|
'description' => '', |
||||
|
), |
||||
|
5 => |
||||
|
array ( |
||||
|
'cat_id' => '12', |
||||
|
'cat_name' => '站内快讯', |
||||
|
'cat_type' => '1', |
||||
|
'keywords' => '', |
||||
|
'cat_desc' => '', |
||||
|
'sort_order' => '50', |
||||
|
'show_in_nav' => '0', |
||||
|
'parent_id' => '0', |
||||
|
'has_children' => '0', |
||||
|
'aricle_num' => '6', |
||||
|
'description' => '', |
||||
|
), |
||||
|
6 => |
||||
|
array ( |
||||
|
'cat_id' => '1', |
||||
|
'cat_name' => '系统分类', |
||||
|
'cat_type' => '2', |
||||
|
'keywords' => '', |
||||
|
'cat_desc' => '系统保留分类', |
||||
|
'sort_order' => '50', |
||||
|
'show_in_nav' => '0', |
||||
|
'parent_id' => '0', |
||||
|
'has_children' => '2', |
||||
|
'aricle_num' => '0', |
||||
|
'description' => NULL, |
||||
|
), |
||||
|
7 => |
||||
|
array ( |
||||
|
'cat_id' => '13', |
||||
|
'cat_name' => '商城公告', |
||||
|
'cat_type' => '1', |
||||
|
'keywords' => '', |
||||
|
'cat_desc' => '', |
||||
|
'sort_order' => '50', |
||||
|
'show_in_nav' => '0', |
||||
|
'parent_id' => '0', |
||||
|
'has_children' => '0', |
||||
|
'aricle_num' => '6', |
||||
|
'description' => '', |
||||
|
), |
||||
|
8 => |
||||
|
array ( |
||||
|
'cat_id' => '3', |
||||
|
'cat_name' => '网店帮助分类', |
||||
|
'cat_type' => '4', |
||||
|
'keywords' => '', |
||||
|
'cat_desc' => '网店帮助分类', |
||||
|
'sort_order' => '50', |
||||
|
'show_in_nav' => '0', |
||||
|
'parent_id' => '1', |
||||
|
'has_children' => '6', |
||||
|
'aricle_num' => '0', |
||||
|
'description' => NULL, |
||||
|
), |
||||
|
9 => |
||||
|
array ( |
||||
|
'cat_id' => '2', |
||||
|
'cat_name' => '网店信息', |
||||
|
'cat_type' => '3', |
||||
|
'keywords' => '', |
||||
|
'cat_desc' => '网店信息分类', |
||||
|
'sort_order' => '50', |
||||
|
'show_in_nav' => '0', |
||||
|
'parent_id' => '1', |
||||
|
'has_children' => '0', |
||||
|
'aricle_num' => '5', |
||||
|
'description' => '上海商创网络科技有限公司(ECSHOP模板堂)是ECSHOP模板与开发行业的明星企业,是ecshop行业首家股...', |
||||
|
), |
||||
|
10 => |
||||
|
array ( |
||||
|
'cat_id' => '5', |
||||
|
'cat_name' => '新手上路 ', |
||||
|
'cat_type' => '5', |
||||
|
'keywords' => '', |
||||
|
'cat_desc' => '', |
||||
|
'sort_order' => '1', |
||||
|
'show_in_nav' => '0', |
||||
|
'parent_id' => '3', |
||||
|
'has_children' => '0', |
||||
|
'aricle_num' => '4', |
||||
|
'description' => NULL, |
||||
|
), |
||||
|
11 => |
||||
|
array ( |
||||
|
'cat_id' => '7', |
||||
|
'cat_name' => '配送与支付 ', |
||||
|
'cat_type' => '5', |
||||
|
'keywords' => '', |
||||
|
'cat_desc' => '配送与支付 ', |
||||
|
'sort_order' => '2', |
||||
|
'show_in_nav' => '0', |
||||
|
'parent_id' => '3', |
||||
|
'has_children' => '0', |
||||
|
'aricle_num' => '4', |
||||
|
'description' => NULL, |
||||
|
), |
||||
|
12 => |
||||
|
array ( |
||||
|
'cat_id' => '8', |
||||
|
'cat_name' => '服务保证 ', |
||||
|
'cat_type' => '5', |
||||
|
'keywords' => '', |
||||
|
'cat_desc' => '', |
||||
|
'sort_order' => '3', |
||||
|
'show_in_nav' => '0', |
||||
|
'parent_id' => '3', |
||||
|
'has_children' => '0', |
||||
|
'aricle_num' => '3', |
||||
|
'description' => NULL, |
||||
|
), |
||||
|
13 => |
||||
|
array ( |
||||
|
'cat_id' => '9', |
||||
|
'cat_name' => '联系我们 ', |
||||
|
'cat_type' => '5', |
||||
|
'keywords' => '', |
||||
|
'cat_desc' => '联系我们 ', |
||||
|
'sort_order' => '4', |
||||
|
'show_in_nav' => '0', |
||||
|
'parent_id' => '3', |
||||
|
'has_children' => '0', |
||||
|
'aricle_num' => '3', |
||||
|
'description' => NULL, |
||||
|
), |
||||
|
14 => |
||||
|
array ( |
||||
|
'cat_id' => '10', |
||||
|
'cat_name' => '会员中心', |
||||
|
'cat_type' => '5', |
||||
|
'keywords' => '', |
||||
|
'cat_desc' => '', |
||||
|
'sort_order' => '5', |
||||
|
'show_in_nav' => '0', |
||||
|
'parent_id' => '3', |
||||
|
'has_children' => '0', |
||||
|
'aricle_num' => '3', |
||||
|
'description' => NULL, |
||||
|
), |
||||
|
15 => |
||||
|
array ( |
||||
|
'cat_id' => '20', |
||||
|
'cat_name' => '商创快讯', |
||||
|
'cat_type' => '5', |
||||
|
'keywords' => '商创热门', |
||||
|
'cat_desc' => '关注商创热门信息', |
||||
|
'sort_order' => '6', |
||||
|
'show_in_nav' => '0', |
||||
|
'parent_id' => '3', |
||||
|
'has_children' => '0', |
||||
|
'aricle_num' => '7', |
||||
|
'description' => '2016年3月10日,大商创多用户商城系统1.2版本正式发布并上传至线上,开放给用户免费下载安装。大商创多用户商城系统1.2版下载请点击...', |
||||
|
), |
||||
|
16 => |
||||
|
array ( |
||||
|
'cat_id' => '18', |
||||
|
'cat_name' => 'ios', |
||||
|
'cat_type' => '1', |
||||
|
'keywords' => '', |
||||
|
'cat_desc' => '', |
||||
|
'sort_order' => '50', |
||||
|
'show_in_nav' => '0', |
||||
|
'parent_id' => '17', |
||||
|
'has_children' => '0', |
||||
|
'aricle_num' => '0', |
||||
|
'description' => NULL, |
||||
|
), |
||||
|
); |
||||
|
?> |
||||
@ -0,0 +1,244 @@ |
|||||
|
<?php |
||||
|
$data = array ( |
||||
|
1478 => |
||||
|
array ( |
||||
|
'cat_id' => '1478', |
||||
|
'cat_name' => '助餐服务', |
||||
|
'measure_unit' => '', |
||||
|
'parent_id' => '0', |
||||
|
'is_show' => '1', |
||||
|
'show_in_nav' => '1', |
||||
|
'grade' => '0', |
||||
|
'sort_order' => '44', |
||||
|
'has_children' => '1', |
||||
|
'level' => 0, |
||||
|
'id' => '1478', |
||||
|
'name' => '助餐服务', |
||||
|
), |
||||
|
1554 => |
||||
|
array ( |
||||
|
'cat_id' => '1554', |
||||
|
'cat_name' => '社区食堂', |
||||
|
'measure_unit' => '', |
||||
|
'parent_id' => '1478', |
||||
|
'is_show' => '1', |
||||
|
'show_in_nav' => '1', |
||||
|
'grade' => '0', |
||||
|
'sort_order' => '50', |
||||
|
'has_children' => '0', |
||||
|
'level' => 1, |
||||
|
'id' => '1554', |
||||
|
'name' => '社区食堂', |
||||
|
), |
||||
|
1514 => |
||||
|
array ( |
||||
|
'cat_id' => '1514', |
||||
|
'cat_name' => '助洁服务', |
||||
|
'measure_unit' => '', |
||||
|
'parent_id' => '0', |
||||
|
'is_show' => '1', |
||||
|
'show_in_nav' => '1', |
||||
|
'grade' => '0', |
||||
|
'sort_order' => '45', |
||||
|
'has_children' => '3', |
||||
|
'level' => 0, |
||||
|
'id' => '1514', |
||||
|
'name' => '助洁服务', |
||||
|
), |
||||
|
1556 => |
||||
|
array ( |
||||
|
'cat_id' => '1556', |
||||
|
'cat_name' => '有偿理发', |
||||
|
'measure_unit' => '', |
||||
|
'parent_id' => '1514', |
||||
|
'is_show' => '1', |
||||
|
'show_in_nav' => '1', |
||||
|
'grade' => '0', |
||||
|
'sort_order' => '50', |
||||
|
'has_children' => '0', |
||||
|
'level' => 1, |
||||
|
'id' => '1556', |
||||
|
'name' => '有偿理发', |
||||
|
), |
||||
|
1558 => |
||||
|
array ( |
||||
|
'cat_id' => '1558', |
||||
|
'cat_name' => '保洁服务', |
||||
|
'measure_unit' => '', |
||||
|
'parent_id' => '1514', |
||||
|
'is_show' => '1', |
||||
|
'show_in_nav' => '1', |
||||
|
'grade' => '0', |
||||
|
'sort_order' => '50', |
||||
|
'has_children' => '0', |
||||
|
'level' => 1, |
||||
|
'id' => '1558', |
||||
|
'name' => '保洁服务', |
||||
|
), |
||||
|
1555 => |
||||
|
array ( |
||||
|
'cat_id' => '1555', |
||||
|
'cat_name' => '免费理发', |
||||
|
'measure_unit' => '', |
||||
|
'parent_id' => '1514', |
||||
|
'is_show' => '1', |
||||
|
'show_in_nav' => '1', |
||||
|
'grade' => '0', |
||||
|
'sort_order' => '50', |
||||
|
'has_children' => '0', |
||||
|
'level' => 1, |
||||
|
'id' => '1555', |
||||
|
'name' => '免费理发', |
||||
|
), |
||||
|
1553 => |
||||
|
array ( |
||||
|
'cat_id' => '1553', |
||||
|
'cat_name' => '助浴服务', |
||||
|
'measure_unit' => '', |
||||
|
'parent_id' => '0', |
||||
|
'is_show' => '1', |
||||
|
'show_in_nav' => '1', |
||||
|
'grade' => '0', |
||||
|
'sort_order' => '46', |
||||
|
'has_children' => '1', |
||||
|
'level' => 0, |
||||
|
'id' => '1553', |
||||
|
'name' => '助浴服务', |
||||
|
), |
||||
|
1562 => |
||||
|
array ( |
||||
|
'cat_id' => '1562', |
||||
|
'cat_name' => '助浴服务', |
||||
|
'measure_unit' => '', |
||||
|
'parent_id' => '1553', |
||||
|
'is_show' => '1', |
||||
|
'show_in_nav' => '1', |
||||
|
'grade' => '0', |
||||
|
'sort_order' => '50', |
||||
|
'has_children' => '0', |
||||
|
'level' => 1, |
||||
|
'id' => '1562', |
||||
|
'name' => '助浴服务', |
||||
|
), |
||||
|
1563 => |
||||
|
array ( |
||||
|
'cat_id' => '1563', |
||||
|
'cat_name' => '助医服务', |
||||
|
'measure_unit' => '', |
||||
|
'parent_id' => '0', |
||||
|
'is_show' => '1', |
||||
|
'show_in_nav' => '1', |
||||
|
'grade' => '0', |
||||
|
'sort_order' => '48', |
||||
|
'has_children' => '1', |
||||
|
'level' => 0, |
||||
|
'id' => '1563', |
||||
|
'name' => '助医服务', |
||||
|
), |
||||
|
1564 => |
||||
|
array ( |
||||
|
'cat_id' => '1564', |
||||
|
'cat_name' => '陪诊就医', |
||||
|
'measure_unit' => '', |
||||
|
'parent_id' => '1563', |
||||
|
'is_show' => '1', |
||||
|
'show_in_nav' => '1', |
||||
|
'grade' => '0', |
||||
|
'sort_order' => '50', |
||||
|
'has_children' => '0', |
||||
|
'level' => 1, |
||||
|
'id' => '1564', |
||||
|
'name' => '陪诊就医', |
||||
|
), |
||||
|
1548 => |
||||
|
array ( |
||||
|
'cat_id' => '1548', |
||||
|
'cat_name' => '便民服务', |
||||
|
'measure_unit' => '', |
||||
|
'parent_id' => '0', |
||||
|
'is_show' => '1', |
||||
|
'show_in_nav' => '1', |
||||
|
'grade' => '0', |
||||
|
'sort_order' => '49', |
||||
|
'has_children' => '2', |
||||
|
'level' => 0, |
||||
|
'id' => '1548', |
||||
|
'name' => '便民服务', |
||||
|
), |
||||
|
1560 => |
||||
|
array ( |
||||
|
'cat_id' => '1560', |
||||
|
'cat_name' => '维修服务', |
||||
|
'measure_unit' => '', |
||||
|
'parent_id' => '1548', |
||||
|
'is_show' => '1', |
||||
|
'show_in_nav' => '1', |
||||
|
'grade' => '0', |
||||
|
'sort_order' => '50', |
||||
|
'has_children' => '0', |
||||
|
'level' => 1, |
||||
|
'id' => '1560', |
||||
|
'name' => '维修服务', |
||||
|
), |
||||
|
1557 => |
||||
|
array ( |
||||
|
'cat_id' => '1557', |
||||
|
'cat_name' => '代买服务', |
||||
|
'measure_unit' => '', |
||||
|
'parent_id' => '1548', |
||||
|
'is_show' => '1', |
||||
|
'show_in_nav' => '1', |
||||
|
'grade' => '0', |
||||
|
'sort_order' => '50', |
||||
|
'has_children' => '0', |
||||
|
'level' => 1, |
||||
|
'id' => '1557', |
||||
|
'name' => '代买服务', |
||||
|
), |
||||
|
1565 => |
||||
|
array ( |
||||
|
'cat_id' => '1565', |
||||
|
'cat_name' => '应急转运', |
||||
|
'measure_unit' => '', |
||||
|
'parent_id' => '0', |
||||
|
'is_show' => '1', |
||||
|
'show_in_nav' => '1', |
||||
|
'grade' => '0', |
||||
|
'sort_order' => '50', |
||||
|
'has_children' => '0', |
||||
|
'level' => 0, |
||||
|
'id' => '1565', |
||||
|
'name' => '应急转运', |
||||
|
), |
||||
|
1566 => |
||||
|
array ( |
||||
|
'cat_id' => '1566', |
||||
|
'cat_name' => '代祭服务', |
||||
|
'measure_unit' => '', |
||||
|
'parent_id' => '0', |
||||
|
'is_show' => '1', |
||||
|
'show_in_nav' => '1', |
||||
|
'grade' => '0', |
||||
|
'sort_order' => '51', |
||||
|
'has_children' => '1', |
||||
|
'level' => 0, |
||||
|
'id' => '1566', |
||||
|
'name' => '代祭服务', |
||||
|
), |
||||
|
1567 => |
||||
|
array ( |
||||
|
'cat_id' => '1567', |
||||
|
'cat_name' => '文明祭祀', |
||||
|
'measure_unit' => '', |
||||
|
'parent_id' => '1566', |
||||
|
'is_show' => '1', |
||||
|
'show_in_nav' => '1', |
||||
|
'grade' => '0', |
||||
|
'sort_order' => '50', |
||||
|
'has_children' => '0', |
||||
|
'level' => 1, |
||||
|
'id' => '1567', |
||||
|
'name' => '文明祭祀', |
||||
|
), |
||||
|
); |
||||
|
?> |
||||
@ -0,0 +1,196 @@ |
|||||
|
<?php |
||||
|
$data = array ( |
||||
|
0 => |
||||
|
array ( |
||||
|
'cat_id' => '1478', |
||||
|
'cat_name' => '助餐服务', |
||||
|
'measure_unit' => '', |
||||
|
'parent_id' => '0', |
||||
|
'is_show' => '1', |
||||
|
'show_in_nav' => '1', |
||||
|
'grade' => '0', |
||||
|
'sort_order' => '44', |
||||
|
'has_children' => '1', |
||||
|
), |
||||
|
1 => |
||||
|
array ( |
||||
|
'cat_id' => '1514', |
||||
|
'cat_name' => '助洁服务', |
||||
|
'measure_unit' => '', |
||||
|
'parent_id' => '0', |
||||
|
'is_show' => '1', |
||||
|
'show_in_nav' => '1', |
||||
|
'grade' => '0', |
||||
|
'sort_order' => '45', |
||||
|
'has_children' => '3', |
||||
|
), |
||||
|
2 => |
||||
|
array ( |
||||
|
'cat_id' => '1553', |
||||
|
'cat_name' => '助浴服务', |
||||
|
'measure_unit' => '', |
||||
|
'parent_id' => '0', |
||||
|
'is_show' => '1', |
||||
|
'show_in_nav' => '1', |
||||
|
'grade' => '0', |
||||
|
'sort_order' => '46', |
||||
|
'has_children' => '1', |
||||
|
), |
||||
|
3 => |
||||
|
array ( |
||||
|
'cat_id' => '1563', |
||||
|
'cat_name' => '助医服务', |
||||
|
'measure_unit' => '', |
||||
|
'parent_id' => '0', |
||||
|
'is_show' => '1', |
||||
|
'show_in_nav' => '1', |
||||
|
'grade' => '0', |
||||
|
'sort_order' => '48', |
||||
|
'has_children' => '1', |
||||
|
), |
||||
|
4 => |
||||
|
array ( |
||||
|
'cat_id' => '1548', |
||||
|
'cat_name' => '便民服务', |
||||
|
'measure_unit' => '', |
||||
|
'parent_id' => '0', |
||||
|
'is_show' => '1', |
||||
|
'show_in_nav' => '1', |
||||
|
'grade' => '0', |
||||
|
'sort_order' => '49', |
||||
|
'has_children' => '2', |
||||
|
), |
||||
|
5 => |
||||
|
array ( |
||||
|
'cat_id' => '1565', |
||||
|
'cat_name' => '应急转运', |
||||
|
'measure_unit' => '', |
||||
|
'parent_id' => '0', |
||||
|
'is_show' => '1', |
||||
|
'show_in_nav' => '1', |
||||
|
'grade' => '0', |
||||
|
'sort_order' => '50', |
||||
|
'has_children' => '0', |
||||
|
), |
||||
|
6 => |
||||
|
array ( |
||||
|
'cat_id' => '1566', |
||||
|
'cat_name' => '代祭服务', |
||||
|
'measure_unit' => '', |
||||
|
'parent_id' => '0', |
||||
|
'is_show' => '1', |
||||
|
'show_in_nav' => '1', |
||||
|
'grade' => '0', |
||||
|
'sort_order' => '51', |
||||
|
'has_children' => '1', |
||||
|
), |
||||
|
7 => |
||||
|
array ( |
||||
|
'cat_id' => '1554', |
||||
|
'cat_name' => '社区食堂', |
||||
|
'measure_unit' => '', |
||||
|
'parent_id' => '1478', |
||||
|
'is_show' => '1', |
||||
|
'show_in_nav' => '1', |
||||
|
'grade' => '0', |
||||
|
'sort_order' => '50', |
||||
|
'has_children' => '0', |
||||
|
), |
||||
|
8 => |
||||
|
array ( |
||||
|
'cat_id' => '1556', |
||||
|
'cat_name' => '有偿理发', |
||||
|
'measure_unit' => '', |
||||
|
'parent_id' => '1514', |
||||
|
'is_show' => '1', |
||||
|
'show_in_nav' => '1', |
||||
|
'grade' => '0', |
||||
|
'sort_order' => '50', |
||||
|
'has_children' => '0', |
||||
|
), |
||||
|
9 => |
||||
|
array ( |
||||
|
'cat_id' => '1558', |
||||
|
'cat_name' => '保洁服务', |
||||
|
'measure_unit' => '', |
||||
|
'parent_id' => '1514', |
||||
|
'is_show' => '1', |
||||
|
'show_in_nav' => '1', |
||||
|
'grade' => '0', |
||||
|
'sort_order' => '50', |
||||
|
'has_children' => '0', |
||||
|
), |
||||
|
10 => |
||||
|
array ( |
||||
|
'cat_id' => '1555', |
||||
|
'cat_name' => '免费理发', |
||||
|
'measure_unit' => '', |
||||
|
'parent_id' => '1514', |
||||
|
'is_show' => '1', |
||||
|
'show_in_nav' => '1', |
||||
|
'grade' => '0', |
||||
|
'sort_order' => '50', |
||||
|
'has_children' => '0', |
||||
|
), |
||||
|
11 => |
||||
|
array ( |
||||
|
'cat_id' => '1560', |
||||
|
'cat_name' => '维修服务', |
||||
|
'measure_unit' => '', |
||||
|
'parent_id' => '1548', |
||||
|
'is_show' => '1', |
||||
|
'show_in_nav' => '1', |
||||
|
'grade' => '0', |
||||
|
'sort_order' => '50', |
||||
|
'has_children' => '0', |
||||
|
), |
||||
|
12 => |
||||
|
array ( |
||||
|
'cat_id' => '1557', |
||||
|
'cat_name' => '代买服务', |
||||
|
'measure_unit' => '', |
||||
|
'parent_id' => '1548', |
||||
|
'is_show' => '1', |
||||
|
'show_in_nav' => '1', |
||||
|
'grade' => '0', |
||||
|
'sort_order' => '50', |
||||
|
'has_children' => '0', |
||||
|
), |
||||
|
13 => |
||||
|
array ( |
||||
|
'cat_id' => '1562', |
||||
|
'cat_name' => '助浴服务', |
||||
|
'measure_unit' => '', |
||||
|
'parent_id' => '1553', |
||||
|
'is_show' => '1', |
||||
|
'show_in_nav' => '1', |
||||
|
'grade' => '0', |
||||
|
'sort_order' => '50', |
||||
|
'has_children' => '0', |
||||
|
), |
||||
|
14 => |
||||
|
array ( |
||||
|
'cat_id' => '1564', |
||||
|
'cat_name' => '陪诊就医', |
||||
|
'measure_unit' => '', |
||||
|
'parent_id' => '1563', |
||||
|
'is_show' => '1', |
||||
|
'show_in_nav' => '1', |
||||
|
'grade' => '0', |
||||
|
'sort_order' => '50', |
||||
|
'has_children' => '0', |
||||
|
), |
||||
|
15 => |
||||
|
array ( |
||||
|
'cat_id' => '1567', |
||||
|
'cat_name' => '文明祭祀', |
||||
|
'measure_unit' => '', |
||||
|
'parent_id' => '1566', |
||||
|
'is_show' => '1', |
||||
|
'show_in_nav' => '1', |
||||
|
'grade' => '0', |
||||
|
'sort_order' => '50', |
||||
|
'has_children' => '0', |
||||
|
), |
||||
|
); |
||||
|
?> |
||||
@ -0,0 +1,21 @@ |
|||||
|
<?php |
||||
|
$data = array ( |
||||
|
'ad_position' => |
||||
|
array ( |
||||
|
), |
||||
|
'brands' => |
||||
|
array ( |
||||
|
0 => |
||||
|
array ( |
||||
|
'brand_id' => '202', |
||||
|
'brand_name' => '无', |
||||
|
'brand_logo' => 'data/brandlogo/1678562901129611341.jpg', |
||||
|
'goods_num' => '2', |
||||
|
'tag' => '1', |
||||
|
'user_id' => '105', |
||||
|
'url' => 'category.php?id=1478&brand=202', |
||||
|
'selected' => 0, |
||||
|
), |
||||
|
), |
||||
|
); |
||||
|
?> |
||||
@ -0,0 +1,21 @@ |
|||||
|
<?php |
||||
|
$data = array ( |
||||
|
'ad_position' => |
||||
|
array ( |
||||
|
), |
||||
|
'brands' => |
||||
|
array ( |
||||
|
0 => |
||||
|
array ( |
||||
|
'brand_id' => '202', |
||||
|
'brand_name' => '无', |
||||
|
'brand_logo' => 'data/brandlogo/1678562901129611341.jpg', |
||||
|
'goods_num' => '8', |
||||
|
'tag' => '1', |
||||
|
'user_id' => '105', |
||||
|
'url' => 'category.php?id=1514&brand=202', |
||||
|
'selected' => 0, |
||||
|
), |
||||
|
), |
||||
|
); |
||||
|
?> |
||||
@ -0,0 +1,43 @@ |
|||||
|
<?php |
||||
|
$data = array ( |
||||
|
'ad_position' => |
||||
|
array ( |
||||
|
), |
||||
|
'brands' => |
||||
|
array ( |
||||
|
0 => |
||||
|
array ( |
||||
|
'brand_id' => '202', |
||||
|
'brand_name' => '无', |
||||
|
'brand_logo' => 'data/brandlogo/1678562901129611341.jpg', |
||||
|
'goods_num' => '3', |
||||
|
'tag' => '1', |
||||
|
'user_id' => '105', |
||||
|
'url' => 'category.php?id=1553&brand=202', |
||||
|
'selected' => 0, |
||||
|
), |
||||
|
1 => |
||||
|
array ( |
||||
|
'brand_id' => '205', |
||||
|
'brand_name' => '康伦健康沐浴', |
||||
|
'brand_logo' => 'data/brandlogo/1678562878193591476.jpg', |
||||
|
'goods_num' => '2', |
||||
|
'tag' => '1', |
||||
|
'user_id' => '102', |
||||
|
'url' => 'category.php?id=1553&brand=205', |
||||
|
'selected' => 0, |
||||
|
), |
||||
|
2 => |
||||
|
array ( |
||||
|
'brand_id' => '208', |
||||
|
'brand_name' => '乐福社上门助浴', |
||||
|
'brand_logo' => 'data/brandlogo/1678562865681620224.jpg', |
||||
|
'goods_num' => '6', |
||||
|
'tag' => '1', |
||||
|
'user_id' => '104', |
||||
|
'url' => 'category.php?id=1553&brand=208', |
||||
|
'selected' => 0, |
||||
|
), |
||||
|
), |
||||
|
); |
||||
|
?> |
||||
@ -0,0 +1,21 @@ |
|||||
|
<?php |
||||
|
$data = array ( |
||||
|
'ad_position' => |
||||
|
array ( |
||||
|
), |
||||
|
'brands' => |
||||
|
array ( |
||||
|
0 => |
||||
|
array ( |
||||
|
'brand_id' => '202', |
||||
|
'brand_name' => '无', |
||||
|
'brand_logo' => 'data/brandlogo/1678562901129611341.jpg', |
||||
|
'goods_num' => '5', |
||||
|
'tag' => '1', |
||||
|
'user_id' => '105', |
||||
|
'url' => 'category.php?id=1563&brand=202', |
||||
|
'selected' => 0, |
||||
|
), |
||||
|
), |
||||
|
); |
||||
|
?> |
||||
@ -0,0 +1,16 @@ |
|||||
|
<?php |
||||
|
$data = array ( |
||||
|
1554 => |
||||
|
array ( |
||||
|
'id' => '1554', |
||||
|
'cat_alias_name' => '', |
||||
|
'cat_name' => '社区食堂', |
||||
|
'level' => 1, |
||||
|
'name' => '社区食堂', |
||||
|
'url' => 'category.php?id=1554', |
||||
|
'cat_id' => |
||||
|
array ( |
||||
|
), |
||||
|
), |
||||
|
); |
||||
|
?> |
||||
@ -0,0 +1,40 @@ |
|||||
|
<?php |
||||
|
$data = array ( |
||||
|
1555 => |
||||
|
array ( |
||||
|
'id' => '1555', |
||||
|
'cat_alias_name' => '', |
||||
|
'cat_name' => '免费理发', |
||||
|
'level' => 1, |
||||
|
'name' => '免费理发', |
||||
|
'url' => 'category.php?id=1555', |
||||
|
'cat_id' => |
||||
|
array ( |
||||
|
), |
||||
|
), |
||||
|
1556 => |
||||
|
array ( |
||||
|
'id' => '1556', |
||||
|
'cat_alias_name' => '', |
||||
|
'cat_name' => '有偿理发', |
||||
|
'level' => 1, |
||||
|
'name' => '有偿理发', |
||||
|
'url' => 'category.php?id=1556', |
||||
|
'cat_id' => |
||||
|
array ( |
||||
|
), |
||||
|
), |
||||
|
1558 => |
||||
|
array ( |
||||
|
'id' => '1558', |
||||
|
'cat_alias_name' => '', |
||||
|
'cat_name' => '保洁服务', |
||||
|
'level' => 1, |
||||
|
'name' => '保洁服务', |
||||
|
'url' => 'category.php?id=1558', |
||||
|
'cat_id' => |
||||
|
array ( |
||||
|
), |
||||
|
), |
||||
|
); |
||||
|
?> |
||||
@ -0,0 +1,16 @@ |
|||||
|
<?php |
||||
|
$data = array ( |
||||
|
1562 => |
||||
|
array ( |
||||
|
'id' => '1562', |
||||
|
'cat_alias_name' => '', |
||||
|
'cat_name' => '助浴服务', |
||||
|
'level' => 1, |
||||
|
'name' => '助浴服务', |
||||
|
'url' => 'category.php?id=1562', |
||||
|
'cat_id' => |
||||
|
array ( |
||||
|
), |
||||
|
), |
||||
|
); |
||||
|
?> |
||||
@ -0,0 +1,16 @@ |
|||||
|
<?php |
||||
|
$data = array ( |
||||
|
1564 => |
||||
|
array ( |
||||
|
'id' => '1564', |
||||
|
'cat_alias_name' => '', |
||||
|
'cat_name' => '陪诊就医', |
||||
|
'level' => 1, |
||||
|
'name' => '陪诊就医', |
||||
|
'url' => 'category.php?id=1564', |
||||
|
'cat_id' => |
||||
|
array ( |
||||
|
), |
||||
|
), |
||||
|
); |
||||
|
?> |
||||
@ -0,0 +1,18 @@ |
|||||
|
<?php |
||||
|
$data = array ( |
||||
|
'name' => '', |
||||
|
'url' => 'category.php?id=8', |
||||
|
'id' => '8', |
||||
|
'goods_level2' => |
||||
|
array ( |
||||
|
), |
||||
|
'goods_level3' => |
||||
|
array ( |
||||
|
), |
||||
|
'floor_banner' => 'floor_banner8', |
||||
|
'floor_sort_order' => 1, |
||||
|
'brands_theme2' => |
||||
|
array ( |
||||
|
), |
||||
|
); |
||||
|
?> |
||||
@ -0,0 +1,44 @@ |
|||||
|
<?php |
||||
|
$data = array ( |
||||
|
0 => |
||||
|
array ( |
||||
|
'filename' => 'index', |
||||
|
'region' => '首页楼层', |
||||
|
'theme' => 'ecmoban_dsc', |
||||
|
'id' => '8', |
||||
|
'number' => '8', |
||||
|
'type' => '1', |
||||
|
'sort_order' => '0', |
||||
|
), |
||||
|
1 => |
||||
|
array ( |
||||
|
'filename' => 'index', |
||||
|
'region' => '首页楼层', |
||||
|
'theme' => 'ecmoban_dsc', |
||||
|
'id' => '12', |
||||
|
'number' => '8', |
||||
|
'type' => '1', |
||||
|
'sort_order' => '1', |
||||
|
), |
||||
|
2 => |
||||
|
array ( |
||||
|
'filename' => 'index', |
||||
|
'region' => '首页楼层', |
||||
|
'theme' => 'ecmoban_dsc', |
||||
|
'id' => '6', |
||||
|
'number' => '8', |
||||
|
'type' => '1', |
||||
|
'sort_order' => '2', |
||||
|
), |
||||
|
3 => |
||||
|
array ( |
||||
|
'filename' => 'index', |
||||
|
'region' => '首页楼层', |
||||
|
'theme' => 'ecmoban_dsc', |
||||
|
'id' => '3', |
||||
|
'number' => '8', |
||||
|
'type' => '1', |
||||
|
'sort_order' => '3', |
||||
|
), |
||||
|
); |
||||
|
?> |
||||
@ -0,0 +1,112 @@ |
|||||
|
<?php |
||||
|
$data = array ( |
||||
|
'best' => |
||||
|
array ( |
||||
|
0 => |
||||
|
array ( |
||||
|
'goods_id' => '608', |
||||
|
'sort_order' => '99', |
||||
|
), |
||||
|
1 => |
||||
|
array ( |
||||
|
'goods_id' => '635', |
||||
|
'sort_order' => '100', |
||||
|
), |
||||
|
2 => |
||||
|
array ( |
||||
|
'goods_id' => '637', |
||||
|
'sort_order' => '100', |
||||
|
), |
||||
|
3 => |
||||
|
array ( |
||||
|
'goods_id' => '610', |
||||
|
'sort_order' => '100', |
||||
|
), |
||||
|
4 => |
||||
|
array ( |
||||
|
'goods_id' => '609', |
||||
|
'sort_order' => '100', |
||||
|
), |
||||
|
5 => |
||||
|
array ( |
||||
|
'goods_id' => '607', |
||||
|
'sort_order' => '100', |
||||
|
), |
||||
|
), |
||||
|
'new' => |
||||
|
array ( |
||||
|
0 => |
||||
|
array ( |
||||
|
'goods_id' => '608', |
||||
|
'sort_order' => '99', |
||||
|
), |
||||
|
1 => |
||||
|
array ( |
||||
|
'goods_id' => '639', |
||||
|
'sort_order' => '100', |
||||
|
), |
||||
|
2 => |
||||
|
array ( |
||||
|
'goods_id' => '635', |
||||
|
'sort_order' => '100', |
||||
|
), |
||||
|
3 => |
||||
|
array ( |
||||
|
'goods_id' => '637', |
||||
|
'sort_order' => '100', |
||||
|
), |
||||
|
4 => |
||||
|
array ( |
||||
|
'goods_id' => '610', |
||||
|
'sort_order' => '100', |
||||
|
), |
||||
|
5 => |
||||
|
array ( |
||||
|
'goods_id' => '609', |
||||
|
'sort_order' => '100', |
||||
|
), |
||||
|
6 => |
||||
|
array ( |
||||
|
'goods_id' => '607', |
||||
|
'sort_order' => '100', |
||||
|
), |
||||
|
), |
||||
|
'hot' => |
||||
|
array ( |
||||
|
0 => |
||||
|
array ( |
||||
|
'goods_id' => '608', |
||||
|
'sort_order' => '99', |
||||
|
), |
||||
|
1 => |
||||
|
array ( |
||||
|
'goods_id' => '635', |
||||
|
'sort_order' => '100', |
||||
|
), |
||||
|
2 => |
||||
|
array ( |
||||
|
'goods_id' => '637', |
||||
|
'sort_order' => '100', |
||||
|
), |
||||
|
3 => |
||||
|
array ( |
||||
|
'goods_id' => '610', |
||||
|
'sort_order' => '100', |
||||
|
), |
||||
|
4 => |
||||
|
array ( |
||||
|
'goods_id' => '609', |
||||
|
'sort_order' => '100', |
||||
|
), |
||||
|
5 => |
||||
|
array ( |
||||
|
'goods_id' => '607', |
||||
|
'sort_order' => '100', |
||||
|
), |
||||
|
), |
||||
|
'brand' => |
||||
|
array ( |
||||
|
637 => '无', |
||||
|
), |
||||
|
); |
||||
|
?> |
||||
@ -0,0 +1,222 @@ |
|||||
|
<?php |
||||
|
$data = array ( |
||||
|
'shop_name' => '金普智慧民生服务', |
||||
|
'shop_title' => '金普智慧民生服务', |
||||
|
'shop_desc' => '金普智慧民生服务', |
||||
|
'shop_keywords' => '金普智慧民生服务', |
||||
|
'shop_country' => '1', |
||||
|
'shop_province' => '18', |
||||
|
'shop_city' => '245', |
||||
|
'shop_address' => '金普新区', |
||||
|
'qq' => '11111,2222', |
||||
|
'ww' => '', |
||||
|
'skype' => '', |
||||
|
'ym' => '', |
||||
|
'msn' => '', |
||||
|
'service_email' => '', |
||||
|
'service_phone' => '', |
||||
|
'shop_closed' => '0', |
||||
|
'close_comment' => '', |
||||
|
'shop_logo' => '', |
||||
|
'licensed' => '0', |
||||
|
'user_notice' => '', |
||||
|
'shop_notice' => '', |
||||
|
'shop_reg_closed' => '0', |
||||
|
'lang' => 'zh_cn', |
||||
|
'icp_number' => 'DSC000001', |
||||
|
'icp_file' => '', |
||||
|
'watermark' => '', |
||||
|
'watermark_place' => '0', |
||||
|
'watermark_alpha' => 65, |
||||
|
'use_storage' => '1', |
||||
|
'market_price_rate' => 1.2, |
||||
|
'rewrite' => '0', |
||||
|
'integral_name' => '积分', |
||||
|
'integral_scale' => 50, |
||||
|
'integral_percent' => '100', |
||||
|
'sn_prefix' => 'ECS', |
||||
|
'comment_check' => '1', |
||||
|
'no_picture' => 'images/no_picture.gif', |
||||
|
'stats_code' => '', |
||||
|
'cache_time' => 3600, |
||||
|
'register_points' => '0', |
||||
|
'enable_gzip' => '0', |
||||
|
'top10_time' => 0, |
||||
|
'timezone' => '8', |
||||
|
'upload_size_limit' => '64', |
||||
|
'cron_method' => '0', |
||||
|
'comment_factor' => '0', |
||||
|
'enable_order_check' => '1', |
||||
|
'default_storage' => 1000, |
||||
|
'bgcolor' => '#FFFFFF', |
||||
|
'visit_stats' => 'on', |
||||
|
'send_mail_on' => 'off', |
||||
|
'auto_generate_gallery' => '1', |
||||
|
'retain_original_img' => '1', |
||||
|
'member_email_validate' => '1', |
||||
|
'message_board' => '1', |
||||
|
'certificate_id' => '1133133131', |
||||
|
'token' => 'c49edab224d09de5d24e1bcdf9a18508322868ca44f62506af25f77b45af4e5b', |
||||
|
'certi' => 'http://ecshop.ecmoban.com/dsc.php', |
||||
|
'send_verify_email' => '0', |
||||
|
'ent_id' => '', |
||||
|
'ent_ac' => '', |
||||
|
'ent_sign' => '', |
||||
|
'ent_email' => '', |
||||
|
'date_format' => 'Y-m-d', |
||||
|
'time_format' => 'Y-m-d H:i:s', |
||||
|
'currency_format' => '<em>¥</em>%s', |
||||
|
'thumb_width' => 240, |
||||
|
'thumb_height' => 240, |
||||
|
'image_width' => 1200, |
||||
|
'image_height' => 1200, |
||||
|
'top_number' => 5, |
||||
|
'history_number' => 18, |
||||
|
'comments_number' => 6, |
||||
|
'bought_goods' => 15, |
||||
|
'article_number' => 8, |
||||
|
'goods_name_length' => 100, |
||||
|
'price_format' => '0', |
||||
|
'page_size' => 20, |
||||
|
'sort_order_type' => '0', |
||||
|
'sort_order_method' => '0', |
||||
|
'show_order_type' => '1', |
||||
|
'attr_related_number' => '5', |
||||
|
'goods_gallery_number' => 10, |
||||
|
'article_title_length' => '20', |
||||
|
'name_of_region_1' => '国家', |
||||
|
'name_of_region_2' => '省', |
||||
|
'name_of_region_3' => '市', |
||||
|
'name_of_region_4' => '区', |
||||
|
'search_keywords' => '欢迎光临手机网,我们的宗旨:诚信经营、服务客户! 培训四级砌筑工,防水工,电工,计算机程序设计员,焊工,钳工。', |
||||
|
'related_goods_number' => '5', |
||||
|
'help_open' => '1', |
||||
|
'article_page_size' => '20', |
||||
|
'page_style' => '1', |
||||
|
'recommend_order' => '0', |
||||
|
'index_ad' => 'sys', |
||||
|
'can_invoice' => '1', |
||||
|
'use_integral' => '1', |
||||
|
'use_bonus' => '1', |
||||
|
'use_surplus' => '1', |
||||
|
'use_how_oos' => '1', |
||||
|
'send_confirm_email' => '0', |
||||
|
'send_ship_email' => '0', |
||||
|
'send_cancel_email' => '0', |
||||
|
'send_invalid_email' => '0', |
||||
|
'order_pay_note' => '1', |
||||
|
'order_unpay_note' => '1', |
||||
|
'order_ship_note' => '1', |
||||
|
'order_receive_note' => '1', |
||||
|
'order_unship_note' => '1', |
||||
|
'order_return_note' => '1', |
||||
|
'order_invalid_note' => '1', |
||||
|
'order_cancel_note' => '1', |
||||
|
'invoice_content' => '不开发票 |
||||
|
明细 |
||||
|
办公用品 |
||||
|
电脑配件 |
||||
|
耗材', |
||||
|
'anonymous_buy' => '1', |
||||
|
'min_goods_amount' => 0, |
||||
|
'one_step_buy' => 0, |
||||
|
'stock_dec_time' => '1', |
||||
|
'cart_confirm' => '4', |
||||
|
'send_service_email' => '0', |
||||
|
'show_goods_in_cart' => '3', |
||||
|
'show_attr_in_cart' => '1', |
||||
|
'smtp_host' => 'smtp.163.com', |
||||
|
'smtp_port' => '25', |
||||
|
'smtp_user' => '13275603192@163.com', |
||||
|
'smtp_pass' => 'aixia11291026', |
||||
|
'smtp_mail' => '13275603192@163.com', |
||||
|
'mail_charset' => 'UTF8', |
||||
|
'mail_service' => '1', |
||||
|
'smtp_ssl' => '0', |
||||
|
'integrate_code' => 'ecshop', |
||||
|
'integrate_config' => '', |
||||
|
'hash_code' => 'b76989c756aab2c64cf941eb31dec09c', |
||||
|
'template' => 'ecmoban_dsc', |
||||
|
'install_date' => '1379320265', |
||||
|
'dsc_version' => 'v1.3', |
||||
|
'sms_user_name' => '', |
||||
|
'sms_password' => '', |
||||
|
'sms_auth_str' => '', |
||||
|
'sms_domain' => '', |
||||
|
'sms_count' => '', |
||||
|
'sms_total_money' => '', |
||||
|
'sms_balance' => '', |
||||
|
'sms_last_request' => '', |
||||
|
'affiliate' => 'a:3:{s:6:"config";a:7:{s:6:"expire";d:24;s:11:"expire_unit";s:4:"hour";s:11:"separate_by";i:0;s:15:"level_point_all";s:2:"5%";s:15:"level_money_all";s:2:"1%";s:18:"level_register_all";i:2;s:17:"level_register_up";i:60;}s:4:"item";a:4:{i:0;a:2:{s:11:"level_point";s:3:"60%";s:11:"level_money";s:3:"60%";}i:1;a:2:{s:11:"level_point";s:3:"30%";s:11:"level_money";s:3:"30%";}i:2;a:2:{s:11:"level_point";s:2:"7%";s:11:"level_money";s:2:"7%";}i:3;a:2:{s:11:"level_point";s:2:"3%";s:11:"level_money";s:2:"3%";}}s:2:"on";i:0;}', |
||||
|
'captcha' => '37', |
||||
|
'captcha_width' => '112', |
||||
|
'captcha_height' => '37', |
||||
|
'sitemap' => 'a:6:{s:19:"homepage_changefreq";s:6:"hourly";s:17:"homepage_priority";s:3:"0.9";s:19:"category_changefreq";s:6:"hourly";s:17:"category_priority";s:3:"0.8";s:18:"content_changefreq";s:6:"weekly";s:16:"content_priority";s:3:"0.7";}', |
||||
|
'points_rule' => '', |
||||
|
'flash_theme' => 'dynfocus', |
||||
|
'stylename' => '', |
||||
|
'show_goodssn' => '1', |
||||
|
'show_brand' => '1', |
||||
|
'show_goodsweight' => '1', |
||||
|
'show_goodsnumber' => '1', |
||||
|
'show_addtime' => '1', |
||||
|
'goodsattr_style' => '1', |
||||
|
'show_marketprice' => '1', |
||||
|
'sms_shop_mobile' => '18321061615', |
||||
|
'sms_order_placed' => '0', |
||||
|
'sms_order_payed' => '0', |
||||
|
'sms_order_shipped' => '0', |
||||
|
'wap_config' => '1', |
||||
|
'wap_logo' => '', |
||||
|
'message_check' => '1', |
||||
|
'auction_ad' => '20', |
||||
|
'marticle' => '14,15', |
||||
|
'marticle_id' => '42', |
||||
|
'open_area_goods' => '0', |
||||
|
'open_delivery_time' => '1', |
||||
|
'choose_process' => '1', |
||||
|
'freight_model' => '1', |
||||
|
'editing_tools' => 'ueditor', |
||||
|
'customer_service' => '1', |
||||
|
'review_goods' => '1', |
||||
|
'sms_ecmoban_user' => 'cf_18017053050', |
||||
|
'sms_ecmoban_password' => 'b004d18f552b43b5ee517598bf744089', |
||||
|
'sms_signin' => '0', |
||||
|
'group_goods' => '推荐配件,人气组合', |
||||
|
'attr_set_up' => '1', |
||||
|
'sign' => '30', |
||||
|
'return_pictures' => '10', |
||||
|
'sms_price_notice' => '0', |
||||
|
'single_thumb_width' => '120', |
||||
|
'single_thumb_height' => '120', |
||||
|
'goods_file' => 'goods_name,shop_price,market_price,promote_price,goods_sn-warehouse_price,warehouse_promote_price,region_price,region_promote_price', |
||||
|
'user_helpart' => '11,12,13,14,15,16,17,21,22', |
||||
|
'delete_seller' => '1', |
||||
|
'seller_email' => '0', |
||||
|
'show_warehouse' => '1', |
||||
|
'captcha_font_size' => '16', |
||||
|
'captcha_length' => '4', |
||||
|
'wap_index_pro' => '1', |
||||
|
'open_oss' => '0', |
||||
|
'two_code' => '1', |
||||
|
'two_code_logo' => '', |
||||
|
'two_code_links' => '', |
||||
|
'two_code_mouse' => '', |
||||
|
'open_memcached' => '0', |
||||
|
'ad_reminder' => '1', |
||||
|
'sms_seller_signin' => '0', |
||||
|
'best_number' => 3, |
||||
|
'new_number' => 3, |
||||
|
'hot_number' => 3, |
||||
|
'promote_number' => 3, |
||||
|
'invoice_type' => |
||||
|
array ( |
||||
|
'type' => |
||||
|
array ( |
||||
|
), |
||||
|
'rate' => |
||||
|
array ( |
||||
|
), |
||||
|
), |
||||
|
); |
||||
|
?> |
||||
@ -0,0 +1,113 @@ |
|||||
|
<?php echo $this->smarty_insert_scripts(array('files'=>'transport_jquery.js,utils.js')); ?> |
||||
|
|
||||
|
<div id="ECS_ORDERTOTAL"> |
||||
|
<div class="order-summary"> |
||||
|
<div class="statistic"> |
||||
|
<div class="list"> |
||||
|
<span><?php echo $this->_var['lang']['goods_all_price']; ?>:</span> |
||||
|
<em class="price" id="warePriceId"><?php echo $this->_var['total']['goods_price_formated']; ?></em> |
||||
|
</div> |
||||
|
<?php if ($this->_var['total']['discount'] > 0): ?> |
||||
|
<div class="list"> |
||||
|
<span><?php echo $this->_var['lang']['discount']; ?>:</span> |
||||
|
<em class="price" id="cachBackId"> -<?php echo $this->_var['total']['discount_formated']; ?></em> |
||||
|
</div> |
||||
|
<?php endif; ?> |
||||
|
<?php if ($this->_var['total']['tax'] > 0): ?> |
||||
|
<div class="list"> |
||||
|
<span><?php echo $this->_var['lang']['tax']; ?>:</span> |
||||
|
<em class="price" id="cachBackId"> +<?php echo $this->_var['total']['tax_formated']; ?></em> |
||||
|
</div> |
||||
|
<?php endif; ?> |
||||
|
<?php if ($this->_var['total']['shipping_fee'] > 0): ?> |
||||
|
<div class="list"> |
||||
|
<span><?php echo $this->_var['lang']['shipping_fee']; ?>:</span> |
||||
|
<em class="price" id="freightPriceId"> |
||||
|
<?php echo $this->_var['total']['shipping_fee_formated']; ?> |
||||
|
</em> |
||||
|
</div> |
||||
|
<?php endif; ?> |
||||
|
|
||||
|
<?php if ($this->_var['total']['shipping_insure'] > 0): ?> |
||||
|
<div class="list"> |
||||
|
<span><?php echo $this->_var['lang']['insure_fee']; ?>:</span> |
||||
|
<em class="price" id="cachBackId"> +<?php echo $this->_var['total']['shipping_insure_formated']; ?></em> |
||||
|
</div> |
||||
|
<?php endif; ?> |
||||
|
<?php if ($this->_var['total']['pay_fee'] > 0): ?> |
||||
|
<div class="list"> |
||||
|
<span><?php echo $this->_var['lang']['pay_fee']; ?>:</span> |
||||
|
<em class="price" id="cachBackId"> +<?php echo $this->_var['total']['pay_fee_formated']; ?></em> |
||||
|
</div> |
||||
|
<?php endif; ?> |
||||
|
<?php if ($this->_var['total']['pack_fee'] > 0): ?> |
||||
|
<div class="list"> |
||||
|
<span><?php echo $this->_var['lang']['pack_fee']; ?>:</span> |
||||
|
<em class="price" id="cachBackId"> +<?php echo $this->_var['total']['pack_fee_formated']; ?></em> |
||||
|
</div> |
||||
|
<?php endif; ?> |
||||
|
<?php if ($this->_var['total']['card_fee'] > 0): ?> |
||||
|
<div class="list"> |
||||
|
<span><?php echo $this->_var['lang']['card_fee']; ?>:</span> |
||||
|
<em class="price" id="cachBackId"> +<?php echo $this->_var['total']['card_fee_formated']; ?></em> |
||||
|
</div> |
||||
|
<?php endif; ?> |
||||
|
|
||||
|
<?php if ($this->_var['total']['surplus'] > 0 || $this->_var['total']['integral'] > 0 || $this->_var['total']['bonus'] > 0): ?> |
||||
|
<?php if ($this->_var['total']['surplus'] > 0): ?> |
||||
|
<div class="list"> |
||||
|
<span><?php echo $this->_var['lang']['use_surplus']; ?>:</span> |
||||
|
<em class="price" id="cachBackId"> -<?php echo $this->_var['total']['surplus_formated']; ?></em> |
||||
|
</div> |
||||
|
<?php endif; ?> |
||||
|
<?php if ($this->_var['total']['integral'] > 0): ?> |
||||
|
<div class="list"> |
||||
|
<span><?php echo $this->_var['lang']['use_integral']; ?>:</span> |
||||
|
<em class="price" id="cachBackId"> -<?php echo $this->_var['total']['integral_formated']; ?></em> |
||||
|
</div> |
||||
|
<?php endif; ?> |
||||
|
<?php if ($this->_var['total']['bonus'] > 0): ?> |
||||
|
<div class="list"> |
||||
|
<span><?php echo $this->_var['lang']['use_bonus']; ?>:</span> |
||||
|
<em class="price" id="cachBackId"> -<?php echo $this->_var['total']['bonus_formated']; ?></em> |
||||
|
</div> |
||||
|
<?php endif; ?> |
||||
|
<?php endif; ?> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="trade-foot"> |
||||
|
<div class="checkout-buttons"> |
||||
|
<div class="sticky-wrap"> |
||||
|
<div class="inner"> |
||||
|
<input name="rec_number_str" value="" type="hidden"> |
||||
|
<div class="btn-area"> |
||||
|
<input type="submit" class="submit-btn" value="提交订单"/> |
||||
|
</div> |
||||
|
<span class="total"> |
||||
|
<?php if ($this->_var['total']['exchange_integral']): ?> |
||||
|
<span class="txt flow_exchange_goods"><?php echo $this->_var['lang']['notice_eg_integral']; ?></span> |
||||
|
<strong id="payPriceId" class="flow_exchange_goods"><?php echo $this->_var['total']['exchange_integral']; ?></strong> |
||||
|
<span class="txt" style="padding-left:15px; display:none"> |
||||
|
使用支付类型: |
||||
|
<select name="pay_type" id="sel_pay_type"> |
||||
|
<option value="0">RMB支付</option> |
||||
|
<option value="1" <?php if ($this->_var['is_exchange_goods'] == 1): ?>selected<?php endif; ?>>积分支付</option> |
||||
|
</select> |
||||
|
</span> |
||||
|
|
||||
|
<?php endif; ?> |
||||
|
|
||||
|
<span class="txt flow_general_goods"><?php echo $this->_var['lang']['total_fee']; ?>:</span> |
||||
|
<strong id="payPriceId" class="flow_general_goods"><?php echo $this->_var['total']['amount_formated']; ?></strong> |
||||
|
</span> |
||||
|
<div class="amount-sum">已选择<em><?php echo $this->_var['cart_goods_number']; ?></em>件商品</div> |
||||
|
<?php if ($this->_var['is_group_buy']): ?><div class="amount-sum"><strong><?php echo $this->_var['lang']['notice_gb_order_amount']; ?></strong></div><?php endif; ?> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
|
<div class="consignee-foot"> |
||||
|
<p>寄送至:<?php echo $this->_var['consignee']['consignee_address']; ?></p> |
||||
|
<p>收货人:<?php echo $this->_var['consignee']['consignee']; ?> <?php echo $this->_var['consignee']['mobile']; ?></p> |
||||
|
</div> |
||||
|
</div> |
||||
|
</div> |
||||
Some files were not shown because too many files changed in this diff
Loading…
Reference in new issue