public function __construct(&$app) { parent::__construct($app); $shopname = app::get('site')->getConf('site.name'); if (isset($shopname)) { $this->title = app::get('b2c')->_('购物车') . '_' . $shopname; $this->keywords = app::get('b2c')->_('购物车_') . '_' . $shopname; $this->description = app::get('b2c')->_('购物车_') . '_' . $shopname; } $this->set_tmpl('cart'); $this->mCart = $this->app->model('cart'); $this->set_no_store(); //kernel::single('base_session')->start(); $this->obj_session = kernel::single('base_session'); $this->obj_session->start(); $this->member_status = $this->check_login(); if (!$this->member_status) { $this->pagedata['login'] = '******'; } $this->objMath = kernel::single("ectools_math"); $this->pagedata['res_url'] = $this->app->res_url; $this->pagedata['request_url'] = $this->gen_url(array('app' => 'b2c', 'ctl' => 'wap_product', 'act' => 'get_goods_spec')); //var_dump(kernel::service('openapi.weixin')->api()); $this->mCart->unset_data(); }
function __construct(&$app) { parent::__construct($app); $this->_response->set_header('Cache-Control', 'no-store'); kernel::single('base_session')->start(); $this->userObject = kernel::single('b2c_user_object'); $this->userPassport = kernel::single('b2c_user_passport'); }
function __construct($app) { parent::__construct($app); $shopname = app::get('site')->getConf('site.name'); if (isset($shopname)) { $this->title = app::get('wap')->_('搜索') . '_' . $shopname; $this->keywords = app::get('wap')->_('搜索_') . '_' . $shopname; $this->description = app::get('wap')->_('搜索_') . '_' . $shopname; } }
public function __construct(&$app) { parent::__construct($app); $this->_response->set_header('Cache-Control', 'no-store'); if (!$this->action) { $this->action = 'index'; } $this->action_view = $this->action . ".html"; $this->objMath = kernel::single("ectools_math"); }
public function __construct(&$app) { parent::__construct($app); $shopname = app::get('site')->getConf('site.name'); $this->shopname = $shopname; if (isset($shopname)) { $this->title = app::get('b2c')->_('商品分类') . '_' . $shopname; $this->keywords = app::get('b2c')->_('商品分类_') . '_' . $shopname; $this->description = app::get('b2c')->_('商品分类_') . '_' . $shopname; } $this->_response->set_header('Cache-Control', 'no-store, no-cache'); }
function __construct($app) { parent::__construct($app); $shopname = app::get('wap')->getConf('wap.shopname'); $this->shopname = $shopname; $this->set_tmpl('brandlist'); if (isset($shopname)) { $this->title = app::get('b2c')->_('品牌页') . '_' . $shopname; $this->keywords = app::get('b2c')->_('品牌页') . '_' . $shopname; $this->description = app::get('b2c')->_('品牌页') . '_' . $shopname; } }
public function __construct(&$app) { parent::__construct($app); $shopname = app::get('site')->getConf('site.name'); $this->shopname = $shopname; if (isset($shopname)) { $this->title = app::get('b2c')->_('频道'); $this->keywords = app::get('b2c')->_('商品分类_') . '_' . $shopname; $this->description = app::get('b2c')->_('商品分类_') . '_' . $shopname; } $this->_response->set_header('Cache-Control', 'no-store, no-cache'); $imageDefault = app::get('image')->getConf('image.set'); $this->pagedata['image_default'] = base_storager::image_path($imageDefault['M']['default_image'], 's'); }
public function __construct(&$app) { parent::__construct($app); $shopname = app::get('site')->getConf('site.name'); if (isset($sysconfig)) { $this->title = app::get('b2c')->_('订单') . '_' . $shopname; $this->keywords = app::get('b2c')->_('订单_') . '_' . $shopname; $this->description = app::get('b2c')->_('订单_') . '_' . $shopname; } $this->header .= '<meta name="robots" content="noindex,noarchive,nofollow" />'; $this->_response->set_header('Cache-Control', 'no-store'); $this->title = app::get('b2c')->_('订单中心'); $this->objMath = kernel::single("ectools_math"); }
function __construct($app) { parent::__construct($app); $this->shopname = app::get('site')->getConf('site.name'); if (isset($this->shopname)) { $this->title = app::get('b2c')->_('商品页') . '_' . $this->shopname; $this->keywords = app::get('b2c')->_('商品页') . '_' . $this->shopname; $this->description = app::get('b2c')->_('商品页') . '_' . $this->shopname; } $cur = app::get('ectools')->model('currency'); //货币格式输出 $ret = $cur->getFormat(); $ret = array('decimals' => $this->app->getConf('system.money.decimals'), 'dec_point' => $this->app->getConf('system.money.dec_point'), 'thousands_sep' => $this->app->getConf('system.money.thousands_sep'), 'fonttend_decimal_type' => $this->app->getConf('system.money.operation.carryset'), 'fonttend_decimal_remain' => $this->app->getConf('system.money.decimals'), 'sign' => $ret['sign']); $this->pagedata['money_format'] = json_encode($ret); }
function __construct(&$app) { parent::__construct($app); $shopname = app::get('site')->getConf('site.name'); if (isset($shopname)) { $this->title = app::get('b2c')->_('会员中心') . '_' . $shopname; $this->keywords = app::get('b2c')->_('会员中心_') . '_' . $shopname; $this->description = app::get('b2c')->_('会员中心_') . '_' . $shopname; } $this->header .= '<meta name="robots" content="noindex,noarchive,nofollow" />'; $this->_response->set_header('Cache-Control', 'no-store'); $this->verify_member(); $this->pagesize = 10; $this->action = $this->_request->get_act_name(); if (!$this->action) { $this->action = 'index'; } $this->action_view = $this->action . ".html"; $this->member = $this->get_current_member(); /** end **/ }
function __construct($app) { parent::__construct($app); }