api_material_1119

This commit is contained in:
dengbw
2021-11-19 13:33:55 +08:00
parent 7a040ad69c
commit 34d362ad84
+30
View File
@@ -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