作者 lihan

日常渲染

@@ -55,6 +55,7 @@ class EscortController extends HomeBaseController @@ -55,6 +55,7 @@ class EscortController extends HomeBaseController
55 echo json_encode(['msg' => '请填写出行人微信号', 'code' => 40000]); 55 echo json_encode(['msg' => '请填写出行人微信号', 'code' => 40000]);
56 exit(); 56 exit();
57 } 57 }
  58 + $post['sex'] = $request->param('sex');
58 $post['user_id'] = $userId; 59 $post['user_id'] = $userId;
59 if (Db::name('escort')->insert($post)) { 60 if (Db::name('escort')->insert($post)) {
60 echo json_encode(['msg' => '添加成功', 'data' => ['id' => Db::name('escort')->getLastInsID()], 'code' => 20000]); 61 echo json_encode(['msg' => '添加成功', 'data' => ['id' => Db::name('escort')->getLastInsID()], 'code' => 20000]);
@@ -68,8 +69,7 @@ class EscortController extends HomeBaseController @@ -68,8 +69,7 @@ class EscortController extends HomeBaseController
68 exit(); 69 exit();
69 } 70 }
70 } else { 71 } else {
71 - echo json_encode(['msg' => '非法操作', 'code' => 40000]);  
72 - exit(); 72 + return $this->fetch(':add');
73 } 73 }
74 } 74 }
75 75
@@ -110,6 +110,7 @@ class EscortController extends HomeBaseController @@ -110,6 +110,7 @@ class EscortController extends HomeBaseController
110 echo json_encode(['msg' => '请填写出行人微信号', 'code' => 40000]); 110 echo json_encode(['msg' => '请填写出行人微信号', 'code' => 40000]);
111 exit(); 111 exit();
112 } 112 }
  113 + $post['sex'] = $request->param('sex');
