作者 v_bairong06

功能整体调试

正在显示 53 个修改的文件 包含 1418 行增加1151 行删除
@@ -25,15 +25,15 @@ @@ -25,15 +25,15 @@
25 <tr> 25 <tr>
26 <th>活动时间</th> 26 <th>活动时间</th>
27 <td> 27 <td>
28 - <input type="text" class="js-datetime" style="width:400px;" name="post[stime]" id="stime" required placeholder="请输入活动时间" autocomplete="off"/> 28 + <input type="text" class="js-date" style="width:400px;" name="post[stime]" id="stime" required placeholder="请输入活动时间" autocomplete="off"/>
29 <span class="form-required">*</span> 29 <span class="form-required">*</span>
30 </td> 30 </td>
31 </tr> 31 </tr>
32 <tr> 32 <tr>
33 <th>开始时间 - 结束时间</th> 33 <th>开始时间 - 结束时间</th>
34 <td> 34 <td>
35 - <input type="text" name="post[starttime]" class="js-datetime" style="width: 120px;" autocomplete="off">-  
36 - <input type="text" class="js-datetime" name="post[endtime]" style="width: 120px;" autocomplete="off"> 35 + <input type="text" name="post[starttime]" class="js-date" style="width: 120px;" autocomplete="off">-
  36 + <input type="text" class="js-date" name="post[endtime]" style="width: 120px;" autocomplete="off">
37 <span class="form-required">*</span> 37 <span class="form-required">*</span>
38 </td> 38 </td>
39 </tr> 39 </tr>
@@ -26,15 +26,15 @@ @@ -26,15 +26,15 @@
26 <tr> 26 <tr>
27 <th>活动时间</th> 27 <th>活动时间</th>
28 <td> 28 <td>
29 - <input type="text" class="js-datetime" style="width:400px;" name="post[stime]" id="stime" value="{$post.stime}" required placeholder="请输入活动时间" autocomplete="off"/> 29 + <input type="text" class="js-date" style="width:400px;" name="post[stime]" id="stime" value="{$post.stime}" required placeholder="请输入活动时间" autocomplete="off"/>
30 <span class="form-required">*</span> 30 <span class="form-required">*</span>
31 </td> 31 </td>
32 </tr> 32 </tr>
33 <tr> 33 <tr>
34 <th>开始时间 - 结束时间</th> 34 <th>开始时间 - 结束时间</th>
35 <td> 35 <td>
36 - <input type="text" name="post[starttime]" class="js-datetime" value="{$post.starttime}" style="width: 120px;" autocomplete="off">-  
37 - <input type="text" class="js-datetime" name="post[endtime]" value="{$post.endtime}" style="width: 120px;" autocomplete="off"> 36 + <input type="text" name="post[starttime]" class="js-date" value="{$post.starttime}" style="width: 120px;" autocomplete="off">-
  37 + <input type="text" class="js-date" name="post[endtime]" value="{$post.endtime}" style="width: 120px;" autocomplete="off">
