diff --git a/app/index/controller/Faq.php b/app/index/controller/Faq.php
new file mode 100644
index 00000000..91d4774a
--- /dev/null
+++ b/app/index/controller/Faq.php
@@ -0,0 +1,52 @@
+param([
+ 'page/d' => 1,
+ 'size/d' => 12
+ ]);
+
+ // 获取banner焦点图
+ $banner = SysBannerItemModel::hasWhere('banner', [
+ 'language_id' => $this->lang_id,
+ 'unique_label' => 'BANNER_67fa37f30e151'
+ ])
+ ->type('image')
+ ->visible(['id', 'title', 'image', 'link'])
+ ->find();
+ View::assign('banner', $banner);
+
+ // 获取问答列表
+ $faq = FaqModel::field([
+ 'id',
+ 'image',
+ 'question',
+ 'answer',
+ ])
+ ->language($this->lang_id)
+ ->order(['sort' => 'asc', 'id' => 'desc'])
+ ->paginate([
+ 'list_rows' => $param['size'],
+ 'page' => $param['page'],
+ ]);
+ View::assign('faq', $faq);
+
+ return View::fetch('index');
+ }
+}
diff --git a/app/index/route/route.php b/app/index/route/route.php
index 9d860a38..953c4436 100644
--- a/app/index/route/route.php
+++ b/app/index/route/route.php
@@ -34,5 +34,11 @@ Route::group('article', function() {
Route::post('comment', 'Article/comment');
});
+// 问答中心
+Route::group('faq', function() {
+ // 问答列表页
+ Route::get('index', 'Faq/index');
+});
+
// 数据迁移
Route::get('/data/migration', 'DataMigration/index');
diff --git a/app/index/view/faq/index.html b/app/index/view/faq/index.html
new file mode 100644
index 00000000..fc161829
--- /dev/null
+++ b/app/index/view/faq/index.html
@@ -0,0 +1,34 @@
+{extend name="public/base" /}
+{block name="title"}
+
常见FQ_下载与服务_中文官网帮助信息_ORICO/奥睿科官网
+{/block}
+{block name="style"}
+
+{/block}
+{block name="main"}
+
+
+
+

+
+
+ {notempty name="faq"}
+
+ {volist name="faq" id="vo"}
+ -
+
+

+
+
+
{$vo.question}
+
{$vo.answer|raw}
+
+
+ {/volist}
+
+
+
{$faq|raw}
+ {/notempty}
+
+
+{/block}
\ No newline at end of file
diff --git a/public/static/index/css/fq.css b/public/static/index/css/faq.css
similarity index 54%
rename from public/static/index/css/fq.css
rename to public/static/index/css/faq.css
index 2bb5e6b6..6c00fcb1 100755
--- a/public/static/index/css/fq.css
+++ b/public/static/index/css/faq.css
@@ -1,7 +1,7 @@
.orico_Page_fq {
width: 100%;
position: relative;
- height: 100vh;
+ height: auto;
overflow-y: auto;
overflow-x: hidden;
background: #f2f2f2;
@@ -40,50 +40,21 @@
color: #737373;
line-height: 1.875em;
}
-.orico_Page_fq .fqMain .Page {
+.orico_Page_fq .fqMain .pagination {
zoom: 1;
text-align: center;
color: #555;
clear: both;
padding-bottom: 2rem;
}
-.orico_Page_fq .fqMain .Page span {
- padding: 0px 0px;
- display: inline-block;
-}
-.orico_Page_fq .fqMain .Page .p_page {
- display: flex;
- align-items: center;
- justify-content: center;
-}
-.orico_Page_fq .fqMain .Page .p_page .a_prev,
-.orico_Page_fq .fqMain .Page .p_page .a_next {
- display: inline-block;
- width: 10px;
- height: 21px;
-}
-.orico_Page_fq .fqMain .Page .p_page .a_prev {
- background: url(../fqimg/pfl.png) no-repeat;
- margin-right: 10px;
- padding: 0 10px;
-}
-.orico_Page_fq .fqMain .Page .p_page .a_next {
- background: url(../fqimg/prh.png) no-repeat;
- margin-left: 10px;
- padding: 0 10px;
-}
-.orico_Page_fq .fqMain .Page .p_page .num a {
+.orico_Page_fq .fqMain .pagination li {
display: inline-block;
width: 34px;
height: 22px;
line-height: 22px;
- text-align: center;
- vertical-align: middle;
font-size: 16px;
- color: #444;
}
-.orico_Page_fq .fqMain .Page .p_page .num a.a_cur,
-.orico_Page_fq .fqMain .Page .p_page .num a:hover {
- background: #444;
- color: #fff;
+.orico_Page_fq .fqMain .pagination li.active {
+ background-color: #444444;
+ color: #ffffff;
}