|
|
|
@ -10,6 +10,12 @@ class SdkMenuController extends ThinkController{
|
|
|
|
|
'2' => '外部链接',
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
public $menu_version = [
|
|
|
|
|
'0' => '双平台',
|
|
|
|
|
'1' => '安卓',
|
|
|
|
|
'2' => 'ios',
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
public function lists()
|
|
|
|
|
{
|
|
|
|
|
$menu_name = I('get.menu_name','sdk_menu');
|
|
|
|
@ -21,6 +27,7 @@ class SdkMenuController extends ThinkController{
|
|
|
|
|
{
|
|
|
|
|
$config[$k]['icon'] = is_https()?'https://':'http://' . $_SERVER['HTTP_HOST'] . $v['icon'];
|
|
|
|
|
$config[$k]['type'] = $this->but_type[$v['type']];
|
|
|
|
|
$config[$k]['menu_version'] = $this->menu_version[$v['menu_version']];
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
$this->assign('list',$config);
|
|
|
|
@ -70,6 +77,7 @@ class SdkMenuController extends ThinkController{
|
|
|
|
|
$this->assign('data',$data);
|
|
|
|
|
$this->assign('menu_name',$menu_name);
|
|
|
|
|
$this->assign('but_type',$this->but_type);
|
|
|
|
|
$this->assign('menu_version',$this->menu_version);
|
|
|
|
|
$this->display('add');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -121,6 +129,7 @@ class SdkMenuController extends ThinkController{
|
|
|
|
|
$this->assign('data',$data);
|
|
|
|
|
$this->assign('menu_name',$menu_name);
|
|
|
|
|
$this->assign('but_type',$this->but_type);
|
|
|
|
|
$this->assign('menu_version',$this->menu_version);
|
|
|
|
|
$this->display('add');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|