private function _storenav_content() { $store = M('Store'); $nav = M('Store_nav'); $store = $store->getStoreById($this->store_session['store_id'], $this->user_session['uid']); $nav = $nav->getStoreNav($this->store_session['store_id']); $use_nav_pages = $store['use_nav_pages']; if (!empty($use_nav_pages)) { $use_nav_pages = explode(',', $use_nav_pages); } else { $use_nav_pages = array(); } $this->assign('use_nav_pages', $use_nav_pages); if (!empty($nav['data'])) { $this->assign('nav_menus', unserialize($nav['data'])); } $style_id = !empty($nav['style']) ? $nav['style'] : 1; if ($style_id == 1) { $this->assign('style', '微信公众号自定义菜单样式'); } else { if ($style_id == 2) { $this->assign('style', 'APP导航模板'); } else { if ($style_id == 3) { $this->assign('style', '带购物车导航模板'); } } } //菜单数量限制 $shopnav_limit[1] = 3; $shopnav_limit[2] = 5; $shopnav_limit[3] = 4; $this->assign('shopnav_limit', $shopnav_limit); $this->assign('style_id', $style_id); $this->assign('nav', $nav); $this->assign('store', $store); parent::checkDrp(); if (!empty($this->store_session['drp_supplier_id']) && empty($this->store_session['drp_level'])) { $this->assign('allow_store_drp', false); } }