coupon-admin/app/controller/Contact.php

26 lines
627 B
PHP

<?php
namespace app\controller;
use app\repository\BlockRepository;
use Exception;
use think\response\View;
use app\repository\OperationRepository;
class Contact extends Base
{
/**
* @return View
* @throws Exception
*/
public function index(): View
{
$position = ['contact_banner'];
$slides = OperationRepository::getInstance()->slideListByPosition($position);
$this->data['blocks'] = BlockRepository::getInstance()->getByCateName(BlockRepository::CATEGORY_CONTACT);
$this->data['slide'] = $slides;
$this->setSeo();
return $this->view();
}
}