Ethan пре 6 година
родитељ
комит
9b7fce674d

+ 6 - 3
application/admin/controller/AdminControl.php

@@ -72,7 +72,7 @@ class AdminControl extends Controller
         $group_info = $admin_group_model->getOneAdmingroup(array('group_id' => session('admin_group_id')));
         $hlimit = ds_decrypt($group_info['group_limits'], MD5_KEY . md5($group_info['group_name']));
         $allkzq = $group_info['group_limits'] = explode('|', $hlimit);
-        for ($i=0; $i < count($allkzq); $i++) { 
+        for ($i=0; $i < count($allkzq); $i++) {
             $oallkzq[] = strtolower($allkzq[$i]);
         }
 
@@ -87,7 +87,7 @@ class AdminControl extends Controller
         $group_info = $admin_group_model->getOneAdmingroup(array('group_id' => session('admin_group_id')));
         $hlimit = ds_decrypt($group_info['group_limits'], MD5_KEY . md5($group_info['group_name']));
         $allkzq = $group_info['group_limits'] = explode('|', $hlimit);
-        for ($i=0; $i < count($allkzq); $i++) { 
+        for ($i=0; $i < count($allkzq); $i++) {
             $oallkzq[] = strtolower($allkzq[$i]);
         }
 
@@ -124,6 +124,9 @@ class AdminControl extends Controller
                     'wlcome' => array(
                         'text' => lang('ds_welcome'), 'url' => url('Wlcome/index'),
                     ),
+                    'homeInfo' => array(
+                        'text' => '主页信息', 'url' => url('Homeinfo/index'),
+                    ),
                 ),
             ),
             'setting_manage' => array(
@@ -201,7 +204,7 @@ class AdminControl extends Controller
                     ),
                 ),
             ),
-            
+
         );
     }
 

+ 72 - 0
application/admin/controller/Homeinfo.php

@@ -0,0 +1,72 @@
+<?php
+
+namespace app\admin\controller;
+
+use think\Validate;
+use think\Lang;
+
+class Homeinfo extends AdminControl
+{
+
+    public function _initialize()
+    {
+        parent::_initialize();
+        Lang::load(APP_PATH . 'admin/lang/' . config('default_lang') . '/member.lang.php');
+    }
+
+    /**
+     * 用户列表
+     * @return mixed
+     */
+    public function index()
+    {
+        /*$a='sadsffdsfds';
+        echo substr($a,0,20);die;*/
+        $getHomeInformation = model('homeinformation')->getHomeInformation();
+        $this->assign('information', $getHomeInformation);
+        $this->setAdminCurItem('index');
+
+        return $this->fetch();
+    }
+
+    public function edit()
+    {
+        $homeinformation_id = input('param.homeinformation_id');
+        if (!request()->isPost()) {
+            $getHomeInformation = model('homeinformation')->findHomeInformation($homeinformation_id);
+            $this->assign('information', $getHomeInformation);
+            $this->setAdminCurItem('edit');
+            return $this->fetch('form');
+        } else {
+            $updateData = array(
+                'homeinformation_name' => input('post.homeinformation_name'),
+                'homeinformation_content' => input('post.homeinformation_content'),
+                'homeinformation_en' => input('post.homeinformation_en'),
+                'homeinformation_bgcolor' => input('post.homeinformation_bgcolor'),
+            );
+            $files = request()->file('homeinformation_bgImg');
+            if($files){
+                $imgurl = DS_THEME_STYLE_URL . 'images';
+                $begin = strrpos(input('post.bgImgName'), '/');
+                $end = strrpos(input('post.bgImgName'), '.');
+                $oldFileName = substr(input('post.bgImgName'), $begin + 1, $end - $begin - 1);
+                $oldFile = $imgurl . substr(input('post.bgImgName'),strrpos(input('post.bgImgName'), '/'));
+                if(file_exists($oldFile)){
+                    unlink($oldFile);
+                };
+                $files = $files->setSaveName($oldFileName);//设置保存文件名
+                $imgt = $files->move($imgurl, $savename = $oldFileName, $replace = true);
+                if($imgt){
+                    $update_array['site_logowx'] = $oldFileName.'.png';
+                }
+            }
+            $result = model('homeinformation')->findHomeInformation($homeinformation_id);
+            if ($result) {
+                dsLayerOpenSuccess(lang('member_edit_succ'));
+            } else {
+                $this->error(lang('member_edit_fail'));
+            }
+        }
+    }
+
+}

+ 25 - 0
application/admin/model/Homeinformation.php

@@ -0,0 +1,25 @@
+<?php
+namespace app\admin\model;
+
+use think\Model;
+
+/**
+ * 主页导航管理模型
+ */
+class Homeinformation extends Model
+{
+    public function getHomeInformation()
+    {
+        $result = $this->select();
+
+        return $result;
+    }
+    public function findHomeInformation($id)
+    {
+        $result = $this->where(['homeinformation_id'=>$id])->find();
+
+        return $result;
+    }
+
+
+}

+ 93 - 0
application/admin/view/homeinfo/form.html

@@ -0,0 +1,93 @@
+{extend name="layout:home" /}
+
+{block name="container"}
+<form class="layui-form layui-form-pane" method="post" enctype="multipart/form-data">
+    <div class="layui-tab layui-tab-card">
+        <div class="layui-tab-content page-tab-content">
+            <div class="layui-tab-item layui-show ">
+                <div class="layui-form-item">
+                    <label class="layui-form-label">标题</label>
+                    <div class="layui-input-block">
+                        <input type="text" class="layui-input field-name" name="homeinformation_name" id="homeinformation_name" value="{$information.homeinformation_name|default=''}" autocomplete="off" placeholder="请输入标题" required />
+                    </div>
+                </div>
+                <div class="layui-form-item">
+                    <label class="layui-form-label">内容</label>
+                    <div class="layui-input-block">
+                        <input type="text" class="layui-input field-name" name="homeinformation_content" id="homeinformation_content" value="{$information.homeinformation_content|default=''}" autocomplete="off" placeholder="请输入内容" required />
+                    </div>
+                </div>
+                <div class="layui-form-item">
+                    <label class="layui-form-label">英文简称</label>
+                    <div class="layui-input-block">
+                        <input type="text" class="layui-input field-name" name="homeinformation_en" id="homeinformation_en" value="{$information.homeinformation_en|default=''}"  placeholder="请输入英文简称" />
+                    </div>
+                </div>
+                <div class="layui-form-item">
+                    <label class="layui-form-label">背景颜色</label>
+                    <div class="layui-input-block">
+                        <input type="text" class="layui-input field-name" name="homeinformation_bgcolor" id="homeinformation_bgcolor" value="{$information.homeinformation_bgcolor|default=''}"  placeholder="请输入背景颜色" />
+                    </div>
+                </div>
+                <div class="layui-form-item">
+                    <label class="layui-form-label">背景图片</label>
+                    <div class="layui-input-block" style="display: flex;">
+                        <input id="file" style="border-style: hidden;border-left: 1px solid #ededed;width: 150px;" type="file" class="layui-input field-name" name="homeinformation_bgImg"/>
+                        <input style="display: none;" type="text" name="bgImgName" value="{$information.homeinformation_bgImg}"/>
+                        <div style="display: flex;margin-left: 20px;">
+                            所选图片:
+                            <img id="onFile" src="/static/user/images/header.png" style="width: 100px;height: 100px">
+                        </div>
+                        <div style="display: flex;margin-left: 20px;">
+                            原图片:
+                            {if $information.homeinformation_bgImg}
+                            <img src="{$Think.HOME_SITE_ROOT}{$information.homeinformation_bgImg}" style="width: 100px;height: 100px">
+                            {/if}
+                        </div>
+                    </div>
+                </div>
+                <div class="layui-form-item">
+                    <div class="layui-input-block">
+                        <input type="submit" class="layui-btn layui-btn-normal" lay-submit value="{:lang('ds_submit')}" />
+                    </div>
+                </div>
+            </div>
+        </div>
+    </div>
+</form>
+<script>
+    layui.use('form', function() {
+        var form = layui.form;
+    });
+    $(function() {
+        $("#file").change(function(e) {
+            var imgBox = e.target;
+            uploadImg(imgBox)
+        });
+
+        function uploadImg(tag) {
+            var file = tag.files[0];
+            var imgSrc;
+            if (!/image\/\w+/.test(file.type)) {
+                alert("您选择的图片格式错误");
+                let fileIput = $("#file").val("");
+                //fileIput.after(fileIput.clone().val(""));
+                $("#onFile").attr("src", '/static/user/images/header.png');
+                //fileIput.remove();
+                return false;
+            }
+            var reader = new FileReader();
+            reader.readAsDataURL(file);
+            reader.onload = function() {
+                imgSrc = this.result;
+                $("#onFile").attr("src", imgSrc);
+            };
+        }
+    })
+
+
+</script>
+{/block}
+
+
+

