From c3507830e88fca7f8fdb2f3f19784929d82de0e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=99=AF=E7=AB=8B?= Date: Tue, 2 Mar 2021 16:36:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/data/controller/Config.php | 7 ++++++- app/data/view/config/cropper.html | 17 ++++++++++++----- 2 files changed, 18 insertions(+), 6 deletions(-) diff --git a/app/data/controller/Config.php b/app/data/controller/Config.php index 180ec61db..a57827b14 100644 --- a/app/data/controller/Config.php +++ b/app/data/controller/Config.php @@ -38,11 +38,15 @@ class Config extends Controller * 邀请二维码设置 * @auth true * @menu true + * @throws \think\db\exception\DataNotFoundException + * @throws \think\db\exception\DbException + * @throws \think\db\exception\ModelNotFoundException */ public function cropper() { $this->title = '邀请二维码设置'; - $this->fetch(); + $this->skey = 'cropper'; + $this->__sysdata('cropper'); } /** @@ -131,6 +135,7 @@ class Config extends Controller { if ($this->request->isGet()) { $this->data = sysdata($this->skey); + dump($this->data); $this->fetch($template); } if ($this->request->isPost()) { diff --git a/app/data/view/config/cropper.html b/app/data/view/config/cropper.html index f6a57f3fd..9d8373e0a 100644 --- a/app/data/view/config/cropper.html +++ b/app/data/view/config/cropper.html @@ -2,14 +2,14 @@ {block name="content"}
-
+

1. 上传邀请码的背景图片( 支持 PNG 和 JPG 格式 )

2. 选择需要绘制二维码的区域,生成相对图片坐标参数

3. 保存位置数据,下次可直接显示

- img + img
@@ -18,15 +18,19 @@
+