From 1f34a3a0ce987f677035b3f1c7e03267b6026569 Mon Sep 17 00:00:00 2001 From: sunke <18850253506@163.com> Date: Tue, 12 Nov 2019 20:35:22 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B9=B3=E5=8F=B0=E5=B8=81=E6=98=8E=E7=BB=86?= =?UTF-8?q?=EF=BC=8Csdk=E8=8F=9C=E5=8D=95=E5=9B=BE=E7=89=87=E4=B8=8A?= =?UTF-8?q?=E4=BC=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controller/SdkMenuController.class.php | 10 +- Application/Admin/View/SdkMenu/add.html | 358 ++++++++++++++++-- .../Controller/DownloadController.class.php | 111 +++--- .../View/default/PromoteCoin/coinDetails.html | 3 + 4 files changed, 383 insertions(+), 99 deletions(-) diff --git a/Application/Admin/Controller/SdkMenuController.class.php b/Application/Admin/Controller/SdkMenuController.class.php index a2cf93f67..fcd81c1c2 100644 --- a/Application/Admin/Controller/SdkMenuController.class.php +++ b/Application/Admin/Controller/SdkMenuController.class.php @@ -56,6 +56,8 @@ class SdkMenuController extends ThinkController{ if(IS_POST) { $post = I('post.'); + $cover = $_REQUEST['icon']; + $post['cover'] = $cover; $post['id'] = $id; array_push($config,$post); $sdkMenus['config'] = json_encode($config); @@ -97,10 +99,14 @@ class SdkMenuController extends ThinkController{ { if($key == 'icon') { - $config[$k][$key] = strstr($val,'/Upload'); + $picRes = M('picture')->where(['id'=>intval($val)])->find(); + $path = $picRes['path']; + $config[$k][$key] = $path; + $config[$k]['cover'] = $val; }else { $config[$k][$key] = $val; + $config[$k]['cover'] = ''; } } break; @@ -124,9 +130,11 @@ class SdkMenuController extends ThinkController{ { $this->error('菜单不存在','lists'); } + $img[0] = $data['cover']; $this->meta_title = '悬浮球菜单'; $this->assign('type','edit'); $this->assign('data',$data); + $this->assign('img',$img); $this->assign('menu_name',$menu_name); $this->assign('but_type',$this->but_type); $this->assign('menu_version',$this->menu_version); diff --git a/Application/Admin/View/SdkMenu/add.html b/Application/Admin/View/SdkMenu/add.html index 6e1f166ee..efe1b1c63 100644 --- a/Application/Admin/View/SdkMenu/add.html +++ b/Application/Admin/View/SdkMenu/add.html @@ -1,8 +1,10 @@ + - + +