正在显示
24 个修改的文件
包含
968 行增加
和
66 行删除
application/admin/controller/Link.php
0 → 100644
1 | +<?php | ||
2 | + | ||
3 | +namespace app\admin\controller; | ||
4 | + | ||
5 | +use app\common\controller\Backend; | ||
6 | + | ||
7 | +/** | ||
8 | + * 友情链接管理 | ||
9 | + * | ||
10 | + * @icon fa fa-link | ||
11 | + */ | ||
12 | +class Link extends Backend | ||
13 | +{ | ||
14 | + | ||
15 | + /** | ||
16 | + * Link模型对象 | ||
17 | + * @var \app\admin\model\Link | ||
18 | + */ | ||
19 | + protected $model = null; | ||
20 | + | ||
21 | + public function _initialize() | ||
22 | + { | ||
23 | + parent::_initialize(); | ||
24 | + $this->model = new \app\admin\model\Link; | ||
25 | + | ||
26 | + } | ||
27 | + | ||
28 | + /** | ||
29 | + * 默认生成的控制器所继承的父类中有index/add/edit/del/multi五个基础方法、destroy/restore/recyclebin三个回收站方法 | ||
30 | + * 因此在当前控制器中可不用编写增删改查的代码,除非需要自己控制这部分逻辑 | ||
31 | + * 需要将application/admin/library/traits/Backend.php中对应的方法复制到当前控制器,然后进行修改 | ||
32 | + */ | ||
33 | + | ||
34 | + | ||
35 | +} |
application/admin/lang/zh-cn/link.php
0 → 100644
application/admin/model/Link.php
0 → 100644
1 | +<?php | ||
2 | + | ||
3 | +namespace app\admin\model; | ||
4 | + | ||
5 | +use think\Model; | ||
6 | + | ||
7 | + | ||
8 | +class Link extends Model | ||
9 | +{ | ||
10 | + | ||
11 | + | ||
12 | + | ||
13 | + | ||
14 | + | ||
15 | + // 表名 | ||
16 | + protected $name = 'link'; | ||
17 | + | ||
18 | + // 自动写入时间戳字段 | ||
19 | + protected $autoWriteTimestamp = 'int'; | ||
20 | + | ||
21 | + // 定义时间戳字段名 | ||
22 | + protected $createTime = 'createtime'; | ||
23 | + protected $updateTime = 'updatetime'; | ||
24 | + protected $deleteTime = false; | ||
25 | + | ||
26 | + // 追加属性 | ||
27 | + protected $append = [ | ||
28 | + | ||
29 | + ]; | ||
30 | + | ||
31 | + | ||
32 | + | ||
33 | + | ||
34 | + | ||
35 | + | ||
36 | + | ||
37 | + | ||
38 | + | ||
39 | + | ||
40 | +} |
application/admin/validate/Link.php
0 → 100644
1 | +<?php | ||
2 | + | ||
3 | +namespace app\admin\validate; | ||
4 | + | ||
5 | +use think\Validate; | ||
6 | + | ||
7 | +class Link extends Validate | ||
8 | +{ | ||
9 | + /** | ||
10 | + * 验证规则 | ||
11 | + */ | ||
12 | + protected $rule = [ | ||
13 | + ]; | ||
14 | + /** | ||
15 | + * 提示消息 | ||
16 | + */ | ||
17 | + protected $message = [ | ||
18 | + ]; | ||
19 | + /** | ||
20 | + * 验证场景 | ||
21 | + */ | ||
22 | + protected $scene = [ | ||
23 | + 'add' => [], | ||
24 | + 'edit' => [], | ||
25 | + ]; | ||
26 | + | ||
27 | +} |
application/admin/view/link/add.html
0 → 100644
1 | +<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action=""> | ||
2 | + | ||
3 | + <div class="form-group"> | ||
4 | + <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label> | ||
5 | + <div class="col-xs-12 col-sm-8"> | ||
6 | + <input id="c-name" data-rule="required" class="form-control" name="row[name]" type="text" value=""> | ||
7 | + </div> | ||
8 | + </div> | ||
9 | + <div class="form-group"> | ||
10 | + <label class="control-label col-xs-12 col-sm-2">{:__('Href')}:</label> | ||
11 | + <div class="col-xs-12 col-sm-8"> | ||
12 | + <input id="c-href" data-rule="required;url" class="form-control" name="row[href]" type="text" value=""> | ||
13 | + </div> | ||
14 | + </div> | ||
15 | + <div class="form-group layer-footer"> | ||
16 | + <label class="control-label col-xs-12 col-sm-2"></label> | ||
17 | + <div class="col-xs-12 col-sm-8"> | ||
18 | + <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button> | ||
19 | + <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button> | ||
20 | + </div> | ||
21 | + </div> | ||
22 | +</form> |
application/admin/view/link/edit.html
0 → 100644
1 | +<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action=""> | ||
2 | + | ||
3 | + <div class="form-group"> | ||
4 | + <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label> | ||
5 | + <div class="col-xs-12 col-sm-8"> | ||
6 | + <input id="c-name" data-rule="required" class="form-control" name="row[name]" type="text" value="{$row.name|htmlentities}"> | ||
7 | + </div> | ||
8 | + </div> | ||
9 | + <div class="form-group"> | ||
10 | + <label class="control-label col-xs-12 col-sm-2">{:__('Href')}:</label> | ||
11 | + <div class="col-xs-12 col-sm-8"> | ||
12 | + <input id="c-href" data-rule="required;url" class="form-control" name="row[href]" type="text" value="{$row.href|htmlentities}"> | ||
13 | + </div> | ||
14 | + </div> | ||
15 | + <div class="form-group layer-footer"> | ||
16 | + <label class="control-label col-xs-12 col-sm-2"></label> | ||
17 | + <div class="col-xs-12 col-sm-8"> | ||
18 | + <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button> | ||
19 | + <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button> | ||
20 | + </div> | ||
21 | + </div> | ||
22 | +</form> |
application/admin/view/link/index.html
0 → 100644
1 | +<div class="panel panel-default panel-intro"> | ||
2 | + {:build_heading()} | ||
3 | + | ||
4 | + <div class="panel-body"> | ||
5 | + <div id="myTabContent" class="tab-content"> | ||
6 | + <div class="tab-pane fade active in" id="one"> | ||
7 | + <div class="widget-body no-padding"> | ||
8 | + <div id="toolbar" class="toolbar"> | ||
9 | + <a href="javascript:;" class="btn btn-primary btn-refresh" title="{:__('Refresh')}" ><i class="fa fa-refresh"></i> </a> | ||
10 | + <a href="javascript:;" class="btn btn-success btn-add {:$auth->check('link/add')?'':'hide'}" title="{:__('Add')}" ><i class="fa fa-plus"></i> {:__('Add')}</a> | ||
11 | + <a href="javascript:;" class="btn btn-success btn-edit btn-disabled disabled {:$auth->check('link/edit')?'':'hide'}" title="{:__('Edit')}" ><i class="fa fa-pencil"></i> {:__('Edit')}</a> | ||
12 | + <a href="javascript:;" class="btn btn-danger btn-del btn-disabled disabled {:$auth->check('link/del')?'':'hide'}" title="{:__('Delete')}" ><i class="fa fa-trash"></i> {:__('Delete')}</a> | ||
13 | + | ||
14 | + </div> | ||
15 | + <table id="table" class="table table-striped table-bordered table-hover table-nowrap" | ||
16 | + data-operate-edit="{:$auth->check('link/edit')}" | ||
17 | + data-operate-del="{:$auth->check('link/del')}" | ||
18 | + width="100%"> | ||
19 | + </table> | ||
20 | + </div> | ||
21 | + </div> | ||
22 | + | ||
23 | + </div> | ||
24 | + </div> | ||
25 | +</div> |
@@ -5,6 +5,7 @@ namespace app\common\controller; | @@ -5,6 +5,7 @@ namespace app\common\controller; | ||
5 | use app\common\library\Auth; | 5 | use app\common\library\Auth; |
6 | use think\Config; | 6 | use think\Config; |
7 | use think\Controller; | 7 | use think\Controller; |
8 | +use think\Db; | ||
8 | use think\Hook; | 9 | use think\Hook; |
9 | use think\Lang; | 10 | use think\Lang; |
10 | use think\Loader; | 11 | use think\Loader; |
@@ -111,6 +112,9 @@ class Frontend extends Controller | @@ -111,6 +112,9 @@ class Frontend extends Controller | ||
111 | 112 | ||
112 | // 配置信息后 | 113 | // 配置信息后 |
113 | Hook::listen("config_init", $config); | 114 | Hook::listen("config_init", $config); |
115 | + // 友情链接 | ||
116 | + $link = Db::name('link')->select(); | ||
117 | + $this->assign('link',$link); | ||
114 | // 加载当前控制器语言包 | 118 | // 加载当前控制器语言包 |
115 | $this->loadlang($controllername); | 119 | $this->loadlang($controllername); |
116 | $this->assign('site', $site); | 120 | $this->assign('site', $site); |
@@ -2,7 +2,7 @@ | @@ -2,7 +2,7 @@ | ||
2 | 2 | ||
3 | return array ( | 3 | return array ( |
4 | 'name' => '电子器件商城后台', | 4 | 'name' => '电子器件商城后台', |
5 | - 'beian' => '', | 5 | + 'beian' => '京ICP备17000000号', |
6 | 'cdnurl' => '', | 6 | 'cdnurl' => '', |
7 | 'version' => '1.0.1', | 7 | 'version' => '1.0.1', |
8 | 'timezone' => 'Asia/Shanghai', | 8 | 'timezone' => 'Asia/Shanghai', |
application/index/controller/About.php
0 → 100644
1 | +<?php | ||
2 | + | ||
3 | + | ||
4 | +namespace app\index\controller; | ||
5 | + | ||
6 | +use app\common\controller\Frontend; | ||
7 | + | ||
8 | +class About extends Frontend | ||
9 | +{ | ||
10 | + | ||
11 | + protected $noNeedLogin = ['*']; | ||
12 | + protected $noNeedRight = ['*']; | ||
13 | + | ||
14 | + public function _initialize() | ||
15 | + { | ||
16 | + parent::_initialize(); // TODO: Change the autogenerated stub | ||
17 | + $this->view->assign('is_search', 0); | ||
18 | + $this->view->assign('is_active', 5); | ||
19 | + $this->view->assign('title', '关于我们'); | ||
20 | + } | ||
21 | + | ||
22 | + public function index() { | ||
23 | + $about_model = new \app\index\model\About(); | ||
24 | + $about = $about_model->where('id',1)->find(); | ||
25 | + $this->view->assign('about',$about); | ||
26 | + return $this->view->fetch(); | ||
27 | + } | ||
28 | +} |
@@ -22,6 +22,14 @@ class Goods extends Frontend | @@ -22,6 +22,14 @@ class Goods extends Frontend | ||
22 | protected $noNeedLogin = ['*']; | 22 | protected $noNeedLogin = ['*']; |
23 | protected $noNeedRight = ['*']; | 23 | protected $noNeedRight = ['*']; |
24 | 24 | ||
25 | + public function _initialize() | ||
26 | + { | ||
27 | + parent::_initialize(); // TODO: Change the autogenerated stub | ||
28 | + $this->view->assign('is_search', 1); | ||
29 | + $this->view->assign('is_active', 2); | ||
30 | + $this->view->assign('title', '采购中心'); | ||
31 | + } | ||
32 | + | ||
25 | /** | 33 | /** |
26 | * 采购中心页面 | 34 | * 采购中心页面 |
27 | * @return mixed | 35 | * @return mixed |
application/index/controller/Helpbuy.php
0 → 100644
1 | +<?php | ||
2 | + | ||
3 | + | ||
4 | +namespace app\index\controller; | ||
5 | + | ||
6 | +use app\common\controller\Frontend; | ||
7 | + | ||
8 | +class Helpbuy extends Frontend | ||
9 | +{ | ||
10 | + | ||
11 | + protected $noNeedLogin = ['*']; | ||
12 | + protected $noNeedRight = ['*']; | ||
13 | + | ||
14 | + public function _initialize() | ||
15 | + { | ||
16 | + parent::_initialize(); // TODO: Change the autogenerated stub | ||
17 | + $this->view->assign('is_search', 0); | ||
18 | + $this->view->assign('is_active', 3); | ||
19 | + $this->view->assign('title', '帮买服务'); | ||
20 | + } | ||
21 | + | ||
22 | + public function index() { | ||
23 | + $helpbuy_model = new \app\index\model\Helpbuy(); | ||
24 | + $helpbuy = $helpbuy_model->where('id',1)->find(); | ||
25 | + $this->view->assign('helpbuy',$helpbuy); | ||
26 | + return $this->view->fetch(); | ||
27 | + } | ||
28 | +} |
application/index/controller/Maintain.php
0 → 100644
1 | +<?php | ||
2 | + | ||
3 | + | ||
4 | +namespace app\index\controller; | ||
5 | + | ||
6 | +use app\common\controller\Frontend; | ||
7 | + | ||
8 | +class Maintain extends Frontend | ||
9 | +{ | ||
10 | + | ||
11 | + protected $noNeedLogin = ['*']; | ||
12 | + protected $noNeedRight = ['*']; | ||
13 | + | ||
14 | + public function _initialize() | ||
15 | + { | ||
16 | + parent::_initialize(); // TODO: Change the autogenerated stub | ||
17 | + $this->view->assign('is_search', 0); | ||
18 | + $this->view->assign('is_active', 4); | ||
19 | + $this->view->assign('title', '产品维修'); | ||
20 | + } | ||
21 | + | ||
22 | + public function index() { | ||
23 | + $maintain_model = new \app\index\model\Maintain(); | ||
24 | + $maintainer_model = new \app\index\model\Maintainer(); | ||
25 | + $maintain = $maintain_model->where('id',1)->find(); | ||
26 | + $maintainer = $maintainer_model->select(); | ||
27 | + $this->view->assign('maintain',$maintain); | ||
28 | + $this->view->assign('maintainer',$maintainer); | ||
29 | + return $this->view->fetch(); | ||
30 | + } | ||
31 | +} |
application/index/model/About.php
0 → 100644
application/index/model/Helpbuy.php
0 → 100644
application/index/model/Maintain.php
0 → 100644
application/index/model/Maintainer.php
0 → 100644
application/index/view/about/index.html
0 → 100644
1 | +<!DOCTYPE html> | ||
2 | +<html lang="zh"> | ||
3 | +{include file="public/head"} | ||
4 | +<style> | ||
5 | + body{ | ||
6 | + background: rgba(249,249,249,1); | ||
7 | + } | ||
8 | + .content{ | ||
9 | + width: 100%; | ||
10 | + font-size: 0; | ||
11 | + background: rgba(249,249,249,1); | ||
12 | + } | ||
13 | + .content .titleImgContent{ | ||
14 | + width: 100%; | ||
15 | + height: 146px; | ||
16 | + } | ||
17 | + .content .titleImgContent img{ | ||
18 | + width: 100%; | ||
19 | + height: 100%; | ||
20 | + } | ||
21 | + | ||
22 | + /*富文本区域样式*/ | ||
23 | + .content .contentBox{ | ||
24 | + width: 100%; | ||
25 | + font-size: 18px; | ||
26 | + font-family: PingFang SC; | ||
27 | + font-weight: 400; | ||
28 | + line-height: 25px; | ||
29 | + color: rgba(91,94,99,1); | ||
30 | + background: rgba(249,249,249,1); | ||
31 | + } | ||
32 | + .content .contentBox .contentMain{ | ||
33 | + width: 1200px; | ||
34 | + /*height: 975px;*/ | ||
35 | + padding: 25px 0 59px 0; | ||
36 | + margin: 0 auto; | ||
37 | + } | ||
38 | + | ||
39 | + /*在线客服按钮样式*/ | ||
40 | + .rightButtons{ | ||
41 | + position: fixed; | ||
42 | + width: 64px; | ||
43 | + height: 65px; | ||
44 | + top: 400px; | ||
45 | + right: 0; | ||
46 | + background: rgba(0,159,142,1); | ||
47 | + } | ||
48 | + .rightButtons a{ | ||
49 | + display: block; | ||
50 | + width: 64px; | ||
51 | + height: 64px; | ||
52 | + text-align: center; | ||
53 | + font-size: 12px; | ||
54 | + font-family: PingFang SC; | ||
55 | + font-weight:500; | ||
56 | + color: rgba(255,255,255,1); | ||
57 | + } | ||
58 | + .rightButtons a img{ | ||
59 | + display: block; | ||
60 | + margin: 10px auto 8px auto; | ||
61 | + } | ||
62 | +</style> | ||
63 | +<body> | ||
64 | +{include file="public/header"} | ||
65 | +<!--主要内容--> | ||
66 | +<div class="content"> | ||
67 | + {include file="public/nav"} | ||
68 | + <!--标题图片--> | ||
69 | + <div class="titleImgContent"> | ||
70 | + <img src="__CDN__/assets/store/images/aboutUsImg.png" alt="img"> | ||
71 | + </div> | ||
72 | + | ||
73 | + <!--富文本内容--> | ||
74 | + <div class="contentBox"> | ||
75 | + <div class="contentMain"> | ||
76 | + {$about.content} | ||
77 | + </div> | ||
78 | + </div> | ||
79 | +</div> | ||
80 | + | ||
81 | +<!--右侧功能按钮--> | ||
82 | +<div class="rightButtons"> | ||
83 | + <a href="tencent://message/?uin={$site.service_qq}&Site=baidu.com&Menu=yes"> | ||
84 | + <img src="__CDN__/assets/store/images/onlineService.png" alt="onlineService"> | ||
85 | + 在线客服 | ||
86 | + </a> | ||
87 | +</div> | ||
88 | +{include file="public/footer"} | ||
89 | +</body> | ||
90 | +</html> |
@@ -332,28 +332,7 @@ | @@ -332,28 +332,7 @@ | ||
332 | {include file="public/header"/} | 332 | {include file="public/header"/} |
333 | <!--主要内容--> | 333 | <!--主要内容--> |
334 | <div class="content"> | 334 | <div class="content"> |
335 | - <div class="navBarBox"> | ||
336 | - <ul> | ||
337 | - <li><a href="{:url('index/index')}">首页</a></li> | ||
338 | - <li class="active"><a href="{:url('goods/index')}">采购中心</a></li> | ||
339 | - <li><a href="">帮买服务</a></li> | ||
340 | - <li><a href="">产品维修</a></li> | ||
341 | - <li><a href="">关于我们</a></li> | ||
342 | - <!--搜索框--> | ||
343 | - <li class="searchBoxLi"> | ||
344 | - <div class="searchBox"> | ||
345 | - <input id="searchVal" type="text" class="search" placeholder="请输入型号、参数查找元器件" /> | ||
346 | - <span class="input-group-btn"> | ||
347 | - <button class="btn" onclick="search()"> | ||
348 | - <img src="__CDN__/assets/store/images/search_icon_top.png" alt="user"> | ||
349 | - 搜索 | ||
350 | - </button> | ||
351 | - </span> | ||
352 | - </div> | ||
353 | - </li> | ||
354 | - </ul> | ||
355 | - </div> | ||
356 | - | 335 | + {include file="public/nav"} |
357 | <!--轮播图--> | 336 | <!--轮播图--> |
358 | <div class="bannerBox"> | 337 | <div class="bannerBox"> |
359 | <div id="banner-container" class="swiper-container"> | 338 | <div id="banner-container" class="swiper-container"> |
application/index/view/helpbuy/index.html
0 → 100644
1 | +<!DOCTYPE html> | ||
2 | +<html lang="zh"> | ||
3 | +{include file="public/head"} | ||
4 | +<style> | ||
5 | + body{ | ||
6 | + background: rgba(249,249,249,1); | ||
7 | + } | ||
8 | + .content{ | ||
9 | + width: 100%; | ||
10 | + font-size: 0; | ||
11 | + background: rgba(249,249,249,1); | ||
12 | + } | ||
13 | + .content .titleImgContent{ | ||
14 | + width: 100%; | ||
15 | + height: 146px; | ||
16 | + } | ||
17 | + .content .titleImgContent img{ | ||
18 | + width: 100%; | ||
19 | + height: 100%; | ||
20 | + } | ||
21 | + | ||
22 | + /*富文本区域样式*/ | ||
23 | + .content .contentBox{ | ||
24 | + width: 100%; | ||
25 | + font-size: 18px; | ||
26 | + font-family: PingFang SC; | ||
27 | + font-weight: 400; | ||
28 | + line-height: 25px; | ||
29 | + color: rgba(91,94,99,1); | ||
30 | + background: rgba(249,249,249,1); | ||
31 | + } | ||
32 | + .content .contentBox .contentMain{ | ||
33 | + width: 1200px; | ||
34 | + /*height: 975px;*/ | ||
35 | + padding: 25px 0 59px 0; | ||
36 | + margin: 0 auto; | ||
37 | + } | ||
38 | + | ||
39 | + /*在线客服按钮样式*/ | ||
40 | + .rightButtons{ | ||
41 | + position: fixed; | ||
42 | + width: 64px; | ||
43 | + height: 65px; | ||
44 | + top: 400px; | ||
45 | + right: 0; | ||
46 | + background: rgba(0,159,142,1); | ||
47 | + } | ||
48 | + .rightButtons a{ | ||
49 | + display: block; | ||
50 | + width: 64px; | ||
51 | + height: 64px; | ||
52 | + text-align: center; | ||
53 | + font-size: 12px; | ||
54 | + font-family: PingFang SC; | ||
55 | + font-weight:500; | ||
56 | + color: rgba(255,255,255,1); | ||
57 | + } | ||
58 | + .rightButtons a img{ | ||
59 | + display: block; | ||
60 | + margin: 10px auto 8px auto; | ||
61 | + } | ||
62 | +</style> | ||
63 | +<body> | ||
64 | +{include file="public/header"} | ||
65 | +<!--主要内容--> | ||
66 | +<div class="content"> | ||
67 | + {include file="public/nav"} | ||
68 | + <!--标题图片--> | ||
69 | + <div class="titleImgContent"> | ||
70 | + <img src="__CDN__/assets/store/images/helpBuyImg.png" alt="img"> | ||
71 | + </div> | ||
72 | + <!--富文本内容--> | ||
73 | + <div class="contentBox"> | ||
74 | + <div class="contentMain"> | ||
75 | + {$helpbuy.content} | ||
76 | + </div> | ||
77 | + </div> | ||
78 | +</div> | ||
79 | + | ||
80 | +<!--右侧功能按钮--> | ||
81 | +<div class="rightButtons"> | ||
82 | + <a href="tencent://message/?uin={$site.service_qq}&Site=baidu.com&Menu=yes"> | ||
83 | + <img src="__CDN__/assets/store/images/onlineService.png" alt="onlineService"> | ||
84 | + 在线客服 | ||
85 | + </a> | ||
86 | +</div> | ||
87 | +{include file="public/footer"} | ||
88 | +</body> | ||
89 | +</html> |
@@ -137,15 +137,15 @@ | @@ -137,15 +137,15 @@ | ||
137 | <img src="__CDN__/assets/store/images/shopping.png" alt="user"> | 137 | <img src="__CDN__/assets/store/images/shopping.png" alt="user"> |
138 | 采购中心 | 138 | 采购中心 |
139 | </a> | 139 | </a> |
140 | - <a href="helpBuy.html" class="btn btn-warning"> | 140 | + <a href="{:url('helpbuy/index')}" class="btn btn-warning"> |
141 | <img src="__CDN__/assets/store/images/order.png" alt="user"> | 141 | <img src="__CDN__/assets/store/images/order.png" alt="user"> |
142 | 帮买服务 | 142 | 帮买服务 |
143 | </a> | 143 | </a> |
144 | - <a href="productMaintenance.html" class="btn btn-warning"> | 144 | + <a href="{:url('maintain/index')}" class="btn btn-warning"> |
145 | <img src="__CDN__/assets/store/images/repair.png" alt="user"> | 145 | <img src="__CDN__/assets/store/images/repair.png" alt="user"> |
146 | 产品维修 | 146 | 产品维修 |
147 | </a> | 147 | </a> |
148 | - <a href="aboutUs.html" class="btn btn-warning"> | 148 | + <a href="{:url('about/index')}" class="btn btn-warning"> |
149 | <img src="__CDN__/assets/store/images/aboutUs.png" alt="user"> | 149 | <img src="__CDN__/assets/store/images/aboutUs.png" alt="user"> |
150 | 关于我们 | 150 | 关于我们 |
151 | </a> | 151 | </a> |
application/index/view/maintain/index.html
0 → 100644
1 | +<!DOCTYPE html> | ||
2 | +<html lang="zh"> | ||
3 | +{include file="public/head"} | ||
4 | +<style> | ||
5 | + li{ | ||
6 | + list-style-type: none; | ||
7 | + } | ||
8 | + .content{ | ||
9 | + width: 100%; | ||
10 | + font-size: 0; | ||
11 | + background: rgba(249,249,249,1); | ||
12 | + } | ||
13 | + .content .titleImgContent{ | ||
14 | + width: 100%; | ||
15 | + height: 146px; | ||
16 | + } | ||
17 | + .content .titleImgContent img{ | ||
18 | + width: 100%; | ||
19 | + height: 100%; | ||
20 | + } | ||
21 | + | ||
22 | + /*主要内容区域样式*/ | ||
23 | + .content .contentBox{ | ||
24 | + width: 100%; | ||
25 | + font-size: 18px; | ||
26 | + font-family: PingFang SC; | ||
27 | + font-weight: 400; | ||
28 | + line-height: 25px; | ||
29 | + color: rgba(91,94,99,1); | ||
30 | + background: rgba(249,249,249,1); | ||
31 | + margin-bottom: 193px; | ||
32 | + } | ||
33 | + .content .contentBox .workerShowBox{ | ||
34 | + width: 100%; | ||
35 | + height: 306px; | ||
36 | + margin-bottom: 12px; | ||
37 | + background: rgba(255,255,255,1); | ||
38 | + } | ||
39 | + .content .contentBox .workerShowBox .workerShowMain{ | ||
40 | + width: 1200px; | ||
41 | + height: 306px; | ||
42 | + margin: 0 auto; | ||
43 | + } | ||
44 | + .content .contentBox .workerShowBox .workerShowMain .workerShowList{ | ||
45 | + position: relative; | ||
46 | + height: 234px; | ||
47 | + } | ||
48 | + .content .contentBox .workerShowBox .workerShowMain .workerShowList .swiper-container{ | ||
49 | + width: 1100px; | ||
50 | + height: 100%; | ||
51 | + } | ||
52 | + .content .contentBox .workerShowBox .workerShowMain .workerShowList .swiper-container .swiper-wrapper .swiper-slide{ | ||
53 | + padding: 0 5px; | ||
54 | + } | ||
55 | + .content .contentBox .workerShowBox .workerShowMain .workerShowList .swiper-container .swiper-wrapper .swiper-slide p{ | ||
56 | + width: 100%; | ||
57 | + height: 20px; | ||
58 | + line-height: 20px; | ||
59 | + text-align: center; | ||
60 | + margin-top: 10px; | ||
61 | + font-size: 14px; | ||
62 | + font-family: PingFang SC; | ||
63 | + font-weight: 500; | ||
64 | + color: rgba(6,18,30,1); | ||
65 | + } | ||
66 | + .swiper-scrollbar{ | ||
67 | + height: 0!important; | ||
68 | + } | ||
69 | + .swiper-button-next, .swiper-button-prev{ | ||
70 | + width: 26px; | ||
71 | + height: 26px; | ||
72 | + background-size: 26px; | ||
73 | + -webkit-background-size: 26px; | ||
74 | + } | ||
75 | + .swiper-button-next, .swiper-container-rtl .swiper-button-prev{ | ||
76 | + background-image: url("images/right_icon.png"); | ||
77 | + } | ||
78 | + .swiper-button-prev, .swiper-container-rtl .swiper-button-next{ | ||
79 | + background-image: url("images/left_icon.png"); | ||
80 | + } | ||
81 | + | ||
82 | + /*title样式*/ | ||
83 | + .titleBox{ | ||
84 | + width: 1200px; | ||
85 | + height: 62px; | ||
86 | + line-height: 62px; | ||
87 | + margin-bottom: 10px; | ||
88 | + } | ||
89 | + .titleBox span:first-child{ | ||
90 | + display: inline-block; | ||
91 | + float: left; | ||
92 | + width: 6px; | ||
93 | + height: 20px; | ||
94 | + margin-top: 21px; | ||
95 | + background: rgba(0,159,142,1); | ||
96 | + border-radius: 2px; | ||
97 | + } | ||
98 | + .titleBox span:last-child{ | ||
99 | + height: 22px; | ||
100 | + line-height: 22px; | ||
101 | + float: left; | ||
102 | + margin-top: 20px; | ||
103 | + padding-left: 12px; | ||
104 | + font-size: 16px; | ||
105 | + font-family: PingFang SC; | ||
106 | + font-weight: 500; | ||
107 | + color: rgba(0,159,142,1); | ||
108 | + } | ||
109 | + | ||
110 | + /*维修师傅详细介绍样式*/ | ||
111 | + .content .contentBox .personalShowBox{ | ||
112 | + width: 100%; | ||
113 | + background: rgba(255,255,255,1); | ||
114 | + } | ||
115 | + .content .contentBox .personalShowBox .personalShowMain{ | ||
116 | + width: 1200px; | ||
117 | + min-height: 100px; | ||
118 | + margin: 0 auto; | ||
119 | + padding-bottom: 50px; | ||
120 | + } | ||
121 | + | ||
122 | + /*在线客服按钮样式*/ | ||
123 | + .rightButtons{ | ||
124 | + position: fixed; | ||
125 | + width: 64px; | ||
126 | + top: 400px; | ||
127 | + right: 0; | ||
128 | + background: rgba(0,159,142,1); | ||
129 | + } | ||
130 | + .rightButtons span{ | ||
131 | + display: block; | ||
132 | + width: 48px; | ||
133 | + margin: 0 auto; | ||
134 | + border-top: 1px solid rgba(255,255,255,1); | ||
135 | + } | ||
136 | + .rightButtons a{ | ||
137 | + display: block; | ||
138 | + width: 64px; | ||
139 | + height: 64px; | ||
140 | + text-align: center; | ||
141 | + font-size: 12px; | ||
142 | + font-family: PingFang SC; | ||
143 | + font-weight:500; | ||
144 | + color: rgba(255,255,255,1); | ||
145 | + } | ||
146 | + .rightButtons a img{ | ||
147 | + display: block; | ||
148 | + margin: 10px auto 8px auto; | ||
149 | + } | ||
150 | + | ||
151 | + /*我要维修弹窗样式*/ | ||
152 | + .modal-dialog{ | ||
153 | + width: 423px; | ||
154 | + height: 709px; | ||
155 | + } | ||
156 | + .modal-header{ | ||
157 | + height: 80px; | ||
158 | + border: 0; | ||
159 | + } | ||
160 | + .modal-body{ | ||
161 | + padding: 10px 24px 20px 24px; | ||
162 | + max-height: none; | ||
163 | + } | ||
164 | + .modal-title{ | ||
165 | + height: 50px; | ||
166 | + line-height: 50px; | ||
167 | + text-align: center; | ||
168 | + font-size: 20px; | ||
169 | + font-family: PingFang SC; | ||
170 | + font-weight: 500; | ||
171 | + color: rgba(6,18,30,1); | ||
172 | + } | ||
173 | + form{ | ||
174 | + font-size: 14px; | ||
175 | + font-family: PingFang SC; | ||
176 | + font-weight: 500; | ||
177 | + color:rgba(61,68,77,1); | ||
178 | + } | ||
179 | + form .form-group{ | ||
180 | + width: 100%; | ||
181 | + height: 54px; | ||
182 | + margin: 0 0 12px 0; | ||
183 | + } | ||
184 | + form .desBox{ | ||
185 | + height: 124px; | ||
186 | + } | ||
187 | + form .form-group .form-control{ | ||
188 | + width: 100%; | ||
189 | + height: 100%; | ||
190 | + box-shadow: none; | ||
191 | + } | ||
192 | + form .form-group:nth-child(3),form .form-group:nth-child(5){ | ||
193 | + position: relative; | ||
194 | + } | ||
195 | + form .form-group:nth-child(3) span{ | ||
196 | + display: inline-block; | ||
197 | + position: absolute; | ||
198 | + top: 15px; | ||
199 | + right: 20px; | ||
200 | + font-size: 16px; | ||
201 | + font-family: PingFang SC; | ||
202 | + font-weight: 400; | ||
203 | + color: rgba(140,145,152,1); | ||
204 | + } | ||
205 | + form .form-group:nth-child(5) span{ | ||
206 | + display: inline-block; | ||
207 | + position: absolute; | ||
208 | + top: 35px; | ||
209 | + left: 12px; | ||
210 | + font-size: 16px; | ||
211 | + font-family: PingFang SC; | ||
212 | + font-weight: 400; | ||
213 | + line-height: 22px; | ||
214 | + color: rgba(140,145,152,1); | ||
215 | + } | ||
216 | + form p{ | ||
217 | + height: 22px; | ||
218 | + padding-left: 9px; | ||
219 | + font-size: 16px; | ||
220 | + font-family: PingFang SC; | ||
221 | + font-weight: 500; | ||
222 | + line-height: 22px; | ||
223 | + color: rgba(6,18,30,1); | ||
224 | + } | ||
225 | + form button{ | ||
226 | + width: 100%; | ||
227 | + height: 51px; | ||
228 | + border: 0!important; | ||
229 | + background: rgba(0,159,142,1)!important; | ||
230 | + border-radius: 2px!important; | ||
231 | + font-size: 18px!important; | ||
232 | + font-family: PingFang SC; | ||
233 | + font-weight: 400!important; | ||
234 | + color: rgba(255,255,255,1)!important; | ||
235 | + } | ||
236 | + form .imgBox{ | ||
237 | + margin-bottom: 20px; | ||
238 | + } | ||
239 | + | ||
240 | + /*placeholser样式*/ | ||
241 | + :-moz-placeholder { /* Mozilla Firefox 4 to 18 */ | ||
242 | + font-size: 16px!important; | ||
243 | + font-family: PingFang SC!important; | ||
244 | + font-weight: 500!important; | ||
245 | + color: rgba(6,18,30,1)!important; | ||
246 | + } | ||
247 | + ::-moz-placeholder { /* Mozilla Firefox 19+ */ | ||
248 | + font-size: 16px!important; | ||
249 | + font-family: PingFang SC!important; | ||
250 | + font-weight: 500!important; | ||
251 | + color: rgba(6,18,30,1)!important; | ||
252 | + } | ||
253 | + input:-ms-input-placeholder, textarea:-ms-input-placeholder { | ||
254 | + font-size: 16px!important; | ||
255 | + font-family: PingFang SC!important; | ||
256 | + font-weight: 500!important; | ||
257 | + color: rgba(6,18,30,1)!important; | ||
258 | + } | ||
259 | + input::-webkit-input-placeholder, textarea::-webkit-input-placeholder { | ||
260 | + font-size: 16px!important; | ||
261 | + font-family: PingFang SC!important; | ||
262 | + font-weight: 500!important; | ||
263 | + color: rgba(6,18,30,1)!important; | ||
264 | + } | ||
265 | + /*上传图片重置*/ | ||
266 | + .imgFileUploade{ | ||
267 | + padding: 0 0 16px 0; | ||
268 | + } | ||
269 | +</style> | ||
270 | +<body> | ||
271 | +{include file="public/header"} | ||
272 | +<!--主要内容--> | ||
273 | +<div class="content"> | ||
274 | + {include file="public/nav"} | ||
275 | + <!--标题图片--> | ||
276 | + <div class="titleImgContent"> | ||
277 | + <img src="__CDN__/assets/store/images/repairImg.png" alt="img"> | ||
278 | + </div> | ||
279 | + <!--主要内容--> | ||
280 | + <div class="contentBox"> | ||
281 | + <!--维修师傅展示--> | ||
282 | + <div class="workerShowBox"> | ||
283 | + <div class="workerShowMain"> | ||
284 | + <div class="titleBox"> | ||
285 | + <span></span> | ||
286 | + <span>维修师傅简介</span> | ||
287 | + </div> | ||
288 | + <div class="workerShowList"> | ||
289 | + <div class="swiper-container"> | ||
290 | + <div class="swiper-wrapper"> | ||
291 | + {volist name="maintainer" id="vo"} | ||
292 | + <div class="swiper-slide"> | ||
293 | + <img src="{$vo.thumbnail}" alt="img"> | ||
294 | + <p>{$vo.name}</p> | ||
295 | + </div> | ||
296 | + {/volist} | ||
297 | + </div> | ||
298 | + </div> | ||
299 | + <!-- 如果需要导航按钮 --> | ||
300 | + <div class="swiper-button-prev"></div> | ||
301 | + <div class="swiper-button-next"></div> | ||
302 | + </div> | ||
303 | + </div> | ||
304 | + </div> | ||
305 | + | ||
306 | + <!--维修师傅个人介绍--> | ||
307 | + <div class="personalShowBox"> | ||
308 | + <div class="personalShowMain"> | ||
309 | + <div class="titleBox"> | ||
310 | + <span></span> | ||
311 | + <span>维修服务</span> | ||
312 | + </div> | ||
313 | + <div id="personalShowText"> | ||
314 | + {$maintain.content} | ||
315 | + </div> | ||
316 | + </div> | ||
317 | + </div> | ||
318 | + </div> | ||
319 | +</div> | ||
320 | + | ||
321 | +<!--右侧功能按钮--> | ||
322 | +<div class="rightButtons"> | ||
323 | + <a href="tencent://message/?uin={$site.service_qq}&Site=baidu.com&Menu=yes"> | ||
324 | + <img src="__CDN__/assets/store/images/onlineService.png" alt="onlineService"> | ||
325 | + 在线客服 | ||
326 | + </a> | ||
327 | + <span></span> | ||
328 | + <a href="javascript:void(0);" onclick="showModel()"> | ||
329 | + <img src="__CDN__/assets/store/images/wrench_icon.png" alt="onlineService"> | ||
330 | + 我要维修 | ||
331 | + </a> | ||
332 | +</div> | ||
333 | + | ||
334 | +<!--我要维修模态窗--> | ||
335 | +<div class="modal fade" id="repairInfoModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> | ||
336 | + <div class="modal-dialog"> | ||
337 | + <div class="modal-content"> | ||
338 | + <div class="modal-header"> | ||
339 | + <button type="button" class="close" data-dismiss="modal" aria-hidden="true"> | ||
340 | + <img src="__CDN__/assets/store/images/close_icon.png" alt="close"> | ||
341 | + </button> | ||
342 | + <h4 class="modal-title" id="myModalLabel"> | ||
343 | + 我要维修 | ||
344 | + </h4> | ||
345 | + </div> | ||
346 | + <div class="modal-body"> | ||
347 | + <form> | ||
348 | + <div class="form-group"> | ||
349 | + <input type="text" class="form-control" id="userName" placeholder="姓名"> | ||
350 | + </div> | ||
351 | + <div class="form-group"> | ||
352 | + <input type="text" class="form-control" id="phoneNum" placeholder="手机号"> | ||
353 | + </div> | ||
354 | + <div class="form-group"> | ||
355 | + <select id="address" class="form-control" placeholder="地址"> | ||
356 | + <option>1</option> | ||
357 | + <option>2</option> | ||
358 | + <option>3</option> | ||
359 | + <option>4</option> | ||
360 | + <option>5</option> | ||
361 | + </select> | ||
362 | + <span>选择省/市/区</span> | ||
363 | + </div> | ||
364 | + <div class="form-group"> | ||
365 | + <input type="text" class="form-control" id="addressDetail" placeholder="详细地址"> | ||
366 | + </div> | ||
367 | + <div class="form-group desBox"> | ||
368 | + <textarea class="form-control" id="demandDes" placeholder="需求描述" onfocus="textareaFocus()" onblur="textareaBlur()"></textarea> | ||
369 | + <span id="textareaTips" onclick="textareaTipsClick()">告诉我们如何为你提供帮助</span> | ||
370 | + </div> | ||
371 | + <p>上传图片</p> | ||
372 | + <div class="uploadBox imgBox" style="width: 100%;height: 100px"> | ||
373 | + <!--<img src="images/repairModalImg.png" alt="img">--> | ||
374 | + </div> | ||
375 | + <button type="button" class="btn btn-submit" onclick="sendRepairInfo()">发送</button> | ||
376 | + </form> | ||
377 | + </div> | ||
378 | + </div> | ||
379 | + </div> | ||
380 | +</div> | ||
381 | +{include file="public/footer"} | ||
382 | +<script> | ||
383 | + $(function () { | ||
384 | + getPersonalIntroduction(); | ||
385 | + initSwiper(); | ||
386 | + initUploadImg(); | ||
387 | + }); | ||
388 | + | ||
389 | + //上传图片 | ||
390 | + function initUploadImg() { | ||
391 | + var initUploadImg = new ImgUploadeFiles('.imgBox',function(e){ | ||
392 | + this.init({ | ||
393 | + MAX : 3, //限制个数 | ||
394 | + MH : 5800, //像素限制高度 | ||
395 | + MW : 5900, //像素限制宽度 | ||
396 | + callback : function(arr){ | ||
397 | + console.log(arr) | ||
398 | + } | ||
399 | + }); | ||
400 | + }); | ||
401 | + } | ||
402 | + | ||
403 | + //初始化swiper | ||
404 | + function initSwiper() { | ||
405 | + var mySwiper = new Swiper ('.swiper-container', { | ||
406 | + loop: true, | ||
407 | + slidesPerView: 6, | ||
408 | + // 如果需要分页器 | ||
409 | + // pagination: '.swiper-pagination', | ||
410 | + // 如果需要前进后退按钮 | ||
411 | + nextButton: '.swiper-button-next', | ||
412 | + prevButton: '.swiper-button-prev', | ||
413 | + // 如果需要滚动条 | ||
414 | + // scrollbar: '.swiper-scrollbar', | ||
415 | + }) | ||
416 | + } | ||
417 | + | ||
418 | + //我要维修 | ||
419 | + function showModel() { | ||
420 | + $('#repairInfoModal').modal(); | ||
421 | + } | ||
422 | + | ||
423 | + //发送维修信息 | ||
424 | + function sendRepairInfo() { | ||
425 | + | ||
426 | + } | ||
427 | + | ||
428 | + //文本域获得焦点 | ||
429 | + function textareaFocus() { | ||
430 | + $('#textareaTips').hide(); | ||
431 | + } | ||
432 | + | ||
433 | + //文本域失去焦点 | ||
434 | + function textareaBlur() { | ||
435 | + if($('#demandDes').val() == ''){ | ||
436 | + $('#textareaTips').show(); | ||
437 | + } | ||
438 | + } | ||
439 | + | ||
440 | + //文本域提示点击 | ||
441 | + function textareaTipsClick() { | ||
442 | + $('#demandDes').click(); | ||
443 | + } | ||
444 | +</script> | ||
445 | +</body> | ||
446 | +</html> |
@@ -36,43 +36,17 @@ | @@ -36,43 +36,17 @@ | ||
36 | <!--底部小导航--> | 36 | <!--底部小导航--> |
37 | <div class="bottomNav"> | 37 | <div class="bottomNav"> |
38 | <a href="{:url('index/index')}">首页</a> | 38 | <a href="{:url('index/index')}">首页</a> |
39 | - <a href="purchasingCenter.html">采购中心</a> | ||
40 | - <a href="helpBuy.html">帮买服务</a> | ||
41 | - <a href="productMaintenance.html">产品维修</a> | ||
42 | - <a href="aboutUs.html">关于我们</a> | 39 | + <a href="{:url('goods/index')}">采购中心</a> |
40 | + <a href="{:url('helpbuy/index')}">帮买服务</a> | ||
41 | + <a href="{:url('maintain/index')}">产品维修</a> | ||
42 | + <a href="{:url('about/index')}">关于我们</a> | ||
43 | </div> | 43 | </div> |
44 | <!--友链--> | 44 | <!--友链--> |
45 | <div class="friendshipLinks"> | 45 | <div class="friendshipLinks"> |
46 | - <a href="">友情链接:</a> | ||
47 | - <a href="">链接网站名称</a> | ||
48 | - <a href="">链接网站名称</a> | ||
49 | - <a href="">链接网站</a> | ||
50 | - <a href="">链接网站名称</a> | ||
51 | - <a href="">链接网站名称</a> | ||
52 | - <a href="">链接网站</a> | ||
53 | - <a href="">友情链接:</a> | ||
54 | - <a href="">链接网站名称</a> | ||
55 | - <a href="">链接网站名称</a> | ||
56 | - <a href="">链接网站</a> | ||
57 | - <a href="">链接网站名称</a> | ||
58 | - <a href="">链接网站名称</a> | ||
59 | - <a href="">链接网站</a> | ||
60 | - <a href="">链接网站名称</a> | ||
61 | - <a href="">链接网站名称</a> | ||
62 | - <a href="">链接网站</a> | ||
63 | - <a href="">链接网站名称</a> | ||
64 | - <a href="">链接网站名称</a> | ||
65 | - <a href="">链接网站</a> | ||
66 | - <a href="">链接网站名称</a> | ||
67 | - <a href="">链接网站名称</a> | ||
68 | - <a href="">链接网站</a> | ||
69 | - <a href="">链接网站名称</a> | ||
70 | - <a href="">链接网站名称</a> | ||
71 | - <a href="">链接网站</a> | ||
72 | - <a href="">链接网站名称</a> | ||
73 | - <a href="">链接网站名称</a> | ||
74 | - <a href="">链接网站</a> | ||
75 | - <a href="">友情链接申请QQ:(218908309)</a> | 46 | + <a href="javascript:;">友情链接:</a> |
47 | + {volist name="link" id="vo"} | ||
48 | + <a href="{$vo.href}" target="_blank">{$vo.name}</a> | ||
49 | + {/volist} | ||
76 | </div> | 50 | </div> |
77 | <!--分割线--> | 51 | <!--分割线--> |
78 | <div class="dividingLine"> | 52 | <div class="dividingLine"> |
@@ -80,7 +54,7 @@ | @@ -80,7 +54,7 @@ | ||
80 | </div> | 54 | </div> |
81 | <!--备案信息--> | 55 | <!--备案信息--> |
82 | <div class="recordInfo"> | 56 | <div class="recordInfo"> |
83 | - ©2019 天津百荣科技有限公司 ALL RIGHTS RESERVED 京ICP备17000000号 增值电信业务经营许可证:京AC-255555555 | 57 | + ©2019 天津百荣科技有限公司 ALL RIGHTS RESERVED {$site.beian} |
84 | </div> | 58 | </div> |
85 | </div> | 59 | </div> |
86 | </footer> | 60 | </footer> |
1 | <div class="navBarBox"> | 1 | <div class="navBarBox"> |
2 | <ul> | 2 | <ul> |
3 | - <li><a href="{:url('index/index')}">首页</a></li> | ||
4 | - <li><a href="{:url('goods/index')}">采购中心</a></li> | ||
5 | - <li><a href="">帮买服务</a></li> | ||
6 | - <li><a href="">产品维修</a></li> | ||
7 | - <li><a href="">关于我们</a></li> | 3 | + <li class="{eq name='is_active' value='1'}active{/eq}"><a href="{:url('index/index')}">首页</a></li> |
4 | + <li class="{eq name='is_active' value='2'}active{/eq}"><a href="{:url('goods/index')}">采购中心</a></li> | ||
5 | + <li class="{eq name='is_active' value='3'}active{/eq}"><a href="{:url('helpbuy/index')}">帮买服务</a></li> | ||
6 | + <li class="{eq name='is_active' value='4'}active{/eq}"><a href="{:url('maintain/index')}">产品维修</a></li> | ||
7 | + <li class="{eq name='is_active' value='5'}active{/eq}"><a href="{:url('about/index')}">关于我们</a></li> | ||
8 | {eq name="is_search" value="1"} | 8 | {eq name="is_search" value="1"} |
9 | <!--搜索框--> | 9 | <!--搜索框--> |
10 | <li class="searchBoxLi"> | 10 | <li class="searchBoxLi"> |
-
请 注册 或 登录 后发表评论