Exemple #1
0
 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();
 }
Exemple #2
0
 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');
 }
Exemple #3
0
 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;
     }
 }
Exemple #4
0
 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");
 }
Exemple #5
0
 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');
 }
Exemple #6
0
 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;
     }
 }
Exemple #7
0
 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');
 }
Exemple #8
0
 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");
 }
Exemple #9
0
 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);
 }
Exemple #10
0
 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 **/
 }
Exemple #11
0
 function __construct($app)
 {
     parent::__construct($app);
 }