+ 84 - 0
application/admin/view/homeinfo/index.html

@@ -0,0 +1,84 @@
+{extend name="layout:home" /}
+{block name="container"}
+<div class="layui-tab layui-tab-card">
+    {include file="layout/admin_items" /}
+    <div class="layui-tab-content page-tab-content">
+        <!-- 搜索框开始 -->
+        <div class="search-form">
+        <form class="" method="post">
+            <div class="layui-form-item">
+                <div class="layui-inline">
+                    <input type="text" name="title"  placeholder="输入名称或联系人或电话" autocomplete="off" class="layui-input">
+                </div>
+                <div class="layui-inline">
+                    <input type="text" class="layui-input" name="timeRang" id="timeRang" placeholder="选择时间段" style="width: 170px;">
+                </div>
+                <div class="layui-inline">
+                    <button type="submit" class="layui-btn search-subBtn">搜索</button>
+                </div>
+            </div>
+        </form>
+        </div>
+        <!-- 搜索框结束 -->
+        <table class="layui-table lay-even">
+            <colgroup>
+                <col width="150">
+                <col width="200">
+                <col>
+            </colgroup>
+            <thead>
+            <tr>
+                <th>标题</th>
+                <th>内容</th>
+                <th>英文简称</th>
+                <th>所属</th>
+                <th>背景颜色</th>
+                <th>背景图片</th>
+                <th>操作</th>
+            </tr>
+            </thead>
+            <tbody>
+            {if count($information)}
+                {volist name="information" id="value"}
+                <tr>
+                    <td>{$value.homeinformation_name}</td>
+                    <td><?php echo mb_substr($value->homeinformation_content,0,30, 'utf-8');?>...</td>
+                    <td>{$value.homeinformation_en}</td>
+                    <td>{$value.homeinformation_type}</td>
+                    <td>{$value.homeinformation_bgcolor}</td>
+                    <td>
+                        {if $value.homeinformation_bgImg}
+                        <img src="{$Think.HOME_SITE_ROOT}{$value.homeinformation_bgImg}" style="width: 100px;height: 100px">
+                        {/if}
+                    </td>
+                    <td>
+                        <a href="javascript:dsLayerOpen('{:url('Homeinfo/edit',['homeinformation_id'=>$value.homeinformation_id])}','编辑-{$value.homeinformation_name}')" class="layui-btn layui-btn-xs"><i class="layui-icon layui-icon-edit"></i>{$Think.lang.ds_edit}</a>
+                    </td>
+                </tr>
+                {/volist}
+            {else}
+            <td>无数据</td>
+            {/if}
+            </tbody>
+        </table>
+    </div>
+</div>
+<script type="text/javascript">
+    layui.use('laydate', function(){
+      var laydate = layui.laydate;
+
+      //执行一个laydate实例
+      laydate.render({
+        elem: '#creatTime' //指定元素
+      });
+        laydate.render({
+            elem:'#timeRang',
+            range:true,
+            format: 'yyyy/MM/dd',
+            done: function(value, date){
+                /* 时间选择完成后的回调 */
+            }
+        })
+    });
+</script>
+{/block}

+ 3 - 1
application/home/controller/About.php

@@ -11,7 +11,7 @@ use think\Validate;
 /**
  * 主页管理类
  */
