示例#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();
 }
示例#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');
 }
示例#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;
     }
 }
示例#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");
 }
示例#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');
 }
示例#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;
     }
 }
示例#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');
 }
示例#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");
 }
示例#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);
 }
示例#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 **/
 }
示例#11
0
 function __construct($app)
 {
     parent::__construct($app);
 }