dever 3 years ago
parent
commit
9582c649c1

+ 2 - 2
main/assets/pc/html/agreement.html

@@ -15,10 +15,10 @@
                 <img src="../img/logo-g-c19573c6.png" alt="" srcset="">
             </a>
             <nav>
-                <a href="index.html">项目介绍</a>
+                <a class="current" href="index.html">项目介绍</a>
                 <a href="#">开通城市</a>
                 <a href="news.html">企业动态</a>
-                <a class="current" href="jd.html">招贤纳士</a>
+                <a href="jd.html">招贤纳士</a>
                 <a href="contact.html">联系我们</a>
             </nav>
         </section>

+ 114 - 0
main/assets/pc/html/help_view.html

@@ -0,0 +1,114 @@
+<!DOCTYPE HTML>
+<html lang="zh-CN">
+
+<head>
+    <meta charset="UTF-8">
+    <title>帮助中心</title>
+    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
+    <meta name="renderer" content="webkit" />
+<link href="../css/global.css?v=3e6b2f2a" rel="stylesheet"><link href="../css/agreement.css?v=3e6b2f2a" rel="stylesheet"></head>
+
+<body>
+    <header>
+        <section class="wrapper">
+            <a href="#" class="logo">
+                <img src="../img/logo-g-c19573c6.png" alt="" srcset="">
+            </a>
+            <nav>
+                <a class="current" href="index.html">项目介绍</a>
+                <a href="#">开通城市</a>
+                <a href="news.html">企业动态</a>
+                <a href="jd.html">招贤纳士</a>
+                <a href="contact.html">联系我们</a>
+            </nav>
+        </section>
+    </header>
+    <section class="main">
+        <div class="wrapper ">
+            <section class="tit">
+                <h2>用户服务协议</h2>
+            </section>
+
+            <section>
+                <dl>
+                    <dt>
+                        <h5>一、这里是用户协议小标题</h5>
+                    </dt>
+                    <dd>
+                        1、这里是用户协议这里是用户协议这里是用户协议这里是用户协议这里是用户协议这里是用户协议这里是用户协议这里是用户协议这里是用户协议这里是用户协议这里是用户协议这里是用户协议这里是用户协议这里是用户协议这里是用户协议这里是用户协议这里是用户协议这里是用户协议这里是用户协议这里是用户协议这里是用户协议这里是用户协议这里是用户协议这里是用户协议这里是用户协议这里是用户协议这里是用户协议这里是用户协议这里是用户协议这里是用户协议这里是用户协议这里是用户协议这里是用户协议这里是用户协议这里是用户协议这里是用户协议这里是用户协议这里是用户协议这里是用户协
+                    </dd>
+                </dl>
+                <dl>
+                    <dt>
+                        <h5>一、这里是用户协议小标题</h5>
+                    </dt>
+                    <dd>
+                        1、这里是用户协议这里是用户协议这里是用户协议这里是用户协议这里是用户协议这里是用户协议这里是用户协议这里是用户协议这里是用户协议这里是用户协议这里是用户协议这里是用户协议这里是用户协议这里是用户协议这里是用户协议这里是用户协议这里是用户协议这里是用户协议这里是用户协议这里是用户协议这里是用户协议这里是用户协议这里是用户协议这里是用户协议这里是用户协议这里是用户协议这里是用户协议这里是用户协议这里是用户协议这里是用户协议这里是用户协议这里是用户协议这里是用户协议这里是用户协议这里是用户协议这里是用户协议这里是用户协议这里是用户协议这里是用户协
+                    </dd>
+                </dl>
+                <dl>
+                    <dt>
+                        <h5>一、这里是用户协议小标题</h5>
+                    </dt>
+                    <dd>
+                        1、这里是用户协议这里是用户协议这里是用户协议这里是用户协议这里是用户协议这里是用户协议这里是用户协议这里是用户协议这里是用户协议这里是用户协议这里是用户协议这里是用户协议这里是用户协议这里是用户协议这里是用户协议这里是用户协议这里是用户协议这里是用户协议这里是用户协议这里是用户协议这里是用户协议这里是用户协议这里是用户协议这里是用户协议这里是用户协议这里是用户协议这里是用户协议这里是用户协议这里是用户协议这里是用户协议这里是用户协议这里是用户协议这里是用户协议这里是用户协议这里是用户协议这里是用户协议这里是用户协议这里是用户协议这里是用户协
+                    </dd>
+                </dl>
+            </section>
+            <ul class="pagation" style="display: none;">
+                <li class="prev"><a href="#">&lt;</a></li>
+                <li><a href="#">1</a></li>
+                <li class="active">2</li>
+                <li><a href="#">3</a></li>
+                <li><a href="#">4</a></li>
+                <li class="next"><a href="#">&gt;</a></li>
+            </ul>
+        </div>
+    </section>
+    <footer>
+        <div class="wrapper">
+            <section>
+                <img src="../img/logo-706bce7e.png" class="flogo" alt="">
+                <div class="list">
+                    <dl>
+                        <dt>公司</dt>
+                        <dd><a href="#">关于公司</a></dd>
+                        <dd><a href="#">公司动态</a></dd>
+                        <dd><a href="agreement.html">用户服务协议</a></dd>
+                        <dd><a href="#">隐私政策</a></dd>
+                    </dl>
+                    <dl>
+                        <dt>产品</dt>
+                        <dd>
+                            <a href="#">门店零售小程序</a>
+                            <div class="qrcodelayer">
+                                <img src="../img/qrcode-fa90701c.png" alt="">
+                            </div>
+                        </dd>
+                        <dd>
+                            <a href="#">门店管理小程序</a>
+                            <div class="qrcodelayer">
+                                <img src="../img/qrcode-fa90701c.png" alt="">
+                            </div>
+                        </dd>
+                        <dd><a href="#">供应商管理系统</a></dd>
+                    </dl>
+                    <dl>
+                        <dt>客服</dt>
+                        <dd>电话:400-123-1234</dd>
+                        <dd>周一至周五 9:00-18:00</dd>
+                        <dd><a href="help.html" target="_blank">帮助中心</a></dd>
+                    </dl>
+                </div>
+            </section>
+            <div class="icp">
+                <a href="#" target="_blank">京ICP备123456</a>
+                <a href="#" target="_blank">公安备案:12345</a>
+                <a href="#" target="_blank">电信经营许可:ICP83123</a>
+            </div>
+        </div>
+    </footer>
+    <script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
+<script type="text/javascript" src="../js/global.js?v=3e6b2f2a"></script><script type="text/javascript" src="../js/agreement.js?v=3e6b2f2a"></script></body>
+
+</html>