-class About extends Controller
+class About extends Common
 {
 
 
@@ -33,6 +33,8 @@ class About extends Controller
      */
     public function about()
     {
+        $getHomeInformation = model('homeinformation')->getHomeInformation();
+        $this->assign('information', $getHomeInformation);
 
         return $this->fetch();
     }

+ 39 - 0
application/home/controller/Common.php

@@ -0,0 +1,39 @@
+<?php
+
+namespace app\home\controller;
+
+use think\Lang;
+use think\Cache;
+use think\Request;
+use think\Controller;
+use think\Validate;
+
+/**
+ * 主页管理类
+ */
+class Common extends Controller
+{
+
+
+    /**
+     * 构造函数
+     *
+     * @access public
+     */
+    public function __construct()
+    {
+        parent::__construct();
+        $this->assign('user_info', $this->systemLogin());
+    }// end__construct()
+
+    protected final function systemLogin()
+    {
+        $user_info = array(
+            'user_id' => session('user_id'),
+            'user_email' => session('user_email'),
+        );
+
+        return $user_info;
+    }
+
+}

+ 4 - 1
application/home/controller/Contact.php

@@ -11,7 +11,7 @@ use think\Validate;
 /**
  * 主页管理类
  */
-class Contact extends Controller
+class Contact extends Common
 {
 
 
@@ -33,6 +33,9 @@ class Contact extends Controller
      */
     public function contact()
     {
+        $getHomecontact = model('homecontact')->getHomecontact();
+        $this->assign('contactUs', $getHomecontact);
+
         return $this->fetch();
     }
 

+ 3 - 2
application/home/controller/Index.php

@@ -11,7 +11,7 @@ use think\Validate;
 /**
  * 主页管理类
  */
-class Index extends Controller
+class Index extends Common
 {
 
 
@@ -33,9 +33,10 @@ class Index extends Controller
      */
     public function index()
     {
+        $getHomeInformation = model('homeinformation')->getHomeInformation();
+        $this->assign('information', $getHomeInformation);
 
         return $this->fetch();
     }//end index()
 
-
 }

+ 1 - 1
application/home/controller/Product.php

@@ -11,7 +11,7 @@ use think\Validate;
 /**
  * 主页管理类
  */
-class Product extends Controller
+class Product extends Common
 {
 
 

+ 19 - 0
application/home/model/Homecontact.php

@@ -0,0 +1,19 @@
+<?php
+namespace app\home\model;
+
+use think\Model;
+
+/**
+ * 主页导航管理模型
+ */
+class Homecontact extends Model
+{
+    public function getHomecontact()
+    {
+        $result = $this->select();
+
+        return $result;
+    }
+
+
+}

+ 19 - 0
application/home/model/Homeinformation.php

@@ -0,0 +1,19 @@
+<?php
+namespace app\home\model;
+
+use think\Model;
+
+/**
+ * 主页导航管理模型
+ */
+class Homeinformation extends Model
+{
+    public function getHomeInformation()
+    {
+        $result = $this->select();
+
+        return $result;
+    }
+
+
+}

+ 13 - 29
application/home/view/about/about.html

@@ -17,11 +17,9 @@
     </div>
 </div>
 <div style="width: 65%; height: 1100px; margin: 0 auto;">
-    <div style="text-align: center;">
-        <h4 style="margin-bottom:20px; padding: 20px; font-weight:bold;">国内顶尖的体育数据服务商之一</h4>
-        <span style="font-size:13px; font-family:SimHei;">每年向用户提供2,600+足球赛事、500+篮球赛事资料,合计超过350,000场比赛的数据统计、机构指数、动画直播等数据。目前,纳米数据
-可以提供足球、篮球、网球等赛事包括即时数据、历史分析数据、即时指数、动画直播、资料库等全面赛事数据服务;未来会逐步开放F1
-、棒球、橄榄球、排球、斯诺克、电竞等赛事数据服务;也会在现有赛事数据的基础上继续深挖,提供更深度的数据服务。</span>
+    <div>
+        <h4 style="margin-bottom:20px; padding: 20px; font-weight:bold;text-align: center;">{$information.8.homeinformation_name}</h4>
+        <span style="font-size:16px;">{$information.8.homeinformation_content}</span>
     </div>
     <div style="height: 200px;">
         <div class="col-lg-5 col-md-6 mt-md-0 mt-sm-5 mt-3" style="float: left;";>
@@ -60,15 +58,10 @@
         <div class="col-lg-5 col-md-6 mt-md-0 mt-sm-5 mt-3" style="float: left;";>
             <div>
                 <div class="pb-2">
-                    <span style=" color:rgb(49, 88, 181); font-weight:bold;">成都市某某体育文化发展有限公司</span>
+                    <span style=" color:rgb(49, 88, 181); font-weight:bold;">{$information.9.homeinformation_name}</span>
                 </div>
-                <span style="font-size:11px;">
-                    作为专注于体育行业的运营公司,我们也在不断进行体育产
-                    业项目投资,促进国家体育事业的发展。 公司相继被认定为
-                    肇庆市高新技术企业、国家高新技术企业,并获得国际顶级
-                    投资基金IDG的投资。 飞鲸体育数据团队核心成员来自知名
-                    互联网企业,拥有丰富的互联网技术和运营经验。公司拥有
-                    良好的晋升及发展空间, 自由宽松的工作氛围,零食。
+                <span style="font-size:14px;">
+                    {$information.9.homeinformation_content}
                 </span>
             </div>
         </div>
@@ -92,14 +85,10 @@
         <div class="col-lg-5 col-md-6 mt-md-0 mt-sm-5 mt-3" style="float: left;";>
             <div>
                 <div>
-                    <span style=" color:rgb(49, 88, 181); font-weight:bold;">国际顶级投资基金IDG的领投</span>
+                    <span style=" color:rgb(49, 88, 181); font-weight:bold;">{$information.10.homeinformation_name}</span>
                 </div>
-                <span style="font-size:11px;">
-                    飞鲸体育数据由肇庆市华盈体育文化发展有限公司创建和运
-                    营,前身是球探体育数据。公司自成立以来, 已深耕体育行
-                    业12年。凭着团队的专注和不断创新精神,公司成功开发并
-                    运营体育旅游、业余足球社区、 球探体育社区、体育版权直
-                    播、体育彩票社区、体育大数据销售、体育票务销售体育场 <br> 馆运营、棋牌游戏社区等业务, 现已成为国内较具影响力的<br>体育娱乐公司。
+                <span style="font-size:14px;">
+                    {$information.10.homeinformation_content}
                 </span>
             </div>
         </div>
@@ -115,15 +104,10 @@
         <div class="col-lg-5 col-md-6 mt-md-0 mt-sm-5 mt-3" style="float: left;";>
             <div>
                 <div class="pb-2">
-                    <span style=" color:rgb(49, 88, 181); font-weight:bold;">联系与合作</span>
+                    <span style=" color:rgb(49, 88, 181); font-weight:bold;">{$information.11.homeinformation_name}</span>
                 </div>
-                <span style="font-size:11px;">
-                    作为专注于体育行业的运营公司,我们也在不断进行体育产
-                    业项目投资,促进国家体育事业的发展。 公司相继被认定为
-                    肇庆市高新技术企业、国家高新技术企业,并获得国际顶级
-                    投资基金IDG的投资。 飞鲸体育数据团队核心成员来自知名
-                    互联网企业,拥有丰富的互联网技术和运营经验。公司拥有
-                    良好的晋升及发展空间, 自由宽松的工作氛围,零食。
+                <span style="font-size:14px;">
+                    {$information.11.homeinformation_content}
                 </span>
             </div>
         </div>
@@ -134,4 +118,4 @@
         </div>
     </div>
 </div>
-{include file="layout/footer" /}
+{include file="layout/footer" /}

+ 16 - 16
application/home/view/contact/contact.html

@@ -27,10 +27,10 @@
         </div>
         <div class="col-lg-4 col-md-6 mt-md-0 mt-sm-5 mt-3" style="float: left;" >
             <div>
-                <span style="font-weight:bold;">致电销售人员</span><br>
-                <span style="font-size:12px;">电话/微信:17283718372</span><br>
-                <span style="font-size:12px;">直接致销售人员,立即进行购买咨询</span><br>
-                <span style="font-size:12px;">工作时间:早上9:00   下午7:00</span>
+                <span style="font-weight:bold;">{$contactUs.0.homecontact_name}</span><br>
+                <span style="font-size:12px;">{$contactUs.0.homecontact_content1}</span><br>
+                <span style="font-size:12px;">{$contactUs.0.homecontact_content2}</span><br>
+                <span style="font-size:12px;">{$contactUs.0.homecontact_content3}</span>
             </div>
         </div>
         <div style="float: left; margin: 0 auto; padding-left: 20px" >
@@ -39,10 +39,10 @@
         </div>
         <div style="float: right;" >
             <div>
-                <span style="font-weight:bold;">联系销售人员</span><br>
-                <span style="font-size:12px;">QQ:182782342</span><br>
-                <span style="font-size:12px;">QQ联系商务经理,立即进行购买咨询</span><br>
-                <span style="font-size:12px;">工作时间:早上9:00   下午8:00</span>
+                <span style="font-weight:bold;">{$contactUs.1.homecontact_name}</span><br>
+                <span style="font-size:12px;">{$contactUs.1.homecontact_content1}</span><br>
+                <span style="font-size:12px;">{$contactUs.1.homecontact_content2}</span><br>
+                <span style="font-size:12px;">{$contactUs.1.homecontact_content3}</span>
             </div>
         </div>
         <div style="float: right; border:2px dashed rgb(173, 173, 173); margin-right: 30px">
@@ -59,10 +59,10 @@
         </div>
         <div class="col-lg-4 col-md-6 mt-md-0 mt-sm-5 mt-3" style="float: left;" >
             <div>
-                <span style="font-weight:bold;">致电销售人员</span><br>
-                <span style="font-size:12px;">电话/微信:17283718372</span><br>
-                <span style="font-size:12px;">直接致销售人员,立即进行购买咨询</span><br>
-                <span style="font-size:12px;">工作时间:早上9:00   下午7:00</span>
+                <span style="font-weight:bold;">{$contactUs.2.homecontact_name}</span><br>
+                <span style="font-size:12px;">{$contactUs.2.homecontact_content1}</span><br>
+                <span style="font-size:12px;">{$contactUs.2.homecontact_content2}</span><br>
+                <span style="font-size:12px;">{$contactUs.2.homecontact_content3}</span>
             </div>
         </div>
         <div style="float: left; margin: 0 auto; padding-left: 20px" >
@@ -71,9 +71,9 @@
         </div>
         <div style="float: right;">
             <div>
-                <span style="font-weight:bold;">发送邮件</span><br>
-                <span style="font-size:12px;">邮箱: hezuo@nami.com </span><br>
-                <span style="font-size:11px;">发送邮件给我们,我们会第一时间进行回复</span><br>
+                <span style="font-weight:bold;">{$contactUs.3.homecontact_name}</span><br>
+                <span style="font-size:12px;">{$contactUs.3.homecontact_content1} </span><br>
+                <span style="font-size:11px;">{$contactUs.3.homecontact_content2}</span><br>
             </div>
         </div>
         <div style="float: right; border:2px dashed rgb(173, 173, 173); margin-right: 20px;">
@@ -81,4 +81,4 @@
         </div>
     </div>
 </div>
-{include file="layout/footer" /}
+{include file="layout/footer" /}

+ 21 - 37
application/home/view/index/index.html

@@ -63,27 +63,15 @@
                 style="font-size: 12px;">Our Waiter
             <p></h3>
         <div class="agileits-services-row row py-md-5 pb-5">
-            <div class="col-lg-3 col-md-6 agileits-services-grids" style="background: #48FD9C;">
-                <h4 class="mt-2 mb-3" style=" color: #fff">即时数据</h4>
-                <p>覆盖200个国家和地区的足球、篮球 和网球赛事即时数据</p>
-                <img src="{$Think.HOME_SITE_ROOT}/images/immediate.png">
-            </div>
-            <div class="col-lg-3 col-md-6 agileits-services-grids mt-md-0 mt-3" style="background: #EE6AFF;">
-                <h4 style=" color: #fff" class="mt-2 mb-3">足球资料库</h4>
-                <p style=" color: #fff">超过2600+不同赛事、37000+不同 球队的详细资料和数据统计</p>
-                <img src="{$Think.HOME_SITE_ROOT}/images/database.png">
-            </div>
-
-            <div class="col-lg-3 col-md-6 agileits-services-grids mt-lg-0 mt-3" style="background: #FF7070;">
-                <h4 style=" color: #fff" class="mt-2 mb-3">动画直播</h4>
-                <p style=" color: #fff">2D、3D动画直播 直播最快速度洞悉 比赛走向</p>
-                <img src="{$Think.HOME_SITE_ROOT}/images/animation.png">
-            </div>
-            <div class="col-lg-3 col-md-6 agileits-services-grids mt-lg-0 mt-3" style="background: #FFD656;">
-                <h4 style=" color: #fff" class="mt-2 mb-3">正式上线</h4>
-                <p style=" color: #fff">数据创造价值为客户提供多维度的体 育资讯数据的产品解决方案</p>
-                <img src="{$Think.HOME_SITE_ROOT}/images/online.png">
-            </div>
+            {foreach name="information" item="menu" key="key"}
+                {if $menu.homeinformation_type == 'waiter'}
+                <div class="col-lg-3 col-md-6 agileits-services-grids mt-md-0 mt-3" style="background: #{$menu.homeinformation_bgcolor};">
+                    <h4 class="mt-2 mb-3" style=" color: #fff">{$menu.homeinformation_name}</h4>
+                    <p>{$menu.homeinformation_content}</p>
+                    <img src="{$Think.HOME_SITE_ROOT}{$menu.homeinformation_bgImg}">
+                </div>
+                {/if}
+            {/foreach}
         </div>
     </div>
 </div>
@@ -100,14 +88,13 @@
                 <div class="team-effect" onmouseover="move(1)" onmouseout="moveOut(1)">
                     <img src="{$Think.HOME_SITE_ROOT}/images/t1.png" alt="img" class="img-responsive">
                     <div id="team-img-text-1" class="team-img-text" style="display: none">
-                        提供所有热门赛事实时数据及详实 的球员数据,细化到能力评分、技 术特点、擅长位置;全面的球队数 据,覆盖到场馆教练、球员转会、 荣誉、伤停信息;以及重点赛事全
-                        覆盖的积分榜、射手榜、助攻榜; 更有球队球员跑动距离、射门、过 人、拦截、犯规、扑救等深度数据 统计。
+                        {$information.4.homeinformation_content}
                     </div>
                 </div>
                 <!-- team text -->
                 <div class="footerv2-w3ls mt-3" style="text-align: center;">
-                    <h4 id="team-title-1" style="color: #111">体育资讯解决方案</h4>
-                    <p id="team-en-1" style="color: #111">Sports information</p>
+                    <h4 id="team-title-1" style="color: #111">{$information.4.homeinformation_name}</h4>
+                    <p id="team-en-1" style="color: #111">{$information.4.homeinformation_en}</p>
                     <div id="team-line-1" class="team-line" style="border-bottom: 1px solid #111;"></div>
                 </div>
                 <!-- //team text -->
@@ -115,16 +102,15 @@
             <div class="col-lg-3 col-sm-6 team-grids mt-sm-0 mt-5">
                 <!-- team text -->
                 <div class="footerv2-w3ls mt-3" style="text-align: center;">
-                    <h4 id="team-title-2" style="color: #111">比分数据解决方案</h4>
-                    <p id="team-en-2" style="color: #111">Live scores & Sports data</p>
+                    <h4 id="team-title-2" style="color: #111">{$information.5.homeinformation_name}</h4>
+                    <p id="team-en-2" style="color: #111">{$information.5.homeinformation_en}</p>
                     <div id="team-line-2" class="team-line" style="border-bottom: 1px solid #111;"></div>
                 </div>
                 <!-- //team text -->
                 <div class="team-effect" onmouseover="move(2)" onmouseout="moveOut(2)">
                     <img src="{$Think.HOME_SITE_ROOT}/images/t3.png" alt="img" class="img-responsive">
                     <div id="team-img-text-2" class="team-img-text" style="display: none">
-                        提供所有热门赛事实时数据及详实 的球员数据,细化到能力评分、技 术特点、擅长位置;全面的球队数 据,覆盖到场馆教练、球员转会、 荣誉、伤停信息;以及重点赛事全
-                        覆盖的积分榜、射手榜、助攻榜; 更有球队球员跑动距离、射门、过 人、拦截、犯规、扑救等深度数据 统计。
+                        {$information.5.homeinformation_content}
                     </div>
                 </div>
             </div>
@@ -132,14 +118,13 @@
                 <div class="team-effect" onmouseover="move(3)" onmouseout="moveOut(3)">
                     <img src="{$Think.HOME_SITE_ROOT}/images/t2.png" alt="img" class="img-responsive">
                     <div id="team-img-text-3" class="team-img-text" style="display: none">
-                        提供所有热门赛事实时数据及详实 的球员数据,细化到能力评分、技 术特点、擅长位置;全面的球队数 据,覆盖到场馆教练、球员转会、 荣誉、伤停信息;以及重点赛事全
-                        覆盖的积分榜、射手榜、助攻榜; 更有球队球员跑动距离、射门、过 人、拦截、犯规、扑救等深度数据 统计。
+                        {$information.6.homeinformation_content}
                     </div>
                 </div>
                 <!-- team text -->
                 <div class="footerv2-w3ls mt-3" style="text-align: center;">
-                    <h4 id="team-title-3" style="color: #111">虚拟竞猜解决方案</h4>
-                    <p id="team-en-3" style="color: #111">Simulation contest</p>
+                    <h4 id="team-title-3" style="color: #111">{$information.6.homeinformation_name}</h4>
+                    <p id="team-en-3" style="color: #111">{$information.6.homeinformation_en}</p>
                     <div id="team-line-3" class="team-line" style="border-bottom: 1px solid #111;"></div>
                 </div>
                 <!-- //team text -->
@@ -147,15 +132,14 @@
             <div class="col-lg-3 col-sm-6 team-grids mt-lg-0 mt-5">
                 <!-- team text -->
                 <div class="footerv2-w3ls mt-3" style="text-align: center;">
-                    <h4 id="team-title-4" style="color: #111">彩票产品解决方案</h4>
-                    <p id="team-en-4" style="color: #111">Lottery products</p>
+                    <h4 id="team-title-4" style="color: #111">{$information.7.homeinformation_name}</h4>
+                    <p id="team-en-4" style="color: #111">{$information.7.homeinformation_en}</p>
                     <div id="team-line-4" class="team-line" style="border-bottom: 1px solid #111;"></div>
                     <!-- //team text -->
                     <div class="team-effect" onmouseover="move(4)" onmouseout="moveOut(4)">
                         <img src="{$Think.HOME_SITE_ROOT}/images/t4.png" alt="img" class="img-responsive">
                         <div id="team-img-text-4" class="team-img-text" style="display: none">
-                            提供所有热门赛事实时数据及详实 的球员数据,细化到能力评分、技 术特点、擅长位置;全面的球队数 据,覆盖到场馆教练、球员转会、 荣誉、伤停信息;以及重点赛事全
-                            覆盖的积分榜、射手榜、助攻榜; 更有球队球员跑动距离、射门、过 人、拦截、犯规、扑救等深度数据 统计。
+                            {$information.7.homeinformation_content}
                         </div>
                     </div>
                 </div>

+ 52 - 17
application/home/view/layout/header.html

@@ -7,6 +7,7 @@
     <meta charset="utf-8">
     <meta name="keywords" content=""/>
     <link rel="SHORTCUT ICON" href="{$Think.HOME_SITE_ROOT}/images/LOGO.png"/>
+    <script src="{$Think.PLUGINS_SITE_ROOT}/jquery-2.1.4.min.js"></script>
     <!--引用百度地图API-->
     <style type="text/css">
         html, body {
@@ -62,18 +63,37 @@
 <!--<header style="position: fixed; width: 100%; background: #111; opacity: 0.8;">-->
 <header style="width: 100%; background: #010101;">
     <div class="container" style="height: 30px; line-height: 1;">
-        <nav class="navbar navbar-expand-lg navbar-light" style="display: flex; justify-content: flex-end;">
-            <a class="btn-lg-block w3ls-btn px-4 text-uppercase font-weight-bold" data-toggle="modal"
-               aria-pressed="false" data-target="#exampleModal"
-               style="cursor: pointer; color: #fff; font-weight: 500 !important;">
-                注册
-            </a>
-            <a class="btn-lg-block w3ls-btn px-4 text-uppercase font-weight-bold" data-toggle="modal"
-               aria-pressed="false" data-target="#exampleModal"
-               style="cursor: pointer; color: #fff; font-weight: 500 !important;">
-                登陆
-            </a>
-        </nav>
+        {if $user_info['user_id']}
+            <nav class="navbar navbar-expand-lg navbar-light" style="display: flex; justify-content: flex-end;">
+                <a href="/user/register/index.html" class="px-2 text-uppercase font-weight-bold"
+                   style="cursor: pointer; color: #fff; font-size: 12px;">
+                    购物车
+                </a>
+                <a href="/User/login/index.html" class="px-2 text-uppercase font-weight-bold"
+                   style="cursor: pointer; color: #fff; font-size: 12px;">
+                    支持服务
+                </a>
+                <a href="/User/index/index.html" class="px-2 text-uppercase font-weight-bold"
+                   style="cursor: pointer; color: #fff; font-size: 12px;">
+                    {$Think.session.user_email}
+                </a>
+                <a href="/User/Login/logout.html" class="px-2 text-uppercase font-weight-bold"
+                   style="cursor: pointer; color: #fff; font-size: 12px; margin-right: 18px;">
+                    安全退出
+                </a>
+            </nav>
+        {else}
+            <nav class="navbar navbar-expand-lg navbar-light" style="display: flex; justify-content: flex-end;">
+                <a href="/user/register/index.html" class="btn-lg-block w3ls-btn px-4 text-uppercase font-weight-bold"
+                   style="cursor: pointer; color: #fff; font-size: 12px;">
+                    注册
+                </a>
+                <a href="/User/login/index.html" class="btn-lg-block w3ls-btn px-4 text-uppercase font-weight-bold"
+                   style="cursor: pointer; color: #fff; font-size: 12px;">
+                    登陆
+                </a>
+            </nav>
+        {/if}
     </div>
     <div style="border-bottom: 1px solid  #505050;"></div>
     <div class="container" style="height: 40px; line-height: 0.8;">
@@ -90,15 +110,15 @@
             <div class="collapse navbar-collapse" id="navbarSupportedContent">
                 <ul class="navbar-nav mx-auto text-center" style="margin-right: 0 !important;">
                     <li class="nav-item  mr-3">
-                        <a class="nav-link" href="{:url('home/index/index')}">首页</a>
+                        <a id="home_index" class="nav-link" href="{:url('home/index/index')}">首页</a>
                     </li>
                     <li class="nav-item  mr-3">
-                        <a class="nav-link active" href="{:url('home/product/product')}">产品与服务</a>
+                        <a id="home_product" class="nav-link" href="{:url('home/product/product')}">产品与服务</a>
                     </li>
-                    <li class="nav-item dropdown mr-3">
+                    <li id="home_about" class="nav-item  mr-3">
                         <a class="nav-link" href="{:url('home/about/about')}">关于我们</a>
                     </li>
-                    <li class="nav-item">
+                    <li id="home_contact" class="nav-item  mr-3">
                         <a class="nav-link" href="{:url('home/contact/contact')}">联系我们</a>
                     </li>
                 </ul>
@@ -107,4 +127,19 @@
     </div>
     <div style="border-bottom: 1px solid  #505050;"></div>
 </header>
-<!-- //header -->
+<script type="text/javascript">
+    const pathName = window.location.pathname
+    if (pathName == '/home/index/index.html') {
+        $("#home_index").attr("class","nav-link active")
+    }
+    if (pathName == '/home/product/product.html') {
+        $("#home_product").attr("class","nav-link active")
+    }
+    if (pathName == '/home/about/about.html') {
+        $("#home_about").attr("class","nav-item dropdown mr-3 active")
+    }
+    if (pathName == '/home/contact/contact.html') {
+        $("#home_contact").attr("class","nav-item dropdown mr-3 active")
+    }
+</script>
+<!-- //header -->

+ 2 - 2
application/user/controller/UserControl.php

@@ -119,11 +119,11 @@ class UserControl extends Controller
                 'text' => lang('ds_all'),
                 'url' => url('All/index'),
             ),
-            'product_sever' => array(
+            /*'product_sever' => array(
                 'name' => 'product_sever',
                 'text' => lang('ds_product_sever'),
 				'url' => url('Product/index'),
-            ),
+            ),*/
             'personnel_manage' => array(
                 'name' => 'personnel_manage',
                 'text' => lang('ds_personnel_manage'),

+ 10 - 10
application/user/view/all/index.html

@@ -2,24 +2,24 @@
 {block name="container"}
 <div class="layui-tab-content page-tab-content">
     <div style="width: 35%; float: left">
-        <div>
+        <div style="margin: 20px 20px;display: flex">
             <img src="{$Think.USER_SITE_ROOT}/images/header.png" style="width: 50px; height: 50px; border-radius:50%">
-            <span style="margin-left: 20px; font-size: 20px">{$Think.session.user_email}</span>
-            <a href="" style="margin-left: 20px; font-size: 18px">{$Think.lang.all_uncertified}</a>
+            <span style="margin-left: 20px; font-size: 30px">{$Think.session.user_email}</span>
+            <a href="" style="margin-left: 20px; font-size: 18px; line-height: 2.2;">{$Think.lang.all_uncertified}</a>
         </div>
-        <table class="layui-table lay-even">
+        <table class="layui-table lay-even" style="margin: 0px 20px;">
             <tbody>
             <tr>
-                <td>{$Think.lang.all_money}</td>
-                <td>{$userInfo->userInfo_money}<a href="/User/Cost/recharge.html" style="float: right; margin-left: 5px; cursor:pointer">{$Think.lang.all_recharge}</a></td>
+                <td style="font-size: 20px; font-weight: 700; height: 40px">{$Think.lang.all_money}</td>
+                <td style="font-size: 20px; height: 40px">{$userInfo->userInfo_money}<a href="/User/Cost/recharge.html" style="float: right; margin-left: 5px; cursor:pointer">{$Think.lang.all_recharge}</a></td>
             </tr>
             <tr>
-                <td>{$Think.lang.all_holding_products}</td>
-                <td>{$countProduct}<a style="float: right; margin-left: 5px; cursor:pointer">查看</a></td>
+                <td style="font-size: 20px; font-weight: 700; height: 40px">{$Think.lang.all_holding_products}</td>
+                <td style="font-size: 20px; height: 40px">{$countProduct}<a href="/User/renewal/index.html" style="float: right; margin-left: 5px; cursor:pointer">查看</a></td>
             </tr>
             <tr>
-                <td>{$Think.lang.all_renew}</td>
-                <td>{$renewProduct}<a style="float: right; margin-left: 5px; cursor:pointer">查看</a></td>
+                <td style="font-size: 20px; font-weight: 700; height: 40px">{$Think.lang.all_renew}</td>
+                <td style="font-size: 20px; height: 40px">{$renewProduct}<a href="/User/renewal/index.html" style="float: right; margin-left: 5px; cursor:pointer">查看</a></td>
             </tr>
             </tbody>
         </table>

+ 5 - 1
application/user/view/index/index.html

@@ -51,7 +51,7 @@
     }
 </style>
 <div class="admincp-header" style="line-height: 4;">
-    <div class="logo">
+    <div class="logo" onclick="goHome()" style="cursor:pointer;">
         <img width="200" src="{$Think.USER_SITE_ROOT}/images/backlogo.png"/>
     </div>
     <div class="navbar">
@@ -113,6 +113,10 @@
 </div>
 <script type="text/javascript">
     var width =document.body.clientWidth;
+    const myHost = "http://" + window.location.host;
+    function goHome() {
+        window.location.href = myHost;
+    }
     var changesmall =function(){
         if($(".admincp-container-left").css("width")=="200px"){
             $(".admincp-container-left").css("width","55px");

BIN
public/static/home/images/immediate - 副本.png


+ 81 - 197
runtime/temp/213b1e2a04217c144570604b6ade35c7.php

@@ -1,4 +1,4 @@
-<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:72:"D:\wamp64\www\Home-Data\public/../application/home\view\index\index.html";i:1559723533;}*/ ?>
+<?php if (!defined('THINK_PATH')) exit(); /*a:3:{s:72:"D:\wamp64\www\Home-Data\public/../application/home\view\index\index.html";i:1560391876;s:64:"D:\wamp64\www\Home-Data\application\home\view\layout\header.html";i:1560388206;s:64:"D:\wamp64\www\Home-Data\application\home\view\layout\footer.html";i:1560130100;}*/ ?>
 <!DOCTYPE HTML>
 <html lang="zxx">
 
@@ -8,6 +8,7 @@
     <meta charset="utf-8">
     <meta name="keywords" content=""/>
     <link rel="SHORTCUT ICON" href="<?php echo HOME_SITE_ROOT; ?>/images/LOGO.png"/>
+    <script src="<?php echo PLUGINS_SITE_ROOT; ?>/jquery-2.1.4.min.js"></script>
     <!--引用百度地图API-->
     <style type="text/css">
         html, body {
@@ -63,18 +64,37 @@
 <!--<header style="position: fixed; width: 100%; background: #111; opacity: 0.8;">-->
 <header style="width: 100%; background: #010101;">
     <div class="container" style="height: 30px; line-height: 1;">
-        <nav class="navbar navbar-expand-lg navbar-light" style="display: flex; justify-content: flex-end;">
-            <a class="btn-lg-block w3ls-btn px-4 text-uppercase font-weight-bold" data-toggle="modal"
-               aria-pressed="false" data-target="#exampleModal"
-               style="cursor: pointer; color: #fff; font-weight: 500 !important;">
-                注册
-            </a>
-            <a class="btn-lg-block w3ls-btn px-4 text-uppercase font-weight-bold" data-toggle="modal"
-               aria-pressed="false" data-target="#exampleModal"
-               style="cursor: pointer; color: #fff; font-weight: 500 !important;">
-                登陆
-            </a>
-        </nav>
+        <?php if($user_info['user_id']): ?>
+            <nav class="navbar navbar-expand-lg navbar-light" style="display: flex; justify-content: flex-end;">
+                <a href="/user/register/index.html" class="px-2 text-uppercase font-weight-bold"
+                   style="cursor: pointer; color: #fff; font-size: 12px;">
+                    购物车
+                </a>
+                <a href="/User/login/index.html" class="px-2 text-uppercase font-weight-bold"
+                   style="cursor: pointer; color: #fff; font-size: 12px;">
+                    支持服务
+                </a>
+                <a href="/User/index/index.html" class="px-2 text-uppercase font-weight-bold"
+                   style="cursor: pointer; color: #fff; font-size: 12px;">
+                    <?php echo \think\Session::get('user_email'); ?>
+                </a>
+                <a href="/User/Login/logout.html" class="px-2 text-uppercase font-weight-bold"
+                   style="cursor: pointer; color: #fff; font-size: 12px; margin-right: 18px;">
+                    安全退出
+                </a>
+            </nav>
+        <?php else: ?>
+            <nav class="navbar navbar-expand-lg navbar-light" style="display: flex; justify-content: flex-end;">
+                <a href="/user/register/index.html" class="btn-lg-block w3ls-btn px-4 text-uppercase font-weight-bold"
+                   style="cursor: pointer; color: #fff; font-size: 12px;">
+                    注册
+                </a>
+                <a href="/User/login/index.html" class="btn-lg-block w3ls-btn px-4 text-uppercase font-weight-bold"
+                   style="cursor: pointer; color: #fff; font-size: 12px;">
+                    登陆
+                </a>
+            </nav>
+        <?php endif; ?>
     </div>
     <div style="border-bottom: 1px solid  #505050;"></div>
     <div class="container" style="height: 40px; line-height: 0.8;">
@@ -91,41 +111,40 @@
             <div class="collapse navbar-collapse" id="navbarSupportedContent">
                 <ul class="navbar-nav mx-auto text-center" style="margin-right: 0 !important;">
                     <li class="nav-item  mr-3">
-                        <a class="nav-link scroll" href="index.html">首页</a>
+                        <a id="home_index" class="nav-link" href="<?php echo url('home/index/index'); ?>">首页</a>
                     </li>
                     <li class="nav-item  mr-3">
-                        <a class="nav-link scroll" href="#services">产品与服务</a>
+                        <a id="home_product" class="nav-link" href="<?php echo url('home/product/product'); ?>">产品与服务</a>
                     </li>
-                    <li class="nav-item dropdown mr-3">
-                        <a class="nav-link scroll" href="#about">关于我们</a>
-                        <!--<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true"
-                            aria-expanded="false">
-                            Dropdown
-                        </a>
-                        <div class="dropdown-menu" aria-labelledby="navbarDropdown">
-                            <a class="dropdown-item scroll" href="#services">Services</a>
-                            <a class="dropdown-item scroll" href="#team">Team</a>
-                            <a class="dropdown-item scroll" href="#gallery">Gallery</a>
-                            <div class="dropdown-divider"></div>
-                            <a class="dropdown-item scroll" href="#pricing">Pricing Plans</a>
-                            <a class="dropdown-item scroll" href="#testimonials">Testimonials</a>
-                        </div>-->
+                    <li id="home_about" class="nav-item  mr-3">
+                        <a class="nav-link" href="<?php echo url('home/about/about'); ?>">关于我们</a>
                     </li>
-                    <li class="nav-item">
-                        <a class="nav-link scroll" href="#contact">联系我们</a>
+                    <li id="home_contact" class="nav-item  mr-3">
+                        <a class="nav-link" href="<?php echo url('home/contact/contact'); ?>">联系我们</a>
                     </li>
                 </ul>
-                <!--<button type="button" class="btn btn-info btn-lg-block w3ls-btn px-4 text-uppercase font-weight-bold" data-toggle="modal"
-                    aria-pressed="false" data-target="#exampleModal">
-                    order
-                </button>-->
-
             </div>
         </nav>
     </div>
     <div style="border-bottom: 1px solid  #505050;"></div>
 </header>
+<script type="text/javascript">
+    const pathName = window.location.pathname
+    if (pathName == '/home/index/index.html') {
+        $("#home_index").attr("class","nav-link active")
+    }
+    if (pathName == '/home/product/product.html') {
+        $("#home_product").attr("class","nav-link active")
+    }
+    if (pathName == '/home/about/about.html') {
+        $("#home_about").attr("class","nav-item dropdown mr-3 active")
+    }
+    if (pathName == '/home/contact/contact.html') {
+        $("#home_contact").attr("class","nav-item dropdown mr-3 active")
+    }
+</script>
 <!-- //header -->
+
 <!-- banner -->
 <div class="banner" id="home">
     <div class="container">
@@ -190,27 +209,13 @@
                 style="font-size: 12px;">Our Waiter
             <p></h3>
         <div class="agileits-services-row row py-md-5 pb-5">
-            <div class="col-lg-3 col-md-6 agileits-services-grids" style="background: #48FD9C;">
-                <h4 class="mt-2 mb-3" style=" color: #fff">即时数据</h4>
-                <p> style=" color: #fff"覆盖200个国家和地区的足球、篮球 和网球赛事即时数据</p>
-                <img src="<?php echo HOME_SITE_ROOT; ?>/images/immediate.png">
-            </div>
-            <div class="col-lg-3 col-md-6 agileits-services-grids mt-md-0 mt-3" style="background: #EE6AFF;">
-                <h4 style=" color: #fff" class="mt-2 mb-3">足球资料库</h4>
-                <p style=" color: #fff">超过2600+不同赛事、37000+不同 球队的详细资料和数据统计</p>
-                <img src="<?php echo HOME_SITE_ROOT; ?>/images/database.png">
-            </div>
-
-            <div class="col-lg-3 col-md-6 agileits-services-grids mt-lg-0 mt-3" style="background: #FF7070;">
-                <h4 style=" color: #fff" class="mt-2 mb-3">动画直播</h4>
-                <p style=" color: #fff">2D、3D动画直播 直播最快速度洞悉 比赛走向</p>
-                <img src="<?php echo HOME_SITE_ROOT; ?>/images/animation.png">
-            </div>
-            <div class="col-lg-3 col-md-6 agileits-services-grids mt-lg-0 mt-3" style="background: #FFD656;">
-                <h4 style=" color: #fff" class="mt-2 mb-3">正式上线</h4>
-                <p style=" color: #fff">数据创造价值为客户提供多维度的体 育资讯数据的产品解决方案</p>
-                <img src="<?php echo HOME_SITE_ROOT; ?>/images/online.png">
-            </div>
+            <?php if(is_array($information) || $information instanceof \think\Collection || $information instanceof \think\Paginator): if( count($information)==0 ) : echo "" ;else: foreach($information as $key=>$menu): if($menu['homeinformation_type'] == 'waiter'): ?>
+                <div class="col-lg-3 col-md-6 agileits-services-grids mt-md-0 mt-3" style="background: #<?php echo $menu['homeinformation_bgcolor']; ?>;">
+                    <h4 class="mt-2 mb-3" style=" color: #fff"><?php echo $menu['homeinformation_name']; ?></h4>
+                    <p><?php echo $menu['homeinformation_content']; ?></p>
+                    <img src="<?php echo HOME_SITE_ROOT; ?><?php echo $menu['homeinformation_bgImg']; ?>">
+                </div>
+                <?php endif; endforeach; endif; else: echo "" ;endif; ?>
         </div>
     </div>
 </div>
@@ -227,14 +232,13 @@
                 <div class="team-effect" onmouseover="move(1)" onmouseout="moveOut(1)">
                     <img src="<?php echo HOME_SITE_ROOT; ?>/images/t1.png" alt="img" class="img-responsive">
                     <div id="team-img-text-1" class="team-img-text" style="display: none">
-                        提供所有热门赛事实时数据及详实 的球员数据,细化到能力评分、技 术特点、擅长位置;全面的球队数 据,覆盖到场馆教练、球员转会、 荣誉、伤停信息;以及重点赛事全
-                        覆盖的积分榜、射手榜、助攻榜; 更有球队球员跑动距离、射门、过 人、拦截、犯规、扑救等深度数据 统计。
+                        <?php echo $information['4']['homeinformation_content']; ?>
                     </div>
                 </div>
                 <!-- team text -->
                 <div class="footerv2-w3ls mt-3" style="text-align: center;">
-                    <h4 id="team-title-1" style="color: #111">体育资讯解决方案</h4>
-                    <p id="team-en-1" style="color: #111">Sports information</p>
+                    <h4 id="team-title-1" style="color: #111"><?php echo $information['4']['homeinformation_name']; ?></h4>
+                    <p id="team-en-1" style="color: #111"><?php echo $information['4']['homeinformation_en']; ?></p>
                     <div id="team-line-1" class="team-line" style="border-bottom: 1px solid #111;"></div>
                 </div>
                 <!-- //team text -->
@@ -242,16 +246,15 @@
             <div class="col-lg-3 col-sm-6 team-grids mt-sm-0 mt-5">
                 <!-- team text -->
                 <div class="footerv2-w3ls mt-3" style="text-align: center;">
-                    <h4 id="team-title-2" style="color: #111">比分数据解决方案</h4>
-                    <p id="team-en-2" style="color: #111">Live scores & Sports data</p>
+                    <h4 id="team-title-2" style="color: #111"><?php echo $information['5']['homeinformation_name']; ?></h4>
+                    <p id="team-en-2" style="color: #111"><?php echo $information['5']['homeinformation_en']; ?></p>
                     <div id="team-line-2" class="team-line" style="border-bottom: 1px solid #111;"></div>
                 </div>
                 <!-- //team text -->
                 <div class="team-effect" onmouseover="move(2)" onmouseout="moveOut(2)">
                     <img src="<?php echo HOME_SITE_ROOT; ?>/images/t3.png" alt="img" class="img-responsive">
                     <div id="team-img-text-2" class="team-img-text" style="display: none">
-                        提供所有热门赛事实时数据及详实 的球员数据,细化到能力评分、技 术特点、擅长位置;全面的球队数 据,覆盖到场馆教练、球员转会、 荣誉、伤停信息;以及重点赛事全
-                        覆盖的积分榜、射手榜、助攻榜; 更有球队球员跑动距离、射门、过 人、拦截、犯规、扑救等深度数据 统计。
+                        <?php echo $information['5']['homeinformation_content']; ?>
                     </div>
                 </div>
             </div>
@@ -259,14 +262,13 @@
                 <div class="team-effect" onmouseover="move(3)" onmouseout="moveOut(3)">
                     <img src="<?php echo HOME_SITE_ROOT; ?>/images/t2.png" alt="img" class="img-responsive">
                     <div id="team-img-text-3" class="team-img-text" style="display: none">
-                        提供所有热门赛事实时数据及详实 的球员数据,细化到能力评分、技 术特点、擅长位置;全面的球队数 据,覆盖到场馆教练、球员转会、 荣誉、伤停信息;以及重点赛事全
-                        覆盖的积分榜、射手榜、助攻榜; 更有球队球员跑动距离、射门、过 人、拦截、犯规、扑救等深度数据 统计。
+                        <?php echo $information['6']['homeinformation_content']; ?>
                     </div>
                 </div>
                 <!-- team text -->
                 <div class="footerv2-w3ls mt-3" style="text-align: center;">
-                    <h4 id="team-title-3" style="color: #111">虚拟竞猜解决方案</h4>
-                    <p id="team-en-3" style="color: #111">Simulation contest</p>
+                    <h4 id="team-title-3" style="color: #111"><?php echo $information['6']['homeinformation_name']; ?></h4>
+                    <p id="team-en-3" style="color: #111"><?php echo $information['6']['homeinformation_en']; ?></p>
                     <div id="team-line-3" class="team-line" style="border-bottom: 1px solid #111;"></div>
                 </div>
                 <!-- //team text -->
@@ -274,15 +276,14 @@
             <div class="col-lg-3 col-sm-6 team-grids mt-lg-0 mt-5">
                 <!-- team text -->
                 <div class="footerv2-w3ls mt-3" style="text-align: center;">
-                    <h4 id="team-title-4" style="color: #111">彩票产品解决方案</h4>
-                    <p id="team-en-4" style="color: #111">Lottery products</p>
+                    <h4 id="team-title-4" style="color: #111"><?php echo $information['7']['homeinformation_name']; ?></h4>
+                    <p id="team-en-4" style="color: #111"><?php echo $information['7']['homeinformation_en']; ?></p>
                     <div id="team-line-4" class="team-line" style="border-bottom: 1px solid #111;"></div>
                     <!-- //team text -->
                     <div class="team-effect" onmouseover="move(4)" onmouseout="moveOut(4)">
                         <img src="<?php echo HOME_SITE_ROOT; ?>/images/t4.png" alt="img" class="img-responsive">
                         <div id="team-img-text-4" class="team-img-text" style="display: none">
-                            提供所有热门赛事实时数据及详实 的球员数据,细化到能力评分、技 术特点、擅长位置;全面的球队数 据,覆盖到场馆教练、球员转会、 荣誉、伤停信息;以及重点赛事全
-                            覆盖的积分榜、射手榜、助攻榜; 更有球队球员跑动距离、射门、过 人、拦截、犯规、扑救等深度数据 统计。
+                            <?php echo $information['7']['homeinformation_content']; ?>
                         </div>
                     </div>
                 </div>
@@ -434,123 +435,6 @@
         </div>
     </div>
 </section>
-<!-- //pricing -->
-<!-- testimonials -->
-<!--<section class="wthree-row py-5 testi-agile" id="testimonials">
-    <div class="container py-md-5 py-3">
-        <h3 class="w3ls-title text-center text-capitalize pb-md-5 pb-4">testimonials</h3>
-        <div class="w3_testimonials_grids w3_testimonials_grids">
-            <div class="sreen-gallery-cursual">
-                <div id="owl-demo" class="owl-carouselpb-5">
-                    <div class="item-owl text-center">
-                        <div class="img-agile">
-                            <i class="fas fa-user"></i>
-                            <h6 class="mt-3 text-white">Michael Paul</h6>
-                        </div>
-                        <div class="test-review test-tooltip1">
-                            <p class="mx-auto mt-3 text-white">
-                                <i class="fa fa-quote-left" aria-hidden="true"></i> Consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
-                                sed diam voluptua.
-                                <i class="fa fa-quote-right" aria-hidden="true"></i>
-                            </p>
-                        </div>
-                    </div>
-                    <div class="item-owl">
-                        <div class="img-agile">
-                            <i class="fas fa-user"></i>
-                            <h6 class="mt-3 text-white">Riya Allen</h6>
-                        </div>
-                        <div class="test-review test-tooltip1">
-                            <p class="mx-auto mt-3 text-white">
-                                <i class="fa fa-quote-left" aria-hidden="true"></i> Polite sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed
-                                diam voluptua.
-                                <i class="fa fa-quote-right" aria-hidden="true"></i>
-                            </p>
-                        </div>
-                    </div>
-                    <div class="item-owl">
-                        <div class="img-agile">
-                            <i class="fas fa-user"></i>
-                            <h6 class="mt-3 text-white">Riya Allen</h6>
-                        </div>
-                        <div class="test-review test-tooltip1">
-                            <p class="mx-auto mt-3 text-white">
-                                <i class="fa fa-quote-left" aria-hidden="true"></i> Consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
-                                sed diam voluptua.
-                                <i class="fa fa-quote-right" aria-hidden="true"></i>
-                            </p>
-                        </div>
-                    </div>
-                </div>
-            </div>
-        </div>
-    </div>
-</section>-->
-<!-- //testimonials -->
-<!-- contact -->
-<!--<section class="wthree-row py-5 w3-contact" id="contact">
-    <div class="container py-md-5">
-        <h3 class="w3ls-title text-center text-capitalize pb-md-5 pb-4">contact us</h3>
-        <div class="row contact-form py-3">
-            <div class="col-lg-6 wthree-form-left">
-                &lt;!&ndash; contact form grid &ndash;&gt;
-                <div class="contact-top1">
-                    <form action="#" method="get" class="f-color">
-                        <div class="form-group">
-                            <label for="contactusername">Name</label>
-                            <input type="text" class="form-control" id="contactusername" required>
-                        </div>
-                        <div class="form-group">
-                            <label for="contactemail">Email</label>
-                            <input type="email" class="form-control" id="contactemail" required>
-                        </div>
-                        <div class="form-group">
-                            <label for="contactcomment">Your Message</label>
-                            <textarea class="form-control" rows="5" id="contactcomment" required></textarea>
-                        </div>
-                        <button type="submit" class="btn btn-info btn-block">Submit</button>
-                    </form>
-                </div>
-                &lt;!&ndash;  //contact form grid ends here &ndash;&gt;
-            </div>
-            &lt;!&ndash; contact details &ndash;&gt;
-            &lt;!&ndash; contact map grid &ndash;&gt;
-            <div class="col-lg-6  mt-lg-0 mt-5 map contact-right">
-                <iframe class="h-50" src="" allowfullscreen></iframe>
-                <div class="address mt-3">
-                    <h5 class="pb-3 text-capitalize">Contact info</h5>
-                    <address>
-                        <p class="c-txt">90 Street, City, State 34789.</p>
-                        <p>
-                            +10 234 5678</p>
-                        <p>
-                            <p>
-                                <a href="mailto:info@example.com">mail@golaundry.com</a>
-                            </p>
-                    </address>
-                </div>
-            </div>
-            &lt;!&ndash;//contact map grid ends here&ndash;&gt;
-        </div>
-        &lt;!&ndash; //contact details container &ndash;&gt;
-    </div>
-</section>-->
-<!-- //contact -->
-<!-- slide -->
-<!--<section class="wthree-row py-sm-5 py-3 slide-bg bg-dark">
-    <div class="container py-md-5 py-3">
-        <div class="py-lg-5 bg-pricemain">
-            <h3 class="agile-title text-capitalize text-white">go laundry!</h3>
-            <span class="w3-line"></span>
-            <h5 class="agile-title text-capitalize pt-4">trust us, we save your time.</h5>
-            <p class="text-light py-sm-4 py-2">Aliquam ac est vel nisl condimentum interdum vel eget enim. Curabitur mattis orci sed leo mattis, nec maximus nibh faucibus.
-                Mauris et justo vel nibh rhoncus venenatis. Nullal condimentum interdum vel eget enim. Curabitur mattis orci sed le.
-            </p>
-            <a href="#" class="text-uppercase serv_link align-self-center bg-light btn px-4">read more</a>
-        </div>
-    </div>
-</section>-->
-<!--//slide-->
 <!-- footer -->
 <footer style="background: #22252E; padding: 20px 0 20px 0;" id="contact">
     <div class="container">
@@ -721,8 +605,8 @@
         const teamEn = 'team-en-' + id;
         const teamLine = 'team-line-' + id;
         /*$("#"+imgText).stop().fadeTo("slow", 1.5, function () {
-            $(this).css("display", "block");
-        });*/
+         $(this).css("display", "block");
+         });*/
         document.getElementById(imgText).style.display = 'block';
         document.getElementById(teamTitle).style.color = '#27A6E8';
         document.getElementById(teamEn).style.color = '#27A6E8';
@@ -780,10 +664,10 @@
     $(document).ready(function () {
         /*
          var defaults = {
-             containerID: 'toTop', // fading element id
-             containerHoverID: 'toTopHover', // fading element hover id
-             scrollSpeed: 1200,
-             easingType: 'linear'
+         containerID: 'toTop', // fading element id
+         containerHoverID: 'toTopHover', // fading element hover id
+         scrollSpeed: 1200,
+         easingType: 'linear'
          };
          */
 
@@ -793,7 +677,7 @@
 
     });
 </script>
-<script src="js/SmoothScroll.min.js "></script>
+<script src="<?php echo HOME_SITE_ROOT; ?>/js/SmoothScroll.min.js "></script>
 <!-- //smooth-scrolling-of-move-up -->
 <!-- gallery swipebox -->
 <script src="<?php echo HOME_SITE_ROOT; ?>/js/jquery.swipebox.min.js"></script>