BTemplate.php
1.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<?php
namespace App\Models\Template;
use App\Models\Base;
/**
* @remark :用户模块
* @name :BTemplate
* @author :lyh
* @time :2023/6/28 16:52
*/
class BTemplate extends Base
{
const SOURCE_HOME = 1;//首页
const SOURCE_PRODUCT = 2;//产品页
protected $table = 'gl_web_template';
//连接数据库
protected $connection = 'custom_mysql';
//网站装修可操作手机号
public $mobile = [
'15928018676',
'15680871314',
'18328465854',
'18008059100',
'18583337995'
];
//类型数据
public $product_type = [
"products"=>[
"category"=>[
[
"id"=>"all",
"title"=>"全部",
],
[
"id"=>"hot",
"title"=>"热销产品",
],
[
"id"=>"recommend",
"title"=>"推荐产品",
],
],
"imageType"=>[
[
"id"=>1,
"title"=>"产品图片",
],[
"id"=>2,
"title"=>"产品分类图片",
],[
"id"=>3,
"title"=>"产品图标",
]
],
],
"news"=>[
"category"=>[
[
"id"=>"all",
"name"=>"全部",
],
[
"id"=>"new",
"name"=>"最新",
],
],
],
"blogs"=>[
"category"=>[
[
"id"=>"all",
"name"=>"全部",
],
[
"id"=>"new",
"name"=>"最新",
],
],
]
];
}