+ 1 - 1
main/assets/pc/html/home.html

@@ -161,7 +161,7 @@
                             <div class="qrcodelayer">
                                 <img src="../img/qrcode-fa90701c.png" alt="">
                             </div>
-                        </dd>
+                        </dd>  
                         <dd>
                             <a href="#">门店管理小程序</a>
                             <div class="qrcodelayer">

+ 10 - 0
main/database/help.php

@@ -44,6 +44,16 @@ $config = array
             'list'      => true,
         ),
 
+        'desc'      => array
+        (
+            'type'      => 'varchar-500',
+            'name'      => '描述',
+            'default'   => '',
+            'desc'      => '描述',
+            'match'     => 'option',
+            'update'    => 'textarea',
+        ),
+
         'type'        => array
         (
             'type'      => 'int-11',

+ 6 - 0
main/src/Api.php

@@ -79,6 +79,12 @@ class Api
         $where['type'] = $type;
         $data = Dever::db('main/help')->select_page($where);
 
+        if ($data) {
+            foreach ($data as $k => $v) {
+                $data[$k]['link'] = Dever::url('help_view?id=' . $v['id'], 'main');
+            }
+        }
+
         return $data;
     }
 

+ 2 - 2
main/template/pc/help.php

@@ -22,11 +22,11 @@ $view
     (
     	'a' => array
     	(
-    		'href' => 'javascript:;',
+    		'href' => '$v.link',
     	),
     	'h5' => '$v.name',
         
-    	'dd' => '$v.content',
+    	'dd' => '$v.desc',
     )
 )
 

+ 24 - 0
main/template/pc/help_view.php

@@ -0,0 +1,24 @@
+<?php
+/*
+|--------------------------------------------------------------------------
+| home
+|--------------------------------------------------------------------------
+*/
+$view
+
+->set('name', 'agreement') 
+->set('title', 'main/api.help_view#name')  
+
+->import('inc/head')
+
+# 定义名称
+->fetch('body@t', '1')  
+
+->fetch('.tit', 'main/api.help_view#name') 
+->fetch(array('.main section', 1), 'main/api.help_view#content') 
+
+->fetch(array('script@src', 1),     Dever::assets('global.js'))
+->fetch(array('script@src', 2),     Dever::assets('<{(isset($name) ? $name : "index")}>.js', 'js'))
+
+# display
+->display();

+ 2 - 2
main/template/pc/home.php

@@ -12,14 +12,14 @@ $view
 ->import('inc/head')
 
 # 定义名称
-->fetch('body@t', '1')  
+->fetch('body@t', '1')     
 
 ->fetch('.video h3', 'main/api.config#video_name')
 ->fetch('.video p', 'main/api.config#video_desc')
 ->fetch('.video img@src', 'main/api.config#video_pic')
 ->fetch('.video img@data-video', 'main/api.config#video')
 
-->fetch('#cities ul', 'main/api.config#citys')
+->fetch('#cities ul', 'main/api.config#citys') 
 ->fetch('#cities .button@href', 'main/api.config#contact_link')
 
 ->fetch('.news .more@href', 'main/api.config#news_link')

+ 1 - 0
main/template/pc/inc/head.php

@@ -26,6 +26,7 @@ $view
 
     '.list a@href|6' => '$v.factory_link',
     '.list a|6' => '$v.factory_name',
+    '.list dd@style|6' => 'display:none',
 
     '.list a@href|7' => '$v.help_link',