AgreementController.php 941 字节
<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/1/8
 * Time: 10:15
 */

namespace app\index\controller;


use app\index\model\AgreementModel;
use app\index\model\PageHtmlModel;
use cmf\controller\WeChatBaseController;

class AgreementController extends WeChatBaseController
{
    public function index(){
        //协议
        $pageHtmlModel = new PageHtmlModel();
        $data = $pageHtmlModel->findData(array('id'=>7));
        $this->assign(
            array(
                'title'=>"协议",
                'data'=>$data,
            )
        );
        return $this->fetch();
    }
    public function index2(){
        //协议
        $pageHtmlModel = new PageHtmlModel();
        $data = $pageHtmlModel->findData(array('id'=>8));
        $this->assign(
            array(
                'title'=>"协议",
                'data'=>$data,
            )
        );
        return $this->fetch();
    }
}