作者 何书鹏
1 个管道 的构建 通过 耗费 29 秒

数据统计

正在显示 48 个修改的文件 包含 2430 行增加4 行删除
@@ -49,15 +49,12 @@ class Statistic extends Backend @@ -49,15 +49,12 @@ class Statistic extends Backend
49 switch ($type){ 49 switch ($type){
50 case 'day': 50 case 'day':
51 $date = "DATE_FORMAT(today,'%y年%m月%d日')"; 51 $date = "DATE_FORMAT(today,'%y年%m月%d日')";
52 - $order = "DATE_FORMAT(today,'%y%m%d')";  
53 break; 52 break;
54 case 'week': 53 case 'week':
55 $date = "DATE_FORMAT(today,'%y年%u周')"; 54 $date = "DATE_FORMAT(today,'%y年%u周')";
56 - $order = "DATE_FORMAT(today,'%y%u')";  
57 break; 55 break;
58 case 'month': 56 case 'month':
59 $date = "DATE_FORMAT(today,'%y年%m月')"; 57 $date = "DATE_FORMAT(today,'%y年%m月')";
60 - $order = "DATE_FORMAT(today,'%y%m')";  
61 break; 58 break;
62 } 59 }
63 $total = $this->model 60 $total = $this->model
@@ -67,7 +64,7 @@ class Statistic extends Backend @@ -67,7 +64,7 @@ class Statistic extends Backend
67 64
68 $list = $this->model 65 $list = $this->model
69 ->field("*,{$date} date") 66 ->field("*,{$date} date")
70 - ->order($order) 67 + ->order("today desc")
71 ->group('date') 68 ->group('date')
72 ->select(); 69 ->select();
73 70
  1 +<?php
  2 +
  3 +namespace app\admin\controller\mobile\course;
  4 +
  5 +use app\common\controller\Backend;
  6 +
  7 +/**
  8 + * 课程订单管理
  9 + *
  10 + * @icon fa fa-circle-o
  11 + */
  12 +class CourseOrder extends Backend
  13 +{
  14 +
  15 + /**
  16 + * CourseOrder模型对象
  17 + * @var \app\admin\model\mobile\course\CourseOrder
  18 + */
  19 + protected $model = null;
  20 +
  21 + public function _initialize()
  22 + {
  23 + parent::_initialize();
  24 + $this->model = new \app\admin\model\mobile\course\CourseOrder;
  25 + $this->view->assign("payTypeList", $this->model->getPayTypeList());
  26 + $this->view->assign("payStatusList", $this->model->getPayStatusList());
  27 + $this->view->assign("isTopList", $this->model->getIsTopList());
  28 + }
  29 +
  30 + /**
  31 + * 默认生成的控制器所继承的父类中有index/add/edit/del/multi五个基础方法、destroy/restore/recyclebin三个回收站方法
  32 + * 因此在当前控制器中可不用编写增删改查的代码,除非需要自己控制这部分逻辑
  33 + * 需要将application/admin/library/traits/Backend.php中对应的方法复制到当前控制器,然后进行修改
  34 + */
  35 +
  36 +
  37 + /**
  38 + * 查看
  39 + */
  40 + public function index()
  41 + {
  42 + //当前是否为关联查询
  43 + $this->relationSearch = true;
  44 + //设置过滤方法
  45 + $this->request->filter(['strip_tags', 'trim']);
  46 + if ($this->request->isAjax())
  47 + {
  48 + //如果发送的来源是Selectpage,则转发到Selectpage
  49 + if ($this->request->request('keyField'))
  50 + {
  51 + return $this->selectpage();
  52 + }
  53 + list($where, $sort, $order, $offset, $limit) = $this->buildparams();
  54 + $total = $this->model
  55 + ->with(['mobilecompany','user','mobilecourse','mobilecoursespec'])
  56 + ->where($where)
  57 + ->order($sort, $order)
  58 + ->count();
  59 +
  60 + $list = $this->model
  61 + ->with(['mobilecompany','user','mobilecourse','mobilecoursespec'])
  62 + ->where($where)
  63 + ->order($sort, $order)
  64 + ->limit($offset, $limit)
  65 + ->select();
  66 +
  67 + foreach ($list as $row) {
  68 + $row->visible(['id','order_sn','pay_price','pay_type','pay_status','pay_time','course_price','score','score_price','people_num','is_top']);
  69 + $row->visible(['mobilecompany']);
  70 + $row->getRelation('mobilecompany')->visible(['name']);
  71 + $row->visible(['user']);
  72 + $row->getRelation('user')->visible(['nickname']);
  73 + $row->visible(['mobilecourse']);
  74 + $row->getRelation('mobilecourse')->visible(['title']);
  75 + $row->visible(['mobilecoursespec']);
  76 + $row->getRelation('mobilecoursespec')->visible(['name']);
  77 + }
  78 + $list = collection($list)->toArray();
  79 + $result = array("total" => $total, "rows" => $list);
  80 +
  81 + return json($result);
  82 + }
  83 + return $this->view->fetch();
  84 + }
  85 +}
  1 +<?php
  2 +
  3 +namespace app\admin\controller\mobile\package;
  4 +
  5 +use app\common\controller\Backend;
  6 +
  7 +/**
  8 + * 企业套餐订单管理
  9 + *
  10 + * @icon fa fa-circle-o
  11 + */
  12 +class PackageOrder extends Backend
  13 +{
  14 +
  15 + /**
  16 + * PackageOrder模型对象
  17 + * @var \app\admin\model\mobile\package\PackageOrder
  18 + */
  19 + protected $model = null;
  20 +
  21 + public function _initialize()
  22 + {
  23 + parent::_initialize();
  24 + $this->model = new \app\admin\model\mobile\package\PackageOrder;
  25 + $this->view->assign("payTypeList", $this->model->getPayTypeList());
  26 + $this->view->assign("payStatusList", $this->model->getPayStatusList());
  27 + }
  28 +
  29 + /**
  30 + * 默认生成的控制器所继承的父类中有index/add/edit/del/multi五个基础方法、destroy/restore/recyclebin三个回收站方法
  31 + * 因此在当前控制器中可不用编写增删改查的代码,除非需要自己控制这部分逻辑
  32 + * 需要将application/admin/library/traits/Backend.php中对应的方法复制到当前控制器,然后进行修改
  33 + */
  34 +
  35 +
  36 + /**
  37 + * 查看
  38 + */
  39 + public function index()
  40 + {
  41 + //当前是否为关联查询
  42 + $this->relationSearch = true;
  43 + //设置过滤方法
  44 + $this->request->filter(['strip_tags', 'trim']);
  45 + if ($this->request->isAjax())
  46 + {
  47 + //如果发送的来源是Selectpage,则转发到Selectpage
  48 + if ($this->request->request('keyField'))
  49 + {
  50 + return $this->selectpage();
  51 + }
  52 + list($where, $sort, $order, $offset, $limit) = $this->buildparams();
  53 + $total = $this->model
  54 + ->with(['mobilecompany','user'])
  55 + ->where($where)
  56 + ->order($sort, $order)
  57 + ->count();
  58 +
  59 + $list = $this->model
  60 + ->with(['mobilecompany','user'])
  61 + ->where($where)
  62 + ->order($sort, $order)
  63 + ->limit($offset, $limit)
  64 + ->select();
  65 +
  66 + foreach ($list as $row) {
  67 + $row->visible(['id','order_sn','pay_price','pay_type','pay_status','pay_time']);
  68 + $row->visible(['mobilecompany']);
  69 + $row->getRelation('mobilecompany')->visible(['name']);
  70 + $row->visible(['user']);
  71 + $row->getRelation('user')->visible(['nickname']);
  72 + }
  73 + $list = collection($list)->toArray();
  74 + $result = array("total" => $total, "rows" => $list);
  75 +
  76 + return json($result);
  77 + }
  78 + return $this->view->fetch();
  79 + }
  80 +}
  1 +<?php
  2 +
  3 +namespace app\admin\controller\mobile\score;
  4 +
  5 +use app\common\controller\Backend;
  6 +
  7 +/**
  8 + * 积分充值管理
  9 + *
  10 + * @icon fa fa-circle-o
  11 + */
  12 +class ScoreOrder extends Backend
  13 +{
  14 +
  15 + /**
  16 + * ScoreOrder模型对象
  17 + * @var \app\admin\model\mobile\score\ScoreOrder
  18 + */
  19 + protected $model = null;
  20 +
  21 + public function _initialize()
  22 + {
  23 + parent::_initialize();
  24 + $this->model = new \app\admin\model\mobile\score\ScoreOrder;
  25 + $this->view->assign("payTypeList", $this->model->getPayTypeList());
  26 + $this->view->assign("payStatusList", $this->model->getPayStatusList());
  27 + }
  28 +
  29 + /**
  30 + * 默认生成的控制器所继承的父类中有index/add/edit/del/multi五个基础方法、destroy/restore/recyclebin三个回收站方法
  31 + * 因此在当前控制器中可不用编写增删改查的代码,除非需要自己控制这部分逻辑
  32 + * 需要将application/admin/library/traits/Backend.php中对应的方法复制到当前控制器,然后进行修改
  33 + */
  34 +
  35 +
  36 + /**
  37 + * 查看
  38 + */
  39 + public function index()
  40 + {
  41 + //当前是否为关联查询
  42 + $this->relationSearch = true;
  43 + //设置过滤方法
  44 + $this->request->filter(['strip_tags', 'trim']);
  45 + if ($this->request->isAjax())
  46 + {
  47 + //如果发送的来源是Selectpage,则转发到Selectpage
  48 + if ($this->request->request('keyField'))
  49 + {
  50 + return $this->selectpage();
  51 + }
  52 + list($where, $sort, $order, $offset, $limit) = $this->buildparams();
  53 + $total = $this->model
  54 + ->with(['user','mobilescorespec'])
  55 + ->where($where)
  56 + ->order($sort, $order)
  57 + ->count();
  58 +
  59 + $list = $this->model
  60 + ->with(['user','mobilescorespec'])
  61 + ->where($where)
  62 + ->order($sort, $order)
  63 + ->limit($offset, $limit)
  64 + ->select();
  65 +
  66 + foreach ($list as $row) {
  67 + $row->visible(['id','order_sn','pay_price','pay_type','pay_status','pay_time','score']);
  68 + $row->visible(['user']);
  69 + $row->getRelation('user')->visible(['nickname']);
  70 + $row->visible(['mobilescorespec']);
  71 + $row->getRelation('mobilescorespec')->visible(['spec_score']);
  72 + }
  73 + $list = collection($list)->toArray();
  74 + $result = array("total" => $total, "rows" => $list);
  75 +
  76 + return json($result);
  77 + }
  78 + return $this->view->fetch();
  79 + }
  80 +}
  1 +<?php
  2 +
  3 +namespace app\admin\controller\mobile\score;
  4 +
  5 +use app\common\controller\Backend;
  6 +
  7 +/**
  8 + * 充值积分套餐管理
  9 + *
  10 + * @icon fa fa-circle-o
  11 + */
  12 +class ScoreSpec extends Backend
  13 +{
  14 +
  15 + /**
  16 + * ScoreSpec模型对象
  17 + * @var \app\admin\model\mobile\score\ScoreSpec
  18 + */
  19 + protected $model = null;
  20 +
  21 + public function _initialize()
  22 + {
  23 + parent::_initialize();
  24 + $this->model = new \app\admin\model\mobile\score\ScoreSpec;
  25 +
  26 + }
  27 +
  28 + /**
  29 + * 默认生成的控制器所继承的父类中有index/add/edit/del/multi五个基础方法、destroy/restore/recyclebin三个回收站方法
  30 + * 因此在当前控制器中可不用编写增删改查的代码,除非需要自己控制这部分逻辑
  31 + * 需要将application/admin/library/traits/Backend.php中对应的方法复制到当前控制器,然后进行修改
  32 + */
  33 +
  34 +
  35 + /**
  36 + * 查看
  37 + */
  38 + public function index()
  39 + {
  40 + //当前是否为关联查询
  41 + $this->relationSearch = false;
  42 + //设置过滤方法
  43 + $this->request->filter(['strip_tags', 'trim']);
  44 + if ($this->request->isAjax())
  45 + {
  46 + //如果发送的来源是Selectpage,则转发到Selectpage
  47 + if ($this->request->request('keyField'))
  48 + {
  49 + return $this->selectpage();
  50 + }
  51 + list($where, $sort, $order, $offset, $limit) = $this->buildparams();
  52 + $total = $this->model
  53 +
  54 + ->where($where)
  55 + ->order($sort, $order)
  56 + ->count();
  57 +
  58 + $list = $this->model
  59 +
  60 + ->where($where)
  61 + ->order($sort, $order)
  62 + ->limit($offset, $limit)
  63 + ->select();
  64 +
  65 + foreach ($list as $row) {
  66 + $row->visible(['id','spec_score','give_score']);
  67 +
  68 + }
  69 + $list = collection($list)->toArray();
  70 + $result = array("total" => $total, "rows" => $list);
  71 +
  72 + return json($result);
  73 + }
  74 + return $this->view->fetch();
  75 + }
  76 +}
  1 +<?php
  2 +
  3 +namespace app\admin\controller\mobile\secret;
  4 +
  5 +use app\common\controller\Backend;
  6 +
  7 +/**
  8 + * 密卷订单管理
  9 + *
  10 + * @icon fa fa-circle-o
  11 + */
  12 +class SecretOrder extends Backend
  13 +{
  14 +
  15 + /**
  16 + * SecretOrder模型对象
  17 + * @var \app\admin\model\mobile\secret\SecretOrder
  18 + */
  19 + protected $model = null;
  20 +
  21 + public function _initialize()
  22 + {
  23 + parent::_initialize();
  24 + $this->model = new \app\admin\model\mobile\secret\SecretOrder;
  25 + $this->view->assign("payTypeList", $this->model->getPayTypeList());
  26 + $this->view->assign("payStatusList", $this->model->getPayStatusList());
  27 + $this->view->assign("isTopList", $this->model->getIsTopList());
  28 + }
  29 +
  30 + /**
  31 + * 默认生成的控制器所继承的父类中有index/add/edit/del/multi五个基础方法、destroy/restore/recyclebin三个回收站方法
  32 + * 因此在当前控制器中可不用编写增删改查的代码,除非需要自己控制这部分逻辑
  33 + * 需要将application/admin/library/traits/Backend.php中对应的方法复制到当前控制器,然后进行修改
  34 + */
  35 +
  36 +
  37 + /**
  38 + * 查看
  39 + */
  40 + public function index()
  41 + {
  42 + //当前是否为关联查询
  43 + $this->relationSearch = true;
  44 + //设置过滤方法
  45 + $this->request->filter(['strip_tags', 'trim']);
  46 + if ($this->request->isAjax())
  47 + {
  48 + //如果发送的来源是Selectpage,则转发到Selectpage
  49 + if ($this->request->request('keyField'))
  50 + {
  51 + return $this->selectpage();
  52 + }
  53 + list($where, $sort, $order, $offset, $limit) = $this->buildparams();
  54 + $total = $this->model
  55 + ->with(['mobilecompany','user','mobilesecret','mobilesecretspec'])
  56 + ->where($where)
  57 + ->order($sort, $order)
  58 + ->count();
  59 +
  60 + $list = $this->model
  61 + ->with(['mobilecompany','user','mobilesecret','mobilesecretspec'])
  62 + ->where($where)
  63 + ->order($sort, $order)
  64 + ->limit($offset, $limit)
  65 + ->select();
  66 +
  67 + foreach ($list as $row) {
  68 + $row->visible(['id','order_sn','pay_price','pay_type','pay_status','pay_time','secret_price','score','score_price','people_num','is_top']);
  69 + $row->visible(['mobilecompany']);
  70 + $row->getRelation('mobilecompany')->visible(['name']);
  71 + $row->visible(['user']);
  72 + $row->getRelation('user')->visible(['nickname']);
  73 + $row->visible(['mobilesecret']);
  74 + $row->getRelation('mobilesecret')->visible(['title']);
  75 + $row->visible(['mobilesecretspec']);
  76 + $row->getRelation('mobilesecretspec')->visible(['name']);
  77 + }
  78 + $list = collection($list)->toArray();
  79 + $result = array("total" => $total, "rows" => $list);
  80 +
  81 + return json($result);
  82 + }
  83 + return $this->view->fetch();
  84 + }
  85 +}
  1 +<?php
  2 +
  3 +return [
  4 + 'Id' => 'ID',
  5 + 'Company_id' => '企业ID',
  6 + 'User_id' => '用户ID',
  7 + 'Course_id' => '密卷ID',
  8 + 'Course_spec_id' => '课程规格ID',
  9 + 'Order_sn' => '订单号',
  10 + 'Pay_price' => '实际支付金额',
  11 + 'Pay_type' => '支付方式',
  12 + 'Pay_type wechat' => '微信',
  13 + 'Pay_type alipay' => '支付宝',
  14 + 'Pay_status' => '支付状态',
  15 + 'Pay_status 0' => '未支付',
  16 + 'Pay_status 1' => '已支付',
  17 + 'Pay_time' => '支付时间',
  18 + 'Course_price' => '密卷金额',
  19 + 'Score' => '抵扣积分',
  20 + 'Score_price' => '积分抵扣金额',
  21 + 'People_num' => '套餐限制人数',
  22 + 'Is_top' => '是否顶配',
  23 + 'Is_top 0' => '否',
  24 + 'Is_top 1' => '是',
  25 + 'Createtime' => '创建时间',
  26 + 'Updatetime' => '更新时间',
  27 + 'Mobilecompany.name' => '公司名称',
  28 + 'User.nickname' => '昵称',
  29 + 'Mobilecourse.title' => '标题',
  30 + 'Mobilecoursespec.name' => '规格名称'
  31 +];
  1 +<?php
  2 +
  3 +return [
  4 + 'Id' => 'ID',
  5 + 'Company_id' => '企业ID',
  6 + 'User_id' => '用户ID',
  7 + 'Order_sn' => '订单号',
  8 + 'Pay_price' => '实际支付金额',
  9 + 'Pay_type' => '支付方式',
  10 + 'Pay_type wechat' => '微信',
  11 + 'Pay_type alipay' => '支付宝',
  12 + 'Pay_status' => '支付状态',
  13 + 'Pay_status 0' => '未支付',
  14 + 'Pay_status 1' => '已支付',
  15 + 'Pay_time' => '支付时间',
  16 + 'Createtime' => '创建时间',
  17 + 'Updatetime' => '更新时间',
  18 + 'Mobilecompany.name' => '公司名称',
  19 + 'User.nickname' => '昵称'
  20 +];
  1 +<?php
  2 +
  3 +return [
  4 + 'Id' => 'ID',
  5 + 'User_id' => '用户ID',
  6 + 'Score_spec_id' => '套餐ID',
  7 + 'Order_sn' => '订单号',
  8 + 'Pay_price' => '实际支付金额',
  9 + 'Pay_type' => '支付方式',
  10 + 'Pay_type wechat' => '微信',
  11 + 'Pay_type alipay' => '支付宝',
  12 + 'Pay_status' => '支付状态',
  13 + 'Pay_status 0' => '未支付',
  14 + 'Pay_status 1' => '已支付',
  15 + 'Pay_time' => '支付时间',
  16 + 'Score' => '充值积分',
  17 + 'Createtime' => '创建时间',
  18 + 'Updatetime' => '更新时间',
  19 + 'User.nickname' => '昵称',
  20 + 'Mobilescorespec.spec_score' => '套餐积分'
  21 +];
  1 +<?php
  2 +
  3 +return [
  4 + 'Id' => 'ID',
  5 + 'Spec_score' => '套餐积分',
  6 + 'Give_score' => '赠送积分',
  7 + 'Createtime' => '创建时间',
  8 + 'Updatetime' => '更新时间'
  9 +];
  1 +<?php
  2 +
  3 +return [
  4 + 'Id' => 'ID',
  5 + 'Company_id' => '企业ID',
  6 + 'User_id' => '用户ID',
  7 + 'Secret_id' => '密卷ID',
  8 + 'Secret_spec_id' => '密卷规格ID',
  9 + 'Order_sn' => '订单号',
  10 + 'Pay_price' => '实际支付金额',
  11 + 'Pay_type' => '支付方式',
  12 + 'Pay_type wechat' => '微信',
  13 + 'Pay_type alipay' => '支付宝',
  14 + 'Pay_status' => '支付状态',
  15 + 'Pay_status 0' => '未支付',
  16 + 'Pay_status 1' => '已支付',
  17 + 'Pay_time' => '支付时间',
  18 + 'Secret_price' => '密卷金额',
  19 + 'Score' => '抵扣积分',
  20 + 'Score_price' => '积分抵扣金额',
  21 + 'People_num' => '套餐限制人数',
  22 + 'Is_top' => '是否顶配',
  23 + 'Is_top 0' => '否',
  24 + 'Is_top 1' => '是',
  25 + 'Createtime' => '创建时间',
  26 + 'Updatetime' => '更新时间',
  27 + 'Mobilecompany.name' => '公司名称',
  28 + 'User.nickname' => '昵称',
  29 + 'Mobilesecret.title' => '试卷标题',
  30 + 'Mobilesecretspec.name' => '规格名称'
  31 +];
  1 +<?php
  2 +
  3 +namespace app\admin\model\mobile\course;
  4 +
  5 +use think\Model;
  6 +
  7 +class MobileCourse extends Model
  8 +{
  9 + // 表名
  10 + protected $name = 'mobile_course';
  11 +
  12 +}
  1 +<?php
  2 +
  3 +namespace app\admin\model\mobile\course;
  4 +
  5 +use think\Model;
  6 +
  7 +class MobileCourseSpec extends Model
  8 +{
  9 + // 表名
  10 + protected $name = 'mobile_course_spec';
  11 +
  12 +}
  1 +<?php
  2 +
  3 +namespace app\admin\model\mobile\score;
  4 +
  5 +use think\Model;
  6 +
  7 +class MobileScoreSpec extends Model
  8 +{
  9 + // 表名
  10 + protected $name = 'mobile_score_spec';
  11 +
  12 +}
  1 +<?php
  2 +
  3 +namespace app\admin\model\mobile\secret;
  4 +
  5 +use think\Model;
  6 +
  7 +class MobileSecret extends Model
  8 +{
  9 + // 表名
  10 + protected $name = 'mobile_secret';
  11 +
  12 +}
  1 +<?php
  2 +
  3 +namespace app\admin\model\mobile\secret;
  4 +
  5 +use think\Model;
  6 +
  7 +class MobileSecretSpec extends Model
  8 +{
  9 + // 表名
  10 + protected $name = 'mobile_secret_spec';
  11 +
  12 +}
  1 +<?php
  2 +
  3 +namespace app\admin\model\mobile\course;
  4 +
  5 +use think\Model;
  6 +
  7 +
  8 +class CourseOrder extends Model
  9 +{
  10 +
  11 +
  12 +
  13 +
  14 +
  15 + // 表名
  16 + protected $name = 'mobile_course_order';
  17 +
  18 + // 自动写入时间戳字段
  19 + protected $autoWriteTimestamp = 'int';
  20 +
  21 + // 定义时间戳字段名
  22 + protected $createTime = 'createtime';
  23 + protected $updateTime = 'updatetime';
  24 + protected $deleteTime = false;
  25 +
  26 + // 追加属性
  27 + protected $append = [
  28 + 'pay_type_text',
  29 + 'pay_status_text',
  30 + 'pay_time_text',
  31 + 'is_top_text'
  32 + ];
  33 +
  34 +
  35 +
  36 + public function getPayTypeList()
  37 + {
  38 + return ['wechat' => __('Pay_type wechat'), 'alipay' => __('Pay_type alipay')];
  39 + }
  40 +
  41 + public function getPayStatusList()
  42 + {
  43 + return ['0' => __('Pay_status 0'), '1' => __('Pay_status 1')];
  44 + }
  45 +
  46 + public function getIsTopList()
  47 + {
  48 + return ['0' => __('Is_top 0'), '1' => __('Is_top 1')];
  49 + }
  50 +
  51 +
  52 + public function getPayTypeTextAttr($value, $data)
  53 + {
  54 + $value = $value ? $value : (isset($data['pay_type']) ? $data['pay_type'] : '');
  55 + $list = $this->getPayTypeList();
  56 + return isset($list[$value]) ? $list[$value] : '';
  57 + }
  58 +
  59 +
  60 + public function getPayStatusTextAttr($value, $data)
  61 + {
  62 + $value = $value ? $value : (isset($data['pay_status']) ? $data['pay_status'] : '');
  63 + $list = $this->getPayStatusList();
  64 + return isset($list[$value]) ? $list[$value] : '';
  65 + }
  66 +
  67 +
  68 + public function getPayTimeTextAttr($value, $data)
  69 + {
  70 + $value = $value ? $value : (isset($data['pay_time']) ? $data['pay_time'] : '');
  71 + return is_numeric($value) ? date("Y-m-d H:i:s", $value) : $value;
  72 + }
  73 +
  74 +
  75 + public function getIsTopTextAttr($value, $data)
  76 + {
  77 + $value = $value ? $value : (isset($data['is_top']) ? $data['is_top'] : '');
  78 + $list = $this->getIsTopList();
  79 + return isset($list[$value]) ? $list[$value] : '';
  80 + }
  81 +
  82 + protected function setPayTimeAttr($value)
  83 + {
  84 + return $value === '' ? null : ($value && !is_numeric($value) ? strtotime($value) : $value);
  85 + }
  86 +
  87 +
  88 + public function mobilecompany()
  89 + {
  90 + return $this->belongsTo('app\admin\model\mobile\Company', 'company_id', 'id', [], 'LEFT')->setEagerlyType(0);
  91 + }
  92 +
  93 +
  94 + public function user()
  95 + {
  96 + return $this->belongsTo('app\admin\model\User', 'user_id', 'id', [], 'LEFT')->setEagerlyType(0);
  97 + }
  98 +
  99 +
  100 + public function mobilecourse()
  101 + {
  102 + return $this->belongsTo('app\admin\model\mobile\course\Course', 'course_id', 'id', [], 'LEFT')->setEagerlyType(0);
  103 + }
  104 +
  105 +
  106 + public function mobilecoursespec()
  107 + {
  108 + return $this->belongsTo('app\admin\model\mobile\course\CourseSpec', 'course_spec_id', 'id', [], 'LEFT')->setEagerlyType(0);
  109 + }
  110 +}
  1 +<?php
  2 +
  3 +namespace app\admin\model\mobile\package;
  4 +
  5 +use think\Model;
  6 +
  7 +
  8 +class PackageOrder extends Model
  9 +{
  10 +
  11 +
  12 +
  13 +
  14 +
  15 + // 表名
  16 + protected $name = 'mobile_package_order';
  17 +
  18 + // 自动写入时间戳字段
  19 + protected $autoWriteTimestamp = 'int';
  20 +
  21 + // 定义时间戳字段名
  22 + protected $createTime = 'createtime';
  23 + protected $updateTime = 'updatetime';
  24 + protected $deleteTime = false;
  25 +
  26 + // 追加属性
  27 + protected $append = [
  28 + 'pay_type_text',
  29 + 'pay_status_text',
  30 + 'pay_time_text'
  31 + ];
  32 +
  33 +
  34 +
  35 + public function getPayTypeList()
  36 + {
  37 + return ['wechat' => __('Pay_type wechat'), 'alipay' => __('Pay_type alipay')];
  38 + }
  39 +
  40 + public function getPayStatusList()
  41 + {
  42 + return ['0' => __('Pay_status 0'), '1' => __('Pay_status 1')];
  43 + }
  44 +
  45 +
  46 + public function getPayTypeTextAttr($value, $data)
  47 + {
  48 + $value = $value ? $value : (isset($data['pay_type']) ? $data['pay_type'] : '');
  49 + $list = $this->getPayTypeList();
  50 + return isset($list[$value]) ? $list[$value] : '';
  51 + }
  52 +
  53 +
  54 + public function getPayStatusTextAttr($value, $data)
  55 + {
  56 + $value = $value ? $value : (isset($data['pay_status']) ? $data['pay_status'] : '');
  57 + $list = $this->getPayStatusList();
  58 + return isset($list[$value]) ? $list[$value] : '';
  59 + }
  60 +
  61 +
  62 + public function getPayTimeTextAttr($value, $data)
  63 + {
  64 + $value = $value ? $value : (isset($data['pay_time']) ? $data['pay_time'] : '');
  65 + return is_numeric($value) ? date("Y-m-d H:i:s", $value) : $value;
  66 + }
  67 +
  68 + protected function setPayTimeAttr($value)
  69 + {
  70 + return $value === '' ? null : ($value && !is_numeric($value) ? strtotime($value) : $value);
  71 + }
  72 +
  73 +
  74 + public function mobilecompany()
  75 + {
  76 + return $this->belongsTo('app\admin\model\mobile\Company', 'company_id', 'id', [], 'LEFT')->setEagerlyType(0);
  77 + }
  78 +
  79 +
  80 + public function user()
  81 + {
  82 + return $this->belongsTo('app\admin\model\User', 'user_id', 'id', [], 'LEFT')->setEagerlyType(0);
  83 + }
  84 +}
  1 +<?php
  2 +
  3 +namespace app\admin\model\mobile\score;
  4 +
  5 +use think\Model;
  6 +
  7 +
  8 +class ScoreOrder extends Model
  9 +{
  10 +
  11 +
  12 +
  13 +
  14 +
  15 + // 表名
  16 + protected $name = 'mobile_score_order';
  17 +
  18 + // 自动写入时间戳字段
  19 + protected $autoWriteTimestamp = 'int';
  20 +
  21 + // 定义时间戳字段名
  22 + protected $createTime = 'createtime';
  23 + protected $updateTime = 'updatetime';
  24 + protected $deleteTime = false;
  25 +
  26 + // 追加属性
  27 + protected $append = [
  28 + 'pay_type_text',
  29 + 'pay_status_text',
  30 + 'pay_time_text'
  31 + ];
  32 +
  33 +
  34 +
  35 + public function getPayTypeList()
  36 + {
  37 + return ['wechat' => __('Pay_type wechat'), 'alipay' => __('Pay_type alipay')];
  38 + }
  39 +
  40 + public function getPayStatusList()
  41 + {
  42 + return ['0' => __('Pay_status 0'), '1' => __('Pay_status 1')];
  43 + }
  44 +
  45 +
  46 + public function getPayTypeTextAttr($value, $data)
  47 + {
  48 + $value = $value ? $value : (isset($data['pay_type']) ? $data['pay_type'] : '');
  49 + $list = $this->getPayTypeList();
  50 + return isset($list[$value]) ? $list[$value] : '';
  51 + }
  52 +
  53 +
  54 + public function getPayStatusTextAttr($value, $data)
  55 + {
  56 + $value = $value ? $value : (isset($data['pay_status']) ? $data['pay_status'] : '');
  57 + $list = $this->getPayStatusList();
  58 + return isset($list[$value]) ? $list[$value] : '';
  59 + }
  60 +
  61 +
  62 + public function getPayTimeTextAttr($value, $data)
  63 + {
  64 + $value = $value ? $value : (isset($data['pay_time']) ? $data['pay_time'] : '');
  65 + return is_numeric($value) ? date("Y-m-d H:i:s", $value) : $value;
  66 + }
  67 +
  68 + protected function setPayTimeAttr($value)
  69 + {
  70 + return $value === '' ? null : ($value && !is_numeric($value) ? strtotime($value) : $value);
  71 + }
  72 +
  73 +
  74 + public function user()
  75 + {
  76 + return $this->belongsTo('app\admin\model\User', 'user_id', 'id', [], 'LEFT')->setEagerlyType(0);
  77 + }
  78 +
  79 +
  80 + public function mobilescorespec()
  81 + {
  82 + return $this->belongsTo('app\admin\model\mobile\ScoreSpec', 'score_spec_id', 'id', [], 'LEFT')->setEagerlyType(0);
  83 + }
  84 +}
  1 +<?php
  2 +
  3 +namespace app\admin\model\mobile\score;
  4 +
  5 +use think\Model;
  6 +
  7 +
  8 +class ScoreSpec extends Model
  9 +{
  10 +
  11 +
  12 +
  13 +
  14 +
  15 + // 表名
  16 + protected $name = 'mobile_score_spec';
  17 +
  18 + // 自动写入时间戳字段
  19 + protected $autoWriteTimestamp = 'int';
  20 +
  21 + // 定义时间戳字段名
  22 + protected $createTime = 'createtime';
  23 + protected $updateTime = 'updatetime';
  24 + protected $deleteTime = false;
  25 +
  26 + // 追加属性
  27 + protected $append = [
  28 +
  29 + ];
  30 +
  31 +
  32 +
  33 +
  34 +
  35 +
  36 +
  37 +
  38 +
  39 +
  40 +}
  1 +<?php
  2 +
  3 +namespace app\admin\model\mobile\secret;
  4 +
  5 +use think\Model;
  6 +
  7 +
  8 +class SecretOrder extends Model
  9 +{
  10 +
  11 +
  12 +
  13 +
  14 +
  15 + // 表名
  16 + protected $name = 'mobile_secret_order';
  17 +
  18 + // 自动写入时间戳字段
  19 + protected $autoWriteTimestamp = 'int';
  20 +
  21 + // 定义时间戳字段名
  22 + protected $createTime = 'createtime';
  23 + protected $updateTime = 'updatetime';
  24 + protected $deleteTime = false;
  25 +
  26 + // 追加属性
  27 + protected $append = [
  28 + 'pay_type_text',
  29 + 'pay_status_text',
  30 + 'pay_time_text',
  31 + 'is_top_text'
  32 + ];
  33 +
  34 +
  35 +
  36 + public function getPayTypeList()
  37 + {
  38 + return ['wechat' => __('Pay_type wechat'), 'alipay' => __('Pay_type alipay')];
  39 + }
  40 +
  41 + public function getPayStatusList()
  42 + {
  43 + return ['0' => __('Pay_status 0'), '1' => __('Pay_status 1')];
  44 + }
  45 +
  46 + public function getIsTopList()
  47 + {
  48 + return ['0' => __('Is_top 0'), '1' => __('Is_top 1')];
  49 + }
  50 +
  51 +
  52 + public function getPayTypeTextAttr($value, $data)
  53 + {
  54 + $value = $value ? $value : (isset($data['pay_type']) ? $data['pay_type'] : '');
  55 + $list = $this->getPayTypeList();
  56 + return isset($list[$value]) ? $list[$value] : '';
  57 + }
  58 +
  59 +
  60 + public function getPayStatusTextAttr($value, $data)
  61 + {
  62 + $value = $value ? $value : (isset($data['pay_status']) ? $data['pay_status'] : '');
  63 + $list = $this->getPayStatusList();
  64 + return isset($list[$value]) ? $list[$value] : '';
  65 + }
  66 +
  67 +
  68 + public function getPayTimeTextAttr($value, $data)
  69 + {
  70 + $value = $value ? $value : (isset($data['pay_time']) ? $data['pay_time'] : '');
  71 + return is_numeric($value) ? date("Y-m-d H:i:s", $value) : $value;
  72 + }
  73 +
  74 +
  75 + public function getIsTopTextAttr($value, $data)
  76 + {
  77 + $value = $value ? $value : (isset($data['is_top']) ? $data['is_top'] : '');
  78 + $list = $this->getIsTopList();
  79 + return isset($list[$value]) ? $list[$value] : '';
  80 + }
  81 +
  82 + protected function setPayTimeAttr($value)
  83 + {
  84 + return $value === '' ? null : ($value && !is_numeric($value) ? strtotime($value) : $value);
  85 + }
  86 +
  87 +
  88 + public function mobilecompany()
  89 + {
  90 + return $this->belongsTo('app\admin\model\mobile\Company', 'company_id', 'id', [], 'LEFT')->setEagerlyType(0);
  91 + }
  92 +
  93 +
  94 + public function user()
  95 + {
  96 + return $this->belongsTo('app\admin\model\User', 'user_id', 'id', [], 'LEFT')->setEagerlyType(0);
  97 + }
  98 +
  99 +
  100 + public function mobilesecret()
  101 + {
  102 + return $this->belongsTo('app\admin\model\mobile\secret\Secret', 'secret_id', 'id', [], 'LEFT')->setEagerlyType(0);
  103 + }
  104 +
  105 +
  106 + public function mobilesecretspec()
  107 + {
  108 + return $this->belongsTo('app\admin\model\mobile\secret\SecretSpec', 'secret_spec_id', 'id', [], 'LEFT')->setEagerlyType(0);
  109 + }
  110 +}
  1 +<?php
  2 +
  3 +namespace app\admin\validate\mobile\course;
  4 +
  5 +use think\Validate;
  6 +
  7 +class CourseOrder extends Validate
  8 +{
  9 + /**
  10 + * 验证规则
  11 + */
  12 + protected $rule = [
  13 + ];
  14 + /**
  15 + * 提示消息
  16 + */
  17 + protected $message = [
  18 + ];
  19 + /**
  20 + * 验证场景
  21 + */
  22 + protected $scene = [
  23 + 'add' => [],
  24 + 'edit' => [],
  25 + ];
  26 +
  27 +}
  1 +<?php
  2 +
  3 +namespace app\admin\validate\mobile\package;
  4 +
  5 +use think\Validate;
  6 +
  7 +class PackageOrder extends Validate
  8 +{
  9 + /**
  10 + * 验证规则
  11 + */
  12 + protected $rule = [
  13 + ];
  14 + /**
  15 + * 提示消息
  16 + */
  17 + protected $message = [
  18 + ];
  19 + /**
  20 + * 验证场景
  21 + */
  22 + protected $scene = [
  23 + 'add' => [],
  24 + 'edit' => [],
  25 + ];
  26 +
  27 +}
  1 +<?php
  2 +
  3 +namespace app\admin\validate\mobile\score;
  4 +
  5 +use think\Validate;
  6 +
  7 +class ScoreOrder extends Validate
  8 +{
  9 + /**
  10 + * 验证规则
  11 + */
  12 + protected $rule = [
  13 + ];
  14 + /**
  15 + * 提示消息
  16 + */
  17 + protected $message = [
  18 + ];
  19 + /**
  20 + * 验证场景
  21 + */
  22 + protected $scene = [
  23 + 'add' => [],
  24 + 'edit' => [],
  25 + ];
  26 +
  27 +}
  1 +<?php
  2 +
  3 +namespace app\admin\validate\mobile\score;
  4 +
  5 +use think\Validate;
  6 +
  7 +class ScoreSpec extends Validate
  8 +{
  9 + /**
  10 + * 验证规则
  11 + */
  12 + protected $rule = [
  13 + ];
  14 + /**
  15 + * 提示消息
  16 + */
  17 + protected $message = [
  18 + ];
  19 + /**
  20 + * 验证场景
  21 + */
  22 + protected $scene = [
  23 + 'add' => [],
  24 + 'edit' => [],
  25 + ];
  26 +
  27 +}
  1 +<?php
  2 +
  3 +namespace app\admin\validate\mobile\secret;
  4 +
  5 +use think\Validate;
  6 +
  7 +class SecretOrder extends Validate
  8 +{
  9 + /**
  10 + * 验证规则
  11 + */
  12 + protected $rule = [
  13 + ];
  14 + /**
  15 + * 提示消息
  16 + */
  17 + protected $message = [
  18 + ];
  19 + /**
  20 + * 验证场景
  21 + */
  22 + protected $scene = [
  23 + 'add' => [],
  24 + 'edit' => [],
  25 + ];
  26 +
  27 +}
  1 +<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
  2 +
  3 + <div class="form-group">
  4 + <label class="control-label col-xs-12 col-sm-2">{:__('Company_id')}:</label>
  5 + <div class="col-xs-12 col-sm-8">
  6 + <input id="c-company_id" data-rule="required" data-source="company/index" class="form-control selectpage" name="row[company_id]" type="text" value="">
  7 + </div>
  8 + </div>
  9 + <div class="form-group">
  10 + <label class="control-label col-xs-12 col-sm-2">{:__('User_id')}:</label>
  11 + <div class="col-xs-12 col-sm-8">
  12 + <input id="c-user_id" data-rule="required" data-source="user/user/index" data-field="nickname" class="form-control selectpage" name="row[user_id]" type="text" value="">
  13 + </div>
  14 + </div>
  15 + <div class="form-group">
  16 + <label class="control-label col-xs-12 col-sm-2">{:__('Course_id')}:</label>
  17 + <div class="col-xs-12 col-sm-8">
  18 + <input id="c-course_id" data-rule="required" data-source="course/index" class="form-control selectpage" name="row[course_id]" type="text" value="">
  19 + </div>
  20 + </div>
  21 + <div class="form-group">
  22 + <label class="control-label col-xs-12 col-sm-2">{:__('Course_spec_id')}:</label>
  23 + <div class="col-xs-12 col-sm-8">
  24 + <input id="c-course_spec_id" data-rule="required" data-source="course/spec/index" class="form-control selectpage" name="row[course_spec_id]" type="text" value="">
  25 + </div>
  26 + </div>
  27 + <div class="form-group">
  28 + <label class="control-label col-xs-12 col-sm-2">{:__('Order_sn')}:</label>
  29 + <div class="col-xs-12 col-sm-8">
  30 + <input id="c-order_sn" data-rule="required" class="form-control" name="row[order_sn]" type="text" value="">
  31 + </div>
  32 + </div>
  33 + <div class="form-group">
  34 + <label class="control-label col-xs-12 col-sm-2">{:__('Pay_price')}:</label>
  35 + <div class="col-xs-12 col-sm-8">
  36 + <input id="c-pay_price" data-rule="required" class="form-control" step="0.01" name="row[pay_price]" type="number" value="0.00">
  37 + </div>
  38 + </div>
  39 + <div class="form-group">
  40 + <label class="control-label col-xs-12 col-sm-2">{:__('Pay_type')}:</label>
  41 + <div class="col-xs-12 col-sm-8">
  42 +
  43 + <select id="c-pay_type" data-rule="required" class="form-control selectpicker" name="row[pay_type]">
  44 + {foreach name="payTypeList" item="vo"}
  45 + <option value="{$key}" {in name="key" value=""}selected{/in}>{$vo}</option>
  46 + {/foreach}
  47 + </select>
  48 +
  49 + </div>
  50 + </div>
  51 + <div class="form-group">
  52 + <label class="control-label col-xs-12 col-sm-2">{:__('Pay_status')}:</label>
  53 + <div class="col-xs-12 col-sm-8">
  54 +
  55 + <div class="radio">
  56 + {foreach name="payStatusList" item="vo"}
  57 + <label for="row[pay_status]-{$key}"><input id="row[pay_status]-{$key}" name="row[pay_status]" type="radio" value="{$key}" {in name="key" value="0"}checked{/in} /> {$vo}</label>
  58 + {/foreach}
  59 + </div>
  60 +
  61 + </div>
  62 + </div>
  63 + <div class="form-group">
  64 + <label class="control-label col-xs-12 col-sm-2">{:__('Pay_time')}:</label>
  65 + <div class="col-xs-12 col-sm-8">
  66 + <input id="c-pay_time" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[pay_time]" type="text" value="{:date('Y-m-d H:i:s')}">
  67 + </div>
  68 + </div>
  69 + <div class="form-group">
  70 + <label class="control-label col-xs-12 col-sm-2">{:__('Course_price')}:</label>
  71 + <div class="col-xs-12 col-sm-8">
  72 + <input id="c-course_price" data-rule="required" class="form-control" step="0.01" name="row[course_price]" type="number" value="0.00">
  73 + </div>
  74 + </div>
  75 + <div class="form-group">
  76 + <label class="control-label col-xs-12 col-sm-2">{:__('Score')}:</label>
  77 + <div class="col-xs-12 col-sm-8">
  78 + <input id="c-score" data-rule="required" class="form-control" name="row[score]" type="number" value="0">
  79 + </div>
  80 + </div>
  81 + <div class="form-group">
  82 + <label class="control-label col-xs-12 col-sm-2">{:__('Score_price')}:</label>
  83 + <div class="col-xs-12 col-sm-8">
  84 + <input id="c-score_price" data-rule="required" class="form-control" step="0.01" name="row[score_price]" type="number" value="0.00">
  85 + </div>
  86 + </div>
  87 + <div class="form-group">
  88 + <label class="control-label col-xs-12 col-sm-2">{:__('People_num')}:</label>
  89 + <div class="col-xs-12 col-sm-8">
  90 + <input id="c-people_num" data-rule="required" class="form-control" name="row[people_num]" type="number" value="0">
  91 + </div>
  92 + </div>
  93 + <div class="form-group">
  94 + <label class="control-label col-xs-12 col-sm-2">{:__('Is_top')}:</label>
  95 + <div class="col-xs-12 col-sm-8">
  96 +
  97 + <select id="c-is_top" data-rule="required" class="form-control selectpicker" name="row[is_top]">
  98 + {foreach name="isTopList" item="vo"}
  99 + <option value="{$key}" {in name="key" value="0"}selected{/in}>{$vo}</option>
  100 + {/foreach}
  101 + </select>
  102 +
  103 + </div>
  104 + </div>
  105 + <div class="form-group layer-footer">
  106 + <label class="control-label col-xs-12 col-sm-2"></label>
  107 + <div class="col-xs-12 col-sm-8">
  108 + <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
  109 + <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  110 + </div>
  111 + </div>
  112 +</form>
  1 +<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
  2 +
  3 + <div class="form-group">
  4 + <label class="control-label col-xs-12 col-sm-2">{:__('Company_id')}:</label>
  5 + <div class="col-xs-12 col-sm-8">
  6 + <input id="c-company_id" data-rule="required" data-source="company/index" class="form-control selectpage" name="row[company_id]" type="text" value="{$row.company_id|htmlentities}">
  7 + </div>
  8 + </div>
  9 + <div class="form-group">
  10 + <label class="control-label col-xs-12 col-sm-2">{:__('User_id')}:</label>
  11 + <div class="col-xs-12 col-sm-8">
  12 + <input id="c-user_id" data-rule="required" data-source="user/user/index" data-field="nickname" class="form-control selectpage" name="row[user_id]" type="text" value="{$row.user_id|htmlentities}">
  13 + </div>
  14 + </div>
  15 + <div class="form-group">
  16 + <label class="control-label col-xs-12 col-sm-2">{:__('Course_id')}:</label>
  17 + <div class="col-xs-12 col-sm-8">
  18 + <input id="c-course_id" data-rule="required" data-source="course/index" class="form-control selectpage" name="row[course_id]" type="text" value="{$row.course_id|htmlentities}">
  19 + </div>
  20 + </div>
  21 + <div class="form-group">
  22 + <label class="control-label col-xs-12 col-sm-2">{:__('Course_spec_id')}:</label>
  23 + <div class="col-xs-12 col-sm-8">
  24 + <input id="c-course_spec_id" data-rule="required" data-source="course/spec/index" class="form-control selectpage" name="row[course_spec_id]" type="text" value="{$row.course_spec_id|htmlentities}">
  25 + </div>
  26 + </div>
  27 + <div class="form-group">
  28 + <label class="control-label col-xs-12 col-sm-2">{:__('Order_sn')}:</label>
  29 + <div class="col-xs-12 col-sm-8">
  30 + <input id="c-order_sn" data-rule="required" class="form-control" name="row[order_sn]" type="text" value="{$row.order_sn|htmlentities}">
  31 + </div>
  32 + </div>
  33 + <div class="form-group">
  34 + <label class="control-label col-xs-12 col-sm-2">{:__('Pay_price')}:</label>
  35 + <div class="col-xs-12 col-sm-8">
  36 + <input id="c-pay_price" data-rule="required" class="form-control" step="0.01" name="row[pay_price]" type="number" value="{$row.pay_price|htmlentities}">
  37 + </div>
  38 + </div>
  39 + <div class="form-group">
  40 + <label class="control-label col-xs-12 col-sm-2">{:__('Pay_type')}:</label>
  41 + <div class="col-xs-12 col-sm-8">
  42 +
  43 + <select id="c-pay_type" data-rule="required" class="form-control selectpicker" name="row[pay_type]">
  44 + {foreach name="payTypeList" item="vo"}
  45 + <option value="{$key}" {in name="key" value="$row.pay_type"}selected{/in}>{$vo}</option>
  46 + {/foreach}
  47 + </select>
  48 +
  49 + </div>
  50 + </div>
  51 + <div class="form-group">
  52 + <label class="control-label col-xs-12 col-sm-2">{:__('Pay_status')}:</label>
  53 + <div class="col-xs-12 col-sm-8">
  54 +
  55 + <div class="radio">
  56 + {foreach name="payStatusList" item="vo"}
  57 + <label for="row[pay_status]-{$key}"><input id="row[pay_status]-{$key}" name="row[pay_status]" type="radio" value="{$key}" {in name="key" value="$row.pay_status"}checked{/in} /> {$vo}</label>
  58 + {/foreach}
  59 + </div>
  60 +
  61 + </div>
  62 + </div>
  63 + <div class="form-group">
  64 + <label class="control-label col-xs-12 col-sm-2">{:__('Pay_time')}:</label>
  65 + <div class="col-xs-12 col-sm-8">
  66 + <input id="c-pay_time" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[pay_time]" type="text" value="{:$row.pay_time?datetime($row.pay_time):''}">
  67 + </div>
  68 + </div>
  69 + <div class="form-group">
  70 + <label class="control-label col-xs-12 col-sm-2">{:__('Course_price')}:</label>
  71 + <div class="col-xs-12 col-sm-8">
  72 + <input id="c-course_price" data-rule="required" class="form-control" step="0.01" name="row[course_price]" type="number" value="{$row.course_price|htmlentities}">
  73 + </div>
  74 + </div>
  75 + <div class="form-group">
  76 + <label class="control-label col-xs-12 col-sm-2">{:__('Score')}:</label>
  77 + <div class="col-xs-12 col-sm-8">
  78 + <input id="c-score" data-rule="required" class="form-control" name="row[score]" type="number" value="{$row.score|htmlentities}">
  79 + </div>
  80 + </div>
  81 + <div class="form-group">
  82 + <label class="control-label col-xs-12 col-sm-2">{:__('Score_price')}:</label>
  83 + <div class="col-xs-12 col-sm-8">
  84 + <input id="c-score_price" data-rule="required" class="form-control" step="0.01" name="row[score_price]" type="number" value="{$row.score_price|htmlentities}">
  85 + </div>
  86 + </div>
  87 + <div class="form-group">
  88 + <label class="control-label col-xs-12 col-sm-2">{:__('People_num')}:</label>
  89 + <div class="col-xs-12 col-sm-8">
  90 + <input id="c-people_num" data-rule="required" class="form-control" name="row[people_num]" type="number" value="{$row.people_num|htmlentities}">
  91 + </div>
  92 + </div>
  93 + <div class="form-group">
  94 + <label class="control-label col-xs-12 col-sm-2">{:__('Is_top')}:</label>
  95 + <div class="col-xs-12 col-sm-8">
  96 +
  97 + <select id="c-is_top" data-rule="required" class="form-control selectpicker" name="row[is_top]">
  98 + {foreach name="isTopList" item="vo"}
  99 + <option value="{$key}" {in name="key" value="$row.is_top"}selected{/in}>{$vo}</option>
  100 + {/foreach}
  101 + </select>
  102 +
  103 + </div>
  104 + </div>
  105 + <div class="form-group layer-footer">
  106 + <label class="control-label col-xs-12 col-sm-2"></label>
  107 + <div class="col-xs-12 col-sm-8">
  108 + <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
  109 + <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  110 + </div>
  111 + </div>
  112 +</form>
  1 +<div class="panel panel-default panel-intro">
  2 + {:build_heading()}
  3 +
  4 + <div class="panel-body">
  5 + <div id="myTabContent" class="tab-content">
  6 + <div class="tab-pane fade active in" id="one">
  7 + <div class="widget-body no-padding">
  8 + <div id="toolbar" class="toolbar">
  9 + <a href="javascript:;" class="btn btn-primary btn-refresh" title="{:__('Refresh')}" ><i class="fa fa-refresh"></i> </a>
  10 + <a href="javascript:;" class="btn btn-success btn-add {:$auth->check('mobile/course/course_order/add')?'':'hide'}" title="{:__('Add')}" ><i class="fa fa-plus"></i> {:__('Add')}</a>
  11 + <a href="javascript:;" class="btn btn-success btn-edit btn-disabled disabled {:$auth->check('mobile/course/course_order/edit')?'':'hide'}" title="{:__('Edit')}" ><i class="fa fa-pencil"></i> {:__('Edit')}</a>
  12 + <a href="javascript:;" class="btn btn-danger btn-del btn-disabled disabled {:$auth->check('mobile/course/course_order/del')?'':'hide'}" title="{:__('Delete')}" ><i class="fa fa-trash"></i> {:__('Delete')}</a>
  13 +
  14 +
  15 + </div>
  16 + <table id="table" class="table table-striped table-bordered table-hover table-nowrap"
  17 + data-operate-edit="{:$auth->check('mobile/course/course_order/edit')}"
  18 + data-operate-del="{:$auth->check('mobile/course/course_order/del')}"
  19 + width="100%">
  20 + </table>
  21 + </div>
  22 + </div>
  23 +
  24 + </div>
  25 + </div>
  26 +</div>
  1 +<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
  2 +
  3 + <div class="form-group">
  4 + <label class="control-label col-xs-12 col-sm-2">{:__('Company_id')}:</label>
  5 + <div class="col-xs-12 col-sm-8">
  6 + <input id="c-company_id" data-rule="required" data-source="company/index" class="form-control selectpage" name="row[company_id]" type="text" value="">
  7 + </div>
  8 + </div>
  9 + <div class="form-group">
  10 + <label class="control-label col-xs-12 col-sm-2">{:__('User_id')}:</label>
  11 + <div class="col-xs-12 col-sm-8">
  12 + <input id="c-user_id" data-rule="required" data-source="user/user/index" data-field="nickname" class="form-control selectpage" name="row[user_id]" type="text" value="">
  13 + </div>
  14 + </div>
  15 + <div class="form-group">
  16 + <label class="control-label col-xs-12 col-sm-2">{:__('Order_sn')}:</label>
  17 + <div class="col-xs-12 col-sm-8">
  18 + <input id="c-order_sn" data-rule="required" class="form-control" name="row[order_sn]" type="text" value="">
  19 + </div>
  20 + </div>
  21 + <div class="form-group">
  22 + <label class="control-label col-xs-12 col-sm-2">{:__('Pay_price')}:</label>
  23 + <div class="col-xs-12 col-sm-8">
  24 + <input id="c-pay_price" data-rule="required" class="form-control" step="0.01" name="row[pay_price]" type="number" value="0.00">
  25 + </div>
  26 + </div>
  27 + <div class="form-group">
  28 + <label class="control-label col-xs-12 col-sm-2">{:__('Pay_type')}:</label>
  29 + <div class="col-xs-12 col-sm-8">
  30 +
  31 + <select id="c-pay_type" data-rule="required" class="form-control selectpicker" name="row[pay_type]">
  32 + {foreach name="payTypeList" item="vo"}
  33 + <option value="{$key}" {in name="key" value=""}selected{/in}>{$vo}</option>
  34 + {/foreach}
  35 + </select>
  36 +
  37 + </div>
  38 + </div>
  39 + <div class="form-group">
  40 + <label class="control-label col-xs-12 col-sm-2">{:__('Pay_status')}:</label>
  41 + <div class="col-xs-12 col-sm-8">
  42 +
  43 + <div class="radio">
  44 + {foreach name="payStatusList" item="vo"}
  45 + <label for="row[pay_status]-{$key}"><input id="row[pay_status]-{$key}" name="row[pay_status]" type="radio" value="{$key}" {in name="key" value="0"}checked{/in} /> {$vo}</label>
  46 + {/foreach}
  47 + </div>
  48 +
  49 + </div>
  50 + </div>
  51 + <div class="form-group">
  52 + <label class="control-label col-xs-12 col-sm-2">{:__('Pay_time')}:</label>
  53 + <div class="col-xs-12 col-sm-8">
  54 + <input id="c-pay_time" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[pay_time]" type="text" value="{:date('Y-m-d H:i:s')}">
  55 + </div>
  56 + </div>
  57 + <div class="form-group layer-footer">
  58 + <label class="control-label col-xs-12 col-sm-2"></label>
  59 + <div class="col-xs-12 col-sm-8">
  60 + <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
  61 + <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  62 + </div>
  63 + </div>
  64 +</form>
  1 +<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
  2 +
  3 + <div class="form-group">
  4 + <label class="control-label col-xs-12 col-sm-2">{:__('Company_id')}:</label>
  5 + <div class="col-xs-12 col-sm-8">
  6 + <input id="c-company_id" data-rule="required" data-source="company/index" class="form-control selectpage" name="row[company_id]" type="text" value="{$row.company_id|htmlentities}">
  7 + </div>
  8 + </div>
  9 + <div class="form-group">
  10 + <label class="control-label col-xs-12 col-sm-2">{:__('User_id')}:</label>
  11 + <div class="col-xs-12 col-sm-8">
  12 + <input id="c-user_id" data-rule="required" data-source="user/user/index" data-field="nickname" class="form-control selectpage" name="row[user_id]" type="text" value="{$row.user_id|htmlentities}">
  13 + </div>
  14 + </div>
  15 + <div class="form-group">
  16 + <label class="control-label col-xs-12 col-sm-2">{:__('Order_sn')}:</label>
  17 + <div class="col-xs-12 col-sm-8">
  18 + <input id="c-order_sn" data-rule="required" class="form-control" name="row[order_sn]" type="text" value="{$row.order_sn|htmlentities}">
  19 + </div>
  20 + </div>
  21 + <div class="form-group">
  22 + <label class="control-label col-xs-12 col-sm-2">{:__('Pay_price')}:</label>
  23 + <div class="col-xs-12 col-sm-8">
  24 + <input id="c-pay_price" data-rule="required" class="form-control" step="0.01" name="row[pay_price]" type="number" value="{$row.pay_price|htmlentities}">
  25 + </div>
  26 + </div>
  27 + <div class="form-group">
  28 + <label class="control-label col-xs-12 col-sm-2">{:__('Pay_type')}:</label>
  29 + <div class="col-xs-12 col-sm-8">
  30 +
  31 + <select id="c-pay_type" data-rule="required" class="form-control selectpicker" name="row[pay_type]">
  32 + {foreach name="payTypeList" item="vo"}
  33 + <option value="{$key}" {in name="key" value="$row.pay_type"}selected{/in}>{$vo}</option>
  34 + {/foreach}
  35 + </select>
  36 +
  37 + </div>
  38 + </div>
  39 + <div class="form-group">
  40 + <label class="control-label col-xs-12 col-sm-2">{:__('Pay_status')}:</label>
  41 + <div class="col-xs-12 col-sm-8">
  42 +
  43 + <div class="radio">
  44 + {foreach name="payStatusList" item="vo"}
  45 + <label for="row[pay_status]-{$key}"><input id="row[pay_status]-{$key}" name="row[pay_status]" type="radio" value="{$key}" {in name="key" value="$row.pay_status"}checked{/in} /> {$vo}</label>
  46 + {/foreach}
  47 + </div>
  48 +
  49 + </div>
  50 + </div>
  51 + <div class="form-group">
  52 + <label class="control-label col-xs-12 col-sm-2">{:__('Pay_time')}:</label>
  53 + <div class="col-xs-12 col-sm-8">
  54 + <input id="c-pay_time" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[pay_time]" type="text" value="{:$row.pay_time?datetime($row.pay_time):''}">
  55 + </div>
  56 + </div>
  57 + <div class="form-group layer-footer">
  58 + <label class="control-label col-xs-12 col-sm-2"></label>
  59 + <div class="col-xs-12 col-sm-8">
  60 + <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
  61 + <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  62 + </div>
  63 + </div>
  64 +</form>
  1 +<div class="panel panel-default panel-intro">
  2 + {:build_heading()}
  3 +
  4 + <div class="panel-body">
  5 + <div id="myTabContent" class="tab-content">
  6 + <div class="tab-pane fade active in" id="one">
  7 + <div class="widget-body no-padding">
  8 + <div id="toolbar" class="toolbar">
  9 + <a href="javascript:;" class="btn btn-primary btn-refresh" title="{:__('Refresh')}" ><i class="fa fa-refresh"></i> </a>
  10 + <a href="javascript:;" class="btn btn-success btn-add {:$auth->check('mobile/package/package_order/add')?'':'hide'}" title="{:__('Add')}" ><i class="fa fa-plus"></i> {:__('Add')}</a>
  11 + <a href="javascript:;" class="btn btn-success btn-edit btn-disabled disabled {:$auth->check('mobile/package/package_order/edit')?'':'hide'}" title="{:__('Edit')}" ><i class="fa fa-pencil"></i> {:__('Edit')}</a>
  12 + <a href="javascript:;" class="btn btn-danger btn-del btn-disabled disabled {:$auth->check('mobile/package/package_order/del')?'':'hide'}" title="{:__('Delete')}" ><i class="fa fa-trash"></i> {:__('Delete')}</a>
  13 +
  14 +
  15 + </div>
  16 + <table id="table" class="table table-striped table-bordered table-hover table-nowrap"
  17 + data-operate-edit="{:$auth->check('mobile/package/package_order/edit')}"
  18 + data-operate-del="{:$auth->check('mobile/package/package_order/del')}"
  19 + width="100%">
  20 + </table>
  21 + </div>
  22 + </div>
  23 +
  24 + </div>
  25 + </div>
  26 +</div>
  1 +<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
  2 +
  3 + <div class="form-group">
  4 + <label class="control-label col-xs-12 col-sm-2">{:__('User_id')}:</label>
  5 + <div class="col-xs-12 col-sm-8">
  6 + <input id="c-user_id" data-rule="required" data-source="user/user/index" data-field="nickname" class="form-control selectpage" name="row[user_id]" type="text" value="">
  7 + </div>
  8 + </div>
  9 + <div class="form-group">
  10 + <label class="control-label col-xs-12 col-sm-2">{:__('Score_spec_id')}:</label>
  11 + <div class="col-xs-12 col-sm-8">
  12 + <input id="c-score_spec_id" data-rule="required" data-source="score/spec/index" class="form-control selectpage" name="row[score_spec_id]" type="text" value="">
  13 + </div>
  14 + </div>
  15 + <div class="form-group">
  16 + <label class="control-label col-xs-12 col-sm-2">{:__('Order_sn')}:</label>
  17 + <div class="col-xs-12 col-sm-8">
  18 + <input id="c-order_sn" data-rule="required" class="form-control" name="row[order_sn]" type="text" value="">
  19 + </div>
  20 + </div>
  21 + <div class="form-group">
  22 + <label class="control-label col-xs-12 col-sm-2">{:__('Pay_price')}:</label>
  23 + <div class="col-xs-12 col-sm-8">
  24 + <input id="c-pay_price" data-rule="required" class="form-control" step="0.01" name="row[pay_price]" type="number" value="0.00">
  25 + </div>
  26 + </div>
  27 + <div class="form-group">
  28 + <label class="control-label col-xs-12 col-sm-2">{:__('Pay_type')}:</label>
  29 + <div class="col-xs-12 col-sm-8">
  30 +
  31 + <select id="c-pay_type" data-rule="required" class="form-control selectpicker" name="row[pay_type]">
  32 + {foreach name="payTypeList" item="vo"}
  33 + <option value="{$key}" {in name="key" value=""}selected{/in}>{$vo}</option>
  34 + {/foreach}
  35 + </select>
  36 +
  37 + </div>
  38 + </div>
  39 + <div class="form-group">
  40 + <label class="control-label col-xs-12 col-sm-2">{:__('Pay_status')}:</label>
  41 + <div class="col-xs-12 col-sm-8">
  42 +
  43 + <div class="radio">
  44 + {foreach name="payStatusList" item="vo"}
  45 + <label for="row[pay_status]-{$key}"><input id="row[pay_status]-{$key}" name="row[pay_status]" type="radio" value="{$key}" {in name="key" value="0"}checked{/in} /> {$vo}</label>
  46 + {/foreach}
  47 + </div>
  48 +
  49 + </div>
  50 + </div>
  51 + <div class="form-group">
  52 + <label class="control-label col-xs-12 col-sm-2">{:__('Pay_time')}:</label>
  53 + <div class="col-xs-12 col-sm-8">
  54 + <input id="c-pay_time" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[pay_time]" type="text" value="{:date('Y-m-d H:i:s')}">
  55 + </div>
  56 + </div>
  57 + <div class="form-group">
  58 + <label class="control-label col-xs-12 col-sm-2">{:__('Score')}:</label>
  59 + <div class="col-xs-12 col-sm-8">
  60 + <input id="c-score" data-rule="required" class="form-control" name="row[score]" type="number" value="0">
  61 + </div>
  62 + </div>
  63 + <div class="form-group layer-footer">
  64 + <label class="control-label col-xs-12 col-sm-2"></label>
  65 + <div class="col-xs-12 col-sm-8">
  66 + <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
  67 + <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  68 + </div>
  69 + </div>
  70 +</form>
  1 +<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
  2 +
  3 + <div class="form-group">
  4 + <label class="control-label col-xs-12 col-sm-2">{:__('User_id')}:</label>
  5 + <div class="col-xs-12 col-sm-8">
  6 + <input id="c-user_id" data-rule="required" data-source="user/user/index" data-field="nickname" class="form-control selectpage" name="row[user_id]" type="text" value="{$row.user_id|htmlentities}">
  7 + </div>
  8 + </div>
  9 + <div class="form-group">
  10 + <label class="control-label col-xs-12 col-sm-2">{:__('Score_spec_id')}:</label>
  11 + <div class="col-xs-12 col-sm-8">
  12 + <input id="c-score_spec_id" data-rule="required" data-source="score/spec/index" class="form-control selectpage" name="row[score_spec_id]" type="text" value="{$row.score_spec_id|htmlentities}">
  13 + </div>
  14 + </div>
  15 + <div class="form-group">
  16 + <label class="control-label col-xs-12 col-sm-2">{:__('Order_sn')}:</label>
  17 + <div class="col-xs-12 col-sm-8">
  18 + <input id="c-order_sn" data-rule="required" class="form-control" name="row[order_sn]" type="text" value="{$row.order_sn|htmlentities}">
  19 + </div>
  20 + </div>
  21 + <div class="form-group">
  22 + <label class="control-label col-xs-12 col-sm-2">{:__('Pay_price')}:</label>
  23 + <div class="col-xs-12 col-sm-8">
  24 + <input id="c-pay_price" data-rule="required" class="form-control" step="0.01" name="row[pay_price]" type="number" value="{$row.pay_price|htmlentities}">
  25 + </div>
  26 + </div>
  27 + <div class="form-group">
  28 + <label class="control-label col-xs-12 col-sm-2">{:__('Pay_type')}:</label>
  29 + <div class="col-xs-12 col-sm-8">
  30 +
  31 + <select id="c-pay_type" data-rule="required" class="form-control selectpicker" name="row[pay_type]">
  32 + {foreach name="payTypeList" item="vo"}
  33 + <option value="{$key}" {in name="key" value="$row.pay_type"}selected{/in}>{$vo}</option>
  34 + {/foreach}
  35 + </select>
  36 +
  37 + </div>
  38 + </div>
  39 + <div class="form-group">
  40 + <label class="control-label col-xs-12 col-sm-2">{:__('Pay_status')}:</label>
  41 + <div class="col-xs-12 col-sm-8">
  42 +
  43 + <div class="radio">
  44 + {foreach name="payStatusList" item="vo"}
  45 + <label for="row[pay_status]-{$key}"><input id="row[pay_status]-{$key}" name="row[pay_status]" type="radio" value="{$key}" {in name="key" value="$row.pay_status"}checked{/in} /> {$vo}</label>
  46 + {/foreach}
  47 + </div>
  48 +
  49 + </div>
  50 + </div>
  51 + <div class="form-group">
  52 + <label class="control-label col-xs-12 col-sm-2">{:__('Pay_time')}:</label>
  53 + <div class="col-xs-12 col-sm-8">
  54 + <input id="c-pay_time" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[pay_time]" type="text" value="{:$row.pay_time?datetime($row.pay_time):''}">
  55 + </div>
  56 + </div>
  57 + <div class="form-group">
  58 + <label class="control-label col-xs-12 col-sm-2">{:__('Score')}:</label>
  59 + <div class="col-xs-12 col-sm-8">
  60 + <input id="c-score" data-rule="required" class="form-control" name="row[score]" type="number" value="{$row.score|htmlentities}">
  61 + </div>
  62 + </div>
  63 + <div class="form-group layer-footer">
  64 + <label class="control-label col-xs-12 col-sm-2"></label>
  65 + <div class="col-xs-12 col-sm-8">
  66 + <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
  67 + <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  68 + </div>
  69 + </div>
  70 +</form>
  1 +<div class="panel panel-default panel-intro">
  2 + {:build_heading()}
  3 +
  4 + <div class="panel-body">
  5 + <div id="myTabContent" class="tab-content">
  6 + <div class="tab-pane fade active in" id="one">
  7 + <div class="widget-body no-padding">
  8 + <div id="toolbar" class="toolbar">
  9 + <a href="javascript:;" class="btn btn-primary btn-refresh" title="{:__('Refresh')}" ><i class="fa fa-refresh"></i> </a>
  10 + <a href="javascript:;" class="btn btn-success btn-add {:$auth->check('mobile/score/score_order/add')?'':'hide'}" title="{:__('Add')}" ><i class="fa fa-plus"></i> {:__('Add')}</a>
  11 + <a href="javascript:;" class="btn btn-success btn-edit btn-disabled disabled {:$auth->check('mobile/score/score_order/edit')?'':'hide'}" title="{:__('Edit')}" ><i class="fa fa-pencil"></i> {:__('Edit')}</a>
  12 + <a href="javascript:;" class="btn btn-danger btn-del btn-disabled disabled {:$auth->check('mobile/score/score_order/del')?'':'hide'}" title="{:__('Delete')}" ><i class="fa fa-trash"></i> {:__('Delete')}</a>
  13 + <a href="javascript:;" class="btn btn-danger btn-import {:$auth->check('mobile/score/score_order/import')?'':'hide'}" title="{:__('Import')}" id="btn-import-file" data-url="ajax/upload" data-mimetype="csv,xls,xlsx" data-multiple="false"><i class="fa fa-upload"></i> {:__('Import')}</a>
  14 +
  15 + <div class="dropdown btn-group {:$auth->check('mobile/score/score_order/multi')?'':'hide'}">
  16 + <a class="btn btn-primary btn-more dropdown-toggle btn-disabled disabled" data-toggle="dropdown"><i class="fa fa-cog"></i> {:__('More')}</a>
  17 + <ul class="dropdown-menu text-left" role="menu">
  18 + <li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="status=normal"><i class="fa fa-eye"></i> {:__('Set to normal')}</a></li>
  19 + <li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="status=hidden"><i class="fa fa-eye-slash"></i> {:__('Set to hidden')}</a></li>
  20 + </ul>
  21 + </div>
  22 +
  23 +
  24 + </div>
  25 + <table id="table" class="table table-striped table-bordered table-hover table-nowrap"
  26 + data-operate-edit="{:$auth->check('mobile/score/score_order/edit')}"
  27 + data-operate-del="{:$auth->check('mobile/score/score_order/del')}"
  28 + width="100%">
  29 + </table>
  30 + </div>
  31 + </div>
  32 +
  33 + </div>
  34 + </div>
  35 +</div>
  1 +<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
  2 +
  3 + <div class="form-group">
  4 + <label class="control-label col-xs-12 col-sm-2">{:__('Spec_score')}:</label>
  5 + <div class="col-xs-12 col-sm-8">
  6 + <input id="c-spec_score" data-rule="required" class="form-control" name="row[spec_score]" type="number" value="0">
  7 + </div>
  8 + </div>
  9 + <div class="form-group">
  10 + <label class="control-label col-xs-12 col-sm-2">{:__('Give_score')}:</label>
  11 + <div class="col-xs-12 col-sm-8">
  12 + <input id="c-give_score" data-rule="required" class="form-control" name="row[give_score]" type="number" value="0">
  13 + </div>
  14 + </div>
  15 + <div class="form-group layer-footer">
  16 + <label class="control-label col-xs-12 col-sm-2"></label>
  17 + <div class="col-xs-12 col-sm-8">
  18 + <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
  19 + <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  20 + </div>
  21 + </div>
  22 +</form>
  1 +<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
  2 +
  3 + <div class="form-group">
  4 + <label class="control-label col-xs-12 col-sm-2">{:__('Spec_score')}:</label>
  5 + <div class="col-xs-12 col-sm-8">
  6 + <input id="c-spec_score" data-rule="required" class="form-control" name="row[spec_score]" type="number" value="{$row.spec_score|htmlentities}">
  7 + </div>
  8 + </div>
  9 + <div class="form-group">
  10 + <label class="control-label col-xs-12 col-sm-2">{:__('Give_score')}:</label>
  11 + <div class="col-xs-12 col-sm-8">
  12 + <input id="c-give_score" data-rule="required" class="form-control" name="row[give_score]" type="number" value="{$row.give_score|htmlentities}">
  13 + </div>
  14 + </div>
  15 + <div class="form-group layer-footer">
  16 + <label class="control-label col-xs-12 col-sm-2"></label>
  17 + <div class="col-xs-12 col-sm-8">
  18 + <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
  19 + <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  20 + </div>
  21 + </div>
  22 +</form>
  1 +<div class="panel panel-default panel-intro">
  2 + {:build_heading()}
  3 +
  4 + <div class="panel-body">
  5 + <div id="myTabContent" class="tab-content">
  6 + <div class="tab-pane fade active in" id="one">
  7 + <div class="widget-body no-padding">
  8 + <div id="toolbar" class="toolbar">
  9 + <a href="javascript:;" class="btn btn-primary btn-refresh" title="{:__('Refresh')}" ><i class="fa fa-refresh"></i> </a>
  10 + <a href="javascript:;" class="btn btn-success btn-add {:$auth->check('mobile/score/score_spec/add')?'':'hide'}" title="{:__('Add')}" ><i class="fa fa-plus"></i> {:__('Add')}</a>
  11 + <a href="javascript:;" class="btn btn-success btn-edit btn-disabled disabled {:$auth->check('mobile/score/score_spec/edit')?'':'hide'}" title="{:__('Edit')}" ><i class="fa fa-pencil"></i> {:__('Edit')}</a>
  12 + <a href="javascript:;" class="btn btn-danger btn-del btn-disabled disabled {:$auth->check('mobile/score/score_spec/del')?'':'hide'}" title="{:__('Delete')}" ><i class="fa fa-trash"></i> {:__('Delete')}</a>
  13 + <a href="javascript:;" class="btn btn-danger btn-import {:$auth->check('mobile/score/score_spec/import')?'':'hide'}" title="{:__('Import')}" id="btn-import-file" data-url="ajax/upload" data-mimetype="csv,xls,xlsx" data-multiple="false"><i class="fa fa-upload"></i> {:__('Import')}</a>
  14 +
  15 + <div class="dropdown btn-group {:$auth->check('mobile/score/score_spec/multi')?'':'hide'}">
  16 + <a class="btn btn-primary btn-more dropdown-toggle btn-disabled disabled" data-toggle="dropdown"><i class="fa fa-cog"></i> {:__('More')}</a>
  17 + <ul class="dropdown-menu text-left" role="menu">
  18 + <li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="status=normal"><i class="fa fa-eye"></i> {:__('Set to normal')}</a></li>
  19 + <li><a class="btn btn-link btn-multi btn-disabled disabled" href="javascript:;" data-params="status=hidden"><i class="fa fa-eye-slash"></i> {:__('Set to hidden')}</a></li>
  20 + </ul>
  21 + </div>
  22 +
  23 +
  24 + </div>
  25 + <table id="table" class="table table-striped table-bordered table-hover table-nowrap"
  26 + data-operate-edit="{:$auth->check('mobile/score/score_spec/edit')}"
  27 + data-operate-del="{:$auth->check('mobile/score/score_spec/del')}"
  28 + width="100%">
  29 + </table>
  30 + </div>
  31 + </div>
  32 +
  33 + </div>
  34 + </div>
  35 +</div>
  1 +<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
  2 +
  3 + <div class="form-group">
  4 + <label class="control-label col-xs-12 col-sm-2">{:__('Company_id')}:</label>
  5 + <div class="col-xs-12 col-sm-8">
  6 + <input id="c-company_id" data-rule="required" data-source="company/index" class="form-control selectpage" name="row[company_id]" type="text" value="">
  7 + </div>
  8 + </div>
  9 + <div class="form-group">
  10 + <label class="control-label col-xs-12 col-sm-2">{:__('User_id')}:</label>
  11 + <div class="col-xs-12 col-sm-8">
  12 + <input id="c-user_id" data-rule="required" data-source="user/user/index" data-field="nickname" class="form-control selectpage" name="row[user_id]" type="text" value="">
  13 + </div>
  14 + </div>
  15 + <div class="form-group">
  16 + <label class="control-label col-xs-12 col-sm-2">{:__('Secret_id')}:</label>
  17 + <div class="col-xs-12 col-sm-8">
  18 + <input id="c-secret_id" data-rule="required" data-source="secret/index" class="form-control selectpage" name="row[secret_id]" type="text" value="">
  19 + </div>
  20 + </div>
  21 + <div class="form-group">
  22 + <label class="control-label col-xs-12 col-sm-2">{:__('Secret_spec_id')}:</label>
  23 + <div class="col-xs-12 col-sm-8">
  24 + <input id="c-secret_spec_id" data-rule="required" data-source="secret/spec/index" class="form-control selectpage" name="row[secret_spec_id]" type="text" value="">
  25 + </div>
  26 + </div>
  27 + <div class="form-group">
  28 + <label class="control-label col-xs-12 col-sm-2">{:__('Order_sn')}:</label>
  29 + <div class="col-xs-12 col-sm-8">
  30 + <input id="c-order_sn" data-rule="required" class="form-control" name="row[order_sn]" type="text" value="">
  31 + </div>
  32 + </div>
  33 + <div class="form-group">
  34 + <label class="control-label col-xs-12 col-sm-2">{:__('Pay_price')}:</label>
  35 + <div class="col-xs-12 col-sm-8">
  36 + <input id="c-pay_price" data-rule="required" class="form-control" step="0.01" name="row[pay_price]" type="number" value="0.00">
  37 + </div>
  38 + </div>
  39 + <div class="form-group">
  40 + <label class="control-label col-xs-12 col-sm-2">{:__('Pay_type')}:</label>
  41 + <div class="col-xs-12 col-sm-8">
  42 +
  43 + <select id="c-pay_type" data-rule="required" class="form-control selectpicker" name="row[pay_type]">
  44 + {foreach name="payTypeList" item="vo"}
  45 + <option value="{$key}" {in name="key" value=""}selected{/in}>{$vo}</option>
  46 + {/foreach}
  47 + </select>
  48 +
  49 + </div>
  50 + </div>
  51 + <div class="form-group">
  52 + <label class="control-label col-xs-12 col-sm-2">{:__('Pay_status')}:</label>
  53 + <div class="col-xs-12 col-sm-8">
  54 +
  55 + <div class="radio">
  56 + {foreach name="payStatusList" item="vo"}
  57 + <label for="row[pay_status]-{$key}"><input id="row[pay_status]-{$key}" name="row[pay_status]" type="radio" value="{$key}" {in name="key" value="0"}checked{/in} /> {$vo}</label>
  58 + {/foreach}
  59 + </div>
  60 +
  61 + </div>
  62 + </div>
  63 + <div class="form-group">
  64 + <label class="control-label col-xs-12 col-sm-2">{:__('Pay_time')}:</label>
  65 + <div class="col-xs-12 col-sm-8">
  66 + <input id="c-pay_time" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[pay_time]" type="text" value="{:date('Y-m-d H:i:s')}">
  67 + </div>
  68 + </div>
  69 + <div class="form-group">
  70 + <label class="control-label col-xs-12 col-sm-2">{:__('Secret_price')}:</label>
  71 + <div class="col-xs-12 col-sm-8">
  72 + <input id="c-secret_price" data-rule="required" class="form-control" step="0.01" name="row[secret_price]" type="number" value="0.00">
  73 + </div>
  74 + </div>
  75 + <div class="form-group">
  76 + <label class="control-label col-xs-12 col-sm-2">{:__('Score')}:</label>
  77 + <div class="col-xs-12 col-sm-8">
  78 + <input id="c-score" data-rule="required" class="form-control" name="row[score]" type="number" value="0">
  79 + </div>
  80 + </div>
  81 + <div class="form-group">
  82 + <label class="control-label col-xs-12 col-sm-2">{:__('Score_price')}:</label>
  83 + <div class="col-xs-12 col-sm-8">
  84 + <input id="c-score_price" data-rule="required" class="form-control" step="0.01" name="row[score_price]" type="number" value="0.00">
  85 + </div>
  86 + </div>
  87 + <div class="form-group">
  88 + <label class="control-label col-xs-12 col-sm-2">{:__('People_num')}:</label>
  89 + <div class="col-xs-12 col-sm-8">
  90 + <input id="c-people_num" data-rule="required" class="form-control" name="row[people_num]" type="number" value="0">
  91 + </div>
  92 + </div>
  93 + <div class="form-group">
  94 + <label class="control-label col-xs-12 col-sm-2">{:__('Is_top')}:</label>
  95 + <div class="col-xs-12 col-sm-8">
  96 +
  97 + <select id="c-is_top" data-rule="required" class="form-control selectpicker" name="row[is_top]">
  98 + {foreach name="isTopList" item="vo"}
  99 + <option value="{$key}" {in name="key" value="0"}selected{/in}>{$vo}</option>
  100 + {/foreach}
  101 + </select>
  102 +
  103 + </div>
  104 + </div>
  105 + <div class="form-group layer-footer">
  106 + <label class="control-label col-xs-12 col-sm-2"></label>
  107 + <div class="col-xs-12 col-sm-8">
  108 + <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
  109 + <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  110 + </div>
  111 + </div>
  112 +</form>
  1 +<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
  2 +
  3 + <div class="form-group">
  4 + <label class="control-label col-xs-12 col-sm-2">{:__('Company_id')}:</label>
  5 + <div class="col-xs-12 col-sm-8">
  6 + <input id="c-company_id" data-rule="required" data-source="company/index" class="form-control selectpage" name="row[company_id]" type="text" value="{$row.company_id|htmlentities}">
  7 + </div>
  8 + </div>
  9 + <div class="form-group">
  10 + <label class="control-label col-xs-12 col-sm-2">{:__('User_id')}:</label>
  11 + <div class="col-xs-12 col-sm-8">
  12 + <input id="c-user_id" data-rule="required" data-source="user/user/index" data-field="nickname" class="form-control selectpage" name="row[user_id]" type="text" value="{$row.user_id|htmlentities}">
  13 + </div>
  14 + </div>
  15 + <div class="form-group">
  16 + <label class="control-label col-xs-12 col-sm-2">{:__('Secret_id')}:</label>
  17 + <div class="col-xs-12 col-sm-8">
  18 + <input id="c-secret_id" data-rule="required" data-source="secret/index" class="form-control selectpage" name="row[secret_id]" type="text" value="{$row.secret_id|htmlentities}">
  19 + </div>
  20 + </div>
  21 + <div class="form-group">
  22 + <label class="control-label col-xs-12 col-sm-2">{:__('Secret_spec_id')}:</label>
  23 + <div class="col-xs-12 col-sm-8">
  24 + <input id="c-secret_spec_id" data-rule="required" data-source="secret/spec/index" class="form-control selectpage" name="row[secret_spec_id]" type="text" value="{$row.secret_spec_id|htmlentities}">
  25 + </div>
  26 + </div>
  27 + <div class="form-group">
  28 + <label class="control-label col-xs-12 col-sm-2">{:__('Order_sn')}:</label>
  29 + <div class="col-xs-12 col-sm-8">
  30 + <input id="c-order_sn" data-rule="required" class="form-control" name="row[order_sn]" type="text" value="{$row.order_sn|htmlentities}">
  31 + </div>
  32 + </div>
  33 + <div class="form-group">
  34 + <label class="control-label col-xs-12 col-sm-2">{:__('Pay_price')}:</label>
  35 + <div class="col-xs-12 col-sm-8">
  36 + <input id="c-pay_price" data-rule="required" class="form-control" step="0.01" name="row[pay_price]" type="number" value="{$row.pay_price|htmlentities}">
  37 + </div>
  38 + </div>
  39 + <div class="form-group">
  40 + <label class="control-label col-xs-12 col-sm-2">{:__('Pay_type')}:</label>
  41 + <div class="col-xs-12 col-sm-8">
  42 +
  43 + <select id="c-pay_type" data-rule="required" class="form-control selectpicker" name="row[pay_type]">
  44 + {foreach name="payTypeList" item="vo"}
  45 + <option value="{$key}" {in name="key" value="$row.pay_type"}selected{/in}>{$vo}</option>
  46 + {/foreach}
  47 + </select>
  48 +
  49 + </div>
  50 + </div>
  51 + <div class="form-group">
  52 + <label class="control-label col-xs-12 col-sm-2">{:__('Pay_status')}:</label>
  53 + <div class="col-xs-12 col-sm-8">
  54 +
  55 + <div class="radio">
  56 + {foreach name="payStatusList" item="vo"}
  57 + <label for="row[pay_status]-{$key}"><input id="row[pay_status]-{$key}" name="row[pay_status]" type="radio" value="{$key}" {in name="key" value="$row.pay_status"}checked{/in} /> {$vo}</label>
  58 + {/foreach}
  59 + </div>
  60 +
  61 + </div>
  62 + </div>
  63 + <div class="form-group">
  64 + <label class="control-label col-xs-12 col-sm-2">{:__('Pay_time')}:</label>
  65 + <div class="col-xs-12 col-sm-8">
  66 + <input id="c-pay_time" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[pay_time]" type="text" value="{:$row.pay_time?datetime($row.pay_time):''}">
  67 + </div>
  68 + </div>
  69 + <div class="form-group">
  70 + <label class="control-label col-xs-12 col-sm-2">{:__('Secret_price')}:</label>
  71 + <div class="col-xs-12 col-sm-8">
  72 + <input id="c-secret_price" data-rule="required" class="form-control" step="0.01" name="row[secret_price]" type="number" value="{$row.secret_price|htmlentities}">
  73 + </div>
  74 + </div>
  75 + <div class="form-group">
  76 + <label class="control-label col-xs-12 col-sm-2">{:__('Score')}:</label>
  77 + <div class="col-xs-12 col-sm-8">
  78 + <input id="c-score" data-rule="required" class="form-control" name="row[score]" type="number" value="{$row.score|htmlentities}">
  79 + </div>
  80 + </div>
  81 + <div class="form-group">
  82 + <label class="control-label col-xs-12 col-sm-2">{:__('Score_price')}:</label>
  83 + <div class="col-xs-12 col-sm-8">
  84 + <input id="c-score_price" data-rule="required" class="form-control" step="0.01" name="row[score_price]" type="number" value="{$row.score_price|htmlentities}">
  85 + </div>
  86 + </div>
  87 + <div class="form-group">
  88 + <label class="control-label col-xs-12 col-sm-2">{:__('People_num')}:</label>
  89 + <div class="col-xs-12 col-sm-8">
  90 + <input id="c-people_num" data-rule="required" class="form-control" name="row[people_num]" type="number" value="{$row.people_num|htmlentities}">
  91 + </div>
  92 + </div>
  93 + <div class="form-group">
  94 + <label class="control-label col-xs-12 col-sm-2">{:__('Is_top')}:</label>
  95 + <div class="col-xs-12 col-sm-8">
  96 +
  97 + <select id="c-is_top" data-rule="required" class="form-control selectpicker" name="row[is_top]">
  98 + {foreach name="isTopList" item="vo"}
  99 + <option value="{$key}" {in name="key" value="$row.is_top"}selected{/in}>{$vo}</option>
  100 + {/foreach}
  101 + </select>
  102 +
  103 + </div>
  104 + </div>
  105 + <div class="form-group layer-footer">
  106 + <label class="control-label col-xs-12 col-sm-2"></label>
  107 + <div class="col-xs-12 col-sm-8">
  108 + <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
  109 + <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  110 + </div>
  111 + </div>
  112 +</form>
  1 +<div class="panel panel-default panel-intro">
  2 + {:build_heading()}
  3 +
  4 + <div class="panel-body">
  5 + <div id="myTabContent" class="tab-content">
  6 + <div class="tab-pane fade active in" id="one">
  7 + <div class="widget-body no-padding">
  8 + <div id="toolbar" class="toolbar">
  9 + <a href="javascript:;" class="btn btn-primary btn-refresh" title="{:__('Refresh')}" ><i class="fa fa-refresh"></i> </a>
  10 + <a href="javascript:;" class="btn btn-success btn-add {:$auth->check('mobile/secret/secret_order/add')?'':'hide'}" title="{:__('Add')}" ><i class="fa fa-plus"></i> {:__('Add')}</a>
  11 + <a href="javascript:;" class="btn btn-success btn-edit btn-disabled disabled {:$auth->check('mobile/secret/secret_order/edit')?'':'hide'}" title="{:__('Edit')}" ><i class="fa fa-pencil"></i> {:__('Edit')}</a>
  12 + <a href="javascript:;" class="btn btn-danger btn-del btn-disabled disabled {:$auth->check('mobile/secret/secret_order/del')?'':'hide'}" title="{:__('Delete')}" ><i class="fa fa-trash"></i> {:__('Delete')}</a>
  13 +
  14 +
  15 + </div>
  16 + <table id="table" class="table table-striped table-bordered table-hover table-nowrap"
  17 + data-operate-edit="{:$auth->check('mobile/secret/secret_order/edit')}"
  18 + data-operate-del="{:$auth->check('mobile/secret/secret_order/del')}"
  19 + width="100%">
  20 + </table>
  21 + </div>
  22 + </div>
  23 +
  24 + </div>
  25 + </div>
  26 +</div>
  1 +<div class="panel panel-default panel-intro">
  2 +
  3 + <div class="panel-heading">
  4 + {:build_heading(null,FALSE)}
  5 + <ul class="nav nav-tabs" data-field="type">
  6 + {foreach name="typeList" item="vo"}
  7 + <li><a href="#{$key}" data-value="{$key}" data-toggle="tab">{$vo}</a></li>
  8 + {/foreach}
  9 + </ul>
  10 + </div>
  11 +
  12 + <div class="panel-body">
  13 + <div id="myTabContent" class="tab-content">
  14 + <div class="tab-pane fade active in" id="one">
  15 + <div class="widget-body no-padding">
  16 + <div id="toolbar" class="toolbar">
  17 + <a href="javascript:;" class="btn btn-primary btn-refresh" title="{:__('Refresh')}" ><i class="fa fa-refresh"></i> </a>
  18 +
  19 + </div>
  20 + <table id="table" class="table table-striped table-bordered table-hover table-nowrap"
  21 + data-operate-edit="{:$auth->check('mobile/old/edit')}"
  22 + data-operate-del="{:$auth->check('mobile/old/del')}"
  23 + width="100%">
  24 + </table>
  25 + </div>
  26 + </div>
  27 +
  28 + </div>
  29 + </div>
  30 +</div>
  1 +define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefined, Backend, Table, Form) {
  2 +
  3 + var Controller = {
  4 + index: function () {
  5 + // 初始化表格参数配置
  6 + Table.api.init({
  7 + extend: {
  8 + index_url: 'mobile/course/course_order/index' + location.search,
  9 + add_url: 'mobile/course/course_order/add',
  10 + edit_url: 'mobile/course/course_order/edit',
  11 + del_url: 'mobile/course/course_order/del',
  12 + multi_url: 'mobile/course/course_order/multi',
  13 + table: 'mobile_course_order',
  14 + }
  15 + });
  16 +
  17 + var table = $("#table");
  18 +
  19 + // 初始化表格
  20 + table.bootstrapTable({
  21 + url: $.fn.bootstrapTable.defaults.extend.index_url,
  22 + pk: 'id',
  23 + sortName: 'id',
  24 + columns: [
  25 + [
  26 + {checkbox: true},
  27 + {field: 'id', title: __('Id')},
  28 + {field: 'order_sn', title: __('Order_sn')},
  29 + {field: 'pay_price', title: __('Pay_price'), operate:'BETWEEN'},
  30 + {field: 'pay_type', title: __('Pay_type'), searchList: {"wechat":__('Pay_type wechat'),"alipay":__('Pay_type alipay')}, formatter: Table.api.formatter.normal},
  31 + {field: 'pay_status', title: __('Pay_status'), searchList: {"0":__('Pay_status 0'),"1":__('Pay_status 1')}, formatter: Table.api.formatter.status},
  32 + {field: 'pay_time', title: __('Pay_time'), operate:'RANGE', addclass:'datetimerange', formatter: Table.api.formatter.datetime},
  33 + {field: 'course_price', title: __('Course_price'), operate:'BETWEEN'},
  34 + {field: 'score', title: __('Score')},
  35 + {field: 'score_price', title: __('Score_price'), operate:'BETWEEN'},
  36 + {field: 'people_num', title: __('People_num')},
  37 + {field: 'is_top', title: __('Is_top'), searchList: {"0":__('Is_top 0'),"1":__('Is_top 1')}, formatter: Table.api.formatter.normal},
  38 + {field: 'mobilecompany.name', title: __('Mobilecompany.name')},
  39 + {field: 'user.nickname', title: __('User.nickname')},
  40 + {field: 'mobilecourse.title', title: __('Mobilecourse.title')},
  41 + {field: 'mobilecoursespec.name', title: __('Mobilecoursespec.name')},
  42 + {field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate}
  43 + ]
  44 + ]
  45 + });
  46 +
  47 + // 为表格绑定事件
  48 + Table.api.bindevent(table);
  49 + },
  50 + add: function () {
  51 + Controller.api.bindevent();
  52 + },
  53 + edit: function () {
  54 + Controller.api.bindevent();
  55 + },
  56 + api: {
  57 + bindevent: function () {
  58 + Form.api.bindevent($("form[role=form]"));
  59 + }
  60 + }
  61 + };
  62 + return Controller;
  63 +});
  1 +define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefined, Backend, Table, Form) {
  2 +
  3 + var Controller = {
  4 + index: function () {
  5 + // 初始化表格参数配置
  6 + Table.api.init({
  7 + extend: {
  8 + index_url: 'mobile/package/package_order/index' + location.search,
  9 + add_url: 'mobile/package/package_order/add',
  10 + edit_url: 'mobile/package/package_order/edit',
  11 + del_url: 'mobile/package/package_order/del',
  12 + multi_url: 'mobile/package/package_order/multi',
  13 + table: 'mobile_package_order',
  14 + }
  15 + });
  16 +
  17 + var table = $("#table");
  18 +
  19 + // 初始化表格
  20 + table.bootstrapTable({
  21 + url: $.fn.bootstrapTable.defaults.extend.index_url,
  22 + pk: 'id',
  23 + sortName: 'id',
  24 + columns: [
  25 + [
  26 + {checkbox: true},
  27 + {field: 'id', title: __('Id')},
  28 + {field: 'order_sn', title: __('Order_sn')},
  29 + {field: 'pay_price', title: __('Pay_price'), operate:'BETWEEN'},
  30 + {field: 'pay_type', title: __('Pay_type'), searchList: {"wechat":__('Pay_type wechat'),"alipay":__('Pay_type alipay')}, formatter: Table.api.formatter.normal},
  31 + {field: 'pay_status', title: __('Pay_status'), searchList: {"0":__('Pay_status 0'),"1":__('Pay_status 1')}, formatter: Table.api.formatter.status},
  32 + {field: 'pay_time', title: __('Pay_time'), operate:'RANGE', addclass:'datetimerange', formatter: Table.api.formatter.datetime},
  33 + {field: 'mobilecompany.name', title: __('Mobilecompany.name')},
  34 + {field: 'user.nickname', title: __('User.nickname')},
  35 + {field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate}
  36 + ]
  37 + ]
  38 + });
  39 +
  40 + // 为表格绑定事件
  41 + Table.api.bindevent(table);
  42 + },
  43 + add: function () {
  44 + Controller.api.bindevent();
  45 + },
  46 + edit: function () {
  47 + Controller.api.bindevent();
  48 + },
  49 + api: {
  50 + bindevent: function () {
  51 + Form.api.bindevent($("form[role=form]"));
  52 + }
  53 + }
  54 + };
  55 + return Controller;
  56 +});
  1 +define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefined, Backend, Table, Form) {
  2 +
  3 + var Controller = {
  4 + index: function () {
  5 + // 初始化表格参数配置
  6 + Table.api.init({
  7 + extend: {
  8 + index_url: 'mobile/score/score_order/index' + location.search,
  9 + add_url: 'mobile/score/score_order/add',
  10 + edit_url: 'mobile/score/score_order/edit',
  11 + del_url: 'mobile/score/score_order/del',
  12 + multi_url: 'mobile/score/score_order/multi',
  13 + table: 'mobile_score_order',
  14 + }
  15 + });
  16 +
  17 + var table = $("#table");
  18 +
  19 + // 初始化表格
  20 + table.bootstrapTable({
  21 + url: $.fn.bootstrapTable.defaults.extend.index_url,
  22 + pk: 'id',
  23 + sortName: 'id',
  24 + columns: [
  25 + [
  26 + {checkbox: true},
  27 + {field: 'id', title: __('Id')},
  28 + {field: 'order_sn', title: __('Order_sn')},
  29 + {field: 'pay_price', title: __('Pay_price'), operate:'BETWEEN'},
  30 + {field: 'pay_type', title: __('Pay_type'), searchList: {"wechat":__('Pay_type wechat'),"alipay":__('Pay_type alipay')}, formatter: Table.api.formatter.normal},
  31 + {field: 'pay_status', title: __('Pay_status'), searchList: {"0":__('Pay_status 0'),"1":__('Pay_status 1')}, formatter: Table.api.formatter.status},
  32 + {field: 'pay_time', title: __('Pay_time'), operate:'RANGE', addclass:'datetimerange', formatter: Table.api.formatter.datetime},
  33 + {field: 'score', title: __('Score')},
  34 + {field: 'user.nickname', title: __('User.nickname')},
  35 + {field: 'mobilescorespec.spec_score', title: __('Mobilescorespec.spec_score')},
  36 + {field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate}
  37 + ]
  38 + ]
  39 + });
  40 +
  41 + // 为表格绑定事件
  42 + Table.api.bindevent(table);
  43 + },
  44 + add: function () {
  45 + Controller.api.bindevent();
  46 + },
  47 + edit: function () {
  48 + Controller.api.bindevent();
  49 + },
  50 + api: {
  51 + bindevent: function () {
  52 + Form.api.bindevent($("form[role=form]"));
  53 + }
  54 + }
  55 + };
  56 + return Controller;
  57 +});
  1 +define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefined, Backend, Table, Form) {
  2 +
  3 + var Controller = {
  4 + index: function () {
  5 + // 初始化表格参数配置
  6 + Table.api.init({
  7 + extend: {
  8 + index_url: 'mobile/score/score_spec/index' + location.search,
  9 + add_url: 'mobile/score/score_spec/add',
  10 + edit_url: 'mobile/score/score_spec/edit',
  11 + del_url: 'mobile/score/score_spec/del',
  12 + multi_url: 'mobile/score/score_spec/multi',
  13 + table: 'mobile_score_spec',
  14 + }
  15 + });
  16 +
  17 + var table = $("#table");
  18 +
  19 + // 初始化表格
  20 + table.bootstrapTable({
  21 + url: $.fn.bootstrapTable.defaults.extend.index_url,
  22 + pk: 'id',
  23 + sortName: 'id',
  24 + columns: [
  25 + [
  26 + {checkbox: true},
  27 + {field: 'id', title: __('Id')},
  28 + {field: 'spec_score', title: __('Spec_score')},
  29 + {field: 'give_score', title: __('Give_score')},
  30 + {field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate}
  31 + ]
  32 + ]
  33 + });
  34 +
  35 + // 为表格绑定事件
  36 + Table.api.bindevent(table);
  37 + },
  38 + add: function () {
  39 + Controller.api.bindevent();
  40 + },
  41 + edit: function () {
  42 + Controller.api.bindevent();
  43 + },
  44 + api: {
  45 + bindevent: function () {
  46 + Form.api.bindevent($("form[role=form]"));
  47 + }
  48 + }
  49 + };
  50 + return Controller;
  51 +});
  1 +define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefined, Backend, Table, Form) {
  2 +
  3 + var Controller = {
  4 + index: function () {
  5 + // 初始化表格参数配置
  6 + Table.api.init({
  7 + extend: {
  8 + index_url: 'mobile/secret/secret_order/index' + location.search,
  9 + add_url: 'mobile/secret/secret_order/add',
  10 + edit_url: 'mobile/secret/secret_order/edit',
  11 + del_url: 'mobile/secret/secret_order/del',
  12 + multi_url: 'mobile/secret/secret_order/multi',
  13 + table: 'mobile_secret_order',
  14 + }
  15 + });
  16 +
  17 + var table = $("#table");
  18 +
  19 + // 初始化表格
  20 + table.bootstrapTable({
  21 + url: $.fn.bootstrapTable.defaults.extend.index_url,
  22 + pk: 'id',
  23 + sortName: 'id',
  24 + columns: [
  25 + [
  26 + {checkbox: true},
  27 + {field: 'id', title: __('Id')},
  28 + {field: 'order_sn', title: __('Order_sn')},
  29 + {field: 'pay_price', title: __('Pay_price'), operate:'BETWEEN'},
  30 + {field: 'pay_type', title: __('Pay_type'), searchList: {"wechat":__('Pay_type wechat'),"alipay":__('Pay_type alipay')}, formatter: Table.api.formatter.normal},
  31 + {field: 'pay_status', title: __('Pay_status'), searchList: {"0":__('Pay_status 0'),"1":__('Pay_status 1')}, formatter: Table.api.formatter.status},
  32 + {field: 'pay_time', title: __('Pay_time'), operate:'RANGE', addclass:'datetimerange', formatter: Table.api.formatter.datetime},
  33 + {field: 'secret_price', title: __('Secret_price'), operate:'BETWEEN'},
  34 + {field: 'score', title: __('Score')},
  35 + {field: 'score_price', title: __('Score_price'), operate:'BETWEEN'},
  36 + {field: 'people_num', title: __('People_num')},
  37 + {field: 'is_top', title: __('Is_top'), searchList: {"0":__('Is_top 0'),"1":__('Is_top 1')}, formatter: Table.api.formatter.normal},
  38 + {field: 'mobilecompany.name', title: __('Mobilecompany.name')},
  39 + {field: 'user.nickname', title: __('User.nickname')},
  40 + {field: 'mobilesecret.title', title: __('Mobilesecret.title')},
  41 + {field: 'mobilesecretspec.name', title: __('Mobilesecretspec.name')},
  42 + {field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate}
  43 + ]
  44 + ]
  45 + });
  46 +
  47 + // 为表格绑定事件
  48 + Table.api.bindevent(table);
  49 + },
  50 + add: function () {
  51 + Controller.api.bindevent();
  52 + },
  53 + edit: function () {
  54 + Controller.api.bindevent();
  55 + },
  56 + api: {
  57 + bindevent: function () {
  58 + Form.api.bindevent($("form[role=form]"));
  59 + }
  60 + }
  61 + };
  62 + return Controller;
  63 +});
  1 +define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefined, Backend, Table, Form) {
  2 +
  3 + var Controller = {
  4 + index: function () {
  5 + // 初始化表格参数配置
  6 + Table.api.init({
  7 + extend: {
  8 + index_url: 'mobile/statistic/index' + location.search,
  9 + table: 'mobile_old',
  10 + }
  11 + });
  12 +
  13 + var table = $("#table");
  14 +
  15 + // 初始化表格
  16 + table.bootstrapTable({
  17 + url: $.fn.bootstrapTable.defaults.extend.index_url,
  18 + pk: 'id',
  19 + sortName: 'id',
  20 + commonSearch: false,
  21 + search: false,
  22 + columns: [
  23 + [
  24 + {checkbox: true},
  25 + {field: 'date', title: __('时间'), operate: false},
  26 + {field: 'register_times', title: __('注册次数'), operate: false},
  27 + {field: 'active_times', title: __('日活跃用户'), operate: false},
  28 + {field: 'startup_times', title: __('启动次数'), operate: false},
  29 + ]
  30 + ]
  31 + });
  32 +
  33 + // 为表格绑定事件
  34 + Table.api.bindevent(table);
  35 +
  36 + //绑定TAB事件
  37 + $('a[data-toggle="tab"]').on('shown.bs.tab', function (e) {
  38 + // var options = table.bootstrapTable(tableOptions);
  39 + var typeStr = $(this).attr("href").replace('#', '');
  40 + var options = table.bootstrapTable('getOptions');
  41 + options.pageNumber = 1;
  42 + options.queryParams = function (params) {
  43 + // params.filter = JSON.stringify({type: typeStr});
  44 + params.type = typeStr;
  45 +
  46 + return params;
  47 + };
  48 + table.bootstrapTable('refresh', {});
  49 + return false;
  50 +
  51 + });
  52 + },
  53 + api: {
  54 + bindevent: function () {
  55 + Form.api.bindevent($("form[role=form]"));
  56 + }
  57 + }
  58 + };
  59 + return Controller;
  60 +});