38 <span class="form-required">*</span> 38 <span class="form-required">*</span>
39 </td> 39 </td>
40 </tr> 40 </tr>
@@ -15,7 +15,7 @@ class ChanceEventsApplyModel extends CommonModel { @@ -15,7 +15,7 @@ class ChanceEventsApplyModel extends CommonModel {
15 // 自动验证 15 // 自动验证
16 protected $_validate = array( 16 protected $_validate = array(
17 //array(验证字段,验证规则,错误提示,验证条件,附加规则,验证时间) 17 //array(验证字段,验证规则,错误提示,验证条件,附加规则,验证时间)
18 - array('eid', 'number', '活动不能为空', 1, 'regex', CommonModel::MODEL_BOTH), 18 + array('cid', 'number', '活动不能为空', 1, 'regex', CommonModel::MODEL_BOTH),
19 array('user_id', 'number', '用户ID不能为空', 1, 'regex', CommonModel::MODEL_BOTH), 19 array('user_id', 'number', '用户ID不能为空', 1, 'regex', CommonModel::MODEL_BOTH),
20 array('name', 'require', '创作人姓名不能为空', 1, 'regex', CommonModel::MODEL_BOTH), 20 array('name', 'require', '创作人姓名不能为空', 1, 'regex', CommonModel::MODEL_BOTH),
21 array('province', 'require', '所在省不能为空', 1, 'regex', CommonModel::MODEL_BOTH), 21 array('province', 'require', '所在省不能为空', 1, 'regex', CommonModel::MODEL_BOTH),
@@ -44,8 +44,9 @@ class OrderModel extends CommonModel { @@ -44,8 +44,9 @@ class OrderModel extends CommonModel {
44 } 44 }
45 45
46 // 获取订单列表(前台个人中心) 46 // 获取订单列表(前台个人中心)
47 - public function getListByUser($user_id = null,$status = 1) { 47 + public function getListByUser($sheet, $user_id = null,$status = 1) {
48 $where['is_del'] = 0; 48 $where['is_del'] = 0;
  49 + $where['sheet'] = $sheet;
49 if($user_id) { 50 if($user_id) {
50 $where['user_id'] = $user_id; 51 $where['user_id'] = $user_id;
51 } 52 }
@@ -18,7 +18,7 @@ class UserAddressModel extends CommonModel { @@ -18,7 +18,7 @@ class UserAddressModel extends CommonModel {
18 array('user_id', 'number', '用户ID不能为空', 1, 'regex', CommonModel::MODEL_BOTH), 18 array('user_id', 'number', '用户ID不能为空', 1, 'regex', CommonModel::MODEL_BOTH),
19 array('province', 'require', '所在省不能为空', 1, 'regex', CommonModel::MODEL_BOTH), 19 array('province', 'require', '所在省不能为空', 1, 'regex', CommonModel::MODEL_BOTH),
20 array('city', 'require', '城市不能为空', 1, 'regex', CommonModel::MODEL_BOTH), 20 array('city', 'require', '城市不能为空', 1, 'regex', CommonModel::MODEL_BOTH),
21 - array('region', 'require', '地区不能为空', 1, 'regex', CommonModel::MODEL_BOTH), 21 +// array('region', 'require', '地区不能为空', 1, 'regex', CommonModel::MODEL_BOTH),
22 array('address', 'require', '详细地址不能为空', 1, 'regex', CommonModel::MODEL_BOTH), 22 array('address', 'require', '详细地址不能为空', 1, 'regex', CommonModel::MODEL_BOTH),
23 array('realname', 'require', '真实姓名不能为空', 1, 'regex', CommonModel::MODEL_BOTH), 23 array('realname', 'require', '真实姓名不能为空', 1, 'regex', CommonModel::MODEL_BOTH),
24 array('mobile', 'require', '手机号码不能为空', 1, 'regex', CommonModel::MODEL_BOTH), 24 array('mobile', 'require', '手机号码不能为空', 1, 'regex', CommonModel::MODEL_BOTH),
@@ -14,22 +14,42 @@ class ChanceEventsController extends HomebaseController { @@ -14,22 +14,42 @@ class ChanceEventsController extends HomebaseController {
14 14
15 protected $chance_events_model; 15 protected $chance_events_model;
16 protected $chance_events_apply_model; 16 protected $chance_events_apply_model;
  17 + protected $order_model;
17 18
18 function _initialize() { 19 function _initialize() {
19 parent::_initialize(); // TODO: Change the autogenerated stub 20 parent::_initialize(); // TODO: Change the autogenerated stub
20 $this->chance_events_model = D('Common/ChanceEvents'); 21 $this->chance_events_model = D('Common/ChanceEvents');
21 $this->chance_events_apply_model = D('Common/ChanceEventsApply'); 22 $this->chance_events_apply_model = D('Common/ChanceEventsApply');
  23 + $this->order_model = D('Common/Order');
22 } 24 }
23 25
24 // 活动列表 26 // 活动列表
25 public function index() { 27 public function index() {
  28 + $user_id = sp_get_current_userid();
26 $list = $this->chance_events_model->where(array('is_del'=>0))->order(array('stime'=>'DESC'))->select(); 29 $list = $this->chance_events_model->where(array('is_del'=>0))->order(array('stime'=>'DESC'))->select();
27 foreach($list as $k=>$v) { 30 foreach($list as $k=>$v) {
  31 + $is_apply = 0;
  32 + $count = $this->chance_events_apply_model->where(array('cid'=>$v['id']))->count();
  33 + $list[$k]['surplus'] = $v['num'] - $count;
  34 + $applyInfo = $this->chance_events_apply_model->where(array('cid'=>$v['id'],'user_id'=>$user_id))->find();
  35 + if($applyInfo) {
  36 + $is_apply = 1;
  37 + $is_pay = $applyInfo['is_pay'];
  38 +// $order_id = $this->order_model->where(array('sheet_id'=>$v['id'],'user_id'=>$user_id))->getField('id');
  39 + }
28 if(strtotime($v['endtime']) < time()) { 40 if(strtotime($v['endtime']) < time()) {
29 $list[$k]['sign'] = '<a href="javascript:;" class="gx-singup gx-disbale">报名已结束</a>'; 41 $list[$k]['sign'] = '<a href="javascript:;" class="gx-singup gx-disbale">报名已结束</a>';
30 } else { 42 } else {
31 if(strtotime($v['starttime']) < time()) { 43 if(strtotime($v['starttime']) < time()) {
32 - $list[$k]['sign'] = '<a href="#myModal" class="gx-singup" data-toggle="modal"><span>立即报名</span></a>'; 44 + if($is_apply == 1) {
  45 + if($is_pay == 1) {
  46 + $list[$k]['sign'] = '<a href="javascript:;" class="gx-singup"><span>已报名</span></a>';
  47 + } else {
  48 + $list[$k]['sign'] = '<a href="'.U('User/Index/apply_pay',array('order_id'=>$order_id)).'" class="gx-singup"><span>去支付</span></a>';
  49 + }
  50 + } else {
  51 + $list[$k]['sign'] = '<a href="#myModal" class="gx-singup" data-toggle="modal"><span>立即报名</span></a>';
  52 + }
33 } else { 53 } else {
34 $list[$k]['sign'] = '<a href="javascript:;" class="gx-singup gx-disbale">报名未开始</a>'; 54 $list[$k]['sign'] = '<a href="javascript:;" class="gx-singup gx-disbale">报名未开始</a>';
35 } 55 }
@@ -42,13 +62,31 @@ class ChanceEventsController extends HomebaseController { @@ -42,13 +62,31 @@ class ChanceEventsController extends HomebaseController {
42 // 活动详情 62 // 活动详情
43 public function detail() { 63 public function detail() {
44 $id= I("get.id",0,'intval'); 64 $id= I("get.id",0,'intval');
  65 + $user_id = sp_get_current_userid();
45 66
46 $info = $this->chance_events_model->where(array('id'=>$id,'is_del'=>0))->find(); 67 $info = $this->chance_events_model->where(array('id'=>$id,'is_del'=>0))->find();
47 if(strtotime($info['endtime']) < time()) { 68 if(strtotime($info['endtime']) < time()) {
48 $info['sign'] = '<a href="javascript:;" class="gx-singup gx-disbale">报名已结束</a>'; 69 $info['sign'] = '<a href="javascript:;" class="gx-singup gx-disbale">报名已结束</a>';
49 } else { 70 } else {
50 if(strtotime($info['starttime']) < time()) { 71 if(strtotime($info['starttime']) < time()) {
51 - $info['sign'] = '<a href="#myModal" class="gx-singup" data-toggle="modal"><span>立即报名</span></a>'; 72 + $is_apply = 0;
  73 + $count = $this->chance_events_apply_model->where(array('cid'=>$info['id']))->count();
  74 + $info['surplus'] = $info['num'] - $count;
  75 + $applyInfo = $this->chance_events_apply_model->where(array('cid'=>$info['id'],'user_id'=>$user_id))->find();
  76 + if($applyInfo) {
  77 + $is_apply = 1;
  78 + $is_pay = $applyInfo['is_pay'];
  79 + $order_id = $this->order_model->where(array('sheet_id'=>$info['id'],'user_id'=>$user_id))->getField('id');
  80 + }
  81 + if($is_apply == 1) {
  82 + if($is_pay == 1) {
  83 + $info['sign'] = '<a href="javascript:;" class="gx-singup"><span>已报名</span></a>';
  84 + } else {
  85 + $info['sign'] = '<a href="'.U('User/Index/apply_pay',array('order_id'=>$order_id)).'" class="gx-singup"><span>去支付</span></a>';
  86 + }
  87 + } else {
  88 + $info['sign'] = '<a href="#myModal" class="gx-singup" data-toggle="modal"><span>立即报名</span></a>';
  89 + }
52 } else { 90 } else {
53 $info['sign'] = '<a href="javascript:;" class="gx-singup gx-disbale">报名未开始</a>'; 91 $info['sign'] = '<a href="javascript:;" class="gx-singup gx-disbale">报名未开始</a>';
54 } 92 }
@@ -69,15 +107,40 @@ class ChanceEventsController extends HomebaseController { @@ -69,15 +107,40 @@ class ChanceEventsController extends HomebaseController {
69 if(!$user_id) { 107 if(!$user_id) {
70 $this->ajaxReturn(array('status'=>false,'msg'=>'用户未登录')); 108 $this->ajaxReturn(array('status'=>false,'msg'=>'用户未登录'));
71 } 109 }
  110 + M('ChanceEventsApply')->startTrans();
72 $post['ctime'] = $post['utime'] = time(); 111 $post['ctime'] = $post['utime'] = time();
73 if(!$this->chance_events_apply_model->create($post)) { 112 if(!$this->chance_events_apply_model->create($post)) {
  113 + M('ChanceEventsApply')->rollback();
74 $this->ajaxReturn(array('status'=>false,'msg'=>$this->chance_events_apply_model->getError())); 114 $this->ajaxReturn(array('status'=>false,'msg'=>$this->chance_events_apply_model->getError()));
75 } 115 }
76 $id = $this->chance_events_apply_model->add($post); 116 $id = $this->chance_events_apply_model->add($post);
77 if(!$id) { 117 if(!$id) {
  118 + M('ChanceEventsApply')->rollback();
78 $this->ajaxReturn(array('status'=>false,'msg'=>'提交失败')); 119 $this->ajaxReturn(array('status'=>false,'msg'=>'提交失败'));
79 } 120 }
80 - $this->ajaxReturn(array('status'=>true,'msg'=>'提交成功')); 121 + $chanceEventsInfo = $this->chance_events_model->getInfo($post['cid']);
  122 + // 如需支付,添加支付订单
  123 + $order_sn = $info['order_sn'] = sp_get_order_sn();
  124 + $info['user_id'] = $user_id;
  125 + $info['price_count'] = $chanceEventsInfo['price'];
  126 + $info['ctime'] = time();
  127 + $info['sort'] = 2;
  128 + $info['sheet'] = 'ChanceEvents';
  129 + $info['sheet_id'] = $post['cid'];
  130 + if($chanceEventsInfo['is_pay'] == 0) {
  131 + $info['price_count'] = 0;
  132 + $info['status'] = 2;
  133 + }
  134 + $order_id = $this->order_model->add($info);
  135 + if(!$order_id) {
  136 + M('ChanceEventsApply')->rollback();
  137 + $this->ajaxReturn(array('status'=>false,'msg'=>'支付订单生成失败'));
  138 + }
  139 + if($chanceEventsInfo['is_pay'] == 1) {
  140 + $redirect_url = U('User/Index/apply_pay',array('order_id'=>$order_id));
  141 + }
  142 + M('ChanceEventsApply')->commit();
  143 + $this->ajaxReturn(array('status'=>true,'msg'=>'提交成功','data'=>$redirect_url));
81 } else { 144 } else {
82 $this->error('非法操作'); 145 $this->error('非法操作');
83 } 146 }
@@ -35,6 +35,12 @@ class NotifyController extends HomebaseController { @@ -35,6 +35,12 @@ class NotifyController extends HomebaseController {
35 $order_model = D('Common/Order'); 35 $order_model = D('Common/Order');
36 $result = $order_model->where($where)->save($info); 36 $result = $order_model->where($where)->save($info);
37 if($result) { 37 if($result) {
  38 + $orderInfo = $order_model->where($where)->find();
  39 + if($orderInfo['sheet']&&$orderInfo['sheet_id']) {
  40 + $sheet_model = D('Common/'.$orderInfo['sheet'].'Apply');
  41 + $word = substr(lcfirst($orderInfo['sheet']),0,1);
  42 + $sheet_model->where(array($word.'id'=>$orderInfo['sheet_id']))->save(array('is_pay'=>1));
  43 + }
38 // $pay_log_model = D('Common/PayLog'); 44 // $pay_log_model = D('Common/PayLog');
39 } 45 }
40 } 46 }
@@ -14,11 +14,13 @@ class StoryController extends HomebaseController { @@ -14,11 +14,13 @@ class StoryController extends HomebaseController {
14 14
15 protected $story_model; 15 protected $story_model;
16 protected $story_apply_model; 16 protected $story_apply_model;
  17 + protected $story_good_log_model;
17 18
18 function _initialize() { 19 function _initialize() {
19 parent::_initialize(); 20 parent::_initialize();
20 $this->story_model = D("Common/Story"); 21 $this->story_model = D("Common/Story");
21 $this->story_apply_model = D("Common/StoryApply"); 22 $this->story_apply_model = D("Common/StoryApply");
  23 + $this->story_good_log_model = D("Common/StoryGoodLog");
22 } 24 }
23 25
24 // 物恋列表 26 // 物恋列表
@@ -58,12 +60,60 @@ class StoryController extends HomebaseController { @@ -58,12 +60,60 @@ class StoryController extends HomebaseController {
58 ->order("ctime DESC") 60 ->order("ctime DESC")
59 ->select(); 61 ->select();
60 62
  63 + // 判断用户是否点赞
  64 + $user_id = sp_get_current_userid();
  65 + if($user_id) {
  66 + foreach($posts as $k=>$v) {
  67 + $goodLog = $this->story_good_log_model->where(array('user_id'=>$user_id,'sid'=>$v['id']))->count();
  68 + if($goodLog) {
  69 + $posts[$k]['is_good'] = 'active';
  70 + }
  71 + }
  72 + }
  73 +
61 $this->assign("page", $page->show('Admin')); 74 $this->assign("page", $page->show('Admin'));
62 $this->assign("formget",array_merge($_GET,$_POST)); 75 $this->assign("formget",array_merge($_GET,$_POST));
63 $this->assign("posts",$posts); 76 $this->assign("posts",$posts);
64 } 77 }
65 78
66 /** 79 /**
  80 + * 用户点赞
  81 + * @param user_id 用户ID
  82 + * @param id 恋物故事ID
  83 + */
  84 + public function like() {
  85 + if(IS_AJAX) {
  86 + $user_id = $info['user_id'] = sp_get_current_userid();
  87 + $id = $info['sid'] = I('post.id',0,'intval');
  88 + if(!$user_id) {
  89 + $this->ajaxReturn(array('status'=>false,'msg'=>'请先登录'));
  90 + }
  91 + $storyInfo = $this->story_model->getInfo($id);
  92 + if(!$storyInfo) {
  93 + $this->ajaxReturn(array('status'=>false,'msg'=>'恋物故事不存在'));
  94 + }
  95 + $goodLog = $this->story_good_log_model->where(array('user_id'=>$user_id,'sid'=>$id))->count();
  96 + if($goodLog) {
  97 + $this->story_good_log_model->where(array('user_id'=>$user_id,'sid'=>$id))->delete();
  98 + $this->story_model->where(array('id'=>$id))->setDec('good_count');
  99 + } else {
  100 + $info['ctime'] = time();
  101 + if(!$this->story_good_log_model->create($info)) {
  102 + $this->ajaxReturn(array('status'=>false,'msg'=>$this->story_good_log_model->getError()));
  103 + }
  104 + if(!$this->story_good_log_model->add($info)) {
  105 + $this->ajaxReturn(array('status'=>false,'msg'=>'点赞失败'));
  106 + }
  107 + $this->story_model->where(array('id'=>$id))->setInc('good_count');
  108 + }
  109 + $good_count = $this->story_model->where(array('id'=>$id))->getField('good_count');
  110 + $this->ajaxReturn(array('status'=>true,'msg'=>'成功','data'=>$good_count));
  111 + } else {
  112 + $this->error('非法操作');
  113 + }
  114 + }
  115 +
  116 + /**
67 * 物恋投稿提交 117 * 物恋投稿提交
68 * @param post 提交的申请数据 118 * @param post 提交的申请数据
69 * @param user_id 用户ID 119 * @param user_id 用户ID
@@ -14,11 +14,14 @@ class TrainController extends HomebaseController { @@ -14,11 +14,14 @@ class TrainController extends HomebaseController {
14 14
15 protected $train_model; 15 protected $train_model;
16 protected $train_apply_model; 16 protected $train_apply_model;
  17 + protected $order_model;
17 18
18 function _initialize() { 19 function _initialize() {
19 parent::_initialize(); 20 parent::_initialize();
20 $this->train_model = D("Common/Train"); 21 $this->train_model = D("Common/Train");
21 $this->train_apply_model = D("Common/TrainApply"); 22 $this->train_apply_model = D("Common/TrainApply");
  23 + $this->order_model = D("Common/Order");
  24 + $this->assign('time',time());
22 } 25 }
23 26
24 // 工作坊列表 27 // 工作坊列表
@@ -39,6 +42,37 @@ class TrainController extends HomebaseController { @@ -39,6 +42,37 @@ class TrainController extends HomebaseController {
39 $this->display(); 42 $this->display();
40 } 43 }
41 44
  45 + // 详情
  46 + public function detail() {
  47 + $id = I('get.id',0,'intval');
  48 + $user_id = sp_get_current_userid();
  49 + $info = $this->train_model->getInfo($id);
  50 + $info['is_apply'] = 0;
  51 + $count = $this->train_apply_model->where(array('tid'=>$info['id']))->count();
  52 + $info['surplus'] = $info['num'] - $count;
  53 + $applyInfo = $this->train_apply_model->where(array('tid'=>$info['id'],'user_id'=>$user_id))->find();
  54 + if($this->train_apply_model->where(array('tid'=>$info['id'],'user_id'=>$user_id))->count()) {
  55 + $info['is_apply'] = 1;
  56 + $info['is_pay'] = $applyInfo['is_pay'];
  57 + $info['order_id'] = $this->order_model->where(array('sheet_id'=>$info['id'],'user_id'=>$user_id))->getField('id');
  58 + }
  59 + if($info['sort'] == 1) {
  60 + $act['work'] = 'active';
  61 + $act['nav_name'] = '工作坊';
  62 + }
  63 + if($info['sort'] == 2) {
  64 + $act['lesson'] = 'active';
  65 + $act['nav_name'] = '课程培训';
  66 + }
  67 + if($info['sort'] == 3) {
  68 + $act['cultural'] = 'active';
  69 + $act['nav_name'] = '文化之旅';
  70 + }
  71 + $this->assign($act);
  72 + $this->assign($info);
  73 + $this->display();
  74 + }
  75 +
42 /** 76 /**
43 * 体验培训列表处理方法,根据不同条件显示不同的列表 77 * 体验培训列表处理方法,根据不同条件显示不同的列表
44 * @param array $where 查询条件 78 * @param array $where 查询条件
@@ -59,7 +93,7 @@ class TrainController extends HomebaseController { @@ -59,7 +93,7 @@ class TrainController extends HomebaseController {
59 ->order("ctime DESC") 93 ->order("ctime DESC")
60 ->select(); 94 ->select();
61 // 计算剩余报名人数及当前用户是否报名 95 // 计算剩余报名人数及当前用户是否报名
62 - $user_id = 1; 96 + $user_id = sp_get_current_userid();
63 // $user_id = sp_get_current_userid(); 97 // $user_id = sp_get_current_userid();
64 // if(!$user_id) { 98 // if(!$user_id) {
65 // $this->ajaxReturn(array('status'=>false,'msg'=>'用户未登录')); 99 // $this->ajaxReturn(array('status'=>false,'msg'=>'用户未登录'));
@@ -69,8 +103,11 @@ class TrainController extends HomebaseController { @@ -69,8 +103,11 @@ class TrainController extends HomebaseController {
69 $posts[$k]['is_apply'] = 0; 103 $posts[$k]['is_apply'] = 0;
70 $count = $this->train_apply_model->where(array('tid'=>$v['id']))->count(); 104 $count = $this->train_apply_model->where(array('tid'=>$v['id']))->count();
71 $posts[$k]['surplus'] = $v['num'] - $count; 105 $posts[$k]['surplus'] = $v['num'] - $count;
72 - if($this->train_apply_model->where(array('user_id'=>$user_id))->count()) { 106 + $applyInfo = $this->train_apply_model->where(array('tid'=>$v['id'],'user_id'=>$user_id))->find();
  107 + if($applyInfo) {
73 $posts[$k]['is_apply'] = 1; 108 $posts[$k]['is_apply'] = 1;
  109 + $posts[$k]['is_pay'] = $applyInfo['is_pay'];
  110 + $posts[$k]['order_id'] = $this->order_model->where(array('sheet_id'=>$v['id'],'user_id'=>$user_id))->getField('id');
74 } 111 }
75 } 112 }
76 $this->assign("page", $page->show('Admin')); 113 $this->assign("page", $page->show('Admin'));
@@ -86,20 +123,38 @@ class TrainController extends HomebaseController { @@ -86,20 +123,38 @@ class TrainController extends HomebaseController {
86 public function submit() { 123 public function submit() {
87 if(IS_AJAX) { 124 if(IS_AJAX) {
88 $post =I('post.'); 125 $post =I('post.');
89 - $user_id = $post['user_id'] = 1;  
90 -// $user_id = $post['user_id'] = sp_get_current_userid();  
91 -// if(!$user_id) {  
92 -// $this->ajaxReturn(array('status'=>false,'msg'=>'用户未登录'));  
93 -// } 126 +// $user_id = $post['user_id'] = 1;
  127 + $user_id = $post['user_id'] = sp_get_current_userid();
  128 + if(!$user_id) {
  129 + $this->ajaxReturn(array('status'=>false,'msg'=>'用户未登录'));
  130 + }
  131 + M('TrainApply')->startTrans();
94 $post['ctime'] = $post['utime'] = time(); 132 $post['ctime'] = $post['utime'] = time();
95 if(!$this->train_apply_model->create($post)) { 133 if(!$this->train_apply_model->create($post)) {
  134 + M('TrainApply')->rollback();
96 $this->ajaxReturn(array('status'=>false,'msg'=>$this->train_apply_model->getError(),'data'=>$post)); 135 $this->ajaxReturn(array('status'=>false,'msg'=>$this->train_apply_model->getError(),'data'=>$post));
97 } 136 }
98 $train_id = $this->train_apply_model->add($post); 137 $train_id = $this->train_apply_model->add($post);
99 if(!$train_id) { 138 if(!$train_id) {
  139 + M('TrainApply')->rollback();
100 $this->ajaxReturn(array('status'=>false,'msg'=>'提交失败')); 140 $this->ajaxReturn(array('status'=>false,'msg'=>'提交失败'));
101 } 141 }
102 - $this->ajaxReturn(array('status'=>true,'msg'=>'提交成功','data'=>$train_id)); 142 + $trainInfo = $this->train_model->getInfo($post['tid']);
  143 + // 如需支付,添加支付订单
  144 + $order_sn = $info['order_sn'] = sp_get_order_sn();
  145 + $info['user_id'] = $user_id;
  146 + $info['price_count'] = $trainInfo['price'];
  147 + $info['ctime'] = time();
  148 + $info['sort'] = 2;
  149 + $info['sheet'] = 'Train';
  150 + $info['sheet_id'] = $post['tid'];
  151 + $order_id = $this->order_model->add($info);
  152 + if(!$order_id) {
  153 + M('TrainApply')->rollback();
  154 + $this->ajaxReturn(array('status'=>false,'msg'=>'支付订单生成失败'));
  155 + }
  156 + M('TrainApply')->commit();
  157 + $this->ajaxReturn(array('status'=>true,'msg'=>'提交成功','data'=>U('User/Index/apply_pay',array('order_id'=>$order_id))));
103 } else { 158 } else {
104 $this->error('非法操作'); 159 $this->error('非法操作');
105 } 160 }
@@ -19,6 +19,12 @@ class ApplyController extends MemberbaseController { @@ -19,6 +19,12 @@ class ApplyController extends MemberbaseController {
19 19
20 // 我的报名列表 20 // 我的报名列表
21 public function index() { 21 public function index() {
  22 + // 基金会申请
  23 + $foundation = M('Foundation')->where(array('user_id'=>$this->userid))->find();
  24 + $this->assign('foundation',$foundation);
  25 + // 鹿鸣会
  26 + $will = M('WillUserApply')->where(array('user_id'=>$this->userid))->find();
  27 + $this->assign('will',$will);
22 $this->display(':apply'); 28 $this->display(':apply');
23 } 29 }
24 } 30 }
@@ -235,6 +235,7 @@ class CartController extends MemberbaseController { @@ -235,6 +235,7 @@ class CartController extends MemberbaseController {
235 $info['mobile'] = $addressInfo['mobile']; 235 $info['mobile'] = $addressInfo['mobile'];
236 $info['order_sn'] = $detail['order_sn'] = sp_get_order_sn(); 236 $info['order_sn'] = $detail['order_sn'] = sp_get_order_sn();
237 $info['status'] = 1; 237 $info['status'] = 1;
  238 + $info['sheet'] = 'Goods';
238 $info['price_count'] = $count_amount; 239 $info['price_count'] = $count_amount;
239 $info['ctime'] = time(); 240 $info['ctime'] = time();
240 if(!$order_model->create($info)) { 241 if(!$order_model->create($info)) {
@@ -336,11 +337,8 @@ class CartController extends MemberbaseController { @@ -336,11 +337,8 @@ class CartController extends MemberbaseController {
336 } 337 }
337 } 338 }
338 $orderInfo['goods_ids'] = $this->order_detail_model->where(array('order_sn'=>$orderInfo['order_sn']))->getField('goods_id',true); 339 $orderInfo['goods_ids'] = $this->order_detail_model->where(array('order_sn'=>$orderInfo['order_sn']))->getField('goods_id',true);
339 - $data = M('Notify')->where(array('id'=>10))->find();  
340 - var_dump(json_decode($data['data'],true));  
341 $return = $this->wxpay($orderInfo,'订单支付'); 340 $return = $this->wxpay($orderInfo,'订单支付');
342 -// $qrcode = \QRcode::png(urldecode($return['code_url']));  
343 - $this->assign('qrcode',$return['code_url']); 341 + $this->assign('qrcode',base64_encode($return['code_url']));
344 $this->assign('orderInfo',$orderInfo); 342 $this->assign('orderInfo',$orderInfo);
345 $this->display(); 343 $this->display();
346 } else { 344 } else {
@@ -19,6 +19,15 @@ class ContributeController extends MemberbaseController { @@ -19,6 +19,15 @@ class ContributeController extends MemberbaseController {
19 19
20 // 我的投稿列表 20 // 我的投稿列表
21 public function index() { 21 public function index() {
  22 + // 青年文创
  23 + $chance = M('ChanceApply')->where(array('user_id'=>$this->userid,'is_del'=>0))->select();
  24 + // 恋物故事
  25 + $story = M('StoryApply')->where(array('user_id'=>$this->userid,'is_del'=>0))->select();
  26 + // 双创项目
  27 + $willProduce = M('WillProduceApply')->where(array('user_id'=>$this->userid,'is_del'=>0))->select();
  28 + $this->assign('chance',$chance);
  29 + $this->assign('story',$story);
  30 + $this->assign('willProduce',$willProduce);
22 $this->display(':contribute'); 31 $this->display(':contribute');
23 } 32 }
24 } 33 }
@@ -50,6 +50,24 @@ class IndexController extends HomebaseController { @@ -50,6 +50,24 @@ class IndexController extends HomebaseController {
50 $this->assign("smeta",json_decode($post['smeta'],true)); 50 $this->assign("smeta",json_decode($post['smeta'],true));
51 $this->display(":contact"); 51 $this->display(":contact");
52 } 52 }
  53 +
  54 + // 报名支付
  55 + public function apply_pay() {
  56 + $order_id = I('get.order_id',0,'intval');
  57 + $order_model = D('Common/Order');
  58 + $orderInfo = $order_model->getInfo($order_id);
  59 + if(!$orderInfo) {
  60 + $this->error('订单不存在');
  61 + }
  62 + $orderInfo['goods_ids'] = $orderInfo['sheet_id'];
  63 + $sheet_model = D('Common/'.$orderInfo['sheet']);
  64 + $info = $sheet_model->getInfo($orderInfo['sheet_id']);
  65 + $orderInfo['name'] = $info['name'];
  66 + $this->assign('orderInfo',$orderInfo);
  67 + $return = $this->wxpay($orderInfo,'报名支付');
  68 + $this->assign('qrcode',base64_encode($return['code_url']));
  69 + $this->display(':apply_pay');
  70 + }
53 71
54 // 前台ajax 判断用户登录状态接口 72 // 前台ajax 判断用户登录状态接口
55 function is_login(){ 73 function is_login(){
@@ -27,7 +27,7 @@ class OrderController extends MemberbaseController { @@ -27,7 +27,7 @@ class OrderController extends MemberbaseController {
27 //订单列表 27 //订单列表
28 public function index() { 28 public function index() {
29 $status = I('get.status',0,'intval'); 29 $status = I('get.status',0,'intval');
30 - $list = $this->order_model->getListByUser($this->userid,$status); 30 + $list = $this->order_model->getListByUser('Goods',$this->userid,$status);
31 foreach($list as $k=>$v) { 31 foreach($list as $k=>$v) {
32 $list[$k]['goods'] = $this->order_detail_model->getListByOrder($v['order_sn']); 32 $list[$k]['goods'] = $this->order_detail_model->getListByOrder($v['order_sn']);
33 } 33 }
@@ -20,16 +20,16 @@ class ProfileController extends MemberbaseController { @@ -20,16 +20,16 @@ class ProfileController extends MemberbaseController {
20 public function edit_post() { 20 public function edit_post() {
21 if(IS_POST){ 21 if(IS_POST){
22 $_POST['id']=$this->userid; 22 $_POST['id']=$this->userid;
23 - if ($this->users_model->field('id,user_nicename,sex,birthday,user_url,signature')->create()!==false) {  
24 - if ($this->users_model->save()!==false) {  
25 - $this->user=$this->users_model->find($this->userid); 23 + if ($this->user_model->field('id,nickname,email,interest')->create()!==false) {
  24 + if ($this->user_model->save()!==false) {
  25 + $this->user=$this->user_model->find($this->userid);
26 sp_update_current_user($this->user); 26 sp_update_current_user($this->user);
27 - $this->success("保存成功!",U("user/profile/edit")); 27 + $this->ajaxReturn(array('status'=>true,'msg'=>"保存成功!",'data'=>U("user/profile/edit")));
28 } else { 28 } else {
29 - $this->error("保存失败!"); 29 + $this->ajaxReturn(array('status'=>false,'msg'=>"保存失败!"));
30 } 30 }
31 } else { 31 } else {
32 - $this->error($this->users_model->getError()); 32 + $this->ajaxReturn(array('status'=>false,'msg'=>"保存失败!",'data'=>$this->user_model->getError()));
33 } 33 }
34 } 34 }
35 35
@@ -46,52 +46,54 @@ class ProfileController extends MemberbaseController { @@ -46,52 +46,54 @@ class ProfileController extends MemberbaseController {
46 if (IS_POST) { 46 if (IS_POST) {
47 $old_password=I('post.old_password'); 47 $old_password=I('post.old_password');
48 if(empty($old_password)){ 48 if(empty($old_password)){
49 - $this->error("原始密码不能为空!"); 49 + $this->ajaxReturn(array('status'=>false,'msg'=>"原始密码不能为空!"));
50 } 50 }
51 51
52 $password=I('post.password'); 52 $password=I('post.password');
53 if(empty($password)){ 53 if(empty($password)){
54 - $this->error("新密码不能为空!"); 54 + $this->ajaxReturn(array('status'=>false,'msg'=>"新密码不能为空!"));
55 } 55 }
56 56
57 $uid=sp_get_current_userid(); 57 $uid=sp_get_current_userid();
58 - $admin=$this->users_model->where(array('id'=>$uid))->find();  
59 - if(sp_compare_password($old_password, $admin['user_pass'])){ 58 + $admin=$this->user_model->where(array('id'=>$uid))->find();
  59 + if(sp_compare_password($old_password, $admin['password'])){
60 if($password==I('post.repassword')){ 60 if($password==I('post.repassword')){
61 - if(sp_compare_password($password, $admin['user_pass'])){  
62 - $this->error("新密码不能和原始密码相同!"); 61 + if(sp_compare_password($password, $admin['password'])){
  62 + $this->ajaxReturn(array('status'=>false,'msg'=>"新密码不能和原始密码相同!"));
63 }else{ 63 }else{
64 - $data['user_pass']=sp_password($password); 64 + $data['password']=sp_password($password);
65 $data['id']=$uid; 65 $data['id']=$uid;
66 - $r=$this->users_model->save($data); 66 + $r=$this->user_model->save($data);
67 if ($r!==false) { 67 if ($r!==false) {
68 - $this->success("修改成功!"); 68 + $this->ajaxReturn(array('status'=>true,'msg'=>"修改成功!"));
69 } else { 69 } else {
70 - $this->error("修改失败!"); 70 + $this->ajaxReturn(array('status'=>false,'msg'=>"修改失败!"));
71 } 71 }
72 } 72 }
73 }else{ 73 }else{
74 - $this->error("密码输入不一致!"); 74 + $this->ajaxReturn(array('status'=>false,'msg'=>"密码输入不一致!"));
75 } 75 }
76 76
77 }else{ 77 }else{
78 - $this->error("原始密码不正确!"); 78 + $this->ajaxReturn(array('status'=>false,'msg'=>"原始密码不正确!"));
79 } 79 }
80 } 80 }
81 81
82 } 82 }
83 -  
84 - // 第三方账号绑定  
85 - public function bang(){  
86 - $oauth_user_model=M("OauthUser");  
87 - $uid=sp_get_current_userid();  
88 - $oauths=$oauth_user_model->where(array("uid"=>$uid))->select();  
89 - $new_oauths=array();  
90 - foreach ($oauths as $oa){  
91 - $new_oauths[strtolower($oa['from'])]=$oa;  
92 - }  
93 - $this->assign("oauths",$new_oauths);  
94 - $this->display(); 83 +
  84 + // 修改绑定1
  85 + public function old_mobile() {
  86 + $this->display();
  87 + }
  88 +
  89 + // 修改绑定2
  90 + public function new_mobile() {
  91 + $this->display();
  92 + }
  93 +
  94 + // 修改绑定3
  95 + public function ok_mobile() {
  96 + $this->display();
95 } 97 }
96 98
97 // 用户头像编辑 99 // 用户头像编辑
@@ -19,6 +19,23 @@ class SignController extends MemberbaseController { @@ -19,6 +19,23 @@ class SignController extends MemberbaseController {
19 19
20 // 我的报名列表 20 // 我的报名列表
21 public function index() { 21 public function index() {
  22 + $signList = $this->getSign();
  23 + $this->assign('list',$signList);
22 $this->display(':sign'); 24 $this->display(':sign');
23 } 25 }
  26 +
  27 +
  28 + // 获取我的报名信息
  29 + private function getSign() {
  30 + $signList = M('Order')->field(array('id,user_id,sheet,sheet_id,status,price_count,ctime'))->where(array('user_id'=>$this->userid,'sort'=>2))->select();
  31 + foreach($signList as $k=>$v) {
  32 + if($v['sheet'] == 'Train') {
  33 + $signList[$k]['sign'] = M('Train')->field(array('t.name'))->alias('t')->join('__TRAIN_APPLY__ as ta on t.id = ta.tid')->where(array('ta.tid'=>$v['sheet_id']))->find();
  34 + }
  35 + if($v['sheet'] == 'ChanceEvents') {
  36 + $signList[$k]['sign'] = M('ChanceEvents')->field(array('c.name'))->alias('c')->join('__CHANCE_EVENTS_APPLY__ as ca on c.id = ca.cid')->where(array('ca.cid'=>$v['sheet_id']))->find();
  37 + }
  38 + }
  39 + return $signList;
  40 + }
24 } 41 }
@@ -17,11 +17,11 @@ @@ -17,11 +17,11 @@
17 <div class="slt-list lf" id="city"> 17 <div class="slt-list lf" id="city">
18 <div class="slt-container lf"> 18 <div class="slt-container lf">
19 <select name="province" class="mm-select prov"> 19 <select name="province" class="mm-select prov">
20 - <option value="天津"></option> 20 + <option value=""></option>
21 </select> 21 </select>
22 </div> 22 </div>
23 <div class="slt-container lf"> 23 <div class="slt-container lf">
24 - <select name="city" class="mm-select city"><option value="天津"></option></select> 24 + <select name="city" class="mm-select city" disabled="disabled"><option value=""></option></select>
25 </div> 25 </div>
26 </div> 26 </div>
27 <div class="ipt-container lf"> 27 <div class="ipt-container lf">
  1 +<div id="myModal" class="modal fade" aria-hidden="true">
  2 + <div class="modal-dialog">
  3 + <div class="modal-content">
  4 + <div class="modal-header">
  5 + <h4>活动赛事报名表</h4>
  6 + </div>
  7 + <div class="modal-body">
  8 + <form action="" method="post" id="events">
  9 + <input type="hidden" name="cid" value=""/>
  10 + <div class="row">
  11 + <div class="row-title">
  12 + <h5>个人信息</h5>
  13 + </div>
  14 + <div class="row-con cf">
  15 + <div class="ipt-container lf">
  16 + <input type="text" name="name" placeholder="创作人姓名">
  17 + </div>
  18 + <div class="slt-list lf" id="city">
  19 + <div class="slt-container lf">
  20 + <select name="province" class="mm-select prov">
  21 + <option value=""></option>
  22 + </select>
  23 + </div>
  24 + <div class="slt-container lf">
  25 + <select name="city" class="mm-select city" disabled="disabled"><option value=""></option></select>
  26 + </div>
  27 + </div>
  28 + <div class="ipt-container date_time lf" >
  29 + <input id="d11" type="text" name="birth" placeholder="出生年月" onClick="WdatePicker({skin:'twoer'})"/>
  30 + </div>
  31 + <div class="ipt-container lf">
  32 + <input type="text" name="school" placeholder="高校">
  33 + </div>
  34 + <div class="radio-container lf">
  35 + <label>性别:</label>
  36 + <input type="radio" name="sex" value="1" checked>
  37 + <input type="radio" name="sex" value="2">
  38 + </div>
  39 + <div class="ipt-container lf">
  40 + <input type="text" name="major" placeholder="专业">
  41 + </div>
  42 + <div class="ipt-container lf">
  43 + <input type="text" name="mobile" placeholder="手机号">
  44 + </div>
  45 + <div class="slt-container lf">
  46 + <span>年级</span>
  47 + <select name="classes" id="slt_0">
  48 + <option selected>年级</option>
  49 + <option>一年级</option>
  50 + <option>二年级</option>
  51 + <option>三年级</option>
  52 + </select>
  53 + </div>
  54 + <div class="ipt-container lf">
  55 + <input type="text" name="email" placeholder="邮箱">
  56 + </div>
  57 + </div>
  58 + </div>
  59 + <div class="row">
  60 + <div class="row-title">
  61 + <h5>专业经验</h5>
  62 + </div>
  63 + <div class="row-con">
  64 + <div class="textarea-container">
  65 + <textarea name="experience" placeholder="相关专业经验(绘画、设计、广告、文创、营销等)简要描述"></textarea>
  66 + </div>
  67 + <div class="textarea-container">
  68 + <textarea id="txt_1" name="product" placeholder="相关创作或获奖作品简要描述"></textarea>
  69 + <!-- <p>
  70 + <span id="txt_num_1">0</span>/200字
  71 + </p> -->
  72 + </div>
  73 + </div>
  74 + </div>
  75 + <div class="row">
  76 + <div class="sub-container">
  77 + <input type="button" name="submit" value="确认提交">
  78 + </div>
  79 + </div>
  80 + </form>
  81 + </div>
  82 + </div>
  83 + </div>
  84 +</div>
  85 +<script>
  86 + $('#myModal').on('shown.bs.modal', function (event) {
  87 + var button = $(event.relatedTarget);
  88 + var cid = "{$id}";
  89 + if(!cid) {
  90 + cid = button.parents('li').data('id');
  91 + }
  92 + $('input[name=cid]').val(cid);
  93 + document.documentElement.style.overflow='hidden';
  94 + })
  95 + $('#myModal').on('hidden.bs.modal', function () {
  96 + document.documentElement.style.overflow='auto';
  97 + })
  98 +</script>
  99 +<!--城市-->
  100 +<script type="text/javascript">
  101 + $("#city").citySelect({nodata:"none",required:false});
  102 +</script>
  103 +
  104 +<script>
  105 + $('input[name=submit]').click(function(){
  106 + var btn = $(this);
  107 + var text = btn.val();
  108 + var form = $('form').serialize();
  109 + $.ajax({
  110 + url:"{:U('ChanceEvents/submit')}",
  111 + type:"POST",
  112 + data:form,
  113 + dateType:"json",
  114 + beforeSend: function () {
  115 + // Handle the beforeSend event
  116 + btn.val('提交中...').attr('disabled', true);
  117 + },
  118 + success:function (data) {
  119 + console.log(data);
  120 + if(data.status) {
  121 + alert(data.msg);
  122 + if(data.data) {
  123 + location.href = data.data;
  124 + } else {
  125 + location.reload();
  126 + }
  127 + } else {
  128 + alert(data.msg);
  129 + }
  130 + },
  131 + error: function (data, status, e) { //提交失败自动执行的处理函数
  132 + alert(e);
  133 + },
  134 + complete: function () {
  135 + // Handle the complete event
  136 + btn.val(text).attr('disabled', false);
  137 + }
  138 + })
  139 + })
  140 + $('#txt').keyup(function() {
  141 + var len=$(this).val().length;
  142 + $('#txt_num').html(len);
  143 + });
  144 +</script>
@@ -7,6 +7,7 @@ @@ -7,6 +7,7 @@
7 <link href="__TMPL__Public/assets/css/reset.css" rel="stylesheet" type="text/css" /> 7 <link href="__TMPL__Public/assets/css/reset.css" rel="stylesheet" type="text/css" />
8 <link href="__TMPL__Public/assets/css/common.css" rel="stylesheet" type="text/css" /> 8 <link href="__TMPL__Public/assets/css/common.css" rel="stylesheet" type="text/css" />
9 <link href="__TMPL__Public/assets/css/style.css" rel="stylesheet" type="text/css" /> 9 <link href="__TMPL__Public/assets/css/style.css" rel="stylesheet" type="text/css" />
  10 + <link rel="stylesheet" href="__TMPL__Public/assets/css/modal.css">
10 </head> 11 </head>
11 <body> 12 <body>
12 <tc_include file="Public:header"/> 13 <tc_include file="Public:header"/>
@@ -28,7 +29,7 @@ @@ -28,7 +29,7 @@
28 <div class="page-container"> 29 <div class="page-container">
29 <div class="single-container"> 30 <div class="single-container">
30 <div class="breadnav"> 31 <div class="breadnav">
31 - <div class="breadcrumb">您所在的位置:<a href="">首页</a> > <a href="">高校文创</a> > 活动赛事</div> 32 + <div class="breadcrumb">您所在的位置:<a href="/">首页</a> > <a href="{:U('ChanceEvents/index')}">高校文创</a> > 活动赛事</div>
32 </div> 33 </div>
33 <div class="gxwc-thumb"> 34 <div class="gxwc-thumb">
34 <div class="g-thumb-pic"> 35 <div class="g-thumb-pic">
@@ -59,6 +60,10 @@ @@ -59,6 +60,10 @@
59 <!-- js --> 60 <!-- js -->
60 <script src="__TMPL__Public/assets/js/jquery.min.js"></script> 61 <script src="__TMPL__Public/assets/js/jquery.min.js"></script>
61 <script src="__TMPL__Public/assets/js/common.js"></script> 62 <script src="__TMPL__Public/assets/js/common.js"></script>
  63 +<script src="__TMPL__Public/assets/js/modal.js"></script>
  64 +<script src="__TMPL__Public/assets/js/pop.js"></script>
  65 +<script src="__TMPL__Public/assets/js/jquery.cityselect1.js"></script>
  66 +<tc_include file="Portal/ChanceEvents:apply"/>
62 <tc_include file="Public:script"/> 67 <tc_include file="Public:script"/>
63 </body> 68 </body>
64 </html> 69 </html>
@@ -45,7 +45,7 @@ @@ -45,7 +45,7 @@
45 </div> 45 </div>
46 </div> 46 </div>
47 <div class="gxwc-pic"> 47 <div class="gxwc-pic">
48 - <a href="" class="scale"><img src="{:sp_get_asset_upload_path($vo['thumb'])}"/></a> 48 + <a href="{:U('detail', array('id'=>$vo['id']))}" class="scale"><img src="{:sp_get_asset_upload_path($vo['thumb'])}"/></a>
49 </div> 49 </div>
50 </div> 50 </div>
51 </li> 51 </li>
@@ -54,90 +54,7 @@ @@ -54,90 +54,7 @@
54 </div> 54 </div>
55 </div> 55 </div>
56 <tc_include file="Public:footer"/> 56 <tc_include file="Public:footer"/>
57 -<div id="myModal" class="modal fade" aria-hidden="true">  
58 - <div class="modal-dialog">  
59 - <div class="modal-content">  
60 - <div class="modal-header">  
61 - <h4>活动赛事报名表</h4>  
62 - </div>  
63 - <div class="modal-body">  
64 - <form action="" method="post" id="events">  
65 - <input type="hidden" name="eid" value=""/>  
66 - <div class="row">  
67 - <div class="row-title">  
68 - <h5>个人信息</h5>  
69 - </div>  
70 - <div class="row-con cf">  
71 - <div class="ipt-container lf">  
72 - <input type="text" name="name" placeholder="创作人姓名">  
73 - </div>  
74 - <div class="slt-list lf" id="city">  
75 - <div class="slt-container lf">  
76 - <select name="province" class="mm-select prov">  
77 - <option value="天津"></option>  
78 - </select>  
79 - </div>  
80 - <div class="slt-container lf">  
81 - <select name="city" class="mm-select city"><option value="天津"></option></select>  
82 - </div>  
83 - </div>  
84 - <div class="ipt-container date_time lf" >  
85 - <input id="d11" type="text" name="birth" placeholder="出生年月" onClick="WdatePicker({skin:'twoer'})"/>  
86 - </div>  
87 - <div class="ipt-container lf">  
88 - <input type="text" name="school" placeholder="高校">  
89 - </div>  
90 - <div class="radio-container lf">  
91 - <label>性别:</label>  
92 - <input type="radio" name="sex" value="1" checked>  
93 - <input type="radio" name="sex" value="2">  
94 - </div>  
95 - <div class="ipt-container lf">  
96 - <input type="text" name="major" placeholder="专业">  
97 - </div>  
98 - <div class="ipt-container lf">  
99 - <input type="text" name="mobile" placeholder="手机号">  
100 - </div>  
101 - <div class="slt-container lf">  
102 - <span>年级</span>  
103 - <select name="classes" id="slt_0">  
104 - <option selected>年级</option>  
105 - <option>一年级</option>  
106 - <option>二年级</option>  
107 - <option>三年级</option>  
108 - </select>  
109 - </div>  
110 - <div class="ipt-container lf">  
111 - <input type="text" name="email" placeholder="邮箱">  
112 - </div>  
113 - </div>  
114 - </div>  
115 - <div class="row">  
116 - <div class="row-title">  
117 - <h5>专业经验</h5>  
118 - </div>  
119 - <div class="row-con">  
120 - <div class="textarea-container">  
121 - <textarea name="experience" placeholder="相关专业经验(绘画、设计、广告、文创、营销等)简要描述"></textarea>  
122 - </div>  
123 - <div class="textarea-container">  
124 - <textarea id="txt_1" name="product" placeholder="相关创作或获奖作品简要描述"></textarea>  
125 - <!-- <p>  
126 - <span id="txt_num_1">0</span>/200字  
127 - </p> -->  
128 - </div>  
129 - </div>  
130 - </div>  
131 - <div class="row">  
132 - <div class="sub-container">  
133 - <input type="button" name="submit" value="确认提交">  
134 - </div>  
135 - </div>  
136 - </form>  
137 - </div>  
138 - </div>  
139 - </div>  
140 -</div> 57 +
141 <!-- js --> 58 <!-- js -->
142 <script src="__TMPL__Public/assets/js/jquery.min.js"></script> 59 <script src="__TMPL__Public/assets/js/jquery.min.js"></script>
143 <script src="__TMPL__Public/assets/js/common.js"></script> 60 <script src="__TMPL__Public/assets/js/common.js"></script>
@@ -145,58 +62,7 @@ @@ -145,58 +62,7 @@
145 <script src="__TMPL__Public/assets/js/pop.js"></script> 62 <script src="__TMPL__Public/assets/js/pop.js"></script>
146 <script src="__TMPL__Public/assets/js/jquery.cityselect1.js"></script> 63 <script src="__TMPL__Public/assets/js/jquery.cityselect1.js"></script>
147 <script type="text/javascript" src="__TMPL__Public/assets/js/My97DatePicker/WdatePicker.js"></script> 64 <script type="text/javascript" src="__TMPL__Public/assets/js/My97DatePicker/WdatePicker.js"></script>
148 -  
149 -<script>  
150 - $('#myModal').on('shown.bs.modal', function (event) {  
151 - var button = $(event.relatedTarget);  
152 - var eid = button.parents('li').data('id')  
153 - $('input[name=eid]').val(eid);  
154 - document.documentElement.style.overflow='hidden';  
155 - })  
156 - $('#myModal').on('hidden.bs.modal', function () {  
157 - document.documentElement.style.overflow='auto';  
158 - })  
159 -</script>  
160 -<!--城市-->  
161 -<script type="text/javascript">  
162 - $("#city").citySelect({nodata:"none",required:false});  
163 -</script>  
164 -<script>  
165 - $('input[name=submit]').click(function(){  
166 - var btn = $(this);  
167 - var text = btn.val();  
168 - var form = $('form').serialize();  
169 - $.ajax({  
170 - url:"{:U('ChanceEvents/submit')}",  
171 - type:"POST",  
172 - data:form,  
173 - dateType:"json",  
174 - beforeSend: function () {  
175 - // Handle the beforeSend event  
176 - btn.val('提交中...').attr('disabled', true);  
177 - },  
178 - success:function (data) {  
179 - if(data.status) {  
180 - alert(data.msg);  
181 - location.reload();  
182 - } else {  
183 - alert(data.msg);  
184 - }  
185 - },  
186 - error: function (data, status, e) { //提交失败自动执行的处理函数  
187 - alert(e);  
188 - },  
189 - complete: function () {  
190 - // Handle the complete event  
191 - btn.val(text).attr('disabled', false);  
192 - }  
193 - })  
194 - })  
195 - $('#txt').keyup(function() {  
196 - var len=$(this).val().length;  
197 - $('#txt_num').html(len);  
198 - });  
199 -</script> 65 +<tc_include file="Portal/ChanceEvents:apply"/>
200 <tc_include file="Public:script"/> 66 <tc_include file="Public:script"/>
201 </body> 67 </body>
202 </html> 68 </html>
@@ -38,7 +38,7 @@ @@ -38,7 +38,7 @@
38 <div class="in-cate-tit">白鹿物恋</div> 38 <div class="in-cate-tit">白鹿物恋</div>
39 <ul class="in-cate-nav"> 39 <ul class="in-cate-nav">
40 <li class="active"><a href="{:U('Story/index')}">恋物故事</a></li> 40 <li class="active"><a href="{:U('Story/index')}">恋物故事</a></li>
41 - <li><a href="">白鹿优品</a></li> 41 + <li><a href="{:U('Portal/Goods/index')}">白鹿优品</a></li>
42 </ul> 42 </ul>
43 </div> 43 </div>
44 </div> 44 </div>
@@ -58,7 +58,7 @@ @@ -58,7 +58,7 @@
58 </div> 58 </div>
59 <div class="lw-action"> 59 <div class="lw-action">
60 <a href="{:U('detail',array('id'=>$vo['id']))}" class="lw-link">[ 阅读全文 ]</a> 60 <a href="{:U('detail',array('id'=>$vo['id']))}" class="lw-link">[ 阅读全文 ]</a>
61 - <a href="javascript:;" class="btn-thumb"><span>25</span></a> 61 + <a href="javascript:;" class="btn-thumb {$vo.is_good}"><span>{$vo.good_count}</span></a>
62 </div> 62 </div>
63 </div> 63 </div>
64 <div class="lw-title"><a href="{:U('detail',array('id'=>$vo['id']))}">{$vo.name}</a></div> 64 <div class="lw-title"><a href="{:U('detail',array('id'=>$vo['id']))}">{$vo.name}</a></div>
@@ -148,6 +148,7 @@ @@ -148,6 +148,7 @@
148 }); 148 });
149 </script> 149 </script>
150 <script> 150 <script>
  151 + // 投稿提交
151 $('input[name=submit]').click(function(){ 152 $('input[name=submit]').click(function(){
152 var btn = $(this); 153 var btn = $(this);
153 var text = btn.val(); 154 var text = btn.val();
@@ -183,6 +184,27 @@ @@ -183,6 +184,27 @@
183 var len=$(this).val().length; 184 var len=$(this).val().length;
184 $('#txt_num').html(len); 185 $('#txt_num').html(len);
185 }); 186 });
  187 +
  188 + // 点赞处理
  189 + $('.btn-thumb').click(function(){
  190 + var obj = $(this).parents('li');
  191 + var id = $(this).parents('li').data('id');
  192 + var data = {
  193 + id:id
  194 + };
  195 + $.ajax({
  196 + url:"{:U('like')}",
  197 + type:"POST",
  198 + data:data,
  199 + dateType:"json",
  200 + success:function (data) {
  201 + console.log(data);
  202 + if(data.status) {
  203 + obj.find('.btn-thumb').find('span').html(data.data);
  204 + }
  205 + },
  206 + });
  207 + });
186 </script> 208 </script>
187 <tc_include file="Public:script"/> 209 <tc_include file="Public:script"/>
188 </body> 210 </body>
@@ -66,4 +66,52 @@ @@ -66,4 +66,52 @@
66 </div> 66 </div>
67 </div> 67 </div>
68 </div> 68 </div>
69 -</div>  
  69 +</div>
  70 +<script>
  71 + // $('#myModal').modal({
  72 +
  73 + // })
  74 + $('#myModal').on('shown.bs.modal', function (event) {
  75 + var button = $(event.relatedTarget);
  76 + var tid = button.parents('li').data('id');
  77 + $('input[name=tid]').val(tid);
  78 + document.documentElement.style.overflow='hidden';
  79 + })
  80 + $('#myModal').on('hidden.bs.modal', function () {
  81 + $('input[name=tid]').val('');
  82 + document.documentElement.style.overflow='auto';
  83 + })
  84 +</script>
  85 +<script>
  86 + $('input[name=submit]').click(function(){
  87 + var btn = $(this);
  88 + var text = btn.val();
  89 + var form = $('#train').serialize();
  90 + $.ajax({
  91 + url:"{:U('Train/submit')}",
  92 + type:"POST",
  93 + data:form,
  94 + dateType:"json",
  95 + beforeSend: function () {
  96 + // Handle the beforeSend event
  97 + btn.val('提交中...').attr('disabled', true);
  98 + },
  99 + success:function (data) {
  100 + console.log(data);
  101 + if(data.status) {
  102 + alert(data.msg);
  103 + location.href = data.data;
  104 + } else {
  105 + alert(data.msg);
  106 + }
  107 + },
  108 + error: function (data, status, e) { //提交失败自动执行的处理函数
  109 + alert(e);
  110 + },
  111 + complete: function () {
  112 + // Handle the complete event
  113 + btn.val(text).attr('disabled', false);
  114 + }
  115 + })
  116 + })
  117 +</script>
@@ -7,6 +7,7 @@ @@ -7,6 +7,7 @@
7 <link href="__TMPL__Public/assets/css/reset.css" rel="stylesheet" type="text/css" /> 7 <link href="__TMPL__Public/assets/css/reset.css" rel="stylesheet" type="text/css" />
8 <link href="__TMPL__Public/assets/css/common.css" rel="stylesheet" type="text/css" /> 8 <link href="__TMPL__Public/assets/css/common.css" rel="stylesheet" type="text/css" />
9 <link href="__TMPL__Public/assets/css/style.css" rel="stylesheet" type="text/css" /> 9 <link href="__TMPL__Public/assets/css/style.css" rel="stylesheet" type="text/css" />
  10 + <link href="__TMPL__Public/assets/css/modal.css" rel="stylesheet" type="text/css" />
10 </head> 11 </head>
11 <body> 12 <body>
12 <tc_include file="Public:header"/> 13 <tc_include file="Public:header"/>
@@ -28,7 +29,7 @@ @@ -28,7 +29,7 @@
28 <div class="main"> 29 <div class="main">
29 <ul class="peixun-list"> 30 <ul class="peixun-list">
30 <volist name="posts" id="vo"> 31 <volist name="posts" id="vo">
31 - <li> 32 + <li data-id="{$vo.id}">
32 <div class="peixun-box"> 33 <div class="peixun-box">
33 <a href="###" class="peixun-pic scale"><img src="{:sp_get_asset_upload_path($vo['thumb'])}"/></a> 34 <a href="###" class="peixun-pic scale"><img src="{:sp_get_asset_upload_path($vo['thumb'])}"/></a>
34 <div class="px-intro"> 35 <div class="px-intro">
@@ -37,12 +38,24 @@ @@ -37,12 +38,24 @@
37 <span>还剩 <i class="px-num">3</i> 个名额</span> 38 <span>还剩 <i class="px-num">3</i> 个名额</span>
38 <span>活动收费:<i class="px-price">{$vo.price}</i></span> 39 <span>活动收费:<i class="px-price">{$vo.price}</i></span>
39 </div> 40 </div>
40 - <eq name="vo.is_apply" value="0">  
41 - <a href="#myModal" data-toggle="modal" class="btn-singup"><span>立即报名</span></a>  
42 - </eq>  
43 - <eq name="vo.is_apply" value="1">  
44 - <a href="javascript:;" class="btn-singup"><span>已报名</span></a>  
45 - </eq> 41 + <if condition="strtotime($vo['endtime']) lt $time">
  42 + <a href="javascript:;" class="btn-singup px-disbale">报名已结束</a>
  43 + <else/>
  44 + <if condition="strtotime($vo['starttime']) gt $time">
  45 + <a href="javascript:;" class="btn-singup px-disbale">报名未开始</a>
  46 + <else/>
  47 + <eq name="vo.is_apply" value="0">
  48 + <a href="#myModal" data-toggle="modal" class="btn-singup"><span>立即报名</span></a>
  49 + </eq>
  50 + <eq name="vo.is_apply" value="1">
  51 + <eq name="vo.is_pay" value="1">
  52 + <a href="javascript:;" class="btn-singup"><span>已报名</span></a>
  53 + <else/>
  54 + <a href="{:U('User/Index/apply_pay',array('order_id'=>$vo['order_id']))}" class="btn-singup"><span>去支付</span></a>
  55 + </eq>
  56 + </eq>
  57 + </if>
  58 + </if>
46 </div> 59 </div>
47 <div class="px-footer"> 60 <div class="px-footer">
48 <a href="{:U('detail',array('id'=>$vo['id']))}"><san>查看详情 ></san></a> 61 <a href="{:U('detail',array('id'=>$vo['id']))}"><san>查看详情 ></san></a>
@@ -54,9 +67,14 @@ @@ -54,9 +67,14 @@
54 </div> 67 </div>
55 </div> 68 </div>
56 <tc_include file="Public:footer"/> 69 <tc_include file="Public:footer"/>
  70 +<tc_include file="Portal/Train:apply"/>
57 <!-- js --> 71 <!-- js -->
58 <script src="__TMPL__Public/assets/js/jquery.min.js"></script> 72 <script src="__TMPL__Public/assets/js/jquery.min.js"></script>
59 <script src="__TMPL__Public/assets/js/common.js"></script> 73 <script src="__TMPL__Public/assets/js/common.js"></script>
  74 +<script src="__TMPL__Public/assets/js/modal.js"></script>
  75 +<script type="text/javascript" src="__TMPL__Public/assets/js/My97DatePicker/WdatePicker.js"></script>
  76 +<script type="text/javascript" src="__TMPL__Public/assets/js/jquery.cityselect1.js"></script>
  77 +<tc_include file="Portal/Train:apply"/>
60 <tc_include file="Public:script"/> 78 <tc_include file="Public:script"/>
61 </body> 79 </body>
62 </html> 80 </html>
  1 +<!DOCTYPE html>
  2 +<html lang="zh-CN">
  3 +<head>
  4 + <meta charset="utf-8">
  5 + <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6 + <title>体验培训</title>
  7 + <link href="__TMPL__Public/assets/css/reset.css" rel="stylesheet" type="text/css" />
  8 + <link href="__TMPL__Public/assets/css/common.css" rel="stylesheet" type="text/css" />
  9 + <link href="__TMPL__Public/assets/css/style.css" rel="stylesheet" type="text/css" />
  10 + <link href="__TMPL__Public/assets/css/modal.css" rel="stylesheet" type="text/css" />
  11 +</head>
  12 +<body>
  13 +<tc_include file="Public:header"/>
  14 +<tc_include file="Public:nav"/>
  15 +<div class="inbanner" style="background-image: url(__TMPL__Public/assets/images/banner/inbanner.jpg);">
  16 + <!--分类-->
  17 + <div class="catebox">
  18 + <div class="in-catebox">
  19 + <div class="in-cate-tit">体验培训</div>
  20 + <ul class="in-cate-nav">
  21 + <li class="{$work}"><a href="{:U('Train/work')}">工作坊</a></li>
  22 + <li class="{$lesson}"><a href="{:U('Train/lesson')}">课程培训</a></li>
  23 + <li class="{$cultural}"><a href="{:U('Train/cultural')}">文化之旅</a></li>
  24 + </ul>
  25 + </div>
  26 + </div>
  27 +</div>
  28 +<div class="page-container">
  29 + <div class="single-container">
  30 + <div class="breadnav">
  31 + <div class="breadcrumb">您所在的位置:<a href="/">首页</a> > <a href="{:U('Portal/Train/work')}">体验培训</a> > {$nav_name}</div>
  32 + </div>
  33 + <div class="px-thumb">
  34 + <div class="px-thumb-pic">
  35 + <img src="{:sp_get_asset_upload_path($thumb)}"/>
  36 + </div>
  37 + <div class="px-thumb-grid">
  38 + <h1 class="art-title">{$name}</h1>
  39 + <div class="px-meta">
  40 + <span>还剩 <i class="px-num">3</i> 个名额</span>
  41 + <span>活动收费:<i class="px-price">{$price}</i></span>
  42 + </div>
  43 + <if condition="strtotime($endtime) lt $time">
  44 + <a href="javascript:;" class="btn-singup px-disbale">报名已结束</a>
  45 + <else/>
  46 + <if condition="strtotime($starttime) gt $time">
  47 + <a href="javascript:;" class="btn-singup px-disbale">报名未开始</a>
  48 + <else/>
  49 + <eq name="is_apply" value="0">
  50 + <a href="#myModal" data-toggle="modal" class="btn-singup"><span>立即报名</span></a>
  51 + </eq>
  52 + <eq name="is_apply" value="1">
  53 + <eq name="is_pay" value="1">
  54 + <a href="javascript:;" class="btn-singup"><span>已报名</span></a>
  55 + <else/>
  56 + <a href="{:U('User/Index/apply_pay',array('order_id'=>$order_id))}" class="btn-singup"><span>去支付</span></a>
  57 + </eq>
  58 + </eq>
  59 + </if>
  60 + </if>
  61 + </div>
  62 + </div>
  63 + <div class="content">
  64 + {$content}
  65 + </div>
  66 + </div>
  67 +</div>
  68 +<tc_include file="Public:footer"/>
  69 +<!-- js -->
  70 +<script src="__TMPL__Public/assets/js/jquery.min.js"></script>
  71 +<script src="__TMPL__Public/assets/js/common.js"></script>
  72 +<script src="__TMPL__Public/assets/js/modal.js"></script>
  73 +<script type="text/javascript" src="__TMPL__Public/assets/js/My97DatePicker/WdatePicker.js"></script>
  74 +<script type="text/javascript" src="__TMPL__Public/assets/js/jquery.cityselect1.js"></script>
  75 +<tc_include file="Portal/Train:apply"/>
  76 +<tc_include file="Public:script"/>
@@ -7,6 +7,7 @@ @@ -7,6 +7,7 @@
7 <link href="__TMPL__Public/assets/css/reset.css" rel="stylesheet" type="text/css" /> 7 <link href="__TMPL__Public/assets/css/reset.css" rel="stylesheet" type="text/css" />
8 <link href="__TMPL__Public/assets/css/common.css" rel="stylesheet" type="text/css" /> 8 <link href="__TMPL__Public/assets/css/common.css" rel="stylesheet" type="text/css" />
9 <link href="__TMPL__Public/assets/css/style.css" rel="stylesheet" type="text/css" /> 9 <link href="__TMPL__Public/assets/css/style.css" rel="stylesheet" type="text/css" />
  10 + <link href="__TMPL__Public/assets/css/modal.css" rel="stylesheet" type="text/css" />
10 </head> 11 </head>
11 <body> 12 <body>
12 <tc_include file="Public:header"/> 13 <tc_include file="Public:header"/>
@@ -28,7 +29,7 @@ @@ -28,7 +29,7 @@
28 <div class="main"> 29 <div class="main">
29 <ul class="peixun-list"> 30 <ul class="peixun-list">
30 <volist name="posts" id="vo"> 31 <volist name="posts" id="vo">
31 - <li> 32 + <li data-id="{$vo.id}">
32 <div class="peixun-box"> 33 <div class="peixun-box">
33 <a href="###" class="peixun-pic scale"><img src="{:sp_get_asset_upload_path($vo['thumb'])}"/></a> 34 <a href="###" class="peixun-pic scale"><img src="{:sp_get_asset_upload_path($vo['thumb'])}"/></a>
34 <div class="px-intro"> 35 <div class="px-intro">
@@ -37,12 +38,24 @@ @@ -37,12 +38,24 @@
37 <span>还剩 <i class="px-num">3</i> 个名额</span> 38 <span>还剩 <i class="px-num">3</i> 个名额</span>
38 <span>活动收费:<i class="px-price">{$vo.price}</i></span> 39 <span>活动收费:<i class="px-price">{$vo.price}</i></span>
39 </div> 40 </div>
40 - <eq name="vo.is_apply" value="0">  
41 - <a href="#myModal" data-toggle="modal" class="btn-singup"><span>立即报名</span></a>  
42 - </eq>  
43 - <eq name="vo.is_apply" value="1">  
44 - <a href="javascript:;" class="btn-singup"><span>已报名</span></a>  
45 - </eq> 41 + <if condition="strtotime($vo['endtime']) lt $time">
  42 + <a href="javascript:;" class="btn-singup px-disbale">报名已结束</a>
  43 + <else/>
  44 + <if condition="strtotime($vo['starttime']) gt $time">
  45 + <a href="javascript:;" class="btn-singup px-disbale">报名未开始</a>
  46 + <else/>
  47 + <eq name="vo.is_apply" value="0">
  48 + <a href="#myModal" data-toggle="modal" class="btn-singup"><span>立即报名</span></a>
  49 + </eq>
  50 + <eq name="vo.is_apply" value="1">
  51 + <eq name="vo.is_pay" value="1">
  52 + <a href="javascript:;" class="btn-singup"><span>已报名</span></a>
  53 + <else/>
  54 + <a href="{:U('User/Index/apply_pay',array('order_id'=>$vo['order_id']))}" class="btn-singup"><span>去支付</span></a>
  55 + </eq>
  56 + </eq>
  57 + </if>
  58 + </if>
46 </div> 59 </div>
47 <div class="px-footer"> 60 <div class="px-footer">
48 <a href="{:U('detail',array('id'=>$vo['id']))}"><san>查看详情 ></san></a> 61 <a href="{:U('detail',array('id'=>$vo['id']))}"><san>查看详情 ></san></a>
@@ -57,6 +70,10 @@ @@ -57,6 +70,10 @@
57 <!-- js --> 70 <!-- js -->
58 <script src="__TMPL__Public/assets/js/jquery.min.js"></script> 71 <script src="__TMPL__Public/assets/js/jquery.min.js"></script>
59 <script src="__TMPL__Public/assets/js/common.js"></script> 72 <script src="__TMPL__Public/assets/js/common.js"></script>
  73 +<script src="__TMPL__Public/assets/js/modal.js"></script>
  74 +<script type="text/javascript" src="__TMPL__Public/assets/js/My97DatePicker/WdatePicker.js"></script>
  75 +<script type="text/javascript" src="__TMPL__Public/assets/js/jquery.cityselect1.js"></script>
  76 +<tc_include file="Portal/Train:apply"/>
60 <tc_include file="Public:script"/> 77 <tc_include file="Public:script"/>
61 </body> 78 </body>
62 </html> 79 </html>
@@ -31,19 +31,31 @@ @@ -31,19 +31,31 @@
31 <volist name="posts" id="vo"> 31 <volist name="posts" id="vo">
32 <li data-id="{$vo.id}"> 32 <li data-id="{$vo.id}">
33 <div class="peixun-box"> 33 <div class="peixun-box">
34 - <a href="###" class="peixun-pic scale"><img src="{:sp_get_asset_upload_path($vo['thumb'])}"/></a> 34 + <a href="{:U('detail',array('id'=>$vo['id']))}" class="peixun-pic scale"><img src="{:sp_get_asset_upload_path($vo['thumb'])}"/></a>
35 <div class="px-intro"> 35 <div class="px-intro">
36 <div class="px-tit"><a href="{:U('detail',array('id'=>$vo['id']))}">{$vo.name}</a></div> 36 <div class="px-tit"><a href="{:U('detail',array('id'=>$vo['id']))}">{$vo.name}</a></div>
37 <div class="px-meta"> 37 <div class="px-meta">
38 <span>还剩 <i class="px-num">{$vo.surplus}</i> 个名额</span> 38 <span>还剩 <i class="px-num">{$vo.surplus}</i> 个名额</span>
39 <span>活动收费:<i class="px-price">{$vo.price}</i></span> 39 <span>活动收费:<i class="px-price">{$vo.price}</i></span>
  40 + <if condition="strtotime($vo['endtime']) lt $time">
  41 + <a href="javascript:;" class="btn-singup px-disbale">报名已结束</a>
  42 + <else/>
  43 + <if condition="strtotime($vo['starttime']) gt $time">
  44 + <a href="javascript:;" class="btn-singup px-disbale">报名未开始</a>
  45 + <else/>
  46 + <eq name="vo.is_apply" value="0">
  47 + <a href="#myModal" data-toggle="modal" class="btn-singup"><span>立即报名</span></a>
  48 + </eq>
  49 + <eq name="vo.is_apply" value="1">
  50 + <eq name="vo.is_pay" value="1">
  51 + <a href="javascript:;" class="btn-singup"><span>已报名</span></a>
  52 + <else/>
  53 + <a href="{:U('User/Index/apply_pay',array('order_id'=>$vo['order_id']))}" class="btn-singup"><span>去支付</span></a>
  54 + </eq>
  55 + </eq>
  56 + </if>
  57 + </if>
40 </div> 58 </div>
41 - <eq name="vo.is_apply" value="0">  
42 - <a href="#myModal" data-toggle="modal" class="btn-singup"><span>立即报名</span></a>  
43 - </eq>  
44 - <eq name="vo.is_apply" value="1">  
45 - <a href="javascript:;" class="btn-singup"><span>已报名</span></a>  
46 - </eq>  
47 </div> 59 </div>
48 <div class="px-footer"> 60 <div class="px-footer">
49 <a href="{:U('detail',array('id'=>$vo['id']))}"><san>查看详情 ></san></a> 61 <a href="{:U('detail',array('id'=>$vo['id']))}"><san>查看详情 ></san></a>
@@ -62,55 +74,7 @@ @@ -62,55 +74,7 @@
62 <script src="__TMPL__Public/assets/js/modal.js"></script> 74 <script src="__TMPL__Public/assets/js/modal.js"></script>
63 <script type="text/javascript" src="__TMPL__Public/assets/js/My97DatePicker/WdatePicker.js"></script> 75 <script type="text/javascript" src="__TMPL__Public/assets/js/My97DatePicker/WdatePicker.js"></script>
64 <script type="text/javascript" src="__TMPL__Public/assets/js/jquery.cityselect1.js"></script> 76 <script type="text/javascript" src="__TMPL__Public/assets/js/jquery.cityselect1.js"></script>
65 -<script>  
66 - // $('#myModal').modal({  
67 -  
68 - // })  
69 - $('#myModal').on('shown.bs.modal', function (event) {  
70 - var button = $(event.relatedTarget);  
71 - var tid = button.parents('li').data('id');  
72 - $('input[name=tid]').val(tid);  
73 - document.documentElement.style.overflow='hidden';  
74 - })  
75 - $('#myModal').on('hidden.bs.modal', function () {  
76 - $('input[name=tid]').val('');  
77 - document.documentElement.style.overflow='auto';  
78 - })  
79 -</script>  
80 -<script>  
81 - $('input[name=submit]').click(function(){  
82 - var btn = $(this);  
83 - var text = btn.val();  
84 - var form = $('#train').serialize();  
85 - console.log(form);  
86 - $.ajax({  
87 - url:"{:U('Train/submit')}",  
88 - type:"POST",  
89 - data:form,  
90 - dateType:"json",  
91 - beforeSend: function () {  
92 - // Handle the beforeSend event  
93 - btn.val('提交中...').attr('disabled', true);  
94 - },  
95 - success:function (data) {  
96 - console.log(data);  
97 - if(data.status) {  
98 - alert(data.msg);  
99 - location.reload();  
100 - } else {  
101 - alert(data.msg);  
102 - }  
103 - },  
104 - error: function (data, status, e) { //提交失败自动执行的处理函数  
105 - alert(e);  
106 - },  
107 - complete: function () {  
108 - // Handle the complete event  
109 - btn.val(text).attr('disabled', false);  
110 - }  
111 - })  
112 - })  
113 -</script> 77 +<tc_include file="Portal/Train:apply"/>
114 <tc_include file="Public:script"/> 78 <tc_include file="Public:script"/>
115 </body> 79 </body>
116 </html> 80 </html>
@@ -315,7 +315,7 @@ @@ -315,7 +315,7 @@
315 btn.val(text).attr('disabled', false); 315 btn.val(text).attr('disabled', false);
316 } 316 }
317 }) 317 })
318 - }) 318 + });
319 $('#txt').keyup(function() { 319 $('#txt').keyup(function() {
320 var len=$(this).val().length; 320 var len=$(this).val().length;
321 $('#txt_num').html(len); 321 $('#txt_num').html(len);
@@ -776,6 +776,21 @@ @@ -776,6 +776,21 @@
776 color: #333; 776 color: #333;
777 font-style: normal; 777 font-style: normal;
778 } 778 }
  779 +.px-meta .px-singup{
  780 + float: right;
  781 + display: inline-block;
  782 + padding: 0 10px;
  783 + height: 26px;
  784 + line-height: 26px;
  785 + background: #c8b073;
  786 + color: #fff;
  787 + font-size: 14px;
  788 +}
  789 +.px-meta .px-disbale,
  790 +.px-meta .px-disbale:hover{
  791 + color: #fff;
  792 + background: #bcbcbc;
  793 +}
779 .btn-singup{ 794 .btn-singup{
780 display: inline-block; 795 display: inline-block;
781 height: 28px; 796 height: 28px;
@@ -792,6 +807,14 @@ @@ -792,6 +807,14 @@
792 top: 50%; 807 top: 50%;
793 margin-top: -14px; 808 margin-top: -14px;
794 } 809 }
  810 +.px-intro .px-disbale{
  811 + color: #fff;
  812 + background: #bcbcbc;
  813 +}
  814 +.px-disbale {
  815 + color: #fff;
  816 + background: #bcbcbc;
  817 +}
795 .btn-singup span{ 818 .btn-singup span{
796 display: inline-block; 819 display: inline-block;
797 padding-left: 20px; 820 padding-left: 20px;
@@ -21,7 +21,7 @@ @@ -21,7 +21,7 @@
21 21
22 // 默认值 22 // 默认值
23 settings = $.extend({ 23 settings = $.extend({
24 - url: "../js/city.min.js", 24 + url: "/themes/simplebootx/Public/assets/js/city.min.js",
25 prov: null, 25 prov: null,
26 city: null, 26 city: null,
27 dist: null, 27 dist: null,
@@ -21,7 +21,7 @@ @@ -21,7 +21,7 @@
21 21
22 // 默认值 22 // 默认值
23 settings = $.extend({ 23 settings = $.extend({
24 - url: "js/city.min.js", 24 + url: "/themes/simplebootx/Public/assets/js/city.min.js",
25 prov: null, 25 prov: null,
26 city: null, 26 city: null,
27 dist: null, 27 dist: null,
@@ -32,7 +32,7 @@ @@ -32,7 +32,7 @@
32 <div class="h-search"> 32 <div class="h-search">
33 <div class="h-search-box"> 33 <div class="h-search-box">
34 <input type="text" class="h-input" placeholder="非遗文创"/> 34 <input type="text" class="h-input" placeholder="非遗文创"/>
35 - <input type="button" class="h-button" /> 35 + <input type="button" class="h-button" autocomplete="off" value="" />
36 </div> 36 </div>
37 <div class="h-keywords"> 37 <div class="h-keywords">
38 <a href="">茶道</a> 38 <a href="">茶道</a>
@@ -66,7 +66,7 @@ @@ -66,7 +66,7 @@
66 <!-- js --> 66 <!-- js -->
67 <script src="__TMPL__Public/assets/js/jquery.min.js"></script> 67 <script src="__TMPL__Public/assets/js/jquery.min.js"></script>
68 <script src="__TMPL__Public/assets/js/mm.js"></script> 68 <script src="__TMPL__Public/assets/js/mm.js"></script>
69 -<script src="../js/jquery.cityselect.js"></script> 69 +<script src="__TMPL__Public/assets/js/jquery.cityselect.js"></script>
70 <script type="text/javascript"> 70 <script type="text/javascript">
71 $("#city").citySelect({nodata:"none",required:false}); 71 $("#city").citySelect({nodata:"none",required:false});
72 </script> 72 </script>
@@ -43,7 +43,7 @@ @@ -43,7 +43,7 @@
43 <volist name="orderInfo.goods_list" id="vo"> 43 <volist name="orderInfo.goods_list" id="vo">
44 {$vo.goods_name} ×{$vo.num}<br> 44 {$vo.goods_name} ×{$vo.num}<br>
45 </volist> 45 </volist>
46 - 下单时间:{:date('Y-m-d',$orderInfo['ctime'])} {:date('H:i',$orderInfo['ctime'])} 46 + 下单时间:{:date('Y-m-d H:i',$orderInfo['ctime'])}
47 </div> 47 </div>
48 </div> 48 </div>
49 </div> 49 </div>
@@ -53,8 +53,8 @@ @@ -53,8 +53,8 @@
53 </div> 53 </div>
54 <div class="pay-in-body"> 54 <div class="pay-in-body">
55 <div class="pay-style" data-id="{$orderInfo.id}"> 55 <div class="pay-style" data-id="{$orderInfo.id}">
56 - <label class="pay-box active" data-id="2"><img src="__TMPL__Public/assets/images/shop_zfb_normal.png"/><input type="radio" checked="" class="payradio alipay-radio" name="pay" /></label>  
57 - <label class="pay-box" data-id="1"><img src="__TMPL__Public/assets/images/shop_wechat_normal.png"/><input type="radio" class="payradio wechat-radio" name="pay" /></label> 56 + <label class="pay-box active" data-id="1"><img src="__TMPL__Public/assets/images/shop_zfb_normal.png"/><input type="radio" checked="" class="payradio alipay-radio" name="pay" /></label>
  57 + <label class="pay-box" data-id="2"><img src="__TMPL__Public/assets/images/shop_wechat_normal.png"/><input type="radio" class="payradio wechat-radio" name="pay" /></label>
58 </div> 58 </div>
59 <div class="pay-in-weixin" style="display: none;"> 59 <div class="pay-in-weixin" style="display: none;">
60 <img src="http://ccimc.com/simplewind/Core/Library/Vendor/WxpayAPI/example/qrcode.php?data={$qrcode}" alt=""/> 60 <img src="http://ccimc.com/simplewind/Core/Library/Vendor/WxpayAPI/example/qrcode.php?data={$qrcode}" alt=""/>
@@ -22,10 +22,10 @@ @@ -22,10 +22,10 @@
22 <div class="panel-header"> 22 <div class="panel-header">
23 <div class="panel-title">我的资料</div> 23 <div class="panel-title">我的资料</div>
24 <div class="breadcrumb"> 24 <div class="breadcrumb">
25 - 您当前的位置:<a href="">个人中心</a> > <a href="">我的收藏</a> 25 + 您当前的位置:<a href="">个人中心</a> > <a href="">我的资料</a>
26 </div> 26 </div>
27 </div> 27 </div>
28 - <form class="registerform" action="" method="post"> 28 + <form class="registerform" action="" method="post" id="profile">
29 <div class="mm-profile-form"> 29 <div class="mm-profile-form">
30 <div class="mm-box-row clearfix"> 30 <div class="mm-box-row clearfix">
31 <div class="mm-box-photo"> 31 <div class="mm-box-photo">
@@ -33,7 +33,7 @@ @@ -33,7 +33,7 @@
33 <div class="hd">会员头像:</div> 33 <div class="hd">会员头像:</div>
34 <div class="bd"> 34 <div class="bd">
35 <div class="upload-avatar"> 35 <div class="upload-avatar">
36 - <span id="preview"><img id="imghead" src="__TMPL__Public/assets/images/demo/touxiang.jpg"/></span> 36 + <span id="preview"><img id="imghead" src="{$avatar}"/></span>
37 <div class="upload-text">点击修改<input type="file" onchange="previewImage(this)" /></div> 37 <div class="upload-text">点击修改<input type="file" onchange="previewImage(this)" /></div>
38 </div> 38 </div>
39 </div> 39 </div>
@@ -43,7 +43,7 @@ @@ -43,7 +43,7 @@
43 <div class="mm-box-group"> 43 <div class="mm-box-group">
44 <div class="hd">*会员昵称:</div> 44 <div class="hd">*会员昵称:</div>
45 <div class="bd"> 45 <div class="bd">
46 - <input type="text" name="nickname" placeholder="" class="m-input" datatype="*" errormsg="必填!" nullmsg="必填!" /> 46 + <input type="text" name="nickname" placeholder="" value="{$nickname}" class="m-input" datatype="*" errormsg="必填!" nullmsg="必填!" />
47 47
48 </div> 48 </div>
49 <div class="ft"></div> 49 <div class="ft"></div>
@@ -51,7 +51,7 @@ @@ -51,7 +51,7 @@
51 <div class="mm-box-group"> 51 <div class="mm-box-group">
52 <div class="hd">*个人邮箱:</div> 52 <div class="hd">*个人邮箱:</div>
53 <div class="bd"> 53 <div class="bd">
54 - <input type="text" name="email" placeholder="" class="m-input" datatype="e" errormsg="邮箱格式不对!" nullmsg="必填!" /> 54 + <input type="text" name="email" placeholder="" value="{$email}" class="m-input" datatype="e" errormsg="邮箱格式不对!" nullmsg="必填!" />
55 55
56 </div> 56 </div>
57 <div class="ft"></div> 57 <div class="ft"></div>
@@ -59,8 +59,8 @@ @@ -59,8 +59,8 @@
59 <div class="mm-box-group"> 59 <div class="mm-box-group">
60 <div class="hd">*联系电话:</div> 60 <div class="hd">*联系电话:</div>
61 <div class="bd"> 61 <div class="bd">
62 - <div class="m-text">131****8835</div>  
63 - <a href="" class="btn-update">更改绑定手机号</a> 62 + <div class="m-text">{$mobile}</div>
  63 + <a href="{:U('profile/old_mobile')}" class="btn-update">更改绑定手机号</a>
64 </div> 64 </div>
65 </div> 65 </div>
66 </div> 66 </div>
@@ -69,13 +69,13 @@ @@ -69,13 +69,13 @@
69 <div class="mm-box-group"> 69 <div class="mm-box-group">
70 <div class="hd">兴趣描述:</div> 70 <div class="hd">兴趣描述:</div>
71 <div class="bd"> 71 <div class="bd">
72 - <textarea name="interest" class="mm-textarea" placeholder="请在这里填写兴趣描述..."></textarea> 72 + <textarea name="interest" class="mm-textarea" placeholder="请在这里填写兴趣描述...">{$interest}</textarea>
73 </div> 73 </div>
74 </div> 74 </div>
75 </div> 75 </div>
76 </div> 76 </div>
77 <div class="mm-form-footer"> 77 <div class="mm-form-footer">
78 - <button type="submit" class="btn-submit">保存修改</button> 78 + <button type="button" class="btn-submit" id="edit_post">保存修改</button>
79 </div> 79 </div>
80 </form> 80 </form>
81 </div> 81 </div>
@@ -150,7 +150,36 @@ @@ -150,7 +150,36 @@
150 $(".registerform").Validform({ 150 $(".registerform").Validform({
151 tiptype:2 151 tiptype:2
152 }); 152 });
153 - 153 + $('#edit_post').click(function(){
  154 + var btn = $(this);
  155 + var text = btn.html();
  156 + var form = $('#profile').serialize();
  157 + $.ajax({
  158 + url:"{:U('edit_post')}",
  159 + type:"POST",
  160 + data:form,
  161 + dateType:"json",
  162 + beforeSend: function () {
  163 + // Handle the beforeSend event
  164 + btn.html('提交中...').attr('disabled', true);
  165 + },
  166 + success:function (data) {
  167 + if(data.status) {
  168 + alert(data.msg);
  169 + location.reload();
  170 + } else {
  171 + alert(data.msg);
  172 + }
  173 + },
  174 + error: function (data, status, e) { //提交失败自动执行的处理函数
  175 + alert(e);
  176 + },
  177 + complete: function () {
  178 + // Handle the complete event
  179 + btn.html(text).attr('disabled', false);
  180 + }
  181 + })
  182 + });
154 </script> 183 </script>
155 184
156 <tc_include file="Public:script"/> 185 <tc_include file="Public:script"/>
1 -<!DOCTYPE html>  
2 -<html>  
3 -<head>  
4 -<title>{$site_name}</title>  
5 -<meta name="keywords" content="{$site_seo_keywords}" />  
6 -<meta name="description" content="{$site_seo_description}">  
7 -<meta name="author" content="ThinkCMF">  
8 -<tc_include file="Public:head" />  
9 -</head>  
10 -<body class="body-white" id="top">  
11 - <tc_include file="Public:nav" />  
12 -  
13 - <div class="container tc-main">  
14 - <div class="row">  
15 - <div class="span3">  
16 - <tc_include file="Public:usernav"/>  
17 - </div>  
18 - <div class="span9">  
19 - <div class="tabs">  
20 - <ul class="nav nav-tabs">  
21 - <li class="active"><a href="#one" data-toggle="tab"><i class="fa fa-list-alt"></i> 修改资料</a></li>  
22 - </ul>  
23 - <div class="tab-content">  
24 - <div class="tab-pane active" id="one">  
25 - <form class="form-horizontal js-ajax-form" action="{:U('profile/edit_post')}" method="post">  
26 - <div class="control-group">  
27 - <label class="control-label" for="input-user_nicename">昵称</label>  
28 - <div class="controls">  
29 - <input type="text" id="input-user_nicename" placeholder="昵称" name="user_nicename" value="{$user_nicename}">  
30 - </div>  
31 - </div>  
32 - <div class="control-group">  
33 - <label class="control-label" for="input-sex">性别</label>  
34 - <div class="controls">  
35 - <php>  
36 - $sexs=array("0"=>"保密","1"=>"程序猿","2"=>"程序媛");  
37 - </php>  
38 - <select id="input-sex" name="sex">  
39 - <foreach name="sexs" item="vo">  
40 - <php>$sexselected=$key==$sex?"selected":"";</php>  
41 - <option value="{$key}" {$sexselected}>{$vo}</option>  
42 - </foreach>  
43 - </select>  
44 - </div>  
45 - </div>  
46 - <div class="control-group">  
47 - <label class="control-label" for="input-birthday">生日</label>  
48 - <div class="controls">  
49 - <input class="js-date" type="text" id="input-birthday" placeholder="2013-01-04" name="birthday" value="{$birthday}">  
50 - </div>  
51 - </div>  
52 - <div class="control-group">  
53 - <label class="control-label" for="input-user_url">个人网址</label>  
54 - <div class="controls">  
55 - <input type="text" id="input-user_url" placeholder="http://thinkcmf.com" name="user_url" value="{$user_url}">  
56 - </div>  
57 - </div>  
58 - <div class="control-group">  
59 - <label class="control-label" for="input-signature">个性签名</label>  
60 - <div class="controls">  
61 - <textarea id="input-signature" placeholder="个性签名" name="signature">{$signature}</textarea>  
62 - </div>  
63 - </div>  
64 - <div class="control-group">  
65 - <div class="controls">  
66 - <button type="submit" class="btn js-ajax-submit">保存</button>  
67 - </div>  
68 - </div>  
69 - </form>  
70 - </div>  
71 - </div>  
72 - </div>  
73 - </div>  
74 - </div>  
75 -  
76 - <tc_include file="Public:footer" />  
77 -  
78 - </div>  
79 - <!-- /container -->  
80 -  
81 - <tc_include file="Public:scripts" />  
82 -</body>  
83 -</html>  
  1 +<!DOCTYPE html>
  2 +<html lang="zh-CN">
  3 +<head>
  4 + <meta charset="utf-8">
  5 + <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6 + <title>pc个人中心_我的资料更改绑定2</title>
  7 + <link href="__TMPL__Public/assets/css/reset.css" rel="stylesheet" type="text/css" />
  8 + <link href="__TMPL__Public/assets/css/common.css" rel="stylesheet" type="text/css" />
  9 + <link href="__TMPL__Public/assets/css/member.css" rel="stylesheet" type="text/css" />
  10 +</head>
  11 +<body>
  12 +<tc_include file="Public:header"/>
  13 +<tc_include file="Public:nav"/>
  14 +<!--mm-container-->
  15 +<div class="mm-container">
  16 + <div class="main clearfix">
  17 + <!--侧边-->
  18 + <tc_include file="User:left"/>
  19 + <!--main-->
  20 + <div class="mm-main">
  21 + <!--概况-->
  22 + <div class="panel same-height">
  23 + <div class="panel-header">
  24 + <div class="panel-title">我的资料</div>
  25 + <div class="breadcrumb">
  26 + 您当前的位置:<a href="">个人中心</a> > <a href="">更改绑定</a>
  27 + </div>
  28 + </div>
  29 + <div class="panel-body">
  30 + <div class="step-wrap">
  31 + <ul class="step-box">
  32 + <li class="step-1 active">
  33 + <div class="num">1</div>
  34 + <div class="text">验证原手机</div>
  35 + </li>
  36 + <li class="step-2 active">
  37 + <div class="num">2</div>
  38 + <div class="text">验证新手机</div>
  39 + </li>
  40 + <li class="step-3">
  41 + <div class="num">3</div>
  42 + <div class="text">修改成功</div>
  43 + </li>
  44 + </ul>
  45 + </div>
  46 + <div class="mm-form-border">
  47 + <div class="mm-row">
  48 + <div class="hd">请输入新手机号:</div>
  49 + <div class="bd">
  50 + <input type="text" value="" class="mm-input" />
  51 + </div>
  52 + </div>
  53 + <div class="mm-row">
  54 + <div class="hd">短信验证码:</div>
  55 + <div class="bd">
  56 + <input type="text" value="" class="mm-input mm-code-input" />
  57 + <input type="button" class="btnCode" id="btn" value="点击获取" onclick="settime(this)" />
  58 + </div>
  59 + </div>
  60 + </div>
  61 + <div class="mm-form-footer">
  62 + <a href="" class="btn-submit">保存</a>
  63 + </div>
  64 + </div>
  65 + </div>
  66 + </div>
  67 + </div>
  68 +</div>
  69 +<tc_include file="Public:footer"/>
  70 +<!-- js -->
  71 +<script src="__TMPL__Public/assets/js/jquery.min.js"></script>
  72 +<script src="__TMPL__Public/assets/js/common.js"></script>
  73 +<script src="__TMPL__Public/assets/js/mm.js"></script>
  74 +<script type="text/javascript">
  75 + var countdown=60;
  76 + $('#btn').click(function(){
  77 + var btn = this;
  78 + var mobile = $('input[name=mobile]').val();
  79 + /*正则表达式*/
  80 + var AuglyTest_phone = /^1(3|4|5|7|8)\d{9}$/;
  81 + if(!AuglyTest_phone.test(mobile)) {
  82 + alert("电话格式错误!");
  83 + return false;
  84 + }
  85 + $.ajax({
  86 + url:"{:U('Register/send')}",
  87 + type:"POST",
  88 + data:{
  89 + mobile:mobile
  90 + },
  91 + dateType:"json",
  92 + success:function (data) {
  93 + console.log(data);
  94 + if(data.status) {
  95 + alert(data.msg);
  96 + settime(btn);
  97 + } else {
  98 + alert(data.msg);
  99 + }
  100 + },
  101 + error: function (data, status, e) { //提交失败自动执行的处理函数
  102 + alert(e);
  103 + }
  104 + })
  105 + });
  106 + function settime(obj) {
  107 + if (countdown == 0) {
  108 + obj.removeAttribute("disabled");
  109 + obj.value="点击获取";
  110 + countdown = 60;
  111 + return;
  112 + } else {
  113 + obj.setAttribute("disabled", true);
  114 + obj.value="重新发送(" + countdown + ")";
  115 + countdown--;
  116 + }
  117 + setTimeout(function() {
  118 + settime(obj) }
  119 + ,1000)
  120 + }
  121 + $('.btn-submit').click(function(){
  122 + var btn = $(this);
  123 + var text = btn.text();
  124 + var mobile = $('input[name=mobile]').val();
  125 + var password = $('input[name=password]').val();
  126 + var code = $('input[name=code]').val();
  127 + /*正则表达式*/
  128 + var AuglyTest_phone = /^1(3|4|5|7|8)\d{9}$/;
  129 + if(!AuglyTest_phone.test(mobile)) {
  130 + alert("电话格式错误!");
  131 + return false;
  132 + }
  133 + $.ajax({
  134 + url:"{:U('doregister')}",
  135 + type:"POST",
  136 + data:{
  137 + mobile:mobile,
  138 + password:password,
  139 + code:code
  140 + },
  141 + dateType:"json",
  142 + beforeSend: function () {
  143 + // Handle the beforeSend event
  144 + btn.val('注册中...').attr('disabled', true);
  145 + },
  146 + success:function (data) {
  147 + if(data.status) {
  148 + alert(data.msg);
  149 + location.reload();
  150 + } else {
  151 + alert(data.msg);
  152 + }
  153 + },
  154 + error: function (data, status, e) { //提交失败自动执行的处理函数
  155 + alert(e);
  156 + },
  157 + complete: function () {
  158 + // Handle the complete event
  159 + btn.val(text).attr('disabled', false);
  160 + }
  161 + })
  162 + });
  163 +</script>
  164 +<tc_include file="Public:script"/>
  165 +</body>
  166 +</html>
  1 +<!DOCTYPE html>
  2 +<html lang="zh-CN">
  3 +<head>
  4 + <meta charset="utf-8">
  5 + <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6 + <title>pc个人中心_我的资料更改绑定3</title>
  7 + <link href="__TMPL__Public/assets/css/reset.css" rel="stylesheet" type="text/css" />
  8 + <link href="__TMPL__Public/assets/css/common.css" rel="stylesheet" type="text/css" />
  9 + <link href="__TMPL__Public/assets/css/member.css" rel="stylesheet" type="text/css" />
  10 +</head>
  11 +<body>
  12 +<tc_include file="Public:header"/>
  13 +<tc_include file="Public:nav"/>
  14 +<!--mm-container-->
  15 +<div class="mm-container">
  16 + <div class="main clearfix">
  17 + <!--侧边-->
  18 + <tc_include file="User:left"/>
  19 + <!--main-->
  20 + <div class="mm-main">
  21 + <!--概况-->
  22 + <div class="panel same-height">
  23 + <div class="panel-header">
  24 + <div class="panel-title">我的资料</div>
  25 + <div class="breadcrumb">
  26 + 您当前的位置:<a href="">个人中心</a> > <a href="">更改绑定</a>
  27 + </div>
  28 + </div>
  29 + <div class="panel-body">
  30 + <div class="step-wrap">
  31 + <ul class="step-box">
  32 + <li class="step-1 active">
  33 + <div class="num">1</div>
  34 + <div class="text">验证原手机</div>
  35 + </li>
  36 + <li class="step-2 active">
  37 + <div class="num">2</div>
  38 + <div class="text">验证新手机</div>
  39 + </li>
  40 + <li class="step-3 active">
  41 + <div class="num">3</div>
  42 + <div class="text">修改成功</div>
  43 + </li>
  44 + </ul>
  45 + </div>
  46 + <div class="mm-details-tips">
  47 + <div class="tips-hd"><span class="sucess">更改绑定手机号成功!</span></div>
  48 + <div class="tips-link">
  49 + <a href="">返回首页 ></a>
  50 + </div>
  51 + </div>
  52 + </div>
  53 + </div>
  54 + </div>
  55 + </div>
  56 +</div>
  57 +<tc_include file="Public:footer"/>
  58 +<tc_include file="Public:script"/>
  59 +</body>
  60 +</html>
  1 +<!DOCTYPE html>
  2 +<html lang="zh-CN">
  3 +<head>
  4 + <meta charset="utf-8">
  5 + <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6 + <title>pc个人中心_我的资料更改绑定1</title>
  7 + <link href="__TMPL__Public/assets/css/reset.css" rel="stylesheet" type="text/css" />
  8 + <link href="__TMPL__Public/assets/css/common.css" rel="stylesheet" type="text/css" />
  9 + <link href="__TMPL__Public/assets/css/member.css" rel="stylesheet" type="text/css" />
  10 +</head>
  11 +<body>
  12 +<tc_include file="Public:header"/>
  13 +<tc_include file="Public:nav"/>
  14 +<!--mm-container-->
  15 +<div class="mm-container">
  16 + <div class="main clearfix">
  17 + <!--侧边-->
  18 + <tc_include file="User:left"/>
  19 + <!--main-->
  20 + <div class="mm-main">
  21 + <!--概况-->
  22 + <div class="panel same-height">
  23 + <div class="panel-header">
  24 + <div class="panel-title">我的资料</div>
  25 + <div class="breadcrumb">
  26 + 您当前的位置:<a href="">个人中心</a> > <a href="">更改绑定</a>
  27 + </div>
  28 + </div>
  29 + <div class="panel-body">
  30 + <div class="step-wrap">
  31 + <ul class="step-box">
  32 + <li class="step-1 active">
  33 + <div class="num">1</div>
  34 + <div class="text">验证原手机</div>
  35 + </li>
  36 + <li class="step-2">
  37 + <div class="num">2</div>
  38 + <div class="text">验证新手机</div>
  39 + </li>
  40 + <li class="step-3">
  41 + <div class="num">3</div>
  42 + <div class="text">修改成功</div>
  43 + </li>
  44 + </ul>
  45 + </div>
  46 + <div class="mm-form-border">
  47 + <div class="mm-row">
  48 + <div class="hd">请输入原手机号:</div>
  49 + <div class="bd">
  50 + <input type="text" value="" class="mm-input" />
  51 + </div>
  52 + </div>
  53 + <div class="mm-row">
  54 + <div class="hd">短信验证码:</div>
  55 + <div class="bd">
  56 + <input type="text" value="" class="mm-input mm-code-input" />
  57 + <input type="button" class="btnCode" id="btn" value="点击获取" onclick="settime(this)" />
  58 + </div>
  59 + </div>
  60 + </div>
  61 + <div class="mm-form-footer">
  62 + <a href="" class="btn-submit">下一步</a>
  63 + </div>
  64 + </div>
  65 + </div>
  66 + </div>
  67 + </div>
  68 +</div>
  69 +<tc_include file="Public:footer"/>
  70 +<!-- js -->
  71 +<script src="__TMPL__Public/assets/js/jquery.min.js"></script>
  72 +<script src="__TMPL__Public/assets/js/common.js"></script>
  73 +<script src="__TMPL__Public/assets/js/mm.js"></script>
  74 +<script type="text/javascript">
  75 + var countdown=60;
  76 + $('#btn').click(function(){
  77 + var btn = this;
  78 + var mobile = $('input[name=mobile]').val();
  79 + /*正则表达式*/
  80 + var AuglyTest_phone = /^1(3|4|5|7|8)\d{9}$/;
  81 + if(!AuglyTest_phone.test(mobile)) {
  82 + alert("电话格式错误!");
  83 + return false;
  84 + }
  85 + $.ajax({
  86 + url:"{:U('Register/send')}",
  87 + type:"POST",
  88 + data:{
  89 + mobile:mobile
  90 + },
  91 + dateType:"json",
  92 + success:function (data) {
  93 + console.log(data);
  94 + if(data.status) {
  95 + alert(data.msg);
  96 + settime(btn);
  97 + } else {
  98 + alert(data.msg);
  99 + }
  100 + },
  101 + error: function (data, status, e) { //提交失败自动执行的处理函数
  102 + alert(e);
  103 + }
  104 + })
  105 + });
  106 + function settime(obj) {
  107 + if (countdown == 0) {
  108 + obj.removeAttribute("disabled");
  109 + obj.value="点击获取";
  110 + countdown = 60;
  111 + return;
  112 + } else {
  113 + obj.setAttribute("disabled", true);
  114 + obj.value="重新发送(" + countdown + ")";
  115 + countdown--;
  116 + }
  117 + setTimeout(function() {
  118 + settime(obj) }
  119 + ,1000)
  120 + }
  121 + $('.btn-submit').click(function(){
  122 + var btn = $(this);
  123 + var text = btn.text();
  124 + var mobile = $('input[name=mobile]').val();
  125 + var password = $('input[name=password]').val();
  126 + var code = $('input[name=code]').val();
  127 + /*正则表达式*/
  128 + var AuglyTest_phone = /^1(3|4|5|7|8)\d{9}$/;
  129 + if(!AuglyTest_phone.test(mobile)) {
  130 + alert("电话格式错误!");
  131 + return false;
  132 + }
  133 + $.ajax({
  134 + url:"{:U('doregister')}",
  135 + type:"POST",
  136 + data:{
  137 + mobile:mobile,
  138 + password:password,
  139 + code:code
  140 + },
  141 + dateType:"json",
  142 + beforeSend: function () {
  143 + // Handle the beforeSend event
  144 + btn.val('注册中...').attr('disabled', true);
  145 + },
  146 + success:function (data) {
  147 + if(data.status) {
  148 + alert(data.msg);
  149 + location.reload();
  150 + } else {
  151 + alert(data.msg);
  152 + }
  153 + },
  154 + error: function (data, status, e) { //提交失败自动执行的处理函数
  155 + alert(e);
  156 + },
  157 + complete: function () {
  158 + // Handle the complete event
  159 + btn.val(text).attr('disabled', false);
  160 + }
  161 + })
  162 + });
  163 +</script>
  164 +<tc_include file="Public:script"/>
  165 +</body>
  166 +</html>
@@ -30,24 +30,24 @@ @@ -30,24 +30,24 @@
30 <div class="mm-row"> 30 <div class="mm-row">
31 <div class="hd">请输入旧密码:</div> 31 <div class="hd">请输入旧密码:</div>
32 <div class="bd"> 32 <div class="bd">
33 - <input type="text" value="" class="mm-input" /> 33 + <input type="password" name="old_password" autocomplete="off" class="mm-input" />
34 </div> 34 </div>
35 </div> 35 </div>
36 <div class="mm-row"> 36 <div class="mm-row">
37 <div class="hd">请输入新密码:</div> 37 <div class="hd">请输入新密码:</div>
38 <div class="bd"> 38 <div class="bd">
39 - <input type="text" value="" class="mm-input" /> 39 + <input type="password" name="password" value="" class="mm-input" />
40 </div> 40 </div>
41 </div> 41 </div>
42 <div class="mm-row"> 42 <div class="mm-row">
43 <div class="hd">请再次输入新密码:</div> 43 <div class="hd">请再次输入新密码:</div>
44 <div class="bd"> 44 <div class="bd">
45 - <input type="text" value="" class="mm-input" /> 45 + <input type="password" name="repassword" value="" class="mm-input" />
46 </div> 46 </div>
47 </div> 47 </div>
48 </div> 48 </div>
49 <div class="mm-form-footer"> 49 <div class="mm-form-footer">
50 - <a href="" class="btn-submit">确认修改</a> 50 + <a href="javascript:;" class="btn-submit" id="change_pwd">确认修改</a>
51 </div> 51 </div>
52 </div> 52 </div>
53 </div> 53 </div>
@@ -58,6 +58,34 @@ @@ -58,6 +58,34 @@
58 <!-- js --> 58 <!-- js -->
59 <script src="__TMPL__Public/assets/js/jquery.min.js"></script> 59 <script src="__TMPL__Public/assets/js/jquery.min.js"></script>
60 <script src="__TMPL__Public/assets/js/shop.js"></script> 60 <script src="__TMPL__Public/assets/js/shop.js"></script>
  61 +<script type="text/javascript">
  62 + $('#change_pwd').click(function(){
  63 + var btn = $(this);
  64 + var text = btn.html();
  65 + var data = {
  66 + old_password:$('input[name=old_password]').val(),
  67 + password:$('input[name=password]').val(),
  68 + repassword:$('input[name=repassword]').val()
  69 + };
  70 + $.ajax({
  71 + url:"{:U('password_post')}",
  72 + type:"POST",
  73 + data:data,
  74 + dateType:"json",
  75 + success:function (data) {
  76 + if(data.status) {
  77 + alert(data.msg);
  78 + location.reload();
  79 + } else {
  80 + alert(data.msg);
  81 + }
  82 + },
  83 + error: function (data, status, e) { //提交失败自动执行的处理函数
  84 + alert(e);
  85 + }
  86 + })
  87 + });
  88 +</script>
61 <tc_include file="Public:script"/> 89 <tc_include file="Public:script"/>
62 </body> 90 </body>
63 </html> 91 </html>
1 -<!DOCTYPE html>  
2 -<html>  
3 -<head>  
4 -<title>{$site_name}</title>  
5 -<meta name="keywords" content="{$site_seo_keywords}" />  
6 -<meta name="description" content="{$site_seo_description}">  
7 -<meta name="author" content="ThinkCMF">  
8 -<tc_include file="Public:head" />  
9 -</head>  
10 -<body class="body-white" id="top">  
11 - <tc_include file="Public:nav" />  
12 -  
13 - <div class="container tc-main">  
14 - <div class="row">  
15 - <div class="span3">  
16 - <tc_include file="Public:usernav"/>  
17 - </div>  
18 - <div class="span9">  
19 - <div class="tabs">  
20 - <ul class="nav nav-tabs">  
21 - <li class="active"><a href="#one" data-toggle="tab"><i class="fa fa-lock"></i> 修改密码</a></li>  
22 - </ul>  
23 - <div class="tab-content">  
24 - <div class="tab-pane active" id="one">  
25 - <form class="form-horizontal js-ajax-form" action="{:U('profile/password_post')}" method="post">  
26 - <div class="control-group">  
27 - <label class="control-label" for="input-old_password">原始密码</label>  
28 - <div class="controls">  
29 - <input type="password" id="input-old_password" placeholder="原始密码" name="old_password">  
30 - </div>  
31 - </div>  
32 - <div class="control-group">  
33 - <label class="control-label" for="input-password">新密码</label>  
34 - <div class="controls">  
35 - <input type="password" id="input-password" placeholder="新密码" name="password">  
36 - </div>  
37 - </div>  
38 - <div class="control-group">  
39 - <label class="control-label" for="input-repassword">重复密码</label>  
40 - <div class="controls">  
41 - <input type="password" id="input-repassword" placeholder="重复密码" name="repassword">  
42 - </div>  
43 - </div>  
44 - <div class="control-group">  
45 - <div class="controls">  
46 - <button type="submit" class="btn js-ajax-submit">保存</button>  
47 - </div>  
48 - </div>  
49 - </form>  
50 - </div>  
51 - </div>  
52 - </div>  
53 - </div>  
54 - </div>  
55 -  
56 - <tc_include file="Public:footer" />  
57 -  
58 - </div>  
59 - <!-- /container -->  
60 -  
61 - <tc_include file="Public:scripts" />  
62 -</body>  
63 -</html>  
1 -<!DOCTYPE html>  
2 -<html>  
3 -<head>  
4 -<title>重发激活邮件 {$site_name}</title>  
5 -<meta name="keywords" content="{$site_seo_keywords}" />  
6 -<meta name="description" content="{$site_seo_description}">  
7 -<meta name="author" content="ThinkCMF">  
8 -<tc_include file="Public:head" />  
9 -</head>  
10 -  
11 -<body class="body-white">  
12 - <tc_include file="Public:nav" />  
13 -  
14 - <div class="container tc-main">  
15 - <div class="row">  
16 - <div class="span6 offset3">  
17 - <div class="text-center" style="margin-top: 40%;">  
18 - <h2>重发激活邮件?<a href="{:U('user/login/doactive')}">现在就重发吧!</a></h2>  
19 - </div>  
20 - </div>  
21 - </div>  
22 - </div>  
23 -  
24 - <tc_include file="Public:scripts" />  
25 -</body>  
26 -</html>  
@@ -22,91 +22,66 @@ @@ -22,91 +22,66 @@
22 <div class="panel-header"> 22 <div class="panel-header">
23 <div class="panel-title">我的申请</div> 23 <div class="panel-title">我的申请</div>
24 <div class="breadcrumb"> 24 <div class="breadcrumb">
25 - 您当前的位置:<a href="">个人中心</a> > <a href="">我的申请</a> 25 + 您当前的位置:<a href="{:U('User/Center/index')}">个人中心</a> > <a href="">我的申请</a>
26 </div> 26 </div>
27 </div> 27 </div>
28 <div class="panel-body"> 28 <div class="panel-body">
29 <div class="table-main"> 29 <div class="table-main">
30 - <table class="t-table">  
31 - <thead>  
32 - <tr>  
33 - <th>  
34 - 类型  
35 - </th>  
36 - <th width="400">  
37 - 提交时间  
38 - </th>  
39 - <th>  
40 - 状态  
41 - </th>  
42 - <th>  
43 - 操作  
44 - </th>  
45 - </tr>  
46 - </thead>  
47 - <tbody>  
48 - <tr>  
49 - <td>  
50 - 基金会  
51 - </td>  
52 - <td>  
53 - 2018-1-23 12:34  
54 - </td>  
55 - <td>  
56 - <span class="text-red">审核中</span>  
57 - </td>  
58 - <td>  
59 - <div class="action-group">  
60 - <a href="" class="td-link">查看</a><span class="line">|</span><a href="" class="td-link">删除</a><br />  
61 - <a href="" class="td-link">重新提交 ></a>  
62 - </div>  
63 - </td>  
64 - </tr>  
65 - </tbody>  
66 - </table>  
67 - <table class="t-table">  
68 - <thead>  
69 - <tr>  
70 - <th>  
71 - 类型  
72 - </th>  
73 - <th>  
74 - 名称  
75 - </th>  
76 - <th>  
77 - 提交时间  
78 - </th>  
79 - <th>  
80 - 状态  
81 - </th>  
82 - <th>  
83 - 操作  
84 - </th>  
85 - </tr>  
86 - </thead>  
87 - <tbody>  
88 - <tr>  
89 - <td>  
90 - 双创项目  
91 - </td>  
92 - <td>  
93 - <a href="" class="td-link">彝族卡通人物“德龙与雅优”</a>  
94 - </td>  
95 - <td>  
96 - 2018-1-23 12:34  
97 - </td>  
98 - <td>  
99 - <span class="text-red">审核中</span>  
100 - </td>  
101 - <td>  
102 - <div class="action-group">  
103 - <a href="" class="td-link">查看</a><span class="line">|</span><a href="" class="td-link">删除</a><br />  
104 - <a href="" class="td-link">重新提交 ></a>  
105 - </div>  
106 - </td>  
107 - </tr>  
108 - </tbody>  
109 - </table> 30 + <notempty name="foundation">
  31 + <table class="t-table">
  32 + <thead>
  33 + <tr>
  34 + <th>类型</th>
  35 + <th width="400">提交时间</th>
  36 + <th>状态</th>
  37 + <th>操作</th>
  38 + </tr>
  39 + </thead>
  40 + <tbody>
  41 + <tr>
  42 + <td>基金会</td>
  43 + <td>{:date('Y-m-d H:i',$foundation['ctime'])}</td>
  44 + <td><span class="text-red">审核中</span></td>
  45 + <td>
  46 + <div class="action-group">
  47 + <a href="" class="td-link">查看</a><span class="line">|</span><a href="" class="td-link">删除</a><br />
  48 + <a href="" class="td-link">重新提交 ></a>
  49 + </div>
  50 + </td>
  51 + </tr>
  52 + </tbody>
  53 + </table>
  54 + </notempty>
  55 + <notempty name="will">
  56 + <table class="t-table">
  57 + <thead>
  58 + <tr>
  59 + <th>类型</th>
  60 + <th width="400">提交时间</th>
  61 + <th>状态</th>
  62 + <th>操作</th>
  63 + </tr>
  64 + </thead>
  65 + <tbody>
  66 + <tr>
  67 + <td>鹿鸣社</td>
  68 + <td>{:date('Y-m-d H:i',$will['ctime'])}</td>
  69 + <td>
  70 + <eq name="will.status" value="1"><span class="text-red">审核中</span></eq>
  71 + <eq name="will.status" value="2"><span class="text-red">审核通过</span></eq>
  72 + <eq name="will.status" value="3"><span class="text-red">审核未通过</span></eq>
  73 + </td>
  74 + <td>
  75 + <div class="action-group">
  76 + <a href="" class="td-link">查看</a><span class="line">|</span>
  77 + <eq name="will.status" value="1"><a href="" class="td-link">删除</a></eq><br />
  78 + <eq name="will.status" value="3"><a href="" class="td-link">重新提交 ></a></eq>
  79 + </div>
  80 + </td>
  81 + </tr>
  82 + </tbody>
  83 + </table>
  84 + </notempty>
110 </div> 85 </div>
111 </div> 86 </div>
112 </div> 87 </div>
  1 +<!DOCTYPE html>
  2 +<html lang="zh-CN">
  3 +<head>
  4 + <meta charset="utf-8">
  5 + <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6 + <title>pc报名支付</title>
  7 + <link href="__TMPL__Public/assets/css/reset.css" rel="stylesheet" type="text/css" />
  8 + <link href="__TMPL__Public/assets/css/common.css" rel="stylesheet" type="text/css" />
  9 + <link href="__TMPL__Public/assets/css/shop.css" rel="stylesheet" type="text/css" />
  10 +</head>
  11 +<body>
  12 +<tc_include file="Public:header"/>
  13 +<tc_include file="Public:nav"/>
  14 +<!---container-->
  15 +<div class="s-container">
  16 + <div class="pay-out-wrap">
  17 + <div class="main">
  18 + <div class="pay-section" style="margin-bottom: 20px;">
  19 + <div class="pay-in-header">
  20 + <span class="pay-ico">报名提交成功!</span>
  21 + </div>
  22 + <div class="pay-in-body">
  23 + <div class="pay-infos">
  24 + 订单号:{$orderInfo.order_sn}<br>
  25 + 活动名称:{$orderInfo.name}<br>
  26 + 报名时间:{:date('Y-m-d H:i',$orderInfo['ctime'])}
  27 + </div>
  28 + </div>
  29 + </div>
  30 + <div class="pay-section">
  31 + <div class="pay-in-header">
  32 + <span class="text">选择支付方式</span>
  33 + </div>
  34 + <div class="pay-in-body">
  35 + <div class="pay-style" data-id="{$orderInfo.id}">
  36 + <label class="pay-box active" data-id="1"><img src="__TMPL__Public/assets/images/shop_zfb_normal.png"/><input type="radio" checked="" class="payradio alipay-radio" name="pay" /></label>
  37 + <label class="pay-box" data-id="2"><img src="__TMPL__Public/assets/images/shop_wechat_normal.png"/><input type="radio" class="payradio wechat-radio" name="pay" /></label>
  38 + </div>
  39 + <div class="pay-in-weixin" style="display: none;">
  40 + <img src="http://ccimc.com/simplewind/Core/Library/Vendor/WxpayAPI/example/qrcode.php?data={$qrcode}" alt=""/>
  41 + </div>
  42 + </div>
  43 + </div>
  44 + <div class="pay-footer">
  45 + <a href="javascript:;" class="pay-button">去付款</a>
  46 + <div class="pay-price">应付总额:<span>¥<i>{$orderInfo.price_count}</i></span></div>
  47 + </div>
  48 + </div>
  49 + </div>
  50 +</div>
  51 +<tc_include file="Public:footer"/>
  52 +<!-- js -->
  53 +<script src="__TMPL__Public/assets/js/jquery.min.js"></script>
  54 +<script>
  55 + $(function(){
  56 + //支付
  57 + $('.pay-box').click(function(){
  58 + var type = $(this).data('id');
  59 + var id = $(this).parent().data('id');
  60 + $(this).addClass('active').siblings('.pay-box').removeClass('active');
  61 + });
  62 + $('.wechat-radio').change(function(){
  63 + if($(this).is(":checked")){
  64 + $('.pay-in-weixin').show();
  65 + }
  66 + });
  67 + $('.alipay-radio').change(function(){
  68 + if($(this).is(":checked")){
  69 + $('.pay-in-weixin').hide();
  70 + }
  71 + });
  72 +
  73 + checkStatus();
  74 + setInterval(function() {
  75 + checkStatus();
  76 + },1000);
  77 + function checkStatus() {
  78 + $.ajax({
  79 + url:"{:U('Portal/Notify/searchStatus')}",
  80 + type:"POST",
  81 + data:{
  82 + order_sn:"{$orderInfo.order_sn}"
  83 + },
  84 + dateType:"json",
  85 + success:function (data) {
  86 + if(data.status) {
  87 + alert('报名成功');
  88 + location.href = "{:U('User/Center/index')}";
  89 + }
  90 + }
  91 + });
  92 + }
  93 + });
  94 +</script>
  95 +<tc_include file="Public:script"/>
  96 +</body>
  97 +</html>
1 -<!DOCTYPE html>  
2 -<html>  
3 -<head>  
4 -<title>{$site_name}</title>  
5 -<meta name="keywords" content="{$site_seo_keywords}" />  
6 -<meta name="description" content="{$site_seo_description}">  
7 -<meta name="author" content="ThinkCMF">  
8 -<tc_include file="Public:head" />  
9 -<style>  
10 -.control-label{  
11 - font-weight: bold;  
12 - float: left;  
13 - width: 70px;  
14 -}  
15 -</style>  
16 -</head>  
17 -<body class="body-white" id="top">  
18 - <tc_include file="Public:nav" />  
19 -  
20 - <div class="container tc-main">  
21 - <div class="row">  
22 - <div class="span3">  
23 - <tc_include file="Public:usernav"/>  
24 - </div>  
25 - <div class="span9">  
26 - <div class="tabs">  
27 - <ul class="nav nav-tabs">  
28 - <li class="active"><a href="#one" data-toggle="tab"><i class="fa fa-list-alt"></i>个人中心</a></li>  
29 - </ul>  
30 - <div class="tab-content">  
31 - <div class="tab-pane active" id="one">  
32 - <div class="span2">  
33 - <a href="{:U('profile/avatar')}">  
34 - <if condition="empty($avatar)">  
35 - <img src="__TMPL__Public/assets/images/headicon_128.png" class="headicon"/>  
36 - <else/>  
37 - <img src="{:sp_get_user_avatar_url($avatar)}" class="headicon"/>  
38 - </if>  
39 - </a>  
40 - </div>  
41 - <div class="span3">  
42 - <div class="control-group">  
43 - <label class="control-label" for="input-user_nicename">昵称</label>  
44 - <div class="controls">  
45 - {$user_nicename|default='未填写'}  
46 - </div>  
47 - </div>  
48 - <div class="control-group">  
49 - <label class="control-label" for="input-sex">性别</label>  
50 - <div class="controls">  
51 - <php>  
52 - $sexs=array("0"=>"保密","1"=>"程序猿","2"=>"程序媛");  
53 -  
54 - </php>  
55 - {$sexs[$sex]}  
56 - </div>  
57 - </div>  
58 - <div class="control-group">  
59 - <label class="control-label" for="input-birthday">生日</label>  
60 - <div class="controls">  
61 - {$birthday|default='未填写'}  
62 - </div>  
63 - </div>  
64 - <div class="control-group">  
65 - <label class="control-label" for="input-user_url">个人网址</label>  
66 - <div class="controls">  
67 - {$user_url|default='未填写'}  
68 - </div>  
69 - </div>  
70 - <div class="control-group">  
71 - <label class="control-label" for="input-signature">个性签名</label>  
72 - <div class="controls">  
73 - {$signature|default='未填写'}  
74 - </div>  
75 - </div>  
76 - <div class="control-group">  
77 - <div class="controls">  
78 - <a href="{:U('user/profile/edit')}" type="submit" class="btn">编辑</a>  
79 - </div>  
80 - </div>  
81 - </div>  
82 - </div>  
83 - </div>  
84 - </div>  
85 - </div>  
86 - </div>  
87 -  
88 - <tc_include file="Public:footer" />  
89 -  
90 - </div>  
91 - <!-- /container -->  
92 -  
93 - <tc_include file="Public:scripts" />  
94 -</body>  
95 -</html>  
@@ -27,153 +27,90 @@ @@ -27,153 +27,90 @@
27 </div> 27 </div>
28 <div class="panel-body"> 28 <div class="panel-body">
29 <div class="table-main"> 29 <div class="table-main">
30 - <table class="t-table">  
31 - <thead>  
32 - <tr>  
33 - <th>  
34 - 类型  
35 - </th>  
36 - <th>  
37 - 活动名称  
38 - </th>  
39 - <th>  
40 - 我的投稿时间  
41 - </th>  
42 - <th>  
43 - 状态  
44 - </th>  
45 - <th>  
46 - 报名费  
47 - </th>  
48 - <th>  
49 - 操作  
50 - </th>  
51 - </tr>  
52 - </thead>  
53 - <tbody>  
54 - <tr>  
55 - <td>  
56 - 青年文创  
57 - </td>  
58 - <td>  
59 - <a href="" class="td-link">青年文创征集活动</a>  
60 - </td>  
61 - <td>  
62 - 2018-1-23 12:34  
63 - </td>  
64 - <td>  
65 - <div class="text-red">一等奖</div>  
66 - </td>  
67 - <td>  
68 - ¥400  
69 - </td>  
70 - <td>  
71 - <div class="action-group">  
72 - <a href="" class="td-link">查看</a><span class="line">|</span><a href="" class="td-link">删除</a><br />  
73 - <a href="" class="td-link">重新提交 ></a>  
74 - </div>  
75 - </td>  
76 - </tr>  
77 - </tbody>  
78 - </table>  
79 - <table class="t-table">  
80 - <thead>  
81 - <tr>  
82 - <th>  
83 - 类型  
84 - </th>  
85 - <th>  
86 - 活动名称  
87 - </th>  
88 - <th>  
89 - 我的投稿时间  
90 - </th>  
91 - <th>  
92 - 状态  
93 - </th>  
94 - <th>  
95 - 报名费  
96 - </th>  
97 - <th>  
98 - 操作  
99 - </th>  
100 - </tr>  
101 - </thead>  
102 - <tbody>  
103 - <tr>  
104 - <td>  
105 - 青年文创  
106 - </td>  
107 - <td>  
108 - <a href="" class="td-link">青年文创征集活动</a>  
109 - </td>  
110 - <td>  
111 - 2018-1-23 12:34  
112 - </td>  
113 - <td>  
114 - <div class="text-red">选稿中</div>  
115 - </td>  
116 - <td>  
117 - ¥400  
118 - </td>  
119 - <td>  
120 - <div class="action-group">  
121 - <a href="" class="td-link">查看</a><span class="line">|</span><a href="" class="td-link">删除</a><br />  
122 - <a href="" class="td-link">重新提交 ></a>  
123 - </div>  
124 - </td>  
125 - </tr>  
126 - </tbody>  
127 - </table>  
128 - <table class="t-table">  
129 - <thead>  
130 - <tr>  
131 - <th>  
132 - 类型  
133 - </th>  
134 - <th>  
135 - 活动名称  
136 - </th>  
137 - <th>  
138 - 我的投稿时间  
139 - </th>  
140 - <th>  
141 - 状态  
142 - </th>  
143 - <th>  
144 - 报名费  
145 - </th>  
146 - <th>  
147 - 操作  
148 - </th>  
149 - </tr>  
150 - </thead>  
151 - <tbody>  
152 - <tr>  
153 - <td>  
154 - 青年文创  
155 - </td>  
156 - <td>  
157 - <a href="" class="td-link">青年文创征集活动</a>  
158 - </td>  
159 - <td>  
160 - 2018-1-23 12:34  
161 - </td>  
162 - <td>  
163 - 已结束  
164 - </td>  
165 - <td>  
166 - ¥400  
167 - </td>  
168 - <td>  
169 - <div class="action-group">  
170 - <a href="" class="td-link">查看</a><span class="line">|</span><a href="" class="td-link">删除</a><br />  
171 - <a href="" class="td-link">重新提交 ></a>  
172 - </div>  
173 - </td>  
174 - </tr>  
175 - </tbody>  
176 - </table> 30 + <notempty name="chance">
  31 + <volist name="chance" id="vo">
  32 + <table class="t-table">
  33 + <thead>
  34 + <tr>
  35 + <th>类型</th>
  36 + <th>活动名称</th>
  37 + <th>我的投稿时间</th>
  38 + <th>状态</th>
  39 + <th>操作</th>
  40 + </tr>
  41 + </thead>
  42 + <tbody>
  43 + <tr>
  44 + <td>青年文创</td>
  45 + <td><a href="javascript:;" class="td-link">{$vo.name}</a></td>
  46 + <td>{:date('Y-m-d H:i',$vo['ctime'])}</td>
  47 + <td><eq name="vo.is_issue" value="1"><div class="text-red">已发布</div></eq><eq name="vo.is_issue" value="0"><div class="text-red">未发布</div></eq></td>
  48 + <td>
  49 + <div class="action-group">
  50 + <eq name="vo.is_issue" value="1"><a href="" class="td-link">查看</a></eq>
  51 + </div>
  52 + </td>
  53 + </tr>
  54 + </tbody>
  55 + </table>
  56 + </volist>
  57 + </notempty>
  58 + <notempty name="story">
  59 + <volist name="story" id="vo">
  60 + <table class="t-table">
  61 + <thead>
  62 + <tr>
  63 + <th>类型</th>
  64 + <th>活动名称</th>
  65 + <th>我的投稿时间</th>
  66 + <th>状态</th>
  67 + <th>操作</th>
  68 + </tr>
  69 + </thead>
  70 + <tbody>
  71 + <tr>
  72 + <td>恋物故事</td>
  73 + <td><a href="javascript:;" class="td-link">{$vo.name}</a></td>
  74 + <td>{:date('Y-m-d H:i',$vo['ctime'])}</td>
  75 + <td><eq name="vo.is_issue" value="1"><div class="text-red">已发布</div></eq><eq name="vo.is_issue" value="0"><div class="text-red">未发布</div></eq></td>
  76 + <td>
  77 + <div class="action-group">
  78 + <eq name="vo.is_issue" value="1"><a href="" class="td-link">查看</a></eq>
  79 + </div>
  80 + </td>
  81 + </tr>
  82 + </tbody>
  83 + </table>
  84 + </volist>
  85 + </notempty>
  86 + <notempty name="willProduce">
  87 + <volist name="willProduce" id="vo">
  88 + <table class="t-table">
  89 + <thead>
  90 + <tr>
  91 + <th>类型</th>
  92 + <th>活动名称</th>
  93 + <th>我的投稿时间</th>
  94 + <th>状态</th>
  95 + <th>操作</th>
  96 + </tr>
  97 + </thead>
  98 + <tbody>
  99 + <tr>
  100 + <td>双创项目</td>
  101 + <td><a href="javascript:;" class="td-link">{$vo.name}</a></td>
  102 + <td>{:date('Y-m-d H:i',$vo['ctime'])}</td>
  103 + <td><eq name="vo.is_issue" value="1"><div class="text-red">已发布</div></eq><eq name="vo.is_issue" value="0"><div class="text-red">未发布</div></eq></td>
  104 + <td>
  105 + <div class="action-group">
  106 + <eq name="vo.is_issue" value="1"><a href="" class="td-link">查看</a></eq>
  107 + </div>
  108 + </td>
  109 + </tr>
  110 + </tbody>
  111 + </table>
  112 + </volist>
  113 + </notempty>
177 </div> 114 </div>
178 </div> 115 </div>
179 </div> 116 </div>
1 -<!DOCTYPE html>  
2 -<html>  
3 -<head>  
4 - <meta charset="utf-8">  
5 - <title>{$site_name} 账号激活</title>  
6 - <meta name="viewport" content="width=device-width, initial-scale=1.0">  
7 - <tc_include file="Public:css" />  
8 -</head>  
9 -<body>  
10 -<tc_include file="Public:menu" />  
11 -<div class="wrapper">  
12 - <tc_include file="Public:header" />  
13 -  
14 - <div class="slice bg-3 section">  
15 - <div class="w-section inverse">  
16 - <div class="container">  
17 - <div class="row">  
18 - <div class="col-md-6 col-md-offset-3 col-sm-6 col-sm-offset-3">  
19 - <div class="w-section inverse">  
20 - <div class="w-box sign-in-wr bg-5">  
21 -  
22 - <div class="form-header">  
23 - <h2>用户登录</h2>  
24 - </div>  
25 - <div class="form-body">  
26 - <p>您的账号还没激活,  
27 - <a id="resend" href="javascript:;">重新发送激活邮件</a>&nbsp;  
28 - <a href="{$goto}" target="blank">进入邮件</a>  
29 - </p>  
30 - </div>  
31 - </div>  
32 - </div>  
33 - </div>  
34 - </div>  
35 - </div>  
36 - </div>  
37 - </div>  
38 -  
39 - <tc_include file="Public:footer" />  
40 -</div>  
41 -  
42 -<tc_include file="Public:scripts" />  
43 -<script>  
44 -$(function(){  
45 - $("#resend").click(function(){  
46 - $.get('{:U("member/index/disable")}',  
47 - {'control':'sendmail'},  
48 - function(data){  
49 - alert(data.info);  
50 - },'json')  
51 - });  
52 -});  
53 -</script>  
54 -  
55 -</body>  
56 -</html>  
1 -<!DOCTYPE html>  
2 -<html>  
3 -<head>  
4 - <title>{$site_name}</title>  
5 - <meta name="keywords" content="{$site_seo_keywords}" />  
6 - <meta name="description" content="{$site_seo_description}">  
7 - <meta name="author" content="ThinkCMF">  
8 - <tc_include file="Public:head" />  
9 - <style>  
10 - .control-label{  
11 - font-weight: bold;  
12 - float: left;  
13 - width: 70px;  
14 - }  
15 - </style>  
16 -</head>  
17 -<body class="body-white" id="top">  
18 -<tc_include file="Public:nav" />  
19 -  
20 -<div class="container tc-main">  
21 - <div class="row">  
22 - <div class="span3">  
23 - <tc_include file="Public:usernav"/>  
24 - </div>  
25 - <div class="span9">  
26 - <div class="tabs">  
27 - <ul class="nav nav-tabs">  
28 - <li class="active"><a href="#one" data-toggle="tab"><i class="fa fa-list-alt"></i>个人中心</a></li>  
29 - </ul>  
30 - <div class="tab-content">  
31 -  
32 -  
33 - </div>  
34 - </div>  
35 - </div>  
36 - </div>  
37 -  
38 - <tc_include file="Public:footer" />  
39 -  
40 -</div>  
41 -<!-- /container -->  
42 -  
43 -<tc_include file="Public:scripts" />  
44 -</body>  
45 -</html>  
@@ -23,19 +23,16 @@ @@ -23,19 +23,16 @@
23 <input type="button" value="获取验证码" id="btn" class="btnCode" onclick="settime(this)"/> 23 <input type="button" value="获取验证码" id="btn" class="btnCode" onclick="settime(this)"/>
24 </div> 24 </div>
25 <div class="form-group"> 25 <div class="form-group">
26 - <input type="text" class="form-control" placeholder="请输入旧密码" /> 26 + <input type="text" id="input_password" name="password" class="form-control" placeholder="请输入新密码" />
27 </div> 27 </div>
28 <div class="form-group"> 28 <div class="form-group">
29 - <input type="text" class="form-control" placeholder="请输入新密码" />  
30 - </div>  
31 - <div class="form-group">  
32 - <input type="text" class="form-control" placeholder="请再次输入新密码" /> 29 + <input type="text" id="input_repassword" name="repassword" class="form-control" placeholder="请再次输入新密码" />
33 </div> 30 </div>
34 <div class="form-button"> 31 <div class="form-button">
35 - <button class="btn-submit">确认提交</button> 32 + <button type="button" class="btn-submit">确认提交</button>
36 </div> 33 </div>
37 <div class="form-footer"> 34 <div class="form-footer">
38 - <a href="" class="cur">去登录></a> 35 + <a href="{:U('User/Login/index')}" class="cur">去登录></a>
39 </div> 36 </div>
40 </div> 37 </div>
41 </div> 38 </div>
1 <!--侧边--> 1 <!--侧边-->
2 <div class="mm-sidebar"> 2 <div class="mm-sidebar">
3 <div class="mm-avatar"> 3 <div class="mm-avatar">
4 - <img src="__TMPL__Public/assets/images/demo/m-avatar.png"/> 4 + <img src="{$avatar}"/>
5 <p><empty name="nickname">{$mobile}<else/>{$nickname}</empty></p> 5 <p><empty name="nickname">{$mobile}<else/>{$nickname}</empty></p>
6 </div> 6 </div>
7 <div class="mm-navbar"> 7 <div class="mm-navbar">
1 -<!DOCTYPE html>  
2 -<html>  
3 -<head>  
4 -<title>{$site_name}</title>  
5 -<meta name="keywords" content="{$site_seo_keywords}" />  
6 -<meta name="description" content="{$site_seo_description}">  
7 -<meta name="author" content="ThinkCMF">  
8 -<tc_include file="Public:head" />  
9 -</head>  
10 -  
11 -<body class="body-white">  
12 - <tc_include file="Public:nav" />  
13 -  
14 - <div class="container tc-main">  
15 - <div class="row">  
16 - <div class="span4 offset4">  
17 - <h2 class="text-center">用户登录</h2>  
18 - <form class="form-horizontal js-ajax-form" action="{:U('user/login/dologin')}" method="post">  
19 - <div class="control-group">  
20 - <input type="text" id="input_username" name="username" placeholder="手机号/邮箱/用户名" class="span4" required>  
21 - </div>  
22 -  
23 - <div class="control-group">  
24 - <input type="password" id="input_password" name="password" placeholder="密码" class="span4" required>  
25 - </div>  
26 -  
27 - <div class="control-group">  
28 - <div class="span4" style="margin-left: 0px;">  
29 - <input type="text" id="input_verify" name="verify" placeholder="验证码" style="width:252px;" required>  
30 - {:sp_verifycode_img('length=4&font_size=14&width=100&height=34&charset=2345678&use_noise=1&use_curve=0')}  
31 - </div>  
32 -  
33 - </div>  
34 -  
35 - <div class="control-group">  
36 - <button class="btn btn-primary js-ajax-submit span4" type="submit" style="margin-left: 0px">确定</button>  
37 - </div>  
38 -  
39 - <div class="control-group" style="text-align: center;">  
40 - <ul class="inline">  
41 - <li><a href="{:leuu('user/register/index')}">现在注册</a></li>  
42 - <li><a href="{:U('user/login/forgot_password')}">忘记密码</a></li>  
43 - </ul>  
44 - </div>  
45 - </form>  
46 - </div>  
47 - </div>  
48 -  
49 - <tc_include file="Public:footer" />  
50 -  
51 - </div>  
52 - <!-- /container -->  
53 -  
54 - <tc_include file="Public:scripts" />  
55 -</body>  
56 -</html>  
@@ -126,7 +126,7 @@ @@ -126,7 +126,7 @@
126 btn.val(text).attr('disabled', false); 126 btn.val(text).attr('disabled', false);
127 } 127 }
128 }) 128 })
129 - }) 129 + });
130 </script> 130 </script>
131 <tc_include file="Public:script"/> 131 <tc_include file="Public:script"/>
132 </body> 132 </body>
1 -<!DOCTYPE html>  
2 -<html>  
3 -<head>  
4 -<title>{$site_name}</title>  
5 -<meta name="keywords" content="{$site_seo_keywords}" />  
6 -<meta name="description" content="{$site_seo_description}">  
7 -<meta name="author" content="ThinkCMF">  
8 -<tc_include file="Public:head" />  
9 -</head>  
10 -  
11 -<body class="body-white">  
12 - <tc_include file="Public:nav" />  
13 -  
14 - <div class="container tc-main">  
15 - <div class="row">  
16 - <div class="span4 offset4">  
17 - <h2 class="text-center">用户注册</h2>  
18 - <!-- <ul class="nav nav-tabs" id="myTab">  
19 - <li class="active"><a href="#mobile" data-toggle="tab">手机注册</a></li>  
20 - <li><a href="#email" data-toggle="tab">邮箱注册</a></li>  
21 - </ul> -->  
22 -  
23 - <div class="tab-content">  
24 - <div class="tab-pane" id="mobile">  
25 - <form class="form-horizontal js-ajax-form" action="{:U('user/register/doregister')}" method="post">  
26 -  
27 - <div class="control-group">  
28 - <input type="text" name="mobile" placeholder="手机号" class="span4">  
29 - </div>  
30 -  
31 - <div class="control-group">  
32 - <input type="password" name="password" placeholder="密码" class="span4">  
33 - </div>  
34 -  
35 - <div class="control-group">  
36 - <div class="span4" style="margin-left: 0px;">  
37 - <input type="text" name="verify" placeholder="验证码" style="width:232px;">  
38 - {:sp_verifycode_img('length=4&font_size=14&width=120&height=34&charset=1234567890&use_noise=1&use_curve=0')}  
39 - </div>  
40 - </div>  
41 -  
42 - <div class="control-group">  
43 - <div class="span4" style="margin-left: 0px;">  
44 - <input type="text" name="mobile_verify" placeholder="手机验证码" style="width:232px;">  
45 - <a class="btn btn-success" style="width: 96px;">获取验证码</a>  
46 - </div>  
47 - </div>  
48 -  
49 - <div class="control-group">  
50 - <button class="btn btn-primary js-ajax-submit span4" type="submit" data-wait="1500" style="margin-left: 0px;">确定注册</button>  
51 - </div>  
52 -  
53 - <div class="control-group" style="text-align: center;">  
54 - <p>  
55 - 已有账号? <a href="{:leuu('user/login/index')}">点击此处登录</a>  
56 - </p>  
57 - </div>  
58 - </form>  
59 - </div>  
60 - <div class="tab-pane active" id="email">  
61 - <form class="form-horizontal js-ajax-form" action="{:U('user/register/doregister')}" method="post">  
62 -  
63 - <div class="control-group">  
64 - <input type="text" name="email" placeholder="邮箱" class="span4">  
65 - </div>  
66 -  
67 - <div class="control-group">  
68 - <input type="password" name="password" placeholder="密码" class="span4">  
69 - </div>  
70 -  
71 - <div class="control-group">  
72 - <input type="password" name="repassword" placeholder="重复密码" class="span4">  
73 - </div>  
74 -  
75 - <div class="control-group">  
76 - <div class="span4" style="margin-left: 0px;">  
77 - <input type="text" name="verify" placeholder="验证码" style="width:252px;">  
78 - {:sp_verifycode_img('length=4&font_size=14&width=100&height=34&charset=1234567890&use_noise=1&use_curve=0')}  
79 - </div>  
80 -  
81 - </div>  
82 -  
83 - <div class="control-group">  
84 - <button class="btn btn-primary js-ajax-submit span4" type="submit" data-wait="1500" style="margin-left: 0px;">确定注册</button>  
85 - </div>  
86 -  
87 - <div class="control-group" style="text-align: center;">  
88 - <p>  
89 - 已有账号? <a href="{:leuu('user/login/index')}">点击此处登录</a>  
90 - </p>  
91 - </div>  
92 - </form>  
93 -  
94 - </div>  
95 - </div>  
96 -  
97 - </div>  
98 - </div>  
99 -  
100 - <tc_include file="Public:footer" />  
101 -  
102 - </div>  
103 - <!-- /container -->  
104 -  
105 - <tc_include file="Public:scripts" />  
106 -</body>  
107 -</html>  
@@ -22,103 +22,38 @@ @@ -22,103 +22,38 @@
22 <div class="panel-header"> 22 <div class="panel-header">
23 <div class="panel-title">我的报名</div> 23 <div class="panel-title">我的报名</div>
24 <div class="breadcrumb"> 24 <div class="breadcrumb">
25 - 您当前的位置:<a href="">个人中心</a> > <a href="">我的报名</a> 25 + 您当前的位置:<a href="{:U('User/Center/index')}">个人中心</a> > <a href="">我的报名</a>
26 </div> 26 </div>
27 </div> 27 </div>
28 <div class="panel-body"> 28 <div class="panel-body">
29 <div class="table-main"> 29 <div class="table-main">
30 - <table class="t-table">  
31 - <thead>  
32 - <tr>  
33 - <th>  
34 - 类型  
35 - </th>  
36 - <th>  
37 - 名称  
38 - </th>  
39 - <th>  
40 - 我的报名时间  
41 - </th>  
42 - <th>  
43 - 状态  
44 - </th>  
45 - <th>  
46 - 费用  
47 - </th>  
48 - <th>  
49 - 操作  
50 - </th>  
51 - </tr>  
52 - </thead>  
53 - <tbody>  
54 - <tr>  
55 - <td>  
56 - 课程培训  
57 - </td>  
58 - <td>  
59 - <a href="" class="td-link">古琴培训</a>  
60 - </td>  
61 - <td>  
62 - 2018-1-23 12:34  
63 - </td>  
64 - <td>  
65 - <div class="text-red">审核中</div>  
66 - </td>  
67 - <td>  
68 - ¥400  
69 - </td>  
70 - <td>  
71 - <a href="" class="td-link">删除</a>  
72 - </td>  
73 - </tr>  
74 - </tbody>  
75 - </table>  
76 - <table class="t-table">  
77 - <thead>  
78 - <tr>  
79 - <th>  
80 - 类型  
81 - </th>  
82 - <th>  
83 - 名称  
84 - </th>  
85 - <th>  
86 - 我的报名时间  
87 - </th>  
88 - <th>  
89 - 状态  
90 - </th>  
91 - <th>  
92 - 费用  
93 - </th>  
94 - <th>  
95 - 操作  
96 - </th>  
97 - </tr>  
98 - </thead>  
99 - <tbody>  
100 - <tr>  
101 - <td>  
102 - 课程培训  
103 - </td>  
104 - <td>  
105 - <a href="" class="td-link">古琴培训</a>  
106 - </td>  
107 - <td>  
108 - 2018-1-23 12:34  
109 - </td>  
110 - <td>  
111 - <div class="text-red">审核中</div>  
112 - </td>  
113 - <td>  
114 - ¥400  
115 - </td>  
116 - <td>  
117 - <a href="" class="td-link">删除</a>  
118 - </td>  
119 - </tr>  
120 - </tbody>  
121 - </table> 30 + <volist name="list" id="vo">
  31 + <table class="t-table">
  32 + <thead>
  33 + <tr>
  34 + <th>类型</th>
  35 + <th>名称</th>
  36 + <th>我的报名时间</th>
  37 + <th>状态</th>
  38 + <th>费用</th>
  39 + <th>操作</th>
  40 + </tr>
  41 + </thead>
  42 + <tbody>
  43 + <tr>
  44 + <td><eq name="vo.sheet" value="Train">体验培训</eq><eq name="vo.sheet" value="ChanceEvents">活动赛事</eq></td>
  45 + <td><a href="{:U('Portal/'.$vo['sheet'].'/detail',array('id'=>$vo['sheet_id']))}" class="td-link">{$vo.sign.name}</a></td>
  46 + <td>{:date('Y-m-d H:i',$vo['ctime'])}</td>
  47 + <td>
  48 + <eq name="vo.status" value="1"><div class="text-red">待支付</div></eq>
  49 + <eq name="vo.status" value="2"><div class="text-red">已参与</div></eq>
  50 + </td>
  51 + <td><empty name="vo.price_count">免费<else/>¥{$vo.price_count}</empty></td>
  52 + <td><a href="javascript:;" class="td-link">删除</a></td>
  53 + </tr>
  54 + </tbody>
  55 + </table>
  56 + </volist>
122 </div> 57 </div>
123 </div> 58 </div>
124 </div> 59 </div>