BTemplate.php 1.9 KB
<?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"=>"最新",
                ],
            ],
        ]
    ];
}