作者 lihan

日常渲染完善细节

@@ -278,7 +278,7 @@ class ActivityController extends HomeBaseController @@ -278,7 +278,7 @@ class ActivityController extends HomeBaseController
278 if ($request->isPost()) { 278 if ($request->isPost()) {
279 $schedule_id = $request->param('schedule_id'); 279 $schedule_id = $request->param('schedule_id');
280 $data = Db::name('activity_schedule') 280 $data = Db::name('activity_schedule')
281 - ->field('id as schedule_id,price,start_time,end_time,real_join_num,addition_join_num,maximum') 281 + ->field('id as schedule_id,price,start_time,end_time,real_join_num,addition_join_num,maximum,deadline')
282 ->where(['id' => $schedule_id]) 282 ->where(['id' => $schedule_id])
283 ->find(); 283 ->find();
284 if (!empty($data)) { 284 if (!empty($data)) {
@@ -286,9 +286,15 @@ class ActivityController extends HomeBaseController @@ -286,9 +286,15 @@ class ActivityController extends HomeBaseController
286 $data['end_time'] = date('Y.m.d', $data['end_time']); 286 $data['end_time'] = date('Y.m.d', $data['end_time']);
287 $data['sales_num'] = $data['real_join_num'] + $data['addition_join_num']; 287 $data['sales_num'] = $data['real_join_num'] + $data['addition_join_num'];
288 $data['residue_num'] = $data['maximum'] - $data['sales_num']; 288 $data['residue_num'] = $data['maximum'] - $data['sales_num'];
  289 + if($data['deadline'] < time()) {
  290 + $data['is_expire'] = 1;
  291 + }else {
  292 + $data['is_expire'] = 0;
  293 + }
289 unset($data['real_join_num']); 294 unset($data['real_join_num']);
290 unset($data['addition_join_num']); 295 unset($data['addition_join_num']);
291 unset($data['maximum']); 296 unset($data['maximum']);
  297 + unset($data['deadline']);
292 echo json_encode(['data' => $data, 'code' => 20000]); 298 echo json_encode(['data' => $data, 'code' => 20000]);
293 exit(); 299 exit();
294 } else { 300 } else {
@@ -301,4 +307,39 @@ class ActivityController extends HomeBaseController @@ -301,4 +307,39 @@ class ActivityController extends HomeBaseController
301 } 307 }
302 } 308 }
303 309
  310 + /**
  311 + * @title 最近15天的活动
  312 + * @description 默认访问接口
  313 + * @author sᴏᴜʟ ᴏғ ᴄɪɴᴅᴇʀ
  314 + * @url /activity/Activity/daysFifteen
  315 + * @method POST
  316 + *
  317 + * @param name:keyword type:char require:1 default:跳楼 other: desc:关键词
  318 + */
  319 + public function daysFifteen()
  320 + {
  321 + $keyword = request()->param('keyword');
  322 + $ac = new ActivityModel;
  323 + $activity = $ac->latestFifteenDaysActivity($keyword);
  324 + $banner = Db::name('slide_item')->field('image,url')->where(['slide_id' => 1])->order('list_order')->select();
  325 + //分类
  326 + $type = Db::name('type')->field('id as t_id,type_name,type_url,type_icon')->order('listorder')->select();
  327 + $result = [
  328 + 'banner' => $banner,
  329 + 'type' => $type,
  330 + 'activity' => $activity,
  331 + 'type_name' => '即将出发',
  332 + 't_id' => 6,
  333 + 'keyword' => request()->param('keyword')
  334 + ];
  335 + if (request()->isPost()) {
  336 + echo json_encode(['data' => $result, 'code' => 20000]);
  337 + exit();
  338 + } else {
  339 + return $this->fetch(':days', [
  340 + 'result' => $result
  341 + ]);
  342 + }
  343 + }
  344 +
304 } 345 }
@@ -20,12 +20,14 @@ class ActivityModel extends Model @@ -20,12 +20,14 @@ class ActivityModel extends Model
20 * @param null $keyword 20 * @param null $keyword
21 * @param null $isNew 21 * @param null $isNew
22 * @param null $isHot 22 * @param null $isHot
  23 + * @param null $orderByHot
  24 + * @param null $theLatest
