作者 v_bairong06

功能整体调试

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