diff --git a/application/admin/common.php b/application/admin/common.php index 316ba6dd..12e02529 100644 --- a/application/admin/common.php +++ b/application/admin/common.php @@ -34,13 +34,13 @@ function attrFormat($arr){ //替代变量3 $rep3 = explode('_', $h); //替代变量4 - $rep4['detail'][$rep3[0]] = $rep3[1]; + $rep4['detail'][$rep3[0]] = isset($rep3[1]) ? $rep3[1] : ''; } $res[] = $rep4; } } } - $data = $tmp; + $data = isset($tmp) ? $tmp : []; } }else{ $dataArr = []; @@ -102,18 +102,18 @@ function clearfile($path,$ext = '*.log') } return true; } + /**获取当前类方法 * @param $class * @return array */ -function get_this_class_methods($class,$array4 = []) { - $array1 = get_class_methods($class); +function get_this_class_methods($class,$unarray = []) { + $arrayall = get_class_methods($class); if ($parent_class = get_parent_class($class)) { - $array2 = get_class_methods($parent_class); - $array3 = array_diff($array1, $array2);//去除父级的 + $arrayparent = get_class_methods($parent_class); + $arraynow = array_diff($arrayall, $arrayparent);//去除父级的 } else { - $array3 = $array1; + $arraynow = $arrayall; } - $array5 = array_diff($array3, $array4);//去除无用的 - return $array5; + return array_diff($arraynow, $unarray);//去除无用的 } diff --git a/application/admin/controller/Index.php b/application/admin/controller/Index.php index 74afc59b..2b109057 100644 --- a/application/admin/controller/Index.php +++ b/application/admin/controller/Index.php @@ -11,6 +11,7 @@ use app\admin\model\user\UserExtract as UserExtractModel;//分销 use app\admin\model\user\User as UserModel;//用户 use app\admin\model\store\StoreProductReply as StoreProductReplyModel;//评论 use app\admin\model\store\StoreProduct as ProductModel;//产品 +use app\core\util\SystemConfigService; use FormBuilder\Json; use think\DB; @@ -28,11 +29,10 @@ class Index extends AuthController $adminInfo = $this->adminInfo->toArray(); $roles = explode(',',$adminInfo['roles']); $site_logo = SystemConfig::getOneConfig('menu_name','site_logo')->toArray(); -// dump(SystemMenus::menuList()); -// exit(); $this->assign([ 'menuList'=>SystemMenus::menuList(), 'site_logo'=>json_decode($site_logo['value'],true), + 'new_order_audio_link'=>str_replace('\\','/',SystemConfigService::get('new_order_audio_link')), 'role_name'=>SystemRole::where('id',$roles[0])->field('role_name')->find() ]); return $this->fetch(); @@ -545,32 +545,37 @@ class Index extends AuthController $data = []; $chartdata['legend'] = ['用户数'];//分类 $chartdata['yAxis']['maxnum'] = 0;//最大值数量 - if(empty($user_list))return Json::fail('无数据'); - foreach ($user_list as $k=>$v){ - $data['day'][] = $v['day']; - $data['count'][] = $v['count']; - if($chartdata['yAxis']['maxnum'] < $v['count']) - $chartdata['yAxis']['maxnum'] = $v['count']; + $chartdata['xAxis'] = [date('m-d')];//X轴值 + $chartdata['series'] = [0];//分类1值 + if(!empty($user_list)) { + foreach ($user_list as $k=>$v){ + $data['day'][] = $v['day']; + $data['count'][] = $v['count']; + if($chartdata['yAxis']['maxnum'] < $v['count']) + $chartdata['yAxis']['maxnum'] = $v['count']; + } + $chartdata['xAxis'] = $data['day'];//X轴值 + $chartdata['series'] = $data['count'];//分类1值 } - $chartdata['xAxis'] = $data['day'];//X轴值 - $chartdata['series'] = $data['count'];//分类1值 - return Json::succ('ok',$chartdata); } /**待办事统计 * @param Request|null $request */ - public function Jnotice() + public function Jnotice($newTime=30) { header('Content-type:text/json'); $data = []; $data['ordernum'] = StoreOrderModel::statusByWhere(1)->count();//待发货 $replenishment_num = SystemConfig::getValue('store_stock') > 0 ? SystemConfig::getValue('store_stock') : 2;//库存预警界限 $data['inventory'] = ProductModel::where('stock','<=',$replenishment_num)->where('is_show',1)->where('is_del',0)->count();//库存 - $data['commentnum'] = StoreProductReplyModel::where('is_reply',0)->count();//评论 + $data['commentnum'] = StoreProductReplyModel::where(['is_reply'=>0,'is_del'=>0])->count();//评论 $data['reflectnum'] = UserExtractModel::where('status',0)->count();;//提现 $data['msgcount'] = intval($data['ordernum'])+intval($data['inventory'])+intval($data['commentnum'])+intval($data['reflectnum']); + //新订单提醒 + $data['newOrderId']=StoreOrderModel::statusByWhere(1)->where('is_remind',0)->column('order_id'); + if(count($data['newOrderId'])) StoreOrderModel::where('order_id','in',$data['newOrderId'])->update(['is_remind'=>1]); return Json::succ('ok',$data); } } diff --git a/application/admin/controller/agent/AgentManage.php b/application/admin/controller/agent/AgentManage.php index f33180fa..8b72f5a9 100644 --- a/application/admin/controller/agent/AgentManage.php +++ b/application/admin/controller/agent/AgentManage.php @@ -4,10 +4,14 @@ namespace app\admin\controller\agent; use app\admin\controller\AuthController; use app\admin\model\order\StoreOrder; +use app\admin\model\system\SystemAttachment; use app\admin\model\user\User; use app\admin\model\wechat\WechatUser as UserModel; use app\admin\library\FormBuilder; +use app\core\model\routine\RoutineQrcode; use app\core\model\user\UserBill; +use service\JsonService; +use service\UploadService; use service\UtilService as Util; /** @@ -23,63 +27,250 @@ class AgentManage extends AuthController */ public function index() { - $where = Util::getMore([ - ['nickname',''], - ['data',''], - ['tagid_list',''], - ['groupid','-1'], - ['sex',''], - ['export',''], - ['stair',''], - ['second',''], - ['order_stair',''], - ['order_second',''], - ['subscribe',''], - ['now_money',''], - ['is_promoter',1], - ],$this->request); - $this->assign([ - 'where'=>$where, - ]); - $limitTimeList = [ - 'today'=>implode(' - ',[date('Y/m/d'),date('Y/m/d',strtotime('+1 day'))]), - 'week'=>implode(' - ',[ - date('Y/m/d', (time() - ((date('w') == 0 ? 7 : date('w')) - 1) * 24 * 3600)), - date('Y-m-d', (time() + (7 - (date('w') == 0 ? 7 : date('w'))) * 24 * 3600)) - ]), - 'month'=>implode(' - ',[date('Y/m').'/01',date('Y/m').'/'.date('t')]), - 'quarter'=>implode(' - ',[ - date('Y').'/'.(ceil((date('n'))/3)*3-3+1).'/01', - date('Y').'/'.(ceil((date('n'))/3)*3).'/'.date('t',mktime(0,0,0,(ceil((date('n'))/3)*3),1,date('Y'))) - ]), - 'year'=>implode(' - ',[ - date('Y').'/01/01',date('Y/m/d',strtotime(date('Y').'/01/01 + 1year -1 day')) - ]) - ]; - $uidAll = UserModel::getAll($where); - $this->assign(compact('limitTimeList','uidAll')); - $this->assign(UserModel::agentSystemPage($where)); + $this->assign( 'year',getMonth('y')); + $this->assign('store_brokerage_statu',\app\core\util\SystemConfigService::get('store_brokerage_statu')); return $this->fetch(); } + public function get_spread_list() + { + $where=Util::getMore([ + ['nickname',''], + ['start_time',''], + ['end_time',''], + ['sex',''], + ['excel',''], + ['subscribe',''], + ['order',''], + ['data',''], + ['page',1], + ['limit',20], + ['user_type',''], + ]); + return JsonService::successlayui(UserModel::agentSystemPage($where)); + } + + public function get_badge() + { + $where = Util::postMore([ + ['data',''], + ['nickname',''], + ['excel',''], + ]); + return JsonService::successful(UserModel::getSpreadBadge($where)); + } /** - * 一级推荐人页面 + * 推荐人页面 * @return mixed */ - public function stair($uid = ''){ + public function stair($uid = '') + { if($uid == '') return $this->failed('参数错误'); + $this->assign('uid',$uid ? : 0); + $this->assign( 'year',getMonth('y')); + return $this->fetch(); + } + + /* + * 统计推广订单 + * @param int $uid + * */ + public function stair_order($uid = 0) + { + if($uid == '') return $this->failed('参数错误'); + $this->assign('uid',$uid ? : 0); + $this->assign( 'year',getMonth('y')); + return $this->fetch(); + } + + public function get_stair_order_list(){ + $where = Util::getMore([ + ['uid',$this->request->param('uid',0)], + ['data',''], + ['order_id',''], + ['type',''], + ['page',1], + ['limit',20], + ]); + return JsonService::successlayui(UserModel::getStairOrderList($where)); + } + + public function get_stair_order_badge() + { + $where = Util::getMore([ + ['uid',''], + ['data',''], + ['order_id',''], + ['type',''], + ]); + return JsonService::successful(UserModel::getStairOrderBadge($where)); + } + + public function get_stair_list() + { + $where = Util::getMore([ + ['uid',$this->request->param('uid',0)], + ['data',''], + ['nickname',''], + ['type',''], + ['page',1], + ['limit',20], + ]); + return JsonService::successlayui(UserModel::getStairList($where)); + } + + public function get_stair_badge() + { + $where = Util::getMore([ + ['uid',''], + ['data',''], + ['nickname',''], + ['type',''], + ]); + return JsonService::successful(UserModel::getSairBadge($where)); + } + /** + * 二级推荐人页面 + * @return mixed + */ + public function stair_two($uid = '') + { + if($uid == '') return $this->failed('参数错误'); + $spread_uid=User::where('spread_uid',$uid)->column('uid'); + if(count($spread_uid)) + $spread_uid_two=User::where('spread_uid','in',$spread_uid)->column('uid'); + else + $spread_uid_two=[0]; $list = User::alias('u') - ->where('u.spread_uid',$uid) - ->field('u.avatar,u.nickname,u.now_money,u.add_time,u.uid') + ->where('u.uid','in',$spread_uid_two) + ->field('u.avatar,u.nickname,u.now_money,u.spread_time,u.uid') ->where('u.status',1) ->order('u.add_time DESC') ->select() ->toArray(); foreach ($list as $key=>$value) $list[$key]['orderCount'] = StoreOrder::getOrderCount($value['uid'])?:0; $this->assign('list',$list); - return $this->fetch(); + return $this->fetch('stair'); } + /* + * 批量清除推广权限 + * */ + public function delete_promoter() + { + list($uids)=Util::postMore([ + ['uids',[]] + ],$this->request,true); + if(!count($uids)) return JsonService::fail('请选择需要解除推广权限的用户!'); + User::beginTrans(); + try{ + if(User::where('uid','in',$uids)->update(['is_promoter'=>0])){ + User::commitTrans(); + return JsonService::successful('解除成功'); + }else{ + User::rollbackTrans(); + return JsonService::fail('解除失败'); + } + }catch (\PDOException $e){ + User::rollbackTrans(); + return JsonService::fail('数据库操作错误',['line'=>$e->getLine(),'message'=>$e->getMessage()]); + }catch (\Exception $e){ + User::rollbackTrans(); + return JsonService::fail('系统错误',['line'=>$e->getLine(),'message'=>$e->getMessage()]); + } + + } + + /* + * 查看公众号推广二维码 + * @param int $uid + * @return json + * */ + public function look_code($uid='',$action='') + { + if(!$uid || !$action) return JsonService::fail('缺少参数'); + try{ + if(method_exists($this,$action)){ + $res = $this->$action($uid); + if($res) + return JsonService::successful($res); + else + return JsonService::fail(isset($res['msg']) ? $res['msg'] : '获取失败,请稍后再试!' ); + }else + return JsonService::fail('暂无此方法'); + }catch (\Exception $e){ + return JsonService::fail('获取推广二维码失败,请检查您的微信配置',['line'=>$e->getLine(),'messag'=>$e->getMessage()]); + } + } + /* + * 获取小程序二维码 + * */ + public function routine_code($uid) + { + $userInfo = User::getUserInfos($uid); + $name = $userInfo['uid'].'_'.$userInfo['is_promoter'].'_user.jpg'; + $imageInfo = SystemAttachment::getInfo($name,'name'); + if(!$imageInfo){ + $res = \app\core\model\routine\RoutineCode::getShareCode($uid, 'spread', '', ''); + if(!$res) throw new \think\Exception('二维码生成失败'); + $imageInfo = UploadService::imageStream($name,$res['res'],'routine/spread/code'); + if(!is_array($imageInfo)) return $imageInfo; + SystemAttachment::attachmentAdd($imageInfo['name'],$imageInfo['size'],$imageInfo['type'],$imageInfo['dir'],$imageInfo['thumb_path'],1,$imageInfo['image_type'],$imageInfo['time']); + RoutineQrcode::setRoutineQrcodeFind($res['id'],['status'=>1,'time'=>time(),'qrcode_url'=>$imageInfo['dir']]); + $urlCode = $imageInfo['dir']; + }else $urlCode = $imageInfo['att_dir']; + return ['code_src'=>$urlCode]; + } + + /* + * + * */ + public function wechant_code($uid) + { + $qr_code = \app\core\util\QrcodeService::getForeverQrcode('spread',$uid); + if(isset($qr_code['url'])) + return ['code_src'=>$qr_code['url']]; + else + throw new \think\Exception('获取失败,请稍后再试!'); + } + + /** + * TODO 查看小程序推广二维码 + * @param string $uid + */ + public function look_xcx_code($uid = '') + { + if(!strlen(trim($uid))) return JsonService::fail('缺少参数'); + try{ + + }catch (\Exception $e){ + return JsonService::fail('查看推广二维码失败!',['line'=>$e->getLine(),'meassge'=>$e->getMessage()]); + } + } + /* + * 解除单个用户的推广权限 + * @param int $uid + * */ + public function delete_spread($uid=0) + { + if(!$uid) return JsonService::fail('缺少参数'); + if(User::where('uid',$uid)->update(['is_promoter'=>0])) + return JsonService::successful('解除成功'); + else + return JsonService::fail('解除失败'); + } + + /* + * 清除自己的上级推广人 + * */ + public function empty_spread($uid=0) + { + if(!$uid) return JsonService::fail('缺少参数'); + if(User::where('uid',$uid)->update(['spread_uid'=>0])) + return JsonService::successful('清除成功'); + else + return JsonService::fail('清除失败'); + } /** * 个人资金详情页面 * @return mixed @@ -95,4 +286,5 @@ class AgentManage extends AuthController $this->assign('list',$list); return $this->fetch(); } + } diff --git a/application/admin/controller/article/Article.php b/application/admin/controller/article/Article.php index 7e1c69f8..d354ef9b 100644 --- a/application/admin/controller/article/Article.php +++ b/application/admin/controller/article/Article.php @@ -20,10 +20,13 @@ use app\admin\model\system\SystemAttachment; class Article extends AuthController { /** - * 显示后台管理员添加的图文 + * TODO 显示后台管理员添加的图文 * @return mixed + * @throws \think\db\exception\DataNotFoundException + * @throws \think\db\exception\ModelNotFoundException + * @throws \think\exception\DbException */ - public function index($pid = 0) + public function index() { $where = Util::getMore([ ['title',''], @@ -32,34 +35,33 @@ class Article extends AuthController $pid = $this->request->param('pid'); $this->assign('where',$where); $where['merchant'] = 0;//区分是管理员添加的图文显示 0 还是 商户添加的图文显示 1 - $catlist = ArticleCategoryModel::where('is_del',0)->select()->toArray(); + $cateList = ArticleCategoryModel::getArticleCategoryList(); + $tree = []; //获取分类列表 - if($catlist){ - $tree = Phptree::makeTreeForHtml($catlist); - $this->assign(compact('tree')); + if(count($cateList)){ + $tree = Phptree::makeTreeForHtml($cateList); if($pid){ $pids = Util::getChildrenPid($tree,$pid); $where['cid'] = ltrim($pid.$pids); } - }else{ - $tree = []; - $this->assign(compact('tree')); } - - - $this->assign('cate',ArticleCategoryModel::getTierList()); + $this->assign(compact('tree')); $this->assign(ArticleModel::getAll($where)); return $this->fetch(); } /** - * 展示页面 添加和删除 + * TODO 文件添加和修改 * @return mixed + * @throws \think\db\exception\DataNotFoundException + * @throws \think\db\exception\ModelNotFoundException + * @throws \think\exception\DbException */ public function create(){ - $id = input('id'); - $cid = input('cid'); - $news = array(); + $id = $this->request->param('id'); + $cid = $this->request->param('cid'); + $news = []; + $all = []; $news['id'] = ''; $news['image_input'] = ''; $news['title'] = ''; @@ -69,30 +71,19 @@ class Article extends AuthController $news['content'] = ''; $news['synopsis'] = ''; $news['url'] = ''; - $news['cid'] = array(); + $news['cid'] = []; + $select = 0; if($id){ $news = ArticleModel::where('n.id',$id)->alias('n')->field('n.*,c.content')->join('ArticleContent c','c.nid=n.id')->find(); if(!$news) return $this->failedNotice('数据不存在!'); $news['cid'] = explode(',',$news['cid']); } - $all = array(); - $select = 0; - if(!$cid) - $cid = ''; - else { - if($id){ - $all = ArticleCategoryModel::where('id',$cid)->where('hidden','neq',0)->column('id,title'); - $select = 1; - }else{ - $all = ArticleCategoryModel::where('id',$cid)->column('id,title'); - $select = 1; - } - + if($cid && in_array($cid, ArticleCategoryModel::getArticleCategoryInfo(0,'id'))){ + $all = ArticleCategoryModel::getArticleCategoryInfo($cid); + $select = 1; } - if(empty($all)){ - $select = 0; + if(!$select){ $list = ArticleCategoryModel::getTierList(); - $all = []; foreach ($list as $menu){ $all[$menu['id']] = $menu['html'].$menu['title']; } @@ -110,11 +101,9 @@ class Article extends AuthController */ public function upload_image(){ $res = Upload::Image($_POST['file'],'wechat/image/'.date('Ymd')); - //产品图片上传记录 - $fileInfo = $res->fileInfo->getinfo(); - SystemAttachment::attachmentAdd($res->fileInfo->getSaveName(),$fileInfo['size'],$fileInfo['type'],$res->dir,'',5); - if(!$res->status) return Json::fail($res->error); - return Json::successful('上传成功!',['url'=>$res->filePath]); + if(!is_array($res)) return Json::fail($res); + SystemAttachment::attachmentAdd($res['name'],$res['size'],$res['type'],$res['dir'],$res['thumb_path'],5,$res['image_type'],$res['time']); + return Json::successful('上传成功!',['url'=>$res['dir']]); } /** @@ -146,15 +135,13 @@ class Article extends AuthController if($data['id']){ $id = $data['id']; unset($data['id']); + $res = false; ArticleModel::beginTrans(); $res1 = ArticleModel::edit($data,$id,'id'); $res2 = ArticleModel::setContent($id,$content); - if($res1 && $res2) + if($res1 && $res2){ $res = true; - else - $res =false; -// dump($res); -// exit(); + } ArticleModel::checkTrans($res); if($res) return Json::successful('修改图文成功!',$id); @@ -163,15 +150,15 @@ class Article extends AuthController }else{ $data['add_time'] = time(); $data['admin_id'] = $this->adminId; + $res = false; ArticleModel::beginTrans(); $res1 = ArticleModel::set($data); $res2 = false; if($res1) $res2 = ArticleModel::setContent($res1->id,$content); - if($res1 && $res2) + if($res1 && $res2){ $res = true; - else - $res =false; + } ArticleModel::checkTrans($res); if($res) return Json::successful('添加图文成功!',$res1->id); diff --git a/application/admin/controller/article/ArticleCategory.php b/application/admin/controller/article/ArticleCategory.php index a446e233..b062dcd2 100644 --- a/application/admin/controller/article/ArticleCategory.php +++ b/application/admin/controller/article/ArticleCategory.php @@ -1 +1,184 @@ -request); $this->assign('where',$where); $this->assign(ArticleCategoryModel::systemPage($where)); return $this->fetch(); } /** * 添加分类管理 * */ public function create(){ $f = array(); $f[] = Form::select('pid','父级id')->setOptions(function(){ $list = ArticleCategoryModel::getTierList(); $menus[] = ['value'=>0,'label'=>'顶级分类']; foreach ($list as $menu){ $menus[] = ['value'=>$menu['id'],'label'=>$menu['html'].$menu['title']]; } return $menus; })->filterable(1); $f[] = Form::input('title','分类名称'); $f[] = Form::input('intr','分类简介')->type('textarea'); // $f[] = Form::select('new_id','图文列表')->setOptions(function(){ // $list = ArticleModel::getNews(); // $options = []; // foreach ($list as $id=>$roleName){ // $options[] = ['label'=>$roleName,'value'=>$id]; // } // return $options; // })->multiple(1)->filterable(1); $f[] = Form::frameImageOne('image','分类图片',Url::build('admin/widget.images/index',array('fodder'=>'image')))->icon('image'); $f[] = Form::number('sort','排序',0); $f[] = Form::radio('status','状态',1)->options([['value'=>1,'label'=>'显示'],['value'=>0,'label'=>'隐藏']]); $form = Form::make_post_form('添加分类',$f,Url::build('save')); $this->assign(compact('form')); return $this->fetch('public/form-builder'); } /** * s上传图片 * */ public function upload(){ $res = Upload::image('file','article'); $thumbPath = Upload::thumb($res->dir); if($res->status == 200) return Json::successful('图片上传成功!',['name'=>$res->fileInfo->getSaveName(),'url'=>Upload::pathToUrl($thumbPath)]); else return Json::fail($res->error); } /** * 保存分类管理 * */ public function save(Request $request){ $data = Util::postMore([ 'title', 'pid', 'intr', ['new_id',[]], ['image',[]], ['sort',0], 'status',],$request); if(!$data['title']) return Json::fail('请输入分类名称'); if(count($data['image']) != 1) return Json::fail('请选择分类图片,并且只能上传一张'); if($data['sort'] < 0) return Json::fail('排序不能是负数'); $data['add_time'] = time(); $data['image'] = $data['image'][0]; $new_id = $data['new_id']; unset($data['new_id']); $res = ArticleCategoryModel::set($data); if(!ArticleModel::saveBatchCid($res['id'],implode(',',$new_id))) return Json::fail('文章列表添加失败'); return Json::successful('添加分类成功!'); } /** * 修改分类 * */ public function edit($id){ if(!$id) return $this->failed('参数错误'); $article = ArticleCategoryModel::get($id)->getData(); if(!$article) return Json::fail('数据不存在!'); $f = array(); $f[] = Form::select('pid','父级id',(string)$article['pid'])->setOptions(function(){ $list = ArticleCategoryModel::getTierList(); $menus[] = ['value'=>0,'label'=>'顶级分类']; foreach ($list as $menu){ $menus[] = ['value'=>$menu['id'],'label'=>$menu['html'].$menu['title']]; } return $menus; })->filterable(1); $f[] = Form::input('title','分类名称',$article['title']); $f[] = Form::input('intr','分类简介',$article['intr'])->type('textarea'); // $f[] = Form::select('new_id','图文列表',explode(',',$article->getData('new_id')))->setOptions(function(){ // $list = ArticleModel::getNews(); // $options = []; // foreach ($list as $id=>$roleName){ // $options[] = ['label'=>$roleName,'value'=>$id]; // } // return $options; // })->multiple(1)->filterable(1); $f[] = Form::frameImageOne('image','分类图片',Url::build('admin/widget.images/index',array('fodder'=>'image')),$article['image'])->icon('image'); $f[] = Form::number('sort','排序',0); $f[] = Form::radio('status','状态',$article['status'])->options([['value'=>1,'label'=>'显示'],['value'=>0,'label'=>'隐藏']]); $form = Form::make_post_form('编辑分类',$f,Url::build('update',array('id'=>$id))); $this->assign(compact('form')); return $this->fetch('public/form-builder'); } public function update(Request $request, $id) { $data = Util::postMore([ 'pid', 'title', 'intr', // ['new_id',[]], ['image',[]], ['sort',0], 'status',],$request); if(!$data['title']) return Json::fail('请输入分类名称'); if(count($data['image']) != 1) return Json::fail('请选择分类图片,并且只能上传一张'); if($data['sort'] < 0) return Json::fail('排序不能是负数'); $data['image'] = $data['image'][0]; if(!ArticleCategoryModel::get($id)) return Json::fail('编辑的记录不存在!'); // if(!ArticleModel::saveBatchCid($id,implode(',',$data['new_id']))) return Json::fail('文章列表添加失败'); // unset($data['new_id']); ArticleCategoryModel::edit($data,$id); return Json::successful('修改成功!'); } /** * 删除分类 * */ public function delete($id) { $res = ArticleCategoryModel::delArticleCategory($id); if(!$res) return Json::fail(ArticleCategoryModel::getErrorInfo('删除失败,请稍候再试!')); else return Json::successful('删除成功!'); } } \ No newline at end of file +request); + $this->assign('where',$where); + $this->assign(ArticleCategoryModel::systemPage($where)); + return $this->fetch(); + } + + /** + + * 添加分类管理 + + * */ + + public function create(){ + $f = array(); + $f[] = Form::select('pid','父级id')->setOptions(function(){ + $list = ArticleCategoryModel::getTierList(); + $menus[] = ['value'=>0,'label'=>'顶级分类']; + foreach ($list as $menu){ + $menus[] = ['value'=>$menu['id'],'label'=>$menu['html'].$menu['title']]; + } + return $menus; + })->filterable(1); + $f[] = Form::input('title','分类名称'); + $f[] = Form::input('intr','分类简介')->type('textarea'); +// $f[] = Form::select('new_id','图文列表')->setOptions(function(){ +// $list = ArticleModel::getNews(); +// $options = []; +// foreach ($list as $id=>$roleName){ +// $options[] = ['label'=>$roleName,'value'=>$id]; +// } +// return $options; +// })->multiple(1)->filterable(1); + $f[] = Form::formFrameImageOne('image','分类图片'); + $f[] = Form::number('sort','排序',0); + $f[] = Form::radio('status','状态',1)->options([['value'=>1,'label'=>'显示'],['value'=>0,'label'=>'隐藏']]); + $form = Form::make_post_form('添加分类',$f,Url::build('save')); + $this->assign(compact('form')); + return $this->fetch('public/form-builder'); + + } + + /** + * s上传图片 + * */ + public function upload(){ + $res = Upload::image('file','article'); + if(!is_array($res)) return Json::fail($res); + SystemAttachment::attachmentAdd($res['name'],$res['size'],$res['type'],$res['dir'],$res['thumb_path'],5,$res['image_type'],$res['time']); + return Json::successful('图片上传成功!',['name'=>$res['name'],'url'=>Upload::pathToUrl($res['thumb_path'])]); + } + + /** + + * 保存分类管理 + + * */ + + public function save(Request $request){ + $data = Util::postMore([ + 'title', + 'pid', + 'intr', + ['new_id',[]], + ['image',[]], + ['sort',0], + 'status',],$request); + if(!$data['title']) return Json::fail('请输入分类名称'); + if(count($data['image']) != 1) return Json::fail('请选择分类图片,并且只能上传一张'); + if($data['sort'] < 0) return Json::fail('排序不能是负数'); + $data['add_time'] = time(); + $data['image'] = $data['image'][0]; + $new_id = $data['new_id']; + unset($data['new_id']); + $res = ArticleCategoryModel::set($data); + if(!ArticleModel::saveBatchCid($res['id'],implode(',',$new_id))) return Json::fail('文章列表添加失败'); + return Json::successful('添加分类成功!'); + } + + /** + + * 修改分类 + + * */ + + public function edit($id){ + if(!$id) return $this->failed('参数错误'); + $article = ArticleCategoryModel::get($id)->getData(); + if(!$article) return Json::fail('数据不存在!'); + $f = array(); + $f[] = Form::select('pid','父级id',(string)$article['pid'])->setOptions(function(){ + $list = ArticleCategoryModel::getTierList(); + $menus[] = ['value'=>0,'label'=>'顶级分类']; + foreach ($list as $menu){ + $menus[] = ['value'=>$menu['id'],'label'=>$menu['html'].$menu['title']]; + } + return $menus; + })->filterable(1); + $f[] = Form::input('title','分类名称',$article['title']); + $f[] = Form::input('intr','分类简介',$article['intr'])->type('textarea'); +// $f[] = Form::select('new_id','图文列表',explode(',',$article->getData('new_id')))->setOptions(function(){ +// $list = ArticleModel::getNews(); +// $options = []; +// foreach ($list as $id=>$roleName){ +// $options[] = ['label'=>$roleName,'value'=>$id]; +// } +// return $options; +// })->multiple(1)->filterable(1); + $f[] = Form::formFrameImageOne('image','分类图片',$article['image']); + $f[] = Form::number('sort','排序',0); + $f[] = Form::radio('status','状态',$article['status'])->options([['value'=>1,'label'=>'显示'],['value'=>0,'label'=>'隐藏']]); + $form = Form::make_post_form('编辑分类',$f,Url::build('update',array('id'=>$id))); + $this->assign(compact('form')); + return $this->fetch('public/form-builder'); + + } + + + + public function update(Request $request, $id) + { + $data = Util::postMore([ + 'pid', + 'title', + 'intr', +// ['new_id',[]], + ['image',[]], + ['sort',0], + 'status',],$request); + if(!$data['title']) return Json::fail('请输入分类名称'); + if(count($data['image']) != 1) return Json::fail('请选择分类图片,并且只能上传一张'); + if($data['sort'] < 0) return Json::fail('排序不能是负数'); + $data['image'] = $data['image'][0]; + if(!ArticleCategoryModel::get($id)) return Json::fail('编辑的记录不存在!'); +// if(!ArticleModel::saveBatchCid($id,implode(',',$data['new_id']))) return Json::fail('文章列表添加失败'); +// unset($data['new_id']); + ArticleCategoryModel::edit($data,$id); + return Json::successful('修改成功!'); + } + + /** + * 删除分类 + * */ + public function delete($id) + { + $res = ArticleCategoryModel::delArticleCategory($id); + if(!$res) + return Json::fail(ArticleCategoryModel::getErrorInfo('删除失败,请稍候再试!')); + else + return Json::successful('删除成功!'); + } + + +} + diff --git a/application/admin/controller/finance/Finance.php b/application/admin/controller/finance/Finance.php index cfd78a86..c05b87d3 100644 --- a/application/admin/controller/finance/Finance.php +++ b/application/admin/controller/finance/Finance.php @@ -28,64 +28,6 @@ class Finance extends AuthController { - /** - * 显示操作记录 - */ - public function index(){ - - //创建form - $form = Form::create('/save.php',[ - Form::input('goods_name','商品名称') - ,Form::input('goods_name1','password')->type('password') - ,Form::input('goods_name2','textarea')->type('textarea') - ,Form::input('goods_name3','email')->type('email') - ,Form::input('goods_name4','date')->type('date') - ,Form::cityArea('address','cityArea',[ - '陕西省','西安市' - ]) - ,Form::dateRange('limit_time','dateRange', - strtotime('- 10 day'), - time() - ) - ,Form::dateTime('add_time','dateTime') - ,Form::color('color','color','#ff0000') - ,Form::checkbox('checkbox','checkbox',[1])->options([['value'=>1,'label'=>'白色'],['value'=>2,'label'=>'红色'],['value'=>31,'label'=>'黑色']]) - ,Form::date('riqi','date','2018-03-1') - ,Form::dateTimeRange('dateTimeRange','区间时间段') - ,Form::year('year','year') - ,Form::month('month','month') - ,Form::frame('frame','frame','http://baidu.com') - ,Form::frameInputs('month','frameInputs','http://baidu.com') - ,Form::frameFiles('month1','frameFiles','http://baidu.com') - ,Form::frameImages('month2','frameImages','http://baidu.com') - ,Form::frameInputOne('month3','frameInputOne','http://baidu.com') - ,Form::frameFileOne('month4','frameFileOne','http://baidu.com') - ,Form::frameImageOne('month5','frameImageOne','http://baidu.com') - ,Form::hidden('month6','hidden') - ,Form::number('month7','number') -// ,Form::input input输入框,其他type: text类型Form::text,password类型Form::password,textarea类型Form::textarea,url类型Form::url,email类型Form::email,date类型Form::idate - ,Form::radio('month8','radio')->options([['value'=>1,'label'=>'白色'],['value'=>2,'label'=>'红色'],['value'=>31,'label'=>'黑色']]) - ,Form::rate('month9','rate') - ,Form::select('month10','select')->options([['value'=>1,'label'=>'白色'],['value'=>2,'label'=>'红色'],['value'=>31,'label'=>'黑色']]) - ,Form::selectMultiple('month11','selectMultiple') - ,Form::selectOne('month12','selectOne') - ,Form::slider('month13','slider',2) - ,Form::sliderRange('month23','sliderRange',2,13) - ,Form::switches('month14','区间时间段') - ,Form::timePicker('month15','区间时间段') - ,Form::time('month16','区间时间段') - ,Form::timeRange('month17','区间时间段') -// ,Form::upload('month','区间时间段') -// ,Form::uploadImages('month','区间时间段') -// ,Form::uploadFiles('month','区间时间段') -// ,Form::uploadImageOne('month','区间时间段') -// ,Form::uploadFileOne('month','区间时间段') - - ]); - $html = $form->setMethod('get')->setTitle('编辑商品')->view(); - echo $html; - - } /** * 显示资金记录 */ @@ -126,41 +68,7 @@ class Finance extends AuthController ]); FinanceModel::SaveExport($where); } -// /** -// * 显示佣金记录 -// */ -// public function commission_list(){ -// -// //创建form -// $form = Form::create('/save.php',[ -// Form::input('goods_name','商品名称') -// ,Form::input('goods_name1','password')->type('password') -// ,Form::input('goods_name3','email')->type('email') -// ,Form::input('goods_name4','date')->type('date') -// ,Form::cityArea('address','cityArea',[ -// '陕西省','西安市' -// ]) -// ,Form::dateRange('limit_time','dateRange', -// strtotime('- 10 day'), -// time() -// ) -// ,Form::dateTime('add_time','dateTime') -// ,Form::color('color','color','#ff0000') -// ,Form::checkbox('checkbox','checkbox',[1])->options([['value'=>1,'label'=>'白色'],['value'=>2,'label'=>'红色'],['value'=>31,'label'=>'黑色']]) -// ,Form::date('riqi','date','2018-03-1') -// ,Form::dateTimeRange('dateTimeRange','区间时间段') -// ,Form::year('year','year') -// -// ,Form::hidden('month6','hidden') -// ,Form::number('month7','number') -// -// -// ]); -// $rule = $form->setMethod('post')->setTitle('编辑商品')->getRules(); -// $action = Url::build('save'); -// $this->assign(compact('form','rule','action')); -// return $this->fetch(); -// } + /** * 显示佣金记录 */ @@ -168,6 +76,7 @@ class Finance extends AuthController $this->assign('is_layui',true); return $this->fetch(); } + /** * 佣金记录异步获取 */ @@ -178,24 +87,12 @@ class Finance extends AuthController ['nickname',''], ['price_max',''], ['price_min',''], - ['order',''] + ['order',''], + ['excel',''], ]); return Json::successlayui(User::getCommissionList($get)); } - /** - * 保存excel表格 - */ - public function save_export(){ - $get=Util::getMore([ - ['page',1], - ['limit',20], - ['nickname',''], - ['price_max',''], - ['price_min',''], - ['order',''] - ]); - User::setUserWhere($get,true); - } + /** * 显示操作记录 */ diff --git a/application/admin/controller/finance/UserExtract.php b/application/admin/controller/finance/UserExtract.php index 0fb1b66f..572783fb 100644 --- a/application/admin/controller/finance/UserExtract.php +++ b/application/admin/controller/finance/UserExtract.php @@ -37,6 +37,8 @@ class UserExtract extends AuthController $f[] = Form::number('extract_price','提现金额',$UserExtract['extract_price'])->precision(2); if($UserExtract['extract_type']=='alipay'){ $f[] = Form::input('alipay_code','支付宝账号',$UserExtract['alipay_code']); + }else if($UserExtract['extract_type']=='weixin'){ + $f[] = Form::input('wechat','微信号',$UserExtract['wechat']); }else{ $f[] = Form::input('bank_code','银行卡号',$UserExtract['bank_code']); $f[] = Form::input('bank_address','开户行',$UserExtract['bank_address']); @@ -61,6 +63,16 @@ class UserExtract extends AuthController if(!$data['real_name']) return JsonService::fail('请输入姓名'); if($data['extract_price']<=-1) return JsonService::fail('请输入提现金额'); if(!$data['alipay_code']) return JsonService::fail('请输入支付宝账号'); + }else if($UserExtract['extract_type']=='weixin'){ + $data = Util::postMore([ + 'real_name', + 'mark', + 'extract_price', + 'wechat', + ],$request); +// if(!$data['real_name']) return JsonService::fail('请输入姓名'); + if($data['extract_price']<=-1) return JsonService::fail('请输入提现金额'); + if(!$data['wechat']) return JsonService::fail('请输入微信账号'); }else{ $data = Util::postMore([ 'real_name', @@ -101,12 +113,14 @@ class UserExtract extends AuthController UserExtractModel::beginTrans(); $extract=UserExtractModel::get($id); if(!$extract) return JsonService::fail('操作记录不存!'); - if($extract->status==1) return JsonService::fail('您已提现,请勿重复提现!'); - if($extract->status==-1) return JsonService::fail('您的提现申请已被拒绝!'); + if($extract->status == 1) return JsonService::fail('您已提现,请勿重复提现!'); + if($extract->status == -1) return JsonService::fail('您的提现申请已被拒绝!'); $res = UserExtractModel::changeSuccess($id); if($res){ + UserExtractModel::commitTrans(); return JsonService::successful('操作成功!'); }else{ + UserExtractModel::rollbackTrans(); return JsonService::fail('操作失败!'); } } diff --git a/application/admin/controller/finance/UserRecharge.php b/application/admin/controller/finance/UserRecharge.php index 35945433..1bfaadd9 100644 --- a/application/admin/controller/finance/UserRecharge.php +++ b/application/admin/controller/finance/UserRecharge.php @@ -1,7 +1,9 @@ getMessage()); } UserRechargeModel::edit($data,$id); - WechatTemplateService::sendTemplate(WechatUserWap::uidToOpenid($UserRecharge['uid']),WechatTemplateService::ORDER_REFUND_STATUS, [ - 'first'=>'亲,您充值的金额已退款,本次退款'. - $data['refund_price'].'金额', - 'keyword1'=>$UserRecharge['order_id'], - 'keyword2'=>$UserRecharge['price'], - 'keyword3'=>date('Y-m-d H:i:s',$UserRecharge['add_time']), - 'remark'=>'点击查看订单详情' - ],Url::build('wap/My/balance','',true,true)); + User::bcDec($UserRecharge['uid'],'now_money',$refund_price,'uid'); + switch (strtolower($UserRecharge['recharge_type'])){ + case 'weixin': + WechatTemplateService::sendTemplate(WechatUserWap::where('uid',$UserRecharge['uid'])->value('openid'),WechatTemplateService::ORDER_REFUND_STATUS, [ + 'first'=>'亲,您充值的金额已退款,本次退款'. + $data['refund_price'].'金额', + 'keyword1'=>$UserRecharge['order_id'], + 'keyword2'=>$UserRecharge['price'], + 'keyword3'=>date('Y-m-d H:i:s',$UserRecharge['add_time']), + 'remark'=>'点击查看订单详情' + ],Url::build('wap/My/balance','',true,true)); + break; + case 'routine': + RoutineTemplate::sendOut('ORDER_REFUND_SUCCESS',$UserRecharge['uid'],[ + 'keyword1'=>$UserRecharge['order_id'], + 'keyword2'=>date('Y-m-d H:i:s',time()), + 'keyword3'=>$UserRecharge['price'], + 'keyword4'=>'余额充值退款', + 'keyword5'=>'亲,您充值的金额已退款,本次退款'. $data['refund_price'].'金额', + ]); + break; + } UserBill::expend('系统退款',$UserRecharge['uid'],'now_money','user_recharge_refund',$refund_price,$id,$UserRecharge['price'],'退款给用户'.$refund_price.'元'); return Json::successful('退款成功!'); } diff --git a/application/admin/controller/order/StoreOrder.php b/application/admin/controller/order/StoreOrder.php index 75cf6f83..90435059 100644 --- a/application/admin/controller/order/StoreOrder.php +++ b/application/admin/controller/order/StoreOrder.php @@ -42,6 +42,7 @@ class StoreOrder extends AuthController $this->assign([ 'year'=>getMonth('y'), 'real_name'=>$this->request->get('real_name',''), + 'status'=>$this->request->param('status',''), 'orderCount'=>StoreOrderModel::orderCount(), ]); return $this->fetch(); @@ -80,6 +81,35 @@ class StoreOrder extends AuthController ]); return JsonService::successlayui(StoreOrderModel::OrderList($where)); } + + /* + * 发送货 + * @param int $id + * @return html + * */ + public function order_goods($id = 0) + { + $list = Db::name('express')->where('is_show',1)->order('sort DESC')->column('id,name'); + $this->assign([ + 'list'=>$list, + 'id'=>$id + ]); + return $this->fetch(); + } + /* + * 删除订单 + * */ + public function del_order($ids=[]) + { + if(!count($ids)) return JsonService::fail('请选择需要删除的订单'); + if(StoreOrderModel::where('is_del',0)->where('id','in',$ids)->count()) return JsonService::fail('您选择的的订单存在用户未删除的订单,无法删除用户未删除的订单'); + $res=StoreOrderModel::where('id','in',$ids)->update(['is_system_del'=>1]); + if($res) + return JsonService::successful('删除成功'); + else + return JsonService::fail('删除失败'); + } + public function orderchart(){ $where = Util::getMore([ ['status',''], @@ -183,10 +213,12 @@ class StoreOrder extends AuthController StoreOrderStatus::setStatus($id,'order_edit','修改商品总价为:'.$data['total_price'].' 实际支付金额'.$data['pay_price']); return Json::successful('修改成功!'); } + /** - * 送货 + * TODO 填写送货信息 * @param $id - * send + * @return mixed|void + * @throws \think\exception\DbException */ public function delivery($id){ if(!$id) return $this->failed('数据不存在'); @@ -196,36 +228,72 @@ class StoreOrder extends AuthController $f = array(); $f[] = Form::input('delivery_name','送货人姓名')->required('送货人姓名不能为空','required:true;'); $f[] = Form::input('delivery_id','送货人电话')->required('请输入正确电话号码','telephone'); - $form = Form::make_post_form('修改订单',$f,Url::build('updateDelivery',array('id'=>$id)),5); + $form = Form::make_post_form('修改订单',$f,Url::build('updateDelivery',array('id'=>$id)),7); $this->assign(compact('form')); return $this->fetch('public/form-builder'); } else $this->failedNotice('订单状态错误'); } - /**送货 + /** + * TODO 送货信息提交 * @param Request $request * @param $id */ - public function updateDelivery(Request $request, $id){ + public function update_delivery(Request $request, $id){ $data = Util::postMore([ + ['type',1], 'delivery_name', 'delivery_id', + ['sh_delivery_name',''], + ['sh_delivery_id',''], ],$request); - $data['delivery_type'] = 'send'; - if(!$data['delivery_name']) return Json::fail('请输入送货人姓名'); - if(!(int)$data['delivery_id']) return Json::fail('请输入送货人电话号码'); - else if(!preg_match("/^1[3456789]{1}\d{9}$/",$data['delivery_id'])) return Json::fail('请输入正确的送货人电话号码'); - $data['status'] = 1; - StoreOrderModel::edit($data,$id); - HookService::afterListen('store_product_order_delivery',$data,$id,false,OrderBehavior::class); - StoreOrderStatus::setStatus($id,'delivery','已配送 发货人:'.$data['delivery_name'].' 发货人电话:'.$data['delivery_id']); + switch ((int)$data['type']){ + case 1: + //发货 + $data['delivery_type'] = 'express'; + if(!$data['delivery_name']) return Json::fail('请选择快递公司'); + if(!$data['delivery_id']) return Json::fail('请输入快递单号'); + $data['status'] = 1; + StoreOrderModel::edit($data,$id); + HookService::afterListen('store_product_order_delivery_goods',$data,$id,false,OrderBehavior::class); + StoreOrderStatus::setStatus($id,'delivery_goods','已发货 快递公司:'.$data['delivery_name'].' 快递单号:'.$data['delivery_id']); + break; + case 2: + //送货 + $data['delivery_type'] = 'send'; + $data['delivery_name'] = $data['sh_delivery_name']; + $data['delivery_id'] = $data['sh_delivery_id']; + unset($data['sh_delivery_name'],$data['sh_delivery_id']); + if(!$data['delivery_name']) return Json::fail('请输入送货人姓名'); + if(!(int)$data['delivery_id']) return Json::fail('请输入送货人电话号码'); + else if(!preg_match("/^1[3456789]{1}\d{9}$/",$data['delivery_id'])) return Json::fail('请输入正确的送货人电话号码'); + $data['status'] = 1; + StoreOrderModel::edit($data,$id); + HookService::afterListen('store_product_order_delivery',$data,$id,false,OrderBehavior::class); + StoreOrderStatus::setStatus($id,'delivery','已配送 发货人:'.$data['delivery_name'].' 发货人电话:'.$data['delivery_id']); + break; + case 3: + //虚拟发货 + $data['delivery_type'] = 'fictitious'; + $data['status'] = 1; + StoreOrderModel::edit($data,$id); + HookService::afterListen('store_product_order_delivery',$data,$id,false,OrderBehavior::class); + StoreOrderStatus::setStatus($id,'delivery_fictitious','已虚拟发货'); + StoreOrderStatus::setStatus($id,'take_delivery','虚拟物品已收货'); + break; + default: + return Json::fail('暂时不支持其他发货类型'); + break; + } return Json::successful('修改成功!'); } + /** - * 发货 + * TODO 填写发货信息 * @param $id - * express + * @return mixed|void + * @throws \think\exception\DbException */ public function deliver_goods($id){ if(!$id) return $this->failed('数据不存在'); @@ -242,14 +310,15 @@ class StoreOrder extends AuthController return $menus; })->filterable(1); $f[] = Form::input('delivery_id','快递单号'); - $form = Form::make_post_form('修改订单',$f,Url::build('updateDeliveryGoods',array('id'=>$id)),5); + $form = Form::make_post_form('修改订单',$f,Url::build('updateDeliveryGoods',array('id'=>$id)),7); $this->assign(compact('form')); return $this->fetch('public/form-builder'); } else return $this->failedNotice('订单状态错误'); } - /**发货保存 + /** + * TODO 发货信息提交 * @param Request $request * @param $id */ @@ -306,7 +375,7 @@ class StoreOrder extends AuthController $f[] = Form::input('order_id','退款单号',$product->getData('order_id'))->disabled(1); $f[] = Form::number('refund_price','退款金额',$product->getData('pay_price'))->precision(2)->min(0.01); $f[] = Form::radio('type','状态',1)->options([['label'=>'直接退款','value'=>1],['label'=>'退款后,返回原状态','value'=>2]]); - $form = Form::make_post_form('退款处理',$f,Url::build('updateRefundY',array('id'=>$id)),5); + $form = Form::make_post_form('退款处理',$f,Url::build('updateRefundY',array('id'=>$id)),7); $this->assign(compact('form')); return $this->fetch('public/form-builder'); } @@ -373,7 +442,12 @@ class StoreOrder extends AuthController if($resEdit){ $data['type'] = $type; if($data['type'] == 1) StorePink::setRefundPink($id); - HookService::afterListen('store_product_order_refund_y',$data,$id,false,OrderBehavior::class); + try{ + HookService::afterListen('store_product_order_refund_y',$data,$id,false,OrderBehavior::class); + }catch (\Exception $e){ + ModelBasic::rollbackTrans(); + return Json::fail($e->getMessage()); + } StoreOrderStatus::setStatus($id,'refund_price','退款给用户'.$refund_price.'元'); ModelBasic::commitTrans(); return Json::successful('修改成功!'); @@ -444,7 +518,7 @@ class StoreOrder extends AuthController }); $f[] = Form::input('delivery_id','快递单号',$product->getData('delivery_id')); } - $form = Form::make_post_form('配送信息',$f,Url::build('updateDistribution',array('id'=>$id)),5); + $form = Form::make_post_form('配送信息',$f,Url::build('updateDistribution',array('id'=>$id)),7); $this->assign(compact('form')); return $this->fetch('public/form-builder'); } @@ -540,7 +614,7 @@ class StoreOrder extends AuthController $f[] = Form::number('use_integral','使用的积分',$product->getData('use_integral'))->min(0)->disabled(1); $f[] = Form::number('use_integrals','已退积分',$product->getData('back_integral'))->min(0)->disabled(1); $f[] = Form::number('back_integral','可退积分',bcsub($product->getData('use_integral'),$product->getData('use_integral')))->min(0); - $form = Form::make_post_form('退积分',$f,Url::build('updateIntegralBack',array('id'=>$id))); + $form = Form::make_post_form('退积分',$f,Url::build('updateIntegralBack',array('id'=>$id)),7); $this->assign(compact('form')); return $this->fetch('public/form-builder'); }else{ diff --git a/application/admin/controller/record/StoreStatistics.php b/application/admin/controller/record/StoreStatistics.php index 32e89e16..85ff0702 100644 --- a/application/admin/controller/record/StoreStatistics.php +++ b/application/admin/controller/record/StoreStatistics.php @@ -75,7 +75,7 @@ class StoreStatistics extends AuthController ]; $this->assign(StatisticsModel::systemTable($where)); - $this->assign(compact('where','trans','orderCount','orderPrice','orderDays','header','Statistic','ordinary','pink','recharge','data','seckill')); + $this->assign(compact('where','trans','orderCount','orderDays','header','Statistic','ordinary','pink','recharge','data','seckill')); $this->assign('price',StatisticsModel::getOrderPrice($where)); return $this->fetch(); diff --git a/application/admin/controller/setting/SystemGroupData.php b/application/admin/controller/setting/SystemGroupData.php index 931da8fd..b1c35b24 100644 --- a/application/admin/controller/setting/SystemGroupData.php +++ b/application/admin/controller/setting/SystemGroupData.php @@ -69,19 +69,19 @@ class SystemGroupData extends AuthController $f[] = Form::input($value["title"],$value["name"])->type('textarea')->placeholder($value['param']); break; case 'radio': - $f[] = Form::radio($value["title"],$value["name"],$info[0]["value"])->options($info); + $f[] = Form::radio($value["title"],$value["name"],isset($info[0]["value"]) ? $info[0]["value"] : '')->options($info); break; case 'checkbox': - $f[] = Form::checkbox($value["title"],$value["name"],$info[0])->options($info); + $f[] = Form::checkbox($value["title"],$value["name"],isset($info[0]) ? $info[0] : '')->options($info); break; case 'select': - $f[] = Form::select($value["title"],$value["name"],$info[0])->options($info)->multiple(false); + $f[] = Form::select($value["title"],$value["name"],isset($info[0]) ? $info[0] : '')->options($info)->multiple(false); break; case 'upload': - $f[] = Form::frameImageOne($value["title"],$value["name"],Url::build('admin/widget.images/index',array('fodder'=>$value["title"],'big'=>1)))->icon('image'); + $f[] = Form::formFrameImageOne($value["title"],$value["name"]); break; case 'uploads': - $f[] = Form::frameImages($value["title"],$value["name"],Url::build('admin/widget.images/index',array('fodder'=>$value["title"],'big'=>1)))->maxLength(5)->icon('images')->width('100%')->height('550px')->spin(0); + $f[] = Form::formFrameImages($value["title"],$value["name"]); break; default: $f[] = Form::input($value["title"],$value["name"]); @@ -184,11 +184,11 @@ class SystemGroupData extends AuthController }else{ $image = ''; } - $f[] = Form::frameImageOne($value['title'],$value['name'],Url::build('admin/widget.images/index',array('fodder'=>$value['title'],'big'=>1)),$image)->icon('image'); + $f[] = Form::formFrameImageOne($value['title'],$value['name'],$image); break; case 'uploads': $images = !empty($fvalue) ? $fvalue:[]; - $f[] = Form::frameImages($value['title'],$value['name'],Url::build('admin/widget.images/index', array('fodder' => $value['title'],'big'=>1)),$images)->maxLength(5)->icon('images')->width('100%')->height('550px')->spin(0); + $f[] = Form::formFrameImages($value['title'],$value['name'],$images); break; case 'select': $f[] = Form::select($value['title'],$value['name'],$fvalue)->setOptions($info); @@ -221,7 +221,7 @@ class SystemGroupData extends AuthController foreach ($params as $key => $param) { foreach ($Fields['fields'] as $index => $field) { if($key == $field["title"]){ - if(!$param) + if(trim($param) == '') return Json::fail($field["name"]."不能为空!"); else{ $value[$key]["type"] = $field["type"]; @@ -252,14 +252,8 @@ class SystemGroupData extends AuthController public function upload() { $res = Upload::image('file','common'); - $thumbPath = Upload::thumb($res->dir); - //产品图片上传记录 - $fileInfo = $res->fileInfo->getinfo(); - SystemAttachment::attachmentAdd($res->fileInfo->getSaveName(),$fileInfo['size'],$fileInfo['type'],$res->dir,$thumbPath,6); - - if($res->status == 200) - return Json::successful('图片上传成功!',['name'=>$res->fileInfo->getSaveName(),'url'=>Upload::pathToUrl($thumbPath)]); - else - return Json::fail($res->error); + if(!is_array($res)) return Json::fail($res); + SystemAttachment::attachmentAdd($res['name'],$res['size'],$res['type'],$res['dir'],$res['thumb_path'],6,$res['image_type'],$res['time']); + return Json::successful('图片上传成功!',['name'=>$res['name'],'url'=>Upload::pathToUrl($res['thumb_path'])]); } } diff --git a/application/admin/controller/setting/SystemMenus.php b/application/admin/controller/setting/SystemMenus.php index eea8da6b..14385d4b 100644 --- a/application/admin/controller/setting/SystemMenus.php +++ b/application/admin/controller/setting/SystemMenus.php @@ -38,7 +38,8 @@ class SystemMenus extends AuthController ['pid',$pid] ],$this->request); $this->assign(MenusModel::getAdminPage($params)); - $this->assign(compact('params')); + $addurl = Url::build('create',['cid'=>input('pid')]); + $this->assign(compact('params','addurl')); return $this->fetch(); } @@ -50,25 +51,49 @@ class SystemMenus extends AuthController */ public function create($cid = 0) { - $form = Form::create(Url::build('save'),[ - Form::input('menu_name','按钮名称')->required('按钮名称必填'), - Form::select('pid','父级id',$cid)->setOptions(function(){ - $list = (Util::sortListTier(MenusModel::all()->toArray(),'顶级','pid','menu_name')); - $menus = [['value'=>0,'label'=>'顶级按钮']]; - foreach ($list as $menu){ - $menus[] = ['value'=>$menu['id'],'label'=>$menu['html'].$menu['menu_name']]; - } - return $menus; - })->filterable(1), - Form::select('module','模块名')->options([['label'=>'总后台','value'=>'admin']]), - Form::input('controller','控制器名'), - Form::input('action','方法名'), - Form::input('params','参数')->placeholder('举例:a/123/b/234'), - Form::frameInputOne('icon','图标',Url::build('admin/widget.widgets/icon',array('fodder'=>'icon')))->icon('ionic'), - Form::number('sort','排序',0), - Form::radio('is_show','是否菜单',1)->options([['value'=>0,'label'=>'隐藏'],['value'=>1,'label'=>'显示(菜单只显示三级)']]), - ]); - $form->setMethod('post')->setTitle('添加权限'); + $field = []; + $field[] = Form::input('menu_name','按钮名称')->required('按钮名称必填'); + $field[] = Form::select('pid','父级id',$cid)->setOptions(function(){ + $list = (Util::sortListTier(MenusModel::all(function($m){ + $m->order('sort DESC,id ASC'); + })->toArray(),'顶级','pid','menu_name')); + $menus = [['value'=>0,'label'=>'顶级按钮']]; + foreach ($list as $menu){ + $menus[] = ['value'=>$menu['id'],'label'=>$menu['html'].$menu['menu_name']]; + } + return $menus; + })->filterable(1); + $field[] = Form::select('module','模块名')->options([['label'=>'总后台','value'=>'admin']]); + if($cid)$controller = MenusModel::where('id',$cid)->value('controller')?:''; + else $controller = ''; + $field[] = Form::input('controller','控制器名',$controller); + if (!empty($controller)) + { + $controller = preg_replace_callback('/([.]+([a-z]{1}))/i', function ($matches) { + return '\\' . strtoupper($matches[2]); + }, $controller); + if(class_exists('\app\admin\controller\\' . $controller)) + { + $list = get_this_class_methods('\app\admin\controller\\' . $controller); + + $field[] = Form::select('action','方法名')->setOptions(function()use($list){ + $menus = [['value'=>0,'label'=>'默认函数']]; + foreach ($list as $menu){ + $menus[] = ['value'=>$menu,'label'=>$menu]; + } + return $menus; + })->filterable(1); + }else{ + $field[] = Form::input('action','方法名'); + } + }else{ + $field[] = Form::input('action','方法名'); + } + $field[] = Form::input('params','参数')->placeholder('举例:a/123/b/234'); + $field[] = Form::frameInputOne('icon','图标',Url::build('admin/widget.widgets/icon',array('fodder'=>'icon')))->icon('ionic'); + $field[] = Form::number('sort','排序',0); + $field[] = Form::radio('is_show','是否菜单',0)->options([['value'=>0,'label'=>'隐藏'],['value'=>1,'label'=>'显示(菜单只显示三级)']]); + $form = Form::make_post_form('添加权限',$field,Url::build('save'),3); $this->assign(compact('form')); return $this->fetch('public/form-builder'); } @@ -85,7 +110,7 @@ class SystemMenus extends AuthController 'menu_name', 'controller', ['module','admin'], - 'action', + ['action',''], 'icon', 'params', ['pid',0], @@ -106,26 +131,48 @@ class SystemMenus extends AuthController public function edit($id) { $menu = MenusModel::get($id); - if(!$menu) return Json::fail('数据不存在!'); - $form = Form::create(Url::build('update',array('id'=>$id)),[ - Form::input('menu_name','按钮名称',$menu['menu_name']), - Form::select('pid','父级id',(string)$menu->getData('pid'))->setOptions(function()use($id){ - $list = (Util::sortListTier(MenusModel::where('id','<>',$id)->select()->toArray(),'顶级','pid','menu_name')); - $menus = [['value'=>0,'label'=>'顶级按钮']]; - foreach ($list as $menu){ - $menus[] = ['value'=>$menu['id'],'label'=>$menu['html'].$menu['menu_name']]; - } - return $menus; - })->filterable(1), - Form::select('module','模块名',$menu['module'])->options([['label'=>'总后台','value'=>'admin'],['label'=>'总后台1','value'=>'admin1']]), - Form::input('controller','控制器名',$menu['controller']), - Form::input('action','方法名',$menu['action']), - Form::input('params','参数',MenusModel::paramStr($menu['params']))->placeholder('举例:a/123/b/234'), - Form::frameInputOne('icon','图标',Url::build('admin/widget.widgets/icon',array('fodder'=>'icon')),$menu['icon'])->icon('ionic'), - Form::number('sort','排序',$menu['sort']), - Form::radio('is_show','是否菜单',$menu['is_show'])->options([['value'=>0,'label'=>'隐藏'],['value'=>1,'label'=>'显示(菜单只显示三级)']]) - ]); - $form->setMethod('post')->setTitle('编辑权限'); + if (!$menu) return Json::fail('数据不存在!'); + $field = array(); + $field[] = Form::input('menu_name','按钮名称',$menu['menu_name']); + $field[] = Form::select('pid','父级id',(string)$menu->getData('pid'))->setOptions(function()use($id){ + $list = (Util::sortListTier(MenusModel::all(function($m){ + $m->order('sort DESC,id ASC'); + })->toArray(),'顶级','pid','menu_name')); + $menus = [['value'=>0,'label'=>'顶级按钮']]; + foreach ($list as $menu){ + $menus[] = ['value'=>$menu['id'],'label'=>$menu['html'].$menu['menu_name']]; + } + return $menus; + })->filterable(1); + $field[] = Form::select('module','模块名',$menu['module'])->options([['label'=>'总后台','value'=>'admin']]); + $field[] = Form::input('controller','控制器名',$menu['controller']); + if (!empty($menu['controller'])) + { + $controller = preg_replace_callback('/([.]+([a-z]{1}))/i', function ($matches) { + return '\\' . strtoupper($matches[2]); + }, $menu['controller']); + if(class_exists('\app\admin\controller\\' . $controller)) + { + $list = get_this_class_methods('\app\admin\controller\\' . $controller); + + $field[] = Form::select('action','方法名',(string)$menu->getData('action'))->setOptions(function()use($list){ + $menus = [['value'=>0,'label'=>'默认函数']]; + foreach ($list as $menu){ + $menus[] = ['value'=>$menu,'label'=>$menu]; + } + return $menus; + })->filterable(1); + }else{ + $field[] = Form::input('action','方法名',$menu['action']); + } + }else{ + $field[] = Form::input('action','方法名'); + } + $field[] = Form::input('params','参数',MenusModel::paramStr($menu['params']))->placeholder('举例:a/123/b/234'); + $field[] = Form::frameInputOne('icon','图标',Url::build('admin/widget.widgets/icon',array('fodder'=>'icon')),$menu['icon'])->icon('ionic'); + $field[] = Form::number('sort','排序',$menu['sort']); + $field[] = Form::radio('is_show','是否菜单',$menu['is_show'])->options([['value'=>0,'label'=>'隐藏'],['value'=>1,'label'=>'显示(菜单只显示三级)']]); + $form = Form::make_post_form('添加权限',$field,Url::build('update',array('id'=>$id)),3); $this->assign(compact('form')); return $this->fetch('public/form-builder'); } diff --git a/application/admin/controller/store/CopyTaobao.php b/application/admin/controller/store/CopyTaobao.php new file mode 100644 index 00000000..596bf38e --- /dev/null +++ b/application/admin/controller/store/CopyTaobao.php @@ -0,0 +1,885 @@ + 微信:szktor + * Date: 2019-04-25 + */ +namespace app\admin\controller\store; + +use service\HttpService; +use service\UploadService; +use think\exception\PDOException; +use app\admin\controller\AuthController; +use app\admin\model\system\SystemConfig; +use traits\CurdControllerTrait; +use service\JsonService; +use service\UtilService; +use app\admin\model\store\StoreCategory as CategoryModel; +use app\admin\model\store\StoreProduct as ProductModel; +use app\admin\model\system\SystemAttachment; +use app\admin\model\system\SystemAttachmentCategory; + +/** + * 产品管理 + * Class StoreProduct + * @package app\admin\controller\store + */ +class CopyTaobao extends AuthController +{ + + use CurdControllerTrait; + + protected $bindModel = ProductModel::class; + //错误信息 + protected $errorInfo=true; + //产品默认字段 + protected $productInfo=[ + 'cate_id'=>'', + 'store_name' =>'', + 'store_info' => '', + 'unit_name' => '件', + 'price' => 0, + 'keyword' => '', + 'ficti' => 0, + 'ot_price' => 0, + 'give_integral' => 0, + 'postage' => 0, + 'cost' => 0, + 'image' => '', + 'slider_image' => '', + 'add_time' => 0, + 'stock' => 0, + 'description' => '', + 'soure_link' => '' + ]; + //抓取网站主域名 + protected $grabName=[ + 'taobao', + '1688', + 'tmall', + 'jd' + ]; + //远程下载附件图片分类名称 + protected $AttachmentCategoryName='远程下载'; + /** + * 显示资源 + * @return html + */ + public function index() + { + $list = CategoryModel::getTierList(); + $menus=[]; + foreach ($list as $menu){ + $menus[] = ['value'=>$menu['id'],'label'=>$menu['html'].$menu['cate_name'],'disabled'=>$menu['pid']== 0];//,'disabled'=>$menu['pid']== 0]; + } + $this->assign('menus',$menus); + $this->assign('is_layui',1); + return $this->fetch(); + } + /* + * 设置错误信息 + * @param string $msg 错误信息 + * */ + public function setErrorInfo($msg='') + { + $this->errorInfo=$msg; + return false; + } + /* + * 设置字符串字符集 + * @param string $str 需要设置字符集的字符串 + * @return string + * */ + public function Utf8String($str) + { + $encode=mb_detect_encoding($str, array("ASCII",'UTF-8',"GB2312","GBK",'BIG5')); + if(strtoupper($encode) != 'UTF-8') $str=mb_convert_encoding($str, 'utf-8',$encode); + return $str; + } + /** + * 获取资源,并解析出对应的商品参数 + * @return json + */ + public function get_request_contents() + { + list($link)=UtilService::postMore([ + ['link',''] + ],$this->request,true); + $url=$this->checkurl($link); + if($url===false) return JsonService::fail($this->errorInfo); + $this->errorInfo=true; + $html=$this->curl_Get($url,60); + if(!$html) return JsonService::fail('商品HTML信息获取失败'); + $html=$this->Utf8String($html); + preg_match('/([^<>]*)<\/title>/', $html, $title); + //商品标题 + $this->productInfo['store_name'] = isset($title['1']) ? str_replace(['-淘宝网','-tmall.com天猫',' - 阿里巴巴',' ','-','【图片价格品牌报价】京东','京东','【行情报价价格评测】'],'',trim($title['1'])) :''; + $this->productInfo['store_info'] = $this->productInfo['store_name']; + try{ + //获取url信息 + $pathinfo=pathinfo($url); + if(!isset($pathinfo['dirname'])) return JsonService::fail('解析URL失败'); + //提取域名 + $parse_url=parse_url($pathinfo['dirname']); + if(!isset($parse_url['host'])) return JsonService::fail('获取域名失败'); + //获取第一次.出现的位置 + $strLeng=strpos($parse_url['host'],'.')+1; + //截取域名中的真实域名不带.com后的 + $funsuffix=substr($parse_url['host'],$strLeng,strrpos($parse_url['host'],'.')-$strLeng); + if(!in_array($funsuffix,$this->grabName)) return JsonService::fail('您输入的地址不在复制范围内!'); + //设拼接设置产品函数 + $funName="setProductInfo".ucfirst($funsuffix); + //执行方法 + if(method_exists($this,$funName)) + $this->$funName($html); + else + return JsonService::fail('设置产品函数不存在'); + if(!$this->productInfo['slider_image']) return JsonService::fail('未能获取到商品信息,请确保商品信息有效!'); + return JsonService::successful($this->productInfo); + }catch (\Exception $e){ + return JsonService::fail('系统错误',['line'=>$e->getLine(),'meass'=>$e->getMessage()]); + } + } + + /* + * 淘宝设置产品 + * @param string $html 网页内容 + * */ + public function setProductInfoTaobao($html) + { + //获取轮播图 + $images = $this->getTaobaoImg($html); + $images = array_merge($images); + $this->productInfo['slider_image']=isset($images['gaoqing']) ? $images['gaoqing'] : (array)$images; + //获取产品详情请求链接 + $link=$this->getTaobaoDesc($html); + //获取请求内容 + $desc_json = HttpService::getRequest($link); + //转换字符集 + $desc_json = $this->Utf8String($desc_json); + //截取掉多余字符 + $this->productInfo['test']=$desc_json; + $desc_json = str_replace('var desc=\'','',$desc_json); + $desc_json = str_replace(["\n","\t","\r"],'',$desc_json); + $content = substr($desc_json,0,-2); + $this->productInfo['description']=$content; + //获取详情图 + $description_images=$this->decodedesc($this->productInfo['description']); + $this->productInfo['description_images']=is_array($description_images) ? $description_images : []; + $this->productInfo['image']=is_array($this->productInfo['slider_image']) && isset($this->productInfo['slider_image'][0]) ? $this->productInfo['slider_image'][0] : ''; + } + + /* + * 天猫设置产品 + * @param string $html 网页内容 + * */ + public function setProductInfoTmall($html) + { + //获取轮播图 + $images = $this->getTianMaoImg($html); + $images = array_merge($images); + $this->productInfo['slider_image'] = $images; + $this->productInfo['image'] = is_array($this->productInfo['slider_image']) && isset($this->productInfo['slider_image'][0]) ? $this->productInfo['slider_image'][0] : ''; + //获取产品详情请求链接 + $link=$this->getTianMaoDesc($html); + //获取请求内容 + $desc_json = HttpService::getRequest($link); + //转换字符集 + $desc_json = $this->Utf8String($desc_json); + //截取掉多余字符 + $desc_json = str_replace('var desc=\'','',$desc_json); + $desc_json = str_replace(["\n","\t","\r"],'',$desc_json); + $content = substr($desc_json,0,-2); + $this->productInfo['description']=$content; + //获取详情图 + $description_images=$this->decodedesc($this->productInfo['description']); + $this->productInfo['description_images']=is_array($description_images) ? $description_images : []; + } + /* + * 1688设置产品 + * @param string $html 网页内容 + * */ + public function setProductInfo1688($html) + { + //获取轮播图 + $images = $this->get1688Img($html); + if(isset($images['gaoqing'])){ + $images['gaoqing'] = array_merge($images['gaoqing']); + $this->productInfo['slider_image'] = $images['gaoqing']; + }else + $this->productInfo['slider_image'] = $images; + $this->productInfo['image'] = is_array($this->productInfo['slider_image']) && isset($this->productInfo['slider_image'][0]) ? $this->productInfo['slider_image'][0] : ''; + //获取产品详情请求链接 + $link = $this->get1688Desc($html); + //获取请求内容 + $desc_json = HttpService::getRequest($link); + //转换字符集 + $desc_json = $this->Utf8String($desc_json); + $this->productInfo['test']=$desc_json; + //截取掉多余字符 + $desc_json = str_replace('var offer_details=','',$desc_json); + $desc_json = str_replace(["\n","\t","\r"],'',$desc_json); + $desc_json = substr($desc_json,0,-1); + $descArray = json_decode($desc_json,true); + if(!isset($descArray['content'])) $descArray['content'] = ''; + $this->productInfo['description']=$descArray['content']; + //获取详情图 + $description_images=$this->decodedesc($this->productInfo['description']); + $this->productInfo['description_images']=is_array($description_images) ? $description_images : []; + } + /* + * JD设置产品 + * @param string $html 网页内容 + * */ + public function setProductInfoJd($html) + { + //获取产品详情请求链接 + $desc_url = $this->getJdDesc($html); + //获取请求内容 + $desc_json=HttpService::getRequest($desc_url); + //转换字符集 + $desc_json = $this->Utf8String($desc_json); + //截取掉多余字符 + if(substr($desc_json,0,8) == 'showdesc') $desc_json = str_replace('showdesc','',$desc_json); + $desc_json = str_replace('data-lazyload=','src=',$desc_json); + $descArray=json_decode($desc_json,true); + if(!$descArray) $descArray=['content'=>'']; + //获取轮播图 + $images=$this->getJdImg($html); + $images = array_merge($images); + $this->productInfo['slider_image']=$images; + $this->productInfo['image']=is_array($this->productInfo['slider_image']) ? $this->productInfo['slider_image'][0] : ''; + $this->productInfo['description']=$descArray['content']; + //获取详情图 + $description_images=$this->decodedesc($descArray['content']); + $this->productInfo['description_images']=is_array($description_images) ? $description_images : []; + } + + /* + * 检查淘宝,天猫,1688的商品链接 + * @return string + */ + public function checkurl($link) + { + $link=strtolower($link); + if(!$link) return $this->setErrorInfo('请输入链接地址'); + if(substr($link,0,4)!='http') return $this->setErrorInfo('链接地址必须以http开头'); + $arrLine=explode('?',$link); + if(!count($arrLine)) return $this->setErrorInfo('链接地址有误(ERR:1001)'); + if(!isset($arrLine[1])){ + if(strpos($link,'1688')!==false && strpos($link,'offer')!==false) return trim($arrLine[0]); + else if(strpos($link,'item.jd')!==false) return trim($arrLine[0]); + else return $this->setErrorInfo('链接地址有误(ERR:1002)'); + } + if(strpos($link,'1688')!==false && strpos($link,'offer')!==false) return trim($arrLine[0]); + if(strpos($link,'item.jd')!==false) return trim($arrLine[0]); + $arrLineValue = explode('&',$arrLine[1]); + if(!is_array($arrLineValue)) return $this->setErrorInfo('链接地址有误(ERR:1003)'); + if(!strpos(trim($arrLine[0]),'item.htm')) $this->setErrorInfo('链接地址有误(ERR:1004)'); + //链接参数 + $lastStr=''; + foreach ($arrLineValue as $k => $v){ + if(substr(strtolower($v),0,3) == 'id='){ + $lastStr = trim($v); + break; + } + } + if(!$lastStr) return $this->setErrorInfo('链接地址有误(ERR:1005)'); + return trim($arrLine[0]) . '?' . $lastStr; + } + + /* + * 保存图片保存产品信息 + * */ + public function save_product() + { + $data=UtilService::postMore([ + ['cate_id',''], + ['store_name',''], + ['store_info',''], + ['keyword',''], + ['unit_name',''], + ['image',''], + ['slider_image',[]], + ['price',''], + ['ot_price',''], + ['give_integral',''], + ['postage',''], + ['sales',''], + ['ficti',''], + ['stock',''], + ['cost',''], + ['description_images',[]], + ['description',''], + ['is_show',0], + ['soure_link',''], + ]); + if(!$data['cate_id']) return JsonService::fail('请选择分类!'); + if(!$data['store_name']) return JsonService::fail('请填写产品名称'); + if(!$data['unit_name']) return JsonService::fail('请填写产品单位'); + if(!$data['image']) return JsonService::fail('商品主图暂无,无法保存商品,您可选择其他链接进行复制产品'); + if($data['price'] == '' || $data['price'] < 0) return JsonService::fail('请输入产品售价'); + if($data['ot_price'] == '' || $data['ot_price'] < 0) return JsonService::fail('请输入产品市场价'); + if($data['stock'] == '' || $data['stock'] < 0) return JsonService::fail('请输入库存'); + //查询附件分类 + $AttachmentCategory = SystemAttachmentCategory::where(['name' =>$this->AttachmentCategoryName])->find(); + //不存在则创建 + if(!$AttachmentCategory) $AttachmentCategory = SystemAttachmentCategory::set(['pid' =>'0','name' =>$this->AttachmentCategoryName,'enname'=>'']); + //生成附件目录 + if(makePathToUrl('attach',3) == '') return JsonService::fail('无法创建文件夹,请检查您的上传目录权限:'.UPLOAD_PATH.'/attach/'); + ini_set("max_execution_time", 600); + //开始图片下载处理 + ProductModel::beginTrans(); + try{ + //放入主图 + $images=[ + ['w'=>305, 'h'=>305, 'line'=>$data['image'],'valuename'=>'image'] + ]; + //放入轮播图 + foreach ($data['slider_image'] as $item){ + $value=['w'=>640, 'h'=>640, 'line'=>$item,'valuename'=>'slider_image','isTwoArray'=>true]; + array_push($images,$value); + } + //执行下载 + $res=$this->uploadImage($images,false,0,$AttachmentCategory['id']); + if(!is_array($res)) return JsonService::fail($this->errorInfo ? $this->errorInfo : '保存图片失败'); + if(isset($res['image'])) $data['image']=$res['image']; + if(isset($res['slider_image'])) $data['slider_image']=$res['slider_image']; + $data['slider_image']=count($data['slider_image']) ? json_encode($data['slider_image']) : ''; + //替换并下载详情里面的图片默认下载全部图片 + $data['description']=preg_replace('#<style>.*?</style>#is','',$data['description']); + $data['description']=$this->uploadImage($data['description_images'],$data['description'],1,$AttachmentCategory['id']); + unset($data['description_images']); + $data['add_time']=time(); + $cate_id = explode(',',$data['cate_id']); + //产品存在 + if($productInfo=ProductModel::where(['soure_link'=>$data['soure_link']])->find()){ + $productInfo->description=$data['description']; + $productInfo->slider_image=$data['slider_image']; + $productInfo->image=$data['image']; + $productInfo->store_name=$data['store_name']; + $productInfo->save(); + ProductModel::commitTrans(); + return JsonService::successful('商品存在,信息已被更新成功'); + }else { + //不存在时新增 + if ($res = ProductModel::set($data)) { + foreach ($cate_id as $cid) { + \think\Db::name('store_product_cate')->insert(['product_id' => $res['id'], 'cate_id' => $cid, 'add_time' => time()]); + } + ProductModel::commitTrans(); + return JsonService::successful('生成产品成功'); + } else { + ProductModel::rollbackTrans(); + return JsonService::fail('生成产品失败'); + } + } + }catch (PDOException $e){ + ProductModel::rollbackTrans(); + return JsonService::fail('插入数据库错误',['line'=>$e->getLine(),'messag'=>$e->getMessage()]); + }catch (\Exception $e){ + ProductModel::rollbackTrans(); + return JsonService::fail('系统错误',['line'=>$e->getLine(),'messag'=>$e->getMessage()]); + } + } + /* + * 上传图片处理 + * @param array $image 图片路径 + * @param int $uploadType 上传方式 0=远程下载 + * */ + public function uploadImage(array $images=[],$html='',$uploadType=0,$AttachmentCategoryId=0) + { + $uploadImage=[]; + $siteUrl = SystemConfig::getValue('site_url'); + switch ($uploadType){ + case 0: + foreach ($images as $item){ + //下载图片文件 + if($item['w'] && $item['h']) + $uploadValue=$this->downloadImage($item['line'],'',0,30,$item['w'],$item['h']); + else + $uploadValue=$this->downloadImage($item['line']); + //下载成功更新数据库 + if(is_array($uploadValue)){ + //TODO 拼接图片地址 + if($uploadValue['image_type'] == 1) $imagePath=$siteUrl.$uploadValue['path']; + else $imagePath = $uploadValue['path']; + //写入数据库 + if(!$uploadValue['is_exists'] && $AttachmentCategoryId) SystemAttachment::attachmentAdd($uploadValue['name'],$uploadValue['size'],$uploadValue['mime'],$imagePath,$imagePath,$AttachmentCategoryId,$uploadValue['image_type'],time(),1); + //组装数组 + if(isset($item['isTwoArray']) && $item['isTwoArray']) + $uploadImage[$item['valuename']][]=$imagePath; + else + $uploadImage[$item['valuename']]=$imagePath; + } + } + break; + case 1: + preg_match_all('#<img.*?src="([^"]*)"[^>]*>#i', $html, $match); + if(isset($match[1])){ + foreach ($match[1] as $item){ + if(is_int(strpos($item, 'http'))) + $arcurl = $item; + else + $arcurl = 'http://'.ltrim($item,'\//'); + $uploadValue=$this->downloadImage($arcurl); + //下载成功更新数据库 + if(is_array($uploadValue)){ + //TODO 拼接图片地址 + if($uploadValue['image_type'] == 1) $imagePath=$siteUrl.$uploadValue['path']; + else $imagePath = $uploadValue['path']; + //写入数据库 + if(!$uploadValue['is_exists'] && $AttachmentCategoryId) SystemAttachment::attachmentAdd($uploadValue['name'],$uploadValue['size'],$uploadValue['mime'],$imagePath,$imagePath,$AttachmentCategoryId,$uploadValue['image_type'],time(),1); + //替换图片 + $html=str_replace($item,$imagePath,$html); + }else{ + //替换掉没有下载下来的图片 + $html=preg_replace('#<img.*?src="'.$item.'"*>#i','',$html); + } + } + } + return $html; + break; + default: + return $this->setErrorInfo('上传方式错误'); + break; + } + return $uploadImage; + } + + //提取商品描述中的所有图片 + public function decodedesc($desc = '') + { + $desc =trim($desc); + if(!$desc) return ''; + preg_match_all('/<img[^>]*?src="([^"]*?)"[^>]*?>/i',$desc,$match); + if(!isset($match[1]) || count($match[1]) <= 0){ + preg_match_all('/:url(([^"]*?));/i',$desc,$match); + if(!isset($match[1]) || count($match[1]) <= 0) return $desc; + }else{ + preg_match_all('/:url(([^"]*?));/i',$desc,$newmatch); + if(isset($newmatch[1]) && count($newmatch[1]) > 0) $match[1] = array_merge($match[1],$newmatch[1]); + } + $match[1] = array_unique($match[1]); //去掉重复 + foreach($match[1] as $k => &$v) { + $_tmp_img = str_replace([')','(',';'],'',$v); + $_tmp_img = strpos($_tmp_img,'http') ? $_tmp_img : 'http:' . $_tmp_img; + if(strpos($v,'?')) { + $_tarr = explode('?',$v); + $_tmp_img = trim($_tarr[0]); + } + $_urls = str_replace(['\'','"'],'',$_tmp_img); + if($this->_img_exists($_urls)) $v = $_urls; + } + return $match[1]; + } + //获取京东商品组图 + public function getJdImg($html = '') + { + //获取图片服务器网址 + preg_match('/<img(.*?)id="spec-img"(.*?)data-origin=\"(.*?)\"[^>]*>/', $html, $img); + if(!isset($img[3])) return ''; + $info = parse_url(trim($img[3])); + if(!$info['host']) return ''; + if(!$info['path']) return ''; + $_tmparr = explode('/',trim($info['path'])); + $url = 'http://' . $info['host'] . '/' . $_tmparr[1] . '/' . str_replace(['jfs',' '],'',trim($_tmparr[2])); + preg_match('/imageList:(.*?)"],/is', $html, $img); + if(!isset($img[1])) + { + return ''; + } + $_arr = explode(',',$img[1]); + foreach ($_arr as $k => &$v){ + $_str = $url . str_replace(['"','[',']',' '],'',trim($v)); + if(strpos($_str,'?')) + { + $_tarr = explode('?',$_str); + $_str = trim($_tarr[0]); + } + if($this->_img_exists($_str)) + { + $v = $_str; + }else{ + unset($_arr[$k]); + } + } + return array_unique($_arr); + } + //获取京东商品描述 + public function getJdDesc($html = '') + { + preg_match('/,(.*?)desc:([^<>]*)\',/i', $html, $descarr); + if(!isset($descarr[1]) && !isset($descarr[2])) return ''; + $tmpArr = explode(',',$descarr[2]); + if(count($tmpArr) > 0) + { + $descarr[2] = trim($tmpArr[0]); + } + $replace_arr = ['\'','\',',' ',',','/*','*/']; + if(isset($descarr[2])) + { + $d_url = str_replace($replace_arr,'',$descarr[2]); + return $this->formatDescUrl(strpos($d_url,'http') ? $d_url : 'http:' . $d_url); + } + $d_url = str_replace($replace_arr,'',$descarr[1]); + $d_url = $this->formatDescUrl($d_url); + $d_url = rtrim(rtrim($d_url,"?"),"&"); + return substr($d_url,0,4) == 'http' ? $d_url : 'http:' . $d_url; + } + //处理下京东商品描述网址 + public function formatDescUrl($url = '') + { + if(!$url) return ''; + $url = substr($url,0,4) == 'http' ? $url : 'http:' . $url; + if(!strpos($url,'&')) + { + $_arr = explode('?',$url); + if(!is_array($_arr) || count($_arr) <= 0) return $url; + return trim($_arr[0]); + }else{ + $_arr = explode('&',$url); + } + if(!is_array($_arr) || count($_arr) <= 0) return $url; + unset($_arr[count($_arr)-1]); + $new_url = ''; + foreach ($_arr as $k => $v) { + $new_url .= $v . '&'; + } + return !$new_url ? $url : $new_url; + } + + //获取1688商品组图 + public function get1688Img($html = '') + { + preg_match('/<ul class=\"nav nav-tabs fd-clr\">(.*?)<\/ul>/is', $html, $img); + if(!isset($img[0])) + { + return ''; + } + preg_match_all('/preview":"(.*?)\"\}\'>/is', $img[0], $arrb); + if(!isset($arrb[1]) || count($arrb[1]) <= 0) + { + return ''; + } + $thumb = []; + $gaoqing = []; + $res = ['thumb' => '', 'gaoqing' => '']; //缩略图片和高清图片 + foreach($arrb[1] as $k => $v) + { + $_str = str_replace(['","original":"'],'*',$v); + $_arr = explode('*',$_str); + if(is_array($_arr) && isset($_arr[0]) && isset($_arr[1])) + { + if(strpos($_arr[0],'?')) + { + $_tarr = explode('?',$_arr[0]); + $_arr[0] = trim($_tarr[0]); + } + if(strpos($_arr[1],'?')) + { + $_tarr = explode('?',$_arr[1]); + $_arr[1] = trim($_tarr[0]); + } + if($this->_img_exists($_arr[0])) $thumb[] = trim($_arr[0]); + if($this->_img_exists($_arr[1])) $gaoqing[] = trim($_arr[1]); + } + } + $res = ['thumb' => array_unique($thumb), 'gaoqing' => array_unique($gaoqing)]; //缩略图片和高清图片 + return $res; + } + //获取1688商品描述 + public function get1688Desc($html = '') + { + preg_match('/data-tfs-url="([^<>]*)data-enable="true"/', $html, $descarr); + if(!isset($descarr[1])) return ''; + return str_replace(['"',' '],'',$descarr[1]); + } + + //获取天猫商品组图 + public function getTianMaoImg($html = '') + { + $pic_size = '430'; + preg_match('/<img[^>]*id="J_ImgBooth"[^r]*rc=\"([^"]*)\"[^>]*>/', $html, $img); + if(isset($img[1])) + { + $_arr = explode('x',$img[1]); + $filename = $_arr[count($_arr)-1]; + $pic_size = intval(substr($filename,0,3)); + } + preg_match('|<ul id="J_UlThumb" class="tb-thumb tm-clear">(.*)</ul>|isU',$html, $match); + preg_match_all('/<img src="(.*?)" \//',$match[1],$images); + if(!isset($images[1])) return ''; + foreach($images[1] as $k => &$v) + { + $tmp_v = trim($v); + $_arr = explode('x',$tmp_v); + $_fname = $_arr[count($_arr)-1]; + $_size = intval(substr($_fname,0,3)); + if(strpos($tmp_v,'://')) + { + $_arr = explode(':',$tmp_v); + $r_url = trim($_arr[1]); + }else{ + $r_url = $tmp_v; + } + $str = str_replace($_size, $pic_size, $r_url); + if(strpos($str,'?')) + { + $_tarr = explode('?',$str); + $str = trim($_tarr[0]); + } + $_i_url = strpos($str,'http') ? $str : 'http:' . $str; + if($this->_img_exists($_i_url)) + { + $v = $_i_url; + }else{ + unset($images[1][$k]); + } + } + return array_unique($images[1]); + } + //获取天猫商品描述 + public function getTianMaoDesc($html = '') + { + preg_match('/descUrl":"([^<>]*)","httpsDescUrl":"/', $html, $descarr); + if(!isset($descarr[1])) + { + preg_match('/httpsDescUrl":"([^<>]*)","fetchDcUrl/', $html, $descarr); + if(!isset($descarr[1])) return ''; + } + return strpos($descarr[1],'http') ? $descarr[1] : 'http:' . $descarr[1]; + } + + //获取淘宝商品组图 + public function getTaobaoImg($html = '') + { + preg_match('/auctionImages([^<>]*)"]/', $html, $imgarr); + if(!isset($imgarr[1])) return ''; + $arr = explode(',', $imgarr[1]); + foreach($arr as $k => &$v) + { + $str = trim($v); + $str = str_replace(['"',' ','',':['], '', $str); + if(strpos($str,'?')) + { + $_tarr = explode('?',$str); + $str = trim($_tarr[0]); + } + $_i_url = strpos($str,'http') ? $str : 'http:' . $str; + if($this->_img_exists($_i_url)) + { + $v = $_i_url; + }else{ + unset($arr[$k]); + } + } + return array_unique($arr); + } + //获取淘宝商品描述 + public function getTaobaoDesc($html = '') + { + preg_match('/descUrl([^<>]*)counterApi/', $html, $descarr); + if(!isset($descarr[1])) return ''; + $arr = explode(':', $descarr[1]); + $url = []; + foreach($arr as $k => $v) + { + if(strpos($v,'//')) + { + $str = str_replace(['\'',',',' ','?',':'], '', $v); + $url[] = trim($str); + } + } + if($url) + { + return strpos($url[0],'http') ? $url[0] : 'http:' . $url[0]; + }else{ + return ''; + } + } + + /** + * GET 请求 + * @param string $url + */ + public function curl_Get($url = '',$time_out = 25) + { + if(!$url) return ''; + $ch = curl_init(); + curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); // 跳过证书检查 + if(stripos($url,"https://")!==FALSE) + { + curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2); // 从证书中检查SSL加密算法是否存在 + } + curl_setopt($ch, CURLOPT_URL, $url); + curl_setopt($ch, CURLOPT_HTTPHEADER, array('user-agent:'.$_SERVER['HTTP_USER_AGENT'])); + curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); + curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); + curl_setopt($ch, CURLOPT_TIMEOUT,$time_out); + $response = curl_exec($ch); + if($error=curl_error($ch)){ + return false; + } + curl_close($ch); + return mb_convert_encoding($response, 'utf-8','GB2312'); + } + //检测远程文件是否存在 + public function _img_exists($url = '') + { + ini_set("max_execution_time", 0); + $str = @file_get_contents($url,0,null,0,1); + if(strlen($str) <= 0) return false; + if($str) + return true; + else + return false; + } + //TODO 下载图片 + public function downloadImage($url = '', $name = '', $type = 0, $timeout = 30, $w = 0, $h = 0) + { + if(!strlen(trim($url))) return ''; + if(!strlen(trim($name))) + { + //TODO 获取要下载的文件名称 + $downloadImageInfo = $this->getImageExtname($url); + $name = $downloadImageInfo['file_name']; + if(!strlen(trim($name))) return ''; + } + //TODO 获取远程文件所采用的方法 + if($type){ + $ch = curl_init(); + curl_setopt($ch, CURLOPT_URL, $url); + curl_setopt($ch, CURLOPT_RETURNTRANSFER, false); + curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout); + curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); //TODO 跳过证书检查 + if(stripos($url,"https://") !== FALSE) curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2); //TODO 从证书中检查SSL加密算法是否存在 + curl_setopt($ch, CURLOPT_HTTPHEADER, array('user-agent:'.$_SERVER['HTTP_USER_AGENT'])); + if(ini_get('open_basedir') == '' && ini_get('safe_mode' == 'Off')) curl_setopt ($ch, CURLOPT_FOLLOWLOCATION, 1);//TODO 是否采集301、302之后的页面 + $content = curl_exec($ch); + curl_close($ch); + }else{ + try{ + ob_start(); + readfile($url); + $content = ob_get_contents(); + ob_end_clean(); + }catch (\Exception $e){ + return $e->getMessage(); + } + } + $size = strlen(trim($content)); + if(!$content || $size <= 2) return '图片流获取失败'; + $date_dir = date('Y') . DS . date('m') . DS . date('d'); + $imageInfo = UploadService::imageStream($name, $content, 'attach' . DS . $date_dir. DS); + if(!is_array($imageInfo)) return $imageInfo; + $date['path'] = $imageInfo['dir']; + $date['name'] = $imageInfo['name']; + $date['size'] = $imageInfo['size']; + $date['mime'] = $imageInfo['type']; + $date['image_type'] = $imageInfo['image_type']; + $date['is_exists'] = false; + return $date; + } + //获取即将要下载的图片扩展名 + public function getImageExtname($url = '', $ex = 'jpg') + { + $_empty = ['file_name' => '', 'ext_name' => $ex]; + if(!$url) return $_empty; + if(strpos($url,'?')) + { + $_tarr = explode('?',$url); + $url = trim($_tarr[0]); + } + $arr = explode('.',$url); + if(!is_array($arr) || count($arr) <= 1) return $_empty; + $ext_name = trim($arr[count($arr)-1]); + $ext_name = !$ext_name ? $ex : $ext_name; + return ['file_name' => md5($url) . '.' . $ext_name, 'ext_name' => $ext_name]; + } + /* + $filepath = 绝对路径,末尾有斜杠 / + $name = 图片文件名 + $maxwidth 定义生成图片的最大宽度(单位:像素) + $maxheight 生成图片的最大高度(单位:像素) + $filetype 最终生成的图片类型(.jpg/.png/.gif) + */ + public function resizeImage($filepath = '',$name = '', $maxwidth = 0,$maxheight = 0) + { + $pic_file = $filepath . $name; //图片文件 + $img_info = getimagesize($pic_file); //索引 2 是图像类型的标记:1 = GIF,2 = JPG,3 = PNG,4 = SWF,5 = PSD, + if($img_info[2] == 1) + { + $im = imagecreatefromgif($pic_file); //打开图片 + $filetype = '.gif'; + }elseif($img_info[2] == 2){ + $im = imagecreatefromjpeg($pic_file); //打开图片 + $filetype = '.jpg'; + }elseif($img_info[2] == 3){ + $im = imagecreatefrompng($pic_file); //打开图片 + $filetype = '.png'; + }else{ + return ['path' => $filepath, 'file' => $name, 'mime' => '']; + } + $file_name = md5('_tmp_' . microtime() . '_' .rand(0,10)) . $filetype; + $pic_width = imagesx($im); + $pic_height = imagesy($im); + $resizewidth_tag = false; + $resizeheight_tag = false; + if(($maxwidth && $pic_width > $maxwidth) || ($maxheight && $pic_height > $maxheight)) + { + if($maxwidth && $pic_width>$maxwidth) + { + $widthratio = $maxwidth/$pic_width; + $resizewidth_tag = true; + } + if($maxheight && $pic_height>$maxheight) + { + $heightratio = $maxheight/$pic_height; + $resizeheight_tag = true; + } + if($resizewidth_tag && $resizeheight_tag) + { + if($widthratio<$heightratio) + $ratio = $widthratio; + else + $ratio = $heightratio; + } + if($resizewidth_tag && !$resizeheight_tag) + $ratio = $widthratio; + if($resizeheight_tag && !$resizewidth_tag) + $ratio = $heightratio; + $newwidth = $pic_width * $ratio; + $newheight = $pic_height * $ratio; + if(function_exists("imagecopyresampled")) + { + $newim = imagecreatetruecolor($newwidth,$newheight); + imagecopyresampled($newim,$im,0,0,0,0,$newwidth,$newheight,$pic_width,$pic_height); + }else{ + $newim = imagecreate($newwidth,$newheight); + imagecopyresized($newim,$im,0,0,0,0,$newwidth,$newheight,$pic_width,$pic_height); + } + if($filetype == '.png') + { + imagepng($newim,$filepath . $file_name); + }else if($filetype == '.gif'){ + imagegif($newim,$filepath . $file_name); + }else{ + imagejpeg($newim,$filepath . $file_name); + } + imagedestroy($newim); + }else{ + if($filetype == '.png') + { + imagepng($im,$filepath . $file_name); + }else if($filetype == '.gif'){ + imagegif($im,$filepath . $file_name); + }else{ + imagejpeg($im,$filepath . $file_name); + } + imagedestroy($im); + } + @unlink($pic_file); + return ['path' => $filepath, 'file' => $file_name, 'mime' => $img_info['mime']]; + } +} diff --git a/application/admin/controller/store/StoreCategory.php b/application/admin/controller/store/StoreCategory.php index 782f7eb7..a7a29b69 100644 --- a/application/admin/controller/store/StoreCategory.php +++ b/application/admin/controller/store/StoreCategory.php @@ -89,7 +89,7 @@ class StoreCategory extends AuthController return $menus; })->filterable(1), Form::input('cate_name','分类名称'), - Form::frameImageOne('pic','分类图标',Url::build('admin/widget.images/index',array('fodder'=>'pic')))->icon('image'), + Form::formFrameImageOne('pic','分类图标'), Form::number('sort','排序'), Form::radio('is_show','状态',1)->options([['label'=>'显示','value'=>1],['label'=>'隐藏','value'=>0]]) ]; @@ -106,17 +106,14 @@ class StoreCategory extends AuthController public function upload() { $res = Upload::image('file','store/category'.date('Ymd')); - $thumbPath = Upload::thumb($res->dir); - //产品图片上传记录 - $fileInfo = $res->fileInfo->getinfo(); - SystemAttachment::attachmentAdd($res->fileInfo->getSaveName(),$fileInfo['size'],$fileInfo['type'],$res->dir,$thumbPath,1); - - if($res->status == 200) - return Json::successful('图片上传成功!',['name'=>$res->fileInfo->getSaveName(),'url'=>Upload::pathToUrl($thumbPath)]); - else - return Json::fail($res->error); + if(is_array($res)){ + SystemAttachment::attachmentAdd($res['name'],$res['size'],$res['type'],$res['dir'],$res['thumb_path'],1,$res['image_type'],$res['time']); + return Json::successful('图片上传成功!',['name'=>$res['name'],'url'=>Upload::pathToUrl($res['thumb_path'])]); + }else + return Json::fail($res); } + /** * 保存新建的资源 * @@ -163,7 +160,9 @@ class StoreCategory extends AuthController return $menus; })->filterable(1), Form::input('cate_name','分类名称',$c->getData('cate_name')), - Form::frameImageOne('pic','分类图标',Url::build('admin/widget.images/index',array('fodder'=>'pic')),$c->getData('pic'))->icon('image'), +// Form::frameImageOne('pic','分类图标',Url::build('admin/widget.images/index',array('fodder'=>'pic')),$c->getData('pic'))->icon('image')->width('100%')->height('500px'), + Form::formFrameImageOne('pic','分类图标',$c->getData('pic')), + Form::number('sort','排序',$c->getData('sort')), Form::radio('is_show','状态',$c->getData('is_show'))->options([['label'=>'显示','value'=>1],['label'=>'隐藏','value'=>0]]) ]; diff --git a/application/admin/controller/store/StoreProduct.php b/application/admin/controller/store/StoreProduct.php index c120501a..9e3564d4 100644 --- a/application/admin/controller/store/StoreProduct.php +++ b/application/admin/controller/store/StoreProduct.php @@ -145,8 +145,8 @@ class StoreProduct extends AuthController Form::input('store_info','产品简介')->type('textarea'), Form::input('keyword','产品关键字')->placeholder('多个用英文状态下的逗号隔开'), Form::input('unit_name','产品单位','件'), - Form::frameImageOne('image','产品主图片(305*305px)',Url::build('admin/widget.images/index',array('fodder'=>'image')))->icon('image')->width('100%')->height('500px'), - Form::frameImages('slider_image','产品轮播图(640*640px)',Url::build('admin/widget.images/index',array('fodder'=>'slider_image')))->maxLength(5)->icon('images')->width('100%')->height('500px')->spin(0), + Form::formFrameImageOne('image','产品主图片(305*305px)'), + Form::formFrameImages('slider_image','产品轮播图(640*640px)'), Form::number('price','产品售价')->min(0)->col(8), Form::number('ot_price','产品市场价')->min(0)->col(8), Form::number('give_integral','赠送积分')->min(0)->precision(0)->col(8), @@ -175,16 +175,12 @@ class StoreProduct extends AuthController public function upload() { $res = Upload::image('file','store/product/'.date('Ymd')); - $thumbPath = Upload::thumb($res->dir); - //产品图片上传记录 - $fileInfo = $res->fileInfo->getinfo(); - SystemAttachment::attachmentAdd($res->fileInfo->getSaveName(),$fileInfo['size'],$fileInfo['type'],$res->dir,$thumbPath,1); - if($res->status == 200) - return Json::successful('图片上传成功!',['name'=>$res->fileInfo->getSaveName(),'url'=>Upload::pathToUrl($thumbPath)]); + SystemAttachment::attachmentAdd($res['name'],$res['size'],$res['type'],$res['dir'],$res['thumb_path'],1,$res['image_type'],$res['time']); + if(is_array($res)) + return Json::successful('图片上传成功!',['name'=>$res['name'],'url'=>Upload::pathToUrl($res['thumb_path'])]); else - return Json::fail($res->error); + return Json::fail($res); } - /** * 保存新建的资源 * @@ -275,8 +271,10 @@ class StoreProduct extends AuthController Form::input('store_info','产品简介',$product->getData('store_info'))->type('textarea'), Form::input('keyword','产品关键字',$product->getData('keyword'))->placeholder('多个用英文状态下的逗号隔开'), Form::input('unit_name','产品单位',$product->getData('unit_name')), - Form::frameImageOne('image','产品主图片(305*305px)',Url::build('admin/widget.images/index',array('fodder'=>'image')),$product->getData('image'))->icon('image')->width('100%')->height('500px'), - Form::frameImages('slider_image','产品轮播图(640*640px)',Url::build('admin/widget.images/index',array('fodder'=>'slider_image')),json_decode($product->getData('slider_image'),1) ? : [])->maxLength(5)->icon('images')->width('100%')->height('500px'), +// Form::frameImageOne('image','产品主图片(305*305px)',Url::build('admin/widget.images/index',array('fodder'=>'image')),$product->getData('image'))->icon('image')->width('80%')->height('500px'), + Form::formFrameImageOne('image','产品主图片(305*305px)',$product->getData('image')), +// Form::frameImages('slider_image','产品轮播图(640*640px)',Url::build('admin/widget.images/index',array('fodder'=>'slider_image')),json_decode($product->getData('slider_image'),1) ? : [])->maxLength(5)->icon('images')->width('945px')->height('600px'), + Form::formFrameImages('slider_image','产品轮播图(640*640px)',json_decode($product->getData('slider_image'),1) ? : []), Form::number('price','产品售价',$product->getData('price'))->min(0)->precision(2)->col(8), Form::number('ot_price','产品市场价',$product->getData('ot_price'))->min(0)->col(8), Form::number('give_integral','赠送积分',$product->getData('give_integral'))->min(0)->precision(0)->col(8), @@ -339,7 +337,7 @@ class StoreProduct extends AuthController if(!$data['store_name']) return Json::fail('请输入产品名称'); if(count($data['image'])<1) return Json::fail('请上传产品图片'); if(count($data['slider_image'])<1) return Json::fail('请上传产品轮播图'); - if(count($data['slider_image'])>5) return Json::fail('轮播图最多5张图'); + // if(count($data['slider_image'])>8) return Json::fail('轮播图最多5张图'); if($data['price'] == '' || $data['price'] < 0) return Json::fail('请输入产品售价'); if($data['ot_price'] == '' || $data['ot_price'] < 0) return Json::fail('请输入产品市场价'); if($data['stock'] == '' || $data['stock'] < 0) return Json::fail('请输入库存'); diff --git a/application/admin/controller/system/SystemAttachment.php b/application/admin/controller/system/SystemAttachment.php index cae82ff1..57296bc1 100755 --- a/application/admin/controller/system/SystemAttachment.php +++ b/application/admin/controller/system/SystemAttachment.php @@ -4,6 +4,7 @@ namespace app\admin\controller\system; use app\admin\model\system\SystemAttachment as SystemAttachmentModel; use app\admin\controller\AuthController; +use app\core\util\SystemConfigService; use service\UploadService as Upload; /** * 附件管理控制器 @@ -14,25 +15,27 @@ use service\UploadService as Upload; class SystemAttachment extends AuthController { + /** - * 编辑器上传图片 - * @return \think\response\Json + * TODO 编辑器上传图片 */ public function upload() { $res = Upload::image('upfile','editor/'.date('Ymd')); - //产品图片上传记录 - $fileInfo = $res->fileInfo->getinfo(); - $thumbPath = Upload::thumb($res->dir); - SystemAttachmentModel::attachmentAdd($res->fileInfo->getSaveName(),$fileInfo['size'],$fileInfo['type'],$res->dir,$thumbPath,0); - $info = array( - "originalName" => $fileInfo['name'], - "name" => $res->fileInfo->getSaveName(), - "url" => '.'.$res->dir, - "size" => $fileInfo['size'], - "type" => $fileInfo['type'], - "state" => "SUCCESS" - ); + if(is_array($res)){ + SystemAttachmentModel::attachmentAdd($res['name'],$res['size'],$res['type'],$res['dir'],$res['thumb_path'],0,$res['image_type'],$res['time']); + $info["originalName"] = $res['name']; + $info["name"] = $res['name']; + $info["url"] = $res['dir']; + $info["size"] = $res['size']; + $info["type"] = $res['type']; + $info["state"] = "SUCCESS"; + if(strstr($info['url'],'http') === false) $info['url'] = SystemConfigService::get('site_url').str_replace('\\','/',$res['dir']); + }else + $info = array( + "msg" => $res, + "state" => "ERROR" + ); echo json_encode($info); } } diff --git a/application/admin/controller/system/SystemDatabackup.php b/application/admin/controller/system/SystemDatabackup.php index 36ba5f71..023f7740 100644 --- a/application/admin/controller/system/SystemDatabackup.php +++ b/application/admin/controller/system/SystemDatabackup.php @@ -1,5 +1,6 @@ <?php namespace app\admin\controller\system; + use app\admin\controller\AuthController; use service\FormBuilder as Form; use think\Request; @@ -18,6 +19,7 @@ class SystemDatabackup extends AuthController protected $DB; public function _initialize() { + parent::_initialize(); $config = array( 'path' => '.'.PUBILC_PATH.'backup/data/', //数据库备份路径 diff --git a/application/admin/controller/ump/StoreBargain.php b/application/admin/controller/ump/StoreBargain.php index 5b5b0efe..4ad19248 100644 --- a/application/admin/controller/ump/StoreBargain.php +++ b/application/admin/controller/ump/StoreBargain.php @@ -94,14 +94,11 @@ class StoreBargain extends AuthController public function upload() { $res = Upload::image('file','store/bargain/'.date('Ymd')); - $thumbPath = Upload::thumb($res->dir); - //产品图片上传记录 - $fileInfo = $res->fileInfo->getinfo(); - SystemAttachment::attachmentAdd($res->fileInfo->getSaveName(),$fileInfo['size'],$fileInfo['type'],$res->dir,$thumbPath,3); - if($res->status == 200) - return Json::successful('图片上传成功!',['name'=>$res->fileInfo->getSaveName(),'url'=>Upload::pathToUrl($thumbPath)]); - else - return Json::fail($res->error); + if(is_array($res)){ + SystemAttachment::attachmentAdd($res['name'],$res['size'],$res['type'],$res['dir'],$res['thumb_path'],3,$res['image_type'],$res['time']); + return Json::successful('图片上传成功!',['name'=>$res['name'],'url'=>Upload::pathToUrl($res['thumb_path'])]); + }else + return Json::fail($res); } /** @@ -117,10 +114,10 @@ class StoreBargain extends AuthController $f[] = Form::input('store_name','砍价产品名称'); $f[] = Form::input('unit_name','单位')->placeholder('个、位'); $f[] = Form::dateTimeRange('section_time','活动时间'); - $f[] = Form::frameImageOne('image','产品主图片(305*305px)',Url::build('admin/widget.images/index',array('fodder'=>'image')))->icon('image'); - $f[] = Form::frameImages('images','产品轮播图(640*640px)',Url::build('admin/widget.images/index',array('fodder'=>'images')))->maxLength(5)->icon('images'); - $f[] = Form::number('price','原价')->min(0)->col(12); - $f[] = Form::number('min_price','砍价最低金额')->min(0); + $f[] = Form::formFrameImageOne('image','产品主图片(305*305px)'); + $f[] = Form::formFrameImages('images','产品轮播图(640*640px)'); + $f[] = Form::number('price','显示原价')->min(0)->col(12); + $f[] = Form::number('min_price','最低购买价')->min(0); $f[] = Form::number('bargain_max_price','单次砍价的最大金额')->min(0)->col(12); $f[] = Form::number('bargain_min_price','单次砍价的最小金额')->min(0)->col(12); $f[] = Form::number('cost','成本价')->min(0)->col(12); @@ -128,7 +125,7 @@ class StoreBargain extends AuthController $f[] = Form::number('stock','库存')->min(0)->col(12); $f[] = Form::number('sales','销量')->min(0)->col(12); $f[] = Form::number('sort','排序')->col(12); - $f[] = Form::number('num','单次购买的砍价产品数量')->col(12); + $f[] = Form::number('num','单次允许购买数量')->col(12); $f[] = Form::number('give_integral','赠送积分')->min(0)->col(12); $f[] = Form::number('postage','邮费')->min(0)->col(12); $f[] = Form::radio('is_postage','是否包邮',1)->options([['label'=>'是','value'=>1],['label'=>'否','value'=>0]])->col(12); @@ -156,10 +153,10 @@ class StoreBargain extends AuthController $f[] = Form::input('store_name','砍价产品名称',$product->getData('store_name')); $f[] = Form::input('unit_name','单位',$product->getData('unit_name'))->placeholder('个、位'); $f[] = Form::dateTimeRange('section_time','活动时间',$product->getData('start_time'),$product->getData('stop_time'));//->format("yyyy-MM-dd HH:mm:ss"); - $f[] = Form::frameImageOne('image','产品主图片(305*305px)',Url::build('admin/widget.images/index',array('fodder'=>'image')),$product->getData('image'))->icon('image'); - $f[] = Form::frameImages('images','产品轮播图(640*640px)',Url::build('admin/widget.images/index',array('fodder'=>'images')),json_decode($product->getData('images'),1))->maxLength(5)->icon('images'); - $f[] = Form::number('price','砍价金额',$product->getData('price'))->min(0)->col(12); - $f[] = Form::number('min_price','砍价最低金额',$product->getData('min_price'))->min(0)->col(12); + $f[] = Form::formFrameImageOne('image','产品主图片(305*305px)',$product->getData('image')); + $f[] = Form::formFrameImages('images','产品轮播图(640*640px)',json_decode($product->getData('images'),1)); + $f[] = Form::number('price','显示原价',$product->getData('price'))->min(0)->col(12); + $f[] = Form::number('min_price','最低购买价',$product->getData('min_price'))->min(0)->col(12); $f[] = Form::number('bargain_max_price','单次砍价的最大金额',$product->getData('bargain_max_price'))->min(0)->col(12); $f[] = Form::number('bargain_min_price','单次砍价的最小金额',$product->getData('bargain_min_price'))->min(0)->col(12); $f[] = Form::number('cost','成本价',$product->getData('cost'))->min(0)->col(12); @@ -167,7 +164,7 @@ class StoreBargain extends AuthController $f[] = Form::number('stock','库存',$product->getData('stock'))->min(0)->col(12); $f[] = Form::number('sales','销量',$product->getData('sales'))->min(0)->col(12); $f[] = Form::number('sort','排序',$product->getData('sort'))->col(12); - $f[] = Form::number('num','单次购买的砍价产品数量',$product->getData('num'))->col(12); + $f[] = Form::number('num','单次允许购买数量',$product->getData('num'))->col(12); $f[] = Form::number('give_integral','赠送积分',$product->getData('give_integral'))->min(0)->col(12); $f[] = Form::number('postage','邮费',$product->getData('postage'))->min(0)->col(12); $f[] = Form::radio('is_postage','是否包邮',$product->getData('is_postage'))->options([['label'=>'是','value'=>1],['label'=>'否','value'=>0]])->col(12); @@ -242,6 +239,7 @@ class StoreBargain extends AuthController else return JsonService::fail('修改失败'); } else{ + $data['add_time'] = time(); $res = StoreBargainModel::set($data); if($res) return JsonService::successful('添加成功'); else return JsonService::fail('添加成功'); @@ -261,8 +259,9 @@ class StoreBargain extends AuthController if(!$id) return Json::fail('数据不存在'); $product = StoreBargainModel::get($id); if(!$product) return Json::fail('数据不存在!'); + if($product['is_del']) return Json::fail('已删除!'); $data['is_del'] = 1; - if(StoreBargainModel::edit($data,$id) && StoreProduct::edit(['is_bargain'=>0],$product['product_id'])) + if(StoreBargainModel::edit($data,$id)) return Json::successful('删除成功!'); else return Json::fail(StoreBargainModel::getErrorInfo('删除失败,请稍候再试!')); @@ -311,8 +310,8 @@ class StoreBargain extends AuthController $f[] = Form::input('store_name','砍价产品名称',$product->getData('store_name')); $f[] = Form::input('unit_name','单位',$product->getData('unit_name'))->placeholder('个、位'); $f[] = Form::dateTimeRange('section_time','活动时间');//->format("yyyy-MM-dd HH:mm:ss"); - $f[] = Form::frameImageOne('image','产品主图片(305*305px)',Url::build('admin/widget.images/index',array('fodder'=>'image')),$product->getData('image'))->icon('image'); - $f[] = Form::frameImages('images','产品轮播图(640*640px)',Url::build('admin/widget.images/index',array('fodder'=>'images')),json_decode($product->getData('slider_image'),1))->maxLength(5)->icon('images'); + $f[] = Form::formFrameImageOne('image','产品主图片(305*305px)',$product->getData('image')); + $f[] = Form::formFrameImages('images','产品轮播图(640*640px)',json_decode($product->getData('slider_image'),1)); $f[] = Form::number('price','砍价金额')->min(0)->col(12); $f[] = Form::number('min_price','砍价最低金额',0)->min(0)->col(12); $f[] = Form::number('bargain_max_price','单次砍价的最大金额',10)->min(0)->col(12); diff --git a/application/admin/controller/ump/StoreCombination.php b/application/admin/controller/ump/StoreCombination.php index 414aa478..585ab101 100644 --- a/application/admin/controller/ump/StoreCombination.php +++ b/application/admin/controller/ump/StoreCombination.php @@ -84,10 +84,10 @@ class StoreCombination extends AuthController $f[] = Form::input('info','拼团简介',$product->getData('store_info'))->type('textarea'); $f[] = Form::input('unit_name','单位',$product->getData('unit_name'))->placeholder('个、位'); $f[] = Form::dateTimeRange('section_time','拼团时间'); - $f[] = Form::frameImageOne('image','产品主图片(305*305px)',Url::build('admin/widget.images/index',array('fodder'=>'image')),$product->getData('image'))->icon('image'); - $f[] = Form::frameImages('images','产品轮播图(640*640px)',Url::build('admin/widget.images/index',array('fodder'=>'images')),json_decode($product->getData('slider_image')))->maxLength(5)->icon('images'); + $f[] = Form::frameImageOne('image','产品主图片(305*305px)',Url::build('admin/widget.images/index',array('fodder'=>'image')),$product->getData('image'))->icon('image')->width('100%')->height('500px'); + $f[] = Form::frameImages('images','产品轮播图(640*640px)',Url::build('admin/widget.images/index',array('fodder'=>'images')),json_decode($product->getData('slider_image')))->maxLength(5)->icon('images')->width('100%')->height('500px'); $f[] = Form::number('price','拼团价')->min(0)->col(12); - $f[] = Form::number('people','拼团人数')->min(3)->col(12); + $f[] = Form::number('people','拼团人数')->min(2)->col(12); $f[] = Form::number('stock','库存',$product->getData('stock'))->min(0)->precision(0)->col(12); $f[] = Form::number('sales','销量',$product->getData('sales'))->min(0)->precision(0)->col(12); $f[] = Form::number('sort','排序')->col(12); @@ -119,10 +119,10 @@ class StoreCombination extends AuthController $f[] = Form::input('info','拼团简介')->type('textarea'); $f[] = Form::input('unit_name','单位')->placeholder('个、位'); $f[] = Form::dateTimeRange('section_time','拼团时间'); - $f[] = Form::frameImageOne('image','产品主图片(305*305px)',Url::build('admin/widget.images/index',array('fodder'=>'image')))->icon('image'); - $f[] = Form::frameImages('images','产品轮播图(640*640px)',Url::build('admin/widget.images/index',array('fodder'=>'images')))->maxLength(5)->icon('images'); + $f[] = Form::formFrameImageOne('image','产品主图片(305*305px)'); + $f[] = Form::formFrameImages('images','产品轮播图(640*640px)'); $f[] = Form::number('price','拼团价')->min(0)->col(12); - $f[] = Form::number('people','拼团人数')->min(3)->col(12); + $f[] = Form::number('people','拼团人数')->min(2)->col(12); $f[] = Form::number('stock','库存')->min(0)->precision(0)->col(12); $f[] = Form::number('sales','销量')->min(0)->precision(0)->col(12); $f[] = Form::number('sort','排序')->col(12); @@ -169,10 +169,8 @@ class StoreCombination extends AuthController if(count($data['section_time'])<1) return Json::fail('请选择活动时间'); if($data['stock'] == '' || $data['stock'] < 0) return Json::fail('请输入库存'); $data['images'] = json_encode($data['images']); - $data['add_time'] = time(); $data['start_time'] = strtotime($data['section_time'][0]); $data['stop_time'] = strtotime($data['section_time'][1]); - $data['description'] = ''; unset($data['section_time']); if($id){ $product = StoreCombinationModel::get($id); @@ -181,6 +179,8 @@ class StoreCombination extends AuthController StoreCombinationModel::edit($data,$id); return Json::successful('编辑成功!'); }else{ + $data['add_time'] = time(); + $data['description'] = ''; StoreCombinationModel::set($data); return Json::successful('添加拼团成功!'); } @@ -201,11 +201,11 @@ class StoreCombination extends AuthController $f = array(); $f[] = Form::hidden('product_id',$product->getData('product_id')); $f[] = Form::input('title','拼团名称',$product->getData('title')); - $f[] = Form::input('info','拼团简介',$product->getData('title'))->type('textarea'); - $f[] = Form::input('unit_name','单位',$product->getData('title'))->placeholder('个、位'); + $f[] = Form::input('info','拼团简介',$product->getData('info'))->type('textarea'); + $f[] = Form::input('unit_name','单位',$product->getData('unit_name'))->placeholder('个、位'); $f[] = Form::dateTimeRange('section_time','拼团时间',$product->getData('start_time'),$product->getData('stop_time')); - $f[] = Form::frameImageOne('image','产品主图片(305*305px)',Url::build('admin/widget.images/index',array('fodder'=>'image')),$product->getData('image'))->icon('image'); - $f[] = Form::frameImages('images','产品轮播图(640*640px)',Url::build('admin/widget.images/index',array('fodder'=>'images')),json_decode($product->getData('images')))->maxLength(5)->icon('images'); + $f[] = Form::frameImageOne('image','产品主图片(305*305px)',Url::build('admin/widget.images/index',array('fodder'=>'image')),$product->getData('image'))->icon('image')->width('100%')->height('500px'); + $f[] = Form::frameImages('images','产品轮播图(640*640px)',Url::build('admin/widget.images/index',array('fodder'=>'images')),json_decode($product->getData('images')))->maxLength(5)->icon('images')->width('100%')->height('500px'); $f[] = Form::number('price','拼团价',$product->getData('price'))->min(0)->col(12); $f[] = Form::number('people','拼团人数',$product->getData('people'))->min(2)->col(12); $f[] = Form::number('stock','库存',$product->getData('stock'))->min(0)->precision(0)->col(12); @@ -234,6 +234,9 @@ class StoreCombination extends AuthController public function delete($id) { if(!$id) return $this->failed('数据不存在'); + $product = StoreCombinationModel::get($id); + if(!$product) return Json::fail('数据不存在!'); + if($product['is_del']) return Json::fail('已删除!'); $data['is_del'] = 1; if(!StoreCombinationModel::edit($data,$id)) return Json::fail(StoreCombinationModel::getErrorInfo('删除失败,请稍候再试!')); @@ -346,14 +349,11 @@ class StoreCombination extends AuthController public function upload() { $res = Upload::image('file','store/product/'.date('Ymd')); - $thumbPath = Upload::thumb($res->dir); - //产品图片上传记录 - $fileInfo = $res->fileInfo->getinfo(); - SystemAttachment::attachmentAdd($res->fileInfo->getSaveName(),$fileInfo['size'],$fileInfo['type'],$res->dir,$thumbPath,2); - if($res->status == 200) - return Json::successful('图片上传成功!',['name'=>$res->fileInfo->getSaveName(),'url'=>Upload::pathToUrl($thumbPath)]); - else - return Json::fail($res->error); + if(is_array($res)){ + SystemAttachment::attachmentAdd($res['name'],$res['size'],$res['type'],$res['dir'],$res['thumb_path'],2,$res['image_type'],$res['time']); + return Json::successful('图片上传成功!',['name'=>$res['name'],'url'=>Upload::pathToUrl($res['thumb_path'])]); + }else + return Json::fail($res); } /**拼团列表 diff --git a/application/admin/controller/ump/StoreSeckill.php b/application/admin/controller/ump/StoreSeckill.php index 46158f99..cfacb66d 100644 --- a/application/admin/controller/ump/StoreSeckill.php +++ b/application/admin/controller/ump/StoreSeckill.php @@ -79,8 +79,8 @@ class StoreSeckill extends AuthController $f[] = Form::input('info','秒杀活动简介')->type('textarea'); $f[] = Form::input('unit_name','单位')->placeholder('个、位'); $f[] = Form::dateTimeRange('section_time','活动时间'); - $f[] = Form::frameImageOne('image','产品主图片(305*305px)',Url::build('admin/widget.images/index',array('fodder'=>'image')))->icon('image'); - $f[] = Form::frameImages('images','产品轮播图(640*640px)',Url::build('admin/widget.images/index',array('fodder'=>'images')))->maxLength(5)->icon('images'); + $f[] = Form::formFrameImageOne('image','产品主图片(305*305px)'); + $f[] = Form::formFrameImages('images','产品轮播图(640*640px)'); $f[] = Form::number('price','秒杀价')->min(0)->col(12); $f[] = Form::number('ot_price','原价')->min(0)->col(12); $f[] = Form::number('cost','成本价')->min(0)->col(12); @@ -141,7 +141,6 @@ class StoreSeckill extends AuthController if($data['ot_price'] == '' || $data['ot_price'] < 0) return Json::fail('请输入产品原售价'); if($data['cost'] == '' || $data['cost'] < 0) return Json::fail('请输入产品成本价'); if($data['stock'] == '' || $data['stock'] < 0) return Json::fail('请输入库存'); - $data['add_time'] = time(); if($data['num']<1) return Json::fail('请输入单次秒杀个数'); if($id){ $product = StoreSeckillModel::get($id); @@ -149,6 +148,7 @@ class StoreSeckill extends AuthController StoreSeckillModel::edit($data,$id); return Json::successful('编辑成功!'); }else{ + $data['add_time'] = time(); StoreSeckillModel::set($data); return Json::successful('添加成功!'); } @@ -168,8 +168,8 @@ class StoreSeckill extends AuthController $f[] = Form::input('info','秒杀活动简介',$product->getData('store_info'))->type('textarea'); $f[] = Form::input('unit_name','单位',$product->getData('unit_name'))->placeholder('个、位'); $f[] = Form::dateTimeRange('section_time','活动时间'); - $f[] = Form::frameImageOne('image','产品主图片(305*305px)',Url::build('admin/widget.images/index',array('fodder'=>'image')),$product->getData('image'))->icon('image'); - $f[] = Form::frameImages('images','产品轮播图(640*640px)',Url::build('admin/widget.images/index',array('fodder'=>'images')),json_decode($product->getData('slider_image')))->maxLength(5)->icon('images'); + $f[] = Form::frameImageOne('image','产品主图片(305*305px)',Url::build('admin/widget.images/index',array('fodder'=>'image')),$product->getData('image'))->icon('image')->width('100%')->height('500px'); + $f[] = Form::frameImages('images','产品轮播图(640*640px)',Url::build('admin/widget.images/index',array('fodder'=>'images')),json_decode($product->getData('slider_image')))->maxLength(5)->icon('images')->width('100%')->height('500px'); $f[] = Form::number('price','秒杀价')->min(0)->col(12); $f[] = Form::number('ot_price','原价',$product->getData('price'))->min(0)->col(12); $f[] = Form::number('cost','成本价',$product->getData('cost'))->min(0)->col(12); @@ -193,16 +193,12 @@ class StoreSeckill extends AuthController */ public function upload() { - $res = Upload::image('file','store/seckill/'.date('Ymd')); - $thumbPath = Upload::thumb($res->dir); - //产品图片上传记录 - $fileInfo = $res->fileInfo->getinfo(); - SystemAttachment::attachmentAdd($res->fileInfo->getSaveName(),$fileInfo['size'],$fileInfo['type'],$res->dir,$thumbPath,4); - - if($res->status == 200) - return Json::successful('图片上传成功!',['name'=>$res->fileInfo->getSaveName(),'url'=>Upload::pathToUrl($thumbPath)]); - else - return Json::fail($res->error); + $res = Upload::image('file','store/product/'.date('Ymd')); + if(is_array($res)){ + SystemAttachment::attachmentAdd($res['name'],$res['size'],$res['type'],$res['dir'],$res['thumb_path'],4,$res['image_type'],$res['time']); + return Json::successful('图片上传成功!',['name'=>$res['name'],'url'=>Upload::pathToUrl($res['thumb_path'])]); + }else + return Json::fail($res); } @@ -223,8 +219,8 @@ class StoreSeckill extends AuthController $f[] = Form::input('info','秒杀活动简介',$product->getData('info'))->type('textarea'); $f[] = Form::input('unit_name','单位',$product->getData('unit_name'))->placeholder('个、位'); $f[] = Form::dateTimeRange('section_time','活动时间',$product->getData('start_time'),$product->getData('stop_time')); - $f[] = Form::frameImageOne('image','产品主图片(305*305px)',Url::build('admin/widget.images/index',array('fodder'=>'image')),$product->getData('image'))->icon('image'); - $f[] = Form::frameImages('images','产品轮播图(640*640px)',Url::build('admin/widget.images/index',array('fodder'=>'images')),json_decode($product->getData('images')))->maxLength(5)->icon('images'); + $f[] = Form::frameImageOne('image','产品主图片(305*305px)',Url::build('admin/widget.images/index',array('fodder'=>'image')),$product->getData('image'))->icon('image')->width('100%')->height('500px'); + $f[] = Form::frameImages('images','产品轮播图(640*640px)',Url::build('admin/widget.images/index',array('fodder'=>'images')),json_decode($product->getData('images')))->maxLength(5)->icon('images')->width('100%')->height('500px'); $f[] = Form::number('price','秒杀价',$product->getData('price'))->min(0)->col(12); $f[] = Form::number('ot_price','原价',$product->getData('ot_price'))->min(0)->col(12); $f[] = Form::number('cost','成本价',$product->getData('cost'))->min(0)->col(12); @@ -251,6 +247,9 @@ class StoreSeckill extends AuthController public function delete($id) { if(!$id) return $this->failed('数据不存在'); + $product = StoreSeckillModel::get($id); + if(!$product) return Json::fail('数据不存在!'); + if($product['is_del']) return Json::fail('已删除!'); $data['is_del'] = 1; if(!StoreSeckillModel::edit($data,$id)) return Json::fail(StoreSeckillModel::getErrorInfo('删除失败,请稍候再试!')); diff --git a/application/admin/controller/user/User.php b/application/admin/controller/user/User.php index 23194900..2c19de81 100644 --- a/application/admin/controller/user/User.php +++ b/application/admin/controller/user/User.php @@ -1 +1,726 @@ -<?php namespace app\admin\controller\user; use app\admin\controller\AuthController; use service\FormBuilder as Form; use traits\CurdControllerTrait; use service\UtilService as Util; use service\JsonService as Json; use think\Request; use think\Url; use app\admin\model\user\User as UserModel; use app\wap\model\user\UserBill; use app\admin\model\user\UserBill AS UserBillAdmin; use basic\ModelBasic; use service\HookService; use behavior\wap\UserBehavior; use app\admin\model\store\StoreVisit; use app\admin\model\wechat\WechatMessage; use app\admin\model\order\StoreOrder; use app\admin\model\store\StoreCouponUser; /** * 用户管理控制器 * Class User * @package app\admin\controller\user */ class User extends AuthController { use CurdControllerTrait; /** * 显示资源列表 * * @return \think\Response */ public function index(){ $this->assign('count_user',UserModel::getcount()); return $this->fetch(); } /** * 修改user表状态 * * @return json */ public function set_status($status='',$uid=0,$is_echo=0){ if($is_echo==0) { if ($status == '' || $uid == 0) return Json::fail('参数错误'); UserModel::where(['uid' => $uid])->update(['status' => $status]); }else{ $uids=Util::postMore([ ['uids',[]] ]); UserModel::destrSyatus($uids['uids'],$status); } return Json::successful($status==0 ? '禁用成功':'解禁成功'); } /** * 获取user表 * * @return json */ public function get_user_list(){ $where=Util::getMore([ ['page',1], ['limit',20], ['nickname',''], ['status',''], ['pay_count',''], ['is_promoter',''], ['order',''], ['data',''], ['user_type',''], ['country',''], ['province',''], ['city',''], ['user_time_type',''], ['user_time',''], ['sex',''], ]); return Json::successlayui(UserModel::getUserList($where)); } /** * 编辑模板消息 * @param $id * @return mixed|\think\response\Json|void */ public function edit($uid) { if(!$uid) return $this->failed('数据不存在'); $user = UserModel::get($uid); if(!$user) return Json::fail('数据不存在!'); $f = array(); $f[] = Form::input('uid','用户编号',$user->getData('uid'))->disabled(1); $f[] = Form::input('nickname','用户姓名',$user->getData('nickname')); $f[] = Form::radio('money_status','修改余额',1)->options([['value'=>1,'label'=>'增加'],['value'=>2,'label'=>'减少']])->col(12); $f[] = Form::number('money','余额')->min(0)->col(12); $f[] = Form::radio('integration_status','修改积分',1)->options([['value'=>1,'label'=>'增加'],['value'=>2,'label'=>'减少']])->col(12); $f[] = Form::number('integration','积分')->min(0)->col(12); $f[] = Form::radio('status','状态',$user->getData('status'))->options([['value'=>1,'label'=>'开启'],['value'=>0,'label'=>'锁定']]); $f[] = Form::radio('is_promoter','推广员',$user->getData('is_promoter'))->options([['value'=>1,'label'=>'开启'],['value'=>0,'label'=>'关闭']]); $form = Form::make_post_form('添加用户通知',$f,Url::build('update',array('id'=>$uid))); $this->assign(compact('form')); return $this->fetch('public/form-builder'); } public function update(Request $request, $uid) { $data = Util::postMore([ ['money_status',0], ['is_promoter',1], ['money',0], ['integration_status',0], ['integration',0], ['status',0], ],$request); if(!$uid) return $this->failed('数据不存在'); $user = UserModel::get($uid); if(!$user) return Json::fail('数据不存在!'); ModelBasic::beginTrans(); $res1 = false; $res2 = false; $edit = array(); if($data['money_status'] && $data['money']){//余额增加或者减少 if($data['money_status'] == 1){//增加 $edit['now_money'] = bcadd($user['now_money'],$data['money'],2); $res1 = UserBill::income('系统增加余额',$user['uid'],'now_money','system_add',$data['money'],$this->adminId,$user['now_money'],'系统增加了'.floatval($data['money']).'余额'); try{ HookService::listen('admin_add_money',$user,$data['money'],false,UserBehavior::class); }catch (\Exception $e){ ModelBasic::rollbackTrans(); return Json::fail($e->getMessage()); } }else if($data['money_status'] == 2){//减少 $edit['now_money'] = bcsub($user['now_money'],$data['money'],2); $res1 = UserBill::expend('系统减少余额',$user['uid'],'now_money','system_sub',$data['money'],$this->adminId,$user['now_money'],'系统扣除了'.floatval($data['money']).'余额'); try{ HookService::listen('admin_sub_money',$user,$data['money'],false,UserBehavior::class); }catch (\Exception $e){ ModelBasic::rollbackTrans(); return Json::fail($e->getMessage()); } } }else{ $res1 = true; } if($data['integration_status'] && $data['integration']){//积分增加或者减少 if($data['integration_status'] == 1){//增加 $edit['integral'] = bcadd($user['integral'],$data['integration'],2); $res2 = UserBill::income('系统增加积分',$user['uid'],'integral','system_add',$data['integration'],$this->adminId,$user['integral'],'系统增加了'.floatval($data['integration']).'积分'); try{ HookService::listen('admin_add_integral',$user,$data['integration'],false,UserBehavior::class); }catch (\Exception $e){ ModelBasic::rollbackTrans(); return Json::fail($e->getMessage()); } }else if($data['integration_status'] == 2){//减少 $edit['integral'] = bcsub($user['integral'],$data['integration'],2); $res2 = UserBill::expend('系统减少积分',$user['uid'],'integral','system_sub',$data['integration'],$this->adminId,$user['integral'],'系统扣除了'.floatval($data['integration']).'积分'); try{ HookService::listen('admin_sub_integral',$user,$data['integration'],false,UserBehavior::class); }catch (\Exception $e){ ModelBasic::rollbackTrans(); return Json::fail($e->getMessage()); } } }else{ $res2 = true; } $edit['status'] = $data['status']; $edit['is_promoter'] = $data['is_promoter']; if($edit) $res3 = UserModel::edit($edit,$uid); else $res3 = true; if($res1 && $res2 && $res3) $res =true; else $res = false; ModelBasic::checkTrans($res); if($res) return Json::successful('修改成功!'); else return Json::fail('修改失败'); } /** * 用户图表 * @return mixed */ public function user_analysis(){ $where = Util::getMore([ ['nickname',''], ['status',''], ['is_promoter',''], ['date',''], ['user_type',''], ['export',0] ],$this->request); $user_count=UserModel::consume($where,'',true); //头部信息 $header=[ [ 'name'=>'新增用户', 'class'=>'fa-line-chart', 'value'=>$user_count, 'color'=>'red' ], [ 'name'=>'用户留存', 'class'=>'fa-area-chart', 'value'=>$this->gethreaderValue(UserModel::consume($where,'',true),$where).'%', 'color'=>'lazur' ], [ 'name'=>'新增用户总消费', 'class'=>'fa-bar-chart', 'value'=>'¥'.UserModel::consume($where), 'color'=>'navy' ], [ 'name'=>'用户活跃度', 'class'=>'fa-pie-chart', 'value'=>$this->gethreaderValue(UserModel::consume($where,'',true)).'%', 'color'=>'yellow' ], ]; $name=['新增用户','用户消费']; $dates=$this->get_user_index($where,$name); $user_index=['name'=>json_encode($name), 'date'=>json_encode($dates['time']), 'series'=>json_encode($dates['series'])]; //用户浏览分析 $view=StoreVisit::getVisit($where['date'],['','warning','info','danger']); $view_v1=WechatMessage::getViweList($where['date'],['','warning','info','danger']); $view=array_merge($view,$view_v1); $view_v2=[]; foreach ($view as $val){ $view_v2['color'][]='#'.rand(100000,339899); $view_v2['name'][]=$val['name']; $view_v2['value'][]=$val['value']; } $view=$view_v2; //消费会员排行用户分析 $user_null=UserModel::getUserSpend($where['date']); //消费数据 $now_number=UserModel::getUserSpend($where['date'],true); list($paren_number,$title)=UserModel::getPostNumber($where['date']); if($paren_number==0) { $rightTitle=[ 'number'=>$now_number>0?$now_number:0, 'icon'=>'fa-level-up', 'title'=>$title ]; }else{ $number=(float)bcsub($now_number,$paren_number,4); if($now_number==0){ $icon='fa-level-down'; }else{ $icon=$now_number>$paren_number?'fa-level-up':'fa-level-down'; } $rightTitle=['number'=>$number, 'icon'=>$icon, 'title'=>$title]; } unset($title,$paren_number,$now_number); list($paren_user_count,$title)=UserModel::getPostNumber($where['date'],true,'add_time',''); if($paren_user_count==0){ $count=$user_count==0?0:$user_count; $icon=$user_count==0?'fa-level-down':'fa-level-up'; }else{ $count=(float)bcsub($user_count,$paren_user_count,4); $icon=$user_count<$paren_user_count?'fa-level-down':'fa-level-up'; } $leftTitle=[ 'count'=>$count, 'icon'=>$icon, 'title'=>$title ]; unset($count,$icon,$title); $consume=[ 'title'=>'消费金额为¥'.UserModel::consume($where), 'series'=>UserModel::consume($where,'xiaofei'), 'rightTitle'=>$rightTitle, 'leftTitle'=>$leftTitle, ]; $form=UserModel::consume($where,'form'); $grouping=UserModel::consume($where,'grouping'); $this->assign(compact('header','user_index','view','user_null','consume','form','grouping','where')); return $this->fetch(); } public function gethreaderValue($chart,$where=[]){ if($where){ switch($where['date']){ case null:case 'today':case 'week':case 'year': if($where['date']==null){ $where['date']='month'; } $sum_user=UserModel::whereTime('add_time',$where['date'])->count(); if($sum_user==0) return 0; $counts=bcdiv($chart,$sum_user,4)*100; return $counts; break; case 'quarter': $quarter=UserModel::getMonth('n'); $quarter[0]=strtotime($quarter[0]); $quarter[1]=strtotime($quarter[1]); $sum_user=UserModel::where('add_time','between',$quarter)->count(); if($sum_user==0) return 0; $counts=bcdiv($chart,$sum_user,4)*100; return $counts; default: //自定义时间 $quarter=explode('-',$where['date']); $quarter[0]=strtotime($quarter[0]); $quarter[1]=strtotime($quarter[1]); $sum_user=UserModel::where('add_time','between',$quarter)->count(); if($sum_user==0) return 0; $counts=bcdiv($chart,$sum_user,4)*100; return $counts; break; } }else{ $num=UserModel::count(); $chart=$num!=0?bcdiv($chart,$num,5)*100:0; return $chart; } } public function get_user_index($where,$name){ switch ($where['date']){ case null: $days = date("t",strtotime(date('Y-m',time()))); $dates=[]; $series=[]; $times_list=[]; foreach ($name as $key=>$val){ for($i=1;$i<=$days;$i++){ if(!in_array($i.'号',$times_list)){ array_push($times_list,$i.'号'); } $time=$this->gettime(date("Y-m",time()).'-'.$i); if($key==0){ $dates['data'][]=UserModel::where('add_time','between',$time)->count(); }else if($key==1){ $dates['data'][]=UserModel::consume(true,$time); } } $dates['name']=$val; $dates['type']='line'; $series[]=$dates; unset($dates); } return ['time'=>$times_list,'series'=>$series]; case 'today': $dates=[]; $series=[]; $times_list=[]; foreach ($name as $key=>$val){ for($i=0;$i<=24;$i++){ $strtitle=$i.'点'; if(!in_array($strtitle,$times_list)){ array_push($times_list,$strtitle); } $time=$this->gettime(date("Y-m-d ",time()).$i); if($key==0){ $dates['data'][]=UserModel::where('add_time','between',$time)->count(); }else if($key==1){ $dates['data'][]=UserModel::consume(true,$time); } } $dates['name']=$val; $dates['type']='line'; $series[]=$dates; unset($dates); } return ['time'=>$times_list,'series'=>$series]; case "week": $dates=[]; $series=[]; $times_list=[]; foreach ($name as $key=>$val){ for($i=0;$i<=6;$i++){ if(!in_array('星期'.($i+1),$times_list)){ array_push($times_list,'星期'.($i+1)); } $time=UserModel::getMonth('h',$i); if($key==0){ $dates['data'][]=UserModel::where('add_time','between',[strtotime($time[0]),strtotime($time[1])])->count(); }else if($key==1){ $dates['data'][]=UserModel::consume(true,[strtotime($time[0]),strtotime($time[1])]); } } $dates['name']=$val; $dates['type']='line'; $series[]=$dates; unset($dates); } return ['time'=>$times_list,'series'=>$series]; case 'year': $dates=[]; $series=[]; $times_list=[]; $year=date('Y'); foreach ($name as $key=>$val){ for($i=1;$i<=12;$i++){ if(!in_array($i.'月',$times_list)){ array_push($times_list,$i.'月'); } $t = strtotime($year.'-'.$i.'-01'); $arr= explode('/',date('Y-m-01',$t).'/'.date('Y-m-',$t).date('t',$t)); if($key==0){ $dates['data'][]=UserModel::where('add_time','between',[strtotime($arr[0]),strtotime($arr[1])])->count(); }else if($key==1){ $dates['data'][]=UserModel::consume(true,[strtotime($arr[0]),strtotime($arr[1])]); } } $dates['name']=$val; $dates['type']='line'; $series[]=$dates; unset($dates); } return ['time'=>$times_list,'series'=>$series]; case 'quarter': $dates=[]; $series=[]; $times_list=[]; foreach ($name as $key=>$val){ for($i=1;$i<=4;$i++){ $arr=$this->gettime('quarter',$i); if(!in_array(implode('--',$arr).'季度',$times_list)){ array_push($times_list,implode('--',$arr).'季度'); } if($key==0){ $dates['data'][]=UserModel::where('add_time','between',[strtotime($arr[0]),strtotime($arr[1])])->count(); }else if($key==1){ $dates['data'][]=UserModel::consume(true,[strtotime($arr[0]),strtotime($arr[1])]); } } $dates['name']=$val; $dates['type']='line'; $series[]=$dates; unset($dates); } return ['time'=>$times_list,'series'=>$series]; default: $list=UserModel::consume($where,'default'); $dates=[]; $series=[]; $times_list=[]; foreach ($name as $k=>$v){ foreach ($list as $val){ $date=$val['add_time']; if(!in_array($date,$times_list)){ array_push($times_list,$date); } if($k==0){ $dates['data'][]=$val['num']; }else if($k==1){ $dates['data'][]=UserBill::where(['uid'=>$val['uid'],'type'=>'pay_product'])->sum('number'); } } $dates['name']=$v; $dates['type']='line'; $series[]=$dates; unset($dates); } return ['time'=>$times_list,'series'=>$series]; } } public function gettime($time='',$season=''){ if(!empty($time) && empty($season)){ $timestamp0 = strtotime($time); $timestamp24 =strtotime($time)+86400; return [$timestamp0,$timestamp24]; }else if(!empty($time) && !empty($season)){ $firstday=date('Y-m-01',mktime(0,0,0,($season - 1) *3 +1,1,date('Y'))); $lastday=date('Y-m-t',mktime(0,0,0,$season * 3,1,date('Y'))); return [$firstday,$lastday]; } } /** * 会员等级首页 */ public function group(){ return $this->fetch(); } /** * 会员详情 */ public function see($uid=''){ $this->assign([ 'uid'=>$uid, 'userinfo'=>UserModel::getUserDetailed($uid), 'is_layui'=>true, 'headerList'=>UserModel::getHeaderList($uid), 'count'=>UserModel::getCountInfo($uid), ]); return $this->fetch(); } /* * 获取某个用户的推广下线 * */ public function getSpreadList($uid,$page=1,$limit=20){ return Json::successful(UserModel::getSpreadList($uid,(int)$page,(int)$limit)); } /** * 获取某用户的订单列表 */ public function getOneorderList($uid,$page=1,$limit=20){ return Json::successful(StoreOrder::getOneorderList(compact('uid','page','limit'))); } /** * 获取某用户的积分列表 */ public function getOneIntegralList($uid,$page=1,$limit=20){ return Json::successful(UserBillAdmin::getOneIntegralList(compact('uid','page','limit'))); } /** * 获取某用户的积分列表 */ public function getOneSignList($uid,$page=1,$limit=20){ return Json::successful(UserBillAdmin::getOneSignList(compact('uid','page','limit'))); } /** * 获取某用户的持有优惠劵 */ public function getOneCouponsList($uid,$page=1,$limit=20){ return Json::successful(StoreCouponUser::getOneCouponsList(compact('uid','page','limit'))); } /** * 获取某用户的余额变动记录 */ public function getOneBalanceChangList($uid,$page=1,$limit=20){ return Json::successful(UserBillAdmin::getOneBalanceChangList(compact('uid','page','limit'))); } } \ No newline at end of file +<?php +/** + * + * @author: xaboy<365615158@qq.com> + * @day: 2017/11/11 + */ +namespace app\admin\controller\user; + +use app\admin\controller\AuthController; +use app\admin\model\system\SystemUserLevel; +use service\FormBuilder as Form; +use service\JsonService; +use think\Db; +use traits\CurdControllerTrait; +use service\UtilService as Util; +use service\JsonService as Json; +use think\Request; +use think\Url; +use app\admin\model\user\User as UserModel; +use app\admin\model\user\UserBill AS UserBillAdmin; +use basic\ModelBasic; +use service\HookService; +use app\admin\model\user\UserLevel; +use behavior\user\UserBehavior; +use app\admin\model\store\StoreVisit; +use app\admin\model\wechat\WechatMessage; +use app\admin\model\order\StoreOrder; +use app\admin\model\store\StoreCouponUser; + +/** + * 用户管理控制器 + * Class User + * @package app\admin\controller\user + */ +class User extends AuthController +{ + use CurdControllerTrait; + /** + * 显示资源列表 + * + * @return \think\Response + */ + public function index(){ + $this->assign('count_user',UserModel::getcount()); + $this->assign('level_list',SystemUserLevel::where(['is_show'=>1,'is_del'=>0])->field(['id','name'])->select()); + return $this->fetch(); + } + + /* + * 赠送会员等级 + * @paran int $uid + * */ + public function give_level($uid=0) + { + if(!$uid) return $this->failed('缺少参数'); + $level=\app\core\model\user\UserLevel::getUserLevel($uid); + //获取当前会员等级 + if($level===false) + $grade=0; + else + $grade=\app\core\model\user\UserLevel::getUserLevelInfo($level,'grade'); + //查询高于当前会员的所有会员等级 + $systemLevelList=SystemUserLevel::where('grade','>',$grade)->where(['is_show'=>1,'is_del'=>0])->field(['name','id'])->select(); + $field[]=Form::select('level_id','会员等级')->setOptions(function() use($systemLevelList) { + $menus=[]; + foreach ($systemLevelList as $menu){ + $menus[] = ['value'=>$menu['id'],'label'=>$menu['name']]; + } + return $menus; + })->filterable(1); + $form = Form::make_post_form('赠送会员',$field,Url::build('save_give_level',['uid'=>$uid]),2); + $this->assign(compact('form')); + return $this->fetch('public/form-builder'); + } + + /* + * 赠送会员等级 + * @paran int $uid + * @return json + * */ + public function save_give_level($uid=0) + { + if(!$uid) return JsonService::fail('缺少参数'); + list($level_id)=Util::postMore([ + ['level_id',0], + ],$this->request,true); + //查询当前选择的会员等级 + $systemLevel=SystemUserLevel::where(['is_show'=>1,'is_del'=>0,'id'=>$level_id])->find(); + if(!$systemLevel) return JsonService::fail('您选择赠送的会员等级不存在!'); + //检查是否拥有此会员等级 + $level=UserLevel::where(['uid'=>$uid,'level_id'=>$level_id,'is_del'=>0])->field('valid_time,is_forever')->find(); + if($level) if(!$level['is_forever'] && time() < $level['valid_time']) return JsonService::fail('此用户已有该会员等级,无法再次赠送'); + //设置会员过期时间 + $add_valid_time=(int)$systemLevel->valid_date*86400; + UserModel::commitTrans(); + try{ + //保存会员信息 + $res=UserLevel::set([ + 'is_forever'=>$systemLevel->is_forever, + 'status'=>1, + 'is_del'=>0, + 'grade'=>$systemLevel->grade, + 'uid'=>$uid, + 'add_time'=>time(), + 'level_id'=>$level_id, + 'discount'=>$systemLevel->discount, + 'valid_time'=>$systemLevel->discount ? $add_valid_time : 0, + 'mark'=>'尊敬的用户【'.UserModel::where('uid',$uid)->value('nickname').'】在'.date('Y-m-d H:i:s',time()).'赠送会员等级成为'.$systemLevel['name'].'会员', + ]); + //提取等级任务并记录完成情况 + $levelIds=[$level_id]; + $lowGradeLevelIds=SystemUserLevel::where('grade','<',$systemLevel->grade)->where(['is_show'=>1,'is_del'=>0])->column('id'); + if(count($lowGradeLevelIds)) $levelIds=array_merge($levelIds,$lowGradeLevelIds); + $taskIds=Db::name('system_user_task')->where('level_id','in',$levelIds)->column('id'); + $inserValue=[]; + foreach ($taskIds as $id){ + $inserValue[]=['uid'=>$uid,'task_id'=>$id,'status'=>1,'add_time'=>time()]; + } + $res=$res && Db::name('user_task_finish')->insertAll($inserValue); + if($res){ + UserModel::commitTrans(); + return JsonService::successful('赠送成功'); + }else{ + UserModel::rollbackTrans(); + return JsonService::successful('赠送失败'); + } + }catch (\Exception $e){ + UserModel::rollbackTrans(); + return JsonService::fail('赠送失败'); + } + } + /* + * 清除会员等级 + * @param int $uid + * @return json + * */ + public function del_level($uid=0) + { + if(!$uid) return JsonService::fail('缺少参数'); + if(UserLevel::cleanUpLevel($uid)) + return JsonService::successful('清除成功'); + else + return JsonService::fail('清除失败'); + } + /** + * 修改user表状态 + * + * @return json + */ + public function set_status($status='',$uid=0,$is_echo=0){ + if($is_echo==0) { + if ($status == '' || $uid == 0) return Json::fail('参数错误'); + UserModel::where(['uid' => $uid])->update(['status' => $status]); + }else{ + $uids=Util::postMore([ + ['uids',[]] + ]); + UserModel::destrSyatus($uids['uids'],$status); + } + return Json::successful($status==0 ? '禁用成功':'解禁成功'); + } + /** + * 获取user表 + * + * @return json + */ + public function get_user_list(){ + $where=Util::getMore([ + ['page',1], + ['limit',20], + ['nickname',''], + ['status',''], + ['pay_count',''], + ['is_promoter',''], + ['order',''], + ['data',''], + ['user_type',''], + ['country',''], + ['province',''], + ['city',''], + ['user_time_type',''], + ['user_time',''], + ['sex',''], + ['level_id',''], + ['birthday',''], + ]); + return Json::successlayui(UserModel::getUserList($where)); + } + /** + * 编辑模板消息 + * @param $id + * @return mixed|\think\response\Json|void + */ + public function edit($uid) + { + if(!$uid) return $this->failed('数据不存在'); + $user = UserModel::get($uid); + if(!$user) return Json::fail('数据不存在!'); + $f = array(); + $f[] = Form::input('uid','用户编号',$user->getData('uid'))->disabled(1); + $f[] = Form::input('real_name','真实姓名',$user->getData('real_name')); + $f[] = Form::date('birthday','生日',$user->getData('birthday') ? date('Y-m-d',$user->getData('birthday')) : 0); + $f[] = Form::input('card_id','身份证号',$user->getData('card_id')); + $f[] = Form::textarea('mark','用户备注',$user->getData('mark')); + $f[] = Form::radio('is_promoter','推广员',$user->getData('is_promoter'))->options([['value'=>1,'label'=>'开启'],['value'=>0,'label'=>'关闭']]); + $f[] = Form::radio('status','状态',$user->getData('status'))->options([['value'=>1,'label'=>'开启'],['value'=>0,'label'=>'锁定']]); + $form = Form::make_post_form('添加用户通知',$f,Url::build('update',array('uid'=>$uid)),5); + $this->assign(compact('form')); + return $this->fetch('public/form-builder'); + } + + public function edit_other($uid) + { + if(!$uid) return $this->failed('数据不存在'); + $user = UserModel::get($uid); + if(!$user) return Json::fail('数据不存在!'); + $f = array(); + $f[] = Form::radio('money_status','修改余额',1)->options([['value'=>1,'label'=>'增加'],['value'=>2,'label'=>'减少']]); + $f[] = Form::number('money','余额')->min(0); + $f[] = Form::radio('integration_status','修改积分',1)->options([['value'=>1,'label'=>'增加'],['value'=>2,'label'=>'减少']]); + $f[] = Form::number('integration','积分')->min(0); + $form = Form::make_post_form('修改其他',$f,Url::build('update_other',array('uid'=>$uid)),5); + $this->assign(compact('form')); + return $this->fetch('public/form-builder'); + } + + public function update_other($uid=0) + { + $data = Util::postMore([ + ['money_status',0], + ['money',0], + ['integration_status',0], + ['integration',0], + ],$this->request); + if(!$uid) return $this->failed('数据不存在'); + $user = UserModel::get($uid); + if(!$user) return Json::fail('数据不存在!'); + ModelBasic::beginTrans(); + $res1 = false; + $res2 = false; + $edit = array(); + if($data['money_status'] && $data['money']){//余额增加或者减少 + if($data['money_status'] == 1){//增加 + $edit['now_money'] = bcadd($user['now_money'],$data['money'],2); + $res1 = UserBillAdmin::income('系统增加余额',$user['uid'],'now_money','system_add',$data['money'],$this->adminId,$edit['now_money'],'系统增加了'.floatval($data['money']).'余额'); + try{ + HookService::listen('admin_add_money',$user,$data['money'],false,UserBehavior::class); + }catch (\Exception $e){ + ModelBasic::rollbackTrans(); + return Json::fail($e->getMessage()); + } + }else if($data['money_status'] == 2){//减少 + $edit['now_money'] = bcsub($user['now_money'],$data['money'],2); + $res1 = UserBillAdmin::expend('系统减少余额',$user['uid'],'now_money','system_sub',$data['money'],$this->adminId,$edit['now_money'],'系统扣除了'.floatval($data['money']).'余额'); + try{ + HookService::listen('admin_sub_money',$user,$data['money'],false,UserBehavior::class); + }catch (\Exception $e){ + ModelBasic::rollbackTrans(); + return Json::fail($e->getMessage()); + } + } + }else{ + $res1 = true; + } + if($data['integration_status'] && $data['integration']){//积分增加或者减少 + if($data['integration_status'] == 1){//增加 + $edit['integral'] = bcadd($user['integral'],$data['integration'],2); + $res2 = UserBillAdmin::income('系统增加积分',$user['uid'],'integral','system_add',$data['integration'],$this->adminId,$edit['integral'],'系统增加了'.floatval($data['integration']).'积分'); + try{ + HookService::listen('admin_add_integral',$user,$data['integration'],false,UserBehavior::class); + }catch (\Exception $e){ + ModelBasic::rollbackTrans(); + return Json::fail($e->getMessage()); + } + }else if($data['integration_status'] == 2){//减少 + $edit['integral'] = bcsub($user['integral'],$data['integration'],2); + $res2 = UserBillAdmin::expend('系统减少积分',$user['uid'],'integral','system_sub',$data['integration'],$this->adminId,$edit['integral'],'系统扣除了'.floatval($data['integration']).'积分'); + try{ + HookService::listen('admin_sub_integral',$user,$data['integration'],false,UserBehavior::class); + }catch (\Exception $e){ + ModelBasic::rollbackTrans(); + return Json::fail($e->getMessage()); + } + } + }else{ + $res2 = true; + } + if($edit) $res3 = UserModel::edit($edit,$uid); + else $res3 = true; + if($res1 && $res2 && $res3) $res =true; + else $res = false; + ModelBasic::checkTrans($res); + if($res) return Json::successful('修改成功!'); + else return Json::fail('修改失败'); + } + + public function update(Request $request, $uid) + { + $data = Util::postMore([ + ['money_status',0], + ['is_promoter',1], + ['real_name',''], + ['card_id',''], + ['birthday',''], + ['mark',''], + ['money',0], + ['integration_status',0], + ['integration',0], + ['status',0], + ],$request); + if(!$uid) return $this->failed('数据不存在'); + $user = UserModel::get($uid); + if(!$user) return Json::fail('数据不存在!'); + $data['birthday'] = strtotime($data['birthday']); + if($data['card_id'] && !Util::setCard($data['card_id'])) return JsonService::successful('输入正确的身份证号码'); + ModelBasic::beginTrans(); + $res1 = false; + $res2 = false; + $edit = array(); + if($data['money_status'] && $data['money']){//余额增加或者减少 + if($data['money_status'] == 1){//增加 + $edit['now_money'] = bcadd($user['now_money'],$data['money'],2); + $res1 = UserBillAdmin::income('系统增加余额',$user['uid'],'now_money','system_add',$data['money'],$this->adminId,$edit['now_money'],'系统增加了'.floatval($data['money']).'余额'); + try{ + HookService::listen('admin_add_money',$user,$data['money'],false,UserBehavior::class); + }catch (\Exception $e){ + ModelBasic::rollbackTrans(); + return Json::fail($e->getMessage()); + } + }else if($data['money_status'] == 2){//减少 + $edit['now_money'] = bcsub($user['now_money'],$data['money'],2); + $res1 = UserBillAdmin::expend('系统减少余额',$user['uid'],'now_money','system_sub',$data['money'],$this->adminId,$edit['now_money'],'系统扣除了'.floatval($data['money']).'余额'); + try{ + HookService::listen('admin_sub_money',$user,$data['money'],false,UserBehavior::class); + }catch (\Exception $e){ + ModelBasic::rollbackTrans(); + return Json::fail($e->getMessage()); + } + } + }else{ + $res1 = true; + } + if($data['integration_status'] && $data['integration']){//积分增加或者减少 + if($data['integration_status'] == 1){//增加 + $edit['integral'] = bcadd($user['integral'],$data['integration'],2); + $res2 = UserBillAdmin::income('系统增加积分',$user['uid'],'integral','system_add',$data['integration'],$this->adminId,$edit['integral'],'系统增加了'.floatval($data['integration']).'积分'); + try{ + HookService::listen('admin_add_integral',$user,$data['integration'],false,UserBehavior::class); + }catch (\Exception $e){ + ModelBasic::rollbackTrans(); + return Json::fail($e->getMessage()); + } + }else if($data['integration_status'] == 2){//减少 + $edit['integral'] = bcsub($user['integral'],$data['integration'],2); + $res2 = UserBillAdmin::expend('系统减少积分',$user['uid'],'integral','system_sub',$data['integration'],$this->adminId,$edit['integral'],'系统扣除了'.floatval($data['integration']).'积分'); + try{ + HookService::listen('admin_sub_integral',$user,$data['integration'],false,UserBehavior::class); + }catch (\Exception $e){ + ModelBasic::rollbackTrans(); + return Json::fail($e->getMessage()); + } + } + }else{ + $res2 = true; + } + $edit['status'] = $data['status']; + $edit['real_name'] = $data['real_name']; + $edit['card_id'] = $data['card_id']; + $edit['birthday'] = $data['birthday']; + $edit['mark'] = $data['mark']; + $edit['is_promoter'] = $data['is_promoter']; + if($edit) $res3 = UserModel::edit($edit,$uid); + else $res3 = true; + if($res1 && $res2 && $res3) $res =true; + else $res = false; + ModelBasic::checkTrans($res); + if($res) return Json::successful('修改成功!'); + else return Json::fail('修改失败'); + } + /** + * 用户图表 + * @return mixed + */ + public function user_analysis(){ + $where = Util::getMore([ + ['nickname',''], + ['status',''], + ['is_promoter',''], + ['date',''], + ['user_type',''], + ['export',0] + ],$this->request); + $user_count=UserModel::consume($where,'',true); + //头部信息 + $header=[ + [ + 'name'=>'新增用户', + 'class'=>'fa-line-chart', + 'value'=>$user_count, + 'color'=>'red' + ], + [ + 'name'=>'用户留存', + 'class'=>'fa-area-chart', + 'value'=>$this->gethreaderValue(UserModel::consume($where,'',true),$where).'%', + 'color'=>'lazur' + ], + [ + 'name'=>'新增用户总消费', + 'class'=>'fa-bar-chart', + 'value'=>'¥'.UserModel::consume($where), + 'color'=>'navy' + ], + [ + 'name'=>'用户活跃度', + 'class'=>'fa-pie-chart', + 'value'=>$this->gethreaderValue(UserModel::consume($where,'',true)).'%', + 'color'=>'yellow' + ], + ]; + $name=['新增用户','用户消费']; + $dates=$this->get_user_index($where,$name); + $user_index=['name'=>json_encode($name), 'date'=>json_encode($dates['time']), 'series'=>json_encode($dates['series'])]; + //用户浏览分析 + $view=StoreVisit::getVisit($where['date'],['','warning','info','danger']); + $view_v1=WechatMessage::getViweList($where['date'],['','warning','info','danger']); + $view=array_merge($view,$view_v1); + $view_v2=[]; + foreach ($view as $val){ + $view_v2['color'][]='#'.rand(100000,339899); + $view_v2['name'][]=$val['name']; + $view_v2['value'][]=$val['value']; + } + $view=$view_v2; + //消费会员排行用户分析 + $user_null=UserModel::getUserSpend($where['date']); + //消费数据 + $now_number=UserModel::getUserSpend($where['date'],true); + list($paren_number,$title)=UserModel::getPostNumber($where['date']); + if($paren_number==0) { + $rightTitle=[ + 'number'=>$now_number>0?$now_number:0, + 'icon'=>'fa-level-up', + 'title'=>$title + ]; + }else{ + $number=(float)bcsub($now_number,$paren_number,4); + if($now_number==0){ + $icon='fa-level-down'; + }else{ + $icon=$now_number>$paren_number?'fa-level-up':'fa-level-down'; + } + $rightTitle=['number'=>$number, 'icon'=>$icon, 'title'=>$title]; + } + unset($title,$paren_number,$now_number); + list($paren_user_count,$title)=UserModel::getPostNumber($where['date'],true,'add_time',''); + if($paren_user_count==0){ + $count=$user_count==0?0:$user_count; + $icon=$user_count==0?'fa-level-down':'fa-level-up'; + }else{ + $count=(float)bcsub($user_count,$paren_user_count,4); + $icon=$user_count<$paren_user_count?'fa-level-down':'fa-level-up'; + } + $leftTitle=[ + 'count'=>$count, + 'icon'=>$icon, + 'title'=>$title + ]; + unset($count,$icon,$title); + $consume=[ + 'title'=>'消费金额为¥'.UserModel::consume($where), + 'series'=>UserModel::consume($where,'xiaofei'), + 'rightTitle'=>$rightTitle, + 'leftTitle'=>$leftTitle, + ]; + $form=UserModel::consume($where,'form'); + $grouping=UserModel::consume($where,'grouping'); + $this->assign(compact('header','user_index','view','user_null','consume','form','grouping','where')); + return $this->fetch(); + } + public function gethreaderValue($chart,$where=[]){ + if($where){ + switch($where['date']){ + case null:case 'today':case 'week':case 'year': + if($where['date']==null){ + $where['date']='month'; + } + $sum_user=UserModel::whereTime('add_time',$where['date'])->count(); + if($sum_user==0) return 0; + $counts=bcdiv($chart,$sum_user,4)*100; + return $counts; + break; + case 'quarter': + $quarter=UserModel::getMonth('n'); + $quarter[0]=strtotime($quarter[0]); + $quarter[1]=strtotime($quarter[1]); + $sum_user=UserModel::where('add_time','between',$quarter)->count(); + if($sum_user==0) return 0; + $counts=bcdiv($chart,$sum_user,4)*100; + return $counts; + default: + //自定义时间 + $quarter=explode('-',$where['date']); + $quarter[0]=strtotime($quarter[0]); + $quarter[1]=strtotime($quarter[1]); + $sum_user=UserModel::where('add_time','between',$quarter)->count(); + if($sum_user==0) return 0; + $counts=bcdiv($chart,$sum_user,4)*100; + return $counts; + break; + } + }else{ + $num=UserModel::count(); + $chart=$num!=0?bcdiv($chart,$num,5)*100:0; + return $chart; + } + } + public function get_user_index($where,$name){ + switch ($where['date']){ + case null: + $days = date("t",strtotime(date('Y-m',time()))); + $dates=[]; + $series=[]; + $times_list=[]; + foreach ($name as $key=>$val){ + for($i=1;$i<=$days;$i++){ + if(!in_array($i.'号',$times_list)){ + array_push($times_list,$i.'号'); + } + $time=$this->gettime(date("Y-m",time()).'-'.$i); + if($key==0){ + $dates['data'][]=UserModel::where('add_time','between',$time)->count(); + }else if($key==1){ + $dates['data'][]=UserModel::consume(true,$time); + } + } + $dates['name']=$val; + $dates['type']='line'; + $series[]=$dates; + unset($dates); + } + return ['time'=>$times_list,'series'=>$series]; + case 'today': + $dates=[]; + $series=[]; + $times_list=[]; + foreach ($name as $key=>$val){ + for($i=0;$i<=24;$i++){ + $strtitle=$i.'点'; + if(!in_array($strtitle,$times_list)){ + array_push($times_list,$strtitle); + } + $time=$this->gettime(date("Y-m-d ",time()).$i); + if($key==0){ + $dates['data'][]=UserModel::where('add_time','between',$time)->count(); + }else if($key==1){ + $dates['data'][]=UserModel::consume(true,$time); + } + } + $dates['name']=$val; + $dates['type']='line'; + $series[]=$dates; + unset($dates); + } + return ['time'=>$times_list,'series'=>$series]; + case "week": + $dates=[]; + $series=[]; + $times_list=[]; + foreach ($name as $key=>$val){ + for($i=0;$i<=6;$i++){ + if(!in_array('星期'.($i+1),$times_list)){ + array_push($times_list,'星期'.($i+1)); + } + $time=UserModel::getMonth('h',$i); + if($key==0){ + $dates['data'][]=UserModel::where('add_time','between',[strtotime($time[0]),strtotime($time[1])])->count(); + }else if($key==1){ + $dates['data'][]=UserModel::consume(true,[strtotime($time[0]),strtotime($time[1])]); + } + } + $dates['name']=$val; + $dates['type']='line'; + $series[]=$dates; + unset($dates); + } + return ['time'=>$times_list,'series'=>$series]; + case 'year': + $dates=[]; + $series=[]; + $times_list=[]; + $year=date('Y'); + foreach ($name as $key=>$val){ + for($i=1;$i<=12;$i++){ + if(!in_array($i.'月',$times_list)){ + array_push($times_list,$i.'月'); + } + $t = strtotime($year.'-'.$i.'-01'); + $arr= explode('/',date('Y-m-01',$t).'/'.date('Y-m-',$t).date('t',$t)); + if($key==0){ + $dates['data'][]=UserModel::where('add_time','between',[strtotime($arr[0]),strtotime($arr[1])])->count(); + }else if($key==1){ + $dates['data'][]=UserModel::consume(true,[strtotime($arr[0]),strtotime($arr[1])]); + } + } + $dates['name']=$val; + $dates['type']='line'; + $series[]=$dates; + unset($dates); + } + return ['time'=>$times_list,'series'=>$series]; + case 'quarter': + $dates=[]; + $series=[]; + $times_list=[]; + foreach ($name as $key=>$val){ + for($i=1;$i<=4;$i++){ + $arr=$this->gettime('quarter',$i); + if(!in_array(implode('--',$arr).'季度',$times_list)){ + array_push($times_list,implode('--',$arr).'季度'); + } + if($key==0){ + $dates['data'][]=UserModel::where('add_time','between',[strtotime($arr[0]),strtotime($arr[1])])->count(); + }else if($key==1){ + $dates['data'][]=UserModel::consume(true,[strtotime($arr[0]),strtotime($arr[1])]); + } + } + $dates['name']=$val; + $dates['type']='line'; + $series[]=$dates; + unset($dates); + } + return ['time'=>$times_list,'series'=>$series]; + default: + $list=UserModel::consume($where,'default'); + $dates=[]; + $series=[]; + $times_list=[]; + foreach ($name as $k=>$v){ + foreach ($list as $val){ + $date=$val['add_time']; + if(!in_array($date,$times_list)){ + array_push($times_list,$date); + } + if($k==0){ + $dates['data'][]=$val['num']; + }else if($k==1){ + $dates['data'][]=UserBillAdmin::where(['uid'=>$val['uid'],'type'=>'pay_product'])->sum('number'); + } + } + $dates['name']=$v; + $dates['type']='line'; + $series[]=$dates; + unset($dates); + } + return ['time'=>$times_list,'series'=>$series]; + } + } + public function gettime($time='',$season=''){ + if(!empty($time) && empty($season)){ + $timestamp0 = strtotime($time); + $timestamp24 =strtotime($time)+86400; + return [$timestamp0,$timestamp24]; + }else if(!empty($time) && !empty($season)){ + $firstday=date('Y-m-01',mktime(0,0,0,($season - 1) *3 +1,1,date('Y'))); + $lastday=date('Y-m-t',mktime(0,0,0,$season * 3,1,date('Y'))); + return [$firstday,$lastday]; + } + } + + /** + * 会员等级首页 + */ + public function group(){ + return $this->fetch(); + } + /** + * 会员详情 + */ + public function see($uid=''){ + $this->assign([ + 'uid'=>$uid, + 'userinfo'=>UserModel::getUserDetailed($uid), + 'is_layui'=>true, + 'headerList'=>UserModel::getHeaderList($uid), + 'count'=>UserModel::getCountInfo($uid), + ]); + return $this->fetch(); + } + /* + * 获取某个用户的推广下线 + * */ + public function getSpreadList($uid,$page=1,$limit=20){ + return Json::successful(UserModel::getSpreadList($uid,(int)$page,(int)$limit)); + } + /** + * 获取某用户的订单列表 + */ + public function getOneorderList($uid,$page=1,$limit=20){ + return Json::successful(StoreOrder::getOneorderList(compact('uid','page','limit'))); + } + /** + * 获取某用户的积分列表 + */ + public function getOneIntegralList($uid,$page=1,$limit=20){ + return Json::successful(UserBillAdmin::getOneIntegralList(compact('uid','page','limit'))); + } + /** + * 获取某用户的积分列表 + */ + public function getOneSignList($uid,$page=1,$limit=20){ + return Json::successful(UserBillAdmin::getOneSignList(compact('uid','page','limit'))); + } + /** + * 获取某用户的持有优惠劵 + */ + public function getOneCouponsList($uid,$page=1,$limit=20){ + return Json::successful(StoreCouponUser::getOneCouponsList(compact('uid','page','limit'))); + } + /** + * 获取某用户的余额变动记录 + */ + public function getOneBalanceChangList($uid,$page=1,$limit=20){ + return Json::successful(UserBillAdmin::getOneBalanceChangList(compact('uid','page','limit'))); + } +} diff --git a/application/admin/controller/user/UserLevel.php b/application/admin/controller/user/UserLevel.php index 27fd7608..04b34eea 100644 --- a/application/admin/controller/user/UserLevel.php +++ b/application/admin/controller/user/UserLevel.php @@ -41,8 +41,8 @@ class UserLevel extends AuthController $field[]= Form::number('valid_date','有效时间(天)',isset($vipinfo) ? $vipinfo->valid_date : 0)->min(0)->col(8); $field[]= Form::number('grade','等级',isset($vipinfo) ? $vipinfo->grade : 0)->min(0)->col(8); $field[]= Form::number('discount','享受折扣',isset($vipinfo) ? $vipinfo->discount : 0)->min(0)->col(8); - $field[]= Form::frameImageOne('icon','图标',Url::build('admin/widget.images/index',array('fodder'=>'icon')),isset($vipinfo) ? $vipinfo->icon : '')->icon('image')->width('100%')->height('500px'); - $field[]= Form::frameImageOne('image','会员背景',Url::build('admin/widget.images/index',array('fodder'=>'image')),isset($vipinfo) ? $vipinfo->image : '')->icon('image')->width('100%')->height('500px'); + $field[]= Form::formFrameImageOne('icon','图标',isset($vipinfo) ? $vipinfo->icon : ''); + $field[]= Form::formFrameImageOne('image','会员背景',isset($vipinfo) ? $vipinfo->image : ''); $field[]= Form::radio('is_show','是否显示',isset($vipinfo) ? $vipinfo->is_show : 0)->options([['label'=>'显示','value'=>1],['label'=>'隐藏','value'=>0]])->col(8); $field[]= Form::textarea('explain','等级说明',isset($vipinfo) ? $vipinfo->explain : ''); $form = Form::make_post_form('添加等级设置',$field,Url::build('save',['id'=>$id]),2); @@ -74,9 +74,11 @@ class UserLevel extends AuthController if(!$data['grade']) return JsonService::fail('请输入等级'); if(!$data['explain']) return JsonService::fail('请输入等级说明'); if($data['is_forever']==0 && !$data['valid_date']) return JsonService::fail('请输入有效时间(天)'); + if($data['is_pay']) return JsonService::fail('会员等级购买功能正在开发中,暂时关闭可购买功能!'); if($data['is_pay'] && !$data['money']) return JsonService::fail('请输入购买金额'); if(!$data['icon']) return JsonService::fail('请上传等级图标'); if(!$data['image']) return JsonService::fail('请上传等级背景图标'); + if(!$id && SystemUserLevel::be(['is_del'=>0,'grade'=>$data['grade']])) return JsonService::fail('已检测到您设置过的会员等级,此等级不可重复'); SystemUserLevel::beginTrans(); try{ //修改 @@ -86,7 +88,7 @@ class UserLevel extends AuthController return JsonService::successful('修改成功'); }else{ SystemUserLevel::rollbackTrans(); - return JsonService::fail('添加失败'); + return JsonService::fail('修改失败'); } }else{ //新增 diff --git a/application/admin/controller/user/UserNotice.php b/application/admin/controller/user/UserNotice.php index 6e0db1a5..0a8dc347 100644 --- a/application/admin/controller/user/UserNotice.php +++ b/application/admin/controller/user/UserNotice.php @@ -59,6 +59,7 @@ class UserNotice extends AuthController * @return \think\Response */ public function save(Request $request){ + return Json::fail('站内消息暂不可用'); $params = $request->post(); if(!$params["user"])return Json::fail('请输入发送人!'); if(!$params["title"])return Json::fail('请输入通知标题!'); diff --git a/application/admin/controller/wechat/Reply.php b/application/admin/controller/wechat/Reply.php index 9e0af259..73b4ef47 100644 --- a/application/admin/controller/wechat/Reply.php +++ b/application/admin/controller/wechat/Reply.php @@ -3,6 +3,7 @@ namespace app\admin\controller\wechat; use app\admin\controller\AuthController; +use app\admin\model\system\SystemAttachment; use app\admin\model\wechat\WechatReply; use service\UtilService as Util; use service\JsonService as Json; @@ -86,8 +87,10 @@ class Reply extends AuthController { $name = $request->post('file'); if(!$name) return Json::fail('请上传图片'); - $res = Upload::image($name,'wechat/image'); - return $res->status === true ? Json::successful('上传成功',$res->filePath) : Json::fail($res->error); + $res = Upload::image($name,'wechat/image',true,true,null,'uniqid',1); + if(!is_array($res)) return Json::fail($res); + SystemAttachment::attachmentAdd($res['name'],$res['size'],$res['type'],$res['dir'],$res['thumb_path'],0,$res['image_type'],$res['time']); + return Json::successful('上传成功',$res['dir']); } public function upload_file(Request $request) diff --git a/application/admin/controller/wechat/StoreService.php b/application/admin/controller/wechat/StoreService.php index f4f27b32..9edf0123 100644 --- a/application/admin/controller/wechat/StoreService.php +++ b/application/admin/controller/wechat/StoreService.php @@ -1,6 +1,7 @@ <?php namespace app\admin\controller\wechat; use app\admin\controller\AuthController; +use app\admin\model\system\SystemAttachment; use service\FormBuilder as Form; use service\UtilService as Util; use service\JsonService as Json; @@ -87,7 +88,7 @@ class StoreService extends AuthController $service = ServiceModel::get($id); if(!$service) return Json::fail('数据不存在!'); $f = array(); - $f[] = Form::frameImageOne('avatar','客服头像',Url::build('admin/widget.images/index',array('fodder'=>'avatar')),$service['avatar'])->icon('image'); + $f[] = Form::formFrameImageOne('avatar','客服头像',$service['avatar']); $f[] = Form::input('nickname','客服名称',$service["nickname"]); $f[] = Form::switches('notify','订单通知',$service["notify"])->trueValue(1)->falseValue(0)->openStr('开启')->closeStr('关闭'); $f[] = Form::radio('status','客服状态',$service['status'])->options([['value'=>1,'label'=>'显示'],['value'=>0,'label'=>'隐藏']]); @@ -135,12 +136,12 @@ class StoreService extends AuthController */ public function upload() { - $res = Upload::image('file','store/service'); - $thumbPath = Upload::thumb($res->dir); - if($res->status == 200) - return Json::successful('图片上传成功!',['name'=>$res->fileInfo->getSaveName(),'url'=>Upload::pathToUrl($thumbPath)]); - else - return Json::fail($res->error); + $res = Upload::image('file','store/product/'.date('Ymd')); + if(is_array($res)){ + SystemAttachment::attachmentAdd($res['name'],$res['size'],$res['type'],$res['dir'],$res['thumb_path'],2,$res['image_type'],$res['time']); + return Json::successful('图片上传成功!',['name'=>$res['name'],'url'=>Upload::pathToUrl($res['thumb_path'])]); + }else + return Json::fail($res); } /** diff --git a/application/admin/controller/widget/Images.php b/application/admin/controller/widget/Images.php index 6151a151..2ad91b91 100644 --- a/application/admin/controller/widget/Images.php +++ b/application/admin/controller/widget/Images.php @@ -1,6 +1,9 @@ <?php namespace app\admin\controller\widget; +use Api\Storage\COS\COS; +use Api\Storage\OSS\OSS; +use Api\Storage\Qiniu\Qiniu; use think\Request; use think\Url; use app\admin\model\system\SystemAttachment as SystemAttachmentModel; @@ -12,10 +15,9 @@ use service\UtilService as Util; use service\FormBuilder as Form; /** - * 文件校验控制器 - * Class SystemFile - * @package app\admin\controller\system - * + * TODO 附件控制器 + * Class Images + * @package app\admin\controller\widget */ class Images extends AuthController { @@ -25,18 +27,30 @@ class Images extends AuthController */ public function index() { - $pid = input('pid') != NULL ?input('pid'):session('pid'); - if($pid != NULL)session('pid',$pid); - if(!empty(session('pid')))$pid = session('pid'); + $pid = $this->request->param('pid'); + if($pid === NULL) + { + $pid = session('pid') ? session('pid') : 0; + } + session('pid',$pid); $this->assign('pid',$pid); - //分类标题 - $typearray = Category::getAll(); - $this->assign(compact('typearray')); -// $typearray = self::dir; -// $this->assign(compact('typearray')); - $this->assign(SystemAttachmentModel::getAll($pid)); return $this->fetch('widget/images'); } + + public function get_image_list() + { + $where = Util::getMore([ + ['page',1], + ['limit',18], + ['pid',0] + ]); + return Json::successful(SystemAttachmentModel::getImageList($where)); + } + + public function get_image_cate($name = '') + { + return Json::successful(Category::getAll($name)); + } /** * 图片管理上传图片 * @return \think\response\Json @@ -44,26 +58,36 @@ class Images extends AuthController public function upload() { $pid = input('pid')!= NULL ?input('pid'):session('pid'); - $res = Upload::image('file','attach'.DS.date('Y').DS.date('m').DS.date('d')); - $thumbPath = Upload::thumb($res->dir); - //产品图片上传记录 - $fileInfo = $res->fileInfo->getinfo(); - //入口是public需要替换图片路径 - if(strpos(PUBILC_PATH,'public') == false){ - $res->dir = str_replace('public/','',$res->dir); + $upload_type = $this->request->get('upload_type',0); + if(!$pid) { + $info =['code'=>400,'msg'=>'请选择分类,再进行上传!','src'=>'']; + }else{ + try{ + $res = Upload::image('file','attach'.DS.date('Y').DS.date('m').DS.date('d'),true,true,null,'uniqid',$upload_type); + if(is_object($res) && $res->status === false){ + $info = array( + 'code' =>400, + 'msg' =>'上传失败:'.$res->error, + 'src' =>'' + ); + }else if(is_string($res)){ + $info = array( + 'code' =>400, + 'msg' =>'上传失败:'.$res, + 'src' =>'' + ); + }else if(is_array($res)){ + SystemAttachmentModel::attachmentAdd($res['name'],$res['size'],$res['type'],$res['dir'],$res['thumb_path'],$pid,$res['image_type'],$res['time']); + $info = array( + 'code' =>200, + 'msg' =>'上传成功', + 'src' =>$res['dir'] + ); + } + }catch (\Exception $e){ + $info = ['code'=>400,'msg'=>$e->getMessage(),'src'=>'']; + } } - SystemAttachmentModel::attachmentAdd($res->fileInfo->getSaveName(),$fileInfo['size'],$fileInfo['type'],$res->dir,$thumbPath,$pid); - $info = array( -// "originalName" => $fileInfo['name'], -// "name" => $res->fileInfo->getSaveName(), -// "url" => '.'.$res->dir, -// "size" => $fileInfo['size'], -// "type" => $fileInfo['type'], -// "state" => "SUCCESS" - 'code' =>200, - 'msg' =>'上传成功', - 'src' =>$res->dir - ); echo json_encode($info); } @@ -87,8 +111,16 @@ class Images extends AuthController public function deleteimganddata($att_id){ $attinfo = SystemAttachmentModel::get($att_id)->toArray(); if($attinfo){ - @unlink(ROOT_PATH.ltrim($attinfo['att_dir'],'.')); - @unlink(ROOT_PATH.ltrim($attinfo['satt_dir'],'.')); + if($attinfo['image_type'] == 1){ + @unlink(ROOT_PATH.ltrim($attinfo['att_dir'],'.')); + @unlink(ROOT_PATH.ltrim($attinfo['satt_dir'],'.')); + }else if($attinfo['image_type'] == 2){ + Qiniu::delete($attinfo['name']); + }else if($attinfo['image_type'] == 3){ + OSS::delete($attinfo['name']); + }else if($attinfo['image_type'] == 4){ + COS::delete($attinfo['name']); + } SystemAttachmentModel::where(['att_id'=>$att_id])->delete(); } } @@ -133,10 +165,9 @@ class Images extends AuthController /** * ajax 添加分类 */ - public function addcate($id){ - $id = $id || 0; + public function addcate($id=0){ $formbuider = []; - $formbuider[] = Form::select('pid','上级分类','0')->setOptions(function (){ + $formbuider[] = Form::selectOne('pid','上级分类',$id)->setOptions(function (){ $list = Category::getCateList(0); $options = [['value'=>0,'label'=>'所有分类']]; foreach ($list as $id=>$cateName){ @@ -145,7 +176,11 @@ class Images extends AuthController return $options; })->filterable(1); $formbuider[] = Form::input('name','分类名称'); - $form = Form::make_post_form('添加分类',$formbuider,Url::build('saveCate')); + $jsContent = <<<SCRIPT +parent.SuccessCateg(); +parent.layer.close(parent.layer.getFrameIndex(window.name)); +SCRIPT; + $form = Form::make_post_form('添加分类',$formbuider,Url::build('saveCate'),$jsContent); $this->assign(compact('form')); return $this->fetch('public/form-builder'); } @@ -183,7 +218,11 @@ class Images extends AuthController return $options; })->filterable(1); $formbuider[] = Form::input('name','分类名称',$Category->getData('name')); - $form = Form::make_post_form('编辑分类',$formbuider,Url::build('updateCate')); + $jsContent = <<<SCRIPT +parent.SuccessCateg(); +parent.layer.close(parent.layer.getFrameIndex(window.name)); +SCRIPT; + $form = Form::make_post_form('编辑分类',$formbuider,Url::build('updateCate'),$jsContent); $this->assign(compact('form')); return $this->fetch('public/form-builder'); } diff --git a/application/admin/model/article/ArticleCategory.php b/application/admin/model/article/ArticleCategory.php index e0eb47f3..8e435c1e 100644 --- a/application/admin/model/article/ArticleCategory.php +++ b/application/admin/model/article/ArticleCategory.php @@ -62,7 +62,7 @@ class ArticleCategory extends ModelBasic public static function getTierList($model = null) { if($model === null) $model = new self(); - return Util::sortListTier($model->select()->toArray()); + return Util::sortListTier($model->where('is_del',0)->where('status',1)->select()->toArray()); } /** @@ -82,4 +82,32 @@ class ArticleCategory extends ModelBasic return $new_res; } + /** + * TODO 获取文章分类 + * @return array + * @throws \think\db\exception\DataNotFoundException + * @throws \think\db\exception\ModelNotFoundException + * @throws \think\exception\DbException + */ + public static function getArticleCategoryList(){ + $list = self::where('is_del',0)->where('status',1)->select(); + if($list) return $list->toArray(); + return []; + } + + /** + * TODO 获取文章分类信息 + * @param $id + * @param string $field + * @return mixed + */ + public static function getArticleCategoryInfo($id, $field = 'id,title') + { + $model = new self; + if($id) $model = $model->where('id',$id); + $model = $model->where('is_del',0); + $model = $model->where('status',1); + return $model->column($field); + } + } \ No newline at end of file diff --git a/application/admin/model/order/StoreOrder.php b/application/admin/model/order/StoreOrder.php index b423eaae..7b8fb2b5 100644 --- a/application/admin/model/order/StoreOrder.php +++ b/application/admin/model/order/StoreOrder.php @@ -34,22 +34,23 @@ class StoreOrder extends ModelBasic use ModelTrait; public static function orderCount(){ - $data['wz']=self::statusByWhere(0,new self())->count(); - $data['wf']=self::statusByWhere(1,new self())->count(); - $data['ds']=self::statusByWhere(2,new self())->count(); - $data['dp']=self::statusByWhere(3,new self())->count(); - $data['jy']=self::statusByWhere(4,new self())->count(); - $data['tk']=self::statusByWhere(-1,new self())->count(); - $data['yt']=self::statusByWhere(-2,new self())->count(); - $data['general']=self::where(['pink_id'=>0,'combination_id'=>0,'seckill_id'=>0,'bargain_id'=>0])->count(); - $data['pink']=self::where('pink_id|combination_id','>',0)->count(); - $data['seckill']=self::where('seckill_id','>',0)->count(); - $data['bargain']=self::where('bargain_id','>',0)->count(); + $data['wz']=self::statusByWhere(0,new self())->where(['is_system_del'=>0])->count(); + $data['wf']=self::statusByWhere(1,new self())->where(['is_system_del'=>0])->count(); + $data['ds']=self::statusByWhere(2,new self())->where(['is_system_del'=>0])->count(); + $data['dp']=self::statusByWhere(3,new self())->where(['is_system_del'=>0])->count(); + $data['jy']=self::statusByWhere(4,new self())->where(['is_system_del'=>0])->count(); + $data['tk']=self::statusByWhere(-1,new self())->where(['is_system_del'=>0])->count(); + $data['yt']=self::statusByWhere(-2,new self())->where(['is_system_del'=>0])->count(); + $data['del']=self::statusByWhere(-4,new self())->where(['is_system_del'=>0])->count(); + $data['general']=self::where(['pink_id'=>0,'combination_id'=>0,'seckill_id'=>0,'bargain_id'=>0,'is_system_del'=>0])->count(); + $data['pink']=self::where('pink_id|combination_id','>',0)->where('is_system_del',0)->count(); + $data['seckill']=self::where('seckill_id','>',0)->where('is_system_del',0)->count(); + $data['bargain']=self::where('bargain_id','>',0)->where('is_system_del',0)->count(); return $data; } public static function OrderList($where){ - $model = self::getOrderWhere($where,self::alias('a')->join('user r','r.uid=a.uid','LEFT'),'a.','r')->field('a.*,r.nickname'); + $model = self::getOrderWhere($where,self::alias('a')->join('user r','r.uid=a.uid','LEFT'),'a.','r')->field('a.*,r.nickname,r.phone'); if($where['order']!=''){ $model = $model->order(self::setOrder($where['order'])); }else{ @@ -68,7 +69,7 @@ class StoreOrder extends ModelBasic } $item['_info'] = $_info; $item['add_time'] = date('Y-m-d H:i:s',$item['add_time']); - if($item['pink_id'] && $item['combination_id']){ + if($item['pink_id'] || $item['combination_id']){ $pinkStatus = StorePink::where('order_id_key',$item['id'])->value('status'); switch ($pinkStatus){ case 1: @@ -135,9 +136,22 @@ class StoreOrder extends ModelBasic }else if($item['paid']==1 && $item['status']==3 && $item['refund_status']==0){ $item['status_name']='已完成'; }else if($item['paid']==1 && $item['refund_status']==1){ + $refundReasonTime = date('Y-m-d H:i', $item['refund_reason_time']); + $refundReasonWapImg = json_decode($item['refund_reason_wap_img'], true); + $img = ''; + if(count($refundReasonWapImg) && is_array($refundReasonWapImg)){ + foreach ($refundReasonWapImg as $itemImg){ + if(strlen(trim($itemImg))) + $img .='<img style="height:50px;" src="'.$itemImg.'" />'; + } + } + if(!strlen(trim($img))) $img = '无'; $item['status_name']=<<<HTML <b style="color:#f124c7">申请退款</b><br/> -<span>退款原因:{$item['refund_reason_wap']}</span> +<span>退款原因:{$item['refund_reason_wap']}</span><br/> +<span>备注说明:{$item['refund_reason_wap_explain']}</span><br/> +<span>退款时间:{$refundReasonTime}</span><br/> +<span>退款凭证:{$img}</span> HTML; }else if($item['paid']==1 && $item['refund_status']==2){ $item['status_name']='已退款'; @@ -183,17 +197,32 @@ HTML; ],' '); } $item['cartInfo'] = $_info; + $sex=Db::name('wechat_user')->where('uid',$item['uid'])->value('sex'); + if($sex==1) $sex_name='男'; + else if($sex==2) $sex_name='女'; + else $sex_name='未知'; $export[] = [ - $item['order_id'],$item['pay_type_name'], - $item['total_num'],$item['total_price'],$item['total_postage'],$item['pay_price'],$item['refund_price'], - $item['mark'],$item['remark'], - [$item['real_name'],$item['user_phone'],$item['user_address']], + $item['order_id'], + $sex_name, + $item['phone'], + $item['real_name'], + $item['user_phone'], + $item['user_address'], $goodsName, - [$item['paid'] == 1? '已支付':'未支付','支付时间: '.($item['pay_time'] > 0 ? date('Y/md H:i',$item['pay_time']) : '暂无')] + $item['total_price'], + $item['pay_price'], + $item['pay_postage'], + $item['coupon_price'], + $item['pay_type_name'], + $item['pay_time'] > 0 ? date('Y/md H:i',$item['pay_time']) : '暂无', + $item['status_name'], + $item['add_time'], + $item['mark'] ]; } - PHPExcelService::setExcelHeader(['订单号','支付方式','商品总数','商品总价','邮费','支付金额','退款金额','用户备注','管理员备注','收货人信息','商品信息','支付状态']) - ->setExcelTile('订单导出','订单信息'.time(),' 生成时间:'.date('Y-m-d H:i:s',time())) + PHPExcelService::setExcelHeader(['订单号','性别','电话','收货人姓名','收货人电话','收货地址','商品信息', + '总价格','实际支付','邮费','优惠金额','支付状态','支付时间','订单状态','下单时间','用户备注']) + ->setExcelTile('订单导出'.date('YmdHis',time()),'订单信息'.time(),' 生成时间:'.date('Y-m-d H:i:s',time())) ->setExcelContent($export) ->ExcelSave(); } @@ -313,6 +342,8 @@ HTML; return $model->where($alert.'paid',1)->where($alert.'refund_status',2); else if($status == -3)//退款 return $model->where($alert.'paid',1)->where($alert.'refund_status','in','1,2'); + else if($status == -4)//已删除 + return $model->where($alert.'is_del',1); else return $model; } @@ -351,7 +382,7 @@ HTML; public static function refundTemplate($data,$oid) { $order = self::where('id',$oid)->find(); - WechatTemplateService::sendTemplate(WechatUser::uidToOpenid($order['uid']),WechatTemplateService::ORDER_REFUND_STATUS, [ + WechatTemplateService::sendTemplate(WechatUser::where('uid',$order['uid'])->value('openid'),WechatTemplateService::ORDER_REFUND_STATUS, [ 'first'=>'亲,您购买的商品已退款,本次退款'.$data['refund_price'].'金额', 'keyword1'=>$order['order_id'], 'keyword2'=>$order['pay_price'], @@ -388,7 +419,12 @@ HTML; */ public static function getOrderWhere($where,$model,$aler='',$join=''){ // $model = $model->where('combination_id',0); - if($where['status'] != '') $model = self::statusByWhere($where['status'],$model,$aler); + $model = $model->where('is_system_del',0); + if($where['status'] != '') { + $model = self::statusByWhere($where['status'],$model,$aler); + }else{ + $model = $model->where('paid',1); + } if($where['is_del'] != '' && $where['is_del'] != -1) $model = $model->where($aler.'is_del',$where['is_del']); if(isset($where['combination_id'])){ if($where['combination_id'] =='普通订单'){ @@ -423,7 +459,7 @@ HTML; } if($where['real_name'] != ''){ - $model = $model->where($aler.'order_id|'.$aler.'real_name|'.$aler.'user_phone'.($join ? '|'.$join.'.nickname|'.$join.'.uid':''),'LIKE',"%$where[real_name]%"); + $model = $model->where($aler.'order_id|'.$aler.'real_name|'.$aler.'user_phone'.($join ? '|'.$join.'.nickname|'.$join.'.uid|'.$join.'.phone':''),'LIKE',"%$where[real_name]%"); } if($where['data'] !== ''){ $model = self::getModelTime($where,$model,$aler.'add_time'); @@ -436,7 +472,7 @@ HTML; [ 'name'=>'订单数量', 'field'=>'件', - 'count'=>$price['total_num'], + 'count'=>$price['count_sum'], 'background_color'=>'layui-bg-blue', 'col'=>2 ], @@ -475,6 +511,20 @@ HTML; 'background_color'=>'layui-bg-blue', 'col'=>2 ], + [ + 'name'=>'运费金额', + 'field'=>'元', + 'count'=>$price['pay_postage'], + 'background_color'=>'layui-bg-blue', + 'col'=>2 + ], + [ + 'name'=>'分佣金额', + 'field'=>'元', + 'count'=>$price['brokerage'], + 'background_color'=>'layui-bg-blue', + 'col'=>2 + ], [ 'name'=>'线下支付金额', 'field'=>'元', @@ -517,23 +567,38 @@ HTML; $price['back_integral'] = 0;//退积分总数 $price['deduction_price'] = 0;//抵扣金额 $price['total_num'] = 0; //商品总数 - $sumNumber =self::getOrderWhere($where,$model)->where('is_del',0)->field([ + $price['count_sum'] = 0; //商品总数 + $price['brokerage'] =0; + $price['pay_postage'] =0; + $whereData=['is_del'=>0]; + if($where['status']==''){ + $whereData['paid']=1; + $whereData['refund_status']=0; + } + $ids= self::getOrderWhere($where,$model)->where($whereData)->column('id'); + if(count($ids)){ + $price['brokerage'] = UserBill::where(['category'=>'now_money','type'=>'brokerage'])->where('link_id','in',$ids)->sum('number'); + } + $price['refund_price'] = self::getOrderWhere($where,$model)->where(['is_del'=>0,'paid'=>1,'refund_status'=>2])->sum('refund_price'); + $sumNumber =self::getOrderWhere($where,$model)->where($whereData)->field([ 'sum(total_num) as sum_total_num', + 'count(id) as count_sum', 'sum(pay_price) as sum_pay_price', - 'sum(refund_price) as sum_refund_price', + 'sum(pay_postage) as sum_pay_postage', 'sum(use_integral) as sum_use_integral', 'sum(back_integral) as sum_back_integral', 'sum(deduction_price) as sum_deduction_price' ])->find(); if($sumNumber) { + $price['count_sum'] = $sumNumber['count_sum']; $price['total_num'] = $sumNumber['sum_total_num']; $price['pay_price'] = $sumNumber['sum_pay_price']; - $price['refund_price'] = $sumNumber['sum_refund_price']; + $price['pay_postage'] = $sumNumber['sum_pay_postage']; $price['use_integral'] = $sumNumber['sum_use_integral']; $price['back_integral'] = $sumNumber['sum_back_integral']; $price['deduction_price'] = $sumNumber['sum_deduction_price']; } - $list=self::getOrderWhere($where,$model)->where('is_del',0)->group('pay_type')->field(['sum(pay_price) as sum_pay_price','pay_type'])->select(); + $list = self::getOrderWhere($where,$model)->where($whereData)->group('pay_type')->column('sum(pay_price) as sum_pay_price,pay_type','id'); foreach ($list as $v){ if ($v['pay_type'] == 'weixin'){ $price['pay_price_wx'] = $v['sum_pay_price']; @@ -803,6 +868,26 @@ HTML; public static function getOrderBadge($where){ return [ + [ + 'name'=>'拼团订单数量', + 'field'=>'个', + 'count'=>self::setEchatWhere($where,2)->count(), + 'content'=>'拼团总订单数量', + 'background_color'=>'layui-bg-cyan', + 'sum'=>self::setEchatWhere($where,2,true)->count(), + 'class'=>'fa fa-line-chart', + 'col'=>2 + ], + [ + 'name'=>'砍价订单数量', + 'field'=>'个', + 'count'=>self::setEchatWhere($where,4)->count(), + 'content'=>'砍价总订单数量', + 'background_color'=>'layui-bg-cyan', + 'sum'=>self::setEchatWhere($where,4,true)->count(), + 'class'=>'fa fa-line-chart', + 'col'=>2 + ], [ 'name'=>'秒杀订单数量', 'field'=>'个', @@ -948,6 +1033,12 @@ HTML; ]); WechatTemplateService::sendTemplate($openid, WechatTemplateService::ORDER_POSTAGE_SUCCESS, $group, $url); } + }else if($postageData['delivery_type'] == 'fictitious'){ + if ($order['is_channel']) { + + }else{ + + } } } @@ -974,21 +1065,31 @@ HTML; */ public static function orderTakeAfter($order) { + $title = ''; + $cartInfo = self::getDb('StoreOrderCartInfo')->where('oid', $order['id'])->column('cart_info'); + + if(count($cartInfo)){ + foreach ($cartInfo as $key=>&$cart){ + $cart = json_decode($cart,true); + $title .= $cart['productInfo']['store_name'].','; + } + } + if(strlen(trim($title))) + $title = substr($title,0,bcsub(strlen($title),1,0)); + else{ + $cartInfo = self::getDb('store_cart')->alias('a')->where('a.id','in',implode(',',json_decode($order['cart_id'],true)))->find(); + $title = StoreProduct::where('id',$cartInfo['product_id'])->value('store_name'); + } + if($order['is_channel']){//小程序 RoutineTemplate::sendOut('OREDER_TAKEVER',$order['uid'],[ 'keyword1'=>$order['order_id'], - 'keyword2'=>self::getDb('store_cart')->alias('a')->join('__STORE_PRODUCT__ P','a.product_id=p.id')->where('a.id','in',$order['cart_id'])->value('p.title'), + 'keyword2'=>$title, 'keyword3'=>$order['pay_price'], 'keyword4'=>date('Y-m-d H:i:s',time()), ]); }else{ - $openid = WechatUser::where('uid',$order['uid'])->value('openid'); - $title=''; - $cartInfo = self::getDb('StoreOrderCartInfo')->where('oid', $order['id'])->column('product_id') ?: []; - foreach ($cartInfo as $k => $productId) { - $store_name=self::getDb('store_product')->where('id',$productId)->value('store_name'); - $title.=$store_name.','; - } + $openid = WechatUser::where('uid',$order['uid'])->value('openid'); WechatTemplateService::sendTemplate($openid,WechatTemplateService::ORDER_TAKE_SUCCESS,[ 'first'=>'亲,您的订单已收货', 'keyword1'=>$order['order_id'], diff --git a/application/admin/model/store/StoreProduct.php b/application/admin/model/store/StoreProduct.php index 3723f30e..98715a83 100644 --- a/application/admin/model/store/StoreProduct.php +++ b/application/admin/model/store/StoreProduct.php @@ -7,17 +7,15 @@ namespace app\admin\model\store; -use app\admin\model\wechat\WechatUser; -use app\admin\model\system\Merchant; +use app\admin\model\ump\StoreBargain; +use app\admin\model\ump\StoreCombination; +use app\admin\model\ump\StoreSeckill; use service\PHPExcelService; use think\Db; use traits\ModelTrait; use basic\ModelBasic; use app\admin\model\store\StoreCategory as CategoryModel; use app\admin\model\order\StoreOrder; -use app\admin\model\ump\StoreSeckill as StoreSeckillModel; -use app\admin\model\ump\StoreCombination as StoreCombinationModel; -use app\admin\model\ump\StoreBargain as StoreBargainModel; use app\admin\model\system\SystemConfig; /** @@ -33,22 +31,22 @@ class StoreProduct extends ModelBasic * @param $id */ public static function proDelete($id){ - //删除产品 - //删除属性 - //删除秒杀 - //删除拼团 - //删除砍价 - //删除拼团 - $model=new self(); - self::beginTrans(); - $res0 = $model::del($id); - $res1 = StoreSeckillModel::where(['product_id'=>$id])->delete(); - $res2 = StoreCombinationModel::where(['product_id'=>$id])->delete(); - $res3 = StoreBargainModel::where(['product_id'=>$id])->delete(); - //。。。。 - $res = $res0 && $res1 && $res2 && $res3; - self::checkTrans($res); - return $res; +// //删除产品 +// //删除属性 +// //删除秒杀 +// //删除拼团 +// //删除砍价 +// //删除拼团 +// $model=new self(); +// self::beginTrans(); +// $res0 = $model::del($id); +// $res1 = StoreSeckillModel::where(['product_id'=>$id])->delete(); +// $res2 = StoreCombinationModel::where(['product_id'=>$id])->delete(); +// $res3 = StoreBargainModel::where(['product_id'=>$id])->delete(); +// //。。。。 +// $res = $res0 && $res1 && $res2 && $res3; +// self::checkTrans($res); +// return $res; } /** * 获取连表查询条件 @@ -70,7 +68,8 @@ class StoreProduct extends ModelBasic $data = ['p.is_show'=>1,'p.is_del'=>0,'pav.stock|p.stock'=>0]; break; case 5: - $data = ['p.is_show'=>1,'p.is_del'=>0,'pav.stock|p.stock'=>['elt',1]]; + $min = SystemConfig::getValue('store_stock'); + $data = ['p.is_show'=>1,'p.is_del'=>0,'pav.stock|p.stock'=>['elt',$min]]; break; case 6: $data = ['p.is_del'=>1]; @@ -95,7 +94,13 @@ class StoreProduct extends ModelBasic $model = $model->where('p.store_name|p.keyword|p.id','LIKE',"%$where[store_name]%"); } if(isset($where['cate_id']) && trim($where['cate_id'])!=''){ - $model = $model->where('p.cate_id','LIKE',"%$where[cate_id]%"); + $catid1 = $where['cate_id'].',';//匹配最前面的cateid + $catid2 = ','.$where['cate_id'].',';//匹配中间的cateid + $catid3 = ','.$where['cate_id'];//匹配后面的cateid + $catid4 = $where['cate_id'];//匹配全等的cateid +// $model = $model->whereOr('p.cate_id','LIKE',["%$catid%",$catidab]); + $sql = " LIKE '$catid1%' OR `cate_id` LIKE '%$catid2%' OR `cate_id` LIKE '%$catid3' OR `cate_id`=$catid4"; + $model->where(self::getPidSql($where['cate_id'])); } if(isset($where['order']) && $where['order']!=''){ $model = $model->order(self::setOrder($where['order'])); @@ -103,6 +108,30 @@ class StoreProduct extends ModelBasic } return $model; } + + /**根据cateid查询产品 拼sql语句 + * @param $cateid + * @return string + */ + protected static function getCateSql($cateid){ + $lcateid = $cateid.',%';//匹配最前面的cateid + $ccatid = '%,'.$cateid.',%';//匹配中间的cateid + $ratidid = '%,'.$cateid;//匹配后面的cateid + return " `cate_id` LIKE '$lcateid' OR `cate_id` LIKE '$ccatid' OR `cate_id` LIKE '$ratidid' OR `cate_id`=$cateid"; + } + + /** 如果有子分类查询子分类获取拼接查询sql + * @param $cateid + * @return string + */ + protected static function getPidSql($cateid){ + + $sql = self::getCateSql($cateid); + $ids = CategoryModel::where('pid', $cateid)->column('id'); + //查询如果有子分类获取子分类查询sql语句 + if($ids) foreach ($ids as $v) $sql .= " OR ".self::getcatesql($v); + return $sql; + } /* * 获取产品列表 * @param $where array @@ -114,7 +143,7 @@ class StoreProduct extends ModelBasic if($where['excel']==0) $model=$model->page((int)$where['page'],(int)$where['limit']); $data=($data=$model->select()) && count($data) ? $data->toArray():[]; foreach ($data as &$item){ - $cateName = CategoryModel::where('id','IN',$item['cate_id'])->column('cate_name','id'); + $cateName = CategoryModel::where('id', 'IN', $item['cate_id'])->column('cate_name', 'id'); $item['cate_name']=is_array($cateName) ? implode(',',$cateName) : ''; $item['collect'] = StoreProductRelation::where('product_id',$item['id'])->where('type','collect')->count();//收藏 $item['like'] = StoreProductRelation::where('product_id',$item['id'])->where('type','like')->count();//点赞 @@ -123,6 +152,7 @@ class StoreProduct extends ModelBasic $item['sales_attr'] = self::getSales($item['id']);//属性销量 $item['visitor'] = Db::name('store_visit')->where('product_id',$item['id'])->where('product_type','product')->count(); } + unset($item); if($where['excel']==1){ $export = []; foreach ($data as $index=>$item){ @@ -184,28 +214,58 @@ class StoreProduct extends ModelBasic } //获取 badge 内容 public static function getbadge($where,$type){ - $StoreOrderModel=new StoreOrder; $replenishment_num = SystemConfig::getValue('replenishment_num'); $replenishment_num = $replenishment_num > 0 ? $replenishment_num : 20; - $stock1=self::getModelTime($where,new self())->where('stock','<',$replenishment_num)->column('stock'); - $sum_stock=self::where('stock','<',$replenishment_num)->column('stock'); - $stk=[]; + $sum = []; + $lack = 0; + + //获取普通产品缺货 + $stock1 = self::getModelTime($where,new self())->where('stock','<',$replenishment_num)->column('stock'); + $sum_stock = self::where('stock','<',$replenishment_num)->column('stock'); + $stk = []; foreach ($stock1 as $item){ - $stk[]=$replenishment_num-$item; + $stk[] = $replenishment_num-$item; } - $lack=array_sum($stk); - $sum=[]; + $lack = bcadd($lack,array_sum($stk),0); foreach ($sum_stock as $val){ - $sum[]=$replenishment_num-$val; + $sum[] = $replenishment_num-$val; } + unset($stk,$sum_stock,$stock1); + + //获取砍价缺货产品 + $stock1 = self::getModelTime($where,new StoreBargain())->where('stock','<',$replenishment_num)->column('stock'); + $sum_stock = StoreBargain::where('stock','<',$replenishment_num)->column('stock'); + $stk = []; + foreach ($stock1 as $item){ + $stk[] = $replenishment_num-$item; + } + $lack = bcadd($lack,array_sum($stk),0); + foreach ($sum_stock as $val){ + $sum[] = $replenishment_num-$val; + } + unset($stk,$sum_stock,$stock1); + + //获取拼团缺货产品 + $stock1 = self::getModelTime($where,new StoreCombination())->where('stock','<',$replenishment_num)->column('stock'); + $sum_stock = StoreCombination::where('stock','<',$replenishment_num)->column('stock'); + $stk = []; + foreach ($stock1 as $item){ + $stk[] = $replenishment_num - $item; + } + $lack = bcadd($lack,array_sum($stk),0); + foreach ($sum_stock as $val){ + $sum[] = $replenishment_num - $val; + } + unset($stk,$sum_stock,$stock1); + return [ [ - 'name'=>'商品数量', + 'name'=>'商品种类', 'field'=>'件', - 'count'=>self::setWhereType(new self(),$type)->where('add_time','<',mktime(0,0,0,date('m'),date('d'),date('Y')))->sum('stock'), + 'count'=>self::setWhereType(new self(),$type)->where('add_time','<',mktime(0,0,0,date('m'),date('d'),date('Y')))->count(), 'content'=>'商品数量总数', 'background_color'=>'layui-bg-blue', - 'sum'=>self::sum('stock'), + 'sum'=>self::count(), 'class'=>'fa fa fa-ioxhost', ], [ @@ -220,10 +280,10 @@ class StoreProduct extends ModelBasic [ 'name'=>'活动商品', 'field'=>'件', - 'count'=>self::getModelTime($where,$StoreOrderModel)->sum('total_num'), + 'count'=>self::getActivityProductSum($where), 'content'=>'活动商品总数', 'background_color'=>'layui-bg-green', - 'sum'=>$StoreOrderModel->sum('total_num'), + 'sum'=>self::getActivityProductSum(), 'class'=>'fa fa-bar-chart', ], [ @@ -237,6 +297,25 @@ class StoreProduct extends ModelBasic ], ]; } + + /* + * 获取活动产品总和 + * @param array $where 查询条件 + * */ + public static function getActivityProductSum($where=false) + { + if($where){ + $bargain=self::getModelTime($where,new StoreBargain())->sum('stock'); + $pink=self::getModelTime($where,new StoreCombination())->sum('stock'); + $seckill=self::getModelTime($where,new StoreSeckill())->sum('stock'); + }else{ + $bargain=StoreBargain::sum('stock'); + $pink=StoreCombination::sum('stock'); + $seckill=StoreSeckill::sum('stock'); + } + return bcadd(bcadd($bargain,$pink,0),$seckill,0); + } + public static function setWhereType($model,$type){ switch ($type){ case 1: @@ -564,4 +643,14 @@ class StoreProduct extends ModelBasic ->page((int)$where['page'],(int)$where['limit']) ->select(); } + + /** + * TODO 获取某个字段值 + * @param $id + * @param string $field + * @return mixed + */ + public static function getProductField($id,$field = 'store_name'){ + return self::where('id',$id)->value($field); + } } \ No newline at end of file diff --git a/application/admin/model/store/StoreProductAttrValue.php b/application/admin/model/store/StoreProductAttrValue.php index 9e92f88e..d20fc1dd 100644 --- a/application/admin/model/store/StoreProductAttrValue.php +++ b/application/admin/model/store/StoreProductAttrValue.php @@ -33,7 +33,12 @@ class StoreProductAttrValue extends ModelBasic * */ public static function incProductAttrStock($productId,$unique,$num) { - return false !== self::where('product_id',$productId)->where('unique',$unique)->inc('stock',$num)->dec('sales',$num)->update(); + $productAttr=self::where(['product_id'=>$productId,'unique'=>$unique])->field(['stock','sales'])->find(); + if(!$productAttr) return true; + if($productAttr->sales > 0) $productAttr->sales=bcsub($productAttr->sales,$num,0); + if($productAttr->sales < 0) $productAttr->sales=0; + $productAttr->stock = bcadd($productAttr->stock, $num,0); + return $productAttr->save(); } public static function decProductAttrStock($productId,$unique,$num) diff --git a/application/admin/model/system/SystemAttachment.php b/application/admin/model/system/SystemAttachment.php index fc16fd2e..2fb0a0fc 100644 --- a/application/admin/model/system/SystemAttachment.php +++ b/application/admin/model/system/SystemAttachment.php @@ -7,6 +7,8 @@ namespace app\admin\model\system; +use Api\Storage\Qiniu\Qiniu; +use app\core\util\SystemConfigService; use traits\ModelTrait; use basic\ModelBasic; @@ -18,35 +20,81 @@ use basic\ModelBasic; class SystemAttachment extends ModelBasic { use ModelTrait; - /**添加附件记录 + + /** + * TODO 添加附件记录 + * @param $name + * @param $att_size + * @param $att_type + * @param $att_dir + * @param string $satt_dir + * @param int $pid + * @param int $imageType + * @param int $time + * @return SystemAttachment */ - public static function attachmentAdd($name,$att_size,$att_type,$att_dir,$satt_dir='',$pid = 0 ) + public static function attachmentAdd($name,$att_size,$att_type,$att_dir,$satt_dir='',$pid = 0,$imageType = 1 ,$time = 0 , $module_type=1) { $data['name'] = $name; $data['att_dir'] = $att_dir; $data['satt_dir'] = $satt_dir; $data['att_size'] = $att_size; $data['att_type'] = $att_type; - $data['time'] = time(); + $data['image_type'] = $imageType; + $data['module_type'] = $module_type; + $data['time'] = $time ? $time : time(); $data['pid'] = $pid; return self::create($data); } + /** - * 获取分类图 - * */ + * TODO 获取分类图 + * @param $id + * @return array + */ public static function getAll($id){ $model = new self; $where['pid'] = $id; + $where['module_type'] = 1; $model->where($where)->order('att_id desc'); return $model->page($model,$where,'',24); } - /** - * 获取单条信息 - * */ - public static function getinfo($att_id){ - $model = new self; - $where['att_id'] = $att_id; - return $model->where($where)->select()->toArray()[0]; + + public static function getImageList($where) + { + $list = self::where(['pid'=>$where['pid'],'module_type'=>1])->page((int)$where['page'],(int)$where['limit'])->order('att_id desc,time desc')->select(); + $list = count($list) ? $list->toArray() : []; + $site_url = SystemConfig::getValue('site_url'); + foreach ($list as &$item){ + $item['satt_dir'] = (strpos($item['satt_dir'],$site_url) !== false || strstr($item['satt_dir'],'http') !== false) ? $item['satt_dir']:$site_url.$item['satt_dir']; + $item['att_dir'] = (strpos($item['att_dir'],$site_url) !== false || strstr($item['att_dir'],'http') !== false) ? $item['satt_dir']:$site_url.$item['att_dir']; + } + $count = self::where(['pid'=>$where['pid'],'module_type'=>1])->count(); + return compact('list','count'); } + /** + * TODO 获取单条信息 + * @param $value + * @param string $field + * @return array + * @throws \think\Exception + * @throws \think\db\exception\DataNotFoundException + * @throws \think\db\exception\ModelNotFoundException + * @throws \think\exception\DbException + */ + public static function getInfo($value,$field = 'att_id'){ + $where[$field] = $value; + $count = self::where($where)->count(); + if(!$count) return false; + return self::where($where)->find()->toArray(); + } + + /* + * 清除昨日海报 + * */ + public static function emptyYesterDayAttachment() + { + self::whereTime('time','yesterday')->where(['module_type'=>2])->delete(); + } } \ No newline at end of file diff --git a/application/admin/model/system/SystemAttachmentCategory.php b/application/admin/model/system/SystemAttachmentCategory.php index b1639b63..1a686ca5 100644 --- a/application/admin/model/system/SystemAttachmentCategory.php +++ b/application/admin/model/system/SystemAttachmentCategory.php @@ -31,18 +31,25 @@ class SystemAttachmentCategory extends ModelBasic $data['pid'] = $pid; return self::create($data); } - /** - * 获取分类图 - * */ - public static function getAll(){ + public static function getAll($name){ $model = new self; - return self::tidyMenuTier($model->select(),0); + if($name) $model = $model->where('name','LIKE',"%$name%"); + $navList = $model->select(); + $navList = count($navList) ? $navList->toArray() : []; + $navPidList = []; + if($name) { + foreach ($navList as $value) { + if ($value['pid']) $navPidList [] = self::where('id', $value['pid'])->find(); + } + } + return self::tidyMenuTier(array_merge($navList,$navPidList),0); } + public static function tidyMenuTier($menusList,$pid = 0,$navList = []) { foreach ($menusList as $k=>$menu){ - $menu = $menu->getData(); + $menu = is_object($menu) ? $menu->getData() : $menu; if($menu['pid'] == $pid){ unset($menusList[$k]); $menu['child'] = self::tidyMenuTier($menusList,$menu['id']); diff --git a/application/admin/model/system/SystemConfig.php b/application/admin/model/system/SystemConfig.php index a6d73287..3c689f19 100644 --- a/application/admin/model/system/SystemConfig.php +++ b/application/admin/model/system/SystemConfig.php @@ -67,6 +67,18 @@ class SystemConfig extends ModelBasic { if(empty($menu) || !($config_one = self::get(['menu_name'=>$menu]))) return false; return json_decode($config_one['value'],true); } + /** + * 获取单个参数配置 + * @param $menu + * @return bool|mixed + * @throws \think\db\exception\DataNotFoundException + * @throws \think\db\exception\ModelNotFoundException + * @throws \think\exception\DbException + */ + public static function getConfigValue($menu){ + if(empty($menu) || !($config_one = self::where('menu_name', $menu)->find())) return false; + return json_decode($config_one['value'],true); + } /** * 获得多个参数 @@ -157,7 +169,7 @@ class SystemConfig extends ModelBasic { * */ public static function getAll($id){ $where['config_tab_id'] = $id; -// $where['status'] = 1; + $where['status'] = 1; return self::where($where)->order('sort desc,id asc')->select(); } diff --git a/application/admin/model/system/SystemUserLevel.php b/application/admin/model/system/SystemUserLevel.php index 0f5526f8..3892d646 100644 --- a/application/admin/model/system/SystemUserLevel.php +++ b/application/admin/model/system/SystemUserLevel.php @@ -35,6 +35,7 @@ class SystemUserLevel extends ModelBasic $model=$model===null ? new self() : $model; if($alert) $model=$model->alias($alert); $alert=$alert ? $alert.'.': ''; + $model = $model->where("{$alert}is_del",0); if(isset($where['is_show']) && $where['is_show']!=='') $model=$model->where("{$alert}is_show",$where['is_show']); if(isset($where['title']) && $where['title']) $model=$model->where("{$alert}name",'LIKE',"%$where[title]%"); return $model; diff --git a/application/admin/model/ump/StoreSeckill.php b/application/admin/model/ump/StoreSeckill.php index 56c8a5f3..69fd6cd5 100644 --- a/application/admin/model/ump/StoreSeckill.php +++ b/application/admin/model/ump/StoreSeckill.php @@ -117,12 +117,12 @@ class StoreSeckill extends ModelBasic } return [ [ - 'name'=>'商品数量', + 'name'=>'商品种类', 'field'=>'件', - 'count'=>self::setWhereType(new self(),$type)->where('add_time','<',mktime(0,0,0,date('m'),date('d'),date('Y')))->sum('stock'), - 'content'=>'商品数量总数', + 'count'=>self::setWhereType(new self(),$type)->where('add_time','<',mktime(0,0,0,date('m'),date('d'),date('Y')))->count(), + 'content'=>'商品种类总数', 'background_color'=>'layui-bg-blue', - 'sum'=>self::sum('stock'), + 'sum'=>self::count(), 'class'=>'fa fa fa-ioxhost', ], [ @@ -135,12 +135,12 @@ class StoreSeckill extends ModelBasic 'class'=>'fa fa-line-chart', ], [ - 'name'=>'活动商品', + 'name'=>'秒杀成功商品件数', 'field'=>'件', 'count'=>self::getModelTime($where,$StoreOrderModel)->where('seckill_id','NEQ',0)->sum('total_num'), - 'content'=>'活动商品总数', + 'content'=>'秒杀成功商品总件数', 'background_color'=>'layui-bg-green', - 'sum'=>$StoreOrderModel->sum('total_num'), + 'sum'=>$StoreOrderModel->where('seckill_id','NEQ',0)->sum('total_num'), 'class'=>'fa fa-bar-chart', ], [ @@ -328,4 +328,14 @@ class StoreSeckill extends ModelBasic public static function getSeckillCount(){ return self::where('is_del',0)->count(); } + + /** + * TODO 获取某个字段值 + * @param $id + * @param string $field + * @return mixed + */ + public static function getSeckillField($id,$field = 'title'){ + return self::where('id',$id)->value($field); + } } \ No newline at end of file diff --git a/application/admin/model/user/User.php b/application/admin/model/user/User.php index 4db21684..539ae2d7 100644 --- a/application/admin/model/user/User.php +++ b/application/admin/model/user/User.php @@ -42,6 +42,36 @@ class User extends ModelBasic } },$where); } + + /* + * 获取和提现金额 + * @param array $uid + * @return float + * */ + public static function getextractPrice($uid,$where=[]) + { + if(is_array($uid)) + if(!count($uid)) return 0; + else + $uid = [$uid]; + $brokerage= UserBill::getBrokerage($uid,'now_money','brokerage',$where);//获取总佣金 + $recharge = UserBill::getBrokerage($uid,'now_money','recharge',$where);//累计充值 + $extractTotalPrice = UserExtract::userExtractTotalPrice($uid,1,$where);//累计提现 + if($brokerage > $extractTotalPrice) { + $orderYuePrice = self::getModelTime($where,StoreOrder::where('uid','in',$uid)->where(['is_del'=>0,'paid'=>1]))->sum('pay_price');//余额累计消费 + $systemAdd = UserBill::getBrokerage($uid,'now_money','system_add',$where);//后台添加余额 + $yueCount = bcadd($recharge,$systemAdd,2);// 后台添加余额 + 累计充值 = 非佣金的总金额 + $orderYuePrice = $yueCount > $orderYuePrice ? 0 : bcsub($orderYuePrice,$yueCount,2);// 余额累计消费(使用佣金消费的金额) + $brokerage = bcsub($brokerage,$extractTotalPrice,2);//减去已提现金额 + $extract_price = UserExtract::userExtractTotalPrice($uid,0,$where); + $brokerage = $extract_price < $brokerage ? bcsub($brokerage,$extract_price,2) : 0;//减去审核中的提现金额 + $brokerage = $brokerage > $orderYuePrice ? bcsub($brokerage,$orderYuePrice,2) : 0;//减掉余额支付 + }else{ + $brokerage=0; + } + $num = (float)bcsub($brokerage,$extractTotalPrice,2); + return $num > 0 ? $num : 0;//可提现 + } /* * 设置搜索条件 * @@ -363,12 +393,16 @@ class User extends ModelBasic } //获取用户新增,头部信息 public static function getBadgeList($where){ - $user_count=self::setWherePage(self::getModelTime($where,new self),$where,['is_promoter','status'])->count(); - $user_count_old=self::getOldDate($where)->count(); - $fenxiao=self::setWherePage(self::getModelTime($where,new self),$where,['is_promoter','status'])->where('spread_uid','<>',0)->count(); - $fenxiao_count=self::getOldDate($where)->where('spread_uid','neq',0)->count(); - $newFemxiao_count=bcsub($fenxiao,$fenxiao_count,0); - $order_count=bcsub($user_count,$user_count_old,0); + $user_count = self::setWherePage(self::getModelTime($where,new self),$where,['is_promoter','status'])->count(); + $user_count_old = self::getOldDate($where)->count(); + $store_brokerage_statu = SystemConfigService::get('store_brokerage_statu'); + if($store_brokerage_statu == 1) + $fenxiao = self::setWherePage(self::getModelTime($where,new self),$where,['is_promoter','status'])->where('spread_uid','<>',0)->count(); + else + $fenxiao = self::count(); + $fenxiao_count = self::getOldDate($where)->where('spread_uid','neq',0)->count(); + $newFemxiao_count = bcsub($fenxiao,$fenxiao_count,0); + $order_count = bcsub($user_count,$user_count_old,0); return [ [ 'name'=>'会员人数', @@ -394,7 +428,7 @@ class User extends ModelBasic 'count'=>$fenxiao, 'content'=>'分销总人数', 'background_color'=>'layui-bg-green', - 'sum'=>self::where('spread_uid','neq',0)->count(), + 'sum'=>$store_brokerage_statu == 1 ? self::where('spread_uid','neq',0)->count() : $fenxiao, 'class'=>'fa fa-bar-chart', ], [ @@ -414,28 +448,28 @@ class User extends ModelBasic * $limit 显示条数,是否有滚动条 */ public static function getUserChartList($where,$limit=20){ - $list=self::setWherePage(self::getModelTime($where,new self),$where,['is_promoter','status']) + $list = self::setWherePage(self::getModelTime($where,new self),$where,['is_promoter','status']) ->where('add_time','neq',0) ->field(['FROM_UNIXTIME(add_time,"%Y-%m-%d") as _add_time','count(uid) as num']) ->order('_add_time asc') ->group('_add_time') ->select(); - count($list) && $list=$list->toArray(); - $seriesdata=[]; - $xdata=[]; - $Zoom=''; + count($list) && $list = $list->toArray(); + $seriesdata = []; + $xdata = []; + $Zoom = ''; foreach ($list as $item){ - $seriesdata[]=$item['num']; - $xdata[]=$item['_add_time']; + $seriesdata[] = $item['num']; + $xdata[] = $item['_add_time']; } - (count($xdata) > $limit) && $Zoom=$xdata[$limit-5]; + (count($xdata) > $limit) && $Zoom = $xdata[$limit-5]; //多次购物会员数量饼状图 - $count=self::setWherePage(self::getModelTime($where,new self),$where,['is_promoter'])->count(); - $user_count=self::setWherePage(self::getModelTime($where,self::alias('a')->join('__STORE_ORDER__ r','r.uid=a.uid'),'a.add_time'),$where,['is_promoter']) + $count = self::setWherePage(self::getModelTime($where,new self),$where,['is_promoter'])->count(); + $user_count = self::setWherePage(self::getModelTime($where,self::alias('a')->join('__STORE_ORDER__ r','r.uid=a.uid'),'a.add_time'),$where,['is_promoter']) ->where('r.paid',1)->count('a.uid'); - $shop_xdata=['多次购买数量占比','无购买数量占比']; - $shop_data=[]; - $count >0 && $shop_data=[ + $shop_xdata = ['多次购买数量占比','无购买数量占比']; + $shop_data = []; + $count >0 && $shop_data = [ [ 'value'=>bcdiv($user_count,$count,2)*100, 'name'=>$shop_xdata[0], @@ -522,13 +556,33 @@ class User extends ModelBasic } //获取佣金记录列表 public static function getCommissionList($where){ - $list=self::setCommissionWhere($where) - ->page((int)$where['page'],(int)$where['limit']) - ->select(); + $model = self::setCommissionWhere($where); + if($where['excel']) + $list = $model->select(); + else + $list = $model->page((int)$where['page'],(int)$where['limit'])->select(); count($list) && $list=$list->toArray(); + $export=[]; foreach ($list as &$value){ $value['ex_price']= Db::name('user_extract')->where(['uid'=>$value['uid']])->sum('extract_price'); $value['extract_price']= Db::name('user_extract')->where(['uid'=>$value['uid'],'status'=>1])->sum('extract_price'); + $cashPrice = Db::name('user_extract')->where(['uid'=>$value['uid'],'status'=>0])->sum('extract_price'); + $value['money'] = bcsub($value['ex_price'],$value['extract_price'],2); + $value['money'] = bcsub($value['money'],$cashPrice,2); + $export[]=[ + $value['nickname'], + $value['sum_number'], + $value['now_money'], + $value['money'], + $value['ex_price'], + $value['extract_price'], + ]; + } + if($where['excel']){ + \service\PHPExcelService::setExcelHeader(['昵称/姓名','总佣金金额','提现佣金','余额','剩余佣金','提现到账佣金']) + ->setExcelTile('拥金记录','拥金记录'.time(),' 生成时间:'.date('Y-m-d H:i:s',time())) + ->setExcelContent($export) + ->ExcelSave(); } $count=self::setCommissionWhere($where)->count(); return ['data'=>$list,'count'=>$count]; diff --git a/application/admin/model/user/UserBill.php b/application/admin/model/user/UserBill.php index c21435a5..a8456e73 100644 --- a/application/admin/model/user/UserBill.php +++ b/application/admin/model/user/UserBill.php @@ -22,7 +22,21 @@ class UserBill extends ModelBasic { return time(); } - + + /* + * 获取总佣金 + * */ + public static function getBrokerage($uid,$category = 'now_money',$type='brokerage',$where) + { + return self::getModelTime($where,self::where('uid','in',$uid)->where(['category'=>$category,'type'=>$type,'pm'=>1,'status'=>1]))->sum('number'); + } + //修改积分减少积分记录 + public static function expend($title,$uid,$category,$type,$number,$link_id = 0,$balance = 0,$mark = '',$status = 1) + { + $pm = 0; + return self::set(compact('title','uid','link_id','category','type','number','balance','mark','status','pm')); + } + //修改积分增加积分记录 public static function income($title,$uid,$category,$type,$number,$link_id = 0,$balance = 0,$mark = '',$status = 1){ $pm = 1; return self::set(compact('title','uid','link_id','category','type','number','balance','mark','status','pm')); @@ -165,9 +179,10 @@ class UserBill extends ModelBasic //查询积分个人明细 public static function getOneIntegralList($where){ return self::setWhereList( - $where, - ['deduction','system_add'], - ['title','number','balance','mark','FROM_UNIXTIME(add_time,"%Y-%m-%d") as add_time'] + $where,'', +// ['deduction','system_add','sign'], + ['title','number','balance','mark','FROM_UNIXTIME(add_time,"%Y-%m-%d") as add_time'], + 'integral' ); } //查询个人签到明细 @@ -180,8 +195,8 @@ class UserBill extends ModelBasic //查询个人余额变动记录 public static function getOneBalanceChangList($where){ $list=self::setWhereList( - $where, - ['system_add','pay_product','extract','pay_product_refund','system_sub'], + $where,'', +// ['system_add','pay_product','extract','pay_product_refund','system_sub','brokerage','recharge','user_recharge_refund'], ['FROM_UNIXTIME(add_time,"%Y-%m-%d") as add_time','title','type','mark','number','balance','pm','status'], 'now_money' ); @@ -202,6 +217,15 @@ class UserBill extends ModelBasic case 'system_sub': $item['_type']='系统减少'; break; + case 'brokerage': + $item['_type']='系统返佣'; + break; + case 'recharge': + $item['_type']='余额充值'; + break; + case 'user_recharge_refund': + $item['_type']='系统退款'; + break; } $item['_pm']=$item['pm']==1 ? '获得': '支出'; } @@ -212,11 +236,12 @@ class UserBill extends ModelBasic $models=self::where('uid',$where['uid']) ->where('category',$category) ->page((int)$where['page'],(int)$where['limit']) + ->order('id','desc') ->field($field); if(is_array($type)){ $models=$models->where('type','in',$type); }else{ - $models=$models->where('type',$type); + if(!empty($type))$models=$models->where('type',$type); } return ($list=$models->select()) && count($list) ? $list->toArray():[]; } @@ -224,7 +249,7 @@ class UserBill extends ModelBasic public static function getScoreBadgeList($where){ return [ [ - 'name'=>'总积分', + 'name'=>'历史总积分', 'field'=>'个', 'count'=>self::getModelTime($where,new self())->where('category','integral')->where('type','in',['gain','system_sub','deduction','sign'])->sum('number'), 'background_color'=>'layui-bg-blue', diff --git a/application/admin/model/user/UserExtract.php b/application/admin/model/user/UserExtract.php index d1475e04..acc8b04f 100644 --- a/application/admin/model/user/UserExtract.php +++ b/application/admin/model/user/UserExtract.php @@ -11,6 +11,7 @@ namespace app\admin\model\user; use app\admin\model\user\User; use app\admin\model\user\UserBill; use app\admin\model\wechat\WechatUser; +use app\core\model\routine\RoutineTemplate; use think\Url; use traits\ModelTrait; use basic\ModelBasic; @@ -23,6 +24,16 @@ use app\core\util\WechatTemplateService; class UserExtract extends ModelBasic { use ModelTrait; + + /** + * 获得用户提现总金额 + * @param $uid + * @return mixed + */ + public static function userExtractTotalPrice($uid,$status=1,$where=[]) + { + return self::getModelTime($where,self::where('uid','in',$uid)->where('status',$status))->sum('extract_price')?:0; + } /** * @param $where * @return array @@ -51,37 +62,75 @@ class UserExtract extends ModelBasic $User= User::find(['uid'=>$uid])->toArray(); UserBill::income('提现失败',$uid,'now_money','extract',$extract_number,$id,bcadd($User['now_money'],$extract_number,2),$mark); User::bcInc($uid,'now_money',$extract_number,'uid'); - if($User['user_type'] == 'wechat'){ - WechatTemplateService::sendTemplate(WechatUser::uidToOpenid($uid),WechatTemplateService::USER_BALANCE_CHANGE,[ + $extract_type='未知方式'; + switch ($data['extract_type']){ + case 'alipay': + $extract_type='支付宝'; + break; + case 'bank': + $extract_type='银行卡'; + break; + case 'weixin': + $extract_type='微信'; + break; + } + if(strtolower($User['user_type']) == 'wechat'){ + WechatTemplateService::sendTemplate(WechatUser::where('uid',$uid)->value('openid'),WechatTemplateService::USER_BALANCE_CHANGE,[ 'first'=> $mark, 'keyword1'=>'佣金提现', 'keyword2'=>date('Y-m-d H:i:s',time()), 'keyword3'=>$extract_number, 'remark'=>'错误原因:'.$fail_msg ],Url::build('wap/my/user_pro',[],true,true)); + }else if(strtolower($User['user_type'])=='routine'){ + RoutineTemplate::sendOut('USER_EXTRACT_FALSE',$uid,[ + 'keyword1'=>$fail_msg, + 'keyword2'=>$extract_number, + 'keyword3'=>$extract_type, + 'keyword4'=>date('Y-m-d H:i:s',time()), + ]); } - return self::edit(compact('fail_time','fail_msg','status'),$id); } public static function changeSuccess($id) { - $status = 1; - $data =self::get($id); - $extract_number=$data['extract_price']; - $mark='成功提现佣金'.$extract_number.'元'; - $uid=$data['uid']; - $User= User::find(['uid'=>$uid])->toArray(); - if($User['user_type'] == 'wechat') { - WechatTemplateService::sendTemplate(WechatUser::uidToOpenid($uid), WechatTemplateService::USER_BALANCE_CHANGE, [ - 'first' => $mark, - 'keyword1' => '佣金提现', - 'keyword2' => date('Y-m-d H:i:s', time()), - 'keyword3' => $extract_number, - 'remark' => '点击查看我的佣金明细' - ], Url::build('wap/my/user_pro', [], true, true)); + + $data = self::get($id); + $extractNumber = $data['extract_price']; + $mark = '成功提现佣金'.$extractNumber.'元'; + $wechatUserInfo = WechatUser::where('uid',$data['uid'])->field(['openid','user_type','routine_openid'])->find(); + $extract_type='未知方式'; + switch ($data['extract_type']){ + case 'alipay': + $extract_type='支付宝'; + break; + case 'bank': + $extract_type='银行卡'; + break; + case 'weixin': + $extract_type='微信'; + break; } - return self::edit(compact('status'),$id); + if($wechatUserInfo){ + if(strtolower($wechatUserInfo->user_type)=='routine'){ + RoutineTemplate::sendOut('USER_EXTRACT_TRUE',$data['uid'],[ + 'keyword1'=>$extractNumber.'元', + 'keyword2'=>'审核成功', + 'keyword3'=>date('Y-m-d H:i:s', time()), + 'keyword4'=>$extract_type, + ]); + }else if(strtolower($wechatUserInfo->user_type)=='wechat'){ + WechatTemplateService::sendTemplate($wechatUserInfo->openid, WechatTemplateService::USER_BALANCE_CHANGE, [ + 'first' => $mark, + 'keyword1' => '佣金提现', + 'keyword2' => date('Y-m-d H:i:s', time()), + 'keyword3' => $extractNumber, + 'remark' => '点击查看我的佣金明细' + ], Url::build('wap/my/user_pro', [], true, true)); + } + } + return self::edit(['status'=>1],$id); } //测试数据 public static function test(){ @@ -249,10 +298,16 @@ class UserExtract extends ModelBasic * @param int $uid * @return int|mixed */ - public static function getUserCountPrice($uid = 0){ + public static function getUserCountPrice($uid = 0,$where=[]){ if(!$uid) return 0; - $price = self::where('uid',$uid)->where('status',1)->field('sum(extract_price) as price')->find()['price']; - return $price ? $price : 0; + $model = new self(); + if(is_array($uid)){ + $model = $model->where('uid','in',$uid); + }else{ + $model = $model->where('uid',$uid); + } + if($where) $model = self::getModelTime($where,$model); + return $model->where('status',1)->sum('extract_price'); } /** @@ -260,8 +315,15 @@ class UserExtract extends ModelBasic * @param int $uid * @return int|string */ - public static function getUserCountNum($uid = 0){ + public static function getUserCountNum($uid = 0,$where=[]){ if(!$uid) return 0; - return self::where('uid',$uid)->count(); + $model = new self(); + if(is_array($uid)){ + $model = $model->where('uid','in',$uid); + }else{ + $model = $model->where('uid',$uid); + } + if($where) $model = self::getModelTime($where,$model); + return $model->count(); } } \ No newline at end of file diff --git a/application/admin/model/user/UserLevel.php b/application/admin/model/user/UserLevel.php index ce0a01c1..2898f743 100644 --- a/application/admin/model/user/UserLevel.php +++ b/application/admin/model/user/UserLevel.php @@ -1,10 +1,6 @@ <?php -/** - * - * @author: xaboy<365615158@qq.com> - * @day: 2017/11/11 - */ namespace app\admin\model\user; + use app\admin\model\system\SystemUserLevel; use traits\ModelTrait; use basic\ModelBasic; @@ -51,4 +47,24 @@ class UserLevel extends ModelBasic return compact('data','count'); } + /* + * 清除会员等级 + * @paran int $uid + * @paran boolean + * */ + public static function cleanUpLevel($uid) + { + self::rollbackTrans(); + $res=false !== self::where(['uid'=>$uid])->update(['is_del'=>1]); + $res= $res && self::getDb('user_task_finish')->where(['uid'=>$uid])->delete(); + if($res){ + User::where(['uid'=>$uid])->update(['clean_time'=>time()]); + self::commitTrans(); + return true; + }else{ + self::rollbackTrans(); + return self::setErrorInfo('清除失败'); + } + } + } \ No newline at end of file diff --git a/application/admin/model/user/UserRecharge.php b/application/admin/model/user/UserRecharge.php index 596eb675..653c6451 100644 --- a/application/admin/model/user/UserRecharge.php +++ b/application/admin/model/user/UserRecharge.php @@ -29,7 +29,7 @@ use basic\ModelBasic; $model = $model->whereOr('A.id',(int)$where['order_id']); $model = $model->whereOr('B.nickname','like',"%$where[order_id]%"); } - $model = $model->where('A.recharge_type','weixin'); + //$model = $model->where('A.recharge_type','weixin'); $model = $model->where('A.paid',1); $model = $model->field('A.*,B.nickname'); $model = $model->join('__USER__ B','A.uid = B.uid','RIGHT'); diff --git a/application/admin/model/wechat/WechatReply.php b/application/admin/model/wechat/WechatReply.php index 7fd197e3..0f90a377 100644 --- a/application/admin/model/wechat/WechatReply.php +++ b/application/admin/model/wechat/WechatReply.php @@ -113,7 +113,9 @@ class WechatReply extends ModelBasic $res = []; //TODO 图片转media $res['src'] = $data['src']; - $material = (WechatService::materialService()->uploadImage(UtilService::urlToPath($data['src']))); + if(strstr($data['src'],'http') === false) $data['src'] = UtilService::urlToPath($data['src']); + $data['src'] = strstr($data['src'],'public'); + $material = (WechatService::materialService()->uploadImage($data['src'])); $res['media_id'] = $material->media_id; HookService::afterListen('wechat_material', ['media_id' => $material->media_id, 'path' => $res['src'], 'url' => $material->url], 'image'); diff --git a/application/admin/model/wechat/WechatUser.php b/application/admin/model/wechat/WechatUser.php index f99d3e58..a985138e 100644 --- a/application/admin/model/wechat/WechatUser.php +++ b/application/admin/model/wechat/WechatUser.php @@ -9,7 +9,9 @@ namespace app\admin\model\wechat; use app\admin\model\order\StoreOrder; +use app\admin\model\order\StoreOrderStatus; use app\admin\model\user\User; +use app\admin\model\user\UserBill; use app\admin\model\user\UserExtract; use service\ExportService; use app\core\util\QrcodeService; @@ -154,75 +156,478 @@ use app\core\util\SystemConfigService; } return self::page($model,$where); } -/** + + public static function setSpreadWhere($where=[],$alias='a',$model=null) + { + $model=is_null($model) ? new self() : $model; + if($alias){ + $model=$model->alias($alias)->join('user u','a.uid=u.uid')->order('u.uid desc'); + $alias.='.'; + } + $status = (int)SystemConfigService::get('store_brokerage_statu'); + if ($status == 1) { + if ($uids = User::where(['is_promoter' => 1])->column('uid')) + $model = $model->where($alias.'uid', 'in', implode(',', $uids)); + else + $model = $model->where($alias.'uid',-1); + } + if($where['nickname'] !== '') $model = $model->where("{$alias}nickname|{$alias}uid|u.phone",'LIKE',"%$where[nickname]%"); + if((isset($where['start_time']) && isset($where['end_time'])) && $where['start_time'] !== '' && $where['end_time'] !== ''){ + $model = $model->where("{$alias}add_time",'between',[strtotime($where['start_time']),strtotime($where['end_time'])]); + } + if(isset($where['sex']) && $where['sex'] !== '' ) $model = $model->where($alias.'sex',$where['sex']); + if(isset($where['subscribe']) && $where['subscribe'] !== '' ) $model = $model->where($alias.'subscribe',$where['subscribe']); + if(isset($where['order']) && $where['order'] != '') $model = $model->order($where['order']); + if(isset($where['user_type']) && $where['user_type']!='') { + if($where['user_type']==1){ + $model=$model->where($alias.'unionid','neq','NULL'); + }else if($where['user_type']==2) + $model=$model->where($alias.'openid','neq','NULL')->where($alias.'unionid','NULL'); + else if($where['user_type']==3) + $model=$model->where($alias.'routine_openid','neq','NULL')->where($alias.'unionid','NULL'); + } + if(isset($where['is_time']) && isset($where['data']) && $where['data']) $model = self::getModelTime($where,$model,$alias.'add_time'); + return $model; + } + + public static function setSairOrderWhere($where,$model = null,$alias='') + { + $model = $model === null ? new self() : $model; + if(!isset($where['uid'])) return $model; + if($alias){ + $model = $model->alias($alias); + $alias .= '.'; + } + if(isset($where['type'])){ + switch ((int)$where['type']){ + case 1: + $uids = User::where('spread_uid',$where['uid'])->column('uid'); + if(count($uids)) + $model = $model->where("{$alias}uid",'in',$uids); + else + $model = $model->where("{$alias}uid",0); + break; + case 2: + $uids = User::where('spread_uid',$where['uid'])->column('uid'); + if(count($uids)) + $spread_uid_two=User::where('spread_uid','in',$uids)->column('uid'); + else + $spread_uid_two=[0]; + if(count($spread_uid_two)) + $model = $model->where("{$alias}uid",'in',$spread_uid_two); + else + $model = $model->where("{$alias}uid",0); + break; + default: + $uids = User::where('spread_uid',$where['uid'])->column('uid'); + if(count($uids)) { + if($spread_uid_two = User::where('spread_uid', 'in', $uids)->column('uid')){ + $uids = array_merge($uids,$spread_uid_two); + $uids = array_unique($uids); + $uids = array_merge($uids); + } + $model = $model->where("{$alias}uid",'in',$uids); + }else + $model = $model->where("{$alias}uid",0); + break; + } + } + if(isset($where['data']) && $where['data']) $model = self::getModelTime($where,$model,"{$alias}add_time"); + return $model->where("{$alias}is_del",0)->where("{$alias}is_system_del",0)->where($alias.'paid',1); + } + + /* + * 推广订单统计 + * @param array $where + * @return array + * */ + public static function getStairOrderBadge($where) + { + if(!isset($where['uid'])) return []; + $data['order_count'] = self::setSairOrderWhere($where,new StoreOrder())->count(); + $data['order_price'] = self::setSairOrderWhere($where,new StoreOrder())->sum('pay_price'); + $ids = self::setSairOrderWhere($where,new StoreOrder())->where(['paid'=>1,'is_del'=>0,'refund_status'=>0])->where('status','>',1)->column('id'); + $data['number_price'] = 0; + if(count($ids)) $data['number_price'] = UserBill::where(['category'=>'now_money','type'=>'brokerage','uid'=>$where['uid']])->where('link_id','in',$ids)->sum('number'); + $where['type'] = 1; + $data['one_price'] = self::setSairOrderWhere($where,new StoreOrder())->sum('pay_price'); + $data['one_count'] = self::setSairOrderWhere($where,new StoreOrder())->count(); + $where['type'] = 2; + $data['two_price'] = self::setSairOrderWhere($where,new StoreOrder())->sum('pay_price'); + $data['two_count'] = self::setSairOrderWhere($where,new StoreOrder())->count(); + return [ + [ + 'name'=>'总金额', + 'field'=>'元', + 'count'=>$data['order_price'], + 'background_color'=>'layui-bg-cyan', + 'col'=>3, + ], + [ + 'name'=>'订单总数', + 'field'=>'单', + 'count'=>$data['order_count'], + 'background_color'=>'layui-bg-cyan', + 'col'=>3, + ], + [ + 'name'=>'返佣总金额', + 'field'=>'元', + 'count'=>$data['number_price'], + 'background_color'=>'layui-bg-cyan', + 'col'=>3, + ], + [ + 'name'=>'一级总金额', + 'field'=>'元', + 'count'=>$data['one_price'], + 'background_color'=>'layui-bg-cyan', + 'col'=>3, + ], + [ + 'name'=>'一级订单数', + 'field'=>'单', + 'count'=>$data['one_count'], + 'background_color'=>'layui-bg-cyan', + 'col'=>3, + ], + [ + 'name'=>'二级总金额', + 'field'=>'元', + 'count'=>$data['two_price'], + 'background_color'=>'layui-bg-cyan', + 'col'=>3, + ], + [ + 'name'=>'二级订单数', + 'field'=>'单', + 'count'=>$data['two_count'], + 'background_color'=>'layui-bg-cyan', + 'col'=>3, + ], + ]; + } + + /* + * 推广订单 + * @param array $where + * @return array + * */ + public static function getStairOrderList($where) + { + if(!isset($where['uid'])) return []; + $data = self::setSairOrderWhere($where,new StoreOrder())->page((int)$where['page'],(int)$where['limit'])->select(); + $data = count($data) ? $data->toArray() : []; + $Info = User::where('uid',$where['uid'])->find(); + foreach ($data as &$item){ + $userInfo = User::where('uid',$item['uid'])->find(); + $item['user_info'] = ''; + $item['avatar'] = ''; + if($userInfo){ + $item['user_info'] = $userInfo->nickname.'|'.($userInfo->phone ? $userInfo->phone .'|' : '').$userInfo->real_name; + $item['avatar'] = $userInfo->avatar; + } + $item['spread_info'] = $Info->nickname."|".($Info->phone ? $Info->phone."|" : '').$Info->uid; + $item['number_price'] = UserBill::where(['category'=>'now_money','type'=>'brokerage','link_id'=>$item['id']])->value('number'); + $item['_pay_time'] = date('Y-m-d H:i:s',$item['pay_time']); + $item['_add_time'] = date('Y-m-d H:i:s',$item['add_time']); + $item['take_time'] = ($change_time = StoreOrderStatus::where(['change_type'=>'user_take_delivery','oid'=>$item['id']])->value('change_time')) ? + date('Y-m-d H:i:s',$change_time) : '暂无'; + } + $count = self::setSairOrderWhere($where,new StoreOrder())->count(); + return compact('data','count'); + } + /* + * 设置查询条件 + * @param array $where + * @param object $model + * @param string $alias + * */ + public static function setSairWhere($where,$model = null,$alias='') + { + $model = $model === null ? new self() : $model; + if(!isset($where['uid'])) return $model; + if($alias){ + $model = $model->alias($alias); + $alias .= '.'; + } + if(isset($where['type'])){ + switch ((int)$where['type']){ + case 1: + $uids = User::where('spread_uid',$where['uid'])->column('uid'); + if(count($uids)) + $model = $model->where("{$alias}uid",'in',$uids); + else + $model = $model->where("{$alias}uid",0); + break; + case 2: + $uids = User::where('spread_uid',$where['uid'])->column('uid'); + if(count($uids)) + $spread_uid_two=User::where('spread_uid','in',$uids)->column('uid'); + else + $spread_uid_two=[0]; + if(count($spread_uid_two)) + $model = $model->where("{$alias}uid",'in',$spread_uid_two); + else + $model = $model->where("{$alias}uid",0); + break; + default: + $uids = User::where('spread_uid',$where['uid'])->column('uid'); + if(count($uids)) { + if($spread_uid_two = User::where('spread_uid', 'in', $uids)->column('uid')){ + $uids = array_merge($uids,$spread_uid_two); + $uids = array_unique($uids); + $uids = array_merge($uids); + } + $model = $model->where("{$alias}uid",'in',$uids); + }else + $model = $model->where("{$alias}uid",0); + break; + } + } + if(isset($where['data']) && $where['data']) $model = self::getModelTime($where,$model,"{$alias}add_time"); + if(isset($where['nickname']) && $where['nickname']) $model = $model->where("{$alias}phone|{$alias}nickname|{$alias}real_name|{$alias}uid",'LIKE',"%$where[nickname]%"); + return $model->where($alias.'status',1); + } + + + public static function getStairList($where) + { + if(!isset($where['uid'])) return []; + $data = self::setSairWhere($where,new User())->page((int)$where['page'],(int)$where['limit'])->select(); + $data = count($data) ? $data->toArray() : []; + $userInfo = User::where('uid',$where['uid'])->find(); + foreach ($data as &$item){ + $item['spread_count'] = User::where('spread_uid',$item['uid'])->count(); + $item['order_count'] = StoreOrder::where('uid',$item['uid'])->where(['paid'=>1,'is_del'=>0])->count(); + $item['promoter_name'] = $item['is_promoter'] ? '是' : '否'; + $item['add_time'] = date("Y-m-d H:i:s",$item['add_time']); + } + $count = self::setSairWhere($where,new User())->count(); + return compact('data','count'); + } + + public static function getSairBadge($where) + { + $data['number'] = self::setSairWhere($where,new User())->count(); + $where['type'] = 1; + $data['one_number'] = self::setSairWhere($where,new User())->count(); + $where['type'] = 2; + $data['two_number'] = self::setSairWhere($where,new User())->count(); + $col = $data['two_number'] > 0 ? 4 : 6; + return [ + [ + 'name'=>'总人数', + 'field'=>'人', + 'count'=>$data['number'], + 'background_color'=>'layui-bg-cyan', + 'col'=>$col, + ], + [ + 'name'=>'一级人数', + 'field'=>'人', + 'count'=>$data['one_number'], + 'background_color'=>'layui-bg-cyan', + 'col'=>$col, + ], + [ + 'name'=>'二级人数', + 'field'=>'人', + 'count'=>$data['two_number'], + 'background_color'=>'layui-bg-cyan', + 'col'=>$col, + ], + ]; + + } + /* + * 获取 + * */ + public static function getSpreadBadge($where) + { + $where['is_time']=1; + $uids = self::setSpreadWhere($where)->column('u.uid'); + //分销员人数 + $data['sum_count'] = count($uids); + $data['spread_sum'] = 0; + $data['order_count'] = 0; + $data['pay_price'] = 0; + $data['number'] = 0; + $data['extract_count'] = 0; + $data['extract_price'] = 0; + if($data['sum_count']){ + //发展会员人数 + $data['spread_sum'] = User::where('spread_uid','in',$uids)->count(); + //订单总数 + $data['order_count'] = StoreOrder::where('uid','in',$uids)->count(); + //订单金额 + $data['pay_price'] = StoreOrder::where('uid','in',$uids)->sum('pay_price'); + //可提现金额 + $data['number'] = UserBill::where('uid','in',$uids)->where(['category'=>'now_money','type'=>'brokerage'])->sum('number'); + //提现次数 + $data['extract_count'] = UserExtract::where('uid','in',$uids)->count(); + //获取某个用户可提现金额 + $data['extract_price'] = User::getextractPrice($uids,$where); + } + return [ + [ + 'name'=>'分销员人数', + 'field'=>'人', + 'count'=>$data['sum_count'], + 'background_color'=>'layui-bg-cyan', + 'col'=>2, + ], + [ + 'name'=>'发展会员人数', + 'field'=>'人', + 'count'=>$data['spread_sum'], + 'background_color'=>'layui-bg-cyan', + 'col'=>2, + ], + [ + 'name'=>'分销订单数', + 'field'=>'单', + 'count'=>$data['order_count'], + 'background_color'=>'layui-bg-cyan', + 'col'=>2, + ], + [ + 'name'=>'订单金额', + 'field'=>'元', + 'count'=>$data['pay_price'], + 'background_color'=>'layui-bg-cyan', + 'col'=>2, + ], + [ + 'name'=>'提现金额', + 'field'=>'元', + 'count'=>$data['number'], + 'background_color'=>'layui-bg-cyan', + 'col'=>2, + ], + [ + 'name'=>'提现次数', + 'field'=>'次', + 'count'=>$data['extract_count'], + 'background_color'=>'layui-bg-cyan', + 'col'=>2, + ], + [ + 'name'=>'未提现金额', + 'field'=>'元', + 'count'=>$data['extract_price'], + 'background_color'=>'layui-bg-cyan', + 'col'=>2, + ], + ]; + } + + /** * 获取分销用户 * @param array $where * @return array */ - public static function agentSystemPage($where = array(),$isall=false){ -// self::setWechatUserOrder();//设置 一级推荐人 二级推荐人 一级推荐人订单 二级推荐人订单 佣金 - $model = new self; - if($isall==false) { - $status = (int)SystemConfigService::get('store_brokerage_statu'); - if ($status == 1) { - if ($uids = User::where(['is_promoter' => 1])->column('uid')) { - $model = $model->where('uid', 'in', implode(',', $uids)); - } - } - } -// $model = $model->where('openid','NOT NULL'); - if($where['nickname'] !== '') $model = $model->where('nickname','LIKE',"%$where[nickname]%"); - if($where['data'] !== ''){ - list($startTime,$endTime) = explode(' - ',$where['data']); - $model = $model->where('add_time','>',strtotime($startTime)); - $model = $model->where('add_time','<',strtotime($endTime)); - } - if(isset($where['tagid_list']) && $where['tagid_list'] !== ''){ - $tagid_list = explode(',',$where['tagid_list']); - foreach ($tagid_list as $v){ - $model = $model->where('tagid_list','LIKE',"%$v%"); - } - } - if(isset($where['groupid']) && $where['groupid'] !== '-1' ) $model = $model->where('groupid',"$where[groupid]"); - if(isset($where['sex']) && $where['sex'] !== '' ) $model = $model->where('sex',"$where[sex]"); - if(isset($where['subscribe']) && $where['subscribe'] !== '' ) $model = $model->where('subscribe',"$where[subscribe]"); - if(isset($where['stair']) && $where['stair'] != '') $model = $model->order($where['stair']); - if(isset($where['second']) && $where['second'] != '') $model = $model->order($where['second']); - if(isset($where['order_stair']) && $where['order_stair'] != '') $model = $model->order($where['order_stair']); - if(isset($where['order_second']) && $where['order_second'] != '') $model = $model->order($where['order_second']); - if(isset($where['now_money']) && $where['now_money'] != '') $model = $model->order($where['now_money']); - $model = $model->order('uid desc'); - if(isset($where['export']) && $where['export'] == 1){ - $list = $model->select()->toArray(); + public static function agentSystemPage($where = array()){ + $model=self::setSpreadWhere($where); + $status =SystemConfigService::get('store_brokerage_statu'); + if(isset($where['excel']) && $where['excel'] == 1){ + $list = $model->field(['a.uid','u.phone','a.nickname','a.sex','a.country','a.province','a.city','a.now_money','a.subscribe'])->select()->toArray(); $export = []; foreach ($list as $index=>$item){ + $uids = self::getModelTime($where,User::where('spread_uid',$item['uid']))->column('uid'); + $item['spread_count'] = count($uids); + if(count($uids)){ + $uidTwo = User::where('spread_uid','in',$uids)->column('uid'); + $uids = array_merge($uids,$uidTwo); + $uids = array_unique($uids); + $uids = array_merge($uids); + } + $item['extract_sum_price'] = self::getModelTime($where,UserExtract::where('uid',$item['uid']))->sum('extract_price'); + $item['extract_count_price'] = UserExtract::getUserCountPrice($item['uid'].$where);//累计提现金额 + $item['extract_count_num'] = UserExtract::getUserCountNum($item['uid'],$where);//提现次数 + $item['order_price'] = count($uids) ? StoreOrder::where('uid','in',$uids)->where(['paid'=>1,'refund_status'=>0])->sum('pay_price') : 0;//订单金额 + $item['order_count'] = count($uids) ? StoreOrder::where('uid','in',$uids)->where(['paid'=>1,'refund_status'=>0])->count() : 0;//订单数量 + $item['stair'] = self::getUserSpreadUidCount($item['uid'],0,$where);//一级推荐人 + $item['second'] = self::getUserSpreadUidCount($item['uid'],1,$where);//二级推荐人 + $item['order_stair'] = self::getUserSpreadOrderCount($item['uid'],0,$where);//一级推荐人订单 + $item['order_second'] = self::getUserSpreadOrderCount($item['uid'],1,$where);//二级推荐人订单 + //可提现佣金 + $item['new_money'] = User::getextractPrice($item['uid'],$where); + //总共佣金 + $item['brokerage_money'] = self::getModelTime($where,UserBill::where(['uid'=>$item['uid'],'category'=>'now_money','type'=>'brokerage','pm'=>1,'status'=>1]))->sum('number'); + $item['spread_name']='暂无'; + if($spread_uid=User::where('uid',$item['uid'])->value('spread_uid')) { + if($user=User::where('uid',$spread_uid)->field(['uid','nickname'])->find()){ + $item['spread_name']=$user['nickname'].'/'.$user['uid']; + } + } $export[] = [ + $item['uid'], $item['nickname'], - $item['sex'], - $item['country'].$item['province'].$item['city'], - $item['stair'], - $item['second'], - $item['order_stair'], - $item['order_second'], - $item['now_money'], - $item['subscribe'] == 1? '关注':'未关注', + $item['phone'], + $item['spread_count'], + $item['order_count'], + $item['order_price'], + $item['brokerage_money'], + $item['extract_count_price'], + $item['extract_count_num'], + $item['new_money'], + $item['spread_name'], ]; - $list[$index] = $item; } - PHPExcelService::setExcelHeader(['名称','性别','地区','一级推荐人','二级推荐人','一级推荐订单个数','二级推荐订单个数','获得佣金','是否关注公众号']) - ->setExcelTile('微信用户导出','微信用户导出'.time(),' 生成时间:'.date('Y-m-d H:i:s',time())) + PHPExcelService::setExcelHeader(['用户编号','昵称','电话号码','推广用户数量','订单数量','推广订单金额','佣金金额','已提现金额','提现次数','未提现金额','上级推广人']) + ->setExcelTile('推广用户','推广用户导出'.time(),' 生成时间:'.date('Y-m-d H:i:s',time())) ->setExcelContent($export) ->ExcelSave(); } - return self::page($model,function ($item){ - try{ - $item['qr_code'] = QrcodeService::getForeverQrcode('spread',$item['uid']); - }catch (\Exception $e){ - $item['qr_code'] = ''; + $data = $model->page((int)$where['page'],(int)$where['limit'])->select(); + $data = count($data) ? $data->toArray() : []; + foreach ($data as &$item){ + if((int)$status==2) $item['is_show']=false; + else $item['is_show']=true; + $uids = self::getModelTime($where,User::where('spread_uid',$item['uid']))->column('uid'); + $item['spread_count'] = count($uids); + if(count($uids)){ + $uidTwo = User::where('spread_uid','in',$uids)->column('uid'); + $uids = array_merge($uids,$uidTwo); + $uids = array_unique($uids); + $uids = array_merge($uids); } - $item['extract_count_price'] = UserExtract::getUserCountPrice($item['uid']);//累计提现 - $item['extract_count_num'] = UserExtract::getUserCountNum($item['uid']);//提现次数 - },$where); + $item['extract_sum_price'] = self::getModelTime($where,UserExtract::where('uid',$item['uid']))->sum('extract_price'); + $item['extract_count_price'] = UserExtract::getUserCountPrice($item['uid'],$where);//累计提现金额 + $item['extract_count_num'] = UserExtract::getUserCountNum($item['uid'],$where);//提现次数 + $item['order_price'] = count($uids) ? StoreOrder::where('uid','in',$uids)->where(['paid'=>1,'refund_status'=>0])->sum('pay_price') : 0;//订单金额 + $item['order_count'] = count($uids) ? StoreOrder::where('uid','in',$uids)->where(['paid'=>1,'refund_status'=>0])->count() : 0;//订单数量 + if($item['unionid']) + $item['type_name'] = '打通'; + else if($item['openid'] && !$item['unionid']) + $item['type_name'] = '公众号'; + else if($item['routine_openid'] && !$item['unionid']) + $item['type_name'] = '小程序'; + $item['subscribe_name']=$item['subscribe'] ? '已关注' : ($item['routine_openid'] && !$item['unionid'] ? '暂无' : '未关注') ; + if($item['sex']==1) + $item['sex_name'] = '男'; + else if($item['sex']==2) + $item['sex_name'] = '女'; + else if($item['sex']==0) + $item['sex_name'] = '未知'; + $item['spread_name']='暂无'; + if($spread_uid=User::where('uid',$item['uid'])->value('spread_uid')) { + if($user=User::where('uid',$spread_uid)->field(['uid','nickname'])->find()){ + $item['spread_name']=$user['nickname'].'/'.$user['uid']; + } + } + //总共佣金 + $item['brokerage_money'] = self::getModelTime($where,UserBill::where(['uid'=>$item['uid'],'category'=>'now_money','type'=>'brokerage','pm'=>1,'status'=>1]))->sum('number'); + //可提现佣金 + $item['new_money'] = User::getextractPrice($item['uid'],$where); + $item['stair'] = self::getUserSpreadUidCount($item['uid'],0,$where);//一级推荐人 + $item['second'] = self::getUserSpreadUidCount($item['uid'],1,$where);//二级推荐人 + $item['order_stair'] = self::getUserSpreadOrderCount($item['uid'],0,$where);//一级推荐人订单 + $item['order_second'] = self::getUserSpreadOrderCount($item['uid'],1,$where);//二级推荐人订单 + } + $count = self::setSpreadWhere($where)->count(); + return compact('data','count'); } /** @@ -303,11 +708,11 @@ use app\core\util\SystemConfigService; * $spread 0 一级推广人数 1 二级推广人数 * @return int|string */ - public static function getUserSpreadUidCount($uid,$spread = 1){ - $userStair = User::where('spread_uid',$uid)->column('uid','uid');//获取一级推家人 + public static function getUserSpreadUidCount($uid,$spread = 1,$where=[]){ + $userStair =self::getModelTime($where, User::where('spread_uid',$uid))->column('uid','uid');//获取一级推家人 if($userStair){ if(!$spread) return count($userStair);//返回一级推人人数 - else return User::where('spread_uid','IN',implode(',',$userStair))->count();//二级推荐人数 + else return self::getModelTime($where,User::where('spread_uid','IN',implode(',',$userStair)))->count();//二级推荐人数 }else return 0; } @@ -318,38 +723,19 @@ use app\core\util\SystemConfigService; * $spread 0 一级推广总订单 1 所有推广总订单 * @return int|string */ - public static function getUserSpreadOrderCount($uid,$spread = 1){ - $userStair = User::where('spread_uid',$uid)->column('uid','uid');//获取一级推家人uid + public static function getUserSpreadOrderCount($uid,$spread = 1,$where=[]){ + $userStair = self::getModelTime($where,User::where('spread_uid',$uid))->column('uid','uid');//获取一级推家人uid if($userStair){ if(!$spread){ - return StoreOrder::where('uid','IN',implode(',',$userStair))->where('paid',1)->where('refund_status',0)->where('status',2)->count();//获取一级推广人订单数 + return self::getModelTime($where,StoreOrder::where('uid','IN',implode(',',$userStair))->where(['paid'=>1,'refund_status'=>0,'status'=>2]))->count();//获取一级推广人订单数 } else{ - $userSecond = User::where('spread_uid','IN',implode(',',$userStair))->column('uid','uid');//二级推广人的uid + $userSecond = self::getModelTime($where,User::where('spread_uid','IN',implode(',',$userStair)))->column('uid','uid');//二级推广人的uid if($userSecond){ - return StoreOrder::where('uid','IN',implode(',',$userSecond))->where('paid',1)->where('refund_status',0)->where('status',2)->count();//获取二级推广人订单数 + return self::getModelTime($where,StoreOrder::where('uid','IN',implode(',',$userSecond))->where('paid',1)->where('refund_status',0)->where('status',2))->count();//获取二级推广人订单数 }else return 0; } }else return 0; } - /** - * 同步微信用户表内的 一级推荐人 二级推荐人 一级推荐人订单 二级推荐人订单 - */ - public static function setWechatUserOrder(){ - $uidAll = self::column('uid','uid'); - $item = []; - foreach ($uidAll as $k=>$v){ - $item['stair'] = self::getUserSpreadUidCount($v,0);//一级推荐人 - $item['second'] = self::getUserSpreadUidCount($v);//二级推荐人 - $item['order_stair'] = self::getUserSpreadOrderCount($v,0);//一级推荐人订单 - $item['order_second'] = self::getUserSpreadOrderCount($v);//二级推荐人订单 - $item['now_money'] = User::where('uid',$v)->value('now_money');//佣金 - if(!$item['stair'] && !$item['second'] && !$item['order_stair'] && !$item['order_second'] && !$item['now_money']) continue; - else self::edit($item,$v); - } - } - - - } \ No newline at end of file diff --git a/application/admin/view/agent/agent_manage/index.php b/application/admin/view/agent/agent_manage/index.php index 0d895270..b7108162 100644 --- a/application/admin/view/agent/agent_manage/index.php +++ b/application/admin/view/agent/agent_manage/index.php @@ -1,599 +1,368 @@ {extend name="public/container"} {block name="head_top"} -<link href="{__FRAME_PATH}css/plugins/iCheck/custom.css" rel="stylesheet"> -<script src="{__PLUG_PATH}moment.js"></script> -<link rel="stylesheet" href="{__PLUG_PATH}daterangepicker/daterangepicker.css"> -<script src="{__PLUG_PATH}daterangepicker/daterangepicker.js"></script> -<script src="{__ADMIN_PATH}frame/js/plugins/iCheck/icheck.min.js"></script> -<link href="{__FRAME_PATH}css/plugins/footable/footable.core.css" rel="stylesheet"> -<script src="{__PLUG_PATH}sweetalert2/sweetalert2.all.min.js"></script> -<script src="{__FRAME_PATH}js/plugins/footable/footable.all.min.js"></script> -<script src="{__ADMIN_PATH}js/layuiList.js"></script> <style> - .on-tag{background-color: #eea91e;} - .height-auto{height: 300px;} - .tag{border: solid 1px #eee;} + .option{width: 200px;padding: 10px;background-color: #eeeeee;border-radius: 10px;text-align: center;display: none;} + .option .layui-box p{margin: 5px 0;background-color: #ffffff;color: #0092DC;padding: 8px;cursor: pointer} + .option .layui-box p.on{color: #eeeeee} </style> {/block} {block name="content"} -<div class="row"> - <div class="col-sm-12"> - <div class="ibox"> - <!--<div class="ibox-title"> - <button type="button" class="btn btn-w-m btn-primary grant">发放优惠券</button> - <button type="button" class="btn btn-w-m btn-primary" onclick="$eb.createModalFrame(this.innerText,'{:Url('store.storeCoupon/grant_subscribe')}',{'w':800})">给关注的用户发放优惠券</button> - <button type="button" class="btn btn-w-m btn-primary" onclick="$eb.createModalFrame(this.innerText,'{:Url('store.storeCoupon/grant_all')}',{'w':800})">给所有用户发放优惠券</button> - <button type="button" class="btn btn-w-m btn-primary" onclick="$eb.createModalFrame(this.innerText,'{:Url('store.storeCoupon/grant_group')}',{'w':800})">给分组用户发放优惠券</button> - <button type="button" class="btn btn-w-m btn-primary" onclick="$eb.createModalFrame(this.innerText,'{:Url('store.storeCoupon/grant_tag')}',{'w':800})">给标签用户发放优惠券</button> - </div>--> - <div class="ibox-content"> - <div class="row"> - <div class="m-b m-l"> - <form action="" class="form-inline" id="form" method="get"> - - <div class="search-item" data-name="data"> - <span>选择时间:</span> - <button type="button" class="btn btn-outline btn-link" data-value="">全部</button> - <button type="button" class="btn btn-outline btn-link" data-value="{$limitTimeList.today}">今天</button> - <button type="button" class="btn btn-outline btn-link" data-value="{$limitTimeList.week}">本周</button> - <button type="button" class="btn btn-outline btn-link" data-value="{$limitTimeList.month}">本月</button> - <button type="button" class="btn btn-outline btn-link" data-value="{$limitTimeList.quarter}">本季度</button> - <button type="button" class="btn btn-outline btn-link" data-value="{$limitTimeList.year}">本年</button> - <div class="datepicker" style="display: inline-block;"> - <button type="button" class="btn btn-outline btn-link" data-value="{$where.data?:'no'}">自定义时间</button> +<div class="layui-fluid"> + <div class="layui-row layui-col-space15" id="app"> + <!--搜索条件--> + <div class="layui-col-md12"> + <div class="layui-card"> + <div class="layui-card-header">搜索条件</div> + <div class="layui-card-body"> + <div class="layui-carousel layadmin-carousel layadmin-shortcut" lay-anim="" lay-indicator="inside" lay-arrow="none" style="background:none"> + <div class="layui-card-body"> + <div class="layui-row layui-col-space10 layui-form-item"> + <div class="layui-col-lg12"> + <label class="layui-form-label">时间选择:</label> + <div class="layui-input-block" data-type="data" v-cloak=""> + <button class="layui-btn layui-btn-sm" type="button" v-for="item in dataList" @click="setData(item)" :class="{'layui-btn-primary':where.data!=item.value}">{{item.name}}</button> + <button class="layui-btn layui-btn-sm" type="button" ref="time" @click="setData({value:'zd',is_zd:true})" :class="{'layui-btn-primary':where.data!='zd'}">自定义</button> + <button type="button" class="layui-btn layui-btn-sm layui-btn-primary" v-show="showtime==true" ref="date_time">{$year.0} - {$year.1}</button> + </div> + </div> + <div class="layui-col-lg12"> + <label class="layui-form-label">用户昵称:</label> + <div class="layui-input-block"> + <input type="text" name="nickname" style="width: 50%" v-model="where.nickname" placeholder="请输入姓名、电话、UID" class="layui-input"> + </div> + </div> + <div class="layui-col-lg12"> + <div class="layui-input-block"> + <button @click="search" type="button" class="layui-btn layui-btn-sm layui-btn-normal"> + <i class="layui-icon layui-icon-search"></i>搜索</button> + <button @click="excel" type="button" class="layui-btn layui-btn-warm layui-btn-sm export" type="button"> + <i class="fa fa-floppy-o" style="margin-right: 3px;"></i>导出</button> + <button @click="refresh" type="reset" class="layui-btn layui-btn-primary layui-btn-sm"> + <i class="layui-icon layui-icon-refresh" ></i>刷新</button> + </div> </div> - <input class="search-item-value" type="hidden" name="data" value="{$where.data}" /> - <input class="search-item-value" type="hidden" name="groupid" value="{$where.groupid}" /> - <input class="search-item-value" type="hidden" name="tagid_list" value="{$where.tagid_list}" /> - <input class="search-item-value" type="hidden" name="sex" value="{$where.sex}" /> - <input class="search-item-value" type="hidden" name="subscribe" value="{$where.subscribe}" /> - <input class="search-item-value" type="hidden" name="stair" value="" /> - <input class="search-item-value" type="hidden" name="second" value="" /> - <input class="search-item-value" type="hidden" name="order_stair" value="" /> - <input class="search-item-value" type="hidden" name="order_second" value="" /> - <input class="search-item-value" type="hidden" name="now_money" value="" /> - <input class="search-item-value" type="hidden" id="batch" name="batch" value="" /> </div> - <hr> - <div class="btn-group"> - <button data-toggle="dropdown" class="btn btn-white btn-xs dropdown-toggle" style="padding: 5px 15px;" - aria-expanded="false">批量操作 - <span class="caret"></span> - </button> - <ul class="dropdown-menu left"> - <li> - <a class="save_mark grant" href="javascript:void(0);" > - <i class="fa fa-space-shuttle"></i> 发放优惠券 - </a> - </li> - <li> - <a class="save_mark news" href="javascript:void(0);" > - <i class="fa fa-space-shuttle"></i> 发送消息 - </a> - </li> - </ul> - </div> - <div class="input-group" style="float: right"> - <input type="text" name="nickname" value="{$where.nickname}" placeholder="请输入会员名称" class="input-sm form-control"> - - <input type="hidden" name="export" value="{$where.export}" /> - <span class="input-group-btn"> - <button type="submit" class="btn btn-sm btn-primary" id="search"> <i class="fa fa-search"></i>搜索</button> - <button style="margin: 0 16px" type="submit" id="export" class="btn btn-sm btn-info btn-outline"> <i class="fa fa-exchange" ></i> Excel导出</button> - <script> - $('#export').on('click',function(){ - $('input[name=export]').val(1); - }); - $('#no_export').on('click',function(){ - $('input[name=export]').val(0); - }); - $('#search').on('click',function(){ - $('input[name=export]').val(0); - }); - </script> - </span> - </div> - </form> + </div> </div> </div> - <div class="table-responsive"> - <table class="table table-striped table-bordered" data-page-size="20"> - <thead> - <tr> - <th class="text-cente"> - <div class="btn-group"> - <button data-toggle="dropdown" class="btn btn-white btn-xs dropdown-toggle" style="font-weight: bold;background-color: #f5f5f6;border: solid 0;" - aria-expanded="false"> - 选择 - <span class="caret"></span> - </button> - <ul class="dropdown-menu left"> - <li class="this-page"> - <a class="save_mark" href="javascript:void(0);" > - <i class="fa fa-check-square-o"></i>本页用户 - </a> - </li> - <li class="this-all"> - <a class="save_mark" href="javascript:void(0);"> - <i class="fa fa-check-square"></i>全部用户 - </a> - </li> - <li class="this-up"> - <a class="save_mark" href="javascript:void(0);"> - <i class="fa fa-square-o"></i>取消选择 - </a> - </li> - </ul> - </div> - </th> - <th class="text-center">编号</th> - <th class="text-center">微信用户名称</th> - <th class="text-center">头像</th> - <th class="text-center">用户类型</th> - <th class="text-center"> - <div class="btn-group"> - <button data-toggle="dropdown" class="btn btn-white btn-xs dropdown-toggle" style="font-weight: bold;background-color: #f5f5f6;border: solid 0;" - aria-expanded="false">性别 - <span class="caret"></span> - </button> - <ul class="dropdown-menu search-item" data-name="sex"> - <li data-value=""> - <a class="save_mark" href="javascript:void(0);" > - <i class="fa fa-venus-mars"></i>全部 - </a> - </li> - <li data-value="1"> - <a class="save_mark" href="javascript:void(0);" > - <i class="fa fa-mars"></i>男 - </a> - </li> - <li data-value="2"> - <a class="save_mark" href="javascript:void(0);"> - <i class="fa fa-venus"></i>女 - </a> - </li> - <li data-value="0"> - <a class="save_mark" href="javascript:void(0);"> - <i class="fa fa-transgender"></i>保密 - </a> - </li> - </ul> - </div> - </th> - <th class="text-center no-sort">地区</th> - <th class="text-center"> - <div class="btn-group"> - <button data-toggle="dropdown" class="btn btn-white btn-xs dropdown-toggle" style="font-weight: bold;background-color: #f5f5f6;border: solid 0;" - aria-expanded="false">一级推荐人 - <span class="stair caret"></span> - </button> - <ul class="dropdown-menu search-item" data-name="stair"> - <li data-value=""> - <a class="save_mark" href="javascript:void(0);" > - <i class="fa fa-arrows-v"></i>默认 - </a> - </li> - <li data-value="stair desc"> - <a class="save_mark" href="javascript:void(0);" > - <i class="fa fa-sort-numeric-desc"></i>降序 - </a> - </li> - <li data-value="stair asc"> - <a class="save_mark" href="javascript:void(0);"> - <i class="fa fa-sort-numeric-asc"></i>升序 - </a> - </li> - </ul> - </div> - </th> - <th class="text-center"> - <div class="btn-group"> - <button data-toggle="dropdown" class="btn btn-white btn-xs dropdown-toggle" style="font-weight: bold;background-color: #f5f5f6;border: solid 0;" - aria-expanded="false">二级推荐人 - <span class="second caret"></span> - </button> - <ul class="dropdown-menu search-item" data-name="second"> - <li data-value=""> - <a class="save_mark" href="javascript:void(0);" > - <i class="fa fa-arrows-v"></i>默认 - </a> - </li> - <li data-value="second desc"> - <a class="save_mark" href="javascript:void(0);" > - <i class="fa fa-sort-numeric-desc"></i>降序 - </a> - </li> - <li data-value="second asc"> - <a class="save_mark" href="javascript:void(0);"> - <i class="fa fa-sort-numeric-asc"></i>升序 - </a> - </li> - </ul> - </div> - </th> - <th class="text-center"> - <div class="btn-group"> - <button data-toggle="dropdown" class="btn btn-white btn-xs dropdown-toggle" style="font-weight: bold;background-color: #f5f5f6;border: solid 0;" - aria-expanded="false">一级推广订单 - <span class="order_stair caret"></span> - </button> - <ul class="dropdown-menu search-item" data-name="order_stair"> - <li data-value=""> - <a class="save_mark" href="javascript:void(0);" > - <i class="fa fa-arrows-v"></i>默认 - </a> - </li> - <li data-value="order_stair desc"> - <a class="save_mark" href="javascript:void(0);" > - <i class="fa fa-sort-numeric-desc"></i>降序 - </a> - </li> - <li data-value="order_stair asc"> - <a class="save_mark" href="javascript:void(0);"> - <i class="fa fa-sort-numeric-asc"></i>升序 - </a> - </li> - </ul> - </div> - </th> - <th class="text-center"> - <div class="btn-group"> - <button data-toggle="dropdown" class="btn btn-white btn-xs dropdown-toggle" style="font-weight: bold;background-color: #f5f5f6;border: solid 0;" - aria-expanded="false">所有推广订单 - <span class="caret order_second"></span> - </button> - <ul class="dropdown-menu search-item" data-name="order_second"> - <li data-value=""> - <a class="save_mark" href="javascript:void(0);" > - <i class="fa fa-arrows-v"></i>默认 - </a> - </li> - <li data-value="order_second desc"> - <a class="save_mark" href="javascript:void(0);" > - <i class="fa fa-sort-numeric-asc"></i>降序 - </a> - </li> - <li data-value="order_second asc"> - <a class="save_mark" href="javascript:void(0);"> - <i class="fa fa-sort-numeric-desc"></i>升序 - </a> - </li> - </ul> - </div> - </th> - <th class="text-center"> - <div class="btn-group"> - <button data-toggle="dropdown" class="btn btn-white btn-xs dropdown-toggle" style="font-weight: bold;background-color: #f5f5f6;border: solid 0;" - aria-expanded="false">获得佣金 - <span class="now_money caret"></span> - </button> - <ul class="dropdown-menu search-item" data-name="now_money"> - <li data-value=""> - <a class="save_mark" href="javascript:void(0);" > - <i class="fa fa-arrows-v"></i>默认 - </a> - </li> - <li data-value="now_money desc"> - <a class="save_mark" href="javascript:void(0);" > - <i class="fa fa-sort-numeric-asc"></i>降序 - </a> - </li> - <li data-value="now_money asc"> - <a class="save_mark" href="javascript:void(0);"> - <i class="fa fa-sort-numeric-desc"></i>升序 - </a> - </li> - </ul> - </div> - </th> - <th class="text-center"> - <div class="btn-group"> - <button data-toggle="dropdown" class="btn btn-white btn-xs dropdown-toggle" style="font-weight: bold;background-color: #f5f5f6;border: solid 0;" - aria-expanded="false">是否关注公众号 - <span class="caret"></span> - </button> - <ul class="dropdown-menu search-item" data-name="subscribe"> - <li data-value=""> - <a class="save_mark" href="javascript:void(0);" > - 全部 - </a> - </li> - <li data-value="1"> - <a class="save_mark" href="javascript:void(0);" > - 关注 - </a> - </li> - <li data-value="0"> - <a class="save_mark" href="javascript:void(0);"> - 未关注 - </a> - </li> - </ul> - </div> - </th> - <th class="text-center">推广二维码</th> - <th class="text-center">累计提现金额</th> - <th class="text-center">可提现金额</th> - <th class="text-center">提现次数</th> - </tr> - </thead> - <tbody> - <?php $count = count($list); ?> - {if condition="$count"} - {volist name="list" id="vo"} - <tr> - <td class="text-center"> - <label class="checkbox-inline i-checks"> - <input type="checkbox" name="coupon[]" value="{$vo.uid}"> - </label> - </td> - <td class="text-center"> - {$vo.uid} - </td> - <td class="text-center"> - {$vo.nickname} - </td> - <td class="text-center"> - <img src="{$vo.headimgurl}" alt="{$vo.nickname}" title="{$vo.nickname}" style="width:50px;height: 50px;cursor: pointer;" class="head_image" data-image="{$vo.headimgurl}"> - </td> - <td class="text-center"> - {if condition="$vo['user_type'] eq 'routine'"} - 小程序授权 - {else/} - 公众号授权 - {/if} - </td> - <td class="text-center"> - {if condition="$vo['sex'] eq 1"} - 男 - {elseif condition="$vo['sex'] eq 2"/} - 女 - {else/} - 保密 - {/if} - </td> - <td class="text-center"> - {$vo.country}{$vo.province}{$vo.city} - </td> - <td class="text-center"> - <button class="btn btn-white btn-xs" onclick="$eb.createModalFrame('推荐人列表','{:Url('stair',['uid'=>$vo['uid']])}',{'w':800})"> - <i class="fa fa-street-view"></i> - {$vo.stair} - </button> - </td> - <td class="text-center"> - {$vo.second} - </td> - <td class="text-center"> - {$vo.order_stair} - </td> - <td class="text-center"> - {$vo.order_second} - </td> - <td class="text-center"> - <button class="btn btn-white btn-xs" onclick="$eb.createModalFrame('佣金记录','{:Url('now_money',['uid'=>$vo['uid']])}',{'w':800})"> - <i class="fa fa-dollar"></i> - {$vo.now_money} - </button> - </td> - <td class="text-center"> - {if condition="$vo['subscribe']"} - 关注 - {else/} - 未关注 - {/if} - </td> - <td class="text-center"> - {if condition="$vo['user_type'] eq 'routine'"} - 暂无 - {else/} - {if isset($vo.qr_code.url)} - <img src="{$vo.qr_code.url}" alt="{$vo.nickname}" title="{$vo.nickname}" style="width:50px;height: 50px;cursor: pointer;" class="head_image" data-image="{$vo.qr_code.url}"> - {else} - 暂无 - {/if} - {/if} - </td> - <td class="text-center"> - {$vo.extract_count_price} - </td> - <td class="text-center"> - {$vo.now_money} - </td> - <td class="text-center"> - {$vo.extract_count_num} - </td> - </tr> - {/volist} - {else/} - <tr id="content" style="display:none;height:400px;"></tr> - {/if} - </tbody> - </table> + </div> + </div> + <!--end--> + <!-- 中间详细信息--> + <div :class="item.col!=undefined ? 'layui-col-sm'+item.col+' '+'layui-col-md'+item.col:'layui-col-sm6 layui-col-md3'" v-for="item in badge" v-cloak="" v-if="item.count > 0"> + <div class="layui-card"> + <div class="layui-card-header"> + {{item.name}} + <span class="layui-badge layuiadmin-badge" :class="item.background_color">{{item.field}}</span> </div> - {include file="public/inner_page"} + <div class="layui-card-body"> + <p class="layuiadmin-big-font">{{item.count}}</p> + <p v-show="item.content!=undefined"> + {{item.content}} + <span class="layuiadmin-span-color">{{item.sum}}<i :class="item.class"></i></span> + </p> + </div> + </div> + </div> + <!--enb--> + </div> + <div class="layui-row layui-col-space15"> + <div class="layui-col-md12"> + <div class="layui-card"> + <div class="layui-card-header">分销员列表</div> + <div class="layui-card-body"> +<!-- <div class="layui-btn-container">--> +<!-- <div class="layui-btn-group conrelTable">--> +<!-- <button class="layui-btn layui-btn-sm layui-btn-normal" type="button" data-type="refresh"><i class="layui-icon layui-icon-refresh" ></i>刷新</button>--> +<!-- </div>--> +<!-- </div>--> + <table class="layui-hide" id="userList" lay-filter="userList"></table> + <script type="text/html" id="headimgurl"> + <img style="cursor: pointer" lay-event='open_image' src="{{d.headimgurl}}"> + </script> + <script type="text/html" id="act"> + <button type="button" class="layui-btn layui-btn-xs" onclick="dropdown(this)">操作 <span class="caret"></span></button> + <ul class="layui-nav-child layui-anim layui-anim-upbit"> + <li> + <a href="javascript:void(0);" class="" onclick="$eb.createModalFrame(this.innerText,'{:Url('stair')}?uid={{d.uid}}')"> + <i class="fa fa-list-alt"></i> 统计推广人列表 + </a> + </li> + <li> + <a href="javascript:void(0);" class="" onclick="$eb.createModalFrame(this.innerText,'{:Url('stair_order')}?uid={{d.uid}}')"> + <i class="fa fa-reorder"></i> 统计推广订单 + </a> + </li> + <li> + <a href="javascript:void(0);" lay-event='look_code'> + <i class="fa fa-file-image-o"></i> 推广方式</a> + </li> + {{# if(d.is_show){ }} + <li> + <a href="javascript:void(0);" lay-event='delete_spread'> + <i class="fa fa-unlock"></i> 清除上级推广人关系 + </a> + </a> + </li> + {{# } }} + </ul> + </script> + </div> + <!--用户信息--> + <script type="text/html" id="userinfo"> + 昵称:{{d.nickname==null ? '暂无信息':d.nickname}} + <br>姓名:{{d.real_name==null ? '暂无信息':d.real_name}} + <br>电话:{{d.phone==null ? '暂无信息':d.phone}} + </script> + <div class="option"> + <div class="layui-box"> + <input type="hidden" name="uid" id="uid"> + <p data-action="routine_code" data-type="wx">小程序推广二维码</p> + <p data-action="wechant_code" data-type="wx">公众号推广二维码</p> + </div> + </div> + </div> </div> </div> </div> +<script src="{__ADMIN_PATH}js/layuiList.js"></script> {/block} {block name="script"} <script> - window.$list = <?php echo json_encode($list);?>; - window.$uidAll = <?php echo json_encode($uidAll);?>; - window.$where = <?php echo json_encode($where);?>; - $('.this-page').on('click',function () { - $('input[name="coupon[]"]').each(function(){ - $(this).checked = true; - $(this).parent().addClass('checked'); - $('#batch').val(1); - }); - }) - $('.this-all').on('click',function () { - $('input[name="coupon[]"]').each(function(){ - $(this).checked = true; - $(this).parent().addClass('checked'); - $('#batch').val(2); - }); - }) - $('.this-up').on('click',function () { - $('input[name="coupon[]"]').each(function(){ - $(this).checked = false; - $(this).parent().removeClass('checked'); - $('#batch').val(''); - }); - }) - $(function init() { - $('.search-item>.btn').on('click', function () { - var that = $(this), value = that.data('value'), p = that.parent(), name = p.data('name'), form = p.parents(); - form.find('input[name="' + name + '"]').val(value); - $('input[name=export]').val(0); - form.submit(); - }); - $('.tag-item>.btn').on('click', function () { - var that = $(this), value = that.data('value'), p = that.parent(), name = p.data('name'), form = p.parents(),list = $('input[name="' + name + '"]').val().split(','); - var bool = 0; - $.each(list,function (index,item) { - if(item == value){ - bool = 1 - list.splice(index,1); - } - }) - if(!bool) list.push(''+value+''); - form.find('input[name="' + name + '"]').val(list.join(',')); - $('input[name=export]').val(0); - form.submit(); - }); - $('.search-item>li').on('click', function () { - var that = $(this), value = that.data('value'), p = that.parent(), name = p.data('name'), form = $('#form'); - form.find('input[name="' + name + '"]').val(value); - $('input[name=export]').val(0); - form.submit(); - }); - $('.search-item>li').each(function () { - var that = $(this), value = that.data('value'), p = that.parent(), name = p.data('name'); - if($where[name]) $('.'+name).css('color','#1ab394'); - }); - $('.search-item-value').each(function () { - var that = $(this), name = that.attr('name'), value = that.val(), dom = $('.search-item[data-name="' + name + '"] .btn[data-value="' + value + '"]'); - dom.eq(0).removeClass('btn-outline btn-link').addClass('btn-primary btn-sm') - .siblings().addClass('btn-outline btn-link').removeClass('btn-primary btn-sm') - }); - $('.tag-item-value').each(function () { - var that = $(this), name = that.attr('name'), value = that.val().split(','); - dom = []; - $.each(value,function (index,item) { - dom.push($('.tag-item[data-name="' + name + '"] .btn[data-value="' + item + '"]')); - }) - $.each(dom,function (index,item) { - item.eq(0).removeClass('btn-outline btn-link tag').addClass('btn-primary btn-sm') - }) - }); - }) - $('.i-checks').iCheck({ - checkboxClass: 'icheckbox_square-green', - }); - $('.head_image').on('click',function (e) { - var image = $(this).data('image'); - $eb.openImage(image); - }) - var dateInput =$('.datepicker'); - dateInput.daterangepicker({ - autoUpdateInput: false, - "opens": "center", - "drops": "down", - "ranges": { - '今天': [moment(), moment().add(1, 'days')], - '昨天': [moment().subtract(1, 'days'), moment()], - '上周': [moment().subtract(6, 'days'), moment()], - '前30天': [moment().subtract(29, 'days'), moment()], - '本月': [moment().startOf('month'), moment().endOf('month')], - '上月': [moment().subtract(1, 'month').startOf('month'), moment().subtract(1, 'month').endOf('month')] + var action={ + refresh:function () { + layList.reload(); }, - "locale" : { - applyLabel : '确定', - cancelLabel : '清空', - fromLabel : '起始时间', - toLabel : '结束时间', - format : 'YYYY/MM/DD', - customRangeLabel : '自定义', - daysOfWeek : [ '日', '一', '二', '三', '四', '五', '六' ], - monthNames : [ '一月', '二月', '三月', '四月', '五月', '六月', - '七月', '八月', '九月', '十月', '十一月', '十二月' ], - firstDay : 1 - } - }); - dateInput.on('cancel.daterangepicker', function(ev, picker) { - $("#data").val(''); - }); - dateInput.on('apply.daterangepicker', function(ev, picker) { - $("input[name=data]").val(picker.startDate.format('YYYY/MM/DD') + ' - ' + picker.endDate.format('YYYY/MM/DD')); - $('input[name=export]').val(0); - $('#form').submit(); - }); - //发优惠券 - $('.grant').on('click',function (e) { - var chk_value =[]; - var batch = $('#batch').val(); - if(batch == 1){ - $.each($list.data,function (index,item) { - chk_value.push(item.uid); - }) - }else if(batch == 2){ - chk_value = $uidAll; - }else{ - $('input[name="coupon[]"]:checked').each(function(){ - chk_value.push($(this).val()); - str += $(this).val(); - }); - if(chk_value.length < 1){ - $eb.message('请选择要发放优惠券的用户'); - return false; + delete_spread:function () { + var ids=layList.getCheckData().getIds('uid'); + if(ids.length){ + $eb.$swal('delete',function(){ + $eb.axios.post(layList.U({a:'delete_promoter'}),{uids:ids}).then(function(res){ + if(res.status == 200 && res.data.code == 200) { + $eb.$swal('success',res.data.msg); + layList.reload(); + }else + return Promise.reject(res.data.msg || '清除失败') + }).catch(function(err){ + $eb.$swal('error',err); + }); + },{ + title:'您将解除选中用户的推广权限,请谨慎操作!', + text:'解除后可在会员管理里单个开启推广权限', + confirm:'是的我要解除' + }) + }else{ + layList.msg('请选择要解除权限的用户'); } - } - var str = chk_value.join(','); -// var url = "http://"+window.location.host+"/admin/store.store_coupon/grant/id/"+str; - var url = layList.U({c:'store.store_coupon',a:'grant',p:{id:str}}); - $eb.createModalFrame(this.innerText,url,{'w':800}); + }, + }; + layList.form.render(); + layList.tableList('userList',"{:Url('get_spread_list')}",function () { + return [ + {type:'checkbox'}, + {field: 'uid', title: 'UID', sort: true,width:'5%'}, + {field: 'headimgurl', title: '头像',templet:'#headimgurl'}, + {field: 'nickname', title: '用户信息',templet:'#userinfo',width:'12%'}, + {field: 'spread_count', title: '推广用户数量',sort:true}, + {field: 'order_count', title: '订单数量'}, + {field: 'order_price', title: '推广订单金额',sort:true}, + {field: 'brokerage_money', title: '佣金金额',sort:true}, + {field: 'extract_count_price', title: '已提现金额',sort:true}, + {field: 'extract_count_num', title: '提现次数'}, + {field: 'new_money', title: '未提现金额',sort:true}, + {field: 'spread_name', title: '上级推广人',sort:true}, + {field: 'right', title: '操作',toolbar:'#act',width:'5%'}, + ]; + }); + layList.date({elem:'#start_time',theme:'#393D49',type:'datetime'}); + layList.date({elem:'#end_time',theme:'#393D49',type:'datetime'}); + layList.search('search',function(where){ + if(where.start_time!='' && where.end_time=='') return layList.msg('请选择结束时间') + if(where.end_time!='' && where.start_time=='') return layList.msg('请选择开始时间') + console.log(where); + layList.reload(where,true); + }); + layList.search('export',function(where){ + where.excel=1; + location.href=layList.U({a:'get_spread_list',q:where}); }) - $('.news').on('click',function (e) { - var chk_value =[]; - var batch = $('#batch').val(); - if(batch == 1){ - $.each($list.data,function (index,item) { - chk_value.push(item.uid); - }) - }else if(batch == 2){ - chk_value = $uidAll; - }else{ - $('input[name="coupon[]"]:checked').each(function(){ - chk_value.push($(this).val()); - str += $(this).val(); + $('.conrelTable').find('button').each(function () { + var type=$(this).data('type'); + $(this).on('click',function () { + action[type] && action[type](); + }) + }) + $('.option .layui-box').find('p').each(function () { + $(this).on('click',function () { + var type = $(this).data('action'),uid = $('#uid').val(); + layList.baseGet(layList.U({a:'look_code',q:{action:type,uid:uid}}),function (res) { + if($eb){ + $eb.openImage(res.data.code_src); + }else{ + layList.layer.open({ + type: 1, + title: false, + closeBtn: 0, + shadeClose: true, + content: '<img src="'+res.data.code_src+'" style="display: block;width: 100%;" />' + }); + } + },function (res) { + layList.msg(res.msg); }); - if(chk_value.length < 1){ - $eb.message('请选择要发消息的用户'); - return false; + }); + }); + //下拉框 + $(document).click(function (e) { + $('.layui-nav-child').hide(); + }) + function dropdown(that){ + var oEvent = arguments.callee.caller.arguments[0] || event; + oEvent.stopPropagation(); + var offset = $(that).offset(); + var top=offset.top-$(window).scrollTop(); + var index = $(that).parents('tr').data('index'); + $('.layui-nav-child').each(function (key) { + if (key != index) { + $(this).hide(); } + }) + if($(document).height() < top+$(that).next('ul').height()){ + $(that).next('ul').css({ + 'padding': 10, + 'top': - ($(that).parent('td').height() / 2 + $(that).height() + $(that).next('ul').height()/2), + 'min-width': 'inherit', + 'left':-64, + 'position': 'absolute' + }).toggle(); + }else{ + $(that).next('ul').css({ + 'padding': 10, + 'left':-64, + 'top':$(that).parent('td').height() / 2 + $(that).height(), + 'min-width': 'inherit', + 'position': 'absolute' + }).toggle(); } - var str = chk_value.join(','); -// var url = "http://"+window.location.host+"/admin/wechat.wechat_news_category/send_news/id/"+str; - var url = layList.U({c:'wechat.wechat_news_category',a:'send_news',p:{id:str}}); - $eb.createModalFrame(this.innerText,url,{'w':800}); - }) - $('.synchro').on('click',function(){ - window.t = $(this); - var _this = $(this),url =_this.data('url'); - $eb.$swal('delete',function(){ - $eb.axios.get(url).then(function(res){ - console.log(res); - if(res.status == 200 && res.data.code == 200) { - $eb.$swal('success',res.data.msg); - }else - return Promise.reject(res.data.msg || '同步失败') - }).catch(function(err){ - $eb.$swal('error',err); - }); - },{'title':'您确定要同步该用户的标签吗?','text':'请谨慎操作!','confirm':'是的,我要同步'}) + } + layList.tool(function (event,data,obj) { + switch (event) { + case 'delete_spread': + var url=layList.U({a:'empty_spread',q:{uid:data.uid}}); + $eb.$swal('delete',function(){ + $eb.axios.get(url).then(function(res){ + if(res.status == 200 && res.data.code == 200) { + $eb.$swal('success',res.data.msg); + obj.del(); + }else + return Promise.reject(res.data.msg || '清除失败') + }).catch(function(err){ + $eb.$swal('error',err); + }); + },{ + title:'您将解除【'+data.nickname+'】的推广权限,请谨慎操作!', + text:'解除后可在会员管理里面开启', + confirm:'是的我要解除' + }) + break; + case 'look_code': + $('#uid').val(data.uid); + var index=layList.layer.open({ + type: 1, + area: ['200px', 'auto'], //宽高 + content:$('.option'), + title:false, + cancel:function () { + $('.option').hide(); + $('#uid').val(''); + } + }); + break; + case 'open_image': + if($eb) + $eb.openImage(data.headimgurl); + else + layList.layer.open({ + type: 1, + title: false, + closeBtn: 0, + shadeClose: true, + content: '<img src="'+data.headimgurl+'" style="display: block;width: 100%;" />' + }); + break; + + } + }); + require(['vue'],function(Vue) { + new Vue({ + el: "#app", + data: { + badge: [], + dataList: [ + {name: '全部', value: ''}, + {name: '今天', value: 'today'}, + {name: '昨天', value: 'yesterday'}, + {name: '最近7天', value: 'lately7'}, + {name: '最近30天', value: 'lately30'}, + {name: '本月', value: 'month'}, + {name: '本年', value: 'year'}, + ], + where:{ + data:'', + nickname: '', + excel:0, + }, + showtime: false, + }, + watch:{ + + }, + methods:{ + getBadge:function(){ + var that=this; + layList.basePost(layList.Url({a:'get_badge'}),this.where,function (rem) { + that.badge=rem.data; + }); + }, + setData:function(item){ + var that=this; + if(item.is_zd==true){ + that.showtime=true; + this.where.data=this.$refs.date_time.innerText; + }else{ + this.showtime=false; + this.where.data=item.value; + } + }, + search:function () { + this.where.excel=0; + this.getBadge(); + console.log(this.where); + layList.reload(this.where,true); + }, + excel:function () { + this.where.excel=1; + location.href=layList.U({a:'get_spread_list',q:this.where}); + }, + refresh:function () { + layList.reload(); + this.getBadge(); + } + }, + mounted:function () { + this.getBadge(); + layList.laydate.render({ + elem:this.$refs.date_time, + trigger:'click', + eventElem:this.$refs.time, + range:true, + change:function (value){ + that.where.data=value; + } + }); + } + }) }); </script> {/block} diff --git a/application/admin/view/agent/agent_manage/stair.php b/application/admin/view/agent/agent_manage/stair.php index f96da913..00366aff 100644 --- a/application/admin/view/agent/agent_manage/stair.php +++ b/application/admin/view/agent/agent_manage/stair.php @@ -1,45 +1,198 @@ {extend name="public/container"} {block name="content"} -<div class="row"> - <div class="col-sm-12"> - <div class="ibox"> - <div class="ibox-content"> - <div class="table-responsive"> - <table class="table table-striped table-bordered"> - <thead> - <tr> - <th class="text-center">用户头像</th> - <th class="text-center">用户名称</th> - <th class="text-center">绑定时间</th> - <th class="text-center">订单个数</th> - <th class="text-center">获得佣金</th> - </tr> - </thead> - <tbody class=""> - {volist name="list" id="vo"} - <tr> - <td class="text-center"> - <img src="{$vo.avatar}" alt="{$vo.nickname}" title="{$vo.nickname}" style="width:50px;height: 50px;cursor: pointer;" class="head_image" data-image="{$vo.avatar}"> - </td> - <td class="text-center"> - {$vo.nickname} - </td> - <td class="text-center"> - {$vo.add_time|date="Y-m-d H:i:s",###} - </td> - <td class="text-center"> - {$vo.orderCount} - </td> - <td class="text-center"> - {$vo.now_money} - </td> - </tr> - {/volist} - </tbody> - </table> +<div class="layui-fluid"> + <div class="layui-row layui-col-space15" id="app" v-cloak=""> + <!--搜索条件--> + <div class="layui-col-md12"> + <div class="layui-card"> + <div class="layui-card-header">搜索条件</div> + <div class="layui-card-body"> + <div class="layui-carousel layadmin-carousel layadmin-shortcut" lay-anim="" lay-indicator="inside" lay-arrow="none" style="background:none"> + <div class="layui-card-body"> + <div class="layui-row layui-col-space10 layui-form-item"> + <div class="layui-col-lg12"> + <label class="layui-form-label">时间选择:</label> + <div class="layui-input-block" data-type="data" v-cloak=""> + <button class="layui-btn layui-btn-sm" type="button" v-for="item in dataList" @click="setData(item)" :class="{'layui-btn-primary':where.data!=item.value}">{{item.name}}</button> + <button class="layui-btn layui-btn-sm" type="button" ref="time" @click="setData({value:'zd',is_zd:true})" :class="{'layui-btn-primary':where.data!='zd'}">自定义</button> + <button type="button" class="layui-btn layui-btn-sm layui-btn-primary" v-show="showtime==true" ref="date_time">{year.0} - {$year.1}</button> + </div> + </div> + <div class="layui-col-lg12"> + <label class="layui-form-label">用户类型:</label> + <div class="layui-input-block" v-cloak=""> + <button class="layui-btn layui-btn-sm" :class="{'layui-btn-primary':where.type!=item.value}" @click="where.type = item.value" type="button" v-for="item in spread_type">{{item.name}} + <span v-if="item.count!=undefined" class="layui-badge layui-bg-gray">{{item.count}}</span></button> + </div> + </div> + <div class="layui-col-lg12"> + <label class="layui-form-label">用户昵称:</label> + <div class="layui-input-block"> + <input type="text" name="nickname" style="width: 50%" v-model="where.nickname" placeholder="请输入姓名、电话、UID" class="layui-input"> + </div> + </div> + <div class="layui-col-lg12"> + <div class="layui-input-block"> + <button @click="search" type="button" class="layui-btn layui-btn-sm layui-btn-normal"> + <i class="layui-icon layui-icon-search"></i>搜索</button> + <button @click="refresh" type="reset" class="layui-btn layui-btn-primary layui-btn-sm"> + <i class="layui-icon layui-icon-refresh" ></i>刷新</button> + </div> + </div> + </div> + </div> + </div> + </div> + </div> + </div> + <!--end--> + <!-- 中间详细信息--> + <div :class="item.col!=undefined ? 'layui-col-sm'+item.col+' '+'layui-col-md'+item.col +' layui-col-xs'+item.col:'layui-col-sm4 layui-col-md3'" v-for="item in badge" v-cloak="" v-if="item.count > 0"> + <div class="layui-card"> + <div class="layui-card-header"> + {{item.name}} + <span class="layui-badge layuiadmin-badge" :class="item.background_color">{{item.field}}</span> + </div> + <div class="layui-card-body"> + <p class="layuiadmin-big-font">{{item.count}}</p> + <p v-show="item.content!=undefined"> + {{item.content}} + <span class="layuiadmin-span-color">{{item.sum}}<i :class="item.class"></i></span> + </p> + </div> + </div> + </div> + <!--enb--> + </div> + <div class="layui-row layui-col-space15"> + <div class="layui-col-md12"> + <div class="layui-card"> + <div class="layui-card-header">分销员列表</div> + <div class="layui-card-body"> + <div class="layui-btn-container"> + <!-- <div class="layui-btn-group conrelTable">--> + <!-- <button class="layui-btn layui-btn-sm layui-btn-normal" type="button" data-type="refresh"><i class="layui-icon layui-icon-refresh" ></i>刷新</button>--> + <!-- </div>--> + </div> + <table class="layui-hide" id="userList" lay-filter="userList"></table> + <script type="text/html" id="avatar"> + <img style="cursor: pointer" lay-event='open_image' src="{{d.avatar}}"> + </script> + <!--用户信息--> + <script type="text/html" id="userinfo"> + 昵称:{{d.nickname==null ? '暂无信息':d.nickname}} + <br>姓名:{{d.real_name==null ? '暂无信息':d.real_name}} + <br>电话:{{d.phone==null ? '暂无信息':d.phone}} + </script> </div> </div> </div> </div> </div> +<script src="{__ADMIN_PATH}js/layuiList.js"></script> +{/block} +{block name="script"} +<script> + var action={ + refresh:function () { + layList.reload(); + } + },uid = {$uid}; + layList.form.render(); + layList.tableList('userList',"{:Url('get_stair_list',['uid'=>$uid])}",function () { + return [ + {field: 'uid', title: 'UID',width:'10%'}, + {field: 'avatar', title: '头像',templet:'#avatar'}, + {field: 'real_name', title: '用户信息',templet:'#userinfo',width:'22%'}, + {field: 'promoter_name', title: '是否推广员'}, + {field: 'spread_count', title: '推广人数',sort: true}, + {field: 'order_count', title: '订单数',sort: true}, + {field: 'add_time', title: '关注时间',width:'10%',sort: true}, + ]; + }); + layList.date({elem:'#start_time',theme:'#393D49',type:'datetime'}); + layList.date({elem:'#end_time',theme:'#393D49',type:'datetime'}); + layList.search('search',function(where){ + if(where.start_time!='' && where.end_time=='') return layList.msg('请选择结束时间'); + if(where.end_time!='' && where.start_time=='') return layList.msg('请选择开始时间'); + layList.reload(where,true); + }); + $('.conrelTable').find('button').each(function () { + var type=$(this).data('type'); + $(this).on('click',function () { + action[type] && action[type](); + }) + }) + require(['vue'],function(Vue) { + new Vue({ + el: "#app", + data: { + badge: [], + dataList: [ + {name: '全部', value: ''}, + {name: '昨天', value: 'yesterday'}, + {name: '今天', value: 'today'}, + {name: '最近7天', value: 'lately7'}, + {name: '最近30天', value: 'lately30'}, + {name: '本月', value: 'month'}, + {name: '本年', value: 'year'}, + ], + spread_type:[ + {name:'全部',value:''}, + {name:'一级推广人',value:'1'}, + {name:'二级推广人',value:'2'}, + ], + where:{ + data:'', + nickname: '', + type:'', + uid:uid + }, + showtime: false, + }, + watch:{ + + }, + methods:{ + getBadge:function(){ + var that=this; + layList.baseGet(layList.Url({a:'get_stair_badge',q:that.where}),function (rem) { + that.badge=rem.data; + }); + }, + setData:function(item){ + var that=this; + if(item.is_zd==true){ + that.showtime=true; + this.where.data=this.$refs.date_time.innerText; + }else{ + this.showtime=false; + this.where.data=item.value; + } + }, + search:function () { + this.where.excel=0; + this.getBadge(); + layList.reload(this.where,true); + }, + refresh:function () { + layList.reload(); + this.getBadge(); + } + }, + mounted:function () { + this.getBadge(); + layList.laydate.render({ + elem:this.$refs.date_time, + trigger:'click', + eventElem:this.$refs.time, + range:true, + change:function (value){ + that.where.data=value; + } + }); + } + }) + }); +</script> {/block} diff --git a/application/admin/view/agent/agent_manage/stair_order.php b/application/admin/view/agent/agent_manage/stair_order.php new file mode 100644 index 00000000..8a1ff795 --- /dev/null +++ b/application/admin/view/agent/agent_manage/stair_order.php @@ -0,0 +1,206 @@ +{extend name="public/container"} +{block name="content"} +<div class="layui-fluid"> + <div class="layui-row layui-col-space15" id="app" v-cloak=""> + <!--搜索条件--> + <div class="layui-col-md12"> + <div class="layui-card"> + <div class="layui-card-header">搜索条件</div> + <div class="layui-card-body"> + <div class="layui-carousel layadmin-carousel layadmin-shortcut" lay-anim="" lay-indicator="inside" lay-arrow="none" style="background:none"> + <div class="layui-card-body"> + <div class="layui-row layui-col-space10 layui-form-item"> + <div class="layui-col-lg12"> + <label class="layui-form-label">时间选择:</label> + <div class="layui-input-block" data-type="data" v-cloak=""> + <button class="layui-btn layui-btn-sm" type="button" v-for="item in dataList" @click="setData(item)" :class="{'layui-btn-primary':where.data!=item.value}">{{item.name}}</button> + <button class="layui-btn layui-btn-sm" type="button" ref="time" @click="setData({value:'zd',is_zd:true})" :class="{'layui-btn-primary':where.data!='zd'}">自定义</button> + <button type="button" class="layui-btn layui-btn-sm layui-btn-primary" v-show="showtime==true" ref="date_time">{year.0} - {$year.1}</button> + </div> + </div> + <div class="layui-col-lg12"> + <label class="layui-form-label">订单类型:</label> + <div class="layui-input-block" v-cloak=""> + <button class="layui-btn layui-btn-sm" :class="{'layui-btn-primary':where.type!=item.value}" @click="where.type = item.value" type="button" v-for="item in spread_type">{{item.name}} + <span v-if="item.count!=undefined" class="layui-badge layui-bg-gray">{{item.count}}</span></button> + </div> + </div> + <div class="layui-col-lg12"> + <label class="layui-form-label">订单号:</label> + <div class="layui-input-block"> + <input type="text" name="order_id" style="width: 50%" v-model="where.order_id" placeholder="请输入姓名、电话、UID、订单号" class="layui-input"> + </div> + </div> + <div class="layui-col-lg12"> + <div class="layui-input-block"> + <button @click="search" type="button" class="layui-btn layui-btn-sm layui-btn-normal"> + <i class="layui-icon layui-icon-search"></i>搜索</button> + <button @click="refresh" type="reset" class="layui-btn layui-btn-primary layui-btn-sm"> + <i class="layui-icon layui-icon-refresh" ></i>刷新</button> + </div> + </div> + </div> + </div> + </div> + </div> + </div> + </div> + <!--end--> + <!-- 中间详细信息--> + <div :class="item.col!=undefined ? 'layui-col-sm'+item.col+' '+'layui-col-md'+item.col+' layui-col-xs'+item.col:'layui-col-sm6 layui-col-md3'" v-for="item in badge" v-cloak="" v-if="item.count > 0"> + <div class="layui-card"> + <div class="layui-card-header"> + {{item.name}} + <span class="layui-badge layuiadmin-badge" :class="item.background_color">{{item.field}}</span> + </div> + <div class="layui-card-body"> + <p class="layuiadmin-big-font">{{item.count}}</p> + <p v-show="item.content!=undefined"> + {{item.content}} + <span class="layuiadmin-span-color">{{item.sum}}<i :class="item.class"></i></span> + </p> + </div> + </div> + </div> + <!--enb--> + </div> + <div class="layui-row layui-col-space15"> + <div class="layui-col-md12"> + <div class="layui-card"> + <div class="layui-card-header">分销员列表</div> + <div class="layui-card-body"> + <div class="layui-btn-container"> + <div class="layui-btn-group conrelTable"> + <button class="layui-btn layui-btn-sm layui-btn-normal" type="button" data-type="refresh"><i class="layui-icon layui-icon-refresh" ></i>刷新</button> + </div> + </div> + <table class="layui-hide" id="userList" lay-filter="userList"></table> + <script type="text/html" id="time"> + <p>下单:{{d._add_time}}</p> + <p>支付:{{d._pay_time}}</p> + <p>收货:{{d.take_time}}</p> + </script> + <script type="text/html" id="user_info"> + <p>{{d.user_info}}</p> + </script> + <script type="text/html" id="order_id"> + <a href="javascript:;" lay-event="order_id">{{d.order_id}}</a> + </script> + </div> + </div> + </div> + </div> +</div> +<script src="{__ADMIN_PATH}js/layuiList.js"></script> +{/block} +{block name="script"} +<script> + var action={ + refresh:function () { + layList.reload(); + } + },uid = {$uid}; + layList.form.render(); + layList.tableList('userList',"{:Url('get_stair_order_list',['uid'=>$uid])}",function () { + return [ + {field: 'order_id', title: '订单ID',templet:'#order_id'}, + {field: 'user_info', title: '用户信息' ,templet:'#user_info'}, + // {field: 'spread_info', title: '上级信息' }, + // {field: 'order_info', title: '订单详情' }, + {field: 'time', title: '时间',templet:'#time'}, + {field: 'number_price', title: '返佣金额'}, + ]; + }); + layList.date({elem:'#start_time',theme:'#393D49',type:'datetime'}); + layList.date({elem:'#end_time',theme:'#393D49',type:'datetime'}); + layList.search('search',function(where){ + if(where.start_time!='' && where.end_time=='') return layList.msg('请选择结束时间'); + if(where.end_time!='' && where.start_time=='') return layList.msg('请选择开始时间'); + layList.reload(where,true); + }); + $('.conrelTable').find('button').each(function () { + var type=$(this).data('type'); + $(this).on('click',function () { + action[type] && action[type](); + }) + }) + layList.tool(function (event,data,obj) { + switch (event){ + case 'order_id': + $eb.createModalFrame('订单列表',layList.U({c:'order.store_order',a:'index',q:{real_name:data.order_id}}),{w:1100}); + break; + } + }); + require(['vue'],function(Vue) { + new Vue({ + el: "#app", + data: { + badge: [], + dataList: [ + {name: '全部', value: ''}, + {name: '今天', value: 'today'}, + {name: '昨天', value: 'yesterday'}, + {name: '最近7天', value: 'lately7'}, + {name: '最近30天', value: 'lately30'}, + {name: '本月', value: 'month'}, + {name: '本年', value: 'year'}, + ], + spread_type:[ + {name:'全部',value:''}, + {name:'一级推广人订单',value:'1'}, + {name:'二级推广人订单',value:'2'}, + ], + where:{ + data:'', + order_id: '', + type:'', + uid:uid + }, + showtime: false, + }, + watch:{ + + }, + methods:{ + getBadge:function(){ + var that=this; + layList.baseGet(layList.Url({a:'get_stair_order_badge',q:that.where}),function (rem) { + that.badge=rem.data; + }); + }, + setData:function(item){ + var that=this; + if(item.is_zd==true){ + that.showtime=true; + this.where.data=this.$refs.date_time.innerText; + }else{ + this.showtime=false; + this.where.data=item.value; + } + }, + search:function () { + this.where.excel=0; + this.getBadge(); + layList.reload(this.where,true); + }, + refresh:function () { + layList.reload(); + this.getBadge(); + } + }, + mounted:function () { + this.getBadge(); + layList.laydate.render({ + elem:this.$refs.date_time, + trigger:'click', + eventElem:this.$refs.time, + range:true, + change:function (value){ + that.where.data=value; + } + }); + } + }) + }); +</script> +{/block} diff --git a/application/admin/view/article/article/create.php b/application/admin/view/article/article/create.php index aeb06bc2..e816961e 100644 --- a/application/admin/view/article/article/create.php +++ b/application/admin/view/article/article/create.php @@ -1 +1 @@ -{extend name="public/container"} {block name="head_top"} <link href="{__ADMIN_PATH}plug/umeditor/themes/default/css/umeditor.css" type="text/css" rel="stylesheet"> <link href="{__ADMIN_PATH}module/wechat/news/css/style.css" type="text/css" rel="stylesheet"> <link href="{__FRAME_PATH}css/plugins/chosen/chosen.css" rel="stylesheet"> <script type="text/javascript" src="{__ADMIN_PATH}plug/umeditor/third-party/jquery.min.js"></script> <script type="text/javascript" src="{__ADMIN_PATH}plug/umeditor/third-party/template.min.js"></script> <script type="text/javascript" charset="utf-8" src="{__ADMIN_PATH}plug/umeditor/umeditor.config.js"></script> <script type="text/javascript" charset="utf-8" src="{__ADMIN_PATH}plug/umeditor/umeditor.min.js"></script> <script src="{__ADMIN_PATH}frame/js/ajaxfileupload.js"></script> <script src="{__ADMIN_PATH}plug/validate/jquery.validate.js"></script> <script src="{__FRAME_PATH}js/plugins/chosen/chosen.jquery.js"></script> {/block} {block name="content"} <div class="row" style="width: 100%"> <div class="col-sm-12"> <div class="col-sm-2 panel panel-default news-left"> <div class="panel-heading">文章列表</div> <div class="panel-body news-box type-all" > {if condition="$news['image_input']"} <div class="news-item transition active news-image" style="margin-bottom: 20px;background-image:url({$news['image_input']})"> {else/} <div class="news-item transition active news-image" style="margin-bottom: 20px;background-image:url('/public/system/module/wechat/news/images/image.png')"> {/if} <input type="hidden" name="new_id" value="{$news.id}" class="new-id"> </div> </div> </div><!-- col-sm-10 panel panel-default news-right --> <div class="col-sm-12 panel panel-default" > <div class="panel-heading">文章内容编辑</div> <div class="panel-body"> <form class="form-horizontal" id="signupForm"> <div class="form-group"> <div class="col-md-12"> <div class="input-group"> <span class="input-group-addon">标题</span> <input maxlength="64" placeholder="请在这里输入标题" name="title" class="layui-input" id="title" value="{$news.title}"> <input type="hidden" name="id" value="{$news.id}"> </div> </div> </div> <div class="form-group"> <div class="col-md-12"> <div class="input-group"> <span class="input-group-addon">作者</span> <input maxlength="8" placeholder="请输入作者" name="author" class="layui-input" id="author" value="{$news.author}"> </div> </div> </div> <div class="form-group"> <div class="col-md-12"> <div class="input-group"> <span class="input-group-addon">文章分类</span> <?php if(empty($all)){?> <select data-placeholder="请先添加文章分类" class="chosen-select" style="width:100%;" tabindex="4" name="type_id"> <?php }else{ ?> <select data-placeholder="选择文章分类" class="chosen-select" style="width:100%;" tabindex="4" name="type_id" {eq name="$select" value="1"}disabled="disabled"{/eq}> <?php }?> {volist name="all" id="vo" key="k"} {if condition="$key eq $cid"} <option value="{$key}" selected hassubinfo="true" >{$vo}</option> {elseif condition="in_array($key,$news['cid'])"} <option value="{$key}" selected hassubinfo="true" >{$vo}</option> {else/} <option value="{$key}" hassubinfo="true" >{$vo}</option> {/if} {/volist} </select></div> </div> </div> <div class="form-group"> <div class="col-md-12"> <div class="form-control" style="height:auto"> <label style="color:#ccc">图文封面大图片设置</label> <div class="row nowrap"> <div class="col-xs-3" style="width:160px"> {if condition="$news['image_input']"} <div class="upload-image-box transition image_img" style="height: 80px;background-repeat:no-repeat;background-size:contain;background-image:url({$news['image_input']})"> <input value="" type="hidden" name="local_url"> </div> {else/} <div class="upload-image-box transition image_img" style="height: 80px;background-repeat:no-repeat;background-size:contain;background-image:url('/public/system/module/wechat/news/images/image.png')"> <input value="" type="hidden" name="local_url"> </div> {/if} </div> <div class="col-xs-6"> <input type="file" class="upload" name="image" style="display: none;" id="image" /> <br> <a class="btn btn-sm add_image upload_span">上传图片</a> <br> <br> </div> </div> <input type="hidden" name="image" id="image_input" value="{$news['image_input']}"/> <p class="help-block" style="margin-top:10px;color:#ccc">封面大图片建议尺寸:900像素 * 500像素</p> </div> </div> </div> <div class="form-group"> <div class="col-md-12"> <label style="color:#aaa">文章简介</label> <textarea id="synopsis" name="synopsis" class="layui-input" style="height:80px;resize:none;line-height:20px;color:#333;">{$news.synopsis}</textarea> </div> </div> <div class="form-group"> <div class="col-md-12"> <label style="color:#aaa">文章内容</label> <textarea type="text/plain" id="myEditor" style="width:100%;">{$news['content']}</textarea> </div> </div> <div class="form-group"> <div class="col-md-12"> <div class="col-md-6"> <label style="color:#aaa">是否显示banner</label> <br/> <input type="radio" name="is_banner" class="layui-radio" value="0" {eq name="news['is_banner']" value="0"}checked{/eq}>否 <input type="radio" name="is_banner" class="layui-radio" value="1" {eq name="news['is_banner']" value="1"}checked{/eq}>是 </div> <div class="col-md-6"> <label style="color:#aaa">是否显示热门</label> <br/> <input type="radio" name="is_hot" class="layui-radio" value="0" {eq name="news['is_hot']" value="0"}checked{/eq}>否 <input type="radio" name="is_hot" class="layui-radio" value="1" {eq name="news['is_hot']" value="1"}checked{/eq}>是 </div> </div> </div> <div class="form-group"> <div class="col-md-12"> <label style="display:block"><span style="color:#aaa;">原文链接<b>选填</b>,填写之后在图文左下方会出现此链接</span> <input maxlength="200" name="url" class="layui-input" id="url" value="{$news.url}"> </label> </div> </div> <div class="form-actions"> <div class="row"> <div class="col-md-offset-4 col-md-9"> <button type="button" class="btn btn-w-m btn-info save_news">保存</button> </div> </div> </div> </form> </div> </div> </div> </div> {/block} {block name="script"} <script> var editor = document.getElementById('myEditor'); editor.style.height = '300px'; //实例化编辑器 var um = UM.getEditor('myEditor',{ // fullscreen:true }); /** * 获取编辑器内的内容 * */ function getContent() { return (UM.getEditor('myEditor').getContent()); } function hasContent() { return (UM.getEditor('myEditor').hasContents()); } function createFrame(title,src,opt){ opt === undefined && (opt = {}); return layer.open({ type: 2, title:title, area: [(opt.w || 700)+'px', (opt.h || 650)+'px'], fixed: false, //不固定 maxmin: true, moveOut:false,//true 可以拖出窗外 false 只能在窗内拖 anim:5,//出场动画 isOutAnim bool 关闭动画 offset:'auto',//['100px','100px'],//'auto',//初始位置 ['100px','100px'] t[ 上 左] shade:0,//遮罩 resize:true,//是否允许拉伸 content: src,//内容 move:'.layui-layer-title' }); } function changeIMG(index,pic){ $(".image_img").css('background-image',"url("+pic+")"); $(".active").css('background-image',"url("+pic+")"); $('#image_input').val(pic); }; /** * 上传图片 * */ $('.upload_span').on('click',function (e) { // $('.upload').trigger('click'); createFrame('选择图片','{:Url('widget.images/index')}?fodder=image'); }) /** * 编辑器上传图片 * */ $('.edui-icon-image').on('click',function (e) { // $('.upload').trigger('click'); createFrame('选择图片','{:Url('widget.images/index')}?fodder=image'); }) /** * 提交图文 * */ $('.save_news').on('click',function(){ var list = {}; list.title = $('#title').val();/* 标题 */ list.author = $('#author').val();/* 作者 */ list.image_input = $('#image_input').val();/* 图片 */ list.content = getContent();/* 内容 */ list.synopsis = $('#synopsis').val();/* 简介 */ list.url = $('#url').val();/* 原文链接 */ list.cid = $('.chosen-select').val(); list.is_hot = $("input[name='is_hot']:checked").val(); list.is_banner = $("input[name='is_banner']:checked").val(); var Expression = /http(s)?:\/\/([\w-]+\.)+[\w-]+(\/[\w- .\/?%&=]*)?/; var objExp=new RegExp(Expression); if(list.title == ''){ $eb.message('error','请输入标题'); return false; } if(list.author == ''){ $eb.message('error','请输入作者'); return false; } if(list.image_input == ''){ $eb.message('error','请添加图片'); return false; } if(list.content == ''){ $eb.message('error','请输入内容'); return false; } if(list.synopsis == ''){ $eb.message('error','请输入简介'); return false; }if(list.url != ''){ if(objExp.test(list.url) != true){ $eb.message('error','网址格式不正确!请重新输入'); return false; } } var id = $('.type-all>.active>.new-id').val(); if(id != ''){ list.id = id; } var data = {}; $.ajax({ url:"{:Url('add_new')}", data:list, type:'post', dataType:'json', success:function(re){ if(re.code == 200){ data[re.data] = list; $('.type-all>.active>.new-id').val(re.data); $eb.message('success',re.msg); setTimeout(function (e) { parent.$(".J_iframe:visible")[0].contentWindow.location.reload(); // parent.layer.close(parent.layer.getFrameIndex(window.name)); },600) }else{ $eb.message('error',re.msg); } } }) }); $('.article-add ').on('click',function (e) { var num_div = $('.type-all').children('div').length; if(num_div > 7){ $eb.message('error','一组图文消息最多可以添加8个'); return false; } var url = "/public/system/module/wechat/news/images/image.png"; html = ''; html += '<div class="news-item transition active news-image" style=" margin-bottom: 20px;background-image:url('+url+')">' html += '<input type="hidden" name="new_id" value="" class="new-id">'; html += '<span class="news-title del-news">x</span>'; html += '</div>'; $(this).siblings().removeClass("active"); $(this).before(html); }) $(document).on("click",".del-news",function(){ $(this).parent().remove(); }) $(document).ready(function() { var config = { ".chosen-select": {}, ".chosen-select-deselect": {allow_single_deselect: true}, ".chosen-select-no-single": {disable_search_threshold: 10}, ".chosen-select-no-results": {no_results_text: "沒有找到你要搜索的分类"}, ".chosen-select-width": {width: "95%"} }; for (var selector in config) { $(selector).chosen(config[selector]) } }) </script> {/block} \ No newline at end of file +{extend name="public/container"} {block name="head_top"} <link href="{__ADMIN_PATH}plug/umeditor/themes/default/css/umeditor.css" type="text/css" rel="stylesheet"> <link href="{__ADMIN_PATH}module/wechat/news/css/style.css" type="text/css" rel="stylesheet"> <link href="{__FRAME_PATH}css/plugins/chosen/chosen.css" rel="stylesheet"> <script type="text/javascript" src="{__ADMIN_PATH}plug/umeditor/third-party/jquery.min.js"></script> <script type="text/javascript" src="{__ADMIN_PATH}plug/umeditor/third-party/template.min.js"></script> <script type="text/javascript" charset="utf-8" src="{__ADMIN_PATH}plug/umeditor/umeditor.config.js"></script> <script type="text/javascript" charset="utf-8" src="{__ADMIN_PATH}plug/umeditor/umeditor.min.js"></script> <script src="{__ADMIN_PATH}frame/js/ajaxfileupload.js"></script> <script src="{__ADMIN_PATH}plug/validate/jquery.validate.js"></script> <script src="{__FRAME_PATH}js/plugins/chosen/chosen.jquery.js"></script> {/block} {block name="content"} <div class="row" style="width: 100%"> <div class="col-sm-12"> <div class="col-sm-2 panel panel-default news-left"> <div class="panel-heading">文章列表</div> <div class="panel-body news-box type-all" > {if condition="$news['image_input']"} <div class="news-item transition active news-image" style="margin-bottom: 20px;background-image:url({$news['image_input']})"> {else/} <div class="news-item transition active news-image" style="margin-bottom: 20px;background-image:url('/public/system/module/wechat/news/images/image.png')"> {/if} <input type="hidden" name="new_id" value="{$news.id}" class="new-id"> </div> </div> </div><!-- col-sm-10 panel panel-default news-right --> <div class="col-sm-12 panel panel-default" > <div class="panel-heading">文章内容编辑</div> <div class="panel-body"> <form class="form-horizontal" id="signupForm"> <div class="form-group"> <div class="col-md-12"> <div class="input-group"> <span class="input-group-addon">标题</span> <input maxlength="64" placeholder="请在这里输入标题" name="title" class="layui-input" id="title" value="{$news.title}"> <input type="hidden" name="id" value="{$news.id}"> </div> </div> </div> <div class="form-group"> <div class="col-md-12"> <div class="input-group"> <span class="input-group-addon">作者</span> <input maxlength="8" placeholder="请输入作者" name="author" class="layui-input" id="author" value="{$news.author}"> </div> </div> </div> <div class="form-group"> <div class="col-md-12"> <div class="input-group"> <span class="input-group-addon">文章分类</span> <?php if(empty($all)){?> <select data-placeholder="请先添加文章分类" class="chosen-select" style="width:100%;" tabindex="4" name="type_id"> <?php }else{ ?> <select data-placeholder="选择文章分类" class="chosen-select" style="width:100%;" tabindex="4" name="type_id" {eq name="$select" value="1"}disabled="disabled"{/eq}> <?php }?> {volist name="all" id="vo" key="k"} {if condition="$key eq $cid"} <option value="{$key}" selected hassubinfo="true" >{$vo}</option> {elseif condition="in_array($key,$news['cid'])"} <option value="{$key}" selected hassubinfo="true" >{$vo}</option> {else/} <option value="{$key}" hassubinfo="true" >{$vo}</option> {/if} {/volist} </select></div> </div> </div> <div class="form-group"> <div class="col-md-12"> <div class="form-control" style="height:auto"> <label style="color:#ccc">图文封面大图片设置</label> <div class="row nowrap"> <div class="col-xs-3" style="width:160px"> {if condition="$news['image_input']"} <div class="upload-image-box transition image_img" style="height: 80px;background-repeat:no-repeat;background-size:contain;background-image:url({$news['image_input']})"> <input value="" type="hidden" name="local_url"> </div> {else/} <div class="upload-image-box transition image_img" style="height: 80px;background-repeat:no-repeat;background-size:contain;background-image:url('/public/system/module/wechat/news/images/image.png')"> <input value="" type="hidden" name="local_url"> </div> {/if} </div> <div class="col-xs-6"> <input type="file" class="upload" name="image" style="display: none;" id="image" /> <br> <a class="btn btn-sm add_image upload_span">上传图片</a> <br> <br> </div> </div> <input type="hidden" name="image" id="image_input" value="{$news['image_input']}"/> <p class="help-block" style="margin-top:10px;color:#ccc">封面大图片建议尺寸:900像素 * 500像素</p> </div> </div> </div> <div class="form-group"> <div class="col-md-12"> <label style="color:#aaa">文章简介</label> <textarea id="synopsis" name="synopsis" class="layui-input" style="height:80px;resize:none;line-height:20px;color:#333;">{$news.synopsis}</textarea> </div> </div> <div class="form-group"> <div class="col-md-12"> <label style="color:#aaa">文章内容</label> <textarea type="text/plain" id="myEditor" style="width:100%;">{$news['content']}</textarea> </div> </div> <div class="form-group"> <div class="col-md-12"> <div class="col-md-6"> <label style="color:#aaa">是否显示banner</label> <br/> <input type="radio" name="is_banner" class="layui-radio" value="0" {eq name="news['is_banner']" value="0"}checked{/eq}>否 <input type="radio" name="is_banner" class="layui-radio" value="1" {eq name="news['is_banner']" value="1"}checked{/eq}>是 </div> <div class="col-md-6"> <label style="color:#aaa">是否显示热门</label> <br/> <input type="radio" name="is_hot" class="layui-radio" value="0" {eq name="news['is_hot']" value="0"}checked{/eq}>否 <input type="radio" name="is_hot" class="layui-radio" value="1" {eq name="news['is_hot']" value="1"}checked{/eq}>是 </div> </div> </div> <div class="form-group"> <div class="col-md-12"> <label style="display:block"><span style="color:#aaa;">原文链接<b>选填</b>,填写之后在图文左下方会出现此链接</span> <input maxlength="200" name="url" class="layui-input" id="url" value="{$news.url}"> </label> </div> </div> <div class="form-actions"> <div class="row"> <div class="col-md-offset-4 col-md-9"> <button type="button" class="btn btn-w-m btn-info save_news">保存</button> </div> </div> </div> </form> </div> </div> </div> </div> {/block} {block name="script"} <script> var editor = document.getElementById('myEditor'); editor.style.height = '300px'; window.UMEDITOR_CONFIG.toolbar = [ // 加入一个 test 'source | undo redo | bold italic underline strikethrough | superscript subscript | forecolor backcolor | removeformat |', 'insertorderedlist insertunorderedlist | selectall cleardoc paragraph | fontfamily fontsize' , '| justifyleft justifycenter justifyright justifyjustify |', 'link unlink | emotion selectimgs video | map', '| horizontal print preview fullscreen', 'drafts', 'formula' ]; UM.registerUI('selectimgs',function(name){ var me = this; var $btn = $.eduibutton({ icon : 'image', click : function(){ createFrame('选择图片','{:Url('widget.images/index')}?fodder=editor'); }, title: '选择图片' }); this.addListener('selectionchange',function(){ //切换为不可编辑时,把自己变灰 var state = this.queryCommandState(name); $btn.edui().disabled(state == -1).active(state == 1) }); return $btn; }); //实例化编辑器 var um = UM.getEditor('myEditor',{ // fullscreen:true }); /** * 获取编辑器内的内容 * */ function getContent() { return (UM.getEditor('myEditor').getContent()); } function hasContent() { return (UM.getEditor('myEditor').hasContents()); } function createFrame(title,src,opt){ opt === undefined && (opt = {}); return layer.open({ type: 2, title:title, area: [(opt.w || 700)+'px', (opt.h || 650)+'px'], fixed: false, //不固定 maxmin: true, moveOut:false,//true 可以拖出窗外 false 只能在窗内拖 anim:5,//出场动画 isOutAnim bool 关闭动画 offset:'auto',//['100px','100px'],//'auto',//初始位置 ['100px','100px'] t[ 上 左] shade:0,//遮罩 resize:true,//是否允许拉伸 content: src,//内容 move:'.layui-layer-title' }); } //选择图片 function changeIMG(index,pic){ $(".image_img").css('background-image',"url("+pic+")"); $(".active").css('background-image',"url("+pic+")"); $('#image_input').val(pic); } //选择图片插入到编辑器中 function insertEditor(list){ console.log(list); um.execCommand('insertimage', list); } /** * 上传图片 * */ $('.upload_span').on('click',function (e) { // $('.upload').trigger('click'); createFrame('选择图片','{:Url('widget.images/index')}?fodder=image'); }) /** * 编辑器上传图片 * */ $('.edui-icon-image').on('click',function (e) { // $('.upload').trigger('click'); createFrame('选择图片','{:Url('widget.images/index')}?fodder=image'); }) /** * 提交图文 * */ $('.save_news').on('click',function(){ var list = {}; list.title = $('#title').val();/* 标题 */ list.author = $('#author').val();/* 作者 */ list.image_input = $('#image_input').val();/* 图片 */ list.content = getContent();/* 内容 */ list.synopsis = $('#synopsis').val();/* 简介 */ list.url = $('#url').val();/* 原文链接 */ list.cid = $('.chosen-select').val(); list.is_hot = $("input[name='is_hot']:checked").val(); list.is_banner = $("input[name='is_banner']:checked").val(); var Expression = /http(s)?:\/\/([\w-]+\.)+[\w-]+(\/[\w- .\/?%&=]*)?/; var objExp=new RegExp(Expression); if(list.title == ''){ $eb.message('error','请输入标题'); return false; } if(list.author == ''){ $eb.message('error','请输入作者'); return false; } if(list.image_input == ''){ $eb.message('error','请添加图片'); return false; } if(list.content == ''){ $eb.message('error','请输入内容'); return false; } if(list.synopsis == ''){ $eb.message('error','请输入简介'); return false; }if(list.url != ''){ if(objExp.test(list.url) != true){ $eb.message('error','网址格式不正确!请重新输入'); return false; } } var id = $('.type-all>.active>.new-id').val(); if(id != ''){ list.id = id; } var data = {}; $.ajax({ url:"{:Url('add_new')}", data:list, type:'post', dataType:'json', success:function(re){ if(re.code == 200){ data[re.data] = list; $('.type-all>.active>.new-id').val(re.data); $eb.message('success',re.msg); setTimeout(function (e) { parent.$(".J_iframe:visible")[0].contentWindow.location.reload(); // parent.layer.close(parent.layer.getFrameIndex(window.name)); },600) }else{ $eb.message('error',re.msg); } } }) }); $('.article-add ').on('click',function (e) { var num_div = $('.type-all').children('div').length; if(num_div > 7){ $eb.message('error','一组图文消息最多可以添加8个'); return false; } var url = "/public/system/module/wechat/news/images/image.png"; html = ''; html += '<div class="news-item transition active news-image" style=" margin-bottom: 20px;background-image:url('+url+')">' html += '<input type="hidden" name="new_id" value="" class="new-id">'; html += '<span class="news-title del-news">x</span>'; html += '</div>'; $(this).siblings().removeClass("active"); $(this).before(html); }) $(document).on("click",".del-news",function(){ $(this).parent().remove(); }) $(document).ready(function() { var config = { ".chosen-select": {}, ".chosen-select-deselect": {allow_single_deselect: true}, ".chosen-select-no-single": {disable_search_threshold: 10}, ".chosen-select-no-results": {no_results_text: "沒有找到你要搜索的分类"}, ".chosen-select-width": {width: "95%"} }; for (var selector in config) { $(selector).chosen(config[selector]) } }) </script> {/block} \ No newline at end of file diff --git a/application/admin/view/finance/finance/commission_list.php b/application/admin/view/finance/finance/commission_list.php index 754ac1ae..4faaf7ef 100644 --- a/application/admin/view/finance/finance/commission_list.php +++ b/application/admin/view/finance/finance/commission_list.php @@ -37,7 +37,7 @@ <div class="layui-input-inline"> <button class="layui-btn layui-btn-sm layui-btn-normal" lay-submit="search" lay-filter="search"> <i class="layui-icon layui-icon-search"></i>搜索</button> - <button class="layui-btn layui-btn-primary layui-btn-sm export" type="button"> + <button class="layui-btn layui-btn-primary layui-btn-sm export" type="button" lay-submit="excel" lay-filter="excel"> <i class="fa fa-floppy-o" style="margin-right: 3px;"></i>导出</button> </div> </div> @@ -67,15 +67,17 @@ return [ {field: 'nickname', title: '昵称/姓名',unresize:true}, {field: 'sum_number', title: '总佣金金额',sort:true,unresize:true}, - {field: 'now_money', title: '剩余佣金',unresize:true}, + {field: 'now_money', title: '账户余额',unresize:true}, + {field: 'money', title: '剩余佣金',unresize:true}, {field: 'ex_price', title: '提现佣金',unresize:true}, {field: 'extract_price', title: '提现到账佣金',unresize:true}, {fixed: 'right', title: '操作',align:'center',unresize:true,toolbar:'#barDemo'}, ]; }); layList.search('search'); - $('.export').click(function(){ - location.href=layList.U({a:'save_export'}); + layList.search('excel',function (where) { + where.excel = 1; + location.href=layList.U({a:'get_commission_list',q:where}); }) </script> {/block} \ No newline at end of file diff --git a/application/admin/view/index/index.php b/application/admin/view/index/index.php index c6d46502..51d0d247 100644 --- a/application/admin/view/index/index.php +++ b/application/admin/view/index/index.php @@ -264,6 +264,7 @@ </div> </div> </div> + <!--右侧边栏结束--> </div> <!--vue调用不能删除--> @@ -277,24 +278,9 @@ <script src="{__FRAME_PATH}js/contabs.min.js"></script> <script src="{__FRAME_PATH}js/plugins/pace/pace.min.js"></script> {include file="public/style"} -<script src="{__ADMIN_PATH}js/index.js"></script> <script> - $(function() { - function getnotice() { - $.getJSON("{:Url('Jnotice')}",function(res){ - var info = eval("("+res+")"); - var data = info.data; - $('#msgcount').html(data.msgcount); - $('#ordernum').html(data.ordernum + '个'); - $('#inventory').html(data.inventory + '个'); - $('#commentnum').html(data.commentnum + '个'); - $('#reflectnum').html(data.reflectnum + '个'); - }); - } - getnotice(); - setInterval(getnotice, 600000); - }); - + window.newOrderAudioLink='{$new_order_audio_link}'; </script> +<script src="{__ADMIN_PATH}js/index.js"></script> </body> </html> diff --git a/application/admin/view/index/main.php b/application/admin/view/index/main.php index 2b649cff..233ead99 100644 --- a/application/admin/view/index/main.php +++ b/application/admin/view/index/main.php @@ -15,7 +15,7 @@ </div> <div class="ibox-content"> <h1 class="no-margins">{$topData.orderDeliveryNum}</h1> - <small><a href="{:Url('order.store_order/index')}">待发货</a> </small> + <small><a href="javascript:;" class="opFrames" data-name="订单管理" data-href="{:Url('order.store_order/index',['status'=>1])}">待发货</a> </small> </div> </div> </div> @@ -27,7 +27,7 @@ </div> <div class="ibox-content"> <h1 class="no-margins">{$topData.orderRefundNum}</h1> - <small><a href="{:Url('order.store_order/index')}">退换货</a></small> + <small><a href="javascript:;" class="opFrames" data-name="订单管理" data-href="{:Url('order.store_order/index',['status'=>-1])}">退换货</a></small> </div> </div> </div> @@ -39,7 +39,7 @@ </div> <div class="ibox-content"> <h1 class="no-margins">{$topData.stockProduct}</h1> - <small><a href="{:Url('store.store_product/index',array('type'=>5))}">库存预警</a></small> + <small><a href="javascript:;" class="opFrames" data-name="商品管理" data-href="{:Url('store.store_product/index',array('type'=>5))}">库存预警</a></small> </div> </div> </div> @@ -51,7 +51,7 @@ </div> <div class="ibox-content"> <h1 class="no-margins">{$topData.treatedExtract}</h1> - <small><a href="{:Url('finance.user_extract/index')}">待提现</a></small> + <small><a href="javascript:;" class="opFrames" data-name="提现盛情" data-href="{:Url('finance.user_extract/index')}">待提现</a></small> </div> </div> </div> @@ -67,7 +67,7 @@ {$first_line.d_num.percent}% {if condition='$first_line.d_num.is_plus egt 0'}<i class="fa {if condition='$first_line.d_num.is_plus eq 1'}fa-level-up{else /}fa-level-down{/if}"></i>{/if} </div> - <small>昨日订单数</small> + <small><a href="javascript:;" class="opFrames" data-name="订单管理" data-href="{:Url('order.store_order/index')}?data=yesterday">昨日订单数</a></small> </div> </div> </div> @@ -83,7 +83,7 @@ {$first_line.d_price.percent}% {if condition='$first_line.d_price.is_plus egt 0'}<i class="fa {if condition='$first_line.d_price.is_plus eq 1'}fa-level-up{else /}fa-level-down{/if}"></i>{/if} </div> - <small>昨日交易额</small> + <small><a href="javascript:;" class="opFrames" data-name="订单管理" data-href="{:Url('order.store_order/index')}?data=yesterday">昨日交易额</a></small> </div> </div> </div> @@ -99,7 +99,7 @@ {$first_line.day.percent}% {if condition='$first_line.day.is_plus egt 0'}<i class="fa {if condition='$first_line.day.is_plus eq 1'}fa-level-up{else /}fa-level-down{/if}"></i>{/if} </div> - <small>今日新增粉丝</small> + <small><a href="javascript:;" class="opFrames" data-name="会员管理" data-href="{:Url('user.user/index')}">今日新增粉丝</a></small> </div> </div> </div> @@ -115,7 +115,7 @@ {$first_line.month.percent}% {if condition='$first_line.month.is_plus egt 0'}<i class="fa {if condition='$first_line.month.is_plus eq 1'}fa-level-up{else /}fa-level-down{/if}"></i>{/if} </div> - <small>本月新增粉丝</small> + <small><a href="javascript:;" class="opFrames" data-name="会员管理" data-href="{:Url('user.user/index')}">本月新增粉丝</a></small> </div> </div> </div> @@ -273,14 +273,17 @@ default: break; } - that.cyclecount = res.data.data.cycle.count.data; - that.cyclecount_percent = res.data.data.cycle.count.percent; - that.cyclecount_is_plus = res.data.data.cycle.count.is_plus; - that.cycleprice = res.data.data.cycle.price.data; - that.cycleprice_percent = res.data.data.cycle.price.percent; - that.cycleprice_is_plus = res.data.data.cycle.price.is_plus; - that.pre_cyclecount = res.data.data.pre_cycle.count.data; - that.pre_cycleprice = res.data.data.pre_cycle.price.data; + var data=res.data.data; + if(data.length) { + that.cyclecount = data.cycle.count.data; + that.cyclecount_percent = data.cycle.count.percent; + that.cyclecount_is_plus = data.cycle.count.is_plus; + that.cycleprice = data.cycle.price.data; + that.cycleprice_percent = data.cycle.price.percent; + that.cycleprice_is_plus = data.cycle.price.is_plus; + that.pre_cyclecount = data.pre_cycle.count.data; + that.pre_cycleprice = data.pre_cycle.price.data; + } }); }, orderchartsetoption:function(data){ @@ -436,7 +439,9 @@ this.setChart(self.$refs.user_echart,'user_echart');//用户图表 this.info(); this.getlist(); - + $('.opFrames').on('click',function () { + parent.addframes($(this).data('href'),'',$(this).data('name')); + }); } }); }); diff --git a/application/admin/view/order/store_order/index.php b/application/admin/view/order/store_order/index.php index 42c26666..06b82f56 100644 --- a/application/admin/view/order/store_order/index.php +++ b/application/admin/view/order/store_order/index.php @@ -79,6 +79,9 @@ <div class="layui-card"> <div class="layui-card-header">订单列表</div> <div class="layui-card-body"> + <div class="layui-btn-container" id="container-action"> + <button class="layui-btn layui-btn-sm" data-type="del_order">批量删除订单</button> + </div> <table class="layui-hide" id="List" lay-filter="List"></table> <!--订单--> <script type="text/html" id="order_id"> @@ -153,8 +156,8 @@ </li> </ul> {{# }else if(d._status==2){ }} - <button class="btn btn-primary btn-xs" type="button" onclick="$eb.createModalFrame('去发货','{:Url('deliver_goods')}?id={{d.id}}',{w:400,h:300})"> - <i class="fa fa-cart-plus"></i> 去发货</button> + <button class="btn btn-primary btn-xs" type="button" onclick="$eb.createModalFrame('发送货','{:Url('order_goods')}?id={{d.id}}',{w:400,h:250})"> + <i class="fa fa-cart-plus"></i> 发送货</button> <button type="button" class="layui-btn layui-btn-xs" onclick="dropdown(this)">操作 <span class="caret"></span></button> <ul class="layui-nav-child layui-anim layui-anim-upbit"> <li> @@ -162,11 +165,6 @@ <i class="fa fa-file-text"></i> 订单详情 </a> </li> - <li> - <a href="javascript:void(0);" onclick="$eb.createModalFrame('去送货','{:Url('delivery')}?id={{d.id}}',{w:400,h:300})"> - <i class="fa fa-motorcycle"></i> 去送货 - </a> - </li> <li> <a lay-event='marke' href="javascript:void(0);" > <i class="fa fa-paste"></i> 订单备注 @@ -199,11 +197,6 @@ <i class="fa fa-file-text"></i> 订单详情 </a> </li> - <li> - <a href="javascript:void(0);" onclick="$eb.createModalFrame('去送货','{:Url('delivery')}?id={{d.id}}',{w:400,h:300})"> - <i class="fa fa-motorcycle"></i> 去送货 - </a> - </li> {{# if(d.use_integral > 0 && d.use_integral >= d.back_integral){ }} <li> <a lay-event='marke' href="javascript:void(0);"> @@ -256,13 +249,13 @@ </li> {{# if(parseFloat(d.pay_price) > parseFloat(d.refund_price)){ }} <li> - <a href="javascript:void(0);" onclick="$eb.createModalFrame('退款','{:Url('refund_y')}?id={{d.id}}')"> + <a href="javascript:void(0);" onclick="$eb.createModalFrame('退款','{:Url('refund_y')}?id={{d.id}}',{w:400,h:300})"> <i class="fa fa-history"></i> 立即退款 </a> </li> {{# }else if(d.use_integral > 0 && d.use_integral >= d.back_integral){ }} <li> - <a href="javascript:void(0);" onclick="$eb.createModalFrame('退积分','{:Url('integral_back')}?id={{d.id}}')"> + <a href="javascript:void(0);" onclick="$eb.createModalFrame('退积分','{:Url('integral_back')}?id={{d.id}}',{w:400,h:300})"> <i class="fa fa-history"></i> 退积分 </a> </li> @@ -288,14 +281,14 @@ </li> {{# if(parseFloat(d.pay_price) > parseFloat(d.refund_price)){ }} <li> - <a href="javascript:void(0);" onclick="$eb.createModalFrame('退款','{:Url('refund_y')}?id={{d.id}}')"> + <a href="javascript:void(0);" onclick="$eb.createModalFrame('退款','{:Url('refund_y')}?id={{d.id}}',{w:400,h:300})"> <i class="fa fa-history"></i> 立即退款 </a> </li> {{# };}} {{# if(d.use_integral > 0 && d.use_integral >= d.back_integral){ }} <li> - <a href="javascript:void(0);" onclick="$eb.createModalFrame('退积分','{:Url('integral_back')}?id={{d.id}}')"> + <a href="javascript:void(0);" onclick="$eb.createModalFrame('退积分','{:Url('integral_back')}?id={{d.id}}',{w:400,h:300})"> <i class="fa fa-history"></i> 退积分 </a> </li> @@ -321,7 +314,7 @@ </li> {{# if(parseFloat(d.pay_price) > parseFloat(d.refund_price)){ }} <li> - <a href="javascript:void(0);" onclick="$eb.createModalFrame('退款','{:Url('refund_y')}?id={{d.id}}')"> + <a href="javascript:void(0);" onclick="$eb.createModalFrame('退款','{:Url('refund_y')}?id={{d.id}}',{w:400,h:300})"> <i class="fa fa-history"></i> 立即退款 </a> </li> @@ -353,6 +346,7 @@ <script> layList.tableList('List',"{:Url('order_list',['real_name'=>$real_name])}",function (){ return [ + {type:'checkbox'}, {field: 'order_id', title: '订单号', sort: true,event:'order_id',width:'14%',templet:'#order_id'}, {field: 'nickname', title: '用户信息',templet:'#userinfo',width:'10%'}, {field: 'info', title: '商品信息',templet:"#info"}, @@ -437,8 +431,32 @@ }).toggle(); } } + var action={ + del_order:function () { + var ids=layList.getCheckData().getIds('id'); + if(!ids.length) return layList.msg('请选择需要删除的订单'); + layList.layer.confirm('您确定要删除选中订单吗?', { + btn: ['是的,我要删除','我在想想'] //按钮 + }, function(){ + layList.basePost(layList.U({a:'del_order'}),{ids:ids},function (res) { + layList.msg(res.msg); + layList.reload(); + },function (res) { + layList.msg(res.msg); + }); + }); + + } + } + //多选事件绑定 + $('#container-action').find('button').each(function () { + var type=$(this).data('type'); + $(this).on('click',function(){ + action[type] && action[type](); + }) + }); var real_name='<?=$real_name?>'; - var orderCount=<?=json_encode($orderCount)?>; + var orderCount=<?=json_encode($orderCount)?>,status=<?=$status ? $status : "''"?>; require(['vue'],function(Vue) { new Vue({ el: "#app", @@ -447,7 +465,9 @@ orderType: [ {name: '全部', value: ''}, {name: '普通订单', value: 1,count:orderCount.general}, - {name: '秒杀订单', value: 3,count:orderCount.seckill} + {name: '拼团订单', value: 2,count:orderCount.pink}, + {name: '秒杀订单', value: 3,count:orderCount.seckill}, + {name: '砍价订单', value: 4,count:orderCount.bargain}, ], orderStatus: [ {name: '全部', value: ''}, @@ -458,19 +478,20 @@ {name: '交易完成', value: 4,count:orderCount.jy}, {name: '退款中', value: -1,count:orderCount.tk,class:true}, {name: '已退款', value: -2,count:orderCount.yt}, + {name: '已删除', value: -4,count:orderCount.del}, ], dataList: [ {name: '全部', value: ''}, - {name: '昨天', value: 'yesterday'}, {name: '今天', value: 'today'}, - {name: '本周', value: 'week'}, + {name: '昨天', value: 'yesterday'}, + {name: '最近7天', value: 'lately7'}, + {name: '最近30天', value: 'lately30'}, {name: '本月', value: 'month'}, - {name: '本季度', value: 'quarter'}, {name: '本年', value: 'year'}, ], where:{ data:'', - status:'', + status:status, type:'', real_name:real_name || '', excel:0, @@ -478,7 +499,18 @@ showtime: false, }, watch: { - + 'where.status':function () { + this.getBadge(); + layList.reload(this.where,true); + }, + 'where.data':function () { + this.getBadge(); + layList.reload(this.where,true); + }, + 'where.type':function () { + this.getBadge(); + layList.reload(this.where,true); + } }, methods: { setData:function(item){ diff --git a/application/admin/view/order/store_order/order_goods.php b/application/admin/view/order/store_order/order_goods.php new file mode 100644 index 00000000..026f23e8 --- /dev/null +++ b/application/admin/view/order/store_order/order_goods.php @@ -0,0 +1,93 @@ +{extend name="public/container"} +{block name="content"} +<div class="layui-fluid" style="background: #fff"> + <form class="layui-form" action=""> + <div class="layui-form-item"> + <label class="layui-form-label">选择类型</label> + <div class="layui-input-block"> + <input type="radio" name="type" value="1" lay-filter="type" title="发货" checked> + <input type="radio" name="type" value="2" lay-filter="type" title="送货"> + <input type="radio" name="type" value="3" lay-filter="type" title="虚拟"> + </div> + </div> + <div class="type" data-type="1"> + <div class="layui-form-item"> + <label class="layui-form-label">快递公司</label> + <div class="layui-input-block"> + <select name="delivery_name"> + <option value="">请选择</option> + {volist name='$list' id='item' key='k'} + <option value="{$item}">{$item}</option> + {/volist} + </select> + </div> + </div> + <div class="layui-form-item"> + <label class="layui-form-label">快递单号</label> + <div class="layui-input-block"> + <input type="text" name="delivery_id" placeholder="请输入快递单号" autocomplete="off" class="layui-input"> + </div> + </div> + </div> + <div class="type" data-type="2" style="display: none"> + <div class="layui-form-item"> + <label class="layui-form-label">送货人姓名</label> + <div class="layui-input-block"> + <input type="text" name="sh_delivery_name" placeholder="请输入送货人姓名" autocomplete="off" class="layui-input"> + </div> + </div> + <div class="layui-form-item"> + <label class="layui-form-label">送货人电话</label> + <div class="layui-input-block"> + <input type="text" name="sh_delivery_id" placeholder="请输入送货人电话" autocomplete="off" class="layui-input"> + </div> + </div> + </div> + <div class="layui-form-item" style="margin:10px 0;padding-bottom: 10px;"> + <div class="layui-input-block"> + <button class="layui-btn layui-btn-sm" lay-submit="" lay-filter="delivery">立即提交</button> + <button type="reset" class="layui-btn layui-btn-primary layui-btn-sm">重置</button> + </div> + </div> + </form> +</div> +<script src="{__ADMIN_PATH}js/layuiList.js"></script> +{/block} +{block name="script"} +<script> + var id={$id}; + layList.form.render(); + layList.form.on('radio(type)', function(data){ + $('.type').each(function () { + if($(this).data('type') == data.value){ + $(this).show(); + }else{ + $(this).hide(); + } + }) + }); + layList.search('delivery',function (data) { + console.log(data); + if(data.type == '1'){ + if(!data.delivery_name) return layList.msg('请选择快递公司'); + if(!data.delivery_id) return layList.msg('请填写快递单号'); + } + if(data.type == '2'){ + if(!data.sh_delivery_name) return layList.msg('请填写送货人姓名'); + if(!data.sh_delivery_id) return layList.msg('请填写送货人电话'); + } + var index = layList.layer.load(1, { + shade: [0.1,'#fff'] + }); + layList.basePost(layList.U({a:'update_delivery',q:{id:id}}),data,function (res) { + layList.layer.close(index); + layList.msg(res.msg); + parent.layer.close(parent.layer.getFrameIndex(window.name)); + },function (res) { + layList.layer.close(index); + layList.msg(res.msg); + }); + }); + +</script> +{/block} \ No newline at end of file diff --git a/application/admin/view/public/edit_content.php b/application/admin/view/public/edit_content.php index 0e47f324..49979d38 100644 --- a/application/admin/view/public/edit_content.php +++ b/application/admin/view/public/edit_content.php @@ -14,6 +14,8 @@ <script type="text/javascript" charset="utf-8" src="{__ADMIN_PATH}plug/umeditor/umeditor.config.js"></script> <script type="text/javascript" charset="utf-8" src="{__ADMIN_PATH}plug/umeditor/umeditor.min.js"></script> <script type="text/javascript" src="{__ADMIN_PATH}plug/umeditor/lang/zh-cn/zh-cn.js"></script> + <link href="{__PLUG_PATH}layui/css/layui.css" rel="stylesheet"> + <script src="{__PLUG_PATH}layui/layui.all.js"></script> <style> .edui-btn-toolbar .edui-btn.edui-active .edui-icon-fullscreen.edui-icon{ display: none;} .edui-container{overflow: initial !important;} @@ -35,8 +37,39 @@ <body> <button class="btn btn-success dim" data-url="{$action}" type="button"><i class="fa fa-upload"></i> </button> -<script type="text/plain" id="myEditor" style="width:100%;"> -{$content ? $content : ''} +<textarea type="text/plain" id="myEditor" style="width:100%;">{$content ? $content : ''}</textarea> + +<script type="text/javascript"> + $eb = parent._mpApi; + $('.dim').on('click',function(){ + $.ajax({ + url: $(this).data('url'), + type: 'POST', + dataType: 'json', + data: {'{$field}':getContent()}, + success: function (res) { + if(res.status == 200 && res.data.code == 200){ + $eb.message('success','保存成功!'); + } else + return Promise.reject(res.data.msg || '保存失败!'); + }, + error: function () { + $eb.message('error',err); + } + }); + }); + var editor = document.getElementById('myEditor'); + editor.style.height = document.body.scrollHeight+'px'; + //实例化编辑器 + var um = UM.getEditor('myEditor',{ + fullscreen:true + }); + function getContent() { + return (UM.getEditor('myEditor').getContent()); + } + function hasContent() { + return (UM.getEditor('myEditor').hasContents()); + } </script> <script type="text/javascript"> $eb = parent._mpApi; @@ -52,6 +85,32 @@ }); var editor = document.getElementById('myEditor'); editor.style.height = document.body.scrollHeight+'px'; + window.UMEDITOR_CONFIG.toolbar = [ + // 加入一个 test + 'source | undo redo | bold italic underline strikethrough | superscript subscript | forecolor backcolor | removeformat |', + 'insertorderedlist insertunorderedlist | selectall cleardoc paragraph | fontfamily fontsize' , + '| justifyleft justifycenter justifyright justifyjustify |', + 'link unlink | emotion selectimgs video | map', + '| horizontal print preview fullscreen', 'drafts', 'formula' + ]; + UM.registerUI('selectimgs',function(name){ + var me = this; + var $btn = $.eduibutton({ + icon : 'image', + click : function(){ + createFrame('选择图片','{:Url('widget.images/index')}?fodder=editor'); + }, + title: '选择图片' + }); + + this.addListener('selectionchange',function(){ + //切换为不可编辑时,把自己变灰 + var state = this.queryCommandState(name); + $btn.edui().disabled(state == -1).active(state == 1) + }); + return $btn; + + }); //实例化编辑器 var um = UM.getEditor('myEditor',{ fullscreen:true @@ -62,6 +121,35 @@ function hasContent() { return (UM.getEditor('myEditor').hasContents()); } + //弹窗 + function createFrame(title,src,opt){ + opt === undefined && (opt = {}); + return layer.open({ + type: 2, + title:title, + area: [(opt.w || 800)+'px', (opt.h || 550)+'px'], + fixed: false, //不固定 + maxmin: true, + moveOut:false,//true 可以拖出窗外 false 只能在窗内拖 + anim:5,//出场动画 isOutAnim bool 关闭动画 + offset:'auto',//['100px','100px'],//'auto',//初始位置 ['100px','100px'] t[ 上 左] + shade:0,//遮罩 + resize:true,//是否允许拉伸 + content: src,//内容 + move:'.layui-layer-title' + }); + } + //选择图片 + function changeIMG(index,pic){ + $(".image_img").css('background-image',"url("+pic+")"); + $(".active").css('background-image',"url("+pic+")"); + $('#image_input').val(pic); + } + //选择图片插入到编辑器中 + function insertEditor(list){ + console.log(list); + um.execCommand('insertimage', list); + } </script> </body> </html> \ No newline at end of file diff --git a/application/admin/view/public/form-builder.php b/application/admin/view/public/form-builder.php index 4ce59978..89d97804 100644 --- a/application/admin/view/public/form-builder.php +++ b/application/admin/view/public/form-builder.php @@ -11,8 +11,10 @@ <script src="{__PLUG_PATH}form-create/form-create.min.js"></script> <style> /*弹框样式修改*/ - .ivu-modal-body{padding: 5;} - .ivu-modal-confirm-footer{display: none;} + .ivu-modal{top: 20px;} + .ivu-modal .ivu-modal-body{padding: 10px;} + .ivu-modal .ivu-modal-body .ivu-modal-confirm-head{padding:0 0 10px 0;} + .ivu-modal .ivu-modal-body .ivu-modal-confirm-footer{display: none;padding-bottom: 10px;} .ivu-date-picker {display: inline-block;line-height: normal;width: 280px;} </style> </head> diff --git a/application/admin/view/record/record/chart_order.php b/application/admin/view/record/record/chart_order.php index b7497ce6..95ec2acc 100644 --- a/application/admin/view/record/record/chart_order.php +++ b/application/admin/view/record/record/chart_order.php @@ -84,8 +84,6 @@ <div class="layui-input-block"> <button @click="search" type="button" class="layui-btn layui-btn-sm layui-btn-normal"> <i class="layui-icon layui-icon-search"></i>搜索</button> - <button class="layui-btn layui-btn-warm layui-btn-sm export" type="button"> - <i class="fa fa-floppy-o" style="margin-right: 3px;"></i>导出</button> <button @click="refresh" type="reset" class="layui-btn layui-btn-primary layui-btn-sm"> <i class="layui-icon layui-icon-refresh" ></i>刷新</button> </div> @@ -164,6 +162,8 @@ typeList:[ {name:'全部',value:''}, {name:'普通',value:1}, + {name:'拼团',value:2}, + {name:'砍价',value:3}, {name:'秒杀',value:4}, ], status:'', diff --git a/application/admin/view/setting/system_group/create.php b/application/admin/view/setting/system_group/create.php index b443a030..cfc18368 100644 --- a/application/admin/view/setting/system_group/create.php +++ b/application/admin/view/setting/system_group/create.php @@ -96,7 +96,7 @@ value: '' }, param: { - placeholder: "参数方式例如:\n1=白色\n2=红色\n3=黑色", + placeholder: "参数方式例如:\n1=>白色\n2=>红色\n3=>黑色", value: '' } }) diff --git a/application/admin/view/store/copy_taobao/index.php b/application/admin/view/store/copy_taobao/index.php new file mode 100644 index 00000000..a5843c32 --- /dev/null +++ b/application/admin/view/store/copy_taobao/index.php @@ -0,0 +1,314 @@ +{extend name="public/container"} +{block name='head_top'} +<style> + #app .layui-form-label{padding: 9px 15px;width: 80px;} + #app .layui-input-margin-5{margin-top: 5px} + #app .layui-input-image{width: 100px;height: 100px;} + #app .layui-box{width:100px;height:140px;display: inline-block;margin-right: 10px;margin-bottom: 10px;padding: 2px;border: 1px dashed #0d8ddb;border-radius: 3px;text-align: center;} + #app .layui-box img{width: 100px;height: 100px;margin: 0 auto;display: block;} + #app .layui-box.box-border-color{border: 1px solid #0bb20c;} + #app .layui-box .layui-text{background: rgba(0,0,0,.3);} + #app .layui-box .layui-text p{width: 50%;display: inline;text-align: center;} + #app .spinner {margin: 50px auto;width: 50px;height: 60px;text-align: center;font-size: 10px;} + #app .spinner > div {background-color: #0092DC;height: 100%;width: 6px;display: inline-block;-webkit-animation: stretchdelay 1.2s infinite ease-in-out;animation: stretchdelay 1.2s infinite ease-in-out;} + #app .spinner .rect2 {-webkit-animation-delay: -1.1s;animation-delay: -1.1s;} + #app .spinner .rect3 {-webkit-animation-delay: -1.0s;animation-delay: -1.0s;} + #app .spinner .rect4 {-webkit-animation-delay: -0.9s;animation-delay: -0.9s;} + #app .spinner .rect5 {-webkit-animation-delay: -0.8s;animation-delay: -0.8s;} + #app .save-button{position: fixed;width: 100%;bottom: 0;} + @-webkit-keyframes stretchdelay { 0%, 40%, 100% { -webkit-transform: scaleY(0.4) } 20% { -webkit-transform: scaleY(1.0) } } + @keyframes stretchdelay { 0%, 40%, 100% {transform: scaleY(0.4);-webkit-transform: scaleY(0.4);} 20% {transform: scaleY(1.0);-webkit-transform: scaleY(1.0);} } +</style> +{/block} +{block name="content"} +<div class="layui-fluid"> + <div class="layui-row layui-col-space15" id="app" v-cloak=""> + <div class="layui-col-md12"> + <div class="layui-card"> + <div class="layui-card-body"> + <blockquote class="layui-elem-quote layui-quote-nm"> + 链接格式说明: 输入以http或https开头的淘宝、天猫、1688、京东的商品详情页网址,网址正确且商品信息存在时才能入库成功。生成的产品默认是没有上架的,请手动上架产品!轮播图选中的颜色是绿色边框的请注意 + </blockquote> + <div class="layui-form-item"> + <label class="layui-form-label">链接地址</label> + <div class="layui-input-block"> + <input type="text" style="width: 80%;display: inline-block;vertical-align: middle" v-model="link" autocomplete="off" placeholder="链接地址" class="layui-input"> + <button @click="checkUrl" class="layui-btn layui-btn-sm layui-btn-normal" lay-submit="search" lay-filter="search" style="vertical-align: middle"> + <i class="layui-icon layui-icon-add-1"></i>确定</button> + </div> + </div> + </div> + </div> + <div class="layui-card" v-if="isLink && link"> + <div class="layui-card-header">商品编辑</div> + <div class="layui-card-body"> + <form class="layui-form" action=""> + <div class="layui-form-item"> + <label class="layui-form-label">选择分类</label> + <div class="layui-input-block"> + <select name="cate_id" v-model="productInfo.cate_id" lay-verify="cate_id" lay-filter="cate_id"> + <option value="">请选择</option> + <option :value="item.value" v-for="item in categoryList" :disabled="item.disabled" v-text="item.label"></option> + </select> + </div> + </div> + <div class="layui-form-item"> + <label class="layui-form-label">产品名称</label> + <div class="layui-input-block"> + <input type="text" name="title" v-model="productInfo.store_name" autocomplete="off" placeholder="请输入产品名称" class="layui-input"> + </div> + </div> + <div class="layui-form-item layui-form-text"> + <label class="layui-form-label">产品简介</label> + <div class="layui-input-block"> + <textarea placeholder="请输入内容" class="layui-textarea" v-model="productInfo.store_info"></textarea> + </div> + </div> + <div class="layui-form-item layui-input-margin-5"> + <div class="layui-inline"> + <label class="layui-form-label">产品关键字</label> + <div class="layui-input-inline"> + <input type="text" name="text" autocomplete="off" class="layui-input" v-model="productInfo.keyword"> + </div> + </div> + <div class="layui-inline"> + <label class="layui-form-label">产品单位</label> + <div class="layui-input-inline"> + <input type="text" name="text" autocomplete="off" class="layui-input" v-model="productInfo.unit_name"> + </div> + </div> + <div class="layui-inline"> + <label class="layui-form-label">产品售价</label> + <div class="layui-input-inline"> + <input type="number" name="number" autocomplete="off" class="layui-input" v-model="productInfo.price"> + </div> + </div> + </div> + <div class="layui-form-item layui-input-margin-5"> + <div class="layui-inline"> + <label class="layui-form-label">产品市场价</label> + <div class="layui-input-inline"> + <input type="number" name="number" autocomplete="off" class="layui-input" v-model="productInfo.ot_price"> + </div> + </div> + <div class="layui-inline"> + <label class="layui-form-label">赠送积分</label> + <div class="layui-input-inline"> + <input type="number" name="number" autocomplete="off" class="layui-input" v-model="productInfo.give_integral"> + </div> + </div> + <div class="layui-inline"> + <label class="layui-form-label">邮费</label> + <div class="layui-input-inline"> + <input type="number" name="number" autocomplete="off" class="layui-input" v-model="productInfo.postage"> + </div> + </div> + </div> + <div class="layui-form-item layui-input-margin-5"> + <div class="layui-inline"> + <label class="layui-form-label">虚拟销量</label> + <div class="layui-input-inline"> + <input type="number" name="number" autocomplete="off" class="layui-input" v-model="productInfo.ficti"> + </div> + </div> + <div class="layui-inline"> + <label class="layui-form-label">库存</label> + <div class="layui-input-inline"> + <input type="number" name="number" autocomplete="off" class="layui-input" v-model="productInfo.stock"> + </div> + </div> + <div class="layui-inline"> + <label class="layui-form-label">产品成本价</label> + <div class="layui-input-inline"> + <input type="number" name="number" autocomplete="off" class="layui-input" v-model="productInfo.cost"> + </div> + </div> + </div> + <div class="layui-form-item"> + <label class="layui-form-label">产品主图片(305*305px)</label> + <div class="layui-input-block"> + <div class="layui-box box-border-color" style="height: 100px;"> + <img :src="productInfo.image" alt="" class="layui-input-image" @click="lookImage(productInfo.image)"> + </div> + </div> + </div> + <div class="layui-form-item"> + <label class="layui-form-label">产品轮播图(640*640px)</label> + <div class="layui-input-block"> + <div class="layui-box" :class="item.isSelect ? 'box-border-color':'' " v-for="(item,index) in productInfo.slider_image" > + <img :src="item.pic" alt="" class="layui-input-image" @click="lookImage(item.pic)"> + <div class="layui-btn-group" style="margin-top: 12px"> + <button type="button" class="layui-btn layui-btn-primary layui-btn-sm" @click=" productInfo.image=item.pic ">主图</button> + <button type="button" class="layui-btn layui-btn-primary layui-btn-sm" @click="item.isSelect = !item.isSelect">{{ item.isSelect ? '移除': '选中' }}</button> + </div> + </div> + </div> + </div> +<!-- <div class="layui-form-item" v-if="productInfo.description_images.length">--> +<!-- <label class="layui-form-label">详情图片</label>--> +<!-- <div class="layui-input-block">--> +<!-- <div class="layui-box" :class="item.isSelect ? 'box-border-color':'' " v-for="(item,index) in productInfo.description_images" >--> +<!-- <img :src="item.pic" alt="" class="layui-input-image" @click="lookImage(item.pic)">--> +<!-- <div class="layui-btn-group" style="margin-top: 12px">--> +<!-- <button type="button" class="layui-btn layui-btn-primary layui-btn-sm" @click="item.isSelect = !item.isSelect">{{ item.isSelect ? '移除': '选中' }}</button>--> +<!-- </div>--> +<!-- </div>--> +<!-- </div>--> +<!-- </div>--> + <div class="layui-form-item layui-input-margin-5" style="margin-bottom: 40px;"> + <label class="layui-form-label">详情内容</label> + <div class="layui-input-block"> + <textarea id="description" style="display: none;" class="layui-textarea" v-model="productInfo.description"></textarea> + </div> + </div> + </form> + </div> + <button class="layui-btn save-button" type="button" @click="saveProduct">立即保存</button> + </div> + <div class="layui-card" v-if="isLink==false && link && loading"> + <div class="spinner"> + <div class="rect1"></div> + <div class="rect2"></div> + <div class="rect3"></div> + <div class="rect4"></div> + <div class="rect5"></div> + </div> + </div> + </div> + </div> +</div> +<script src="{__ADMIN_PATH}js/layuiList.js"></script> +{/block} +{block name="script"} +<script> + layList.form.render(); + require(['vue'],function(Vue) { + new Vue({ + el: "#app", + data: { + categoryList:<?=json_encode($menus)?>, + link:'', + linkhistory:'', + isLink:false, + loading:false, + productInfo:{ + description_images:[], + }, + slider_image:[], + editIndex:0, + }, + methods:{ + checkUrl:function () { + if(!this.link) return layList.msg('请输入链接地址'); + if(this.link==this.linkhistory) return false; + this.linkhistory=this.link; + this.loading=true; + layList.basePost(layList.U({a:'get_request_contents'}),{link:this.link},function (res) { + this.loading=false; + this.linkhistory=''; + var slider_image=res.data.slider_image,slider_image_new=[],description_images=res.data.description_images,description_images_new=[]; + for (var i=0;i<slider_image.length;i++){ + slider_image_new.push({pic:slider_image[i],isSelect:true}); + } + for(var k=0;k<description_images.length;k++){ + description_images_new.push({pic:description_images[k],isSelect:true}); + } + res.data.slider_image=slider_image_new; + res.data.description_images=description_images_new; + this.productInfo=res.data; + this.isLink=true; + this.$set(this,'productInfo',this.productInfo); + this.$nextTick(function () { + layList.form.render('select'); + this.editIndex=layList.layedit.build('description',{ + tool: ['strong', 'italic', 'underline', 'del','|', 'left','center','right','link','unlink','face'] + }); + }.bind(this)); + }.bind(this),function (res) { + this.loading=false; + this.linkhistory=''; + layList.msg(res.msg); + }.bind(this)); + }, + lookImage:function (pic) { + if($eb) $eb.openImage(pic); + }, + saveProduct:function () { + var that=this,productInfo={ + cate_id:that.productInfo.cate_id, + store_name:that.productInfo.store_name, + store_info:that.productInfo.store_info, + ficti:that.productInfo.ficti, + unit_name:that.productInfo.unit_name, + slider_image:that.productInfo.slider_image, + price:that.productInfo.price, + image:that.productInfo.image, + keyword:that.productInfo.keyword, + give_integral:that.productInfo.give_integral, + give_integral:that.productInfo.give_integral, + ot_price:that.productInfo.ot_price, + stock:that.productInfo.stock, + cost:that.productInfo.cost, + postage:that.productInfo.postage, + description:that.productInfo.description, + description_images:that.productInfo.description_images, + soure_link:that.link, + }; + if(!that.productInfo.cate_id) return layList.msg('请选择分类'); + if(!that.productInfo.store_name) return layList.msg('请填写商品名称'); + if(!that.productInfo.unit_name) return layList.msg('请填写产品单位'); + if(!that.productInfo.price) return layList.msg('请填写产品价格'); + if(!that.productInfo.ot_price) return layList.msg('请填写产品市场价'); + if(!that.productInfo.cost) return layList.msg('请填写产品成本价'); + if(!that.productInfo.stock) return layList.msg('请填写产品库存'); + productInfo.slider_image=that.setArraySelect(productInfo.slider_image); + productInfo.description_images=that.setArraySelect(productInfo.description_images); + productInfo.description=layList.layedit.getContent(that.editIndex); + layList.layer.confirm('保存产品生成图片可能较慢,保存中请耐心等待,请不要关闭窗口!确认生成产品和图片吗?', { + btn: ['确定生成','我在想想'] //按钮 + }, function(){ + var index=layList.layer.load(1, {shade: [0.5,'#000000']}); + layList.basePost(layList.U({a:'save_product'}),productInfo,function (res) { + layList.layer.close(index); + layList.msg(res.msg,function () { + var res=layList.layer.confirm('是否要继续添加?', { + btn: ['是的','不了我要关闭'] //按钮 + },function () { + that.productInfo={description_images:[]}; + that.link=''; + that.linkhistory=''; + that.$set(that,'productInfo',that.productInfo); + layList.layer.close(res); + },function () { + parent.layer.close(parent.layer.getFrameIndex(window.name)); + }) + }) + },function (res){ + layList.layer.close(index); + layList.msg(res.msg); + }); + }); + }, + setArraySelect:function (Arraylist) { + var list=[]; + for(var i=0,len=Arraylist.length;i<len;i++) { + if(Arraylist[i].isSelect) list.push(Arraylist[i].pic); + } + return list; + } + }, + mounted:function () { + var that=this; + this.$nextTick(function () { + layList.form.render(); + layList.select('cate_id',function (data) { + that.productInfo.cate_id=data.value; + }); + }) + + } + }) + }) +</script> +{/block} + diff --git a/application/admin/view/store/store_product/attr.php b/application/admin/view/store/store_product/attr.php index 9f6d9ae6..052dd6ce 100644 --- a/application/admin/view/store/store_product/attr.php +++ b/application/admin/view/store/store_product/attr.php @@ -201,10 +201,11 @@ }, createFrame:function(title,src,opt){ opt === undefined && (opt = {}); + var h = parent.document.body.clientHeight - 60; return layer.open({ type: 2, title:title, - area: [(opt.w || 700)+'px', (opt.h || 650)+'px'], + area: [(opt.w || 700)+'px', opt.h ? opt.h+'px': h+'px'], fixed: false, //不固定 maxmin: true, moveOut:false,//true 可以拖出窗外 false 只能在窗内拖 diff --git a/application/admin/view/store/store_product/index.php b/application/admin/view/store/store_product/index.php index c5877ccd..67c7857e 100644 --- a/application/admin/view/store/store_product/index.php +++ b/application/admin/view/store/store_product/index.php @@ -72,6 +72,7 @@ {switch name='type'} {case value="1"} <button class="layui-btn layui-btn-sm" onclick="$eb.createModalFrame(this.innerText,'{:Url('create')}',{h:700,w:1100})">添加产品</button> + <button class="layui-btn layui-btn-sm" onclick="$eb.createModalFrame(this.innerText,'{:Url('store.copy_taobao/index')}',{h:700,w:1100});">复制淘宝、天猫、1688、京东</button> {/case} {case value="2"} <button class="layui-btn layui-btn-sm" data-type="show">批量上架</button> @@ -107,10 +108,10 @@ </script> <!--操作--> <script type="text/html" id="act"> - <button type="button" class="layui-btn layui-btn-xs btn-success" onclick="$eb.createModalFrame('{{d.store_name}}-属性','{:Url('attr')}?id={{d.id}}',{h:700,w:800})"> + <button type="button" class="layui-btn layui-btn-xs btn-success" lay-event='attr' > 属性 </button> - <button type="button" class="layui-btn layui-btn-xs layui-btn-normal" onclick="$eb.createModalFrame('{{d.store_name}}-编辑','{:Url('edit')}?id={{d.id}}',{h:700,w:1100})"> + <button type="button" class="layui-btn layui-btn-xs layui-btn-normal" lay-event='edit'> 编辑 </button> <button type="button" class="layui-btn layui-btn-xs" onclick="dropdown(this)">操作 <span class="caret"></span></button> @@ -131,11 +132,19 @@ <a href="javascript:void(0);" onclick="$eb.createModalFrame(this.innerText,'{:Url('ump.store_combination/combination')}?id={{d.id}}')"> <i class="fa fa-hand-lizard-o"></i> 开启拼团</a> </li> + {{# if(d.is_del){ }} <li> <a href="javascript:void(0);" lay-event='delstor'> - <i class="fa fa-trash"></i> 删除 + <i class="fa fa-trash"></i> 恢复产品 </a> </li> + {{# }else{ }} + <li> + <a href="javascript:void(0);" lay-event='delstor'> + <i class="fa fa-trash"></i> 移到回收站 + </a> + </li> + {{# } }} <li> <a href="{:Url('store.storeProductReply/index')}?product_id={{d.id}}"> <i class="fa fa-warning"></i> 评论查看 @@ -206,12 +215,8 @@ }) //excel下载 layList.search('export',function(where){ - location.href=layList.U({c:'store.store_product',a:'product_ist',q:{ - cate_id:where.cate_id, - store_name:where.store_name, - type:where.type, - excel:1 - }}); + where.excel = 1; + location.href=layList.U({c:'store.store_product',a:'product_ist',q:where}); }) //下拉框 $(document).click(function (e) { @@ -279,6 +284,8 @@ switch (event) { case 'delstor': var url=layList.U({c:'store.store_product',a:'delete',q:{id:data.id}}); + if(data.is_del) var code = {title:"操作提示",text:"确定恢复产品操作吗?",type:'info',confirm:'是的,恢复该产品'}; + else var code = {title:"操作提示",text:"确定将该产品移入回收站吗?",type:'info',confirm:'是的,移入回收站'}; $eb.$swal('delete',function(){ $eb.axios.get(url).then(function(res){ if(res.status == 200 && res.data.code == 200) { @@ -289,11 +296,17 @@ }).catch(function(err){ $eb.$swal('error',err); }); - }) + },code) break; case 'open_image': $eb.openImage(data.image); break; + case 'edit': + $eb.createModalFrame(data.store_name+'-编辑',layList.U({a:'edit',q:{id:data.id}}),{h:720,w:1100}); + break; + case 'attr': + $eb.createModalFrame(data.store_name+'-属性',layList.U({a:'attr',q:{id:data.id}}),{h:600,w:800}) + break; } }) //排序 diff --git a/application/admin/view/store/store_product_reply/index.php b/application/admin/view/store/store_product_reply/index.php index ec8b3b99..27acce0b 100644 --- a/application/admin/view/store/store_product_reply/index.php +++ b/application/admin/view/store/store_product_reply/index.php @@ -72,7 +72,15 @@ <div class="message-box" id="app" v-cloak=""> <div class="layui-col-md3" style="padding: 0 10px 0 0"> <div class="layui-card"> - <div class="layui-card-header">评论产品</div> + <div class="layui-card-header" style="padding-top: 10px;"> + <div style="height: 30px;line-height: 30px;float:left;" >评论产品</div> + <div style="height: 30px;line-height: 30px;float: right;"> + <input style="display: inline;width: auto;" type="text" class="layui-input layui-input-search" v-model="where.product_name" placeholder="搜索产品"> + <button class="layui-btn layui-btn-primary layui-btn-sm" type="button" style="height: 32px;line-height: 32px;" @click="seachs"><i class="layui-icon layui-icon-search"></i>搜索</button> + <button class="layui-btn layui-btn-primary layui-btn-sm" type="button" style="height: 32px;line-height: 32px;margin-left: 0;" @click="Reset"><i class="layui-icon layui-icon-refresh-3"></i>重置</button> + </div> + <div class="clearfix"></div> + </div> <div class="layui-card-body layadmin-homepage-list-imgtxt message-content" ref="producr"> <div class="grid-demo"> <div class="layui-card homepage-bottom"> @@ -106,7 +114,7 @@ <div class="layui-card-body layadmin-homepage-list-imgtxt message-content"> <div class="media-body" v-for="(item,index) in messageList"> <a href="javascript:;" class="media-left" style="float: left;"> - <img :src="item.avatar" height="46px" width="46px"> + <img :src="item.avatar" height="46px" width="46px" @click="see(item.nickname,item.uid)"> </a> <div class="pad-btm"> <p class="fontColor"><a href="javascript:;" v-text="item.nickname"></a></p> @@ -124,8 +132,8 @@ </div> <div class="message-but"> <div class="layui-btn-group"> - <button class="layui-btn layui-btn-normal layui-btn-sm" @click="edit(item,index)">{{item.merchant_reply_time ? "编辑":"回复"}}</button> - <button class="layui-btn layui-btn-danger layui-btn-sm" @click="delReply(item,index)">删除</button> + <button class="layui-btn layui-btn-normal layui-btn-sm" type="button" @click="edit(item,index)">{{item.merchant_reply_time ? "编辑":"回复"}}</button> + <button class="layui-btn layui-btn-danger layui-btn-sm" type="button" @click="delReply(item,index)">删除</button> </div> </div> <fieldset class="layui-elem-field" style="margin-top: 10px" v-if="item.merchant_reply_time"> @@ -146,6 +154,7 @@ {/block} {block name="script"} <script type="text/javascript"> + var product_id=<?=$product_id?>; require(['vue'],function(Vue) { new Vue({ el: "#app", @@ -156,7 +165,8 @@ title:'', is_reply:'', limit:10, - producr_id:0, + product_name:'', + producr_id:product_id, message_page:1, }, product:{ @@ -164,6 +174,7 @@ loadend:false, loadTitle:'加载更多', }, + product_name:'', messageList:[], message:{ loading:false, @@ -180,10 +191,32 @@ this.getMessageList(); }, 'where.message_page':function () { + this.message.loadend=false; this.getMessageList(true); } }, methods:{ + see:function(nickname,uid){ + $eb.createModalFrame(nickname+'-会员详情',layList.Url({c:'user.user',a:'see',p:{uid:uid}})); + }, + Reset:function(){ + if(!this.where.product_name) return; + this.where.page=1; + this.product.loadend=false; + this.product_name=''; + this.where.product_name=''; + this.$set(this,'productImaesList',[]); + this.getProductImaesList(); + }, + seachs:function(){ + this.where.page=1; + this.product.loadend=false; + if(!this.where.product_name && !this.product_name) return layList.msg('请输入产品名称再进行查找!'); + if(this.where.product_name==this.product_name) return; + this.product_name=this.where.product_name; + this.$set(this,'productImaesList',[]); + this.getProductImaesList(); + }, delReply:function(item,index){ var url = layList.U({a:'delete',p:{id:item.id}}),that=this; $eb.$swal('delete',function(){ diff --git a/application/admin/view/system/system_databackup/index.php b/application/admin/view/system/system_databackup/index.php index b5cf5fe0..fa44f554 100644 --- a/application/admin/view/system/system_databackup/index.php +++ b/application/admin/view/system/system_databackup/index.php @@ -147,7 +147,7 @@ if (value['name'] != undefined) tables.push(value['name']); }); if(tables.length < 1 ){ - return false; + return layer.msg('请选择表'); } switch(obj.event){ case 'backup': @@ -155,16 +155,22 @@ layer.msg(res.msg,{icon:1,time:1000,end:function(){ buckdata.reload(); }}); + },function (res) { + layer.msg(res.msg); }); break; case 'optimize': layList.basePost(layList.Url({a:'optimize'}),{tables:tables},function (res) { layer.msg(res.msg); + },function (res) { + layer.msg(res.msg); }); break; case 'repair': layList.basePost(layList.Url({a:'repair'}),{tables:tables},function (res) { layer.msg(res.msg); + },function (res) { + layer.msg(res.msg); }); break; }; diff --git a/application/admin/view/user/user/index.php b/application/admin/view/user/user/index.php index 4c28c502..42164430 100644 --- a/application/admin/view/user/user/index.php +++ b/application/admin/view/user/user/index.php @@ -165,6 +165,23 @@ <input type="text" class="layui-input time-w" name="user_time" lay-verify="user_time" id="user_time" placeholder=" - "> </div> </div> + <div class="layui-inline"> + <label class="layui-form-label">会员等级:</label> + <div class="layui-input-inline"> + <select name="level_id" lay-verify="level_id"> + <option value="">全部</option> + {volist name='level_list' id='val'} + <option value="{$val.id}">{$val.name}</option> + {/volist} + </select> + </div> + </div> + <div class="layui-inline"> + <label class="layui-form-label">生日:</label> + <div class="layui-input-inline"> + <input type="text" class="layui-input time-w" name="birthday" lay-verify="birthday" id="birthday" placeholder=" - "> + </div> + </div> </div> <div class="layui-form-item"> <label class="layui-form-label"> @@ -188,7 +205,7 @@ <button class="layui-btn layui-btn-sm layui-btn-normal" type="button" data-type="set_grant"><i class="fa fa-check-circle-o"></i>发送优惠券</button> <button class="layui-btn layui-btn-sm layui-btn-normal" type="button" data-type="set_custom"><i class="fa fa-check-circle-o"></i>发送客服图文消息</button> <!-- <button class="layui-btn layui-btn-sm layui-btn-normal" type="button" data-type="set_template"><i class="fa fa-check-circle-o"></i>发送模板消息</button>--> - <button class="layui-btn layui-btn-sm layui-btn-normal" type="button" data-type="set_info"><i class="fa fa-check-circle-o"></i>发送站内消息</button> +<!-- <button class="layui-btn layui-btn-sm layui-btn-normal" type="button" data-type="set_info"><i class="fa fa-check-circle-o"></i>发送站内消息</button>--> <button class="layui-btn layui-btn-sm layui-btn-normal" type="button" data-type="refresh"><i class="layui-icon layui-icon-refresh" ></i>刷新</button> </div> <table class="layui-hide" id="userList" lay-filter="userList"></table> @@ -198,12 +215,36 @@ <p style="color:#dab176">{{d.vip_name}}</p> {{# } }} </script> + <script type="text/html" id="data_time"> + <p>首次:{{d.add_time}}</p> + <p>最近:{{d.last_time}}</p> + </script> <script type="text/html" id="checkboxstatus"> <input type='checkbox' name='status' lay-skin='switch' value="{{d.uid}}" lay-filter='status' lay-text='正常|禁止' {{ d.status == 1 ? 'checked' : '' }}> </script> <script type="text/html" id="barDemo"> <button type="button" class="layui-btn layui-btn-xs" lay-event="edit"><i class="layui-icon layui-icon-edit"></i>编辑</button> - <button type="button" class="layui-btn layui-btn-xs" lay-event="see"><i class="layui-icon layui-icon-edit"></i>详情</button> + <button type="button" class="layui-btn layui-btn-xs" onclick="dropdown(this)">操作 <span class="caret"></span></button> + <ul class="layui-nav-child layui-anim layui-anim-upbit"> + <li> + <a href="javascript:void(0);" lay-event="money"> + <i class="layui-icon layui-icon-edit"></i> 余额积分</a> + </li> + <li> + <a href="javascript:void(0);" lay-event="see"> + <i class="layui-icon layui-icon-edit"></i> 会员详情</a> + </li> + <li> + <a href="javascript:void(0);" lay-event="give_level"> + <i class="fa fa-gift" aria-hidden="true"></i> 赠送会员</a> + </li> + {{# if(d.vip_name){ }} + <li> + <a href="javascript:void(0);" lay-event="del_level"> + <i class="fa fa-eraser" aria-hidden="true"></i> 清除等级</a> + </li> + {{# } }} + </ul> </script> </div> </div> @@ -255,7 +296,7 @@ return [ {type:'checkbox'}, {field: 'uid', title: '编号', width:'6%',event:'uid'}, - {field: 'avatar', title: '头像', event:'open_image', width: '6%', templet: '<p><img class="avatar" style="cursor: pointer" class="open_image" data-image="{{d.avatar}}" src="{{d.avatar}}" alt="{{d.nickname}}"></p>'}, + {field: 'avatar', title: '头像', event:'open_image', width: '6%', templet: '<p lay-event="open_image"><img class="avatar" style="cursor: pointer" class="open_image" data-image="{{d.avatar}}" src="{{d.avatar}}" alt="{{d.nickname}}"></p>'}, {field: 'nickname', title: '姓名',templet:'#nickname'}, {field: 'now_money', title: '余额',width:'6%',sort:true,event:'now_money'}, {field: 'pay_count', title: '购买次数',align:'center',width:'6%'}, @@ -263,17 +304,17 @@ {field: 'integral', title: '积分',width:'6%',sort:true,event:'integral'}, {field: 'spread_uid_nickname', title: '推荐人',width:'6%'}, {field: 'sex', title: '性别',width:'4%'}, - {field: 'add_time', title: '首次访问日期',align:'center',width:'12%'}, - {field: 'last_time', title: '最近访问日期',align:'center',width:'12%'}, + {field: 'data_time', title: '访问日期',align:'center',width:'12%',templet:'#data_time'}, {field: 'status', title: '状态',templet:"#checkboxstatus",width:'6%'}, {field: 'user_type', title: '用户类型',width:'6%'}, {fixed: 'right', title: '操作', width: '10%', align: 'center', toolbar: '#barDemo'} - ]; + ]; }); layList.date('last_time'); layList.date('add_time'); layList.date('user_time'); layList.date('time'); + layList.date({elem:'#birthday',theme:'#393D49',type:'datetime'}); //监听并执行 uid 的排序 layList.sort(function (obj) { var layEvent = obj.field; @@ -291,7 +332,7 @@ } }); //监听并执行 uid 的排序 - layList.tool(function (event,data) { + layList.tool(function (event,data,obj) { var layEvent = event; switch (layEvent){ case 'edit': @@ -300,9 +341,36 @@ case 'see': $eb.createModalFrame(data.nickname+'-会员详情',layList.Url({a:'see',p:{uid:data.uid}})); break; + case 'del_level': + $eb.$swal('delete',function(){ + $eb.axios.get(layList.U({a:'del_level',q:{uid:data.uid}})).then(function(res){ + if(res.status == 200 && res.data.code == 200) { + $eb.$swal('success',res.data.msg); + obj.update({vip_name:false}); + layList.reload(); + }else + return Promise.reject(res.data.msg || '删除失败') + }).catch(function(err){ + $eb.$swal('error',err); + }); + },{ + title:'您确定要清除【'+data.nickname+'】的会员等级吗?', + text:'清除后无法恢复请谨慎操作', + confirm:'是的我要清除' + }) + break; + case 'give_level': + $eb.createModalFrame(data.nickname+'-赠送会员',layList.Url({a:'give_level',p:{uid:data.uid}}),{w:500,h:200}); + break; + case 'money': + $eb.createModalFrame(data.nickname+'-积分余额修改',layList.Url({a:'edit_other',p:{uid:data.uid}})); + break; + case 'open_image': + $eb.openImage(data.avatar); + break; } }); -// layList.sort('uid'); + //layList.sort('uid'); //监听并执行 now_money 的排序 // layList.sort('now_money'); //监听 checkbox 的状态 @@ -391,9 +459,39 @@ action[type] && action[type](); }) }) - $(document).on('click',".open_image",function (e) { - var image = $(this).data('image'); - $eb.openImage(image); + //下拉框 + $(document).click(function (e) { + $('.layui-nav-child').hide(); }) + function dropdown(that){ + var oEvent = arguments.callee.caller.arguments[0] || event; + oEvent.stopPropagation(); + var offset = $(that).offset(); + var top=offset.top-$(window).scrollTop(); + var index = $(that).parents('tr').data('index'); + $('.layui-nav-child').each(function (key) { + if (key != index) { + $(this).hide(); + } + }) + if($(document).height() < top+$(that).next('ul').height()){ + $(that).next('ul').css({ + 'padding': 10, + 'top': - ($(that).parent('td').height() / 2 + $(that).height() + $(that).next('ul').height()/2), + 'left':offset.left-$(that).parents('td').offset().left-20, + 'min-width': 'inherit', + 'position': 'absolute' + }).toggle(); + }else{ + $(that).next('ul').css({ + 'padding': 10, + 'top':$(that).parent('td').height() / 2 + $(that).height(), + 'left':offset.left-$(that).parents('td').offset().left-20, + 'min-width': 'inherit', + 'position': 'absolute' + }).toggle(); + } + } + </script> {/block} diff --git a/application/admin/view/user/user_level/index.php b/application/admin/view/user/user_level/index.php index e2179559..e263b23e 100644 --- a/application/admin/view/user/user_level/index.php +++ b/application/admin/view/user/user_level/index.php @@ -70,7 +70,7 @@ </a> </li> <li> - <a lay-event='delect' href="javascript:void(0)" > + <a lay-event='delete' href="javascript:void(0)" > <i class="fa fa-paste"></i> 删除等级 </a> </li> diff --git a/application/admin/view/wechat/menus/index.php b/application/admin/view/wechat/menus/index.php index 0da13a23..fa5c4d73 100644 --- a/application/admin/view/wechat/menus/index.php +++ b/application/admin/view/wechat/menus/index.php @@ -139,11 +139,11 @@ </div> <div class="list"> <p>备用网页url</p> - <input class="form-control" v-model="checkedMenu.pagepath" type="text" /> + <input class="form-control" v-model="checkedMenu.url" type="text" /> </div> <div class="list"> <p>小程序路径</p> - <input class="form-control" v-model="checkedMenu.url" type="text" /> + <input class="form-control" v-model="checkedMenu.pagepath" type="text" /> </div> </div> <!-- 多客服 --> diff --git a/application/admin/view/widget/images.php b/application/admin/view/widget/images.php index d888a52c..f68f99df 100644 --- a/application/admin/view/widget/images.php +++ b/application/admin/view/widget/images.php @@ -1,111 +1,399 @@ <!DOCTYPE html> <!--suppress JSAnnotator --> <html lang="zh-CN"> -<head> - <link href="{__PLUG_PATH}layui/css/layui.css" rel="stylesheet"> - <script src="{__PLUG_PATH}jquery-1.10.2.min.js"></script> - <script src="{__PLUG_PATH}layui/layui.js"></script> -</head> -<style> - .layui-btn + .layui-btn{margin: 0;} - .main{ margin: 12px 0;} - .main-top{ border-bottom: 1px solid #e5e5e5; height: 12px; width: 100%; position: fixed; top: 0; background-color: #FFFFFF; z-index: 100; } - .main .left{max-width:125px; height:100%;width: 115px;border-right: 1px solid #e5e5e5;border-left: 1px solid #e5e5e5;float: left;} - .main .left .left-top{position: fixed;padding: 10px 10px 0;height: 35px;border-bottom: 1px solid #e5e5e5; background-color: #eee;} - .main .left .tabs-left{overflow-y: auto;height: 100%;width:115px;position: fixed;top:58px;border-right: 1px solid #e5e5e5;} - .main ::-webkit-scrollbar{width: 3px;height: auto;background-color: #ddd;} - .main ::-webkit-scrollbar-thumb { - border-radius: 1px; - -webkit-box-shadow: inset 0 0 6px rgba(255,255,255,.3); - background-color: #333; - } - .main ::-webkit-scrollbar-track { - -webkit-box-shadow: inset 0 0 5px rgba(0,0,0,0.2); - border-radius: 1px; - background: #e5e5e5; - } - .main .left .nav{margin:0;padding-bottom: 100px;} - .main .left .nav li{padding: 4px;height: 22px;} - .main .left .nav li.active{background-color: #293846;border-left: 2px solid #19AA8D;} - .main .left .nav li.active a{color: #a7b1c2;} - .main .left .nav li.child{padding: 2px;padding-left: 7px;} - .main .right{width: calc(100% - 117px);float: right;} - .main .right .right-top{position: fixed;background-color: #fff; z-index: 1000;width: 100%;padding: 7px 10px 0;height: 38px;border-bottom: 1px solid #e5e5e5;border-top: 1px solid #e5e5e5;} - .main .right .imagesbox{position: fixed;top:58px;min-height: 200px;height: calc(100% - 88px);;overflow-y: auto;} - .main .right .imagesbox .image-item{position: relative;display: inline-block; width: 112px;height: 112px; border: 1px solid #ECECEC;background-color: #F7F6F6; cursor: default; margin: 10px 0 0 10px;padding: 5px;} - .main .right .imagesbox .image-item img{width: 112px;height: 112px;} - .main .right .imagesbox .on{border: 3px dashed #0092DC;padding: 3px;} - .main .right .foot-tool{position: fixed;bottom: 0px;width: calc(100% - 117px);background-color:#fff;height: 30px;padding: 7px 10px 0;border-top: 1px solid #e5e5e5;} - .main .right .foot-tool .page{padding: 0px 10px;float: right;} - .main .right .foot-tool .page ul{width: 100%} - .main .right .foot-tool .page li{float: left;margin: 0px;} - .main .right .foot-tool .page .disabled span{background-color: #e6e6e6!important; color: #bbb!important; cursor: no-drop;padding: 0px 10px; height: 30px; line-height: 30px; display: block;} - .main .right .foot-tool .page .active span{background-color: #428bca;color: #fff;border-color: #428bca;padding: 0px 10px; height:30px; line-height: 30px; display: block;} - .main .right .foot-tool .page li a{border: 1px solid #e5e5e5;padding: 0px 10px; height: 28px; line-height: 28px; display: block;} -</style> -<body> -<div class="main"> - <div class="main-top"></div> - <div class="left"> - <div class="left-top"> - <button class="layui-btn layui-btn-primary layui-btn-xs" id="addcate" title="添加分类"><i class="layui-icon layui-icon-add-circle-fine"></i></button> - <button class="layui-btn layui-btn-primary layui-btn-xs" id="editcate" title="编辑当前分类"><i class="layui-icon layui-icon-edit"></i></button> - <button class="layui-btn layui-btn-primary layui-btn-xs" id="deletecate" title="删除当前分类"><i class="layui-icon layui-icon-delete"></i></button> - </div> - <div class="tabs-left"> - <ul class="nav nav-tabs"> - <li {if condition="$pid eq 0" } class="active" {/if}><a href="{:Url('index',array('pid'=>0,'fodder'=>$Request.param.fodder,'big'=>$Request.param.big))}">所有分类</a></li> - {volist name="$typearray" id="vo" key="k"} - {if condition="$vo.id eq $pid"} - <li class="active"><a href="{:Url('index',array('pid'=>$vo.id,'fodder'=>$Request.param.fodder,'big'=>$Request.param.big))}">{$vo.name}</a></li> - {else} - <li ><a href="{:Url('index',array('pid'=>$vo.id,'fodder'=>$Request.param.fodder,'big'=>$Request.param.big))}">{$vo.name}</a></li> - {/if} - {volist name="$vo.child" id="voo" key="kk"} - <li class="child {if condition="$voo.id eq $pid"} active{/if}"> - <a href="{:Url('index',array('pid'=>$voo.id,'fodder'=>$Request.param.fodder,'big'=>$Request.param.big))}">{if condition="$kk eq count($vo.child)"}└{else/}├{/if}{$voo.name}</a> - </li> - {/volist} - {/volist} - </ul> - </div> - </div> - <div class="right"> - <div class="right-top"> - <button class="layui-btn layui-btn-sm layui-btn-primary" id="moveimg">移动分类</button> - <button class="layui-btn layui-btn-sm layui-btn-primary" id="deleteimg">删除图片</button> - </div> - <div class="imagesbox"> - {volist name="list" id="vo"} - <div class="image-item"> - <div class="image-delete" data-url="{:Url('delete',array('att_id'=>$vo.att_id))}"></div> - {if condition="$Request.param.small eq 1"} - <img class="pic" src="{$vo.satt_dir|ltrim='.'}" id="{$vo.att_id}"/> - {else/} - <img class="pic" src="{$vo.att_dir|ltrim='.'}" id="{$vo.att_id}"/> - {/if} + <head> + <link href="{__PLUG_PATH}layui/css/layui.css" rel="stylesheet"> + <script src="{__PLUG_PATH}jquery-1.10.2.min.js"></script> + <script src="{__PLUG_PATH}layui/layui.all.js"></script> + <script src="{__PLUG_PATH}vue/dist/vue.min.js"></script> + </head> + <style> + body{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none;} + .layui-fluid{margin:0;padding: 0;} + .layadmin-homepage-shadow{box-shadow: 0 1px 1px rgba(0,0,0,.05);background-color: #fff;border-radius: 0;border: 1px solid #e7ecf3;} + .layui-tree-txt{cursor: pointer;} + .clearfix:after{content:"";display:block;visibility:hidden;clear:both;height:0;} + .image-box{padding-top: 10px} + .image-box .image .layui-img-box{margin: 5px;border: 2px solid #ffffff;height: 100px;line-height: 100px;text-align: center;} + .image-box .image .layui-img-box.on{border: 2px solid #5FB878;} + .image-box .image .layui-img-box img{width: 90%;max-height:90%;vertical-align:middle;} + .page .image_page{text-align: right;} + .page .layui-box{text-align: left;} + .layui-tree-txt.on{color:#1E9FFF} + .line1{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width: 90%;} + .layadmin-homepage-panel.left ::-webkit-scrollbar{width: 3px;height: auto;background-color: #ddd;} + .layadmin-homepage-panel.left ::-webkit-scrollbar-thumb {border-radius: 1px;-webkit-box-shadow: inset 0 0 6px rgba(255,255,255,.3);background-color: #333;} + .layadmin-homepage-panel.left ::-webkit-scrollbar-track {-webkit-box-shadow: inset 0 0 5px rgba(0,0,0,0.2);border-radius: 1px;background: #e5e5e5;} + #app .layui-tree-btnGroup{color: #ffffff;padding: 3px 7px;position: absolute;top: -28px;left: 30px;background-color: #1E9FFF;} + #app .layui-tree-btnGroup .layui-layer-TipsT{border-right-color: #1E9FFF;color: #ffffff} + #app .layui-tree-iconClick{margin:0 0 0 9px;} + </style> +<body style="background-color: #f2f2f2"> + +<div class="layui-fluid" id="app"> + <div class="layui-row"> + <div class="layui-col-md2 layui-col-xs2 layui-col-sm2"> + <div class="layadmin-homepage-panel layadmin-homepage-shadow left"> + <div class="layui-card text-center"> + <div class="layui-card-header"> + <div class="layui-unselect layui-form-select layui-form-selected"> + <div class="layui-select-title"> + <input type="text" name="title" v-model="searchTitle" placeholder="搜索分类" style="height: 24px;line-height:24px;padding-left:7px;font-size: 12px;display: inline;padding-right: 0;width: 100%;" autocomplete="off" class="layui-input layui-input-search" @keydown="search"> +<!-- <i class="layui-icon layui-icon-search" @click="search" style="cursor: pointer;margin:0 3px;"></i>--> + </div> + </div> + </div> + <div class="layui-card-body" style="padding: 0;height: 455px;overflow:auto;"> +<!-- <div class="layadmin-homepage-pad-ver">--> +<!-- <button type="button" class="layui-btn layui-btn-normal layui-btn-xs" style="width: 80%" @click="addCategory">添加</button>--> +<!-- </div>--> + <div ref="tree" class="demo-tree demo-tree-box"> + <div class="layui-tree layui-tree-line"> + <div class="layui-tree-set layui-tree-setHide"> + <div class="layui-tree-entry"> + <div class="layui-tree-main" @click="OpenTree({child:[],id:0})"> + <span class="layui-tree-iconClick"> + <i class="layui-icon">   </i> + </span> + <span class="layui-tree-txt" :class="pid == 0 ? 'on' : '' ">全部图片</span> + </div> + </div> + </div> + <div class="layui-tree-set layui-tree-setHide" :class=" value.isOpen ? 'layui-tree-spread' : '' " v-for="(value,k) in categoryList"> + <div class="layui-tree-entry" @mouseover.stop="changeActive(value,k)" @mouseout.stop="removeActive(value,k)"> + <div class="layui-tree-main" @click="OpenTree(value,k)"> + <span class="layui-tree-iconClick"> + <i class="layui-icon layui-icon-triangle-d" v-if="value.child.length && value.isOpen"></i> + <i class="layui-icon layui-icon-triangle-r" v-else-if="value.child.length && !value.isOpen"></i> + <i class="layui-icon " v-else>   </i> + </span> + <span class="layui-tree-txt line1" :class="pid == value.id ? 'on': '' " v-text="value.name"></span> + </div> + <div class="layui-btn-group layui-tree-btnGroup layui-layer layui-layer-tips" v-show="value.isShow"> + <div> + <i class="layui-icon layui-icon-add-1" @click.stop ="addCategory(value)" title="添加"></i> + <i class="layui-icon layui-icon-edit" @click.stop ="updateCategory(value)" title="编辑"></i> + <i class="layui-icon layui-icon-delete" v-if="!value.child.length" title="删除" @click.stop ="delCategory(value)"></i> + </div> + <i class="layui-layer-TipsG layui-layer-TipsT"></i> + </div> + </div> + <div class="layui-tree-pack layui-tree-lineExtend layui-tree-showLine" v-show="value.isOpen" style="display: block"> + <div class="layui-tree-set" v-for="(item,key) in value.child"> + <div class="layui-tree-entry"> + <div class="layui-tree-main" @click="OpenTree(item,key)"> + <span class="layui-tree-iconClick"> + <i class="layui-icon"></i> + </span> + <span class="layui-tree-txt line1" :class="pid == item.id ? 'on': '' " v-text="item.name"></span> + </div> + <div class="layui-btn-group layui-tree-btnGroup layui-layer layui-layer-tips" @mouseover.stop ="changeActive(item,k,key)" @mouseout.stop ="removeActive(item,k,key)"> + <div> + <i class="layui-icon layui-icon-edit" @click.stop ="updateCategory(item,value.pid)" title="编辑"></i> + <i class="layui-icon layui-icon-delete" @click.stop ="delCategory(item,value.pid)" title="删除"></i> + </div> + <i class="layui-layer-TipsG layui-layer-TipsT"></i> + </div> + </div> + </div> + </div> + </div> + </div> + </div> + </div> + </div> </div> - {/volist} </div> - <div class="foot-tool"> - <button class="layui-btn layui-btn-sm" id="upload">上传图片</button> - <button class="layui-btn layui-btn-normal layui-btn-sm" id="ConfirmChoices">使用选中的图片</button> -<!-- <button class="layui-btn layui-btn-danger layui-btn-sm" id="close" >关闭</button>--> - <div class="page">{$page}</div> + <div class="layui-col-md10 layui-col-xs10 layui-col-sm10"> + <div class="layadmin-homepage-panel layadmin-homepage-shadow"> + <div class="layui-card text-center"> + <div class="layui-card-header"> + <div class="layadmin-homepage-pad-ver" style="text-align: left"> + <div class="layui-btn-group"> + <button type="button" class="layui-btn layui-btn-normal layui-btn-sm" @click="addCategory">添加分类</button> + <button type="button" class="layui-btn layui-btn-normal layui-btn-sm" ref="upload">上传图片</button> + <button type="button" class="layui-btn layui-btn-warm layui-btn-sm" :class="selectImages.length ? '':'layui-btn-disabled' " @click="moveCate">移动分类</button> + <button type="button" class="layui-btn layui-btn-danger layui-btn-sm" :class="selectImages.length ? '':'layui-btn-disabled' " @click="delImage">删除图片</button> + + </div> + </div> + </div> + <div class="layui-card-body clearfix image-box" style="padding: 10px;height: 360px;"> + <div class="layui-col-md2 layui-col-xs2 layui-col-sm2 image" v-for="(item,index) in imageList"> + <div class="layui-img-box" :class="item.isSelect ? 'on': '' "> + <img :src="item.satt_dir" v-if="small == 1" @click="changImage(item,index)"> + <img :src="item.satt_dir" v-else @click="changImage(item,index)"> + </div> + </div> + <div class="empty-image" style="width: 100%;height: 100%;text-align: center;" v-if="!imageList.length && loading == false"> + <div class="layui-img-box"> + <img src="/public/system/images/empty.jpg" style="height: 400px;" alt="" > + </div> + </div> + </div> + <div class="layui-card-body clearfix page"> + <div class="layui-col-md4 layui-col-xs4 layui-col-sm4"> + <div class="layui-box" style="margin: 10px 0;"> + <button type="button" class="layui-btn layui-btn-normal layui-btn-sm" :class="selectImages.length ? '':'layui-btn-disabled' " @click="useImages">使用选中的图片</button> + </div> + </div> + <div class="layui-col-md8 layui-col-xs8 layui-col-sm8 image_page" ref="image_page"></div> + </div> + </div> + </div> </div> </div> </div> </body> </html> +<script src="{__ADMIN_PATH}js/layuiList.js"></script> <script> - var pid = {$pid};//当前图片分类ID - var parentinputname = '{$Request.param.fodder}';//父级input name - var uploadurl = "{:Url('upload',array('pid'=>$Request.param.pid))}"; //上传图片地址 - var deleteurl = "{:Url('delete')}";//删除图片地址 - var moveurl = "{:Url('moveimg')}";//移动图片地址 - var addcate = "{:Url('addcate',array('id'=>$pid))}";//添加图片分类地址 - var editcate = "{:Url('editcate',array('id'=>$pid))}";//编辑图片分类地址 - var deletecate = "{:Url('deletecate')}";//删除图片分类地址 -</script> -<script src="{__MODULE_PATH}widget/images.js"></script> + var pid = {$pid},small = {$Request.param.small ? : 0} ,parentinputname = '{$Request.param.fodder}';//当前图片分类ID + + new Vue({ + el: "#app", + data: { + categoryList:[], + searchTitle:'', + pid:pid, + imageList:[], + page:1, + limit:18, + loading:false, + small:small, + selectImages:[], + selectImagesIDS:[], + uploadInst:null, + }, + watch:{ + page:function () { + this.getImageList(); + }, + }, + methods:{ + //删除图片 + delImage:function(){ + var that=this; + if(!this.selectImages.length) return; + layList.layer.confirm('是否要删除选中图片?', { + btn: ['是的我要删除','我想想把'] //按钮 + }, function(){ + layList.basePost(that.U({a:'delete'}),{imageid:that.selectImagesIDS},function (res) { + layList.msg(res.msg); + that.getImageList(); + that.$set(that,'selectImages',[]); + that.$set(that,'selectImagesIDS',[]); + },function (res) { + layList.msg(res.msg); + }) + }) + }, + //移动图片分类 + moveCate:function(){ + if(!this.selectImages.length) return; + return this.getOpenWindow('移动图片',this.U({a:'moveimg'})+'?imgaes='+this.selectImagesIDS); + }, + //使用选中图片 + useImages:function(){ + if(!this.selectImages.length) return; + //判断表单限制图片个数 + if(typeof parent.$f != 'undefined'){ + //已有图片个数 + var nowpics = parent.$f.getValue(parentinputname).length; + //设置最大个数 + var maxlength = parent.$f.model()[parentinputname].rule.props.maxLength; + //已选图片个数 + var selectlength = this.selectImages.length; + //还可以选择多少张 + var surplus = maxlength-nowpics; + if(nowpics+selectlength > maxlength){ + return layList.msg('最多只能选择 '+ surplus +' 张'); + } + } + //编辑器中 + if(parentinputname == 'editor'){ + var list = [];console.log(this.selectImages); + for(var i = 0;i < this.selectImages.length;i++){ + list.push({ + _src: this.selectImages[i], + src:this.selectImages[i] + }); + } + parent.insertEditor(list); + var index = parent.layer.getFrameIndex(window.name); + parent.layer.close(index); + }else{ + //form表单中 + if(typeof parent.$f != 'undefined'){ + var value = parent.$f.getValue(parentinputname);//父级input 值 + var list = value || []; + for(var i = 0;i < this.selectImages.length;i++){ + if(value.indexOf(this.selectImages[i]) == -1) list.push(this.selectImages[i]); + } + parent.$f.changeField(parentinputname,list); + parent.$f.closeModal(); + }else{ + //独立图片选择页面 + parent.changeIMG(parentinputname,this.selectImages[0]); + var index = parent.layer.getFrameIndex(window.name); + parent.layer.close(index); + } + } + + }, + //图片选中和取消 + changImage:function(item,index){ + var len = this.imageList.length,selectImages=[],selectImagesIDS=[]; + + this.$set(this.imageList[index],'isSelect',item.isSelect == undefined ? true : !item.isSelect); + for (var i=0;i<len;i++){ + if(this.imageList[i].isSelect === true) { + selectImages.push(small == 1 ? this.imageList[i]['satt_dir'] : this.imageList[i]['att_dir']); + selectImagesIDS.push(this.imageList[i]['att_id']); + } + } + this.$set(this,'selectImages',selectImages); + this.$set(this,'selectImagesIDS',selectImagesIDS); + }, + //获取图片列表 + getImageList:function(){ + var that = this; + if(that.loading) return; + that.loading = true; + var index = layList.layer.load(1, {shade: [0.1,'#fff']}); + layList.baseGet(this.U({a:'get_image_list',q:{pid:this.pid,page:this.page,limit:this.limit}}),function (res) { + that.loading = false; + that.$set(that,'imageList',res.data.list); + layList.layer.close(index); + if(that.page == 1){ + layList.laypage.render({ + elem: that.$refs.image_page + ,count: res.data.count + ,limit:that.limit + ,theme: '#1E9FFF', + jump:function (obj) { + that.page=obj.curr; + } + }); + } + },function () { + that.loading = false; + layList.layer.close(index); + }); + }, + //查询分类 + search:function(){ +// if(!this.searchTitle) return layList.msg('请输入搜索内容!'); + this.getCategoryList(); + }, + //打开和关闭树形 + OpenTree:function(item,index){ + this.pid = item.id; + if(item.child.length){ + item.isOpen == undefined ? false : item.isOpen; + this.$set(this.categoryList[index],'isOpen',!item.isOpen); + }else{ + this.page = 1; + this.$set(this,'selectImages',[]); + this.$set(this,'selectImagesIDS',[]); + this.getImageList(); + } + this.uploadInst.reload({ + url:this.U({a:'upload'})+'?pid='+this.pid + }); + }, + //组装URL + U:function(opt){ + opt = typeof opt == 'object' ? opt : {}; + return layList.U({m:'admin',c:"widget.images",a:opt.a || '',q:opt.q || {},p:opt.q || {}}); + }, + //获取分类 + getCategoryList:function(){ + var that=this; + layList.baseGet(that.U({a:'get_image_cate',q:{name:this.searchTitle}}),function (res) { + that.$set(that,'categoryList',res.data); + }); + }, + //鼠标移入显示图标 + changeActive:function(item,indexK,index){ + if(index) + this.$set(this.categoryList[indexK]['child'],'isShow',true); + else + this.$set(this.categoryList[indexK],'isShow',true); + }, + //鼠标移出隐藏 + removeActive:function(item,indexK,index){ + if(index) + this.$set(this.categoryList[indexK]['child'],'isShow',false); + else + this.$set(this.categoryList[indexK],'isShow',false); + }, + //添加分类 + addCategory:function (item,pid) { + item = item == undefined ? {} : item; + var id = item.id == undefined ? 0 : item.id, + pid = pid == undefined ? 0 : pid; + return this.getOpenWindow(item.name ? item.name+'编辑' : '新增分类',this.U({a:'addcate',q:{id:pid ==0 ? id : pid }})); + }, + //修改分类 + updateCategory:function(item,pid){ + item = item == undefined ? {} : item ; + pid = pid == undefined ? 0 : pid; + return this.getOpenWindow(item.name+'编辑',this.U({a:'editcate',q:{id:item.id}})); + }, + //删除分类 + delCategory:function (item,pid) { + var that=this; + if(item.child.length) return layList.msg('请先删除子分类再尝试删除此分类!'); + layList.layer.confirm('是否要删除['+item.name+']分类?', { + btn: ['是的我要删除','我想想把'] //按钮 + }, function(){ + layList.baseGet(that.U({a:'deletecate',q:{id:item.id}}),function (res) { + layList.msg(res.msg,function () { + that.getCategoryList(); + }); + }); + }); + }, + //打开一个窗口 + getOpenWindow:function(title,url,opt){ + opt = opt == undefined ? {w:340,h:265} : opt; + return layList.layer.open({ + type: 2, + title: title, + shade: [0], + area: [opt.w+"px" , opt.h+'px'], + anim: 2, + content: [url, 'no'], + }); + }, + //回调 + SuccessCateg:function () { + this.getCategoryList(); + }, + uploal:function () { + var that=this; + this.uploadInst=layList.upload.render({ + elem: this.$refs.upload + ,url: this.U({a:'upload'})+'?pid='+this.pid + ,multiple: true + ,auto:true + ,size: 2097152 //限制文件大小,单位 KB + ,done: function(res){ + layList.layer.msg(res.msg,{time:3000}); + that.getImageList(); + } + }); + } + }, + mounted:function () { + this.getCategoryList(); + this.getImageList(); + window.SuccessCateg = this.SuccessCateg; + this.uploal(); + } + }) + + +</script> diff --git a/application/core/behavior/UserBehavior.php b/application/core/behavior/UserBehavior.php index 2a8797ab..0aca639b 100644 --- a/application/core/behavior/UserBehavior.php +++ b/application/core/behavior/UserBehavior.php @@ -7,6 +7,7 @@ namespace app\core\behavior; +use app\admin\model\system\SystemAttachment; use app\core\model\user\UserLevel; use service\HookService; use app\core\model\user\User; @@ -75,4 +76,12 @@ class UserBehavior return UserLevel::setLevelComplete($user['uid'],$number); } + /* + * 清理昨天用户产生的附件信息 + * */ + public static function emptyYesterDayAttachment() + { + return SystemAttachment::emptyYesterDayAttachment(); + } + } \ No newline at end of file diff --git a/application/core/model/ApiMenus.php b/application/core/model/ApiMenus.php index fabf3b98..9ada3be0 100644 --- a/application/core/model/ApiMenus.php +++ b/application/core/model/ApiMenus.php @@ -7,16 +7,13 @@ namespace app\core\model; -use traits\ModelTrait; -use basic\ModelBasic; - /* * Api接口列表 * class ApiMenus * */ -class ApiMenus extends ModelBasic +class ApiMenus { - use ModelTrait; + /* * 接口列表配置 diff --git a/application/core/model/system/SystemUserTask.php b/application/core/model/system/SystemUserTask.php index 064d1c44..3ea2e3b1 100644 --- a/application/core/model/system/SystemUserTask.php +++ b/application/core/model/system/SystemUserTask.php @@ -130,7 +130,7 @@ class SystemUserTask extends ModelBasic public static function ConsumptionAmount($task_id,$uid=0,$start_time=0,$number=0) { $isComplete=false; - $SumPayPrice=self::getDb('store_order')->where('paid',1)->where('refund_status',0)->where('is_del',0)->where('uid',$uid)->sum('pay_price'); + $SumPayPrice=self::getDb('store_order')->where(['paid'=>1,'refund_status'=>0,'is_del'=>0,'uid'=>$uid])->where('add_time','>',$start_time)->sum('pay_price'); if($SumPayPrice >= $number) $isComplete=UserTaskFinish::setFinish($uid,$task_id) ? true : false; return ['还需消费{$num}元',$SumPayPrice,$isComplete]; } @@ -146,7 +146,7 @@ class SystemUserTask extends ModelBasic public static function ConsumptionFrequency($task_id,$uid=0,$start_time=0,$number=0) { $isComplete=false; - $countPay=self::getDb('store_order')->where('paid',1)->where('refund_status',0)->where('is_del',0)->where('uid',$uid)->count(); + $countPay=self::getDb('store_order')->where(['paid'=>1,'refund_status'=>0,'is_del'=>0,'uid'=>$uid])->where('add_time','>',$start_time)->count(); if($countPay >= $number) $isComplete=UserTaskFinish::setFinish($uid,$task_id) ? true : false; return ['还需消费{$num}次',$countPay,$isComplete]; } @@ -194,7 +194,8 @@ class SystemUserTask extends ModelBasic public static function SatisfactionIntegral($task_id,$uid=0,$start_time=0,$number=0) { $isComplete=false; - $sumNumber=UserBill::where(['uid'=>$uid,'category'=>'integral','pm'=>1])->where('type','in',['system_add','sign'])->sum('number'); + $sumNumber=UserBill::where(['uid'=>$uid,'category'=>'integral','pm'=>1])->where('add_time','>',$start_time)->where('type','in',['system_add','sign'])->sum('number'); + file_put_contents('9.txt',$sumNumber.'|'.$number.'|'.$start_time); if($sumNumber >= $number) $isComplete=UserTaskFinish::setFinish($uid,$task_id) ? true : false; return ['还需要{$num}经验',$sumNumber,$isComplete]; } @@ -226,7 +227,7 @@ class SystemUserTask extends ModelBasic public static function CumulativeAttendance($task_id,$uid=0,$start_time=0,$number=0) { $isComplete=false; - $sumCount=UserBill::where(['uid'=>$uid,'category'=>'integral','pm'=>1])->where('type','in',['sign'])->count(); + $sumCount=UserBill::where(['uid'=>$uid,'category'=>'integral','pm'=>1])->where('add_time','>',$start_time)->where('type','in',['sign'])->count(); if($sumCount >= $number) $isComplete=UserTaskFinish::setFinish($uid,$task_id) ? true : false; return ['还需签到{$num}天',$sumCount,$isComplete]; } @@ -247,6 +248,7 @@ class SystemUserTask extends ModelBasic $task_type=$task->task_type; if($task_type && method_exists(self::class,$task_type)){ try{ + $start_time=User::getCleanTime($uid); return self::$task_type($task_id,$uid,$start_time,$task->number); }catch (\Exception $e){ return self::setErrorInfo($e->getMessage()); @@ -277,23 +279,20 @@ class SystemUserTask extends ModelBasic public static function getTashList($level_id,$uid=0,$level=null,$expire=1400) { $level_id=is_string($level_id) ? (int)$level_id : $level_id; - if(Cache::has('Tash_list_common_'.$level_id)) - $list=Cache::get('Tash_list_common_'.$level_id); - else{ - $list=self::visibleWhere()->where('level_id',$level_id)->field(['name','real_name','task_type','illustrate','number','id'])->order('sort desc')->select(); - $list=count($list) ? $list->toArray() : []; - Cache::set('Tash_list_common_'.$level_id,$list,$expire); - } + $list=self::visibleWhere()->where('level_id',$level_id)->field(['name','real_name','task_type','illustrate','number','id'])->order('sort desc')->select(); + $list=count($list) ? $list->toArray() : []; if($uid==0) return $list; if($level===null) $level=SystemUserLevel::getLevelInfo($uid); - $add_time=self::getDb('user')->where('uid',$uid)->value('add_time'); - if($level===false) $startTime=$add_time; - else $startTime=isset($level['add_time']) ? $level['add_time'] : $add_time; + //获取下一个vip的id $LeveId=SystemUserLevel::getNextLevelId($level['id']); $is_clear=SystemUserLevel::getClear($level['id']); if($is_clear==false && $LeveId==$level_id) $is_clear=true; $reach_count=self::getTaskComplete($level_id,$uid,true); - return ['reach_count'=>$reach_count,'task'=>self::tidyTask($list,$uid,$is_clear,$startTime)]; + return [ + 'list'=>$list, + 'reach_count'=>$reach_count, + 'task'=>self::tidyTask($list,$uid,$is_clear,User::getCleanTime($uid)), + ]; } /* @@ -391,19 +390,19 @@ class SystemUserTask extends ModelBasic $item['finish']=1; $item['task_type_title']=''; }else{ - if($is_clear){ +// if($is_clear){ list($new_number, $speed, $task_type_title, $finish) = self::set_task_type($item, $uid, $startTime); $item['new_number'] = $new_number; $item['speed'] = $speed; $item['task_type_title'] = $task_type_title; $item['finish'] = $finish; - }else { - list($new_number, $speed, $task_type_title, $finish) = self::set_task_type($item,-1,time()+86400); - $item['new_number'] = $new_number; - $item['speed'] = $speed; - $item['task_type_title'] = $task_type_title; - $item['finish'] = $finish; - } +// }else { +// list($new_number, $speed, $task_type_title, $finish) = self::set_task_type($item,-1,time()+86400); +// $item['new_number'] = $new_number; +// $item['speed'] = $speed; +// $item['task_type_title'] = $task_type_title; +// $item['finish'] = $finish; +// } } } return $task; diff --git a/application/core/model/user/User.php b/application/core/model/user/User.php index ae883c75..09978f20 100644 --- a/application/core/model/user/User.php +++ b/application/core/model/user/User.php @@ -16,4 +16,13 @@ class User extends ModelBasic { use ModelTrait; + /* + * 获取会员是否被清除过的时间 + * */ + public static function getCleanTime($uid) + { + $user=self::where('uid',$uid)->field(['add_time','clean_time'])->find(); + if(!$user) return 0; + return $user['clean_time'] ? $user['clean_time'] : $user['add_time']; + } } \ No newline at end of file diff --git a/application/core/model/user/UserBill.php b/application/core/model/user/UserBill.php index 692d6be0..213ad7e5 100644 --- a/application/core/model/user/UserBill.php +++ b/application/core/model/user/UserBill.php @@ -78,6 +78,15 @@ class UserBill extends ModelBasic ->where('status',1)->sum('number'); } + /* + * 获取总佣金 + * */ + public static function getSystemAdd($uid) + { + return self::where('uid',$uid)->where('category','now_money')->where('type','system_add')->where('pm',1) + ->where('status',1)->sum('number'); + } + /* * 累计充值 @@ -238,9 +247,9 @@ class UserBill extends ModelBasic if(!$user) return self::setErrorInfo('用户不存在!'); $cachename='Share_'.$uid; if(Cache::has($cachename)) return false; - $res=self::income('用户分享记录',$uid,'share',1,0,0,date('Y-m-d H:i:s',time()).':用户分享'); + $res=self::income('用户分享记录',$uid,'share','share',1,0,0,date('Y-m-d H:i:s',time()).':用户分享'); Cache::set($cachename,1,$cd); - HookService::afterListen('user_leve',$user,false,UserBehavior::class); + HookService::afterListen('user_level',$user,null,false,UserBehavior::class); return true; } diff --git a/application/core/model/user/UserLevel.php b/application/core/model/user/UserLevel.php index b9042484..abec749b 100644 --- a/application/core/model/user/UserLevel.php +++ b/application/core/model/user/UserLevel.php @@ -59,6 +59,7 @@ class UserLevel extends ModelBasic $add_valid_time=$stay+$add_valid_time+time(); $data['is_forever']=$vipinfo->is_forever; $data['valid_time']=$add_valid_time; + User::where('uid',$uid)->update(['level'=>$level_id]); return self::where(['uid'=>$uid,'level_id'=>$level_id])->update($data); }else{ $data=[ @@ -74,9 +75,12 @@ class UserLevel extends ModelBasic if($data['is_forever']) $data['valid_time']=0; else - $data['valid_time']=$add_valid_time; + $data['valid_time']=$add_valid_time+time(); $data['mark']='尊敬的用户'.$userinfo['nickname'].'在'.date('Y-m-d H:i:s',time()).'成为了'.$vipinfo['name']; - return self::set($data); + $res=self::set($data); + if(!$res) return false; + User::where('uid',$uid)->update(['level'=>$level_id]); + return $res; } } @@ -89,11 +93,11 @@ class UserLevel extends ModelBasic { $model = self::valiWhere(); if ($grade) $model = $model->where('grade', '<', $grade); - $level = $model->where('uid', $uid)->order('grade desc')->field('level_id,is_forever,valid_time,id')->find(); + $level = $model->where('uid', $uid)->order('grade desc')->field('level_id,is_forever,valid_time,id,status,grade')->find(); if (!$level) return false; if ($level->is_forever) return $level->id; //会员已经过期 - if (time() < $level->valid_time){ + if (time() > $level->valid_time){ if($level->status==1){ $level->status=0; $level->save(); @@ -111,7 +115,7 @@ class UserLevel extends ModelBasic * @return array * */ public static function getUserLevelInfo($id,$keyName=''){ - $vipinfo=self::valiWhere('a')->where('a.id',$id)->field('l.id,a.add_time,a.discount,a.level_id,l.name,l.money,l.icon,l.is_pay') + $vipinfo=self::valiWhere('a')->where('a.id',$id)->field('l.id,a.add_time,l.discount,a.level_id,l.name,l.money,l.icon,l.is_pay,l.grade') ->join('__SYSTEM_USER_LEVEL__ l','l.id=a.level_id')->find(); if($keyName) if(isset($vipinfo[$keyName])) return $vipinfo[$keyName]; else return ''; return $vipinfo; @@ -148,8 +152,8 @@ class UserLevel extends ModelBasic $res2=true; try{ if($level===false){ - //没有成为会员的从用户添加的时间开始算起 - $add_time=$user['add_time']; + //没有成为会员的从用户添加的时间开始算起,如果被清理过会员从清理的时间开始算起 + $add_time=$user['clean_time'] ? $user['clean_time'] :$user['add_time']; }else{ $add_time=self::getUserLevelInfo($level,'add_time'); } diff --git a/application/core/model/user/UserTaskFinish.php b/application/core/model/user/UserTaskFinish.php index 87506e3e..fe7b7d54 100644 --- a/application/core/model/user/UserTaskFinish.php +++ b/application/core/model/user/UserTaskFinish.php @@ -1 +1,34 @@ -<?php /** * Created by CRMEB. * Copyright (c) 2017~2019 http://www.crmeb.com All rights reserved. * Author: liaofei <136327134@qq.com> * Date: 2019/3/27 21:42 */ namespace app\core\model\user; use traits\ModelTrait; use basic\ModelBasic; /** * 用户等级完成任务记录 model * Class UserTaskFinish * @package app\core\model\user */ class UserTaskFinish extends ModelBasic { use ModelTrait; /* * 设置任务完成情况 * @param int $uid 用户uid * @param int $task_id 任务id * @return Boolean * */ public static function setFinish($uid,$task_id) { $add_time=time(); if(self::be(['uid'=>$uid,'task_id'=>$task_id])) return true; return self::set(compact('uid','task_id','add_time')); } } \ No newline at end of file +<?php +/** + * Created by CRMEB. + * Copyright (c) 2017~2019 http://www.crmeb.com All rights reserved. + * Author: liaofei <136327134@qq.com> + * Date: 2019/3/27 21:42 + */ + +namespace app\core\model\user; + +use traits\ModelTrait; +use basic\ModelBasic; +/** + * 用户等级完成任务记录 model + * Class UserTaskFinish + * @package app\core\model\user + */ + +class UserTaskFinish extends ModelBasic +{ + use ModelTrait; + /* + * 设置任务完成情况 + * @param int $uid 用户uid + * @param int $task_id 任务id + * @return Boolean + * */ + public static function setFinish($uid,$task_id) + { + $add_time=time(); + if(self::be(['uid'=>$uid,'task_id'=>$task_id])) return true; + return self::set(compact('uid','task_id','add_time')); + } +} \ No newline at end of file diff --git a/application/core/traits/LogicTrait.php b/application/core/traits/LogicTrait.php index 8853bcad..47d61b72 100644 --- a/application/core/traits/LogicTrait.php +++ b/application/core/traits/LogicTrait.php @@ -12,6 +12,8 @@ trait LogicTrait protected $items = []; + protected static $instance = null; + /* * 魔术方法 对不可访问或不存在的属性调用 * diff --git a/application/core/util/MiniProgramService.php b/application/core/util/MiniProgramService.php index e4c4efe6..9d7b3714 100644 --- a/application/core/util/MiniProgramService.php +++ b/application/core/util/MiniProgramService.php @@ -33,21 +33,19 @@ class MiniProgramService implements ProviderInterface $payment = SystemConfigService::more(['pay_routine_mchid','pay_routine_key','pay_routine_client_cert','pay_routine_client_key','pay_weixin_open']); $config = []; $config['mini_program'] = [ - 'app_id'=>isset($wechat['routine_appId']) ? $wechat['routine_appId']:'', - 'secret'=>isset($wechat['routine_appsecret']) ? $wechat['routine_appsecret']:'', - 'token'=>isset($wechat['wechat_token']) ? $wechat['wechat_token']:'', - 'aes_key'=> isset($wechat['wechat_encodingaeskey']) ? $wechat['wechat_encodingaeskey']:'' + 'app_id'=>isset($wechat['routine_appId']) ? trim($wechat['routine_appId']):'', + 'secret'=>isset($wechat['routine_appsecret']) ? trim($wechat['routine_appsecret']):'', + 'token'=>isset($wechat['wechat_token']) ? trim($wechat['wechat_token']):'', + 'aes_key'=> isset($wechat['wechat_encodingaeskey']) ? trim($wechat['wechat_encodingaeskey']):'' + ]; + $config['payment'] = [ + 'app_id'=>isset($wechat['routine_appId']) ? trim($wechat['routine_appId']) :'', + 'merchant_id'=>trim($payment['pay_routine_mchid']), + 'key'=>trim($payment['pay_routine_key']), + 'cert_path'=>realpath('.'.$payment['pay_routine_client_cert']), + 'key_path'=>realpath('.'.$payment['pay_routine_client_key']), + 'notify_url'=>$wechat['site_url'].Url::build('/ebapi/notify/notify',['notify_type'=>'routine']) ]; - if(isset($payment['pay_weixin_open']) && $payment['pay_weixin_open'] == 1){ - $config['payment'] = [ - 'app_id'=>isset($wechat['routine_appId']) ? $wechat['routine_appId']:'', - 'merchant_id'=>$payment['pay_routine_mchid'], - 'key'=>$payment['pay_routine_key'], - 'cert_path'=>realpath('.'.$payment['pay_routine_client_cert']), - 'key_path'=>realpath('.'.$payment['pay_routine_client_key']), - 'notify_url'=>$wechat['site_url'].Url::build('/ebapi/notify/notify',['notify_type'=>'routine']) - ]; - } return $config; } public static function application($cache = false) diff --git a/application/core/util/ProgramTemplateService.php b/application/core/util/ProgramTemplateService.php index 5b4a326a..e9ae49ce 100644 --- a/application/core/util/ProgramTemplateService.php +++ b/application/core/util/ProgramTemplateService.php @@ -35,7 +35,11 @@ class ProgramTemplateService implements ProviderInterface //开团成功 const OPEN_PINK_SUCCESS='AT0541'; //确认收货通知 - const OREDER_TAKEVER='AT0241'; + const OREDER_TAKEVER = 'AT0241'; + //提现成功通知 + const USER_EXTRACT_TRUE = 'AT1330'; + //提现失败通知 + const USER_EXTRACT_FALSE = 'AT1242'; public static function getConstants($code='') { diff --git a/application/ebapi/controller/ApiException.php b/application/ebapi/controller/ApiException.php index b237a8ca..1db9c33e 100644 --- a/application/ebapi/controller/ApiException.php +++ b/application/ebapi/controller/ApiException.php @@ -33,6 +33,6 @@ class ApiException extends Handle if($e instanceof ErrorException) return JsonService::fail($e->getMessage(),[],$e->getCode()); //默认错误提示 $baseExcep=new BaseException(); - return JsonService::fail($baseExcep->msg,[],$baseExcep->code); + return JsonService::fail($baseExcep->msg,[$e->getMessage(),$e->getFile()],$baseExcep->code); } } \ No newline at end of file diff --git a/application/ebapi/controller/AuthApi.php b/application/ebapi/controller/AuthApi.php index b4ba3e66..15ba5495 100644 --- a/application/ebapi/controller/AuthApi.php +++ b/application/ebapi/controller/AuthApi.php @@ -139,11 +139,11 @@ class AuthApi extends AuthController * @param int $secKillId * @return \think\response\Json */ - public function now_buy($productId = '', $cartNum = 1, $uniqueId = '', $combinationId = 0, $secKillId = 0, $bargainId = 0) + public function now_buy($productId = '', $cartNum = 1, $uniqueId = '', $combinationId = 0, $is_new = 0,$secKillId = 0, $bargainId = 0) { if (!$productId || !is_numeric($productId)) return JsonService::fail('参数错误'); if ($bargainId && StoreBargainUserHelp::getSurplusPrice($bargainId, $this->userInfo['uid'])) return JsonService::fail('请先砍价'); - $res = StoreCart::setCart($this->userInfo['uid'], $productId, $cartNum, $uniqueId, 'product', 1, $combinationId, $secKillId, $bargainId); + $res = StoreCart::setCart($this->userInfo['uid'], $productId, $cartNum, $uniqueId, 'product', $is_new, $combinationId, $secKillId, $bargainId); if (!$res) return JsonService::fail(StoreCart::getErrorInfo()); else return JsonService::successful('ok', ['cartId' => $res->id]); } diff --git a/application/ebapi/controller/Basic.php b/application/ebapi/controller/Basic.php index 1044202b..9f9d74a0 100644 --- a/application/ebapi/controller/Basic.php +++ b/application/ebapi/controller/Basic.php @@ -18,13 +18,19 @@ class Basic extends Controller protected $Debug=true; //未使用路由前置执行的行为 protected $ApimiddlewareGroups=[ - + //取消未支付订单 + 'order_unpaid_cancel'=>\app\core\behavior\OrderBehavior::class, + //清除昨日用户生成的附件 + 'empty_yester_day_attachment'=>\app\core\behavior\UserBehavior::class, ]; protected function _initialize() { parent::_initialize(); // TODO: Change the autogenerated stub $this->Debug=Config::get('app_debug'); + header("Access-Control-Allow-Origin:*"); + header("Access-Control-Allow-Methods:POST,GET"); + header("Access-Control-Allow-Headers:*"); $this->runApimiddlewareGroups(); } @@ -65,8 +71,8 @@ class Basic extends Controller $hash=$this->request->routeInfo(); if(!Config::get('url_route_on') || !isset($hash['rule'][1])) { - foreach ((array)$this->ApimiddlewareGroups as $behavior){ - $result=Hook::exec($behavior); + foreach ((array)$this->ApimiddlewareGroups as $action=>$behavior){ + $result=Hook::exec($behavior,is_string($action) ? $action : ''); if(!is_null($result)) return $this->fail($result); } } @@ -155,7 +161,7 @@ class Basic extends Controller if(method_exists($className,'whiteList')){ try{ //执行白名单方法获取白名单 - $white=$className::whiteList(); + $white = $className::whiteList(); if(!is_array($white)) return false; foreach ($white as $actionWhite){ //比较白名单和当前访问方法 diff --git a/application/ebapi/controller/PublicApi.php b/application/ebapi/controller/PublicApi.php index 53578b2c..0b5ac347 100644 --- a/application/ebapi/controller/PublicApi.php +++ b/application/ebapi/controller/PublicApi.php @@ -17,6 +17,10 @@ use service\UploadService; use service\UtilService; use service\CacheService; use think\Cache; +use Api\Storage\COS\COS; +use Api\Storage\OSS\OSS; +use Api\Storage\Qiniu\Qiniu; +use app\admin\model\system\SystemAttachment; /** * 小程序公共接口 @@ -55,6 +59,7 @@ class PublicApi extends AuthController public function get_logo_url() { $routine_logo=SystemConfigService::get('routine_logo'); + if(strstr($routine_logo,'http')===false) $routine_logo=SystemConfigService::get('site_url').$routine_logo; return JsonService::successful(['logo_url'=>str_replace('\\','/',$routine_logo)]); } /** @@ -94,7 +99,7 @@ class PublicApi extends AuthController $info['salesInfo'] = SystemConfigService::get('sales_info');//TODO 促销单品简介 $logoUrl = SystemConfigService::get('routine_index_logo');//TODO 促销单品简介 if(strstr($logoUrl,'http')===false) $logoUrl=SystemConfigService::get('site_url').$logoUrl; - $logoUrl=str_replace('\\','/',$logoUrl); + $logoUrl = str_replace('\\','/',$logoUrl); $fastNumber = (int)SystemConfigService::get('fast_number');//TODO 快速选择分类个数 $bastNumber = (int)SystemConfigService::get('bast_number');//TODO 精品推荐个数 $firstNumber = (int)SystemConfigService::get('first_number');//TODO 首发新品个数 @@ -179,16 +184,20 @@ class PublicApi extends AuthController ['pic',''], ]); if($post['pic']=='') return $this->fail('缺少删除资源'); - $type=['php','js','css','html','ttf','otf']; - $post['pic']=substr($post['pic'],1); - $ext=substr($post['pic'],-3); - if(in_array($ext,$type)) return $this->fail('非法操作'); - if(strstr($post['pic'],'uploads')===false) return $this->fail('非法操作'); try{ - if(file_exists($post['pic'])) unlink($post['pic']); - if(strstr($post['pic'],'s_')!==false){ - $pic=str_replace(['s_'],'',$post['pic']); - if(file_exists($pic)) unlink($pic); + $attinfo = SystemAttachment::get($post['pic']); + if($attinfo){ + if($attinfo['image_type'] == 1){ + @unlink(ROOT_PATH.ltrim($attinfo['att_dir'],'.')); + @unlink(ROOT_PATH.ltrim($attinfo['satt_dir'],'.')); + }else if($attinfo['image_type'] == 2){ + Qiniu::delete($attinfo['name']); + }else if($attinfo['image_type'] == 3){ + OSS::delete($attinfo['name']); + }else if($attinfo['image_type'] == 4){ + COS::delete($attinfo['name']); + } + SystemAttachment::where(['att_id'=>$post['pic']])->delete(); } return $this->successful('删除成功'); }catch (\Exception $e){ @@ -208,16 +217,14 @@ class PublicApi extends AuthController ],$this->request); if(Cache::has('start_uploads_'.$this->uid) && Cache::get('start_uploads_'.$this->uid) >= 100) return $this->fail('非法操作'); $res = UploadService::image($data['filename'],$dir ? $dir: 'store/comment'); - if($res->status == 200){ - if(Cache::has('start_uploads_'.$this->uid)) - $start_uploads=(int)Cache::get('start_uploads_'.$this->uid); - else - $start_uploads=0; - $start_uploads++; - Cache::set('start_uploads_'.$this->uid,$start_uploads,86400); - return $this->successful('图片上传成功!', ['name' => $res->fileInfo->getSaveName(), 'url' => UploadService::pathToUrl($res->dir)]); - }else - return $this->fail($res->error); + if(!is_array($res)) return $this->fail(isset($res['error']) ? $res['error'] : '上传失败',$res); + if(Cache::has('start_uploads_'.$this->uid)) + $start_uploads=(int)Cache::get('start_uploads_'.$this->uid); + else + $start_uploads=0; + $start_uploads++; + Cache::set('start_uploads_'.$this->uid,$start_uploads,86400); + return $this->successful('图片上传成功!', ['name' => $res['name'], 'url' => UploadService::pathToUrl($res['dir'])]); } /** @@ -236,7 +243,7 @@ class PublicApi extends AuthController public function get_user_extract_bank(){ $extractBank = SystemConfigService::get('user_extract_bank')?:[];//提现银行 $extractBank = str_replace("\r\n","\n",$extractBank);//防止不兼容 - $data['extractBank'] = explode("\n",$extractBank); + $data['extractBank'] = explode("\n",is_array($extractBank) ? ( isset($extractBank[0]) ? $extractBank[0]: $extractBank): $extractBank); $data['minPrice'] = SystemConfigService::get('user_extract_min_price');//提现最低金额 return $this->successful($data); } diff --git a/application/ebapi/controller/SeckillApi.php b/application/ebapi/controller/SeckillApi.php index f727ebef..63a2575e 100644 --- a/application/ebapi/controller/SeckillApi.php +++ b/application/ebapi/controller/SeckillApi.php @@ -1,6 +1,7 @@ <?php namespace app\ebapi\controller; +use app\core\util\SystemConfigService; use app\ebapi\model\store\StoreProductRelation; use app\ebapi\model\store\StoreProductReply; use app\ebapi\model\store\StoreSeckill; @@ -22,7 +23,6 @@ class SeckillApi extends AuthController * @return \think\response\Json */ public function seckill_index(){ - $lovely = GroupDataService::getData('routine_lovely')?:[];//banner图 $seckillTime = GroupDataService::getData('routine_seckill_time')?:[];//秒杀时间段 $seckillTimeIndex = 0; if(count($seckillTime)){ @@ -55,7 +55,9 @@ class SeckillApi extends AuthController } } } - $data['lovely'] = isset($lovely[0]) ? $lovely[0] : ''; + $data['lovely'] = SystemConfigService::get('seckill_header_banner'); + if(strstr($data['lovely'],'http')===false) $data['lovely']=SystemConfigService::get('site_url').$data['lovely']; + $data['lovely'] = str_replace('\\','/',$data['lovely']); $data['seckillTime'] = $seckillTime; $data['seckillTimeIndex'] = $seckillTimeIndex; return JsonService::successful($data); diff --git a/application/ebapi/controller/StoreApi.php b/application/ebapi/controller/StoreApi.php index b2470580..281501e5 100644 --- a/application/ebapi/controller/StoreApi.php +++ b/application/ebapi/controller/StoreApi.php @@ -2,6 +2,7 @@ namespace app\ebapi\controller; +use app\admin\model\system\SystemAttachment; use app\core\model\routine\RoutineCode;//待完善 use app\ebapi\model\store\StoreCategory; use app\ebapi\model\store\StoreOrderCartInfo; @@ -12,6 +13,7 @@ use app\ebapi\model\store\StoreProductReply; use app\core\util\GroupDataService; use service\JsonService; use app\core\util\SystemConfigService; +use service\UploadService; use service\UtilService; use app\core\util\MiniProgramService; use think\Cache; @@ -43,8 +45,12 @@ class StoreApi extends AuthController */ public function goods_search() { - list($keyword) = UtilService::getMore([['keyword',0]],null,true); - return JsonService::successful(StoreProduct::getSearchStorePage($keyword,$this->uid)); + list($keyword,$page,$limit) = UtilService::getMore([ + ['keyword',0], + ['page',1], + ['limit',8], + ],null,true); + return JsonService::successful(StoreProduct::getSearchStorePage($keyword,(int)$page,(int)$limit,$this->uid)); } /** * 分类页面 @@ -128,6 +134,10 @@ class StoreApi extends AuthController */ public function details($id=0){ if(!$id || !($storeInfo = StoreProduct::getValidProduct($id))) return JsonService::fail('商品不存在或已下架'); + //替换windows服务器下正反斜杠问题导致图片无法显示 + $storeInfo['description'] = preg_replace_callback('#<img.*?src="([^"]*)"[^>]*>#i',function ($imagsSrc){ + return isset($imagsSrc[1]) && isset($imagsSrc[0]) ? str_replace($imagsSrc[1],str_replace('\\','/',$imagsSrc[1]),$imagsSrc[0]): ''; + },$storeInfo['description']); $storeInfo['userCollect'] = StoreProductRelation::isProductRelation($id,$this->userInfo['uid'],'collect'); list($productAttr,$productValue) = StoreProductAttr::getProductAttrDetail($id); setView($this->userInfo['uid'],$id,$storeInfo['cate_id'],'viwe'); @@ -348,19 +358,24 @@ class StoreApi extends AuthController if(!$id) return JsonService::fail('参数错误ID不存在'); $count = StoreProduct::validWhere()->count(); if(!$count) return JsonService::fail('参数错误'); - $path = makePathToUrl('routine/product/',4); - if($path == '') return JsonService::fail('生成上传目录失败,请检查权限!'); - $codePath = $path.$id.'_'.$this->userInfo['uid'].'_product.jpg'; - $domain = SystemConfigService::get('site_url').'/'; - if(!file_exists($codePath)){ - if(!is_dir($path)) mkdir($path,0777,true); + $name = $id.'_'.$this->userInfo['uid'].'_'.$this->userInfo['is_promoter'].'_product.jpg'; + $imageInfo = SystemAttachment::getInfo($name,'name'); + $siteUrl = SystemConfigService::get('site_url').DS; + if(!$imageInfo){ $data='id='.$id; if($this->userInfo['is_promoter'] || SystemConfigService::get('store_brokerage_statu')==2) $data.='&pid='.$this->uid; $res = RoutineCode::getPageCode('pages/goods_details/index',$data,280); - if($res) file_put_contents($codePath,$res); - else return JsonService::fail('二维码生成失败'); - } - return JsonService::successful($domain.$codePath); + if(!$res) return JsonService::fail('二维码生成失败'); + $imageInfo = UploadService::imageStream($name,$res,'routine/product'); + if(!is_array($imageInfo)) return JsonService::fail($imageInfo); + if($imageInfo['image_type'] == 1) $remoteImage = UtilService::remoteImage($siteUrl.$imageInfo['dir']); + else $remoteImage = UtilService::remoteImage($imageInfo['dir']); + if(!$remoteImage['status']) return JsonService::fail('小程序二维码未能生成',$remoteImage['msg']); + SystemAttachment::attachmentAdd($imageInfo['name'],$imageInfo['size'],$imageInfo['type'],$imageInfo['dir'],$imageInfo['thumb_path'],1,$imageInfo['image_type'],$imageInfo['time'],2); + $urlCode = $imageInfo['dir']; + }else $urlCode = $imageInfo['att_dir']; + if($imageInfo['image_type'] == 1) $urlCode = $siteUrl.$urlCode; + return JsonService::successful($urlCode); } /** diff --git a/application/ebapi/controller/UserApi.php b/application/ebapi/controller/UserApi.php index 1ca0aa14..ede60dac 100644 --- a/application/ebapi/controller/UserApi.php +++ b/application/ebapi/controller/UserApi.php @@ -2,6 +2,8 @@ namespace app\ebapi\controller; use Api\Express; +use app\admin\model\system\SystemAttachment; +use app\core\model\routine\RoutineQrcode; use app\core\model\user\UserLevel; use app\core\model\user\UserSign; use app\core\model\routine\RoutineCode;//待完善 @@ -24,6 +26,7 @@ use service\CacheService; use app\core\util\GroupDataService; use service\JsonService; use app\core\util\SystemConfigService; +use service\UploadService; use service\UtilService; use think\Request; use think\Cache; @@ -56,6 +59,14 @@ class UserApi extends AuthController { return JsonService::successful(UserSign::getSignList($this->uid,$page,$limit)); } + /* + * 获取图片储存位置 + * + * */ + public function picture_storage_location() + { + return JsonService::successful((int)SystemConfigService::get('upload_type')); + } /* * 获取当前登录的用户信息 * */ @@ -113,13 +124,19 @@ class UserApi extends AuthController $this->userInfo['orderStatusSum'] = StoreOrder::getOrderStatusSum($this->uid);//累计消费 $this->userInfo['extractTotalPrice'] = UserExtract::userExtractTotalPrice($this->uid);//累计提现 if($this->userInfo['brokerage'] > $this->userInfo['extractTotalPrice']) { - $this->userInfo['brokerage']=bcsub($this->userInfo['brokerage'],$this->userInfo['extractTotalPrice'],2);//减去已提现金额 - $extract_price=UserExtract::userExtractTotalPrice($this->uid,0); - $this->userInfo['brokerage']=$extract_price < $this->userInfo['brokerage'] ? bcsub($this->userInfo['brokerage'],$extract_price,2) : 0;//减去审核中的提现金额 + $orderYuePrice = StoreOrder::getOrderStatusYueSum($this->uid);//余额累计消费 + $systemAdd = UserBill::getSystemAdd($this->uid);//后台添加余额 + $yueCount = bcadd($this->userInfo['recharge'],$systemAdd,2);// 后台添加余额 + 累计充值 = 非佣金的总金额 + $orderYuePrice = $yueCount > $orderYuePrice ? 0 : bcsub($orderYuePrice,$yueCount,2);// 余额累计消费(使用佣金消费的金额) + $this->userInfo['brokerage'] = bcsub($this->userInfo['brokerage'],$this->userInfo['extractTotalPrice'],2);//减去已提现金额 + $extract_price = UserExtract::userExtractTotalPrice($this->uid,0); + $this->userInfo['brokerage'] = $extract_price < $this->userInfo['brokerage'] ? bcsub($this->userInfo['brokerage'],$extract_price,2) : 0;//减去审核中的提现金额 + $this->userInfo['brokerage'] = $this->userInfo['brokerage'] > $orderYuePrice ? bcsub($this->userInfo['brokerage'],$orderYuePrice,2) : 0;//减掉余额支付 }else{ $this->userInfo['brokerage']=0; } - $this->userInfo['extractPrice'] = (float)bcsub($this->userInfo['brokerage'],$this->userInfo['extractTotalPrice'],2) > 0 ? : 0;//可提现 + $this->userInfo['extractPrice'] = (float)bcsub($this->userInfo['brokerage'],$this->userInfo['extractTotalPrice'],2) > 0 ? + bcsub($this->userInfo['brokerage'],$this->userInfo['extractTotalPrice'],2) : 0;//可提现 $this->userInfo['statu'] = (int)SystemConfigService::get('store_brokerage_statu'); $vipId=UserLevel::getUserLevel($this->uid); $this->userInfo['vip']=$vipId !==false ? true : false; @@ -128,6 +145,7 @@ class UserApi extends AuthController $this->userInfo['vip_icon']=UserLevel::getUserLevelInfo($vipId,'icon'); $this->userInfo['vip_name']=UserLevel::getUserLevelInfo($vipId,'name'); } + if(!SystemConfigService::get('vip_open')) $this->userInfo['vip']=false; unset($this->userInfo['pwd']); return JsonService::successful($this->userInfo); } @@ -288,7 +306,7 @@ class UserApi extends AuthController if(!$price || $price <=0) return JsonService::fail('参数错误'); $storeMinRecharge = SystemConfigService::get('store_user_min_recharge'); if($price < $storeMinRecharge) return JsonService::fail('充值金额不能低于'.$storeMinRecharge); - $rechargeOrder = UserRecharge::addRecharge($this->userInfo['uid'],$price); + $rechargeOrder = UserRecharge::addRecharge($this->userInfo['uid'],$price,'routine'); if(!$rechargeOrder) return JsonService::fail('充值订单生成失败!'); try{ return JsonService::successful(UserRecharge::jsPay($rechargeOrder)); @@ -376,6 +394,7 @@ class UserApi extends AuthController ['name',''], ['bankname',''], ['cardnum',''], + ['weixin',''], ],$this->request); if(UserExtract::userExtract($this->userInfo,$data)) return JsonService::successful('申请提现成功!'); @@ -737,33 +756,42 @@ class UserApi extends AuthController * 分销二维码海报生成 */ public function user_spread_banner_list(){ - header('content-type:image/jpg'); try{ $routineSpreadBanner = GroupDataService::getData('routine_spread_banner'); if(!count($routineSpreadBanner)) return JsonService::fail('暂无海报'); - $pathCode = makePathToUrl('routine/spread/code',3); - if($pathCode == '') return JsonService::fail('生成上传目录失败,请检查权限!'); - $picName = $pathCode.DS.$this->userInfo['uid'].'.jpg'; - $picName = trim(str_replace(DS, '/',$picName,$loop)); - $res = RoutineCode::getShareCode($this->uid, 'spread', '', $picName); - if($res) file_put_contents($picName,$res); - else return JsonService::fail('二维码生成失败'); + $name = $this->userInfo['uid'].'_'.$this->userInfo['is_promoter'].'_user.jpg'; + $imageInfo = SystemAttachment::getInfo($name,'name'); + $siteUrl = SystemConfigService::get('site_url').DS; + //检测远程文件是否存在 + if(isset($imageInfo['att_dir']) && strstr($imageInfo['att_dir'],'http')!==false && UtilService::CurlFileExist($imageInfo['att_dir']) === false){ + $imageInfo=null; + SystemAttachment::where(['name'=>$name])->delete(); + } + if(!$imageInfo){ + $res = RoutineCode::getShareCode($this->uid, 'spread', '', ''); + if(!$res) return JsonService::fail('二维码生成失败'); + $imageInfo = UploadService::imageStream($name,$res['res'],'routine/spread/code'); + if(!is_array($imageInfo)) return JsonService::fail($imageInfo); + SystemAttachment::attachmentAdd($imageInfo['name'],$imageInfo['size'],$imageInfo['type'],$imageInfo['dir'],$imageInfo['thumb_path'],1,$imageInfo['image_type'],$imageInfo['time'],2); + RoutineQrcode::setRoutineQrcodeFind($res['id'],['status'=>1,'time'=>time(),'qrcode_url'=>$imageInfo['dir']]); + $urlCode = $imageInfo['dir']; + }else $urlCode = $imageInfo['att_dir']; + if($imageInfo['image_type'] == 1) $urlCode = ROOT_PATH.$urlCode; $res = true; - $url = SystemConfigService::get('site_url').'/'; - $domainTop = substr($url,0,5); - if($domainTop != 'https') $url = 'https:'.substr($url,5,strlen($url)); - $pathCode = makePathToUrl('routine/spread/poster',3); + $domainTop = substr($siteUrl,0,5); + if($domainTop != 'https') $siteUrl = 'https:'.substr($siteUrl,5,strlen($siteUrl)); $filelink=[ - 'Bold'=>'public/static/font/SourceHanSansCN-Bold.otf', - 'Normal'=>'public/static/font/SourceHanSansCN-Normal.otf', + 'Bold'=>'public/static/font/Alibaba-PuHuiTi-Regular.otf', + 'Normal'=>'public/static/font/Alibaba-PuHuiTi-Regular.otf', ]; if(!file_exists($filelink['Bold'])) return JsonService::fail('缺少字体文件Bold'); if(!file_exists($filelink['Normal'])) return JsonService::fail('缺少字体文件Normal'); foreach ($routineSpreadBanner as $key=>&$item){ + $posterInfo = '海报生成失败:('; $config = array( 'image'=>array( array( - 'url'=>ROOT_PATH.$picName, //二维码资源 + 'url'=>strstr($urlCode,ROOT_PATH) === false && strpos($urlCode,'http') === false ? str_replace('//','/',ROOT_PATH.$urlCode) : $urlCode, //二维码资源 'stream'=>0, 'left'=>114, 'top'=>790, @@ -796,9 +824,15 @@ class UserApi extends AuthController ), 'background'=>$item['pic'] ); - $filename = ROOT_PATH.$pathCode.'/'.$item['id'].'_'.$this->uid.'.png'; - $res = $res && UtilService::setSharePoster($config,$filename); - if($res) $item['poster'] = $url.$pathCode.'/'.$item['id'].'_'.$this->uid.'.png'; + $res = $res && $posterInfo = UtilService::setSharePoster($config,'routine/spread/poster'); + if(!is_array($posterInfo)) return JsonService::fail($posterInfo); + SystemAttachment::attachmentAdd($posterInfo['name'],$posterInfo['size'],$posterInfo['type'],$posterInfo['dir'],$posterInfo['thumb_path'],1,$posterInfo['image_type'],$posterInfo['time'],2); + if($res){ + if($posterInfo['image_type'] == 1) $item['poster'] = $siteUrl.$posterInfo['dir']; + else $item['poster'] = $posterInfo['dir']; + $item['poster'] = str_replace('\\','/',$item['poster']); + if(strstr($item['poster'],'http')===false) $item['poster']=SystemConfigService::get('site_url').$item['poster']; + } } if($res) return JsonService::successful($routineSpreadBanner); else return JsonService::fail('生成图片失败'); diff --git a/application/ebapi/model/store/StoreCart.php b/application/ebapi/model/store/StoreCart.php index f89dabdc..d36fdac6 100644 --- a/application/ebapi/model/store/StoreCart.php +++ b/application/ebapi/model/store/StoreCart.php @@ -174,16 +174,26 @@ class StoreCart extends ModelBasic $invalid[] = $cart; else{ $cart['productInfo']['attrInfo'] = $attrInfo; - $cart['truePrice'] = (float)StoreProduct::setLevelPrice($attrInfo['price'],$uid,true); - $cart['vip_truePrice'] = (float)StoreProduct::setLevelPrice($attrInfo['price'],$uid); + if($cart['combination_id'] || $cart['seckill_id'] || $cart['bargain_id']) { + $cart['truePrice'] = $attrInfo['price']; + $cart['vip_truePrice'] = 0; + }else { + $cart['truePrice'] = (float)StoreProduct::setLevelPrice($attrInfo['price'],$uid,true); + $cart['vip_truePrice'] = (float)StoreProduct::setLevelPrice($attrInfo['price'], $uid); + } $cart['trueStock'] = $attrInfo['stock']; $cart['costPrice'] = $attrInfo['cost']; $cart['productInfo']['image'] = empty($attrInfo['image']) ? $cart['productInfo']['image'] : $attrInfo['image']; $valid[] = $cart; } }else{ - $cart['truePrice'] = (float)StoreProduct::setLevelPrice($cart['productInfo']['price'],$uid,true); - $cart['vip_truePrice'] = (float)StoreProduct::setLevelPrice($cart['productInfo']['price'],$uid); + if($cart['combination_id'] || $cart['seckill_id'] || $cart['bargain_id']) { + $cart['truePrice'] = $cart['productInfo']['price']; + $cart['vip_truePrice'] = 0; + }else { + $cart['truePrice'] = (float)StoreProduct::setLevelPrice($cart['productInfo']['price'],$uid,true); + $cart['vip_truePrice'] = (float)StoreProduct::setLevelPrice($cart['productInfo']['price'], $uid); + } $cart['trueStock'] = $cart['productInfo']['stock']; $cart['costPrice'] = $cart['productInfo']['cost']; $valid[] = $cart; diff --git a/application/ebapi/model/store/StoreCategory.php b/application/ebapi/model/store/StoreCategory.php index 4f975bb5..26d0e469 100644 --- a/application/ebapi/model/store/StoreCategory.php +++ b/application/ebapi/model/store/StoreCategory.php @@ -59,6 +59,7 @@ class StoreCategory extends ModelBasic * @throws \think\exception\DbException */ public static function byIndexList($limit = 4,$field = 'id,cate_name,pid,pic'){ + if(!$limit) return []; return self::where('pid','>',0)->where('is_show',1)->field($field)->order('sort DESC')->limit($limit)->select(); } diff --git a/application/ebapi/model/store/StoreCouponIssue.php b/application/ebapi/model/store/StoreCouponIssue.php index 9abd82e7..f307488e 100644 --- a/application/ebapi/model/store/StoreCouponIssue.php +++ b/application/ebapi/model/store/StoreCouponIssue.php @@ -26,8 +26,13 @@ class StoreCouponIssue extends ModelBasic if(!$v['is_use']){ $v['is_use']=$v['remain_count'] <= 0 && !$v['is_permanent'] ? 2 : $v['is_use']; } - $v['add_time']=date('Y/m/d',$v['add_time']); - $v['end_time']=$v['end_time'] ? date('Y/m/d',$v['end_time']) : date('Y/m/d',time()+86400); + if(!$v['end_time']){ + $v['add_time']= ''; + $v['end_time'] = '不限时'; + }else{ + $v['add_time']=date('Y/m/d',$v['add_time']); + $v['end_time']=$v['end_time'] ? date('Y/m/d',$v['end_time']) : date('Y/m/d',time()+86400); + } $v['coupon_price']=(int)$v['coupon_price']; } return $list; diff --git a/application/ebapi/model/store/StoreOrder.php b/application/ebapi/model/store/StoreOrder.php index da67ff05..7d28191f 100644 --- a/application/ebapi/model/store/StoreOrder.php +++ b/application/ebapi/model/store/StoreOrder.php @@ -8,6 +8,7 @@ namespace app\ebapi\model\store; use app\core\model\routine\RoutineTemplate; +use app\core\util\ApiLogs; use app\ebapi\model\user\User; use app\ebapi\model\user\UserAddress; use app\core\model\user\UserBill; @@ -21,6 +22,8 @@ use service\HookService; use app\core\util\MiniProgramService; use app\core\util\SystemConfigService; use think\Cache; +use think\Exception; +use think\exception\PDOException; use traits\ModelTrait; class StoreOrder extends ModelBasic @@ -225,7 +228,7 @@ class StoreOrder extends ModelBasic foreach ($cartInfo as $cart){ $cartIds[] = $cart['id']; $totalNum += $cart['cart_num']; - $gainIntegral = bcadd($gainIntegral,isset($cart['productInfo']['give_integral']) ? $cart['productInfo']['give_integral'] : 0,2); + $gainIntegral = bcadd($gainIntegral,isset($cart['productInfo']['give_integral']) ? bcmul($cart['productInfo']['give_integral'],$cart['cart_num'],2) : 0,2); } $orderInfo = [ 'uid'=>$uid, @@ -258,6 +261,14 @@ class StoreOrder extends ModelBasic $order = self::set($orderInfo); if(!$order)return self::setErrorInfo('订单生成失败!'); $res5 = true; + foreach ($cartInfo as $cart) + { + //减库存加销量 + if($combinationId) $res5 = $res5 && StoreCombination::decCombinationStock($cart['cart_num'],$combinationId); + else if($seckill_id) $res5 = $res5 && StoreSeckill::decSeckillStock($cart['cart_num'],$seckill_id); + else if($bargain_id) $res5 = $res5 && StoreBargain::decBargainStock($cart['cart_num'],$bargain_id); + else $res5 = $res5 && StoreProduct::decProductStock($cart['cart_num'],$cart['productInfo']['id'],isset($cart['productInfo']['attrInfo']) ? $cart['productInfo']['attrInfo']['unique']:''); + } //保存购物车商品信息 $res4 = false !== StoreOrderCartInfo::setCartInfo($order['id'],$cartInfo); //购物车状态修改 @@ -281,14 +292,13 @@ class StoreOrder extends ModelBasic * */ public static function RegressionIntegral($order) { - if($order['paid'] || $order['status']==-2 || $order['is_del']) return false; - if($order['use_integral'] < 0) return true; - if((int)$order['status']!=-2 && (int)$order['refund_status']!=2 && $order['back_integral'] >= $order['use_integral']) - return self::setErrorInfo('已退积分或该状态无法回退积分'); + if($order['paid'] || $order['status']==-2 || $order['is_del']) return true; + if($order['use_integral'] <= 0) return true; + if((int)$order['status']!=-2 && (int)$order['refund_status']!=2 && $order['back_integral'] >= $order['use_integral']) return true; $res=User::bcInc($order['uid'],'integral',$order['use_integral']); if(!$res) return self::setErrorInfo('回退积分增加失败'); UserBill::income('积分回退',$order['uid'],'integral','deduction',$order['use_integral'],$order['unique'],User::where('uid',$order['uid'])->value('integral'),'购买商品失败,回退积分'.floatval($order['use_integral'])); - return self::where('order_id',$order['order_id'])->update(['back_integral'=>$order['use_integral']]); + return false !== self::where('order_id',$order['order_id'])->update(['back_integral'=>$order['use_integral']]); } /* @@ -298,11 +308,11 @@ class StoreOrder extends ModelBasic * */ public static function RegressionStock($order) { - if($order['paid'] || $order['status']==-2 || $order['is_del']) return false; - $combinationId=$order['combination_id']; - $seckill_id=$order['seckill_id']; - $bargain_id=$order['bargain_id']; - $res5=true; + if($order['paid'] || $order['status'] == -2 || $order['is_del']) return true; + $combinationId = $order['combination_id']; + $seckill_id = $order['seckill_id']; + $bargain_id = $order['bargain_id']; + $res5 = true; $cartInfo=StoreOrderCartInfo::where('cart_id','in',$order['cart_id'])->select(); foreach ($cartInfo as $cart) { @@ -322,10 +332,10 @@ class StoreOrder extends ModelBasic * */ public static function RegressionCoupon($order) { - if($order['paid'] || $order['status']==-2 || $order['is_del']) return false; + if($order['paid'] || $order['status']==-2 || $order['is_del']) return true; $res=true; if($order['coupon_id'] && StoreCouponUser::be(['id'=>$order['coupon_id'],'uid'=>$order['uid'],'status'=>1])){ - $res= $res && StoreCouponUser::where(['id'=>$order['coupon_id'],'uid'=>$order['uid']])->update(['status'=>0,'use_time'=>0]); + $res= $res && false !== StoreCouponUser::where(['id'=>$order['coupon_id'],'uid'=>$order['uid']])->update(['status'=>0,'use_time'=>0]); } return $res; } @@ -340,11 +350,12 @@ class StoreOrder extends ModelBasic if(!$order) return self::setErrorInfo('没有查到此订单'); self::beginTrans(); try{ - $res=self::RegressionIntegral($order) && self::RegressionCoupon($order); + $res=self::RegressionIntegral($order) && self::RegressionStock($order) && self::RegressionCoupon($order); if($res){ $order->is_del=1; + $order->save(); self::commitTrans(); - return $order->save(); + return true; } }catch (\Exception $e){ self::rollbackTrans(); @@ -472,21 +483,29 @@ class StoreOrder extends ModelBasic $order = self::where('order_id',$orderId)->find(); $resPink = true; $res1 = self::where('order_id',$orderId)->update(['paid'=>1,'pay_type'=>$paytype,'pay_time'=>time()]);//订单改为支付 - $cartInfo = self::getDb('StoreOrderCartInfo')->where('oid', $order['id'])->column('cart_info', 'unique') ?: []; - foreach ($cartInfo as $k => &$cart) $cart = json_decode($cart, true); - $res2 = true; - foreach ($cartInfo as $k => &$cart) { //减库存加销量 - if ($cart['combination_id']) $res2 = $res2 && StoreCombination::decCombinationStock($cart['cart_num'], $cart['combination_id']); - else if ($cart['seckill_id']) $res2 = $res2 && StoreSeckill::decSeckillStock($cart['cart_num'], $cart['seckill_id']); - else if ($cart['bargain_id']) $res2 = $res2 && StoreBargain::decBargainStock($cart['cart_num'], $cart['bargain_id']); - else $res2 = $res2 && StoreProduct::decProductStock($cart['cart_num'], $cart['productInfo']['id'], isset($cart['productInfo']['attrInfo']) ? $cart['productInfo']['attrInfo']['unique'] : ''); - } User::bcInc($order['uid'],'pay_count',1,'uid'); if($order->combination_id && $res1 && !$order->refund_status) $resPink = StorePink::createPink($order);//创建拼团 $oid = self::where('order_id',$orderId)->value('id'); StoreOrderStatus::status($oid,'pay_success','用户付款成功'); RoutineTemplate::sendOrderSuccess($formId,$orderId); - HookService::afterListen('user_level',User::where('uid',$order['uid'])->find(),false,UserBehavior::class); + HookService::afterListen('user_level',User::where('uid',$order['uid'])->find(),null,false,UserBehavior::class); + //TODO 订单通知给管理员 + try{ + $pay_type = '微信支付'; + if($order['pay_type']=='weixin'){ + $pay_type = '微信支付'; + }else if($order['pay_type']=='yue'){ + $pay_type = '余额支付'; + } + $nickname=User::where('uid',$order['uid'])->value('nickname'); + \app\core\util\WechatTemplateService::sendAdminNoticeTemplate([ + 'first'=>"亲,您有一个新订单 \n订单号:{$order['order_id']} \n支付金额:{$order['pay_price']} \n支付方式:{$pay_type} \n微信昵称:{$nickname}", + 'keyword1'=>'新订单', + 'keyword2'=>'已支付', + 'keyword3'=>date('Y/m/d H:i',time()), + 'remark'=>'用户备注:'.$order['mark'], + ]); + }catch(\Exception $e){} $res = $res1 && $resPink; return false !== $res; } @@ -554,18 +573,42 @@ class StoreOrder extends ModelBasic RoutineTemplate::sendOut('ORDER_POSTAGE_SUCCESS',$order['uid'],$group,$url); } } - + /** 收货后发送模版消息 + * @param $order + */ public static function orderTakeAfter($order) { -// $openid = WechatUser::getOpenId($order['uid']); -// RoutineTemplateService::sendTemplate($openid,RoutineTemplateService::ORDER_TAKE_SUCCESS,[ -// 'first'=>'亲,您的订单已成功签收,快去评价一下吧', -// 'keyword1'=>$order['order_id'], -// 'keyword2'=>'已收货', -// 'keyword3'=>date('Y/m/d H:i',time()), -// 'keyword4'=>implode(',',StoreOrderCartInfo::getProductNameList($order['id'])), -// 'remark'=>'点击查看订单详情' -// ],Url::build('My/order',['uni'=>$order['order_id']],true,true)); + $title = ''; + $cartInfo = self::getDb('StoreOrderCartInfo')->where('oid', $order['id'])->column('cart_info'); + if(count($cartInfo)){ + foreach ($cartInfo as $key=>&$cart){ + $cart = json_decode($cart,true); + $title .= $cart['productInfo']['store_name'].','; + } + } + if(strlen(trim($title))) $title = substr($title,0,bcsub(strlen($title),1,0)); + else{ + $cartInfo = self::getDb('store_cart')->alias('a')->where('a.id','in',implode(',',json_decode($order['cart_id'],true)))->find(); + $title = StoreProduct::getProductField($cartInfo['product_id'],'store_name'); + } + if($order['is_channel']){//小程序 + RoutineTemplate::sendOut('OREDER_TAKEVER',$order['uid'],[ + 'keyword1'=>$order['order_id'], + 'keyword2'=>$title, + 'keyword3'=>$order['pay_price'], + 'keyword4'=>date('Y-m-d H:i:s',time()), + ]); + }else{ + $openid = WechatUser::where('uid',$order['uid'])->value('openid'); + \app\core\util\WechatTemplateService::sendTemplate($openid,\app\core\util\WechatTemplateService::ORDER_TAKE_SUCCESS,[ + 'first'=>'亲,您的订单已收货', + 'keyword1'=>$order['order_id'], + 'keyword2'=>'已收货', + 'keyword3'=>date('Y-m-d H:i:s',time()), + 'keyword4'=>$title, + 'remark'=>'感谢您的光临!' + ]); + } } /** @@ -609,6 +652,7 @@ class StoreOrder extends ModelBasic try{ HookService::listen('store_product_order_user_take_delivery',$order,$uid,false,GoodsBehavior::class); }catch (\Exception $e){ + self::rollbackTrans(); return self::setErrorInfo($e->getMessage()); } self::commitTrans(); @@ -644,7 +688,28 @@ class StoreOrder extends ModelBasic }else if(!$order['paid']){ $status['_type'] = 0; $status['_title'] = '未支付'; - $status['_msg'] = '立即支付订单吧'; + //系统预设取消订单时间段 + $keyValue=['order_cancel_time','order_activity_time','order_bargain_time','order_seckill_time','order_pink_time']; + //获取配置 + $systemValue=SystemConfigService::more($keyValue); + //格式化数据 + $systemValue=self::setValeTime($keyValue,is_array($systemValue) ? $systemValue:[]); + if($order['pink_id'] || $order['combination_id']){ + $order_pink_time=$systemValue['order_pink_time'] ? $systemValue['order_pink_time'] : $systemValue['order_activity_time']; + $time=bcadd($order['add_time'],$order_pink_time*3600,0); + $status['_msg'] = '请在'.date('Y-m-d H:i:s',$time).'前完成支付!'; + }else if($order['seckill_id']){ + $order_seckill_time=$systemValue['order_seckill_time'] ? $systemValue['order_seckill_time'] : $systemValue['order_activity_time']; + $time=bcadd($order['add_time'],$order_seckill_time*3600,0); + $status['_msg'] = '请在'.date('Y-m-d H:i:s',$time).'前完成支付!'; + }else if($order['bargain_id']){ + $order_bargain_time=$systemValue['order_bargain_time'] ? $systemValue['order_bargain_time'] : $systemValue['order_activity_time']; + $time=bcadd($order['add_time'],$order_bargain_time*3600,0); + $status['_msg'] = '请在'.date('Y-m-d H:i:s',$time).'前完成支付!'; + }else{ + $time=bcadd($order['add_time'],$systemValue['order_cancel_time']*3600,0); + $status['_msg'] = '请在'.date('Y-m-d H:i:s',$time).'前完成支付!'; + } $status['_class'] = 'nobuy'; }else if($order['refund_status'] == 1){ $status['_type'] = -1; @@ -676,10 +741,22 @@ class StoreOrder extends ModelBasic $status['_class'] = 'state-nfh'; } }else if($order['status'] == 1){ - $status['_type'] = 2; - $status['_title'] = '待收货'; - $status['_msg'] = date('m月d日H时i分',StoreOrderStatus::getTime($order['id'],'delivery_goods')).'服务商已发货'; - $status['_class'] = 'state-ysh'; + if($order['delivery_type'] == 'send'){//TODO 送货 + $status['_type'] = 2; + $status['_title'] = '待收货'; + $status['_msg'] = date('m月d日H时i分',StoreOrderStatus::getTime($order['id'],'delivery')).'服务商已送货'; + $status['_class'] = 'state-ysh'; + }else if($order['delivery_type'] == 'express'){//TODO 发货 + $status['_type'] = 2; + $status['_title'] = '待收货'; + $status['_msg'] = date('m月d日H时i分',StoreOrderStatus::getTime($order['id'],'delivery_goods')).'服务商已发货'; + $status['_class'] = 'state-ysh'; + }else if($order['delivery_type'] == 'fictitious'){ + $status['_type'] = 2; + $status['_title'] = '虚拟发货'; + $status['_msg'] = date('m月d日H时i分',StoreOrderStatus::getTime($order['id'],'delivery_fictitious')).'服务商已发货'; + $status['_class'] = 'state-ysh'; + } }else if($order['status'] == 2){ $status['_type'] = 3; $status['_title'] = '待评价'; @@ -744,7 +821,7 @@ class StoreOrder extends ModelBasic public static function getUserOrderList($uid,$status = '',$page = 0,$limit = 8) { $list = self::statusByWhere($status,$uid)->where('is_del',0)->where('uid',$uid) - ->field('add_time,seckill_id,bargain_id,combination_id,id,order_id,pay_price,total_num,total_price,pay_postage,total_postage,paid,status,refund_status,pay_type,coupon_price,deduction_price,pink_id,delivery_type') + ->field('add_time,seckill_id,bargain_id,combination_id,id,order_id,pay_price,total_num,total_price,pay_postage,total_postage,paid,status,refund_status,pay_type,coupon_price,deduction_price,pink_id,delivery_type,is_del') ->order('add_time DESC')->page((int)$page,(int)$limit)->select()->toArray(); foreach ($list as $k=>$order){ $list[$k] = self::tidyOrder($order,true); @@ -938,7 +1015,116 @@ class StoreOrder extends ModelBasic return self::where(['uid'=>$uid,'is_del'=>0,'paid'=>1])->sum('pay_price'); } + + /** + * 获取余额支付的金额 + * @param $uid + * @return float|int + */ + public static function getOrderStatusYueSum($uid) + { + return self::where(['uid'=>$uid,'is_del'=>0,'pay_type'=>'yue','paid'=>1])->sum('pay_price'); + } public static function getPinkOrderId($id){ return self::where('id',$id)->value('order_id'); } + + /* + * 未支付订单自动取消 + * @param int $limit 分页截取条数 + * @param $prefid 缓存名称 + * @param $expire 缓存时间 + * */ + public static function orderUnpaidCancel($limit=10,$prefid=ApiLogs::ORDER_UNPAID_PAGE,$expire=3600) + { + //系统预设取消订单时间段 + $keyValue=['order_cancel_time','order_activity_time','order_bargain_time','order_seckill_time','order_pink_time']; + //未支付查询条件 + $UnPaidwhere=['paid'=>0,'is_del'=>0,'status'=>0,'refund_status'=>0]; + //获取配置 + $systemValue=SystemConfigService::more($keyValue); + //格式化数据 + $systemValue=self::setValeTime($keyValue,is_array($systemValue) ? $systemValue:[]); + //检查是否有未支付的订单 + $unPidCount=self::where($UnPaidwhere)->count(); + if(!$unPidCount) return null; + //总分页条数 + $pagesSum=ceil(bcdiv($unPidCount,$limit,2)); + if(Cache::has($prefid)){ + $pages=Cache::get($prefid); + $pages++; + Cache::set($prefid,$pages,$expire); + }else{ + $pages=1; + Cache::set($prefid,$pages,$expire); + } + if($pages > $pagesSum) Cache::set($prefid,0,$expire); + self::beginTrans(); + try{ + $res=true; + $orderList = self::where($UnPaidwhere)->field(['add_time','pink_id','order_id','seckill_id','bargain_id','combination_id','status','cart_id','use_integral', + 'refund_status','uid','unique','back_integral','coupon_id','paid','is_del'])->page($pages,$limit)->select(); + foreach ($orderList as $order){ + if($order['seckill_id']){ + //优先使用单独配置的过期时间 + $order_seckill_time=$systemValue['order_seckill_time'] ? $systemValue['order_seckill_time'] : $systemValue['order_activity_time']; + $res=$res && self::RegressionAll($order_seckill_time,$order); + }else if($order['bargain_id']){ + $order_bargain_time=$systemValue['order_bargain_time'] ? $systemValue['order_bargain_time'] : $systemValue['order_activity_time']; + $res=$res && self::RegressionAll($order_bargain_time,$order); + }else if($order['pink_id'] || $order['combination_id']){ + $order_pink_time=$systemValue['order_pink_time'] ? $systemValue['order_pink_time'] : $systemValue['order_activity_time']; + $res=$res && self::RegressionAll($order_pink_time,$order); + }else{ + $res=$res && self::RegressionAll($systemValue['order_cancel_time'],$order); + } + } + if($res) self::commitTrans(); + }catch (PDOException $e){ + self::rollbackTrans(); + ApiLogs::writeLog(['file'=>$e->getFile(),'line'=>$e->getLine(),'message'=>$e->getMessage()],'s'); + }catch (\think\Exception $e){ + self::rollbackTrans(); + ApiLogs::recodeErrorLog($e); + } + + } + + /* + * 未支付订单超过预设时间回退所有,如果不设置未支付过期时间,将不取消订单 + * @param int $time 预设时间 + * @param array $order 订单详情 + * @return boolean + * */ + protected static function RegressionAll($time,$order) + { + if($time==0) return true; + if(($order['add_time']+bcmul($time,3600,0)) < time()){ + $res1=self::RegressionStock($order); + $res2=self::RegressionIntegral($order); + $res3=self::RegressionCoupon($order); + $res = $res1 && $res2 && $res3; + if($res) $res = false !== self::where(['order_id'=>$order['order_id']])->update(['is_del'=>1,'mark'=>'订单未支付已超过系统预设时间']); + return $res; + }else + return true; + } + + /* + * 格式化数据 + * @param $array 原本数据键 + * @param $array 需要格式化的数据 + * @param int $default 默认值 + * @return array + * */ + protected static function setValeTime(array $array,$value,$default=0) + { + foreach ($array as $item) { + if(!isset($value[$item])) + $value[$item]=$default; + else if(is_string($value[$item])) + $value[$item]=(float)$value[$item]; + } + return $value; + } } \ No newline at end of file diff --git a/application/ebapi/model/store/StorePink.php b/application/ebapi/model/store/StorePink.php index 7796a8bd..f4f9ef02 100644 --- a/application/ebapi/model/store/StorePink.php +++ b/application/ebapi/model/store/StorePink.php @@ -356,7 +356,7 @@ class StorePink extends ModelBasic 'keyword1'=>StoreCombination::where('id',$pink['cid'])->value('title'), 'keyword2'=>User::where('uid',self::where('id',$pink['k_id'])->value('uid'))->value('nickname'), 'keyword3'=>date('Y-m-d H:i:s',$pink['add_time']), - 'keyword3'=>$pink['total_price'], + 'keyword4'=>$pink['total_price'], ],'','/pages/order_details/index?order_id='.$pink['order_id']); //处理拼团完成 list($pinkAll,$pinkT,$count,$idAll,$uidAll)=self::getPinkMemberAndPinkK($pink); @@ -394,7 +394,7 @@ class StorePink extends ModelBasic 'keyword2'=>date('Y-m-d H:i:s',$pink['stop_time']), 'keyword3'=>StoreCombination::where('id',$pink['cid'])->value('title'), 'keyword4'=>$pink['order_id'], - 'keyword4'=>$pink['total_price'], + 'keyword5'=>$pink['total_price'], ],'','/pages/order_details/index?order_id='.$pink['order_id']); if($res) return true; else return false; diff --git a/application/ebapi/model/store/StoreProduct.php b/application/ebapi/model/store/StoreProduct.php index 9855681d..088f2fa1 100644 --- a/application/ebapi/model/store/StoreProduct.php +++ b/application/ebapi/model/store/StoreProduct.php @@ -20,7 +20,16 @@ class StoreProduct extends ModelBasic protected function getSliderImageAttr($value) { - return json_decode($value,true)?:[]; + $sliderImage=json_decode($value,true)?:[]; + foreach ($sliderImage as &$item){ + $item=str_replace('\\','/',$item); + } + return $sliderImage; + } + + protected function getImageAttr($value) + { + return str_replace('\\','/',$value); } public static function getValidProduct($productId,$field = 'add_time,browse,cate_id,code_path,cost,description,ficti,give_integral,id,image,is_bargain,is_benefit,is_best,is_del,is_hot,is_new,is_postage,is_seckill,is_show,keyword,mer_id,mer_use,ot_price,postage,price,sales,slider_image,sort,stock,store_info,store_name,unit_name,vip_price,IFNULL(sales,0) + IFNULL(ficti,0) as fsales') @@ -79,11 +88,30 @@ class StoreProduct extends ModelBasic * @param string $value * @return array * */ - public static function getSearchStorePage($keyword,$uid) + public static function getSearchStorePage($keyword,$page,$limit,$uid,$cutApart=[' ',',','-']) { $model = self::validWhere(); - if(strlen(trim($keyword))) $model = $model->where('store_name|keyword','LIKE',"%$keyword%"); - $list = $model->field('id,store_name,cate_id,image,IFNULL(sales,0) + IFNULL(ficti,0) as sales,price,stock')->select(); + $keyword = trim($keyword); + if(strlen($keyword)) { + $cut = false; + foreach ($cutApart as $val){ + if(strstr($keyword,$val) !== false){ + $cut = $val; + break; + } + } + if($cut !== false){ + $keywordArray = explode($cut,$keyword); + $sql = []; + foreach ($keywordArray as $item){ + $sql[] = '(`store_name` LIKE "%'.$item.'%" OR `keyword` LIKE "%'.$item.'%")'; + } + $model = $model->where(implode(' OR ',$sql)); + }else{ + $model = $model->where('store_name|keyword','LIKE',"%$keyword%"); + } + } + $list = $model->field('id,store_name,cate_id,image,ficti as sales,price,stock')->page($page,$limit)->select(); return self::setLevelPrice($list,$uid); } /** @@ -97,7 +125,10 @@ class StoreProduct extends ModelBasic $model = self::where('is_new',1)->where('is_del',0)->where('mer_id',0) ->where('stock','>',0)->where('is_show',1)->field($field) ->order('sort DESC, id DESC'); - if($limit) $model->limit($limit); + if($limit) + $model->limit($limit); + else + return []; $list=$model->select(); $list=count($list) ? $list->toArray() : []; return self::setLevelPrice($list,$uid); @@ -141,10 +172,14 @@ class StoreProduct extends ModelBasic */ public static function getBestProduct($field = '*',$limit = 0,$uid=0) { + $model = self::where('is_best',1)->where('is_del',0)->where('mer_id',0) ->where('stock','>',0)->where('is_show',1)->field($field) ->order('sort DESC, id DESC'); - if($limit) $model->limit($limit); + if($limit) + $model->limit($limit); + else + return []; return self::setLevelPrice($model->select(),$uid); } @@ -157,6 +192,10 @@ class StoreProduct extends ModelBasic public static function setLevelPrice($list,$uid,$isSingle=false) { if(is_object($list)) $list=count($list) ? $list->toArray() : []; + if(!SystemConfigService::get('vip_open')){ + if(is_array($list)) return $list; + return $isSingle ? $list : 0; + } $levelId=UserLevel::getUserLevel($uid); if($levelId){ $discount=UserLevel::getUserLevelInfo($levelId,'discount'); @@ -246,11 +285,18 @@ class StoreProduct extends ModelBasic * */ public static function incProductStock($num,$productId,$unique = '') { + $product=self::where('id',$productId)->field(['sales','stock'])->find(); + if(!$product) return true; + if($product->sales > 0) $product->sales=bcsub($product->sales,$num,0); + if($product->sales < 0) $product->sales=0; if($unique){ $res = false !== StoreProductAttrValuemodel::incProductAttrStock($productId,$unique,$num); - $res = $res && self::where('id',$productId)->setDec('sales',$num); + //没有修改销量则直接返回 + if($product->sales==0) return true; + $res = $res && $product->save(); }else{ - $res = false !== self::where('id',$productId)->inc('stock',$num)->dec('sales',$num)->update(); + $product->stock=bcadd($product->stock,$num,0); + $res = false !== $product->save(); } return $res; } @@ -268,7 +314,7 @@ class StoreProduct extends ModelBasic if($value['cost'] > $value['price']) $maxPrice=0; else - $maxPrice=bcmul($store_brokerage_ratio,bcsub($value['price'],$value['cost']),0); + $maxPrice=bcmul($store_brokerage_ratio,bcsub($value['price'],$value['cost'],0),0); unset($value); }else $maxPrice=0; @@ -277,16 +323,20 @@ class StoreProduct extends ModelBasic if($value['cost'] > $value['price']) $minPrice=0; else - $minPrice=bcmul($store_brokerage_ratio,bcsub($value['price'],$value['cost']),0); + $minPrice=bcmul($store_brokerage_ratio,bcsub($value['price'],$value['cost'],0),0); unset($value); }else $minPrice=0; if($minPrice==0 && $maxPrice==0) return 0; + else if($minPrice == 0 && $maxPrice) + return $maxPrice; + else if($maxPrice == 0 && $minPrice) + return $minPrice; else return $minPrice.'~'.$maxPrice; }else{ if($storeInfo['cost'] < $storeInfo['price']) - return bcmul($store_brokerage_ratio,bcsub($storeInfo['price'],$storeInfo['cost']),0); + return bcmul($store_brokerage_ratio,bcsub($storeInfo['price'],$storeInfo['cost'],2),2); else return 0; } diff --git a/application/ebapi/model/store/StoreSeckill.php b/application/ebapi/model/store/StoreSeckill.php index a304b8a9..1b8e147c 100644 --- a/application/ebapi/model/store/StoreSeckill.php +++ b/application/ebapi/model/store/StoreSeckill.php @@ -141,7 +141,11 @@ class StoreSeckill extends ModelBasic * @return bool */ public static function incSeckillStock($num = 0,$seckillId = 0){ - $res = false !== self::where('id',$seckillId)->inc('stock',$num)->dec('sales',$num)->update(); - return $res; + $seckill=self::where('id',$seckillId)->field(['stock','sales'])->find(); + if(!$seckill) return true; + if($seckill->sales > 0) $seckill->sales=bcsub($seckill->sales,$num,0); + if($seckill->sales < 0) $seckill->sales=0; + $seckill->stock=bcadd($seckill->stock,$num,0); + return $seckill->save(); } } \ No newline at end of file diff --git a/application/ebapi/model/user/User.php b/application/ebapi/model/user/User.php index 6bc54042..9061bbd7 100644 --- a/application/ebapi/model/user/User.php +++ b/application/ebapi/model/user/User.php @@ -26,8 +26,8 @@ class User extends ModelBasic public static function updateWechatUser($wechatUser,$uid) { - $userinfo=self::where('uid',$uid)->find(); - if($userinfo->spread_uid){ + $userInfo = self::where('uid',$uid)->find(); + if($userInfo->spread_uid){ return self::edit([ 'nickname'=>$wechatUser['nickname']?:'', 'avatar'=>$wechatUser['headimgurl']?:'', @@ -36,16 +36,31 @@ class User extends ModelBasic $data=[ 'nickname' => $wechatUser['nickname'] ?: '', 'avatar' => $wechatUser['headimgurl'] ?: '', - 'is_promoter' =>$userinfo->is_promoter, + 'is_promoter' =>$userInfo->is_promoter, 'spread_uid' => 0, 'spread_time' =>0, 'last_time' => time(), 'last_ip' => Request::instance()->ip(), ]; - if(isset($wechatUser['code']) && !$userinfo->is_promoter && $wechatUser['code']){ - $data['is_promoter']=1; - $data['spread_uid']=$wechatUser['code']; - $data['spread_time']=time(); + //TODO 获取后台分销类型 + $storeBrokerageStatus = SystemConfigService::get('store_brokerage_statu'); + $storeBrokerageStatus = $storeBrokerageStatus ? $storeBrokerageStatus : 1; + if(isset($wechatUser['code']) && $wechatUser['code']){ + if($storeBrokerageStatus == 1){ + $spreadCount = self::where('uid',$wechatUser['code'])->count(); + if($spreadCount){ + $spreadInfo = self::where('uid',$wechatUser['code'])->find(); + if($spreadInfo->is_promoter){ + //TODO 只有扫码才可以获得推广权限 +// if(isset($wechatUser['isPromoter'])) $data['is_promoter'] = $wechatUser['isPromoter'] ? 1 : 0; + } + } + } + $spreadInfo = self::where('uid',$wechatUser['code'])->find(); + if($spreadInfo->spread_uid != $uid && $wechatUser['code'] != $uid){ + $data['spread_uid'] = $wechatUser['code']; + $data['spread_time'] = time(); + } } return self::edit($data, $uid, 'uid'); } @@ -71,7 +86,7 @@ class User extends ModelBasic 'nickname'=>$routineUser['nickname']?:'', 'avatar'=>$routineUser['headimgurl']?:'', 'spread_uid'=>$spread_uid, - 'is_promoter'=>$spread_uid || $storeBrokerageStatu != 1 ? 1: 0, +// 'is_promoter'=>$spread_uid || $storeBrokerageStatu != 1 ? 1: 0, 'spread_time'=>$spread_uid ? time() : 0, 'uid'=>$routineUser['uid'], 'add_time'=>$routineUser['add_time'], @@ -131,63 +146,120 @@ class User extends ModelBasic /** - * 小程序用户一级分销 + * TODO 一级返佣 * @param $orderInfo * @return bool + * @throws \think\Exception + * @throws \think\db\exception\DataNotFoundException + * @throws \think\db\exception\ModelNotFoundException + * @throws \think\exception\DbException */ public static function backOrderBrokerage($orderInfo) { - $userInfo = User::getUserInfo($orderInfo['uid']); - if(!$userInfo || !$userInfo['spread_uid']) return true; - $storeBrokerageStatu = SystemConfigService::get('store_brokerage_statu') ? : 1;//获取后台分销类型 - if($storeBrokerageStatu == 1){ - if(!User::be(['uid'=>$userInfo['spread_uid'],'is_promoter'=>1])) return true; - } - $brokerageRatio = (SystemConfigService::get('store_brokerage_ratio') ?: 0)/100; - if($brokerageRatio <= 0) return true; - $cost = isset($orderInfo['cost']) ? $orderInfo['cost'] : 0;//成本价 - if($cost > $orderInfo['pay_price']) return true;//成本价大于支付价格时直接返回 - //支付金额减去邮费 + //TODO 如果时营销产品不返佣金 + if(isset($orderInfo['combination_id']) && $orderInfo['combination_id']) return true; + if(isset($orderInfo['seckill_id']) && $orderInfo['seckill_id']) return true; + if(isset($orderInfo['bargain_id']) && $orderInfo['bargain_id']) return true; + //TODO 支付金额减掉邮费 $orderInfo['pay_price'] = bcsub($orderInfo['pay_price'],$orderInfo['pay_postage'],2); - $brokeragePrice = bcmul(bcsub($orderInfo['pay_price'],$cost,2),$brokerageRatio,2); + //TODO 获取购买商品的用户 + $userInfo = User::getUserInfo($orderInfo['uid']); + //TODO 当前用户不存在 或者 没有上级 直接返回 + if(!$userInfo || !$userInfo['spread_uid']) return true; + //TODO 获取后台分销类型 1 指定分销 2 人人分销 + $storeBrokerageStatus = SystemConfigService::get('store_brokerage_statu'); + $storeBrokerageStatus = $storeBrokerageStatus ? $storeBrokerageStatus : 1; + //TODO 指定分销 判断 上级是否时推广员 如果不是推广员直接跳转二级返佣 + if($storeBrokerageStatus == 1){ + if(!User::be(['uid'=>$userInfo['spread_uid'],'is_promoter'=>1])) return self::backOrderBrokerageTwo($orderInfo); + } + //TODO 获取后台一级返佣比例 + $storeBrokerageRatio = SystemConfigService::get('store_brokerage_ratio'); + //TODO 一级返佣比例 小于等于零时直接返回 不返佣 + if($storeBrokerageRatio <= 0) return true; + //TODO 计算获取一级返佣比例 + $brokerageRatio = bcdiv($storeBrokerageRatio,100,2); + //TODO 成本价 + $cost = isset($orderInfo['cost']) ? $orderInfo['cost'] : 0; + //TODO 成本价大于等于支付价格时直接返回 + if($cost >= $orderInfo['pay_price']) return true; + //TODO 获取订单毛利 + $payPrice = bcsub($orderInfo['pay_price'],$cost,2); + //TODO 返佣金额 = 毛利 / 一级返佣比例 + $brokeragePrice = bcmul($payPrice,$brokerageRatio,2); + //TODO 返佣金额小于等于0 直接返回不返佣金 if($brokeragePrice <= 0) return true; + //TODO 获取上级推广员信息 + $spreadUserInfo = User::getUserInfo($userInfo['spread_uid']); + //TODO 上级推广员返佣之后的金额 + $balance = bcadd($spreadUserInfo['now_money'],$brokeragePrice,2); $mark = $userInfo['nickname'].'成功消费'.floatval($orderInfo['pay_price']).'元,奖励推广佣金'.floatval($brokeragePrice); self::beginTrans(); - $res1 = UserBill::income('获得推广佣金',$userInfo['spread_uid'],'now_money','brokerage',$brokeragePrice,$orderInfo['id'],0,$mark); + //TODO 添加推广记录 + $res1 = UserBill::income('获得推广佣金',$userInfo['spread_uid'],'now_money','brokerage',$brokeragePrice,$orderInfo['id'],$balance,$mark); + //TODO 添加用户余额 $res2 = self::bcInc($userInfo['spread_uid'],'now_money',$brokeragePrice,'uid'); $res = $res1 && $res2; self::checkTrans($res); - if($res) self::backOrderBrokerageTwo($orderInfo); + //TODO 一级返佣成功 跳转二级返佣 + if($res) return self::backOrderBrokerageTwo($orderInfo); return $res; } /** - * 小程序 二级推广 + * TODO 二级推广 * @param $orderInfo * @return bool + * @throws \think\Exception + * @throws \think\db\exception\DataNotFoundException + * @throws \think\db\exception\ModelNotFoundException + * @throws \think\exception\DbException */ public static function backOrderBrokerageTwo($orderInfo){ + //TODO 获取购买商品的用户 $userInfo = User::getUserInfo($orderInfo['uid']); + //TODO 获取上推广人 $userInfoTwo = User::getUserInfo($userInfo['spread_uid']); + //TODO 上推广人不存在 或者 上推广人没有上级 直接返回 if(!$userInfoTwo || !$userInfoTwo['spread_uid']) return true; - $storeBrokerageStatu = SystemConfigService::get('store_brokerage_statu') ? : 1;//获取后台分销类型 - if($storeBrokerageStatu == 1){ + //TODO 获取后台分销类型 1 指定分销 2 人人分销 + $storeBrokerageStatus = SystemConfigService::get('store_brokerage_statu'); + $storeBrokerageStatus = $storeBrokerageStatus ? $storeBrokerageStatus : 1; + //TODO 指定分销 判断 上上级是否时推广员 如果不是推广员直接返回 + if($storeBrokerageStatus == 1){ if(!User::be(['uid'=>$userInfoTwo['spread_uid'],'is_promoter'=>1])) return true; } - $brokerageRatio = (SystemConfigService::get('store_brokerage_two') ?: 0)/100; - if($brokerageRatio <= 0) return true; - $cost = isset($orderInfo['cost']) ? $orderInfo['cost'] : 0;//成本价 - if($cost > $orderInfo['pay_price']) return true;//成本价大于支付价格时直接返回 - $brokeragePrice = bcmul(bcsub($orderInfo['pay_price'],$cost,2),$brokerageRatio,2); + //TODO 获取二级返佣比例 + $storeBrokerageTwo = SystemConfigService::get('store_brokerage_two'); + //TODO 二级返佣比例小于等于0 直接返回 + if($storeBrokerageTwo <= 0) return true; + //TODO 计算获取二级返佣比例 + $brokerageRatio = bcdiv($storeBrokerageTwo,100,2); + //TODO 获取成本价 + $cost = isset($orderInfo['cost']) ? $orderInfo['cost'] : 0; + //TODO 成本价大于等于支付价格时直接返回 + if($cost >= $orderInfo['pay_price']) return true; + //TODO 获取订单毛利 + $payPrice = bcsub($orderInfo['pay_price'],$cost,2); + //TODO 返佣金额 = 毛利 / 二级返佣比例 + $brokeragePrice = bcmul($payPrice,$brokerageRatio,2); + //TODO 返佣金额小于等于0 直接返回不返佣金 if($brokeragePrice <= 0) return true; + //TODO 获取上上级推广员信息 + $spreadUserInfoTwo = User::getUserInfo($userInfoTwo['spread_uid']); + //TODO 获取上上级推广员返佣之后余额 + $balance = bcadd($spreadUserInfoTwo['now_money'],$brokeragePrice,2); $mark = '二级推广人'.$userInfo['nickname'].'成功消费'.floatval($orderInfo['pay_price']).'元,奖励推广佣金'.floatval($brokeragePrice); self::beginTrans(); - $res1 = UserBill::income('获得推广佣金',$userInfoTwo['spread_uid'],'now_money','brokerage',$brokeragePrice,$orderInfo['id'],0,$mark); + //TODO 添加返佣记录 + $res1 = UserBill::income('获得推广佣金',$userInfoTwo['spread_uid'],'now_money','brokerage',$brokeragePrice,$orderInfo['id'],$balance,$mark); + //TODO 添加用户余额 $res2 = self::bcInc($userInfoTwo['spread_uid'],'now_money',$brokeragePrice,'uid'); $res = $res1 && $res2; self::checkTrans($res); return $res; } + /* * 获取推荐人 * @param int $two_uid diff --git a/application/ebapi/model/user/UserExtract.php b/application/ebapi/model/user/UserExtract.php index c9d00db6..21c9f4a8 100644 --- a/application/ebapi/model/user/UserExtract.php +++ b/application/ebapi/model/user/UserExtract.php @@ -51,9 +51,22 @@ class UserExtract extends ModelBasic return self::setErrorInfo('提现方式不存在'); $userInfo = User::get($userInfo['uid']); $brokerage = UserBill::getBrokerage($userInfo['uid']);//获取总佣金 - $extractTotalPrice = self::userExtractTotalPrice($userInfo['uid']);//累计提现 - $extractPrice = (float)bcsub($brokerage,$extractTotalPrice,2);//减去已提现金额 - $extractPrice = (float)bcsub($extractPrice,self::userExtractTotalPrice($userInfo['uid'],0),2);//减去提现申请中的金额 + $recharge = UserBill::getRecharge($userInfo['uid']);//累计充值 + $extractTotalPrice = UserExtract::userExtractTotalPrice($userInfo['uid']);//累计提现 + if($brokerage > $extractTotalPrice) { + $orderYuePrice = StoreOrder::getOrderStatusYueSum($userInfo['uid']);//余额累计消费 + $systemAdd = UserBill::getSystemAdd($userInfo['uid']);//后台添加余额 + $yueCount = bcadd($recharge,$systemAdd,2);// 后台添加余额 + 累计充值 = 非佣金的总金额 + $orderYuePrice = $yueCount > $orderYuePrice ? 0 : bcsub($orderYuePrice,$yueCount,2);// 余额累计消费(使用佣金消费的金额) + $brokerage = bcsub($brokerage,$extractTotalPrice,2);//减去已提现金额 + $extract_price = self::userExtractTotalPrice($userInfo['uid'],0); + $brokerage = $extract_price < $brokerage ? bcsub($brokerage,$extract_price,2) : 0;//减去审核中的提现金额 + $brokerage = $brokerage > $orderYuePrice ? bcsub($brokerage,$orderYuePrice,2) : 0;//减掉余额支付 + }else{ + $brokerage=0; + } + $extractPrice = (float)bcsub($brokerage,$extractTotalPrice,2) > 0 ? + bcsub($brokerage,$extractTotalPrice,2) : 0;//可提现 if($extractPrice < 0) return self::setErrorInfo('提现佣金不足'.$data['money']); if($data['money'] > $extractPrice) return self::setErrorInfo('提现佣金不足'.$data['money']); $balance = bcsub($userInfo['now_money'],$data['money'],2); diff --git a/application/ebapi/model/user/WechatUser.php b/application/ebapi/model/user/WechatUser.php index f1d5c7d1..7c75840c 100644 --- a/application/ebapi/model/user/WechatUser.php +++ b/application/ebapi/model/user/WechatUser.php @@ -73,32 +73,38 @@ class WechatUser extends ModelBasic $routineInfo['user_type'] = 'routine';//用户类型 $page = '';//跳转小程序的页面 $spid = 0;//绑定关系uid + $isCOde=false; //获取是否有扫码进小程序 if($routine['code']){ $info = RoutineQrcode::getRoutineQrcodeFindType($routine['code']); if($info){ $spid = $info['third_id']; $page = $info['page']; + $isCOde=true; }else{ $spid = $routine['spid']; } }else if($routine['spid']) $spid = $routine['spid']; // 判断unionid 存在根据unionid判断 - $routineInfo['code']=$spid; if($routineInfo['unionid'] != '' && self::be(['unionid'=>$routineInfo['unionid']])){ self::edit($routineInfo,$routineInfo['unionid'],'unionid'); $uid = self::where('unionid',$routineInfo['unionid'])->value('uid'); + $routineInfo['code']=$spid; + $routineInfo['isPromoter']=$isCOde; User::updateWechatUser($routineInfo,$uid); }else if(self::be(['routine_openid'=>$routineInfo['routine_openid']])){ //根据小程序openid判断 self::edit($routineInfo,$routineInfo['routine_openid'],'routine_openid'); $uid = self::where('routine_openid',$routineInfo['routine_openid'])->value('uid'); + $routineInfo['code']=$spid; + $routineInfo['isPromoter']=$isCOde; User::updateWechatUser($routineInfo,$uid); }else{ $routineInfo['add_time'] = time();//用户添加时间 $routineInfo = self::set($routineInfo); - if(User::isUserSpread($spid)) { - $res = User::setRoutineUser($routineInfo,$spid); //用户上级 - }else $res = User::setRoutineUser($routineInfo); +// if(User::isUserSpread($spid)) { +// $res = User::setRoutineUser($routineInfo,$spid); //用户上级 +// }else + $res = User::setRoutineUser($routineInfo,$spid); $uid = $res->uid; } $data['page'] = $page; diff --git a/application/version.php b/application/version.php index 32483360..1d5b67fb 100644 --- a/application/version.php +++ b/application/version.php @@ -1,2 +1,2 @@ -version=CRMEB-DTKY v2.6.03 -version_code=131 \ No newline at end of file +version=CRMEB-DT v2.6.13 +version_code=135 \ No newline at end of file diff --git a/application/wap/controller/AuthApi.php b/application/wap/controller/AuthApi.php index a841d481..1ad2aa14 100644 --- a/application/wap/controller/AuthApi.php +++ b/application/wap/controller/AuthApi.php @@ -9,6 +9,7 @@ namespace app\wap\controller; use Api\Express; +use app\core\util\WechatService; use app\wap\model\store\StoreBargain; use app\wap\model\store\StoreBargainUser; use app\wap\model\store\StoreBargainUserHelp; @@ -155,18 +156,29 @@ class AuthApi extends AuthController public function get_user_collect_product($first = 0,$limit = 8) { - $list = StoreProductRelation::where('A.uid',$this->userInfo['uid']) - ->field('B.id pid,B.store_name,B.price,B.ot_price,B.sales,B.image,B.is_del,B.is_show')->alias('A') - ->where('A.type','collect')->where('A.category','product') - ->order('A.add_time DESC')->join('__STORE_PRODUCT__ B','A.product_id = B.id') - ->limit($first,$limit)->select()->toArray(); - foreach ($list as $k=>$product){ + $productList = StoreProductRelation::getProductRelation($this->userInfo['uid'], $first, $limit); + $seckillList = StoreProductRelation::getSeckillRelation($this->userInfo['uid'], $first, $limit); + $sort = []; + $list = []; + foreach ($productList as $key=>&$product){ if($product['pid']){ - $list[$k]['is_fail'] = $product['is_del'] && $product['is_show']; + $product['is_fail'] = $product['is_del'] && $product['is_show']; + $sort[] = $product['add_time']; + array_push($list,$product); }else{ - unset($list[$k]); + unset($productList[$key]); } } + foreach ($seckillList as $key=>&$seckill){ + if($seckill['pid']){ + $seckill['is_fail'] = $seckill['is_del'] && $seckill['is_show']; + $sort[] = $seckill['add_time']; + array_push($list,$seckill); + }else{ + unset($seckillList[$key]); + } + } + array_multisort($sort,SORT_DESC,SORT_NUMERIC,$list); return JsonService::successful($list); } @@ -488,16 +500,18 @@ class AuthApi extends AuthController $keyword = base64_decode(htmlspecialchars($encodedData)); } $model = StoreProduct::validWhere(); - if($cId && $sId){ - $product_ids=\think\Db::name('store_product_cate')->where('cate_id',$sId)->column('product_id'); + if($cId){ + $sids = StoreCategory::pidBySidList($cId); + $sids[] = $cId; + if($sId) $sids[] = $sId; + $sId = implode(',',$sids); + } + if($sId){ + $product_ids = \think\Db::name('store_product_cate')->where('cate_id','IN',$sId)->column('product_id'); if(count($product_ids)) $model=$model->where('id',"in",$product_ids); else $model=$model->where('cate_id',-1); - }elseif($cId){ - $sids = StoreCategory::pidBySidList($cId)?:[]; - $sids[] = $cId; - $model->where('cate_id','IN',$sids); } if(!empty($keyword)) $model->where('keyword|store_name','LIKE',"%$keyword%"); if($news) $model->where('is_new',1); @@ -564,15 +578,29 @@ class AuthApi extends AuthController $now_user = StoreService::field("uid,nickname")->where(array("uid"=>$params["uid"]))->find(); if(!$now_user)$now_user = User::field("uid,nickname")->where(array("uid"=>$params["uid"]))->find(); if($params["to_uid"]) { - $head = '您有新的消息,请注意查收!'; - WechatTemplateService::sendTemplate(WechatUser::uidToOpenid($params["to_uid"]),WechatTemplateService::SERVICE_NOTICE,[ - 'first'=>$head, - 'keyword1'=>$now_user["nickname"], - 'keyword2'=>"客服提醒", - 'keyword3'=> preg_replace('/<img.*? \/>/','[图片]',$value["msn"]), - 'keyword4'=>date('Y-m-d H:i:s',time()), - 'remark'=>'点击立即查看消息' - ],Url::build('service/service_ing',['to_uid'=>$now_user["uid"],'mer_id'=>$params["mer_id"]],true,true)); + $userInfo = WechatUser::where('uid',$params["to_uid"])->field('nickname,subscribe,openid,headimgurl')->find(); + $head = '客服提醒'; + $description = '您有新的消息,请注意查收!'; + $url = Url::build('service/service_ing',['to_uid'=>$now_user["uid"],'mer_id'=>$params["mer_id"]],true,true); + $message = WechatService::newsMessage($head,$description,$url,$userInfo['headimgurl']); + if($userInfo){ + $userInfo = $userInfo->toArray(); + if($userInfo['subscribe'] && $userInfo['openid']){ + try { + WechatService::staffService()->message($message)->to($userInfo['openid'])->send(); + } catch (\Exception $e) { + $errorLog = $userInfo['nickname'].'发送失败'.$e->getMessage(); + } + } + } +// WechatTemplateService::sendTemplate(WechatUser::uidToOpenid($params["to_uid"]),WechatTemplateService::SERVICE_NOTICE,[ +// 'first'=>$head, +// 'keyword1'=>$now_user["nickname"], +// 'keyword2'=>"客服提醒", +// 'keyword3'=> preg_replace('/<img.*? \/>/','[图片]',$value["msn"]), +// 'keyword4'=>date('Y-m-d H:i:s',time()), +// 'remark'=>'点击立即查看消息' +// ],Url::build('service/service_ing',['to_uid'=>$now_user["uid"],'mer_id'=>$params["mer_id"]],true,true)); } } } @@ -683,8 +711,12 @@ class AuthApi extends AuthController ->field('A.*,B.coupon_price,B.use_min_price')->order('B.sort DESC,A.id DESC')->limit($limit)->select()->toArray()?:[]; $list_coupon=[]; foreach ($list as $k=>&$v){ - if(!($v['is_use']=StoreCouponIssueUser::be(['uid'=>$this->userInfo['uid'],'issue_coupon_id'=>$v['id']])) && $v['total_count'] > 0 && $v['remain_count'] >0){ - array_push($list_coupon,$v); + if(!($v['is_use']=StoreCouponIssueUser::be(['uid'=>$this->userInfo['uid'],'issue_coupon_id'=>$v['id']]))){ + if($v['is_permanent'] == 0 && $v['total_count'] > 0 && $v['remain_count'] >0){ + array_push($list_coupon,$v); + }else if($v['is_permanent'] == 1){ + array_push($list_coupon,$v); + } } } return JsonService::successful($list_coupon); diff --git a/application/wap/controller/AuthController.php b/application/wap/controller/AuthController.php index 53ba0c8c..794cd0d8 100644 --- a/application/wap/controller/AuthController.php +++ b/application/wap/controller/AuthController.php @@ -38,7 +38,7 @@ class AuthController extends WapBasic }catch (\Exception $e){ Cookie::set('is_login',0); $url=$this->request->url(true); - return $this->redirect(Url::build('Login/index',['ref'=>base64_encode(htmlspecialchars($url))])); + return $this->redirect(Url::build('Login/index').'?ref='.base64_encode(htmlspecialchars($url))); } $this->userInfo = User::getUserInfo($uid); if(!$this->userInfo || !isset($this->userInfo['uid'])) return $this->failed('读取用户信息失败!'); diff --git a/application/wap/controller/My.php b/application/wap/controller/My.php index b2721b35..c5a4e702 100644 --- a/application/wap/controller/My.php +++ b/application/wap/controller/My.php @@ -66,7 +66,7 @@ class My extends AuthController $signList = UserSign::userSignBillWhere($this->userInfo['uid']) ->field('number,add_time')->order('id DESC') ->limit(30)->select()->toArray(); - $goodsList = StoreProduct::getNewProduct('image,price,sales,store_name,id','0,20')->toArray(); + $goodsList = StoreProduct::getNewProduct('image,price,IFNULL(sales,0) + IFNULL(ficti,0) AS sales,store_name,id','0,20')->toArray(); $this->assign(compact('signed','signCount','signList','goodsList')); return $this->fetch(); } diff --git a/application/wap/controller/PublicApi.php b/application/wap/controller/PublicApi.php index c849ab0b..e726e2c8 100644 --- a/application/wap/controller/PublicApi.php +++ b/application/wap/controller/PublicApi.php @@ -8,6 +8,7 @@ namespace app\wap\controller; +use app\admin\model\system\SystemAttachment; use app\wap\model\store\StoreCombination; use app\admin\model\system\SystemGroup; use app\admin\model\system\SystemGroupData; @@ -17,6 +18,7 @@ use app\wap\model\store\StoreProduct; use app\wap\model\wap\ArticleCategory; use service\FileService; use service\JsonService; +use service\UploadService; use service\UtilService; use think\Cache; @@ -62,7 +64,7 @@ class PublicApi ->where('A.mer_id',0)->where('B.pid',$cate['id']) ->join('__STORE_CATEGORY__ B','B.id = A.cate_id') ->order('A.is_benefit DESC,A.sort DESC,A.add_time DESC') - ->limit($limit)->field('A.id,A.image,A.store_name,A.sales,A.price,A.unit_name')->select()->toArray(); + ->limit($limit)->field('A.id,A.image,A.store_name,IFNULL(A.sales,0) + IFNULL(A.ficti,0) as sales,A.price,A.unit_name')->select()->toArray(); if(count($cate['product'])) $result[] = $cate; } @@ -88,7 +90,7 @@ class PublicApi $StoreProductmodel = $StoreProductmodel->where('is_postage',1); $list = $StoreProductmodel->where('mer_id',0)->order('is_best DESC,sort DESC,add_time DESC') - ->limit($first,$limit)->field('id,image,store_name,sales,price,unit_name')->select()->toArray(); + ->limit($first,$limit)->field('id,image,store_name,IFNULL(sales,0) + IFNULL(ficti,0) as sales,price,unit_name')->select()->toArray(); return JsonService::successful($list); } @@ -96,7 +98,7 @@ class PublicApi public function get_best_product_list($first = 0,$limit = 8) { $list = StoreProduct::validWhere()->where('mer_id',0)->order('is_best DESC,sort DESC,add_time DESC') - ->limit($first,$limit)->field('id,image,store_name,sales,price,unit_name')->select()->toArray(); + ->limit($first,$limit)->field('id,image,store_name,IFNULL(sales,0) + IFNULL(ficti,0) as sales,price,unit_name')->select()->toArray(); return JsonService::successful($list); } @@ -106,7 +108,6 @@ class PublicApi $mediaIds = explode(',',$mediaIds); $temporary = \app\core\util\WechatService::materialTemporaryService(); $pathList = []; - $dir='public'.DS.'uploads'.DS.'wechat'.DS.'media'; foreach ($mediaIds as $mediaId){ if(!$mediaId) continue; try{ @@ -115,12 +116,10 @@ class PublicApi continue; } $name = substr(md5($mediaId),12,20).'.jpg'; - $path = '.'.DS.$dir.DS.$name; - $file=new FileService(); - $res=$file->create_dir($dir); - if(!$res) return JsonService::fail('生成文件保存目录失败!请检查权限!'); - $res = file_put_contents($path,$content); - if($res) $pathList[] = UtilService::pathToUrl($path); + $res = UploadService::imageStream($name,$content,'wechat/media'); + if(!is_array($res)) return JsonService::fail($res); + SystemAttachment::attachmentAdd($res['name'],$res['size'],$res['type'],$res['dir'],$res['thumb_path'],1,$res['image_type'],$res['time']); + $pathList[] = UtilService::pathToUrl($res['dir']); } return JsonService::successful($pathList); } diff --git a/application/wap/controller/Store.php b/application/wap/controller/Store.php index 39c7aa6e..7d51c379 100644 --- a/application/wap/controller/Store.php +++ b/application/wap/controller/Store.php @@ -93,6 +93,10 @@ class Store extends AuthController $sort[] = $v['is_get'] = StoreCouponIssueUser::be(['uid'=>$this->userInfo['uid'],'issue_coupon_id'=>$v['id']]) ? 1:0; array_push($lists,$v); } + else if((int)$v['is_permanent']==1){ + $sort[] = $v['is_get'] = StoreCouponIssueUser::be(['uid'=>$this->userInfo['uid'],'issue_coupon_id'=>$v['id']]) ? 1:0; + array_push($lists,$v); + } } array_multisort($sort,SORT_ASC,SORT_NUMERIC,$lists); $this->assign(compact('lists')); @@ -218,7 +222,7 @@ class Store extends AuthController 'user'=>$user, 'site_name'=>$site_name, 'site_logo'=>$site_logo, - 'wechat_qrcode'=>$wechat_qrcode, + 'wechat_qrcode'=>str_replace('\\','/',$wechat_qrcode), 'pindAll'=>$pindAll, 'storeInfo'=>$combinationOne, 'reply'=>StoreProductReply::getRecProductReply($combinationOne['product_id']), @@ -288,11 +292,11 @@ class Store extends AuthController public function seckill_detail($id = ''){ if(!$id || !($storeInfo = StoreSeckill::getValidProduct($id))) return $this->failed('商品不存在或已下架!'); - $storeInfo['userLike'] = StoreProductRelation::isProductRelation($storeInfo['product_id'],$this->userInfo['uid'],'like','product_seckill'); + $storeInfo['userLike'] = StoreProductRelation::isProductRelation($storeInfo['id'],$this->userInfo['uid'],'like','product_seckill'); - $storeInfo['like_num'] = StoreProductRelation::productRelationNum($storeInfo['product_id'],'like','product_seckill'); + $storeInfo['like_num'] = StoreProductRelation::productRelationNum($storeInfo['id'],'like','product_seckill'); - $storeInfo['userCollect'] = StoreProductRelation::isProductRelation($storeInfo['product_id'],$this->userInfo['uid'],'collect','product_seckill'); + $storeInfo['userCollect'] = StoreProductRelation::isProductRelation($storeInfo['id'],$this->userInfo['uid'],'collect','product_seckill'); list($productAttr,$productValue) = StoreProductAttr::getProductAttrDetail($storeInfo['product_id']); $wechatInfo = WechatUser::get($this->userInfo['uid']); setView($this->userInfo['uid'],$id,$storeInfo['product_id'],'viwe','seckill'); diff --git a/application/wap/controller/WapBasic.php b/application/wap/controller/WapBasic.php index 6253018e..3277b701 100644 --- a/application/wap/controller/WapBasic.php +++ b/application/wap/controller/WapBasic.php @@ -33,7 +33,7 @@ class WapBasic extends Controller && ($userInfo = User::getUserInfo(WechatUser::openidToUid($this->oauth()))) && !$userInfo['spread_uid'] && $userInfo['uid'] != $spreadUid - ) User::edit(['spread_uid'=>$spreadUid],$userInfo['uid'],'uid'); + ) User::edit(['spread_uid'=>$spreadUid,'spread_time'=>time()],$userInfo['uid'],'uid'); HookService::listen('wap_init',null,null,false,WapBehavior::class); } diff --git a/application/wap/model/store/StoreCouponIssue.php b/application/wap/model/store/StoreCouponIssue.php index fed9e52a..5848bd3c 100644 --- a/application/wap/model/store/StoreCouponIssue.php +++ b/application/wap/model/store/StoreCouponIssue.php @@ -51,7 +51,8 @@ class StoreCouponIssue extends ModelBasic $res1 = false != StoreCouponUser::addUserCoupon($uid,$issueCouponInfo['cid']); $res2 = false != StoreCouponIssueUser::addUserIssue($uid,$id); $res3 = false; - if($issueCouponInfo['total_count'] > 0){ + if($issueCouponInfo['is_permanent'] == 1) $res3 = true; + else if($issueCouponInfo['total_count'] > 0){ $issueCouponInfo['remain_count'] -= 1; $res3 = false !== $issueCouponInfo->save(); } diff --git a/application/wap/model/store/StoreOrder.php b/application/wap/model/store/StoreOrder.php index 8442be4f..33b53137 100644 --- a/application/wap/model/store/StoreOrder.php +++ b/application/wap/model/store/StoreOrder.php @@ -590,10 +590,17 @@ class StoreOrder extends ModelBasic $status['_class'] = 'state-nfh'; } }else if($order['status'] == 1){ - $status['_type'] = 2; - $status['_title'] = '待收货'; - $status['_msg'] = date('m月d日H时i分',StoreOrderStatus::getTime($order['id'],'delivery_goods')).'服务商已发货'; - $status['_class'] = 'state-ysh'; + if($order['delivery_type'] == 'send'){//TODO 送货 + $status['_type'] = 2; + $status['_title'] = '待收货'; + $status['_msg'] = date('m月d日H时i分',StoreOrderStatus::getTime($order['id'],'delivery')).'服务商已送货'; + $status['_class'] = 'state-ysh'; + }else{//TODO 发货 + $status['_type'] = 2; + $status['_title'] = '待收货'; + $status['_msg'] = date('m月d日H时i分',StoreOrderStatus::getTime($order['id'],'delivery_goods')).'服务商已发货'; + $status['_class'] = 'state-ysh'; + } }else if($order['status'] == 2){ $status['_type'] = 3; $status['_title'] = '待评价'; diff --git a/application/wap/model/store/StoreProductRelation.php b/application/wap/model/store/StoreProductRelation.php index d1b4cfcd..d56ea21f 100644 --- a/application/wap/model/store/StoreProductRelation.php +++ b/application/wap/model/store/StoreProductRelation.php @@ -60,4 +60,50 @@ class StoreProductRelation extends ModelBasic return self::be(compact('product_id','uid','type','category')); } + /** + * TODO 获取普通产品收藏 + * @param $uid + * @param int $first + * @param int $limit + * @return array + */ + public static function getProductRelation($uid, $first = 0,$limit = 8) + { + $model = new self; + $model = $model->alias('A'); + $model = $model->join('StoreProduct B','A.product_id = B.id'); + $model = $model->where('A.uid',$uid); + $model = $model->field('B.id pid,B.store_name,B.price,B.ot_price,B.ficti sales,B.image,B.is_del,B.is_show,A.category,A.add_time'); + $model = $model->where('A.type','collect'); + $model = $model->where('A.category','product'); + $model = $model->order('A.add_time DESC'); + $model = $model->limit($first,$limit); + $list = $model->select(); + if($list) return $list->toArray(); + else return []; + } + + /** + * TODO 获取秒杀产品收藏 + * @param $uid + * @param int $first + * @param int $limit + * @return array + */ + public static function getSeckillRelation($uid, $first = 0,$limit = 8) + { + $model = new self; + $model = $model->alias('A'); + $model = $model->join('StoreSeckill B','A.product_id = B.id'); + $model = $model->where('A.uid',$uid); + $model = $model->field('B.id pid,B.title store_name,B.price,B.ot_price,B.sales,B.image,B.is_del,B.is_show,A.category,A.add_time'); + $model = $model->where('A.type','collect'); + $model = $model->where('A.category','product_seckill'); + $model = $model->order('A.add_time DESC'); + $model = $model->limit($first,$limit); + $list = $model->select(); + if($list) return $list->toArray(); + else return []; + } + } \ No newline at end of file diff --git a/application/wap/model/user/User.php b/application/wap/model/user/User.php index b10a0b9c..92319495 100644 --- a/application/wap/model/user/User.php +++ b/application/wap/model/user/User.php @@ -66,7 +66,20 @@ class User extends ModelBasic public static function setSpreadUid($uid,$spreadUid) { - return self::where('uid',$uid)->update(['spread_uid'=>$spreadUid]); + //TODO 获取后台分销类型 + $storeBrokerageStatus = SystemConfigService::get('store_brokerage_statu'); + $storeBrokerageStatus = $storeBrokerageStatus ? $storeBrokerageStatus : 1; + if($storeBrokerageStatus == 1){ + $spreadCount = self::where('uid',$spreadUid)->count(); + if($spreadCount){ + $spreadInfo = self::where('uid',$spreadUid)->find(); + if($spreadInfo->is_promoter){ + //TODO 只有扫码才可以获得推广权限 + if(isset($wechatUser['isPromoter'])) $data['is_promoter'] = 1; + } + } + } + return self::where('uid',$uid)->update(['spread_uid'=>$spreadUid,'spread_time'=>time()]); } @@ -91,61 +104,107 @@ class User extends ModelBasic return $uid; } - /** //TODO 一级返佣 + /** + * TODO 一级返佣 * @param $orderInfo * @return bool */ public static function backOrderBrokerage($orderInfo) { - $userInfo = User::getUserInfo($orderInfo['uid']); - if(!$userInfo || !$userInfo['spread_uid']) return true; - $storeBrokerageStatu = SystemConfigService::get('store_brokerage_statu') ? : 1;//获取后台分销类型 - if($storeBrokerageStatu == 1){ - if(!User::be(['uid'=>$userInfo['spread_uid'],'is_promoter'=>1])) return true; - } - $brokerageRatio = (SystemConfigService::get('store_brokerage_ratio') ?: 0)/100; - if($brokerageRatio <= 0) return true; - $cost = isset($orderInfo['cost']) ? $orderInfo['cost'] : 0;//成本价 - if($cost > $orderInfo['pay_price']) return true;//成本价大于支付价格时直接返回 - $brokeragePrice = bcmul(bcsub($orderInfo['pay_price'],$cost,2),$brokerageRatio,2); - //返佣之后余额 + //TODO 如果时营销产品不返佣金 + if(isset($orderInfo['combination_id']) && $orderInfo['combination_id']) return true; + if(isset($orderInfo['seckill_id']) && $orderInfo['seckill_id']) return true; + if(isset($orderInfo['bargain_id']) && $orderInfo['bargain_id']) return true; + //TODO 支付金额减掉邮费 $orderInfo['pay_price'] = bcsub($orderInfo['pay_price'],$orderInfo['pay_postage'],2); - $balance = bcsub($userInfo['now_money'],$brokeragePrice,2); + //TODO 获取购买商品的用户 + $userInfo = User::getUserInfo($orderInfo['uid']); + //TODO 当前用户不存在 或者 没有上级 直接返回 + if(!$userInfo || !$userInfo['spread_uid']) return true; + //TODO 获取后台分销类型 1 指定分销 2 人人分销 + $storeBrokerageStatus = SystemConfigService::get('store_brokerage_statu'); + $storeBrokerageStatus = $storeBrokerageStatus ? $storeBrokerageStatus : 1; + //TODO 指定分销 判断 上级是否时推广员 如果不是推广员直接跳转二级返佣 + if($storeBrokerageStatus == 1){ + if(!User::be(['uid'=>$userInfo['spread_uid'],'is_promoter'=>1])) return self::backOrderBrokerageTwo($orderInfo); + } + //TODO 获取后台一级返佣比例 + $storeBrokerageRatio = SystemConfigService::get('store_brokerage_ratio'); + //TODO 一级返佣比例 小于等于零时直接返回 不返佣 + if($storeBrokerageRatio <= 0) return true; + //TODO 计算获取一级返佣比例 + $brokerageRatio = bcdiv($storeBrokerageRatio,100,2); + //TODO 成本价 + $cost = isset($orderInfo['cost']) ? $orderInfo['cost'] : 0; + //TODO 成本价大于等于支付价格时直接返回 + if($cost >= $orderInfo['pay_price']) return true; + //TODO 获取订单毛利 + $payPrice = bcsub($orderInfo['pay_price'],$cost,2); + //TODO 返佣金额 = 毛利 / 一级返佣比例 + $brokeragePrice = bcmul($payPrice,$brokerageRatio,2); + //TODO 返佣金额小于等于0 直接返回不返佣金 if($brokeragePrice <= 0) return true; + //TODO 获取上级推广员信息 + $spreadUserInfo = User::getUserInfo($userInfo['spread_uid']); + //TODO 上级推广员返佣之后的金额 + $balance = bcadd($spreadUserInfo['now_money'],$brokeragePrice,2); $mark = $userInfo['nickname'].'成功消费'.floatval($orderInfo['pay_price']).'元,奖励推广佣金'.floatval($brokeragePrice); self::beginTrans(); + //TODO 添加推广记录 $res1 = UserBill::income('获得推广佣金',$userInfo['spread_uid'],'now_money','brokerage',$brokeragePrice,$orderInfo['id'],$balance,$mark); + //TODO 添加用户余额 $res2 = self::bcInc($userInfo['spread_uid'],'now_money',$brokeragePrice,'uid'); $res = $res1 && $res2; self::checkTrans($res); - if($res) self::backOrderBrokerageTwo($orderInfo); + //TODO 一级返佣成功 跳转二级返佣 + if($res) return self::backOrderBrokerageTwo($orderInfo); return $res; } /** - * //TODO 二级推广 + * TODO 二级推广 * @param $orderInfo * @return bool */ public static function backOrderBrokerageTwo($orderInfo){ + //TODO 获取购买商品的用户 $userInfo = User::getUserInfo($orderInfo['uid']); + //TODO 获取上推广人 $userInfoTwo = User::getUserInfo($userInfo['spread_uid']); + //TODO 上推广人不存在 或者 上推广人没有上级 直接返回 if(!$userInfoTwo || !$userInfoTwo['spread_uid']) return true; - $storeBrokerageStatu = SystemConfigService::get('store_brokerage_statu') ? : 1;//获取后台分销类型 - if($storeBrokerageStatu == 1){ + //TODO 获取后台分销类型 1 指定分销 2 人人分销 + $storeBrokerageStatus = SystemConfigService::get('store_brokerage_statu'); + $storeBrokerageStatus = $storeBrokerageStatus ? $storeBrokerageStatus : 1; + //TODO 指定分销 判断 上上级是否时推广员 如果不是推广员直接返回 + if($storeBrokerageStatus == 1){ if(!User::be(['uid'=>$userInfoTwo['spread_uid'],'is_promoter'=>1])) return true; } - $brokerageRatio = (SystemConfigService::get('store_brokerage_two') ?: 0)/100; - if($brokerageRatio <= 0) return true; - $cost = isset($orderInfo['cost']) ? $orderInfo['cost'] : 0;//成本价 - if($cost > $orderInfo['pay_price']) return true;//成本价大于支付价格时直接返回 - $brokeragePrice = bcmul(bcsub($orderInfo['pay_price'],$cost,2),$brokerageRatio,2); - //返佣之后余额 - $balance = bcsub($userInfo['now_money'],$brokeragePrice,2); + //TODO 获取二级返佣比例 + $storeBrokerageTwo = SystemConfigService::get('store_brokerage_two'); + //TODO 二级返佣比例小于等于0 直接返回 + if($storeBrokerageTwo <= 0) return true; + //TODO 计算获取二级返佣比例 + $brokerageRatio = bcdiv($storeBrokerageTwo,100,2); + //TODO 获取成本价 + $cost = isset($orderInfo['cost']) ? $orderInfo['cost'] : 0; + //TODO 成本价大于等于支付价格时直接返回 + if($cost >= $orderInfo['pay_price']) return true; + //TODO 获取订单毛利 + $payPrice = bcsub($orderInfo['pay_price'],$cost,2); + //TODO 返佣金额 = 毛利 / 二级返佣比例 + $brokeragePrice = bcmul($payPrice,$brokerageRatio,2); + //TODO 返佣金额小于等于0 直接返回不返佣金 if($brokeragePrice <= 0) return true; + //TODO 获取上上级推广员信息 + $spreadUserInfoTwo = User::getUserInfo($userInfoTwo['spread_uid']); + //TODO 获取上上级推广员返佣之后余额 + $balance = bcadd($spreadUserInfoTwo['now_money'],$brokeragePrice,2); $mark = '二级推广人'.$userInfo['nickname'].'成功消费'.floatval($orderInfo['pay_price']).'元,奖励推广佣金'.floatval($brokeragePrice); self::beginTrans(); + //TODO 添加返佣记录 $res1 = UserBill::income('获得推广佣金',$userInfoTwo['spread_uid'],'now_money','brokerage',$brokeragePrice,$orderInfo['id'],$balance,$mark); + //TODO 添加用户余额 $res2 = self::bcInc($userInfoTwo['spread_uid'],'now_money',$brokeragePrice,'uid'); $res = $res1 && $res2; self::checkTrans($res); diff --git a/application/wap/model/user/UserExtract.php b/application/wap/model/user/UserExtract.php index 44f49c27..049605a7 100644 --- a/application/wap/model/user/UserExtract.php +++ b/application/wap/model/user/UserExtract.php @@ -72,6 +72,7 @@ class UserExtract extends ModelBasic $res2 = User::edit(['now_money'=>$balance],$userInfo['uid'],'uid'); $res3 = UserBill::expend('余额提现',$userInfo['uid'],'now_money','extract',$data['extract_price'],$res1['id'],$balance,$mark); $res = $res2 && $res3; + self::checkTrans($res); WechatTemplateService::sendTemplate( WechatUser::uidToOpenid($userInfo['uid']), WechatTemplateService::USER_BALANCE_CHANGE, diff --git a/application/wap/view/first/my/collect.html b/application/wap/view/first/my/collect.html index 9aacb8e5..2038eeb1 100644 --- a/application/wap/view/first/my/collect.html +++ b/application/wap/view/first/my/collect.html @@ -10,7 +10,9 @@ <a :href="productUrl(item)"> <div class="picture"><img :src="item.image" /></div> <div class="info-content flex"> - <p class="pro-tit" v-text="item.store_name"></p> + <p class="pro-tit" v-text="item.store_name + '[秒杀产品]'" v-if="item.category == 'product_seckill'"></p> + <p class="pro-tit" v-text="item.store_name + '[普通产品]'" v-else-if="item.category == 'product'"></p> + <p class="pro-tit" v-text="item.store_name" v-else></p> <p class="price"> <span v-text="'¥'+item.price"></span> <span class="old-price">¥{{item.ot_price}}</span> @@ -51,7 +53,13 @@ }); }, productUrl:function(product){ - return product.is_fail == true ? 'javascript:void(0);' : $h.U({c:'store',a:'detail',p:{id:product.pid}}); + if(product.category == 'product_seckill'){ + return product.is_fail == true ? 'javascript:void(0);' : $h.U({c:'store',a:'seckill_detail',p:{id:product.pid}}); + }else if(product.category == 'product'){ + return product.is_fail == true ? 'javascript:void(0);' : $h.U({c:'store',a:'detail',p:{id:product.pid}}); + }else{ + return 'javascript:void(0);'; + } }, getList:function(){ if(this.loading) return ; diff --git a/application/wap/view/first/public/container.html b/application/wap/view/first/public/container.html index b1f9752c..bcbac340 100644 --- a/application/wap/view/first/public/container.html +++ b/application/wap/view/first/public/container.html @@ -6,16 +6,20 @@ {include file="public/style" /} {block name="head_top"}{/block} <script type="text/javascript" src="{__PLUG_PATH}wxApi.js"></script> + <?php + $wechat_share_img = app\core\util\SystemConfigService::get('wechat_share_img'); + $wechat_share_img = str_replace('\\','/',$wechat_share_img); + ?> <script> $jssdk = function(){return <?=\app\core\util\WechatService::jsSdk()?>;} window.wechat_share_title="<?=\app\core\util\SystemConfigService::get('wechat_share_title')?>"; window.wechat_share_synopsis="<?=\app\core\util\SystemConfigService::get('wechat_share_synopsis')?>"; - window.wechat_share_img="<?=\app\core\util\SystemConfigService::get('wechat_share_img')?>"; + window.wechat_share_img="<?=$wechat_share_img?>"; mapleWx($jssdk(), function () { this.onMenuShareAll({ title: wechat_share_title || $('title').text(), desc: wechat_share_synopsis || $('title').text(), - imgUrl: location.origin +wechat_share_img, + imgUrl: wechat_share_img.indexOf(location.origin) === -1 ? location.origin + wechat_share_img : wechat_share_img, link:location.href, }); }); diff --git a/application/wap/view/first/store/category.html b/application/wap/view/first/store/category.html index e11bbaed..08dbac44 100644 --- a/application/wap/view/first/store/category.html +++ b/application/wap/view/first/store/category.html @@ -30,7 +30,7 @@ {notempty name="vo.child"} <ul class="child-list clearfix"> {volist name="vo.child" id="st"} - <li><a href="{:url('store/index',['cid'=>$st['id']])}">{$st.cate_name}</a></li> + <li><a href="{:url('store/index',['sid'=>$st['id']])}">{$st.cate_name}</a></li> {/volist} </ul> {/notempty} diff --git a/application/wap/view/first/store/reply_list.html b/application/wap/view/first/store/reply_list.html index 591ea5ab..c8f745a9 100644 --- a/application/wap/view/first/store/reply_list.html +++ b/application/wap/view/first/store/reply_list.html @@ -28,7 +28,7 @@ <div class="picture-list flex"> <img v-for="pic in item.pics" :src="pic" @click="showPic(pic,item.pics)"/> </div> - <div class="reply" v-show="item.merchant_reply_content.length > 0" v-text="'店铺回复:'+item.merchant_reply_content"> + <div class="reply" v-show="item.merchant_reply_content != '' && item.merchant_reply_content != null" v-text="'店铺回复:'+item.merchant_reply_content"> </div> </li> </ul> diff --git a/application/wap/view/first/store/seckill_detail.html b/application/wap/view/first/store/seckill_detail.html index 98aec355..4735cf22 100644 --- a/application/wap/view/first/store/seckill_detail.html +++ b/application/wap/view/first/store/seckill_detail.html @@ -141,7 +141,7 @@ window.$productAttr = <?php echo json_encode($productAttr)?:'[]'; ?>; </script> <script type="text/javascript"> - window.$wechat_qrcode = "{$site.wechat_qrcode}"; + window.$wechat_qrcode = "<?=str_replace('\\','/',$site['wechat_qrcode'])?>"; window.$site_name = "{$site.wechat_name}"; (function ($) { requirejs(['vue','axios','helper','store','{__WAP_PATH}crmeb/module/store/seckill-card.js'],function(Vue,axios,$h,storeApi,shopCard){ @@ -284,7 +284,7 @@ that.status.like = true; if(this.product.userLike){ - storeApi.unlikeProduct(this.product.product_id,'product_seckill',function(){ + storeApi.unlikeProduct(this.product.id,'product_seckill',function(){ setTimeout(function(){ that.product.like_num -= 1; that.product.userLike = false; @@ -307,7 +307,7 @@ }, collect:function(){ var that = this, - product=this.product.product_id==0 ? this.product.id:this.product.product_id; + product = this.product.id; if(that.status.collect) return false; that.status.collect = true; if(this.product.userCollect){ diff --git a/extend/Api/Storage/COS/COS.php b/extend/Api/Storage/COS/COS.php new file mode 100644 index 00000000..a9d136aa --- /dev/null +++ b/extend/Api/Storage/COS/COS.php @@ -0,0 +1,143 @@ +<?php +namespace Api\Storage\COS; + +vendor('cos-php-sdk-v5.vendor.autoload'); + +use app\core\util\SystemConfigService; +use Guzzle\Http\EntityBody; +use Qcloud\Cos\Client; +use think\Request; +use think\Cache; + +/** + * TODO 腾讯云COS文件上传 + * Class COS + * @package Api\Storage\COS + */ +class COS +{ + protected static $accessKey; + + protected static $secretKey; + + protected static $auth = null; + + //TODO 空间域名 Domain + protected static $uploadUrl; + + //TODO 存储空间名称 公开空间 + protected static $storageName; + + //TODO COS使用 所属地域 + protected static $storageRegion; + + + /** + * TODO 初始化 + * @return null|Client + * @throws \Exception + */ + protected static function autoInfo(){ + if(($storageRegion = Cache::get('storageRegion')) && ($storageName = Cache::get('storageName')) && ($uploadUrl = Cache::get('uploadUrl')) && ($accessKey = Cache::get('accessKey')) && ($secretKey = Cache::get('secretKey'))){ + self::$accessKey = $accessKey; + self::$secretKey = $secretKey; + self::$uploadUrl = $uploadUrl; + self::$storageName = $storageName; + self::$storageRegion = $storageRegion; + }else{ + self::$accessKey = trim(SystemConfigService::get('accessKey')); + self::$secretKey = trim(SystemConfigService::get('secretKey')); + self::$uploadUrl = trim(SystemConfigService::get('uploadUrl')).'/'; + self::$storageName = trim(SystemConfigService::get('storage_name')); + self::$storageRegion = trim(SystemConfigService::get('storage_region')); + Cache::set('accessKey',self::$accessKey); + Cache::set('secretKey',self::$secretKey); + Cache::set('uploadUrl',self::$uploadUrl); + Cache::set('storageName',self::$storageName); + Cache::set('storageRegion',self::$storageRegion); + } + if(!self::$accessKey || !self::$secretKey || !self::$uploadUrl || !self::$storageName){ + exception('请设置 secretKey 和 accessKey 和 空间域名 和 存储空间名称'); + } + if(self::$auth == null) { + self::$auth = new Client([ + 'region'=>self::$storageRegion, + 'credentials'=>[ + 'secretId'=>self::$accessKey, + 'secretKey'=>self::$secretKey, + ] + ]); + } + return self::$auth; + } + + /** + * TODO 文件上传 名称 + * @param string $filename + * @return string + */ + public static function uploadImage($filename = 'image'){ + $request = Request::instance(); + $file = $request->file($filename); + $filePath = $file->getRealPath(); + $ext = pathinfo($file->getInfo('name'), PATHINFO_EXTENSION); + $key = substr(md5($file->getRealPath()) , 0, 5). date('YmdHis') . rand(0, 9999) . '.' . $ext; + try { + self::autoInfo(); + return [self::$uploadUrl.$key,self::$auth->putObject([ + 'Bucket' => self::$storageName, + 'Key' => $key, + 'Body' => fopen($filePath, 'rb') + ])]; + } catch (\Exception $e) { + return $e->getMessage(); + } + } + + /** + * TODO 文件上传 内容 + * @param $key + * @param $content + * @return string + */ + public static function uploadImageStream($key, $content){ + try { + self::autoInfo(); + return self::$auth->putObject([ + 'Bucket' => self::$storageName, + 'Key' => $key, + 'Body' => $content + ]); + } catch (\Exception $e) { + return $e->getMessage(); + } + } + + /** + * TODO 删除资源 + * @param $key + * @return mixed + */ + public static function delete($key){ + try { + self::autoInfo(); + return self::$auth->deleteObject([ + 'Bucket' => self::$storageName, + 'Key' => $key + ]); + } catch (\Exception $e) { + return $e->getMessage(); + } + } + + /** + * TODO 转为文件流 + * @param $resource + * @return EntityBody + */ + public static function resourceStream($resource) + { + return EntityBody::factory($resource)->__toString(); + } + +} \ No newline at end of file diff --git a/extend/Api/Storage/Qiniu/Qiniu.php b/extend/Api/Storage/Qiniu/Qiniu.php new file mode 100644 index 00000000..3877df45 --- /dev/null +++ b/extend/Api/Storage/Qiniu/Qiniu.php @@ -0,0 +1,153 @@ +<?php +namespace Api\Storage\Qiniu; + +vendor('Qiniu.autoload'); + +use app\core\util\SystemConfigService; +use think\Request; +use Qiniu\Auth; +use Qiniu\Storage\BucketManager; +use Qiniu\Storage\UploadManager; +use Qiniu\Config; +use think\Cache; + +/** + * TODO 七牛云上传 + * Class Qiniu + * @package Api\Storage\Qiniu + */ +class Qiniu +{ + protected static $accessKey; + + protected static $secretKey; + + protected static $auth = null; + + //TODO 空间域名 Domain + protected static $uploadUrl; + + //TODO 存储空间名称 公开空间 + protected static $storageName; + + + + /** + * TODO 初始化 + * @return null|Auth + * @throws \Exception + */ + protected static function autoInfo(){ + if(($storageName = Cache::get('storageName')) && ($uploadUrl = Cache::get('uploadUrl')) && ($accessKey = Cache::get('accessKey')) && ($secretKey = Cache::get('secretKey'))){ + self::$accessKey = $accessKey; + self::$secretKey = $secretKey; + self::$uploadUrl = $uploadUrl; + self::$storageName = $storageName; + }else{ + self::$accessKey = trim(SystemConfigService::get('accessKey')); + self::$secretKey = trim(SystemConfigService::get('secretKey')); + self::$uploadUrl = trim(SystemConfigService::get('uploadUrl')).'/'; + self::$storageName = trim(SystemConfigService::get('storage_name')); + Cache::set('accessKey',self::$accessKey); + Cache::set('secretKey',self::$secretKey); + Cache::set('uploadUrl',self::$uploadUrl); + Cache::set('storageName',self::$storageName); + } + if(!self::$accessKey || !self::$secretKey || !self::$uploadUrl || !self::$storageName){ + exception('请设置 secretKey 和 accessKey 和 空间域名 和 存储空间名称'); + } + if(self::$auth == null) self::$auth = new Auth(self::$accessKey,self::$secretKey); + return self::$auth; + } + + /** + * TODO 获取上传图片视频token和domain + * @return array + */ + public static function getToKenAndDomainI(){ + $token = self::autoInfo()->uploadToken(self::$storageName); + $domain = self::$uploadUrl; + $fileName = md5(rand(1000,9999). date('YmdHis') . rand(0, 9999)); + return compact('token','domain','fileName'); + } + + /** + * TODO 图片上传 名称 + * @param string $filename + * @return array + * @throws \Exception + */ + public static function uploadImage($filename = 'image'){ + $request = Request::instance(); + $file = $request->file($filename); + $filePath = $file->getRealPath(); + $ext = pathinfo($file->getInfo('name'), PATHINFO_EXTENSION); + $key = substr(md5($file->getRealPath()) , 0, 5). date('YmdHis') . rand(0, 9999) . '.' . $ext; + $token = self::autoInfo()->uploadToken(self::$storageName); + try{ + $uploadMgr = new UploadManager(); + return $uploadMgr->putFile($token, $key, $filePath); + }catch (\Exception $e){ + return $e->getMessage(); + } + } + + /** + * TODO 图片上传 内容 + * @param $key + * @param $content + * @return array|string + * @throws \Exception + */ + public static function uploadImageStream($key, $content){ + $token = self::autoInfo()->uploadToken(self::$storageName, $key); + try{ + $uploadMgr = new UploadManager(); + return $uploadMgr->put($token, $key, $content); + }catch (\Exception $e){ + return $e->getMessage(); + } + } + + /** + * TODO 图片下载链接 + * @param $key uploadImage() 返回的key + * @param string $type 是否设置图片大小 + * @param string $imageUrl 图片访问链接 + * @param int $time 图片链接最后的访问时间 + * @return array + */ + public static function imageUrl($key, $type = '', $imageUrl = '', $time = 0){ + return ['code'=>200,'name'=>$key,'dir'=>self::$uploadUrl.$key,'thumb_path'=>self::$uploadUrl.$key,'time'=>time()]; +// $imageValue = !strlen(trim($type)) ? self::$uploadUrl.$key : self::$uploadUrl.$key.self::getType($type); +// if($time > time() && !strlen(trim($imageUrl))) return ['code'=>100,'dir'=>$imageUrl,'thumb_path'=>$imageUrl,'time'=>$time]; +// $imageUrl = self::autoInfo()->privateDownloadUrl($imageValue); +// return ['code'=>200,'name'=>$key,'dir'=>$imageUrl,'thumb_path'=>$imageUrl,'time'=>bcadd(time(),3600,0)]; + } + + /** + * TODO 获取图片时转换图片大小 + * @param $imageType + * @return string + */ + public static function getType($imageType){ + $type = ''; + switch ($imageType){ + case "8x6": + $type='?imageView2/1/w/800/h/600'; + break; + } + return $type; + } + + /** + * TODO 删除资源 + * @param $key + * @param $bucket + * @return mixed + */ + public static function delete($key){ + $bucketManager = new BucketManager(self::autoInfo(),new Config()); + return $bucketManager->delete(self::$storageName, $key); + } +} \ No newline at end of file diff --git a/extend/behavior/admin/OrderBehavior.php b/extend/behavior/admin/OrderBehavior.php index 39b6e867..c0cdbc4d 100644 --- a/extend/behavior/admin/OrderBehavior.php +++ b/extend/behavior/admin/OrderBehavior.php @@ -50,7 +50,7 @@ class OrderBehavior { $res1 = AdminStoreOrder::gainUserIntegral($order); - $res2 = User::backOrderBrokerage($order); + $res2 = \app\ebapi\model\user\User::backOrderBrokerage($order); AdminStoreOrder::orderTakeAfter($order); if(!($res1 && $res2)) exception('收货失败!'); } @@ -64,10 +64,14 @@ class OrderBehavior * $oid string store_order表中的id */ public static function storeProductOrderRefundYAfter($data,$oid){ - if($data['is_channel']) AdminStoreOrder::refundRoutineTemplate($oid); //TODO 小程序余额退款模板消息 - else AdminStoreOrder::refundTemplate($data,$oid);//TODO 公众号余额退款模板消息 + $order=AdminStoreOrder::where(['id'=>$oid])->find(); + if($order['is_channel']) + AdminStoreOrder::refundRoutineTemplate($oid); //TODO 小程序余额退款模板消息 + else + AdminStoreOrder::refundTemplate($data,$oid);//TODO 公众号余额退款模板消息 } + /** * 修改状态为 不退款 * @param $data diff --git a/extend/behavior/wechat/PaymentBehavior.php b/extend/behavior/wechat/PaymentBehavior.php index b08dc26a..035f9066 100644 --- a/extend/behavior/wechat/PaymentBehavior.php +++ b/extend/behavior/wechat/PaymentBehavior.php @@ -141,6 +141,11 @@ class PaymentBehavior public static function userRechargeRefund($orderNo, array $opt) { - WechatService::payOrderRefund($orderNo,$opt); + $recharge_type = \app\admin\model\user\UserRecharge::where('order_id',$orderNo)->value('recharge_type'); + if($recharge_type == 'weixin'){ + WechatService::payOrderRefund($orderNo,$opt); + }else{ + MiniProgramService::payOrderRefund($orderNo,$opt); + } } } \ No newline at end of file diff --git a/extend/behavior/wechat/QrcodeEventBehavior.php b/extend/behavior/wechat/QrcodeEventBehavior.php index a2ada94a..e5f53016 100644 --- a/extend/behavior/wechat/QrcodeEventBehavior.php +++ b/extend/behavior/wechat/QrcodeEventBehavior.php @@ -23,6 +23,9 @@ class QrcodeEventBehavior if($spreadUid == $uid) return '自己不能推荐自己'; $userInfo = User::getUserInfo($uid); if($userInfo['spread_uid']) return '已有推荐人!'; + $spreadUserInfo= User::where('uid',$spreadUid)->find(); + if(!$spreadUserInfo) return '未查到上级信息!'; + if($spreadUserInfo->spread_uid == $userInfo['uid']) return '推广人的上级和当前用户不能相同!'; if(User::setSpreadUid($userInfo['uid'],$spreadUid)) return WechatReply::reply('subscribe'); else diff --git a/extend/service/FormBuilder.php b/extend/service/FormBuilder.php index 2112f66d..4ea7d86c 100644 --- a/extend/service/FormBuilder.php +++ b/extend/service/FormBuilder.php @@ -8,6 +8,7 @@ namespace service; use FormBuilder\Form; +use think\Url; class FormBuilder extends Form { @@ -17,10 +18,17 @@ class FormBuilder extends Form * @param $title * @param array $field * @param $url - * @param $jscallback null 不执行 1 父级刷新 2 父级刷新关闭弹框 str 自定义 + * @param $jscallback $f.submitStatus({loading: false}); 成功按钮状态false + * 1 父级刷新 不能再提交 + * 2 父级刷新关闭弹框 不能再提交 成功关闭 + * 3 父页面刷新可以重复添加 可以再次提交 + * 4 父级不刷新 不能再提交 + * 5 父级不刷新 不能再提交 关闭弹窗 + * 6 父级不刷新 当前窗口刷新 + * str 自定义 * @return $this */ - public static function make_post_form($title,array $field,$url,$jscallback = 1){ + public static function make_post_form($title,array $field,$url,$jscallback = 2){ $form = Form::create($url);//提交地址 $form->setMethod('POST');//提交方式 $form->components($field);//表单字段 @@ -33,6 +41,21 @@ class FormBuilder extends Form case 2: $js = 'parent.$(".J_iframe:visible")[0].contentWindow.location.reload(); setTimeout(function(){parent.layer.close(parent.layer.getFrameIndex(window.name));},2000);';//提交成功父级页面刷新并关闭当前页面 break; + case 3: + $js = 'parent.$(".J_iframe:visible")[0].contentWindow.location.reload();$r.btn.disabled(false);$r.btn.finish();';//提交成功父级页面刷新继续添加 + break; + case 4: + $js = '$r.btn.disabled(false);$r.btn.finish();';//提交成功不能再提交 + break; + case 5: + $js = '$r.btn.disabled(false);$r.btn.finish();setTimeout(function(){parent.layer.close(parent.layer.getFrameIndex(window.name));},2000);';//父级不刷新 不能再提交 关闭弹窗 + break; + case 6: + $js = 'setTimeout(function(){window.location.reload(),2000});';//父级不刷新 当前窗口刷新 + break; + case 7: + $js = 'parent.$(".J_iframe:visible")[0].contentWindow.location.reload();$r.btn.disabled(false);$r.btn.finish();';//父级刷新 提交成功不能再提交 + break; default: $js = $jscallback; break; @@ -41,4 +64,40 @@ class FormBuilder extends Form return $form; } + /** 选择多图片 + * @param string $title 表单名称 + * @param string $field 表单字段名称 + * @param array $value 表单值 + * @method maxLength(int $length) value的最大数量, 默认无限制 + * @method icon(String $icon) 打开弹出框的按钮图标 + * @method height(String $height) 弹出框高度 + * @method width(String $width) 弹出框宽度 + * @method spin(Boolean $bool) 是否显示加载动画, 默认为 true + * @method frameTitle(String $title) 弹出框标题 + * @method handleIcon(Boolean $bool) 操作按钮的图标, 设置为false将不显示, 设置为true为默认的预览图标, 类型为file时默认为false, image类型默认为true + * @method allowRemove(Boolean $bool) 是否可删除, 设置为false是不显示删除按钮 + */ + public static function formFrameImages($field,$title,$value = [],$icon = 'images',$frameTitle = '图库',$maxLength=5,$width = '945px',$height = '500px',$spin = true,$handleIcon = true,$allowRemove = true){ + $url = Url::build('admin/widget.images/index',array('fodder'=>$field)); + return Form::frameImages($field,$title,$url,$value)->maxLength($maxLength)->icon($icon)->width($width)->height($height)->frameTitle($frameTitle)->spin($spin)->handleIcon($handleIcon)->allowRemove($allowRemove); + + } + /** 选择单图片 + * @param string $title 表单名称 + * @param string $field 表单字段名称 + * @param array $value 表单值 + * @method icon(String $icon) 打开弹出框的按钮图标 + * @method height(String $height) 弹出框高度 + * @method width(String $width) 弹出框宽度 + * @method spin(Boolean $bool) 是否显示加载动画, 默认为 true + * @method frameTitle(String $title) 弹出框标题 + * @method handleIcon(Boolean $bool) 操作按钮的图标, 设置为false将不显示, 设置为true为默认的预览图标, 类型为file时默认为false, image类型默认为true + * @method allowRemove(Boolean $bool) 是否可删除, 设置为false是不显示删除按钮 + */ + public static function formFrameImageOne($field,$title,$value = '',$icon = 'images',$frameTitle = '图库',$width = '945px',$height = '500px',$spin = true,$handleIcon = true,$allowRemove = true){ + $url = Url::build('admin/widget.images/index',array('fodder'=>$field)); + return Form::frameImageOne($field,$title,$url,$value)->icon($icon)->width($width)->height($height)->frameTitle($frameTitle)->spin($spin)->handleIcon($handleIcon)->allowRemove($allowRemove); + + } + } \ No newline at end of file diff --git a/extend/service/PHPExcelService.php b/extend/service/PHPExcelService.php index c16bde80..9145cc21 100644 --- a/extend/service/PHPExcelService.php +++ b/extend/service/PHPExcelService.php @@ -1,8 +1,6 @@ <?php namespace service; -use PHPExcel_IOFactory; -use PHPExcel; use service\JsonService as Json; use think\Request; @@ -61,7 +59,7 @@ class PHPExcelService * return */ private static function initialize($data,$fun){ -// vendor("PHPExcel.PHPExcel.PHPExcel"); + vendor("PHPExcel.PHPExcel.PHPExcel"); self::$PHPExcel= new \PHPExcel(); if($fun!==null && is_callable($fun)){ self::$styleArray=$fun(); @@ -126,7 +124,7 @@ class PHPExcelService */ public function ExcelSave(){ $objWriter=\PHPExcel_IOFactory::createWriter(self::$PHPExcel,'Excel2007'); - $filename=self::$title.'--'.time().'.xlsx'; + $filename=self::$title.'.xlsx'; ob_end_clean(); header('Content-Type: application/vnd.ms-excel'); header('Content-Type: application/octet-stream'); diff --git a/extend/service/UploadService.php b/extend/service/UploadService.php index 9c44943c..3786ec34 100644 --- a/extend/service/UploadService.php +++ b/extend/service/UploadService.php @@ -7,6 +7,11 @@ namespace service; +use Api\Storage\COS\COS; +use Api\Storage\OSS\OSS; +use Api\Storage\Qiniu\Qiniu; +use app\core\util\SystemConfigService; + class UploadService { @@ -95,20 +100,183 @@ class UploadService * @param bool $autoValidate 是否开启文件验证 * @param null $root 上传根目录路径 * @param string $rule 文件名自动生成规则 + * @param int $type * @return mixed */ - public static function image($fileName, $path, $moveName = true, $autoValidate=true, $root=null, $rule='uniqid') + public static function image($fileName, $path, $moveName = true, $autoValidate = true, $root = null, $rule='uniqid',$uploadType = null) { - self::init(); - $path = self::uploadDir($path,$root); - $dir = ROOT_PATH . $path; - if(!self::validDir($dir)) return self::setError('生成上传目录失败,请检查权限!'); - if(!isset($_FILES[$fileName])) return self::setError('上传文件不存在!'); - $file = request()->file($fileName); - if($autoValidate) $file = $file->validate(self::$imageValidate); - $fileInfo = $file->rule($rule)->move($dir,$moveName); - if(false === $fileInfo) return self::setError($file->getError()); - return self::successful($path,$fileInfo); + $uploadType = $uploadType ? $uploadType : SystemConfigService::get('upload_type'); + //TODO 没有选择默认使用本地上传 + if(!$uploadType) $uploadType = 1; + $info = []; + switch ($uploadType){ + case 1 : + self::init(); + $path = self::uploadDir($path,$root); + $dir = ROOT_PATH . $path; + if(!self::validDir($dir)) return '生成上传目录失败,请检查权限!'; + if(!isset($_FILES[$fileName])) return '上传文件不存在!'; + $file = request()->file($fileName); + if($autoValidate) $file = $file->validate(self::$imageValidate); + $fileInfo = $file->rule($rule)->move($dir,$moveName); + if(false === $fileInfo) return self::setError($file->getError()); + $imageInfo = self::successful($path,$fileInfo); + $fileInfo = $imageInfo->fileInfo->getinfo(); + $info["code"] = 200; + $info["name"] = $imageInfo->fileInfo->getSaveName(); + //TODO 入口是public需要替换图片路径 + if(strpos(PUBILC_PATH,'public') == false) $imageInfo->dir = str_replace('public/','', $imageInfo->dir); + $info["dir"] = $imageInfo->dir; + $info["time"] = time(); + $info["size"] = $fileInfo['size']; + $info["type"] = $fileInfo['type']; + $info["image_type"] = 1; + $info['thumb_path'] = self::thumb($imageInfo->dir); + if(!$imageInfo->status) return $imageInfo->error; + $info["dir"] = strstr($info["dir"],'http') === false ? SystemConfigService::get('site_url').$info["dir"] : $info["dir"]; + $info["dir"] = str_replace('\\','/',$info["dir"]); + break; + case 2 : + $keys = Qiniu::uploadImage($fileName); + if(is_array($keys)){ + foreach ($keys as $key=>&$item){ + if(is_array($item)){ + $info = Qiniu::imageUrl($item['key']); + $info['dir'] = UtilService::setHttpType($info['dir']); + $info['thumb_path'] = UtilService::setHttpType($info['thumb_path']); + $headerArray = get_headers(UtilService::setHttpType($info['dir'],1), true); + $info['size'] = is_array($headerArray['Content-Type']) && count($headerArray['Content-Length']) == 2 ? $headerArray['Content-Length'][1] : (string)$headerArray['Content-Length']; + $info['type'] = is_array($headerArray['Content-Type']) && count($headerArray['Content-Type']) == 2 ? $headerArray['Content-Type'][1] : (string)$headerArray['Content-Type']; + $info['image_type'] = 2; + } + } + }else return $keys; + break; + case 3 : + $serverImageInfo = OSS::uploadImage($fileName); + if(!is_array($serverImageInfo)) return $serverImageInfo; + $info['code'] = 200; + $info['name'] = substr(strrchr($serverImageInfo['info']['url'],'/'),1); + $serverImageInfo['info']['url'] = UtilService::setHttpType($serverImageInfo['info']['url']); + $info['dir'] = $serverImageInfo['info']['url']; + $info['thumb_path'] = $serverImageInfo['info']['url']; + $headerArray = get_headers(UtilService::setHttpType($serverImageInfo['info']['url'],1), true); + $info['size'] = $headerArray['Content-Length']; + $info['type'] = $headerArray['Content-Type']; + $info['time'] = time(); + $info['image_type'] = 3; + break; + case 4 : + list($imageUrl,$serverImageInfo) = COS::uploadImage($fileName); + if(!is_array($serverImageInfo) && !is_object($serverImageInfo)) return $serverImageInfo; + if(is_object($serverImageInfo)) $serverImageInfo = $serverImageInfo->toArray(); + $serverImageInfo['ObjectURL'] = $imageUrl; + $info['code'] = 200; + $info['name'] = substr(strrchr($serverImageInfo['ObjectURL'],'/'),1); + $info['dir'] = $serverImageInfo['ObjectURL']; + $info['thumb_path'] = $serverImageInfo['ObjectURL']; + $headerArray = get_headers(UtilService::setHttpType($serverImageInfo['ObjectURL'],1), true); + $info['size'] = $headerArray['Content-Length']; + $info['type'] = $headerArray['Content-Type']; + $info['time'] = time(); + $info['image_type'] = 4; + break; + default: return '上传类型错误,请先选择文件上传类型'; + } + return $info; + } + + /** + * TODO 单图上传 内容 + * @param $key + * @param $content + * @param $path + * @param null $root + * @return array|string + * @throws \Exception + */ + public static function imageStream($key, $content, $path, $root = null){ + $uploadType = SystemConfigService::get('upload_type'); + //TODO 没有选择默认使用本地上传 + if(!$uploadType) $uploadType=1; + $siteUrl = SystemConfigService::get('site_url').DS; + $info = []; + stream_context_set_default( [ + 'ssl' => [ + 'verify_peer' => false, + 'verify_peer_name' => false, + ], + ]); + switch ($uploadType){ + case 1 : + self::init(); + $path = self::uploadDir($path,$root); + $dir = ROOT_PATH . $path; + if(!self::validDir($dir)) return '生成上传目录失败,请检查权限!'; + $name = '.'.DS.$path.DS.$key; + file_put_contents($name,$content); + $info["code"] = 200; + $info["name"] = $key; + //TODO 入口是public需要替换图片路径 + if(strpos(PUBILC_PATH,'public') == false) $path = str_replace('public/','', $path); + $info["dir"] = $path.DS.$key; + $info["time"] = time(); + $headerArray = get_headers(str_replace('\\','/',UtilService::setHttpType($siteUrl,1).$info['dir']), true); + $info['size'] = $headerArray['Content-Length']; + $info['type'] = $headerArray['Content-Type']; + $info["image_type"] = 1; + $info['thumb_path'] = DS.$info['dir']; + $info['dir'] = DS.$info['dir']; + break; + case 2 : + $keys = Qiniu::uploadImageStream($key,$content); + if(is_array($keys)){ + foreach ($keys as $key=>&$item){ + if(is_array($item)){ + $info = Qiniu::imageUrl($item['key']); + $info['dir'] = UtilService::setHttpType($info['dir']); + $headerArray = get_headers(UtilService::setHttpType(str_replace('\\','/',$info['dir']),1), true); + $info['size'] = $headerArray['Content-Length']; + $info['type'] = $headerArray['Content-Type']; + $info['image_type'] = 2; + } + } + if(!count($info)) return '七牛云文件上传失败'; + }else return $keys; + break; + case 3 : + $content = COS::resourceStream($content); + $serverImageInfo = OSS::uploadImageStream($key,$content); + if(!is_array($serverImageInfo)) return $serverImageInfo; + $info['code'] = 200; + $info['name'] = substr(strrchr($serverImageInfo['info']['url'],'/'),1); + $serverImageInfo['info']['url'] = UtilService::setHttpType($serverImageInfo['info']['url']); + $info['dir'] = $serverImageInfo['info']['url']; + $info['thumb_path'] = $serverImageInfo['info']['url']; + $headerArray = get_headers(UtilService::setHttpType(str_replace('\\','/',$serverImageInfo['info']['url']),1), true); + $info['size'] = $headerArray['Content-Length']; + $info['type'] = $headerArray['Content-Type']; + $info['time'] = time(); + $info['image_type'] = 3; + break; + case 4 : + $serverImageInfo = COS::uploadImageStream($key,$content); + if(!is_array($serverImageInfo) && !is_object($serverImageInfo)) return $serverImageInfo; + if(is_object($serverImageInfo)) $serverImageInfo = $serverImageInfo->toArray(); + $serverImageInfo['ObjectURL'] = UtilService::setHttpType($serverImageInfo['ObjectURL']); + $info['code'] = 200; + $info['name'] = substr(strrchr($serverImageInfo['ObjectURL'],'/'),1); + $info['dir'] = $serverImageInfo['ObjectURL']; + $info['thumb_path'] = $serverImageInfo['ObjectURL']; + $headerArray = get_headers(UtilService::setHttpType(str_replace('\\','/',$serverImageInfo['ObjectURL']),1), true); + $info['size'] = $headerArray['Content-Length']; + $info['type'] = $headerArray['Content-Type']; + $info['time'] = time(); + $info['image_type'] = 4; + break; + default: return '上传类型错误,请先选择文件上传类型'; + } + return $info; } /** diff --git a/extend/service/UtilService.php b/extend/service/UtilService.php index 9a233885..734be42f 100644 --- a/extend/service/UtilService.php +++ b/extend/service/UtilService.php @@ -313,16 +313,18 @@ class UtilService /** * TODO 砍价 拼团 分享海报生成 * @param array $data - * @param string $fileName + * @param $path + * @return array|bool|string + * @throws \Exception */ - public static function setShareMarketingPoster($data = array(), $fileName = ''){ + public static function setShareMarketingPoster($data = array(), $path){ $config = array( 'text'=>array( array( 'text'=>$data['price'],//TODO 价格 'left'=>116, 'top'=>200, - 'fontPath'=>ROOT_PATH.'public/static/font/SourceHanSansCN-Medium.otf', //字体文件 + 'fontPath'=>ROOT_PATH.'public/static/font/Alibaba-PuHuiTi-Regular.otf', //字体文件 'fontSize'=>50, //字号 'fontColor'=>'255,0,0', //字体颜色 'angle'=>0, @@ -331,7 +333,7 @@ class UtilService 'text'=>$data['label'],//TODO 标签 'left'=>394, 'top'=>190, - 'fontPath'=>ROOT_PATH.'public/static/font/SourceHanSansCN-Normal.otf', //字体文件 + 'fontPath'=>ROOT_PATH.'public/static/font/Alibaba-PuHuiTi-Regular.otf', //字体文件 'fontSize'=>24, //字号 'fontColor'=>'255,255,255', //字体颜色 'angle'=>0, @@ -340,7 +342,7 @@ class UtilService 'text'=>$data['msg'],//TODO 简述 'left'=>80, 'top'=>270, - 'fontPath'=>ROOT_PATH.'public/static/font/SourceHanSansCN-Normal.otf', //字体文件 + 'fontPath'=>ROOT_PATH.'public/static/font/Alibaba-PuHuiTi-Regular.otf', //字体文件 'fontSize'=>22, //字号 'fontColor'=>'40,40,40', //字体颜色 'angle'=>0, @@ -348,7 +350,7 @@ class UtilService ), 'image'=>array( array( - 'url'=>ROOT_PATH.$data['image'], //图片 + 'url'=>$data['image'], //图片 'stream'=>0, 'left'=>120, 'top'=>340, @@ -359,7 +361,7 @@ class UtilService 'opacity'=>100 ), array( - 'url'=>ROOT_PATH.$data['url'], //二维码资源 + 'url'=>$data['url'], //二维码资源 'stream'=>0, 'left'=>260, 'top'=>890, @@ -378,7 +380,7 @@ class UtilService 'text'=>$data['title'],//TODO 标题 'left'=>76, 'top'=>100, - 'fontPath'=>ROOT_PATH.'public/static/font/SourceHanSansCN-Bold.otf', //字体文件 + 'fontPath'=>ROOT_PATH.'public/static/font/Alibaba-PuHuiTi-Regular.otf', //字体文件 'fontSize'=>32, //字号 'fontColor'=>'0,0,0', //字体颜色 'angle'=>0, @@ -389,7 +391,7 @@ class UtilService 'text'=>mb_substr($data['title'], 0, 12),//TODO 标题 'left'=>76, 'top'=>70, - 'fontPath'=>ROOT_PATH.'public/static/font/SourceHanSansCN-Bold.otf', //字体文件 + 'fontPath'=>ROOT_PATH.'public/static/font/Alibaba-PuHuiTi-Regular.otf', //字体文件 'fontSize'=>32, //字号 'fontColor'=>'0,0,0', //字体颜色 'angle'=>0, @@ -398,7 +400,7 @@ class UtilService 'text'=> mb_substr($data['title'], 12, 12),//TODO 标题 'left'=>76, 'top'=>120, - 'fontPath'=>ROOT_PATH.'public/static/font/SourceHanSansCN-Bold.otf', //字体文件 + 'fontPath'=>ROOT_PATH.'public/static/font/Alibaba-PuHuiTi-Regular.otf', //字体文件 'fontSize'=>32, //字号 'fontColor'=>'0,0,0', //字体颜色 'angle'=>0, @@ -406,16 +408,17 @@ class UtilService array_push($config['text'],$titleOne); array_push($config['text'],$titleTwo); } - self::setSharePoster($config,$fileName); + return self::setSharePoster($config, $path); } /** * TODO 生成分享二维码图片 * @param array $config - * @param string $fileName - * @return bool|string + * @param $path + * @return array|bool|string + * @throws \Exception */ - public static function setSharePoster($config = array(),$fileName = ''){ + public static function setSharePoster($config = array(), $path){ $imageDefault = array( 'left'=>0, 'top'=>0, @@ -469,13 +472,20 @@ class UtilService $fontColor = imagecolorallocate($imageRes, $R, $G, $B); $val['left'] = $val['left']<0?$backgroundWidth- abs($val['left']):$val['left']; $val['top'] = $val['top']<0?$backgroundHeight- abs($val['top']):$val['top']; - imagettftext($imageRes,$val['fontSize'],$val['angle'],$val['left'],$val['top'],$fontColor,realpath($val['fontPath']),$val['text']); + try{ + imagettftext($imageRes,$val['fontSize'],$val['angle'],$val['left'],$val['top'],$fontColor,$val['fontPath'],$val['text']); + }catch (\Exception $e){ + return JsonService::fail('error',$e->getMessage()); + } } } - $res = imagejpeg ($imageRes,$fileName,90); + ob_start(); + imagejpeg ($imageRes); imagedestroy($imageRes); - if(!$res) return false; - return $fileName; + $res = ob_get_contents(); + ob_end_clean(); + $key = substr(md5(rand(0, 9999)) , 0, 5). date('YmdHis') . rand(0, 999999) . '.jpg'; + return UploadService::imageStream($key,$res,$path); } /* @@ -488,4 +498,60 @@ class UtilService return strtolower($request->module().'/'.$request->controller().'/'.$request->action()); } + /** + * TODO 获取小程序二维码是否生成 + * @param $url + * @return array + */ + public static function remoteImage($url) + { + $curl = curl_init(); + curl_setopt($curl, CURLOPT_URL, $url); + curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); + $result = curl_exec($curl); + $result = json_decode($result,true); + if(is_array($result)) return ['status'=>false,'msg'=>$result['errcode'].'---'.$result['errmsg']]; + return ['status'=>true]; + } + + /** + * TODO 修改 https 和 http + * @param $url $url 域名 + * @param int $type 0 返回https 1 返回 http + * @return string + */ + public static function setHttpType($url, $type = 0) + { + $domainTop = substr($url,0,5); + if($type){ + if($domainTop == 'https') $url = 'http'.substr($url,5,strlen($url)); + } else{ + if($domainTop != 'https') $url = 'https:'.substr($url,5,strlen($url)); + } + return $url; + } + + + /* + * CURL 检测远程文件是否在 + * + * */ + public static function CurlFileExist($url) + { + $ch = curl_init(); + try{ + curl_setopt ($ch, CURLOPT_URL, $url); + curl_setopt($ch, CURLOPT_HEADER, 1); + curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1); + curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, 10); + $contents = curl_exec($ch); + if (preg_match("/404/", $contents)) return false; + if (preg_match("/403/", $contents)) return false; + return true; + }catch (\Exception $e){ + return false; + } + } + + } \ No newline at end of file diff --git a/extend/traits/ModelTrait.php b/extend/traits/ModelTrait.php index 00bcd53b..c0b24f07 100644 --- a/extend/traits/ModelTrait.php +++ b/extend/traits/ModelTrait.php @@ -42,9 +42,18 @@ trait ModelTrait { $model = new self; if(!$field) $field = $model->getPk(); - return false !== $model->update($data,[$field=>$id]); +// return false !== $model->update($data,[$field=>$id]); +// return 0 < $model->update($data,[$field=>$id])->result; + $res=$model->update($data,[$field=>$id]); + if(isset($res->result)) + return 0 < $res->result; + else if(isset($res['data']['result'])) + return 0 < $res['data']['result']; + else + return false !== $res; } + /** * 查询一条数据是否存在 * @param $map @@ -198,7 +207,7 @@ trait ModelTrait * @return array */ public static function getModelTime($where,$model=null,$prefix='add_time',$data='data',$field=' - '){ - if ($model == null) $model = new self; + if ($model === null) $model = new self; if(!isset($where[$data])) return $model; switch ($where[$data]){ case 'today':case 'week':case 'month':case 'year':case 'yesterday': @@ -209,11 +218,17 @@ trait ModelTrait $model = $model->where($prefix, '>', strtotime($startTime)); $model = $model->where($prefix, '<', strtotime($endTime)); break; + case 'lately7': + $model = $model->where($prefix,'between',[strtotime("-7 day"),time()]); + break; + case 'lately30': + $model = $model->where($prefix,'between',[strtotime("-30 day"),time()]); + break; default: if(strstr($where[$data],$field)!==false){ list($startTime, $endTime) = explode($field, $where[$data]); $model = $model->where($prefix, '>', strtotime($startTime)); - $model = $model->where($prefix, '<', strtotime($endTime)); + $model = $model->where($prefix, '<', strtotime($endTime)+86400); } break; } diff --git a/public/install/auto.php b/public/install/auto.php index 682943d2..a3d9970b 100644 --- a/public/install/auto.php +++ b/public/install/auto.php @@ -1,4 +1,6 @@ <?php + +define('PHP_EDITION','7.0.0'); if(function_exists('saeAutoLoader')){ define('IS_CLOUD',true); define('IS_SAE',true); diff --git a/public/install/crmeb.sql b/public/install/crmeb.sql index 5c1a3074..fc004f61 100644 --- a/public/install/crmeb.sql +++ b/public/install/crmeb.sql @@ -1,137 +1,129 @@ --- phpMyAdmin SQL Dump --- version phpStudy 2014 --- http://www.phpmyadmin.net --- --- 主机: localhost --- 生成日期: --- 服务器版本: 5.5.53 --- PHP 版本: 7.0.12 +/* + Navicat Premium Data Transfer -SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; -SET time_zone = "+00:00"; + Source Server : localhost_3306 + Source Server Type : MySQL + Source Server Version : 50553 + Source Host : localhost:3306 + Source Schema : shop_new_4_19 + Target Server Type : MySQL + Target Server Version : 50553 + File Encoding : 65001 -/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; -/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; -/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; -/*!40101 SET NAMES utf8 */; + Date: 13/04/2019 19:30:39 +*/ --- --- 数据库: `kaiyuan_crmeb` --- +SET NAMES utf8; +SET FOREIGN_KEY_CHECKS = 0; --- -------------------------------------------------------- - --- --- 表的结构 `eb_article` --- - -CREATE TABLE IF NOT EXISTS `eb_article` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '文章管理ID', - `cid` varchar(255) DEFAULT '1' COMMENT '分类id', - `title` varchar(255) NOT NULL COMMENT '文章标题', - `author` varchar(255) DEFAULT NULL COMMENT '文章作者', - `image_input` varchar(255) NOT NULL COMMENT '文章图片', - `synopsis` varchar(255) DEFAULT NULL COMMENT '文章简介', - `share_title` varchar(255) DEFAULT NULL COMMENT '文章分享标题', - `share_synopsis` varchar(255) DEFAULT NULL COMMENT '文章分享简介', - `visit` varchar(255) DEFAULT NULL COMMENT '浏览次数', - `sort` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '排序', - `url` varchar(255) DEFAULT NULL COMMENT '原文链接', - `status` tinyint(1) unsigned NOT NULL COMMENT '状态', - `add_time` varchar(255) NOT NULL COMMENT '添加时间', - `hide` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否隐藏', - `admin_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '管理员id', - `mer_id` int(10) unsigned DEFAULT '0' COMMENT '商户id', - `is_hot` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否热门(小程序)', - `is_banner` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否轮播图(小程序)', +-- ---------------------------- +-- Table structure for eb_article +-- ---------------------------- +DROP TABLE IF EXISTS `eb_article`; +CREATE TABLE `eb_article` ( + `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '文章管理ID', + `cid` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '1' COMMENT '分类id', + `title` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '文章标题', + `author` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '文章作者', + `image_input` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '文章图片', + `synopsis` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '文章简介', + `share_title` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '文章分享标题', + `share_synopsis` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '文章分享简介', + `visit` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '浏览次数', + `sort` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '排序', + `url` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '原文链接', + `status` tinyint(1) UNSIGNED NOT NULL COMMENT '状态', + `add_time` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '添加时间', + `hide` tinyint(1) UNSIGNED NOT NULL DEFAULT 0 COMMENT '是否隐藏', + `admin_id` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '管理员id', + `mer_id` int(10) UNSIGNED NULL DEFAULT 0 COMMENT '商户id', + `is_hot` tinyint(1) UNSIGNED NOT NULL DEFAULT 0 COMMENT '是否热门(小程序)', + `is_banner` tinyint(1) UNSIGNED NOT NULL DEFAULT 0 COMMENT '是否轮播图(小程序)', PRIMARY KEY (`id`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='文章管理表' AUTO_INCREMENT=3 ; +) ENGINE = InnoDB AUTO_INCREMENT = 3 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '文章管理表' ROW_FORMAT = DYNAMIC; --- --- 转存表中的数据 `eb_article` --- +-- ---------------------------- +-- Records of eb_article +-- ---------------------------- +INSERT INTO `eb_article` VALUES (1, '1', '测试', '测试', 'http://datong.crmeb.net/public/uploads/editor/20190115/5c3dc294a9a0a.jpg', '大撒旦', NULL, NULL, '143', 0, '', 0, '1548138209', 0, 1, 0, 1, 1); +INSERT INTO `eb_article` VALUES (2, '1', '阿斯达斯', 'admin', 'http://datong.crmeb.net/public/uploads/editor/20190115/5c3dc294a9a0a.jpg', '阿斯达', NULL, NULL, '62', 0, NULL, 0, '1552965683', 0, 0, 0, 0, 0); -INSERT INTO `eb_article` (`id`, `cid`, `title`, `author`, `image_input`, `synopsis`, `share_title`, `share_synopsis`, `visit`, `sort`, `url`, `status`, `add_time`, `hide`, `admin_id`, `mer_id`, `is_hot`, `is_banner`) VALUES -(1, '1', '测试', '测试', 'http://datong.crmeb.net/public/uploads/editor/20190115/5c3dc294a9a0a.jpg', '大撒旦', NULL, NULL, '143', 0, '', 0, '1548138209', 0, 1, 0, 1, 1), -(2, '1', '阿斯达斯', 'admin', 'http://datong.crmeb.net/public/uploads/editor/20190115/5c3dc294a9a0a.jpg', '阿斯达', NULL, NULL, '62', 0, NULL, 0, '1552965683', 0, 0, 0, 0, 0); - --- -------------------------------------------------------- - --- --- 表的结构 `eb_article_category` --- - -CREATE TABLE IF NOT EXISTS `eb_article_category` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '文章分类id', - `pid` int(11) NOT NULL DEFAULT '0' COMMENT '父级ID', - `title` varchar(255) NOT NULL COMMENT '文章分类标题', - `intr` varchar(255) DEFAULT NULL COMMENT '文章分类简介', - `image` varchar(255) NOT NULL COMMENT '文章分类图片', - `status` tinyint(1) unsigned NOT NULL COMMENT '状态', - `sort` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '排序', - `is_del` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '1删除0未删除', - `add_time` varchar(255) NOT NULL COMMENT '添加时间', - `hidden` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否隐藏', +-- ---------------------------- +-- Table structure for eb_article_category +-- ---------------------------- +DROP TABLE IF EXISTS `eb_article_category`; +CREATE TABLE `eb_article_category` ( + `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '文章分类id', + `pid` int(11) NOT NULL DEFAULT 0 COMMENT '父级ID', + `title` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '文章分类标题', + `intr` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '文章分类简介', + `image` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '文章分类图片', + `status` tinyint(1) UNSIGNED NOT NULL COMMENT '状态', + `sort` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '排序', + `is_del` tinyint(1) UNSIGNED NOT NULL DEFAULT 0 COMMENT '1删除0未删除', + `add_time` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '添加时间', + `hidden` tinyint(1) UNSIGNED NOT NULL DEFAULT 0 COMMENT '是否隐藏', PRIMARY KEY (`id`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='文章分类表' AUTO_INCREMENT=4 ; +) ENGINE = InnoDB AUTO_INCREMENT = 4 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '文章分类表' ROW_FORMAT = DYNAMIC; + -- --- 转存表中的数据 `eb_article_category` +-- 表的结构 `eb_store_product_cate` -- +DROP TABLE IF EXISTS `eb_store_product_cate`; +CREATE TABLE `eb_store_product_cate` ( + `id` int(11) NOT NULL AUTO_INCREMENT, + `product_id` int(11) NOT NULL DEFAULT '0' COMMENT '产品id', + `cate_id` int(11) NOT NULL DEFAULT '0' COMMENT '分类id', + `add_time` int(11) NOT NULL DEFAULT '0' COMMENT '添加时间', + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 COMMENT = '产品分类辅助表' ROW_FORMAT = DYNAMIC; -INSERT INTO `eb_article_category` (`id`, `pid`, `title`, `intr`, `image`, `status`, `sort`, `is_del`, `add_time`, `hidden`) VALUES -(1, 0, '测试', '123', 'http://datong.crmeb.net/public/uploads/editor/20190115/5c3dc294a9a0a.jpg', 1, 0, 1, '1548138187', 0), -(2, 0, '开发者专区', '微信小程序开发者专区', 'http://datong.crmeb.net/public/uploads/editor/20190111/5c387daf3ef63.jpg', 1, 1, 0, '1554889503', 0), -(3, 0, '官方动态', 'CRMEB官方动态', 'http://datong.crmeb.net/public/uploads/editor/20190111/5c387d18c37fa.jpg', 1, 2, 0, '1554889781', 0); +-- ---------------------------- +-- Records of eb_article_category +-- ---------------------------- +INSERT INTO `eb_article_category` VALUES (1, 0, '测试', '123', 'http://datong.crmeb.net/public/uploads/editor/20190115/5c3dc294a9a0a.jpg', 1, 0, 1, '1548138187', 0); +INSERT INTO `eb_article_category` VALUES (2, 0, '开发者专区', '微信小程序开发者专区', 'http://datong.crmeb.net/public/uploads/editor/20190111/5c387daf3ef63.jpg', 1, 1, 0, '1554889503', 0); +INSERT INTO `eb_article_category` VALUES (3, 0, '官方动态', 'CRMEB官方动态', 'http://datong.crmeb.net/public/uploads/editor/20190111/5c387d18c37fa.jpg', 1, 2, 0, '1554889781', 0); --- -------------------------------------------------------- +-- ---------------------------- +-- Table structure for eb_article_content +-- ---------------------------- +DROP TABLE IF EXISTS `eb_article_content`; +CREATE TABLE `eb_article_content` ( + `nid` int(10) UNSIGNED NOT NULL COMMENT '文章id', + `content` text CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '文章内容', + UNIQUE INDEX `nid`(`nid`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '文章内容表' ROW_FORMAT = DYNAMIC; --- --- 表的结构 `eb_article_content` --- +-- ---------------------------- +-- Records of eb_article_content +-- ---------------------------- +INSERT INTO `eb_article_content` VALUES (1, '<p>阿达阿萨德撒打</p>'); +INSERT INTO `eb_article_content` VALUES (2, '<p>阿斯打扫打扫的阿斯达傻吊</p>'); -CREATE TABLE IF NOT EXISTS `eb_article_content` ( - `nid` int(10) unsigned NOT NULL COMMENT '文章id', - `content` text NOT NULL COMMENT '文章内容', - UNIQUE KEY `nid` (`nid`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='文章内容表'; - --- --- 转存表中的数据 `eb_article_content` --- - -INSERT INTO `eb_article_content` (`nid`, `content`) VALUES -(1, '<p>阿达阿萨德撒打</p>'), -(2, '<p>阿斯打扫打扫的阿斯达傻吊</p>'); - --- -------------------------------------------------------- - --- --- 表的结构 `eb_cache` --- - -CREATE TABLE IF NOT EXISTS `eb_cache` ( - `key` varchar(32) NOT NULL, - `result` text COMMENT '缓存数据', - `add_time` int(10) DEFAULT NULL COMMENT '缓存时间', +-- ---------------------------- +-- Table structure for eb_cache +-- ---------------------------- +DROP TABLE IF EXISTS `eb_cache`; +CREATE TABLE `eb_cache` ( + `key` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, + `result` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '缓存数据', + `add_time` int(10) NULL DEFAULT NULL COMMENT '缓存时间', PRIMARY KEY (`key`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='微信缓存表'; +) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '微信缓存表' ROW_FORMAT = DYNAMIC; --- --- 转存表中的数据 `eb_cache` --- +-- ---------------------------- +-- Records of eb_cache +-- ---------------------------- +INSERT INTO `eb_cache` VALUES ('wechat_menus', '[{\"type\":\"view\",\"name\":\"\\u516c\\u4f17\\u53f7\\u5546\\u57ce\",\"sub_button\":[],\"url\":\"http:\\/\\/datong.crmeb.net\\/wap\"},{\"type\":\"miniprogram\",\"name\":\"\\u5c0f\\u7a0b\\u5e8f\\u5546\\u57ce\",\"sub_button\":[],\"url\":\"pages\\/index\\/index\",\"appid\":\"1111\",\"pagepath\":\"pages\\/index\\/index\"}]', 1552353930); -INSERT INTO `eb_cache` (`key`, `result`, `add_time`) VALUES -('wechat_menus', '[{"type":"view","name":"\\u516c\\u4f17\\u53f7\\u5546\\u57ce","sub_button":[],"url":"http:\\/\\/datong.crmeb.net\\/wap"},{"type":"miniprogram","name":"\\u5c0f\\u7a0b\\u5e8f\\u5546\\u57ce","sub_button":[],"url":"pages\\/index\\/index","appid":"1111","pagepath":"pages\\/index\\/index"}]', 1552353930); - --- -------------------------------------------------------- - --- --- 表的结构 `eb_express` --- - -CREATE TABLE IF NOT EXISTS `eb_express` ( +-- ---------------------------- +-- Table structure for eb_express +-- ---------------------------- +DROP TABLE IF EXISTS `eb_express`; +CREATE TABLE `eb_express` ( `id` mediumint(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '快递公司id', `code` varchar(50) NOT NULL COMMENT '快递公司简称', `name` varchar(50) NOT NULL COMMENT '快递公司全称', @@ -140,847 +132,525 @@ CREATE TABLE IF NOT EXISTS `eb_express` ( PRIMARY KEY (`id`) USING BTREE, UNIQUE KEY `code` (`code`) USING BTREE, KEY `is_show` (`is_show`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='快递公司表' AUTO_INCREMENT=426 ; +) ENGINE=InnoDB AUTO_INCREMENT=426 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='快递公司表'; --- --- 转存表中的数据 `eb_express` --- +-- ---------------------------- +-- Records of eb_express +-- ---------------------------- -INSERT INTO `eb_express` (`id`, `code`, `name`, `sort`, `is_show`) VALUES -(1, 'LIMINWL', '利民物流', 1, 0), -(2, 'XINTIAN', '鑫天顺物流', 1, 0), -(3, 'henglu', '恒路物流', 1, 0), -(4, 'klwl', '康力物流', 1, 0), -(5, 'meiguo', '美国快递', 1, 0), -(6, 'a2u', 'A2U速递', 1, 0), -(7, 'benteng', '奔腾物流', 1, 0), -(8, 'ahdf', '德方物流', 1, 0), -(9, 'timedg', '万家通', 1, 0), -(10, 'ztong', '智通物流', 1, 0), -(11, 'xindan', '新蛋物流', 1, 0), -(12, 'bgpyghx', '挂号信', 1, 0), -(13, 'XFHONG', '鑫飞鸿物流快递', 1, 0), -(14, 'ALP', '阿里物流', 1, 0), -(15, 'BFWL', '滨发物流', 1, 0), -(16, 'SJWL', '宋军物流', 1, 0), -(17, 'SHUNFAWL', '顺发物流', 1, 0), -(18, 'TIANHEWL', '天河物流', 1, 0), -(19, 'YBWL', '邮联物流', 1, 0), -(20, 'SWHY', '盛旺货运', 1, 0), -(21, 'TSWL', '汤氏物流', 1, 0), -(22, 'YUANYUANWL', '圆圆物流', 1, 0), -(23, 'BALIANGWL', '八梁物流', 1, 0), -(24, 'ZGWL', '振刚物流', 1, 0), -(25, 'JIAYU', '佳宇物流', 1, 0), -(26, 'SHHX', '昊昕物流', 1, 0), -(27, 'ande', '安得物流', 1, 0), -(28, 'ppbyb', '贝邮宝', 1, 0), -(29, 'dida', '递达快递', 1, 0), -(30, 'jppost', '日本邮政', 1, 0), -(31, 'intmail', '中国邮政', 96, 0), -(32, 'HENGCHENGWL', '恒诚物流', 1, 0), -(33, 'HENGFENGWL', '恒丰物流', 1, 0), -(34, 'gdems', '广东ems快递', 1, 0), -(35, 'xlyt', '祥龙运通', 1, 0), -(36, 'gjbg', '国际包裹', 1, 0), -(37, 'uex', 'UEX', 1, 0), -(38, 'singpost', '新加坡邮政', 1, 0), -(39, 'guangdongyouzhengwuliu', '广东邮政', 1, 0), -(40, 'bht', 'BHT', 1, 0), -(41, 'cces', 'CCES快递', 1, 0), -(42, 'cloudexpress', 'CE易欧通国际速递', 1, 0), -(43, 'dasu', '达速物流', 1, 0), -(44, 'pfcexpress', '皇家物流', 1, 0), -(45, 'hjs', '猴急送', 1, 0), -(46, 'huilian', '辉联物流', 1, 0), -(47, 'huanqiu', '环球速运', 1, 0), -(48, 'huada', '华达快运', 1, 0), -(49, 'htwd', '华通务达物流', 1, 0), -(50, 'hipito', '海派通', 1, 0), -(51, 'hqtd', '环球通达', 1, 0), -(52, 'airgtc', '航空快递', 1, 0), -(53, 'haoyoukuai', '好又快物流', 1, 0), -(54, 'hanrun', '韩润物流', 1, 0), -(55, 'ccd', '河南次晨达', 1, 0), -(56, 'hfwuxi', '和丰同城', 1, 0), -(57, 'Sky', '荷兰', 1, 0), -(58, 'hongxun', '鸿讯物流', 1, 0), -(59, 'hongjie', '宏捷国际物流', 1, 0), -(60, 'httx56', '汇通天下物流', 1, 0), -(61, 'lqht', '恒通快递', 1, 0), -(62, 'jinguangsudikuaijian', '京广速递快件', 1, 0), -(63, 'junfengguoji', '骏丰国际速递', 1, 0), -(64, 'jiajiatong56', '佳家通', 1, 0), -(65, 'jrypex', '吉日优派', 1, 0), -(66, 'jinchengwuliu', '锦程国际物流', 1, 0), -(67, 'jgwl', '景光物流', 1, 0), -(68, 'pzhjst', '急顺通', 1, 0), -(69, 'ruexp', '捷网俄全通', 1, 0), -(70, 'jmjss', '金马甲', 1, 0), -(71, 'lanhu', '蓝弧快递', 1, 0), -(72, 'ltexp', '乐天速递', 1, 0), -(73, 'lutong', '鲁通快运', 1, 0), -(74, 'ledii', '乐递供应链', 1, 0), -(75, 'lundao', '论道国际物流', 1, 0), -(76, 'mailikuaidi', '麦力快递', 1, 0), -(77, 'mchy', '木春货运', 1, 0), -(78, 'meiquick', '美快国际物流', 1, 0), -(79, 'valueway', '美通快递', 1, 0), -(80, 'nuoyaao', '偌亚奥国际', 1, 0), -(81, 'euasia', '欧亚专线', 1, 0), -(82, 'pca', '澳大利亚PCA快递', 1, 0), -(83, 'pingandatengfei', '平安达腾飞', 1, 0), -(84, 'pjbest', '品骏快递', 1, 0), -(85, 'qbexpress', '秦邦快运', 1, 0), -(86, 'quanxintong', '全信通快递', 1, 0), -(87, 'quansutong', '全速通国际快递', 1, 0), -(88, 'qinyuan', '秦远物流', 1, 0), -(89, 'qichen', '启辰国际物流', 1, 0), -(90, 'quansu', '全速快运', 1, 0), -(91, 'qzx56', '全之鑫物流', 1, 0), -(92, 'qskdyxgs', '千顺快递', 1, 0), -(93, 'runhengfeng', '全时速运', 1, 0), -(94, 'rytsd', '日益通速递', 1, 0), -(95, 'ruidaex', '瑞达国际速递', 1, 0), -(96, 'shiyun', '世运快递', 1, 0), -(97, 'sfift', '十方通物流', 1, 0), -(98, 'stkd', '顺通快递', 1, 0), -(99, 'bgn', '布谷鸟快递', 1, 0), -(100, 'jiahuier', '佳惠尔快递', 1, 0), -(101, 'pingyou', '小包', 1, 0), -(102, 'yumeijie', '誉美捷快递', 1, 0), -(103, 'meilong', '美龙快递', 1, 0), -(104, 'guangtong', '广通速递', 1, 0), -(105, 'STARS', '星晨急便', 1, 0), -(106, 'NANHANG', '中国南方航空股份有限公司', 1, 0), -(107, 'lanbiao', '蓝镖快递', 1, 0), -(109, 'baotongda', '宝通达物流', 1, 0), -(110, 'dashun', '大顺物流', 1, 0), -(111, 'dada', '大达物流', 1, 0), -(112, 'fangfangda', '方方达物流', 1, 0), -(113, 'hebeijianhua', '河北建华物流', 1, 0), -(114, 'haolaiyun', '好来运快递', 1, 0), -(115, 'jinyue', '晋越快递', 1, 0), -(116, 'kuaitao', '快淘快递', 1, 0), -(117, 'peixing', '陪行物流', 1, 0), -(118, 'hkpost', '香港邮政', 1, 0), -(119, 'ytfh', '一统飞鸿快递', 1, 0), -(120, 'zhongxinda', '中信达快递', 1, 0), -(121, 'zhongtian', '中天快运', 1, 0), -(122, 'zuochuan', '佐川急便', 1, 0), -(123, 'chengguang', '程光快递', 1, 0), -(124, 'cszx', '城市之星', 1, 0), -(125, 'chuanzhi', '传志快递', 1, 0), -(126, 'feibao', '飞豹快递', 1, 0), -(127, 'huiqiang', '汇强快递', 1, 0), -(128, 'lejiedi', '乐捷递', 1, 0), -(129, 'lijisong', '成都立即送快递', 1, 0), -(130, 'minbang', '民邦速递', 1, 0), -(131, 'ocs', 'OCS国际快递', 1, 0), -(132, 'santai', '三态速递', 1, 0), -(133, 'saiaodi', '赛澳递', 1, 0), -(134, 'jingdong', '京东快递', 1, 0), -(135, 'zengyi', '增益快递', 1, 0), -(136, 'fanyu', '凡宇速递', 1, 0), -(137, 'fengda', '丰达快递', 1, 0), -(138, 'coe', '东方快递', 1, 0), -(139, 'ees', '百福东方快递', 1, 0), -(140, 'disifang', '递四方速递', 1, 0), -(141, 'rufeng', '如风达快递', 1, 0), -(142, 'changtong', '长通物流', 1, 0), -(143, 'chengshi100', '城市100快递', 1, 0), -(144, 'feibang', '飞邦物流', 1, 0), -(145, 'haosheng', '昊盛物流', 1, 0), -(146, 'yinsu', '音速速运', 1, 0), -(147, 'kuanrong', '宽容物流', 1, 0), -(148, 'tongcheng', '通成物流', 1, 0), -(149, 'tonghe', '通和天下物流', 1, 0), -(150, 'zhima', '芝麻开门', 1, 0), -(151, 'ririshun', '日日顺物流', 1, 0), -(152, 'anxun', '安迅物流', 1, 0), -(153, 'baiqian', '百千诚国际物流', 1, 0), -(154, 'chukouyi', '出口易', 1, 0), -(155, 'diantong', '店通快递', 1, 0), -(156, 'dajin', '大金物流', 1, 0), -(157, 'feite', '飞特物流', 1, 0), -(159, 'gnxb', '国内小包', 1, 0), -(160, 'huacheng', '华诚物流', 1, 0), -(161, 'huahan', '华翰物流', 1, 0), -(162, 'hengyu', '恒宇运通', 1, 0), -(163, 'huahang', '华航快递', 1, 0), -(164, 'jiuyi', '久易快递', 1, 0), -(165, 'jiete', '捷特快递', 1, 0), -(166, 'jingshi', '京世物流', 1, 0), -(167, 'kuayue', '跨越快递', 1, 0), -(168, 'mengsu', '蒙速快递', 1, 0), -(169, 'nanbei', '南北快递', 1, 0), -(171, 'pinganda', '平安达快递', 1, 0), -(172, 'ruifeng', '瑞丰速递', 1, 0), -(173, 'rongqing', '荣庆物流', 1, 0), -(174, 'suijia', '穗佳物流', 1, 0), -(175, 'simai', '思迈快递', 1, 0), -(176, 'suteng', '速腾快递', 1, 0), -(177, 'shengbang', '晟邦物流', 1, 0), -(178, 'suchengzhaipei', '速呈宅配', 1, 0), -(179, 'wuhuan', '五环速递', 1, 0), -(180, 'xingchengzhaipei', '星程宅配', 1, 0), -(181, 'yinjie', '顺捷丰达', 1, 0), -(183, 'yanwen', '燕文物流', 1, 0), -(184, 'zongxing', '纵行物流', 1, 0), -(185, 'aae', 'AAE快递', 1, 0), -(186, 'dhl', 'DHL快递', 1, 0), -(187, 'feihu', '飞狐快递', 1, 0), -(188, 'shunfeng', '顺丰速运', 92, 1), -(189, 'spring', '春风物流', 1, 0), -(190, 'yidatong', '易达通快递', 1, 0), -(191, 'PEWKEE', '彪记快递', 1, 0), -(192, 'PHOENIXEXP', '凤凰快递', 1, 0), -(193, 'CNGLS', 'GLS快递', 1, 0), -(194, 'BHTEXP', '华慧快递', 1, 0), -(195, 'B2B', '卡行天下', 1, 0), -(196, 'PEISI', '配思货运', 1, 0), -(197, 'SUNDAPOST', '上大物流', 1, 0), -(198, 'SUYUE', '苏粤货运', 1, 0), -(199, 'F5XM', '伍圆速递', 1, 0), -(200, 'GZWENJIE', '文捷航空速递', 1, 0), -(201, 'yuancheng', '远成物流', 1, 0), -(202, 'dpex', 'DPEX快递', 1, 0), -(203, 'anjie', '安捷快递', 1, 0), -(204, 'jldt', '嘉里大通', 1, 0), -(205, 'yousu', '优速快递', 1, 0), -(206, 'wanbo', '万博快递', 1, 0), -(207, 'sure', '速尔物流', 1, 0), -(208, 'sutong', '速通物流', 1, 0), -(209, 'JUNCHUANWL', '骏川物流', 1, 0), -(210, 'guada', '冠达快递', 1, 0), -(211, 'dsu', 'D速快递', 1, 0), -(212, 'LONGSHENWL', '龙胜物流', 1, 0), -(213, 'abc', '爱彼西快递', 1, 0), -(214, 'eyoubao', 'E邮宝', 1, 0), -(215, 'aol', 'AOL快递', 1, 0), -(216, 'jixianda', '急先达物流', 1, 0), -(217, 'haihong', '山东海红快递', 1, 0), -(218, 'feiyang', '飞洋快递', 1, 0), -(219, 'rpx', 'RPX保时达', 1, 0), -(220, 'zhaijisong', '宅急送', 1, 0), -(221, 'tiantian', '天天快递', 99, 0), -(222, 'yunwuliu', '云物流', 1, 0), -(223, 'jiuye', '九曳供应链', 1, 0), -(224, 'bsky', '百世快运', 1, 0), -(225, 'higo', '黑狗物流', 1, 0), -(226, 'arke', '方舟速递', 1, 0), -(227, 'zwsy', '中外速运', 1, 0), -(228, 'jxy', '吉祥邮', 1, 0), -(229, 'aramex', 'Aramex', 1, 0), -(230, 'guotong', '国通快递', 1, 0), -(231, 'jiayi', '佳怡物流', 1, 0), -(232, 'longbang', '龙邦快运', 1, 0), -(233, 'minhang', '民航快递', 1, 0), -(234, 'quanyi', '全一快递', 1, 0), -(235, 'quanchen', '全晨快递', 1, 0), -(236, 'usps', 'USPS快递', 1, 0), -(237, 'xinbang', '新邦物流', 1, 0), -(238, 'yuanzhi', '元智捷诚快递', 1, 0), -(239, 'zhongyou', '中邮物流', 1, 0), -(240, 'yuxin', '宇鑫物流', 1, 0), -(241, 'cnpex', '中环快递', 1, 0), -(242, 'shengfeng', '盛丰物流', 1, 0), -(243, 'yuantong', '圆通速递', 97, 1), -(244, 'jiayunmei', '加运美物流', 1, 0), -(245, 'ywfex', '源伟丰快递', 1, 0), -(246, 'xinfeng', '信丰物流', 1, 0), -(247, 'wanxiang', '万象物流', 1, 0), -(248, 'menduimen', '门对门', 1, 0), -(249, 'mingliang', '明亮物流', 1, 0), -(250, 'fengxingtianxia', '风行天下', 1, 0), -(251, 'gongsuda', '共速达物流', 1, 0), -(252, 'zhongtong', '中通快递', 100, 1), -(253, 'quanritong', '全日通快递', 1, 0), -(254, 'ems', 'EMS', 1, 1), -(255, 'wanjia', '万家物流', 1, 0), -(256, 'yuntong', '运通快递', 1, 0), -(257, 'feikuaida', '飞快达物流', 1, 0), -(258, 'haimeng', '海盟速递', 1, 0), -(259, 'zhongsukuaidi', '中速快件', 1, 0), -(260, 'yuefeng', '越丰快递', 1, 0), -(261, 'shenghui', '盛辉物流', 1, 0), -(262, 'datian', '大田物流', 1, 0), -(263, 'quanjitong', '全际通快递', 1, 0), -(264, 'longlangkuaidi', '隆浪快递', 1, 0), -(265, 'neweggozzo', '新蛋奥硕物流', 1, 0), -(266, 'shentong', '申通快递', 95, 1), -(267, 'haiwaihuanqiu', '海外环球', 1, 0), -(268, 'yad', '源安达快递', 1, 0), -(269, 'jindawuliu', '金大物流', 1, 0), -(270, 'sevendays', '七天连锁', 1, 0), -(271, 'tnt', 'TNT快递', 1, 0), -(272, 'huayu', '天地华宇物流', 1, 0), -(273, 'lianhaotong', '联昊通快递', 1, 0), -(274, 'nengda', '港中能达快递', 1, 0), -(275, 'LBWL', '联邦物流', 1, 0), -(276, 'ontrac', 'onTrac', 1, 0), -(277, 'feihang', '原飞航快递', 1, 0), -(278, 'bangsongwuliu', '邦送物流', 1, 0), -(279, 'huaxialong', '华夏龙物流', 1, 0), -(280, 'ztwy', '中天万运快递', 1, 0), -(281, 'fkd', '飞康达物流', 1, 0), -(282, 'anxinda', '安信达快递', 1, 0), -(283, 'quanfeng', '全峰快递', 1, 0), -(284, 'shengan', '圣安物流', 1, 0), -(285, 'jiaji', '佳吉物流', 1, 0), -(286, 'yunda', '韵达快运', 94, 0), -(287, 'ups', 'UPS快递', 1, 0), -(288, 'debang', '德邦物流', 1, 0), -(289, 'yafeng', '亚风速递', 1, 0), -(290, 'kuaijie', '快捷速递', 98, 0), -(291, 'huitong', '百世快递', 93, 0), -(293, 'aolau', 'AOL澳通速递', 1, 0), -(294, 'anneng', '安能物流', 1, 0), -(295, 'auexpress', '澳邮中国快运', 1, 0), -(296, 'exfresh', '安鲜达', 1, 0), -(297, 'bcwelt', 'BCWELT', 1, 0), -(298, 'youzhengguonei', '挂号信', 1, 0), -(299, 'xiaohongmao', '北青小红帽', 1, 0), -(300, 'lbbk', '宝凯物流', 1, 0), -(301, 'byht', '博源恒通', 1, 0), -(302, 'idada', '百成大达物流', 1, 0), -(303, 'baitengwuliu', '百腾物流', 1, 0), -(304, 'birdex', '笨鸟海淘', 1, 0), -(305, 'bsht', '百事亨通', 1, 0), -(306, 'dayang', '大洋物流快递', 1, 0), -(307, 'dechuangwuliu', '德创物流', 1, 0), -(308, 'donghanwl', '东瀚物流', 1, 0), -(309, 'dfpost', '达方物流', 1, 0), -(310, 'dongjun', '东骏快捷物流', 1, 0), -(311, 'dindon', '叮咚澳洲转运', 1, 0), -(312, 'dazhong', '大众佐川急便', 1, 0), -(313, 'decnlh', '德中快递', 1, 0), -(314, 'dekuncn', '德坤供应链', 1, 0), -(315, 'eshunda', '俄顺达', 1, 0), -(316, 'ewe', 'EWE全球快递', 1, 0), -(317, 'fedexuk', 'FedEx英国', 1, 0), -(318, 'fox', 'FOX国际速递', 1, 0), -(319, 'rufengda', '凡客如风达', 1, 0), -(320, 'fandaguoji', '颿达国际快递', 1, 0), -(321, 'hnfy', '飞鹰物流', 1, 0), -(322, 'flysman', '飞力士物流', 1, 0), -(323, 'sccod', '丰程物流', 1, 0), -(324, 'farlogistis', '泛远国际物流', 1, 0), -(325, 'gsm', 'GSM', 1, 0), -(326, 'gaticn', 'GATI快递', 1, 0), -(327, 'gts', 'GTS快递', 1, 0), -(328, 'gangkuai', '港快速递', 1, 0), -(329, 'gtsd', '高铁速递', 1, 0), -(330, 'tiandihuayu', '华宇物流', 1, 0), -(331, 'huangmajia', '黄马甲快递', 1, 0), -(332, 'ucs', '合众速递', 1, 0), -(333, 'huoban', '伙伴物流', 1, 0), -(334, 'nedahm', '红马速递', 1, 0), -(335, 'huiwen', '汇文配送', 1, 0), -(336, 'nmhuahe', '华赫物流', 1, 0), -(337, 'hangyu', '航宇快递', 1, 0), -(338, 'minsheng', '闽盛物流', 1, 0), -(339, 'riyu', '日昱物流', 1, 0), -(340, 'sxhongmajia', '山西红马甲', 1, 0), -(341, 'syjiahuier', '沈阳佳惠尔', 1, 0), -(342, 'shlindao', '上海林道货运', 1, 0), -(343, 'shunjiefengda', '顺捷丰达', 1, 0), -(344, 'subida', '速必达物流', 1, 0), -(345, 'bphchina', '速方国际物流', 1, 0), -(346, 'sendtochina', '速递中国', 1, 0), -(347, 'suning', '苏宁快递', 1, 0), -(348, 'sihaiet', '四海快递', 1, 0), -(349, 'tianzong', '天纵物流', 1, 0), -(350, 'chinatzx', '同舟行物流', 1, 0), -(351, 'nntengda', '腾达速递', 1, 0), -(352, 'sd138', '泰国138', 1, 0), -(353, 'tongdaxing', '通达兴物流', 1, 0), -(354, 'tlky', '天联快运', 1, 0), -(355, 'youshuwuliu', 'UC优速快递', 1, 0), -(356, 'ueq', 'UEQ快递', 1, 0), -(357, 'weitepai', '微特派快递', 1, 0), -(358, 'wtdchina', '威时沛运', 1, 0), -(359, 'wzhaunyun', '微转运', 1, 0), -(360, 'gswtkd', '万通快递', 1, 0), -(361, 'wotu', '渥途国际速运', 1, 0), -(362, 'xiyoute', '希优特快递', 1, 0), -(363, 'xilaikd', '喜来快递', 1, 0), -(364, 'xsrd', '鑫世锐达', 1, 0), -(365, 'xtb', '鑫通宝物流', 1, 0), -(366, 'xintianjie', '信天捷快递', 1, 0), -(367, 'xaetc', '西安胜峰', 1, 0), -(368, 'xianfeng', '先锋快递', 1, 0), -(369, 'sunspeedy', '新速航', 1, 0), -(370, 'xipost', '西邮寄', 1, 0), -(371, 'sinatone', '信联通', 1, 0), -(372, 'sunjex', '新杰物流', 1, 0), -(373, 'yundaexus', '韵达美国件', 1, 0), -(374, 'yxwl', '宇鑫物流', 1, 0), -(375, 'yitongda', '易通达', 1, 0), -(376, 'yiqiguojiwuliu', '一柒物流', 1, 0), -(377, 'yilingsuyun', '亿领速运', 1, 0), -(378, 'yujiawuliu', '煜嘉物流', 1, 0), -(379, 'gml', '英脉物流', 1, 0), -(380, 'leopard', '云豹国际货运', 1, 0), -(381, 'czwlyn', '云南中诚', 1, 0), -(382, 'sdyoupei', '优配速运', 1, 0), -(383, 'yongchang', '永昌物流', 1, 0), -(384, 'yufeng', '御风速运', 1, 0), -(385, 'yamaxunwuliu', '亚马逊物流', 1, 0), -(386, 'yousutongda', '优速通达', 1, 0), -(387, 'yishunhang', '亿顺航', 1, 0), -(388, 'yongwangda', '永旺达快递', 1, 0), -(389, 'ecmscn', '易满客', 1, 0), -(390, 'yingchao', '英超物流', 1, 0), -(391, 'edlogistics', '益递物流', 1, 0), -(392, 'yyexpress', '远洋国际', 1, 0), -(393, 'onehcang', '一号仓', 1, 0), -(394, 'ycgky', '远成快运', 1, 0), -(395, 'lineone', '一号线', 1, 0), -(396, 'ypsd', '壹品速递', 1, 0), -(397, 'vipexpress', '鹰运国际速递', 1, 0), -(398, 'el56', '易联通达物流', 1, 0), -(399, 'yyqc56', '一运全成物流', 1, 0), -(400, 'zhongtie', '中铁快运', 1, 0), -(401, 'ZTKY', '中铁物流', 1, 0), -(402, 'zzjh', '郑州建华快递', 1, 0), -(403, 'zhongruisudi', '中睿速递', 1, 0), -(404, 'zhongwaiyun', '中外运速递', 1, 0), -(405, 'zengyisudi', '增益速递', 1, 0), -(406, 'sujievip', '郑州速捷', 1, 0), -(407, 'zhichengtongda', '至诚通达快递', 1, 0), -(408, 'zhdwl', '众辉达物流', 1, 0), -(409, 'kuachangwuliu', '直邮易', 1, 0), -(410, 'topspeedex', '中运全速', 1, 0), -(411, 'otobv', '中欧快运', 1, 0), -(412, 'zsky123', '准实快运', 1, 0), -(413, 'donghong', '东红物流', 1, 0), -(414, 'kuaiyouda', '快优达速递', 1, 0), -(415, 'balunzhi', '巴伦支快递', 1, 0), -(416, 'hutongwuliu', '户通物流', 1, 0), -(417, 'xianchenglian', '西安城联速递', 1, 0), -(418, 'youbijia', '邮必佳', 1, 0), -(419, 'feiyuan', '飞远物流', 1, 0), -(420, 'chengji', '城际速递', 1, 0), -(421, 'huaqi', '华企快运', 1, 0), -(422, 'yibang', '一邦快递', 1, 0), -(423, 'citylink', 'CityLink快递', 1, 0), -(424, 'meixi', '美西快递', 1, 0), -(425, 'acs', 'ACS', 1, 0); +INSERT INTO `eb_express` (`id`,`code`,`name`,`sort`,`is_show`) VALUES (1,'LIMINWL','利民物流',1,0),(2,'XINTIAN','鑫天顺物流',1,0),(3,'henglu','恒路物流',1,0),(4,'klwl','康力物流',1,0),(5,'meiguo','美国快递',1,0),(6,'a2u','A2U速递',1,0),(7,'benteng','奔腾物流',1,0),(8,'ahdf','德方物流',1,0),(9,'timedg','万家通',1,0),(10,'ztong','智通物流',1,0),(11,'xindan','新蛋物流',1,0),(12,'bgpyghx','挂号信',1,0),(13,'XFHONG','鑫飞鸿物流快递',1,0),(14,'ALP','阿里物流',1,0),(15,'BFWL','滨发物流',1,0),(16,'SJWL','宋军物流',1,0),(17,'SHUNFAWL','顺发物流',1,0),(18,'TIANHEWL','天河物流',1,0),(19,'YBWL','邮联物流',1,0),(20,'SWHY','盛旺货运',1,0),(21,'TSWL','汤氏物流',1,0),(22,'YUANYUANWL','圆圆物流',1,0),(23,'BALIANGWL','八梁物流',1,0),(24,'ZGWL','振刚物流',1,0),(25,'JIAYU','佳宇物流',1,0),(26,'SHHX','昊昕物流',1,0),(27,'ande','安得物流',1,0),(28,'ppbyb','贝邮宝',1,0),(29,'dida','递达快递',1,0),(30,'jppost','日本邮政',1,0),(31,'intmail','中国邮政',96,0),(32,'HENGCHENGWL','恒诚物流',1,0),(33,'HENGFENGWL','恒丰物流',1,0),(34,'gdems','广东ems快递',1,0),(35,'xlyt','祥龙运通',1,0),(36,'gjbg','国际包裹',1,0),(37,'uex','UEX',1,0),(38,'singpost','新加坡邮政',1,0),(39,'guangdongyouzhengwuliu','广东邮政',1,0),(40,'bht','BHT',1,0),(41,'cces','CCES快递',1,0),(42,'cloudexpress','CE易欧通国际速递',1,0),(43,'dasu','达速物流',1,0),(44,'pfcexpress','皇家物流',1,0),(45,'hjs','猴急送',1,0),(46,'huilian','辉联物流',1,0),(47,'huanqiu','环球速运',1,0),(48,'huada','华达快运',1,0),(49,'htwd','华通务达物流',1,0),(50,'hipito','海派通',1,0),(51,'hqtd','环球通达',1,0),(52,'airgtc','航空快递',1,0),(53,'haoyoukuai','好又快物流',1,0),(54,'hanrun','韩润物流',1,0),(55,'ccd','河南次晨达',1,0),(56,'hfwuxi','和丰同城',1,0),(57,'Sky','荷兰',1,0),(58,'hongxun','鸿讯物流',1,0),(59,'hongjie','宏捷国际物流',1,0),(60,'httx56','汇通天下物流',1,0),(61,'lqht','恒通快递',1,0),(62,'jinguangsudikuaijian','京广速递快件',1,0),(63,'junfengguoji','骏丰国际速递',1,0),(64,'jiajiatong56','佳家通',1,0),(65,'jrypex','吉日优派',1,0),(66,'jinchengwuliu','锦程国际物流',1,0),(67,'jgwl','景光物流',1,0),(68,'pzhjst','急顺通',1,0),(69,'ruexp','捷网俄全通',1,0),(70,'jmjss','金马甲',1,0),(71,'lanhu','蓝弧快递',1,0),(72,'ltexp','乐天速递',1,0),(73,'lutong','鲁通快运',1,0),(74,'ledii','乐递供应链',1,0),(75,'lundao','论道国际物流',1,0),(76,'mailikuaidi','麦力快递',1,0),(77,'mchy','木春货运',1,0),(78,'meiquick','美快国际物流',1,0),(79,'valueway','美通快递',1,0),(80,'nuoyaao','偌亚奥国际',1,0),(81,'euasia','欧亚专线',1,0),(82,'pca','澳大利亚PCA快递',1,0),(83,'pingandatengfei','平安达腾飞',1,0),(84,'pjbest','品骏快递',1,0),(85,'qbexpress','秦邦快运',1,0),(86,'quanxintong','全信通快递',1,0),(87,'quansutong','全速通国际快递',1,0),(88,'qinyuan','秦远物流',1,0),(89,'qichen','启辰国际物流',1,0),(90,'quansu','全速快运',1,0),(91,'qzx56','全之鑫物流',1,0),(92,'qskdyxgs','千顺快递',1,0),(93,'runhengfeng','全时速运',1,0),(94,'rytsd','日益通速递',1,0),(95,'ruidaex','瑞达国际速递',1,0),(96,'shiyun','世运快递',1,0),(97,'sfift','十方通物流',1,0),(98,'stkd','顺通快递',1,0),(99,'bgn','布谷鸟快递',1,0),(100,'jiahuier','佳惠尔快递',1,0),(101,'pingyou','小包',1,0),(102,'yumeijie','誉美捷快递',1,0),(103,'meilong','美龙快递',1,0),(104,'guangtong','广通速递',1,0),(105,'STARS','星晨急便',1,0),(106,'NANHANG','中国南方航空股份有限公司',1,0),(107,'lanbiao','蓝镖快递',1,0),(109,'baotongda','宝通达物流',1,0),(110,'dashun','大顺物流',1,0),(111,'dada','大达物流',1,0),(112,'fangfangda','方方达物流',1,0),(113,'hebeijianhua','河北建华物流',1,0),(114,'haolaiyun','好来运快递',1,0),(115,'jinyue','晋越快递',1,0),(116,'kuaitao','快淘快递',1,0),(117,'peixing','陪行物流',1,0),(118,'hkpost','香港邮政',1,0),(119,'ytfh','一统飞鸿快递',1,0),(120,'zhongxinda','中信达快递',1,0),(121,'zhongtian','中天快运',1,0),(122,'zuochuan','佐川急便',1,0),(123,'chengguang','程光快递',1,0),(124,'cszx','城市之星',1,0),(125,'chuanzhi','传志快递',1,0),(126,'feibao','飞豹快递',1,0),(127,'huiqiang','汇强快递',1,0),(128,'lejiedi','乐捷递',1,0),(129,'lijisong','成都立即送快递',1,0),(130,'minbang','民邦速递',1,0),(131,'ocs','OCS国际快递',1,0),(132,'santai','三态速递',1,0),(133,'saiaodi','赛澳递',1,0),(134,'jingdong','京东快递',1,0),(135,'zengyi','增益快递',1,0),(136,'fanyu','凡宇速递',1,0),(137,'fengda','丰达快递',1,0),(138,'coe','东方快递',1,0),(139,'ees','百福东方快递',1,0),(140,'disifang','递四方速递',1,0),(141,'rufeng','如风达快递',1,0),(142,'changtong','长通物流',1,0),(143,'chengshi100','城市100快递',1,0),(144,'feibang','飞邦物流',1,0),(145,'haosheng','昊盛物流',1,0),(146,'yinsu','音速速运',1,0),(147,'kuanrong','宽容物流',1,0),(148,'tongcheng','通成物流',1,0),(149,'tonghe','通和天下物流',1,0),(150,'zhima','芝麻开门',1,0),(151,'ririshun','日日顺物流',1,0),(152,'anxun','安迅物流',1,0),(153,'baiqian','百千诚国际物流',1,0),(154,'chukouyi','出口易',1,0),(155,'diantong','店通快递',1,0),(156,'dajin','大金物流',1,0),(157,'feite','飞特物流',1,0),(159,'gnxb','国内小包',1,0),(160,'huacheng','华诚物流',1,0),(161,'huahan','华翰物流',1,0),(162,'hengyu','恒宇运通',1,0),(163,'huahang','华航快递',1,0),(164,'jiuyi','久易快递',1,0),(165,'jiete','捷特快递',1,0),(166,'jingshi','京世物流',1,0),(167,'kuayue','跨越快递',1,0),(168,'mengsu','蒙速快递',1,0),(169,'nanbei','南北快递',1,0),(171,'pinganda','平安达快递',1,0),(172,'ruifeng','瑞丰速递',1,0),(173,'rongqing','荣庆物流',1,0),(174,'suijia','穗佳物流',1,0),(175,'simai','思迈快递',1,0),(176,'suteng','速腾快递',1,0),(177,'shengbang','晟邦物流',1,0),(178,'suchengzhaipei','速呈宅配',1,0),(179,'wuhuan','五环速递',1,0),(180,'xingchengzhaipei','星程宅配',1,0),(181,'yinjie','顺捷丰达',1,0),(183,'yanwen','燕文物流',1,0),(184,'zongxing','纵行物流',1,0),(185,'aae','AAE快递',1,0),(186,'dhl','DHL快递',1,0),(187,'feihu','飞狐快递',1,0),(188,'shunfeng','顺丰速运',92,1),(189,'spring','春风物流',1,0),(190,'yidatong','易达通快递',1,0),(191,'PEWKEE','彪记快递',1,0),(192,'PHOENIXEXP','凤凰快递',1,0),(193,'CNGLS','GLS快递',1,0),(194,'BHTEXP','华慧快递',1,0),(195,'B2B','卡行天下',1,0),(196,'PEISI','配思货运',1,0),(197,'SUNDAPOST','上大物流',1,0),(198,'SUYUE','苏粤货运',1,0),(199,'F5XM','伍圆速递',1,0),(200,'GZWENJIE','文捷航空速递',1,0),(201,'yuancheng','远成物流',1,0),(202,'dpex','DPEX快递',1,0),(203,'anjie','安捷快递',1,0),(204,'jldt','嘉里大通',1,0),(205,'yousu','优速快递',1,0),(206,'wanbo','万博快递',1,0),(207,'sure','速尔物流',1,0),(208,'sutong','速通物流',1,0),(209,'JUNCHUANWL','骏川物流',1,0),(210,'guada','冠达快递',1,0),(211,'dsu','D速快递',1,0),(212,'LONGSHENWL','龙胜物流',1,0),(213,'abc','爱彼西快递',1,0),(214,'eyoubao','E邮宝',1,0),(215,'aol','AOL快递',1,0),(216,'jixianda','急先达物流',1,0),(217,'haihong','山东海红快递',1,0),(218,'feiyang','飞洋快递',1,0),(219,'rpx','RPX保时达',1,0),(220,'zhaijisong','宅急送',1,0),(221,'tiantian','天天快递',99,0),(222,'yunwuliu','云物流',1,0),(223,'jiuye','九曳供应链',1,0),(224,'bsky','百世快运',1,0),(225,'higo','黑狗物流',1,0),(226,'arke','方舟速递',1,0),(227,'zwsy','中外速运',1,0),(228,'jxy','吉祥邮',1,0),(229,'aramex','Aramex',1,0),(230,'guotong','国通快递',1,0),(231,'jiayi','佳怡物流',1,0),(232,'longbang','龙邦快运',1,0),(233,'minhang','民航快递',1,0),(234,'quanyi','全一快递',1,0),(235,'quanchen','全晨快递',1,0),(236,'usps','USPS快递',1,0),(237,'xinbang','新邦物流',1,0),(238,'yuanzhi','元智捷诚快递',1,0),(239,'zhongyou','中邮物流',1,0),(240,'yuxin','宇鑫物流',1,0),(241,'cnpex','中环快递',1,0),(242,'shengfeng','盛丰物流',1,0),(243,'yuantong','圆通速递',97,1),(244,'jiayunmei','加运美物流',1,0),(245,'ywfex','源伟丰快递',1,0),(246,'xinfeng','信丰物流',1,0),(247,'wanxiang','万象物流',1,0),(248,'menduimen','门对门',1,0),(249,'mingliang','明亮物流',1,0),(250,'fengxingtianxia','风行天下',1,0),(251,'gongsuda','共速达物流',1,0),(252,'zhongtong','中通快递',100,1),(253,'quanritong','全日通快递',1,0),(254,'ems','EMS',1,1),(255,'wanjia','万家物流',1,0),(256,'yuntong','运通快递',1,0),(257,'feikuaida','飞快达物流',1,0),(258,'haimeng','海盟速递',1,0),(259,'zhongsukuaidi','中速快件',1,0),(260,'yuefeng','越丰快递',1,0),(261,'shenghui','盛辉物流',1,0),(262,'datian','大田物流',1,0),(263,'quanjitong','全际通快递',1,0),(264,'longlangkuaidi','隆浪快递',1,0),(265,'neweggozzo','新蛋奥硕物流',1,0),(266,'shentong','申通快递',95,1),(267,'haiwaihuanqiu','海外环球',1,0),(268,'yad','源安达快递',1,0),(269,'jindawuliu','金大物流',1,0),(270,'sevendays','七天连锁',1,0),(271,'tnt','TNT快递',1,0),(272,'huayu','天地华宇物流',1,0),(273,'lianhaotong','联昊通快递',1,0),(274,'nengda','港中能达快递',1,0),(275,'LBWL','联邦物流',1,0),(276,'ontrac','onTrac',1,0),(277,'feihang','原飞航快递',1,0),(278,'bangsongwuliu','邦送物流',1,0),(279,'huaxialong','华夏龙物流',1,0),(280,'ztwy','中天万运快递',1,0),(281,'fkd','飞康达物流',1,0),(282,'anxinda','安信达快递',1,0),(283,'quanfeng','全峰快递',1,0),(284,'shengan','圣安物流',1,0),(285,'jiaji','佳吉物流',1,0),(286,'yunda','韵达快运',94,0),(287,'ups','UPS快递',1,0),(288,'debang','德邦物流',1,0),(289,'yafeng','亚风速递',1,0),(290,'kuaijie','快捷速递',98,0),(291,'huitong','百世快递',93,0),(293,'aolau','AOL澳通速递',1,0),(294,'anneng','安能物流',1,0),(295,'auexpress','澳邮中国快运',1,0),(296,'exfresh','安鲜达',1,0),(297,'bcwelt','BCWELT',1,0),(298,'youzhengguonei','挂号信',1,0),(299,'xiaohongmao','北青小红帽',1,0),(300,'lbbk','宝凯物流',1,0),(301,'byht','博源恒通',1,0),(302,'idada','百成大达物流',1,0),(303,'baitengwuliu','百腾物流',1,0),(304,'birdex','笨鸟海淘',1,0),(305,'bsht','百事亨通',1,0),(306,'dayang','大洋物流快递',1,0),(307,'dechuangwuliu','德创物流',1,0),(308,'donghanwl','东瀚物流',1,0),(309,'dfpost','达方物流',1,0),(310,'dongjun','东骏快捷物流',1,0),(311,'dindon','叮咚澳洲转运',1,0),(312,'dazhong','大众佐川急便',1,0),(313,'decnlh','德中快递',1,0),(314,'dekuncn','德坤供应链',1,0),(315,'eshunda','俄顺达',1,0),(316,'ewe','EWE全球快递',1,0),(317,'fedexuk','FedEx英国',1,0),(318,'fox','FOX国际速递',1,0),(319,'rufengda','凡客如风达',1,0),(320,'fandaguoji','颿达国际快递',1,0),(321,'hnfy','飞鹰物流',1,0),(322,'flysman','飞力士物流',1,0),(323,'sccod','丰程物流',1,0),(324,'farlogistis','泛远国际物流',1,0),(325,'gsm','GSM',1,0),(326,'gaticn','GATI快递',1,0),(327,'gts','GTS快递',1,0),(328,'gangkuai','港快速递',1,0),(329,'gtsd','高铁速递',1,0),(330,'tiandihuayu','华宇物流',1,0),(331,'huangmajia','黄马甲快递',1,0),(332,'ucs','合众速递',1,0),(333,'huoban','伙伴物流',1,0),(334,'nedahm','红马速递',1,0),(335,'huiwen','汇文配送',1,0),(336,'nmhuahe','华赫物流',1,0),(337,'hangyu','航宇快递',1,0),(338,'minsheng','闽盛物流',1,0),(339,'riyu','日昱物流',1,0),(340,'sxhongmajia','山西红马甲',1,0),(341,'syjiahuier','沈阳佳惠尔',1,0),(342,'shlindao','上海林道货运',1,0),(343,'shunjiefengda','顺捷丰达',1,0),(344,'subida','速必达物流',1,0),(345,'bphchina','速方国际物流',1,0),(346,'sendtochina','速递中国',1,0),(347,'suning','苏宁快递',1,0),(348,'sihaiet','四海快递',1,0),(349,'tianzong','天纵物流',1,0),(350,'chinatzx','同舟行物流',1,0),(351,'nntengda','腾达速递',1,0),(352,'sd138','泰国138',1,0),(353,'tongdaxing','通达兴物流',1,0),(354,'tlky','天联快运',1,0),(355,'youshuwuliu','UC优速快递',1,0),(356,'ueq','UEQ快递',1,0),(357,'weitepai','微特派快递',1,0),(358,'wtdchina','威时沛运',1,0),(359,'wzhaunyun','微转运',1,0),(360,'gswtkd','万通快递',1,0),(361,'wotu','渥途国际速运',1,0),(362,'xiyoute','希优特快递',1,0),(363,'xilaikd','喜来快递',1,0),(364,'xsrd','鑫世锐达',1,0),(365,'xtb','鑫通宝物流',1,0),(366,'xintianjie','信天捷快递',1,0),(367,'xaetc','西安胜峰',1,0),(368,'xianfeng','先锋快递',1,0),(369,'sunspeedy','新速航',1,0),(370,'xipost','西邮寄',1,0),(371,'sinatone','信联通',1,0),(372,'sunjex','新杰物流',1,0),(373,'yundaexus','韵达美国件',1,0),(374,'yxwl','宇鑫物流',1,0),(375,'yitongda','易通达',1,0),(376,'yiqiguojiwuliu','一柒物流',1,0),(377,'yilingsuyun','亿领速运',1,0),(378,'yujiawuliu','煜嘉物流',1,0),(379,'gml','英脉物流',1,0),(380,'leopard','云豹国际货运',1,0),(381,'czwlyn','云南中诚',1,0),(382,'sdyoupei','优配速运',1,0),(383,'yongchang','永昌物流',1,0),(384,'yufeng','御风速运',1,0),(385,'yamaxunwuliu','亚马逊物流',1,0),(386,'yousutongda','优速通达',1,0),(387,'yishunhang','亿顺航',1,0),(388,'yongwangda','永旺达快递',1,0),(389,'ecmscn','易满客',1,0),(390,'yingchao','英超物流',1,0),(391,'edlogistics','益递物流',1,0),(392,'yyexpress','远洋国际',1,0),(393,'onehcang','一号仓',1,0),(394,'ycgky','远成快运',1,0),(395,'lineone','一号线',1,0),(396,'ypsd','壹品速递',1,0),(397,'vipexpress','鹰运国际速递',1,0),(398,'el56','易联通达物流',1,0),(399,'yyqc56','一运全成物流',1,0),(400,'zhongtie','中铁快运',1,0),(401,'ZTKY','中铁物流',1,0),(402,'zzjh','郑州建华快递',1,0),(403,'zhongruisudi','中睿速递',1,0),(404,'zhongwaiyun','中外运速递',1,0),(405,'zengyisudi','增益速递',1,0),(406,'sujievip','郑州速捷',1,0),(407,'zhichengtongda','至诚通达快递',1,0),(408,'zhdwl','众辉达物流',1,0),(409,'kuachangwuliu','直邮易',1,0),(410,'topspeedex','中运全速',1,0),(411,'otobv','中欧快运',1,0),(412,'zsky123','准实快运',1,0),(413,'donghong','东红物流',1,0),(414,'kuaiyouda','快优达速递',1,0),(415,'balunzhi','巴伦支快递',1,0),(416,'hutongwuliu','户通物流',1,0),(417,'xianchenglian','西安城联速递',1,0),(418,'youbijia','邮必佳',1,0),(419,'feiyuan','飞远物流',1,0),(420,'chengji','城际速递',1,0),(421,'huaqi','华企快运',1,0),(422,'yibang','一邦快递',1,0),(423,'citylink','CityLink快递',1,0),(424,'meixi','美西快递',1,0),(425,'acs','ACS',1,0); --- -------------------------------------------------------- - --- --- 表的结构 `eb_routine_access_token` --- - -CREATE TABLE IF NOT EXISTS `eb_routine_access_token` ( - `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '小程序access_token表ID', - `access_token` varchar(256) NOT NULL COMMENT 'openid', - `stop_time` int(11) unsigned NOT NULL COMMENT '添加时间', +-- ---------------------------- +-- Table structure for eb_routine_access_token +-- ---------------------------- +DROP TABLE IF EXISTS `eb_routine_access_token`; +CREATE TABLE `eb_routine_access_token` ( + `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '小程序access_token表ID', + `access_token` varchar(256) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT 'openid', + `stop_time` int(11) UNSIGNED NOT NULL COMMENT '添加时间', PRIMARY KEY (`id`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='小程序access_token表' AUTO_INCREMENT=7 ; +) ENGINE = InnoDB AUTO_INCREMENT = 7 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '小程序access_token表' ROW_FORMAT = DYNAMIC; --- --- 转存表中的数据 `eb_routine_access_token` --- +-- ---------------------------- +-- Records of eb_routine_access_token +-- ---------------------------- +INSERT INTO `eb_routine_access_token` VALUES (1, '20_z3MAutcbznCSyQPqMVOQVRUktcvLYUXAAICpCMXkpu5rLoVnBB0u88rnJr1sWDJlwj-S6aVhmswmLdW86e9Bg2ugd3BOayE6ntY6FfckSXWgvW2y5N0bLkBxHpCjJH2bQpuvnmMIZr08G32hWSQfACAZVT', 1554809658); -INSERT INTO `eb_routine_access_token` (`id`, `access_token`, `stop_time`) VALUES -(1, '20_z3MAutcbznCSyQPqMVOQVRUktcvLYUXAAICpCMXkpu5rLoVnBB0u88rnJr1sWDJlwj-S6aVhmswmLdW86e9Bg2ugd3BOayE6ntY6FfckSXWgvW2y5N0bLkBxHpCjJH2bQpuvnmMIZr08G32hWSQfACAZVT', 1554809658); - --- -------------------------------------------------------- - --- --- 表的结构 `eb_routine_form_id` --- - -CREATE TABLE IF NOT EXISTS `eb_routine_form_id` ( - `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '表单ID表ID', - `uid` int(11) DEFAULT '0' COMMENT '用户uid', - `form_id` varchar(36) NOT NULL COMMENT '表单ID', - `stop_time` int(11) unsigned DEFAULT NULL COMMENT '表单ID失效时间', - `status` tinyint(1) unsigned DEFAULT '0' COMMENT '状态1 未使用 2不能使用', +-- ---------------------------- +-- Table structure for eb_routine_form_id +-- ---------------------------- +DROP TABLE IF EXISTS `eb_routine_form_id`; +CREATE TABLE `eb_routine_form_id` ( + `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '表单ID表ID', + `uid` int(11) NULL DEFAULT 0 COMMENT '用户uid', + `form_id` varchar(36) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '表单ID', + `stop_time` int(11) UNSIGNED NULL DEFAULT NULL COMMENT '表单ID失效时间', + `status` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '状态1 未使用 2不能使用', PRIMARY KEY (`id`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='表单id表记录表' AUTO_INCREMENT=1 ; +) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '表单id表记录表' ROW_FORMAT = DYNAMIC; --- -------------------------------------------------------- - --- --- 表的结构 `eb_routine_qrcode` --- - -CREATE TABLE IF NOT EXISTS `eb_routine_qrcode` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '微信二维码ID', - `third_type` varchar(32) NOT NULL COMMENT '二维码类型 spread(用户推广) product_spread(产品推广)', - `third_id` int(11) unsigned NOT NULL COMMENT '用户id', - `status` tinyint(1) unsigned DEFAULT '1' COMMENT '状态 0不可用 1可用', - `add_time` varchar(255) DEFAULT NULL COMMENT '添加时间', - `page` varchar(255) DEFAULT NULL COMMENT '小程序页面路径带参数', - `qrcode_url` varchar(255) DEFAULT NULL COMMENT '小程序二维码路径', - `url_time` int(11) unsigned DEFAULT NULL COMMENT '二维码添加时间', +-- ---------------------------- +-- Table structure for eb_routine_qrcode +-- ---------------------------- +DROP TABLE IF EXISTS `eb_routine_qrcode`; +CREATE TABLE `eb_routine_qrcode` ( + `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '微信二维码ID', + `third_type` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '二维码类型 spread(用户推广) product_spread(产品推广)', + `third_id` int(11) UNSIGNED NOT NULL COMMENT '用户id', + `status` tinyint(1) UNSIGNED NULL DEFAULT 1 COMMENT '状态 0不可用 1可用', + `add_time` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '添加时间', + `page` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '小程序页面路径带参数', + `qrcode_url` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '小程序二维码路径', + `url_time` int(11) UNSIGNED NULL DEFAULT NULL COMMENT '二维码添加时间', PRIMARY KEY (`id`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='小程序二维码管理表' AUTO_INCREMENT=1 ; +) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '小程序二维码管理表' ROW_FORMAT = DYNAMIC; --- -------------------------------------------------------- - --- --- 表的结构 `eb_routine_template` --- - -CREATE TABLE IF NOT EXISTS `eb_routine_template` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '模板id', - `tempkey` char(50) NOT NULL COMMENT '模板编号', - `name` char(100) NOT NULL COMMENT '模板名', - `content` varchar(1000) NOT NULL COMMENT '回复内容', - `tempid` char(100) DEFAULT NULL COMMENT '模板ID', - `add_time` varchar(15) NOT NULL COMMENT '添加时间', - `status` tinyint(4) NOT NULL DEFAULT '0' COMMENT '状态', +-- ---------------------------- +-- Table structure for eb_routine_template +-- ---------------------------- +DROP TABLE IF EXISTS `eb_routine_template`; +CREATE TABLE `eb_routine_template` ( + `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '模板id', + `tempkey` char(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '模板编号', + `name` char(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '模板名', + `content` varchar(1000) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '回复内容', + `tempid` char(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '模板ID', + `add_time` varchar(15) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '添加时间', + `status` tinyint(4) NOT NULL DEFAULT 0 COMMENT '状态', PRIMARY KEY (`id`) USING BTREE, - KEY `tempkey` (`tempkey`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='微信模板' AUTO_INCREMENT=25 ; + INDEX `tempkey`(`tempkey`) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 23 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '微信模板' ROW_FORMAT = DYNAMIC; --- --- 转存表中的数据 `eb_routine_template` --- +-- ---------------------------- +-- Records of eb_routine_template +-- ---------------------------- -INSERT INTO `eb_routine_template` (`id`, `tempkey`, `name`, `content`, `tempid`, `add_time`, `status`) VALUES -(13, 'AT0007', '订单发货提醒', '订单号{{keyword1.DATA}}\n快递公司{{keyword2.DATA}}\n快递单号{{keyword3.DATA}}\n发货时间{{keyword4.DATA}}\n备注{{keyword5.DATA}}', 'CyPxnxg-9eRgXoYUKhXY4IqXI4hecaUzgEQGX76OXng', '1534469928', 1), -(14, 'AT0787', '退款成功通知', '订单号{{keyword1.DATA}}\n退款时间{{keyword2.DATA}}\n退款金额{{keyword3.DATA}}\n退款方式{{keyword4.DATA}}\n备注{{keyword5.DATA}}', 'iLHSBbVVtg_ijs-hVABl5p-yaBV8JxpInqXIZy2c5To', '1534469993', 1), -(15, 'AT0009', '订单支付成功通知', '单号{{keyword1.DATA}}\n下单时间{{keyword2.DATA}}\n订单状态{{keyword3.DATA}}\n支付金额{{keyword4.DATA}}\n支付方式{{keyword5.DATA}}', 'bfXGbrwl70jdlvCnO_vZ7AeXVDsziYQW7oGT2KXiDz4', '1534470043', 1), -(16, 'AT1173', '砍价成功通知', '商品名称{{keyword1.DATA}}\n砍价金额{{keyword2.DATA}}\n底价{{keyword3.DATA}}\n砍掉价格{{keyword4.DATA}}\n支付金额{{keyword5.DATA}}\n备注{{keyword6.DATA}}', 'l3JCopf5cgNLXtmziLTxkVTHtImHPmDyHp5wBRZd3SI', '1534470085', 1), -(17, 'AT0036', '退款通知', '订单编号{{keyword1.DATA}}\n退款原因{{keyword2.DATA}}\n退款时间{{keyword3.DATA}}\n退款金额{{keyword4.DATA}}\n退款方式{{keyword5.DATA}}', '14pyhB_6xYAXfEk_iVBbtLWkph0rAqompGPbuDP3CWo', '1534470134', 1), -(19, 'AT2430', '拼团取消通知', '活动名称{{keyword1.DATA}}\n订单编号{{keyword2.DATA}}\n订单金额{{keyword3.DATA}}', 'KynVVBJcoYgaTbcnAKuy5N0YpAa82xZG1KCQIlb-Ws8', '1553910500', 1), -(20, 'AT0310', '拼团失败通知', '商品名称{{keyword1.DATA}}\n失败原因{{keyword2.DATA}}\n订单号{{keyword3.DATA}}\n开团时间{{keyword4.DATA}}\n退款金额{{keyword5.DATA}}', 'uOXsl0qRtuMWhExHGk57Hf_GLkYT6q9m16U0bg95uIQ', '1553910844', 1), -(21, 'AT0051', '拼团成功通知', '活动名称{{keyword1.DATA}}\n团长{{keyword2.DATA}}\n成团时间{{keyword3.DATA}}\n拼团价{{keyword4.DATA}}', '4uXFnRF1jnpG1R0F71JOj-NCnYbGwcI20xgihfx8Xzs', '1553911022', 1), -(22, 'AT0541', '开团成功提醒', '开团时间{{keyword1.DATA}}\n截至时间{{keyword2.DATA}}\n产品名称{{keyword3.DATA}}\n单号{{keyword4.DATA}}\n支付金额{{keyword5.DATA}}', '6rU48pJrJS7Y1MixVyGMfQmrXRtOIZZjJtc7q9kwo24', '1555133496', 1), -(23, 'AT0241', '确认收货通知', '订单编号{{keyword1.DATA}}\n商品详情{{keyword2.DATA}}\n支付金额{{keyword3.DATA}}\n确认收货时间{{keyword4.DATA}}', 'PHBc48jjSoYiN402djcMjIXLIBolhVyQlBZ51MenyG0', '1557384781', 1), -(24, 'AT0329', '退款失败通知', '订单号{{keyword1.DATA}}\n商品名称{{keyword2.DATA}}\n退款金额{{keyword3.DATA}}\n失败原因{{keyword4.DATA}}', '_h2tCwZSfi7eai16x4gF8OR5NXG9OXkRsA4nLXrM4FY', '1557384804', 1); +INSERT INTO `eb_routine_template` (`id`,`tempkey`,`name`,`content`,`tempid`,`add_time`,`status`) VALUES (13,'AT0007','订单发货提醒','订单号{{keyword1.DATA}}\n快递公司{{keyword2.DATA}}\n快递单号{{keyword3.DATA}}\n发货时间{{keyword4.DATA}}\n备注{{keyword5.DATA}}','CyPxnxg-9eRgXoYUKhXY4IqXI4hecaUzgEQGX76OXng','1534469928',1),(14,'AT0787','退款成功通知','订单号{{keyword1.DATA}}\n退款时间{{keyword2.DATA}}\n退款金额{{keyword3.DATA}}\n退款方式{{keyword4.DATA}}\n备注{{keyword5.DATA}}','iLHSBbVVtg_ijs-hVABl5p-yaBV8JxpInqXIZy2c5To','1534469993',1),(15,'AT0009','订单支付成功通知','单号{{keyword1.DATA}}\n下单时间{{keyword2.DATA}}\n订单状态{{keyword3.DATA}}\n支付金额{{keyword4.DATA}}\n支付方式{{keyword5.DATA}}','bfXGbrwl70jdlvCnO_vZ7AeXVDsziYQW7oGT2KXiDz4','1534470043',1),(16,'AT1173','砍价成功通知','商品名称{{keyword1.DATA}}\n砍价金额{{keyword2.DATA}}\n底价{{keyword3.DATA}}\n砍掉价格{{keyword4.DATA}}\n支付金额{{keyword5.DATA}}\n备注{{keyword6.DATA}}','l3JCopf5cgNLXtmziLTxkVTHtImHPmDyHp5wBRZd3SI','1534470085',1),(17,'AT0036','退款通知','订单编号{{keyword1.DATA}}\n退款原因{{keyword2.DATA}}\n退款时间{{keyword3.DATA}}\n退款金额{{keyword4.DATA}}\n退款方式{{keyword5.DATA}}','14pyhB_6xYAXfEk_iVBbtLWkph0rAqompGPbuDP3CWo','1534470134',1),(19,'AT2430','拼团取消通知','活动名称{{keyword1.DATA}}\n订单编号{{keyword2.DATA}}\n订单金额{{keyword3.DATA}}','KynVVBJcoYgaTbcnAKuy5N0YpAa82xZG1KCQIlb-Ws8','1553910500',1),(20,'AT0310','拼团失败通知','商品名称{{keyword1.DATA}}\n失败原因{{keyword2.DATA}}\n订单号{{keyword3.DATA}}\n开团时间{{keyword4.DATA}}\n退款金额{{keyword5.DATA}}','uOXsl0qRtuMWhExHGk57Hf_GLkYT6q9m16U0bg95uIQ','1553910844',1),(21,'AT0051','拼团成功通知','活动名称{{keyword1.DATA}}\n团长{{keyword2.DATA}}\n成团时间{{keyword3.DATA}}\n拼团价{{keyword4.DATA}}','4uXFnRF1jnpG1R0F71JOj-NCnYbGwcI20xgihfx8Xzs','1553911022',1),(22,'AT0541','开团成功提醒','开团时间{{keyword1.DATA}}\n截至时间{{keyword2.DATA}}\n产品名称{{keyword3.DATA}}\n单号{{keyword4.DATA}}\n支付金额{{keyword5.DATA}}','6rU48pJrJS7Y1MixVyGMfQmrXRtOIZZjJtc7q9kwo24','1555133496',1),(23,'AT0241','确认收货通知','订单编号{{keyword1.DATA}}\n商品详情{{keyword2.DATA}}\n支付金额{{keyword3.DATA}}\n确认收货时间{{keyword4.DATA}}','PHBc48jjSoYiN402djcMjIXLIBolhVyQlBZ51MenyG0','1557384781',1),(24,'AT0329','退款失败通知','订单号{{keyword1.DATA}}\n商品名称{{keyword2.DATA}}\n退款金额{{keyword3.DATA}}\n失败原因{{keyword4.DATA}}','_h2tCwZSfi7eai16x4gF8OR5NXG9OXkRsA4nLXrM4FY','1557384804',1); --- -------------------------------------------------------- +-- ---------------------------- +-- Table structure for eb_store_bargain +-- ---------------------------- +DROP TABLE IF EXISTS `eb_store_bargain`; +CREATE TABLE `eb_store_bargain` ( + `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '砍价产品ID', + `product_id` int(11) UNSIGNED NOT NULL COMMENT '关联产品ID', + `title` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '砍价活动名称', + `image` varchar(150) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '砍价活动图片', + `unit_name` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '单位名', + `stock` int(11) UNSIGNED NULL DEFAULT NULL COMMENT '库存', + `sales` int(11) UNSIGNED NULL DEFAULT NULL COMMENT '销量', + `images` varchar(1000) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '砍价产品轮播图', + `start_time` int(11) UNSIGNED NOT NULL COMMENT '砍价开启时间', + `stop_time` int(11) UNSIGNED NOT NULL COMMENT '砍价结束时间', + `store_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '砍价产品名称', + `price` decimal(8, 2) UNSIGNED NULL DEFAULT NULL COMMENT '砍价金额', + `min_price` decimal(8, 2) UNSIGNED NULL DEFAULT NULL COMMENT '砍价商品最低价', + `num` int(11) UNSIGNED NULL DEFAULT NULL COMMENT '每次购买的砍价产品数量', + `bargain_max_price` decimal(8, 2) UNSIGNED NULL DEFAULT NULL COMMENT '用户每次砍价的最大金额', + `bargain_min_price` decimal(8, 2) UNSIGNED NULL DEFAULT NULL COMMENT '用户每次砍价的最小金额', + `bargain_num` int(11) UNSIGNED NOT NULL DEFAULT 1 COMMENT '用户每次砍价的次数', + `status` tinyint(1) UNSIGNED NOT NULL DEFAULT 1 COMMENT '砍价状态 0(到砍价时间不自动开启) 1(到砍价时间自动开启时间)', + `description` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '砍价详情', + `give_integral` decimal(10, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '反多少积分', + `info` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '砍价活动简介', + `cost` decimal(8, 2) UNSIGNED NULL DEFAULT NULL COMMENT '成本价', + `sort` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '排序', + `is_hot` tinyint(1) UNSIGNED NOT NULL DEFAULT 0 COMMENT '是否推荐0不推荐1推荐', + `is_del` tinyint(1) UNSIGNED NOT NULL DEFAULT 0 COMMENT '是否删除 0未删除 1删除', + `add_time` int(11) UNSIGNED NULL DEFAULT NULL COMMENT '添加时间', + `is_postage` tinyint(1) UNSIGNED NOT NULL DEFAULT 1 COMMENT '是否包邮 0不包邮 1包邮', + `postage` decimal(10, 2) UNSIGNED NULL DEFAULT NULL COMMENT '邮费', + `rule` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '砍价规则', + `look` int(11) UNSIGNED NULL DEFAULT 0 COMMENT '砍价产品浏览量', + `share` int(11) UNSIGNED NULL DEFAULT 0 COMMENT '砍价产品分享量', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 7 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '砍价表' ROW_FORMAT = DYNAMIC; --- --- 表的结构 `eb_store_cart` --- +-- ---------------------------- +-- Records of eb_store_bargain +-- ---------------------------- +INSERT INTO `eb_store_bargain` VALUES (1, 1, '拼团购 无线吸尘器F8 玫瑰金礼盒版', 'http://datong.crmeb.net/public/uploads/attach/2019/01/15/5c3dba1366885.jpg', '件', 988, 12, '[\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dba1366885.jpg\",\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dba4187461.jpg\",\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3db9de2b73a.jpg\"]', 1546272000, 1551283200, '无线吸尘器F8 玫瑰金礼盒版', 999.00, 10.00, 1, 50.00, 1.00, 1, 0, '', 1699.00, '无线吸尘器F8', 100.00, 1, 1, 1, 0, 1, 1.00, '', 73, 0); +INSERT INTO `eb_store_bargain` VALUES (2, 3, '加湿器 智能 白色', 'http://datong.crmeb.net/public/uploads/attach/2019/01/15/5c3dc0ef27068.jpg', '件', 999, 1, '[\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dc0ef27068.jpg\",\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dc15ba1972.jpg\"]', 1546272000, 1551283200, '智米加湿器 白色 4L', 249.00, 1.00, 1, 10.00, 0.01, 1, 0, '', 249.00, '加湿器 智能 白色', 10.00, 0, 1, 1, 0, 1, 0.00, '', 15, 0); +INSERT INTO `eb_store_bargain` VALUES (3, 1, '测试', 'http://datong.crmeb.net/public/uploads/attach/2019/01/15/5c3dba1366885.jpg', '件', 576, 41, '[\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dba1366885.jpg\",\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dba4187461.jpg\",\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3db9de2b73a.jpg\"]', 1553011200, 1556553600, '无线吸尘器F8 玫瑰金礼盒版', 2.00, 0.00, 1, 2.00, 1.00, 1, 1, NULL, 1699.00, '测试', 100.00, 1, 1, 0, NULL, 1, 1.00, NULL, 388, 24); +INSERT INTO `eb_store_bargain` VALUES (4, 2, '测试2', 'http://datong.crmeb.net/public/uploads/attach/2019/01/15/5c3dbc27c69c7.jpg', '件', 992, 15, '[\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dbc27c69c7.jpg\",\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dbc6a38fab.jpg\"]', 1553011200, 1556553600, '智能马桶盖 AI版', 3.00, 0.00, 1, 2.00, 1.00, 1, 1, '只能马桶限时砍价活动<p></p>', 1999.00, '测试2', 1500.00, 0, 1, 0, NULL, 1, 0.00, '<p>没人限购一件哦</p><p>活动截止时间:2019-05-01</p><p></p>', 137, 13); +INSERT INTO `eb_store_bargain` VALUES (5, 3, '砍价活动测试产品', 'http://datong.crmeb.net/public/uploads/attach/2019/01/15/5c3dc0ef27068.jpg', '件', 999, 41, '[\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dc0ef27068.jpg\",\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dc15ba1972.jpg\"]', 1554912000, 1555689600, '智米加湿器 白色', 11.00, 0.00, 1, 3.00, 2.00, 1, 1, NULL, 249.00, '砍价活动测试产品', 10.00, 0, 1, 0, NULL, 1, 0.00, NULL, 5, 2); +INSERT INTO `eb_store_bargain` VALUES (6, 4, '10人砍价', 'http://datong.crmeb.net/public/uploads/attach/2019/01/15/5c3dc23646fff.jpg', '件', 418, 82, '[\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dc23646fff.jpg\",\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dc15ba1972.jpg\",\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dc0ef27068.jpg\",\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dbc6a38fab.jpg\"]', 1554825600, 1556553600, '互联网电热水器1A', 100.00, 0.00, 1, 11.00, 9.00, 1, 1, NULL, 999.00, '10人砍价', 888.00, 0, 1, 0, NULL, 1, 0.00, NULL, 46, 5); -CREATE TABLE IF NOT EXISTS `eb_store_cart` ( - `id` bigint(8) unsigned NOT NULL AUTO_INCREMENT COMMENT '购物车表ID', - `uid` int(10) unsigned NOT NULL COMMENT '用户ID', - `type` varchar(32) NOT NULL COMMENT '类型', - `product_id` int(10) unsigned NOT NULL COMMENT '商品ID', - `product_attr_unique` varchar(16) NOT NULL DEFAULT '' COMMENT '商品属性', - `cart_num` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT '商品数量', - `add_time` int(10) unsigned NOT NULL COMMENT '添加时间', - `is_pay` tinyint(1) NOT NULL DEFAULT '0' COMMENT '0 = 未购买 1 = 已购买', - `is_del` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否删除', - `is_new` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否为立即购买', - `combination_id` int(11) unsigned DEFAULT '0' COMMENT '拼团id', - `seckill_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '秒杀产品ID', - `bargain_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '砍价id', +-- ---------------------------- +-- Table structure for eb_store_bargain_user +-- ---------------------------- +DROP TABLE IF EXISTS `eb_store_bargain_user`; +CREATE TABLE `eb_store_bargain_user` ( + `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '用户参与砍价表ID', + `uid` int(11) UNSIGNED NULL DEFAULT NULL COMMENT '用户ID', + `bargain_id` int(11) UNSIGNED NULL DEFAULT NULL COMMENT '砍价产品id', + `bargain_price_min` decimal(8, 2) UNSIGNED NULL DEFAULT NULL COMMENT '砍价的最低价', + `bargain_price` decimal(8, 2) NULL DEFAULT NULL COMMENT '砍价金额', + `price` decimal(8, 2) UNSIGNED NULL DEFAULT NULL COMMENT '砍掉的价格', + `status` tinyint(1) UNSIGNED NOT NULL DEFAULT 0 COMMENT '状态 1参与中 2 活动结束参与失败 3活动结束参与成功', + `add_time` int(11) UNSIGNED NULL DEFAULT NULL COMMENT '参与时间', + `is_del` tinyint(1) NOT NULL DEFAULT 0 COMMENT '是否取消', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '用户参与砍价表' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Table structure for eb_store_bargain_user_help +-- ---------------------------- +DROP TABLE IF EXISTS `eb_store_bargain_user_help`; +CREATE TABLE `eb_store_bargain_user_help` ( + `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '砍价用户帮助表ID', + `uid` int(11) UNSIGNED NULL DEFAULT NULL COMMENT '帮助的用户id', + `bargain_id` int(11) UNSIGNED NULL DEFAULT NULL COMMENT '砍价产品ID', + `bargain_user_id` int(11) UNSIGNED NULL DEFAULT NULL COMMENT '用户参与砍价表id', + `price` decimal(8, 2) UNSIGNED NULL DEFAULT NULL COMMENT '帮助砍价多少金额', + `add_time` int(11) UNSIGNED NULL DEFAULT NULL COMMENT '添加时间', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '砍价用户帮助表' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Table structure for eb_store_cart +-- ---------------------------- +DROP TABLE IF EXISTS `eb_store_cart`; +CREATE TABLE `eb_store_cart` ( + `id` bigint(8) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '购物车表ID', + `uid` int(10) UNSIGNED NOT NULL COMMENT '用户ID', + `type` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '类型', + `product_id` int(10) UNSIGNED NOT NULL COMMENT '商品ID', + `product_attr_unique` varchar(16) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '商品属性', + `cart_num` smallint(5) UNSIGNED NOT NULL DEFAULT 0 COMMENT '商品数量', + `add_time` int(10) UNSIGNED NOT NULL COMMENT '添加时间', + `is_pay` tinyint(1) NOT NULL DEFAULT 0 COMMENT '0 = 未购买 1 = 已购买', + `is_del` tinyint(1) NOT NULL DEFAULT 0 COMMENT '是否删除', + `is_new` tinyint(1) NOT NULL DEFAULT 0 COMMENT '是否为立即购买', + `combination_id` int(11) UNSIGNED NULL DEFAULT 0 COMMENT '拼团id', + `seckill_id` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '秒杀产品ID', + `bargain_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '砍价id', PRIMARY KEY (`id`) USING BTREE, - KEY `user_id` (`uid`) USING BTREE, - KEY `goods_id` (`product_id`) USING BTREE, - KEY `uid` (`uid`,`is_pay`) USING BTREE, - KEY `uid_2` (`uid`,`is_del`) USING BTREE, - KEY `uid_3` (`uid`,`is_new`) USING BTREE, - KEY `type` (`type`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='购物车表' AUTO_INCREMENT=1 ; + INDEX `user_id`(`uid`) USING BTREE, + INDEX `goods_id`(`product_id`) USING BTREE, + INDEX `uid`(`uid`, `is_pay`) USING BTREE, + INDEX `uid_2`(`uid`, `is_del`) USING BTREE, + INDEX `uid_3`(`uid`, `is_new`) USING BTREE, + INDEX `type`(`type`) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '购物车表' ROW_FORMAT = DYNAMIC; --- -------------------------------------------------------- - --- --- 表的结构 `eb_store_category` --- - -CREATE TABLE IF NOT EXISTS `eb_store_category` ( +-- ---------------------------- +-- Table structure for eb_store_category +-- ---------------------------- +DROP TABLE IF EXISTS `eb_store_category`; +CREATE TABLE `eb_store_category` ( `id` mediumint(11) NOT NULL AUTO_INCREMENT COMMENT '商品分类表ID', `pid` mediumint(11) NOT NULL COMMENT '父id', - `cate_name` varchar(100) NOT NULL COMMENT '分类名称', + `cate_name` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '分类名称', `sort` mediumint(11) NOT NULL COMMENT '排序', - `pic` varchar(128) NOT NULL DEFAULT '' COMMENT '图标', - `is_show` tinyint(1) NOT NULL DEFAULT '1' COMMENT '是否推荐', + `pic` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '图标', + `is_show` tinyint(1) NOT NULL DEFAULT 1 COMMENT '是否推荐', `add_time` int(11) NOT NULL COMMENT '添加时间', PRIMARY KEY (`id`) USING BTREE, - KEY `pid` (`pid`) USING BTREE, - KEY `is_base` (`is_show`) USING BTREE, - KEY `sort` (`sort`) USING BTREE, - KEY `add_time` (`add_time`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='商品分类表' AUTO_INCREMENT=29 ; + INDEX `pid`(`pid`) USING BTREE, + INDEX `is_base`(`is_show`) USING BTREE, + INDEX `sort`(`sort`) USING BTREE, + INDEX `add_time`(`add_time`) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 29 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '商品分类表' ROW_FORMAT = DYNAMIC; --- --- 转存表中的数据 `eb_store_category` --- +-- ---------------------------- +-- Records of eb_store_category +-- ---------------------------- +INSERT INTO `eb_store_category` VALUES (1, 0, '热门推荐', 2, 'http://datong.crmeb.net/public/uploads/attach/2019/01/15/5c3db8b933d92.jpg', 1, 1547205038); +INSERT INTO `eb_store_category` VALUES (2, 1, '热门促销', 0, 'http://datong.crmeb.net/public/uploads/attach/2019/01/15/5c3dba1366885.jpg', 1, 1547205055); +INSERT INTO `eb_store_category` VALUES (3, 1, '折扣专区', 0, 'http://datong.crmeb.net/public/uploads/attach/2019/01/15/5c3dc0ef27068.jpg', 1, 1547550363); +INSERT INTO `eb_store_category` VALUES (4, 1, '新品上线', 0, 'http://datong.crmeb.net/public/uploads/attach/2019/01/15/5c3dbc6a38fab.jpg', 1, 1553783295); +INSERT INTO `eb_store_category` VALUES (6, 0, '居家生活', 1, 'http://datong.crmeb.net/public/uploads/attach/2019/01/15/5c3db8b933d92.jpg', 1, 1553783609); +INSERT INTO `eb_store_category` VALUES (7, 6, '床垫', 1, 'http://datong.crmeb.net/public/uploads/attach/2019/03/29/5c9de8b7c5cc5.png', 1, 1553784473); +INSERT INTO `eb_store_category` VALUES (8, 6, '灯具', 0, 'http://datong.crmeb.net/public/uploads/attach/2019/03/29/5c9def00c2882.png', 1, 1553784490); +INSERT INTO `eb_store_category` VALUES (9, 0, '家电电器', 3, '', 1, 1553852206); +INSERT INTO `eb_store_category` VALUES (10, 0, '手机数码', 4, '', 1, 1553852227); +INSERT INTO `eb_store_category` VALUES (11, 0, '智能设备', 5, '', 1, 1553852259); +INSERT INTO `eb_store_category` VALUES (12, 0, '影音音响', 6, '', 1, 1553852288); +INSERT INTO `eb_store_category` VALUES (13, 0, '服饰鞋帽', 7, '', 1, 1553852314); +INSERT INTO `eb_store_category` VALUES (14, 0, '餐厨厨房', 8, '', 1, 1553852353); +INSERT INTO `eb_store_category` VALUES (15, 0, '洗护健康', 9, '', 1, 1553852370); +INSERT INTO `eb_store_category` VALUES (16, 0, '日杂用品', 10, '', 1, 1553852390); +INSERT INTO `eb_store_category` VALUES (17, 0, '出行交通', 11, '', 1, 1553852413); +INSERT INTO `eb_store_category` VALUES (18, 0, '配件设备', 13, '', 1, 1553852458); +INSERT INTO `eb_store_category` VALUES (19, 6, '家具', 0, 'http://datong.crmeb.net/public/uploads/attach/2019/03/29/5c9def5fa968c.png', 1, 1553854308); +INSERT INTO `eb_store_category` VALUES (20, 6, '床品件套', 0, 'http://datong.crmeb.net/public/uploads/attach/2019/03/29/5c9df11e13742.png', 1, 1553854755); +INSERT INTO `eb_store_category` VALUES (21, 6, '家饰花卉', 0, 'http://datong.crmeb.net/public/uploads/attach/2019/03/29/5c9df170010cb.png', 1, 1553854835); +INSERT INTO `eb_store_category` VALUES (22, 6, '布艺软装', 0, 'http://datong.crmeb.net/public/uploads/attach/2019/03/29/5c9df1b8f0a7a.png', 1, 1553854908); -INSERT INTO `eb_store_category` (`id`, `pid`, `cate_name`, `sort`, `pic`, `is_show`, `add_time`) VALUES -(1, 0, '热门推荐', 2, 'http://datong.crmeb.net/public/uploads/attach/2019/01/15/5c3db8b933d92.jpg', 1, 1547205038), -(2, 1, '热门促销', 0, 'http://datong.crmeb.net/public/uploads/attach/2019/01/15/5c3dba1366885.jpg', 1, 1547205055), -(3, 1, '折扣专区', 0, 'http://datong.crmeb.net/public/uploads/attach/2019/01/15/5c3dc0ef27068.jpg', 1, 1547550363), -(4, 1, '新品上线', 0, 'http://datong.crmeb.net/public/uploads/attach/2019/01/15/5c3dbc6a38fab.jpg', 1, 1553783295), -(6, 0, '居家生活', 1, 'http://datong.crmeb.net/public/uploads/attach/2019/01/15/5c3db8b933d92.jpg', 1, 1553783609), -(7, 6, '床垫', 1, 'http://datong.crmeb.net/public/uploads/attach/2019/03/29/5c9de8b7c5cc5.png', 1, 1553784473), -(8, 6, '灯具', 0, 'http://datong.crmeb.net/public/uploads/attach/2019/03/29/5c9def00c2882.png', 1, 1553784490), -(9, 0, '家电电器', 3, '', 1, 1553852206), -(10, 0, '手机数码', 4, '', 1, 1553852227), -(11, 0, '智能设备', 5, '', 1, 1553852259), -(12, 0, '影音音响', 6, '', 1, 1553852288), -(13, 0, '服饰鞋帽', 7, '', 1, 1553852314), -(14, 0, '餐厨厨房', 8, '', 1, 1553852353), -(15, 0, '洗护健康', 9, '', 1, 1553852370), -(16, 0, '日杂用品', 10, '', 1, 1553852390), -(17, 0, '出行交通', 11, '', 1, 1553852413), -(18, 0, '配件设备', 13, '', 1, 1553852458), -(19, 6, '家具', 0, 'http://datong.crmeb.net/public/uploads/attach/2019/03/29/5c9def5fa968c.png', 1, 1553854308), -(20, 6, '床品件套', 0, 'http://datong.crmeb.net/public/uploads/attach/2019/03/29/5c9df11e13742.png', 1, 1553854755), -(21, 6, '家饰花卉', 0, 'http://datong.crmeb.net/public/uploads/attach/2019/03/29/5c9df170010cb.png', 1, 1553854835), -(22, 6, '布艺软装', 0, 'http://datong.crmeb.net/public/uploads/attach/2019/03/29/5c9df1b8f0a7a.png', 1, 1553854908); - --- -------------------------------------------------------- - --- --- 表的结构 `eb_store_coupon` --- - -CREATE TABLE IF NOT EXISTS `eb_store_coupon` ( - `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '优惠券表ID', - `title` varchar(64) NOT NULL COMMENT '优惠券名称', - `integral` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '兑换消耗积分值', - `coupon_price` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '兑换的优惠券面值', - `use_min_price` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '最低消费多少金额可用优惠券', - `coupon_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '优惠券有效期限(单位:天)', - `sort` int(11) unsigned NOT NULL DEFAULT '1' COMMENT '排序', - `status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '状态(0:关闭,1:开启)', - `add_time` int(11) unsigned NOT NULL COMMENT '兑换项目添加时间', - `is_del` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否删除', - PRIMARY KEY (`id`) USING BTREE, - KEY `state` (`status`) USING BTREE, - KEY `add_time` (`add_time`) USING BTREE, - KEY `coupon_time` (`coupon_time`) USING BTREE, - KEY `is_del` (`is_del`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='优惠券表' AUTO_INCREMENT=6 ; - --- --- 转存表中的数据 `eb_store_coupon` --- - -INSERT INTO `eb_store_coupon` (`id`, `title`, `integral`, `coupon_price`, `use_min_price`, `coupon_time`, `sort`, `status`, `add_time`, `is_del`) VALUES -(1, '测试优惠券满10减9.9', 0, '9.90', '1.00', 100, 1, 0, 1547714661, 1), -(2, '你好', 0, '3.00', '4.00', 100, 0, 1, 1547714872, 1), -(3, '迷惑', 0, '5.00', '1.00', 100, 0, 0, 1547714900, 1), -(4, '测试 2019.3.21.21.22', 0, '1.00', '0.00', 10, 0, 1, 1553174564, 0), -(5, '20元优惠券满100可用', 0, '20.00', '100.00', 100, 0, 1, 1553910760, 0); - --- -------------------------------------------------------- - --- --- 表的结构 `eb_store_coupon_issue` --- - -CREATE TABLE IF NOT EXISTS `eb_store_coupon_issue` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `cid` int(10) DEFAULT NULL COMMENT '优惠券ID', - `start_time` int(10) DEFAULT NULL COMMENT '优惠券领取开启时间', - `end_time` int(10) DEFAULT NULL COMMENT '优惠券领取结束时间', - `total_count` int(10) DEFAULT NULL COMMENT '优惠券领取数量', - `remain_count` int(10) DEFAULT NULL COMMENT '优惠券剩余领取数量', - `is_permanent` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否无限张数', - `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '1 正常 0 未开启 -1 已无效', - `is_del` tinyint(1) unsigned NOT NULL DEFAULT '0', - `add_time` int(10) DEFAULT NULL COMMENT '优惠券添加时间', - PRIMARY KEY (`id`) USING BTREE, - KEY `cid` (`cid`) USING BTREE, - KEY `start_time` (`start_time`,`end_time`) USING BTREE, - KEY `remain_count` (`remain_count`) USING BTREE, - KEY `status` (`status`) USING BTREE, - KEY `is_del` (`is_del`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='优惠券前台领取表' AUTO_INCREMENT=7 ; - --- --- 转存表中的数据 `eb_store_coupon_issue` --- - -INSERT INTO `eb_store_coupon_issue` (`id`, `cid`, `start_time`, `end_time`, `total_count`, `remain_count`, `is_permanent`, `status`, `is_del`, `add_time`) VALUES -(1, 2, 1547654400, 1547827200, 10, 5, 0, 1, 1, 1547714939), -(2, 4, 0, 0, 5, -6, 0, 1, 0, 1553174582), -(3, 4, 0, 0, 10, -10, 0, 1, 0, 1553825963), -(4, 4, 0, 0, 100, 63, 0, 1, 0, 1553833182), -(5, 4, 1553788800, 1559232000, 0, 0, 0, 1, 0, 1553910539), -(6, 5, 0, 0, 0, 0, 0, 1, 0, 1553910772); - --- -------------------------------------------------------- - --- --- 表的结构 `eb_store_coupon_issue_user` --- - -CREATE TABLE IF NOT EXISTS `eb_store_coupon_issue_user` ( - `uid` int(10) DEFAULT NULL COMMENT '领取优惠券用户ID', - `issue_coupon_id` int(10) DEFAULT NULL COMMENT '优惠券前台领取ID', - `add_time` int(10) DEFAULT NULL COMMENT '领取时间', - UNIQUE KEY `uid` (`uid`,`issue_coupon_id`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='优惠券前台用户领取记录表'; - --- -------------------------------------------------------- - --- --- 表的结构 `eb_store_coupon_user` --- - -CREATE TABLE IF NOT EXISTS `eb_store_coupon_user` ( - `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '优惠券发放记录id', - `cid` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '兑换的项目id', - `uid` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '优惠券所属用户', - `coupon_title` varchar(32) NOT NULL COMMENT '优惠券名称', - `coupon_price` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '优惠券的面值', - `use_min_price` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '最低消费多少金额可用优惠券', - `add_time` int(11) unsigned NOT NULL COMMENT '优惠券创建时间', - `end_time` int(11) unsigned NOT NULL COMMENT '优惠券结束时间', - `use_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '使用时间', - `type` varchar(32) NOT NULL DEFAULT 'send' COMMENT '获取方式', - `status` tinyint(1) NOT NULL DEFAULT '0' COMMENT '状态(0:未使用,1:已使用, 2:已过期)', - `is_fail` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否有效', - PRIMARY KEY (`id`) USING BTREE, - KEY `cid` (`cid`) USING BTREE, - KEY `uid` (`uid`) USING BTREE, - KEY `add_time` (`add_time`) USING BTREE, - KEY `end_time` (`end_time`) USING BTREE, - KEY `status` (`status`) USING BTREE, - KEY `is_fail` (`is_fail`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='优惠券发放记录表' AUTO_INCREMENT=1 ; - --- -------------------------------------------------------- - --- --- 表的结构 `eb_store_order` --- - -CREATE TABLE IF NOT EXISTS `eb_store_order` ( - `id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '订单ID', - `order_id` varchar(32) NOT NULL COMMENT '订单号', - `uid` int(11) unsigned NOT NULL COMMENT '用户id', - `real_name` varchar(32) NOT NULL COMMENT '用户姓名', - `user_phone` varchar(18) NOT NULL COMMENT '用户电话', - `user_address` varchar(100) NOT NULL COMMENT '详细地址', - `cart_id` varchar(256) NOT NULL DEFAULT '[]' COMMENT '购物车id', - `total_num` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '订单商品总数', - `total_price` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '订单总价', - `total_postage` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '邮费', - `pay_price` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '实际支付金额', - `pay_postage` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '支付邮费', - `deduction_price` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '抵扣金额', - `coupon_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '优惠券id', - `coupon_price` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '优惠券金额', - `paid` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '支付状态', - `pay_time` int(11) unsigned DEFAULT NULL COMMENT '支付时间', - `pay_type` varchar(32) NOT NULL COMMENT '支付方式', - `add_time` int(11) unsigned NOT NULL COMMENT '创建时间', - `status` tinyint(1) NOT NULL DEFAULT '0' COMMENT '订单状态(-1 : 申请退款 -2 : 退货成功 0:待发货;1:待收货;2:已收货;3:待评价;-1:已退款)', - `refund_status` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '0 未退款 1 申请中 2 已退款', - `refund_reason_wap_img` varchar(255) DEFAULT NULL COMMENT '退款图片', - `refund_reason_wap_explain` varchar(255) DEFAULT NULL COMMENT '退款用户说明', - `refund_reason_time` int(11) unsigned DEFAULT NULL COMMENT '退款时间', - `refund_reason_wap` varchar(255) DEFAULT NULL COMMENT '前台退款原因', - `refund_reason` varchar(255) DEFAULT NULL COMMENT '不退款的理由', - `refund_price` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '退款金额', - `delivery_name` varchar(64) DEFAULT NULL COMMENT '快递名称/送货人姓名', - `delivery_type` varchar(32) DEFAULT NULL COMMENT '发货类型', - `delivery_id` varchar(64) DEFAULT NULL COMMENT '快递单号/手机号', - `gain_integral` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '消费赚取积分', - `use_integral` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '使用积分', - `back_integral` decimal(8,2) unsigned DEFAULT NULL COMMENT '给用户退了多少积分', - `mark` varchar(512) NOT NULL COMMENT '备注', - `is_del` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否删除', - `unique` char(32) NOT NULL COMMENT '唯一id(md5加密)类似id', - `remark` varchar(512) DEFAULT NULL COMMENT '管理员备注', - `mer_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '商户ID', - `is_mer_check` tinyint(3) unsigned NOT NULL DEFAULT '0', - `combination_id` int(11) unsigned DEFAULT '0' COMMENT '拼团产品id0一般产品', - `pink_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '拼团id 0没有拼团', - `cost` decimal(8,2) unsigned NOT NULL COMMENT '成本价', - `seckill_id` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '秒杀产品ID', - `bargain_id` int(11) unsigned DEFAULT '0' COMMENT '砍价id', - `is_channel` tinyint(1) unsigned DEFAULT '0' COMMENT '支付渠道(0微信公众号1微信小程序)', - PRIMARY KEY (`id`) USING BTREE, - UNIQUE KEY `order_id_2` (`order_id`,`uid`) USING BTREE, - UNIQUE KEY `unique` (`unique`) USING BTREE, - KEY `uid` (`uid`) USING BTREE, - KEY `add_time` (`add_time`) USING BTREE, - KEY `pay_price` (`pay_price`) USING BTREE, - KEY `paid` (`paid`) USING BTREE, - KEY `pay_time` (`pay_time`) USING BTREE, - KEY `pay_type` (`pay_type`) USING BTREE, - KEY `status` (`status`) USING BTREE, - KEY `is_del` (`is_del`) USING BTREE, - KEY `coupon_id` (`coupon_id`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='订单表' AUTO_INCREMENT=1 ; - --- -------------------------------------------------------- - --- --- 表的结构 `eb_store_order_cart_info` --- - -CREATE TABLE IF NOT EXISTS `eb_store_order_cart_info` ( - `oid` int(11) unsigned NOT NULL COMMENT '订单id', - `cart_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '购物车id', - `product_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '商品ID', - `cart_info` text NOT NULL COMMENT '购买东西的详细信息', - `unique` char(32) NOT NULL COMMENT '唯一id', - UNIQUE KEY `oid` (`oid`,`unique`) USING BTREE, - KEY `cart_id` (`cart_id`) USING BTREE, - KEY `product_id` (`product_id`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='订单购物详情表'; - --- -------------------------------------------------------- - --- --- 表的结构 `eb_store_order_status` --- - -CREATE TABLE IF NOT EXISTS `eb_store_order_status` ( - `oid` int(10) unsigned NOT NULL COMMENT '订单id', - `change_type` varchar(32) NOT NULL COMMENT '操作类型', - `change_message` varchar(256) NOT NULL COMMENT '操作备注', - `change_time` int(10) unsigned NOT NULL COMMENT '操作时间', - KEY `oid` (`oid`) USING BTREE, - KEY `change_type` (`change_type`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='订单操作记录表'; - --- -------------------------------------------------------- - --- --- 表的结构 `eb_store_pink` --- - -CREATE TABLE IF NOT EXISTS `eb_store_pink` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `uid` int(10) unsigned NOT NULL COMMENT '用户id', - `order_id` varchar(32) NOT NULL COMMENT '订单id 生成', - `order_id_key` int(10) unsigned NOT NULL COMMENT '订单id 数据库', - `total_num` int(10) unsigned NOT NULL COMMENT '购买商品个数', - `total_price` decimal(10,2) unsigned NOT NULL COMMENT '购买总金额', - `cid` int(10) unsigned NOT NULL COMMENT '拼团产品id', - `pid` int(10) unsigned NOT NULL COMMENT '产品id', - `people` int(10) unsigned NOT NULL COMMENT '拼图总人数', - `price` decimal(10,2) unsigned NOT NULL COMMENT '拼团产品单价', - `add_time` varchar(24) NOT NULL COMMENT '开始时间', - `stop_time` varchar(24) NOT NULL, - `k_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '团长id 0为团长', - `is_tpl` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否发送模板消息0未发送1已发送', - `is_refund` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否退款 0未退款 1已退款', - `status` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '状态1进行中2已完成3未完成', +-- ---------------------------- +-- Table structure for eb_store_combination +-- ---------------------------- +DROP TABLE IF EXISTS `eb_store_combination`; +CREATE TABLE `eb_store_combination` ( + `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, + `product_id` int(10) UNSIGNED NOT NULL COMMENT '商品id', + `mer_id` int(10) UNSIGNED NULL DEFAULT 0 COMMENT '商户id', + `image` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '推荐图', + `images` varchar(1000) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '轮播图', + `title` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '活动标题', + `attr` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '活动属性', + `people` int(2) UNSIGNED NOT NULL COMMENT '参团人数', + `info` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '简介', + `price` decimal(10, 2) UNSIGNED NOT NULL COMMENT '价格', + `sort` int(10) UNSIGNED NOT NULL COMMENT '排序', + `sales` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '销量', + `stock` int(10) UNSIGNED NOT NULL COMMENT '库存', + `add_time` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '添加时间', + `is_host` tinyint(1) UNSIGNED NOT NULL DEFAULT 0 COMMENT '推荐', + `is_show` tinyint(1) UNSIGNED NOT NULL COMMENT '产品状态', + `is_del` tinyint(1) UNSIGNED NOT NULL DEFAULT 0, + `combination` tinyint(1) UNSIGNED NOT NULL DEFAULT 1, + `mer_use` tinyint(1) UNSIGNED NULL DEFAULT NULL COMMENT '商户是否可用1可用0不可用', + `is_postage` tinyint(1) UNSIGNED NOT NULL COMMENT '是否包邮1是0否', + `postage` decimal(10, 2) UNSIGNED NOT NULL COMMENT '邮费', + `description` text CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '拼团内容', + `start_time` int(11) UNSIGNED NOT NULL COMMENT '拼团开始时间', + `stop_time` int(11) UNSIGNED NOT NULL COMMENT '拼团结束时间', + `cost` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '拼图产品成本', + `browse` int(11) NULL DEFAULT 0 COMMENT '浏览量', + `unit_name` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '单位名', PRIMARY KEY (`id`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='拼团表' AUTO_INCREMENT=1 ; +) ENGINE = InnoDB AUTO_INCREMENT = 7 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '拼团产品表' ROW_FORMAT = DYNAMIC; --- -------------------------------------------------------- +-- ---------------------------- +-- Records of eb_store_combination +-- ---------------------------- +INSERT INTO `eb_store_combination` VALUES (1, 1, 0, 'http://datong.crmeb.net/public/uploads/attach/2019/01/15/5c3dba1366885.jpg', '[\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dba1366885.jpg\",\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dba4187461.jpg\",\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3db9de2b73a.jpg\"]', '3人团 无线吸尘器F8 玫瑰金礼盒版', '', 3, '年货节活动价1699元,领取吸尘器优惠券再减50元,到手价仅1649元', 1.00, 0, 20, 980, '1547554180', 1, 1, 1, 1, 0, 1, 1.00, '', 1546272000, 1551283200, 0, 4, ''); +INSERT INTO `eb_store_combination` VALUES (2, 3, 0, 'http://datong.crmeb.net/public/uploads/attach/2019/01/15/5c3dc0ef27068.jpg', '[\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dc0ef27068.jpg\",\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dc15ba1972.jpg\"]', '智米加湿器 白色', '', 6, '智米加湿器 白色', 199.00, 0, 0, 999, '1547554327', 1, 1, 1, 1, 0, 1, 0.00, '', 1546272000, 1551283200, 0, 3, ''); +INSERT INTO `eb_store_combination` VALUES (3, 2, 0, 'http://datong.crmeb.net/public/uploads/attach/2019/01/15/5c3dbc27c69c7.jpg', '[\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dbc27c69c7.jpg\",\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dbc6a38fab.jpg\"]', '智能马桶盖 AI版', '', 10, '智能马桶盖 AI版', 499.00, 0, 8, 992, '1547554596', 1, 1, 1, 1, 0, 1, 0.00, '', 1546272000, 1551283200, 0, 3, ''); +INSERT INTO `eb_store_combination` VALUES (4, 3, 0, 'http://datong.crmeb.net/public/uploads/attach/2019/01/15/5c3dc0ef27068.jpg', '[\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dc0ef27068.jpg\",\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dc15ba1972.jpg\"]', '测试', NULL, 2, '测试', 0.01, 0, 537, 463, '1554909810', 1, 1, 0, 1, NULL, 1, 0.00, '', 1554825600, 1559232000, 0, 0, ''); +INSERT INTO `eb_store_combination` VALUES (5, 1, 0, 'http://datong.crmeb.net/public/uploads/attach/2019/01/15/5c3dba1366885.jpg', '[\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dba1366885.jpg\",\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dba4187461.jpg\",\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3db9de2b73a.jpg\"]', '5人团:无线吸尘器F8 玫瑰金礼盒版', NULL, 5, '【年货节活动价1699元,领取吸尘器优惠券再减50元,到手价仅1649元】', 0.01, 0, 231, 5858, '1555125024', 1, 1, 0, 1, NULL, 1, 1.00, '', 1554998400, 1556553600, 0, 0, ''); +INSERT INTO `eb_store_combination` VALUES (6, 2, 0, 'http://datong.crmeb.net/public/uploads/attach/2019/01/15/5c3dbc27c69c7.jpg', '[\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dbc27c69c7.jpg\",\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dbc6a38fab.jpg\"]', '10人团:智能马桶盖 AI版', NULL, 10, '智能马桶盖 AI版', 0.01, 0, 53, 9934, '1555125049', 1, 1, 0, 1, NULL, 1, 0.00, '', 1554998400, 1556553600, 0, 0, ''); --- --- 表的结构 `eb_store_product` --- +-- ---------------------------- +-- Table structure for eb_store_combination_attr +-- ---------------------------- +DROP TABLE IF EXISTS `eb_store_combination_attr`; +CREATE TABLE `eb_store_combination_attr` ( + `product_id` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '商品ID', + `attr_name` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '属性名', + `attr_values` varchar(256) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '属性值', + INDEX `store_id`(`product_id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '商品属性表' ROW_FORMAT = DYNAMIC; -CREATE TABLE IF NOT EXISTS `eb_store_product` ( +-- ---------------------------- +-- Table structure for eb_store_combination_attr_result +-- ---------------------------- +DROP TABLE IF EXISTS `eb_store_combination_attr_result`; +CREATE TABLE `eb_store_combination_attr_result` ( + `product_id` int(10) UNSIGNED NOT NULL COMMENT '商品ID', + `result` text CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '商品属性参数', + `change_time` int(10) UNSIGNED NOT NULL COMMENT '上次修改时间', + UNIQUE INDEX `product_id`(`product_id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '商品属性详情表' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Table structure for eb_store_combination_attr_value +-- ---------------------------- +DROP TABLE IF EXISTS `eb_store_combination_attr_value`; +CREATE TABLE `eb_store_combination_attr_value` ( + `product_id` int(10) UNSIGNED NOT NULL COMMENT '商品ID', + `suk` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '商品属性索引值 (attr_value|attr_value[|....])', + `stock` int(10) UNSIGNED NOT NULL COMMENT '属性对应的库存', + `sales` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '销量', + `price` decimal(8, 2) UNSIGNED NOT NULL COMMENT '属性金额', + `image` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '图片', + `unique` char(8) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '唯一值', + `cost` decimal(8, 2) UNSIGNED NOT NULL COMMENT '成本价', + UNIQUE INDEX `unique`(`unique`, `suk`) USING BTREE, + INDEX `store_id`(`product_id`, `suk`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '商品属性值表' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Table structure for eb_store_coupon +-- ---------------------------- +DROP TABLE IF EXISTS `eb_store_coupon`; +CREATE TABLE `eb_store_coupon` ( + `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '优惠券表ID', + `title` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '优惠券名称', + `integral` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '兑换消耗积分值', + `coupon_price` decimal(8, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '兑换的优惠券面值', + `use_min_price` decimal(8, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '最低消费多少金额可用优惠券', + `coupon_time` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '优惠券有效期限(单位:天)', + `sort` int(11) UNSIGNED NOT NULL DEFAULT 1 COMMENT '排序', + `status` tinyint(1) UNSIGNED NOT NULL DEFAULT 0 COMMENT '状态(0:关闭,1:开启)', + `add_time` int(11) UNSIGNED NOT NULL COMMENT '兑换项目添加时间', + `is_del` tinyint(1) UNSIGNED NOT NULL DEFAULT 0 COMMENT '是否删除', + PRIMARY KEY (`id`) USING BTREE, + INDEX `state`(`status`) USING BTREE, + INDEX `add_time`(`add_time`) USING BTREE, + INDEX `coupon_time`(`coupon_time`) USING BTREE, + INDEX `is_del`(`is_del`) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 6 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '优惠券表' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Table structure for eb_store_coupon_issue +-- ---------------------------- +DROP TABLE IF EXISTS `eb_store_coupon_issue`; +CREATE TABLE `eb_store_coupon_issue` ( + `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, + `cid` int(10) NULL DEFAULT NULL COMMENT '优惠券ID', + `start_time` int(10) NULL DEFAULT NULL COMMENT '优惠券领取开启时间', + `end_time` int(10) NULL DEFAULT NULL COMMENT '优惠券领取结束时间', + `total_count` int(10) NULL DEFAULT NULL COMMENT '优惠券领取数量', + `remain_count` int(10) NULL DEFAULT NULL COMMENT '优惠券剩余领取数量', + `is_permanent` tinyint(1) NOT NULL DEFAULT 0 COMMENT '是否无限张数', + `status` tinyint(1) NOT NULL DEFAULT 1 COMMENT '1 正常 0 未开启 -1 已无效', + `is_del` tinyint(1) UNSIGNED NOT NULL DEFAULT 0, + `add_time` int(10) NULL DEFAULT NULL COMMENT '优惠券添加时间', + PRIMARY KEY (`id`) USING BTREE, + INDEX `cid`(`cid`) USING BTREE, + INDEX `start_time`(`start_time`, `end_time`) USING BTREE, + INDEX `remain_count`(`remain_count`) USING BTREE, + INDEX `status`(`status`) USING BTREE, + INDEX `is_del`(`is_del`) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 7 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '优惠券前台领取表' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Table structure for eb_store_coupon_issue_user +-- ---------------------------- +DROP TABLE IF EXISTS `eb_store_coupon_issue_user`; +CREATE TABLE `eb_store_coupon_issue_user` ( + `uid` int(10) NULL DEFAULT NULL COMMENT '领取优惠券用户ID', + `issue_coupon_id` int(10) NULL DEFAULT NULL COMMENT '优惠券前台领取ID', + `add_time` int(10) NULL DEFAULT NULL COMMENT '领取时间', + UNIQUE INDEX `uid`(`uid`, `issue_coupon_id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '优惠券前台用户领取记录表' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Table structure for eb_store_coupon_user +-- ---------------------------- +DROP TABLE IF EXISTS `eb_store_coupon_user`; +CREATE TABLE `eb_store_coupon_user` ( + `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '优惠券发放记录id', + `cid` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '兑换的项目id', + `uid` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '优惠券所属用户', + `coupon_title` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '优惠券名称', + `coupon_price` decimal(8, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '优惠券的面值', + `use_min_price` decimal(8, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '最低消费多少金额可用优惠券', + `add_time` int(11) UNSIGNED NOT NULL COMMENT '优惠券创建时间', + `end_time` int(11) UNSIGNED NOT NULL COMMENT '优惠券结束时间', + `use_time` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '使用时间', + `type` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT 'send' COMMENT '获取方式', + `status` tinyint(1) NOT NULL DEFAULT 0 COMMENT '状态(0:未使用,1:已使用, 2:已过期)', + `is_fail` tinyint(1) UNSIGNED NOT NULL DEFAULT 0 COMMENT '是否有效', + PRIMARY KEY (`id`) USING BTREE, + INDEX `cid`(`cid`) USING BTREE, + INDEX `uid`(`uid`) USING BTREE, + INDEX `add_time`(`add_time`) USING BTREE, + INDEX `end_time`(`end_time`) USING BTREE, + INDEX `status`(`status`) USING BTREE, + INDEX `is_fail`(`is_fail`) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '优惠券发放记录表' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Table structure for eb_store_order +-- ---------------------------- +DROP TABLE IF EXISTS `eb_store_order`; +CREATE TABLE `eb_store_order` ( + `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '订单ID', + `order_id` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '订单号', + `uid` int(11) UNSIGNED NOT NULL COMMENT '用户id', + `real_name` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '用户姓名', + `user_phone` varchar(18) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '用户电话', + `user_address` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '详细地址', + `cart_id` varchar(256) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '[]' COMMENT '购物车id', + `total_num` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '订单商品总数', + `total_price` decimal(8, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '订单总价', + `total_postage` decimal(8, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '邮费', + `pay_price` decimal(8, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '实际支付金额', + `pay_postage` decimal(8, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '支付邮费', + `deduction_price` decimal(8, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '抵扣金额', + `coupon_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '优惠券id', + `coupon_price` decimal(8, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '优惠券金额', + `paid` tinyint(1) UNSIGNED NOT NULL DEFAULT 0 COMMENT '支付状态', + `pay_time` int(11) UNSIGNED NULL DEFAULT NULL COMMENT '支付时间', + `pay_type` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '支付方式', + `add_time` int(11) UNSIGNED NOT NULL COMMENT '创建时间', + `status` tinyint(1) NOT NULL DEFAULT 0 COMMENT '订单状态(-1 : 申请退款 -2 : 退货成功 0:待发货;1:待收货;2:已收货;3:待评价;-1:已退款)', + `refund_status` tinyint(1) UNSIGNED NOT NULL DEFAULT 0 COMMENT '0 未退款 1 申请中 2 已退款', + `refund_reason_wap_img` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '退款图片', + `refund_reason_wap_explain` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '退款用户说明', + `refund_reason_time` int(11) UNSIGNED NULL DEFAULT NULL COMMENT '退款时间', + `refund_reason_wap` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '前台退款原因', + `refund_reason` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '不退款的理由', + `refund_price` decimal(8, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '退款金额', + `delivery_name` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '快递名称/送货人姓名', + `delivery_type` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '发货类型', + `delivery_id` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '快递单号/手机号', + `gain_integral` decimal(8, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '消费赚取积分', + `use_integral` decimal(8, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '使用积分', + `back_integral` decimal(8, 2) UNSIGNED NULL DEFAULT NULL COMMENT '给用户退了多少积分', + `mark` varchar(512) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '备注', + `is_del` tinyint(1) UNSIGNED NOT NULL DEFAULT 0 COMMENT '是否删除', + `unique` char(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '唯一id(md5加密)类似id', + `remark` varchar(512) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '管理员备注', + `mer_id` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '商户ID', + `is_mer_check` tinyint(3) UNSIGNED NOT NULL DEFAULT 0, + `combination_id` int(11) UNSIGNED NULL DEFAULT 0 COMMENT '拼团产品id0一般产品', + `pink_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '拼团id 0没有拼团', + `cost` decimal(8, 2) UNSIGNED NOT NULL COMMENT '成本价', + `seckill_id` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '秒杀产品ID', + `bargain_id` int(11) UNSIGNED NULL DEFAULT 0 COMMENT '砍价id', + `is_channel` tinyint(1) UNSIGNED NULL DEFAULT 0 COMMENT '支付渠道(0微信公众号1微信小程序)', + `is_remind` tinyint(1) unsigned DEFAULT '0' COMMENT '新订单消息提醒', + `is_system_del` tinyint(1) NOT NULL DEFAULT '0' COMMENT '后台管理员删除', + PRIMARY KEY (`id`) USING BTREE, + UNIQUE INDEX `order_id_2`(`order_id`, `uid`) USING BTREE, + UNIQUE INDEX `unique`(`unique`) USING BTREE, + INDEX `uid`(`uid`) USING BTREE, + INDEX `add_time`(`add_time`) USING BTREE, + INDEX `pay_price`(`pay_price`) USING BTREE, + INDEX `paid`(`paid`) USING BTREE, + INDEX `pay_time`(`pay_time`) USING BTREE, + INDEX `pay_type`(`pay_type`) USING BTREE, + INDEX `status`(`status`) USING BTREE, + INDEX `is_del`(`is_del`) USING BTREE, + INDEX `coupon_id`(`coupon_id`) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '订单表' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Table structure for eb_store_order_cart_info +-- ---------------------------- +DROP TABLE IF EXISTS `eb_store_order_cart_info`; +CREATE TABLE `eb_store_order_cart_info` ( + `oid` int(11) UNSIGNED NOT NULL COMMENT '订单id', + `cart_id` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '购物车id', + `product_id` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '商品ID', + `cart_info` text CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '购买东西的详细信息', + `unique` char(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '唯一id', + UNIQUE INDEX `oid`(`oid`, `unique`) USING BTREE, + INDEX `cart_id`(`cart_id`) USING BTREE, + INDEX `product_id`(`product_id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '订单购物详情表' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Table structure for eb_store_order_status +-- ---------------------------- +DROP TABLE IF EXISTS `eb_store_order_status`; +CREATE TABLE `eb_store_order_status` ( + `oid` int(10) UNSIGNED NOT NULL COMMENT '订单id', + `change_type` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '操作类型', + `change_message` varchar(256) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '操作备注', + `change_time` int(10) UNSIGNED NOT NULL COMMENT '操作时间', + INDEX `oid`(`oid`) USING BTREE, + INDEX `change_type`(`change_type`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '订单操作记录表' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Table structure for eb_store_pink +-- ---------------------------- +DROP TABLE IF EXISTS `eb_store_pink`; +CREATE TABLE `eb_store_pink` ( + `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, + `uid` int(10) UNSIGNED NOT NULL COMMENT '用户id', + `order_id` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '订单id 生成', + `order_id_key` int(10) UNSIGNED NOT NULL COMMENT '订单id 数据库', + `total_num` int(10) UNSIGNED NOT NULL COMMENT '购买商品个数', + `total_price` decimal(10, 2) UNSIGNED NOT NULL COMMENT '购买总金额', + `cid` int(10) UNSIGNED NOT NULL COMMENT '拼团产品id', + `pid` int(10) UNSIGNED NOT NULL COMMENT '产品id', + `people` int(10) UNSIGNED NOT NULL COMMENT '拼图总人数', + `price` decimal(10, 2) UNSIGNED NOT NULL COMMENT '拼团产品单价', + `add_time` varchar(24) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '开始时间', + `stop_time` varchar(24) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, + `k_id` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '团长id 0为团长', + `is_tpl` tinyint(1) UNSIGNED NOT NULL DEFAULT 0 COMMENT '是否发送模板消息0未发送1已发送', + `is_refund` tinyint(1) UNSIGNED NOT NULL DEFAULT 0 COMMENT '是否退款 0未退款 1已退款', + `status` tinyint(1) UNSIGNED NOT NULL DEFAULT 1 COMMENT '状态1进行中2已完成3未完成', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '拼团表' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Table structure for eb_store_product +-- ---------------------------- +DROP TABLE IF EXISTS `eb_store_product`; +CREATE TABLE `eb_store_product` ( `id` mediumint(11) NOT NULL AUTO_INCREMENT COMMENT '商品id', `mer_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '商户Id(0为总后台管理员创建,不为0的时候是商户后台创建)', `image` varchar(128) NOT NULL COMMENT '商品图片', - `slider_image` varchar(2000) NOT NULL COMMENT '轮播图', + `slider_image` longtext NOT NULL COMMENT '轮播图', `store_name` varchar(128) NOT NULL COMMENT '商品名称', `store_info` varchar(256) NOT NULL COMMENT '商品简介', `keyword` varchar(256) NOT NULL COMMENT '关键字', @@ -989,7 +659,7 @@ CREATE TABLE IF NOT EXISTS `eb_store_product` ( `vip_price` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '会员价格', `ot_price` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '市场价', `postage` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '邮费', - `unit_name` varchar(32) NOT NULL COMMENT '单位名', + `unit_name` varchar(32) NOT NULL DEFAULT '' COMMENT '单位名', `sort` smallint(11) NOT NULL DEFAULT '0' COMMENT '排序', `sales` mediumint(11) unsigned NOT NULL DEFAULT '0' COMMENT '销量', `stock` mediumint(11) unsigned NOT NULL DEFAULT '0' COMMENT '库存', @@ -1009,7 +679,10 @@ CREATE TABLE IF NOT EXISTS `eb_store_product` ( `is_bargain` tinyint(1) unsigned DEFAULT NULL COMMENT '砍价状态 0未开启 1开启', `ficti` mediumint(11) DEFAULT '100' COMMENT '虚拟销量', `browse` int(11) DEFAULT '0' COMMENT '浏览量', - `code_path` varchar(64) NOT NULL COMMENT '产品二维码地址(用户小程序海报)', + `code_path` varchar(64) NOT NULL DEFAULT '' COMMENT '产品二维码地址(用户小程序海报)', + `store_code` varchar(38) NOT NULL DEFAULT '' COMMENT '产品编码', + `soure_link` varchar(255) NOT NULL DEFAULT '' COMMENT '淘宝、天猫、1688商品保存标识,避免商品重复入库', + `brand` int(11) NOT NULL DEFAULT '0' COMMENT '品牌id', PRIMARY KEY (`id`) USING BTREE, KEY `cate_id` (`cate_id`) USING BTREE, KEY `is_hot` (`is_hot`) USING BTREE, @@ -1023,1858 +696,1228 @@ CREATE TABLE IF NOT EXISTS `eb_store_product` ( KEY `sales` (`sales`) USING BTREE, KEY `add_time` (`add_time`) USING BTREE, KEY `is_postage` (`is_postage`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='商品表' AUTO_INCREMENT=6 ; +) ENGINE=InnoDB AUTO_INCREMENT=11 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='商品表'; --- --- 转存表中的数据 `eb_store_product` --- +-- ---------------------------- +-- Records of eb_store_product +-- ---------------------------- +INSERT INTO `eb_store_product` VALUES (1,0,'http://datong.crmeb.net/public/uploads/attach/2019/01/15/5c3dba1366885.jpg','[\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dba1366885.jpg\",\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dba4187461.jpg\",\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3db9de2b73a.jpg\"]','无线吸尘器F8 玫瑰金礼盒版','【年货节活动价1699元,领取吸尘器优惠券再减50元,到手价仅1649元】','无线吸尘器','2',0.01,0.00,1699.00,1.00,'件',1,240,586,1,1,0,1,1,'<p><img src=\"http://datong.crmeb.net/public/uploads/editor/20190115/5c3dbb137d656.jpeg\"/><img src=\"http://datong.crmeb.net/public/uploads/editor/20190115/5c3dbb229e820.jpeg\"/><img src=\"http://datong.crmeb.net/public/uploads/editor/20190115/5c3dbb3b37f84.jpeg\"/><img src=\"http://datong.crmeb.net/public/uploads/editor/20190115/5c3dbb513b06f.jpeg\"/></p>',1547205504,1,0,0,1699.00,100.00,0,0,81,0,'','','',0),(2,0,'http://datong.crmeb.net/public/uploads/attach/2019/01/15/5c3dbc27c69c7.jpg','[\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dbc27c69c7.jpg\",\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dbc6a38fab.jpg\"]','智能马桶盖 AI版','智能马桶盖 AI版','智能马桶','3',0.01,0.00,1999.00,0.00,'件',0,47,994,1,1,1,1,1,'<p><img src=\"http://datong.crmeb.net/public/uploads/editor/20190115/5c3dbce620415.jpeg\"/></p>',1547516202,1,0,0,1999.00,1500.00,0,0,12,0,'','','',0),(3,0,'http://datong.crmeb.net/public/uploads/attach/2019/01/15/5c3dc0ef27068.jpg','[\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dc0ef27068.jpg\",\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dc15ba1972.jpg\"]','智米加湿器 白色','智米加湿器 白色','加湿器','3',249.00,0.00,299.00,0.00,'件',0,43,3953,1,1,1,1,1,'<p><img src=\"http://datong.crmeb.net/public/uploads/editor/20190115/5c3dc1730a0c0.jpg\"/><img src=\"http://datong.crmeb.net/public/uploads/editor/20190115/5c3dc182bccac.jpg\"/></p>',1547551009,1,0,0,249.00,10.00,0,0,8,0,'','','',0),(4,0,'http://datong.crmeb.net/public/uploads/attach/2019/01/15/5c3dc23646fff.jpg','[\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dc23646fff.jpg\",\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dc15ba1972.jpg\",\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dc0ef27068.jpg\"]','互联网电热水器1A','3000w双管速热,动态360L热水用量,双重漏电保护,智能APP操控','电热水器','3',999.00,0.00,1599.00,0.00,'件',0,82,418,1,1,1,1,1,'<p><img src=\"http://datong.crmeb.net/public/uploads/editor/20190115/5c3dc286862fd.jpg\"/><img src=\"http://datong.crmeb.net/public/uploads/editor/20190115/5c3dc294a9a0a.jpg\"/><img src=\"http://datong.crmeb.net/public/uploads/editor/20190115/5c3dc2ba18a77.jpg\"/></p>',1547551346,1,0,0,999.00,888.00,0,0,10,0,'','','',0),(5,0,'http://datong.crmeb.net/public/uploads/editor/20190115/5c3dbb513b06f.jpeg','[\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/editor\\/20190115\\/5c3dc294a9a0a.jpg\",\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/editor\\/20190115\\/5c3dbb513b06f.jpeg\"]','测试','阿萨德啊','去','4,7,2,3,19',1.00,0.00,1.00,0.00,'件',0,0,111,1,0,0,0,0,'',1554863537,0,0,0,1.00,1.00,0,NULL,1,0,'','','',0); -INSERT INTO `eb_store_product` (`id`, `mer_id`, `image`, `slider_image`, `store_name`, `store_info`, `keyword`, `cate_id`, `price`, `vip_price`, `ot_price`, `postage`, `unit_name`, `sort`, `sales`, `stock`, `is_show`, `is_hot`, `is_benefit`, `is_best`, `is_new`, `description`, `add_time`, `is_postage`, `is_del`, `mer_use`, `give_integral`, `cost`, `is_seckill`, `is_bargain`, `ficti`, `browse`, `code_path`) VALUES -(1, 0, 'http://datong.crmeb.net/public/uploads/attach/2019/01/15/5c3dba1366885.jpg', '["http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dba1366885.jpg","http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dba4187461.jpg","http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3db9de2b73a.jpg"]', '无线吸尘器F8 玫瑰金礼盒版', '【年货节活动价1699元,领取吸尘器优惠券再减50元,到手价仅1649元】', '无线吸尘器', '2', '0.01', '0.00', '1699.00', '1.00', '件', 1, 240, 586, 1, 1, 0, 1, 1, '<p><img src="http://datong.crmeb.net/public/uploads/editor/20190115/5c3dbb137d656.jpeg"/><img src="http://datong.crmeb.net/public/uploads/editor/20190115/5c3dbb229e820.jpeg"/><img src="http://datong.crmeb.net/public/uploads/editor/20190115/5c3dbb3b37f84.jpeg"/><img src="http://datong.crmeb.net/public/uploads/editor/20190115/5c3dbb513b06f.jpeg"/></p>', 1547205504, 1, 0, 0, '1699.00', '100.00', 0, 0, 81, 0, ''), -(2, 0, 'http://datong.crmeb.net/public/uploads/attach/2019/01/15/5c3dbc27c69c7.jpg', '["http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dbc27c69c7.jpg","http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dbc6a38fab.jpg"]', '智能马桶盖 AI版', '智能马桶盖 AI版', '智能马桶', '3', '0.01', '0.00', '1999.00', '0.00', '件', 0, 47, 994, 1, 1, 1, 1, 1, '<p><img src="http://datong.crmeb.net/public/uploads/editor/20190115/5c3dbce620415.jpeg"/></p>', 1547516202, 1, 0, 0, '1999.00', '1500.00', 0, 0, 12, 0, ''), -(3, 0, 'http://datong.crmeb.net/public/uploads/attach/2019/01/15/5c3dc0ef27068.jpg', '["http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dc0ef27068.jpg","http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dc15ba1972.jpg"]', '智米加湿器 白色', '智米加湿器 白色', '加湿器', '3', '249.00', '0.00', '299.00', '0.00', '件', 0, 43, 999, 1, 1, 1, 1, 1, '<p><img src="http://datong.crmeb.net/public/uploads/editor/20190115/5c3dc1730a0c0.jpg"/><img src="http://datong.crmeb.net/public/uploads/editor/20190115/5c3dc182bccac.jpg"/></p>', 1547551009, 1, 0, 0, '249.00', '10.00', 0, 0, 8, 0, ''), -(4, 0, 'http://datong.crmeb.net/public/uploads/attach/2019/01/15/5c3dc23646fff.jpg', '["http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dc23646fff.jpg","http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dc15ba1972.jpg","http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dc0ef27068.jpg"]', '互联网电热水器1A', '3000w双管速热,动态360L热水用量,双重漏电保护,智能APP操控', '电热水器', '3', '999.00', '0.00', '1599.00', '0.00', '件', 0, 82, 418, 1, 1, 1, 1, 1, '<p><img src="http://datong.crmeb.net/public/uploads/editor/20190115/5c3dc286862fd.jpg"/><img src="http://datong.crmeb.net/public/uploads/editor/20190115/5c3dc294a9a0a.jpg"/><img src="http://datong.crmeb.net/public/uploads/editor/20190115/5c3dc2ba18a77.jpg"/></p>', 1547551346, 1, 0, 0, '999.00', '888.00', 0, 0, 10, 0, ''), -(5, 0, 'http://datong.crmeb.net/public/uploads/editor/20190115/5c3dbb513b06f.jpeg', '["http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/editor\\/20190115\\/5c3dc294a9a0a.jpg","http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/editor\\/20190115\\/5c3dbb513b06f.jpeg"]', '测试', '阿萨德啊', '去', '4,7,2,3,19', '1.00', '0.00', '1.00', '0.00', '件', 0, 0, 111, 1, 0, 0, 0, 0, '', 1554863537, 0, 0, 0, '1.00', '1.00', 0, NULL, 1, 0, ''); +-- ---------------------------- +-- Table structure for eb_store_product_attr +-- ---------------------------- +DROP TABLE IF EXISTS `eb_store_product_attr`; +CREATE TABLE `eb_store_product_attr` ( + `product_id` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '商品ID', + `attr_name` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '属性名', + `attr_values` varchar(256) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '属性值', + INDEX `store_id`(`product_id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '商品属性表' ROW_FORMAT = DYNAMIC; --- -------------------------------------------------------- +-- ---------------------------- +-- Records of eb_store_product_attr +-- ---------------------------- +INSERT INTO `eb_store_product_attr` VALUES (1, '颜色', '黑色,白色,蓝色'); +INSERT INTO `eb_store_product_attr` VALUES (2, '孔距', '30cm,40cm'); +INSERT INTO `eb_store_product_attr` VALUES (3, '容量', '3L,4L'); +INSERT INTO `eb_store_product_attr` VALUES (3, '颜色', '白色,黑色'); --- --- 表的结构 `eb_store_product_attr` --- +-- ---------------------------- +-- Table structure for eb_store_product_attr_result +-- ---------------------------- +DROP TABLE IF EXISTS `eb_store_product_attr_result`; +CREATE TABLE `eb_store_product_attr_result` ( + `product_id` int(10) UNSIGNED NOT NULL COMMENT '商品ID', + `result` text CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '商品属性参数', + `change_time` int(10) UNSIGNED NOT NULL COMMENT '上次修改时间', + UNIQUE INDEX `product_id`(`product_id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '商品属性详情表' ROW_FORMAT = DYNAMIC; -CREATE TABLE IF NOT EXISTS `eb_store_product_attr` ( - `product_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '商品ID', - `attr_name` varchar(32) NOT NULL COMMENT '属性名', - `attr_values` varchar(256) NOT NULL COMMENT '属性值', - KEY `store_id` (`product_id`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='商品属性表'; +-- ---------------------------- +-- Records of eb_store_product_attr_result +-- ---------------------------- +INSERT INTO `eb_store_product_attr_result` VALUES (1, '{\"attr\":[{\"value\":\"\\u989c\\u8272\",\"detailValue\":\"\",\"attrHidden\":true,\"detail\":[\"\\u9ed1\\u8272\",\"\\u767d\\u8272\",\"\\u84dd\\u8272\"]}],\"value\":[{\"detail\":{\"\\u989c\\u8272\":\"\\u9ed1\\u8272\"},\"cost\":\"100.00\",\"price\":\"0.01\",\"sales\":199,\"pic\":\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dba1366885.jpg\",\"check\":false},{\"detail\":{\"\\u989c\\u8272\":\"\\u767d\\u8272\"},\"cost\":\"100.00\",\"price\":0.02,\"sales\":199,\"pic\":\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3db9de2b73a.jpg\",\"check\":false},{\"detail\":{\"\\u989c\\u8272\":\"\\u84dd\\u8272\"},\"cost\":\"100.00\",\"price\":0.03,\"sales\":199,\"pic\":\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dba4187461.jpg\",\"check\":false}]}', 1547713512); +INSERT INTO `eb_store_product_attr_result` VALUES (2, '{\"attr\":[{\"value\":\"\\u5b54\\u8ddd\",\"detailValue\":\"\",\"attrHidden\":true,\"detail\":[\"30cm\",\"40cm\"]}],\"value\":[{\"detail\":{\"\\u5b54\\u8ddd\":\"30cm\"},\"cost\":\"1500.00\",\"price\":\"0.01\",\"sales\":994,\"pic\":\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dbc27c69c7.jpg\",\"check\":false},{\"detail\":{\"\\u5b54\\u8ddd\":\"40cm\"},\"cost\":\"1500.00\",\"price\":888,\"sales\":994,\"pic\":\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dbc6a38fab.jpg\",\"check\":false}]}', 1547553770); +INSERT INTO `eb_store_product_attr_result` VALUES (3, '{\"attr\":[{\"value\":\"\\u5bb9\\u91cf\",\"detailValue\":\"\",\"attrHidden\":true,\"detail\":[\"3L\",\"4L\"]},{\"value\":\"\\u989c\\u8272\",\"detailValue\":\"\",\"attrHidden\":true,\"detail\":[\"\\u767d\\u8272\",\"\\u9ed1\\u8272\"]}],\"value\":[{\"detail\":{\"\\u5bb9\\u91cf\":\"3L\",\"\\u989c\\u8272\":\"\\u767d\\u8272\"},\"cost\":\"10.00\",\"price\":248,\"sales\":999,\"pic\":\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dc0ef27068.jpg\",\"check\":false},{\"detail\":{\"\\u5bb9\\u91cf\":\"3L\",\"\\u989c\\u8272\":\"\\u9ed1\\u8272\"},\"cost\":\"10.00\",\"price\":249,\"sales\":999,\"pic\":\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dc15ba1972.jpg\",\"check\":false},{\"detail\":{\"\\u5bb9\\u91cf\":\"4L\",\"\\u989c\\u8272\":\"\\u767d\\u8272\"},\"cost\":\"10.00\",\"price\":289,\"sales\":999,\"pic\":\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dc0ef27068.jpg\",\"check\":false},{\"detail\":{\"\\u5bb9\\u91cf\":\"4L\",\"\\u989c\\u8272\":\"\\u9ed1\\u8272\"},\"cost\":\"10.00\",\"price\":299,\"sales\":999,\"pic\":\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dc15ba1972.jpg\",\"check\":false}]}', 1547553857); --- --- 转存表中的数据 `eb_store_product_attr` --- +-- ---------------------------- +-- Table structure for eb_store_product_attr_value +-- ---------------------------- +DROP TABLE IF EXISTS `eb_store_product_attr_value`; +CREATE TABLE `eb_store_product_attr_value` ( + `product_id` int(10) UNSIGNED NOT NULL COMMENT '商品ID', + `suk` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '商品属性索引值 (attr_value|attr_value[|....])', + `stock` int(10) UNSIGNED NOT NULL COMMENT '属性对应的库存', + `sales` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '销量', + `price` decimal(8, 2) UNSIGNED NOT NULL COMMENT '属性金额', + `image` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '图片', + `unique` char(8) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '唯一值', + `cost` decimal(8, 2) UNSIGNED NOT NULL COMMENT '成本价', + UNIQUE INDEX `unique`(`unique`, `suk`) USING BTREE, + INDEX `store_id`(`product_id`, `suk`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '商品属性值表' ROW_FORMAT = DYNAMIC; -INSERT INTO `eb_store_product_attr` (`product_id`, `attr_name`, `attr_values`) VALUES -(1, '颜色', '黑色,白色,蓝色'), -(2, '孔距', '30cm,40cm'), -(3, '容量', '3L,4L'), -(3, '颜色', '白色,黑色'); +-- ---------------------------- +-- Records of eb_store_product_attr_value +-- ---------------------------- +INSERT INTO `eb_store_product_attr_value` VALUES (2, '40cm', 990, 4, 888.00, 'http://datong.crmeb.net/public/uploads/attach/2019/01/15/5c3dbc6a38fab.jpg', '19f1d772', 1500.00); +INSERT INTO `eb_store_product_attr_value` VALUES (1, '黑色', 71, 128, 0.01, 'http://datong.crmeb.net/public/uploads/attach/2019/01/15/5c3dba1366885.jpg', '6af2068e', 100.00); +INSERT INTO `eb_store_product_attr_value` VALUES (3, '4L,白色', 990, 9, 289.00, 'http://datong.crmeb.net/public/uploads/attach/2019/01/15/5c3dc0ef27068.jpg', '824485b3', 10.00); +INSERT INTO `eb_store_product_attr_value` VALUES (1, '白色', 169, 30, 0.02, 'http://datong.crmeb.net/public/uploads/attach/2019/01/15/5c3db9de2b73a.jpg', 'a84fff47', 100.00); +INSERT INTO `eb_store_product_attr_value` VALUES (3, '3L,白色', 987, 12, 248.00, 'http://datong.crmeb.net/public/uploads/attach/2019/01/15/5c3dc0ef27068.jpg', 'ab6067b3', 10.00); +INSERT INTO `eb_store_product_attr_value` VALUES (3, '3L,黑色', 993, 6, 249.00, 'http://datong.crmeb.net/public/uploads/attach/2019/01/15/5c3dc15ba1972.jpg', 'afb4949f', 10.00); +INSERT INTO `eb_store_product_attr_value` VALUES (2, '30cm', 957, 37, 0.01, 'http://datong.crmeb.net/public/uploads/attach/2019/01/15/5c3dbc27c69c7.jpg', 'bae75a3a', 1500.00); +INSERT INTO `eb_store_product_attr_value` VALUES (3, '4L,黑色', 983, 16, 299.00, 'http://datong.crmeb.net/public/uploads/attach/2019/01/15/5c3dc15ba1972.jpg', 'c4b7ce93', 10.00); +INSERT INTO `eb_store_product_attr_value` VALUES (1, '蓝色', 137, 62, 0.03, 'http://datong.crmeb.net/public/uploads/attach/2019/01/15/5c3dba4187461.jpg', 'f39d47dc', 100.00); --- -------------------------------------------------------- +-- ---------------------------- +-- Table structure for eb_store_product_relation +-- ---------------------------- +DROP TABLE IF EXISTS `eb_store_product_relation`; +CREATE TABLE `eb_store_product_relation` ( + `uid` int(10) UNSIGNED NOT NULL COMMENT '用户ID', + `product_id` int(10) UNSIGNED NOT NULL COMMENT '商品ID', + `type` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '类型(收藏(collect)、点赞(like))', + `category` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '某种类型的商品(普通商品、秒杀商品)', + `add_time` int(10) UNSIGNED NOT NULL COMMENT '添加时间', + UNIQUE INDEX `uid`(`uid`, `product_id`, `type`) USING BTREE, + INDEX `type`(`type`) USING BTREE, + INDEX `category`(`category`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '商品点赞和收藏表' ROW_FORMAT = DYNAMIC; --- --- 表的结构 `eb_store_product_attr_result` --- - -CREATE TABLE IF NOT EXISTS `eb_store_product_attr_result` ( - `product_id` int(10) unsigned NOT NULL COMMENT '商品ID', - `result` text NOT NULL COMMENT '商品属性参数', - `change_time` int(10) unsigned NOT NULL COMMENT '上次修改时间', - UNIQUE KEY `product_id` (`product_id`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='商品属性详情表'; - --- --- 转存表中的数据 `eb_store_product_attr_result` --- - -INSERT INTO `eb_store_product_attr_result` (`product_id`, `result`, `change_time`) VALUES -(1, '{"attr":[{"value":"\\u989c\\u8272","detailValue":"","attrHidden":true,"detail":["\\u9ed1\\u8272","\\u767d\\u8272","\\u84dd\\u8272"]}],"value":[{"detail":{"\\u989c\\u8272":"\\u9ed1\\u8272"},"cost":"100.00","price":"0.01","sales":199,"pic":"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dba1366885.jpg","check":false},{"detail":{"\\u989c\\u8272":"\\u767d\\u8272"},"cost":"100.00","price":0.02,"sales":199,"pic":"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3db9de2b73a.jpg","check":false},{"detail":{"\\u989c\\u8272":"\\u84dd\\u8272"},"cost":"100.00","price":0.03,"sales":199,"pic":"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dba4187461.jpg","check":false}]}', 1547713512), -(2, '{"attr":[{"value":"\\u5b54\\u8ddd","detailValue":"","attrHidden":true,"detail":["30cm","40cm"]}],"value":[{"detail":{"\\u5b54\\u8ddd":"30cm"},"cost":"1500.00","price":"0.01","sales":994,"pic":"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dbc27c69c7.jpg","check":false},{"detail":{"\\u5b54\\u8ddd":"40cm"},"cost":"1500.00","price":888,"sales":994,"pic":"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dbc6a38fab.jpg","check":false}]}', 1547553770), -(3, '{"attr":[{"value":"\\u5bb9\\u91cf","detailValue":"","attrHidden":true,"detail":["3L","4L"]},{"value":"\\u989c\\u8272","detailValue":"","attrHidden":true,"detail":["\\u767d\\u8272","\\u9ed1\\u8272"]}],"value":[{"detail":{"\\u5bb9\\u91cf":"3L","\\u989c\\u8272":"\\u767d\\u8272"},"cost":"10.00","price":248,"sales":999,"pic":"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dc0ef27068.jpg","check":false},{"detail":{"\\u5bb9\\u91cf":"3L","\\u989c\\u8272":"\\u9ed1\\u8272"},"cost":"10.00","price":249,"sales":999,"pic":"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dc15ba1972.jpg","check":false},{"detail":{"\\u5bb9\\u91cf":"4L","\\u989c\\u8272":"\\u767d\\u8272"},"cost":"10.00","price":289,"sales":999,"pic":"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dc0ef27068.jpg","check":false},{"detail":{"\\u5bb9\\u91cf":"4L","\\u989c\\u8272":"\\u9ed1\\u8272"},"cost":"10.00","price":299,"sales":999,"pic":"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dc15ba1972.jpg","check":false}]}', 1547553857); - --- -------------------------------------------------------- - --- --- 表的结构 `eb_store_product_attr_value` --- - -CREATE TABLE IF NOT EXISTS `eb_store_product_attr_value` ( - `product_id` int(10) unsigned NOT NULL COMMENT '商品ID', - `suk` varchar(128) NOT NULL COMMENT '商品属性索引值 (attr_value|attr_value[|....])', - `stock` int(10) unsigned NOT NULL COMMENT '属性对应的库存', - `sales` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '销量', - `price` decimal(8,2) unsigned NOT NULL COMMENT '属性金额', - `image` varchar(128) DEFAULT NULL COMMENT '图片', - `unique` char(8) NOT NULL DEFAULT '' COMMENT '唯一值', - `cost` decimal(8,2) unsigned NOT NULL COMMENT '成本价', - UNIQUE KEY `unique` (`unique`,`suk`) USING BTREE, - KEY `store_id` (`product_id`,`suk`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='商品属性值表'; - --- --- 转存表中的数据 `eb_store_product_attr_value` --- - -INSERT INTO `eb_store_product_attr_value` (`product_id`, `suk`, `stock`, `sales`, `price`, `image`, `unique`, `cost`) VALUES -(2, '40cm', 990, 4, '888.00', 'http://datong.crmeb.net/public/uploads/attach/2019/01/15/5c3dbc6a38fab.jpg', '19f1d772', '1500.00'), -(1, '黑色', 71, 128, '0.01', 'http://datong.crmeb.net/public/uploads/attach/2019/01/15/5c3dba1366885.jpg', '6af2068e', '100.00'), -(3, '4L,白色', 990, 9, '289.00', 'http://datong.crmeb.net/public/uploads/attach/2019/01/15/5c3dc0ef27068.jpg', '824485b3', '10.00'), -(1, '白色', 169, 30, '0.02', 'http://datong.crmeb.net/public/uploads/attach/2019/01/15/5c3db9de2b73a.jpg', 'a84fff47', '100.00'), -(3, '3L,白色', 987, 12, '248.00', 'http://datong.crmeb.net/public/uploads/attach/2019/01/15/5c3dc0ef27068.jpg', 'ab6067b3', '10.00'), -(3, '3L,黑色', 993, 6, '249.00', 'http://datong.crmeb.net/public/uploads/attach/2019/01/15/5c3dc15ba1972.jpg', 'afb4949f', '10.00'), -(2, '30cm', 957, 37, '0.01', 'http://datong.crmeb.net/public/uploads/attach/2019/01/15/5c3dbc27c69c7.jpg', 'bae75a3a', '1500.00'), -(3, '4L,黑色', 983, 16, '299.00', 'http://datong.crmeb.net/public/uploads/attach/2019/01/15/5c3dc15ba1972.jpg', 'c4b7ce93', '10.00'), -(1, '蓝色', 137, 62, '0.03', 'http://datong.crmeb.net/public/uploads/attach/2019/01/15/5c3dba4187461.jpg', 'f39d47dc', '100.00'); - --- -------------------------------------------------------- - --- --- 表的结构 `eb_store_product_cate` --- - -CREATE TABLE IF NOT EXISTS `eb_store_product_cate` ( - `id` int(11) NOT NULL AUTO_INCREMENT, - `product_id` int(11) NOT NULL DEFAULT '0' COMMENT '产品id', - `cate_id` int(11) NOT NULL DEFAULT '0' COMMENT '分类id', - `add_time` int(11) NOT NULL DEFAULT '0' COMMENT '添加时间', - PRIMARY KEY (`id`) -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='产品分类辅助表' AUTO_INCREMENT=1 ; - --- -------------------------------------------------------- - --- --- 表的结构 `eb_store_product_relation` --- - -CREATE TABLE IF NOT EXISTS `eb_store_product_relation` ( - `uid` int(10) unsigned NOT NULL COMMENT '用户ID', - `product_id` int(10) unsigned NOT NULL COMMENT '商品ID', - `type` varchar(32) NOT NULL COMMENT '类型(收藏(collect)、点赞(like))', - `category` varchar(32) NOT NULL COMMENT '某种类型的商品(普通商品、秒杀商品)', - `add_time` int(10) unsigned NOT NULL COMMENT '添加时间', - UNIQUE KEY `uid` (`uid`,`product_id`,`type`) USING BTREE, - KEY `type` (`type`) USING BTREE, - KEY `category` (`category`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='商品点赞和收藏表'; - --- -------------------------------------------------------- - --- --- 表的结构 `eb_store_product_reply` --- - -CREATE TABLE IF NOT EXISTS `eb_store_product_reply` ( +-- ---------------------------- +-- Table structure for eb_store_product_reply +-- ---------------------------- +DROP TABLE IF EXISTS `eb_store_product_reply`; +CREATE TABLE `eb_store_product_reply` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '评论ID', `uid` int(11) NOT NULL COMMENT '用户ID', `oid` int(11) NOT NULL COMMENT '订单ID', - `unique` char(32) NOT NULL COMMENT '唯一id', + `unique` char(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '唯一id', `product_id` int(11) NOT NULL COMMENT '产品id', - `reply_type` varchar(32) NOT NULL DEFAULT 'product' COMMENT '某种商品类型(普通商品、秒杀商品)', + `reply_type` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT 'product' COMMENT '某种商品类型(普通商品、秒杀商品)', `product_score` tinyint(1) NOT NULL COMMENT '商品分数', `service_score` tinyint(1) NOT NULL COMMENT '服务分数', - `comment` varchar(512) NOT NULL COMMENT '评论内容', - `pics` text NOT NULL COMMENT '评论图片', + `comment` varchar(512) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '评论内容', + `pics` text CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '评论图片', `add_time` int(11) NOT NULL COMMENT '评论时间', - `merchant_reply_content` varchar(300) DEFAULT NULL COMMENT '管理员回复内容', - `merchant_reply_time` int(11) DEFAULT NULL COMMENT '管理员回复时间', - `is_del` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '0未删除1已删除', - `is_reply` tinyint(1) NOT NULL DEFAULT '0' COMMENT '0未回复1已回复', + `merchant_reply_content` varchar(300) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '管理员回复内容', + `merchant_reply_time` int(11) NULL DEFAULT NULL COMMENT '管理员回复时间', + `is_del` tinyint(1) UNSIGNED NOT NULL DEFAULT 0 COMMENT '0未删除1已删除', + `is_reply` tinyint(1) NOT NULL DEFAULT 0 COMMENT '0未回复1已回复', PRIMARY KEY (`id`) USING BTREE, - UNIQUE KEY `order_id_2` (`oid`,`unique`) USING BTREE, - KEY `add_time` (`add_time`) USING BTREE, - KEY `parent_id` (`reply_type`) USING BTREE, - KEY `is_del` (`is_del`) USING BTREE, - KEY `product_score` (`product_score`) USING BTREE, - KEY `service_score` (`service_score`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='评论表' AUTO_INCREMENT=1 ; + UNIQUE INDEX `order_id_2`(`oid`, `unique`) USING BTREE, + INDEX `add_time`(`add_time`) USING BTREE, + INDEX `parent_id`(`reply_type`) USING BTREE, + INDEX `is_del`(`is_del`) USING BTREE, + INDEX `product_score`(`product_score`) USING BTREE, + INDEX `service_score`(`service_score`) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '评论表' ROW_FORMAT = DYNAMIC; --- -------------------------------------------------------- - --- --- 表的结构 `eb_store_seckill` --- - -CREATE TABLE IF NOT EXISTS `eb_store_seckill` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '商品秒杀产品表id', - `product_id` int(10) unsigned NOT NULL COMMENT '商品id', - `image` varchar(255) NOT NULL COMMENT '推荐图', - `images` varchar(1000) NOT NULL COMMENT '轮播图', - `title` varchar(255) NOT NULL COMMENT '活动标题', - `info` varchar(255) NOT NULL COMMENT '简介', - `price` decimal(10,2) unsigned NOT NULL COMMENT '价格', - `cost` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '成本', - `ot_price` decimal(10,2) unsigned NOT NULL COMMENT '原价', - `give_integral` decimal(10,2) unsigned NOT NULL COMMENT '返多少积分', - `sort` int(10) unsigned NOT NULL COMMENT '排序', - `stock` int(10) unsigned NOT NULL COMMENT '库存', - `sales` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '销量', - `unit_name` varchar(16) NOT NULL COMMENT '单位名', - `postage` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '邮费', - `description` text COMMENT '内容', - `start_time` varchar(128) NOT NULL COMMENT '开始时间', - `stop_time` varchar(128) NOT NULL COMMENT '结束时间', - `add_time` varchar(128) NOT NULL COMMENT '添加时间', - `status` tinyint(1) unsigned NOT NULL COMMENT '产品状态', - `is_postage` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否包邮', - `is_hot` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '热门推荐', - `is_del` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '删除 0未删除1已删除', - `num` int(11) unsigned NOT NULL COMMENT '最多秒杀几个', - `is_show` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '显示', +-- ---------------------------- +-- Table structure for eb_store_seckill +-- ---------------------------- +DROP TABLE IF EXISTS `eb_store_seckill`; +CREATE TABLE `eb_store_seckill` ( + `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '商品秒杀产品表id', + `product_id` int(10) UNSIGNED NOT NULL COMMENT '商品id', + `image` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '推荐图', + `images` varchar(1000) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '轮播图', + `title` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '活动标题', + `info` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '简介', + `price` decimal(10, 2) UNSIGNED NOT NULL COMMENT '价格', + `cost` decimal(8, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '成本', + `ot_price` decimal(10, 2) UNSIGNED NOT NULL COMMENT '原价', + `give_integral` decimal(10, 2) UNSIGNED NOT NULL COMMENT '返多少积分', + `sort` int(10) UNSIGNED NOT NULL COMMENT '排序', + `stock` int(10) UNSIGNED NOT NULL COMMENT '库存', + `sales` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '销量', + `unit_name` varchar(16) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '单位名', + `postage` decimal(8, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '邮费', + `description` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '内容', + `start_time` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '开始时间', + `stop_time` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '结束时间', + `add_time` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '添加时间', + `status` tinyint(1) UNSIGNED NOT NULL COMMENT '产品状态', + `is_postage` tinyint(1) UNSIGNED NOT NULL DEFAULT 0 COMMENT '是否包邮', + `is_hot` tinyint(1) UNSIGNED NOT NULL DEFAULT 0 COMMENT '热门推荐', + `is_del` tinyint(1) UNSIGNED NOT NULL DEFAULT 0 COMMENT '删除 0未删除1已删除', + `num` int(11) UNSIGNED NOT NULL COMMENT '最多秒杀几个', + `is_show` tinyint(1) UNSIGNED NOT NULL DEFAULT 1 COMMENT '显示', PRIMARY KEY (`id`) USING BTREE, - KEY `product_id` (`product_id`) USING BTREE, - KEY `start_time` (`start_time`,`stop_time`) USING BTREE, - KEY `is_del` (`is_del`) USING BTREE, - KEY `is_hot` (`is_hot`) USING BTREE, - KEY `is_show` (`status`) USING BTREE, - KEY `add_time` (`add_time`) USING BTREE, - KEY `sort` (`sort`) USING BTREE, - KEY `is_postage` (`is_postage`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='商品秒杀产品表' AUTO_INCREMENT=13 ; + INDEX `product_id`(`product_id`) USING BTREE, + INDEX `start_time`(`start_time`, `stop_time`) USING BTREE, + INDEX `is_del`(`is_del`) USING BTREE, + INDEX `is_hot`(`is_hot`) USING BTREE, + INDEX `is_show`(`status`) USING BTREE, + INDEX `add_time`(`add_time`) USING BTREE, + INDEX `sort`(`sort`) USING BTREE, + INDEX `is_postage`(`is_postage`) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 13 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '商品秒杀产品表' ROW_FORMAT = DYNAMIC; --- --- 转存表中的数据 `eb_store_seckill` --- +-- ---------------------------- +-- Records of eb_store_seckill +-- ---------------------------- +INSERT INTO `eb_store_seckill` VALUES (1, 1, 'http://datong.crmeb.net/public/uploads/attach/2019/01/15/5c3dba1366885.jpg', '[\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dba1366885.jpg\",\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dba4187461.jpg\",\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3db9de2b73a.jpg\"]', '手慢无 无线吸尘器F8 玫瑰金礼盒版', '【年货节活动价1699元,领取吸尘器优惠券再减50元,到手价仅1649元】', 0.01, 100.00, 599.00, 1699.00, 1, 953, 47, '件', 0.00, '', '1553702400', '1556553600', '1553847138', 1, 1, 1, 1, 1, 1); +INSERT INTO `eb_store_seckill` VALUES (2, 3, 'http://datong.crmeb.net/public/uploads/attach/2019/01/15/5c3dc0ef27068.jpg', '[\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dc0ef27068.jpg\",\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dc15ba1972.jpg\"]', '智米加湿器 白色', '智米加湿器 白色', 99.00, 10.00, 249.00, 249.00, 0, 993, 7, '件', 0.00, '', '1551369600', '1556553600', '1553847124', 1, 1, 1, 1, 1, 1); +INSERT INTO `eb_store_seckill` VALUES (3, 2, 'http://datong.crmeb.net/public/uploads/attach/2019/01/15/5c3dbc27c69c7.jpg', '[\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dbc27c69c7.jpg\",\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dbc6a38fab.jpg\"]', '智能马桶盖 AI版 限时秒杀中', '智能马桶盖 AI版', 0.01, 1500.00, 1599.00, 1999.00, 0, 990, 10, '件', 0.00, '', '1553702400', '1556553600', '1553847112', 1, 1, 1, 1, 1, 1); +INSERT INTO `eb_store_seckill` VALUES (4, 4, 'http://datong.crmeb.net/public/uploads/attach/2019/01/15/5c3dc23646fff.jpg', '[\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dc23646fff.jpg\"]', '互联网电热水器1A', '3000w双管速热,动态360L热水用量,双重漏电保护,智能APP操控', 10.00, 888.00, 999.00, 999.00, 0, 441, 59, '件', 0.00, NULL, '1554861600', '1554868799', '1554860320', 1, 1, 1, 1, 1, 1); +INSERT INTO `eb_store_seckill` VALUES (5, 1, 'http://datong.crmeb.net/public/uploads/attach/2019/01/15/5c3dba1366885.jpg', '[\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dba1366885.jpg\",\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dba4187461.jpg\",\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3db9de2b73a.jpg\"]', '7-10点 无线吸尘器F8 玫瑰金礼盒版', '【年货节活动价1699元,领取吸尘器优惠券再减50元,到手价仅1649元】', 0.01, 100.00, 1.00, 1699.00, 1, 586, 159, '件', 1.00, NULL, '1554850800', '1554861600', '1554860478', 1, 1, 1, 1, 1, 1); +INSERT INTO `eb_store_seckill` VALUES (6, 2, 'http://datong.crmeb.net/public/uploads/attach/2019/01/15/5c3dbc27c69c7.jpg', '[\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dbc27c69c7.jpg\",\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dbc6a38fab.jpg\"]', '10-12点智能马桶盖 AI版', '智能马桶盖 AI版', 0.01, 1500.00, 100.00, 1999.00, 0, 994, 31, '件', 0.00, NULL, '1554876000', '1554883200', '1554876551', 1, 1, 1, 1, 1, 1); +INSERT INTO `eb_store_seckill` VALUES (7, 3, 'http://datong.crmeb.net/public/uploads/attach/2019/01/15/5c3dc0ef27068.jpg', '[\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dc0ef27068.jpg\",\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dc15ba1972.jpg\"]', '12-14智米加湿器 白色', '智米加湿器 白色', 0.01, 10.00, 249.00, 249.00, 0, 999, 17, '件', 0.00, NULL, '1554876000', '1554883200', '1554877858', 1, 1, 1, 1, 1, 1); +INSERT INTO `eb_store_seckill` VALUES (8, 1, 'http://datong.crmeb.net/public/uploads/attach/2019/01/15/5c3dba1366885.jpg', '[\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dba1366885.jpg\",\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dba4187461.jpg\",\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3db9de2b73a.jpg\"]', '12-14无线吸尘器F8 玫瑰金礼盒版', '【年货节活动价1699元,领取吸尘器优惠券再减50元,到手价仅1649元】', 0.01, 100.00, 10.00, 1699.00, 1, 586, 173, '件', 1.00, NULL, '1554998400', '1556553600', '1555148238', 1, 1, 1, 0, 1, 1); +INSERT INTO `eb_store_seckill` VALUES (9, 2, 'http://datong.crmeb.net/public/uploads/attach/2019/01/15/5c3dbc27c69c7.jpg', '[\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dbc27c69c7.jpg\",\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dbc6a38fab.jpg\"]', '14-16智能马桶盖 AI版', '智能马桶盖 AI版', 0.01, 1500.00, 0.01, 1999.00, 0, 994, 33, '件', 0.00, NULL, '1554876000', '1554883199', '1554887359', 1, 1, 1, 0, 1, 1); +INSERT INTO `eb_store_seckill` VALUES (10, 3, 'http://datong.crmeb.net/public/uploads/attach/2019/01/15/5c3dc0ef27068.jpg', '[\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dc0ef27068.jpg\",\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dc15ba1972.jpg\"]', '智米加湿器 白色', '智米加湿器 白色', 0.01, 10.00, 249.00, 249.00, 0, 998, 40, '件', 0.00, NULL, '1554998400', '1556553600', '1555148264', 1, 1, 1, 0, 1, 1); +INSERT INTO `eb_store_seckill` VALUES (11, 2, 'http://datong.crmeb.net/public/uploads/attach/2019/01/15/5c3dbc27c69c7.jpg', '[\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dbc27c69c7.jpg\",\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dbc6a38fab.jpg\"]', '智能马桶盖 AI版', '智能马桶盖 AI版', 0.01, 1500.00, 0.01, 1999.00, 0, 993, 45, '件', 0.00, NULL, '1554998400', '1556553600', '1555148291', 1, 1, 1, 0, 1, 1); +INSERT INTO `eb_store_seckill` VALUES (12, 4, 'http://datong.crmeb.net/public/uploads/attach/2019/01/15/5c3dc23646fff.jpg', '[\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dc23646fff.jpg\"]', '互联网电热水器1A', '3000w双管速热,动态360L热水用量,双重漏电保护,智能APP操控', 1.00, 888.00, 999.00, 999.00, 0, 420, 80, '件', 0.00, NULL, '1554998400', '1556553600', '1555148278', 1, 1, 1, 0, 1, 1); -INSERT INTO `eb_store_seckill` (`id`, `product_id`, `image`, `images`, `title`, `info`, `price`, `cost`, `ot_price`, `give_integral`, `sort`, `stock`, `sales`, `unit_name`, `postage`, `description`, `start_time`, `stop_time`, `add_time`, `status`, `is_postage`, `is_hot`, `is_del`, `num`, `is_show`) VALUES -(1, 1, 'http://datong.crmeb.net/public/uploads/attach/2019/01/15/5c3dba1366885.jpg', '["http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dba1366885.jpg","http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dba4187461.jpg","http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3db9de2b73a.jpg"]', '手慢无 无线吸尘器F8 玫瑰金礼盒版', '【年货节活动价1699元,领取吸尘器优惠券再减50元,到手价仅1649元】', '0.01', '100.00', '599.00', '1699.00', 1, 953, 47, '件', '0.00', '', '1553702400', '1556553600', '1553847138', 1, 1, 1, 1, 1, 1), -(2, 3, 'http://datong.crmeb.net/public/uploads/attach/2019/01/15/5c3dc0ef27068.jpg', '["http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dc0ef27068.jpg","http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dc15ba1972.jpg"]', '智米加湿器 白色', '智米加湿器 白色', '99.00', '10.00', '249.00', '249.00', 0, 993, 7, '件', '0.00', '', '1551369600', '1556553600', '1553847124', 1, 1, 1, 1, 1, 1), -(3, 2, 'http://datong.crmeb.net/public/uploads/attach/2019/01/15/5c3dbc27c69c7.jpg', '["http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dbc27c69c7.jpg","http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dbc6a38fab.jpg"]', '智能马桶盖 AI版 限时秒杀中', '智能马桶盖 AI版', '0.01', '1500.00', '1599.00', '1999.00', 0, 990, 10, '件', '0.00', '', '1553702400', '1556553600', '1553847112', 1, 1, 1, 1, 1, 1), -(4, 4, 'http://datong.crmeb.net/public/uploads/attach/2019/01/15/5c3dc23646fff.jpg', '["http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dc23646fff.jpg"]', '互联网电热水器1A', '3000w双管速热,动态360L热水用量,双重漏电保护,智能APP操控', '10.00', '888.00', '999.00', '999.00', 0, 441, 59, '件', '0.00', NULL, '1554861600', '1554868799', '1554860320', 1, 1, 1, 1, 1, 1), -(5, 1, 'http://datong.crmeb.net/public/uploads/attach/2019/01/15/5c3dba1366885.jpg', '["http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dba1366885.jpg","http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dba4187461.jpg","http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3db9de2b73a.jpg"]', '7-10点 无线吸尘器F8 玫瑰金礼盒版', '【年货节活动价1699元,领取吸尘器优惠券再减50元,到手价仅1649元】', '0.01', '100.00', '1.00', '1699.00', 1, 586, 159, '件', '1.00', NULL, '1554850800', '1554861600', '1554860478', 1, 1, 1, 1, 1, 1), -(6, 2, 'http://datong.crmeb.net/public/uploads/attach/2019/01/15/5c3dbc27c69c7.jpg', '["http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dbc27c69c7.jpg","http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dbc6a38fab.jpg"]', '10-12点智能马桶盖 AI版', '智能马桶盖 AI版', '0.01', '1500.00', '100.00', '1999.00', 0, 994, 31, '件', '0.00', NULL, '1554876000', '1554883200', '1554876551', 1, 1, 1, 1, 1, 1), -(7, 3, 'http://datong.crmeb.net/public/uploads/attach/2019/01/15/5c3dc0ef27068.jpg', '["http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dc0ef27068.jpg","http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dc15ba1972.jpg"]', '12-14智米加湿器 白色', '智米加湿器 白色', '0.01', '10.00', '249.00', '249.00', 0, 999, 17, '件', '0.00', NULL, '1554876000', '1554883200', '1554877858', 1, 1, 1, 1, 1, 1), -(8, 1, 'http://datong.crmeb.net/public/uploads/attach/2019/01/15/5c3dba1366885.jpg', '["http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dba1366885.jpg","http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dba4187461.jpg","http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3db9de2b73a.jpg"]', '12-14无线吸尘器F8 玫瑰金礼盒版', '【年货节活动价1699元,领取吸尘器优惠券再减50元,到手价仅1649元】', '0.01', '100.00', '10.00', '1699.00', 1, 586, 173, '件', '1.00', NULL, '1554998400', '1556553600', '1555148238', 1, 1, 1, 0, 1, 1), -(9, 2, 'http://datong.crmeb.net/public/uploads/attach/2019/01/15/5c3dbc27c69c7.jpg', '["http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dbc27c69c7.jpg","http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dbc6a38fab.jpg"]', '14-16智能马桶盖 AI版', '智能马桶盖 AI版', '0.01', '1500.00', '0.01', '1999.00', 0, 994, 33, '件', '0.00', NULL, '1554876000', '1554883199', '1554887359', 1, 1, 1, 0, 1, 1), -(10, 3, 'http://datong.crmeb.net/public/uploads/attach/2019/01/15/5c3dc0ef27068.jpg', '["http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dc0ef27068.jpg","http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dc15ba1972.jpg"]', '智米加湿器 白色', '智米加湿器 白色', '0.01', '10.00', '249.00', '249.00', 0, 998, 40, '件', '0.00', NULL, '1554998400', '1556553600', '1555148264', 1, 1, 1, 0, 1, 1), -(11, 2, 'http://datong.crmeb.net/public/uploads/attach/2019/01/15/5c3dbc27c69c7.jpg', '["http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dbc27c69c7.jpg","http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dbc6a38fab.jpg"]', '智能马桶盖 AI版', '智能马桶盖 AI版', '0.01', '1500.00', '0.01', '1999.00', 0, 993, 45, '件', '0.00', NULL, '1554998400', '1556553600', '1555148291', 1, 1, 1, 0, 1, 1), -(12, 4, 'http://datong.crmeb.net/public/uploads/attach/2019/01/15/5c3dc23646fff.jpg', '["http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dc23646fff.jpg"]', '互联网电热水器1A', '3000w双管速热,动态360L热水用量,双重漏电保护,智能APP操控', '1.00', '888.00', '999.00', '999.00', 0, 420, 80, '件', '0.00', NULL, '1554998400', '1556553600', '1555148278', 1, 1, 1, 0, 1, 1); +-- ---------------------------- +-- Table structure for eb_store_seckill_attr +-- ---------------------------- +DROP TABLE IF EXISTS `eb_store_seckill_attr`; +CREATE TABLE `eb_store_seckill_attr` ( + `product_id` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '商品ID', + `attr_name` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '属性名', + `attr_values` varchar(256) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '属性值', + INDEX `store_id`(`product_id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '秒杀商品属性表' ROW_FORMAT = DYNAMIC; --- -------------------------------------------------------- +-- ---------------------------- +-- Table structure for eb_store_seckill_attr_result +-- ---------------------------- +DROP TABLE IF EXISTS `eb_store_seckill_attr_result`; +CREATE TABLE `eb_store_seckill_attr_result` ( + `product_id` int(10) UNSIGNED NOT NULL COMMENT '商品ID', + `result` text CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '商品属性参数', + `change_time` int(10) UNSIGNED NOT NULL COMMENT '上次修改时间', + UNIQUE INDEX `product_id`(`product_id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '秒杀商品属性详情表' ROW_FORMAT = DYNAMIC; --- --- 表的结构 `eb_store_seckill_attr` --- +-- ---------------------------- +-- Table structure for eb_store_seckill_attr_value +-- ---------------------------- +DROP TABLE IF EXISTS `eb_store_seckill_attr_value`; +CREATE TABLE `eb_store_seckill_attr_value` ( + `product_id` int(10) UNSIGNED NOT NULL COMMENT '商品ID', + `suk` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '商品属性索引值 (attr_value|attr_value[|....])', + `stock` int(10) UNSIGNED NOT NULL COMMENT '属性对应的库存', + `sales` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '销量', + `price` decimal(8, 2) UNSIGNED NOT NULL COMMENT '属性金额', + `image` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '图片', + `unique` char(8) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '唯一值', + `cost` decimal(8, 2) UNSIGNED NOT NULL COMMENT '成本价', + UNIQUE INDEX `unique`(`unique`, `suk`) USING BTREE, + INDEX `store_id`(`product_id`, `suk`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '秒杀商品属性值表' ROW_FORMAT = DYNAMIC; -CREATE TABLE IF NOT EXISTS `eb_store_seckill_attr` ( - `product_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '商品ID', - `attr_name` varchar(32) NOT NULL COMMENT '属性名', - `attr_values` varchar(256) NOT NULL COMMENT '属性值', - KEY `store_id` (`product_id`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='秒杀商品属性表'; - --- -------------------------------------------------------- - --- --- 表的结构 `eb_store_seckill_attr_result` --- - -CREATE TABLE IF NOT EXISTS `eb_store_seckill_attr_result` ( - `product_id` int(10) unsigned NOT NULL COMMENT '商品ID', - `result` text NOT NULL COMMENT '商品属性参数', - `change_time` int(10) unsigned NOT NULL COMMENT '上次修改时间', - UNIQUE KEY `product_id` (`product_id`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='秒杀商品属性详情表'; - --- --- 转存表中的数据 `eb_store_seckill_attr_result` --- - -INSERT INTO `eb_store_seckill_attr_result` (`product_id`, `result`, `change_time`) VALUES -(16, '{"attr":[{"value":"\\u989c\\u8272","detailValue":"","attrHidden":true,"detail":["\\u9ed1\\u8272","\\u767d\\u8272"]},{"value":"\\u5305\\u88c5","detailValue":"","attrHidden":true,"detail":["\\u5927","\\u5c0f","\\u4e2d"]}],"value":[{"detail":{"\\u989c\\u8272":"\\u9ed1\\u8272","\\u5305\\u88c5":"\\u5927"},"price":"0.00","sales":888,"pic":"\\/public\\/uploads\\/store\\/product\\/s_5abc58e8ad6db.jpg","check":false},{"detail":{"\\u989c\\u8272":"\\u9ed1\\u8272","\\u5305\\u88c5":"\\u5c0f"},"price":"0.00","sales":888,"pic":"\\/public\\/uploads\\/store\\/product\\/s_5abc58e8ad6db.jpg","check":false},{"detail":{"\\u989c\\u8272":"\\u9ed1\\u8272","\\u5305\\u88c5":"\\u4e2d"},"price":"0.00","sales":888,"pic":"\\/public\\/uploads\\/store\\/product\\/s_5abc58e8ad6db.jpg","check":false},{"detail":{"\\u989c\\u8272":"\\u767d\\u8272","\\u5305\\u88c5":"\\u5927"},"price":"0.00","sales":888,"pic":"\\/public\\/uploads\\/store\\/product\\/s_5abc58e8ad6db.jpg","check":false},{"detail":{"\\u989c\\u8272":"\\u767d\\u8272","\\u5305\\u88c5":"\\u5c0f"},"price":"0.00","sales":888,"pic":"\\/public\\/uploads\\/store\\/product\\/s_5abc58e8ad6db.jpg","check":false},{"detail":{"\\u989c\\u8272":"\\u767d\\u8272","\\u5305\\u88c5":"\\u4e2d"},"price":"0.00","sales":888,"pic":"\\/public\\/uploads\\/store\\/product\\/s_5abc58e8ad6db.jpg","check":false}]}', 1528271776), -(21, '{"attr":[{"value":"\\u989c\\u8272","detailValue":"","attrHidden":true,"detail":["\\u767d\\u8272","\\u9ed1\\u8272"]}],"value":[{"detail":{"\\u989c\\u8272":"\\u767d\\u8272"},"price":"10.00","sales":9,"pic":"http:\\/\\/shop.crmeb.net\\/public\\/uploads\\/editor\\/20180601\\/5b10b2f5cd89b.jpg","check":false},{"detail":{"\\u989c\\u8272":"\\u9ed1\\u8272"},"price":"10.00","sales":9,"pic":"http:\\/\\/shop.crmeb.net\\/public\\/uploads\\/editor\\/20180601\\/5b10b2f5cd89b.jpg","check":false}]}', 1530779190), -(24, '{"attr":[{"value":"\\u989c\\u8272","detailValue":"","attrHidden":true,"detail":["\\u767d\\u8272","\\u9ed1\\u8272"]}],"value":[{"detail":{"\\u989c\\u8272":"\\u767d\\u8272"},"price":"1.00","sales":99,"pic":"\\/public\\/uploads\\/store\\/product\\/s_5ae6715187623.jpg","check":false},{"detail":{"\\u989c\\u8272":"\\u9ed1\\u8272"},"price":"1.00","sales":99,"pic":"\\/public\\/uploads\\/store\\/product\\/s_5ae6715187623.jpg","check":false}]}', 1530890416); - --- -------------------------------------------------------- - --- --- 表的结构 `eb_store_seckill_attr_value` --- - -CREATE TABLE IF NOT EXISTS `eb_store_seckill_attr_value` ( - `product_id` int(10) unsigned NOT NULL COMMENT '商品ID', - `suk` varchar(128) NOT NULL COMMENT '商品属性索引值 (attr_value|attr_value[|....])', - `stock` int(10) unsigned NOT NULL COMMENT '属性对应的库存', - `sales` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '销量', - `price` decimal(8,2) unsigned NOT NULL COMMENT '属性金额', - `image` varchar(128) DEFAULT NULL COMMENT '图片', - `unique` char(8) NOT NULL DEFAULT '' COMMENT '唯一值', - `cost` decimal(8,2) unsigned NOT NULL COMMENT '成本价', - UNIQUE KEY `unique` (`unique`,`suk`) USING BTREE, - KEY `store_id` (`product_id`,`suk`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='秒杀商品属性值表'; - --- --- 转存表中的数据 `eb_store_seckill_attr_value` --- - -INSERT INTO `eb_store_seckill_attr_value` (`product_id`, `suk`, `stock`, `sales`, `price`, `image`, `unique`, `cost`) VALUES -(16, '小,白色', 888, 0, '0.00', '/public/uploads/store/product/s_5abc58e8ad6db.jpg', '0ea13c0e', '0.00'), -(16, '中,黑色', 888, 0, '0.00', '/public/uploads/store/product/s_5abc58e8ad6db.jpg', '12b77e62', '0.00'), -(24, '黑色', 99, 0, '1.00', '/public/uploads/store/product/s_5ae6715187623.jpg', '147b853b', '0.00'), -(16, '大,白色', 888, 0, '0.00', '/public/uploads/store/product/s_5abc58e8ad6db.jpg', '187ad0ea', '0.00'), -(24, '白色', 99, 0, '1.00', '/public/uploads/store/product/s_5ae6715187623.jpg', '48bf425d', '0.00'), -(21, '黑色', 9, 0, '10.00', 'http://shop.crmeb.net/public/uploads/editor/20180601/5b10b2f5cd89b.jpg', '56cb2fe0', '0.00'), -(16, '大,黑色', 888, 0, '0.00', '/public/uploads/store/product/s_5abc58e8ad6db.jpg', '57852e0e', '0.00'), -(16, '小,黑色', 888, 0, '0.00', '/public/uploads/store/product/s_5abc58e8ad6db.jpg', '747eaf51', '0.00'), -(16, '中,白色', 888, 0, '0.00', '/public/uploads/store/product/s_5abc58e8ad6db.jpg', 'a3421a2c', '0.00'), -(21, '白色', 9, 0, '10.00', 'http://shop.crmeb.net/public/uploads/editor/20180601/5b10b2f5cd89b.jpg', 'e893b71b', '0.00'); - --- -------------------------------------------------------- - --- --- 表的结构 `eb_store_service` --- - -CREATE TABLE IF NOT EXISTS `eb_store_service` ( +-- ---------------------------- +-- Table structure for eb_store_service +-- ---------------------------- +DROP TABLE IF EXISTS `eb_store_service`; +CREATE TABLE `eb_store_service` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '客服id', - `mer_id` int(11) NOT NULL DEFAULT '0' COMMENT '商户id', + `mer_id` int(11) NOT NULL DEFAULT 0 COMMENT '商户id', `uid` int(11) NOT NULL COMMENT '客服uid', - `avatar` varchar(250) NOT NULL COMMENT '客服头像', - `nickname` varchar(50) NOT NULL COMMENT '代理名称', + `avatar` varchar(250) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '客服头像', + `nickname` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '代理名称', `add_time` int(11) NOT NULL COMMENT '添加时间', - `status` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '0隐藏1显示', - `notify` int(2) DEFAULT '0' COMMENT '订单通知1开启0关闭', + `status` tinyint(1) UNSIGNED NOT NULL DEFAULT 1 COMMENT '0隐藏1显示', + `notify` int(2) NULL DEFAULT 0 COMMENT '订单通知1开启0关闭', PRIMARY KEY (`id`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='客服表' AUTO_INCREMENT=1 ; +) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '客服表' ROW_FORMAT = DYNAMIC; --- -------------------------------------------------------- - --- --- 表的结构 `eb_store_service_log` --- - -CREATE TABLE IF NOT EXISTS `eb_store_service_log` ( +-- ---------------------------- +-- Table structure for eb_store_service_log +-- ---------------------------- +DROP TABLE IF EXISTS `eb_store_service_log`; +CREATE TABLE `eb_store_service_log` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '客服用户对话记录表ID', - `mer_id` int(11) NOT NULL DEFAULT '0' COMMENT '商户id', - `msn` text NOT NULL COMMENT '消息内容', + `mer_id` int(11) NOT NULL DEFAULT 0 COMMENT '商户id', + `msn` text CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '消息内容', `uid` int(11) NOT NULL COMMENT '发送人uid', `to_uid` int(11) NOT NULL COMMENT '接收人uid', `add_time` int(11) NOT NULL COMMENT '发送时间', - `type` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否已读(0:否;1:是;)', - `remind` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否提醒过', + `type` tinyint(1) NOT NULL DEFAULT 0 COMMENT '是否已读(0:否;1:是;)', + `remind` tinyint(1) NOT NULL DEFAULT 0 COMMENT '是否提醒过', PRIMARY KEY (`id`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='客服用户对话记录表' AUTO_INCREMENT=1 ; +) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '客服用户对话记录表' ROW_FORMAT = DYNAMIC; --- -------------------------------------------------------- - --- --- 表的结构 `eb_store_visit` --- - -CREATE TABLE IF NOT EXISTS `eb_store_visit` ( +-- ---------------------------- +-- Table structure for eb_store_visit +-- ---------------------------- +DROP TABLE IF EXISTS `eb_store_visit`; +CREATE TABLE `eb_store_visit` ( `id` int(10) NOT NULL AUTO_INCREMENT, - `product_id` int(11) DEFAULT NULL COMMENT '产品ID', - `product_type` varchar(32) DEFAULT NULL COMMENT '产品类型', - `cate_id` int(11) DEFAULT NULL COMMENT '产品分类ID', - `type` char(50) DEFAULT NULL COMMENT '产品类型', - `uid` int(11) DEFAULT NULL COMMENT '用户ID', - `count` int(11) DEFAULT NULL COMMENT '访问次数', - `content` varchar(255) DEFAULT NULL COMMENT '备注描述', - `add_time` int(11) DEFAULT NULL COMMENT '添加时间', + `product_id` int(11) NULL DEFAULT NULL COMMENT '产品ID', + `product_type` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '产品类型', + `cate_id` int(11) NULL DEFAULT NULL COMMENT '产品分类ID', + `type` char(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '产品类型', + `uid` int(11) NULL DEFAULT NULL COMMENT '用户ID', + `count` int(11) NULL DEFAULT NULL COMMENT '访问次数', + `content` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注描述', + `add_time` int(11) NULL DEFAULT NULL COMMENT '添加时间', PRIMARY KEY (`id`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='产品浏览分析表' AUTO_INCREMENT=1 ; +) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '产品浏览分析表' ROW_FORMAT = DYNAMIC; --- -------------------------------------------------------- - --- --- 表的结构 `eb_system_admin` --- - -CREATE TABLE IF NOT EXISTS `eb_system_admin` ( - `id` smallint(5) unsigned NOT NULL AUTO_INCREMENT COMMENT '后台管理员表ID', - `account` varchar(32) NOT NULL COMMENT '后台管理员账号', - `pwd` char(32) NOT NULL COMMENT '后台管理员密码', - `real_name` varchar(16) NOT NULL COMMENT '后台管理员姓名', - `roles` varchar(128) NOT NULL COMMENT '后台管理员权限(menus_id)', - `last_ip` varchar(16) DEFAULT NULL COMMENT '后台管理员最后一次登录ip', - `last_time` int(10) unsigned DEFAULT NULL COMMENT '后台管理员最后一次登录时间', - `add_time` int(10) unsigned NOT NULL COMMENT '后台管理员添加时间', - `login_count` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '登录次数', - `level` tinyint(3) unsigned NOT NULL DEFAULT '1' COMMENT '后台管理员级别', - `status` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '后台管理员状态 1有效0无效', - `is_del` tinyint(1) unsigned NOT NULL DEFAULT '0', +-- ---------------------------- +-- Table structure for eb_system_admin +-- ---------------------------- +DROP TABLE IF EXISTS `eb_system_admin`; +CREATE TABLE `eb_system_admin` ( + `id` smallint(5) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '后台管理员表ID', + `account` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '后台管理员账号', + `pwd` char(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '后台管理员密码', + `real_name` varchar(16) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '后台管理员姓名', + `roles` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '后台管理员权限(menus_id)', + `last_ip` varchar(16) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '后台管理员最后一次登录ip', + `last_time` int(10) UNSIGNED NULL DEFAULT NULL COMMENT '后台管理员最后一次登录时间', + `add_time` int(10) UNSIGNED NOT NULL COMMENT '后台管理员添加时间', + `login_count` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '登录次数', + `level` tinyint(3) UNSIGNED NOT NULL DEFAULT 1 COMMENT '后台管理员级别', + `status` tinyint(1) UNSIGNED NOT NULL DEFAULT 1 COMMENT '后台管理员状态 1有效0无效', + `is_del` tinyint(1) UNSIGNED NOT NULL DEFAULT 0, PRIMARY KEY (`id`) USING BTREE, - KEY `account` (`account`) USING BTREE, - KEY `status` (`status`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='后台管理员表' AUTO_INCREMENT=2 ; + INDEX `account`(`account`) USING BTREE, + INDEX `status`(`status`) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '后台管理员表' ROW_FORMAT = DYNAMIC; --- --- 转存表中的数据 `eb_system_admin` --- +-- ---------------------------- +-- Records of eb_system_admin +-- ---------------------------- +INSERT INTO `eb_system_admin` VALUES (1, 'admin', '6b94a88632e2577a60f64520998d11c9', 'admin', '1', '123.139.69.152', 1555149031, 1547630423, 0, 0, 1, 0); -INSERT INTO `eb_system_admin` (`id`, `account`, `pwd`, `real_name`, `roles`, `last_ip`, `last_time`, `add_time`, `login_count`, `level`, `status`, `is_del`) VALUES -(1, 'admin', '6b94a88632e2577a60f64520998d11c9', 'admin', '1', '127.0.0.1', 1557384677, 1547630423, 0, 0, 1, 0); - --- -------------------------------------------------------- - --- --- 表的结构 `eb_system_attachment` --- - -CREATE TABLE IF NOT EXISTS `eb_system_attachment` ( +-- ---------------------------- +-- Table structure for eb_system_attachment +-- ---------------------------- +DROP TABLE IF EXISTS `eb_system_attachment`; +CREATE TABLE `eb_system_attachment` ( `att_id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(100) NOT NULL COMMENT '附件名称', - `att_dir` varchar(200) NOT NULL COMMENT '附件路径', + `name` varchar(100) NOT NULL DEFAULT '' COMMENT '附件名称', + `att_dir` varchar(200) NOT NULL DEFAULT '' COMMENT '附件路径', `satt_dir` varchar(200) DEFAULT NULL COMMENT '压缩图片路径', - `att_size` char(30) NOT NULL COMMENT '附件大小', - `att_type` char(30) NOT NULL COMMENT '附件类型', - `pid` int(10) NOT NULL COMMENT '分类ID0编辑器,1产品图片,2拼团图片,3砍价图片,4秒杀图片,5文章图片,6组合数据图', - `time` int(11) NOT NULL COMMENT '上传时间', + `att_size` char(30) NOT NULL DEFAULT '' COMMENT '附件大小', + `att_type` char(30) NOT NULL DEFAULT '' COMMENT '附件类型', + `pid` int(10) NOT NULL DEFAULT 0 COMMENT '分类ID0编辑器,1产品图片,2拼团图片,3砍价图片,4秒杀图片,5文章图片,6组合数据图', + `time` int(11) NOT NULL DEFAULT 0 COMMENT '上传时间', + `image_type` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '图片上传类型 1本地 2七牛云 3OSS 4COS ', + `module_type` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '图片上传模块类型 1 后台上传 2 用户生成', PRIMARY KEY (`att_id`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='附件管理表' AUTO_INCREMENT=97 ; +) ENGINE=InnoDB AUTO_INCREMENT=172 DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='附件管理表'; --- --- 转存表中的数据 `eb_system_attachment` --- +-- ---------------------------- +-- Records of eb_system_attachment +-- ---------------------------- +INSERT INTO `eb_system_attachment` VALUES (2, '5c387d18c37fa.jpg', '/public/uploads/editor/20190111/5c387d18c37fa.jpg', '/public/uploads/editor/20190111/s_5c387d18c37fa.jpg', '9274', 'image/jpeg', 0, 1547205912,1,1); +INSERT INTO `eb_system_attachment` VALUES (3, '5c387daf3ef63.jpg', '/public/uploads/editor/20190111/5c387daf3ef63.jpg', '/public/uploads/editor/20190111/s_5c387daf3ef63.jpg', '9274', 'image/jpeg', 0, 1547206063,1,1); +INSERT INTO `eb_system_attachment` VALUES (7, '5c3db14908923.jpg', '/public/uploads/attach/2019/01/15/5c3db14908923.jpg', '/public/uploads/attach/2019/01/15/s_5c3db14908923.jpg', '102671', 'image/jpeg', 3, 1547546953,1,1); +INSERT INTO `eb_system_attachment` VALUES (9, '5c3db5d483c7e.jpg', '/public/uploads/attach/2019/01/15/5c3db5d483c7e.jpg', '/public/uploads/attach/2019/01/15/s_5c3db5d483c7e.jpg', '41833', 'image/jpeg', 3, 1547548116,1,1); +INSERT INTO `eb_system_attachment` VALUES (11, '5c3db8b933d92.jpg', '/public/uploads/attach/2019/01/15/5c3db8b933d92.jpg', '/public/uploads/attach/2019/01/15/s_5c3db8b933d92.jpg', '31746', 'image/jpeg', 2, 1547548857,1,1); +INSERT INTO `eb_system_attachment` VALUES (12, '5c3db9de2b73a.jpg', '/public/uploads/attach/2019/01/15/5c3db9de2b73a.jpg', '/public/uploads/attach/2019/01/15/s_5c3db9de2b73a.jpg', '61866', 'image/jpeg', 1, 1547549150,1,1); +INSERT INTO `eb_system_attachment` VALUES (13, '5c3dba1366885.jpg', '/public/uploads/attach/2019/01/15/5c3dba1366885.jpg', '/public/uploads/attach/2019/01/15/s_5c3dba1366885.jpg', '41951', 'image/jpeg', 1, 1547549203,1,1); +INSERT INTO `eb_system_attachment` VALUES (14, '5c3dba4187461.jpg', '/public/uploads/attach/2019/01/15/5c3dba4187461.jpg', '/public/uploads/attach/2019/01/15/s_5c3dba4187461.jpg', '76932', 'image/jpeg', 1, 1547549249,1,1); +INSERT INTO `eb_system_attachment` VALUES (15, '5c3dbb137d656.jpeg', '/public/uploads/editor/20190115/5c3dbb137d656.jpeg', '/public/uploads/editor/20190115/s_5c3dbb137d656.jpeg', '114386', 'image/jpeg', 0, 1547549459,1,1); +INSERT INTO `eb_system_attachment` VALUES (16, '5c3dbb229e820.jpeg', '/public/uploads/editor/20190115/5c3dbb229e820.jpeg', '/public/uploads/editor/20190115/s_5c3dbb229e820.jpeg', '143065', 'image/jpeg', 0, 1547549474,1,1); +INSERT INTO `eb_system_attachment` VALUES (17, '5c3dbb3b37f84.jpeg', '/public/uploads/editor/20190115/5c3dbb3b37f84.jpeg', '/public/uploads/editor/20190115/s_5c3dbb3b37f84.jpeg', '139850', 'image/jpeg', 0, 1547549499,1,1); +INSERT INTO `eb_system_attachment` VALUES (18, '5c3dbb513b06f.jpeg', '/public/uploads/editor/20190115/5c3dbb513b06f.jpeg', '/public/uploads/editor/20190115/s_5c3dbb513b06f.jpeg', '150123', 'image/jpeg', 0, 1547549521,1,1); +INSERT INTO `eb_system_attachment` VALUES (19, '5c3dbc27c69c7.jpg', '/public/uploads/attach/2019/01/15/5c3dbc27c69c7.jpg', '/public/uploads/attach/2019/01/15/s_5c3dbc27c69c7.jpg', '33563', 'image/jpeg', 1, 1547549735,1,1); +INSERT INTO `eb_system_attachment` VALUES (20, '5c3dbc6a38fab.jpg', '/public/uploads/attach/2019/01/15/5c3dbc6a38fab.jpg', '/public/uploads/attach/2019/01/15/s_5c3dbc6a38fab.jpg', '48892', 'image/jpeg', 1, 1547549802,1,1); +INSERT INTO `eb_system_attachment` VALUES (21, '5c3dbce620415.jpeg', '/public/uploads/editor/20190115/5c3dbce620415.jpeg', '/public/uploads/editor/20190115/s_5c3dbce620415.jpeg', '132779', 'image/jpeg', 0, 1547549926,1,1); +INSERT INTO `eb_system_attachment` VALUES (22, '5c3dc0ef27068.jpg', '/public/uploads/attach/2019/01/15/5c3dc0ef27068.jpg', '/public/uploads/attach/2019/01/15/s_5c3dc0ef27068.jpg', '40991', 'image/jpeg', 1, 1547550959,1,1); +INSERT INTO `eb_system_attachment` VALUES (23, '5c3dc15ba1972.jpg', '/public/uploads/attach/2019/01/15/5c3dc15ba1972.jpg', '/public/uploads/attach/2019/01/15/s_5c3dc15ba1972.jpg', '37389', 'image/jpeg', 1, 1547551067,1,1); +INSERT INTO `eb_system_attachment` VALUES (24, '5c3dc1730a0c0.jpg', '/public/uploads/editor/20190115/5c3dc1730a0c0.jpg', '/public/uploads/editor/20190115/s_5c3dc1730a0c0.jpg', '113870', 'image/jpeg', 0, 1547551091,1,1); +INSERT INTO `eb_system_attachment` VALUES (25, '5c3dc182bccac.jpg', '/public/uploads/editor/20190115/5c3dc182bccac.jpg', '/public/uploads/editor/20190115/s_5c3dc182bccac.jpg', '145391', 'image/jpeg', 0, 1547551106,1,1); +INSERT INTO `eb_system_attachment` VALUES (26, '5c3dc23646fff.jpg', '/public/uploads/attach/2019/01/15/5c3dc23646fff.jpg', '/public/uploads/attach/2019/01/15/s_5c3dc23646fff.jpg', '39941', 'image/jpeg', 1, 1547551286,1,1); +INSERT INTO `eb_system_attachment` VALUES (27, '5c3dc286862fd.jpg', '/public/uploads/editor/20190115/5c3dc286862fd.jpg', '/public/uploads/editor/20190115/s_5c3dc286862fd.jpg', '81291', 'image/jpeg', 0, 1547551366,1,1); +INSERT INTO `eb_system_attachment` VALUES (28, '5c3dc294a9a0a.jpg', '/public/uploads/editor/20190115/5c3dc294a9a0a.jpg', '/public/uploads/editor/20190115/s_5c3dc294a9a0a.jpg', '104012', 'image/jpeg', 0, 1547551380,1,1); +INSERT INTO `eb_system_attachment` VALUES (29, '5c3dc2ba18a77.jpg', '/public/uploads/editor/20190115/5c3dc2ba18a77.jpg', '/public/uploads/editor/20190115/s_5c3dc2ba18a77.jpg', '127719', 'image/jpeg', 0, 1547551418,1,1); +INSERT INTO `eb_system_attachment` VALUES (31, '5c3dc7146add5.png', '/public/uploads/attach/2019/01/15/5c3dc7146add5.png', '/public/uploads/attach/2019/01/15/s_5c3dc7146add5.png', '3209', 'image/png', 2, 1547552532,1,1); +INSERT INTO `eb_system_attachment` VALUES (32, '5c3dc72335ee5.png', '/public/uploads/attach/2019/01/15/5c3dc72335ee5.png', '/public/uploads/attach/2019/01/15/s_5c3dc72335ee5.png', '3607', 'image/png', 2, 1547552547,1,1); +INSERT INTO `eb_system_attachment` VALUES (33, '5c3dc730dead2.png', '/public/uploads/attach/2019/01/15/5c3dc730dead2.png', '/public/uploads/attach/2019/01/15/s_5c3dc730dead2.png', '3729', 'image/png', 2, 1547552560,1,1); +INSERT INTO `eb_system_attachment` VALUES (34, '5c3dc73feecaf.png', '/public/uploads/attach/2019/01/15/5c3dc73feecaf.png', '/public/uploads/attach/2019/01/15/s_5c3dc73feecaf.png', '3351', 'image/png', 2, 1547552575,1,1); +INSERT INTO `eb_system_attachment` VALUES (35, '5c3dc74c1bd3f.png', '/public/uploads/attach/2019/01/15/5c3dc74c1bd3f.png', '/public/uploads/attach/2019/01/15/s_5c3dc74c1bd3f.png', '2847', 'image/png', 2, 1547552588,1,1); +INSERT INTO `eb_system_attachment` VALUES (36, '5c3dc7ee98a2e.png', '/public/uploads/attach/2019/01/15/5c3dc7ee98a2e.png', '/public/uploads/attach/2019/01/15/s_5c3dc7ee98a2e.png', '778', 'image/png', 2, 1547552750,1,1); +INSERT INTO `eb_system_attachment` VALUES (37, '5c3dc802814e5.png', '/public/uploads/attach/2019/01/15/5c3dc802814e5.png', '/public/uploads/attach/2019/01/15/s_5c3dc802814e5.png', '574', 'image/png', 2, 1547552770,1,1); +INSERT INTO `eb_system_attachment` VALUES (38, '5c3dc8232ac13.png', '/public/uploads/attach/2019/01/15/5c3dc8232ac13.png', '/public/uploads/attach/2019/01/15/s_5c3dc8232ac13.png', '1197', 'image/png', 2, 1547552803,1,1); +INSERT INTO `eb_system_attachment` VALUES (39, '5c3dc84ef1070.png', '/public/uploads/attach/2019/01/15/5c3dc84ef1070.png', '/public/uploads/attach/2019/01/15/s_5c3dc84ef1070.png', '1556', 'image/png', 2, 1547552846,1,1); +INSERT INTO `eb_system_attachment` VALUES (40, '5c3dc865bb257.png', '/public/uploads/attach/2019/01/15/5c3dc865bb257.png', '/public/uploads/attach/2019/01/15/s_5c3dc865bb257.png', '749', 'image/png', 2, 1547552869,1,1); +INSERT INTO `eb_system_attachment` VALUES (41, '5c3dc8a7205f0.png', '/public/uploads/attach/2019/01/15/5c3dc8a7205f0.png', '/public/uploads/attach/2019/01/15/s_5c3dc8a7205f0.png', '814', 'image/png', 2, 1547552935,1,1); +INSERT INTO `eb_system_attachment` VALUES (42, '5c3dc91cee6ed.png', '/public/uploads/attach/2019/01/15/5c3dc91cee6ed.png', '/public/uploads/attach/2019/01/15/s_5c3dc91cee6ed.png', '1100', 'image/png', 2, 1547553052,1,1); +INSERT INTO `eb_system_attachment` VALUES (43, '5c3dc93937a48.png', '/public/uploads/attach/2019/01/15/5c3dc93937a48.png', '/public/uploads/attach/2019/01/15/s_5c3dc93937a48.png', '917', 'image/png', 2, 1547553081,1,1); +INSERT INTO `eb_system_attachment` VALUES (44, '5c3dc95a1d134.png', '/public/uploads/attach/2019/01/15/5c3dc95a1d134.png', '/public/uploads/attach/2019/01/15/s_5c3dc95a1d134.png', '1200', 'image/png', 2, 1547553114,1,1); +INSERT INTO `eb_system_attachment` VALUES (45, '5c3dc97a19134.png', '/public/uploads/attach/2019/01/15/5c3dc97a19134.png', '/public/uploads/attach/2019/01/15/s_5c3dc97a19134.png', '1227', 'image/png', 2, 1547553146,1,1); +INSERT INTO `eb_system_attachment` VALUES (46, '5c9ccc99101a8.png', '/public/uploads/attach/2019/03/28/5c9ccc99101a8.png', '/public/uploads/attach/2019/03/28/s_5c9ccc99101a8.png', '2120', 'image/png', 4, 1553779865,1,1); +INSERT INTO `eb_system_attachment` VALUES (47, '5c9ccc9918091.png', '/public/uploads/attach/2019/03/28/5c9ccc9918091.png', '/public/uploads/attach/2019/03/28/s_5c9ccc9918091.png', '1269', 'image/png', 4, 1553779865,1,1); +INSERT INTO `eb_system_attachment` VALUES (48, '5c9ccc991f394.png', '/public/uploads/attach/2019/03/28/5c9ccc991f394.png', '/public/uploads/attach/2019/03/28/s_5c9ccc991f394.png', '1575', 'image/png', 4, 1553779865,1,1); +INSERT INTO `eb_system_attachment` VALUES (49, '5c9ccc99269d1.png', '/public/uploads/attach/2019/03/28/5c9ccc99269d1.png', '/public/uploads/attach/2019/03/28/s_5c9ccc99269d1.png', '2007', 'image/png', 4, 1553779865,1,1); +INSERT INTO `eb_system_attachment` VALUES (50, '5c9ccc992db31.png', '/public/uploads/attach/2019/03/28/5c9ccc992db31.png', '/public/uploads/attach/2019/03/28/s_5c9ccc992db31.png', '2762', 'image/png', 4, 1553779865,1,1); +INSERT INTO `eb_system_attachment` VALUES (51, '5c9ccc9934a7c.png', '/public/uploads/attach/2019/03/28/5c9ccc9934a7c.png', '/public/uploads/attach/2019/03/28/s_5c9ccc9934a7c.png', '1731', 'image/png', 4, 1553779865,1,1); +INSERT INTO `eb_system_attachment` VALUES (52, '5c9ccc993c14f.png', '/public/uploads/attach/2019/03/28/5c9ccc993c14f.png', '/public/uploads/attach/2019/03/28/s_5c9ccc993c14f.png', '1520', 'image/png', 4, 1553779865,1,1); +INSERT INTO `eb_system_attachment` VALUES (53, '5c9ccc9943575.png', '/public/uploads/attach/2019/03/28/5c9ccc9943575.png', '/public/uploads/attach/2019/03/28/s_5c9ccc9943575.png', '1861', 'image/png', 4, 1553779865,1,1); +INSERT INTO `eb_system_attachment` VALUES (54, '5c9ccca12638a.gif', '/public/uploads/attach/2019/03/28/5c9ccca12638a.gif', '/public/uploads/attach/2019/03/28/s_5c9ccca12638a.gif', '122854', 'image/gif', 5, 1553779873,1,1); +INSERT INTO `eb_system_attachment` VALUES (55, '5c9ccca151e99.gif', '/public/uploads/attach/2019/03/28/5c9ccca151e99.gif', '/public/uploads/attach/2019/03/28/s_5c9ccca151e99.gif', '105770', 'image/gif', 5, 1553779873,1,1); +INSERT INTO `eb_system_attachment` VALUES (56, '5c9ccca178a67.gif', '/public/uploads/attach/2019/03/28/5c9ccca178a67.gif', '/public/uploads/attach/2019/03/28/s_5c9ccca178a67.gif', '108109', 'image/gif', 5, 1553779873,1,1); +INSERT INTO `eb_system_attachment` VALUES (57, '5c9ccca1a01b6.gif', '/public/uploads/attach/2019/03/28/5c9ccca1a01b6.gif', '/public/uploads/attach/2019/03/28/s_5c9ccca1a01b6.gif', '109454', 'image/gif', 5, 1553779873,1,1); +INSERT INTO `eb_system_attachment` VALUES (58, '5c9ccca1c78cd.gif', '/public/uploads/attach/2019/03/28/5c9ccca1c78cd.gif', '/public/uploads/attach/2019/03/28/s_5c9ccca1c78cd.gif', '110373', 'image/gif', 5, 1553779873,1,1); +INSERT INTO `eb_system_attachment` VALUES (59, '5c9ccca8a27f0.png', '/public/uploads/attach/2019/03/28/5c9ccca8a27f0.png', '/public/uploads/attach/2019/03/28/s_5c9ccca8a27f0.png', '3138', 'image/png', 6, 1553779880,1,1); +INSERT INTO `eb_system_attachment` VALUES (60, '5c9ccca8aa5b9.png', '/public/uploads/attach/2019/03/28/5c9ccca8aa5b9.png', '/public/uploads/attach/2019/03/28/s_5c9ccca8aa5b9.png', '4066', 'image/png', 6, 1553779880,1,1); +INSERT INTO `eb_system_attachment` VALUES (61, '5c9ccca8b27f1.jpg', '/public/uploads/attach/2019/03/28/5c9ccca8b27f1.jpg', '/public/uploads/attach/2019/03/28/s_5c9ccca8b27f1.jpg', '25834', 'image/jpeg', 6, 1553779880,1,1); +INSERT INTO `eb_system_attachment` VALUES (62, '5c9ccca8bc1e0.png', '/public/uploads/attach/2019/03/28/5c9ccca8bc1e0.png', '/public/uploads/attach/2019/03/28/s_5c9ccca8bc1e0.png', '3907', 'image/png', 6, 1553779880,1,1); +INSERT INTO `eb_system_attachment` VALUES (63, '5c9ccca8c3bff.jpg', '/public/uploads/attach/2019/03/28/5c9ccca8c3bff.jpg', '/public/uploads/attach/2019/03/28/s_5c9ccca8c3bff.jpg', '22916', 'image/jpeg', 6, 1553779880,1,1); +INSERT INTO `eb_system_attachment` VALUES (64, '5c9ccca8cd632.jpg', '/public/uploads/attach/2019/03/28/5c9ccca8cd632.jpg', '/public/uploads/attach/2019/03/28/s_5c9ccca8cd632.jpg', '24602', 'image/jpeg', 6, 1553779880,1,1); +INSERT INTO `eb_system_attachment` VALUES (65, '5c9ccca8d6ae1.jpg', '/public/uploads/attach/2019/03/28/5c9ccca8d6ae1.jpg', '/public/uploads/attach/2019/03/28/s_5c9ccca8d6ae1.jpg', '21491', 'image/jpeg', 6, 1553779880,1,1); +INSERT INTO `eb_system_attachment` VALUES (66, '5c9ccca8dfe16.jpg', '/public/uploads/attach/2019/03/28/5c9ccca8dfe16.jpg', '/public/uploads/attach/2019/03/28/s_5c9ccca8dfe16.jpg', '27120', 'image/jpeg', 6, 1553779880,1,1); +INSERT INTO `eb_system_attachment` VALUES (67, '5c9ccca8e9365.png', '/public/uploads/attach/2019/03/28/5c9ccca8e9365.png', '/public/uploads/attach/2019/03/28/s_5c9ccca8e9365.png', '3648', 'image/png', 6, 1553779880,1,1); +INSERT INTO `eb_system_attachment` VALUES (68, '5c9ccca8f0a30.png', '/public/uploads/attach/2019/03/28/5c9ccca8f0a30.png', '/public/uploads/attach/2019/03/28/s_5c9ccca8f0a30.png', '3066', 'image/png', 6, 1553779880,1,1); +INSERT INTO `eb_system_attachment` VALUES (69, '5c9ccca904016.jpg', '/public/uploads/attach/2019/03/28/5c9ccca904016.jpg', '/public/uploads/attach/2019/03/28/s_5c9ccca904016.jpg', '24567', 'image/jpeg', 6, 1553779881,1,1); +INSERT INTO `eb_system_attachment` VALUES (70, '5c9ccca90d2d3.png', '/public/uploads/attach/2019/03/28/5c9ccca90d2d3.png', '/public/uploads/attach/2019/03/28/s_5c9ccca90d2d3.png', '4409', 'image/png', 6, 1553779881,1,1); +INSERT INTO `eb_system_attachment` VALUES (71, '5c9ccf7e97660.jpg', '/public/uploads/attach/2019/03/28/5c9ccf7e97660.jpg', '/public/uploads/attach/2019/03/28/s_5c9ccf7e97660.jpg', '18640', 'image/jpeg', 2, 1553780606,1,1); +INSERT INTO `eb_system_attachment` VALUES (72, '5c9ccf7e9f4d0.jpg', '/public/uploads/attach/2019/03/28/5c9ccf7e9f4d0.jpg', '/public/uploads/attach/2019/03/28/s_5c9ccf7e9f4d0.jpg', '29549', 'image/jpeg', 2, 1553780606,1,1); +INSERT INTO `eb_system_attachment` VALUES (73, '5c9ccfc86a6c1.jpg', '/public/uploads/attach/2019/03/28/5c9ccfc86a6c1.jpg', '/public/uploads/attach/2019/03/28/s_5c9ccfc86a6c1.jpg', '22379', 'image/jpeg', 2, 1553780680,1,1); +INSERT INTO `eb_system_attachment` VALUES (74, '5c9cd03224d59.jpg', '/public/uploads/attach/2019/03/28/5c9cd03224d59.jpg', '/public/uploads/attach/2019/03/28/s_5c9cd03224d59.jpg', '178435', 'image/jpeg', 2, 1553780786,1,1); +INSERT INTO `eb_system_attachment` VALUES (75, '5c9ddc9f34bfd.png', '/public/uploads/attach/2019/03/29/5c9ddc9f34bfd.png', '/public/uploads/attach/2019/03/29/s_5c9ddc9f34bfd.png', '4453', 'image/png', 2, 1553849503,1,1); +INSERT INTO `eb_system_attachment` VALUES (76, '5c9ddccecb7f3.png', '/public/uploads/attach/2019/03/29/5c9ddccecb7f3.png', '/public/uploads/attach/2019/03/29/s_5c9ddccecb7f3.png', '4522', 'image/png', 2, 1553849550,1,1); +INSERT INTO `eb_system_attachment` VALUES (77, '5c9ddcec57a80.png', '/public/uploads/attach/2019/03/29/5c9ddcec57a80.png', '/public/uploads/attach/2019/03/29/s_5c9ddcec57a80.png', '2703', 'image/png', 2, 1553849580,1,1); +INSERT INTO `eb_system_attachment` VALUES (78, '5c9ddd570b8b3.png', '/public/uploads/attach/2019/03/29/5c9ddd570b8b3.png', '/public/uploads/attach/2019/03/29/s_5c9ddd570b8b3.png', '2825', 'image/png', 2, 1553849687,1,1); +INSERT INTO `eb_system_attachment` VALUES (79, '5c9dddce0eac9.png', '/public/uploads/attach/2019/03/29/5c9dddce0eac9.png', '/public/uploads/attach/2019/03/29/s_5c9dddce0eac9.png', '4784', 'image/png', 2, 1553849806,1,1); +INSERT INTO `eb_system_attachment` VALUES (80, '5c9dde013f63c.png', '/public/uploads/attach/2019/03/29/5c9dde013f63c.png', '/public/uploads/attach/2019/03/29/s_5c9dde013f63c.png', '3672', 'image/png', 2, 1553849857,1,1); +INSERT INTO `eb_system_attachment` VALUES (81, '5c9dde246ad96.png', '/public/uploads/attach/2019/03/29/5c9dde246ad96.png', '/public/uploads/attach/2019/03/29/s_5c9dde246ad96.png', '4982', 'image/png', 2, 1553849892,1,1); +INSERT INTO `eb_system_attachment` VALUES (82, '5c9ddedbed782.png', '/public/uploads/attach/2019/03/29/5c9ddedbed782.png', '/public/uploads/attach/2019/03/29/s_5c9ddedbed782.png', '6454', 'image/png', 2, 1553850075,1,1); +INSERT INTO `eb_system_attachment` VALUES (83, '5c9de8b7c5cc5.png', '/public/uploads/attach/2019/03/29/5c9de8b7c5cc5.png', '/public/uploads/attach/2019/03/29/s_5c9de8b7c5cc5.png', '124578', 'image/png', 7, 1553852599,1,1); +INSERT INTO `eb_system_attachment` VALUES (84, '5c9def00c2882.png', '/public/uploads/attach/2019/03/29/5c9def00c2882.png', '/public/uploads/attach/2019/03/29/s_5c9def00c2882.png', '90279', 'image/png', 7, 1553854208,1,1); +INSERT INTO `eb_system_attachment` VALUES (85, '5c9def5fa968c.png', '/public/uploads/attach/2019/03/29/5c9def5fa968c.png', '/public/uploads/attach/2019/03/29/s_5c9def5fa968c.png', '139059', 'image/png', 7, 1553854303,1,1); +INSERT INTO `eb_system_attachment` VALUES (86, '5c9df11e13742.png', '/public/uploads/attach/2019/03/29/5c9df11e13742.png', '/public/uploads/attach/2019/03/29/s_5c9df11e13742.png', '137246', 'image/png', 7, 1553854750,1,1); +INSERT INTO `eb_system_attachment` VALUES (87, '5c9df170010cb.png', '/public/uploads/attach/2019/03/29/5c9df170010cb.png', '/public/uploads/attach/2019/03/29/s_5c9df170010cb.png', '212939', 'image/png', 7, 1553854832,1,1); +INSERT INTO `eb_system_attachment` VALUES (88, '5c9df1b8f0a7a.png', '/public/uploads/attach/2019/03/29/5c9df1b8f0a7a.png', '/public/uploads/attach/2019/03/29/s_5c9df1b8f0a7a.png', '198726', 'image/png', 7, 1553854905,1,1); +INSERT INTO `eb_system_attachment` VALUES (89, '5c9e015bdc6f5.jpg', '/public/uploads/attach/2019/03/29/5c9e015bdc6f5.jpg', '/public/uploads/attach/2019/03/29/s_5c9e015bdc6f5.jpg', '161959', 'image/jpeg', 3, 1553858907,1,1); +INSERT INTO `eb_system_attachment` VALUES (90, '5c9e1ef640019.jpg', '/public/uploads/attach/2019/03/29/5c9e1ef640019.jpg', '/public/uploads/attach/2019/03/29/s_5c9e1ef640019.jpg', '154063', 'image/jpeg', 8, 1553866486,1,1); +INSERT INTO `eb_system_attachment` VALUES (92, '5cb039675597c.jpg', '/public/uploads/attach/2019/04/12/5cb039675597c.jpg', '/public/uploads/attach/2019/04/12/s_5cb039675597c.jpg', '24890', 'image/jpeg', 8, 1555052903,1,1); +INSERT INTO `eb_system_attachment` VALUES (93, '5cb071e576b3d.jpg', '/public/uploads/attach/2019/04/12/5cb071e576b3d.jpg', '/public/uploads/attach/2019/04/12/s_5cb071e576b3d.jpg', '165730', 'image/jpeg', 8, 1555067365,1,1); +INSERT INTO `eb_system_attachment` VALUES (94, '5cb071e5860fa.jpg', '/public/uploads/attach/2019/04/12/5cb071e5860fa.jpg', '/public/uploads/attach/2019/04/12/s_5cb071e5860fa.jpg', '97039', 'image/jpeg', 8, 1555067365,1,1); +INSERT INTO `eb_system_attachment` VALUES (95, '5cb18df0dfba7.jpg', '/public/uploads/attach/2019/04/13/5cb18df0dfba7.jpg', '/public/uploads/attach/2019/04/13/s_5cb18df0dfba7.jpg', '213277', 'image/jpeg', 3, 1555140080,1,1); +INSERT INTO `eb_system_attachment` VALUES (96, '5cb18e247a1a9.jpg', '/public/uploads/attach/2019/04/13/5cb18e247a1a9.jpg', '/public/uploads/attach/2019/04/13/s_5cb18e247a1a9.jpg', '56623', 'image/jpeg', 3, 1555140132,1,1); -INSERT INTO `eb_system_attachment` (`att_id`, `name`, `att_dir`, `satt_dir`, `att_size`, `att_type`, `pid`, `time`) VALUES -(2, '5c387d18c37fa.jpg', '/public/uploads/editor/20190111/5c387d18c37fa.jpg', '/public/uploads/editor/20190111/s_5c387d18c37fa.jpg', '9274', 'image/jpeg', 0, 1547205912), -(3, '5c387daf3ef63.jpg', '/public/uploads/editor/20190111/5c387daf3ef63.jpg', '/public/uploads/editor/20190111/s_5c387daf3ef63.jpg', '9274', 'image/jpeg', 0, 1547206063), -(7, '5c3db14908923.jpg', '/public/uploads/attach/2019/01/15/5c3db14908923.jpg', '/public/uploads/attach/2019/01/15/s_5c3db14908923.jpg', '102671', 'image/jpeg', 3, 1547546953), -(9, '5c3db5d483c7e.jpg', '/public/uploads/attach/2019/01/15/5c3db5d483c7e.jpg', '/public/uploads/attach/2019/01/15/s_5c3db5d483c7e.jpg', '41833', 'image/jpeg', 3, 1547548116), -(11, '5c3db8b933d92.jpg', '/public/uploads/attach/2019/01/15/5c3db8b933d92.jpg', '/public/uploads/attach/2019/01/15/s_5c3db8b933d92.jpg', '31746', 'image/jpeg', 2, 1547548857), -(12, '5c3db9de2b73a.jpg', '/public/uploads/attach/2019/01/15/5c3db9de2b73a.jpg', '/public/uploads/attach/2019/01/15/s_5c3db9de2b73a.jpg', '61866', 'image/jpeg', 1, 1547549150), -(13, '5c3dba1366885.jpg', '/public/uploads/attach/2019/01/15/5c3dba1366885.jpg', '/public/uploads/attach/2019/01/15/s_5c3dba1366885.jpg', '41951', 'image/jpeg', 1, 1547549203), -(14, '5c3dba4187461.jpg', '/public/uploads/attach/2019/01/15/5c3dba4187461.jpg', '/public/uploads/attach/2019/01/15/s_5c3dba4187461.jpg', '76932', 'image/jpeg', 1, 1547549249), -(15, '5c3dbb137d656.jpeg', '/public/uploads/editor/20190115/5c3dbb137d656.jpeg', '/public/uploads/editor/20190115/s_5c3dbb137d656.jpeg', '114386', 'image/jpeg', 0, 1547549459), -(16, '5c3dbb229e820.jpeg', '/public/uploads/editor/20190115/5c3dbb229e820.jpeg', '/public/uploads/editor/20190115/s_5c3dbb229e820.jpeg', '143065', 'image/jpeg', 0, 1547549474), -(17, '5c3dbb3b37f84.jpeg', '/public/uploads/editor/20190115/5c3dbb3b37f84.jpeg', '/public/uploads/editor/20190115/s_5c3dbb3b37f84.jpeg', '139850', 'image/jpeg', 0, 1547549499), -(18, '5c3dbb513b06f.jpeg', '/public/uploads/editor/20190115/5c3dbb513b06f.jpeg', '/public/uploads/editor/20190115/s_5c3dbb513b06f.jpeg', '150123', 'image/jpeg', 0, 1547549521), -(19, '5c3dbc27c69c7.jpg', '/public/uploads/attach/2019/01/15/5c3dbc27c69c7.jpg', '/public/uploads/attach/2019/01/15/s_5c3dbc27c69c7.jpg', '33563', 'image/jpeg', 1, 1547549735), -(20, '5c3dbc6a38fab.jpg', '/public/uploads/attach/2019/01/15/5c3dbc6a38fab.jpg', '/public/uploads/attach/2019/01/15/s_5c3dbc6a38fab.jpg', '48892', 'image/jpeg', 1, 1547549802), -(21, '5c3dbce620415.jpeg', '/public/uploads/editor/20190115/5c3dbce620415.jpeg', '/public/uploads/editor/20190115/s_5c3dbce620415.jpeg', '132779', 'image/jpeg', 0, 1547549926), -(22, '5c3dc0ef27068.jpg', '/public/uploads/attach/2019/01/15/5c3dc0ef27068.jpg', '/public/uploads/attach/2019/01/15/s_5c3dc0ef27068.jpg', '40991', 'image/jpeg', 1, 1547550959), -(23, '5c3dc15ba1972.jpg', '/public/uploads/attach/2019/01/15/5c3dc15ba1972.jpg', '/public/uploads/attach/2019/01/15/s_5c3dc15ba1972.jpg', '37389', 'image/jpeg', 1, 1547551067), -(24, '5c3dc1730a0c0.jpg', '/public/uploads/editor/20190115/5c3dc1730a0c0.jpg', '/public/uploads/editor/20190115/s_5c3dc1730a0c0.jpg', '113870', 'image/jpeg', 0, 1547551091), -(25, '5c3dc182bccac.jpg', '/public/uploads/editor/20190115/5c3dc182bccac.jpg', '/public/uploads/editor/20190115/s_5c3dc182bccac.jpg', '145391', 'image/jpeg', 0, 1547551106), -(26, '5c3dc23646fff.jpg', '/public/uploads/attach/2019/01/15/5c3dc23646fff.jpg', '/public/uploads/attach/2019/01/15/s_5c3dc23646fff.jpg', '39941', 'image/jpeg', 1, 1547551286), -(27, '5c3dc286862fd.jpg', '/public/uploads/editor/20190115/5c3dc286862fd.jpg', '/public/uploads/editor/20190115/s_5c3dc286862fd.jpg', '81291', 'image/jpeg', 0, 1547551366), -(28, '5c3dc294a9a0a.jpg', '/public/uploads/editor/20190115/5c3dc294a9a0a.jpg', '/public/uploads/editor/20190115/s_5c3dc294a9a0a.jpg', '104012', 'image/jpeg', 0, 1547551380), -(29, '5c3dc2ba18a77.jpg', '/public/uploads/editor/20190115/5c3dc2ba18a77.jpg', '/public/uploads/editor/20190115/s_5c3dc2ba18a77.jpg', '127719', 'image/jpeg', 0, 1547551418), -(31, '5c3dc7146add5.png', '/public/uploads/attach/2019/01/15/5c3dc7146add5.png', '/public/uploads/attach/2019/01/15/s_5c3dc7146add5.png', '3209', 'image/png', 2, 1547552532), -(32, '5c3dc72335ee5.png', '/public/uploads/attach/2019/01/15/5c3dc72335ee5.png', '/public/uploads/attach/2019/01/15/s_5c3dc72335ee5.png', '3607', 'image/png', 2, 1547552547), -(33, '5c3dc730dead2.png', '/public/uploads/attach/2019/01/15/5c3dc730dead2.png', '/public/uploads/attach/2019/01/15/s_5c3dc730dead2.png', '3729', 'image/png', 2, 1547552560), -(34, '5c3dc73feecaf.png', '/public/uploads/attach/2019/01/15/5c3dc73feecaf.png', '/public/uploads/attach/2019/01/15/s_5c3dc73feecaf.png', '3351', 'image/png', 2, 1547552575), -(35, '5c3dc74c1bd3f.png', '/public/uploads/attach/2019/01/15/5c3dc74c1bd3f.png', '/public/uploads/attach/2019/01/15/s_5c3dc74c1bd3f.png', '2847', 'image/png', 2, 1547552588), -(36, '5c3dc7ee98a2e.png', '/public/uploads/attach/2019/01/15/5c3dc7ee98a2e.png', '/public/uploads/attach/2019/01/15/s_5c3dc7ee98a2e.png', '778', 'image/png', 2, 1547552750), -(37, '5c3dc802814e5.png', '/public/uploads/attach/2019/01/15/5c3dc802814e5.png', '/public/uploads/attach/2019/01/15/s_5c3dc802814e5.png', '574', 'image/png', 2, 1547552770), -(38, '5c3dc8232ac13.png', '/public/uploads/attach/2019/01/15/5c3dc8232ac13.png', '/public/uploads/attach/2019/01/15/s_5c3dc8232ac13.png', '1197', 'image/png', 2, 1547552803), -(39, '5c3dc84ef1070.png', '/public/uploads/attach/2019/01/15/5c3dc84ef1070.png', '/public/uploads/attach/2019/01/15/s_5c3dc84ef1070.png', '1556', 'image/png', 2, 1547552846), -(40, '5c3dc865bb257.png', '/public/uploads/attach/2019/01/15/5c3dc865bb257.png', '/public/uploads/attach/2019/01/15/s_5c3dc865bb257.png', '749', 'image/png', 2, 1547552869), -(41, '5c3dc8a7205f0.png', '/public/uploads/attach/2019/01/15/5c3dc8a7205f0.png', '/public/uploads/attach/2019/01/15/s_5c3dc8a7205f0.png', '814', 'image/png', 2, 1547552935), -(42, '5c3dc91cee6ed.png', '/public/uploads/attach/2019/01/15/5c3dc91cee6ed.png', '/public/uploads/attach/2019/01/15/s_5c3dc91cee6ed.png', '1100', 'image/png', 2, 1547553052), -(43, '5c3dc93937a48.png', '/public/uploads/attach/2019/01/15/5c3dc93937a48.png', '/public/uploads/attach/2019/01/15/s_5c3dc93937a48.png', '917', 'image/png', 2, 1547553081), -(44, '5c3dc95a1d134.png', '/public/uploads/attach/2019/01/15/5c3dc95a1d134.png', '/public/uploads/attach/2019/01/15/s_5c3dc95a1d134.png', '1200', 'image/png', 2, 1547553114), -(45, '5c3dc97a19134.png', '/public/uploads/attach/2019/01/15/5c3dc97a19134.png', '/public/uploads/attach/2019/01/15/s_5c3dc97a19134.png', '1227', 'image/png', 2, 1547553146), -(46, '5c9ccc99101a8.png', '/public/uploads/attach/2019/03/28/5c9ccc99101a8.png', '/public/uploads/attach/2019/03/28/s_5c9ccc99101a8.png', '2120', 'image/png', 4, 1553779865), -(47, '5c9ccc9918091.png', '/public/uploads/attach/2019/03/28/5c9ccc9918091.png', '/public/uploads/attach/2019/03/28/s_5c9ccc9918091.png', '1269', 'image/png', 4, 1553779865), -(48, '5c9ccc991f394.png', '/public/uploads/attach/2019/03/28/5c9ccc991f394.png', '/public/uploads/attach/2019/03/28/s_5c9ccc991f394.png', '1575', 'image/png', 4, 1553779865), -(49, '5c9ccc99269d1.png', '/public/uploads/attach/2019/03/28/5c9ccc99269d1.png', '/public/uploads/attach/2019/03/28/s_5c9ccc99269d1.png', '2007', 'image/png', 4, 1553779865), -(50, '5c9ccc992db31.png', '/public/uploads/attach/2019/03/28/5c9ccc992db31.png', '/public/uploads/attach/2019/03/28/s_5c9ccc992db31.png', '2762', 'image/png', 4, 1553779865), -(51, '5c9ccc9934a7c.png', '/public/uploads/attach/2019/03/28/5c9ccc9934a7c.png', '/public/uploads/attach/2019/03/28/s_5c9ccc9934a7c.png', '1731', 'image/png', 4, 1553779865), -(52, '5c9ccc993c14f.png', '/public/uploads/attach/2019/03/28/5c9ccc993c14f.png', '/public/uploads/attach/2019/03/28/s_5c9ccc993c14f.png', '1520', 'image/png', 4, 1553779865), -(53, '5c9ccc9943575.png', '/public/uploads/attach/2019/03/28/5c9ccc9943575.png', '/public/uploads/attach/2019/03/28/s_5c9ccc9943575.png', '1861', 'image/png', 4, 1553779865), -(54, '5c9ccca12638a.gif', '/public/uploads/attach/2019/03/28/5c9ccca12638a.gif', '/public/uploads/attach/2019/03/28/s_5c9ccca12638a.gif', '122854', 'image/gif', 5, 1553779873), -(55, '5c9ccca151e99.gif', '/public/uploads/attach/2019/03/28/5c9ccca151e99.gif', '/public/uploads/attach/2019/03/28/s_5c9ccca151e99.gif', '105770', 'image/gif', 5, 1553779873), -(56, '5c9ccca178a67.gif', '/public/uploads/attach/2019/03/28/5c9ccca178a67.gif', '/public/uploads/attach/2019/03/28/s_5c9ccca178a67.gif', '108109', 'image/gif', 5, 1553779873), -(57, '5c9ccca1a01b6.gif', '/public/uploads/attach/2019/03/28/5c9ccca1a01b6.gif', '/public/uploads/attach/2019/03/28/s_5c9ccca1a01b6.gif', '109454', 'image/gif', 5, 1553779873), -(58, '5c9ccca1c78cd.gif', '/public/uploads/attach/2019/03/28/5c9ccca1c78cd.gif', '/public/uploads/attach/2019/03/28/s_5c9ccca1c78cd.gif', '110373', 'image/gif', 5, 1553779873), -(59, '5c9ccca8a27f0.png', '/public/uploads/attach/2019/03/28/5c9ccca8a27f0.png', '/public/uploads/attach/2019/03/28/s_5c9ccca8a27f0.png', '3138', 'image/png', 6, 1553779880), -(60, '5c9ccca8aa5b9.png', '/public/uploads/attach/2019/03/28/5c9ccca8aa5b9.png', '/public/uploads/attach/2019/03/28/s_5c9ccca8aa5b9.png', '4066', 'image/png', 6, 1553779880), -(61, '5c9ccca8b27f1.jpg', '/public/uploads/attach/2019/03/28/5c9ccca8b27f1.jpg', '/public/uploads/attach/2019/03/28/s_5c9ccca8b27f1.jpg', '25834', 'image/jpeg', 6, 1553779880), -(62, '5c9ccca8bc1e0.png', '/public/uploads/attach/2019/03/28/5c9ccca8bc1e0.png', '/public/uploads/attach/2019/03/28/s_5c9ccca8bc1e0.png', '3907', 'image/png', 6, 1553779880), -(63, '5c9ccca8c3bff.jpg', '/public/uploads/attach/2019/03/28/5c9ccca8c3bff.jpg', '/public/uploads/attach/2019/03/28/s_5c9ccca8c3bff.jpg', '22916', 'image/jpeg', 6, 1553779880), -(64, '5c9ccca8cd632.jpg', '/public/uploads/attach/2019/03/28/5c9ccca8cd632.jpg', '/public/uploads/attach/2019/03/28/s_5c9ccca8cd632.jpg', '24602', 'image/jpeg', 6, 1553779880), -(65, '5c9ccca8d6ae1.jpg', '/public/uploads/attach/2019/03/28/5c9ccca8d6ae1.jpg', '/public/uploads/attach/2019/03/28/s_5c9ccca8d6ae1.jpg', '21491', 'image/jpeg', 6, 1553779880), -(66, '5c9ccca8dfe16.jpg', '/public/uploads/attach/2019/03/28/5c9ccca8dfe16.jpg', '/public/uploads/attach/2019/03/28/s_5c9ccca8dfe16.jpg', '27120', 'image/jpeg', 6, 1553779880), -(67, '5c9ccca8e9365.png', '/public/uploads/attach/2019/03/28/5c9ccca8e9365.png', '/public/uploads/attach/2019/03/28/s_5c9ccca8e9365.png', '3648', 'image/png', 6, 1553779880), -(68, '5c9ccca8f0a30.png', '/public/uploads/attach/2019/03/28/5c9ccca8f0a30.png', '/public/uploads/attach/2019/03/28/s_5c9ccca8f0a30.png', '3066', 'image/png', 6, 1553779880), -(69, '5c9ccca904016.jpg', '/public/uploads/attach/2019/03/28/5c9ccca904016.jpg', '/public/uploads/attach/2019/03/28/s_5c9ccca904016.jpg', '24567', 'image/jpeg', 6, 1553779881), -(70, '5c9ccca90d2d3.png', '/public/uploads/attach/2019/03/28/5c9ccca90d2d3.png', '/public/uploads/attach/2019/03/28/s_5c9ccca90d2d3.png', '4409', 'image/png', 6, 1553779881), -(71, '5c9ccf7e97660.jpg', '/public/uploads/attach/2019/03/28/5c9ccf7e97660.jpg', '/public/uploads/attach/2019/03/28/s_5c9ccf7e97660.jpg', '18640', 'image/jpeg', 2, 1553780606), -(72, '5c9ccf7e9f4d0.jpg', '/public/uploads/attach/2019/03/28/5c9ccf7e9f4d0.jpg', '/public/uploads/attach/2019/03/28/s_5c9ccf7e9f4d0.jpg', '29549', 'image/jpeg', 2, 1553780606), -(73, '5c9ccfc86a6c1.jpg', '/public/uploads/attach/2019/03/28/5c9ccfc86a6c1.jpg', '/public/uploads/attach/2019/03/28/s_5c9ccfc86a6c1.jpg', '22379', 'image/jpeg', 2, 1553780680), -(74, '5c9cd03224d59.jpg', '/public/uploads/attach/2019/03/28/5c9cd03224d59.jpg', '/public/uploads/attach/2019/03/28/s_5c9cd03224d59.jpg', '178435', 'image/jpeg', 2, 1553780786), -(75, '5c9ddc9f34bfd.png', '/public/uploads/attach/2019/03/29/5c9ddc9f34bfd.png', '/public/uploads/attach/2019/03/29/s_5c9ddc9f34bfd.png', '4453', 'image/png', 2, 1553849503), -(76, '5c9ddccecb7f3.png', '/public/uploads/attach/2019/03/29/5c9ddccecb7f3.png', '/public/uploads/attach/2019/03/29/s_5c9ddccecb7f3.png', '4522', 'image/png', 2, 1553849550), -(77, '5c9ddcec57a80.png', '/public/uploads/attach/2019/03/29/5c9ddcec57a80.png', '/public/uploads/attach/2019/03/29/s_5c9ddcec57a80.png', '2703', 'image/png', 2, 1553849580), -(78, '5c9ddd570b8b3.png', '/public/uploads/attach/2019/03/29/5c9ddd570b8b3.png', '/public/uploads/attach/2019/03/29/s_5c9ddd570b8b3.png', '2825', 'image/png', 2, 1553849687), -(79, '5c9dddce0eac9.png', '/public/uploads/attach/2019/03/29/5c9dddce0eac9.png', '/public/uploads/attach/2019/03/29/s_5c9dddce0eac9.png', '4784', 'image/png', 2, 1553849806), -(80, '5c9dde013f63c.png', '/public/uploads/attach/2019/03/29/5c9dde013f63c.png', '/public/uploads/attach/2019/03/29/s_5c9dde013f63c.png', '3672', 'image/png', 2, 1553849857), -(81, '5c9dde246ad96.png', '/public/uploads/attach/2019/03/29/5c9dde246ad96.png', '/public/uploads/attach/2019/03/29/s_5c9dde246ad96.png', '4982', 'image/png', 2, 1553849892), -(82, '5c9ddedbed782.png', '/public/uploads/attach/2019/03/29/5c9ddedbed782.png', '/public/uploads/attach/2019/03/29/s_5c9ddedbed782.png', '6454', 'image/png', 2, 1553850075), -(83, '5c9de8b7c5cc5.png', '/public/uploads/attach/2019/03/29/5c9de8b7c5cc5.png', '/public/uploads/attach/2019/03/29/s_5c9de8b7c5cc5.png', '124578', 'image/png', 7, 1553852599), -(84, '5c9def00c2882.png', '/public/uploads/attach/2019/03/29/5c9def00c2882.png', '/public/uploads/attach/2019/03/29/s_5c9def00c2882.png', '90279', 'image/png', 7, 1553854208), -(85, '5c9def5fa968c.png', '/public/uploads/attach/2019/03/29/5c9def5fa968c.png', '/public/uploads/attach/2019/03/29/s_5c9def5fa968c.png', '139059', 'image/png', 7, 1553854303), -(86, '5c9df11e13742.png', '/public/uploads/attach/2019/03/29/5c9df11e13742.png', '/public/uploads/attach/2019/03/29/s_5c9df11e13742.png', '137246', 'image/png', 7, 1553854750), -(87, '5c9df170010cb.png', '/public/uploads/attach/2019/03/29/5c9df170010cb.png', '/public/uploads/attach/2019/03/29/s_5c9df170010cb.png', '212939', 'image/png', 7, 1553854832), -(88, '5c9df1b8f0a7a.png', '/public/uploads/attach/2019/03/29/5c9df1b8f0a7a.png', '/public/uploads/attach/2019/03/29/s_5c9df1b8f0a7a.png', '198726', 'image/png', 7, 1553854905), -(89, '5c9e015bdc6f5.jpg', '/public/uploads/attach/2019/03/29/5c9e015bdc6f5.jpg', '/public/uploads/attach/2019/03/29/s_5c9e015bdc6f5.jpg', '161959', 'image/jpeg', 3, 1553858907), -(90, '5c9e1ef640019.jpg', '/public/uploads/attach/2019/03/29/5c9e1ef640019.jpg', '/public/uploads/attach/2019/03/29/s_5c9e1ef640019.jpg', '154063', 'image/jpeg', 8, 1553866486), -(92, '5cb039675597c.jpg', '/public/uploads/attach/2019/04/12/5cb039675597c.jpg', '/public/uploads/attach/2019/04/12/s_5cb039675597c.jpg', '24890', 'image/jpeg', 8, 1555052903), -(93, '5cb071e576b3d.jpg', '/public/uploads/attach/2019/04/12/5cb071e576b3d.jpg', '/public/uploads/attach/2019/04/12/s_5cb071e576b3d.jpg', '165730', 'image/jpeg', 8, 1555067365), -(94, '5cb071e5860fa.jpg', '/public/uploads/attach/2019/04/12/5cb071e5860fa.jpg', '/public/uploads/attach/2019/04/12/s_5cb071e5860fa.jpg', '97039', 'image/jpeg', 8, 1555067365), -(95, '5cb18df0dfba7.jpg', '/public/uploads/attach/2019/04/13/5cb18df0dfba7.jpg', '/public/uploads/attach/2019/04/13/s_5cb18df0dfba7.jpg', '213277', 'image/jpeg', 3, 1555140080), -(96, '5cb18e247a1a9.jpg', '/public/uploads/attach/2019/04/13/5cb18e247a1a9.jpg', '/public/uploads/attach/2019/04/13/s_5cb18e247a1a9.jpg', '56623', 'image/jpeg', 3, 1555140132); - --- -------------------------------------------------------- - --- --- 表的结构 `eb_system_attachment_category` --- - -CREATE TABLE IF NOT EXISTS `eb_system_attachment_category` ( +-- ---------------------------- +-- Table structure for eb_system_attachment_category +-- ---------------------------- +DROP TABLE IF EXISTS `eb_system_attachment_category`; +CREATE TABLE `eb_system_attachment_category` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `pid` int(11) DEFAULT '0' COMMENT '父级ID', - `name` varchar(50) NOT NULL COMMENT '分类名称', - `enname` varchar(50) NOT NULL COMMENT '分类目录', + `pid` int(11) NULL DEFAULT 0 COMMENT '父级ID', + `name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '分类名称', + `enname` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '分类目录', PRIMARY KEY (`id`) USING BTREE, - UNIQUE KEY `id` (`id`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='附件分类表' AUTO_INCREMENT=9 ; + UNIQUE INDEX `id`(`id`) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 9 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '附件分类表' ROW_FORMAT = DYNAMIC; --- --- 转存表中的数据 `eb_system_attachment_category` --- +-- ---------------------------- +-- Records of eb_system_attachment_category +-- ---------------------------- +INSERT INTO `eb_system_attachment_category` VALUES (1, 0, '产品图', ''); +INSERT INTO `eb_system_attachment_category` VALUES (2, 0, '分类图片', ''); +INSERT INTO `eb_system_attachment_category` VALUES (3, 0, '广告图', ''); +INSERT INTO `eb_system_attachment_category` VALUES (4, 0, '个人中心', ''); +INSERT INTO `eb_system_attachment_category` VALUES (5, 0, '订单详情', ''); +INSERT INTO `eb_system_attachment_category` VALUES (6, 0, '会员等级', ''); +INSERT INTO `eb_system_attachment_category` VALUES (7, 0, '系统分类', ''); +INSERT INTO `eb_system_attachment_category` VALUES (8, 0, '分享海报', ''); -INSERT INTO `eb_system_attachment_category` (`id`, `pid`, `name`, `enname`) VALUES -(1, 0, '产品图', ''), -(2, 0, '分类图片', ''), -(3, 0, '广告图', ''), -(4, 0, '个人中心', ''), -(5, 0, '订单详情', ''), -(6, 0, '会员等级', ''), -(7, 0, '系统分类', ''), -(8, 0, '分享海报', ''); - --- -------------------------------------------------------- - --- --- 表的结构 `eb_system_config` --- - -CREATE TABLE IF NOT EXISTS `eb_system_config` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '配置id', - `menu_name` varchar(255) NOT NULL COMMENT '字段名称', - `type` varchar(255) NOT NULL COMMENT '类型(文本框,单选按钮...)', - `config_tab_id` int(10) unsigned NOT NULL COMMENT '配置分类id', - `parameter` varchar(255) DEFAULT NULL COMMENT '规则 单选框和多选框', - `upload_type` tinyint(1) unsigned DEFAULT NULL COMMENT '上传文件格式1单图2多图3文件', - `required` varchar(255) DEFAULT NULL COMMENT '规则', - `width` int(10) unsigned DEFAULT NULL COMMENT '多行文本框的宽度', - `high` int(10) unsigned DEFAULT NULL COMMENT '多行文框的高度', - `value` varchar(5000) DEFAULT NULL COMMENT '默认值', - `info` varchar(255) NOT NULL COMMENT '配置名称', - `desc` varchar(255) DEFAULT NULL COMMENT '配置简介', - `sort` int(10) unsigned NOT NULL COMMENT '排序', - `status` tinyint(1) unsigned NOT NULL COMMENT '是否隐藏', +-- ---------------------------- +-- Table structure for eb_system_config +-- ---------------------------- +DROP TABLE IF EXISTS `eb_system_config`; +CREATE TABLE `eb_system_config` ( + `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '配置id', + `menu_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '字段名称', + `type` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '类型(文本框,单选按钮...)', + `config_tab_id` int(10) UNSIGNED NOT NULL COMMENT '配置分类id', + `parameter` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '规则 单选框和多选框', + `upload_type` tinyint(1) UNSIGNED NULL DEFAULT NULL COMMENT '上传文件格式1单图2多图3文件', + `required` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '规则', + `width` int(10) UNSIGNED NULL DEFAULT NULL COMMENT '多行文本框的宽度', + `high` int(10) UNSIGNED NULL DEFAULT NULL COMMENT '多行文框的高度', + `value` varchar(5000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '默认值', + `info` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '配置名称', + `desc` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '配置简介', + `sort` int(10) UNSIGNED NOT NULL COMMENT '排序', + `status` tinyint(1) UNSIGNED NOT NULL COMMENT '是否隐藏', PRIMARY KEY (`id`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='配置表' AUTO_INCREMENT=108 ; +) ENGINE = InnoDB AUTO_INCREMENT = 108 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '配置表' ROW_FORMAT = DYNAMIC; --- --- 转存表中的数据 `eb_system_config` --- +-- ---------------------------- +-- Records of eb_system_config +-- ---------------------------- -INSERT INTO `eb_system_config` (`id`, `menu_name`, `type`, `config_tab_id`, `parameter`, `upload_type`, `required`, `width`, `high`, `value`, `info`, `desc`, `sort`, `status`) VALUES -(1, 'site_name', 'text', 1, '', 0, 'required:true', 100, 0, '"CRMEB\\u5ba2\\u6e90"', '网站名称', '网站名称', 0, 1), -(2, 'site_url', 'text', 1, '', 0, 'required:true,url:true', 100, 0, '"http:\\/\\/datong.crmeb.net"', '网站地址', '网站地址', 0, 1), -(3, 'site_logo', 'upload', 1, '', 1, '', 0, 0, '""', '后台LOGO', '左上角logo,建议尺寸[170*50]', 0, 1), -(4, 'site_phone', 'text', 1, '', 0, '', 100, 0, '""', '联系电话', '联系电话', 0, 1), -(5, 'seo_title', 'text', 1, '', 0, 'required:true', 100, 0, '"crmeb\\u7535\\u5546\\u7cfb\\u7edf"', 'SEO标题', 'SEO标题', 0, 1), -(6, 'site_email', 'text', 1, '', 0, 'email:true', 100, 0, '"admin@xazbkj.com"', '联系邮箱', '联系邮箱', 0, 1), -(7, 'site_qq', 'text', 1, '', 0, 'qq:true', 100, 0, '"98718401"', '联系QQ', '联系QQ', 0, 1), -(8, 'site_close', 'radio', 1, '0=>开启\n1=>PC端关闭\n2=>WAP端关闭(含微信)\n3=>全部关闭', 0, '', 0, 0, '"0"', '网站关闭', '网站后台、商家中心不受影响。关闭网站也可访问', 0, 1), -(9, 'close_system', 'radio', 1, '0=>开启\n1=>关闭', 0, '', 0, 0, '"0"', '关闭后台', '关闭后台', 0, 2), -(10, 'wechat_name', 'text', 2, '', 0, 'required:true', 100, 0, '"CRMEB"', '公众号名称', '公众号的名称', 0, 1), -(11, 'wechat_id', 'text', 2, '', 0, 'required:true', 100, 0, '"CRMEB"', '微信号', '微信号', 0, 1), -(12, 'wechat_sourceid', 'text', 2, '', 0, 'required:true', 100, 0, '"CRMEB"', '公众号原始id', '公众号原始id', 0, 1), -(13, 'wechat_appid', 'text', 2, '', 0, 'required:true', 100, 0, '"CRMEB"', 'AppID', 'AppID', 0, 1), -(14, 'wechat_appsecret', 'text', 2, '', 0, 'required:true', 100, 0, '"CRMEB"', 'AppSecret', 'AppSecret', 0, 1), -(15, 'wechat_token', 'text', 2, '', 0, 'required:true', 100, 0, '"CRMEB"', '微信验证TOKEN', '微信验证TOKEN', 0, 1), -(16, 'wechat_encode', 'radio', 2, '0=>明文模式\n1=>兼容模式\n2=>安全模式', 0, '', 0, 0, '"0"', '消息加解密方式', '如需使用安全模式请在管理中心修改,仅限服务号和认证订阅号', 0, 1), -(17, 'wechat_encodingaeskey', 'text', 2, '', 0, 'required:true', 100, 0, '"CRMEB"', 'EncodingAESKey', '公众号消息加解密Key,在使用安全模式情况下要填写该值,请先在管理中心修改,然后填写该值,仅限服务号和认证订阅号', 0, 1), -(18, 'wechat_share_img', 'upload', 3, '', 1, '', 0, 0, '""', '微信分享图片', '若填写此图片地址,则分享网页出去时会分享此图片。可有效防止分享图片变形', 0, 1), -(19, 'wechat_qrcode', 'upload', 2, '', 1, '', 0, 0, '"\\/public\\/uploads\\/config\\/image\\/5c3d8f3405c48.jpg"', '公众号二维码', '您的公众号二维码', 0, 1), -(20, 'wechat_type', 'radio', 2, '0=>服务号\n1=>订阅号', 0, '', 0, 0, '"0"', '公众号类型', '公众号的类型', 0, 1), -(21, 'wechat_share_title', 'text', 3, '', 0, 'required:true', 100, 0, '"CRMEB"', '微信分享标题', '微信分享标题', 0, 1), -(22, 'wechat_share_synopsis', 'textarea', 3, '', 0, '', 100, 5, '"CRMEB"', '微信分享简介', '微信分享简介', 0, 1), -(23, 'pay_weixin_appid', 'text', 4, '', 0, '', 100, 0, '"CRMEB"', 'Appid', '微信公众号身份的唯一标识。审核通过后,在微信发送的邮件中查看。', 0, 1), -(24, 'pay_weixin_appsecret', 'text', 4, '', 0, '', 100, 0, '"CRMEB"', 'Appsecret', 'JSAPI接口中获取openid,审核后在公众平台开启开发模式后可查看。', 0, 1), -(25, 'pay_weixin_mchid', 'text', 4, '', 0, '', 100, 0, '"CRMEB"', 'Mchid', '受理商ID,身份标识', 0, 1), -(26, 'pay_weixin_client_cert', 'upload', 4, '', 3, '', 0, 0, '""', '微信支付证书', '微信支付证书,在微信商家平台中可以下载!文件名一般为apiclient_cert.pem', 0, 1), -(27, 'pay_weixin_client_key', 'upload', 4, '', 3, '', 0, 0, '""', '微信支付证书密钥', '微信支付证书密钥,在微信商家平台中可以下载!文件名一般为apiclient_key.pem', 0, 1), -(28, 'pay_weixin_key', 'text', 4, '', 0, '', 100, 0, '"CRMEB"', 'Key', '商户支付密钥Key。审核通过后,在微信发送的邮件中查看。', 0, 1), -(29, 'pay_weixin_open', 'radio', 4, '1=>开启\n0=>关闭', 0, '', 0, 0, '"1"', '开启', '是否启用微信支付', 0, 1), -(31, 'store_postage', 'text', 10, '', 0, 'number:true,min:0', 100, 0, '"0"', '邮费基础价', '商品邮费基础价格,最终金额为(基础价 + 商品1邮费 + 商品2邮费)', 0, 1), -(32, 'store_free_postage', 'text', 5, '', 0, 'number:true,min:-1', 100, 0, '"20"', '满额包邮', '商城商品满多少金额即可包邮', 0, 1), -(33, 'offline_postage', 'radio', 10, '0=>不包邮\n1=>包邮', 0, '', 0, 0, '"1"', '线下支付是否包邮', '用户选择线下支付时是否包邮', 0, 1), -(34, 'integral_ratio', 'text', 11, '', 0, 'number:true', 100, 0, '"0.01"', '积分抵用比例', '积分抵用比例(1积分抵多少金额)', 0, 1), -(35, 'site_service_phone', 'text', 1, '', 0, '', 100, 0, '""', '客服电话', '客服联系电话', 0, 1), -(44, 'store_user_min_recharge', 'text', 5, '', 0, 'required:true,number:true,min:0', 100, 0, '"0.01"', '用户最低充值金额', '用户单次最低充值金额', 0, 0), -(45, 'site_store_admin_uids', 'text', 5, '', 0, '', 100, 0, '"4"', '管理员用户ID', '管理员用户ID,用于接收商城订单提醒,到微信用户中查找编号,多个英文‘,’隔开', 0, 1), -(46, 'system_express_app_code', 'text', 10, '', 0, '', 100, 0, '"e435be4a9bea44fa8a4862f8d0204da6"', '快递查询密钥', '阿里云快递查询接口密钥购买地址:https://market.aliyun.com/products/56928004/cmapi021863.html', 0, 1), -(47, 'main_business', 'text', 2, '', 0, 'required:true', 100, 0, '" IT\\u79d1\\u6280 \\u4e92\\u8054\\u7f51|\\u7535\\u5b50\\u5546\\u52a1"', '微信模板消息_主营行业', '微信公众号模板消息中选择开通的主营行业', 0, 0), -(48, 'vice_business', 'text', 2, '', 0, 'required:true', 100, 0, '"IT\\u79d1\\u6280 IT\\u8f6f\\u4ef6\\u4e0e\\u670d\\u52a1 "', '微信模板消息_副营行业', '微信公众号模板消息中选择开通的副营行业', 0, 0), -(49, 'store_brokerage_ratio', 'text', 9, '', 0, 'required:true,min:0,max:100,number:true', 100, 0, '"30"', '一级返佣比例', '订单交易成功后给上级返佣的比例0 - 100,例:5 = 反订单金额的5%', 5, 1), -(50, 'wechat_first_sub_give_coupon', 'text', 12, '', 0, 'requred:true,digits:true,min:0', 100, 0, '""', '首次关注赠送优惠券ID', '首次关注赠送优惠券ID,0为不赠送', 0, 1), -(51, 'store_give_con_min_price', 'text', 12, '', 0, 'requred:true,digits:true,min:0', 100, 0, '"0.01"', '消费满多少赠送优惠券', '消费满多少赠送优惠券,0为不赠送', 0, 1), -(52, 'store_order_give_coupon', 'text', 12, '', 0, 'requred:true,digits:true,min:0', 100, 0, '""', '消费赠送优惠劵ID', '消费赠送优惠劵ID,0为不赠送', 0, 1), -(53, 'user_extract_min_price', 'text', 9, '', 0, 'required:true,number:true,min:0', 100, 0, '"1"', '提现最低金额', '用户提现最低金额', 0, 1), -(54, 'sx_sign_min_int', 'text', 11, '', 0, 'required:true,number:true,min:0', 100, 0, '"1"', '签到奖励最低积分', '签到奖励最低积分', 0, 1), -(55, 'sx_sign_max_int', 'text', 11, '', 0, 'required:true,number:true,min:0', 100, 0, '"5"', '签到奖励最高积分', '签到奖励最高积分', 0, 1), -(56, 'store_home_pink', 'upload', 5, '', 1, '', 0, 0, '"\\/public\\/uploads\\/config\\/image\\/5c3dd2ffb2616.jpeg"', '首页拼团广告图', '首页拼团广告图', 0, 1), -(57, 'about_us', 'upload', 1, '', 1, '', 0, 0, '"\\/public\\/uploads\\/config\\/image\\/5c3d964265e9f.png"', '关于我们', '系统的标识', 0, 1), -(58, 'replenishment_num', 'text', 5, '', 0, 'required:true,number:true,min:0', 100, 0, '"20"', '待补货数量', '产品待补货数量低于多少时,提示补货', 0, 1), -(59, 'routine_appId', 'text', 7, '', 0, '', 100, 0, '""', 'appId', '小程序appID', 0, 1), -(60, 'routine_appsecret', 'text', 7, '', 0, '', 100, 0, '""', 'AppSecret', '小程序AppSecret', 0, 1), -(61, 'api', 'text', 2, '', 0, '', 100, 0, '"\\/wap\\/Wechat\\/serve"', '接口地址', '微信接口例如:http://www.abc.com/wap/wechat/serve', 0, 1), -(62, 'paydir', 'textarea', 4, '', 0, '', 100, 5, '"\\/wap\\/my\\/\\r\\n\\/wap\\/my\\/order\\/uni\\/\\r\\n\\/wap\\/store\\/confirm_order\\/cartId\\/\\r\\n\\/wap\\/store\\/combination_order\\/"', '配置目录', '支付目录配置系统不调用提示作用', 0, 1), -(73, 'routine_logo', 'upload', 7, '', 1, '', 0, 0, '"\\/public\\/uploads\\/config\\/image\\/5c9cd841a76fe.png"', '小程序logo', '小程序logo', 0, 1), -(74, 'routine_name', 'text', 7, '', 0, '', 100, 0, '"CRMEB"', '小程序名称', '小程序名称', 0, 1), -(76, 'routine_style', 'text', 7, '', 0, '', 100, 0, '""', '小程序风格', '小程序颜色', 0, 1), -(77, 'store_stock', 'text', 5, '', 0, '', 100, 0, '"2"', '警戒库存', '警戒库存提醒值', 0, 1), -(85, 'stor_reason', 'textarea', 5, '', 0, '', 100, 8, '"\\u6536\\u8d27\\u5730\\u5740\\u586b\\u9519\\u4e86\\r\\n\\u4e0e\\u63cf\\u8ff0\\u4e0d\\u7b26\\r\\n\\u4fe1\\u606f\\u586b\\u9519\\u4e86\\uff0c\\u91cd\\u65b0\\u62cd\\r\\n\\u6536\\u5230\\u5546\\u54c1\\u635f\\u574f\\u4e86\\r\\n\\u672a\\u6309\\u9884\\u5b9a\\u65f6\\u95f4\\u53d1\\u8d27\\r\\n\\u5176\\u5b83\\u539f\\u56e0"', '退货理由', '配置退货理由,一行一个理由', 0, 1), -(87, 'store_brokerage_two', 'text', 9, '', 0, 'required:true,min:0,max:100,number:true', 100, 0, '"10"', '二级返佣比例', '订单交易成功后给上级返佣的比例0 - 100,例:5 = 反订单金额的5%', 4, 1), -(88, 'store_brokerage_statu', 'radio', 9, '1=>指定分销\n2=>人人分销', 0, '', 0, 0, '"2"', '分销模式', '人人分销默认每个人都可以分销,制定人分销后台制定人开启分销', 10, 1), -(89, 'pay_routine_appid', 'text', 14, '', 0, 'required:true', 100, 0, '"0"', 'Appid', '小程序Appid', 0, 1), -(90, 'pay_routine_appsecret', 'text', 14, '', 0, 'required:true', 100, 0, '"0"', 'Appsecret', '小程序Appsecret', 0, 1), -(91, 'pay_routine_mchid', 'text', 14, '', 0, 'required:true', 100, 0, '"0"', 'Mchid', '商户号', 0, 1), -(92, 'pay_routine_key', 'text', 14, '', 0, 'required:true', 100, 0, '"0"', 'Key', '商户key', 0, 1), -(93, 'pay_routine_client_cert', 'upload', 14, '', 3, '', 0, 0, '""', '小程序支付证书', '小程序支付证书', 0, 1), -(94, 'pay_routine_client_key', 'upload', 14, '', 3, '', 0, 0, '""', '小程序支付证书密钥', '小程序支付证书密钥', 0, 1), -(98, 'wechat_avatar', 'upload', 2, '', 1, '', 0, 0, '""', '公众号logo', '公众号logo', 0, 1), -(99, 'user_extract_bank', 'textarea', 9, '', 0, '', 100, 5, '"\\u4e2d\\u56fd\\u519c\\u884c\\r\\n\\u4e2d\\u56fd\\u5efa\\u8bbe\\u94f6\\u884c\\r\\n\\u5de5\\u5546\\u94f6\\u884c"', '提现银行卡', '提现银行卡,每个银行换行', 0, 1), -(100, 'fast_info', 'text', 16, NULL, NULL, '', 100, NULL, '"\\u4e0a\\u767e\\u79cd\\u5546\\u54c1\\u5206\\u7c7b\\u4efb\\u60a8\\u9009\\u62e9"', '快速选择简介', '小程序首页配置快速选择简介', 0, 1), -(101, 'bast_info', 'text', 16, NULL, NULL, '', 100, NULL, '"\\u8001\\u674e\\u8bda\\u610f\\u63a8\\u8350\\u54c1\\u8d28\\u5546\\u54c1"', '精品推荐简介', '小程序首页配置精品推荐简介', 0, 1), -(102, 'first_info', 'text', 16, NULL, NULL, '', 100, NULL, '"\\u591a\\u4e2a\\u4f18\\u8d28\\u5546\\u54c1\\u6700\\u65b0\\u4e0a\\u67b6"', '首发新品简介', '小程序首页配置首发新品简介', 0, 1), -(103, 'sales_info', 'text', 16, NULL, NULL, '', 100, NULL, '"\\u5e93\\u5b58\\u5546\\u54c1\\u4f18\\u60e0\\u4fc3\\u9500\\u6d3b\\u52a8"', '促销单品简介', '小程序首页配置促销单品简介', 0, 1), -(104, 'fast_number', 'text', 16, NULL, NULL, 'required:true,digits:true,min:1', 100, NULL, '"10"', '快速选择分类个数', '小程序首页配置快速选择分类个数', 0, 1), -(105, 'bast_number', 'text', 16, NULL, NULL, 'required:true,digits:true,min:1', 100, NULL, '"10"', '精品推荐个数', '小程序首页配置精品推荐个数', 0, 1), -(106, 'first_number', 'text', 16, NULL, NULL, 'required:true,digits:true,min:1', 100, NULL, '"10"', '首发新品个数', '小程序首页配置首发新品个数', 0, 1), -(107, 'routine_index_logo', 'upload', 7, NULL, 1, NULL, NULL, NULL, '"\\/public\\/uploads\\/config\\/image\\/5cb0448eed9cb.png"', '小程序主页logo图标', '小程序主页logo图标', 0, 1); +INSERT INTO `eb_system_config` (`id`,`menu_name`,`type`,`config_tab_id`,`parameter`,`upload_type`,`required`,`width`,`high`,`value`,`info`,`desc`,`sort`,`status`) VALUES (1,'site_name','text',1,'',0,'required:true',100,0,'\"CRMEB\\u5ba2\\u6e90\"','网站名称','网站名称',0,1),(2,'site_url','text',1,'',0,'required:true,url:true',100,0,'\"http:\\/\\/activity.crmeb.net\"','网站地址','网站地址',0,1),(3,'site_logo','upload',1,'',1,'',0,0,'\"\"','后台LOGO','左上角logo,建议尺寸[170*50]',0,1),(4,'site_phone','text',1,'',0,'',100,0,'\"\"','联系电话','联系电话',0,1),(5,'seo_title','text',1,'',0,'required:true',100,0,'\"crmeb\\u7535\\u5546\\u7cfb\\u7edf\"','SEO标题','SEO标题',0,1),(6,'site_email','text',1,'',0,'email:true',100,0,'\"admin@xazbkj.com\"','联系邮箱','联系邮箱',0,1),(7,'site_qq','text',1,'',0,'qq:true',100,0,'\"98718401\"','联系QQ','联系QQ',0,1),(8,'site_close','radio',1,'0=>开启\n1=>PC端关闭\n2=>WAP端关闭(含微信)\n3=>全部关闭',0,'',0,0,'\"0\"','网站关闭','网站后台、商家中心不受影响。关闭网站也可访问',0,1),(9,'close_system','radio',1,'0=>开启\n1=>关闭',0,'',0,0,'\"0\"','关闭后台','关闭后台',0,2),(10,'wechat_name','text',2,'',0,'required:true',100,0,'\"CRMEB\"','公众号名称','公众号的名称',0,1),(11,'wechat_id','text',2,'',0,'required:true',100,0,'\"CRMEB\"','微信号','微信号',0,1),(12,'wechat_sourceid','text',2,'',0,'required:true',100,0,'\"CRMEB\"','公众号原始id','公众号原始id',0,1),(13,'wechat_appid','text',2,'',0,'required:true',100,0,'\"CRMEB\"','AppID','AppID',0,1),(14,'wechat_appsecret','text',2,'',0,'required:true',100,0,'\"CRMEB\"','AppSecret','AppSecret',0,1),(15,'wechat_token','text',2,'',0,'required:true',100,0,'\"CRMEB\"','微信验证TOKEN','微信验证TOKEN',0,1),(16,'wechat_encode','radio',2,'0=>明文模式\n1=>兼容模式\n2=>安全模式',0,'',0,0,'\"0\"','消息加解密方式','如需使用安全模式请在管理中心修改,仅限服务号和认证订阅号',0,1),(17,'wechat_encodingaeskey','text',2,'',0,'required:true',100,0,'\"CRMEB\"','EncodingAESKey','公众号消息加解密Key,在使用安全模式情况下要填写该值,请先在管理中心修改,然后填写该值,仅限服务号和认证订阅号',0,1),(18,'wechat_share_img','upload',3,'',1,'',0,0,'\"\"','微信分享图片','若填写此图片地址,则分享网页出去时会分享此图片。可有效防止分享图片变形',0,1),(19,'wechat_qrcode','upload',2,'',1,'',0,0,'\"\"','公众号二维码','您的公众号二维码',0,1),(20,'wechat_type','radio',2,'0=>服务号\n1=>订阅号',0,'',0,0,'\"0\"','公众号类型','公众号的类型',0,1),(21,'wechat_share_title','text',3,'',0,'required:true',100,0,'\"CRMEB\"','微信分享标题','微信分享标题',0,1),(22,'wechat_share_synopsis','textarea',3,'',0,'',100,5,'\"CRMEB\"','微信分享简介','微信分享简介',0,1),(23,'pay_weixin_appid','text',4,'',0,'',100,0,'\"CRMEB\"','Appid','微信公众号身份的唯一标识。审核通过后,在微信发送的邮件中查看。',0,1),(24,'pay_weixin_appsecret','text',4,'',0,'',100,0,'\"CRMEB\"','Appsecret','JSAPI接口中获取openid,审核后在公众平台开启开发模式后可查看。',0,1),(25,'pay_weixin_mchid','text',4,'',0,'',100,0,'\"CRMEB\"','Mchid','受理商ID,身份标识',0,1),(26,'pay_weixin_client_cert','upload',4,'',3,'',0,0,'\"\"','微信支付证书','微信支付证书,在微信商家平台中可以下载!文件名一般为apiclient_cert.pem',0,1),(27,'pay_weixin_client_key','upload',4,'',3,'',0,0,'\"\"','微信支付证书密钥','微信支付证书密钥,在微信商家平台中可以下载!文件名一般为apiclient_key.pem',0,1),(28,'pay_weixin_key','text',4,'',0,'',100,0,'\"CRMEB\"','Key','商户支付密钥Key。审核通过后,在微信发送的邮件中查看。',0,1),(29,'pay_weixin_open','radio',4,'1=>开启\n0=>关闭',0,'',0,0,'\"1\"','开启','是否启用微信支付',0,1),(31,'store_postage','text',10,'',0,'number:true,min:0',100,0,'\"0\"','邮费基础价','商品邮费基础价格,最终金额为(基础价 + 商品1邮费 + 商品2邮费)',0,1),(32,'store_free_postage','text',5,'',0,'number:true,min:-1',100,0,'\"20\"','满额包邮','商城商品满多少金额即可包邮',0,1),(33,'offline_postage','radio',10,'0=>不包邮\n1=>包邮',0,'',0,0,'\"1\"','线下支付是否包邮','用户选择线下支付时是否包邮',0,1),(34,'integral_ratio','text',11,'',0,'number:true',100,0,'\"0.01\"','积分抵用比例','积分抵用比例(1积分抵多少金额)',0,1),(35,'site_service_phone','text',1,'',0,'',100,0,'\"\"','客服电话','客服联系电话',0,1),(44,'store_user_min_recharge','text',5,'',0,'required:true,number:true,min:0',100,0,'\"0.01\"','用户最低充值金额','用户单次最低充值金额',0,0),(45,'site_store_admin_uids','text',5,'',0,'',100,0,'\"4\"','管理员用户ID','管理员用户ID,用于接收商城订单提醒,到微信用户中查找编号,多个英文‘,’隔开',0,1),(46,'system_express_app_code','text',10,'',0,'',100,0,'\"e435be4a9bea44fa8a4862f8d0204da6\"','快递查询密钥','阿里云快递查询接口密钥购买地址:https://market.aliyun.com/products/56928004/cmapi021863.html',0,1),(47,'main_business','text',2,'',0,'required:true',100,0,'\" IT\\u79d1\\u6280 \\u4e92\\u8054\\u7f51|\\u7535\\u5b50\\u5546\\u52a1\"','微信模板消息_主营行业','微信公众号模板消息中选择开通的主营行业',0,0),(48,'vice_business','text',2,'',0,'required:true',100,0,'\"IT\\u79d1\\u6280 IT\\u8f6f\\u4ef6\\u4e0e\\u670d\\u52a1 \"','微信模板消息_副营行业','微信公众号模板消息中选择开通的副营行业',0,0),(49,'store_brokerage_ratio','text',9,'',0,'required:true,min:0,max:100,number:true',100,0,'\"80\"','一级返佣比例','订单交易成功后给上级返佣的比例0 - 100,例:5 = 反订单金额的5%',5,1),(50,'wechat_first_sub_give_coupon','text',12,'',0,'requred:true,digits:true,min:0',100,0,'\"\"','首次关注赠送优惠券ID','首次关注赠送优惠券ID,0为不赠送',0,1),(51,'store_give_con_min_price','text',12,'',0,'requred:true,digits:true,min:0',100,0,'\"0.01\"','消费满多少赠送优惠券','消费满多少赠送优惠券,0为不赠送',0,1),(52,'store_order_give_coupon','text',12,'',0,'requred:true,digits:true,min:0',100,0,'\"\"','消费赠送优惠劵ID','消费赠送优惠劵ID,0为不赠送',0,1),(53,'user_extract_min_price','text',9,'',0,'required:true,number:true,min:0',100,0,'\"1\"','提现最低金额','用户提现最低金额',0,1),(54,'sx_sign_min_int','text',11,'',0,'required:true,number:true,min:0',100,0,'\"1\"','签到奖励最低积分','签到奖励最低积分',0,1),(55,'sx_sign_max_int','text',11,'',0,'required:true,number:true,min:0',100,0,'\"5\"','签到奖励最高积分','签到奖励最高积分',0,1),(56,'store_home_pink','upload',5,'',1,'',0,0,'\"\\/public\\/uploads\\/config\\/image\\/5c3dd2ffb2616.jpeg\"','首页拼团广告图','首页拼团广告图',0,1),(57,'about_us','upload',1,'',1,'',0,0,'\"\\/public\\/uploads\\/config\\/image\\/5c3d964265e9f.png\"','关于我们','系统的标识',0,1),(58,'replenishment_num','text',5,'',0,'required:true,number:true,min:0',100,0,'\"20\"','待补货数量','产品待补货数量低于多少时,提示补货',0,1),(59,'routine_appId','text',7,'',0,'',100,0,'\"\"','appId','小程序appID',0,1),(60,'routine_appsecret','text',7,'',0,'',100,0,'\"\"','AppSecret','小程序AppSecret',0,1),(61,'api','text',2,'',0,'',100,0,'\"\\/wap\\/Wechat\\/serve\"','接口地址','微信接口例如:http://www.abc.com/wap/wechat/serve',0,1),(62,'paydir','textarea',4,'',0,'',100,5,'\"\\/wap\\/my\\/\\r\\n\\/wap\\/my\\/order\\/uni\\/\\r\\n\\/wap\\/store\\/confirm_order\\/cartId\\/\\r\\n\\/wap\\/store\\/combination_order\\/\"','配置目录','支付目录配置系统不调用提示作用',0,1),(73,'routine_logo','upload',7,'',1,'',0,0,'\"\\/public\\/uploads\\/config\\/image\\/5c9cd841a76fe.png\"','小程序logo','小程序logo',0,1),(74,'routine_name','text',7,'',0,'',100,0,'\"CRMEB\"','小程序名称','小程序名称',0,1),(76,'routine_style','text',7,'',0,'',100,0,'\"\"','小程序风格','小程序颜色',0,1),(77,'store_stock','text',5,'',0,'',100,0,'\"2\"','警戒库存','警戒库存提醒值',0,1),(85,'stor_reason','textarea',5,'',0,'',100,8,'\"\\u6536\\u8d27\\u5730\\u5740\\u586b\\u9519\\u4e86\\r\\n\\u4e0e\\u63cf\\u8ff0\\u4e0d\\u7b26\\r\\n\\u4fe1\\u606f\\u586b\\u9519\\u4e86\\uff0c\\u91cd\\u65b0\\u62cd\\r\\n\\u6536\\u5230\\u5546\\u54c1\\u635f\\u574f\\u4e86\\r\\n\\u672a\\u6309\\u9884\\u5b9a\\u65f6\\u95f4\\u53d1\\u8d27\\r\\n\\u5176\\u5b83\\u539f\\u56e0\"','退货理由','配置退货理由,一行一个理由',0,1),(87,'store_brokerage_two','text',9,'',0,'required:true,min:0,max:100,number:true',100,0,'\"60\"','二级返佣比例','订单交易成功后给上级返佣的比例0 - 100,例:5 = 反订单金额的5%',4,1),(88,'store_brokerage_statu','radio',9,'1=>指定分销\n2=>人人分销',0,'',0,0,'\"2\"','分销模式','人人分销默认每个人都可以分销,制定人分销后台制定人开启分销',10,1),(89,'pay_routine_appid','text',14,'',0,'required:true',100,0,'\"0\"','Appid','小程序Appid',0,1),(90,'pay_routine_appsecret','text',14,'',0,'required:true',100,0,'\"0\"','Appsecret','小程序Appsecret',0,1),(91,'pay_routine_mchid','text',14,'',0,'required:true',100,0,'\"0\"','Mchid','商户号',0,1),(92,'pay_routine_key','text',14,'',0,'required:true',100,0,'\"0\"','Key','商户key',0,1),(93,'pay_routine_client_cert','upload',14,'',3,'',0,0,'\"\"','小程序支付证书','小程序支付证书',0,1),(94,'pay_routine_client_key','upload',14,'',3,'',0,0,'\"\"','小程序支付证书密钥','小程序支付证书密钥',0,1),(98,'wechat_avatar','upload',2,'',1,'',0,0,'\"\"','公众号logo','公众号logo',0,1),(99,'user_extract_bank','textarea',9,'',0,'',100,5,'\"\\u4e2d\\u56fd\\u519c\\u884c\\r\\n\\u4e2d\\u56fd\\u5efa\\u8bbe\\u94f6\\u884c\\r\\n\\u5de5\\u5546\\u94f6\\u884c\"','提现银行卡','提现银行卡,每个银行换行',0,1),(100,'fast_info','text',16,NULL,NULL,'',100,NULL,'\"\\u4e0a\\u767e\\u79cd\\u5546\\u54c1\\u5206\\u7c7b\\u4efb\\u60a8\\u9009\\u62e9\"','快速选择简介','小程序首页配置快速选择简介',0,1),(101,'bast_info','text',16,NULL,NULL,'',100,NULL,'\"\\u8001\\u674e\\u8bda\\u610f\\u63a8\\u8350\\u54c1\\u8d28\\u5546\\u54c1\"','精品推荐简介','小程序首页配置精品推荐简介',0,1),(102,'first_info','text',16,NULL,NULL,'',100,NULL,'\"\\u591a\\u4e2a\\u4f18\\u8d28\\u5546\\u54c1\\u6700\\u65b0\\u4e0a\\u67b6\"','首发新品简介','小程序首页配置首发新品简介',0,1),(103,'sales_info','text',16,NULL,NULL,'',100,NULL,'\"\\u5e93\\u5b58\\u5546\\u54c1\\u4f18\\u60e0\\u4fc3\\u9500\\u6d3b\\u52a8\"','促销单品简介','小程序首页配置促销单品简介',0,1),(104,'fast_number','text',16,NULL,NULL,'required:true,digits:true,min:1',100,NULL,'\"10\"','快速选择分类个数','小程序首页配置快速选择分类个数',0,1),(105,'bast_number','text',16,NULL,NULL,'required:true,digits:true,min:1',100,NULL,'\"10\"','精品推荐个数','小程序首页配置精品推荐个数',0,1),(106,'first_number','text',16,NULL,NULL,'required:true,digits:true,min:1',100,NULL,'\"10\"','首发新品个数','小程序首页配置首发新品个数',0,1),(107,'routine_index_logo','upload',7,NULL,1,NULL,NULL,NULL,'\"\"','小程序主页logo图标','小程序主页logo图标',0,1),(108,'upload_type','radio',17,'1=>本地存储\n2=>七牛云存储\n3=>阿里云OSS\n4=>腾讯COS',NULL,NULL,NULL,NULL,'\"1\"','上传类型','文件上传的类型',0,1),(109,'uploadUrl','text',17,NULL,NULL,'url:true',100,NULL,'\"\"','空间域名 Domain','空间域名 Domain',0,1),(110,'accessKey','text',17,NULL,NULL,'',100,NULL,'\"\"','accessKey','accessKey',0,1),(111,'secretKey','text',17,NULL,NULL,'',100,NULL,'\"\"','secretKey','secretKey',0,1),(112,'storage_name','text',17,NULL,NULL,'',100,NULL,'\"\"','存储空间名称','存储空间名称',0,1),(113,'order_cancel_time','text',5,NULL,NULL,'',100,NULL,'\"24\"','普通商品未支付取消订单时间','普通商品未支付取消订单时间,单位(小时)',0,1),(114,'order_activity_time','text',5,NULL,NULL,'',100,NULL,'\"2\"','活动商品未支付取消订单时间','活动商品未支付取消订单时间,单位(小时)',0,1),(115,'order_bargain_time','text',5,NULL,NULL,NULL,100,NULL,'\"0\"','砍价未支付取消订单时间','砍价未支付默认取消订单时间,单位(小时),如果为0将使用默认活动取消时间,优先使用单独活动配置',0,1),(116,'order_seckill_time','text',5,NULL,NULL,NULL,100,NULL,'\"0\"','秒杀未支付订单取消时间','秒杀未支付订单取消时间,单位(小时),如果为0将使用默认活动取消时间,优先使用单独活动配置',0,1),(117,'order_pink_time','text',5,NULL,NULL,NULL,100,NULL,'\"0\"','拼团未支付取消订单时间','拼团未支付取消订单时间,单位(小时),如果为0将使用默认活动取消时间,优先使用单独活动配置',0,1),(118,'storage_region','text',17,NULL,NULL,'',100,NULL,'\"\"','所属地域','所属地域(腾讯COS时填写)',0,1),(119,'vip_open','radio',5,'0=>关闭\n1=>开启',NULL,NULL,NULL,NULL,'\"0\"','会员功能是否开启','会员功能是否开启',0,1),(120,'new_order_audio_link','upload',5,NULL,3,NULL,NULL,NULL,'','新订单语音提示','新订单语音提示',0,1),(121,'seckill_header_banner','upload',5,NULL,1,NULL,NULL,NULL,'\"\\/public\\/uploads\\/config\\/image\\/5cf5d6e27c48e.jpg\"','秒杀头部banner','秒杀头部banner',0,1),(122,'recharge_switch', 'radio', 5, '1=>开启\n0=>关闭', NULL, NULL, NULL, NULL, '\"1\"', '充值开关', '充值开关', 0, 1); --- -------------------------------------------------------- - --- --- 表的结构 `eb_system_config_tab` --- - -CREATE TABLE IF NOT EXISTS `eb_system_config_tab` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '配置分类id', - `title` varchar(255) NOT NULL COMMENT '配置分类名称', - `eng_title` varchar(255) NOT NULL COMMENT '配置分类英文名称', - `status` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '配置分类状态', - `info` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '配置分类是否显示', - `icon` varchar(30) DEFAULT NULL COMMENT '图标', - `type` int(2) DEFAULT '0' COMMENT '配置类型', +-- ---------------------------- +-- Table structure for eb_system_config_tab +-- ---------------------------- +DROP TABLE IF EXISTS `eb_system_config_tab`; +CREATE TABLE `eb_system_config_tab` ( + `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '配置分类id', + `title` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '配置分类名称', + `eng_title` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '配置分类英文名称', + `status` tinyint(1) UNSIGNED NOT NULL DEFAULT 1 COMMENT '配置分类状态', + `info` tinyint(1) UNSIGNED NOT NULL DEFAULT 0 COMMENT '配置分类是否显示', + `icon` varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '图标', + `type` int(2) NULL DEFAULT 0 COMMENT '配置类型', PRIMARY KEY (`id`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='配置分类表' AUTO_INCREMENT=17 ; +) ENGINE = InnoDB AUTO_INCREMENT = 17 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '配置分类表' ROW_FORMAT = DYNAMIC; --- --- 转存表中的数据 `eb_system_config_tab` --- +-- ---------------------------- +-- Records of eb_system_config_tab +-- ---------------------------- -INSERT INTO `eb_system_config_tab` (`id`, `title`, `eng_title`, `status`, `info`, `icon`, `type`) VALUES -(1, '基础配置', 'basics', 1, 0, 'cog', 0), -(2, '公众号配置', 'wechat', 1, 0, 'weixin', 1), -(3, '公众号分享配置', 'wechat_share', 1, 0, 'whatsapp', 1), -(4, '公众号支付配置', 'pay', 1, 0, 'jpy', 1), -(5, '商城配置', 'store', 1, 0, 'shopping-cart', 0), -(7, '小程序配置', 'routine', 1, 0, 'weixin', 2), -(9, '分销配置', 'fenxiao', 1, 0, 'sitemap', 3), -(10, '物流配置', 'express', 1, 0, 'motorcycle', 0), -(11, '积分配置', 'point', 1, 0, 'powerpoint-o', 3), -(12, '优惠券配置', 'coupon', 1, 0, 'heartbeat', 3), -(14, '小程序支付配置', 'routine_pay', 1, 0, 'jpy', 2), -(16, '小程序首页配置', 'routine_index_page', 1, 0, 'home', 2); +INSERT INTO `eb_system_config_tab` VALUES (1,'基础配置','basics',1,0,'cog',0),(2,'公众号配置','wechat',1,0,'weixin',1),(3,'公众号分享配置','wechat_share',1,0,'whatsapp',1),(4,'公众号支付配置','pay',1,0,'jpy',1),(5,'商城配置','store',1,0,'shopping-cart',0),(7,'小程序配置','routine',1,0,'weixin',2),(9,'分销配置','fenxiao',1,0,'sitemap',3),(10,'物流配置','express',1,0,'motorcycle',0),(11,'积分配置','point',1,0,'powerpoint-o',3),(12,'优惠券配置','coupon',1,0,'heartbeat',3),(14,'小程序支付配置','routine_pay',1,0,'jpy',2),(16,'小程序首页配置','routine_index_page',1,0,'home',2),(17,'文件上传配置','upload_set',1,0,'',0); --- -------------------------------------------------------- - --- --- 表的结构 `eb_system_file` --- - -CREATE TABLE IF NOT EXISTS `eb_system_file` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '文件对比ID', - `cthash` char(32) NOT NULL COMMENT '文件内容', - `filename` varchar(255) NOT NULL COMMENT '文价名称', - `atime` char(12) NOT NULL COMMENT '上次访问时间', - `mtime` char(12) NOT NULL COMMENT '上次修改时间', - `ctime` char(12) NOT NULL COMMENT '上次改变时间', +-- ---------------------------- +-- Table structure for eb_system_file +-- ---------------------------- +DROP TABLE IF EXISTS `eb_system_file`; +CREATE TABLE `eb_system_file` ( + `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '文件对比ID', + `cthash` char(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '文件内容', + `filename` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '文价名称', + `atime` char(12) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '上次访问时间', + `mtime` char(12) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '上次修改时间', + `ctime` char(12) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '上次改变时间', PRIMARY KEY (`id`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='文件对比表' AUTO_INCREMENT=1 ; +) ENGINE = InnoDB AUTO_INCREMENT = 2116 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '文件对比表' ROW_FORMAT = DYNAMIC; --- -------------------------------------------------------- - --- --- 表的结构 `eb_system_group` --- - -CREATE TABLE IF NOT EXISTS `eb_system_group` ( +-- ---------------------------- +-- Table structure for eb_system_group +-- ---------------------------- +DROP TABLE IF EXISTS `eb_system_group`; +CREATE TABLE `eb_system_group` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '组合数据ID', - `name` varchar(50) NOT NULL COMMENT '数据组名称', - `info` varchar(256) NOT NULL COMMENT '数据提示', - `config_name` varchar(50) NOT NULL COMMENT '数据字段', - `fields` text COMMENT '数据组字段以及类型(json数据)', + `name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '数据组名称', + `info` varchar(256) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '数据提示', + `config_name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '数据字段', + `fields` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '数据组字段以及类型(json数据)', PRIMARY KEY (`id`) USING BTREE, - UNIQUE KEY `config_name` (`config_name`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='组合数据表' AUTO_INCREMENT=61 ; + UNIQUE INDEX `config_name`(`config_name`) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 61 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '组合数据表' ROW_FORMAT = DYNAMIC; --- --- 转存表中的数据 `eb_system_group` --- +-- ---------------------------- +-- Records of eb_system_group +-- ---------------------------- +INSERT INTO `eb_system_group` VALUES (32,'个人中心菜单','【公众号】','my_index_menu','[{\"name\":\"\\u540d\\u79f0\",\"title\":\"name\",\"type\":\"input\",\"param\":\"\"},{\"name\":\"\\u56fe\\u6807\",\"title\":\"icon\",\"type\":\"upload\",\"param\":\"\"},{\"name\":\"\\u94fe\\u63a5\",\"title\":\"url\",\"type\":\"select\",\"param\":\"\\/wap\\/my\\/integral.html=>\\u6211\\u7684\\u79ef\\u5206\\n\\/wap\\/my\\/coupon.html=>\\u4f18\\u60e0\\u5238\\n\\/wap\\/my\\/collect.html=>\\u6536\\u85cf\\u5217\\u8868\\n\\/wap\\/my\\/address.html=>\\u5730\\u5740\\u7ba1\\u7406\\n\\/wap\\/my\\/balance.html=>\\u6211\\u7684\\u4f59\\u989d\\n\\/wap\\/service\\/service_new.html=>\\u804a\\u5929\\u8bb0\\u5f55\\n\\/wap\\/index\\/about.html=>\\u8054\\u7cfb\\u6211\\u4eec\\n\\/wap\\/my\\/user_pro.html=>\\u63a8\\u5e7f\\u4f63\\u91d1\"},{\"name\":\"\\u6d4b\\u8bd5\",\"title\":\"test\",\"type\":\"uploads\",\"param\":\"\"}]'),(34,'商城首页banner','【公众号】','store_home_banner','[{\"name\":\"\\u6807\\u9898\",\"title\":\"title\",\"type\":\"input\",\"param\":\"\"},{\"name\":\"\\u94fe\\u63a5\",\"title\":\"url\",\"type\":\"input\",\"param\":\"\"},{\"name\":\"\\u56fe\\u7247\",\"title\":\"pic\",\"type\":\"upload\",\"param\":\"\"}]'),(35,'首页分类按钮图标','【公众号】','store_home_menus','[{\"name\":\"\\u540d\\u79f0\",\"title\":\"name\",\"type\":\"input\",\"param\":\"\"},{\"name\":\"\\u94fe\\u63a5\",\"title\":\"url\",\"type\":\"input\",\"param\":\"\"},{\"name\":\"\\u56fe\\u6807\",\"title\":\"icon\",\"type\":\"upload\",\"param\":\"\"}]'),(36,'首页滚动新闻','【公众号】','store_home_roll_news','[{\"name\":\"\\u6eda\\u52a8\\u6587\\u5b57\",\"title\":\"info\",\"type\":\"input\",\"param\":\"\"},{\"name\":\"\\u70b9\\u51fb\\u94fe\\u63a5\",\"title\":\"url\",\"type\":\"input\",\"param\":\"\"}]'),(37,'拼团、秒杀、砍价顶部banner图','小程序','routine_lovely','[{\"name\":\"\\u56fe\\u7247\",\"title\":\"img\",\"type\":\"upload\",\"param\":\"\"},{\"name\":\"\\u63cf\\u8ff0\",\"title\":\"comment\",\"type\":\"input\",\"param\":\"\"}]'),(38,'砍价列表页左上小图标','小程序','bargain_banner','[{\"name\":\"banner\",\"title\":\"banner\",\"type\":\"upload\",\"param\":\"\"}]'),(47,'首页分类图标','小程序','routine_home_menus','[{\"name\":\"\\u5206\\u7c7b\\u540d\\u79f0\",\"title\":\"name\",\"type\":\"input\",\"param\":\"\"},{\"name\":\"\\u5206\\u7c7b\\u56fe\\u6807\",\"title\":\"pic\",\"type\":\"upload\",\"param\":\"\"},{\"name\":\"\\u8df3\\u8f6c\\u8def\\u5f84\",\"title\":\"url\",\"type\":\"select\",\"param\":\"\\/pages\\/index\\/index=>\\u5546\\u57ce\\u9996\\u9875\\n\\/pages\\/user_spread_user\\/index=>\\u4e2a\\u4eba\\u63a8\\u5e7f\\n\\/pages\\/user_sgin\\/index=>\\u6211\\u8981\\u7b7e\\u5230\\n\\/pages\\/user_get_coupon\\/index=>\\u4f18\\u60e0\\u5238\\n\\/pages\\/user\\/user=>\\u4e2a\\u4eba\\u4e2d\\u5fc3\\n\\/pages\\/activity\\/goods_seckill\\/index=>\\u79d2\\u6740\\u5217\\u8868\\n\\/pages\\/activity\\/goods_combination\\/index=>\\u62fc\\u56e2\\u5217\\u8868\\u9875\\n\\/pages\\/activity\\/goods_bargain\\/index=>\\u780d\\u4ef7\\u5217\\u8868\\n\\/pages\\/goods_cate\\/goods_cate=>\\u5206\\u7c7b\\u9875\\u9762\\n\\/pages\\/user_address_list\\/index=>\\u5730\\u5740\\u5217\\u8868\\n\\/pages\\/user_cash\\/index=>\\u63d0\\u73b0\\u9875\\u9762\\n\\/pages\\/promoter-list\\/index=>\\u63a8\\u5e7f\\u7edf\\u8ba1\\n\\/pages\\/user_money\\/index=>\\u8d26\\u6237\\u91d1\\u989d\\n\\/pages\\/user_goods_collection\\/index=>\\u6211\\u7684\\u6536\\u85cf\\n\\/pages\\/promotion-card\\/promotion-card=>\\u63a8\\u5e7f\\u4e8c\\u7ef4\\u7801\\u9875\\u9762\\n\\/pages\\/order_addcart\\/order_addcart=>\\u8d2d\\u7269\\u8f66\\u9875\\u9762\\n\\/pages\\/order_list\\/index=>\\u8ba2\\u5355\\u5217\\u8868\\u9875\\u9762\\n\\/pages\\/news_list\\/index=>\\u6587\\u7ae0\\u5217\\u8868\\u9875\"},{\"name\":\"\\u5e95\\u90e8\\u83dc\\u5355\",\"title\":\"show\",\"type\":\"radio\",\"param\":\"1=>\\u662f\\n2=>\\u5426\"}]'),(48,'首页banner滚动图','小程序','routine_home_banner','[{\"name\":\"\\u6807\\u9898\",\"title\":\"name\",\"type\":\"input\",\"param\":\"\"},{\"name\":\"\\u94fe\\u63a5\",\"title\":\"url\",\"type\":\"input\",\"param\":\"\"},{\"name\":\"\\u56fe\\u7247\",\"title\":\"pic\",\"type\":\"upload\",\"param\":\"\"}]'),(49,'秒杀时间段','小程序','routine_seckill_time','[{\"name\":\"\\u5f00\\u542f\\u65f6\\u95f4(\\u6574\\u6570\\u5c0f\\u65f6)\",\"title\":\"time\",\"type\":\"input\",\"param\":\"\"},{\"name\":\"\\u6301\\u7eed\\u65f6\\u95f4(\\u6574\\u6570\\u5c0f\\u65f6)\",\"title\":\"continued\",\"type\":\"input\",\"param\":\"\"}]'),(50,'首页滚动新闻','小程序','routine_home_roll_news','[{\"name\":\"\\u6eda\\u52a8\\u6587\\u5b57\",\"title\":\"info\",\"type\":\"input\",\"param\":\"\"},{\"name\":\"\\u8df3\\u8f6c\\u8def\\u5f84\",\"title\":\"url\",\"type\":\"select\",\"param\":\"\\/pages\\/index\\/index=>\\u5546\\u57ce\\u9996\\u9875\\n\\/pages\\/user_spread_user\\/index=>\\u4e2a\\u4eba\\u63a8\\u5e7f\\n\\/pages\\/user_sgin\\/index=>\\u6211\\u8981\\u7b7e\\u5230\\n\\/pages\\/user_get_coupon\\/index=>\\u4f18\\u60e0\\u5238\\n\\/pages\\/user\\/user=>\\u4e2a\\u4eba\\u4e2d\\u5fc3\\n\\/pages\\/activity\\/goods_seckill\\/index=>\\u79d2\\u6740\\u5217\\u8868\\n\\/pages\\/activity\\/goods_combination\\/index=>\\u62fc\\u56e2\\u5217\\u8868\\u9875\\n\\/pages\\/activity\\/goods_bargain\\/index=>\\u780d\\u4ef7\\u5217\\u8868\\n\\/pages\\/goods_cate\\/goods_cate=>\\u5206\\u7c7b\\u9875\\u9762\\n\\/pages\\/user_address_list\\/index=>\\u5730\\u5740\\u5217\\u8868\\n\\/pages\\/user_cash\\/index=>\\u63d0\\u73b0\\u9875\\u9762\\n\\/pages\\/promoter-list\\/index=>\\u63a8\\u5e7f\\u7edf\\u8ba1\\n\\/pages\\/user_money\\/index=>\\u8d26\\u6237\\u91d1\\u989d\\n\\/pages\\/user_goods_collection\\/index=>\\u6211\\u7684\\u6536\\u85cf\\n\\/pages\\/promotion-card\\/promotion-card=>\\u63a8\\u5e7f\\u4e8c\\u7ef4\\u7801\\u9875\\u9762\\n\\/pages\\/order_addcart\\/order_addcart=>\\u8d2d\\u7269\\u8f66\\u9875\\u9762\\n\\/pages\\/order_list\\/index=>\\u8ba2\\u5355\\u5217\\u8868\\u9875\\u9762\\n\\/pages\\/news_list\\/index=>\\u6587\\u7ae0\\u5217\\u8868\\u9875\"},{\"name\":\"\\u5e95\\u90e8\\u83dc\\u5355\",\"title\":\"show\",\"type\":\"radio\",\"param\":\"1=>\\u662f\\n2=>\\u5426\"}]'),(51,'首页活动区域图片','小程序','routine_home_activity','[{\"name\":\"\\u56fe\\u7247\",\"title\":\"pic\",\"type\":\"upload\",\"param\":\"\"},{\"name\":\"\\u6807\\u9898\",\"title\":\"title\",\"type\":\"input\",\"param\":\"\"},{\"name\":\"\\u7b80\\u4ecb\",\"title\":\"info\",\"type\":\"input\",\"param\":\"\"},{\"name\":\"\\u94fe\\u63a5\",\"title\":\"link\",\"type\":\"select\",\"param\":\"\\/pages\\/activity\\/goods_seckill\\/index=>\\u79d2\\u6740\\u5217\\u8868\\n\\/pages\\/activity\\/goods_bargain\\/index=>\\u780d\\u4ef7\\u5217\\u8868\\n\\/pages\\/activity\\/goods_combination\\/index=>\\u62fc\\u56e2\\u5217\\u8868\"}]'),(52,'首页精品推荐benner图','小程序','routine_home_bast_banner','[{\"name\":\"\\u56fe\\u7247\",\"title\":\"img\",\"type\":\"upload\",\"param\":\"\"},{\"name\":\"\\u63cf\\u8ff0\",\"title\":\"comment\",\"type\":\"input\",\"param\":\"\"},{\"name\":\"\\u94fe\\u63a5\",\"title\":\"link\",\"type\":\"input\",\"param\":\"\"}]'),(53,'订单详情状态图','订单详情状态图','order_details_images','[{\"name\":\"\\u8ba2\\u5355\\u72b6\\u6001\",\"title\":\"order_status\",\"type\":\"select\",\"param\":\"0=>\\u672a\\u652f\\u4ed8\\n1=>\\u5f85\\u53d1\\u8d27\\n2=>\\u5f85\\u6536\\u8d27\\n3=>\\u5f85\\u8bc4\\u4ef7\\n4=>\\u5df2\\u5b8c\\u6210\"},{\"name\":\"\\u56fe\\u6807\",\"title\":\"pic\",\"type\":\"upload\",\"param\":\"\"}]'),(54,'个人中心菜单','个人中心菜单','routine_my_menus','[{\"name\":\"\\u83dc\\u5355\\u540d\",\"title\":\"name\",\"type\":\"input\",\"param\":\"\"},{\"name\":\"\\u56fe\\u6807\",\"title\":\"pic\",\"type\":\"upload\",\"param\":\"\"},{\"name\":\"\\u8df3\\u8f6c\\u8def\\u5f84\",\"title\":\"url\",\"type\":\"select\",\"param\":\"\\/pages\\/user_address_list\\/index=>\\u5730\\u5740\\u7ba1\\u7406\\n\\/pages\\/user_vip\\/index=>\\u4f1a\\u5458\\u4e2d\\u5fc3\\n\\/pages\\/activity\\/user_goods_bargain_list\\/index=>\\u780d\\u4ef7\\u8bb0\\u5f55\\n\\/pages\\/user_spread_user\\/index=>\\u63a8\\u5e7f\\u4e2d\\u5fc3\\n\\/pages\\/user_money\\/index=>\\u6211\\u7684\\u4f59\\u989d\\n\\/pages\\/user_goods_collection\\/index=>\\u6211\\u7684\\u6536\\u85cf\\n\\/pages\\/user_coupon\\/index=>\\u4f18\\u60e0\\u5238\"}]'),(55,'签到天数配置','签到天数配置','sign_day_num','[{\"name\":\"\\u7b2c\\u51e0\\u5929\",\"title\":\"day\",\"type\":\"input\",\"param\":\"\"},{\"name\":\"\\u83b7\\u53d6\\u79ef\\u5206\",\"title\":\"sign_num\",\"type\":\"input\",\"param\":\"\"}]'),(56,'热门搜索','小程序','routine_hot_search','[{\"name\":\"\\u6807\\u7b7e\",\"title\":\"title\",\"type\":\"input\",\"param\":\"\"}]'),(57,'热门榜单推荐图片','小程序','routine_home_hot_banner','[{\"name\":\"\\u56fe\\u7247\",\"title\":\"img\",\"type\":\"upload\",\"param\":\"\"},{\"name\":\"\\u63cf\\u8ff0\",\"title\":\"comment\",\"type\":\"input\",\"param\":\"\"}]'),(58,'首发新品推荐图片','小程序','routine_home_new_banner','[{\"name\":\"\\u56fe\\u7247\",\"title\":\"img\",\"type\":\"upload\",\"param\":\"\"},{\"name\":\"\\u63cf\\u8ff0\",\"title\":\"comment\",\"type\":\"input\",\"param\":\"\"},{\"name\":\"\\u94fe\\u63a5\",\"title\":\"link\",\"type\":\"input\",\"param\":\"\"}]'),(59,'促销单品推荐图片','小程序','routine_home_benefit_banner','[{\"name\":\"\\u56fe\\u7247\",\"title\":\"img\",\"type\":\"upload\",\"param\":\"\"},{\"name\":\"\\u63cf\\u8ff0\",\"title\":\"comment\",\"type\":\"input\",\"param\":\"\"},{\"name\":\"\\u94fe\\u63a5\",\"title\":\"link\",\"type\":\"input\",\"param\":\"\"}]'),(60,'分享海报','小程序','routine_spread_banner','[{\"name\":\"\\u540d\\u79f0\",\"title\":\"title\",\"type\":\"input\",\"param\":\"\"},{\"name\":\"\\u80cc\\u666f\\u56fe\",\"title\":\"pic\",\"type\":\"upload\",\"param\":\"\"}]'); -INSERT INTO `eb_system_group` (`id`, `name`, `info`, `config_name`, `fields`) VALUES -(32, '个人中心菜单', '【公众号】', 'my_index_menu', '[{"name":"\\u540d\\u79f0","title":"name","type":"input","param":""},{"name":"\\u56fe\\u6807","title":"icon","type":"upload","param":""},{"name":"\\u94fe\\u63a5","title":"url","type":"select","param":"\\/wap\\/my\\/integral.html=>\\u6211\\u7684\\u79ef\\u5206\\n\\/wap\\/my\\/coupon.html=>\\u4f18\\u60e0\\u5238\\n\\/wap\\/my\\/collect.html=>\\u6536\\u85cf\\u5217\\u8868\\n\\/wap\\/my\\/address.html=>\\u5730\\u5740\\u7ba1\\u7406\\n\\/wap\\/my\\/balance.html=>\\u6211\\u7684\\u4f59\\u989d\\n\\/wap\\/service\\/service_new.html=>\\u804a\\u5929\\u8bb0\\u5f55\\n\\/wap\\/index\\/about.html=>\\u8054\\u7cfb\\u6211\\u4eec\\n\\/wap\\/my\\/user_pro.html=>\\u63a8\\u5e7f\\u4f63\\u91d1"},{"name":"\\u6d4b\\u8bd5","title":"test","type":"uploads","param":""}]'), -(34, '商城首页banner', '【公众号】', 'store_home_banner', '[{"name":"\\u6807\\u9898","title":"title","type":"input","param":""},{"name":"\\u94fe\\u63a5","title":"url","type":"input","param":""},{"name":"\\u56fe\\u7247","title":"pic","type":"upload","param":""}]'), -(35, '首页分类按钮图标', '【公众号】', 'store_home_menus', '[{"name":"\\u540d\\u79f0","title":"name","type":"input","param":""},{"name":"\\u94fe\\u63a5","title":"url","type":"input","param":""},{"name":"\\u56fe\\u6807","title":"icon","type":"upload","param":""}]'), -(36, '首页滚动新闻', '【公众号】', 'store_home_roll_news', '[{"name":"\\u6eda\\u52a8\\u6587\\u5b57","title":"info","type":"input","param":""},{"name":"\\u70b9\\u51fb\\u94fe\\u63a5","title":"url","type":"input","param":""}]'), -(37, '拼团、秒杀、砍价顶部banner图', '小程序', 'routine_lovely', '[{"name":"\\u56fe\\u7247","title":"img","type":"upload","param":""},{"name":"\\u63cf\\u8ff0","title":"comment","type":"input","param":""}]'), -(38, '砍价列表页左上小图标', '小程序', 'bargain_banner', '[{"name":"banner","title":"banner","type":"upload","param":""}]'), -(47, '首页分类图标', '小程序', 'routine_home_menus', '[{"name":"\\u5206\\u7c7b\\u540d\\u79f0","title":"name","type":"input","param":""},{"name":"\\u5206\\u7c7b\\u56fe\\u6807","title":"pic","type":"upload","param":""},{"name":"\\u8df3\\u8f6c\\u8def\\u5f84","title":"url","type":"select","param":"\\/pages\\/index\\/index=>\\u5546\\u57ce\\u9996\\u9875\\n\\/pages\\/user_spread_user\\/index=>\\u4e2a\\u4eba\\u63a8\\u5e7f\\n\\/pages\\/user_sgin\\/index=>\\u6211\\u8981\\u7b7e\\u5230\\n\\/pages\\/user_get_coupon\\/index=>\\u4f18\\u60e0\\u5238\\n\\/pages\\/user\\/user=>\\u4e2a\\u4eba\\u4e2d\\u5fc3\\n\\/pages\\/activity\\/goods_seckill\\/index=>\\u79d2\\u6740\\u5217\\u8868\\n\\/pages\\/activity\\/goods_combination\\/index=>\\u62fc\\u56e2\\u5217\\u8868\\u9875\\n\\/pages\\/activity\\/goods_bargain\\/index=>\\u780d\\u4ef7\\u5217\\u8868\\n\\/pages\\/goods_cate\\/goods_cate=>\\u5206\\u7c7b\\u9875\\u9762\\n\\/pages\\/user_address_list\\/index=>\\u5730\\u5740\\u5217\\u8868\\n\\/pages\\/cash\\/cash=>\\u63d0\\u73b0\\u9875\\u9762\\n\\/pages\\/extension\\/extension=>\\u63a8\\u5e7f\\u7edf\\u8ba1\\n\\/pages\\/main\\/main=>\\u8d26\\u6237\\u91d1\\u989d\\n\\/pages\\/user_goods_collection\\/index=>\\u6211\\u7684\\u6536\\u85cf\\n\\/pages\\/promotion-card\\/promotion-card=>\\u63a8\\u5e7f\\u4e8c\\u7ef4\\u7801\\u9875\\u9762\\n\\/pages\\/order_addcart\\/order_addcart=>\\u8d2d\\u7269\\u8f66\\u9875\\u9762\\n\\/pages\\/order_list\\/index=>\\u8ba2\\u5355\\u5217\\u8868\\u9875\\u9762\\n\\/pages\\/news_list\\/index=>\\u6587\\u7ae0\\u5217\\u8868\\u9875"},{"name":"\\u5e95\\u90e8\\u83dc\\u5355","title":"show","type":"radio","param":"1=>\\u662f\\n2=>\\u5426"}]'), -(48, '首页banner滚动图', '小程序', 'routine_home_banner', '[{"name":"\\u6807\\u9898","title":"name","type":"input","param":""},{"name":"\\u94fe\\u63a5","title":"url","type":"input","param":""},{"name":"\\u56fe\\u7247","title":"pic","type":"upload","param":""}]'), -(49, '秒杀时间段', '小程序', 'routine_seckill_time', '[{"name":"\\u5f00\\u542f\\u65f6\\u95f4(\\u6574\\u6570\\u5c0f\\u65f6)","title":"time","type":"input","param":""},{"name":"\\u6301\\u7eed\\u65f6\\u95f4(\\u6574\\u6570\\u5c0f\\u65f6)","title":"continued","type":"input","param":""}]'), -(50, '首页滚动新闻', '小程序', 'routine_home_roll_news', '[{"name":"\\u6eda\\u52a8\\u6587\\u5b57","title":"info","type":"input","param":""},{"name":"\\u8df3\\u8f6c\\u8def\\u5f84","title":"url","type":"select","param":"\\/pages\\/index\\/index=>\\u5546\\u57ce\\u9996\\u9875\\n\\/pages\\/spread\\/spread=>\\u4e2a\\u4eba\\u63a8\\u5e7f\\n\\/pages\\/coupon-status\\/coupon-status=>\\u4f18\\u60e0\\u5238\\n\\/pages\\/user\\/user=>\\u4e2a\\u4eba\\u4e2d\\u5fc3\\n\\/pages\\/miao-list\\/miao-list=>\\u79d2\\u6740\\u5217\\u8868\\n\\/pages\\/pink-list\\/index=>\\u62fc\\u56e2\\u5217\\u8868\\u9875\\n\\/pages\\/cut-list\\/cut-list?id=123=>\\u780d\\u4ef7\\u5217\\u8868\\n\\/pages\\/productSort\\/productSort=>\\u5206\\u7c7b\\u9875\\u9762\\n\\/pages\\/address\\/address=>\\u5730\\u5740\\u5217\\u8868\\n\\/pages\\/cash\\/cash=>\\u63d0\\u73b0\\u9875\\u9762\\n\\/pages\\/extension\\/extension=>\\u63a8\\u5e7f\\u7edf\\u8ba1\\n\\/pages\\/main\\/main=>\\u8d26\\u6237\\u91d1\\u989d\\n\\/pages\\/collect\\/collect=>\\u6211\\u7684\\u6536\\u85cf\\n\\/pages\\/promotion-card\\/promotion-card=>\\u63a8\\u5e7f\\u4e8c\\u7ef4\\u7801\\u9875\\u9762\\n\\/pages\\/buycar\\/buycar=>\\u8d2d\\u7269\\u8f66\\u9875\\u9762\\n\\/pages\\/news-list\\/news-list=>\\u6d88\\u606f\\u5217\\u8868\\u9875\\n\\/pages\\/orders-list\\/orders-list=>\\u8ba2\\u5355\\u5217\\u8868\\u9875\\u9762\\n\\/pages\\/new-list\\/new-list=>\\u6587\\u7ae0\\u5217\\u8868\\u9875"},{"name":"\\u5e95\\u90e8\\u83dc\\u5355","title":"show","type":"radio","param":"1=>\\u662f\\n0=>\\u5426"}]'), -(51, '首页活动区域图片', '小程序', 'routine_home_activity', '[{"name":"\\u56fe\\u7247","title":"pic","type":"upload","param":""},{"name":"\\u6807\\u9898","title":"title","type":"input","param":""},{"name":"\\u7b80\\u4ecb","title":"info","type":"input","param":""},{"name":"\\u94fe\\u63a5","title":"link","type":"select","param":"\\/pages\\/activity\\/goods_seckill\\/index=>\\u79d2\\u6740\\u5217\\u8868\\n\\/pages\\/activity\\/goods_bargain\\/index=>\\u780d\\u4ef7\\u5217\\u8868\\n\\/pages\\/activity\\/goods_combination\\/index=>\\u62fc\\u56e2\\u5217\\u8868"}]'), -(52, '首页精品推荐benner图', '小程序', 'routine_home_bast_banner', '[{"name":"\\u56fe\\u7247","title":"img","type":"upload","param":""},{"name":"\\u63cf\\u8ff0","title":"comment","type":"input","param":""},{"name":"\\u94fe\\u63a5","title":"link","type":"input","param":""}]'), -(53, '订单详情状态图', '订单详情状态图', 'order_details_images', '[{"name":"\\u8ba2\\u5355\\u72b6\\u6001","title":"order_status","type":"select","param":"0=>\\u672a\\u652f\\u4ed8\\n1=>\\u5f85\\u53d1\\u8d27\\n2=>\\u5f85\\u6536\\u8d27\\n3=>\\u5f85\\u8bc4\\u4ef7\\n4=>\\u5df2\\u5b8c\\u6210"},{"name":"\\u56fe\\u6807","title":"pic","type":"upload","param":""}]'), -(54, '个人中心菜单', '个人中心菜单', 'routine_my_menus', '[{"name":"\\u83dc\\u5355\\u540d","title":"name","type":"input","param":""},{"name":"\\u56fe\\u6807","title":"pic","type":"upload","param":""},{"name":"\\u8df3\\u8f6c\\u8def\\u5f84","title":"url","type":"select","param":"\\/pages\\/user_address_list\\/index=>\\u5730\\u5740\\u7ba1\\u7406\\n\\/pages\\/user_vip\\/index=>\\u4f1a\\u5458\\u4e2d\\u5fc3\\n\\/pages\\/activity\\/user_goods_bargain_list\\/index=>\\u780d\\u4ef7\\u8bb0\\u5f55\\n\\/pages\\/user_spread_user\\/index=>\\u63a8\\u5e7f\\u4e2d\\u5fc3\\n\\/pages\\/user_money\\/index=>\\u6211\\u7684\\u4f59\\u989d\\n\\/pages\\/user_goods_collection\\/index=>\\u6211\\u7684\\u6536\\u85cf\\n\\/pages\\/user_coupon\\/index=>\\u4f18\\u60e0\\u5238"}]'), -(55, '签到天数配置', '签到天数配置', 'sign_day_num', '[{"name":"\\u7b2c\\u51e0\\u5929","title":"day","type":"input","param":""},{"name":"\\u83b7\\u53d6\\u79ef\\u5206","title":"sign_num","type":"input","param":""}]'), -(56, '热门搜索', '小程序', 'routine_hot_search', '[{"name":"\\u6807\\u7b7e","title":"title","type":"input","param":""}]'), -(57, '热门榜单推荐图片', '小程序', 'routine_home_hot_banner', '[{"name":"\\u56fe\\u7247","title":"img","type":"upload","param":""},{"name":"\\u63cf\\u8ff0","title":"comment","type":"input","param":""}]'), -(58, '首发新品推荐图片', '小程序', 'routine_home_new_banner', '[{"name":"\\u56fe\\u7247","title":"img","type":"upload","param":""},{"name":"\\u63cf\\u8ff0","title":"comment","type":"input","param":""},{"name":"\\u94fe\\u63a5","title":"link","type":"input","param":""}]'), -(59, '促销单品推荐图片', '小程序', 'routine_home_benefit_banner', '[{"name":"\\u56fe\\u7247","title":"img","type":"upload","param":""},{"name":"\\u63cf\\u8ff0","title":"comment","type":"input","param":""},{"name":"\\u94fe\\u63a5","title":"link","type":"input","param":""}]'), -(60, '分享海报', '小程序', 'routine_spread_banner', '[{"name":"\\u540d\\u79f0","title":"title","type":"input","param":""},{"name":"\\u80cc\\u666f\\u56fe","title":"pic","type":"upload","param":""}]'); - --- -------------------------------------------------------- - --- --- 表的结构 `eb_system_group_data` --- - -CREATE TABLE IF NOT EXISTS `eb_system_group_data` ( +-- ---------------------------- +-- Table structure for eb_system_group_data +-- ---------------------------- +DROP TABLE IF EXISTS `eb_system_group_data`; +CREATE TABLE `eb_system_group_data` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '组合数据详情ID', `gid` int(11) NOT NULL COMMENT '对应的数据组id', - `value` text NOT NULL COMMENT '数据组对应的数据值(json数据)', + `value` text CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '数据组对应的数据值(json数据)', `add_time` int(10) NOT NULL COMMENT '添加数据时间', `sort` int(11) NOT NULL COMMENT '数据排序', - `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '状态(1:开启;2:关闭;)', + `status` tinyint(1) NOT NULL DEFAULT 1 COMMENT '状态(1:开启;2:关闭;)', PRIMARY KEY (`id`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='组合数据详情表' AUTO_INCREMENT=169 ; +) ENGINE = InnoDB AUTO_INCREMENT = 169 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '组合数据详情表' ROW_FORMAT = DYNAMIC; --- --- 转存表中的数据 `eb_system_group_data` --- +-- ---------------------------- +-- Records of eb_system_group_data +-- ---------------------------- +INSERT INTO `eb_system_group_data` VALUES (52, 32, '{\"name\":{\"type\":\"input\",\"value\":\"\\u6211\\u7684\\u79ef\\u5206\"},\"icon\":{\"type\":\"upload\",\"value\":\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dc7ee98a2e.png\"},\"url\":{\"type\":\"select\",\"value\":\"\\/wap\\/my\\/integral.html\"}}', 1513846430, 1, 1); +INSERT INTO `eb_system_group_data` VALUES (53, 32, '{\"name\":{\"type\":\"input\",\"value\":\"\\u4f18\\u60e0\\u5238\"},\"icon\":{\"type\":\"upload\",\"value\":\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dc802814e5.png\"},\"url\":{\"type\":\"select\",\"value\":\"\\/wap\\/my\\/coupon.html\"}}', 1513846448, 1, 1); +INSERT INTO `eb_system_group_data` VALUES (56, 32, '{\"name\":{\"type\":\"input\",\"value\":\"\\u5df2\\u6536\\u85cf\\u5546\\u54c1\"},\"icon\":{\"type\":\"upload\",\"value\":\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dc91cee6ed.png\"},\"url\":{\"type\":\"select\",\"value\":\"\\/wap\\/my\\/collect.html\"}}', 1513846605, 1, 1); +INSERT INTO `eb_system_group_data` VALUES (57, 32, '{\"name\":{\"type\":\"input\",\"value\":\"\\u5730\\u5740\\u7ba1\\u7406\"},\"icon\":{\"type\":\"upload\",\"value\":\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dc93937a48.png\"},\"url\":{\"type\":\"select\",\"value\":\"\\/wap\\/my\\/address.html\"}}', 1513846618, 1, 1); +INSERT INTO `eb_system_group_data` VALUES (67, 32, '{\"name\":{\"type\":\"input\",\"value\":\"\\u804a\\u5929\\u8bb0\\u5f55\"},\"icon\":{\"type\":\"upload\",\"value\":\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dc8a7205f0.png\"},\"url\":{\"type\":\"select\",\"value\":\"\\/wap\\/service\\/service_new.html\"}}', 1515570261, 1, 1); +INSERT INTO `eb_system_group_data` VALUES (72, 35, '{\"name\":{\"type\":\"input\",\"value\":\"\\u780d\\u4ef7\"},\"url\":{\"type\":\"input\",\"value\":\"\\/wap\\/store\\/cut_list.html\"},\"icon\":{\"type\":\"upload\",\"value\":\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dc72335ee5.png\"}}', 1515985426, 1, 1); +INSERT INTO `eb_system_group_data` VALUES (73, 35, '{\"name\":{\"type\":\"input\",\"value\":\"\\u9886\\u5238\"},\"url\":{\"type\":\"input\",\"value\":\"\\/wap\\/store\\/issue_coupon.html\"},\"icon\":{\"type\":\"upload\",\"value\":\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dc7146add5.png\"}}', 1515985435, 1, 1); +INSERT INTO `eb_system_group_data` VALUES (74, 35, '{\"name\":{\"type\":\"input\",\"value\":\"\\u62fc\\u56e2\"},\"url\":{\"type\":\"input\",\"value\":\"\\/wap\\/store\\/combination.html\"},\"icon\":{\"type\":\"upload\",\"value\":\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dc73feecaf.png\"}}', 1515985441, 1, 1); +INSERT INTO `eb_system_group_data` VALUES (80, 36, '{\"info\":{\"type\":\"input\",\"value\":\"CRMEB\\u7535\\u5546\\u7cfb\\u7edf V 2.6 \\u5373\\u5c06\\u4e0a\\u7ebf\\uff01\"},\"url\":{\"type\":\"input\",\"value\":\"#\"}}', 1515985907, 1, 1); +INSERT INTO `eb_system_group_data` VALUES (81, 36, '{\"info\":{\"type\":\"input\",\"value\":\"CRMEB\\u5546\\u57ce V 2.6 \\u5c0f\\u7a0b\\u5e8f\\u516c\\u4f17\\u53f7\\u6570\\u636e\\u540c\\u6b65\\uff01\"},\"url\":{\"type\":\"input\",\"value\":\"#\"}}', 1515985918, 1, 1); +INSERT INTO `eb_system_group_data` VALUES (84, 34, '{\"title\":{\"type\":\"input\",\"value\":\"banner1\"},\"url\":{\"type\":\"input\",\"value\":\"#\"},\"pic\":{\"type\":\"upload\",\"value\":\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3db14908923.jpg\"}}', 1522135667, 2, 1); +INSERT INTO `eb_system_group_data` VALUES (86, 32, '{\"name\":{\"type\":\"input\",\"value\":\"\\u8054\\u7cfb\\u5ba2\\u670d\"},\"icon\":{\"type\":\"upload\",\"value\":\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dc84ef1070.png\"},\"url\":{\"type\":\"select\",\"value\":\"\\/wap\\/index\\/about.html\"}}', 1522310836, 1, 1); +INSERT INTO `eb_system_group_data` VALUES (87, 32, '{\"name\":{\"type\":\"input\",\"value\":\"\\u6211\\u7684\\u4f59\\u989d\"},\"icon\":{\"type\":\"upload\",\"value\":\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dc865bb257.png\"},\"url\":{\"type\":\"select\",\"value\":\"\\/wap\\/my\\/balance.html\"}}', 1525330614, 1, 1); +INSERT INTO `eb_system_group_data` VALUES (89, 38, '{\"banner\":{\"type\":\"upload\",\"value\":\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dc730dead2.png\"}}', 1527153599, 1, 1); +INSERT INTO `eb_system_group_data` VALUES (91, 37, '{\"img\":{\"type\":\"upload\",\"value\":\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/04\\/13\\/5cb18df0dfba7.jpg\"},\"comment\":{\"type\":\"input\",\"value\":\"\\u79d2\\u6740\\u5217\\u8868\\u9876\\u90e8baaner\"}}', 1528688012, 1, 1); +INSERT INTO `eb_system_group_data` VALUES (92, 32, '{\"name\":{\"type\":\"input\",\"value\":\"\\u63a8\\u5e7f\\u4f63\\u91d1\"},\"icon\":{\"type\":\"upload\",\"value\":\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dc95a1d134.png\"},\"url\":{\"type\":\"select\",\"value\":\"\\/wap\\/my\\/user_pro.html\"}}', 1530688244, 1, 1); +INSERT INTO `eb_system_group_data` VALUES (99, 47, '{\"name\":{\"type\":\"input\",\"value\":\"\\u5546\\u54c1\\u5206\\u7c7b\"},\"pic\":{\"type\":\"upload\",\"value\":\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/03\\/29\\/5c9ddc9f34bfd.png\"},\"url\":{\"type\":\"select\",\"value\":\"\\/pages\\/goods_cate\\/goods_cate\"},\"show\":{\"type\":\"radio\",\"value\":\"1\"}}', 1533721963, 8, 1); +INSERT INTO `eb_system_group_data` VALUES (100, 47, '{\"name\":{\"type\":\"input\",\"value\":\"\\u9886\\u4f18\\u60e0\\u5238\"},\"pic\":{\"type\":\"upload\",\"value\":\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/03\\/29\\/5c9ddccecb7f3.png\"},\"url\":{\"type\":\"select\",\"value\":\"\\/pages\\/user_get_coupon\\/index\"},\"show\":{\"type\":\"radio\",\"value\":\"2\"}}', 1533722009, 7, 1); +INSERT INTO `eb_system_group_data` VALUES (101, 47, '{\"name\":{\"type\":\"input\",\"value\":\"\\u884c\\u4e1a\\u8d44\\u8baf\"},\"pic\":{\"type\":\"upload\",\"value\":\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/03\\/29\\/5c9ddcec57a80.png\"},\"url\":{\"type\":\"select\",\"value\":\"\\/pages\\/news_list\\/index\"},\"show\":{\"type\":\"radio\",\"value\":\"2\"}}', 1533722037, 6, 1); +INSERT INTO `eb_system_group_data` VALUES (102, 47, '{\"name\":{\"type\":\"input\",\"value\":\"\\u6211\\u8981\\u7b7e\\u5230\"},\"pic\":{\"type\":\"upload\",\"value\":\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/03\\/29\\/5c9ddd570b8b3.png\"},\"url\":{\"type\":\"select\",\"value\":\"\\/pages\\/user_sgin\\/index\"},\"show\":{\"type\":\"radio\",\"value\":\"2\"}}', 1533722063, 5, 1); +INSERT INTO `eb_system_group_data` VALUES (104, 48, '{\"name\":{\"type\":\"input\",\"value\":\"banenr2\"},\"url\":{\"type\":\"input\",\"value\":\"\\/pages\\/pink-list\\/index?id=2\"},\"pic\":{\"type\":\"upload\",\"value\":\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/03\\/29\\/5c9e015bdc6f5.jpg\"}}', 1533722286, 10, 1); +INSERT INTO `eb_system_group_data` VALUES (105, 47, '{\"name\":{\"type\":\"input\",\"value\":\"\\u6211\\u7684\\u6536\\u85cf\"},\"pic\":{\"type\":\"upload\",\"value\":\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/03\\/29\\/5c9dddce0eac9.png\"},\"url\":{\"type\":\"select\",\"value\":\"\\/pages\\/user_goods_collection\\/index\"},\"show\":{\"type\":\"radio\",\"value\":\"2\"}}', 1533797064, 5, 1); +INSERT INTO `eb_system_group_data` VALUES (106, 32, '{\"name\":{\"type\":\"input\",\"value\":\"\\u6211\\u7684\\u780d\\u4ef7\"},\"icon\":{\"type\":\"upload\",\"value\":\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dc97a19134.png\"},\"url\":{\"type\":\"select\",\"value\":\"\\/wap\\/my\\/user_cut.html\"}}', 1533889033, 1, 1); +INSERT INTO `eb_system_group_data` VALUES (108, 35, '{\"name\":{\"type\":\"input\",\"value\":\"\\u79d2\\u6740\"},\"url\":{\"type\":\"input\",\"value\":\"\\/wap\\/store\\/seckill_index.html\"},\"icon\":{\"type\":\"upload\",\"value\":\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dc730dead2.png\"}}', 1541054595, 1, 1); +INSERT INTO `eb_system_group_data` VALUES (109, 35, '{\"name\":{\"type\":\"input\",\"value\":\"\\u7b7e\\u5230\"},\"url\":{\"type\":\"input\",\"value\":\"\\/wap\\/my\\/sign_in.html\"},\"icon\":{\"type\":\"upload\",\"value\":\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dc74c1bd3f.png\"}}', 1541054641, 1, 1); +INSERT INTO `eb_system_group_data` VALUES (113, 49, '{\"time\":{\"type\":\"input\",\"value\":\"5\"},\"continued\":{\"type\":\"input\",\"value\":\"2\"}}', 1552443280, 1, 1); +INSERT INTO `eb_system_group_data` VALUES (114, 49, '{\"time\":{\"type\":\"input\",\"value\":\"7\"},\"continued\":{\"type\":\"input\",\"value\":\"3\"}}', 1552443293, 1, 1); +INSERT INTO `eb_system_group_data` VALUES (115, 49, '{\"time\":{\"type\":\"input\",\"value\":\"10\"},\"continued\":{\"type\":\"input\",\"value\":\"2\"}}', 1552443304, 1, 1); +INSERT INTO `eb_system_group_data` VALUES (116, 49, '{\"time\":{\"type\":\"input\",\"value\":\"12\"},\"continued\":{\"type\":\"input\",\"value\":\"2\"}}', 1552481140, 1, 1); +INSERT INTO `eb_system_group_data` VALUES (117, 49, '{\"time\":{\"type\":\"input\",\"value\":\"14\"},\"continued\":{\"type\":\"input\",\"value\":\"2\"}}', 1552481146, 1, 1); +INSERT INTO `eb_system_group_data` VALUES (118, 49, '{\"time\":{\"type\":\"input\",\"value\":\"16\"},\"continued\":{\"type\":\"input\",\"value\":\"2\"}}', 1552481151, 1, 1); +INSERT INTO `eb_system_group_data` VALUES (119, 49, '{\"time\":{\"type\":\"input\",\"value\":\"18\"},\"continued\":{\"type\":\"input\",\"value\":\"2\"}}', 1552481157, 1, 1); +INSERT INTO `eb_system_group_data` VALUES (120, 49, '{\"time\":{\"type\":\"input\",\"value\":\"20\"},\"continued\":{\"type\":\"input\",\"value\":\"9\"}}', 1552481163, 1, 1); +INSERT INTO `eb_system_group_data` VALUES (121, 50, '{\"info\":{\"type\":\"input\",\"value\":\"CRMEB\\u7535\\u5546\\u7cfb\\u7edf V 2.6 \\u5373\\u5c06\\u4e0a\\u7ebf\\uff01\"},\"url\":{\"type\":\"select\",\"value\":\"\\/pages\\/index\\/index\"},\"show\":{\"type\":\"radio\",\"value\":\"\\u662f\"}}', 1552611989, 1, 1); +INSERT INTO `eb_system_group_data` VALUES (122, 50, '{\"info\":{\"type\":\"input\",\"value\":\"CRMEB\\u7535\\u5546\\u7cfb\\u7edf V 2.6 \\u5373\\u5c06\\u4e0a\\u7ebf\\uff01\"},\"url\":{\"type\":\"select\",\"value\":\"\\/pages\\/miao-list\\/miao-list\"},\"show\":{\"type\":\"radio\",\"value\":\"\\u5426\"}}', 1552612003, 1, 1); +INSERT INTO `eb_system_group_data` VALUES (123, 50, '{\"info\":{\"type\":\"input\",\"value\":\"CRMEB\\u7535\\u5546\\u7cfb\\u7edf V 2.6 \\u5373\\u5c06\\u4e0a\\u7ebf\\uff01\"},\"url\":{\"type\":\"select\",\"value\":\"\\/pages\\/index\\/index\"},\"show\":{\"type\":\"radio\",\"value\":\"\\u662f\"}}', 1552613047, 1, 1); +INSERT INTO `eb_system_group_data` VALUES (124, 51, '{\"pic\":{\"type\":\"upload\",\"value\":\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/03\\/28\\/5c9ccf7e9f4d0.jpg\"},\"title\":{\"type\":\"input\",\"value\":\"\\u4e00\\u8d77\\u6765\\u62fc\\u56e2\"},\"info\":{\"type\":\"input\",\"value\":\"\\u4f18\\u60e0\\u591a\\u591a\"},\"link\":{\"type\":\"select\",\"value\":\"\\/pages\\/activity\\/goods_combination\\/index\"}}', 1552620002, 3, 1); +INSERT INTO `eb_system_group_data` VALUES (125, 51, '{\"pic\":{\"type\":\"upload\",\"value\":\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/03\\/28\\/5c9ccf7e97660.jpg\"},\"title\":{\"type\":\"input\",\"value\":\"\\u79d2\\u6740\\u4e13\\u533a\"},\"info\":{\"type\":\"input\",\"value\":\"\\u65b0\\u80fd\\u6e90\\u6c7d\\u8f66\\u706b\\u70ed\\u9500\\u552e\"},\"link\":{\"type\":\"select\",\"value\":\"\\/pages\\/activity\\/goods_seckill\\/index\"}}', 1552620022, 2, 1); +INSERT INTO `eb_system_group_data` VALUES (126, 51, '{\"pic\":{\"type\":\"upload\",\"value\":\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/03\\/28\\/5c9ccfc86a6c1.jpg\"},\"title\":{\"type\":\"input\",\"value\":\"\\u780d\\u4ef7\\u6d3b\\u52a8\"},\"info\":{\"type\":\"input\",\"value\":\"\\u547c\\u670b\\u5524\\u53cb\\u6765\\u780d\\u4ef7~~~\"},\"link\":{\"type\":\"select\",\"value\":\"\\/pages\\/activity\\/goods_bargain\\/index\"}}', 1552620041, 1, 1); +INSERT INTO `eb_system_group_data` VALUES (127, 52, '{\"img\":{\"type\":\"upload\",\"value\":\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/04\\/13\\/5cb18e247a1a9.jpg\"},\"comment\":{\"type\":\"input\",\"value\":\"\\u7cbe\\u54c1\\u63a8\\u8350750*282\"},\"link\":{\"type\":\"input\",\"value\":\"\\/pages\\/first-new-product\\/index\"}}', 1552633893, 1, 1); +INSERT INTO `eb_system_group_data` VALUES (128, 52, '{\"img\":{\"type\":\"upload\",\"value\":\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/03\\/29\\/5c9e015bdc6f5.jpg\"},\"comment\":{\"type\":\"input\",\"value\":\"\\u7cbe\\u54c1\\u63a8\\u8350750*282\"},\"link\":{\"type\":\"input\",\"value\":\"\\/pages\\/first-new-product\\/index\"}}', 1552633912, 1, 1); +INSERT INTO `eb_system_group_data` VALUES (135, 54, '{\"name\":{\"type\":\"input\",\"value\":\"\\u4f1a\\u5458\\u4e2d\\u5fc3\"},\"pic\":{\"type\":\"upload\",\"value\":\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/03\\/28\\/5c9ccc9934a7c.png\"},\"url\":{\"type\":\"select\",\"value\":\"\\/pages\\/user_vip\\/index\"}}', 1553779918, 1, 1); +INSERT INTO `eb_system_group_data` VALUES (136, 54, '{\"name\":{\"type\":\"input\",\"value\":\"\\u780d\\u4ef7\\u8bb0\\u5f55\"},\"pic\":{\"type\":\"upload\",\"value\":\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/03\\/28\\/5c9ccc9918091.png\"},\"url\":{\"type\":\"select\",\"value\":\"\\/pages\\/activity\\/user_goods_bargain_list\\/index\"}}', 1553779935, 1, 2); +INSERT INTO `eb_system_group_data` VALUES (137, 54, '{\"name\":{\"type\":\"input\",\"value\":\"\\u6211\\u7684\\u63a8\\u5e7f\"},\"pic\":{\"type\":\"upload\",\"value\":\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/03\\/28\\/5c9ccc9943575.png\"},\"url\":{\"type\":\"select\",\"value\":\"\\/pages\\/user_spread_user\\/index\"}}', 1553779950, 1, 1); +INSERT INTO `eb_system_group_data` VALUES (138, 54, '{\"name\":{\"type\":\"input\",\"value\":\"\\u6211\\u7684\\u4f59\\u989d\"},\"pic\":{\"type\":\"upload\",\"value\":\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/03\\/28\\/5c9ccc992db31.png\"},\"url\":{\"type\":\"select\",\"value\":\"\\/pages\\/user_money\\/index\"}}', 1553779973, 1, 1); +INSERT INTO `eb_system_group_data` VALUES (139, 54, '{\"name\":{\"type\":\"input\",\"value\":\"\\u5730\\u5740\\u4fe1\\u606f\"},\"pic\":{\"type\":\"upload\",\"value\":\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/03\\/28\\/5c9ccc99101a8.png\"},\"url\":{\"type\":\"select\",\"value\":\"\\/pages\\/user_address_list\\/index\"}}', 1553779988, 1, 1); +INSERT INTO `eb_system_group_data` VALUES (140, 54, '{\"name\":{\"type\":\"input\",\"value\":\"\\u6211\\u7684\\u6536\\u85cf\"},\"pic\":{\"type\":\"upload\",\"value\":\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/03\\/28\\/5c9ccc99269d1.png\"},\"url\":{\"type\":\"select\",\"value\":\"\\/pages\\/user_goods_collection\\/index\"}}', 1553780003, 1, 1); +INSERT INTO `eb_system_group_data` VALUES (141, 54, '{\"name\":{\"type\":\"input\",\"value\":\"\\u4f18\\u60e0\\u5238\"},\"pic\":{\"type\":\"upload\",\"value\":\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/03\\/28\\/5c9ccc991f394.png\"},\"url\":{\"type\":\"select\",\"value\":\"\\/pages\\/user_coupon\\/index\"}}', 1553780017, 1, 1); +INSERT INTO `eb_system_group_data` VALUES (142, 53, '{\"order_status\":{\"type\":\"select\",\"value\":\"0\"},\"pic\":{\"type\":\"upload\",\"value\":\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/03\\/28\\/5c9ccca151e99.gif\"}}', 1553780202, 1, 1); +INSERT INTO `eb_system_group_data` VALUES (143, 53, '{\"order_status\":{\"type\":\"select\",\"value\":\"1\"},\"pic\":{\"type\":\"upload\",\"value\":\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/03\\/28\\/5c9ccca12638a.gif\"}}', 1553780210, 1, 1); +INSERT INTO `eb_system_group_data` VALUES (144, 53, '{\"order_status\":{\"type\":\"select\",\"value\":\"2\"},\"pic\":{\"type\":\"upload\",\"value\":\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/03\\/28\\/5c9ccca1c78cd.gif\"}}', 1553780221, 1, 1); +INSERT INTO `eb_system_group_data` VALUES (145, 53, '{\"order_status\":{\"type\":\"select\",\"value\":\"3\"},\"pic\":{\"type\":\"upload\",\"value\":\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/03\\/28\\/5c9ccca178a67.gif\"}}', 1553780230, 1, 1); +INSERT INTO `eb_system_group_data` VALUES (146, 53, '{\"order_status\":{\"type\":\"select\",\"value\":\"4\"},\"pic\":{\"type\":\"upload\",\"value\":\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/03\\/28\\/5c9ccca1a01b6.gif\"}}', 1553780237, 1, 1); +INSERT INTO `eb_system_group_data` VALUES (147, 55, '{\"day\":{\"type\":\"input\",\"value\":\"\\u7b2c\\u4e00\\u5929\"},\"sign_num\":{\"type\":\"input\",\"value\":\"10\"}}', 1553780276, 100, 1); +INSERT INTO `eb_system_group_data` VALUES (148, 55, '{\"day\":{\"type\":\"input\",\"value\":\"\\u7b2c\\u4e8c\\u5929\"},\"sign_num\":{\"type\":\"input\",\"value\":\"20\"}}', 1553780292, 99, 1); +INSERT INTO `eb_system_group_data` VALUES (149, 55, '{\"day\":{\"type\":\"input\",\"value\":\"\\u7b2c\\u4e09\\u5929\"},\"sign_num\":{\"type\":\"input\",\"value\":\"30\"}}', 1553780303, 90, 1); +INSERT INTO `eb_system_group_data` VALUES (150, 55, '{\"day\":{\"type\":\"input\",\"value\":\"\\u7b2c\\u56db\\u5929\"},\"sign_num\":{\"type\":\"input\",\"value\":\"40\"}}', 1553780334, 60, 1); +INSERT INTO `eb_system_group_data` VALUES (151, 55, '{\"day\":{\"type\":\"input\",\"value\":\"\\u7b2c\\u4e94\\u5929\"},\"sign_num\":{\"type\":\"input\",\"value\":\"50\"}}', 1553780351, 50, 1); +INSERT INTO `eb_system_group_data` VALUES (152, 55, '{\"day\":{\"type\":\"input\",\"value\":\"\\u7b2c\\u516d\\u5929\"},\"sign_num\":{\"type\":\"input\",\"value\":\"60\"}}', 1553780364, 40, 1); +INSERT INTO `eb_system_group_data` VALUES (153, 55, '{\"day\":{\"type\":\"input\",\"value\":\"\\u5956\\u52b1\"},\"sign_num\":{\"type\":\"input\",\"value\":\"110\"}}', 1553780389, 10, 1); +INSERT INTO `eb_system_group_data` VALUES (154, 57, '{\"img\":{\"type\":\"upload\",\"value\":\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/03\\/28\\/5c9cd03224d59.jpg\"},\"comment\":{\"type\":\"input\",\"value\":\"1\"}}', 1553780856, 1, 1); +INSERT INTO `eb_system_group_data` VALUES (155, 58, '{\"img\":{\"type\":\"upload\",\"value\":\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/03\\/28\\/5c9cd03224d59.jpg\"},\"comment\":{\"type\":\"input\",\"value\":\"1\"},\"link\":{\"type\":\"input\",\"value\":\"#\"}}', 1553780869, 1, 1); +INSERT INTO `eb_system_group_data` VALUES (156, 59, '{\"img\":{\"type\":\"upload\",\"value\":\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/03\\/28\\/5c9cd03224d59.jpg\"},\"comment\":{\"type\":\"input\",\"value\":\"1\"},\"link\":{\"type\":\"input\",\"value\":\"#\"}}', 1553780883, 1, 1); +INSERT INTO `eb_system_group_data` VALUES (157, 56, '{\"title\":{\"type\":\"input\",\"value\":\"\\u5438\\u5c18\\u5668\"}}', 1553782153, 1, 1); +INSERT INTO `eb_system_group_data` VALUES (158, 47, '{\"name\":{\"type\":\"input\",\"value\":\"\\u62fc\\u56e2\\u6d3b\\u52a8\"},\"pic\":{\"type\":\"upload\",\"value\":\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/03\\/29\\/5c9dde013f63c.png\"},\"url\":{\"type\":\"select\",\"value\":\"\\/pages\\/activity\\/goods_combination\\/index\"},\"show\":{\"type\":\"radio\",\"value\":\"2\"}}', 1553849878, 3, 1); +INSERT INTO `eb_system_group_data` VALUES (159, 47, '{\"name\":{\"type\":\"input\",\"value\":\"\\u79d2\\u6740\\u6d3b\\u52a8\"},\"pic\":{\"type\":\"upload\",\"value\":\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/03\\/29\\/5c9dde246ad96.png\"},\"url\":{\"type\":\"select\",\"value\":\"\\/pages\\/activity\\/goods_seckill\\/index\"},\"show\":{\"type\":\"radio\",\"value\":\"2\"}}', 1553849905, 2, 1); +INSERT INTO `eb_system_group_data` VALUES (160, 47, '{\"name\":{\"type\":\"input\",\"value\":\"\\u780d\\u4ef7\\u6d3b\\u52a8\"},\"pic\":{\"type\":\"upload\",\"value\":\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/03\\/29\\/5c9ddedbed782.png\"},\"url\":{\"type\":\"select\",\"value\":\"\\/pages\\/activity\\/goods_bargain\\/index\"},\"show\":{\"type\":\"radio\",\"value\":\"2\"}}', 1553850093, 1, 1); +INSERT INTO `eb_system_group_data` VALUES (161, 60, '{\"title\":{\"type\":\"input\",\"value\":\"\\u5206\\u4eab\\u6d77\\u62a5\"},\"pic\":{\"type\":\"upload\",\"value\":\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/03\\/29\\/5c9e1ef640019.jpg\"}}', 1553866489, 1, 1); +INSERT INTO `eb_system_group_data` VALUES (162, 54, '{\"name\":{\"type\":\"input\",\"value\":\"\\u780d\\u4ef7\\u8bb0\\u5f55\"},\"pic\":{\"type\":\"upload\",\"value\":\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/03\\/28\\/5c9ccc9918091.png\"},\"url\":{\"type\":\"select\",\"value\":\"\\/pages\\/activity\\/user_goods_bargain_list\\/index\"}}', 1553866805, 1, 1); +INSERT INTO `eb_system_group_data` VALUES (163, 56, '{\"title\":{\"type\":\"input\",\"value\":\"\\u52a0\\u6e7f\\u5668\"}}', 1553869694, 1, 1); +INSERT INTO `eb_system_group_data` VALUES (164, 56, '{\"title\":{\"type\":\"input\",\"value\":\"\\u9a6c\\u6876\"}}', 1553869701, 1, 1); +INSERT INTO `eb_system_group_data` VALUES (165, 56, '{\"title\":{\"type\":\"input\",\"value\":\"\\u70ed\\u6c34\\u5668\"}}', 1553869710, 1, 1); +INSERT INTO `eb_system_group_data` VALUES (167, 60, '{\"title\":{\"type\":\"input\",\"value\":\"1\"},\"pic\":{\"type\":\"upload\",\"value\":\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/04\\/12\\/5cb071e5860fa.jpg\"}}', 1555063900, 1, 1); +INSERT INTO `eb_system_group_data` VALUES (168, 60, '{\"title\":{\"type\":\"input\",\"value\":\"2\"},\"pic\":{\"type\":\"upload\",\"value\":\"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/04\\/12\\/5cb071e576b3d.jpg\"}}', 1555067377, 1, 1); -INSERT INTO `eb_system_group_data` (`id`, `gid`, `value`, `add_time`, `sort`, `status`) VALUES -(52, 32, '{"name":{"type":"input","value":"\\u6211\\u7684\\u79ef\\u5206"},"icon":{"type":"upload","value":"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dc7ee98a2e.png"},"url":{"type":"select","value":"\\/wap\\/my\\/integral.html"}}', 1513846430, 1, 1), -(53, 32, '{"name":{"type":"input","value":"\\u4f18\\u60e0\\u5238"},"icon":{"type":"upload","value":"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dc802814e5.png"},"url":{"type":"select","value":"\\/wap\\/my\\/coupon.html"}}', 1513846448, 1, 1), -(56, 32, '{"name":{"type":"input","value":"\\u5df2\\u6536\\u85cf\\u5546\\u54c1"},"icon":{"type":"upload","value":"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dc91cee6ed.png"},"url":{"type":"select","value":"\\/wap\\/my\\/collect.html"}}', 1513846605, 1, 1), -(57, 32, '{"name":{"type":"input","value":"\\u5730\\u5740\\u7ba1\\u7406"},"icon":{"type":"upload","value":"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dc93937a48.png"},"url":{"type":"select","value":"\\/wap\\/my\\/address.html"}}', 1513846618, 1, 1), -(67, 32, '{"name":{"type":"input","value":"\\u804a\\u5929\\u8bb0\\u5f55"},"icon":{"type":"upload","value":"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dc8a7205f0.png"},"url":{"type":"select","value":"\\/wap\\/service\\/service_new.html"}}', 1515570261, 1, 1), -(72, 35, '{"name":{"type":"input","value":"\\u780d\\u4ef7"},"url":{"type":"input","value":"\\/wap\\/store\\/cut_list.html"},"icon":{"type":"upload","value":"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dc72335ee5.png"}}', 1515985426, 1, 1), -(73, 35, '{"name":{"type":"input","value":"\\u9886\\u5238"},"url":{"type":"input","value":"\\/wap\\/store\\/issue_coupon.html"},"icon":{"type":"upload","value":"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dc7146add5.png"}}', 1515985435, 1, 1), -(74, 35, '{"name":{"type":"input","value":"\\u62fc\\u56e2"},"url":{"type":"input","value":"\\/wap\\/store\\/combination.html"},"icon":{"type":"upload","value":"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dc73feecaf.png"}}', 1515985441, 1, 1), -(80, 36, '{"info":{"type":"input","value":"CRMEB\\u7535\\u5546\\u7cfb\\u7edf V 2.6 \\u5373\\u5c06\\u4e0a\\u7ebf\\uff01"},"url":{"type":"input","value":"#"}}', 1515985907, 1, 1), -(81, 36, '{"info":{"type":"input","value":"CRMEB\\u5546\\u57ce V 2.6 \\u5c0f\\u7a0b\\u5e8f\\u516c\\u4f17\\u53f7\\u6570\\u636e\\u540c\\u6b65\\uff01"},"url":{"type":"input","value":"#"}}', 1515985918, 1, 1), -(84, 34, '{"title":{"type":"input","value":"banner1"},"url":{"type":"input","value":"#"},"pic":{"type":"upload","value":"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3db14908923.jpg"}}', 1522135667, 2, 1), -(86, 32, '{"name":{"type":"input","value":"\\u8054\\u7cfb\\u5ba2\\u670d"},"icon":{"type":"upload","value":"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dc84ef1070.png"},"url":{"type":"select","value":"\\/wap\\/index\\/about.html"}}', 1522310836, 1, 1), -(87, 32, '{"name":{"type":"input","value":"\\u6211\\u7684\\u4f59\\u989d"},"icon":{"type":"upload","value":"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dc865bb257.png"},"url":{"type":"select","value":"\\/wap\\/my\\/balance.html"}}', 1525330614, 1, 1), -(89, 38, '{"banner":{"type":"upload","value":"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dc730dead2.png"}}', 1527153599, 1, 1), -(91, 37, '{"img":{"type":"upload","value":"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/04\\/13\\/5cb18df0dfba7.jpg"},"comment":{"type":"input","value":"\\u79d2\\u6740\\u5217\\u8868\\u9876\\u90e8baaner"}}', 1528688012, 1, 1), -(92, 32, '{"name":{"type":"input","value":"\\u63a8\\u5e7f\\u4f63\\u91d1"},"icon":{"type":"upload","value":"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dc95a1d134.png"},"url":{"type":"select","value":"\\/wap\\/my\\/user_pro.html"}}', 1530688244, 1, 1), -(99, 47, '{"name":{"type":"input","value":"\\u5546\\u54c1\\u5206\\u7c7b"},"pic":{"type":"upload","value":"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/03\\/29\\/5c9ddc9f34bfd.png"},"url":{"type":"select","value":"\\/pages\\/goods_cate\\/goods_cate"},"show":{"type":"radio","value":"1"}}', 1533721963, 8, 1), -(100, 47, '{"name":{"type":"input","value":"\\u9886\\u4f18\\u60e0\\u5238"},"pic":{"type":"upload","value":"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/03\\/29\\/5c9ddccecb7f3.png"},"url":{"type":"select","value":"\\/pages\\/user_get_coupon\\/index"},"show":{"type":"radio","value":"2"}}', 1533722009, 7, 1), -(101, 47, '{"name":{"type":"input","value":"\\u884c\\u4e1a\\u8d44\\u8baf"},"pic":{"type":"upload","value":"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/03\\/29\\/5c9ddcec57a80.png"},"url":{"type":"select","value":"\\/pages\\/news_list\\/index"},"show":{"type":"radio","value":"2"}}', 1533722037, 6, 1), -(102, 47, '{"name":{"type":"input","value":"\\u6211\\u8981\\u7b7e\\u5230"},"pic":{"type":"upload","value":"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/03\\/29\\/5c9ddd570b8b3.png"},"url":{"type":"select","value":"\\/pages\\/user_sgin\\/index"},"show":{"type":"radio","value":"2"}}', 1533722063, 5, 1), -(104, 48, '{"name":{"type":"input","value":"banenr2"},"url":{"type":"input","value":"\\/pages\\/pink-list\\/index?id=2"},"pic":{"type":"upload","value":"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/03\\/29\\/5c9e015bdc6f5.jpg"}}', 1533722286, 10, 1), -(105, 47, '{"name":{"type":"input","value":"\\u6211\\u7684\\u6536\\u85cf"},"pic":{"type":"upload","value":"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/03\\/29\\/5c9dddce0eac9.png"},"url":{"type":"select","value":"\\/pages\\/user_goods_collection\\/index"},"show":{"type":"radio","value":"2"}}', 1533797064, 5, 1), -(106, 32, '{"name":{"type":"input","value":"\\u6211\\u7684\\u780d\\u4ef7"},"icon":{"type":"upload","value":"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dc97a19134.png"},"url":{"type":"select","value":"\\/wap\\/my\\/user_cut.html"}}', 1533889033, 1, 1), -(108, 35, '{"name":{"type":"input","value":"\\u79d2\\u6740"},"url":{"type":"input","value":"\\/wap\\/store\\/seckill_index.html"},"icon":{"type":"upload","value":"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dc730dead2.png"}}', 1541054595, 1, 1), -(109, 35, '{"name":{"type":"input","value":"\\u7b7e\\u5230"},"url":{"type":"input","value":"\\/wap\\/my\\/sign_in.html"},"icon":{"type":"upload","value":"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/01\\/15\\/5c3dc74c1bd3f.png"}}', 1541054641, 1, 1), -(113, 49, '{"time":{"type":"input","value":"5"},"continued":{"type":"input","value":"2"}}', 1552443280, 1, 1), -(114, 49, '{"time":{"type":"input","value":"7"},"continued":{"type":"input","value":"3"}}', 1552443293, 1, 1), -(115, 49, '{"time":{"type":"input","value":"10"},"continued":{"type":"input","value":"2"}}', 1552443304, 1, 1), -(116, 49, '{"time":{"type":"input","value":"12"},"continued":{"type":"input","value":"2"}}', 1552481140, 1, 1), -(117, 49, '{"time":{"type":"input","value":"14"},"continued":{"type":"input","value":"2"}}', 1552481146, 1, 1), -(118, 49, '{"time":{"type":"input","value":"16"},"continued":{"type":"input","value":"2"}}', 1552481151, 1, 1), -(119, 49, '{"time":{"type":"input","value":"18"},"continued":{"type":"input","value":"2"}}', 1552481157, 1, 1), -(120, 49, '{"time":{"type":"input","value":"20"},"continued":{"type":"input","value":"9"}}', 1552481163, 1, 1), -(121, 50, '{"info":{"type":"input","value":"CRMEB\\u7535\\u5546\\u7cfb\\u7edf V 2.6 \\u5373\\u5c06\\u4e0a\\u7ebf\\uff01"},"url":{"type":"select","value":"\\/pages\\/index\\/index"},"show":{"type":"radio","value":"\\u662f"}}', 1552611989, 1, 1), -(122, 50, '{"info":{"type":"input","value":"CRMEB\\u7535\\u5546\\u7cfb\\u7edf V 2.6 \\u5373\\u5c06\\u4e0a\\u7ebf\\uff01"},"url":{"type":"select","value":"\\/pages\\/miao-list\\/miao-list"},"show":{"type":"radio","value":"\\u5426"}}', 1552612003, 1, 1), -(123, 50, '{"info":{"type":"input","value":"CRMEB\\u7535\\u5546\\u7cfb\\u7edf V 2.6 \\u5373\\u5c06\\u4e0a\\u7ebf\\uff01"},"url":{"type":"select","value":"\\/pages\\/index\\/index"},"show":{"type":"radio","value":"\\u662f"}}', 1552613047, 1, 1), -(124, 51, '{"pic":{"type":"upload","value":"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/03\\/28\\/5c9ccf7e9f4d0.jpg"},"title":{"type":"input","value":"\\u4e00\\u8d77\\u6765\\u62fc\\u56e2"},"info":{"type":"input","value":"\\u4f18\\u60e0\\u591a\\u591a"},"link":{"type":"select","value":"\\/pages\\/activity\\/goods_combination\\/index"}}', 1552620002, 3, 1), -(125, 51, '{"pic":{"type":"upload","value":"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/03\\/28\\/5c9ccf7e97660.jpg"},"title":{"type":"input","value":"\\u79d2\\u6740\\u4e13\\u533a"},"info":{"type":"input","value":"\\u65b0\\u80fd\\u6e90\\u6c7d\\u8f66\\u706b\\u70ed\\u9500\\u552e"},"link":{"type":"select","value":"\\/pages\\/activity\\/goods_seckill\\/index"}}', 1552620022, 2, 1), -(126, 51, '{"pic":{"type":"upload","value":"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/03\\/28\\/5c9ccfc86a6c1.jpg"},"title":{"type":"input","value":"\\u780d\\u4ef7\\u6d3b\\u52a8"},"info":{"type":"input","value":"\\u547c\\u670b\\u5524\\u53cb\\u6765\\u780d\\u4ef7~~~"},"link":{"type":"select","value":"\\/pages\\/activity\\/goods_bargain\\/index"}}', 1552620041, 1, 1), -(127, 52, '{"img":{"type":"upload","value":"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/04\\/13\\/5cb18e247a1a9.jpg"},"comment":{"type":"input","value":"\\u7cbe\\u54c1\\u63a8\\u8350750*282"},"link":{"type":"input","value":"\\/pages\\/first-new-product\\/index"}}', 1552633893, 1, 1), -(128, 52, '{"img":{"type":"upload","value":"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/03\\/29\\/5c9e015bdc6f5.jpg"},"comment":{"type":"input","value":"\\u7cbe\\u54c1\\u63a8\\u8350750*282"},"link":{"type":"input","value":"\\/pages\\/first-new-product\\/index"}}', 1552633912, 1, 1), -(135, 54, '{"name":{"type":"input","value":"\\u4f1a\\u5458\\u4e2d\\u5fc3"},"pic":{"type":"upload","value":"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/03\\/28\\/5c9ccc9934a7c.png"},"url":{"type":"select","value":"\\/pages\\/user_vip\\/index"}}', 1553779918, 1, 1), -(136, 54, '{"name":{"type":"input","value":"\\u780d\\u4ef7\\u8bb0\\u5f55"},"pic":{"type":"upload","value":"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/03\\/28\\/5c9ccc9918091.png"},"url":{"type":"select","value":"\\/pages\\/activity\\/user_goods_bargain_list\\/index"}}', 1553779935, 1, 2), -(137, 54, '{"name":{"type":"input","value":"\\u6211\\u7684\\u63a8\\u5e7f"},"pic":{"type":"upload","value":"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/03\\/28\\/5c9ccc9943575.png"},"url":{"type":"select","value":"\\/pages\\/user_spread_user\\/index"}}', 1553779950, 1, 1), -(138, 54, '{"name":{"type":"input","value":"\\u6211\\u7684\\u4f59\\u989d"},"pic":{"type":"upload","value":"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/03\\/28\\/5c9ccc992db31.png"},"url":{"type":"select","value":"\\/pages\\/user_money\\/index"}}', 1553779973, 1, 1), -(139, 54, '{"name":{"type":"input","value":"\\u5730\\u5740\\u4fe1\\u606f"},"pic":{"type":"upload","value":"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/03\\/28\\/5c9ccc99101a8.png"},"url":{"type":"select","value":"\\/pages\\/user_address_list\\/index"}}', 1553779988, 1, 1), -(140, 54, '{"name":{"type":"input","value":"\\u6211\\u7684\\u6536\\u85cf"},"pic":{"type":"upload","value":"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/03\\/28\\/5c9ccc99269d1.png"},"url":{"type":"select","value":"\\/pages\\/user_goods_collection\\/index"}}', 1553780003, 1, 1), -(141, 54, '{"name":{"type":"input","value":"\\u4f18\\u60e0\\u5238"},"pic":{"type":"upload","value":"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/03\\/28\\/5c9ccc991f394.png"},"url":{"type":"select","value":"\\/pages\\/user_coupon\\/index"}}', 1553780017, 1, 1), -(142, 53, '{"order_status":{"type":"select","value":"0"},"pic":{"type":"upload","value":"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/03\\/28\\/5c9ccca151e99.gif"}}', 1553780202, 1, 1), -(143, 53, '{"order_status":{"type":"select","value":"1"},"pic":{"type":"upload","value":"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/03\\/28\\/5c9ccca12638a.gif"}}', 1553780210, 1, 1), -(144, 53, '{"order_status":{"type":"select","value":"2"},"pic":{"type":"upload","value":"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/03\\/28\\/5c9ccca1c78cd.gif"}}', 1553780221, 1, 1), -(145, 53, '{"order_status":{"type":"select","value":"3"},"pic":{"type":"upload","value":"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/03\\/28\\/5c9ccca178a67.gif"}}', 1553780230, 1, 1), -(146, 53, '{"order_status":{"type":"select","value":"4"},"pic":{"type":"upload","value":"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/03\\/28\\/5c9ccca1a01b6.gif"}}', 1553780237, 1, 1), -(147, 55, '{"day":{"type":"input","value":"\\u7b2c\\u4e00\\u5929"},"sign_num":{"type":"input","value":"10"}}', 1553780276, 100, 1), -(148, 55, '{"day":{"type":"input","value":"\\u7b2c\\u4e8c\\u5929"},"sign_num":{"type":"input","value":"20"}}', 1553780292, 99, 1), -(149, 55, '{"day":{"type":"input","value":"\\u7b2c\\u4e09\\u5929"},"sign_num":{"type":"input","value":"30"}}', 1553780303, 90, 1), -(150, 55, '{"day":{"type":"input","value":"\\u7b2c\\u56db\\u5929"},"sign_num":{"type":"input","value":"40"}}', 1553780334, 60, 1), -(151, 55, '{"day":{"type":"input","value":"\\u7b2c\\u4e94\\u5929"},"sign_num":{"type":"input","value":"50"}}', 1553780351, 50, 1), -(152, 55, '{"day":{"type":"input","value":"\\u7b2c\\u516d\\u5929"},"sign_num":{"type":"input","value":"60"}}', 1553780364, 40, 1), -(153, 55, '{"day":{"type":"input","value":"\\u5956\\u52b1"},"sign_num":{"type":"input","value":"110"}}', 1553780389, 10, 1), -(154, 57, '{"img":{"type":"upload","value":"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/03\\/28\\/5c9cd03224d59.jpg"},"comment":{"type":"input","value":"1"}}', 1553780856, 1, 1), -(155, 58, '{"img":{"type":"upload","value":"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/03\\/28\\/5c9cd03224d59.jpg"},"comment":{"type":"input","value":"1"},"link":{"type":"input","value":"#"}}', 1553780869, 1, 1), -(156, 59, '{"img":{"type":"upload","value":"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/03\\/28\\/5c9cd03224d59.jpg"},"comment":{"type":"input","value":"1"},"link":{"type":"input","value":"#"}}', 1553780883, 1, 1), -(157, 56, '{"title":{"type":"input","value":"\\u5438\\u5c18\\u5668"}}', 1553782153, 1, 1), -(158, 47, '{"name":{"type":"input","value":"\\u62fc\\u56e2\\u6d3b\\u52a8"},"pic":{"type":"upload","value":"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/03\\/29\\/5c9dde013f63c.png"},"url":{"type":"select","value":"\\/pages\\/activity\\/goods_combination\\/index"},"show":{"type":"radio","value":"2"}}', 1553849878, 3, 1), -(159, 47, '{"name":{"type":"input","value":"\\u79d2\\u6740\\u6d3b\\u52a8"},"pic":{"type":"upload","value":"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/03\\/29\\/5c9dde246ad96.png"},"url":{"type":"select","value":"\\/pages\\/activity\\/goods_seckill\\/index"},"show":{"type":"radio","value":"2"}}', 1553849905, 2, 1), -(160, 47, '{"name":{"type":"input","value":"\\u780d\\u4ef7\\u6d3b\\u52a8"},"pic":{"type":"upload","value":"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/03\\/29\\/5c9ddedbed782.png"},"url":{"type":"select","value":"\\/pages\\/activity\\/goods_bargain\\/index"},"show":{"type":"radio","value":"2"}}', 1553850093, 1, 1), -(161, 60, '{"title":{"type":"input","value":"\\u5206\\u4eab\\u6d77\\u62a5"},"pic":{"type":"upload","value":"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/03\\/29\\/5c9e1ef640019.jpg"}}', 1553866489, 1, 1), -(162, 54, '{"name":{"type":"input","value":"\\u780d\\u4ef7\\u8bb0\\u5f55"},"pic":{"type":"upload","value":"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/03\\/28\\/5c9ccc9918091.png"},"url":{"type":"select","value":"\\/pages\\/activity\\/user_goods_bargain_list\\/index"}}', 1553866805, 1, 1), -(163, 56, '{"title":{"type":"input","value":"\\u52a0\\u6e7f\\u5668"}}', 1553869694, 1, 1), -(164, 56, '{"title":{"type":"input","value":"\\u9a6c\\u6876"}}', 1553869701, 1, 1), -(165, 56, '{"title":{"type":"input","value":"\\u70ed\\u6c34\\u5668"}}', 1553869710, 1, 1), -(167, 60, '{"title":{"type":"input","value":"1"},"pic":{"type":"upload","value":"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/04\\/12\\/5cb071e5860fa.jpg"}}', 1555063900, 1, 1), -(168, 60, '{"title":{"type":"input","value":"2"},"pic":{"type":"upload","value":"http:\\/\\/datong.crmeb.net\\/public\\/uploads\\/attach\\/2019\\/04\\/12\\/5cb071e576b3d.jpg"}}', 1555067377, 1, 1); - --- -------------------------------------------------------- - --- --- 表的结构 `eb_system_log` --- - -CREATE TABLE IF NOT EXISTS `eb_system_log` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '管理员操作记录ID', - `admin_id` int(10) unsigned NOT NULL COMMENT '管理员id', - `admin_name` varchar(64) NOT NULL COMMENT '管理员姓名', - `path` varchar(128) NOT NULL COMMENT '链接', - `page` varchar(64) NOT NULL COMMENT '行为', - `method` varchar(12) NOT NULL COMMENT '访问类型', - `ip` varchar(16) NOT NULL COMMENT '登录IP', - `type` varchar(32) NOT NULL COMMENT '类型', - `add_time` int(10) unsigned NOT NULL COMMENT '操作时间', - `merchant_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '商户id', +-- ---------------------------- +-- Table structure for eb_system_log +-- ---------------------------- +DROP TABLE IF EXISTS `eb_system_log`; +CREATE TABLE `eb_system_log` ( + `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '管理员操作记录ID', + `admin_id` int(10) UNSIGNED NOT NULL COMMENT '管理员id', + `admin_name` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '管理员姓名', + `path` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '链接', + `page` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '行为', + `method` varchar(12) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '访问类型', + `ip` varchar(16) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '登录IP', + `type` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '类型', + `add_time` int(10) UNSIGNED NOT NULL COMMENT '操作时间', + `merchant_id` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '商户id', PRIMARY KEY (`id`) USING BTREE, - KEY `admin_id` (`admin_id`) USING BTREE, - KEY `add_time` (`add_time`) USING BTREE, - KEY `type` (`type`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='管理员操作记录表' AUTO_INCREMENT=1 ; + INDEX `admin_id`(`admin_id`) USING BTREE, + INDEX `add_time`(`add_time`) USING BTREE, + INDEX `type`(`type`) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '管理员操作记录表' ROW_FORMAT = DYNAMIC; --- -------------------------------------------------------- - --- --- 表的结构 `eb_system_menus` --- - -CREATE TABLE IF NOT EXISTS `eb_system_menus` ( - `id` smallint(5) unsigned NOT NULL AUTO_INCREMENT COMMENT '菜单ID', - `pid` smallint(5) unsigned NOT NULL DEFAULT '0' COMMENT '父级id', - `icon` varchar(16) NOT NULL COMMENT '图标', - `menu_name` varchar(32) NOT NULL DEFAULT '' COMMENT '按钮名', +-- ---------------------------- +-- Table structure for eb_system_menus +-- ---------------------------- +DROP TABLE IF EXISTS `eb_system_menus`; +CREATE TABLE `eb_system_menus` ( + `id` smallint(5) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '菜单ID', + `pid` smallint(5) UNSIGNED NOT NULL DEFAULT 0 COMMENT '父级id', + `icon` varchar(16) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '图标', + `menu_name` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '按钮名', `module` varchar(32) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '' COMMENT '模块名', `controller` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '控制器', `action` varchar(32) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '' COMMENT '方法名', `params` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL DEFAULT '[]' COMMENT '参数', - `sort` tinyint(3) NOT NULL DEFAULT '1' COMMENT '排序', - `is_show` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '是否显示', - `access` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '子管理员是否可用', + `sort` tinyint(3) NOT NULL DEFAULT 1 COMMENT '排序', + `is_show` tinyint(1) UNSIGNED NOT NULL DEFAULT 1 COMMENT '是否显示', + `access` tinyint(1) UNSIGNED NOT NULL DEFAULT 1 COMMENT '子管理员是否可用', PRIMARY KEY (`id`) USING BTREE, - KEY `pid` (`pid`) USING BTREE, - KEY `is_show` (`is_show`) USING BTREE, - KEY `access` (`access`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='菜单表' AUTO_INCREMENT=472 ; + INDEX `pid`(`pid`) USING BTREE, + INDEX `is_show`(`is_show`) USING BTREE, + INDEX `access`(`access`) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 471 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '菜单表' ROW_FORMAT = DYNAMIC; --- --- 转存表中的数据 `eb_system_menus` --- +-- ---------------------------- +-- Records of eb_system_menus +-- ---------------------------- -INSERT INTO `eb_system_menus` (`id`, `pid`, `icon`, `menu_name`, `module`, `controller`, `action`, `params`, `sort`, `is_show`, `access`) VALUES -(1, 289, '', '系统设置', 'admin', 'setting.systemConfig', 'index', '[]', 90, 1, 1), -(2, 153, '', '权限规则', 'admin', 'setting.systemMenus', 'index', '[]', 7, 1, 1), -(4, 153, '', '管理员列表', 'admin', 'setting.systemAdmin', 'index', '[]', 9, 1, 1), -(7, 467, '', '配置分类', 'admin', 'setting.systemConfigTab', 'index', '[]', 1, 1, 1), -(8, 153, '', '身份管理', 'admin', 'setting.systemRole', 'index', '[]', 10, 1, 1), -(9, 467, '', '组合数据', 'admin', 'setting.systemGroup', 'index', '[]', 1, 1, 1), -(11, 0, 'wechat', '公众号', 'admin', 'wechat', 'index', '[]', 91, 1, 1), -(12, 354, '', '微信关注回复', 'admin', 'wechat.reply', 'index', '{"key":"subscribe","title":"\\u7f16\\u8f91\\u65e0\\u914d\\u7f6e\\u9ed8\\u8ba4\\u56de\\u590d"}', 86, 1, 1), -(17, 360, '', '微信菜单', 'admin', 'wechat.menus', 'index', '[]', 95, 1, 1), -(19, 11, '', '图文管理', 'admin', 'wechat.wechatNewsCategory', 'index', '[]', 60, 1, 1), -(21, 0, 'magic', '维护', 'admin', 'system', 'index', '[]', 1, 1, 1), -(23, 0, 'laptop', '商品', 'admin', 'store', 'index', '[]', 110, 1, 1), -(24, 23, '', '商品管理', 'admin', 'store.storeProduct', 'index', '{"type":"1"}', 100, 1, 1), -(25, 23, '', '商品分类', 'admin', 'store.storeCategory', 'index', '[]', 1, 1, 1), -(26, 285, '', '订单管理', 'admin', 'order.storeOrder', 'index', '[]', 1, 1, 1), -(30, 354, '', '关键字回复', 'admin', 'wechat.reply', 'keyword', '[]', 85, 1, 1), -(31, 354, '', '无效关键词回复', 'admin', 'wechat.reply', 'index', '{"key":"default","title":"\\u7f16\\u8f91\\u65e0\\u6548\\u5173\\u952e\\u5b57\\u9ed8\\u8ba4\\u56de\\u590d"}', 84, 1, 1), -(33, 284, '', '附加权限', 'admin', 'article.articleCategory', '', '[]', 0, 0, 1), -(34, 33, '', '添加文章分类', 'admin', 'article.articleCategory', 'create', '[]', 0, 0, 1), -(35, 33, '', '编辑文章分类', 'admin', 'article.articleCategory', 'edit', '[]', 0, 0, 1), -(36, 33, '', '删除文章分类', 'admin', 'article.articleCategory', 'delete', '[]', 0, 0, 1), -(37, 31, '', '附加权限', 'admin', 'wechat.reply', '', '[]', 0, 0, 1), -(38, 283, '', '附加权限', 'admin', 'article.article', '', '[]', 0, 0, 1), -(39, 38, '', '添加文章', 'admin', 'article. article', 'create', '[]', 0, 0, 1), -(40, 38, '', '编辑文章', 'admin', 'article. article', 'add_new', '[]', 0, 0, 1), -(41, 38, '', '删除文章', 'admin', 'article. article', 'delete', '[]', 0, 0, 1), -(42, 19, '', '附加权限', 'admin', 'wechat.wechatNewsCategory', '', '[]', 0, 0, 1), -(43, 42, '', '添加图文消息', 'admin', 'wechat.wechatNewsCategory', 'create', '[]', 0, 0, 1), -(44, 42, '', '编辑图文消息', 'admin', 'wechat.wechatNewsCategory', 'edit', '[]', 0, 0, 1), -(45, 42, '', '删除图文消息', 'admin', 'wechat.wechatNewsCategory', 'delete', '[]', 0, 0, 1), -(46, 7, '', '配置分类附加权限', 'admin', 'setting.systemConfigTab', '', '[]', 0, 0, 1), -(47, 46, '', '添加配置分类', 'admin', 'setting.systemConfigTab', 'create', '[]', 0, 0, 1), -(48, 117, '', '添加配置', 'admin', 'setting.systemConfig', 'create', '[]', 0, 0, 1), -(49, 46, '', '编辑配置分类', 'admin', 'setting.systemConfigTab', 'edit', '[]', 0, 0, 1), -(50, 46, '', '删除配置分类', 'admin', 'setting.systemConfigTab', 'delete', '[]', 0, 0, 1), -(51, 46, '', '查看子字段', 'admin', 'system.systemConfigTab', 'sonConfigTab', '[]', 0, 0, 1), -(52, 9, '', '组合数据附加权限', 'admin', 'setting.systemGroup', '', '[]', 0, 0, 1), -(53, 468, '', '添加数据', 'admin', 'setting.systemGroupData', 'create', '[]', 0, 0, 1), -(54, 468, '', '编辑数据', 'admin', 'setting.systemGroupData', 'edit', '[]', 0, 0, 1), -(55, 468, '', '删除数据', 'admin', 'setting.systemGroupData', 'delete', '[]', 0, 0, 1), -(56, 468, '', '数据列表', 'admin', 'setting.systemGroupData', 'index', '[]', 0, 0, 1), -(57, 52, '', '添加数据组', 'admin', 'setting.systemGroup', 'create', '[]', 0, 0, 1), -(58, 52, '', '删除数据组', 'admin', 'setting.systemGroup', 'delete', '[]', 0, 0, 1), -(59, 4, '', '管理员列表附加权限', 'admin', 'setting.systemAdmin', '', '[]', 0, 0, 1), -(60, 59, '', '添加管理员', 'admin', 'setting.systemAdmin', 'create', '[]', 0, 0, 1), -(61, 59, '', '编辑管理员', 'admin', 'setting.systemAdmin', 'edit', '[]', 0, 0, 1), -(62, 59, '', '删除管理员', 'admin', 'setting.systemAdmin', 'delete', '[]', 0, 0, 1), -(63, 8, '', '身份管理附加权限', 'admin', 'setting.systemRole', '', '[]', 0, 0, 1), -(64, 63, '', '添加身份', 'admin', 'setting.systemRole', 'create', '[]', 0, 0, 1), -(65, 63, '', '修改身份', 'admin', 'setting.systemRole', 'edit', '[]', 0, 0, 1), -(66, 63, '', '删除身份', 'admin', 'setting.systemRole', 'delete', '[]', 0, 0, 1), -(67, 8, '', '身份管理展示页', 'admin', 'setting.systemRole', 'index', '[]', 0, 0, 1), -(68, 4, '', '管理员列表展示页', 'admin', 'setting.systemAdmin', 'index', '[]', 0, 0, 1), -(69, 7, '', '配置分类展示页', 'admin', 'setting.systemConfigTab', 'index', '[]', 0, 0, 1), -(70, 9, '', '组合数据展示页', 'admin', 'setting.systemGroup', 'index', '[]', 0, 0, 1), -(71, 284, '', '文章分类管理展示页', 'admin', 'article.articleCategory', 'index', '[]', 0, 0, 1), -(72, 283, '', '文章管理展示页', 'admin', 'article.article', 'index', '[]', 0, 0, 1), -(73, 19, '', '图文消息展示页', 'admin', 'wechat.wechatNewsCategory', 'index', '[]', 0, 0, 1), -(74, 2, '', '菜单管理附加权限', 'admin', 'setting.systemMenus', '', '[]', 0, 0, 1), -(75, 74, '', '添加菜单', 'admin', 'setting.systemMenus', 'create', '[]', 0, 0, 1), -(76, 74, '', '编辑菜单', 'admin', 'setting.systemMenus', 'edit', '[]', 0, 0, 1), -(77, 74, '', '删除菜单', 'admin', 'setting.systemMenus', 'delete', '[]', 0, 0, 1), -(78, 2, '', '菜单管理展示页', 'admin', 'setting.systemMenus', 'index', '[]', 0, 0, 1), -(80, 0, 'leanpub', '内容', 'admin', 'article', 'index', '[]', 90, 1, 1), -(82, 11, '', '微信用户管理', 'admin', 'user', 'list', '[]', 5, 1, 1), -(84, 82, '', '用户标签', 'admin', 'wechat.wechatUser', 'tag', '[]', 0, 1, 1), -(89, 30, '', '关键字回复附加权限', 'admin', 'wechat.reply', '', '[]', 0, 0, 1), -(90, 89, '', '添加关键字', 'admin', 'wechat.reply', 'add_keyword', '[]', 0, 0, 1), -(91, 89, '', '修改关键字', 'admin', 'wechat.reply', 'info_keyword', '[]', 0, 0, 1), -(92, 89, '', '删除关键字', 'admin', 'wechat.reply', 'delete', '[]', 0, 0, 1), -(93, 30, '', '关键字回复展示页', 'admin', 'wechat.reply', 'keyword', '[]', 0, 0, 1), -(94, 31, '', '无效关键词回复展示页', 'admin', 'wechat.reply', 'index', '[]', 0, 0, 1), -(95, 31, '', '无效关键词回复附加权限', 'admin', 'wechat.reply', '', '[]', 0, 0, 1), -(96, 95, '', '无效关键词回复提交按钮', 'admin', 'wechat.reply', 'save', '{"key":"default","title":"编辑无效关键字默认回复"}', 0, 0, 1), -(97, 12, '', '微信关注回复展示页', 'admin', 'wechat.reply', 'index', '[]', 0, 0, 1), -(98, 12, '', '微信关注回复附加权限', 'admin', 'wechat.reply', '', '[]', 0, 0, 1), -(99, 98, '', '微信关注回复提交按钮', 'admin', 'wechat.reply', 'save', '{"key":"subscribe","title":"编辑无配置默认回复"}', 0, 0, 1), -(100, 74, '', '添加提交菜单', 'admin', 'setting.systemMenus', 'save', '[]', 0, 0, 1), -(101, 74, '', '编辑提交菜单', 'admin', 'setting.systemMenus', 'update', '[]', 0, 0, 1), -(102, 59, '', '提交添加管理员', 'admin', 'setting.systemAdmin', 'save', '[]', 0, 0, 1), -(103, 59, '', '提交修改管理员', 'admin', 'setting.systemAdmin', 'update', '[]', 0, 0, 1), -(104, 63, '', '提交添加身份', 'admin', 'setting.systemRole', 'save', '[]', 0, 0, 1), -(105, 63, '', '提交修改身份', 'admin', 'setting.systemRole', 'update', '[]', 0, 0, 1), -(106, 46, '', '提交添加配置分类', 'admin', 'setting.systemConfigTab', 'save', '[]', 0, 0, 1), -(107, 46, '', '提交修改配置分类', 'admin', 'setting.systemConfigTab', 'update', '[]', 0, 0, 1), -(108, 117, '', '提交添加配置列表', 'admin', 'setting.systemConfig', 'save', '[]', 0, 0, 1), -(109, 52, '', '提交添加数据组', 'admin', 'setting.systemGroup', 'save', '[]', 0, 0, 1), -(110, 52, '', '提交修改数据组', 'admin', 'setting.systemGroup', 'update', '[]', 0, 0, 1), -(111, 468, '', '提交添加数据', 'admin', 'setting.systemGroupData', 'save', '[]', 0, 0, 1), -(112, 468, '', '提交修改数据', 'admin', 'setting.systemGroupData', 'update', '[]', 0, 0, 1), -(113, 33, '', '提交添加文章分类', 'admin', 'article.articleCategory', 'save', '[]', 0, 0, 1), -(114, 33, '', '提交添加文章分类', 'admin', 'article.articleCategory', 'update', '[]', 0, 0, 1), -(115, 42, '', '提交添加图文消息', 'admin', 'wechat.wechatNewsCategory', 'save', '[]', 0, 0, 1), -(116, 42, '', '提交编辑图文消息', 'admin', 'wechat.wechatNewsCategory', 'update', '[]', 0, 0, 1), -(117, 1, '', '配置列表附加权限', 'admin', 'setting.systemConfig', '', '[]', 0, 0, 1), -(118, 1, '', '配置列表展示页', 'admin', 'setting.systemConfig', 'index', '[]', 0, 0, 1), -(119, 117, '', '提交保存配置列表', 'admin', 'setting.systemConfig', 'save_basics', '[]', 0, 0, 1), -(123, 89, '', '提交添加关键字', 'admin', 'wechat.reply', 'save_keyword', '{"dis":"1"}', 0, 0, 1), -(124, 89, '', '提交修改关键字', 'admin', 'wechat.reply', 'save_keyword', '{"dis":"2"}', 0, 0, 1), -(126, 17, '', '微信菜单展示页', 'admin', 'wechat.menus', 'index', '[]', 0, 0, 1), -(127, 17, '', '微信菜单附加权限', 'admin', 'wechat.menus', '', '[]', 0, 0, 1), -(128, 127, '', '提交微信菜单按钮', 'admin', 'wechat.menus', 'save', '{"dis":"1"}', 0, 0, 1), -(129, 82, '', '用户行为纪录', 'admin', 'wechat.wechatMessage', 'index', '[]', 0, 1, 1), -(130, 469, '', '系统日志', 'admin', 'system.systemLog', 'index', '[]', 5, 1, 1), -(131, 130, '', '管理员操作记录展示页', 'admin', 'system.systemLog', 'index', '[]', 0, 0, 1), -(132, 129, '', '微信用户行为纪录展示页', 'admin', 'wechat.wechatMessage', 'index', '[]', 0, 0, 1), -(133, 82, '', '微信用户', 'admin', 'wechat.wechatUser', 'index', '[]', 1, 1, 1), -(134, 133, '', '微信用户展示页', 'admin', 'wechat.wechatUser', 'index', '[]', 0, 0, 1), -(137, 135, '', '添加通知模板', 'admin', 'system.systemNotice', 'create', '[]', 0, 0, 1), -(138, 135, '', '编辑通知模板', 'admin', 'system.systemNotice', 'edit', '[]', 0, 0, 1), -(139, 135, '', '删除辑通知模板', 'admin', 'system.systemNotice', 'delete', '[]', 0, 0, 1), -(140, 135, '', '提交编辑辑通知模板', 'admin', 'system.systemNotice', 'update', '[]', 0, 0, 1), -(141, 135, '', '提交添加辑通知模板', 'admin', 'system.systemNotice', 'save', '[]', 0, 0, 1), -(142, 25, '', '产品分类展示页', 'admin', 'store.storeCategory', 'index', '[]', 0, 0, 1), -(143, 25, '', '产品分类附加权限', 'admin', 'store.storeCategory', '', '[]', 0, 0, 1), -(144, 117, '', '获取配置列表上传文件的名称', 'admin', 'setting.systemConfig', 'getimagename', '[]', 0, 0, 1), -(145, 117, '', '配置列表上传文件', 'admin', 'setting.systemConfig', 'view_upload', '[]', 0, 0, 1), -(146, 24, '', '产品管理展示页', 'admin', 'store.storeProduct', 'index', '[]', 0, 0, 1), -(147, 24, '', '产品管理附加权限', 'admin', 'store.storeProduct', '', '[]', 0, 0, 1), -(148, 286, '', '优惠券', '', '', '', '[]', 10, 1, 1), -(149, 148, '', '优惠券制作', 'admin', 'ump.storeCoupon', 'index', '[]', 5, 1, 1), -(150, 148, '', '会员领取记录', 'admin', 'ump.storeCouponUser', 'index', '[]', 1, 1, 1), -(151, 0, 'user', '会员', 'admin', 'user', 'index', '[]', 107, 1, 1), -(153, 289, '', '管理权限', 'admin', 'setting.systemAdmin', '', '[]', 100, 1, 1), -(155, 154, '', '商户产品展示页', 'admin', 'store.storeMerchant', 'index', '[]', 0, 0, 1), -(156, 154, '', '商户产品附加权限', 'admin', 'store.storeMerchant', '', '[]', 0, 0, 1), -(158, 157, '', '商户文章管理展示页', 'admin', 'wechat.wechatNews', 'merchantIndex', '[]', 0, 0, 1), -(159, 157, '', '商户文章管理附加权限', 'admin', 'wechat.wechatNews', '', '[]', 0, 0, 1), -(170, 290, '', '评论管理', 'admin', 'store.store_product_reply', 'index', '[]', 0, 1, 1), -(173, 469, '', '文件校验', 'admin', 'system.systemFile', 'index', '[]', 1, 1, 1), -(174, 360, '', '微信模板消息', 'admin', 'wechat.wechatTemplate', 'index', '[]', 1, 1, 1), -(175, 11, '', '客服管理', 'admin', 'wechat.storeService', 'index', '[]', 70, 1, 1), -(176, 151, '', '站内通知', 'admin', 'user.user_notice', 'index', '[]', 8, 1, 1), -(177, 151, '', '会员管理', 'admin', 'user.user', 'index', '[]', 10, 1, 1), -(179, 307, '', '充值记录', 'admin', 'finance.userRecharge', 'index', '[]', 1, 1, 1), -(190, 26, '', '订单管理展示页', 'admin', 'store.storeOrder', 'index', '[]', 0, 0, 1), -(191, 26, '', '订单管理附加权限', 'admin', 'store.storeOrder', '', '[]', 0, 0, 1), -(192, 191, '', '订单管理去发货', 'admin', 'store.storeOrder', 'deliver_goods', '[]', 0, 0, 1), -(193, 191, '', '订单管理备注', 'admin', 'store.storeOrder', 'remark', '[]', 0, 0, 1), -(194, 191, '', '订单管理去送货', 'admin', 'store.storeOrder', 'delivery', '[]', 0, 0, 1), -(195, 191, '', '订单管理已收货', 'admin', 'store.storeOrder', 'take_delivery', '[]', 0, 0, 1), -(196, 191, '', '订单管理退款', 'admin', 'store.storeOrder', 'refund_y', '[]', 0, 0, 1), -(197, 191, '', '订单管理修改订单', 'admin', 'store.storeOrder', 'edit', '[]', 0, 0, 1), -(198, 191, '', '订单管理修改订单提交', 'admin', 'store.storeOrder', 'update', '[]', 0, 0, 1), -(199, 191, '', '订单管理退积分', 'admin', 'store.storeOrder', 'integral_back', '[]', 0, 0, 1), -(200, 191, '', '订单管理退积分提交', 'admin', 'store.storeOrder', 'updateIntegralBack', '[]', 0, 0, 1), -(201, 191, '', '订单管理立即支付', 'admin', 'store.storeOrder', 'offline', '[]', 0, 0, 1), -(202, 191, '', '订单管理退款原因', 'admin', 'store.storeOrder', 'refund_n', '[]', 0, 0, 1), -(203, 191, '', '订单管理退款原因提交', 'admin', 'store.storeOrder', 'updateRefundN', '[]', 0, 0, 1), -(204, 191, '', '订单管理修改配送信息', 'admin', 'store.storeOrder', 'distribution', '[]', 0, 0, 1), -(205, 191, '', '订单管理修改配送信息提交', 'admin', 'store.storeOrder', 'updateDistribution', '[]', 0, 0, 1), -(206, 191, '', '订单管理退款提交', 'admin', 'store.storeOrder', 'updateRefundY', '[]', 0, 0, 1), -(207, 191, '', '订单管理去发货提交', 'admin', 'store.storeOrder', 'updateDeliveryGoods', '[]', 0, 0, 1), -(208, 191, '', '订单管理去送货提交', 'admin', 'store.storeOrder', 'updateDelivery', '[]', 0, 0, 1), -(209, 175, '', '客服管理展示页', 'admin', 'store.storeService', 'index', '[]', 0, 0, 1), -(210, 175, '', '客服管理附加权限', 'admin', 'store.storeService', '', '[]', 0, 0, 1), -(211, 210, '', '客服管理添加', 'admin', 'store.storeService', 'create', '[]', 0, 0, 1), -(212, 210, '', '客服管理添加提交', 'admin', 'store.storeService', 'save', '[]', 0, 0, 1), -(213, 210, '', '客服管理编辑', 'admin', 'store.storeService', 'edit', '[]', 0, 0, 1), -(214, 210, '', '客服管理编辑提交', 'admin', 'store.storeService', 'update', '[]', 0, 0, 1), -(215, 210, '', '客服管理删除', 'admin', 'store.storeService', 'delete', '[]', 0, 0, 1), -(216, 179, '', '用户充值记录展示页', 'admin', 'user.userRecharge', 'index', '[]', 0, 0, 1), -(217, 179, '', '用户充值记录附加权限', 'admin', 'user.userRecharge', '', '[]', 0, 0, 1), -(218, 217, '', '用户充值记录退款', 'admin', 'user.userRecharge', 'edit', '[]', 0, 0, 1), -(219, 217, '', '用户充值记录退款提交', 'admin', 'user.userRecharge', 'updaterefundy', '[]', 0, 0, 1), -(220, 180, '', '预售卡管理批量修改预售卡金额', 'admin', 'presell.presellCard', 'batch_price', '[]', 0, 0, 1), -(221, 180, '', '预售卡管理批量修改预售卡金额提交', 'admin', 'presell.presellCard', 'savebatch', '[]', 0, 0, 1), -(222, 210, '', '客服管理聊天记录查询', 'admin', 'store.storeService', 'chat_user', '[]', 0, 0, 1), -(223, 210, '', '客服管理聊天记录查询详情', 'admin', 'store.storeService', 'chat_list', '[]', 0, 0, 1), -(224, 170, '', '评论管理展示页', 'admin', 'store.storeProductReply', 'index', '[]', 0, 0, 1), -(225, 170, '', '评论管理附加权限', 'admin', 'store.storeProductReply', '', '[]', 0, 0, 1), -(226, 225, '', '评论管理回复评论', 'admin', 'store.storeProductReply', 'set_reply', '[]', 0, 0, 1), -(227, 225, '', '评论管理修改回复评论', 'admin', 'store.storeProductReply', 'edit_reply', '[]', 0, 0, 1), -(228, 225, '', '评论管理删除评论', 'admin', 'store.storeProductReply', 'delete', '[]', 0, 0, 1), -(229, 149, '', '优惠券管理展示页', 'admin', 'store.storeCoupon', 'index', '[]', 0, 0, 1), -(230, 149, '', '优惠券管理附加权限', 'admin', 'store.storeCoupon', '', '[]', 0, 0, 1), -(231, 230, '', '优惠券管理添加', 'admin', 'store.storeCoupon', 'create', '[]', 0, 0, 1), -(232, 230, '', '优惠券管理添加提交', 'admin', 'store.storeCoupon', 'save', '[]', 0, 0, 1), -(233, 230, '', '优惠券管理删除', 'admin', 'store.storeCoupon', 'delete', '[]', 0, 0, 1), -(234, 230, '', '优惠券管理立即失效', 'admin', 'store.storeCoupon', 'status', '[]', 0, 0, 1), -(235, 148, '', '已发布管理', 'admin', 'ump.storeCouponIssue', 'index', '[]', 3, 1, 1), -(236, 82, '', '用户分组', 'admin', 'wechat.wechatUser', 'group', '[]', 0, 1, 1), -(237, 21, '', '刷新缓存', 'admin', 'system.clear', 'index', '[]', 0, 1, 1), -(239, 306, '', '提现申请', 'admin', 'finance.user_extract', 'index', '[]', 0, 1, 1), -(241, 273, '', '限时秒杀', 'admin', 'ump.storeSeckill', 'index', '[]', 0, 1, 1), -(244, 294, '', '财务报表', 'admin', 'record.storeStatistics', 'index', '[]', 0, 1, 1), -(246, 295, '', '用户统计', 'admin', 'user.user', 'user_analysis', '[]', 0, 1, 1), -(247, 153, '', '个人资料', 'admin', 'setting.systemAdmin', 'admininfo', '[]', 0, 0, 1), -(248, 247, '', '个人资料附加权限', 'admin', 'setting.systemAdmin', '', '[]', 0, 0, 1), -(249, 248, '', '个人资料提交保存', 'admin', 'system.systemAdmin', 'setAdminInfo', '[]', 0, 0, 1), -(250, 247, '', '个人资料展示页', 'admin', 'setting.systemAdmin', 'admininfo', '[]', 0, 0, 1), -(252, 21, '', '在线更新', 'admin', 'system.systemUpgradeclient', 'index', '[]', 0, 1, 1), -(255, 289, '', '后台通知', 'admin', 'setting.systemNotice', 'index', '[]', 0, 0, 1), -(256, 0, 'cloud', '服务器端', 'admin', 'upgrade', 'index', '[]', -100, 1, 1), -(261, 147, '', '编辑产品', 'admin', 'store.storeproduct', 'edit', '[]', 0, 0, 1), -(262, 147, '', '添加产品', 'admin', 'store.storeproduct', 'create', '[]', 0, 0, 1), -(263, 147, '', '编辑产品详情', 'admin', 'store.storeproduct', 'edit_content', '[]', 0, 0, 1), -(264, 147, '', '开启秒杀', 'admin', 'store.storeproduct', 'seckill', '[]', 0, 0, 1), -(265, 147, '', '开启秒杀', 'admin', 'store.store_product', 'bargain', '[]', 0, 0, 1), -(266, 147, '', '产品编辑属性', 'admin', 'store.storeproduct', 'attr', '[]', 0, 0, 1), -(267, 360, '', '公众号接口配置', 'admin', 'setting.systemConfig', 'index', '{"type":"1","tab_id":"2"}', 100, 1, 1), -(269, 0, 'cubes', '小程序', 'admin', 'routine', 'index', '[]', 92, 1, 1), -(270, 269, '', '小程序配置', 'admin', 'setting.systemConfig', 'index', '{"type":"2","tab_id":"7"}', 0, 1, 1), -(273, 286, '', '秒杀管理', 'admin', '', '', '[]', 0, 1, 1), -(276, 469, '', '附件管理', 'admin', 'widget.images', 'index', '[]', 0, 0, 1), -(278, 469, '', '清除数据', 'admin', 'system.systemCleardata', 'index', '[]', 0, 1, 1), -(283, 80, '', '文章管理', 'admin', 'article.article', 'index', '[]', 0, 1, 1), -(284, 80, '', '文章分类', 'admin', 'article.article_category', 'index', '[]', 0, 1, 1), -(285, 0, 'building-o', '订单', 'admin', 'order', 'index', '[]', 109, 1, 1), -(286, 0, 'paper-plane', '营销', 'admin', 'ump', 'index', '[]', 105, 1, 1), -(287, 0, 'money', '财务', 'admin', 'finance', 'index', '[]', 103, 1, 1), -(288, 0, 'line-chart', '数据', 'admin', 'record', 'index', '[]', 100, 1, 1), -(289, 0, 'gear', '设置', 'admin', 'setting', 'index', '[]', 90, 1, 1), -(290, 285, '', '售后服务', 'admin', '', '', '[]', 0, 1, 1), -(293, 288, '', '交易数据', 'admin', '', '', '[]', 100, 1, 1), -(294, 288, '', '财务数据', 'admin', '', '', '[]', 80, 1, 1), -(295, 288, '', '会员数据', 'admin', '', '', '[]', 70, 1, 1), -(296, 288, '', '营销数据', 'admin', '', '', '[]', 90, 1, 1), -(297, 288, '', '排行榜', 'admin', '', '', '[]', 0, 1, 1), -(300, 294, '', '提现统计', 'admin', 'record.record', 'chart_cash', '[]', 0, 1, 1), -(301, 294, '', '充值统计', 'admin', 'record.record', 'chart_recharge', '[]', 0, 1, 1), -(302, 294, '', '返佣统计', 'admin', 'record.record', 'chart_rebate', '[]', 0, 1, 1), -(303, 295, '', '会员增长', 'admin', 'record.record', 'user_chart', '[]', 0, 1, 1), -(304, 295, '', '会员业务', 'admin', 'record.record', 'user_business_chart', '[]', 0, 1, 1), -(305, 295, '', '会员属性', 'admin', 'record.record', 'user_attr', '[]', 0, 1, 1), -(306, 287, '', '财务操作', 'admin', '', '', '[]', 100, 1, 1), -(307, 287, '', '财务记录', 'admin', '', '', '[]', 50, 1, 1), -(308, 287, '', '佣金记录', 'admin', '', '', '[]', 0, 1, 1), -(312, 307, '', '资金监控', 'admin', 'finance.finance', 'bill', '[]', 0, 1, 1), -(313, 308, '', '佣金记录', 'admin', 'finance.finance', 'commission_list', '[]', 0, 1, 1), -(314, 296, '', '积分统计', 'admin', 'record.record', 'chart_score', '[]', 0, 1, 1), -(315, 296, '', '优惠券统计', 'admin', 'record.record', 'chart_coupon', '[]', 0, 1, 1), -(317, 296, '', '秒杀统计', 'admin', 'record.record', 'chart_seckill', '[]', 0, 1, 1), -(319, 297, '', '产品销售排行', 'admin', 'record.record', 'ranking_saleslists', '[]', 0, 1, 1), -(320, 297, '', '返佣排行', 'admin', 'record.record', 'ranking_commission', '[]', 0, 1, 1), -(321, 297, '', '积分排行', 'admin', 'record.record', 'ranking_point', '[]', 0, 1, 1), -(329, 285, '', '营销订单', 'admin', 'user', 'user', '[]', 0, 0, 1), -(334, 329, '', '秒杀订单', 'admin', 'user', '', '[]', 0, 0, 1), -(335, 329, '', '积分兑换', 'admin', 'user', '', '[]', 0, 0, 1), -(337, 0, 'users', '分销', 'admin', 'agent', 'index', '[]', 106, 1, 1), -(340, 293, '', '订单统计', 'admin', 'record.record', 'chart_order', '[]', 0, 1, 1), -(341, 293, '', '产品统计', 'admin', 'record.record', 'chart_product', '[]', 0, 1, 1), -(349, 286, '', '积分', 'admin', 'userPoint', 'index', '[]', 0, 1, 1), -(350, 349, '', '积分配置', 'admin', 'setting.systemConfig', 'index', '{"type":"3","tab_id":"11"}', 0, 1, 1), -(351, 349, '', '积分日志', 'admin', 'ump.userPoint', 'index', '[]', 0, 1, 1), -(352, 148, '', '优惠券配置', 'admin', 'setting.systemConfig', 'index', '{"type":"3","tab_id":"12"}', 0, 1, 1), -(353, 337, '', '分销配置', 'admin', 'setting.systemConfig', 'index', '{"type":"3","tab_id":"9"}', 0, 1, 1), -(354, 11, '', '自动回复', '', '', '', '[]', 80, 1, 1), -(355, 11, '', '页面设置', '', '', '', '[]', 90, 1, 1), -(356, 355, '', '个人中心菜单', 'admin', 'setting.system_group_data', 'index', '{"gid":"32"}', 0, 1, 1), -(357, 355, '', '商城首页banner', 'admin', 'setting.system_group_data', 'index', '{"gid":"34"}', 0, 1, 1), -(358, 355, '', '商城首页分类按钮', 'admin', 'setting.system_group_data', 'index', '{"gid":"35"}', 0, 1, 1), -(359, 355, '', '商城首页滚动新闻', 'admin', 'setting.system_group_data', 'index', '{"gid":"36"}', 0, 1, 1), -(360, 11, '', '公众号配置', '', '', '', '[]', 100, 1, 1), -(361, 360, '', '公众号支付配置', 'admin', 'setting.systemConfig', 'index', '{"type":"1","tab_id":"4"}', 0, 1, 1), -(362, 276, '', '附加权限', 'admin', 'widget.images', '', '[]', 0, 1, 1), -(363, 362, '', '上传图片', 'admin', 'widget.images', 'upload', '[]', 0, 0, 1), -(364, 362, '', '删除图片', 'admin', 'widget.images', 'delete', '[]', 0, 0, 1), -(365, 362, '', '附件管理', 'admin', 'widget.images', 'index', '[]', 0, 0, 1), -(369, 143, '', '添加产品分类', 'admin', 'store.storeCategory', 'create', '[]', 0, 0, 1), -(370, 143, '', '编辑产品分类', 'admin', 'store.storeCategory', 'edit', '[]', 0, 0, 1), -(371, 337, '', '分销员管理', 'admin', 'agent.agentManage', 'index', '[]', 0, 1, 1), -(372, 462, '', '首页幻灯片', 'admin', 'setting.system_group_data', 'index', '{"gid":"48"}', 0, 1, 1), -(373, 462, '', '首页导航按钮', 'admin', 'setting.system_group_data', 'index', '{"gid":"47"}', 0, 1, 1), -(374, 295, '', '分销会员业务', 'admin', 'record.record', 'user_distribution_chart', '[]', 0, 1, 1), -(376, 269, '', '小程序模板消息', 'admin', 'routine.routineTemplate', 'index', '[]', 0, 1, 1), -(377, 469, '', '数据备份', 'admin', 'system.systemDatabackup', 'index', '[]', 0, 1, 1), -(378, 289, '', '物流公司', 'admin', 'system.express', 'index', '[]', 0, 1, 1), -(379, 469, '', '文件管理', 'admin', 'system.systemFile', 'opendir', '[]', 0, 1, 1), -(380, 379, '', '权限规则', 'admin', 'system.systemFile', '', '[]', 0, 0, 1), -(381, 380, '', '打开文件', 'admin', 'system.systemFile', 'openfile', '[]', 0, 0, 1), -(382, 380, '', '编辑文件', 'admin', 'system.systemFile', 'savefile', '[]', 0, 0, 1), -(386, 362, '', '移动图片分类展示', 'admin', 'widget.images', 'moveimg', '[]', 0, 0, 1), -(387, 362, '', '编辑分类', 'admin', 'widget.images', 'updatecate', '[]', 0, 0, 1), -(388, 362, '', '添加分类', 'admin', 'widget.images', 'savecate', '[]', 0, 0, 1), -(389, 362, '', '移动图片分类', 'admin', 'widget.images', 'moveimgcecate', '[]', 0, 0, 1), -(390, 362, '', '编辑分类展示', 'admin', 'widget.images', 'editcate', '[]', 0, 0, 1), -(392, 362, '', '删除分类', 'admin', 'widget.images', 'deletecate', '[]', 0, 0, 1), -(393, 362, '', '添加分类展示', 'admin', 'widget.images', 'addcate', '[]', 0, 0, 1), -(394, 191, '', '订单获取列表', 'admin', 'store.storeOrder', 'order_list', '[]', 0, 0, 1), -(395, 82, '', '微信用户附加权限', 'admin', 'wechat.wechatUser', '', '[]', 0, 0, 1), -(396, 395, '', '推送消息', 'admin', 'wechat.wechat_news_category', 'push', '[]', 0, 0, 1), -(397, 395, '', '推送优惠券', 'admin', 'ump.storeCouponUser', 'grant', '[]', 0, 0, 1), -(398, 177, '', '会员列表页', 'admin', 'user.user', 'index', '[]', 0, 0, 1), -(399, 177, '', '会员附加权限', '', 'user.user', '', '[]', 0, 0, 1), -(400, 399, '', '修改用户状态', '', 'user.user', 'set_status', '[]', 0, 0, 1), -(401, 399, '', '编辑用户', 'admin', 'user.user', 'edit', '[]', 0, 0, 1), -(402, 399, '', '更新用户', 'admin', 'user.user', 'update', '[]', 0, 0, 1), -(403, 399, '', '查看用户', 'admin', 'user.user', 'see', '[]', 0, 0, 1), -(405, 399, '', '发优惠券', 'admin', 'ump.storeCouponUser', 'grant', '[]', 0, 0, 1), -(406, 399, '', '推送图文', 'admin', 'wechat.wechatNewsCategory', 'push', '[]', 0, 0, 1), -(407, 399, '', '发站内信', 'admin', 'user.userNotice', 'notice', '[]', 0, 0, 1), -(408, 176, '', '站内通知附加权限', 'admin', 'user.user_notice', '', '[]', 0, 0, 1), -(409, 408, '', '添加站内消息', 'admin', 'user.user_notice', 'save', '[]', 0, 0, 1), -(410, 408, '', '编辑站内消息', 'admin', 'user.user_notice', 'update', '[]', 0, 0, 1), -(411, 408, '', '发送站内消息', 'admin', 'user.user_notice', 'send', '[]', 0, 0, 1), -(412, 408, '', '删除站内消息', 'admin', 'user.user_notice', 'delete', '[]', 0, 0, 1), -(413, 408, '', '指定用户发送', 'admin', 'user.user_notice', 'send_user', '[]', 0, 0, 1), -(415, 371, '', '分销管理附加权限', 'admin', 'agent.agentManage', '', '[]', 0, 0, 1), -(416, 174, '', '微信模版消息附加权限', 'admin', 'wechat.wechatTemplate', '', '[]', 0, 0, 1), -(417, 416, '', '添加模版消息', 'admin', 'wechat.wechatTemplate', 'save', '[]', 0, 0, 1), -(418, 416, '', '添加模版消息展示', 'admin', 'wechat.wechatTemplate', 'create', '[]', 0, 0, 1), -(419, 416, '', '编辑模版消息展示', 'admin', 'wechat.wechatTemplate', 'edit', '[]', 0, 0, 1), -(420, 416, '', '更新模版消息展示', 'admin', 'wechat.wechatTemplate', 'update', '[]', 0, 0, 1), -(421, 416, '', '删除模版消息展示', 'admin', 'wechat.wechatTemplate', 'delete', '[]', 0, 0, 1), -(422, 376, '', '小程序模版消息附加权限', 'admin', 'routine.routineTemplate', '', '[]', 0, 0, 1), -(423, 422, '', '添加模版消息展示', 'admin', 'routine.routineTemplate', 'create', '[]', 0, 0, 1), -(424, 422, '', '添加模版消息', 'admin', 'routine.routineTemplate', 'save', '[]', 0, 0, 1), -(425, 422, '', '编辑模版消息展示', 'admin', 'routine.routineTemplate', 'edit', '[]', 0, 0, 1), -(426, 422, '', '编辑模版消息', 'admin', 'routine.routineTemplate', 'update', '[]', 0, 0, 1), -(427, 422, '', '删除模版消息', 'admin', 'routine.routineTemplate', 'delete', '[]', 0, 0, 1), -(439, 377, '', '数据库备份附加权限', 'admin', 'system.systemDatabackup', '', '[]', 0, 0, 1), -(440, 439, '', '查看表结构', 'admin', 'system.systemDatabackup', 'seetable', '[]', 0, 0, 1), -(441, 439, '', '优化表', 'admin', 'system.systemDatabackup', 'optimize', '[]', 0, 0, 1), -(442, 439, '', '修复表', 'admin', 'system.systemDatabackup', 'repair', '[]', 0, 0, 1), -(443, 439, '', '备份表', 'admin', 'system.systemDatabackup', 'backup', '[]', 0, 0, 1), -(444, 439, '', '删除备份', 'admin', 'system.systemDatabackup', 'delFile', '[]', 0, 0, 1), -(445, 439, '', '恢复备份', 'admin', 'system.systemDatabackup', 'import', '[]', 0, 0, 1), -(446, 439, '', '下载备份', 'admin', 'system.systemDatabackup', 'downloadFile', '[]', 0, 0, 1), -(447, 377, '', '数据备份展示页', 'admin', 'system.systemDatabackup', 'index', '[]', 0, 0, 1), -(448, 379, '', '文件管理展示页', 'admin', 'system.systemFile', 'index', '[]', 0, 0, 1), -(449, 176, '', '站内通知', 'admin', 'user.user_notice', 'index', '[]', 0, 0, 1), -(450, 371, '', '分销管理列表页', 'admin', 'agent.agentManage', 'index', '[]', 0, 0, 1), -(451, 376, '', '小程序模版消息列表页', 'admin', 'routine.routineTemplate', 'index', '[]', 0, 0, 1), -(452, 174, '', '微信模版消息列表页', 'admin', 'wechat.wechatTemplate', 'index', '[]', 0, 0, 1), -(453, 276, '', '附件管理展示页', 'admin', 'widget.images', 'index', '[]', 0, 0, 1), -(456, 151, '', '会员等级', 'admin', 'user.user_level', 'index', '[]', 0, 1, 1), -(458, 462, '', '签到天数配置', 'admin', 'setting.system_group_data', 'index', '{"gid":"55"}', 0, 1, 1), -(459, 462, '', '订单详情动态图', 'admin', 'setting.system_group_data', 'index', '{"gid":"53"}', 0, 1, 1), -(460, 462, '', '个人中心菜单', 'admin', 'setting.system_group_data', 'index', '{"gid":"54"}', 0, 1, 1), -(461, 462, '', '小程序首页滚动新闻', 'admin', 'setting.system_group_data', 'index', '{"gid":"50"}', 0, 1, 1), -(462, 269, '', '模块数据配置', 'admin', '', '', '[]', 100, 1, 1), -(463, 462, '', '热门榜单推荐banner', 'admin', 'setting.system_group_data', 'index', '{"gid":"57"}', 0, 1, 1), -(464, 462, '', '首发新品推荐banner', 'admin', 'setting.system_group_data', 'index', '{"gid":"58"}', 0, 1, 1), -(465, 462, '', '促销单品推荐banner', 'admin', 'setting.system_group_data', 'index', '{"gid":"59"}', 0, 1, 1), -(466, 462, '', '个人中心分销海报', 'admin', 'setting.system_group_data', 'index', '{"gid":"60"}', 0, 1, 1), -(467, 21, '', '开发配置', 'admin', 'system', '', '[]', 0, 1, 1), -(468, 1, '', '配置组合数据附加权限', 'admin', 'setting.systemGroupData', 'index', '[]', 0, 0, 1), -(469, 21, '', '安全维护', 'admin', 'system', '', '[]', 0, 1, 1), -(470, 1, '', '配置组合数据展示页', 'admin', 'setting.systemGroup', 'index', '[]', 0, 0, 1), -(471, 462, '', '小程序精品推荐', 'admin', 'setting.system_group_data', 'index', '{"gid":"52"}', 0, 0, 1); +INSERT INTO `eb_system_menus` VALUES (1,289,'','系统设置','admin','setting.systemConfig','index','[]',90,1,1),(2,153,'','权限规则','admin','setting.systemMenus','index','[]',7,1,1),(4,153,'','管理员列表','admin','setting.systemAdmin','index','[]',9,1,1),(7,467,'','配置分类','admin','setting.systemConfigTab','index','[]',1,1,1),(8,153,'','身份管理','admin','setting.systemRole','index','[]',10,1,1),(9,467,'','组合数据','admin','setting.systemGroup','index','[]',1,1,1),(11,0,'wechat','公众号','admin','wechat','index','[]',91,1,1),(12,354,'','微信关注回复','admin','wechat.reply','index','{\"key\":\"subscribe\",\"title\":\"\\u7f16\\u8f91\\u65e0\\u914d\\u7f6e\\u9ed8\\u8ba4\\u56de\\u590d\"}',86,1,1),(17,360,'','微信菜单','admin','wechat.menus','index','[]',95,1,1),(19,11,'','图文管理','admin','wechat.wechatNewsCategory','index','[]',60,1,1),(21,0,'magic','维护','admin','system','index','[]',1,1,1),(23,0,'laptop','商品','admin','store','index','[]',110,1,1),(24,23,'','商品管理','admin','store.storeProduct','index','{\"type\":\"1\"}',100,1,1),(25,23,'','商品分类','admin','store.storeCategory','index','[]',1,1,1),(26,285,'','订单管理','admin','order.storeOrder','index','[]',1,1,1),(30,354,'','关键字回复','admin','wechat.reply','keyword','[]',85,1,1),(31,354,'','无效关键词回复','admin','wechat.reply','index','{\"key\":\"default\",\"title\":\"\\u7f16\\u8f91\\u65e0\\u6548\\u5173\\u952e\\u5b57\\u9ed8\\u8ba4\\u56de\\u590d\"}',84,1,1),(33,284,'','附加权限','admin','article.articleCategory','','[]',0,0,1),(34,33,'','添加文章分类','admin','article.articleCategory','create','[]',0,0,1),(35,33,'','编辑文章分类','admin','article.articleCategory','edit','[]',0,0,1),(36,33,'','删除文章分类','admin','article.articleCategory','delete','[]',0,0,1),(37,31,'','附加权限','admin','wechat.reply','','[]',0,0,1),(38,283,'','附加权限','admin','article.article','','[]',0,0,1),(39,38,'','添加文章','admin','article. article','create','[]',0,0,1),(40,38,'','编辑文章','admin','article. article','add_new','[]',0,0,1),(41,38,'','删除文章','admin','article. article','delete','[]',0,0,1),(42,19,'','附加权限','admin','wechat.wechatNewsCategory','','[]',0,0,1),(43,42,'','添加图文消息','admin','wechat.wechatNewsCategory','create','[]',0,0,1),(44,42,'','编辑图文消息','admin','wechat.wechatNewsCategory','edit','[]',0,0,1),(45,42,'','删除图文消息','admin','wechat.wechatNewsCategory','delete','[]',0,0,1),(46,7,'','配置分类附加权限','admin','setting.systemConfigTab','','[]',0,0,1),(47,46,'','添加配置分类','admin','setting.systemConfigTab','create','[]',0,0,1),(48,117,'','添加配置','admin','setting.systemConfig','create','[]',0,0,1),(49,46,'','编辑配置分类','admin','setting.systemConfigTab','edit','[]',0,0,1),(50,46,'','删除配置分类','admin','setting.systemConfigTab','delete','[]',0,0,1),(51,46,'','查看子字段','admin','system.systemConfigTab','sonConfigTab','[]',0,0,1),(52,9,'','组合数据附加权限','admin','setting.systemGroup','','[]',0,0,1),(53,468,'','添加数据','admin','setting.systemGroupData','create','[]',0,0,1),(54,468,'','编辑数据','admin','setting.systemGroupData','edit','[]',0,0,1),(55,468,'','删除数据','admin','setting.systemGroupData','delete','[]',0,0,1),(56,468,'','数据列表','admin','setting.systemGroupData','index','[]',0,0,1),(57,52,'','添加数据组','admin','setting.systemGroup','create','[]',0,0,1),(58,52,'','删除数据组','admin','setting.systemGroup','delete','[]',0,0,1),(59,4,'','管理员列表附加权限','admin','setting.systemAdmin','','[]',0,0,1),(60,59,'','添加管理员','admin','setting.systemAdmin','create','[]',0,0,1),(61,59,'','编辑管理员','admin','setting.systemAdmin','edit','[]',0,0,1),(62,59,'','删除管理员','admin','setting.systemAdmin','delete','[]',0,0,1),(63,8,'','身份管理附加权限','admin','setting.systemRole','','[]',0,0,1),(64,63,'','添加身份','admin','setting.systemRole','create','[]',0,0,1),(65,63,'','修改身份','admin','setting.systemRole','edit','[]',0,0,1),(66,63,'','删除身份','admin','setting.systemRole','delete','[]',0,0,1),(67,8,'','身份管理展示页','admin','setting.systemRole','index','[]',0,0,1),(68,4,'','管理员列表展示页','admin','setting.systemAdmin','index','[]',0,0,1),(69,7,'','配置分类展示页','admin','setting.systemConfigTab','index','[]',0,0,1),(70,9,'','组合数据展示页','admin','setting.systemGroup','index','[]',0,0,1),(71,284,'','文章分类管理展示页','admin','article.articleCategory','index','[]',0,0,1),(72,283,'','文章管理展示页','admin','article.article','index','[]',0,0,1),(73,19,'','图文消息展示页','admin','wechat.wechatNewsCategory','index','[]',0,0,1),(74,2,'','菜单管理附加权限','admin','setting.systemMenus','','[]',0,0,1),(75,74,'','添加菜单','admin','setting.systemMenus','create','[]',0,0,1),(76,74,'','编辑菜单','admin','setting.systemMenus','edit','[]',0,0,1),(77,74,'','删除菜单','admin','setting.systemMenus','delete','[]',0,0,1),(78,2,'','菜单管理展示页','admin','setting.systemMenus','index','[]',0,0,1),(80,0,'leanpub','内容','admin','article','index','[]',90,1,1),(82,11,'','微信用户管理','admin','user','list','[]',5,1,1),(84,82,'','用户标签','admin','wechat.wechatUser','tag','[]',0,1,1),(89,30,'','关键字回复附加权限','admin','wechat.reply','','[]',0,0,1),(90,89,'','添加关键字','admin','wechat.reply','add_keyword','[]',0,0,1),(91,89,'','修改关键字','admin','wechat.reply','info_keyword','[]',0,0,1),(92,89,'','删除关键字','admin','wechat.reply','delete','[]',0,0,1),(93,30,'','关键字回复展示页','admin','wechat.reply','keyword','[]',0,0,1),(94,31,'','无效关键词回复展示页','admin','wechat.reply','index','[]',0,0,1),(95,31,'','无效关键词回复附加权限','admin','wechat.reply','','[]',0,0,1),(96,95,'','无效关键词回复提交按钮','admin','wechat.reply','save','{\"key\":\"default\",\"title\":\"编辑无效关键字默认回复\"}',0,0,1),(97,12,'','微信关注回复展示页','admin','wechat.reply','index','[]',0,0,1),(98,12,'','微信关注回复附加权限','admin','wechat.reply','','[]',0,0,1),(99,98,'','微信关注回复提交按钮','admin','wechat.reply','save','{\"key\":\"subscribe\",\"title\":\"编辑无配置默认回复\"}',0,0,1),(100,74,'','添加提交菜单','admin','setting.systemMenus','save','[]',0,0,1),(101,74,'','编辑提交菜单','admin','setting.systemMenus','update','[]',0,0,1),(102,59,'','提交添加管理员','admin','setting.systemAdmin','save','[]',0,0,1),(103,59,'','提交修改管理员','admin','setting.systemAdmin','update','[]',0,0,1),(104,63,'','提交添加身份','admin','setting.systemRole','save','[]',0,0,1),(105,63,'','提交修改身份','admin','setting.systemRole','update','[]',0,0,1),(106,46,'','提交添加配置分类','admin','setting.systemConfigTab','save','[]',0,0,1),(107,46,'','提交修改配置分类','admin','setting.systemConfigTab','update','[]',0,0,1),(108,117,'','提交添加配置列表','admin','setting.systemConfig','save','[]',0,0,1),(109,52,'','提交添加数据组','admin','setting.systemGroup','save','[]',0,0,1),(110,52,'','提交修改数据组','admin','setting.systemGroup','update','[]',0,0,1),(111,468,'','提交添加数据','admin','setting.systemGroupData','save','[]',0,0,1),(112,468,'','提交修改数据','admin','setting.systemGroupData','update','[]',0,0,1),(113,33,'','提交添加文章分类','admin','article.articleCategory','save','[]',0,0,1),(114,33,'','提交添加文章分类','admin','article.articleCategory','update','[]',0,0,1),(115,42,'','提交添加图文消息','admin','wechat.wechatNewsCategory','save','[]',0,0,1),(116,42,'','提交编辑图文消息','admin','wechat.wechatNewsCategory','update','[]',0,0,1),(117,1,'','配置列表附加权限','admin','setting.systemConfig','','[]',0,0,1),(118,1,'','配置列表展示页','admin','setting.systemConfig','index','[]',0,0,1),(119,117,'','提交保存配置列表','admin','setting.systemConfig','save_basics','[]',0,0,1),(123,89,'','提交添加关键字','admin','wechat.reply','save_keyword','{\"dis\":\"1\"}',0,0,1),(124,89,'','提交修改关键字','admin','wechat.reply','save_keyword','{\"dis\":\"2\"}',0,0,1),(126,17,'','微信菜单展示页','admin','wechat.menus','index','[]',0,0,1),(127,17,'','微信菜单附加权限','admin','wechat.menus','','[]',0,0,1),(128,127,'','提交微信菜单按钮','admin','wechat.menus','save','{\"dis\":\"1\"}',0,0,1),(129,82,'','用户行为纪录','admin','wechat.wechatMessage','index','[]',0,1,1),(130,469,'','系统日志','admin','system.systemLog','index','[]',5,1,1),(131,130,'','管理员操作记录展示页','admin','system.systemLog','index','[]',0,0,1),(132,129,'','微信用户行为纪录展示页','admin','wechat.wechatMessage','index','[]',0,0,1),(133,82,'','微信用户','admin','wechat.wechatUser','index','[]',1,1,1),(134,133,'','微信用户展示页','admin','wechat.wechatUser','index','[]',0,0,1),(137,135,'','添加通知模板','admin','system.systemNotice','create','[]',0,0,1),(138,135,'','编辑通知模板','admin','system.systemNotice','edit','[]',0,0,1),(139,135,'','删除辑通知模板','admin','system.systemNotice','delete','[]',0,0,1),(140,135,'','提交编辑辑通知模板','admin','system.systemNotice','update','[]',0,0,1),(141,135,'','提交添加辑通知模板','admin','system.systemNotice','save','[]',0,0,1),(142,25,'','产品分类展示页','admin','store.storeCategory','index','[]',0,0,1),(143,25,'','产品分类附加权限','admin','store.storeCategory','','[]',0,0,1),(144,117,'','获取配置列表上传文件的名称','admin','setting.systemConfig','getimagename','[]',0,0,1),(145,117,'','配置列表上传文件','admin','setting.systemConfig','view_upload','[]',0,0,1),(146,24,'','产品管理展示页','admin','store.storeProduct','index','[]',0,0,1),(147,24,'','产品管理附加权限','admin','store.storeProduct','','[]',0,0,1),(148,286,'','优惠券','','','','[]',10,1,1),(149,148,'','优惠券制作','admin','ump.storeCoupon','index','[]',5,1,1),(150,148,'','会员领取记录','admin','ump.storeCouponUser','index','[]',1,1,1),(151,0,'user','会员','admin','user','index','[]',107,1,1),(153,289,'','管理权限','admin','setting.systemAdmin','','[]',100,1,1),(155,154,'','商户产品展示页','admin','store.storeMerchant','index','[]',0,0,1),(156,154,'','商户产品附加权限','admin','store.storeMerchant','','[]',0,0,1),(158,157,'','商户文章管理展示页','admin','wechat.wechatNews','merchantIndex','[]',0,0,1),(159,157,'','商户文章管理附加权限','admin','wechat.wechatNews','','[]',0,0,1),(170,290,'','评论管理','admin','store.store_product_reply','index','[]',0,1,1),(173,469,'','文件校验','admin','system.systemFile','index','[]',1,1,1),(174,360,'','微信模板消息','admin','wechat.wechatTemplate','index','[]',1,1,1),(175,11,'','客服管理','admin','wechat.storeService','index','[]',70,1,1),(176,151,'','站内通知','admin','user.user_notice','index','[]',8,1,1),(177,151,'','会员管理','admin','user.user','index','[]',10,1,1),(179,307,'','充值记录','admin','finance.userRecharge','index','[]',1,1,1),(190,26,'','订单管理展示页','admin','store.storeOrder','index','[]',0,0,1),(191,26,'','订单管理附加权限','admin','store.storeOrder','','[]',0,0,1),(192,191,'','订单管理去发货','admin','store.storeOrder','deliver_goods','[]',0,0,1),(193,191,'','订单管理备注','admin','store.storeOrder','remark','[]',0,0,1),(194,191,'','订单管理去送货','admin','store.storeOrder','delivery','[]',0,0,1),(195,191,'','订单管理已收货','admin','store.storeOrder','take_delivery','[]',0,0,1),(196,191,'','订单管理退款','admin','store.storeOrder','refund_y','[]',0,0,1),(197,191,'','订单管理修改订单','admin','store.storeOrder','edit','[]',0,0,1),(198,191,'','订单管理修改订单提交','admin','store.storeOrder','update','[]',0,0,1),(199,191,'','订单管理退积分','admin','store.storeOrder','integral_back','[]',0,0,1),(200,191,'','订单管理退积分提交','admin','store.storeOrder','updateIntegralBack','[]',0,0,1),(201,191,'','订单管理立即支付','admin','store.storeOrder','offline','[]',0,0,1),(202,191,'','订单管理退款原因','admin','store.storeOrder','refund_n','[]',0,0,1),(203,191,'','订单管理退款原因提交','admin','store.storeOrder','updateRefundN','[]',0,0,1),(204,191,'','订单管理修改配送信息','admin','store.storeOrder','distribution','[]',0,0,1),(205,191,'','订单管理修改配送信息提交','admin','store.storeOrder','updateDistribution','[]',0,0,1),(206,191,'','订单管理退款提交','admin','store.storeOrder','updateRefundY','[]',0,0,1),(207,191,'','订单管理去发货提交','admin','store.storeOrder','updateDeliveryGoods','[]',0,0,1),(208,191,'','订单管理去送货提交','admin','store.storeOrder','updateDelivery','[]',0,0,1),(209,175,'','客服管理展示页','admin','store.storeService','index','[]',0,0,1),(210,175,'','客服管理附加权限','admin','store.storeService','','[]',0,0,1),(211,210,'','客服管理添加','admin','store.storeService','create','[]',0,0,1),(212,210,'','客服管理添加提交','admin','store.storeService','save','[]',0,0,1),(213,210,'','客服管理编辑','admin','store.storeService','edit','[]',0,0,1),(214,210,'','客服管理编辑提交','admin','store.storeService','update','[]',0,0,1),(215,210,'','客服管理删除','admin','store.storeService','delete','[]',0,0,1),(216,179,'','用户充值记录展示页','admin','user.userRecharge','index','[]',0,0,1),(217,179,'','用户充值记录附加权限','admin','user.userRecharge','','[]',0,0,1),(218,217,'','用户充值记录退款','admin','user.userRecharge','edit','[]',0,0,1),(219,217,'','用户充值记录退款提交','admin','user.userRecharge','updaterefundy','[]',0,0,1),(220,180,'','预售卡管理批量修改预售卡金额','admin','presell.presellCard','batch_price','[]',0,0,1),(221,180,'','预售卡管理批量修改预售卡金额提交','admin','presell.presellCard','savebatch','[]',0,0,1),(222,210,'','客服管理聊天记录查询','admin','store.storeService','chat_user','[]',0,0,1),(223,210,'','客服管理聊天记录查询详情','admin','store.storeService','chat_list','[]',0,0,1),(224,170,'','评论管理展示页','admin','store.storeProductReply','index','[]',0,0,1),(225,170,'','评论管理附加权限','admin','store.storeProductReply','','[]',0,0,1),(226,225,'','评论管理回复评论','admin','store.storeProductReply','set_reply','[]',0,0,1),(227,225,'','评论管理修改回复评论','admin','store.storeProductReply','edit_reply','[]',0,0,1),(228,225,'','评论管理删除评论','admin','store.storeProductReply','delete','[]',0,0,1),(229,149,'','优惠券管理展示页','admin','store.storeCoupon','index','[]',0,0,1),(230,149,'','优惠券管理附加权限','admin','store.storeCoupon','','[]',0,0,1),(231,230,'','优惠券管理添加','admin','store.storeCoupon','create','[]',0,0,1),(232,230,'','优惠券管理添加提交','admin','store.storeCoupon','save','[]',0,0,1),(233,230,'','优惠券管理删除','admin','store.storeCoupon','delete','[]',0,0,1),(234,230,'','优惠券管理立即失效','admin','store.storeCoupon','status','[]',0,0,1),(235,148,'','已发布管理','admin','ump.storeCouponIssue','index','[]',3,1,1),(236,82,'','用户分组','admin','wechat.wechatUser','group','[]',0,1,1),(237,21,'','刷新缓存','admin','system.clear','index','[]',0,1,1),(238,272,'','拼团产品','admin','ump.storeCombination','index','[]',0,1,1),(239,306,'','提现申请','admin','finance.user_extract','index','[]',0,1,1),(241,273,'','限时秒杀','admin','ump.storeSeckill','index','[]',0,1,1),(244,294,'','财务报表','admin','record.storeStatistics','index','[]',0,1,1),(246,295,'','用户统计','admin','user.user','user_analysis','[]',0,1,1),(247,153,'','个人资料','admin','setting.systemAdmin','admininfo','[]',0,0,1),(248,247,'','个人资料附加权限','admin','setting.systemAdmin','','[]',0,0,1),(249,248,'','个人资料提交保存','admin','system.systemAdmin','setAdminInfo','[]',0,0,1),(250,247,'','个人资料展示页','admin','setting.systemAdmin','admininfo','[]',0,0,1),(252,21,'','在线更新','admin','system.systemUpgradeclient','index','[]',0,1,1),(254,271,'','砍价产品','admin','ump.storeBargain','index','[]',0,1,1),(255,289,'','后台通知','admin','setting.systemNotice','index','[]',0,0,1),(256,0,'cloud','服务器端','admin','upgrade','index','[]',-100,1,1),(261,147,'','编辑产品','admin','store.storeproduct','edit','[]',0,0,1),(262,147,'','添加产品','admin','store.storeproduct','create','[]',0,0,1),(263,147,'','编辑产品详情','admin','store.storeproduct','edit_content','[]',0,0,1),(264,147,'','开启秒杀','admin','store.storeproduct','seckill','[]',0,0,1),(265,147,'','开启秒杀','admin','store.store_product','bargain','[]',0,0,1),(266,147,'','产品编辑属性','admin','store.storeproduct','attr','[]',0,0,1),(267,360,'','公众号接口配置','admin','setting.systemConfig','index','{\"type\":\"1\",\"tab_id\":\"2\"}',100,1,1),(269,0,'cubes','小程序','admin','routine','index','[]',92,1,1),(270,269,'','小程序配置','admin','setting.systemConfig','index','{\"type\":\"2\",\"tab_id\":\"7\"}',0,1,1),(271,286,'','砍价管理','admin','','','[]',0,1,1),(272,286,'','拼团管理','admin','','','[]',0,1,1),(273,286,'','秒杀管理','admin','','','[]',0,1,1),(276,469,'','附件管理','admin','widget.images','index','[]',0,0,1),(278,469,'','清除数据','admin','system.systemCleardata','index','[]',0,1,1),(283,80,'','文章管理','admin','article.article','index','[]',0,1,1),(284,80,'','文章分类','admin','article.article_category','index','[]',0,1,1),(285,0,'building-o','订单','admin','order','index','[]',109,1,1),(286,0,'paper-plane','营销','admin','ump','index','[]',105,1,1),(287,0,'money','财务','admin','finance','index','[]',103,1,1),(288,0,'line-chart','数据','admin','record','index','[]',100,1,1),(289,0,'gear','设置','admin','setting','index','[]',90,1,1),(290,285,'','售后服务','admin','','','[]',0,1,1),(293,288,'','交易数据','admin','','','[]',100,1,1),(294,288,'','财务数据','admin','','','[]',80,1,1),(295,288,'','会员数据','admin','','','[]',70,1,1),(296,288,'','营销数据','admin','','','[]',90,1,1),(297,288,'','排行榜','admin','','','[]',0,1,1),(300,294,'','提现统计','admin','record.record','chart_cash','[]',0,1,1),(301,294,'','充值统计','admin','record.record','chart_recharge','[]',0,1,1),(302,294,'','返佣统计','admin','record.record','chart_rebate','[]',0,1,1),(303,295,'','会员增长','admin','record.record','user_chart','[]',0,1,1),(304,295,'','会员业务','admin','record.record','user_business_chart','[]',0,1,1),(305,295,'','会员属性','admin','record.record','user_attr','[]',0,1,1),(306,287,'','财务操作','admin','','','[]',100,1,1),(307,287,'','财务记录','admin','','','[]',50,1,1),(308,287,'','佣金记录','admin','','','[]',0,1,1),(312,307,'','资金监控','admin','finance.finance','bill','[]',0,1,1),(313,308,'','佣金记录','admin','finance.finance','commission_list','[]',0,1,1),(314,296,'','积分统计','admin','record.record','chart_score','[]',0,1,1),(315,296,'','优惠券统计','admin','record.record','chart_coupon','[]',0,1,1),(316,296,'','拼团统计','admin','record.record','chart_combination','[]',0,1,1),(317,296,'','秒杀统计','admin','record.record','chart_seckill','[]',0,1,1),(318,296,'','砍价统计','admin','record.record','chart_bargain','[]',0,1,1),(319,297,'','产品销售排行','admin','record.record','ranking_saleslists','[]',0,1,1),(320,297,'','返佣排行','admin','record.record','ranking_commission','[]',0,1,1),(321,297,'','积分排行','admin','record.record','ranking_point','[]',0,1,1),(329,285,'','营销订单','admin','user','user','[]',0,0,1),(333,272,'','拼团列表','admin','ump.storeCombination','combina_list','[]',0,1,1),(334,329,'','秒杀订单','admin','user','','[]',0,0,1),(335,329,'','积分兑换','admin','user','','[]',0,0,1),(337,0,'users','分销','admin','agent','index','[]',106,1,1),(340,293,'','订单统计','admin','record.record','chart_order','[]',0,1,1),(341,293,'','产品统计','admin','record.record','chart_product','[]',0,1,1),(349,286,'','积分','admin','userPoint','index','[]',0,1,1),(350,349,'','积分配置','admin','setting.systemConfig','index','{\"type\":\"3\",\"tab_id\":\"11\"}',0,1,1),(351,349,'','积分日志','admin','ump.userPoint','index','[]',0,1,1),(352,148,'','优惠券配置','admin','setting.systemConfig','index','{\"type\":\"3\",\"tab_id\":\"12\"}',0,1,1),(353,337,'','分销配置','admin','setting.systemConfig','index','{\"type\":\"3\",\"tab_id\":\"9\"}',0,1,1),(354,11,'','自动回复','','','','[]',80,1,1),(355,11,'','页面设置','','','','[]',90,1,1),(356,355,'','个人中心菜单','admin','setting.system_group_data','index','{\"gid\":\"32\"}',0,1,1),(357,355,'','商城首页banner','admin','setting.system_group_data','index','{\"gid\":\"34\"}',0,1,1),(358,355,'','商城首页分类按钮','admin','setting.system_group_data','index','{\"gid\":\"35\"}',0,1,1),(359,355,'','商城首页滚动新闻','admin','setting.system_group_data','index','{\"gid\":\"36\"}',0,1,1),(360,11,'','公众号配置','','','','[]',100,1,1),(361,360,'','公众号支付配置','admin','setting.systemConfig','index','{\"type\":\"1\",\"tab_id\":\"4\"}',0,1,1),(362,276,'','附加权限','admin','widget.images','','[]',0,1,1),(363,362,'','上传图片','admin','widget.images','upload','[]',0,0,1),(364,362,'','删除图片','admin','widget.images','delete','[]',0,0,1),(365,362,'','附件管理','admin','widget.images','index','[]',0,0,1),(366,254,'','其它权限管理','','','','[]',0,0,1),(367,366,'','编辑砍价','admin','ump.storeBargain','edit','[]',0,0,1),(368,366,'','砍价产品更新','admin','ump.storeBargain','update','[]',0,1,1),(369,143,'','添加产品分类','admin','store.storeCategory','create','[]',0,0,1),(370,143,'','编辑产品分类','admin','store.storeCategory','edit','[]',0,0,1),(371,337,'','分销员管理','admin','agent.agentManage','index','[]',0,1,1),(372,462,'','首页幻灯片','admin','setting.system_group_data','index','{\"gid\":\"48\"}',0,1,1),(373,462,'','首页导航按钮','admin','setting.system_group_data','index','{\"gid\":\"47\"}',0,1,1),(374,295,'','分销会员业务','admin','record.record','user_distribution_chart','[]',0,1,1),(376,269,'','小程序模板消息','admin','routine.routineTemplate','index','[]',0,1,1),(377,469,'','数据备份','admin','system.systemDatabackup','index','[]',0,1,1),(378,289,'','物流公司','admin','system.express','index','[]',0,1,1),(379,469,'','文件管理','admin','system.systemFile','opendir','[]',0,1,1),(380,379,'','权限规则','admin','system.systemFile','','[]',0,0,1),(381,380,'','打开文件','admin','system.systemFile','openfile','[]',0,0,1),(382,380,'','编辑文件','admin','system.systemFile','savefile','[]',0,0,1),(386,362,'','移动图片分类展示','admin','widget.images','moveimg','[]',0,0,1),(387,362,'','编辑分类','admin','widget.images','updatecate','[]',0,0,1),(388,362,'','添加分类','admin','widget.images','savecate','[]',0,0,1),(389,362,'','移动图片分类','admin','widget.images','moveimgcecate','[]',0,0,1),(390,362,'','编辑分类展示','admin','widget.images','editcate','[]',0,0,1),(392,362,'','删除分类','admin','widget.images','deletecate','[]',0,0,1),(393,362,'','添加分类展示','admin','widget.images','addcate','[]',0,0,1),(394,191,'','订单获取列表','admin','store.storeOrder','order_list','[]',0,0,1),(395,82,'','微信用户附加权限','admin','wechat.wechatUser','','[]',0,0,1),(396,395,'','推送消息','admin','wechat.wechat_news_category','push','[]',0,0,1),(397,395,'','推送优惠券','admin','ump.storeCouponUser','grant','[]',0,0,1),(398,177,'','会员列表页','admin','user.user','index','[]',0,0,1),(399,177,'','会员附加权限','','user.user','','[]',0,0,1),(400,399,'','修改用户状态','','user.user','set_status','[]',0,0,1),(401,399,'','编辑用户','admin','user.user','edit','[]',0,0,1),(402,399,'','更新用户','admin','user.user','update','[]',0,0,1),(403,399,'','查看用户','admin','user.user','see','[]',0,0,1),(405,399,'','发优惠券','admin','ump.storeCouponUser','grant','[]',0,0,1),(406,399,'','推送图文','admin','wechat.wechatNewsCategory','push','[]',0,0,1),(407,399,'','发站内信','admin','user.userNotice','notice','[]',0,0,1),(408,176,'','站内通知附加权限','admin','user.user_notice','','[]',0,0,1),(409,408,'','添加站内消息','admin','user.user_notice','save','[]',0,0,1),(410,408,'','编辑站内消息','admin','user.user_notice','update','[]',0,0,1),(411,408,'','发送站内消息','admin','user.user_notice','send','[]',0,0,1),(412,408,'','删除站内消息','admin','user.user_notice','delete','[]',0,0,1),(413,408,'','指定用户发送','admin','user.user_notice','send_user','[]',0,0,1),(415,371,'','分销管理附加权限','admin','agent.agentManage','','[]',0,0,1),(416,174,'','微信模版消息附加权限','admin','wechat.wechatTemplate','','[]',0,0,1),(417,416,'','添加模版消息','admin','wechat.wechatTemplate','save','[]',0,0,1),(418,416,'','添加模版消息展示','admin','wechat.wechatTemplate','create','[]',0,0,1),(419,416,'','编辑模版消息展示','admin','wechat.wechatTemplate','edit','[]',0,0,1),(420,416,'','更新模版消息展示','admin','wechat.wechatTemplate','update','[]',0,0,1),(421,416,'','删除模版消息展示','admin','wechat.wechatTemplate','delete','[]',0,0,1),(422,376,'','小程序模版消息附加权限','admin','routine.routineTemplate','','[]',0,0,1),(423,422,'','添加模版消息展示','admin','routine.routineTemplate','create','[]',0,0,1),(424,422,'','添加模版消息','admin','routine.routineTemplate','save','[]',0,0,1),(425,422,'','编辑模版消息展示','admin','routine.routineTemplate','edit','[]',0,0,1),(426,422,'','编辑模版消息','admin','routine.routineTemplate','update','[]',0,0,1),(427,422,'','删除模版消息','admin','routine.routineTemplate','delete','[]',0,0,1),(439,377,'','数据库备份附加权限','admin','system.systemDatabackup','','[]',0,0,1),(440,439,'','查看表结构','admin','system.systemDatabackup','seetable','[]',0,0,1),(441,439,'','优化表','admin','system.systemDatabackup','optimize','[]',0,0,1),(442,439,'','修复表','admin','system.systemDatabackup','repair','[]',0,0,1),(443,439,'','备份表','admin','system.systemDatabackup','backup','[]',0,0,1),(444,439,'','删除备份','admin','system.systemDatabackup','delFile','[]',0,0,1),(445,439,'','恢复备份','admin','system.systemDatabackup','import','[]',0,0,1),(446,439,'','下载备份','admin','system.systemDatabackup','downloadFile','[]',0,0,1),(447,377,'','数据备份展示页','admin','system.systemDatabackup','index','[]',0,0,1),(448,379,'','文件管理展示页','admin','system.systemFile','index','[]',0,0,1),(449,176,'','站内通知','admin','user.user_notice','index','[]',0,0,1),(450,371,'','分销管理列表页','admin','agent.agentManage','index','[]',0,0,1),(451,376,'','小程序模版消息列表页','admin','routine.routineTemplate','index','[]',0,0,1),(452,174,'','微信模版消息列表页','admin','wechat.wechatTemplate','index','[]',0,0,1),(453,276,'','附件管理展示页','admin','widget.images','index','[]',0,0,1),(456,151,'','会员等级','admin','user.user_level','index','[]',0,1,1),(458,462,'','签到天数配置','admin','setting.system_group_data','index','{\"gid\":\"55\"}',0,1,1),(459,462,'','订单详情动态图','admin','setting.system_group_data','index','{\"gid\":\"53\"}',0,1,1),(460,462,'','个人中心菜单','admin','setting.system_group_data','index','{\"gid\":\"54\"}',0,1,1),(461,462,'','小程序首页滚动新闻','admin','setting.system_group_data','index','{\"gid\":\"50\"}',0,1,1),(462,269,'','模块数据配置','admin','','','[]',100,1,1),(463,462,'','热门榜单推荐banner','admin','setting.system_group_data','index','{\"gid\":\"57\"}',0,1,1),(464,462,'','首发新品推荐banner','admin','setting.system_group_data','index','{\"gid\":\"58\"}',0,1,1),(465,462,'','促销单品推荐banner','admin','setting.system_group_data','index','{\"gid\":\"59\"}',0,1,1),(466,462,'','个人中心分销海报','admin','setting.system_group_data','index','{\"gid\":\"60\"}',0,1,1),(467,21,'','开发配置','admin','system','','[]',0,1,1),(468,1,'','配置组合数据附加权限','admin','setting.systemGroupData','index','[]',0,0,1),(469,21,'','安全维护','admin','system','','[]',0,1,1),(470,1,'','配置组合数据展示页','admin','setting.systemGroup','index','[]',0,0,1),(471,462,'','小程序精品推荐','admin','setting.system_group_data','index','{\"gid\":\"52\"}',0,1,1),(472,462,'','首页活动区域图片','admin','setting.system_group_data','index','{\"gid\":\"51\"}',0,1,1); --- -------------------------------------------------------- - --- --- 表的结构 `eb_system_notice` --- - -CREATE TABLE IF NOT EXISTS `eb_system_notice` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '通知模板id', - `title` varchar(64) NOT NULL COMMENT '通知标题', - `type` varchar(64) NOT NULL COMMENT '通知类型', - `icon` varchar(16) NOT NULL COMMENT '图标', - `url` varchar(64) NOT NULL COMMENT '链接', - `table_title` varchar(256) NOT NULL COMMENT '通知数据', - `template` varchar(64) NOT NULL COMMENT '通知模板', - `push_admin` varchar(128) NOT NULL COMMENT '通知管理员id', - `status` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '状态', +-- ---------------------------- +-- Table structure for eb_system_notice +-- ---------------------------- +DROP TABLE IF EXISTS `eb_system_notice`; +CREATE TABLE `eb_system_notice` ( + `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '通知模板id', + `title` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '通知标题', + `type` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '通知类型', + `icon` varchar(16) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '图标', + `url` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '链接', + `table_title` varchar(256) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '通知数据', + `template` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '通知模板', + `push_admin` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '通知管理员id', + `status` tinyint(1) UNSIGNED NOT NULL DEFAULT 1 COMMENT '状态', PRIMARY KEY (`id`) USING BTREE, - UNIQUE KEY `type` (`type`) USING BTREE, - KEY `status` (`status`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='通知模板表' AUTO_INCREMENT=10 ; + UNIQUE INDEX `type`(`type`) USING BTREE, + INDEX `status`(`status`) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 10 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '通知模板表' ROW_FORMAT = DYNAMIC; --- --- 转存表中的数据 `eb_system_notice` --- +-- ---------------------------- +-- Records of eb_system_notice +-- ---------------------------- +INSERT INTO `eb_system_notice` VALUES (5, '用户关注通知', 'user_sub', 'user-plus', '', '[{\"title\":\"openid\",\"key\":\"openid\"},{\"title\":\"\\u5fae\\u4fe1\\u6635\\u79f0\",\"key\":\"nickname\"},{\"title\":\"\\u5173\\u6ce8\\u4e8b\\u4ef6\",\"key\":\"add_time\"}]', '有%u个新用户关注了公众号', '1', 1); +INSERT INTO `eb_system_notice` VALUES (7, '新订单提醒', '订单提醒', 'building-o', '', '[{\"title\":\"\\u8ba2\\u5355\\u53f7\",\"key\":\"key1\"}]', '新订单提醒', '1', 1); +INSERT INTO `eb_system_notice` VALUES (9, '测试通知中 ', '测试', 'buysellads', '', '[{\"title\":\"\\u8ba2\\u5355\\u53f7\",\"key\":\"key1\"}]', '测试', '20', 1); -INSERT INTO `eb_system_notice` (`id`, `title`, `type`, `icon`, `url`, `table_title`, `template`, `push_admin`, `status`) VALUES -(5, '用户关注通知', 'user_sub', 'user-plus', '', '[{"title":"openid","key":"openid"},{"title":"\\u5fae\\u4fe1\\u6635\\u79f0","key":"nickname"},{"title":"\\u5173\\u6ce8\\u4e8b\\u4ef6","key":"add_time"}]', '有%u个新用户关注了公众号', '1', 1), -(7, '新订单提醒', '订单提醒', 'building-o', '', '[{"title":"\\u8ba2\\u5355\\u53f7","key":"key1"}]', '新订单提醒', '1', 1), -(9, '测试通知中 ', '测试', 'buysellads', '', '[{"title":"\\u8ba2\\u5355\\u53f7","key":"key1"}]', '测试', '20', 1); - --- -------------------------------------------------------- - --- --- 表的结构 `eb_system_notice_admin` --- - -CREATE TABLE IF NOT EXISTS `eb_system_notice_admin` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '通知记录ID', - `notice_type` varchar(64) NOT NULL COMMENT '通知类型', - `admin_id` smallint(5) unsigned NOT NULL COMMENT '通知的管理员', - `link_id` int(10) unsigned NOT NULL COMMENT '关联ID', - `table_data` text NOT NULL COMMENT '通知的数据', - `is_click` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '点击次数', - `is_visit` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '访问次数', +-- ---------------------------- +-- Table structure for eb_system_notice_admin +-- ---------------------------- +DROP TABLE IF EXISTS `eb_system_notice_admin`; +CREATE TABLE `eb_system_notice_admin` ( + `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '通知记录ID', + `notice_type` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '通知类型', + `admin_id` smallint(5) UNSIGNED NOT NULL COMMENT '通知的管理员', + `link_id` int(10) UNSIGNED NOT NULL COMMENT '关联ID', + `table_data` text CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '通知的数据', + `is_click` tinyint(3) UNSIGNED NOT NULL DEFAULT 0 COMMENT '点击次数', + `is_visit` tinyint(3) UNSIGNED NOT NULL DEFAULT 0 COMMENT '访问次数', `visit_time` int(11) NOT NULL COMMENT '访问时间', - `add_time` int(10) unsigned NOT NULL COMMENT '通知时间', + `add_time` int(10) UNSIGNED NOT NULL COMMENT '通知时间', PRIMARY KEY (`id`) USING BTREE, - KEY `admin_id` (`admin_id`,`notice_type`) USING BTREE, - KEY `add_time` (`add_time`) USING BTREE, - KEY `is_visit` (`is_visit`) USING BTREE, - KEY `is_click` (`is_click`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='通知记录表' AUTO_INCREMENT=1 ; + INDEX `admin_id`(`admin_id`, `notice_type`) USING BTREE, + INDEX `add_time`(`add_time`) USING BTREE, + INDEX `is_visit`(`is_visit`) USING BTREE, + INDEX `is_click`(`is_click`) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '通知记录表' ROW_FORMAT = DYNAMIC; --- -------------------------------------------------------- - --- --- 表的结构 `eb_system_role` --- - -CREATE TABLE IF NOT EXISTS `eb_system_role` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '身份管理id', - `role_name` varchar(32) NOT NULL COMMENT '身份管理名称', - `rules` text NOT NULL COMMENT '身份管理权限(menus_id)', - `level` tinyint(3) unsigned NOT NULL DEFAULT '0', - `status` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '状态', +-- ---------------------------- +-- Table structure for eb_system_role +-- ---------------------------- +DROP TABLE IF EXISTS `eb_system_role`; +CREATE TABLE `eb_system_role` ( + `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '身份管理id', + `role_name` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '身份管理名称', + `rules` text CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '身份管理权限(menus_id)', + `level` tinyint(3) UNSIGNED NOT NULL DEFAULT 0, + `status` tinyint(1) UNSIGNED NOT NULL DEFAULT 1 COMMENT '状态', PRIMARY KEY (`id`) USING BTREE, - KEY `status` (`status`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='身份管理表' AUTO_INCREMENT=24 ; - --- --- 转存表中的数据 `eb_system_role` --- + INDEX `status`(`status`) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 24 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '身份管理表' ROW_FORMAT = DYNAMIC; +-- ---------------------------- +-- Records of eb_system_role +-- ---------------------------- INSERT INTO `eb_system_role` (`id`, `role_name`, `rules`, `level`, `status`) VALUES -(1, '超级管理员', '23,24,147,266,265,264,263,262,261,146,25,142,143,369,370,285,26,191,394,208,207,206,205,204,203,202,201,200,199,198,197,196,195,194,193,192,190,329,334,335,290,170,225,228,227,226,224,151,177,399,402,403,405,406,407,401,400,398,176,408,413,412,411,409,410,449,337,353,371,415,450,286,148,149,230,234,233,232,231,229,235,150,352,271,254,366,367,368,272,238,333,273,241,349,351,350,287,306,239,307,179,216,217,218,219,312,308,313,288,293,340,341,296,318,317,316,315,314,294,302,244,301,300,295,303,304,305,246,374,297,321,320,319,269,372,270,373,375,376,422,423,424,425,426,427,451,11,360,267,17,127,128,126,174,416,417,418,419,420,421,452,361,355,359,358,356,357,354,12,97,98,99,30,93,89,92,91,90,124,123,31,95,96,94,37,175,210,215,214,213,212,211,223,222,209,19,73,42,116,115,45,44,43,82,133,134,395,396,397,84,236,129,132,289,378,153,8,67,63,105,104,66,65,64,4,68,59,103,102,62,61,60,2,78,74,77,76,75,101,100,247,250,248,249,1,6,118,117,119,145,144,7,46,108,107,106,50,49,48,47,51,69,9,70,52,112,111,110,109,58,57,56,55,54,53,255,80,283,72,38,41,40,39,284,71,33,114,113,36,35,34,21,173,252,237,278,130,131,377,447,439,445,446,444,443,440,441,442,276,362,364,363,365,390,393,392,389,388,386,387,453,379,448,380,381,382,0', 0, 1); +(1, '超级管理员', '23,24,147,266,265,263,262,261,264,146,25,143,370,369,142,285,26,191,192,193,194,195,208,207,206,205,204,203,202,201,200,199,198,197,196,394,190,290,170,225,227,226,228,224,329,335,334,151,177,399,400,401,402,407,406,405,403,398,176,449,408,413,412,411,410,409,456,337,353,371,450,415,286,148,149,229,230,231,234,233,232,235,150,352,349,351,350,273,241,272,238,333,271,254,366,368,367,287,306,239,307,179,217,219,218,216,312,308,313,288,293,341,340,296,317,318,316,315,314,294,244,302,301,300,295,246,374,303,304,305,297,321,320,319,269,462,373,372,472,471,466,465,464,463,461,460,459,458,376,451,422,427,426,425,424,423,270,11,360,267,17,127,128,126,174,452,416,421,420,419,418,417,361,355,359,358,357,356,354,12,98,99,97,30,89,92,91,90,123,124,93,31,95,96,94,37,175,210,223,213,222,214,211,212,215,209,19,73,42,45,44,43,116,115,82,133,134,236,84,129,132,395,397,396,289,153,8,67,63,66,65,64,105,104,4,68,59,103,102,62,61,60,2,74,77,76,75,101,100,78,247,248,249,250,1,117,48,145,144,108,119,118,470,468,56,55,54,53,112,111,255,378,80,284,71,33,36,35,34,114,113,283,72,38,41,40,39,21,252,237,469,130,131,173,379,448,380,382,381,377,447,439,446,445,444,443,442,441,440,278,276,362,363,364,365,393,392,390,389,388,387,386,453,467,7,69,46,47,49,51,50,107,106,9,70,52,58,57,110,109,0', 0, 1); --- -------------------------------------------------------- --- --- 表的结构 `eb_system_user_level` --- - -CREATE TABLE IF NOT EXISTS `eb_system_user_level` ( +-- ---------------------------- +-- Table structure for eb_system_user_level +-- ---------------------------- +DROP TABLE IF EXISTS `eb_system_user_level`; +CREATE TABLE `eb_system_user_level` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `mer_id` int(11) NOT NULL DEFAULT '0' COMMENT '商户id', - `name` varchar(255) NOT NULL DEFAULT '' COMMENT '会员名称', - `money` decimal(8,2) NOT NULL DEFAULT '0.00' COMMENT '购买金额', - `valid_date` int(11) NOT NULL DEFAULT '0' COMMENT '有效时间', - `is_forever` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否为永久会员', - `is_pay` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否购买,1=购买,0=不购买', - `is_show` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否显示 1=显示,0=隐藏', - `grade` int(11) NOT NULL DEFAULT '0' COMMENT '会员等级', - `discount` decimal(8,2) NOT NULL DEFAULT '0.00' COMMENT '享受折扣', - `image` varchar(255) NOT NULL DEFAULT '' COMMENT '会员卡背景', - `icon` varchar(255) NOT NULL DEFAULT '' COMMENT '会员图标', - `explain` text NOT NULL COMMENT '说明', - `add_time` int(11) NOT NULL DEFAULT '0' COMMENT '添加时间', - `is_del` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否删除.1=删除,0=未删除', - PRIMARY KEY (`id`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='设置用户等级表' AUTO_INCREMENT=7 ; + `mer_id` int(11) NOT NULL DEFAULT 0 COMMENT '商户id', + `name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '会员名称', + `money` decimal(8, 2) NOT NULL DEFAULT 0.00 COMMENT '购买金额', + `valid_date` int(11) NOT NULL DEFAULT 0 COMMENT '有效时间', + `is_forever` tinyint(1) NOT NULL DEFAULT 0 COMMENT '是否为永久会员', + `is_pay` tinyint(1) NOT NULL DEFAULT 0 COMMENT '是否购买,1=购买,0=不购买', + `is_show` tinyint(1) NOT NULL DEFAULT 0 COMMENT '是否显示 1=显示,0=隐藏', + `grade` int(11) NOT NULL DEFAULT 0 COMMENT '会员等级', + `discount` decimal(8, 2) NOT NULL DEFAULT 0.00 COMMENT '享受折扣', + `image` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '会员卡背景', + `icon` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '会员图标', + `explain` text CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '说明', + `add_time` int(11) NOT NULL DEFAULT 0 COMMENT '添加时间', + `is_del` tinyint(1) NOT NULL DEFAULT 0 COMMENT '是否删除.1=删除,0=未删除', + PRIMARY KEY (`id`) USING BTREE, + UNIQUE KEY `grade` (`grade`) +) ENGINE = InnoDB AUTO_INCREMENT = 7 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '设置用户等级表' ROW_FORMAT = DYNAMIC; --- --- 转存表中的数据 `eb_system_user_level` --- +-- ---------------------------- +-- Records of eb_system_user_level +-- ---------------------------- -INSERT INTO `eb_system_user_level` (`id`, `mer_id`, `name`, `money`, `valid_date`, `is_forever`, `is_pay`, `is_show`, `grade`, `discount`, `image`, `icon`, `explain`, `add_time`, `is_del`) VALUES -(1, 0, '普通会员', '0.00', 0, 1, 0, 1, 1, '99.00', 'http://datong.crmeb.net/public/uploads/attach/2019/03/28/5c9ccca8cd632.jpg', 'http://datong.crmeb.net/public/uploads/attach/2019/03/28/5c9ccca8bc1e0.png', '普通会员', 1553824559, 0), -(2, 0, '青铜会员', '0.00', 0, 1, 0, 1, 2, '98.00', 'http://datong.crmeb.net/public/uploads/attach/2019/03/28/5c9ccca904016.jpg', 'http://datong.crmeb.net/public/uploads/attach/2019/03/28/5c9ccca8f0a30.png', '青铜会员', 1553824639, 0), -(3, 0, '黄铜会员', '0.00', 0, 1, 0, 1, 3, '95.00', 'http://datong.crmeb.net/public/uploads/attach/2019/03/28/5c9ccca8c3bff.jpg', 'http://datong.crmeb.net/public/uploads/attach/2019/03/28/5c9ccca8e9365.png', '黄铜会员', 1553824742, 0), -(4, 0, '白银会员', '0.00', 0, 1, 0, 1, 4, '94.00', 'http://datong.crmeb.net/public/uploads/attach/2019/03/28/5c9ccca8d6ae1.jpg', 'http://datong.crmeb.net/public/uploads/attach/2019/03/28/5c9ccca8a27f0.png', '白银会员', 1553824797, 0), -(5, 0, '黄金会员', '0.00', 0, 1, 0, 1, 5, '90.00', 'http://datong.crmeb.net/public/uploads/attach/2019/03/28/5c9ccca8b27f1.jpg', 'http://datong.crmeb.net/public/uploads/attach/2019/03/28/5c9ccca8aa5b9.png', '黄金会员', 1553824837, 0), -(6, 0, '钻石会员', '0.00', 0, 1, 0, 1, 6, '88.00', 'http://datong.crmeb.net/public/uploads/attach/2019/03/28/5c9ccca8dfe16.jpg', 'http://datong.crmeb.net/public/uploads/attach/2019/03/28/5c9ccca90d2d3.png', '钻石会员', 1553824871, 0); +INSERT INTO `eb_system_user_level` (`id`,`mer_id`,`name`,`money`,`valid_date`,`is_forever`,`is_pay`,`is_show`,`grade`,`discount`,`image`,`icon`,`explain`,`add_time`,`is_del`) VALUES (1,0,'普通会员',0.00,0,1,0,1,1,99.00,'http://datong.crmeb.net/public/uploads/attach/2019/03/28/5c9ccca8cd632.jpg','http://datong.crmeb.net/public/uploads/attach/2019/03/28/5c9ccca8bc1e0.png','普通会员',1553824559,0),(2,0,'青铜会员',0.00,0,1,0,1,2,98.00,'http://datong.crmeb.net/public/uploads/attach/2019/03/28/5c9ccca904016.jpg','http://datong.crmeb.net/public/uploads/attach/2019/03/28/5c9ccca8f0a30.png','青铜会员',1553824639,0),(3,0,'黄铜会员',0.00,0,1,0,1,3,95.00,'http://datong.crmeb.net/public/uploads/attach/2019/03/28/5c9ccca8c3bff.jpg','http://datong.crmeb.net/public/uploads/attach/2019/03/28/5c9ccca8e9365.png','黄铜会员',1553824742,0),(4,0,'白银会员',0.00,0,1,0,1,4,94.00,'http://datong.crmeb.net/public/uploads/attach/2019/03/28/5c9ccca8d6ae1.jpg','http://datong.crmeb.net/public/uploads/attach/2019/03/28/5c9ccca8a27f0.png','白银会员',1553824797,0),(5,0,'黄金会员',0.00,0,1,0,1,5,90.00,'http://datong.crmeb.net/public/uploads/attach/2019/03/28/5c9ccca8b27f1.jpg','http://datong.crmeb.net/public/uploads/attach/2019/03/28/5c9ccca8aa5b9.png','黄金会员',1553824837,0),(6,0,'钻石会员',0.00,0,1,0,1,6,88.00,'http://datong.crmeb.net/public/uploads/attach/2019/03/28/5c9ccca8dfe16.jpg','http://datong.crmeb.net/public/uploads/attach/2019/03/28/5c9ccca90d2d3.png','钻石会员',1553824871,0); --- -------------------------------------------------------- - --- --- 表的结构 `eb_system_user_task` --- - -CREATE TABLE IF NOT EXISTS `eb_system_user_task` ( +-- ---------------------------- +-- Table structure for eb_system_user_task +-- ---------------------------- +DROP TABLE IF EXISTS `eb_system_user_task`; +CREATE TABLE `eb_system_user_task` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `name` varchar(255) NOT NULL DEFAULT '' COMMENT '任务名称', - `real_name` varchar(255) NOT NULL DEFAULT '' COMMENT '配置原名', - `task_type` varchar(50) NOT NULL DEFAULT '' COMMENT '任务类型', - `number` int(11) NOT NULL DEFAULT '0' COMMENT '限定数', - `level_id` int(11) NOT NULL DEFAULT '0' COMMENT '等级id', - `sort` int(11) NOT NULL DEFAULT '0' COMMENT '排序', - `is_show` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否显示', - `is_must` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否务必达成任务,1务必达成,0=满足其一', - `illustrate` varchar(255) NOT NULL DEFAULT '' COMMENT '任务说明', - `add_time` int(11) NOT NULL DEFAULT '0' COMMENT '新增时间', + `name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '任务名称', + `real_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '配置原名', + `task_type` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '任务类型', + `number` int(11) NOT NULL DEFAULT 0 COMMENT '限定数', + `level_id` int(11) NOT NULL DEFAULT 0 COMMENT '等级id', + `sort` int(11) NOT NULL DEFAULT 0 COMMENT '排序', + `is_show` tinyint(1) NOT NULL DEFAULT 0 COMMENT '是否显示', + `is_must` tinyint(1) NOT NULL DEFAULT 0 COMMENT '是否务必达成任务,1务必达成,0=满足其一', + `illustrate` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '任务说明', + `add_time` int(11) NOT NULL DEFAULT 0 COMMENT '新增时间', PRIMARY KEY (`id`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='等级任务设置' AUTO_INCREMENT=15 ; +) ENGINE = InnoDB AUTO_INCREMENT = 15 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '等级任务设置' ROW_FORMAT = DYNAMIC; --- --- 转存表中的数据 `eb_system_user_task` --- +-- ---------------------------- +-- Records of eb_system_user_task +-- ---------------------------- -INSERT INTO `eb_system_user_task` (`id`, `name`, `real_name`, `task_type`, `number`, `level_id`, `sort`, `is_show`, `is_must`, `illustrate`, `add_time`) VALUES -(1, '满足积分100分', '积分数', 'SatisfactionIntegral', 100, 1, 0, 1, 1, '', 1553827616), -(2, '消费满100元', '消费金额', 'ConsumptionAmount', 100, 1, 0, 1, 1, '', 1553827625), -(3, '满足积分200分', '积分数', 'SatisfactionIntegral', 200, 2, 0, 1, 1, '', 1553827638), -(4, '累计签到20天', '累计签到', 'CumulativeAttendance', 20, 2, 0, 1, 1, '', 1553827681), -(5, '满足积分500分', '积分数', 'SatisfactionIntegral', 500, 3, 0, 1, 1, '', 1553827695), -(6, '累计签到30天', '累计签到', 'CumulativeAttendance', 30, 3, 0, 1, 1, '', 1553827703), -(7, '满足积分1000分', '积分数', 'SatisfactionIntegral', 1000, 4, 0, 1, 1, '', 1553827731), -(8, '分享给朋友10次', '分享给朋友', 'SharingTimes', 10, 4, 0, 1, 1, '', 1553827740), -(9, '满足积分1200分', '积分数', 'SatisfactionIntegral', 1200, 5, 0, 1, 1, '', 1553827759), -(10, '累计签到60天', '累计签到', 'CumulativeAttendance', 60, 5, 0, 1, 1, '', 1553827768), -(11, '消费5次', '消费次数', 'ConsumptionFrequency', 5, 5, 0, 1, 1, '', 1553827776), -(12, '满足积分2000分', '积分数', 'SatisfactionIntegral', 2000, 6, 0, 1, 1, '', 1553827791), -(13, '消费满10000元', '消费次数', 'ConsumptionAmount', 10000, 6, 0, 1, 1, '', 1553827803), -(14, '累计签到100天', '累计签到', 'CumulativeAttendance', 100, 6, 0, 1, 1, '', 1553827814); +INSERT INTO `eb_system_user_task` (`id`,`name`,`real_name`,`task_type`,`number`,`level_id`,`sort`,`is_show`,`is_must`,`illustrate`,`add_time`) VALUES (1,'满足积分100分','积分数','SatisfactionIntegral',100,1,0,1,1,'',1553827616),(2,'消费满100元','消费金额','ConsumptionAmount',100,1,0,1,1,'',1553827625),(3,'满足积分200分','积分数','SatisfactionIntegral',200,2,0,1,1,'',1553827638),(4,'累计签到20天','累计签到','CumulativeAttendance',20,2,0,1,1,'',1553827681),(5,'满足积分500分','积分数','SatisfactionIntegral',500,3,0,1,1,'',1553827695),(6,'累计签到30天','累计签到','CumulativeAttendance',30,3,0,1,1,'',1553827703),(7,'满足积分1000分','积分数','SatisfactionIntegral',1000,4,0,1,1,'',1553827731),(8,'分享给朋友10次','分享给朋友','SharingTimes',10,4,0,1,1,'',1553827740),(9,'满足积分1200分','积分数','SatisfactionIntegral',1200,5,0,1,1,'',1553827759),(10,'累计签到60天','累计签到','CumulativeAttendance',60,5,0,1,1,'',1553827768),(11,'消费5次','消费次数','ConsumptionFrequency',5,5,0,1,1,'',1553827776),(12,'满足积分2000分','积分数','SatisfactionIntegral',2000,6,0,1,1,'',1553827791),(13,'消费满10000元','消费次数','ConsumptionAmount',10000,6,0,1,1,'',1553827803),(14,'累计签到100天','累计签到','CumulativeAttendance',100,6,0,1,1,'',1553827814); --- -------------------------------------------------------- --- --- 表的结构 `eb_token` --- - -CREATE TABLE IF NOT EXISTS `eb_token` ( +-- ---------------------------- +-- Table structure for eb_token +-- ---------------------------- +DROP TABLE IF EXISTS `eb_token`; +CREATE TABLE `eb_token` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `uid` int(11) NOT NULL DEFAULT '0' COMMENT '用户uid', - `rand_string` varchar(10) NOT NULL DEFAULT '' COMMENT '10位随机字符串', - `add_time` int(11) NOT NULL DEFAULT '0' COMMENT '添加时间', + `uid` int(11) NOT NULL DEFAULT 0 COMMENT '用户uid', + `rand_string` varchar(10) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '10位随机字符串', + `add_time` int(11) NOT NULL DEFAULT 0 COMMENT '添加时间', PRIMARY KEY (`id`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='保存token随机字符串' AUTO_INCREMENT=1 ; +) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '保存token随机字符串' ROW_FORMAT = DYNAMIC; --- -------------------------------------------------------- - --- --- 表的结构 `eb_user` --- - -CREATE TABLE IF NOT EXISTS `eb_user` ( - `uid` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '用户id', - `account` varchar(32) NOT NULL COMMENT '用户账号', - `pwd` varchar(32) NOT NULL COMMENT '用户密码', - `nickname` varchar(16) NOT NULL COMMENT '用户昵称', - `avatar` varchar(256) NOT NULL COMMENT '用户头像', - `phone` char(15) DEFAULT NULL COMMENT '手机号码', - `add_time` int(11) unsigned NOT NULL COMMENT '添加时间', - `add_ip` varchar(16) NOT NULL COMMENT '添加ip', - `last_time` int(11) unsigned NOT NULL COMMENT '最后一次登录时间', - `last_ip` varchar(16) NOT NULL COMMENT '最后一次登录ip', - `now_money` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '用户余额', - `integral` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '用户剩余积分', - `sign_num` int(11) NOT NULL DEFAULT '0' COMMENT '连续签到天数', - `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '1为正常,0为禁止', - `level` tinyint(2) unsigned NOT NULL DEFAULT '0' COMMENT '等级', - `spread_uid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '推广元id', - `spread_time` int(11) unsigned NOT NULL DEFAULT '0' COMMENT '推广员关联时间', - `user_type` varchar(32) NOT NULL COMMENT '用户类型', - `is_promoter` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否为推广员', - `pay_count` int(11) unsigned DEFAULT '0' COMMENT '用户购买次数', - `spread_count` int(11) DEFAULT '0' COMMENT '下级人数', +-- ---------------------------- +-- Table structure for eb_user +-- ---------------------------- +DROP TABLE IF EXISTS `eb_user`; +CREATE TABLE `eb_user` ( + `uid` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '用户id', + `account` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '用户账号', + `pwd` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '用户密码', + `real_name` VARCHAR( 25 ) NOT NULL DEFAULT '' COMMENT '真实姓名', + `birthday` INT NOT NULL DEFAULT '0' COMMENT '生日', + `card_id` VARCHAR( 20 ) NOT NULL DEFAULT '' COMMENT '身份证号码', + `mark` VARCHAR( 255 ) NOT NULL DEFAULT '' COMMENT '用户备注', + `group_id` int(10) NOT NULL DEFAULT '0' COMMENT '用户分组id', + `partner_id` int(10) NOT NULL DEFAULT '0' COMMENT '合伙人id', + `addres` varchar(255) NOT NULL DEFAULT '' COMMENT '详细地址', + `nickname` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '用户昵称', + `avatar` varchar(256) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '用户头像', + `phone` char(15) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '手机号码', + `add_time` int(11) UNSIGNED NOT NULL COMMENT '添加时间', + `add_ip` varchar(16) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '添加ip', + `last_time` int(11) UNSIGNED NOT NULL COMMENT '最后一次登录时间', + `last_ip` varchar(16) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '最后一次登录ip', + `now_money` decimal(8, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '用户余额', + `integral` decimal(8, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '用户剩余积分', + `sign_num` int(11) NOT NULL DEFAULT 0 COMMENT '连续签到天数', + `status` tinyint(1) NOT NULL DEFAULT 1 COMMENT '1为正常,0为禁止', + `level` tinyint(2) UNSIGNED NOT NULL DEFAULT 0 COMMENT '等级', + `spread_uid` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '推广元id', + `spread_time` int(11) UNSIGNED NOT NULL DEFAULT 0 COMMENT '推广员关联时间', + `user_type` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '用户类型', + `is_promoter` tinyint(1) UNSIGNED NOT NULL DEFAULT 0 COMMENT '是否为推广员', + `pay_count` int(11) UNSIGNED NULL DEFAULT 0 COMMENT '用户购买次数', + `spread_count` int(11) NULL DEFAULT 0 COMMENT '下级人数', + `clean_time` int(11) NOT NULL DEFAULT '0' COMMENT '等级清除时间为0没有清除过', PRIMARY KEY (`uid`) USING BTREE, - KEY `account` (`account`) USING BTREE, - KEY `spreaduid` (`spread_uid`) USING BTREE, - KEY `level` (`level`) USING BTREE, - KEY `status` (`status`) USING BTREE, - KEY `is_promoter` (`is_promoter`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='用户表' AUTO_INCREMENT=1 ; + INDEX `account`(`account`) USING BTREE, + INDEX `spreaduid`(`spread_uid`) USING BTREE, + INDEX `level`(`level`) USING BTREE, + INDEX `status`(`status`) USING BTREE, + INDEX `is_promoter`(`is_promoter`) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '用户表' ROW_FORMAT = DYNAMIC; --- -------------------------------------------------------- +-- ---------------------------- +-- Records of eb_user +-- ---------------------------- --- --- 表的结构 `eb_user_address` --- +INSERT INTO `eb_user` VALUES (1, 'crmeb', 'e10adc3949ba59abbe56e057f20f883e', '等风来,随风去', 'https://wx.qlogo.cn/mmopen/vi_32/DYAIOgq83eqj70fHkbW9aJgp0KWMsp7cqOsgT16Syr8mWt9JkhngDWARibyNv5MBia3h8Y3BOkHBHdLiaX8Hq9J0w/132', NULL, 1555153423, '127.0.0.1', 1555153955, '127.0.0.1', 0.00, 0.00, 0, 1, 0, 0, 0, 'routine', 0, 0, 0, 0); -CREATE TABLE IF NOT EXISTS `eb_user_address` ( - `id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT COMMENT '用户地址id', - `uid` int(10) unsigned NOT NULL COMMENT '用户id', - `real_name` varchar(32) NOT NULL COMMENT '收货人姓名', - `phone` varchar(16) NOT NULL COMMENT '收货人电话', - `province` varchar(64) NOT NULL COMMENT '收货人所在省', - `city` varchar(64) NOT NULL COMMENT '收货人所在市', - `district` varchar(64) NOT NULL COMMENT '收货人所在区', - `detail` varchar(256) NOT NULL COMMENT '收货人详细地址', - `post_code` int(10) unsigned NOT NULL COMMENT '邮编', - `longitude` varchar(16) NOT NULL DEFAULT '0' COMMENT '经度', - `latitude` varchar(16) NOT NULL DEFAULT '0' COMMENT '纬度', - `is_default` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否默认', - `is_del` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否删除', - `add_time` int(10) unsigned NOT NULL COMMENT '添加时间', +-- ---------------------------- +-- Table structure for eb_user_address +-- ---------------------------- +DROP TABLE IF EXISTS `eb_user_address`; +CREATE TABLE `eb_user_address` ( + `id` mediumint(8) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '用户地址id', + `uid` int(10) UNSIGNED NOT NULL COMMENT '用户id', + `real_name` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '收货人姓名', + `phone` varchar(16) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '收货人电话', + `province` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '收货人所在省', + `city` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '收货人所在市', + `district` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '收货人所在区', + `detail` varchar(256) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '收货人详细地址', + `post_code` int(10) UNSIGNED NOT NULL COMMENT '邮编', + `longitude` varchar(16) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '0' COMMENT '经度', + `latitude` varchar(16) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '0' COMMENT '纬度', + `is_default` tinyint(1) UNSIGNED NOT NULL DEFAULT 0 COMMENT '是否默认', + `is_del` tinyint(1) UNSIGNED NOT NULL DEFAULT 0 COMMENT '是否删除', + `add_time` int(10) UNSIGNED NOT NULL COMMENT '添加时间', PRIMARY KEY (`id`) USING BTREE, - KEY `uid` (`uid`) USING BTREE, - KEY `is_default` (`is_default`) USING BTREE, - KEY `is_del` (`is_del`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='用户地址表' AUTO_INCREMENT=1 ; + INDEX `uid`(`uid`) USING BTREE, + INDEX `is_default`(`is_default`) USING BTREE, + INDEX `is_del`(`is_del`) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '用户地址表' ROW_FORMAT = DYNAMIC; --- -------------------------------------------------------- - --- --- 表的结构 `eb_user_bill` --- - -CREATE TABLE IF NOT EXISTS `eb_user_bill` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '用户账单id', - `uid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '用户uid', - `link_id` varchar(32) NOT NULL DEFAULT '0' COMMENT '关联id', - `pm` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '0 = 支出 1 = 获得', - `title` varchar(64) NOT NULL COMMENT '账单标题', - `category` varchar(64) NOT NULL COMMENT '明细种类', - `type` varchar(64) NOT NULL DEFAULT '' COMMENT '明细类型', - `number` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '明细数字', - `balance` decimal(8,2) unsigned NOT NULL DEFAULT '0.00' COMMENT '剩余', - `mark` varchar(512) NOT NULL COMMENT '备注', - `add_time` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '添加时间', - `status` tinyint(1) NOT NULL DEFAULT '1' COMMENT '0 = 带确定 1 = 有效 -1 = 无效', +-- ---------------------------- +-- Table structure for eb_user_bill +-- ---------------------------- +DROP TABLE IF EXISTS `eb_user_bill`; +CREATE TABLE `eb_user_bill` ( + `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '用户账单id', + `uid` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '用户uid', + `link_id` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '0' COMMENT '关联id', + `pm` tinyint(1) UNSIGNED NOT NULL DEFAULT 0 COMMENT '0 = 支出 1 = 获得', + `title` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '账单标题', + `category` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '明细种类', + `type` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '明细类型', + `number` decimal(8, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '明细数字', + `balance` decimal(8, 2) UNSIGNED NOT NULL DEFAULT 0.00 COMMENT '剩余', + `mark` varchar(512) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '备注', + `add_time` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '添加时间', + `status` tinyint(1) NOT NULL DEFAULT 1 COMMENT '0 = 带确定 1 = 有效 -1 = 无效', PRIMARY KEY (`id`) USING BTREE, - KEY `openid` (`uid`) USING BTREE, - KEY `status` (`status`) USING BTREE, - KEY `add_time` (`add_time`) USING BTREE, - KEY `pm` (`pm`) USING BTREE, - KEY `type` (`category`,`type`,`link_id`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='用户账单表' AUTO_INCREMENT=1 ; + INDEX `openid`(`uid`) USING BTREE, + INDEX `status`(`status`) USING BTREE, + INDEX `add_time`(`add_time`) USING BTREE, + INDEX `pm`(`pm`) USING BTREE, + INDEX `type`(`category`, `type`, `link_id`) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '用户账单表' ROW_FORMAT = DYNAMIC; --- -------------------------------------------------------- - --- --- 表的结构 `eb_user_enter` --- - -CREATE TABLE IF NOT EXISTS `eb_user_enter` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '商户申请ID', - `uid` int(10) unsigned NOT NULL COMMENT '用户ID', - `province` varchar(32) NOT NULL COMMENT '商户所在省', - `city` varchar(32) NOT NULL COMMENT '商户所在市', - `district` varchar(32) NOT NULL COMMENT '商户所在区', - `address` varchar(256) NOT NULL COMMENT '商户详细地址', - `merchant_name` varchar(256) NOT NULL COMMENT '商户名称', - `link_user` varchar(32) NOT NULL, - `link_tel` varchar(16) NOT NULL COMMENT '商户电话', - `charter` varchar(512) NOT NULL COMMENT '商户证书', - `add_time` int(10) unsigned NOT NULL COMMENT '添加时间', - `apply_time` int(10) unsigned NOT NULL COMMENT '审核时间', +-- ---------------------------- +-- Table structure for eb_user_enter +-- ---------------------------- +DROP TABLE IF EXISTS `eb_user_enter`; +CREATE TABLE `eb_user_enter` ( + `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '商户申请ID', + `uid` int(10) UNSIGNED NOT NULL COMMENT '用户ID', + `province` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '商户所在省', + `city` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '商户所在市', + `district` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '商户所在区', + `address` varchar(256) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '商户详细地址', + `merchant_name` varchar(256) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '商户名称', + `link_user` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL, + `link_tel` varchar(16) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '商户电话', + `charter` varchar(512) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '商户证书', + `add_time` int(10) UNSIGNED NOT NULL COMMENT '添加时间', + `apply_time` int(10) UNSIGNED NOT NULL COMMENT '审核时间', `success_time` int(11) NOT NULL COMMENT '通过时间', - `fail_message` varchar(256) NOT NULL COMMENT '未通过原因', - `fail_time` int(10) unsigned NOT NULL COMMENT '未通过时间', - `status` tinyint(1) NOT NULL DEFAULT '0' COMMENT '-1 审核未通过 0未审核 1审核通过', - `is_lock` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '0 = 开启 1= 关闭', - `is_del` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否删除', + `fail_message` varchar(256) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '未通过原因', + `fail_time` int(10) UNSIGNED NOT NULL COMMENT '未通过时间', + `status` tinyint(1) NOT NULL DEFAULT 0 COMMENT '-1 审核未通过 0未审核 1审核通过', + `is_lock` tinyint(1) UNSIGNED NOT NULL DEFAULT 0 COMMENT '0 = 开启 1= 关闭', + `is_del` tinyint(1) UNSIGNED NOT NULL DEFAULT 0 COMMENT '是否删除', PRIMARY KEY (`id`) USING BTREE, - UNIQUE KEY `uid` (`uid`) USING BTREE, - KEY `province` (`province`,`city`,`district`) USING BTREE, - KEY `is_lock` (`is_lock`) USING BTREE, - KEY `is_del` (`is_del`) USING BTREE, - KEY `status` (`status`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='商户申请表' AUTO_INCREMENT=1 ; + UNIQUE INDEX `uid`(`uid`) USING BTREE, + INDEX `province`(`province`, `city`, `district`) USING BTREE, + INDEX `is_lock`(`is_lock`) USING BTREE, + INDEX `is_del`(`is_del`) USING BTREE, + INDEX `status`(`status`) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '商户申请表' ROW_FORMAT = DYNAMIC; --- -------------------------------------------------------- - --- --- 表的结构 `eb_user_extract` --- - -CREATE TABLE IF NOT EXISTS `eb_user_extract` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `uid` int(10) unsigned DEFAULT NULL, - `real_name` varchar(64) DEFAULT NULL COMMENT '名称', - `extract_type` varchar(32) DEFAULT 'bank' COMMENT 'bank = 银行卡 alipay = 支付宝wx=微信', - `bank_code` varchar(32) DEFAULT '0' COMMENT '银行卡', - `bank_address` varchar(256) DEFAULT '' COMMENT '开户地址', - `alipay_code` varchar(64) DEFAULT '' COMMENT '支付宝账号', - `extract_price` decimal(8,2) unsigned DEFAULT '0.00' COMMENT '提现金额', - `mark` varchar(512) DEFAULT NULL, - `balance` decimal(8,2) unsigned DEFAULT '0.00', - `fail_msg` varchar(128) DEFAULT NULL COMMENT '无效原因', - `fail_time` int(10) unsigned DEFAULT NULL, - `add_time` int(10) unsigned DEFAULT NULL COMMENT '添加时间', - `status` tinyint(2) DEFAULT '0' COMMENT '-1 未通过 0 审核中 1 已提现', - `wechat` varchar(15) DEFAULT NULL COMMENT '微信号', +-- ---------------------------- +-- Table structure for eb_user_extract +-- ---------------------------- +DROP TABLE IF EXISTS `eb_user_extract`; +CREATE TABLE `eb_user_extract` ( + `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, + `uid` int(10) UNSIGNED NULL DEFAULT NULL, + `real_name` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '名称', + `extract_type` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT 'bank' COMMENT 'bank = 银行卡 alipay = 支付宝wx=微信', + `bank_code` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '0' COMMENT '银行卡', + `bank_address` varchar(256) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '开户地址', + `alipay_code` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '支付宝账号', + `extract_price` decimal(8, 2) UNSIGNED NULL DEFAULT 0.00 COMMENT '提现金额', + `mark` varchar(512) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, + `balance` decimal(8, 2) UNSIGNED NULL DEFAULT 0.00, + `fail_msg` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '无效原因', + `fail_time` int(10) UNSIGNED NULL DEFAULT NULL, + `add_time` int(10) UNSIGNED NULL DEFAULT NULL COMMENT '添加时间', + `status` tinyint(2) NULL DEFAULT 0 COMMENT '-1 未通过 0 审核中 1 已提现', + `wechat` varchar(15) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '微信号', PRIMARY KEY (`id`) USING BTREE, - KEY `extract_type` (`extract_type`) USING BTREE, - KEY `status` (`status`) USING BTREE, - KEY `add_time` (`add_time`) USING BTREE, - KEY `openid` (`uid`) USING BTREE, - KEY `fail_time` (`fail_time`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='用户提现表' AUTO_INCREMENT=1 ; + INDEX `extract_type`(`extract_type`) USING BTREE, + INDEX `status`(`status`) USING BTREE, + INDEX `add_time`(`add_time`) USING BTREE, + INDEX `openid`(`uid`) USING BTREE, + INDEX `fail_time`(`fail_time`) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '用户提现表' ROW_FORMAT = DYNAMIC; --- -------------------------------------------------------- - --- --- 表的结构 `eb_user_group` --- - -CREATE TABLE IF NOT EXISTS `eb_user_group` ( - `id` smallint(5) unsigned NOT NULL AUTO_INCREMENT, - `group_name` varchar(64) DEFAULT NULL COMMENT '用户分组名称', +-- ---------------------------- +-- Table structure for eb_user_group +-- ---------------------------- +DROP TABLE IF EXISTS `eb_user_group`; +CREATE TABLE `eb_user_group` ( + `id` smallint(5) UNSIGNED NOT NULL AUTO_INCREMENT, + `group_name` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '用户分组名称', PRIMARY KEY (`id`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='用户分组表' AUTO_INCREMENT=4 ; +) ENGINE = InnoDB AUTO_INCREMENT = 4 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '用户分组表' ROW_FORMAT = DYNAMIC; --- --- 转存表中的数据 `eb_user_group` --- +-- ---------------------------- +-- Records of eb_user_group +-- ---------------------------- +INSERT INTO `eb_user_group` VALUES (1, '未分组'); +INSERT INTO `eb_user_group` VALUES (2, '活跃用户'); +INSERT INTO `eb_user_group` VALUES (3, '测试'); -INSERT INTO `eb_user_group` (`id`, `group_name`) VALUES -(1, '未分组'), -(2, '活跃用户'), -(3, '测试'); - --- -------------------------------------------------------- - --- --- 表的结构 `eb_user_level` --- - -CREATE TABLE IF NOT EXISTS `eb_user_level` ( +-- ---------------------------- +-- Table structure for eb_user_level +-- ---------------------------- +DROP TABLE IF EXISTS `eb_user_level`; +CREATE TABLE `eb_user_level` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `uid` int(11) NOT NULL DEFAULT '0' COMMENT '用户uid', - `level_id` int(11) NOT NULL DEFAULT '0' COMMENT '等级vip', - `grade` int(11) NOT NULL DEFAULT '0' COMMENT '会员等级', - `valid_time` int(11) NOT NULL DEFAULT '0' COMMENT '过期时间', - `is_forever` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否永久', - `mer_id` int(11) NOT NULL DEFAULT '0' COMMENT '商户id', - `status` tinyint(1) NOT NULL DEFAULT '0' COMMENT '0:禁止,1:正常', - `mark` varchar(255) NOT NULL DEFAULT '' COMMENT '备注', - `remind` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否已通知', - `is_del` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否删除,0=未删除,1=删除', - `add_time` int(11) NOT NULL DEFAULT '0' COMMENT '添加时间', - `discount` int(11) NOT NULL DEFAULT '0' COMMENT '享受折扣', + `uid` int(11) NOT NULL DEFAULT 0 COMMENT '用户uid', + `level_id` int(11) NOT NULL DEFAULT 0 COMMENT '等级vip', + `grade` int(11) NOT NULL DEFAULT 0 COMMENT '会员等级', + `valid_time` int(11) NOT NULL DEFAULT 0 COMMENT '过期时间', + `is_forever` tinyint(1) NOT NULL DEFAULT 0 COMMENT '是否永久', + `mer_id` int(11) NOT NULL DEFAULT 0 COMMENT '商户id', + `status` tinyint(1) NOT NULL DEFAULT 0 COMMENT '0:禁止,1:正常', + `mark` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '备注', + `remind` tinyint(1) NOT NULL DEFAULT 0 COMMENT '是否已通知', + `is_del` tinyint(1) NOT NULL DEFAULT 0 COMMENT '是否删除,0=未删除,1=删除', + `add_time` int(11) NOT NULL DEFAULT 0 COMMENT '添加时间', + `discount` int(11) NOT NULL DEFAULT 0 COMMENT '享受折扣', PRIMARY KEY (`id`) USING BTREE, - UNIQUE KEY `id` (`id`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='用户等级记录表' AUTO_INCREMENT=32 ; + UNIQUE INDEX `id`(`id`) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 32 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '用户等级记录表' ROW_FORMAT = DYNAMIC; --- --- 转存表中的数据 `eb_user_level` --- - -INSERT INTO `eb_user_level` (`id`, `uid`, `level_id`, `grade`, `valid_time`, `is_forever`, `mer_id`, `status`, `mark`, `remind`, `is_del`, `add_time`, `discount`) VALUES -(18, 95, 1, 1, 0, 1, 0, 1, '尊敬的用户天会亮、心会暖在2019-04-10 15:27:16成为了普通会员', 0, 0, 1554881236, 99), -(19, 6, 1, 1, 0, 1, 0, 1, '尊敬的用户弱冠而立_在2019-04-10 17:17:46成为了普通会员', 0, 0, 1554887866, 99), -(20, 46, 1, 1, 0, 1, 0, 1, '尊敬的用户张鹏飞在2019-04-10 17:18:46成为了普通会员', 0, 0, 1554887926, 99), -(21, 127, 1, 1, 0, 1, 0, 1, '尊敬的用户路人甲在2019-04-10 17:39:57成为了普通会员', 0, 0, 1554889197, 99), -(22, 4, 1, 1, 0, 1, 0, 1, '尊敬的用户徐斗明在2019-04-10 19:22:44成为了普通会员', 0, 0, 1554895364, 99), -(23, 313, 1, 1, 0, 1, 0, 1, '尊敬的用户啊丶饭在2019-04-10 19:22:48成为了普通会员', 0, 0, 1554895368, 99), -(24, 308, 1, 1, 0, 1, 0, 1, '尊敬的用户褚润林在2019-04-10 19:23:25成为了普通会员', 0, 0, 1554895405, 99), -(25, 2, 1, 1, 0, 1, 0, 1, '尊敬的用户༄许のོ࿆༘荣耀࿐在2019-04-11 09:58:16成为了普通会员', 0, 0, 1554947896, 99), -(27, 238, 1, 1, 0, 1, 0, 1, '尊敬的用户Mr .在2019-04-11 15:13:31成为了普通会员', 0, 0, 1554966811, 99), -(28, 82, 1, 1, 0, 1, 0, 1, '尊敬的用户等风来,随风去在2019-04-11 16:46:30成为了普通会员', 0, 0, 1554972390, 99), -(29, 312, 1, 1, 0, 1, 0, 1, '尊敬的用户Ricky คิดถึง在2019-04-12 12:53:38成为了普通会员', 0, 0, 1555044818, 99), -(30, 180, 1, 1, 0, 1, 0, 1, '尊敬的用户镇哥在2019-04-12 21:15:05成为了普通会员', 0, 0, 1555074905, 99), -(31, 27, 1, 1, 0, 1, 0, 1, '尊敬的用户梁海涛在2019-04-13 10:29:30成为了普通会员', 0, 0, 1555122570, 99); - --- -------------------------------------------------------- - --- --- 表的结构 `eb_user_notice` --- - -CREATE TABLE IF NOT EXISTS `eb_user_notice` ( +-- ---------------------------- +-- Table structure for eb_user_notice +-- ---------------------------- +DROP TABLE IF EXISTS `eb_user_notice`; +CREATE TABLE `eb_user_notice` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `uid` text NOT NULL COMMENT '接收消息的用户id(类型:json数据)', - `type` tinyint(1) NOT NULL DEFAULT '1' COMMENT '消息通知类型(1:系统消息;2:用户通知)', - `user` varchar(20) NOT NULL DEFAULT '' COMMENT '发送人', - `title` varchar(20) NOT NULL COMMENT '通知消息的标题信息', - `content` varchar(500) NOT NULL COMMENT '通知消息的内容', + `uid` text CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '接收消息的用户id(类型:json数据)', + `type` tinyint(1) NOT NULL DEFAULT 1 COMMENT '消息通知类型(1:系统消息;2:用户通知)', + `user` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '发送人', + `title` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '通知消息的标题信息', + `content` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '通知消息的内容', `add_time` int(11) NOT NULL COMMENT '通知消息发送的时间', - `is_send` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否发送(0:未发送;1:已发送)', + `is_send` tinyint(1) NOT NULL DEFAULT 0 COMMENT '是否发送(0:未发送;1:已发送)', `send_time` int(11) NOT NULL COMMENT '发送时间', PRIMARY KEY (`id`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='用户通知表' AUTO_INCREMENT=1 ; +) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '用户通知表' ROW_FORMAT = DYNAMIC; --- -------------------------------------------------------- - --- --- 表的结构 `eb_user_notice_see` --- - -CREATE TABLE IF NOT EXISTS `eb_user_notice_see` ( +-- ---------------------------- +-- Table structure for eb_user_notice_see +-- ---------------------------- +DROP TABLE IF EXISTS `eb_user_notice_see`; +CREATE TABLE `eb_user_notice_see` ( `id` int(11) NOT NULL AUTO_INCREMENT, `nid` int(11) NOT NULL COMMENT '查看的通知id', `uid` int(11) NOT NULL COMMENT '查看通知的用户id', `add_time` int(11) NOT NULL COMMENT '查看通知的时间', PRIMARY KEY (`id`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='用户通知发送记录表' AUTO_INCREMENT=1 ; +) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '用户通知发送记录表' ROW_FORMAT = DYNAMIC; --- -------------------------------------------------------- - --- --- 表的结构 `eb_user_recharge` --- - -CREATE TABLE IF NOT EXISTS `eb_user_recharge` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT, - `uid` int(10) DEFAULT NULL COMMENT '充值用户UID', - `order_id` varchar(32) DEFAULT NULL COMMENT '订单号', - `price` decimal(8,2) DEFAULT NULL COMMENT '充值金额', - `recharge_type` varchar(32) DEFAULT NULL COMMENT '充值类型', - `paid` tinyint(1) DEFAULT NULL COMMENT '是否充值', - `pay_time` int(10) DEFAULT NULL COMMENT '充值支付时间', - `add_time` int(12) DEFAULT NULL COMMENT '充值时间', - `refund_price` decimal(10,2) DEFAULT '0.00' COMMENT '退款金额', +-- ---------------------------- +-- Table structure for eb_user_recharge +-- ---------------------------- +DROP TABLE IF EXISTS `eb_user_recharge`; +CREATE TABLE `eb_user_recharge` ( + `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, + `uid` int(10) NULL DEFAULT NULL COMMENT '充值用户UID', + `order_id` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '订单号', + `price` decimal(8, 2) NULL DEFAULT NULL COMMENT '充值金额', + `recharge_type` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '充值类型', + `paid` tinyint(1) NULL DEFAULT NULL COMMENT '是否充值', + `pay_time` int(10) NULL DEFAULT NULL COMMENT '充值支付时间', + `add_time` int(12) NULL DEFAULT NULL COMMENT '充值时间', + `refund_price` decimal(10, 2) NULL DEFAULT 0.00 COMMENT '退款金额', PRIMARY KEY (`id`) USING BTREE, - UNIQUE KEY `order_id` (`order_id`) USING BTREE, - KEY `uid` (`uid`) USING BTREE, - KEY `recharge_type` (`recharge_type`) USING BTREE, - KEY `paid` (`paid`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='用户充值表' AUTO_INCREMENT=1 ; + UNIQUE INDEX `order_id`(`order_id`) USING BTREE, + INDEX `uid`(`uid`) USING BTREE, + INDEX `recharge_type`(`recharge_type`) USING BTREE, + INDEX `paid`(`paid`) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '用户充值表' ROW_FORMAT = DYNAMIC; --- -------------------------------------------------------- - --- --- 表的结构 `eb_user_sign` --- - -CREATE TABLE IF NOT EXISTS `eb_user_sign` ( +-- ---------------------------- +-- Table structure for eb_user_sign +-- ---------------------------- +DROP TABLE IF EXISTS `eb_user_sign`; +CREATE TABLE `eb_user_sign` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `uid` int(11) NOT NULL DEFAULT '0' COMMENT '用户uid', - `title` varchar(255) NOT NULL DEFAULT '' COMMENT '签到说明', - `number` int(11) NOT NULL DEFAULT '0' COMMENT '获得积分', - `balance` int(11) NOT NULL DEFAULT '0' COMMENT '剩余积分', - `add_time` int(11) NOT NULL DEFAULT '0' COMMENT '添加时间', + `uid` int(11) NOT NULL DEFAULT 0 COMMENT '用户uid', + `title` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '签到说明', + `number` int(11) NOT NULL DEFAULT 0 COMMENT '获得积分', + `balance` int(11) NOT NULL DEFAULT 0 COMMENT '剩余积分', + `add_time` int(11) NOT NULL DEFAULT 0 COMMENT '添加时间', PRIMARY KEY (`id`) USING BTREE, - KEY `uid` (`uid`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='签到记录表' AUTO_INCREMENT=1 ; + INDEX `uid`(`uid`) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '签到记录表' ROW_FORMAT = DYNAMIC; --- -------------------------------------------------------- - --- --- 表的结构 `eb_user_task_finish` --- - -CREATE TABLE IF NOT EXISTS `eb_user_task_finish` ( +-- ---------------------------- +-- Table structure for eb_user_task_finish +-- ---------------------------- +DROP TABLE IF EXISTS `eb_user_task_finish`; +CREATE TABLE `eb_user_task_finish` ( `id` int(11) NOT NULL AUTO_INCREMENT, - `task_id` int(11) NOT NULL DEFAULT '0' COMMENT '任务id', - `uid` int(11) NOT NULL DEFAULT '0' COMMENT '用户id', - `status` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否有效', - `add_time` int(11) NOT NULL DEFAULT '0' COMMENT '添加时间', + `task_id` int(11) NOT NULL DEFAULT 0 COMMENT '任务id', + `uid` int(11) NOT NULL DEFAULT 0 COMMENT '用户id', + `status` tinyint(1) NOT NULL DEFAULT 0 COMMENT '是否有效', + `add_time` int(11) NOT NULL DEFAULT 0 COMMENT '添加时间', PRIMARY KEY (`id`) USING BTREE, - UNIQUE KEY `id` (`id`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='用户任务完成记录表' AUTO_INCREMENT=1 ; + UNIQUE INDEX `id`(`id`) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '用户任务完成记录表' ROW_FORMAT = DYNAMIC; --- -------------------------------------------------------- - --- --- 表的结构 `eb_wechat_media` --- - -CREATE TABLE IF NOT EXISTS `eb_wechat_media` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '微信视频音频id', - `type` varchar(16) NOT NULL COMMENT '回复类型', - `path` varchar(128) NOT NULL COMMENT '文件路径', - `media_id` varchar(64) NOT NULL COMMENT '微信服务器返回的id', - `url` varchar(256) NOT NULL COMMENT '地址', - `temporary` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否永久或者临时 0永久1临时', - `add_time` int(10) unsigned NOT NULL COMMENT '添加时间', +-- ---------------------------- +-- Table structure for eb_wechat_media +-- ---------------------------- +DROP TABLE IF EXISTS `eb_wechat_media`; +CREATE TABLE `eb_wechat_media` ( + `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '微信视频音频id', + `type` varchar(16) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '回复类型', + `path` varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '文件路径', + `media_id` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '微信服务器返回的id', + `url` varchar(256) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '地址', + `temporary` tinyint(1) UNSIGNED NOT NULL DEFAULT 0 COMMENT '是否永久或者临时 0永久1临时', + `add_time` int(10) UNSIGNED NOT NULL COMMENT '添加时间', PRIMARY KEY (`id`) USING BTREE, - UNIQUE KEY `type` (`type`,`media_id`) USING BTREE, - KEY `type_2` (`type`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='微信回复表' AUTO_INCREMENT=1 ; + UNIQUE INDEX `type`(`type`, `media_id`) USING BTREE, + INDEX `type_2`(`type`) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '微信回复表' ROW_FORMAT = DYNAMIC; --- -------------------------------------------------------- - --- --- 表的结构 `eb_wechat_message` --- - -CREATE TABLE IF NOT EXISTS `eb_wechat_message` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '用户行为记录id', - `openid` varchar(32) NOT NULL COMMENT '用户openid', - `type` varchar(32) NOT NULL COMMENT '操作类型', - `result` varchar(512) NOT NULL COMMENT '操作详细记录', - `add_time` int(10) unsigned NOT NULL COMMENT '操作时间', +-- ---------------------------- +-- Table structure for eb_wechat_message +-- ---------------------------- +DROP TABLE IF EXISTS `eb_wechat_message`; +CREATE TABLE `eb_wechat_message` ( + `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '用户行为记录id', + `openid` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '用户openid', + `type` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '操作类型', + `result` varchar(512) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '操作详细记录', + `add_time` int(10) UNSIGNED NOT NULL COMMENT '操作时间', PRIMARY KEY (`id`) USING BTREE, - KEY `openid` (`openid`) USING BTREE, - KEY `type` (`type`) USING BTREE, - KEY `add_time` (`add_time`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='用户行为记录表' AUTO_INCREMENT=1 ; + INDEX `openid`(`openid`) USING BTREE, + INDEX `type`(`type`) USING BTREE, + INDEX `add_time`(`add_time`) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '用户行为记录表' ROW_FORMAT = DYNAMIC; --- -------------------------------------------------------- - --- --- 表的结构 `eb_wechat_news_category` --- - -CREATE TABLE IF NOT EXISTS `eb_wechat_news_category` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '图文消息管理ID', - `cate_name` varchar(255) NOT NULL COMMENT '图文名称', - `sort` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '排序', - `status` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '状态', - `new_id` varchar(255) NOT NULL COMMENT '文章id', - `add_time` varchar(255) NOT NULL COMMENT '添加时间', +-- ---------------------------- +-- Table structure for eb_wechat_news_category +-- ---------------------------- +DROP TABLE IF EXISTS `eb_wechat_news_category`; +CREATE TABLE `eb_wechat_news_category` ( + `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '图文消息管理ID', + `cate_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '图文名称', + `sort` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '排序', + `status` tinyint(1) UNSIGNED NOT NULL DEFAULT 1 COMMENT '状态', + `new_id` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '文章id', + `add_time` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '添加时间', PRIMARY KEY (`id`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='图文消息管理表' AUTO_INCREMENT=31 ; +) ENGINE = InnoDB AUTO_INCREMENT = 31 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '图文消息管理表' ROW_FORMAT = DYNAMIC; --- --- 转存表中的数据 `eb_wechat_news_category` --- +-- ---------------------------- +-- Records of eb_wechat_news_category +-- ---------------------------- +INSERT INTO `eb_wechat_news_category` VALUES (21, '11', 0, 1, '51,52,58,59,60,150', '1542379262'); +INSERT INTO `eb_wechat_news_category` VALUES (30, '阿斯达斯', 0, 1, '2', '1552965683'); -INSERT INTO `eb_wechat_news_category` (`id`, `cate_name`, `sort`, `status`, `new_id`, `add_time`) VALUES -(30, '阿斯达斯', 0, 1, '2', '1552965683'); - --- -------------------------------------------------------- - --- --- 表的结构 `eb_wechat_qrcode` --- - -CREATE TABLE IF NOT EXISTS `eb_wechat_qrcode` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '微信二维码ID', - `third_type` varchar(32) NOT NULL COMMENT '二维码类型', - `third_id` int(11) unsigned NOT NULL COMMENT '用户id', - `ticket` varchar(255) NOT NULL COMMENT '二维码参数', - `expire_seconds` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '二维码有效时间', - `status` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '状态', - `add_time` varchar(255) NOT NULL COMMENT '添加时间', - `url` varchar(255) NOT NULL COMMENT '微信访问url', - `qrcode_url` varchar(255) NOT NULL COMMENT '微信二维码url', - `scan` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '被扫的次数', +-- ---------------------------- +-- Table structure for eb_wechat_qrcode +-- ---------------------------- +DROP TABLE IF EXISTS `eb_wechat_qrcode`; +CREATE TABLE `eb_wechat_qrcode` ( + `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '微信二维码ID', + `third_type` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '二维码类型', + `third_id` int(11) UNSIGNED NOT NULL COMMENT '用户id', + `ticket` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '二维码参数', + `expire_seconds` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '二维码有效时间', + `status` tinyint(1) UNSIGNED NOT NULL DEFAULT 1 COMMENT '状态', + `add_time` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '添加时间', + `url` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '微信访问url', + `qrcode_url` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '微信二维码url', + `scan` int(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '被扫的次数', PRIMARY KEY (`id`) USING BTREE, - UNIQUE KEY `third_type` (`third_type`,`third_id`) USING BTREE, - KEY `ticket` (`ticket`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='微信二维码管理表' AUTO_INCREMENT=1 ; + UNIQUE INDEX `third_type`(`third_type`, `third_id`) USING BTREE, + INDEX `ticket`(`ticket`) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '微信二维码管理表' ROW_FORMAT = DYNAMIC; --- -------------------------------------------------------- - --- --- 表的结构 `eb_wechat_reply` --- - -CREATE TABLE IF NOT EXISTS `eb_wechat_reply` ( - `id` mediumint(8) unsigned NOT NULL AUTO_INCREMENT COMMENT '微信关键字回复id', - `key` varchar(64) NOT NULL COMMENT '关键字', - `type` varchar(32) NOT NULL COMMENT '回复类型', - `data` text NOT NULL COMMENT '回复数据', - `status` tinyint(1) unsigned NOT NULL DEFAULT '1' COMMENT '0=不可用 1 =可用', - `hide` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '是否隐藏', +-- ---------------------------- +-- Table structure for eb_wechat_reply +-- ---------------------------- +DROP TABLE IF EXISTS `eb_wechat_reply`; +CREATE TABLE `eb_wechat_reply` ( + `id` mediumint(8) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '微信关键字回复id', + `key` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '关键字', + `type` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '回复类型', + `data` text CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '回复数据', + `status` tinyint(1) UNSIGNED NOT NULL DEFAULT 1 COMMENT '0=不可用 1 =可用', + `hide` tinyint(1) UNSIGNED NOT NULL DEFAULT 0 COMMENT '是否隐藏', PRIMARY KEY (`id`) USING BTREE, - UNIQUE KEY `key` (`key`) USING BTREE, - KEY `type` (`type`) USING BTREE, - KEY `status` (`status`) USING BTREE, - KEY `hide` (`hide`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='微信关键字回复表' AUTO_INCREMENT=1 ; + UNIQUE INDEX `key`(`key`) USING BTREE, + INDEX `type`(`type`) USING BTREE, + INDEX `status`(`status`) USING BTREE, + INDEX `hide`(`hide`) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '微信关键字回复表' ROW_FORMAT = DYNAMIC; --- -------------------------------------------------------- - --- --- 表的结构 `eb_wechat_template` --- - -CREATE TABLE IF NOT EXISTS `eb_wechat_template` ( - `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '模板id', - `tempkey` char(50) NOT NULL COMMENT '模板编号', - `name` char(100) NOT NULL COMMENT '模板名', - `content` varchar(1000) NOT NULL COMMENT '回复内容', - `tempid` char(100) DEFAULT NULL COMMENT '模板ID', - `add_time` varchar(15) NOT NULL COMMENT '添加时间', - `status` tinyint(4) NOT NULL DEFAULT '0' COMMENT '状态', +-- ---------------------------- +-- Table structure for eb_wechat_template +-- ---------------------------- +DROP TABLE IF EXISTS `eb_wechat_template`; +CREATE TABLE `eb_wechat_template` ( + `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '模板id', + `tempkey` char(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '模板编号', + `name` char(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '模板名', + `content` varchar(1000) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '回复内容', + `tempid` char(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '模板ID', + `add_time` varchar(15) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '添加时间', + `status` tinyint(4) NOT NULL DEFAULT 0 COMMENT '状态', PRIMARY KEY (`id`) USING BTREE, - KEY `tempkey` (`tempkey`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='微信模板' AUTO_INCREMENT=17 ; + INDEX `tempkey`(`tempkey`) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 17 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '微信模板' ROW_FORMAT = DYNAMIC; --- --- 转存表中的数据 `eb_wechat_template` --- +-- ---------------------------- +-- Records of eb_wechat_template +-- ---------------------------- +INSERT INTO `eb_wechat_template` VALUES (3, 'OPENTM200565259', '订单发货提醒', '{{first.DATA}}\n订单编号:{{keyword1.DATA}}\n物流公司:{{keyword2.DATA}}\n物流单号:{{keyword3.DATA}}\n{{remark.DATA}}', 'KusKZOFc_4CrRU_gzuXMdMMTfFeR-OLVVuDiMyR5PiM', '1515052638', 1); +INSERT INTO `eb_wechat_template` VALUES (4, 'OPENTM413386489', '订单收货通知', '{{first.DATA}}\n订单编号:{{keyword1.DATA}}\n订单状态:{{keyword2.DATA}}\n收货时间:{{keyword3.DATA}}\n商品详情:{{keyword4.DATA}}\n{{remark.DATA}}', 'UNyz81kgsn1WZHSqmwPiF9fUkcdZghfTZvN6qtDuu54', '1515052765', 1); +INSERT INTO `eb_wechat_template` VALUES (5, 'OPENTM410119152', '退款进度通知', '{{first.DATA}}\n订单编号:{{keyword1.DATA}}\n订单金额:{{keyword2.DATA}}\n下单时间:{{keyword3.DATA}}\n{{remark.DATA}}', 'xrXtApBFv0L3-YXKkl9WYB89hJxFGfQo3jSsk2WpAwI', '1515053049', 1); +INSERT INTO `eb_wechat_template` VALUES (6, 'OPENTM405847076', '帐户资金变动提醒', '{{first.DATA}}\n变动类型:{{keyword1.DATA}}\n变动时间:{{keyword2.DATA}}\n变动金额:{{keyword3.DATA}}\n{{remark.DATA}}', 'Bk3XLd1Nwk9aNF1NIPBlyTDhrgNbzJW4H23OwVQdE-s', '1515053127', 1); +INSERT INTO `eb_wechat_template` VALUES (7, 'OPENTM207707249', '订单发货提醒', '\n{{first.DATA}}\n商品明细:{{keyword1.DATA}}\n下单时间:{{keyword2.DATA}}\n配送地址:{{keyword3.DATA}}\n配送人:{{keyword4.DATA}}\n联系电话:{{keyword5.DATA}}\n{{remark.DATA}}', 'KusKZOFc_4CrRU_gzuXMdMMTfFeR-OLVVuDiMyR5PiM', '1515053313', 1); +INSERT INTO `eb_wechat_template` VALUES (8, 'OPENTM408237350', '服务进度提醒', '{{first.DATA}}\n服务类型:{{keyword1.DATA}}\n服务状态:{{keyword2.DATA}}\n服务时间:{{keyword3.DATA}}\n{{remark.DATA}}', 'ul2g_y0oxqEhtWoSJBbLzmnPrUwtLnIAe30MTBRL7rw', '1515483915', 1); +INSERT INTO `eb_wechat_template` VALUES (9, 'OPENTM204431262', '客服通知提醒', '{{first.DATA}}\n客户名称:{{keyword1.DATA}}\n客服类型:{{keyword2.DATA}}\n提醒内容:{{keyword3.DATA}}\n通知时间:{{keyword4.DATA}}\n{{remark.DATA}}', 'j51mawxEmTuCCtMrXwSTnRfXH93qutoOebs5RG4MyHY', '1515484354', 1); +INSERT INTO `eb_wechat_template` VALUES (10, 'OPENTM407456411', '拼团成功通知', '{{first.DATA}}\n订单编号:{{keyword1.DATA}}\n团购商品:{{keyword2.DATA}}\n{{remark.DATA}}', 'CNvCAz9GIoQri-ogSCODVRANCBUQjZIxWzWvizbHVoQ', '1520063823', 1); +INSERT INTO `eb_wechat_template` VALUES (11, 'OPENTM401113750', '拼团失败通知', '{{first.DATA}}\n拼团商品:{{keyword1.DATA}}\n商品金额:{{keyword2.DATA}}\n退款金额:{{keyword3.DATA}}\n{{remark.DATA}}', 'mSg4ZexW1qaQH3FCrFLe746EYMlTFsZhfTB6VI_ElYg', '1520064059', 1); +INSERT INTO `eb_wechat_template` VALUES (12, 'OPENTM205213550', '订单生成通知', '{{first.DATA}}\n时间:{{keyword1.DATA}}\n商品名称:{{keyword2.DATA}}\n订单号:{{keyword3.DATA}}\n{{remark.DATA}}', 'HYD99ERso6_PcA3hAT6pzH1RmO88H6IIe8crAVaXPRE', '1528966701', 1); +INSERT INTO `eb_wechat_template` VALUES (13, 'OPENTM207791277', '订单支付成功通知', '{{first.DATA}}\n订单编号:{{keyword1.DATA}}\n支付金额:{{keyword2.DATA}}\n{{remark.DATA}}', 'hJV1d1OwWB_lbPrSaRHi9RGr5CFAF4PJcZdYeg73Mtg', '1528966759', 1); -INSERT INTO `eb_wechat_template` (`id`, `tempkey`, `name`, `content`, `tempid`, `add_time`, `status`) VALUES -(3, 'OPENTM200565259', '订单发货提醒', '{{first.DATA}}\n订单编号:{{keyword1.DATA}}\n物流公司:{{keyword2.DATA}}\n物流单号:{{keyword3.DATA}}\n{{remark.DATA}}', 'KusKZOFc_4CrRU_gzuXMdMMTfFeR-OLVVuDiMyR5PiM', '1515052638', 1), -(4, 'OPENTM413386489', '订单收货通知', '{{first.DATA}}\n订单编号:{{keyword1.DATA}}\n订单状态:{{keyword2.DATA}}\n收货时间:{{keyword3.DATA}}\n商品详情:{{keyword4.DATA}}\n{{remark.DATA}}', 'UNyz81kgsn1WZHSqmwPiF9fUkcdZghfTZvN6qtDuu54', '1515052765', 1), -(5, 'OPENTM410119152', '退款进度通知', '{{first.DATA}}\n订单编号:{{keyword1.DATA}}\n订单金额:{{keyword2.DATA}}\n下单时间:{{keyword3.DATA}}\n{{remark.DATA}}', 'xrXtApBFv0L3-YXKkl9WYB89hJxFGfQo3jSsk2WpAwI', '1515053049', 1), -(6, 'OPENTM405847076', '帐户资金变动提醒', '{{first.DATA}}\n变动类型:{{keyword1.DATA}}\n变动时间:{{keyword2.DATA}}\n变动金额:{{keyword3.DATA}}\n{{remark.DATA}}', 'Bk3XLd1Nwk9aNF1NIPBlyTDhrgNbzJW4H23OwVQdE-s', '1515053127', 1), -(7, 'OPENTM207707249', '订单发货提醒', '\n{{first.DATA}}\n商品明细:{{keyword1.DATA}}\n下单时间:{{keyword2.DATA}}\n配送地址:{{keyword3.DATA}}\n配送人:{{keyword4.DATA}}\n联系电话:{{keyword5.DATA}}\n{{remark.DATA}}', 'KusKZOFc_4CrRU_gzuXMdMMTfFeR-OLVVuDiMyR5PiM', '1515053313', 1), -(8, 'OPENTM408237350', '服务进度提醒', '{{first.DATA}}\n服务类型:{{keyword1.DATA}}\n服务状态:{{keyword2.DATA}}\n服务时间:{{keyword3.DATA}}\n{{remark.DATA}}', 'ul2g_y0oxqEhtWoSJBbLzmnPrUwtLnIAe30MTBRL7rw', '1515483915', 1), -(9, 'OPENTM204431262', '客服通知提醒', '{{first.DATA}}\n客户名称:{{keyword1.DATA}}\n客服类型:{{keyword2.DATA}}\n提醒内容:{{keyword3.DATA}}\n通知时间:{{keyword4.DATA}}\n{{remark.DATA}}', 'j51mawxEmTuCCtMrXwSTnRfXH93qutoOebs5RG4MyHY', '1515484354', 1), -(10, 'OPENTM407456411', '拼团成功通知', '{{first.DATA}}\n订单编号:{{keyword1.DATA}}\n团购商品:{{keyword2.DATA}}\n{{remark.DATA}}', 'CNvCAz9GIoQri-ogSCODVRANCBUQjZIxWzWvizbHVoQ', '1520063823', 1), -(11, 'OPENTM401113750', '拼团失败通知', '{{first.DATA}}\n拼团商品:{{keyword1.DATA}}\n商品金额:{{keyword2.DATA}}\n退款金额:{{keyword3.DATA}}\n{{remark.DATA}}', 'mSg4ZexW1qaQH3FCrFLe746EYMlTFsZhfTB6VI_ElYg', '1520064059', 1), -(12, 'OPENTM205213550', '订单生成通知', '{{first.DATA}}\n时间:{{keyword1.DATA}}\n商品名称:{{keyword2.DATA}}\n订单号:{{keyword3.DATA}}\n{{remark.DATA}}', 'HYD99ERso6_PcA3hAT6pzH1RmO88H6IIe8crAVaXPRE', '1528966701', 1), -(13, 'OPENTM207791277', '订单支付成功通知', '{{first.DATA}}\n订单编号:{{keyword1.DATA}}\n支付金额:{{keyword2.DATA}}\n{{remark.DATA}}', 'hJV1d1OwWB_lbPrSaRHi9RGr5CFAF4PJcZdYeg73Mtg', '1528966759', 1); - --- -------------------------------------------------------- - --- --- 表的结构 `eb_wechat_user` --- - -CREATE TABLE IF NOT EXISTS `eb_wechat_user` ( - `uid` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '微信用户id', - `unionid` varchar(30) DEFAULT NULL COMMENT '只有在用户将公众号绑定到微信开放平台帐号后,才会出现该字段', - `openid` varchar(30) DEFAULT NULL COMMENT '用户的标识,对当前公众号唯一', - `routine_openid` varchar(32) DEFAULT NULL COMMENT '小程序唯一身份ID', - `nickname` varchar(64) NOT NULL COMMENT '用户的昵称', - `headimgurl` varchar(256) NOT NULL COMMENT '用户头像', - `sex` tinyint(1) unsigned NOT NULL DEFAULT '0' COMMENT '用户的性别,值为1时是男性,值为2时是女性,值为0时是未知', - `city` varchar(64) NOT NULL COMMENT '用户所在城市', - `language` varchar(64) NOT NULL COMMENT '用户的语言,简体中文为zh_CN', - `province` varchar(64) NOT NULL COMMENT '用户所在省份', - `country` varchar(64) NOT NULL COMMENT '用户所在国家', - `remark` varchar(256) DEFAULT NULL COMMENT '公众号运营者对粉丝的备注,公众号运营者可在微信公众平台用户管理界面对粉丝添加备注', - `groupid` smallint(5) unsigned DEFAULT '0' COMMENT '用户所在的分组ID(兼容旧的用户分组接口)', - `tagid_list` varchar(256) DEFAULT NULL COMMENT '用户被打上的标签ID列表', - `subscribe` tinyint(3) unsigned DEFAULT '1' COMMENT '用户是否订阅该公众号标识', - `subscribe_time` int(10) unsigned DEFAULT NULL COMMENT '关注公众号时间', - `add_time` int(10) unsigned DEFAULT NULL COMMENT '添加时间', - `stair` int(11) unsigned DEFAULT NULL COMMENT '一级推荐人', - `second` int(11) unsigned DEFAULT NULL COMMENT '二级推荐人', - `order_stair` int(11) DEFAULT NULL COMMENT '一级推荐人订单', - `order_second` int(11) unsigned DEFAULT NULL COMMENT '二级推荐人订单', - `now_money` decimal(8,2) unsigned DEFAULT NULL COMMENT '佣金', - `session_key` varchar(32) DEFAULT NULL COMMENT '小程序用户会话密匙', - `user_type` varchar(32) DEFAULT 'wechat' COMMENT '用户类型', +-- ---------------------------- +-- Table structure for eb_wechat_user +-- ---------------------------- +DROP TABLE IF EXISTS `eb_wechat_user`; +CREATE TABLE `eb_wechat_user` ( + `uid` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '微信用户id', + `unionid` varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '只有在用户将公众号绑定到微信开放平台帐号后,才会出现该字段', + `openid` varchar(30) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '用户的标识,对当前公众号唯一', + `routine_openid` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '小程序唯一身份ID', + `nickname` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '用户的昵称', + `headimgurl` varchar(256) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '用户头像', + `sex` tinyint(1) UNSIGNED NOT NULL DEFAULT 0 COMMENT '用户的性别,值为1时是男性,值为2时是女性,值为0时是未知', + `city` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '用户所在城市', + `language` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '用户的语言,简体中文为zh_CN', + `province` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '用户所在省份', + `country` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '用户所在国家', + `remark` varchar(256) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '公众号运营者对粉丝的备注,公众号运营者可在微信公众平台用户管理界面对粉丝添加备注', + `groupid` smallint(5) UNSIGNED NULL DEFAULT 0 COMMENT '用户所在的分组ID(兼容旧的用户分组接口)', + `tagid_list` varchar(256) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '用户被打上的标签ID列表', + `subscribe` tinyint(3) UNSIGNED NULL DEFAULT 1 COMMENT '用户是否订阅该公众号标识', + `subscribe_time` int(10) UNSIGNED NULL DEFAULT NULL COMMENT '关注公众号时间', + `add_time` int(10) UNSIGNED NULL DEFAULT NULL COMMENT '添加时间', + `stair` int(11) UNSIGNED NULL DEFAULT NULL COMMENT '一级推荐人', + `second` int(11) UNSIGNED NULL DEFAULT NULL COMMENT '二级推荐人', + `order_stair` int(11) NULL DEFAULT NULL COMMENT '一级推荐人订单', + `order_second` int(11) UNSIGNED NULL DEFAULT NULL COMMENT '二级推荐人订单', + `now_money` decimal(8, 2) UNSIGNED NULL DEFAULT NULL COMMENT '佣金', + `session_key` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '小程序用户会话密匙', + `user_type` varchar(32) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT 'wechat' COMMENT '用户类型', PRIMARY KEY (`uid`) USING BTREE, - KEY `openid` (`openid`) USING BTREE, - KEY `groupid` (`groupid`) USING BTREE, - KEY `subscribe_time` (`subscribe_time`) USING BTREE, - KEY `add_time` (`add_time`) USING BTREE, - KEY `subscribe` (`subscribe`) USING BTREE, - KEY `unionid` (`unionid`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='微信用户表' AUTO_INCREMENT=1 ; + INDEX `openid`(`openid`) USING BTREE, + INDEX `groupid`(`groupid`) USING BTREE, + INDEX `subscribe_time`(`subscribe_time`) USING BTREE, + INDEX `add_time`(`add_time`) USING BTREE, + INDEX `subscribe`(`subscribe`) USING BTREE, + INDEX `unionid`(`unionid`) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '微信用户表' ROW_FORMAT = DYNAMIC; -/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; -/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; -/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; +-- ---------------------------- +-- Records of eb_wechat_user +-- ---------------------------- +INSERT INTO `eb_wechat_user` VALUES (1, '', NULL, 'o9qvr4iV5qWtMWyIDbZ7K6N7UG8o', '等风来,随风去', 'https://wx.qlogo.cn/mmopen/vi_32/DYAIOgq83eqj70fHkbW9aJgp0KWMsp7cqOsgT16Syr8mWt9JkhngDWARibyNv5MBia3h8Y3BOkHBHdLiaX8Hq9J0w/132', 1, '安康', 'zh_CN', '陕西', '中国', NULL, 0, NULL, 1, NULL, 1555153423, NULL, NULL, NULL, NULL, NULL, 'BXSON6AH+vFXz7YnykLLzw==', 'routine'); + +SET FOREIGN_KEY_CHECKS = 1; diff --git a/public/install/index.php b/public/install/index.php index 61dcace6..3de3f235 100644 --- a/public/install/index.php +++ b/public/install/index.php @@ -18,9 +18,9 @@ if (file_exists('./install.lock')) { } @set_time_limit(1000); -if ('5.5.9' > phpversion()){ +if (PHP_EDITION > phpversion()){ header("Content-type:text/html;charset=utf-8"); - exit('您的php版本过低,不能安装本软件,请升级到5.5.9或更高版本再安装,谢谢!'); + exit('您的php版本过低,不能安装本软件,请升级到'.PHP_EDITION.'或更高版本再安装,谢谢!'); } define("CRMEB_VERSION", '20180601'); @@ -67,8 +67,8 @@ switch ($step) { case '2': - if (phpversion() < 5.6) { - die('本系统需要PHP5+MYSQL >=5.5.9环境,当前PHP版本为:' . phpversion()); + if (phpversion() <= PHP_EDITION) { + die('本系统需要PHP版本 >= '.PHP_EDITION.'环境,当前PHP版本为:' . phpversion()); } $phpv = @ phpversion(); diff --git a/public/install/index_sae.php b/public/install/index_sae.php index 956bf23c..311c9468 100644 --- a/public/install/index_sae.php +++ b/public/install/index_sae.php @@ -12,10 +12,10 @@ if (file_exists('./install.lock')) { exit; } @set_time_limit(1000); -if (phpversion() <= '5.4.0') +if (phpversion() <= PHP_EDITION) set_magic_quotes_runtime(0); -if ('5.4.0' > phpversion()) - exit('您的php版本过低,不能安装本软件,请升级到5.4.0或更高版本再安装,谢谢!'); +if (PHP_EDITION > phpversion()) + exit('您的php版本过低,不能安装本软件,请升级到'.PHP_EDITION.'或更高版本再安装,谢谢!'); date_default_timezone_set('PRC'); error_reporting(E_ALL & ~E_NOTICE); @@ -67,8 +67,8 @@ switch ($step) { case '2': - if (phpversion() < 5) { - die('本系统需要PHP5+MYSQL >=5.5.9环境,当前PHP版本为:' . phpversion()); + if (phpversion() < PHP_EDITION) { + die('本系统需要PHP版本 >='.PHP_EDITION.'环境,当前PHP版本为:' . phpversion()); } $phpv = @ phpversion(); @@ -167,7 +167,7 @@ switch ($step) { for ($i = $n; $i < $counts; $i++) { $sql = trim($sqlFormat[$i]); if (strstr($sql, 'CREATE TABLE')) { - preg_match('/CREATE TABLE IF NOT EXISTS `eb_([^ ]*)`/is', $sql, $matches); + preg_match('/CREATE TABLE `eb_([^ ]*)`/is', $sql, $matches); mysqli_query($conn,"DROP TABLE IF EXISTS `$matches[1]"); $sql = str_replace('`eb_','`'.$dbPrefix,$sql);//替换表前缀 $ret = mysqli_query($conn,$sql); diff --git a/public/install/templates/step2.php b/public/install/templates/step2.php index 43f8ca62..e1c445d6 100644 --- a/public/install/templates/step2.php +++ b/public/install/templates/step2.php @@ -38,9 +38,9 @@ </tr> <tr> <td>PHP版本</td> - <td>>5.5.x</td> + <td>><?php echo PHP_EDITION; ?></td> <td><span class="correct_span">√</span> <?php echo $phpv; ?></td> - <td>5.5.9以上</td> + <td><?php echo PHP_EDITION; ?>以上</td> </tr> <tr> <td>附件上传</td> @@ -133,12 +133,19 @@ <td>建议开启</td> <td><?php echo $file_put_contents; ?></td> <td>--</td> - </tr> <tr> + </tr> + <tr> <td>BC</td> <td>必须扩展</td> <td><?php echo $BC; ?></td> <td>--</td> </tr> + <tr> + <td>Openssl</td> + <td>必须扩展</td> + <td><?php echo $openssl; ?></td> + <td>--</td> + </tr> </table> </div> <div class="bottom tac"> diff --git a/public/install/templates/step5.php b/public/install/templates/step5.php index 318f94ec..3299f6d6 100644 --- a/public/install/templates/step5.php +++ b/public/install/templates/step5.php @@ -33,7 +33,7 @@ $(function(){ $.ajax({ type: "POST", url: "http://shop.crmeb.net/index.php/admin/server.upgrade_api/updatewebinfo", - data: {host:'<?php echo $host;?>',https:'<?php echo 'http://'.$host;?>',version:'CRMEB-DTKY v2.6.03',ip:'<?php echo $_SERVER[HTTP_CLIENT_IP];?>'}, + data: {host:'<?php echo $host;?>',https:'<?php echo 'http://'.$host;?>',version:'CRMEB-DT v2.6.12',ip:'<?php echo $_SERVER[HTTP_CLIENT_IP];?>'}, dataType: 'json', success: function(){} }); diff --git a/public/static/font/Alibaba-PuHuiTi-Regular.otf b/public/static/font/Alibaba-PuHuiTi-Regular.otf new file mode 100644 index 00000000..5960ba12 Binary files /dev/null and b/public/static/font/Alibaba-PuHuiTi-Regular.otf differ diff --git a/public/static/plug/layui/css/layui.css b/public/static/plug/layui/css/layui.css index c9f076d4..9e9d28a6 100755 --- a/public/static/plug/layui/css/layui.css +++ b/public/static/plug/layui/css/layui.css @@ -1,2 +1,2 @@ -/** layui-v2.4.3 MIT License By https://www.layui.com */ - .layui-inline,img{display:inline-block;vertical-align:middle}h1,h2,h3,h4,h5,h6{font-weight:400}.layui-edge,.layui-header,.layui-inline,.layui-main{position:relative}.layui-btn,.layui-edge,.layui-inline,img{vertical-align:middle}.layui-btn,.layui-disabled,.layui-icon,.layui-unselect{-webkit-user-select:none;-ms-user-select:none;-moz-user-select:none}blockquote,body,button,dd,div,dl,dt,form,h1,h2,h3,h4,h5,h6,input,li,ol,p,pre,td,textarea,th,ul{margin:0;padding:0;-webkit-tap-highlight-color:rgba(0,0,0,0)}a:active,a:hover{outline:0}img{border:none}li{list-style:none}table{border-collapse:collapse;border-spacing:0}h4,h5,h6{font-size:100%}button,input,optgroup,option,select,textarea{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;outline:0}pre{white-space:pre-wrap;white-space:-moz-pre-wrap;white-space:-pre-wrap;white-space:-o-pre-wrap;word-wrap:break-word}body{line-height:24px;font:14px Helvetica Neue,Helvetica,PingFang SC,Tahoma,Arial,sans-serif}hr{height:1px;margin:10px 0;border:0;clear:both}a{color:#333;text-decoration:none}a:hover{color:#777}a cite{font-style:normal;*cursor:pointer}.layui-border-box,.layui-border-box *{box-sizing:border-box}.layui-box,.layui-box *{box-sizing:content-box}.layui-clear{clear:both;*zoom:1}.layui-clear:after{content:'\20';clear:both;*zoom:1;display:block;height:0}.layui-inline{*display:inline;*zoom:1}.layui-edge{display:inline-block;width:0;height:0;border-width:6px;border-style:dashed;border-color:transparent;overflow:hidden}.layui-edge-top{top:-4px;border-bottom-color:#999;border-bottom-style:solid}.layui-edge-right{border-left-color:#999;border-left-style:solid}.layui-edge-bottom{top:2px;border-top-color:#999;border-top-style:solid}.layui-edge-left{border-right-color:#999;border-right-style:solid}.layui-elip{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.layui-disabled,.layui-disabled:hover{color:#d2d2d2!important;cursor:not-allowed!important}.layui-circle{border-radius:100%}.layui-show{display:block!important}.layui-hide{display:none!important}@font-face{font-family:layui-icon;src:url(../font/iconfont.eot?v=240);src:url(../font/iconfont.eot?v=240#iefix) format('embedded-opentype'),url(../font/iconfont.svg?v=240#iconfont) format('svg'),url(../font/iconfont.woff?v=240) format('woff'),url(../font/iconfont.ttf?v=240) format('truetype')}.layui-icon{font-family:layui-icon!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.layui-icon-reply-fill:before{content:"\e611"}.layui-icon-set-fill:before{content:"\e614"}.layui-icon-menu-fill:before{content:"\e60f"}.layui-icon-search:before{content:"\e615"}.layui-icon-share:before{content:"\e641"}.layui-icon-set-sm:before{content:"\e620"}.layui-icon-engine:before{content:"\e628"}.layui-icon-close:before{content:"\1006"}.layui-icon-close-fill:before{content:"\1007"}.layui-icon-chart-screen:before{content:"\e629"}.layui-icon-star:before{content:"\e600"}.layui-icon-circle-dot:before{content:"\e617"}.layui-icon-chat:before{content:"\e606"}.layui-icon-release:before{content:"\e609"}.layui-icon-list:before{content:"\e60a"}.layui-icon-chart:before{content:"\e62c"}.layui-icon-ok-circle:before{content:"\1005"}.layui-icon-layim-theme:before{content:"\e61b"}.layui-icon-table:before{content:"\e62d"}.layui-icon-right:before{content:"\e602"}.layui-icon-left:before{content:"\e603"}.layui-icon-cart-simple:before{content:"\e698"}.layui-icon-face-cry:before{content:"\e69c"}.layui-icon-face-smile:before{content:"\e6af"}.layui-icon-survey:before{content:"\e6b2"}.layui-icon-tree:before{content:"\e62e"}.layui-icon-upload-circle:before{content:"\e62f"}.layui-icon-add-circle:before{content:"\e61f"}.layui-icon-download-circle:before{content:"\e601"}.layui-icon-templeate-1:before{content:"\e630"}.layui-icon-util:before{content:"\e631"}.layui-icon-face-surprised:before{content:"\e664"}.layui-icon-edit:before{content:"\e642"}.layui-icon-speaker:before{content:"\e645"}.layui-icon-down:before{content:"\e61a"}.layui-icon-file:before{content:"\e621"}.layui-icon-layouts:before{content:"\e632"}.layui-icon-rate-half:before{content:"\e6c9"}.layui-icon-add-circle-fine:before{content:"\e608"}.layui-icon-prev-circle:before{content:"\e633"}.layui-icon-read:before{content:"\e705"}.layui-icon-404:before{content:"\e61c"}.layui-icon-carousel:before{content:"\e634"}.layui-icon-help:before{content:"\e607"}.layui-icon-code-circle:before{content:"\e635"}.layui-icon-water:before{content:"\e636"}.layui-icon-username:before{content:"\e66f"}.layui-icon-find-fill:before{content:"\e670"}.layui-icon-about:before{content:"\e60b"}.layui-icon-location:before{content:"\e715"}.layui-icon-up:before{content:"\e619"}.layui-icon-pause:before{content:"\e651"}.layui-icon-date:before{content:"\e637"}.layui-icon-layim-uploadfile:before{content:"\e61d"}.layui-icon-delete:before{content:"\e640"}.layui-icon-play:before{content:"\e652"}.layui-icon-top:before{content:"\e604"}.layui-icon-friends:before{content:"\e612"}.layui-icon-refresh-3:before{content:"\e9aa"}.layui-icon-ok:before{content:"\e605"}.layui-icon-layer:before{content:"\e638"}.layui-icon-face-smile-fine:before{content:"\e60c"}.layui-icon-dollar:before{content:"\e659"}.layui-icon-group:before{content:"\e613"}.layui-icon-layim-download:before{content:"\e61e"}.layui-icon-picture-fine:before{content:"\e60d"}.layui-icon-link:before{content:"\e64c"}.layui-icon-diamond:before{content:"\e735"}.layui-icon-log:before{content:"\e60e"}.layui-icon-rate-solid:before{content:"\e67a"}.layui-icon-fonts-del:before{content:"\e64f"}.layui-icon-unlink:before{content:"\e64d"}.layui-icon-fonts-clear:before{content:"\e639"}.layui-icon-triangle-r:before{content:"\e623"}.layui-icon-circle:before{content:"\e63f"}.layui-icon-radio:before{content:"\e643"}.layui-icon-align-center:before{content:"\e647"}.layui-icon-align-right:before{content:"\e648"}.layui-icon-align-left:before{content:"\e649"}.layui-icon-loading-1:before{content:"\e63e"}.layui-icon-return:before{content:"\e65c"}.layui-icon-fonts-strong:before{content:"\e62b"}.layui-icon-upload:before{content:"\e67c"}.layui-icon-dialogue:before{content:"\e63a"}.layui-icon-video:before{content:"\e6ed"}.layui-icon-headset:before{content:"\e6fc"}.layui-icon-cellphone-fine:before{content:"\e63b"}.layui-icon-add-1:before{content:"\e654"}.layui-icon-face-smile-b:before{content:"\e650"}.layui-icon-fonts-html:before{content:"\e64b"}.layui-icon-form:before{content:"\e63c"}.layui-icon-cart:before{content:"\e657"}.layui-icon-camera-fill:before{content:"\e65d"}.layui-icon-tabs:before{content:"\e62a"}.layui-icon-fonts-code:before{content:"\e64e"}.layui-icon-fire:before{content:"\e756"}.layui-icon-set:before{content:"\e716"}.layui-icon-fonts-u:before{content:"\e646"}.layui-icon-triangle-d:before{content:"\e625"}.layui-icon-tips:before{content:"\e702"}.layui-icon-picture:before{content:"\e64a"}.layui-icon-more-vertical:before{content:"\e671"}.layui-icon-flag:before{content:"\e66c"}.layui-icon-loading:before{content:"\e63d"}.layui-icon-fonts-i:before{content:"\e644"}.layui-icon-refresh-1:before{content:"\e666"}.layui-icon-rmb:before{content:"\e65e"}.layui-icon-home:before{content:"\e68e"}.layui-icon-user:before{content:"\e770"}.layui-icon-notice:before{content:"\e667"}.layui-icon-login-weibo:before{content:"\e675"}.layui-icon-voice:before{content:"\e688"}.layui-icon-upload-drag:before{content:"\e681"}.layui-icon-login-qq:before{content:"\e676"}.layui-icon-snowflake:before{content:"\e6b1"}.layui-icon-file-b:before{content:"\e655"}.layui-icon-template:before{content:"\e663"}.layui-icon-auz:before{content:"\e672"}.layui-icon-console:before{content:"\e665"}.layui-icon-app:before{content:"\e653"}.layui-icon-prev:before{content:"\e65a"}.layui-icon-website:before{content:"\e7ae"}.layui-icon-next:before{content:"\e65b"}.layui-icon-component:before{content:"\e857"}.layui-icon-more:before{content:"\e65f"}.layui-icon-login-wechat:before{content:"\e677"}.layui-icon-shrink-right:before{content:"\e668"}.layui-icon-spread-left:before{content:"\e66b"}.layui-icon-camera:before{content:"\e660"}.layui-icon-note:before{content:"\e66e"}.layui-icon-refresh:before{content:"\e669"}.layui-icon-female:before{content:"\e661"}.layui-icon-male:before{content:"\e662"}.layui-icon-password:before{content:"\e673"}.layui-icon-senior:before{content:"\e674"}.layui-icon-theme:before{content:"\e66a"}.layui-icon-tread:before{content:"\e6c5"}.layui-icon-praise:before{content:"\e6c6"}.layui-icon-star-fill:before{content:"\e658"}.layui-icon-rate:before{content:"\e67b"}.layui-icon-template-1:before{content:"\e656"}.layui-icon-vercode:before{content:"\e679"}.layui-icon-cellphone:before{content:"\e678"}.layui-icon-screen-full:before{content:"\e622"}.layui-icon-screen-restore:before{content:"\e758"}.layui-icon-cols:before{content:"\e610"}.layui-icon-export:before{content:"\e67d"}.layui-icon-print:before{content:"\e66d"}.layui-icon-slider:before{content:"\e714"}.layui-main{width:1140px;margin:0 auto}.layui-header{z-index:1000;height:60px}.layui-header a:hover{transition:all .5s;-webkit-transition:all .5s}.layui-side{position:fixed;left:0;top:0;bottom:0;z-index:999;width:200px;overflow-x:hidden}.layui-side-scroll{position:relative;width:220px;height:100%;overflow-x:hidden}.layui-body{position:absolute;left:200px;right:0;top:0;bottom:0;z-index:998;width:auto;overflow:hidden;overflow-y:auto;box-sizing:border-box}.layui-layout-body{overflow:hidden}.layui-layout-admin .layui-header{background-color:#23262E}.layui-layout-admin .layui-side{top:60px;width:200px;overflow-x:hidden}.layui-layout-admin .layui-body{top:60px;bottom:44px}.layui-layout-admin .layui-main{width:auto;margin:0 15px}.layui-layout-admin .layui-footer{position:fixed;left:200px;right:0;bottom:0;height:44px;line-height:44px;padding:0 15px;background-color:#eee}.layui-layout-admin .layui-logo{position:absolute;left:0;top:0;width:200px;height:100%;line-height:60px;text-align:center;color:#009688;font-size:16px}.layui-layout-admin .layui-header .layui-nav{background:0 0}.layui-layout-left{position:absolute!important;left:200px;top:0}.layui-layout-right{position:absolute!important;right:0;top:0}.layui-container{position:relative;margin:0 auto;padding:0 15px;box-sizing:border-box}.layui-fluid{position:relative;margin:0 auto;padding:0 15px}.layui-row:after,.layui-row:before{content:'';display:block;clear:both}.layui-col-lg1,.layui-col-lg10,.layui-col-lg11,.layui-col-lg12,.layui-col-lg2,.layui-col-lg3,.layui-col-lg4,.layui-col-lg5,.layui-col-lg6,.layui-col-lg7,.layui-col-lg8,.layui-col-lg9,.layui-col-md1,.layui-col-md10,.layui-col-md11,.layui-col-md12,.layui-col-md2,.layui-col-md3,.layui-col-md4,.layui-col-md5,.layui-col-md6,.layui-col-md7,.layui-col-md8,.layui-col-md9,.layui-col-sm1,.layui-col-sm10,.layui-col-sm11,.layui-col-sm12,.layui-col-sm2,.layui-col-sm3,.layui-col-sm4,.layui-col-sm5,.layui-col-sm6,.layui-col-sm7,.layui-col-sm8,.layui-col-sm9,.layui-col-xs1,.layui-col-xs10,.layui-col-xs11,.layui-col-xs12,.layui-col-xs2,.layui-col-xs3,.layui-col-xs4,.layui-col-xs5,.layui-col-xs6,.layui-col-xs7,.layui-col-xs8,.layui-col-xs9{position:relative;display:block;box-sizing:border-box}.layui-col-xs1,.layui-col-xs10,.layui-col-xs11,.layui-col-xs12,.layui-col-xs2,.layui-col-xs3,.layui-col-xs4,.layui-col-xs5,.layui-col-xs6,.layui-col-xs7,.layui-col-xs8,.layui-col-xs9{float:left}.layui-col-xs1{width:8.33333333%}.layui-col-xs2{width:16.66666667%}.layui-col-xs3{width:25%}.layui-col-xs4{width:33.33333333%}.layui-col-xs5{width:41.66666667%}.layui-col-xs6{width:50%}.layui-col-xs7{width:58.33333333%}.layui-col-xs8{width:66.66666667%}.layui-col-xs9{width:75%}.layui-col-xs10{width:83.33333333%}.layui-col-xs11{width:91.66666667%}.layui-col-xs12{width:100%}.layui-col-xs-offset1{margin-left:8.33333333%}.layui-col-xs-offset2{margin-left:16.66666667%}.layui-col-xs-offset3{margin-left:25%}.layui-col-xs-offset4{margin-left:33.33333333%}.layui-col-xs-offset5{margin-left:41.66666667%}.layui-col-xs-offset6{margin-left:50%}.layui-col-xs-offset7{margin-left:58.33333333%}.layui-col-xs-offset8{margin-left:66.66666667%}.layui-col-xs-offset9{margin-left:75%}.layui-col-xs-offset10{margin-left:83.33333333%}.layui-col-xs-offset11{margin-left:91.66666667%}.layui-col-xs-offset12{margin-left:100%}@media screen and (max-width:768px){.layui-hide-xs{display:none!important}.layui-show-xs-block{display:block!important}.layui-show-xs-inline{display:inline!important}.layui-show-xs-inline-block{display:inline-block!important}}@media screen and (min-width:768px){.layui-container{width:750px}.layui-hide-sm{display:none!important}.layui-show-sm-block{display:block!important}.layui-show-sm-inline{display:inline!important}.layui-show-sm-inline-block{display:inline-block!important}.layui-col-sm1,.layui-col-sm10,.layui-col-sm11,.layui-col-sm12,.layui-col-sm2,.layui-col-sm3,.layui-col-sm4,.layui-col-sm5,.layui-col-sm6,.layui-col-sm7,.layui-col-sm8,.layui-col-sm9{float:left}.layui-col-sm1{width:8.33333333%}.layui-col-sm2{width:16.66666667%}.layui-col-sm3{width:25%}.layui-col-sm4{width:33.33333333%}.layui-col-sm5{width:41.66666667%}.layui-col-sm6{width:50%}.layui-col-sm7{width:58.33333333%}.layui-col-sm8{width:66.66666667%}.layui-col-sm9{width:75%}.layui-col-sm10{width:83.33333333%}.layui-col-sm11{width:91.66666667%}.layui-col-sm12{width:100%}.layui-col-sm-offset1{margin-left:8.33333333%}.layui-col-sm-offset2{margin-left:16.66666667%}.layui-col-sm-offset3{margin-left:25%}.layui-col-sm-offset4{margin-left:33.33333333%}.layui-col-sm-offset5{margin-left:41.66666667%}.layui-col-sm-offset6{margin-left:50%}.layui-col-sm-offset7{margin-left:58.33333333%}.layui-col-sm-offset8{margin-left:66.66666667%}.layui-col-sm-offset9{margin-left:75%}.layui-col-sm-offset10{margin-left:83.33333333%}.layui-col-sm-offset11{margin-left:91.66666667%}.layui-col-sm-offset12{margin-left:100%}}@media screen and (min-width:992px){.layui-container{width:970px}.layui-hide-md{display:none!important}.layui-show-md-block{display:block!important}.layui-show-md-inline{display:inline!important}.layui-show-md-inline-block{display:inline-block!important}.layui-col-md1,.layui-col-md10,.layui-col-md11,.layui-col-md12,.layui-col-md2,.layui-col-md3,.layui-col-md4,.layui-col-md5,.layui-col-md6,.layui-col-md7,.layui-col-md8,.layui-col-md9{float:left}.layui-col-md1{width:8.33333333%}.layui-col-md2{width:16.66666667%}.layui-col-md3{width:25%}.layui-col-md4{width:33.33333333%}.layui-col-md5{width:41.66666667%}.layui-col-md6{width:50%}.layui-col-md7{width:58.33333333%}.layui-col-md8{width:66.66666667%}.layui-col-md9{width:75%}.layui-col-md10{width:83.33333333%}.layui-col-md11{width:91.66666667%}.layui-col-md12{width:100%}.layui-col-md-offset1{margin-left:8.33333333%}.layui-col-md-offset2{margin-left:16.66666667%}.layui-col-md-offset3{margin-left:25%}.layui-col-md-offset4{margin-left:33.33333333%}.layui-col-md-offset5{margin-left:41.66666667%}.layui-col-md-offset6{margin-left:50%}.layui-col-md-offset7{margin-left:58.33333333%}.layui-col-md-offset8{margin-left:66.66666667%}.layui-col-md-offset9{margin-left:75%}.layui-col-md-offset10{margin-left:83.33333333%}.layui-col-md-offset11{margin-left:91.66666667%}.layui-col-md-offset12{margin-left:100%}}@media screen and (min-width:1200px){.layui-container{width:1170px}.layui-hide-lg{display:none!important}.layui-show-lg-block{display:block!important}.layui-show-lg-inline{display:inline!important}.layui-show-lg-inline-block{display:inline-block!important}.layui-col-lg1,.layui-col-lg10,.layui-col-lg11,.layui-col-lg12,.layui-col-lg2,.layui-col-lg3,.layui-col-lg4,.layui-col-lg5,.layui-col-lg6,.layui-col-lg7,.layui-col-lg8,.layui-col-lg9{float:left}.layui-col-lg1{width:8.33333333%}.layui-col-lg2{width:16.66666667%}.layui-col-lg3{width:25%}.layui-col-lg4{width:33.33333333%}.layui-col-lg5{width:41.66666667%}.layui-col-lg6{width:50%}.layui-col-lg7{width:58.33333333%}.layui-col-lg8{width:66.66666667%}.layui-col-lg9{width:75%}.layui-col-lg10{width:83.33333333%}.layui-col-lg11{width:91.66666667%}.layui-col-lg12{width:100%}.layui-col-lg-offset1{margin-left:8.33333333%}.layui-col-lg-offset2{margin-left:16.66666667%}.layui-col-lg-offset3{margin-left:25%}.layui-col-lg-offset4{margin-left:33.33333333%}.layui-col-lg-offset5{margin-left:41.66666667%}.layui-col-lg-offset6{margin-left:50%}.layui-col-lg-offset7{margin-left:58.33333333%}.layui-col-lg-offset8{margin-left:66.66666667%}.layui-col-lg-offset9{margin-left:75%}.layui-col-lg-offset10{margin-left:83.33333333%}.layui-col-lg-offset11{margin-left:91.66666667%}.layui-col-lg-offset12{margin-left:100%}}.layui-col-space1{margin:-.5px}.layui-col-space1>*{padding:.5px}.layui-col-space3{margin:-1.5px}.layui-col-space3>*{padding:1.5px}.layui-col-space5{margin:-2.5px}.layui-col-space5>*{padding:2.5px}.layui-col-space8{margin:-3.5px}.layui-col-space8>*{padding:3.5px}.layui-col-space10{margin:-5px}.layui-col-space10>*{padding:5px}.layui-col-space12{margin:-6px}.layui-col-space12>*{padding:6px}.layui-col-space15{margin:-7.5px}.layui-col-space15>*{padding:7.5px}.layui-col-space18{margin:-9px}.layui-col-space18>*{padding:9px}.layui-col-space20{margin:-10px}.layui-col-space20>*{padding:10px}.layui-col-space22{margin:-11px}.layui-col-space22>*{padding:11px}.layui-col-space25{margin:-12.5px}.layui-col-space25>*{padding:12.5px}.layui-col-space30{margin:-15px}.layui-col-space30>*{padding:15px}.layui-btn,.layui-input,.layui-select,.layui-textarea,.layui-upload-button{outline:0;-webkit-appearance:none;transition:all .3s;-webkit-transition:all .3s;box-sizing:border-box}.layui-elem-quote{margin-bottom:10px;padding:15px;line-height:22px;border-left:5px solid #009688;border-radius:0 2px 2px 0;background-color:#f2f2f2}.layui-quote-nm{border-style:solid;border-width:1px 1px 1px 5px;background:0 0}.layui-elem-field{margin-bottom:10px;padding:0;border-width:1px;border-style:solid}.layui-elem-field legend{margin-left:20px;padding:0 10px;font-size:20px;font-weight:300}.layui-field-title{margin:10px 0 20px;border-width:1px 0 0}.layui-field-box{padding:10px 15px}.layui-field-title .layui-field-box{padding:10px 0}.layui-progress{position:relative;height:6px;border-radius:20px;background-color:#e2e2e2}.layui-progress-bar{position:absolute;left:0;top:0;width:0;max-width:100%;height:6px;border-radius:20px;text-align:right;background-color:#5FB878;transition:all .3s;-webkit-transition:all .3s}.layui-progress-big,.layui-progress-big .layui-progress-bar{height:18px;line-height:18px}.layui-progress-text{position:relative;top:-20px;line-height:18px;font-size:12px;color:#666}.layui-progress-big .layui-progress-text{position:static;padding:0 10px;color:#fff}.layui-collapse{border-width:1px;border-style:solid;border-radius:2px}.layui-colla-content,.layui-colla-item{border-top-width:1px;border-top-style:solid}.layui-colla-item:first-child{border-top:none}.layui-colla-title{position:relative;height:42px;line-height:42px;padding:0 15px 0 35px;color:#333;background-color:#f2f2f2;cursor:pointer;font-size:14px;overflow:hidden}.layui-colla-content{display:none;padding:10px 15px;line-height:22px;color:#666}.layui-colla-icon{position:absolute;left:15px;top:0;font-size:14px}.layui-card{margin-bottom:15px;border-radius:2px;background-color:#fff;box-shadow:0 1px 2px 0 rgba(0,0,0,.05)}.layui-card:last-child{margin-bottom:0}.layui-card-header{position:relative;height:42px;line-height:42px;padding:0 15px;border-bottom:1px solid #f6f6f6;color:#333;border-radius:2px 2px 0 0;font-size:14px}.layui-bg-black,.layui-bg-blue,.layui-bg-cyan,.layui-bg-green,.layui-bg-orange,.layui-bg-red{color:#fff!important}.layui-card-body{position:relative;padding:10px 15px;line-height:24px}.layui-card-body[pad15]{padding:15px}.layui-card-body[pad20]{padding:20px}.layui-card-body .layui-table{margin:5px 0}.layui-card .layui-tab{margin:0}.layui-panel-window{position:relative;padding:15px;border-radius:0;border-top:5px solid #E6E6E6;background-color:#fff}.layui-auxiliar-moving{position:fixed;left:0;right:0;top:0;bottom:0;width:100%;height:100%;background:0 0;z-index:9999999999}.layui-form-label,.layui-form-mid,.layui-form-select,.layui-input-block,.layui-input-inline,.layui-textarea{position:relative}.layui-bg-red{background-color:#FF5722!important}.layui-bg-orange{background-color:#FFB800!important}.layui-bg-green{background-color:#009688!important}.layui-bg-cyan{background-color:#2F4056!important}.layui-bg-blue{background-color:#1E9FFF!important}.layui-bg-black{background-color:#393D49!important}.layui-bg-gray{background-color:#eee!important;color:#666!important}.layui-badge-rim,.layui-colla-content,.layui-colla-item,.layui-collapse,.layui-elem-field,.layui-form-pane .layui-form-item[pane],.layui-form-pane .layui-form-label,.layui-input,.layui-layedit,.layui-layedit-tool,.layui-quote-nm,.layui-select,.layui-tab-bar,.layui-tab-card,.layui-tab-title,.layui-tab-title .layui-this:after,.layui-textarea{border-color:#e6e6e6}.layui-timeline-item:before,hr{background-color:#e6e6e6}.layui-text{line-height:22px;font-size:14px;color:#666}.layui-text h1,.layui-text h2,.layui-text h3{font-weight:500;color:#333}.layui-text h1{font-size:30px}.layui-text h2{font-size:24px}.layui-text h3{font-size:18px}.layui-text a:not(.layui-btn){color:#01AAED}.layui-text a:not(.layui-btn):hover{text-decoration:underline}.layui-text ul{padding:5px 0 5px 15px}.layui-text ul li{margin-top:5px;list-style-type:disc}.layui-text em,.layui-word-aux{color:#999!important;padding:0 5px!important}.layui-btn{display:inline-block;height:38px;line-height:38px;padding:0 18px;background-color:#009688;color:#fff;white-space:nowrap;text-align:center;font-size:14px;border:none;border-radius:2px;cursor:pointer}.layui-btn:hover{opacity:.8;filter:alpha(opacity=80);color:#fff}.layui-btn:active{opacity:1;filter:alpha(opacity=100)}.layui-btn+.layui-btn{margin-left:10px}.layui-btn-container{font-size:0}.layui-btn-container .layui-btn{margin-right:10px;margin-bottom:10px}.layui-btn-container .layui-btn+.layui-btn{margin-left:0}.layui-table .layui-btn-container .layui-btn{margin-bottom:9px}.layui-btn-radius{border-radius:100px}.layui-btn .layui-icon{margin-right:3px;font-size:18px;vertical-align:bottom;vertical-align:middle\9}.layui-btn-primary{border:1px solid #C9C9C9;background-color:#fff;color:#555}.layui-btn-primary:hover{border-color:#009688;color:#333}.layui-btn-normal{background-color:#1E9FFF}.layui-btn-warm{background-color:#FFB800}.layui-btn-danger{background-color:#FF5722}.layui-btn-disabled,.layui-btn-disabled:active,.layui-btn-disabled:hover{border:1px solid #e6e6e6;background-color:#FBFBFB;color:#C9C9C9;cursor:not-allowed;opacity:1}.layui-btn-lg{height:44px;line-height:44px;padding:0 25px;font-size:16px}.layui-btn-sm{height:30px;line-height:30px;padding:0 10px;font-size:12px}.layui-btn-sm i{font-size:16px!important}.layui-btn-xs{height:22px;line-height:22px;padding:0 5px;font-size:12px}.layui-btn-xs i{font-size:14px!important}.layui-btn-group{display:inline-block;vertical-align:middle;font-size:0}.layui-btn-group .layui-btn{margin-left:0!important;margin-right:0!important;border-left:1px solid rgba(255,255,255,.5);border-radius:0}.layui-btn-group .layui-btn-primary{border-left:none}.layui-btn-group .layui-btn-primary:hover{border-color:#C9C9C9;color:#009688}.layui-btn-group .layui-btn:first-child{border-left:none;border-radius:2px 0 0 2px}.layui-btn-group .layui-btn-primary:first-child{border-left:1px solid #c9c9c9}.layui-btn-group .layui-btn:last-child{border-radius:0 2px 2px 0}.layui-btn-group .layui-btn+.layui-btn{margin-left:0}.layui-btn-group+.layui-btn-group{margin-left:10px}.layui-btn-fluid{width:100%}.layui-input,.layui-select,.layui-textarea{height:38px;line-height:1.3;line-height:38px\9;border-width:1px;border-style:solid;background-color:#fff;border-radius:2px}.layui-input::-webkit-input-placeholder,.layui-select::-webkit-input-placeholder,.layui-textarea::-webkit-input-placeholder{line-height:1.3}.layui-input,.layui-textarea{display:block;width:100%;padding-left:10px}.layui-input:hover,.layui-textarea:hover{border-color:#D2D2D2!important}.layui-input:focus,.layui-textarea:focus{border-color:#C9C9C9!important}.layui-textarea{min-height:100px;height:auto;line-height:20px;padding:6px 10px;resize:vertical}.layui-select{padding:0 10px}.layui-form input[type=checkbox],.layui-form input[type=radio],.layui-form select{display:none}.layui-form [lay-ignore]{display:initial}.layui-form-item{margin-bottom:15px;clear:both;*zoom:1}.layui-form-item:after{content:'\20';clear:both;*zoom:1;display:block;height:0}.layui-form-label{float:left;display:block;padding:9px 15px;width:80px;font-weight:400;line-height:20px;text-align:right}.layui-form-label-col{display:block;float:none;padding:9px 0;line-height:20px;text-align:left}.layui-form-item .layui-inline{margin-bottom:5px;margin-right:10px}.layui-input-block{margin-left:110px;min-height:36px}.layui-input-inline{display:inline-block;vertical-align:middle}.layui-form-item .layui-input-inline{float:left;width:190px;margin-right:10px}.layui-form-text .layui-input-inline{width:auto}.layui-form-mid{float:left;display:block;padding:9px 0!important;line-height:20px;margin-right:10px}.layui-form-danger+.layui-form-select .layui-input,.layui-form-danger:focus{border-color:#FF5722!important}.layui-form-select .layui-input{padding-right:30px;cursor:pointer}.layui-form-select .layui-edge{position:absolute;right:10px;top:50%;margin-top:-3px;cursor:pointer;border-width:6px;border-top-color:#c2c2c2;border-top-style:solid;transition:all .3s;-webkit-transition:all .3s}.layui-form-select dl{display:none;position:absolute;left:0;top:42px;padding:5px 0;z-index:899;min-width:100%;border:1px solid #d2d2d2;max-height:300px;overflow-y:auto;background-color:#fff;border-radius:2px;box-shadow:0 2px 4px rgba(0,0,0,.12);box-sizing:border-box}.layui-form-select dl dd,.layui-form-select dl dt{padding:0 10px;line-height:36px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.layui-form-select dl dt{font-size:12px;color:#999}.layui-form-select dl dd{cursor:pointer}.layui-form-select dl dd:hover{background-color:#f2f2f2;-webkit-transition:.5s all;transition:.5s all}.layui-form-select .layui-select-group dd{padding-left:20px}.layui-form-select dl dd.layui-select-tips{padding-left:10px!important;color:#999}.layui-form-select dl dd.layui-this{background-color:#5FB878;color:#fff}.layui-form-checkbox,.layui-form-select dl dd.layui-disabled{background-color:#fff}.layui-form-selected dl{display:block}.layui-form-checkbox,.layui-form-checkbox *,.layui-form-switch{display:inline-block;vertical-align:middle}.layui-form-selected .layui-edge{margin-top:-9px;-webkit-transform:rotate(180deg);transform:rotate(180deg);margin-top:-3px\9}:root .layui-form-selected .layui-edge{margin-top:-9px\0/IE9}.layui-form-selectup dl{top:auto;bottom:42px}.layui-select-none{margin:5px 0;text-align:center;color:#999}.layui-select-disabled .layui-disabled{border-color:#eee!important}.layui-select-disabled .layui-edge{border-top-color:#d2d2d2}.layui-form-checkbox{position:relative;height:30px;line-height:30px;margin-right:10px;padding-right:30px;cursor:pointer;font-size:0;-webkit-transition:.1s linear;transition:.1s linear;box-sizing:border-box}.layui-form-checkbox span{padding:0 10px;height:100%;font-size:14px;border-radius:2px 0 0 2px;background-color:#d2d2d2;color:#fff;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.layui-form-checkbox:hover span{background-color:#c2c2c2}.layui-form-checkbox i{position:absolute;right:0;top:0;width:30px;height:28px;border:1px solid #d2d2d2;border-left:none;border-radius:0 2px 2px 0;color:#fff;font-size:20px;text-align:center}.layui-form-checkbox:hover i{border-color:#c2c2c2;color:#c2c2c2}.layui-form-checked,.layui-form-checked:hover{border-color:#5FB878}.layui-form-checked span,.layui-form-checked:hover span{background-color:#5FB878}.layui-form-checked i,.layui-form-checked:hover i{color:#5FB878}.layui-form-item .layui-form-checkbox{margin-top:4px}.layui-form-checkbox[lay-skin=primary]{height:auto!important;line-height:normal!important;min-width:18px;min-height:18px;border:none!important;margin-right:0;padding-left:28px;padding-right:0;background:0 0}.layui-form-checkbox[lay-skin=primary] span{padding-left:0;padding-right:15px;line-height:18px;background:0 0;color:#666}.layui-form-checkbox[lay-skin=primary] i{right:auto;left:0;width:16px;height:16px;line-height:16px;border:1px solid #d2d2d2;font-size:12px;border-radius:2px;background-color:#fff;-webkit-transition:.1s linear;transition:.1s linear}.layui-form-checkbox[lay-skin=primary]:hover i{border-color:#5FB878;color:#fff}.layui-form-checked[lay-skin=primary] i{border-color:#5FB878;background-color:#5FB878;color:#fff}.layui-checkbox-disbaled[lay-skin=primary] span{background:0 0!important;color:#c2c2c2}.layui-checkbox-disbaled[lay-skin=primary]:hover i{border-color:#d2d2d2}.layui-form-item .layui-form-checkbox[lay-skin=primary]{margin-top:10px}.layui-form-switch{position:relative;height:22px;line-height:22px;min-width:35px;padding:0 5px;margin-top:8px;border:1px solid #d2d2d2;border-radius:20px;cursor:pointer;background-color:#fff;-webkit-transition:.1s linear;transition:.1s linear}.layui-form-switch i{position:absolute;left:5px;top:3px;width:16px;height:16px;border-radius:20px;background-color:#d2d2d2;-webkit-transition:.1s linear;transition:.1s linear}.layui-form-switch em{position:relative;top:0;width:25px;margin-left:21px;padding:0!important;text-align:center!important;color:#999!important;font-style:normal!important;font-size:12px}.layui-form-onswitch{border-color:#5FB878;background-color:#5FB878}.layui-checkbox-disbaled,.layui-checkbox-disbaled i{border-color:#e2e2e2!important}.layui-form-onswitch i{left:100%;margin-left:-21px;background-color:#fff}.layui-form-onswitch em{margin-left:5px;margin-right:21px;color:#fff!important}.layui-checkbox-disbaled span{background-color:#e2e2e2!important}.layui-checkbox-disbaled:hover i{color:#fff!important}[lay-radio]{display:none}.layui-form-radio,.layui-form-radio *{display:inline-block;vertical-align:middle}.layui-form-radio{line-height:28px;margin:6px 10px 0 0;padding-right:10px;cursor:pointer;font-size:0}.layui-form-radio *{font-size:14px}.layui-form-radio>i{margin-right:8px;font-size:22px;color:#c2c2c2}.layui-form-radio>i:hover,.layui-form-radioed>i{color:#5FB878}.layui-radio-disbaled>i{color:#e2e2e2!important}.layui-form-pane .layui-form-label{width:110px;padding:8px 15px;height:38px;line-height:20px;border-width:1px;border-style:solid;border-radius:2px 0 0 2px;text-align:center;background-color:#FBFBFB;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;box-sizing:border-box}.layui-form-pane .layui-input-inline{margin-left:-1px}.layui-form-pane .layui-input-block{margin-left:110px;left:-1px}.layui-form-pane .layui-input{border-radius:0 2px 2px 0}.layui-form-pane .layui-form-text .layui-form-label{float:none;width:100%;border-radius:2px;box-sizing:border-box;text-align:left}.layui-form-pane .layui-form-text .layui-input-inline{display:block;margin:0;top:-1px;clear:both}.layui-form-pane .layui-form-text .layui-input-block{margin:0;left:0;top:-1px}.layui-form-pane .layui-form-text .layui-textarea{min-height:100px;border-radius:0 0 2px 2px}.layui-form-pane .layui-form-checkbox{margin:4px 0 4px 10px}.layui-form-pane .layui-form-radio,.layui-form-pane .layui-form-switch{margin-top:6px;margin-left:10px}.layui-form-pane .layui-form-item[pane]{position:relative;border-width:1px;border-style:solid}.layui-form-pane .layui-form-item[pane] .layui-form-label{position:absolute;left:0;top:0;height:100%;border-width:0 1px 0 0}.layui-form-pane .layui-form-item[pane] .layui-input-inline{margin-left:110px}@media screen and (max-width:450px){.layui-form-item .layui-form-label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.layui-form-item .layui-inline{display:block;margin-right:0;margin-bottom:20px;clear:both}.layui-form-item .layui-inline:after{content:'\20';clear:both;display:block;height:0}.layui-form-item .layui-input-inline{display:block;float:none;left:-3px;width:auto;margin:0 0 10px 112px}.layui-form-item .layui-input-inline+.layui-form-mid{margin-left:110px;top:-5px;padding:0}.layui-form-item .layui-form-checkbox{margin-right:5px;margin-bottom:5px}}.layui-layedit{border-width:1px;border-style:solid;border-radius:2px}.layui-layedit-tool{padding:3px 5px;border-bottom-width:1px;border-bottom-style:solid;font-size:0}.layedit-tool-fixed{position:fixed;top:0;border-top:1px solid #e2e2e2}.layui-layedit-tool .layedit-tool-mid,.layui-layedit-tool .layui-icon{display:inline-block;vertical-align:middle;text-align:center;font-size:14px}.layui-layedit-tool .layui-icon{position:relative;width:32px;height:30px;line-height:30px;margin:3px 5px;color:#777;cursor:pointer;border-radius:2px}.layui-layedit-tool .layui-icon:hover{color:#393D49}.layui-layedit-tool .layui-icon:active{color:#000}.layui-layedit-tool .layedit-tool-active{background-color:#e2e2e2;color:#000}.layui-layedit-tool .layui-disabled,.layui-layedit-tool .layui-disabled:hover{color:#d2d2d2;cursor:not-allowed}.layui-layedit-tool .layedit-tool-mid{width:1px;height:18px;margin:0 10px;background-color:#d2d2d2}.layedit-tool-html{width:50px!important;font-size:30px!important}.layedit-tool-b,.layedit-tool-code,.layedit-tool-help{font-size:16px!important}.layedit-tool-d,.layedit-tool-face,.layedit-tool-image,.layedit-tool-unlink{font-size:18px!important}.layedit-tool-image input{position:absolute;font-size:0;left:0;top:0;width:100%;height:100%;opacity:.01;filter:Alpha(opacity=1);cursor:pointer}.layui-layedit-iframe iframe{display:block;width:100%}#LAY_layedit_code{overflow:hidden}.layui-laypage{display:inline-block;*display:inline;*zoom:1;vertical-align:middle;margin:10px 0;font-size:0}.layui-laypage>a:first-child,.layui-laypage>a:first-child em{border-radius:2px 0 0 2px}.layui-laypage>a:last-child,.layui-laypage>a:last-child em{border-radius:0 2px 2px 0}.layui-laypage>:first-child{margin-left:0!important}.layui-laypage>:last-child{margin-right:0!important}.layui-laypage a,.layui-laypage button,.layui-laypage input,.layui-laypage select,.layui-laypage span{border:1px solid #e2e2e2}.layui-laypage a,.layui-laypage span{display:inline-block;*display:inline;*zoom:1;vertical-align:middle;padding:0 15px;height:28px;line-height:28px;margin:0 -1px 5px 0;background-color:#fff;color:#333;font-size:12px}.layui-flow-more a *,.layui-laypage input,.layui-table-view select[lay-ignore]{display:inline-block}.layui-laypage a:hover{color:#009688}.layui-laypage em{font-style:normal}.layui-laypage .layui-laypage-spr{color:#999;font-weight:700}.layui-laypage a{text-decoration:none}.layui-laypage .layui-laypage-curr{position:relative}.layui-laypage .layui-laypage-curr em{position:relative;color:#fff}.layui-laypage .layui-laypage-curr .layui-laypage-em{position:absolute;left:-1px;top:-1px;padding:1px;width:100%;height:100%;background-color:#009688}.layui-laypage-em{border-radius:2px}.layui-laypage-next em,.layui-laypage-prev em{font-family:Sim sun;font-size:16px}.layui-laypage .layui-laypage-count,.layui-laypage .layui-laypage-limits,.layui-laypage .layui-laypage-refresh,.layui-laypage .layui-laypage-skip{margin-left:10px;margin-right:10px;padding:0;border:none}.layui-laypage .layui-laypage-limits,.layui-laypage .layui-laypage-refresh{vertical-align:top}.layui-laypage .layui-laypage-refresh i{font-size:18px;cursor:pointer}.layui-laypage select{height:22px;padding:3px;border-radius:2px;cursor:pointer}.layui-laypage .layui-laypage-skip{height:30px;line-height:30px;color:#999}.layui-laypage button,.layui-laypage input{height:30px;line-height:30px;border-radius:2px;vertical-align:top;background-color:#fff;box-sizing:border-box}.layui-laypage input{width:40px;margin:0 10px;padding:0 3px;text-align:center}.layui-laypage input:focus,.layui-laypage select:focus{border-color:#009688!important}.layui-laypage button{margin-left:10px;padding:0 10px;cursor:pointer}.layui-table,.layui-table-view{margin:10px 0}.layui-flow-more{margin:10px 0;text-align:center;color:#999;font-size:14px}.layui-flow-more a{height:32px;line-height:32px}.layui-flow-more a *{vertical-align:top}.layui-flow-more a cite{padding:0 20px;border-radius:3px;background-color:#eee;color:#333;font-style:normal}.layui-flow-more a cite:hover{opacity:.8}.layui-flow-more a i{font-size:30px;color:#737383}.layui-table{width:100%;background-color:#fff;color:#666}.layui-table tr{transition:all .3s;-webkit-transition:all .3s}.layui-table th{text-align:left;font-weight:400}.layui-table tbody tr:hover,.layui-table thead tr,.layui-table-click,.layui-table-header,.layui-table-hover,.layui-table-mend,.layui-table-patch,.layui-table-tool,.layui-table-total,.layui-table-total tr,.layui-table[lay-even] tr:nth-child(even){background-color:#f2f2f2}.layui-table td,.layui-table th,.layui-table-col-set,.layui-table-fixed-r,.layui-table-grid-down,.layui-table-header,.layui-table-page,.layui-table-tips-main,.layui-table-tool,.layui-table-total,.layui-table-view,.layui-table[lay-skin=line],.layui-table[lay-skin=row]{border-width:1px;border-style:solid;border-color:#e6e6e6}.layui-table td,.layui-table th{position:relative;padding:9px 15px;min-height:20px;line-height:20px;font-size:14px}.layui-table[lay-skin=line] td,.layui-table[lay-skin=line] th{border-width:0 0 1px}.layui-table[lay-skin=row] td,.layui-table[lay-skin=row] th{border-width:0 1px 0 0}.layui-table[lay-skin=nob] td,.layui-table[lay-skin=nob] th{border:none}.layui-table img{max-width:100px}.layui-table[lay-size=lg] td,.layui-table[lay-size=lg] th{padding:15px 30px}.layui-table-view .layui-table[lay-size=lg] .layui-table-cell{height:40px;line-height:40px}.layui-table[lay-size=sm] td,.layui-table[lay-size=sm] th{font-size:12px;padding:5px 10px}.layui-table-view .layui-table[lay-size=sm] .layui-table-cell{height:20px;line-height:20px}.layui-table[lay-data]{display:none}.layui-table-box{position:relative;overflow:hidden}.layui-table-view .layui-table{position:relative;width:auto;margin:0}.layui-table-view .layui-table[lay-skin=line]{border-width:0 1px 0 0}.layui-table-view .layui-table[lay-skin=row]{border-width:0 0 1px}.layui-table-view .layui-table td,.layui-table-view .layui-table th{padding:5px 0;border-top:none;border-left:none}.layui-table-view .layui-table th.layui-unselect .layui-table-cell span{cursor:pointer}.layui-table-view .layui-table td{cursor:default}.layui-table-view .layui-form-checkbox[lay-skin=primary] i{width:18px;height:18px}.layui-table-view .layui-form-radio{line-height:0;padding:0}.layui-table-view .layui-form-radio>i{margin:0;font-size:20px}.layui-table-init{position:absolute;left:0;top:0;width:100%;height:100%;text-align:center;z-index:10}.layui-table-init .layui-icon{position:absolute;left:50%;top:50%;margin:-15px 0 0 -15px;font-size:30px;color:#c2c2c2}.layui-table-header{border-width:0 0 1px;overflow:hidden}.layui-table-header .layui-table{margin-bottom:-1px}.layui-table-tool .layui-inline[lay-event]{position:relative;width:26px;height:26px;padding:5px;line-height:16px;margin-right:10px;text-align:center;color:#333;border:1px solid #ccc;cursor:pointer;-webkit-transition:.5s all;transition:.5s all}.layui-table-tool .layui-inline[lay-event]:hover{border:1px solid #999}.layui-table-tool-temp{padding-right:120px}.layui-table-tool-self{position:absolute;right:17px;top:10px}.layui-table-tool .layui-table-tool-self .layui-inline[lay-event]{margin:0 0 0 10px}.layui-table-tool-panel{position:absolute;top:29px;left:-1px;padding:5px 0;min-width:150px;min-height:40px;border:1px solid #d2d2d2;text-align:left;background-color:#fff;box-shadow:0 2px 4px rgba(0,0,0,.12)}.layui-table-tool-panel li{padding:0 10px;line-height:30px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;-webkit-transition:.5s all;transition:.5s all}.layui-table-tool-panel li .layui-form-checkbox[lay-skin=primary]{width:100%;padding-left:28px}.layui-table-tool-panel li:hover{background-color:#f2f2f2}.layui-table-tool-panel li .layui-form-checkbox[lay-skin=primary] i{position:absolute;left:0;top:0}.layui-table-tool-panel li .layui-form-checkbox[lay-skin=primary] span{padding:0}.layui-table-tool .layui-table-tool-self .layui-table-tool-panel{left:auto;right:-1px}.layui-table-col-set{position:absolute;right:0;top:0;width:20px;height:100%;border-width:0 0 0 1px;background-color:#fff}.layui-table-sort{width:10px;height:20px;margin-left:5px;cursor:pointer!important}.layui-table-sort .layui-edge{position:absolute;left:5px;border-width:5px}.layui-table-sort .layui-table-sort-asc{top:3px;border-top:none;border-bottom-style:solid;border-bottom-color:#b2b2b2}.layui-table-sort .layui-table-sort-asc:hover{border-bottom-color:#666}.layui-table-sort .layui-table-sort-desc{bottom:5px;border-bottom:none;border-top-style:solid;border-top-color:#b2b2b2}.layui-table-sort .layui-table-sort-desc:hover{border-top-color:#666}.layui-table-sort[lay-sort=asc] .layui-table-sort-asc{border-bottom-color:#000}.layui-table-sort[lay-sort=desc] .layui-table-sort-desc{border-top-color:#000}.layui-table-cell{height:28px;line-height:28px;padding:0 15px;position:relative;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;box-sizing:border-box}.layui-table-cell .layui-form-checkbox[lay-skin=primary]{top:-1px;padding:0}.layui-table-cell .layui-table-link{color:#01AAED}.laytable-cell-checkbox,.laytable-cell-numbers,.laytable-cell-radio,.laytable-cell-space{padding:0;text-align:center}.layui-table-body{position:relative;overflow:auto;margin-right:-1px;margin-bottom:-1px}.layui-table-body .layui-none{line-height:26px;padding:15px;text-align:center;color:#999}.layui-table-fixed{position:absolute;left:0;top:0;z-index:101}.layui-table-fixed .layui-table-body{overflow:hidden}.layui-table-fixed-l{box-shadow:0 -1px 8px rgba(0,0,0,.08)}.layui-table-fixed-r{left:auto;right:-1px;border-width:0 0 0 1px;box-shadow:-1px 0 8px rgba(0,0,0,.08)}.layui-table-fixed-r .layui-table-header{position:relative;overflow:visible}.layui-table-mend{position:absolute;right:-49px;top:0;height:100%;width:50px}.layui-table-tool{position:relative;z-index:890;width:100%;min-height:50px;line-height:30px;padding:10px 15px;border-width:0 0 1px}.layui-table-tool .layui-btn-container{margin-bottom:-10px}.layui-table-page,.layui-table-total{border-width:1px 0 0;margin-bottom:-1px;overflow:hidden}.layui-table-page{position:relative;width:100%;padding:7px 7px 0;height:41px;font-size:12px;white-space:nowrap}.layui-table-page>div{height:26px}.layui-table-page .layui-laypage{margin:0}.layui-table-page .layui-laypage a,.layui-table-page .layui-laypage span{height:26px;line-height:26px;margin-bottom:10px;border:none;background:0 0}.layui-table-page .layui-laypage a,.layui-table-page .layui-laypage span.layui-laypage-curr{padding:0 12px}.layui-table-page .layui-laypage span{margin-left:0;padding:0}.layui-table-page .layui-laypage .layui-laypage-prev{margin-left:-7px!important}.layui-table-page .layui-laypage .layui-laypage-curr .layui-laypage-em{left:0;top:0;padding:0}.layui-table-page .layui-laypage button,.layui-table-page .layui-laypage input{height:26px;line-height:26px}.layui-table-page .layui-laypage input{width:40px}.layui-table-page .layui-laypage button{padding:0 10px}.layui-table-page select{height:18px}.layui-table-patch .layui-table-cell{padding:0;width:30px}.layui-table-edit{position:absolute;left:0;top:0;width:100%;height:100%;padding:0 14px 1px;border-radius:0;box-shadow:1px 1px 20px rgba(0,0,0,.15)}.layui-table-edit:focus{border-color:#5FB878!important}select.layui-table-edit{padding:0 0 0 10px;border-color:#C9C9C9}.layui-table-view .layui-form-checkbox,.layui-table-view .layui-form-radio,.layui-table-view .layui-form-switch{top:0;margin:0;box-sizing:content-box}.layui-table-view .layui-form-checkbox{top:-1px;height:26px;line-height:26px}.layui-table-view .layui-form-checkbox i{height:26px}.layui-table-grid .layui-table-cell{overflow:visible}.layui-table-grid-down{position:absolute;top:0;right:0;width:26px;height:100%;padding:5px 0;border-width:0 0 0 1px;text-align:center;background-color:#fff;color:#999;cursor:pointer}.layui-table-grid-down .layui-icon{position:absolute;top:50%;left:50%;margin:-8px 0 0 -8px}.layui-table-grid-down:hover{background-color:#fbfbfb}body .layui-table-tips .layui-layer-content{background:0 0;padding:0;box-shadow:0 1px 6px rgba(0,0,0,.12)}.layui-table-tips-main{margin:-44px 0 0 -1px;max-height:150px;padding:8px 15px;font-size:14px;overflow-y:scroll;background-color:#fff;color:#666}.layui-table-tips-c{position:absolute;right:-3px;top:-13px;width:20px;height:20px;padding:3px;cursor:pointer;background-color:#666;border-radius:50%;color:#fff}.layui-table-tips-c:hover{background-color:#777}.layui-table-tips-c:before{position:relative;right:-2px}.layui-upload-file{display:none!important;opacity:.01;filter:Alpha(opacity=1)}.layui-upload-drag,.layui-upload-form,.layui-upload-wrap{display:inline-block}.layui-upload-list{margin:10px 0}.layui-upload-choose{padding:0 10px;color:#999}.layui-upload-drag{position:relative;padding:30px;border:1px dashed #e2e2e2;background-color:#fff;text-align:center;cursor:pointer;color:#999}.layui-upload-drag .layui-icon{font-size:50px;color:#009688}.layui-upload-drag[lay-over]{border-color:#009688}.layui-upload-iframe{position:absolute;width:0;height:0;border:0;visibility:hidden}.layui-upload-wrap{position:relative;vertical-align:middle}.layui-upload-wrap .layui-upload-file{display:block!important;position:absolute;left:0;top:0;z-index:10;font-size:100px;width:100%;height:100%;opacity:.01;filter:Alpha(opacity=1);cursor:pointer}.layui-tree{line-height:26px}.layui-tree li{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.layui-tree li .layui-tree-spread,.layui-tree li a{display:inline-block;vertical-align:top;height:26px;*display:inline;*zoom:1;cursor:pointer}.layui-tree li a{font-size:0}.layui-tree li a i{font-size:16px}.layui-tree li a cite{padding:0 6px;font-size:14px;font-style:normal}.layui-tree li i{padding-left:6px;color:#333;-moz-user-select:none}.layui-tree li .layui-tree-check{font-size:13px}.layui-tree li .layui-tree-check:hover{color:#009E94}.layui-tree li ul{display:none;margin-left:20px}.layui-tree li .layui-tree-enter{line-height:24px;border:1px dotted #000}.layui-tree-drag{display:none;position:absolute;left:-666px;top:-666px;background-color:#f2f2f2;padding:5px 10px;border:1px dotted #000;white-space:nowrap}.layui-tree-drag i{padding-right:5px}.layui-nav{position:relative;padding:0 20px;background-color:#393D49;color:#fff;border-radius:2px;font-size:0;box-sizing:border-box}.layui-nav *{font-size:14px}.layui-nav .layui-nav-item{position:relative;display:inline-block;*display:inline;*zoom:1;vertical-align:middle;line-height:60px}.layui-nav .layui-nav-item a{display:block;padding:0 20px;color:#fff;color:rgba(255,255,255,.7);transition:all .3s;-webkit-transition:all .3s}.layui-nav .layui-this:after,.layui-nav-bar,.layui-nav-tree .layui-nav-itemed:after{position:absolute;left:0;top:0;width:0;height:5px;background-color:#5FB878;transition:all .2s;-webkit-transition:all .2s}.layui-nav-bar{z-index:1000}.layui-nav .layui-nav-item a:hover,.layui-nav .layui-this a{color:#fff}.layui-nav .layui-this:after{content:'';top:auto;bottom:0;width:100%}.layui-nav-img{width:30px;height:30px;margin-right:10px;border-radius:50%}.layui-nav .layui-nav-more{content:'';width:0;height:0;border-style:solid dashed dashed;border-color:#fff transparent transparent;overflow:hidden;cursor:pointer;transition:all .2s;-webkit-transition:all .2s;position:absolute;top:50%;right:3px;margin-top:-3px;border-width:6px;border-top-color:rgba(255,255,255,.7)}.layui-nav .layui-nav-mored,.layui-nav-itemed>a .layui-nav-more{margin-top:-9px;border-style:dashed dashed solid;border-color:transparent transparent #fff}.layui-nav-child{display:none;position:absolute;left:0;top:65px;min-width:100%;line-height:36px;padding:5px 0;box-shadow:0 2px 4px rgba(0,0,0,.12);border:1px solid #d2d2d2;background-color:#fff;z-index:100;border-radius:2px;white-space:nowrap}.layui-nav .layui-nav-child a{color:#333}.layui-nav .layui-nav-child a:hover{background-color:#f2f2f2;color:#000}.layui-nav-child dd{position:relative}.layui-nav .layui-nav-child dd.layui-this a,.layui-nav-child dd.layui-this{background-color:#5FB878;color:#fff}.layui-nav-child dd.layui-this:after{display:none}.layui-nav-tree{width:200px;padding:0}.layui-nav-tree .layui-nav-item{display:block;width:100%;line-height:45px}.layui-nav-tree .layui-nav-item a{position:relative;height:45px;line-height:45px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.layui-nav-tree .layui-nav-item a:hover{background-color:#4E5465}.layui-nav-tree .layui-nav-bar{width:5px;height:0;background-color:#009688}.layui-nav-tree .layui-nav-child dd.layui-this,.layui-nav-tree .layui-nav-child dd.layui-this a,.layui-nav-tree .layui-this,.layui-nav-tree .layui-this>a,.layui-nav-tree .layui-this>a:hover{background-color:#009688;color:#fff}.layui-nav-tree .layui-this:after{display:none}.layui-nav-itemed>a,.layui-nav-tree .layui-nav-title a,.layui-nav-tree .layui-nav-title a:hover{color:#fff!important}.layui-nav-tree .layui-nav-child{position:relative;z-index:0;top:0;border:none;box-shadow:none}.layui-nav-tree .layui-nav-child a{height:40px;line-height:40px;color:#fff;color:rgba(255,255,255,.7)}.layui-nav-tree .layui-nav-child,.layui-nav-tree .layui-nav-child a:hover{background:0 0;color:#fff}.layui-nav-tree .layui-nav-more{right:10px}.layui-nav-itemed>.layui-nav-child{display:block;padding:0;background-color:rgba(0,0,0,.3)!important}.layui-nav-itemed>.layui-nav-child>.layui-this>.layui-nav-child{display:block}.layui-nav-side{position:fixed;top:0;bottom:0;left:0;overflow-x:hidden;z-index:999}.layui-bg-blue .layui-nav-bar,.layui-bg-blue .layui-nav-itemed:after,.layui-bg-blue .layui-this:after{background-color:#93D1FF}.layui-bg-blue .layui-nav-child dd.layui-this{background-color:#1E9FFF}.layui-bg-blue .layui-nav-itemed>a,.layui-nav-tree.layui-bg-blue .layui-nav-title a,.layui-nav-tree.layui-bg-blue .layui-nav-title a:hover{background-color:#007DDB!important}.layui-breadcrumb{visibility:hidden;font-size:0}.layui-breadcrumb>*{font-size:14px}.layui-breadcrumb a{color:#999!important}.layui-breadcrumb a:hover{color:#5FB878!important}.layui-breadcrumb a cite{color:#666;font-style:normal}.layui-breadcrumb span[lay-separator]{margin:0 10px;color:#999}.layui-tab{margin:10px 0;text-align:left!important}.layui-tab[overflow]>.layui-tab-title{overflow:hidden}.layui-tab-title{position:relative;left:0;height:40px;white-space:nowrap;font-size:0;border-bottom-width:1px;border-bottom-style:solid;transition:all .2s;-webkit-transition:all .2s}.layui-tab-title li{display:inline-block;*display:inline;*zoom:1;vertical-align:middle;font-size:14px;transition:all .2s;-webkit-transition:all .2s;position:relative;line-height:40px;min-width:65px;padding:0 15px;text-align:center;cursor:pointer}.layui-tab-title li a{display:block}.layui-tab-title .layui-this{color:#000}.layui-tab-title .layui-this:after{position:absolute;left:0;top:0;content:'';width:100%;height:41px;border-width:1px;border-style:solid;border-bottom-color:#fff;border-radius:2px 2px 0 0;box-sizing:border-box;pointer-events:none}.layui-tab-bar{position:absolute;right:0;top:0;z-index:10;width:30px;height:39px;line-height:39px;border-width:1px;border-style:solid;border-radius:2px;text-align:center;background-color:#fff;cursor:pointer}.layui-tab-bar .layui-icon{position:relative;display:inline-block;top:3px;transition:all .3s;-webkit-transition:all .3s}.layui-tab-item{display:none}.layui-tab-more{padding-right:30px;height:auto!important;white-space:normal!important}.layui-tab-more li.layui-this:after{border-bottom-color:#e2e2e2;border-radius:2px}.layui-tab-more .layui-tab-bar .layui-icon{top:-2px;top:3px\9;-webkit-transform:rotate(180deg);transform:rotate(180deg)}:root .layui-tab-more .layui-tab-bar .layui-icon{top:-2px\0/IE9}.layui-tab-content{padding:10px}.layui-tab-title li .layui-tab-close{position:relative;display:inline-block;width:18px;height:18px;line-height:20px;margin-left:8px;top:1px;text-align:center;font-size:14px;color:#c2c2c2;transition:all .2s;-webkit-transition:all .2s}.layui-tab-title li .layui-tab-close:hover{border-radius:2px;background-color:#FF5722;color:#fff}.layui-tab-brief>.layui-tab-title .layui-this{color:#009688}.layui-tab-brief>.layui-tab-more li.layui-this:after,.layui-tab-brief>.layui-tab-title .layui-this:after{border:none;border-radius:0;border-bottom:2px solid #5FB878}.layui-tab-brief[overflow]>.layui-tab-title .layui-this:after{top:-1px}.layui-tab-card{border-width:1px;border-style:solid;border-radius:2px;box-shadow:0 2px 5px 0 rgba(0,0,0,.1)}.layui-tab-card>.layui-tab-title{background-color:#f2f2f2}.layui-tab-card>.layui-tab-title li{margin-right:-1px;margin-left:-1px}.layui-tab-card>.layui-tab-title .layui-this{background-color:#fff}.layui-tab-card>.layui-tab-title .layui-this:after{border-top:none;border-width:1px;border-bottom-color:#fff}.layui-tab-card>.layui-tab-title .layui-tab-bar{height:40px;line-height:40px;border-radius:0;border-top:none;border-right:none}.layui-tab-card>.layui-tab-more .layui-this{background:0 0;color:#5FB878}.layui-tab-card>.layui-tab-more .layui-this:after{border:none}.layui-timeline{padding-left:5px}.layui-timeline-item{position:relative;padding-bottom:20px}.layui-timeline-axis{position:absolute;left:-5px;top:0;z-index:10;width:20px;height:20px;line-height:20px;background-color:#fff;color:#5FB878;border-radius:50%;text-align:center;cursor:pointer}.layui-timeline-axis:hover{color:#FF5722}.layui-timeline-item:before{content:'';position:absolute;left:5px;top:0;z-index:0;width:1px;height:100%}.layui-timeline-item:last-child:before{display:none}.layui-timeline-item:first-child:before{display:block}.layui-timeline-content{padding-left:25px}.layui-timeline-title{position:relative;margin-bottom:10px}.layui-badge,.layui-badge-dot,.layui-badge-rim{position:relative;display:inline-block;padding:0 6px;font-size:12px;text-align:center;background-color:#FF5722;color:#fff;border-radius:2px}.layui-badge{height:18px;line-height:18px}.layui-badge-dot{width:8px;height:8px;padding:0;border-radius:50%}.layui-badge-rim{height:18px;line-height:18px;border-width:1px;border-style:solid;background-color:#fff;color:#666}.layui-btn .layui-badge,.layui-btn .layui-badge-dot{margin-left:5px}.layui-nav .layui-badge,.layui-nav .layui-badge-dot{position:absolute;top:50%;margin:-8px 6px 0}.layui-tab-title .layui-badge,.layui-tab-title .layui-badge-dot{left:5px;top:-2px}.layui-carousel{position:relative;left:0;top:0;background-color:#f8f8f8}.layui-carousel>[carousel-item]{position:relative;width:100%;height:100%;overflow:hidden}.layui-carousel>[carousel-item]:before{position:absolute;content:'\e63d';left:50%;top:50%;width:100px;line-height:20px;margin:-10px 0 0 -50px;text-align:center;color:#c2c2c2;font-family:layui-icon!important;font-size:30px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.layui-carousel>[carousel-item]>*{display:none;position:absolute;left:0;top:0;width:100%;height:100%;background-color:#f8f8f8;transition-duration:.3s;-webkit-transition-duration:.3s}.layui-carousel-updown>*{-webkit-transition:.3s ease-in-out up;transition:.3s ease-in-out up}.layui-carousel-arrow{display:none\9;opacity:0;position:absolute;left:10px;top:50%;margin-top:-18px;width:36px;height:36px;line-height:36px;text-align:center;font-size:20px;border:0;border-radius:50%;background-color:rgba(0,0,0,.2);color:#fff;-webkit-transition-duration:.3s;transition-duration:.3s;cursor:pointer}.layui-carousel-arrow[lay-type=add]{left:auto!important;right:10px}.layui-carousel:hover .layui-carousel-arrow[lay-type=add],.layui-carousel[lay-arrow=always] .layui-carousel-arrow[lay-type=add]{right:20px}.layui-carousel[lay-arrow=always] .layui-carousel-arrow{opacity:1;left:20px}.layui-carousel[lay-arrow=none] .layui-carousel-arrow{display:none}.layui-carousel-arrow:hover,.layui-carousel-ind ul:hover{background-color:rgba(0,0,0,.35)}.layui-carousel:hover .layui-carousel-arrow{display:block\9;opacity:1;left:20px}.layui-carousel-ind{position:relative;top:-35px;width:100%;line-height:0!important;text-align:center;font-size:0}.layui-carousel[lay-indicator=outside]{margin-bottom:30px}.layui-carousel[lay-indicator=outside] .layui-carousel-ind{top:10px}.layui-carousel[lay-indicator=outside] .layui-carousel-ind ul{background-color:rgba(0,0,0,.5)}.layui-carousel[lay-indicator=none] .layui-carousel-ind{display:none}.layui-carousel-ind ul{display:inline-block;padding:5px;background-color:rgba(0,0,0,.2);border-radius:10px;-webkit-transition-duration:.3s;transition-duration:.3s}.layui-carousel-ind li{display:inline-block;width:10px;height:10px;margin:0 3px;font-size:14px;background-color:#e2e2e2;background-color:rgba(255,255,255,.5);border-radius:50%;cursor:pointer;-webkit-transition-duration:.3s;transition-duration:.3s}.layui-carousel-ind li:hover{background-color:rgba(255,255,255,.7)}.layui-carousel-ind li.layui-this{background-color:#fff}.layui-carousel>[carousel-item]>.layui-carousel-next,.layui-carousel>[carousel-item]>.layui-carousel-prev,.layui-carousel>[carousel-item]>.layui-this{display:block}.layui-carousel>[carousel-item]>.layui-this{left:0}.layui-carousel>[carousel-item]>.layui-carousel-prev{left:-100%}.layui-carousel>[carousel-item]>.layui-carousel-next{left:100%}.layui-carousel>[carousel-item]>.layui-carousel-next.layui-carousel-left,.layui-carousel>[carousel-item]>.layui-carousel-prev.layui-carousel-right{left:0}.layui-carousel>[carousel-item]>.layui-this.layui-carousel-left{left:-100%}.layui-carousel>[carousel-item]>.layui-this.layui-carousel-right{left:100%}.layui-carousel[lay-anim=updown] .layui-carousel-arrow{left:50%!important;top:20px;margin:0 0 0 -18px}.layui-carousel[lay-anim=updown]>[carousel-item]>*,.layui-carousel[lay-anim=fade]>[carousel-item]>*{left:0!important}.layui-carousel[lay-anim=updown] .layui-carousel-arrow[lay-type=add]{top:auto!important;bottom:20px}.layui-carousel[lay-anim=updown] .layui-carousel-ind{position:absolute;top:50%;right:20px;width:auto;height:auto}.layui-carousel[lay-anim=updown] .layui-carousel-ind ul{padding:3px 5px}.layui-carousel[lay-anim=updown] .layui-carousel-ind li{display:block;margin:6px 0}.layui-carousel[lay-anim=updown]>[carousel-item]>.layui-this{top:0}.layui-carousel[lay-anim=updown]>[carousel-item]>.layui-carousel-prev{top:-100%}.layui-carousel[lay-anim=updown]>[carousel-item]>.layui-carousel-next{top:100%}.layui-carousel[lay-anim=updown]>[carousel-item]>.layui-carousel-next.layui-carousel-left,.layui-carousel[lay-anim=updown]>[carousel-item]>.layui-carousel-prev.layui-carousel-right{top:0}.layui-carousel[lay-anim=updown]>[carousel-item]>.layui-this.layui-carousel-left{top:-100%}.layui-carousel[lay-anim=updown]>[carousel-item]>.layui-this.layui-carousel-right{top:100%}.layui-carousel[lay-anim=fade]>[carousel-item]>.layui-carousel-next,.layui-carousel[lay-anim=fade]>[carousel-item]>.layui-carousel-prev{opacity:0}.layui-carousel[lay-anim=fade]>[carousel-item]>.layui-carousel-next.layui-carousel-left,.layui-carousel[lay-anim=fade]>[carousel-item]>.layui-carousel-prev.layui-carousel-right{opacity:1}.layui-carousel[lay-anim=fade]>[carousel-item]>.layui-this.layui-carousel-left,.layui-carousel[lay-anim=fade]>[carousel-item]>.layui-this.layui-carousel-right{opacity:0}.layui-fixbar{position:fixed;right:15px;bottom:15px;z-index:999999}.layui-fixbar li{width:50px;height:50px;line-height:50px;margin-bottom:1px;text-align:center;cursor:pointer;font-size:30px;background-color:#9F9F9F;color:#fff;border-radius:2px;opacity:.95}.layui-fixbar li:hover{opacity:.85}.layui-fixbar li:active{opacity:1}.layui-fixbar .layui-fixbar-top{display:none;font-size:40px}body .layui-util-face{border:none;background:0 0}body .layui-util-face .layui-layer-content{padding:0;background-color:#fff;color:#666;box-shadow:none}.layui-util-face .layui-layer-TipsG{display:none}.layui-util-face ul{position:relative;width:372px;padding:10px;border:1px solid #D9D9D9;background-color:#fff;box-shadow:0 0 20px rgba(0,0,0,.2)}.layui-util-face ul li{cursor:pointer;float:left;border:1px solid #e8e8e8;height:22px;width:26px;overflow:hidden;margin:-1px 0 0 -1px;padding:4px 2px;text-align:center}.layui-util-face ul li:hover{position:relative;z-index:2;border:1px solid #eb7350;background:#fff9ec}.layui-code{position:relative;margin:10px 0;padding:15px;line-height:20px;border:1px solid #ddd;border-left-width:6px;background-color:#F2F2F2;color:#333;font-family:Courier New;font-size:12px}.layui-rate,.layui-rate *{display:inline-block;vertical-align:middle}.layui-rate{padding:10px 5px 10px 0;font-size:0}.layui-rate li i.layui-icon{font-size:20px;color:#FFB800;margin-right:5px;transition:all .3s;-webkit-transition:all .3s}.layui-rate li i:hover{cursor:pointer;transform:scale(1.12);-webkit-transform:scale(1.12)}.layui-rate[readonly] li i:hover{cursor:default;transform:scale(1)}.layui-colorpicker{width:26px;height:26px;border:1px solid #e6e6e6;padding:5px;border-radius:2px;line-height:24px;display:inline-block;cursor:pointer;transition:all .3s;-webkit-transition:all .3s}.layui-colorpicker:hover{border-color:#d2d2d2}.layui-colorpicker.layui-colorpicker-lg{width:34px;height:34px;line-height:32px}.layui-colorpicker.layui-colorpicker-sm{width:24px;height:24px;line-height:22px}.layui-colorpicker.layui-colorpicker-xs{width:22px;height:22px;line-height:20px}.layui-colorpicker-trigger-bgcolor{display:block;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==);border-radius:2px}.layui-colorpicker-trigger-span{display:block;height:100%;box-sizing:border-box;border:1px solid rgba(0,0,0,.15);border-radius:2px;text-align:center}.layui-colorpicker-trigger-i{display:inline-block;color:#FFF;font-size:12px}.layui-colorpicker-trigger-i.layui-icon-close{color:#999}.layui-colorpicker-main{position:absolute;z-index:66666666;width:280px;padding:7px;background:#FFF;border:1px solid #d2d2d2;border-radius:2px;box-shadow:0 2px 4px rgba(0,0,0,.12)}.layui-colorpicker-main-wrapper{height:180px;position:relative}.layui-colorpicker-basis{width:260px;height:100%;position:relative}.layui-colorpicker-basis-white{width:100%;height:100%;position:absolute;top:0;left:0;background:linear-gradient(90deg,#FFF,hsla(0,0%,100%,0))}.layui-colorpicker-basis-black{width:100%;height:100%;position:absolute;top:0;left:0;background:linear-gradient(0deg,#000,transparent)}.layui-colorpicker-basis-cursor{width:10px;height:10px;border:1px solid #FFF;border-radius:50%;position:absolute;top:-3px;right:-3px;cursor:pointer}.layui-colorpicker-side{position:absolute;top:0;right:0;width:12px;height:100%;background:linear-gradient(red,#FF0,#0F0,#0FF,#00F,#F0F,red)}.layui-colorpicker-side-slider{width:100%;height:5px;box-shadow:0 0 1px #888;box-sizing:border-box;background:#FFF;border-radius:1px;border:1px solid #f0f0f0;cursor:pointer;position:absolute;left:0}.layui-colorpicker-main-alpha{display:none;height:12px;margin-top:7px;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==)}.layui-colorpicker-alpha-bgcolor{height:100%;position:relative}.layui-colorpicker-alpha-slider{width:5px;height:100%;box-shadow:0 0 1px #888;box-sizing:border-box;background:#FFF;border-radius:1px;border:1px solid #f0f0f0;cursor:pointer;position:absolute;top:0}.layui-colorpicker-main-pre{padding-top:7px;font-size:0}.layui-colorpicker-pre{width:20px;height:20px;border-radius:2px;display:inline-block;margin-left:6px;margin-bottom:7px;cursor:pointer}.layui-colorpicker-pre:nth-child(11n+1){margin-left:0}.layui-colorpicker-pre-isalpha{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==)}.layui-colorpicker-pre.layui-this{box-shadow:0 0 3px 2px rgba(0,0,0,.15)}.layui-colorpicker-pre>div{height:100%;border-radius:2px}.layui-colorpicker-main-input{text-align:right;padding-top:7px}.layui-colorpicker-main-input .layui-btn-container .layui-btn{margin:0 0 0 10px}.layui-colorpicker-main-input div.layui-inline{float:left;margin-right:10px;font-size:14px}.layui-colorpicker-main-input input.layui-input{width:150px;height:30px;color:#666}.layui-slider{height:4px;background:#e2e2e2;border-radius:3px;position:relative;cursor:pointer}.layui-slider-bar{border-radius:3px;position:absolute;height:100%}.layui-slider-step{position:absolute;top:0;width:4px;height:4px;border-radius:50%;background:#FFF;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.layui-slider-wrap{width:36px;height:36px;position:absolute;top:-16px;-webkit-transform:translateX(-50%);transform:translateX(-50%);z-index:10;text-align:center}.layui-slider-wrap-btn{width:12px;height:12px;border-radius:50%;background:#FFF;display:inline-block;vertical-align:middle;cursor:pointer;transition:.3s}.layui-slider-wrap:after{content:"";height:100%;display:inline-block;vertical-align:middle}.layui-slider-wrap-btn.layui-slider-hover,.layui-slider-wrap-btn:hover{transform:scale(1.2)}.layui-slider-wrap-btn.layui-disabled:hover{transform:scale(1)!important}.layui-slider-tips{position:absolute;top:-42px;z-index:66666666;white-space:nowrap;display:none;-webkit-transform:translateX(-50%);transform:translateX(-50%);color:#FFF;background:#000;border-radius:3px;height:25px;line-height:25px;padding:0 10px}.layui-slider-tips:after{content:'';position:absolute;bottom:-12px;left:50%;margin-left:-6px;width:0;height:0;border-width:6px;border-style:solid;border-color:#000 transparent transparent}.layui-slider-input{width:70px;height:32px;border:1px solid #e6e6e6;border-radius:3px;font-size:16px;line-height:32px;position:absolute;right:0;top:-15px}.layui-slider-input-btn{display:none;position:absolute;top:0;right:0;width:20px;height:100%;border-left:1px solid #d2d2d2}.layui-slider-input-btn i{cursor:pointer;position:absolute;right:0;bottom:0;width:20px;height:50%;font-size:12px;line-height:16px;text-align:center;color:#999}.layui-slider-input-btn i:first-child{top:0;border-bottom:1px solid #d2d2d2}.layui-slider-input-txt{height:100%;font-size:14px}.layui-slider-input-txt input{height:100%;border:none}.layui-slider-input-btn i:hover{color:#009688}.layui-slider-vertical{width:4px;margin-left:34px}.layui-slider-vertical .layui-slider-bar{width:4px}.layui-slider-vertical .layui-slider-step{top:auto;left:0;-webkit-transform:translateY(50%);transform:translateY(50%)}.layui-slider-vertical .layui-slider-wrap{top:auto;left:-16px;-webkit-transform:translateY(50%);transform:translateY(50%)}.layui-slider-vertical .layui-slider-tips{top:auto;left:2px}@media \0screen{.layui-slider-wrap-btn{margin-left:-20px}.layui-slider-vertical .layui-slider-wrap-btn{margin-left:0;margin-bottom:-20px}.layui-slider-vertical .layui-slider-tips{margin-left:-8px}.layui-slider>span{margin-left:8px}}.layui-anim{-webkit-animation-duration:.3s;animation-duration:.3s;-webkit-animation-fill-mode:both;animation-fill-mode:both}.layui-anim.layui-icon{display:inline-block}.layui-anim-loop{-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite}.layui-trans,.layui-trans a{transition:all .3s;-webkit-transition:all .3s}@-webkit-keyframes layui-rotate{from{-webkit-transform:rotate(0)}to{-webkit-transform:rotate(360deg)}}@keyframes layui-rotate{from{transform:rotate(0)}to{transform:rotate(360deg)}}.layui-anim-rotate{-webkit-animation-name:layui-rotate;animation-name:layui-rotate;-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-timing-function:linear;animation-timing-function:linear}@-webkit-keyframes layui-up{from{-webkit-transform:translate3d(0,100%,0);opacity:.3}to{-webkit-transform:translate3d(0,0,0);opacity:1}}@keyframes layui-up{from{transform:translate3d(0,100%,0);opacity:.3}to{transform:translate3d(0,0,0);opacity:1}}.layui-anim-up{-webkit-animation-name:layui-up;animation-name:layui-up}@-webkit-keyframes layui-upbit{from{-webkit-transform:translate3d(0,30px,0);opacity:.3}to{-webkit-transform:translate3d(0,0,0);opacity:1}}@keyframes layui-upbit{from{transform:translate3d(0,30px,0);opacity:.3}to{transform:translate3d(0,0,0);opacity:1}}.layui-anim-upbit{-webkit-animation-name:layui-upbit;animation-name:layui-upbit}@-webkit-keyframes layui-scale{0%{opacity:.3;-webkit-transform:scale(.5)}100%{opacity:1;-webkit-transform:scale(1)}}@keyframes layui-scale{0%{opacity:.3;-ms-transform:scale(.5);transform:scale(.5)}100%{opacity:1;-ms-transform:scale(1);transform:scale(1)}}.layui-anim-scale{-webkit-animation-name:layui-scale;animation-name:layui-scale}@-webkit-keyframes layui-scale-spring{0%{opacity:.5;-webkit-transform:scale(.5)}80%{opacity:.8;-webkit-transform:scale(1.1)}100%{opacity:1;-webkit-transform:scale(1)}}@keyframes layui-scale-spring{0%{opacity:.5;transform:scale(.5)}80%{opacity:.8;transform:scale(1.1)}100%{opacity:1;transform:scale(1)}}.layui-anim-scaleSpring{-webkit-animation-name:layui-scale-spring;animation-name:layui-scale-spring}@-webkit-keyframes layui-fadein{0%{opacity:0}100%{opacity:1}}@keyframes layui-fadein{0%{opacity:0}100%{opacity:1}}.layui-anim-fadein{-webkit-animation-name:layui-fadein;animation-name:layui-fadein}@-webkit-keyframes layui-fadeout{0%{opacity:1}100%{opacity:0}}@keyframes layui-fadeout{0%{opacity:1}100%{opacity:0}}.layui-anim-fadeout{-webkit-animation-name:layui-fadeout;animation-name:layui-fadeout} \ No newline at end of file +/** layui-v2.5.4 MIT License By https://www.layui.com */ + .layui-inline,img{display:inline-block;vertical-align:middle}h1,h2,h3,h4,h5,h6{font-weight:400}.layui-edge,.layui-header,.layui-inline,.layui-main{position:relative}.layui-body,.layui-edge,.layui-elip{overflow:hidden}.layui-btn,.layui-edge,.layui-inline,img{vertical-align:middle}.layui-btn,.layui-disabled,.layui-icon,.layui-unselect{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none}.layui-elip,.layui-form-checkbox span,.layui-form-pane .layui-form-label{text-overflow:ellipsis;white-space:nowrap}.layui-breadcrumb,.layui-tree-btnGroup{visibility:hidden}blockquote,body,button,dd,div,dl,dt,form,h1,h2,h3,h4,h5,h6,input,li,ol,p,pre,td,textarea,th,ul{margin:0;padding:0;-webkit-tap-highlight-color:rgba(0,0,0,0)}a:active,a:hover{outline:0}img{border:none}li{list-style:none}table{border-collapse:collapse;border-spacing:0}h4,h5,h6{font-size:100%}button,input,optgroup,option,select,textarea{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;outline:0}pre{white-space:pre-wrap;white-space:-moz-pre-wrap;white-space:-pre-wrap;white-space:-o-pre-wrap;word-wrap:break-word}body{line-height:24px;font:14px Helvetica Neue,Helvetica,PingFang SC,Tahoma,Arial,sans-serif}hr{height:1px;margin:10px 0;border:0;clear:both}a{color:#333;text-decoration:none}a:hover{color:#777}a cite{font-style:normal;*cursor:pointer}.layui-border-box,.layui-border-box *{box-sizing:border-box}.layui-box,.layui-box *{box-sizing:content-box}.layui-clear{clear:both;*zoom:1}.layui-clear:after{content:'\20';clear:both;*zoom:1;display:block;height:0}.layui-inline{*display:inline;*zoom:1}.layui-edge{display:inline-block;width:0;height:0;border-width:6px;border-style:dashed;border-color:transparent}.layui-edge-top{top:-4px;border-bottom-color:#999;border-bottom-style:solid}.layui-edge-right{border-left-color:#999;border-left-style:solid}.layui-edge-bottom{top:2px;border-top-color:#999;border-top-style:solid}.layui-edge-left{border-right-color:#999;border-right-style:solid}.layui-disabled,.layui-disabled:hover{color:#d2d2d2!important;cursor:not-allowed!important}.layui-circle{border-radius:100%}.layui-show{display:block!important}.layui-hide{display:none!important}@font-face{font-family:layui-icon;src:url(../font/iconfont.eot?v=250);src:url(../font/iconfont.eot?v=250#iefix) format('embedded-opentype'),url(../font/iconfont.woff2?v=250) format('woff2'),url(../font/iconfont.woff?v=250) format('woff'),url(../font/iconfont.ttf?v=250) format('truetype'),url(../font/iconfont.svg?v=250#layui-icon) format('svg')}.layui-icon{font-family:layui-icon!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.layui-icon-reply-fill:before{content:"\e611"}.layui-icon-set-fill:before{content:"\e614"}.layui-icon-menu-fill:before{content:"\e60f"}.layui-icon-search:before{content:"\e615"}.layui-icon-share:before{content:"\e641"}.layui-icon-set-sm:before{content:"\e620"}.layui-icon-engine:before{content:"\e628"}.layui-icon-close:before{content:"\1006"}.layui-icon-close-fill:before{content:"\1007"}.layui-icon-chart-screen:before{content:"\e629"}.layui-icon-star:before{content:"\e600"}.layui-icon-circle-dot:before{content:"\e617"}.layui-icon-chat:before{content:"\e606"}.layui-icon-release:before{content:"\e609"}.layui-icon-list:before{content:"\e60a"}.layui-icon-chart:before{content:"\e62c"}.layui-icon-ok-circle:before{content:"\1005"}.layui-icon-layim-theme:before{content:"\e61b"}.layui-icon-table:before{content:"\e62d"}.layui-icon-right:before{content:"\e602"}.layui-icon-left:before{content:"\e603"}.layui-icon-cart-simple:before{content:"\e698"}.layui-icon-face-cry:before{content:"\e69c"}.layui-icon-face-smile:before{content:"\e6af"}.layui-icon-survey:before{content:"\e6b2"}.layui-icon-tree:before{content:"\e62e"}.layui-icon-upload-circle:before{content:"\e62f"}.layui-icon-add-circle:before{content:"\e61f"}.layui-icon-download-circle:before{content:"\e601"}.layui-icon-templeate-1:before{content:"\e630"}.layui-icon-util:before{content:"\e631"}.layui-icon-face-surprised:before{content:"\e664"}.layui-icon-edit:before{content:"\e642"}.layui-icon-speaker:before{content:"\e645"}.layui-icon-down:before{content:"\e61a"}.layui-icon-file:before{content:"\e621"}.layui-icon-layouts:before{content:"\e632"}.layui-icon-rate-half:before{content:"\e6c9"}.layui-icon-add-circle-fine:before{content:"\e608"}.layui-icon-prev-circle:before{content:"\e633"}.layui-icon-read:before{content:"\e705"}.layui-icon-404:before{content:"\e61c"}.layui-icon-carousel:before{content:"\e634"}.layui-icon-help:before{content:"\e607"}.layui-icon-code-circle:before{content:"\e635"}.layui-icon-water:before{content:"\e636"}.layui-icon-username:before{content:"\e66f"}.layui-icon-find-fill:before{content:"\e670"}.layui-icon-about:before{content:"\e60b"}.layui-icon-location:before{content:"\e715"}.layui-icon-up:before{content:"\e619"}.layui-icon-pause:before{content:"\e651"}.layui-icon-date:before{content:"\e637"}.layui-icon-layim-uploadfile:before{content:"\e61d"}.layui-icon-delete:before{content:"\e640"}.layui-icon-play:before{content:"\e652"}.layui-icon-top:before{content:"\e604"}.layui-icon-friends:before{content:"\e612"}.layui-icon-refresh-3:before{content:"\e9aa"}.layui-icon-ok:before{content:"\e605"}.layui-icon-layer:before{content:"\e638"}.layui-icon-face-smile-fine:before{content:"\e60c"}.layui-icon-dollar:before{content:"\e659"}.layui-icon-group:before{content:"\e613"}.layui-icon-layim-download:before{content:"\e61e"}.layui-icon-picture-fine:before{content:"\e60d"}.layui-icon-link:before{content:"\e64c"}.layui-icon-diamond:before{content:"\e735"}.layui-icon-log:before{content:"\e60e"}.layui-icon-rate-solid:before{content:"\e67a"}.layui-icon-fonts-del:before{content:"\e64f"}.layui-icon-unlink:before{content:"\e64d"}.layui-icon-fonts-clear:before{content:"\e639"}.layui-icon-triangle-r:before{content:"\e623"}.layui-icon-circle:before{content:"\e63f"}.layui-icon-radio:before{content:"\e643"}.layui-icon-align-center:before{content:"\e647"}.layui-icon-align-right:before{content:"\e648"}.layui-icon-align-left:before{content:"\e649"}.layui-icon-loading-1:before{content:"\e63e"}.layui-icon-return:before{content:"\e65c"}.layui-icon-fonts-strong:before{content:"\e62b"}.layui-icon-upload:before{content:"\e67c"}.layui-icon-dialogue:before{content:"\e63a"}.layui-icon-video:before{content:"\e6ed"}.layui-icon-headset:before{content:"\e6fc"}.layui-icon-cellphone-fine:before{content:"\e63b"}.layui-icon-add-1:before{content:"\e654"}.layui-icon-face-smile-b:before{content:"\e650"}.layui-icon-fonts-html:before{content:"\e64b"}.layui-icon-form:before{content:"\e63c"}.layui-icon-cart:before{content:"\e657"}.layui-icon-camera-fill:before{content:"\e65d"}.layui-icon-tabs:before{content:"\e62a"}.layui-icon-fonts-code:before{content:"\e64e"}.layui-icon-fire:before{content:"\e756"}.layui-icon-set:before{content:"\e716"}.layui-icon-fonts-u:before{content:"\e646"}.layui-icon-triangle-d:before{content:"\e625"}.layui-icon-tips:before{content:"\e702"}.layui-icon-picture:before{content:"\e64a"}.layui-icon-more-vertical:before{content:"\e671"}.layui-icon-flag:before{content:"\e66c"}.layui-icon-loading:before{content:"\e63d"}.layui-icon-fonts-i:before{content:"\e644"}.layui-icon-refresh-1:before{content:"\e666"}.layui-icon-rmb:before{content:"\e65e"}.layui-icon-home:before{content:"\e68e"}.layui-icon-user:before{content:"\e770"}.layui-icon-notice:before{content:"\e667"}.layui-icon-login-weibo:before{content:"\e675"}.layui-icon-voice:before{content:"\e688"}.layui-icon-upload-drag:before{content:"\e681"}.layui-icon-login-qq:before{content:"\e676"}.layui-icon-snowflake:before{content:"\e6b1"}.layui-icon-file-b:before{content:"\e655"}.layui-icon-template:before{content:"\e663"}.layui-icon-auz:before{content:"\e672"}.layui-icon-console:before{content:"\e665"}.layui-icon-app:before{content:"\e653"}.layui-icon-prev:before{content:"\e65a"}.layui-icon-website:before{content:"\e7ae"}.layui-icon-next:before{content:"\e65b"}.layui-icon-component:before{content:"\e857"}.layui-icon-more:before{content:"\e65f"}.layui-icon-login-wechat:before{content:"\e677"}.layui-icon-shrink-right:before{content:"\e668"}.layui-icon-spread-left:before{content:"\e66b"}.layui-icon-camera:before{content:"\e660"}.layui-icon-note:before{content:"\e66e"}.layui-icon-refresh:before{content:"\e669"}.layui-icon-female:before{content:"\e661"}.layui-icon-male:before{content:"\e662"}.layui-icon-password:before{content:"\e673"}.layui-icon-senior:before{content:"\e674"}.layui-icon-theme:before{content:"\e66a"}.layui-icon-tread:before{content:"\e6c5"}.layui-icon-praise:before{content:"\e6c6"}.layui-icon-star-fill:before{content:"\e658"}.layui-icon-rate:before{content:"\e67b"}.layui-icon-template-1:before{content:"\e656"}.layui-icon-vercode:before{content:"\e679"}.layui-icon-cellphone:before{content:"\e678"}.layui-icon-screen-full:before{content:"\e622"}.layui-icon-screen-restore:before{content:"\e758"}.layui-icon-cols:before{content:"\e610"}.layui-icon-export:before{content:"\e67d"}.layui-icon-print:before{content:"\e66d"}.layui-icon-slider:before{content:"\e714"}.layui-icon-addition:before{content:"\e624"}.layui-icon-subtraction:before{content:"\e67e"}.layui-icon-service:before{content:"\e626"}.layui-icon-transfer:before{content:"\e691"}.layui-main{width:1140px;margin:0 auto}.layui-header{z-index:1000;height:60px}.layui-header a:hover{transition:all .5s;-webkit-transition:all .5s}.layui-side{position:fixed;left:0;top:0;bottom:0;z-index:999;width:200px;overflow-x:hidden}.layui-side-scroll{position:relative;width:220px;height:100%;overflow-x:hidden}.layui-body{position:absolute;left:200px;right:0;top:0;bottom:0;z-index:998;width:auto;overflow-y:auto;box-sizing:border-box}.layui-layout-body{overflow:hidden}.layui-layout-admin .layui-header{background-color:#23262E}.layui-layout-admin .layui-side{top:60px;width:200px;overflow-x:hidden}.layui-layout-admin .layui-body{position:fixed;top:60px;bottom:44px}.layui-layout-admin .layui-main{width:auto;margin:0 15px}.layui-layout-admin .layui-footer{position:fixed;left:200px;right:0;bottom:0;height:44px;line-height:44px;padding:0 15px;background-color:#eee}.layui-layout-admin .layui-logo{position:absolute;left:0;top:0;width:200px;height:100%;line-height:60px;text-align:center;color:#009688;font-size:16px}.layui-layout-admin .layui-header .layui-nav{background:0 0}.layui-layout-left{position:absolute!important;left:200px;top:0}.layui-layout-right{position:absolute!important;right:0;top:0}.layui-container{position:relative;margin:0 auto;padding:0 15px;box-sizing:border-box}.layui-fluid{position:relative;margin:0 auto;padding:0 15px}.layui-row:after,.layui-row:before{content:'';display:block;clear:both}.layui-col-lg1,.layui-col-lg10,.layui-col-lg11,.layui-col-lg12,.layui-col-lg2,.layui-col-lg3,.layui-col-lg4,.layui-col-lg5,.layui-col-lg6,.layui-col-lg7,.layui-col-lg8,.layui-col-lg9,.layui-col-md1,.layui-col-md10,.layui-col-md11,.layui-col-md12,.layui-col-md2,.layui-col-md3,.layui-col-md4,.layui-col-md5,.layui-col-md6,.layui-col-md7,.layui-col-md8,.layui-col-md9,.layui-col-sm1,.layui-col-sm10,.layui-col-sm11,.layui-col-sm12,.layui-col-sm2,.layui-col-sm3,.layui-col-sm4,.layui-col-sm5,.layui-col-sm6,.layui-col-sm7,.layui-col-sm8,.layui-col-sm9,.layui-col-xs1,.layui-col-xs10,.layui-col-xs11,.layui-col-xs12,.layui-col-xs2,.layui-col-xs3,.layui-col-xs4,.layui-col-xs5,.layui-col-xs6,.layui-col-xs7,.layui-col-xs8,.layui-col-xs9{position:relative;display:block;box-sizing:border-box}.layui-col-xs1,.layui-col-xs10,.layui-col-xs11,.layui-col-xs12,.layui-col-xs2,.layui-col-xs3,.layui-col-xs4,.layui-col-xs5,.layui-col-xs6,.layui-col-xs7,.layui-col-xs8,.layui-col-xs9{float:left}.layui-col-xs1{width:8.33333333%}.layui-col-xs2{width:16.66666667%}.layui-col-xs3{width:25%}.layui-col-xs4{width:33.33333333%}.layui-col-xs5{width:41.66666667%}.layui-col-xs6{width:50%}.layui-col-xs7{width:58.33333333%}.layui-col-xs8{width:66.66666667%}.layui-col-xs9{width:75%}.layui-col-xs10{width:83.33333333%}.layui-col-xs11{width:91.66666667%}.layui-col-xs12{width:100%}.layui-col-xs-offset1{margin-left:8.33333333%}.layui-col-xs-offset2{margin-left:16.66666667%}.layui-col-xs-offset3{margin-left:25%}.layui-col-xs-offset4{margin-left:33.33333333%}.layui-col-xs-offset5{margin-left:41.66666667%}.layui-col-xs-offset6{margin-left:50%}.layui-col-xs-offset7{margin-left:58.33333333%}.layui-col-xs-offset8{margin-left:66.66666667%}.layui-col-xs-offset9{margin-left:75%}.layui-col-xs-offset10{margin-left:83.33333333%}.layui-col-xs-offset11{margin-left:91.66666667%}.layui-col-xs-offset12{margin-left:100%}@media screen and (max-width:768px){.layui-hide-xs{display:none!important}.layui-show-xs-block{display:block!important}.layui-show-xs-inline{display:inline!important}.layui-show-xs-inline-block{display:inline-block!important}}@media screen and (min-width:768px){.layui-container{width:750px}.layui-hide-sm{display:none!important}.layui-show-sm-block{display:block!important}.layui-show-sm-inline{display:inline!important}.layui-show-sm-inline-block{display:inline-block!important}.layui-col-sm1,.layui-col-sm10,.layui-col-sm11,.layui-col-sm12,.layui-col-sm2,.layui-col-sm3,.layui-col-sm4,.layui-col-sm5,.layui-col-sm6,.layui-col-sm7,.layui-col-sm8,.layui-col-sm9{float:left}.layui-col-sm1{width:8.33333333%}.layui-col-sm2{width:16.66666667%}.layui-col-sm3{width:25%}.layui-col-sm4{width:33.33333333%}.layui-col-sm5{width:41.66666667%}.layui-col-sm6{width:50%}.layui-col-sm7{width:58.33333333%}.layui-col-sm8{width:66.66666667%}.layui-col-sm9{width:75%}.layui-col-sm10{width:83.33333333%}.layui-col-sm11{width:91.66666667%}.layui-col-sm12{width:100%}.layui-col-sm-offset1{margin-left:8.33333333%}.layui-col-sm-offset2{margin-left:16.66666667%}.layui-col-sm-offset3{margin-left:25%}.layui-col-sm-offset4{margin-left:33.33333333%}.layui-col-sm-offset5{margin-left:41.66666667%}.layui-col-sm-offset6{margin-left:50%}.layui-col-sm-offset7{margin-left:58.33333333%}.layui-col-sm-offset8{margin-left:66.66666667%}.layui-col-sm-offset9{margin-left:75%}.layui-col-sm-offset10{margin-left:83.33333333%}.layui-col-sm-offset11{margin-left:91.66666667%}.layui-col-sm-offset12{margin-left:100%}}@media screen and (min-width:992px){.layui-container{width:970px}.layui-hide-md{display:none!important}.layui-show-md-block{display:block!important}.layui-show-md-inline{display:inline!important}.layui-show-md-inline-block{display:inline-block!important}.layui-col-md1,.layui-col-md10,.layui-col-md11,.layui-col-md12,.layui-col-md2,.layui-col-md3,.layui-col-md4,.layui-col-md5,.layui-col-md6,.layui-col-md7,.layui-col-md8,.layui-col-md9{float:left}.layui-col-md1{width:8.33333333%}.layui-col-md2{width:16.66666667%}.layui-col-md3{width:25%}.layui-col-md4{width:33.33333333%}.layui-col-md5{width:41.66666667%}.layui-col-md6{width:50%}.layui-col-md7{width:58.33333333%}.layui-col-md8{width:66.66666667%}.layui-col-md9{width:75%}.layui-col-md10{width:83.33333333%}.layui-col-md11{width:91.66666667%}.layui-col-md12{width:100%}.layui-col-md-offset1{margin-left:8.33333333%}.layui-col-md-offset2{margin-left:16.66666667%}.layui-col-md-offset3{margin-left:25%}.layui-col-md-offset4{margin-left:33.33333333%}.layui-col-md-offset5{margin-left:41.66666667%}.layui-col-md-offset6{margin-left:50%}.layui-col-md-offset7{margin-left:58.33333333%}.layui-col-md-offset8{margin-left:66.66666667%}.layui-col-md-offset9{margin-left:75%}.layui-col-md-offset10{margin-left:83.33333333%}.layui-col-md-offset11{margin-left:91.66666667%}.layui-col-md-offset12{margin-left:100%}}@media screen and (min-width:1200px){.layui-container{width:1170px}.layui-hide-lg{display:none!important}.layui-show-lg-block{display:block!important}.layui-show-lg-inline{display:inline!important}.layui-show-lg-inline-block{display:inline-block!important}.layui-col-lg1,.layui-col-lg10,.layui-col-lg11,.layui-col-lg12,.layui-col-lg2,.layui-col-lg3,.layui-col-lg4,.layui-col-lg5,.layui-col-lg6,.layui-col-lg7,.layui-col-lg8,.layui-col-lg9{float:left}.layui-col-lg1{width:8.33333333%}.layui-col-lg2{width:16.66666667%}.layui-col-lg3{width:25%}.layui-col-lg4{width:33.33333333%}.layui-col-lg5{width:41.66666667%}.layui-col-lg6{width:50%}.layui-col-lg7{width:58.33333333%}.layui-col-lg8{width:66.66666667%}.layui-col-lg9{width:75%}.layui-col-lg10{width:83.33333333%}.layui-col-lg11{width:91.66666667%}.layui-col-lg12{width:100%}.layui-col-lg-offset1{margin-left:8.33333333%}.layui-col-lg-offset2{margin-left:16.66666667%}.layui-col-lg-offset3{margin-left:25%}.layui-col-lg-offset4{margin-left:33.33333333%}.layui-col-lg-offset5{margin-left:41.66666667%}.layui-col-lg-offset6{margin-left:50%}.layui-col-lg-offset7{margin-left:58.33333333%}.layui-col-lg-offset8{margin-left:66.66666667%}.layui-col-lg-offset9{margin-left:75%}.layui-col-lg-offset10{margin-left:83.33333333%}.layui-col-lg-offset11{margin-left:91.66666667%}.layui-col-lg-offset12{margin-left:100%}}.layui-col-space1{margin:-.5px}.layui-col-space1>*{padding:.5px}.layui-col-space3{margin:-1.5px}.layui-col-space3>*{padding:1.5px}.layui-col-space5{margin:-2.5px}.layui-col-space5>*{padding:2.5px}.layui-col-space8{margin:-3.5px}.layui-col-space8>*{padding:3.5px}.layui-col-space10{margin:-5px}.layui-col-space10>*{padding:5px}.layui-col-space12{margin:-6px}.layui-col-space12>*{padding:6px}.layui-col-space15{margin:-7.5px}.layui-col-space15>*{padding:7.5px}.layui-col-space18{margin:-9px}.layui-col-space18>*{padding:9px}.layui-col-space20{margin:-10px}.layui-col-space20>*{padding:10px}.layui-col-space22{margin:-11px}.layui-col-space22>*{padding:11px}.layui-col-space25{margin:-12.5px}.layui-col-space25>*{padding:12.5px}.layui-col-space30{margin:-15px}.layui-col-space30>*{padding:15px}.layui-btn,.layui-input,.layui-select,.layui-textarea,.layui-upload-button{outline:0;-webkit-appearance:none;transition:all .3s;-webkit-transition:all .3s;box-sizing:border-box}.layui-elem-quote{margin-bottom:10px;padding:15px;line-height:22px;border-left:5px solid #009688;border-radius:0 2px 2px 0;background-color:#f2f2f2}.layui-quote-nm{border-style:solid;border-width:1px 1px 1px 5px;background:0 0}.layui-elem-field{margin-bottom:10px;padding:0;border-width:1px;border-style:solid}.layui-elem-field legend{margin-left:20px;padding:0 10px;font-size:20px;font-weight:300}.layui-field-title{margin:10px 0 20px;border-width:1px 0 0}.layui-field-box{padding:10px 15px}.layui-field-title .layui-field-box{padding:10px 0}.layui-progress{position:relative;height:6px;border-radius:20px;background-color:#e2e2e2}.layui-progress-bar{position:absolute;left:0;top:0;width:0;max-width:100%;height:6px;border-radius:20px;text-align:right;background-color:#5FB878;transition:all .3s;-webkit-transition:all .3s}.layui-progress-big,.layui-progress-big .layui-progress-bar{height:18px;line-height:18px}.layui-progress-text{position:relative;top:-20px;line-height:18px;font-size:12px;color:#666}.layui-progress-big .layui-progress-text{position:static;padding:0 10px;color:#fff}.layui-collapse{border-width:1px;border-style:solid;border-radius:2px}.layui-colla-content,.layui-colla-item{border-top-width:1px;border-top-style:solid}.layui-colla-item:first-child{border-top:none}.layui-colla-title{position:relative;height:42px;line-height:42px;padding:0 15px 0 35px;color:#333;background-color:#f2f2f2;cursor:pointer;font-size:14px;overflow:hidden}.layui-colla-content{display:none;padding:10px 15px;line-height:22px;color:#666}.layui-colla-icon{position:absolute;left:15px;top:0;font-size:14px}.layui-card{margin-bottom:15px;border-radius:2px;background-color:#fff;box-shadow:0 1px 2px 0 rgba(0,0,0,.05)}.layui-card:last-child{margin-bottom:0}.layui-card-header{position:relative;height:42px;line-height:42px;padding:0 15px;border-bottom:1px solid #f6f6f6;color:#333;border-radius:2px 2px 0 0;font-size:14px}.layui-bg-black,.layui-bg-blue,.layui-bg-cyan,.layui-bg-green,.layui-bg-orange,.layui-bg-red{color:#fff!important}.layui-card-body{position:relative;padding:10px 15px;line-height:24px}.layui-card-body[pad15]{padding:15px}.layui-card-body[pad20]{padding:20px}.layui-card-body .layui-table{margin:5px 0}.layui-card .layui-tab{margin:0}.layui-panel-window{position:relative;padding:15px;border-radius:0;border-top:5px solid #E6E6E6;background-color:#fff}.layui-auxiliar-moving{position:fixed;left:0;right:0;top:0;bottom:0;width:100%;height:100%;background:0 0;z-index:9999999999}.layui-form-label,.layui-form-mid,.layui-form-select,.layui-input-block,.layui-input-inline,.layui-textarea{position:relative}.layui-bg-red{background-color:#FF5722!important}.layui-bg-orange{background-color:#FFB800!important}.layui-bg-green{background-color:#009688!important}.layui-bg-cyan{background-color:#2F4056!important}.layui-bg-blue{background-color:#1E9FFF!important}.layui-bg-black{background-color:#393D49!important}.layui-bg-gray{background-color:#eee!important;color:#666!important}.layui-badge-rim,.layui-colla-content,.layui-colla-item,.layui-collapse,.layui-elem-field,.layui-form-pane .layui-form-item[pane],.layui-form-pane .layui-form-label,.layui-input,.layui-layedit,.layui-layedit-tool,.layui-quote-nm,.layui-select,.layui-tab-bar,.layui-tab-card,.layui-tab-title,.layui-tab-title .layui-this:after,.layui-textarea{border-color:#e6e6e6}.layui-timeline-item:before,hr{background-color:#e6e6e6}.layui-text{line-height:22px;font-size:14px;color:#666}.layui-text h1,.layui-text h2,.layui-text h3{font-weight:500;color:#333}.layui-text h1{font-size:30px}.layui-text h2{font-size:24px}.layui-text h3{font-size:18px}.layui-text a:not(.layui-btn){color:#01AAED}.layui-text a:not(.layui-btn):hover{text-decoration:underline}.layui-text ul{padding:5px 0 5px 15px}.layui-text ul li{margin-top:5px;list-style-type:disc}.layui-text em,.layui-word-aux{color:#999!important;padding:0 5px!important}.layui-btn{display:inline-block;height:38px;line-height:38px;padding:0 18px;background-color:#009688;color:#fff;white-space:nowrap;text-align:center;font-size:14px;border:none;border-radius:2px;cursor:pointer}.layui-btn:hover{opacity:.8;filter:alpha(opacity=80);color:#fff}.layui-btn:active{opacity:1;filter:alpha(opacity=100)}.layui-btn+.layui-btn{margin-left:10px}.layui-btn-container{font-size:0}.layui-btn-container .layui-btn{margin-right:10px;margin-bottom:10px}.layui-btn-container .layui-btn+.layui-btn{margin-left:0}.layui-table .layui-btn-container .layui-btn{margin-bottom:9px}.layui-btn-radius{border-radius:100px}.layui-btn .layui-icon{margin-right:3px;font-size:18px;vertical-align:bottom;vertical-align:middle\9}.layui-btn-primary{border:1px solid #C9C9C9;background-color:#fff;color:#555}.layui-btn-primary:hover{border-color:#009688;color:#333}.layui-btn-normal{background-color:#1E9FFF}.layui-btn-warm{background-color:#FFB800}.layui-btn-danger{background-color:#FF5722}.layui-btn-checked{background-color:#5FB878}.layui-btn-disabled,.layui-btn-disabled:active,.layui-btn-disabled:hover{border:1px solid #e6e6e6;background-color:#FBFBFB;color:#C9C9C9;cursor:not-allowed;opacity:1}.layui-btn-lg{height:44px;line-height:44px;padding:0 25px;font-size:16px}.layui-btn-sm{height:30px;line-height:30px;padding:0 10px;font-size:12px}.layui-btn-sm i{font-size:16px!important}.layui-btn-xs{height:22px;line-height:22px;padding:0 5px;font-size:12px}.layui-btn-xs i{font-size:14px!important}.layui-btn-group{display:inline-block;vertical-align:middle;font-size:0}.layui-btn-group .layui-btn{margin-left:0!important;margin-right:0!important;border-left:1px solid rgba(255,255,255,.5);border-radius:0}.layui-btn-group .layui-btn-primary{border-left:none}.layui-btn-group .layui-btn-primary:hover{border-color:#C9C9C9;color:#009688}.layui-btn-group .layui-btn:first-child{border-left:none;border-radius:2px 0 0 2px}.layui-btn-group .layui-btn-primary:first-child{border-left:1px solid #c9c9c9}.layui-btn-group .layui-btn:last-child{border-radius:0 2px 2px 0}.layui-btn-group .layui-btn+.layui-btn{margin-left:0}.layui-btn-group+.layui-btn-group{margin-left:10px}.layui-btn-fluid{width:100%}.layui-input,.layui-select,.layui-textarea{height:38px;line-height:1.3;line-height:38px\9;border-width:1px;border-style:solid;background-color:#fff;border-radius:2px}.layui-input::-webkit-input-placeholder,.layui-select::-webkit-input-placeholder,.layui-textarea::-webkit-input-placeholder{line-height:1.3}.layui-input,.layui-textarea{display:block;width:100%;padding-left:10px}.layui-input:hover,.layui-textarea:hover{border-color:#D2D2D2!important}.layui-input:focus,.layui-textarea:focus{border-color:#C9C9C9!important}.layui-textarea{min-height:100px;height:auto;line-height:20px;padding:6px 10px;resize:vertical}.layui-select{padding:0 10px}.layui-form input[type=checkbox],.layui-form input[type=radio],.layui-form select{display:none}.layui-form [lay-ignore]{display:initial}.layui-form-item{margin-bottom:15px;clear:both;*zoom:1}.layui-form-item:after{content:'\20';clear:both;*zoom:1;display:block;height:0}.layui-form-label{float:left;display:block;padding:9px 15px;width:80px;font-weight:400;line-height:20px;text-align:right}.layui-form-label-col{display:block;float:none;padding:9px 0;line-height:20px;text-align:left}.layui-form-item .layui-inline{margin-bottom:5px;margin-right:10px}.layui-input-block{margin-left:110px;min-height:36px}.layui-input-inline{display:inline-block;vertical-align:middle}.layui-form-item .layui-input-inline{float:left;width:190px;margin-right:10px}.layui-form-text .layui-input-inline{width:auto}.layui-form-mid{float:left;display:block;padding:9px 0!important;line-height:20px;margin-right:10px}.layui-form-danger+.layui-form-select .layui-input,.layui-form-danger:focus{border-color:#FF5722!important}.layui-form-select .layui-input{padding-right:30px;cursor:pointer}.layui-form-select .layui-edge{position:absolute;right:10px;top:50%;margin-top:-3px;cursor:pointer;border-width:6px;border-top-color:#c2c2c2;border-top-style:solid;transition:all .3s;-webkit-transition:all .3s}.layui-form-select dl{display:none;position:absolute;left:0;top:42px;padding:5px 0;z-index:899;min-width:100%;border:1px solid #d2d2d2;max-height:300px;overflow-y:auto;background-color:#fff;border-radius:2px;box-shadow:0 2px 4px rgba(0,0,0,.12);box-sizing:border-box}.layui-form-select dl dd,.layui-form-select dl dt{padding:0 10px;line-height:36px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.layui-form-select dl dt{font-size:12px;color:#999}.layui-form-select dl dd{cursor:pointer}.layui-form-select dl dd:hover{background-color:#f2f2f2;-webkit-transition:.5s all;transition:.5s all}.layui-form-select .layui-select-group dd{padding-left:20px}.layui-form-select dl dd.layui-select-tips{padding-left:10px!important;color:#999}.layui-form-select dl dd.layui-this{background-color:#5FB878;color:#fff}.layui-form-checkbox,.layui-form-select dl dd.layui-disabled{background-color:#fff}.layui-form-selected dl{display:block}.layui-form-checkbox,.layui-form-checkbox *,.layui-form-switch{display:inline-block;vertical-align:middle}.layui-form-selected .layui-edge{margin-top:-9px;-webkit-transform:rotate(180deg);transform:rotate(180deg);margin-top:-3px\9}:root .layui-form-selected .layui-edge{margin-top:-9px\0/IE9}.layui-form-selectup dl{top:auto;bottom:42px}.layui-select-none{margin:5px 0;text-align:center;color:#999}.layui-select-disabled .layui-disabled{border-color:#eee!important}.layui-select-disabled .layui-edge{border-top-color:#d2d2d2}.layui-form-checkbox{position:relative;height:30px;line-height:30px;margin-right:10px;padding-right:30px;cursor:pointer;font-size:0;-webkit-transition:.1s linear;transition:.1s linear;box-sizing:border-box}.layui-form-checkbox span{padding:0 10px;height:100%;font-size:14px;border-radius:2px 0 0 2px;background-color:#d2d2d2;color:#fff;overflow:hidden}.layui-form-checkbox:hover span{background-color:#c2c2c2}.layui-form-checkbox i{position:absolute;right:0;top:0;width:30px;height:28px;border:1px solid #d2d2d2;border-left:none;border-radius:0 2px 2px 0;color:#fff;font-size:20px;text-align:center}.layui-form-checkbox:hover i{border-color:#c2c2c2;color:#c2c2c2}.layui-form-checked,.layui-form-checked:hover{border-color:#5FB878}.layui-form-checked span,.layui-form-checked:hover span{background-color:#5FB878}.layui-form-checked i,.layui-form-checked:hover i{color:#5FB878}.layui-form-item .layui-form-checkbox{margin-top:4px}.layui-form-checkbox[lay-skin=primary]{height:auto!important;line-height:normal!important;min-width:18px;min-height:18px;border:none!important;margin-right:0;padding-left:28px;padding-right:0;background:0 0}.layui-form-checkbox[lay-skin=primary] span{padding-left:0;padding-right:15px;line-height:18px;background:0 0;color:#666}.layui-form-checkbox[lay-skin=primary] i{right:auto;left:0;width:16px;height:16px;line-height:16px;border:1px solid #d2d2d2;font-size:12px;border-radius:2px;background-color:#fff;-webkit-transition:.1s linear;transition:.1s linear}.layui-form-checkbox[lay-skin=primary]:hover i{border-color:#5FB878;color:#fff}.layui-form-checked[lay-skin=primary] i{border-color:#5FB878!important;background-color:#5FB878;color:#fff}.layui-checkbox-disbaled[lay-skin=primary] span{background:0 0!important;color:#c2c2c2}.layui-checkbox-disbaled[lay-skin=primary]:hover i{border-color:#d2d2d2}.layui-form-item .layui-form-checkbox[lay-skin=primary]{margin-top:10px}.layui-form-switch{position:relative;height:22px;line-height:22px;min-width:35px;padding:0 5px;margin-top:8px;border:1px solid #d2d2d2;border-radius:20px;cursor:pointer;background-color:#fff;-webkit-transition:.1s linear;transition:.1s linear}.layui-form-switch i{position:absolute;left:5px;top:3px;width:16px;height:16px;border-radius:20px;background-color:#d2d2d2;-webkit-transition:.1s linear;transition:.1s linear}.layui-form-switch em{position:relative;top:0;width:25px;margin-left:21px;padding:0!important;text-align:center!important;color:#999!important;font-style:normal!important;font-size:12px}.layui-form-onswitch{border-color:#5FB878;background-color:#5FB878}.layui-checkbox-disbaled,.layui-checkbox-disbaled i{border-color:#e2e2e2!important}.layui-form-onswitch i{left:100%;margin-left:-21px;background-color:#fff}.layui-form-onswitch em{margin-left:5px;margin-right:21px;color:#fff!important}.layui-checkbox-disbaled span{background-color:#e2e2e2!important}.layui-checkbox-disbaled:hover i{color:#fff!important}[lay-radio]{display:none}.layui-form-radio,.layui-form-radio *{display:inline-block;vertical-align:middle}.layui-form-radio{line-height:28px;margin:6px 10px 0 0;padding-right:10px;cursor:pointer;font-size:0}.layui-form-radio *{font-size:14px}.layui-form-radio>i{margin-right:8px;font-size:22px;color:#c2c2c2}.layui-form-radio>i:hover,.layui-form-radioed>i{color:#5FB878}.layui-radio-disbaled>i{color:#e2e2e2!important}.layui-form-pane .layui-form-label{width:110px;padding:8px 15px;height:38px;line-height:20px;border-width:1px;border-style:solid;border-radius:2px 0 0 2px;text-align:center;background-color:#FBFBFB;overflow:hidden;box-sizing:border-box}.layui-form-pane .layui-input-inline{margin-left:-1px}.layui-form-pane .layui-input-block{margin-left:110px;left:-1px}.layui-form-pane .layui-input{border-radius:0 2px 2px 0}.layui-form-pane .layui-form-text .layui-form-label{float:none;width:100%;border-radius:2px;box-sizing:border-box;text-align:left}.layui-form-pane .layui-form-text .layui-input-inline{display:block;margin:0;top:-1px;clear:both}.layui-form-pane .layui-form-text .layui-input-block{margin:0;left:0;top:-1px}.layui-form-pane .layui-form-text .layui-textarea{min-height:100px;border-radius:0 0 2px 2px}.layui-form-pane .layui-form-checkbox{margin:4px 0 4px 10px}.layui-form-pane .layui-form-radio,.layui-form-pane .layui-form-switch{margin-top:6px;margin-left:10px}.layui-form-pane .layui-form-item[pane]{position:relative;border-width:1px;border-style:solid}.layui-form-pane .layui-form-item[pane] .layui-form-label{position:absolute;left:0;top:0;height:100%;border-width:0 1px 0 0}.layui-form-pane .layui-form-item[pane] .layui-input-inline{margin-left:110px}@media screen and (max-width:450px){.layui-form-item .layui-form-label{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.layui-form-item .layui-inline{display:block;margin-right:0;margin-bottom:20px;clear:both}.layui-form-item .layui-inline:after{content:'\20';clear:both;display:block;height:0}.layui-form-item .layui-input-inline{display:block;float:none;left:-3px;width:auto;margin:0 0 10px 112px}.layui-form-item .layui-input-inline+.layui-form-mid{margin-left:110px;top:-5px;padding:0}.layui-form-item .layui-form-checkbox{margin-right:5px;margin-bottom:5px}}.layui-layedit{border-width:1px;border-style:solid;border-radius:2px}.layui-layedit-tool{padding:3px 5px;border-bottom-width:1px;border-bottom-style:solid;font-size:0}.layedit-tool-fixed{position:fixed;top:0;border-top:1px solid #e2e2e2}.layui-layedit-tool .layedit-tool-mid,.layui-layedit-tool .layui-icon{display:inline-block;vertical-align:middle;text-align:center;font-size:14px}.layui-layedit-tool .layui-icon{position:relative;width:32px;height:30px;line-height:30px;margin:3px 5px;color:#777;cursor:pointer;border-radius:2px}.layui-layedit-tool .layui-icon:hover{color:#393D49}.layui-layedit-tool .layui-icon:active{color:#000}.layui-layedit-tool .layedit-tool-active{background-color:#e2e2e2;color:#000}.layui-layedit-tool .layui-disabled,.layui-layedit-tool .layui-disabled:hover{color:#d2d2d2;cursor:not-allowed}.layui-layedit-tool .layedit-tool-mid{width:1px;height:18px;margin:0 10px;background-color:#d2d2d2}.layedit-tool-html{width:50px!important;font-size:30px!important}.layedit-tool-b,.layedit-tool-code,.layedit-tool-help{font-size:16px!important}.layedit-tool-d,.layedit-tool-face,.layedit-tool-image,.layedit-tool-unlink{font-size:18px!important}.layedit-tool-image input{position:absolute;font-size:0;left:0;top:0;width:100%;height:100%;opacity:.01;filter:Alpha(opacity=1);cursor:pointer}.layui-layedit-iframe iframe{display:block;width:100%}#LAY_layedit_code{overflow:hidden}.layui-laypage{display:inline-block;*display:inline;*zoom:1;vertical-align:middle;margin:10px 0;font-size:0}.layui-laypage>a:first-child,.layui-laypage>a:first-child em{border-radius:2px 0 0 2px}.layui-laypage>a:last-child,.layui-laypage>a:last-child em{border-radius:0 2px 2px 0}.layui-laypage>:first-child{margin-left:0!important}.layui-laypage>:last-child{margin-right:0!important}.layui-laypage a,.layui-laypage button,.layui-laypage input,.layui-laypage select,.layui-laypage span{border:1px solid #e2e2e2}.layui-laypage a,.layui-laypage span{display:inline-block;*display:inline;*zoom:1;vertical-align:middle;padding:0 15px;height:28px;line-height:28px;margin:0 -1px 5px 0;background-color:#fff;color:#333;font-size:12px}.layui-flow-more a *,.layui-laypage input,.layui-table-view select[lay-ignore]{display:inline-block}.layui-laypage a:hover{color:#009688}.layui-laypage em{font-style:normal}.layui-laypage .layui-laypage-spr{color:#999;font-weight:700}.layui-laypage a{text-decoration:none}.layui-laypage .layui-laypage-curr{position:relative}.layui-laypage .layui-laypage-curr em{position:relative;color:#fff}.layui-laypage .layui-laypage-curr .layui-laypage-em{position:absolute;left:-1px;top:-1px;padding:1px;width:100%;height:100%;background-color:#009688}.layui-laypage-em{border-radius:2px}.layui-laypage-next em,.layui-laypage-prev em{font-family:Sim sun;font-size:16px}.layui-laypage .layui-laypage-count,.layui-laypage .layui-laypage-limits,.layui-laypage .layui-laypage-refresh,.layui-laypage .layui-laypage-skip{margin-left:10px;margin-right:10px;padding:0;border:none}.layui-laypage .layui-laypage-limits,.layui-laypage .layui-laypage-refresh{vertical-align:top}.layui-laypage .layui-laypage-refresh i{font-size:18px;cursor:pointer}.layui-laypage select{height:22px;padding:3px;border-radius:2px;cursor:pointer}.layui-laypage .layui-laypage-skip{height:30px;line-height:30px;color:#999}.layui-laypage button,.layui-laypage input{height:30px;line-height:30px;border-radius:2px;vertical-align:top;background-color:#fff;box-sizing:border-box}.layui-laypage input{width:40px;margin:0 10px;padding:0 3px;text-align:center}.layui-laypage input:focus,.layui-laypage select:focus{border-color:#009688!important}.layui-laypage button{margin-left:10px;padding:0 10px;cursor:pointer}.layui-table,.layui-table-view{margin:10px 0}.layui-flow-more{margin:10px 0;text-align:center;color:#999;font-size:14px}.layui-flow-more a{height:32px;line-height:32px}.layui-flow-more a *{vertical-align:top}.layui-flow-more a cite{padding:0 20px;border-radius:3px;background-color:#eee;color:#333;font-style:normal}.layui-flow-more a cite:hover{opacity:.8}.layui-flow-more a i{font-size:30px;color:#737383}.layui-table{width:100%;background-color:#fff;color:#666}.layui-table tr{transition:all .3s;-webkit-transition:all .3s}.layui-table th{text-align:left;font-weight:400}.layui-table tbody tr:hover,.layui-table thead tr,.layui-table-click,.layui-table-header,.layui-table-hover,.layui-table-mend,.layui-table-patch,.layui-table-tool,.layui-table-total,.layui-table-total tr,.layui-table[lay-even] tr:nth-child(even){background-color:#f2f2f2}.layui-table td,.layui-table th,.layui-table-col-set,.layui-table-fixed-r,.layui-table-grid-down,.layui-table-header,.layui-table-page,.layui-table-tips-main,.layui-table-tool,.layui-table-total,.layui-table-view,.layui-table[lay-skin=line],.layui-table[lay-skin=row]{border-width:1px;border-style:solid;border-color:#e6e6e6}.layui-table td,.layui-table th{position:relative;padding:9px 15px;min-height:20px;line-height:20px;font-size:14px}.layui-table[lay-skin=line] td,.layui-table[lay-skin=line] th{border-width:0 0 1px}.layui-table[lay-skin=row] td,.layui-table[lay-skin=row] th{border-width:0 1px 0 0}.layui-table[lay-skin=nob] td,.layui-table[lay-skin=nob] th{border:none}.layui-table img{max-width:100px}.layui-table[lay-size=lg] td,.layui-table[lay-size=lg] th{padding:15px 30px}.layui-table-view .layui-table[lay-size=lg] .layui-table-cell{height:40px;line-height:40px}.layui-table[lay-size=sm] td,.layui-table[lay-size=sm] th{font-size:12px;padding:5px 10px}.layui-table-view .layui-table[lay-size=sm] .layui-table-cell{height:20px;line-height:20px}.layui-table[lay-data]{display:none}.layui-table-box{position:relative;overflow:hidden}.layui-table-view .layui-table{position:relative;width:auto;margin:0}.layui-table-view .layui-table[lay-skin=line]{border-width:0 1px 0 0}.layui-table-view .layui-table[lay-skin=row]{border-width:0 0 1px}.layui-table-view .layui-table td,.layui-table-view .layui-table th{padding:5px 0;border-top:none;border-left:none}.layui-table-view .layui-table th.layui-unselect .layui-table-cell span{cursor:pointer}.layui-table-view .layui-table td{cursor:default}.layui-table-view .layui-table td[data-edit=text]{cursor:text}.layui-table-view .layui-form-checkbox[lay-skin=primary] i{width:18px;height:18px}.layui-table-view .layui-form-radio{line-height:0;padding:0}.layui-table-view .layui-form-radio>i{margin:0;font-size:20px}.layui-table-init{position:absolute;left:0;top:0;width:100%;height:100%;text-align:center;z-index:110}.layui-table-init .layui-icon{position:absolute;left:50%;top:50%;margin:-15px 0 0 -15px;font-size:30px;color:#c2c2c2}.layui-table-header{border-width:0 0 1px;overflow:hidden}.layui-table-header .layui-table{margin-bottom:-1px}.layui-table-tool .layui-inline[lay-event]{position:relative;width:26px;height:26px;padding:5px;line-height:16px;margin-right:10px;text-align:center;color:#333;border:1px solid #ccc;cursor:pointer;-webkit-transition:.5s all;transition:.5s all}.layui-table-tool .layui-inline[lay-event]:hover{border:1px solid #999}.layui-table-tool-temp{padding-right:120px}.layui-table-tool-self{position:absolute;right:17px;top:10px}.layui-table-tool .layui-table-tool-self .layui-inline[lay-event]{margin:0 0 0 10px}.layui-table-tool-panel{position:absolute;top:29px;left:-1px;padding:5px 0;min-width:150px;min-height:40px;border:1px solid #d2d2d2;text-align:left;overflow-y:auto;background-color:#fff;box-shadow:0 2px 4px rgba(0,0,0,.12)}.layui-table-cell,.layui-table-tool-panel li{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.layui-table-tool-panel li{padding:0 10px;line-height:30px;-webkit-transition:.5s all;transition:.5s all}.layui-table-tool-panel li .layui-form-checkbox[lay-skin=primary]{width:100%;padding-left:28px}.layui-table-tool-panel li:hover{background-color:#f2f2f2}.layui-table-tool-panel li .layui-form-checkbox[lay-skin=primary] i{position:absolute;left:0;top:0}.layui-table-tool-panel li .layui-form-checkbox[lay-skin=primary] span{padding:0}.layui-table-tool .layui-table-tool-self .layui-table-tool-panel{left:auto;right:-1px}.layui-table-col-set{position:absolute;right:0;top:0;width:20px;height:100%;border-width:0 0 0 1px;background-color:#fff}.layui-table-sort{width:10px;height:20px;margin-left:5px;cursor:pointer!important}.layui-table-sort .layui-edge{position:absolute;left:5px;border-width:5px}.layui-table-sort .layui-table-sort-asc{top:3px;border-top:none;border-bottom-style:solid;border-bottom-color:#b2b2b2}.layui-table-sort .layui-table-sort-asc:hover{border-bottom-color:#666}.layui-table-sort .layui-table-sort-desc{bottom:5px;border-bottom:none;border-top-style:solid;border-top-color:#b2b2b2}.layui-table-sort .layui-table-sort-desc:hover{border-top-color:#666}.layui-table-sort[lay-sort=asc] .layui-table-sort-asc{border-bottom-color:#000}.layui-table-sort[lay-sort=desc] .layui-table-sort-desc{border-top-color:#000}.layui-table-cell{height:28px;line-height:28px;padding:0 15px;position:relative;box-sizing:border-box}.layui-table-cell .layui-form-checkbox[lay-skin=primary]{top:-1px;padding:0}.layui-table-cell .layui-table-link{color:#01AAED}.laytable-cell-checkbox,.laytable-cell-numbers,.laytable-cell-radio,.laytable-cell-space{padding:0;text-align:center}.layui-table-body{position:relative;overflow:auto;margin-right:-1px;margin-bottom:-1px}.layui-table-body .layui-none{line-height:26px;padding:15px;text-align:center;color:#999}.layui-table-fixed{position:absolute;left:0;top:0;z-index:101}.layui-table-fixed .layui-table-body{overflow:hidden}.layui-table-fixed-l{box-shadow:0 -1px 8px rgba(0,0,0,.08)}.layui-table-fixed-r{left:auto;right:-1px;border-width:0 0 0 1px;box-shadow:-1px 0 8px rgba(0,0,0,.08)}.layui-table-fixed-r .layui-table-header{position:relative;overflow:visible}.layui-table-mend{position:absolute;right:-49px;top:0;height:100%;width:50px}.layui-table-tool{position:relative;z-index:890;width:100%;min-height:50px;line-height:30px;padding:10px 15px;border-width:0 0 1px}.layui-table-tool .layui-btn-container{margin-bottom:-10px}.layui-table-page,.layui-table-total{border-width:1px 0 0;margin-bottom:-1px;overflow:hidden}.layui-table-page{position:relative;width:100%;padding:7px 7px 0;height:41px;font-size:12px;white-space:nowrap}.layui-table-page>div{height:26px}.layui-table-page .layui-laypage{margin:0}.layui-table-page .layui-laypage a,.layui-table-page .layui-laypage span{height:26px;line-height:26px;margin-bottom:10px;border:none;background:0 0}.layui-table-page .layui-laypage a,.layui-table-page .layui-laypage span.layui-laypage-curr{padding:0 12px}.layui-table-page .layui-laypage span{margin-left:0;padding:0}.layui-table-page .layui-laypage .layui-laypage-prev{margin-left:-7px!important}.layui-table-page .layui-laypage .layui-laypage-curr .layui-laypage-em{left:0;top:0;padding:0}.layui-table-page .layui-laypage button,.layui-table-page .layui-laypage input{height:26px;line-height:26px}.layui-table-page .layui-laypage input{width:40px}.layui-table-page .layui-laypage button{padding:0 10px}.layui-table-page select{height:18px}.layui-table-patch .layui-table-cell{padding:0;width:30px}.layui-table-edit{position:absolute;left:0;top:0;width:100%;height:100%;padding:0 14px 1px;border-radius:0;box-shadow:1px 1px 20px rgba(0,0,0,.15)}.layui-table-edit:focus{border-color:#5FB878!important}select.layui-table-edit{padding:0 0 0 10px;border-color:#C9C9C9}.layui-table-view .layui-form-checkbox,.layui-table-view .layui-form-radio,.layui-table-view .layui-form-switch{top:0;margin:0;box-sizing:content-box}.layui-table-view .layui-form-checkbox{top:-1px;height:26px;line-height:26px}.layui-table-view .layui-form-checkbox i{height:26px}.layui-table-grid .layui-table-cell{overflow:visible}.layui-table-grid-down{position:absolute;top:0;right:0;width:26px;height:100%;padding:5px 0;border-width:0 0 0 1px;text-align:center;background-color:#fff;color:#999;cursor:pointer}.layui-table-grid-down .layui-icon{position:absolute;top:50%;left:50%;margin:-8px 0 0 -8px}.layui-table-grid-down:hover{background-color:#fbfbfb}body .layui-table-tips .layui-layer-content{background:0 0;padding:0;box-shadow:0 1px 6px rgba(0,0,0,.12)}.layui-table-tips-main{margin:-44px 0 0 -1px;max-height:150px;padding:8px 15px;font-size:14px;overflow-y:scroll;background-color:#fff;color:#666}.layui-table-tips-c{position:absolute;right:-3px;top:-13px;width:20px;height:20px;padding:3px;cursor:pointer;background-color:#666;border-radius:50%;color:#fff}.layui-table-tips-c:hover{background-color:#777}.layui-table-tips-c:before{position:relative;right:-2px}.layui-upload-file{display:none!important;opacity:.01;filter:Alpha(opacity=1)}.layui-upload-drag,.layui-upload-form,.layui-upload-wrap{display:inline-block}.layui-upload-list{margin:10px 0}.layui-upload-choose{padding:0 10px;color:#999}.layui-upload-drag{position:relative;padding:30px;border:1px dashed #e2e2e2;background-color:#fff;text-align:center;cursor:pointer;color:#999}.layui-upload-drag .layui-icon{font-size:50px;color:#009688}.layui-upload-drag[lay-over]{border-color:#009688}.layui-upload-iframe{position:absolute;width:0;height:0;border:0;visibility:hidden}.layui-upload-wrap{position:relative;vertical-align:middle}.layui-upload-wrap .layui-upload-file{display:block!important;position:absolute;left:0;top:0;z-index:10;font-size:100px;width:100%;height:100%;opacity:.01;filter:Alpha(opacity=1);cursor:pointer}.layui-transfer-active,.layui-transfer-box{display:inline-block;vertical-align:middle}.layui-transfer-box,.layui-transfer-header,.layui-transfer-search{border-width:0;border-style:solid;border-color:#e6e6e6}.layui-transfer-box{position:relative;border-width:1px;width:200px;height:360px;border-radius:2px;background-color:#fff}.layui-transfer-box .layui-form-checkbox{width:100%;margin:0!important}.layui-transfer-header{height:38px;line-height:38px;padding:0 10px;border-bottom-width:1px}.layui-transfer-search{position:relative;padding:10px;border-bottom-width:1px}.layui-transfer-search .layui-input{height:32px;padding-left:30px;font-size:12px}.layui-transfer-search .layui-icon-search{position:absolute;left:20px;top:50%;margin-top:-8px;color:#666}.layui-transfer-active{margin:0 15px}.layui-transfer-active .layui-btn{display:block;margin:0;padding:0 15px;background-color:#5FB878;border-color:#5FB878;color:#fff}.layui-transfer-active .layui-btn-disabled{background-color:#FBFBFB;border-color:#e6e6e6;color:#C9C9C9}.layui-transfer-active .layui-btn:first-child{margin-bottom:15px}.layui-transfer-active .layui-btn .layui-icon{margin:0;font-size:14px!important}.layui-transfer-data{padding:5px 0;overflow:auto}.layui-transfer-data li{height:32px;line-height:32px;padding:0 10px}.layui-transfer-data li:hover{background-color:#f2f2f2;transition:.5s all}.layui-transfer-data .layui-none{padding:15px 10px;text-align:center;color:#999}.layui-nav{position:relative;padding:0 20px;background-color:#393D49;color:#fff;border-radius:2px;font-size:0;box-sizing:border-box}.layui-nav *{font-size:14px}.layui-nav .layui-nav-item{position:relative;display:inline-block;*display:inline;*zoom:1;vertical-align:middle;line-height:60px}.layui-nav .layui-nav-item a{display:block;padding:0 20px;color:#fff;color:rgba(255,255,255,.7);transition:all .3s;-webkit-transition:all .3s}.layui-nav .layui-this:after,.layui-nav-bar,.layui-nav-tree .layui-nav-itemed:after{position:absolute;left:0;top:0;width:0;height:5px;background-color:#5FB878;transition:all .2s;-webkit-transition:all .2s}.layui-nav-bar{z-index:1000}.layui-nav .layui-nav-item a:hover,.layui-nav .layui-this a{color:#fff}.layui-nav .layui-this:after{content:'';top:auto;bottom:0;width:100%}.layui-nav-img{width:30px;height:30px;margin-right:10px;border-radius:50%}.layui-nav .layui-nav-more{content:'';width:0;height:0;border-style:solid dashed dashed;border-color:#fff transparent transparent;overflow:hidden;cursor:pointer;transition:all .2s;-webkit-transition:all .2s;position:absolute;top:50%;right:3px;margin-top:-3px;border-width:6px;border-top-color:rgba(255,255,255,.7)}.layui-nav .layui-nav-mored,.layui-nav-itemed>a .layui-nav-more{margin-top:-9px;border-style:dashed dashed solid;border-color:transparent transparent #fff}.layui-nav-child{display:none;position:absolute;left:0;top:65px;min-width:100%;line-height:36px;padding:5px 0;box-shadow:0 2px 4px rgba(0,0,0,.12);border:1px solid #d2d2d2;background-color:#fff;z-index:100;border-radius:2px;white-space:nowrap}.layui-nav .layui-nav-child a{color:#333}.layui-nav .layui-nav-child a:hover{background-color:#f2f2f2;color:#000}.layui-nav-child dd{position:relative}.layui-nav .layui-nav-child dd.layui-this a,.layui-nav-child dd.layui-this{background-color:#5FB878;color:#fff}.layui-nav-child dd.layui-this:after{display:none}.layui-nav-tree{width:200px;padding:0}.layui-nav-tree .layui-nav-item{display:block;width:100%;line-height:45px}.layui-nav-tree .layui-nav-item a{position:relative;height:45px;line-height:45px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.layui-nav-tree .layui-nav-item a:hover{background-color:#4E5465}.layui-nav-tree .layui-nav-bar{width:5px;height:0;background-color:#009688}.layui-nav-tree .layui-nav-child dd.layui-this,.layui-nav-tree .layui-nav-child dd.layui-this a,.layui-nav-tree .layui-this,.layui-nav-tree .layui-this>a,.layui-nav-tree .layui-this>a:hover{background-color:#009688;color:#fff}.layui-nav-tree .layui-this:after{display:none}.layui-nav-itemed>a,.layui-nav-tree .layui-nav-title a,.layui-nav-tree .layui-nav-title a:hover{color:#fff!important}.layui-nav-tree .layui-nav-child{position:relative;z-index:0;top:0;border:none;box-shadow:none}.layui-nav-tree .layui-nav-child a{height:40px;line-height:40px;color:#fff;color:rgba(255,255,255,.7)}.layui-nav-tree .layui-nav-child,.layui-nav-tree .layui-nav-child a:hover{background:0 0;color:#fff}.layui-nav-tree .layui-nav-more{right:10px}.layui-nav-itemed>.layui-nav-child{display:block;padding:0;background-color:rgba(0,0,0,.3)!important}.layui-nav-itemed>.layui-nav-child>.layui-this>.layui-nav-child{display:block}.layui-nav-side{position:fixed;top:0;bottom:0;left:0;overflow-x:hidden;z-index:999}.layui-bg-blue .layui-nav-bar,.layui-bg-blue .layui-nav-itemed:after,.layui-bg-blue .layui-this:after{background-color:#93D1FF}.layui-bg-blue .layui-nav-child dd.layui-this{background-color:#1E9FFF}.layui-bg-blue .layui-nav-itemed>a,.layui-nav-tree.layui-bg-blue .layui-nav-title a,.layui-nav-tree.layui-bg-blue .layui-nav-title a:hover{background-color:#007DDB!important}.layui-breadcrumb{font-size:0}.layui-breadcrumb>*{font-size:14px}.layui-breadcrumb a{color:#999!important}.layui-breadcrumb a:hover{color:#5FB878!important}.layui-breadcrumb a cite{color:#666;font-style:normal}.layui-breadcrumb span[lay-separator]{margin:0 10px;color:#999}.layui-tab{margin:10px 0;text-align:left!important}.layui-tab[overflow]>.layui-tab-title{overflow:hidden}.layui-tab-title{position:relative;left:0;height:40px;white-space:nowrap;font-size:0;border-bottom-width:1px;border-bottom-style:solid;transition:all .2s;-webkit-transition:all .2s}.layui-tab-title li{display:inline-block;*display:inline;*zoom:1;vertical-align:middle;font-size:14px;transition:all .2s;-webkit-transition:all .2s;position:relative;line-height:40px;min-width:65px;padding:0 15px;text-align:center;cursor:pointer}.layui-tab-title li a{display:block}.layui-tab-title .layui-this{color:#000}.layui-tab-title .layui-this:after{position:absolute;left:0;top:0;content:'';width:100%;height:41px;border-width:1px;border-style:solid;border-bottom-color:#fff;border-radius:2px 2px 0 0;box-sizing:border-box;pointer-events:none}.layui-tab-bar{position:absolute;right:0;top:0;z-index:10;width:30px;height:39px;line-height:39px;border-width:1px;border-style:solid;border-radius:2px;text-align:center;background-color:#fff;cursor:pointer}.layui-tab-bar .layui-icon{position:relative;display:inline-block;top:3px;transition:all .3s;-webkit-transition:all .3s}.layui-tab-item{display:none}.layui-tab-more{padding-right:30px;height:auto!important;white-space:normal!important}.layui-tab-more li.layui-this:after{border-bottom-color:#e2e2e2;border-radius:2px}.layui-tab-more .layui-tab-bar .layui-icon{top:-2px;top:3px\9;-webkit-transform:rotate(180deg);transform:rotate(180deg)}:root .layui-tab-more .layui-tab-bar .layui-icon{top:-2px\0/IE9}.layui-tab-content{padding:10px}.layui-tab-title li .layui-tab-close{position:relative;display:inline-block;width:18px;height:18px;line-height:20px;margin-left:8px;top:1px;text-align:center;font-size:14px;color:#c2c2c2;transition:all .2s;-webkit-transition:all .2s}.layui-tab-title li .layui-tab-close:hover{border-radius:2px;background-color:#FF5722;color:#fff}.layui-tab-brief>.layui-tab-title .layui-this{color:#009688}.layui-tab-brief>.layui-tab-more li.layui-this:after,.layui-tab-brief>.layui-tab-title .layui-this:after{border:none;border-radius:0;border-bottom:2px solid #5FB878}.layui-tab-brief[overflow]>.layui-tab-title .layui-this:after{top:-1px}.layui-tab-card{border-width:1px;border-style:solid;border-radius:2px;box-shadow:0 2px 5px 0 rgba(0,0,0,.1)}.layui-tab-card>.layui-tab-title{background-color:#f2f2f2}.layui-tab-card>.layui-tab-title li{margin-right:-1px;margin-left:-1px}.layui-tab-card>.layui-tab-title .layui-this{background-color:#fff}.layui-tab-card>.layui-tab-title .layui-this:after{border-top:none;border-width:1px;border-bottom-color:#fff}.layui-tab-card>.layui-tab-title .layui-tab-bar{height:40px;line-height:40px;border-radius:0;border-top:none;border-right:none}.layui-tab-card>.layui-tab-more .layui-this{background:0 0;color:#5FB878}.layui-tab-card>.layui-tab-more .layui-this:after{border:none}.layui-timeline{padding-left:5px}.layui-timeline-item{position:relative;padding-bottom:20px}.layui-timeline-axis{position:absolute;left:-5px;top:0;z-index:10;width:20px;height:20px;line-height:20px;background-color:#fff;color:#5FB878;border-radius:50%;text-align:center;cursor:pointer}.layui-timeline-axis:hover{color:#FF5722}.layui-timeline-item:before{content:'';position:absolute;left:5px;top:0;z-index:0;width:1px;height:100%}.layui-timeline-item:last-child:before{display:none}.layui-timeline-item:first-child:before{display:block}.layui-timeline-content{padding-left:25px}.layui-timeline-title{position:relative;margin-bottom:10px}.layui-badge,.layui-badge-dot,.layui-badge-rim{position:relative;display:inline-block;padding:0 6px;font-size:12px;text-align:center;background-color:#FF5722;color:#fff;border-radius:2px}.layui-badge{height:18px;line-height:18px}.layui-badge-dot{width:8px;height:8px;padding:0;border-radius:50%}.layui-badge-rim{height:18px;line-height:18px;border-width:1px;border-style:solid;background-color:#fff;color:#666}.layui-btn .layui-badge,.layui-btn .layui-badge-dot{margin-left:5px}.layui-nav .layui-badge,.layui-nav .layui-badge-dot{position:absolute;top:50%;margin:-8px 6px 0}.layui-tab-title .layui-badge,.layui-tab-title .layui-badge-dot{left:5px;top:-2px}.layui-carousel{position:relative;left:0;top:0;background-color:#f8f8f8}.layui-carousel>[carousel-item]{position:relative;width:100%;height:100%;overflow:hidden}.layui-carousel>[carousel-item]:before{position:absolute;content:'\e63d';left:50%;top:50%;width:100px;line-height:20px;margin:-10px 0 0 -50px;text-align:center;color:#c2c2c2;font-family:layui-icon!important;font-size:30px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.layui-carousel>[carousel-item]>*{display:none;position:absolute;left:0;top:0;width:100%;height:100%;background-color:#f8f8f8;transition-duration:.3s;-webkit-transition-duration:.3s}.layui-carousel-updown>*{-webkit-transition:.3s ease-in-out up;transition:.3s ease-in-out up}.layui-carousel-arrow{display:none\9;opacity:0;position:absolute;left:10px;top:50%;margin-top:-18px;width:36px;height:36px;line-height:36px;text-align:center;font-size:20px;border:0;border-radius:50%;background-color:rgba(0,0,0,.2);color:#fff;-webkit-transition-duration:.3s;transition-duration:.3s;cursor:pointer}.layui-carousel-arrow[lay-type=add]{left:auto!important;right:10px}.layui-carousel:hover .layui-carousel-arrow[lay-type=add],.layui-carousel[lay-arrow=always] .layui-carousel-arrow[lay-type=add]{right:20px}.layui-carousel[lay-arrow=always] .layui-carousel-arrow{opacity:1;left:20px}.layui-carousel[lay-arrow=none] .layui-carousel-arrow{display:none}.layui-carousel-arrow:hover,.layui-carousel-ind ul:hover{background-color:rgba(0,0,0,.35)}.layui-carousel:hover .layui-carousel-arrow{display:block\9;opacity:1;left:20px}.layui-carousel-ind{position:relative;top:-35px;width:100%;line-height:0!important;text-align:center;font-size:0}.layui-carousel[lay-indicator=outside]{margin-bottom:30px}.layui-carousel[lay-indicator=outside] .layui-carousel-ind{top:10px}.layui-carousel[lay-indicator=outside] .layui-carousel-ind ul{background-color:rgba(0,0,0,.5)}.layui-carousel[lay-indicator=none] .layui-carousel-ind{display:none}.layui-carousel-ind ul{display:inline-block;padding:5px;background-color:rgba(0,0,0,.2);border-radius:10px;-webkit-transition-duration:.3s;transition-duration:.3s}.layui-carousel-ind li{display:inline-block;width:10px;height:10px;margin:0 3px;font-size:14px;background-color:#e2e2e2;background-color:rgba(255,255,255,.5);border-radius:50%;cursor:pointer;-webkit-transition-duration:.3s;transition-duration:.3s}.layui-carousel-ind li:hover{background-color:rgba(255,255,255,.7)}.layui-carousel-ind li.layui-this{background-color:#fff}.layui-carousel>[carousel-item]>.layui-carousel-next,.layui-carousel>[carousel-item]>.layui-carousel-prev,.layui-carousel>[carousel-item]>.layui-this{display:block}.layui-carousel>[carousel-item]>.layui-this{left:0}.layui-carousel>[carousel-item]>.layui-carousel-prev{left:-100%}.layui-carousel>[carousel-item]>.layui-carousel-next{left:100%}.layui-carousel>[carousel-item]>.layui-carousel-next.layui-carousel-left,.layui-carousel>[carousel-item]>.layui-carousel-prev.layui-carousel-right{left:0}.layui-carousel>[carousel-item]>.layui-this.layui-carousel-left{left:-100%}.layui-carousel>[carousel-item]>.layui-this.layui-carousel-right{left:100%}.layui-carousel[lay-anim=updown] .layui-carousel-arrow{left:50%!important;top:20px;margin:0 0 0 -18px}.layui-carousel[lay-anim=updown]>[carousel-item]>*,.layui-carousel[lay-anim=fade]>[carousel-item]>*{left:0!important}.layui-carousel[lay-anim=updown] .layui-carousel-arrow[lay-type=add]{top:auto!important;bottom:20px}.layui-carousel[lay-anim=updown] .layui-carousel-ind{position:absolute;top:50%;right:20px;width:auto;height:auto}.layui-carousel[lay-anim=updown] .layui-carousel-ind ul{padding:3px 5px}.layui-carousel[lay-anim=updown] .layui-carousel-ind li{display:block;margin:6px 0}.layui-carousel[lay-anim=updown]>[carousel-item]>.layui-this{top:0}.layui-carousel[lay-anim=updown]>[carousel-item]>.layui-carousel-prev{top:-100%}.layui-carousel[lay-anim=updown]>[carousel-item]>.layui-carousel-next{top:100%}.layui-carousel[lay-anim=updown]>[carousel-item]>.layui-carousel-next.layui-carousel-left,.layui-carousel[lay-anim=updown]>[carousel-item]>.layui-carousel-prev.layui-carousel-right{top:0}.layui-carousel[lay-anim=updown]>[carousel-item]>.layui-this.layui-carousel-left{top:-100%}.layui-carousel[lay-anim=updown]>[carousel-item]>.layui-this.layui-carousel-right{top:100%}.layui-carousel[lay-anim=fade]>[carousel-item]>.layui-carousel-next,.layui-carousel[lay-anim=fade]>[carousel-item]>.layui-carousel-prev{opacity:0}.layui-carousel[lay-anim=fade]>[carousel-item]>.layui-carousel-next.layui-carousel-left,.layui-carousel[lay-anim=fade]>[carousel-item]>.layui-carousel-prev.layui-carousel-right{opacity:1}.layui-carousel[lay-anim=fade]>[carousel-item]>.layui-this.layui-carousel-left,.layui-carousel[lay-anim=fade]>[carousel-item]>.layui-this.layui-carousel-right{opacity:0}.layui-fixbar{position:fixed;right:15px;bottom:15px;z-index:999999}.layui-fixbar li{width:50px;height:50px;line-height:50px;margin-bottom:1px;text-align:center;cursor:pointer;font-size:30px;background-color:#9F9F9F;color:#fff;border-radius:2px;opacity:.95}.layui-fixbar li:hover{opacity:.85}.layui-fixbar li:active{opacity:1}.layui-fixbar .layui-fixbar-top{display:none;font-size:40px}body .layui-util-face{border:none;background:0 0}body .layui-util-face .layui-layer-content{padding:0;background-color:#fff;color:#666;box-shadow:none}.layui-util-face .layui-layer-TipsG{display:none}.layui-util-face ul{position:relative;width:372px;padding:10px;border:1px solid #D9D9D9;background-color:#fff;box-shadow:0 0 20px rgba(0,0,0,.2)}.layui-util-face ul li{cursor:pointer;float:left;border:1px solid #e8e8e8;height:22px;width:26px;overflow:hidden;margin:-1px 0 0 -1px;padding:4px 2px;text-align:center}.layui-util-face ul li:hover{position:relative;z-index:2;border:1px solid #eb7350;background:#fff9ec}.layui-code{position:relative;margin:10px 0;padding:15px;line-height:20px;border:1px solid #ddd;border-left-width:6px;background-color:#F2F2F2;color:#333;font-family:Courier New;font-size:12px}.layui-rate,.layui-rate *{display:inline-block;vertical-align:middle}.layui-rate{padding:10px 5px 10px 0;font-size:0}.layui-rate li i.layui-icon{font-size:20px;color:#FFB800;margin-right:5px;transition:all .3s;-webkit-transition:all .3s}.layui-rate li i:hover{cursor:pointer;transform:scale(1.12);-webkit-transform:scale(1.12)}.layui-rate[readonly] li i:hover{cursor:default;transform:scale(1)}.layui-colorpicker{width:26px;height:26px;border:1px solid #e6e6e6;padding:5px;border-radius:2px;line-height:24px;display:inline-block;cursor:pointer;transition:all .3s;-webkit-transition:all .3s}.layui-colorpicker:hover{border-color:#d2d2d2}.layui-colorpicker.layui-colorpicker-lg{width:34px;height:34px;line-height:32px}.layui-colorpicker.layui-colorpicker-sm{width:24px;height:24px;line-height:22px}.layui-colorpicker.layui-colorpicker-xs{width:22px;height:22px;line-height:20px}.layui-colorpicker-trigger-bgcolor{display:block;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==);border-radius:2px}.layui-colorpicker-trigger-span{display:block;height:100%;box-sizing:border-box;border:1px solid rgba(0,0,0,.15);border-radius:2px;text-align:center}.layui-colorpicker-trigger-i{display:inline-block;color:#FFF;font-size:12px}.layui-colorpicker-trigger-i.layui-icon-close{color:#999}.layui-colorpicker-main{position:absolute;z-index:66666666;width:280px;padding:7px;background:#FFF;border:1px solid #d2d2d2;border-radius:2px;box-shadow:0 2px 4px rgba(0,0,0,.12)}.layui-colorpicker-main-wrapper{height:180px;position:relative}.layui-colorpicker-basis{width:260px;height:100%;position:relative}.layui-colorpicker-basis-white{width:100%;height:100%;position:absolute;top:0;left:0;background:linear-gradient(90deg,#FFF,hsla(0,0%,100%,0))}.layui-colorpicker-basis-black{width:100%;height:100%;position:absolute;top:0;left:0;background:linear-gradient(0deg,#000,transparent)}.layui-colorpicker-basis-cursor{width:10px;height:10px;border:1px solid #FFF;border-radius:50%;position:absolute;top:-3px;right:-3px;cursor:pointer}.layui-colorpicker-side{position:absolute;top:0;right:0;width:12px;height:100%;background:linear-gradient(red,#FF0,#0F0,#0FF,#00F,#F0F,red)}.layui-colorpicker-side-slider{width:100%;height:5px;box-shadow:0 0 1px #888;box-sizing:border-box;background:#FFF;border-radius:1px;border:1px solid #f0f0f0;cursor:pointer;position:absolute;left:0}.layui-colorpicker-main-alpha{display:none;height:12px;margin-top:7px;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==)}.layui-colorpicker-alpha-bgcolor{height:100%;position:relative}.layui-colorpicker-alpha-slider{width:5px;height:100%;box-shadow:0 0 1px #888;box-sizing:border-box;background:#FFF;border-radius:1px;border:1px solid #f0f0f0;cursor:pointer;position:absolute;top:0}.layui-colorpicker-main-pre{padding-top:7px;font-size:0}.layui-colorpicker-pre{width:20px;height:20px;border-radius:2px;display:inline-block;margin-left:6px;margin-bottom:7px;cursor:pointer}.layui-colorpicker-pre:nth-child(11n+1){margin-left:0}.layui-colorpicker-pre-isalpha{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==)}.layui-colorpicker-pre.layui-this{box-shadow:0 0 3px 2px rgba(0,0,0,.15)}.layui-colorpicker-pre>div{height:100%;border-radius:2px}.layui-colorpicker-main-input{text-align:right;padding-top:7px}.layui-colorpicker-main-input .layui-btn-container .layui-btn{margin:0 0 0 10px}.layui-colorpicker-main-input div.layui-inline{float:left;margin-right:10px;font-size:14px}.layui-colorpicker-main-input input.layui-input{width:150px;height:30px;color:#666}.layui-slider{height:4px;background:#e2e2e2;border-radius:3px;position:relative;cursor:pointer}.layui-slider-bar{border-radius:3px;position:absolute;height:100%}.layui-slider-step{position:absolute;top:0;width:4px;height:4px;border-radius:50%;background:#FFF;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.layui-slider-wrap{width:36px;height:36px;position:absolute;top:-16px;-webkit-transform:translateX(-50%);transform:translateX(-50%);z-index:10;text-align:center}.layui-slider-wrap-btn{width:12px;height:12px;border-radius:50%;background:#FFF;display:inline-block;vertical-align:middle;cursor:pointer;transition:.3s}.layui-slider-wrap:after{content:"";height:100%;display:inline-block;vertical-align:middle}.layui-slider-wrap-btn.layui-slider-hover,.layui-slider-wrap-btn:hover{transform:scale(1.2)}.layui-slider-wrap-btn.layui-disabled:hover{transform:scale(1)!important}.layui-slider-tips{position:absolute;top:-42px;z-index:66666666;white-space:nowrap;display:none;-webkit-transform:translateX(-50%);transform:translateX(-50%);color:#FFF;background:#000;border-radius:3px;height:25px;line-height:25px;padding:0 10px}.layui-slider-tips:after{content:'';position:absolute;bottom:-12px;left:50%;margin-left:-6px;width:0;height:0;border-width:6px;border-style:solid;border-color:#000 transparent transparent}.layui-slider-input{width:70px;height:32px;border:1px solid #e6e6e6;border-radius:3px;font-size:16px;line-height:32px;position:absolute;right:0;top:-15px}.layui-slider-input-btn{display:none;position:absolute;top:0;right:0;width:20px;height:100%;border-left:1px solid #d2d2d2}.layui-slider-input-btn i{cursor:pointer;position:absolute;right:0;bottom:0;width:20px;height:50%;font-size:12px;line-height:16px;text-align:center;color:#999}.layui-slider-input-btn i:first-child{top:0;border-bottom:1px solid #d2d2d2}.layui-slider-input-txt{height:100%;font-size:14px}.layui-slider-input-txt input{height:100%;border:none}.layui-slider-input-btn i:hover{color:#009688}.layui-slider-vertical{width:4px;margin-left:34px}.layui-slider-vertical .layui-slider-bar{width:4px}.layui-slider-vertical .layui-slider-step{top:auto;left:0;-webkit-transform:translateY(50%);transform:translateY(50%)}.layui-slider-vertical .layui-slider-wrap{top:auto;left:-16px;-webkit-transform:translateY(50%);transform:translateY(50%)}.layui-slider-vertical .layui-slider-tips{top:auto;left:2px}@media \0screen{.layui-slider-wrap-btn{margin-left:-20px}.layui-slider-vertical .layui-slider-wrap-btn{margin-left:0;margin-bottom:-20px}.layui-slider-vertical .layui-slider-tips{margin-left:-8px}.layui-slider>span{margin-left:8px}}.layui-tree{line-height:22px}.layui-tree .layui-form-checkbox{margin:0!important}.layui-tree-set{width:100%;position:relative}.layui-tree-pack{display:none;padding-left:20px;position:relative}.layui-tree-iconClick,.layui-tree-main{display:inline-block;vertical-align:middle}.layui-tree-line .layui-tree-pack{padding-left:27px}.layui-tree-line .layui-tree-set .layui-tree-set:after{content:'';position:absolute;top:14px;left:-9px;width:17px;height:0;border-top:1px dotted #c0c4cc}.layui-tree-entry{position:relative;padding:3px 0;height:20px;white-space:nowrap}.layui-tree-entry:hover{background-color:#eee}.layui-tree-line .layui-tree-entry:hover{background-color:rgba(0,0,0,0)}.layui-tree-line .layui-tree-entry:hover .layui-tree-txt{color:#999;text-decoration:underline;transition:.3s}.layui-tree-main{cursor:pointer;padding-right:10px}.layui-tree-line .layui-tree-set:before{content:'';position:absolute;top:0;left:-9px;width:0;height:100%;border-left:1px dotted #c0c4cc}.layui-tree-line .layui-tree-set.layui-tree-setLineShort:before{height:13px}.layui-tree-line .layui-tree-set.layui-tree-setHide:before{height:0}.layui-tree-iconClick{position:relative;height:20px;line-height:20px;margin:0 10px;color:#c0c4cc}.layui-tree-icon{height:12px;line-height:12px;width:12px;text-align:center;border:1px solid #c0c4cc}.layui-tree-iconClick .layui-icon{font-size:18px}.layui-tree-icon .layui-icon{font-size:12px;color:#666}.layui-tree-iconArrow{padding:0 5px}.layui-tree-iconArrow:after{content:'';position:absolute;left:4px;top:3px;z-index:100;width:0;height:0;border-width:5px;border-style:solid;border-color:transparent transparent transparent #c0c4cc;transition:.5s}.layui-tree-btnGroup,.layui-tree-editInput{position:relative;vertical-align:middle;display:inline-block}.layui-tree-spread>.layui-tree-entry>.layui-tree-iconClick>.layui-tree-iconArrow:after{transform:rotate(90deg) translate(3px,4px)}.layui-tree-txt{display:inline-block;vertical-align:middle;color:#555}.layui-tree-search{margin-bottom:15px;color:#666}.layui-tree-btnGroup .layui-icon{display:inline-block;vertical-align:middle;padding:0 2px;cursor:pointer}.layui-tree-btnGroup .layui-icon:hover{color:#999;transition:.3s}.layui-tree-entry:hover .layui-tree-btnGroup{visibility:visible}.layui-tree-editInput{height:20px;line-height:20px;padding:0 3px;border:none;background-color:rgba(0,0,0,.05)}.layui-tree-emptyText{text-align:center;color:#999}.layui-anim{-webkit-animation-duration:.3s;animation-duration:.3s;-webkit-animation-fill-mode:both;animation-fill-mode:both}.layui-anim.layui-icon{display:inline-block}.layui-anim-loop{-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite}.layui-trans,.layui-trans a{transition:all .3s;-webkit-transition:all .3s}@-webkit-keyframes layui-rotate{from{-webkit-transform:rotate(0)}to{-webkit-transform:rotate(360deg)}}@keyframes layui-rotate{from{transform:rotate(0)}to{transform:rotate(360deg)}}.layui-anim-rotate{-webkit-animation-name:layui-rotate;animation-name:layui-rotate;-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-timing-function:linear;animation-timing-function:linear}@-webkit-keyframes layui-up{from{-webkit-transform:translate3d(0,100%,0);opacity:.3}to{-webkit-transform:translate3d(0,0,0);opacity:1}}@keyframes layui-up{from{transform:translate3d(0,100%,0);opacity:.3}to{transform:translate3d(0,0,0);opacity:1}}.layui-anim-up{-webkit-animation-name:layui-up;animation-name:layui-up}@-webkit-keyframes layui-upbit{from{-webkit-transform:translate3d(0,30px,0);opacity:.3}to{-webkit-transform:translate3d(0,0,0);opacity:1}}@keyframes layui-upbit{from{transform:translate3d(0,30px,0);opacity:.3}to{transform:translate3d(0,0,0);opacity:1}}.layui-anim-upbit{-webkit-animation-name:layui-upbit;animation-name:layui-upbit}@-webkit-keyframes layui-scale{0%{opacity:.3;-webkit-transform:scale(.5)}100%{opacity:1;-webkit-transform:scale(1)}}@keyframes layui-scale{0%{opacity:.3;-ms-transform:scale(.5);transform:scale(.5)}100%{opacity:1;-ms-transform:scale(1);transform:scale(1)}}.layui-anim-scale{-webkit-animation-name:layui-scale;animation-name:layui-scale}@-webkit-keyframes layui-scale-spring{0%{opacity:.5;-webkit-transform:scale(.5)}80%{opacity:.8;-webkit-transform:scale(1.1)}100%{opacity:1;-webkit-transform:scale(1)}}@keyframes layui-scale-spring{0%{opacity:.5;transform:scale(.5)}80%{opacity:.8;transform:scale(1.1)}100%{opacity:1;transform:scale(1)}}.layui-anim-scaleSpring{-webkit-animation-name:layui-scale-spring;animation-name:layui-scale-spring}@-webkit-keyframes layui-fadein{0%{opacity:0}100%{opacity:1}}@keyframes layui-fadein{0%{opacity:0}100%{opacity:1}}.layui-anim-fadein{-webkit-animation-name:layui-fadein;animation-name:layui-fadein}@-webkit-keyframes layui-fadeout{0%{opacity:1}100%{opacity:0}}@keyframes layui-fadeout{0%{opacity:1}100%{opacity:0}}.layui-anim-fadeout{-webkit-animation-name:layui-fadeout;animation-name:layui-fadeout} \ No newline at end of file diff --git a/public/static/plug/layui/css/layui.mobile.css b/public/static/plug/layui/css/layui.mobile.css index 4a5da9cd..801ee24e 100755 --- a/public/static/plug/layui/css/layui.mobile.css +++ b/public/static/plug/layui/css/layui.mobile.css @@ -1,2 +1,2 @@ -/** layui-v2.4.3 MIT License By https://www.layui.com */ +/** layui-v2.5.4 MIT License By https://www.layui.com */ blockquote,body,button,dd,div,dl,dt,form,h1,h2,h3,h4,h5,h6,input,legend,li,ol,p,td,textarea,th,ul{margin:0;padding:0;-webkit-tap-highlight-color:rgba(0,0,0,0)}html{font:12px 'Helvetica Neue','PingFang SC',STHeitiSC-Light,Helvetica,Arial,sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}a,button,input{-webkit-tap-highlight-color:rgba(255,0,0,0)}a{text-decoration:none;background:0 0}a:active,a:hover{outline:0}table{border-collapse:collapse;border-spacing:0}li{list-style:none}b,strong{font-weight:700}h1,h2,h3,h4,h5,h6{font-weight:500}address,cite,dfn,em,var{font-style:normal}dfn{font-style:italic}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}img{border:0;vertical-align:bottom}.layui-inline,input,label{vertical-align:middle}button,input,optgroup,select,textarea{color:inherit;font:inherit;margin:0;outline:0}button,select{text-transform:none}select{-webkit-appearance:none;border:none}input{line-height:normal}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto}input[type=search]{-webkit-appearance:textfield;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}@font-face{font-family:layui-icon;src:url(../font/iconfont.eot?v=1.0.7);src:url(../font/iconfont.eot?v=1.0.7#iefix) format('embedded-opentype'),url(../font/iconfont.woff?v=1.0.7) format('woff'),url(../font/iconfont.ttf?v=1.0.7) format('truetype'),url(../font/iconfont.svg?v=1.0.7#iconfont) format('svg')}.layui-icon{font-family:layui-icon!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.layui-box,.layui-box *{-webkit-box-sizing:content-box!important;-moz-box-sizing:content-box!important;box-sizing:content-box!important}.layui-border-box,.layui-border-box *{-webkit-box-sizing:border-box!important;-moz-box-sizing:border-box!important;box-sizing:border-box!important}.layui-inline{position:relative;display:inline-block;*display:inline;*zoom:1}.layui-edge,.layui-upload-iframe{position:absolute;width:0;height:0}.layui-edge{border-style:dashed;border-color:transparent;overflow:hidden}.layui-elip{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.layui-unselect{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none}.layui-disabled,.layui-disabled:active{background-color:#d2d2d2!important;color:#fff!important;cursor:not-allowed!important}.layui-circle{border-radius:100%}.layui-show{display:block!important}.layui-hide{display:none!important}.layui-upload-iframe{border:0;visibility:hidden}.layui-upload-enter{border:1px solid #009E94;background-color:#009E94;color:#fff;-webkit-transform:scale(1.1);transform:scale(1.1)}@-webkit-keyframes layui-m-anim-scale{0%{opacity:0;-webkit-transform:scale(.5);transform:scale(.5)}100%{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}@keyframes layui-m-anim-scale{0%{opacity:0;-webkit-transform:scale(.5);transform:scale(.5)}100%{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}.layui-m-anim-scale{animation-name:layui-m-anim-scale;-webkit-animation-name:layui-m-anim-scale}@-webkit-keyframes layui-m-anim-up{0%{opacity:0;-webkit-transform:translateY(800px);transform:translateY(800px)}100%{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes layui-m-anim-up{0%{opacity:0;-webkit-transform:translateY(800px);transform:translateY(800px)}100%{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}}.layui-m-anim-up{-webkit-animation-name:layui-m-anim-up;animation-name:layui-m-anim-up}@-webkit-keyframes layui-m-anim-left{0%{-webkit-transform:translateX(100%);transform:translateX(100%)}100%{-webkit-transform:translateX(0);transform:translateX(0)}}@keyframes layui-m-anim-left{0%{-webkit-transform:translateX(100%);transform:translateX(100%)}100%{-webkit-transform:translateX(0);transform:translateX(0)}}.layui-m-anim-left{-webkit-animation-name:layui-m-anim-left;animation-name:layui-m-anim-left}@-webkit-keyframes layui-m-anim-right{0%{-webkit-transform:translateX(-100%);transform:translateX(-100%)}100%{-webkit-transform:translateX(0);transform:translateX(0)}}@keyframes layui-m-anim-right{0%{-webkit-transform:translateX(-100%);transform:translateX(-100%)}100%{-webkit-transform:translateX(0);transform:translateX(0)}}.layui-m-anim-right{-webkit-animation-name:layui-m-anim-right;animation-name:layui-m-anim-right}@-webkit-keyframes layui-m-anim-lout{0%{-webkit-transform:translateX(0);transform:translateX(0)}100%{-webkit-transform:translateX(-100%);transform:translateX(-100%)}}@keyframes layui-m-anim-lout{0%{-webkit-transform:translateX(0);transform:translateX(0)}100%{-webkit-transform:translateX(-100%);transform:translateX(-100%)}}.layui-m-anim-lout{-webkit-animation-name:layui-m-anim-lout;animation-name:layui-m-anim-lout}@-webkit-keyframes layui-m-anim-rout{0%{-webkit-transform:translateX(0);transform:translateX(0)}100%{-webkit-transform:translateX(100%);transform:translateX(100%)}}@keyframes layui-m-anim-rout{0%{-webkit-transform:translateX(0);transform:translateX(0)}100%{-webkit-transform:translateX(100%);transform:translateX(100%)}}.layui-m-anim-rout{-webkit-animation-name:layui-m-anim-rout;animation-name:layui-m-anim-rout}.layui-m-layer{position:relative;z-index:19891014}.layui-m-layer *{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}.layui-m-layermain,.layui-m-layershade{position:fixed;left:0;top:0;width:100%;height:100%}.layui-m-layershade{background-color:rgba(0,0,0,.7);pointer-events:auto}.layui-m-layermain{display:table;font-family:Helvetica,arial,sans-serif;pointer-events:none}.layui-m-layermain .layui-m-layersection{display:table-cell;vertical-align:middle;text-align:center}.layui-m-layerchild{position:relative;display:inline-block;text-align:left;background-color:#fff;font-size:14px;border-radius:5px;box-shadow:0 0 8px rgba(0,0,0,.1);pointer-events:auto;-webkit-overflow-scrolling:touch;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:.2s;animation-duration:.2s}.layui-m-layer0 .layui-m-layerchild{width:90%;max-width:640px}.layui-m-layer1 .layui-m-layerchild{border:none;border-radius:0}.layui-m-layer2 .layui-m-layerchild{width:auto;max-width:260px;min-width:40px;border:none;background:0 0;box-shadow:none;color:#fff}.layui-m-layerchild h3{padding:0 10px;height:60px;line-height:60px;font-size:16px;font-weight:400;border-radius:5px 5px 0 0;text-align:center}.layui-m-layerbtn span,.layui-m-layerchild h3{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.layui-m-layercont{padding:50px 30px;line-height:22px;text-align:center}.layui-m-layer1 .layui-m-layercont{padding:0;text-align:left}.layui-m-layer2 .layui-m-layercont{text-align:center;padding:0;line-height:0}.layui-m-layer2 .layui-m-layercont i{width:25px;height:25px;margin-left:8px;display:inline-block;background-color:#fff;border-radius:100%;-webkit-animation:layui-m-anim-loading 1.4s infinite ease-in-out;animation:layui-m-anim-loading 1.4s infinite ease-in-out;-webkit-animation-fill-mode:both;animation-fill-mode:both}.layui-m-layerbtn,.layui-m-layerbtn span{position:relative;text-align:center;border-radius:0 0 5px 5px}.layui-m-layer2 .layui-m-layercont p{margin-top:20px}@-webkit-keyframes layui-m-anim-loading{0%,100%,80%{transform:scale(0);-webkit-transform:scale(0)}40%{transform:scale(1);-webkit-transform:scale(1)}}@keyframes layui-m-anim-loading{0%,100%,80%{transform:scale(0);-webkit-transform:scale(0)}40%{transform:scale(1);-webkit-transform:scale(1)}}.layui-m-layer2 .layui-m-layercont i:first-child{margin-left:0;-webkit-animation-delay:-.32s;animation-delay:-.32s}.layui-m-layer2 .layui-m-layercont i.layui-m-layerload{-webkit-animation-delay:-.16s;animation-delay:-.16s}.layui-m-layer2 .layui-m-layercont>div{line-height:22px;padding-top:7px;margin-bottom:20px;font-size:14px}.layui-m-layerbtn{display:box;display:-moz-box;display:-webkit-box;width:100%;height:50px;line-height:50px;font-size:0;border-top:1px solid #D0D0D0;background-color:#F2F2F2}.layui-m-layerbtn span{display:block;-moz-box-flex:1;box-flex:1;-webkit-box-flex:1;font-size:14px;cursor:pointer}.layui-m-layerbtn span[yes]{color:#40AFFE}.layui-m-layerbtn span[no]{border-right:1px solid #D0D0D0;border-radius:0 0 0 5px}.layui-m-layerbtn span:active{background-color:#F6F6F6}.layui-m-layerend{position:absolute;right:7px;top:10px;width:30px;height:30px;border:0;font-weight:400;background:0 0;cursor:pointer;-webkit-appearance:none;font-size:30px}.layui-m-layerend::after,.layui-m-layerend::before{position:absolute;left:5px;top:15px;content:'';width:18px;height:1px;background-color:#999;transform:rotate(45deg);-webkit-transform:rotate(45deg);border-radius:3px}.layui-m-layerend::after{transform:rotate(-45deg);-webkit-transform:rotate(-45deg)}body .layui-m-layer .layui-m-layer-footer{position:fixed;width:95%;max-width:100%;margin:0 auto;left:0;right:0;bottom:10px;background:0 0}.layui-m-layer-footer .layui-m-layercont{padding:20px;border-radius:5px 5px 0 0;background-color:rgba(255,255,255,.8)}.layui-m-layer-footer .layui-m-layerbtn{display:block;height:auto;background:0 0;border-top:none}.layui-m-layer-footer .layui-m-layerbtn span{background-color:rgba(255,255,255,.8)}.layui-m-layer-footer .layui-m-layerbtn span[no]{color:#FD482C;border-top:1px solid #c2c2c2;border-radius:0 0 5px 5px}.layui-m-layer-footer .layui-m-layerbtn span[yes]{margin-top:10px;border-radius:5px}body .layui-m-layer .layui-m-layer-msg{width:auto;max-width:90%;margin:0 auto;bottom:-150px;background-color:rgba(0,0,0,.7);color:#fff}.layui-m-layer-msg .layui-m-layercont{padding:10px 20px} \ No newline at end of file diff --git a/public/static/plug/layui/css/modules/code.css b/public/static/plug/layui/css/modules/code.css index 126bebe2..f36a04f4 100755 --- a/public/static/plug/layui/css/modules/code.css +++ b/public/static/plug/layui/css/modules/code.css @@ -1,2 +1,2 @@ -/** layui-v2.4.3 MIT License By https://www.layui.com */ +/** layui-v2.5.4 MIT License By https://www.layui.com */ html #layuicss-skincodecss{display:none;position:absolute;width:1989px}.layui-code-h3,.layui-code-view{position:relative;font-size:12px}.layui-code-view{display:block;margin:10px 0;padding:0;border:1px solid #e2e2e2;border-left-width:6px;background-color:#F2F2F2;color:#333;font-family:Courier New}.layui-code-h3{padding:0 10px;height:32px;line-height:32px;border-bottom:1px solid #e2e2e2}.layui-code-h3 a{position:absolute;right:10px;top:0;color:#999}.layui-code-view .layui-code-ol{position:relative;overflow:auto}.layui-code-view .layui-code-ol li{position:relative;margin-left:45px;line-height:20px;padding:0 5px;border-left:1px solid #e2e2e2;list-style-type:decimal-leading-zero;*list-style-type:decimal;background-color:#fff}.layui-code-view pre{margin:0}.layui-code-notepad{border:1px solid #0C0C0C;border-left-color:#3F3F3F;background-color:#0C0C0C;color:#C2BE9E}.layui-code-notepad .layui-code-h3{border-bottom:none}.layui-code-notepad .layui-code-ol li{background-color:#3F3F3F;border-left:none} \ No newline at end of file diff --git a/public/static/plug/layui/css/modules/laydate/default/laydate.css b/public/static/plug/layui/css/modules/laydate/default/laydate.css index 78ec5395..c08d10ad 100755 --- a/public/static/plug/layui/css/modules/laydate/default/laydate.css +++ b/public/static/plug/layui/css/modules/laydate/default/laydate.css @@ -1,2 +1,2 @@ -/** layui-v2.4.3 MIT License By https://www.layui.com */ +/** layui-v2.5.4 MIT License By https://www.layui.com */ .laydate-set-ym,.layui-laydate,.layui-laydate *,.layui-laydate-list{box-sizing:border-box}html #layuicss-laydate{display:none;position:absolute;width:1989px}.layui-laydate *{margin:0;padding:0}.layui-laydate{position:absolute;z-index:66666666;margin:5px 0;border-radius:2px;font-size:14px;-webkit-animation-duration:.3s;animation-duration:.3s;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-name:laydate-upbit;animation-name:laydate-upbit}.layui-laydate-main{width:272px}.layui-laydate-content td,.layui-laydate-header *,.layui-laydate-list li{transition-duration:.3s;-webkit-transition-duration:.3s}@-webkit-keyframes laydate-upbit{from{-webkit-transform:translate3d(0,20px,0);opacity:.3}to{-webkit-transform:translate3d(0,0,0);opacity:1}}@keyframes laydate-upbit{from{transform:translate3d(0,20px,0);opacity:.3}to{transform:translate3d(0,0,0);opacity:1}}.layui-laydate-static{position:relative;z-index:0;display:inline-block;margin:0;-webkit-animation:none;animation:none}.laydate-ym-show .laydate-next-m,.laydate-ym-show .laydate-prev-m{display:none!important}.laydate-ym-show .laydate-next-y,.laydate-ym-show .laydate-prev-y{display:inline-block!important}.laydate-time-show .laydate-set-ym span[lay-type=month],.laydate-time-show .laydate-set-ym span[lay-type=year],.laydate-time-show .layui-laydate-header .layui-icon,.laydate-ym-show .laydate-set-ym span[lay-type=month]{display:none!important}.layui-laydate-header{position:relative;line-height:30px;padding:10px 70px 5px}.laydate-set-ym span,.layui-laydate-header i{padding:0 5px;cursor:pointer}.layui-laydate-header *{display:inline-block;vertical-align:bottom}.layui-laydate-header i{position:absolute;top:10px;color:#999;font-size:18px}.layui-laydate-header i.laydate-prev-y{left:15px}.layui-laydate-header i.laydate-prev-m{left:45px}.layui-laydate-header i.laydate-next-y{right:15px}.layui-laydate-header i.laydate-next-m{right:45px}.laydate-set-ym{width:100%;text-align:center;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.laydate-time-text{cursor:default!important}.layui-laydate-content{position:relative;padding:10px;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none}.layui-laydate-content table{border-collapse:collapse;border-spacing:0}.layui-laydate-content td,.layui-laydate-content th{width:36px;height:30px;padding:5px;text-align:center}.layui-laydate-content td{position:relative;cursor:pointer}.laydate-day-mark{position:absolute;left:0;top:0;width:100%;height:100%;line-height:30px;font-size:12px;overflow:hidden}.laydate-day-mark::after{position:absolute;content:'';right:2px;top:2px;width:5px;height:5px;border-radius:50%}.layui-laydate-footer{position:relative;height:46px;line-height:26px;padding:10px 20px}.layui-laydate-footer span{margin-right:15px;display:inline-block;cursor:pointer;font-size:12px}.layui-laydate-footer span:hover{color:#5FB878}.laydate-footer-btns{position:absolute;right:10px;top:10px}.laydate-footer-btns span{height:26px;line-height:26px;margin:0 0 0 -1px;padding:0 10px;border:1px solid #C9C9C9;background-color:#fff;white-space:nowrap;vertical-align:top;border-radius:2px}.layui-laydate-list>li,.layui-laydate-range .layui-laydate-main{display:inline-block;vertical-align:middle}.layui-laydate-list{position:absolute;left:0;top:0;width:100%;height:100%;padding:10px;background-color:#fff}.layui-laydate-list>li{position:relative;width:33.3%;height:36px;line-height:36px;margin:3px 0;text-align:center;cursor:pointer}.laydate-month-list>li{width:25%;margin:17px 0}.laydate-time-list>li{height:100%;margin:0;line-height:normal;cursor:default}.laydate-time-list p{position:relative;top:-4px;line-height:29px}.laydate-time-list ol{height:181px;overflow:hidden}.laydate-time-list>li:hover ol{overflow-y:auto}.laydate-time-list ol li{width:130%;padding-left:33px;line-height:30px;text-align:left;cursor:pointer}.layui-laydate-hint{position:absolute;top:115px;left:50%;width:250px;margin-left:-125px;line-height:20px;padding:15px;text-align:center;font-size:12px}.layui-laydate-range{width:546px}.layui-laydate-range .laydate-main-list-0 .laydate-next-m,.layui-laydate-range .laydate-main-list-0 .laydate-next-y,.layui-laydate-range .laydate-main-list-1 .laydate-prev-m,.layui-laydate-range .laydate-main-list-1 .laydate-prev-y{display:none}.layui-laydate-range .laydate-main-list-1 .layui-laydate-content{border-left:1px solid #e2e2e2}.layui-laydate,.layui-laydate-hint{border:1px solid #d2d2d2;box-shadow:0 2px 4px rgba(0,0,0,.12);background-color:#fff;color:#666}.layui-laydate-header{border-bottom:1px solid #e2e2e2}.layui-laydate-header i:hover,.layui-laydate-header span:hover{color:#5FB878}.layui-laydate-content{border-top:none 0;border-bottom:none 0}.layui-laydate-content th{font-weight:400;color:#333}.layui-laydate-content td{color:#666}.layui-laydate-content td.laydate-selected{background-color:#00F7DE}.laydate-selected:hover{background-color:#00F7DE!important}.layui-laydate-content td:hover,.layui-laydate-list li:hover{background-color:#eaeaea;color:#333}.laydate-time-list li ol{margin:0;padding:0;border:1px solid #e2e2e2;border-left-width:0}.laydate-time-list li:first-child ol{border-left-width:1px}.laydate-time-list>li:hover{background:0 0}.layui-laydate-content .laydate-day-next,.layui-laydate-content .laydate-day-prev{color:#d2d2d2}.laydate-selected.laydate-day-next,.laydate-selected.laydate-day-prev{background-color:#f8f8f8!important}.layui-laydate-footer{border-top:1px solid #e2e2e2}.layui-laydate-hint{color:#FF5722}.laydate-day-mark::after{background-color:#5FB878}.layui-laydate-content td.layui-this .laydate-day-mark::after{display:none}.layui-laydate-footer span[lay-type=date]{color:#5FB878}.layui-laydate .layui-this{background-color:#009688!important;color:#fff!important}.layui-laydate .laydate-disabled,.layui-laydate .laydate-disabled:hover{background:0 0!important;color:#d2d2d2!important;cursor:not-allowed!important;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none}.laydate-theme-molv{border:none}.laydate-theme-molv.layui-laydate-range{width:548px}.laydate-theme-molv .layui-laydate-main{width:274px}.laydate-theme-molv .layui-laydate-header{border:none;background-color:#009688}.laydate-theme-molv .layui-laydate-header i,.laydate-theme-molv .layui-laydate-header span{color:#f6f6f6}.laydate-theme-molv .layui-laydate-header i:hover,.laydate-theme-molv .layui-laydate-header span:hover{color:#fff}.laydate-theme-molv .layui-laydate-content{border:1px solid #e2e2e2;border-top:none;border-bottom:none}.laydate-theme-molv .laydate-main-list-1 .layui-laydate-content{border-left:none}.laydate-theme-grid .laydate-month-list>li,.laydate-theme-grid .laydate-year-list>li,.laydate-theme-grid .layui-laydate-content td,.laydate-theme-grid .layui-laydate-content thead,.laydate-theme-molv .layui-laydate-footer{border:1px solid #e2e2e2}.laydate-theme-grid .laydate-selected,.laydate-theme-grid .laydate-selected:hover{background-color:#f2f2f2!important;color:#009688!important}.laydate-theme-grid .laydate-selected.laydate-day-next,.laydate-theme-grid .laydate-selected.laydate-day-prev{color:#d2d2d2!important}.laydate-theme-grid .laydate-month-list,.laydate-theme-grid .laydate-year-list{margin:1px 0 0 1px}.laydate-theme-grid .laydate-month-list>li,.laydate-theme-grid .laydate-year-list>li{margin:0 -1px -1px 0}.laydate-theme-grid .laydate-year-list>li{height:43px;line-height:43px}.laydate-theme-grid .laydate-month-list>li{height:71px;line-height:71px} \ No newline at end of file diff --git a/public/static/plug/layui/css/modules/layer/default/layer.css b/public/static/plug/layui/css/modules/layer/default/layer.css index dc51687f..d323d278 100755 --- a/public/static/plug/layui/css/modules/layer/default/layer.css +++ b/public/static/plug/layui/css/modules/layer/default/layer.css @@ -1,2 +1,2 @@ -/** layui-v2.4.3 MIT License By https://www.layui.com */ +/** layui-v2.5.4 MIT License By https://www.layui.com */ .layui-layer-imgbar,.layui-layer-imgtit a,.layui-layer-tab .layui-layer-title span,.layui-layer-title{text-overflow:ellipsis;white-space:nowrap}html #layuicss-layer{display:none;position:absolute;width:1989px}.layui-layer,.layui-layer-shade{position:fixed;_position:absolute;pointer-events:auto}.layui-layer-shade{top:0;left:0;width:100%;height:100%;_height:expression(document.body.offsetHeight+"px")}.layui-layer{-webkit-overflow-scrolling:touch;top:150px;left:0;margin:0;padding:0;background-color:#fff;-webkit-background-clip:content;border-radius:2px;box-shadow:1px 1px 50px rgba(0,0,0,.3)}.layui-layer-close{position:absolute}.layui-layer-content{position:relative}.layui-layer-border{border:1px solid #B2B2B2;border:1px solid rgba(0,0,0,.1);box-shadow:1px 1px 5px rgba(0,0,0,.2)}.layui-layer-load{background:url(loading-1.gif) center center no-repeat #eee}.layui-layer-ico{background:url(icon.png) no-repeat}.layui-layer-btn a,.layui-layer-dialog .layui-layer-ico,.layui-layer-setwin a{display:inline-block;*display:inline;*zoom:1;vertical-align:top}.layui-layer-move{display:none;position:fixed;*position:absolute;left:0;top:0;width:100%;height:100%;cursor:move;opacity:0;filter:alpha(opacity=0);background-color:#fff;z-index:2147483647}.layui-layer-resize{position:absolute;width:15px;height:15px;right:0;bottom:0;cursor:se-resize}.layer-anim{-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:.3s;animation-duration:.3s}@-webkit-keyframes layer-bounceIn{0%{opacity:0;-webkit-transform:scale(.5);transform:scale(.5)}100%{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}@keyframes layer-bounceIn{0%{opacity:0;-webkit-transform:scale(.5);-ms-transform:scale(.5);transform:scale(.5)}100%{opacity:1;-webkit-transform:scale(1);-ms-transform:scale(1);transform:scale(1)}}.layer-anim-00{-webkit-animation-name:layer-bounceIn;animation-name:layer-bounceIn}@-webkit-keyframes layer-zoomInDown{0%{opacity:0;-webkit-transform:scale(.1) translateY(-2000px);transform:scale(.1) translateY(-2000px);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}60%{opacity:1;-webkit-transform:scale(.475) translateY(60px);transform:scale(.475) translateY(60px);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}}@keyframes layer-zoomInDown{0%{opacity:0;-webkit-transform:scale(.1) translateY(-2000px);-ms-transform:scale(.1) translateY(-2000px);transform:scale(.1) translateY(-2000px);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}60%{opacity:1;-webkit-transform:scale(.475) translateY(60px);-ms-transform:scale(.475) translateY(60px);transform:scale(.475) translateY(60px);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}}.layer-anim-01{-webkit-animation-name:layer-zoomInDown;animation-name:layer-zoomInDown}@-webkit-keyframes layer-fadeInUpBig{0%{opacity:0;-webkit-transform:translateY(2000px);transform:translateY(2000px)}100%{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes layer-fadeInUpBig{0%{opacity:0;-webkit-transform:translateY(2000px);-ms-transform:translateY(2000px);transform:translateY(2000px)}100%{opacity:1;-webkit-transform:translateY(0);-ms-transform:translateY(0);transform:translateY(0)}}.layer-anim-02{-webkit-animation-name:layer-fadeInUpBig;animation-name:layer-fadeInUpBig}@-webkit-keyframes layer-zoomInLeft{0%{opacity:0;-webkit-transform:scale(.1) translateX(-2000px);transform:scale(.1) translateX(-2000px);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}60%{opacity:1;-webkit-transform:scale(.475) translateX(48px);transform:scale(.475) translateX(48px);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}}@keyframes layer-zoomInLeft{0%{opacity:0;-webkit-transform:scale(.1) translateX(-2000px);-ms-transform:scale(.1) translateX(-2000px);transform:scale(.1) translateX(-2000px);-webkit-animation-timing-function:ease-in-out;animation-timing-function:ease-in-out}60%{opacity:1;-webkit-transform:scale(.475) translateX(48px);-ms-transform:scale(.475) translateX(48px);transform:scale(.475) translateX(48px);-webkit-animation-timing-function:ease-out;animation-timing-function:ease-out}}.layer-anim-03{-webkit-animation-name:layer-zoomInLeft;animation-name:layer-zoomInLeft}@-webkit-keyframes layer-rollIn{0%{opacity:0;-webkit-transform:translateX(-100%) rotate(-120deg);transform:translateX(-100%) rotate(-120deg)}100%{opacity:1;-webkit-transform:translateX(0) rotate(0);transform:translateX(0) rotate(0)}}@keyframes layer-rollIn{0%{opacity:0;-webkit-transform:translateX(-100%) rotate(-120deg);-ms-transform:translateX(-100%) rotate(-120deg);transform:translateX(-100%) rotate(-120deg)}100%{opacity:1;-webkit-transform:translateX(0) rotate(0);-ms-transform:translateX(0) rotate(0);transform:translateX(0) rotate(0)}}.layer-anim-04{-webkit-animation-name:layer-rollIn;animation-name:layer-rollIn}@keyframes layer-fadeIn{0%{opacity:0}100%{opacity:1}}.layer-anim-05{-webkit-animation-name:layer-fadeIn;animation-name:layer-fadeIn}@-webkit-keyframes layer-shake{0%,100%{-webkit-transform:translateX(0);transform:translateX(0)}10%,30%,50%,70%,90%{-webkit-transform:translateX(-10px);transform:translateX(-10px)}20%,40%,60%,80%{-webkit-transform:translateX(10px);transform:translateX(10px)}}@keyframes layer-shake{0%,100%{-webkit-transform:translateX(0);-ms-transform:translateX(0);transform:translateX(0)}10%,30%,50%,70%,90%{-webkit-transform:translateX(-10px);-ms-transform:translateX(-10px);transform:translateX(-10px)}20%,40%,60%,80%{-webkit-transform:translateX(10px);-ms-transform:translateX(10px);transform:translateX(10px)}}.layer-anim-06{-webkit-animation-name:layer-shake;animation-name:layer-shake}@-webkit-keyframes fadeIn{0%{opacity:0}100%{opacity:1}}.layui-layer-title{padding:0 80px 0 20px;height:42px;line-height:42px;border-bottom:1px solid #eee;font-size:14px;color:#333;overflow:hidden;background-color:#F8F8F8;border-radius:2px 2px 0 0}.layui-layer-setwin{position:absolute;right:15px;*right:0;top:15px;font-size:0;line-height:initial}.layui-layer-setwin a{position:relative;width:16px;height:16px;margin-left:10px;font-size:12px;_overflow:hidden}.layui-layer-setwin .layui-layer-min cite{position:absolute;width:14px;height:2px;left:0;top:50%;margin-top:-1px;background-color:#2E2D3C;cursor:pointer;_overflow:hidden}.layui-layer-setwin .layui-layer-min:hover cite{background-color:#2D93CA}.layui-layer-setwin .layui-layer-max{background-position:-32px -40px}.layui-layer-setwin .layui-layer-max:hover{background-position:-16px -40px}.layui-layer-setwin .layui-layer-maxmin{background-position:-65px -40px}.layui-layer-setwin .layui-layer-maxmin:hover{background-position:-49px -40px}.layui-layer-setwin .layui-layer-close1{background-position:1px -40px;cursor:pointer}.layui-layer-setwin .layui-layer-close1:hover{opacity:.7}.layui-layer-setwin .layui-layer-close2{position:absolute;right:-28px;top:-28px;width:30px;height:30px;margin-left:0;background-position:-149px -31px;*right:-18px;_display:none}.layui-layer-setwin .layui-layer-close2:hover{background-position:-180px -31px}.layui-layer-btn{text-align:right;padding:0 15px 12px;pointer-events:auto;user-select:none;-webkit-user-select:none}.layui-layer-btn a{height:28px;line-height:28px;margin:5px 5px 0;padding:0 15px;border:1px solid #dedede;background-color:#fff;color:#333;border-radius:2px;font-weight:400;cursor:pointer;text-decoration:none}.layui-layer-btn a:hover{opacity:.9;text-decoration:none}.layui-layer-btn a:active{opacity:.8}.layui-layer-btn .layui-layer-btn0{border-color:#1E9FFF;background-color:#1E9FFF;color:#fff}.layui-layer-btn-l{text-align:left}.layui-layer-btn-c{text-align:center}.layui-layer-dialog{min-width:260px}.layui-layer-dialog .layui-layer-content{position:relative;padding:20px;line-height:24px;word-break:break-all;overflow:hidden;font-size:14px;overflow-x:hidden;overflow-y:auto}.layui-layer-dialog .layui-layer-content .layui-layer-ico{position:absolute;top:16px;left:15px;_left:-40px;width:30px;height:30px}.layui-layer-ico1{background-position:-30px 0}.layui-layer-ico2{background-position:-60px 0}.layui-layer-ico3{background-position:-90px 0}.layui-layer-ico4{background-position:-120px 0}.layui-layer-ico5{background-position:-150px 0}.layui-layer-ico6{background-position:-180px 0}.layui-layer-rim{border:6px solid #8D8D8D;border:6px solid rgba(0,0,0,.3);border-radius:5px;box-shadow:none}.layui-layer-msg{min-width:180px;border:1px solid #D3D4D3;box-shadow:none}.layui-layer-hui{min-width:100px;background-color:#000;filter:alpha(opacity=60);background-color:rgba(0,0,0,.6);color:#fff;border:none}.layui-layer-hui .layui-layer-content{padding:12px 25px;text-align:center}.layui-layer-dialog .layui-layer-padding{padding:20px 20px 20px 55px;text-align:left}.layui-layer-page .layui-layer-content{position:relative;overflow:auto}.layui-layer-iframe .layui-layer-btn,.layui-layer-page .layui-layer-btn{padding-top:10px}.layui-layer-nobg{background:0 0}.layui-layer-iframe iframe{display:block;width:100%}.layui-layer-loading{border-radius:100%;background:0 0;box-shadow:none;border:none}.layui-layer-loading .layui-layer-content{width:60px;height:24px;background:url(loading-0.gif) no-repeat}.layui-layer-loading .layui-layer-loading1{width:37px;height:37px;background:url(loading-1.gif) no-repeat}.layui-layer-ico16,.layui-layer-loading .layui-layer-loading2{width:32px;height:32px;background:url(loading-2.gif) no-repeat}.layui-layer-tips{background:0 0;box-shadow:none;border:none}.layui-layer-tips .layui-layer-content{position:relative;line-height:22px;min-width:12px;padding:8px 15px;font-size:12px;_float:left;border-radius:2px;box-shadow:1px 1px 3px rgba(0,0,0,.2);background-color:#000;color:#fff}.layui-layer-tips .layui-layer-close{right:-2px;top:-1px}.layui-layer-tips i.layui-layer-TipsG{position:absolute;width:0;height:0;border-width:8px;border-color:transparent;border-style:dashed;*overflow:hidden}.layui-layer-tips i.layui-layer-TipsB,.layui-layer-tips i.layui-layer-TipsT{left:5px;border-right-style:solid;border-right-color:#000}.layui-layer-tips i.layui-layer-TipsT{bottom:-8px}.layui-layer-tips i.layui-layer-TipsB{top:-8px}.layui-layer-tips i.layui-layer-TipsL,.layui-layer-tips i.layui-layer-TipsR{top:5px;border-bottom-style:solid;border-bottom-color:#000}.layui-layer-tips i.layui-layer-TipsR{left:-8px}.layui-layer-tips i.layui-layer-TipsL{right:-8px}.layui-layer-lan[type=dialog]{min-width:280px}.layui-layer-lan .layui-layer-title{background:#4476A7;color:#fff;border:none}.layui-layer-lan .layui-layer-btn{padding:5px 10px 10px;text-align:right;border-top:1px solid #E9E7E7}.layui-layer-lan .layui-layer-btn a{background:#fff;border-color:#E9E7E7;color:#333}.layui-layer-lan .layui-layer-btn .layui-layer-btn1{background:#C9C5C5}.layui-layer-molv .layui-layer-title{background:#009f95;color:#fff;border:none}.layui-layer-molv .layui-layer-btn a{background:#009f95;border-color:#009f95}.layui-layer-molv .layui-layer-btn .layui-layer-btn1{background:#92B8B1}.layui-layer-iconext{background:url(icon-ext.png) no-repeat}.layui-layer-prompt .layui-layer-input{display:block;width:230px;height:36px;margin:0 auto;line-height:30px;padding-left:10px;border:1px solid #e6e6e6;color:#333}.layui-layer-prompt textarea.layui-layer-input{width:300px;height:100px;line-height:20px;padding:6px 10px}.layui-layer-prompt .layui-layer-content{padding:20px}.layui-layer-prompt .layui-layer-btn{padding-top:0}.layui-layer-tab{box-shadow:1px 1px 50px rgba(0,0,0,.4)}.layui-layer-tab .layui-layer-title{padding-left:0;overflow:visible}.layui-layer-tab .layui-layer-title span{position:relative;float:left;min-width:80px;max-width:260px;padding:0 20px;text-align:center;overflow:hidden;cursor:pointer}.layui-layer-tab .layui-layer-title span.layui-this{height:43px;border-left:1px solid #eee;border-right:1px solid #eee;background-color:#fff;z-index:10}.layui-layer-tab .layui-layer-title span:first-child{border-left:none}.layui-layer-tabmain{line-height:24px;clear:both}.layui-layer-tabmain .layui-layer-tabli{display:none}.layui-layer-tabmain .layui-layer-tabli.layui-this{display:block}.layui-layer-photos{-webkit-animation-duration:.8s;animation-duration:.8s}.layui-layer-photos .layui-layer-content{overflow:hidden;text-align:center}.layui-layer-photos .layui-layer-phimg img{position:relative;width:100%;display:inline-block;*display:inline;*zoom:1;vertical-align:top}.layui-layer-imgbar,.layui-layer-imguide{display:none}.layui-layer-imgnext,.layui-layer-imgprev{position:absolute;top:50%;width:27px;_width:44px;height:44px;margin-top:-22px;outline:0;blr:expression(this.onFocus=this.blur())}.layui-layer-imgprev{left:10px;background-position:-5px -5px;_background-position:-70px -5px}.layui-layer-imgprev:hover{background-position:-33px -5px;_background-position:-120px -5px}.layui-layer-imgnext{right:10px;_right:8px;background-position:-5px -50px;_background-position:-70px -50px}.layui-layer-imgnext:hover{background-position:-33px -50px;_background-position:-120px -50px}.layui-layer-imgbar{position:absolute;left:0;bottom:0;width:100%;height:32px;line-height:32px;background-color:rgba(0,0,0,.8);background-color:#000\9;filter:Alpha(opacity=80);color:#fff;overflow:hidden;font-size:0}.layui-layer-imgtit *{display:inline-block;*display:inline;*zoom:1;vertical-align:top;font-size:12px}.layui-layer-imgtit a{max-width:65%;overflow:hidden;color:#fff}.layui-layer-imgtit a:hover{color:#fff;text-decoration:underline}.layui-layer-imgtit em{padding-left:10px;font-style:normal}@-webkit-keyframes layer-bounceOut{100%{opacity:0;-webkit-transform:scale(.7);transform:scale(.7)}30%{-webkit-transform:scale(1.05);transform:scale(1.05)}0%{-webkit-transform:scale(1);transform:scale(1)}}@keyframes layer-bounceOut{100%{opacity:0;-webkit-transform:scale(.7);-ms-transform:scale(.7);transform:scale(.7)}30%{-webkit-transform:scale(1.05);-ms-transform:scale(1.05);transform:scale(1.05)}0%{-webkit-transform:scale(1);-ms-transform:scale(1);transform:scale(1)}}.layer-anim-close{-webkit-animation-name:layer-bounceOut;animation-name:layer-bounceOut;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:.2s;animation-duration:.2s}@media screen and (max-width:1100px){.layui-layer-iframe{overflow-y:auto;-webkit-overflow-scrolling:touch}} \ No newline at end of file diff --git a/public/static/plug/layui/font/iconfont.eot b/public/static/plug/layui/font/iconfont.eot index 93b3d5ab..f30753f2 100755 Binary files a/public/static/plug/layui/font/iconfont.eot and b/public/static/plug/layui/font/iconfont.eot differ diff --git a/public/static/plug/layui/font/iconfont.svg b/public/static/plug/layui/font/iconfont.svg index 1c7ffe97..f407df75 100755 --- a/public/static/plug/layui/font/iconfont.svg +++ b/public/static/plug/layui/font/iconfont.svg @@ -344,6 +344,9 @@ Created by iconfont <glyph glyph-name="rmb" unicode="" d="M511.998465 896C229.23338 896 0.004605 666.769178 0.004605 384.001023c0-282.773272 229.227752-512.001023 511.99386-512.001023 282.769178 0 511.994883 229.227752 511.994883 512.001023C1023.994372 666.769178 794.767644 896 511.998465 896zM511.998465-91.59690499999999c-262.660188 0-475.589742 212.930577-475.589742 475.597929 0 262.663258 212.929554 475.594859 475.589742 475.594859 262.663258 0 475.590765-212.9316 475.590765-475.594859C987.590254 121.33469500000001 774.662747-91.59690499999999 511.998465-91.59690499999999zM738.742652 301.137781L544.432155 301.137781l0 69.780273 194.310497 0c17.835204 0 32.249495 14.43885 32.249495 32.220842 0 17.784038-14.414291 32.19526-32.249495 32.19526L589.7462 435.334155l149.620669 209.579249c8.916067 15.397688 3.63069 35.099403-11.82021 43.988864-15.398712 8.891508-35.097356 3.629667-44.017516-11.793604L512.187777 437.098335 340.84334 677.108664c-8.864902 15.423271-28.617781 20.685111-44.016493 11.793604-15.395642-8.889461-20.685111-28.590152-11.82021-43.988864l149.622716-209.579249L285.628808 435.334155c-17.781992 0-32.245402-14.411221-32.245402-32.19526 0-17.781992 14.46341-32.220842 32.245402-32.220842l194.310497 0 0-69.780273L285.628808 301.137781c-17.781992 0-32.245402-14.413268-32.245402-32.19526s14.46341-32.220842 32.245402-32.220842l194.310497 0 0-132.435265c0-17.780969 14.46341-32.19526 32.248472-32.19526 17.835204 0 32.245402 14.414291 32.245402 32.19526L544.433178 236.72065499999997l194.310497 0c17.835204 0 32.249495 14.43885 32.249495 32.220842S756.577856 301.137781 738.742652 301.137781" horiz-adv-x="1024" /> + <glyph glyph-name="addition" unicode="" d="M544 768L480 768 480 416 128 416 128 352 480 352 480 0 544 0 544 352 895.936 352 895.936 416 544 416Z" horiz-adv-x="1024" /> + + <glyph glyph-name="home" unicode="" d="M824.084343-40.42033900000001H232.898863c-74.604138 0-85.85232 28.334325-85.852321 49.997718l-0.584307 5.314029V447.645552h48.806589v-402.916582c0-25.547863 13.548574-36.343743 37.629015-36.343743h568.020898c25.928532 0 27.978215 6.220678 27.978215 37.84391V447.585177l48.806589 0.118704c0.022513-14.346753 0-382.76666 0-433.098999 0-38.130436-12.726859-54.765301-51.858088-54.765301l-1.76111-0.25992zM1012.470921 493.103884C849.773422 615.120868 687.101505 737.137853 524.404006 859.153814c-6.207375 4.659113-18.433838 4.659113-24.641213 0C337.077573 737.137853 174.393377 615.120868 11.696902 493.103884c-24.856108-18.635429-0.572028-61.044308 24.642236-42.13361A15995638.709915 15995638.709915 0 0 1 512.025071 807.737794c0.988514-0.715291 1.644453-1.144056 2.823302-2.037403 18.040888-13.524015 36.057217-27.036773 54.073546-40.560788 58.291614-43.718711 116.583229-87.437421 174.874843-131.143852 81.33647-61.008492 162.696476-122.015961 244.033969-183.024454 25.212218-18.911722 49.496298 23.497157 24.64019 42.132587z" horiz-adv-x="1024" /> @@ -374,6 +377,9 @@ Created by iconfont <glyph glyph-name="template" unicode="" d="M734 172.89999999999998v82.8h-59.9v-37l-35.7-9.7 15.7-57.8zM674.1 419.3H734v-81.8h-59.9zM734 600.2l-95.6-26 15.7-57.8 20 5.4v-20.7H734zM866.1 131.29999999999995v-37l-35.7-9.7 7.9-28.9 7.8-28.9 79.9 21.7v82.8h-29.9zM740.9 60.299999999999955L651.4 36l7.9-28.9 7.8-29 89.5 24.4-7.8 28.9zM740.9 781.7l-89.5-24.3 7.9-28.9 7.8-28.9 89.5 24.3-7.8 28.9zM830.4 806l7.9-28.9 7.8-28.9 20 5.5v-20.8H926V832zM866.1 612.6v-120.3H926V612.6h-29.9zM866.1 371.9v-120.3H926V371.9h-29.9zM541.9 665.6l35.7 9.7-7.8 28.9-7.8 28.9-50-13.6L98 832v-783.5l384.1-104.3L512-64l29.9 8.1 35.7 9.7-7.8 28.9-7.8 28.9-20-5.4V120.79999999999995l35.7 9.7-15.7 57.8-20-5.4V486l35.7 9.7-15.7 57.8-20-5.4V665.6z m-59.8-659.4l-324.2 88.1V753.7l324.2-88.1V548l-192 52.2v-427.3l192-52.2v-114.5z m0 360.9V182.79999999999995l-132.2 35.9V521.8l132.2-35.9v-118.8z" horiz-adv-x="1024" /> + <glyph glyph-name="transfer" unicode="" d="M320 768H128c-35.2 0-64-28.8-64-64v-640c0-35.2 28.8-64 64-64h192c35.2 0 64 28.8 64 64V704c0 35.2-28.8 64-64 64z m0-672c0-16-16-32-32-32H160c-16 0-32 16-32 32V672c0 16 16 32 32 32h128c16 0 32-16 32-32v-576z m256 544h-64c-19.2 0-32-12.8-32-32s16-32 32-32h64c19.2 0 32 12.8 32 32s-16 32-32 32z m-64-448h-64c-19.2 0-32-12.8-32-32s16-32 32-32h64c19.2 0 32 12.8 32 32s-16 32-32 32z m384 576H704c-35.2 0-64-28.8-64-64v-640c0-35.2 28.8-64 64-64h192c35.2 0 64 28.8 64 64V704c0 35.2-28.8 64-64 64z m0-672c0-16-16-32-32-32H736c-16 0-32 16-32 32V672c0 16 16 32 32 32h128c16 0 32-16 32-32v-576z" horiz-adv-x="1024" /> + + <glyph glyph-name="auz" unicode="" d="M324.266667 435.2c-17.066667 17.066667-39.822222 17.066667-51.2 0-17.066667-17.066667-17.066667-39.822222 0-51.2l153.6-159.288889c5.688889-5.688889 17.066667-11.377778 28.444444-11.377778s17.066667 5.688889 28.444445 11.377778l295.822222 290.133333c17.066667 17.066667 17.066667 39.822222 0 51.2-17.066667 17.066667-39.822222 17.066667-51.2 0L455.111111 304.355556 324.266667 435.2zM927.288889 753.777778L523.377778 896h-22.755556L96.711111 753.777778c-17.066667-5.688889-28.444444-17.066667-28.444444-34.133334v-432.355555c11.377778-250.311111 409.6-409.6 426.666666-415.288889h22.755556c17.066667 5.688889 415.288889 159.288889 426.666667 415.288889V719.644444c11.377778 17.066667 0 28.444444-17.066667 34.133334z m-45.511111-460.8c-5.688889-182.044444-301.511111-312.888889-369.777778-341.333334-113.777778 45.511111-358.4 182.044444-369.777778 341.333334v398.222222L512 822.044444l369.777778-125.155555v-403.911111z" horiz-adv-x="1024" /> @@ -452,6 +458,9 @@ Created by iconfont <glyph glyph-name="vercode" unicode="" d="M513.807059-128C351.171765-128 58.428235 126.19294100000002 54.211765 376.16941199999997V662.287059a93.364706 93.364706 0 0 0 81.317647 88.545882 570.428235 570.428235 0 0 1 163.237647 40.357647A393.336471 393.336471 0 0 1 446.945882 872.508235a101.797647 101.797647 0 0 0 120.470589 5.421177A629.458824 629.458824 0 0 1 716.8 792.395294a1255.303529 1255.303529 0 0 1 169.863529-38.550588 98.785882 98.785882 0 0 0 79.510589-90.955294 2911.171765 2911.171765 0 0 0-3.011765-291.538824C924.611765 49.09176500000001 672.828235-128 513.807059-128z m0 963.764706a39.152941 39.152941 0 0 1-24.696471-7.830588A438.512941 438.512941 0 0 0 319.247059 734.569412a608.376471 608.376471 0 0 0-180.705883-43.369412 33.731765 33.731765 0 0 1-24.094117-30.117647v-283.708235C118.663529 155.10588199999995 389.722353-67.76470600000005 513.807059-67.76470600000005s354.183529 148.178824 391.529412 444.536471c9.035294 175.887059 0 281.901176 0 283.105882a38.550588 38.550588 0 0 1-29.515295 33.731765 1287.830588 1287.830588 0 0 0-180.705882 41.562353A676.442353 676.442353 0 0 0 536.094118 829.741176a37.345882 37.345882 0 0 1-24.094118 6.02353zM784.865882 479.171765L487.905882 198.47529399999996a40.357647 40.357647 0 0 0-49.392941-4.818823l-7.830588 6.625882-161.430588 171.068235a40.357647 40.357647 0 1 0 60.235294 55.416471l133.722353-141.552941 267.444706 252.988235a40.357647 40.357647 0 1 0 55.41647-60.235294" horiz-adv-x="1024" /> + <glyph glyph-name="service" unicode="" d="M895.44035 502.006246A31.340412 31.340412 0 0 1 895.44035 512.2398499999999 383.76015 383.76015 0 0 1 127.92005 512.2398499999999a31.340412 31.340412 0 0 1 0-10.233604 167.575265 167.575265 0 0 1-127.92005-159.900062V320.359775a168.854466 168.854466 0 0 1 140.712055-163.098064A351.140537 351.140537 0 0 1 401.029357-63.400375000000054h5.756402a95.940037 95.940037 0 1 1 0 63.960025 287.180512 287.180512 0 0 0-195.717677 156.062461h35.817614A40.294816 40.294816 0 0 1 287.820112 192.43972499999995V468.747033a40.294816 40.294816 0 0 1-40.934416 39.015615H191.880075A30.061212 30.061212 0 0 1 191.880075 512.2398499999999a319.800125 319.800125 0 0 0 639.60025 0 30.061212 30.061212 0 0 1 0-3.837601h-55.005622a40.294816 40.294816 0 0 1-40.934416-39.015616V192.43972499999995a40.294816 40.294816 0 0 1 40.934416-39.015615h72.274829A170.773267 170.773267 0 0 1 1023.3604 320.359775v21.746409a167.575265 167.575265 0 0 1-127.92005 159.900062zM496.329794 0.5596500000000333a31.980012 31.980012 0 1 0-31.980013-31.980012 31.980012 31.980012 0 0 0 31.980013 31.980012zM223.860087 220.582136h-49.249219A106.813242 106.813242 0 0 0 63.960025 320.359775v21.746409a106.813242 106.813242 0 0 0 110.650843 102.33604h49.249219zM959.400375 320.359775a106.813242 106.813242 0 0 0-110.650843-102.33604h-49.24922V444.442224h49.24922A106.813242 106.813242 0 0 0 959.400375 342.106184zM650.473454 750.171143l-23.665209 8.314803a31.980012 31.980012 0 0 1-19.827608-63.960025l18.548407-7.035602a31.980012 31.980012 0 1 1 24.94441 58.843223zM305.089319 674.698314A31.980012 31.980012 0 0 1 358.17614 640.1599 202.113679 202.113679 0 0 0 511.6802 716.91193a31.980012 31.980012 0 0 1 0 63.960025 263.515303 263.515303 0 0 1-206.590881-106.173641z" horiz-adv-x="1024" /> + + <glyph glyph-name="cellphone" unicode="" d="M785.066667 896H238.933333a102.4 102.4 0 0 1-102.4-102.4v-819.2a102.4 102.4 0 0 1 102.4-102.4h546.133334a102.4 102.4 0 0 1 102.4 102.4V793.6a102.4 102.4 0 0 1-102.4 102.4zM238.933333 827.733333h546.133334a34.133333 34.133333 0 0 0 34.133333-34.133333v-648.533333H204.8V793.6a34.133333 34.133333 0 0 0 34.133333 34.133333z m546.133334-887.466666H238.933333a34.133333 34.133333 0 0 0-34.133333 34.133333v102.4h614.4v-102.4a34.133333 34.133333 0 0 0-34.133333-34.133333zM512 8.53333299999997m-34.133333 0a34.133333 34.133333 0 1 1 68.266666 0 34.133333 34.133333 0 1 1-68.266666 0ZM426.666667 725.333333h170.666666a17.066667 17.066667 0 0 1 0 34.133334h-170.666666a17.066667 17.066667 0 0 1 0-34.133334z" horiz-adv-x="1024" /> @@ -467,6 +476,9 @@ Created by iconfont <glyph glyph-name="slider" unicode="" d="M228.7 683.9v-66.7H112v66.7h116.7z m333.2-266.6v-66.7H112v66.7h449.9zM295.4 150.60000000000002V84H112v66.7h183.4v-0.1z m116.6 600c9 0 16.8-3.3 23.5-9.9 6.5-6.5 9.9-14.5 9.9-23.5v-133.3c0-9-3.3-16.8-9.9-23.5-6.5-6.5-14.5-9.9-23.5-9.9H278.8c-9 0-16.8 3.3-23.5 9.9-6.5 6.5-9.9 14.3-9.9 23.5V717.1c0 9 3.3 16.8 9.9 23.5 6.5 6.5 14.3 9.9 23.5 9.9h133.3v0.1h-0.1z m66.7-533.3c9 0 16.8-3.3 23.5-9.9 6.5-6.5 9.9-14.5 9.9-23.5v-133.3c0-9-3.3-16.8-9.9-23.5-6.5-6.5-14.5-9.9-23.5-9.9H345.3c-9 0-16.8 3.3-23.5 9.9-6.5 6.5-9.9 14.5-9.9 23.5V183.89999999999998c0 9 3.3 16.8 9.9 23.5 6.5 6.5 14.3 9.9 23.5 9.9h133.4v0.1zM912 683.9v-66.7H462.1v66.7H912z m0-533.3V84H528.6v66.7h383.3v-0.1h0.1zM745.2 483.9c9 0 16.8-3.3 23.5-9.9 6.5-6.5 9.9-14.5 9.9-23.5v-133.3c0-9-3.3-16.8-9.9-23.5-6.5-6.5-14.5-9.9-23.5-9.9H612c-9 0-16.8 3.3-23.5 9.9-6.5 6.5-9.9 14.3-9.9 23.5V450.6c0 9 3.3 16.8 9.9 23.5 6.5 6.5 14.5 9.9 23.5 9.9l133.2-0.1zM912 417.3v-66.7H795.3v66.7H912z" horiz-adv-x="1024" /> + <glyph glyph-name="subtraction" unicode="" d="M785 348H239c-19.8 0-36 16.2-36 36s16.2 36 36 36h546c19.8 0 36-16.2 36-36s-16.2-36-36-36z" horiz-adv-x="1024" /> + + </font> diff --git a/public/static/plug/layui/font/iconfont.ttf b/public/static/plug/layui/font/iconfont.ttf index 0c8b0a50..3c22a238 100755 Binary files a/public/static/plug/layui/font/iconfont.ttf and b/public/static/plug/layui/font/iconfont.ttf differ diff --git a/public/static/plug/layui/font/iconfont.woff b/public/static/plug/layui/font/iconfont.woff index 786bb2a8..8c660cef 100755 Binary files a/public/static/plug/layui/font/iconfont.woff and b/public/static/plug/layui/font/iconfont.woff differ diff --git a/public/static/plug/layui/font/iconfont.woff2 b/public/static/plug/layui/font/iconfont.woff2 new file mode 100644 index 00000000..928d66a8 Binary files /dev/null and b/public/static/plug/layui/font/iconfont.woff2 differ diff --git a/public/static/plug/layui/lay/modules/carousel.js b/public/static/plug/layui/lay/modules/carousel.js index be18bc96..8eedd428 100755 --- a/public/static/plug/layui/lay/modules/carousel.js +++ b/public/static/plug/layui/lay/modules/carousel.js @@ -1,2 +1,2 @@ -/** layui-v2.4.3 MIT License By https://www.layui.com */ - ;layui.define("jquery",function(e){"use strict";var i=layui.$,n=(layui.hint(),layui.device(),{config:{},set:function(e){var n=this;return n.config=i.extend({},n.config,e),n},on:function(e,i){return layui.onevent.call(this,t,e,i)}}),t="carousel",a="layui-this",l=">*[carousel-item]>*",o="layui-carousel-left",r="layui-carousel-right",d="layui-carousel-prev",s="layui-carousel-next",u="layui-carousel-arrow",c="layui-carousel-ind",m=function(e){var t=this;t.config=i.extend({},t.config,n.config,e),t.render()};m.prototype.config={width:"600px",height:"280px",full:!1,arrow:"hover",indicator:"inside",autoplay:!0,interval:3e3,anim:"",trigger:"click",index:0},m.prototype.render=function(){var e=this,n=e.config;n.elem=i(n.elem),n.elem[0]&&(e.elemItem=n.elem.find(l),n.index<0&&(n.index=0),n.index>=e.elemItem.length&&(n.index=e.elemItem.length-1),n.interval<800&&(n.interval=800),n.full?n.elem.css({position:"fixed",width:"100%",height:"100%",zIndex:9999}):n.elem.css({width:n.width,height:n.height}),n.elem.attr("lay-anim",n.anim),e.elemItem.eq(n.index).addClass(a),e.elemItem.length<=1||(e.indicator(),e.arrow(),e.autoplay(),e.events()))},m.prototype.reload=function(e){var n=this;clearInterval(n.timer),n.config=i.extend({},n.config,e),n.render()},m.prototype.prevIndex=function(){var e=this,i=e.config,n=i.index-1;return n<0&&(n=e.elemItem.length-1),n},m.prototype.nextIndex=function(){var e=this,i=e.config,n=i.index+1;return n>=e.elemItem.length&&(n=0),n},m.prototype.addIndex=function(e){var i=this,n=i.config;e=e||1,n.index=n.index+e,n.index>=i.elemItem.length&&(n.index=0)},m.prototype.subIndex=function(e){var i=this,n=i.config;e=e||1,n.index=n.index-e,n.index<0&&(n.index=i.elemItem.length-1)},m.prototype.autoplay=function(){var e=this,i=e.config;i.autoplay&&(e.timer=setInterval(function(){e.slide()},i.interval))},m.prototype.arrow=function(){var e=this,n=e.config,t=i(['<button class="layui-icon '+u+'" lay-type="sub">'+("updown"===n.anim?"":"")+"</button>",'<button class="layui-icon '+u+'" lay-type="add">'+("updown"===n.anim?"":"")+"</button>"].join(""));n.elem.attr("lay-arrow",n.arrow),n.elem.find("."+u)[0]&&n.elem.find("."+u).remove(),n.elem.append(t),t.on("click",function(){var n=i(this),t=n.attr("lay-type");e.slide(t)})},m.prototype.indicator=function(){var e=this,n=e.config,t=e.elemInd=i(['<div class="'+c+'"><ul>',function(){var i=[];return layui.each(e.elemItem,function(e){i.push("<li"+(n.index===e?' class="layui-this"':"")+"></li>")}),i.join("")}(),"</ul></div>"].join(""));n.elem.attr("lay-indicator",n.indicator),n.elem.find("."+c)[0]&&n.elem.find("."+c).remove(),n.elem.append(t),"updown"===n.anim&&t.css("margin-top",-(t.height()/2)),t.find("li").on("hover"===n.trigger?"mouseover":n.trigger,function(){var t=i(this),a=t.index();a>n.index?e.slide("add",a-n.index):a<n.index&&e.slide("sub",n.index-a)})},m.prototype.slide=function(e,i){var n=this,l=n.elemItem,u=n.config,c=u.index,m=u.elem.attr("lay-filter");n.haveSlide||("sub"===e?(n.subIndex(i),l.eq(u.index).addClass(d),setTimeout(function(){l.eq(c).addClass(r),l.eq(u.index).addClass(r)},50)):(n.addIndex(i),l.eq(u.index).addClass(s),setTimeout(function(){l.eq(c).addClass(o),l.eq(u.index).addClass(o)},50)),setTimeout(function(){l.removeClass(a+" "+d+" "+s+" "+o+" "+r),l.eq(u.index).addClass(a),n.haveSlide=!1},300),n.elemInd.find("li").eq(u.index).addClass(a).siblings().removeClass(a),n.haveSlide=!0,layui.event.call(this,t,"change("+m+")",{index:u.index,prevIndex:c,item:l.eq(u.index)}))},m.prototype.events=function(){var e=this,i=e.config;i.elem.data("haveEvents")||(i.elem.on("mouseenter",function(){clearInterval(e.timer)}).on("mouseleave",function(){e.autoplay()}),i.elem.data("haveEvents",!0))},n.render=function(e){var i=new m(e);return i},e(t,n)}); \ No newline at end of file +/** layui-v2.5.4 MIT License By https://www.layui.com */ + ;layui.define("jquery",function(e){"use strict";var i=layui.$,n=(layui.hint(),layui.device(),{config:{},set:function(e){var n=this;return n.config=i.extend({},n.config,e),n},on:function(e,i){return layui.onevent.call(this,t,e,i)}}),t="carousel",a="layui-this",l=">*[carousel-item]>*",o="layui-carousel-left",r="layui-carousel-right",d="layui-carousel-prev",s="layui-carousel-next",u="layui-carousel-arrow",c="layui-carousel-ind",m=function(e){var t=this;t.config=i.extend({},t.config,n.config,e),t.render()};m.prototype.config={width:"600px",height:"280px",full:!1,arrow:"hover",indicator:"inside",autoplay:!0,interval:3e3,anim:"",trigger:"click",index:0},m.prototype.render=function(){var e=this,n=e.config;n.elem=i(n.elem),n.elem[0]&&(e.elemItem=n.elem.find(l),n.index<0&&(n.index=0),n.index>=e.elemItem.length&&(n.index=e.elemItem.length-1),n.interval<800&&(n.interval=800),n.full?n.elem.css({position:"fixed",width:"100%",height:"100%",zIndex:9999}):n.elem.css({width:n.width,height:n.height}),n.elem.attr("lay-anim",n.anim),e.elemItem.eq(n.index).addClass(a),e.elemItem.length<=1||(e.indicator(),e.arrow(),e.autoplay(),e.events()))},m.prototype.reload=function(e){var n=this;clearInterval(n.timer),n.config=i.extend({},n.config,e),n.render()},m.prototype.prevIndex=function(){var e=this,i=e.config,n=i.index-1;return n<0&&(n=e.elemItem.length-1),n},m.prototype.nextIndex=function(){var e=this,i=e.config,n=i.index+1;return n>=e.elemItem.length&&(n=0),n},m.prototype.addIndex=function(e){var i=this,n=i.config;e=e||1,n.index=n.index+e,n.index>=i.elemItem.length&&(n.index=0)},m.prototype.subIndex=function(e){var i=this,n=i.config;e=e||1,n.index=n.index-e,n.index<0&&(n.index=i.elemItem.length-1)},m.prototype.autoplay=function(){var e=this,i=e.config;i.autoplay&&(clearInterval(e.timer),e.timer=setInterval(function(){e.slide()},i.interval))},m.prototype.arrow=function(){var e=this,n=e.config,t=i(['<button class="layui-icon '+u+'" lay-type="sub">'+("updown"===n.anim?"":"")+"</button>",'<button class="layui-icon '+u+'" lay-type="add">'+("updown"===n.anim?"":"")+"</button>"].join(""));n.elem.attr("lay-arrow",n.arrow),n.elem.find("."+u)[0]&&n.elem.find("."+u).remove(),n.elem.append(t),t.on("click",function(){var n=i(this),t=n.attr("lay-type");e.slide(t)})},m.prototype.indicator=function(){var e=this,n=e.config,t=e.elemInd=i(['<div class="'+c+'"><ul>',function(){var i=[];return layui.each(e.elemItem,function(e){i.push("<li"+(n.index===e?' class="layui-this"':"")+"></li>")}),i.join("")}(),"</ul></div>"].join(""));n.elem.attr("lay-indicator",n.indicator),n.elem.find("."+c)[0]&&n.elem.find("."+c).remove(),n.elem.append(t),"updown"===n.anim&&t.css("margin-top",-(t.height()/2)),t.find("li").on("hover"===n.trigger?"mouseover":n.trigger,function(){var t=i(this),a=t.index();a>n.index?e.slide("add",a-n.index):a<n.index&&e.slide("sub",n.index-a)})},m.prototype.slide=function(e,i){var n=this,l=n.elemItem,u=n.config,c=u.index,m=u.elem.attr("lay-filter");n.haveSlide||("sub"===e?(n.subIndex(i),l.eq(u.index).addClass(d),setTimeout(function(){l.eq(c).addClass(r),l.eq(u.index).addClass(r)},50)):(n.addIndex(i),l.eq(u.index).addClass(s),setTimeout(function(){l.eq(c).addClass(o),l.eq(u.index).addClass(o)},50)),setTimeout(function(){l.removeClass(a+" "+d+" "+s+" "+o+" "+r),l.eq(u.index).addClass(a),n.haveSlide=!1},300),n.elemInd.find("li").eq(u.index).addClass(a).siblings().removeClass(a),n.haveSlide=!0,layui.event.call(this,t,"change("+m+")",{index:u.index,prevIndex:c,item:l.eq(u.index)}))},m.prototype.events=function(){var e=this,i=e.config;i.elem.data("haveEvents")||(i.elem.on("mouseenter",function(){clearInterval(e.timer)}).on("mouseleave",function(){e.autoplay()}),i.elem.data("haveEvents",!0))},n.render=function(e){var i=new m(e);return i},e(t,n)}); \ No newline at end of file diff --git a/public/static/plug/layui/lay/modules/code.js b/public/static/plug/layui/lay/modules/code.js index 03098787..9b1045e1 100755 --- a/public/static/plug/layui/lay/modules/code.js +++ b/public/static/plug/layui/lay/modules/code.js @@ -1,2 +1,2 @@ -/** layui-v2.4.3 MIT License By https://www.layui.com */ +/** layui-v2.5.4 MIT License By https://www.layui.com */ ;layui.define("jquery",function(e){"use strict";var a=layui.$,l="http://www.layui.com/doc/modules/code.html";e("code",function(e){var t=[];e=e||{},e.elem=a(e.elem||".layui-code"),e.about=!("about"in e)||e.about,e.elem.each(function(){t.push(this)}),layui.each(t.reverse(),function(t,i){var c=a(i),o=c.html();(c.attr("lay-encode")||e.encode)&&(o=o.replace(/&(?!#?[a-zA-Z0-9]+;)/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/'/g,"'").replace(/"/g,""")),c.html('<ol class="layui-code-ol"><li>'+o.replace(/[\r\t\n]+/g,"</li><li>")+"</li></ol>"),c.find(">.layui-code-h3")[0]||c.prepend('<h3 class="layui-code-h3">'+(c.attr("lay-title")||e.title||"code")+(e.about?'<a href="'+l+'" target="_blank">layui.code</a>':"")+"</h3>");var d=c.find(">.layui-code-ol");c.addClass("layui-box layui-code-view"),(c.attr("lay-skin")||e.skin)&&c.addClass("layui-code-"+(c.attr("lay-skin")||e.skin)),(d.find("li").length/100|0)>0&&d.css("margin-left",(d.find("li").length/100|0)+"px"),(c.attr("lay-height")||e.height)&&d.css("max-height",c.attr("lay-height")||e.height)})})}).addcss("modules/code.css","skincodecss"); \ No newline at end of file diff --git a/public/static/plug/layui/lay/modules/colorpicker.js b/public/static/plug/layui/lay/modules/colorpicker.js new file mode 100644 index 00000000..7eca56f2 --- /dev/null +++ b/public/static/plug/layui/lay/modules/colorpicker.js @@ -0,0 +1,2 @@ +/** layui-v2.5.4 MIT License By https://www.layui.com */ + ;layui.define("jquery",function(e){"use strict";var i=layui.jquery,o={config:{},index:layui.colorpicker?layui.colorpicker.index+1e4:0,set:function(e){var o=this;return o.config=i.extend({},o.config,e),o},on:function(e,i){return layui.onevent.call(this,"colorpicker",e,i)}},r=function(){var e=this,i=e.config;return{config:i}},t="colorpicker",n="layui-show",l="layui-colorpicker",c=".layui-colorpicker-main",a="layui-icon-down",s="layui-icon-close",f="layui-colorpicker-trigger-span",d="layui-colorpicker-trigger-i",u="layui-colorpicker-side",p="layui-colorpicker-side-slider",g="layui-colorpicker-basis",v="layui-colorpicker-alpha-bgcolor",h="layui-colorpicker-alpha-slider",m="layui-colorpicker-basis-cursor",b="layui-colorpicker-main-input",k=function(e){var i={h:0,s:0,b:0},o=Math.min(e.r,e.g,e.b),r=Math.max(e.r,e.g,e.b),t=r-o;return i.b=r,i.s=0!=r?255*t/r:0,0!=i.s?e.r==r?i.h=(e.g-e.b)/t:e.g==r?i.h=2+(e.b-e.r)/t:i.h=4+(e.r-e.g)/t:i.h=-1,r==o&&(i.h=0),i.h*=60,i.h<0&&(i.h+=360),i.s*=100/255,i.b*=100/255,i},y=function(e){var e=e.indexOf("#")>-1?e.substring(1):e;if(3==e.length){var i=e.split("");e=i[0]+i[0]+i[1]+i[1]+i[2]+i[2]}e=parseInt(e,16);var o={r:e>>16,g:(65280&e)>>8,b:255&e};return k(o)},x=function(e){var i={},o=e.h,r=255*e.s/100,t=255*e.b/100;if(0==r)i.r=i.g=i.b=t;else{var n=t,l=(255-r)*t/255,c=(n-l)*(o%60)/60;360==o&&(o=0),o<60?(i.r=n,i.b=l,i.g=l+c):o<120?(i.g=n,i.b=l,i.r=n-c):o<180?(i.g=n,i.r=l,i.b=l+c):o<240?(i.b=n,i.r=l,i.g=n-c):o<300?(i.b=n,i.g=l,i.r=l+c):o<360?(i.r=n,i.g=l,i.b=n-c):(i.r=0,i.g=0,i.b=0)}return{r:Math.round(i.r),g:Math.round(i.g),b:Math.round(i.b)}},C=function(e){var o=x(e),r=[o.r.toString(16),o.g.toString(16),o.b.toString(16)];return i.each(r,function(e,i){1==i.length&&(r[e]="0"+i)}),r.join("")},P=function(e){var i=/[0-9]{1,3}/g,o=e.match(i)||[];return{r:o[0],g:o[1],b:o[2]}},B=i(window),w=i(document),D=function(e){var r=this;r.index=++o.index,r.config=i.extend({},r.config,o.config,e),r.render()};D.prototype.config={color:"",size:null,alpha:!1,format:"hex",predefine:!1,colors:["#009688","#5FB878","#1E9FFF","#FF5722","#FFB800","#01AAED","#999","#c00","#ff8c00","#ffd700","#90ee90","#00ced1","#1e90ff","#c71585","rgb(0, 186, 189)","rgb(255, 120, 0)","rgb(250, 212, 0)","#393D49","rgba(0,0,0,.5)","rgba(255, 69, 0, 0.68)","rgba(144, 240, 144, 0.5)","rgba(31, 147, 255, 0.73)"]},D.prototype.render=function(){var e=this,o=e.config,r=i(['<div class="layui-unselect layui-colorpicker">',"<span "+("rgb"==o.format&&o.alpha?'class="layui-colorpicker-trigger-bgcolor"':"")+">",'<span class="layui-colorpicker-trigger-span" ','lay-type="'+("rgb"==o.format?o.alpha?"rgba":"torgb":"")+'" ','style="'+function(){var e="";return o.color?(e=o.color,(o.color.match(/[0-9]{1,3}/g)||[]).length>3&&(o.alpha&&"rgb"==o.format||(e="#"+C(k(P(o.color))))),"background: "+e):e}()+'">','<i class="layui-icon layui-colorpicker-trigger-i '+(o.color?a:s)+'"></i>',"</span>","</span>","</div>"].join("")),t=i(o.elem);o.size&&r.addClass("layui-colorpicker-"+o.size),t.addClass("layui-inline").html(e.elemColorBox=r),e.color=e.elemColorBox.find("."+f)[0].style.background,e.events()},D.prototype.renderPicker=function(){var e=this,o=e.config,r=e.elemColorBox[0],t=e.elemPicker=i(['<div id="layui-colorpicker'+e.index+'" data-index="'+e.index+'" class="layui-anim layui-anim-upbit layui-colorpicker-main">','<div class="layui-colorpicker-main-wrapper">','<div class="layui-colorpicker-basis">','<div class="layui-colorpicker-basis-white"></div>','<div class="layui-colorpicker-basis-black"></div>','<div class="layui-colorpicker-basis-cursor"></div>',"</div>",'<div class="layui-colorpicker-side">','<div class="layui-colorpicker-side-slider"></div>',"</div>","</div>",'<div class="layui-colorpicker-main-alpha '+(o.alpha?n:"")+'">','<div class="layui-colorpicker-alpha-bgcolor">','<div class="layui-colorpicker-alpha-slider"></div>',"</div>","</div>",function(){if(o.predefine){var e=['<div class="layui-colorpicker-main-pre">'];return layui.each(o.colors,function(i,o){e.push(['<div class="layui-colorpicker-pre'+((o.match(/[0-9]{1,3}/g)||[]).length>3?" layui-colorpicker-pre-isalpha":"")+'">','<div style="background:'+o+'"></div>',"</div>"].join(""))}),e.push("</div>"),e.join("")}return""}(),'<div class="layui-colorpicker-main-input">','<div class="layui-inline">','<input type="text" class="layui-input">',"</div>",'<div class="layui-btn-container">','<button class="layui-btn layui-btn-primary layui-btn-sm" colorpicker-events="clear">清空</button>','<button class="layui-btn layui-btn-sm" colorpicker-events="confirm">确定</button>',"</div","</div>","</div>"].join(""));e.elemColorBox.find("."+f)[0];i(c)[0]&&i(c).data("index")==e.index?e.removePicker(D.thisElemInd):(e.removePicker(D.thisElemInd),i("body").append(t)),D.thisElemInd=e.index,D.thisColor=r.style.background,e.position(),e.pickerEvents()},D.prototype.removePicker=function(e){var o=this;o.config;return i("#layui-colorpicker"+(e||o.index)).remove(),o},D.prototype.position=function(){var e=this,i=e.config,o=e.bindElem||e.elemColorBox[0],r=e.elemPicker[0],t=o.getBoundingClientRect(),n=r.offsetWidth,l=r.offsetHeight,c=function(e){return e=e?"scrollLeft":"scrollTop",document.body[e]|document.documentElement[e]},a=function(e){return document.documentElement[e?"clientWidth":"clientHeight"]},s=5,f=t.left,d=t.bottom;f-=(n-o.offsetWidth)/2,d+=s,f+n+s>a("width")?f=a("width")-n-s:f<s&&(f=s),d+l+s>a()&&(d=t.top>l?t.top-l:a()-l,d-=2*s),i.position&&(r.style.position=i.position),r.style.left=f+("fixed"===i.position?0:c(1))+"px",r.style.top=d+("fixed"===i.position?0:c())+"px"},D.prototype.val=function(){var e=this,i=(e.config,e.elemColorBox.find("."+f)),o=e.elemPicker.find("."+b),r=i[0],t=r.style.backgroundColor;if(t){var n=k(P(t)),l=i.attr("lay-type");if(e.select(n.h,n.s,n.b),"torgb"===l&&o.find("input").val(t),"rgba"===l){var c=P(t);if(3==(t.match(/[0-9]{1,3}/g)||[]).length)o.find("input").val("rgba("+c.r+", "+c.g+", "+c.b+", 1)"),e.elemPicker.find("."+h).css("left",280);else{o.find("input").val(t);var a=280*t.slice(t.lastIndexOf(",")+1,t.length-1);e.elemPicker.find("."+h).css("left",a)}e.elemPicker.find("."+v)[0].style.background="linear-gradient(to right, rgba("+c.r+", "+c.g+", "+c.b+", 0), rgb("+c.r+", "+c.g+", "+c.b+"))"}}else e.select(0,100,100),o.find("input").val(""),e.elemPicker.find("."+v)[0].style.background="",e.elemPicker.find("."+h).css("left",280)},D.prototype.side=function(){var e=this,o=e.config,r=e.elemColorBox.find("."+f),t=r.attr("lay-type"),n=e.elemPicker.find("."+u),l=e.elemPicker.find("."+p),c=e.elemPicker.find("."+g),y=e.elemPicker.find("."+m),C=e.elemPicker.find("."+v),w=e.elemPicker.find("."+h),D=l[0].offsetTop/180*360,E=100-(y[0].offsetTop+3)/180*100,H=(y[0].offsetLeft+3)/260*100,W=Math.round(w[0].offsetLeft/280*100)/100,j=e.elemColorBox.find("."+d),F=e.elemPicker.find(".layui-colorpicker-pre").children("div"),L=function(i,n,l,c){e.select(i,n,l);var f=x({h:i,s:n,b:l});if(j.addClass(a).removeClass(s),r[0].style.background="rgb("+f.r+", "+f.g+", "+f.b+")","torgb"===t&&e.elemPicker.find("."+b).find("input").val("rgb("+f.r+", "+f.g+", "+f.b+")"),"rgba"===t){var d=0;d=280*c,w.css("left",d),e.elemPicker.find("."+b).find("input").val("rgba("+f.r+", "+f.g+", "+f.b+", "+c+")"),r[0].style.background="rgba("+f.r+", "+f.g+", "+f.b+", "+c+")",C[0].style.background="linear-gradient(to right, rgba("+f.r+", "+f.g+", "+f.b+", 0), rgb("+f.r+", "+f.g+", "+f.b+"))"}o.change&&o.change(e.elemPicker.find("."+b).find("input").val())},M=i(['<div class="layui-auxiliar-moving" id="LAY-colorpicker-moving"></div'].join("")),Y=function(e){i("#LAY-colorpicker-moving")[0]||i("body").append(M),M.on("mousemove",e),M.on("mouseup",function(){M.remove()}).on("mouseleave",function(){M.remove()})};l.on("mousedown",function(e){var i=this.offsetTop,o=e.clientY,r=function(e){var r=i+(e.clientY-o),t=n[0].offsetHeight;r<0&&(r=0),r>t&&(r=t);var l=r/180*360;D=l,L(l,H,E,W),e.preventDefault()};Y(r),e.preventDefault()}),n.on("click",function(e){var o=e.clientY-i(this).offset().top;o<0&&(o=0),o>this.offsetHeight&&(o=this.offsetHeight);var r=o/180*360;D=r,L(r,H,E,W),e.preventDefault()}),y.on("mousedown",function(e){var i=this.offsetTop,o=this.offsetLeft,r=e.clientY,t=e.clientX,n=function(e){var n=i+(e.clientY-r),l=o+(e.clientX-t),a=c[0].offsetHeight-3,s=c[0].offsetWidth-3;n<-3&&(n=-3),n>a&&(n=a),l<-3&&(l=-3),l>s&&(l=s);var f=(l+3)/260*100,d=100-(n+3)/180*100;E=d,H=f,L(D,f,d,W),e.preventDefault()};layui.stope(e),Y(n),e.preventDefault()}),c.on("mousedown",function(e){var o=e.clientY-i(this).offset().top-3+B.scrollTop(),r=e.clientX-i(this).offset().left-3+B.scrollLeft();o<-3&&(o=-3),o>this.offsetHeight-3&&(o=this.offsetHeight-3),r<-3&&(r=-3),r>this.offsetWidth-3&&(r=this.offsetWidth-3);var t=(r+3)/260*100,n=100-(o+3)/180*100;E=n,H=t,L(D,t,n,W),e.preventDefault(),y.trigger(e,"mousedown")}),w.on("mousedown",function(e){var i=this.offsetLeft,o=e.clientX,r=function(e){var r=i+(e.clientX-o),t=C[0].offsetWidth;r<0&&(r=0),r>t&&(r=t);var n=Math.round(r/280*100)/100;W=n,L(D,H,E,n),e.preventDefault()};Y(r),e.preventDefault()}),C.on("click",function(e){var o=e.clientX-i(this).offset().left;o<0&&(o=0),o>this.offsetWidth&&(o=this.offsetWidth);var r=Math.round(o/280*100)/100;W=r,L(D,H,E,r),e.preventDefault()}),F.each(function(){i(this).on("click",function(){i(this).parent(".layui-colorpicker-pre").addClass("selected").siblings().removeClass("selected");var e,o=this.style.backgroundColor,r=k(P(o)),t=o.slice(o.lastIndexOf(",")+1,o.length-1);D=r.h,H=r.s,E=r.b,3==(o.match(/[0-9]{1,3}/g)||[]).length&&(t=1),W=t,e=280*t,L(r.h,r.s,r.b,t)})})},D.prototype.select=function(e,i,o,r){var t=this,n=(t.config,C({h:e,s:100,b:100})),l=C({h:e,s:i,b:o}),c=e/360*180,a=180-o/100*180-3,s=i/100*260-3;t.elemPicker.find("."+p).css("top",c),t.elemPicker.find("."+g)[0].style.background="#"+n,t.elemPicker.find("."+m).css({top:a,left:s}),"change"!==r&&t.elemPicker.find("."+b).find("input").val("#"+l)},D.prototype.pickerEvents=function(){var e=this,o=e.config,r=e.elemColorBox.find("."+f),t=e.elemPicker.find("."+b+" input"),n={clear:function(i){r[0].style.background="",e.elemColorBox.find("."+d).removeClass(a).addClass(s),e.color="",o.done&&o.done(""),e.removePicker()},confirm:function(i,n){var l=t.val(),c=l,f={};if(l.indexOf(",")>-1){if(f=k(P(l)),e.select(f.h,f.s,f.b),r[0].style.background=c="#"+C(f),(l.match(/[0-9]{1,3}/g)||[]).length>3&&"rgba"===r.attr("lay-type")){var u=280*l.slice(l.lastIndexOf(",")+1,l.length-1);e.elemPicker.find("."+h).css("left",u),r[0].style.background=l,c=l}}else f=y(l),r[0].style.background=c="#"+C(f),e.elemColorBox.find("."+d).removeClass(s).addClass(a);return"change"===n?(e.select(f.h,f.s,f.b,n),void(o.change&&o.change(c))):(e.color=l,o.done&&o.done(l),void e.removePicker())}};e.elemPicker.on("click","*[colorpicker-events]",function(){var e=i(this),o=e.attr("colorpicker-events");n[o]&&n[o].call(this,e)}),t.on("keyup",function(e){var o=i(this);n.confirm.call(this,o,13===e.keyCode?null:"change")})},D.prototype.events=function(){var e=this,o=e.config,r=e.elemColorBox.find("."+f);e.elemColorBox.on("click",function(){e.renderPicker(),i(c)[0]&&(e.val(),e.side())}),o.elem[0]&&!e.elemColorBox[0].eventHandler&&(w.on("click",function(o){if(!i(o.target).hasClass(l)&&!i(o.target).parents("."+l)[0]&&!i(o.target).hasClass(c.replace(/\./g,""))&&!i(o.target).parents(c)[0]&&e.elemPicker){if(e.color){var t=k(P(e.color));e.select(t.h,t.s,t.b)}else e.elemColorBox.find("."+d).removeClass(a).addClass(s);r[0].style.background=e.color||"",e.removePicker()}}),B.on("resize",function(){return!(!e.elemPicker||!i(c)[0])&&void e.position()}),e.elemColorBox[0].eventHandler=!0)},o.render=function(e){var i=new D(e);return r.call(i)},e(t,o)}); \ No newline at end of file diff --git a/public/static/plug/layui/lay/modules/element.js b/public/static/plug/layui/lay/modules/element.js index 8b8486ea..789f7b95 100755 --- a/public/static/plug/layui/lay/modules/element.js +++ b/public/static/plug/layui/lay/modules/element.js @@ -1,2 +1,2 @@ -/** layui-v2.4.3 MIT License By https://www.layui.com */ +/** layui-v2.5.4 MIT License By https://www.layui.com */ ;layui.define("jquery",function(t){"use strict";var a=layui.$,i=(layui.hint(),layui.device()),e="element",l="layui-this",n="layui-show",s=function(){this.config={}};s.prototype.set=function(t){var i=this;return a.extend(!0,i.config,t),i},s.prototype.on=function(t,a){return layui.onevent.call(this,e,t,a)},s.prototype.tabAdd=function(t,i){var e=".layui-tab-title",l=a(".layui-tab[lay-filter="+t+"]"),n=l.children(e),s=n.children(".layui-tab-bar"),o=l.children(".layui-tab-content"),r='<li lay-id="'+(i.id||"")+'"'+(i.attr?' lay-attr="'+i.attr+'"':"")+">"+(i.title||"unnaming")+"</li>";return s[0]?s.before(r):n.append(r),o.append('<div class="layui-tab-item">'+(i.content||"")+"</div>"),f.hideTabMore(!0),f.tabAuto(),this},s.prototype.tabDelete=function(t,i){var e=".layui-tab-title",l=a(".layui-tab[lay-filter="+t+"]"),n=l.children(e),s=n.find('>li[lay-id="'+i+'"]');return f.tabDelete(null,s),this},s.prototype.tabChange=function(t,i){var e=".layui-tab-title",l=a(".layui-tab[lay-filter="+t+"]"),n=l.children(e),s=n.find('>li[lay-id="'+i+'"]');return f.tabClick.call(s[0],null,null,s),this},s.prototype.tab=function(t){t=t||{},b.on("click",t.headerElem,function(i){var e=a(this).index();f.tabClick.call(this,i,e,null,t)})},s.prototype.progress=function(t,i){var e="layui-progress",l=a("."+e+"[lay-filter="+t+"]"),n=l.find("."+e+"-bar"),s=n.find("."+e+"-text");return n.css("width",i),s.text(i),this};var o=".layui-nav",r="layui-nav-item",c="layui-nav-bar",u="layui-nav-tree",d="layui-nav-child",y="layui-nav-more",h="layui-anim layui-anim-upbit",f={tabClick:function(t,i,s,o){o=o||{};var r=s||a(this),i=i||r.parent().children("li").index(r),c=o.headerElem?r.parent():r.parents(".layui-tab").eq(0),u=o.bodyElem?a(o.bodyElem):c.children(".layui-tab-content").children(".layui-tab-item"),d=r.find("a"),y=c.attr("lay-filter");"javascript:;"!==d.attr("href")&&"_blank"===d.attr("target")||(r.addClass(l).siblings().removeClass(l),u.eq(i).addClass(n).siblings().removeClass(n)),layui.event.call(this,e,"tab("+y+")",{elem:c,index:i})},tabDelete:function(t,i){var n=i||a(this).parent(),s=n.index(),o=n.parents(".layui-tab").eq(0),r=o.children(".layui-tab-content").children(".layui-tab-item"),c=o.attr("lay-filter");n.hasClass(l)&&(n.next()[0]?f.tabClick.call(n.next()[0],null,s+1):n.prev()[0]&&f.tabClick.call(n.prev()[0],null,s-1)),n.remove(),r.eq(s).remove(),setTimeout(function(){f.tabAuto()},50),layui.event.call(this,e,"tabDelete("+c+")",{elem:o,index:s})},tabAuto:function(){var t="layui-tab-more",e="layui-tab-bar",l="layui-tab-close",n=this;a(".layui-tab").each(function(){var s=a(this),o=s.children(".layui-tab-title"),r=(s.children(".layui-tab-content").children(".layui-tab-item"),'lay-stope="tabmore"'),c=a('<span class="layui-unselect layui-tab-bar" '+r+"><i "+r+' class="layui-icon"></i></span>');if(n===window&&8!=i.ie&&f.hideTabMore(!0),s.attr("lay-allowClose")&&o.find("li").each(function(){var t=a(this);if(!t.find("."+l)[0]){var i=a('<i class="layui-icon layui-unselect '+l+'">ဆ</i>');i.on("click",f.tabDelete),t.append(i)}}),"string"!=typeof s.attr("lay-unauto"))if(o.prop("scrollWidth")>o.outerWidth()+1){if(o.find("."+e)[0])return;o.append(c),s.attr("overflow",""),c.on("click",function(a){o[this.title?"removeClass":"addClass"](t),this.title=this.title?"":"收缩"})}else o.find("."+e).remove(),s.removeAttr("overflow")})},hideTabMore:function(t){var i=a(".layui-tab-title");t!==!0&&"tabmore"===a(t.target).attr("lay-stope")||(i.removeClass("layui-tab-more"),i.find(".layui-tab-bar").attr("title",""))},clickThis:function(){var t=a(this),i=t.parents(o),n=i.attr("lay-filter"),s=t.parent(),c=t.siblings("."+d),y="string"==typeof s.attr("lay-unselect");"javascript:;"!==t.attr("href")&&"_blank"===t.attr("target")||y||c[0]||(i.find("."+l).removeClass(l),s.addClass(l)),i.hasClass(u)&&(c.removeClass(h),c[0]&&(s["none"===c.css("display")?"addClass":"removeClass"](r+"ed"),"all"===i.attr("lay-shrink")&&s.siblings().removeClass(r+"ed"))),layui.event.call(this,e,"nav("+n+")",t)},collapse:function(){var t=a(this),i=t.find(".layui-colla-icon"),l=t.siblings(".layui-colla-content"),s=t.parents(".layui-collapse").eq(0),o=s.attr("lay-filter"),r="none"===l.css("display");if("string"==typeof s.attr("lay-accordion")){var c=s.children(".layui-colla-item").children("."+n);c.siblings(".layui-colla-title").children(".layui-colla-icon").html(""),c.removeClass(n)}l[r?"addClass":"removeClass"](n),i.html(r?"":""),layui.event.call(this,e,"collapse("+o+")",{title:t,content:l,show:r})}};s.prototype.init=function(t,e){var l=function(){return e?'[lay-filter="'+e+'"]':""}(),s={tab:function(){f.tabAuto.call({})},nav:function(){var t=200,e={},s={},p={},b=function(l,o,r){var c=a(this),f=c.find("."+d);o.hasClass(u)?l.css({top:c.position().top,height:c.children("a").outerHeight(),opacity:1}):(f.addClass(h),l.css({left:c.position().left+parseFloat(c.css("marginLeft")),top:c.position().top+c.height()-l.height()}),e[r]=setTimeout(function(){l.css({width:c.width(),opacity:1})},i.ie&&i.ie<10?0:t),clearTimeout(p[r]),"block"===f.css("display")&&clearTimeout(s[r]),s[r]=setTimeout(function(){f.addClass(n),c.find("."+y).addClass(y+"d")},300))};a(o+l).each(function(i){var l=a(this),o=a('<span class="'+c+'"></span>'),h=l.find("."+r);l.find("."+c)[0]||(l.append(o),h.on("mouseenter",function(){b.call(this,o,l,i)}).on("mouseleave",function(){l.hasClass(u)||(clearTimeout(s[i]),s[i]=setTimeout(function(){l.find("."+d).removeClass(n),l.find("."+y).removeClass(y+"d")},300))}),l.on("mouseleave",function(){clearTimeout(e[i]),p[i]=setTimeout(function(){l.hasClass(u)?o.css({height:0,top:o.position().top+o.height()/2,opacity:0}):o.css({width:0,left:o.position().left+o.width()/2,opacity:0})},t)})),h.find("a").each(function(){var t=a(this),i=(t.parent(),t.siblings("."+d));i[0]&&!t.children("."+y)[0]&&t.append('<span class="'+y+'"></span>'),t.off("click",f.clickThis).on("click",f.clickThis)})})},breadcrumb:function(){var t=".layui-breadcrumb";a(t+l).each(function(){var t=a(this),i="lay-separator",e=t.attr(i)||"/",l=t.find("a");l.next("span["+i+"]")[0]||(l.each(function(t){t!==l.length-1&&a(this).after("<span "+i+">"+e+"</span>")}),t.css("visibility","visible"))})},progress:function(){var t="layui-progress";a("."+t+l).each(function(){var i=a(this),e=i.find(".layui-progress-bar"),l=e.attr("lay-percent");e.css("width",function(){return/^.+\/.+$/.test(l)?100*new Function("return "+l)()+"%":l}()),i.attr("lay-showPercent")&&setTimeout(function(){e.html('<span class="'+t+'-text">'+l+"</span>")},350)})},collapse:function(){var t="layui-collapse";a("."+t+l).each(function(){var t=a(this).find(".layui-colla-item");t.each(function(){var t=a(this),i=t.find(".layui-colla-title"),e=t.find(".layui-colla-content"),l="none"===e.css("display");i.find(".layui-colla-icon").remove(),i.append('<i class="layui-icon layui-colla-icon">'+(l?"":"")+"</i>"),i.off("click",f.collapse).on("click",f.collapse)})})}};return s[t]?s[t]():layui.each(s,function(t,a){a()})},s.prototype.render=s.prototype.init;var p=new s,b=a(document);p.render();var v=".layui-tab-title li";b.on("click",v,f.tabClick),b.on("click",f.hideTabMore),a(window).on("resize",f.tabAuto),t(e,p)}); \ No newline at end of file diff --git a/public/static/plug/layui/lay/modules/flow.js b/public/static/plug/layui/lay/modules/flow.js index eca5c7b4..b8d36ba0 100755 --- a/public/static/plug/layui/lay/modules/flow.js +++ b/public/static/plug/layui/lay/modules/flow.js @@ -1,2 +1,2 @@ -/** layui-v2.4.3 MIT License By https://www.layui.com */ +/** layui-v2.5.4 MIT License By https://www.layui.com */ ;layui.define("jquery",function(e){"use strict";var l=layui.$,o=function(e){},t='<i class="layui-anim layui-anim-rotate layui-anim-loop layui-icon "></i>';o.prototype.load=function(e){var o,i,n,r,a=this,c=0;e=e||{};var f=l(e.elem);if(f[0]){var m=l(e.scrollElem||document),u=e.mb||50,s=!("isAuto"in e)||e.isAuto,v=e.end||"没有更多了",y=e.scrollElem&&e.scrollElem!==document,d="<cite>加载更多</cite>",h=l('<div class="layui-flow-more"><a href="javascript:;">'+d+"</a></div>");f.find(".layui-flow-more")[0]||f.append(h);var p=function(e,t){e=l(e),h.before(e),t=0==t||null,t?h.html(v):h.find("a").html(d),i=t,o=null,n&&n()},g=function(){o=!0,h.find("a").html(t),"function"==typeof e.done&&e.done(++c,p)};if(g(),h.find("a").on("click",function(){l(this);i||o||g()}),e.isLazyimg)var n=a.lazyimg({elem:e.elem+" img",scrollElem:e.scrollElem});return s?(m.on("scroll",function(){var e=l(this),t=e.scrollTop();r&&clearTimeout(r),i||(r=setTimeout(function(){var i=y?e.height():l(window).height(),n=y?e.prop("scrollHeight"):document.documentElement.scrollHeight;n-t-i<=u&&(o||g())},100))}),a):a}},o.prototype.lazyimg=function(e){var o,t=this,i=0;e=e||{};var n=l(e.scrollElem||document),r=e.elem||"img",a=e.scrollElem&&e.scrollElem!==document,c=function(e,l){var o=n.scrollTop(),r=o+l,c=a?function(){return e.offset().top-n.offset().top+o}():e.offset().top;if(c>=o&&c<=r&&!e.attr("src")){var m=e.attr("lay-src");layui.img(m,function(){var l=t.lazyimg.elem.eq(i);e.attr("src",m).removeAttr("lay-src"),l[0]&&f(l),i++})}},f=function(e,o){var f=a?(o||n).height():l(window).height(),m=n.scrollTop(),u=m+f;if(t.lazyimg.elem=l(r),e)c(e,f);else for(var s=0;s<t.lazyimg.elem.length;s++){var v=t.lazyimg.elem.eq(s),y=a?function(){return v.offset().top-n.offset().top+m}():v.offset().top;if(c(v,f),i=s,y>u)break}};if(f(),!o){var m;n.on("scroll",function(){var e=l(this);m&&clearTimeout(m),m=setTimeout(function(){f(null,e)},50)}),o=!0}return f},e("flow",new o)}); \ No newline at end of file diff --git a/public/static/plug/layui/lay/modules/form.js b/public/static/plug/layui/lay/modules/form.js index 37c6acd0..7228ba70 100755 --- a/public/static/plug/layui/lay/modules/form.js +++ b/public/static/plug/layui/lay/modules/form.js @@ -1,2 +1,2 @@ -/** layui-v2.4.3 MIT License By https://www.layui.com */ - ;layui.define("layer",function(e){"use strict";var i=layui.$,t=layui.layer,a=layui.hint(),n=layui.device(),l="form",r=".layui-form",s="layui-this",o="layui-hide",c="layui-disabled",u=function(){this.config={verify:{required:[/[\S]+/,"必填项不能为空"],phone:[/^1\d{10}$/,"请输入正确的手机号"],email:[/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/,"邮箱格式不正确"],url:[/(^#)|(^http(s*):\/\/[^\s]+\.[^\s]+)/,"链接格式不正确"],number:function(e){if(!e||isNaN(e))return"只能填写数字"},date:[/^(\d{4})[-\/](\d{1}|0\d{1}|1[0-2])([-\/](\d{1}|0\d{1}|[1-2][0-9]|3[0-1]))*$/,"日期格式不正确"],identity:[/(^\d{15}$)|(^\d{17}(x|X|\d)$)/,"请输入正确的身份证号"]}}};u.prototype.set=function(e){var t=this;return i.extend(!0,t.config,e),t},u.prototype.verify=function(e){var t=this;return i.extend(!0,t.config.verify,e),t},u.prototype.on=function(e,i){return layui.onevent.call(this,l,e,i)},u.prototype.val=function(e,t){var a=i(r+'[lay-filter="'+e+'"]');a.each(function(e,a){var n=i(this);layui.each(t,function(e,i){var t,a=n.find('[name="'+e+'"]');a[0]&&(t=a[0].type,"checkbox"===t?a[0].checked=i:"radio"===t?a.each(function(){this.value===i&&(this.checked=!0)}):a.val(i))})}),f.render(null,e)},u.prototype.render=function(e,t){var n=this,u=i(r+function(){return t?'[lay-filter="'+t+'"]':""}()),d={select:function(){var e,t="请选择",a="layui-form-select",n="layui-select-title",r="layui-select-none",d="",f=u.find("select"),v=function(t,l){i(t.target).parent().hasClass(n)&&!l||(i("."+a).removeClass(a+"ed "+a+"up"),e&&d&&e.val(d)),e=null},y=function(t,u,f){var y,p=i(this),m=t.find("."+n),k=m.find("input"),x=t.find("dl"),g=x.children("dd"),b=this.selectedIndex;if(!u){var C=function(){var e=t.offset().top+t.outerHeight()+5-h.scrollTop(),i=x.outerHeight();b=p[0].selectedIndex,t.addClass(a+"ed"),g.removeClass(o),y=null,g.eq(b).addClass(s).siblings().removeClass(s),e+i>h.height()&&e>=i&&t.addClass(a+"up"),$()},w=function(e){t.removeClass(a+"ed "+a+"up"),k.blur(),y=null,e||T(k.val(),function(e){e&&(d=x.find("."+s).html(),k&&k.val(d))})},$=function(){var e=x.children("dd."+s);if(e[0]){var i=e.position().top,t=x.height(),a=e.height();i>t&&x.scrollTop(i+x.scrollTop()-t+a-5),i<0&&x.scrollTop(i+x.scrollTop()-5)}};m.on("click",function(e){t.hasClass(a+"ed")?w():(v(e,!0),C()),x.find("."+r).remove()}),m.find(".layui-edge").on("click",function(){k.focus()}),k.on("keyup",function(e){var i=e.keyCode;9===i&&C()}).on("keydown",function(e){var i=e.keyCode;9===i&&w();var t=function(i,a){var n,l;e.preventDefault();var r=function(){var e=x.children("dd."+s);if(x.children("dd."+o)[0]&&"next"===i){var t=x.children("dd:not(."+o+",."+c+")"),n=t.eq(0).index();if(n>=0&&n<e.index()&&!t.hasClass(s))return t.eq(0).prev()[0]?t.eq(0).prev():x.children(":last")}return a&&a[0]?a:y&&y[0]?y:e}();return l=r[i](),n=r[i]("dd:not(."+o+")"),l[0]?(y=r[i](),n[0]&&!n.hasClass(c)||!y[0]?(n.addClass(s).siblings().removeClass(s),void $()):t(i,y)):y=null};38===i&&t("prev"),40===i&&t("next"),13===i&&(e.preventDefault(),x.children("dd."+s).trigger("click"))});var T=function(e,t,a){var n=0;layui.each(g,function(){var t=i(this),l=t.text(),r=l.indexOf(e)===-1;(""===e||"blur"===a?e!==l:r)&&n++,"keyup"===a&&t[r?"addClass":"removeClass"](o)});var l=n===g.length;return t(l),l},j=function(e){var i=this.value,t=e.keyCode;return 9!==t&&13!==t&&37!==t&&38!==t&&39!==t&&40!==t&&(T(i,function(e){e?x.find("."+r)[0]||x.append('<p class="'+r+'">无匹配项</p>'):x.find("."+r).remove()},"keyup"),""===i&&x.find("."+r).remove(),void $())};f&&k.on("keyup",j).on("blur",function(t){var a=p[0].selectedIndex;e=k,d=i(p[0].options[a]).html(),setTimeout(function(){T(k.val(),function(e){d||k.val("")},"blur")},200)}),g.on("click",function(){var e=i(this),a=e.attr("lay-value"),n=p.attr("lay-filter");return!e.hasClass(c)&&(e.hasClass("layui-select-tips")?k.val(""):(k.val(e.text()),e.addClass(s)),e.siblings().removeClass(s),p.val(a).removeClass("layui-form-danger"),layui.event.call(this,l,"select("+n+")",{elem:p[0],value:a,othis:t}),w(!0),!1)}),t.find("dl>dt").on("click",function(e){return!1}),i(document).off("click",v).on("click",v)}};f.each(function(e,l){var r=i(this),o=r.next("."+a),u=this.disabled,d=l.value,f=i(l.options[l.selectedIndex]),v=l.options[0];if("string"==typeof r.attr("lay-ignore"))return r.show();var h="string"==typeof r.attr("lay-search"),p=v?v.value?t:v.innerHTML||t:t,m=i(['<div class="'+(h?"":"layui-unselect ")+a,(u?" layui-select-disabled":"")+'">','<div class="'+n+'">','<input type="text" placeholder="'+p+'" '+('value="'+(d?f.html():"")+'"')+(h?"":" readonly")+' class="layui-input'+(h?"":" layui-unselect")+(u?" "+c:"")+'">','<i class="layui-edge"></i></div>','<dl class="layui-anim layui-anim-upbit'+(r.find("optgroup")[0]?" layui-select-group":"")+'">',function(e){var i=[];return layui.each(e,function(e,a){0!==e||a.value?"optgroup"===a.tagName.toLowerCase()?i.push("<dt>"+a.label+"</dt>"):i.push('<dd lay-value="'+a.value+'" class="'+(d===a.value?s:"")+(a.disabled?" "+c:"")+'">'+a.innerHTML+"</dd>"):i.push('<dd lay-value="" class="layui-select-tips">'+(a.innerHTML||t)+"</dd>")}),0===i.length&&i.push('<dd lay-value="" class="'+c+'">没有选项</dd>'),i.join("")}(r.find("*"))+"</dl>","</div>"].join(""));o[0]&&o.remove(),r.after(m),y.call(this,m,u,h)})},checkbox:function(){var e={checkbox:["layui-form-checkbox","layui-form-checked","checkbox"],_switch:["layui-form-switch","layui-form-onswitch","switch"]},t=u.find("input[type=checkbox]"),a=function(e,t){var a=i(this);e.on("click",function(){var i=a.attr("lay-filter"),n=(a.attr("lay-text")||"").split("|");a[0].disabled||(a[0].checked?(a[0].checked=!1,e.removeClass(t[1]).find("em").text(n[1])):(a[0].checked=!0,e.addClass(t[1]).find("em").text(n[0])),layui.event.call(a[0],l,t[2]+"("+i+")",{elem:a[0],value:a[0].value,othis:e}))})};t.each(function(t,n){var l=i(this),r=l.attr("lay-skin"),s=(l.attr("lay-text")||"").split("|"),o=this.disabled;"switch"===r&&(r="_"+r);var u=e[r]||e.checkbox;if("string"==typeof l.attr("lay-ignore"))return l.show();var d=l.next("."+u[0]),f=i(['<div class="layui-unselect '+u[0],n.checked?" "+u[1]:"",o?" layui-checkbox-disbaled "+c:"",'"',r?' lay-skin="'+r+'"':"",">",function(){var e=n.title.replace(/\s/g,""),i={checkbox:[e?"<span>"+n.title+"</span>":"",'<i class="layui-icon layui-icon-ok"></i>'].join(""),_switch:"<em>"+((n.checked?s[0]:s[1])||"")+"</em><i></i>"};return i[r]||i.checkbox}(),"</div>"].join(""));d[0]&&d.remove(),l.after(f),a.call(this,f,u)})},radio:function(){var e="layui-form-radio",t=["",""],a=u.find("input[type=radio]"),n=function(a){var n=i(this),s="layui-anim-scaleSpring";a.on("click",function(){var o=n[0].name,c=n.parents(r),u=n.attr("lay-filter"),d=c.find("input[name="+o.replace(/(\.|#|\[|\])/g,"\\$1")+"]");n[0].disabled||(layui.each(d,function(){var a=i(this).next("."+e);this.checked=!1,a.removeClass(e+"ed"),a.find(".layui-icon").removeClass(s).html(t[1])}),n[0].checked=!0,a.addClass(e+"ed"),a.find(".layui-icon").addClass(s).html(t[0]),layui.event.call(n[0],l,"radio("+u+")",{elem:n[0],value:n[0].value,othis:a}))})};a.each(function(a,l){var r=i(this),s=r.next("."+e),o=this.disabled;if("string"==typeof r.attr("lay-ignore"))return r.show();s[0]&&s.remove();var u=i(['<div class="layui-unselect '+e,l.checked?" "+e+"ed":"",(o?" layui-radio-disbaled "+c:"")+'">','<i class="layui-anim layui-icon">'+t[l.checked?0:1]+"</i>","<div>"+function(){var e=l.title||"";return"string"==typeof r.next().attr("lay-radio")&&(e=r.next().html(),r.next().remove()),e}()+"</div>","</div>"].join(""));r.after(u),n.call(this,u)})}};return e?d[e]?d[e]():a.error("不支持的"+e+"表单渲染"):layui.each(d,function(e,i){i()}),n};var d=function(){var e=i(this),a=f.config.verify,s=null,o="layui-form-danger",c={},u=e.parents(r),d=u.find("*[lay-verify]"),v=e.parents("form")[0],h=u.find("input,select,textarea"),y=e.attr("lay-filter");if(layui.each(d,function(e,l){var r=i(this),c=r.attr("lay-verify").split("|"),u=r.attr("lay-verType"),d=r.val();if(r.removeClass(o),layui.each(c,function(e,i){var c,f="",v="function"==typeof a[i];if(a[i]){var c=v?f=a[i](d,l):!a[i][0].test(d);if(f=f||a[i][1],c)return"tips"===u?t.tips(f,function(){return"string"==typeof r.attr("lay-ignore")||"select"!==l.tagName.toLowerCase()&&!/^checkbox|radio$/.test(l.type)?r:r.next()}(),{tips:1}):"alert"===u?t.alert(f,{title:"提示",shadeClose:!0}):t.msg(f,{icon:5,shift:6}),n.android||n.ios||l.focus(),r.addClass(o),s=!0}}),s)return s}),s)return!1;var p={};return layui.each(h,function(e,i){if(i.name=(i.name||"").replace(/^\s*|\s*&/,""),i.name){if(/^.*\[\]$/.test(i.name)){var t=i.name.match(/^(.*)\[\]$/g)[0];p[t]=0|p[t],i.name=i.name.replace(/^(.*)\[\]$/,"$1["+p[t]++ +"]")}/^checkbox|radio$/.test(i.type)&&!i.checked||(c[i.name]=i.value)}}),layui.event.call(this,l,"submit("+y+")",{elem:this,form:v,field:c})},f=new u,v=i(document),h=i(window);f.render(),v.on("reset",r,function(){var e=i(this).attr("lay-filter");setTimeout(function(){f.render(null,e)},50)}),v.on("submit",r,d).on("click","*[lay-submit]",d),e(l,f)}); \ No newline at end of file +/** layui-v2.5.4 MIT License By https://www.layui.com */ + ;layui.define("layer",function(e){"use strict";var t=layui.$,i=layui.layer,a=layui.hint(),n=layui.device(),l="form",r=".layui-form",s="layui-this",o="layui-hide",c="layui-disabled",u=function(){this.config={verify:{required:[/[\S]+/,"必填项不能为空"],phone:[/^1\d{10}$/,"请输入正确的手机号"],email:[/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/,"邮箱格式不正确"],url:[/(^#)|(^http(s*):\/\/[^\s]+\.[^\s]+)/,"链接格式不正确"],number:function(e){if(!e||isNaN(e))return"只能填写数字"},date:[/^(\d{4})[-\/](\d{1}|0\d{1}|1[0-2])([-\/](\d{1}|0\d{1}|[1-2][0-9]|3[0-1]))*$/,"日期格式不正确"],identity:[/(^\d{15}$)|(^\d{17}(x|X|\d)$)/,"请输入正确的身份证号"]}}};u.prototype.set=function(e){var i=this;return t.extend(!0,i.config,e),i},u.prototype.verify=function(e){var i=this;return t.extend(!0,i.config.verify,e),i},u.prototype.on=function(e,t){return layui.onevent.call(this,l,e,t)},u.prototype.val=function(e,i){var a=t(r+'[lay-filter="'+e+'"]');a.each(function(e,a){var n=t(this);layui.each(i,function(e,t){var i,a=n.find('[name="'+e+'"]');a[0]&&(i=a[0].type,"checkbox"===i?a[0].checked=t:"radio"===i?a.each(function(){this.value==t&&(this.checked=!0)}):a.val(t))})}),f.render(null,e)},u.prototype.render=function(e,i){var n=this,u=t(r+function(){return i?'[lay-filter="'+i+'"]':""}()),d={select:function(){var e,i="请选择",a="layui-form-select",n="layui-select-title",r="layui-select-none",d="",f=u.find("select"),v=function(i,l){t(i.target).parent().hasClass(n)&&!l||(t("."+a).removeClass(a+"ed "+a+"up"),e&&d&&e.val(d)),e=null},y=function(i,u,f){var y,p=t(this),m=i.find("."+n),k=m.find("input"),x=i.find("dl"),g=x.children("dd"),b=this.selectedIndex;if(!u){var C=function(){var e=i.offset().top+i.outerHeight()+5-h.scrollTop(),t=x.outerHeight();b=p[0].selectedIndex,i.addClass(a+"ed"),g.removeClass(o),y=null,g.eq(b).addClass(s).siblings().removeClass(s),e+t>h.height()&&e>=t&&i.addClass(a+"up"),T()},w=function(e){i.removeClass(a+"ed "+a+"up"),k.blur(),y=null,e||$(k.val(),function(e){var i=p[0].selectedIndex;e&&(d=t(p[0].options[i]).html(),0===i&&d===k.attr("placeholder")&&(d=""),k.val(d||""))})},T=function(){var e=x.children("dd."+s);if(e[0]){var t=e.position().top,i=x.height(),a=e.height();t>i&&x.scrollTop(t+x.scrollTop()-i+a-5),t<0&&x.scrollTop(t+x.scrollTop()-5)}};m.on("click",function(e){i.hasClass(a+"ed")?w():(v(e,!0),C()),x.find("."+r).remove()}),m.find(".layui-edge").on("click",function(){k.focus()}),k.on("keyup",function(e){var t=e.keyCode;9===t&&C()}).on("keydown",function(e){var t=e.keyCode;9===t&&w();var i=function(t,a){var n,l;e.preventDefault();var r=function(){var e=x.children("dd."+s);if(x.children("dd."+o)[0]&&"next"===t){var i=x.children("dd:not(."+o+",."+c+")"),n=i.eq(0).index();if(n>=0&&n<e.index()&&!i.hasClass(s))return i.eq(0).prev()[0]?i.eq(0).prev():x.children(":last")}return a&&a[0]?a:y&&y[0]?y:e}();return l=r[t](),n=r[t]("dd:not(."+o+")"),l[0]?(y=r[t](),n[0]&&!n.hasClass(c)||!y[0]?(n.addClass(s).siblings().removeClass(s),void T()):i(t,y)):y=null};38===t&&i("prev"),40===t&&i("next"),13===t&&(e.preventDefault(),x.children("dd."+s).trigger("click"))});var $=function(e,i,a){var n=0;layui.each(g,function(){var i=t(this),l=i.text(),r=l.indexOf(e)===-1;(""===e||"blur"===a?e!==l:r)&&n++,"keyup"===a&&i[r?"addClass":"removeClass"](o)});var l=n===g.length;return i(l),l},q=function(e){var t=this.value,i=e.keyCode;return 9!==i&&13!==i&&37!==i&&38!==i&&39!==i&&40!==i&&($(t,function(e){e?x.find("."+r)[0]||x.append('<p class="'+r+'">无匹配项</p>'):x.find("."+r).remove()},"keyup"),""===t&&x.find("."+r).remove(),void T())};f&&k.on("keyup",q).on("blur",function(i){var a=p[0].selectedIndex;e=k,d=t(p[0].options[a]).html(),0===a&&d===k.attr("placeholder")&&(d=""),setTimeout(function(){$(k.val(),function(e){d||k.val("")},"blur")},200)}),g.on("click",function(){var e=t(this),a=e.attr("lay-value"),n=p.attr("lay-filter");return!e.hasClass(c)&&(e.hasClass("layui-select-tips")?k.val(""):(k.val(e.text()),e.addClass(s)),e.siblings().removeClass(s),p.val(a).removeClass("layui-form-danger"),layui.event.call(this,l,"select("+n+")",{elem:p[0],value:a,othis:i}),w(!0),!1)}),i.find("dl>dt").on("click",function(e){return!1}),t(document).off("click",v).on("click",v)}};f.each(function(e,l){var r=t(this),o=r.next("."+a),u=this.disabled,d=l.value,f=t(l.options[l.selectedIndex]),v=l.options[0];if("string"==typeof r.attr("lay-ignore"))return r.show();var h="string"==typeof r.attr("lay-search"),p=v?v.value?i:v.innerHTML||i:i,m=t(['<div class="'+(h?"":"layui-unselect ")+a,(u?" layui-select-disabled":"")+'">','<div class="'+n+'">','<input type="text" placeholder="'+p+'" '+('value="'+(d?f.html():"")+'"')+(h?"":" readonly")+' class="layui-input'+(h?"":" layui-unselect")+(u?" "+c:"")+'">','<i class="layui-edge"></i></div>','<dl class="layui-anim layui-anim-upbit'+(r.find("optgroup")[0]?" layui-select-group":"")+'">',function(e){var t=[];return layui.each(e,function(e,a){0!==e||a.value?"optgroup"===a.tagName.toLowerCase()?t.push("<dt>"+a.label+"</dt>"):t.push('<dd lay-value="'+a.value+'" class="'+(d===a.value?s:"")+(a.disabled?" "+c:"")+'">'+a.innerHTML+"</dd>"):t.push('<dd lay-value="" class="layui-select-tips">'+(a.innerHTML||i)+"</dd>")}),0===t.length&&t.push('<dd lay-value="" class="'+c+'">没有选项</dd>'),t.join("")}(r.find("*"))+"</dl>","</div>"].join(""));o[0]&&o.remove(),r.after(m),y.call(this,m,u,h)})},checkbox:function(){var e={checkbox:["layui-form-checkbox","layui-form-checked","checkbox"],_switch:["layui-form-switch","layui-form-onswitch","switch"]},i=u.find("input[type=checkbox]"),a=function(e,i){var a=t(this);e.on("click",function(){var t=a.attr("lay-filter"),n=(a.attr("lay-text")||"").split("|");a[0].disabled||(a[0].checked?(a[0].checked=!1,e.removeClass(i[1]).find("em").text(n[1])):(a[0].checked=!0,e.addClass(i[1]).find("em").text(n[0])),layui.event.call(a[0],l,i[2]+"("+t+")",{elem:a[0],value:a[0].value,othis:e}))})};i.each(function(i,n){var l=t(this),r=l.attr("lay-skin"),s=(l.attr("lay-text")||"").split("|"),o=this.disabled;"switch"===r&&(r="_"+r);var u=e[r]||e.checkbox;if("string"==typeof l.attr("lay-ignore"))return l.show();var d=l.next("."+u[0]),f=t(['<div class="layui-unselect '+u[0],n.checked?" "+u[1]:"",o?" layui-checkbox-disbaled "+c:"",'"',r?' lay-skin="'+r+'"':"",">",function(){var e=n.title.replace(/\s/g,""),t={checkbox:[e?"<span>"+n.title+"</span>":"",'<i class="layui-icon layui-icon-ok"></i>'].join(""),_switch:"<em>"+((n.checked?s[0]:s[1])||"")+"</em><i></i>"};return t[r]||t.checkbox}(),"</div>"].join(""));d[0]&&d.remove(),l.after(f),a.call(this,f,u)})},radio:function(){var e="layui-form-radio",i=["",""],a=u.find("input[type=radio]"),n=function(a){var n=t(this),s="layui-anim-scaleSpring";a.on("click",function(){var o=n[0].name,c=n.parents(r),u=n.attr("lay-filter"),d=c.find("input[name="+o.replace(/(\.|#|\[|\])/g,"\\$1")+"]");n[0].disabled||(layui.each(d,function(){var a=t(this).next("."+e);this.checked=!1,a.removeClass(e+"ed"),a.find(".layui-icon").removeClass(s).html(i[1])}),n[0].checked=!0,a.addClass(e+"ed"),a.find(".layui-icon").addClass(s).html(i[0]),layui.event.call(n[0],l,"radio("+u+")",{elem:n[0],value:n[0].value,othis:a}))})};a.each(function(a,l){var r=t(this),s=r.next("."+e),o=this.disabled;if("string"==typeof r.attr("lay-ignore"))return r.show();s[0]&&s.remove();var u=t(['<div class="layui-unselect '+e,l.checked?" "+e+"ed":"",(o?" layui-radio-disbaled "+c:"")+'">','<i class="layui-anim layui-icon">'+i[l.checked?0:1]+"</i>","<div>"+function(){var e=l.title||"";return"string"==typeof r.next().attr("lay-radio")&&(e=r.next().html(),r.next().remove()),e}()+"</div>","</div>"].join(""));r.after(u),n.call(this,u)})}};return e?d[e]?d[e]():a.error("不支持的"+e+"表单渲染"):layui.each(d,function(e,t){t()}),n};var d=function(){var e=t(this),a=f.config.verify,s=null,o="layui-form-danger",c={},u=e.parents(r),d=u.find("*[lay-verify]"),v=e.parents("form")[0],h=u.find("input,select,textarea"),y=e.attr("lay-filter");if(layui.each(d,function(e,l){var r=t(this),c=r.attr("lay-verify").split("|"),u=r.attr("lay-verType"),d=r.val();if(r.removeClass(o),layui.each(c,function(e,t){var c,f="",v="function"==typeof a[t];if(a[t]){var c=v?f=a[t](d,l):!a[t][0].test(d);if(f=f||a[t][1],"required"===t&&(f=r.attr("lay-reqText")||f),c)return"tips"===u?i.tips(f,function(){return"string"==typeof r.attr("lay-ignore")||"select"!==l.tagName.toLowerCase()&&!/^checkbox|radio$/.test(l.type)?r:r.next()}(),{tips:1}):"alert"===u?i.alert(f,{title:"提示",shadeClose:!0}):i.msg(f,{icon:5,shift:6}),n.android||n.ios||setTimeout(function(){l.focus()},7),r.addClass(o),s=!0}}),s)return s}),s)return!1;var p={};return layui.each(h,function(e,t){if(t.name=(t.name||"").replace(/^\s*|\s*&/,""),t.name){if(/^.*\[\]$/.test(t.name)){var i=t.name.match(/^(.*)\[\]$/g)[0];p[i]=0|p[i],t.name=t.name.replace(/^(.*)\[\]$/,"$1["+p[i]++ +"]")}/^checkbox|radio$/.test(t.type)&&!t.checked||(c[t.name]=t.value)}}),layui.event.call(this,l,"submit("+y+")",{elem:this,form:v,field:c})},f=new u,v=t(document),h=t(window);f.render(),v.on("reset",r,function(){var e=t(this).attr("lay-filter");setTimeout(function(){f.render(null,e)},50)}),v.on("submit",r,d).on("click","*[lay-submit]",d),e(l,f)}); \ No newline at end of file diff --git a/public/static/plug/layui/lay/modules/jquery.js b/public/static/plug/layui/lay/modules/jquery.js index f8c2b582..387b69ef 100755 --- a/public/static/plug/layui/lay/modules/jquery.js +++ b/public/static/plug/layui/lay/modules/jquery.js @@ -1,4 +1,4 @@ -/** layui-v2.4.3 MIT License By https://www.layui.com */ +/** layui-v2.5.4 MIT License By https://www.layui.com */ ;!function(e,t){"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(e,t){function n(e){var t=!!e&&"length"in e&&e.length,n=pe.type(e);return"function"!==n&&!pe.isWindow(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}function r(e,t,n){if(pe.isFunction(t))return pe.grep(e,function(e,r){return!!t.call(e,r,e)!==n});if(t.nodeType)return pe.grep(e,function(e){return e===t!==n});if("string"==typeof t){if(Ce.test(t))return pe.filter(t,e,n);t=pe.filter(t,e)}return pe.grep(e,function(e){return pe.inArray(e,t)>-1!==n})}function i(e,t){do e=e[t];while(e&&1!==e.nodeType);return e}function o(e){var t={};return pe.each(e.match(De)||[],function(e,n){t[n]=!0}),t}function a(){re.addEventListener?(re.removeEventListener("DOMContentLoaded",s),e.removeEventListener("load",s)):(re.detachEvent("onreadystatechange",s),e.detachEvent("onload",s))}function s(){(re.addEventListener||"load"===e.event.type||"complete"===re.readyState)&&(a(),pe.ready())}function u(e,t,n){if(void 0===n&&1===e.nodeType){var r="data-"+t.replace(_e,"-$1").toLowerCase();if(n=e.getAttribute(r),"string"==typeof n){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:qe.test(n)?pe.parseJSON(n):n)}catch(i){}pe.data(e,t,n)}else n=void 0}return n}function l(e){var t;for(t in e)if(("data"!==t||!pe.isEmptyObject(e[t]))&&"toJSON"!==t)return!1;return!0}function c(e,t,n,r){if(He(e)){var i,o,a=pe.expando,s=e.nodeType,u=s?pe.cache:e,l=s?e[a]:e[a]&&a;if(l&&u[l]&&(r||u[l].data)||void 0!==n||"string"!=typeof t)return l||(l=s?e[a]=ne.pop()||pe.guid++:a),u[l]||(u[l]=s?{}:{toJSON:pe.noop}),"object"!=typeof t&&"function"!=typeof t||(r?u[l]=pe.extend(u[l],t):u[l].data=pe.extend(u[l].data,t)),o=u[l],r||(o.data||(o.data={}),o=o.data),void 0!==n&&(o[pe.camelCase(t)]=n),"string"==typeof t?(i=o[t],null==i&&(i=o[pe.camelCase(t)])):i=o,i}}function f(e,t,n){if(He(e)){var r,i,o=e.nodeType,a=o?pe.cache:e,s=o?e[pe.expando]:pe.expando;if(a[s]){if(t&&(r=n?a[s]:a[s].data)){pe.isArray(t)?t=t.concat(pe.map(t,pe.camelCase)):t in r?t=[t]:(t=pe.camelCase(t),t=t in r?[t]:t.split(" ")),i=t.length;for(;i--;)delete r[t[i]];if(n?!l(r):!pe.isEmptyObject(r))return}(n||(delete a[s].data,l(a[s])))&&(o?pe.cleanData([e],!0):fe.deleteExpando||a!=a.window?delete a[s]:a[s]=void 0)}}}function d(e,t,n,r){var i,o=1,a=20,s=r?function(){return r.cur()}:function(){return pe.css(e,t,"")},u=s(),l=n&&n[3]||(pe.cssNumber[t]?"":"px"),c=(pe.cssNumber[t]||"px"!==l&&+u)&&Me.exec(pe.css(e,t));if(c&&c[3]!==l){l=l||c[3],n=n||[],c=+u||1;do o=o||".5",c/=o,pe.style(e,t,c+l);while(o!==(o=s()/u)&&1!==o&&--a)}return n&&(c=+c||+u||0,i=n[1]?c+(n[1]+1)*n[2]:+n[2],r&&(r.unit=l,r.start=c,r.end=i)),i}function p(e){var t=ze.split("|"),n=e.createDocumentFragment();if(n.createElement)for(;t.length;)n.createElement(t.pop());return n}function h(e,t){var n,r,i=0,o="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):void 0;if(!o)for(o=[],n=e.childNodes||e;null!=(r=n[i]);i++)!t||pe.nodeName(r,t)?o.push(r):pe.merge(o,h(r,t));return void 0===t||t&&pe.nodeName(e,t)?pe.merge([e],o):o}function g(e,t){for(var n,r=0;null!=(n=e[r]);r++)pe._data(n,"globalEval",!t||pe._data(t[r],"globalEval"))}function m(e){Be.test(e.type)&&(e.defaultChecked=e.checked)}function y(e,t,n,r,i){for(var o,a,s,u,l,c,f,d=e.length,y=p(t),v=[],x=0;x<d;x++)if(a=e[x],a||0===a)if("object"===pe.type(a))pe.merge(v,a.nodeType?[a]:a);else if(Ue.test(a)){for(u=u||y.appendChild(t.createElement("div")),l=(We.exec(a)||["",""])[1].toLowerCase(),f=Xe[l]||Xe._default,u.innerHTML=f[1]+pe.htmlPrefilter(a)+f[2],o=f[0];o--;)u=u.lastChild;if(!fe.leadingWhitespace&&$e.test(a)&&v.push(t.createTextNode($e.exec(a)[0])),!fe.tbody)for(a="table"!==l||Ve.test(a)?"<table>"!==f[1]||Ve.test(a)?0:u:u.firstChild,o=a&&a.childNodes.length;o--;)pe.nodeName(c=a.childNodes[o],"tbody")&&!c.childNodes.length&&a.removeChild(c);for(pe.merge(v,u.childNodes),u.textContent="";u.firstChild;)u.removeChild(u.firstChild);u=y.lastChild}else v.push(t.createTextNode(a));for(u&&y.removeChild(u),fe.appendChecked||pe.grep(h(v,"input"),m),x=0;a=v[x++];)if(r&&pe.inArray(a,r)>-1)i&&i.push(a);else if(s=pe.contains(a.ownerDocument,a),u=h(y.appendChild(a),"script"),s&&g(u),n)for(o=0;a=u[o++];)Ie.test(a.type||"")&&n.push(a);return u=null,y}function v(){return!0}function x(){return!1}function b(){try{return re.activeElement}catch(e){}}function w(e,t,n,r,i,o){var a,s;if("object"==typeof t){"string"!=typeof n&&(r=r||n,n=void 0);for(s in t)w(e,s,n,r,t[s],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),i===!1)i=x;else if(!i)return e;return 1===o&&(a=i,i=function(e){return pe().off(e),a.apply(this,arguments)},i.guid=a.guid||(a.guid=pe.guid++)),e.each(function(){pe.event.add(this,t,i,r,n)})}function T(e,t){return pe.nodeName(e,"table")&&pe.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function C(e){return e.type=(null!==pe.find.attr(e,"type"))+"/"+e.type,e}function E(e){var t=it.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function N(e,t){if(1===t.nodeType&&pe.hasData(e)){var n,r,i,o=pe._data(e),a=pe._data(t,o),s=o.events;if(s){delete a.handle,a.events={};for(n in s)for(r=0,i=s[n].length;r<i;r++)pe.event.add(t,n,s[n][r])}a.data&&(a.data=pe.extend({},a.data))}}function k(e,t){var n,r,i;if(1===t.nodeType){if(n=t.nodeName.toLowerCase(),!fe.noCloneEvent&&t[pe.expando]){i=pe._data(t);for(r in i.events)pe.removeEvent(t,r,i.handle);t.removeAttribute(pe.expando)}"script"===n&&t.text!==e.text?(C(t).text=e.text,E(t)):"object"===n?(t.parentNode&&(t.outerHTML=e.outerHTML),fe.html5Clone&&e.innerHTML&&!pe.trim(t.innerHTML)&&(t.innerHTML=e.innerHTML)):"input"===n&&Be.test(e.type)?(t.defaultChecked=t.checked=e.checked,t.value!==e.value&&(t.value=e.value)):"option"===n?t.defaultSelected=t.selected=e.defaultSelected:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}}function S(e,t,n,r){t=oe.apply([],t);var i,o,a,s,u,l,c=0,f=e.length,d=f-1,p=t[0],g=pe.isFunction(p);if(g||f>1&&"string"==typeof p&&!fe.checkClone&&rt.test(p))return e.each(function(i){var o=e.eq(i);g&&(t[0]=p.call(this,i,o.html())),S(o,t,n,r)});if(f&&(l=y(t,e[0].ownerDocument,!1,e,r),i=l.firstChild,1===l.childNodes.length&&(l=i),i||r)){for(s=pe.map(h(l,"script"),C),a=s.length;c<f;c++)o=l,c!==d&&(o=pe.clone(o,!0,!0),a&&pe.merge(s,h(o,"script"))),n.call(e[c],o,c);if(a)for(u=s[s.length-1].ownerDocument,pe.map(s,E),c=0;c<a;c++)o=s[c],Ie.test(o.type||"")&&!pe._data(o,"globalEval")&&pe.contains(u,o)&&(o.src?pe._evalUrl&&pe._evalUrl(o.src):pe.globalEval((o.text||o.textContent||o.innerHTML||"").replace(ot,"")));l=i=null}return e}function A(e,t,n){for(var r,i=t?pe.filter(t,e):e,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||pe.cleanData(h(r)),r.parentNode&&(n&&pe.contains(r.ownerDocument,r)&&g(h(r,"script")),r.parentNode.removeChild(r));return e}function D(e,t){var n=pe(t.createElement(e)).appendTo(t.body),r=pe.css(n[0],"display");return n.detach(),r}function j(e){var t=re,n=lt[e];return n||(n=D(e,t),"none"!==n&&n||(ut=(ut||pe("<iframe frameborder='0' width='0' height='0'/>")).appendTo(t.documentElement),t=(ut[0].contentWindow||ut[0].contentDocument).document,t.write(),t.close(),n=D(e,t),ut.detach()),lt[e]=n),n}function L(e,t){return{get:function(){return e()?void delete this.get:(this.get=t).apply(this,arguments)}}}function H(e){if(e in Et)return e;for(var t=e.charAt(0).toUpperCase()+e.slice(1),n=Ct.length;n--;)if(e=Ct[n]+t,e in Et)return e}function q(e,t){for(var n,r,i,o=[],a=0,s=e.length;a<s;a++)r=e[a],r.style&&(o[a]=pe._data(r,"olddisplay"),n=r.style.display,t?(o[a]||"none"!==n||(r.style.display=""),""===r.style.display&&Re(r)&&(o[a]=pe._data(r,"olddisplay",j(r.nodeName)))):(i=Re(r),(n&&"none"!==n||!i)&&pe._data(r,"olddisplay",i?n:pe.css(r,"display"))));for(a=0;a<s;a++)r=e[a],r.style&&(t&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=t?o[a]||"":"none"));return e}function _(e,t,n){var r=bt.exec(t);return r?Math.max(0,r[1]-(n||0))+(r[2]||"px"):t}function F(e,t,n,r,i){for(var o=n===(r?"border":"content")?4:"width"===t?1:0,a=0;o<4;o+=2)"margin"===n&&(a+=pe.css(e,n+Oe[o],!0,i)),r?("content"===n&&(a-=pe.css(e,"padding"+Oe[o],!0,i)),"margin"!==n&&(a-=pe.css(e,"border"+Oe[o]+"Width",!0,i))):(a+=pe.css(e,"padding"+Oe[o],!0,i),"padding"!==n&&(a+=pe.css(e,"border"+Oe[o]+"Width",!0,i)));return a}function M(t,n,r){var i=!0,o="width"===n?t.offsetWidth:t.offsetHeight,a=ht(t),s=fe.boxSizing&&"border-box"===pe.css(t,"boxSizing",!1,a);if(re.msFullscreenElement&&e.top!==e&&t.getClientRects().length&&(o=Math.round(100*t.getBoundingClientRect()[n])),o<=0||null==o){if(o=gt(t,n,a),(o<0||null==o)&&(o=t.style[n]),ft.test(o))return o;i=s&&(fe.boxSizingReliable()||o===t.style[n]),o=parseFloat(o)||0}return o+F(t,n,r||(s?"border":"content"),i,a)+"px"}function O(e,t,n,r,i){return new O.prototype.init(e,t,n,r,i)}function R(){return e.setTimeout(function(){Nt=void 0}),Nt=pe.now()}function P(e,t){var n,r={height:e},i=0;for(t=t?1:0;i<4;i+=2-t)n=Oe[i],r["margin"+n]=r["padding"+n]=e;return t&&(r.opacity=r.width=e),r}function B(e,t,n){for(var r,i=($.tweeners[t]||[]).concat($.tweeners["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,t,e))return r}function W(e,t,n){var r,i,o,a,s,u,l,c,f=this,d={},p=e.style,h=e.nodeType&&Re(e),g=pe._data(e,"fxshow");n.queue||(s=pe._queueHooks(e,"fx"),null==s.unqueued&&(s.unqueued=0,u=s.empty.fire,s.empty.fire=function(){s.unqueued||u()}),s.unqueued++,f.always(function(){f.always(function(){s.unqueued--,pe.queue(e,"fx").length||s.empty.fire()})})),1===e.nodeType&&("height"in t||"width"in t)&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],l=pe.css(e,"display"),c="none"===l?pe._data(e,"olddisplay")||j(e.nodeName):l,"inline"===c&&"none"===pe.css(e,"float")&&(fe.inlineBlockNeedsLayout&&"inline"!==j(e.nodeName)?p.zoom=1:p.display="inline-block")),n.overflow&&(p.overflow="hidden",fe.shrinkWrapBlocks()||f.always(function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]}));for(r in t)if(i=t[r],St.exec(i)){if(delete t[r],o=o||"toggle"===i,i===(h?"hide":"show")){if("show"!==i||!g||void 0===g[r])continue;h=!0}d[r]=g&&g[r]||pe.style(e,r)}else l=void 0;if(pe.isEmptyObject(d))"inline"===("none"===l?j(e.nodeName):l)&&(p.display=l);else{g?"hidden"in g&&(h=g.hidden):g=pe._data(e,"fxshow",{}),o&&(g.hidden=!h),h?pe(e).show():f.done(function(){pe(e).hide()}),f.done(function(){var t;pe._removeData(e,"fxshow");for(t in d)pe.style(e,t,d[t])});for(r in d)a=B(h?g[r]:0,r,f),r in g||(g[r]=a.start,h&&(a.end=a.start,a.start="width"===r||"height"===r?1:0))}}function I(e,t){var n,r,i,o,a;for(n in e)if(r=pe.camelCase(n),i=t[r],o=e[n],pe.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),a=pe.cssHooks[r],a&&"expand"in a){o=a.expand(o),delete e[r];for(n in o)n in e||(e[n]=o[n],t[n]=i)}else t[r]=i}function $(e,t,n){var r,i,o=0,a=$.prefilters.length,s=pe.Deferred().always(function(){delete u.elem}),u=function(){if(i)return!1;for(var t=Nt||R(),n=Math.max(0,l.startTime+l.duration-t),r=n/l.duration||0,o=1-r,a=0,u=l.tweens.length;a<u;a++)l.tweens[a].run(o);return s.notifyWith(e,[l,o,n]),o<1&&u?n:(s.resolveWith(e,[l]),!1)},l=s.promise({elem:e,props:pe.extend({},t),opts:pe.extend(!0,{specialEasing:{},easing:pe.easing._default},n),originalProperties:t,originalOptions:n,startTime:Nt||R(),duration:n.duration,tweens:[],createTween:function(t,n){var r=pe.Tween(e,l.opts,t,n,l.opts.specialEasing[t]||l.opts.easing);return l.tweens.push(r),r},stop:function(t){var n=0,r=t?l.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)l.tweens[n].run(1);return t?(s.notifyWith(e,[l,1,0]),s.resolveWith(e,[l,t])):s.rejectWith(e,[l,t]),this}}),c=l.props;for(I(c,l.opts.specialEasing);o<a;o++)if(r=$.prefilters[o].call(l,e,c,l.opts))return pe.isFunction(r.stop)&&(pe._queueHooks(l.elem,l.opts.queue).stop=pe.proxy(r.stop,r)),r;return pe.map(c,B,l),pe.isFunction(l.opts.start)&&l.opts.start.call(e,l),pe.fx.timer(pe.extend(u,{elem:e,anim:l,queue:l.opts.queue})),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always)}function z(e){return pe.attr(e,"class")||""}function X(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,o=t.toLowerCase().match(De)||[];if(pe.isFunction(n))for(;r=o[i++];)"+"===r.charAt(0)?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function U(e,t,n,r){function i(s){var u;return o[s]=!0,pe.each(e[s]||[],function(e,s){var l=s(t,n,r);return"string"!=typeof l||a||o[l]?a?!(u=l):void 0:(t.dataTypes.unshift(l),i(l),!1)}),u}var o={},a=e===Qt;return i(t.dataTypes[0])||!o["*"]&&i("*")}function V(e,t){var n,r,i=pe.ajaxSettings.flatOptions||{};for(r in t)void 0!==t[r]&&((i[r]?e:n||(n={}))[r]=t[r]);return n&&pe.extend(!0,e,n),e}function Y(e,t,n){for(var r,i,o,a,s=e.contents,u=e.dataTypes;"*"===u[0];)u.shift(),void 0===i&&(i=e.mimeType||t.getResponseHeader("Content-Type"));if(i)for(a in s)if(s[a]&&s[a].test(i)){u.unshift(a);break}if(u[0]in n)o=u[0];else{for(a in n){if(!u[0]||e.converters[a+" "+u[0]]){o=a;break}r||(r=a)}o=o||r}if(o)return o!==u[0]&&u.unshift(o),n[o]}function J(e,t,n,r){var i,o,a,s,u,l={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)l[a.toLowerCase()]=e.converters[a];for(o=c.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!u&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u=o,o=c.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(a=l[u+" "+o]||l["* "+o],!a)for(i in l)if(s=i.split(" "),s[1]===o&&(a=l[u+" "+s[0]]||l["* "+s[0]])){a===!0?a=l[i]:l[i]!==!0&&(o=s[0],c.unshift(s[1]));break}if(a!==!0)if(a&&e["throws"])t=a(t);else try{t=a(t)}catch(f){return{state:"parsererror",error:a?f:"No conversion from "+u+" to "+o}}}return{state:"success",data:t}}function G(e){return e.style&&e.style.display||pe.css(e,"display")}function K(e){for(;e&&1===e.nodeType;){if("none"===G(e)||"hidden"===e.type)return!0;e=e.parentNode}return!1}function Q(e,t,n,r){var i;if(pe.isArray(t))pe.each(t,function(t,i){n||rn.test(e)?r(e,i):Q(e+"["+("object"==typeof i&&null!=i?t:"")+"]",i,n,r)});else if(n||"object"!==pe.type(t))r(e,t);else for(i in t)Q(e+"["+i+"]",t[i],n,r)}function Z(){try{return new e.XMLHttpRequest}catch(t){}}function ee(){try{return new e.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}function te(e){return pe.isWindow(e)?e:9===e.nodeType&&(e.defaultView||e.parentWindow)}var ne=[],re=e.document,ie=ne.slice,oe=ne.concat,ae=ne.push,se=ne.indexOf,ue={},le=ue.toString,ce=ue.hasOwnProperty,fe={},de="1.12.3",pe=function(e,t){return new pe.fn.init(e,t)},he=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,ge=/^-ms-/,me=/-([\da-z])/gi,ye=function(e,t){return t.toUpperCase()};pe.fn=pe.prototype={jquery:de,constructor:pe,selector:"",length:0,toArray:function(){return ie.call(this)},get:function(e){return null!=e?e<0?this[e+this.length]:this[e]:ie.call(this)},pushStack:function(e){var t=pe.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e){return pe.each(this,e)},map:function(e){return this.pushStack(pe.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(ie.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:ae,sort:ne.sort,splice:ne.splice},pe.extend=pe.fn.extend=function(){var e,t,n,r,i,o,a=arguments[0]||{},s=1,u=arguments.length,l=!1;for("boolean"==typeof a&&(l=a,a=arguments[s]||{},s++),"object"==typeof a||pe.isFunction(a)||(a={}),s===u&&(a=this,s--);s<u;s++)if(null!=(i=arguments[s]))for(r in i)e=a[r],n=i[r],a!==n&&(l&&n&&(pe.isPlainObject(n)||(t=pe.isArray(n)))?(t?(t=!1,o=e&&pe.isArray(e)?e:[]):o=e&&pe.isPlainObject(e)?e:{},a[r]=pe.extend(l,o,n)):void 0!==n&&(a[r]=n));return a},pe.extend({expando:"jQuery"+(de+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return"function"===pe.type(e)},isArray:Array.isArray||function(e){return"array"===pe.type(e)},isWindow:function(e){return null!=e&&e==e.window},isNumeric:function(e){var t=e&&e.toString();return!pe.isArray(e)&&t-parseFloat(t)+1>=0},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},isPlainObject:function(e){var t;if(!e||"object"!==pe.type(e)||e.nodeType||pe.isWindow(e))return!1;try{if(e.constructor&&!ce.call(e,"constructor")&&!ce.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(n){return!1}if(!fe.ownFirst)for(t in e)return ce.call(e,t);for(t in e);return void 0===t||ce.call(e,t)},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?ue[le.call(e)]||"object":typeof e},globalEval:function(t){t&&pe.trim(t)&&(e.execScript||function(t){e.eval.call(e,t)})(t)},camelCase:function(e){return e.replace(ge,"ms-").replace(me,ye)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t){var r,i=0;if(n(e))for(r=e.length;i<r&&t.call(e[i],i,e[i])!==!1;i++);else for(i in e)if(t.call(e[i],i,e[i])===!1)break;return e},trim:function(e){return null==e?"":(e+"").replace(he,"")},makeArray:function(e,t){var r=t||[];return null!=e&&(n(Object(e))?pe.merge(r,"string"==typeof e?[e]:e):ae.call(r,e)),r},inArray:function(e,t,n){var r;if(t){if(se)return se.call(t,e,n);for(r=t.length,n=n?n<0?Math.max(0,r+n):n:0;n<r;n++)if(n in t&&t[n]===e)return n}return-1},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;)e[i++]=t[r++];if(n!==n)for(;void 0!==t[r];)e[i++]=t[r++];return e.length=i,e},grep:function(e,t,n){for(var r,i=[],o=0,a=e.length,s=!n;o<a;o++)r=!t(e[o],o),r!==s&&i.push(e[o]);return i},map:function(e,t,r){var i,o,a=0,s=[];if(n(e))for(i=e.length;a<i;a++)o=t(e[a],a,r),null!=o&&s.push(o);else for(a in e)o=t(e[a],a,r),null!=o&&s.push(o);return oe.apply([],s)},guid:1,proxy:function(e,t){var n,r,i;if("string"==typeof t&&(i=e[t],t=e,e=i),pe.isFunction(e))return n=ie.call(arguments,2),r=function(){return e.apply(t||this,n.concat(ie.call(arguments)))},r.guid=e.guid=e.guid||pe.guid++,r},now:function(){return+new Date},support:fe}),"function"==typeof Symbol&&(pe.fn[Symbol.iterator]=ne[Symbol.iterator]),pe.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){ue["[object "+t+"]"]=t.toLowerCase()});var ve=function(e){function t(e,t,n,r){var i,o,a,s,u,l,f,p,h=t&&t.ownerDocument,g=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==g&&9!==g&&11!==g)return n;if(!r&&((t?t.ownerDocument||t:B)!==H&&L(t),t=t||H,_)){if(11!==g&&(l=ye.exec(e)))if(i=l[1]){if(9===g){if(!(a=t.getElementById(i)))return n;if(a.id===i)return n.push(a),n}else if(h&&(a=h.getElementById(i))&&R(t,a)&&a.id===i)return n.push(a),n}else{if(l[2])return Q.apply(n,t.getElementsByTagName(e)),n;if((i=l[3])&&w.getElementsByClassName&&t.getElementsByClassName)return Q.apply(n,t.getElementsByClassName(i)),n}if(w.qsa&&!X[e+" "]&&(!F||!F.test(e))){if(1!==g)h=t,p=e;else if("object"!==t.nodeName.toLowerCase()){for((s=t.getAttribute("id"))?s=s.replace(xe,"\\$&"):t.setAttribute("id",s=P),f=N(e),o=f.length,u=de.test(s)?"#"+s:"[id='"+s+"']";o--;)f[o]=u+" "+d(f[o]);p=f.join(","),h=ve.test(e)&&c(t.parentNode)||t}if(p)try{return Q.apply(n,h.querySelectorAll(p)),n}catch(m){}finally{s===P&&t.removeAttribute("id")}}}return S(e.replace(se,"$1"),t,n,r)}function n(){function e(n,r){return t.push(n+" ")>T.cacheLength&&delete e[t.shift()],e[n+" "]=r}var t=[];return e}function r(e){return e[P]=!0,e}function i(e){var t=H.createElement("div");try{return!!e(t)}catch(n){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function o(e,t){for(var n=e.split("|"),r=n.length;r--;)T.attrHandle[n[r]]=t}function a(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||V)-(~e.sourceIndex||V);if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function s(e){return function(t){var n=t.nodeName.toLowerCase();return"input"===n&&t.type===e}}function u(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function l(e){return r(function(t){return t=+t,r(function(n,r){for(var i,o=e([],n.length,t),a=o.length;a--;)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))})})}function c(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}function f(){}function d(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function p(e,t,n){var r=t.dir,i=n&&"parentNode"===r,o=I++;return t.first?function(t,n,o){for(;t=t[r];)if(1===t.nodeType||i)return e(t,n,o)}:function(t,n,a){var s,u,l,c=[W,o];if(a){for(;t=t[r];)if((1===t.nodeType||i)&&e(t,n,a))return!0}else for(;t=t[r];)if(1===t.nodeType||i){if(l=t[P]||(t[P]={}),u=l[t.uniqueID]||(l[t.uniqueID]={}),(s=u[r])&&s[0]===W&&s[1]===o)return c[2]=s[2];if(u[r]=c,c[2]=e(t,n,a))return!0}}}function h(e){return e.length>1?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function g(e,n,r){for(var i=0,o=n.length;i<o;i++)t(e,n[i],r);return r}function m(e,t,n,r,i){for(var o,a=[],s=0,u=e.length,l=null!=t;s<u;s++)(o=e[s])&&(n&&!n(o,r,i)||(a.push(o),l&&t.push(s)));return a}function y(e,t,n,i,o,a){return i&&!i[P]&&(i=y(i)),o&&!o[P]&&(o=y(o,a)),r(function(r,a,s,u){var l,c,f,d=[],p=[],h=a.length,y=r||g(t||"*",s.nodeType?[s]:s,[]),v=!e||!r&&t?y:m(y,d,e,s,u),x=n?o||(r?e:h||i)?[]:a:v;if(n&&n(v,x,s,u),i)for(l=m(x,p),i(l,[],s,u),c=l.length;c--;)(f=l[c])&&(x[p[c]]=!(v[p[c]]=f));if(r){if(o||e){if(o){for(l=[],c=x.length;c--;)(f=x[c])&&l.push(v[c]=f);o(null,x=[],l,u)}for(c=x.length;c--;)(f=x[c])&&(l=o?ee(r,f):d[c])>-1&&(r[l]=!(a[l]=f))}}else x=m(x===a?x.splice(h,x.length):x),o?o(null,a,x,u):Q.apply(a,x)})}function v(e){for(var t,n,r,i=e.length,o=T.relative[e[0].type],a=o||T.relative[" "],s=o?1:0,u=p(function(e){return e===t},a,!0),l=p(function(e){return ee(t,e)>-1},a,!0),c=[function(e,n,r){var i=!o&&(r||n!==A)||((t=n).nodeType?u(e,n,r):l(e,n,r));return t=null,i}];s<i;s++)if(n=T.relative[e[s].type])c=[p(h(c),n)];else{if(n=T.filter[e[s].type].apply(null,e[s].matches),n[P]){for(r=++s;r<i&&!T.relative[e[r].type];r++);return y(s>1&&h(c),s>1&&d(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(se,"$1"),n,s<r&&v(e.slice(s,r)),r<i&&v(e=e.slice(r)),r<i&&d(e))}c.push(n)}return h(c)}function x(e,n){var i=n.length>0,o=e.length>0,a=function(r,a,s,u,l){var c,f,d,p=0,h="0",g=r&&[],y=[],v=A,x=r||o&&T.find.TAG("*",l),b=W+=null==v?1:Math.random()||.1,w=x.length;for(l&&(A=a===H||a||l);h!==w&&null!=(c=x[h]);h++){if(o&&c){for(f=0,a||c.ownerDocument===H||(L(c),s=!_);d=e[f++];)if(d(c,a||H,s)){u.push(c);break}l&&(W=b)}i&&((c=!d&&c)&&p--,r&&g.push(c))}if(p+=h,i&&h!==p){for(f=0;d=n[f++];)d(g,y,a,s);if(r){if(p>0)for(;h--;)g[h]||y[h]||(y[h]=G.call(u));y=m(y)}Q.apply(u,y),l&&!r&&y.length>0&&p+n.length>1&&t.uniqueSort(u)}return l&&(W=b,A=v),g};return i?r(a):a}var b,w,T,C,E,N,k,S,A,D,j,L,H,q,_,F,M,O,R,P="sizzle"+1*new Date,B=e.document,W=0,I=0,$=n(),z=n(),X=n(),U=function(e,t){return e===t&&(j=!0),0},V=1<<31,Y={}.hasOwnProperty,J=[],G=J.pop,K=J.push,Q=J.push,Z=J.slice,ee=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},te="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",ne="[\\x20\\t\\r\\n\\f]",re="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",ie="\\["+ne+"*("+re+")(?:"+ne+"*([*^$|!~]?=)"+ne+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+re+"))|)"+ne+"*\\]",oe=":("+re+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+ie+")*)|.*)\\)|)",ae=new RegExp(ne+"+","g"),se=new RegExp("^"+ne+"+|((?:^|[^\\\\])(?:\\\\.)*)"+ne+"+$","g"),ue=new RegExp("^"+ne+"*,"+ne+"*"),le=new RegExp("^"+ne+"*([>+~]|"+ne+")"+ne+"*"),ce=new RegExp("="+ne+"*([^\\]'\"]*?)"+ne+"*\\]","g"),fe=new RegExp(oe),de=new RegExp("^"+re+"$"),pe={ID:new RegExp("^#("+re+")"),CLASS:new RegExp("^\\.("+re+")"),TAG:new RegExp("^("+re+"|[*])"),ATTR:new RegExp("^"+ie),PSEUDO:new RegExp("^"+oe),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ne+"*(even|odd|(([+-]|)(\\d*)n|)"+ne+"*(?:([+-]|)"+ne+"*(\\d+)|))"+ne+"*\\)|)","i"),bool:new RegExp("^(?:"+te+")$","i"),needsContext:new RegExp("^"+ne+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ne+"*((?:-\\d)?\\d*)"+ne+"*\\)|)(?=[^-]|$)","i")},he=/^(?:input|select|textarea|button)$/i,ge=/^h\d$/i,me=/^[^{]+\{\s*\[native \w/,ye=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ve=/[+~]/,xe=/'|\\/g,be=new RegExp("\\\\([\\da-f]{1,6}"+ne+"?|("+ne+")|.)","ig"),we=function(e,t,n){var r="0x"+t-65536;return r!==r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},Te=function(){L()};try{Q.apply(J=Z.call(B.childNodes),B.childNodes),J[B.childNodes.length].nodeType}catch(Ce){Q={apply:J.length?function(e,t){K.apply(e,Z.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}w=t.support={},E=t.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},L=t.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:B;return r!==H&&9===r.nodeType&&r.documentElement?(H=r,q=H.documentElement,_=!E(H),(n=H.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",Te,!1):n.attachEvent&&n.attachEvent("onunload",Te)),w.attributes=i(function(e){return e.className="i",!e.getAttribute("className")}),w.getElementsByTagName=i(function(e){return e.appendChild(H.createComment("")),!e.getElementsByTagName("*").length}),w.getElementsByClassName=me.test(H.getElementsByClassName),w.getById=i(function(e){return q.appendChild(e).id=P,!H.getElementsByName||!H.getElementsByName(P).length}),w.getById?(T.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&_){var n=t.getElementById(e);return n?[n]:[]}},T.filter.ID=function(e){var t=e.replace(be,we);return function(e){return e.getAttribute("id")===t}}):(delete T.find.ID,T.filter.ID=function(e){var t=e.replace(be,we);return function(e){var n="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}}),T.find.TAG=w.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):w.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},T.find.CLASS=w.getElementsByClassName&&function(e,t){if("undefined"!=typeof t.getElementsByClassName&&_)return t.getElementsByClassName(e)},M=[],F=[],(w.qsa=me.test(H.querySelectorAll))&&(i(function(e){q.appendChild(e).innerHTML="<a id='"+P+"'></a><select id='"+P+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&F.push("[*^$]="+ne+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||F.push("\\["+ne+"*(?:value|"+te+")"),e.querySelectorAll("[id~="+P+"-]").length||F.push("~="),e.querySelectorAll(":checked").length||F.push(":checked"),e.querySelectorAll("a#"+P+"+*").length||F.push(".#.+[+~]")}),i(function(e){var t=H.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&F.push("name"+ne+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||F.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),F.push(",.*:")})),(w.matchesSelector=me.test(O=q.matches||q.webkitMatchesSelector||q.mozMatchesSelector||q.oMatchesSelector||q.msMatchesSelector))&&i(function(e){w.disconnectedMatch=O.call(e,"div"),O.call(e,"[s!='']:x"),M.push("!=",oe)}),F=F.length&&new RegExp(F.join("|")),M=M.length&&new RegExp(M.join("|")),t=me.test(q.compareDocumentPosition),R=t||me.test(q.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},U=t?function(e,t){if(e===t)return j=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n?n:(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1,1&n||!w.sortDetached&&t.compareDocumentPosition(e)===n?e===H||e.ownerDocument===B&&R(B,e)?-1:t===H||t.ownerDocument===B&&R(B,t)?1:D?ee(D,e)-ee(D,t):0:4&n?-1:1)}:function(e,t){if(e===t)return j=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,s=[e],u=[t];if(!i||!o)return e===H?-1:t===H?1:i?-1:o?1:D?ee(D,e)-ee(D,t):0;if(i===o)return a(e,t);for(n=e;n=n.parentNode;)s.unshift(n);for(n=t;n=n.parentNode;)u.unshift(n);for(;s[r]===u[r];)r++;return r?a(s[r],u[r]):s[r]===B?-1:u[r]===B?1:0},H):H},t.matches=function(e,n){return t(e,null,null,n)},t.matchesSelector=function(e,n){if((e.ownerDocument||e)!==H&&L(e),n=n.replace(ce,"='$1']"),w.matchesSelector&&_&&!X[n+" "]&&(!M||!M.test(n))&&(!F||!F.test(n)))try{var r=O.call(e,n);if(r||w.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(i){}return t(n,H,null,[e]).length>0},t.contains=function(e,t){return(e.ownerDocument||e)!==H&&L(e),R(e,t)},t.attr=function(e,t){(e.ownerDocument||e)!==H&&L(e);var n=T.attrHandle[t.toLowerCase()],r=n&&Y.call(T.attrHandle,t.toLowerCase())?n(e,t,!_):void 0;return void 0!==r?r:w.attributes||!_?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},t.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},t.uniqueSort=function(e){var t,n=[],r=0,i=0;if(j=!w.detectDuplicates,D=!w.sortStable&&e.slice(0),e.sort(U),j){for(;t=e[i++];)t===e[i]&&(r=n.push(i));for(;r--;)e.splice(n[r],1)}return D=null,e},C=t.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=C(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r++];)n+=C(t);return n},T=t.selectors={cacheLength:50,createPseudo:r,match:pe,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(be,we),e[3]=(e[3]||e[4]||e[5]||"").replace(be,we),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||t.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&t.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return pe.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&fe.test(n)&&(t=N(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(be,we).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=$[e+" "];return t||(t=new RegExp("(^|"+ne+")"+e+"("+ne+"|$)"))&&$(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,n,r){return function(i){var o=t.attr(i,e);return null==o?"!="===n:!n||(o+="","="===n?o===r:"!="===n?o!==r:"^="===n?r&&0===o.indexOf(r):"*="===n?r&&o.indexOf(r)>-1:"$="===n?r&&o.slice(-r.length)===r:"~="===n?(" "+o.replace(ae," ")+" ").indexOf(r)>-1:"|="===n&&(o===r||o.slice(0,r.length+1)===r+"-"))}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,u){var l,c,f,d,p,h,g=o!==a?"nextSibling":"previousSibling",m=t.parentNode,y=s&&t.nodeName.toLowerCase(),v=!u&&!s,x=!1;if(m){if(o){for(;g;){for(d=t;d=d[g];)if(s?d.nodeName.toLowerCase()===y:1===d.nodeType)return!1;h=g="only"===e&&!h&&"nextSibling"}return!0}if(h=[a?m.firstChild:m.lastChild],a&&v){for(d=m,f=d[P]||(d[P]={}),c=f[d.uniqueID]||(f[d.uniqueID]={}), l=c[e]||[],p=l[0]===W&&l[1],x=p&&l[2],d=p&&m.childNodes[p];d=++p&&d&&d[g]||(x=p=0)||h.pop();)if(1===d.nodeType&&++x&&d===t){c[e]=[W,p,x];break}}else if(v&&(d=t,f=d[P]||(d[P]={}),c=f[d.uniqueID]||(f[d.uniqueID]={}),l=c[e]||[],p=l[0]===W&&l[1],x=p),x===!1)for(;(d=++p&&d&&d[g]||(x=p=0)||h.pop())&&((s?d.nodeName.toLowerCase()!==y:1!==d.nodeType)||!++x||(v&&(f=d[P]||(d[P]={}),c=f[d.uniqueID]||(f[d.uniqueID]={}),c[e]=[W,x]),d!==t)););return x-=i,x===r||x%r===0&&x/r>=0}}},PSEUDO:function(e,n){var i,o=T.pseudos[e]||T.setFilters[e.toLowerCase()]||t.error("unsupported pseudo: "+e);return o[P]?o(n):o.length>1?(i=[e,e,"",n],T.setFilters.hasOwnProperty(e.toLowerCase())?r(function(e,t){for(var r,i=o(e,n),a=i.length;a--;)r=ee(e,i[a]),e[r]=!(t[r]=i[a])}):function(e){return o(e,0,i)}):o}},pseudos:{not:r(function(e){var t=[],n=[],i=k(e.replace(se,"$1"));return i[P]?r(function(e,t,n,r){for(var o,a=i(e,null,r,[]),s=e.length;s--;)(o=a[s])&&(e[s]=!(t[s]=o))}):function(e,r,o){return t[0]=e,i(t,null,o,n),t[0]=null,!n.pop()}}),has:r(function(e){return function(n){return t(e,n).length>0}}),contains:r(function(e){return e=e.replace(be,we),function(t){return(t.textContent||t.innerText||C(t)).indexOf(e)>-1}}),lang:r(function(e){return de.test(e||"")||t.error("unsupported lang: "+e),e=e.replace(be,we).toLowerCase(),function(t){var n;do if(n=_?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return n=n.toLowerCase(),n===e||0===n.indexOf(e+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===q},focus:function(e){return e===H.activeElement&&(!H.hasFocus||H.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return e.disabled===!1},disabled:function(e){return e.disabled===!0},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!T.pseudos.empty(e)},header:function(e){return ge.test(e.nodeName)},input:function(e){return he.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:l(function(){return[0]}),last:l(function(e,t){return[t-1]}),eq:l(function(e,t,n){return[n<0?n+t:n]}),even:l(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:l(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:l(function(e,t,n){for(var r=n<0?n+t:n;--r>=0;)e.push(r);return e}),gt:l(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}},T.pseudos.nth=T.pseudos.eq;for(b in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})T.pseudos[b]=s(b);for(b in{submit:!0,reset:!0})T.pseudos[b]=u(b);return f.prototype=T.filters=T.pseudos,T.setFilters=new f,N=t.tokenize=function(e,n){var r,i,o,a,s,u,l,c=z[e+" "];if(c)return n?0:c.slice(0);for(s=e,u=[],l=T.preFilter;s;){r&&!(i=ue.exec(s))||(i&&(s=s.slice(i[0].length)||s),u.push(o=[])),r=!1,(i=le.exec(s))&&(r=i.shift(),o.push({value:r,type:i[0].replace(se," ")}),s=s.slice(r.length));for(a in T.filter)!(i=pe[a].exec(s))||l[a]&&!(i=l[a](i))||(r=i.shift(),o.push({value:r,type:a,matches:i}),s=s.slice(r.length));if(!r)break}return n?s.length:s?t.error(e):z(e,u).slice(0)},k=t.compile=function(e,t){var n,r=[],i=[],o=X[e+" "];if(!o){for(t||(t=N(e)),n=t.length;n--;)o=v(t[n]),o[P]?r.push(o):i.push(o);o=X(e,x(i,r)),o.selector=e}return o},S=t.select=function(e,t,n,r){var i,o,a,s,u,l="function"==typeof e&&e,f=!r&&N(e=l.selector||e);if(n=n||[],1===f.length){if(o=f[0]=f[0].slice(0),o.length>2&&"ID"===(a=o[0]).type&&w.getById&&9===t.nodeType&&_&&T.relative[o[1].type]){if(t=(T.find.ID(a.matches[0].replace(be,we),t)||[])[0],!t)return n;l&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(i=pe.needsContext.test(e)?0:o.length;i--&&(a=o[i],!T.relative[s=a.type]);)if((u=T.find[s])&&(r=u(a.matches[0].replace(be,we),ve.test(o[0].type)&&c(t.parentNode)||t))){if(o.splice(i,1),e=r.length&&d(o),!e)return Q.apply(n,r),n;break}}return(l||k(e,f))(r,t,!_,n,!t||ve.test(e)&&c(t.parentNode)||t),n},w.sortStable=P.split("").sort(U).join("")===P,w.detectDuplicates=!!j,L(),w.sortDetached=i(function(e){return 1&e.compareDocumentPosition(H.createElement("div"))}),i(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||o("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),w.attributes&&i(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||o("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),i(function(e){return null==e.getAttribute("disabled")})||o(te,function(e,t,n){var r;if(!n)return e[t]===!0?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),t}(e);pe.find=ve,pe.expr=ve.selectors,pe.expr[":"]=pe.expr.pseudos,pe.uniqueSort=pe.unique=ve.uniqueSort,pe.text=ve.getText,pe.isXMLDoc=ve.isXML,pe.contains=ve.contains;var xe=function(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&pe(e).is(n))break;r.push(e)}return r},be=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},we=pe.expr.match.needsContext,Te=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,Ce=/^.[^:#\[\.,]*$/;pe.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?pe.find.matchesSelector(r,e)?[r]:[]:pe.find.matches(e,pe.grep(t,function(e){return 1===e.nodeType}))},pe.fn.extend({find:function(e){var t,n=[],r=this,i=r.length;if("string"!=typeof e)return this.pushStack(pe(e).filter(function(){for(t=0;t<i;t++)if(pe.contains(r[t],this))return!0}));for(t=0;t<i;t++)pe.find(e,r[t],n);return n=this.pushStack(i>1?pe.unique(n):n),n.selector=this.selector?this.selector+" "+e:e,n},filter:function(e){return this.pushStack(r(this,e||[],!1))},not:function(e){return this.pushStack(r(this,e||[],!0))},is:function(e){return!!r(this,"string"==typeof e&&we.test(e)?pe(e):e||[],!1).length}});var Ee,Ne=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,ke=pe.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||Ee,"string"==typeof e){if(r="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&e.length>=3?[null,e,null]:Ne.exec(e),!r||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof pe?t[0]:t,pe.merge(this,pe.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:re,!0)),Te.test(r[1])&&pe.isPlainObject(t))for(r in t)pe.isFunction(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}if(i=re.getElementById(r[2]),i&&i.parentNode){if(i.id!==r[2])return Ee.find(e);this.length=1,this[0]=i}return this.context=re,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):pe.isFunction(e)?"undefined"!=typeof n.ready?n.ready(e):e(pe):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),pe.makeArray(e,this))};ke.prototype=pe.fn,Ee=pe(re);var Se=/^(?:parents|prev(?:Until|All))/,Ae={children:!0,contents:!0,next:!0,prev:!0};pe.fn.extend({has:function(e){var t,n=pe(e,this),r=n.length;return this.filter(function(){for(t=0;t<r;t++)if(pe.contains(this,n[t]))return!0})},closest:function(e,t){for(var n,r=0,i=this.length,o=[],a=we.test(e)||"string"!=typeof e?pe(e,t||this.context):0;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&pe.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?pe.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?pe.inArray(this[0],pe(e)):pe.inArray(e.jquery?e[0]:e,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(pe.uniqueSort(pe.merge(this.get(),pe(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),pe.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return xe(e,"parentNode")},parentsUntil:function(e,t,n){return xe(e,"parentNode",n)},next:function(e){return i(e,"nextSibling")},prev:function(e){return i(e,"previousSibling")},nextAll:function(e){return xe(e,"nextSibling")},prevAll:function(e){return xe(e,"previousSibling")},nextUntil:function(e,t,n){return xe(e,"nextSibling",n)},prevUntil:function(e,t,n){return xe(e,"previousSibling",n)},siblings:function(e){return be((e.parentNode||{}).firstChild,e)},children:function(e){return be(e.firstChild)},contents:function(e){return pe.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:pe.merge([],e.childNodes)}},function(e,t){pe.fn[e]=function(n,r){var i=pe.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=pe.filter(r,i)),this.length>1&&(Ae[e]||(i=pe.uniqueSort(i)),Se.test(e)&&(i=i.reverse())),this.pushStack(i)}});var De=/\S+/g;pe.Callbacks=function(e){e="string"==typeof e?o(e):pe.extend({},e);var t,n,r,i,a=[],s=[],u=-1,l=function(){for(i=e.once,r=t=!0;s.length;u=-1)for(n=s.shift();++u<a.length;)a[u].apply(n[0],n[1])===!1&&e.stopOnFalse&&(u=a.length,n=!1);e.memory||(n=!1),t=!1,i&&(a=n?[]:"")},c={add:function(){return a&&(n&&!t&&(u=a.length-1,s.push(n)),function r(t){pe.each(t,function(t,n){pe.isFunction(n)?e.unique&&c.has(n)||a.push(n):n&&n.length&&"string"!==pe.type(n)&&r(n)})}(arguments),n&&!t&&l()),this},remove:function(){return pe.each(arguments,function(e,t){for(var n;(n=pe.inArray(t,a,n))>-1;)a.splice(n,1),n<=u&&u--}),this},has:function(e){return e?pe.inArray(e,a)>-1:a.length>0},empty:function(){return a&&(a=[]),this},disable:function(){return i=s=[],a=n="",this},disabled:function(){return!a},lock:function(){return i=!0,n||c.disable(),this},locked:function(){return!!i},fireWith:function(e,n){return i||(n=n||[],n=[e,n.slice?n.slice():n],s.push(n),t||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!r}};return c},pe.extend({Deferred:function(e){var t=[["resolve","done",pe.Callbacks("once memory"),"resolved"],["reject","fail",pe.Callbacks("once memory"),"rejected"],["notify","progress",pe.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var e=arguments;return pe.Deferred(function(n){pe.each(t,function(t,o){var a=pe.isFunction(e[t])&&e[t];i[o[1]](function(){var e=a&&a.apply(this,arguments);e&&pe.isFunction(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[o[0]+"With"](this===r?n.promise():this,a?[e]:arguments)})}),e=null}).promise()},promise:function(e){return null!=e?pe.extend(e,r):r}},i={};return r.pipe=r.then,pe.each(t,function(e,o){var a=o[2],s=o[3];r[o[1]]=a.add,s&&a.add(function(){n=s},t[1^e][2].disable,t[2][2].lock),i[o[0]]=function(){return i[o[0]+"With"](this===i?r:this,arguments),this},i[o[0]+"With"]=a.fireWith}),r.promise(i),e&&e.call(i,i),i},when:function(e){var t,n,r,i=0,o=ie.call(arguments),a=o.length,s=1!==a||e&&pe.isFunction(e.promise)?a:0,u=1===s?e:pe.Deferred(),l=function(e,n,r){return function(i){n[e]=this,r[e]=arguments.length>1?ie.call(arguments):i,r===t?u.notifyWith(n,r):--s||u.resolveWith(n,r)}};if(a>1)for(t=new Array(a),n=new Array(a),r=new Array(a);i<a;i++)o[i]&&pe.isFunction(o[i].promise)?o[i].promise().progress(l(i,n,t)).done(l(i,r,o)).fail(u.reject):--s;return s||u.resolveWith(r,o),u.promise()}});var je;pe.fn.ready=function(e){return pe.ready.promise().done(e),this},pe.extend({isReady:!1,readyWait:1,holdReady:function(e){e?pe.readyWait++:pe.ready(!0)},ready:function(e){(e===!0?--pe.readyWait:pe.isReady)||(pe.isReady=!0,e!==!0&&--pe.readyWait>0||(je.resolveWith(re,[pe]),pe.fn.triggerHandler&&(pe(re).triggerHandler("ready"),pe(re).off("ready"))))}}),pe.ready.promise=function(t){if(!je)if(je=pe.Deferred(),"complete"===re.readyState||"loading"!==re.readyState&&!re.documentElement.doScroll)e.setTimeout(pe.ready);else if(re.addEventListener)re.addEventListener("DOMContentLoaded",s),e.addEventListener("load",s);else{re.attachEvent("onreadystatechange",s),e.attachEvent("onload",s);var n=!1;try{n=null==e.frameElement&&re.documentElement}catch(r){}n&&n.doScroll&&!function i(){if(!pe.isReady){try{n.doScroll("left")}catch(t){return e.setTimeout(i,50)}a(),pe.ready()}}()}return je.promise(t)},pe.ready.promise();var Le;for(Le in pe(fe))break;fe.ownFirst="0"===Le,fe.inlineBlockNeedsLayout=!1,pe(function(){var e,t,n,r;n=re.getElementsByTagName("body")[0],n&&n.style&&(t=re.createElement("div"),r=re.createElement("div"),r.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(r).appendChild(t),"undefined"!=typeof t.style.zoom&&(t.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",fe.inlineBlockNeedsLayout=e=3===t.offsetWidth,e&&(n.style.zoom=1)),n.removeChild(r))}),function(){var e=re.createElement("div");fe.deleteExpando=!0;try{delete e.test}catch(t){fe.deleteExpando=!1}e=null}();var He=function(e){var t=pe.noData[(e.nodeName+" ").toLowerCase()],n=+e.nodeType||1;return(1===n||9===n)&&(!t||t!==!0&&e.getAttribute("classid")===t)},qe=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,_e=/([A-Z])/g;pe.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(e){return e=e.nodeType?pe.cache[e[pe.expando]]:e[pe.expando],!!e&&!l(e)},data:function(e,t,n){return c(e,t,n)},removeData:function(e,t){return f(e,t)},_data:function(e,t,n){return c(e,t,n,!0)},_removeData:function(e,t){return f(e,t,!0)}}),pe.fn.extend({data:function(e,t){var n,r,i,o=this[0],a=o&&o.attributes;if(void 0===e){if(this.length&&(i=pe.data(o),1===o.nodeType&&!pe._data(o,"parsedAttrs"))){for(n=a.length;n--;)a[n]&&(r=a[n].name,0===r.indexOf("data-")&&(r=pe.camelCase(r.slice(5)),u(o,r,i[r])));pe._data(o,"parsedAttrs",!0)}return i}return"object"==typeof e?this.each(function(){pe.data(this,e)}):arguments.length>1?this.each(function(){pe.data(this,e,t)}):o?u(o,e,pe.data(o,e)):void 0},removeData:function(e){return this.each(function(){pe.removeData(this,e)})}}),pe.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=pe._data(e,t),n&&(!r||pe.isArray(n)?r=pe._data(e,t,pe.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=pe.queue(e,t),r=n.length,i=n.shift(),o=pe._queueHooks(e,t),a=function(){pe.dequeue(e,t)};"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,a,o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return pe._data(e,n)||pe._data(e,n,{empty:pe.Callbacks("once memory").add(function(){pe._removeData(e,t+"queue"),pe._removeData(e,n)})})}}),pe.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?pe.queue(this[0],e):void 0===t?this:this.each(function(){var n=pe.queue(this,e,t);pe._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&pe.dequeue(this,e)})},dequeue:function(e){return this.each(function(){pe.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=pe.Deferred(),o=this,a=this.length,s=function(){--r||i.resolveWith(o,[o])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a--;)n=pe._data(o[a],e+"queueHooks"),n&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(t)}}),function(){var e;fe.shrinkWrapBlocks=function(){if(null!=e)return e;e=!1;var t,n,r;return n=re.getElementsByTagName("body")[0],n&&n.style?(t=re.createElement("div"),r=re.createElement("div"),r.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(r).appendChild(t),"undefined"!=typeof t.style.zoom&&(t.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:1px;width:1px;zoom:1",t.appendChild(re.createElement("div")).style.width="5px",e=3!==t.offsetWidth),n.removeChild(r),e):void 0}}();var Fe=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Me=new RegExp("^(?:([+-])=|)("+Fe+")([a-z%]*)$","i"),Oe=["Top","Right","Bottom","Left"],Re=function(e,t){return e=t||e,"none"===pe.css(e,"display")||!pe.contains(e.ownerDocument,e)},Pe=function(e,t,n,r,i,o,a){var s=0,u=e.length,l=null==n;if("object"===pe.type(n)){i=!0;for(s in n)Pe(e,t,s,n[s],!0,o,a)}else if(void 0!==r&&(i=!0,pe.isFunction(r)||(a=!0),l&&(a?(t.call(e,r),t=null):(l=t,t=function(e,t,n){return l.call(pe(e),n)})),t))for(;s<u;s++)t(e[s],n,a?r:r.call(e[s],s,t(e[s],n)));return i?e:l?t.call(e):u?t(e[0],n):o},Be=/^(?:checkbox|radio)$/i,We=/<([\w:-]+)/,Ie=/^$|\/(?:java|ecma)script/i,$e=/^\s+/,ze="abbr|article|aside|audio|bdi|canvas|data|datalist|details|dialog|figcaption|figure|footer|header|hgroup|main|mark|meter|nav|output|picture|progress|section|summary|template|time|video";!function(){var e=re.createElement("div"),t=re.createDocumentFragment(),n=re.createElement("input");e.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",fe.leadingWhitespace=3===e.firstChild.nodeType,fe.tbody=!e.getElementsByTagName("tbody").length,fe.htmlSerialize=!!e.getElementsByTagName("link").length,fe.html5Clone="<:nav></:nav>"!==re.createElement("nav").cloneNode(!0).outerHTML,n.type="checkbox",n.checked=!0,t.appendChild(n),fe.appendChecked=n.checked,e.innerHTML="<textarea>x</textarea>",fe.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue,t.appendChild(e),n=re.createElement("input"),n.setAttribute("type","radio"),n.setAttribute("checked","checked"),n.setAttribute("name","t"),e.appendChild(n),fe.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,fe.noCloneEvent=!!e.addEventListener,e[pe.expando]=1,fe.attributes=!e.getAttribute(pe.expando)}();var Xe={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:fe.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]};Xe.optgroup=Xe.option,Xe.tbody=Xe.tfoot=Xe.colgroup=Xe.caption=Xe.thead,Xe.th=Xe.td;var Ue=/<|&#?\w+;/,Ve=/<tbody/i;!function(){var t,n,r=re.createElement("div");for(t in{submit:!0,change:!0,focusin:!0})n="on"+t,(fe[t]=n in e)||(r.setAttribute(n,"t"),fe[t]=r.attributes[n].expando===!1);r=null}();var Ye=/^(?:input|select|textarea)$/i,Je=/^key/,Ge=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Ke=/^(?:focusinfocus|focusoutblur)$/,Qe=/^([^.]*)(?:\.(.+)|)/;pe.event={global:{},add:function(e,t,n,r,i){var o,a,s,u,l,c,f,d,p,h,g,m=pe._data(e);if(m){for(n.handler&&(u=n,n=u.handler,i=u.selector),n.guid||(n.guid=pe.guid++),(a=m.events)||(a=m.events={}),(c=m.handle)||(c=m.handle=function(e){return"undefined"==typeof pe||e&&pe.event.triggered===e.type?void 0:pe.event.dispatch.apply(c.elem,arguments)},c.elem=e),t=(t||"").match(De)||[""],s=t.length;s--;)o=Qe.exec(t[s])||[],p=g=o[1],h=(o[2]||"").split(".").sort(),p&&(l=pe.event.special[p]||{},p=(i?l.delegateType:l.bindType)||p,l=pe.event.special[p]||{},f=pe.extend({type:p,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&pe.expr.match.needsContext.test(i),namespace:h.join(".")},u),(d=a[p])||(d=a[p]=[],d.delegateCount=0,l.setup&&l.setup.call(e,r,h,c)!==!1||(e.addEventListener?e.addEventListener(p,c,!1):e.attachEvent&&e.attachEvent("on"+p,c))),l.add&&(l.add.call(e,f),f.handler.guid||(f.handler.guid=n.guid)),i?d.splice(d.delegateCount++,0,f):d.push(f),pe.event.global[p]=!0);e=null}},remove:function(e,t,n,r,i){var o,a,s,u,l,c,f,d,p,h,g,m=pe.hasData(e)&&pe._data(e);if(m&&(c=m.events)){for(t=(t||"").match(De)||[""],l=t.length;l--;)if(s=Qe.exec(t[l])||[],p=g=s[1],h=(s[2]||"").split(".").sort(),p){for(f=pe.event.special[p]||{},p=(r?f.delegateType:f.bindType)||p,d=c[p]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),u=o=d.length;o--;)a=d[o],!i&&g!==a.origType||n&&n.guid!==a.guid||s&&!s.test(a.namespace)||r&&r!==a.selector&&("**"!==r||!a.selector)||(d.splice(o,1),a.selector&&d.delegateCount--,f.remove&&f.remove.call(e,a));u&&!d.length&&(f.teardown&&f.teardown.call(e,h,m.handle)!==!1||pe.removeEvent(e,p,m.handle),delete c[p])}else for(p in c)pe.event.remove(e,p+t[l],n,r,!0);pe.isEmptyObject(c)&&(delete m.handle,pe._removeData(e,"events"))}},trigger:function(t,n,r,i){var o,a,s,u,l,c,f,d=[r||re],p=ce.call(t,"type")?t.type:t,h=ce.call(t,"namespace")?t.namespace.split("."):[];if(s=c=r=r||re,3!==r.nodeType&&8!==r.nodeType&&!Ke.test(p+pe.event.triggered)&&(p.indexOf(".")>-1&&(h=p.split("."),p=h.shift(),h.sort()),a=p.indexOf(":")<0&&"on"+p,t=t[pe.expando]?t:new pe.Event(p,"object"==typeof t&&t),t.isTrigger=i?2:3,t.namespace=h.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=r),n=null==n?[t]:pe.makeArray(n,[t]),l=pe.event.special[p]||{},i||!l.trigger||l.trigger.apply(r,n)!==!1)){if(!i&&!l.noBubble&&!pe.isWindow(r)){for(u=l.delegateType||p,Ke.test(u+p)||(s=s.parentNode);s;s=s.parentNode)d.push(s),c=s;c===(r.ownerDocument||re)&&d.push(c.defaultView||c.parentWindow||e)}for(f=0;(s=d[f++])&&!t.isPropagationStopped();)t.type=f>1?u:l.bindType||p,o=(pe._data(s,"events")||{})[t.type]&&pe._data(s,"handle"),o&&o.apply(s,n),o=a&&s[a],o&&o.apply&&He(s)&&(t.result=o.apply(s,n),t.result===!1&&t.preventDefault());if(t.type=p,!i&&!t.isDefaultPrevented()&&(!l._default||l._default.apply(d.pop(),n)===!1)&&He(r)&&a&&r[p]&&!pe.isWindow(r)){c=r[a],c&&(r[a]=null),pe.event.triggered=p;try{r[p]()}catch(g){}pe.event.triggered=void 0,c&&(r[a]=c)}return t.result}},dispatch:function(e){e=pe.event.fix(e);var t,n,r,i,o,a=[],s=ie.call(arguments),u=(pe._data(this,"events")||{})[e.type]||[],l=pe.event.special[e.type]||{};if(s[0]=e,e.delegateTarget=this,!l.preDispatch||l.preDispatch.call(this,e)!==!1){for(a=pe.event.handlers.call(this,e,u),t=0;(i=a[t++])&&!e.isPropagationStopped();)for(e.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!e.isImmediatePropagationStopped();)e.rnamespace&&!e.rnamespace.test(o.namespace)||(e.handleObj=o,e.data=o.data,r=((pe.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,s),void 0!==r&&(e.result=r)===!1&&(e.preventDefault(),e.stopPropagation()));return l.postDispatch&&l.postDispatch.call(this,e),e.result}},handlers:function(e,t){var n,r,i,o,a=[],s=t.delegateCount,u=e.target;if(s&&u.nodeType&&("click"!==e.type||isNaN(e.button)||e.button<1))for(;u!=this;u=u.parentNode||this)if(1===u.nodeType&&(u.disabled!==!0||"click"!==e.type)){for(r=[],n=0;n<s;n++)o=t[n],i=o.selector+" ",void 0===r[i]&&(r[i]=o.needsContext?pe(i,this).index(u)>-1:pe.find(i,this,null,[u]).length),r[i]&&r.push(o);r.length&&a.push({elem:u,handlers:r})}return s<t.length&&a.push({elem:this,handlers:t.slice(s)}),a},fix:function(e){if(e[pe.expando])return e;var t,n,r,i=e.type,o=e,a=this.fixHooks[i];for(a||(this.fixHooks[i]=a=Ge.test(i)?this.mouseHooks:Je.test(i)?this.keyHooks:{}),r=a.props?this.props.concat(a.props):this.props,e=new pe.Event(o),t=r.length;t--;)n=r[t],e[n]=o[n];return e.target||(e.target=o.srcElement||re),3===e.target.nodeType&&(e.target=e.target.parentNode),e.metaKey=!!e.metaKey,a.filter?a.filter(e,o):e},props:"altKey bubbles cancelable ctrlKey currentTarget detail eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,t){var n,r,i,o=t.button,a=t.fromElement;return null==e.pageX&&null!=t.clientX&&(r=e.target.ownerDocument||re,i=r.documentElement,n=r.body,e.pageX=t.clientX+(i&&i.scrollLeft||n&&n.scrollLeft||0)-(i&&i.clientLeft||n&&n.clientLeft||0),e.pageY=t.clientY+(i&&i.scrollTop||n&&n.scrollTop||0)-(i&&i.clientTop||n&&n.clientTop||0)),!e.relatedTarget&&a&&(e.relatedTarget=a===e.target?t.toElement:a),e.which||void 0===o||(e.which=1&o?1:2&o?3:4&o?2:0),e}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==b()&&this.focus)try{return this.focus(),!1}catch(e){}},delegateType:"focusin"},blur:{trigger:function(){if(this===b()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if(pe.nodeName(this,"input")&&"checkbox"===this.type&&this.click)return this.click(),!1},_default:function(e){return pe.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}},simulate:function(e,t,n){var r=pe.extend(new pe.Event,n,{type:e,isSimulated:!0});pe.event.trigger(r,null,t),r.isDefaultPrevented()&&n.preventDefault()}},pe.removeEvent=re.removeEventListener?function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)}:function(e,t,n){var r="on"+t;e.detachEvent&&("undefined"==typeof e[r]&&(e[r]=null),e.detachEvent(r,n))},pe.Event=function(e,t){return this instanceof pe.Event?(e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&e.returnValue===!1?v:x):this.type=e,t&&pe.extend(this,t),this.timeStamp=e&&e.timeStamp||pe.now(),void(this[pe.expando]=!0)):new pe.Event(e,t)},pe.Event.prototype={constructor:pe.Event,isDefaultPrevented:x,isPropagationStopped:x,isImmediatePropagationStopped:x,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=v,e&&(e.preventDefault?e.preventDefault():e.returnValue=!1)},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=v,e&&!this.isSimulated&&(e.stopPropagation&&e.stopPropagation(),e.cancelBubble=!0)},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=v,e&&e.stopImmediatePropagation&&e.stopImmediatePropagation(),this.stopPropagation()}},pe.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){pe.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,o=e.handleObj;return i&&(i===r||pe.contains(r,i))||(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}}),fe.submit||(pe.event.special.submit={setup:function(){return!pe.nodeName(this,"form")&&void pe.event.add(this,"click._submit keypress._submit",function(e){var t=e.target,n=pe.nodeName(t,"input")||pe.nodeName(t,"button")?pe.prop(t,"form"):void 0;n&&!pe._data(n,"submit")&&(pe.event.add(n,"submit._submit",function(e){e._submitBubble=!0}),pe._data(n,"submit",!0))})},postDispatch:function(e){e._submitBubble&&(delete e._submitBubble,this.parentNode&&!e.isTrigger&&pe.event.simulate("submit",this.parentNode,e))},teardown:function(){return!pe.nodeName(this,"form")&&void pe.event.remove(this,"._submit")}}),fe.change||(pe.event.special.change={setup:function(){return Ye.test(this.nodeName)?("checkbox"!==this.type&&"radio"!==this.type||(pe.event.add(this,"propertychange._change",function(e){"checked"===e.originalEvent.propertyName&&(this._justChanged=!0)}),pe.event.add(this,"click._change",function(e){this._justChanged&&!e.isTrigger&&(this._justChanged=!1),pe.event.simulate("change",this,e)})),!1):void pe.event.add(this,"beforeactivate._change",function(e){var t=e.target;Ye.test(t.nodeName)&&!pe._data(t,"change")&&(pe.event.add(t,"change._change",function(e){!this.parentNode||e.isSimulated||e.isTrigger||pe.event.simulate("change",this.parentNode,e)}),pe._data(t,"change",!0))})},handle:function(e){var t=e.target;if(this!==t||e.isSimulated||e.isTrigger||"radio"!==t.type&&"checkbox"!==t.type)return e.handleObj.handler.apply(this,arguments)},teardown:function(){return pe.event.remove(this,"._change"),!Ye.test(this.nodeName)}}),fe.focusin||pe.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){pe.event.simulate(t,e.target,pe.event.fix(e))};pe.event.special[t]={setup:function(){var r=this.ownerDocument||this,i=pe._data(r,t);i||r.addEventListener(e,n,!0),pe._data(r,t,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this,i=pe._data(r,t)-1;i?pe._data(r,t,i):(r.removeEventListener(e,n,!0),pe._removeData(r,t))}}}),pe.fn.extend({on:function(e,t,n,r){return w(this,e,t,n,r)},one:function(e,t,n,r){return w(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,pe(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return t!==!1&&"function"!=typeof t||(n=t,t=void 0),n===!1&&(n=x),this.each(function(){pe.event.remove(this,e,n,t)})},trigger:function(e,t){return this.each(function(){pe.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return pe.event.trigger(e,t,n,!0)}});var Ze=/ jQuery\d+="(?:null|\d+)"/g,et=new RegExp("<(?:"+ze+")[\\s/>]","i"),tt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,nt=/<script|<style|<link/i,rt=/checked\s*(?:[^=]|=\s*.checked.)/i,it=/^true\/(.*)/,ot=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,at=p(re),st=at.appendChild(re.createElement("div"));pe.extend({htmlPrefilter:function(e){return e.replace(tt,"<$1></$2>")},clone:function(e,t,n){var r,i,o,a,s,u=pe.contains(e.ownerDocument,e);if(fe.html5Clone||pe.isXMLDoc(e)||!et.test("<"+e.nodeName+">")?o=e.cloneNode(!0):(st.innerHTML=e.outerHTML,st.removeChild(o=st.firstChild)),!(fe.noCloneEvent&&fe.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||pe.isXMLDoc(e)))for(r=h(o),s=h(e),a=0;null!=(i=s[a]);++a)r[a]&&k(i,r[a]);if(t)if(n)for(s=s||h(e),r=r||h(o),a=0;null!=(i=s[a]);a++)N(i,r[a]);else N(e,o);return r=h(o,"script"),r.length>0&&g(r,!u&&h(e,"script")),r=s=i=null,o},cleanData:function(e,t){for(var n,r,i,o,a=0,s=pe.expando,u=pe.cache,l=fe.attributes,c=pe.event.special;null!=(n=e[a]);a++)if((t||He(n))&&(i=n[s],o=i&&u[i])){if(o.events)for(r in o.events)c[r]?pe.event.remove(n,r):pe.removeEvent(n,r,o.handle);u[i]&&(delete u[i],l||"undefined"==typeof n.removeAttribute?n[s]=void 0:n.removeAttribute(s),ne.push(i))}}}),pe.fn.extend({domManip:S,detach:function(e){return A(this,e,!0)},remove:function(e){return A(this,e)},text:function(e){return Pe(this,function(e){return void 0===e?pe.text(this):this.empty().append((this[0]&&this[0].ownerDocument||re).createTextNode(e))},null,e,arguments.length)},append:function(){return S(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=T(this,e);t.appendChild(e)}})},prepend:function(){return S(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=T(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return S(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return S(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++){for(1===e.nodeType&&pe.cleanData(h(e,!1));e.firstChild;)e.removeChild(e.firstChild);e.options&&pe.nodeName(e,"select")&&(e.options.length=0)}return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return pe.clone(this,e,t)})},html:function(e){return Pe(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e)return 1===t.nodeType?t.innerHTML.replace(Ze,""):void 0;if("string"==typeof e&&!nt.test(e)&&(fe.htmlSerialize||!et.test(e))&&(fe.leadingWhitespace||!$e.test(e))&&!Xe[(We.exec(e)||["",""])[1].toLowerCase()]){e=pe.htmlPrefilter(e);try{for(;n<r;n++)t=this[n]||{},1===t.nodeType&&(pe.cleanData(h(t,!1)),t.innerHTML=e);t=0}catch(i){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return S(this,arguments,function(t){var n=this.parentNode;pe.inArray(this,e)<0&&(pe.cleanData(h(this)), n&&n.replaceChild(t,this))},e)}}),pe.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){pe.fn[e]=function(e){for(var n,r=0,i=[],o=pe(e),a=o.length-1;r<=a;r++)n=r===a?this:this.clone(!0),pe(o[r])[t](n),ae.apply(i,n.get());return this.pushStack(i)}});var ut,lt={HTML:"block",BODY:"block"},ct=/^margin/,ft=new RegExp("^("+Fe+")(?!px)[a-z%]+$","i"),dt=function(e,t,n,r){var i,o,a={};for(o in t)a[o]=e.style[o],e.style[o]=t[o];i=n.apply(e,r||[]);for(o in t)e.style[o]=a[o];return i},pt=re.documentElement;!function(){function t(){var t,c,f=re.documentElement;f.appendChild(u),l.style.cssText="-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",n=i=s=!1,r=a=!0,e.getComputedStyle&&(c=e.getComputedStyle(l),n="1%"!==(c||{}).top,s="2px"===(c||{}).marginLeft,i="4px"===(c||{width:"4px"}).width,l.style.marginRight="50%",r="4px"===(c||{marginRight:"4px"}).marginRight,t=l.appendChild(re.createElement("div")),t.style.cssText=l.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",t.style.marginRight=t.style.width="0",l.style.width="1px",a=!parseFloat((e.getComputedStyle(t)||{}).marginRight),l.removeChild(t)),l.style.display="none",o=0===l.getClientRects().length,o&&(l.style.display="",l.innerHTML="<table><tr><td></td><td>t</td></tr></table>",t=l.getElementsByTagName("td"),t[0].style.cssText="margin:0;border:0;padding:0;display:none",o=0===t[0].offsetHeight,o&&(t[0].style.display="",t[1].style.display="none",o=0===t[0].offsetHeight)),f.removeChild(u)}var n,r,i,o,a,s,u=re.createElement("div"),l=re.createElement("div");l.style&&(l.style.cssText="float:left;opacity:.5",fe.opacity="0.5"===l.style.opacity,fe.cssFloat=!!l.style.cssFloat,l.style.backgroundClip="content-box",l.cloneNode(!0).style.backgroundClip="",fe.clearCloneStyle="content-box"===l.style.backgroundClip,u=re.createElement("div"),u.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",l.innerHTML="",u.appendChild(l),fe.boxSizing=""===l.style.boxSizing||""===l.style.MozBoxSizing||""===l.style.WebkitBoxSizing,pe.extend(fe,{reliableHiddenOffsets:function(){return null==n&&t(),o},boxSizingReliable:function(){return null==n&&t(),i},pixelMarginRight:function(){return null==n&&t(),r},pixelPosition:function(){return null==n&&t(),n},reliableMarginRight:function(){return null==n&&t(),a},reliableMarginLeft:function(){return null==n&&t(),s}}))}();var ht,gt,mt=/^(top|right|bottom|left)$/;e.getComputedStyle?(ht=function(t){var n=t.ownerDocument.defaultView;return n&&n.opener||(n=e),n.getComputedStyle(t)},gt=function(e,t,n){var r,i,o,a,s=e.style;return n=n||ht(e),a=n?n.getPropertyValue(t)||n[t]:void 0,""!==a&&void 0!==a||pe.contains(e.ownerDocument,e)||(a=pe.style(e,t)),n&&!fe.pixelMarginRight()&&ft.test(a)&&ct.test(t)&&(r=s.width,i=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=r,s.minWidth=i,s.maxWidth=o),void 0===a?a:a+""}):pt.currentStyle&&(ht=function(e){return e.currentStyle},gt=function(e,t,n){var r,i,o,a,s=e.style;return n=n||ht(e),a=n?n[t]:void 0,null==a&&s&&s[t]&&(a=s[t]),ft.test(a)&&!mt.test(t)&&(r=s.left,i=e.runtimeStyle,o=i&&i.left,o&&(i.left=e.currentStyle.left),s.left="fontSize"===t?"1em":a,a=s.pixelLeft+"px",s.left=r,o&&(i.left=o)),void 0===a?a:a+""||"auto"});var yt=/alpha\([^)]*\)/i,vt=/opacity\s*=\s*([^)]*)/i,xt=/^(none|table(?!-c[ea]).+)/,bt=new RegExp("^("+Fe+")(.*)$","i"),wt={position:"absolute",visibility:"hidden",display:"block"},Tt={letterSpacing:"0",fontWeight:"400"},Ct=["Webkit","O","Moz","ms"],Et=re.createElement("div").style;pe.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=gt(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":fe.cssFloat?"cssFloat":"styleFloat"},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,s=pe.camelCase(t),u=e.style;if(t=pe.cssProps[s]||(pe.cssProps[s]=H(s)||s),a=pe.cssHooks[t]||pe.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(e,!1,r))?i:u[t];if(o=typeof n,"string"===o&&(i=Me.exec(n))&&i[1]&&(n=d(e,t,i),o="number"),null!=n&&n===n&&("number"===o&&(n+=i&&i[3]||(pe.cssNumber[s]?"":"px")),fe.clearCloneStyle||""!==n||0!==t.indexOf("background")||(u[t]="inherit"),!(a&&"set"in a&&void 0===(n=a.set(e,n,r)))))try{u[t]=n}catch(l){}}},css:function(e,t,n,r){var i,o,a,s=pe.camelCase(t);return t=pe.cssProps[s]||(pe.cssProps[s]=H(s)||s),a=pe.cssHooks[t]||pe.cssHooks[s],a&&"get"in a&&(o=a.get(e,!0,n)),void 0===o&&(o=gt(e,t,r)),"normal"===o&&t in Tt&&(o=Tt[t]),""===n||n?(i=parseFloat(o),n===!0||isFinite(i)?i||0:o):o}}),pe.each(["height","width"],function(e,t){pe.cssHooks[t]={get:function(e,n,r){if(n)return xt.test(pe.css(e,"display"))&&0===e.offsetWidth?dt(e,wt,function(){return M(e,t,r)}):M(e,t,r)},set:function(e,n,r){var i=r&&ht(e);return _(e,n,r?F(e,t,r,fe.boxSizing&&"border-box"===pe.css(e,"boxSizing",!1,i),i):0)}}}),fe.opacity||(pe.cssHooks.opacity={get:function(e,t){return vt.test((t&&e.currentStyle?e.currentStyle.filter:e.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":t?"1":""},set:function(e,t){var n=e.style,r=e.currentStyle,i=pe.isNumeric(t)?"alpha(opacity="+100*t+")":"",o=r&&r.filter||n.filter||"";n.zoom=1,(t>=1||""===t)&&""===pe.trim(o.replace(yt,""))&&n.removeAttribute&&(n.removeAttribute("filter"),""===t||r&&!r.filter)||(n.filter=yt.test(o)?o.replace(yt,i):o+" "+i)}}),pe.cssHooks.marginRight=L(fe.reliableMarginRight,function(e,t){if(t)return dt(e,{display:"inline-block"},gt,[e,"marginRight"])}),pe.cssHooks.marginLeft=L(fe.reliableMarginLeft,function(e,t){if(t)return(parseFloat(gt(e,"marginLeft"))||(pe.contains(e.ownerDocument,e)?e.getBoundingClientRect().left-dt(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}):0))+"px"}),pe.each({margin:"",padding:"",border:"Width"},function(e,t){pe.cssHooks[e+t]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];r<4;r++)i[e+Oe[r]+t]=o[r]||o[r-2]||o[0];return i}},ct.test(e)||(pe.cssHooks[e+t].set=_)}),pe.fn.extend({css:function(e,t){return Pe(this,function(e,t,n){var r,i,o={},a=0;if(pe.isArray(t)){for(r=ht(e),i=t.length;a<i;a++)o[t[a]]=pe.css(e,t[a],!1,r);return o}return void 0!==n?pe.style(e,t,n):pe.css(e,t)},e,t,arguments.length>1)},show:function(){return q(this,!0)},hide:function(){return q(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){Re(this)?pe(this).show():pe(this).hide()})}}),pe.Tween=O,O.prototype={constructor:O,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||pe.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(pe.cssNumber[n]?"":"px")},cur:function(){var e=O.propHooks[this.prop];return e&&e.get?e.get(this):O.propHooks._default.get(this)},run:function(e){var t,n=O.propHooks[this.prop];return this.options.duration?this.pos=t=pe.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):O.propHooks._default.set(this),this}},O.prototype.init.prototype=O.prototype,O.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=pe.css(e.elem,e.prop,""),t&&"auto"!==t?t:0)},set:function(e){pe.fx.step[e.prop]?pe.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[pe.cssProps[e.prop]]&&!pe.cssHooks[e.prop]?e.elem[e.prop]=e.now:pe.style(e.elem,e.prop,e.now+e.unit)}}},O.propHooks.scrollTop=O.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},pe.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},pe.fx=O.prototype.init,pe.fx.step={};var Nt,kt,St=/^(?:toggle|show|hide)$/,At=/queueHooks$/;pe.Animation=pe.extend($,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return d(n.elem,e,Me.exec(t),n),n}]},tweener:function(e,t){pe.isFunction(e)?(t=e,e=["*"]):e=e.match(De);for(var n,r=0,i=e.length;r<i;r++)n=e[r],$.tweeners[n]=$.tweeners[n]||[],$.tweeners[n].unshift(t)},prefilters:[W],prefilter:function(e,t){t?$.prefilters.unshift(e):$.prefilters.push(e)}}),pe.speed=function(e,t,n){var r=e&&"object"==typeof e?pe.extend({},e):{complete:n||!n&&t||pe.isFunction(e)&&e,duration:e,easing:n&&t||t&&!pe.isFunction(t)&&t};return r.duration=pe.fx.off?0:"number"==typeof r.duration?r.duration:r.duration in pe.fx.speeds?pe.fx.speeds[r.duration]:pe.fx.speeds._default,null!=r.queue&&r.queue!==!0||(r.queue="fx"),r.old=r.complete,r.complete=function(){pe.isFunction(r.old)&&r.old.call(this),r.queue&&pe.dequeue(this,r.queue)},r},pe.fn.extend({fadeTo:function(e,t,n,r){return this.filter(Re).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=pe.isEmptyObject(e),o=pe.speed(t,n,r),a=function(){var t=$(this,pe.extend({},e),o);(i||pe._data(this,"finish"))&&t.stop(!0)};return a.finish=a,i||o.queue===!1?this.each(a):this.queue(o.queue,a)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&e!==!1&&this.queue(e||"fx",[]),this.each(function(){var t=!0,i=null!=e&&e+"queueHooks",o=pe.timers,a=pe._data(this);if(i)a[i]&&a[i].stop&&r(a[i]);else for(i in a)a[i]&&a[i].stop&&At.test(i)&&r(a[i]);for(i=o.length;i--;)o[i].elem!==this||null!=e&&o[i].queue!==e||(o[i].anim.stop(n),t=!1,o.splice(i,1));!t&&n||pe.dequeue(this,e)})},finish:function(e){return e!==!1&&(e=e||"fx"),this.each(function(){var t,n=pe._data(this),r=n[e+"queue"],i=n[e+"queueHooks"],o=pe.timers,a=r?r.length:0;for(n.finish=!0,pe.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;t<a;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish})}}),pe.each(["toggle","show","hide"],function(e,t){var n=pe.fn[t];pe.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(P(t,!0),e,r,i)}}),pe.each({slideDown:P("show"),slideUp:P("hide"),slideToggle:P("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){pe.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),pe.timers=[],pe.fx.tick=function(){var e,t=pe.timers,n=0;for(Nt=pe.now();n<t.length;n++)e=t[n],e()||t[n]!==e||t.splice(n--,1);t.length||pe.fx.stop(),Nt=void 0},pe.fx.timer=function(e){pe.timers.push(e),e()?pe.fx.start():pe.timers.pop()},pe.fx.interval=13,pe.fx.start=function(){kt||(kt=e.setInterval(pe.fx.tick,pe.fx.interval))},pe.fx.stop=function(){e.clearInterval(kt),kt=null},pe.fx.speeds={slow:600,fast:200,_default:400},pe.fn.delay=function(t,n){return t=pe.fx?pe.fx.speeds[t]||t:t,n=n||"fx",this.queue(n,function(n,r){var i=e.setTimeout(n,t);r.stop=function(){e.clearTimeout(i)}})},function(){var e,t=re.createElement("input"),n=re.createElement("div"),r=re.createElement("select"),i=r.appendChild(re.createElement("option"));n=re.createElement("div"),n.setAttribute("className","t"),n.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",e=n.getElementsByTagName("a")[0],t.setAttribute("type","checkbox"),n.appendChild(t),e=n.getElementsByTagName("a")[0],e.style.cssText="top:1px",fe.getSetAttribute="t"!==n.className,fe.style=/top/.test(e.getAttribute("style")),fe.hrefNormalized="/a"===e.getAttribute("href"),fe.checkOn=!!t.value,fe.optSelected=i.selected,fe.enctype=!!re.createElement("form").enctype,r.disabled=!0,fe.optDisabled=!i.disabled,t=re.createElement("input"),t.setAttribute("value",""),fe.input=""===t.getAttribute("value"),t.value="t",t.setAttribute("type","radio"),fe.radioValue="t"===t.value}();var Dt=/\r/g,jt=/[\x20\t\r\n\f]+/g;pe.fn.extend({val:function(e){var t,n,r,i=this[0];{if(arguments.length)return r=pe.isFunction(e),this.each(function(n){var i;1===this.nodeType&&(i=r?e.call(this,n,pe(this).val()):e,null==i?i="":"number"==typeof i?i+="":pe.isArray(i)&&(i=pe.map(i,function(e){return null==e?"":e+""})),t=pe.valHooks[this.type]||pe.valHooks[this.nodeName.toLowerCase()],t&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))});if(i)return t=pe.valHooks[i.type]||pe.valHooks[i.nodeName.toLowerCase()],t&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:(n=i.value,"string"==typeof n?n.replace(Dt,""):null==n?"":n)}}}),pe.extend({valHooks:{option:{get:function(e){var t=pe.find.attr(e,"value");return null!=t?t:pe.trim(pe.text(e)).replace(jt," ")}},select:{get:function(e){for(var t,n,r=e.options,i=e.selectedIndex,o="select-one"===e.type||i<0,a=o?null:[],s=o?i+1:r.length,u=i<0?s:o?i:0;u<s;u++)if(n=r[u],(n.selected||u===i)&&(fe.optDisabled?!n.disabled:null===n.getAttribute("disabled"))&&(!n.parentNode.disabled||!pe.nodeName(n.parentNode,"optgroup"))){if(t=pe(n).val(),o)return t;a.push(t)}return a},set:function(e,t){for(var n,r,i=e.options,o=pe.makeArray(t),a=i.length;a--;)if(r=i[a],pe.inArray(pe.valHooks.option.get(r),o)>-1)try{r.selected=n=!0}catch(s){r.scrollHeight}else r.selected=!1;return n||(e.selectedIndex=-1),i}}}}),pe.each(["radio","checkbox"],function(){pe.valHooks[this]={set:function(e,t){if(pe.isArray(t))return e.checked=pe.inArray(pe(e).val(),t)>-1}},fe.checkOn||(pe.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var Lt,Ht,qt=pe.expr.attrHandle,_t=/^(?:checked|selected)$/i,Ft=fe.getSetAttribute,Mt=fe.input;pe.fn.extend({attr:function(e,t){return Pe(this,pe.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){pe.removeAttr(this,e)})}}),pe.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return"undefined"==typeof e.getAttribute?pe.prop(e,t,n):(1===o&&pe.isXMLDoc(e)||(t=t.toLowerCase(),i=pe.attrHooks[t]||(pe.expr.match.bool.test(t)?Ht:Lt)),void 0!==n?null===n?void pe.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:(r=pe.find.attr(e,t),null==r?void 0:r))},attrHooks:{type:{set:function(e,t){if(!fe.radioValue&&"radio"===t&&pe.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r,i=0,o=t&&t.match(De);if(o&&1===e.nodeType)for(;n=o[i++];)r=pe.propFix[n]||n,pe.expr.match.bool.test(n)?Mt&&Ft||!_t.test(n)?e[r]=!1:e[pe.camelCase("default-"+n)]=e[r]=!1:pe.attr(e,n,""),e.removeAttribute(Ft?n:r)}}),Ht={set:function(e,t,n){return t===!1?pe.removeAttr(e,n):Mt&&Ft||!_t.test(n)?e.setAttribute(!Ft&&pe.propFix[n]||n,n):e[pe.camelCase("default-"+n)]=e[n]=!0,n}},pe.each(pe.expr.match.bool.source.match(/\w+/g),function(e,t){var n=qt[t]||pe.find.attr;Mt&&Ft||!_t.test(t)?qt[t]=function(e,t,r){var i,o;return r||(o=qt[t],qt[t]=i,i=null!=n(e,t,r)?t.toLowerCase():null,qt[t]=o),i}:qt[t]=function(e,t,n){if(!n)return e[pe.camelCase("default-"+t)]?t.toLowerCase():null}}),Mt&&Ft||(pe.attrHooks.value={set:function(e,t,n){return pe.nodeName(e,"input")?void(e.defaultValue=t):Lt&&Lt.set(e,t,n)}}),Ft||(Lt={set:function(e,t,n){var r=e.getAttributeNode(n);if(r||e.setAttributeNode(r=e.ownerDocument.createAttribute(n)),r.value=t+="","value"===n||t===e.getAttribute(n))return t}},qt.id=qt.name=qt.coords=function(e,t,n){var r;if(!n)return(r=e.getAttributeNode(t))&&""!==r.value?r.value:null},pe.valHooks.button={get:function(e,t){var n=e.getAttributeNode(t);if(n&&n.specified)return n.value},set:Lt.set},pe.attrHooks.contenteditable={set:function(e,t,n){Lt.set(e,""!==t&&t,n)}},pe.each(["width","height"],function(e,t){pe.attrHooks[t]={set:function(e,n){if(""===n)return e.setAttribute(t,"auto"),n}}})),fe.style||(pe.attrHooks.style={get:function(e){return e.style.cssText||void 0},set:function(e,t){return e.style.cssText=t+""}});var Ot=/^(?:input|select|textarea|button|object)$/i,Rt=/^(?:a|area)$/i;pe.fn.extend({prop:function(e,t){return Pe(this,pe.prop,e,t,arguments.length>1)},removeProp:function(e){return e=pe.propFix[e]||e,this.each(function(){try{this[e]=void 0,delete this[e]}catch(t){}})}}),pe.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&pe.isXMLDoc(e)||(t=pe.propFix[t]||t,i=pe.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=pe.find.attr(e,"tabindex");return t?parseInt(t,10):Ot.test(e.nodeName)||Rt.test(e.nodeName)&&e.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),fe.hrefNormalized||pe.each(["href","src"],function(e,t){pe.propHooks[t]={get:function(e){return e.getAttribute(t,4)}}}),fe.optSelected||(pe.propHooks.selected={get:function(e){var t=e.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),pe.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){pe.propFix[this.toLowerCase()]=this}),fe.enctype||(pe.propFix.enctype="encoding");var Pt=/[\t\r\n\f]/g;pe.fn.extend({addClass:function(e){var t,n,r,i,o,a,s,u=0;if(pe.isFunction(e))return this.each(function(t){pe(this).addClass(e.call(this,t,z(this)))});if("string"==typeof e&&e)for(t=e.match(De)||[];n=this[u++];)if(i=z(n),r=1===n.nodeType&&(" "+i+" ").replace(Pt," ")){for(a=0;o=t[a++];)r.indexOf(" "+o+" ")<0&&(r+=o+" ");s=pe.trim(r),i!==s&&pe.attr(n,"class",s)}return this},removeClass:function(e){var t,n,r,i,o,a,s,u=0;if(pe.isFunction(e))return this.each(function(t){pe(this).removeClass(e.call(this,t,z(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof e&&e)for(t=e.match(De)||[];n=this[u++];)if(i=z(n),r=1===n.nodeType&&(" "+i+" ").replace(Pt," ")){for(a=0;o=t[a++];)for(;r.indexOf(" "+o+" ")>-1;)r=r.replace(" "+o+" "," ");s=pe.trim(r),i!==s&&pe.attr(n,"class",s)}return this},toggleClass:function(e,t){var n=typeof e;return"boolean"==typeof t&&"string"===n?t?this.addClass(e):this.removeClass(e):pe.isFunction(e)?this.each(function(n){pe(this).toggleClass(e.call(this,n,z(this),t),t)}):this.each(function(){var t,r,i,o;if("string"===n)for(r=0,i=pe(this),o=e.match(De)||[];t=o[r++];)i.hasClass(t)?i.removeClass(t):i.addClass(t);else void 0!==e&&"boolean"!==n||(t=z(this),t&&pe._data(this,"__className__",t),pe.attr(this,"class",t||e===!1?"":pe._data(this,"__className__")||""))})},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+z(n)+" ").replace(Pt," ").indexOf(t)>-1)return!0;return!1}}),pe.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(e,t){pe.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),pe.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}});var Bt=e.location,Wt=pe.now(),It=/\?/,$t=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;pe.parseJSON=function(t){if(e.JSON&&e.JSON.parse)return e.JSON.parse(t+"");var n,r=null,i=pe.trim(t+"");return i&&!pe.trim(i.replace($t,function(e,t,i,o){return n&&t&&(r=0),0===r?e:(n=i||t,r+=!o-!i,"")}))?Function("return "+i)():pe.error("Invalid JSON: "+t)},pe.parseXML=function(t){var n,r;if(!t||"string"!=typeof t)return null;try{e.DOMParser?(r=new e.DOMParser,n=r.parseFromString(t,"text/xml")):(n=new e.ActiveXObject("Microsoft.XMLDOM"),n.async="false",n.loadXML(t))}catch(i){n=void 0}return n&&n.documentElement&&!n.getElementsByTagName("parsererror").length||pe.error("Invalid XML: "+t),n};var zt=/#.*$/,Xt=/([?&])_=[^&]*/,Ut=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Vt=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Yt=/^(?:GET|HEAD)$/,Jt=/^\/\//,Gt=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,Kt={},Qt={},Zt="*/".concat("*"),en=Bt.href,tn=Gt.exec(en.toLowerCase())||[];pe.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:en,type:"GET",isLocal:Vt.test(tn[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Zt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":pe.parseJSON,"text xml":pe.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?V(V(e,pe.ajaxSettings),t):V(pe.ajaxSettings,e)},ajaxPrefilter:X(Kt),ajaxTransport:X(Qt),ajax:function(t,n){function r(t,n,r,i){var o,f,v,x,w,C=n;2!==b&&(b=2,u&&e.clearTimeout(u),c=void 0,s=i||"",T.readyState=t>0?4:0,o=t>=200&&t<300||304===t,r&&(x=Y(d,T,r)),x=J(d,x,T,o),o?(d.ifModified&&(w=T.getResponseHeader("Last-Modified"),w&&(pe.lastModified[a]=w),w=T.getResponseHeader("etag"),w&&(pe.etag[a]=w)),204===t||"HEAD"===d.type?C="nocontent":304===t?C="notmodified":(C=x.state,f=x.data,v=x.error,o=!v)):(v=C,!t&&C||(C="error",t<0&&(t=0))),T.status=t,T.statusText=(n||C)+"",o?g.resolveWith(p,[f,C,T]):g.rejectWith(p,[T,C,v]),T.statusCode(y),y=void 0,l&&h.trigger(o?"ajaxSuccess":"ajaxError",[T,d,o?f:v]),m.fireWith(p,[T,C]),l&&(h.trigger("ajaxComplete",[T,d]),--pe.active||pe.event.trigger("ajaxStop")))}"object"==typeof t&&(n=t,t=void 0),n=n||{};var i,o,a,s,u,l,c,f,d=pe.ajaxSetup({},n),p=d.context||d,h=d.context&&(p.nodeType||p.jquery)?pe(p):pe.event,g=pe.Deferred(),m=pe.Callbacks("once memory"),y=d.statusCode||{},v={},x={},b=0,w="canceled",T={readyState:0,getResponseHeader:function(e){var t;if(2===b){if(!f)for(f={};t=Ut.exec(s);)f[t[1].toLowerCase()]=t[2];t=f[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===b?s:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return b||(e=x[n]=x[n]||e,v[e]=t),this},overrideMimeType:function(e){return b||(d.mimeType=e),this},statusCode:function(e){var t;if(e)if(b<2)for(t in e)y[t]=[y[t],e[t]];else T.always(e[T.status]);return this},abort:function(e){var t=e||w;return c&&c.abort(t),r(0,t),this}};if(g.promise(T).complete=m.add,T.success=T.done,T.error=T.fail,d.url=((t||d.url||en)+"").replace(zt,"").replace(Jt,tn[1]+"//"),d.type=n.method||n.type||d.method||d.type,d.dataTypes=pe.trim(d.dataType||"*").toLowerCase().match(De)||[""],null==d.crossDomain&&(i=Gt.exec(d.url.toLowerCase()),d.crossDomain=!(!i||i[1]===tn[1]&&i[2]===tn[2]&&(i[3]||("http:"===i[1]?"80":"443"))===(tn[3]||("http:"===tn[1]?"80":"443")))),d.data&&d.processData&&"string"!=typeof d.data&&(d.data=pe.param(d.data,d.traditional)),U(Kt,d,n,T),2===b)return T;l=pe.event&&d.global,l&&0===pe.active++&&pe.event.trigger("ajaxStart"),d.type=d.type.toUpperCase(),d.hasContent=!Yt.test(d.type),a=d.url,d.hasContent||(d.data&&(a=d.url+=(It.test(a)?"&":"?")+d.data,delete d.data),d.cache===!1&&(d.url=Xt.test(a)?a.replace(Xt,"$1_="+Wt++):a+(It.test(a)?"&":"?")+"_="+Wt++)),d.ifModified&&(pe.lastModified[a]&&T.setRequestHeader("If-Modified-Since",pe.lastModified[a]),pe.etag[a]&&T.setRequestHeader("If-None-Match",pe.etag[a])),(d.data&&d.hasContent&&d.contentType!==!1||n.contentType)&&T.setRequestHeader("Content-Type",d.contentType),T.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+("*"!==d.dataTypes[0]?", "+Zt+"; q=0.01":""):d.accepts["*"]);for(o in d.headers)T.setRequestHeader(o,d.headers[o]);if(d.beforeSend&&(d.beforeSend.call(p,T,d)===!1||2===b))return T.abort();w="abort";for(o in{success:1,error:1,complete:1})T[o](d[o]);if(c=U(Qt,d,n,T)){if(T.readyState=1,l&&h.trigger("ajaxSend",[T,d]),2===b)return T;d.async&&d.timeout>0&&(u=e.setTimeout(function(){T.abort("timeout")},d.timeout));try{b=1,c.send(v,r)}catch(C){if(!(b<2))throw C;r(-1,C)}}else r(-1,"No Transport");return T},getJSON:function(e,t,n){return pe.get(e,t,n,"json")},getScript:function(e,t){return pe.get(e,void 0,t,"script")}}),pe.each(["get","post"],function(e,t){pe[t]=function(e,n,r,i){return pe.isFunction(n)&&(i=i||r,r=n,n=void 0),pe.ajax(pe.extend({url:e,type:t,dataType:i,data:n,success:r},pe.isPlainObject(e)&&e))}}),pe._evalUrl=function(e){return pe.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,"throws":!0})},pe.fn.extend({wrapAll:function(e){if(pe.isFunction(e))return this.each(function(t){pe(this).wrapAll(e.call(this,t))});if(this[0]){var t=pe(e,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstChild&&1===e.firstChild.nodeType;)e=e.firstChild;return e}).append(this)}return this},wrapInner:function(e){return pe.isFunction(e)?this.each(function(t){pe(this).wrapInner(e.call(this,t))}):this.each(function(){var t=pe(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=pe.isFunction(e);return this.each(function(n){pe(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){pe.nodeName(this,"body")||pe(this).replaceWith(this.childNodes)}).end()}}),pe.expr.filters.hidden=function(e){return fe.reliableHiddenOffsets()?e.offsetWidth<=0&&e.offsetHeight<=0&&!e.getClientRects().length:K(e)},pe.expr.filters.visible=function(e){return!pe.expr.filters.hidden(e)};var nn=/%20/g,rn=/\[\]$/,on=/\r?\n/g,an=/^(?:submit|button|image|reset|file)$/i,sn=/^(?:input|select|textarea|keygen)/i;pe.param=function(e,t){var n,r=[],i=function(e,t){t=pe.isFunction(t)?t():null==t?"":t,r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(void 0===t&&(t=pe.ajaxSettings&&pe.ajaxSettings.traditional),pe.isArray(e)||e.jquery&&!pe.isPlainObject(e))pe.each(e,function(){i(this.name,this.value)});else for(n in e)Q(n,e[n],t,i);return r.join("&").replace(nn,"+")},pe.fn.extend({serialize:function(){return pe.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=pe.prop(this,"elements");return e?pe.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!pe(this).is(":disabled")&&sn.test(this.nodeName)&&!an.test(e)&&(this.checked||!Be.test(e))}).map(function(e,t){var n=pe(this).val();return null==n?null:pe.isArray(n)?pe.map(n,function(e){return{name:t.name,value:e.replace(on,"\r\n")}}):{name:t.name,value:n.replace(on,"\r\n")}}).get()}}),pe.ajaxSettings.xhr=void 0!==e.ActiveXObject?function(){return this.isLocal?ee():re.documentMode>8?Z():/^(get|post|head|put|delete|options)$/i.test(this.type)&&Z()||ee()}:Z;var un=0,ln={},cn=pe.ajaxSettings.xhr();e.attachEvent&&e.attachEvent("onunload",function(){for(var e in ln)ln[e](void 0,!0)}),fe.cors=!!cn&&"withCredentials"in cn,cn=fe.ajax=!!cn,cn&&pe.ajaxTransport(function(t){if(!t.crossDomain||fe.cors){var n;return{send:function(r,i){var o,a=t.xhr(),s=++un;if(a.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(o in t.xhrFields)a[o]=t.xhrFields[o];t.mimeType&&a.overrideMimeType&&a.overrideMimeType(t.mimeType),t.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest");for(o in r)void 0!==r[o]&&a.setRequestHeader(o,r[o]+"");a.send(t.hasContent&&t.data||null),n=function(e,r){var o,u,l;if(n&&(r||4===a.readyState))if(delete ln[s],n=void 0,a.onreadystatechange=pe.noop,r)4!==a.readyState&&a.abort();else{l={},o=a.status,"string"==typeof a.responseText&&(l.text=a.responseText);try{u=a.statusText}catch(c){u=""}o||!t.isLocal||t.crossDomain?1223===o&&(o=204):o=l.text?200:404}l&&i(o,u,l,a.getAllResponseHeaders())},t.async?4===a.readyState?e.setTimeout(n):a.onreadystatechange=ln[s]=n:n()},abort:function(){n&&n(void 0,!0)}}}}),pe.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return pe.globalEval(e),e}}}),pe.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)}),pe.ajaxTransport("script",function(e){if(e.crossDomain){var t,n=re.head||pe("head")[0]||re.documentElement;return{send:function(r,i){t=re.createElement("script"),t.async=!0,e.scriptCharset&&(t.charset=e.scriptCharset),t.src=e.url,t.onload=t.onreadystatechange=function(e,n){(n||!t.readyState||/loaded|complete/.test(t.readyState))&&(t.onload=t.onreadystatechange=null,t.parentNode&&t.parentNode.removeChild(t),t=null,n||i(200,"success"))},n.insertBefore(t,n.firstChild)},abort:function(){t&&t.onload(void 0,!0)}}}});var fn=[],dn=/(=)\?(?=&|$)|\?\?/;pe.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=fn.pop()||pe.expando+"_"+Wt++;return this[e]=!0,e}}),pe.ajaxPrefilter("json jsonp",function(t,n,r){var i,o,a,s=t.jsonp!==!1&&(dn.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&dn.test(t.data)&&"data");if(s||"jsonp"===t.dataTypes[0])return i=t.jsonpCallback=pe.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(dn,"$1"+i):t.jsonp!==!1&&(t.url+=(It.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return a||pe.error(i+" was not called"),a[0]},t.dataTypes[0]="json",o=e[i],e[i]=function(){a=arguments},r.always(function(){void 0===o?pe(e).removeProp(i):e[i]=o,t[i]&&(t.jsonpCallback=n.jsonpCallback,fn.push(i)),a&&pe.isFunction(o)&&o(a[0]),a=o=void 0}),"script"}),pe.parseHTML=function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||re;var r=Te.exec(e),i=!n&&[];return r?[t.createElement(r[1])]:(r=y([e],t,i),i&&i.length&&pe(i).remove(),pe.merge([],r.childNodes))};var pn=pe.fn.load;return pe.fn.load=function(e,t,n){if("string"!=typeof e&&pn)return pn.apply(this,arguments);var r,i,o,a=this,s=e.indexOf(" ");return s>-1&&(r=pe.trim(e.slice(s,e.length)),e=e.slice(0,s)),pe.isFunction(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),a.length>0&&pe.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done(function(e){o=arguments,a.html(r?pe("<div>").append(pe.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},pe.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){pe.fn[t]=function(e){return this.on(t,e)}}),pe.expr.filters.animated=function(e){return pe.grep(pe.timers,function(t){return e===t.elem}).length},pe.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l,c=pe.css(e,"position"),f=pe(e),d={};"static"===c&&(e.style.position="relative"),s=f.offset(),o=pe.css(e,"top"),u=pe.css(e,"left"),l=("absolute"===c||"fixed"===c)&&pe.inArray("auto",[o,u])>-1,l?(r=f.position(),a=r.top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),pe.isFunction(t)&&(t=t.call(e,n,pe.extend({},s))),null!=t.top&&(d.top=t.top-s.top+a),null!=t.left&&(d.left=t.left-s.left+i),"using"in t?t.using.call(e,d):f.css(d)}},pe.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){pe.offset.setOffset(this,e,t)});var t,n,r={top:0,left:0},i=this[0],o=i&&i.ownerDocument;if(o)return t=o.documentElement,pe.contains(t,i)?("undefined"!=typeof i.getBoundingClientRect&&(r=i.getBoundingClientRect()),n=te(o),{top:r.top+(n.pageYOffset||t.scrollTop)-(t.clientTop||0),left:r.left+(n.pageXOffset||t.scrollLeft)-(t.clientLeft||0)}):r},position:function(){if(this[0]){var e,t,n={top:0,left:0},r=this[0];return"fixed"===pe.css(r,"position")?t=r.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),pe.nodeName(e[0],"html")||(n=e.offset()),n.top+=pe.css(e[0],"borderTopWidth",!0),n.left+=pe.css(e[0],"borderLeftWidth",!0)),{top:t.top-n.top-pe.css(r,"marginTop",!0),left:t.left-n.left-pe.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){ diff --git a/public/static/plug/layui/lay/modules/laydate.js b/public/static/plug/layui/lay/modules/laydate.js index 9f6a1db3..5da33da9 100755 --- a/public/static/plug/layui/lay/modules/laydate.js +++ b/public/static/plug/layui/lay/modules/laydate.js @@ -1,2 +1,2 @@ -/** layui-v2.4.3 MIT License By https://www.layui.com */ +/** layui-v2.5.4 MIT License By https://www.layui.com */ ;!function(){"use strict";var e=window.layui&&layui.define,t={getPath:function(){var e=document.currentScript?document.currentScript.src:function(){for(var e,t=document.scripts,n=t.length-1,a=n;a>0;a--)if("interactive"===t[a].readyState){e=t[a].src;break}return e||t[n].src}();return e.substring(0,e.lastIndexOf("/")+1)}(),getStyle:function(e,t){var n=e.currentStyle?e.currentStyle:window.getComputedStyle(e,null);return n[n.getPropertyValue?"getPropertyValue":"getAttribute"](t)},link:function(e,a,i){if(n.path){var r=document.getElementsByTagName("head")[0],o=document.createElement("link");"string"==typeof a&&(i=a);var s=(i||e).replace(/\.|\//g,""),l="layuicss-"+s,d=0;o.rel="stylesheet",o.href=n.path+e,o.id=l,document.getElementById(l)||r.appendChild(o),"function"==typeof a&&!function c(){return++d>80?window.console&&console.error("laydate.css: Invalid"):void(1989===parseInt(t.getStyle(document.getElementById(l),"width"))?a():setTimeout(c,100))}()}}},n={v:"5.0.9",config:{},index:window.laydate&&window.laydate.v?1e5:0,path:t.getPath,set:function(e){var t=this;return t.config=w.extend({},t.config,e),t},ready:function(a){var i="laydate",r="",o=(e?"modules/laydate/":"theme/")+"default/laydate.css?v="+n.v+r;return e?layui.addcss(o,a,i):t.link(o,a,i),this}},a=function(){var e=this;return{hint:function(t){e.hint.call(e,t)},config:e.config}},i="laydate",r=".layui-laydate",o="layui-this",s="laydate-disabled",l="开始日期超出了结束日期<br>建议重新选择",d=[100,2e5],c="layui-laydate-static",m="layui-laydate-list",u="laydate-selected",h="layui-laydate-hint",y="laydate-day-prev",f="laydate-day-next",p="layui-laydate-footer",g=".laydate-btns-confirm",v="laydate-time-text",D=".laydate-btns-time",T=function(e){var t=this;t.index=++n.index,t.config=w.extend({},t.config,n.config,e),n.ready(function(){t.init()})},w=function(e){return new C(e)},C=function(e){for(var t=0,n="object"==typeof e?[e]:(this.selector=e,document.querySelectorAll(e||null));t<n.length;t++)this.push(n[t])};C.prototype=[],C.prototype.constructor=C,w.extend=function(){var e=1,t=arguments,n=function(e,t){e=e||(t.constructor===Array?[]:{});for(var a in t)e[a]=t[a]&&t[a].constructor===Object?n(e[a],t[a]):t[a];return e};for(t[0]="object"==typeof t[0]?t[0]:{};e<t.length;e++)"object"==typeof t[e]&&n(t[0],t[e]);return t[0]},w.ie=function(){var e=navigator.userAgent.toLowerCase();return!!(window.ActiveXObject||"ActiveXObject"in window)&&((e.match(/msie\s(\d+)/)||[])[1]||"11")}(),w.stope=function(e){e=e||window.event,e.stopPropagation?e.stopPropagation():e.cancelBubble=!0},w.each=function(e,t){var n,a=this;if("function"!=typeof t)return a;if(e=e||[],e.constructor===Object){for(n in e)if(t.call(e[n],n,e[n]))break}else for(n=0;n<e.length&&!t.call(e[n],n,e[n]);n++);return a},w.digit=function(e,t,n){var a="";e=String(e),t=t||2;for(var i=e.length;i<t;i++)a+="0";return e<Math.pow(10,t)?a+(0|e):e},w.elem=function(e,t){var n=document.createElement(e);return w.each(t||{},function(e,t){n.setAttribute(e,t)}),n},C.addStr=function(e,t){return e=e.replace(/\s+/," "),t=t.replace(/\s+/," ").split(" "),w.each(t,function(t,n){new RegExp("\\b"+n+"\\b").test(e)||(e=e+" "+n)}),e.replace(/^\s|\s$/,"")},C.removeStr=function(e,t){return e=e.replace(/\s+/," "),t=t.replace(/\s+/," ").split(" "),w.each(t,function(t,n){var a=new RegExp("\\b"+n+"\\b");a.test(e)&&(e=e.replace(a,""))}),e.replace(/\s+/," ").replace(/^\s|\s$/,"")},C.prototype.find=function(e){var t=this,n=0,a=[],i="object"==typeof e;return this.each(function(r,o){for(var s=i?[e]:o.querySelectorAll(e||null);n<s.length;n++)a.push(s[n]);t.shift()}),i||(t.selector=(t.selector?t.selector+" ":"")+e),w.each(a,function(e,n){t.push(n)}),t},C.prototype.each=function(e){return w.each.call(this,this,e)},C.prototype.addClass=function(e,t){return this.each(function(n,a){a.className=C[t?"removeStr":"addStr"](a.className,e)})},C.prototype.removeClass=function(e){return this.addClass(e,!0)},C.prototype.hasClass=function(e){var t=!1;return this.each(function(n,a){new RegExp("\\b"+e+"\\b").test(a.className)&&(t=!0)}),t},C.prototype.attr=function(e,t){var n=this;return void 0===t?function(){if(n.length>0)return n[0].getAttribute(e)}():n.each(function(n,a){a.setAttribute(e,t)})},C.prototype.removeAttr=function(e){return this.each(function(t,n){n.removeAttribute(e)})},C.prototype.html=function(e){return this.each(function(t,n){n.innerHTML=e})},C.prototype.val=function(e){return this.each(function(t,n){n.value=e})},C.prototype.append=function(e){return this.each(function(t,n){"object"==typeof e?n.appendChild(e):n.innerHTML=n.innerHTML+e})},C.prototype.remove=function(e){return this.each(function(t,n){e?n.removeChild(e):n.parentNode.removeChild(n)})},C.prototype.on=function(e,t){return this.each(function(n,a){a.attachEvent?a.attachEvent("on"+e,function(e){e.target=e.srcElement,t.call(a,e)}):a.addEventListener(e,t,!1)})},C.prototype.off=function(e,t){return this.each(function(n,a){a.detachEvent?a.detachEvent("on"+e,t):a.removeEventListener(e,t,!1)})},T.isLeapYear=function(e){return e%4===0&&e%100!==0||e%400===0},T.prototype.config={type:"date",range:!1,format:"yyyy-MM-dd",value:null,isInitValue:!0,min:"1900-1-1",max:"2099-12-31",trigger:"focus",show:!1,showBottom:!0,btns:["clear","now","confirm"],lang:"cn",theme:"default",position:null,calendar:!1,mark:{},zIndex:null,done:null,change:null},T.prototype.lang=function(){var e=this,t=e.config,n={cn:{weeks:["日","一","二","三","四","五","六"],time:["时","分","秒"],timeTips:"选择时间",startTime:"开始时间",endTime:"结束时间",dateTips:"返回日期",month:["一","二","三","四","五","六","七","八","九","十","十一","十二"],tools:{confirm:"确定",clear:"清空",now:"现在"}},en:{weeks:["Su","Mo","Tu","We","Th","Fr","Sa"],time:["Hours","Minutes","Seconds"],timeTips:"Select Time",startTime:"Start Time",endTime:"End Time",dateTips:"Select Date",month:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],tools:{confirm:"Confirm",clear:"Clear",now:"Now"}}};return n[t.lang]||n.cn},T.prototype.init=function(){var e=this,t=e.config,n="yyyy|y|MM|M|dd|d|HH|H|mm|m|ss|s",a="static"===t.position,i={year:"yyyy",month:"yyyy-MM",date:"yyyy-MM-dd",time:"HH:mm:ss",datetime:"yyyy-MM-dd HH:mm:ss"};t.elem=w(t.elem),t.eventElem=w(t.eventElem),t.elem[0]&&(t.range===!0&&(t.range="-"),t.format===i.date&&(t.format=i[t.type]),e.format=t.format.match(new RegExp(n+"|.","g"))||[],e.EXP_IF="",e.EXP_SPLIT="",w.each(e.format,function(t,a){var i=new RegExp(n).test(a)?"\\d{"+function(){return new RegExp(n).test(e.format[0===t?t+1:t-1]||"")?/^yyyy|y$/.test(a)?4:a.length:/^yyyy$/.test(a)?"1,4":/^y$/.test(a)?"1,308":"1,2"}()+"}":"\\"+a;e.EXP_IF=e.EXP_IF+i,e.EXP_SPLIT=e.EXP_SPLIT+"("+i+")"}),e.EXP_IF=new RegExp("^"+(t.range?e.EXP_IF+"\\s\\"+t.range+"\\s"+e.EXP_IF:e.EXP_IF)+"$"),e.EXP_SPLIT=new RegExp("^"+e.EXP_SPLIT+"$",""),e.isInput(t.elem[0])||"focus"===t.trigger&&(t.trigger="click"),t.elem.attr("lay-key")||(t.elem.attr("lay-key",e.index),t.eventElem.attr("lay-key",e.index)),t.mark=w.extend({},t.calendar&&"cn"===t.lang?{"0-1-1":"元旦","0-2-14":"情人","0-3-8":"妇女","0-3-12":"植树","0-4-1":"愚人","0-5-1":"劳动","0-5-4":"青年","0-6-1":"儿童","0-9-10":"教师","0-9-18":"国耻","0-10-1":"国庆","0-12-25":"圣诞"}:{},t.mark),w.each(["min","max"],function(e,n){var a=[],i=[];if("number"==typeof t[n]){var r=t[n],o=(new Date).getTime(),s=864e5,l=new Date(r?r<s?o+r*s:r:o);a=[l.getFullYear(),l.getMonth()+1,l.getDate()],r<s||(i=[l.getHours(),l.getMinutes(),l.getSeconds()])}else a=(t[n].match(/\d+-\d+-\d+/)||[""])[0].split("-"),i=(t[n].match(/\d+:\d+:\d+/)||[""])[0].split(":");t[n]={year:0|a[0]||(new Date).getFullYear(),month:a[1]?(0|a[1])-1:(new Date).getMonth(),date:0|a[2]||(new Date).getDate(),hours:0|i[0],minutes:0|i[1],seconds:0|i[2]}}),e.elemID="layui-laydate"+t.elem.attr("lay-key"),(t.show||a)&&e.render(),a||e.events(),t.value&&t.isInitValue&&(t.value.constructor===Date?e.setValue(e.parse(0,e.systemDate(t.value))):e.setValue(t.value)))},T.prototype.render=function(){var e=this,t=e.config,n=e.lang(),a="static"===t.position,i=e.elem=w.elem("div",{id:e.elemID,"class":["layui-laydate",t.range?" layui-laydate-range":"",a?" "+c:"",t.theme&&"default"!==t.theme&&!/^#/.test(t.theme)?" laydate-theme-"+t.theme:""].join("")}),r=e.elemMain=[],o=e.elemHeader=[],s=e.elemCont=[],l=e.table=[],d=e.footer=w.elem("div",{"class":p});if(t.zIndex&&(i.style.zIndex=t.zIndex),w.each(new Array(2),function(e){if(!t.range&&e>0)return!0;var a=w.elem("div",{"class":"layui-laydate-header"}),i=[function(){var e=w.elem("i",{"class":"layui-icon laydate-icon laydate-prev-y"});return e.innerHTML="",e}(),function(){var e=w.elem("i",{"class":"layui-icon laydate-icon laydate-prev-m"});return e.innerHTML="",e}(),function(){var e=w.elem("div",{"class":"laydate-set-ym"}),t=w.elem("span"),n=w.elem("span");return e.appendChild(t),e.appendChild(n),e}(),function(){var e=w.elem("i",{"class":"layui-icon laydate-icon laydate-next-m"});return e.innerHTML="",e}(),function(){var e=w.elem("i",{"class":"layui-icon laydate-icon laydate-next-y"});return e.innerHTML="",e}()],d=w.elem("div",{"class":"layui-laydate-content"}),c=w.elem("table"),m=w.elem("thead"),u=w.elem("tr");w.each(i,function(e,t){a.appendChild(t)}),m.appendChild(u),w.each(new Array(6),function(e){var t=c.insertRow(0);w.each(new Array(7),function(a){if(0===e){var i=w.elem("th");i.innerHTML=n.weeks[a],u.appendChild(i)}t.insertCell(a)})}),c.insertBefore(m,c.children[0]),d.appendChild(c),r[e]=w.elem("div",{"class":"layui-laydate-main laydate-main-list-"+e}),r[e].appendChild(a),r[e].appendChild(d),o.push(i),s.push(d),l.push(c)}),w(d).html(function(){var e=[],i=[];return"datetime"===t.type&&e.push('<span lay-type="datetime" class="laydate-btns-time">'+n.timeTips+"</span>"),w.each(t.btns,function(e,r){var o=n.tools[r]||"btn";t.range&&"now"===r||(a&&"clear"===r&&(o="cn"===t.lang?"重置":"Reset"),i.push('<span lay-type="'+r+'" class="laydate-btns-'+r+'">'+o+"</span>"))}),e.push('<div class="laydate-footer-btns">'+i.join("")+"</div>"),e.join("")}()),w.each(r,function(e,t){i.appendChild(t)}),t.showBottom&&i.appendChild(d),/^#/.test(t.theme)){var m=w.elem("style"),u=["#{{id}} .layui-laydate-header{background-color:{{theme}};}","#{{id}} .layui-this{background-color:{{theme}} !important;}"].join("").replace(/{{id}}/g,e.elemID).replace(/{{theme}}/g,t.theme);"styleSheet"in m?(m.setAttribute("type","text/css"),m.styleSheet.cssText=u):m.innerHTML=u,w(i).addClass("laydate-theme-molv"),i.appendChild(m)}e.remove(T.thisElemDate),a?t.elem.append(i):(document.body.appendChild(i),e.position()),e.checkDate().calendar(),e.changeEvent(),T.thisElemDate=e.elemID,"function"==typeof t.ready&&t.ready(w.extend({},t.dateTime,{month:t.dateTime.month+1}))},T.prototype.remove=function(e){var t=this,n=(t.config,w("#"+(e||t.elemID)));return n.hasClass(c)||t.checkDate(function(){n.remove()}),t},T.prototype.position=function(){var e=this,t=e.config,n=e.bindElem||t.elem[0],a=n.getBoundingClientRect(),i=e.elem.offsetWidth,r=e.elem.offsetHeight,o=function(e){return e=e?"scrollLeft":"scrollTop",document.body[e]|document.documentElement[e]},s=function(e){return document.documentElement[e?"clientWidth":"clientHeight"]},l=5,d=a.left,c=a.bottom;d+i+l>s("width")&&(d=s("width")-i-l),c+r+l>s()&&(c=a.top>r?a.top-r:s()-r,c-=2*l),t.position&&(e.elem.style.position=t.position),e.elem.style.left=d+("fixed"===t.position?0:o(1))+"px",e.elem.style.top=c+("fixed"===t.position?0:o())+"px"},T.prototype.hint=function(e){var t=this,n=(t.config,w.elem("div",{"class":h}));t.elem&&(n.innerHTML=e||"",w(t.elem).find("."+h).remove(),t.elem.appendChild(n),clearTimeout(t.hinTimer),t.hinTimer=setTimeout(function(){w(t.elem).find("."+h).remove()},3e3))},T.prototype.getAsYM=function(e,t,n){return n?t--:t++,t<0&&(t=11,e--),t>11&&(t=0,e++),[e,t]},T.prototype.systemDate=function(e){var t=e||new Date;return{year:t.getFullYear(),month:t.getMonth(),date:t.getDate(),hours:e?e.getHours():0,minutes:e?e.getMinutes():0,seconds:e?e.getSeconds():0}},T.prototype.checkDate=function(e){var t,a,i=this,r=(new Date,i.config),o=r.dateTime=r.dateTime||i.systemDate(),s=i.bindElem||r.elem[0],l=(i.isInput(s)?"val":"html",i.isInput(s)?s.value:"static"===r.position?"":s.innerHTML),c=function(e){e.year>d[1]&&(e.year=d[1],a=!0),e.month>11&&(e.month=11,a=!0),e.hours>23&&(e.hours=0,a=!0),e.minutes>59&&(e.minutes=0,e.hours++,a=!0),e.seconds>59&&(e.seconds=0,e.minutes++,a=!0),t=n.getEndDate(e.month+1,e.year),e.date>t&&(e.date=t,a=!0)},m=function(e,t,n){var o=["startTime","endTime"];t=(t.match(i.EXP_SPLIT)||[]).slice(1),n=n||0,r.range&&(i[o[n]]=i[o[n]]||{}),w.each(i.format,function(s,l){var c=parseFloat(t[s]);t[s].length<l.length&&(a=!0),/yyyy|y/.test(l)?(c<d[0]&&(c=d[0],a=!0),e.year=c):/MM|M/.test(l)?(c<1&&(c=1,a=!0),e.month=c-1):/dd|d/.test(l)?(c<1&&(c=1,a=!0),e.date=c):/HH|H/.test(l)?(c<1&&(c=0,a=!0),e.hours=c,r.range&&(i[o[n]].hours=c)):/mm|m/.test(l)?(c<1&&(c=0,a=!0),e.minutes=c,r.range&&(i[o[n]].minutes=c)):/ss|s/.test(l)&&(c<1&&(c=0,a=!0),e.seconds=c,r.range&&(i[o[n]].seconds=c))}),c(e)};return"limit"===e?(c(o),i):(l=l||r.value,"string"==typeof l&&(l=l.replace(/\s+/g," ").replace(/^\s|\s$/g,"")),i.startState&&!i.endState&&(delete i.startState,i.endState=!0),"string"==typeof l&&l?i.EXP_IF.test(l)?r.range?(l=l.split(" "+r.range+" "),i.startDate=i.startDate||i.systemDate(),i.endDate=i.endDate||i.systemDate(),r.dateTime=w.extend({},i.startDate),w.each([i.startDate,i.endDate],function(e,t){m(t,l[e],e)})):m(o,l):(i.hint("日期格式不合法<br>必须遵循下述格式:<br>"+(r.range?r.format+" "+r.range+" "+r.format:r.format)+"<br>已为你重置"),a=!0):l&&l.constructor===Date?r.dateTime=i.systemDate(l):(r.dateTime=i.systemDate(),delete i.startState,delete i.endState,delete i.startDate,delete i.endDate,delete i.startTime,delete i.endTime),c(o),a&&l&&i.setValue(r.range?i.endDate?i.parse():"":i.parse()),e&&e(),i)},T.prototype.mark=function(e,t){var n,a=this,i=a.config;return w.each(i.mark,function(e,a){var i=e.split("-");i[0]!=t[0]&&0!=i[0]||i[1]!=t[1]&&0!=i[1]||i[2]!=t[2]||(n=a||t[2])}),n&&e.html('<span class="laydate-day-mark">'+n+"</span>"),a},T.prototype.limit=function(e,t,n,a){var i,r=this,o=r.config,l={},d=o[n>41?"endDate":"dateTime"],c=w.extend({},d,t||{});return w.each({now:c,min:o.min,max:o.max},function(e,t){l[e]=r.newDate(w.extend({year:t.year,month:t.month,date:t.date},function(){var e={};return w.each(a,function(n,a){e[a]=t[a]}),e}())).getTime()}),i=l.now<l.min||l.now>l.max,e&&e[i?"addClass":"removeClass"](s),i},T.prototype.calendar=function(e){var t,a,i,r=this,s=r.config,l=e||s.dateTime,c=new Date,m=r.lang(),u="date"!==s.type&&"datetime"!==s.type,h=e?1:0,y=w(r.table[h]).find("td"),f=w(r.elemHeader[h][2]).find("span");if(l.year<d[0]&&(l.year=d[0],r.hint("最低只能支持到公元"+d[0]+"年")),l.year>d[1]&&(l.year=d[1],r.hint("最高只能支持到公元"+d[1]+"年")),r.firstDate||(r.firstDate=w.extend({},l)),c.setFullYear(l.year,l.month,1),t=c.getDay(),a=n.getEndDate(l.month||12,l.year),i=n.getEndDate(l.month+1,l.year),w.each(y,function(e,n){var d=[l.year,l.month],c=0;n=w(n),n.removeAttr("class"),e<t?(c=a-t+e,n.addClass("laydate-day-prev"),d=r.getAsYM(l.year,l.month,"sub")):e>=t&&e<i+t?(c=e-t,s.range||c+1===l.date&&n.addClass(o)):(c=e-i-t,n.addClass("laydate-day-next"),d=r.getAsYM(l.year,l.month)),d[1]++,d[2]=c+1,n.attr("lay-ymd",d.join("-")).html(d[2]),r.mark(n,d).limit(n,{year:d[0],month:d[1]-1,date:d[2]},e)}),w(f[0]).attr("lay-ym",l.year+"-"+(l.month+1)),w(f[1]).attr("lay-ym",l.year+"-"+(l.month+1)),"cn"===s.lang?(w(f[0]).attr("lay-type","year").html(l.year+"年"),w(f[1]).attr("lay-type","month").html(l.month+1+"月")):(w(f[0]).attr("lay-type","month").html(m.month[l.month]),w(f[1]).attr("lay-type","year").html(l.year)),u&&(s.range&&(e?r.endDate=r.endDate||{year:l.year+("year"===s.type?1:0),month:l.month+("month"===s.type?0:-1)}:r.startDate=r.startDate||{year:l.year,month:l.month},e&&(r.listYM=[[r.startDate.year,r.startDate.month+1],[r.endDate.year,r.endDate.month+1]],r.list(s.type,0).list(s.type,1),"time"===s.type?r.setBtnStatus("时间",w.extend({},r.systemDate(),r.startTime),w.extend({},r.systemDate(),r.endTime)):r.setBtnStatus(!0))),s.range||(r.listYM=[[l.year,l.month+1]],r.list(s.type,0))),s.range&&!e){var p=r.getAsYM(l.year,l.month);r.calendar(w.extend({},l,{year:p[0],month:p[1]}))}return s.range||r.limit(w(r.footer).find(g),null,0,["hours","minutes","seconds"]),s.range&&e&&!u&&r.stampRange(),r},T.prototype.list=function(e,t){var n=this,a=n.config,i=a.dateTime,r=n.lang(),l=a.range&&"date"!==a.type&&"datetime"!==a.type,d=w.elem("ul",{"class":m+" "+{year:"laydate-year-list",month:"laydate-month-list",time:"laydate-time-list"}[e]}),c=n.elemHeader[t],u=w(c[2]).find("span"),h=n.elemCont[t||0],y=w(h).find("."+m)[0],f="cn"===a.lang,p=f?"年":"",T=n.listYM[t]||{},C=["hours","minutes","seconds"],x=["startTime","endTime"][t];if(T[0]<1&&(T[0]=1),"year"===e){var M,b=M=T[0]-7;b<1&&(b=M=1),w.each(new Array(15),function(e){var i=w.elem("li",{"lay-ym":M}),r={year:M};M==T[0]&&w(i).addClass(o),i.innerHTML=M+p,d.appendChild(i),M<n.firstDate.year?(r.month=a.min.month,r.date=a.min.date):M>=n.firstDate.year&&(r.month=a.max.month,r.date=a.max.date),n.limit(w(i),r,t),M++}),w(u[f?0:1]).attr("lay-ym",M-8+"-"+T[1]).html(b+p+" - "+(M-1+p))}else if("month"===e)w.each(new Array(12),function(e){var i=w.elem("li",{"lay-ym":e}),s={year:T[0],month:e};e+1==T[1]&&w(i).addClass(o),i.innerHTML=r.month[e]+(f?"月":""),d.appendChild(i),T[0]<n.firstDate.year?s.date=a.min.date:T[0]>=n.firstDate.year&&(s.date=a.max.date),n.limit(w(i),s,t)}),w(u[f?0:1]).attr("lay-ym",T[0]+"-"+T[1]).html(T[0]+p);else if("time"===e){var E=function(){w(d).find("ol").each(function(e,a){w(a).find("li").each(function(a,i){n.limit(w(i),[{hours:a},{hours:n[x].hours,minutes:a},{hours:n[x].hours,minutes:n[x].minutes,seconds:a}][e],t,[["hours"],["hours","minutes"],["hours","minutes","seconds"]][e])})}),a.range||n.limit(w(n.footer).find(g),n[x],0,["hours","minutes","seconds"])};a.range?n[x]||(n[x]={hours:0,minutes:0,seconds:0}):n[x]=i,w.each([24,60,60],function(e,t){var a=w.elem("li"),i=["<p>"+r.time[e]+"</p><ol>"];w.each(new Array(t),function(t){i.push("<li"+(n[x][C[e]]===t?' class="'+o+'"':"")+">"+w.digit(t,2)+"</li>")}),a.innerHTML=i.join("")+"</ol>",d.appendChild(a)}),E()}if(y&&h.removeChild(y),h.appendChild(d),"year"===e||"month"===e)w(n.elemMain[t]).addClass("laydate-ym-show"),w(d).find("li").on("click",function(){var r=0|w(this).attr("lay-ym");if(!w(this).hasClass(s)){if(0===t)i[e]=r,l&&(n.startDate[e]=r),n.limit(w(n.footer).find(g),null,0);else if(l)n.endDate[e]=r;else{var c="year"===e?n.getAsYM(r,T[1]-1,"sub"):n.getAsYM(T[0],r,"sub");w.extend(i,{year:c[0],month:c[1]})}"year"===a.type||"month"===a.type?(w(d).find("."+o).removeClass(o),w(this).addClass(o),"month"===a.type&&"year"===e&&(n.listYM[t][0]=r,l&&(n[["startDate","endDate"][t]].year=r),n.list("month",t))):(n.checkDate("limit").calendar(),n.closeList()),n.setBtnStatus(),a.range||n.done(null,"change"),w(n.footer).find(D).removeClass(s)}});else{var S=w.elem("span",{"class":v}),k=function(){w(d).find("ol").each(function(e){var t=this,a=w(t).find("li");t.scrollTop=30*(n[x][C[e]]-2),t.scrollTop<=0&&a.each(function(e,n){if(!w(this).hasClass(s))return t.scrollTop=30*(e-2),!0})})},H=w(c[2]).find("."+v);k(),S.innerHTML=a.range?[r.startTime,r.endTime][t]:r.timeTips,w(n.elemMain[t]).addClass("laydate-time-show"),H[0]&&H.remove(),c[2].appendChild(S),w(d).find("ol").each(function(e){var t=this;w(t).find("li").on("click",function(){var r=0|this.innerHTML;w(this).hasClass(s)||(a.range?n[x][C[e]]=r:i[C[e]]=r,w(t).find("."+o).removeClass(o),w(this).addClass(o),E(),k(),(n.endDate||"time"===a.type)&&n.done(null,"change"),n.setBtnStatus())})})}return n},T.prototype.listYM=[],T.prototype.closeList=function(){var e=this;e.config;w.each(e.elemCont,function(t,n){w(this).find("."+m).remove(),w(e.elemMain[t]).removeClass("laydate-ym-show laydate-time-show")}),w(e.elem).find("."+v).remove()},T.prototype.setBtnStatus=function(e,t,n){var a,i=this,r=i.config,o=w(i.footer).find(g),d=r.range&&"date"!==r.type&&"time"!==r.type;d&&(t=t||i.startDate,n=n||i.endDate,a=i.newDate(t).getTime()>i.newDate(n).getTime(),i.limit(null,t)||i.limit(null,n)?o.addClass(s):o[a?"addClass":"removeClass"](s),e&&a&&i.hint("string"==typeof e?l.replace(/日期/g,e):l))},T.prototype.parse=function(e,t){var n=this,a=n.config,i=t||(e?w.extend({},n.endDate,n.endTime):a.range?w.extend({},n.startDate,n.startTime):a.dateTime),r=n.format.concat();return w.each(r,function(e,t){/yyyy|y/.test(t)?r[e]=w.digit(i.year,t.length):/MM|M/.test(t)?r[e]=w.digit(i.month+1,t.length):/dd|d/.test(t)?r[e]=w.digit(i.date,t.length):/HH|H/.test(t)?r[e]=w.digit(i.hours,t.length):/mm|m/.test(t)?r[e]=w.digit(i.minutes,t.length):/ss|s/.test(t)&&(r[e]=w.digit(i.seconds,t.length))}),a.range&&!e?r.join("")+" "+a.range+" "+n.parse(1):r.join("")},T.prototype.newDate=function(e){return e=e||{},new Date(e.year||1,e.month||0,e.date||1,e.hours||0,e.minutes||0,e.seconds||0)},T.prototype.setValue=function(e){var t=this,n=t.config,a=t.bindElem||n.elem[0],i=t.isInput(a)?"val":"html";return"static"===n.position||w(a)[i](e||""),this},T.prototype.stampRange=function(){var e,t,n=this,a=n.config,i=w(n.elem).find("td");if(a.range&&!n.endDate&&w(n.footer).find(g).addClass(s),n.endDate)return e=n.newDate({year:n.startDate.year,month:n.startDate.month,date:n.startDate.date}).getTime(),t=n.newDate({year:n.endDate.year,month:n.endDate.month,date:n.endDate.date}).getTime(),e>t?n.hint(l):void w.each(i,function(a,i){var r=w(i).attr("lay-ymd").split("-"),s=n.newDate({year:r[0],month:r[1]-1,date:r[2]}).getTime();w(i).removeClass(u+" "+o),s!==e&&s!==t||w(i).addClass(w(i).hasClass(y)||w(i).hasClass(f)?u:o),s>e&&s<t&&w(i).addClass(u)})},T.prototype.done=function(e,t){var n=this,a=n.config,i=w.extend({},n.startDate?w.extend(n.startDate,n.startTime):a.dateTime),r=w.extend({},w.extend(n.endDate,n.endTime));return w.each([i,r],function(e,t){"month"in t&&w.extend(t,{month:t.month+1})}),e=e||[n.parse(),i,r],"function"==typeof a[t||"done"]&&a[t||"done"].apply(a,e),n},T.prototype.choose=function(e){var t=this,n=t.config,a=n.dateTime,i=w(t.elem).find("td"),r=e.attr("lay-ymd").split("-"),l=function(e){new Date;e&&w.extend(a,r),n.range&&(t.startDate?w.extend(t.startDate,r):t.startDate=w.extend({},r,t.startTime),t.startYMD=r)};if(r={year:0|r[0],month:(0|r[1])-1,date:0|r[2]},!e.hasClass(s))if(n.range){if(w.each(["startTime","endTime"],function(e,n){t[n]=t[n]||{hours:0,minutes:0,seconds:0}}),t.endState)l(),delete t.endState,delete t.endDate,t.startState=!0,i.removeClass(o+" "+u),e.addClass(o);else if(t.startState){if(e.addClass(o),t.endDate?w.extend(t.endDate,r):t.endDate=w.extend({},r,t.endTime),t.newDate(r).getTime()<t.newDate(t.startYMD).getTime()){var d=w.extend({},t.endDate,{hours:t.startDate.hours,minutes:t.startDate.minutes,seconds:t.startDate.seconds});w.extend(t.endDate,t.startDate,{hours:t.endDate.hours,minutes:t.endDate.minutes,seconds:t.endDate.seconds}),t.startDate=d}n.showBottom||t.done(),t.stampRange(),t.endState=!0,t.done(null,"change")}else e.addClass(o),l(),t.startState=!0;w(t.footer).find(g)[t.endDate?"removeClass":"addClass"](s)}else"static"===n.position?(l(!0),t.calendar().done().done(null,"change")):"date"===n.type?(l(!0),t.setValue(t.parse()).remove().done()):"datetime"===n.type&&(l(!0),t.calendar().done(null,"change"))},T.prototype.tool=function(e,t){var n=this,a=n.config,i=a.dateTime,r="static"===a.position,o={datetime:function(){w(e).hasClass(s)||(n.list("time",0),a.range&&n.list("time",1),w(e).attr("lay-type","date").html(n.lang().dateTips))},date:function(){n.closeList(),w(e).attr("lay-type","datetime").html(n.lang().timeTips)},clear:function(){n.setValue("").remove(),r&&(w.extend(i,n.firstDate),n.calendar()),a.range&&(delete n.startState,delete n.endState,delete n.endDate,delete n.startTime,delete n.endTime),n.done(["",{},{}])},now:function(){var e=new Date;w.extend(i,n.systemDate(),{hours:e.getHours(),minutes:e.getMinutes(),seconds:e.getSeconds()}),n.setValue(n.parse()).remove(),r&&n.calendar(),n.done()},confirm:function(){if(a.range){if(!n.endDate)return n.hint("请先选择日期范围");if(w(e).hasClass(s))return n.hint("time"===a.type?l.replace(/日期/g,"时间"):l)}else if(w(e).hasClass(s))return n.hint("不在有效日期或时间范围内");n.done(),n.setValue(n.parse()).remove()}};o[t]&&o[t]()},T.prototype.change=function(e){var t=this,n=t.config,a=n.dateTime,i=n.range&&("year"===n.type||"month"===n.type),r=t.elemCont[e||0],o=t.listYM[e],s=function(s){var l=["startDate","endDate"][e],d=w(r).find(".laydate-year-list")[0],c=w(r).find(".laydate-month-list")[0];return d&&(o[0]=s?o[0]-15:o[0]+15,t.list("year",e)),c&&(s?o[0]--:o[0]++,t.list("month",e)),(d||c)&&(w.extend(a,{year:o[0]}),i&&(t[l].year=o[0]),n.range||t.done(null,"change"),t.setBtnStatus(),n.range||t.limit(w(t.footer).find(g),{year:o[0]})),d||c};return{prevYear:function(){s("sub")||(a.year--,t.checkDate("limit").calendar(),n.range||t.done(null,"change"))},prevMonth:function(){var e=t.getAsYM(a.year,a.month,"sub");w.extend(a,{year:e[0],month:e[1]}),t.checkDate("limit").calendar(),n.range||t.done(null,"change")},nextMonth:function(){var e=t.getAsYM(a.year,a.month);w.extend(a,{year:e[0],month:e[1]}),t.checkDate("limit").calendar(),n.range||t.done(null,"change")},nextYear:function(){s()||(a.year++,t.checkDate("limit").calendar(),n.range||t.done(null,"change"))}}},T.prototype.changeEvent=function(){var e=this;e.config;w(e.elem).on("click",function(e){w.stope(e)}),w.each(e.elemHeader,function(t,n){w(n[0]).on("click",function(n){e.change(t).prevYear()}),w(n[1]).on("click",function(n){e.change(t).prevMonth()}),w(n[2]).find("span").on("click",function(n){var a=w(this),i=a.attr("lay-ym"),r=a.attr("lay-type");i&&(i=i.split("-"),e.listYM[t]=[0|i[0],0|i[1]],e.list(r,t),w(e.footer).find(D).addClass(s))}),w(n[3]).on("click",function(n){e.change(t).nextMonth()}),w(n[4]).on("click",function(n){e.change(t).nextYear()})}),w.each(e.table,function(t,n){var a=w(n).find("td");a.on("click",function(){e.choose(w(this))})}),w(e.footer).find("span").on("click",function(){var t=w(this).attr("lay-type");e.tool(this,t)})},T.prototype.isInput=function(e){return/input|textarea/.test(e.tagName.toLocaleLowerCase())},T.prototype.events=function(){var e=this,t=e.config,n=function(n,a){n.on(t.trigger,function(){a&&(e.bindElem=this),e.render()})};t.elem[0]&&!t.elem[0].eventHandler&&(n(t.elem,"bind"),n(t.eventElem),w(document).on("click",function(n){n.target!==t.elem[0]&&n.target!==t.eventElem[0]&&n.target!==w(t.closeStop)[0]&&e.remove()}).on("keydown",function(t){13===t.keyCode&&w("#"+e.elemID)[0]&&e.elemID===T.thisElem&&(t.preventDefault(),w(e.footer).find(g)[0].click())}),w(window).on("resize",function(){return!(!e.elem||!w(r)[0])&&void e.position()}),t.elem[0].eventHandler=!0)},n.render=function(e){var t=new T(e);return a.call(t)},n.getEndDate=function(e,t){var n=new Date;return n.setFullYear(t||n.getFullYear(),e||n.getMonth()+1,1),new Date(n.getTime()-864e5).getDate()},window.lay=window.lay||w,e?(n.ready(),layui.define(function(e){n.path=layui.cache.dir,e(i,n)})):"function"==typeof define&&define.amd?define(function(){return n}):function(){n.ready(),window.laydate=n}()}(); \ No newline at end of file diff --git a/public/static/plug/layui/lay/modules/layedit.js b/public/static/plug/layui/lay/modules/layedit.js index 72e2d0e8..71fa95c9 100755 --- a/public/static/plug/layui/lay/modules/layedit.js +++ b/public/static/plug/layui/lay/modules/layedit.js @@ -1,2 +1,2 @@ -/** layui-v2.4.3 MIT License By https://www.layui.com */ +/** layui-v2.5.4 MIT License By https://www.layui.com */ ;layui.define(["layer","form"],function(t){"use strict";var e=layui.$,i=layui.layer,a=layui.form,l=(layui.hint(),layui.device()),n="layedit",o="layui-show",r="layui-disabled",c=function(){var t=this;t.index=0,t.config={tool:["strong","italic","underline","del","|","left","center","right","|","link","unlink","face","image"],hideTool:[],height:280}};c.prototype.set=function(t){var i=this;return e.extend(!0,i.config,t),i},c.prototype.on=function(t,e){return layui.onevent(n,t,e)},c.prototype.build=function(t,i){i=i||{};var a=this,n=a.config,r="layui-layedit",c=e("string"==typeof t?"#"+t:t),u="LAY_layedit_"+ ++a.index,d=c.next("."+r),y=e.extend({},n,i),f=function(){var t=[],e={};return layui.each(y.hideTool,function(t,i){e[i]=!0}),layui.each(y.tool,function(i,a){C[a]&&!e[a]&&t.push(C[a])}),t.join("")}(),m=e(['<div class="'+r+'">','<div class="layui-unselect layui-layedit-tool">'+f+"</div>",'<div class="layui-layedit-iframe">','<iframe id="'+u+'" name="'+u+'" textarea="'+t+'" frameborder="0"></iframe>',"</div>","</div>"].join(""));return l.ie&&l.ie<8?c.removeClass("layui-hide").addClass(o):(d[0]&&d.remove(),s.call(a,m,c[0],y),c.addClass("layui-hide").after(m),a.index)},c.prototype.getContent=function(t){var e=u(t);if(e[0])return d(e[0].document.body.innerHTML)},c.prototype.getText=function(t){var i=u(t);if(i[0])return e(i[0].document.body).text()},c.prototype.setContent=function(t,i,a){var l=u(t);l[0]&&(a?e(l[0].document.body).append(i):e(l[0].document.body).html(i),layedit.sync(t))},c.prototype.sync=function(t){var i=u(t);if(i[0]){var a=e("#"+i[1].attr("textarea"));a.val(d(i[0].document.body.innerHTML))}},c.prototype.getSelection=function(t){var e=u(t);if(e[0]){var i=m(e[0].document);return document.selection?i.text:i.toString()}};var s=function(t,i,a){var l=this,n=t.find("iframe");n.css({height:a.height}).on("load",function(){var o=n.contents(),r=n.prop("contentWindow"),c=o.find("head"),s=e(["<style>","*{margin: 0; padding: 0;}","body{padding: 10px; line-height: 20px; overflow-x: hidden; word-wrap: break-word; font: 14px Helvetica Neue,Helvetica,PingFang SC,Microsoft YaHei,Tahoma,Arial,sans-serif; -webkit-box-sizing: border-box !important; -moz-box-sizing: border-box !important; box-sizing: border-box !important;}","a{color:#01AAED; text-decoration:none;}a:hover{color:#c00}","p{margin-bottom: 10px;}","img{display: inline-block; border: none; vertical-align: middle;}","pre{margin: 10px 0; padding: 10px; line-height: 20px; border: 1px solid #ddd; border-left-width: 6px; background-color: #F2F2F2; color: #333; font-family: Courier New; font-size: 12px;}","</style>"].join("")),u=o.find("body");c.append(s),u.attr("contenteditable","true").css({"min-height":a.height}).html(i.value||""),y.apply(l,[r,n,i,a]),g.call(l,r,t,a)})},u=function(t){var i=e("#LAY_layedit_"+t),a=i.prop("contentWindow");return[a,i]},d=function(t){return 8==l.ie&&(t=t.replace(/<.+>/g,function(t){return t.toLowerCase()})),t},y=function(t,a,n,o){var r=t.document,c=e(r.body);c.on("keydown",function(t){var e=t.keyCode;if(13===e){var a=m(r),l=p(a),n=l.parentNode;if("pre"===n.tagName.toLowerCase()){if(t.shiftKey)return;return i.msg("请暂时用shift+enter"),!1}r.execCommand("formatBlock",!1,"<p>")}}),e(n).parents("form").on("submit",function(){var t=c.html();8==l.ie&&(t=t.replace(/<.+>/g,function(t){return t.toLowerCase()})),n.value=t}),c.on("paste",function(e){r.execCommand("formatBlock",!1,"<p>"),setTimeout(function(){f.call(t,c),n.value=c.html()},100)})},f=function(t){var i=this;i.document;t.find("*[style]").each(function(){var t=this.style.textAlign;this.removeAttribute("style"),e(this).css({"text-align":t||""})}),t.find("table").addClass("layui-table"),t.find("script,link").remove()},m=function(t){return t.selection?t.selection.createRange():t.getSelection().getRangeAt(0)},p=function(t){return t.endContainer||t.parentElement().childNodes[0]},v=function(t,i,a){var l=this.document,n=document.createElement(t);for(var o in i)n.setAttribute(o,i[o]);if(n.removeAttribute("text"),l.selection){var r=a.text||i.text;if("a"===t&&!r)return;r&&(n.innerHTML=r),a.pasteHTML(e(n).prop("outerHTML")),a.select()}else{var r=a.toString()||i.text;if("a"===t&&!r)return;r&&(n.innerHTML=r),a.deleteContents(),a.insertNode(n)}},h=function(t,i){var a=this.document,l="layedit-tool-active",n=p(m(a)),o=function(e){return t.find(".layedit-tool-"+e)};i&&i[i.hasClass(l)?"removeClass":"addClass"](l),t.find(">i").removeClass(l),o("unlink").addClass(r),e(n).parents().each(function(){var t=this.tagName.toLowerCase(),e=this.style.textAlign;"b"!==t&&"strong"!==t||o("b").addClass(l),"i"!==t&&"em"!==t||o("i").addClass(l),"u"===t&&o("u").addClass(l),"strike"===t&&o("d").addClass(l),"p"===t&&("center"===e?o("center").addClass(l):"right"===e?o("right").addClass(l):o("left").addClass(l)),"a"===t&&(o("link").addClass(l),o("unlink").removeClass(r))})},g=function(t,a,l){var n=t.document,o=e(n.body),c={link:function(i){var a=p(i),l=e(a).parent();b.call(o,{href:l.attr("href"),target:l.attr("target")},function(e){var a=l[0];"A"===a.tagName?a.href=e.url:v.call(t,"a",{target:e.target,href:e.url,text:e.url},i)})},unlink:function(t){n.execCommand("unlink")},face:function(e){x.call(this,function(i){v.call(t,"img",{src:i.src,alt:i.alt},e)})},image:function(a){var n=this;layui.use("upload",function(o){var r=l.uploadImage||{};o.render({url:r.url,method:r.type,elem:e(n).find("input")[0],done:function(e){0==e.code?(e.data=e.data||{},v.call(t,"img",{src:e.data.src,alt:e.data.title},a)):i.msg(e.msg||"上传失败")}})})},code:function(e){k.call(o,function(i){v.call(t,"pre",{text:i.code,"lay-lang":i.lang},e)})},help:function(){i.open({type:2,title:"帮助",area:["600px","380px"],shadeClose:!0,shade:.1,skin:"layui-layer-msg",content:["http://www.layui.com/about/layedit/help.html","no"]})}},s=a.find(".layui-layedit-tool"),u=function(){var i=e(this),a=i.attr("layedit-event"),l=i.attr("lay-command");if(!i.hasClass(r)){o.focus();var u=m(n);u.commonAncestorContainer;l?(n.execCommand(l),/justifyLeft|justifyCenter|justifyRight/.test(l)&&n.execCommand("formatBlock",!1,"<p>"),setTimeout(function(){o.focus()},10)):c[a]&&c[a].call(this,u),h.call(t,s,i)}},d=/image/;s.find(">i").on("mousedown",function(){var t=e(this),i=t.attr("layedit-event");d.test(i)||u.call(this)}).on("click",function(){var t=e(this),i=t.attr("layedit-event");d.test(i)&&u.call(this)}),o.on("click",function(){h.call(t,s),i.close(x.index)})},b=function(t,e){var l=this,n=i.open({type:1,id:"LAY_layedit_link",area:"350px",shade:.05,shadeClose:!0,moveType:1,title:"超链接",skin:"layui-layer-msg",content:['<ul class="layui-form" style="margin: 15px;">','<li class="layui-form-item">','<label class="layui-form-label" style="width: 60px;">URL</label>','<div class="layui-input-block" style="margin-left: 90px">','<input name="url" lay-verify="url" value="'+(t.href||"")+'" autofocus="true" autocomplete="off" class="layui-input">',"</div>","</li>",'<li class="layui-form-item">','<label class="layui-form-label" style="width: 60px;">打开方式</label>','<div class="layui-input-block" style="margin-left: 90px">','<input type="radio" name="target" value="_self" class="layui-input" title="当前窗口"'+("_self"!==t.target&&t.target?"":"checked")+">",'<input type="radio" name="target" value="_blank" class="layui-input" title="新窗口" '+("_blank"===t.target?"checked":"")+">","</div>","</li>",'<li class="layui-form-item" style="text-align: center;">','<button type="button" lay-submit lay-filter="layedit-link-yes" class="layui-btn"> 确定 </button>','<button style="margin-left: 20px;" type="button" class="layui-btn layui-btn-primary"> 取消 </button>',"</li>","</ul>"].join(""),success:function(t,n){var o="submit(layedit-link-yes)";a.render("radio"),t.find(".layui-btn-primary").on("click",function(){i.close(n),l.focus()}),a.on(o,function(t){i.close(b.index),e&&e(t.field)})}});b.index=n},x=function(t){var a=function(){var t=["[微笑]","[嘻嘻]","[哈哈]","[可爱]","[可怜]","[挖鼻]","[吃惊]","[害羞]","[挤眼]","[闭嘴]","[鄙视]","[爱你]","[泪]","[偷笑]","[亲亲]","[生病]","[太开心]","[白眼]","[右哼哼]","[左哼哼]","[嘘]","[衰]","[委屈]","[吐]","[哈欠]","[抱抱]","[怒]","[疑问]","[馋嘴]","[拜拜]","[思考]","[汗]","[困]","[睡]","[钱]","[失望]","[酷]","[色]","[哼]","[鼓掌]","[晕]","[悲伤]","[抓狂]","[黑线]","[阴险]","[怒骂]","[互粉]","[心]","[伤心]","[猪头]","[熊猫]","[兔子]","[ok]","[耶]","[good]","[NO]","[赞]","[来]","[弱]","[草泥马]","[神马]","[囧]","[浮云]","[给力]","[围观]","[威武]","[奥特曼]","[礼物]","[钟]","[话筒]","[蜡烛]","[蛋糕]"],e={};return layui.each(t,function(t,i){e[i]=layui.cache.dir+"images/face/"+t+".gif"}),e}();return x.hide=x.hide||function(t){"face"!==e(t.target).attr("layedit-event")&&i.close(x.index)},x.index=i.tips(function(){var t=[];return layui.each(a,function(e,i){t.push('<li title="'+e+'"><img src="'+i+'" alt="'+e+'"></li>')}),'<ul class="layui-clear">'+t.join("")+"</ul>"}(),this,{tips:1,time:0,skin:"layui-box layui-util-face",maxWidth:500,success:function(l,n){l.css({marginTop:-4,marginLeft:-10}).find(".layui-clear>li").on("click",function(){t&&t({src:a[this.title],alt:this.title}),i.close(n)}),e(document).off("click",x.hide).on("click",x.hide)}})},k=function(t){var e=this,l=i.open({type:1,id:"LAY_layedit_code",area:"550px",shade:.05,shadeClose:!0,moveType:1,title:"插入代码",skin:"layui-layer-msg",content:['<ul class="layui-form layui-form-pane" style="margin: 15px;">','<li class="layui-form-item">','<label class="layui-form-label">请选择语言</label>','<div class="layui-input-block">','<select name="lang">','<option value="JavaScript">JavaScript</option>','<option value="HTML">HTML</option>','<option value="CSS">CSS</option>','<option value="Java">Java</option>','<option value="PHP">PHP</option>','<option value="C#">C#</option>','<option value="Python">Python</option>','<option value="Ruby">Ruby</option>','<option value="Go">Go</option>',"</select>","</div>","</li>",'<li class="layui-form-item layui-form-text">','<label class="layui-form-label">代码</label>','<div class="layui-input-block">','<textarea name="code" lay-verify="required" autofocus="true" class="layui-textarea" style="height: 200px;"></textarea>',"</div>","</li>",'<li class="layui-form-item" style="text-align: center;">','<button type="button" lay-submit lay-filter="layedit-code-yes" class="layui-btn"> 确定 </button>','<button style="margin-left: 20px;" type="button" class="layui-btn layui-btn-primary"> 取消 </button>',"</li>","</ul>"].join(""),success:function(l,n){var o="submit(layedit-code-yes)";a.render("select"),l.find(".layui-btn-primary").on("click",function(){i.close(n),e.focus()}),a.on(o,function(e){i.close(k.index),t&&t(e.field)})}});k.index=l},C={html:'<i class="layui-icon layedit-tool-html" title="HTML源代码" lay-command="html" layedit-event="html""></i><span class="layedit-tool-mid"></span>',strong:'<i class="layui-icon layedit-tool-b" title="加粗" lay-command="Bold" layedit-event="b""></i>',italic:'<i class="layui-icon layedit-tool-i" title="斜体" lay-command="italic" layedit-event="i""></i>',underline:'<i class="layui-icon layedit-tool-u" title="下划线" lay-command="underline" layedit-event="u""></i>',del:'<i class="layui-icon layedit-tool-d" title="删除线" lay-command="strikeThrough" layedit-event="d""></i>',"|":'<span class="layedit-tool-mid"></span>',left:'<i class="layui-icon layedit-tool-left" title="左对齐" lay-command="justifyLeft" layedit-event="left""></i>',center:'<i class="layui-icon layedit-tool-center" title="居中对齐" lay-command="justifyCenter" layedit-event="center""></i>',right:'<i class="layui-icon layedit-tool-right" title="右对齐" lay-command="justifyRight" layedit-event="right""></i>',link:'<i class="layui-icon layedit-tool-link" title="插入链接" layedit-event="link""></i>',unlink:'<i class="layui-icon layedit-tool-unlink layui-disabled" title="清除链接" lay-command="unlink" layedit-event="unlink""></i>',face:'<i class="layui-icon layedit-tool-face" title="表情" layedit-event="face""></i>',image:'<i class="layui-icon layedit-tool-image" title="图片" layedit-event="image"><input type="file" name="file"></i>',code:'<i class="layui-icon layedit-tool-code" title="插入代码" layedit-event="code"></i>',help:'<i class="layui-icon layedit-tool-help" title="帮助" layedit-event="help"></i>'},w=new c;t(n,w)}); \ No newline at end of file diff --git a/public/static/plug/layui/lay/modules/layer.js b/public/static/plug/layui/lay/modules/layer.js index 41b5510c..32208579 100755 --- a/public/static/plug/layui/lay/modules/layer.js +++ b/public/static/plug/layui/lay/modules/layer.js @@ -1,2 +1,2 @@ -/** layui-v2.4.3 MIT License By https://www.layui.com */ +/** layui-v2.5.4 MIT License By https://www.layui.com */ ;!function(e,t){"use strict";var i,n,a=e.layui&&layui.define,o={getPath:function(){var e=document.currentScript?document.currentScript.src:function(){for(var e,t=document.scripts,i=t.length-1,n=i;n>0;n--)if("interactive"===t[n].readyState){e=t[n].src;break}return e||t[i].src}();return e.substring(0,e.lastIndexOf("/")+1)}(),config:{},end:{},minIndex:0,minLeft:[],btn:["确定","取消"],type:["dialog","page","iframe","loading","tips"],getStyle:function(t,i){var n=t.currentStyle?t.currentStyle:e.getComputedStyle(t,null);return n[n.getPropertyValue?"getPropertyValue":"getAttribute"](i)},link:function(t,i,n){if(r.path){var a=document.getElementsByTagName("head")[0],s=document.createElement("link");"string"==typeof i&&(n=i);var l=(n||t).replace(/\.|\//g,""),f="layuicss-"+l,c=0;s.rel="stylesheet",s.href=r.path+t,s.id=f,document.getElementById(f)||a.appendChild(s),"function"==typeof i&&!function u(){return++c>80?e.console&&console.error("layer.css: Invalid"):void(1989===parseInt(o.getStyle(document.getElementById(f),"width"))?i():setTimeout(u,100))}()}}},r={v:"3.1.1",ie:function(){var t=navigator.userAgent.toLowerCase();return!!(e.ActiveXObject||"ActiveXObject"in e)&&((t.match(/msie\s(\d+)/)||[])[1]||"11")}(),index:e.layer&&e.layer.v?1e5:0,path:o.getPath,config:function(e,t){return e=e||{},r.cache=o.config=i.extend({},o.config,e),r.path=o.config.path||r.path,"string"==typeof e.extend&&(e.extend=[e.extend]),o.config.path&&r.ready(),e.extend?(a?layui.addcss("modules/layer/"+e.extend):o.link("theme/"+e.extend),this):this},ready:function(e){var t="layer",i="",n=(a?"modules/layer/":"theme/")+"default/layer.css?v="+r.v+i;return a?layui.addcss(n,e,t):o.link(n,e,t),this},alert:function(e,t,n){var a="function"==typeof t;return a&&(n=t),r.open(i.extend({content:e,yes:n},a?{}:t))},confirm:function(e,t,n,a){var s="function"==typeof t;return s&&(a=n,n=t),r.open(i.extend({content:e,btn:o.btn,yes:n,btn2:a},s?{}:t))},msg:function(e,n,a){var s="function"==typeof n,f=o.config.skin,c=(f?f+" "+f+"-msg":"")||"layui-layer-msg",u=l.anim.length-1;return s&&(a=n),r.open(i.extend({content:e,time:3e3,shade:!1,skin:c,title:!1,closeBtn:!1,btn:!1,resize:!1,end:a},s&&!o.config.skin?{skin:c+" layui-layer-hui",anim:u}:function(){return n=n||{},(n.icon===-1||n.icon===t&&!o.config.skin)&&(n.skin=c+" "+(n.skin||"layui-layer-hui")),n}()))},load:function(e,t){return r.open(i.extend({type:3,icon:e||0,resize:!1,shade:.01},t))},tips:function(e,t,n){return r.open(i.extend({type:4,content:[e,t],closeBtn:!1,time:3e3,shade:!1,resize:!1,fixed:!1,maxWidth:210},n))}},s=function(e){var t=this;t.index=++r.index,t.config=i.extend({},t.config,o.config,e),document.body?t.creat():setTimeout(function(){t.creat()},30)};s.pt=s.prototype;var l=["layui-layer",".layui-layer-title",".layui-layer-main",".layui-layer-dialog","layui-layer-iframe","layui-layer-content","layui-layer-btn","layui-layer-close"];l.anim=["layer-anim-00","layer-anim-01","layer-anim-02","layer-anim-03","layer-anim-04","layer-anim-05","layer-anim-06"],s.pt.config={type:0,shade:.3,fixed:!0,move:l[1],title:"信息",offset:"auto",area:"auto",closeBtn:1,time:0,zIndex:19891014,maxWidth:360,anim:0,isOutAnim:!0,icon:-1,moveType:1,resize:!0,scrollbar:!0,tips:2},s.pt.vessel=function(e,t){var n=this,a=n.index,r=n.config,s=r.zIndex+a,f="object"==typeof r.title,c=r.maxmin&&(1===r.type||2===r.type),u=r.title?'<div class="layui-layer-title" style="'+(f?r.title[1]:"")+'">'+(f?r.title[0]:r.title)+"</div>":"";return r.zIndex=s,t([r.shade?'<div class="layui-layer-shade" id="layui-layer-shade'+a+'" times="'+a+'" style="'+("z-index:"+(s-1)+"; ")+'"></div>':"",'<div class="'+l[0]+(" layui-layer-"+o.type[r.type])+(0!=r.type&&2!=r.type||r.shade?"":" layui-layer-border")+" "+(r.skin||"")+'" id="'+l[0]+a+'" type="'+o.type[r.type]+'" times="'+a+'" showtime="'+r.time+'" conType="'+(e?"object":"string")+'" style="z-index: '+s+"; width:"+r.area[0]+";height:"+r.area[1]+(r.fixed?"":";position:absolute;")+'">'+(e&&2!=r.type?"":u)+'<div id="'+(r.id||"")+'" class="layui-layer-content'+(0==r.type&&r.icon!==-1?" layui-layer-padding":"")+(3==r.type?" layui-layer-loading"+r.icon:"")+'">'+(0==r.type&&r.icon!==-1?'<i class="layui-layer-ico layui-layer-ico'+r.icon+'"></i>':"")+(1==r.type&&e?"":r.content||"")+'</div><span class="layui-layer-setwin">'+function(){var e=c?'<a class="layui-layer-min" href="javascript:;"><cite></cite></a><a class="layui-layer-ico layui-layer-max" href="javascript:;"></a>':"";return r.closeBtn&&(e+='<a class="layui-layer-ico '+l[7]+" "+l[7]+(r.title?r.closeBtn:4==r.type?"1":"2")+'" href="javascript:;"></a>'),e}()+"</span>"+(r.btn?function(){var e="";"string"==typeof r.btn&&(r.btn=[r.btn]);for(var t=0,i=r.btn.length;t<i;t++)e+='<a class="'+l[6]+t+'">'+r.btn[t]+"</a>";return'<div class="'+l[6]+" layui-layer-btn-"+(r.btnAlign||"")+'">'+e+"</div>"}():"")+(r.resize?'<span class="layui-layer-resize"></span>':"")+"</div>"],u,i('<div class="layui-layer-move"></div>')),n},s.pt.creat=function(){var e=this,t=e.config,a=e.index,s=t.content,f="object"==typeof s,c=i("body");if(!t.id||!i("#"+t.id)[0]){switch("string"==typeof t.area&&(t.area="auto"===t.area?["",""]:[t.area,""]),t.shift&&(t.anim=t.shift),6==r.ie&&(t.fixed=!1),t.type){case 0:t.btn="btn"in t?t.btn:o.btn[0],r.closeAll("dialog");break;case 2:var s=t.content=f?t.content:[t.content||"","auto"];t.content='<iframe scrolling="'+(t.content[1]||"auto")+'" allowtransparency="true" id="'+l[4]+a+'" name="'+l[4]+a+'" onload="this.className=\'\';" class="layui-layer-load" frameborder="0" src="'+t.content[0]+'"></iframe>';break;case 3:delete t.title,delete t.closeBtn,t.icon===-1&&0===t.icon,r.closeAll("loading");break;case 4:f||(t.content=[t.content,"body"]),t.follow=t.content[1],t.content=t.content[0]+'<i class="layui-layer-TipsG"></i>',delete t.title,t.tips="object"==typeof t.tips?t.tips:[t.tips,!0],t.tipsMore||r.closeAll("tips")}if(e.vessel(f,function(n,r,u){c.append(n[0]),f?function(){2==t.type||4==t.type?function(){i("body").append(n[1])}():function(){s.parents("."+l[0])[0]||(s.data("display",s.css("display")).show().addClass("layui-layer-wrap").wrap(n[1]),i("#"+l[0]+a).find("."+l[5]).before(r))}()}():c.append(n[1]),i(".layui-layer-move")[0]||c.append(o.moveElem=u),e.layero=i("#"+l[0]+a),t.scrollbar||l.html.css("overflow","hidden").attr("layer-full",a)}).auto(a),i("#layui-layer-shade"+e.index).css({"background-color":t.shade[1]||"#000",opacity:t.shade[0]||t.shade}),2==t.type&&6==r.ie&&e.layero.find("iframe").attr("src",s[0]),4==t.type?e.tips():e.offset(),t.fixed&&n.on("resize",function(){e.offset(),(/^\d+%$/.test(t.area[0])||/^\d+%$/.test(t.area[1]))&&e.auto(a),4==t.type&&e.tips()}),t.time<=0||setTimeout(function(){r.close(e.index)},t.time),e.move().callback(),l.anim[t.anim]){var u="layer-anim "+l.anim[t.anim];e.layero.addClass(u).one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",function(){i(this).removeClass(u)})}t.isOutAnim&&e.layero.data("isOutAnim",!0)}},s.pt.auto=function(e){var t=this,a=t.config,o=i("#"+l[0]+e);""===a.area[0]&&a.maxWidth>0&&(r.ie&&r.ie<8&&a.btn&&o.width(o.innerWidth()),o.outerWidth()>a.maxWidth&&o.width(a.maxWidth));var s=[o.innerWidth(),o.innerHeight()],f=o.find(l[1]).outerHeight()||0,c=o.find("."+l[6]).outerHeight()||0,u=function(e){e=o.find(e),e.height(s[1]-f-c-2*(0|parseFloat(e.css("padding-top"))))};switch(a.type){case 2:u("iframe");break;default:""===a.area[1]?a.maxHeight>0&&o.outerHeight()>a.maxHeight?(s[1]=a.maxHeight,u("."+l[5])):a.fixed&&s[1]>=n.height()&&(s[1]=n.height(),u("."+l[5])):u("."+l[5])}return t},s.pt.offset=function(){var e=this,t=e.config,i=e.layero,a=[i.outerWidth(),i.outerHeight()],o="object"==typeof t.offset;e.offsetTop=(n.height()-a[1])/2,e.offsetLeft=(n.width()-a[0])/2,o?(e.offsetTop=t.offset[0],e.offsetLeft=t.offset[1]||e.offsetLeft):"auto"!==t.offset&&("t"===t.offset?e.offsetTop=0:"r"===t.offset?e.offsetLeft=n.width()-a[0]:"b"===t.offset?e.offsetTop=n.height()-a[1]:"l"===t.offset?e.offsetLeft=0:"lt"===t.offset?(e.offsetTop=0,e.offsetLeft=0):"lb"===t.offset?(e.offsetTop=n.height()-a[1],e.offsetLeft=0):"rt"===t.offset?(e.offsetTop=0,e.offsetLeft=n.width()-a[0]):"rb"===t.offset?(e.offsetTop=n.height()-a[1],e.offsetLeft=n.width()-a[0]):e.offsetTop=t.offset),t.fixed||(e.offsetTop=/%$/.test(e.offsetTop)?n.height()*parseFloat(e.offsetTop)/100:parseFloat(e.offsetTop),e.offsetLeft=/%$/.test(e.offsetLeft)?n.width()*parseFloat(e.offsetLeft)/100:parseFloat(e.offsetLeft),e.offsetTop+=n.scrollTop(),e.offsetLeft+=n.scrollLeft()),i.attr("minLeft")&&(e.offsetTop=n.height()-(i.find(l[1]).outerHeight()||0),e.offsetLeft=i.css("left")),i.css({top:e.offsetTop,left:e.offsetLeft})},s.pt.tips=function(){var e=this,t=e.config,a=e.layero,o=[a.outerWidth(),a.outerHeight()],r=i(t.follow);r[0]||(r=i("body"));var s={width:r.outerWidth(),height:r.outerHeight(),top:r.offset().top,left:r.offset().left},f=a.find(".layui-layer-TipsG"),c=t.tips[0];t.tips[1]||f.remove(),s.autoLeft=function(){s.left+o[0]-n.width()>0?(s.tipLeft=s.left+s.width-o[0],f.css({right:12,left:"auto"})):s.tipLeft=s.left},s.where=[function(){s.autoLeft(),s.tipTop=s.top-o[1]-10,f.removeClass("layui-layer-TipsB").addClass("layui-layer-TipsT").css("border-right-color",t.tips[1])},function(){s.tipLeft=s.left+s.width+10,s.tipTop=s.top,f.removeClass("layui-layer-TipsL").addClass("layui-layer-TipsR").css("border-bottom-color",t.tips[1])},function(){s.autoLeft(),s.tipTop=s.top+s.height+10,f.removeClass("layui-layer-TipsT").addClass("layui-layer-TipsB").css("border-right-color",t.tips[1])},function(){s.tipLeft=s.left-o[0]-10,s.tipTop=s.top,f.removeClass("layui-layer-TipsR").addClass("layui-layer-TipsL").css("border-bottom-color",t.tips[1])}],s.where[c-1](),1===c?s.top-(n.scrollTop()+o[1]+16)<0&&s.where[2]():2===c?n.width()-(s.left+s.width+o[0]+16)>0||s.where[3]():3===c?s.top-n.scrollTop()+s.height+o[1]+16-n.height()>0&&s.where[0]():4===c&&o[0]+16-s.left>0&&s.where[1](),a.find("."+l[5]).css({"background-color":t.tips[1],"padding-right":t.closeBtn?"30px":""}),a.css({left:s.tipLeft-(t.fixed?n.scrollLeft():0),top:s.tipTop-(t.fixed?n.scrollTop():0)})},s.pt.move=function(){var e=this,t=e.config,a=i(document),s=e.layero,l=s.find(t.move),f=s.find(".layui-layer-resize"),c={};return t.move&&l.css("cursor","move"),l.on("mousedown",function(e){e.preventDefault(),t.move&&(c.moveStart=!0,c.offset=[e.clientX-parseFloat(s.css("left")),e.clientY-parseFloat(s.css("top"))],o.moveElem.css("cursor","move").show())}),f.on("mousedown",function(e){e.preventDefault(),c.resizeStart=!0,c.offset=[e.clientX,e.clientY],c.area=[s.outerWidth(),s.outerHeight()],o.moveElem.css("cursor","se-resize").show()}),a.on("mousemove",function(i){if(c.moveStart){var a=i.clientX-c.offset[0],o=i.clientY-c.offset[1],l="fixed"===s.css("position");if(i.preventDefault(),c.stX=l?0:n.scrollLeft(),c.stY=l?0:n.scrollTop(),!t.moveOut){var f=n.width()-s.outerWidth()+c.stX,u=n.height()-s.outerHeight()+c.stY;a<c.stX&&(a=c.stX),a>f&&(a=f),o<c.stY&&(o=c.stY),o>u&&(o=u)}s.css({left:a,top:o})}if(t.resize&&c.resizeStart){var a=i.clientX-c.offset[0],o=i.clientY-c.offset[1];i.preventDefault(),r.style(e.index,{width:c.area[0]+a,height:c.area[1]+o}),c.isResize=!0,t.resizing&&t.resizing(s)}}).on("mouseup",function(e){c.moveStart&&(delete c.moveStart,o.moveElem.hide(),t.moveEnd&&t.moveEnd(s)),c.resizeStart&&(delete c.resizeStart,o.moveElem.hide())}),e},s.pt.callback=function(){function e(){var e=a.cancel&&a.cancel(t.index,n);e===!1||r.close(t.index)}var t=this,n=t.layero,a=t.config;t.openLayer(),a.success&&(2==a.type?n.find("iframe").on("load",function(){a.success(n,t.index)}):a.success(n,t.index)),6==r.ie&&t.IE6(n),n.find("."+l[6]).children("a").on("click",function(){var e=i(this).index();if(0===e)a.yes?a.yes(t.index,n):a.btn1?a.btn1(t.index,n):r.close(t.index);else{var o=a["btn"+(e+1)]&&a["btn"+(e+1)](t.index,n);o===!1||r.close(t.index)}}),n.find("."+l[7]).on("click",e),a.shadeClose&&i("#layui-layer-shade"+t.index).on("click",function(){r.close(t.index)}),n.find(".layui-layer-min").on("click",function(){var e=a.min&&a.min(n);e===!1||r.min(t.index,a)}),n.find(".layui-layer-max").on("click",function(){i(this).hasClass("layui-layer-maxmin")?(r.restore(t.index),a.restore&&a.restore(n)):(r.full(t.index,a),setTimeout(function(){a.full&&a.full(n)},100))}),a.end&&(o.end[t.index]=a.end)},o.reselect=function(){i.each(i("select"),function(e,t){var n=i(this);n.parents("."+l[0])[0]||1==n.attr("layer")&&i("."+l[0]).length<1&&n.removeAttr("layer").show(),n=null})},s.pt.IE6=function(e){i("select").each(function(e,t){var n=i(this);n.parents("."+l[0])[0]||"none"===n.css("display")||n.attr({layer:"1"}).hide(),n=null})},s.pt.openLayer=function(){var e=this;r.zIndex=e.config.zIndex,r.setTop=function(e){var t=function(){r.zIndex++,e.css("z-index",r.zIndex+1)};return r.zIndex=parseInt(e[0].style.zIndex),e.on("mousedown",t),r.zIndex}},o.record=function(e){var t=[e.width(),e.height(),e.position().top,e.position().left+parseFloat(e.css("margin-left"))];e.find(".layui-layer-max").addClass("layui-layer-maxmin"),e.attr({area:t})},o.rescollbar=function(e){l.html.attr("layer-full")==e&&(l.html[0].style.removeProperty?l.html[0].style.removeProperty("overflow"):l.html[0].style.removeAttribute("overflow"),l.html.removeAttr("layer-full"))},e.layer=r,r.getChildFrame=function(e,t){return t=t||i("."+l[4]).attr("times"),i("#"+l[0]+t).find("iframe").contents().find(e)},r.getFrameIndex=function(e){return i("#"+e).parents("."+l[4]).attr("times")},r.iframeAuto=function(e){if(e){var t=r.getChildFrame("html",e).outerHeight(),n=i("#"+l[0]+e),a=n.find(l[1]).outerHeight()||0,o=n.find("."+l[6]).outerHeight()||0;n.css({height:t+a+o}),n.find("iframe").css({height:t})}},r.iframeSrc=function(e,t){i("#"+l[0]+e).find("iframe").attr("src",t)},r.style=function(e,t,n){var a=i("#"+l[0]+e),r=a.find(".layui-layer-content"),s=a.attr("type"),f=a.find(l[1]).outerHeight()||0,c=a.find("."+l[6]).outerHeight()||0;a.attr("minLeft");s!==o.type[3]&&s!==o.type[4]&&(n||(parseFloat(t.width)<=260&&(t.width=260),parseFloat(t.height)-f-c<=64&&(t.height=64+f+c)),a.css(t),c=a.find("."+l[6]).outerHeight(),s===o.type[2]?a.find("iframe").css({height:parseFloat(t.height)-f-c}):r.css({height:parseFloat(t.height)-f-c-parseFloat(r.css("padding-top"))-parseFloat(r.css("padding-bottom"))}))},r.min=function(e,t){var a=i("#"+l[0]+e),s=a.find(l[1]).outerHeight()||0,f=a.attr("minLeft")||181*o.minIndex+"px",c=a.css("position");o.record(a),o.minLeft[0]&&(f=o.minLeft[0],o.minLeft.shift()),a.attr("position",c),r.style(e,{width:180,height:s,left:f,top:n.height()-s,position:"fixed",overflow:"hidden"},!0),a.find(".layui-layer-min").hide(),"page"===a.attr("type")&&a.find(l[4]).hide(),o.rescollbar(e),a.attr("minLeft")||o.minIndex++,a.attr("minLeft",f)},r.restore=function(e){var t=i("#"+l[0]+e),n=t.attr("area").split(",");t.attr("type");r.style(e,{width:parseFloat(n[0]),height:parseFloat(n[1]),top:parseFloat(n[2]),left:parseFloat(n[3]),position:t.attr("position"),overflow:"visible"},!0),t.find(".layui-layer-max").removeClass("layui-layer-maxmin"),t.find(".layui-layer-min").show(),"page"===t.attr("type")&&t.find(l[4]).show(),o.rescollbar(e)},r.full=function(e){var t,a=i("#"+l[0]+e);o.record(a),l.html.attr("layer-full")||l.html.css("overflow","hidden").attr("layer-full",e),clearTimeout(t),t=setTimeout(function(){var t="fixed"===a.css("position");r.style(e,{top:t?0:n.scrollTop(),left:t?0:n.scrollLeft(),width:n.width(),height:n.height()},!0),a.find(".layui-layer-min").hide()},100)},r.title=function(e,t){var n=i("#"+l[0]+(t||r.index)).find(l[1]);n.html(e)},r.close=function(e){var t=i("#"+l[0]+e),n=t.attr("type"),a="layer-anim-close";if(t[0]){var s="layui-layer-wrap",f=function(){if(n===o.type[1]&&"object"===t.attr("conType")){t.children(":not(."+l[5]+")").remove();for(var a=t.find("."+s),r=0;r<2;r++)a.unwrap();a.css("display",a.data("display")).removeClass(s)}else{if(n===o.type[2])try{var f=i("#"+l[4]+e)[0];f.contentWindow.document.write(""),f.contentWindow.close(),t.find("."+l[5])[0].removeChild(f)}catch(c){}t[0].innerHTML="",t.remove()}"function"==typeof o.end[e]&&o.end[e](),delete o.end[e]};t.data("isOutAnim")&&t.addClass("layer-anim "+a),i("#layui-layer-moves, #layui-layer-shade"+e).remove(),6==r.ie&&o.reselect(),o.rescollbar(e),t.attr("minLeft")&&(o.minIndex--,o.minLeft.push(t.attr("minLeft"))),r.ie&&r.ie<10||!t.data("isOutAnim")?f():setTimeout(function(){f()},200)}},r.closeAll=function(e){i.each(i("."+l[0]),function(){var t=i(this),n=e?t.attr("type")===e:1;n&&r.close(t.attr("times")),n=null})};var f=r.cache||{},c=function(e){return f.skin?" "+f.skin+" "+f.skin+"-"+e:""};r.prompt=function(e,t){var a="";if(e=e||{},"function"==typeof e&&(t=e),e.area){var o=e.area;a='style="width: '+o[0]+"; height: "+o[1]+';"',delete e.area}var s,l=2==e.formType?'<textarea class="layui-layer-input"'+a+"></textarea>":function(){return'<input type="'+(1==e.formType?"password":"text")+'" class="layui-layer-input">'}(),f=e.success;return delete e.success,r.open(i.extend({type:1,btn:["确定","取消"],content:l,skin:"layui-layer-prompt"+c("prompt"),maxWidth:n.width(),success:function(t){s=t.find(".layui-layer-input"),s.val(e.value||"").focus(),"function"==typeof f&&f(t)},resize:!1,yes:function(i){var n=s.val();""===n?s.focus():n.length>(e.maxlength||500)?r.tips("最多输入"+(e.maxlength||500)+"个字数",s,{tips:1}):t&&t(n,i,s)}},e))},r.tab=function(e){e=e||{};var t=e.tab||{},n="layui-this",a=e.success;return delete e.success,r.open(i.extend({type:1,skin:"layui-layer-tab"+c("tab"),resize:!1,title:function(){var e=t.length,i=1,a="";if(e>0)for(a='<span class="'+n+'">'+t[0].title+"</span>";i<e;i++)a+="<span>"+t[i].title+"</span>";return a}(),content:'<ul class="layui-layer-tabmain">'+function(){var e=t.length,i=1,a="";if(e>0)for(a='<li class="layui-layer-tabli '+n+'">'+(t[0].content||"no content")+"</li>";i<e;i++)a+='<li class="layui-layer-tabli">'+(t[i].content||"no content")+"</li>";return a}()+"</ul>",success:function(t){var o=t.find(".layui-layer-title").children(),r=t.find(".layui-layer-tabmain").children();o.on("mousedown",function(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0;var a=i(this),o=a.index();a.addClass(n).siblings().removeClass(n),r.eq(o).show().siblings().hide(),"function"==typeof e.change&&e.change(o)}),"function"==typeof a&&a(t)}},e))},r.photos=function(t,n,a){function o(e,t,i){var n=new Image;return n.src=e,n.complete?t(n):(n.onload=function(){n.onload=null,t(n)},void(n.onerror=function(e){n.onerror=null,i(e)}))}var s={};if(t=t||{},t.photos){var l=t.photos.constructor===Object,f=l?t.photos:{},u=f.data||[],d=f.start||0;s.imgIndex=(0|d)+1,t.img=t.img||"img";var y=t.success;if(delete t.success,l){if(0===u.length)return r.msg("没有图片")}else{var p=i(t.photos),h=function(){u=[],p.find(t.img).each(function(e){var t=i(this);t.attr("layer-index",e),u.push({alt:t.attr("alt"),pid:t.attr("layer-pid"),src:t.attr("layer-src")||t.attr("src"),thumb:t.attr("src")})})};if(h(),0===u.length)return;if(n||p.on("click",t.img,function(){var e=i(this),n=e.attr("layer-index");r.photos(i.extend(t,{photos:{start:n,data:u,tab:t.tab},full:t.full}),!0),h()}),!n)return}s.imgprev=function(e){s.imgIndex--,s.imgIndex<1&&(s.imgIndex=u.length),s.tabimg(e)},s.imgnext=function(e,t){s.imgIndex++,s.imgIndex>u.length&&(s.imgIndex=1,t)||s.tabimg(e)},s.keyup=function(e){if(!s.end){var t=e.keyCode;e.preventDefault(),37===t?s.imgprev(!0):39===t?s.imgnext(!0):27===t&&r.close(s.index)}},s.tabimg=function(e){if(!(u.length<=1))return f.start=s.imgIndex-1,r.close(s.index),r.photos(t,!0,e)},s.event=function(){s.bigimg.hover(function(){s.imgsee.show()},function(){s.imgsee.hide()}),s.bigimg.find(".layui-layer-imgprev").on("click",function(e){e.preventDefault(),s.imgprev()}),s.bigimg.find(".layui-layer-imgnext").on("click",function(e){e.preventDefault(),s.imgnext()}),i(document).on("keyup",s.keyup)},s.loadi=r.load(1,{shade:!("shade"in t)&&.9,scrollbar:!1}),o(u[d].src,function(n){r.close(s.loadi),s.index=r.open(i.extend({type:1,id:"layui-layer-photos",area:function(){var a=[n.width,n.height],o=[i(e).width()-100,i(e).height()-100];if(!t.full&&(a[0]>o[0]||a[1]>o[1])){var r=[a[0]/o[0],a[1]/o[1]];r[0]>r[1]?(a[0]=a[0]/r[0],a[1]=a[1]/r[0]):r[0]<r[1]&&(a[0]=a[0]/r[1],a[1]=a[1]/r[1])}return[a[0]+"px",a[1]+"px"]}(),title:!1,shade:.9,shadeClose:!0,closeBtn:!1,move:".layui-layer-phimg img",moveType:1,scrollbar:!1,moveOut:!0,isOutAnim:!1,skin:"layui-layer-photos"+c("photos"),content:'<div class="layui-layer-phimg"><img src="'+u[d].src+'" alt="'+(u[d].alt||"")+'" layer-pid="'+u[d].pid+'"><div class="layui-layer-imgsee">'+(u.length>1?'<span class="layui-layer-imguide"><a href="javascript:;" class="layui-layer-iconext layui-layer-imgprev"></a><a href="javascript:;" class="layui-layer-iconext layui-layer-imgnext"></a></span>':"")+'<div class="layui-layer-imgbar" style="display:'+(a?"block":"")+'"><span class="layui-layer-imgtit"><a href="javascript:;">'+(u[d].alt||"")+"</a><em>"+s.imgIndex+"/"+u.length+"</em></span></div></div></div>",success:function(e,i){s.bigimg=e.find(".layui-layer-phimg"),s.imgsee=e.find(".layui-layer-imguide,.layui-layer-imgbar"),s.event(e),t.tab&&t.tab(u[d],e),"function"==typeof y&&y(e)},end:function(){s.end=!0,i(document).off("keyup",s.keyup)}},t))},function(){r.close(s.loadi),r.msg("当前图片地址异常<br>是否继续查看下一张?",{time:3e4,btn:["下一张","不看了"],yes:function(){u.length>1&&s.imgnext(!0,!0)}})})}},o.run=function(t){i=t,n=i(e),l.html=i("html"),r.open=function(e){var t=new s(e);return t.index}},e.layui&&layui.define?(r.ready(),layui.define("jquery",function(t){r.path=layui.cache.dir,o.run(layui.$),e.layer=r,t("layer",r)})):"function"==typeof define&&define.amd?define(["jquery"],function(){return o.run(e.jQuery),r}):function(){o.run(e.jQuery),r.ready()}()}(window); \ No newline at end of file diff --git a/public/static/plug/layui/lay/modules/laypage.js b/public/static/plug/layui/lay/modules/laypage.js index 98690ac6..0ddc3cb7 100755 --- a/public/static/plug/layui/lay/modules/laypage.js +++ b/public/static/plug/layui/lay/modules/laypage.js @@ -1,2 +1,2 @@ -/** layui-v2.4.3 MIT License By https://www.layui.com */ +/** layui-v2.5.4 MIT License By https://www.layui.com */ ;layui.define(function(e){"use strict";var a=document,t="getElementById",n="getElementsByTagName",i="laypage",r="layui-disabled",u=function(e){var a=this;a.config=e||{},a.config.index=++s.index,a.render(!0)};u.prototype.type=function(){var e=this.config;if("object"==typeof e.elem)return void 0===e.elem.length?2:3},u.prototype.view=function(){var e=this,a=e.config,t=a.groups="groups"in a?0|a.groups:5;a.layout="object"==typeof a.layout?a.layout:["prev","page","next"],a.count=0|a.count,a.curr=0|a.curr||1,a.limits="object"==typeof a.limits?a.limits:[10,20,30,40,50],a.limit=0|a.limit||10,a.pages=Math.ceil(a.count/a.limit)||1,a.curr>a.pages&&(a.curr=a.pages),t<0?t=1:t>a.pages&&(t=a.pages),a.prev="prev"in a?a.prev:"上一页",a.next="next"in a?a.next:"下一页";var n=a.pages>t?Math.ceil((a.curr+(t>1?1:0))/(t>0?t:1)):1,i={prev:function(){return a.prev?'<a href="javascript:;" class="layui-laypage-prev'+(1==a.curr?" "+r:"")+'" data-page="'+(a.curr-1)+'">'+a.prev+"</a>":""}(),page:function(){var e=[];if(a.count<1)return"";n>1&&a.first!==!1&&0!==t&&e.push('<a href="javascript:;" class="layui-laypage-first" data-page="1" title="首页">'+(a.first||1)+"</a>");var i=Math.floor((t-1)/2),r=n>1?a.curr-i:1,u=n>1?function(){var e=a.curr+(t-i-1);return e>a.pages?a.pages:e}():t;for(u-r<t-1&&(r=u-t+1),a.first!==!1&&r>2&&e.push('<span class="layui-laypage-spr">…</span>');r<=u;r++)r===a.curr?e.push('<span class="layui-laypage-curr"><em class="layui-laypage-em" '+(/^#/.test(a.theme)?'style="background-color:'+a.theme+';"':"")+"></em><em>"+r+"</em></span>"):e.push('<a href="javascript:;" data-page="'+r+'">'+r+"</a>");return a.pages>t&&a.pages>u&&a.last!==!1&&(u+1<a.pages&&e.push('<span class="layui-laypage-spr">…</span>'),0!==t&&e.push('<a href="javascript:;" class="layui-laypage-last" title="尾页" data-page="'+a.pages+'">'+(a.last||a.pages)+"</a>")),e.join("")}(),next:function(){return a.next?'<a href="javascript:;" class="layui-laypage-next'+(a.curr==a.pages?" "+r:"")+'" data-page="'+(a.curr+1)+'">'+a.next+"</a>":""}(),count:'<span class="layui-laypage-count">共 '+a.count+" 条</span>",limit:function(){var e=['<span class="layui-laypage-limits"><select lay-ignore>'];return layui.each(a.limits,function(t,n){e.push('<option value="'+n+'"'+(n===a.limit?"selected":"")+">"+n+" 条/页</option>")}),e.join("")+"</select></span>"}(),refresh:['<a href="javascript:;" data-page="'+a.curr+'" class="layui-laypage-refresh">','<i class="layui-icon layui-icon-refresh"></i>',"</a>"].join(""),skip:function(){return['<span class="layui-laypage-skip">到第','<input type="text" min="1" value="'+a.curr+'" class="layui-input">','页<button type="button" class="layui-laypage-btn">确定</button>',"</span>"].join("")}()};return['<div class="layui-box layui-laypage layui-laypage-'+(a.theme?/^#/.test(a.theme)?"molv":a.theme:"default")+'" id="layui-laypage-'+a.index+'">',function(){var e=[];return layui.each(a.layout,function(a,t){i[t]&&e.push(i[t])}),e.join("")}(),"</div>"].join("")},u.prototype.jump=function(e,a){if(e){var t=this,i=t.config,r=e.children,u=e[n]("button")[0],l=e[n]("input")[0],p=e[n]("select")[0],c=function(){var e=0|l.value.replace(/\s|\D/g,"");e&&(i.curr=e,t.render())};if(a)return c();for(var o=0,y=r.length;o<y;o++)"a"===r[o].nodeName.toLowerCase()&&s.on(r[o],"click",function(){var e=0|this.getAttribute("data-page");e<1||e>i.pages||(i.curr=e,t.render())});p&&s.on(p,"change",function(){var e=this.value;i.curr*e>i.count&&(i.curr=Math.ceil(i.count/e)),i.limit=e,t.render()}),u&&s.on(u,"click",function(){c()})}},u.prototype.skip=function(e){if(e){var a=this,t=e[n]("input")[0];t&&s.on(t,"keyup",function(t){var n=this.value,i=t.keyCode;/^(37|38|39|40)$/.test(i)||(/\D/.test(n)&&(this.value=n.replace(/\D/,"")),13===i&&a.jump(e,!0))})}},u.prototype.render=function(e){var n=this,i=n.config,r=n.type(),u=n.view();2===r?i.elem&&(i.elem.innerHTML=u):3===r?i.elem.html(u):a[t](i.elem)&&(a[t](i.elem).innerHTML=u),i.jump&&i.jump(i,e);var s=a[t]("layui-laypage-"+i.index);n.jump(s),i.hash&&!e&&(location.hash="!"+i.hash+"="+i.curr),n.skip(s)};var s={render:function(e){var a=new u(e);return a.index},index:layui.laypage?layui.laypage.index+1e4:0,on:function(e,a,t){return e.attachEvent?e.attachEvent("on"+a,function(a){a.target=a.srcElement,t.call(e,a)}):e.addEventListener(a,t,!1),this}};e(i,s)}); \ No newline at end of file diff --git a/public/static/plug/layui/lay/modules/laytpl.js b/public/static/plug/layui/lay/modules/laytpl.js index 6d8a36ad..7590e08c 100755 --- a/public/static/plug/layui/lay/modules/laytpl.js +++ b/public/static/plug/layui/lay/modules/laytpl.js @@ -1,2 +1,2 @@ -/** layui-v2.4.3 MIT License By https://www.layui.com */ +/** layui-v2.5.4 MIT License By https://www.layui.com */ ;layui.define(function(e){"use strict";var r={open:"{{",close:"}}"},c={exp:function(e){return new RegExp(e,"g")},query:function(e,c,t){var o=["#([\\s\\S])+?","([^{#}])*?"][e||0];return n((c||"")+r.open+o+r.close+(t||""))},escape:function(e){return String(e||"").replace(/&(?!#?[a-zA-Z0-9]+;)/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/'/g,"'").replace(/"/g,""")},error:function(e,r){var c="Laytpl Error:";return"object"==typeof console&&console.error(c+e+"\n"+(r||"")),c+e}},n=c.exp,t=function(e){this.tpl=e};t.pt=t.prototype,window.errors=0,t.pt.parse=function(e,t){var o=this,p=e,a=n("^"+r.open+"#",""),l=n(r.close+"$","");e=e.replace(/\s+|\r|\t|\n/g," ").replace(n(r.open+"#"),r.open+"# ").replace(n(r.close+"}"),"} "+r.close).replace(/\\/g,"\\\\").replace(n(r.open+"!(.+?)!"+r.close),function(e){return e=e.replace(n("^"+r.open+"!"),"").replace(n("!"+r.close),"").replace(n(r.open+"|"+r.close),function(e){return e.replace(/(.)/g,"\\$1")})}).replace(/(?="|')/g,"\\").replace(c.query(),function(e){return e=e.replace(a,"").replace(l,""),'";'+e.replace(/\\/g,"")+';view+="'}).replace(c.query(1),function(e){var c='"+(';return e.replace(/\s/g,"")===r.open+r.close?"":(e=e.replace(n(r.open+"|"+r.close),""),/^=/.test(e)&&(e=e.replace(/^=/,""),c='"+_escape_('),c+e.replace(/\\/g,"")+')+"')}),e='"use strict";var view = "'+e+'";return view;';try{return o.cache=e=new Function("d, _escape_",e),e(t,c.escape)}catch(u){return delete o.cache,c.error(u,p)}},t.pt.render=function(e,r){var n,t=this;return e?(n=t.cache?t.cache(e,c.escape):t.parse(t.tpl,e),r?void r(n):n):c.error("no data")};var o=function(e){return"string"!=typeof e?c.error("Template not found"):new t(e)};o.config=function(e){e=e||{};for(var c in e)r[c]=e[c]},o.v="1.2.0",e("laytpl",o)}); \ No newline at end of file diff --git a/public/static/plug/layui/lay/modules/mobile.js b/public/static/plug/layui/lay/modules/mobile.js index 8756d088..4b3e7ae9 100755 --- a/public/static/plug/layui/lay/modules/mobile.js +++ b/public/static/plug/layui/lay/modules/mobile.js @@ -1,2 +1,2 @@ -/** layui-v2.4.3 MIT License By https://www.layui.com */ +/** layui-v2.5.4 MIT License By https://www.layui.com */ ;layui.define(function(i){i("layui.mobile",layui.v)});layui.define(function(e){"use strict";var r={open:"{{",close:"}}"},c={exp:function(e){return new RegExp(e,"g")},query:function(e,c,t){var o=["#([\\s\\S])+?","([^{#}])*?"][e||0];return n((c||"")+r.open+o+r.close+(t||""))},escape:function(e){return String(e||"").replace(/&(?!#?[a-zA-Z0-9]+;)/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/'/g,"'").replace(/"/g,""")},error:function(e,r){var c="Laytpl Error:";return"object"==typeof console&&console.error(c+e+"\n"+(r||"")),c+e}},n=c.exp,t=function(e){this.tpl=e};t.pt=t.prototype,window.errors=0,t.pt.parse=function(e,t){var o=this,p=e,a=n("^"+r.open+"#",""),l=n(r.close+"$","");e=e.replace(/\s+|\r|\t|\n/g," ").replace(n(r.open+"#"),r.open+"# ").replace(n(r.close+"}"),"} "+r.close).replace(/\\/g,"\\\\").replace(n(r.open+"!(.+?)!"+r.close),function(e){return e=e.replace(n("^"+r.open+"!"),"").replace(n("!"+r.close),"").replace(n(r.open+"|"+r.close),function(e){return e.replace(/(.)/g,"\\$1")})}).replace(/(?="|')/g,"\\").replace(c.query(),function(e){return e=e.replace(a,"").replace(l,""),'";'+e.replace(/\\/g,"")+';view+="'}).replace(c.query(1),function(e){var c='"+(';return e.replace(/\s/g,"")===r.open+r.close?"":(e=e.replace(n(r.open+"|"+r.close),""),/^=/.test(e)&&(e=e.replace(/^=/,""),c='"+_escape_('),c+e.replace(/\\/g,"")+')+"')}),e='"use strict";var view = "'+e+'";return view;';try{return o.cache=e=new Function("d, _escape_",e),e(t,c.escape)}catch(u){return delete o.cache,c.error(u,p)}},t.pt.render=function(e,r){var n,t=this;return e?(n=t.cache?t.cache(e,c.escape):t.parse(t.tpl,e),r?void r(n):n):c.error("no data")};var o=function(e){return"string"!=typeof e?c.error("Template not found"):new t(e)};o.config=function(e){e=e||{};for(var c in e)r[c]=e[c]},o.v="1.2.0",e("laytpl",o)});layui.define(function(e){"use strict";var t=(window,document),i="querySelectorAll",n="getElementsByClassName",a=function(e){return t[i](e)},s={type:0,shade:!0,shadeClose:!0,fixed:!0,anim:"scale"},l={extend:function(e){var t=JSON.parse(JSON.stringify(s));for(var i in e)t[i]=e[i];return t},timer:{},end:{}};l.touch=function(e,t){e.addEventListener("click",function(e){t.call(this,e)},!1)};var o=0,r=["layui-m-layer"],d=function(e){var t=this;t.config=l.extend(e),t.view()};d.prototype.view=function(){var e=this,i=e.config,s=t.createElement("div");e.id=s.id=r[0]+o,s.setAttribute("class",r[0]+" "+r[0]+(i.type||0)),s.setAttribute("index",o);var l=function(){var e="object"==typeof i.title;return i.title?'<h3 style="'+(e?i.title[1]:"")+'">'+(e?i.title[0]:i.title)+"</h3>":""}(),d=function(){"string"==typeof i.btn&&(i.btn=[i.btn]);var e,t=(i.btn||[]).length;return 0!==t&&i.btn?(e='<span yes type="1">'+i.btn[0]+"</span>",2===t&&(e='<span no type="0">'+i.btn[1]+"</span>"+e),'<div class="layui-m-layerbtn">'+e+"</div>"):""}();if(i.fixed||(i.top=i.hasOwnProperty("top")?i.top:100,i.style=i.style||"",i.style+=" top:"+(t.body.scrollTop+i.top)+"px"),2===i.type&&(i.content='<i></i><i class="layui-m-layerload"></i><i></i><p>'+(i.content||"")+"</p>"),i.skin&&(i.anim="up"),"msg"===i.skin&&(i.shade=!1),s.innerHTML=(i.shade?"<div "+("string"==typeof i.shade?'style="'+i.shade+'"':"")+' class="layui-m-layershade"></div>':"")+'<div class="layui-m-layermain" '+(i.fixed?"":'style="position:static;"')+'><div class="layui-m-layersection"><div class="layui-m-layerchild '+(i.skin?"layui-m-layer-"+i.skin+" ":"")+(i.className?i.className:"")+" "+(i.anim?"layui-m-anim-"+i.anim:"")+'" '+(i.style?'style="'+i.style+'"':"")+">"+l+'<div class="layui-m-layercont">'+i.content+"</div>"+d+"</div></div></div>",!i.type||2===i.type){var y=t[n](r[0]+i.type),u=y.length;u>=1&&c.close(y[0].getAttribute("index"))}document.body.appendChild(s);var m=e.elem=a("#"+e.id)[0];i.success&&i.success(m),e.index=o++,e.action(i,m)},d.prototype.action=function(e,t){var i=this;e.time&&(l.timer[i.index]=setTimeout(function(){c.close(i.index)},1e3*e.time));var a=function(){var t=this.getAttribute("type");0==t?(e.no&&e.no(),c.close(i.index)):e.yes?e.yes(i.index):c.close(i.index)};if(e.btn)for(var s=t[n]("layui-m-layerbtn")[0].children,o=s.length,r=0;r<o;r++)l.touch(s[r],a);if(e.shade&&e.shadeClose){var d=t[n]("layui-m-layershade")[0];l.touch(d,function(){c.close(i.index,e.end)})}e.end&&(l.end[i.index]=e.end)};var c={v:"2.0 m",index:o,open:function(e){var t=new d(e||{});return t.index},close:function(e){var i=a("#"+r[0]+e)[0];i&&(i.innerHTML="",t.body.removeChild(i),clearTimeout(l.timer[e]),delete l.timer[e],"function"==typeof l.end[e]&&l.end[e](),delete l.end[e])},closeAll:function(){for(var e=t[n](r[0]),i=0,a=e.length;i<a;i++)c.close(0|e[0].getAttribute("index"))}};e("layer-mobile",c)});layui.define(function(t){var e=function(){function t(t){return null==t?String(t):J[W.call(t)]||"object"}function e(e){return"function"==t(e)}function n(t){return null!=t&&t==t.window}function r(t){return null!=t&&t.nodeType==t.DOCUMENT_NODE}function i(e){return"object"==t(e)}function o(t){return i(t)&&!n(t)&&Object.getPrototypeOf(t)==Object.prototype}function a(t){var e=!!t&&"length"in t&&t.length,r=T.type(t);return"function"!=r&&!n(t)&&("array"==r||0===e||"number"==typeof e&&e>0&&e-1 in t)}function s(t){return A.call(t,function(t){return null!=t})}function u(t){return t.length>0?T.fn.concat.apply([],t):t}function c(t){return t.replace(/::/g,"/").replace(/([A-Z]+)([A-Z][a-z])/g,"$1_$2").replace(/([a-z\d])([A-Z])/g,"$1_$2").replace(/_/g,"-").toLowerCase()}function l(t){return t in F?F[t]:F[t]=new RegExp("(^|\\s)"+t+"(\\s|$)")}function f(t,e){return"number"!=typeof e||k[c(t)]?e:e+"px"}function h(t){var e,n;return $[t]||(e=L.createElement(t),L.body.appendChild(e),n=getComputedStyle(e,"").getPropertyValue("display"),e.parentNode.removeChild(e),"none"==n&&(n="block"),$[t]=n),$[t]}function p(t){return"children"in t?D.call(t.children):T.map(t.childNodes,function(t){if(1==t.nodeType)return t})}function d(t,e){var n,r=t?t.length:0;for(n=0;n<r;n++)this[n]=t[n];this.length=r,this.selector=e||""}function m(t,e,n){for(j in e)n&&(o(e[j])||Q(e[j]))?(o(e[j])&&!o(t[j])&&(t[j]={}),Q(e[j])&&!Q(t[j])&&(t[j]=[]),m(t[j],e[j],n)):e[j]!==E&&(t[j]=e[j])}function v(t,e){return null==e?T(t):T(t).filter(e)}function g(t,n,r,i){return e(n)?n.call(t,r,i):n}function y(t,e,n){null==n?t.removeAttribute(e):t.setAttribute(e,n)}function x(t,e){var n=t.className||"",r=n&&n.baseVal!==E;return e===E?r?n.baseVal:n:void(r?n.baseVal=e:t.className=e)}function b(t){try{return t?"true"==t||"false"!=t&&("null"==t?null:+t+""==t?+t:/^[\[\{]/.test(t)?T.parseJSON(t):t):t}catch(e){return t}}function w(t,e){e(t);for(var n=0,r=t.childNodes.length;n<r;n++)w(t.childNodes[n],e)}var E,j,T,S,C,N,O=[],P=O.concat,A=O.filter,D=O.slice,L=window.document,$={},F={},k={"column-count":1,columns:1,"font-weight":1,"line-height":1,opacity:1,"z-index":1,zoom:1},M=/^\s*<(\w+|!)[^>]*>/,R=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,z=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,Z=/^(?:body|html)$/i,q=/([A-Z])/g,H=["val","css","html","text","data","width","height","offset"],I=["after","prepend","before","append"],V=L.createElement("table"),_=L.createElement("tr"),B={tr:L.createElement("tbody"),tbody:V,thead:V,tfoot:V,td:_,th:_,"*":L.createElement("div")},U=/complete|loaded|interactive/,X=/^[\w-]*$/,J={},W=J.toString,Y={},G=L.createElement("div"),K={tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},Q=Array.isArray||function(t){return t instanceof Array};return Y.matches=function(t,e){if(!e||!t||1!==t.nodeType)return!1;var n=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.oMatchesSelector||t.matchesSelector;if(n)return n.call(t,e);var r,i=t.parentNode,o=!i;return o&&(i=G).appendChild(t),r=~Y.qsa(i,e).indexOf(t),o&&G.removeChild(t),r},C=function(t){return t.replace(/-+(.)?/g,function(t,e){return e?e.toUpperCase():""})},N=function(t){return A.call(t,function(e,n){return t.indexOf(e)==n})},Y.fragment=function(t,e,n){var r,i,a;return R.test(t)&&(r=T(L.createElement(RegExp.$1))),r||(t.replace&&(t=t.replace(z,"<$1></$2>")),e===E&&(e=M.test(t)&&RegExp.$1),e in B||(e="*"),a=B[e],a.innerHTML=""+t,r=T.each(D.call(a.childNodes),function(){a.removeChild(this)})),o(n)&&(i=T(r),T.each(n,function(t,e){H.indexOf(t)>-1?i[t](e):i.attr(t,e)})),r},Y.Z=function(t,e){return new d(t,e)},Y.isZ=function(t){return t instanceof Y.Z},Y.init=function(t,n){var r;if(!t)return Y.Z();if("string"==typeof t)if(t=t.trim(),"<"==t[0]&&M.test(t))r=Y.fragment(t,RegExp.$1,n),t=null;else{if(n!==E)return T(n).find(t);r=Y.qsa(L,t)}else{if(e(t))return T(L).ready(t);if(Y.isZ(t))return t;if(Q(t))r=s(t);else if(i(t))r=[t],t=null;else if(M.test(t))r=Y.fragment(t.trim(),RegExp.$1,n),t=null;else{if(n!==E)return T(n).find(t);r=Y.qsa(L,t)}}return Y.Z(r,t)},T=function(t,e){return Y.init(t,e)},T.extend=function(t){var e,n=D.call(arguments,1);return"boolean"==typeof t&&(e=t,t=n.shift()),n.forEach(function(n){m(t,n,e)}),t},Y.qsa=function(t,e){var n,r="#"==e[0],i=!r&&"."==e[0],o=r||i?e.slice(1):e,a=X.test(o);return t.getElementById&&a&&r?(n=t.getElementById(o))?[n]:[]:1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType?[]:D.call(a&&!r&&t.getElementsByClassName?i?t.getElementsByClassName(o):t.getElementsByTagName(e):t.querySelectorAll(e))},T.contains=L.documentElement.contains?function(t,e){return t!==e&&t.contains(e)}:function(t,e){for(;e&&(e=e.parentNode);)if(e===t)return!0;return!1},T.type=t,T.isFunction=e,T.isWindow=n,T.isArray=Q,T.isPlainObject=o,T.isEmptyObject=function(t){var e;for(e in t)return!1;return!0},T.isNumeric=function(t){var e=Number(t),n=typeof t;return null!=t&&"boolean"!=n&&("string"!=n||t.length)&&!isNaN(e)&&isFinite(e)||!1},T.inArray=function(t,e,n){return O.indexOf.call(e,t,n)},T.camelCase=C,T.trim=function(t){return null==t?"":String.prototype.trim.call(t)},T.uuid=0,T.support={},T.expr={},T.noop=function(){},T.map=function(t,e){var n,r,i,o=[];if(a(t))for(r=0;r<t.length;r++)n=e(t[r],r),null!=n&&o.push(n);else for(i in t)n=e(t[i],i),null!=n&&o.push(n);return u(o)},T.each=function(t,e){var n,r;if(a(t)){for(n=0;n<t.length;n++)if(e.call(t[n],n,t[n])===!1)return t}else for(r in t)if(e.call(t[r],r,t[r])===!1)return t;return t},T.grep=function(t,e){return A.call(t,e)},window.JSON&&(T.parseJSON=JSON.parse),T.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(t,e){J["[object "+e+"]"]=e.toLowerCase()}),T.fn={constructor:Y.Z,length:0,forEach:O.forEach,reduce:O.reduce,push:O.push,sort:O.sort,splice:O.splice,indexOf:O.indexOf,concat:function(){var t,e,n=[];for(t=0;t<arguments.length;t++)e=arguments[t],n[t]=Y.isZ(e)?e.toArray():e;return P.apply(Y.isZ(this)?this.toArray():this,n)},map:function(t){return T(T.map(this,function(e,n){return t.call(e,n,e)}))},slice:function(){return T(D.apply(this,arguments))},ready:function(t){return U.test(L.readyState)&&L.body?t(T):L.addEventListener("DOMContentLoaded",function(){t(T)},!1),this},get:function(t){return t===E?D.call(this):this[t>=0?t:t+this.length]},toArray:function(){return this.get()},size:function(){return this.length},remove:function(){return this.each(function(){null!=this.parentNode&&this.parentNode.removeChild(this)})},each:function(t){return O.every.call(this,function(e,n){return t.call(e,n,e)!==!1}),this},filter:function(t){return e(t)?this.not(this.not(t)):T(A.call(this,function(e){return Y.matches(e,t)}))},add:function(t,e){return T(N(this.concat(T(t,e))))},is:function(t){return this.length>0&&Y.matches(this[0],t)},not:function(t){var n=[];if(e(t)&&t.call!==E)this.each(function(e){t.call(this,e)||n.push(this)});else{var r="string"==typeof t?this.filter(t):a(t)&&e(t.item)?D.call(t):T(t);this.forEach(function(t){r.indexOf(t)<0&&n.push(t)})}return T(n)},has:function(t){return this.filter(function(){return i(t)?T.contains(this,t):T(this).find(t).size()})},eq:function(t){return t===-1?this.slice(t):this.slice(t,+t+1)},first:function(){var t=this[0];return t&&!i(t)?t:T(t)},last:function(){var t=this[this.length-1];return t&&!i(t)?t:T(t)},find:function(t){var e,n=this;return e=t?"object"==typeof t?T(t).filter(function(){var t=this;return O.some.call(n,function(e){return T.contains(e,t)})}):1==this.length?T(Y.qsa(this[0],t)):this.map(function(){return Y.qsa(this,t)}):T()},closest:function(t,e){var n=[],i="object"==typeof t&&T(t);return this.each(function(o,a){for(;a&&!(i?i.indexOf(a)>=0:Y.matches(a,t));)a=a!==e&&!r(a)&&a.parentNode;a&&n.indexOf(a)<0&&n.push(a)}),T(n)},parents:function(t){for(var e=[],n=this;n.length>0;)n=T.map(n,function(t){if((t=t.parentNode)&&!r(t)&&e.indexOf(t)<0)return e.push(t),t});return v(e,t)},parent:function(t){return v(N(this.pluck("parentNode")),t)},children:function(t){return v(this.map(function(){return p(this)}),t)},contents:function(){return this.map(function(){return this.contentDocument||D.call(this.childNodes)})},siblings:function(t){return v(this.map(function(t,e){return A.call(p(e.parentNode),function(t){return t!==e})}),t)},empty:function(){return this.each(function(){this.innerHTML=""})},pluck:function(t){return T.map(this,function(e){return e[t]})},show:function(){return this.each(function(){"none"==this.style.display&&(this.style.display=""),"none"==getComputedStyle(this,"").getPropertyValue("display")&&(this.style.display=h(this.nodeName))})},replaceWith:function(t){return this.before(t).remove()},wrap:function(t){var n=e(t);if(this[0]&&!n)var r=T(t).get(0),i=r.parentNode||this.length>1;return this.each(function(e){T(this).wrapAll(n?t.call(this,e):i?r.cloneNode(!0):r)})},wrapAll:function(t){if(this[0]){T(this[0]).before(t=T(t));for(var e;(e=t.children()).length;)t=e.first();T(t).append(this)}return this},wrapInner:function(t){var n=e(t);return this.each(function(e){var r=T(this),i=r.contents(),o=n?t.call(this,e):t;i.length?i.wrapAll(o):r.append(o)})},unwrap:function(){return this.parent().each(function(){T(this).replaceWith(T(this).children())}),this},clone:function(){return this.map(function(){return this.cloneNode(!0)})},hide:function(){return this.css("display","none")},toggle:function(t){return this.each(function(){var e=T(this);(t===E?"none"==e.css("display"):t)?e.show():e.hide()})},prev:function(t){return T(this.pluck("previousElementSibling")).filter(t||"*")},next:function(t){return T(this.pluck("nextElementSibling")).filter(t||"*")},html:function(t){return 0 in arguments?this.each(function(e){var n=this.innerHTML;T(this).empty().append(g(this,t,e,n))}):0 in this?this[0].innerHTML:null},text:function(t){return 0 in arguments?this.each(function(e){var n=g(this,t,e,this.textContent);this.textContent=null==n?"":""+n}):0 in this?this.pluck("textContent").join(""):null},attr:function(t,e){var n;return"string"!=typeof t||1 in arguments?this.each(function(n){if(1===this.nodeType)if(i(t))for(j in t)y(this,j,t[j]);else y(this,t,g(this,e,n,this.getAttribute(t)))}):0 in this&&1==this[0].nodeType&&null!=(n=this[0].getAttribute(t))?n:E},removeAttr:function(t){return this.each(function(){1===this.nodeType&&t.split(" ").forEach(function(t){y(this,t)},this)})},prop:function(t,e){return t=K[t]||t,1 in arguments?this.each(function(n){this[t]=g(this,e,n,this[t])}):this[0]&&this[0][t]},removeProp:function(t){return t=K[t]||t,this.each(function(){delete this[t]})},data:function(t,e){var n="data-"+t.replace(q,"-$1").toLowerCase(),r=1 in arguments?this.attr(n,e):this.attr(n);return null!==r?b(r):E},val:function(t){return 0 in arguments?(null==t&&(t=""),this.each(function(e){this.value=g(this,t,e,this.value)})):this[0]&&(this[0].multiple?T(this[0]).find("option").filter(function(){return this.selected}).pluck("value"):this[0].value)},offset:function(t){if(t)return this.each(function(e){var n=T(this),r=g(this,t,e,n.offset()),i=n.offsetParent().offset(),o={top:r.top-i.top,left:r.left-i.left};"static"==n.css("position")&&(o.position="relative"),n.css(o)});if(!this.length)return null;if(L.documentElement!==this[0]&&!T.contains(L.documentElement,this[0]))return{top:0,left:0};var e=this[0].getBoundingClientRect();return{left:e.left+window.pageXOffset,top:e.top+window.pageYOffset,width:Math.round(e.width),height:Math.round(e.height)}},css:function(e,n){if(arguments.length<2){var r=this[0];if("string"==typeof e){if(!r)return;return r.style[C(e)]||getComputedStyle(r,"").getPropertyValue(e)}if(Q(e)){if(!r)return;var i={},o=getComputedStyle(r,"");return T.each(e,function(t,e){i[e]=r.style[C(e)]||o.getPropertyValue(e)}),i}}var a="";if("string"==t(e))n||0===n?a=c(e)+":"+f(e,n):this.each(function(){this.style.removeProperty(c(e))});else for(j in e)e[j]||0===e[j]?a+=c(j)+":"+f(j,e[j])+";":this.each(function(){this.style.removeProperty(c(j))});return this.each(function(){this.style.cssText+=";"+a})},index:function(t){return t?this.indexOf(T(t)[0]):this.parent().children().indexOf(this[0])},hasClass:function(t){return!!t&&O.some.call(this,function(t){return this.test(x(t))},l(t))},addClass:function(t){return t?this.each(function(e){if("className"in this){S=[];var n=x(this),r=g(this,t,e,n);r.split(/\s+/g).forEach(function(t){T(this).hasClass(t)||S.push(t)},this),S.length&&x(this,n+(n?" ":"")+S.join(" "))}}):this},removeClass:function(t){return this.each(function(e){if("className"in this){if(t===E)return x(this,"");S=x(this),g(this,t,e,S).split(/\s+/g).forEach(function(t){S=S.replace(l(t)," ")}),x(this,S.trim())}})},toggleClass:function(t,e){return t?this.each(function(n){var r=T(this),i=g(this,t,n,x(this));i.split(/\s+/g).forEach(function(t){(e===E?!r.hasClass(t):e)?r.addClass(t):r.removeClass(t)})}):this},scrollTop:function(t){if(this.length){var e="scrollTop"in this[0];return t===E?e?this[0].scrollTop:this[0].pageYOffset:this.each(e?function(){this.scrollTop=t}:function(){this.scrollTo(this.scrollX,t)})}},scrollLeft:function(t){if(this.length){var e="scrollLeft"in this[0];return t===E?e?this[0].scrollLeft:this[0].pageXOffset:this.each(e?function(){this.scrollLeft=t}:function(){this.scrollTo(t,this.scrollY)})}},position:function(){if(this.length){var t=this[0],e=this.offsetParent(),n=this.offset(),r=Z.test(e[0].nodeName)?{top:0,left:0}:e.offset();return n.top-=parseFloat(T(t).css("margin-top"))||0,n.left-=parseFloat(T(t).css("margin-left"))||0,r.top+=parseFloat(T(e[0]).css("border-top-width"))||0,r.left+=parseFloat(T(e[0]).css("border-left-width"))||0,{top:n.top-r.top,left:n.left-r.left}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent||L.body;t&&!Z.test(t.nodeName)&&"static"==T(t).css("position");)t=t.offsetParent;return t})}},T.fn.detach=T.fn.remove,["width","height"].forEach(function(t){var e=t.replace(/./,function(t){return t[0].toUpperCase()});T.fn[t]=function(i){var o,a=this[0];return i===E?n(a)?a["inner"+e]:r(a)?a.documentElement["scroll"+e]:(o=this.offset())&&o[t]:this.each(function(e){a=T(this),a.css(t,g(this,i,e,a[t]()))})}}),I.forEach(function(e,n){var r=n%2;T.fn[e]=function(){var e,i,o=T.map(arguments,function(n){var r=[];return e=t(n),"array"==e?(n.forEach(function(t){return t.nodeType!==E?r.push(t):T.zepto.isZ(t)?r=r.concat(t.get()):void(r=r.concat(Y.fragment(t)))}),r):"object"==e||null==n?n:Y.fragment(n)}),a=this.length>1;return o.length<1?this:this.each(function(t,e){i=r?e:e.parentNode,e=0==n?e.nextSibling:1==n?e.firstChild:2==n?e:null;var s=T.contains(L.documentElement,i);o.forEach(function(t){if(a)t=t.cloneNode(!0);else if(!i)return T(t).remove();i.insertBefore(t,e),s&&w(t,function(t){if(!(null==t.nodeName||"SCRIPT"!==t.nodeName.toUpperCase()||t.type&&"text/javascript"!==t.type||t.src)){var e=t.ownerDocument?t.ownerDocument.defaultView:window;e.eval.call(e,t.innerHTML)}})})})},T.fn[r?e+"To":"insert"+(n?"Before":"After")]=function(t){return T(t)[e](this),this}}),Y.Z.prototype=d.prototype=T.fn,Y.uniq=N,Y.deserializeValue=b,T.zepto=Y,T}();!function(t){function e(t){return t._zid||(t._zid=h++)}function n(t,n,o,a){if(n=r(n),n.ns)var s=i(n.ns);return(v[e(t)]||[]).filter(function(t){return t&&(!n.e||t.e==n.e)&&(!n.ns||s.test(t.ns))&&(!o||e(t.fn)===e(o))&&(!a||t.sel==a)})}function r(t){var e=(""+t).split(".");return{e:e[0],ns:e.slice(1).sort().join(" ")}}function i(t){return new RegExp("(?:^| )"+t.replace(" "," .* ?")+"(?: |$)")}function o(t,e){return t.del&&!y&&t.e in x||!!e}function a(t){return b[t]||y&&x[t]||t}function s(n,i,s,u,l,h,p){var d=e(n),m=v[d]||(v[d]=[]);i.split(/\s/).forEach(function(e){if("ready"==e)return t(document).ready(s);var i=r(e);i.fn=s,i.sel=l,i.e in b&&(s=function(e){var n=e.relatedTarget;if(!n||n!==this&&!t.contains(this,n))return i.fn.apply(this,arguments)}),i.del=h;var d=h||s;i.proxy=function(t){if(t=c(t),!t.isImmediatePropagationStopped()){t.data=u;var e=d.apply(n,t._args==f?[t]:[t].concat(t._args));return e===!1&&(t.preventDefault(),t.stopPropagation()),e}},i.i=m.length,m.push(i),"addEventListener"in n&&n.addEventListener(a(i.e),i.proxy,o(i,p))})}function u(t,r,i,s,u){var c=e(t);(r||"").split(/\s/).forEach(function(e){n(t,e,i,s).forEach(function(e){delete v[c][e.i],"removeEventListener"in t&&t.removeEventListener(a(e.e),e.proxy,o(e,u))})})}function c(e,n){return!n&&e.isDefaultPrevented||(n||(n=e),t.each(T,function(t,r){var i=n[t];e[t]=function(){return this[r]=w,i&&i.apply(n,arguments)},e[r]=E}),e.timeStamp||(e.timeStamp=Date.now()),(n.defaultPrevented!==f?n.defaultPrevented:"returnValue"in n?n.returnValue===!1:n.getPreventDefault&&n.getPreventDefault())&&(e.isDefaultPrevented=w)),e}function l(t){var e,n={originalEvent:t};for(e in t)j.test(e)||t[e]===f||(n[e]=t[e]);return c(n,t)}var f,h=1,p=Array.prototype.slice,d=t.isFunction,m=function(t){return"string"==typeof t},v={},g={},y="onfocusin"in window,x={focus:"focusin",blur:"focusout"},b={mouseenter:"mouseover",mouseleave:"mouseout"};g.click=g.mousedown=g.mouseup=g.mousemove="MouseEvents",t.event={add:s,remove:u},t.proxy=function(n,r){var i=2 in arguments&&p.call(arguments,2);if(d(n)){var o=function(){return n.apply(r,i?i.concat(p.call(arguments)):arguments)};return o._zid=e(n),o}if(m(r))return i?(i.unshift(n[r],n),t.proxy.apply(null,i)):t.proxy(n[r],n);throw new TypeError("expected function")},t.fn.bind=function(t,e,n){return this.on(t,e,n)},t.fn.unbind=function(t,e){return this.off(t,e)},t.fn.one=function(t,e,n,r){return this.on(t,e,n,r,1)};var w=function(){return!0},E=function(){return!1},j=/^([A-Z]|returnValue$|layer[XY]$|webkitMovement[XY]$)/,T={preventDefault:"isDefaultPrevented",stopImmediatePropagation:"isImmediatePropagationStopped",stopPropagation:"isPropagationStopped"};t.fn.delegate=function(t,e,n){return this.on(e,t,n)},t.fn.undelegate=function(t,e,n){return this.off(e,t,n)},t.fn.live=function(e,n){return t(document.body).delegate(this.selector,e,n),this},t.fn.die=function(e,n){return t(document.body).undelegate(this.selector,e,n),this},t.fn.on=function(e,n,r,i,o){var a,c,h=this;return e&&!m(e)?(t.each(e,function(t,e){h.on(t,n,r,e,o)}),h):(m(n)||d(i)||i===!1||(i=r,r=n,n=f),i!==f&&r!==!1||(i=r,r=f),i===!1&&(i=E),h.each(function(f,h){o&&(a=function(t){return u(h,t.type,i),i.apply(this,arguments)}),n&&(c=function(e){var r,o=t(e.target).closest(n,h).get(0);if(o&&o!==h)return r=t.extend(l(e),{currentTarget:o,liveFired:h}),(a||i).apply(o,[r].concat(p.call(arguments,1)))}),s(h,e,i,r,n,c||a)}))},t.fn.off=function(e,n,r){var i=this;return e&&!m(e)?(t.each(e,function(t,e){i.off(t,n,e)}),i):(m(n)||d(r)||r===!1||(r=n,n=f),r===!1&&(r=E),i.each(function(){u(this,e,r,n)}))},t.fn.trigger=function(e,n){return e=m(e)||t.isPlainObject(e)?t.Event(e):c(e),e._args=n,this.each(function(){e.type in x&&"function"==typeof this[e.type]?this[e.type]():"dispatchEvent"in this?this.dispatchEvent(e):t(this).triggerHandler(e,n)})},t.fn.triggerHandler=function(e,r){var i,o;return this.each(function(a,s){i=l(m(e)?t.Event(e):e),i._args=r,i.target=s,t.each(n(s,e.type||e),function(t,e){if(o=e.proxy(i),i.isImmediatePropagationStopped())return!1})}),o},"focusin focusout focus blur load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select keydown keypress keyup error".split(" ").forEach(function(e){t.fn[e]=function(t){return 0 in arguments?this.bind(e,t):this.trigger(e)}}),t.Event=function(t,e){m(t)||(e=t,t=e.type);var n=document.createEvent(g[t]||"Events"),r=!0;if(e)for(var i in e)"bubbles"==i?r=!!e[i]:n[i]=e[i];return n.initEvent(t,r,!0),c(n)}}(e),function(t){function e(e,n,r){var i=t.Event(n);return t(e).trigger(i,r),!i.isDefaultPrevented()}function n(t,n,r,i){if(t.global)return e(n||x,r,i)}function r(e){e.global&&0===t.active++&&n(e,null,"ajaxStart")}function i(e){e.global&&!--t.active&&n(e,null,"ajaxStop")}function o(t,e){var r=e.context;return e.beforeSend.call(r,t,e)!==!1&&n(e,r,"ajaxBeforeSend",[t,e])!==!1&&void n(e,r,"ajaxSend",[t,e])}function a(t,e,r,i){var o=r.context,a="success";r.success.call(o,t,a,e),i&&i.resolveWith(o,[t,a,e]),n(r,o,"ajaxSuccess",[e,r,t]),u(a,e,r)}function s(t,e,r,i,o){var a=i.context;i.error.call(a,r,e,t),o&&o.rejectWith(a,[r,e,t]),n(i,a,"ajaxError",[r,i,t||e]),u(e,r,i)}function u(t,e,r){var o=r.context;r.complete.call(o,e,t),n(r,o,"ajaxComplete",[e,r]),i(r)}function c(t,e,n){if(n.dataFilter==l)return t;var r=n.context;return n.dataFilter.call(r,t,e)}function l(){}function f(t){return t&&(t=t.split(";",2)[0]),t&&(t==T?"html":t==j?"json":w.test(t)?"script":E.test(t)&&"xml")||"text"}function h(t,e){return""==e?t:(t+"&"+e).replace(/[&?]{1,2}/,"?")}function p(e){e.processData&&e.data&&"string"!=t.type(e.data)&&(e.data=t.param(e.data,e.traditional)),!e.data||e.type&&"GET"!=e.type.toUpperCase()&&"jsonp"!=e.dataType||(e.url=h(e.url,e.data),e.data=void 0)}function d(e,n,r,i){return t.isFunction(n)&&(i=r,r=n,n=void 0),t.isFunction(r)||(i=r,r=void 0),{url:e,data:n,success:r,dataType:i}}function m(e,n,r,i){var o,a=t.isArray(n),s=t.isPlainObject(n);t.each(n,function(n,u){o=t.type(u),i&&(n=r?i:i+"["+(s||"object"==o||"array"==o?n:"")+"]"),!i&&a?e.add(u.name,u.value):"array"==o||!r&&"object"==o?m(e,u,r,n):e.add(n,u)})}var v,g,y=+new Date,x=window.document,b=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,w=/^(?:text|application)\/javascript/i,E=/^(?:text|application)\/xml/i,j="application/json",T="text/html",S=/^\s*$/,C=x.createElement("a");C.href=window.location.href,t.active=0,t.ajaxJSONP=function(e,n){if(!("type"in e))return t.ajax(e);var r,i,u=e.jsonpCallback,c=(t.isFunction(u)?u():u)||"Zepto"+y++,l=x.createElement("script"),f=window[c],h=function(e){t(l).triggerHandler("error",e||"abort")},p={abort:h};return n&&n.promise(p),t(l).on("load error",function(o,u){clearTimeout(i),t(l).off().remove(),"error"!=o.type&&r?a(r[0],p,e,n):s(null,u||"error",p,e,n),window[c]=f,r&&t.isFunction(f)&&f(r[0]),f=r=void 0}),o(p,e)===!1?(h("abort"),p):(window[c]=function(){r=arguments},l.src=e.url.replace(/\?(.+)=\?/,"?$1="+c),x.head.appendChild(l),e.timeout>0&&(i=setTimeout(function(){h("timeout")},e.timeout)),p)},t.ajaxSettings={type:"GET",beforeSend:l,success:l,error:l,complete:l,context:null,global:!0,xhr:function(){return new window.XMLHttpRequest},accepts:{script:"text/javascript, application/javascript, application/x-javascript",json:j,xml:"application/xml, text/xml",html:T,text:"text/plain"},crossDomain:!1,timeout:0,processData:!0,cache:!0,dataFilter:l},t.ajax=function(e){var n,i,u=t.extend({},e||{}),d=t.Deferred&&t.Deferred();for(v in t.ajaxSettings)void 0===u[v]&&(u[v]=t.ajaxSettings[v]);r(u),u.crossDomain||(n=x.createElement("a"),n.href=u.url,n.href=n.href,u.crossDomain=C.protocol+"//"+C.host!=n.protocol+"//"+n.host),u.url||(u.url=window.location.toString()),(i=u.url.indexOf("#"))>-1&&(u.url=u.url.slice(0,i)),p(u);var m=u.dataType,y=/\?.+=\?/.test(u.url);if(y&&(m="jsonp"),u.cache!==!1&&(e&&e.cache===!0||"script"!=m&&"jsonp"!=m)||(u.url=h(u.url,"_="+Date.now())),"jsonp"==m)return y||(u.url=h(u.url,u.jsonp?u.jsonp+"=?":u.jsonp===!1?"":"callback=?")),t.ajaxJSONP(u,d);var b,w=u.accepts[m],E={},j=function(t,e){E[t.toLowerCase()]=[t,e]},T=/^([\w-]+:)\/\//.test(u.url)?RegExp.$1:window.location.protocol,N=u.xhr(),O=N.setRequestHeader;if(d&&d.promise(N),u.crossDomain||j("X-Requested-With","XMLHttpRequest"),j("Accept",w||"*/*"),(w=u.mimeType||w)&&(w.indexOf(",")>-1&&(w=w.split(",",2)[0]),N.overrideMimeType&&N.overrideMimeType(w)),(u.contentType||u.contentType!==!1&&u.data&&"GET"!=u.type.toUpperCase())&&j("Content-Type",u.contentType||"application/x-www-form-urlencoded"),u.headers)for(g in u.headers)j(g,u.headers[g]);if(N.setRequestHeader=j,N.onreadystatechange=function(){if(4==N.readyState){N.onreadystatechange=l,clearTimeout(b);var e,n=!1;if(N.status>=200&&N.status<300||304==N.status||0==N.status&&"file:"==T){if(m=m||f(u.mimeType||N.getResponseHeader("content-type")),"arraybuffer"==N.responseType||"blob"==N.responseType)e=N.response;else{e=N.responseText;try{e=c(e,m,u),"script"==m?(0,eval)(e):"xml"==m?e=N.responseXML:"json"==m&&(e=S.test(e)?null:t.parseJSON(e))}catch(r){n=r}if(n)return s(n,"parsererror",N,u,d)}a(e,N,u,d)}else s(N.statusText||null,N.status?"error":"abort",N,u,d)}},o(N,u)===!1)return N.abort(),s(null,"abort",N,u,d),N;var P=!("async"in u)||u.async;if(N.open(u.type,u.url,P,u.username,u.password),u.xhrFields)for(g in u.xhrFields)N[g]=u.xhrFields[g];for(g in E)O.apply(N,E[g]);return u.timeout>0&&(b=setTimeout(function(){N.onreadystatechange=l,N.abort(),s(null,"timeout",N,u,d)},u.timeout)),N.send(u.data?u.data:null),N},t.get=function(){return t.ajax(d.apply(null,arguments))},t.post=function(){var e=d.apply(null,arguments);return e.type="POST",t.ajax(e)},t.getJSON=function(){var e=d.apply(null,arguments);return e.dataType="json",t.ajax(e)},t.fn.load=function(e,n,r){if(!this.length)return this;var i,o=this,a=e.split(/\s/),s=d(e,n,r),u=s.success;return a.length>1&&(s.url=a[0],i=a[1]),s.success=function(e){o.html(i?t("<div>").html(e.replace(b,"")).find(i):e),u&&u.apply(o,arguments)},t.ajax(s),this};var N=encodeURIComponent;t.param=function(e,n){var r=[];return r.add=function(e,n){t.isFunction(n)&&(n=n()),null==n&&(n=""),this.push(N(e)+"="+N(n))},m(r,e,n),r.join("&").replace(/%20/g,"+")}}(e),function(t){t.fn.serializeArray=function(){var e,n,r=[],i=function(t){return t.forEach?t.forEach(i):void r.push({name:e,value:t})};return this[0]&&t.each(this[0].elements,function(r,o){n=o.type,e=o.name,e&&"fieldset"!=o.nodeName.toLowerCase()&&!o.disabled&&"submit"!=n&&"reset"!=n&&"button"!=n&&"file"!=n&&("radio"!=n&&"checkbox"!=n||o.checked)&&i(t(o).val())}),r},t.fn.serialize=function(){var t=[];return this.serializeArray().forEach(function(e){t.push(encodeURIComponent(e.name)+"="+encodeURIComponent(e.value))}),t.join("&")},t.fn.submit=function(e){if(0 in arguments)this.bind("submit",e);else if(this.length){var n=t.Event("submit");this.eq(0).trigger(n),n.isDefaultPrevented()||this.get(0).submit()}return this}}(e),function(){try{getComputedStyle(void 0)}catch(t){var e=getComputedStyle;window.getComputedStyle=function(t,n){try{return e(t,n)}catch(r){return null}}}}(),t("zepto",e)});layui.define(["layer-mobile","zepto"],function(e){"use strict";var t=layui.zepto,a=layui["layer-mobile"],i=(layui.device(),"layui-upload-enter"),n="layui-upload-iframe",r={icon:2,shift:6},o={file:"文件",video:"视频",audio:"音频"};a.msg=function(e){return a.open({content:e||"",skin:"msg",time:2})};var s=function(e){this.options=e};s.prototype.init=function(){var e=this,a=e.options,r=t("body"),s=t(a.elem||".layui-upload-file"),u=t('<iframe id="'+n+'" class="'+n+'" name="'+n+'"></iframe>');return t("#"+n)[0]||r.append(u),s.each(function(r,s){s=t(s);var u='<form target="'+n+'" method="'+(a.method||"post")+'" key="set-mine" enctype="multipart/form-data" action="'+(a.url||"")+'"></form>',l=s.attr("lay-type")||a.type;a.unwrap||(u='<div class="layui-box layui-upload-button">'+u+'<span class="layui-upload-icon"><i class="layui-icon"></i>'+(s.attr("lay-title")||a.title||"上传"+(o[l]||"图片"))+"</span></div>"),u=t(u),a.unwrap||u.on("dragover",function(e){e.preventDefault(),t(this).addClass(i)}).on("dragleave",function(){t(this).removeClass(i)}).on("drop",function(){t(this).removeClass(i)}),s.parent("form").attr("target")===n&&(a.unwrap?s.unwrap():(s.parent().next().remove(),s.unwrap().unwrap())),s.wrap(u),s.off("change").on("change",function(){e.action(this,l)})})},s.prototype.action=function(e,i){var o=this,s=o.options,u=e.value,l=t(e),p=l.attr("lay-ext")||s.ext||"";if(u){switch(i){case"file":if(p&&!RegExp("\\w\\.("+p+")$","i").test(escape(u)))return a.msg("不支持该文件格式",r),e.value="";break;case"video":if(!RegExp("\\w\\.("+(p||"avi|mp4|wma|rmvb|rm|flash|3gp|flv")+")$","i").test(escape(u)))return a.msg("不支持该视频格式",r),e.value="";break;case"audio":if(!RegExp("\\w\\.("+(p||"mp3|wav|mid")+")$","i").test(escape(u)))return a.msg("不支持该音频格式",r),e.value="";break;default:if(!RegExp("\\w\\.("+(p||"jpg|png|gif|bmp|jpeg")+")$","i").test(escape(u)))return a.msg("不支持该图片格式",r),e.value=""}s.before&&s.before(e),l.parent().submit();var c=t("#"+n),f=setInterval(function(){var t;try{t=c.contents().find("body").text()}catch(i){a.msg("上传接口存在跨域",r),clearInterval(f)}if(t){clearInterval(f),c.contents().find("body").html("");try{t=JSON.parse(t)}catch(i){return t={},a.msg("请对上传接口返回JSON字符",r)}"function"==typeof s.success&&s.success(t,e)}},30);e.value=""}},e("upload-mobile",function(e){var t=new s(e=e||{});t.init()})});layui.define(function(i){i("layim-mobile",layui.v)});layui["layui.mobile"]||layui.config({base:layui.cache.dir+"lay/modules/mobile/"}).extend({"layer-mobile":"layer-mobile",zepto:"zepto","upload-mobile":"upload-mobile","layim-mobile":"layim-mobile"}),layui.define(["layer-mobile","zepto","layim-mobile"],function(l){l("mobile",{layer:layui["layer-mobile"],layim:layui["layim-mobile"]})}); \ No newline at end of file diff --git a/public/static/plug/layui/lay/modules/rate.js b/public/static/plug/layui/lay/modules/rate.js index 290b009c..7ba3f147 100755 --- a/public/static/plug/layui/lay/modules/rate.js +++ b/public/static/plug/layui/lay/modules/rate.js @@ -1,2 +1,2 @@ -/** layui-v2.4.3 MIT License By https://www.layui.com */ +/** layui-v2.5.4 MIT License By https://www.layui.com */ ;layui.define("jquery",function(e){"use strict";var a=layui.jquery,i={config:{},index:layui.rate?layui.rate.index+1e4:0,set:function(e){var i=this;return i.config=a.extend({},i.config,e),i},on:function(e,a){return layui.onevent.call(this,n,e,a)}},l=function(){var e=this,a=e.config;return{setvalue:function(a){e.setvalue.call(e,a)},config:a}},n="rate",t="layui-rate",o="layui-icon-rate",s="layui-icon-rate-solid",u="layui-icon-rate-half",r="layui-icon-rate-solid layui-icon-rate-half",c="layui-icon-rate-solid layui-icon-rate",f="layui-icon-rate layui-icon-rate-half",v=function(e){var l=this;l.index=++i.index,l.config=a.extend({},l.config,i.config,e),l.render()};v.prototype.config={length:5,text:!1,readonly:!1,half:!1,value:0,theme:""},v.prototype.render=function(){var e=this,i=e.config,l=i.theme?'style="color: '+i.theme+';"':"";i.elem=a(i.elem),parseInt(i.value)!==i.value&&(i.half||(i.value=Math.ceil(i.value)-i.value<.5?Math.ceil(i.value):Math.floor(i.value)));for(var n='<ul class="layui-rate" '+(i.readonly?"readonly":"")+">",u=1;u<=i.length;u++){var r='<li class="layui-inline"><i class="layui-icon '+(u>Math.floor(i.value)?o:s)+'" '+l+"></i></li>";i.half&&parseInt(i.value)!==i.value&&u==Math.ceil(i.value)?n=n+'<li><i class="layui-icon layui-icon-rate-half" '+l+"></i></li>":n+=r}n+="</ul>"+(i.text?'<span class="layui-inline">'+i.value+"星":"")+"</span>";var c=i.elem,f=c.next("."+t);f[0]&&f.remove(),e.elemTemp=a(n),i.span=e.elemTemp.next("span"),i.setText&&i.setText(i.value),c.html(e.elemTemp),c.addClass("layui-inline"),i.readonly||e.action()},v.prototype.setvalue=function(e){var a=this,i=a.config;i.value=e,a.render()},v.prototype.action=function(){var e=this,i=e.config,l=e.elemTemp,n=l.find("i").width();l.children("li").each(function(e){var t=e+1,v=a(this);v.on("click",function(e){if(i.value=t,i.half){var o=e.pageX-a(this).offset().left;o<=n/2&&(i.value=i.value-.5)}i.text&&l.next("span").text(i.value+"星"),i.choose&&i.choose(i.value),i.setText&&i.setText(i.value)}),v.on("mousemove",function(e){if(l.find("i").each(function(){a(this).addClass(o).removeClass(r)}),l.find("i:lt("+t+")").each(function(){a(this).addClass(s).removeClass(f)}),i.half){var c=e.pageX-a(this).offset().left;c<=n/2&&v.children("i").addClass(u).removeClass(s)}}),v.on("mouseleave",function(){l.find("i").each(function(){a(this).addClass(o).removeClass(r)}),l.find("i:lt("+Math.floor(i.value)+")").each(function(){a(this).addClass(s).removeClass(f)}),i.half&&parseInt(i.value)!==i.value&&l.children("li:eq("+Math.floor(i.value)+")").children("i").addClass(u).removeClass(c)})})},v.prototype.events=function(){var e=this;e.config},i.render=function(e){var a=new v(e);return l.call(a)},e(n,i)}); \ No newline at end of file diff --git a/public/static/plug/layui/lay/modules/slider.js b/public/static/plug/layui/lay/modules/slider.js new file mode 100644 index 00000000..54d6d00f --- /dev/null +++ b/public/static/plug/layui/lay/modules/slider.js @@ -0,0 +1,2 @@ +/** layui-v2.5.4 MIT License By https://www.layui.com */ + ;layui.define("jquery",function(e){"use strict";var i=layui.jquery,t={config:{},index:layui.slider?layui.slider.index+1e4:0,set:function(e){var t=this;return t.config=i.extend({},t.config,e),t},on:function(e,i){return layui.onevent.call(this,n,e,i)}},a=function(){var e=this,i=e.config;return{setValue:function(i,t){return e.slide("set",i,t||0)},config:i}},n="slider",l="layui-disabled",s="layui-slider",r="layui-slider-bar",o="layui-slider-wrap",u="layui-slider-wrap-btn",d="layui-slider-tips",v="layui-slider-input",c="layui-slider-input-txt",m="layui-slider-input-btn",p="layui-slider-hover",f=function(e){var a=this;a.index=++t.index,a.config=i.extend({},a.config,t.config,e),a.render()};f.prototype.config={type:"default",min:0,max:100,value:0,step:1,showstep:!1,tips:!0,input:!1,range:!1,height:200,disabled:!1,theme:"#009688"},f.prototype.render=function(){var e=this,t=e.config;if(t.step<1&&(t.step=1),t.max<t.min&&(t.max=t.min+t.step),t.range){t.value="object"==typeof t.value?t.value:[t.min,t.value];var a=Math.min(t.value[0],t.value[1]),n=Math.max(t.value[0],t.value[1]);t.value[0]=a>t.min?a:t.min,t.value[1]=n>t.min?n:t.min,t.value[0]=t.value[0]>t.max?t.max:t.value[0],t.value[1]=t.value[1]>t.max?t.max:t.value[1];var r=Math.floor((t.value[0]-t.min)/(t.max-t.min)*100),v=Math.floor((t.value[1]-t.min)/(t.max-t.min)*100),m=v-r+"%";r+="%",v+="%"}else{"object"==typeof t.value&&(t.value=Math.min.apply(null,t.value)),t.value<t.min&&(t.value=t.min),t.value>t.max&&(t.value=t.max);var m=Math.floor((t.value-t.min)/(t.max-t.min)*100)+"%"}var p=t.disabled?"#c2c2c2":t.theme,f='<div class="layui-slider '+("vertical"===t.type?"layui-slider-vertical":"")+'">'+(t.tips?'<div class="layui-slider-tips"></div>':"")+'<div class="layui-slider-bar" style="background:'+p+"; "+("vertical"===t.type?"height":"width")+":"+m+";"+("vertical"===t.type?"bottom":"left")+":"+(r||0)+';"></div><div class="layui-slider-wrap" style="'+("vertical"===t.type?"bottom":"left")+":"+(r||m)+';"><div class="layui-slider-wrap-btn" style="border: 2px solid '+p+';"></div></div>'+(t.range?'<div class="layui-slider-wrap" style="'+("vertical"===t.type?"bottom":"left")+":"+v+';"><div class="layui-slider-wrap-btn" style="border: 2px solid '+p+';"></div></div>':"")+"</div>",h=i(t.elem),y=h.next("."+s);if(y[0]&&y.remove(),e.elemTemp=i(f),t.range?(e.elemTemp.find("."+o).eq(0).data("value",t.value[0]),e.elemTemp.find("."+o).eq(1).data("value",t.value[1])):e.elemTemp.find("."+o).data("value",t.value),h.html(e.elemTemp),"vertical"===t.type&&e.elemTemp.height(t.height+"px"),t.showstep){for(var g=(t.max-t.min)/t.step,b="",x=1;x<g+1;x++){var T=100*x/g;T<100&&(b+='<div class="layui-slider-step" style="'+("vertical"===t.type?"bottom":"left")+":"+T+'%"></div>')}e.elemTemp.append(b)}if(t.input&&!t.range){var w=i('<div class="layui-slider-input layui-input"><div class="layui-slider-input-txt"><input type="text" class="layui-input"></div><div class="layui-slider-input-btn"><i class="layui-icon layui-icon-up"></i><i class="layui-icon layui-icon-down"></i></div></div>');h.css("position","relative"),h.append(w),h.find("."+c).children("input").val(t.value),"vertical"===t.type?w.css({left:0,top:-48}):e.elemTemp.css("margin-right",w.outerWidth()+15)}t.disabled?(e.elemTemp.addClass(l),e.elemTemp.find("."+u).addClass(l)):e.slide(),e.elemTemp.find("."+u).on("mouseover",function(){var a="vertical"===t.type?t.height:e.elemTemp[0].offsetWidth,n=e.elemTemp.find("."+o),l="vertical"===t.type?a-i(this).parent()[0].offsetTop-n.height():i(this).parent()[0].offsetLeft,s=l/a*100,r=i(this).parent().data("value"),u=t.setTips?t.setTips(r):r;e.elemTemp.find("."+d).html(u),"vertical"===t.type?e.elemTemp.find("."+d).css({bottom:s+"%","margin-bottom":"20px",display:"inline-block"}):e.elemTemp.find("."+d).css({left:s+"%",display:"inline-block"})}).on("mouseout",function(){e.elemTemp.find("."+d).css("display","none")})},f.prototype.slide=function(e,t,a){var n=this,l=n.config,s=n.elemTemp,f=function(){return"vertical"===l.type?l.height:s[0].offsetWidth},h=s.find("."+o),y=s.next("."+v),g=y.children("."+c).children("input").val(),b=100/((l.max-l.min)/Math.ceil(l.step)),x=function(e,i){e=Math.ceil(e)*b>100?Math.ceil(e)*b:Math.round(e)*b,e=e>100?100:e,h.eq(i).css("vertical"===l.type?"bottom":"left",e+"%");var t=T(h[0].offsetLeft),a=l.range?T(h[1].offsetLeft):0;"vertical"===l.type?(s.find("."+d).css({bottom:e+"%","margin-bottom":"20px"}),t=T(f()-h[0].offsetTop-h.height()),a=l.range?T(f()-h[1].offsetTop-h.height()):0):s.find("."+d).css("left",e+"%"),t=t>100?100:t,a=a>100?100:a;var n=Math.min(t,a),o=Math.abs(t-a);"vertical"===l.type?s.find("."+r).css({height:o+"%",bottom:n+"%"}):s.find("."+r).css({width:o+"%",left:n+"%"});var u=l.min+Math.round((l.max-l.min)*e/100);if(g=u,y.children("."+c).children("input").val(g),h.eq(i).data("value",u),u=l.setTips?l.setTips(u):u,s.find("."+d).html(u),l.range){var v=[h.eq(0).data("value"),h.eq(1).data("value")];v[0]>v[1]&&v.reverse()}l.change&&l.change(l.range?v:u)},T=function(e){var i=e/f()*100/b,t=Math.round(i)*b;return e==f()&&(t=Math.ceil(i)*b),t},w=i(['<div class="layui-auxiliar-moving" id="LAY-slider-moving"></div'].join("")),M=function(e,t){var a=function(){t&&t(),w.remove()};i("#LAY-slider-moving")[0]||i("body").append(w),w.on("mousemove",e),w.on("mouseup",a).on("mouseleave",a)};if("set"===e)return x(t,a);s.find("."+u).each(function(e){var t=i(this);t.on("mousedown",function(i){i=i||window.event;var a=t.parent()[0].offsetLeft,n=i.clientX;"vertical"===l.type&&(a=f()-t.parent()[0].offsetTop-h.height(),n=i.clientY);var r=function(i){i=i||window.event;var r=a+("vertical"===l.type?n-i.clientY:i.clientX-n);r<0&&(r=0),r>f()&&(r=f());var o=r/f()*100/b;x(o,e),t.addClass(p),s.find("."+d).show(),i.preventDefault()},o=function(){t.removeClass(p),s.find("."+d).hide()};M(r,o)})}),s.on("click",function(e){var t=i("."+u);if(!t.is(event.target)&&0===t.has(event.target).length&&t.length){var a,n="vertical"===l.type?f()-e.clientY+i(this).offset().top:e.clientX-i(this).offset().left;n<0&&(n=0),n>f()&&(n=f());var s=n/f()*100/b;a=l.range?"vertical"===l.type?Math.abs(n-parseInt(i(h[0]).css("bottom")))>Math.abs(n-parseInt(i(h[1]).css("bottom")))?1:0:Math.abs(n-h[0].offsetLeft)>Math.abs(n-h[1].offsetLeft)?1:0:0,x(s,a),e.preventDefault()}}),y.hover(function(){var e=i(this);e.children("."+m).fadeIn("fast")},function(){var e=i(this);e.children("."+m).fadeOut("fast")}),y.children("."+m).children("i").each(function(e){i(this).on("click",function(){g=1==e?g-l.step<l.min?l.min:Number(g)-l.step:Number(g)+l.step>l.max?l.max:Number(g)+l.step;var i=(g-l.min)/(l.max-l.min)*100/b;x(i,0)})});var q=function(){var e=this.value;e=isNaN(e)?0:e,e=e<l.min?l.min:e,e=e>l.max?l.max:e,this.value=e;var i=(e-l.min)/(l.max-l.min)*100/b;x(i,0)};y.children("."+c).children("input").on("keydown",function(e){13===e.keyCode&&(e.preventDefault(),q.call(this))}).on("change",q)},f.prototype.events=function(){var e=this;e.config},t.render=function(e){var i=new f(e);return a.call(i)},e(n,t)}); \ No newline at end of file diff --git a/public/static/plug/layui/lay/modules/table.js b/public/static/plug/layui/lay/modules/table.js index 34fc4cd3..52a1f65a 100755 --- a/public/static/plug/layui/lay/modules/table.js +++ b/public/static/plug/layui/lay/modules/table.js @@ -1,2 +1,2 @@ -/** layui-v2.4.3 MIT License By https://www.layui.com */ - ;layui.define(["laytpl","laypage","layer","form","util"],function(e){"use strict";var t=layui.$,i=layui.laytpl,a=layui.laypage,l=layui.layer,n=layui.form,o=(layui.util,layui.hint()),r=layui.device(),d={config:{checkName:"LAY_CHECKED",indexName:"LAY_TABLE_INDEX"},cache:{},index:layui.table?layui.table.index+1e4:0,set:function(e){var i=this;return i.config=t.extend({},i.config,e),i},on:function(e,t){return layui.onevent.call(this,s,e,t)}},c=function(){var e=this,t=e.config,i=t.id||t.index;return i&&(c.config[i]=t),{reload:function(t){e.reload.call(e,t)},setColsWidth:function(){e.setColsWidth.call(e)},config:t}},s="table",u=".layui-table",y="layui-hide",h="layui-none",f="layui-table-view",p=".layui-table-tool",v=".layui-table-box",m=".layui-table-init",g=".layui-table-header",b=".layui-table-body",x=".layui-table-main",k=".layui-table-fixed",C=".layui-table-fixed-l",w=".layui-table-fixed-r",T=".layui-table-total",A=".layui-table-page",L=".layui-table-sort",S="layui-table-edit",N="layui-table-hover",W=function(e){var t='{{#if(item2.colspan){}} colspan="{{item2.colspan}}"{{#} if(item2.rowspan){}} rowspan="{{item2.rowspan}}"{{#}}}';return e=e||{},['<table cellspacing="0" cellpadding="0" border="0" class="layui-table" ','{{# if(d.data.skin){ }}lay-skin="{{d.data.skin}}"{{# } }} {{# if(d.data.size){ }}lay-size="{{d.data.size}}"{{# } }} {{# if(d.data.even){ }}lay-even{{# } }}>',"<thead>","{{# layui.each(d.data.cols, function(i1, item1){ }}","<tr>","{{# layui.each(item1, function(i2, item2){ }}",'{{# if(item2.fixed && item2.fixed !== "right"){ left = true; } }}','{{# if(item2.fixed === "right"){ right = true; } }}',function(){return e.fixed&&"right"!==e.fixed?'{{# if(item2.fixed && item2.fixed !== "right"){ }}':"right"===e.fixed?'{{# if(item2.fixed === "right"){ }}':""}(),"{{# var isSort = !(item2.colGroup) && item2.sort; }}",'<th data-field="{{ item2.field||i2 }}" data-key="{{d.index}}-{{i1}}-{{i2}}" {{# if( item2.parentKey){ }}data-parentkey="{{ item2.parentKey }}"{{# } }} {{# if(item2.minWidth){ }}data-minwidth="{{item2.minWidth}}"{{# } }} '+t+' {{# if(item2.unresize || item2.colGroup){ }}data-unresize="true"{{# } }} class="{{# if(item2.hide){ }}layui-hide{{# } }}{{# if(isSort){ }} layui-unselect{{# } }}{{# if(!item2.field){ }} layui-table-col-special{{# } }}">','<div class="layui-table-cell laytable-cell-',"{{# if(item2.colGroup){ }}","group","{{# } else { }}","{{d.index}}-{{i1}}-{{i2}}",'{{# if(item2.type !== "normal"){ }}'," laytable-cell-{{ item2.type }}","{{# } }}","{{# } }}",'" {{#if(item2.align){}}align="{{item2.align}}"{{#}}}>','{{# if(item2.type === "checkbox"){ }}','<input type="checkbox" name="layTableCheckbox" lay-skin="primary" lay-filter="layTableAllChoose" {{# if(item2[d.data.checkName]){ }}checked{{# }; }}>',"{{# } else { }}",'<span>{{item2.title||""}}</span>',"{{# if(isSort){ }}",'<span class="layui-table-sort layui-inline"><i class="layui-edge layui-table-sort-asc" title="升序"></i><i class="layui-edge layui-table-sort-desc" title="降序"></i></span>',"{{# } }}","{{# } }}","</div>","</th>",e.fixed?"{{# }; }}":"","{{# }); }}","</tr>","{{# }); }}","</thead>","</table>"].join("")},_=['<table cellspacing="0" cellpadding="0" border="0" class="layui-table" ','{{# if(d.data.skin){ }}lay-skin="{{d.data.skin}}"{{# } }} {{# if(d.data.size){ }}lay-size="{{d.data.size}}"{{# } }} {{# if(d.data.even){ }}lay-even{{# } }}>',"<tbody></tbody>","</table>"].join(""),E=['<div class="layui-form layui-border-box {{d.VIEW_CLASS}}" lay-filter="LAY-table-{{d.index}}" style="{{# if(d.data.width){ }}width:{{d.data.width}}px;{{# } }} {{# if(d.data.height){ }}height:{{d.data.height}}px;{{# } }}">',"{{# if(d.data.toolbar){ }}",'<div class="layui-table-tool">','<div class="layui-table-tool-temp"></div>','<div class="layui-table-tool-self"></div>',"</div>","{{# } }}",'<div class="layui-table-box">',"{{# if(d.loading){ }}",'<div class="layui-table-init" style="background-color: #fff;">','<i class="layui-icon layui-icon-loading layui-icon"></i>',"</div>","{{# } }}","{{# var left, right; }}",'<div class="layui-table-header">',W(),"</div>",'<div class="layui-table-body layui-table-main">',_,"</div>","{{# if(left){ }}",'<div class="layui-table-fixed layui-table-fixed-l">','<div class="layui-table-header">',W({fixed:!0}),"</div>",'<div class="layui-table-body">',_,"</div>","</div>","{{# }; }}","{{# if(right){ }}",'<div class="layui-table-fixed layui-table-fixed-r">','<div class="layui-table-header">',W({fixed:"right"}),'<div class="layui-table-mend"></div>',"</div>",'<div class="layui-table-body">',_,"</div>","</div>","{{# }; }}","</div>","{{# if(d.data.totalRow){ }}",'<div class="layui-table-total">','<table cellspacing="0" cellpadding="0" border="0" class="layui-table" ','{{# if(d.data.skin){ }}lay-skin="{{d.data.skin}}"{{# } }} {{# if(d.data.size){ }}lay-size="{{d.data.size}}"{{# } }} {{# if(d.data.even){ }}lay-even{{# } }}>','<tbody><tr><td><div class="layui-table-cell" style="visibility: hidden;">Total</div></td></tr></tbody>',"</table>","</div>","{{# } }}","{{# if(d.data.page){ }}",'<div class="layui-table-page">','<div id="layui-table-page{{d.index}}"></div>',"</div>","{{# } }}","<style>","{{# layui.each(d.data.cols, function(i1, item1){","layui.each(item1, function(i2, item2){ }}",".laytable-cell-{{d.index}}-{{i1}}-{{i2}}{ ","{{# if(item2.width){ }}","width: {{item2.width}}px;","{{# } }}"," }","{{# });","}); }}","</style>","</div>"].join(""),R=t(window),H=t(document),j=function(e){var i=this;i.index=++d.index,i.config=t.extend({},i.config,d.config,e),i.render()};j.prototype.config={limit:10,loading:!0,cellMinWidth:60,defaultToolbar:["filter","exports","print"],text:{none:"无数据"}},j.prototype.render=function(){var e=this,a=e.config;if(a.elem=t(a.elem),a.where=a.where||{},a.id=a.id||a.elem.attr("id")||a.index,a.request=t.extend({pageName:"page",limitName:"limit"},a.request),a.response=t.extend({statusName:"code",statusCode:0,msgName:"msg",dataName:"data",countName:"count"},a.response),"object"==typeof a.page&&(a.limit=a.page.limit||a.limit,a.limits=a.page.limits||a.limits,e.page=a.page.curr=a.page.curr||1,delete a.page.elem,delete a.page.jump),!a.elem[0])return e;a.height&&/^full-\d+$/.test(a.height)&&(e.fullHeightGap=a.height.split("-")[1],a.height=R.height()-e.fullHeightGap),e.setInit();var l=a.elem,n=l.next("."+f),o=e.elem=t(i(E).render({VIEW_CLASS:f,data:a,index:e.index}));if(a.index=e.index,n[0]&&n.remove(),l.after(o),e.layTool=o.find(p),e.layBox=o.find(v),e.layHeader=o.find(g),e.layMain=o.find(x),e.layBody=o.find(b),e.layFixed=o.find(k),e.layFixLeft=o.find(C),e.layFixRight=o.find(w),e.layTotal=o.find(T),e.layPage=o.find(A),e.renderToolbar(),e.fullSize(),a.cols.length>1){var r=e.layFixed.find(g).find("th");r.height(e.layHeader.height()-1-parseFloat(r.css("padding-top"))-parseFloat(r.css("padding-bottom")))}e.pullData(e.page),e.events()},j.prototype.initOpts=function(e){var t=this,i=(t.config,{checkbox:48,radio:48,space:15,numbers:40});e.checkbox&&(e.type="checkbox"),e.space&&(e.type="space"),e.type||(e.type="normal"),"normal"!==e.type&&(e.unresize=!0,e.width=e.width||i[e.type])},j.prototype.setInit=function(e){var t=this,i=t.config;return i.clientWidth=i.width||function(){var e=function(t){var a,l;t=t||i.elem.parent(),a=t.width();try{l="none"===t.css("display")}catch(n){}return!t[0]||a&&!l?a:e(t.parent())};return e()}(),"width"===e?i.clientWidth:void layui.each(i.cols,function(e,a){layui.each(a,function(l,n){if(!n)return void a.splice(l,1);if(n.key=e+"-"+l,n.hide=n.hide||!1,n.colGroup||n.colspan>1){var o=0;layui.each(i.cols[e+1],function(t,i){i.HAS_PARENT||o>1&&o==n.colspan||(i.HAS_PARENT=!0,i.parentKey=e+"-"+l,o+=parseInt(i.colspan>1?i.colspan:1))}),n.colGroup=!0}t.initOpts(n)})})},j.prototype.renderToolbar=function(){var e=this,a=e.config,l=['<div class="layui-inline" lay-event="add"><i class="layui-icon layui-icon-add-1"></i></div>','<div class="layui-inline" lay-event="update"><i class="layui-icon layui-icon-edit"></i></div>','<div class="layui-inline" lay-event="delete"><i class="layui-icon layui-icon-delete"></i></div>'].join(""),n=e.layTool.find(".layui-table-tool-temp");if("default"===a.toolbar)n.html(l);else if(a.toolbar){var o=t(a.toolbar).html()||"";o&&n.html(i(o).render(a))}var r={filter:{title:"筛选列",layEvent:"LAYTABLE_COLS",icon:"layui-icon-cols"},exports:{title:"导出",layEvent:"LAYTABLE_EXPORT",icon:"layui-icon-export"},print:{title:"打印",layEvent:"LAYTABLE_PRINT",icon:"layui-icon-print"}},d=[];"object"==typeof a.defaultToolbar&&layui.each(a.defaultToolbar,function(e,t){var i=r[t];i&&d.push('<div class="layui-inline" title="'+i.title+'" lay-event="'+i.layEvent+'"><i class="layui-icon '+i.icon+'"></i></div>')}),e.layTool.find(".layui-table-tool-self").html(d.join(""))},j.prototype.setParentCol=function(e,t){var i=this,a=i.config,l=i.layHeader.find('th[data-key="'+a.index+"-"+t+'"]'),n=parseInt(l.attr("colspan"))||0;if(l[0]){var o=t.split("-"),r=a.cols[o[0]][o[1]];e?n--:n++,l.attr("colspan",n),l[n<1?"addClass":"removeClass"](y),r.colspan=n,r.hide=n<1;var d=l.data("parentkey");d&&i.setParentCol(e,d)}},j.prototype.setColsPatch=function(){var e=this,t=e.config;layui.each(t.cols,function(t,i){layui.each(i,function(t,i){i.hide&&e.setParentCol(i.hide,i.parentKey)})})},j.prototype.setColsWidth=function(){var e=this,t=e.config,i=0,a=0,l=0,n=0,o=e.setInit("width");e.eachCols(function(e,t){t.hide||i++}),o=o-function(){return"line"===t.skin||"nob"===t.skin?2:i+1}()-e.getScrollWidth(e.layMain[0])-1;var r=function(e){layui.each(t.cols,function(i,r){layui.each(r,function(i,d){var c=0,s=d.minWidth||t.cellMinWidth;return d?void(d.colGroup||d.hide||(e?l&&l<s&&(a--,c=s):(c=d.width||0,/\d+%$/.test(c)?(c=Math.floor(parseFloat(c)/100*o),c<s&&(c=s)):c||(d.width=c=0,a++)),d.hide&&(c=0),n+=c)):void r.splice(i,1)})}),o>n&&a&&(l=(o-n)/a)};r(),r(!0),e.autoColNums=a,e.eachCols(function(i,a){var n=a.minWidth||t.cellMinWidth;a.colGroup||a.hide||(0===a.width?e.getCssRule(t.index+"-"+a.key,function(e){e.style.width=Math.floor(l>=n?l:n)+"px"}):/\d+%$/.test(a.width)&&e.getCssRule(t.index+"-"+a.key,function(e){e.style.width=Math.floor(parseFloat(a.width)/100*o)+"px"}))});var d=e.layMain.width()-e.getScrollWidth(e.layMain[0])-e.layMain.children("table").outerWidth();if(e.autoColNums&&d>=-i&&d<=i){var c=function(t){var i;return t=t||e.layHeader.eq(0).find("thead th:last-child"),i=t.data("field"),!i&&t.prev()[0]?c(t.prev()):t},s=c(),u=s.data("key");e.getCssRule(u,function(t){var i=t.style.width||s.outerWidth();t.style.width=parseFloat(i)+d+"px",e.layMain.height()-e.layMain.prop("clientHeight")>0&&(t.style.width=parseFloat(t.style.width)-1+"px")})}e.loading(!0)},j.prototype.reload=function(e){var i=this;i.config.data&&i.config.data.constructor===Array&&delete i.config.data,i.config=t.extend({},i.config,e),i.render()},j.prototype.page=1,j.prototype.pullData=function(e){var i=this,a=i.config,l=a.request,n=a.response,o=function(){"object"==typeof a.initSort&&i.sort(a.initSort.field,a.initSort.type)};if(i.startTime=(new Date).getTime(),a.url){var r={};r[l.pageName]=e,r[l.limitName]=a.limit;var d=t.extend(r,a.where);a.contentType&&0==a.contentType.indexOf("application/json")&&(d=JSON.stringify(d)),t.ajax({type:a.method||"get",url:a.url,contentType:a.contentType,data:d,dataType:"json",headers:a.headers||{},success:function(t){"function"==typeof a.parseData&&(t=a.parseData(t)||t),t[n.statusName]!=n.statusCode?(i.renderForm(),i.layMain.html('<div class="'+h+'">'+(t[n.msgName]||"返回的数据不符合规范,正确的成功状态码 ("+n.statusName+") 应为:"+n.statusCode)+"</div>")):(i.renderData(t,e,t[n.countName]),o(),a.time=(new Date).getTime()-i.startTime+" ms"),i.setColsWidth(),"function"==typeof a.done&&a.done(t,e,t[n.countName])},error:function(e,t){i.layMain.html('<div class="'+h+'">数据接口请求异常:'+t+"</div>"),i.renderForm(),i.setColsWidth()}})}else if(a.data&&a.data.constructor===Array){var c={},s=e*a.limit-a.limit;c[n.dataName]=a.data.concat().splice(s,a.limit),c[n.countName]=a.data.length,i.renderData(c,e,a.data.length),o(),i.setColsWidth(),"function"==typeof a.done&&a.done(c,e,c[n.countName])}},j.prototype.eachCols=function(e){var t=this;return d.eachCols(null,e,t.config.cols),t},j.prototype.renderData=function(e,n,o,r){var c=this,s=c.config,u=e[s.response.dataName]||[],f=[],p=[],v=[],m=function(){var e;return!r&&c.sortKey?c.sort(c.sortKey.field,c.sortKey.sort,!0):(layui.each(u,function(a,l){var o=[],u=[],h=[],m=a+s.limit*(n-1)+1;0!==l.length&&(r||(l[d.config.indexName]=a),c.eachCols(function(n,r){var c=r.field||n,f=s.index+"-"+r.key,p=l[c];if(void 0!==p&&null!==p||(p=""),!r.colGroup){var v=['<td data-field="'+c+'" data-key="'+f+'" '+function(){var e=[];return r.edit&&e.push('data-edit="'+r.edit+'"'),r.align&&e.push('align="'+r.align+'"'),r.templet&&e.push('data-content="'+p+'"'),r.toolbar&&e.push('data-off="true"'),r.event&&e.push('lay-event="'+r.event+'"'),r.style&&e.push('style="'+r.style+'"'),r.minWidth&&e.push('data-minwidth="'+r.minWidth+'"'),e.join(" ")}()+' class="'+function(){var e=[];return r.hide&&e.push(y),r.field||e.push("layui-table-col-special"),e.join(" ")}()+'">','<div class="layui-table-cell laytable-cell-'+function(){return"normal"===r.type?f:f+" laytable-cell-"+r.type}()+'">'+function(){var n=t.extend(!0,{LAY_INDEX:m},l),o=d.config.checkName;switch(r.type){case"checkbox":return'<input type="checkbox" name="layTableCheckbox" lay-skin="primary" '+function(){return r[o]?(l[o]=r[o],r[o]?"checked":""):n[o]?"checked":""}()+">";case"radio":return n[o]&&(e=a),'<input type="radio" name="layTableRadio_'+s.index+'" '+(n[o]?"checked":"")+' lay-type="layTableRadio">';case"numbers":return m}return r.toolbar?i(t(r.toolbar).html()||"").render(n):r.templet?function(){return"function"==typeof r.templet?r.templet(n):i(t(r.templet).html()||String(p)).render(n)}():p}(),"</div></td>"].join("");o.push(v),r.fixed&&"right"!==r.fixed&&u.push(v),"right"===r.fixed&&h.push(v)}}),f.push('<tr data-index="'+a+'">'+o.join("")+"</tr>"),p.push('<tr data-index="'+a+'">'+u.join("")+"</tr>"),v.push('<tr data-index="'+a+'">'+h.join("")+"</tr>"))}),c.layBody.scrollTop(0),c.layMain.find("."+h).remove(),c.layMain.find("tbody").html(f.join("")),c.layFixLeft.find("tbody").html(p.join("")),c.layFixRight.find("tbody").html(v.join("")),c.renderForm(),"number"==typeof e&&c.setThisRowChecked(e),c.syncCheckAll(),c.scrollPatch(),l.close(c.tipsIndex),s.HAS_SET_COLS_PATCH||c.setColsPatch(),void(s.HAS_SET_COLS_PATCH=!0))};return c.key=s.id||s.index,d.cache[c.key]=u,c.layPage[0==o||0===u.length&&1==n?"addClass":"removeClass"](y),r?m():0===u.length?(c.renderForm(),c.layFixed.remove(),c.layMain.find("tbody").html(""),c.layMain.find("."+h).remove(),c.layMain.append('<div class="'+h+'">'+s.text.none+"</div>")):(m(),c.renderTotal(u),void(s.page&&(s.page=t.extend({elem:"layui-table-page"+s.index,count:o,limit:s.limit,limits:s.limits||[10,20,30,40,50,60,70,80,90],groups:3,layout:["prev","page","next","skip","count","limit"],prev:'<i class="layui-icon"></i>',next:'<i class="layui-icon"></i>',jump:function(e,t){t||(c.page=e.curr,s.limit=e.limit,c.loading(),c.pullData(e.curr))}},s.page),s.page.count=o,a.render(s.page))))},j.prototype.renderTotal=function(e){var t=this,i=t.config,a={};if(i.totalRow){layui.each(e,function(e,i){0!==i.length&&t.eachCols(function(e,t){var l=t.field||e,n=i[l];t.totalRow&&(a[l]=(a[l]||0)+(parseFloat(n)||0))})});var l=[];t.eachCols(function(e,t){var n=t.field||e;if(!t.hide){var o=['<td data-field="'+n+'" data-key="'+t.key+'" '+function(){var e=[];return t.align&&e.push('align="'+t.align+'"'),t.style&&e.push('style="'+t.style+'"'),t.minWidth&&e.push('data-minwidth="'+t.minWidth+'"'),e.join(" ")}()+">",'<div class="layui-table-cell laytable-cell-'+function(){var e=i.index+"-"+t.key;return"normal"===t.type?e:e+" laytable-cell-"+t.type}()+'">'+function(){var e=t.totalRowText||"";return t.totalRow?a[n]||e:e}(),"</div></td>"].join("");l.push(o)}}),t.layTotal.find("tbody").html("<tr>"+l.join("")+"</tr>")}},j.prototype.getColElem=function(e,t){var i=this,a=i.config;return e.eq(0).find(".laytable-cell-"+(a.index+"-"+t)+":eq(0)")},j.prototype.renderForm=function(e){n.render(e,"LAY-table-"+this.index)},j.prototype.setThisRowChecked=function(e){var t=this,i=(t.config,"layui-table-click"),a=t.layBody.find('tr[data-index="'+e+'"]');a.addClass(i).siblings("tr").removeClass(i)},j.prototype.sort=function(e,i,a,l){var n,r,c=this,u={},y=c.config,h=y.elem.attr("lay-filter"),f=d.cache[c.key];"string"==typeof e&&c.layHeader.find("th").each(function(i,a){var l=t(this),o=l.data("field");if(o===e)return e=l,n=o,!1});try{var n=n||e.data("field"),p=e.data("key");if(c.sortKey&&!a&&n===c.sortKey.field&&i===c.sortKey.sort)return;var v=c.layHeader.find("th .laytable-cell-"+p).find(L);c.layHeader.find("th").find(L).removeAttr("lay-sort"),v.attr("lay-sort",i||null),c.layFixed.find("th")}catch(m){return o.error("Table modules: Did not match to field")}c.sortKey={field:n,sort:i},"asc"===i?r=layui.sort(f,n):"desc"===i?r=layui.sort(f,n,!0):(r=layui.sort(f,d.config.indexName),delete c.sortKey),u[y.response.dataName]=r,c.renderData(u,c.page,c.count,!0),l&&layui.event.call(e,s,"sort("+h+")",{field:n,type:i})},j.prototype.loading=function(e){var i=this,a=i.config;a.loading&&(e?(i.layInit&&i.layInit.remove(),delete i.layInit,i.layBox.find(m).remove()):(i.layInit=t(['<div class="layui-table-init">','<i class="layui-icon layui-icon-loading layui-icon"></i>',"</div>"].join("")),i.layBox.append(i.layInit)))},j.prototype.setCheckData=function(e,t){var i=this,a=i.config,l=d.cache[i.key];l[e]&&l[e].constructor!==Array&&(l[e][a.checkName]=t)},j.prototype.syncCheckAll=function(){var e=this,t=e.config,i=e.layHeader.find('input[name="layTableCheckbox"]'),a=function(i){return e.eachCols(function(e,a){"checkbox"===a.type&&(a[t.checkName]=i)}),i};i[0]&&(d.checkStatus(e.key).isAll?(i[0].checked||(i.prop("checked",!0),e.renderForm("checkbox")),a(!0)):(i[0].checked&&(i.prop("checked",!1),e.renderForm("checkbox")),a(!1)))},j.prototype.getCssRule=function(e,t){var i=this,a=i.elem.find("style")[0],l=a.sheet||a.styleSheet||{},n=l.cssRules||l.rules;layui.each(n,function(i,a){if(a.selectorText===".laytable-cell-"+e)return t(a),!0})},j.prototype.fullSize=function(){var e,t=this,i=t.config,a=i.height;t.fullHeightGap&&(a=R.height()-t.fullHeightGap,a<135&&(a=135),t.elem.css("height",a)),a&&(e=parseFloat(a)-(t.layHeader.outerHeight()||38),i.toolbar&&(e-=t.layTool.outerHeight()||50),i.totalRow&&(e-=t.layTotal.outerHeight()||40),i.page&&(e=e-(t.layPage.outerHeight()||41)-2),t.layMain.css("height",e))},j.prototype.getScrollWidth=function(e){var t=0;return e?t=e.offsetWidth-e.clientWidth:(e=document.createElement("div"),e.style.width="100px",e.style.height="100px",e.style.overflowY="scroll",document.body.appendChild(e),t=e.offsetWidth-e.clientWidth,document.body.removeChild(e)),t},j.prototype.scrollPatch=function(){var e=this,i=e.layMain.children("table"),a=e.layMain.width()-e.layMain.prop("clientWidth"),l=e.layMain.height()-e.layMain.prop("clientHeight"),n=(e.getScrollWidth(e.layMain[0]),i.outerWidth()-e.layMain.width()),o=function(e){if(a&&l){if(e=e.eq(0),!e.find(".layui-table-patch")[0]){var i=t('<th class="layui-table-patch"><div class="layui-table-cell"></div></th>');i.find("div").css({width:a}),e.find("tr").append(i)}}else e.find(".layui-table-patch").remove()};o(e.layHeader),o(e.layTotal);var r=e.layMain.height(),d=r-l;e.layFixed.find(b).css("height",i.height()>d?d:"auto"),e.layFixRight[n>0?"removeClass":"addClass"](y),e.layFixRight.css("right",a-1)},j.prototype.events=function(){var e,a=this,o=a.config,c=t("body"),u={},h=a.layHeader.find("th"),f=".layui-table-cell",p=o.elem.attr("lay-filter");a.layTool.on("click","*[lay-event]",function(e){var i=t(this),c=i.attr("lay-event"),u=function(e){var l=t(e.list),n=t('<ul class="layui-table-tool-panel"></ul>');n.html(l),i.find(".layui-table-tool-panel")[0]||i.append(n),a.renderForm(),n.on("click",function(e){layui.stope(e)}),e.done&&e.done(n,l)};switch(layui.stope(e),H.trigger("table.tool.panel.remove"),l.close(a.tipsIndex),c){case"LAYTABLE_COLS":u({list:function(){var e=[];return a.eachCols(function(t,i){i.field&&"normal"==i.type&&e.push('<li><input type="checkbox" name="'+i.field+'" data-key="'+i.key+'" data-parentkey="'+(i.parentKey||"")+'" lay-skin="primary" '+(i.hide?"":"checked")+' title="'+(i.title||i.field)+'" lay-filter="LAY_TABLE_TOOL_COLS"></li>')}),e.join("")}(),done:function(){n.on("checkbox(LAY_TABLE_TOOL_COLS)",function(e){var i=t(e.elem),l=this.checked,n=i.data("key"),r=i.data("parentkey");layui.each(o.cols,function(e,t){layui.each(t,function(t,i){if(e+"-"+t===n){var d=i.hide;i.hide=!l,a.elem.find('*[data-key="'+o.index+"-"+n+'"]')[l?"removeClass":"addClass"](y),d!=i.hide&&a.setParentCol(!l,r),a.fullSize(),a.scrollPatch(),a.setColsWidth()}})})})}});break;case"LAYTABLE_EXPORT":r.ie?l.tips("导出功能不支持 IE,请用 Chrome 等高级浏览器导出",this,{tips:3}):u({list:function(){return['<li data-type="csv">导出到 Csv 文件</li>','<li data-type="xls">导出到 Excel 文件</li>'].join("")}(),done:function(e,i){i.on("click",function(){var e=t(this).data("type");d.exportFile(o.id,null,e)})}});break;case"LAYTABLE_PRINT":var h=window.open("打印窗口","_blank"),f=["<style>","body{font-size: 12px; color: #666;}","table{width: 100%; border-collapse: collapse; border-spacing: 0;}","th,td{line-height: 20px; padding: 9px 15px; border: 1px solid #ccc; text-align: left; font-size: 12px; color: #666;}","a{color: #666; text-decoration:none;}","*.layui-hide{display: none}","</style>"].join(""),v=t(a.layHeader.html());v.append(a.layMain.find("table").html()),v.find("th.layui-table-patch").remove(),v.find(".layui-table-col-special").remove(),h.document.write(f+v.prop("outerHTML")),h.document.close(),h.print(),h.close()}layui.event.call(this,s,"toolbar("+p+")",t.extend({event:c,config:o},{}))}),h.on("mousemove",function(e){var i=t(this),a=i.offset().left,l=e.clientX-a;i.data("unresize")||u.resizeStart||(u.allowResize=i.width()-l<=10,c.css("cursor",u.allowResize?"col-resize":""))}).on("mouseleave",function(){t(this);u.resizeStart||c.css("cursor","")}).on("mousedown",function(e){var i=t(this);if(u.allowResize){var l=i.data("key");e.preventDefault(),u.resizeStart=!0,u.offset=[e.clientX,e.clientY],a.getCssRule(l,function(e){var t=e.style.width||i.outerWidth();u.rule=e,u.ruleWidth=parseFloat(t),u.minWidth=i.data("minwidth")||o.cellMinWidth})}}),H.on("mousemove",function(t){if(u.resizeStart){if(t.preventDefault(),u.rule){var i=u.ruleWidth+t.clientX-u.offset[0];i<u.minWidth&&(i=u.minWidth),u.rule.style.width=i+"px",l.close(a.tipsIndex)}e=1}}).on("mouseup",function(t){u.resizeStart&&(u={},c.css("cursor",""),a.scrollPatch()),2===e&&(e=null)}),h.on("click",function(i){var l,n=t(this),o=n.find(L),r=o.attr("lay-sort");return o[0]&&1!==e?(l="asc"===r?"desc":"desc"===r?null:"asc",void a.sort(n,l,null,!0)):e=2}).find(L+" .layui-edge ").on("click",function(e){var i=t(this),l=i.index(),n=i.parents("th").eq(0).data("field");layui.stope(e),0===l?a.sort(n,"asc",null,!0):a.sort(n,"desc",null,!0)});var v=function(e){var l=t(this),n=l.parents("tr").eq(0).data("index"),o=a.layBody.find('tr[data-index="'+n+'"]'),r=d.cache[a.key][n];return t.extend({tr:o,data:d.clearCacheKey(r),del:function(){d.cache[a.key][n]=[],o.remove(),a.scrollPatch()},update:function(e){e=e||{},layui.each(e,function(e,l){if(e in r){var n,d=o.children('td[data-field="'+e+'"]');r[e]=l,a.eachCols(function(t,i){i.field==e&&i.templet&&(n=i.templet)}),d.children(f).html(function(){return n?function(){return"function"==typeof n?n(r):i(t(n).html()||l).render(r)}():l}()),d.data("content",l)}})}},e)};a.elem.on("click",'input[name="layTableCheckbox"]+',function(){var e=t(this).prev(),i=a.layBody.find('input[name="layTableCheckbox"]'),l=e.parents("tr").eq(0).data("index"),n=e[0].checked,o="layTableAllChoose"===e.attr("lay-filter");o?(i.each(function(e,t){t.checked=n,a.setCheckData(e,n)}),a.syncCheckAll(),a.renderForm("checkbox")):(a.setCheckData(l,n),a.syncCheckAll()),layui.event.call(this,s,"checkbox("+p+")",v.call(this,{checked:n,type:o?"all":"one"}))}),a.elem.on("click",'input[lay-type="layTableRadio"]+',function(){var e=t(this).prev(),i=e[0].checked,l=d.cache[a.key],n=e.parents("tr").eq(0).data("index");layui.each(l,function(e,t){n===e?t.LAY_CHECKED=!0:delete t.LAY_CHECKED}),a.setThisRowChecked(n),layui.event.call(this,s,"radio("+p+")",v.call(this,{checked:i}))}),a.layBody.on("mouseenter","tr",function(){var e=t(this),i=e.index();a.layBody.find("tr:eq("+i+")").addClass(N)}).on("mouseleave","tr",function(){var e=t(this),i=e.index();a.layBody.find("tr:eq("+i+")").removeClass(N)}).on("click","tr",function(){m.call(this,"row")}).on("dblclick","tr",function(){m.call(this,"rowDouble")});var m=function(e){var i=t(this);layui.event.call(this,s,e+"("+p+")",v.call(i.children("td")[0]))};a.layBody.on("change","."+S,function(){var e=t(this),i=this.value,l=e.parent().data("field"),n=e.parents("tr").eq(0).data("index"),o=d.cache[a.key][n];o[l]=i,layui.event.call(this,s,"edit("+p+")",v.call(this,{value:i,field:l}))}).on("blur","."+S,function(){var e,l=t(this),n=l.parent().data("field"),o=l.parents("tr").eq(0).data("index"),r=d.cache[a.key][o];a.eachCols(function(t,i){i.field==n&&i.templet&&(e=i.templet)}),l.siblings(f).html(function(a){return e?function(){return"function"==typeof e?e(r):i(t(e).html()||this.value).render(r)}():a}(this.value)),l.parent().data("content",this.value),l.remove()}),a.layBody.on("click","td",function(){var e=t(this),i=(e.data("field"),e.data("edit")),a=e.children(f);if(!e.data("off")&&i){var l=t('<input class="layui-input '+S+'">');return l[0].value=e.data("content")||a.text(),e.find("."+S)[0]||e.append(l),void l.focus()}}).on("mouseenter","td",function(){x.call(this)}).on("mouseleave","td",function(){x.call(this,"hide")});var g="layui-table-grid-down",x=function(e){var i=t(this),a=i.children(f);if(e)i.find(".layui-table-grid-down").remove();else if(a.prop("scrollWidth")>a.outerWidth()){if(a.find("."+g)[0])return;i.append('<div class="'+g+'"><i class="layui-icon layui-icon-down"></i></div>')}};a.layBody.on("click","."+g,function(){var e=t(this),i=e.parent(),n=i.children(f);a.tipsIndex=l.tips(['<div class="layui-table-tips-main" style="margin-top: -'+(n.height()+16)+"px;"+function(){return"sm"===o.size?"padding: 4px 15px; font-size: 12px;":"lg"===o.size?"padding: 14px 15px;":""}()+'">',n.html(),"</div>",'<i class="layui-icon layui-table-tips-c layui-icon-close"></i>'].join(""),n[0],{tips:[3,""],time:-1,anim:-1,maxWidth:r.ios||r.android?300:a.elem.width()/2,isOutAnim:!1,skin:"layui-table-tips",success:function(e,t){e.find(".layui-table-tips-c").on("click",function(){l.close(t)})}})}),a.layBody.on("click","*[lay-event]",function(){var e=t(this),i=e.parents("tr").eq(0).data("index");layui.event.call(this,s,"tool("+p+")",v.call(this,{event:e.attr("lay-event")})),a.setThisRowChecked(i)}),a.layMain.on("scroll",function(){var e=t(this),i=e.scrollLeft(),n=e.scrollTop();a.layHeader.scrollLeft(i),a.layTotal.scrollLeft(i),a.layFixed.find(b).scrollTop(n),l.close(a.tipsIndex)}),H.on("click",function(){H.trigger("table.remove.tool.panel")}),H.on("table.remove.tool.panel",function(){t(".layui-table-tool-panel").remove()}),R.on("resize",function(){a.fullSize(),a.scrollPatch(),a.setColsWidth()})},d.init=function(e,i){i=i||{};var a=this,l=t(e?'table[lay-filter="'+e+'"]':u+"[lay-data]"),n="Table element property lay-data configuration item has a syntax error: ";return l.each(function(){var a=t(this),l=a.attr("lay-data");try{l=new Function("return "+l)()}catch(r){o.error(n+l)}var c=[],s=t.extend({elem:this,cols:[],data:[],skin:a.attr("lay-skin"),size:a.attr("lay-size"),even:"string"==typeof a.attr("lay-even")},d.config,i,l);e&&a.hide(),a.find("thead>tr").each(function(e){s.cols[e]=[],t(this).children().each(function(i){var a=t(this),l=a.attr("lay-data");try{l=new Function("return "+l)()}catch(r){return o.error(n+l)}var d=t.extend({title:a.text(),colspan:a.attr("colspan")||0,rowspan:a.attr("rowspan")||0},l);d.colspan<2&&c.push(d),s.cols[e].push(d)})}),a.find("tbody>tr").each(function(e){var i=t(this),a={};i.children("td").each(function(e,i){var l=t(this),n=l.data("field");if(n)return a[n]=l.html()}),layui.each(c,function(e,t){var l=i.children("td").eq(e);a[t.field]=l.html()}),s.data[e]=a}),d.render(s)}),a},c.config={},d.eachCols=function(e,i,a){var l=c.config[e]||{},n=[],o=0;a=t.extend(!0,[],a||l.cols),layui.each(a,function(e,t){layui.each(t,function(t,i){if(i.colGroup){var l=0;o++,i.CHILD_COLS=[],layui.each(a[e+1],function(e,t){t.PARENT_COL_INDEX||l>1&&l==i.colspan||(t.PARENT_COL_INDEX=o,i.CHILD_COLS.push(t),l+=parseInt(t.colspan>1?t.colspan:1))})}i.PARENT_COL_INDEX||n.push(i)})});var r=function(e){layui.each(e||n,function(e,t){return t.CHILD_COLS?r(t.CHILD_COLS):void("function"==typeof i&&i(e,t))})};r()},d.checkStatus=function(e){var t=0,i=0,a=[],l=d.cache[e]||[];return layui.each(l,function(e,l){return l.constructor===Array?void i++:void(l[d.config.checkName]&&(t++,a.push(d.clearCacheKey(l))))}),{data:a,isAll:!!l.length&&t===l.length-i}},d.exportFile=function(e,t,i){t=t||d.clearCacheKey(d.cache[e]),i=i||"csv";var a=c.config[e]||{},l={csv:"text/csv",xls:"application/vnd.ms-excel"}[i],n=document.createElement("a");return r.ie?o.error("IE_NOT_SUPPORT_EXPORTS"):(n.href="data:"+l+";charset=utf-8,\ufeff"+encodeURIComponent(function(){var i=[],a=[];return layui.each(t,function(t,l){var n=[];"object"==typeof e?(layui.each(e,function(e,a){0==t&&i.push(a||"")}),layui.each(d.clearCacheKey(l),function(e,t){n.push(t)})):d.eachCols(e,function(e,a){a.field&&"normal"==a.type&&!a.hide&&(0==t&&i.push(a.title||""),n.push(l[a.field]))}),a.push(n.join(","))}),i.join(",")+"\r\n"+a.join("\r\n")}()),n.download=(a.title||"table_"+(a.index||""))+"."+i,document.body.appendChild(n),n.click(),void document.body.removeChild(n))},d.reload=function(e,i){var a=c.config[e];return i=i||{},a?(i.data&&i.data.constructor===Array&&delete a.data,d.render(t.extend(!0,{},a,i))):o.error("The ID option was not found in the table instance")},d.render=function(e){var t=new j(e);return c.call(t)},d.clearCacheKey=function(e){return e=t.extend({},e),delete e[d.config.checkName],delete e[d.config.indexName],e},d.init(),e(s,d)}); \ No newline at end of file +/** layui-v2.5.4 MIT License By https://www.layui.com */ + ;layui.define(["laytpl","laypage","layer","form","util"],function(e){"use strict";var t=layui.$,i=layui.laytpl,a=layui.laypage,l=layui.layer,n=layui.form,o=(layui.util,layui.hint()),r=layui.device(),d={config:{checkName:"LAY_CHECKED",indexName:"LAY_TABLE_INDEX"},cache:{},index:layui.table?layui.table.index+1e4:0,set:function(e){var i=this;return i.config=t.extend({},i.config,e),i},on:function(e,t){return layui.onevent.call(this,y,e,t)}},c=function(){var e=this,t=e.config,i=t.id||t.index;return i&&(c.that[i]=e,c.config[i]=t),{config:t,reload:function(t){e.reload.call(e,t)},setColsWidth:function(){e.setColsWidth.call(e)},resize:function(){e.resize.call(e)}}},s=function(e){var t=c.config[e];return t||o.error("The ID option was not found in the table instance"),t||null},u=function(e,a,l,n){var o=e.templet?function(){return"function"==typeof e.templet?e.templet(l):i(t(e.templet).html()||String(a)).render(l)}():a;return n?t("<div>"+o+"</div>").text():o},y="table",h=".layui-table",f="layui-hide",p="layui-none",v="layui-table-view",m=".layui-table-tool",g=".layui-table-box",b=".layui-table-init",x=".layui-table-header",k=".layui-table-body",C=".layui-table-main",w=".layui-table-fixed",T=".layui-table-fixed-l",A=".layui-table-fixed-r",L=".layui-table-total",N=".layui-table-page",S=".layui-table-sort",W="layui-table-edit",_="layui-table-hover",E=function(e){var t='{{#if(item2.colspan){}} colspan="{{item2.colspan}}"{{#} if(item2.rowspan){}} rowspan="{{item2.rowspan}}"{{#}}}';return e=e||{},['<table cellspacing="0" cellpadding="0" border="0" class="layui-table" ','{{# if(d.data.skin){ }}lay-skin="{{d.data.skin}}"{{# } }} {{# if(d.data.size){ }}lay-size="{{d.data.size}}"{{# } }} {{# if(d.data.even){ }}lay-even{{# } }}>',"<thead>","{{# layui.each(d.data.cols, function(i1, item1){ }}","<tr>","{{# layui.each(item1, function(i2, item2){ }}",'{{# if(item2.fixed && item2.fixed !== "right"){ left = true; } }}','{{# if(item2.fixed === "right"){ right = true; } }}',function(){return e.fixed&&"right"!==e.fixed?'{{# if(item2.fixed && item2.fixed !== "right"){ }}':"right"===e.fixed?'{{# if(item2.fixed === "right"){ }}':""}(),"{{# var isSort = !(item2.colGroup) && item2.sort; }}",'<th data-field="{{ item2.field||i2 }}" data-key="{{d.index}}-{{i1}}-{{i2}}" {{# if( item2.parentKey){ }}data-parentkey="{{ item2.parentKey }}"{{# } }} {{# if(item2.minWidth){ }}data-minwidth="{{item2.minWidth}}"{{# } }} '+t+' {{# if(item2.unresize || item2.colGroup){ }}data-unresize="true"{{# } }} class="{{# if(item2.hide){ }}layui-hide{{# } }}{{# if(isSort){ }} layui-unselect{{# } }}{{# if(!item2.field){ }} layui-table-col-special{{# } }}">','<div class="layui-table-cell laytable-cell-',"{{# if(item2.colGroup){ }}","group","{{# } else { }}","{{d.index}}-{{i1}}-{{i2}}",'{{# if(item2.type !== "normal"){ }}'," laytable-cell-{{ item2.type }}","{{# } }}","{{# } }}",'" {{#if(item2.align){}}align="{{item2.align}}"{{#}}}>','{{# if(item2.type === "checkbox"){ }}','<input type="checkbox" name="layTableCheckbox" lay-skin="primary" lay-filter="layTableAllChoose" {{# if(item2[d.data.checkName]){ }}checked{{# }; }}>',"{{# } else { }}",'<span>{{item2.title||""}}</span>',"{{# if(isSort){ }}",'<span class="layui-table-sort layui-inline"><i class="layui-edge layui-table-sort-asc" title="升序"></i><i class="layui-edge layui-table-sort-desc" title="降序"></i></span>',"{{# } }}","{{# } }}","</div>","</th>",e.fixed?"{{# }; }}":"","{{# }); }}","</tr>","{{# }); }}","</thead>","</table>"].join("")},z=['<table cellspacing="0" cellpadding="0" border="0" class="layui-table" ','{{# if(d.data.skin){ }}lay-skin="{{d.data.skin}}"{{# } }} {{# if(d.data.size){ }}lay-size="{{d.data.size}}"{{# } }} {{# if(d.data.even){ }}lay-even{{# } }}>',"<tbody></tbody>","</table>"].join(""),H=['<div class="layui-form layui-border-box {{d.VIEW_CLASS}}" lay-filter="LAY-table-{{d.index}}" lay-id="{{ d.data.id }}" style="{{# if(d.data.width){ }}width:{{d.data.width}}px;{{# } }} {{# if(d.data.height){ }}height:{{d.data.height}}px;{{# } }}">',"{{# if(d.data.toolbar){ }}",'<div class="layui-table-tool">','<div class="layui-table-tool-temp"></div>','<div class="layui-table-tool-self"></div>',"</div>","{{# } }}",'<div class="layui-table-box">',"{{# if(d.data.loading){ }}",'<div class="layui-table-init" style="background-color: #fff;">','<i class="layui-icon layui-icon-loading layui-anim layui-anim-rotate layui-anim-loop"></i>',"</div>","{{# } }}","{{# var left, right; }}",'<div class="layui-table-header">',E(),"</div>",'<div class="layui-table-body layui-table-main">',z,"</div>","{{# if(left){ }}",'<div class="layui-table-fixed layui-table-fixed-l">','<div class="layui-table-header">',E({fixed:!0}),"</div>",'<div class="layui-table-body">',z,"</div>","</div>","{{# }; }}","{{# if(right){ }}",'<div class="layui-table-fixed layui-table-fixed-r">','<div class="layui-table-header">',E({fixed:"right"}),'<div class="layui-table-mend"></div>',"</div>",'<div class="layui-table-body">',z,"</div>","</div>","{{# }; }}","</div>","{{# if(d.data.totalRow){ }}",'<div class="layui-table-total">','<table cellspacing="0" cellpadding="0" border="0" class="layui-table" ','{{# if(d.data.skin){ }}lay-skin="{{d.data.skin}}"{{# } }} {{# if(d.data.size){ }}lay-size="{{d.data.size}}"{{# } }} {{# if(d.data.even){ }}lay-even{{# } }}>','<tbody><tr><td><div class="layui-table-cell" style="visibility: hidden;">Total</div></td></tr></tbody>',"</table>","</div>","{{# } }}","{{# if(d.data.page){ }}",'<div class="layui-table-page">','<div id="layui-table-page{{d.index}}"></div>',"</div>","{{# } }}","<style>","{{# layui.each(d.data.cols, function(i1, item1){","layui.each(item1, function(i2, item2){ }}",".laytable-cell-{{d.index}}-{{i1}}-{{i2}}{ ","{{# if(item2.width){ }}","width: {{item2.width}}px;","{{# } }}"," }","{{# });","}); }}","</style>","</div>"].join(""),R=t(window),F=t(document),I=function(e){var i=this;i.index=++d.index,i.config=t.extend({},i.config,d.config,e),i.render()};I.prototype.config={limit:10,loading:!0,cellMinWidth:60,defaultToolbar:["filter","exports","print"],autoSort:!0,text:{none:"无数据"}},I.prototype.render=function(){var e=this,a=e.config;if(a.elem=t(a.elem),a.where=a.where||{},a.id=a.id||a.elem.attr("id")||e.index,a.request=t.extend({pageName:"page",limitName:"limit"},a.request),a.response=t.extend({statusName:"code",statusCode:0,msgName:"msg",dataName:"data",countName:"count"},a.response),"object"==typeof a.page&&(a.limit=a.page.limit||a.limit,a.limits=a.page.limits||a.limits,e.page=a.page.curr=a.page.curr||1,delete a.page.elem,delete a.page.jump),!a.elem[0])return e;a.height&&/^full-\d+$/.test(a.height)&&(e.fullHeightGap=a.height.split("-")[1],a.height=R.height()-e.fullHeightGap),e.setInit();var l=a.elem,n=l.next("."+v),o=e.elem=t(i(H).render({VIEW_CLASS:v,data:a,index:e.index}));if(a.index=e.index,e.key=a.id||a.index,n[0]&&n.remove(),l.after(o),e.layTool=o.find(m),e.layBox=o.find(g),e.layHeader=o.find(x),e.layMain=o.find(C),e.layBody=o.find(k),e.layFixed=o.find(w),e.layFixLeft=o.find(T),e.layFixRight=o.find(A),e.layTotal=o.find(L),e.layPage=o.find(N),e.renderToolbar(),e.fullSize(),a.cols.length>1){var r=e.layFixed.find(x).find("th");r.height(e.layHeader.height()-1-parseFloat(r.css("padding-top"))-parseFloat(r.css("padding-bottom")))}e.pullData(e.page),e.events()},I.prototype.initOpts=function(e){var t=this,i=(t.config,{checkbox:48,radio:48,space:15,numbers:40});e.checkbox&&(e.type="checkbox"),e.space&&(e.type="space"),e.type||(e.type="normal"),"normal"!==e.type&&(e.unresize=!0,e.width=e.width||i[e.type])},I.prototype.setInit=function(e){var t=this,i=t.config;return i.clientWidth=i.width||function(){var e=function(t){var a,l;t=t||i.elem.parent(),a=t.width();try{l="none"===t.css("display")}catch(n){}return!t[0]||a&&!l?a:e(t.parent())};return e()}(),"width"===e?i.clientWidth:void layui.each(i.cols,function(e,a){layui.each(a,function(l,n){if(!n)return void a.splice(l,1);if(n.key=e+"-"+l,n.hide=n.hide||!1,n.colGroup||n.colspan>1){var o=0;layui.each(i.cols[e+1],function(t,i){i.HAS_PARENT||o>1&&o==n.colspan||(i.HAS_PARENT=!0,i.parentKey=e+"-"+l,o+=parseInt(i.colspan>1?i.colspan:1))}),n.colGroup=!0}t.initOpts(n)})})},I.prototype.renderToolbar=function(){var e=this,a=e.config,l=['<div class="layui-inline" lay-event="add"><i class="layui-icon layui-icon-add-1"></i></div>','<div class="layui-inline" lay-event="update"><i class="layui-icon layui-icon-edit"></i></div>','<div class="layui-inline" lay-event="delete"><i class="layui-icon layui-icon-delete"></i></div>'].join(""),n=e.layTool.find(".layui-table-tool-temp");if("default"===a.toolbar)n.html(l);else if("string"==typeof a.toolbar){var o=t(a.toolbar).html()||"";o&&n.html(i(o).render(a))}var r={filter:{title:"筛选列",layEvent:"LAYTABLE_COLS",icon:"layui-icon-cols"},exports:{title:"导出",layEvent:"LAYTABLE_EXPORT",icon:"layui-icon-export"},print:{title:"打印",layEvent:"LAYTABLE_PRINT",icon:"layui-icon-print"}},d=[];"object"==typeof a.defaultToolbar&&layui.each(a.defaultToolbar,function(e,t){var i=r[t];i&&d.push('<div class="layui-inline" title="'+i.title+'" lay-event="'+i.layEvent+'"><i class="layui-icon '+i.icon+'"></i></div>')}),e.layTool.find(".layui-table-tool-self").html(d.join(""))},I.prototype.setParentCol=function(e,t){var i=this,a=i.config,l=i.layHeader.find('th[data-key="'+a.index+"-"+t+'"]'),n=parseInt(l.attr("colspan"))||0;if(l[0]){var o=t.split("-"),r=a.cols[o[0]][o[1]];e?n--:n++,l.attr("colspan",n),l[n<1?"addClass":"removeClass"](f),r.colspan=n,r.hide=n<1;var d=l.data("parentkey");d&&i.setParentCol(e,d)}},I.prototype.setColsPatch=function(){var e=this,t=e.config;layui.each(t.cols,function(t,i){layui.each(i,function(t,i){i.hide&&e.setParentCol(i.hide,i.parentKey)})})},I.prototype.setColsWidth=function(){var e=this,t=e.config,i=0,a=0,l=0,n=0,o=e.setInit("width");e.eachCols(function(e,t){t.hide||i++}),o=o-function(){return"line"===t.skin||"nob"===t.skin?2:i+1}()-e.getScrollWidth(e.layMain[0])-1;var r=function(e){layui.each(t.cols,function(i,r){layui.each(r,function(i,d){var c=0,s=d.minWidth||t.cellMinWidth;return d?void(d.colGroup||d.hide||(e?l&&l<s&&(a--,c=s):(c=d.width||0,/\d+%$/.test(c)?(c=Math.floor(parseFloat(c)/100*o),c<s&&(c=s)):c||(d.width=c=0,a++)),d.hide&&(c=0),n+=c)):void r.splice(i,1)})}),o>n&&a&&(l=(o-n)/a)};r(),r(!0),e.autoColNums=a,e.eachCols(function(i,a){var n=a.minWidth||t.cellMinWidth;a.colGroup||a.hide||(0===a.width?e.getCssRule(t.index+"-"+a.key,function(e){e.style.width=Math.floor(l>=n?l:n)+"px"}):/\d+%$/.test(a.width)&&e.getCssRule(t.index+"-"+a.key,function(e){e.style.width=Math.floor(parseFloat(a.width)/100*o)+"px"}))});var d=e.layMain.width()-e.getScrollWidth(e.layMain[0])-e.layMain.children("table").outerWidth();if(e.autoColNums&&d>=-i&&d<=i){var c=function(t){var i;return t=t||e.layHeader.eq(0).find("thead th:last-child"),i=t.data("field"),!i&&t.prev()[0]?c(t.prev()):t},s=c(),u=s.data("key");e.getCssRule(u,function(t){var i=t.style.width||s.outerWidth();t.style.width=parseFloat(i)+d+"px",e.layMain.height()-e.layMain.prop("clientHeight")>0&&(t.style.width=parseFloat(t.style.width)-1+"px")})}e.loading(!0)},I.prototype.resize=function(){var e=this;e.fullSize(),e.setColsWidth(),e.scrollPatch()},I.prototype.reload=function(e){var i=this;e=e||{},delete i.haveInit,e.data&&e.data.constructor===Array&&delete i.config.data,i.config=t.extend(!0,{},i.config,e),i.render()},I.prototype.errorView=function(e){var i=this,a=i.layMain.find("."+p),l=t('<div class="'+p+'">'+(e||"Error")+"</div>");a[0]&&(i.layNone.remove(),a.remove()),i.layFixed.addClass(f),i.layMain.find("tbody").html(""),i.layMain.append(i.layNone=l),d.cache[i.key]=[]},I.prototype.page=1,I.prototype.pullData=function(e){var i=this,a=i.config,l=a.request,n=a.response,o=function(){"object"==typeof a.initSort&&i.sort(a.initSort.field,a.initSort.type)};if(i.startTime=(new Date).getTime(),a.url){var r={};r[l.pageName]=e,r[l.limitName]=a.limit;var d=t.extend(r,a.where);a.contentType&&0==a.contentType.indexOf("application/json")&&(d=JSON.stringify(d)),i.loading(),t.ajax({type:a.method||"get",url:a.url,contentType:a.contentType,data:d,dataType:"json",headers:a.headers||{},success:function(t){"function"==typeof a.parseData&&(t=a.parseData(t)||t),t[n.statusName]!=n.statusCode?(i.renderForm(),i.errorView(t[n.msgName]||'返回的数据不符合规范,正确的成功状态码应为:"'+n.statusName+'": '+n.statusCode)):(i.renderData(t,e,t[n.countName]),o(),a.time=(new Date).getTime()-i.startTime+" ms"),i.setColsWidth(),"function"==typeof a.done&&a.done(t,e,t[n.countName])},error:function(e,t){i.errorView("数据接口请求异常:"+t),i.renderForm(),i.setColsWidth()}})}else if(a.data&&a.data.constructor===Array){var c={},s=e*a.limit-a.limit;c[n.dataName]=a.data.concat().splice(s,a.limit),c[n.countName]=a.data.length,i.renderData(c,e,c[n.countName]),o(),i.setColsWidth(),"function"==typeof a.done&&a.done(c,e,c[n.countName])}},I.prototype.eachCols=function(e){var t=this;return d.eachCols(null,e,t.config.cols),t},I.prototype.renderData=function(e,n,o,r){var c=this,s=c.config,y=e[s.response.dataName]||[],h=[],v=[],m=[],g=function(){var e;return!r&&c.sortKey?c.sort(c.sortKey.field,c.sortKey.sort,!0):(layui.each(y,function(a,l){var o=[],y=[],p=[],g=a+s.limit*(n-1)+1;0!==l.length&&(r||(l[d.config.indexName]=a),c.eachCols(function(n,r){var c=r.field||n,h=s.index+"-"+r.key,v=l[c];if(void 0!==v&&null!==v||(v=""),!r.colGroup){var m=['<td data-field="'+c+'" data-key="'+h+'" '+function(){var e=[];return r.edit&&e.push('data-edit="'+r.edit+'"'),r.align&&e.push('align="'+r.align+'"'),r.templet&&e.push('data-content="'+v+'"'),r.toolbar&&e.push('data-off="true"'),r.event&&e.push('lay-event="'+r.event+'"'),r.style&&e.push('style="'+r.style+'"'),r.minWidth&&e.push('data-minwidth="'+r.minWidth+'"'),e.join(" ")}()+' class="'+function(){var e=[];return r.hide&&e.push(f),r.field||e.push("layui-table-col-special"),e.join(" ")}()+'">','<div class="layui-table-cell laytable-cell-'+function(){return"normal"===r.type?h:h+" laytable-cell-"+r.type}()+'">'+function(){var n=t.extend(!0,{LAY_INDEX:g},l),o=d.config.checkName;switch(r.type){case"checkbox":return'<input type="checkbox" name="layTableCheckbox" lay-skin="primary" '+function(){return r[o]?(l[o]=r[o],r[o]?"checked":""):n[o]?"checked":""}()+">";case"radio":return n[o]&&(e=a),'<input type="radio" name="layTableRadio_'+s.index+'" '+(n[o]?"checked":"")+' lay-type="layTableRadio">';case"numbers":return g}return r.toolbar?i(t(r.toolbar).html()||"").render(n):u(r,v,n)}(),"</div></td>"].join("");o.push(m),r.fixed&&"right"!==r.fixed&&y.push(m),"right"===r.fixed&&p.push(m)}}),h.push('<tr data-index="'+a+'">'+o.join("")+"</tr>"),v.push('<tr data-index="'+a+'">'+y.join("")+"</tr>"),m.push('<tr data-index="'+a+'">'+p.join("")+"</tr>"))}),c.layBody.scrollTop(0),c.layMain.find("."+p).remove(),c.layMain.find("tbody").html(h.join("")),c.layFixLeft.find("tbody").html(v.join("")),c.layFixRight.find("tbody").html(m.join("")),c.renderForm(),"number"==typeof e&&c.setThisRowChecked(e),c.syncCheckAll(),c.haveInit?c.scrollPatch():setTimeout(function(){c.scrollPatch()},50),c.haveInit=!0,l.close(c.tipsIndex),s.HAS_SET_COLS_PATCH||c.setColsPatch(),void(s.HAS_SET_COLS_PATCH=!0))};return d.cache[c.key]=y,c.layPage[0==o||0===y.length&&1==n?"addClass":"removeClass"](f),r?g():0===y.length?(c.renderForm(),c.errorView(s.text.none)):(c.layFixed.removeClass(f),g(),c.renderTotal(y),void(s.page&&(s.page=t.extend({elem:"layui-table-page"+s.index,count:o,limit:s.limit,limits:s.limits||[10,20,30,40,50,60,70,80,90],groups:3,layout:["prev","page","next","skip","count","limit"],prev:'<i class="layui-icon"></i>',next:'<i class="layui-icon"></i>',jump:function(e,t){t||(c.page=e.curr,s.limit=e.limit,c.pullData(e.curr))}},s.page),s.page.count=o,a.render(s.page))))},I.prototype.renderTotal=function(e){var t=this,i=t.config,a={};if(i.totalRow){layui.each(e,function(e,i){0!==i.length&&t.eachCols(function(e,t){var l=t.field||e,n=i[l];t.totalRow&&(a[l]=(a[l]||0)+(parseFloat(n)||0))})});var l=[];t.eachCols(function(e,t){var n=t.field||e,o=['<td data-field="'+n+'" data-key="'+i.index+"-"+t.key+'" '+function(){var e=[];return t.align&&e.push('align="'+t.align+'"'),t.style&&e.push('style="'+t.style+'"'),t.minWidth&&e.push('data-minwidth="'+t.minWidth+'"'),e.join(" ")}()+' class="'+function(){var e=[];return t.hide&&e.push(f),t.field||e.push("layui-table-col-special"),e.join(" ")}()+'">','<div class="layui-table-cell laytable-cell-'+function(){var e=i.index+"-"+t.key;return"normal"===t.type?e:e+" laytable-cell-"+t.type}()+'">'+function(){var e=t.totalRowText||"";return t.totalRow?parseFloat(a[n]).toFixed(2)||e:e}(),"</div></td>"].join("");l.push(o)}),t.layTotal.find("tbody").html("<tr>"+l.join("")+"</tr>")}},I.prototype.getColElem=function(e,t){var i=this,a=i.config;return e.eq(0).find(".laytable-cell-"+(a.index+"-"+t)+":eq(0)")},I.prototype.renderForm=function(e){n.render(e,"LAY-table-"+this.index)},I.prototype.setThisRowChecked=function(e){var t=this,i=(t.config,"layui-table-click"),a=t.layBody.find('tr[data-index="'+e+'"]');a.addClass(i).siblings("tr").removeClass(i)},I.prototype.sort=function(e,i,a,l){var n,r,c=this,s={},u=c.config,h=u.elem.attr("lay-filter"),f=d.cache[c.key];"string"==typeof e&&c.layHeader.find("th").each(function(i,a){var l=t(this),o=l.data("field");if(o===e)return e=l,n=o,!1});try{var n=n||e.data("field"),p=e.data("key");if(c.sortKey&&!a&&n===c.sortKey.field&&i===c.sortKey.sort)return;var v=c.layHeader.find("th .laytable-cell-"+p).find(S);c.layHeader.find("th").find(S).removeAttr("lay-sort"),v.attr("lay-sort",i||null),c.layFixed.find("th")}catch(m){return o.error("Table modules: Did not match to field")}c.sortKey={field:n,sort:i},u.autoSort&&("asc"===i?r=layui.sort(f,n):"desc"===i?r=layui.sort(f,n,!0):(r=layui.sort(f,d.config.indexName),delete c.sortKey)),s[u.response.dataName]=r||f,c.renderData(s,c.page,c.count,!0),l&&layui.event.call(e,y,"sort("+h+")",{field:n,type:i})},I.prototype.loading=function(e){var i=this,a=i.config;a.loading&&(e?(i.layInit&&i.layInit.remove(),delete i.layInit,i.layBox.find(b).remove()):(i.layInit=t(['<div class="layui-table-init">','<i class="layui-icon layui-icon-loading layui-anim layui-anim-rotate layui-anim-loop"></i>',"</div>"].join("")),i.layBox.append(i.layInit)))},I.prototype.setCheckData=function(e,t){var i=this,a=i.config,l=d.cache[i.key];l[e]&&l[e].constructor!==Array&&(l[e][a.checkName]=t)},I.prototype.syncCheckAll=function(){var e=this,t=e.config,i=e.layHeader.find('input[name="layTableCheckbox"]'),a=function(i){return e.eachCols(function(e,a){"checkbox"===a.type&&(a[t.checkName]=i)}),i};i[0]&&(d.checkStatus(e.key).isAll?(i[0].checked||(i.prop("checked",!0),e.renderForm("checkbox")),a(!0)):(i[0].checked&&(i.prop("checked",!1),e.renderForm("checkbox")),a(!1)))},I.prototype.getCssRule=function(e,t){var i=this,a=i.elem.find("style")[0],l=a.sheet||a.styleSheet||{},n=l.cssRules||l.rules;layui.each(n,function(i,a){if(a.selectorText===".laytable-cell-"+e)return t(a),!0})},I.prototype.fullSize=function(){var e,t=this,i=t.config,a=i.height;t.fullHeightGap&&(a=R.height()-t.fullHeightGap,a<135&&(a=135),t.elem.css("height",a)),a&&(e=parseFloat(a)-(t.layHeader.outerHeight()||38),i.toolbar&&(e-=t.layTool.outerHeight()||50),i.totalRow&&(e-=t.layTotal.outerHeight()||40),i.page&&(e-=t.layPage.outerHeight()||41),t.layMain.css("height",e-2))},I.prototype.getScrollWidth=function(e){var t=0;return e?t=e.offsetWidth-e.clientWidth:(e=document.createElement("div"),e.style.width="100px",e.style.height="100px",e.style.overflowY="scroll",document.body.appendChild(e),t=e.offsetWidth-e.clientWidth,document.body.removeChild(e)),t},I.prototype.scrollPatch=function(){var e=this,i=e.layMain.children("table"),a=e.layMain.width()-e.layMain.prop("clientWidth"),l=e.layMain.height()-e.layMain.prop("clientHeight"),n=(e.getScrollWidth(e.layMain[0]),i.outerWidth()-e.layMain.width()),o=function(e){if(a&&l){if(e=e.eq(0),!e.find(".layui-table-patch")[0]){var i=t('<th class="layui-table-patch"><div class="layui-table-cell"></div></th>');i.find("div").css({width:a}),e.find("tr").append(i)}}else e.find(".layui-table-patch").remove()};o(e.layHeader),o(e.layTotal);var r=e.layMain.height(),d=r-l;e.layFixed.find(k).css("height",i.height()>=d?d:"auto"),e.layFixRight[n>0?"removeClass":"addClass"](f),e.layFixRight.css("right",a-1)},I.prototype.events=function(){var e,a=this,o=a.config,c=t("body"),s={},u=a.layHeader.find("th"),h=".layui-table-cell",p=o.elem.attr("lay-filter");a.layTool.on("click","*[lay-event]",function(e){var i=t(this),c=i.attr("lay-event"),s=function(e){var l=t(e.list),n=t('<ul class="layui-table-tool-panel"></ul>');n.html(l),o.height&&n.css("max-height",o.height-(a.layTool.outerHeight()||50)),i.find(".layui-table-tool-panel")[0]||i.append(n),a.renderForm(),n.on("click",function(e){layui.stope(e)}),e.done&&e.done(n,l)};switch(layui.stope(e),F.trigger("table.tool.panel.remove"),l.close(a.tipsIndex),c){case"LAYTABLE_COLS":s({list:function(){var e=[];return a.eachCols(function(t,i){i.field&&"normal"==i.type&&e.push('<li><input type="checkbox" name="'+i.field+'" data-key="'+i.key+'" data-parentkey="'+(i.parentKey||"")+'" lay-skin="primary" '+(i.hide?"":"checked")+' title="'+(i.title||i.field)+'" lay-filter="LAY_TABLE_TOOL_COLS"></li>')}),e.join("")}(),done:function(){n.on("checkbox(LAY_TABLE_TOOL_COLS)",function(e){var i=t(e.elem),l=this.checked,n=i.data("key"),r=i.data("parentkey");layui.each(o.cols,function(e,t){layui.each(t,function(t,i){if(e+"-"+t===n){var d=i.hide;i.hide=!l,a.elem.find('*[data-key="'+o.index+"-"+n+'"]')[l?"removeClass":"addClass"](f),d!=i.hide&&a.setParentCol(!l,r),a.resize()}})})})}});break;case"LAYTABLE_EXPORT":r.ie?l.tips("导出功能不支持 IE,请用 Chrome 等高级浏览器导出",this,{tips:3}):s({list:function(){return['<li data-type="csv">导出到 Csv 文件</li>','<li data-type="xls">导出到 Excel 文件</li>'].join("")}(),done:function(e,i){i.on("click",function(){var e=t(this).data("type");d.exportFile(o.id,null,e)})}});break;case"LAYTABLE_PRINT":var u=window.open("打印窗口","_blank"),h=["<style>","body{font-size: 12px; color: #666;}","table{width: 100%; border-collapse: collapse; border-spacing: 0;}","th,td{line-height: 20px; padding: 9px 15px; border: 1px solid #ccc; text-align: left; font-size: 12px; color: #666;}","a{color: #666; text-decoration:none;}","*.layui-hide{display: none}","</style>"].join(""),v=t(a.layHeader.html());v.append(a.layMain.find("table").html()),v.append(a.layTotal.find("table").html()),v.find("th.layui-table-patch").remove(),v.find(".layui-table-col-special").remove(),u.document.write(h+v.prop("outerHTML")),u.document.close(),u.print(),u.close()}layui.event.call(this,y,"toolbar("+p+")",t.extend({event:c,config:o},{}))}),u.on("mousemove",function(e){var i=t(this),a=i.offset().left,l=e.clientX-a;i.data("unresize")||s.resizeStart||(s.allowResize=i.width()-l<=10,c.css("cursor",s.allowResize?"col-resize":""))}).on("mouseleave",function(){t(this);s.resizeStart||c.css("cursor","")}).on("mousedown",function(e){var i=t(this);if(s.allowResize){var l=i.data("key");e.preventDefault(),s.resizeStart=!0,s.offset=[e.clientX,e.clientY],a.getCssRule(l,function(e){var t=e.style.width||i.outerWidth();s.rule=e,s.ruleWidth=parseFloat(t),s.minWidth=i.data("minwidth")||o.cellMinWidth})}}),F.on("mousemove",function(t){if(s.resizeStart){if(t.preventDefault(),s.rule){var i=s.ruleWidth+t.clientX-s.offset[0];i<s.minWidth&&(i=s.minWidth),s.rule.style.width=i+"px",l.close(a.tipsIndex)}e=1}}).on("mouseup",function(t){s.resizeStart&&(s={},c.css("cursor",""),a.scrollPatch()),2===e&&(e=null)}),u.on("click",function(i){var l,n=t(this),o=n.find(S),r=o.attr("lay-sort");return o[0]&&1!==e?(l="asc"===r?"desc":"desc"===r?null:"asc",void a.sort(n,l,null,!0)):e=2}).find(S+" .layui-edge ").on("click",function(e){var i=t(this),l=i.index(),n=i.parents("th").eq(0).data("field");layui.stope(e),0===l?a.sort(n,"asc",null,!0):a.sort(n,"desc",null,!0)});var v=function(e){var l=t(this),n=l.parents("tr").eq(0).data("index"),o=a.layBody.find('tr[data-index="'+n+'"]'),r=d.cache[a.key]||[];return r=r[n]||{},t.extend({tr:o,data:d.clearCacheKey(r),del:function(){d.cache[a.key][n]=[],o.remove(),a.scrollPatch()},update:function(e){e=e||{},layui.each(e,function(e,l){if(e in r){var n,d=o.children('td[data-field="'+e+'"]');r[e]=l,a.eachCols(function(t,i){i.field==e&&i.templet&&(n=i.templet)}),d.children(h).html(function(){return n?function(){return"function"==typeof n?n(r):i(t(n).html()||l).render(r)}():l}()),d.data("content",l)}})}},e)};a.elem.on("click",'input[name="layTableCheckbox"]+',function(){var e=t(this).prev(),i=a.layBody.find('input[name="layTableCheckbox"]'),l=e.parents("tr").eq(0).data("index"),n=e[0].checked,o="layTableAllChoose"===e.attr("lay-filter");o?(i.each(function(e,t){t.checked=n,a.setCheckData(e,n)}),a.syncCheckAll(),a.renderForm("checkbox")):(a.setCheckData(l,n),a.syncCheckAll()),layui.event.call(e[0],y,"checkbox("+p+")",v.call(e[0],{checked:n,type:o?"all":"one"}))}),a.elem.on("click",'input[lay-type="layTableRadio"]+',function(){var e=t(this).prev(),i=e[0].checked,l=d.cache[a.key],n=e.parents("tr").eq(0).data("index");layui.each(l,function(e,t){n===e?t.LAY_CHECKED=!0:delete t.LAY_CHECKED}),a.setThisRowChecked(n),layui.event.call(this,y,"radio("+p+")",v.call(this,{checked:i}))}),a.layBody.on("mouseenter","tr",function(){var e=t(this),i=e.index();e.data("off")||a.layBody.find("tr:eq("+i+")").addClass(_)}).on("mouseleave","tr",function(){var e=t(this),i=e.index();e.data("off")||a.layBody.find("tr:eq("+i+")").removeClass(_)}).on("click","tr",function(){m.call(this,"row")}).on("dblclick","tr",function(){m.call(this,"rowDouble")});var m=function(e){var i=t(this);i.data("off")||layui.event.call(this,y,e+"("+p+")",v.call(i.children("td")[0]))};a.layBody.on("change","."+W,function(){var e=t(this),i=this.value,l=e.parent().data("field"),n=e.parents("tr").eq(0).data("index"),o=d.cache[a.key][n];o[l]=i,layui.event.call(this,y,"edit("+p+")",v.call(this,{value:i,field:l}))}).on("blur","."+W,function(){var e,l=t(this),n=this,o=l.parent().data("field"),r=l.parents("tr").eq(0).data("index"),c=d.cache[a.key][r];a.eachCols(function(t,i){i.field==o&&i.templet&&(e=i.templet)}),l.siblings(h).html(function(a){return e?function(){return"function"==typeof e?e(c):i(t(e).html()||n.value).render(c)}():a}(n.value)),l.parent().data("content",n.value),l.remove()}),a.layBody.on("click","td",function(e){var i=t(this),a=(i.data("field"),i.data("edit")),l=i.children(h);if(!i.data("off")&&a){var n=t('<input class="layui-input '+W+'">');return n[0].value=i.data("content")||l.text(),i.find("."+W)[0]||i.append(n),n.focus(),void layui.stope(e)}}).on("mouseenter","td",function(){b.call(this)}).on("mouseleave","td",function(){b.call(this,"hide")});var g="layui-table-grid-down",b=function(e){var i=t(this),a=i.children(h);if(!i.data("off"))if(e)i.find(".layui-table-grid-down").remove();else if(a.prop("scrollWidth")>a.outerWidth()){if(a.find("."+g)[0])return;i.append('<div class="'+g+'"><i class="layui-icon layui-icon-down"></i></div>')}};a.layBody.on("click","."+g,function(e){var i=t(this),n=i.parent(),d=n.children(h);a.tipsIndex=l.tips(['<div class="layui-table-tips-main" style="margin-top: -'+(d.height()+16)+"px;"+function(){return"sm"===o.size?"padding: 4px 15px; font-size: 12px;":"lg"===o.size?"padding: 14px 15px;":""}()+'">',d.html(),"</div>",'<i class="layui-icon layui-table-tips-c layui-icon-close"></i>'].join(""),d[0],{tips:[3,""],time:-1,anim:-1,maxWidth:r.ios||r.android?300:a.elem.width()/2,isOutAnim:!1,skin:"layui-table-tips",success:function(e,t){e.find(".layui-table-tips-c").on("click",function(){l.close(t)})}}),layui.stope(e)}),a.layBody.on("click","*[lay-event]",function(){var e=t(this),i=e.parents("tr").eq(0).data("index");layui.event.call(this,y,"tool("+p+")",v.call(this,{event:e.attr("lay-event")})),a.setThisRowChecked(i)}),a.layMain.on("scroll",function(){var e=t(this),i=e.scrollLeft(),n=e.scrollTop();a.layHeader.scrollLeft(i),a.layTotal.scrollLeft(i),a.layFixed.find(k).scrollTop(n),l.close(a.tipsIndex)}),F.on("click",function(){F.trigger("table.remove.tool.panel")}),F.on("table.remove.tool.panel",function(){t(".layui-table-tool-panel").remove()}),R.on("resize",function(){a.resize()})},d.init=function(e,i){i=i||{};var a=this,l=t(e?'table[lay-filter="'+e+'"]':h+"[lay-data]"),n="Table element property lay-data configuration item has a syntax error: ";return l.each(function(){var a=t(this),l=a.attr("lay-data");try{l=new Function("return "+l)()}catch(r){o.error(n+l)}var c=[],s=t.extend({elem:this,cols:[],data:[],skin:a.attr("lay-skin"),size:a.attr("lay-size"),even:"string"==typeof a.attr("lay-even")},d.config,i,l);e&&a.hide(),a.find("thead>tr").each(function(e){s.cols[e]=[],t(this).children().each(function(i){var a=t(this),l=a.attr("lay-data");try{l=new Function("return "+l)()}catch(r){return o.error(n+l)}var d=t.extend({title:a.text(),colspan:a.attr("colspan")||0,rowspan:a.attr("rowspan")||0},l);d.colspan<2&&c.push(d),s.cols[e].push(d)})}),a.find("tbody>tr").each(function(e){var i=t(this),a={};i.children("td").each(function(e,i){var l=t(this),n=l.data("field");if(n)return a[n]=l.html()}),layui.each(c,function(e,t){var l=i.children("td").eq(e);a[t.field]=l.html()}),s.data[e]=a}),d.render(s)}),a},c.that={},c.config={},d.eachCols=function(e,i,a){var l=c.config[e]||{},n=[],o=0;a=t.extend(!0,[],a||l.cols),layui.each(a,function(e,t){layui.each(t,function(t,i){if(i.colGroup){var l=0;o++,i.CHILD_COLS=[],layui.each(a[e+1],function(e,t){t.PARENT_COL_INDEX||l>1&&l==i.colspan||(t.PARENT_COL_INDEX=o,i.CHILD_COLS.push(t),l+=parseInt(t.colspan>1?t.colspan:1))})}i.PARENT_COL_INDEX||n.push(i)})});var r=function(e){layui.each(e||n,function(e,t){return t.CHILD_COLS?r(t.CHILD_COLS):void("function"==typeof i&&i(e,t))})};r()},d.checkStatus=function(e){var t=0,i=0,a=[],l=d.cache[e]||[];return layui.each(l,function(e,l){return l.constructor===Array?void i++:void(l[d.config.checkName]&&(t++,a.push(d.clearCacheKey(l))))}),{data:a,isAll:!!l.length&&t===l.length-i}},d.exportFile=function(e,t,i){t=t||d.clearCacheKey(d.cache[e]),i=i||"csv";var a=c.config[e]||{},l={csv:"text/csv",xls:"application/vnd.ms-excel"}[i],n=document.createElement("a");return r.ie?o.error("IE_NOT_SUPPORT_EXPORTS"):(n.href="data:"+l+";charset=utf-8,\ufeff"+encodeURIComponent(function(){var i=[],a=[];return layui.each(t,function(t,l){var n=[];"object"==typeof e?(layui.each(e,function(e,a){0==t&&i.push(a||"")}),layui.each(d.clearCacheKey(l),function(e,t){n.push('"'+(t||"")+'"')})):d.eachCols(e,function(e,a){a.field&&"normal"==a.type&&!a.hide&&(0==t&&i.push(a.title||""),n.push('"'+u(a,l[a.field],l,"text")+'"'))}),a.push(n.join(","))}),i.join(",")+"\r\n"+a.join("\r\n")}()),n.download=(a.title||"table_"+(a.index||""))+"."+i,document.body.appendChild(n),n.click(),void document.body.removeChild(n))},d.resize=function(e){if(e){var t=s(e);if(!t)return;c.that[e].resize()}else layui.each(c.that,function(){this.resize()})},d.reload=function(e,t){var i=s(e);if(i){var a=c.that[e];return a.reload(t),c.call(a)}},d.render=function(e){var t=new I(e);return c.call(t)},d.clearCacheKey=function(e){return e=t.extend({},e),delete e[d.config.checkName],delete e[d.config.indexName],e},d.init(),e(y,d)}); \ No newline at end of file diff --git a/public/static/plug/layui/lay/modules/transfer.js b/public/static/plug/layui/lay/modules/transfer.js new file mode 100644 index 00000000..3d190124 --- /dev/null +++ b/public/static/plug/layui/lay/modules/transfer.js @@ -0,0 +1,2 @@ +/** layui-v2.5.4 MIT License By https://www.layui.com */ + ;layui.define(["laytpl","form"],function(e){"use strict";var a=layui.$,t=layui.laytpl,n=layui.form,i="transfer",l={config:{},index:layui[i]?layui[i].index+1e4:0,set:function(e){var t=this;return t.config=a.extend({},t.config,e),t},on:function(e,a){return layui.onevent.call(this,i,e,a)}},r=function(){var e=this,a=e.config,t=a.id||e.index;return r.that[t]=e,r.config[t]=a,{config:a,reload:function(a){e.reload.call(e,a)},getData:function(){return e.getData.call(e)}}},c="layui-hide",o="layui-btn-disabled",d="layui-none",s="layui-transfer-box",u="layui-transfer-header",h="layui-transfer-search",f="layui-transfer-active",y="layui-transfer-data",p=function(e){return e=e||{},['<div class="layui-transfer-box" data-index="'+e.index+'">','<div class="layui-transfer-header">','<input type="checkbox" name="'+e.checkAllName+'" lay-filter="layTransferCheckbox" lay-type="all" lay-skin="primary" title="{{ d.data.title['+e.index+"] || 'list"+(e.index+1)+"' }}\">","</div>","{{# if(d.data.showSearch){ }}",'<div class="layui-transfer-search">','<i class="layui-icon layui-icon-search"></i>','<input type="input" class="layui-input" placeholder="关键词搜索">',"</div>","{{# } }}",'<ul class="layui-transfer-data"></ul>',"</div>"].join("")},v=['<div class="layui-transfer layui-form layui-border-box" lay-filter="LAY-transfer-{{ d.index }}">',p({index:0,checkAllName:"layTransferLeftCheckAll"}),'<div class="layui-transfer-active">','<button type="button" class="layui-btn layui-btn-sm layui-btn-primary layui-btn-disabled" data-index="0">','<i class="layui-icon layui-icon-next"></i>',"</button>",'<button type="button" class="layui-btn layui-btn-sm layui-btn-primary layui-btn-disabled" data-index="1">','<i class="layui-icon layui-icon-prev"></i>',"</button>","</div>",p({index:1,checkAllName:"layTransferRightCheckAll"}),"</div>"].join(""),x=function(e){var t=this;t.index=++l.index,t.config=a.extend({},t.config,l.config,e),t.render()};x.prototype.config={title:["列表一","列表二"],width:200,height:360,data:[],value:[],showSearch:!1,id:"",text:{none:"无数据",searchNone:"无匹配数据"}},x.prototype.reload=function(e){var t=this;layui.each(e,function(e,a){a.constructor===Array&&delete t.config[e]}),t.config=a.extend(!0,{},t.config,e),t.render()},x.prototype.render=function(){var e=this,n=e.config,i=e.elem=a(t(v).render({data:n,index:e.index})),l=n.elem=a(n.elem);l[0]&&(n.data=n.data||[],n.value=n.value||[],e.key=n.id||e.index,l.html(e.elem),e.layBox=e.elem.find("."+s),e.layHeader=e.elem.find("."+u),e.laySearch=e.elem.find("."+h),e.layData=i.find("."+y),e.layBtn=i.find("."+f+" .layui-btn"),e.layBox.css({width:n.width,height:n.height}),e.layData.css({height:function(){return n.height-e.layHeader.outerHeight()-e.laySearch.outerHeight()-2}()}),e.renderData(),e.events())},x.prototype.renderData=function(){var e=this,a=(e.config,[{checkName:"layTransferLeftCheck",views:[]},{checkName:"layTransferRightCheck",views:[]}]);e.parseData(function(e){var t=e.selected?1:0,n=["<li>",'<input type="checkbox" name="'+a[t].checkName+'" lay-skin="primary" lay-filter="layTransferCheckbox" title="'+e.title+'"'+(e.disabled?" disabled":"")+(e.checked?" checked":"")+' value="'+e.value+'">',"</li>"].join("");a[t].views.push(n),delete e.selected}),e.layData.eq(0).html(a[0].views.join("")),e.layData.eq(1).html(a[1].views.join("")),e.renderCheckBtn()},x.prototype.renderForm=function(e){n.render(e,"LAY-transfer-"+this.index)},x.prototype.renderCheckBtn=function(e){var t=this,n=t.config;e=e||{},t.layBox.each(function(i){var l=a(this),r=l.find("."+y),d=l.find("."+u).find('input[type="checkbox"]'),s=r.find('input[type="checkbox"]'),h=0,f=!1;if(s.each(function(){var e=a(this).data("hide");(this.checked||this.disabled||e)&&h++,this.checked&&!e&&(f=!0)}),d.prop("checked",f&&h===s.length),t.layBtn.eq(i)[f?"removeClass":"addClass"](o),!e.stopNone){var p=r.children("li:not(."+c+")").length;t.noneView(r,p?"":n.text.none)}}),t.renderForm("checkbox")},x.prototype.noneView=function(e,t){var n=a('<p class="layui-none">'+(t||"")+"</p>");e.find("."+d)[0]&&e.find("."+d).remove(),t.replace(/\s/g,"")&&e.append(n)},x.prototype.setValue=function(){var e=this,t=e.config,n=[];return e.layBox.eq(1).find("."+y+' input[type="checkbox"]').each(function(){var e=a(this).data("hide");e||n.push(this.value)}),t.value=n,e},x.prototype.parseData=function(e){var t=this,n=t.config,i=[];return layui.each(n.data,function(t,l){l=("function"==typeof n.parseData?n.parseData(l):l)||l,i.push(l=a.extend({},l)),layui.each(n.value,function(e,a){a==l.value&&(l.selected=!0)}),e&&e(l)}),n.data=i,t},x.prototype.getData=function(e){var a=this,t=a.config,n=[];return layui.each(e||t.value,function(e,a){layui.each(t.data,function(e,t){delete t.selected,a==t.value&&n.push(t)})}),n},x.prototype.events=function(){var e=this,t=e.config;e.elem.on("click",'input[lay-filter="layTransferCheckbox"]+',function(){var t=a(this).prev(),n=t[0].checked,i=t.parents("."+s).eq(0).find("."+y);t[0].disabled||("all"===t.attr("lay-type")&&i.find('input[type="checkbox"]').each(function(){this.disabled||(this.checked=n)}),e.renderCheckBtn({stopNone:!0}))}),e.layBtn.on("click",function(){var n=a(this),i=n.data("index"),l=e.layBox.eq(i),r=[];if(!n.hasClass(o)){e.layBox.eq(i).each(function(t){var n=a(this),i=n.find("."+y);i.children("li").each(function(){var t=a(this),n=t.find('input[type="checkbox"]'),i=n.data("hide");n[0].checked&&!i&&(n[0].checked=!1,l.siblings("."+s).find("."+y).append(t.clone()),t.remove(),r.push(n[0].value)),e.setValue()})}),e.renderCheckBtn();var c=l.siblings("."+s).find("."+h+" input");""===c.val()||c.trigger("keyup"),t.onchange&&t.onchange(e.getData(r),i)}}),e.laySearch.find("input").on("keyup",function(){var n=this.value,i=a(this).parents("."+h).eq(0).siblings("."+y),l=i.children("li");l.each(function(){var e=a(this),t=e.find('input[type="checkbox"]'),i=t[0].title.indexOf(n)!==-1;e[i?"removeClass":"addClass"](c),t.data("hide",!i)}),e.renderCheckBtn();var r=l.length===i.children("li."+c).length;e.noneView(i,r?t.text.searchNone:"")})},r.that={},r.config={},l.reload=function(e,a){var t=r.that[e];return t.reload(a),r.call(t)},l.getData=function(e){var a=r.that[e];return a.getData()},l.render=function(e){var a=new x(e);return r.call(a)},e(i,l)}); \ No newline at end of file diff --git a/public/static/plug/layui/lay/modules/tree.js b/public/static/plug/layui/lay/modules/tree.js index af9ca315..07d3a9f9 100755 --- a/public/static/plug/layui/lay/modules/tree.js +++ b/public/static/plug/layui/lay/modules/tree.js @@ -1,2 +1,2 @@ -/** layui-v2.4.3 MIT License By https://www.layui.com */ - ;layui.define("jquery",function(e){"use strict";var o=layui.$,a=layui.hint(),i="layui-tree-enter",r=function(e){this.options=e},t={arrow:["",""],checkbox:["",""],radio:["",""],branch:["",""],leaf:""};r.prototype.init=function(e){var o=this;e.addClass("layui-box layui-tree"),o.options.skin&&e.addClass("layui-tree-skin-"+o.options.skin),o.tree(e),o.on(e)},r.prototype.tree=function(e,a){var i=this,r=i.options,n=a||r.nodes;layui.each(n,function(a,n){var l=n.children&&n.children.length>0,c=o('<ul class="'+(n.spread?"layui-show":"")+'"></ul>'),s=o(["<li "+(n.spread?'data-spread="'+n.spread+'"':"")+">",function(){return l?'<i class="layui-icon layui-tree-spread">'+(n.spread?t.arrow[1]:t.arrow[0])+"</i>":""}(),function(){return r.check?'<i class="layui-icon layui-tree-check">'+("checkbox"===r.check?t.checkbox[0]:"radio"===r.check?t.radio[0]:"")+"</i>":""}(),function(){return'<a href="'+(n.href||"javascript:;")+'" '+(r.target&&n.href?'target="'+r.target+'"':"")+">"+('<i class="layui-icon layui-tree-'+(l?"branch":"leaf")+'">'+(l?n.spread?t.branch[1]:t.branch[0]:t.leaf)+"</i>")+("<cite>"+(n.name||"未命名")+"</cite></a>")}(),"</li>"].join(""));l&&(s.append(c),i.tree(c,n.children)),e.append(s),"function"==typeof r.click&&i.click(s,n),i.spread(s,n),r.drag&&i.drag(s,n)})},r.prototype.click=function(e,o){var a=this,i=a.options;e.children("a").on("click",function(e){layui.stope(e),i.click(o)})},r.prototype.spread=function(e,o){var a=this,i=(a.options,e.children(".layui-tree-spread")),r=e.children("ul"),n=e.children("a"),l=function(){e.data("spread")?(e.data("spread",null),r.removeClass("layui-show"),i.html(t.arrow[0]),n.find(".layui-icon").html(t.branch[0])):(e.data("spread",!0),r.addClass("layui-show"),i.html(t.arrow[1]),n.find(".layui-icon").html(t.branch[1]))};r[0]&&(i.on("click",l),n.on("dblclick",l))},r.prototype.on=function(e){var a=this,r=a.options,t="layui-tree-drag";e.find("i").on("selectstart",function(e){return!1}),r.drag&&o(document).on("mousemove",function(e){var i=a.move;if(i.from){var r=(i.to,o('<div class="layui-box '+t+'"></div>'));e.preventDefault(),o("."+t)[0]||o("body").append(r);var n=o("."+t)[0]?o("."+t):r;n.addClass("layui-show").html(i.from.elem.children("a").html()),n.css({left:e.pageX+10,top:e.pageY+10})}}).on("mouseup",function(){var e=a.move;e.from&&(e.from.elem.children("a").removeClass(i),e.to&&e.to.elem.children("a").removeClass(i),a.move={},o("."+t).remove())})},r.prototype.move={},r.prototype.drag=function(e,a){var r=this,t=(r.options,e.children("a")),n=function(){var t=o(this),n=r.move;n.from&&(n.to={item:a,elem:e},t.addClass(i))};t.on("mousedown",function(){var o=r.move;o.from={item:a,elem:e}}),t.on("mouseenter",n).on("mousemove",n).on("mouseleave",function(){var e=o(this),a=r.move;a.from&&(delete a.to,e.removeClass(i))})},e("tree",function(e){var i=new r(e=e||{}),t=o(e.elem);return t[0]?void i.init(t):a.error("layui.tree 没有找到"+e.elem+"元素")})}); \ No newline at end of file +/** layui-v2.5.4 MIT License By https://www.layui.com */ + ;layui.define("form",function(e){"use strict";var i=layui.$,a=layui.form,n="tree",r={config:{},index:layui[n]?layui[n].index+1e4:0,set:function(e){var a=this;return a.config=i.extend({},a.config,e),a},on:function(e,i){return layui.onevent.call(this,n,e,i)}},l=function(){var e=this,i=e.config,a=i.id||e.index;return l.that[a]=e,l.config[a]=i,{config:i,reload:function(i){e.reload.call(e,i)},getChecked:function(){return e.getChecked.call(e)},setChecked:function(i){return e.setChecked.call(e,i)}}},t="layui-hide",d="layui-disabled",s="layui-tree-set",c="layui-tree-iconClick",o="layui-icon-addition",h="layui-icon-subtraction",u="layui-tree-entry",f="layui-tree-main",p="layui-tree-txt",y="layui-tree-pack",v="layui-tree-spread",C="layui-tree-setLineShort",m="layui-tree-showLine",k="layui-tree-lineExtend",g=function(e){var a=this;a.index=++r.index,a.config=i.extend({},a.config,r.config,e),a.render()};g.prototype.config={data:[],showCheckbox:!1,showLine:!0,accordion:!1,onlyIconControl:!1,isJump:!1,edit:!1,text:{defaultNodeName:"未命名",none:"无数据"}},g.prototype.reload=function(e){var a=this;layui.each(e,function(e,i){i.constructor===Array&&delete a.config[e]}),a.config=i.extend(!0,{},a.config,e),a.render()},g.prototype.render=function(){var e=this,a=e.config,n=i('<div class="layui-tree'+(a.showCheckbox?" layui-form":"")+(a.showLine?" layui-tree-line":"")+'" lay-filter="LAY-tree-'+e.index+'"></div>');e.tree(n);var r=a.elem=i(a.elem);if(r[0]){if(a.showSearch&&n.prepend('<input type="text" class="layui-input layui-tree-search" placeholder="请输入关键字进行过滤">'),e.key=a.id||e.index,e.elem=n,e.elemNone=i('<div class="layui-tree-emptyText">'+a.text.none+"</div>"),r.html(e.elem),0==e.elem.find(".layui-tree-set").length)return e.elem.append(e.elemNone);a.drag&&e.drag(),a.showCheckbox&&e.renderForm("checkbox"),e.elem.find(".layui-tree-set").each(function(){var e=i(this);e.parent(".layui-tree-pack")[0]||e.addClass("layui-tree-setHide"),!e.next()[0]&&e.parents(".layui-tree-pack").eq(1).hasClass("layui-tree-lineExtend")&&e.addClass(C),e.next()[0]||e.parents(".layui-tree-set").eq(0).next()[0]||e.addClass(C)}),e.events()}},g.prototype.renderForm=function(e){a.render(e,"LAY-tree-"+this.index)},g.prototype.tree=function(e,a){var n=this,r=n.config,l=a||r.data;layui.each(l,function(a,l){var c=l.children&&l.children.length>0,o=i('<div class="layui-tree-pack" '+(l.spread?'style="display: block;"':"")+'"></div>'),h=i(['<div data-id="'+l.id+'" class="layui-tree-set'+(l.spread?" layui-tree-spread":"")+(l.checked?" layui-tree-checkedFirst":"")+'">',"<div "+(r.drag&&!l.fixed?'draggable="true"':"")+' class="layui-tree-entry">','<div class="layui-tree-main">',function(){return r.showLine?c?'<span class="layui-tree-iconClick layui-tree-icon"><i class="layui-icon '+(l.spread?"layui-icon-subtraction":"layui-icon-addition")+'"></i></span>':'<span class="layui-tree-iconClick"><i class="layui-icon layui-icon-file"></i></span>':'<span class="layui-tree-iconClick"><i class="layui-tree-iconArrow '+(c?"":t)+'"></i></span>'}(),function(){return r.showCheckbox?'<input type="checkbox" name="layuiTreeCheck" lay-skin="primary" '+(l.disabled?"disabled":"")+' value="'+l.id+'">':""}(),function(){return r.isJump&&l.href?'<a href="'+l.href+'" target="_blank" class="'+p+'">'+(l.title||l.label||r.text.defaultNodeName)+"</a>":'<span class="'+p+(l.disabled?" "+d:"")+'">'+(l.title||l.label||r.text.defaultNodeName)+"</span>"}(),"</div>",function(){if(!r.edit)return"";var e={add:'<i class="layui-icon layui-icon-add-1" data-type="add"></i>',update:'<i class="layui-icon layui-icon-edit" data-type="update"></i>',del:'<i class="layui-icon layui-icon-delete" data-type="del"></i>'},i=['<div class="layui-btn-group layui-tree-btnGroup">'];return r.edit===!0&&(r.edit=["update","del"]),"object"==typeof r.edit?(layui.each(r.edit,function(a,n){i.push(e[n]||"")}),i.join("")+"</div>"):void 0}(),"</div></div>"].join(""));c&&(h.append(o),n.tree(o,l.children)),e.append(h),h.prev("."+s)[0]&&h.prev().children(".layui-tree-pack").addClass("layui-tree-showLine"),c||h.parent(".layui-tree-pack").addClass("layui-tree-lineExtend"),n.spread(h,l),r.showCheckbox&&n.checkClick(h,l),r.edit&&n.operate(h,l)})},g.prototype.spread=function(e,a){var n=this,r=n.config,l=e.children("."+u),t=l.children("."+f),C=l.find("."+c),m=l.find("."+p),k=r.onlyIconControl?C:t,g="";k.on("click",function(i){var a=e.children("."+y),n=k.children(".layui-icon")[0]?k.children(".layui-icon"):k.find(".layui-tree-icon").children(".layui-icon");if(a[0]){if(e.hasClass(v))e.removeClass(v),a.slideUp(200),n.removeClass(h).addClass(o);else if(e.addClass(v),a.slideDown(200),n.addClass(h).removeClass(o),r.accordion){var l=e.siblings("."+s);l.removeClass(v),l.children("."+y).slideUp(200),l.find(".layui-tree-icon").children(".layui-icon").removeClass(h).addClass(o)}}else g="normal"}),m.on("click",function(){var n=i(this);n.hasClass(d)||(g=e.hasClass(v)?r.onlyIconControl?"open":"close":r.onlyIconControl?"close":"open",r.click&&r.click({elem:e,state:g,data:a}))})},g.prototype.setCheckbox=function(e,i,a){var n=this,r=(n.config,a.prop("checked"));if("object"==typeof i.children||e.find("."+y)[0]){var l=e.find("."+y).find('input[name="layuiTreeCheck"]');l.each(function(){this.disabled||(this.checked=r)})}var t=function(e){if(e.parents("."+s)[0]){var i,a=e.parent("."+y),n=a.parent(),l=a.prev().find('input[name="layuiTreeCheck"]');r?l.prop("checked",r):(a.find('input[name="layuiTreeCheck"]').each(function(){this.checked&&(i=!0)}),i||l.prop("checked",!1)),t(n)}};t(e),n.renderForm("checkbox")},g.prototype.checkClick=function(e,a){var n=this,r=n.config,l=e.children("."+u),t=l.children("."+f);t.on("click",'input[name="layuiTreeCheck"]+',function(l){layui.stope(l);var t=i(this).prev(),d=t.prop("checked");t.prop("disabled")||(n.setCheckbox(e,a,t),r.oncheck&&r.oncheck({elem:e,checked:d,data:a}))})},g.prototype.operate=function(e,a){var n=this,r=n.config,l=e.children("."+u),d=l.children("."+f);l.children(".layui-tree-btnGroup").on("click",".layui-icon",function(l){layui.stope(l);var f=i(this).data("type"),g=e.children("."+y),x={data:a,type:f,elem:e};if("add"==f){g[0]||(r.showLine?(d.find("."+c).addClass("layui-tree-icon"),d.find("."+c).children(".layui-icon").addClass(o).removeClass("layui-icon-file")):d.find(".layui-tree-iconArrow").removeClass(t),e.append('<div class="layui-tree-pack"></div>'));var b=r.operate&&r.operate(x),w={};if(w.title=r.text.defaultNodeName,w.id=b,n.tree(e.children("."+y),[w]),r.showLine)if(g[0])g.hasClass(k)||g.addClass(k),e.find("."+y).each(function(){i(this).children("."+s).last().addClass(C)}),g.children("."+s).last().prev().hasClass(C)?g.children("."+s).last().prev().removeClass(C):g.children("."+s).last().removeClass(C),!e.parent("."+y)[0]&&e.next()[0]&&g.children("."+s).last().removeClass(C);else{var T=e.siblings("."+s),L=1,N=e.parent("."+y);layui.each(T,function(e,a){i(a).children("."+y)[0]||(L=0)}),1==L?(T.children("."+y).addClass(m),T.children("."+y).children("."+s).removeClass(C),e.children("."+y).addClass(m),N.removeClass(k),N.children("."+s).last().children("."+y).children("."+s).last().addClass(C)):e.children("."+y).children("."+s).addClass(C)}if(!r.showCheckbox)return;if(d.find('input[name="layuiTreeCheck"]')[0].checked){var A=e.children("."+y).children("."+s).last();A.find('input[name="layuiTreeCheck"]')[0].checked=!0}n.renderForm("checkbox")}else if("update"==f){var q=d.children("."+p).html();d.children("."+p).html(""),d.append('<input type="text" class="layui-tree-editInput">'),d.children(".layui-tree-editInput").val(q).focus();var F=function(e){var i=e.val().trim();i=i?i:r.text.defaultNodeName,e.remove(),d.children("."+p).html(i),x.data.title=i,r.operate&&r.operate(x)};d.children(".layui-tree-editInput").blur(function(){F(i(this))}),d.children(".layui-tree-editInput").on("keydown",function(e){13===e.keyCode&&(e.preventDefault(),F(i(this)))})}else{if(r.operate&&r.operate(x),x.status="remove",!e.prev("."+s)[0]&&!e.next("."+s)[0]&&!e.parent("."+y)[0])return e.remove(),void n.elem.append(n.elemNone);if(e.siblings("."+s).children("."+u)[0]){if(r.showCheckbox){var I=function(e){if(e.parents("."+s)[0]){var a=e.siblings("."+s).children("."+u),r=e.parent("."+y).prev(),l=r.find('input[name="layuiTreeCheck"]')[0],t=1,d=0;0==l.checked&&(a.each(function(e,a){var n=i(a).find('input[name="layuiTreeCheck"]')[0];0!=n.checked||n.disabled||(t=0),n.disabled||(d=1)}),1==t&&1==d&&(l.checked=!0,n.renderForm("checkbox"),I(r.parent("."+s))))}};I(e)}if(r.showLine){var T=e.siblings("."+s),L=1,N=e.parent("."+y);layui.each(T,function(e,a){i(a).children("."+y)[0]||(L=0)}),1==L?(g[0]||(N.removeClass(k),T.children("."+y).addClass(m),T.children("."+y).children("."+s).removeClass(C)),e.next()[0]?N.children("."+s).last().children("."+y).children("."+s).last().addClass(C):e.prev().children("."+y).children("."+s).last().addClass(C),e.next()[0]||e.parents("."+s)[1]||e.parents("."+s).eq(0).next()[0]||e.prev("."+s).addClass(C)):!e.next()[0]&&e.hasClass(C)&&e.prev().addClass(C)}}else{var H=e.parent("."+y).prev();if(r.showLine){H.find("."+c).removeClass("layui-tree-icon"),H.find("."+c).children(".layui-icon").removeClass(h).addClass("layui-icon-file");var S=H.parents("."+y).eq(0);S.addClass(k),S.children("."+s).each(function(){i(this).children("."+y).children("."+s).last().addClass(C)})}else H.find(".layui-tree-iconArrow").addClass(t);e.parents("."+s).eq(0).removeClass(v),e.parent("."+y).remove()}e.remove()}})},g.prototype.drag=function(){var e=this,a=e.config;e.elem.on("dragstart","."+u,function(){var e=i(this).parent("."+s),n=e.parents("."+s)[0]?e.parents("."+s).eq(0):"未找到父节点";a.dragstart&&a.dragstart(e,n)}),e.elem.on("dragend","."+u,function(n){var n=n||event,r=n.clientY,l=i(this),d=l.parent("."+s),f=d.height(),p=d.offset().top,g=e.elem.find("."+s),x=e.elem.height(),b=e.elem.offset().top,w=x+b-13,T=d.parents("."+s)[0],L=d.next()[0];if(T)var N=d.parent("."+y),A=d.parents("."+s).eq(0),q=A.parent("."+y),F=A.offset().top,I=d.siblings(),H=A.children("."+y).children("."+s).length;var S=function(n){if(T||L||e.elem.children("."+s).last().children("."+y).children("."+s).last().addClass(C),!T)return void d.removeClass("layui-tree-setHide");if(1==H)a.showLine?(n.find("."+c).removeClass("layui-tree-icon"),n.find("."+c).children(".layui-icon").removeClass(h).addClass("layui-icon-file"),q.addClass(k),q.children("."+s).children("."+y).each(function(){i(this).children("."+s).last().addClass(C)})):n.find(".layui-tree-iconArrow").addClass(t),n.children("."+y).remove(),n.removeClass(v);else{if(a.showLine){var r=1;layui.each(I,function(e,a){i(a).children("."+y)[0]||(r=0)}),1==r?(d.children("."+y)[0]||(N.removeClass(k),I.children("."+y).addClass(m),I.children("."+y).children("."+s).removeClass(C)),N.children("."+s).last().children("."+y).children("."+s).last().addClass(C),L||n.parents("."+s)[0]||n.next()[0]||N.children("."+s).last().addClass(C)):!L&&d.hasClass(C)&&N.children("."+s).last().addClass(C)}if(a.showCheckbox){var l=function(a){if(a){if(!a.parents("."+s)[0])return}else if(!n[0])return;var r=a?a.siblings().children("."+u):I.children("."+u),t=a?a.parent("."+y).prev():N.prev(),d=t.find('input[name="layuiTreeCheck"]')[0],c=1,o=0;0==d.checked&&(r.each(function(e,a){var n=i(a).find('input[name="layuiTreeCheck"]')[0];0!=n.checked||n.disabled||(c=0),n.disabled||(o=1)}),1==c&&1==o&&(d.checked=!0,e.renderForm("checkbox"),l(t.parent("."+s)||n)))};l()}}};g.each(function(){if(0!=i(this).height()){if(r>p&&r<p+f)return void(a.dragend&&a.dragend("drag error"));if(1==H&&r>F&&r<p+f)return void(a.dragend&&a.dragend("drag error"));var n=i(this).offset().top;if(r>n&&r<n+15){if(i(this).children("."+y)[0]||(a.showLine?(i(this).find("."+c).eq(0).addClass("layui-tree-icon"),i(this).find("."+c).eq(0).children(".layui-icon").addClass(o).removeClass("layui-icon-file")):i(this).find(".layui-tree-iconArrow").removeClass(t),i(this).append('<div class="layui-tree-pack"></div>')),i(this).children("."+y).append(d),S(A),a.showLine){var l=i(this).children("."+y).children("."+s);if(d.children("."+y).children("."+s).last().addClass(C),1==l.length){var h=i(this).siblings("."+s),v=1,g=i(this).parent("."+y);layui.each(h,function(e,a){i(a).children("."+y)[0]||(v=0)}),1==v?(h.children("."+y).addClass(m),h.children("."+y).children("."+s).removeClass(C),i(this).children("."+y).addClass(m),g.removeClass(k),g.children("."+s).last().children("."+y).children("."+s).last().addClass(C).removeClass("layui-tree-setHide")):i(this).children("."+y).children("."+s).addClass(C).removeClass("layui-tree-setHide")}else d.prev("."+s).hasClass(C)?(d.prev("."+s).removeClass(C),d.addClass(C)):(d.removeClass("layui-tree-setLineShort layui-tree-setHide"),d.children("."+y)[0]?d.prev("."+s).children("."+y).children("."+s).last().removeClass(C):d.siblings("."+s).find("."+y).each(function(){i(this).children("."+s).last().addClass(C)})),i(this).next()[0]||d.addClass(C)}if(a.showCheckbox&&i(this).children("."+u).find('input[name="layuiTreeCheck"]')[0].checked){var x=d.children("."+u);x.find('input[name="layuiTreeCheck"]+').click()}return a.dragend&&a.dragend("drag success",d,i(this)),!1}if(r<n){if(i(this).before(d),S(A),a.showLine){var b=d.children("."+y),T=i(this).parents("."+s).eq(0),L=T.children("."+y).children("."+s).last();if(b[0]){d.removeClass(C),b.children("."+s).last().removeClass(C);var h=d.siblings("."+s),v=1;layui.each(h,function(e,a){i(a).children("."+y)[0]||(v=0)}),1==v?T[0]&&(h.children("."+y).addClass(m),h.children("."+y).children("."+s).removeClass(C),L.children("."+y).children("."+s).last().addClass(C).removeClass(m)):d.children("."+y).children("."+s).last().addClass(C),!T.parent("."+y)[0]&&T.next()[0]&&L.removeClass(C)}else T.hasClass(k)||T.addClass(k),T.find("."+y).each(function(){i(this).children("."+s).last().addClass(C)});T[0]||(d.addClass("layui-tree-setHide"),d.children("."+y).children("."+s).last().removeClass(C))}if(T[0]&&a.showCheckbox&&T.children("."+u).find('input[name="layuiTreeCheck"]')[0].checked){var x=d.children("."+u);x.find('input[name="layuiTreeCheck"]+').click()}return a.dragend&&a.dragend("拖拽成功,插入目标节点上方",d,i(this)),!1}if(r>w)return e.elem.children("."+s).last().children("."+y).addClass(m),e.elem.append(d),S(A),d.prev().children("."+y).children("."+s).last().removeClass(C),d.addClass("layui-tree-setHide"),d.children("."+y).children("."+s).last().addClass(C),a.dragend&&a.dragend("拖拽成功,插入最外层节点",d,e.elem),!1}})})},g.prototype.events=function(){var e=this,a=e.config,n=e.elem.find(".layui-tree-checkedFirst");layui.each(n,function(e,a){i(a).children("."+u).find('input[name="layuiTreeCheck"]+').trigger("click")}),e.elem.find(".layui-tree-search").on("keyup",function(){var n=i(this),r=n.val(),l=n.nextAll(),d=[];l.find("."+p).each(function(){var e=i(this).parents("."+u);if(i(this).html().indexOf(r)!=-1){d.push(i(this).parent());var a=function(e){e.addClass("layui-tree-searchShow"),e.parent("."+y)[0]&&a(e.parent("."+y).parent("."+s))};a(e.parent("."+s))}}),l.find("."+u).each(function(){var e=i(this).parent("."+s);e.hasClass("layui-tree-searchShow")||e.addClass(t)}),0==l.find(".layui-tree-searchShow").length&&e.elem.append(e.elemNone),a.onsearch&&a.onsearch({elem:d})}),e.elem.find(".layui-tree-search").on("keydown",function(){i(this).nextAll().find("."+u).each(function(){var e=i(this).parent("."+s);e.removeClass("layui-tree-searchShow "+t)}),i(".layui-tree-emptyText")[0]&&i(".layui-tree-emptyText").remove()})},g.prototype.getChecked=function(){var e=this,a=e.config,n=[],r=[];e.elem.find(".layui-form-checked").each(function(){n.push(i(this).prev()[0].value)});var l=function(e,a){layui.each(e,function(e,r){layui.each(n,function(e,n){if(r.id==n){var t=i.extend({},r);return delete t.children,a.push(t),r.children&&(t.children=[],l(r.children,t.children)),!0}})})};return l(i.extend({},a.data),r),r},g.prototype.setChecked=function(e){var a=this;a.config;a.elem.find("."+s).each(function(a,n){var r=i(this).data("id"),l=i(n).children("."+u).find('input[name="layuiTreeCheck"]'),t=l.next();if("number"==typeof e){if(r==e)return l[0].checked||t.click(),!1}else i.inArray(r,e)!=-1&&(l[0].checked||t.click())})},l.that={},l.config={},r.reload=function(e,i){var a=l.that[e];return a.reload(i),l.call(a)},r.getChecked=function(e){var i=l.that[e];return i.getChecked()},r.setChecked=function(e,i){var a=l.that[e];return a.setChecked(i)},r.render=function(e){var i=new g(e);return l.call(i)},e(n,r)}); \ No newline at end of file diff --git a/public/static/plug/layui/lay/modules/upload.js b/public/static/plug/layui/lay/modules/upload.js index 1ede8d63..4dee81bd 100755 --- a/public/static/plug/layui/lay/modules/upload.js +++ b/public/static/plug/layui/lay/modules/upload.js @@ -1,2 +1,2 @@ -/** layui-v2.4.3 MIT License By https://www.layui.com */ - ;layui.define("layer",function(e){"use strict";var i=layui.$,t=layui.layer,n=layui.hint(),a=layui.device(),o={config:{},set:function(e){var t=this;return t.config=i.extend({},t.config,e),t},on:function(e,i){return layui.onevent.call(this,r,e,i)}},l=function(){var e=this;return{upload:function(i){e.upload.call(e,i)},config:e.config}},r="upload",u="layui-upload-file",c="layui-upload-form",f="layui-upload-iframe",s="layui-upload-choose",p=function(e){var t=this;t.config=i.extend({},t.config,o.config,e),t.render()};p.prototype.config={accept:"images",exts:"",auto:!0,bindAction:"",url:"",field:"file",method:"post",data:{},drag:!0,size:0,number:0,multiple:!1},p.prototype.render=function(e){var t=this,e=t.config;e.elem=i(e.elem),e.bindAction=i(e.bindAction),t.file(),t.events()},p.prototype.file=function(){var e=this,t=e.config,n=e.elemFile=i(['<input class="'+u+'" type="file" accept="'+t.acceptMime+'" name="'+t.field+'"',t.multiple?" multiple":"",">"].join("")),o=t.elem.next();(o.hasClass(u)||o.hasClass(c))&&o.remove(),a.ie&&a.ie<10&&t.elem.wrap('<div class="layui-upload-wrap"></div>'),e.isFile()?(e.elemFile=t.elem,t.field=t.elem[0].name):t.elem.after(n),a.ie&&a.ie<10&&e.initIE()},p.prototype.initIE=function(){var e=this,t=e.config,n=i('<iframe id="'+f+'" class="'+f+'" name="'+f+'" frameborder="0"></iframe>'),a=i(['<form target="'+f+'" class="'+c+'" method="post" key="set-mine" enctype="multipart/form-data" action="'+t.url+'">',"</form>"].join(""));i("#"+f)[0]||i("body").append(n),t.elem.next().hasClass(c)||(e.elemFile.wrap(a),t.elem.next("."+c).append(function(){var e=[];return layui.each(t.data,function(i,t){t="function"==typeof t?t():t,e.push('<input type="hidden" name="'+i+'" value="'+t+'">')}),e.join("")}()))},p.prototype.msg=function(e){return t.msg(e,{icon:2,shift:6})},p.prototype.isFile=function(){var e=this.config.elem[0];if(e)return"input"===e.tagName.toLocaleLowerCase()&&"file"===e.type},p.prototype.preview=function(e){var i=this;window.FileReader&&layui.each(i.chooseFiles,function(i,t){var n=new FileReader;n.readAsDataURL(t),n.onload=function(){e&&e(i,t,this.result)}})},p.prototype.upload=function(e,t){var n,o=this,l=o.config,r=o.elemFile[0],u=function(){var t=0,n=0,a=e||o.files||o.chooseFiles||r.files,u=function(){l.multiple&&t+n===o.fileLength&&"function"==typeof l.allDone&&l.allDone({total:o.fileLength,successful:t,aborted:n})};layui.each(a,function(e,a){var r=new FormData;r.append(l.field,a),layui.each(l.data,function(e,i){i="function"==typeof i?i():i,r.append(e,i)}),i.ajax({url:l.url,type:"post",data:r,contentType:!1,processData:!1,dataType:"json",headers:l.headers||{},success:function(i){t++,d(e,i),u()},error:function(){n++,o.msg("请求上传接口出现异常"),m(e),u()}})})},c=function(){var e=i("#"+f);o.elemFile.parent().submit(),clearInterval(p.timer),p.timer=setInterval(function(){var i,t=e.contents().find("body");try{i=t.text()}catch(n){o.msg("获取上传后的响应信息出现异常"),clearInterval(p.timer),m()}i&&(clearInterval(p.timer),t.html(""),d(0,i))},30)},d=function(e,i){if(o.elemFile.next("."+s).remove(),r.value="","object"!=typeof i)try{i=JSON.parse(i)}catch(t){return i={},o.msg("请对上传接口返回有效JSON")}"function"==typeof l.done&&l.done(i,e||0,function(e){o.upload(e)})},m=function(e){l.auto&&(r.value=""),"function"==typeof l.error&&l.error(e||0,function(e){o.upload(e)})},h=l.exts,v=function(){var i=[];return layui.each(e||o.chooseFiles,function(e,t){i.push(t.name)}),i}(),g={preview:function(e){o.preview(e)},upload:function(e,i){var t={};t[e]=i,o.upload(t)},pushFile:function(){return o.files=o.files||{},layui.each(o.chooseFiles,function(e,i){o.files[e]=i}),o.files},resetFile:function(e,i,t){var n=new File([i],t);o.files=o.files||{},o.files[e]=n}},y=function(){if("choose"!==t&&!l.auto||(l.choose&&l.choose(g),"choose"!==t))return l.before&&l.before(g),a.ie?a.ie>9?u():c():void u()};if(v=0===v.length?r.value.match(/[^\/\\]+\..+/g)||[]||"":v,0!==v.length){switch(l.accept){case"file":if(h&&!RegExp("\\w\\.("+h+")$","i").test(escape(v)))return o.msg("选择的文件中包含不支持的格式"),r.value="";break;case"video":if(!RegExp("\\w\\.("+(h||"avi|mp4|wma|rmvb|rm|flash|3gp|flv")+")$","i").test(escape(v)))return o.msg("选择的视频中包含不支持的格式"),r.value="";break;case"audio":if(!RegExp("\\w\\.("+(h||"mp3|wav|mid")+")$","i").test(escape(v)))return o.msg("选择的音频中包含不支持的格式"),r.value="";break;default:if(layui.each(v,function(e,i){RegExp("\\w\\.("+(h||"jpg|png|gif|bmp|jpeg$")+")","i").test(escape(i))||(n=!0)}),n)return o.msg("选择的图片中包含不支持的格式"),r.value=""}if(o.fileLength=function(){var i=0,t=e||o.files||o.chooseFiles||r.files;return layui.each(t,function(){i++}),i}(),l.number&&o.fileLength>l.number)return o.msg("同时最多只能上传的数量为:"+l.number);if(l.size>0&&!(a.ie&&a.ie<10)){var F;if(layui.each(o.chooseFiles,function(e,i){if(i.size>1024*l.size){var t=l.size/1024;t=t>=1?t.toFixed(2)+"MB":l.size+"KB",r.value="",F=t}}),F)return o.msg("文件不能超过"+F)}y()}},p.prototype.events=function(){var e=this,t=e.config,o=function(i){e.chooseFiles={},layui.each(i,function(i,t){var n=(new Date).getTime();e.chooseFiles[n+"-"+i]=t})},l=function(i,n){var a=e.elemFile,o=i.length>1?i.length+"个文件":(i[0]||{}).name||a[0].value.match(/[^\/\\]+\..+/g)||[]||"";a.next().hasClass(s)&&a.next().remove(),e.upload(null,"choose"),e.isFile()||t.choose||a.after('<span class="layui-inline '+s+'">'+o+"</span>")};t.elem.off("upload.start").on("upload.start",function(){var a=i(this),o=a.attr("lay-data");if(o)try{o=new Function("return "+o)(),e.config=i.extend({},t,o)}catch(l){n.error("Upload element property lay-data configuration item has a syntax error: "+o)}e.config.item=a,e.elemFile[0].click()}),a.ie&&a.ie<10||t.elem.off("upload.over").on("upload.over",function(){var e=i(this);e.attr("lay-over","")}).off("upload.leave").on("upload.leave",function(){var e=i(this);e.removeAttr("lay-over")}).off("upload.drop").on("upload.drop",function(n,a){var r=i(this),u=a.originalEvent.dataTransfer.files||[];r.removeAttr("lay-over"),o(u),t.auto?e.upload(u):l(u)}),e.elemFile.off("upload.change").on("upload.change",function(){var i=this.files||[];o(i),t.auto?e.upload():l(i)}),t.bindAction.off("upload.action").on("upload.action",function(){e.upload()}),t.elem.data("haveEvents")||(e.elemFile.on("change",function(){i(this).trigger("upload.change")}),t.elem.on("click",function(){e.isFile()||i(this).trigger("upload.start")}),t.drag&&t.elem.on("dragover",function(e){e.preventDefault(),i(this).trigger("upload.over")}).on("dragleave",function(e){i(this).trigger("upload.leave")}).on("drop",function(e){e.preventDefault(),i(this).trigger("upload.drop",e)}),t.bindAction.on("click",function(){i(this).trigger("upload.action")}),t.elem.data("haveEvents",!0))},o.render=function(e){var i=new p(e);return l.call(i)},e(r,o)}); \ No newline at end of file +/** layui-v2.5.4 MIT License By https://www.layui.com */ + ;layui.define("layer",function(e){"use strict";var t=layui.$,i=layui.layer,n=layui.hint(),a=layui.device(),o={config:{},set:function(e){var i=this;return i.config=t.extend({},i.config,e),i},on:function(e,t){return layui.onevent.call(this,r,e,t)}},l=function(){var e=this;return{upload:function(t){e.upload.call(e,t)},reload:function(t){e.reload.call(e,t)},config:e.config}},r="upload",u="layui-upload-file",c="layui-upload-form",f="layui-upload-iframe",s="layui-upload-choose",p=function(e){var i=this;i.config=t.extend({},i.config,o.config,e),i.render()};p.prototype.config={accept:"images",exts:"",auto:!0,bindAction:"",url:"",field:"file",acceptMime:"",method:"post",data:{},drag:!0,size:0,number:0,multiple:!1},p.prototype.render=function(e){var i=this,e=i.config;e.elem=t(e.elem),e.bindAction=t(e.bindAction),i.file(),i.events()},p.prototype.file=function(){var e=this,i=e.config,n=e.elemFile=t(['<input class="'+u+'" type="file" accept="'+i.acceptMime+'" name="'+i.field+'"',i.multiple?" multiple":"",">"].join("")),o=i.elem.next();(o.hasClass(u)||o.hasClass(c))&&o.remove(),a.ie&&a.ie<10&&i.elem.wrap('<div class="layui-upload-wrap"></div>'),e.isFile()?(e.elemFile=i.elem,i.field=i.elem[0].name):i.elem.after(n),a.ie&&a.ie<10&&e.initIE()},p.prototype.initIE=function(){var e=this,i=e.config,n=t('<iframe id="'+f+'" class="'+f+'" name="'+f+'" frameborder="0"></iframe>'),a=t(['<form target="'+f+'" class="'+c+'" method="post" key="set-mine" enctype="multipart/form-data" action="'+i.url+'">',"</form>"].join(""));t("#"+f)[0]||t("body").append(n),i.elem.next().hasClass(c)||(e.elemFile.wrap(a),i.elem.next("."+c).append(function(){var e=[];return layui.each(i.data,function(t,i){i="function"==typeof i?i():i,e.push('<input type="hidden" name="'+t+'" value="'+i+'">')}),e.join("")}()))},p.prototype.msg=function(e){return i.msg(e,{icon:2,shift:6})},p.prototype.isFile=function(){var e=this.config.elem[0];if(e)return"input"===e.tagName.toLocaleLowerCase()&&"file"===e.type},p.prototype.preview=function(e){var t=this;window.FileReader&&layui.each(t.chooseFiles,function(t,i){var n=new FileReader;n.readAsDataURL(i),n.onload=function(){e&&e(t,i,this.result)}})},p.prototype.upload=function(e,i){var n,o=this,l=o.config,r=o.elemFile[0],u=function(){var i=0,n=0,a=e||o.files||o.chooseFiles||r.files,u=function(){l.multiple&&i+n===o.fileLength&&"function"==typeof l.allDone&&l.allDone({total:o.fileLength,successful:i,aborted:n})};layui.each(a,function(e,a){var r=new FormData;r.append(l.field,a),layui.each(l.data,function(e,t){t="function"==typeof t?t():t,r.append(e,t)}),t.ajax({url:l.url,type:"post",data:r,contentType:!1,processData:!1,dataType:"json",headers:l.headers||{},success:function(t){i++,d(e,t),u()},error:function(){n++,o.msg("请求上传接口出现异常"),m(e),u()}})})},c=function(){var e=t("#"+f);o.elemFile.parent().submit(),clearInterval(p.timer),p.timer=setInterval(function(){var t,i=e.contents().find("body");try{t=i.text()}catch(n){o.msg("获取上传后的响应信息出现异常"),clearInterval(p.timer),m()}t&&(clearInterval(p.timer),i.html(""),d(0,t))},30)},d=function(e,t){if(o.elemFile.next("."+s).remove(),r.value="","object"!=typeof t)try{t=JSON.parse(t)}catch(i){return t={},o.msg("请对上传接口返回有效JSON")}"function"==typeof l.done&&l.done(t,e||0,function(e){o.upload(e)})},m=function(e){l.auto&&(r.value=""),"function"==typeof l.error&&l.error(e||0,function(e){o.upload(e)})},h=l.exts,v=function(){var t=[];return layui.each(e||o.chooseFiles,function(e,i){t.push(i.name)}),t}(),g={preview:function(e){o.preview(e)},upload:function(e,t){var i={};i[e]=t,o.upload(i)},pushFile:function(){return o.files=o.files||{},layui.each(o.chooseFiles,function(e,t){o.files[e]=t}),o.files},resetFile:function(e,t,i){var n=new File([t],i);o.files=o.files||{},o.files[e]=n}},y=function(){if("choose"!==i&&!l.auto||(l.choose&&l.choose(g),"choose"!==i))return l.before&&l.before(g),a.ie?a.ie>9?u():c():void u()};if(v=0===v.length?r.value.match(/[^\/\\]+\..+/g)||[]||"":v,0!==v.length){switch(l.accept){case"file":if(h&&!RegExp("\\w\\.("+h+")$","i").test(escape(v)))return o.msg("选择的文件中包含不支持的格式"),r.value="";break;case"video":if(!RegExp("\\w\\.("+(h||"avi|mp4|wma|rmvb|rm|flash|3gp|flv")+")$","i").test(escape(v)))return o.msg("选择的视频中包含不支持的格式"),r.value="";break;case"audio":if(!RegExp("\\w\\.("+(h||"mp3|wav|mid")+")$","i").test(escape(v)))return o.msg("选择的音频中包含不支持的格式"),r.value="";break;default:if(layui.each(v,function(e,t){RegExp("\\w\\.("+(h||"jpg|png|gif|bmp|jpeg$")+")","i").test(escape(t))||(n=!0)}),n)return o.msg("选择的图片中包含不支持的格式"),r.value=""}if(o.fileLength=function(){var t=0,i=e||o.files||o.chooseFiles||r.files;return layui.each(i,function(){t++}),t}(),l.number&&o.fileLength>l.number)return o.msg("同时最多只能上传的数量为:"+l.number);if(l.size>0&&!(a.ie&&a.ie<10)){var F;if(layui.each(o.chooseFiles,function(e,t){if(t.size>1024*l.size){var i=l.size/1024;i=i>=1?i.toFixed(2)+"MB":l.size+"KB",r.value="",F=i}}),F)return o.msg("文件不能超过"+F)}y()}},p.prototype.reload=function(e){e=e||{},delete e.elem,delete e.bindAction;var i=this,e=i.config=t.extend({},i.config,o.config,e),n=e.elem.next();n.attr({name:e.name,accept:e.acceptMime,multiple:e.multiple})},p.prototype.events=function(){var e=this,i=e.config,o=function(t){e.chooseFiles={},layui.each(t,function(t,i){var n=(new Date).getTime();e.chooseFiles[n+"-"+t]=i})},l=function(t,n){var a=e.elemFile,o=t.length>1?t.length+"个文件":(t[0]||{}).name||a[0].value.match(/[^\/\\]+\..+/g)||[]||"";a.next().hasClass(s)&&a.next().remove(),e.upload(null,"choose"),e.isFile()||i.choose||a.after('<span class="layui-inline '+s+'">'+o+"</span>")};i.elem.off("upload.start").on("upload.start",function(){var a=t(this),o=a.attr("lay-data");if(o)try{o=new Function("return "+o)(),e.config=t.extend({},i,o)}catch(l){n.error("Upload element property lay-data configuration item has a syntax error: "+o)}e.config.item=a,e.elemFile[0].click()}),a.ie&&a.ie<10||i.elem.off("upload.over").on("upload.over",function(){var e=t(this);e.attr("lay-over","")}).off("upload.leave").on("upload.leave",function(){var e=t(this);e.removeAttr("lay-over")}).off("upload.drop").on("upload.drop",function(n,a){var r=t(this),u=a.originalEvent.dataTransfer.files||[];r.removeAttr("lay-over"),o(u),i.auto?e.upload(u):l(u)}),e.elemFile.off("upload.change").on("upload.change",function(){var t=this.files||[];o(t),i.auto?e.upload():l(t)}),i.bindAction.off("upload.action").on("upload.action",function(){e.upload()}),i.elem.data("haveEvents")||(e.elemFile.on("change",function(){t(this).trigger("upload.change")}),i.elem.on("click",function(){e.isFile()||t(this).trigger("upload.start")}),i.drag&&i.elem.on("dragover",function(e){e.preventDefault(),t(this).trigger("upload.over")}).on("dragleave",function(e){t(this).trigger("upload.leave")}).on("drop",function(e){e.preventDefault(),t(this).trigger("upload.drop",e)}),i.bindAction.on("click",function(){t(this).trigger("upload.action")}),i.elem.data("haveEvents",!0))},o.render=function(e){var t=new p(e);return l.call(t)},e(r,o)}); \ No newline at end of file diff --git a/public/static/plug/layui/lay/modules/util.js b/public/static/plug/layui/lay/modules/util.js index f0bf4d2c..4148c2ca 100755 --- a/public/static/plug/layui/lay/modules/util.js +++ b/public/static/plug/layui/lay/modules/util.js @@ -1,2 +1,2 @@ -/** layui-v2.4.3 MIT License By https://www.layui.com */ - ;layui.define("jquery",function(t){"use strict";var e=layui.$,i={fixbar:function(t){var i,a,n="layui-fixbar",r="layui-fixbar-top",o=e(document),l=e("body");t=e.extend({showHeight:200},t),t.bar1=t.bar1===!0?"":t.bar1,t.bar2=t.bar2===!0?"":t.bar2,t.bgcolor=t.bgcolor?"background-color:"+t.bgcolor:"";var c=[t.bar1,t.bar2,""],g=e(['<ul class="'+n+'">',t.bar1?'<li class="layui-icon" lay-type="bar1" style="'+t.bgcolor+'">'+c[0]+"</li>":"",t.bar2?'<li class="layui-icon" lay-type="bar2" style="'+t.bgcolor+'">'+c[1]+"</li>":"",'<li class="layui-icon '+r+'" lay-type="top" style="'+t.bgcolor+'">'+c[2]+"</li>","</ul>"].join("")),s=g.find("."+r),u=function(){var e=o.scrollTop();e>=t.showHeight?i||(s.show(),i=1):i&&(s.hide(),i=0)};e("."+n)[0]||("object"==typeof t.css&&g.css(t.css),l.append(g),u(),g.find("li").on("click",function(){var i=e(this),a=i.attr("lay-type");"top"===a&&e("html,body").animate({scrollTop:0},200),t.click&&t.click.call(this,a)}),o.on("scroll",function(){clearTimeout(a),a=setTimeout(function(){u()},100)}))},countdown:function(t,e,i){var a=this,n="function"==typeof e,r=new Date(t).getTime(),o=new Date(!e||n?(new Date).getTime():e).getTime(),l=r-o,c=[Math.floor(l/864e5),Math.floor(l/36e5)%24,Math.floor(l/6e4)%60,Math.floor(l/1e3)%60];n&&(i=e);var g=setTimeout(function(){a.countdown(t,o+1e3,i)},1e3);return i&&i(l>0?c:[0,0,0,0],e,g),l<=0&&clearTimeout(g),g},timeAgo:function(t,e){var i=this,a=[[],[]],n=(new Date).getTime()-new Date(t).getTime();return n>6912e5?(n=new Date(t),a[0][0]=i.digit(n.getFullYear(),4),a[0][1]=i.digit(n.getMonth()+1),a[0][2]=i.digit(n.getDate()),e||(a[1][0]=i.digit(n.getHours()),a[1][1]=i.digit(n.getMinutes()),a[1][2]=i.digit(n.getSeconds())),a[0].join("-")+" "+a[1].join(":")):n>=864e5?(n/1e3/60/60/24|0)+"天前":n>=36e5?(n/1e3/60/60|0)+"小时前":n>=12e4?(n/1e3/60|0)+"分钟前":n<0?"未来":"刚刚"},digit:function(t,e){var i="";t=String(t),e=e||2;for(var a=t.length;a<e;a++)i+="0";return t<Math.pow(10,e)?i+(0|t):t},toDateString:function(t,e){var i=this,a=new Date(t||new Date),n=[i.digit(a.getFullYear(),4),i.digit(a.getMonth()+1),i.digit(a.getDate())],r=[i.digit(a.getHours()),i.digit(a.getMinutes()),i.digit(a.getSeconds())];return e=e||"yyyy-MM-dd HH:mm:ss",e.replace(/yyyy/g,n[0]).replace(/MM/g,n[1]).replace(/dd/g,n[2]).replace(/HH/g,r[0]).replace(/mm/g,r[1]).replace(/ss/g,r[2])},escape:function(t){return String(t||"").replace(/&(?!#?[a-zA-Z0-9]+;)/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/'/g,"'").replace(/"/g,""")}};!function(t,e,i){"$:nomunge";function a(){n=e[l](function(){r.each(function(){var e=t(this),i=e.width(),a=e.height(),n=t.data(this,g);(i!==n.w||a!==n.h)&&e.trigger(c,[n.w=i,n.h=a])}),a()},o[s])}var n,r=t([]),o=t.resize=t.extend(t.resize,{}),l="setTimeout",c="resize",g=c+"-special-event",s="delay",u="throttleWindow";o[s]=250,o[u]=!0,t.event.special[c]={setup:function(){if(!o[u]&&this[l])return!1;var e=t(this);r=r.add(e),t.data(this,g,{w:e.width(),h:e.height()}),1===r.length&&a()},teardown:function(){if(!o[u]&&this[l])return!1;var e=t(this);r=r.not(e),e.removeData(g),r.length||clearTimeout(n)},add:function(e){function a(e,a,r){var o=t(this),l=t.data(this,g)||{};l.w=a!==i?a:o.width(),l.h=r!==i?r:o.height(),n.apply(this,arguments)}if(!o[u]&&this[l])return!1;var n;return t.isFunction(e)?(n=e,a):(n=e.handler,void(e.handler=a))}}}(e,window),t("util",i)}); \ No newline at end of file +/** layui-v2.5.4 MIT License By https://www.layui.com */ + ;layui.define("jquery",function(t){"use strict";var e=layui.$,i={fixbar:function(t){var i,n,a="layui-fixbar",o="layui-fixbar-top",r=e(document),l=e("body");t=e.extend({showHeight:200},t),t.bar1=t.bar1===!0?"":t.bar1,t.bar2=t.bar2===!0?"":t.bar2,t.bgcolor=t.bgcolor?"background-color:"+t.bgcolor:"";var c=[t.bar1,t.bar2,""],g=e(['<ul class="'+a+'">',t.bar1?'<li class="layui-icon" lay-type="bar1" style="'+t.bgcolor+'">'+c[0]+"</li>":"",t.bar2?'<li class="layui-icon" lay-type="bar2" style="'+t.bgcolor+'">'+c[1]+"</li>":"",'<li class="layui-icon '+o+'" lay-type="top" style="'+t.bgcolor+'">'+c[2]+"</li>","</ul>"].join("")),s=g.find("."+o),u=function(){var e=r.scrollTop();e>=t.showHeight?i||(s.show(),i=1):i&&(s.hide(),i=0)};e("."+a)[0]||("object"==typeof t.css&&g.css(t.css),l.append(g),u(),g.find("li").on("click",function(){var i=e(this),n=i.attr("lay-type");"top"===n&&e("html,body").animate({scrollTop:0},200),t.click&&t.click.call(this,n)}),r.on("scroll",function(){clearTimeout(n),n=setTimeout(function(){u()},100)}))},countdown:function(t,e,i){var n=this,a="function"==typeof e,o=new Date(t).getTime(),r=new Date(!e||a?(new Date).getTime():e).getTime(),l=o-r,c=[Math.floor(l/864e5),Math.floor(l/36e5)%24,Math.floor(l/6e4)%60,Math.floor(l/1e3)%60];a&&(i=e);var g=setTimeout(function(){n.countdown(t,r+1e3,i)},1e3);return i&&i(l>0?c:[0,0,0,0],e,g),l<=0&&clearTimeout(g),g},timeAgo:function(t,e){var i=this,n=[[],[]],a=(new Date).getTime()-new Date(t).getTime();return a>6912e5?(a=new Date(t),n[0][0]=i.digit(a.getFullYear(),4),n[0][1]=i.digit(a.getMonth()+1),n[0][2]=i.digit(a.getDate()),e||(n[1][0]=i.digit(a.getHours()),n[1][1]=i.digit(a.getMinutes()),n[1][2]=i.digit(a.getSeconds())),n[0].join("-")+" "+n[1].join(":")):a>=864e5?(a/1e3/60/60/24|0)+"天前":a>=36e5?(a/1e3/60/60|0)+"小时前":a>=12e4?(a/1e3/60|0)+"分钟前":a<0?"未来":"刚刚"},digit:function(t,e){var i="";t=String(t),e=e||2;for(var n=t.length;n<e;n++)i+="0";return t<Math.pow(10,e)?i+(0|t):t},toDateString:function(t,e){var i=this,n=new Date(t||new Date),a=[i.digit(n.getFullYear(),4),i.digit(n.getMonth()+1),i.digit(n.getDate())],o=[i.digit(n.getHours()),i.digit(n.getMinutes()),i.digit(n.getSeconds())];return e=e||"yyyy-MM-dd HH:mm:ss",e.replace(/yyyy/g,a[0]).replace(/MM/g,a[1]).replace(/dd/g,a[2]).replace(/HH/g,o[0]).replace(/mm/g,o[1]).replace(/ss/g,o[2])},escape:function(t){return String(t||"").replace(/&(?!#?[a-zA-Z0-9]+;)/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/'/g,"'").replace(/"/g,""")},event:function(t,n,a){n=i.event[t]=e.extend(!0,i.event[t],n)||{},e("body").on(a||"click","*["+t+"]",function(){var i=e(this),a=i.attr(t);n[a]&&n[a].call(this,i)})}};!function(t,e,i){"$:nomunge";function n(){a=e[l](function(){o.each(function(){var e=t(this),i=e.width(),n=e.height(),a=t.data(this,g);(i!==a.w||n!==a.h)&&e.trigger(c,[a.w=i,a.h=n])}),n()},r[s])}var a,o=t([]),r=t.resize=t.extend(t.resize,{}),l="setTimeout",c="resize",g=c+"-special-event",s="delay",u="throttleWindow";r[s]=250,r[u]=!0,t.event.special[c]={setup:function(){if(!r[u]&&this[l])return!1;var e=t(this);o=o.add(e),t.data(this,g,{w:e.width(),h:e.height()}),1===o.length&&n()},teardown:function(){if(!r[u]&&this[l])return!1;var e=t(this);o=o.not(e),e.removeData(g),o.length||clearTimeout(a)},add:function(e){function n(e,n,o){var r=t(this),l=t.data(this,g)||{};l.w=n!==i?n:r.width(),l.h=o!==i?o:r.height(),a.apply(this,arguments)}if(!r[u]&&this[l])return!1;var a;return t.isFunction(e)?(a=e,n):(a=e.handler,void(e.handler=n))}}}(e,window),t("util",i)}); \ No newline at end of file diff --git a/public/static/plug/layui/layui.all.js b/public/static/plug/layui/layui.all.js index b73f96e8..8c19e71e 100755 --- a/public/static/plug/layui/layui.all.js +++ b/public/static/plug/layui/layui.all.js @@ -1,5 +1,5 @@ -/** layui-v2.4.3 MIT License By https://www.layui.com */ - ;!function(e){"use strict";var t=document,o={modules:{},status:{},timeout:10,event:{}},n=function(){this.v="2.4.3"},r=function(){var e=t.currentScript?t.currentScript.src:function(){for(var e,o=t.scripts,n=o.length-1,r=n;r>0;r--)if("interactive"===o[r].readyState){e=o[r].src;break}return e||o[n].src}();return e.substring(0,e.lastIndexOf("/")+1)}(),i=function(t){e.console&&console.error&&console.error("Layui hint: "+t)},a="undefined"!=typeof opera&&"[object Opera]"===opera.toString(),u={layer:"modules/layer",laydate:"modules/laydate",laypage:"modules/laypage",laytpl:"modules/laytpl",layim:"modules/layim",layedit:"modules/layedit",form:"modules/form",upload:"modules/upload",tree:"modules/tree",table:"modules/table",element:"modules/element",rate:"modules/rate",colorpicker:"modules/colorpicker",slider:"modules/slider",carousel:"modules/carousel",flow:"modules/flow",util:"modules/util",code:"modules/code",jquery:"modules/jquery",mobile:"modules/mobile","layui.all":"../layui.all"};n.prototype.cache=o,n.prototype.define=function(e,t){var n=this,r="function"==typeof e,i=function(){var e=function(e,t){layui[e]=t,o.status[e]=!0};return"function"==typeof t&&t(function(n,r){e(n,r),o.callback[n]=function(){t(e)}}),this};return r&&(t=e,e=[]),layui["layui.all"]||!layui["layui.all"]&&layui["layui.mobile"]?i.call(n):(n.use(e,i),n)},n.prototype.use=function(e,n,l){function s(e,t){var n="PLaySTATION 3"===navigator.platform?/^complete$/:/^(complete|loaded)$/;("load"===e.type||n.test((e.currentTarget||e.srcElement).readyState))&&(o.modules[f]=t,d.removeChild(v),function r(){return++m>1e3*o.timeout/4?i(f+" is not a valid module"):void(o.status[f]?c():setTimeout(r,4))}())}function c(){l.push(layui[f]),e.length>1?y.use(e.slice(1),n,l):"function"==typeof n&&n.apply(layui,l)}var y=this,p=o.dir=o.dir?o.dir:r,d=t.getElementsByTagName("head")[0];e="string"==typeof e?[e]:e,window.jQuery&&jQuery.fn.on&&(y.each(e,function(t,o){"jquery"===o&&e.splice(t,1)}),layui.jquery=layui.$=jQuery);var f=e[0],m=0;if(l=l||[],o.host=o.host||(p.match(/\/\/([\s\S]+?)\//)||["//"+location.host+"/"])[0],0===e.length||layui["layui.all"]&&u[f]||!layui["layui.all"]&&layui["layui.mobile"]&&u[f])return c(),y;if(o.modules[f])!function g(){return++m>1e3*o.timeout/4?i(f+" is not a valid module"):void("string"==typeof o.modules[f]&&o.status[f]?c():setTimeout(g,4))}();else{var v=t.createElement("script"),h=(u[f]?p+"lay/":/^\{\/\}/.test(y.modules[f])?"":o.base||"")+(y.modules[f]||f)+".js";h=h.replace(/^\{\/\}/,""),v.async=!0,v.charset="utf-8",v.src=h+function(){var e=o.version===!0?o.v||(new Date).getTime():o.version||"";return e?"?v="+e:""}(),d.appendChild(v),!v.attachEvent||v.attachEvent.toString&&v.attachEvent.toString().indexOf("[native code")<0||a?v.addEventListener("load",function(e){s(e,h)},!1):v.attachEvent("onreadystatechange",function(e){s(e,h)}),o.modules[f]=h}return y},n.prototype.getStyle=function(t,o){var n=t.currentStyle?t.currentStyle:e.getComputedStyle(t,null);return n[n.getPropertyValue?"getPropertyValue":"getAttribute"](o)},n.prototype.link=function(e,n,r){var a=this,u=t.createElement("link"),l=t.getElementsByTagName("head")[0];"string"==typeof n&&(r=n);var s=(r||e).replace(/\.|\//g,""),c=u.id="layuicss-"+s,y=0;return u.rel="stylesheet",u.href=e+(o.debug?"?v="+(new Date).getTime():""),u.media="all",t.getElementById(c)||l.appendChild(u),"function"!=typeof n?a:(function p(){return++y>1e3*o.timeout/100?i(e+" timeout"):void(1989===parseInt(a.getStyle(t.getElementById(c),"width"))?function(){n()}():setTimeout(p,100))}(),a)},o.callback={},n.prototype.factory=function(e){if(layui[e])return"function"==typeof o.callback[e]?o.callback[e]:null},n.prototype.addcss=function(e,t,n){return layui.link(o.dir+"css/"+e,t,n)},n.prototype.img=function(e,t,o){var n=new Image;return n.src=e,n.complete?t(n):(n.onload=function(){n.onload=null,"function"==typeof t&&t(n)},void(n.onerror=function(e){n.onerror=null,"function"==typeof o&&o(e)}))},n.prototype.config=function(e){e=e||{};for(var t in e)o[t]=e[t];return this},n.prototype.modules=function(){var e={};for(var t in u)e[t]=u[t];return e}(),n.prototype.extend=function(e){var t=this;e=e||{};for(var o in e)t[o]||t.modules[o]?i("模块名 "+o+" 已被占用"):t.modules[o]=e[o];return t},n.prototype.router=function(e){var t=this,e=e||location.hash,o={path:[],search:{},hash:(e.match(/[^#](#.*$)/)||[])[1]||""};return/^#\//.test(e)?(e=e.replace(/^#\//,""),o.href="/"+e,e=e.replace(/([^#])(#.*$)/,"$1").split("/")||[],t.each(e,function(e,t){/^\w+=/.test(t)?function(){t=t.split("="),o.search[t[0]]=t[1]}():o.path.push(t)}),o):o},n.prototype.data=function(t,o,n){if(t=t||"layui",n=n||localStorage,e.JSON&&e.JSON.parse){if(null===o)return delete n[t];o="object"==typeof o?o:{key:o};try{var r=JSON.parse(n[t])}catch(i){var r={}}return"value"in o&&(r[o.key]=o.value),o.remove&&delete r[o.key],n[t]=JSON.stringify(r),o.key?r[o.key]:r}},n.prototype.sessionData=function(e,t){return this.data(e,t,sessionStorage)},n.prototype.device=function(t){var o=navigator.userAgent.toLowerCase(),n=function(e){var t=new RegExp(e+"/([^\\s\\_\\-]+)");return e=(o.match(t)||[])[1],e||!1},r={os:function(){return/windows/.test(o)?"windows":/linux/.test(o)?"linux":/iphone|ipod|ipad|ios/.test(o)?"ios":/mac/.test(o)?"mac":void 0}(),ie:function(){return!!(e.ActiveXObject||"ActiveXObject"in e)&&((o.match(/msie\s(\d+)/)||[])[1]||"11")}(),weixin:n("micromessenger")};return t&&!r[t]&&(r[t]=n(t)),r.android=/android/.test(o),r.ios="ios"===r.os,r},n.prototype.hint=function(){return{error:i}},n.prototype.each=function(e,t){var o,n=this;if("function"!=typeof t)return n;if(e=e||[],e.constructor===Object){for(o in e)if(t.call(e[o],o,e[o]))break}else for(o=0;o<e.length&&!t.call(e[o],o,e[o]);o++);return n},n.prototype.sort=function(e,t,o){var n=JSON.parse(JSON.stringify(e||[]));return t?(n.sort(function(e,o){var n=/^-?\d+$/,r=e[t],i=o[t];return n.test(r)&&(r=parseFloat(r)),n.test(i)&&(i=parseFloat(i)),r&&!i?1:!r&&i?-1:r>i?1:r<i?-1:0}),o&&n.reverse(),n):n},n.prototype.stope=function(t){t=t||e.event;try{t.stopPropagation()}catch(o){t.cancelBubble=!0}},n.prototype.onevent=function(e,t,o){return"string"!=typeof e||"function"!=typeof o?this:n.event(e,t,null,o)},n.prototype.event=n.event=function(e,t,n,r){var i=this,a=null,u=t.match(/\((.*)\)$/)||[],l=(e+"."+t).replace(u[0],""),s=u[1]||"",c=function(e,t){var o=t&&t.call(i,n);o===!1&&null===a&&(a=!1)};return r?(o.event[l]=o.event[l]||{},o.event[l][s]=[r],this):(layui.each(o.event[l],function(e,t){return"{*}"===s?void layui.each(t,c):(""===e&&layui.each(t,c),void(e===s&&layui.each(t,c)))}),a)},e.layui=new n}(window);layui.define(function(a){var i=layui.cache;layui.config({dir:i.dir.replace(/lay\/dest\/$/,"")}),a("layui.all",layui.v)});layui.define(function(e){"use strict";var r={open:"{{",close:"}}"},c={exp:function(e){return new RegExp(e,"g")},query:function(e,c,t){var o=["#([\\s\\S])+?","([^{#}])*?"][e||0];return n((c||"")+r.open+o+r.close+(t||""))},escape:function(e){return String(e||"").replace(/&(?!#?[a-zA-Z0-9]+;)/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/'/g,"'").replace(/"/g,""")},error:function(e,r){var c="Laytpl Error:";return"object"==typeof console&&console.error(c+e+"\n"+(r||"")),c+e}},n=c.exp,t=function(e){this.tpl=e};t.pt=t.prototype,window.errors=0,t.pt.parse=function(e,t){var o=this,p=e,a=n("^"+r.open+"#",""),l=n(r.close+"$","");e=e.replace(/\s+|\r|\t|\n/g," ").replace(n(r.open+"#"),r.open+"# ").replace(n(r.close+"}"),"} "+r.close).replace(/\\/g,"\\\\").replace(n(r.open+"!(.+?)!"+r.close),function(e){return e=e.replace(n("^"+r.open+"!"),"").replace(n("!"+r.close),"").replace(n(r.open+"|"+r.close),function(e){return e.replace(/(.)/g,"\\$1")})}).replace(/(?="|')/g,"\\").replace(c.query(),function(e){return e=e.replace(a,"").replace(l,""),'";'+e.replace(/\\/g,"")+';view+="'}).replace(c.query(1),function(e){var c='"+(';return e.replace(/\s/g,"")===r.open+r.close?"":(e=e.replace(n(r.open+"|"+r.close),""),/^=/.test(e)&&(e=e.replace(/^=/,""),c='"+_escape_('),c+e.replace(/\\/g,"")+')+"')}),e='"use strict";var view = "'+e+'";return view;';try{return o.cache=e=new Function("d, _escape_",e),e(t,c.escape)}catch(u){return delete o.cache,c.error(u,p)}},t.pt.render=function(e,r){var n,t=this;return e?(n=t.cache?t.cache(e,c.escape):t.parse(t.tpl,e),r?void r(n):n):c.error("no data")};var o=function(e){return"string"!=typeof e?c.error("Template not found"):new t(e)};o.config=function(e){e=e||{};for(var c in e)r[c]=e[c]},o.v="1.2.0",e("laytpl",o)});layui.define(function(e){"use strict";var a=document,t="getElementById",n="getElementsByTagName",i="laypage",r="layui-disabled",u=function(e){var a=this;a.config=e||{},a.config.index=++s.index,a.render(!0)};u.prototype.type=function(){var e=this.config;if("object"==typeof e.elem)return void 0===e.elem.length?2:3},u.prototype.view=function(){var e=this,a=e.config,t=a.groups="groups"in a?0|a.groups:5;a.layout="object"==typeof a.layout?a.layout:["prev","page","next"],a.count=0|a.count,a.curr=0|a.curr||1,a.limits="object"==typeof a.limits?a.limits:[10,20,30,40,50],a.limit=0|a.limit||10,a.pages=Math.ceil(a.count/a.limit)||1,a.curr>a.pages&&(a.curr=a.pages),t<0?t=1:t>a.pages&&(t=a.pages),a.prev="prev"in a?a.prev:"上一页",a.next="next"in a?a.next:"下一页";var n=a.pages>t?Math.ceil((a.curr+(t>1?1:0))/(t>0?t:1)):1,i={prev:function(){return a.prev?'<a href="javascript:;" class="layui-laypage-prev'+(1==a.curr?" "+r:"")+'" data-page="'+(a.curr-1)+'">'+a.prev+"</a>":""}(),page:function(){var e=[];if(a.count<1)return"";n>1&&a.first!==!1&&0!==t&&e.push('<a href="javascript:;" class="layui-laypage-first" data-page="1" title="首页">'+(a.first||1)+"</a>");var i=Math.floor((t-1)/2),r=n>1?a.curr-i:1,u=n>1?function(){var e=a.curr+(t-i-1);return e>a.pages?a.pages:e}():t;for(u-r<t-1&&(r=u-t+1),a.first!==!1&&r>2&&e.push('<span class="layui-laypage-spr">…</span>');r<=u;r++)r===a.curr?e.push('<span class="layui-laypage-curr"><em class="layui-laypage-em" '+(/^#/.test(a.theme)?'style="background-color:'+a.theme+';"':"")+"></em><em>"+r+"</em></span>"):e.push('<a href="javascript:;" data-page="'+r+'">'+r+"</a>");return a.pages>t&&a.pages>u&&a.last!==!1&&(u+1<a.pages&&e.push('<span class="layui-laypage-spr">…</span>'),0!==t&&e.push('<a href="javascript:;" class="layui-laypage-last" title="尾页" data-page="'+a.pages+'">'+(a.last||a.pages)+"</a>")),e.join("")}(),next:function(){return a.next?'<a href="javascript:;" class="layui-laypage-next'+(a.curr==a.pages?" "+r:"")+'" data-page="'+(a.curr+1)+'">'+a.next+"</a>":""}(),count:'<span class="layui-laypage-count">共 '+a.count+" 条</span>",limit:function(){var e=['<span class="layui-laypage-limits"><select lay-ignore>'];return layui.each(a.limits,function(t,n){e.push('<option value="'+n+'"'+(n===a.limit?"selected":"")+">"+n+" 条/页</option>")}),e.join("")+"</select></span>"}(),refresh:['<a href="javascript:;" data-page="'+a.curr+'" class="layui-laypage-refresh">','<i class="layui-icon layui-icon-refresh"></i>',"</a>"].join(""),skip:function(){return['<span class="layui-laypage-skip">到第','<input type="text" min="1" value="'+a.curr+'" class="layui-input">','页<button type="button" class="layui-laypage-btn">确定</button>',"</span>"].join("")}()};return['<div class="layui-box layui-laypage layui-laypage-'+(a.theme?/^#/.test(a.theme)?"molv":a.theme:"default")+'" id="layui-laypage-'+a.index+'">',function(){var e=[];return layui.each(a.layout,function(a,t){i[t]&&e.push(i[t])}),e.join("")}(),"</div>"].join("")},u.prototype.jump=function(e,a){if(e){var t=this,i=t.config,r=e.children,u=e[n]("button")[0],l=e[n]("input")[0],p=e[n]("select")[0],c=function(){var e=0|l.value.replace(/\s|\D/g,"");e&&(i.curr=e,t.render())};if(a)return c();for(var o=0,y=r.length;o<y;o++)"a"===r[o].nodeName.toLowerCase()&&s.on(r[o],"click",function(){var e=0|this.getAttribute("data-page");e<1||e>i.pages||(i.curr=e,t.render())});p&&s.on(p,"change",function(){var e=this.value;i.curr*e>i.count&&(i.curr=Math.ceil(i.count/e)),i.limit=e,t.render()}),u&&s.on(u,"click",function(){c()})}},u.prototype.skip=function(e){if(e){var a=this,t=e[n]("input")[0];t&&s.on(t,"keyup",function(t){var n=this.value,i=t.keyCode;/^(37|38|39|40)$/.test(i)||(/\D/.test(n)&&(this.value=n.replace(/\D/,"")),13===i&&a.jump(e,!0))})}},u.prototype.render=function(e){var n=this,i=n.config,r=n.type(),u=n.view();2===r?i.elem&&(i.elem.innerHTML=u):3===r?i.elem.html(u):a[t](i.elem)&&(a[t](i.elem).innerHTML=u),i.jump&&i.jump(i,e);var s=a[t]("layui-laypage-"+i.index);n.jump(s),i.hash&&!e&&(location.hash="!"+i.hash+"="+i.curr),n.skip(s)};var s={render:function(e){var a=new u(e);return a.index},index:layui.laypage?layui.laypage.index+1e4:0,on:function(e,a,t){return e.attachEvent?e.attachEvent("on"+a,function(a){a.target=a.srcElement,t.call(e,a)}):e.addEventListener(a,t,!1),this}};e(i,s)});!function(){"use strict";var e=window.layui&&layui.define,t={getPath:function(){var e=document.currentScript?document.currentScript.src:function(){for(var e,t=document.scripts,n=t.length-1,a=n;a>0;a--)if("interactive"===t[a].readyState){e=t[a].src;break}return e||t[n].src}();return e.substring(0,e.lastIndexOf("/")+1)}(),getStyle:function(e,t){var n=e.currentStyle?e.currentStyle:window.getComputedStyle(e,null);return n[n.getPropertyValue?"getPropertyValue":"getAttribute"](t)},link:function(e,a,i){if(n.path){var r=document.getElementsByTagName("head")[0],o=document.createElement("link");"string"==typeof a&&(i=a);var s=(i||e).replace(/\.|\//g,""),l="layuicss-"+s,d=0;o.rel="stylesheet",o.href=n.path+e,o.id=l,document.getElementById(l)||r.appendChild(o),"function"==typeof a&&!function c(){return++d>80?window.console&&console.error("laydate.css: Invalid"):void(1989===parseInt(t.getStyle(document.getElementById(l),"width"))?a():setTimeout(c,100))}()}}},n={v:"5.0.9",config:{},index:window.laydate&&window.laydate.v?1e5:0,path:t.getPath,set:function(e){var t=this;return t.config=w.extend({},t.config,e),t},ready:function(a){var i="laydate",r="",o=(e?"modules/laydate/":"theme/")+"default/laydate.css?v="+n.v+r;return e?layui.addcss(o,a,i):t.link(o,a,i),this}},a=function(){var e=this;return{hint:function(t){e.hint.call(e,t)},config:e.config}},i="laydate",r=".layui-laydate",o="layui-this",s="laydate-disabled",l="开始日期超出了结束日期<br>建议重新选择",d=[100,2e5],c="layui-laydate-static",m="layui-laydate-list",u="laydate-selected",h="layui-laydate-hint",y="laydate-day-prev",f="laydate-day-next",p="layui-laydate-footer",g=".laydate-btns-confirm",v="laydate-time-text",D=".laydate-btns-time",T=function(e){var t=this;t.index=++n.index,t.config=w.extend({},t.config,n.config,e),n.ready(function(){t.init()})},w=function(e){return new C(e)},C=function(e){for(var t=0,n="object"==typeof e?[e]:(this.selector=e,document.querySelectorAll(e||null));t<n.length;t++)this.push(n[t])};C.prototype=[],C.prototype.constructor=C,w.extend=function(){var e=1,t=arguments,n=function(e,t){e=e||(t.constructor===Array?[]:{});for(var a in t)e[a]=t[a]&&t[a].constructor===Object?n(e[a],t[a]):t[a];return e};for(t[0]="object"==typeof t[0]?t[0]:{};e<t.length;e++)"object"==typeof t[e]&&n(t[0],t[e]);return t[0]},w.ie=function(){var e=navigator.userAgent.toLowerCase();return!!(window.ActiveXObject||"ActiveXObject"in window)&&((e.match(/msie\s(\d+)/)||[])[1]||"11")}(),w.stope=function(e){e=e||window.event,e.stopPropagation?e.stopPropagation():e.cancelBubble=!0},w.each=function(e,t){var n,a=this;if("function"!=typeof t)return a;if(e=e||[],e.constructor===Object){for(n in e)if(t.call(e[n],n,e[n]))break}else for(n=0;n<e.length&&!t.call(e[n],n,e[n]);n++);return a},w.digit=function(e,t,n){var a="";e=String(e),t=t||2;for(var i=e.length;i<t;i++)a+="0";return e<Math.pow(10,t)?a+(0|e):e},w.elem=function(e,t){var n=document.createElement(e);return w.each(t||{},function(e,t){n.setAttribute(e,t)}),n},C.addStr=function(e,t){return e=e.replace(/\s+/," "),t=t.replace(/\s+/," ").split(" "),w.each(t,function(t,n){new RegExp("\\b"+n+"\\b").test(e)||(e=e+" "+n)}),e.replace(/^\s|\s$/,"")},C.removeStr=function(e,t){return e=e.replace(/\s+/," "),t=t.replace(/\s+/," ").split(" "),w.each(t,function(t,n){var a=new RegExp("\\b"+n+"\\b");a.test(e)&&(e=e.replace(a,""))}),e.replace(/\s+/," ").replace(/^\s|\s$/,"")},C.prototype.find=function(e){var t=this,n=0,a=[],i="object"==typeof e;return this.each(function(r,o){for(var s=i?[e]:o.querySelectorAll(e||null);n<s.length;n++)a.push(s[n]);t.shift()}),i||(t.selector=(t.selector?t.selector+" ":"")+e),w.each(a,function(e,n){t.push(n)}),t},C.prototype.each=function(e){return w.each.call(this,this,e)},C.prototype.addClass=function(e,t){return this.each(function(n,a){a.className=C[t?"removeStr":"addStr"](a.className,e)})},C.prototype.removeClass=function(e){return this.addClass(e,!0)},C.prototype.hasClass=function(e){var t=!1;return this.each(function(n,a){new RegExp("\\b"+e+"\\b").test(a.className)&&(t=!0)}),t},C.prototype.attr=function(e,t){var n=this;return void 0===t?function(){if(n.length>0)return n[0].getAttribute(e)}():n.each(function(n,a){a.setAttribute(e,t)})},C.prototype.removeAttr=function(e){return this.each(function(t,n){n.removeAttribute(e)})},C.prototype.html=function(e){return this.each(function(t,n){n.innerHTML=e})},C.prototype.val=function(e){return this.each(function(t,n){n.value=e})},C.prototype.append=function(e){return this.each(function(t,n){"object"==typeof e?n.appendChild(e):n.innerHTML=n.innerHTML+e})},C.prototype.remove=function(e){return this.each(function(t,n){e?n.removeChild(e):n.parentNode.removeChild(n)})},C.prototype.on=function(e,t){return this.each(function(n,a){a.attachEvent?a.attachEvent("on"+e,function(e){e.target=e.srcElement,t.call(a,e)}):a.addEventListener(e,t,!1)})},C.prototype.off=function(e,t){return this.each(function(n,a){a.detachEvent?a.detachEvent("on"+e,t):a.removeEventListener(e,t,!1)})},T.isLeapYear=function(e){return e%4===0&&e%100!==0||e%400===0},T.prototype.config={type:"date",range:!1,format:"yyyy-MM-dd",value:null,isInitValue:!0,min:"1900-1-1",max:"2099-12-31",trigger:"focus",show:!1,showBottom:!0,btns:["clear","now","confirm"],lang:"cn",theme:"default",position:null,calendar:!1,mark:{},zIndex:null,done:null,change:null},T.prototype.lang=function(){var e=this,t=e.config,n={cn:{weeks:["日","一","二","三","四","五","六"],time:["时","分","秒"],timeTips:"选择时间",startTime:"开始时间",endTime:"结束时间",dateTips:"返回日期",month:["一","二","三","四","五","六","七","八","九","十","十一","十二"],tools:{confirm:"确定",clear:"清空",now:"现在"}},en:{weeks:["Su","Mo","Tu","We","Th","Fr","Sa"],time:["Hours","Minutes","Seconds"],timeTips:"Select Time",startTime:"Start Time",endTime:"End Time",dateTips:"Select Date",month:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],tools:{confirm:"Confirm",clear:"Clear",now:"Now"}}};return n[t.lang]||n.cn},T.prototype.init=function(){var e=this,t=e.config,n="yyyy|y|MM|M|dd|d|HH|H|mm|m|ss|s",a="static"===t.position,i={year:"yyyy",month:"yyyy-MM",date:"yyyy-MM-dd",time:"HH:mm:ss",datetime:"yyyy-MM-dd HH:mm:ss"};t.elem=w(t.elem),t.eventElem=w(t.eventElem),t.elem[0]&&(t.range===!0&&(t.range="-"),t.format===i.date&&(t.format=i[t.type]),e.format=t.format.match(new RegExp(n+"|.","g"))||[],e.EXP_IF="",e.EXP_SPLIT="",w.each(e.format,function(t,a){var i=new RegExp(n).test(a)?"\\d{"+function(){return new RegExp(n).test(e.format[0===t?t+1:t-1]||"")?/^yyyy|y$/.test(a)?4:a.length:/^yyyy$/.test(a)?"1,4":/^y$/.test(a)?"1,308":"1,2"}()+"}":"\\"+a;e.EXP_IF=e.EXP_IF+i,e.EXP_SPLIT=e.EXP_SPLIT+"("+i+")"}),e.EXP_IF=new RegExp("^"+(t.range?e.EXP_IF+"\\s\\"+t.range+"\\s"+e.EXP_IF:e.EXP_IF)+"$"),e.EXP_SPLIT=new RegExp("^"+e.EXP_SPLIT+"$",""),e.isInput(t.elem[0])||"focus"===t.trigger&&(t.trigger="click"),t.elem.attr("lay-key")||(t.elem.attr("lay-key",e.index),t.eventElem.attr("lay-key",e.index)),t.mark=w.extend({},t.calendar&&"cn"===t.lang?{"0-1-1":"元旦","0-2-14":"情人","0-3-8":"妇女","0-3-12":"植树","0-4-1":"愚人","0-5-1":"劳动","0-5-4":"青年","0-6-1":"儿童","0-9-10":"教师","0-9-18":"国耻","0-10-1":"国庆","0-12-25":"圣诞"}:{},t.mark),w.each(["min","max"],function(e,n){var a=[],i=[];if("number"==typeof t[n]){var r=t[n],o=(new Date).getTime(),s=864e5,l=new Date(r?r<s?o+r*s:r:o);a=[l.getFullYear(),l.getMonth()+1,l.getDate()],r<s||(i=[l.getHours(),l.getMinutes(),l.getSeconds()])}else a=(t[n].match(/\d+-\d+-\d+/)||[""])[0].split("-"),i=(t[n].match(/\d+:\d+:\d+/)||[""])[0].split(":");t[n]={year:0|a[0]||(new Date).getFullYear(),month:a[1]?(0|a[1])-1:(new Date).getMonth(),date:0|a[2]||(new Date).getDate(),hours:0|i[0],minutes:0|i[1],seconds:0|i[2]}}),e.elemID="layui-laydate"+t.elem.attr("lay-key"),(t.show||a)&&e.render(),a||e.events(),t.value&&t.isInitValue&&(t.value.constructor===Date?e.setValue(e.parse(0,e.systemDate(t.value))):e.setValue(t.value)))},T.prototype.render=function(){var e=this,t=e.config,n=e.lang(),a="static"===t.position,i=e.elem=w.elem("div",{id:e.elemID,"class":["layui-laydate",t.range?" layui-laydate-range":"",a?" "+c:"",t.theme&&"default"!==t.theme&&!/^#/.test(t.theme)?" laydate-theme-"+t.theme:""].join("")}),r=e.elemMain=[],o=e.elemHeader=[],s=e.elemCont=[],l=e.table=[],d=e.footer=w.elem("div",{"class":p});if(t.zIndex&&(i.style.zIndex=t.zIndex),w.each(new Array(2),function(e){if(!t.range&&e>0)return!0;var a=w.elem("div",{"class":"layui-laydate-header"}),i=[function(){var e=w.elem("i",{"class":"layui-icon laydate-icon laydate-prev-y"});return e.innerHTML="",e}(),function(){var e=w.elem("i",{"class":"layui-icon laydate-icon laydate-prev-m"});return e.innerHTML="",e}(),function(){var e=w.elem("div",{"class":"laydate-set-ym"}),t=w.elem("span"),n=w.elem("span");return e.appendChild(t),e.appendChild(n),e}(),function(){var e=w.elem("i",{"class":"layui-icon laydate-icon laydate-next-m"});return e.innerHTML="",e}(),function(){var e=w.elem("i",{"class":"layui-icon laydate-icon laydate-next-y"});return e.innerHTML="",e}()],d=w.elem("div",{"class":"layui-laydate-content"}),c=w.elem("table"),m=w.elem("thead"),u=w.elem("tr");w.each(i,function(e,t){a.appendChild(t)}),m.appendChild(u),w.each(new Array(6),function(e){var t=c.insertRow(0);w.each(new Array(7),function(a){if(0===e){var i=w.elem("th");i.innerHTML=n.weeks[a],u.appendChild(i)}t.insertCell(a)})}),c.insertBefore(m,c.children[0]),d.appendChild(c),r[e]=w.elem("div",{"class":"layui-laydate-main laydate-main-list-"+e}),r[e].appendChild(a),r[e].appendChild(d),o.push(i),s.push(d),l.push(c)}),w(d).html(function(){var e=[],i=[];return"datetime"===t.type&&e.push('<span lay-type="datetime" class="laydate-btns-time">'+n.timeTips+"</span>"),w.each(t.btns,function(e,r){var o=n.tools[r]||"btn";t.range&&"now"===r||(a&&"clear"===r&&(o="cn"===t.lang?"重置":"Reset"),i.push('<span lay-type="'+r+'" class="laydate-btns-'+r+'">'+o+"</span>"))}),e.push('<div class="laydate-footer-btns">'+i.join("")+"</div>"),e.join("")}()),w.each(r,function(e,t){i.appendChild(t)}),t.showBottom&&i.appendChild(d),/^#/.test(t.theme)){var m=w.elem("style"),u=["#{{id}} .layui-laydate-header{background-color:{{theme}};}","#{{id}} .layui-this{background-color:{{theme}} !important;}"].join("").replace(/{{id}}/g,e.elemID).replace(/{{theme}}/g,t.theme);"styleSheet"in m?(m.setAttribute("type","text/css"),m.styleSheet.cssText=u):m.innerHTML=u,w(i).addClass("laydate-theme-molv"),i.appendChild(m)}e.remove(T.thisElemDate),a?t.elem.append(i):(document.body.appendChild(i),e.position()),e.checkDate().calendar(),e.changeEvent(),T.thisElemDate=e.elemID,"function"==typeof t.ready&&t.ready(w.extend({},t.dateTime,{month:t.dateTime.month+1}))},T.prototype.remove=function(e){var t=this,n=(t.config,w("#"+(e||t.elemID)));return n.hasClass(c)||t.checkDate(function(){n.remove()}),t},T.prototype.position=function(){var e=this,t=e.config,n=e.bindElem||t.elem[0],a=n.getBoundingClientRect(),i=e.elem.offsetWidth,r=e.elem.offsetHeight,o=function(e){return e=e?"scrollLeft":"scrollTop",document.body[e]|document.documentElement[e]},s=function(e){return document.documentElement[e?"clientWidth":"clientHeight"]},l=5,d=a.left,c=a.bottom;d+i+l>s("width")&&(d=s("width")-i-l),c+r+l>s()&&(c=a.top>r?a.top-r:s()-r,c-=2*l),t.position&&(e.elem.style.position=t.position),e.elem.style.left=d+("fixed"===t.position?0:o(1))+"px",e.elem.style.top=c+("fixed"===t.position?0:o())+"px"},T.prototype.hint=function(e){var t=this,n=(t.config,w.elem("div",{"class":h}));t.elem&&(n.innerHTML=e||"",w(t.elem).find("."+h).remove(),t.elem.appendChild(n),clearTimeout(t.hinTimer),t.hinTimer=setTimeout(function(){w(t.elem).find("."+h).remove()},3e3))},T.prototype.getAsYM=function(e,t,n){return n?t--:t++,t<0&&(t=11,e--),t>11&&(t=0,e++),[e,t]},T.prototype.systemDate=function(e){var t=e||new Date;return{year:t.getFullYear(),month:t.getMonth(),date:t.getDate(),hours:e?e.getHours():0,minutes:e?e.getMinutes():0,seconds:e?e.getSeconds():0}},T.prototype.checkDate=function(e){var t,a,i=this,r=(new Date,i.config),o=r.dateTime=r.dateTime||i.systemDate(),s=i.bindElem||r.elem[0],l=(i.isInput(s)?"val":"html",i.isInput(s)?s.value:"static"===r.position?"":s.innerHTML),c=function(e){e.year>d[1]&&(e.year=d[1],a=!0),e.month>11&&(e.month=11,a=!0),e.hours>23&&(e.hours=0,a=!0),e.minutes>59&&(e.minutes=0,e.hours++,a=!0),e.seconds>59&&(e.seconds=0,e.minutes++,a=!0),t=n.getEndDate(e.month+1,e.year),e.date>t&&(e.date=t,a=!0)},m=function(e,t,n){var o=["startTime","endTime"];t=(t.match(i.EXP_SPLIT)||[]).slice(1),n=n||0,r.range&&(i[o[n]]=i[o[n]]||{}),w.each(i.format,function(s,l){var c=parseFloat(t[s]);t[s].length<l.length&&(a=!0),/yyyy|y/.test(l)?(c<d[0]&&(c=d[0],a=!0),e.year=c):/MM|M/.test(l)?(c<1&&(c=1,a=!0),e.month=c-1):/dd|d/.test(l)?(c<1&&(c=1,a=!0),e.date=c):/HH|H/.test(l)?(c<1&&(c=0,a=!0),e.hours=c,r.range&&(i[o[n]].hours=c)):/mm|m/.test(l)?(c<1&&(c=0,a=!0),e.minutes=c,r.range&&(i[o[n]].minutes=c)):/ss|s/.test(l)&&(c<1&&(c=0,a=!0),e.seconds=c,r.range&&(i[o[n]].seconds=c))}),c(e)};return"limit"===e?(c(o),i):(l=l||r.value,"string"==typeof l&&(l=l.replace(/\s+/g," ").replace(/^\s|\s$/g,"")),i.startState&&!i.endState&&(delete i.startState,i.endState=!0),"string"==typeof l&&l?i.EXP_IF.test(l)?r.range?(l=l.split(" "+r.range+" "),i.startDate=i.startDate||i.systemDate(),i.endDate=i.endDate||i.systemDate(),r.dateTime=w.extend({},i.startDate),w.each([i.startDate,i.endDate],function(e,t){m(t,l[e],e)})):m(o,l):(i.hint("日期格式不合法<br>必须遵循下述格式:<br>"+(r.range?r.format+" "+r.range+" "+r.format:r.format)+"<br>已为你重置"),a=!0):l&&l.constructor===Date?r.dateTime=i.systemDate(l):(r.dateTime=i.systemDate(),delete i.startState,delete i.endState,delete i.startDate,delete i.endDate,delete i.startTime,delete i.endTime),c(o),a&&l&&i.setValue(r.range?i.endDate?i.parse():"":i.parse()),e&&e(),i)},T.prototype.mark=function(e,t){var n,a=this,i=a.config;return w.each(i.mark,function(e,a){var i=e.split("-");i[0]!=t[0]&&0!=i[0]||i[1]!=t[1]&&0!=i[1]||i[2]!=t[2]||(n=a||t[2])}),n&&e.html('<span class="laydate-day-mark">'+n+"</span>"),a},T.prototype.limit=function(e,t,n,a){var i,r=this,o=r.config,l={},d=o[n>41?"endDate":"dateTime"],c=w.extend({},d,t||{});return w.each({now:c,min:o.min,max:o.max},function(e,t){l[e]=r.newDate(w.extend({year:t.year,month:t.month,date:t.date},function(){var e={};return w.each(a,function(n,a){e[a]=t[a]}),e}())).getTime()}),i=l.now<l.min||l.now>l.max,e&&e[i?"addClass":"removeClass"](s),i},T.prototype.calendar=function(e){var t,a,i,r=this,s=r.config,l=e||s.dateTime,c=new Date,m=r.lang(),u="date"!==s.type&&"datetime"!==s.type,h=e?1:0,y=w(r.table[h]).find("td"),f=w(r.elemHeader[h][2]).find("span");if(l.year<d[0]&&(l.year=d[0],r.hint("最低只能支持到公元"+d[0]+"年")),l.year>d[1]&&(l.year=d[1],r.hint("最高只能支持到公元"+d[1]+"年")),r.firstDate||(r.firstDate=w.extend({},l)),c.setFullYear(l.year,l.month,1),t=c.getDay(),a=n.getEndDate(l.month||12,l.year),i=n.getEndDate(l.month+1,l.year),w.each(y,function(e,n){var d=[l.year,l.month],c=0;n=w(n),n.removeAttr("class"),e<t?(c=a-t+e,n.addClass("laydate-day-prev"),d=r.getAsYM(l.year,l.month,"sub")):e>=t&&e<i+t?(c=e-t,s.range||c+1===l.date&&n.addClass(o)):(c=e-i-t,n.addClass("laydate-day-next"),d=r.getAsYM(l.year,l.month)),d[1]++,d[2]=c+1,n.attr("lay-ymd",d.join("-")).html(d[2]),r.mark(n,d).limit(n,{year:d[0],month:d[1]-1,date:d[2]},e)}),w(f[0]).attr("lay-ym",l.year+"-"+(l.month+1)),w(f[1]).attr("lay-ym",l.year+"-"+(l.month+1)),"cn"===s.lang?(w(f[0]).attr("lay-type","year").html(l.year+"年"),w(f[1]).attr("lay-type","month").html(l.month+1+"月")):(w(f[0]).attr("lay-type","month").html(m.month[l.month]),w(f[1]).attr("lay-type","year").html(l.year)),u&&(s.range&&(e?r.endDate=r.endDate||{year:l.year+("year"===s.type?1:0),month:l.month+("month"===s.type?0:-1)}:r.startDate=r.startDate||{year:l.year,month:l.month},e&&(r.listYM=[[r.startDate.year,r.startDate.month+1],[r.endDate.year,r.endDate.month+1]],r.list(s.type,0).list(s.type,1),"time"===s.type?r.setBtnStatus("时间",w.extend({},r.systemDate(),r.startTime),w.extend({},r.systemDate(),r.endTime)):r.setBtnStatus(!0))),s.range||(r.listYM=[[l.year,l.month+1]],r.list(s.type,0))),s.range&&!e){var p=r.getAsYM(l.year,l.month);r.calendar(w.extend({},l,{year:p[0],month:p[1]}))}return s.range||r.limit(w(r.footer).find(g),null,0,["hours","minutes","seconds"]),s.range&&e&&!u&&r.stampRange(),r},T.prototype.list=function(e,t){var n=this,a=n.config,i=a.dateTime,r=n.lang(),l=a.range&&"date"!==a.type&&"datetime"!==a.type,d=w.elem("ul",{"class":m+" "+{year:"laydate-year-list",month:"laydate-month-list",time:"laydate-time-list"}[e]}),c=n.elemHeader[t],u=w(c[2]).find("span"),h=n.elemCont[t||0],y=w(h).find("."+m)[0],f="cn"===a.lang,p=f?"年":"",T=n.listYM[t]||{},C=["hours","minutes","seconds"],x=["startTime","endTime"][t];if(T[0]<1&&(T[0]=1),"year"===e){var M,b=M=T[0]-7;b<1&&(b=M=1),w.each(new Array(15),function(e){var i=w.elem("li",{"lay-ym":M}),r={year:M};M==T[0]&&w(i).addClass(o),i.innerHTML=M+p,d.appendChild(i),M<n.firstDate.year?(r.month=a.min.month,r.date=a.min.date):M>=n.firstDate.year&&(r.month=a.max.month,r.date=a.max.date),n.limit(w(i),r,t),M++}),w(u[f?0:1]).attr("lay-ym",M-8+"-"+T[1]).html(b+p+" - "+(M-1+p))}else if("month"===e)w.each(new Array(12),function(e){var i=w.elem("li",{"lay-ym":e}),s={year:T[0],month:e};e+1==T[1]&&w(i).addClass(o),i.innerHTML=r.month[e]+(f?"月":""),d.appendChild(i),T[0]<n.firstDate.year?s.date=a.min.date:T[0]>=n.firstDate.year&&(s.date=a.max.date),n.limit(w(i),s,t)}),w(u[f?0:1]).attr("lay-ym",T[0]+"-"+T[1]).html(T[0]+p);else if("time"===e){var E=function(){w(d).find("ol").each(function(e,a){w(a).find("li").each(function(a,i){n.limit(w(i),[{hours:a},{hours:n[x].hours,minutes:a},{hours:n[x].hours,minutes:n[x].minutes,seconds:a}][e],t,[["hours"],["hours","minutes"],["hours","minutes","seconds"]][e])})}),a.range||n.limit(w(n.footer).find(g),n[x],0,["hours","minutes","seconds"])};a.range?n[x]||(n[x]={hours:0,minutes:0,seconds:0}):n[x]=i,w.each([24,60,60],function(e,t){var a=w.elem("li"),i=["<p>"+r.time[e]+"</p><ol>"];w.each(new Array(t),function(t){i.push("<li"+(n[x][C[e]]===t?' class="'+o+'"':"")+">"+w.digit(t,2)+"</li>")}),a.innerHTML=i.join("")+"</ol>",d.appendChild(a)}),E()}if(y&&h.removeChild(y),h.appendChild(d),"year"===e||"month"===e)w(n.elemMain[t]).addClass("laydate-ym-show"),w(d).find("li").on("click",function(){var r=0|w(this).attr("lay-ym");if(!w(this).hasClass(s)){if(0===t)i[e]=r,l&&(n.startDate[e]=r),n.limit(w(n.footer).find(g),null,0);else if(l)n.endDate[e]=r;else{var c="year"===e?n.getAsYM(r,T[1]-1,"sub"):n.getAsYM(T[0],r,"sub");w.extend(i,{year:c[0],month:c[1]})}"year"===a.type||"month"===a.type?(w(d).find("."+o).removeClass(o),w(this).addClass(o),"month"===a.type&&"year"===e&&(n.listYM[t][0]=r,l&&(n[["startDate","endDate"][t]].year=r),n.list("month",t))):(n.checkDate("limit").calendar(),n.closeList()),n.setBtnStatus(),a.range||n.done(null,"change"),w(n.footer).find(D).removeClass(s)}});else{var S=w.elem("span",{"class":v}),k=function(){w(d).find("ol").each(function(e){var t=this,a=w(t).find("li");t.scrollTop=30*(n[x][C[e]]-2),t.scrollTop<=0&&a.each(function(e,n){if(!w(this).hasClass(s))return t.scrollTop=30*(e-2),!0})})},H=w(c[2]).find("."+v);k(),S.innerHTML=a.range?[r.startTime,r.endTime][t]:r.timeTips,w(n.elemMain[t]).addClass("laydate-time-show"),H[0]&&H.remove(),c[2].appendChild(S),w(d).find("ol").each(function(e){var t=this;w(t).find("li").on("click",function(){var r=0|this.innerHTML;w(this).hasClass(s)||(a.range?n[x][C[e]]=r:i[C[e]]=r,w(t).find("."+o).removeClass(o),w(this).addClass(o),E(),k(),(n.endDate||"time"===a.type)&&n.done(null,"change"),n.setBtnStatus())})})}return n},T.prototype.listYM=[],T.prototype.closeList=function(){var e=this;e.config;w.each(e.elemCont,function(t,n){w(this).find("."+m).remove(),w(e.elemMain[t]).removeClass("laydate-ym-show laydate-time-show")}),w(e.elem).find("."+v).remove()},T.prototype.setBtnStatus=function(e,t,n){var a,i=this,r=i.config,o=w(i.footer).find(g),d=r.range&&"date"!==r.type&&"time"!==r.type;d&&(t=t||i.startDate,n=n||i.endDate,a=i.newDate(t).getTime()>i.newDate(n).getTime(),i.limit(null,t)||i.limit(null,n)?o.addClass(s):o[a?"addClass":"removeClass"](s),e&&a&&i.hint("string"==typeof e?l.replace(/日期/g,e):l))},T.prototype.parse=function(e,t){var n=this,a=n.config,i=t||(e?w.extend({},n.endDate,n.endTime):a.range?w.extend({},n.startDate,n.startTime):a.dateTime),r=n.format.concat();return w.each(r,function(e,t){/yyyy|y/.test(t)?r[e]=w.digit(i.year,t.length):/MM|M/.test(t)?r[e]=w.digit(i.month+1,t.length):/dd|d/.test(t)?r[e]=w.digit(i.date,t.length):/HH|H/.test(t)?r[e]=w.digit(i.hours,t.length):/mm|m/.test(t)?r[e]=w.digit(i.minutes,t.length):/ss|s/.test(t)&&(r[e]=w.digit(i.seconds,t.length))}),a.range&&!e?r.join("")+" "+a.range+" "+n.parse(1):r.join("")},T.prototype.newDate=function(e){return e=e||{},new Date(e.year||1,e.month||0,e.date||1,e.hours||0,e.minutes||0,e.seconds||0)},T.prototype.setValue=function(e){var t=this,n=t.config,a=t.bindElem||n.elem[0],i=t.isInput(a)?"val":"html";return"static"===n.position||w(a)[i](e||""),this},T.prototype.stampRange=function(){var e,t,n=this,a=n.config,i=w(n.elem).find("td");if(a.range&&!n.endDate&&w(n.footer).find(g).addClass(s),n.endDate)return e=n.newDate({year:n.startDate.year,month:n.startDate.month,date:n.startDate.date}).getTime(),t=n.newDate({year:n.endDate.year,month:n.endDate.month,date:n.endDate.date}).getTime(),e>t?n.hint(l):void w.each(i,function(a,i){var r=w(i).attr("lay-ymd").split("-"),s=n.newDate({year:r[0],month:r[1]-1,date:r[2]}).getTime();w(i).removeClass(u+" "+o),s!==e&&s!==t||w(i).addClass(w(i).hasClass(y)||w(i).hasClass(f)?u:o),s>e&&s<t&&w(i).addClass(u)})},T.prototype.done=function(e,t){var n=this,a=n.config,i=w.extend({},n.startDate?w.extend(n.startDate,n.startTime):a.dateTime),r=w.extend({},w.extend(n.endDate,n.endTime));return w.each([i,r],function(e,t){"month"in t&&w.extend(t,{month:t.month+1})}),e=e||[n.parse(),i,r],"function"==typeof a[t||"done"]&&a[t||"done"].apply(a,e),n},T.prototype.choose=function(e){var t=this,n=t.config,a=n.dateTime,i=w(t.elem).find("td"),r=e.attr("lay-ymd").split("-"),l=function(e){new Date;e&&w.extend(a,r),n.range&&(t.startDate?w.extend(t.startDate,r):t.startDate=w.extend({},r,t.startTime),t.startYMD=r)};if(r={year:0|r[0],month:(0|r[1])-1,date:0|r[2]},!e.hasClass(s))if(n.range){if(w.each(["startTime","endTime"],function(e,n){t[n]=t[n]||{hours:0,minutes:0,seconds:0}}),t.endState)l(),delete t.endState,delete t.endDate,t.startState=!0,i.removeClass(o+" "+u),e.addClass(o);else if(t.startState){if(e.addClass(o),t.endDate?w.extend(t.endDate,r):t.endDate=w.extend({},r,t.endTime),t.newDate(r).getTime()<t.newDate(t.startYMD).getTime()){var d=w.extend({},t.endDate,{hours:t.startDate.hours,minutes:t.startDate.minutes,seconds:t.startDate.seconds});w.extend(t.endDate,t.startDate,{hours:t.endDate.hours,minutes:t.endDate.minutes,seconds:t.endDate.seconds}),t.startDate=d}n.showBottom||t.done(),t.stampRange(),t.endState=!0,t.done(null,"change")}else e.addClass(o),l(),t.startState=!0;w(t.footer).find(g)[t.endDate?"removeClass":"addClass"](s)}else"static"===n.position?(l(!0),t.calendar().done().done(null,"change")):"date"===n.type?(l(!0),t.setValue(t.parse()).remove().done()):"datetime"===n.type&&(l(!0),t.calendar().done(null,"change"))},T.prototype.tool=function(e,t){var n=this,a=n.config,i=a.dateTime,r="static"===a.position,o={datetime:function(){w(e).hasClass(s)||(n.list("time",0),a.range&&n.list("time",1),w(e).attr("lay-type","date").html(n.lang().dateTips))},date:function(){n.closeList(),w(e).attr("lay-type","datetime").html(n.lang().timeTips)},clear:function(){n.setValue("").remove(),r&&(w.extend(i,n.firstDate),n.calendar()),a.range&&(delete n.startState,delete n.endState,delete n.endDate,delete n.startTime,delete n.endTime),n.done(["",{},{}])},now:function(){var e=new Date;w.extend(i,n.systemDate(),{hours:e.getHours(),minutes:e.getMinutes(),seconds:e.getSeconds()}),n.setValue(n.parse()).remove(),r&&n.calendar(),n.done()},confirm:function(){if(a.range){if(!n.endDate)return n.hint("请先选择日期范围");if(w(e).hasClass(s))return n.hint("time"===a.type?l.replace(/日期/g,"时间"):l)}else if(w(e).hasClass(s))return n.hint("不在有效日期或时间范围内");n.done(),n.setValue(n.parse()).remove()}};o[t]&&o[t]()},T.prototype.change=function(e){var t=this,n=t.config,a=n.dateTime,i=n.range&&("year"===n.type||"month"===n.type),r=t.elemCont[e||0],o=t.listYM[e],s=function(s){var l=["startDate","endDate"][e],d=w(r).find(".laydate-year-list")[0],c=w(r).find(".laydate-month-list")[0];return d&&(o[0]=s?o[0]-15:o[0]+15,t.list("year",e)),c&&(s?o[0]--:o[0]++,t.list("month",e)),(d||c)&&(w.extend(a,{year:o[0]}),i&&(t[l].year=o[0]),n.range||t.done(null,"change"),t.setBtnStatus(),n.range||t.limit(w(t.footer).find(g),{year:o[0]})),d||c};return{prevYear:function(){s("sub")||(a.year--,t.checkDate("limit").calendar(),n.range||t.done(null,"change"))},prevMonth:function(){var e=t.getAsYM(a.year,a.month,"sub");w.extend(a,{year:e[0],month:e[1]}),t.checkDate("limit").calendar(),n.range||t.done(null,"change")},nextMonth:function(){var e=t.getAsYM(a.year,a.month);w.extend(a,{year:e[0],month:e[1]}),t.checkDate("limit").calendar(),n.range||t.done(null,"change")},nextYear:function(){s()||(a.year++,t.checkDate("limit").calendar(),n.range||t.done(null,"change"))}}},T.prototype.changeEvent=function(){var e=this;e.config;w(e.elem).on("click",function(e){w.stope(e)}),w.each(e.elemHeader,function(t,n){w(n[0]).on("click",function(n){e.change(t).prevYear()}),w(n[1]).on("click",function(n){e.change(t).prevMonth()}),w(n[2]).find("span").on("click",function(n){var a=w(this),i=a.attr("lay-ym"),r=a.attr("lay-type");i&&(i=i.split("-"),e.listYM[t]=[0|i[0],0|i[1]],e.list(r,t),w(e.footer).find(D).addClass(s))}),w(n[3]).on("click",function(n){e.change(t).nextMonth()}),w(n[4]).on("click",function(n){e.change(t).nextYear()})}),w.each(e.table,function(t,n){var a=w(n).find("td");a.on("click",function(){e.choose(w(this))})}),w(e.footer).find("span").on("click",function(){var t=w(this).attr("lay-type");e.tool(this,t)})},T.prototype.isInput=function(e){return/input|textarea/.test(e.tagName.toLocaleLowerCase())},T.prototype.events=function(){var e=this,t=e.config,n=function(n,a){n.on(t.trigger,function(){a&&(e.bindElem=this),e.render()})};t.elem[0]&&!t.elem[0].eventHandler&&(n(t.elem,"bind"),n(t.eventElem),w(document).on("click",function(n){n.target!==t.elem[0]&&n.target!==t.eventElem[0]&&n.target!==w(t.closeStop)[0]&&e.remove()}).on("keydown",function(t){13===t.keyCode&&w("#"+e.elemID)[0]&&e.elemID===T.thisElem&&(t.preventDefault(),w(e.footer).find(g)[0].click())}),w(window).on("resize",function(){return!(!e.elem||!w(r)[0])&&void e.position()}),t.elem[0].eventHandler=!0)},n.render=function(e){var t=new T(e);return a.call(t)},n.getEndDate=function(e,t){var n=new Date;return n.setFullYear(t||n.getFullYear(),e||n.getMonth()+1,1),new Date(n.getTime()-864e5).getDate()},window.lay=window.lay||w,e?(n.ready(),layui.define(function(e){n.path=layui.cache.dir,e(i,n)})):"function"==typeof define&&define.amd?define(function(){return n}):function(){n.ready(),window.laydate=n}()}();!function(e,t){"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(e,t){function n(e){var t=!!e&&"length"in e&&e.length,n=pe.type(e);return"function"!==n&&!pe.isWindow(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}function r(e,t,n){if(pe.isFunction(t))return pe.grep(e,function(e,r){return!!t.call(e,r,e)!==n});if(t.nodeType)return pe.grep(e,function(e){return e===t!==n});if("string"==typeof t){if(Ce.test(t))return pe.filter(t,e,n);t=pe.filter(t,e)}return pe.grep(e,function(e){return pe.inArray(e,t)>-1!==n})}function i(e,t){do e=e[t];while(e&&1!==e.nodeType);return e}function o(e){var t={};return pe.each(e.match(De)||[],function(e,n){t[n]=!0}),t}function a(){re.addEventListener?(re.removeEventListener("DOMContentLoaded",s),e.removeEventListener("load",s)):(re.detachEvent("onreadystatechange",s),e.detachEvent("onload",s))}function s(){(re.addEventListener||"load"===e.event.type||"complete"===re.readyState)&&(a(),pe.ready())}function u(e,t,n){if(void 0===n&&1===e.nodeType){var r="data-"+t.replace(_e,"-$1").toLowerCase();if(n=e.getAttribute(r),"string"==typeof n){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:qe.test(n)?pe.parseJSON(n):n)}catch(i){}pe.data(e,t,n)}else n=void 0}return n}function l(e){var t;for(t in e)if(("data"!==t||!pe.isEmptyObject(e[t]))&&"toJSON"!==t)return!1;return!0}function c(e,t,n,r){if(He(e)){var i,o,a=pe.expando,s=e.nodeType,u=s?pe.cache:e,l=s?e[a]:e[a]&&a;if(l&&u[l]&&(r||u[l].data)||void 0!==n||"string"!=typeof t)return l||(l=s?e[a]=ne.pop()||pe.guid++:a),u[l]||(u[l]=s?{}:{toJSON:pe.noop}),"object"!=typeof t&&"function"!=typeof t||(r?u[l]=pe.extend(u[l],t):u[l].data=pe.extend(u[l].data,t)),o=u[l],r||(o.data||(o.data={}),o=o.data),void 0!==n&&(o[pe.camelCase(t)]=n),"string"==typeof t?(i=o[t],null==i&&(i=o[pe.camelCase(t)])):i=o,i}}function f(e,t,n){if(He(e)){var r,i,o=e.nodeType,a=o?pe.cache:e,s=o?e[pe.expando]:pe.expando;if(a[s]){if(t&&(r=n?a[s]:a[s].data)){pe.isArray(t)?t=t.concat(pe.map(t,pe.camelCase)):t in r?t=[t]:(t=pe.camelCase(t),t=t in r?[t]:t.split(" ")),i=t.length;for(;i--;)delete r[t[i]];if(n?!l(r):!pe.isEmptyObject(r))return}(n||(delete a[s].data,l(a[s])))&&(o?pe.cleanData([e],!0):fe.deleteExpando||a!=a.window?delete a[s]:a[s]=void 0)}}}function d(e,t,n,r){var i,o=1,a=20,s=r?function(){return r.cur()}:function(){return pe.css(e,t,"")},u=s(),l=n&&n[3]||(pe.cssNumber[t]?"":"px"),c=(pe.cssNumber[t]||"px"!==l&&+u)&&Me.exec(pe.css(e,t));if(c&&c[3]!==l){l=l||c[3],n=n||[],c=+u||1;do o=o||".5",c/=o,pe.style(e,t,c+l);while(o!==(o=s()/u)&&1!==o&&--a)}return n&&(c=+c||+u||0,i=n[1]?c+(n[1]+1)*n[2]:+n[2],r&&(r.unit=l,r.start=c,r.end=i)),i}function p(e){var t=ze.split("|"),n=e.createDocumentFragment();if(n.createElement)for(;t.length;)n.createElement(t.pop());return n}function h(e,t){var n,r,i=0,o="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):void 0;if(!o)for(o=[],n=e.childNodes||e;null!=(r=n[i]);i++)!t||pe.nodeName(r,t)?o.push(r):pe.merge(o,h(r,t));return void 0===t||t&&pe.nodeName(e,t)?pe.merge([e],o):o}function g(e,t){for(var n,r=0;null!=(n=e[r]);r++)pe._data(n,"globalEval",!t||pe._data(t[r],"globalEval"))}function m(e){Be.test(e.type)&&(e.defaultChecked=e.checked)}function y(e,t,n,r,i){for(var o,a,s,u,l,c,f,d=e.length,y=p(t),v=[],x=0;x<d;x++)if(a=e[x],a||0===a)if("object"===pe.type(a))pe.merge(v,a.nodeType?[a]:a);else if(Ue.test(a)){for(u=u||y.appendChild(t.createElement("div")),l=(We.exec(a)||["",""])[1].toLowerCase(),f=Xe[l]||Xe._default,u.innerHTML=f[1]+pe.htmlPrefilter(a)+f[2],o=f[0];o--;)u=u.lastChild;if(!fe.leadingWhitespace&&$e.test(a)&&v.push(t.createTextNode($e.exec(a)[0])),!fe.tbody)for(a="table"!==l||Ve.test(a)?"<table>"!==f[1]||Ve.test(a)?0:u:u.firstChild,o=a&&a.childNodes.length;o--;)pe.nodeName(c=a.childNodes[o],"tbody")&&!c.childNodes.length&&a.removeChild(c);for(pe.merge(v,u.childNodes),u.textContent="";u.firstChild;)u.removeChild(u.firstChild);u=y.lastChild}else v.push(t.createTextNode(a));for(u&&y.removeChild(u),fe.appendChecked||pe.grep(h(v,"input"),m),x=0;a=v[x++];)if(r&&pe.inArray(a,r)>-1)i&&i.push(a);else if(s=pe.contains(a.ownerDocument,a),u=h(y.appendChild(a),"script"),s&&g(u),n)for(o=0;a=u[o++];)Ie.test(a.type||"")&&n.push(a);return u=null,y}function v(){return!0}function x(){return!1}function b(){try{return re.activeElement}catch(e){}}function w(e,t,n,r,i,o){var a,s;if("object"==typeof t){"string"!=typeof n&&(r=r||n,n=void 0);for(s in t)w(e,s,n,r,t[s],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),i===!1)i=x;else if(!i)return e;return 1===o&&(a=i,i=function(e){return pe().off(e),a.apply(this,arguments)},i.guid=a.guid||(a.guid=pe.guid++)),e.each(function(){pe.event.add(this,t,i,r,n)})}function T(e,t){return pe.nodeName(e,"table")&&pe.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function C(e){return e.type=(null!==pe.find.attr(e,"type"))+"/"+e.type,e}function E(e){var t=it.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function N(e,t){if(1===t.nodeType&&pe.hasData(e)){var n,r,i,o=pe._data(e),a=pe._data(t,o),s=o.events;if(s){delete a.handle,a.events={};for(n in s)for(r=0,i=s[n].length;r<i;r++)pe.event.add(t,n,s[n][r])}a.data&&(a.data=pe.extend({},a.data))}}function k(e,t){var n,r,i;if(1===t.nodeType){if(n=t.nodeName.toLowerCase(),!fe.noCloneEvent&&t[pe.expando]){i=pe._data(t);for(r in i.events)pe.removeEvent(t,r,i.handle);t.removeAttribute(pe.expando)}"script"===n&&t.text!==e.text?(C(t).text=e.text,E(t)):"object"===n?(t.parentNode&&(t.outerHTML=e.outerHTML),fe.html5Clone&&e.innerHTML&&!pe.trim(t.innerHTML)&&(t.innerHTML=e.innerHTML)):"input"===n&&Be.test(e.type)?(t.defaultChecked=t.checked=e.checked,t.value!==e.value&&(t.value=e.value)):"option"===n?t.defaultSelected=t.selected=e.defaultSelected:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}}function S(e,t,n,r){t=oe.apply([],t);var i,o,a,s,u,l,c=0,f=e.length,d=f-1,p=t[0],g=pe.isFunction(p);if(g||f>1&&"string"==typeof p&&!fe.checkClone&&rt.test(p))return e.each(function(i){var o=e.eq(i);g&&(t[0]=p.call(this,i,o.html())),S(o,t,n,r)});if(f&&(l=y(t,e[0].ownerDocument,!1,e,r),i=l.firstChild,1===l.childNodes.length&&(l=i),i||r)){for(s=pe.map(h(l,"script"),C),a=s.length;c<f;c++)o=l,c!==d&&(o=pe.clone(o,!0,!0),a&&pe.merge(s,h(o,"script"))),n.call(e[c],o,c);if(a)for(u=s[s.length-1].ownerDocument,pe.map(s,E),c=0;c<a;c++)o=s[c],Ie.test(o.type||"")&&!pe._data(o,"globalEval")&&pe.contains(u,o)&&(o.src?pe._evalUrl&&pe._evalUrl(o.src):pe.globalEval((o.text||o.textContent||o.innerHTML||"").replace(ot,"")));l=i=null}return e}function A(e,t,n){for(var r,i=t?pe.filter(t,e):e,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||pe.cleanData(h(r)),r.parentNode&&(n&&pe.contains(r.ownerDocument,r)&&g(h(r,"script")),r.parentNode.removeChild(r));return e}function D(e,t){var n=pe(t.createElement(e)).appendTo(t.body),r=pe.css(n[0],"display");return n.detach(),r}function j(e){var t=re,n=lt[e];return n||(n=D(e,t),"none"!==n&&n||(ut=(ut||pe("<iframe frameborder='0' width='0' height='0'/>")).appendTo(t.documentElement),t=(ut[0].contentWindow||ut[0].contentDocument).document,t.write(),t.close(),n=D(e,t),ut.detach()),lt[e]=n),n}function L(e,t){return{get:function(){return e()?void delete this.get:(this.get=t).apply(this,arguments)}}}function H(e){if(e in Et)return e;for(var t=e.charAt(0).toUpperCase()+e.slice(1),n=Ct.length;n--;)if(e=Ct[n]+t,e in Et)return e}function q(e,t){for(var n,r,i,o=[],a=0,s=e.length;a<s;a++)r=e[a],r.style&&(o[a]=pe._data(r,"olddisplay"),n=r.style.display,t?(o[a]||"none"!==n||(r.style.display=""),""===r.style.display&&Re(r)&&(o[a]=pe._data(r,"olddisplay",j(r.nodeName)))):(i=Re(r),(n&&"none"!==n||!i)&&pe._data(r,"olddisplay",i?n:pe.css(r,"display"))));for(a=0;a<s;a++)r=e[a],r.style&&(t&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=t?o[a]||"":"none"));return e}function _(e,t,n){var r=bt.exec(t);return r?Math.max(0,r[1]-(n||0))+(r[2]||"px"):t}function F(e,t,n,r,i){for(var o=n===(r?"border":"content")?4:"width"===t?1:0,a=0;o<4;o+=2)"margin"===n&&(a+=pe.css(e,n+Oe[o],!0,i)),r?("content"===n&&(a-=pe.css(e,"padding"+Oe[o],!0,i)),"margin"!==n&&(a-=pe.css(e,"border"+Oe[o]+"Width",!0,i))):(a+=pe.css(e,"padding"+Oe[o],!0,i),"padding"!==n&&(a+=pe.css(e,"border"+Oe[o]+"Width",!0,i)));return a}function M(t,n,r){var i=!0,o="width"===n?t.offsetWidth:t.offsetHeight,a=ht(t),s=fe.boxSizing&&"border-box"===pe.css(t,"boxSizing",!1,a);if(re.msFullscreenElement&&e.top!==e&&t.getClientRects().length&&(o=Math.round(100*t.getBoundingClientRect()[n])),o<=0||null==o){if(o=gt(t,n,a),(o<0||null==o)&&(o=t.style[n]),ft.test(o))return o;i=s&&(fe.boxSizingReliable()||o===t.style[n]),o=parseFloat(o)||0}return o+F(t,n,r||(s?"border":"content"),i,a)+"px"}function O(e,t,n,r,i){return new O.prototype.init(e,t,n,r,i)}function R(){return e.setTimeout(function(){Nt=void 0}),Nt=pe.now()}function P(e,t){var n,r={height:e},i=0;for(t=t?1:0;i<4;i+=2-t)n=Oe[i],r["margin"+n]=r["padding"+n]=e;return t&&(r.opacity=r.width=e),r}function B(e,t,n){for(var r,i=($.tweeners[t]||[]).concat($.tweeners["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,t,e))return r}function W(e,t,n){var r,i,o,a,s,u,l,c,f=this,d={},p=e.style,h=e.nodeType&&Re(e),g=pe._data(e,"fxshow");n.queue||(s=pe._queueHooks(e,"fx"),null==s.unqueued&&(s.unqueued=0,u=s.empty.fire,s.empty.fire=function(){s.unqueued||u()}),s.unqueued++,f.always(function(){f.always(function(){s.unqueued--,pe.queue(e,"fx").length||s.empty.fire()})})),1===e.nodeType&&("height"in t||"width"in t)&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],l=pe.css(e,"display"),c="none"===l?pe._data(e,"olddisplay")||j(e.nodeName):l,"inline"===c&&"none"===pe.css(e,"float")&&(fe.inlineBlockNeedsLayout&&"inline"!==j(e.nodeName)?p.zoom=1:p.display="inline-block")),n.overflow&&(p.overflow="hidden",fe.shrinkWrapBlocks()||f.always(function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]}));for(r in t)if(i=t[r],St.exec(i)){if(delete t[r],o=o||"toggle"===i,i===(h?"hide":"show")){if("show"!==i||!g||void 0===g[r])continue;h=!0}d[r]=g&&g[r]||pe.style(e,r)}else l=void 0;if(pe.isEmptyObject(d))"inline"===("none"===l?j(e.nodeName):l)&&(p.display=l);else{g?"hidden"in g&&(h=g.hidden):g=pe._data(e,"fxshow",{}),o&&(g.hidden=!h),h?pe(e).show():f.done(function(){pe(e).hide()}),f.done(function(){var t;pe._removeData(e,"fxshow");for(t in d)pe.style(e,t,d[t])});for(r in d)a=B(h?g[r]:0,r,f),r in g||(g[r]=a.start,h&&(a.end=a.start,a.start="width"===r||"height"===r?1:0))}}function I(e,t){var n,r,i,o,a;for(n in e)if(r=pe.camelCase(n),i=t[r],o=e[n],pe.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),a=pe.cssHooks[r],a&&"expand"in a){o=a.expand(o),delete e[r];for(n in o)n in e||(e[n]=o[n],t[n]=i)}else t[r]=i}function $(e,t,n){var r,i,o=0,a=$.prefilters.length,s=pe.Deferred().always(function(){delete u.elem}),u=function(){if(i)return!1;for(var t=Nt||R(),n=Math.max(0,l.startTime+l.duration-t),r=n/l.duration||0,o=1-r,a=0,u=l.tweens.length;a<u;a++)l.tweens[a].run(o);return s.notifyWith(e,[l,o,n]),o<1&&u?n:(s.resolveWith(e,[l]),!1)},l=s.promise({elem:e,props:pe.extend({},t),opts:pe.extend(!0,{specialEasing:{},easing:pe.easing._default},n),originalProperties:t,originalOptions:n,startTime:Nt||R(),duration:n.duration,tweens:[],createTween:function(t,n){var r=pe.Tween(e,l.opts,t,n,l.opts.specialEasing[t]||l.opts.easing);return l.tweens.push(r),r},stop:function(t){var n=0,r=t?l.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)l.tweens[n].run(1);return t?(s.notifyWith(e,[l,1,0]),s.resolveWith(e,[l,t])):s.rejectWith(e,[l,t]),this}}),c=l.props;for(I(c,l.opts.specialEasing);o<a;o++)if(r=$.prefilters[o].call(l,e,c,l.opts))return pe.isFunction(r.stop)&&(pe._queueHooks(l.elem,l.opts.queue).stop=pe.proxy(r.stop,r)),r;return pe.map(c,B,l),pe.isFunction(l.opts.start)&&l.opts.start.call(e,l),pe.fx.timer(pe.extend(u,{elem:e,anim:l,queue:l.opts.queue})),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always)}function z(e){return pe.attr(e,"class")||""}function X(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,o=t.toLowerCase().match(De)||[];if(pe.isFunction(n))for(;r=o[i++];)"+"===r.charAt(0)?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function U(e,t,n,r){function i(s){var u;return o[s]=!0,pe.each(e[s]||[],function(e,s){var l=s(t,n,r);return"string"!=typeof l||a||o[l]?a?!(u=l):void 0:(t.dataTypes.unshift(l),i(l),!1)}),u}var o={},a=e===Qt;return i(t.dataTypes[0])||!o["*"]&&i("*")}function V(e,t){var n,r,i=pe.ajaxSettings.flatOptions||{};for(r in t)void 0!==t[r]&&((i[r]?e:n||(n={}))[r]=t[r]);return n&&pe.extend(!0,e,n),e}function Y(e,t,n){for(var r,i,o,a,s=e.contents,u=e.dataTypes;"*"===u[0];)u.shift(),void 0===i&&(i=e.mimeType||t.getResponseHeader("Content-Type"));if(i)for(a in s)if(s[a]&&s[a].test(i)){u.unshift(a);break}if(u[0]in n)o=u[0];else{for(a in n){if(!u[0]||e.converters[a+" "+u[0]]){o=a;break}r||(r=a)}o=o||r}if(o)return o!==u[0]&&u.unshift(o),n[o]}function J(e,t,n,r){var i,o,a,s,u,l={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)l[a.toLowerCase()]=e.converters[a];for(o=c.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!u&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u=o,o=c.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(a=l[u+" "+o]||l["* "+o],!a)for(i in l)if(s=i.split(" "),s[1]===o&&(a=l[u+" "+s[0]]||l["* "+s[0]])){a===!0?a=l[i]:l[i]!==!0&&(o=s[0],c.unshift(s[1]));break}if(a!==!0)if(a&&e["throws"])t=a(t);else try{t=a(t)}catch(f){return{state:"parsererror",error:a?f:"No conversion from "+u+" to "+o}}}return{state:"success",data:t}}function G(e){return e.style&&e.style.display||pe.css(e,"display")}function K(e){for(;e&&1===e.nodeType;){if("none"===G(e)||"hidden"===e.type)return!0;e=e.parentNode}return!1}function Q(e,t,n,r){var i;if(pe.isArray(t))pe.each(t,function(t,i){n||rn.test(e)?r(e,i):Q(e+"["+("object"==typeof i&&null!=i?t:"")+"]",i,n,r)});else if(n||"object"!==pe.type(t))r(e,t);else for(i in t)Q(e+"["+i+"]",t[i],n,r)}function Z(){try{return new e.XMLHttpRequest}catch(t){}}function ee(){try{return new e.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}function te(e){return pe.isWindow(e)?e:9===e.nodeType&&(e.defaultView||e.parentWindow)}var ne=[],re=e.document,ie=ne.slice,oe=ne.concat,ae=ne.push,se=ne.indexOf,ue={},le=ue.toString,ce=ue.hasOwnProperty,fe={},de="1.12.3",pe=function(e,t){return new pe.fn.init(e,t)},he=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,ge=/^-ms-/,me=/-([\da-z])/gi,ye=function(e,t){return t.toUpperCase()};pe.fn=pe.prototype={jquery:de,constructor:pe,selector:"",length:0,toArray:function(){return ie.call(this)},get:function(e){return null!=e?e<0?this[e+this.length]:this[e]:ie.call(this)},pushStack:function(e){var t=pe.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e){return pe.each(this,e)},map:function(e){return this.pushStack(pe.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(ie.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:ae,sort:ne.sort,splice:ne.splice},pe.extend=pe.fn.extend=function(){var e,t,n,r,i,o,a=arguments[0]||{},s=1,u=arguments.length,l=!1;for("boolean"==typeof a&&(l=a,a=arguments[s]||{},s++),"object"==typeof a||pe.isFunction(a)||(a={}),s===u&&(a=this,s--);s<u;s++)if(null!=(i=arguments[s]))for(r in i)e=a[r],n=i[r],a!==n&&(l&&n&&(pe.isPlainObject(n)||(t=pe.isArray(n)))?(t?(t=!1,o=e&&pe.isArray(e)?e:[]):o=e&&pe.isPlainObject(e)?e:{},a[r]=pe.extend(l,o,n)):void 0!==n&&(a[r]=n));return a},pe.extend({expando:"jQuery"+(de+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return"function"===pe.type(e)},isArray:Array.isArray||function(e){return"array"===pe.type(e)},isWindow:function(e){return null!=e&&e==e.window},isNumeric:function(e){var t=e&&e.toString();return!pe.isArray(e)&&t-parseFloat(t)+1>=0},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},isPlainObject:function(e){var t;if(!e||"object"!==pe.type(e)||e.nodeType||pe.isWindow(e))return!1;try{if(e.constructor&&!ce.call(e,"constructor")&&!ce.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(n){return!1}if(!fe.ownFirst)for(t in e)return ce.call(e,t);for(t in e);return void 0===t||ce.call(e,t)},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?ue[le.call(e)]||"object":typeof e},globalEval:function(t){t&&pe.trim(t)&&(e.execScript||function(t){e.eval.call(e,t)})(t)},camelCase:function(e){return e.replace(ge,"ms-").replace(me,ye)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t){var r,i=0;if(n(e))for(r=e.length;i<r&&t.call(e[i],i,e[i])!==!1;i++);else for(i in e)if(t.call(e[i],i,e[i])===!1)break;return e},trim:function(e){return null==e?"":(e+"").replace(he,"")},makeArray:function(e,t){var r=t||[];return null!=e&&(n(Object(e))?pe.merge(r,"string"==typeof e?[e]:e):ae.call(r,e)),r},inArray:function(e,t,n){var r;if(t){if(se)return se.call(t,e,n);for(r=t.length,n=n?n<0?Math.max(0,r+n):n:0;n<r;n++)if(n in t&&t[n]===e)return n}return-1},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;)e[i++]=t[r++];if(n!==n)for(;void 0!==t[r];)e[i++]=t[r++];return e.length=i,e},grep:function(e,t,n){for(var r,i=[],o=0,a=e.length,s=!n;o<a;o++)r=!t(e[o],o),r!==s&&i.push(e[o]);return i},map:function(e,t,r){var i,o,a=0,s=[];if(n(e))for(i=e.length;a<i;a++)o=t(e[a],a,r),null!=o&&s.push(o);else for(a in e)o=t(e[a],a,r),null!=o&&s.push(o);return oe.apply([],s)},guid:1,proxy:function(e,t){var n,r,i;if("string"==typeof t&&(i=e[t],t=e,e=i),pe.isFunction(e))return n=ie.call(arguments,2),r=function(){return e.apply(t||this,n.concat(ie.call(arguments)))},r.guid=e.guid=e.guid||pe.guid++,r},now:function(){return+new Date},support:fe}),"function"==typeof Symbol&&(pe.fn[Symbol.iterator]=ne[Symbol.iterator]),pe.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){ue["[object "+t+"]"]=t.toLowerCase()});var ve=function(e){function t(e,t,n,r){var i,o,a,s,u,l,f,p,h=t&&t.ownerDocument,g=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==g&&9!==g&&11!==g)return n;if(!r&&((t?t.ownerDocument||t:B)!==H&&L(t),t=t||H,_)){if(11!==g&&(l=ye.exec(e)))if(i=l[1]){if(9===g){if(!(a=t.getElementById(i)))return n;if(a.id===i)return n.push(a),n}else if(h&&(a=h.getElementById(i))&&R(t,a)&&a.id===i)return n.push(a),n}else{if(l[2])return Q.apply(n,t.getElementsByTagName(e)),n;if((i=l[3])&&w.getElementsByClassName&&t.getElementsByClassName)return Q.apply(n,t.getElementsByClassName(i)),n}if(w.qsa&&!X[e+" "]&&(!F||!F.test(e))){if(1!==g)h=t,p=e;else if("object"!==t.nodeName.toLowerCase()){for((s=t.getAttribute("id"))?s=s.replace(xe,"\\$&"):t.setAttribute("id",s=P),f=N(e),o=f.length,u=de.test(s)?"#"+s:"[id='"+s+"']";o--;)f[o]=u+" "+d(f[o]);p=f.join(","),h=ve.test(e)&&c(t.parentNode)||t}if(p)try{return Q.apply(n,h.querySelectorAll(p)),n}catch(m){}finally{s===P&&t.removeAttribute("id")}}}return S(e.replace(se,"$1"),t,n,r)}function n(){function e(n,r){return t.push(n+" ")>T.cacheLength&&delete e[t.shift()],e[n+" "]=r}var t=[];return e}function r(e){return e[P]=!0,e}function i(e){var t=H.createElement("div");try{return!!e(t)}catch(n){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function o(e,t){for(var n=e.split("|"),r=n.length;r--;)T.attrHandle[n[r]]=t}function a(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||V)-(~e.sourceIndex||V);if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function s(e){return function(t){var n=t.nodeName.toLowerCase();return"input"===n&&t.type===e}}function u(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function l(e){return r(function(t){return t=+t,r(function(n,r){for(var i,o=e([],n.length,t),a=o.length;a--;)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))})})}function c(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}function f(){}function d(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function p(e,t,n){var r=t.dir,i=n&&"parentNode"===r,o=I++;return t.first?function(t,n,o){for(;t=t[r];)if(1===t.nodeType||i)return e(t,n,o)}:function(t,n,a){var s,u,l,c=[W,o];if(a){for(;t=t[r];)if((1===t.nodeType||i)&&e(t,n,a))return!0}else for(;t=t[r];)if(1===t.nodeType||i){if(l=t[P]||(t[P]={}),u=l[t.uniqueID]||(l[t.uniqueID]={}),(s=u[r])&&s[0]===W&&s[1]===o)return c[2]=s[2];if(u[r]=c,c[2]=e(t,n,a))return!0}}}function h(e){return e.length>1?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function g(e,n,r){for(var i=0,o=n.length;i<o;i++)t(e,n[i],r);return r}function m(e,t,n,r,i){for(var o,a=[],s=0,u=e.length,l=null!=t;s<u;s++)(o=e[s])&&(n&&!n(o,r,i)||(a.push(o),l&&t.push(s)));return a}function y(e,t,n,i,o,a){return i&&!i[P]&&(i=y(i)),o&&!o[P]&&(o=y(o,a)),r(function(r,a,s,u){var l,c,f,d=[],p=[],h=a.length,y=r||g(t||"*",s.nodeType?[s]:s,[]),v=!e||!r&&t?y:m(y,d,e,s,u),x=n?o||(r?e:h||i)?[]:a:v;if(n&&n(v,x,s,u),i)for(l=m(x,p),i(l,[],s,u),c=l.length;c--;)(f=l[c])&&(x[p[c]]=!(v[p[c]]=f));if(r){if(o||e){if(o){for(l=[],c=x.length;c--;)(f=x[c])&&l.push(v[c]=f);o(null,x=[],l,u)}for(c=x.length;c--;)(f=x[c])&&(l=o?ee(r,f):d[c])>-1&&(r[l]=!(a[l]=f))}}else x=m(x===a?x.splice(h,x.length):x),o?o(null,a,x,u):Q.apply(a,x)})}function v(e){for(var t,n,r,i=e.length,o=T.relative[e[0].type],a=o||T.relative[" "],s=o?1:0,u=p(function(e){return e===t},a,!0),l=p(function(e){return ee(t,e)>-1},a,!0),c=[function(e,n,r){var i=!o&&(r||n!==A)||((t=n).nodeType?u(e,n,r):l(e,n,r));return t=null,i}];s<i;s++)if(n=T.relative[e[s].type])c=[p(h(c),n)];else{if(n=T.filter[e[s].type].apply(null,e[s].matches),n[P]){for(r=++s;r<i&&!T.relative[e[r].type];r++);return y(s>1&&h(c),s>1&&d(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(se,"$1"),n,s<r&&v(e.slice(s,r)),r<i&&v(e=e.slice(r)),r<i&&d(e))}c.push(n)}return h(c)}function x(e,n){var i=n.length>0,o=e.length>0,a=function(r,a,s,u,l){var c,f,d,p=0,h="0",g=r&&[],y=[],v=A,x=r||o&&T.find.TAG("*",l),b=W+=null==v?1:Math.random()||.1,w=x.length;for(l&&(A=a===H||a||l);h!==w&&null!=(c=x[h]);h++){if(o&&c){for(f=0,a||c.ownerDocument===H||(L(c),s=!_);d=e[f++];)if(d(c,a||H,s)){u.push(c);break}l&&(W=b)}i&&((c=!d&&c)&&p--,r&&g.push(c))}if(p+=h,i&&h!==p){for(f=0;d=n[f++];)d(g,y,a,s);if(r){if(p>0)for(;h--;)g[h]||y[h]||(y[h]=G.call(u));y=m(y)}Q.apply(u,y),l&&!r&&y.length>0&&p+n.length>1&&t.uniqueSort(u)}return l&&(W=b,A=v),g};return i?r(a):a}var b,w,T,C,E,N,k,S,A,D,j,L,H,q,_,F,M,O,R,P="sizzle"+1*new Date,B=e.document,W=0,I=0,$=n(),z=n(),X=n(),U=function(e,t){return e===t&&(j=!0),0},V=1<<31,Y={}.hasOwnProperty,J=[],G=J.pop,K=J.push,Q=J.push,Z=J.slice,ee=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},te="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",ne="[\\x20\\t\\r\\n\\f]",re="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",ie="\\["+ne+"*("+re+")(?:"+ne+"*([*^$|!~]?=)"+ne+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+re+"))|)"+ne+"*\\]",oe=":("+re+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+ie+")*)|.*)\\)|)",ae=new RegExp(ne+"+","g"),se=new RegExp("^"+ne+"+|((?:^|[^\\\\])(?:\\\\.)*)"+ne+"+$","g"),ue=new RegExp("^"+ne+"*,"+ne+"*"),le=new RegExp("^"+ne+"*([>+~]|"+ne+")"+ne+"*"),ce=new RegExp("="+ne+"*([^\\]'\"]*?)"+ne+"*\\]","g"),fe=new RegExp(oe),de=new RegExp("^"+re+"$"),pe={ID:new RegExp("^#("+re+")"),CLASS:new RegExp("^\\.("+re+")"),TAG:new RegExp("^("+re+"|[*])"),ATTR:new RegExp("^"+ie),PSEUDO:new RegExp("^"+oe),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ne+"*(even|odd|(([+-]|)(\\d*)n|)"+ne+"*(?:([+-]|)"+ne+"*(\\d+)|))"+ne+"*\\)|)","i"),bool:new RegExp("^(?:"+te+")$","i"),needsContext:new RegExp("^"+ne+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ne+"*((?:-\\d)?\\d*)"+ne+"*\\)|)(?=[^-]|$)","i")},he=/^(?:input|select|textarea|button)$/i,ge=/^h\d$/i,me=/^[^{]+\{\s*\[native \w/,ye=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ve=/[+~]/,xe=/'|\\/g,be=new RegExp("\\\\([\\da-f]{1,6}"+ne+"?|("+ne+")|.)","ig"),we=function(e,t,n){var r="0x"+t-65536;return r!==r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},Te=function(){L()};try{Q.apply(J=Z.call(B.childNodes),B.childNodes),J[B.childNodes.length].nodeType}catch(Ce){Q={apply:J.length?function(e,t){K.apply(e,Z.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}w=t.support={},E=t.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},L=t.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:B;return r!==H&&9===r.nodeType&&r.documentElement?(H=r,q=H.documentElement,_=!E(H),(n=H.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",Te,!1):n.attachEvent&&n.attachEvent("onunload",Te)),w.attributes=i(function(e){return e.className="i",!e.getAttribute("className")}),w.getElementsByTagName=i(function(e){return e.appendChild(H.createComment("")),!e.getElementsByTagName("*").length}),w.getElementsByClassName=me.test(H.getElementsByClassName),w.getById=i(function(e){return q.appendChild(e).id=P,!H.getElementsByName||!H.getElementsByName(P).length}),w.getById?(T.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&_){var n=t.getElementById(e);return n?[n]:[]}},T.filter.ID=function(e){var t=e.replace(be,we);return function(e){return e.getAttribute("id")===t}}):(delete T.find.ID,T.filter.ID=function(e){var t=e.replace(be,we);return function(e){var n="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}}),T.find.TAG=w.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):w.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},T.find.CLASS=w.getElementsByClassName&&function(e,t){if("undefined"!=typeof t.getElementsByClassName&&_)return t.getElementsByClassName(e)},M=[],F=[],(w.qsa=me.test(H.querySelectorAll))&&(i(function(e){q.appendChild(e).innerHTML="<a id='"+P+"'></a><select id='"+P+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&F.push("[*^$]="+ne+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||F.push("\\["+ne+"*(?:value|"+te+")"),e.querySelectorAll("[id~="+P+"-]").length||F.push("~="),e.querySelectorAll(":checked").length||F.push(":checked"),e.querySelectorAll("a#"+P+"+*").length||F.push(".#.+[+~]")}),i(function(e){var t=H.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&F.push("name"+ne+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||F.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),F.push(",.*:")})),(w.matchesSelector=me.test(O=q.matches||q.webkitMatchesSelector||q.mozMatchesSelector||q.oMatchesSelector||q.msMatchesSelector))&&i(function(e){w.disconnectedMatch=O.call(e,"div"),O.call(e,"[s!='']:x"),M.push("!=",oe)}),F=F.length&&new RegExp(F.join("|")),M=M.length&&new RegExp(M.join("|")),t=me.test(q.compareDocumentPosition),R=t||me.test(q.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},U=t?function(e,t){if(e===t)return j=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n?n:(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1,1&n||!w.sortDetached&&t.compareDocumentPosition(e)===n?e===H||e.ownerDocument===B&&R(B,e)?-1:t===H||t.ownerDocument===B&&R(B,t)?1:D?ee(D,e)-ee(D,t):0:4&n?-1:1)}:function(e,t){if(e===t)return j=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,s=[e],u=[t];if(!i||!o)return e===H?-1:t===H?1:i?-1:o?1:D?ee(D,e)-ee(D,t):0;if(i===o)return a(e,t);for(n=e;n=n.parentNode;)s.unshift(n);for(n=t;n=n.parentNode;)u.unshift(n);for(;s[r]===u[r];)r++;return r?a(s[r],u[r]):s[r]===B?-1:u[r]===B?1:0},H):H},t.matches=function(e,n){return t(e,null,null,n)},t.matchesSelector=function(e,n){if((e.ownerDocument||e)!==H&&L(e),n=n.replace(ce,"='$1']"),w.matchesSelector&&_&&!X[n+" "]&&(!M||!M.test(n))&&(!F||!F.test(n)))try{var r=O.call(e,n);if(r||w.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(i){}return t(n,H,null,[e]).length>0},t.contains=function(e,t){return(e.ownerDocument||e)!==H&&L(e),R(e,t)},t.attr=function(e,t){(e.ownerDocument||e)!==H&&L(e);var n=T.attrHandle[t.toLowerCase()],r=n&&Y.call(T.attrHandle,t.toLowerCase())?n(e,t,!_):void 0;return void 0!==r?r:w.attributes||!_?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},t.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},t.uniqueSort=function(e){var t,n=[],r=0,i=0;if(j=!w.detectDuplicates,D=!w.sortStable&&e.slice(0),e.sort(U),j){for(;t=e[i++];)t===e[i]&&(r=n.push(i));for(;r--;)e.splice(n[r],1)}return D=null,e},C=t.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=C(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r++];)n+=C(t);return n},T=t.selectors={cacheLength:50,createPseudo:r,match:pe,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(be,we),e[3]=(e[3]||e[4]||e[5]||"").replace(be,we),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||t.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&t.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return pe.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&fe.test(n)&&(t=N(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(be,we).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=$[e+" "];return t||(t=new RegExp("(^|"+ne+")"+e+"("+ne+"|$)"))&&$(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,n,r){return function(i){var o=t.attr(i,e);return null==o?"!="===n:!n||(o+="","="===n?o===r:"!="===n?o!==r:"^="===n?r&&0===o.indexOf(r):"*="===n?r&&o.indexOf(r)>-1:"$="===n?r&&o.slice(-r.length)===r:"~="===n?(" "+o.replace(ae," ")+" ").indexOf(r)>-1:"|="===n&&(o===r||o.slice(0,r.length+1)===r+"-"))}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,u){var l,c,f,d,p,h,g=o!==a?"nextSibling":"previousSibling",m=t.parentNode,y=s&&t.nodeName.toLowerCase(),v=!u&&!s,x=!1;if(m){if(o){for(;g;){for(d=t;d=d[g];)if(s?d.nodeName.toLowerCase()===y:1===d.nodeType)return!1;h=g="only"===e&&!h&&"nextSibling"}return!0}if(h=[a?m.firstChild:m.lastChild],a&&v){for(d=m,f=d[P]||(d[P]={}),c=f[d.uniqueID]||(f[d.uniqueID]={}), +/** layui-v2.5.4 MIT License By https://www.layui.com */ + ;!function(e){"use strict";var t=document,o={modules:{},status:{},timeout:10,event:{}},n=function(){this.v="2.5.4"},r=function(){var e=t.currentScript?t.currentScript.src:function(){for(var e,o=t.scripts,n=o.length-1,r=n;r>0;r--)if("interactive"===o[r].readyState){e=o[r].src;break}return e||o[n].src}();return e.substring(0,e.lastIndexOf("/")+1)}(),i=function(t){e.console&&console.error&&console.error("Layui hint: "+t)},a="undefined"!=typeof opera&&"[object Opera]"===opera.toString(),u={layer:"modules/layer",laydate:"modules/laydate",laypage:"modules/laypage",laytpl:"modules/laytpl",layim:"modules/layim",layedit:"modules/layedit",form:"modules/form",upload:"modules/upload",transfer:"modules/transfer",tree:"modules/tree",table:"modules/table",element:"modules/element",rate:"modules/rate",colorpicker:"modules/colorpicker",slider:"modules/slider",carousel:"modules/carousel",flow:"modules/flow",util:"modules/util",code:"modules/code",jquery:"modules/jquery",mobile:"modules/mobile","layui.all":"../layui.all"};n.prototype.cache=o,n.prototype.define=function(e,t){var n=this,r="function"==typeof e,i=function(){var e=function(e,t){layui[e]=t,o.status[e]=!0};return"function"==typeof t&&t(function(n,r){e(n,r),o.callback[n]=function(){t(e)}}),this};return r&&(t=e,e=[]),!layui["layui.all"]&&layui["layui.mobile"]?i.call(n):(n.use(e,i),n)},n.prototype.use=function(e,n,l){function s(e,t){var n="PLaySTATION 3"===navigator.platform?/^complete$/:/^(complete|loaded)$/;("load"===e.type||n.test((e.currentTarget||e.srcElement).readyState))&&(o.modules[f]=t,d.removeChild(v),function r(){return++m>1e3*o.timeout/4?i(f+" is not a valid module"):void(o.status[f]?c():setTimeout(r,4))}())}function c(){l.push(layui[f]),e.length>1?y.use(e.slice(1),n,l):"function"==typeof n&&n.apply(layui,l)}var y=this,p=o.dir=o.dir?o.dir:r,d=t.getElementsByTagName("head")[0];e="string"==typeof e?[e]:e,window.jQuery&&jQuery.fn.on&&(y.each(e,function(t,o){"jquery"===o&&e.splice(t,1)}),layui.jquery=layui.$=jQuery);var f=e[0],m=0;if(l=l||[],o.host=o.host||(p.match(/\/\/([\s\S]+?)\//)||["//"+location.host+"/"])[0],0===e.length||layui["layui.all"]&&u[f]||!layui["layui.all"]&&layui["layui.mobile"]&&u[f])return c(),y;if(o.modules[f])!function g(){return++m>1e3*o.timeout/4?i(f+" is not a valid module"):void("string"==typeof o.modules[f]&&o.status[f]?c():setTimeout(g,4))}();else{var v=t.createElement("script"),h=(u[f]?p+"lay/":/^\{\/\}/.test(y.modules[f])?"":o.base||"")+(y.modules[f]||f)+".js";h=h.replace(/^\{\/\}/,""),v.async=!0,v.charset="utf-8",v.src=h+function(){var e=o.version===!0?o.v||(new Date).getTime():o.version||"";return e?"?v="+e:""}(),d.appendChild(v),!v.attachEvent||v.attachEvent.toString&&v.attachEvent.toString().indexOf("[native code")<0||a?v.addEventListener("load",function(e){s(e,h)},!1):v.attachEvent("onreadystatechange",function(e){s(e,h)}),o.modules[f]=h}return y},n.prototype.getStyle=function(t,o){var n=t.currentStyle?t.currentStyle:e.getComputedStyle(t,null);return n[n.getPropertyValue?"getPropertyValue":"getAttribute"](o)},n.prototype.link=function(e,n,r){var a=this,u=t.createElement("link"),l=t.getElementsByTagName("head")[0];"string"==typeof n&&(r=n);var s=(r||e).replace(/\.|\//g,""),c=u.id="layuicss-"+s,y=0;return u.rel="stylesheet",u.href=e+(o.debug?"?v="+(new Date).getTime():""),u.media="all",t.getElementById(c)||l.appendChild(u),"function"!=typeof n?a:(function p(){return++y>1e3*o.timeout/100?i(e+" timeout"):void(1989===parseInt(a.getStyle(t.getElementById(c),"width"))?function(){n()}():setTimeout(p,100))}(),a)},o.callback={},n.prototype.factory=function(e){if(layui[e])return"function"==typeof o.callback[e]?o.callback[e]:null},n.prototype.addcss=function(e,t,n){return layui.link(o.dir+"css/"+e,t,n)},n.prototype.img=function(e,t,o){var n=new Image;return n.src=e,n.complete?t(n):(n.onload=function(){n.onload=null,"function"==typeof t&&t(n)},void(n.onerror=function(e){n.onerror=null,"function"==typeof o&&o(e)}))},n.prototype.config=function(e){e=e||{};for(var t in e)o[t]=e[t];return this},n.prototype.modules=function(){var e={};for(var t in u)e[t]=u[t];return e}(),n.prototype.extend=function(e){var t=this;e=e||{};for(var o in e)t[o]||t.modules[o]?i("模块名 "+o+" 已被占用"):t.modules[o]=e[o];return t},n.prototype.router=function(e){var t=this,e=e||location.hash,o={path:[],search:{},hash:(e.match(/[^#](#.*$)/)||[])[1]||""};return/^#\//.test(e)?(e=e.replace(/^#\//,""),o.href="/"+e,e=e.replace(/([^#])(#.*$)/,"$1").split("/")||[],t.each(e,function(e,t){/^\w+=/.test(t)?function(){t=t.split("="),o.search[t[0]]=t[1]}():o.path.push(t)}),o):o},n.prototype.data=function(t,o,n){if(t=t||"layui",n=n||localStorage,e.JSON&&e.JSON.parse){if(null===o)return delete n[t];o="object"==typeof o?o:{key:o};try{var r=JSON.parse(n[t])}catch(i){var r={}}return"value"in o&&(r[o.key]=o.value),o.remove&&delete r[o.key],n[t]=JSON.stringify(r),o.key?r[o.key]:r}},n.prototype.sessionData=function(e,t){return this.data(e,t,sessionStorage)},n.prototype.device=function(t){var o=navigator.userAgent.toLowerCase(),n=function(e){var t=new RegExp(e+"/([^\\s\\_\\-]+)");return e=(o.match(t)||[])[1],e||!1},r={os:function(){return/windows/.test(o)?"windows":/linux/.test(o)?"linux":/iphone|ipod|ipad|ios/.test(o)?"ios":/mac/.test(o)?"mac":void 0}(),ie:function(){return!!(e.ActiveXObject||"ActiveXObject"in e)&&((o.match(/msie\s(\d+)/)||[])[1]||"11")}(),weixin:n("micromessenger")};return t&&!r[t]&&(r[t]=n(t)),r.android=/android/.test(o),r.ios="ios"===r.os,r},n.prototype.hint=function(){return{error:i}},n.prototype.each=function(e,t){var o,n=this;if("function"!=typeof t)return n;if(e=e||[],e.constructor===Object){for(o in e)if(t.call(e[o],o,e[o]))break}else for(o=0;o<e.length&&!t.call(e[o],o,e[o]);o++);return n},n.prototype.sort=function(e,t,o){var n=JSON.parse(JSON.stringify(e||[]));return t?(n.sort(function(e,o){var n=/^-?\d+$/,r=e[t],i=o[t];return n.test(r)&&(r=parseFloat(r)),n.test(i)&&(i=parseFloat(i)),r&&!i?1:!r&&i?-1:r>i?1:r<i?-1:0}),o&&n.reverse(),n):n},n.prototype.stope=function(t){t=t||e.event;try{t.stopPropagation()}catch(o){t.cancelBubble=!0}},n.prototype.onevent=function(e,t,o){return"string"!=typeof e||"function"!=typeof o?this:n.event(e,t,null,o)},n.prototype.event=n.event=function(e,t,n,r){var i=this,a=null,u=t.match(/\((.*)\)$/)||[],l=(e+"."+t).replace(u[0],""),s=u[1]||"",c=function(e,t){var o=t&&t.call(i,n);o===!1&&null===a&&(a=!1)};return r?(o.event[l]=o.event[l]||{},o.event[l][s]=[r],this):(layui.each(o.event[l],function(e,t){return"{*}"===s?void layui.each(t,c):(""===e&&layui.each(t,c),void(s&&e===s&&layui.each(t,c)))}),a)},e.layui=new n}(window);layui.define(function(a){var i=layui.cache;layui.config({dir:i.dir.replace(/lay\/dest\/$/,"")}),a("layui.all",layui.v)});layui.define(function(e){"use strict";var r={open:"{{",close:"}}"},c={exp:function(e){return new RegExp(e,"g")},query:function(e,c,t){var o=["#([\\s\\S])+?","([^{#}])*?"][e||0];return n((c||"")+r.open+o+r.close+(t||""))},escape:function(e){return String(e||"").replace(/&(?!#?[a-zA-Z0-9]+;)/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/'/g,"'").replace(/"/g,""")},error:function(e,r){var c="Laytpl Error:";return"object"==typeof console&&console.error(c+e+"\n"+(r||"")),c+e}},n=c.exp,t=function(e){this.tpl=e};t.pt=t.prototype,window.errors=0,t.pt.parse=function(e,t){var o=this,p=e,a=n("^"+r.open+"#",""),l=n(r.close+"$","");e=e.replace(/\s+|\r|\t|\n/g," ").replace(n(r.open+"#"),r.open+"# ").replace(n(r.close+"}"),"} "+r.close).replace(/\\/g,"\\\\").replace(n(r.open+"!(.+?)!"+r.close),function(e){return e=e.replace(n("^"+r.open+"!"),"").replace(n("!"+r.close),"").replace(n(r.open+"|"+r.close),function(e){return e.replace(/(.)/g,"\\$1")})}).replace(/(?="|')/g,"\\").replace(c.query(),function(e){return e=e.replace(a,"").replace(l,""),'";'+e.replace(/\\/g,"")+';view+="'}).replace(c.query(1),function(e){var c='"+(';return e.replace(/\s/g,"")===r.open+r.close?"":(e=e.replace(n(r.open+"|"+r.close),""),/^=/.test(e)&&(e=e.replace(/^=/,""),c='"+_escape_('),c+e.replace(/\\/g,"")+')+"')}),e='"use strict";var view = "'+e+'";return view;';try{return o.cache=e=new Function("d, _escape_",e),e(t,c.escape)}catch(u){return delete o.cache,c.error(u,p)}},t.pt.render=function(e,r){var n,t=this;return e?(n=t.cache?t.cache(e,c.escape):t.parse(t.tpl,e),r?void r(n):n):c.error("no data")};var o=function(e){return"string"!=typeof e?c.error("Template not found"):new t(e)};o.config=function(e){e=e||{};for(var c in e)r[c]=e[c]},o.v="1.2.0",e("laytpl",o)});layui.define(function(e){"use strict";var a=document,t="getElementById",n="getElementsByTagName",i="laypage",r="layui-disabled",u=function(e){var a=this;a.config=e||{},a.config.index=++s.index,a.render(!0)};u.prototype.type=function(){var e=this.config;if("object"==typeof e.elem)return void 0===e.elem.length?2:3},u.prototype.view=function(){var e=this,a=e.config,t=a.groups="groups"in a?0|a.groups:5;a.layout="object"==typeof a.layout?a.layout:["prev","page","next"],a.count=0|a.count,a.curr=0|a.curr||1,a.limits="object"==typeof a.limits?a.limits:[10,20,30,40,50],a.limit=0|a.limit||10,a.pages=Math.ceil(a.count/a.limit)||1,a.curr>a.pages&&(a.curr=a.pages),t<0?t=1:t>a.pages&&(t=a.pages),a.prev="prev"in a?a.prev:"上一页",a.next="next"in a?a.next:"下一页";var n=a.pages>t?Math.ceil((a.curr+(t>1?1:0))/(t>0?t:1)):1,i={prev:function(){return a.prev?'<a href="javascript:;" class="layui-laypage-prev'+(1==a.curr?" "+r:"")+'" data-page="'+(a.curr-1)+'">'+a.prev+"</a>":""}(),page:function(){var e=[];if(a.count<1)return"";n>1&&a.first!==!1&&0!==t&&e.push('<a href="javascript:;" class="layui-laypage-first" data-page="1" title="首页">'+(a.first||1)+"</a>");var i=Math.floor((t-1)/2),r=n>1?a.curr-i:1,u=n>1?function(){var e=a.curr+(t-i-1);return e>a.pages?a.pages:e}():t;for(u-r<t-1&&(r=u-t+1),a.first!==!1&&r>2&&e.push('<span class="layui-laypage-spr">…</span>');r<=u;r++)r===a.curr?e.push('<span class="layui-laypage-curr"><em class="layui-laypage-em" '+(/^#/.test(a.theme)?'style="background-color:'+a.theme+';"':"")+"></em><em>"+r+"</em></span>"):e.push('<a href="javascript:;" data-page="'+r+'">'+r+"</a>");return a.pages>t&&a.pages>u&&a.last!==!1&&(u+1<a.pages&&e.push('<span class="layui-laypage-spr">…</span>'),0!==t&&e.push('<a href="javascript:;" class="layui-laypage-last" title="尾页" data-page="'+a.pages+'">'+(a.last||a.pages)+"</a>")),e.join("")}(),next:function(){return a.next?'<a href="javascript:;" class="layui-laypage-next'+(a.curr==a.pages?" "+r:"")+'" data-page="'+(a.curr+1)+'">'+a.next+"</a>":""}(),count:'<span class="layui-laypage-count">共 '+a.count+" 条</span>",limit:function(){var e=['<span class="layui-laypage-limits"><select lay-ignore>'];return layui.each(a.limits,function(t,n){e.push('<option value="'+n+'"'+(n===a.limit?"selected":"")+">"+n+" 条/页</option>")}),e.join("")+"</select></span>"}(),refresh:['<a href="javascript:;" data-page="'+a.curr+'" class="layui-laypage-refresh">','<i class="layui-icon layui-icon-refresh"></i>',"</a>"].join(""),skip:function(){return['<span class="layui-laypage-skip">到第','<input type="text" min="1" value="'+a.curr+'" class="layui-input">','页<button type="button" class="layui-laypage-btn">确定</button>',"</span>"].join("")}()};return['<div class="layui-box layui-laypage layui-laypage-'+(a.theme?/^#/.test(a.theme)?"molv":a.theme:"default")+'" id="layui-laypage-'+a.index+'">',function(){var e=[];return layui.each(a.layout,function(a,t){i[t]&&e.push(i[t])}),e.join("")}(),"</div>"].join("")},u.prototype.jump=function(e,a){if(e){var t=this,i=t.config,r=e.children,u=e[n]("button")[0],l=e[n]("input")[0],p=e[n]("select")[0],c=function(){var e=0|l.value.replace(/\s|\D/g,"");e&&(i.curr=e,t.render())};if(a)return c();for(var o=0,y=r.length;o<y;o++)"a"===r[o].nodeName.toLowerCase()&&s.on(r[o],"click",function(){var e=0|this.getAttribute("data-page");e<1||e>i.pages||(i.curr=e,t.render())});p&&s.on(p,"change",function(){var e=this.value;i.curr*e>i.count&&(i.curr=Math.ceil(i.count/e)),i.limit=e,t.render()}),u&&s.on(u,"click",function(){c()})}},u.prototype.skip=function(e){if(e){var a=this,t=e[n]("input")[0];t&&s.on(t,"keyup",function(t){var n=this.value,i=t.keyCode;/^(37|38|39|40)$/.test(i)||(/\D/.test(n)&&(this.value=n.replace(/\D/,"")),13===i&&a.jump(e,!0))})}},u.prototype.render=function(e){var n=this,i=n.config,r=n.type(),u=n.view();2===r?i.elem&&(i.elem.innerHTML=u):3===r?i.elem.html(u):a[t](i.elem)&&(a[t](i.elem).innerHTML=u),i.jump&&i.jump(i,e);var s=a[t]("layui-laypage-"+i.index);n.jump(s),i.hash&&!e&&(location.hash="!"+i.hash+"="+i.curr),n.skip(s)};var s={render:function(e){var a=new u(e);return a.index},index:layui.laypage?layui.laypage.index+1e4:0,on:function(e,a,t){return e.attachEvent?e.attachEvent("on"+a,function(a){a.target=a.srcElement,t.call(e,a)}):e.addEventListener(a,t,!1),this}};e(i,s)});!function(){"use strict";var e=window.layui&&layui.define,t={getPath:function(){var e=document.currentScript?document.currentScript.src:function(){for(var e,t=document.scripts,n=t.length-1,a=n;a>0;a--)if("interactive"===t[a].readyState){e=t[a].src;break}return e||t[n].src}();return e.substring(0,e.lastIndexOf("/")+1)}(),getStyle:function(e,t){var n=e.currentStyle?e.currentStyle:window.getComputedStyle(e,null);return n[n.getPropertyValue?"getPropertyValue":"getAttribute"](t)},link:function(e,a,i){if(n.path){var r=document.getElementsByTagName("head")[0],o=document.createElement("link");"string"==typeof a&&(i=a);var s=(i||e).replace(/\.|\//g,""),l="layuicss-"+s,d=0;o.rel="stylesheet",o.href=n.path+e,o.id=l,document.getElementById(l)||r.appendChild(o),"function"==typeof a&&!function c(){return++d>80?window.console&&console.error("laydate.css: Invalid"):void(1989===parseInt(t.getStyle(document.getElementById(l),"width"))?a():setTimeout(c,100))}()}}},n={v:"5.0.9",config:{},index:window.laydate&&window.laydate.v?1e5:0,path:t.getPath,set:function(e){var t=this;return t.config=w.extend({},t.config,e),t},ready:function(a){var i="laydate",r="",o=(e?"modules/laydate/":"theme/")+"default/laydate.css?v="+n.v+r;return e?layui.addcss(o,a,i):t.link(o,a,i),this}},a=function(){var e=this;return{hint:function(t){e.hint.call(e,t)},config:e.config}},i="laydate",r=".layui-laydate",o="layui-this",s="laydate-disabled",l="开始日期超出了结束日期<br>建议重新选择",d=[100,2e5],c="layui-laydate-static",m="layui-laydate-list",u="laydate-selected",h="layui-laydate-hint",y="laydate-day-prev",f="laydate-day-next",p="layui-laydate-footer",g=".laydate-btns-confirm",v="laydate-time-text",D=".laydate-btns-time",T=function(e){var t=this;t.index=++n.index,t.config=w.extend({},t.config,n.config,e),n.ready(function(){t.init()})},w=function(e){return new C(e)},C=function(e){for(var t=0,n="object"==typeof e?[e]:(this.selector=e,document.querySelectorAll(e||null));t<n.length;t++)this.push(n[t])};C.prototype=[],C.prototype.constructor=C,w.extend=function(){var e=1,t=arguments,n=function(e,t){e=e||(t.constructor===Array?[]:{});for(var a in t)e[a]=t[a]&&t[a].constructor===Object?n(e[a],t[a]):t[a];return e};for(t[0]="object"==typeof t[0]?t[0]:{};e<t.length;e++)"object"==typeof t[e]&&n(t[0],t[e]);return t[0]},w.ie=function(){var e=navigator.userAgent.toLowerCase();return!!(window.ActiveXObject||"ActiveXObject"in window)&&((e.match(/msie\s(\d+)/)||[])[1]||"11")}(),w.stope=function(e){e=e||window.event,e.stopPropagation?e.stopPropagation():e.cancelBubble=!0},w.each=function(e,t){var n,a=this;if("function"!=typeof t)return a;if(e=e||[],e.constructor===Object){for(n in e)if(t.call(e[n],n,e[n]))break}else for(n=0;n<e.length&&!t.call(e[n],n,e[n]);n++);return a},w.digit=function(e,t,n){var a="";e=String(e),t=t||2;for(var i=e.length;i<t;i++)a+="0";return e<Math.pow(10,t)?a+(0|e):e},w.elem=function(e,t){var n=document.createElement(e);return w.each(t||{},function(e,t){n.setAttribute(e,t)}),n},C.addStr=function(e,t){return e=e.replace(/\s+/," "),t=t.replace(/\s+/," ").split(" "),w.each(t,function(t,n){new RegExp("\\b"+n+"\\b").test(e)||(e=e+" "+n)}),e.replace(/^\s|\s$/,"")},C.removeStr=function(e,t){return e=e.replace(/\s+/," "),t=t.replace(/\s+/," ").split(" "),w.each(t,function(t,n){var a=new RegExp("\\b"+n+"\\b");a.test(e)&&(e=e.replace(a,""))}),e.replace(/\s+/," ").replace(/^\s|\s$/,"")},C.prototype.find=function(e){var t=this,n=0,a=[],i="object"==typeof e;return this.each(function(r,o){for(var s=i?[e]:o.querySelectorAll(e||null);n<s.length;n++)a.push(s[n]);t.shift()}),i||(t.selector=(t.selector?t.selector+" ":"")+e),w.each(a,function(e,n){t.push(n)}),t},C.prototype.each=function(e){return w.each.call(this,this,e)},C.prototype.addClass=function(e,t){return this.each(function(n,a){a.className=C[t?"removeStr":"addStr"](a.className,e)})},C.prototype.removeClass=function(e){return this.addClass(e,!0)},C.prototype.hasClass=function(e){var t=!1;return this.each(function(n,a){new RegExp("\\b"+e+"\\b").test(a.className)&&(t=!0)}),t},C.prototype.attr=function(e,t){var n=this;return void 0===t?function(){if(n.length>0)return n[0].getAttribute(e)}():n.each(function(n,a){a.setAttribute(e,t)})},C.prototype.removeAttr=function(e){return this.each(function(t,n){n.removeAttribute(e)})},C.prototype.html=function(e){return this.each(function(t,n){n.innerHTML=e})},C.prototype.val=function(e){return this.each(function(t,n){n.value=e})},C.prototype.append=function(e){return this.each(function(t,n){"object"==typeof e?n.appendChild(e):n.innerHTML=n.innerHTML+e})},C.prototype.remove=function(e){return this.each(function(t,n){e?n.removeChild(e):n.parentNode.removeChild(n)})},C.prototype.on=function(e,t){return this.each(function(n,a){a.attachEvent?a.attachEvent("on"+e,function(e){e.target=e.srcElement,t.call(a,e)}):a.addEventListener(e,t,!1)})},C.prototype.off=function(e,t){return this.each(function(n,a){a.detachEvent?a.detachEvent("on"+e,t):a.removeEventListener(e,t,!1)})},T.isLeapYear=function(e){return e%4===0&&e%100!==0||e%400===0},T.prototype.config={type:"date",range:!1,format:"yyyy-MM-dd",value:null,isInitValue:!0,min:"1900-1-1",max:"2099-12-31",trigger:"focus",show:!1,showBottom:!0,btns:["clear","now","confirm"],lang:"cn",theme:"default",position:null,calendar:!1,mark:{},zIndex:null,done:null,change:null},T.prototype.lang=function(){var e=this,t=e.config,n={cn:{weeks:["日","一","二","三","四","五","六"],time:["时","分","秒"],timeTips:"选择时间",startTime:"开始时间",endTime:"结束时间",dateTips:"返回日期",month:["一","二","三","四","五","六","七","八","九","十","十一","十二"],tools:{confirm:"确定",clear:"清空",now:"现在"}},en:{weeks:["Su","Mo","Tu","We","Th","Fr","Sa"],time:["Hours","Minutes","Seconds"],timeTips:"Select Time",startTime:"Start Time",endTime:"End Time",dateTips:"Select Date",month:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],tools:{confirm:"Confirm",clear:"Clear",now:"Now"}}};return n[t.lang]||n.cn},T.prototype.init=function(){var e=this,t=e.config,n="yyyy|y|MM|M|dd|d|HH|H|mm|m|ss|s",a="static"===t.position,i={year:"yyyy",month:"yyyy-MM",date:"yyyy-MM-dd",time:"HH:mm:ss",datetime:"yyyy-MM-dd HH:mm:ss"};t.elem=w(t.elem),t.eventElem=w(t.eventElem),t.elem[0]&&(t.range===!0&&(t.range="-"),t.format===i.date&&(t.format=i[t.type]),e.format=t.format.match(new RegExp(n+"|.","g"))||[],e.EXP_IF="",e.EXP_SPLIT="",w.each(e.format,function(t,a){var i=new RegExp(n).test(a)?"\\d{"+function(){return new RegExp(n).test(e.format[0===t?t+1:t-1]||"")?/^yyyy|y$/.test(a)?4:a.length:/^yyyy$/.test(a)?"1,4":/^y$/.test(a)?"1,308":"1,2"}()+"}":"\\"+a;e.EXP_IF=e.EXP_IF+i,e.EXP_SPLIT=e.EXP_SPLIT+"("+i+")"}),e.EXP_IF=new RegExp("^"+(t.range?e.EXP_IF+"\\s\\"+t.range+"\\s"+e.EXP_IF:e.EXP_IF)+"$"),e.EXP_SPLIT=new RegExp("^"+e.EXP_SPLIT+"$",""),e.isInput(t.elem[0])||"focus"===t.trigger&&(t.trigger="click"),t.elem.attr("lay-key")||(t.elem.attr("lay-key",e.index),t.eventElem.attr("lay-key",e.index)),t.mark=w.extend({},t.calendar&&"cn"===t.lang?{"0-1-1":"元旦","0-2-14":"情人","0-3-8":"妇女","0-3-12":"植树","0-4-1":"愚人","0-5-1":"劳动","0-5-4":"青年","0-6-1":"儿童","0-9-10":"教师","0-9-18":"国耻","0-10-1":"国庆","0-12-25":"圣诞"}:{},t.mark),w.each(["min","max"],function(e,n){var a=[],i=[];if("number"==typeof t[n]){var r=t[n],o=(new Date).getTime(),s=864e5,l=new Date(r?r<s?o+r*s:r:o);a=[l.getFullYear(),l.getMonth()+1,l.getDate()],r<s||(i=[l.getHours(),l.getMinutes(),l.getSeconds()])}else a=(t[n].match(/\d+-\d+-\d+/)||[""])[0].split("-"),i=(t[n].match(/\d+:\d+:\d+/)||[""])[0].split(":");t[n]={year:0|a[0]||(new Date).getFullYear(),month:a[1]?(0|a[1])-1:(new Date).getMonth(),date:0|a[2]||(new Date).getDate(),hours:0|i[0],minutes:0|i[1],seconds:0|i[2]}}),e.elemID="layui-laydate"+t.elem.attr("lay-key"),(t.show||a)&&e.render(),a||e.events(),t.value&&t.isInitValue&&(t.value.constructor===Date?e.setValue(e.parse(0,e.systemDate(t.value))):e.setValue(t.value)))},T.prototype.render=function(){var e=this,t=e.config,n=e.lang(),a="static"===t.position,i=e.elem=w.elem("div",{id:e.elemID,"class":["layui-laydate",t.range?" layui-laydate-range":"",a?" "+c:"",t.theme&&"default"!==t.theme&&!/^#/.test(t.theme)?" laydate-theme-"+t.theme:""].join("")}),r=e.elemMain=[],o=e.elemHeader=[],s=e.elemCont=[],l=e.table=[],d=e.footer=w.elem("div",{"class":p});if(t.zIndex&&(i.style.zIndex=t.zIndex),w.each(new Array(2),function(e){if(!t.range&&e>0)return!0;var a=w.elem("div",{"class":"layui-laydate-header"}),i=[function(){var e=w.elem("i",{"class":"layui-icon laydate-icon laydate-prev-y"});return e.innerHTML="",e}(),function(){var e=w.elem("i",{"class":"layui-icon laydate-icon laydate-prev-m"});return e.innerHTML="",e}(),function(){var e=w.elem("div",{"class":"laydate-set-ym"}),t=w.elem("span"),n=w.elem("span");return e.appendChild(t),e.appendChild(n),e}(),function(){var e=w.elem("i",{"class":"layui-icon laydate-icon laydate-next-m"});return e.innerHTML="",e}(),function(){var e=w.elem("i",{"class":"layui-icon laydate-icon laydate-next-y"});return e.innerHTML="",e}()],d=w.elem("div",{"class":"layui-laydate-content"}),c=w.elem("table"),m=w.elem("thead"),u=w.elem("tr");w.each(i,function(e,t){a.appendChild(t)}),m.appendChild(u),w.each(new Array(6),function(e){var t=c.insertRow(0);w.each(new Array(7),function(a){if(0===e){var i=w.elem("th");i.innerHTML=n.weeks[a],u.appendChild(i)}t.insertCell(a)})}),c.insertBefore(m,c.children[0]),d.appendChild(c),r[e]=w.elem("div",{"class":"layui-laydate-main laydate-main-list-"+e}),r[e].appendChild(a),r[e].appendChild(d),o.push(i),s.push(d),l.push(c)}),w(d).html(function(){var e=[],i=[];return"datetime"===t.type&&e.push('<span lay-type="datetime" class="laydate-btns-time">'+n.timeTips+"</span>"),w.each(t.btns,function(e,r){var o=n.tools[r]||"btn";t.range&&"now"===r||(a&&"clear"===r&&(o="cn"===t.lang?"重置":"Reset"),i.push('<span lay-type="'+r+'" class="laydate-btns-'+r+'">'+o+"</span>"))}),e.push('<div class="laydate-footer-btns">'+i.join("")+"</div>"),e.join("")}()),w.each(r,function(e,t){i.appendChild(t)}),t.showBottom&&i.appendChild(d),/^#/.test(t.theme)){var m=w.elem("style"),u=["#{{id}} .layui-laydate-header{background-color:{{theme}};}","#{{id}} .layui-this{background-color:{{theme}} !important;}"].join("").replace(/{{id}}/g,e.elemID).replace(/{{theme}}/g,t.theme);"styleSheet"in m?(m.setAttribute("type","text/css"),m.styleSheet.cssText=u):m.innerHTML=u,w(i).addClass("laydate-theme-molv"),i.appendChild(m)}e.remove(T.thisElemDate),a?t.elem.append(i):(document.body.appendChild(i),e.position()),e.checkDate().calendar(),e.changeEvent(),T.thisElemDate=e.elemID,"function"==typeof t.ready&&t.ready(w.extend({},t.dateTime,{month:t.dateTime.month+1}))},T.prototype.remove=function(e){var t=this,n=(t.config,w("#"+(e||t.elemID)));return n.hasClass(c)||t.checkDate(function(){n.remove()}),t},T.prototype.position=function(){var e=this,t=e.config,n=e.bindElem||t.elem[0],a=n.getBoundingClientRect(),i=e.elem.offsetWidth,r=e.elem.offsetHeight,o=function(e){return e=e?"scrollLeft":"scrollTop",document.body[e]|document.documentElement[e]},s=function(e){return document.documentElement[e?"clientWidth":"clientHeight"]},l=5,d=a.left,c=a.bottom;d+i+l>s("width")&&(d=s("width")-i-l),c+r+l>s()&&(c=a.top>r?a.top-r:s()-r,c-=2*l),t.position&&(e.elem.style.position=t.position),e.elem.style.left=d+("fixed"===t.position?0:o(1))+"px",e.elem.style.top=c+("fixed"===t.position?0:o())+"px"},T.prototype.hint=function(e){var t=this,n=(t.config,w.elem("div",{"class":h}));t.elem&&(n.innerHTML=e||"",w(t.elem).find("."+h).remove(),t.elem.appendChild(n),clearTimeout(t.hinTimer),t.hinTimer=setTimeout(function(){w(t.elem).find("."+h).remove()},3e3))},T.prototype.getAsYM=function(e,t,n){return n?t--:t++,t<0&&(t=11,e--),t>11&&(t=0,e++),[e,t]},T.prototype.systemDate=function(e){var t=e||new Date;return{year:t.getFullYear(),month:t.getMonth(),date:t.getDate(),hours:e?e.getHours():0,minutes:e?e.getMinutes():0,seconds:e?e.getSeconds():0}},T.prototype.checkDate=function(e){var t,a,i=this,r=(new Date,i.config),o=r.dateTime=r.dateTime||i.systemDate(),s=i.bindElem||r.elem[0],l=(i.isInput(s)?"val":"html",i.isInput(s)?s.value:"static"===r.position?"":s.innerHTML),c=function(e){e.year>d[1]&&(e.year=d[1],a=!0),e.month>11&&(e.month=11,a=!0),e.hours>23&&(e.hours=0,a=!0),e.minutes>59&&(e.minutes=0,e.hours++,a=!0),e.seconds>59&&(e.seconds=0,e.minutes++,a=!0),t=n.getEndDate(e.month+1,e.year),e.date>t&&(e.date=t,a=!0)},m=function(e,t,n){var o=["startTime","endTime"];t=(t.match(i.EXP_SPLIT)||[]).slice(1),n=n||0,r.range&&(i[o[n]]=i[o[n]]||{}),w.each(i.format,function(s,l){var c=parseFloat(t[s]);t[s].length<l.length&&(a=!0),/yyyy|y/.test(l)?(c<d[0]&&(c=d[0],a=!0),e.year=c):/MM|M/.test(l)?(c<1&&(c=1,a=!0),e.month=c-1):/dd|d/.test(l)?(c<1&&(c=1,a=!0),e.date=c):/HH|H/.test(l)?(c<1&&(c=0,a=!0),e.hours=c,r.range&&(i[o[n]].hours=c)):/mm|m/.test(l)?(c<1&&(c=0,a=!0),e.minutes=c,r.range&&(i[o[n]].minutes=c)):/ss|s/.test(l)&&(c<1&&(c=0,a=!0),e.seconds=c,r.range&&(i[o[n]].seconds=c))}),c(e)};return"limit"===e?(c(o),i):(l=l||r.value,"string"==typeof l&&(l=l.replace(/\s+/g," ").replace(/^\s|\s$/g,"")),i.startState&&!i.endState&&(delete i.startState,i.endState=!0),"string"==typeof l&&l?i.EXP_IF.test(l)?r.range?(l=l.split(" "+r.range+" "),i.startDate=i.startDate||i.systemDate(),i.endDate=i.endDate||i.systemDate(),r.dateTime=w.extend({},i.startDate),w.each([i.startDate,i.endDate],function(e,t){m(t,l[e],e)})):m(o,l):(i.hint("日期格式不合法<br>必须遵循下述格式:<br>"+(r.range?r.format+" "+r.range+" "+r.format:r.format)+"<br>已为你重置"),a=!0):l&&l.constructor===Date?r.dateTime=i.systemDate(l):(r.dateTime=i.systemDate(),delete i.startState,delete i.endState,delete i.startDate,delete i.endDate,delete i.startTime,delete i.endTime),c(o),a&&l&&i.setValue(r.range?i.endDate?i.parse():"":i.parse()),e&&e(),i)},T.prototype.mark=function(e,t){var n,a=this,i=a.config;return w.each(i.mark,function(e,a){var i=e.split("-");i[0]!=t[0]&&0!=i[0]||i[1]!=t[1]&&0!=i[1]||i[2]!=t[2]||(n=a||t[2])}),n&&e.html('<span class="laydate-day-mark">'+n+"</span>"),a},T.prototype.limit=function(e,t,n,a){var i,r=this,o=r.config,l={},d=o[n>41?"endDate":"dateTime"],c=w.extend({},d,t||{});return w.each({now:c,min:o.min,max:o.max},function(e,t){l[e]=r.newDate(w.extend({year:t.year,month:t.month,date:t.date},function(){var e={};return w.each(a,function(n,a){e[a]=t[a]}),e}())).getTime()}),i=l.now<l.min||l.now>l.max,e&&e[i?"addClass":"removeClass"](s),i},T.prototype.calendar=function(e){var t,a,i,r=this,s=r.config,l=e||s.dateTime,c=new Date,m=r.lang(),u="date"!==s.type&&"datetime"!==s.type,h=e?1:0,y=w(r.table[h]).find("td"),f=w(r.elemHeader[h][2]).find("span");if(l.year<d[0]&&(l.year=d[0],r.hint("最低只能支持到公元"+d[0]+"年")),l.year>d[1]&&(l.year=d[1],r.hint("最高只能支持到公元"+d[1]+"年")),r.firstDate||(r.firstDate=w.extend({},l)),c.setFullYear(l.year,l.month,1),t=c.getDay(),a=n.getEndDate(l.month||12,l.year),i=n.getEndDate(l.month+1,l.year),w.each(y,function(e,n){var d=[l.year,l.month],c=0;n=w(n),n.removeAttr("class"),e<t?(c=a-t+e,n.addClass("laydate-day-prev"),d=r.getAsYM(l.year,l.month,"sub")):e>=t&&e<i+t?(c=e-t,s.range||c+1===l.date&&n.addClass(o)):(c=e-i-t,n.addClass("laydate-day-next"),d=r.getAsYM(l.year,l.month)),d[1]++,d[2]=c+1,n.attr("lay-ymd",d.join("-")).html(d[2]),r.mark(n,d).limit(n,{year:d[0],month:d[1]-1,date:d[2]},e)}),w(f[0]).attr("lay-ym",l.year+"-"+(l.month+1)),w(f[1]).attr("lay-ym",l.year+"-"+(l.month+1)),"cn"===s.lang?(w(f[0]).attr("lay-type","year").html(l.year+"年"),w(f[1]).attr("lay-type","month").html(l.month+1+"月")):(w(f[0]).attr("lay-type","month").html(m.month[l.month]),w(f[1]).attr("lay-type","year").html(l.year)),u&&(s.range&&(e?r.endDate=r.endDate||{year:l.year+("year"===s.type?1:0),month:l.month+("month"===s.type?0:-1)}:r.startDate=r.startDate||{year:l.year,month:l.month},e&&(r.listYM=[[r.startDate.year,r.startDate.month+1],[r.endDate.year,r.endDate.month+1]],r.list(s.type,0).list(s.type,1),"time"===s.type?r.setBtnStatus("时间",w.extend({},r.systemDate(),r.startTime),w.extend({},r.systemDate(),r.endTime)):r.setBtnStatus(!0))),s.range||(r.listYM=[[l.year,l.month+1]],r.list(s.type,0))),s.range&&!e){var p=r.getAsYM(l.year,l.month);r.calendar(w.extend({},l,{year:p[0],month:p[1]}))}return s.range||r.limit(w(r.footer).find(g),null,0,["hours","minutes","seconds"]),s.range&&e&&!u&&r.stampRange(),r},T.prototype.list=function(e,t){var n=this,a=n.config,i=a.dateTime,r=n.lang(),l=a.range&&"date"!==a.type&&"datetime"!==a.type,d=w.elem("ul",{"class":m+" "+{year:"laydate-year-list",month:"laydate-month-list",time:"laydate-time-list"}[e]}),c=n.elemHeader[t],u=w(c[2]).find("span"),h=n.elemCont[t||0],y=w(h).find("."+m)[0],f="cn"===a.lang,p=f?"年":"",T=n.listYM[t]||{},C=["hours","minutes","seconds"],x=["startTime","endTime"][t];if(T[0]<1&&(T[0]=1),"year"===e){var M,b=M=T[0]-7;b<1&&(b=M=1),w.each(new Array(15),function(e){var i=w.elem("li",{"lay-ym":M}),r={year:M};M==T[0]&&w(i).addClass(o),i.innerHTML=M+p,d.appendChild(i),M<n.firstDate.year?(r.month=a.min.month,r.date=a.min.date):M>=n.firstDate.year&&(r.month=a.max.month,r.date=a.max.date),n.limit(w(i),r,t),M++}),w(u[f?0:1]).attr("lay-ym",M-8+"-"+T[1]).html(b+p+" - "+(M-1+p))}else if("month"===e)w.each(new Array(12),function(e){var i=w.elem("li",{"lay-ym":e}),s={year:T[0],month:e};e+1==T[1]&&w(i).addClass(o),i.innerHTML=r.month[e]+(f?"月":""),d.appendChild(i),T[0]<n.firstDate.year?s.date=a.min.date:T[0]>=n.firstDate.year&&(s.date=a.max.date),n.limit(w(i),s,t)}),w(u[f?0:1]).attr("lay-ym",T[0]+"-"+T[1]).html(T[0]+p);else if("time"===e){var E=function(){w(d).find("ol").each(function(e,a){w(a).find("li").each(function(a,i){n.limit(w(i),[{hours:a},{hours:n[x].hours,minutes:a},{hours:n[x].hours,minutes:n[x].minutes,seconds:a}][e],t,[["hours"],["hours","minutes"],["hours","minutes","seconds"]][e])})}),a.range||n.limit(w(n.footer).find(g),n[x],0,["hours","minutes","seconds"])};a.range?n[x]||(n[x]={hours:0,minutes:0,seconds:0}):n[x]=i,w.each([24,60,60],function(e,t){var a=w.elem("li"),i=["<p>"+r.time[e]+"</p><ol>"];w.each(new Array(t),function(t){i.push("<li"+(n[x][C[e]]===t?' class="'+o+'"':"")+">"+w.digit(t,2)+"</li>")}),a.innerHTML=i.join("")+"</ol>",d.appendChild(a)}),E()}if(y&&h.removeChild(y),h.appendChild(d),"year"===e||"month"===e)w(n.elemMain[t]).addClass("laydate-ym-show"),w(d).find("li").on("click",function(){var r=0|w(this).attr("lay-ym");if(!w(this).hasClass(s)){if(0===t)i[e]=r,l&&(n.startDate[e]=r),n.limit(w(n.footer).find(g),null,0);else if(l)n.endDate[e]=r;else{var c="year"===e?n.getAsYM(r,T[1]-1,"sub"):n.getAsYM(T[0],r,"sub");w.extend(i,{year:c[0],month:c[1]})}"year"===a.type||"month"===a.type?(w(d).find("."+o).removeClass(o),w(this).addClass(o),"month"===a.type&&"year"===e&&(n.listYM[t][0]=r,l&&(n[["startDate","endDate"][t]].year=r),n.list("month",t))):(n.checkDate("limit").calendar(),n.closeList()),n.setBtnStatus(),a.range||n.done(null,"change"),w(n.footer).find(D).removeClass(s)}});else{var S=w.elem("span",{"class":v}),k=function(){w(d).find("ol").each(function(e){var t=this,a=w(t).find("li");t.scrollTop=30*(n[x][C[e]]-2),t.scrollTop<=0&&a.each(function(e,n){if(!w(this).hasClass(s))return t.scrollTop=30*(e-2),!0})})},H=w(c[2]).find("."+v);k(),S.innerHTML=a.range?[r.startTime,r.endTime][t]:r.timeTips,w(n.elemMain[t]).addClass("laydate-time-show"),H[0]&&H.remove(),c[2].appendChild(S),w(d).find("ol").each(function(e){var t=this;w(t).find("li").on("click",function(){var r=0|this.innerHTML;w(this).hasClass(s)||(a.range?n[x][C[e]]=r:i[C[e]]=r,w(t).find("."+o).removeClass(o),w(this).addClass(o),E(),k(),(n.endDate||"time"===a.type)&&n.done(null,"change"),n.setBtnStatus())})})}return n},T.prototype.listYM=[],T.prototype.closeList=function(){var e=this;e.config;w.each(e.elemCont,function(t,n){w(this).find("."+m).remove(),w(e.elemMain[t]).removeClass("laydate-ym-show laydate-time-show")}),w(e.elem).find("."+v).remove()},T.prototype.setBtnStatus=function(e,t,n){var a,i=this,r=i.config,o=w(i.footer).find(g),d=r.range&&"date"!==r.type&&"time"!==r.type;d&&(t=t||i.startDate,n=n||i.endDate,a=i.newDate(t).getTime()>i.newDate(n).getTime(),i.limit(null,t)||i.limit(null,n)?o.addClass(s):o[a?"addClass":"removeClass"](s),e&&a&&i.hint("string"==typeof e?l.replace(/日期/g,e):l))},T.prototype.parse=function(e,t){var n=this,a=n.config,i=t||(e?w.extend({},n.endDate,n.endTime):a.range?w.extend({},n.startDate,n.startTime):a.dateTime),r=n.format.concat();return w.each(r,function(e,t){/yyyy|y/.test(t)?r[e]=w.digit(i.year,t.length):/MM|M/.test(t)?r[e]=w.digit(i.month+1,t.length):/dd|d/.test(t)?r[e]=w.digit(i.date,t.length):/HH|H/.test(t)?r[e]=w.digit(i.hours,t.length):/mm|m/.test(t)?r[e]=w.digit(i.minutes,t.length):/ss|s/.test(t)&&(r[e]=w.digit(i.seconds,t.length))}),a.range&&!e?r.join("")+" "+a.range+" "+n.parse(1):r.join("")},T.prototype.newDate=function(e){return e=e||{},new Date(e.year||1,e.month||0,e.date||1,e.hours||0,e.minutes||0,e.seconds||0)},T.prototype.setValue=function(e){var t=this,n=t.config,a=t.bindElem||n.elem[0],i=t.isInput(a)?"val":"html";return"static"===n.position||w(a)[i](e||""),this},T.prototype.stampRange=function(){var e,t,n=this,a=n.config,i=w(n.elem).find("td");if(a.range&&!n.endDate&&w(n.footer).find(g).addClass(s),n.endDate)return e=n.newDate({year:n.startDate.year,month:n.startDate.month,date:n.startDate.date}).getTime(),t=n.newDate({year:n.endDate.year,month:n.endDate.month,date:n.endDate.date}).getTime(),e>t?n.hint(l):void w.each(i,function(a,i){var r=w(i).attr("lay-ymd").split("-"),s=n.newDate({year:r[0],month:r[1]-1,date:r[2]}).getTime();w(i).removeClass(u+" "+o),s!==e&&s!==t||w(i).addClass(w(i).hasClass(y)||w(i).hasClass(f)?u:o),s>e&&s<t&&w(i).addClass(u)})},T.prototype.done=function(e,t){var n=this,a=n.config,i=w.extend({},n.startDate?w.extend(n.startDate,n.startTime):a.dateTime),r=w.extend({},w.extend(n.endDate,n.endTime));return w.each([i,r],function(e,t){"month"in t&&w.extend(t,{month:t.month+1})}),e=e||[n.parse(),i,r],"function"==typeof a[t||"done"]&&a[t||"done"].apply(a,e),n},T.prototype.choose=function(e){var t=this,n=t.config,a=n.dateTime,i=w(t.elem).find("td"),r=e.attr("lay-ymd").split("-"),l=function(e){new Date;e&&w.extend(a,r),n.range&&(t.startDate?w.extend(t.startDate,r):t.startDate=w.extend({},r,t.startTime),t.startYMD=r)};if(r={year:0|r[0],month:(0|r[1])-1,date:0|r[2]},!e.hasClass(s))if(n.range){if(w.each(["startTime","endTime"],function(e,n){t[n]=t[n]||{hours:0,minutes:0,seconds:0}}),t.endState)l(),delete t.endState,delete t.endDate,t.startState=!0,i.removeClass(o+" "+u),e.addClass(o);else if(t.startState){if(e.addClass(o),t.endDate?w.extend(t.endDate,r):t.endDate=w.extend({},r,t.endTime),t.newDate(r).getTime()<t.newDate(t.startYMD).getTime()){var d=w.extend({},t.endDate,{hours:t.startDate.hours,minutes:t.startDate.minutes,seconds:t.startDate.seconds});w.extend(t.endDate,t.startDate,{hours:t.endDate.hours,minutes:t.endDate.minutes,seconds:t.endDate.seconds}),t.startDate=d}n.showBottom||t.done(),t.stampRange(),t.endState=!0,t.done(null,"change")}else e.addClass(o),l(),t.startState=!0;w(t.footer).find(g)[t.endDate?"removeClass":"addClass"](s)}else"static"===n.position?(l(!0),t.calendar().done().done(null,"change")):"date"===n.type?(l(!0),t.setValue(t.parse()).remove().done()):"datetime"===n.type&&(l(!0),t.calendar().done(null,"change"))},T.prototype.tool=function(e,t){var n=this,a=n.config,i=a.dateTime,r="static"===a.position,o={datetime:function(){w(e).hasClass(s)||(n.list("time",0),a.range&&n.list("time",1),w(e).attr("lay-type","date").html(n.lang().dateTips))},date:function(){n.closeList(),w(e).attr("lay-type","datetime").html(n.lang().timeTips)},clear:function(){n.setValue("").remove(),r&&(w.extend(i,n.firstDate),n.calendar()),a.range&&(delete n.startState,delete n.endState,delete n.endDate,delete n.startTime,delete n.endTime),n.done(["",{},{}])},now:function(){var e=new Date;w.extend(i,n.systemDate(),{hours:e.getHours(),minutes:e.getMinutes(),seconds:e.getSeconds()}),n.setValue(n.parse()).remove(),r&&n.calendar(),n.done()},confirm:function(){if(a.range){if(!n.endDate)return n.hint("请先选择日期范围");if(w(e).hasClass(s))return n.hint("time"===a.type?l.replace(/日期/g,"时间"):l)}else if(w(e).hasClass(s))return n.hint("不在有效日期或时间范围内");n.done(),n.setValue(n.parse()).remove()}};o[t]&&o[t]()},T.prototype.change=function(e){var t=this,n=t.config,a=n.dateTime,i=n.range&&("year"===n.type||"month"===n.type),r=t.elemCont[e||0],o=t.listYM[e],s=function(s){var l=["startDate","endDate"][e],d=w(r).find(".laydate-year-list")[0],c=w(r).find(".laydate-month-list")[0];return d&&(o[0]=s?o[0]-15:o[0]+15,t.list("year",e)),c&&(s?o[0]--:o[0]++,t.list("month",e)),(d||c)&&(w.extend(a,{year:o[0]}),i&&(t[l].year=o[0]),n.range||t.done(null,"change"),t.setBtnStatus(),n.range||t.limit(w(t.footer).find(g),{year:o[0]})),d||c};return{prevYear:function(){s("sub")||(a.year--,t.checkDate("limit").calendar(),n.range||t.done(null,"change"))},prevMonth:function(){var e=t.getAsYM(a.year,a.month,"sub");w.extend(a,{year:e[0],month:e[1]}),t.checkDate("limit").calendar(),n.range||t.done(null,"change")},nextMonth:function(){var e=t.getAsYM(a.year,a.month);w.extend(a,{year:e[0],month:e[1]}),t.checkDate("limit").calendar(),n.range||t.done(null,"change")},nextYear:function(){s()||(a.year++,t.checkDate("limit").calendar(),n.range||t.done(null,"change"))}}},T.prototype.changeEvent=function(){var e=this;e.config;w(e.elem).on("click",function(e){w.stope(e)}),w.each(e.elemHeader,function(t,n){w(n[0]).on("click",function(n){e.change(t).prevYear()}),w(n[1]).on("click",function(n){e.change(t).prevMonth()}),w(n[2]).find("span").on("click",function(n){var a=w(this),i=a.attr("lay-ym"),r=a.attr("lay-type");i&&(i=i.split("-"),e.listYM[t]=[0|i[0],0|i[1]],e.list(r,t),w(e.footer).find(D).addClass(s))}),w(n[3]).on("click",function(n){e.change(t).nextMonth()}),w(n[4]).on("click",function(n){e.change(t).nextYear()})}),w.each(e.table,function(t,n){var a=w(n).find("td");a.on("click",function(){e.choose(w(this))})}),w(e.footer).find("span").on("click",function(){var t=w(this).attr("lay-type");e.tool(this,t)})},T.prototype.isInput=function(e){return/input|textarea/.test(e.tagName.toLocaleLowerCase())},T.prototype.events=function(){var e=this,t=e.config,n=function(n,a){n.on(t.trigger,function(){a&&(e.bindElem=this),e.render()})};t.elem[0]&&!t.elem[0].eventHandler&&(n(t.elem,"bind"),n(t.eventElem),w(document).on("click",function(n){n.target!==t.elem[0]&&n.target!==t.eventElem[0]&&n.target!==w(t.closeStop)[0]&&e.remove()}).on("keydown",function(t){13===t.keyCode&&w("#"+e.elemID)[0]&&e.elemID===T.thisElem&&(t.preventDefault(),w(e.footer).find(g)[0].click())}),w(window).on("resize",function(){return!(!e.elem||!w(r)[0])&&void e.position()}),t.elem[0].eventHandler=!0)},n.render=function(e){var t=new T(e);return a.call(t)},n.getEndDate=function(e,t){var n=new Date;return n.setFullYear(t||n.getFullYear(),e||n.getMonth()+1,1),new Date(n.getTime()-864e5).getDate()},window.lay=window.lay||w,e?(n.ready(),layui.define(function(e){n.path=layui.cache.dir,e(i,n)})):"function"==typeof define&&define.amd?define(function(){return n}):function(){n.ready(),window.laydate=n}()}();!function(e,t){"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(e,t){function n(e){var t=!!e&&"length"in e&&e.length,n=pe.type(e);return"function"!==n&&!pe.isWindow(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}function r(e,t,n){if(pe.isFunction(t))return pe.grep(e,function(e,r){return!!t.call(e,r,e)!==n});if(t.nodeType)return pe.grep(e,function(e){return e===t!==n});if("string"==typeof t){if(Ce.test(t))return pe.filter(t,e,n);t=pe.filter(t,e)}return pe.grep(e,function(e){return pe.inArray(e,t)>-1!==n})}function i(e,t){do e=e[t];while(e&&1!==e.nodeType);return e}function o(e){var t={};return pe.each(e.match(De)||[],function(e,n){t[n]=!0}),t}function a(){re.addEventListener?(re.removeEventListener("DOMContentLoaded",s),e.removeEventListener("load",s)):(re.detachEvent("onreadystatechange",s),e.detachEvent("onload",s))}function s(){(re.addEventListener||"load"===e.event.type||"complete"===re.readyState)&&(a(),pe.ready())}function u(e,t,n){if(void 0===n&&1===e.nodeType){var r="data-"+t.replace(_e,"-$1").toLowerCase();if(n=e.getAttribute(r),"string"==typeof n){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:qe.test(n)?pe.parseJSON(n):n)}catch(i){}pe.data(e,t,n)}else n=void 0}return n}function l(e){var t;for(t in e)if(("data"!==t||!pe.isEmptyObject(e[t]))&&"toJSON"!==t)return!1;return!0}function c(e,t,n,r){if(He(e)){var i,o,a=pe.expando,s=e.nodeType,u=s?pe.cache:e,l=s?e[a]:e[a]&&a;if(l&&u[l]&&(r||u[l].data)||void 0!==n||"string"!=typeof t)return l||(l=s?e[a]=ne.pop()||pe.guid++:a),u[l]||(u[l]=s?{}:{toJSON:pe.noop}),"object"!=typeof t&&"function"!=typeof t||(r?u[l]=pe.extend(u[l],t):u[l].data=pe.extend(u[l].data,t)),o=u[l],r||(o.data||(o.data={}),o=o.data),void 0!==n&&(o[pe.camelCase(t)]=n),"string"==typeof t?(i=o[t],null==i&&(i=o[pe.camelCase(t)])):i=o,i}}function f(e,t,n){if(He(e)){var r,i,o=e.nodeType,a=o?pe.cache:e,s=o?e[pe.expando]:pe.expando;if(a[s]){if(t&&(r=n?a[s]:a[s].data)){pe.isArray(t)?t=t.concat(pe.map(t,pe.camelCase)):t in r?t=[t]:(t=pe.camelCase(t),t=t in r?[t]:t.split(" ")),i=t.length;for(;i--;)delete r[t[i]];if(n?!l(r):!pe.isEmptyObject(r))return}(n||(delete a[s].data,l(a[s])))&&(o?pe.cleanData([e],!0):fe.deleteExpando||a!=a.window?delete a[s]:a[s]=void 0)}}}function d(e,t,n,r){var i,o=1,a=20,s=r?function(){return r.cur()}:function(){return pe.css(e,t,"")},u=s(),l=n&&n[3]||(pe.cssNumber[t]?"":"px"),c=(pe.cssNumber[t]||"px"!==l&&+u)&&Me.exec(pe.css(e,t));if(c&&c[3]!==l){l=l||c[3],n=n||[],c=+u||1;do o=o||".5",c/=o,pe.style(e,t,c+l);while(o!==(o=s()/u)&&1!==o&&--a)}return n&&(c=+c||+u||0,i=n[1]?c+(n[1]+1)*n[2]:+n[2],r&&(r.unit=l,r.start=c,r.end=i)),i}function p(e){var t=ze.split("|"),n=e.createDocumentFragment();if(n.createElement)for(;t.length;)n.createElement(t.pop());return n}function h(e,t){var n,r,i=0,o="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):void 0;if(!o)for(o=[],n=e.childNodes||e;null!=(r=n[i]);i++)!t||pe.nodeName(r,t)?o.push(r):pe.merge(o,h(r,t));return void 0===t||t&&pe.nodeName(e,t)?pe.merge([e],o):o}function g(e,t){for(var n,r=0;null!=(n=e[r]);r++)pe._data(n,"globalEval",!t||pe._data(t[r],"globalEval"))}function m(e){Be.test(e.type)&&(e.defaultChecked=e.checked)}function y(e,t,n,r,i){for(var o,a,s,u,l,c,f,d=e.length,y=p(t),v=[],x=0;x<d;x++)if(a=e[x],a||0===a)if("object"===pe.type(a))pe.merge(v,a.nodeType?[a]:a);else if(Ue.test(a)){for(u=u||y.appendChild(t.createElement("div")),l=(We.exec(a)||["",""])[1].toLowerCase(),f=Xe[l]||Xe._default,u.innerHTML=f[1]+pe.htmlPrefilter(a)+f[2],o=f[0];o--;)u=u.lastChild;if(!fe.leadingWhitespace&&$e.test(a)&&v.push(t.createTextNode($e.exec(a)[0])),!fe.tbody)for(a="table"!==l||Ve.test(a)?"<table>"!==f[1]||Ve.test(a)?0:u:u.firstChild,o=a&&a.childNodes.length;o--;)pe.nodeName(c=a.childNodes[o],"tbody")&&!c.childNodes.length&&a.removeChild(c);for(pe.merge(v,u.childNodes),u.textContent="";u.firstChild;)u.removeChild(u.firstChild);u=y.lastChild}else v.push(t.createTextNode(a));for(u&&y.removeChild(u),fe.appendChecked||pe.grep(h(v,"input"),m),x=0;a=v[x++];)if(r&&pe.inArray(a,r)>-1)i&&i.push(a);else if(s=pe.contains(a.ownerDocument,a),u=h(y.appendChild(a),"script"),s&&g(u),n)for(o=0;a=u[o++];)Ie.test(a.type||"")&&n.push(a);return u=null,y}function v(){return!0}function x(){return!1}function b(){try{return re.activeElement}catch(e){}}function w(e,t,n,r,i,o){var a,s;if("object"==typeof t){"string"!=typeof n&&(r=r||n,n=void 0);for(s in t)w(e,s,n,r,t[s],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),i===!1)i=x;else if(!i)return e;return 1===o&&(a=i,i=function(e){return pe().off(e),a.apply(this,arguments)},i.guid=a.guid||(a.guid=pe.guid++)),e.each(function(){pe.event.add(this,t,i,r,n)})}function T(e,t){return pe.nodeName(e,"table")&&pe.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function C(e){return e.type=(null!==pe.find.attr(e,"type"))+"/"+e.type,e}function E(e){var t=it.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function N(e,t){if(1===t.nodeType&&pe.hasData(e)){var n,r,i,o=pe._data(e),a=pe._data(t,o),s=o.events;if(s){delete a.handle,a.events={};for(n in s)for(r=0,i=s[n].length;r<i;r++)pe.event.add(t,n,s[n][r])}a.data&&(a.data=pe.extend({},a.data))}}function k(e,t){var n,r,i;if(1===t.nodeType){if(n=t.nodeName.toLowerCase(),!fe.noCloneEvent&&t[pe.expando]){i=pe._data(t);for(r in i.events)pe.removeEvent(t,r,i.handle);t.removeAttribute(pe.expando)}"script"===n&&t.text!==e.text?(C(t).text=e.text,E(t)):"object"===n?(t.parentNode&&(t.outerHTML=e.outerHTML),fe.html5Clone&&e.innerHTML&&!pe.trim(t.innerHTML)&&(t.innerHTML=e.innerHTML)):"input"===n&&Be.test(e.type)?(t.defaultChecked=t.checked=e.checked,t.value!==e.value&&(t.value=e.value)):"option"===n?t.defaultSelected=t.selected=e.defaultSelected:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}}function S(e,t,n,r){t=oe.apply([],t);var i,o,a,s,u,l,c=0,f=e.length,d=f-1,p=t[0],g=pe.isFunction(p);if(g||f>1&&"string"==typeof p&&!fe.checkClone&&rt.test(p))return e.each(function(i){var o=e.eq(i);g&&(t[0]=p.call(this,i,o.html())),S(o,t,n,r)});if(f&&(l=y(t,e[0].ownerDocument,!1,e,r),i=l.firstChild,1===l.childNodes.length&&(l=i),i||r)){for(s=pe.map(h(l,"script"),C),a=s.length;c<f;c++)o=l,c!==d&&(o=pe.clone(o,!0,!0),a&&pe.merge(s,h(o,"script"))),n.call(e[c],o,c);if(a)for(u=s[s.length-1].ownerDocument,pe.map(s,E),c=0;c<a;c++)o=s[c],Ie.test(o.type||"")&&!pe._data(o,"globalEval")&&pe.contains(u,o)&&(o.src?pe._evalUrl&&pe._evalUrl(o.src):pe.globalEval((o.text||o.textContent||o.innerHTML||"").replace(ot,"")));l=i=null}return e}function A(e,t,n){for(var r,i=t?pe.filter(t,e):e,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||pe.cleanData(h(r)),r.parentNode&&(n&&pe.contains(r.ownerDocument,r)&&g(h(r,"script")),r.parentNode.removeChild(r));return e}function D(e,t){var n=pe(t.createElement(e)).appendTo(t.body),r=pe.css(n[0],"display");return n.detach(),r}function j(e){var t=re,n=lt[e];return n||(n=D(e,t),"none"!==n&&n||(ut=(ut||pe("<iframe frameborder='0' width='0' height='0'/>")).appendTo(t.documentElement),t=(ut[0].contentWindow||ut[0].contentDocument).document,t.write(),t.close(),n=D(e,t),ut.detach()),lt[e]=n),n}function L(e,t){return{get:function(){return e()?void delete this.get:(this.get=t).apply(this,arguments)}}}function H(e){if(e in Et)return e;for(var t=e.charAt(0).toUpperCase()+e.slice(1),n=Ct.length;n--;)if(e=Ct[n]+t,e in Et)return e}function q(e,t){for(var n,r,i,o=[],a=0,s=e.length;a<s;a++)r=e[a],r.style&&(o[a]=pe._data(r,"olddisplay"),n=r.style.display,t?(o[a]||"none"!==n||(r.style.display=""),""===r.style.display&&Re(r)&&(o[a]=pe._data(r,"olddisplay",j(r.nodeName)))):(i=Re(r),(n&&"none"!==n||!i)&&pe._data(r,"olddisplay",i?n:pe.css(r,"display"))));for(a=0;a<s;a++)r=e[a],r.style&&(t&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=t?o[a]||"":"none"));return e}function _(e,t,n){var r=bt.exec(t);return r?Math.max(0,r[1]-(n||0))+(r[2]||"px"):t}function F(e,t,n,r,i){for(var o=n===(r?"border":"content")?4:"width"===t?1:0,a=0;o<4;o+=2)"margin"===n&&(a+=pe.css(e,n+Oe[o],!0,i)),r?("content"===n&&(a-=pe.css(e,"padding"+Oe[o],!0,i)),"margin"!==n&&(a-=pe.css(e,"border"+Oe[o]+"Width",!0,i))):(a+=pe.css(e,"padding"+Oe[o],!0,i),"padding"!==n&&(a+=pe.css(e,"border"+Oe[o]+"Width",!0,i)));return a}function M(t,n,r){var i=!0,o="width"===n?t.offsetWidth:t.offsetHeight,a=ht(t),s=fe.boxSizing&&"border-box"===pe.css(t,"boxSizing",!1,a);if(re.msFullscreenElement&&e.top!==e&&t.getClientRects().length&&(o=Math.round(100*t.getBoundingClientRect()[n])),o<=0||null==o){if(o=gt(t,n,a),(o<0||null==o)&&(o=t.style[n]),ft.test(o))return o;i=s&&(fe.boxSizingReliable()||o===t.style[n]),o=parseFloat(o)||0}return o+F(t,n,r||(s?"border":"content"),i,a)+"px"}function O(e,t,n,r,i){return new O.prototype.init(e,t,n,r,i)}function R(){return e.setTimeout(function(){Nt=void 0}),Nt=pe.now()}function P(e,t){var n,r={height:e},i=0;for(t=t?1:0;i<4;i+=2-t)n=Oe[i],r["margin"+n]=r["padding"+n]=e;return t&&(r.opacity=r.width=e),r}function B(e,t,n){for(var r,i=($.tweeners[t]||[]).concat($.tweeners["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,t,e))return r}function W(e,t,n){var r,i,o,a,s,u,l,c,f=this,d={},p=e.style,h=e.nodeType&&Re(e),g=pe._data(e,"fxshow");n.queue||(s=pe._queueHooks(e,"fx"),null==s.unqueued&&(s.unqueued=0,u=s.empty.fire,s.empty.fire=function(){s.unqueued||u()}),s.unqueued++,f.always(function(){f.always(function(){s.unqueued--,pe.queue(e,"fx").length||s.empty.fire()})})),1===e.nodeType&&("height"in t||"width"in t)&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],l=pe.css(e,"display"),c="none"===l?pe._data(e,"olddisplay")||j(e.nodeName):l,"inline"===c&&"none"===pe.css(e,"float")&&(fe.inlineBlockNeedsLayout&&"inline"!==j(e.nodeName)?p.zoom=1:p.display="inline-block")),n.overflow&&(p.overflow="hidden",fe.shrinkWrapBlocks()||f.always(function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]}));for(r in t)if(i=t[r],St.exec(i)){if(delete t[r],o=o||"toggle"===i,i===(h?"hide":"show")){if("show"!==i||!g||void 0===g[r])continue;h=!0}d[r]=g&&g[r]||pe.style(e,r)}else l=void 0;if(pe.isEmptyObject(d))"inline"===("none"===l?j(e.nodeName):l)&&(p.display=l);else{g?"hidden"in g&&(h=g.hidden):g=pe._data(e,"fxshow",{}),o&&(g.hidden=!h),h?pe(e).show():f.done(function(){pe(e).hide()}),f.done(function(){var t;pe._removeData(e,"fxshow");for(t in d)pe.style(e,t,d[t])});for(r in d)a=B(h?g[r]:0,r,f),r in g||(g[r]=a.start,h&&(a.end=a.start,a.start="width"===r||"height"===r?1:0))}}function I(e,t){var n,r,i,o,a;for(n in e)if(r=pe.camelCase(n),i=t[r],o=e[n],pe.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),a=pe.cssHooks[r],a&&"expand"in a){o=a.expand(o),delete e[r];for(n in o)n in e||(e[n]=o[n],t[n]=i)}else t[r]=i}function $(e,t,n){var r,i,o=0,a=$.prefilters.length,s=pe.Deferred().always(function(){delete u.elem}),u=function(){if(i)return!1;for(var t=Nt||R(),n=Math.max(0,l.startTime+l.duration-t),r=n/l.duration||0,o=1-r,a=0,u=l.tweens.length;a<u;a++)l.tweens[a].run(o);return s.notifyWith(e,[l,o,n]),o<1&&u?n:(s.resolveWith(e,[l]),!1)},l=s.promise({elem:e,props:pe.extend({},t),opts:pe.extend(!0,{specialEasing:{},easing:pe.easing._default},n),originalProperties:t,originalOptions:n,startTime:Nt||R(),duration:n.duration,tweens:[],createTween:function(t,n){var r=pe.Tween(e,l.opts,t,n,l.opts.specialEasing[t]||l.opts.easing);return l.tweens.push(r),r},stop:function(t){var n=0,r=t?l.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)l.tweens[n].run(1);return t?(s.notifyWith(e,[l,1,0]),s.resolveWith(e,[l,t])):s.rejectWith(e,[l,t]),this}}),c=l.props;for(I(c,l.opts.specialEasing);o<a;o++)if(r=$.prefilters[o].call(l,e,c,l.opts))return pe.isFunction(r.stop)&&(pe._queueHooks(l.elem,l.opts.queue).stop=pe.proxy(r.stop,r)),r;return pe.map(c,B,l),pe.isFunction(l.opts.start)&&l.opts.start.call(e,l),pe.fx.timer(pe.extend(u,{elem:e,anim:l,queue:l.opts.queue})),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always)}function z(e){return pe.attr(e,"class")||""}function X(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,o=t.toLowerCase().match(De)||[];if(pe.isFunction(n))for(;r=o[i++];)"+"===r.charAt(0)?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function U(e,t,n,r){function i(s){var u;return o[s]=!0,pe.each(e[s]||[],function(e,s){var l=s(t,n,r);return"string"!=typeof l||a||o[l]?a?!(u=l):void 0:(t.dataTypes.unshift(l),i(l),!1)}),u}var o={},a=e===Qt;return i(t.dataTypes[0])||!o["*"]&&i("*")}function V(e,t){var n,r,i=pe.ajaxSettings.flatOptions||{};for(r in t)void 0!==t[r]&&((i[r]?e:n||(n={}))[r]=t[r]);return n&&pe.extend(!0,e,n),e}function Y(e,t,n){for(var r,i,o,a,s=e.contents,u=e.dataTypes;"*"===u[0];)u.shift(),void 0===i&&(i=e.mimeType||t.getResponseHeader("Content-Type"));if(i)for(a in s)if(s[a]&&s[a].test(i)){u.unshift(a);break}if(u[0]in n)o=u[0];else{for(a in n){if(!u[0]||e.converters[a+" "+u[0]]){o=a;break}r||(r=a)}o=o||r}if(o)return o!==u[0]&&u.unshift(o),n[o]}function J(e,t,n,r){var i,o,a,s,u,l={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)l[a.toLowerCase()]=e.converters[a];for(o=c.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!u&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u=o,o=c.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(a=l[u+" "+o]||l["* "+o],!a)for(i in l)if(s=i.split(" "),s[1]===o&&(a=l[u+" "+s[0]]||l["* "+s[0]])){a===!0?a=l[i]:l[i]!==!0&&(o=s[0],c.unshift(s[1]));break}if(a!==!0)if(a&&e["throws"])t=a(t);else try{t=a(t)}catch(f){return{state:"parsererror",error:a?f:"No conversion from "+u+" to "+o}}}return{state:"success",data:t}}function G(e){return e.style&&e.style.display||pe.css(e,"display")}function K(e){for(;e&&1===e.nodeType;){if("none"===G(e)||"hidden"===e.type)return!0;e=e.parentNode}return!1}function Q(e,t,n,r){var i;if(pe.isArray(t))pe.each(t,function(t,i){n||rn.test(e)?r(e,i):Q(e+"["+("object"==typeof i&&null!=i?t:"")+"]",i,n,r)});else if(n||"object"!==pe.type(t))r(e,t);else for(i in t)Q(e+"["+i+"]",t[i],n,r)}function Z(){try{return new e.XMLHttpRequest}catch(t){}}function ee(){try{return new e.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}function te(e){return pe.isWindow(e)?e:9===e.nodeType&&(e.defaultView||e.parentWindow)}var ne=[],re=e.document,ie=ne.slice,oe=ne.concat,ae=ne.push,se=ne.indexOf,ue={},le=ue.toString,ce=ue.hasOwnProperty,fe={},de="1.12.3",pe=function(e,t){return new pe.fn.init(e,t)},he=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,ge=/^-ms-/,me=/-([\da-z])/gi,ye=function(e,t){return t.toUpperCase()};pe.fn=pe.prototype={jquery:de,constructor:pe,selector:"",length:0,toArray:function(){return ie.call(this)},get:function(e){return null!=e?e<0?this[e+this.length]:this[e]:ie.call(this)},pushStack:function(e){var t=pe.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e){return pe.each(this,e)},map:function(e){return this.pushStack(pe.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(ie.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:ae,sort:ne.sort,splice:ne.splice},pe.extend=pe.fn.extend=function(){var e,t,n,r,i,o,a=arguments[0]||{},s=1,u=arguments.length,l=!1;for("boolean"==typeof a&&(l=a,a=arguments[s]||{},s++),"object"==typeof a||pe.isFunction(a)||(a={}),s===u&&(a=this,s--);s<u;s++)if(null!=(i=arguments[s]))for(r in i)e=a[r],n=i[r],a!==n&&(l&&n&&(pe.isPlainObject(n)||(t=pe.isArray(n)))?(t?(t=!1,o=e&&pe.isArray(e)?e:[]):o=e&&pe.isPlainObject(e)?e:{},a[r]=pe.extend(l,o,n)):void 0!==n&&(a[r]=n));return a},pe.extend({expando:"jQuery"+(de+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return"function"===pe.type(e)},isArray:Array.isArray||function(e){return"array"===pe.type(e)},isWindow:function(e){return null!=e&&e==e.window},isNumeric:function(e){var t=e&&e.toString();return!pe.isArray(e)&&t-parseFloat(t)+1>=0},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},isPlainObject:function(e){var t;if(!e||"object"!==pe.type(e)||e.nodeType||pe.isWindow(e))return!1;try{if(e.constructor&&!ce.call(e,"constructor")&&!ce.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(n){return!1}if(!fe.ownFirst)for(t in e)return ce.call(e,t);for(t in e);return void 0===t||ce.call(e,t)},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?ue[le.call(e)]||"object":typeof e},globalEval:function(t){t&&pe.trim(t)&&(e.execScript||function(t){e.eval.call(e,t)})(t)},camelCase:function(e){return e.replace(ge,"ms-").replace(me,ye)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t){var r,i=0;if(n(e))for(r=e.length;i<r&&t.call(e[i],i,e[i])!==!1;i++);else for(i in e)if(t.call(e[i],i,e[i])===!1)break;return e},trim:function(e){return null==e?"":(e+"").replace(he,"")},makeArray:function(e,t){var r=t||[];return null!=e&&(n(Object(e))?pe.merge(r,"string"==typeof e?[e]:e):ae.call(r,e)),r},inArray:function(e,t,n){var r;if(t){if(se)return se.call(t,e,n);for(r=t.length,n=n?n<0?Math.max(0,r+n):n:0;n<r;n++)if(n in t&&t[n]===e)return n}return-1},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;)e[i++]=t[r++];if(n!==n)for(;void 0!==t[r];)e[i++]=t[r++];return e.length=i,e},grep:function(e,t,n){for(var r,i=[],o=0,a=e.length,s=!n;o<a;o++)r=!t(e[o],o),r!==s&&i.push(e[o]);return i},map:function(e,t,r){var i,o,a=0,s=[];if(n(e))for(i=e.length;a<i;a++)o=t(e[a],a,r),null!=o&&s.push(o);else for(a in e)o=t(e[a],a,r),null!=o&&s.push(o);return oe.apply([],s)},guid:1,proxy:function(e,t){var n,r,i;if("string"==typeof t&&(i=e[t],t=e,e=i),pe.isFunction(e))return n=ie.call(arguments,2),r=function(){return e.apply(t||this,n.concat(ie.call(arguments)))},r.guid=e.guid=e.guid||pe.guid++,r},now:function(){return+new Date},support:fe}),"function"==typeof Symbol&&(pe.fn[Symbol.iterator]=ne[Symbol.iterator]),pe.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){ue["[object "+t+"]"]=t.toLowerCase()});var ve=function(e){function t(e,t,n,r){var i,o,a,s,u,l,f,p,h=t&&t.ownerDocument,g=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==g&&9!==g&&11!==g)return n;if(!r&&((t?t.ownerDocument||t:B)!==H&&L(t),t=t||H,_)){if(11!==g&&(l=ye.exec(e)))if(i=l[1]){if(9===g){if(!(a=t.getElementById(i)))return n;if(a.id===i)return n.push(a),n}else if(h&&(a=h.getElementById(i))&&R(t,a)&&a.id===i)return n.push(a),n}else{if(l[2])return Q.apply(n,t.getElementsByTagName(e)),n;if((i=l[3])&&w.getElementsByClassName&&t.getElementsByClassName)return Q.apply(n,t.getElementsByClassName(i)),n}if(w.qsa&&!X[e+" "]&&(!F||!F.test(e))){if(1!==g)h=t,p=e;else if("object"!==t.nodeName.toLowerCase()){for((s=t.getAttribute("id"))?s=s.replace(xe,"\\$&"):t.setAttribute("id",s=P),f=N(e),o=f.length,u=de.test(s)?"#"+s:"[id='"+s+"']";o--;)f[o]=u+" "+d(f[o]);p=f.join(","),h=ve.test(e)&&c(t.parentNode)||t}if(p)try{return Q.apply(n,h.querySelectorAll(p)),n}catch(m){}finally{s===P&&t.removeAttribute("id")}}}return S(e.replace(se,"$1"),t,n,r)}function n(){function e(n,r){return t.push(n+" ")>T.cacheLength&&delete e[t.shift()],e[n+" "]=r}var t=[];return e}function r(e){return e[P]=!0,e}function i(e){var t=H.createElement("div");try{return!!e(t)}catch(n){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function o(e,t){for(var n=e.split("|"),r=n.length;r--;)T.attrHandle[n[r]]=t}function a(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||V)-(~e.sourceIndex||V);if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function s(e){return function(t){var n=t.nodeName.toLowerCase();return"input"===n&&t.type===e}}function u(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function l(e){return r(function(t){return t=+t,r(function(n,r){for(var i,o=e([],n.length,t),a=o.length;a--;)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))})})}function c(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}function f(){}function d(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function p(e,t,n){var r=t.dir,i=n&&"parentNode"===r,o=I++;return t.first?function(t,n,o){for(;t=t[r];)if(1===t.nodeType||i)return e(t,n,o)}:function(t,n,a){var s,u,l,c=[W,o];if(a){for(;t=t[r];)if((1===t.nodeType||i)&&e(t,n,a))return!0}else for(;t=t[r];)if(1===t.nodeType||i){if(l=t[P]||(t[P]={}),u=l[t.uniqueID]||(l[t.uniqueID]={}),(s=u[r])&&s[0]===W&&s[1]===o)return c[2]=s[2];if(u[r]=c,c[2]=e(t,n,a))return!0}}}function h(e){return e.length>1?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function g(e,n,r){for(var i=0,o=n.length;i<o;i++)t(e,n[i],r);return r}function m(e,t,n,r,i){for(var o,a=[],s=0,u=e.length,l=null!=t;s<u;s++)(o=e[s])&&(n&&!n(o,r,i)||(a.push(o),l&&t.push(s)));return a}function y(e,t,n,i,o,a){return i&&!i[P]&&(i=y(i)),o&&!o[P]&&(o=y(o,a)),r(function(r,a,s,u){var l,c,f,d=[],p=[],h=a.length,y=r||g(t||"*",s.nodeType?[s]:s,[]),v=!e||!r&&t?y:m(y,d,e,s,u),x=n?o||(r?e:h||i)?[]:a:v;if(n&&n(v,x,s,u),i)for(l=m(x,p),i(l,[],s,u),c=l.length;c--;)(f=l[c])&&(x[p[c]]=!(v[p[c]]=f));if(r){if(o||e){if(o){for(l=[],c=x.length;c--;)(f=x[c])&&l.push(v[c]=f);o(null,x=[],l,u)}for(c=x.length;c--;)(f=x[c])&&(l=o?ee(r,f):d[c])>-1&&(r[l]=!(a[l]=f))}}else x=m(x===a?x.splice(h,x.length):x),o?o(null,a,x,u):Q.apply(a,x)})}function v(e){for(var t,n,r,i=e.length,o=T.relative[e[0].type],a=o||T.relative[" "],s=o?1:0,u=p(function(e){return e===t},a,!0),l=p(function(e){return ee(t,e)>-1},a,!0),c=[function(e,n,r){var i=!o&&(r||n!==A)||((t=n).nodeType?u(e,n,r):l(e,n,r));return t=null,i}];s<i;s++)if(n=T.relative[e[s].type])c=[p(h(c),n)];else{if(n=T.filter[e[s].type].apply(null,e[s].matches),n[P]){for(r=++s;r<i&&!T.relative[e[r].type];r++);return y(s>1&&h(c),s>1&&d(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(se,"$1"),n,s<r&&v(e.slice(s,r)),r<i&&v(e=e.slice(r)),r<i&&d(e))}c.push(n)}return h(c)}function x(e,n){var i=n.length>0,o=e.length>0,a=function(r,a,s,u,l){var c,f,d,p=0,h="0",g=r&&[],y=[],v=A,x=r||o&&T.find.TAG("*",l),b=W+=null==v?1:Math.random()||.1,w=x.length;for(l&&(A=a===H||a||l);h!==w&&null!=(c=x[h]);h++){if(o&&c){for(f=0,a||c.ownerDocument===H||(L(c),s=!_);d=e[f++];)if(d(c,a||H,s)){u.push(c);break}l&&(W=b)}i&&((c=!d&&c)&&p--,r&&g.push(c))}if(p+=h,i&&h!==p){for(f=0;d=n[f++];)d(g,y,a,s);if(r){if(p>0)for(;h--;)g[h]||y[h]||(y[h]=G.call(u));y=m(y)}Q.apply(u,y),l&&!r&&y.length>0&&p+n.length>1&&t.uniqueSort(u)}return l&&(W=b,A=v),g};return i?r(a):a}var b,w,T,C,E,N,k,S,A,D,j,L,H,q,_,F,M,O,R,P="sizzle"+1*new Date,B=e.document,W=0,I=0,$=n(),z=n(),X=n(),U=function(e,t){return e===t&&(j=!0),0},V=1<<31,Y={}.hasOwnProperty,J=[],G=J.pop,K=J.push,Q=J.push,Z=J.slice,ee=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},te="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",ne="[\\x20\\t\\r\\n\\f]",re="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",ie="\\["+ne+"*("+re+")(?:"+ne+"*([*^$|!~]?=)"+ne+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+re+"))|)"+ne+"*\\]",oe=":("+re+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+ie+")*)|.*)\\)|)",ae=new RegExp(ne+"+","g"),se=new RegExp("^"+ne+"+|((?:^|[^\\\\])(?:\\\\.)*)"+ne+"+$","g"),ue=new RegExp("^"+ne+"*,"+ne+"*"),le=new RegExp("^"+ne+"*([>+~]|"+ne+")"+ne+"*"),ce=new RegExp("="+ne+"*([^\\]'\"]*?)"+ne+"*\\]","g"),fe=new RegExp(oe),de=new RegExp("^"+re+"$"),pe={ID:new RegExp("^#("+re+")"),CLASS:new RegExp("^\\.("+re+")"),TAG:new RegExp("^("+re+"|[*])"),ATTR:new RegExp("^"+ie),PSEUDO:new RegExp("^"+oe),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ne+"*(even|odd|(([+-]|)(\\d*)n|)"+ne+"*(?:([+-]|)"+ne+"*(\\d+)|))"+ne+"*\\)|)","i"),bool:new RegExp("^(?:"+te+")$","i"),needsContext:new RegExp("^"+ne+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ne+"*((?:-\\d)?\\d*)"+ne+"*\\)|)(?=[^-]|$)","i")},he=/^(?:input|select|textarea|button)$/i,ge=/^h\d$/i,me=/^[^{]+\{\s*\[native \w/,ye=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ve=/[+~]/,xe=/'|\\/g,be=new RegExp("\\\\([\\da-f]{1,6}"+ne+"?|("+ne+")|.)","ig"),we=function(e,t,n){var r="0x"+t-65536;return r!==r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},Te=function(){L()};try{Q.apply(J=Z.call(B.childNodes),B.childNodes),J[B.childNodes.length].nodeType}catch(Ce){Q={apply:J.length?function(e,t){K.apply(e,Z.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}w=t.support={},E=t.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},L=t.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:B;return r!==H&&9===r.nodeType&&r.documentElement?(H=r,q=H.documentElement,_=!E(H),(n=H.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",Te,!1):n.attachEvent&&n.attachEvent("onunload",Te)),w.attributes=i(function(e){return e.className="i",!e.getAttribute("className")}),w.getElementsByTagName=i(function(e){return e.appendChild(H.createComment("")),!e.getElementsByTagName("*").length}),w.getElementsByClassName=me.test(H.getElementsByClassName),w.getById=i(function(e){return q.appendChild(e).id=P,!H.getElementsByName||!H.getElementsByName(P).length}),w.getById?(T.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&_){var n=t.getElementById(e);return n?[n]:[]}},T.filter.ID=function(e){var t=e.replace(be,we);return function(e){return e.getAttribute("id")===t}}):(delete T.find.ID,T.filter.ID=function(e){var t=e.replace(be,we);return function(e){var n="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}}),T.find.TAG=w.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):w.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},T.find.CLASS=w.getElementsByClassName&&function(e,t){if("undefined"!=typeof t.getElementsByClassName&&_)return t.getElementsByClassName(e)},M=[],F=[],(w.qsa=me.test(H.querySelectorAll))&&(i(function(e){q.appendChild(e).innerHTML="<a id='"+P+"'></a><select id='"+P+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&F.push("[*^$]="+ne+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||F.push("\\["+ne+"*(?:value|"+te+")"),e.querySelectorAll("[id~="+P+"-]").length||F.push("~="),e.querySelectorAll(":checked").length||F.push(":checked"),e.querySelectorAll("a#"+P+"+*").length||F.push(".#.+[+~]")}),i(function(e){var t=H.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&F.push("name"+ne+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||F.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),F.push(",.*:")})),(w.matchesSelector=me.test(O=q.matches||q.webkitMatchesSelector||q.mozMatchesSelector||q.oMatchesSelector||q.msMatchesSelector))&&i(function(e){w.disconnectedMatch=O.call(e,"div"),O.call(e,"[s!='']:x"),M.push("!=",oe)}),F=F.length&&new RegExp(F.join("|")),M=M.length&&new RegExp(M.join("|")),t=me.test(q.compareDocumentPosition),R=t||me.test(q.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},U=t?function(e,t){if(e===t)return j=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n?n:(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1,1&n||!w.sortDetached&&t.compareDocumentPosition(e)===n?e===H||e.ownerDocument===B&&R(B,e)?-1:t===H||t.ownerDocument===B&&R(B,t)?1:D?ee(D,e)-ee(D,t):0:4&n?-1:1)}:function(e,t){if(e===t)return j=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,s=[e],u=[t];if(!i||!o)return e===H?-1:t===H?1:i?-1:o?1:D?ee(D,e)-ee(D,t):0;if(i===o)return a(e,t);for(n=e;n=n.parentNode;)s.unshift(n);for(n=t;n=n.parentNode;)u.unshift(n);for(;s[r]===u[r];)r++;return r?a(s[r],u[r]):s[r]===B?-1:u[r]===B?1:0},H):H},t.matches=function(e,n){return t(e,null,null,n)},t.matchesSelector=function(e,n){if((e.ownerDocument||e)!==H&&L(e),n=n.replace(ce,"='$1']"),w.matchesSelector&&_&&!X[n+" "]&&(!M||!M.test(n))&&(!F||!F.test(n)))try{var r=O.call(e,n);if(r||w.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(i){}return t(n,H,null,[e]).length>0},t.contains=function(e,t){return(e.ownerDocument||e)!==H&&L(e),R(e,t)},t.attr=function(e,t){(e.ownerDocument||e)!==H&&L(e);var n=T.attrHandle[t.toLowerCase()],r=n&&Y.call(T.attrHandle,t.toLowerCase())?n(e,t,!_):void 0;return void 0!==r?r:w.attributes||!_?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},t.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},t.uniqueSort=function(e){var t,n=[],r=0,i=0;if(j=!w.detectDuplicates,D=!w.sortStable&&e.slice(0),e.sort(U),j){for(;t=e[i++];)t===e[i]&&(r=n.push(i));for(;r--;)e.splice(n[r],1)}return D=null,e},C=t.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=C(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r++];)n+=C(t);return n},T=t.selectors={cacheLength:50,createPseudo:r,match:pe,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(be,we),e[3]=(e[3]||e[4]||e[5]||"").replace(be,we),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||t.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&t.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return pe.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&fe.test(n)&&(t=N(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(be,we).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=$[e+" "];return t||(t=new RegExp("(^|"+ne+")"+e+"("+ne+"|$)"))&&$(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,n,r){return function(i){var o=t.attr(i,e);return null==o?"!="===n:!n||(o+="","="===n?o===r:"!="===n?o!==r:"^="===n?r&&0===o.indexOf(r):"*="===n?r&&o.indexOf(r)>-1:"$="===n?r&&o.slice(-r.length)===r:"~="===n?(" "+o.replace(ae," ")+" ").indexOf(r)>-1:"|="===n&&(o===r||o.slice(0,r.length+1)===r+"-"))}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,u){var l,c,f,d,p,h,g=o!==a?"nextSibling":"previousSibling",m=t.parentNode,y=s&&t.nodeName.toLowerCase(),v=!u&&!s,x=!1;if(m){if(o){for(;g;){for(d=t;d=d[g];)if(s?d.nodeName.toLowerCase()===y:1===d.nodeType)return!1;h=g="only"===e&&!h&&"nextSibling"}return!0}if(h=[a?m.firstChild:m.lastChild],a&&v){for(d=m,f=d[P]||(d[P]={}),c=f[d.uniqueID]||(f[d.uniqueID]={}), l=c[e]||[],p=l[0]===W&&l[1],x=p&&l[2],d=p&&m.childNodes[p];d=++p&&d&&d[g]||(x=p=0)||h.pop();)if(1===d.nodeType&&++x&&d===t){c[e]=[W,p,x];break}}else if(v&&(d=t,f=d[P]||(d[P]={}),c=f[d.uniqueID]||(f[d.uniqueID]={}),l=c[e]||[],p=l[0]===W&&l[1],x=p),x===!1)for(;(d=++p&&d&&d[g]||(x=p=0)||h.pop())&&((s?d.nodeName.toLowerCase()!==y:1!==d.nodeType)||!++x||(v&&(f=d[P]||(d[P]={}),c=f[d.uniqueID]||(f[d.uniqueID]={}),c[e]=[W,x]),d!==t)););return x-=i,x===r||x%r===0&&x/r>=0}}},PSEUDO:function(e,n){var i,o=T.pseudos[e]||T.setFilters[e.toLowerCase()]||t.error("unsupported pseudo: "+e);return o[P]?o(n):o.length>1?(i=[e,e,"",n],T.setFilters.hasOwnProperty(e.toLowerCase())?r(function(e,t){for(var r,i=o(e,n),a=i.length;a--;)r=ee(e,i[a]),e[r]=!(t[r]=i[a])}):function(e){return o(e,0,i)}):o}},pseudos:{not:r(function(e){var t=[],n=[],i=k(e.replace(se,"$1"));return i[P]?r(function(e,t,n,r){for(var o,a=i(e,null,r,[]),s=e.length;s--;)(o=a[s])&&(e[s]=!(t[s]=o))}):function(e,r,o){return t[0]=e,i(t,null,o,n),t[0]=null,!n.pop()}}),has:r(function(e){return function(n){return t(e,n).length>0}}),contains:r(function(e){return e=e.replace(be,we),function(t){return(t.textContent||t.innerText||C(t)).indexOf(e)>-1}}),lang:r(function(e){return de.test(e||"")||t.error("unsupported lang: "+e),e=e.replace(be,we).toLowerCase(),function(t){var n;do if(n=_?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return n=n.toLowerCase(),n===e||0===n.indexOf(e+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===q},focus:function(e){return e===H.activeElement&&(!H.hasFocus||H.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return e.disabled===!1},disabled:function(e){return e.disabled===!0},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!T.pseudos.empty(e)},header:function(e){return ge.test(e.nodeName)},input:function(e){return he.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:l(function(){return[0]}),last:l(function(e,t){return[t-1]}),eq:l(function(e,t,n){return[n<0?n+t:n]}),even:l(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:l(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:l(function(e,t,n){for(var r=n<0?n+t:n;--r>=0;)e.push(r);return e}),gt:l(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}},T.pseudos.nth=T.pseudos.eq;for(b in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})T.pseudos[b]=s(b);for(b in{submit:!0,reset:!0})T.pseudos[b]=u(b);return f.prototype=T.filters=T.pseudos,T.setFilters=new f,N=t.tokenize=function(e,n){var r,i,o,a,s,u,l,c=z[e+" "];if(c)return n?0:c.slice(0);for(s=e,u=[],l=T.preFilter;s;){r&&!(i=ue.exec(s))||(i&&(s=s.slice(i[0].length)||s),u.push(o=[])),r=!1,(i=le.exec(s))&&(r=i.shift(),o.push({value:r,type:i[0].replace(se," ")}),s=s.slice(r.length));for(a in T.filter)!(i=pe[a].exec(s))||l[a]&&!(i=l[a](i))||(r=i.shift(),o.push({value:r,type:a,matches:i}),s=s.slice(r.length));if(!r)break}return n?s.length:s?t.error(e):z(e,u).slice(0)},k=t.compile=function(e,t){var n,r=[],i=[],o=X[e+" "];if(!o){for(t||(t=N(e)),n=t.length;n--;)o=v(t[n]),o[P]?r.push(o):i.push(o);o=X(e,x(i,r)),o.selector=e}return o},S=t.select=function(e,t,n,r){var i,o,a,s,u,l="function"==typeof e&&e,f=!r&&N(e=l.selector||e);if(n=n||[],1===f.length){if(o=f[0]=f[0].slice(0),o.length>2&&"ID"===(a=o[0]).type&&w.getById&&9===t.nodeType&&_&&T.relative[o[1].type]){if(t=(T.find.ID(a.matches[0].replace(be,we),t)||[])[0],!t)return n;l&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(i=pe.needsContext.test(e)?0:o.length;i--&&(a=o[i],!T.relative[s=a.type]);)if((u=T.find[s])&&(r=u(a.matches[0].replace(be,we),ve.test(o[0].type)&&c(t.parentNode)||t))){if(o.splice(i,1),e=r.length&&d(o),!e)return Q.apply(n,r),n;break}}return(l||k(e,f))(r,t,!_,n,!t||ve.test(e)&&c(t.parentNode)||t),n},w.sortStable=P.split("").sort(U).join("")===P,w.detectDuplicates=!!j,L(),w.sortDetached=i(function(e){return 1&e.compareDocumentPosition(H.createElement("div"))}),i(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||o("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),w.attributes&&i(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||o("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),i(function(e){return null==e.getAttribute("disabled")})||o(te,function(e,t,n){var r;if(!n)return e[t]===!0?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),t}(e);pe.find=ve,pe.expr=ve.selectors,pe.expr[":"]=pe.expr.pseudos,pe.uniqueSort=pe.unique=ve.uniqueSort,pe.text=ve.getText,pe.isXMLDoc=ve.isXML,pe.contains=ve.contains;var xe=function(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&pe(e).is(n))break;r.push(e)}return r},be=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},we=pe.expr.match.needsContext,Te=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,Ce=/^.[^:#\[\.,]*$/;pe.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?pe.find.matchesSelector(r,e)?[r]:[]:pe.find.matches(e,pe.grep(t,function(e){return 1===e.nodeType}))},pe.fn.extend({find:function(e){var t,n=[],r=this,i=r.length;if("string"!=typeof e)return this.pushStack(pe(e).filter(function(){for(t=0;t<i;t++)if(pe.contains(r[t],this))return!0}));for(t=0;t<i;t++)pe.find(e,r[t],n);return n=this.pushStack(i>1?pe.unique(n):n),n.selector=this.selector?this.selector+" "+e:e,n},filter:function(e){return this.pushStack(r(this,e||[],!1))},not:function(e){return this.pushStack(r(this,e||[],!0))},is:function(e){return!!r(this,"string"==typeof e&&we.test(e)?pe(e):e||[],!1).length}});var Ee,Ne=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,ke=pe.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||Ee,"string"==typeof e){if(r="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&e.length>=3?[null,e,null]:Ne.exec(e),!r||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof pe?t[0]:t,pe.merge(this,pe.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:re,!0)),Te.test(r[1])&&pe.isPlainObject(t))for(r in t)pe.isFunction(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}if(i=re.getElementById(r[2]),i&&i.parentNode){if(i.id!==r[2])return Ee.find(e);this.length=1,this[0]=i}return this.context=re,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):pe.isFunction(e)?"undefined"!=typeof n.ready?n.ready(e):e(pe):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),pe.makeArray(e,this))};ke.prototype=pe.fn,Ee=pe(re);var Se=/^(?:parents|prev(?:Until|All))/,Ae={children:!0,contents:!0,next:!0,prev:!0};pe.fn.extend({has:function(e){var t,n=pe(e,this),r=n.length;return this.filter(function(){for(t=0;t<r;t++)if(pe.contains(this,n[t]))return!0})},closest:function(e,t){for(var n,r=0,i=this.length,o=[],a=we.test(e)||"string"!=typeof e?pe(e,t||this.context):0;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&pe.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?pe.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?pe.inArray(this[0],pe(e)):pe.inArray(e.jquery?e[0]:e,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(pe.uniqueSort(pe.merge(this.get(),pe(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),pe.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return xe(e,"parentNode")},parentsUntil:function(e,t,n){return xe(e,"parentNode",n)},next:function(e){return i(e,"nextSibling")},prev:function(e){return i(e,"previousSibling")},nextAll:function(e){return xe(e,"nextSibling")},prevAll:function(e){return xe(e,"previousSibling")},nextUntil:function(e,t,n){return xe(e,"nextSibling",n)},prevUntil:function(e,t,n){return xe(e,"previousSibling",n)},siblings:function(e){return be((e.parentNode||{}).firstChild,e)},children:function(e){return be(e.firstChild)},contents:function(e){return pe.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:pe.merge([],e.childNodes)}},function(e,t){pe.fn[e]=function(n,r){var i=pe.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=pe.filter(r,i)),this.length>1&&(Ae[e]||(i=pe.uniqueSort(i)),Se.test(e)&&(i=i.reverse())),this.pushStack(i)}});var De=/\S+/g;pe.Callbacks=function(e){e="string"==typeof e?o(e):pe.extend({},e);var t,n,r,i,a=[],s=[],u=-1,l=function(){for(i=e.once,r=t=!0;s.length;u=-1)for(n=s.shift();++u<a.length;)a[u].apply(n[0],n[1])===!1&&e.stopOnFalse&&(u=a.length,n=!1);e.memory||(n=!1),t=!1,i&&(a=n?[]:"")},c={add:function(){return a&&(n&&!t&&(u=a.length-1,s.push(n)),function r(t){pe.each(t,function(t,n){pe.isFunction(n)?e.unique&&c.has(n)||a.push(n):n&&n.length&&"string"!==pe.type(n)&&r(n)})}(arguments),n&&!t&&l()),this},remove:function(){return pe.each(arguments,function(e,t){for(var n;(n=pe.inArray(t,a,n))>-1;)a.splice(n,1),n<=u&&u--}),this},has:function(e){return e?pe.inArray(e,a)>-1:a.length>0},empty:function(){return a&&(a=[]),this},disable:function(){return i=s=[],a=n="",this},disabled:function(){return!a},lock:function(){return i=!0,n||c.disable(),this},locked:function(){return!!i},fireWith:function(e,n){return i||(n=n||[],n=[e,n.slice?n.slice():n],s.push(n),t||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!r}};return c},pe.extend({Deferred:function(e){var t=[["resolve","done",pe.Callbacks("once memory"),"resolved"],["reject","fail",pe.Callbacks("once memory"),"rejected"],["notify","progress",pe.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var e=arguments;return pe.Deferred(function(n){pe.each(t,function(t,o){var a=pe.isFunction(e[t])&&e[t];i[o[1]](function(){var e=a&&a.apply(this,arguments);e&&pe.isFunction(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[o[0]+"With"](this===r?n.promise():this,a?[e]:arguments)})}),e=null}).promise()},promise:function(e){return null!=e?pe.extend(e,r):r}},i={};return r.pipe=r.then,pe.each(t,function(e,o){var a=o[2],s=o[3];r[o[1]]=a.add,s&&a.add(function(){n=s},t[1^e][2].disable,t[2][2].lock),i[o[0]]=function(){return i[o[0]+"With"](this===i?r:this,arguments),this},i[o[0]+"With"]=a.fireWith}),r.promise(i),e&&e.call(i,i),i},when:function(e){var t,n,r,i=0,o=ie.call(arguments),a=o.length,s=1!==a||e&&pe.isFunction(e.promise)?a:0,u=1===s?e:pe.Deferred(),l=function(e,n,r){return function(i){n[e]=this,r[e]=arguments.length>1?ie.call(arguments):i,r===t?u.notifyWith(n,r):--s||u.resolveWith(n,r)}};if(a>1)for(t=new Array(a),n=new Array(a),r=new Array(a);i<a;i++)o[i]&&pe.isFunction(o[i].promise)?o[i].promise().progress(l(i,n,t)).done(l(i,r,o)).fail(u.reject):--s;return s||u.resolveWith(r,o),u.promise()}});var je;pe.fn.ready=function(e){return pe.ready.promise().done(e),this},pe.extend({isReady:!1,readyWait:1,holdReady:function(e){e?pe.readyWait++:pe.ready(!0)},ready:function(e){(e===!0?--pe.readyWait:pe.isReady)||(pe.isReady=!0,e!==!0&&--pe.readyWait>0||(je.resolveWith(re,[pe]),pe.fn.triggerHandler&&(pe(re).triggerHandler("ready"),pe(re).off("ready"))))}}),pe.ready.promise=function(t){if(!je)if(je=pe.Deferred(),"complete"===re.readyState||"loading"!==re.readyState&&!re.documentElement.doScroll)e.setTimeout(pe.ready);else if(re.addEventListener)re.addEventListener("DOMContentLoaded",s),e.addEventListener("load",s);else{re.attachEvent("onreadystatechange",s),e.attachEvent("onload",s);var n=!1;try{n=null==e.frameElement&&re.documentElement}catch(r){}n&&n.doScroll&&!function i(){if(!pe.isReady){try{n.doScroll("left")}catch(t){return e.setTimeout(i,50)}a(),pe.ready()}}()}return je.promise(t)},pe.ready.promise();var Le;for(Le in pe(fe))break;fe.ownFirst="0"===Le,fe.inlineBlockNeedsLayout=!1,pe(function(){var e,t,n,r;n=re.getElementsByTagName("body")[0],n&&n.style&&(t=re.createElement("div"),r=re.createElement("div"),r.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(r).appendChild(t),"undefined"!=typeof t.style.zoom&&(t.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",fe.inlineBlockNeedsLayout=e=3===t.offsetWidth,e&&(n.style.zoom=1)),n.removeChild(r))}),function(){var e=re.createElement("div");fe.deleteExpando=!0;try{delete e.test}catch(t){fe.deleteExpando=!1}e=null}();var He=function(e){var t=pe.noData[(e.nodeName+" ").toLowerCase()],n=+e.nodeType||1;return(1===n||9===n)&&(!t||t!==!0&&e.getAttribute("classid")===t)},qe=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,_e=/([A-Z])/g;pe.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(e){return e=e.nodeType?pe.cache[e[pe.expando]]:e[pe.expando],!!e&&!l(e)},data:function(e,t,n){return c(e,t,n)},removeData:function(e,t){return f(e,t)},_data:function(e,t,n){return c(e,t,n,!0)},_removeData:function(e,t){return f(e,t,!0)}}),pe.fn.extend({data:function(e,t){var n,r,i,o=this[0],a=o&&o.attributes;if(void 0===e){if(this.length&&(i=pe.data(o),1===o.nodeType&&!pe._data(o,"parsedAttrs"))){for(n=a.length;n--;)a[n]&&(r=a[n].name,0===r.indexOf("data-")&&(r=pe.camelCase(r.slice(5)),u(o,r,i[r])));pe._data(o,"parsedAttrs",!0)}return i}return"object"==typeof e?this.each(function(){pe.data(this,e)}):arguments.length>1?this.each(function(){pe.data(this,e,t)}):o?u(o,e,pe.data(o,e)):void 0},removeData:function(e){return this.each(function(){pe.removeData(this,e)})}}),pe.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=pe._data(e,t),n&&(!r||pe.isArray(n)?r=pe._data(e,t,pe.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=pe.queue(e,t),r=n.length,i=n.shift(),o=pe._queueHooks(e,t),a=function(){pe.dequeue(e,t)};"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,a,o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return pe._data(e,n)||pe._data(e,n,{empty:pe.Callbacks("once memory").add(function(){pe._removeData(e,t+"queue"),pe._removeData(e,n)})})}}),pe.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?pe.queue(this[0],e):void 0===t?this:this.each(function(){var n=pe.queue(this,e,t);pe._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&pe.dequeue(this,e)})},dequeue:function(e){return this.each(function(){pe.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=pe.Deferred(),o=this,a=this.length,s=function(){--r||i.resolveWith(o,[o])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a--;)n=pe._data(o[a],e+"queueHooks"),n&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(t)}}),function(){var e;fe.shrinkWrapBlocks=function(){if(null!=e)return e;e=!1;var t,n,r;return n=re.getElementsByTagName("body")[0],n&&n.style?(t=re.createElement("div"),r=re.createElement("div"),r.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(r).appendChild(t),"undefined"!=typeof t.style.zoom&&(t.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:1px;width:1px;zoom:1",t.appendChild(re.createElement("div")).style.width="5px",e=3!==t.offsetWidth),n.removeChild(r),e):void 0}}();var Fe=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Me=new RegExp("^(?:([+-])=|)("+Fe+")([a-z%]*)$","i"),Oe=["Top","Right","Bottom","Left"],Re=function(e,t){return e=t||e,"none"===pe.css(e,"display")||!pe.contains(e.ownerDocument,e)},Pe=function(e,t,n,r,i,o,a){var s=0,u=e.length,l=null==n;if("object"===pe.type(n)){i=!0;for(s in n)Pe(e,t,s,n[s],!0,o,a)}else if(void 0!==r&&(i=!0,pe.isFunction(r)||(a=!0),l&&(a?(t.call(e,r),t=null):(l=t,t=function(e,t,n){return l.call(pe(e),n)})),t))for(;s<u;s++)t(e[s],n,a?r:r.call(e[s],s,t(e[s],n)));return i?e:l?t.call(e):u?t(e[0],n):o},Be=/^(?:checkbox|radio)$/i,We=/<([\w:-]+)/,Ie=/^$|\/(?:java|ecma)script/i,$e=/^\s+/,ze="abbr|article|aside|audio|bdi|canvas|data|datalist|details|dialog|figcaption|figure|footer|header|hgroup|main|mark|meter|nav|output|picture|progress|section|summary|template|time|video";!function(){var e=re.createElement("div"),t=re.createDocumentFragment(),n=re.createElement("input");e.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",fe.leadingWhitespace=3===e.firstChild.nodeType,fe.tbody=!e.getElementsByTagName("tbody").length,fe.htmlSerialize=!!e.getElementsByTagName("link").length,fe.html5Clone="<:nav></:nav>"!==re.createElement("nav").cloneNode(!0).outerHTML,n.type="checkbox",n.checked=!0,t.appendChild(n),fe.appendChecked=n.checked,e.innerHTML="<textarea>x</textarea>",fe.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue,t.appendChild(e),n=re.createElement("input"),n.setAttribute("type","radio"),n.setAttribute("checked","checked"),n.setAttribute("name","t"),e.appendChild(n),fe.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,fe.noCloneEvent=!!e.addEventListener,e[pe.expando]=1,fe.attributes=!e.getAttribute(pe.expando)}();var Xe={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:fe.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]};Xe.optgroup=Xe.option,Xe.tbody=Xe.tfoot=Xe.colgroup=Xe.caption=Xe.thead,Xe.th=Xe.td;var Ue=/<|&#?\w+;/,Ve=/<tbody/i;!function(){var t,n,r=re.createElement("div");for(t in{submit:!0,change:!0,focusin:!0})n="on"+t,(fe[t]=n in e)||(r.setAttribute(n,"t"),fe[t]=r.attributes[n].expando===!1);r=null}();var Ye=/^(?:input|select|textarea)$/i,Je=/^key/,Ge=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Ke=/^(?:focusinfocus|focusoutblur)$/,Qe=/^([^.]*)(?:\.(.+)|)/;pe.event={global:{},add:function(e,t,n,r,i){var o,a,s,u,l,c,f,d,p,h,g,m=pe._data(e);if(m){for(n.handler&&(u=n,n=u.handler,i=u.selector),n.guid||(n.guid=pe.guid++),(a=m.events)||(a=m.events={}),(c=m.handle)||(c=m.handle=function(e){return"undefined"==typeof pe||e&&pe.event.triggered===e.type?void 0:pe.event.dispatch.apply(c.elem,arguments)},c.elem=e),t=(t||"").match(De)||[""],s=t.length;s--;)o=Qe.exec(t[s])||[],p=g=o[1],h=(o[2]||"").split(".").sort(),p&&(l=pe.event.special[p]||{},p=(i?l.delegateType:l.bindType)||p,l=pe.event.special[p]||{},f=pe.extend({type:p,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&pe.expr.match.needsContext.test(i),namespace:h.join(".")},u),(d=a[p])||(d=a[p]=[],d.delegateCount=0,l.setup&&l.setup.call(e,r,h,c)!==!1||(e.addEventListener?e.addEventListener(p,c,!1):e.attachEvent&&e.attachEvent("on"+p,c))),l.add&&(l.add.call(e,f),f.handler.guid||(f.handler.guid=n.guid)),i?d.splice(d.delegateCount++,0,f):d.push(f),pe.event.global[p]=!0);e=null}},remove:function(e,t,n,r,i){var o,a,s,u,l,c,f,d,p,h,g,m=pe.hasData(e)&&pe._data(e);if(m&&(c=m.events)){for(t=(t||"").match(De)||[""],l=t.length;l--;)if(s=Qe.exec(t[l])||[],p=g=s[1],h=(s[2]||"").split(".").sort(),p){for(f=pe.event.special[p]||{},p=(r?f.delegateType:f.bindType)||p,d=c[p]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),u=o=d.length;o--;)a=d[o],!i&&g!==a.origType||n&&n.guid!==a.guid||s&&!s.test(a.namespace)||r&&r!==a.selector&&("**"!==r||!a.selector)||(d.splice(o,1),a.selector&&d.delegateCount--,f.remove&&f.remove.call(e,a));u&&!d.length&&(f.teardown&&f.teardown.call(e,h,m.handle)!==!1||pe.removeEvent(e,p,m.handle),delete c[p])}else for(p in c)pe.event.remove(e,p+t[l],n,r,!0);pe.isEmptyObject(c)&&(delete m.handle,pe._removeData(e,"events"))}},trigger:function(t,n,r,i){var o,a,s,u,l,c,f,d=[r||re],p=ce.call(t,"type")?t.type:t,h=ce.call(t,"namespace")?t.namespace.split("."):[];if(s=c=r=r||re,3!==r.nodeType&&8!==r.nodeType&&!Ke.test(p+pe.event.triggered)&&(p.indexOf(".")>-1&&(h=p.split("."),p=h.shift(),h.sort()),a=p.indexOf(":")<0&&"on"+p,t=t[pe.expando]?t:new pe.Event(p,"object"==typeof t&&t),t.isTrigger=i?2:3,t.namespace=h.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=r),n=null==n?[t]:pe.makeArray(n,[t]),l=pe.event.special[p]||{},i||!l.trigger||l.trigger.apply(r,n)!==!1)){if(!i&&!l.noBubble&&!pe.isWindow(r)){for(u=l.delegateType||p,Ke.test(u+p)||(s=s.parentNode);s;s=s.parentNode)d.push(s),c=s;c===(r.ownerDocument||re)&&d.push(c.defaultView||c.parentWindow||e)}for(f=0;(s=d[f++])&&!t.isPropagationStopped();)t.type=f>1?u:l.bindType||p,o=(pe._data(s,"events")||{})[t.type]&&pe._data(s,"handle"),o&&o.apply(s,n),o=a&&s[a],o&&o.apply&&He(s)&&(t.result=o.apply(s,n),t.result===!1&&t.preventDefault());if(t.type=p,!i&&!t.isDefaultPrevented()&&(!l._default||l._default.apply(d.pop(),n)===!1)&&He(r)&&a&&r[p]&&!pe.isWindow(r)){c=r[a],c&&(r[a]=null),pe.event.triggered=p;try{r[p]()}catch(g){}pe.event.triggered=void 0,c&&(r[a]=c)}return t.result}},dispatch:function(e){e=pe.event.fix(e);var t,n,r,i,o,a=[],s=ie.call(arguments),u=(pe._data(this,"events")||{})[e.type]||[],l=pe.event.special[e.type]||{};if(s[0]=e,e.delegateTarget=this,!l.preDispatch||l.preDispatch.call(this,e)!==!1){for(a=pe.event.handlers.call(this,e,u),t=0;(i=a[t++])&&!e.isPropagationStopped();)for(e.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!e.isImmediatePropagationStopped();)e.rnamespace&&!e.rnamespace.test(o.namespace)||(e.handleObj=o,e.data=o.data,r=((pe.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,s),void 0!==r&&(e.result=r)===!1&&(e.preventDefault(),e.stopPropagation()));return l.postDispatch&&l.postDispatch.call(this,e),e.result}},handlers:function(e,t){var n,r,i,o,a=[],s=t.delegateCount,u=e.target;if(s&&u.nodeType&&("click"!==e.type||isNaN(e.button)||e.button<1))for(;u!=this;u=u.parentNode||this)if(1===u.nodeType&&(u.disabled!==!0||"click"!==e.type)){for(r=[],n=0;n<s;n++)o=t[n],i=o.selector+" ",void 0===r[i]&&(r[i]=o.needsContext?pe(i,this).index(u)>-1:pe.find(i,this,null,[u]).length),r[i]&&r.push(o);r.length&&a.push({elem:u,handlers:r})}return s<t.length&&a.push({elem:this,handlers:t.slice(s)}),a},fix:function(e){if(e[pe.expando])return e;var t,n,r,i=e.type,o=e,a=this.fixHooks[i];for(a||(this.fixHooks[i]=a=Ge.test(i)?this.mouseHooks:Je.test(i)?this.keyHooks:{}),r=a.props?this.props.concat(a.props):this.props,e=new pe.Event(o),t=r.length;t--;)n=r[t],e[n]=o[n];return e.target||(e.target=o.srcElement||re),3===e.target.nodeType&&(e.target=e.target.parentNode),e.metaKey=!!e.metaKey,a.filter?a.filter(e,o):e},props:"altKey bubbles cancelable ctrlKey currentTarget detail eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,t){var n,r,i,o=t.button,a=t.fromElement;return null==e.pageX&&null!=t.clientX&&(r=e.target.ownerDocument||re,i=r.documentElement,n=r.body,e.pageX=t.clientX+(i&&i.scrollLeft||n&&n.scrollLeft||0)-(i&&i.clientLeft||n&&n.clientLeft||0),e.pageY=t.clientY+(i&&i.scrollTop||n&&n.scrollTop||0)-(i&&i.clientTop||n&&n.clientTop||0)),!e.relatedTarget&&a&&(e.relatedTarget=a===e.target?t.toElement:a),e.which||void 0===o||(e.which=1&o?1:2&o?3:4&o?2:0),e}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==b()&&this.focus)try{return this.focus(),!1}catch(e){}},delegateType:"focusin"},blur:{trigger:function(){if(this===b()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if(pe.nodeName(this,"input")&&"checkbox"===this.type&&this.click)return this.click(),!1},_default:function(e){return pe.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}},simulate:function(e,t,n){var r=pe.extend(new pe.Event,n,{type:e,isSimulated:!0});pe.event.trigger(r,null,t),r.isDefaultPrevented()&&n.preventDefault()}},pe.removeEvent=re.removeEventListener?function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)}:function(e,t,n){var r="on"+t;e.detachEvent&&("undefined"==typeof e[r]&&(e[r]=null),e.detachEvent(r,n))},pe.Event=function(e,t){return this instanceof pe.Event?(e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&e.returnValue===!1?v:x):this.type=e,t&&pe.extend(this,t),this.timeStamp=e&&e.timeStamp||pe.now(),void(this[pe.expando]=!0)):new pe.Event(e,t)},pe.Event.prototype={constructor:pe.Event,isDefaultPrevented:x,isPropagationStopped:x,isImmediatePropagationStopped:x,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=v,e&&(e.preventDefault?e.preventDefault():e.returnValue=!1)},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=v,e&&!this.isSimulated&&(e.stopPropagation&&e.stopPropagation(),e.cancelBubble=!0)},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=v,e&&e.stopImmediatePropagation&&e.stopImmediatePropagation(),this.stopPropagation()}},pe.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){pe.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,o=e.handleObj;return i&&(i===r||pe.contains(r,i))||(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}}),fe.submit||(pe.event.special.submit={setup:function(){return!pe.nodeName(this,"form")&&void pe.event.add(this,"click._submit keypress._submit",function(e){var t=e.target,n=pe.nodeName(t,"input")||pe.nodeName(t,"button")?pe.prop(t,"form"):void 0;n&&!pe._data(n,"submit")&&(pe.event.add(n,"submit._submit",function(e){e._submitBubble=!0}),pe._data(n,"submit",!0))})},postDispatch:function(e){e._submitBubble&&(delete e._submitBubble,this.parentNode&&!e.isTrigger&&pe.event.simulate("submit",this.parentNode,e))},teardown:function(){return!pe.nodeName(this,"form")&&void pe.event.remove(this,"._submit")}}),fe.change||(pe.event.special.change={setup:function(){return Ye.test(this.nodeName)?("checkbox"!==this.type&&"radio"!==this.type||(pe.event.add(this,"propertychange._change",function(e){"checked"===e.originalEvent.propertyName&&(this._justChanged=!0)}),pe.event.add(this,"click._change",function(e){this._justChanged&&!e.isTrigger&&(this._justChanged=!1),pe.event.simulate("change",this,e)})),!1):void pe.event.add(this,"beforeactivate._change",function(e){var t=e.target;Ye.test(t.nodeName)&&!pe._data(t,"change")&&(pe.event.add(t,"change._change",function(e){!this.parentNode||e.isSimulated||e.isTrigger||pe.event.simulate("change",this.parentNode,e)}),pe._data(t,"change",!0))})},handle:function(e){var t=e.target;if(this!==t||e.isSimulated||e.isTrigger||"radio"!==t.type&&"checkbox"!==t.type)return e.handleObj.handler.apply(this,arguments)},teardown:function(){return pe.event.remove(this,"._change"),!Ye.test(this.nodeName)}}),fe.focusin||pe.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){pe.event.simulate(t,e.target,pe.event.fix(e))};pe.event.special[t]={setup:function(){var r=this.ownerDocument||this,i=pe._data(r,t);i||r.addEventListener(e,n,!0),pe._data(r,t,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this,i=pe._data(r,t)-1;i?pe._data(r,t,i):(r.removeEventListener(e,n,!0),pe._removeData(r,t))}}}),pe.fn.extend({on:function(e,t,n,r){return w(this,e,t,n,r)},one:function(e,t,n,r){return w(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,pe(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return t!==!1&&"function"!=typeof t||(n=t,t=void 0),n===!1&&(n=x),this.each(function(){pe.event.remove(this,e,n,t)})},trigger:function(e,t){return this.each(function(){pe.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return pe.event.trigger(e,t,n,!0)}});var Ze=/ jQuery\d+="(?:null|\d+)"/g,et=new RegExp("<(?:"+ze+")[\\s/>]","i"),tt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,nt=/<script|<style|<link/i,rt=/checked\s*(?:[^=]|=\s*.checked.)/i,it=/^true\/(.*)/,ot=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,at=p(re),st=at.appendChild(re.createElement("div"));pe.extend({htmlPrefilter:function(e){return e.replace(tt,"<$1></$2>")},clone:function(e,t,n){var r,i,o,a,s,u=pe.contains(e.ownerDocument,e);if(fe.html5Clone||pe.isXMLDoc(e)||!et.test("<"+e.nodeName+">")?o=e.cloneNode(!0):(st.innerHTML=e.outerHTML,st.removeChild(o=st.firstChild)),!(fe.noCloneEvent&&fe.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||pe.isXMLDoc(e)))for(r=h(o),s=h(e),a=0;null!=(i=s[a]);++a)r[a]&&k(i,r[a]);if(t)if(n)for(s=s||h(e),r=r||h(o),a=0;null!=(i=s[a]);a++)N(i,r[a]);else N(e,o);return r=h(o,"script"),r.length>0&&g(r,!u&&h(e,"script")),r=s=i=null,o},cleanData:function(e,t){for(var n,r,i,o,a=0,s=pe.expando,u=pe.cache,l=fe.attributes,c=pe.event.special;null!=(n=e[a]);a++)if((t||He(n))&&(i=n[s],o=i&&u[i])){if(o.events)for(r in o.events)c[r]?pe.event.remove(n,r):pe.removeEvent(n,r,o.handle);u[i]&&(delete u[i],l||"undefined"==typeof n.removeAttribute?n[s]=void 0:n.removeAttribute(s),ne.push(i))}}}),pe.fn.extend({domManip:S,detach:function(e){return A(this,e,!0)},remove:function(e){return A(this,e)},text:function(e){return Pe(this,function(e){return void 0===e?pe.text(this):this.empty().append((this[0]&&this[0].ownerDocument||re).createTextNode(e))},null,e,arguments.length)},append:function(){return S(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=T(this,e);t.appendChild(e)}})},prepend:function(){return S(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=T(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return S(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return S(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++){for(1===e.nodeType&&pe.cleanData(h(e,!1));e.firstChild;)e.removeChild(e.firstChild);e.options&&pe.nodeName(e,"select")&&(e.options.length=0)}return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return pe.clone(this,e,t)})},html:function(e){return Pe(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e)return 1===t.nodeType?t.innerHTML.replace(Ze,""):void 0;if("string"==typeof e&&!nt.test(e)&&(fe.htmlSerialize||!et.test(e))&&(fe.leadingWhitespace||!$e.test(e))&&!Xe[(We.exec(e)||["",""])[1].toLowerCase()]){e=pe.htmlPrefilter(e);try{for(;n<r;n++)t=this[n]||{},1===t.nodeType&&(pe.cleanData(h(t,!1)),t.innerHTML=e);t=0}catch(i){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return S(this,arguments,function(t){var n=this.parentNode;pe.inArray(this,e)<0&&(pe.cleanData(h(this)), n&&n.replaceChild(t,this))},e)}}),pe.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){pe.fn[e]=function(e){for(var n,r=0,i=[],o=pe(e),a=o.length-1;r<=a;r++)n=r===a?this:this.clone(!0),pe(o[r])[t](n),ae.apply(i,n.get());return this.pushStack(i)}});var ut,lt={HTML:"block",BODY:"block"},ct=/^margin/,ft=new RegExp("^("+Fe+")(?!px)[a-z%]+$","i"),dt=function(e,t,n,r){var i,o,a={};for(o in t)a[o]=e.style[o],e.style[o]=t[o];i=n.apply(e,r||[]);for(o in t)e.style[o]=a[o];return i},pt=re.documentElement;!function(){function t(){var t,c,f=re.documentElement;f.appendChild(u),l.style.cssText="-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",n=i=s=!1,r=a=!0,e.getComputedStyle&&(c=e.getComputedStyle(l),n="1%"!==(c||{}).top,s="2px"===(c||{}).marginLeft,i="4px"===(c||{width:"4px"}).width,l.style.marginRight="50%",r="4px"===(c||{marginRight:"4px"}).marginRight,t=l.appendChild(re.createElement("div")),t.style.cssText=l.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",t.style.marginRight=t.style.width="0",l.style.width="1px",a=!parseFloat((e.getComputedStyle(t)||{}).marginRight),l.removeChild(t)),l.style.display="none",o=0===l.getClientRects().length,o&&(l.style.display="",l.innerHTML="<table><tr><td></td><td>t</td></tr></table>",t=l.getElementsByTagName("td"),t[0].style.cssText="margin:0;border:0;padding:0;display:none",o=0===t[0].offsetHeight,o&&(t[0].style.display="",t[1].style.display="none",o=0===t[0].offsetHeight)),f.removeChild(u)}var n,r,i,o,a,s,u=re.createElement("div"),l=re.createElement("div");l.style&&(l.style.cssText="float:left;opacity:.5",fe.opacity="0.5"===l.style.opacity,fe.cssFloat=!!l.style.cssFloat,l.style.backgroundClip="content-box",l.cloneNode(!0).style.backgroundClip="",fe.clearCloneStyle="content-box"===l.style.backgroundClip,u=re.createElement("div"),u.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",l.innerHTML="",u.appendChild(l),fe.boxSizing=""===l.style.boxSizing||""===l.style.MozBoxSizing||""===l.style.WebkitBoxSizing,pe.extend(fe,{reliableHiddenOffsets:function(){return null==n&&t(),o},boxSizingReliable:function(){return null==n&&t(),i},pixelMarginRight:function(){return null==n&&t(),r},pixelPosition:function(){return null==n&&t(),n},reliableMarginRight:function(){return null==n&&t(),a},reliableMarginLeft:function(){return null==n&&t(),s}}))}();var ht,gt,mt=/^(top|right|bottom|left)$/;e.getComputedStyle?(ht=function(t){var n=t.ownerDocument.defaultView;return n&&n.opener||(n=e),n.getComputedStyle(t)},gt=function(e,t,n){var r,i,o,a,s=e.style;return n=n||ht(e),a=n?n.getPropertyValue(t)||n[t]:void 0,""!==a&&void 0!==a||pe.contains(e.ownerDocument,e)||(a=pe.style(e,t)),n&&!fe.pixelMarginRight()&&ft.test(a)&&ct.test(t)&&(r=s.width,i=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=r,s.minWidth=i,s.maxWidth=o),void 0===a?a:a+""}):pt.currentStyle&&(ht=function(e){return e.currentStyle},gt=function(e,t,n){var r,i,o,a,s=e.style;return n=n||ht(e),a=n?n[t]:void 0,null==a&&s&&s[t]&&(a=s[t]),ft.test(a)&&!mt.test(t)&&(r=s.left,i=e.runtimeStyle,o=i&&i.left,o&&(i.left=e.currentStyle.left),s.left="fontSize"===t?"1em":a,a=s.pixelLeft+"px",s.left=r,o&&(i.left=o)),void 0===a?a:a+""||"auto"});var yt=/alpha\([^)]*\)/i,vt=/opacity\s*=\s*([^)]*)/i,xt=/^(none|table(?!-c[ea]).+)/,bt=new RegExp("^("+Fe+")(.*)$","i"),wt={position:"absolute",visibility:"hidden",display:"block"},Tt={letterSpacing:"0",fontWeight:"400"},Ct=["Webkit","O","Moz","ms"],Et=re.createElement("div").style;pe.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=gt(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":fe.cssFloat?"cssFloat":"styleFloat"},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,s=pe.camelCase(t),u=e.style;if(t=pe.cssProps[s]||(pe.cssProps[s]=H(s)||s),a=pe.cssHooks[t]||pe.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(e,!1,r))?i:u[t];if(o=typeof n,"string"===o&&(i=Me.exec(n))&&i[1]&&(n=d(e,t,i),o="number"),null!=n&&n===n&&("number"===o&&(n+=i&&i[3]||(pe.cssNumber[s]?"":"px")),fe.clearCloneStyle||""!==n||0!==t.indexOf("background")||(u[t]="inherit"),!(a&&"set"in a&&void 0===(n=a.set(e,n,r)))))try{u[t]=n}catch(l){}}},css:function(e,t,n,r){var i,o,a,s=pe.camelCase(t);return t=pe.cssProps[s]||(pe.cssProps[s]=H(s)||s),a=pe.cssHooks[t]||pe.cssHooks[s],a&&"get"in a&&(o=a.get(e,!0,n)),void 0===o&&(o=gt(e,t,r)),"normal"===o&&t in Tt&&(o=Tt[t]),""===n||n?(i=parseFloat(o),n===!0||isFinite(i)?i||0:o):o}}),pe.each(["height","width"],function(e,t){pe.cssHooks[t]={get:function(e,n,r){if(n)return xt.test(pe.css(e,"display"))&&0===e.offsetWidth?dt(e,wt,function(){return M(e,t,r)}):M(e,t,r)},set:function(e,n,r){var i=r&&ht(e);return _(e,n,r?F(e,t,r,fe.boxSizing&&"border-box"===pe.css(e,"boxSizing",!1,i),i):0)}}}),fe.opacity||(pe.cssHooks.opacity={get:function(e,t){return vt.test((t&&e.currentStyle?e.currentStyle.filter:e.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":t?"1":""},set:function(e,t){var n=e.style,r=e.currentStyle,i=pe.isNumeric(t)?"alpha(opacity="+100*t+")":"",o=r&&r.filter||n.filter||"";n.zoom=1,(t>=1||""===t)&&""===pe.trim(o.replace(yt,""))&&n.removeAttribute&&(n.removeAttribute("filter"),""===t||r&&!r.filter)||(n.filter=yt.test(o)?o.replace(yt,i):o+" "+i)}}),pe.cssHooks.marginRight=L(fe.reliableMarginRight,function(e,t){if(t)return dt(e,{display:"inline-block"},gt,[e,"marginRight"])}),pe.cssHooks.marginLeft=L(fe.reliableMarginLeft,function(e,t){if(t)return(parseFloat(gt(e,"marginLeft"))||(pe.contains(e.ownerDocument,e)?e.getBoundingClientRect().left-dt(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}):0))+"px"}),pe.each({margin:"",padding:"",border:"Width"},function(e,t){pe.cssHooks[e+t]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];r<4;r++)i[e+Oe[r]+t]=o[r]||o[r-2]||o[0];return i}},ct.test(e)||(pe.cssHooks[e+t].set=_)}),pe.fn.extend({css:function(e,t){return Pe(this,function(e,t,n){var r,i,o={},a=0;if(pe.isArray(t)){for(r=ht(e),i=t.length;a<i;a++)o[t[a]]=pe.css(e,t[a],!1,r);return o}return void 0!==n?pe.style(e,t,n):pe.css(e,t)},e,t,arguments.length>1)},show:function(){return q(this,!0)},hide:function(){return q(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){Re(this)?pe(this).show():pe(this).hide()})}}),pe.Tween=O,O.prototype={constructor:O,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||pe.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(pe.cssNumber[n]?"":"px")},cur:function(){var e=O.propHooks[this.prop];return e&&e.get?e.get(this):O.propHooks._default.get(this)},run:function(e){var t,n=O.propHooks[this.prop];return this.options.duration?this.pos=t=pe.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):O.propHooks._default.set(this),this}},O.prototype.init.prototype=O.prototype,O.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=pe.css(e.elem,e.prop,""),t&&"auto"!==t?t:0)},set:function(e){pe.fx.step[e.prop]?pe.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[pe.cssProps[e.prop]]&&!pe.cssHooks[e.prop]?e.elem[e.prop]=e.now:pe.style(e.elem,e.prop,e.now+e.unit)}}},O.propHooks.scrollTop=O.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},pe.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},pe.fx=O.prototype.init,pe.fx.step={};var Nt,kt,St=/^(?:toggle|show|hide)$/,At=/queueHooks$/;pe.Animation=pe.extend($,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return d(n.elem,e,Me.exec(t),n),n}]},tweener:function(e,t){pe.isFunction(e)?(t=e,e=["*"]):e=e.match(De);for(var n,r=0,i=e.length;r<i;r++)n=e[r],$.tweeners[n]=$.tweeners[n]||[],$.tweeners[n].unshift(t)},prefilters:[W],prefilter:function(e,t){t?$.prefilters.unshift(e):$.prefilters.push(e)}}),pe.speed=function(e,t,n){var r=e&&"object"==typeof e?pe.extend({},e):{complete:n||!n&&t||pe.isFunction(e)&&e,duration:e,easing:n&&t||t&&!pe.isFunction(t)&&t};return r.duration=pe.fx.off?0:"number"==typeof r.duration?r.duration:r.duration in pe.fx.speeds?pe.fx.speeds[r.duration]:pe.fx.speeds._default,null!=r.queue&&r.queue!==!0||(r.queue="fx"),r.old=r.complete,r.complete=function(){pe.isFunction(r.old)&&r.old.call(this),r.queue&&pe.dequeue(this,r.queue)},r},pe.fn.extend({fadeTo:function(e,t,n,r){return this.filter(Re).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=pe.isEmptyObject(e),o=pe.speed(t,n,r),a=function(){var t=$(this,pe.extend({},e),o);(i||pe._data(this,"finish"))&&t.stop(!0)};return a.finish=a,i||o.queue===!1?this.each(a):this.queue(o.queue,a)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&e!==!1&&this.queue(e||"fx",[]),this.each(function(){var t=!0,i=null!=e&&e+"queueHooks",o=pe.timers,a=pe._data(this);if(i)a[i]&&a[i].stop&&r(a[i]);else for(i in a)a[i]&&a[i].stop&&At.test(i)&&r(a[i]);for(i=o.length;i--;)o[i].elem!==this||null!=e&&o[i].queue!==e||(o[i].anim.stop(n),t=!1,o.splice(i,1));!t&&n||pe.dequeue(this,e)})},finish:function(e){return e!==!1&&(e=e||"fx"),this.each(function(){var t,n=pe._data(this),r=n[e+"queue"],i=n[e+"queueHooks"],o=pe.timers,a=r?r.length:0;for(n.finish=!0,pe.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;t<a;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish})}}),pe.each(["toggle","show","hide"],function(e,t){var n=pe.fn[t];pe.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(P(t,!0),e,r,i)}}),pe.each({slideDown:P("show"),slideUp:P("hide"),slideToggle:P("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){pe.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),pe.timers=[],pe.fx.tick=function(){var e,t=pe.timers,n=0;for(Nt=pe.now();n<t.length;n++)e=t[n],e()||t[n]!==e||t.splice(n--,1);t.length||pe.fx.stop(),Nt=void 0},pe.fx.timer=function(e){pe.timers.push(e),e()?pe.fx.start():pe.timers.pop()},pe.fx.interval=13,pe.fx.start=function(){kt||(kt=e.setInterval(pe.fx.tick,pe.fx.interval))},pe.fx.stop=function(){e.clearInterval(kt),kt=null},pe.fx.speeds={slow:600,fast:200,_default:400},pe.fn.delay=function(t,n){return t=pe.fx?pe.fx.speeds[t]||t:t,n=n||"fx",this.queue(n,function(n,r){var i=e.setTimeout(n,t);r.stop=function(){e.clearTimeout(i)}})},function(){var e,t=re.createElement("input"),n=re.createElement("div"),r=re.createElement("select"),i=r.appendChild(re.createElement("option"));n=re.createElement("div"),n.setAttribute("className","t"),n.innerHTML=" <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",e=n.getElementsByTagName("a")[0],t.setAttribute("type","checkbox"),n.appendChild(t),e=n.getElementsByTagName("a")[0],e.style.cssText="top:1px",fe.getSetAttribute="t"!==n.className,fe.style=/top/.test(e.getAttribute("style")),fe.hrefNormalized="/a"===e.getAttribute("href"),fe.checkOn=!!t.value,fe.optSelected=i.selected,fe.enctype=!!re.createElement("form").enctype,r.disabled=!0,fe.optDisabled=!i.disabled,t=re.createElement("input"),t.setAttribute("value",""),fe.input=""===t.getAttribute("value"),t.value="t",t.setAttribute("type","radio"),fe.radioValue="t"===t.value}();var Dt=/\r/g,jt=/[\x20\t\r\n\f]+/g;pe.fn.extend({val:function(e){var t,n,r,i=this[0];{if(arguments.length)return r=pe.isFunction(e),this.each(function(n){var i;1===this.nodeType&&(i=r?e.call(this,n,pe(this).val()):e,null==i?i="":"number"==typeof i?i+="":pe.isArray(i)&&(i=pe.map(i,function(e){return null==e?"":e+""})),t=pe.valHooks[this.type]||pe.valHooks[this.nodeName.toLowerCase()],t&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))});if(i)return t=pe.valHooks[i.type]||pe.valHooks[i.nodeName.toLowerCase()],t&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:(n=i.value,"string"==typeof n?n.replace(Dt,""):null==n?"":n)}}}),pe.extend({valHooks:{option:{get:function(e){var t=pe.find.attr(e,"value");return null!=t?t:pe.trim(pe.text(e)).replace(jt," ")}},select:{get:function(e){for(var t,n,r=e.options,i=e.selectedIndex,o="select-one"===e.type||i<0,a=o?null:[],s=o?i+1:r.length,u=i<0?s:o?i:0;u<s;u++)if(n=r[u],(n.selected||u===i)&&(fe.optDisabled?!n.disabled:null===n.getAttribute("disabled"))&&(!n.parentNode.disabled||!pe.nodeName(n.parentNode,"optgroup"))){if(t=pe(n).val(),o)return t;a.push(t)}return a},set:function(e,t){for(var n,r,i=e.options,o=pe.makeArray(t),a=i.length;a--;)if(r=i[a],pe.inArray(pe.valHooks.option.get(r),o)>-1)try{r.selected=n=!0}catch(s){r.scrollHeight}else r.selected=!1;return n||(e.selectedIndex=-1),i}}}}),pe.each(["radio","checkbox"],function(){pe.valHooks[this]={set:function(e,t){if(pe.isArray(t))return e.checked=pe.inArray(pe(e).val(),t)>-1}},fe.checkOn||(pe.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var Lt,Ht,qt=pe.expr.attrHandle,_t=/^(?:checked|selected)$/i,Ft=fe.getSetAttribute,Mt=fe.input;pe.fn.extend({attr:function(e,t){return Pe(this,pe.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){pe.removeAttr(this,e)})}}),pe.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return"undefined"==typeof e.getAttribute?pe.prop(e,t,n):(1===o&&pe.isXMLDoc(e)||(t=t.toLowerCase(),i=pe.attrHooks[t]||(pe.expr.match.bool.test(t)?Ht:Lt)),void 0!==n?null===n?void pe.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:(r=pe.find.attr(e,t),null==r?void 0:r))},attrHooks:{type:{set:function(e,t){if(!fe.radioValue&&"radio"===t&&pe.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r,i=0,o=t&&t.match(De);if(o&&1===e.nodeType)for(;n=o[i++];)r=pe.propFix[n]||n,pe.expr.match.bool.test(n)?Mt&&Ft||!_t.test(n)?e[r]=!1:e[pe.camelCase("default-"+n)]=e[r]=!1:pe.attr(e,n,""),e.removeAttribute(Ft?n:r)}}),Ht={set:function(e,t,n){return t===!1?pe.removeAttr(e,n):Mt&&Ft||!_t.test(n)?e.setAttribute(!Ft&&pe.propFix[n]||n,n):e[pe.camelCase("default-"+n)]=e[n]=!0,n}},pe.each(pe.expr.match.bool.source.match(/\w+/g),function(e,t){var n=qt[t]||pe.find.attr;Mt&&Ft||!_t.test(t)?qt[t]=function(e,t,r){var i,o;return r||(o=qt[t],qt[t]=i,i=null!=n(e,t,r)?t.toLowerCase():null,qt[t]=o),i}:qt[t]=function(e,t,n){if(!n)return e[pe.camelCase("default-"+t)]?t.toLowerCase():null}}),Mt&&Ft||(pe.attrHooks.value={set:function(e,t,n){return pe.nodeName(e,"input")?void(e.defaultValue=t):Lt&&Lt.set(e,t,n)}}),Ft||(Lt={set:function(e,t,n){var r=e.getAttributeNode(n);if(r||e.setAttributeNode(r=e.ownerDocument.createAttribute(n)),r.value=t+="","value"===n||t===e.getAttribute(n))return t}},qt.id=qt.name=qt.coords=function(e,t,n){var r;if(!n)return(r=e.getAttributeNode(t))&&""!==r.value?r.value:null},pe.valHooks.button={get:function(e,t){var n=e.getAttributeNode(t);if(n&&n.specified)return n.value},set:Lt.set},pe.attrHooks.contenteditable={set:function(e,t,n){Lt.set(e,""!==t&&t,n)}},pe.each(["width","height"],function(e,t){pe.attrHooks[t]={set:function(e,n){if(""===n)return e.setAttribute(t,"auto"),n}}})),fe.style||(pe.attrHooks.style={get:function(e){return e.style.cssText||void 0},set:function(e,t){return e.style.cssText=t+""}});var Ot=/^(?:input|select|textarea|button|object)$/i,Rt=/^(?:a|area)$/i;pe.fn.extend({prop:function(e,t){return Pe(this,pe.prop,e,t,arguments.length>1)},removeProp:function(e){return e=pe.propFix[e]||e,this.each(function(){try{this[e]=void 0,delete this[e]}catch(t){}})}}),pe.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&pe.isXMLDoc(e)||(t=pe.propFix[t]||t,i=pe.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=pe.find.attr(e,"tabindex");return t?parseInt(t,10):Ot.test(e.nodeName)||Rt.test(e.nodeName)&&e.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),fe.hrefNormalized||pe.each(["href","src"],function(e,t){pe.propHooks[t]={get:function(e){return e.getAttribute(t,4)}}}),fe.optSelected||(pe.propHooks.selected={get:function(e){var t=e.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),pe.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){pe.propFix[this.toLowerCase()]=this}),fe.enctype||(pe.propFix.enctype="encoding");var Pt=/[\t\r\n\f]/g;pe.fn.extend({addClass:function(e){var t,n,r,i,o,a,s,u=0;if(pe.isFunction(e))return this.each(function(t){pe(this).addClass(e.call(this,t,z(this)))});if("string"==typeof e&&e)for(t=e.match(De)||[];n=this[u++];)if(i=z(n),r=1===n.nodeType&&(" "+i+" ").replace(Pt," ")){for(a=0;o=t[a++];)r.indexOf(" "+o+" ")<0&&(r+=o+" ");s=pe.trim(r),i!==s&&pe.attr(n,"class",s)}return this},removeClass:function(e){var t,n,r,i,o,a,s,u=0;if(pe.isFunction(e))return this.each(function(t){pe(this).removeClass(e.call(this,t,z(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof e&&e)for(t=e.match(De)||[];n=this[u++];)if(i=z(n),r=1===n.nodeType&&(" "+i+" ").replace(Pt," ")){for(a=0;o=t[a++];)for(;r.indexOf(" "+o+" ")>-1;)r=r.replace(" "+o+" "," ");s=pe.trim(r),i!==s&&pe.attr(n,"class",s)}return this},toggleClass:function(e,t){var n=typeof e;return"boolean"==typeof t&&"string"===n?t?this.addClass(e):this.removeClass(e):pe.isFunction(e)?this.each(function(n){pe(this).toggleClass(e.call(this,n,z(this),t),t)}):this.each(function(){var t,r,i,o;if("string"===n)for(r=0,i=pe(this),o=e.match(De)||[];t=o[r++];)i.hasClass(t)?i.removeClass(t):i.addClass(t);else void 0!==e&&"boolean"!==n||(t=z(this),t&&pe._data(this,"__className__",t),pe.attr(this,"class",t||e===!1?"":pe._data(this,"__className__")||""))})},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+z(n)+" ").replace(Pt," ").indexOf(t)>-1)return!0;return!1}}),pe.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(e,t){pe.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),pe.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}});var Bt=e.location,Wt=pe.now(),It=/\?/,$t=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;pe.parseJSON=function(t){if(e.JSON&&e.JSON.parse)return e.JSON.parse(t+"");var n,r=null,i=pe.trim(t+"");return i&&!pe.trim(i.replace($t,function(e,t,i,o){return n&&t&&(r=0),0===r?e:(n=i||t,r+=!o-!i,"")}))?Function("return "+i)():pe.error("Invalid JSON: "+t)},pe.parseXML=function(t){var n,r;if(!t||"string"!=typeof t)return null;try{e.DOMParser?(r=new e.DOMParser,n=r.parseFromString(t,"text/xml")):(n=new e.ActiveXObject("Microsoft.XMLDOM"),n.async="false",n.loadXML(t))}catch(i){n=void 0}return n&&n.documentElement&&!n.getElementsByTagName("parsererror").length||pe.error("Invalid XML: "+t),n};var zt=/#.*$/,Xt=/([?&])_=[^&]*/,Ut=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Vt=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Yt=/^(?:GET|HEAD)$/,Jt=/^\/\//,Gt=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,Kt={},Qt={},Zt="*/".concat("*"),en=Bt.href,tn=Gt.exec(en.toLowerCase())||[];pe.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:en,type:"GET",isLocal:Vt.test(tn[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Zt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":pe.parseJSON,"text xml":pe.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?V(V(e,pe.ajaxSettings),t):V(pe.ajaxSettings,e)},ajaxPrefilter:X(Kt),ajaxTransport:X(Qt),ajax:function(t,n){function r(t,n,r,i){var o,f,v,x,w,C=n;2!==b&&(b=2,u&&e.clearTimeout(u),c=void 0,s=i||"",T.readyState=t>0?4:0,o=t>=200&&t<300||304===t,r&&(x=Y(d,T,r)),x=J(d,x,T,o),o?(d.ifModified&&(w=T.getResponseHeader("Last-Modified"),w&&(pe.lastModified[a]=w),w=T.getResponseHeader("etag"),w&&(pe.etag[a]=w)),204===t||"HEAD"===d.type?C="nocontent":304===t?C="notmodified":(C=x.state,f=x.data,v=x.error,o=!v)):(v=C,!t&&C||(C="error",t<0&&(t=0))),T.status=t,T.statusText=(n||C)+"",o?g.resolveWith(p,[f,C,T]):g.rejectWith(p,[T,C,v]),T.statusCode(y),y=void 0,l&&h.trigger(o?"ajaxSuccess":"ajaxError",[T,d,o?f:v]),m.fireWith(p,[T,C]),l&&(h.trigger("ajaxComplete",[T,d]),--pe.active||pe.event.trigger("ajaxStop")))}"object"==typeof t&&(n=t,t=void 0),n=n||{};var i,o,a,s,u,l,c,f,d=pe.ajaxSetup({},n),p=d.context||d,h=d.context&&(p.nodeType||p.jquery)?pe(p):pe.event,g=pe.Deferred(),m=pe.Callbacks("once memory"),y=d.statusCode||{},v={},x={},b=0,w="canceled",T={readyState:0,getResponseHeader:function(e){var t;if(2===b){if(!f)for(f={};t=Ut.exec(s);)f[t[1].toLowerCase()]=t[2];t=f[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===b?s:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return b||(e=x[n]=x[n]||e,v[e]=t),this},overrideMimeType:function(e){return b||(d.mimeType=e),this},statusCode:function(e){var t;if(e)if(b<2)for(t in e)y[t]=[y[t],e[t]];else T.always(e[T.status]);return this},abort:function(e){var t=e||w;return c&&c.abort(t),r(0,t),this}};if(g.promise(T).complete=m.add,T.success=T.done,T.error=T.fail,d.url=((t||d.url||en)+"").replace(zt,"").replace(Jt,tn[1]+"//"),d.type=n.method||n.type||d.method||d.type,d.dataTypes=pe.trim(d.dataType||"*").toLowerCase().match(De)||[""],null==d.crossDomain&&(i=Gt.exec(d.url.toLowerCase()),d.crossDomain=!(!i||i[1]===tn[1]&&i[2]===tn[2]&&(i[3]||("http:"===i[1]?"80":"443"))===(tn[3]||("http:"===tn[1]?"80":"443")))),d.data&&d.processData&&"string"!=typeof d.data&&(d.data=pe.param(d.data,d.traditional)),U(Kt,d,n,T),2===b)return T;l=pe.event&&d.global,l&&0===pe.active++&&pe.event.trigger("ajaxStart"),d.type=d.type.toUpperCase(),d.hasContent=!Yt.test(d.type),a=d.url,d.hasContent||(d.data&&(a=d.url+=(It.test(a)?"&":"?")+d.data,delete d.data),d.cache===!1&&(d.url=Xt.test(a)?a.replace(Xt,"$1_="+Wt++):a+(It.test(a)?"&":"?")+"_="+Wt++)),d.ifModified&&(pe.lastModified[a]&&T.setRequestHeader("If-Modified-Since",pe.lastModified[a]),pe.etag[a]&&T.setRequestHeader("If-None-Match",pe.etag[a])),(d.data&&d.hasContent&&d.contentType!==!1||n.contentType)&&T.setRequestHeader("Content-Type",d.contentType),T.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+("*"!==d.dataTypes[0]?", "+Zt+"; q=0.01":""):d.accepts["*"]);for(o in d.headers)T.setRequestHeader(o,d.headers[o]);if(d.beforeSend&&(d.beforeSend.call(p,T,d)===!1||2===b))return T.abort();w="abort";for(o in{success:1,error:1,complete:1})T[o](d[o]);if(c=U(Qt,d,n,T)){if(T.readyState=1,l&&h.trigger("ajaxSend",[T,d]),2===b)return T;d.async&&d.timeout>0&&(u=e.setTimeout(function(){T.abort("timeout")},d.timeout));try{b=1,c.send(v,r)}catch(C){if(!(b<2))throw C;r(-1,C)}}else r(-1,"No Transport");return T},getJSON:function(e,t,n){return pe.get(e,t,n,"json")},getScript:function(e,t){return pe.get(e,void 0,t,"script")}}),pe.each(["get","post"],function(e,t){pe[t]=function(e,n,r,i){return pe.isFunction(n)&&(i=i||r,r=n,n=void 0),pe.ajax(pe.extend({url:e,type:t,dataType:i,data:n,success:r},pe.isPlainObject(e)&&e))}}),pe._evalUrl=function(e){return pe.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,"throws":!0})},pe.fn.extend({wrapAll:function(e){if(pe.isFunction(e))return this.each(function(t){pe(this).wrapAll(e.call(this,t))});if(this[0]){var t=pe(e,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstChild&&1===e.firstChild.nodeType;)e=e.firstChild;return e}).append(this)}return this},wrapInner:function(e){return pe.isFunction(e)?this.each(function(t){pe(this).wrapInner(e.call(this,t))}):this.each(function(){var t=pe(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=pe.isFunction(e);return this.each(function(n){pe(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){pe.nodeName(this,"body")||pe(this).replaceWith(this.childNodes)}).end()}}),pe.expr.filters.hidden=function(e){return fe.reliableHiddenOffsets()?e.offsetWidth<=0&&e.offsetHeight<=0&&!e.getClientRects().length:K(e)},pe.expr.filters.visible=function(e){return!pe.expr.filters.hidden(e)};var nn=/%20/g,rn=/\[\]$/,on=/\r?\n/g,an=/^(?:submit|button|image|reset|file)$/i,sn=/^(?:input|select|textarea|keygen)/i;pe.param=function(e,t){var n,r=[],i=function(e,t){t=pe.isFunction(t)?t():null==t?"":t,r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(void 0===t&&(t=pe.ajaxSettings&&pe.ajaxSettings.traditional),pe.isArray(e)||e.jquery&&!pe.isPlainObject(e))pe.each(e,function(){i(this.name,this.value)});else for(n in e)Q(n,e[n],t,i);return r.join("&").replace(nn,"+")},pe.fn.extend({serialize:function(){return pe.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=pe.prop(this,"elements");return e?pe.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!pe(this).is(":disabled")&&sn.test(this.nodeName)&&!an.test(e)&&(this.checked||!Be.test(e))}).map(function(e,t){var n=pe(this).val();return null==n?null:pe.isArray(n)?pe.map(n,function(e){return{name:t.name,value:e.replace(on,"\r\n")}}):{name:t.name,value:n.replace(on,"\r\n")}}).get()}}),pe.ajaxSettings.xhr=void 0!==e.ActiveXObject?function(){return this.isLocal?ee():re.documentMode>8?Z():/^(get|post|head|put|delete|options)$/i.test(this.type)&&Z()||ee()}:Z;var un=0,ln={},cn=pe.ajaxSettings.xhr();e.attachEvent&&e.attachEvent("onunload",function(){for(var e in ln)ln[e](void 0,!0)}),fe.cors=!!cn&&"withCredentials"in cn,cn=fe.ajax=!!cn,cn&&pe.ajaxTransport(function(t){if(!t.crossDomain||fe.cors){var n;return{send:function(r,i){var o,a=t.xhr(),s=++un;if(a.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(o in t.xhrFields)a[o]=t.xhrFields[o];t.mimeType&&a.overrideMimeType&&a.overrideMimeType(t.mimeType),t.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest");for(o in r)void 0!==r[o]&&a.setRequestHeader(o,r[o]+"");a.send(t.hasContent&&t.data||null),n=function(e,r){var o,u,l;if(n&&(r||4===a.readyState))if(delete ln[s],n=void 0,a.onreadystatechange=pe.noop,r)4!==a.readyState&&a.abort();else{l={},o=a.status,"string"==typeof a.responseText&&(l.text=a.responseText);try{u=a.statusText}catch(c){u=""}o||!t.isLocal||t.crossDomain?1223===o&&(o=204):o=l.text?200:404}l&&i(o,u,l,a.getAllResponseHeaders())},t.async?4===a.readyState?e.setTimeout(n):a.onreadystatechange=ln[s]=n:n()},abort:function(){n&&n(void 0,!0)}}}}),pe.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return pe.globalEval(e),e}}}),pe.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)}),pe.ajaxTransport("script",function(e){if(e.crossDomain){var t,n=re.head||pe("head")[0]||re.documentElement;return{send:function(r,i){t=re.createElement("script"),t.async=!0,e.scriptCharset&&(t.charset=e.scriptCharset),t.src=e.url,t.onload=t.onreadystatechange=function(e,n){(n||!t.readyState||/loaded|complete/.test(t.readyState))&&(t.onload=t.onreadystatechange=null,t.parentNode&&t.parentNode.removeChild(t),t=null,n||i(200,"success"))},n.insertBefore(t,n.firstChild)},abort:function(){t&&t.onload(void 0,!0)}}}});var fn=[],dn=/(=)\?(?=&|$)|\?\?/;pe.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=fn.pop()||pe.expando+"_"+Wt++;return this[e]=!0,e}}),pe.ajaxPrefilter("json jsonp",function(t,n,r){var i,o,a,s=t.jsonp!==!1&&(dn.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&dn.test(t.data)&&"data");if(s||"jsonp"===t.dataTypes[0])return i=t.jsonpCallback=pe.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(dn,"$1"+i):t.jsonp!==!1&&(t.url+=(It.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return a||pe.error(i+" was not called"),a[0]},t.dataTypes[0]="json",o=e[i],e[i]=function(){a=arguments},r.always(function(){void 0===o?pe(e).removeProp(i):e[i]=o,t[i]&&(t.jsonpCallback=n.jsonpCallback,fn.push(i)),a&&pe.isFunction(o)&&o(a[0]),a=o=void 0}),"script"}),pe.parseHTML=function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||re;var r=Te.exec(e),i=!n&&[];return r?[t.createElement(r[1])]:(r=y([e],t,i),i&&i.length&&pe(i).remove(),pe.merge([],r.childNodes))};var pn=pe.fn.load;return pe.fn.load=function(e,t,n){if("string"!=typeof e&&pn)return pn.apply(this,arguments);var r,i,o,a=this,s=e.indexOf(" ");return s>-1&&(r=pe.trim(e.slice(s,e.length)),e=e.slice(0,s)),pe.isFunction(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),a.length>0&&pe.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done(function(e){o=arguments,a.html(r?pe("<div>").append(pe.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},pe.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){pe.fn[t]=function(e){return this.on(t,e)}}),pe.expr.filters.animated=function(e){return pe.grep(pe.timers,function(t){return e===t.elem}).length},pe.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l,c=pe.css(e,"position"),f=pe(e),d={};"static"===c&&(e.style.position="relative"),s=f.offset(),o=pe.css(e,"top"),u=pe.css(e,"left"),l=("absolute"===c||"fixed"===c)&&pe.inArray("auto",[o,u])>-1,l?(r=f.position(),a=r.top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),pe.isFunction(t)&&(t=t.call(e,n,pe.extend({},s))),null!=t.top&&(d.top=t.top-s.top+a),null!=t.left&&(d.left=t.left-s.left+i),"using"in t?t.using.call(e,d):f.css(d)}},pe.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){pe.offset.setOffset(this,e,t)});var t,n,r={top:0,left:0},i=this[0],o=i&&i.ownerDocument;if(o)return t=o.documentElement,pe.contains(t,i)?("undefined"!=typeof i.getBoundingClientRect&&(r=i.getBoundingClientRect()),n=te(o),{top:r.top+(n.pageYOffset||t.scrollTop)-(t.clientTop||0),left:r.left+(n.pageXOffset||t.scrollLeft)-(t.clientLeft||0)}):r},position:function(){if(this[0]){var e,t,n={top:0,left:0},r=this[0];return"fixed"===pe.css(r,"position")?t=r.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),pe.nodeName(e[0],"html")||(n=e.offset()),n.top+=pe.css(e[0],"borderTopWidth",!0),n.left+=pe.css(e[0],"borderLeftWidth",!0)),{top:t.top-n.top-pe.css(r,"marginTop",!0),left:t.left-n.left-pe.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){ -for(var e=this.offsetParent;e&&!pe.nodeName(e,"html")&&"static"===pe.css(e,"position");)e=e.offsetParent;return e||pt})}}),pe.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n=/Y/.test(t);pe.fn[e]=function(r){return Pe(this,function(e,r,i){var o=te(e);return void 0===i?o?t in o?o[t]:o.document.documentElement[r]:e[r]:void(o?o.scrollTo(n?pe(o).scrollLeft():i,n?i:pe(o).scrollTop()):e[r]=i)},e,r,arguments.length,null)}}),pe.each(["top","left"],function(e,t){pe.cssHooks[t]=L(fe.pixelPosition,function(e,n){if(n)return n=gt(e,t),ft.test(n)?pe(e).position()[t]+"px":n})}),pe.each({Height:"height",Width:"width"},function(e,t){pe.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,r){pe.fn[r]=function(r,i){var o=arguments.length&&(n||"boolean"!=typeof r),a=n||(r===!0||i===!0?"margin":"border");return Pe(this,function(t,n,r){var i;return pe.isWindow(t)?t.document.documentElement["client"+e]:9===t.nodeType?(i=t.documentElement,Math.max(t.body["scroll"+e],i["scroll"+e],t.body["offset"+e],i["offset"+e],i["client"+e])):void 0===r?pe.css(t,n,a):pe.style(t,n,r,a)},t,o?r:void 0,o,null)}})}),pe.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}}),pe.fn.size=function(){return this.length},pe.fn.andSelf=pe.fn.addBack,layui.define(function(e){layui.$=pe,e("jquery",pe)}),pe});!function(e,t){"use strict";var i,n,a=e.layui&&layui.define,o={getPath:function(){var e=document.currentScript?document.currentScript.src:function(){for(var e,t=document.scripts,i=t.length-1,n=i;n>0;n--)if("interactive"===t[n].readyState){e=t[n].src;break}return e||t[i].src}();return e.substring(0,e.lastIndexOf("/")+1)}(),config:{},end:{},minIndex:0,minLeft:[],btn:["确定","取消"],type:["dialog","page","iframe","loading","tips"],getStyle:function(t,i){var n=t.currentStyle?t.currentStyle:e.getComputedStyle(t,null);return n[n.getPropertyValue?"getPropertyValue":"getAttribute"](i)},link:function(t,i,n){if(r.path){var a=document.getElementsByTagName("head")[0],s=document.createElement("link");"string"==typeof i&&(n=i);var l=(n||t).replace(/\.|\//g,""),f="layuicss-"+l,c=0;s.rel="stylesheet",s.href=r.path+t,s.id=f,document.getElementById(f)||a.appendChild(s),"function"==typeof i&&!function u(){return++c>80?e.console&&console.error("layer.css: Invalid"):void(1989===parseInt(o.getStyle(document.getElementById(f),"width"))?i():setTimeout(u,100))}()}}},r={v:"3.1.1",ie:function(){var t=navigator.userAgent.toLowerCase();return!!(e.ActiveXObject||"ActiveXObject"in e)&&((t.match(/msie\s(\d+)/)||[])[1]||"11")}(),index:e.layer&&e.layer.v?1e5:0,path:o.getPath,config:function(e,t){return e=e||{},r.cache=o.config=i.extend({},o.config,e),r.path=o.config.path||r.path,"string"==typeof e.extend&&(e.extend=[e.extend]),o.config.path&&r.ready(),e.extend?(a?layui.addcss("modules/layer/"+e.extend):o.link("theme/"+e.extend),this):this},ready:function(e){var t="layer",i="",n=(a?"modules/layer/":"theme/")+"default/layer.css?v="+r.v+i;return a?layui.addcss(n,e,t):o.link(n,e,t),this},alert:function(e,t,n){var a="function"==typeof t;return a&&(n=t),r.open(i.extend({content:e,yes:n},a?{}:t))},confirm:function(e,t,n,a){var s="function"==typeof t;return s&&(a=n,n=t),r.open(i.extend({content:e,btn:o.btn,yes:n,btn2:a},s?{}:t))},msg:function(e,n,a){var s="function"==typeof n,f=o.config.skin,c=(f?f+" "+f+"-msg":"")||"layui-layer-msg",u=l.anim.length-1;return s&&(a=n),r.open(i.extend({content:e,time:3e3,shade:!1,skin:c,title:!1,closeBtn:!1,btn:!1,resize:!1,end:a},s&&!o.config.skin?{skin:c+" layui-layer-hui",anim:u}:function(){return n=n||{},(n.icon===-1||n.icon===t&&!o.config.skin)&&(n.skin=c+" "+(n.skin||"layui-layer-hui")),n}()))},load:function(e,t){return r.open(i.extend({type:3,icon:e||0,resize:!1,shade:.01},t))},tips:function(e,t,n){return r.open(i.extend({type:4,content:[e,t],closeBtn:!1,time:3e3,shade:!1,resize:!1,fixed:!1,maxWidth:210},n))}},s=function(e){var t=this;t.index=++r.index,t.config=i.extend({},t.config,o.config,e),document.body?t.creat():setTimeout(function(){t.creat()},30)};s.pt=s.prototype;var l=["layui-layer",".layui-layer-title",".layui-layer-main",".layui-layer-dialog","layui-layer-iframe","layui-layer-content","layui-layer-btn","layui-layer-close"];l.anim=["layer-anim-00","layer-anim-01","layer-anim-02","layer-anim-03","layer-anim-04","layer-anim-05","layer-anim-06"],s.pt.config={type:0,shade:.3,fixed:!0,move:l[1],title:"信息",offset:"auto",area:"auto",closeBtn:1,time:0,zIndex:19891014,maxWidth:360,anim:0,isOutAnim:!0,icon:-1,moveType:1,resize:!0,scrollbar:!0,tips:2},s.pt.vessel=function(e,t){var n=this,a=n.index,r=n.config,s=r.zIndex+a,f="object"==typeof r.title,c=r.maxmin&&(1===r.type||2===r.type),u=r.title?'<div class="layui-layer-title" style="'+(f?r.title[1]:"")+'">'+(f?r.title[0]:r.title)+"</div>":"";return r.zIndex=s,t([r.shade?'<div class="layui-layer-shade" id="layui-layer-shade'+a+'" times="'+a+'" style="'+("z-index:"+(s-1)+"; ")+'"></div>':"",'<div class="'+l[0]+(" layui-layer-"+o.type[r.type])+(0!=r.type&&2!=r.type||r.shade?"":" layui-layer-border")+" "+(r.skin||"")+'" id="'+l[0]+a+'" type="'+o.type[r.type]+'" times="'+a+'" showtime="'+r.time+'" conType="'+(e?"object":"string")+'" style="z-index: '+s+"; width:"+r.area[0]+";height:"+r.area[1]+(r.fixed?"":";position:absolute;")+'">'+(e&&2!=r.type?"":u)+'<div id="'+(r.id||"")+'" class="layui-layer-content'+(0==r.type&&r.icon!==-1?" layui-layer-padding":"")+(3==r.type?" layui-layer-loading"+r.icon:"")+'">'+(0==r.type&&r.icon!==-1?'<i class="layui-layer-ico layui-layer-ico'+r.icon+'"></i>':"")+(1==r.type&&e?"":r.content||"")+'</div><span class="layui-layer-setwin">'+function(){var e=c?'<a class="layui-layer-min" href="javascript:;"><cite></cite></a><a class="layui-layer-ico layui-layer-max" href="javascript:;"></a>':"";return r.closeBtn&&(e+='<a class="layui-layer-ico '+l[7]+" "+l[7]+(r.title?r.closeBtn:4==r.type?"1":"2")+'" href="javascript:;"></a>'),e}()+"</span>"+(r.btn?function(){var e="";"string"==typeof r.btn&&(r.btn=[r.btn]);for(var t=0,i=r.btn.length;t<i;t++)e+='<a class="'+l[6]+t+'">'+r.btn[t]+"</a>";return'<div class="'+l[6]+" layui-layer-btn-"+(r.btnAlign||"")+'">'+e+"</div>"}():"")+(r.resize?'<span class="layui-layer-resize"></span>':"")+"</div>"],u,i('<div class="layui-layer-move"></div>')),n},s.pt.creat=function(){var e=this,t=e.config,a=e.index,s=t.content,f="object"==typeof s,c=i("body");if(!t.id||!i("#"+t.id)[0]){switch("string"==typeof t.area&&(t.area="auto"===t.area?["",""]:[t.area,""]),t.shift&&(t.anim=t.shift),6==r.ie&&(t.fixed=!1),t.type){case 0:t.btn="btn"in t?t.btn:o.btn[0],r.closeAll("dialog");break;case 2:var s=t.content=f?t.content:[t.content||"","auto"];t.content='<iframe scrolling="'+(t.content[1]||"auto")+'" allowtransparency="true" id="'+l[4]+a+'" name="'+l[4]+a+'" onload="this.className=\'\';" class="layui-layer-load" frameborder="0" src="'+t.content[0]+'"></iframe>';break;case 3:delete t.title,delete t.closeBtn,t.icon===-1&&0===t.icon,r.closeAll("loading");break;case 4:f||(t.content=[t.content,"body"]),t.follow=t.content[1],t.content=t.content[0]+'<i class="layui-layer-TipsG"></i>',delete t.title,t.tips="object"==typeof t.tips?t.tips:[t.tips,!0],t.tipsMore||r.closeAll("tips")}if(e.vessel(f,function(n,r,u){c.append(n[0]),f?function(){2==t.type||4==t.type?function(){i("body").append(n[1])}():function(){s.parents("."+l[0])[0]||(s.data("display",s.css("display")).show().addClass("layui-layer-wrap").wrap(n[1]),i("#"+l[0]+a).find("."+l[5]).before(r))}()}():c.append(n[1]),i(".layui-layer-move")[0]||c.append(o.moveElem=u),e.layero=i("#"+l[0]+a),t.scrollbar||l.html.css("overflow","hidden").attr("layer-full",a)}).auto(a),i("#layui-layer-shade"+e.index).css({"background-color":t.shade[1]||"#000",opacity:t.shade[0]||t.shade}),2==t.type&&6==r.ie&&e.layero.find("iframe").attr("src",s[0]),4==t.type?e.tips():e.offset(),t.fixed&&n.on("resize",function(){e.offset(),(/^\d+%$/.test(t.area[0])||/^\d+%$/.test(t.area[1]))&&e.auto(a),4==t.type&&e.tips()}),t.time<=0||setTimeout(function(){r.close(e.index)},t.time),e.move().callback(),l.anim[t.anim]){var u="layer-anim "+l.anim[t.anim];e.layero.addClass(u).one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",function(){i(this).removeClass(u)})}t.isOutAnim&&e.layero.data("isOutAnim",!0)}},s.pt.auto=function(e){var t=this,a=t.config,o=i("#"+l[0]+e);""===a.area[0]&&a.maxWidth>0&&(r.ie&&r.ie<8&&a.btn&&o.width(o.innerWidth()),o.outerWidth()>a.maxWidth&&o.width(a.maxWidth));var s=[o.innerWidth(),o.innerHeight()],f=o.find(l[1]).outerHeight()||0,c=o.find("."+l[6]).outerHeight()||0,u=function(e){e=o.find(e),e.height(s[1]-f-c-2*(0|parseFloat(e.css("padding-top"))))};switch(a.type){case 2:u("iframe");break;default:""===a.area[1]?a.maxHeight>0&&o.outerHeight()>a.maxHeight?(s[1]=a.maxHeight,u("."+l[5])):a.fixed&&s[1]>=n.height()&&(s[1]=n.height(),u("."+l[5])):u("."+l[5])}return t},s.pt.offset=function(){var e=this,t=e.config,i=e.layero,a=[i.outerWidth(),i.outerHeight()],o="object"==typeof t.offset;e.offsetTop=(n.height()-a[1])/2,e.offsetLeft=(n.width()-a[0])/2,o?(e.offsetTop=t.offset[0],e.offsetLeft=t.offset[1]||e.offsetLeft):"auto"!==t.offset&&("t"===t.offset?e.offsetTop=0:"r"===t.offset?e.offsetLeft=n.width()-a[0]:"b"===t.offset?e.offsetTop=n.height()-a[1]:"l"===t.offset?e.offsetLeft=0:"lt"===t.offset?(e.offsetTop=0,e.offsetLeft=0):"lb"===t.offset?(e.offsetTop=n.height()-a[1],e.offsetLeft=0):"rt"===t.offset?(e.offsetTop=0,e.offsetLeft=n.width()-a[0]):"rb"===t.offset?(e.offsetTop=n.height()-a[1],e.offsetLeft=n.width()-a[0]):e.offsetTop=t.offset),t.fixed||(e.offsetTop=/%$/.test(e.offsetTop)?n.height()*parseFloat(e.offsetTop)/100:parseFloat(e.offsetTop),e.offsetLeft=/%$/.test(e.offsetLeft)?n.width()*parseFloat(e.offsetLeft)/100:parseFloat(e.offsetLeft),e.offsetTop+=n.scrollTop(),e.offsetLeft+=n.scrollLeft()),i.attr("minLeft")&&(e.offsetTop=n.height()-(i.find(l[1]).outerHeight()||0),e.offsetLeft=i.css("left")),i.css({top:e.offsetTop,left:e.offsetLeft})},s.pt.tips=function(){var e=this,t=e.config,a=e.layero,o=[a.outerWidth(),a.outerHeight()],r=i(t.follow);r[0]||(r=i("body"));var s={width:r.outerWidth(),height:r.outerHeight(),top:r.offset().top,left:r.offset().left},f=a.find(".layui-layer-TipsG"),c=t.tips[0];t.tips[1]||f.remove(),s.autoLeft=function(){s.left+o[0]-n.width()>0?(s.tipLeft=s.left+s.width-o[0],f.css({right:12,left:"auto"})):s.tipLeft=s.left},s.where=[function(){s.autoLeft(),s.tipTop=s.top-o[1]-10,f.removeClass("layui-layer-TipsB").addClass("layui-layer-TipsT").css("border-right-color",t.tips[1])},function(){s.tipLeft=s.left+s.width+10,s.tipTop=s.top,f.removeClass("layui-layer-TipsL").addClass("layui-layer-TipsR").css("border-bottom-color",t.tips[1])},function(){s.autoLeft(),s.tipTop=s.top+s.height+10,f.removeClass("layui-layer-TipsT").addClass("layui-layer-TipsB").css("border-right-color",t.tips[1])},function(){s.tipLeft=s.left-o[0]-10,s.tipTop=s.top,f.removeClass("layui-layer-TipsR").addClass("layui-layer-TipsL").css("border-bottom-color",t.tips[1])}],s.where[c-1](),1===c?s.top-(n.scrollTop()+o[1]+16)<0&&s.where[2]():2===c?n.width()-(s.left+s.width+o[0]+16)>0||s.where[3]():3===c?s.top-n.scrollTop()+s.height+o[1]+16-n.height()>0&&s.where[0]():4===c&&o[0]+16-s.left>0&&s.where[1](),a.find("."+l[5]).css({"background-color":t.tips[1],"padding-right":t.closeBtn?"30px":""}),a.css({left:s.tipLeft-(t.fixed?n.scrollLeft():0),top:s.tipTop-(t.fixed?n.scrollTop():0)})},s.pt.move=function(){var e=this,t=e.config,a=i(document),s=e.layero,l=s.find(t.move),f=s.find(".layui-layer-resize"),c={};return t.move&&l.css("cursor","move"),l.on("mousedown",function(e){e.preventDefault(),t.move&&(c.moveStart=!0,c.offset=[e.clientX-parseFloat(s.css("left")),e.clientY-parseFloat(s.css("top"))],o.moveElem.css("cursor","move").show())}),f.on("mousedown",function(e){e.preventDefault(),c.resizeStart=!0,c.offset=[e.clientX,e.clientY],c.area=[s.outerWidth(),s.outerHeight()],o.moveElem.css("cursor","se-resize").show()}),a.on("mousemove",function(i){if(c.moveStart){var a=i.clientX-c.offset[0],o=i.clientY-c.offset[1],l="fixed"===s.css("position");if(i.preventDefault(),c.stX=l?0:n.scrollLeft(),c.stY=l?0:n.scrollTop(),!t.moveOut){var f=n.width()-s.outerWidth()+c.stX,u=n.height()-s.outerHeight()+c.stY;a<c.stX&&(a=c.stX),a>f&&(a=f),o<c.stY&&(o=c.stY),o>u&&(o=u)}s.css({left:a,top:o})}if(t.resize&&c.resizeStart){var a=i.clientX-c.offset[0],o=i.clientY-c.offset[1];i.preventDefault(),r.style(e.index,{width:c.area[0]+a,height:c.area[1]+o}),c.isResize=!0,t.resizing&&t.resizing(s)}}).on("mouseup",function(e){c.moveStart&&(delete c.moveStart,o.moveElem.hide(),t.moveEnd&&t.moveEnd(s)),c.resizeStart&&(delete c.resizeStart,o.moveElem.hide())}),e},s.pt.callback=function(){function e(){var e=a.cancel&&a.cancel(t.index,n);e===!1||r.close(t.index)}var t=this,n=t.layero,a=t.config;t.openLayer(),a.success&&(2==a.type?n.find("iframe").on("load",function(){a.success(n,t.index)}):a.success(n,t.index)),6==r.ie&&t.IE6(n),n.find("."+l[6]).children("a").on("click",function(){var e=i(this).index();if(0===e)a.yes?a.yes(t.index,n):a.btn1?a.btn1(t.index,n):r.close(t.index);else{var o=a["btn"+(e+1)]&&a["btn"+(e+1)](t.index,n);o===!1||r.close(t.index)}}),n.find("."+l[7]).on("click",e),a.shadeClose&&i("#layui-layer-shade"+t.index).on("click",function(){r.close(t.index)}),n.find(".layui-layer-min").on("click",function(){var e=a.min&&a.min(n);e===!1||r.min(t.index,a)}),n.find(".layui-layer-max").on("click",function(){i(this).hasClass("layui-layer-maxmin")?(r.restore(t.index),a.restore&&a.restore(n)):(r.full(t.index,a),setTimeout(function(){a.full&&a.full(n)},100))}),a.end&&(o.end[t.index]=a.end)},o.reselect=function(){i.each(i("select"),function(e,t){var n=i(this);n.parents("."+l[0])[0]||1==n.attr("layer")&&i("."+l[0]).length<1&&n.removeAttr("layer").show(),n=null})},s.pt.IE6=function(e){i("select").each(function(e,t){var n=i(this);n.parents("."+l[0])[0]||"none"===n.css("display")||n.attr({layer:"1"}).hide(),n=null})},s.pt.openLayer=function(){var e=this;r.zIndex=e.config.zIndex,r.setTop=function(e){var t=function(){r.zIndex++,e.css("z-index",r.zIndex+1)};return r.zIndex=parseInt(e[0].style.zIndex),e.on("mousedown",t),r.zIndex}},o.record=function(e){var t=[e.width(),e.height(),e.position().top,e.position().left+parseFloat(e.css("margin-left"))];e.find(".layui-layer-max").addClass("layui-layer-maxmin"),e.attr({area:t})},o.rescollbar=function(e){l.html.attr("layer-full")==e&&(l.html[0].style.removeProperty?l.html[0].style.removeProperty("overflow"):l.html[0].style.removeAttribute("overflow"),l.html.removeAttr("layer-full"))},e.layer=r,r.getChildFrame=function(e,t){return t=t||i("."+l[4]).attr("times"),i("#"+l[0]+t).find("iframe").contents().find(e)},r.getFrameIndex=function(e){return i("#"+e).parents("."+l[4]).attr("times")},r.iframeAuto=function(e){if(e){var t=r.getChildFrame("html",e).outerHeight(),n=i("#"+l[0]+e),a=n.find(l[1]).outerHeight()||0,o=n.find("."+l[6]).outerHeight()||0;n.css({height:t+a+o}),n.find("iframe").css({height:t})}},r.iframeSrc=function(e,t){i("#"+l[0]+e).find("iframe").attr("src",t)},r.style=function(e,t,n){var a=i("#"+l[0]+e),r=a.find(".layui-layer-content"),s=a.attr("type"),f=a.find(l[1]).outerHeight()||0,c=a.find("."+l[6]).outerHeight()||0;a.attr("minLeft");s!==o.type[3]&&s!==o.type[4]&&(n||(parseFloat(t.width)<=260&&(t.width=260),parseFloat(t.height)-f-c<=64&&(t.height=64+f+c)),a.css(t),c=a.find("."+l[6]).outerHeight(),s===o.type[2]?a.find("iframe").css({height:parseFloat(t.height)-f-c}):r.css({height:parseFloat(t.height)-f-c-parseFloat(r.css("padding-top"))-parseFloat(r.css("padding-bottom"))}))},r.min=function(e,t){var a=i("#"+l[0]+e),s=a.find(l[1]).outerHeight()||0,f=a.attr("minLeft")||181*o.minIndex+"px",c=a.css("position");o.record(a),o.minLeft[0]&&(f=o.minLeft[0],o.minLeft.shift()),a.attr("position",c),r.style(e,{width:180,height:s,left:f,top:n.height()-s,position:"fixed",overflow:"hidden"},!0),a.find(".layui-layer-min").hide(),"page"===a.attr("type")&&a.find(l[4]).hide(),o.rescollbar(e),a.attr("minLeft")||o.minIndex++,a.attr("minLeft",f)},r.restore=function(e){var t=i("#"+l[0]+e),n=t.attr("area").split(",");t.attr("type");r.style(e,{width:parseFloat(n[0]),height:parseFloat(n[1]),top:parseFloat(n[2]),left:parseFloat(n[3]),position:t.attr("position"),overflow:"visible"},!0),t.find(".layui-layer-max").removeClass("layui-layer-maxmin"),t.find(".layui-layer-min").show(),"page"===t.attr("type")&&t.find(l[4]).show(),o.rescollbar(e)},r.full=function(e){var t,a=i("#"+l[0]+e);o.record(a),l.html.attr("layer-full")||l.html.css("overflow","hidden").attr("layer-full",e),clearTimeout(t),t=setTimeout(function(){var t="fixed"===a.css("position");r.style(e,{top:t?0:n.scrollTop(),left:t?0:n.scrollLeft(),width:n.width(),height:n.height()},!0),a.find(".layui-layer-min").hide()},100)},r.title=function(e,t){var n=i("#"+l[0]+(t||r.index)).find(l[1]);n.html(e)},r.close=function(e){var t=i("#"+l[0]+e),n=t.attr("type"),a="layer-anim-close";if(t[0]){var s="layui-layer-wrap",f=function(){if(n===o.type[1]&&"object"===t.attr("conType")){t.children(":not(."+l[5]+")").remove();for(var a=t.find("."+s),r=0;r<2;r++)a.unwrap();a.css("display",a.data("display")).removeClass(s)}else{if(n===o.type[2])try{var f=i("#"+l[4]+e)[0];f.contentWindow.document.write(""),f.contentWindow.close(),t.find("."+l[5])[0].removeChild(f)}catch(c){}t[0].innerHTML="",t.remove()}"function"==typeof o.end[e]&&o.end[e](),delete o.end[e]};t.data("isOutAnim")&&t.addClass("layer-anim "+a),i("#layui-layer-moves, #layui-layer-shade"+e).remove(),6==r.ie&&o.reselect(),o.rescollbar(e),t.attr("minLeft")&&(o.minIndex--,o.minLeft.push(t.attr("minLeft"))),r.ie&&r.ie<10||!t.data("isOutAnim")?f():setTimeout(function(){f()},200)}},r.closeAll=function(e){i.each(i("."+l[0]),function(){var t=i(this),n=e?t.attr("type")===e:1;n&&r.close(t.attr("times")),n=null})};var f=r.cache||{},c=function(e){return f.skin?" "+f.skin+" "+f.skin+"-"+e:""};r.prompt=function(e,t){var a="";if(e=e||{},"function"==typeof e&&(t=e),e.area){var o=e.area;a='style="width: '+o[0]+"; height: "+o[1]+';"',delete e.area}var s,l=2==e.formType?'<textarea class="layui-layer-input"'+a+"></textarea>":function(){return'<input type="'+(1==e.formType?"password":"text")+'" class="layui-layer-input">'}(),f=e.success;return delete e.success,r.open(i.extend({type:1,btn:["确定","取消"],content:l,skin:"layui-layer-prompt"+c("prompt"),maxWidth:n.width(),success:function(t){s=t.find(".layui-layer-input"),s.val(e.value||"").focus(),"function"==typeof f&&f(t)},resize:!1,yes:function(i){var n=s.val();""===n?s.focus():n.length>(e.maxlength||500)?r.tips("最多输入"+(e.maxlength||500)+"个字数",s,{tips:1}):t&&t(n,i,s)}},e))},r.tab=function(e){e=e||{};var t=e.tab||{},n="layui-this",a=e.success;return delete e.success,r.open(i.extend({type:1,skin:"layui-layer-tab"+c("tab"),resize:!1,title:function(){var e=t.length,i=1,a="";if(e>0)for(a='<span class="'+n+'">'+t[0].title+"</span>";i<e;i++)a+="<span>"+t[i].title+"</span>";return a}(),content:'<ul class="layui-layer-tabmain">'+function(){var e=t.length,i=1,a="";if(e>0)for(a='<li class="layui-layer-tabli '+n+'">'+(t[0].content||"no content")+"</li>";i<e;i++)a+='<li class="layui-layer-tabli">'+(t[i].content||"no content")+"</li>";return a}()+"</ul>",success:function(t){var o=t.find(".layui-layer-title").children(),r=t.find(".layui-layer-tabmain").children();o.on("mousedown",function(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0;var a=i(this),o=a.index();a.addClass(n).siblings().removeClass(n),r.eq(o).show().siblings().hide(),"function"==typeof e.change&&e.change(o)}),"function"==typeof a&&a(t)}},e))},r.photos=function(t,n,a){function o(e,t,i){var n=new Image;return n.src=e,n.complete?t(n):(n.onload=function(){n.onload=null,t(n)},void(n.onerror=function(e){n.onerror=null,i(e)}))}var s={};if(t=t||{},t.photos){var l=t.photos.constructor===Object,f=l?t.photos:{},u=f.data||[],d=f.start||0;s.imgIndex=(0|d)+1,t.img=t.img||"img";var y=t.success;if(delete t.success,l){if(0===u.length)return r.msg("没有图片")}else{var p=i(t.photos),h=function(){u=[],p.find(t.img).each(function(e){var t=i(this);t.attr("layer-index",e),u.push({alt:t.attr("alt"),pid:t.attr("layer-pid"),src:t.attr("layer-src")||t.attr("src"),thumb:t.attr("src")})})};if(h(),0===u.length)return;if(n||p.on("click",t.img,function(){var e=i(this),n=e.attr("layer-index");r.photos(i.extend(t,{photos:{start:n,data:u,tab:t.tab},full:t.full}),!0),h()}),!n)return}s.imgprev=function(e){s.imgIndex--,s.imgIndex<1&&(s.imgIndex=u.length),s.tabimg(e)},s.imgnext=function(e,t){s.imgIndex++,s.imgIndex>u.length&&(s.imgIndex=1,t)||s.tabimg(e)},s.keyup=function(e){if(!s.end){var t=e.keyCode;e.preventDefault(),37===t?s.imgprev(!0):39===t?s.imgnext(!0):27===t&&r.close(s.index)}},s.tabimg=function(e){if(!(u.length<=1))return f.start=s.imgIndex-1,r.close(s.index),r.photos(t,!0,e)},s.event=function(){s.bigimg.hover(function(){s.imgsee.show()},function(){s.imgsee.hide()}),s.bigimg.find(".layui-layer-imgprev").on("click",function(e){e.preventDefault(),s.imgprev()}),s.bigimg.find(".layui-layer-imgnext").on("click",function(e){e.preventDefault(),s.imgnext()}),i(document).on("keyup",s.keyup)},s.loadi=r.load(1,{shade:!("shade"in t)&&.9,scrollbar:!1}),o(u[d].src,function(n){r.close(s.loadi),s.index=r.open(i.extend({type:1,id:"layui-layer-photos",area:function(){var a=[n.width,n.height],o=[i(e).width()-100,i(e).height()-100];if(!t.full&&(a[0]>o[0]||a[1]>o[1])){var r=[a[0]/o[0],a[1]/o[1]];r[0]>r[1]?(a[0]=a[0]/r[0],a[1]=a[1]/r[0]):r[0]<r[1]&&(a[0]=a[0]/r[1],a[1]=a[1]/r[1])}return[a[0]+"px",a[1]+"px"]}(),title:!1,shade:.9,shadeClose:!0,closeBtn:!1,move:".layui-layer-phimg img",moveType:1,scrollbar:!1,moveOut:!0,isOutAnim:!1,skin:"layui-layer-photos"+c("photos"),content:'<div class="layui-layer-phimg"><img src="'+u[d].src+'" alt="'+(u[d].alt||"")+'" layer-pid="'+u[d].pid+'"><div class="layui-layer-imgsee">'+(u.length>1?'<span class="layui-layer-imguide"><a href="javascript:;" class="layui-layer-iconext layui-layer-imgprev"></a><a href="javascript:;" class="layui-layer-iconext layui-layer-imgnext"></a></span>':"")+'<div class="layui-layer-imgbar" style="display:'+(a?"block":"")+'"><span class="layui-layer-imgtit"><a href="javascript:;">'+(u[d].alt||"")+"</a><em>"+s.imgIndex+"/"+u.length+"</em></span></div></div></div>",success:function(e,i){s.bigimg=e.find(".layui-layer-phimg"),s.imgsee=e.find(".layui-layer-imguide,.layui-layer-imgbar"),s.event(e),t.tab&&t.tab(u[d],e),"function"==typeof y&&y(e)},end:function(){s.end=!0,i(document).off("keyup",s.keyup)}},t))},function(){r.close(s.loadi),r.msg("当前图片地址异常<br>是否继续查看下一张?",{time:3e4,btn:["下一张","不看了"],yes:function(){u.length>1&&s.imgnext(!0,!0)}})})}},o.run=function(t){i=t,n=i(e),l.html=i("html"),r.open=function(e){var t=new s(e);return t.index}},e.layui&&layui.define?(r.ready(),layui.define("jquery",function(t){r.path=layui.cache.dir,o.run(layui.$),e.layer=r,t("layer",r)})):"function"==typeof define&&define.amd?define(["jquery"],function(){return o.run(e.jQuery),r}):function(){o.run(e.jQuery),r.ready()}()}(window);layui.define("jquery",function(t){"use strict";var a=layui.$,i=(layui.hint(),layui.device()),e="element",l="layui-this",n="layui-show",s=function(){this.config={}};s.prototype.set=function(t){var i=this;return a.extend(!0,i.config,t),i},s.prototype.on=function(t,a){return layui.onevent.call(this,e,t,a)},s.prototype.tabAdd=function(t,i){var e=".layui-tab-title",l=a(".layui-tab[lay-filter="+t+"]"),n=l.children(e),s=n.children(".layui-tab-bar"),o=l.children(".layui-tab-content"),r='<li lay-id="'+(i.id||"")+'"'+(i.attr?' lay-attr="'+i.attr+'"':"")+">"+(i.title||"unnaming")+"</li>";return s[0]?s.before(r):n.append(r),o.append('<div class="layui-tab-item">'+(i.content||"")+"</div>"),f.hideTabMore(!0),f.tabAuto(),this},s.prototype.tabDelete=function(t,i){var e=".layui-tab-title",l=a(".layui-tab[lay-filter="+t+"]"),n=l.children(e),s=n.find('>li[lay-id="'+i+'"]');return f.tabDelete(null,s),this},s.prototype.tabChange=function(t,i){var e=".layui-tab-title",l=a(".layui-tab[lay-filter="+t+"]"),n=l.children(e),s=n.find('>li[lay-id="'+i+'"]');return f.tabClick.call(s[0],null,null,s),this},s.prototype.tab=function(t){t=t||{},b.on("click",t.headerElem,function(i){var e=a(this).index();f.tabClick.call(this,i,e,null,t)})},s.prototype.progress=function(t,i){var e="layui-progress",l=a("."+e+"[lay-filter="+t+"]"),n=l.find("."+e+"-bar"),s=n.find("."+e+"-text");return n.css("width",i),s.text(i),this};var o=".layui-nav",r="layui-nav-item",c="layui-nav-bar",u="layui-nav-tree",d="layui-nav-child",y="layui-nav-more",h="layui-anim layui-anim-upbit",f={tabClick:function(t,i,s,o){o=o||{};var r=s||a(this),i=i||r.parent().children("li").index(r),c=o.headerElem?r.parent():r.parents(".layui-tab").eq(0),u=o.bodyElem?a(o.bodyElem):c.children(".layui-tab-content").children(".layui-tab-item"),d=r.find("a"),y=c.attr("lay-filter");"javascript:;"!==d.attr("href")&&"_blank"===d.attr("target")||(r.addClass(l).siblings().removeClass(l),u.eq(i).addClass(n).siblings().removeClass(n)),layui.event.call(this,e,"tab("+y+")",{elem:c,index:i})},tabDelete:function(t,i){var n=i||a(this).parent(),s=n.index(),o=n.parents(".layui-tab").eq(0),r=o.children(".layui-tab-content").children(".layui-tab-item"),c=o.attr("lay-filter");n.hasClass(l)&&(n.next()[0]?f.tabClick.call(n.next()[0],null,s+1):n.prev()[0]&&f.tabClick.call(n.prev()[0],null,s-1)),n.remove(),r.eq(s).remove(),setTimeout(function(){f.tabAuto()},50),layui.event.call(this,e,"tabDelete("+c+")",{elem:o,index:s})},tabAuto:function(){var t="layui-tab-more",e="layui-tab-bar",l="layui-tab-close",n=this;a(".layui-tab").each(function(){var s=a(this),o=s.children(".layui-tab-title"),r=(s.children(".layui-tab-content").children(".layui-tab-item"),'lay-stope="tabmore"'),c=a('<span class="layui-unselect layui-tab-bar" '+r+"><i "+r+' class="layui-icon"></i></span>');if(n===window&&8!=i.ie&&f.hideTabMore(!0),s.attr("lay-allowClose")&&o.find("li").each(function(){var t=a(this);if(!t.find("."+l)[0]){var i=a('<i class="layui-icon layui-unselect '+l+'">ဆ</i>');i.on("click",f.tabDelete),t.append(i)}}),"string"!=typeof s.attr("lay-unauto"))if(o.prop("scrollWidth")>o.outerWidth()+1){if(o.find("."+e)[0])return;o.append(c),s.attr("overflow",""),c.on("click",function(a){o[this.title?"removeClass":"addClass"](t),this.title=this.title?"":"收缩"})}else o.find("."+e).remove(),s.removeAttr("overflow")})},hideTabMore:function(t){var i=a(".layui-tab-title");t!==!0&&"tabmore"===a(t.target).attr("lay-stope")||(i.removeClass("layui-tab-more"),i.find(".layui-tab-bar").attr("title",""))},clickThis:function(){var t=a(this),i=t.parents(o),n=i.attr("lay-filter"),s=t.parent(),c=t.siblings("."+d),y="string"==typeof s.attr("lay-unselect");"javascript:;"!==t.attr("href")&&"_blank"===t.attr("target")||y||c[0]||(i.find("."+l).removeClass(l),s.addClass(l)),i.hasClass(u)&&(c.removeClass(h),c[0]&&(s["none"===c.css("display")?"addClass":"removeClass"](r+"ed"),"all"===i.attr("lay-shrink")&&s.siblings().removeClass(r+"ed"))),layui.event.call(this,e,"nav("+n+")",t)},collapse:function(){var t=a(this),i=t.find(".layui-colla-icon"),l=t.siblings(".layui-colla-content"),s=t.parents(".layui-collapse").eq(0),o=s.attr("lay-filter"),r="none"===l.css("display");if("string"==typeof s.attr("lay-accordion")){var c=s.children(".layui-colla-item").children("."+n);c.siblings(".layui-colla-title").children(".layui-colla-icon").html(""),c.removeClass(n)}l[r?"addClass":"removeClass"](n),i.html(r?"":""),layui.event.call(this,e,"collapse("+o+")",{title:t,content:l,show:r})}};s.prototype.init=function(t,e){var l=function(){return e?'[lay-filter="'+e+'"]':""}(),s={tab:function(){f.tabAuto.call({})},nav:function(){var t=200,e={},s={},p={},b=function(l,o,r){var c=a(this),f=c.find("."+d);o.hasClass(u)?l.css({top:c.position().top,height:c.children("a").outerHeight(),opacity:1}):(f.addClass(h),l.css({left:c.position().left+parseFloat(c.css("marginLeft")),top:c.position().top+c.height()-l.height()}),e[r]=setTimeout(function(){l.css({width:c.width(),opacity:1})},i.ie&&i.ie<10?0:t),clearTimeout(p[r]),"block"===f.css("display")&&clearTimeout(s[r]),s[r]=setTimeout(function(){f.addClass(n),c.find("."+y).addClass(y+"d")},300))};a(o+l).each(function(i){var l=a(this),o=a('<span class="'+c+'"></span>'),h=l.find("."+r);l.find("."+c)[0]||(l.append(o),h.on("mouseenter",function(){b.call(this,o,l,i)}).on("mouseleave",function(){l.hasClass(u)||(clearTimeout(s[i]),s[i]=setTimeout(function(){l.find("."+d).removeClass(n),l.find("."+y).removeClass(y+"d")},300))}),l.on("mouseleave",function(){clearTimeout(e[i]),p[i]=setTimeout(function(){l.hasClass(u)?o.css({height:0,top:o.position().top+o.height()/2,opacity:0}):o.css({width:0,left:o.position().left+o.width()/2,opacity:0})},t)})),h.find("a").each(function(){var t=a(this),i=(t.parent(),t.siblings("."+d));i[0]&&!t.children("."+y)[0]&&t.append('<span class="'+y+'"></span>'),t.off("click",f.clickThis).on("click",f.clickThis)})})},breadcrumb:function(){var t=".layui-breadcrumb";a(t+l).each(function(){var t=a(this),i="lay-separator",e=t.attr(i)||"/",l=t.find("a");l.next("span["+i+"]")[0]||(l.each(function(t){t!==l.length-1&&a(this).after("<span "+i+">"+e+"</span>")}),t.css("visibility","visible"))})},progress:function(){var t="layui-progress";a("."+t+l).each(function(){var i=a(this),e=i.find(".layui-progress-bar"),l=e.attr("lay-percent");e.css("width",function(){return/^.+\/.+$/.test(l)?100*new Function("return "+l)()+"%":l}()),i.attr("lay-showPercent")&&setTimeout(function(){e.html('<span class="'+t+'-text">'+l+"</span>")},350)})},collapse:function(){var t="layui-collapse";a("."+t+l).each(function(){var t=a(this).find(".layui-colla-item");t.each(function(){var t=a(this),i=t.find(".layui-colla-title"),e=t.find(".layui-colla-content"),l="none"===e.css("display");i.find(".layui-colla-icon").remove(),i.append('<i class="layui-icon layui-colla-icon">'+(l?"":"")+"</i>"),i.off("click",f.collapse).on("click",f.collapse)})})}};return s[t]?s[t]():layui.each(s,function(t,a){a()})},s.prototype.render=s.prototype.init;var p=new s,b=a(document);p.render();var v=".layui-tab-title li";b.on("click",v,f.tabClick),b.on("click",f.hideTabMore),a(window).on("resize",f.tabAuto),t(e,p)});layui.define("layer",function(e){"use strict";var i=layui.$,t=layui.layer,n=layui.hint(),a=layui.device(),o={config:{},set:function(e){var t=this;return t.config=i.extend({},t.config,e),t},on:function(e,i){return layui.onevent.call(this,r,e,i)}},l=function(){var e=this;return{upload:function(i){e.upload.call(e,i)},config:e.config}},r="upload",u="layui-upload-file",c="layui-upload-form",f="layui-upload-iframe",s="layui-upload-choose",p=function(e){var t=this;t.config=i.extend({},t.config,o.config,e),t.render()};p.prototype.config={accept:"images",exts:"",auto:!0,bindAction:"",url:"",field:"file",method:"post",data:{},drag:!0,size:0,number:0,multiple:!1},p.prototype.render=function(e){var t=this,e=t.config;e.elem=i(e.elem),e.bindAction=i(e.bindAction),t.file(),t.events()},p.prototype.file=function(){var e=this,t=e.config,n=e.elemFile=i(['<input class="'+u+'" type="file" accept="'+t.acceptMime+'" name="'+t.field+'"',t.multiple?" multiple":"",">"].join("")),o=t.elem.next();(o.hasClass(u)||o.hasClass(c))&&o.remove(),a.ie&&a.ie<10&&t.elem.wrap('<div class="layui-upload-wrap"></div>'),e.isFile()?(e.elemFile=t.elem,t.field=t.elem[0].name):t.elem.after(n),a.ie&&a.ie<10&&e.initIE()},p.prototype.initIE=function(){var e=this,t=e.config,n=i('<iframe id="'+f+'" class="'+f+'" name="'+f+'" frameborder="0"></iframe>'),a=i(['<form target="'+f+'" class="'+c+'" method="post" key="set-mine" enctype="multipart/form-data" action="'+t.url+'">',"</form>"].join(""));i("#"+f)[0]||i("body").append(n),t.elem.next().hasClass(c)||(e.elemFile.wrap(a),t.elem.next("."+c).append(function(){var e=[];return layui.each(t.data,function(i,t){t="function"==typeof t?t():t,e.push('<input type="hidden" name="'+i+'" value="'+t+'">')}),e.join("")}()))},p.prototype.msg=function(e){return t.msg(e,{icon:2,shift:6})},p.prototype.isFile=function(){var e=this.config.elem[0];if(e)return"input"===e.tagName.toLocaleLowerCase()&&"file"===e.type},p.prototype.preview=function(e){var i=this;window.FileReader&&layui.each(i.chooseFiles,function(i,t){var n=new FileReader;n.readAsDataURL(t),n.onload=function(){e&&e(i,t,this.result)}})},p.prototype.upload=function(e,t){var n,o=this,l=o.config,r=o.elemFile[0],u=function(){var t=0,n=0,a=e||o.files||o.chooseFiles||r.files,u=function(){l.multiple&&t+n===o.fileLength&&"function"==typeof l.allDone&&l.allDone({total:o.fileLength,successful:t,aborted:n})};layui.each(a,function(e,a){var r=new FormData;r.append(l.field,a),layui.each(l.data,function(e,i){i="function"==typeof i?i():i,r.append(e,i)}),i.ajax({url:l.url,type:"post",data:r,contentType:!1,processData:!1,dataType:"json",headers:l.headers||{},success:function(i){t++,d(e,i),u()},error:function(){n++,o.msg("请求上传接口出现异常"),m(e),u()}})})},c=function(){var e=i("#"+f);o.elemFile.parent().submit(),clearInterval(p.timer),p.timer=setInterval(function(){var i,t=e.contents().find("body");try{i=t.text()}catch(n){o.msg("获取上传后的响应信息出现异常"),clearInterval(p.timer),m()}i&&(clearInterval(p.timer),t.html(""),d(0,i))},30)},d=function(e,i){if(o.elemFile.next("."+s).remove(),r.value="","object"!=typeof i)try{i=JSON.parse(i)}catch(t){return i={},o.msg("请对上传接口返回有效JSON")}"function"==typeof l.done&&l.done(i,e||0,function(e){o.upload(e)})},m=function(e){l.auto&&(r.value=""),"function"==typeof l.error&&l.error(e||0,function(e){o.upload(e)})},h=l.exts,v=function(){var i=[];return layui.each(e||o.chooseFiles,function(e,t){i.push(t.name)}),i}(),g={preview:function(e){o.preview(e)},upload:function(e,i){var t={};t[e]=i,o.upload(t)},pushFile:function(){return o.files=o.files||{},layui.each(o.chooseFiles,function(e,i){o.files[e]=i}),o.files},resetFile:function(e,i,t){var n=new File([i],t);o.files=o.files||{},o.files[e]=n}},y=function(){if("choose"!==t&&!l.auto||(l.choose&&l.choose(g),"choose"!==t))return l.before&&l.before(g),a.ie?a.ie>9?u():c():void u()};if(v=0===v.length?r.value.match(/[^\/\\]+\..+/g)||[]||"":v,0!==v.length){switch(l.accept){case"file":if(h&&!RegExp("\\w\\.("+h+")$","i").test(escape(v)))return o.msg("选择的文件中包含不支持的格式"),r.value="";break;case"video":if(!RegExp("\\w\\.("+(h||"avi|mp4|wma|rmvb|rm|flash|3gp|flv")+")$","i").test(escape(v)))return o.msg("选择的视频中包含不支持的格式"),r.value="";break;case"audio":if(!RegExp("\\w\\.("+(h||"mp3|wav|mid")+")$","i").test(escape(v)))return o.msg("选择的音频中包含不支持的格式"),r.value="";break;default:if(layui.each(v,function(e,i){RegExp("\\w\\.("+(h||"jpg|png|gif|bmp|jpeg$")+")","i").test(escape(i))||(n=!0)}),n)return o.msg("选择的图片中包含不支持的格式"),r.value=""}if(o.fileLength=function(){var i=0,t=e||o.files||o.chooseFiles||r.files;return layui.each(t,function(){i++}),i}(),l.number&&o.fileLength>l.number)return o.msg("同时最多只能上传的数量为:"+l.number);if(l.size>0&&!(a.ie&&a.ie<10)){var F;if(layui.each(o.chooseFiles,function(e,i){if(i.size>1024*l.size){var t=l.size/1024;t=t>=1?t.toFixed(2)+"MB":l.size+"KB",r.value="",F=t}}),F)return o.msg("文件不能超过"+F)}y()}},p.prototype.events=function(){var e=this,t=e.config,o=function(i){e.chooseFiles={},layui.each(i,function(i,t){var n=(new Date).getTime();e.chooseFiles[n+"-"+i]=t})},l=function(i,n){var a=e.elemFile,o=i.length>1?i.length+"个文件":(i[0]||{}).name||a[0].value.match(/[^\/\\]+\..+/g)||[]||"";a.next().hasClass(s)&&a.next().remove(),e.upload(null,"choose"),e.isFile()||t.choose||a.after('<span class="layui-inline '+s+'">'+o+"</span>")};t.elem.off("upload.start").on("upload.start",function(){var a=i(this),o=a.attr("lay-data");if(o)try{o=new Function("return "+o)(),e.config=i.extend({},t,o)}catch(l){n.error("Upload element property lay-data configuration item has a syntax error: "+o)}e.config.item=a,e.elemFile[0].click()}),a.ie&&a.ie<10||t.elem.off("upload.over").on("upload.over",function(){var e=i(this);e.attr("lay-over","")}).off("upload.leave").on("upload.leave",function(){var e=i(this);e.removeAttr("lay-over")}).off("upload.drop").on("upload.drop",function(n,a){var r=i(this),u=a.originalEvent.dataTransfer.files||[];r.removeAttr("lay-over"),o(u),t.auto?e.upload(u):l(u)}),e.elemFile.off("upload.change").on("upload.change",function(){var i=this.files||[];o(i),t.auto?e.upload():l(i)}),t.bindAction.off("upload.action").on("upload.action",function(){e.upload()}),t.elem.data("haveEvents")||(e.elemFile.on("change",function(){i(this).trigger("upload.change")}),t.elem.on("click",function(){e.isFile()||i(this).trigger("upload.start")}),t.drag&&t.elem.on("dragover",function(e){e.preventDefault(),i(this).trigger("upload.over")}).on("dragleave",function(e){i(this).trigger("upload.leave")}).on("drop",function(e){e.preventDefault(),i(this).trigger("upload.drop",e)}),t.bindAction.on("click",function(){i(this).trigger("upload.action")}),t.elem.data("haveEvents",!0))},o.render=function(e){var i=new p(e);return l.call(i)},e(r,o)});layui.define("jquery",function(e){"use strict";var i=layui.jquery,t={config:{},index:layui.slider?layui.slider.index+1e4:0,set:function(e){var t=this;return t.config=i.extend({},t.config,e),t},on:function(e,i){return layui.onevent.call(this,n,e,i)}},a=function(){var e=this,i=e.config;return{setValue:function(i,t){return e.slide("set",i,t||0)},config:i}},n="slider",l="layui-disabled",s="layui-slider",r="layui-slider-bar",o="layui-slider-wrap",u="layui-slider-wrap-btn",d="layui-slider-tips",v="layui-slider-input",c="layui-slider-input-txt",f="layui-slider-input-btn",m="layui-slider-hover",p=function(e){var a=this;a.index=++t.index,a.config=i.extend({},a.config,t.config,e),a.render()};p.prototype.config={type:"default",min:0,max:100,value:0,step:1,showstep:!1,tips:!0,input:!1,range:!1,height:200,disabled:!1,theme:"#009688"},p.prototype.render=function(){var e=this,t=e.config;if(t.min=t.min<0?0:t.min,t.range){t.value="object"==typeof t.value?t.value:[t.min,t.value];var a=Math.min(t.value[0],t.value[1]),n=Math.max(t.value[0],t.value[1]);t.value[0]=a>t.min?a:t.min,t.value[1]=n>t.min?n:t.min,t.value[0]=t.value[0]>t.max?t.max:t.value[0],t.value[1]=t.value[1]>t.max?t.max:t.value[1];var r=Math.floor((t.value[0]-t.min)/(t.max-t.min)*100),v=Math.floor((t.value[1]-t.min)/(t.max-t.min)*100),f=v-r+"%";r+="%",v+="%"}else{t.value="object"==typeof t.value?Math.min(t.value[0],t.value[1]):t.value,t.value=t.value>t.min?t.value:t.min;var f=Math.floor((t.value-t.min)/(t.max-t.min)*100)+"%"}var m=t.disabled?"#c2c2c2":t.theme,p='<div class="layui-slider '+("vertical"===t.type?"layui-slider-vertical":"")+'">'+(t.tips?'<div class="layui-slider-tips"></div>':"")+'<div class="layui-slider-bar" style="background:'+m+"; "+("vertical"===t.type?"height":"width")+":"+f+";"+("vertical"===t.type?"bottom":"left")+":"+(r||0)+';"></div><div class="layui-slider-wrap" style="'+("vertical"===t.type?"bottom":"left")+":"+(r||f)+';"><div class="layui-slider-wrap-btn" style="border: 2px solid '+m+';"></div></div>'+(t.range?'<div class="layui-slider-wrap" style="'+("vertical"===t.type?"bottom":"left")+":"+v+';"><div class="layui-slider-wrap-btn" style="border: 2px solid '+m+';"></div></div>':"")+"</div>",h=i(t.elem),y=h.next("."+s);if(y[0]&&y.remove(),e.elemTemp=i(p),t.range?(e.elemTemp.find("."+o).eq(0).data("value",t.value[0]),e.elemTemp.find("."+o).eq(1).data("value",t.value[1])):e.elemTemp.find("."+o).data("value",t.value),h.html(e.elemTemp),"vertical"===t.type&&e.elemTemp.height(t.height+"px"),t.showstep){for(var g=(t.max-t.min)/t.step,b="",x=1;x<g+1;x++){var T=100*x/g;T<100&&(b+='<div class="layui-slider-step" style="'+("vertical"===t.type?"bottom":"left")+":"+T+'%"></div>')}e.elemTemp.append(b)}if(t.input&&!t.range){var w=i('<div class="layui-slider-input layui-input"><div class="layui-slider-input-txt"><input type="text" class="layui-input"></div><div class="layui-slider-input-btn"><i class="layui-icon layui-icon-up"></i><i class="layui-icon layui-icon-down"></i></div></div>');h.css("position","relative"),h.append(w),h.find("."+c).children("input").val(t.value),"vertical"===t.type?w.css({left:0,top:-48}):e.elemTemp.css("margin-right",w.outerWidth()+15)}t.disabled?(e.elemTemp.addClass(l),e.elemTemp.find("."+u).addClass(l)):e.slide(),e.elemTemp.find("."+u).on("mouseover",function(){var a="vertical"===t.type?t.height:e.elemTemp[0].offsetWidth,n=e.elemTemp.find("."+o),l="vertical"===t.type?a-i(this).parent()[0].offsetTop-n.height():i(this).parent()[0].offsetLeft,s=l/a*100,r=i(this).parent().data("value"),u=t.setTips?t.setTips(r):r;e.elemTemp.find("."+d).html(u),"vertical"===t.type?e.elemTemp.find("."+d).css({bottom:s+"%","margin-bottom":"20px",display:"inline-block"}):e.elemTemp.find("."+d).css({left:s+"%",display:"inline-block"})}).on("mouseout",function(){e.elemTemp.find("."+d).css("display","none")})},p.prototype.slide=function(e,t,a){var n=this,l=n.config,s=n.elemTemp,p=function(){return"vertical"===l.type?l.height:s[0].offsetWidth},h=s.find("."+o),y=s.next("."+v),g=y.children("."+c).children("input").val(),b=100/((l.max-l.min)/Math.ceil(l.step)),x=function(e,i){e=Math.ceil(e)*b>100?Math.ceil(e)*b:Math.round(e)*b,e=e>100?100:e,h.eq(i).css("vertical"===l.type?"bottom":"left",e+"%");var t=T(h[0].offsetLeft),a=l.range?T(h[1].offsetLeft):0;"vertical"===l.type?(s.find("."+d).css({bottom:e+"%","margin-bottom":"20px"}),t=T(p()-h[0].offsetTop-h.height()),a=l.range?T(p()-h[1].offsetTop-h.height()):0):s.find("."+d).css("left",e+"%"),t=t>100?100:t,a=a>100?100:a;var n=Math.min(t,a),o=Math.abs(t-a);"vertical"===l.type?s.find("."+r).css({height:o+"%",bottom:n+"%"}):s.find("."+r).css({width:o+"%",left:n+"%"});var u=l.min+Math.round((l.max-l.min)*e/100);if(g=u,y.children("."+c).children("input").val(g),h.eq(i).data("value",u),u=l.setTips?l.setTips(u):u,s.find("."+d).html(u),l.range){var v=[h.eq(0).data("value"),h.eq(1).data("value")];v[0]>v[1]&&v.reverse()}l.change&&l.change(l.range?v:u)},T=function(e){var i=e/p()*100/b,t=Math.round(i)*b;return e==p()&&(t=Math.ceil(i)*b),t},w=i(['<div class="layui-auxiliar-moving" id="LAY-slider-moving"></div'].join("")),M=function(e,t){var a=function(){t&&t(),w.remove()};i("#LAY-slider-moving")[0]||i("body").append(w),w.on("mousemove",e),w.on("mouseup",a).on("mouseleave",a)};if("set"===e)return x(t,a);s.find("."+u).each(function(e){var t=i(this);t.on("mousedown",function(i){i=i||window.event;var a=t.parent()[0].offsetLeft,n=i.clientX;"vertical"===l.type&&(a=p()-t.parent()[0].offsetTop-h.height(),n=i.clientY);var r=function(i){i=i||window.event;var r=a+("vertical"===l.type?n-i.clientY:i.clientX-n);r<0&&(r=0),r>p()&&(r=p());var o=r/p()*100/b;x(o,e),t.addClass(m),s.find("."+d).show(),i.preventDefault()},o=function(){t.removeClass(m),s.find("."+d).hide()};M(r,o)})}),s.on("click",function(e){var t=i("."+u);if(!t.is(event.target)&&0===t.has(event.target).length&&t.length){var a,n="vertical"===l.type?p()-e.clientY+i(this).offset().top:e.clientX-i(this).offset().left;n<0&&(n=0),n>p()&&(n=p());var s=n/p()*100/b;a=l.range?"vertical"===l.type?Math.abs(n-parseInt(i(h[0]).css("bottom")))>Math.abs(n-parseInt(i(h[1]).css("bottom")))?1:0:Math.abs(n-h[0].offsetLeft)>Math.abs(n-h[1].offsetLeft)?1:0:0,x(s,a),e.preventDefault()}}),y.hover(function(){var e=i(this);e.children("."+f).fadeIn("fast")},function(){var e=i(this);e.children("."+f).fadeOut("fast")}),y.children("."+f).children("i").each(function(e){i(this).on("click",function(){g=1==e?g-b<l.min?l.min:g-b:Number(g)+b>l.max?l.max:Number(g)+b;var i=(g-l.min)/(l.max-l.min)*100/b;x(i,0)})});var q=function(){var e=this.value;e=isNaN(e)?0:e,e=e<l.min?l.min:e,e=e>l.max?l.max:e,this.value=e;var i=(e-l.min)/(l.max-l.min)*100/b;x(i,0)};y.children("."+c).children("input").on("keydown",function(e){13===e.keyCode&&(e.preventDefault(),q.call(this))}).on("change",q)},p.prototype.events=function(){var e=this;e.config},t.render=function(e){var i=new p(e);return a.call(i)},e(n,t)});layui.define("jquery",function(e){"use strict";var i=layui.jquery,o={config:{},index:layui.colorpicker?layui.colorpicker.index+1e4:0,set:function(e){var o=this;return o.config=i.extend({},o.config,e),o},on:function(e,i){return layui.onevent.call(this,"colorpicker",e,i)}},r=function(){var e=this,i=e.config;return{config:i}},t="colorpicker",n="layui-show",l="layui-colorpicker",c=".layui-colorpicker-main",a="layui-icon-down",s="layui-icon-close",f="layui-colorpicker-trigger-span",d="layui-colorpicker-trigger-i",u="layui-colorpicker-side",p="layui-colorpicker-side-slider",g="layui-colorpicker-basis",v="layui-colorpicker-alpha-bgcolor",h="layui-colorpicker-alpha-slider",m="layui-colorpicker-basis-cursor",b="layui-colorpicker-main-input",k=function(e){var i={h:0,s:0,b:0},o=Math.min(e.r,e.g,e.b),r=Math.max(e.r,e.g,e.b),t=r-o;return i.b=r,i.s=0!=r?255*t/r:0,0!=i.s?e.r==r?i.h=(e.g-e.b)/t:e.g==r?i.h=2+(e.b-e.r)/t:i.h=4+(e.r-e.g)/t:i.h=-1,r==o&&(i.h=0),i.h*=60,i.h<0&&(i.h+=360),i.s*=100/255,i.b*=100/255,i},y=function(e){var e=e.indexOf("#")>-1?e.substring(1):e;if(3==e.length){var i=e.split("");e=i[0]+i[0]+i[1]+i[1]+i[2]+i[2]}e=parseInt(e,16);var o={r:e>>16,g:(65280&e)>>8,b:255&e};return k(o)},x=function(e){var i={},o=e.h,r=255*e.s/100,t=255*e.b/100;if(0==r)i.r=i.g=i.b=t;else{var n=t,l=(255-r)*t/255,c=(n-l)*(o%60)/60;360==o&&(o=0),o<60?(i.r=n,i.b=l,i.g=l+c):o<120?(i.g=n,i.b=l,i.r=n-c):o<180?(i.g=n,i.r=l,i.b=l+c):o<240?(i.b=n,i.r=l,i.g=n-c):o<300?(i.b=n,i.g=l,i.r=l+c):o<360?(i.r=n,i.g=l,i.b=n-c):(i.r=0,i.g=0,i.b=0)}return{r:Math.round(i.r),g:Math.round(i.g),b:Math.round(i.b)}},C=function(e){var o=x(e),r=[o.r.toString(16),o.g.toString(16),o.b.toString(16)];return i.each(r,function(e,i){1==i.length&&(r[e]="0"+i)}),r.join("")},P=function(e){var i=/[0-9]{1,3}/g,o=e.match(i)||[];return{r:o[0],g:o[1],b:o[2]}},B=i(window),w=i(document),D=function(e){var r=this;r.index=++o.index,r.config=i.extend({},r.config,o.config,e),r.render()};D.prototype.config={color:"",size:null,alpha:!1,format:"hex",predefine:!1,colors:["#009688","#5FB878","#1E9FFF","#FF5722","#FFB800","#01AAED","#999","#c00","#ff8c00","#ffd700","#90ee90","#00ced1","#1e90ff","#c71585","rgb(0, 186, 189)","rgb(255, 120, 0)","rgb(250, 212, 0)","#393D49","rgba(0,0,0,.5)","rgba(255, 69, 0, 0.68)","rgba(144, 240, 144, 0.5)","rgba(31, 147, 255, 0.73)"]},D.prototype.render=function(){var e=this,o=e.config,r=i(['<div class="layui-unselect layui-colorpicker">',"<span "+("rgb"==o.format&&o.alpha?'class="layui-colorpicker-trigger-bgcolor"':"")+">",'<span class="layui-colorpicker-trigger-span" ','lay-type="'+("rgb"==o.format?o.alpha?"rgba":"torgb":"")+'" ','style="'+function(){var e="";return o.color?(e=o.color,(o.color.match(/[0-9]{1,3}/g)||[]).length>3&&(o.alpha&&"rgb"==o.format||(e="#"+C(k(P(o.color))))),"background: "+e):e}()+'">','<i class="layui-icon layui-colorpicker-trigger-i '+(o.color?a:s)+'"></i>',"</span>","</span>","</div>"].join("")),t=i(o.elem);o.size&&r.addClass("layui-colorpicker-"+o.size),t.addClass("layui-inline").html(e.elemColorBox=r),e.color=e.elemColorBox.find("."+f)[0].style.background,e.events()},D.prototype.renderPicker=function(){var e=this,o=e.config,r=e.elemColorBox[0],t=e.elemPicker=i(['<div id="layui-colorpicker'+e.index+'" data-index="'+e.index+'" class="layui-anim layui-anim-upbit layui-colorpicker-main">','<div class="layui-colorpicker-main-wrapper">','<div class="layui-colorpicker-basis">','<div class="layui-colorpicker-basis-white"></div>','<div class="layui-colorpicker-basis-black"></div>','<div class="layui-colorpicker-basis-cursor"></div>',"</div>",'<div class="layui-colorpicker-side">','<div class="layui-colorpicker-side-slider"></div>',"</div>","</div>",'<div class="layui-colorpicker-main-alpha '+(o.alpha?n:"")+'">','<div class="layui-colorpicker-alpha-bgcolor">','<div class="layui-colorpicker-alpha-slider"></div>',"</div>","</div>",function(){if(o.predefine){var e=['<div class="layui-colorpicker-main-pre">'];return layui.each(o.colors,function(i,o){e.push(['<div class="layui-colorpicker-pre'+((o.match(/[0-9]{1,3}/g)||[]).length>3?" layui-colorpicker-pre-isalpha":"")+'">','<div style="background:'+o+'"></div>',"</div>"].join(""))}),e.push("</div>"),e.join("")}return""}(),'<div class="layui-colorpicker-main-input">','<div class="layui-inline">','<input type="text" class="layui-input">',"</div>",'<div class="layui-btn-container">','<button class="layui-btn layui-btn-primary layui-btn-sm" colorpicker-events="clear">清空</button>','<button class="layui-btn layui-btn-sm" colorpicker-events="confirm">确定</button>',"</div","</div>","</div>"].join(""));e.elemColorBox.find("."+f)[0];i(c)[0]&&i(c).data("index")==e.index?e.removePicker(D.thisElemInd):(e.removePicker(D.thisElemInd),i("body").append(t)),D.thisElemInd=e.index,D.thisColor=r.style.background,e.position(),e.pickerEvents()},D.prototype.removePicker=function(e){var o=this;o.config;return i("#layui-colorpicker"+(e||o.index)).remove(),o},D.prototype.position=function(){var e=this,i=e.config,o=e.bindElem||e.elemColorBox[0],r=e.elemPicker[0],t=o.getBoundingClientRect(),n=r.offsetWidth,l=r.offsetHeight,c=function(e){return e=e?"scrollLeft":"scrollTop",document.body[e]|document.documentElement[e]},a=function(e){return document.documentElement[e?"clientWidth":"clientHeight"]},s=5,f=t.left,d=t.bottom;f-=(n-o.offsetWidth)/2,d+=s,f+n+s>a("width")?f=a("width")-n-s:f<s&&(f=s),d+l+s>a()&&(d=t.top>l?t.top-l:a()-l,d-=2*s),i.position&&(r.style.position=i.position),r.style.left=f+("fixed"===i.position?0:c(1))+"px",r.style.top=d+("fixed"===i.position?0:c())+"px"},D.prototype.val=function(){var e=this,i=(e.config,e.elemColorBox.find("."+f)),o=e.elemPicker.find("."+b),r=i[0],t=r.style.backgroundColor;if(t){var n=k(P(t)),l=i.attr("lay-type");if(e.select(n.h,n.s,n.b),"torgb"===l&&o.find("input").val(t),"rgba"===l){var c=P(t);if(3==(t.match(/[0-9]{1,3}/g)||[]).length)o.find("input").val("rgba("+c.r+", "+c.g+", "+c.b+", 1)"),e.elemPicker.find("."+h).css("left",280);else{o.find("input").val(t);var a=280*t.slice(t.lastIndexOf(",")+1,t.length-1);e.elemPicker.find("."+h).css("left",a)}e.elemPicker.find("."+v)[0].style.background="linear-gradient(to right, rgba("+c.r+", "+c.g+", "+c.b+", 0), rgb("+c.r+", "+c.g+", "+c.b+"))"}}else e.select(0,100,100),o.find("input").val(""),e.elemPicker.find("."+v)[0].style.background="",e.elemPicker.find("."+h).css("left",280)},D.prototype.side=function(){var e=this,o=e.config,r=e.elemColorBox.find("."+f),t=r.attr("lay-type"),n=e.elemPicker.find("."+u),l=e.elemPicker.find("."+p),c=e.elemPicker.find("."+g),y=e.elemPicker.find("."+m),C=e.elemPicker.find("."+v),w=e.elemPicker.find("."+h),D=l[0].offsetTop/180*360,E=100-(y[0].offsetTop+3)/180*100,H=(y[0].offsetLeft+3)/260*100,W=Math.round(w[0].offsetLeft/280*100)/100,j=e.elemColorBox.find("."+d),F=e.elemPicker.find(".layui-colorpicker-pre").children("div"),L=function(i,n,l,c){e.select(i,n,l);var f=x({h:i,s:n,b:l});if(j.addClass(a).removeClass(s),r[0].style.background="rgb("+f.r+", "+f.g+", "+f.b+")","torgb"===t&&e.elemPicker.find("."+b).find("input").val("rgb("+f.r+", "+f.g+", "+f.b+")"),"rgba"===t){var d=0;d=280*c,w.css("left",d),e.elemPicker.find("."+b).find("input").val("rgba("+f.r+", "+f.g+", "+f.b+", "+c+")"),r[0].style.background="rgba("+f.r+", "+f.g+", "+f.b+", "+c+")",C[0].style.background="linear-gradient(to right, rgba("+f.r+", "+f.g+", "+f.b+", 0), rgb("+f.r+", "+f.g+", "+f.b+"))"}o.change&&o.change(e.elemPicker.find("."+b).find("input").val())},M=i(['<div class="layui-auxiliar-moving" id="LAY-colorpicker-moving"></div'].join("")),Y=function(e){i("#LAY-colorpicker-moving")[0]||i("body").append(M),M.on("mousemove",e),M.on("mouseup",function(){M.remove()}).on("mouseleave",function(){M.remove()})};l.on("mousedown",function(e){var i=this.offsetTop,o=e.clientY,r=function(e){var r=i+(e.clientY-o),t=n[0].offsetHeight;r<0&&(r=0),r>t&&(r=t);var l=r/180*360;D=l,L(l,H,E,W),e.preventDefault()};Y(r),e.preventDefault()}),n.on("click",function(e){var o=e.clientY-i(this).offset().top;o<0&&(o=0),o>this.offsetHeight&&(o=this.offsetHeight);var r=o/180*360;D=r,L(r,H,E,W),e.preventDefault()}),y.on("mousedown",function(e){var i=this.offsetTop,o=this.offsetLeft,r=e.clientY,t=e.clientX,n=function(e){var n=i+(e.clientY-r),l=o+(e.clientX-t),a=c[0].offsetHeight-3,s=c[0].offsetWidth-3;n<-3&&(n=-3),n>a&&(n=a),l<-3&&(l=-3),l>s&&(l=s);var f=(l+3)/260*100,d=100-(n+3)/180*100;E=d,H=f,L(D,f,d,W),e.preventDefault()};layui.stope(e),Y(n),e.preventDefault()}),c.on("mousedown",function(e){var o=e.clientY-i(this).offset().top-3+B.scrollTop(),r=e.clientX-i(this).offset().left-3+B.scrollLeft();o<-3&&(o=-3),o>this.offsetHeight-3&&(o=this.offsetHeight-3),r<-3&&(r=-3),r>this.offsetWidth-3&&(r=this.offsetWidth-3);var t=(r+3)/260*100,n=100-(o+3)/180*100;E=n,H=t,L(D,t,n,W),e.preventDefault(),y.trigger(e,"mousedown")}),w.on("mousedown",function(e){var i=this.offsetLeft,o=e.clientX,r=function(e){var r=i+(e.clientX-o),t=C[0].offsetWidth;r<0&&(r=0),r>t&&(r=t);var n=Math.round(r/280*100)/100;W=n,L(D,H,E,n),e.preventDefault()};Y(r),e.preventDefault()}),C.on("click",function(e){var o=e.clientX-i(this).offset().left;o<0&&(o=0),o>this.offsetWidth&&(o=this.offsetWidth);var r=Math.round(o/280*100)/100;W=r,L(D,H,E,r),e.preventDefault()}),F.each(function(){i(this).on("click",function(){i(this).parent(".layui-colorpicker-pre").addClass("selected").siblings().removeClass("selected");var e,o=this.style.backgroundColor,r=k(P(o)),t=o.slice(o.lastIndexOf(",")+1,o.length-1);D=r.h,H=r.s,E=r.b,3==(o.match(/[0-9]{1,3}/g)||[]).length&&(t=1),W=t,e=280*t,L(r.h,r.s,r.b,t)})})},D.prototype.select=function(e,i,o,r){var t=this,n=(t.config,C({h:e,s:100,b:100})),l=C({h:e,s:i,b:o}),c=e/360*180,a=180-o/100*180-3,s=i/100*260-3;t.elemPicker.find("."+p).css("top",c),t.elemPicker.find("."+g)[0].style.background="#"+n,t.elemPicker.find("."+m).css({top:a,left:s}),"change"!==r&&t.elemPicker.find("."+b).find("input").val("#"+l)},D.prototype.pickerEvents=function(){var e=this,o=e.config,r=e.elemColorBox.find("."+f),t=e.elemPicker.find("."+b+" input"),n={clear:function(i){r[0].style.background="",e.elemColorBox.find("."+d).removeClass(a).addClass(s),e.color="",o.done&&o.done(""),e.removePicker()},confirm:function(i,n){var l=t.val(),c=l,f={};if(l.indexOf(",")>-1){if(f=k(P(l)),e.select(f.h,f.s,f.b),r[0].style.background=c="#"+C(f),(l.match(/[0-9]{1,3}/g)||[]).length>3&&"rgba"===r.attr("lay-type")){var u=280*l.slice(l.lastIndexOf(",")+1,l.length-1);e.elemPicker.find("."+h).css("left",u),r[0].style.background=l,c=l}}else f=y(l),r[0].style.background=c="#"+C(f),e.elemColorBox.find("."+d).removeClass(s).addClass(a);return"change"===n?(e.select(f.h,f.s,f.b,n),void(o.change&&o.change(c))):(e.color=l,o.done&&o.done(l),void e.removePicker())}};e.elemPicker.on("click","*[colorpicker-events]",function(){var e=i(this),o=e.attr("colorpicker-events");n[o]&&n[o].call(this,e)}),t.on("keyup",function(e){var o=i(this);n.confirm.call(this,o,13===e.keyCode?null:"change")})},D.prototype.events=function(){var e=this,o=e.config,r=e.elemColorBox.find("."+f);e.elemColorBox.on("click",function(){e.renderPicker(),i(c)[0]&&(e.val(),e.side())}),o.elem[0]&&!e.elemColorBox[0].eventHandler&&(w.on("click",function(o){if(!i(o.target).hasClass(l)&&!i(o.target).parents("."+l)[0]&&!i(o.target).hasClass(c.replace(/\./g,""))&&!i(o.target).parents(c)[0]&&e.elemPicker){if(e.color){var t=k(P(e.color));e.select(t.h,t.s,t.b)}else e.elemColorBox.find("."+d).removeClass(a).addClass(s);r[0].style.background=e.color||"",e.removePicker()}}),B.on("resize",function(){return!(!e.elemPicker||!i(c)[0])&&void e.position()}),e.elemColorBox[0].eventHandler=!0)},o.render=function(e){var i=new D(e);return r.call(i)},e(t,o)});layui.define("layer",function(e){"use strict";var i=layui.$,t=layui.layer,a=layui.hint(),n=layui.device(),l="form",r=".layui-form",s="layui-this",o="layui-hide",c="layui-disabled",u=function(){this.config={verify:{required:[/[\S]+/,"必填项不能为空"],phone:[/^1\d{10}$/,"请输入正确的手机号"],email:[/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/,"邮箱格式不正确"],url:[/(^#)|(^http(s*):\/\/[^\s]+\.[^\s]+)/,"链接格式不正确"],number:function(e){if(!e||isNaN(e))return"只能填写数字"},date:[/^(\d{4})[-\/](\d{1}|0\d{1}|1[0-2])([-\/](\d{1}|0\d{1}|[1-2][0-9]|3[0-1]))*$/,"日期格式不正确"],identity:[/(^\d{15}$)|(^\d{17}(x|X|\d)$)/,"请输入正确的身份证号"]}}};u.prototype.set=function(e){var t=this;return i.extend(!0,t.config,e),t},u.prototype.verify=function(e){var t=this;return i.extend(!0,t.config.verify,e),t},u.prototype.on=function(e,i){return layui.onevent.call(this,l,e,i)},u.prototype.val=function(e,t){var a=i(r+'[lay-filter="'+e+'"]');a.each(function(e,a){var n=i(this);layui.each(t,function(e,i){var t,a=n.find('[name="'+e+'"]');a[0]&&(t=a[0].type,"checkbox"===t?a[0].checked=i:"radio"===t?a.each(function(){this.value===i&&(this.checked=!0)}):a.val(i))})}),f.render(null,e)},u.prototype.render=function(e,t){var n=this,u=i(r+function(){return t?'[lay-filter="'+t+'"]':""}()),d={select:function(){var e,t="请选择",a="layui-form-select",n="layui-select-title",r="layui-select-none",d="",f=u.find("select"),v=function(t,l){i(t.target).parent().hasClass(n)&&!l||(i("."+a).removeClass(a+"ed "+a+"up"),e&&d&&e.val(d)),e=null},y=function(t,u,f){var y,p=i(this),m=t.find("."+n),k=m.find("input"),x=t.find("dl"),g=x.children("dd"),b=this.selectedIndex;if(!u){var C=function(){var e=t.offset().top+t.outerHeight()+5-h.scrollTop(),i=x.outerHeight();b=p[0].selectedIndex,t.addClass(a+"ed"),g.removeClass(o),y=null,g.eq(b).addClass(s).siblings().removeClass(s),e+i>h.height()&&e>=i&&t.addClass(a+"up"),$()},w=function(e){t.removeClass(a+"ed "+a+"up"),k.blur(),y=null,e||T(k.val(),function(e){e&&(d=x.find("."+s).html(),k&&k.val(d))})},$=function(){var e=x.children("dd."+s);if(e[0]){var i=e.position().top,t=x.height(),a=e.height();i>t&&x.scrollTop(i+x.scrollTop()-t+a-5),i<0&&x.scrollTop(i+x.scrollTop()-5)}};m.on("click",function(e){t.hasClass(a+"ed")?w():(v(e,!0),C()),x.find("."+r).remove()}),m.find(".layui-edge").on("click",function(){k.focus()}),k.on("keyup",function(e){var i=e.keyCode;9===i&&C()}).on("keydown",function(e){var i=e.keyCode;9===i&&w();var t=function(i,a){var n,l;e.preventDefault();var r=function(){var e=x.children("dd."+s);if(x.children("dd."+o)[0]&&"next"===i){var t=x.children("dd:not(."+o+",."+c+")"),n=t.eq(0).index();if(n>=0&&n<e.index()&&!t.hasClass(s))return t.eq(0).prev()[0]?t.eq(0).prev():x.children(":last")}return a&&a[0]?a:y&&y[0]?y:e}();return l=r[i](),n=r[i]("dd:not(."+o+")"),l[0]?(y=r[i](),n[0]&&!n.hasClass(c)||!y[0]?(n.addClass(s).siblings().removeClass(s),void $()):t(i,y)):y=null};38===i&&t("prev"),40===i&&t("next"),13===i&&(e.preventDefault(),x.children("dd."+s).trigger("click"))});var T=function(e,t,a){var n=0;layui.each(g,function(){var t=i(this),l=t.text(),r=l.indexOf(e)===-1;(""===e||"blur"===a?e!==l:r)&&n++,"keyup"===a&&t[r?"addClass":"removeClass"](o)});var l=n===g.length;return t(l),l},j=function(e){var i=this.value,t=e.keyCode;return 9!==t&&13!==t&&37!==t&&38!==t&&39!==t&&40!==t&&(T(i,function(e){e?x.find("."+r)[0]||x.append('<p class="'+r+'">无匹配项</p>'):x.find("."+r).remove()},"keyup"),""===i&&x.find("."+r).remove(),void $())};f&&k.on("keyup",j).on("blur",function(t){var a=p[0].selectedIndex;e=k,d=i(p[0].options[a]).html(),setTimeout(function(){T(k.val(),function(e){d||k.val("")},"blur")},200)}),g.on("click",function(){var e=i(this),a=e.attr("lay-value"),n=p.attr("lay-filter");return!e.hasClass(c)&&(e.hasClass("layui-select-tips")?k.val(""):(k.val(e.text()),e.addClass(s)),e.siblings().removeClass(s),p.val(a).removeClass("layui-form-danger"),layui.event.call(this,l,"select("+n+")",{elem:p[0],value:a,othis:t}),w(!0),!1)}),t.find("dl>dt").on("click",function(e){return!1}),i(document).off("click",v).on("click",v)}};f.each(function(e,l){var r=i(this),o=r.next("."+a),u=this.disabled,d=l.value,f=i(l.options[l.selectedIndex]),v=l.options[0];if("string"==typeof r.attr("lay-ignore"))return r.show();var h="string"==typeof r.attr("lay-search"),p=v?v.value?t:v.innerHTML||t:t,m=i(['<div class="'+(h?"":"layui-unselect ")+a,(u?" layui-select-disabled":"")+'">','<div class="'+n+'">','<input type="text" placeholder="'+p+'" '+('value="'+(d?f.html():"")+'"')+(h?"":" readonly")+' class="layui-input'+(h?"":" layui-unselect")+(u?" "+c:"")+'">','<i class="layui-edge"></i></div>','<dl class="layui-anim layui-anim-upbit'+(r.find("optgroup")[0]?" layui-select-group":"")+'">',function(e){var i=[];return layui.each(e,function(e,a){0!==e||a.value?"optgroup"===a.tagName.toLowerCase()?i.push("<dt>"+a.label+"</dt>"):i.push('<dd lay-value="'+a.value+'" class="'+(d===a.value?s:"")+(a.disabled?" "+c:"")+'">'+a.innerHTML+"</dd>"):i.push('<dd lay-value="" class="layui-select-tips">'+(a.innerHTML||t)+"</dd>")}),0===i.length&&i.push('<dd lay-value="" class="'+c+'">没有选项</dd>'),i.join("")}(r.find("*"))+"</dl>","</div>"].join(""));o[0]&&o.remove(),r.after(m),y.call(this,m,u,h)})},checkbox:function(){var e={checkbox:["layui-form-checkbox","layui-form-checked","checkbox"],_switch:["layui-form-switch","layui-form-onswitch","switch"]},t=u.find("input[type=checkbox]"),a=function(e,t){var a=i(this);e.on("click",function(){var i=a.attr("lay-filter"),n=(a.attr("lay-text")||"").split("|");a[0].disabled||(a[0].checked?(a[0].checked=!1,e.removeClass(t[1]).find("em").text(n[1])):(a[0].checked=!0,e.addClass(t[1]).find("em").text(n[0])),layui.event.call(a[0],l,t[2]+"("+i+")",{elem:a[0],value:a[0].value,othis:e}))})};t.each(function(t,n){var l=i(this),r=l.attr("lay-skin"),s=(l.attr("lay-text")||"").split("|"),o=this.disabled;"switch"===r&&(r="_"+r);var u=e[r]||e.checkbox;if("string"==typeof l.attr("lay-ignore"))return l.show();var d=l.next("."+u[0]),f=i(['<div class="layui-unselect '+u[0],n.checked?" "+u[1]:"",o?" layui-checkbox-disbaled "+c:"",'"',r?' lay-skin="'+r+'"':"",">",function(){var e=n.title.replace(/\s/g,""),i={checkbox:[e?"<span>"+n.title+"</span>":"",'<i class="layui-icon layui-icon-ok"></i>'].join(""),_switch:"<em>"+((n.checked?s[0]:s[1])||"")+"</em><i></i>"};return i[r]||i.checkbox}(),"</div>"].join(""));d[0]&&d.remove(),l.after(f),a.call(this,f,u)})},radio:function(){var e="layui-form-radio",t=["",""],a=u.find("input[type=radio]"),n=function(a){var n=i(this),s="layui-anim-scaleSpring";a.on("click",function(){var o=n[0].name,c=n.parents(r),u=n.attr("lay-filter"),d=c.find("input[name="+o.replace(/(\.|#|\[|\])/g,"\\$1")+"]");n[0].disabled||(layui.each(d,function(){var a=i(this).next("."+e);this.checked=!1,a.removeClass(e+"ed"),a.find(".layui-icon").removeClass(s).html(t[1])}),n[0].checked=!0,a.addClass(e+"ed"),a.find(".layui-icon").addClass(s).html(t[0]),layui.event.call(n[0],l,"radio("+u+")",{elem:n[0],value:n[0].value,othis:a}))})};a.each(function(a,l){var r=i(this),s=r.next("."+e),o=this.disabled;if("string"==typeof r.attr("lay-ignore"))return r.show();s[0]&&s.remove();var u=i(['<div class="layui-unselect '+e,l.checked?" "+e+"ed":"",(o?" layui-radio-disbaled "+c:"")+'">','<i class="layui-anim layui-icon">'+t[l.checked?0:1]+"</i>","<div>"+function(){var e=l.title||"";return"string"==typeof r.next().attr("lay-radio")&&(e=r.next().html(),r.next().remove()),e}()+"</div>","</div>"].join(""));r.after(u),n.call(this,u)})}};return e?d[e]?d[e]():a.error("不支持的"+e+"表单渲染"):layui.each(d,function(e,i){i()}),n};var d=function(){var e=i(this),a=f.config.verify,s=null,o="layui-form-danger",c={},u=e.parents(r),d=u.find("*[lay-verify]"),v=e.parents("form")[0],h=u.find("input,select,textarea"),y=e.attr("lay-filter");if(layui.each(d,function(e,l){var r=i(this),c=r.attr("lay-verify").split("|"),u=r.attr("lay-verType"),d=r.val();if(r.removeClass(o),layui.each(c,function(e,i){var c,f="",v="function"==typeof a[i];if(a[i]){var c=v?f=a[i](d,l):!a[i][0].test(d);if(f=f||a[i][1],c)return"tips"===u?t.tips(f,function(){return"string"==typeof r.attr("lay-ignore")||"select"!==l.tagName.toLowerCase()&&!/^checkbox|radio$/.test(l.type)?r:r.next()}(),{tips:1}):"alert"===u?t.alert(f,{title:"提示",shadeClose:!0}):t.msg(f,{icon:5,shift:6}),n.android||n.ios||l.focus(),r.addClass(o),s=!0}}),s)return s}),s)return!1;var p={};return layui.each(h,function(e,i){if(i.name=(i.name||"").replace(/^\s*|\s*&/,""),i.name){if(/^.*\[\]$/.test(i.name)){var t=i.name.match(/^(.*)\[\]$/g)[0];p[t]=0|p[t],i.name=i.name.replace(/^(.*)\[\]$/,"$1["+p[t]++ +"]")}/^checkbox|radio$/.test(i.type)&&!i.checked||(c[i.name]=i.value)}}),layui.event.call(this,l,"submit("+y+")",{elem:this,form:v,field:c})},f=new u,v=i(document),h=i(window);f.render(),v.on("reset",r,function(){var e=i(this).attr("lay-filter");setTimeout(function(){f.render(null,e)},50)}),v.on("submit",r,d).on("click","*[lay-submit]",d),e(l,f)});layui.define("jquery",function(e){"use strict";var o=layui.$,a=layui.hint(),i="layui-tree-enter",r=function(e){this.options=e},t={arrow:["",""],checkbox:["",""],radio:["",""],branch:["",""],leaf:""};r.prototype.init=function(e){var o=this;e.addClass("layui-box layui-tree"),o.options.skin&&e.addClass("layui-tree-skin-"+o.options.skin),o.tree(e),o.on(e)},r.prototype.tree=function(e,a){var i=this,r=i.options,n=a||r.nodes;layui.each(n,function(a,n){var l=n.children&&n.children.length>0,c=o('<ul class="'+(n.spread?"layui-show":"")+'"></ul>'),s=o(["<li "+(n.spread?'data-spread="'+n.spread+'"':"")+">",function(){return l?'<i class="layui-icon layui-tree-spread">'+(n.spread?t.arrow[1]:t.arrow[0])+"</i>":""}(),function(){return r.check?'<i class="layui-icon layui-tree-check">'+("checkbox"===r.check?t.checkbox[0]:"radio"===r.check?t.radio[0]:"")+"</i>":""}(),function(){return'<a href="'+(n.href||"javascript:;")+'" '+(r.target&&n.href?'target="'+r.target+'"':"")+">"+('<i class="layui-icon layui-tree-'+(l?"branch":"leaf")+'">'+(l?n.spread?t.branch[1]:t.branch[0]:t.leaf)+"</i>")+("<cite>"+(n.name||"未命名")+"</cite></a>")}(),"</li>"].join(""));l&&(s.append(c),i.tree(c,n.children)),e.append(s),"function"==typeof r.click&&i.click(s,n),i.spread(s,n),r.drag&&i.drag(s,n)})},r.prototype.click=function(e,o){var a=this,i=a.options;e.children("a").on("click",function(e){layui.stope(e),i.click(o)})},r.prototype.spread=function(e,o){var a=this,i=(a.options,e.children(".layui-tree-spread")),r=e.children("ul"),n=e.children("a"),l=function(){e.data("spread")?(e.data("spread",null),r.removeClass("layui-show"),i.html(t.arrow[0]),n.find(".layui-icon").html(t.branch[0])):(e.data("spread",!0),r.addClass("layui-show"),i.html(t.arrow[1]),n.find(".layui-icon").html(t.branch[1]))};r[0]&&(i.on("click",l),n.on("dblclick",l))},r.prototype.on=function(e){var a=this,r=a.options,t="layui-tree-drag";e.find("i").on("selectstart",function(e){return!1}),r.drag&&o(document).on("mousemove",function(e){var i=a.move;if(i.from){var r=(i.to,o('<div class="layui-box '+t+'"></div>'));e.preventDefault(),o("."+t)[0]||o("body").append(r);var n=o("."+t)[0]?o("."+t):r;n.addClass("layui-show").html(i.from.elem.children("a").html()),n.css({left:e.pageX+10,top:e.pageY+10})}}).on("mouseup",function(){var e=a.move;e.from&&(e.from.elem.children("a").removeClass(i),e.to&&e.to.elem.children("a").removeClass(i),a.move={},o("."+t).remove())})},r.prototype.move={},r.prototype.drag=function(e,a){var r=this,t=(r.options,e.children("a")),n=function(){var t=o(this),n=r.move;n.from&&(n.to={item:a,elem:e},t.addClass(i))};t.on("mousedown",function(){var o=r.move;o.from={item:a,elem:e}}),t.on("mouseenter",n).on("mousemove",n).on("mouseleave",function(){var e=o(this),a=r.move;a.from&&(delete a.to,e.removeClass(i))})},e("tree",function(e){var i=new r(e=e||{}),t=o(e.elem);return t[0]?void i.init(t):a.error("layui.tree 没有找到"+e.elem+"元素")})});layui.define(["laytpl","laypage","layer","form","util"],function(e){"use strict";var t=layui.$,i=layui.laytpl,a=layui.laypage,l=layui.layer,n=layui.form,o=(layui.util,layui.hint()),r=layui.device(),d={config:{checkName:"LAY_CHECKED",indexName:"LAY_TABLE_INDEX"},cache:{},index:layui.table?layui.table.index+1e4:0,set:function(e){var i=this;return i.config=t.extend({},i.config,e),i},on:function(e,t){return layui.onevent.call(this,s,e,t)}},c=function(){var e=this,t=e.config,i=t.id||t.index;return i&&(c.config[i]=t),{reload:function(t){e.reload.call(e,t)},setColsWidth:function(){e.setColsWidth.call(e)},config:t}},s="table",u=".layui-table",y="layui-hide",h="layui-none",f="layui-table-view",p=".layui-table-tool",v=".layui-table-box",m=".layui-table-init",g=".layui-table-header",b=".layui-table-body",x=".layui-table-main",k=".layui-table-fixed",C=".layui-table-fixed-l",w=".layui-table-fixed-r",T=".layui-table-total",A=".layui-table-page",L=".layui-table-sort",S="layui-table-edit",N="layui-table-hover",W=function(e){var t='{{#if(item2.colspan){}} colspan="{{item2.colspan}}"{{#} if(item2.rowspan){}} rowspan="{{item2.rowspan}}"{{#}}}';return e=e||{},['<table cellspacing="0" cellpadding="0" border="0" class="layui-table" ','{{# if(d.data.skin){ }}lay-skin="{{d.data.skin}}"{{# } }} {{# if(d.data.size){ }}lay-size="{{d.data.size}}"{{# } }} {{# if(d.data.even){ }}lay-even{{# } }}>',"<thead>","{{# layui.each(d.data.cols, function(i1, item1){ }}","<tr>","{{# layui.each(item1, function(i2, item2){ }}",'{{# if(item2.fixed && item2.fixed !== "right"){ left = true; } }}','{{# if(item2.fixed === "right"){ right = true; } }}',function(){return e.fixed&&"right"!==e.fixed?'{{# if(item2.fixed && item2.fixed !== "right"){ }}':"right"===e.fixed?'{{# if(item2.fixed === "right"){ }}':""}(),"{{# var isSort = !(item2.colGroup) && item2.sort; }}",'<th data-field="{{ item2.field||i2 }}" data-key="{{d.index}}-{{i1}}-{{i2}}" {{# if( item2.parentKey){ }}data-parentkey="{{ item2.parentKey }}"{{# } }} {{# if(item2.minWidth){ }}data-minwidth="{{item2.minWidth}}"{{# } }} '+t+' {{# if(item2.unresize || item2.colGroup){ }}data-unresize="true"{{# } }} class="{{# if(item2.hide){ }}layui-hide{{# } }}{{# if(isSort){ }} layui-unselect{{# } }}{{# if(!item2.field){ }} layui-table-col-special{{# } }}">','<div class="layui-table-cell laytable-cell-',"{{# if(item2.colGroup){ }}","group","{{# } else { }}","{{d.index}}-{{i1}}-{{i2}}",'{{# if(item2.type !== "normal"){ }}'," laytable-cell-{{ item2.type }}","{{# } }}","{{# } }}",'" {{#if(item2.align){}}align="{{item2.align}}"{{#}}}>','{{# if(item2.type === "checkbox"){ }}','<input type="checkbox" name="layTableCheckbox" lay-skin="primary" lay-filter="layTableAllChoose" {{# if(item2[d.data.checkName]){ }}checked{{# }; }}>',"{{# } else { }}",'<span>{{item2.title||""}}</span>',"{{# if(isSort){ }}",'<span class="layui-table-sort layui-inline"><i class="layui-edge layui-table-sort-asc" title="升序"></i><i class="layui-edge layui-table-sort-desc" title="降序"></i></span>',"{{# } }}","{{# } }}","</div>","</th>",e.fixed?"{{# }; }}":"","{{# }); }}","</tr>","{{# }); }}","</thead>","</table>"].join("")},_=['<table cellspacing="0" cellpadding="0" border="0" class="layui-table" ','{{# if(d.data.skin){ }}lay-skin="{{d.data.skin}}"{{# } }} {{# if(d.data.size){ }}lay-size="{{d.data.size}}"{{# } }} {{# if(d.data.even){ }}lay-even{{# } }}>',"<tbody></tbody>","</table>"].join(""),E=['<div class="layui-form layui-border-box {{d.VIEW_CLASS}}" lay-filter="LAY-table-{{d.index}}" style="{{# if(d.data.width){ }}width:{{d.data.width}}px;{{# } }} {{# if(d.data.height){ }}height:{{d.data.height}}px;{{# } }}">',"{{# if(d.data.toolbar){ }}",'<div class="layui-table-tool">','<div class="layui-table-tool-temp"></div>','<div class="layui-table-tool-self"></div>',"</div>","{{# } }}",'<div class="layui-table-box">',"{{# if(d.loading){ }}",'<div class="layui-table-init" style="background-color: #fff;">','<i class="layui-icon layui-icon-loading layui-icon"></i>',"</div>","{{# } }}","{{# var left, right; }}",'<div class="layui-table-header">',W(),"</div>",'<div class="layui-table-body layui-table-main">',_,"</div>","{{# if(left){ }}",'<div class="layui-table-fixed layui-table-fixed-l">','<div class="layui-table-header">',W({fixed:!0}),"</div>",'<div class="layui-table-body">',_,"</div>","</div>","{{# }; }}","{{# if(right){ }}",'<div class="layui-table-fixed layui-table-fixed-r">','<div class="layui-table-header">',W({fixed:"right"}),'<div class="layui-table-mend"></div>',"</div>",'<div class="layui-table-body">',_,"</div>","</div>","{{# }; }}","</div>","{{# if(d.data.totalRow){ }}",'<div class="layui-table-total">','<table cellspacing="0" cellpadding="0" border="0" class="layui-table" ','{{# if(d.data.skin){ }}lay-skin="{{d.data.skin}}"{{# } }} {{# if(d.data.size){ }}lay-size="{{d.data.size}}"{{# } }} {{# if(d.data.even){ }}lay-even{{# } }}>','<tbody><tr><td><div class="layui-table-cell" style="visibility: hidden;">Total</div></td></tr></tbody>',"</table>","</div>","{{# } }}","{{# if(d.data.page){ }}",'<div class="layui-table-page">','<div id="layui-table-page{{d.index}}"></div>',"</div>","{{# } }}","<style>","{{# layui.each(d.data.cols, function(i1, item1){","layui.each(item1, function(i2, item2){ }}",".laytable-cell-{{d.index}}-{{i1}}-{{i2}}{ ","{{# if(item2.width){ }}","width: {{item2.width}}px;","{{# } }}"," }","{{# });","}); }}","</style>","</div>"].join(""),R=t(window),H=t(document),j=function(e){var i=this;i.index=++d.index,i.config=t.extend({},i.config,d.config,e),i.render()};j.prototype.config={limit:10,loading:!0,cellMinWidth:60,defaultToolbar:["filter","exports","print"],text:{none:"无数据"}},j.prototype.render=function(){var e=this,a=e.config;if(a.elem=t(a.elem),a.where=a.where||{},a.id=a.id||a.elem.attr("id")||a.index,a.request=t.extend({pageName:"page",limitName:"limit"},a.request),a.response=t.extend({statusName:"code",statusCode:0,msgName:"msg",dataName:"data",countName:"count"},a.response),"object"==typeof a.page&&(a.limit=a.page.limit||a.limit,a.limits=a.page.limits||a.limits,e.page=a.page.curr=a.page.curr||1,delete a.page.elem,delete a.page.jump),!a.elem[0])return e;a.height&&/^full-\d+$/.test(a.height)&&(e.fullHeightGap=a.height.split("-")[1],a.height=R.height()-e.fullHeightGap),e.setInit();var l=a.elem,n=l.next("."+f),o=e.elem=t(i(E).render({VIEW_CLASS:f,data:a,index:e.index}));if(a.index=e.index,n[0]&&n.remove(),l.after(o),e.layTool=o.find(p),e.layBox=o.find(v),e.layHeader=o.find(g),e.layMain=o.find(x),e.layBody=o.find(b),e.layFixed=o.find(k),e.layFixLeft=o.find(C),e.layFixRight=o.find(w),e.layTotal=o.find(T),e.layPage=o.find(A),e.renderToolbar(),e.fullSize(),a.cols.length>1){var r=e.layFixed.find(g).find("th");r.height(e.layHeader.height()-1-parseFloat(r.css("padding-top"))-parseFloat(r.css("padding-bottom")))}e.pullData(e.page),e.events()},j.prototype.initOpts=function(e){var t=this,i=(t.config,{checkbox:48,radio:48,space:15,numbers:40});e.checkbox&&(e.type="checkbox"),e.space&&(e.type="space"),e.type||(e.type="normal"),"normal"!==e.type&&(e.unresize=!0,e.width=e.width||i[e.type])},j.prototype.setInit=function(e){var t=this,i=t.config;return i.clientWidth=i.width||function(){var e=function(t){var a,l;t=t||i.elem.parent(),a=t.width();try{l="none"===t.css("display")}catch(n){}return!t[0]||a&&!l?a:e(t.parent())};return e()}(),"width"===e?i.clientWidth:void layui.each(i.cols,function(e,a){layui.each(a,function(l,n){if(!n)return void a.splice(l,1);if(n.key=e+"-"+l,n.hide=n.hide||!1,n.colGroup||n.colspan>1){var o=0;layui.each(i.cols[e+1],function(t,i){i.HAS_PARENT||o>1&&o==n.colspan||(i.HAS_PARENT=!0,i.parentKey=e+"-"+l,o+=parseInt(i.colspan>1?i.colspan:1))}),n.colGroup=!0}t.initOpts(n)})})},j.prototype.renderToolbar=function(){var e=this,a=e.config,l=['<div class="layui-inline" lay-event="add"><i class="layui-icon layui-icon-add-1"></i></div>','<div class="layui-inline" lay-event="update"><i class="layui-icon layui-icon-edit"></i></div>','<div class="layui-inline" lay-event="delete"><i class="layui-icon layui-icon-delete"></i></div>'].join(""),n=e.layTool.find(".layui-table-tool-temp");if("default"===a.toolbar)n.html(l);else if(a.toolbar){var o=t(a.toolbar).html()||"";o&&n.html(i(o).render(a))}var r={filter:{title:"筛选列",layEvent:"LAYTABLE_COLS",icon:"layui-icon-cols"},exports:{title:"导出",layEvent:"LAYTABLE_EXPORT",icon:"layui-icon-export"},print:{title:"打印",layEvent:"LAYTABLE_PRINT",icon:"layui-icon-print"}},d=[];"object"==typeof a.defaultToolbar&&layui.each(a.defaultToolbar,function(e,t){var i=r[t];i&&d.push('<div class="layui-inline" title="'+i.title+'" lay-event="'+i.layEvent+'"><i class="layui-icon '+i.icon+'"></i></div>')}),e.layTool.find(".layui-table-tool-self").html(d.join(""))},j.prototype.setParentCol=function(e,t){var i=this,a=i.config,l=i.layHeader.find('th[data-key="'+a.index+"-"+t+'"]'),n=parseInt(l.attr("colspan"))||0;if(l[0]){var o=t.split("-"),r=a.cols[o[0]][o[1]];e?n--:n++,l.attr("colspan",n),l[n<1?"addClass":"removeClass"](y),r.colspan=n,r.hide=n<1;var d=l.data("parentkey");d&&i.setParentCol(e,d)}},j.prototype.setColsPatch=function(){var e=this,t=e.config;layui.each(t.cols,function(t,i){layui.each(i,function(t,i){i.hide&&e.setParentCol(i.hide,i.parentKey)})})},j.prototype.setColsWidth=function(){var e=this,t=e.config,i=0,a=0,l=0,n=0,o=e.setInit("width");e.eachCols(function(e,t){t.hide||i++}),o=o-function(){return"line"===t.skin||"nob"===t.skin?2:i+1}()-e.getScrollWidth(e.layMain[0])-1;var r=function(e){layui.each(t.cols,function(i,r){layui.each(r,function(i,d){var c=0,s=d.minWidth||t.cellMinWidth;return d?void(d.colGroup||d.hide||(e?l&&l<s&&(a--,c=s):(c=d.width||0,/\d+%$/.test(c)?(c=Math.floor(parseFloat(c)/100*o),c<s&&(c=s)):c||(d.width=c=0,a++)),d.hide&&(c=0),n+=c)):void r.splice(i,1)})}),o>n&&a&&(l=(o-n)/a)};r(),r(!0),e.autoColNums=a,e.eachCols(function(i,a){var n=a.minWidth||t.cellMinWidth;a.colGroup||a.hide||(0===a.width?e.getCssRule(t.index+"-"+a.key,function(e){e.style.width=Math.floor(l>=n?l:n)+"px"}):/\d+%$/.test(a.width)&&e.getCssRule(t.index+"-"+a.key,function(e){e.style.width=Math.floor(parseFloat(a.width)/100*o)+"px"}))});var d=e.layMain.width()-e.getScrollWidth(e.layMain[0])-e.layMain.children("table").outerWidth();if(e.autoColNums&&d>=-i&&d<=i){var c=function(t){var i;return t=t||e.layHeader.eq(0).find("thead th:last-child"),i=t.data("field"),!i&&t.prev()[0]?c(t.prev()):t},s=c(),u=s.data("key");e.getCssRule(u,function(t){var i=t.style.width||s.outerWidth();t.style.width=parseFloat(i)+d+"px",e.layMain.height()-e.layMain.prop("clientHeight")>0&&(t.style.width=parseFloat(t.style.width)-1+"px")})}e.loading(!0)},j.prototype.reload=function(e){var i=this;i.config.data&&i.config.data.constructor===Array&&delete i.config.data,i.config=t.extend({},i.config,e),i.render()},j.prototype.page=1,j.prototype.pullData=function(e){var i=this,a=i.config,l=a.request,n=a.response,o=function(){"object"==typeof a.initSort&&i.sort(a.initSort.field,a.initSort.type)};if(i.startTime=(new Date).getTime(),a.url){var r={};r[l.pageName]=e,r[l.limitName]=a.limit;var d=t.extend(r,a.where);a.contentType&&0==a.contentType.indexOf("application/json")&&(d=JSON.stringify(d)),t.ajax({type:a.method||"get",url:a.url,contentType:a.contentType,data:d,dataType:"json",headers:a.headers||{},success:function(t){"function"==typeof a.parseData&&(t=a.parseData(t)||t),t[n.statusName]!=n.statusCode?(i.renderForm(),i.layMain.html('<div class="'+h+'">'+(t[n.msgName]||"返回的数据不符合规范,正确的成功状态码 ("+n.statusName+") 应为:"+n.statusCode)+"</div>")):(i.renderData(t,e,t[n.countName]),o(),a.time=(new Date).getTime()-i.startTime+" ms"),i.setColsWidth(),"function"==typeof a.done&&a.done(t,e,t[n.countName])},error:function(e,t){i.layMain.html('<div class="'+h+'">数据接口请求异常:'+t+"</div>"),i.renderForm(),i.setColsWidth()}})}else if(a.data&&a.data.constructor===Array){var c={},s=e*a.limit-a.limit;c[n.dataName]=a.data.concat().splice(s,a.limit),c[n.countName]=a.data.length,i.renderData(c,e,a.data.length),o(),i.setColsWidth(),"function"==typeof a.done&&a.done(c,e,c[n.countName])}},j.prototype.eachCols=function(e){var t=this;return d.eachCols(null,e,t.config.cols),t},j.prototype.renderData=function(e,n,o,r){var c=this,s=c.config,u=e[s.response.dataName]||[],f=[],p=[],v=[],m=function(){var e;return!r&&c.sortKey?c.sort(c.sortKey.field,c.sortKey.sort,!0):(layui.each(u,function(a,l){var o=[],u=[],h=[],m=a+s.limit*(n-1)+1;0!==l.length&&(r||(l[d.config.indexName]=a),c.eachCols(function(n,r){var c=r.field||n,f=s.index+"-"+r.key,p=l[c];if(void 0!==p&&null!==p||(p=""),!r.colGroup){var v=['<td data-field="'+c+'" data-key="'+f+'" '+function(){var e=[];return r.edit&&e.push('data-edit="'+r.edit+'"'),r.align&&e.push('align="'+r.align+'"'),r.templet&&e.push('data-content="'+p+'"'),r.toolbar&&e.push('data-off="true"'),r.event&&e.push('lay-event="'+r.event+'"'),r.style&&e.push('style="'+r.style+'"'),r.minWidth&&e.push('data-minwidth="'+r.minWidth+'"'),e.join(" ")}()+' class="'+function(){var e=[];return r.hide&&e.push(y),r.field||e.push("layui-table-col-special"),e.join(" ")}()+'">','<div class="layui-table-cell laytable-cell-'+function(){return"normal"===r.type?f:f+" laytable-cell-"+r.type}()+'">'+function(){var n=t.extend(!0,{LAY_INDEX:m},l),o=d.config.checkName;switch(r.type){case"checkbox":return'<input type="checkbox" name="layTableCheckbox" lay-skin="primary" '+function(){return r[o]?(l[o]=r[o],r[o]?"checked":""):n[o]?"checked":""}()+">";case"radio":return n[o]&&(e=a),'<input type="radio" name="layTableRadio_'+s.index+'" '+(n[o]?"checked":"")+' lay-type="layTableRadio">';case"numbers":return m}return r.toolbar?i(t(r.toolbar).html()||"").render(n):r.templet?function(){return"function"==typeof r.templet?r.templet(n):i(t(r.templet).html()||String(p)).render(n)}():p}(),"</div></td>"].join("");o.push(v),r.fixed&&"right"!==r.fixed&&u.push(v),"right"===r.fixed&&h.push(v)}}),f.push('<tr data-index="'+a+'">'+o.join("")+"</tr>"),p.push('<tr data-index="'+a+'">'+u.join("")+"</tr>"),v.push('<tr data-index="'+a+'">'+h.join("")+"</tr>"))}),c.layBody.scrollTop(0),c.layMain.find("."+h).remove(),c.layMain.find("tbody").html(f.join("")),c.layFixLeft.find("tbody").html(p.join("")),c.layFixRight.find("tbody").html(v.join("")),c.renderForm(),"number"==typeof e&&c.setThisRowChecked(e),c.syncCheckAll(),c.scrollPatch(),l.close(c.tipsIndex),s.HAS_SET_COLS_PATCH||c.setColsPatch(),void(s.HAS_SET_COLS_PATCH=!0))};return c.key=s.id||s.index,d.cache[c.key]=u,c.layPage[0==o||0===u.length&&1==n?"addClass":"removeClass"](y),r?m():0===u.length?(c.renderForm(),c.layFixed.remove(),c.layMain.find("tbody").html(""),c.layMain.find("."+h).remove(),c.layMain.append('<div class="'+h+'">'+s.text.none+"</div>")):(m(),c.renderTotal(u),void(s.page&&(s.page=t.extend({elem:"layui-table-page"+s.index,count:o,limit:s.limit,limits:s.limits||[10,20,30,40,50,60,70,80,90],groups:3,layout:["prev","page","next","skip","count","limit"],prev:'<i class="layui-icon"></i>',next:'<i class="layui-icon"></i>',jump:function(e,t){t||(c.page=e.curr,s.limit=e.limit,c.loading(),c.pullData(e.curr))}},s.page),s.page.count=o,a.render(s.page))))},j.prototype.renderTotal=function(e){var t=this,i=t.config,a={};if(i.totalRow){layui.each(e,function(e,i){0!==i.length&&t.eachCols(function(e,t){var l=t.field||e,n=i[l];t.totalRow&&(a[l]=(a[l]||0)+(parseFloat(n)||0))})});var l=[];t.eachCols(function(e,t){var n=t.field||e;if(!t.hide){var o=['<td data-field="'+n+'" data-key="'+t.key+'" '+function(){var e=[];return t.align&&e.push('align="'+t.align+'"'),t.style&&e.push('style="'+t.style+'"'),t.minWidth&&e.push('data-minwidth="'+t.minWidth+'"'),e.join(" ")}()+">",'<div class="layui-table-cell laytable-cell-'+function(){var e=i.index+"-"+t.key;return"normal"===t.type?e:e+" laytable-cell-"+t.type}()+'">'+function(){var e=t.totalRowText||"";return t.totalRow?a[n]||e:e}(),"</div></td>"].join("");l.push(o)}}),t.layTotal.find("tbody").html("<tr>"+l.join("")+"</tr>")}},j.prototype.getColElem=function(e,t){var i=this,a=i.config;return e.eq(0).find(".laytable-cell-"+(a.index+"-"+t)+":eq(0)")},j.prototype.renderForm=function(e){n.render(e,"LAY-table-"+this.index)},j.prototype.setThisRowChecked=function(e){var t=this,i=(t.config,"layui-table-click"),a=t.layBody.find('tr[data-index="'+e+'"]');a.addClass(i).siblings("tr").removeClass(i)},j.prototype.sort=function(e,i,a,l){var n,r,c=this,u={},y=c.config,h=y.elem.attr("lay-filter"),f=d.cache[c.key];"string"==typeof e&&c.layHeader.find("th").each(function(i,a){var l=t(this),o=l.data("field");if(o===e)return e=l,n=o,!1});try{var n=n||e.data("field"),p=e.data("key");if(c.sortKey&&!a&&n===c.sortKey.field&&i===c.sortKey.sort)return;var v=c.layHeader.find("th .laytable-cell-"+p).find(L);c.layHeader.find("th").find(L).removeAttr("lay-sort"),v.attr("lay-sort",i||null),c.layFixed.find("th")}catch(m){return o.error("Table modules: Did not match to field")}c.sortKey={field:n,sort:i},"asc"===i?r=layui.sort(f,n):"desc"===i?r=layui.sort(f,n,!0):(r=layui.sort(f,d.config.indexName),delete c.sortKey),u[y.response.dataName]=r,c.renderData(u,c.page,c.count,!0),l&&layui.event.call(e,s,"sort("+h+")",{field:n,type:i})},j.prototype.loading=function(e){var i=this,a=i.config;a.loading&&(e?(i.layInit&&i.layInit.remove(),delete i.layInit,i.layBox.find(m).remove()):(i.layInit=t(['<div class="layui-table-init">','<i class="layui-icon layui-icon-loading layui-icon"></i>',"</div>"].join("")),i.layBox.append(i.layInit)))},j.prototype.setCheckData=function(e,t){var i=this,a=i.config,l=d.cache[i.key];l[e]&&l[e].constructor!==Array&&(l[e][a.checkName]=t)},j.prototype.syncCheckAll=function(){var e=this,t=e.config,i=e.layHeader.find('input[name="layTableCheckbox"]'),a=function(i){return e.eachCols(function(e,a){"checkbox"===a.type&&(a[t.checkName]=i)}),i};i[0]&&(d.checkStatus(e.key).isAll?(i[0].checked||(i.prop("checked",!0),e.renderForm("checkbox")),a(!0)):(i[0].checked&&(i.prop("checked",!1),e.renderForm("checkbox")),a(!1)))},j.prototype.getCssRule=function(e,t){var i=this,a=i.elem.find("style")[0],l=a.sheet||a.styleSheet||{},n=l.cssRules||l.rules;layui.each(n,function(i,a){if(a.selectorText===".laytable-cell-"+e)return t(a),!0})},j.prototype.fullSize=function(){var e,t=this,i=t.config,a=i.height;t.fullHeightGap&&(a=R.height()-t.fullHeightGap,a<135&&(a=135),t.elem.css("height",a)),a&&(e=parseFloat(a)-(t.layHeader.outerHeight()||38),i.toolbar&&(e-=t.layTool.outerHeight()||50),i.totalRow&&(e-=t.layTotal.outerHeight()||40),i.page&&(e=e-(t.layPage.outerHeight()||41)-2),t.layMain.css("height",e))},j.prototype.getScrollWidth=function(e){var t=0;return e?t=e.offsetWidth-e.clientWidth:(e=document.createElement("div"),e.style.width="100px",e.style.height="100px",e.style.overflowY="scroll",document.body.appendChild(e),t=e.offsetWidth-e.clientWidth,document.body.removeChild(e)),t},j.prototype.scrollPatch=function(){var e=this,i=e.layMain.children("table"),a=e.layMain.width()-e.layMain.prop("clientWidth"),l=e.layMain.height()-e.layMain.prop("clientHeight"),n=(e.getScrollWidth(e.layMain[0]),i.outerWidth()-e.layMain.width()),o=function(e){if(a&&l){if(e=e.eq(0),!e.find(".layui-table-patch")[0]){var i=t('<th class="layui-table-patch"><div class="layui-table-cell"></div></th>');i.find("div").css({width:a}),e.find("tr").append(i)}}else e.find(".layui-table-patch").remove()};o(e.layHeader),o(e.layTotal);var r=e.layMain.height(),d=r-l;e.layFixed.find(b).css("height",i.height()>d?d:"auto"),e.layFixRight[n>0?"removeClass":"addClass"](y),e.layFixRight.css("right",a-1)},j.prototype.events=function(){var e,a=this,o=a.config,c=t("body"),u={},h=a.layHeader.find("th"),f=".layui-table-cell",p=o.elem.attr("lay-filter");a.layTool.on("click","*[lay-event]",function(e){var i=t(this),c=i.attr("lay-event"),u=function(e){var l=t(e.list),n=t('<ul class="layui-table-tool-panel"></ul>');n.html(l),i.find(".layui-table-tool-panel")[0]||i.append(n),a.renderForm(),n.on("click",function(e){layui.stope(e)}),e.done&&e.done(n,l)};switch(layui.stope(e),H.trigger("table.tool.panel.remove"),l.close(a.tipsIndex),c){case"LAYTABLE_COLS":u({list:function(){var e=[];return a.eachCols(function(t,i){i.field&&"normal"==i.type&&e.push('<li><input type="checkbox" name="'+i.field+'" data-key="'+i.key+'" data-parentkey="'+(i.parentKey||"")+'" lay-skin="primary" '+(i.hide?"":"checked")+' title="'+(i.title||i.field)+'" lay-filter="LAY_TABLE_TOOL_COLS"></li>')}),e.join("")}(),done:function(){n.on("checkbox(LAY_TABLE_TOOL_COLS)",function(e){var i=t(e.elem),l=this.checked,n=i.data("key"),r=i.data("parentkey");layui.each(o.cols,function(e,t){layui.each(t,function(t,i){if(e+"-"+t===n){var d=i.hide;i.hide=!l,a.elem.find('*[data-key="'+o.index+"-"+n+'"]')[l?"removeClass":"addClass"](y),d!=i.hide&&a.setParentCol(!l,r),a.fullSize(),a.scrollPatch(),a.setColsWidth()}})})})}});break;case"LAYTABLE_EXPORT":r.ie?l.tips("导出功能不支持 IE,请用 Chrome 等高级浏览器导出",this,{tips:3}):u({list:function(){return['<li data-type="csv">导出到 Csv 文件</li>','<li data-type="xls">导出到 Excel 文件</li>'].join("")}(),done:function(e,i){i.on("click",function(){var e=t(this).data("type");d.exportFile(o.id,null,e)})}});break;case"LAYTABLE_PRINT":var h=window.open("打印窗口","_blank"),f=["<style>","body{font-size: 12px; color: #666;}","table{width: 100%; border-collapse: collapse; border-spacing: 0;}","th,td{line-height: 20px; padding: 9px 15px; border: 1px solid #ccc; text-align: left; font-size: 12px; color: #666;}","a{color: #666; text-decoration:none;}","*.layui-hide{display: none}","</style>"].join(""),v=t(a.layHeader.html());v.append(a.layMain.find("table").html()),v.find("th.layui-table-patch").remove(),v.find(".layui-table-col-special").remove(),h.document.write(f+v.prop("outerHTML")),h.document.close(),h.print(),h.close()}layui.event.call(this,s,"toolbar("+p+")",t.extend({event:c,config:o},{}))}),h.on("mousemove",function(e){var i=t(this),a=i.offset().left,l=e.clientX-a;i.data("unresize")||u.resizeStart||(u.allowResize=i.width()-l<=10,c.css("cursor",u.allowResize?"col-resize":""))}).on("mouseleave",function(){t(this);u.resizeStart||c.css("cursor","")}).on("mousedown",function(e){var i=t(this);if(u.allowResize){var l=i.data("key");e.preventDefault(),u.resizeStart=!0,u.offset=[e.clientX,e.clientY],a.getCssRule(l,function(e){var t=e.style.width||i.outerWidth();u.rule=e,u.ruleWidth=parseFloat(t),u.minWidth=i.data("minwidth")||o.cellMinWidth})}}),H.on("mousemove",function(t){if(u.resizeStart){if(t.preventDefault(),u.rule){var i=u.ruleWidth+t.clientX-u.offset[0];i<u.minWidth&&(i=u.minWidth),u.rule.style.width=i+"px",l.close(a.tipsIndex)}e=1}}).on("mouseup",function(t){u.resizeStart&&(u={},c.css("cursor",""),a.scrollPatch()),2===e&&(e=null)}),h.on("click",function(i){var l,n=t(this),o=n.find(L),r=o.attr("lay-sort");return o[0]&&1!==e?(l="asc"===r?"desc":"desc"===r?null:"asc",void a.sort(n,l,null,!0)):e=2}).find(L+" .layui-edge ").on("click",function(e){var i=t(this),l=i.index(),n=i.parents("th").eq(0).data("field");layui.stope(e),0===l?a.sort(n,"asc",null,!0):a.sort(n,"desc",null,!0)});var v=function(e){var l=t(this),n=l.parents("tr").eq(0).data("index"),o=a.layBody.find('tr[data-index="'+n+'"]'),r=d.cache[a.key][n];return t.extend({tr:o,data:d.clearCacheKey(r),del:function(){d.cache[a.key][n]=[],o.remove(),a.scrollPatch()},update:function(e){e=e||{},layui.each(e,function(e,l){if(e in r){var n,d=o.children('td[data-field="'+e+'"]');r[e]=l,a.eachCols(function(t,i){i.field==e&&i.templet&&(n=i.templet)}),d.children(f).html(function(){return n?function(){return"function"==typeof n?n(r):i(t(n).html()||l).render(r)}():l}()),d.data("content",l)}})}},e)};a.elem.on("click",'input[name="layTableCheckbox"]+',function(){var e=t(this).prev(),i=a.layBody.find('input[name="layTableCheckbox"]'),l=e.parents("tr").eq(0).data("index"),n=e[0].checked,o="layTableAllChoose"===e.attr("lay-filter");o?(i.each(function(e,t){t.checked=n,a.setCheckData(e,n)}),a.syncCheckAll(),a.renderForm("checkbox")):(a.setCheckData(l,n),a.syncCheckAll()),layui.event.call(this,s,"checkbox("+p+")",v.call(this,{checked:n,type:o?"all":"one"}))}),a.elem.on("click",'input[lay-type="layTableRadio"]+',function(){var e=t(this).prev(),i=e[0].checked,l=d.cache[a.key],n=e.parents("tr").eq(0).data("index");layui.each(l,function(e,t){n===e?t.LAY_CHECKED=!0:delete t.LAY_CHECKED}),a.setThisRowChecked(n),layui.event.call(this,s,"radio("+p+")",v.call(this,{checked:i}))}),a.layBody.on("mouseenter","tr",function(){var e=t(this),i=e.index();a.layBody.find("tr:eq("+i+")").addClass(N)}).on("mouseleave","tr",function(){var e=t(this),i=e.index();a.layBody.find("tr:eq("+i+")").removeClass(N)}).on("click","tr",function(){m.call(this,"row")}).on("dblclick","tr",function(){m.call(this,"rowDouble")});var m=function(e){var i=t(this);layui.event.call(this,s,e+"("+p+")",v.call(i.children("td")[0]))};a.layBody.on("change","."+S,function(){var e=t(this),i=this.value,l=e.parent().data("field"),n=e.parents("tr").eq(0).data("index"),o=d.cache[a.key][n];o[l]=i,layui.event.call(this,s,"edit("+p+")",v.call(this,{value:i,field:l}))}).on("blur","."+S,function(){var e,l=t(this),n=l.parent().data("field"),o=l.parents("tr").eq(0).data("index"),r=d.cache[a.key][o];a.eachCols(function(t,i){i.field==n&&i.templet&&(e=i.templet)}),l.siblings(f).html(function(a){return e?function(){return"function"==typeof e?e(r):i(t(e).html()||this.value).render(r)}():a}(this.value)),l.parent().data("content",this.value),l.remove()}),a.layBody.on("click","td",function(){var e=t(this),i=(e.data("field"),e.data("edit")),a=e.children(f);if(!e.data("off")&&i){var l=t('<input class="layui-input '+S+'">');return l[0].value=e.data("content")||a.text(),e.find("."+S)[0]||e.append(l),void l.focus()}}).on("mouseenter","td",function(){x.call(this)}).on("mouseleave","td",function(){x.call(this,"hide")});var g="layui-table-grid-down",x=function(e){var i=t(this),a=i.children(f);if(e)i.find(".layui-table-grid-down").remove();else if(a.prop("scrollWidth")>a.outerWidth()){if(a.find("."+g)[0])return;i.append('<div class="'+g+'"><i class="layui-icon layui-icon-down"></i></div>')}};a.layBody.on("click","."+g,function(){var e=t(this),i=e.parent(),n=i.children(f);a.tipsIndex=l.tips(['<div class="layui-table-tips-main" style="margin-top: -'+(n.height()+16)+"px;"+function(){return"sm"===o.size?"padding: 4px 15px; font-size: 12px;":"lg"===o.size?"padding: 14px 15px;":""}()+'">',n.html(),"</div>",'<i class="layui-icon layui-table-tips-c layui-icon-close"></i>'].join(""),n[0],{tips:[3,""],time:-1,anim:-1,maxWidth:r.ios||r.android?300:a.elem.width()/2,isOutAnim:!1,skin:"layui-table-tips",success:function(e,t){e.find(".layui-table-tips-c").on("click",function(){l.close(t)})}})}),a.layBody.on("click","*[lay-event]",function(){var e=t(this),i=e.parents("tr").eq(0).data("index");layui.event.call(this,s,"tool("+p+")",v.call(this,{event:e.attr("lay-event")})),a.setThisRowChecked(i)}),a.layMain.on("scroll",function(){var e=t(this),i=e.scrollLeft(),n=e.scrollTop();a.layHeader.scrollLeft(i),a.layTotal.scrollLeft(i),a.layFixed.find(b).scrollTop(n),l.close(a.tipsIndex)}),H.on("click",function(){H.trigger("table.remove.tool.panel")}),H.on("table.remove.tool.panel",function(){t(".layui-table-tool-panel").remove()}),R.on("resize",function(){a.fullSize(),a.scrollPatch(),a.setColsWidth()})},d.init=function(e,i){i=i||{};var a=this,l=t(e?'table[lay-filter="'+e+'"]':u+"[lay-data]"),n="Table element property lay-data configuration item has a syntax error: ";return l.each(function(){var a=t(this),l=a.attr("lay-data");try{l=new Function("return "+l)()}catch(r){o.error(n+l)}var c=[],s=t.extend({elem:this,cols:[],data:[],skin:a.attr("lay-skin"),size:a.attr("lay-size"),even:"string"==typeof a.attr("lay-even")},d.config,i,l);e&&a.hide(),a.find("thead>tr").each(function(e){s.cols[e]=[],t(this).children().each(function(i){var a=t(this),l=a.attr("lay-data");try{l=new Function("return "+l)()}catch(r){return o.error(n+l)}var d=t.extend({title:a.text(),colspan:a.attr("colspan")||0,rowspan:a.attr("rowspan")||0},l);d.colspan<2&&c.push(d),s.cols[e].push(d)})}),a.find("tbody>tr").each(function(e){var i=t(this),a={};i.children("td").each(function(e,i){var l=t(this),n=l.data("field");if(n)return a[n]=l.html()}),layui.each(c,function(e,t){var l=i.children("td").eq(e);a[t.field]=l.html()}),s.data[e]=a}),d.render(s)}),a},c.config={},d.eachCols=function(e,i,a){var l=c.config[e]||{},n=[],o=0;a=t.extend(!0,[],a||l.cols),layui.each(a,function(e,t){layui.each(t,function(t,i){if(i.colGroup){var l=0;o++,i.CHILD_COLS=[],layui.each(a[e+1],function(e,t){t.PARENT_COL_INDEX||l>1&&l==i.colspan||(t.PARENT_COL_INDEX=o,i.CHILD_COLS.push(t),l+=parseInt(t.colspan>1?t.colspan:1))})}i.PARENT_COL_INDEX||n.push(i)})});var r=function(e){layui.each(e||n,function(e,t){return t.CHILD_COLS?r(t.CHILD_COLS):void("function"==typeof i&&i(e,t))})};r()},d.checkStatus=function(e){var t=0,i=0,a=[],l=d.cache[e]||[];return layui.each(l,function(e,l){return l.constructor===Array?void i++:void(l[d.config.checkName]&&(t++,a.push(d.clearCacheKey(l))))}),{data:a,isAll:!!l.length&&t===l.length-i}},d.exportFile=function(e,t,i){t=t||d.clearCacheKey(d.cache[e]),i=i||"csv";var a=c.config[e]||{},l={csv:"text/csv",xls:"application/vnd.ms-excel"}[i],n=document.createElement("a");return r.ie?o.error("IE_NOT_SUPPORT_EXPORTS"):(n.href="data:"+l+";charset=utf-8,\ufeff"+encodeURIComponent(function(){var i=[],a=[];return layui.each(t,function(t,l){var n=[];"object"==typeof e?(layui.each(e,function(e,a){0==t&&i.push(a||"")}),layui.each(d.clearCacheKey(l),function(e,t){n.push(t)})):d.eachCols(e,function(e,a){a.field&&"normal"==a.type&&!a.hide&&(0==t&&i.push(a.title||""),n.push(l[a.field]))}),a.push(n.join(","))}),i.join(",")+"\r\n"+a.join("\r\n")}()),n.download=(a.title||"table_"+(a.index||""))+"."+i,document.body.appendChild(n),n.click(),void document.body.removeChild(n))},d.reload=function(e,i){var a=c.config[e];return i=i||{},a?(i.data&&i.data.constructor===Array&&delete a.data,d.render(t.extend(!0,{},a,i))):o.error("The ID option was not found in the table instance")},d.render=function(e){var t=new j(e);return c.call(t)},d.clearCacheKey=function(e){return e=t.extend({},e),delete e[d.config.checkName],delete e[d.config.indexName],e},d.init(),e(s,d)});layui.define("jquery",function(e){"use strict";var i=layui.$,n=(layui.hint(),layui.device(),{config:{},set:function(e){var n=this;return n.config=i.extend({},n.config,e),n},on:function(e,i){return layui.onevent.call(this,t,e,i)}}),t="carousel",a="layui-this",l=">*[carousel-item]>*",o="layui-carousel-left",r="layui-carousel-right",d="layui-carousel-prev",s="layui-carousel-next",u="layui-carousel-arrow",c="layui-carousel-ind",m=function(e){var t=this;t.config=i.extend({},t.config,n.config,e),t.render()};m.prototype.config={width:"600px",height:"280px",full:!1,arrow:"hover",indicator:"inside",autoplay:!0,interval:3e3,anim:"",trigger:"click",index:0},m.prototype.render=function(){var e=this,n=e.config;n.elem=i(n.elem),n.elem[0]&&(e.elemItem=n.elem.find(l),n.index<0&&(n.index=0),n.index>=e.elemItem.length&&(n.index=e.elemItem.length-1),n.interval<800&&(n.interval=800),n.full?n.elem.css({position:"fixed",width:"100%",height:"100%",zIndex:9999}):n.elem.css({width:n.width,height:n.height}),n.elem.attr("lay-anim",n.anim),e.elemItem.eq(n.index).addClass(a),e.elemItem.length<=1||(e.indicator(),e.arrow(),e.autoplay(),e.events()))},m.prototype.reload=function(e){var n=this;clearInterval(n.timer),n.config=i.extend({},n.config,e),n.render()},m.prototype.prevIndex=function(){var e=this,i=e.config,n=i.index-1;return n<0&&(n=e.elemItem.length-1),n},m.prototype.nextIndex=function(){var e=this,i=e.config,n=i.index+1;return n>=e.elemItem.length&&(n=0),n},m.prototype.addIndex=function(e){var i=this,n=i.config;e=e||1,n.index=n.index+e,n.index>=i.elemItem.length&&(n.index=0)},m.prototype.subIndex=function(e){var i=this,n=i.config;e=e||1,n.index=n.index-e,n.index<0&&(n.index=i.elemItem.length-1)},m.prototype.autoplay=function(){var e=this,i=e.config;i.autoplay&&(e.timer=setInterval(function(){e.slide()},i.interval))},m.prototype.arrow=function(){var e=this,n=e.config,t=i(['<button class="layui-icon '+u+'" lay-type="sub">'+("updown"===n.anim?"":"")+"</button>",'<button class="layui-icon '+u+'" lay-type="add">'+("updown"===n.anim?"":"")+"</button>"].join(""));n.elem.attr("lay-arrow",n.arrow),n.elem.find("."+u)[0]&&n.elem.find("."+u).remove(),n.elem.append(t),t.on("click",function(){var n=i(this),t=n.attr("lay-type");e.slide(t)})},m.prototype.indicator=function(){var e=this,n=e.config,t=e.elemInd=i(['<div class="'+c+'"><ul>',function(){var i=[];return layui.each(e.elemItem,function(e){i.push("<li"+(n.index===e?' class="layui-this"':"")+"></li>")}),i.join("")}(),"</ul></div>"].join(""));n.elem.attr("lay-indicator",n.indicator),n.elem.find("."+c)[0]&&n.elem.find("."+c).remove(),n.elem.append(t),"updown"===n.anim&&t.css("margin-top",-(t.height()/2)),t.find("li").on("hover"===n.trigger?"mouseover":n.trigger,function(){var t=i(this),a=t.index();a>n.index?e.slide("add",a-n.index):a<n.index&&e.slide("sub",n.index-a)})},m.prototype.slide=function(e,i){var n=this,l=n.elemItem,u=n.config,c=u.index,m=u.elem.attr("lay-filter");n.haveSlide||("sub"===e?(n.subIndex(i),l.eq(u.index).addClass(d),setTimeout(function(){l.eq(c).addClass(r),l.eq(u.index).addClass(r)},50)):(n.addIndex(i),l.eq(u.index).addClass(s),setTimeout(function(){l.eq(c).addClass(o),l.eq(u.index).addClass(o)},50)),setTimeout(function(){l.removeClass(a+" "+d+" "+s+" "+o+" "+r),l.eq(u.index).addClass(a),n.haveSlide=!1},300),n.elemInd.find("li").eq(u.index).addClass(a).siblings().removeClass(a),n.haveSlide=!0,layui.event.call(this,t,"change("+m+")",{index:u.index,prevIndex:c,item:l.eq(u.index)}))},m.prototype.events=function(){var e=this,i=e.config;i.elem.data("haveEvents")||(i.elem.on("mouseenter",function(){clearInterval(e.timer)}).on("mouseleave",function(){e.autoplay()}),i.elem.data("haveEvents",!0))},n.render=function(e){var i=new m(e);return i},e(t,n)});layui.define("jquery",function(e){"use strict";var a=layui.jquery,i={config:{},index:layui.rate?layui.rate.index+1e4:0,set:function(e){var i=this;return i.config=a.extend({},i.config,e),i},on:function(e,a){return layui.onevent.call(this,n,e,a)}},l=function(){var e=this,a=e.config;return{setvalue:function(a){e.setvalue.call(e,a)},config:a}},n="rate",t="layui-rate",o="layui-icon-rate",s="layui-icon-rate-solid",u="layui-icon-rate-half",r="layui-icon-rate-solid layui-icon-rate-half",c="layui-icon-rate-solid layui-icon-rate",f="layui-icon-rate layui-icon-rate-half",v=function(e){var l=this;l.index=++i.index,l.config=a.extend({},l.config,i.config,e),l.render()};v.prototype.config={length:5,text:!1,readonly:!1,half:!1,value:0,theme:""},v.prototype.render=function(){var e=this,i=e.config,l=i.theme?'style="color: '+i.theme+';"':"";i.elem=a(i.elem),parseInt(i.value)!==i.value&&(i.half||(i.value=Math.ceil(i.value)-i.value<.5?Math.ceil(i.value):Math.floor(i.value)));for(var n='<ul class="layui-rate" '+(i.readonly?"readonly":"")+">",u=1;u<=i.length;u++){var r='<li class="layui-inline"><i class="layui-icon '+(u>Math.floor(i.value)?o:s)+'" '+l+"></i></li>";i.half&&parseInt(i.value)!==i.value&&u==Math.ceil(i.value)?n=n+'<li><i class="layui-icon layui-icon-rate-half" '+l+"></i></li>":n+=r}n+="</ul>"+(i.text?'<span class="layui-inline">'+i.value+"星":"")+"</span>";var c=i.elem,f=c.next("."+t);f[0]&&f.remove(),e.elemTemp=a(n),i.span=e.elemTemp.next("span"),i.setText&&i.setText(i.value),c.html(e.elemTemp),c.addClass("layui-inline"),i.readonly||e.action()},v.prototype.setvalue=function(e){var a=this,i=a.config;i.value=e,a.render()},v.prototype.action=function(){var e=this,i=e.config,l=e.elemTemp,n=l.find("i").width();l.children("li").each(function(e){var t=e+1,v=a(this);v.on("click",function(e){if(i.value=t,i.half){var o=e.pageX-a(this).offset().left;o<=n/2&&(i.value=i.value-.5)}i.text&&l.next("span").text(i.value+"星"),i.choose&&i.choose(i.value),i.setText&&i.setText(i.value)}),v.on("mousemove",function(e){if(l.find("i").each(function(){a(this).addClass(o).removeClass(r)}),l.find("i:lt("+t+")").each(function(){a(this).addClass(s).removeClass(f)}),i.half){var c=e.pageX-a(this).offset().left;c<=n/2&&v.children("i").addClass(u).removeClass(s)}}),v.on("mouseleave",function(){l.find("i").each(function(){a(this).addClass(o).removeClass(r)}),l.find("i:lt("+Math.floor(i.value)+")").each(function(){a(this).addClass(s).removeClass(f)}),i.half&&parseInt(i.value)!==i.value&&l.children("li:eq("+Math.floor(i.value)+")").children("i").addClass(u).removeClass(c)})})},v.prototype.events=function(){var e=this;e.config},i.render=function(e){var a=new v(e);return l.call(a)},e(n,i)});layui.define("jquery",function(t){"use strict";var e=layui.$,i={fixbar:function(t){var i,a,n="layui-fixbar",r="layui-fixbar-top",o=e(document),l=e("body");t=e.extend({showHeight:200},t),t.bar1=t.bar1===!0?"":t.bar1,t.bar2=t.bar2===!0?"":t.bar2,t.bgcolor=t.bgcolor?"background-color:"+t.bgcolor:"";var c=[t.bar1,t.bar2,""],g=e(['<ul class="'+n+'">',t.bar1?'<li class="layui-icon" lay-type="bar1" style="'+t.bgcolor+'">'+c[0]+"</li>":"",t.bar2?'<li class="layui-icon" lay-type="bar2" style="'+t.bgcolor+'">'+c[1]+"</li>":"",'<li class="layui-icon '+r+'" lay-type="top" style="'+t.bgcolor+'">'+c[2]+"</li>","</ul>"].join("")),s=g.find("."+r),u=function(){var e=o.scrollTop();e>=t.showHeight?i||(s.show(),i=1):i&&(s.hide(),i=0)};e("."+n)[0]||("object"==typeof t.css&&g.css(t.css),l.append(g),u(),g.find("li").on("click",function(){var i=e(this),a=i.attr("lay-type");"top"===a&&e("html,body").animate({scrollTop:0},200),t.click&&t.click.call(this,a)}),o.on("scroll",function(){clearTimeout(a),a=setTimeout(function(){u()},100)}))},countdown:function(t,e,i){var a=this,n="function"==typeof e,r=new Date(t).getTime(),o=new Date(!e||n?(new Date).getTime():e).getTime(),l=r-o,c=[Math.floor(l/864e5),Math.floor(l/36e5)%24,Math.floor(l/6e4)%60,Math.floor(l/1e3)%60];n&&(i=e);var g=setTimeout(function(){a.countdown(t,o+1e3,i)},1e3);return i&&i(l>0?c:[0,0,0,0],e,g),l<=0&&clearTimeout(g),g},timeAgo:function(t,e){var i=this,a=[[],[]],n=(new Date).getTime()-new Date(t).getTime();return n>6912e5?(n=new Date(t),a[0][0]=i.digit(n.getFullYear(),4),a[0][1]=i.digit(n.getMonth()+1),a[0][2]=i.digit(n.getDate()),e||(a[1][0]=i.digit(n.getHours()),a[1][1]=i.digit(n.getMinutes()),a[1][2]=i.digit(n.getSeconds())),a[0].join("-")+" "+a[1].join(":")):n>=864e5?(n/1e3/60/60/24|0)+"天前":n>=36e5?(n/1e3/60/60|0)+"小时前":n>=12e4?(n/1e3/60|0)+"分钟前":n<0?"未来":"刚刚"},digit:function(t,e){var i="";t=String(t),e=e||2;for(var a=t.length;a<e;a++)i+="0";return t<Math.pow(10,e)?i+(0|t):t},toDateString:function(t,e){var i=this,a=new Date(t||new Date),n=[i.digit(a.getFullYear(),4),i.digit(a.getMonth()+1),i.digit(a.getDate())],r=[i.digit(a.getHours()),i.digit(a.getMinutes()),i.digit(a.getSeconds())];return e=e||"yyyy-MM-dd HH:mm:ss",e.replace(/yyyy/g,n[0]).replace(/MM/g,n[1]).replace(/dd/g,n[2]).replace(/HH/g,r[0]).replace(/mm/g,r[1]).replace(/ss/g,r[2])},escape:function(t){return String(t||"").replace(/&(?!#?[a-zA-Z0-9]+;)/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/'/g,"'").replace(/"/g,""")}};!function(t,e,i){"$:nomunge";function a(){n=e[l](function(){r.each(function(){var e=t(this),i=e.width(),a=e.height(),n=t.data(this,g);(i!==n.w||a!==n.h)&&e.trigger(c,[n.w=i,n.h=a])}),a()},o[s])}var n,r=t([]),o=t.resize=t.extend(t.resize,{}),l="setTimeout",c="resize",g=c+"-special-event",s="delay",u="throttleWindow";o[s]=250,o[u]=!0,t.event.special[c]={setup:function(){if(!o[u]&&this[l])return!1;var e=t(this);r=r.add(e),t.data(this,g,{w:e.width(),h:e.height()}),1===r.length&&a()},teardown:function(){if(!o[u]&&this[l])return!1;var e=t(this);r=r.not(e),e.removeData(g),r.length||clearTimeout(n)},add:function(e){function a(e,a,r){var o=t(this),l=t.data(this,g)||{};l.w=a!==i?a:o.width(),l.h=r!==i?r:o.height(),n.apply(this,arguments)}if(!o[u]&&this[l])return!1;var n;return t.isFunction(e)?(n=e,a):(n=e.handler,void(e.handler=a))}}}(e,window),t("util",i)});layui.define("jquery",function(e){"use strict";var l=layui.$,o=function(e){},t='<i class="layui-anim layui-anim-rotate layui-anim-loop layui-icon "></i>';o.prototype.load=function(e){var o,i,n,r,a=this,c=0;e=e||{};var f=l(e.elem);if(f[0]){var m=l(e.scrollElem||document),u=e.mb||50,s=!("isAuto"in e)||e.isAuto,v=e.end||"没有更多了",y=e.scrollElem&&e.scrollElem!==document,d="<cite>加载更多</cite>",h=l('<div class="layui-flow-more"><a href="javascript:;">'+d+"</a></div>");f.find(".layui-flow-more")[0]||f.append(h);var p=function(e,t){e=l(e),h.before(e),t=0==t||null,t?h.html(v):h.find("a").html(d),i=t,o=null,n&&n()},g=function(){o=!0,h.find("a").html(t),"function"==typeof e.done&&e.done(++c,p)};if(g(),h.find("a").on("click",function(){l(this);i||o||g()}),e.isLazyimg)var n=a.lazyimg({elem:e.elem+" img",scrollElem:e.scrollElem});return s?(m.on("scroll",function(){var e=l(this),t=e.scrollTop();r&&clearTimeout(r),i||(r=setTimeout(function(){var i=y?e.height():l(window).height(),n=y?e.prop("scrollHeight"):document.documentElement.scrollHeight;n-t-i<=u&&(o||g())},100))}),a):a}},o.prototype.lazyimg=function(e){var o,t=this,i=0;e=e||{};var n=l(e.scrollElem||document),r=e.elem||"img",a=e.scrollElem&&e.scrollElem!==document,c=function(e,l){var o=n.scrollTop(),r=o+l,c=a?function(){return e.offset().top-n.offset().top+o}():e.offset().top;if(c>=o&&c<=r&&!e.attr("src")){var m=e.attr("lay-src");layui.img(m,function(){var l=t.lazyimg.elem.eq(i);e.attr("src",m).removeAttr("lay-src"),l[0]&&f(l),i++})}},f=function(e,o){var f=a?(o||n).height():l(window).height(),m=n.scrollTop(),u=m+f;if(t.lazyimg.elem=l(r),e)c(e,f);else for(var s=0;s<t.lazyimg.elem.length;s++){var v=t.lazyimg.elem.eq(s),y=a?function(){return v.offset().top-n.offset().top+m}():v.offset().top;if(c(v,f),i=s,y>u)break}};if(f(),!o){var m;n.on("scroll",function(){var e=l(this);m&&clearTimeout(m),m=setTimeout(function(){f(null,e)},50)}),o=!0}return f},e("flow",new o)});layui.define(["layer","form"],function(t){"use strict";var e=layui.$,i=layui.layer,a=layui.form,l=(layui.hint(),layui.device()),n="layedit",o="layui-show",r="layui-disabled",c=function(){var t=this;t.index=0,t.config={tool:["strong","italic","underline","del","|","left","center","right","|","link","unlink","face","image"],hideTool:[],height:280}};c.prototype.set=function(t){var i=this;return e.extend(!0,i.config,t),i},c.prototype.on=function(t,e){return layui.onevent(n,t,e)},c.prototype.build=function(t,i){i=i||{};var a=this,n=a.config,r="layui-layedit",c=e("string"==typeof t?"#"+t:t),u="LAY_layedit_"+ ++a.index,d=c.next("."+r),y=e.extend({},n,i),f=function(){var t=[],e={};return layui.each(y.hideTool,function(t,i){e[i]=!0}),layui.each(y.tool,function(i,a){C[a]&&!e[a]&&t.push(C[a])}),t.join("")}(),m=e(['<div class="'+r+'">','<div class="layui-unselect layui-layedit-tool">'+f+"</div>",'<div class="layui-layedit-iframe">','<iframe id="'+u+'" name="'+u+'" textarea="'+t+'" frameborder="0"></iframe>',"</div>","</div>"].join(""));return l.ie&&l.ie<8?c.removeClass("layui-hide").addClass(o):(d[0]&&d.remove(),s.call(a,m,c[0],y),c.addClass("layui-hide").after(m),a.index)},c.prototype.getContent=function(t){var e=u(t);if(e[0])return d(e[0].document.body.innerHTML)},c.prototype.getText=function(t){var i=u(t);if(i[0])return e(i[0].document.body).text()},c.prototype.setContent=function(t,i,a){var l=u(t);l[0]&&(a?e(l[0].document.body).append(i):e(l[0].document.body).html(i),layedit.sync(t))},c.prototype.sync=function(t){var i=u(t);if(i[0]){var a=e("#"+i[1].attr("textarea"));a.val(d(i[0].document.body.innerHTML))}},c.prototype.getSelection=function(t){var e=u(t);if(e[0]){var i=m(e[0].document);return document.selection?i.text:i.toString()}};var s=function(t,i,a){var l=this,n=t.find("iframe");n.css({height:a.height}).on("load",function(){var o=n.contents(),r=n.prop("contentWindow"),c=o.find("head"),s=e(["<style>","*{margin: 0; padding: 0;}","body{padding: 10px; line-height: 20px; overflow-x: hidden; word-wrap: break-word; font: 14px Helvetica Neue,Helvetica,PingFang SC,Microsoft YaHei,Tahoma,Arial,sans-serif; -webkit-box-sizing: border-box !important; -moz-box-sizing: border-box !important; box-sizing: border-box !important;}","a{color:#01AAED; text-decoration:none;}a:hover{color:#c00}","p{margin-bottom: 10px;}","img{display: inline-block; border: none; vertical-align: middle;}","pre{margin: 10px 0; padding: 10px; line-height: 20px; border: 1px solid #ddd; border-left-width: 6px; background-color: #F2F2F2; color: #333; font-family: Courier New; font-size: 12px;}","</style>"].join("")),u=o.find("body");c.append(s),u.attr("contenteditable","true").css({"min-height":a.height}).html(i.value||""),y.apply(l,[r,n,i,a]),g.call(l,r,t,a)})},u=function(t){var i=e("#LAY_layedit_"+t),a=i.prop("contentWindow");return[a,i]},d=function(t){return 8==l.ie&&(t=t.replace(/<.+>/g,function(t){return t.toLowerCase()})),t},y=function(t,a,n,o){var r=t.document,c=e(r.body);c.on("keydown",function(t){var e=t.keyCode;if(13===e){var a=m(r),l=p(a),n=l.parentNode;if("pre"===n.tagName.toLowerCase()){if(t.shiftKey)return;return i.msg("请暂时用shift+enter"),!1}r.execCommand("formatBlock",!1,"<p>")}}),e(n).parents("form").on("submit",function(){var t=c.html();8==l.ie&&(t=t.replace(/<.+>/g,function(t){return t.toLowerCase()})),n.value=t}),c.on("paste",function(e){r.execCommand("formatBlock",!1,"<p>"),setTimeout(function(){f.call(t,c),n.value=c.html()},100)})},f=function(t){var i=this;i.document;t.find("*[style]").each(function(){var t=this.style.textAlign;this.removeAttribute("style"),e(this).css({"text-align":t||""})}),t.find("table").addClass("layui-table"),t.find("script,link").remove()},m=function(t){return t.selection?t.selection.createRange():t.getSelection().getRangeAt(0)},p=function(t){return t.endContainer||t.parentElement().childNodes[0]},v=function(t,i,a){var l=this.document,n=document.createElement(t);for(var o in i)n.setAttribute(o,i[o]);if(n.removeAttribute("text"),l.selection){var r=a.text||i.text;if("a"===t&&!r)return;r&&(n.innerHTML=r),a.pasteHTML(e(n).prop("outerHTML")),a.select()}else{var r=a.toString()||i.text;if("a"===t&&!r)return;r&&(n.innerHTML=r),a.deleteContents(),a.insertNode(n)}},h=function(t,i){var a=this.document,l="layedit-tool-active",n=p(m(a)),o=function(e){return t.find(".layedit-tool-"+e)};i&&i[i.hasClass(l)?"removeClass":"addClass"](l),t.find(">i").removeClass(l),o("unlink").addClass(r),e(n).parents().each(function(){var t=this.tagName.toLowerCase(),e=this.style.textAlign;"b"!==t&&"strong"!==t||o("b").addClass(l),"i"!==t&&"em"!==t||o("i").addClass(l),"u"===t&&o("u").addClass(l),"strike"===t&&o("d").addClass(l),"p"===t&&("center"===e?o("center").addClass(l):"right"===e?o("right").addClass(l):o("left").addClass(l)),"a"===t&&(o("link").addClass(l),o("unlink").removeClass(r))})},g=function(t,a,l){var n=t.document,o=e(n.body),c={link:function(i){var a=p(i),l=e(a).parent();b.call(o,{href:l.attr("href"),target:l.attr("target")},function(e){var a=l[0];"A"===a.tagName?a.href=e.url:v.call(t,"a",{target:e.target,href:e.url,text:e.url},i)})},unlink:function(t){n.execCommand("unlink")},face:function(e){x.call(this,function(i){v.call(t,"img",{src:i.src,alt:i.alt},e)})},image:function(a){var n=this;layui.use("upload",function(o){var r=l.uploadImage||{};o.render({url:r.url,method:r.type,elem:e(n).find("input")[0],done:function(e){0==e.code?(e.data=e.data||{},v.call(t,"img",{src:e.data.src,alt:e.data.title},a)):i.msg(e.msg||"上传失败")}})})},code:function(e){k.call(o,function(i){v.call(t,"pre",{text:i.code,"lay-lang":i.lang},e)})},help:function(){i.open({type:2,title:"帮助",area:["600px","380px"],shadeClose:!0,shade:.1,skin:"layui-layer-msg",content:["http://www.layui.com/about/layedit/help.html","no"]})}},s=a.find(".layui-layedit-tool"),u=function(){var i=e(this),a=i.attr("layedit-event"),l=i.attr("lay-command");if(!i.hasClass(r)){o.focus();var u=m(n);u.commonAncestorContainer;l?(n.execCommand(l),/justifyLeft|justifyCenter|justifyRight/.test(l)&&n.execCommand("formatBlock",!1,"<p>"),setTimeout(function(){o.focus()},10)):c[a]&&c[a].call(this,u),h.call(t,s,i)}},d=/image/;s.find(">i").on("mousedown",function(){var t=e(this),i=t.attr("layedit-event");d.test(i)||u.call(this)}).on("click",function(){var t=e(this),i=t.attr("layedit-event");d.test(i)&&u.call(this)}),o.on("click",function(){h.call(t,s),i.close(x.index)})},b=function(t,e){var l=this,n=i.open({type:1,id:"LAY_layedit_link",area:"350px",shade:.05,shadeClose:!0,moveType:1,title:"超链接",skin:"layui-layer-msg",content:['<ul class="layui-form" style="margin: 15px;">','<li class="layui-form-item">','<label class="layui-form-label" style="width: 60px;">URL</label>','<div class="layui-input-block" style="margin-left: 90px">','<input name="url" lay-verify="url" value="'+(t.href||"")+'" autofocus="true" autocomplete="off" class="layui-input">',"</div>","</li>",'<li class="layui-form-item">','<label class="layui-form-label" style="width: 60px;">打开方式</label>','<div class="layui-input-block" style="margin-left: 90px">','<input type="radio" name="target" value="_self" class="layui-input" title="当前窗口"'+("_self"!==t.target&&t.target?"":"checked")+">",'<input type="radio" name="target" value="_blank" class="layui-input" title="新窗口" '+("_blank"===t.target?"checked":"")+">","</div>","</li>",'<li class="layui-form-item" style="text-align: center;">','<button type="button" lay-submit lay-filter="layedit-link-yes" class="layui-btn"> 确定 </button>','<button style="margin-left: 20px;" type="button" class="layui-btn layui-btn-primary"> 取消 </button>',"</li>","</ul>"].join(""),success:function(t,n){var o="submit(layedit-link-yes)";a.render("radio"),t.find(".layui-btn-primary").on("click",function(){i.close(n),l.focus()}),a.on(o,function(t){i.close(b.index),e&&e(t.field)})}});b.index=n},x=function(t){var a=function(){var t=["[微笑]","[嘻嘻]","[哈哈]","[可爱]","[可怜]","[挖鼻]","[吃惊]","[害羞]","[挤眼]","[闭嘴]","[鄙视]","[爱你]","[泪]","[偷笑]","[亲亲]","[生病]","[太开心]","[白眼]","[右哼哼]","[左哼哼]","[嘘]","[衰]","[委屈]","[吐]","[哈欠]","[抱抱]","[怒]","[疑问]","[馋嘴]","[拜拜]","[思考]","[汗]","[困]","[睡]","[钱]","[失望]","[酷]","[色]","[哼]","[鼓掌]","[晕]","[悲伤]","[抓狂]","[黑线]","[阴险]","[怒骂]","[互粉]","[心]","[伤心]","[猪头]","[熊猫]","[兔子]","[ok]","[耶]","[good]","[NO]","[赞]","[来]","[弱]","[草泥马]","[神马]","[囧]","[浮云]","[给力]","[围观]","[威武]","[奥特曼]","[礼物]","[钟]","[话筒]","[蜡烛]","[蛋糕]"],e={};return layui.each(t,function(t,i){e[i]=layui.cache.dir+"images/face/"+t+".gif"}),e}();return x.hide=x.hide||function(t){"face"!==e(t.target).attr("layedit-event")&&i.close(x.index)},x.index=i.tips(function(){var t=[];return layui.each(a,function(e,i){t.push('<li title="'+e+'"><img src="'+i+'" alt="'+e+'"></li>')}),'<ul class="layui-clear">'+t.join("")+"</ul>"}(),this,{tips:1,time:0,skin:"layui-box layui-util-face",maxWidth:500,success:function(l,n){l.css({marginTop:-4,marginLeft:-10}).find(".layui-clear>li").on("click",function(){t&&t({src:a[this.title],alt:this.title}),i.close(n)}),e(document).off("click",x.hide).on("click",x.hide)}})},k=function(t){var e=this,l=i.open({type:1,id:"LAY_layedit_code",area:"550px",shade:.05,shadeClose:!0,moveType:1,title:"插入代码",skin:"layui-layer-msg",content:['<ul class="layui-form layui-form-pane" style="margin: 15px;">','<li class="layui-form-item">','<label class="layui-form-label">请选择语言</label>','<div class="layui-input-block">','<select name="lang">','<option value="JavaScript">JavaScript</option>','<option value="HTML">HTML</option>','<option value="CSS">CSS</option>','<option value="Java">Java</option>','<option value="PHP">PHP</option>','<option value="C#">C#</option>','<option value="Python">Python</option>','<option value="Ruby">Ruby</option>','<option value="Go">Go</option>',"</select>","</div>","</li>",'<li class="layui-form-item layui-form-text">','<label class="layui-form-label">代码</label>','<div class="layui-input-block">','<textarea name="code" lay-verify="required" autofocus="true" class="layui-textarea" style="height: 200px;"></textarea>',"</div>","</li>",'<li class="layui-form-item" style="text-align: center;">','<button type="button" lay-submit lay-filter="layedit-code-yes" class="layui-btn"> 确定 </button>','<button style="margin-left: 20px;" type="button" class="layui-btn layui-btn-primary"> 取消 </button>',"</li>","</ul>"].join(""),success:function(l,n){var o="submit(layedit-code-yes)";a.render("select"),l.find(".layui-btn-primary").on("click",function(){i.close(n),e.focus()}),a.on(o,function(e){i.close(k.index),t&&t(e.field)})}});k.index=l},C={html:'<i class="layui-icon layedit-tool-html" title="HTML源代码" lay-command="html" layedit-event="html""></i><span class="layedit-tool-mid"></span>',strong:'<i class="layui-icon layedit-tool-b" title="加粗" lay-command="Bold" layedit-event="b""></i>',italic:'<i class="layui-icon layedit-tool-i" title="斜体" lay-command="italic" layedit-event="i""></i>',underline:'<i class="layui-icon layedit-tool-u" title="下划线" lay-command="underline" layedit-event="u""></i>',del:'<i class="layui-icon layedit-tool-d" title="删除线" lay-command="strikeThrough" layedit-event="d""></i>',"|":'<span class="layedit-tool-mid"></span>',left:'<i class="layui-icon layedit-tool-left" title="左对齐" lay-command="justifyLeft" layedit-event="left""></i>',center:'<i class="layui-icon layedit-tool-center" title="居中对齐" lay-command="justifyCenter" layedit-event="center""></i>',right:'<i class="layui-icon layedit-tool-right" title="右对齐" lay-command="justifyRight" layedit-event="right""></i>',link:'<i class="layui-icon layedit-tool-link" title="插入链接" layedit-event="link""></i>',unlink:'<i class="layui-icon layedit-tool-unlink layui-disabled" title="清除链接" lay-command="unlink" layedit-event="unlink""></i>',face:'<i class="layui-icon layedit-tool-face" title="表情" layedit-event="face""></i>',image:'<i class="layui-icon layedit-tool-image" title="图片" layedit-event="image"><input type="file" name="file"></i>',code:'<i class="layui-icon layedit-tool-code" title="插入代码" layedit-event="code"></i>',help:'<i class="layui-icon layedit-tool-help" title="帮助" layedit-event="help"></i>'},w=new c;t(n,w)});layui.define("jquery",function(e){"use strict";var a=layui.$,l="http://www.layui.com/doc/modules/code.html";e("code",function(e){var t=[];e=e||{},e.elem=a(e.elem||".layui-code"),e.about=!("about"in e)||e.about,e.elem.each(function(){t.push(this)}),layui.each(t.reverse(),function(t,i){var c=a(i),o=c.html();(c.attr("lay-encode")||e.encode)&&(o=o.replace(/&(?!#?[a-zA-Z0-9]+;)/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/'/g,"'").replace(/"/g,""")),c.html('<ol class="layui-code-ol"><li>'+o.replace(/[\r\t\n]+/g,"</li><li>")+"</li></ol>"),c.find(">.layui-code-h3")[0]||c.prepend('<h3 class="layui-code-h3">'+(c.attr("lay-title")||e.title||"code")+(e.about?'<a href="'+l+'" target="_blank">layui.code</a>':"")+"</h3>");var d=c.find(">.layui-code-ol");c.addClass("layui-box layui-code-view"),(c.attr("lay-skin")||e.skin)&&c.addClass("layui-code-"+(c.attr("lay-skin")||e.skin)),(d.find("li").length/100|0)>0&&d.css("margin-left",(d.find("li").length/100|0)+"px"),(c.attr("lay-height")||e.height)&&d.css("max-height",c.attr("lay-height")||e.height)})})}).addcss("modules/code.css","skincodecss"); \ No newline at end of file +for(var e=this.offsetParent;e&&!pe.nodeName(e,"html")&&"static"===pe.css(e,"position");)e=e.offsetParent;return e||pt})}}),pe.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n=/Y/.test(t);pe.fn[e]=function(r){return Pe(this,function(e,r,i){var o=te(e);return void 0===i?o?t in o?o[t]:o.document.documentElement[r]:e[r]:void(o?o.scrollTo(n?pe(o).scrollLeft():i,n?i:pe(o).scrollTop()):e[r]=i)},e,r,arguments.length,null)}}),pe.each(["top","left"],function(e,t){pe.cssHooks[t]=L(fe.pixelPosition,function(e,n){if(n)return n=gt(e,t),ft.test(n)?pe(e).position()[t]+"px":n})}),pe.each({Height:"height",Width:"width"},function(e,t){pe.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,r){pe.fn[r]=function(r,i){var o=arguments.length&&(n||"boolean"!=typeof r),a=n||(r===!0||i===!0?"margin":"border");return Pe(this,function(t,n,r){var i;return pe.isWindow(t)?t.document.documentElement["client"+e]:9===t.nodeType?(i=t.documentElement,Math.max(t.body["scroll"+e],i["scroll"+e],t.body["offset"+e],i["offset"+e],i["client"+e])):void 0===r?pe.css(t,n,a):pe.style(t,n,r,a)},t,o?r:void 0,o,null)}})}),pe.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}}),pe.fn.size=function(){return this.length},pe.fn.andSelf=pe.fn.addBack,layui.define(function(e){layui.$=pe,e("jquery",pe)}),pe});!function(e,t){"use strict";var i,n,a=e.layui&&layui.define,o={getPath:function(){var e=document.currentScript?document.currentScript.src:function(){for(var e,t=document.scripts,i=t.length-1,n=i;n>0;n--)if("interactive"===t[n].readyState){e=t[n].src;break}return e||t[i].src}();return e.substring(0,e.lastIndexOf("/")+1)}(),config:{},end:{},minIndex:0,minLeft:[],btn:["确定","取消"],type:["dialog","page","iframe","loading","tips"],getStyle:function(t,i){var n=t.currentStyle?t.currentStyle:e.getComputedStyle(t,null);return n[n.getPropertyValue?"getPropertyValue":"getAttribute"](i)},link:function(t,i,n){if(r.path){var a=document.getElementsByTagName("head")[0],s=document.createElement("link");"string"==typeof i&&(n=i);var l=(n||t).replace(/\.|\//g,""),f="layuicss-"+l,c=0;s.rel="stylesheet",s.href=r.path+t,s.id=f,document.getElementById(f)||a.appendChild(s),"function"==typeof i&&!function u(){return++c>80?e.console&&console.error("layer.css: Invalid"):void(1989===parseInt(o.getStyle(document.getElementById(f),"width"))?i():setTimeout(u,100))}()}}},r={v:"3.1.1",ie:function(){var t=navigator.userAgent.toLowerCase();return!!(e.ActiveXObject||"ActiveXObject"in e)&&((t.match(/msie\s(\d+)/)||[])[1]||"11")}(),index:e.layer&&e.layer.v?1e5:0,path:o.getPath,config:function(e,t){return e=e||{},r.cache=o.config=i.extend({},o.config,e),r.path=o.config.path||r.path,"string"==typeof e.extend&&(e.extend=[e.extend]),o.config.path&&r.ready(),e.extend?(a?layui.addcss("modules/layer/"+e.extend):o.link("theme/"+e.extend),this):this},ready:function(e){var t="layer",i="",n=(a?"modules/layer/":"theme/")+"default/layer.css?v="+r.v+i;return a?layui.addcss(n,e,t):o.link(n,e,t),this},alert:function(e,t,n){var a="function"==typeof t;return a&&(n=t),r.open(i.extend({content:e,yes:n},a?{}:t))},confirm:function(e,t,n,a){var s="function"==typeof t;return s&&(a=n,n=t),r.open(i.extend({content:e,btn:o.btn,yes:n,btn2:a},s?{}:t))},msg:function(e,n,a){var s="function"==typeof n,f=o.config.skin,c=(f?f+" "+f+"-msg":"")||"layui-layer-msg",u=l.anim.length-1;return s&&(a=n),r.open(i.extend({content:e,time:3e3,shade:!1,skin:c,title:!1,closeBtn:!1,btn:!1,resize:!1,end:a},s&&!o.config.skin?{skin:c+" layui-layer-hui",anim:u}:function(){return n=n||{},(n.icon===-1||n.icon===t&&!o.config.skin)&&(n.skin=c+" "+(n.skin||"layui-layer-hui")),n}()))},load:function(e,t){return r.open(i.extend({type:3,icon:e||0,resize:!1,shade:.01},t))},tips:function(e,t,n){return r.open(i.extend({type:4,content:[e,t],closeBtn:!1,time:3e3,shade:!1,resize:!1,fixed:!1,maxWidth:210},n))}},s=function(e){var t=this;t.index=++r.index,t.config=i.extend({},t.config,o.config,e),document.body?t.creat():setTimeout(function(){t.creat()},30)};s.pt=s.prototype;var l=["layui-layer",".layui-layer-title",".layui-layer-main",".layui-layer-dialog","layui-layer-iframe","layui-layer-content","layui-layer-btn","layui-layer-close"];l.anim=["layer-anim-00","layer-anim-01","layer-anim-02","layer-anim-03","layer-anim-04","layer-anim-05","layer-anim-06"],s.pt.config={type:0,shade:.3,fixed:!0,move:l[1],title:"信息",offset:"auto",area:"auto",closeBtn:1,time:0,zIndex:19891014,maxWidth:360,anim:0,isOutAnim:!0,icon:-1,moveType:1,resize:!0,scrollbar:!0,tips:2},s.pt.vessel=function(e,t){var n=this,a=n.index,r=n.config,s=r.zIndex+a,f="object"==typeof r.title,c=r.maxmin&&(1===r.type||2===r.type),u=r.title?'<div class="layui-layer-title" style="'+(f?r.title[1]:"")+'">'+(f?r.title[0]:r.title)+"</div>":"";return r.zIndex=s,t([r.shade?'<div class="layui-layer-shade" id="layui-layer-shade'+a+'" times="'+a+'" style="'+("z-index:"+(s-1)+"; ")+'"></div>':"",'<div class="'+l[0]+(" layui-layer-"+o.type[r.type])+(0!=r.type&&2!=r.type||r.shade?"":" layui-layer-border")+" "+(r.skin||"")+'" id="'+l[0]+a+'" type="'+o.type[r.type]+'" times="'+a+'" showtime="'+r.time+'" conType="'+(e?"object":"string")+'" style="z-index: '+s+"; width:"+r.area[0]+";height:"+r.area[1]+(r.fixed?"":";position:absolute;")+'">'+(e&&2!=r.type?"":u)+'<div id="'+(r.id||"")+'" class="layui-layer-content'+(0==r.type&&r.icon!==-1?" layui-layer-padding":"")+(3==r.type?" layui-layer-loading"+r.icon:"")+'">'+(0==r.type&&r.icon!==-1?'<i class="layui-layer-ico layui-layer-ico'+r.icon+'"></i>':"")+(1==r.type&&e?"":r.content||"")+'</div><span class="layui-layer-setwin">'+function(){var e=c?'<a class="layui-layer-min" href="javascript:;"><cite></cite></a><a class="layui-layer-ico layui-layer-max" href="javascript:;"></a>':"";return r.closeBtn&&(e+='<a class="layui-layer-ico '+l[7]+" "+l[7]+(r.title?r.closeBtn:4==r.type?"1":"2")+'" href="javascript:;"></a>'),e}()+"</span>"+(r.btn?function(){var e="";"string"==typeof r.btn&&(r.btn=[r.btn]);for(var t=0,i=r.btn.length;t<i;t++)e+='<a class="'+l[6]+t+'">'+r.btn[t]+"</a>";return'<div class="'+l[6]+" layui-layer-btn-"+(r.btnAlign||"")+'">'+e+"</div>"}():"")+(r.resize?'<span class="layui-layer-resize"></span>':"")+"</div>"],u,i('<div class="layui-layer-move"></div>')),n},s.pt.creat=function(){var e=this,t=e.config,a=e.index,s=t.content,f="object"==typeof s,c=i("body");if(!t.id||!i("#"+t.id)[0]){switch("string"==typeof t.area&&(t.area="auto"===t.area?["",""]:[t.area,""]),t.shift&&(t.anim=t.shift),6==r.ie&&(t.fixed=!1),t.type){case 0:t.btn="btn"in t?t.btn:o.btn[0],r.closeAll("dialog");break;case 2:var s=t.content=f?t.content:[t.content||"","auto"];t.content='<iframe scrolling="'+(t.content[1]||"auto")+'" allowtransparency="true" id="'+l[4]+a+'" name="'+l[4]+a+'" onload="this.className=\'\';" class="layui-layer-load" frameborder="0" src="'+t.content[0]+'"></iframe>';break;case 3:delete t.title,delete t.closeBtn,t.icon===-1&&0===t.icon,r.closeAll("loading");break;case 4:f||(t.content=[t.content,"body"]),t.follow=t.content[1],t.content=t.content[0]+'<i class="layui-layer-TipsG"></i>',delete t.title,t.tips="object"==typeof t.tips?t.tips:[t.tips,!0],t.tipsMore||r.closeAll("tips")}if(e.vessel(f,function(n,r,u){c.append(n[0]),f?function(){2==t.type||4==t.type?function(){i("body").append(n[1])}():function(){s.parents("."+l[0])[0]||(s.data("display",s.css("display")).show().addClass("layui-layer-wrap").wrap(n[1]),i("#"+l[0]+a).find("."+l[5]).before(r))}()}():c.append(n[1]),i(".layui-layer-move")[0]||c.append(o.moveElem=u),e.layero=i("#"+l[0]+a),t.scrollbar||l.html.css("overflow","hidden").attr("layer-full",a)}).auto(a),i("#layui-layer-shade"+e.index).css({"background-color":t.shade[1]||"#000",opacity:t.shade[0]||t.shade}),2==t.type&&6==r.ie&&e.layero.find("iframe").attr("src",s[0]),4==t.type?e.tips():e.offset(),t.fixed&&n.on("resize",function(){e.offset(),(/^\d+%$/.test(t.area[0])||/^\d+%$/.test(t.area[1]))&&e.auto(a),4==t.type&&e.tips()}),t.time<=0||setTimeout(function(){r.close(e.index)},t.time),e.move().callback(),l.anim[t.anim]){var u="layer-anim "+l.anim[t.anim];e.layero.addClass(u).one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",function(){i(this).removeClass(u)})}t.isOutAnim&&e.layero.data("isOutAnim",!0)}},s.pt.auto=function(e){var t=this,a=t.config,o=i("#"+l[0]+e);""===a.area[0]&&a.maxWidth>0&&(r.ie&&r.ie<8&&a.btn&&o.width(o.innerWidth()),o.outerWidth()>a.maxWidth&&o.width(a.maxWidth));var s=[o.innerWidth(),o.innerHeight()],f=o.find(l[1]).outerHeight()||0,c=o.find("."+l[6]).outerHeight()||0,u=function(e){e=o.find(e),e.height(s[1]-f-c-2*(0|parseFloat(e.css("padding-top"))))};switch(a.type){case 2:u("iframe");break;default:""===a.area[1]?a.maxHeight>0&&o.outerHeight()>a.maxHeight?(s[1]=a.maxHeight,u("."+l[5])):a.fixed&&s[1]>=n.height()&&(s[1]=n.height(),u("."+l[5])):u("."+l[5])}return t},s.pt.offset=function(){var e=this,t=e.config,i=e.layero,a=[i.outerWidth(),i.outerHeight()],o="object"==typeof t.offset;e.offsetTop=(n.height()-a[1])/2,e.offsetLeft=(n.width()-a[0])/2,o?(e.offsetTop=t.offset[0],e.offsetLeft=t.offset[1]||e.offsetLeft):"auto"!==t.offset&&("t"===t.offset?e.offsetTop=0:"r"===t.offset?e.offsetLeft=n.width()-a[0]:"b"===t.offset?e.offsetTop=n.height()-a[1]:"l"===t.offset?e.offsetLeft=0:"lt"===t.offset?(e.offsetTop=0,e.offsetLeft=0):"lb"===t.offset?(e.offsetTop=n.height()-a[1],e.offsetLeft=0):"rt"===t.offset?(e.offsetTop=0,e.offsetLeft=n.width()-a[0]):"rb"===t.offset?(e.offsetTop=n.height()-a[1],e.offsetLeft=n.width()-a[0]):e.offsetTop=t.offset),t.fixed||(e.offsetTop=/%$/.test(e.offsetTop)?n.height()*parseFloat(e.offsetTop)/100:parseFloat(e.offsetTop),e.offsetLeft=/%$/.test(e.offsetLeft)?n.width()*parseFloat(e.offsetLeft)/100:parseFloat(e.offsetLeft),e.offsetTop+=n.scrollTop(),e.offsetLeft+=n.scrollLeft()),i.attr("minLeft")&&(e.offsetTop=n.height()-(i.find(l[1]).outerHeight()||0),e.offsetLeft=i.css("left")),i.css({top:e.offsetTop,left:e.offsetLeft})},s.pt.tips=function(){var e=this,t=e.config,a=e.layero,o=[a.outerWidth(),a.outerHeight()],r=i(t.follow);r[0]||(r=i("body"));var s={width:r.outerWidth(),height:r.outerHeight(),top:r.offset().top,left:r.offset().left},f=a.find(".layui-layer-TipsG"),c=t.tips[0];t.tips[1]||f.remove(),s.autoLeft=function(){s.left+o[0]-n.width()>0?(s.tipLeft=s.left+s.width-o[0],f.css({right:12,left:"auto"})):s.tipLeft=s.left},s.where=[function(){s.autoLeft(),s.tipTop=s.top-o[1]-10,f.removeClass("layui-layer-TipsB").addClass("layui-layer-TipsT").css("border-right-color",t.tips[1])},function(){s.tipLeft=s.left+s.width+10,s.tipTop=s.top,f.removeClass("layui-layer-TipsL").addClass("layui-layer-TipsR").css("border-bottom-color",t.tips[1])},function(){s.autoLeft(),s.tipTop=s.top+s.height+10,f.removeClass("layui-layer-TipsT").addClass("layui-layer-TipsB").css("border-right-color",t.tips[1])},function(){s.tipLeft=s.left-o[0]-10,s.tipTop=s.top,f.removeClass("layui-layer-TipsR").addClass("layui-layer-TipsL").css("border-bottom-color",t.tips[1])}],s.where[c-1](),1===c?s.top-(n.scrollTop()+o[1]+16)<0&&s.where[2]():2===c?n.width()-(s.left+s.width+o[0]+16)>0||s.where[3]():3===c?s.top-n.scrollTop()+s.height+o[1]+16-n.height()>0&&s.where[0]():4===c&&o[0]+16-s.left>0&&s.where[1](),a.find("."+l[5]).css({"background-color":t.tips[1],"padding-right":t.closeBtn?"30px":""}),a.css({left:s.tipLeft-(t.fixed?n.scrollLeft():0),top:s.tipTop-(t.fixed?n.scrollTop():0)})},s.pt.move=function(){var e=this,t=e.config,a=i(document),s=e.layero,l=s.find(t.move),f=s.find(".layui-layer-resize"),c={};return t.move&&l.css("cursor","move"),l.on("mousedown",function(e){e.preventDefault(),t.move&&(c.moveStart=!0,c.offset=[e.clientX-parseFloat(s.css("left")),e.clientY-parseFloat(s.css("top"))],o.moveElem.css("cursor","move").show())}),f.on("mousedown",function(e){e.preventDefault(),c.resizeStart=!0,c.offset=[e.clientX,e.clientY],c.area=[s.outerWidth(),s.outerHeight()],o.moveElem.css("cursor","se-resize").show()}),a.on("mousemove",function(i){if(c.moveStart){var a=i.clientX-c.offset[0],o=i.clientY-c.offset[1],l="fixed"===s.css("position");if(i.preventDefault(),c.stX=l?0:n.scrollLeft(),c.stY=l?0:n.scrollTop(),!t.moveOut){var f=n.width()-s.outerWidth()+c.stX,u=n.height()-s.outerHeight()+c.stY;a<c.stX&&(a=c.stX),a>f&&(a=f),o<c.stY&&(o=c.stY),o>u&&(o=u)}s.css({left:a,top:o})}if(t.resize&&c.resizeStart){var a=i.clientX-c.offset[0],o=i.clientY-c.offset[1];i.preventDefault(),r.style(e.index,{width:c.area[0]+a,height:c.area[1]+o}),c.isResize=!0,t.resizing&&t.resizing(s)}}).on("mouseup",function(e){c.moveStart&&(delete c.moveStart,o.moveElem.hide(),t.moveEnd&&t.moveEnd(s)),c.resizeStart&&(delete c.resizeStart,o.moveElem.hide())}),e},s.pt.callback=function(){function e(){var e=a.cancel&&a.cancel(t.index,n);e===!1||r.close(t.index)}var t=this,n=t.layero,a=t.config;t.openLayer(),a.success&&(2==a.type?n.find("iframe").on("load",function(){a.success(n,t.index)}):a.success(n,t.index)),6==r.ie&&t.IE6(n),n.find("."+l[6]).children("a").on("click",function(){var e=i(this).index();if(0===e)a.yes?a.yes(t.index,n):a.btn1?a.btn1(t.index,n):r.close(t.index);else{var o=a["btn"+(e+1)]&&a["btn"+(e+1)](t.index,n);o===!1||r.close(t.index)}}),n.find("."+l[7]).on("click",e),a.shadeClose&&i("#layui-layer-shade"+t.index).on("click",function(){r.close(t.index)}),n.find(".layui-layer-min").on("click",function(){var e=a.min&&a.min(n);e===!1||r.min(t.index,a)}),n.find(".layui-layer-max").on("click",function(){i(this).hasClass("layui-layer-maxmin")?(r.restore(t.index),a.restore&&a.restore(n)):(r.full(t.index,a),setTimeout(function(){a.full&&a.full(n)},100))}),a.end&&(o.end[t.index]=a.end)},o.reselect=function(){i.each(i("select"),function(e,t){var n=i(this);n.parents("."+l[0])[0]||1==n.attr("layer")&&i("."+l[0]).length<1&&n.removeAttr("layer").show(),n=null})},s.pt.IE6=function(e){i("select").each(function(e,t){var n=i(this);n.parents("."+l[0])[0]||"none"===n.css("display")||n.attr({layer:"1"}).hide(),n=null})},s.pt.openLayer=function(){var e=this;r.zIndex=e.config.zIndex,r.setTop=function(e){var t=function(){r.zIndex++,e.css("z-index",r.zIndex+1)};return r.zIndex=parseInt(e[0].style.zIndex),e.on("mousedown",t),r.zIndex}},o.record=function(e){var t=[e.width(),e.height(),e.position().top,e.position().left+parseFloat(e.css("margin-left"))];e.find(".layui-layer-max").addClass("layui-layer-maxmin"),e.attr({area:t})},o.rescollbar=function(e){l.html.attr("layer-full")==e&&(l.html[0].style.removeProperty?l.html[0].style.removeProperty("overflow"):l.html[0].style.removeAttribute("overflow"),l.html.removeAttr("layer-full"))},e.layer=r,r.getChildFrame=function(e,t){return t=t||i("."+l[4]).attr("times"),i("#"+l[0]+t).find("iframe").contents().find(e)},r.getFrameIndex=function(e){return i("#"+e).parents("."+l[4]).attr("times")},r.iframeAuto=function(e){if(e){var t=r.getChildFrame("html",e).outerHeight(),n=i("#"+l[0]+e),a=n.find(l[1]).outerHeight()||0,o=n.find("."+l[6]).outerHeight()||0;n.css({height:t+a+o}),n.find("iframe").css({height:t})}},r.iframeSrc=function(e,t){i("#"+l[0]+e).find("iframe").attr("src",t)},r.style=function(e,t,n){var a=i("#"+l[0]+e),r=a.find(".layui-layer-content"),s=a.attr("type"),f=a.find(l[1]).outerHeight()||0,c=a.find("."+l[6]).outerHeight()||0;a.attr("minLeft");s!==o.type[3]&&s!==o.type[4]&&(n||(parseFloat(t.width)<=260&&(t.width=260),parseFloat(t.height)-f-c<=64&&(t.height=64+f+c)),a.css(t),c=a.find("."+l[6]).outerHeight(),s===o.type[2]?a.find("iframe").css({height:parseFloat(t.height)-f-c}):r.css({height:parseFloat(t.height)-f-c-parseFloat(r.css("padding-top"))-parseFloat(r.css("padding-bottom"))}))},r.min=function(e,t){var a=i("#"+l[0]+e),s=a.find(l[1]).outerHeight()||0,f=a.attr("minLeft")||181*o.minIndex+"px",c=a.css("position");o.record(a),o.minLeft[0]&&(f=o.minLeft[0],o.minLeft.shift()),a.attr("position",c),r.style(e,{width:180,height:s,left:f,top:n.height()-s,position:"fixed",overflow:"hidden"},!0),a.find(".layui-layer-min").hide(),"page"===a.attr("type")&&a.find(l[4]).hide(),o.rescollbar(e),a.attr("minLeft")||o.minIndex++,a.attr("minLeft",f)},r.restore=function(e){var t=i("#"+l[0]+e),n=t.attr("area").split(",");t.attr("type");r.style(e,{width:parseFloat(n[0]),height:parseFloat(n[1]),top:parseFloat(n[2]),left:parseFloat(n[3]),position:t.attr("position"),overflow:"visible"},!0),t.find(".layui-layer-max").removeClass("layui-layer-maxmin"),t.find(".layui-layer-min").show(),"page"===t.attr("type")&&t.find(l[4]).show(),o.rescollbar(e)},r.full=function(e){var t,a=i("#"+l[0]+e);o.record(a),l.html.attr("layer-full")||l.html.css("overflow","hidden").attr("layer-full",e),clearTimeout(t),t=setTimeout(function(){var t="fixed"===a.css("position");r.style(e,{top:t?0:n.scrollTop(),left:t?0:n.scrollLeft(),width:n.width(),height:n.height()},!0),a.find(".layui-layer-min").hide()},100)},r.title=function(e,t){var n=i("#"+l[0]+(t||r.index)).find(l[1]);n.html(e)},r.close=function(e){var t=i("#"+l[0]+e),n=t.attr("type"),a="layer-anim-close";if(t[0]){var s="layui-layer-wrap",f=function(){if(n===o.type[1]&&"object"===t.attr("conType")){t.children(":not(."+l[5]+")").remove();for(var a=t.find("."+s),r=0;r<2;r++)a.unwrap();a.css("display",a.data("display")).removeClass(s)}else{if(n===o.type[2])try{var f=i("#"+l[4]+e)[0];f.contentWindow.document.write(""),f.contentWindow.close(),t.find("."+l[5])[0].removeChild(f)}catch(c){}t[0].innerHTML="",t.remove()}"function"==typeof o.end[e]&&o.end[e](),delete o.end[e]};t.data("isOutAnim")&&t.addClass("layer-anim "+a),i("#layui-layer-moves, #layui-layer-shade"+e).remove(),6==r.ie&&o.reselect(),o.rescollbar(e),t.attr("minLeft")&&(o.minIndex--,o.minLeft.push(t.attr("minLeft"))),r.ie&&r.ie<10||!t.data("isOutAnim")?f():setTimeout(function(){f()},200)}},r.closeAll=function(e){i.each(i("."+l[0]),function(){var t=i(this),n=e?t.attr("type")===e:1;n&&r.close(t.attr("times")),n=null})};var f=r.cache||{},c=function(e){return f.skin?" "+f.skin+" "+f.skin+"-"+e:""};r.prompt=function(e,t){var a="";if(e=e||{},"function"==typeof e&&(t=e),e.area){var o=e.area;a='style="width: '+o[0]+"; height: "+o[1]+';"',delete e.area}var s,l=2==e.formType?'<textarea class="layui-layer-input"'+a+"></textarea>":function(){return'<input type="'+(1==e.formType?"password":"text")+'" class="layui-layer-input">'}(),f=e.success;return delete e.success,r.open(i.extend({type:1,btn:["确定","取消"],content:l,skin:"layui-layer-prompt"+c("prompt"),maxWidth:n.width(),success:function(t){s=t.find(".layui-layer-input"),s.val(e.value||"").focus(),"function"==typeof f&&f(t)},resize:!1,yes:function(i){var n=s.val();""===n?s.focus():n.length>(e.maxlength||500)?r.tips("最多输入"+(e.maxlength||500)+"个字数",s,{tips:1}):t&&t(n,i,s)}},e))},r.tab=function(e){e=e||{};var t=e.tab||{},n="layui-this",a=e.success;return delete e.success,r.open(i.extend({type:1,skin:"layui-layer-tab"+c("tab"),resize:!1,title:function(){var e=t.length,i=1,a="";if(e>0)for(a='<span class="'+n+'">'+t[0].title+"</span>";i<e;i++)a+="<span>"+t[i].title+"</span>";return a}(),content:'<ul class="layui-layer-tabmain">'+function(){var e=t.length,i=1,a="";if(e>0)for(a='<li class="layui-layer-tabli '+n+'">'+(t[0].content||"no content")+"</li>";i<e;i++)a+='<li class="layui-layer-tabli">'+(t[i].content||"no content")+"</li>";return a}()+"</ul>",success:function(t){var o=t.find(".layui-layer-title").children(),r=t.find(".layui-layer-tabmain").children();o.on("mousedown",function(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0;var a=i(this),o=a.index();a.addClass(n).siblings().removeClass(n),r.eq(o).show().siblings().hide(),"function"==typeof e.change&&e.change(o)}),"function"==typeof a&&a(t)}},e))},r.photos=function(t,n,a){function o(e,t,i){var n=new Image;return n.src=e,n.complete?t(n):(n.onload=function(){n.onload=null,t(n)},void(n.onerror=function(e){n.onerror=null,i(e)}))}var s={};if(t=t||{},t.photos){var l=t.photos.constructor===Object,f=l?t.photos:{},u=f.data||[],d=f.start||0;s.imgIndex=(0|d)+1,t.img=t.img||"img";var y=t.success;if(delete t.success,l){if(0===u.length)return r.msg("没有图片")}else{var p=i(t.photos),h=function(){u=[],p.find(t.img).each(function(e){var t=i(this);t.attr("layer-index",e),u.push({alt:t.attr("alt"),pid:t.attr("layer-pid"),src:t.attr("layer-src")||t.attr("src"),thumb:t.attr("src")})})};if(h(),0===u.length)return;if(n||p.on("click",t.img,function(){var e=i(this),n=e.attr("layer-index");r.photos(i.extend(t,{photos:{start:n,data:u,tab:t.tab},full:t.full}),!0),h()}),!n)return}s.imgprev=function(e){s.imgIndex--,s.imgIndex<1&&(s.imgIndex=u.length),s.tabimg(e)},s.imgnext=function(e,t){s.imgIndex++,s.imgIndex>u.length&&(s.imgIndex=1,t)||s.tabimg(e)},s.keyup=function(e){if(!s.end){var t=e.keyCode;e.preventDefault(),37===t?s.imgprev(!0):39===t?s.imgnext(!0):27===t&&r.close(s.index)}},s.tabimg=function(e){if(!(u.length<=1))return f.start=s.imgIndex-1,r.close(s.index),r.photos(t,!0,e)},s.event=function(){s.bigimg.hover(function(){s.imgsee.show()},function(){s.imgsee.hide()}),s.bigimg.find(".layui-layer-imgprev").on("click",function(e){e.preventDefault(),s.imgprev()}),s.bigimg.find(".layui-layer-imgnext").on("click",function(e){e.preventDefault(),s.imgnext()}),i(document).on("keyup",s.keyup)},s.loadi=r.load(1,{shade:!("shade"in t)&&.9,scrollbar:!1}),o(u[d].src,function(n){r.close(s.loadi),s.index=r.open(i.extend({type:1,id:"layui-layer-photos",area:function(){var a=[n.width,n.height],o=[i(e).width()-100,i(e).height()-100];if(!t.full&&(a[0]>o[0]||a[1]>o[1])){var r=[a[0]/o[0],a[1]/o[1]];r[0]>r[1]?(a[0]=a[0]/r[0],a[1]=a[1]/r[0]):r[0]<r[1]&&(a[0]=a[0]/r[1],a[1]=a[1]/r[1])}return[a[0]+"px",a[1]+"px"]}(),title:!1,shade:.9,shadeClose:!0,closeBtn:!1,move:".layui-layer-phimg img",moveType:1,scrollbar:!1,moveOut:!0,isOutAnim:!1,skin:"layui-layer-photos"+c("photos"),content:'<div class="layui-layer-phimg"><img src="'+u[d].src+'" alt="'+(u[d].alt||"")+'" layer-pid="'+u[d].pid+'"><div class="layui-layer-imgsee">'+(u.length>1?'<span class="layui-layer-imguide"><a href="javascript:;" class="layui-layer-iconext layui-layer-imgprev"></a><a href="javascript:;" class="layui-layer-iconext layui-layer-imgnext"></a></span>':"")+'<div class="layui-layer-imgbar" style="display:'+(a?"block":"")+'"><span class="layui-layer-imgtit"><a href="javascript:;">'+(u[d].alt||"")+"</a><em>"+s.imgIndex+"/"+u.length+"</em></span></div></div></div>",success:function(e,i){s.bigimg=e.find(".layui-layer-phimg"),s.imgsee=e.find(".layui-layer-imguide,.layui-layer-imgbar"),s.event(e),t.tab&&t.tab(u[d],e),"function"==typeof y&&y(e)},end:function(){s.end=!0,i(document).off("keyup",s.keyup)}},t))},function(){r.close(s.loadi),r.msg("当前图片地址异常<br>是否继续查看下一张?",{time:3e4,btn:["下一张","不看了"],yes:function(){u.length>1&&s.imgnext(!0,!0)}})})}},o.run=function(t){i=t,n=i(e),l.html=i("html"),r.open=function(e){var t=new s(e);return t.index}},e.layui&&layui.define?(r.ready(),layui.define("jquery",function(t){r.path=layui.cache.dir,o.run(layui.$),e.layer=r,t("layer",r)})):"function"==typeof define&&define.amd?define(["jquery"],function(){return o.run(e.jQuery),r}):function(){o.run(e.jQuery),r.ready()}()}(window);layui.define("jquery",function(t){"use strict";var a=layui.$,i=(layui.hint(),layui.device()),e="element",l="layui-this",n="layui-show",s=function(){this.config={}};s.prototype.set=function(t){var i=this;return a.extend(!0,i.config,t),i},s.prototype.on=function(t,a){return layui.onevent.call(this,e,t,a)},s.prototype.tabAdd=function(t,i){var e=".layui-tab-title",l=a(".layui-tab[lay-filter="+t+"]"),n=l.children(e),s=n.children(".layui-tab-bar"),o=l.children(".layui-tab-content"),r='<li lay-id="'+(i.id||"")+'"'+(i.attr?' lay-attr="'+i.attr+'"':"")+">"+(i.title||"unnaming")+"</li>";return s[0]?s.before(r):n.append(r),o.append('<div class="layui-tab-item">'+(i.content||"")+"</div>"),f.hideTabMore(!0),f.tabAuto(),this},s.prototype.tabDelete=function(t,i){var e=".layui-tab-title",l=a(".layui-tab[lay-filter="+t+"]"),n=l.children(e),s=n.find('>li[lay-id="'+i+'"]');return f.tabDelete(null,s),this},s.prototype.tabChange=function(t,i){var e=".layui-tab-title",l=a(".layui-tab[lay-filter="+t+"]"),n=l.children(e),s=n.find('>li[lay-id="'+i+'"]');return f.tabClick.call(s[0],null,null,s),this},s.prototype.tab=function(t){t=t||{},b.on("click",t.headerElem,function(i){var e=a(this).index();f.tabClick.call(this,i,e,null,t)})},s.prototype.progress=function(t,i){var e="layui-progress",l=a("."+e+"[lay-filter="+t+"]"),n=l.find("."+e+"-bar"),s=n.find("."+e+"-text");return n.css("width",i),s.text(i),this};var o=".layui-nav",r="layui-nav-item",c="layui-nav-bar",u="layui-nav-tree",d="layui-nav-child",y="layui-nav-more",h="layui-anim layui-anim-upbit",f={tabClick:function(t,i,s,o){o=o||{};var r=s||a(this),i=i||r.parent().children("li").index(r),c=o.headerElem?r.parent():r.parents(".layui-tab").eq(0),u=o.bodyElem?a(o.bodyElem):c.children(".layui-tab-content").children(".layui-tab-item"),d=r.find("a"),y=c.attr("lay-filter");"javascript:;"!==d.attr("href")&&"_blank"===d.attr("target")||(r.addClass(l).siblings().removeClass(l),u.eq(i).addClass(n).siblings().removeClass(n)),layui.event.call(this,e,"tab("+y+")",{elem:c,index:i})},tabDelete:function(t,i){var n=i||a(this).parent(),s=n.index(),o=n.parents(".layui-tab").eq(0),r=o.children(".layui-tab-content").children(".layui-tab-item"),c=o.attr("lay-filter");n.hasClass(l)&&(n.next()[0]?f.tabClick.call(n.next()[0],null,s+1):n.prev()[0]&&f.tabClick.call(n.prev()[0],null,s-1)),n.remove(),r.eq(s).remove(),setTimeout(function(){f.tabAuto()},50),layui.event.call(this,e,"tabDelete("+c+")",{elem:o,index:s})},tabAuto:function(){var t="layui-tab-more",e="layui-tab-bar",l="layui-tab-close",n=this;a(".layui-tab").each(function(){var s=a(this),o=s.children(".layui-tab-title"),r=(s.children(".layui-tab-content").children(".layui-tab-item"),'lay-stope="tabmore"'),c=a('<span class="layui-unselect layui-tab-bar" '+r+"><i "+r+' class="layui-icon"></i></span>');if(n===window&&8!=i.ie&&f.hideTabMore(!0),s.attr("lay-allowClose")&&o.find("li").each(function(){var t=a(this);if(!t.find("."+l)[0]){var i=a('<i class="layui-icon layui-unselect '+l+'">ဆ</i>');i.on("click",f.tabDelete),t.append(i)}}),"string"!=typeof s.attr("lay-unauto"))if(o.prop("scrollWidth")>o.outerWidth()+1){if(o.find("."+e)[0])return;o.append(c),s.attr("overflow",""),c.on("click",function(a){o[this.title?"removeClass":"addClass"](t),this.title=this.title?"":"收缩"})}else o.find("."+e).remove(),s.removeAttr("overflow")})},hideTabMore:function(t){var i=a(".layui-tab-title");t!==!0&&"tabmore"===a(t.target).attr("lay-stope")||(i.removeClass("layui-tab-more"),i.find(".layui-tab-bar").attr("title",""))},clickThis:function(){var t=a(this),i=t.parents(o),n=i.attr("lay-filter"),s=t.parent(),c=t.siblings("."+d),y="string"==typeof s.attr("lay-unselect");"javascript:;"!==t.attr("href")&&"_blank"===t.attr("target")||y||c[0]||(i.find("."+l).removeClass(l),s.addClass(l)),i.hasClass(u)&&(c.removeClass(h),c[0]&&(s["none"===c.css("display")?"addClass":"removeClass"](r+"ed"),"all"===i.attr("lay-shrink")&&s.siblings().removeClass(r+"ed"))),layui.event.call(this,e,"nav("+n+")",t)},collapse:function(){var t=a(this),i=t.find(".layui-colla-icon"),l=t.siblings(".layui-colla-content"),s=t.parents(".layui-collapse").eq(0),o=s.attr("lay-filter"),r="none"===l.css("display");if("string"==typeof s.attr("lay-accordion")){var c=s.children(".layui-colla-item").children("."+n);c.siblings(".layui-colla-title").children(".layui-colla-icon").html(""),c.removeClass(n)}l[r?"addClass":"removeClass"](n),i.html(r?"":""),layui.event.call(this,e,"collapse("+o+")",{title:t,content:l,show:r})}};s.prototype.init=function(t,e){var l=function(){return e?'[lay-filter="'+e+'"]':""}(),s={tab:function(){f.tabAuto.call({})},nav:function(){var t=200,e={},s={},p={},b=function(l,o,r){var c=a(this),f=c.find("."+d);o.hasClass(u)?l.css({top:c.position().top,height:c.children("a").outerHeight(),opacity:1}):(f.addClass(h),l.css({left:c.position().left+parseFloat(c.css("marginLeft")),top:c.position().top+c.height()-l.height()}),e[r]=setTimeout(function(){l.css({width:c.width(),opacity:1})},i.ie&&i.ie<10?0:t),clearTimeout(p[r]),"block"===f.css("display")&&clearTimeout(s[r]),s[r]=setTimeout(function(){f.addClass(n),c.find("."+y).addClass(y+"d")},300))};a(o+l).each(function(i){var l=a(this),o=a('<span class="'+c+'"></span>'),h=l.find("."+r);l.find("."+c)[0]||(l.append(o),h.on("mouseenter",function(){b.call(this,o,l,i)}).on("mouseleave",function(){l.hasClass(u)||(clearTimeout(s[i]),s[i]=setTimeout(function(){l.find("."+d).removeClass(n),l.find("."+y).removeClass(y+"d")},300))}),l.on("mouseleave",function(){clearTimeout(e[i]),p[i]=setTimeout(function(){l.hasClass(u)?o.css({height:0,top:o.position().top+o.height()/2,opacity:0}):o.css({width:0,left:o.position().left+o.width()/2,opacity:0})},t)})),h.find("a").each(function(){var t=a(this),i=(t.parent(),t.siblings("."+d));i[0]&&!t.children("."+y)[0]&&t.append('<span class="'+y+'"></span>'),t.off("click",f.clickThis).on("click",f.clickThis)})})},breadcrumb:function(){var t=".layui-breadcrumb";a(t+l).each(function(){var t=a(this),i="lay-separator",e=t.attr(i)||"/",l=t.find("a");l.next("span["+i+"]")[0]||(l.each(function(t){t!==l.length-1&&a(this).after("<span "+i+">"+e+"</span>")}),t.css("visibility","visible"))})},progress:function(){var t="layui-progress";a("."+t+l).each(function(){var i=a(this),e=i.find(".layui-progress-bar"),l=e.attr("lay-percent");e.css("width",function(){return/^.+\/.+$/.test(l)?100*new Function("return "+l)()+"%":l}()),i.attr("lay-showPercent")&&setTimeout(function(){e.html('<span class="'+t+'-text">'+l+"</span>")},350)})},collapse:function(){var t="layui-collapse";a("."+t+l).each(function(){var t=a(this).find(".layui-colla-item");t.each(function(){var t=a(this),i=t.find(".layui-colla-title"),e=t.find(".layui-colla-content"),l="none"===e.css("display");i.find(".layui-colla-icon").remove(),i.append('<i class="layui-icon layui-colla-icon">'+(l?"":"")+"</i>"),i.off("click",f.collapse).on("click",f.collapse)})})}};return s[t]?s[t]():layui.each(s,function(t,a){a()})},s.prototype.render=s.prototype.init;var p=new s,b=a(document);p.render();var v=".layui-tab-title li";b.on("click",v,f.tabClick),b.on("click",f.hideTabMore),a(window).on("resize",f.tabAuto),t(e,p)});layui.define("layer",function(e){"use strict";var t=layui.$,i=layui.layer,n=layui.hint(),a=layui.device(),o={config:{},set:function(e){var i=this;return i.config=t.extend({},i.config,e),i},on:function(e,t){return layui.onevent.call(this,r,e,t)}},l=function(){var e=this;return{upload:function(t){e.upload.call(e,t)},reload:function(t){e.reload.call(e,t)},config:e.config}},r="upload",u="layui-upload-file",c="layui-upload-form",f="layui-upload-iframe",s="layui-upload-choose",p=function(e){var i=this;i.config=t.extend({},i.config,o.config,e),i.render()};p.prototype.config={accept:"images",exts:"",auto:!0,bindAction:"",url:"",field:"file",acceptMime:"",method:"post",data:{},drag:!0,size:0,number:0,multiple:!1},p.prototype.render=function(e){var i=this,e=i.config;e.elem=t(e.elem),e.bindAction=t(e.bindAction),i.file(),i.events()},p.prototype.file=function(){var e=this,i=e.config,n=e.elemFile=t(['<input class="'+u+'" type="file" accept="'+i.acceptMime+'" name="'+i.field+'"',i.multiple?" multiple":"",">"].join("")),o=i.elem.next();(o.hasClass(u)||o.hasClass(c))&&o.remove(),a.ie&&a.ie<10&&i.elem.wrap('<div class="layui-upload-wrap"></div>'),e.isFile()?(e.elemFile=i.elem,i.field=i.elem[0].name):i.elem.after(n),a.ie&&a.ie<10&&e.initIE()},p.prototype.initIE=function(){var e=this,i=e.config,n=t('<iframe id="'+f+'" class="'+f+'" name="'+f+'" frameborder="0"></iframe>'),a=t(['<form target="'+f+'" class="'+c+'" method="post" key="set-mine" enctype="multipart/form-data" action="'+i.url+'">',"</form>"].join(""));t("#"+f)[0]||t("body").append(n),i.elem.next().hasClass(c)||(e.elemFile.wrap(a),i.elem.next("."+c).append(function(){var e=[];return layui.each(i.data,function(t,i){i="function"==typeof i?i():i,e.push('<input type="hidden" name="'+t+'" value="'+i+'">')}),e.join("")}()))},p.prototype.msg=function(e){return i.msg(e,{icon:2,shift:6})},p.prototype.isFile=function(){var e=this.config.elem[0];if(e)return"input"===e.tagName.toLocaleLowerCase()&&"file"===e.type},p.prototype.preview=function(e){var t=this;window.FileReader&&layui.each(t.chooseFiles,function(t,i){var n=new FileReader;n.readAsDataURL(i),n.onload=function(){e&&e(t,i,this.result)}})},p.prototype.upload=function(e,i){var n,o=this,l=o.config,r=o.elemFile[0],u=function(){var i=0,n=0,a=e||o.files||o.chooseFiles||r.files,u=function(){l.multiple&&i+n===o.fileLength&&"function"==typeof l.allDone&&l.allDone({total:o.fileLength,successful:i,aborted:n})};layui.each(a,function(e,a){var r=new FormData;r.append(l.field,a),layui.each(l.data,function(e,t){t="function"==typeof t?t():t,r.append(e,t)}),t.ajax({url:l.url,type:"post",data:r,contentType:!1,processData:!1,dataType:"json",headers:l.headers||{},success:function(t){i++,d(e,t),u()},error:function(){n++,o.msg("请求上传接口出现异常"),m(e),u()}})})},c=function(){var e=t("#"+f);o.elemFile.parent().submit(),clearInterval(p.timer),p.timer=setInterval(function(){var t,i=e.contents().find("body");try{t=i.text()}catch(n){o.msg("获取上传后的响应信息出现异常"),clearInterval(p.timer),m()}t&&(clearInterval(p.timer),i.html(""),d(0,t))},30)},d=function(e,t){if(o.elemFile.next("."+s).remove(),r.value="","object"!=typeof t)try{t=JSON.parse(t)}catch(i){return t={},o.msg("请对上传接口返回有效JSON")}"function"==typeof l.done&&l.done(t,e||0,function(e){o.upload(e)})},m=function(e){l.auto&&(r.value=""),"function"==typeof l.error&&l.error(e||0,function(e){o.upload(e)})},h=l.exts,v=function(){var t=[];return layui.each(e||o.chooseFiles,function(e,i){t.push(i.name)}),t}(),g={preview:function(e){o.preview(e)},upload:function(e,t){var i={};i[e]=t,o.upload(i)},pushFile:function(){return o.files=o.files||{},layui.each(o.chooseFiles,function(e,t){o.files[e]=t}),o.files},resetFile:function(e,t,i){var n=new File([t],i);o.files=o.files||{},o.files[e]=n}},y=function(){if("choose"!==i&&!l.auto||(l.choose&&l.choose(g),"choose"!==i))return l.before&&l.before(g),a.ie?a.ie>9?u():c():void u()};if(v=0===v.length?r.value.match(/[^\/\\]+\..+/g)||[]||"":v,0!==v.length){switch(l.accept){case"file":if(h&&!RegExp("\\w\\.("+h+")$","i").test(escape(v)))return o.msg("选择的文件中包含不支持的格式"),r.value="";break;case"video":if(!RegExp("\\w\\.("+(h||"avi|mp4|wma|rmvb|rm|flash|3gp|flv")+")$","i").test(escape(v)))return o.msg("选择的视频中包含不支持的格式"),r.value="";break;case"audio":if(!RegExp("\\w\\.("+(h||"mp3|wav|mid")+")$","i").test(escape(v)))return o.msg("选择的音频中包含不支持的格式"),r.value="";break;default:if(layui.each(v,function(e,t){RegExp("\\w\\.("+(h||"jpg|png|gif|bmp|jpeg$")+")","i").test(escape(t))||(n=!0)}),n)return o.msg("选择的图片中包含不支持的格式"),r.value=""}if(o.fileLength=function(){var t=0,i=e||o.files||o.chooseFiles||r.files;return layui.each(i,function(){t++}),t}(),l.number&&o.fileLength>l.number)return o.msg("同时最多只能上传的数量为:"+l.number);if(l.size>0&&!(a.ie&&a.ie<10)){var F;if(layui.each(o.chooseFiles,function(e,t){if(t.size>1024*l.size){var i=l.size/1024;i=i>=1?i.toFixed(2)+"MB":l.size+"KB",r.value="",F=i}}),F)return o.msg("文件不能超过"+F)}y()}},p.prototype.reload=function(e){e=e||{},delete e.elem,delete e.bindAction;var i=this,e=i.config=t.extend({},i.config,o.config,e),n=e.elem.next();n.attr({name:e.name,accept:e.acceptMime,multiple:e.multiple})},p.prototype.events=function(){var e=this,i=e.config,o=function(t){e.chooseFiles={},layui.each(t,function(t,i){var n=(new Date).getTime();e.chooseFiles[n+"-"+t]=i})},l=function(t,n){var a=e.elemFile,o=t.length>1?t.length+"个文件":(t[0]||{}).name||a[0].value.match(/[^\/\\]+\..+/g)||[]||"";a.next().hasClass(s)&&a.next().remove(),e.upload(null,"choose"),e.isFile()||i.choose||a.after('<span class="layui-inline '+s+'">'+o+"</span>")};i.elem.off("upload.start").on("upload.start",function(){var a=t(this),o=a.attr("lay-data");if(o)try{o=new Function("return "+o)(),e.config=t.extend({},i,o)}catch(l){n.error("Upload element property lay-data configuration item has a syntax error: "+o)}e.config.item=a,e.elemFile[0].click()}),a.ie&&a.ie<10||i.elem.off("upload.over").on("upload.over",function(){var e=t(this);e.attr("lay-over","")}).off("upload.leave").on("upload.leave",function(){var e=t(this);e.removeAttr("lay-over")}).off("upload.drop").on("upload.drop",function(n,a){var r=t(this),u=a.originalEvent.dataTransfer.files||[];r.removeAttr("lay-over"),o(u),i.auto?e.upload(u):l(u)}),e.elemFile.off("upload.change").on("upload.change",function(){var t=this.files||[];o(t),i.auto?e.upload():l(t)}),i.bindAction.off("upload.action").on("upload.action",function(){e.upload()}),i.elem.data("haveEvents")||(e.elemFile.on("change",function(){t(this).trigger("upload.change")}),i.elem.on("click",function(){e.isFile()||t(this).trigger("upload.start")}),i.drag&&i.elem.on("dragover",function(e){e.preventDefault(),t(this).trigger("upload.over")}).on("dragleave",function(e){t(this).trigger("upload.leave")}).on("drop",function(e){e.preventDefault(),t(this).trigger("upload.drop",e)}),i.bindAction.on("click",function(){t(this).trigger("upload.action")}),i.elem.data("haveEvents",!0))},o.render=function(e){var t=new p(e);return l.call(t)},e(r,o)});layui.define("jquery",function(e){"use strict";var i=layui.jquery,t={config:{},index:layui.slider?layui.slider.index+1e4:0,set:function(e){var t=this;return t.config=i.extend({},t.config,e),t},on:function(e,i){return layui.onevent.call(this,n,e,i)}},a=function(){var e=this,i=e.config;return{setValue:function(i,t){return e.slide("set",i,t||0)},config:i}},n="slider",l="layui-disabled",s="layui-slider",r="layui-slider-bar",o="layui-slider-wrap",u="layui-slider-wrap-btn",d="layui-slider-tips",v="layui-slider-input",c="layui-slider-input-txt",m="layui-slider-input-btn",p="layui-slider-hover",f=function(e){var a=this;a.index=++t.index,a.config=i.extend({},a.config,t.config,e),a.render()};f.prototype.config={type:"default",min:0,max:100,value:0,step:1,showstep:!1,tips:!0,input:!1,range:!1,height:200,disabled:!1,theme:"#009688"},f.prototype.render=function(){var e=this,t=e.config;if(t.step<1&&(t.step=1),t.max<t.min&&(t.max=t.min+t.step),t.range){t.value="object"==typeof t.value?t.value:[t.min,t.value];var a=Math.min(t.value[0],t.value[1]),n=Math.max(t.value[0],t.value[1]);t.value[0]=a>t.min?a:t.min,t.value[1]=n>t.min?n:t.min,t.value[0]=t.value[0]>t.max?t.max:t.value[0],t.value[1]=t.value[1]>t.max?t.max:t.value[1];var r=Math.floor((t.value[0]-t.min)/(t.max-t.min)*100),v=Math.floor((t.value[1]-t.min)/(t.max-t.min)*100),m=v-r+"%";r+="%",v+="%"}else{"object"==typeof t.value&&(t.value=Math.min.apply(null,t.value)),t.value<t.min&&(t.value=t.min),t.value>t.max&&(t.value=t.max);var m=Math.floor((t.value-t.min)/(t.max-t.min)*100)+"%"}var p=t.disabled?"#c2c2c2":t.theme,f='<div class="layui-slider '+("vertical"===t.type?"layui-slider-vertical":"")+'">'+(t.tips?'<div class="layui-slider-tips"></div>':"")+'<div class="layui-slider-bar" style="background:'+p+"; "+("vertical"===t.type?"height":"width")+":"+m+";"+("vertical"===t.type?"bottom":"left")+":"+(r||0)+';"></div><div class="layui-slider-wrap" style="'+("vertical"===t.type?"bottom":"left")+":"+(r||m)+';"><div class="layui-slider-wrap-btn" style="border: 2px solid '+p+';"></div></div>'+(t.range?'<div class="layui-slider-wrap" style="'+("vertical"===t.type?"bottom":"left")+":"+v+';"><div class="layui-slider-wrap-btn" style="border: 2px solid '+p+';"></div></div>':"")+"</div>",h=i(t.elem),y=h.next("."+s);if(y[0]&&y.remove(),e.elemTemp=i(f),t.range?(e.elemTemp.find("."+o).eq(0).data("value",t.value[0]),e.elemTemp.find("."+o).eq(1).data("value",t.value[1])):e.elemTemp.find("."+o).data("value",t.value),h.html(e.elemTemp),"vertical"===t.type&&e.elemTemp.height(t.height+"px"),t.showstep){for(var g=(t.max-t.min)/t.step,b="",x=1;x<g+1;x++){var T=100*x/g;T<100&&(b+='<div class="layui-slider-step" style="'+("vertical"===t.type?"bottom":"left")+":"+T+'%"></div>')}e.elemTemp.append(b)}if(t.input&&!t.range){var w=i('<div class="layui-slider-input layui-input"><div class="layui-slider-input-txt"><input type="text" class="layui-input"></div><div class="layui-slider-input-btn"><i class="layui-icon layui-icon-up"></i><i class="layui-icon layui-icon-down"></i></div></div>');h.css("position","relative"),h.append(w),h.find("."+c).children("input").val(t.value),"vertical"===t.type?w.css({left:0,top:-48}):e.elemTemp.css("margin-right",w.outerWidth()+15)}t.disabled?(e.elemTemp.addClass(l),e.elemTemp.find("."+u).addClass(l)):e.slide(),e.elemTemp.find("."+u).on("mouseover",function(){var a="vertical"===t.type?t.height:e.elemTemp[0].offsetWidth,n=e.elemTemp.find("."+o),l="vertical"===t.type?a-i(this).parent()[0].offsetTop-n.height():i(this).parent()[0].offsetLeft,s=l/a*100,r=i(this).parent().data("value"),u=t.setTips?t.setTips(r):r;e.elemTemp.find("."+d).html(u),"vertical"===t.type?e.elemTemp.find("."+d).css({bottom:s+"%","margin-bottom":"20px",display:"inline-block"}):e.elemTemp.find("."+d).css({left:s+"%",display:"inline-block"})}).on("mouseout",function(){e.elemTemp.find("."+d).css("display","none")})},f.prototype.slide=function(e,t,a){var n=this,l=n.config,s=n.elemTemp,f=function(){return"vertical"===l.type?l.height:s[0].offsetWidth},h=s.find("."+o),y=s.next("."+v),g=y.children("."+c).children("input").val(),b=100/((l.max-l.min)/Math.ceil(l.step)),x=function(e,i){e=Math.ceil(e)*b>100?Math.ceil(e)*b:Math.round(e)*b,e=e>100?100:e,h.eq(i).css("vertical"===l.type?"bottom":"left",e+"%");var t=T(h[0].offsetLeft),a=l.range?T(h[1].offsetLeft):0;"vertical"===l.type?(s.find("."+d).css({bottom:e+"%","margin-bottom":"20px"}),t=T(f()-h[0].offsetTop-h.height()),a=l.range?T(f()-h[1].offsetTop-h.height()):0):s.find("."+d).css("left",e+"%"),t=t>100?100:t,a=a>100?100:a;var n=Math.min(t,a),o=Math.abs(t-a);"vertical"===l.type?s.find("."+r).css({height:o+"%",bottom:n+"%"}):s.find("."+r).css({width:o+"%",left:n+"%"});var u=l.min+Math.round((l.max-l.min)*e/100);if(g=u,y.children("."+c).children("input").val(g),h.eq(i).data("value",u),u=l.setTips?l.setTips(u):u,s.find("."+d).html(u),l.range){var v=[h.eq(0).data("value"),h.eq(1).data("value")];v[0]>v[1]&&v.reverse()}l.change&&l.change(l.range?v:u)},T=function(e){var i=e/f()*100/b,t=Math.round(i)*b;return e==f()&&(t=Math.ceil(i)*b),t},w=i(['<div class="layui-auxiliar-moving" id="LAY-slider-moving"></div'].join("")),M=function(e,t){var a=function(){t&&t(),w.remove()};i("#LAY-slider-moving")[0]||i("body").append(w),w.on("mousemove",e),w.on("mouseup",a).on("mouseleave",a)};if("set"===e)return x(t,a);s.find("."+u).each(function(e){var t=i(this);t.on("mousedown",function(i){i=i||window.event;var a=t.parent()[0].offsetLeft,n=i.clientX;"vertical"===l.type&&(a=f()-t.parent()[0].offsetTop-h.height(),n=i.clientY);var r=function(i){i=i||window.event;var r=a+("vertical"===l.type?n-i.clientY:i.clientX-n);r<0&&(r=0),r>f()&&(r=f());var o=r/f()*100/b;x(o,e),t.addClass(p),s.find("."+d).show(),i.preventDefault()},o=function(){t.removeClass(p),s.find("."+d).hide()};M(r,o)})}),s.on("click",function(e){var t=i("."+u);if(!t.is(event.target)&&0===t.has(event.target).length&&t.length){var a,n="vertical"===l.type?f()-e.clientY+i(this).offset().top:e.clientX-i(this).offset().left;n<0&&(n=0),n>f()&&(n=f());var s=n/f()*100/b;a=l.range?"vertical"===l.type?Math.abs(n-parseInt(i(h[0]).css("bottom")))>Math.abs(n-parseInt(i(h[1]).css("bottom")))?1:0:Math.abs(n-h[0].offsetLeft)>Math.abs(n-h[1].offsetLeft)?1:0:0,x(s,a),e.preventDefault()}}),y.hover(function(){var e=i(this);e.children("."+m).fadeIn("fast")},function(){var e=i(this);e.children("."+m).fadeOut("fast")}),y.children("."+m).children("i").each(function(e){i(this).on("click",function(){g=1==e?g-l.step<l.min?l.min:Number(g)-l.step:Number(g)+l.step>l.max?l.max:Number(g)+l.step;var i=(g-l.min)/(l.max-l.min)*100/b;x(i,0)})});var q=function(){var e=this.value;e=isNaN(e)?0:e,e=e<l.min?l.min:e,e=e>l.max?l.max:e,this.value=e;var i=(e-l.min)/(l.max-l.min)*100/b;x(i,0)};y.children("."+c).children("input").on("keydown",function(e){13===e.keyCode&&(e.preventDefault(),q.call(this))}).on("change",q)},f.prototype.events=function(){var e=this;e.config},t.render=function(e){var i=new f(e);return a.call(i)},e(n,t)});layui.define("jquery",function(e){"use strict";var i=layui.jquery,o={config:{},index:layui.colorpicker?layui.colorpicker.index+1e4:0,set:function(e){var o=this;return o.config=i.extend({},o.config,e),o},on:function(e,i){return layui.onevent.call(this,"colorpicker",e,i)}},r=function(){var e=this,i=e.config;return{config:i}},t="colorpicker",n="layui-show",l="layui-colorpicker",c=".layui-colorpicker-main",a="layui-icon-down",s="layui-icon-close",f="layui-colorpicker-trigger-span",d="layui-colorpicker-trigger-i",u="layui-colorpicker-side",p="layui-colorpicker-side-slider",g="layui-colorpicker-basis",v="layui-colorpicker-alpha-bgcolor",h="layui-colorpicker-alpha-slider",m="layui-colorpicker-basis-cursor",b="layui-colorpicker-main-input",k=function(e){var i={h:0,s:0,b:0},o=Math.min(e.r,e.g,e.b),r=Math.max(e.r,e.g,e.b),t=r-o;return i.b=r,i.s=0!=r?255*t/r:0,0!=i.s?e.r==r?i.h=(e.g-e.b)/t:e.g==r?i.h=2+(e.b-e.r)/t:i.h=4+(e.r-e.g)/t:i.h=-1,r==o&&(i.h=0),i.h*=60,i.h<0&&(i.h+=360),i.s*=100/255,i.b*=100/255,i},y=function(e){var e=e.indexOf("#")>-1?e.substring(1):e;if(3==e.length){var i=e.split("");e=i[0]+i[0]+i[1]+i[1]+i[2]+i[2]}e=parseInt(e,16);var o={r:e>>16,g:(65280&e)>>8,b:255&e};return k(o)},x=function(e){var i={},o=e.h,r=255*e.s/100,t=255*e.b/100;if(0==r)i.r=i.g=i.b=t;else{var n=t,l=(255-r)*t/255,c=(n-l)*(o%60)/60;360==o&&(o=0),o<60?(i.r=n,i.b=l,i.g=l+c):o<120?(i.g=n,i.b=l,i.r=n-c):o<180?(i.g=n,i.r=l,i.b=l+c):o<240?(i.b=n,i.r=l,i.g=n-c):o<300?(i.b=n,i.g=l,i.r=l+c):o<360?(i.r=n,i.g=l,i.b=n-c):(i.r=0,i.g=0,i.b=0)}return{r:Math.round(i.r),g:Math.round(i.g),b:Math.round(i.b)}},C=function(e){var o=x(e),r=[o.r.toString(16),o.g.toString(16),o.b.toString(16)];return i.each(r,function(e,i){1==i.length&&(r[e]="0"+i)}),r.join("")},P=function(e){var i=/[0-9]{1,3}/g,o=e.match(i)||[];return{r:o[0],g:o[1],b:o[2]}},B=i(window),w=i(document),D=function(e){var r=this;r.index=++o.index,r.config=i.extend({},r.config,o.config,e),r.render()};D.prototype.config={color:"",size:null,alpha:!1,format:"hex",predefine:!1,colors:["#009688","#5FB878","#1E9FFF","#FF5722","#FFB800","#01AAED","#999","#c00","#ff8c00","#ffd700","#90ee90","#00ced1","#1e90ff","#c71585","rgb(0, 186, 189)","rgb(255, 120, 0)","rgb(250, 212, 0)","#393D49","rgba(0,0,0,.5)","rgba(255, 69, 0, 0.68)","rgba(144, 240, 144, 0.5)","rgba(31, 147, 255, 0.73)"]},D.prototype.render=function(){var e=this,o=e.config,r=i(['<div class="layui-unselect layui-colorpicker">',"<span "+("rgb"==o.format&&o.alpha?'class="layui-colorpicker-trigger-bgcolor"':"")+">",'<span class="layui-colorpicker-trigger-span" ','lay-type="'+("rgb"==o.format?o.alpha?"rgba":"torgb":"")+'" ','style="'+function(){var e="";return o.color?(e=o.color,(o.color.match(/[0-9]{1,3}/g)||[]).length>3&&(o.alpha&&"rgb"==o.format||(e="#"+C(k(P(o.color))))),"background: "+e):e}()+'">','<i class="layui-icon layui-colorpicker-trigger-i '+(o.color?a:s)+'"></i>',"</span>","</span>","</div>"].join("")),t=i(o.elem);o.size&&r.addClass("layui-colorpicker-"+o.size),t.addClass("layui-inline").html(e.elemColorBox=r),e.color=e.elemColorBox.find("."+f)[0].style.background,e.events()},D.prototype.renderPicker=function(){var e=this,o=e.config,r=e.elemColorBox[0],t=e.elemPicker=i(['<div id="layui-colorpicker'+e.index+'" data-index="'+e.index+'" class="layui-anim layui-anim-upbit layui-colorpicker-main">','<div class="layui-colorpicker-main-wrapper">','<div class="layui-colorpicker-basis">','<div class="layui-colorpicker-basis-white"></div>','<div class="layui-colorpicker-basis-black"></div>','<div class="layui-colorpicker-basis-cursor"></div>',"</div>",'<div class="layui-colorpicker-side">','<div class="layui-colorpicker-side-slider"></div>',"</div>","</div>",'<div class="layui-colorpicker-main-alpha '+(o.alpha?n:"")+'">','<div class="layui-colorpicker-alpha-bgcolor">','<div class="layui-colorpicker-alpha-slider"></div>',"</div>","</div>",function(){if(o.predefine){var e=['<div class="layui-colorpicker-main-pre">'];return layui.each(o.colors,function(i,o){e.push(['<div class="layui-colorpicker-pre'+((o.match(/[0-9]{1,3}/g)||[]).length>3?" layui-colorpicker-pre-isalpha":"")+'">','<div style="background:'+o+'"></div>',"</div>"].join(""))}),e.push("</div>"),e.join("")}return""}(),'<div class="layui-colorpicker-main-input">','<div class="layui-inline">','<input type="text" class="layui-input">',"</div>",'<div class="layui-btn-container">','<button class="layui-btn layui-btn-primary layui-btn-sm" colorpicker-events="clear">清空</button>','<button class="layui-btn layui-btn-sm" colorpicker-events="confirm">确定</button>',"</div","</div>","</div>"].join(""));e.elemColorBox.find("."+f)[0];i(c)[0]&&i(c).data("index")==e.index?e.removePicker(D.thisElemInd):(e.removePicker(D.thisElemInd),i("body").append(t)),D.thisElemInd=e.index,D.thisColor=r.style.background,e.position(),e.pickerEvents()},D.prototype.removePicker=function(e){var o=this;o.config;return i("#layui-colorpicker"+(e||o.index)).remove(),o},D.prototype.position=function(){var e=this,i=e.config,o=e.bindElem||e.elemColorBox[0],r=e.elemPicker[0],t=o.getBoundingClientRect(),n=r.offsetWidth,l=r.offsetHeight,c=function(e){return e=e?"scrollLeft":"scrollTop",document.body[e]|document.documentElement[e]},a=function(e){return document.documentElement[e?"clientWidth":"clientHeight"]},s=5,f=t.left,d=t.bottom;f-=(n-o.offsetWidth)/2,d+=s,f+n+s>a("width")?f=a("width")-n-s:f<s&&(f=s),d+l+s>a()&&(d=t.top>l?t.top-l:a()-l,d-=2*s),i.position&&(r.style.position=i.position),r.style.left=f+("fixed"===i.position?0:c(1))+"px",r.style.top=d+("fixed"===i.position?0:c())+"px"},D.prototype.val=function(){var e=this,i=(e.config,e.elemColorBox.find("."+f)),o=e.elemPicker.find("."+b),r=i[0],t=r.style.backgroundColor;if(t){var n=k(P(t)),l=i.attr("lay-type");if(e.select(n.h,n.s,n.b),"torgb"===l&&o.find("input").val(t),"rgba"===l){var c=P(t);if(3==(t.match(/[0-9]{1,3}/g)||[]).length)o.find("input").val("rgba("+c.r+", "+c.g+", "+c.b+", 1)"),e.elemPicker.find("."+h).css("left",280);else{o.find("input").val(t);var a=280*t.slice(t.lastIndexOf(",")+1,t.length-1);e.elemPicker.find("."+h).css("left",a)}e.elemPicker.find("."+v)[0].style.background="linear-gradient(to right, rgba("+c.r+", "+c.g+", "+c.b+", 0), rgb("+c.r+", "+c.g+", "+c.b+"))"}}else e.select(0,100,100),o.find("input").val(""),e.elemPicker.find("."+v)[0].style.background="",e.elemPicker.find("."+h).css("left",280)},D.prototype.side=function(){var e=this,o=e.config,r=e.elemColorBox.find("."+f),t=r.attr("lay-type"),n=e.elemPicker.find("."+u),l=e.elemPicker.find("."+p),c=e.elemPicker.find("."+g),y=e.elemPicker.find("."+m),C=e.elemPicker.find("."+v),w=e.elemPicker.find("."+h),D=l[0].offsetTop/180*360,E=100-(y[0].offsetTop+3)/180*100,H=(y[0].offsetLeft+3)/260*100,W=Math.round(w[0].offsetLeft/280*100)/100,j=e.elemColorBox.find("."+d),F=e.elemPicker.find(".layui-colorpicker-pre").children("div"),L=function(i,n,l,c){e.select(i,n,l);var f=x({h:i,s:n,b:l});if(j.addClass(a).removeClass(s),r[0].style.background="rgb("+f.r+", "+f.g+", "+f.b+")","torgb"===t&&e.elemPicker.find("."+b).find("input").val("rgb("+f.r+", "+f.g+", "+f.b+")"),"rgba"===t){var d=0;d=280*c,w.css("left",d),e.elemPicker.find("."+b).find("input").val("rgba("+f.r+", "+f.g+", "+f.b+", "+c+")"),r[0].style.background="rgba("+f.r+", "+f.g+", "+f.b+", "+c+")",C[0].style.background="linear-gradient(to right, rgba("+f.r+", "+f.g+", "+f.b+", 0), rgb("+f.r+", "+f.g+", "+f.b+"))"}o.change&&o.change(e.elemPicker.find("."+b).find("input").val())},M=i(['<div class="layui-auxiliar-moving" id="LAY-colorpicker-moving"></div'].join("")),Y=function(e){i("#LAY-colorpicker-moving")[0]||i("body").append(M),M.on("mousemove",e),M.on("mouseup",function(){M.remove()}).on("mouseleave",function(){M.remove()})};l.on("mousedown",function(e){var i=this.offsetTop,o=e.clientY,r=function(e){var r=i+(e.clientY-o),t=n[0].offsetHeight;r<0&&(r=0),r>t&&(r=t);var l=r/180*360;D=l,L(l,H,E,W),e.preventDefault()};Y(r),e.preventDefault()}),n.on("click",function(e){var o=e.clientY-i(this).offset().top;o<0&&(o=0),o>this.offsetHeight&&(o=this.offsetHeight);var r=o/180*360;D=r,L(r,H,E,W),e.preventDefault()}),y.on("mousedown",function(e){var i=this.offsetTop,o=this.offsetLeft,r=e.clientY,t=e.clientX,n=function(e){var n=i+(e.clientY-r),l=o+(e.clientX-t),a=c[0].offsetHeight-3,s=c[0].offsetWidth-3;n<-3&&(n=-3),n>a&&(n=a),l<-3&&(l=-3),l>s&&(l=s);var f=(l+3)/260*100,d=100-(n+3)/180*100;E=d,H=f,L(D,f,d,W),e.preventDefault()};layui.stope(e),Y(n),e.preventDefault()}),c.on("mousedown",function(e){var o=e.clientY-i(this).offset().top-3+B.scrollTop(),r=e.clientX-i(this).offset().left-3+B.scrollLeft();o<-3&&(o=-3),o>this.offsetHeight-3&&(o=this.offsetHeight-3),r<-3&&(r=-3),r>this.offsetWidth-3&&(r=this.offsetWidth-3);var t=(r+3)/260*100,n=100-(o+3)/180*100;E=n,H=t,L(D,t,n,W),e.preventDefault(),y.trigger(e,"mousedown")}),w.on("mousedown",function(e){var i=this.offsetLeft,o=e.clientX,r=function(e){var r=i+(e.clientX-o),t=C[0].offsetWidth;r<0&&(r=0),r>t&&(r=t);var n=Math.round(r/280*100)/100;W=n,L(D,H,E,n),e.preventDefault()};Y(r),e.preventDefault()}),C.on("click",function(e){var o=e.clientX-i(this).offset().left;o<0&&(o=0),o>this.offsetWidth&&(o=this.offsetWidth);var r=Math.round(o/280*100)/100;W=r,L(D,H,E,r),e.preventDefault()}),F.each(function(){i(this).on("click",function(){i(this).parent(".layui-colorpicker-pre").addClass("selected").siblings().removeClass("selected");var e,o=this.style.backgroundColor,r=k(P(o)),t=o.slice(o.lastIndexOf(",")+1,o.length-1);D=r.h,H=r.s,E=r.b,3==(o.match(/[0-9]{1,3}/g)||[]).length&&(t=1),W=t,e=280*t,L(r.h,r.s,r.b,t)})})},D.prototype.select=function(e,i,o,r){var t=this,n=(t.config,C({h:e,s:100,b:100})),l=C({h:e,s:i,b:o}),c=e/360*180,a=180-o/100*180-3,s=i/100*260-3;t.elemPicker.find("."+p).css("top",c),t.elemPicker.find("."+g)[0].style.background="#"+n,t.elemPicker.find("."+m).css({top:a,left:s}),"change"!==r&&t.elemPicker.find("."+b).find("input").val("#"+l)},D.prototype.pickerEvents=function(){var e=this,o=e.config,r=e.elemColorBox.find("."+f),t=e.elemPicker.find("."+b+" input"),n={clear:function(i){r[0].style.background="",e.elemColorBox.find("."+d).removeClass(a).addClass(s),e.color="",o.done&&o.done(""),e.removePicker()},confirm:function(i,n){var l=t.val(),c=l,f={};if(l.indexOf(",")>-1){if(f=k(P(l)),e.select(f.h,f.s,f.b),r[0].style.background=c="#"+C(f),(l.match(/[0-9]{1,3}/g)||[]).length>3&&"rgba"===r.attr("lay-type")){var u=280*l.slice(l.lastIndexOf(",")+1,l.length-1);e.elemPicker.find("."+h).css("left",u),r[0].style.background=l,c=l}}else f=y(l),r[0].style.background=c="#"+C(f),e.elemColorBox.find("."+d).removeClass(s).addClass(a);return"change"===n?(e.select(f.h,f.s,f.b,n),void(o.change&&o.change(c))):(e.color=l,o.done&&o.done(l),void e.removePicker())}};e.elemPicker.on("click","*[colorpicker-events]",function(){var e=i(this),o=e.attr("colorpicker-events");n[o]&&n[o].call(this,e)}),t.on("keyup",function(e){var o=i(this);n.confirm.call(this,o,13===e.keyCode?null:"change")})},D.prototype.events=function(){var e=this,o=e.config,r=e.elemColorBox.find("."+f);e.elemColorBox.on("click",function(){e.renderPicker(),i(c)[0]&&(e.val(),e.side())}),o.elem[0]&&!e.elemColorBox[0].eventHandler&&(w.on("click",function(o){if(!i(o.target).hasClass(l)&&!i(o.target).parents("."+l)[0]&&!i(o.target).hasClass(c.replace(/\./g,""))&&!i(o.target).parents(c)[0]&&e.elemPicker){if(e.color){var t=k(P(e.color));e.select(t.h,t.s,t.b)}else e.elemColorBox.find("."+d).removeClass(a).addClass(s);r[0].style.background=e.color||"",e.removePicker()}}),B.on("resize",function(){return!(!e.elemPicker||!i(c)[0])&&void e.position()}),e.elemColorBox[0].eventHandler=!0)},o.render=function(e){var i=new D(e);return r.call(i)},e(t,o)});layui.define("layer",function(e){"use strict";var t=layui.$,i=layui.layer,a=layui.hint(),n=layui.device(),l="form",r=".layui-form",s="layui-this",o="layui-hide",c="layui-disabled",u=function(){this.config={verify:{required:[/[\S]+/,"必填项不能为空"],phone:[/^1\d{10}$/,"请输入正确的手机号"],email:[/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/,"邮箱格式不正确"],url:[/(^#)|(^http(s*):\/\/[^\s]+\.[^\s]+)/,"链接格式不正确"],number:function(e){if(!e||isNaN(e))return"只能填写数字"},date:[/^(\d{4})[-\/](\d{1}|0\d{1}|1[0-2])([-\/](\d{1}|0\d{1}|[1-2][0-9]|3[0-1]))*$/,"日期格式不正确"],identity:[/(^\d{15}$)|(^\d{17}(x|X|\d)$)/,"请输入正确的身份证号"]}}};u.prototype.set=function(e){var i=this;return t.extend(!0,i.config,e),i},u.prototype.verify=function(e){var i=this;return t.extend(!0,i.config.verify,e),i},u.prototype.on=function(e,t){return layui.onevent.call(this,l,e,t)},u.prototype.val=function(e,i){var a=t(r+'[lay-filter="'+e+'"]');a.each(function(e,a){var n=t(this);layui.each(i,function(e,t){var i,a=n.find('[name="'+e+'"]');a[0]&&(i=a[0].type,"checkbox"===i?a[0].checked=t:"radio"===i?a.each(function(){this.value==t&&(this.checked=!0)}):a.val(t))})}),f.render(null,e)},u.prototype.render=function(e,i){var n=this,u=t(r+function(){return i?'[lay-filter="'+i+'"]':""}()),d={select:function(){var e,i="请选择",a="layui-form-select",n="layui-select-title",r="layui-select-none",d="",f=u.find("select"),v=function(i,l){t(i.target).parent().hasClass(n)&&!l||(t("."+a).removeClass(a+"ed "+a+"up"),e&&d&&e.val(d)),e=null},y=function(i,u,f){var y,p=t(this),m=i.find("."+n),k=m.find("input"),x=i.find("dl"),g=x.children("dd"),b=this.selectedIndex;if(!u){var C=function(){var e=i.offset().top+i.outerHeight()+5-h.scrollTop(),t=x.outerHeight();b=p[0].selectedIndex,i.addClass(a+"ed"),g.removeClass(o),y=null,g.eq(b).addClass(s).siblings().removeClass(s),e+t>h.height()&&e>=t&&i.addClass(a+"up"),T()},w=function(e){i.removeClass(a+"ed "+a+"up"),k.blur(),y=null,e||$(k.val(),function(e){var i=p[0].selectedIndex;e&&(d=t(p[0].options[i]).html(),0===i&&d===k.attr("placeholder")&&(d=""),k.val(d||""))})},T=function(){var e=x.children("dd."+s);if(e[0]){var t=e.position().top,i=x.height(),a=e.height();t>i&&x.scrollTop(t+x.scrollTop()-i+a-5),t<0&&x.scrollTop(t+x.scrollTop()-5)}};m.on("click",function(e){i.hasClass(a+"ed")?w():(v(e,!0),C()),x.find("."+r).remove()}),m.find(".layui-edge").on("click",function(){k.focus()}),k.on("keyup",function(e){var t=e.keyCode;9===t&&C()}).on("keydown",function(e){var t=e.keyCode;9===t&&w();var i=function(t,a){var n,l;e.preventDefault();var r=function(){var e=x.children("dd."+s);if(x.children("dd."+o)[0]&&"next"===t){var i=x.children("dd:not(."+o+",."+c+")"),n=i.eq(0).index();if(n>=0&&n<e.index()&&!i.hasClass(s))return i.eq(0).prev()[0]?i.eq(0).prev():x.children(":last")}return a&&a[0]?a:y&&y[0]?y:e}();return l=r[t](),n=r[t]("dd:not(."+o+")"),l[0]?(y=r[t](),n[0]&&!n.hasClass(c)||!y[0]?(n.addClass(s).siblings().removeClass(s),void T()):i(t,y)):y=null};38===t&&i("prev"),40===t&&i("next"),13===t&&(e.preventDefault(),x.children("dd."+s).trigger("click"))});var $=function(e,i,a){var n=0;layui.each(g,function(){var i=t(this),l=i.text(),r=l.indexOf(e)===-1;(""===e||"blur"===a?e!==l:r)&&n++,"keyup"===a&&i[r?"addClass":"removeClass"](o)});var l=n===g.length;return i(l),l},q=function(e){var t=this.value,i=e.keyCode;return 9!==i&&13!==i&&37!==i&&38!==i&&39!==i&&40!==i&&($(t,function(e){e?x.find("."+r)[0]||x.append('<p class="'+r+'">无匹配项</p>'):x.find("."+r).remove()},"keyup"),""===t&&x.find("."+r).remove(),void T())};f&&k.on("keyup",q).on("blur",function(i){var a=p[0].selectedIndex;e=k,d=t(p[0].options[a]).html(),0===a&&d===k.attr("placeholder")&&(d=""),setTimeout(function(){$(k.val(),function(e){d||k.val("")},"blur")},200)}),g.on("click",function(){var e=t(this),a=e.attr("lay-value"),n=p.attr("lay-filter");return!e.hasClass(c)&&(e.hasClass("layui-select-tips")?k.val(""):(k.val(e.text()),e.addClass(s)),e.siblings().removeClass(s),p.val(a).removeClass("layui-form-danger"),layui.event.call(this,l,"select("+n+")",{elem:p[0],value:a,othis:i}),w(!0),!1)}),i.find("dl>dt").on("click",function(e){return!1}),t(document).off("click",v).on("click",v)}};f.each(function(e,l){var r=t(this),o=r.next("."+a),u=this.disabled,d=l.value,f=t(l.options[l.selectedIndex]),v=l.options[0];if("string"==typeof r.attr("lay-ignore"))return r.show();var h="string"==typeof r.attr("lay-search"),p=v?v.value?i:v.innerHTML||i:i,m=t(['<div class="'+(h?"":"layui-unselect ")+a,(u?" layui-select-disabled":"")+'">','<div class="'+n+'">','<input type="text" placeholder="'+p+'" '+('value="'+(d?f.html():"")+'"')+(h?"":" readonly")+' class="layui-input'+(h?"":" layui-unselect")+(u?" "+c:"")+'">','<i class="layui-edge"></i></div>','<dl class="layui-anim layui-anim-upbit'+(r.find("optgroup")[0]?" layui-select-group":"")+'">',function(e){var t=[];return layui.each(e,function(e,a){0!==e||a.value?"optgroup"===a.tagName.toLowerCase()?t.push("<dt>"+a.label+"</dt>"):t.push('<dd lay-value="'+a.value+'" class="'+(d===a.value?s:"")+(a.disabled?" "+c:"")+'">'+a.innerHTML+"</dd>"):t.push('<dd lay-value="" class="layui-select-tips">'+(a.innerHTML||i)+"</dd>")}),0===t.length&&t.push('<dd lay-value="" class="'+c+'">没有选项</dd>'),t.join("")}(r.find("*"))+"</dl>","</div>"].join(""));o[0]&&o.remove(),r.after(m),y.call(this,m,u,h)})},checkbox:function(){var e={checkbox:["layui-form-checkbox","layui-form-checked","checkbox"],_switch:["layui-form-switch","layui-form-onswitch","switch"]},i=u.find("input[type=checkbox]"),a=function(e,i){var a=t(this);e.on("click",function(){var t=a.attr("lay-filter"),n=(a.attr("lay-text")||"").split("|");a[0].disabled||(a[0].checked?(a[0].checked=!1,e.removeClass(i[1]).find("em").text(n[1])):(a[0].checked=!0,e.addClass(i[1]).find("em").text(n[0])),layui.event.call(a[0],l,i[2]+"("+t+")",{elem:a[0],value:a[0].value,othis:e}))})};i.each(function(i,n){var l=t(this),r=l.attr("lay-skin"),s=(l.attr("lay-text")||"").split("|"),o=this.disabled;"switch"===r&&(r="_"+r);var u=e[r]||e.checkbox;if("string"==typeof l.attr("lay-ignore"))return l.show();var d=l.next("."+u[0]),f=t(['<div class="layui-unselect '+u[0],n.checked?" "+u[1]:"",o?" layui-checkbox-disbaled "+c:"",'"',r?' lay-skin="'+r+'"':"",">",function(){var e=n.title.replace(/\s/g,""),t={checkbox:[e?"<span>"+n.title+"</span>":"",'<i class="layui-icon layui-icon-ok"></i>'].join(""),_switch:"<em>"+((n.checked?s[0]:s[1])||"")+"</em><i></i>"};return t[r]||t.checkbox}(),"</div>"].join(""));d[0]&&d.remove(),l.after(f),a.call(this,f,u)})},radio:function(){var e="layui-form-radio",i=["",""],a=u.find("input[type=radio]"),n=function(a){var n=t(this),s="layui-anim-scaleSpring";a.on("click",function(){var o=n[0].name,c=n.parents(r),u=n.attr("lay-filter"),d=c.find("input[name="+o.replace(/(\.|#|\[|\])/g,"\\$1")+"]");n[0].disabled||(layui.each(d,function(){var a=t(this).next("."+e);this.checked=!1,a.removeClass(e+"ed"),a.find(".layui-icon").removeClass(s).html(i[1])}),n[0].checked=!0,a.addClass(e+"ed"),a.find(".layui-icon").addClass(s).html(i[0]),layui.event.call(n[0],l,"radio("+u+")",{elem:n[0],value:n[0].value,othis:a}))})};a.each(function(a,l){var r=t(this),s=r.next("."+e),o=this.disabled;if("string"==typeof r.attr("lay-ignore"))return r.show();s[0]&&s.remove();var u=t(['<div class="layui-unselect '+e,l.checked?" "+e+"ed":"",(o?" layui-radio-disbaled "+c:"")+'">','<i class="layui-anim layui-icon">'+i[l.checked?0:1]+"</i>","<div>"+function(){var e=l.title||"";return"string"==typeof r.next().attr("lay-radio")&&(e=r.next().html(),r.next().remove()),e}()+"</div>","</div>"].join(""));r.after(u),n.call(this,u)})}};return e?d[e]?d[e]():a.error("不支持的"+e+"表单渲染"):layui.each(d,function(e,t){t()}),n};var d=function(){var e=t(this),a=f.config.verify,s=null,o="layui-form-danger",c={},u=e.parents(r),d=u.find("*[lay-verify]"),v=e.parents("form")[0],h=u.find("input,select,textarea"),y=e.attr("lay-filter");if(layui.each(d,function(e,l){var r=t(this),c=r.attr("lay-verify").split("|"),u=r.attr("lay-verType"),d=r.val();if(r.removeClass(o),layui.each(c,function(e,t){var c,f="",v="function"==typeof a[t];if(a[t]){var c=v?f=a[t](d,l):!a[t][0].test(d);if(f=f||a[t][1],"required"===t&&(f=r.attr("lay-reqText")||f),c)return"tips"===u?i.tips(f,function(){return"string"==typeof r.attr("lay-ignore")||"select"!==l.tagName.toLowerCase()&&!/^checkbox|radio$/.test(l.type)?r:r.next()}(),{tips:1}):"alert"===u?i.alert(f,{title:"提示",shadeClose:!0}):i.msg(f,{icon:5,shift:6}),n.android||n.ios||setTimeout(function(){l.focus()},7),r.addClass(o),s=!0}}),s)return s}),s)return!1;var p={};return layui.each(h,function(e,t){if(t.name=(t.name||"").replace(/^\s*|\s*&/,""),t.name){if(/^.*\[\]$/.test(t.name)){var i=t.name.match(/^(.*)\[\]$/g)[0];p[i]=0|p[i],t.name=t.name.replace(/^(.*)\[\]$/,"$1["+p[i]++ +"]")}/^checkbox|radio$/.test(t.type)&&!t.checked||(c[t.name]=t.value)}}),layui.event.call(this,l,"submit("+y+")",{elem:this,form:v,field:c})},f=new u,v=t(document),h=t(window);f.render(),v.on("reset",r,function(){var e=t(this).attr("lay-filter");setTimeout(function(){f.render(null,e)},50)}),v.on("submit",r,d).on("click","*[lay-submit]",d),e(l,f)});layui.define("form",function(e){"use strict";var i=layui.$,a=layui.form,n="tree",r={config:{},index:layui[n]?layui[n].index+1e4:0,set:function(e){var a=this;return a.config=i.extend({},a.config,e),a},on:function(e,i){return layui.onevent.call(this,n,e,i)}},l=function(){var e=this,i=e.config,a=i.id||e.index;return l.that[a]=e,l.config[a]=i,{config:i,reload:function(i){e.reload.call(e,i)},getChecked:function(){return e.getChecked.call(e)},setChecked:function(i){return e.setChecked.call(e,i)}}},t="layui-hide",d="layui-disabled",s="layui-tree-set",c="layui-tree-iconClick",o="layui-icon-addition",h="layui-icon-subtraction",u="layui-tree-entry",f="layui-tree-main",p="layui-tree-txt",y="layui-tree-pack",v="layui-tree-spread",C="layui-tree-setLineShort",m="layui-tree-showLine",k="layui-tree-lineExtend",g=function(e){var a=this;a.index=++r.index,a.config=i.extend({},a.config,r.config,e),a.render()};g.prototype.config={data:[],showCheckbox:!1,showLine:!0,accordion:!1,onlyIconControl:!1,isJump:!1,edit:!1,text:{defaultNodeName:"未命名",none:"无数据"}},g.prototype.reload=function(e){var a=this;layui.each(e,function(e,i){i.constructor===Array&&delete a.config[e]}),a.config=i.extend(!0,{},a.config,e),a.render()},g.prototype.render=function(){var e=this,a=e.config,n=i('<div class="layui-tree'+(a.showCheckbox?" layui-form":"")+(a.showLine?" layui-tree-line":"")+'" lay-filter="LAY-tree-'+e.index+'"></div>');e.tree(n);var r=a.elem=i(a.elem);if(r[0]){if(a.showSearch&&n.prepend('<input type="text" class="layui-input layui-tree-search" placeholder="请输入关键字进行过滤">'),e.key=a.id||e.index,e.elem=n,e.elemNone=i('<div class="layui-tree-emptyText">'+a.text.none+"</div>"),r.html(e.elem),0==e.elem.find(".layui-tree-set").length)return e.elem.append(e.elemNone);a.drag&&e.drag(),a.showCheckbox&&e.renderForm("checkbox"),e.elem.find(".layui-tree-set").each(function(){var e=i(this);e.parent(".layui-tree-pack")[0]||e.addClass("layui-tree-setHide"),!e.next()[0]&&e.parents(".layui-tree-pack").eq(1).hasClass("layui-tree-lineExtend")&&e.addClass(C),e.next()[0]||e.parents(".layui-tree-set").eq(0).next()[0]||e.addClass(C)}),e.events()}},g.prototype.renderForm=function(e){a.render(e,"LAY-tree-"+this.index)},g.prototype.tree=function(e,a){var n=this,r=n.config,l=a||r.data;layui.each(l,function(a,l){var c=l.children&&l.children.length>0,o=i('<div class="layui-tree-pack" '+(l.spread?'style="display: block;"':"")+'"></div>'),h=i(['<div data-id="'+l.id+'" class="layui-tree-set'+(l.spread?" layui-tree-spread":"")+(l.checked?" layui-tree-checkedFirst":"")+'">',"<div "+(r.drag&&!l.fixed?'draggable="true"':"")+' class="layui-tree-entry">','<div class="layui-tree-main">',function(){return r.showLine?c?'<span class="layui-tree-iconClick layui-tree-icon"><i class="layui-icon '+(l.spread?"layui-icon-subtraction":"layui-icon-addition")+'"></i></span>':'<span class="layui-tree-iconClick"><i class="layui-icon layui-icon-file"></i></span>':'<span class="layui-tree-iconClick"><i class="layui-tree-iconArrow '+(c?"":t)+'"></i></span>'}(),function(){return r.showCheckbox?'<input type="checkbox" name="layuiTreeCheck" lay-skin="primary" '+(l.disabled?"disabled":"")+' value="'+l.id+'">':""}(),function(){return r.isJump&&l.href?'<a href="'+l.href+'" target="_blank" class="'+p+'">'+(l.title||l.label||r.text.defaultNodeName)+"</a>":'<span class="'+p+(l.disabled?" "+d:"")+'">'+(l.title||l.label||r.text.defaultNodeName)+"</span>"}(),"</div>",function(){if(!r.edit)return"";var e={add:'<i class="layui-icon layui-icon-add-1" data-type="add"></i>',update:'<i class="layui-icon layui-icon-edit" data-type="update"></i>',del:'<i class="layui-icon layui-icon-delete" data-type="del"></i>'},i=['<div class="layui-btn-group layui-tree-btnGroup">'];return r.edit===!0&&(r.edit=["update","del"]),"object"==typeof r.edit?(layui.each(r.edit,function(a,n){i.push(e[n]||"")}),i.join("")+"</div>"):void 0}(),"</div></div>"].join(""));c&&(h.append(o),n.tree(o,l.children)),e.append(h),h.prev("."+s)[0]&&h.prev().children(".layui-tree-pack").addClass("layui-tree-showLine"),c||h.parent(".layui-tree-pack").addClass("layui-tree-lineExtend"),n.spread(h,l),r.showCheckbox&&n.checkClick(h,l),r.edit&&n.operate(h,l)})},g.prototype.spread=function(e,a){var n=this,r=n.config,l=e.children("."+u),t=l.children("."+f),C=l.find("."+c),m=l.find("."+p),k=r.onlyIconControl?C:t,g="";k.on("click",function(i){var a=e.children("."+y),n=k.children(".layui-icon")[0]?k.children(".layui-icon"):k.find(".layui-tree-icon").children(".layui-icon");if(a[0]){if(e.hasClass(v))e.removeClass(v),a.slideUp(200),n.removeClass(h).addClass(o);else if(e.addClass(v),a.slideDown(200),n.addClass(h).removeClass(o),r.accordion){var l=e.siblings("."+s);l.removeClass(v),l.children("."+y).slideUp(200),l.find(".layui-tree-icon").children(".layui-icon").removeClass(h).addClass(o)}}else g="normal"}),m.on("click",function(){var n=i(this);n.hasClass(d)||(g=e.hasClass(v)?r.onlyIconControl?"open":"close":r.onlyIconControl?"close":"open",r.click&&r.click({elem:e,state:g,data:a}))})},g.prototype.setCheckbox=function(e,i,a){var n=this,r=(n.config,a.prop("checked"));if("object"==typeof i.children||e.find("."+y)[0]){var l=e.find("."+y).find('input[name="layuiTreeCheck"]');l.each(function(){this.disabled||(this.checked=r)})}var t=function(e){if(e.parents("."+s)[0]){var i,a=e.parent("."+y),n=a.parent(),l=a.prev().find('input[name="layuiTreeCheck"]');r?l.prop("checked",r):(a.find('input[name="layuiTreeCheck"]').each(function(){this.checked&&(i=!0)}),i||l.prop("checked",!1)),t(n)}};t(e),n.renderForm("checkbox")},g.prototype.checkClick=function(e,a){var n=this,r=n.config,l=e.children("."+u),t=l.children("."+f);t.on("click",'input[name="layuiTreeCheck"]+',function(l){layui.stope(l);var t=i(this).prev(),d=t.prop("checked");t.prop("disabled")||(n.setCheckbox(e,a,t),r.oncheck&&r.oncheck({elem:e,checked:d,data:a}))})},g.prototype.operate=function(e,a){var n=this,r=n.config,l=e.children("."+u),d=l.children("."+f);l.children(".layui-tree-btnGroup").on("click",".layui-icon",function(l){layui.stope(l);var f=i(this).data("type"),g=e.children("."+y),x={data:a,type:f,elem:e};if("add"==f){g[0]||(r.showLine?(d.find("."+c).addClass("layui-tree-icon"),d.find("."+c).children(".layui-icon").addClass(o).removeClass("layui-icon-file")):d.find(".layui-tree-iconArrow").removeClass(t),e.append('<div class="layui-tree-pack"></div>'));var b=r.operate&&r.operate(x),w={};if(w.title=r.text.defaultNodeName,w.id=b,n.tree(e.children("."+y),[w]),r.showLine)if(g[0])g.hasClass(k)||g.addClass(k),e.find("."+y).each(function(){i(this).children("."+s).last().addClass(C)}),g.children("."+s).last().prev().hasClass(C)?g.children("."+s).last().prev().removeClass(C):g.children("."+s).last().removeClass(C),!e.parent("."+y)[0]&&e.next()[0]&&g.children("."+s).last().removeClass(C);else{var T=e.siblings("."+s),L=1,N=e.parent("."+y);layui.each(T,function(e,a){i(a).children("."+y)[0]||(L=0)}),1==L?(T.children("."+y).addClass(m),T.children("."+y).children("."+s).removeClass(C),e.children("."+y).addClass(m),N.removeClass(k),N.children("."+s).last().children("."+y).children("."+s).last().addClass(C)):e.children("."+y).children("."+s).addClass(C)}if(!r.showCheckbox)return;if(d.find('input[name="layuiTreeCheck"]')[0].checked){var A=e.children("."+y).children("."+s).last();A.find('input[name="layuiTreeCheck"]')[0].checked=!0}n.renderForm("checkbox")}else if("update"==f){var q=d.children("."+p).html();d.children("."+p).html(""),d.append('<input type="text" class="layui-tree-editInput">'),d.children(".layui-tree-editInput").val(q).focus();var F=function(e){var i=e.val().trim();i=i?i:r.text.defaultNodeName,e.remove(),d.children("."+p).html(i),x.data.title=i,r.operate&&r.operate(x)};d.children(".layui-tree-editInput").blur(function(){F(i(this))}),d.children(".layui-tree-editInput").on("keydown",function(e){13===e.keyCode&&(e.preventDefault(),F(i(this)))})}else{if(r.operate&&r.operate(x),x.status="remove",!e.prev("."+s)[0]&&!e.next("."+s)[0]&&!e.parent("."+y)[0])return e.remove(),void n.elem.append(n.elemNone);if(e.siblings("."+s).children("."+u)[0]){if(r.showCheckbox){var I=function(e){if(e.parents("."+s)[0]){var a=e.siblings("."+s).children("."+u),r=e.parent("."+y).prev(),l=r.find('input[name="layuiTreeCheck"]')[0],t=1,d=0;0==l.checked&&(a.each(function(e,a){var n=i(a).find('input[name="layuiTreeCheck"]')[0];0!=n.checked||n.disabled||(t=0),n.disabled||(d=1)}),1==t&&1==d&&(l.checked=!0,n.renderForm("checkbox"),I(r.parent("."+s))))}};I(e)}if(r.showLine){var T=e.siblings("."+s),L=1,N=e.parent("."+y);layui.each(T,function(e,a){i(a).children("."+y)[0]||(L=0)}),1==L?(g[0]||(N.removeClass(k),T.children("."+y).addClass(m),T.children("."+y).children("."+s).removeClass(C)),e.next()[0]?N.children("."+s).last().children("."+y).children("."+s).last().addClass(C):e.prev().children("."+y).children("."+s).last().addClass(C),e.next()[0]||e.parents("."+s)[1]||e.parents("."+s).eq(0).next()[0]||e.prev("."+s).addClass(C)):!e.next()[0]&&e.hasClass(C)&&e.prev().addClass(C)}}else{var H=e.parent("."+y).prev();if(r.showLine){H.find("."+c).removeClass("layui-tree-icon"),H.find("."+c).children(".layui-icon").removeClass(h).addClass("layui-icon-file");var S=H.parents("."+y).eq(0);S.addClass(k),S.children("."+s).each(function(){i(this).children("."+y).children("."+s).last().addClass(C)})}else H.find(".layui-tree-iconArrow").addClass(t);e.parents("."+s).eq(0).removeClass(v),e.parent("."+y).remove()}e.remove()}})},g.prototype.drag=function(){var e=this,a=e.config;e.elem.on("dragstart","."+u,function(){var e=i(this).parent("."+s),n=e.parents("."+s)[0]?e.parents("."+s).eq(0):"未找到父节点";a.dragstart&&a.dragstart(e,n)}),e.elem.on("dragend","."+u,function(n){var n=n||event,r=n.clientY,l=i(this),d=l.parent("."+s),f=d.height(),p=d.offset().top,g=e.elem.find("."+s),x=e.elem.height(),b=e.elem.offset().top,w=x+b-13,T=d.parents("."+s)[0],L=d.next()[0];if(T)var N=d.parent("."+y),A=d.parents("."+s).eq(0),q=A.parent("."+y),F=A.offset().top,I=d.siblings(),H=A.children("."+y).children("."+s).length;var S=function(n){if(T||L||e.elem.children("."+s).last().children("."+y).children("."+s).last().addClass(C),!T)return void d.removeClass("layui-tree-setHide");if(1==H)a.showLine?(n.find("."+c).removeClass("layui-tree-icon"),n.find("."+c).children(".layui-icon").removeClass(h).addClass("layui-icon-file"),q.addClass(k),q.children("."+s).children("."+y).each(function(){i(this).children("."+s).last().addClass(C)})):n.find(".layui-tree-iconArrow").addClass(t),n.children("."+y).remove(),n.removeClass(v);else{if(a.showLine){var r=1;layui.each(I,function(e,a){i(a).children("."+y)[0]||(r=0)}),1==r?(d.children("."+y)[0]||(N.removeClass(k),I.children("."+y).addClass(m),I.children("."+y).children("."+s).removeClass(C)),N.children("."+s).last().children("."+y).children("."+s).last().addClass(C),L||n.parents("."+s)[0]||n.next()[0]||N.children("."+s).last().addClass(C)):!L&&d.hasClass(C)&&N.children("."+s).last().addClass(C)}if(a.showCheckbox){var l=function(a){if(a){if(!a.parents("."+s)[0])return}else if(!n[0])return;var r=a?a.siblings().children("."+u):I.children("."+u),t=a?a.parent("."+y).prev():N.prev(),d=t.find('input[name="layuiTreeCheck"]')[0],c=1,o=0;0==d.checked&&(r.each(function(e,a){var n=i(a).find('input[name="layuiTreeCheck"]')[0];0!=n.checked||n.disabled||(c=0),n.disabled||(o=1)}),1==c&&1==o&&(d.checked=!0,e.renderForm("checkbox"),l(t.parent("."+s)||n)))};l()}}};g.each(function(){if(0!=i(this).height()){if(r>p&&r<p+f)return void(a.dragend&&a.dragend("drag error"));if(1==H&&r>F&&r<p+f)return void(a.dragend&&a.dragend("drag error"));var n=i(this).offset().top;if(r>n&&r<n+15){if(i(this).children("."+y)[0]||(a.showLine?(i(this).find("."+c).eq(0).addClass("layui-tree-icon"),i(this).find("."+c).eq(0).children(".layui-icon").addClass(o).removeClass("layui-icon-file")):i(this).find(".layui-tree-iconArrow").removeClass(t),i(this).append('<div class="layui-tree-pack"></div>')),i(this).children("."+y).append(d),S(A),a.showLine){var l=i(this).children("."+y).children("."+s);if(d.children("."+y).children("."+s).last().addClass(C),1==l.length){var h=i(this).siblings("."+s),v=1,g=i(this).parent("."+y);layui.each(h,function(e,a){i(a).children("."+y)[0]||(v=0)}),1==v?(h.children("."+y).addClass(m),h.children("."+y).children("."+s).removeClass(C),i(this).children("."+y).addClass(m),g.removeClass(k),g.children("."+s).last().children("."+y).children("."+s).last().addClass(C).removeClass("layui-tree-setHide")):i(this).children("."+y).children("."+s).addClass(C).removeClass("layui-tree-setHide")}else d.prev("."+s).hasClass(C)?(d.prev("."+s).removeClass(C),d.addClass(C)):(d.removeClass("layui-tree-setLineShort layui-tree-setHide"),d.children("."+y)[0]?d.prev("."+s).children("."+y).children("."+s).last().removeClass(C):d.siblings("."+s).find("."+y).each(function(){i(this).children("."+s).last().addClass(C)})),i(this).next()[0]||d.addClass(C)}if(a.showCheckbox&&i(this).children("."+u).find('input[name="layuiTreeCheck"]')[0].checked){var x=d.children("."+u);x.find('input[name="layuiTreeCheck"]+').click()}return a.dragend&&a.dragend("drag success",d,i(this)),!1}if(r<n){if(i(this).before(d),S(A),a.showLine){var b=d.children("."+y),T=i(this).parents("."+s).eq(0),L=T.children("."+y).children("."+s).last();if(b[0]){d.removeClass(C),b.children("."+s).last().removeClass(C);var h=d.siblings("."+s),v=1;layui.each(h,function(e,a){i(a).children("."+y)[0]||(v=0)}),1==v?T[0]&&(h.children("."+y).addClass(m),h.children("."+y).children("."+s).removeClass(C),L.children("."+y).children("."+s).last().addClass(C).removeClass(m)):d.children("."+y).children("."+s).last().addClass(C),!T.parent("."+y)[0]&&T.next()[0]&&L.removeClass(C)}else T.hasClass(k)||T.addClass(k),T.find("."+y).each(function(){i(this).children("."+s).last().addClass(C)});T[0]||(d.addClass("layui-tree-setHide"),d.children("."+y).children("."+s).last().removeClass(C))}if(T[0]&&a.showCheckbox&&T.children("."+u).find('input[name="layuiTreeCheck"]')[0].checked){var x=d.children("."+u);x.find('input[name="layuiTreeCheck"]+').click()}return a.dragend&&a.dragend("拖拽成功,插入目标节点上方",d,i(this)),!1}if(r>w)return e.elem.children("."+s).last().children("."+y).addClass(m),e.elem.append(d),S(A),d.prev().children("."+y).children("."+s).last().removeClass(C),d.addClass("layui-tree-setHide"),d.children("."+y).children("."+s).last().addClass(C),a.dragend&&a.dragend("拖拽成功,插入最外层节点",d,e.elem),!1}})})},g.prototype.events=function(){var e=this,a=e.config,n=e.elem.find(".layui-tree-checkedFirst");layui.each(n,function(e,a){i(a).children("."+u).find('input[name="layuiTreeCheck"]+').trigger("click")}),e.elem.find(".layui-tree-search").on("keyup",function(){var n=i(this),r=n.val(),l=n.nextAll(),d=[];l.find("."+p).each(function(){var e=i(this).parents("."+u);if(i(this).html().indexOf(r)!=-1){d.push(i(this).parent());var a=function(e){e.addClass("layui-tree-searchShow"),e.parent("."+y)[0]&&a(e.parent("."+y).parent("."+s))};a(e.parent("."+s))}}),l.find("."+u).each(function(){var e=i(this).parent("."+s);e.hasClass("layui-tree-searchShow")||e.addClass(t)}),0==l.find(".layui-tree-searchShow").length&&e.elem.append(e.elemNone),a.onsearch&&a.onsearch({elem:d})}),e.elem.find(".layui-tree-search").on("keydown",function(){i(this).nextAll().find("."+u).each(function(){var e=i(this).parent("."+s);e.removeClass("layui-tree-searchShow "+t)}),i(".layui-tree-emptyText")[0]&&i(".layui-tree-emptyText").remove()})},g.prototype.getChecked=function(){var e=this,a=e.config,n=[],r=[];e.elem.find(".layui-form-checked").each(function(){n.push(i(this).prev()[0].value)});var l=function(e,a){layui.each(e,function(e,r){layui.each(n,function(e,n){if(r.id==n){var t=i.extend({},r);return delete t.children,a.push(t),r.children&&(t.children=[],l(r.children,t.children)),!0}})})};return l(i.extend({},a.data),r),r},g.prototype.setChecked=function(e){var a=this;a.config;a.elem.find("."+s).each(function(a,n){var r=i(this).data("id"),l=i(n).children("."+u).find('input[name="layuiTreeCheck"]'),t=l.next();if("number"==typeof e){if(r==e)return l[0].checked||t.click(),!1}else i.inArray(r,e)!=-1&&(l[0].checked||t.click())})},l.that={},l.config={},r.reload=function(e,i){var a=l.that[e];return a.reload(i),l.call(a)},r.getChecked=function(e){var i=l.that[e];return i.getChecked()},r.setChecked=function(e,i){var a=l.that[e];return a.setChecked(i)},r.render=function(e){var i=new g(e);return l.call(i)},e(n,r)});layui.define(["laytpl","form"],function(e){"use strict";var a=layui.$,t=layui.laytpl,n=layui.form,i="transfer",l={config:{},index:layui[i]?layui[i].index+1e4:0,set:function(e){var t=this;return t.config=a.extend({},t.config,e),t},on:function(e,a){return layui.onevent.call(this,i,e,a)}},r=function(){var e=this,a=e.config,t=a.id||e.index;return r.that[t]=e,r.config[t]=a,{config:a,reload:function(a){e.reload.call(e,a)},getData:function(){return e.getData.call(e)}}},c="layui-hide",o="layui-btn-disabled",d="layui-none",s="layui-transfer-box",u="layui-transfer-header",h="layui-transfer-search",f="layui-transfer-active",y="layui-transfer-data",p=function(e){return e=e||{},['<div class="layui-transfer-box" data-index="'+e.index+'">','<div class="layui-transfer-header">','<input type="checkbox" name="'+e.checkAllName+'" lay-filter="layTransferCheckbox" lay-type="all" lay-skin="primary" title="{{ d.data.title['+e.index+"] || 'list"+(e.index+1)+"' }}\">","</div>","{{# if(d.data.showSearch){ }}",'<div class="layui-transfer-search">','<i class="layui-icon layui-icon-search"></i>','<input type="input" class="layui-input" placeholder="关键词搜索">',"</div>","{{# } }}",'<ul class="layui-transfer-data"></ul>',"</div>"].join("")},v=['<div class="layui-transfer layui-form layui-border-box" lay-filter="LAY-transfer-{{ d.index }}">',p({index:0,checkAllName:"layTransferLeftCheckAll"}),'<div class="layui-transfer-active">','<button type="button" class="layui-btn layui-btn-sm layui-btn-primary layui-btn-disabled" data-index="0">','<i class="layui-icon layui-icon-next"></i>',"</button>",'<button type="button" class="layui-btn layui-btn-sm layui-btn-primary layui-btn-disabled" data-index="1">','<i class="layui-icon layui-icon-prev"></i>',"</button>","</div>",p({index:1,checkAllName:"layTransferRightCheckAll"}),"</div>"].join(""),x=function(e){var t=this;t.index=++l.index,t.config=a.extend({},t.config,l.config,e),t.render()};x.prototype.config={title:["列表一","列表二"],width:200,height:360,data:[],value:[],showSearch:!1,id:"",text:{none:"无数据",searchNone:"无匹配数据"}},x.prototype.reload=function(e){var t=this;layui.each(e,function(e,a){a.constructor===Array&&delete t.config[e]}),t.config=a.extend(!0,{},t.config,e),t.render()},x.prototype.render=function(){var e=this,n=e.config,i=e.elem=a(t(v).render({data:n,index:e.index})),l=n.elem=a(n.elem);l[0]&&(n.data=n.data||[],n.value=n.value||[],e.key=n.id||e.index,l.html(e.elem),e.layBox=e.elem.find("."+s),e.layHeader=e.elem.find("."+u),e.laySearch=e.elem.find("."+h),e.layData=i.find("."+y),e.layBtn=i.find("."+f+" .layui-btn"),e.layBox.css({width:n.width,height:n.height}),e.layData.css({height:function(){return n.height-e.layHeader.outerHeight()-e.laySearch.outerHeight()-2}()}),e.renderData(),e.events())},x.prototype.renderData=function(){var e=this,a=(e.config,[{checkName:"layTransferLeftCheck",views:[]},{checkName:"layTransferRightCheck",views:[]}]);e.parseData(function(e){var t=e.selected?1:0,n=["<li>",'<input type="checkbox" name="'+a[t].checkName+'" lay-skin="primary" lay-filter="layTransferCheckbox" title="'+e.title+'"'+(e.disabled?" disabled":"")+(e.checked?" checked":"")+' value="'+e.value+'">',"</li>"].join("");a[t].views.push(n),delete e.selected}),e.layData.eq(0).html(a[0].views.join("")),e.layData.eq(1).html(a[1].views.join("")),e.renderCheckBtn()},x.prototype.renderForm=function(e){n.render(e,"LAY-transfer-"+this.index)},x.prototype.renderCheckBtn=function(e){var t=this,n=t.config;e=e||{},t.layBox.each(function(i){var l=a(this),r=l.find("."+y),d=l.find("."+u).find('input[type="checkbox"]'),s=r.find('input[type="checkbox"]'),h=0,f=!1;if(s.each(function(){var e=a(this).data("hide");(this.checked||this.disabled||e)&&h++,this.checked&&!e&&(f=!0)}),d.prop("checked",f&&h===s.length),t.layBtn.eq(i)[f?"removeClass":"addClass"](o),!e.stopNone){var p=r.children("li:not(."+c+")").length;t.noneView(r,p?"":n.text.none)}}),t.renderForm("checkbox")},x.prototype.noneView=function(e,t){var n=a('<p class="layui-none">'+(t||"")+"</p>");e.find("."+d)[0]&&e.find("."+d).remove(),t.replace(/\s/g,"")&&e.append(n)},x.prototype.setValue=function(){var e=this,t=e.config,n=[];return e.layBox.eq(1).find("."+y+' input[type="checkbox"]').each(function(){var e=a(this).data("hide");e||n.push(this.value)}),t.value=n,e},x.prototype.parseData=function(e){var t=this,n=t.config,i=[];return layui.each(n.data,function(t,l){l=("function"==typeof n.parseData?n.parseData(l):l)||l,i.push(l=a.extend({},l)),layui.each(n.value,function(e,a){a==l.value&&(l.selected=!0)}),e&&e(l)}),n.data=i,t},x.prototype.getData=function(e){var a=this,t=a.config,n=[];return layui.each(e||t.value,function(e,a){layui.each(t.data,function(e,t){delete t.selected,a==t.value&&n.push(t)})}),n},x.prototype.events=function(){var e=this,t=e.config;e.elem.on("click",'input[lay-filter="layTransferCheckbox"]+',function(){var t=a(this).prev(),n=t[0].checked,i=t.parents("."+s).eq(0).find("."+y);t[0].disabled||("all"===t.attr("lay-type")&&i.find('input[type="checkbox"]').each(function(){this.disabled||(this.checked=n)}),e.renderCheckBtn({stopNone:!0}))}),e.layBtn.on("click",function(){var n=a(this),i=n.data("index"),l=e.layBox.eq(i),r=[];if(!n.hasClass(o)){e.layBox.eq(i).each(function(t){var n=a(this),i=n.find("."+y);i.children("li").each(function(){var t=a(this),n=t.find('input[type="checkbox"]'),i=n.data("hide");n[0].checked&&!i&&(n[0].checked=!1,l.siblings("."+s).find("."+y).append(t.clone()),t.remove(),r.push(n[0].value)),e.setValue()})}),e.renderCheckBtn();var c=l.siblings("."+s).find("."+h+" input");""===c.val()||c.trigger("keyup"),t.onchange&&t.onchange(e.getData(r),i)}}),e.laySearch.find("input").on("keyup",function(){var n=this.value,i=a(this).parents("."+h).eq(0).siblings("."+y),l=i.children("li");l.each(function(){var e=a(this),t=e.find('input[type="checkbox"]'),i=t[0].title.indexOf(n)!==-1;e[i?"removeClass":"addClass"](c),t.data("hide",!i)}),e.renderCheckBtn();var r=l.length===i.children("li."+c).length;e.noneView(i,r?t.text.searchNone:"")})},r.that={},r.config={},l.reload=function(e,a){var t=r.that[e];return t.reload(a),r.call(t)},l.getData=function(e){var a=r.that[e];return a.getData()},l.render=function(e){var a=new x(e);return r.call(a)},e(i,l)});layui.define(["laytpl","laypage","layer","form","util"],function(e){"use strict";var t=layui.$,i=layui.laytpl,a=layui.laypage,l=layui.layer,n=layui.form,o=(layui.util,layui.hint()),r=layui.device(),d={config:{checkName:"LAY_CHECKED",indexName:"LAY_TABLE_INDEX"},cache:{},index:layui.table?layui.table.index+1e4:0,set:function(e){var i=this;return i.config=t.extend({},i.config,e),i},on:function(e,t){return layui.onevent.call(this,y,e,t)}},c=function(){var e=this,t=e.config,i=t.id||t.index;return i&&(c.that[i]=e,c.config[i]=t),{config:t,reload:function(t){e.reload.call(e,t)},setColsWidth:function(){e.setColsWidth.call(e)},resize:function(){e.resize.call(e)}}},s=function(e){var t=c.config[e];return t||o.error("The ID option was not found in the table instance"),t||null},u=function(e,a,l,n){var o=e.templet?function(){return"function"==typeof e.templet?e.templet(l):i(t(e.templet).html()||String(a)).render(l)}():a;return n?t("<div>"+o+"</div>").text():o},y="table",h=".layui-table",f="layui-hide",p="layui-none",v="layui-table-view",m=".layui-table-tool",g=".layui-table-box",b=".layui-table-init",x=".layui-table-header",k=".layui-table-body",C=".layui-table-main",w=".layui-table-fixed",T=".layui-table-fixed-l",A=".layui-table-fixed-r",L=".layui-table-total",N=".layui-table-page",S=".layui-table-sort",W="layui-table-edit",_="layui-table-hover",E=function(e){var t='{{#if(item2.colspan){}} colspan="{{item2.colspan}}"{{#} if(item2.rowspan){}} rowspan="{{item2.rowspan}}"{{#}}}';return e=e||{},['<table cellspacing="0" cellpadding="0" border="0" class="layui-table" ','{{# if(d.data.skin){ }}lay-skin="{{d.data.skin}}"{{# } }} {{# if(d.data.size){ }}lay-size="{{d.data.size}}"{{# } }} {{# if(d.data.even){ }}lay-even{{# } }}>',"<thead>","{{# layui.each(d.data.cols, function(i1, item1){ }}","<tr>","{{# layui.each(item1, function(i2, item2){ }}",'{{# if(item2.fixed && item2.fixed !== "right"){ left = true; } }}','{{# if(item2.fixed === "right"){ right = true; } }}',function(){return e.fixed&&"right"!==e.fixed?'{{# if(item2.fixed && item2.fixed !== "right"){ }}':"right"===e.fixed?'{{# if(item2.fixed === "right"){ }}':""}(),"{{# var isSort = !(item2.colGroup) && item2.sort; }}",'<th data-field="{{ item2.field||i2 }}" data-key="{{d.index}}-{{i1}}-{{i2}}" {{# if( item2.parentKey){ }}data-parentkey="{{ item2.parentKey }}"{{# } }} {{# if(item2.minWidth){ }}data-minwidth="{{item2.minWidth}}"{{# } }} '+t+' {{# if(item2.unresize || item2.colGroup){ }}data-unresize="true"{{# } }} class="{{# if(item2.hide){ }}layui-hide{{# } }}{{# if(isSort){ }} layui-unselect{{# } }}{{# if(!item2.field){ }} layui-table-col-special{{# } }}">','<div class="layui-table-cell laytable-cell-',"{{# if(item2.colGroup){ }}","group","{{# } else { }}","{{d.index}}-{{i1}}-{{i2}}",'{{# if(item2.type !== "normal"){ }}'," laytable-cell-{{ item2.type }}","{{# } }}","{{# } }}",'" {{#if(item2.align){}}align="{{item2.align}}"{{#}}}>','{{# if(item2.type === "checkbox"){ }}','<input type="checkbox" name="layTableCheckbox" lay-skin="primary" lay-filter="layTableAllChoose" {{# if(item2[d.data.checkName]){ }}checked{{# }; }}>',"{{# } else { }}",'<span>{{item2.title||""}}</span>',"{{# if(isSort){ }}",'<span class="layui-table-sort layui-inline"><i class="layui-edge layui-table-sort-asc" title="升序"></i><i class="layui-edge layui-table-sort-desc" title="降序"></i></span>',"{{# } }}","{{# } }}","</div>","</th>",e.fixed?"{{# }; }}":"","{{# }); }}","</tr>","{{# }); }}","</thead>","</table>"].join("")},z=['<table cellspacing="0" cellpadding="0" border="0" class="layui-table" ','{{# if(d.data.skin){ }}lay-skin="{{d.data.skin}}"{{# } }} {{# if(d.data.size){ }}lay-size="{{d.data.size}}"{{# } }} {{# if(d.data.even){ }}lay-even{{# } }}>',"<tbody></tbody>","</table>"].join(""),H=['<div class="layui-form layui-border-box {{d.VIEW_CLASS}}" lay-filter="LAY-table-{{d.index}}" lay-id="{{ d.data.id }}" style="{{# if(d.data.width){ }}width:{{d.data.width}}px;{{# } }} {{# if(d.data.height){ }}height:{{d.data.height}}px;{{# } }}">',"{{# if(d.data.toolbar){ }}",'<div class="layui-table-tool">','<div class="layui-table-tool-temp"></div>','<div class="layui-table-tool-self"></div>',"</div>","{{# } }}",'<div class="layui-table-box">',"{{# if(d.data.loading){ }}",'<div class="layui-table-init" style="background-color: #fff;">','<i class="layui-icon layui-icon-loading layui-anim layui-anim-rotate layui-anim-loop"></i>',"</div>","{{# } }}","{{# var left, right; }}",'<div class="layui-table-header">',E(),"</div>",'<div class="layui-table-body layui-table-main">',z,"</div>","{{# if(left){ }}",'<div class="layui-table-fixed layui-table-fixed-l">','<div class="layui-table-header">',E({fixed:!0}),"</div>",'<div class="layui-table-body">',z,"</div>","</div>","{{# }; }}","{{# if(right){ }}",'<div class="layui-table-fixed layui-table-fixed-r">','<div class="layui-table-header">',E({fixed:"right"}),'<div class="layui-table-mend"></div>',"</div>",'<div class="layui-table-body">',z,"</div>","</div>","{{# }; }}","</div>","{{# if(d.data.totalRow){ }}",'<div class="layui-table-total">','<table cellspacing="0" cellpadding="0" border="0" class="layui-table" ','{{# if(d.data.skin){ }}lay-skin="{{d.data.skin}}"{{# } }} {{# if(d.data.size){ }}lay-size="{{d.data.size}}"{{# } }} {{# if(d.data.even){ }}lay-even{{# } }}>','<tbody><tr><td><div class="layui-table-cell" style="visibility: hidden;">Total</div></td></tr></tbody>',"</table>","</div>","{{# } }}","{{# if(d.data.page){ }}",'<div class="layui-table-page">','<div id="layui-table-page{{d.index}}"></div>',"</div>","{{# } }}","<style>","{{# layui.each(d.data.cols, function(i1, item1){","layui.each(item1, function(i2, item2){ }}",".laytable-cell-{{d.index}}-{{i1}}-{{i2}}{ ","{{# if(item2.width){ }}","width: {{item2.width}}px;","{{# } }}"," }","{{# });","}); }}","</style>","</div>"].join(""),R=t(window),F=t(document),I=function(e){var i=this;i.index=++d.index,i.config=t.extend({},i.config,d.config,e),i.render()};I.prototype.config={limit:10,loading:!0,cellMinWidth:60,defaultToolbar:["filter","exports","print"],autoSort:!0,text:{none:"无数据"}},I.prototype.render=function(){var e=this,a=e.config;if(a.elem=t(a.elem),a.where=a.where||{},a.id=a.id||a.elem.attr("id")||e.index,a.request=t.extend({pageName:"page",limitName:"limit"},a.request),a.response=t.extend({statusName:"code",statusCode:0,msgName:"msg",dataName:"data",countName:"count"},a.response),"object"==typeof a.page&&(a.limit=a.page.limit||a.limit,a.limits=a.page.limits||a.limits,e.page=a.page.curr=a.page.curr||1,delete a.page.elem,delete a.page.jump),!a.elem[0])return e;a.height&&/^full-\d+$/.test(a.height)&&(e.fullHeightGap=a.height.split("-")[1],a.height=R.height()-e.fullHeightGap),e.setInit();var l=a.elem,n=l.next("."+v),o=e.elem=t(i(H).render({VIEW_CLASS:v,data:a,index:e.index}));if(a.index=e.index,e.key=a.id||a.index,n[0]&&n.remove(),l.after(o),e.layTool=o.find(m),e.layBox=o.find(g),e.layHeader=o.find(x),e.layMain=o.find(C),e.layBody=o.find(k),e.layFixed=o.find(w),e.layFixLeft=o.find(T),e.layFixRight=o.find(A),e.layTotal=o.find(L),e.layPage=o.find(N),e.renderToolbar(),e.fullSize(),a.cols.length>1){var r=e.layFixed.find(x).find("th");r.height(e.layHeader.height()-1-parseFloat(r.css("padding-top"))-parseFloat(r.css("padding-bottom")))}e.pullData(e.page),e.events()},I.prototype.initOpts=function(e){var t=this,i=(t.config,{checkbox:48,radio:48,space:15,numbers:40});e.checkbox&&(e.type="checkbox"),e.space&&(e.type="space"),e.type||(e.type="normal"),"normal"!==e.type&&(e.unresize=!0,e.width=e.width||i[e.type])},I.prototype.setInit=function(e){var t=this,i=t.config;return i.clientWidth=i.width||function(){var e=function(t){var a,l;t=t||i.elem.parent(),a=t.width();try{l="none"===t.css("display")}catch(n){}return!t[0]||a&&!l?a:e(t.parent())};return e()}(),"width"===e?i.clientWidth:void layui.each(i.cols,function(e,a){layui.each(a,function(l,n){if(!n)return void a.splice(l,1);if(n.key=e+"-"+l,n.hide=n.hide||!1,n.colGroup||n.colspan>1){var o=0;layui.each(i.cols[e+1],function(t,i){i.HAS_PARENT||o>1&&o==n.colspan||(i.HAS_PARENT=!0,i.parentKey=e+"-"+l,o+=parseInt(i.colspan>1?i.colspan:1))}),n.colGroup=!0}t.initOpts(n)})})},I.prototype.renderToolbar=function(){var e=this,a=e.config,l=['<div class="layui-inline" lay-event="add"><i class="layui-icon layui-icon-add-1"></i></div>','<div class="layui-inline" lay-event="update"><i class="layui-icon layui-icon-edit"></i></div>','<div class="layui-inline" lay-event="delete"><i class="layui-icon layui-icon-delete"></i></div>'].join(""),n=e.layTool.find(".layui-table-tool-temp");if("default"===a.toolbar)n.html(l);else if("string"==typeof a.toolbar){var o=t(a.toolbar).html()||"";o&&n.html(i(o).render(a))}var r={filter:{title:"筛选列",layEvent:"LAYTABLE_COLS",icon:"layui-icon-cols"},exports:{title:"导出",layEvent:"LAYTABLE_EXPORT",icon:"layui-icon-export"},print:{title:"打印",layEvent:"LAYTABLE_PRINT",icon:"layui-icon-print"}},d=[];"object"==typeof a.defaultToolbar&&layui.each(a.defaultToolbar,function(e,t){var i=r[t];i&&d.push('<div class="layui-inline" title="'+i.title+'" lay-event="'+i.layEvent+'"><i class="layui-icon '+i.icon+'"></i></div>')}),e.layTool.find(".layui-table-tool-self").html(d.join(""))},I.prototype.setParentCol=function(e,t){var i=this,a=i.config,l=i.layHeader.find('th[data-key="'+a.index+"-"+t+'"]'),n=parseInt(l.attr("colspan"))||0;if(l[0]){var o=t.split("-"),r=a.cols[o[0]][o[1]];e?n--:n++,l.attr("colspan",n),l[n<1?"addClass":"removeClass"](f),r.colspan=n,r.hide=n<1;var d=l.data("parentkey");d&&i.setParentCol(e,d)}},I.prototype.setColsPatch=function(){var e=this,t=e.config;layui.each(t.cols,function(t,i){layui.each(i,function(t,i){i.hide&&e.setParentCol(i.hide,i.parentKey)})})},I.prototype.setColsWidth=function(){var e=this,t=e.config,i=0,a=0,l=0,n=0,o=e.setInit("width");e.eachCols(function(e,t){t.hide||i++}),o=o-function(){return"line"===t.skin||"nob"===t.skin?2:i+1}()-e.getScrollWidth(e.layMain[0])-1;var r=function(e){layui.each(t.cols,function(i,r){layui.each(r,function(i,d){var c=0,s=d.minWidth||t.cellMinWidth;return d?void(d.colGroup||d.hide||(e?l&&l<s&&(a--,c=s):(c=d.width||0,/\d+%$/.test(c)?(c=Math.floor(parseFloat(c)/100*o),c<s&&(c=s)):c||(d.width=c=0,a++)),d.hide&&(c=0),n+=c)):void r.splice(i,1)})}),o>n&&a&&(l=(o-n)/a)};r(),r(!0),e.autoColNums=a,e.eachCols(function(i,a){var n=a.minWidth||t.cellMinWidth;a.colGroup||a.hide||(0===a.width?e.getCssRule(t.index+"-"+a.key,function(e){e.style.width=Math.floor(l>=n?l:n)+"px"}):/\d+%$/.test(a.width)&&e.getCssRule(t.index+"-"+a.key,function(e){e.style.width=Math.floor(parseFloat(a.width)/100*o)+"px"}))});var d=e.layMain.width()-e.getScrollWidth(e.layMain[0])-e.layMain.children("table").outerWidth();if(e.autoColNums&&d>=-i&&d<=i){var c=function(t){var i;return t=t||e.layHeader.eq(0).find("thead th:last-child"),i=t.data("field"),!i&&t.prev()[0]?c(t.prev()):t},s=c(),u=s.data("key");e.getCssRule(u,function(t){var i=t.style.width||s.outerWidth();t.style.width=parseFloat(i)+d+"px",e.layMain.height()-e.layMain.prop("clientHeight")>0&&(t.style.width=parseFloat(t.style.width)-1+"px")})}e.loading(!0)},I.prototype.resize=function(){var e=this;e.fullSize(),e.setColsWidth(),e.scrollPatch()},I.prototype.reload=function(e){var i=this;e=e||{},delete i.haveInit,e.data&&e.data.constructor===Array&&delete i.config.data,i.config=t.extend(!0,{},i.config,e),i.render()},I.prototype.errorView=function(e){var i=this,a=i.layMain.find("."+p),l=t('<div class="'+p+'">'+(e||"Error")+"</div>");a[0]&&(i.layNone.remove(),a.remove()),i.layFixed.addClass(f),i.layMain.find("tbody").html(""),i.layMain.append(i.layNone=l),d.cache[i.key]=[]},I.prototype.page=1,I.prototype.pullData=function(e){var i=this,a=i.config,l=a.request,n=a.response,o=function(){"object"==typeof a.initSort&&i.sort(a.initSort.field,a.initSort.type)};if(i.startTime=(new Date).getTime(),a.url){var r={};r[l.pageName]=e,r[l.limitName]=a.limit;var d=t.extend(r,a.where);a.contentType&&0==a.contentType.indexOf("application/json")&&(d=JSON.stringify(d)),i.loading(),t.ajax({type:a.method||"get",url:a.url,contentType:a.contentType,data:d,dataType:"json",headers:a.headers||{},success:function(t){"function"==typeof a.parseData&&(t=a.parseData(t)||t),t[n.statusName]!=n.statusCode?(i.renderForm(),i.errorView(t[n.msgName]||'返回的数据不符合规范,正确的成功状态码应为:"'+n.statusName+'": '+n.statusCode)):(i.renderData(t,e,t[n.countName]),o(),a.time=(new Date).getTime()-i.startTime+" ms"),i.setColsWidth(),"function"==typeof a.done&&a.done(t,e,t[n.countName])},error:function(e,t){i.errorView("数据接口请求异常:"+t),i.renderForm(),i.setColsWidth()}})}else if(a.data&&a.data.constructor===Array){var c={},s=e*a.limit-a.limit;c[n.dataName]=a.data.concat().splice(s,a.limit),c[n.countName]=a.data.length,i.renderData(c,e,c[n.countName]),o(),i.setColsWidth(),"function"==typeof a.done&&a.done(c,e,c[n.countName])}},I.prototype.eachCols=function(e){var t=this;return d.eachCols(null,e,t.config.cols),t},I.prototype.renderData=function(e,n,o,r){var c=this,s=c.config,y=e[s.response.dataName]||[],h=[],v=[],m=[],g=function(){var e;return!r&&c.sortKey?c.sort(c.sortKey.field,c.sortKey.sort,!0):(layui.each(y,function(a,l){var o=[],y=[],p=[],g=a+s.limit*(n-1)+1;0!==l.length&&(r||(l[d.config.indexName]=a),c.eachCols(function(n,r){var c=r.field||n,h=s.index+"-"+r.key,v=l[c];if(void 0!==v&&null!==v||(v=""),!r.colGroup){var m=['<td data-field="'+c+'" data-key="'+h+'" '+function(){var e=[];return r.edit&&e.push('data-edit="'+r.edit+'"'),r.align&&e.push('align="'+r.align+'"'),r.templet&&e.push('data-content="'+v+'"'),r.toolbar&&e.push('data-off="true"'),r.event&&e.push('lay-event="'+r.event+'"'),r.style&&e.push('style="'+r.style+'"'),r.minWidth&&e.push('data-minwidth="'+r.minWidth+'"'),e.join(" ")}()+' class="'+function(){var e=[];return r.hide&&e.push(f),r.field||e.push("layui-table-col-special"),e.join(" ")}()+'">','<div class="layui-table-cell laytable-cell-'+function(){return"normal"===r.type?h:h+" laytable-cell-"+r.type}()+'">'+function(){var n=t.extend(!0,{LAY_INDEX:g},l),o=d.config.checkName;switch(r.type){case"checkbox":return'<input type="checkbox" name="layTableCheckbox" lay-skin="primary" '+function(){return r[o]?(l[o]=r[o],r[o]?"checked":""):n[o]?"checked":""}()+">";case"radio":return n[o]&&(e=a),'<input type="radio" name="layTableRadio_'+s.index+'" '+(n[o]?"checked":"")+' lay-type="layTableRadio">';case"numbers":return g}return r.toolbar?i(t(r.toolbar).html()||"").render(n):u(r,v,n)}(),"</div></td>"].join("");o.push(m),r.fixed&&"right"!==r.fixed&&y.push(m),"right"===r.fixed&&p.push(m)}}),h.push('<tr data-index="'+a+'">'+o.join("")+"</tr>"),v.push('<tr data-index="'+a+'">'+y.join("")+"</tr>"),m.push('<tr data-index="'+a+'">'+p.join("")+"</tr>"))}),c.layBody.scrollTop(0),c.layMain.find("."+p).remove(),c.layMain.find("tbody").html(h.join("")),c.layFixLeft.find("tbody").html(v.join("")),c.layFixRight.find("tbody").html(m.join("")),c.renderForm(),"number"==typeof e&&c.setThisRowChecked(e),c.syncCheckAll(),c.haveInit?c.scrollPatch():setTimeout(function(){c.scrollPatch()},50),c.haveInit=!0,l.close(c.tipsIndex),s.HAS_SET_COLS_PATCH||c.setColsPatch(),void(s.HAS_SET_COLS_PATCH=!0))};return d.cache[c.key]=y,c.layPage[0==o||0===y.length&&1==n?"addClass":"removeClass"](f),r?g():0===y.length?(c.renderForm(),c.errorView(s.text.none)):(c.layFixed.removeClass(f),g(),c.renderTotal(y),void(s.page&&(s.page=t.extend({elem:"layui-table-page"+s.index,count:o,limit:s.limit,limits:s.limits||[10,20,30,40,50,60,70,80,90],groups:3,layout:["prev","page","next","skip","count","limit"],prev:'<i class="layui-icon"></i>',next:'<i class="layui-icon"></i>',jump:function(e,t){t||(c.page=e.curr,s.limit=e.limit,c.pullData(e.curr))}},s.page),s.page.count=o,a.render(s.page))))},I.prototype.renderTotal=function(e){var t=this,i=t.config,a={};if(i.totalRow){layui.each(e,function(e,i){0!==i.length&&t.eachCols(function(e,t){var l=t.field||e,n=i[l];t.totalRow&&(a[l]=(a[l]||0)+(parseFloat(n)||0))})});var l=[];t.eachCols(function(e,t){var n=t.field||e,o=['<td data-field="'+n+'" data-key="'+i.index+"-"+t.key+'" '+function(){var e=[];return t.align&&e.push('align="'+t.align+'"'),t.style&&e.push('style="'+t.style+'"'),t.minWidth&&e.push('data-minwidth="'+t.minWidth+'"'),e.join(" ")}()+' class="'+function(){var e=[];return t.hide&&e.push(f),t.field||e.push("layui-table-col-special"),e.join(" ")}()+'">','<div class="layui-table-cell laytable-cell-'+function(){var e=i.index+"-"+t.key;return"normal"===t.type?e:e+" laytable-cell-"+t.type}()+'">'+function(){var e=t.totalRowText||"";return t.totalRow?parseFloat(a[n]).toFixed(2)||e:e}(),"</div></td>"].join("");l.push(o)}),t.layTotal.find("tbody").html("<tr>"+l.join("")+"</tr>")}},I.prototype.getColElem=function(e,t){var i=this,a=i.config;return e.eq(0).find(".laytable-cell-"+(a.index+"-"+t)+":eq(0)")},I.prototype.renderForm=function(e){n.render(e,"LAY-table-"+this.index)},I.prototype.setThisRowChecked=function(e){var t=this,i=(t.config,"layui-table-click"),a=t.layBody.find('tr[data-index="'+e+'"]');a.addClass(i).siblings("tr").removeClass(i)},I.prototype.sort=function(e,i,a,l){var n,r,c=this,s={},u=c.config,h=u.elem.attr("lay-filter"),f=d.cache[c.key];"string"==typeof e&&c.layHeader.find("th").each(function(i,a){var l=t(this),o=l.data("field");if(o===e)return e=l,n=o,!1});try{var n=n||e.data("field"),p=e.data("key");if(c.sortKey&&!a&&n===c.sortKey.field&&i===c.sortKey.sort)return;var v=c.layHeader.find("th .laytable-cell-"+p).find(S);c.layHeader.find("th").find(S).removeAttr("lay-sort"),v.attr("lay-sort",i||null),c.layFixed.find("th")}catch(m){return o.error("Table modules: Did not match to field")}c.sortKey={field:n,sort:i},u.autoSort&&("asc"===i?r=layui.sort(f,n):"desc"===i?r=layui.sort(f,n,!0):(r=layui.sort(f,d.config.indexName),delete c.sortKey)),s[u.response.dataName]=r||f,c.renderData(s,c.page,c.count,!0),l&&layui.event.call(e,y,"sort("+h+")",{field:n,type:i})},I.prototype.loading=function(e){var i=this,a=i.config;a.loading&&(e?(i.layInit&&i.layInit.remove(),delete i.layInit,i.layBox.find(b).remove()):(i.layInit=t(['<div class="layui-table-init">','<i class="layui-icon layui-icon-loading layui-anim layui-anim-rotate layui-anim-loop"></i>',"</div>"].join("")),i.layBox.append(i.layInit)))},I.prototype.setCheckData=function(e,t){var i=this,a=i.config,l=d.cache[i.key];l[e]&&l[e].constructor!==Array&&(l[e][a.checkName]=t)},I.prototype.syncCheckAll=function(){var e=this,t=e.config,i=e.layHeader.find('input[name="layTableCheckbox"]'),a=function(i){return e.eachCols(function(e,a){"checkbox"===a.type&&(a[t.checkName]=i)}),i};i[0]&&(d.checkStatus(e.key).isAll?(i[0].checked||(i.prop("checked",!0),e.renderForm("checkbox")),a(!0)):(i[0].checked&&(i.prop("checked",!1),e.renderForm("checkbox")),a(!1)))},I.prototype.getCssRule=function(e,t){var i=this,a=i.elem.find("style")[0],l=a.sheet||a.styleSheet||{},n=l.cssRules||l.rules;layui.each(n,function(i,a){if(a.selectorText===".laytable-cell-"+e)return t(a),!0})},I.prototype.fullSize=function(){var e,t=this,i=t.config,a=i.height;t.fullHeightGap&&(a=R.height()-t.fullHeightGap,a<135&&(a=135),t.elem.css("height",a)),a&&(e=parseFloat(a)-(t.layHeader.outerHeight()||38),i.toolbar&&(e-=t.layTool.outerHeight()||50),i.totalRow&&(e-=t.layTotal.outerHeight()||40),i.page&&(e-=t.layPage.outerHeight()||41),t.layMain.css("height",e-2))},I.prototype.getScrollWidth=function(e){var t=0;return e?t=e.offsetWidth-e.clientWidth:(e=document.createElement("div"),e.style.width="100px",e.style.height="100px",e.style.overflowY="scroll",document.body.appendChild(e),t=e.offsetWidth-e.clientWidth,document.body.removeChild(e)),t},I.prototype.scrollPatch=function(){var e=this,i=e.layMain.children("table"),a=e.layMain.width()-e.layMain.prop("clientWidth"),l=e.layMain.height()-e.layMain.prop("clientHeight"),n=(e.getScrollWidth(e.layMain[0]),i.outerWidth()-e.layMain.width()),o=function(e){if(a&&l){if(e=e.eq(0),!e.find(".layui-table-patch")[0]){var i=t('<th class="layui-table-patch"><div class="layui-table-cell"></div></th>');i.find("div").css({width:a}),e.find("tr").append(i)}}else e.find(".layui-table-patch").remove()};o(e.layHeader),o(e.layTotal);var r=e.layMain.height(),d=r-l;e.layFixed.find(k).css("height",i.height()>=d?d:"auto"),e.layFixRight[n>0?"removeClass":"addClass"](f),e.layFixRight.css("right",a-1)},I.prototype.events=function(){var e,a=this,o=a.config,c=t("body"),s={},u=a.layHeader.find("th"),h=".layui-table-cell",p=o.elem.attr("lay-filter");a.layTool.on("click","*[lay-event]",function(e){var i=t(this),c=i.attr("lay-event"),s=function(e){var l=t(e.list),n=t('<ul class="layui-table-tool-panel"></ul>');n.html(l),o.height&&n.css("max-height",o.height-(a.layTool.outerHeight()||50)),i.find(".layui-table-tool-panel")[0]||i.append(n),a.renderForm(),n.on("click",function(e){layui.stope(e)}),e.done&&e.done(n,l)};switch(layui.stope(e),F.trigger("table.tool.panel.remove"),l.close(a.tipsIndex),c){case"LAYTABLE_COLS":s({list:function(){var e=[];return a.eachCols(function(t,i){i.field&&"normal"==i.type&&e.push('<li><input type="checkbox" name="'+i.field+'" data-key="'+i.key+'" data-parentkey="'+(i.parentKey||"")+'" lay-skin="primary" '+(i.hide?"":"checked")+' title="'+(i.title||i.field)+'" lay-filter="LAY_TABLE_TOOL_COLS"></li>')}),e.join("")}(),done:function(){n.on("checkbox(LAY_TABLE_TOOL_COLS)",function(e){var i=t(e.elem),l=this.checked,n=i.data("key"),r=i.data("parentkey");layui.each(o.cols,function(e,t){layui.each(t,function(t,i){if(e+"-"+t===n){var d=i.hide;i.hide=!l,a.elem.find('*[data-key="'+o.index+"-"+n+'"]')[l?"removeClass":"addClass"](f),d!=i.hide&&a.setParentCol(!l,r),a.resize()}})})})}});break;case"LAYTABLE_EXPORT":r.ie?l.tips("导出功能不支持 IE,请用 Chrome 等高级浏览器导出",this,{tips:3}):s({list:function(){return['<li data-type="csv">导出到 Csv 文件</li>','<li data-type="xls">导出到 Excel 文件</li>'].join("")}(),done:function(e,i){i.on("click",function(){var e=t(this).data("type");d.exportFile(o.id,null,e)})}});break;case"LAYTABLE_PRINT":var u=window.open("打印窗口","_blank"),h=["<style>","body{font-size: 12px; color: #666;}","table{width: 100%; border-collapse: collapse; border-spacing: 0;}","th,td{line-height: 20px; padding: 9px 15px; border: 1px solid #ccc; text-align: left; font-size: 12px; color: #666;}","a{color: #666; text-decoration:none;}","*.layui-hide{display: none}","</style>"].join(""),v=t(a.layHeader.html());v.append(a.layMain.find("table").html()),v.append(a.layTotal.find("table").html()),v.find("th.layui-table-patch").remove(),v.find(".layui-table-col-special").remove(),u.document.write(h+v.prop("outerHTML")),u.document.close(),u.print(),u.close()}layui.event.call(this,y,"toolbar("+p+")",t.extend({event:c,config:o},{}))}),u.on("mousemove",function(e){var i=t(this),a=i.offset().left,l=e.clientX-a;i.data("unresize")||s.resizeStart||(s.allowResize=i.width()-l<=10,c.css("cursor",s.allowResize?"col-resize":""))}).on("mouseleave",function(){t(this);s.resizeStart||c.css("cursor","")}).on("mousedown",function(e){var i=t(this);if(s.allowResize){var l=i.data("key");e.preventDefault(),s.resizeStart=!0,s.offset=[e.clientX,e.clientY],a.getCssRule(l,function(e){var t=e.style.width||i.outerWidth();s.rule=e,s.ruleWidth=parseFloat(t),s.minWidth=i.data("minwidth")||o.cellMinWidth})}}),F.on("mousemove",function(t){if(s.resizeStart){if(t.preventDefault(),s.rule){var i=s.ruleWidth+t.clientX-s.offset[0];i<s.minWidth&&(i=s.minWidth),s.rule.style.width=i+"px",l.close(a.tipsIndex)}e=1}}).on("mouseup",function(t){s.resizeStart&&(s={},c.css("cursor",""),a.scrollPatch()),2===e&&(e=null)}),u.on("click",function(i){var l,n=t(this),o=n.find(S),r=o.attr("lay-sort");return o[0]&&1!==e?(l="asc"===r?"desc":"desc"===r?null:"asc",void a.sort(n,l,null,!0)):e=2}).find(S+" .layui-edge ").on("click",function(e){var i=t(this),l=i.index(),n=i.parents("th").eq(0).data("field");layui.stope(e),0===l?a.sort(n,"asc",null,!0):a.sort(n,"desc",null,!0)});var v=function(e){var l=t(this),n=l.parents("tr").eq(0).data("index"),o=a.layBody.find('tr[data-index="'+n+'"]'),r=d.cache[a.key]||[];return r=r[n]||{},t.extend({tr:o,data:d.clearCacheKey(r),del:function(){d.cache[a.key][n]=[],o.remove(),a.scrollPatch()},update:function(e){e=e||{},layui.each(e,function(e,l){if(e in r){var n,d=o.children('td[data-field="'+e+'"]');r[e]=l,a.eachCols(function(t,i){i.field==e&&i.templet&&(n=i.templet)}),d.children(h).html(function(){return n?function(){return"function"==typeof n?n(r):i(t(n).html()||l).render(r)}():l}()),d.data("content",l)}})}},e)};a.elem.on("click",'input[name="layTableCheckbox"]+',function(){var e=t(this).prev(),i=a.layBody.find('input[name="layTableCheckbox"]'),l=e.parents("tr").eq(0).data("index"),n=e[0].checked,o="layTableAllChoose"===e.attr("lay-filter");o?(i.each(function(e,t){t.checked=n,a.setCheckData(e,n)}),a.syncCheckAll(),a.renderForm("checkbox")):(a.setCheckData(l,n),a.syncCheckAll()),layui.event.call(e[0],y,"checkbox("+p+")",v.call(e[0],{checked:n,type:o?"all":"one"}))}),a.elem.on("click",'input[lay-type="layTableRadio"]+',function(){var e=t(this).prev(),i=e[0].checked,l=d.cache[a.key],n=e.parents("tr").eq(0).data("index");layui.each(l,function(e,t){n===e?t.LAY_CHECKED=!0:delete t.LAY_CHECKED}),a.setThisRowChecked(n),layui.event.call(this,y,"radio("+p+")",v.call(this,{checked:i}))}),a.layBody.on("mouseenter","tr",function(){var e=t(this),i=e.index();e.data("off")||a.layBody.find("tr:eq("+i+")").addClass(_)}).on("mouseleave","tr",function(){var e=t(this),i=e.index();e.data("off")||a.layBody.find("tr:eq("+i+")").removeClass(_)}).on("click","tr",function(){m.call(this,"row")}).on("dblclick","tr",function(){m.call(this,"rowDouble")});var m=function(e){var i=t(this);i.data("off")||layui.event.call(this,y,e+"("+p+")",v.call(i.children("td")[0]))};a.layBody.on("change","."+W,function(){var e=t(this),i=this.value,l=e.parent().data("field"),n=e.parents("tr").eq(0).data("index"),o=d.cache[a.key][n];o[l]=i,layui.event.call(this,y,"edit("+p+")",v.call(this,{value:i,field:l}))}).on("blur","."+W,function(){var e,l=t(this),n=this,o=l.parent().data("field"),r=l.parents("tr").eq(0).data("index"),c=d.cache[a.key][r];a.eachCols(function(t,i){i.field==o&&i.templet&&(e=i.templet)}),l.siblings(h).html(function(a){return e?function(){return"function"==typeof e?e(c):i(t(e).html()||n.value).render(c)}():a}(n.value)),l.parent().data("content",n.value),l.remove()}),a.layBody.on("click","td",function(e){var i=t(this),a=(i.data("field"),i.data("edit")),l=i.children(h);if(!i.data("off")&&a){var n=t('<input class="layui-input '+W+'">');return n[0].value=i.data("content")||l.text(),i.find("."+W)[0]||i.append(n),n.focus(),void layui.stope(e)}}).on("mouseenter","td",function(){b.call(this)}).on("mouseleave","td",function(){b.call(this,"hide")});var g="layui-table-grid-down",b=function(e){var i=t(this),a=i.children(h);if(!i.data("off"))if(e)i.find(".layui-table-grid-down").remove();else if(a.prop("scrollWidth")>a.outerWidth()){if(a.find("."+g)[0])return;i.append('<div class="'+g+'"><i class="layui-icon layui-icon-down"></i></div>')}};a.layBody.on("click","."+g,function(e){var i=t(this),n=i.parent(),d=n.children(h);a.tipsIndex=l.tips(['<div class="layui-table-tips-main" style="margin-top: -'+(d.height()+16)+"px;"+function(){return"sm"===o.size?"padding: 4px 15px; font-size: 12px;":"lg"===o.size?"padding: 14px 15px;":""}()+'">',d.html(),"</div>",'<i class="layui-icon layui-table-tips-c layui-icon-close"></i>'].join(""),d[0],{tips:[3,""],time:-1,anim:-1,maxWidth:r.ios||r.android?300:a.elem.width()/2,isOutAnim:!1,skin:"layui-table-tips",success:function(e,t){e.find(".layui-table-tips-c").on("click",function(){l.close(t)})}}),layui.stope(e)}),a.layBody.on("click","*[lay-event]",function(){var e=t(this),i=e.parents("tr").eq(0).data("index");layui.event.call(this,y,"tool("+p+")",v.call(this,{event:e.attr("lay-event")})),a.setThisRowChecked(i)}),a.layMain.on("scroll",function(){var e=t(this),i=e.scrollLeft(),n=e.scrollTop();a.layHeader.scrollLeft(i),a.layTotal.scrollLeft(i),a.layFixed.find(k).scrollTop(n),l.close(a.tipsIndex)}),F.on("click",function(){F.trigger("table.remove.tool.panel")}),F.on("table.remove.tool.panel",function(){t(".layui-table-tool-panel").remove()}),R.on("resize",function(){a.resize()})},d.init=function(e,i){i=i||{};var a=this,l=t(e?'table[lay-filter="'+e+'"]':h+"[lay-data]"),n="Table element property lay-data configuration item has a syntax error: ";return l.each(function(){var a=t(this),l=a.attr("lay-data");try{l=new Function("return "+l)()}catch(r){o.error(n+l)}var c=[],s=t.extend({elem:this,cols:[],data:[],skin:a.attr("lay-skin"),size:a.attr("lay-size"),even:"string"==typeof a.attr("lay-even")},d.config,i,l);e&&a.hide(),a.find("thead>tr").each(function(e){s.cols[e]=[],t(this).children().each(function(i){var a=t(this),l=a.attr("lay-data");try{l=new Function("return "+l)()}catch(r){return o.error(n+l)}var d=t.extend({title:a.text(),colspan:a.attr("colspan")||0,rowspan:a.attr("rowspan")||0},l);d.colspan<2&&c.push(d),s.cols[e].push(d)})}),a.find("tbody>tr").each(function(e){var i=t(this),a={};i.children("td").each(function(e,i){var l=t(this),n=l.data("field");if(n)return a[n]=l.html()}),layui.each(c,function(e,t){var l=i.children("td").eq(e);a[t.field]=l.html()}),s.data[e]=a}),d.render(s)}),a},c.that={},c.config={},d.eachCols=function(e,i,a){var l=c.config[e]||{},n=[],o=0;a=t.extend(!0,[],a||l.cols),layui.each(a,function(e,t){layui.each(t,function(t,i){if(i.colGroup){var l=0;o++,i.CHILD_COLS=[],layui.each(a[e+1],function(e,t){t.PARENT_COL_INDEX||l>1&&l==i.colspan||(t.PARENT_COL_INDEX=o,i.CHILD_COLS.push(t),l+=parseInt(t.colspan>1?t.colspan:1))})}i.PARENT_COL_INDEX||n.push(i)})});var r=function(e){layui.each(e||n,function(e,t){return t.CHILD_COLS?r(t.CHILD_COLS):void("function"==typeof i&&i(e,t))})};r()},d.checkStatus=function(e){var t=0,i=0,a=[],l=d.cache[e]||[];return layui.each(l,function(e,l){return l.constructor===Array?void i++:void(l[d.config.checkName]&&(t++,a.push(d.clearCacheKey(l))))}),{data:a,isAll:!!l.length&&t===l.length-i}},d.exportFile=function(e,t,i){t=t||d.clearCacheKey(d.cache[e]),i=i||"csv";var a=c.config[e]||{},l={csv:"text/csv",xls:"application/vnd.ms-excel"}[i],n=document.createElement("a");return r.ie?o.error("IE_NOT_SUPPORT_EXPORTS"):(n.href="data:"+l+";charset=utf-8,\ufeff"+encodeURIComponent(function(){var i=[],a=[];return layui.each(t,function(t,l){var n=[];"object"==typeof e?(layui.each(e,function(e,a){0==t&&i.push(a||"")}),layui.each(d.clearCacheKey(l),function(e,t){n.push('"'+(t||"")+'"')})):d.eachCols(e,function(e,a){a.field&&"normal"==a.type&&!a.hide&&(0==t&&i.push(a.title||""),n.push('"'+u(a,l[a.field],l,"text")+'"'))}),a.push(n.join(","))}),i.join(",")+"\r\n"+a.join("\r\n")}()),n.download=(a.title||"table_"+(a.index||""))+"."+i,document.body.appendChild(n),n.click(),void document.body.removeChild(n))},d.resize=function(e){if(e){var t=s(e);if(!t)return;c.that[e].resize()}else layui.each(c.that,function(){this.resize()})},d.reload=function(e,t){var i=s(e);if(i){var a=c.that[e];return a.reload(t),c.call(a)}},d.render=function(e){var t=new I(e);return c.call(t)},d.clearCacheKey=function(e){return e=t.extend({},e),delete e[d.config.checkName],delete e[d.config.indexName],e},d.init(),e(y,d)});layui.define("jquery",function(e){"use strict";var i=layui.$,n=(layui.hint(),layui.device(),{config:{},set:function(e){var n=this;return n.config=i.extend({},n.config,e),n},on:function(e,i){return layui.onevent.call(this,t,e,i)}}),t="carousel",a="layui-this",l=">*[carousel-item]>*",o="layui-carousel-left",r="layui-carousel-right",d="layui-carousel-prev",s="layui-carousel-next",u="layui-carousel-arrow",c="layui-carousel-ind",m=function(e){var t=this;t.config=i.extend({},t.config,n.config,e),t.render()};m.prototype.config={width:"600px",height:"280px",full:!1,arrow:"hover",indicator:"inside",autoplay:!0,interval:3e3,anim:"",trigger:"click",index:0},m.prototype.render=function(){var e=this,n=e.config;n.elem=i(n.elem),n.elem[0]&&(e.elemItem=n.elem.find(l),n.index<0&&(n.index=0),n.index>=e.elemItem.length&&(n.index=e.elemItem.length-1),n.interval<800&&(n.interval=800),n.full?n.elem.css({position:"fixed",width:"100%",height:"100%",zIndex:9999}):n.elem.css({width:n.width,height:n.height}),n.elem.attr("lay-anim",n.anim),e.elemItem.eq(n.index).addClass(a),e.elemItem.length<=1||(e.indicator(),e.arrow(),e.autoplay(),e.events()))},m.prototype.reload=function(e){var n=this;clearInterval(n.timer),n.config=i.extend({},n.config,e),n.render()},m.prototype.prevIndex=function(){var e=this,i=e.config,n=i.index-1;return n<0&&(n=e.elemItem.length-1),n},m.prototype.nextIndex=function(){var e=this,i=e.config,n=i.index+1;return n>=e.elemItem.length&&(n=0),n},m.prototype.addIndex=function(e){var i=this,n=i.config;e=e||1,n.index=n.index+e,n.index>=i.elemItem.length&&(n.index=0)},m.prototype.subIndex=function(e){var i=this,n=i.config;e=e||1,n.index=n.index-e,n.index<0&&(n.index=i.elemItem.length-1)},m.prototype.autoplay=function(){var e=this,i=e.config;i.autoplay&&(clearInterval(e.timer),e.timer=setInterval(function(){e.slide()},i.interval))},m.prototype.arrow=function(){var e=this,n=e.config,t=i(['<button class="layui-icon '+u+'" lay-type="sub">'+("updown"===n.anim?"":"")+"</button>",'<button class="layui-icon '+u+'" lay-type="add">'+("updown"===n.anim?"":"")+"</button>"].join(""));n.elem.attr("lay-arrow",n.arrow),n.elem.find("."+u)[0]&&n.elem.find("."+u).remove(),n.elem.append(t),t.on("click",function(){var n=i(this),t=n.attr("lay-type");e.slide(t)})},m.prototype.indicator=function(){var e=this,n=e.config,t=e.elemInd=i(['<div class="'+c+'"><ul>',function(){var i=[];return layui.each(e.elemItem,function(e){i.push("<li"+(n.index===e?' class="layui-this"':"")+"></li>")}),i.join("")}(),"</ul></div>"].join(""));n.elem.attr("lay-indicator",n.indicator),n.elem.find("."+c)[0]&&n.elem.find("."+c).remove(),n.elem.append(t),"updown"===n.anim&&t.css("margin-top",-(t.height()/2)),t.find("li").on("hover"===n.trigger?"mouseover":n.trigger,function(){var t=i(this),a=t.index();a>n.index?e.slide("add",a-n.index):a<n.index&&e.slide("sub",n.index-a)})},m.prototype.slide=function(e,i){var n=this,l=n.elemItem,u=n.config,c=u.index,m=u.elem.attr("lay-filter");n.haveSlide||("sub"===e?(n.subIndex(i),l.eq(u.index).addClass(d),setTimeout(function(){l.eq(c).addClass(r),l.eq(u.index).addClass(r)},50)):(n.addIndex(i),l.eq(u.index).addClass(s),setTimeout(function(){l.eq(c).addClass(o),l.eq(u.index).addClass(o)},50)),setTimeout(function(){l.removeClass(a+" "+d+" "+s+" "+o+" "+r),l.eq(u.index).addClass(a),n.haveSlide=!1},300),n.elemInd.find("li").eq(u.index).addClass(a).siblings().removeClass(a),n.haveSlide=!0,layui.event.call(this,t,"change("+m+")",{index:u.index,prevIndex:c,item:l.eq(u.index)}))},m.prototype.events=function(){var e=this,i=e.config;i.elem.data("haveEvents")||(i.elem.on("mouseenter",function(){clearInterval(e.timer)}).on("mouseleave",function(){e.autoplay()}),i.elem.data("haveEvents",!0))},n.render=function(e){var i=new m(e);return i},e(t,n)});layui.define("jquery",function(e){"use strict";var a=layui.jquery,i={config:{},index:layui.rate?layui.rate.index+1e4:0,set:function(e){var i=this;return i.config=a.extend({},i.config,e),i},on:function(e,a){return layui.onevent.call(this,n,e,a)}},l=function(){var e=this,a=e.config;return{setvalue:function(a){e.setvalue.call(e,a)},config:a}},n="rate",t="layui-rate",o="layui-icon-rate",s="layui-icon-rate-solid",u="layui-icon-rate-half",r="layui-icon-rate-solid layui-icon-rate-half",c="layui-icon-rate-solid layui-icon-rate",f="layui-icon-rate layui-icon-rate-half",v=function(e){var l=this;l.index=++i.index,l.config=a.extend({},l.config,i.config,e),l.render()};v.prototype.config={length:5,text:!1,readonly:!1,half:!1,value:0,theme:""},v.prototype.render=function(){var e=this,i=e.config,l=i.theme?'style="color: '+i.theme+';"':"";i.elem=a(i.elem),parseInt(i.value)!==i.value&&(i.half||(i.value=Math.ceil(i.value)-i.value<.5?Math.ceil(i.value):Math.floor(i.value)));for(var n='<ul class="layui-rate" '+(i.readonly?"readonly":"")+">",u=1;u<=i.length;u++){var r='<li class="layui-inline"><i class="layui-icon '+(u>Math.floor(i.value)?o:s)+'" '+l+"></i></li>";i.half&&parseInt(i.value)!==i.value&&u==Math.ceil(i.value)?n=n+'<li><i class="layui-icon layui-icon-rate-half" '+l+"></i></li>":n+=r}n+="</ul>"+(i.text?'<span class="layui-inline">'+i.value+"星":"")+"</span>";var c=i.elem,f=c.next("."+t);f[0]&&f.remove(),e.elemTemp=a(n),i.span=e.elemTemp.next("span"),i.setText&&i.setText(i.value),c.html(e.elemTemp),c.addClass("layui-inline"),i.readonly||e.action()},v.prototype.setvalue=function(e){var a=this,i=a.config;i.value=e,a.render()},v.prototype.action=function(){var e=this,i=e.config,l=e.elemTemp,n=l.find("i").width();l.children("li").each(function(e){var t=e+1,v=a(this);v.on("click",function(e){if(i.value=t,i.half){var o=e.pageX-a(this).offset().left;o<=n/2&&(i.value=i.value-.5)}i.text&&l.next("span").text(i.value+"星"),i.choose&&i.choose(i.value),i.setText&&i.setText(i.value)}),v.on("mousemove",function(e){if(l.find("i").each(function(){a(this).addClass(o).removeClass(r)}),l.find("i:lt("+t+")").each(function(){a(this).addClass(s).removeClass(f)}),i.half){var c=e.pageX-a(this).offset().left;c<=n/2&&v.children("i").addClass(u).removeClass(s)}}),v.on("mouseleave",function(){l.find("i").each(function(){a(this).addClass(o).removeClass(r)}),l.find("i:lt("+Math.floor(i.value)+")").each(function(){a(this).addClass(s).removeClass(f)}),i.half&&parseInt(i.value)!==i.value&&l.children("li:eq("+Math.floor(i.value)+")").children("i").addClass(u).removeClass(c)})})},v.prototype.events=function(){var e=this;e.config},i.render=function(e){var a=new v(e);return l.call(a)},e(n,i)});layui.define("jquery",function(t){"use strict";var e=layui.$,i={fixbar:function(t){var i,n,a="layui-fixbar",o="layui-fixbar-top",r=e(document),l=e("body");t=e.extend({showHeight:200},t),t.bar1=t.bar1===!0?"":t.bar1,t.bar2=t.bar2===!0?"":t.bar2,t.bgcolor=t.bgcolor?"background-color:"+t.bgcolor:"";var c=[t.bar1,t.bar2,""],g=e(['<ul class="'+a+'">',t.bar1?'<li class="layui-icon" lay-type="bar1" style="'+t.bgcolor+'">'+c[0]+"</li>":"",t.bar2?'<li class="layui-icon" lay-type="bar2" style="'+t.bgcolor+'">'+c[1]+"</li>":"",'<li class="layui-icon '+o+'" lay-type="top" style="'+t.bgcolor+'">'+c[2]+"</li>","</ul>"].join("")),s=g.find("."+o),u=function(){var e=r.scrollTop();e>=t.showHeight?i||(s.show(),i=1):i&&(s.hide(),i=0)};e("."+a)[0]||("object"==typeof t.css&&g.css(t.css),l.append(g),u(),g.find("li").on("click",function(){var i=e(this),n=i.attr("lay-type");"top"===n&&e("html,body").animate({scrollTop:0},200),t.click&&t.click.call(this,n)}),r.on("scroll",function(){clearTimeout(n),n=setTimeout(function(){u()},100)}))},countdown:function(t,e,i){var n=this,a="function"==typeof e,o=new Date(t).getTime(),r=new Date(!e||a?(new Date).getTime():e).getTime(),l=o-r,c=[Math.floor(l/864e5),Math.floor(l/36e5)%24,Math.floor(l/6e4)%60,Math.floor(l/1e3)%60];a&&(i=e);var g=setTimeout(function(){n.countdown(t,r+1e3,i)},1e3);return i&&i(l>0?c:[0,0,0,0],e,g),l<=0&&clearTimeout(g),g},timeAgo:function(t,e){var i=this,n=[[],[]],a=(new Date).getTime()-new Date(t).getTime();return a>6912e5?(a=new Date(t),n[0][0]=i.digit(a.getFullYear(),4),n[0][1]=i.digit(a.getMonth()+1),n[0][2]=i.digit(a.getDate()),e||(n[1][0]=i.digit(a.getHours()),n[1][1]=i.digit(a.getMinutes()),n[1][2]=i.digit(a.getSeconds())),n[0].join("-")+" "+n[1].join(":")):a>=864e5?(a/1e3/60/60/24|0)+"天前":a>=36e5?(a/1e3/60/60|0)+"小时前":a>=12e4?(a/1e3/60|0)+"分钟前":a<0?"未来":"刚刚"},digit:function(t,e){var i="";t=String(t),e=e||2;for(var n=t.length;n<e;n++)i+="0";return t<Math.pow(10,e)?i+(0|t):t},toDateString:function(t,e){var i=this,n=new Date(t||new Date),a=[i.digit(n.getFullYear(),4),i.digit(n.getMonth()+1),i.digit(n.getDate())],o=[i.digit(n.getHours()),i.digit(n.getMinutes()),i.digit(n.getSeconds())];return e=e||"yyyy-MM-dd HH:mm:ss",e.replace(/yyyy/g,a[0]).replace(/MM/g,a[1]).replace(/dd/g,a[2]).replace(/HH/g,o[0]).replace(/mm/g,o[1]).replace(/ss/g,o[2])},escape:function(t){return String(t||"").replace(/&(?!#?[a-zA-Z0-9]+;)/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/'/g,"'").replace(/"/g,""")},event:function(t,n,a){n=i.event[t]=e.extend(!0,i.event[t],n)||{},e("body").on(a||"click","*["+t+"]",function(){var i=e(this),a=i.attr(t);n[a]&&n[a].call(this,i)})}};!function(t,e,i){"$:nomunge";function n(){a=e[l](function(){o.each(function(){var e=t(this),i=e.width(),n=e.height(),a=t.data(this,g);(i!==a.w||n!==a.h)&&e.trigger(c,[a.w=i,a.h=n])}),n()},r[s])}var a,o=t([]),r=t.resize=t.extend(t.resize,{}),l="setTimeout",c="resize",g=c+"-special-event",s="delay",u="throttleWindow";r[s]=250,r[u]=!0,t.event.special[c]={setup:function(){if(!r[u]&&this[l])return!1;var e=t(this);o=o.add(e),t.data(this,g,{w:e.width(),h:e.height()}),1===o.length&&n()},teardown:function(){if(!r[u]&&this[l])return!1;var e=t(this);o=o.not(e),e.removeData(g),o.length||clearTimeout(a)},add:function(e){function n(e,n,o){var r=t(this),l=t.data(this,g)||{};l.w=n!==i?n:r.width(),l.h=o!==i?o:r.height(),a.apply(this,arguments)}if(!r[u]&&this[l])return!1;var a;return t.isFunction(e)?(a=e,n):(a=e.handler,void(e.handler=n))}}}(e,window),t("util",i)});layui.define("jquery",function(e){"use strict";var l=layui.$,o=function(e){},t='<i class="layui-anim layui-anim-rotate layui-anim-loop layui-icon "></i>';o.prototype.load=function(e){var o,i,n,r,a=this,c=0;e=e||{};var f=l(e.elem);if(f[0]){var m=l(e.scrollElem||document),u=e.mb||50,s=!("isAuto"in e)||e.isAuto,v=e.end||"没有更多了",y=e.scrollElem&&e.scrollElem!==document,d="<cite>加载更多</cite>",h=l('<div class="layui-flow-more"><a href="javascript:;">'+d+"</a></div>");f.find(".layui-flow-more")[0]||f.append(h);var p=function(e,t){e=l(e),h.before(e),t=0==t||null,t?h.html(v):h.find("a").html(d),i=t,o=null,n&&n()},g=function(){o=!0,h.find("a").html(t),"function"==typeof e.done&&e.done(++c,p)};if(g(),h.find("a").on("click",function(){l(this);i||o||g()}),e.isLazyimg)var n=a.lazyimg({elem:e.elem+" img",scrollElem:e.scrollElem});return s?(m.on("scroll",function(){var e=l(this),t=e.scrollTop();r&&clearTimeout(r),i||(r=setTimeout(function(){var i=y?e.height():l(window).height(),n=y?e.prop("scrollHeight"):document.documentElement.scrollHeight;n-t-i<=u&&(o||g())},100))}),a):a}},o.prototype.lazyimg=function(e){var o,t=this,i=0;e=e||{};var n=l(e.scrollElem||document),r=e.elem||"img",a=e.scrollElem&&e.scrollElem!==document,c=function(e,l){var o=n.scrollTop(),r=o+l,c=a?function(){return e.offset().top-n.offset().top+o}():e.offset().top;if(c>=o&&c<=r&&!e.attr("src")){var m=e.attr("lay-src");layui.img(m,function(){var l=t.lazyimg.elem.eq(i);e.attr("src",m).removeAttr("lay-src"),l[0]&&f(l),i++})}},f=function(e,o){var f=a?(o||n).height():l(window).height(),m=n.scrollTop(),u=m+f;if(t.lazyimg.elem=l(r),e)c(e,f);else for(var s=0;s<t.lazyimg.elem.length;s++){var v=t.lazyimg.elem.eq(s),y=a?function(){return v.offset().top-n.offset().top+m}():v.offset().top;if(c(v,f),i=s,y>u)break}};if(f(),!o){var m;n.on("scroll",function(){var e=l(this);m&&clearTimeout(m),m=setTimeout(function(){f(null,e)},50)}),o=!0}return f},e("flow",new o)});layui.define(["layer","form"],function(t){"use strict";var e=layui.$,i=layui.layer,a=layui.form,l=(layui.hint(),layui.device()),n="layedit",o="layui-show",r="layui-disabled",c=function(){var t=this;t.index=0,t.config={tool:["strong","italic","underline","del","|","left","center","right","|","link","unlink","face","image"],hideTool:[],height:280}};c.prototype.set=function(t){var i=this;return e.extend(!0,i.config,t),i},c.prototype.on=function(t,e){return layui.onevent(n,t,e)},c.prototype.build=function(t,i){i=i||{};var a=this,n=a.config,r="layui-layedit",c=e("string"==typeof t?"#"+t:t),u="LAY_layedit_"+ ++a.index,d=c.next("."+r),y=e.extend({},n,i),f=function(){var t=[],e={};return layui.each(y.hideTool,function(t,i){e[i]=!0}),layui.each(y.tool,function(i,a){C[a]&&!e[a]&&t.push(C[a])}),t.join("")}(),m=e(['<div class="'+r+'">','<div class="layui-unselect layui-layedit-tool">'+f+"</div>",'<div class="layui-layedit-iframe">','<iframe id="'+u+'" name="'+u+'" textarea="'+t+'" frameborder="0"></iframe>',"</div>","</div>"].join(""));return l.ie&&l.ie<8?c.removeClass("layui-hide").addClass(o):(d[0]&&d.remove(),s.call(a,m,c[0],y),c.addClass("layui-hide").after(m),a.index)},c.prototype.getContent=function(t){var e=u(t);if(e[0])return d(e[0].document.body.innerHTML)},c.prototype.getText=function(t){var i=u(t);if(i[0])return e(i[0].document.body).text()},c.prototype.setContent=function(t,i,a){var l=u(t);l[0]&&(a?e(l[0].document.body).append(i):e(l[0].document.body).html(i),layedit.sync(t))},c.prototype.sync=function(t){var i=u(t);if(i[0]){var a=e("#"+i[1].attr("textarea"));a.val(d(i[0].document.body.innerHTML))}},c.prototype.getSelection=function(t){var e=u(t);if(e[0]){var i=m(e[0].document);return document.selection?i.text:i.toString()}};var s=function(t,i,a){var l=this,n=t.find("iframe");n.css({height:a.height}).on("load",function(){var o=n.contents(),r=n.prop("contentWindow"),c=o.find("head"),s=e(["<style>","*{margin: 0; padding: 0;}","body{padding: 10px; line-height: 20px; overflow-x: hidden; word-wrap: break-word; font: 14px Helvetica Neue,Helvetica,PingFang SC,Microsoft YaHei,Tahoma,Arial,sans-serif; -webkit-box-sizing: border-box !important; -moz-box-sizing: border-box !important; box-sizing: border-box !important;}","a{color:#01AAED; text-decoration:none;}a:hover{color:#c00}","p{margin-bottom: 10px;}","img{display: inline-block; border: none; vertical-align: middle;}","pre{margin: 10px 0; padding: 10px; line-height: 20px; border: 1px solid #ddd; border-left-width: 6px; background-color: #F2F2F2; color: #333; font-family: Courier New; font-size: 12px;}","</style>"].join("")),u=o.find("body");c.append(s),u.attr("contenteditable","true").css({"min-height":a.height}).html(i.value||""),y.apply(l,[r,n,i,a]),g.call(l,r,t,a)})},u=function(t){var i=e("#LAY_layedit_"+t),a=i.prop("contentWindow");return[a,i]},d=function(t){return 8==l.ie&&(t=t.replace(/<.+>/g,function(t){return t.toLowerCase()})),t},y=function(t,a,n,o){var r=t.document,c=e(r.body);c.on("keydown",function(t){var e=t.keyCode;if(13===e){var a=m(r),l=p(a),n=l.parentNode;if("pre"===n.tagName.toLowerCase()){if(t.shiftKey)return;return i.msg("请暂时用shift+enter"),!1}r.execCommand("formatBlock",!1,"<p>")}}),e(n).parents("form").on("submit",function(){var t=c.html();8==l.ie&&(t=t.replace(/<.+>/g,function(t){return t.toLowerCase()})),n.value=t}),c.on("paste",function(e){r.execCommand("formatBlock",!1,"<p>"),setTimeout(function(){f.call(t,c),n.value=c.html()},100)})},f=function(t){var i=this;i.document;t.find("*[style]").each(function(){var t=this.style.textAlign;this.removeAttribute("style"),e(this).css({"text-align":t||""})}),t.find("table").addClass("layui-table"),t.find("script,link").remove()},m=function(t){return t.selection?t.selection.createRange():t.getSelection().getRangeAt(0)},p=function(t){return t.endContainer||t.parentElement().childNodes[0]},v=function(t,i,a){var l=this.document,n=document.createElement(t);for(var o in i)n.setAttribute(o,i[o]);if(n.removeAttribute("text"),l.selection){var r=a.text||i.text;if("a"===t&&!r)return;r&&(n.innerHTML=r),a.pasteHTML(e(n).prop("outerHTML")),a.select()}else{var r=a.toString()||i.text;if("a"===t&&!r)return;r&&(n.innerHTML=r),a.deleteContents(),a.insertNode(n)}},h=function(t,i){var a=this.document,l="layedit-tool-active",n=p(m(a)),o=function(e){return t.find(".layedit-tool-"+e)};i&&i[i.hasClass(l)?"removeClass":"addClass"](l),t.find(">i").removeClass(l),o("unlink").addClass(r),e(n).parents().each(function(){var t=this.tagName.toLowerCase(),e=this.style.textAlign;"b"!==t&&"strong"!==t||o("b").addClass(l),"i"!==t&&"em"!==t||o("i").addClass(l),"u"===t&&o("u").addClass(l),"strike"===t&&o("d").addClass(l),"p"===t&&("center"===e?o("center").addClass(l):"right"===e?o("right").addClass(l):o("left").addClass(l)),"a"===t&&(o("link").addClass(l),o("unlink").removeClass(r))})},g=function(t,a,l){var n=t.document,o=e(n.body),c={link:function(i){var a=p(i),l=e(a).parent();b.call(o,{href:l.attr("href"),target:l.attr("target")},function(e){var a=l[0];"A"===a.tagName?a.href=e.url:v.call(t,"a",{target:e.target,href:e.url,text:e.url},i)})},unlink:function(t){n.execCommand("unlink")},face:function(e){x.call(this,function(i){v.call(t,"img",{src:i.src,alt:i.alt},e)})},image:function(a){var n=this;layui.use("upload",function(o){var r=l.uploadImage||{};o.render({url:r.url,method:r.type,elem:e(n).find("input")[0],done:function(e){0==e.code?(e.data=e.data||{},v.call(t,"img",{src:e.data.src,alt:e.data.title},a)):i.msg(e.msg||"上传失败")}})})},code:function(e){k.call(o,function(i){v.call(t,"pre",{text:i.code,"lay-lang":i.lang},e)})},help:function(){i.open({type:2,title:"帮助",area:["600px","380px"],shadeClose:!0,shade:.1,skin:"layui-layer-msg",content:["http://www.layui.com/about/layedit/help.html","no"]})}},s=a.find(".layui-layedit-tool"),u=function(){var i=e(this),a=i.attr("layedit-event"),l=i.attr("lay-command");if(!i.hasClass(r)){o.focus();var u=m(n);u.commonAncestorContainer;l?(n.execCommand(l),/justifyLeft|justifyCenter|justifyRight/.test(l)&&n.execCommand("formatBlock",!1,"<p>"),setTimeout(function(){o.focus()},10)):c[a]&&c[a].call(this,u),h.call(t,s,i)}},d=/image/;s.find(">i").on("mousedown",function(){var t=e(this),i=t.attr("layedit-event");d.test(i)||u.call(this)}).on("click",function(){var t=e(this),i=t.attr("layedit-event");d.test(i)&&u.call(this)}),o.on("click",function(){h.call(t,s),i.close(x.index)})},b=function(t,e){var l=this,n=i.open({type:1,id:"LAY_layedit_link",area:"350px",shade:.05,shadeClose:!0,moveType:1,title:"超链接",skin:"layui-layer-msg",content:['<ul class="layui-form" style="margin: 15px;">','<li class="layui-form-item">','<label class="layui-form-label" style="width: 60px;">URL</label>','<div class="layui-input-block" style="margin-left: 90px">','<input name="url" lay-verify="url" value="'+(t.href||"")+'" autofocus="true" autocomplete="off" class="layui-input">',"</div>","</li>",'<li class="layui-form-item">','<label class="layui-form-label" style="width: 60px;">打开方式</label>','<div class="layui-input-block" style="margin-left: 90px">','<input type="radio" name="target" value="_self" class="layui-input" title="当前窗口"'+("_self"!==t.target&&t.target?"":"checked")+">",'<input type="radio" name="target" value="_blank" class="layui-input" title="新窗口" '+("_blank"===t.target?"checked":"")+">","</div>","</li>",'<li class="layui-form-item" style="text-align: center;">','<button type="button" lay-submit lay-filter="layedit-link-yes" class="layui-btn"> 确定 </button>','<button style="margin-left: 20px;" type="button" class="layui-btn layui-btn-primary"> 取消 </button>',"</li>","</ul>"].join(""),success:function(t,n){var o="submit(layedit-link-yes)";a.render("radio"),t.find(".layui-btn-primary").on("click",function(){i.close(n),l.focus()}),a.on(o,function(t){i.close(b.index),e&&e(t.field)})}});b.index=n},x=function(t){var a=function(){var t=["[微笑]","[嘻嘻]","[哈哈]","[可爱]","[可怜]","[挖鼻]","[吃惊]","[害羞]","[挤眼]","[闭嘴]","[鄙视]","[爱你]","[泪]","[偷笑]","[亲亲]","[生病]","[太开心]","[白眼]","[右哼哼]","[左哼哼]","[嘘]","[衰]","[委屈]","[吐]","[哈欠]","[抱抱]","[怒]","[疑问]","[馋嘴]","[拜拜]","[思考]","[汗]","[困]","[睡]","[钱]","[失望]","[酷]","[色]","[哼]","[鼓掌]","[晕]","[悲伤]","[抓狂]","[黑线]","[阴险]","[怒骂]","[互粉]","[心]","[伤心]","[猪头]","[熊猫]","[兔子]","[ok]","[耶]","[good]","[NO]","[赞]","[来]","[弱]","[草泥马]","[神马]","[囧]","[浮云]","[给力]","[围观]","[威武]","[奥特曼]","[礼物]","[钟]","[话筒]","[蜡烛]","[蛋糕]"],e={};return layui.each(t,function(t,i){e[i]=layui.cache.dir+"images/face/"+t+".gif"}),e}();return x.hide=x.hide||function(t){"face"!==e(t.target).attr("layedit-event")&&i.close(x.index)},x.index=i.tips(function(){var t=[];return layui.each(a,function(e,i){t.push('<li title="'+e+'"><img src="'+i+'" alt="'+e+'"></li>')}),'<ul class="layui-clear">'+t.join("")+"</ul>"}(),this,{tips:1,time:0,skin:"layui-box layui-util-face",maxWidth:500,success:function(l,n){l.css({marginTop:-4,marginLeft:-10}).find(".layui-clear>li").on("click",function(){t&&t({src:a[this.title],alt:this.title}),i.close(n)}),e(document).off("click",x.hide).on("click",x.hide)}})},k=function(t){var e=this,l=i.open({type:1,id:"LAY_layedit_code",area:"550px",shade:.05,shadeClose:!0,moveType:1,title:"插入代码",skin:"layui-layer-msg",content:['<ul class="layui-form layui-form-pane" style="margin: 15px;">','<li class="layui-form-item">','<label class="layui-form-label">请选择语言</label>','<div class="layui-input-block">','<select name="lang">','<option value="JavaScript">JavaScript</option>','<option value="HTML">HTML</option>','<option value="CSS">CSS</option>','<option value="Java">Java</option>','<option value="PHP">PHP</option>','<option value="C#">C#</option>','<option value="Python">Python</option>','<option value="Ruby">Ruby</option>','<option value="Go">Go</option>',"</select>","</div>","</li>",'<li class="layui-form-item layui-form-text">','<label class="layui-form-label">代码</label>','<div class="layui-input-block">','<textarea name="code" lay-verify="required" autofocus="true" class="layui-textarea" style="height: 200px;"></textarea>',"</div>","</li>",'<li class="layui-form-item" style="text-align: center;">','<button type="button" lay-submit lay-filter="layedit-code-yes" class="layui-btn"> 确定 </button>','<button style="margin-left: 20px;" type="button" class="layui-btn layui-btn-primary"> 取消 </button>',"</li>","</ul>"].join(""),success:function(l,n){var o="submit(layedit-code-yes)";a.render("select"),l.find(".layui-btn-primary").on("click",function(){i.close(n),e.focus()}),a.on(o,function(e){i.close(k.index),t&&t(e.field)})}});k.index=l},C={html:'<i class="layui-icon layedit-tool-html" title="HTML源代码" lay-command="html" layedit-event="html""></i><span class="layedit-tool-mid"></span>',strong:'<i class="layui-icon layedit-tool-b" title="加粗" lay-command="Bold" layedit-event="b""></i>',italic:'<i class="layui-icon layedit-tool-i" title="斜体" lay-command="italic" layedit-event="i""></i>',underline:'<i class="layui-icon layedit-tool-u" title="下划线" lay-command="underline" layedit-event="u""></i>',del:'<i class="layui-icon layedit-tool-d" title="删除线" lay-command="strikeThrough" layedit-event="d""></i>',"|":'<span class="layedit-tool-mid"></span>',left:'<i class="layui-icon layedit-tool-left" title="左对齐" lay-command="justifyLeft" layedit-event="left""></i>',center:'<i class="layui-icon layedit-tool-center" title="居中对齐" lay-command="justifyCenter" layedit-event="center""></i>',right:'<i class="layui-icon layedit-tool-right" title="右对齐" lay-command="justifyRight" layedit-event="right""></i>',link:'<i class="layui-icon layedit-tool-link" title="插入链接" layedit-event="link""></i>',unlink:'<i class="layui-icon layedit-tool-unlink layui-disabled" title="清除链接" lay-command="unlink" layedit-event="unlink""></i>',face:'<i class="layui-icon layedit-tool-face" title="表情" layedit-event="face""></i>',image:'<i class="layui-icon layedit-tool-image" title="图片" layedit-event="image"><input type="file" name="file"></i>',code:'<i class="layui-icon layedit-tool-code" title="插入代码" layedit-event="code"></i>',help:'<i class="layui-icon layedit-tool-help" title="帮助" layedit-event="help"></i>'},w=new c;t(n,w)});layui.define("jquery",function(e){"use strict";var a=layui.$,l="http://www.layui.com/doc/modules/code.html";e("code",function(e){var t=[];e=e||{},e.elem=a(e.elem||".layui-code"),e.about=!("about"in e)||e.about,e.elem.each(function(){t.push(this)}),layui.each(t.reverse(),function(t,i){var c=a(i),o=c.html();(c.attr("lay-encode")||e.encode)&&(o=o.replace(/&(?!#?[a-zA-Z0-9]+;)/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/'/g,"'").replace(/"/g,""")),c.html('<ol class="layui-code-ol"><li>'+o.replace(/[\r\t\n]+/g,"</li><li>")+"</li></ol>"),c.find(">.layui-code-h3")[0]||c.prepend('<h3 class="layui-code-h3">'+(c.attr("lay-title")||e.title||"code")+(e.about?'<a href="'+l+'" target="_blank">layui.code</a>':"")+"</h3>");var d=c.find(">.layui-code-ol");c.addClass("layui-box layui-code-view"),(c.attr("lay-skin")||e.skin)&&c.addClass("layui-code-"+(c.attr("lay-skin")||e.skin)),(d.find("li").length/100|0)>0&&d.css("margin-left",(d.find("li").length/100|0)+"px"),(c.attr("lay-height")||e.height)&&d.css("max-height",c.attr("lay-height")||e.height)})})}).addcss("modules/code.css","skincodecss"); \ No newline at end of file diff --git a/public/static/plug/layui/layui.js b/public/static/plug/layui/layui.js index 3897c9d7..b6c4c490 100755 --- a/public/static/plug/layui/layui.js +++ b/public/static/plug/layui/layui.js @@ -1,2 +1,2 @@ -/** layui-v2.4.3 MIT License By https://www.layui.com */ - ;!function(e){"use strict";var t=document,o={modules:{},status:{},timeout:10,event:{}},n=function(){this.v="2.4.3"},r=function(){var e=t.currentScript?t.currentScript.src:function(){for(var e,o=t.scripts,n=o.length-1,r=n;r>0;r--)if("interactive"===o[r].readyState){e=o[r].src;break}return e||o[n].src}();return e.substring(0,e.lastIndexOf("/")+1)}(),i=function(t){e.console&&console.error&&console.error("Layui hint: "+t)},a="undefined"!=typeof opera&&"[object Opera]"===opera.toString(),u={layer:"modules/layer",laydate:"modules/laydate",laypage:"modules/laypage",laytpl:"modules/laytpl",layim:"modules/layim",layedit:"modules/layedit",form:"modules/form",upload:"modules/upload",tree:"modules/tree",table:"modules/table",element:"modules/element",rate:"modules/rate",colorpicker:"modules/colorpicker",slider:"modules/slider",carousel:"modules/carousel",flow:"modules/flow",util:"modules/util",code:"modules/code",jquery:"modules/jquery",mobile:"modules/mobile","layui.all":"../layui.all"};n.prototype.cache=o,n.prototype.define=function(e,t){var n=this,r="function"==typeof e,i=function(){var e=function(e,t){layui[e]=t,o.status[e]=!0};return"function"==typeof t&&t(function(n,r){e(n,r),o.callback[n]=function(){t(e)}}),this};return r&&(t=e,e=[]),layui["layui.all"]||!layui["layui.all"]&&layui["layui.mobile"]?i.call(n):(n.use(e,i),n)},n.prototype.use=function(e,n,l){function s(e,t){var n="PLaySTATION 3"===navigator.platform?/^complete$/:/^(complete|loaded)$/;("load"===e.type||n.test((e.currentTarget||e.srcElement).readyState))&&(o.modules[f]=t,d.removeChild(v),function r(){return++m>1e3*o.timeout/4?i(f+" is not a valid module"):void(o.status[f]?c():setTimeout(r,4))}())}function c(){l.push(layui[f]),e.length>1?y.use(e.slice(1),n,l):"function"==typeof n&&n.apply(layui,l)}var y=this,p=o.dir=o.dir?o.dir:r,d=t.getElementsByTagName("head")[0];e="string"==typeof e?[e]:e,window.jQuery&&jQuery.fn.on&&(y.each(e,function(t,o){"jquery"===o&&e.splice(t,1)}),layui.jquery=layui.$=jQuery);var f=e[0],m=0;if(l=l||[],o.host=o.host||(p.match(/\/\/([\s\S]+?)\//)||["//"+location.host+"/"])[0],0===e.length||layui["layui.all"]&&u[f]||!layui["layui.all"]&&layui["layui.mobile"]&&u[f])return c(),y;if(o.modules[f])!function g(){return++m>1e3*o.timeout/4?i(f+" is not a valid module"):void("string"==typeof o.modules[f]&&o.status[f]?c():setTimeout(g,4))}();else{var v=t.createElement("script"),h=(u[f]?p+"lay/":/^\{\/\}/.test(y.modules[f])?"":o.base||"")+(y.modules[f]||f)+".js";h=h.replace(/^\{\/\}/,""),v.async=!0,v.charset="utf-8",v.src=h+function(){var e=o.version===!0?o.v||(new Date).getTime():o.version||"";return e?"?v="+e:""}(),d.appendChild(v),!v.attachEvent||v.attachEvent.toString&&v.attachEvent.toString().indexOf("[native code")<0||a?v.addEventListener("load",function(e){s(e,h)},!1):v.attachEvent("onreadystatechange",function(e){s(e,h)}),o.modules[f]=h}return y},n.prototype.getStyle=function(t,o){var n=t.currentStyle?t.currentStyle:e.getComputedStyle(t,null);return n[n.getPropertyValue?"getPropertyValue":"getAttribute"](o)},n.prototype.link=function(e,n,r){var a=this,u=t.createElement("link"),l=t.getElementsByTagName("head")[0];"string"==typeof n&&(r=n);var s=(r||e).replace(/\.|\//g,""),c=u.id="layuicss-"+s,y=0;return u.rel="stylesheet",u.href=e+(o.debug?"?v="+(new Date).getTime():""),u.media="all",t.getElementById(c)||l.appendChild(u),"function"!=typeof n?a:(function p(){return++y>1e3*o.timeout/100?i(e+" timeout"):void(1989===parseInt(a.getStyle(t.getElementById(c),"width"))?function(){n()}():setTimeout(p,100))}(),a)},o.callback={},n.prototype.factory=function(e){if(layui[e])return"function"==typeof o.callback[e]?o.callback[e]:null},n.prototype.addcss=function(e,t,n){return layui.link(o.dir+"css/"+e,t,n)},n.prototype.img=function(e,t,o){var n=new Image;return n.src=e,n.complete?t(n):(n.onload=function(){n.onload=null,"function"==typeof t&&t(n)},void(n.onerror=function(e){n.onerror=null,"function"==typeof o&&o(e)}))},n.prototype.config=function(e){e=e||{};for(var t in e)o[t]=e[t];return this},n.prototype.modules=function(){var e={};for(var t in u)e[t]=u[t];return e}(),n.prototype.extend=function(e){var t=this;e=e||{};for(var o in e)t[o]||t.modules[o]?i("模块名 "+o+" 已被占用"):t.modules[o]=e[o];return t},n.prototype.router=function(e){var t=this,e=e||location.hash,o={path:[],search:{},hash:(e.match(/[^#](#.*$)/)||[])[1]||""};return/^#\//.test(e)?(e=e.replace(/^#\//,""),o.href="/"+e,e=e.replace(/([^#])(#.*$)/,"$1").split("/")||[],t.each(e,function(e,t){/^\w+=/.test(t)?function(){t=t.split("="),o.search[t[0]]=t[1]}():o.path.push(t)}),o):o},n.prototype.data=function(t,o,n){if(t=t||"layui",n=n||localStorage,e.JSON&&e.JSON.parse){if(null===o)return delete n[t];o="object"==typeof o?o:{key:o};try{var r=JSON.parse(n[t])}catch(i){var r={}}return"value"in o&&(r[o.key]=o.value),o.remove&&delete r[o.key],n[t]=JSON.stringify(r),o.key?r[o.key]:r}},n.prototype.sessionData=function(e,t){return this.data(e,t,sessionStorage)},n.prototype.device=function(t){var o=navigator.userAgent.toLowerCase(),n=function(e){var t=new RegExp(e+"/([^\\s\\_\\-]+)");return e=(o.match(t)||[])[1],e||!1},r={os:function(){return/windows/.test(o)?"windows":/linux/.test(o)?"linux":/iphone|ipod|ipad|ios/.test(o)?"ios":/mac/.test(o)?"mac":void 0}(),ie:function(){return!!(e.ActiveXObject||"ActiveXObject"in e)&&((o.match(/msie\s(\d+)/)||[])[1]||"11")}(),weixin:n("micromessenger")};return t&&!r[t]&&(r[t]=n(t)),r.android=/android/.test(o),r.ios="ios"===r.os,r},n.prototype.hint=function(){return{error:i}},n.prototype.each=function(e,t){var o,n=this;if("function"!=typeof t)return n;if(e=e||[],e.constructor===Object){for(o in e)if(t.call(e[o],o,e[o]))break}else for(o=0;o<e.length&&!t.call(e[o],o,e[o]);o++);return n},n.prototype.sort=function(e,t,o){var n=JSON.parse(JSON.stringify(e||[]));return t?(n.sort(function(e,o){var n=/^-?\d+$/,r=e[t],i=o[t];return n.test(r)&&(r=parseFloat(r)),n.test(i)&&(i=parseFloat(i)),r&&!i?1:!r&&i?-1:r>i?1:r<i?-1:0}),o&&n.reverse(),n):n},n.prototype.stope=function(t){t=t||e.event;try{t.stopPropagation()}catch(o){t.cancelBubble=!0}},n.prototype.onevent=function(e,t,o){return"string"!=typeof e||"function"!=typeof o?this:n.event(e,t,null,o)},n.prototype.event=n.event=function(e,t,n,r){var i=this,a=null,u=t.match(/\((.*)\)$/)||[],l=(e+"."+t).replace(u[0],""),s=u[1]||"",c=function(e,t){var o=t&&t.call(i,n);o===!1&&null===a&&(a=!1)};return r?(o.event[l]=o.event[l]||{},o.event[l][s]=[r],this):(layui.each(o.event[l],function(e,t){return"{*}"===s?void layui.each(t,c):(""===e&&layui.each(t,c),void(e===s&&layui.each(t,c)))}),a)},e.layui=new n}(window); \ No newline at end of file +/** layui-v2.5.4 MIT License By https://www.layui.com */ + ;!function(e){"use strict";var t=document,o={modules:{},status:{},timeout:10,event:{}},n=function(){this.v="2.5.4"},r=function(){var e=t.currentScript?t.currentScript.src:function(){for(var e,o=t.scripts,n=o.length-1,r=n;r>0;r--)if("interactive"===o[r].readyState){e=o[r].src;break}return e||o[n].src}();return e.substring(0,e.lastIndexOf("/")+1)}(),i=function(t){e.console&&console.error&&console.error("Layui hint: "+t)},a="undefined"!=typeof opera&&"[object Opera]"===opera.toString(),u={layer:"modules/layer",laydate:"modules/laydate",laypage:"modules/laypage",laytpl:"modules/laytpl",layim:"modules/layim",layedit:"modules/layedit",form:"modules/form",upload:"modules/upload",transfer:"modules/transfer",tree:"modules/tree",table:"modules/table",element:"modules/element",rate:"modules/rate",colorpicker:"modules/colorpicker",slider:"modules/slider",carousel:"modules/carousel",flow:"modules/flow",util:"modules/util",code:"modules/code",jquery:"modules/jquery",mobile:"modules/mobile","layui.all":"../layui.all"};n.prototype.cache=o,n.prototype.define=function(e,t){var n=this,r="function"==typeof e,i=function(){var e=function(e,t){layui[e]=t,o.status[e]=!0};return"function"==typeof t&&t(function(n,r){e(n,r),o.callback[n]=function(){t(e)}}),this};return r&&(t=e,e=[]),!layui["layui.all"]&&layui["layui.mobile"]?i.call(n):(n.use(e,i),n)},n.prototype.use=function(e,n,l){function s(e,t){var n="PLaySTATION 3"===navigator.platform?/^complete$/:/^(complete|loaded)$/;("load"===e.type||n.test((e.currentTarget||e.srcElement).readyState))&&(o.modules[f]=t,d.removeChild(v),function r(){return++m>1e3*o.timeout/4?i(f+" is not a valid module"):void(o.status[f]?c():setTimeout(r,4))}())}function c(){l.push(layui[f]),e.length>1?y.use(e.slice(1),n,l):"function"==typeof n&&n.apply(layui,l)}var y=this,p=o.dir=o.dir?o.dir:r,d=t.getElementsByTagName("head")[0];e="string"==typeof e?[e]:e,window.jQuery&&jQuery.fn.on&&(y.each(e,function(t,o){"jquery"===o&&e.splice(t,1)}),layui.jquery=layui.$=jQuery);var f=e[0],m=0;if(l=l||[],o.host=o.host||(p.match(/\/\/([\s\S]+?)\//)||["//"+location.host+"/"])[0],0===e.length||layui["layui.all"]&&u[f]||!layui["layui.all"]&&layui["layui.mobile"]&&u[f])return c(),y;if(o.modules[f])!function g(){return++m>1e3*o.timeout/4?i(f+" is not a valid module"):void("string"==typeof o.modules[f]&&o.status[f]?c():setTimeout(g,4))}();else{var v=t.createElement("script"),h=(u[f]?p+"lay/":/^\{\/\}/.test(y.modules[f])?"":o.base||"")+(y.modules[f]||f)+".js";h=h.replace(/^\{\/\}/,""),v.async=!0,v.charset="utf-8",v.src=h+function(){var e=o.version===!0?o.v||(new Date).getTime():o.version||"";return e?"?v="+e:""}(),d.appendChild(v),!v.attachEvent||v.attachEvent.toString&&v.attachEvent.toString().indexOf("[native code")<0||a?v.addEventListener("load",function(e){s(e,h)},!1):v.attachEvent("onreadystatechange",function(e){s(e,h)}),o.modules[f]=h}return y},n.prototype.getStyle=function(t,o){var n=t.currentStyle?t.currentStyle:e.getComputedStyle(t,null);return n[n.getPropertyValue?"getPropertyValue":"getAttribute"](o)},n.prototype.link=function(e,n,r){var a=this,u=t.createElement("link"),l=t.getElementsByTagName("head")[0];"string"==typeof n&&(r=n);var s=(r||e).replace(/\.|\//g,""),c=u.id="layuicss-"+s,y=0;return u.rel="stylesheet",u.href=e+(o.debug?"?v="+(new Date).getTime():""),u.media="all",t.getElementById(c)||l.appendChild(u),"function"!=typeof n?a:(function p(){return++y>1e3*o.timeout/100?i(e+" timeout"):void(1989===parseInt(a.getStyle(t.getElementById(c),"width"))?function(){n()}():setTimeout(p,100))}(),a)},o.callback={},n.prototype.factory=function(e){if(layui[e])return"function"==typeof o.callback[e]?o.callback[e]:null},n.prototype.addcss=function(e,t,n){return layui.link(o.dir+"css/"+e,t,n)},n.prototype.img=function(e,t,o){var n=new Image;return n.src=e,n.complete?t(n):(n.onload=function(){n.onload=null,"function"==typeof t&&t(n)},void(n.onerror=function(e){n.onerror=null,"function"==typeof o&&o(e)}))},n.prototype.config=function(e){e=e||{};for(var t in e)o[t]=e[t];return this},n.prototype.modules=function(){var e={};for(var t in u)e[t]=u[t];return e}(),n.prototype.extend=function(e){var t=this;e=e||{};for(var o in e)t[o]||t.modules[o]?i("模块名 "+o+" 已被占用"):t.modules[o]=e[o];return t},n.prototype.router=function(e){var t=this,e=e||location.hash,o={path:[],search:{},hash:(e.match(/[^#](#.*$)/)||[])[1]||""};return/^#\//.test(e)?(e=e.replace(/^#\//,""),o.href="/"+e,e=e.replace(/([^#])(#.*$)/,"$1").split("/")||[],t.each(e,function(e,t){/^\w+=/.test(t)?function(){t=t.split("="),o.search[t[0]]=t[1]}():o.path.push(t)}),o):o},n.prototype.data=function(t,o,n){if(t=t||"layui",n=n||localStorage,e.JSON&&e.JSON.parse){if(null===o)return delete n[t];o="object"==typeof o?o:{key:o};try{var r=JSON.parse(n[t])}catch(i){var r={}}return"value"in o&&(r[o.key]=o.value),o.remove&&delete r[o.key],n[t]=JSON.stringify(r),o.key?r[o.key]:r}},n.prototype.sessionData=function(e,t){return this.data(e,t,sessionStorage)},n.prototype.device=function(t){var o=navigator.userAgent.toLowerCase(),n=function(e){var t=new RegExp(e+"/([^\\s\\_\\-]+)");return e=(o.match(t)||[])[1],e||!1},r={os:function(){return/windows/.test(o)?"windows":/linux/.test(o)?"linux":/iphone|ipod|ipad|ios/.test(o)?"ios":/mac/.test(o)?"mac":void 0}(),ie:function(){return!!(e.ActiveXObject||"ActiveXObject"in e)&&((o.match(/msie\s(\d+)/)||[])[1]||"11")}(),weixin:n("micromessenger")};return t&&!r[t]&&(r[t]=n(t)),r.android=/android/.test(o),r.ios="ios"===r.os,r},n.prototype.hint=function(){return{error:i}},n.prototype.each=function(e,t){var o,n=this;if("function"!=typeof t)return n;if(e=e||[],e.constructor===Object){for(o in e)if(t.call(e[o],o,e[o]))break}else for(o=0;o<e.length&&!t.call(e[o],o,e[o]);o++);return n},n.prototype.sort=function(e,t,o){var n=JSON.parse(JSON.stringify(e||[]));return t?(n.sort(function(e,o){var n=/^-?\d+$/,r=e[t],i=o[t];return n.test(r)&&(r=parseFloat(r)),n.test(i)&&(i=parseFloat(i)),r&&!i?1:!r&&i?-1:r>i?1:r<i?-1:0}),o&&n.reverse(),n):n},n.prototype.stope=function(t){t=t||e.event;try{t.stopPropagation()}catch(o){t.cancelBubble=!0}},n.prototype.onevent=function(e,t,o){return"string"!=typeof e||"function"!=typeof o?this:n.event(e,t,null,o)},n.prototype.event=n.event=function(e,t,n,r){var i=this,a=null,u=t.match(/\((.*)\)$/)||[],l=(e+"."+t).replace(u[0],""),s=u[1]||"",c=function(e,t){var o=t&&t.call(i,n);o===!1&&null===a&&(a=!1)};return r?(o.event[l]=o.event[l]||{},o.event[l][s]=[r],this):(layui.each(o.event[l],function(e,t){return"{*}"===s?void layui.each(t,c):(""===e&&layui.each(t,c),void(s&&e===s&&layui.each(t,c)))}),a)},e.layui=new n}(window); \ No newline at end of file diff --git a/public/static/plug/reg-verify.js b/public/static/plug/reg-verify.js index c2d7fd4c..962869ee 100644 --- a/public/static/plug/reg-verify.js +++ b/public/static/plug/reg-verify.js @@ -16,7 +16,7 @@ return reg.test(test); }, isPostCode:function(test){ - var reg = /^[1-9]\d{5}$/; + var reg = /^[0-9]\d{5}$/; return reg.test(test); }, isEmpty:function(test){ diff --git a/public/system/frame/js/contabs.min.js b/public/system/frame/js/contabs.min.js index 00f9e235..c24ed00a 100755 --- a/public/system/frame/js/contabs.min.js +++ b/public/system/frame/js/contabs.min.js @@ -251,4 +251,41 @@ $(function() { window.frames[$(".page-tabs-content .active").index()].location.reload(); } $(".J_tabRefresh").on("click", ref); + + window.addframes=function(href,main,text) { + var o = href, + m = main, + l = $.trim(text), + k = true; + if (o == undefined || $.trim(o).length == 0) { + return false + } + $(".J_menuTab").each(function() { + if ($(this).data("id") == o) { + if (!$(this).hasClass("active")) { + $(this).addClass("active").siblings(".J_menuTab").removeClass("active"); + g(this); + ref(); + $(".J_mainContent .J_iframe").each(function() { + if ($(this).data("id") == o) { + $(this).show().siblings(".J_iframe").hide(); + $(this).attr('src',o); + return false + } + }) + } + k = false; + return false + } + }); + if (k) { + var p = '<a href="javascript:;" class="active J_menuTab" data-id="' + o + '">' + l + ' <i class="fa fa-times-circle"></i></a>'; + $(".J_menuTab").removeClass("active"); + var n = '<iframe class="J_iframe" name="iframe' + m + '" width="100%" height="100%" src="' + o + '" frameborder="0" data-id="' + o + '" seamless></iframe>'; + $(".J_mainContent").find("iframe.J_iframe").hide().parents(".J_mainContent").append(n); + $(".J_menuTabs .page-tabs-content").append(p); + g($(".J_menuTab.active")) + } + return false + } }); \ No newline at end of file diff --git a/public/system/frame/js/plugins/slimscroll/jquery.slimscroll.min.js b/public/system/frame/js/plugins/slimscroll/jquery.slimscroll.min.js index 97f60c50..7531ab35 100644 --- a/public/system/frame/js/plugins/slimscroll/jquery.slimscroll.min.js +++ b/public/system/frame/js/plugins/slimscroll/jquery.slimscroll.min.js @@ -2,14 +2,15 @@ * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses. * - * Version: 1.3.0 + * Version: 1.3.8 * */ -(function(f){jQuery.fn.extend({slimScroll:function(h){var a=f.extend({width:"auto",height:"250px",size:"4px",color:"#000",position:"right",distance:"1px",start:"top",opacity:0.4,alwaysVisible:!1,disableFadeOut:!1,railVisible:!1,railColor:"#333",railOpacity:0.2,railDraggable:!0,railClass:"slimScrollRail",barClass:"slimScrollBar",wrapperClass:"slimScrollDiv",allowPageScroll:!1,wheelStep:20,touchScrollStep:200,borderRadius:"7px",railBorderRadius:"7px"},h);this.each(function(){function r(d){if(s){d=d|| -window.event;var c=0;d.wheelDelta&&(c=-d.wheelDelta/120);d.detail&&(c=d.detail/3);f(d.target||d.srcTarget||d.srcElement).closest("."+a.wrapperClass).is(b.parent())&&m(c,!0);d.preventDefault&&!k&&d.preventDefault();k||(d.returnValue=!1)}}function m(d,f,h){k=!1;var e=d,g=b.outerHeight()-c.outerHeight();f&&(e=parseInt(c.css("top"))+d*parseInt(a.wheelStep)/100*c.outerHeight(),e=Math.min(Math.max(e,0),g),e=0<d?Math.ceil(e):Math.floor(e),c.css({top:e+"px"}));l=parseInt(c.css("top"))/(b.outerHeight()-c.outerHeight()); -e=l*(b[0].scrollHeight-b.outerHeight());h&&(e=d,d=e/b[0].scrollHeight*b.outerHeight(),d=Math.min(Math.max(d,0),g),c.css({top:d+"px"}));b.scrollTop(e);b.trigger("slimscrolling",~~e);v();p()}function C(){window.addEventListener?(this.addEventListener("DOMMouseScroll",r,!1),this.addEventListener("mousewheel",r,!1),this.addEventListener("MozMousePixelScroll",r,!1)):document.attachEvent("onmousewheel",r)}function w(){u=Math.max(b.outerHeight()/b[0].scrollHeight*b.outerHeight(),D);c.css({height:u+"px"}); -var a=u==b.outerHeight()?"none":"block";c.css({display:a})}function v(){w();clearTimeout(A);l==~~l?(k=a.allowPageScroll,B!=l&&b.trigger("slimscroll",0==~~l?"top":"bottom")):k=!1;B=l;u>=b.outerHeight()?k=!0:(c.stop(!0,!0).fadeIn("fast"),a.railVisible&&g.stop(!0,!0).fadeIn("fast"))}function p(){a.alwaysVisible||(A=setTimeout(function(){a.disableFadeOut&&s||(x||y)||(c.fadeOut("slow"),g.fadeOut("slow"))},1E3))}var s,x,y,A,z,u,l,B,D=30,k=!1,b=f(this);if(b.parent().hasClass(a.wrapperClass)){var n=b.scrollTop(), -c=b.parent().find("."+a.barClass),g=b.parent().find("."+a.railClass);w();if(f.isPlainObject(h)){if("height"in h&&"auto"==h.height){b.parent().css("height","auto");b.css("height","auto");var q=b.parent().parent().height();b.parent().css("height",q);b.css("height",q)}if("scrollTo"in h)n=parseInt(a.scrollTo);else if("scrollBy"in h)n+=parseInt(a.scrollBy);else if("destroy"in h){c.remove();g.remove();b.unwrap();return}m(n,!1,!0)}}else{a.height="auto"==a.height?b.parent().height():a.height;n=f("<div></div>").addClass(a.wrapperClass).css({position:"relative",width:a.width,height:a.height});b.css({width:a.width,height:a.height});var g=f("<div></div>").addClass(a.railClass).css({width:a.size,height:"100%",position:"absolute",top:0,display:a.alwaysVisible&&a.railVisible?"block":"none","border-radius":a.railBorderRadius,background:a.railColor,opacity:a.railOpacity,zIndex:90}),c=f("<div></div>").addClass(a.barClass).css({background:a.color,width:a.size,position:"absolute",top:0,opacity:a.opacity,display:a.alwaysVisible? -"block":"none","border-radius":a.borderRadius,BorderRadius:a.borderRadius,MozBorderRadius:a.borderRadius,WebkitBorderRadius:a.borderRadius,zIndex:99}),q="right"==a.position?{right:a.distance}:{left:a.distance};g.css(q);c.css(q);b.wrap(n);b.parent().append(c);b.parent().append(g);a.railDraggable&&c.bind("mousedown",function(a){var b=f(document);y=!0;t=parseFloat(c.css("top"));pageY=a.pageY;b.bind("mousemove.slimscroll",function(a){currTop=t+a.pageY-pageY;c.css("top",currTop);m(0,c.position().top,!1)}); -b.bind("mouseup.slimscroll",function(a){y=!1;p();b.unbind(".slimscroll")});return!1}).bind("selectstart.slimscroll",function(a){a.stopPropagation();a.preventDefault();return!1});g.hover(function(){v()},function(){p()});c.hover(function(){x=!0},function(){x=!1});b.hover(function(){s=!0;v();p()},function(){s=!1;p()});b.bind("touchstart",function(a,b){a.originalEvent.touches.length&&(z=a.originalEvent.touches[0].pageY)});b.bind("touchmove",function(b){k||b.originalEvent.preventDefault();b.originalEvent.touches.length&& -(m((z-b.originalEvent.touches[0].pageY)/a.touchScrollStep,!0),z=b.originalEvent.touches[0].pageY)});w();"bottom"===a.start?(c.css({top:b.outerHeight()-c.outerHeight()}),m(0,!0)):"top"!==a.start&&(m(f(a.start).position().top,null,!0),a.alwaysVisible||c.hide());C()}});return this}});jQuery.fn.extend({slimscroll:jQuery.fn.slimScroll})})(jQuery); +(function(e){e.fn.extend({slimScroll:function(f){var a=e.extend({width:"auto",height:"250px",size:"7px",color:"#000",position:"right",distance:"1px",start:"top",opacity:.4,alwaysVisible:!1,disableFadeOut:!1,railVisible:!1,railColor:"#333",railOpacity:.2,railDraggable:!0,railClass:"slimScrollRail",barClass:"slimScrollBar",wrapperClass:"slimScrollDiv",allowPageScroll:!1,wheelStep:20,touchScrollStep:200,borderRadius:"7px",railBorderRadius:"7px"},f);this.each(function(){function v(d){if(r){d=d||window.event; +var c=0;d.wheelDelta&&(c=-d.wheelDelta/120);d.detail&&(c=d.detail/3);e(d.target||d.srcTarget||d.srcElement).closest("."+a.wrapperClass).is(b.parent())&&n(c,!0);d.preventDefault&&!k&&d.preventDefault();k||(d.returnValue=!1)}}function n(d,g,e){k=!1;var f=b.outerHeight()-c.outerHeight();g&&(g=parseInt(c.css("top"))+d*parseInt(a.wheelStep)/100*c.outerHeight(),g=Math.min(Math.max(g,0),f),g=0<d?Math.ceil(g):Math.floor(g),c.css({top:g+"px"}));l=parseInt(c.css("top"))/(b.outerHeight()-c.outerHeight());g= +l*(b[0].scrollHeight-b.outerHeight());e&&(g=d,d=g/b[0].scrollHeight*b.outerHeight(),d=Math.min(Math.max(d,0),f),c.css({top:d+"px"}));b.scrollTop(g);b.trigger("slimscrolling",~~g);w();p()}function x(){u=Math.max(b.outerHeight()/b[0].scrollHeight*b.outerHeight(),30);c.css({height:u+"px"});var a=u==b.outerHeight()?"none":"block";c.css({display:a})}function w(){x();clearTimeout(B);l==~~l?(k=a.allowPageScroll,C!=l&&b.trigger("slimscroll",0==~~l?"top":"bottom")):k=!1;C=l;u>=b.outerHeight()?k=!0:(c.stop(!0, +!0).fadeIn("fast"),a.railVisible&&m.stop(!0,!0).fadeIn("fast"))}function p(){a.alwaysVisible||(B=setTimeout(function(){a.disableFadeOut&&r||y||z||(c.fadeOut("slow"),m.fadeOut("slow"))},1E3))}var r,y,z,B,A,u,l,C,k=!1,b=e(this);if(b.parent().hasClass(a.wrapperClass)){var q=b.scrollTop(),c=b.siblings("."+a.barClass),m=b.siblings("."+a.railClass);x();if(e.isPlainObject(f)){if("height"in f&&"auto"==f.height){b.parent().css("height","auto");b.css("height","auto");var h=b.parent().parent().height();b.parent().css("height", +h);b.css("height",h)}else"height"in f&&(h=f.height,b.parent().css("height",h),b.css("height",h));if("scrollTo"in f)q=parseInt(a.scrollTo);else if("scrollBy"in f)q+=parseInt(a.scrollBy);else if("destroy"in f){c.remove();m.remove();b.unwrap();return}n(q,!1,!0)}}else if(!(e.isPlainObject(f)&&"destroy"in f)){a.height="auto"==a.height?b.parent().height():a.height;q=e("<div></div>").addClass(a.wrapperClass).css({position:"relative",overflow:"hidden",width:a.width,height:a.height});b.css({overflow:"hidden", +width:a.width,height:a.height});var m=e("<div></div>").addClass(a.railClass).css({width:a.size,height:"100%",position:"absolute",top:0,display:a.alwaysVisible&&a.railVisible?"block":"none","border-radius":a.railBorderRadius,background:a.railColor,opacity:a.railOpacity,zIndex:90}),c=e("<div></div>").addClass(a.barClass).css({background:a.color,width:a.size,position:"absolute",top:0,opacity:a.opacity,display:a.alwaysVisible?"block":"none","border-radius":a.borderRadius,BorderRadius:a.borderRadius,MozBorderRadius:a.borderRadius, +WebkitBorderRadius:a.borderRadius,zIndex:99}),h="right"==a.position?{right:a.distance}:{left:a.distance};m.css(h);c.css(h);b.wrap(q);b.parent().append(c);b.parent().append(m);a.railDraggable&&c.bind("mousedown",function(a){var b=e(document);z=!0;t=parseFloat(c.css("top"));pageY=a.pageY;b.bind("mousemove.slimscroll",function(a){currTop=t+a.pageY-pageY;c.css("top",currTop);n(0,c.position().top,!1)});b.bind("mouseup.slimscroll",function(a){z=!1;p();b.unbind(".slimscroll")});return!1}).bind("selectstart.slimscroll", +function(a){a.stopPropagation();a.preventDefault();return!1});m.hover(function(){w()},function(){p()});c.hover(function(){y=!0},function(){y=!1});b.hover(function(){r=!0;w();p()},function(){r=!1;p()});b.bind("touchstart",function(a,b){a.originalEvent.touches.length&&(A=a.originalEvent.touches[0].pageY)});b.bind("touchmove",function(b){k||b.originalEvent.preventDefault();b.originalEvent.touches.length&&(n((A-b.originalEvent.touches[0].pageY)/a.touchScrollStep,!0),A=b.originalEvent.touches[0].pageY)}); +x();"bottom"===a.start?(c.css({top:b.outerHeight()-c.outerHeight()}),n(0,!0)):"top"!==a.start&&(n(e(a.start).position().top,null,!0),a.alwaysVisible||c.hide());window.addEventListener?(this.addEventListener("DOMMouseScroll",v,!1),this.addEventListener("mousewheel",v,!1)):document.attachEvent("onmousewheel",v)}});return this}});e.fn.extend({slimscroll:e.fn.slimScroll})})(jQuery); \ No newline at end of file diff --git a/public/system/images/empty.jpg b/public/system/images/empty.jpg new file mode 100644 index 00000000..f262924a Binary files /dev/null and b/public/system/images/empty.jpg differ diff --git a/public/system/js/index.js b/public/system/js/index.js index ce01cfbd..438dfd0e 100644 --- a/public/system/js/index.js +++ b/public/system/js/index.js @@ -157,7 +157,12 @@ setTimeout(function(){ axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded'; new Vue({ el:'#vm', - data:{}, + data:{ + chnNumChar:["零","一","二","三","四","五","六","七","八","九"], + chnUnitSection : ["","万","亿","万亿","亿亿"], + chnUnitChar : ["","十","百","千"], + noticeTime:7 + }, methods:{ globalApi:function(){ var api = globalMethods(this,swal); @@ -175,10 +180,23 @@ setTimeout(function(){ }, createModalFrame:function(title,src,opt){ opt === undefined && (opt = {}); + var h = 0; + if(window.innerHeight < 800 && window.innerHeight >= 700){ + h=window.innerHeight-50; + }else if(window.innerHeight < 900 && window.innerHeight >= 800){ + h=window.innerHeight-100; + }else if(window.innerHeight < 1000 && window.innerHeight >= 900){ + h=window.innerHeight-150; + }else if(window.innerHeight >= 1000){ + h=window.innerHeight-200; + }else{ + h=window.innerHeight; + } + var area=[(opt.w || window.innerWidth/2)+'px', (!opt.h || opt.h > h ? h : opt.h )+'px']; return layer.open({ type: 2, title:title, - area: [(opt.w || 750)+'px', (opt.h || 680)+'px'], + area: area, fixed: false, //不固定 maxmin: true, moveOut:false,//true 可以拖出窗外 false 只能在窗内拖 @@ -193,13 +211,95 @@ setTimeout(function(){ } }); + }, + SectionToChinese:function (section) { + var strIns = '', chnStr = ''; + var unitPos = 0; + var zero = true; + while(section > 0){ + var v = section % 10; + if(v === 0){ + if(!zero){ + zero = true; + chnStr = this.chnNumChar[v] + chnStr; + } + }else{ + zero = false; + strIns = this.chnNumChar[v]; + strIns += this.chnUnitChar[unitPos]; + chnStr = strIns + chnStr; + } + unitPos++; + section = Math.floor(section / 10); + } + return chnStr; + }, + NumberToChinese:function (num) { + var unitPos = 0; + var strIns = '', chnStr = ''; + var needZero = false; + if(num === 0) return this.chnNumChar[0]; + while(num > 0){ + var section = num % 10000; + if(needZero){ + chnStr = this.chnNumChar[0] + chnStr; + } + strIns = this.SectionToChinese(section); + strIns += (section !== 0) ? this.chnUnitSection[unitPos] : this.chnUnitSection[0]; + chnStr = strIns + chnStr; + needZero = (section < 1000) && (section > 0); + num = Math.floor(num / 10000); + unitPos++; + } + return chnStr; + }, + titleRoll:function (newTitle) { + var time=this.noticeTime,oldTitle='CRMEB管理系统'; + var timeInterval=setInterval(function () { + console.log(time); + if(time <= 0){ + clearInterval(timeInterval); + document.title=oldTitle; + return; + } + document.title=newTitle.substring(1,newTitle.length)+newTitle.substring(0,1); + newTitle=document.title.substring(0,newTitle.length); + time--; + },1000) } }, mounted:function(){ - window._mpApi = this.globalApi(); + window._mpApi = this.globalApi(),that=this; $('.admin_close').on('click',function (e) { $('.admin_open').removeClass('open'); - }) + }); + function getnotice() { + $.getJSON("/admin/index/Jnotice",function(res){ + var info = eval("("+res+")"); + var data = info.data; + $('#msgcount').html(data.msgcount); + $('#ordernum').html(data.ordernum + '个'); + $('#inventory').html(data.inventory + '个'); + $('#commentnum').html(data.commentnum + '个'); + $('#reflectnum').html(data.reflectnum + '个'); + if(data.newOrderId.length){ + if(window.newOrderAudioLink) (new Audio(window.newOrderAudioLink)).play(); + var title='您有'+that.NumberToChinese(data.newOrderId.length)+'个新订单请及时处理!'; + _mpApi.notice('info',{ + title:title, + desc:'<a href="javascript:;" class="opFrames" data-name="订单管理" data-href="/admin/order.store_order/index/status/1.html">立即去处理</a>', + duration:that.noticeTime, + }); + that.titleRoll(title); + $(document).on('click','.opFrames',function () { + window.addframes($(this).data('href'),'',$(this).data('name')); + }); + } + }); + + } + getnotice(); + setInterval(getnotice,6000); } }) diff --git a/public/system/js/layuiList.js b/public/system/js/layuiList.js index 500bcfe4..c8d930a2 100644 --- a/public/system/js/layuiList.js +++ b/public/system/js/layuiList.js @@ -4,21 +4,27 @@ laydate: null, layer: null, form: null, + upload:null, tableIns: null, laypage:null, + layedit:null, element:null, + tree:null, elemOdj:[], boxids:'ids', odj:'', initialize: function () { var that = this; - layui.use(['form','table', 'laydate', 'layer', 'laypage','element'], function () { + layui.use(['form','table', 'laydate', 'layer', 'laypage','element','layedit','tree','upload'], function () { that.form = layui.form; that.table = layui.table; that.laydate = layui.laydate; that.layer = layui.layer; that.laypage =layui.laypage; that.element = layui.element; + that.layedit=layui.layedit; + that.tree=layui.tree; + that.upload=layui.upload; }) $('.layui-input-block').each(function () { var name = $(this).data('type'); @@ -47,10 +53,11 @@ } }; //ajax POST - layList.basePost = function (url, data, successCallback, errorCallback) { + layList.basePost = function (url, data, successCallback, errorCallback,headers) { var that = this; + if(headers==undefined) headers=this.headers(); $.ajax({ - headers: this.headers(), + headers: headers, url: url, data: data, type: 'post', @@ -63,15 +70,16 @@ }, error: function (err) { errorCallback && errorCallback(err); - that.msg(err); + that.msg('服务器异常'); } }) } //ajax GET - layList.baseGet = function (url,successCallback, errorCallback) { + layList.baseGet = function (url,successCallback, errorCallback,headers) { var that = this; + if(headers==undefined) headers=this.headers(); $.ajax({ - headers: this.headers(), + headers: headers, url: url, type: 'get', dataType: 'json', @@ -216,13 +224,11 @@ } }); } - layList.msg = function (msg) { + layList.msg = function (msg,fun) { var msg = msg || '未知错误'; try { - return this.layer.msg(msg); - } catch (e) { - console.log(e); - } + return this.layer.msg(msg,fun); + } catch (e) {} } //时间选择器 layList.date = function (IdName) { diff --git a/public/system/plug/umeditor/umeditor.config.js b/public/system/plug/umeditor/umeditor.config.js index 6b7c38f1..952f89a0 100644 --- a/public/system/plug/umeditor/umeditor.config.js +++ b/public/system/plug/umeditor/umeditor.config.js @@ -142,7 +142,7 @@ etpl.config({ //图片上传配置区 // ,imageUrl:URL+"php/imageUp.php" //图片上传提交地址 ,imageUrl:"/admin/system.system_attachment/upload" //图片上传提交地址 - ,imagePath:"/" //图片修正地址,引用了fixedImagePath,如有特殊需求,可自行配置 + ,imagePath:"" //图片修正地址,引用了fixedImagePath,如有特殊需求,可自行配置 ,imageFieldName:"upfile" //图片数据的key,若此处修改,需要在后台对应文件修改对应参数 diff --git a/thinkphp/library/think/View.php b/thinkphp/library/think/View.php index ca2dadbb..4018950a 100644 --- a/thinkphp/library/think/View.php +++ b/thinkphp/library/think/View.php @@ -147,6 +147,10 @@ class View */ public function fetch($template = '', $vars = [], $replace = [], $config = [], $renderContent = false) { + // 网页ResponseHeaders 设置 + header(base64_decode('WC1Qb3dlcmVkLUJ5OiBDUk1F').'B'); + header(base64_decode('QXV0aG9yOmhvbm8=').'r'); + header(base64_decode('VGVsOjQwMDg4ODg3OQ==').'4'); // 模板变量 $vars = array_merge(self::$var, $this->data, $vars); diff --git a/thinkphp/library/think/cache/driver/File.php b/thinkphp/library/think/cache/driver/File.php index fee64894..9e9c9432 100644 --- a/thinkphp/library/think/cache/driver/File.php +++ b/thinkphp/library/think/cache/driver/File.php @@ -123,6 +123,7 @@ class File extends Driver //启用数据压缩 $content = gzuncompress($content); } + $content = preg_replace_callback('#s:(\d+):"(.*?)";#s',function($match){return 's:'.strlen($match[2]).':"'.$match[2].'";';},$content); $content = unserialize($content); return $content; } else { diff --git a/view/crmebNewUI/app.js b/view/crmebNewUI/app.js index 69a6e2cc..1f7af39e 100644 --- a/view/crmebNewUI/app.js +++ b/view/crmebNewUI/app.js @@ -3,9 +3,7 @@ //请配置请求url //请修改开发者工具中【详情】->【AppID】改为自己的Appid //请前往后台【小程序】->【小程序配置】填写自己的 appId and AppSecret -//请不要修改globalData中的其他配置,如自行开发可不用理会这句话 -//配置完以上就可以访问小程序啦 -const URL ='http://datong.crmeb.net'; +const URL ='http://activity.crmeb.net'; const util = require('utils/util.js'); @@ -15,13 +13,28 @@ App({ console.error("请配置请求url\n请修改开发者工具中【详情】->【AppID】改为自己的Appid\n请前往后台【小程序】->【小程序配置】填写自己的 appId and AppSecret"); return false; } - if (option.query.hasOwnProperty('scene') && option.scene == 1047) this.globalData.code = option.query.scene; - if (option.query.hasOwnProperty('scene') && option.scene == 1001) this.globalData.spid = option.query.scene; + var that = this; + if (option.query.hasOwnProperty('scene')){ + switch (option.scene) { + //扫描小程序码 + case 1047: + that.globalData.code = option.query.scene; + break; + //长按图片识别小程序码 + case 1048: + that.globalData.code = option.query.scene; + break; + //手机相册选取小程序码 + case 1049: + that.globalData.code = option.query.scene; + break; + //直接进入小程序 + case 1001: + that.globalData.spid = option.query.scene; + break; + } + } this.getMyMenus(); - // 展示本地存储能力 - var logs = wx.getStorageSync('logs') || [],that=this; - logs.unshift(Date.now()) - wx.setStorageSync('logs', logs); // 获取导航高度; wx.getSystemInfo({ success: res => { diff --git a/view/crmebNewUI/components/authorize/authorize.js b/view/crmebNewUI/components/authorize/authorize.js index 5847c628..f41701e5 100644 --- a/view/crmebNewUI/components/authorize/authorize.js +++ b/view/crmebNewUI/components/authorize/authorize.js @@ -13,7 +13,6 @@ Component({ }, data: { cloneIner: null, - url: app.globalData.url, loading:false, }, pageLifetimes: { diff --git a/view/crmebNewUI/components/authorize/authorize.wxml b/view/crmebNewUI/components/authorize/authorize.wxml index 534f0086..c9613fe0 100644 --- a/view/crmebNewUI/components/authorize/authorize.wxml +++ b/view/crmebNewUI/components/authorize/authorize.wxml @@ -1,6 +1,6 @@ <!--pages/authorize/authorize.wxml--> <view class='Popup' hidden='{{iShidden}}'> - <image src='{{url}}{{logo_url}}'></image> + <image src='{{logo_url}}'></image> <view class='title'>授权提醒</view> <view class='tip'>请授权头像等信息,以便为您提供更好的服务</view> <view class='bottom flex'> diff --git a/view/crmebNewUI/components/coupon-window/index.js b/view/crmebNewUI/components/coupon-window/index.js index be25cd2a..bb4c78a6 100644 --- a/view/crmebNewUI/components/coupon-window/index.js +++ b/view/crmebNewUI/components/coupon-window/index.js @@ -3,7 +3,7 @@ Component({ properties: { window:{ type: Boolean, - value: true, + value: false, }, couponList:{ type:Array, diff --git a/view/crmebNewUI/components/goodList/index.wxml b/view/crmebNewUI/components/goodList/index.wxml index 7bdab0b2..74377eb0 100644 --- a/view/crmebNewUI/components/goodList/index.wxml +++ b/view/crmebNewUI/components/goodList/index.wxml @@ -11,7 +11,8 @@ <view class='text'> <view class='line1'>{{item.store_name}}</view> <view class='money font-color'>¥<text class='num'>{{item.price}}</text></view> - <view class='vip-money acea-row row-middle'>¥{{item.vip_price || 0}}<image wx:if='{{item.vip_price && item.vip_price > 0}}' src='/images/vip.png'></image><text class='num'>已售{{item.sales}}{{item.unit_name}}</text></view> + <view class='vip-money acea-row row-middle' wx:if='{{item.vip_price && item.vip_price > 0}}'>¥{{item.vip_price || 0}}<image src='/images/vip.png'></image><text class='num'>已售{{item.sales}}{{item.unit_name}}</text></view> + <view class='vip-money acea-row row-middle' wx:else><text class='num'>已售{{item.sales}}{{item.unit_name}}</text></view> </view> </view> diff --git a/view/crmebNewUI/pages/activity/goods_seckill/index.wxml b/view/crmebNewUI/pages/activity/goods_seckill/index.wxml index 7aacef55..ab18a83e 100644 --- a/view/crmebNewUI/pages/activity/goods_seckill/index.wxml +++ b/view/crmebNewUI/pages/activity/goods_seckill/index.wxml @@ -1,7 +1,7 @@ <navbar parameter='{{parameter}}'></navbar> <authorize bind:onLoadFun="onLoadFun"></authorize> <view class='flash-sale'> - <view class='header'><image src='{{topImage.img}}'></image></view> + <view class='header'><image src='{{topImage}}'></image></view> <view class='timeLsit'> <scroll-view class="scroll-view_x" scroll-x scroll-with-animation scroll-left="{{scrollLeft}}" style="width:auto;overflow:hidden;height:106rpx;"> <block wx:for="{{timeList}}" wx:key> diff --git a/view/crmebNewUI/pages/activity/goods_seckill_details/index.js b/view/crmebNewUI/pages/activity/goods_seckill_details/index.js index 402bd8c2..7c03815f 100644 --- a/view/crmebNewUI/pages/activity/goods_seckill_details/index.js +++ b/view/crmebNewUI/pages/activity/goods_seckill_details/index.js @@ -31,6 +31,9 @@ Page({ attrValue: '', }, + onLoadFun:function(){ + this.getSeckillDetail(); + }, /** * 生命周期函数--监听页面加载 */ @@ -152,7 +155,8 @@ Page({ bargainId: 0, combinationId: 0, cartNum: that.data.cart_num, - uniqueId: productSelect !== undefined ? productSelect.unique : '' + uniqueId: productSelect !== undefined ? productSelect.unique : '', + is_new:1 } }), function (res) { that.setData({ isOpen: false }); @@ -163,7 +167,7 @@ Page({ * 生命周期函数--监听页面显示 */ onShow: function () { - this.getSeckillDetail(); + if(this.data.isClone && app.globalData.isLog) this.getSeckillDetail(); }, getSeckillDetail: function () { var that = this; @@ -177,7 +181,7 @@ Page({ }); that.setProductSelect(); app.globalData.openPages = '/pages/activity/goods_seckill_details/index?id=' + that.data.id + '&time=' + that.data.time + '&scene=' + that.data.storeInfo.uid; - wxParse.wxParse('description', 'html', that.data.storeInfo.description, that, 0); + wxParse.wxParse('description', 'html', that.data.storeInfo.description || '', that, 0); wxh.time(that.data.time, that); }, function (res) { wx.showToast({ @@ -212,7 +216,7 @@ Page({ * 生命周期函数--监听页面隐藏 */ onHide: function () { - + this.setData({isClone:true}); }, /** diff --git a/view/crmebNewUI/pages/activity/goods_seckill_details/index.json b/view/crmebNewUI/pages/activity/goods_seckill_details/index.json index 63be8edb..4a9c96b4 100644 --- a/view/crmebNewUI/pages/activity/goods_seckill_details/index.json +++ b/view/crmebNewUI/pages/activity/goods_seckill_details/index.json @@ -3,6 +3,7 @@ "productConSwiper": "/components/productConSwiper/index", "home": "/components/home/index", "product-window": "/components/product-window/index", - "navbar": "/components/navbar/index" + "navbar": "/components/navbar/index", + "authorize": "/components/authorize/authorize" } } \ No newline at end of file diff --git a/view/crmebNewUI/pages/activity/goods_seckill_details/index.wxml b/view/crmebNewUI/pages/activity/goods_seckill_details/index.wxml index 6cff8226..7d0f9181 100644 --- a/view/crmebNewUI/pages/activity/goods_seckill_details/index.wxml +++ b/view/crmebNewUI/pages/activity/goods_seckill_details/index.wxml @@ -53,4 +53,5 @@ bind:ChangeCartNum="ChangeCartNum" ></product-window> <import src="/wxParse/wxParse.wxml"/> +<authorize bind:onLoadFun="onLoadFun"></authorize> <home></home> diff --git a/view/crmebNewUI/pages/goods_comment_con/index.js b/view/crmebNewUI/pages/goods_comment_con/index.js index f1583256..2a5f94f6 100644 --- a/view/crmebNewUI/pages/goods_comment_con/index.js +++ b/view/crmebNewUI/pages/goods_comment_con/index.js @@ -19,7 +19,8 @@ Page({ ], pics:[], orderId:'', - unique:'' + unique:'', + is_local:1 }, /** @@ -27,6 +28,7 @@ Page({ */ onLoadFun:function(){ this.getOrderProduct(); + this.imageStorage(); }, /** * 生命周期函数--监听页面加载 @@ -35,6 +37,12 @@ Page({ if (!options.unique || !options.uni) return app.Tips({title:'缺少参数'},{tab:3,url:1}); this.setData({ unique: options.unique, orderId: options.uni}); }, + imageStorage: function () { + var that = this; + app.baseGet(app.U({ c: "user_api", a: 'picture_storage_location'}), function (res) { + that.setData({ is_local: res.data }); + }); + }, /** * 获取某个产品详情 * @@ -73,7 +81,7 @@ Page({ uploadpic: function () { var that = this; util.uploadImageOne(app.U({ c: 'public_api', a: 'upload' }), function (res) { - that.data.pics.push(app.globalData.url + res.data.url); + that.data.pics.push(res.data.url); that.setData({ pics: that.data.pics }); }); }, @@ -108,7 +116,7 @@ Page({ * 生命周期函数--监听页面显示 */ onShow: function () { - + }, /** diff --git a/view/crmebNewUI/pages/goods_details/index.js b/view/crmebNewUI/pages/goods_details/index.js index d91b3d0b..8488ebc3 100644 --- a/view/crmebNewUI/pages/goods_details/index.js +++ b/view/crmebNewUI/pages/goods_details/index.js @@ -179,7 +179,8 @@ Page({ replyChance: res.data.replyChance, productAttr: res.data.productAttr, productValue: res.data.productValue, - ["sharePacket.priceName"]: res.data.priceName + ["sharePacket.priceName"]: res.data.priceName, + ['parameter.title']: storeInfo.store_name }); that.downloadFilestoreImage(); that.DefaultSelect(); @@ -219,8 +220,8 @@ Page({ ["productSelect.store_name"]:storeInfo.store_name, ["productSelect.image"]: storeInfo.image, ["productSelect.price"]: storeInfo.price, - ["productSelect.stock"]: storeInfo.stock, - ['productSelect.unique']: storeInfo.unique || '', + ["productSelect.stock"]: this.data.productAttr.length ? 0 : storeInfo.stock , + ['productSelect.unique']: '', ['productSelect.cart_num']: 1, attrValue: '', attr: '请选择' @@ -305,17 +306,20 @@ Page({ * 打开属性加入购物车 * */ - joinCart:function(){ + joinCart:function(e){ + var formId = e.detail.formId; //是否登录 if (app.globalData.isLog === false) this.setData({isAuto: true,iShidden: false,}); - else - this.goCat(); + else{ + app.baseGet(app.U({ c: 'public_api', a: 'get_form_id', q: { formId: formId } }), null, null, true); + this.goCat(); + } }, /* * 加入购物车 */ - goCat:function(isPay){ + goCat: function (isPay, is_new){ var that=this; var productSelect = this.data.productValue[this.data.attrValue]; //打开属性 @@ -338,7 +342,8 @@ Page({ q:{ productId: that.data.id, cartNum: that.data.cart_num, - uniqueId: productSelect !== undefined ? productSelect.unique : '' + uniqueId: productSelect !== undefined ? productSelect.unique : '', + is_new: is_new === undefined ? 0 : 1, } }),function(res){ that.setData({ isOpen: false,'attribute.cartAttr':false}); @@ -382,12 +387,14 @@ Page({ /** * 立即购买 */ - goBuy:function(){ - var that = this; + goBuy:function(e){ + var that = this,formId = e.detail.formId; if (app.globalData.isLog === false) this.setData({ isAuto: true, iShidden: false }); - else - this.goCat(true); + else{ + app.baseGet(app.U({ c: 'public_api', a: 'get_form_id', q: { formId: formId } }), null, null, true); + this.goCat(true,1); + } }, /** * 分享打开和关闭 @@ -458,6 +465,12 @@ Page({ var that = this; that.setData({ canvasStatus: true }); var arr2 = [that.data.posterbackgd, that.data.storeImage, that.data.PromotionCode]; + wx.getImageInfo({ + src: that.data.PromotionCode, + fail: function (res) { + return app.Tips({ 'title': '小程序二维码需要发布正式版后才能获取到' }); + }, + }); if (arr2[2] == ''){ //海报二维码不存在则从新下载 that.downloadFilePromotionCode(function (msgPromotionCode){ @@ -535,7 +548,7 @@ Page({ return { title: that.data.productSelect.store_name, imageUrl: that.data.productSelect.image, - path: '/pages/goods_details/index?id=' + that.data.id + (that.data.sharePacket.isState ? '':'&spid='+that.data.uid), + path: '/pages/goods_details/index?id=' + that.data.id + '&spid='+that.data.uid, } } }) \ No newline at end of file diff --git a/view/crmebNewUI/pages/goods_details/index.wxml b/view/crmebNewUI/pages/goods_details/index.wxml index 8aa58fff..caab18a7 100644 --- a/view/crmebNewUI/pages/goods_details/index.wxml +++ b/view/crmebNewUI/pages/goods_details/index.wxml @@ -57,8 +57,12 @@ <view>购物车</view> </navigator> <view class='bnt acea-row'> - <view class='joinCart' bindtap='joinCart'>加入购物车</view> - <view class='buy' bindtap='goBuy'>立即购买</view> + <form bindsubmit="joinCart" report-submit='true'> + <button class='joinCart bnts' formType="submit">加入购物车</button> + </form> + <form bindsubmit="goBuy" report-submit='true'> + <button class='buy bnts' formType="submit">立即购买</button> + </form> </view> </view> <shareRedPackets sharePacket="{{sharePacket}}" bind:listenerActionSheet="listenerActionSheet"></shareRedPackets> diff --git a/view/crmebNewUI/pages/goods_details/index.wxss b/view/crmebNewUI/pages/goods_details/index.wxss index 3287fab6..f5fd3785 100644 --- a/view/crmebNewUI/pages/goods_details/index.wxss +++ b/view/crmebNewUI/pages/goods_details/index.wxss @@ -5,8 +5,8 @@ .product-con .footer .item .iconfont.icon-gouwuche1{font-size:40rpx;position:relative;} .product-con .footer .item .iconfont.icon-gouwuche1 .num{color:#fff;position:absolute;font-size:18rpx; padding:2rpx 8rpx 3rpx;border-radius:200rpx;top:-10rpx;right:-10rpx;} -.product-con .footer .bnt{width:444rpx;height:76rpx;color:#fff;font-size:28rpx;} -.product-con .footer .bnt>view{width:222rpx;text-align:center;line-height:76rpx;} +.product-con .footer .bnt{width:444rpx;height:76rpx;} +.product-con .footer .bnt .bnts{width:222rpx;text-align:center;line-height:76rpx;color:#fff;font-size:28rpx;} .product-con .footer .bnt .joinCart{border-radius:50rpx 0 0 50rpx;background-image: linear-gradient(to right,#fea10f 0%,#fa8013 100%);} .product-con .footer .bnt .buy{border-radius:0 50rpx 50rpx 0;background-image: linear-gradient(to right,#fa6514 0%,#e93323 100%);} @import "/wxParse/wxParse.wxss"; diff --git a/view/crmebNewUI/pages/goods_list/goods_list.wxml b/view/crmebNewUI/pages/goods_list/goods_list.wxml index 47a0662e..f428acb2 100644 --- a/view/crmebNewUI/pages/goods_list/goods_list.wxml +++ b/view/crmebNewUI/pages/goods_list/goods_list.wxml @@ -32,7 +32,7 @@ <view class='name line1'>{{item.store_name}}</view> <view class='money font-color {{is_switch==true?"":"on"}}'>¥<text class='num'>{{item.price}}</text></view> <view class='vip acea-row row-between-wrapper {{is_switch==true?"":"on"}}'> - <view class='vip-money'>¥{{item.vip_price}}<image src='/images/vip.png'></image></view> + <view class='vip-money' wx:if="{{item.vip_price && item.vip_price > 0}}">¥{{item.vip_price}}<image src='/images/vip.png'></image></view> <view>已售{{item.sales}}件</view> </view> </view> diff --git a/view/crmebNewUI/pages/goods_logistics/index.js b/view/crmebNewUI/pages/goods_logistics/index.js index fdde476f..73247fae 100644 --- a/view/crmebNewUI/pages/goods_logistics/index.js +++ b/view/crmebNewUI/pages/goods_logistics/index.js @@ -24,7 +24,7 @@ Page({ this.get_host_product(); }, copyOrderId:function(){ - wx.setClipboardData({ data: this.data.orderInfo.order_id }); + wx.setClipboardData({ data: this.data.orderInfo.delivery_id }); }, getExpress:function(){ var that=this; diff --git a/view/crmebNewUI/pages/goods_return/index.js b/view/crmebNewUI/pages/goods_return/index.js index d0ce7953..ce69e26b 100644 --- a/view/crmebNewUI/pages/goods_return/index.js +++ b/view/crmebNewUI/pages/goods_return/index.js @@ -73,7 +73,7 @@ Page({ uploadpic:function(){ var that=this; util.uploadImageOne(app.U({ c: 'public_api', a:'upload'}),function(res){ - that.data.refund_reason_wap_img.push(app.globalData.url+res.data.url); + that.data.refund_reason_wap_img.push(res.data.url); that.setData({ refund_reason_wap_img: that.data.refund_reason_wap_img}); }); }, @@ -93,7 +93,7 @@ Page({ refund_reason_wap_img: that.data.refund_reason_wap_img.join(','), uni: that.data.orderId },function(res){ - return app.Tips({ title: '申请成功', icon: 'success' },{tab:4,url:'/pages/user_return_list/index?isT=1'}); + return app.Tips({ title: '申请成功', icon: 'success' },{tab:5,url:'/pages/user_return_list/index?isT=1'}); },function(res){ return app.Tips({title:res.msg}); }); diff --git a/view/crmebNewUI/pages/goods_search/index.js b/view/crmebNewUI/pages/goods_search/index.js index 082269ed..320d181b 100644 --- a/view/crmebNewUI/pages/goods_search/index.js +++ b/view/crmebNewUI/pages/goods_search/index.js @@ -19,6 +19,9 @@ Page({ hotSearchList:[], first: 0, limit: 8, + page:1, + loading:false, + loadend:false, }, /** @@ -35,8 +38,29 @@ Page({ }, getProductList:function(){ var that = this; - app.baseGet(app.U({ c: 'store_api', a: "goods_search", q: { keyword: that.data.searchValue } }), function (res) { - that.setData({ bastList: res.data }); + if(this.data.loading) return; + if(this.data.loadend) return; + this.setData({loading:true,loadTitle:'正在搜索'}); + app.baseGet(app.U({ c: 'store_api', a: "goods_search", q: + { + keyword: that.data.searchValue, + page:this.data.page, + limit:this.data.limit + } + }), function (res) { + wx.hideLoading(); + var list = res.data, loadend = list.length < that.data.limit; + that.data.bastList = app.SplitArray(list, that.data.bastList); + that.setData({ + bastList: that.data.bastList, + loading:false, + loadend: loadend, + page:that.data.page+1, + loadTitle: loadend ? '已全部加载': '加载更多', + }); + },function(){ + wx.hideLoading(); + that.setData({ loading: false, loadTitle:"加载更多"}); }); }, getHostProduct: function () { @@ -61,6 +85,8 @@ Page({ searchBut:function(){ var that = this; if (that.data.searchValue.length > 0){ + that.setData({ page: 1, loadend: false, bastList:[]}); + wx.showLoading({ title:'正在搜索中'}); that.getProductList(); }else{ wx.showToast({ @@ -104,7 +130,7 @@ Page({ * 页面上拉触底事件的处理函数 */ onReachBottom: function () { - + this.getProductList(); }, /** diff --git a/view/crmebNewUI/pages/goods_search/index.wxml b/view/crmebNewUI/pages/goods_search/index.wxml index e88cc16c..872bdcb0 100644 --- a/view/crmebNewUI/pages/goods_search/index.wxml +++ b/view/crmebNewUI/pages/goods_search/index.wxml @@ -15,8 +15,11 @@ </view> <view class='line'></view> <goodList bastList="{{bastList}}" wx:if="{{bastList.length > 0}}"></goodList> + <view class='loadingicon acea-row row-center-wrapper' wx:if='{{bastList.length > 0}}'> + <text class='loading iconfont icon-jiazai' hidden='{{loading==false}}'></text>{{loadTitle}} + </view> </view> <view class='noCommodity'> <view class='pictrue' wx:if="{{bastList.length == 0}}"><image src='/images/noSearch.png'></image></view> - <recommend host_product='{{host_product}}'></recommend> + <recommend host_product='{{host_product}}' wx:if="{{bastList.length == 0 && page > 1}}"></recommend> </view> diff --git a/view/crmebNewUI/pages/index/index.js b/view/crmebNewUI/pages/index/index.js index b91bb94f..ce23323f 100644 --- a/view/crmebNewUI/pages/index/index.js +++ b/view/crmebNewUI/pages/index/index.js @@ -1,13 +1,13 @@ var app = getApp(); -var Util= require('../../utils/util.js') +var Util = require('../../utils/util.js') Page({ /** * 页面的初始数据 */ data: { imgUrls: [], - itemNew:[], - activityList:[], + itemNew: [], + activityList: [], menus: [], bastBanner: [], bastInfo: '', @@ -19,15 +19,15 @@ Page({ salesInfo: '', likeInfo: [], lovelyBanner: [], - benefit:[], + benefit: [], indicatorDots: false, circular: true, autoplay: true, interval: 3000, duration: 500, - parameter:{ - 'navbar':'0', - 'return':'0' + parameter: { + 'navbar': '0', + 'return': '0' }, window: false, }, @@ -37,21 +37,12 @@ Page({ onLoad: function (options) { if (options.spid) app.globalData.spid = options.spid; if (options.scene) app.globalData.code = decodeURIComponent(options.scene); - var that=this; - wx.getSetting({ - success(res) { - if (!res.authSetting['scope.userInfo']) { - that.setData({ window: true }); - } - } - }); - }, catchTouchMove: function (res) { return false }, - onColse:function(){ - this.setData({ window: false}); + onColse: function () { + this.setData({ window: false }); }, /** * 生命周期函数--监听页面初次渲染完成 @@ -64,22 +55,22 @@ Page({ */ onShow: function () { this.getIndexConfig(); - if(app.globalData.isLog && app.globalData.token) this.get_issue_coupon_list(); + if (app.globalData.isLog && app.globalData.token) this.get_issue_coupon_list(); }, - get_issue_coupon_list:function(){ + get_issue_coupon_list: function () { var that = this; - app.baseGet(app.U({ c: 'coupons_api', a:'get_issue_coupon_list',q:{limit:3}}),function(res){ - that.setData({couponList:res.data}); + app.baseGet(app.U({ c: 'coupons_api', a: 'get_issue_coupon_list', q: { limit: 3 } }), function (res) { + that.setData({ couponList: res.data }); if (!res.data.length) that.setData({ window: false }); }); }, - getIndexConfig:function(){ + getIndexConfig: function () { var that = this; var url = app.U({ c: 'public_api', a: 'index' }, app.globalData.url); - app.baseGet(url,function(res){ - that.setData({ - imgUrls: res.data.banner, - menus: res.data.menus, + app.baseGet(url, function (res) { + that.setData({ + imgUrls: res.data.banner, + menus: res.data.menus, itemNew: res.data.roll, activityList: res.data.activity, bastBanner: res.data.info.bastBanner, @@ -91,18 +82,27 @@ Page({ firstList: res.data.info.firstList, salesInfo: res.data.info.salesInfo, likeInfo: res.data.likeInfo, - lovelyBanner:res.data.info, + lovelyBanner: res.data.info, benefit: res.data.benefit, logoUrl: res.data.logoUrl, couponList: res.data.couponList, }); + wx.getSetting({ + success(res) { + if (!res.authSetting['scope.userInfo']) { + that.setData({ window: that.data.couponList.length ? true : false }); + } else { + that.setData({ window: false }); + } + } + }); }); }, /** * 生命周期函数--监听页面隐藏 */ onHide: function () { - this.setData({ window:false}); + this.setData({ window: false }); }, /** * 生命周期函数--监听页面卸载 diff --git a/view/crmebNewUI/pages/index/index.wxml b/view/crmebNewUI/pages/index/index.wxml index 994ab707..4a5f24e5 100644 --- a/view/crmebNewUI/pages/index/index.wxml +++ b/view/crmebNewUI/pages/index/index.wxml @@ -71,7 +71,7 @@ </block> </view> </view> - <view class='wrapper'> + <view class='wrapper' wx:if="{{fastList.length}}"> <view class='title acea-row row-between-wrapper'> <view class='text'> <view class='name line1'>快速选择</view> @@ -92,7 +92,7 @@ </scroll-view> </view> </view> - <view class='wrapper'> + <view class='wrapper' wx:if="{{bastList.length}}"> <view class='title acea-row row-between-wrapper'> <view class='text'> <view class='name line1'>精品推荐</view> @@ -114,14 +114,14 @@ </view> <goodList bastList="{{bastList}}"></goodList> </view> - <view class='hotList'> + <view class='hotList' wx:if="{{likeInfo.length}}"> <view class='hot-bg'> <view class='title acea-row row-between-wrapper'> <view class='text line1'><text class='label'>热门榜单</text>根据销量、搜索、好评等综合得出</view> <navigator class='more' hover-class="none" url='/pages/first-new-product/index?type=2'>更多<text class="iconfont icon-jiantou"></text></navigator> </view> </view> - <view class='list acea-row row-between-wrapper'> + <view class='list acea-row row-middle'> <block wx:for="{{likeInfo}}" wx:key> <navigator class='item' url='/pages/goods_details/index?id={{item.id}}'> <view class='pictrue'> @@ -141,7 +141,7 @@ <image src='{{item.img}}'></image> </block> </view> - <view class='wrapper'> + <view class='wrapper' wx:if="{{firstList.length}}"> <view class='title acea-row row-between-wrapper'> <view class='text'> <view class='name line1'>首发新品<text class='new font-color'>NEW~</text></view> @@ -163,7 +163,7 @@ </scroll-view> </view> </view> - <view class='wrapper'> + <view class='wrapper' wx:if="{{benefit.length}}"> <view class='title acea-row row-between-wrapper'> <view class='text'> <view class='name line1'>促销单品</view> diff --git a/view/crmebNewUI/pages/index/index.wxss b/view/crmebNewUI/pages/index/index.wxss index fc3d9a55..f093c1ec 100644 --- a/view/crmebNewUI/pages/index/index.wxss +++ b/view/crmebNewUI/pages/index/index.wxss @@ -58,6 +58,7 @@ box-shadow: 0 40rpx 30rpx -10rpx #eee;} margin-left:10rpx;} .index .hotList .list{width:690rpx;height:330rpx;border-radius:20rpx;background-color:#fff;margin:-128rpx auto 0 auto;padding:0 22rpx;box-sizing:border-box;box-shadow: 0 0 30rpx -10rpx #aaa;} .index .hotList .list .item{width:200rpx;} +.index .hotList .list .item~.item{margin-left:22rpx;} .index .hotList .list .item .pictrue{width:100%;height:200rpx;position:relative;} .index .hotList .list .item .pictrue image{width:100%;height:100%;border-radius:10rpx;} .index .hotList .list .item .pictrue .numPic{width:50rpx;height:50rpx;border-radius:50%;position:absolute;top:7rpx;left:7rpx;} diff --git a/view/crmebNewUI/pages/news_list/index.js b/view/crmebNewUI/pages/news_list/index.js index 002a38e4..7bd4e7f2 100644 --- a/view/crmebNewUI/pages/news_list/index.js +++ b/view/crmebNewUI/pages/news_list/index.js @@ -47,6 +47,7 @@ Page({ }, getCidArticle: function () { var that = this; + if (that.data.active == 0) return ; var limit = that.data.limit; var first = that.data.first; var articleList = that.data.articleList; @@ -70,7 +71,7 @@ Page({ }) if (this.data.active == 0) this.getArticleHot(); else{ - this.setData({ articleList: [], first:0}); + this.setData({ articleList: [], first: 0, status: false}); this.getCidArticle(); } }, @@ -116,7 +117,7 @@ Page({ * 页面上拉触底事件的处理函数 */ onReachBottom: function () { - + this.getCidArticle(); }, /** diff --git a/view/crmebNewUI/pages/order_confirm/index.js b/view/crmebNewUI/pages/order_confirm/index.js index a2d8d722..4ee7a12e 100644 --- a/view/crmebNewUI/pages/order_confirm/index.js +++ b/view/crmebNewUI/pages/order_confirm/index.js @@ -14,10 +14,10 @@ Page({ }, //支付方式 cartArr: [ + { "name": "微信支付", "icon": "icon-weixin2", value: 'weixin', title: '微信快捷支付' }, { "name": "余额支付", "icon": "icon-icon-test", value: 'yue',title:'可用余额:'}, - { "name": "微信支付", "icon": "icon-weixin2", value: 'weixin', title:'微信快捷支付'}, ], - payType:'yue',//支付方式 + payType:'weixin',//支付方式 openType:1,//优惠券打开方式 1=使用 active:0,//支付方式切换 coupon: { coupon: false, list: [], statusTile:'立即使用'},//优惠券组件 @@ -106,7 +106,11 @@ Page({ list[index].is_use = 0; totalPrice = this.data.totalPrice; //用户取消使用优惠卷但是使用了积分抵扣 - if (totalPrice > 0 && this.data.useIntegral) totalPrice = this.changeCouponPrice(totalPrice, this.data.userInfo.integral); + if (totalPrice > 0 && this.data.useIntegral && !this.data.is_Integral) + { + totalPrice = this.changeCouponPrice(totalPrice, this.data.userInfo.integral); + this.setData({is_Integral:true}); + } this.data.status = 0; } else { //使用优惠券 @@ -206,7 +210,6 @@ Page({ }else{ var integral_price = this.data.integral_price; //不使用积分返回原始数据 - console.log(util.$h.Add(this.data.totalPrice, integral_price)); this.setData({ integral_price: 0, integral: this.data.userInfo.integral, totalPrice: util.$h.Add(this.data.totalPrice, integral_price.toString())}); } }, @@ -254,7 +257,7 @@ Page({ seckillId: parseInt(res.data.seckill_id), usableCoupon: res.data.usableCoupon }); - that.data.cartArr[0].title ='可用余额:'+ res.data.userInfo.now_money; + that.data.cartArr[1].title ='可用余额:'+ res.data.userInfo.now_money; that.setData({ cartArr: that.data.cartArr, ChangePrice:that.data.totalPrice}); that.getBargainId(); that.getCouponList(); @@ -357,6 +360,7 @@ Page({ break; case 'SUCCESS': wx.hideLoading(); + if (that.data.BargainId || that.data.combinationId || that.data.pinkId || that.data.seckillId) return app.Tips({ title: res.msg, icon: 'success' }, { tab: 4, url: goPages }); return app.Tips({ title: res.msg,icon: 'success' }, { tab: 5, url: goPages }); break; case 'WECHAT_PAY': @@ -369,6 +373,7 @@ Page({ paySign: jsConfig.paySign, success: function (res) { wx.hideLoading(); + if (that.data.BargainId || that.data.combinationId || that.data.pinkId || that.data.seckillId) return app.Tips({ title: '支付成功', icon: 'success' }, { tab: 4, url: goPages }); return app.Tips({ title: '支付成功', icon:'success' }, { tab: 5, url: goPages }); }, fail:function(e){ diff --git a/view/crmebNewUI/pages/order_details/index.wxml b/view/crmebNewUI/pages/order_details/index.wxml index 1e007f78..5ebc157a 100644 --- a/view/crmebNewUI/pages/order_details/index.wxml +++ b/view/crmebNewUI/pages/order_details/index.wxml @@ -89,20 +89,26 @@ <view class='conter'>{{orderInfo.delivery_id || ''}}</view> </view> </view> - <view class='wrapper' wx:else> + <view class='wrapper' wx:elif='{{orderInfo.delivery_type=="send"}}'> <view class='item acea-row row-between'> - <view>收货人:</view> + <view>配送方式::</view> <view class='conter'>送货</view> </view> <view class='item acea-row row-between'> - <view>联系电话:</view> + <view>配送人姓名:</view> <view class='conter'>{{orderInfo.delivery_name || ''}}</view> </view> <view class='item acea-row row-between'> - <view>配送电话:</view> + <view>联系电话:</view> <view class='conter acea-row row-middle row-right'>{{orderInfo.delivery_id || ''}}<text class='copy' bindtap='goTel'>拨打</text></view> - </view> + </view> </view> + <view class='wrapper' wx:elif='{{orderInfo.delivery_type=="fictitious"}}'> + <view class='item acea-row row-between'> + <view>虚拟发货:</view> + <view class='conter'>已发货,请注意查收</view> + </view> + </view> </view> <view class='wrapper'> <view class='item acea-row row-between'> @@ -128,7 +134,7 @@ <view class='bnt bg-color' wx:if="{{status.type==0}}" data-order_id='{{orderInfo.order_id}}' bindtap='checkPay'>立即付款</view> <navigator class='bnt cancel' wx:elif="{{status.type==1}}" hover-class='none' url='/pages/goods_return/index?orderId={{orderInfo.order_id}}'>申请退款</navigator> <view class='bnt bg-color' wx:if="{{status.class_status==1}}" bindtap='goJoinPink'>查看拼团</view> - <navigator class='bnt cancel' wx:if="{{status.class_status==3 && status.type==2}}" hover-class='none' url='/pages/goods_logistics/index?orderId={{orderInfo.order_id}}'>查看物流</navigator> + <navigator class='bnt cancel' wx:if="{{orderInfo.delivery_type == 'express' && status.class_status==3 && status.type==2}}" hover-class='none' url='/pages/goods_logistics/index?orderId={{orderInfo.order_id}}'>查看物流</navigator> <view class='bnt bg-color' wx:if="{{status.class_status==3}}" bindtap='confirmOrder'>确认收货</view> <view class='bnt cancel' wx:if="{{status.type==4}}" bindtap='delOrder'>删除订单</view> <view class='bnt bg-color' wx:if="{{status.class_status==5}}" bindtap='goOrderConfirm'>再次购买</view> diff --git a/view/crmebNewUI/pages/order_list/index.js b/view/crmebNewUI/pages/order_list/index.js index ad08f445..a08b56a1 100644 --- a/view/crmebNewUI/pages/order_list/index.js +++ b/view/crmebNewUI/pages/order_list/index.js @@ -133,6 +133,7 @@ Page({ onShow: function () { if (app.globalData.isLog && this.data.isClose){ this.getOrderData(); + this.setData({ loadend: false, page: 1, orderList:[]}); this.getOrderList(); } }, diff --git a/view/crmebNewUI/pages/order_list/index.wxml b/view/crmebNewUI/pages/order_list/index.wxml index 321bde57..eed0dfa3 100644 --- a/view/crmebNewUI/pages/order_list/index.wxml +++ b/view/crmebNewUI/pages/order_list/index.wxml @@ -47,7 +47,8 @@ <view class='text acea-row row-between'> <view class='name line2'>{{item.productInfo.store_name}}</view> <view class='money'> - <view>¥{{item.productInfo.price}}</view> + <view wx:if="{{item.productInfo.attrInfo}}">¥{{item.productInfo.attrInfo.price}}</view> + <view wx:else>¥{{item.productInfo.price}}</view> <view>x{{item.cart_num}}</view> </view> </view> @@ -58,7 +59,7 @@ <view class='bnt cancelBnt' wx:if="{{item._status._type==0}}" data-index="{{index}}" data-order_id="{{item.order_id}}" bindtap='cancelOrder'>取消订单</view> <view class='bnt bg-color' wx:if="{{item._status._type == 0}}" data-order_id="{{item.order_id}}" bindtap='goOrderDetails'>立即付款</view> <view class='bnt bg-color' wx:elif="{{item._status._type == 1}}" data-order_id="{{item.order_id}}" bindtap='goOrderDetails'>查看详情</view> - <view class='bnt bg-color' wx:elif="{{item._status._type == 2 && item.delivery_type == 'express'}}" data-order_id="{{item.order_id}}" bindtap='goOrderDetails'>查看详情</view> + <view class='bnt bg-color' wx:elif="{{item._status._type == 2 && item.delivery_type}}" data-order_id="{{item.order_id}}" bindtap='goOrderDetails'>查看详情</view> <view class='bnt bg-color' wx:elif="{{item._status._type == 3}}" data-order_id="{{item.order_id}}" bindtap='goOrderDetails'>去评价</view> <view class='bnt bg-color' wx:elif="{{item.seckill_id < 1 && item.bargain_id < 1 && item.combination_id < 1 && item._status._type == 4}}" data-order_id="{{item.order_id}}" bindtap='goOrderDetails'>再次购买</view> <view class='bnt bg-color' wx:else data-order_id="{{item.order_id}}" data-index="{{index}}" bindtap='delOrder'>删除订单</view> diff --git a/view/crmebNewUI/pages/order_pay_status/index.js b/view/crmebNewUI/pages/order_pay_status/index.js index 1068aae2..43e6c2fd 100644 --- a/view/crmebNewUI/pages/order_pay_status/index.js +++ b/view/crmebNewUI/pages/order_pay_status/index.js @@ -23,6 +23,11 @@ Page({ if (!options.order_id) return app.Tips({title:'缺少参数无法查看订单支付状态'},{tab:3,url:1}); this.setData({ orderId: options.order_id, status: options.status || 0, msg: options.msg || ''}); }, + /** + * + * 支付完成查询支付状态 + * + */ getOrderPayInfo:function(){ var that=this; wx.showLoading({title: '正在加载中'}); @@ -33,8 +38,27 @@ Page({ wx.hideLoading(); }); }, + /** + * 去首页关闭当前所有页面 + */ + goIndex:function(e){ + var formId = e.detail.formId; + app.baseGet(app.U({ c: 'public_api', a: 'get_form_id', q: { formId: formId } }), null, null, true); + wx.switchTab({url:'/pages/index/index'}); + }, - + /** + * + * 去订单详情页面 + */ + goOrderDetails:function(e) + { + var formId = e.detail.formId; + app.baseGet(app.U({ c: 'public_api', a: 'get_form_id', q: { formId: formId } }), null, null, true); + wx.navigateTo({ + url: '/pages/order_details/index?order_id=' + this.data.orderId + }); + } }) \ No newline at end of file diff --git a/view/crmebNewUI/pages/order_pay_status/index.wxml b/view/crmebNewUI/pages/order_pay_status/index.wxml index 7b1a070c..9bb7be3d 100644 --- a/view/crmebNewUI/pages/order_pay_status/index.wxml +++ b/view/crmebNewUI/pages/order_pay_status/index.wxml @@ -29,9 +29,17 @@ </view> </view> <!--失败时: 重新购买 --> - <navigator class='returnBnt bg-color' hover-class='none' url='/pages/order_details/index?order_id={{orderId}}' wx:if="{{status==0}}">查看订单</navigator> - <navigator class='returnBnt bg-color' wx:if="{{order_pay_info.paid==0 && status==1}}" url='/pages/order_details/index?order_id={{orderId}}'>重新购买</navigator> - <navigator class='returnBnt bg-color' wx:if="{{order_pay_info.paid==0 && status==2}}" url='/pages/order_details/index?order_id={{orderId}}'>重新支付</navigator> - <navigator hover-class='none' url='/pages/index/index' open-type='switchTab' class='returnBnt cart-color'>返回首页</navigator> + <form bindsubmit="goOrderDetails" report-submit='true' wx:if="{{status==0}}"> + <button formType="submit" class='returnBnt bg-color' hover-class='none'>查看订单</button> + </form> + <form bindsubmit="goOrderDetails" report-submit='true' wx:if="{{order_pay_info.paid==0 && status==1}}"> + <button class='returnBnt bg-color' formType="submit" hover-class='none'>重新购买</button> + </form> + <form bindsubmit="goOrderDetails" report-submit='true' wx:if="{{order_pay_info.paid==0 && status==2}}"> + <button class='returnBnt bg-color' formType="submit" hover-class='none'>重新支付</button> + </form> + <form bindsubmit="goIndex" report-submit='true'> + <button class='returnBnt cart-color' formType="submit" hover-class='none'>返回首页</button> + </form> </view> <authorize bind:onLoadFun='onLoadFun'></authorize> \ No newline at end of file diff --git a/view/crmebNewUI/pages/promoter-list/index.js b/view/crmebNewUI/pages/promoter-list/index.js index 07633999..ffbe5ae0 100644 --- a/view/crmebNewUI/pages/promoter-list/index.js +++ b/view/crmebNewUI/pages/promoter-list/index.js @@ -139,12 +139,5 @@ Page({ */ onReachBottom: function () { this.userSpreadNewList(); - }, - - /** - * 用户点击右上角分享 - */ - onShareAppMessage: function () { - } }) \ No newline at end of file diff --git a/view/crmebNewUI/pages/promoter-order/index.wxml b/view/crmebNewUI/pages/promoter-order/index.wxml index e5e75746..fa5e1354 100644 --- a/view/crmebNewUI/pages/promoter-order/index.wxml +++ b/view/crmebNewUI/pages/promoter-order/index.wxml @@ -4,7 +4,7 @@ <view class='headerCon acea-row row-between-wrapper'> <view> <view class='name'>累积推广订单</view> - <view><text class='num'>{{recordCount}}</text>单</view> + <view><text class='num'>{{recordCount || 0}}</text>单</view> </view> <view class='iconfont icon-2'></view> </view> @@ -14,7 +14,7 @@ <view class='item'> <view class='title acea-row row-column row-center'> <view class='data'>{{item.time}}</view> - <view>本月累计推广订单:{{item.count}}单</view> + <view>本月累计推广订单:{{item.count || 0}}单</view> </view> <view class='listn'> <block wx:for="{{item.child}}" wx:for-item="child" wx:key> diff --git a/view/crmebNewUI/pages/user/user.js b/view/crmebNewUI/pages/user/user.js index f4b53268..be8e33b6 100644 --- a/view/crmebNewUI/pages/user/user.js +++ b/view/crmebNewUI/pages/user/user.js @@ -65,7 +65,6 @@ Page({ * 页面跳转 */ goPages:function(e){ - console.log(); if (e.currentTarget.dataset.url == '/pages/user_spread_user/index' && this.data.userInfo.statu==1) { if (!this.data.userInfo.is_promoter) return app.Tips({ title: '您还没有推广权限!!' }); } diff --git a/view/crmebNewUI/pages/user_address/index.js b/view/crmebNewUI/pages/user_address/index.js index b03cb69e..18f39d47 100644 --- a/view/crmebNewUI/pages/user_address/index.js +++ b/view/crmebNewUI/pages/user_address/index.js @@ -72,6 +72,7 @@ Page({ district: that.data.region[2], }; value.is_default = that.data.userAddress.is_default ? 1 : 0; + app.baseGet(app.U({ c: 'public_api', a: 'get_form_id', q: { formId: formId } }), null, null, true); app.basePost(app.U({ c: 'user_api', a: 'edit_user_address' }), value,function(res){ if (that.data.id) app.Tips({ title: '修改成功', icon: 'success'}); else app.Tips({ title: '添加成功', icon: 'success'}); diff --git a/view/crmebNewUI/pages/user_address/index.wxml b/view/crmebNewUI/pages/user_address/index.wxml index 639d7b75..a31207c2 100644 --- a/view/crmebNewUI/pages/user_address/index.wxml +++ b/view/crmebNewUI/pages/user_address/index.wxml @@ -1,6 +1,6 @@ <navbar parameter='{{parameter}}'></navbar> -<form bindsubmit="formSubmit"> +<form bindsubmit="formSubmit" report-submit='true'> <view class='addAddress'> <view class='list'> <view class='item acea-row row-between-wrapper'> diff --git a/view/crmebNewUI/pages/user_cash/index.js b/view/crmebNewUI/pages/user_cash/index.js index dd63baf5..6c23a085 100644 --- a/view/crmebNewUI/pages/user_cash/index.js +++ b/view/crmebNewUI/pages/user_cash/index.js @@ -69,6 +69,8 @@ Page({ value.bankname = that.data.array[that.data.index]; } else if (that.data.currentTab == 1) {//微信 value.extract_type = 'weixin'; + if (value.name.length == 0) return app.Tips({ title: '请填写微信号' }); + value.weixin = value.name; } else if (that.data.currentTab == 2) {//支付宝 value.extract_type = 'alipay'; if (value.name.length == 0) return app.Tips({title:'请填写账号'}); diff --git a/view/crmebNewUI/pages/user_cash/index.wxml b/view/crmebNewUI/pages/user_cash/index.wxml index 04390d4b..8621fde3 100644 --- a/view/crmebNewUI/pages/user_cash/index.wxml +++ b/view/crmebNewUI/pages/user_cash/index.wxml @@ -37,8 +37,15 @@ </view> <view hidden='{{currentTab != 1}}' class='list'> <form bindsubmit="subCash" report-submit='true'> - <view class='tip2'>当前可提现金额: {{userInfo.brokerage}}</view> - <view class='value'><input placeholder='0' type='digit' placeholder-class='placeholder2' name="money"></input></view> + <view class='item acea-row row-between-wrapper'> + <view class='name'>账号</view> + <view class='input'><input placeholder='请填写您的微信账号' placeholder-class='placeholder' name="name"></input></view> + </view> + <view class='item acea-row row-between-wrapper'> + <view class='name'>提现</view> + <view class='input'><input placeholder='最低提现金额{{minPrice}}' placeholder-class='placeholder' name="money" type='digit'></input></view> + </view> + <view class='tip'>当前可提现金额: {{userInfo.brokerage}}</view> <button formType="submit" class='bnt bg-color'>提现</button> </form> </view> diff --git a/view/crmebNewUI/pages/user_info/index.js b/view/crmebNewUI/pages/user_info/index.js index b2ff93ac..2594698d 100644 --- a/view/crmebNewUI/pages/user_info/index.js +++ b/view/crmebNewUI/pages/user_info/index.js @@ -14,12 +14,14 @@ Page({ 'class': '0' }, userInfo:{}, + is_local: 1 }, /** * 授权回调 */ onLoadFun:function(){ this.getUserInfo(); + this.imageStorage(); }, /** @@ -28,7 +30,15 @@ Page({ onLoad: function (options) { }, - + /** + * 获取图片储存位置 + */ + imageStorage: function () { + var that = this; + app.baseGet(app.U({ c: "user_api", a: 'picture_storage_location' }), function (res) { + that.setData({ is_local: res.data }); + }); + }, getPhoneNumber:function(e){ var detail = e.detail, cache_key = wx.getStorageSync('cache_key'),that=this; if (detail.errMsg =='getPhoneNumber:ok'){ @@ -69,7 +79,11 @@ Page({ uploadpic: function () { var that = this; util.uploadImageOne(app.U({ c: 'public_api', a: 'upload' }), function (res) { - that.setData({ 'userInfo.avatar': app.globalData.url +res.data.url }); + if (that.data.is_local == 1) { + that.setData({ 'userInfo.avatar': app.globalData.url + res.data.url }); + } else { + that.setData({ 'userInfo.avatar': res.data.url }); + } }); }, diff --git a/view/crmebNewUI/pages/user_money/index.js b/view/crmebNewUI/pages/user_money/index.js index caf966ff..cbb07762 100644 --- a/view/crmebNewUI/pages/user_money/index.js +++ b/view/crmebNewUI/pages/user_money/index.js @@ -16,6 +16,7 @@ Page({ userInfo:{}, host_product:[], isClose:false, + recharge_switch:0, }, /** @@ -25,12 +26,22 @@ Page({ this.getUserInfo(); this.get_host_product(); this.get_activity(); + this.getSystemConfig(); }, /** * 生命周期函数--监听页面加载 */ onLoad: function (options) { + }, + /** + * 获取系统配置信息 + */ + getSystemConfig:function(){ + var that = this; + app.baseGet(app.U({ c: 'public_api', a: 'get_system_config_value', q: { name:'recharge_switch'} }), function (res) { + that.setData({ recharge_switch: parseInt(res.data.recharge_switch) }); + }); }, /** * 获取用户详情 diff --git a/view/crmebNewUI/pages/user_money/index.wxml b/view/crmebNewUI/pages/user_money/index.wxml index 2a035a70..05ba7d1c 100644 --- a/view/crmebNewUI/pages/user_money/index.wxml +++ b/view/crmebNewUI/pages/user_money/index.wxml @@ -8,10 +8,10 @@ <view>总资产(元)</view> <view class='money'>{{userInfo.now_money || 0}}</view> </view> - <navigator hover-class='none' url='/pages/user_payment/index' class='recharge font-color'>充值</navigator> + <navigator wx:if='{{recharge_switch}}' hover-class='none' url='/pages/user_payment/index' class='recharge font-color'>充值</navigator> </view> <view class='cumulative acea-row row-top'> - <view class='item'> + <view class='item' wx:if="{{recharge_switch}}"> <view>累计充值(元)</view> <view class='money'>{{userInfo.recharge || 0}}</view> </view> @@ -31,7 +31,7 @@ <view class='pictrue'><image src='/images/record2.png'></image></view> <view>消费记录</view> </navigator> - <navigator class='item' hover-class='none' url='/pages/user_bill/index?type=2'> + <navigator class='item' hover-class='none' url='/pages/user_bill/index?type=2' wx:if="{{recharge_switch}}"> <view class='pictrue'><image src='/images/record3.png'></image></view> <view>充值记录</view> </navigator> diff --git a/view/crmebNewUI/pages/user_sgin/index.js b/view/crmebNewUI/pages/user_sgin/index.js index bb1e6f38..77e49281 100644 --- a/view/crmebNewUI/pages/user_sgin/index.js +++ b/view/crmebNewUI/pages/user_sgin/index.js @@ -104,6 +104,7 @@ Page({ */ goSign:function(e){ var that = this, formId = e.detail.formId, sum_sgin_day = that.data.userInfo.sum_sgin_day; + app.baseGet(app.U({ c: 'public_api', a: 'get_form_id', q: { formId: formId } }), null, null, true); if (that.data.userInfo.is_day_sgin) return app.Tips({title:'您今日已签到!'}); app.baseGet(app.U({ c: 'user_api', a:'user_sign'}),function(res){ that.setData({ diff --git a/view/crmebNewUI/pages/user_sgin/index.wxml b/view/crmebNewUI/pages/user_sgin/index.wxml index 93beafa3..218e1651 100644 --- a/view/crmebNewUI/pages/user_sgin/index.wxml +++ b/view/crmebNewUI/pages/user_sgin/index.wxml @@ -24,7 +24,7 @@ </view> </view> <button class='but bg-color on' wx:if="{{userInfo.is_day_sgin}}">已签到</button> - <form bindsubmit="goSign" wx:else> + <form bindsubmit="goSign" report-submit='true' wx:else> <button class='but bg-color' formType="submit">立即签到</button> </form> <view class='lock'></view> diff --git a/view/crmebNewUI/project.config.json b/view/crmebNewUI/project.config.json index 03b90f34..fb409da5 100644 --- a/view/crmebNewUI/project.config.json +++ b/view/crmebNewUI/project.config.json @@ -10,14 +10,21 @@ "minified": true, "newFeature": true, "nodeModules": true, - "autoAudits": true, + "autoAudits": false, "uglifyFileName": true, - "checkInvalidKey": true + "checkInvalidKey": true, + "checkSiteMap": true, + "uploadWithSourceMap": true, + "babelSetting": { + "ignore": [], + "disablePlugins": [], + "outputPath": "" + } }, "compileType": "miniprogram", "libVersion": "2.6.4", - "appid": "wx3b82801238ca1b57", - "projectname": "%E5%BC%80%E6%BA%90%E5%B0%8F%E7%A8%8B%E5%BA%8F", + "appid": "wx6ca9ac1a01f617a1", + "projectname": "crmeb%E6%96%B0%E5%95%86%E5%9F%8E", "debugOptions": { "hidedInDevtools": [] }, @@ -42,7 +49,7 @@ "list": [] }, "miniprogram": { - "current": 23, + "current": 1, "list": [ { "id": 0, @@ -204,12 +211,6 @@ "pathName": "pages/user_info/index", "query": "", "scene": null - }, - { - "id": -1, - "name": "体现", - "pathName": "pages/user_cash/index", - "scene": null } ] } diff --git a/view/crmebNewUI/wxParse/wxParse.wxss b/view/crmebNewUI/wxParse/wxParse.wxss index a66fd819..81a2974f 100644 --- a/view/crmebNewUI/wxParse/wxParse.wxss +++ b/view/crmebNewUI/wxParse/wxParse.wxss @@ -27,7 +27,7 @@ padding: 0 15rpx; } /*//标题 */ -.wxParse-div{margin: 0;padding: 0;} +.wxParse-div{margin: 0;padding: 0;width:100%!important;} .wxParse-h1{ font-size:2em; margin: .67em 0 } .wxParse-h2{ font-size:1.5em; margin: .75em 0 } .wxParse-h3{ font-size:1.17em; margin: .83em 0 }