Detail.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
88
89
90
91
92
93
94
95
96
97
98
<?php
/**
* @remark :
* @name :Detail.php
* @author :lyh
* @method :post
* @time :2024/11/12 14:13
*/
namespace App\Models\Product;
use App\Models\Base;
class Detail extends Base
{
//设置关联表名
protected $table = 'gl_product_detail';
//连接数据库
protected $connection = 'custom_mysql';
/**
* @remark :文本框类型
* @name :text_box
* @author :lyh
* @method :post
* @time :2024/11/12 14:15
*/
public function text_type(){
return [
1=>'富文本框',
2=>'多图模块',
3=>'单图文案',
];
}
/**
* @remark :多图框类型
* @name :line_number
* @author :lyh
* @method :post
* @time :2024/11/12 14:15
*/
public function line_two_type(){
return [
1=>'1行',
2=>'2行',
3=>'3行',
4=>'4行',
5=>'5行',
];
}
/**
* @remark :图片框类型
* @name :line_number
* @author :lyh
* @method :post
* @time :2024/11/12 14:15
*/
public function image_two_type(){
return [
1=>'1张图',
2=>'2张图',
3=>'3张图',
4=>'4张图',
5=>'5张图',
];
}
/**
* @remark :图片文本框类型
* @name :line_number
* @author :lyh
* @method :post
* @time :2024/11/12 14:15
*/
public function three_type(){
return [
1=>'左图右文',
2=>'右图左文',
];
}
/**
* @remark :图片文本框类型
* @name :line_number
* @author :lyh
* @method :post
* @time :2024/11/12 14:15
*/
public function image_three_type(){
return [
1=>'图片悬浮',
2=>'图片固定',
];
}
}