23 * @return array 25 * @return array
24 * @throws \think\db\exception\DataNotFoundException 26 * @throws \think\db\exception\DataNotFoundException
25 * @throws \think\db\exception\ModelNotFoundException 27 * @throws \think\db\exception\ModelNotFoundException
26 * @throws \think\exception\DbException 28 * @throws \think\exception\DbException
27 */ 29 */
28 - public function activityList($tId = null, $nowTime, $userId, $keyword = null, $isNew = null, $isHot = null) 30 + public function activityList($tId = null, $nowTime, $userId, $keyword = null, $isNew = null, $isHot = null, $orderByHot = null, $theLatest = null)
29 { 31 {
30 $where = []; 32 $where = [];
31 if ($tId != null) { 33 if ($tId != null) {
@@ -55,7 +57,7 @@ class ActivityModel extends Model @@ -55,7 +57,7 @@ class ActivityModel extends Model
55 57
56 public function activityDetail($activityId) 58 public function activityDetail($activityId)
57 { 59 {
58 - $info = Db::name('activity')->field('banner,name,is_down_payment,down_price,content,notice,display_price')->where(['id' => $activityId])->find(); 60 + $info = Db::name('activity')->field('id as activity_id,banner,name,is_down_payment,down_price,content,notice,display_price')->where(['id' => $activityId])->find();
59 if (!empty($info)) { 61 if (!empty($info)) {
60 $arr = explode(',', $info['banner']); 62 $arr = explode(',', $info['banner']);
61 $banner = []; 63 $banner = [];
@@ -190,4 +192,30 @@ class ActivityModel extends Model @@ -190,4 +192,30 @@ class ActivityModel extends Model
190 return $res; 192 return $res;
191 } 193 }
192 194
  195 + public function latestFifteenDaysActivity($keyword = null) {
  196 + if($keyword != null) {
  197 + $map['name'] = ['like', "%$keyword%"];
  198 + }
  199 + $map['start_time'] = ['gt', time()];
  200 + $res = Db::name('activity_schedule')->alias('s')
  201 + ->field('a.id,a.name,a.thumb,s.price,s.maximum,real_join_num,addition_join_num,s.start_time')
  202 + ->join('activity a', 'a.id=s.activity_id')
  203 + ->where($map)
  204 + ->order('start_time ASC')
  205 + ->limit(15)
  206 + ->select()->toArray();
  207 + $model = new ActivityModel;
  208 + foreach ($res as $k => $v) {
  209 + $v['start_time'] = date('Y.m.d', $v['start_time']);
  210 + $v['sales_num'] = $v['real_join_num'] + $v['addition_join_num'];
  211 + $v['residue_num'] = $v['maximum'] - $v['sales_num'];
  212 + unset($v['real_join_num']);
  213 + unset($v['addition_join_num']);
  214 + unset($v['maximum']);
  215 + $v['is_collect'] = $model->isCollect($v['id'], session('user.id'));
  216 + $res[$k] = $v;
  217 + }
  218 + return $res;
  219 + }
  220 +
193 } 221 }
@@ -39,6 +39,7 @@ class NewsController extends HomeBaseController @@ -39,6 +39,7 @@ class NewsController extends HomeBaseController
39 ->where(['c.category_id' => $t_id]) 39 ->where(['c.category_id' => $t_id])
40 ->select(); 40 ->select();
41 $collect = Db::name('collect_news')->field('post_id')->where(['user_id' => session('user.id')])->select(); 41 $collect = Db::name('collect_news')->field('post_id')->where(['user_id' => session('user.id')])->select();
  42 + $temp = [];
42 foreach ($collect as $k => $v) { 43 foreach ($collect as $k => $v) {
43 $temp[$k] = $v['post_id']; 44 $temp[$k] = $v['post_id'];
44 } 45 }
@@ -55,11 +56,19 @@ class NewsController extends HomeBaseController @@ -55,11 +56,19 @@ class NewsController extends HomeBaseController
55 } 56 }
56 $return = [ 57 $return = [
57 'news_type' => $news_type, 58 'news_type' => $news_type,
  59 + 't_id' => $t_id,
58 'type_name' => Db::name('portal_category')->where(['id' => $t_id])->value('name'), 60 'type_name' => Db::name('portal_category')->where(['id' => $t_id])->value('name'),
59 'news_list' => $news_list 61 'news_list' => $news_list
60 ]; 62 ];
  63 + if (request()->isPost()) {
61 echo json_encode(['data' => $return, 'code' => 20000]); 64 echo json_encode(['data' => $return, 'code' => 20000]);
62 exit(); 65 exit();
  66 + } else {
  67 + return $this->fetch(':list', [
  68 + 'data' => $return
  69 + ]);
  70 + }
  71 +
63 } 72 }
64 73
65 /** 74 /**
@@ -134,4 +143,9 @@ class NewsController extends HomeBaseController @@ -134,4 +143,9 @@ class NewsController extends HomeBaseController
134 return $this->fetch(':about_us'); 143 return $this->fetch(':about_us');
135 } 144 }
136 145
  146 + public function message()
  147 + {
  148 + return $this->fetch(':message');
  149 + }
  150 +
137 } 151 }
@@ -58,10 +58,6 @@ class TeamController extends HomeBaseController @@ -58,10 +58,6 @@ class TeamController extends HomeBaseController
58 echo json_encode(['msg' => $result, 'code' => 40000]); 58 echo json_encode(['msg' => $result, 'code' => 40000]);
59 exit(); 59 exit();
60 } else { 60 } else {
61 - $post['address'] = $post['city'] . $post['county'] . $post['street'];  
62 - unset($post['city']);  
63 - unset($post['county']);  
64 - unset($post['street']);  
65 if (Db::name('team_customization')->insert($post)) { 61 if (Db::name('team_customization')->insert($post)) {
66 echo json_encode(['msg' => '提交成功', 'code' => 20000]); 62 echo json_encode(['msg' => '提交成功', 'code' => 20000]);
67 exit(); 63 exit();
@@ -71,7 +67,7 @@ class TeamController extends HomeBaseController @@ -71,7 +67,7 @@ class TeamController extends HomeBaseController
71 } 67 }
72 } 68 }
73 } else { 69 } else {
74 - return $this->fetch(); 70 + return $this->fetch(':team');
75 } 71 }
76 } 72 }
77 73
@@ -168,8 +168,19 @@ class CenterController extends HomeBaseController @@ -168,8 +168,19 @@ class CenterController extends HomeBaseController
168 $field .= ',bonus'; 168 $field .= ',bonus';
169 } 169 }
170 $res = Db::name('charge')->field($field)->where($where)->select()->toArray(); 170 $res = Db::name('charge')->field($field)->where($where)->select()->toArray();
  171 + if (request()->isPost()) {
171 echo json_encode(['data' => $res, 'code' => 20000]); 172 echo json_encode(['data' => $res, 'code' => 20000]);
172 exit(); 173 exit();
  174 + } else {
  175 + if ($is_bonus == 0) {
  176 + $view = ':charge';
  177 + } else {
  178 + $view = ':charge2';
  179 + }
  180 + return $this->fetch($view, [
  181 + 'data' => $res
  182 + ]);
  183 + }
173 } 184 }
174 185
175 /** 186 /**
@@ -35,6 +35,18 @@ @@ -35,6 +35,18 @@
35 'cid' => '\d+', 35 'cid' => '\d+',
36 ), 36 ),
37 ), 37 ),
  38 + '团队报导/:id' =>
  39 + array (
  40 + 0 => 'portal/Article/index?cid=12',
  41 + 1 =>
  42 + array (
  43 + ),
  44 + 2 =>
  45 + array (
  46 + 'id' => '\d+',
  47 + 'cid' => '\d+',
  48 + ),
  49 + ),
38 '户外频道' => 50 '户外频道' =>
39 array ( 51 array (
40 0 => 'portal/List/index?id=10', 52 0 => 'portal/List/index?id=10',
@@ -68,4 +80,15 @@ @@ -68,4 +80,15 @@
68 'id' => '\d+', 80 'id' => '\d+',
69 ), 81 ),
70 ), 82 ),
  83 + '团队报导' =>
  84 + array (
  85 + 0 => 'portal/List/index?id=12',
  86 + 1 =>
  87 + array (
  88 + ),
  89 + 2 =>
  90 + array (
  91 + 'id' => '\d+',
  92 + ),
  93 + ),
71 ); 94 );
@@ -63,30 +63,30 @@ @@ -63,30 +63,30 @@
63 </li> 63 </li>
64 </volist> 64 </volist>
65 <li> 65 <li>
66 - <a href="popular.html"> 66 + <a href="html/popular.html">
67 <div class="li_imgbox"><img src="__TMPL__/static/images/people.png" alt="" /></div> 67 <div class="li_imgbox"><img src="__TMPL__/static/images/people.png" alt="" /></div>
68 <div class="zhou zhou_txt">人气最多</div> 68 <div class="zhou zhou_txt">人气最多</div>
69 </a> 69 </a>
70 </li> 70 </li>
71 <li> 71 <li>
72 - <a href="start.html"> 72 + <a href="{:url('activity/Activity/daysFifteen',['t_id'=>6])}">
73 <div class="li_imgbox"><img src="__TMPL__/static/images/fa.png" alt="" /></div> 73 <div class="li_imgbox"><img src="__TMPL__/static/images/fa.png" alt="" /></div>
74 <div class="zhou zhou_txt">即将出发</div> 74 <div class="zhou zhou_txt">即将出发</div>
75 </a> 75 </a>
76 </li> 76 </li>
77 <li> 77 <li>
78 - <a href="teamorder.html"> 78 + <a href="{:url('team/Team/teamCustomization')}">
79 <div class="li_imgbox"><img src="__TMPL__/static/images/tuan.png" alt="" /></div> 79 <div class="li_imgbox"><img src="__TMPL__/static/images/tuan.png" alt="" /></div>
80 <div class="zhou zhou_txt">团队定制</div> 80 <div class="zhou zhou_txt">团队定制</div>
81 </a> 81 </a>
82 </li> 82 </li>
  83 +
83 <li> 84 <li>
84 - <a href="outdoorChannel.html"> 85 + <a href="{:url('news/News/newsList')}">
85 <div class="li_imgbox"><img src="__TMPL__/static/images/hu.png" alt="" /></div> 86 <div class="li_imgbox"><img src="__TMPL__/static/images/hu.png" alt="" /></div>
86 <div class="zhou zhou_txt">户外频道</div> 87 <div class="zhou zhou_txt">户外频道</div>
87 </a> 88 </a>
88 </li> 89 </li>
89 -  
90 </ul> 90 </ul>
91 </div> 91 </div>
92 <div></div> 92 <div></div>
  1 +
  2 +<!DOCTYPE html>
  3 +<html>
  4 +
  5 +<head>
  6 + <meta charset="UTF-8">
  7 + <title>{$result.type_name}</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_1qg03k1415.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/Peripheral-short-term.css" />
  15 + <style type="text/css">
  16 + .swiper-container {
  17 + height: 3.6rem;
  18 + }
  19 +
  20 + .swiper-container-horizontal>.swiper-pagination-bullets,
  21 + .swiper-pagination-custom,
  22 + .swiper-pagination-fraction {
  23 + left: 44%;
  24 + }
  25 +
  26 + .lis .iconfont {
  27 + color: #999999;
  28 + font-size: 0.5rem;
  29 + }
  30 + .
  31 + .active {
  32 + }
  33 + a:visited {color: #c8c8cd}
  34 + </style>
  35 +</head>
  36 +
  37 +<body>
  38 +<div class="header_out">
  39 + <header>
  40 + <span class="left">
  41 + <i class="iconfont icon-dizhi"></i>
  42 + <span class="area" >天津</span>
  43 + </span>
  44 + <form action="{:url('Activity/daysFifteen')}" method="GET">
  45 + <span class="shu">
  46 + <i class="iconfont icon-sousuo fang"></i>
  47 + <input type="hidden" name="t_id" value="{$result.t_id}">
  48 + <input type="text" name="keyword" value="{$result.keyword}" class="in" placeholder="搜索活动名称" />
  49 + <input type="submit" id="S" style="display: none">
  50 + </span>
  51 + </form>
  52 + <label for="S"><span class="sousuo">搜索</span></label>
  53 + </header>
  54 +</div>
  55 +<div class="list">
  56 + <ul>
  57 + <volist name="result.type" id="vo">
  58 + <li class='activity_li'>
  59 + <a href="{:url('activity/Activity/_list',['t_id'=>$vo['t_id']])}">
  60 + <div class='li_imgbox <if condition="$vo.t_id eq $result.t_id">imgbox_active</if>'><img src="{$vo.type_icon}" alt="" /></div>
  61 + <div class="zhou zhou_txt">{$vo.type_name}</div>
  62 + </a>
  63 + </li>
  64 + </volist>
  65 + <li>
  66 + <a href="html/popular.html">
  67 + <div class="li_imgbox"><img src="__TMPL__/static/images/people.png" alt="" /></div>
  68 + <div class="zhou zhou_txt">人气最多</div>
  69 + </a>
  70 + </li>
  71 + <li>
  72 + <a href="{:url('activity/Activity/daysFifteen',['t_id'=>6])}">
  73 + <div <if condition="$result.t_id eq '6'">class="li_imgbox imgbox_active"<else/>class="li_imgbox"</if>><img src="__TMPL__/static/images/fa.png" alt="" /></div>
  74 + <div class="zhou zhou_txt">即将出发</div>
  75 + </a>
  76 + </li>
  77 + <li>
  78 + <a href="{:url('team/Team/teamCustomization')}">
  79 + <div class="li_imgbox"><img src="__TMPL__/static/images/tuan.png" alt="" /></div>
  80 + <div class="zhou zhou_txt">团队定制</div>
  81 + </a>
  82 + </li>
  83 +
  84 + <li>
  85 + <a href="{:url('news/News/newsList')}">
  86 + <div class="li_imgbox"><img src="__TMPL__/static/images/hu.png" alt="" /></div>
  87 + <div class="zhou zhou_txt">户外频道</div>
  88 + </a>
  89 + </li>
  90 +</ul>
  91 +</div>
  92 +<div></div>
  93 +<div class="zhou1">
  94 + {$result.type_name}
  95 +</div>
  96 +<volist name="result.activity" id="vo">
  97 + <div class="short_line" data-target="{:url('Activity/detail',['id'=>$vo['id']])}">
  98 + <div class="picture">
  99 + <img src="{$vo.thumb}" alt="" />
  100 + </div>
  101 + <div class="qing">
  102 + <div class="qing_out">
  103 + <span class="run">
  104 + {$vo.name}
  105 + </span>
  106 + <div class="year">
  107 + <div class="act act2">
  108 + <i class="iconfont icon-calendar"></i>
  109 + <span class="txt">
  110 + {$vo.start_time}
  111 + </span>
  112 + </div>
  113 + <div class="act act1" data-id="{$vo.id}">
  114 + <i <if condition="$vo.is_collect eq '1'">class='iconfont icon-wuxing'<else/>class='iconfont icon-shoucang'</if>></i>
  115 + <span class="txt">
  116 + 收藏
  117 + </span>
  118 + </div>
  119 + </div>
  120 + </div>
  121 + <div class="mon">
  122 + <span class="jia">
  123 + ¥{$vo.price}
  124 + </span>
  125 + <span class="shou">
  126 + 售{$vo.sales_num} 剩{$vo.residue_num}
  127 + </span>
  128 + </div>
  129 + </div>
  130 + </div>
  131 +</volist>
  132 +<script type="text/javascript" src="__TMPL__/static/assets/js/jquery-2.1.0.js"></script>
  133 +<script type="text/javascript" src="__TMPL__/static/assets/js/swiper-3.4.2.min.js"></script>
  134 +<script type="text/javascript" src="__TMPL__/static/assets/js/weui.js"></script>
  135 +<!--<script type="text/javascript" src="../index.js"></script>-->
  136 +<script>
  137 + var mySwiper = new Swiper('.swiper-container', {
  138 + pagination: '.swiper-pagination',
  139 + autoplay: 1500, //可选选项,自动滑动
  140 + loop: true
  141 + })
  142 +</script>
  143 +</body>
  144 +
  145 +</html>
  146 +<script>
  147 + $('.list li div').click(function(){
  148 + $(this).css('background','#FFEEDA')
  149 + })
  150 + $('.short_line').click(function(){
  151 + window.location.href=$(this).attr('data-target');
  152 + })
  153 + $('.act2').click(function(event){
  154 + event.stopPropagation();
  155 + });
  156 + //五星收藏阻止冒泡
  157 + $('.act1').click(function(event){
  158 + event.stopPropagation();
  159 + if($(this).find('.iconfont').attr('class')=='iconfont icon-wuxing'){
  160 + $(this).find('.iconfont').attr("class", "iconfont icon-shoucang");
  161 + }else{
  162 + $(this).find('.iconfont').attr("class", "iconfont icon-wuxing");
  163 + }
  164 +
  165 + $.ajax({
  166 + url:"{:url('activity/Activity/collectDo')}",
  167 + data:{
  168 + id:$(this).attr('data-id')
  169 + },
  170 + type:"POST",
  171 + dataType:"JSON"
  172 + })
  173 + });
  174 +
  175 +
  176 +</script>
@@ -86,14 +86,11 @@ @@ -86,14 +86,11 @@
86 预定信息 86 预定信息
87 </li> 87 </li>
88 </div> 88 </div>
  89 +
89 <div class="dis"> 90 <div class="dis">
90 - <span class="dingjin">  
91 - 定金:&nbsp;600/总价1190  
92 - </span>  
93 - <span class="yishou">  
94 - 已售,1剩余29  
95 - </span> 91 +
96 </div> 92 </div>
  93 +
97 <div class="newxia2 " id="newxia2"> 94 <div class="newxia2 " id="newxia2">
98 <span class="tao active1" id="tao"> 95 <span class="tao active1" id="tao">
99 套餐详情 96 套餐详情
@@ -113,7 +110,7 @@ @@ -113,7 +110,7 @@
113 </div> 110 </div>
114 </div> 111 </div>
115 <div class="xianshi_two"> 112 <div class="xianshi_two">
116 - <img src="../images/banner.png" alt="" /> 113 + <img src="__TMPL__/static/images/banner.png" alt="" />
117 114
118 </div> 115 </div>
119 <!--选项卡--> 116 <!--选项卡-->
@@ -138,11 +135,27 @@ @@ -138,11 +135,27 @@
138 </volist> 135 </volist>
139 136
140 <!--====底部=====--> 137 <!--====底部=====-->
141 -<a href="orders_submitted.html"> 138 +<a onclick="return confirmOrder()">
142 <footer class="foot ok"> 139 <footer class="foot ok">
143 立即预定 140 立即预定
144 </footer> 141 </footer>
145 </a> 142 </a>
  143 +<script>
  144 + function confirmOrder() {
  145 + var activity_id={$info.activity_id};
  146 + var schedule_id=$("#SID").val();
  147 + var is_expired=$("#EX").val();
  148 + if(schedule_id == '') {
  149 + alert('请先选择批次');
  150 + }else {
  151 + if(is_expired == 1) {
  152 + alert('该活动批次已过期');
  153 + }else {
  154 + window.location.href=''
  155 + }
  156 + }
  157 + }
  158 +</script>
146 <div class='mold_out'> 159 <div class='mold_out'>
147 <div class='mold_center'> 160 <div class='mold_center'>
148 <div class="scroll_out"> 161 <div class="scroll_out">
@@ -150,17 +163,17 @@ @@ -150,17 +163,17 @@
150 <volist name="info.schedule" id="vo"> 163 <volist name="info.schedule" id="vo">
151 <div class="money"> 164 <div class="money">
152 <div class="year_change"> 165 <div class="year_change">
153 - <img src="__TMPL__/static/images/circle.png"/> 166 + <img data-id="{$vo.schedule_id}" src="__TMPL__/static/images/circle.png"/>
154 <span>{$vo.start_time}&nbsp;&nbsp;{$vo.end_time}</span> 167 <span>{$vo.start_time}&nbsp;&nbsp;{$vo.end_time}</span>
155 </div> 168 </div>
156 <div class="price">¥{$vo.price}</div> 169 <div class="price">¥{$vo.price}</div>
157 </div> 170 </div>
158 </volist> 171 </volist>
159 </div> 172 </div>
160 - 173 + <input type="hidden" id="SID" value="">
  174 + <input type="hidden" id="EX" value="1">
161 <button class="bottom_button" value="">确定</button> 175 <button class="bottom_button" value="">确定</button>
162 </div> 176 </div>
163 -  
164 </div> 177 </div>
165 178
166 </div> 179 </div>
@@ -234,20 +247,15 @@ @@ -234,20 +247,15 @@
234 $('.money img').click(function(event) { 247 $('.money img').click(function(event) {
235 $(this).attr("src", "/themes/simpleboot3/static/images/circle1.png"); 248 $(this).attr("src", "/themes/simpleboot3/static/images/circle1.png");
236 $(this).parents('.money').siblings().find('img').attr("src", "/themes/simpleboot3/static/images/circle.png"); 249 $(this).parents('.money').siblings().find('img').attr("src", "/themes/simpleboot3/static/images/circle.png");
  250 + var schedule_id = $(this).attr('data-id');
  251 + $("#SID").val(schedule_id);
237 }); 252 });
238 //点击确定弹框隐藏 253 //点击确定弹框隐藏
239 $('.count').click(function() { 254 $('.count').click(function() {
240 - if($('.mold_out').css('display') == 'block') {  
241 - $('.mold_out').css('display', 'none');  
242 - } else {  
243 $('.mold_out').css('display', 'block'); 255 $('.mold_out').css('display', 'block');
244 - }  
245 256
246 }) 257 })
247 - //点击页面弹框隐藏  
248 - $('body').click(function() {  
249 - $('.mold_out').css('display', 'none');  
250 - }) 258 +
251 $('#change').click(function(event) { 259 $('#change').click(function(event) {
252 event.stopPropagation(); 260 event.stopPropagation();
253 }) 261 })
@@ -262,16 +270,31 @@ @@ -262,16 +270,31 @@
262 } 270 }
263 } 271 }
264 if(num == 0) { 272 if(num == 0) {
  273 + var schedule_id=$("#SID").val();
  274 + if(schedule_id != '') {
265 $('.mold_out').css('display', 'none'); 275 $('.mold_out').css('display', 'none');
266 - } else {  
267 - $('.showcang').html($('.mold_center').find('span').eq(index).html());  
268 - $('.mold_out').css('display', 'none');  
269 - } 276 + $.ajax({
  277 + url:"{:url('activity/Activity/alterSchedule')}",
  278 + data:{
  279 + schedule_id:schedule_id
  280 + },
  281 + type:"POST",
  282 + dataType:"JSON",
270 283
  284 + success: function (data) {
  285 + var text='<span class="dingjin">定金:{$info.down_price}&nbsp;总价'+data.data.price+'</span><span class="yishou">已售,'+data.data.sales_num+'剩余'+data.data.residue_num+' </span>';
  286 + $(".dis").html(text);
  287 + $('.showcang').html(data.data.start_time+'至'+data.data.end_time);
  288 + if(data.data.is_expire == 0) {
  289 + $("#EX").val(0)
  290 + }
  291 + }
  292 + })
  293 + }
  294 + }
271 }) 295 })
272 $('.mold_out').click(function() { 296 $('.mold_out').click(function() {
273 event.stopPropagation(); 297 event.stopPropagation();
274 298
275 }) 299 })
276 - change  
277 </script> 300 </script>
@@ -67,7 +67,7 @@ @@ -67,7 +67,7 @@
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" data-id="{$vo.id}">
71 <i class="iconfont icon-wuxing"></i> 71 <i class="iconfont icon-wuxing"></i>
72 <span class="txt"> 72 <span class="txt">
73 取消收藏 73 取消收藏
@@ -80,19 +80,6 @@ @@ -80,19 +80,6 @@
80 </volist> 80 </volist>
81 </div> 81 </div>
82 <!----> 82 <!---->
83 -<div class="confirm_cancel" >  
84 - <div class="confirm_main">  
85 - <div class="hint">  
86 - 确认取消?  
87 - </div>  
88 - <div class="true">确定取消订单吗?</div>  
89 - <div class="choose">  
90 - <span class="confirm_yes">取消</span>  
91 - <span class="confirm_no">确定</span>  
92 - </div>  
93 - </div>  
94 -</div>  
95 -  
96 83
97 84
98 <script type="text/javascript" src="__TMPL__/static/assets/js/jquery-2.1.0.js"></script> 85 <script type="text/javascript" src="__TMPL__/static/assets/js/jquery-2.1.0.js"></script>
@@ -136,23 +123,6 @@ @@ -136,23 +123,6 @@
136 $('.confirm_cancel').css('display','block'); 123 $('.confirm_cancel').css('display','block');
137 }) 124 })
138 125
139 - //确认取消弹出框  
140 - $('.btnright').click(function() {  
141 - var id = $(this).parents('.good_out').data("id");  
142 - console.log(id);  
143 - $('.confirm_cancel').css('display', 'block');  
144 - $('.confirm_yes').click(function() {  
145 - console.log("点击确定按钮获取整个li的id为:" + id);  
146 - $('.confirm_cancel').css('display', 'none');  
147 - })  
148 - $('.confirm_no').click(function() {  
149 - $('.confirm_cancel').css('display', 'none');  
150 - })  
151 - $('.confirm_main').click(function() {  
152 - event.stopPropagation();  
153 - // $(this).css('display','none');  
154 - })  
155 - })  
156 //阻止按钮的点击冒泡 126 //阻止按钮的点击冒泡
157 $('.btnlist').click(function(event) { 127 $('.btnlist').click(function(event) {
158 event.stopPropagation(); 128 event.stopPropagation();
@@ -177,6 +147,15 @@ @@ -177,6 +147,15 @@
177 } else { 147 } else {
178 $(this).find('.iconfont').attr("class", "iconfont icon-wuxing"); 148 $(this).find('.iconfont').attr("class", "iconfont icon-wuxing");
179 } 149 }
  150 + $.ajax({
  151 + url:"{:url('activity/Activity/collectDo')}",
  152 + data:{
  153 + id:$(this).attr('data-id')
  154 + },
  155 + type:"POST",
  156 + dataType:"JSON"
  157 + })
  158 +
180 }); 159 });
181 $('.center_mian').click(function() { 160 $('.center_mian').click(function() {
182 window.location.href = $(this).attr('data-target'); 161 window.location.href = $(this).attr('data-target');
@@ -95,7 +95,7 @@ @@ -95,7 +95,7 @@
95 </div> 95 </div>
96 <div class="phone"> 96 <div class="phone">
97 <span>客服电话:XXXXXX</span> 97 <span>客服电话:XXXXXX</span>
98 - <a href="aboutus.html"><span class="yan">留言</span></a> 98 + <a href="{:url('news/News/message')}"><span class="yan">留言</span></a>
99 </div> 99 </div>
100 <!--<div> 100 <!--<div>
101 <ul> 101 <ul>
  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_1qg03k1415.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/Outdoor channel.css" />
  15 + <style type="text/css">
  16 + a{color:#000}
  17 + .swiper-container {
  18 + height: 3.6rem;
  19 + }
  20 + .swiper-container-horizontal>.swiper-pagination-bullets,
  21 + .swiper-pagination-custom,
  22 + .swiper-pagination-fraction {
  23 + left: 44%;
  24 + }
  25 + .lis .iconfont{
  26 + color:#999999;
  27 + font-size: 0.5rem;
  28 + }
  29 + .active{
  30 + color:
  31 + }
  32 + </style>
  33 +</head>
  34 +
  35 +<body>
  36 +
  37 +
  38 +<div class="list">
  39 + <ul>
  40 + <volist name="data.news_type" id="vo">
  41 + <li>
  42 + <a href="{:url('News/newsList',['t_id'=>$vo['t_id']])}">
  43 + <div <if condition="$vo['t_id'] eq $data['t_id']">class="li_imgbox imgbox_active"<else/>class="li_imgbox imgbox"</if>><img src="{$vo.thumb}" alt="" /></div>
  44 + <div class="zhou zhou_txt">旅行报导</div>
  45 + </a>
  46 + </li>
  47 + </volist>
  48 + </ul>
  49 +</div>
  50 +<div></div>
  51 +<div class="zhou1">
  52 + {$data.type_name}
  53 +</div>
  54 +<volist name="data.news_list" id="vo">
  55 +<div class="center_mian" data-target="{:url('News/detail',['id'=>$vo['id']])}">
  56 + <div class="picture">
  57 + <img src="{$vo.thumb}" alt="" />
  58 + </div>
  59 + <div class="qing">
  60 + <div class="qing_out">
  61 + <span class="run">
  62 + {$vo.post_title}
  63 + </span>
  64 + <div class="year">
  65 + <div class="act act_show" data-id="{$vo.id}">
  66 + <span class="wu">
  67 + <if condition="$vo['is_collect'] eq '1'">
  68 + <i class="iconfont icon-wuxing"></i>
  69 + <else/>
  70 + <i class="iconfont icon-shoucang"></i>
  71 + </if>
  72 + </span>
  73 + <span class="txt">
  74 + 收藏
  75 + </span>
  76 + </div>
  77 + </div>
  78 +
  79 + </div>
  80 +
  81 + <div class="red">
  82 + <span class="circle">
  83 +
  84 + </span>
  85 + <span class="mon">
  86 + <span class="mon">
  87 + 阅读量{$vo.post_hits}
  88 + </span>
  89 + </span>
  90 + </div>
  91 + </div>
  92 +</div>
  93 +</volist>
  94 +<script type="text/javascript" src="__TMPL__/static/assets/js/jquery-2.1.0.js"></script>
  95 +<script type="text/javascript" src="__TMPL__/static/assets/js/swiper-3.4.2.min.js"></script>
  96 +<script type="text/javascript" src="__TMPL__/static/assets/js/weui.js"></script>
  97 +<!--<script type="text/javascript" src="../index.js"></script>-->
  98 +<script>
  99 + var mySwiper = new Swiper('.swiper-container', {
  100 + pagination: '.swiper-pagination',
  101 + autoplay: 1500,//可选选项,自动滑动
  102 + loop : true
  103 + })
  104 + $('.act_show').click(function(event) {
  105 + event.stopPropagation();
  106 + if($(this).find('.iconfont').attr('class')=='iconfont icon-wuxing'){
  107 + $(this).find('.iconfont').attr("class", "iconfont icon-shoucang");
  108 + }else{
  109 + $(this).find('.iconfont').attr("class", "iconfont icon-wuxing");
  110 + }
  111 + $.ajax({
  112 + url:"{:url('news/News/collect')}",
  113 + data:{
  114 + id:$(this).attr('data-id')
  115 + },
  116 + type:"POST",
  117 + dataType:"JSON",
  118 +
  119 + success:function (data) {
  120 + console.log(data);
  121 + }
  122 + })
  123 + })
  124 + $('.center_mian').click(function(){
  125 + window.location.href=$(this).attr('data-target');
  126 + })
  127 + $('.act_show').click(function(event) {
  128 + event.stopPropagation();
  129 + });
  130 + $('.acte').click(function(event) {
  131 + event.stopPropagation();
  132 + });
  133 + $('.list li div').click(function(){
  134 + $(this).css('background','#FFEEDA')
  135 + })
  136 +</script>
  137 +</body>
  138 +
  139 +</html>
  1 +
  2 +<!DOCTYPE html>
  3 +<html>
  4 +<head>
  5 + <meta charset="UTF-8">
  6 + <title>关于我们</title>
  7 + <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
  8 + <script type="text/javascript" src="__TMPL__/static/js/base.js"></script>
  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_6y9erxzbkn2.css" />
  12 + <script type="text/javascript" src="__TMPL__/static/assets/font/iconfont.js">
  13 + </script>
  14 + <link rel="stylesheet" href="__TMPL__/static/css/aboutus.css" />
  15 +</head>
  16 +<body>
  17 +<div class="pic">
  18 + <img src="__TMPL__/static/images/banner.png" alt="" />
  19 +</div>
  20 +<div class="show">
  21 + 平台简介
  22 +</div>
  23 +<div class="text">
  24 + 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.
  25 +</div>
  26 +<div class="phone">
  27 + <span>客服电话:XXXXXX</span>
  28 + <span class="liu">留言</span>
  29 +</div>
  30 +<div class="ideaout">
  31 + <textarea class="idea" placeholder=" 说说您的想法吧"></textarea>
  32 +</div>
  33 +<div class="dibu ">
  34 + <div class="foot">
  35 + <div class="footer ok">
  36 + 提交
  37 + </div>
  38 + </div>
  39 +</div>
  40 +
  41 +
  42 +</body>
  43 +</html>
@@ -70,20 +70,20 @@ @@ -70,20 +70,20 @@
70 </a> 70 </a>
71 </li> 71 </li>
72 <li> 72 <li>
73 - <a href="html/start.html"> 73 + <a href="{:url('activity/Activity/daysFifteen',['t_id'=>6])}">
74 <div class="li_imgbox"><img src="__TMPL__/static/images/fa.png" alt="" /></div> 74 <div class="li_imgbox"><img src="__TMPL__/static/images/fa.png" alt="" /></div>
75 <div class="zhou zhou_txt">即将出发</div> 75 <div class="zhou zhou_txt">即将出发</div>
76 </a> 76 </a>
77 </li> 77 </li>
78 <li> 78 <li>
79 - <a href="html/teamorder.html"> 79 + <a href="{:url('team/Team/teamCustomization')}">
80 <div class="li_imgbox"><img src="__TMPL__/static/images/tuan.png" alt="" /></div> 80 <div class="li_imgbox"><img src="__TMPL__/static/images/tuan.png" alt="" /></div>
81 <div class="zhou zhou_txt">团队定制</div> 81 <div class="zhou zhou_txt">团队定制</div>
82 </a> 82 </a>
83 </li> 83 </li>
84 84
85 <li> 85 <li>
86 - <a href="html/outdoorChannel.html"> 86 + <a href="{:url('news/News/newsList')}">
87 <div class="li_imgbox"><img src="__TMPL__/static/images/hu.png" alt="" /></div> 87 <div class="li_imgbox"><img src="__TMPL__/static/images/hu.png" alt="" /></div>
88 <div class="zhou zhou_txt">户外频道</div> 88 <div class="zhou zhou_txt">户外频道</div>
89 </a> 89 </a>
@@ -38,17 +38,18 @@ body{ @@ -38,17 +38,18 @@ body{
38 38
39 } 39 }
40 .btn{ 40 .btn{
41 -/*width:40%;*/ 41 + width: 40%;
42 height: 0.88rem; 42 height: 0.88rem;
43 line-height: 0.88rem; 43 line-height: 0.88rem;
44 - padding:0 0.3rem; 44 + padding: 0 0rem;
45 margin: 0.5rem 0 0.3rem 0; 45 margin: 0.5rem 0 0.3rem 0;
46 border: 0.02rem solid #3399FF; 46 border: 0.02rem solid #3399FF;
47 - border-radius:0.05rem ; 47 + border-radius: 0.05rem;
48 background: #fff; 48 background: #fff;
49 margin-bottom: -0.1rem; 49 margin-bottom: -0.1rem;
50 - font-size:0.36rem; 50 + font-size: 0.36rem;
51 color: #333333; 51 color: #333333;
  52 + text-align: center;
