Authored by whb

index.js

... ... @@ -472,11 +472,17 @@ class WebAction extends Controller_Abstract
} else {
$channel = \Index\HomeModel::getSwitchChannel();
}
if(APPLICATION_ENV == 'production' || APPLICATION_ENV == 'preview') {
$apiDomain = 'http://api.open.yohobuy.com';
} else {
$apiDomain = 'http://test.open.yohobuy.com';
}
$header = array(
'navbars'=> \Index\HomeModel::getNavBars($channel),
'gobytype'=> 'gobuy'.$channel,
'searchcate'=>'searchcate'.$channel,
'header'=> true,
'apiDomain'=>''
);
$this->_view->assign('headerdata', $header);
}
... ...
... ... @@ -331,7 +331,7 @@ var handlebars = require("handlebars");
var json2 = require("index");
var vipInfoCombine = null; //用户信息编译模板
var loginInfoCombine = null; //登录信息编译模板
var apiDomain = 'http://api.open.yohobuy.com/'; //获取数据的地址http://api.open.yohobuy.com
var apiDomain = $('#api-domain').val(); //获取数据的地址
var cartTpl = ''; //购物车模板
/**
* 搜寻的时候过滤非法字符(+-/:等非法字符单独出现)
... ... @@ -388,6 +388,8 @@ var bannerMap = {
};
var cookieMap = {};
$('#api-domain').remove(); //删除信息表单
function getSource(column, postition, event) {
try {
dataLayer.push({
... ...
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.