113 if (Db::name('escort')->update($post)) { 114 if (Db::name('escort')->update($post)) {
114 echo json_encode(['msg' => '编辑成功', 'code' => 20000]); 115 echo json_encode(['msg' => '编辑成功', 'code' => 20000]);
115 exit(); 116 exit();
@@ -122,8 +123,10 @@ class EscortController extends HomeBaseController @@ -122,8 +123,10 @@ class EscortController extends HomeBaseController
122 exit(); 123 exit();
123 } 124 }
124 } else { 125 } else {
125 - echo json_encode(['msg' => '非法操作', 'code' => 40000]);  
126 - exit(); 126 + $id = $request->param('id');
  127 + return $this->fetch(':edit', [
  128 + 'info' => Db::name('escort')->where(['id' => $id])->find()
  129 + ]);
127 } 130 }
128 } 131 }
129 132
@@ -175,8 +178,8 @@ class EscortController extends HomeBaseController @@ -175,8 +178,8 @@ class EscortController extends HomeBaseController
175 { 178 {
176 $request = request(); 179 $request = request();
177 $userId = session('user.id'); 180 $userId = session('user.id');
  181 + $data = Db::name('escort')->field('id,name,tel,identity')->where(['user_id' => $userId])->select()->toArray();
178 if ($request->isPost()) { 182 if ($request->isPost()) {
179 - $data = Db::name('escort')->field('id,name,tel,identity')->where(['user_id' => $userId])->select()->toArray();  
180 if (!empty($data)) { 183 if (!empty($data)) {
181 echo json_encode(['data' => $data, 'code' => 20000]); 184 echo json_encode(['data' => $data, 'code' => 20000]);
182 exit(); 185 exit();
@@ -185,8 +188,9 @@ class EscortController extends HomeBaseController @@ -185,8 +188,9 @@ class EscortController extends HomeBaseController
185 exit(); 188 exit();
186 } 189 }
187 } else { 190 } else {
188 - echo json_encode(['msg' => '非法操作', 'code' => 40000]);  
189 - exit(); 191 + return $this->fetch(':_list', [
  192 + 'data' => $data
  193 + ]);
190 } 194 }
191 } 195 }
192 196
@@ -104,9 +104,11 @@ class NewsController extends HomeBaseController @@ -104,9 +104,11 @@ class NewsController extends HomeBaseController
104 if ($request->isPost()) { 104 if ($request->isPost()) {
105 if (!empty(session('user.id'))) { 105 if (!empty(session('user.id'))) {
106 $id = $request->param('id'); 106 $id = $request->param('id');
107 - if (Db::name('collect_news')->where(['post_id' => $id])->count()) {  
108 - echo json_encode(['msg' => '您已收藏过啦', 'code' => 40000]);  
109 - exit(); 107 + if (Db::name('collect_news')->where(['post_id' => $id, 'user_id' => session('user.id')])->count()) {
  108 + if (Db::name('collect_news')->where(['post_id' => $id, 'user_id' => session('user.id')])->delete()) {
  109 + echo json_encode(['msg' => '取消收藏', 'code' => 20000]);
  110 + exit();
  111 + }
110 } else { 112 } else {
111 $data = [ 113 $data = [
112 'user_id' => session('user.id'), 114 'user_id' => session('user.id'),
@@ -127,4 +129,9 @@ class NewsController extends HomeBaseController @@ -127,4 +129,9 @@ class NewsController extends HomeBaseController
127 } 129 }
128 } 130 }
129 131
  132 + public function aboutUs()
  133 + {
  134 + return $this->fetch(':about_us');
  135 + }
  136 +
130 } 137 }
@@ -21,7 +21,6 @@ class CenterController extends HomeBaseController @@ -21,7 +21,6 @@ class CenterController extends HomeBaseController
21 21
22 function _initialize() 22 function _initialize()
23 { 23 {
24 -  
25 if (empty(session('user.id'))) { 24 if (empty(session('user.id'))) {
26 echo json_encode(['msg' => '登陆失败', 'code' => 40001]); 25 echo json_encode(['msg' => '登陆失败', 'code' => 40001]);
27 exit(); 26 exit();
@@ -49,13 +49,13 @@ @@ -49,13 +49,13 @@
49 </div> 49 </div>
50 </div> 50 </div>
51 <div style="margin-top: 1.02rem"> 51 <div style="margin-top: 1.02rem">
52 -<!--图片-->  
53 -<volist name="data.activity" id="vo">  
54 -<div class="center_mian" style="margin-bottom: 10px" data-target="{:url('activity/Activity/detail',['id'=>$vo['id']])}">  
55 - <div class="picture" id="picture">  
56 - <img src="{$vo.thumb}" alt="" />  
57 - </div>  
58 - <div class="qing"> 52 + <!--图片-->
  53 + <volist name="data.activity" id="vo">
  54 + <div class="center_mian" style="margin-bottom: 10px" data-target="{:url('activity/Activity/detail',['id'=>$vo['id']])}">
  55 + <div class="picture" id="picture">
  56 + <img src="{$vo.thumb}" alt="" />
  57 + </div>
  58 + <div class="qing">
59 <span class="qing_out qing_out_box"> 59 <span class="qing_out qing_out_box">
60 <span class="run"> 60 <span class="run">
61 {$vo.name} 61 {$vo.name}
@@ -64,7 +64,7 @@ @@ -64,7 +64,7 @@
64 <div class="act acts"> 64 <div class="act acts">
65 <!--<i class="iconfont icon-calendar"></i>--> 65 <!--<i class="iconfont icon-calendar"></i>-->
66 <!--<span class="txt">--> 66 <!--<span class="txt">-->
67 - <!--2018.08.13--> 67 + <!--2018.08.13-->
68 <!--</span>--> 68 <!--</span>-->
69 </div> 69 </div>
70 <div class="act actlist"> 70 <div class="act actlist">
@@ -75,9 +75,9 @@ @@ -75,9 +75,9 @@
75 </div> 75 </div>
76 </div> 76 </div>
77 </span> 77 </span>
78 - </div>  
79 -</div>  
80 -</volist> 78 + </div>
  79 + </div>
  80 + </volist>
81 </div> 81 </div>
82 <!----> 82 <!---->
83 <div class="confirm_cancel" > 83 <div class="confirm_cancel" >
@@ -49,7 +49,7 @@ @@ -49,7 +49,7 @@
49 <span class="run"> 49 <span class="run">
50 {$vo.post_title} 50 {$vo.post_title}
51 </span> 51 </span>
52 - <div class="year" id="year"> 52 + <div class="year" id="year" data-id="{$vo.id}">
53 <div class="act"> 53 <div class="act">
54 <i class="iconfont icon-wuxing"></i> 54 <i class="iconfont icon-wuxing"></i>
55 <span class="txt"> 55 <span class="txt">
@@ -90,6 +90,20 @@ @@ -90,6 +90,20 @@
90 }else{ 90 }else{
91 $(this).find('.iconfont').attr("class", "iconfont icon-wuxing"); 91 $(this).find('.iconfont').attr("class", "iconfont icon-wuxing");
92 } 92 }
  93 + $.ajax({
  94 + url:"{:url('news/News/collect')}",
  95 + data:{
  96 + id:$(this).attr('data-id')
  97 + },
  98 + type:"POST",
  99 + dataType:"JSON",
  100 +
  101 + success:function (data) {
  102 + console.log(data);
  103 + }
  104 + })
  105 +
  106 +
93 }); 107 });
94 $('.center_mian').click(function(){ 108 $('.center_mian').click(function(){
95 window.location.href = $(this).attr('data-target'); 109 window.location.href = $(this).attr('data-target');
  1 +
  2 +<!DOCTYPE html>
  3 +<html>
  4 +
  5 +<head>
  6 + <meta charset="UTF-8">
  7 + <title>同行人管理</title>
  8 + <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
  9 + <link rel="stylesheet" type="text/css" href="__TMPL__/static/assets/css/weui.min.css" />
  10 + <link rel="stylesheet" type="text/css" href="__TMPL__/static/assets/css/swiper-3.4.2.min.css" />
  11 + <link rel="stylesheet" type="text/css" href="http://at.alicdn.com/t/font_773803_k1lcewwscuf.css" />
  12 + <script type="text/javascript" src="__TMPL__/static/assets/font/iconfont.js"></script>
  13 + <script type="text/javascript" src="__TMPL__/static/js/base.js"></script>
  14 + <link rel="stylesheet" href="__TMPL__/static/css/peerManagement.css" />
  15 + <style>
  16 + .weui-picker__group {
  17 + font-size: 0.3rem;
  18 + }
  19 + a{
  20 + color: #000;
  21 + }
  22 + </style>
  23 +</head>
  24 +
  25 +<body>
  26 +
  27 +<ul class="people">
  28 + <volist name="data" id="vo">
  29 + <li class="peopleList">
  30 + <div class="guo">
  31 + <div class="gli">
  32 + <div class="xin">
  33 + <span class="guoxin">{$vo.name}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{$vo.tel}</span>
  34 + <span>身份证:{$vo.identity}</span>
  35 + </div>
  36 + </div>
  37 + <div class="bian">
  38 + <div class="bianji">
  39 + <a href="{:url('Escort/edit',['id'=>$vo['id']])}">
  40 + <i class="iconfont icon-bianji"></i>编辑
  41 + </a>
  42 + </div>
  43 + <div class="delete" data-id="{$vo.id}">
  44 + <i class="iconfont icon-shanchu"></i>删除
  45 + </div>
  46 + </div>
  47 + </div>
  48 + </li>
  49 + </volist>
  50 +</ul>
  51 +</div>
  52 +<a href="{:url('escort/Escort/add')}">
  53 + <div class="tianjia ok">
  54 + 添加出行人
  55 + </div>
  56 +</a>
  57 +<script type="text/javascript" src="__TMPL__/static/assets/js/jquery-2.1.0.js"></script>
  58 +<script type="text/javascript" src="__TMPL__/static/assets/js/swiper-3.4.2.min.js"></script>
  59 +<script type="text/javascript" src="__TMPL__/static/assets/js/weui.js"></script>
  60 +<script type="text/javascript" src="__TMPL__/static/index.js"></script>
  61 +<script>
  62 +</script>
  63 +</body>
  64 +</html>
  65 +<script>
  66 + $(".delete").click(function(){
  67 + $(this).parents(".peopleList").remove();
  68 + $.ajax({
  69 + url:"{:url('Escort/del')}",
  70 + data:{
  71 + id:$(this).attr('data-id')
  72 + },
  73 + type:"POST",
  74 + dataType:"JSON",
  75 + })
  76 + })
  77 +</script>
  1 +
  2 +<!DOCTYPE html>
  3 +<html>
  4 +
  5 +<head>
  6 + <meta charset="UTF-8">
  7 + <title>添加同行人</title>
  8 + <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
  9 + <script type="text/javascript" src="__TMPL__/static/js/base.js"></script>
  10 + <link rel="stylesheet" type="text/css" href="__TMPL__/static/assets/css/weui.min.css" />
  11 + <link rel="stylesheet" type="text/css" href="__TMPL__/static/assets/css/swiper-3.4.2.min.css" />
  12 + <link rel="stylesheet" type="text/css" href="http://at.alicdn.com/t/font_773803_3se1rq7vwl5.css" />
  13 + <script type="text/javascript" src="__TMPL__/static/assets/font/iconfont.js">
  14 + </script>
  15 + <link rel="stylesheet" href="__TMPL__/static/css/common.css" />
  16 + <link rel="stylesheet" href="__TMPL__/static/css/addlPartner.css" />
  17 +</head>
  18 +<body>
  19 +<ul class="list">
  20 + <li>
  21 + <span class="real">真实姓名</span>
  22 + <input class="add name" placeholder="请填写真实姓名" />
  23 + </li>
  24 + <li class=''>
  25 + <span class="real">性别</span>
  26 + <div class="sexs">
  27 + <div class="circle_left circles" data-sex="1">
  28 + <img src="__TMPL__/static/images/circle1.png" alt="" />
  29 + <div class="woman"></div>
  30 + </div>
  31 + <div class="circle_right circles" data-sex="0">
  32 + <img src="__TMPL__/static/images/circle.png" alt="" />
  33 + <div class="man"></div>
  34 + </div>
  35 + </div>
  36 +
  37 + </li>
  38 + <li>
  39 + <span class="real">手机号</span>
  40 +
  41 + <input type="text" placeholder="请填写手机号码" class="add tel" />
  42 +
  43 + </li>
  44 + <li>
  45 + <span class="real">微信号码</span>
  46 + <input type="text" placeholder="请填写微信号码" class="add weixin" />
  47 + </li>
  48 + <li>
  49 + <span class="real">身份证号</span>
  50 + <input type="text" placeholder="请填写身份证号" class="add zfzid" />
  51 + </li>
  52 +</ul>
  53 +<!--====底部=====-->
  54 +
  55 +<footer class="foot ok">
  56 + 保存
  57 +</footer>
  58 +
  59 +<div id="toast" style='display: none;'>
  60 + <div class="weui-mask_transparent"></div>
  61 + <div class="weui-toast">
  62 + <!--<i class="weui-icon-success-no-circle weui-icon_toast"></i>-->
  63 + <p class="weui-toast__content">已完成</p>
  64 + </div>
  65 +</div>
  66 +</body>
  67 +<script type="text/javascript" src="__TMPL__/static/assets/js/jquery-2.1.0.js"></script>
  68 +<script type="text/javascript" src="__TMPL__/static/assets/js/common.js"></script>
  69 +<script type='text/javascript' src='__TMPL__/static/assets/js/Augly_Verification.js'></script>
  70 +<script>
  71 + var sex=1;
  72 + $('.circles').click(function () {
  73 + sex = $(this).attr('data-sex');
  74 + });
  75 +
  76 + $(function() {
  77 + $('.ok').click(function() {
  78 + if($('.name').val() == '') {
  79 + toast('请填入您的姓名');
  80 + } else if($('.tel').val() == '') {
  81 + toast('请输入电话号码');
  82 + } else if(!AuglyTest_phone.test($('.tel').val())) {
  83 + toast('电话号码格式不正确');
  84 + } else if($('.weixin').val() == '') {
  85 + toast('请输入微信号码');
  86 + } else if($('.zfzid').val() == '') {
  87 + toast('请输入身份证号');
  88 + } else if(!AuglyTest_ID.test($('.zfzid').val())) {
  89 + toast('身份证号输入不正确');
  90 + } else {
  91 + $.ajax({
  92 + url:"{:url('Escort/add')}",
  93 + data:{
  94 + name:$('.name').val(),
  95 + tel:$('.tel').val(),
  96 + identity:$('.zfzid').val(),
  97 + wechat:$('.weixin').val(),
  98 + sex:sex
  99 + },
  100 + type:"POST",
  101 + dataType:"JSON",
  102 +
  103 + success: function () {
  104 + window.location.href="{:url('Escort/_list')}";
  105 + }
  106 + })
  107 + }
  108 + })
  109 + var $abs = $('.sexs .circle_left div.circle_iput');
  110 + $('.circle_left').click(function(){
  111 + $(this).find('.circle_black').css('background','#656565');
  112 + $(this).find('.circle_black').css('opacity','1');
  113 + $('.circle_right').find('.circle_black').css('background','#fff');
  114 + $('.circle_right').find('.circle_black').css('opacity','0');
  115 +
  116 + });
  117 + $('.circle_right').click(function(){
  118 + $(this).find('.circle_black').css('background','#656565');
  119 + $(this).find('.circle_black').css('opacity','1');
  120 + $('.circle_left').find('.circle_black').css('background','#fff');
  121 + $('.circle_left').find('.circle_black').css('opacity','0');
  122 +
  123 + });
  124 +
  125 + $('.check').click(function(){
  126 + $(this).addClass('active').siblings().removeClass('active')
  127 + })
  128 + $('.circles img').click(function(event) {
  129 + $(this).attr("src", "/themes/simpleboot3/static/images/circle1.png");
  130 + $(this).parents('.circles').siblings().find('img').attr("src", "/themes/simpleboot3/static/images/circle.png");
  131 + });
  132 + })
  133 +</script>
  134 +
  135 +</html>
  1 +
  2 +<!DOCTYPE html>
  3 +<html>
  4 +
  5 +<head>
  6 + <meta charset="UTF-8">
  7 + <title>编辑同行人</title>
  8 + <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
  9 + <script type="text/javascript" src="__TMPL__/static/js/base.js"></script>
  10 + <link rel="stylesheet" type="text/css" href="__TMPL__/static/assets/css/weui.min.css" />
  11 + <link rel="stylesheet" type="text/css" href="__TMPL__/static/assets/css/swiper-3.4.2.min.css" />
  12 + <link rel="stylesheet" type="text/css" href="http://at.alicdn.com/t/font_773803_3se1rq7vwl5.css" />
  13 + <script type="text/javascript" src="__TMPL__/static/assets/font/iconfont.js">
  14 + </script>
  15 + <link rel="stylesheet" href="__TMPL__/static/css/common.css" />
  16 + <link rel="stylesheet" href="__TMPL__/static/css/addlPartner.css" />
  17 +</head>
  18 +<body>
  19 +<ul class="list">
  20 + <li>
  21 + <span class="real">真实姓名</span>
  22 + <input value="{$info.name}" class="add name" placeholder="请填写真实姓名" />
  23 + </li>
  24 + <li class=''>
  25 + <span class="real">性别</span>
  26 + <if condition="$info['sex'] eq '1'">
  27 + <div class="sexs">
  28 + <div class="circle_left circles" data-sex="1">
  29 + <img src="__TMPL__/static/images/circle1.png" alt="" />
  30 + <div class="woman"></div>
  31 + </div>
  32 + <div class="circle_right circles" data-sex="0">
  33 + <img src="__TMPL__/static/images/circle.png" alt="" />
  34 + <div class="man"></div>
  35 + </div>
  36 + </div>
  37 + <else/>
  38 + <div class="sexs">
  39 + <div class="circle_left circles" data-sex="1">
  40 + <img src="__TMPL__/static/images/circle.png" alt="" />
  41 + <div class="woman"></div>
  42 + </div>
  43 + <div class="circle_right circles" data-sex="0">
  44 + <img src="__TMPL__/static/images/circle1.png" alt="" />
  45 + <div class="man"></div>
  46 + </div>
  47 + </div>
  48 + </if>
  49 +
  50 + </li>
  51 + <li>
  52 + <span class="real">手机号</span>
  53 +
  54 + <input value="{$info.tel}" type="text" placeholder="请填写手机号码" class="add tel" />
  55 +
  56 + </li>
  57 + <li>
  58 + <span class="real">微信号码</span>
  59 + <input value="{$info.wechat}" type="text" placeholder="请填写微信号码" class="add weixin" />
  60 + </li>
  61 + <li>
  62 + <span class="real">身份证号</span>
  63 + <input value="{$info.identity}" type="text" placeholder="请填写身份证号" class="add zfzid" />
  64 + </li>
  65 +</ul>
  66 +<!--====底部=====-->
  67 +
  68 +<footer class="foot ok">
  69 + 保存
  70 +</footer>
  71 +
  72 +<div id="toast" style='display: none;'>
  73 + <div class="weui-mask_transparent"></div>
  74 + <div class="weui-toast">
  75 + <!--<i class="weui-icon-success-no-circle weui-icon_toast"></i>-->
  76 + <p class="weui-toast__content">已完成</p>
  77 + </div>
  78 +</div>
  79 +</body>
  80 +<script type="text/javascript" src="__TMPL__/static/assets/js/jquery-2.1.0.js"></script>
  81 +<script type="text/javascript" src="__TMPL__/static/assets/js/common.js"></script>
  82 +<script type='text/javascript' src='__TMPL__/static/assets/js/Augly_Verification.js'></script>
  83 +<script>
  84 + var sex='{$info.sex}';
  85 + $(".circles").click(function () {
  86 + sex=$(this).attr('data-sex');
  87 + })
  88 + $(function() {
  89 + $('.ok').click(function() {
  90 + if ($('.name').val() == '') {
  91 + toast('请填入您的姓名');
  92 + } else if ($('.tel').val() == '') {
  93 + toast('请输入电话号码');
  94 + } else if (!AuglyTest_phone.test($('.tel').val())) {
  95 + toast('电话号码格式不正确');
  96 + } else if ($('.weixin').val() == '') {
  97 + toast('请输入微信号码');
  98 + } else if ($('.zfzid').val() == '') {
  99 + toast('请输入身份证号');
  100 + } else if (!AuglyTest_ID.test($('.zfzid').val())) {
  101 + toast('身份证号输入不正确');
  102 + } else {
  103 + $.ajax({
  104 + url: "{:url('Escort/edit')}",
  105 + data: {
  106 + name: $('.name').val(),
  107 + sex: sex,
  108 + tel: $('.tel').val(),
  109 + identity: $('.zfzid').val(),
  110 + wechat: $('.weixin').val(),
  111 + sex: sex,
  112 + id: '{$info.id}'
  113 + },
  114 + type: "POST",
  115 + dataType: "JSON",
  116 +
  117 + success: function () {
  118 + window.location.href = "{:url('Escort/_list')}";
  119 + }
  120 + })
  121 + }
  122 + })
  123 + var $abs = $('.sexs .circle_left div.circle_iput');
  124 + $('.circle_left').click(function(){
  125 + $(this).find('.circle_black').css('background','#656565');
  126 + $(this).find('.circle_black').css('opacity','1');
  127 + $('.circle_right').find('.circle_black').css('background','#fff');
  128 + $('.circle_right').find('.circle_black').css('opacity','0');
  129 +
  130 + });
  131 + $('.circle_right').click(function(){
  132 + $(this).find('.circle_black').css('background','#656565');
  133 + $(this).find('.circle_black').css('opacity','1');
  134 + $('.circle_left').find('.circle_black').css('background','#fff');
  135 + $('.circle_left').find('.circle_black').css('opacity','0');
  136 +
  137 + });
  138 +
  139 + $('.check').click(function(){
  140 + $(this).addClass('active').siblings().removeClass('active')
  141 + })
  142 + $('.circles img').click(function(event) {
  143 + $(this).attr("src", "/themes/simpleboot3/static/images/circle1.png");
  144 + $(this).parents('.circles').siblings().find('img').attr("src", "/themes/simpleboot3/static/images/circle.png");
  145 + });
  146 + })
  147 +</script>
  148 +
  149 +</html>
  1 +
  2 +<!DOCTYPE html>
  3 +<html>
  4 +
  5 +<head>
  6 + <meta charset="UTF-8">
  7 + <title>关于我们</title>
  8 + <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
  9 + <script type="text/javascript" src="__TMPL__/static/js/base.js"></script>
  10 + <link rel="stylesheet" type="text/css" href="__TMPL__/static/assets/css/weui.min.css" />
  11 + <link rel="stylesheet" type="text/css" href="__TMPL__/static/assets/css/swiper-3.4.2.min.css" />
  12 + <link rel="stylesheet" type="text/css" href="http://at.alicdn.com/t/font_773803_6y9erxzbkn2.css" />
  13 + <script type="text/javascript" src="__TMPL__/static/assets/font/iconfont.js">
  14 + </script>
  15 + <link rel="stylesheet" href="__TMPL__/static/css/abouts.css" />
  16 + <style>
  17 + #mooc {
  18 + width: 399px;
  19 + border: 5px solid #ababab;
  20 + -moz-border-radius: 15px; /* Gecko browsers */
  21 + -webkit-border-radius: 15px; /* Webkit browsers */
  22 + border-radius: 15px;
  23 + box-shadow: 2px 2px 10px #ababab;
  24 + margin: 50px auto 0;
  25 + text-align: left; /* 让新闻内容靠左 */
  26 + }
  27 + /* 头部样式 */
  28 + #moocTitle {
  29 + height: 62px;
  30 + overflow: hidden; /* 这个一定要加上,内容超出的部分要隐藏,免得撑高头部 */
  31 + font-size: 26px;
  32 + line-height: 62px;
  33 + padding-left: 30px;
  34 + background-image: -moz-linear-gradient(top, #f05e6f, #c9394a); /* Firefox */
  35 + background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, #f05e6f), color-stop(1, #c9394a)); /* Saf4+, Chrome */
  36 + filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#8fa1ff', endColorstr='#f05e6f', GradientType='0'); /* IE*/
  37 + border: 1px solid ##f05e6f;
  38 + -moz-border-radius: 8px 8px 0 0; /* Gecko browsers */
  39 + -webkit-border-radius: 8px 8px 0 0; /* Webkit browsers */
  40 + border-radius: 8px 8px 0 0;
  41 + color: #fff;
  42 + position: relative;
  43 + }
  44 + #moocTitle a {
  45 + position: absolute;
  46 + right: 10px;
  47 + bottom: 10px;
  48 + display: inline;
  49 + color: #fff;
  50 + font-size: 12px;
  51 + line-height: 24px;
  52 + }
  53 + /* 底部样式 */
  54 + #moocBot {
  55 + width: 399px;
  56 + height: 10px;
  57 + overflow: hidden; /* 这个一定要加上,内容超出的部分要隐藏,免得撑高底部结构 */
  58 + }
  59 + /* 中间样式 */
  60 + #moocBox {
  61 + height: 144px; /*修改高度可以更改显示条数*/
  62 + width: 335px;
  63 + margin-left: 25px;
  64 + margin-top: 10px;
  65 + overflow: hidden; /* 这个一定要加,超出的内容部分要隐藏,免得撑高中间部分 */
  66 + }
  67 + #mooc ul li {
  68 + height: 24px;
  69 + }
  70 + #mooc ul li a {
  71 + width: 180px;
  72 + float: left;
  73 + display: block;
  74 + overflow: hidden;
  75 + text-indent: 15px;
  76 + height: 24px;
  77 + }
  78 + #mooc ul li span {
  79 + float: right;
  80 + color: #999;
  81 + }
  82 + a{color: #000;}
  83 + </style>
  84 +</head>
  85 +
  86 +<body>
  87 +<div class="pic">
  88 + <img src="__TMPL__/static/images/banner.png" alt="" />
  89 +</div>
  90 +<div class="show">
  91 + 平台简介
  92 +</div>
  93 +<div class="text">
  94 + Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean euismod bibendum laoreet. Proin gravida dolor sit amet lacus accumsan et viverra justo commodo. Proin sodales pulvinar tempor. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Nam fermentum, nulla luctus pharetra vulputate, felis tellus mollis orci, sed rhoncus sapien nunc eget.
  95 +</div>
  96 +<div class="phone">
  97 + <span>客服电话:XXXXXX</span>
  98 + <a href="aboutus.html"><span class="yan">留言</span></a>
  99 +</div>
  100 +<!--<div>
  101 + <ul>
  102 + <a href="advisoryDetails.html">
  103 + <li>
  104 + ·跟着萨米去玩户外
  105 + </li>
  106 + </a>
  107 + <a href="advisoryDetails.html">
  108 + <li>
  109 + ·跟着萨米去玩户外
  110 + </li>
  111 + </a>
  112 + <a href="advisoryDetails.html">
  113 + <li>
  114 + ·跟着萨米去玩户外
  115 + </li>
  116 + </a>
  117 + <a href="advisoryDetails.html">
  118 + <li>
  119 + ·跟着萨米去玩户外
  120 + </li>
  121 + </a>
  122 + <a href="advisoryDetails.html">
  123 + <li>
  124 + ·跟着萨米去玩户外
  125 + </li>
  126 + </a>
  127 + </ul>
  128 +</div>-->
  129 +<div id="moocBox">
  130 + <ul>
  131 + <li>
  132 + <a href="advisoryDetails.html">·跟着萨米去玩户外</a></li>
  133 + <li>
  134 + <a href="advisoryDetails.html">·跟着萨米去玩户外</a></li>
  135 + <li>
  136 + <a href="advisoryDetails.html">·跟着萨米去玩户外</a></li>
  137 + <li>
  138 + <a href="advisoryDetails.html">·跟着萨米去玩户外</a></li>
  139 + <li>
  140 + <a href="advisoryDetails.html">·跟着萨米去玩户外</a></li>
  141 + <li>
  142 + <a href="advisoryDetails.html">·跟着萨米去玩户外</a></li>
  143 + <li>
  144 + <a href="advisoryDetails.html">·跟着萨米去玩户外</a></li>
  145 + <li>
  146 + <a href="advisoryDetails.html">·跟着萨米去玩户外</a></li>
  147 + <li>
  148 + <a href="advisoryDetails.html">·跟着萨米去玩户外</a></li>
  149 + </ul>
  150 +</div>
  151 +</body>
  152 +
  153 +</html>
  154 +<script type="text/javascript">
  155 + var area = document.getElementById('moocBox');
  156 + var iliHeight = 24*7; //单行滚动的高度
  157 + var speed = 50; //滚动的速度
  158 + var time;
  159 + var delay = 2000;
  160 + area.scrollTop = 0;
  161 + area.innerHTML += area.innerHTML; //克隆一份一样的内容
  162 + function startScroll() {
  163 + time = setInterval("scrollUp()", speed);
  164 + area.scrollTop++;
  165 + }
  166 +
  167 + function scrollUp() {
  168 + if(area.scrollTop % iliHeight == 0) {
  169 + clearInterval(time);
  170 + setTimeout(startScroll, delay);
  171 + } else {
  172 + area.scrollTop++;
  173 + if(area.scrollTop >= area.scrollHeight / 2) {
  174 + area.scrollTop = 0;
  175 + }
  176 + }
  177 + }
  178 + setTimeout(startScroll, delay)
  179 +</script>
@@ -41,7 +41,7 @@ @@ -41,7 +41,7 @@
41 </div> 41 </div>
42 42
43 </div> 43 </div>
44 - 44 +</a>
45 <a href="myOrder.html"> 45 <a href="myOrder.html">
46 <div class="wallet wall"> 46 <div class="wallet wall">
47 <div class="wallet_main"> 47 <div class="wallet_main">
@@ -142,7 +142,7 @@ @@ -142,7 +142,7 @@
142 </a> 142 </a>
143 143
144 144
145 - <a href="peerManagement.html"> 145 + <a href="{:url('escort/Escort/_list')}">
146 <div class="wallet"> 146 <div class="wallet">
147 <div class="wallet_main"> 147 <div class="wallet_main">
148 <i class="iconfont icon-hezuo"></i> 148 <i class="iconfont icon-hezuo"></i>
@@ -153,7 +153,7 @@ @@ -153,7 +153,7 @@
153 </div> 153 </div>
154 </div> 154 </div>
155 </a> 155 </a>
156 - <a href="abouts.html"> 156 + <a href="{:url('news/News/aboutUs')}">
157 <div class="wallet"> 157 <div class="wallet">
158 <div class="wallet_main"> 158 <div class="wallet_main">
159 159
@@ -196,6 +196,5 @@ @@ -196,6 +196,5 @@
196 </div> 196 </div>
197 197
198 </div> 198 </div>
199 -  
200 </body> 199 </body>
201 </html> 200 </html>