52 } 53 }
53 .btns{ 54 .btns{
54 padding: 0.3rem 0.3rem 0 0.3rem; 55 padding: 0.3rem 0.3rem 0 0.3rem;
@@ -39,10 +39,10 @@ html{ background: #fff;} @@ -39,10 +39,10 @@ html{ background: #fff;}
39 39
40 } 40 }
41 .btn{ 41 .btn{
42 -/*width:40%;*/ 42 + width: 40%;
43 height: 0.88rem; 43 height: 0.88rem;
44 line-height: 0.88rem; 44 line-height: 0.88rem;
45 - padding:0 1rem; 45 + padding:0 0rem;
46 margin: 0.5rem 0 0.3rem 0; 46 margin: 0.5rem 0 0.3rem 0;
47 border: 0.02rem solid #3399FF; 47 border: 0.02rem solid #3399FF;
48 border-radius:0.05rem ; 48 border-radius:0.05rem ;
@@ -50,6 +50,7 @@ html{ background: #fff;} @@ -50,6 +50,7 @@ html{ background: #fff;}
50 margin-bottom: -0.1rem; 50 margin-bottom: -0.1rem;
51 font-size:0.36rem; 51 font-size:0.36rem;
52 color: #333333; 52 color: #333333;
  53 + text-align: center;
53 } 54 }
54 .btns{ 55 .btns{
55 padding: 0.3rem 0.3rem 0 0.3rem; 56 padding: 0.3rem 0.3rem 0 0.3rem;
  1 +<!DOCTYPE html>
  2 +<html>
  3 +
  4 +<head>
  5 + <meta charset="UTF-8">
  6 + <title>团队定制</title>
  7 + <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
  8 + <link rel="stylesheet" type="text/css" href="__TMPL__/static/assets/css/weui.min.css" />
  9 +
  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 src="__TMPL__/static/assets/js/citypicker.js" type="text/javascript"></script>
  14 + <script type="text/javascript" src="__TMPL__/static/js/base.js"></script>
  15 + <link rel="stylesheet" href="__TMPL__/static/css/common.css" />
  16 + <link rel="stylesheet" href="__TMPL__/static/css/teamorder.css" />
  17 + <style>
  18 + .weui-picker__group {
  19 + font-size: 0.3rem;
  20 + }
  21 +
  22 + </style>
  23 +</head>
  24 +
  25 +<body>
  26 +<div class="pic">
  27 + <img src="__TMPL__/static/images/banner.png" alt="" />
  28 +</div>
  29 +<ul class="team">
  30 + <li class="teamname">
  31 + <span class="tname">团队名称</span>
  32 + <input type="" name="" id="" placeholder="请填写团队名称" class="name"/>
  33 + </li>
  34 + <li class="people">
  35 + <span class="tpeople">团队人数</span>
  36 + <input type="" name="" id="" placeholder="请填写团队人数" class="number"/>
  37 + </li>
  38 + <li class="data street_out">
  39 + <span class="tpeople peoples">出行日期&nbsp;</span>
  40 + <sapn class="time">
  41 + <input type="" name="" id="" readonly placeholder="年/月/日" class="start"/>&nbsp;<span class="zhi"></span>
  42 + &nbsp;&nbsp;<input type="" name="" readonly id="" onclick="next_time()" placeholder="年/月/日" class="end"/>
  43 + </sapn>
  44 + </li>
  45 + <li class="people ">
  46 + <span class="tpeople ">出发地点</span>
  47 + <input type="" name="" id='citypicker' onclick="citypicker($(this))" placeholder="出发城市" class="street"/>
  48 + <!--<input type="" name="" id="city-picker" placeholder="区" class="street"/>-->
  49 + </li>
  50 + <li class="contact">
  51 + <span class="tcontact streets details">具体街道&nbsp;&nbsp;&nbsp;</span>
  52 + <input type="" name="" id="" placeholder="请输入具体街道" class="contact2 streets_detail "/>
  53 + </li>
  54 + <li class="contact">
  55 + <span class="tcontact">联系人&nbsp;&nbsp;&nbsp;</span>
  56 + <input type="" name="" id="" placeholder="请填写联系人姓名" class="contact2"/>
  57 + </li>
  58 + <li class="contact">
  59 + <span class="tcontact">手机号码</span>
  60 + <input type="" name="" id="" placeholder="请填写手机号码" class="phone"/>
  61 + </li>
  62 + <li class="contact">
  63 + <span class="tcontact">微信号码</span>
  64 + <input type="" name="" id="" placeholder="请填写微信号码" class="weixin"/>
  65 + </li>
  66 +</ul>
  67 +<div class="require">
  68 + 需求描述
  69 +</div>
  70 +<div class="describe">
  71 + <textarea name="" rows="" cols="" class="des"></textarea>
  72 + <span class="limit">限200字以内</span>
  73 +</div>
  74 +<div class="submit">
  75 + <button class="ok">提交</button>
  76 +</div>
  77 +<div id="toast" style='display: none;'>
  78 + <div class="weui-mask_transparent"></div>
  79 + <div class="weui-toast">
  80 + <!--<i class="weui-icon-success-no-circle weui-icon_toast"></i>-->
  81 + <p class="weui-toast__content">已完成</p>
  82 + </div>
  83 +</body>
  84 +</html>
  85 +<script type="text/javascript" src="__TMPL__/static/assets/js/jquery-2.1.0.js"></script>
  86 +<script type="text/javascript" src="__TMPL__/static/assets/js/common.js"></script>
  87 +<script type='text/javascript' src='__TMPL__/static/assets/js/Augly_Verification.js'></script>
  88 +<script type="text/javascript" src="__TMPL__/static/assets/js/myweui.js"></script>
  89 +<script type="text/javascript" src="__TMPL__/static/assets/js/weui.js"></script>
  90 +<script type="text/javascript" src="__TMPL__/static/assets/font/iconfont.js"></script>
  91 +<script>
  92 + $('.ok').click(function(){
  93 + if( $('.name').val()=='' ){
  94 + toast('请输入您的团队名称');
  95 + }else if($('.number').val()==''){
  96 + toast('请输入团队人数');
  97 + }else if($('.start').val()==''||$('.end').val()==''){
  98 + toast('请选择出行日期');
  99 + }else if($('.street').val()==''){
  100 + toast('城市 区 街道');
  101 + }
  102 + else if($('.contact2').val()==''){
  103 + toast('请输入联系人姓名');
  104 + }
  105 + else if($('.phone').val()==''){
  106 + toast('请输入手机号');
  107 + }
  108 +
  109 + else if(!AuglyTest_phone.test($('.phone').val())){
  110 + toast('手机号码格式不正确');
  111 + }
  112 +
  113 + else if($('.weixin').val()==''){
  114 + toast('请输入微信号码');
  115 + }
  116 + else if($('.des').val()==''){
  117 + toast('请输入填写需求描述');
  118 + }
  119 + else{
  120 + $.ajax({
  121 + url:"{:url('team/Team/teamCustomization')}",
  122 + data:{
  123 + team_name:$('.name').val(),
  124 + team_num:$('.number').val(),
  125 + start_time:$('.start').val(),
  126 + end_time:$('.end').val(),
  127 + address:$('.street').val()+$('.details').val(),
  128 + contact:$('.contact2').val(),
  129 + tel:$('.phone').val(),
  130 + wechat:$('.weixin').val(),
  131 + desc:$('.des').val()
  132 + },
  133 + type:"POST",
  134 + dataType:"JSON",
  135 +
  136 + success: function () {
  137 + toast('保存成功');
  138 + }
  139 + })
  140 + }
  141 +
  142 + })
  143 + var start_mon, start_day, end_mon, end_day;
  144 +
  145 + $('.start').click(function(event) {
  146 + var _this = this;
  147 + weui.datePicker({
  148 + start: new Date(),
  149 + end: 2030,
  150 + defaultValue: [new Date().getFullYear(), new Date().getMonth() + 1, new Date().getDate()],
  151 + onConfirm: function(result) {
  152 +
  153 + start_year = result[0].value;
  154 + start_mon = result[1].value;
  155 + start_day = result[2].value;
  156 +
  157 + $('.start').val(start_year+'/'+start_mon+'/'+start_day);
  158 +
  159 + //setTimeout(function(){
  160 + // next_time();
  161 + //},300)
  162 + }
  163 + });
  164 + });
  165 + function next_time(){
  166 + weui.datePicker({
  167 + start: new Date(),
  168 + end: 2030,
  169 + defaultValue: [new Date().getFullYear(), new Date().getMonth() + 1, new Date().getDate()],
  170 + onConfirm: function(result) {
  171 + start_year = result[0].value;
  172 + start_mon = result[1].value;
  173 + start_day = result[2].value;
  174 + $('.end').val(start_year+'/'+start_mon+'/'+start_day);
  175 +
  176 + }
  177 + });
  178 + };
  179 +</script>
  1 +<!DOCTYPE html>
  2 +<html>
  3 +
  4 +<head>
  5 + <meta charset="UTF-8">
  6 + <title>我要充值</title>
  7 + <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
  8 + <script type="text/javascript" src="__TMPL__/static/js/base.js"></script>
  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_6y9erxzbkn2.css" />
  12 + <script type="text/javascript" src="__TMPL__/static/assets/font/iconfont.js">
  13 + </script>
  14 + <link rel="stylesheet" href="__TMPL__/static/css/myWallet.css" />
  15 +</head>
  16 +
  17 +<body>
  18 +<div class="out">
  19 + <div class="btns">
  20 + <div class="pay">
  21 + 充值套餐
  22 + </div>
  23 + <div class="activie">
  24 + <div class="ordinary">普通充值</div>
  25 + <a href="{:url('Center/charge',['is_bonus'=>1])}">
  26 + <div class="activity">活动专享</div>
  27 + </a>
  28 + </div>
  29 +
  30 + <div class="btnlist">
  31 + <volist name="data" id="vo" key="k">
  32 + <div data-id="{$vo.id}" class="btn <if condition="$k eq '1'">active one</if>">¥{$vo.denomination}</div>
  33 + </volist>
  34 + </div>
  35 + </div>
  36 +
  37 +</div>
  38 +<div class="footer ok">
  39 + 一键充值
  40 +</div>
  41 +</body>
  42 +
  43 +</html>
  44 +<script type="text/javascript" src="__TMPL__/static/assets/js/jquery-2.1.0.js"></script>
  45 +<script type="text/javascript" src="__TMPL__/static/assets/js/swiper-3.4.2.min.js"></script>
  46 +<script type="text/javascript" src="__TMPL__/static/assets/js/weui.js"></script>
  47 +<script>
  48 + $('.btn').click(function(){
  49 + $(this).attr('class','btn active one');
  50 + $(this).siblings().attr('class','btn');
  51 + })
  52 +
  53 +</script>
  1 +<!DOCTYPE html>
  2 +<html>
  3 +
  4 +<head>
  5 + <meta charset="UTF-8">
  6 + <title>我要充值</title>
  7 + <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
  8 + <script type="text/javascript" src="__TMPL__/static/js/base.js"></script>
  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_6y9erxzbkn2.css" />
  12 + <script type="text/javascript" src="__TMPL__/static/assets/font/iconfont.js">
  13 + </script>
  14 + <link rel="stylesheet" href="__TMPL__/static/css/myWallet.css" />
  15 +</head>
  16 +
  17 +<body>
  18 +<div class="out">
  19 + <div class="btns">
  20 + <div class="pay">
  21 + 充值套餐
  22 + </div>
  23 + <div class="activie">
  24 + <a href="{:url('Center/charge')}">
  25 + <div class="activity">普通充值</div>
  26 + </a>
  27 + <div class="ordinary">活动专享</div>
  28 + </div>
  29 +
  30 + <div class="btnlist">
  31 + <volist name="data" id="vo" key="k">
  32 + <div data-id="{$vo.id}" class="btn <if condition="$k eq '1'">active one</if>">¥{$vo.denomination}送{$vo.bonus}</div>
  33 + </volist>
  34 + </div>
  35 +</div>
  36 +
  37 +</div>
  38 +<div class="footer ok">
  39 + 一键充值
  40 +</div>
  41 +</body>
  42 +
  43 +</html>
  44 +<script type="text/javascript" src="__TMPL__/static/assets/js/jquery-2.1.0.js"></script>
  45 +<script type="text/javascript" src="__TMPL__/static/assets/js/swiper-3.4.2.min.js"></script>
  46 +<script type="text/javascript" src="__TMPL__/static/assets/js/weui.js"></script>
  47 +<script>
  48 + $('.btn').click(function(){
  49 + $(this).attr('class','btn active one');
  50 + $(this).siblings().attr('class','btn');
  51 + })
  52 +
  53 +</script>
@@ -35,7 +35,7 @@ @@ -35,7 +35,7 @@
35 </div> 35 </div>
36 </div> 36 </div>
37 <ul class="list"> 37 <ul class="list">
38 - <a href="myWallet.html"> 38 + <a href="{:url('Center/charge')}">
39 <li> 39 <li>
40 <span class="real">我要充值</span> 40 <span class="real">我要充值</span>
41 <i class="iconfont icon-common-jinru-copy"></i> 41 <i class="iconfont icon-common-jinru-copy"></i>