新增:官网->客服帮助->模糊搜索

master
chenxiaojun 5 years ago
parent 7f7d054dfc
commit af9e148f1d

@ -8,15 +8,18 @@
// +----------------------------------------------------------------------
namespace Media\Controller;
use Admin\Model\GameModel;
/**
* 文档模型控制器
* 文档模型列表和详情
*/
class ServiceController extends BaseController {
class ServiceController extends BaseController
{
public function index($value=''){
public function index($value = '')
{
$yidata = M('Kefuquestion')
->field('title,titleurl')
->where(array('state' => 1, 'title' => array('neq', '常见问题')))
@ -34,7 +37,9 @@ class ServiceController extends BaseController {
$this->assign('erdata', $erdata);
$this->display();
}
public function detail(){
public function detail()
{
$yidata = M('Kefuquestion')
->field('title,titleurl')
->where(array('status' => 1, 'istitle' => 1))
@ -45,6 +50,7 @@ class ServiceController extends BaseController {
$map1['status'] = 1;
$map1['istitle'] = 2;
$map1['titleurl'] = I('kefu');
empty(I('get.search')) || $map1['zititle'] = ['like', '%' . I('get.search') . '%'];
if ($_REQUEST['para'] != '') {
$map1['id'] = $_REQUEST['para'];
}
@ -61,12 +67,15 @@ class ServiceController extends BaseController {
$this->assign('erdata', $erdata);
$this->display();
}
public function uploadAvatar() {
public function uploadAvatar()
{
// 成功 $this->ajaxReturn(array('state'=>'SUCCESS','url'=>'图片地址'),C('DEFAULT_AJAX_RETURN'));
$this->ajaxReturn(array('state' => '上传失败'), C('DEFAULT_AJAX_RETURN'));
}
public function sask() {
public function sask()
{
if (IS_POST) {
}
@ -74,7 +83,8 @@ class ServiceController extends BaseController {
$this->display();
}
public function sask2() {
public function sask2()
{
if (IS_POST) {
}
@ -82,7 +92,8 @@ class ServiceController extends BaseController {
$this->display();
}
public function sask3() {
public function sask3()
{
if (IS_POST) {
}
@ -90,23 +101,28 @@ class ServiceController extends BaseController {
$this->display();
}
public function spwd($p=1) {
public function spwd($p = 1)
{
$this->display();
}
public function spay($p=1) {
public function spay($p = 1)
{
$this->display();
}
public function saccont($p=1) {
public function saccont($p = 1)
{
$this->display();
}
public function sgift($p=1) {
public function sgift($p = 1)
{
$this->display();
}
public function sother($p=1) {
public function sother($p = 1)
{
$this->display();
}

@ -1,11 +1,39 @@
<extend name="Public/base" />
<block name="body">
<link rel="stylesheet" href="__CSS__/service.css">
<link href="__STATIC__/icons_alibaba/iconfont.css?v=1.0" rel="stylesheet">
<script type="text/javascript" src="__JS__/event.js"></script>
<script type="text/javascript" src="__JS__/tween.js"></script>
<!--客服详情-->
<style>
.search-input-new {
border: 1px solid #999;
border-radius: 20px;
width: 300px;
height: 30px;
padding-left: 12px;
padding-right: 30px;
font-size: 1rem;
}
.search-icon {
font-size: 1.4rem;
line-height: 32px;
position: absolute;
right: 8px;
cursor: pointer;
}
</style>
<div class="g-main server_detail">
<div class="crumbs"><em>当前位置:</em> <span>客服中心</span></div>
<div class="crumbs" style="display: flex;">
<div>
<em>当前位置:</em> <span>客服中心</span>
</div>
<div style="float: right;position: absolute;right: 5%;display: flex;">
<input class="search-input-new" placeholder="" id="search_value" value="{:I('get.search','')}" />
<i class="iconfont iconicon-test search-icon" id="search_btn"></i>
</div>
</div>
<div class="tabmain">
<div id="outerWrap">
<div id="sliderParent"></div>
@ -145,6 +173,13 @@ var upFlag = oLis.length;; (function() {
for (var i = 0; i < oLis.length; i++) {
oLis[i].onclick = changeTab;
};
$('#search_btn').click(function () {
var value = $('#search_value').val();
var url = '/media.php?s=/Service/detail/kefu/' + "{:I('get.kefu')}" + '/search/' + value + '.html';
// console.log(url);
window.location.href = url;
});
})();
</script>
</block>

@ -1,10 +1,10 @@
@font-face {font-family: "iconfont";
src: url('iconfont.eot?t=1569546352126'); /* IE9 */
src: url('iconfont.eot?t=1569546352126#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('data:application/x-font-woff2;charset=utf-8;base64,d09GMgABAAAAAAUAAAsAAAAAC3wAAASyAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHEIGVgCEFgqILIY9ATYCJAMsCxgABCAFhG0HgS8brAkRFaQrkP08sG0eW1ljTcMvS4sUj54tD9Mwzf8cBPRb+rP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w97g6D5ZijyMeykXqJbd2arTGXqK+dWPJYEH4IAghQBrlMU2DRVbAtF5J4lb8vNfZIEJikmqARR1aQmOShKmYRj16CFYKBSXWwKEz9ywMkMwKJUPFAIWYCEEQ4DBohLoMkwk2qYr4EHZvvwCAiJFi0E8k3DJAPLfjpLaOouIA8AavgNYvXJ230N1KzIlvtqvwfc+E6TP3o7P1CjzmPU8qe5lo16BwcfILHobUBYg47VLVfa43bYdB+H9Sr4C6e4i2jqLgA8gSwCl7L1vXJ9fvfSM2KHDLjx/Qfc+HtAxM9Ywzql8fHmrEuE8ueZirq0IC+jQwO+EQptLQrANF/vx2q2rOm6IhbBrSSjuvpy/e56W0/VWYh3/yMMEnRDIfLY/nx2k94OrKnA/KxCX9eg6eNh+PRodnau/eBa+N7Qk9LC/e/1HRHEW4h+TnaVjrFWVl8cew/w0pqIqOn9eW8ZZ3Rni4uAAA=') format('woff2'),
url('iconfont.woff?t=1569546352126') format('woff'),
url('iconfont.ttf?t=1569546352126') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+ */
url('iconfont.svg?t=1569546352126#iconfont') format('svg'); /* iOS 4.1- */
src: url('iconfont.eot?t=1570870899994'); /* IE9 */
src: url('iconfont.eot?t=1570870899994#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('data:application/x-font-woff2;charset=utf-8;base64,d09GMgABAAAAAAVUAAsAAAAADBAAAAUEAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHEIGVgCELAqJGIcgATYCJAMwCxoABCAFhG0HgTsbNQoRFaSZkH1xwJv6gmNIQk1g8ltlso971mEXikzzP0cQrensPSQpkwKU8QWyZWFI1YgIV0Blqmt0hfkvGJGDPGvSVAtI7QFI1ta9YAQAooxJVvi6bJlrytZHmJvybZefHrjA5ZkN4df/jbk69ZD0T6+tl7uJKuKeeDSWiJJ4hCTi2TIhWgiRh23BdhULqzD7pQ8T6LFAGbJv6+wNVDlxVCDujtIjgBqKyDOkoekviQtziAcgaaYUwjq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lN4z4kDfOQaVqk5sxNKPRqQ6lpC3pssLu816hzgIqcAViXABCGdEEy4AsyQzaoOfMuFCa8hdJQoNDjEuG6Ya9lfNDDK6MSXEAfgUxOVsXlwen7ha4FxUG7Lf9DrlQHUz9G2z4xITdxSt25WcSC5RzhAx6HIWQonLdopF9FymYYLPVGvcnx7MEroxJcgD4CMjlZs7o8xH7/C10LijOm/Jj+IVfaPpj0xgLUT08qNOVQBtedmwlrtMDeeucIPlgKg2zOoND7bdFIb63QWDYGtpQt6um798U9bj+8phGfzhwlumFatuN6Pn97vlXJHSi5PdKhqXRac3IvCY5Ho6UQbt4Hro1uHSa3tHz7S003LsctND2W0GpniE3Ap0jp06P+N8WYaH05r1W5hOP91nftBKucnQEAAAA=') format('woff2'),
url('iconfont.woff?t=1570870899994') format('woff'),
url('iconfont.ttf?t=1570870899994') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+ */
url('iconfont.svg?t=1570870899994#iconfont') format('svg'); /* iOS 4.1- */
}
.iconfont {
@ -55,3 +55,7 @@
content: "\e82f";
}
.iconicon-test:before {
content: "\e63c";
}

File diff suppressed because one or more lines are too long

@ -50,6 +50,9 @@ Created by iconfont
<glyph glyph-name="reply" unicode="&#59439;" d="M398.208 593.088V832L0 413.888l398.208-418.176V240.64c284.48 0 483.584-95.552 625.792-304.64-56.896 298.688-227.584 597.312-625.792 657.088z" horiz-adv-x="1024" />
<glyph glyph-name="icon-test" unicode="&#58940;" d="M192 448c0 141.152 114.848 256 256 256s256-114.848 256-256-114.848-256-256-256-256 114.848-256 256z m710.624-409.376l-206.88 206.88A318.784 318.784 0 0 1 768 448c0 176.736-143.264 320-320 320S128 624.736 128 448s143.264-320 320-320a318.784 318.784 0 0 1 202.496 72.256l206.88-206.88 45.248 45.248z" horiz-adv-x="1024" />
</font>

Before

Width:  |  Height:  |  Size: 5.5 KiB

After

Width:  |  Height:  |  Size: 5.9 KiB

Loading…
Cancel
Save