From 34d362ad840b19ce983a7c09e362f9066fe7f66f Mon Sep 17 00:00:00 2001 From: dengbw Date: Fri, 19 Nov 2021 13:33:55 +0800 Subject: [PATCH] api_material_1119 --- api/controllers/wxapp/material/Home.php | 30 +++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/api/controllers/wxapp/material/Home.php b/api/controllers/wxapp/material/Home.php index 24e6903f..b12937d0 100644 --- a/api/controllers/wxapp/material/Home.php +++ b/api/controllers/wxapp/material/Home.php @@ -221,6 +221,13 @@ class Home extends Wxapp } } + /** + * Notes:店铺海报 + * Created on: 2021/11/18 14:27 + * Created by: dengbw + * @return array + * @throws Hd_exception + */ protected function get_biz() { if (!$this->biz_id) { @@ -238,6 +245,29 @@ class Home extends Wxapp return $this->data; } + /** + * Notes:店铺海报模版 + * Created on: 2021/11/18 10:36 + * Created by: dengbw + */ + protected function get_biz_posters() + { + $url = 'https://qs.haodian.cn/wechat_app/lichebao/distribute'; + $lists = [ + ['title' => '店铺常规模板', 'cover' => $url . '/md-0.jpg', 'type' => 0, 'tpHeight' => 10, 'ftHeight' => 350, + 'marginLR' => 10, 'posterBg' => '', 'posterFt' => $url . '/posterFt-0.jpg', 'bgColor' => '#fff', 'color' => '#fff'], + ['title' => '恭喜提车模板', 'cover' => $url . '/md-1.jpg', 'type' => 1, 'tpHeight' => 215, 'ftHeight' => 350, + 'marginLR' => 20, 'posterBg' => $url . '/posterBg-1.jpg', 'posterFt' => $url . '/posterFt-1.jpg', 'bgColor' => '#dd3535', 'color' => '#dd3535'], + ['title' => '新车到店模板', 'cover' => $url . '/md-2.jpg', 'type' => 1, 'tpHeight' => 175, 'ftHeight' => 350, + 'marginLR' => 30, 'posterBg' => $url . '/posterBg-2.jpg', 'posterFt' => $url . '/posterFt-2.jpg', 'bgColor' => '#2a9267', 'color' => '#3f392d'], + ['title' => '恭喜成单啦', 'cover' => $url . '/md-3.jpg', 'type' => 1, 'tpHeight' => 215, 'ftHeight' => 350, + 'marginLR' => 20, 'posterBg' => $url . '/posterBg-3.jpg', 'posterFt' => $url . '/posterFt-3.jpg', 'bgColor' => '#db3333', 'color' => '#fff'], + ]; + $this->data['title'] = '选择模版'; + $this->data['lists'] = $lists; + return $this->data; + } + /** * Notes:保存海报 * Created on: 2021/11/9 14:46