From df885e75a35a57d08d0106e071fec5fae7f3e853 Mon Sep 17 00:00:00 2001 From: devil_gong Date: Mon, 24 Dec 2018 15:13:21 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4=E6=94=AF=E4=BB=98=E5=AE=9D?= =?UTF-8?q?=E7=94=9F=E6=B4=BB=E5=8F=B7=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/admin/controller/AlipayLife.php | 207 -------- .../admin/controller/AlipayLifeCategory.php | 185 ------- .../admin/controller/AlipayLifeMenu.php | 457 ---------------- .../admin/controller/AlipayLifeMessage.php | 495 ------------------ .../admin/controller/AlipayLifeStatus.php | 313 ----------- .../admin/controller/AlipayLifeUser.php | 170 ------ .../admin/view/default/alipaylife/index.html | 112 ---- .../view/default/alipaylife/save_info.html | 75 --- .../default/alipaylifecategory/index.html | 59 --- .../default/alipaylifemenu/content_index.html | 196 ------- .../alipaylifemenu/content_save_info.html | 81 --- .../view/default/alipaylifemenu/detail.html | 78 --- .../view/default/alipaylifemenu/index.html | 143 ----- .../default/alipaylifemenu/save_info.html | 78 --- .../alipaylifemessage/content_index.html | 123 ----- .../alipaylifemessage/content_save_info.html | 65 --- .../default/alipaylifemessage/detail.html | 83 --- .../view/default/alipaylifemessage/index.html | 150 ------ .../default/alipaylifemessage/save_info.html | 104 ---- .../view/default/alipaylifestatus/detail.html | 78 --- .../view/default/alipaylifestatus/index.html | 139 ----- .../default/alipaylifestatus/save_info.html | 78 --- .../view/default/alipaylifeuser/index.html | 169 ------ .../admin/default/css/alipayLifeuser.css | 18 - .../static/admin/default/css/alipaylife.css | 19 - .../admin/default/css/alipaylifemenu.css | 93 ---- .../admin/default/css/alipaylifemessage.css | 92 ---- .../admin/default/css/alipaylifestatus.css | 93 ---- .../static/admin/default/js/alipaylifemenu.js | 107 ---- .../admin/default/js/alipaylifemessage.js | 107 ---- .../admin/default/js/alipaylifestatus.js | 107 ---- 31 files changed, 4274 deletions(-) delete mode 100755 application/admin/controller/AlipayLife.php delete mode 100755 application/admin/controller/AlipayLifeCategory.php delete mode 100755 application/admin/controller/AlipayLifeMenu.php delete mode 100755 application/admin/controller/AlipayLifeMessage.php delete mode 100755 application/admin/controller/AlipayLifeStatus.php delete mode 100755 application/admin/controller/AlipayLifeUser.php delete mode 100755 application/admin/view/default/alipaylife/index.html delete mode 100755 application/admin/view/default/alipaylife/save_info.html delete mode 100755 application/admin/view/default/alipaylifecategory/index.html delete mode 100755 application/admin/view/default/alipaylifemenu/content_index.html delete mode 100755 application/admin/view/default/alipaylifemenu/content_save_info.html delete mode 100755 application/admin/view/default/alipaylifemenu/detail.html delete mode 100755 application/admin/view/default/alipaylifemenu/index.html delete mode 100755 application/admin/view/default/alipaylifemenu/save_info.html delete mode 100755 application/admin/view/default/alipaylifemessage/content_index.html delete mode 100755 application/admin/view/default/alipaylifemessage/content_save_info.html delete mode 100755 application/admin/view/default/alipaylifemessage/detail.html delete mode 100755 application/admin/view/default/alipaylifemessage/index.html delete mode 100755 application/admin/view/default/alipaylifemessage/save_info.html delete mode 100755 application/admin/view/default/alipaylifestatus/detail.html delete mode 100755 application/admin/view/default/alipaylifestatus/index.html delete mode 100755 application/admin/view/default/alipaylifestatus/save_info.html delete mode 100755 application/admin/view/default/alipaylifeuser/index.html delete mode 100755 public/static/admin/default/css/alipayLifeuser.css delete mode 100755 public/static/admin/default/css/alipaylife.css delete mode 100755 public/static/admin/default/css/alipaylifemenu.css delete mode 100755 public/static/admin/default/css/alipaylifemessage.css delete mode 100755 public/static/admin/default/css/alipaylifestatus.css delete mode 100755 public/static/admin/default/js/alipaylifemenu.js delete mode 100755 public/static/admin/default/js/alipaylifemessage.js delete mode 100755 public/static/admin/default/js/alipaylifestatus.js diff --git a/application/admin/controller/AlipayLife.php b/application/admin/controller/AlipayLife.php deleted file mode 100755 index 78a8c9007..000000000 --- a/application/admin/controller/AlipayLife.php +++ /dev/null @@ -1,207 +0,0 @@ -Is_Login(); - - // 权限校验 - $this->Is_Power(); - } - - /** - * [Index 生活号列表] - * @author Devil - * @blog http://gong.gg/ - * @version 0.0.1 - * @datetime 2016-12-06T21:31:53+0800 - */ - public function Index() - { - // 参数 - $params = input(); - - // 分页 - $number = MyC('admin_page_number', 10, true); - - // 条件 - $where = AlipayLifeService::AlipayLifeListWhere($params); - - // 获取总数 - $total = AlipayLifeService::AlipayLifeTotal($where); - - // 分页 - $page_params = array( - 'number' => $number, - 'total' => $total, - 'where' => $params, - 'page' => isset($params['page']) ? intval($params['page']) : 1, - 'url' => url('admin/alipaylife/index'), - ); - $page = new \base\Page($page_params); - $this->assign('page_html', $page->GetPageHtml()); - - // 获取列表 - $data_params = array( - 'm' => $page->GetPageStarNumber(), - 'n' => $number, - 'where' => $where, - 'field' => 'a.*', - ); - $data = AlipayLifeService::AlipayLifeList($data_params); - $this->assign('data_list', $data['data']); - - // 是否上下架 - $this->assign('common_goods_is_shelves_list', lang('common_goods_is_shelves_list')); - - // 生活号分类 - $alipay_life_category = AlipayLifeService::AlipayLifeCategoryList(['field'=>'id,name']); - $this->assign('alipay_life_category', $alipay_life_category['data']); - - // 参数 - $this->assign('params', $params); - return $this->fetch(); - } - - /** - * [SaveInfo 添加/编辑页面] - * @author Devil - * @blog http://gong.gg/ - * @version 0.0.1 - * @datetime 2016-12-14T21:37:02+0800 - */ - public function SaveInfo() - { - // 参数 - $params = input(); - - // 数据 - if(!empty($params['id'])) - { - // 获取列表 - $data_params = array( - 'm' => 0, - 'n' => 1, - 'where' => ['a.id'=>intval($params['id'])], - 'field' => 'a.*', - ); - $data = AlipayLifeService::AlipayLifeList($data_params); - - if(!empty($data['data'][0])) - { - // 获取分类关联数据 - $category_ids = AlipayLifeService::AlipayLifeCategoryIds(['where'=>['alipay_life_id'=>$data['data'][0]['id']]]); - $data['data'][0]['category_ids'] = $category_ids['data']; - - $this->assign('data', empty($data['data'][0]) ? [] : $data['data'][0]); - } - } - - // 是否上下架 - $this->assign('common_goods_is_shelves_list', lang('common_goods_is_shelves_list')); - - // 生活号分类 - $alipay_life_category = AlipayLifeService::AlipayLifeCategoryList(['field'=>'id,name']); - $this->assign('alipay_life_category', $alipay_life_category['data']); - - // 参数 - $this->assign('params', $params); - - // 编辑器文件存放地址 - $this->assign('editor_path_type', 'alipay_life'); - - return $this->fetch(); - } - - /** - * [Save 生活号保存] - * @author Devil - * @blog http://gong.gg/ - * @version 0.0.1 - * @datetime 2016-12-25T22:36:12+0800 - */ - public function Save() - { - // 是否ajax请求 - if(!IS_AJAX) - { - return $this->error('非法访问'); - } - - // 开始处理 - $params = input(); - $ret = AlipayLifeService::AlipayLifeSave($params); - return json($ret); - } - - /** - * [Delete 生活号删除] - * @author Devil - * @blog http://gong.gg/ - * @version 0.0.1 - * @datetime 2016-12-25T22:36:12+0800 - */ - public function Delete() - { - // 是否ajax请求 - if(!IS_AJAX) - { - return $this->error('非法访问'); - } - - // 开始处理 - $params = input(); - $params['user_type'] = 'admin'; - $ret = AlipayLifeService::AlipayLifeDelete($params); - return json($ret); - } - - /** - * [StatusUpdate 状态更新] - * @author Devil - * @blog http://gong.gg/ - * @version 0.0.1 - * @datetime 2017-01-12T22:23:06+0800 - */ - public function StatusUpdate() - { - // 是否ajax请求 - if(!IS_AJAX) - { - return $this->error('非法访问'); - } - - // 开始处理 - $params = input(); - $params['alipay_life_id'] = isset($params['id']) ? $params['id'] : 0; - if(isset($params['state'])) - { - $params['status'] = $params['state']; - } - $ret = AlipayLifeService::LifeStatus($params); - return json($ret); - } -} -?> \ No newline at end of file diff --git a/application/admin/controller/AlipayLifeCategory.php b/application/admin/controller/AlipayLifeCategory.php deleted file mode 100755 index e2849e3c9..000000000 --- a/application/admin/controller/AlipayLifeCategory.php +++ /dev/null @@ -1,185 +0,0 @@ -Is_Login(); - - // 权限校验 - $this->Is_Power(); - } - - /** - * [Index 生活号分类列表] - * @author Devil - * @blog http://gong.gg/ - * @version 0.0.1 - * @datetime 2016-12-06T21:31:53+0800 - */ - public function Index() - { - $this->assign('common_is_enable_list', lang('common_is_enable_list')); - $this->display('Index'); - } - - /** - * [GetNodeSon 获取节点子列表] - * @author Devil - * @blog http://gong.gg/ - * @version 0.0.1 - * @datetime 2016-12-25T15:19:45+0800 - */ - public function GetNodeSon() - { - // 是否ajax请求 - if(!IS_AJAX) - { - $this->error('非法访问'); - } - - // 获取数据 - $field = array('id', 'name', 'sort', 'is_enable'); - $data = db('AlipayLifeCategory')->field($field)->where(array('pid'=>intval(I('id', 0))))->select(); - if(!empty($data)) - { - foreach($data as $k=>$v) - { - $data[$k]['is_son'] = $this->IsExistSon($v['id']); - $data[$k]['ajax_url'] = url('Admin/AlipayLifeCategory/GetNodeSon', array('id'=>$v['id'])); - $data[$k]['delete_url'] = url('Admin/AlipayLifeCategory/Delete'); - $data[$k]['json'] = json_encode($v); - } - } - $msg = empty($data) ? '没有相关数据' : '操作成功'; - $this->ajaxReturn($msg, 0, $data); - } - - /** - * [IsExistSon 节点是否存在子数据] - * @author Devil - * @blog http://gong.gg/ - * @version 0.0.1 - * @datetime 2016-12-25T15:22:47+0800 - * @param [int] $id [节点id] - * @return [string] [有数据ok, 则no] - */ - private function IsExistSon($id) - { - if(!empty($id)) - { - return (db('AlipayLifeCategory')->where(array('pid'=>$id))->count() > 0) ? 'ok' : 'no'; - } - return 'no'; - } - - /** - * [Save 生活号分类保存] - * @author Devil - * @blog http://gong.gg/ - * @version 0.0.1 - * @datetime 2016-12-25T22:36:12+0800 - */ - public function Save() - { - // 是否ajax请求 - if(!IS_AJAX) - { - $this->error('非法访问'); - } - - // id为空则表示是新增 - $m = D('AlipayLifeCategory'); - - // 公共额外数据处理 - $m->sort = intval(I('sort')); - - // 添加 - if(empty($_POST['id'])) - { - if($m->create($_POST, 1)) - { - // 额外数据处理 - $m->add_time = time(); - $m->name = I('name'); - - // 写入数据库 - if($m->add()) - { - $this->ajaxReturn('新增成功'); - } else { - $this->ajaxReturn('新增失败', -100); - } - } - } else { - // 编辑 - if($m->create($_POST, 2)) - { - // 额外数据处理 - $m->name = I('name'); - $m->upd_time = time(); - - // 移除 id - unset($m->id); - - // 更新数据库 - if($m->where(array('id'=>I('id')))->save()) - { - $this->ajaxReturn('编辑成功'); - } else { - $this->ajaxReturn('编辑失败或数据未改变', -100); - } - } - } - $this->ajaxReturn($m->getError(), -1); - } - - /** - * [Delete 生活号分类删除] - * @author Devil - * @blog http://gong.gg/ - * @version 0.0.1 - * @datetime 2016-12-25T22:36:12+0800 - */ - public function Delete() - { - if(!IS_AJAX) - { - $this->error('非法访问'); - } - - $m = D('AlipayLifeCategory'); - if($m->create($_POST, 5)) - { - if($m->delete(I('id'))) - { - $this->ajaxReturn('删除成功'); - } else { - $this->ajaxReturn('删除失败或资源不存在', -100); - } - } else { - $this->ajaxReturn($m->getError(), -1); - } - } -} -?> \ No newline at end of file diff --git a/application/admin/controller/AlipayLifeMenu.php b/application/admin/controller/AlipayLifeMenu.php deleted file mode 100755 index a0d66026c..000000000 --- a/application/admin/controller/AlipayLifeMenu.php +++ /dev/null @@ -1,457 +0,0 @@ -Is_Login(); - - // 权限校验 - $this->Is_Power(); - } - - /** - * [Index 生活号菜单列表] - * @author Devil - * @blog http://gong.gg/ - * @version 0.0.1 - * @datetime 2016-12-06T21:31:53+0800 - */ - public function Index() - { - // 参数 - $params = array_merge($_POST, $_GET); - - // 模型对象 - $m = db('AlipayLifeMenu'); - - // 条件 - $where = $this->GetIndexWhere(); - - // 分页 - $number = MyC('admin_page_number', 10, true); - $page_param = array( - 'number' => $number, - 'total' => $m->where($where)->count(), - 'where' => $params, - 'url' => url('Admin/AlipayLifeMenu/Index'), - ); - $page = new \base\Page($page_param); - - // 获取列表 - $list = $m->where($where)->limit($page->GetPageStarNumber(), $number)->order('id desc')->select(); - $list = $this->SetDataHandle($list); - - // 参数 - $this->assign('params', $params); - - // 分页 - $this->assign('page_html', $page->GetPageHtml()); - - // 发布状态 - $this->assign('common_release_status_list', lang('common_release_status_list')); - - // 菜单类型 - $this->assign('common_alipay_life_menu_type_list', lang('common_alipay_life_menu_type_list')); - - // 数据列表 - $this->assign('list', $list); - $this->display('Index'); - } - - /** - * [SetDataHandle 数据处理] - * @author Devil - * @blog http://gong.gg/ - * @version 0.0.1 - * @datetime 2016-12-29T21:27:15+0800 - * @param [array] $data [轮播图片数据] - * @return [array] [处理好的数据] - */ - private function SetDataHandle($data) - { - if(!empty($data)) - { - $common_release_status_list = lang('common_release_status_list'); - $common_alipay_life_menu_type_list = lang('common_alipay_life_menu_type_list'); - foreach($data as &$v) - { - // 状态 - $v['status_name'] = $common_release_status_list[$v['status']]['name']; - - // 类型 - $v['type_name'] = $common_alipay_life_menu_type_list[$v['type']]['name']; - - // 生活号 - $v['alipay_life_all'] = empty($v['alipay_life_ids']) ? '' : db('AlipayLife')->where(['id'=>['in', json_decode($v['alipay_life_ids'], true)]])->getField('name', true); - - // 时间 - $v['startup_time'] = empty($v['startup_time']) ? '' : date('Y-m-d H:i:s', $v['startup_time']); - $v['success_time'] = empty($v['success_time']) ? '' : date('Y-m-d H:i:s', $v['success_time']); - $v['add_time'] = date('Y-m-d H:i:s', $v['add_time']); - $v['upd_time'] = empty($v['upd_time']) ? '' : date('Y-m-d H:i:s', $v['upd_time']); - } - } - return $data; - } - - /** - * [GetIndexWhere 列表条件] - * @author Devil - * @blog http://gong.gg/ - * @version 0.0.1 - * @datetime 2016-12-10T22:16:29+0800 - */ - private function GetIndexWhere() - { - $where = array(); - - // 模糊 - if(!empty($_REQUEST['keyword'])) - { - $where['name'] = array('like', '%'.I('keyword').'%'); - } - - // 是否更多条件 - if(I('is_more', 0) == 1) - { - if(I('status', -1) > -1) - { - $where['status'] = intval(I('status', 0)); - } - if(I('type', -1) > -1) - { - $where['type'] = intval(I('type', 0)); - } - - // 表达式 - if(!empty($_REQUEST['time_start'])) - { - $where['add_time'][] = array('gt', strtotime(I('time_start'))); - } - if(!empty($_REQUEST['time_end'])) - { - $where['add_time'][] = array('lt', strtotime(I('time_end'))); - } - } - return $where; - } - - /** - * [SaveInfo 添加/编辑页面] - * @author Devil - * @blog http://gong.gg/ - * @version 0.0.1 - * @datetime 2016-12-14T21:37:02+0800 - */ - public function SaveInfo() - { - // 数据 - $data = empty($_REQUEST['id']) ? array() : db('AlipayLifeMenu')->find(I('id')); - $this->assign('data', $data); - - // 菜单类型 - $this->assign('common_alipay_life_menu_type_list', lang('common_alipay_life_menu_type_list')); - - // 生活号 - $alipay_life_list = []; - $alipay_life_ids_all = []; - if(!empty($_GET['alipay_life_id'])) - { - $alipay_life_ids_all = [intval(I('alipay_life_id'))]; - } - if(!empty($data['alipay_life_ids'])) - { - $alipay_life_ids_all = json_decode($data['alipay_life_ids'], true); - } - if(!empty($alipay_life_ids_all)) - { - $alipay_life_list = db('AlipayLife')->field('id,name')->where(['id'=>['in', $alipay_life_ids_all]])->select(); - } - $this->assign('alipay_life_ids_all', $alipay_life_ids_all); - $this->assign('alipay_life_list', $alipay_life_list); - - // 生活号分类 - $alipay_life_category = db('AlipayLifeCategory')->where(['is_enable'=>1])->field('id,name')->select(); - $this->assign('alipay_life_category', $alipay_life_category); - - // 参数 - $this->assign('params', array_merge($_POST, $_GET)); - $this->display('SaveInfo'); - } - - - /** - * [Index 内容列表] - * @author Devil - * @blog http://gong.gg/ - * @version 0.0.1 - * @datetime 2016-12-06T21:31:53+0800 - */ - public function ContentIndex() - { - // 参数 - $params = array_merge($_POST, $_GET); - - // 条件 - $where = ['alipay_life_menu_id' => intval($params['menu_id']), 'pid'=>0]; - - // 获取列表 - $list = $this->SetDataHandleContent(db('AlipayLifeMenuContent')->where($where)->order('sort asc')->select()); - if(!empty($list)) - { - foreach($list as &$v) - { - $v['items'] = $this->SetDataHandleContent(db('AlipayLifeMenuContent')->where(['pid'=>$v['id']])->order('sort asc')->select()); - } - } - - // 主数据 - $data = empty($_REQUEST['menu_id']) ? array() : db('AlipayLifeMenu')->find(I('menu_id')); - $this->assign('data', $data); - - // 参数 - $this->assign('params', $params); - - // 数据列表 - $this->assign('list', $list); - $this->assign('list_count', count($list)); - $this->display('ContentIndex'); - } - - /** - * 内容处理 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @date 2018-10-29 - * @desc description - * @param [array] $data [数据] - * @return [array] [处理好的数据] - */ - private function SetDataHandleContent($data) - { - if(!empty($data)) - { - $common_alipay_life_menu_action_type_list = lang('common_alipay_life_menu_action_type_list'); - foreach($data as &$v) - { - // 事件类型 - $v['action_type_name'] = $common_alipay_life_menu_action_type_list[$v['action_type']]['name']; - - // 图标 - $v['icon'] = empty($v['icon']) ? '' : config('IMAGE_HOST').$v['icon']; - - // 时间 - $v['add_time'] = date('Y-m-d H:i:s', $v['add_time']); - $v['upd_time'] = empty($v['upd_time']) ? '' : date('Y-m-d H:i:s', $v['upd_time']); - } - } - return $data; - } - - /** - * 内容添加/编辑页面 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @date 2018-10-29 - * @desc description - */ - public function ContentSaveInfo() - { - // 主数据 - $menu = empty($_REQUEST['menu_id']) ? array() : db('AlipayLifeMenu')->find(I('menu_id')); - $this->assign('menu', $menu); - - // 数据 - $data = empty($_REQUEST['id']) ? array() : db('AlipayLifeMenuContent')->find(I('id')); - $this->assign('data', $data); - - // 事件类型 - $this->assign('common_alipay_life_menu_action_type_list', lang('common_alipay_life_menu_action_type_list')); - - // 获取父级分类 - $this->assign('alipay_life_menu_list', db('AlipayLifeMenuContent')->field('id,name')->where(['pid'=>0, 'alipay_life_menu_id'=>$menu['id']])->select()); - - // 参数 - $this->assign('params', array_merge($_POST, $_GET)); - $this->display('ContentSaveInfo'); - } - - /** - * 详情 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @date 2018-10-30 - * @desc description - */ - public function Detail() - { - // 参数 - $params = array_merge($_POST, $_GET); - - // 获取列表 - $list = AlipayLifeService::MenuDetailList($params); - - // 参数 - $this->assign('params', $params); - - // 数据列表 - $this->assign('list', $list); - $this->display('Detail'); - } - - /** - * [Save 生活号菜单保存] - * @author Devil - * @blog http://gong.gg/ - * @version 0.0.1 - * @datetime 2016-12-25T22:36:12+0800 - */ - public function Save() - { - // 是否ajax请求 - if(!IS_AJAX) - { - $this->error('非法访问'); - } - - $ret = AlipayLifeService::MenuSave($_POST); - $this->ajaxReturn($ret['msg'], $ret['code'], $ret['data']); - } - - /** - * [ContentSave 生活号菜单内容保存] - * @author Devil - * @blog http://gong.gg/ - * @version 0.0.1 - * @datetime 2016-12-25T22:36:12+0800 - */ - public function ContentSave() - { - // 是否ajax请求 - if(!IS_AJAX) - { - $this->error('非法访问'); - } - - $ret = AlipayLifeService::MenuContentSave($_POST); - $this->ajaxReturn($ret['msg'], $ret['code'], $ret['data']); - } - - /** - * [Delete 生活号菜单删除] - * @author Devil - * @blog http://gong.gg/ - * @version 0.0.1 - * @datetime 2016-12-25T22:36:12+0800 - */ - public function Delete() - { - // 是否ajax请求 - if(!IS_AJAX) - { - $this->error('非法访问'); - } - - // 删除 - $id = intval(I('id')); - $m = db('AlipayLifeMenu'); - $m->startTrans(); - if($m->delete($id) && db('AlipayLifeMenuContent')->where(['alipay_life_message_id'=>$id])->delete()) - { - $m->commit(); - $this->ajaxReturn('删除成功'); - } - $m->rollback(); - $this->ajaxReturn('删除失败或资源不存在', -100); - } - - /** - * [Delete 生活号菜单内容删除] - * @author Devil - * @blog http://gong.gg/ - * @version 0.0.1 - * @datetime 2016-12-25T22:36:12+0800 - */ - public function ContentDelete() - { - // 是否ajax请求 - if(!IS_AJAX) - { - $this->error('非法访问'); - } - - // 删除 - if(db('AlipayLifeMenuContent')->delete(intval(I('id')))) - { - $this->ajaxReturn('删除成功'); - } - $this->ajaxReturn('删除失败或资源不存在', -100); - } - - /** - * 发送菜单 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @date 2018-10-24 - * @desc description - */ - public function Release() - { - // 是否ajax请求 - if(!IS_AJAX) - { - $this->error('非法访问'); - } - - $ret = AlipayLifeService::MenuSubmit($_POST); - $this->ajaxReturn($ret['msg'], $ret['code'], $ret['data']); - } - - /** - * 生活号搜索 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @date 2018-10-29 - * @desc description - */ - public function Search() - { - // 是否ajax请求 - if(!IS_AJAX) - { - $this->error('非法访问'); - } - - $ret = AlipayLifeService::AlipayLifeSearch($_POST); - $this->ajaxReturn($ret['msg'], $ret['code'], $ret['data']); - } -} -?> \ No newline at end of file diff --git a/application/admin/controller/AlipayLifeMessage.php b/application/admin/controller/AlipayLifeMessage.php deleted file mode 100755 index 169935cf2..000000000 --- a/application/admin/controller/AlipayLifeMessage.php +++ /dev/null @@ -1,495 +0,0 @@ -Is_Login(); - - // 权限校验 - $this->Is_Power(); - } - - /** - * [Index 生活号消息列表] - * @author Devil - * @blog http://gong.gg/ - * @version 0.0.1 - * @datetime 2016-12-06T21:31:53+0800 - */ - public function Index() - { - // 参数 - $params = array_merge($_POST, $_GET); - - // 模型对象 - $m = db('AlipayLifeMessage'); - - // 条件 - $where = $this->GetIndexWhere(); - - // 分页 - $number = MyC('admin_page_number', 10, true); - $page_param = array( - 'number' => $number, - 'total' => $m->where($where)->count(), - 'where' => $params, - 'url' => url('Admin/AlipayLifeMessage/Index'), - ); - $page = new \base\Page($page_param); - - // 获取列表 - $list = $m->where($where)->limit($page->GetPageStarNumber(), $number)->order('id desc')->select(); - $list = $this->SetDataHandle($list); - - // 参数 - $this->assign('params', $params); - - // 分页 - $this->assign('page_html', $page->GetPageHtml()); - - // 发送状态 - $this->assign('common_send_status_list', lang('common_send_status_list')); - - // 消息类型 - $this->assign('alipay_life_message_msg_type_list', lang('alipay_life_message_msg_type_list')); - - // 发送类型 - $this->assign('alipay_life_message_send_type_list', lang('alipay_life_message_send_type_list')); - - // 数据列表 - $this->assign('list', $list); - $this->display('Index'); - } - - /** - * [SetDataHandle 数据处理] - * @author Devil - * @blog http://gong.gg/ - * @version 0.0.1 - * @datetime 2016-12-29T21:27:15+0800 - * @param [array] $data [轮播图片数据] - * @return [array] [处理好的数据] - */ - private function SetDataHandle($data) - { - if(!empty($data)) - { - $common_send_status_list = lang('common_send_status_list'); - $alipay_life_message_msg_type_list = lang('alipay_life_message_msg_type_list'); - $alipay_life_message_send_type_list = lang('alipay_life_message_send_type_list'); - foreach($data as &$v) - { - // 状态 - $v['status_name'] = $common_send_status_list[$v['status']]['name']; - - // 消息类型 - $v['type_name'] = $alipay_life_message_msg_type_list[$v['msg_type']]['name']; - - // 发送类型 - $v['send_type_name'] = $alipay_life_message_send_type_list[$v['send_type']]['name']; - - // 生活号 - $v['alipay_life_all'] = empty($v['alipay_life_ids']) ? '' : db('AlipayLife')->where(['id'=>['in', json_decode($v['alipay_life_ids'], true)]])->getField('name', true); - - // 用户 - $v['alipay_openid'] = empty($v['user_id']) ? '' : db('User')->where(['id'=>$v['user_id']])->getField('alipay_openid'); - - // 时间 - $v['startup_time'] = empty($v['startup_time']) ? '' : date('Y-m-d H:i:s', $v['startup_time']); - $v['success_time'] = empty($v['success_time']) ? '' : date('Y-m-d H:i:s', $v['success_time']); - $v['add_time'] = date('Y-m-d H:i:s', $v['add_time']); - $v['upd_time'] = empty($v['upd_time']) ? '' : date('Y-m-d H:i:s', $v['upd_time']); - } - } - return $data; - } - - /** - * [GetIndexWhere 列表条件] - * @author Devil - * @blog http://gong.gg/ - * @version 0.0.1 - * @datetime 2016-12-10T22:16:29+0800 - */ - private function GetIndexWhere() - { - $where = array(); - - // 模糊 - if(!empty($_REQUEST['keyword'])) - { - $where['title'] = array('like', '%'.I('keyword').'%'); - } - - // 是否更多条件 - if(I('is_more', 0) == 1) - { - if(I('status', -1) > -1) - { - $where['status'] = intval(I('status', 0)); - } - if(I('type', -1) > -1) - { - $where['msg_type'] = intval(I('type', 0)); - } - if(I('send_type', -1) > -1) - { - $where['send_type'] = intval(I('send_type', 0)); - } - - // 表达式 - if(!empty($_REQUEST['time_start'])) - { - $where['add_time'][] = array('gt', strtotime(I('time_start'))); - } - if(!empty($_REQUEST['time_end'])) - { - $where['add_time'][] = array('lt', strtotime(I('time_end'))); - } - } - return $where; - } - - /** - * [SaveInfo 添加/编辑页面] - * @author Devil - * @blog http://gong.gg/ - * @version 0.0.1 - * @datetime 2016-12-14T21:37:02+0800 - */ - public function SaveInfo() - { - // 数据 - $data = empty($_REQUEST['id']) ? array() : db('AlipayLifeMessage')->find(I('id')); - $this->assign('data', $data); - - // 消息类型 - $this->assign('alipay_life_message_msg_type_list', lang('alipay_life_message_msg_type_list')); - - // 单用户发消息用户信息 - $alipay_openid = ''; - $user_id = 0; - $alipay_life_user_id = 0; - if(!empty($_GET['user_id'])) - { - $user_id = intval(I('user_id')); - $alipay_life_user_id = intval(I('alipay_life_user_id')); - } - if(!empty($data)) - { - $user_id = $data['user_id']; - $alipay_life_user_id = $data['alipay_life_user_id']; - } - if(!empty($user_id)) - { - $alipay_openid = db('User')->where(['id'=>$user_id])->getField('alipay_openid'); - } - $this->assign('user_id', $user_id); - $this->assign('alipay_life_user_id', $alipay_life_user_id); - $this->assign('alipay_openid', $alipay_openid); - - // 消息发送类型 - $this->assign('alipay_life_message_send_type_list', lang('alipay_life_message_send_type_list')); - $send_type = (isset($data['send_type']) && $data['send_type'] == 0) ? $data['send_type'] : (empty($alipay_openid) ? 1 : 0); - $this->assign('send_type', $send_type); - - // 生活号 - $alipay_life_list = []; - $alipay_life_ids_all = []; - if(!empty($_GET['alipay_life_id'])) - { - $alipay_life_ids_all = [intval(I('alipay_life_id'))]; - } - if(!empty($data['alipay_life_ids'])) - { - $alipay_life_ids_all = json_decode($data['alipay_life_ids'], true); - } - if(!empty($alipay_life_ids_all)) - { - $alipay_life_list = db('AlipayLife')->field('id,name')->where(['id'=>['in', $alipay_life_ids_all]])->select(); - } - $this->assign('alipay_life_ids_all', $alipay_life_ids_all); - $this->assign('alipay_life_list', $alipay_life_list); - - // 生活号分类 - if(empty($alipay_openid)) - { - $alipay_life_category = db('AlipayLifeCategory')->where(['is_enable'=>1])->field('id,name')->select(); - } else { - $alipay_life_category = []; - } - $this->assign('alipay_life_category', $alipay_life_category); - - // 参数 - $this->assign('params', array_merge($_POST, $_GET)); - $this->assign('msg_type', I('msg_type', 0)); - $this->display('SaveInfo'); - } - - - /** - * [Index 消息内容列表] - * @author Devil - * @blog http://gong.gg/ - * @version 0.0.1 - * @datetime 2016-12-06T21:31:53+0800 - */ - public function ContentIndex() - { - // 参数 - $params = array_merge($_POST, $_GET); - - // 条件 - $where = ['alipay_life_message_id' => intval($params['message_id'])]; - - // 获取列表 - $list = db('AlipayLifeMessageContent')->where($where)->order('id desc')->select(); - $list = $this->SetDataHandleContent($list); - - // 消息主数据 - $data = empty($_REQUEST['message_id']) ? array() : db('AlipayLifeMessage')->find(I('message_id')); - $this->assign('data', $data); - $this->assign('msg_type', $data['msg_type']); - - // 参数 - $this->assign('params', $params); - - // 数据列表 - $this->assign('list', $list); - $this->assign('list_count', count($list)); - $this->display('ContentIndex'); - } - - /** - * 消息内容处理 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @date 2018-10-29 - * @desc description - * @param [array] $data [轮播图片数据] - * @return [array] [处理好的数据] - */ - private function SetDataHandleContent($data) - { - if(!empty($data)) - { - $common_send_status_list = lang('common_send_status_list'); - $alipay_life_message_msg_type_list = lang('alipay_life_message_msg_type_list'); - $alipay_life_message_send_type_list = lang('alipay_life_message_send_type_list'); - foreach($data as &$v) - { - // image_url - $v['image_url'] = empty($v['image_url']) ? '' : config('IMAGE_HOST').$v['image_url']; - - // 时间 - $v['add_time'] = date('Y-m-d H:i:s', $v['add_time']); - $v['upd_time'] = empty($v['upd_time']) ? '' : date('Y-m-d H:i:s', $v['upd_time']); - } - } - return $data; - } - - /** - * 内容添加/编辑页面 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @date 2018-10-29 - * @desc description - */ - public function ContentSaveInfo() - { - // 主数据 - $message = empty($_REQUEST['message_id']) ? array() : db('AlipayLifeMessage')->find(I('message_id')); - - // 数据 - $data = empty($_REQUEST['id']) ? array() : db('AlipayLifeMessageContent')->find(I('id')); - $this->assign('data', $data); - - // 消息类型 - $this->assign('alipay_life_message_msg_type_list', lang('alipay_life_message_msg_type_list')); - $this->assign('msg_type', $message['msg_type']); - - // 参数 - $this->assign('params', array_merge($_POST, $_GET)); - $this->display('ContentSaveInfo'); - } - - /** - * 消息详情 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @date 2018-10-30 - * @desc description - */ - public function Detail() - { - // 参数 - $params = array_merge($_POST, $_GET); - - // 获取列表 - $list = AlipayLifeService::MessageDetailList($params); - - // 参数 - $this->assign('params', $params); - - // 数据列表 - $this->assign('list', $list); - $this->display('Detail'); - } - - /** - * [Save 生活号消息保存] - * @author Devil - * @blog http://gong.gg/ - * @version 0.0.1 - * @datetime 2016-12-25T22:36:12+0800 - */ - public function Save() - { - // 是否ajax请求 - if(!IS_AJAX) - { - $this->error('非法访问'); - } - - $ret = AlipayLifeService::MessageSave($_POST); - $this->ajaxReturn($ret['msg'], $ret['code'], $ret['data']); - } - - /** - * [ContentSave 生活号消息内容保存] - * @author Devil - * @blog http://gong.gg/ - * @version 0.0.1 - * @datetime 2016-12-25T22:36:12+0800 - */ - public function ContentSave() - { - // 是否ajax请求 - if(!IS_AJAX) - { - $this->error('非法访问'); - } - - $ret = AlipayLifeService::MessageContentSave($_POST); - $this->ajaxReturn($ret['msg'], $ret['code'], $ret['data']); - } - - /** - * [Delete 生活号消息删除] - * @author Devil - * @blog http://gong.gg/ - * @version 0.0.1 - * @datetime 2016-12-25T22:36:12+0800 - */ - public function Delete() - { - // 是否ajax请求 - if(!IS_AJAX) - { - $this->error('非法访问'); - } - - // 删除 - $id = intval(I('id')); - $m = db('AlipayLifeMessage'); - $m->startTrans(); - if($m->delete($id) && db('AlipayLifeMessageContent')->where(['alipay_life_message_id'=>$id])->delete()) - { - $m->commit(); - $this->ajaxReturn('删除成功'); - } - $m->rollback(); - $this->ajaxReturn('删除失败或资源不存在', -100); - } - - /** - * [Delete 生活号消息内容删除] - * @author Devil - * @blog http://gong.gg/ - * @version 0.0.1 - * @datetime 2016-12-25T22:36:12+0800 - */ - public function ContentDelete() - { - // 是否ajax请求 - if(!IS_AJAX) - { - $this->error('非法访问'); - } - - // 删除 - if(db('AlipayLifeMessageContent')->delete(intval(I('id')))) - { - $this->ajaxReturn('删除成功'); - } - $this->ajaxReturn('删除失败或资源不存在', -100); - } - - /** - * 发送消息 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @date 2018-10-24 - * @desc description - */ - public function Send() - { - // 是否ajax请求 - if(!IS_AJAX) - { - $this->error('非法访问'); - } - - $ret = AlipayLifeService::MessageSubmit($_POST); - $this->ajaxReturn($ret['msg'], $ret['code'], $ret['data']); - } - - /** - * 生活号搜索 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @date 2018-10-29 - * @desc description - */ - public function Search() - { - // 是否ajax请求 - if(!IS_AJAX) - { - $this->error('非法访问'); - } - - $ret = AlipayLifeService::AlipayLifeSearch($_POST); - $this->ajaxReturn($ret['msg'], $ret['code'], $ret['data']); - } -} -?> \ No newline at end of file diff --git a/application/admin/controller/AlipayLifeStatus.php b/application/admin/controller/AlipayLifeStatus.php deleted file mode 100755 index 60be73b50..000000000 --- a/application/admin/controller/AlipayLifeStatus.php +++ /dev/null @@ -1,313 +0,0 @@ -Is_Login(); - - // 权限校验 - $this->Is_Power(); - } - - /** - * [Index 生活号批量上下架列表] - * @author Devil - * @blog http://gong.gg/ - * @version 0.0.1 - * @datetime 2016-12-06T21:31:53+0800 - */ - public function Index() - { - // 参数 - $params = array_merge($_POST, $_GET); - - // 模型对象 - $m = db('AlipayLifeStatus'); - - // 条件 - $where = $this->GetIndexWhere(); - - // 分页 - $number = MyC('admin_page_number', 10, true); - $page_param = array( - 'number' => $number, - 'total' => $m->where($where)->count(), - 'where' => $params, - 'url' => url('Admin/AlipayLifeStatus/Index'), - ); - $page = new \base\Page($page_param); - - // 获取列表 - $list = $m->where($where)->limit($page->GetPageStarNumber(), $number)->order('id desc')->select(); - $list = $this->SetDataHandle($list); - - // 参数 - $this->assign('params', $params); - - // 分页 - $this->assign('page_html', $page->GetPageHtml()); - - // 处理状态 - $this->assign('common_handle_status_list', lang('common_handle_status_list')); - - // 上下架 - $this->assign('common_shelves_select_list', lang('common_shelves_select_list')); - - // 数据列表 - $this->assign('list', $list); - $this->display('Index'); - } - - /** - * [SetDataHandle 数据处理] - * @author Devil - * @blog http://gong.gg/ - * @version 0.0.1 - * @datetime 2016-12-29T21:27:15+0800 - * @param [array] $data [轮播图片数据] - * @return [array] [处理好的数据] - */ - private function SetDataHandle($data) - { - if(!empty($data)) - { - $common_handle_status_list = lang('common_handle_status_list'); - $common_shelves_select_list = lang('common_shelves_select_list'); - foreach($data as &$v) - { - // 状态 - $v['status_name'] = $common_handle_status_list[$v['status']]['name']; - - // 上下架 - $v['is_shelves_name'] = $common_shelves_select_list[$v['is_shelves']]['name']; - - // 生活号 - $v['alipay_life_all'] = empty($v['alipay_life_ids']) ? '' : db('AlipayLife')->where(['id'=>['in', json_decode($v['alipay_life_ids'], true)]])->getField('name', true); - - // 时间 - $v['startup_time'] = empty($v['startup_time']) ? '' : date('Y-m-d H:i:s', $v['startup_time']); - $v['success_time'] = empty($v['success_time']) ? '' : date('Y-m-d H:i:s', $v['success_time']); - $v['add_time'] = date('Y-m-d H:i:s', $v['add_time']); - $v['upd_time'] = empty($v['upd_time']) ? '' : date('Y-m-d H:i:s', $v['upd_time']); - } - } - return $data; - } - - /** - * [GetIndexWhere 列表条件] - * @author Devil - * @blog http://gong.gg/ - * @version 0.0.1 - * @datetime 2016-12-10T22:16:29+0800 - */ - private function GetIndexWhere() - { - $where = array(); - - // 模糊 - if(!empty($_REQUEST['keyword'])) - { - $where['name'] = array('like', '%'.I('keyword').'%'); - } - - // 是否更多条件 - if(I('is_more', 0) == 1) - { - if(I('status', -1) > -1) - { - $where['status'] = intval(I('status', 0)); - } - if(I('is_shelves', -1) > -1) - { - $where['is_shelves'] = intval(I('is_shelves', 0)); - } - - // 表达式 - if(!empty($_REQUEST['time_start'])) - { - $where['add_time'][] = array('gt', strtotime(I('time_start'))); - } - if(!empty($_REQUEST['time_end'])) - { - $where['add_time'][] = array('lt', strtotime(I('time_end'))); - } - } - return $where; - } - - /** - * [SaveInfo 添加/编辑页面] - * @author Devil - * @blog http://gong.gg/ - * @version 0.0.1 - * @datetime 2016-12-14T21:37:02+0800 - */ - public function SaveInfo() - { - // 数据 - $data = empty($_REQUEST['id']) ? array() : db('AlipayLifeStatus')->find(I('id')); - $this->assign('data', $data); - - // 生活号 - $alipay_life_list = []; - $alipay_life_ids_all = []; - if(!empty($_GET['alipay_life_id'])) - { - $alipay_life_ids_all = [intval(I('alipay_life_id'))]; - } - if(!empty($data['alipay_life_ids'])) - { - $alipay_life_ids_all = json_decode($data['alipay_life_ids'], true); - } - if(!empty($alipay_life_ids_all)) - { - $alipay_life_list = db('AlipayLife')->field('id,name')->where(['id'=>['in', $alipay_life_ids_all]])->select(); - } - $this->assign('alipay_life_ids_all', $alipay_life_ids_all); - $this->assign('alipay_life_list', $alipay_life_list); - - // 生活号分类 - $alipay_life_category = db('AlipayLifeCategory')->where(['is_enable'=>1])->field('id,name')->select(); - $this->assign('alipay_life_category', $alipay_life_category); - - // 上下架 - $this->assign('common_shelves_select_list', lang('common_shelves_select_list')); - - // 参数 - $this->assign('params', array_merge($_POST, $_GET)); - $this->display('SaveInfo'); - } - - /** - * 详情 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @date 2018-10-30 - * @desc description - */ - public function Detail() - { - // 参数 - $params = array_merge($_POST, $_GET); - - // 获取列表 - $list = AlipayLifeService::StatusDetailList($params); - - // 参数 - $this->assign('params', $params); - - // 数据列表 - $this->assign('list', $list); - $this->display('Detail'); - } - - /** - * [Save 生活号批量上下架保存] - * @author Devil - * @blog http://gong.gg/ - * @version 0.0.1 - * @datetime 2016-12-25T22:36:12+0800 - */ - public function Save() - { - // 是否ajax请求 - if(!IS_AJAX) - { - $this->error('非法访问'); - } - - $ret = AlipayLifeService::LifeStatusSave($_POST); - $this->ajaxReturn($ret['msg'], $ret['code'], $ret['data']); - } - - /** - * [Delete 生活号批量上下架删除] - * @author Devil - * @blog http://gong.gg/ - * @version 0.0.1 - * @datetime 2016-12-25T22:36:12+0800 - */ - public function Delete() - { - // 是否ajax请求 - if(!IS_AJAX) - { - $this->error('非法访问'); - } - - // 删除 - if(db('AlipayLifeStatus')->delete(intval(I('id')))) - { - $this->ajaxReturn('删除成功'); - } - $this->ajaxReturn('删除失败或资源不存在', -100); - } - - /** - * 提交 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @date 2018-10-24 - * @desc description - */ - public function Submit() - { - // 是否ajax请求 - if(!IS_AJAX) - { - $this->error('非法访问'); - } - - $ret = AlipayLifeService::LifeStatusSubmit($_POST); - $this->ajaxReturn($ret['msg'], $ret['code'], $ret['data']); - } - - /** - * 生活号搜索 - * @author Devil - * @blog http://gong.gg/ - * @version 1.0.0 - * @date 2018-10-29 - * @desc description - */ - public function Search() - { - // 是否ajax请求 - if(!IS_AJAX) - { - $this->error('非法访问'); - } - - $params = $_POST; - $params['is_all'] = 1; - $ret = AlipayLifeService::AlipayLifeSearch($params); - $this->ajaxReturn($ret['msg'], $ret['code'], $ret['data']); - } -} -?> \ No newline at end of file diff --git a/application/admin/controller/AlipayLifeUser.php b/application/admin/controller/AlipayLifeUser.php deleted file mode 100755 index c92706b30..000000000 --- a/application/admin/controller/AlipayLifeUser.php +++ /dev/null @@ -1,170 +0,0 @@ -Is_Login(); - - // 权限校验 - $this->Is_Power(); - } - - /** - * [Index 用户列表] - * @author Devil - * @blog http://gong.gg/ - * @version 0.0.1 - * @datetime 2016-12-06T21:31:53+0800 - */ - public function Index() - { - // 参数 - $param = array_merge($_POST, $_GET); - - // 条件 - $where = $this->GetIndexWhere(); - - // 模型 - $m = db('AlipayLifeUser'); - - // 分页 - $number = MyC('admin_page_number', 10, true); - $page_param = array( - 'number' => $number, - 'total' => $m->alias('au')->where($where)->join('INNER JOIN __USER__ AS u ON u.id=au.user_id')->count(), - 'where' => $param, - 'url' => url('Admin/AlipayLifeUser/Index'), - ); - $page = new \base\Page($page_param); - - // 获取列表 - $field = 'u.*, au.alipay_life_id, au.id AS alipay_life_user_id, au.user_id, au.add_time AS alipay_life_add_time'; - $list = $this->SetDataHandle($m->alias('au')->where($where)->join('INNER JOIN __USER__ AS u ON u.id=au.user_id')->field($field)->limit($page->GetPageStarNumber(), $number)->order('au.id desc')->select()); - - // 性别 - $this->assign('common_gender_list', lang('common_gender_list')); - - // 参数 - $this->assign('param', $param); - - // 分页 - $this->assign('page_html', $page->GetPageHtml()); - - // 数据列表 - $this->assign('list', $list); - - $this->display('Index'); - } - - /** - * [SetDataHandle 数据处理] - * @author Devil - * @blog http://gong.gg/ - * @version 0.0.1 - * @datetime 2016-12-29T21:27:15+0800 - * @param [array] $data [用户数据] - * @return [array] [处理好的数据] - */ - private function SetDataHandle($data) - { - if(!empty($data)) - { - $common_gender_list = lang('common_gender_list'); - $life_m = db('AlipayLife'); - foreach($data as &$v) - { - // 生日 - if(!empty($v['birthday'])) - { - $v['birthday_text'] = date('Y-m-d', $v['birthday']); - } else { - $v['birthday_text'] = ''; - } - - // 注册时间 - $v['add_time'] = date('Y-m-d H:i:s', $v['add_time']); - - // 关注时间 - $v['alipay_life_add_time'] = date('Y-m-d H:i:s', $v['alipay_life_add_time']); - - // 更新时间 - $v['upd_time'] = date('Y-m-d H:i:s', $v['upd_time']); - - // 性别 - $v['gender_text'] = $common_gender_list[$v['gender']]['name']; - - // 所属生活号 - $v['alipay_life_name'] = $life_m->where(['id'=>$v['alipay_life_id']])->getField('name'); - } - } - return $data; - } - - /** - * [GetIndexWhere 用户列表条件] - * @author Devil - * @blog http://gong.gg/ - * @version 0.0.1 - * @datetime 2016-12-10T22:16:29+0800 - */ - private function GetIndexWhere() - { - $where = array('is_delete_time'=>0); - - // 模糊 - if(!empty($_REQUEST['keyword'])) - { - $like_keyword = array('like', '%'.I('keyword').'%'); - $where[] = array( - 'u.username' => $like_keyword, - 'u.nickname' => $like_keyword, - 'u.mobile' => $like_keyword, - '_logic' => 'or', - ); - } - - // 是否更多条件 - if(I('is_more', 0) == 1) - { - // 等值 - if(I('gender', -1) > -1) - { - $where['u.gender'] = intval(I('gender', 0)); - } - - // 表达式 - if(!empty($_REQUEST['time_start'])) - { - $where['au.add_time'][] = array('gt', strtotime(I('time_start'))); - } - if(!empty($_REQUEST['time_end'])) - { - $where['au.add_time'][] = array('lt', strtotime(I('time_end'))); - } - } - - return $where; - } -} -?> \ No newline at end of file diff --git a/application/admin/view/default/alipaylife/index.html b/application/admin/view/default/alipaylife/index.html deleted file mode 100755 index 33657abc1..000000000 --- a/application/admin/view/default/alipaylife/index.html +++ /dev/null @@ -1,112 +0,0 @@ -{{include file="public/header" /}} - - -
-
- -
- -

接口异步通知地址:{{$Think.__MY_URL__}}alipay_life_notify.php

-
- - - -
-
- - - - -
- - -
- - ~ - -
-
-
-
- - - -
- 新增 -
- - - - - - - - - - - - - - - - - {{if !empty($data_list)}} - {{foreach $data_list as $v}} - - - - - - - - - - {{/foreach}} - {{else /}} - - {{/if}} - -
名称LOGOappid生活号分类上下架创建时间操作
{{$v.name}} - {{if !empty($v['logo'])}} - - - - {{else /}} - 暂无图片 - {{/if}} - {{$v.appid}}{{:implode(',', $v['alipay_life_category_text'])}} - - {{$v.add_time_time}} - - - - -
没有相关数据
- - - - {{if !empty($data_list)}} - {{$page_html|raw}} - {{/if}} - -
-
- - - -{{include file="public/footer" /}} - \ No newline at end of file diff --git a/application/admin/view/default/alipaylife/save_info.html b/application/admin/view/default/alipaylife/save_info.html deleted file mode 100755 index 42fa6302b..000000000 --- a/application/admin/view/default/alipaylife/save_info.html +++ /dev/null @@ -1,75 +0,0 @@ -{{include file="public/header" /}} - - -
-
- -
- - - - {{if empty($data['id'])}} - 生活号添加 - {{else /}} - 生活号编辑 - {{/if}} - - 返回 - -
- - -
-
- - -
- -
- - -
- -
- -
    - {{if !empty($data['logo'])}} -
  • - - - × -
  • - {{/if}} -
-
+上传图片
-
- -
- - -
-
- - -
-
- - -
-
- - -
-
- -
-
- - - -{{include file="public/footer" /}} - \ No newline at end of file diff --git a/application/admin/view/default/alipaylifecategory/index.html b/application/admin/view/default/alipaylifecategory/index.html deleted file mode 100755 index f110bc241..000000000 --- a/application/admin/view/default/alipaylifecategory/index.html +++ /dev/null @@ -1,59 +0,0 @@ -{{include file="public/header" /}} - - -
-
- -
- -
- - - -
-
-
-

生活号分类添加

- × -
-
- -
-
- - -
-
- - -
- -
- - -
- - -
-
-
- - - -
- -

处理中...

-
-
- -
- - - - -{{include file="public/footer" /}} - - \ No newline at end of file diff --git a/application/admin/view/default/alipaylifemenu/content_index.html b/application/admin/view/default/alipaylifemenu/content_index.html deleted file mode 100755 index d1befb262..000000000 --- a/application/admin/view/default/alipaylifemenu/content_index.html +++ /dev/null @@ -1,196 +0,0 @@ -{{include file="public/header" /}} - - -
-
- - - 返回 - - - - -
- -

1.图标菜单图片大小必须 60X60 像数,最大不超过5M
2.图标菜单建议不超过8个
3.图标菜单不支持二级

1.底部一级菜单最多4个,如已开启客服功能则最多3个
2.底部二级菜单最多5个

-
- - - -
- 新增 -
- - - - 图标 - - - - - - {{if !empty($list)}} - - - - - - - - - - - - - - - - - - - - {{/foreach}} - {{/if}} - {{/foreach}} - {{else /}} - - {{/if}} - -
更多操作
- {{if empty($v['name'])}}未填写{{else /}}{{$v.name}}{{/if}} - - {{if empty($v['action_type_name'])}}未填写{{else /}}{{$v.action_type_name}}{{/if}} - - {{if empty($v['action_value'])}}未填写{{else /}}{{$v.action_value}}{{/if}} - - {{if !empty($v['icon'])}} - - - - {{else /}} - 暂无图片 - {{/if}} - - 查看更多 -
-
-
-

详情内容

- × -
-
-
-
名称
-
{{if empty($v['name'])}}未填写{{else /}}{{$v.name}}{{/if}}
- -
事件类型
-
{{if empty($v['action_type_name'])}}未填写{{else /}}{{$v.action_type_name}}{{/if}}
- -
事件值
-
{{if empty($v['action_value'])}}未填写{{else /}}{{$v.action_value}}{{/if}}
- -
图标
-
- {{if !empty($v['icon'])}} - - {{else /}} - 暂无图片 - {{/if}} -
- -
创建时间
-
{{$v.add_time}}
- -
更新时间
-
{{$v.upd_time}}
-
-
-
-
-
- {{if $v['status'] eq 0)}} - {{if in_array($data['status'], [0,4])}} - - - - - - {{/if}} - {{/if}} -
未填写{{else /}}{{$vs.name}}{{/if}} - - {{if empty($vs['action_type_name'])}}未填写{{else /}}{{$vs.action_type_name}}{{/if}} - - {{if empty($vs['action_value'])}}未填写{{else /}}{{$vs.action_value}}{{/if}} - - {{if !empty($vs['icon'])}} - - - - {{else /}} - 暂无图片 - {{/if}} - - 查看更多 -
-
-
-

详情内容

- × -
-
-
-
名称
-
{{if empty($vs['name'])}}未填写{{else /}}{{$vs.name}}{{/if}}
- -
事件类型
-
{{if empty($vs['action_type_name'])}}未填写{{else /}}{{$vs.action_type_name}}{{/if}}
- -
事件值
-
{{if empty($vs['action_value'])}}未填写{{else /}}{{$vs.action_value}}{{/if}}
- -
图标
-
- {{if !empty($vs['icon'])}} - - {{else /}} - 暂无图片 - {{/if}} -
- -
创建时间
-
{{$vs.add_time}}
- -
更新时间
-
{{$vs.upd_time}}
-
-
-
-
-
- {{if $v['status'] eq 0)}} - {{if in_array($data['status'], [0,4])}} - - - - - - {{/if}} - {{/if}} -
没有相关数据
- -
-
- - - -{{include file="public/footer" /}} - \ No newline at end of file diff --git a/application/admin/view/default/alipaylifemenu/content_save_info.html b/application/admin/view/default/alipaylifemenu/content_save_info.html deleted file mode 100755 index 5d708e6c3..000000000 --- a/application/admin/view/default/alipaylifemenu/content_save_info.html +++ /dev/null @@ -1,81 +0,0 @@ -{{include file="public/header" /}} - - -
-
- -
- - - $params['menu_id']])}}" class="fr fs-14 m-t-5 am-icon-mail-reply"> 返回 - - - {{if $menu['type'] eq 0 and !empty($alipay_life_menu_list)}} -
- - -
- {{/if}} - -
- - {{$data.name}}{{/if}}" required /> -
- -
- - -
- -
- - {{$data.action_value}}{{/if}}" /> -
- - {{if $menu['type'] eq 1)}} -
- - - {{$data.icon}}{{/if}}" required /> - -
- - {{/if}} - - - {{/if}} -
- {{/if}} - -
- - -
- -
- - - -
- - -
-
- - - -{{include file="public/footer" /}} - \ No newline at end of file diff --git a/application/admin/view/default/alipaylifemenu/detail.html b/application/admin/view/default/alipaylifemenu/detail.html deleted file mode 100755 index e26f34382..000000000 --- a/application/admin/view/default/alipaylifemenu/detail.html +++ /dev/null @@ -1,78 +0,0 @@ -{{include file="public/header" /}} - - -
-
- - - 返回 - - - - - - - - - - - - - {{/foreach}} - {{else /}} - - {{/if}} - -
{{$v.alipay_life_name}}{{$v.status_name}}{{$v.send_time}}{{$v.return_msg}} - 查看更多 -
-
-
-

详情内容

- × -
-
-
-
生活号
-
{{if empty($v['alipay_life_name'])}}未填写{{else /}}{{$v.alipay_life_name}}{{/if}}
- -
状态
-
{{if empty($v['status_name'])}}未填写{{else /}}{{$v.status_name}}{{/if}}
- -
发布时间
-
{{$v.send_time}}
- -
发布描述
-
{{$v.return_msg}}
- -
创建时间
-
{{$v.add_time}}
- -
更新时间
-
{{$v.upd_time}}
-
-
-
-
-
没有相关数据
- -
-
- - - -{{include file="public/footer" /}} - \ No newline at end of file diff --git a/application/admin/view/default/alipaylifemenu/index.html b/application/admin/view/default/alipaylifemenu/index.html deleted file mode 100755 index 576994785..000000000 --- a/application/admin/view/default/alipaylifemenu/index.html +++ /dev/null @@ -1,143 +0,0 @@ -{{include file="public/header" /}} - - -
-
- -
-
- value="{{$params.keyword}}"{{/if}} /> - - - -
- - -
- ~ - -
-
-
-
- - - -
新增 -
- - - - 生活号 - - - - - - - {{if !empty($list)}} - - - - - - - - - - {{/foreach}} - {{else /}} - - {{/if}} - -
状态更多操作
{{$v.name}}{{$v.type_name}}{{:implode(',', $v['alipay_life_all'])}}{{$v.status_name}} - 查看更多 -
-
-
-

详情内容

- × -
-
-
-
名称
-
{{if empty($v['name'])}}未填写{{else /}}{{$v.name}}{{/if}}
- -
菜单类型
-
{{if empty($v['type_name'])}}未填写{{else /}}{{$v.type_name}}{{/if}}
- -
生活号
-
{{if empty($v['alipay_life_all'])}}未填写{{else /}}{{:implode(',', $v['alipay_life_all'])}}{{/if}}
- -
状态
-
{{if empty($v['status_name'])}}未填写{{else /}}{{$v.status_name}}{{/if}}
- -
发布启动时间
-
{{$v.startup_time}}
- -
发布完成时间
-
{{$v.success_time}}
- -
创建时间
-
{{$v.add_time}}
- -
更新时间
-
{{$v.upd_time}}
-
-
-
-
-
- {{if in_array($v['status'], [0,4])}} - - - - - - - - {{/if}} - - - - - - - - -
没有相关数据
- - - - {{if !empty($list)}} - {{$page_html}} - {{/if}} - -
-
- - - -{{include file="public/footer" /}} - \ No newline at end of file diff --git a/application/admin/view/default/alipaylifemenu/save_info.html b/application/admin/view/default/alipaylifemenu/save_info.html deleted file mode 100755 index 7b8005203..000000000 --- a/application/admin/view/default/alipaylifemenu/save_info.html +++ /dev/null @@ -1,78 +0,0 @@ -{{include file="public/header" /}} - - -
-
- -
- - - 返回 - - -
- - {{$data.name}}{{/if}}" required /> -
- -
- - -
- - -
- -
- - - -
-
- {{:implode(',', json_decode($data['alipay_life_ids'], true))}}{{/if}}" data-validation-message="请选择生活号" required /> -
-
可选
-
    -
    没有相关数据
    -
-
- -
-
已选
-
    -
    none{{/if}}">没有相关数据
    - -
  • - {{$v.name}} - -
  • - {{/foreach}} -
-
-
-
- -
- {{$params.id}}{{/if}}" /> - -
-
- -
-
- - - -{{include file="public/footer" /}} - \ No newline at end of file diff --git a/application/admin/view/default/alipaylifemessage/content_index.html b/application/admin/view/default/alipaylifemessage/content_index.html deleted file mode 100755 index 30f17905c..000000000 --- a/application/admin/view/default/alipaylifemessage/content_index.html +++ /dev/null @@ -1,123 +0,0 @@ -{{include file="public/header" /}} - - -
-
- - - 返回 - - - - - {{if ($msg_type eq 0 and $list_count eq 0) or ($msg_type eq 1 and $list_count lt 10)}} -
- 新增 -
- {{/if}} - - - - 图文url跳转地址 - - - - - - - {{if !empty($list)}} - - - - - - - - - - - {{/foreach}} - {{else /}} - - {{/if}} - -
链接文字更多操作
- {{if empty($v['title'])}}未填写{{else /}}{{$v.title}}{{/if}} - - {{if empty($v['content'])}}未填写{{else /}}{{$v.content}}{{/if}} - - {{if !empty($v['image_url'])}} - - - - {{else /}} - 暂无图片 - {{/if}} - - {{if empty($v['url'])}}未填写{{else /}}{{$v.url}}{{/if}} - - {{if empty($v['action_name'])}}未填写{{else /}}{{$v.action_name}}{{/if}} - - 查看更多 -
-
-
-

详情内容

- × -
-
-
-
消息标题
-
{{if empty($v['title'])}}未填写{{else /}}{{$v.title}}{{/if}}
- -
内容
-
{{if empty($v['content'])}}未填写{{else /}}{{$v.content}}{{/if}}
- -
封面图片
-
- {{if !empty($v['image_url'])}} - - {{else /}} - 暂无图片 - {{/if}} -
- -
图文url跳转地址
-
{{if empty($v['url'])}}未设置{{else /}}{{$v.url}}{{/if}}
- -
链接文字
-
{{if empty($v['action_name'])}}未填写{{else /}}{{$v.action_name}}{{/if}}
- -
创建时间
-
{{$v.add_time}}
- -
更新时间
-
{{$v.upd_time}}
-
-
-
-
-
- {{if in_array($data['status'], [0,4])}} - - - - - - {{/if}} -
没有相关数据
- -
-
- - - -{{include file="public/footer" /}} - \ No newline at end of file diff --git a/application/admin/view/default/alipaylifemessage/content_save_info.html b/application/admin/view/default/alipaylifemessage/content_save_info.html deleted file mode 100755 index 483d2f2ae..000000000 --- a/application/admin/view/default/alipaylifemessage/content_save_info.html +++ /dev/null @@ -1,65 +0,0 @@ -{{include file="public/header" /}} - - -
-
- -
- - - $params['message_id']])}}" class="fr fs-14 m-t-5 am-icon-mail-reply"> 返回 - - - {{if $msg_type eq 1)}} -
- - {{$data.title}}{{/if}}" required /> -
- {{/if}} - -
- - -
- - {{if $msg_type eq 1)}} -
- - - {{$data.image_url}}{{/if}}" required /> - -
- - {{/if}} - - - {{/if}} -
- -
- - {{$data.url}}{{/if}}" required /> -
- -
- - {{$data.action_name}}{{/if}}" /> -
- {{/if}} -
- - - -
- - -
-
- - - -{{include file="public/footer" /}} - \ No newline at end of file diff --git a/application/admin/view/default/alipaylifemessage/detail.html b/application/admin/view/default/alipaylifemessage/detail.html deleted file mode 100755 index 4eaf71782..000000000 --- a/application/admin/view/default/alipaylifemessage/detail.html +++ /dev/null @@ -1,83 +0,0 @@ -{{include file="public/header" /}} - - -
-
- - - 返回 - - - - - - - - - - - - - - {{/foreach}} - {{else /}} - - {{/if}} - -
{{$v.alipay_life_name}}{{$v.alipay_openid}}{{$v.status_name}}{{$v.send_time}}{{$v.return_msg}} - 查看更多 -
-
-
-

详情内容

- × -
-
-
-
生活号
-
{{if empty($v['alipay_life_name'])}}未填写{{else /}}{{$v.alipay_life_name}}{{/if}}
- -
给用户发送消息
-
{{if empty($v['alipay_openid'])}}未填写{{else /}}{{$v.alipay_openid}}{{/if}}
- -
状态
-
{{if empty($v['status_name'])}}未填写{{else /}}{{$v.status_name}}{{/if}}
- -
发送时间
-
{{$v.send_time}}
- -
发送描述
-
{{$v.return_msg}}
- -
创建时间
-
{{$v.add_time}}
- -
更新时间
-
{{$v.upd_time}}
-
-
-
-
-
没有相关数据
- -
-
- - - -{{include file="public/footer" /}} - \ No newline at end of file diff --git a/application/admin/view/default/alipaylifemessage/index.html b/application/admin/view/default/alipaylifemessage/index.html deleted file mode 100755 index 3252984ba..000000000 --- a/application/admin/view/default/alipaylifemessage/index.html +++ /dev/null @@ -1,150 +0,0 @@ -{{include file="public/header" /}} - - -
-
- -
-
- value="{{$params.keyword}}"{{/if}} /> - - - -
- - - -
- ~ - -
-
-
-
- - - -
新增 -
- - - - - - - - - - - - {{/foreach}} - {{else /}} - - {{/if}} - -
{{$v.type_name}}{{$v.send_type_name}}{{$v.status_name}} - 查看更多 -
-
-
-

详情内容

- × -
-
-
-
消息类型
-
{{if empty($v['type_name'])}}未填写{{else /}}{{$v.type_name}}{{/if}}
- -
发送类型
-
{{if empty($v['send_type_name'])}}未填写{{else /}}{{$v.send_type_name}}{{/if}}
- -
生活号
-
{{if empty($v['alipay_life_all'])}}未填写{{else /}}{{:implode(',', $v['alipay_life_all'])}}{{/if}}
- -
给用户发送消息
-
{{if empty($v['alipay_openid'])}}未填写{{else /}}{{$v.alipay_openid}}{{/if}}
- -
状态
-
{{if empty($v['status_name'])}}未填写{{else /}}{{$v.status_name}}{{/if}}
- -
发送启动时间
-
{{$v.startup_time}}
- -
发送完成时间
-
{{$v.success_time}}
- -
创建时间
-
{{$v.add_time}}
- -
更新时间
-
{{$v.upd_time}}
-
-
-
-
-
- {{if in_array($v['status'], [0,4])}} - - - - - - - - {{/if}} - - - - - - - - -
没有相关数据
- - - - {{if !empty($list)}} - {{$page_html}} - {{/if}} - -
-
- - - -{{include file="public/footer" /}} - \ No newline at end of file diff --git a/application/admin/view/default/alipaylifemessage/save_info.html b/application/admin/view/default/alipaylifemessage/save_info.html deleted file mode 100755 index 4591b5602..000000000 --- a/application/admin/view/default/alipaylifemessage/save_info.html +++ /dev/null @@ -1,104 +0,0 @@ -{{include file="public/header" /}} - - -
-
- -
- - - 返回 - - -
- - -
- -
- - -
- - - {{if $send_type eq 0)}} -
- - -
- -
- - - - -
- {{/if}} - - - {{if $send_type eq 1)}} -
- -
- - - -
-
- {{:implode(',', json_decode($data['alipay_life_ids'], true))}}{{/if}}" data-validation-message="请选择生活号" required /> -
-
可选
-
    -
    没有相关数据
    -
-
- -
-
已选
-
    -
    none{{/if}}">没有相关数据
    - -
  • - {{$v.name}} - -
  • - {{/foreach}} -
-
-
-
- {{/if}} - -
- {{$params.id}}{{/if}}" /> - -
-
- -
-
- - - -{{include file="public/footer" /}} - \ No newline at end of file diff --git a/application/admin/view/default/alipaylifestatus/detail.html b/application/admin/view/default/alipaylifestatus/detail.html deleted file mode 100755 index 884d23804..000000000 --- a/application/admin/view/default/alipaylifestatus/detail.html +++ /dev/null @@ -1,78 +0,0 @@ -{{include file="public/header" /}} - - -
-
- - - 返回 - - - - - - - - - - - - - {{/foreach}} - {{else /}} - - {{/if}} - -
{{$v.alipay_life_name}}{{$v.status_name}}{{$v.send_time}}{{$v.return_msg}} - 查看更多 -
-
-
-

详情内容

- × -
-
-
-
生活号
-
{{if empty($v['alipay_life_name'])}}未填写{{else /}}{{$v.alipay_life_name}}{{/if}}
- -
状态
-
{{if empty($v['status_name'])}}未填写{{else /}}{{$v.status_name}}{{/if}}
- -
处理时间
-
{{$v.send_time}}
- -
处理描述
-
{{$v.return_msg}}
- -
创建时间
-
{{$v.add_time}}
- -
更新时间
-
{{$v.upd_time}}
-
-
-
-
-
没有相关数据
- -
-
- - - -{{include file="public/footer" /}} - \ No newline at end of file diff --git a/application/admin/view/default/alipaylifestatus/index.html b/application/admin/view/default/alipaylifestatus/index.html deleted file mode 100755 index aed72e913..000000000 --- a/application/admin/view/default/alipaylifestatus/index.html +++ /dev/null @@ -1,139 +0,0 @@ -{{include file="public/header" /}} - - -
-
- -
-
- value="{{$params.keyword}}"{{/if}} /> - - - -
- - -
- ~ - -
-
-
-
- - - -
新增 -
- - - - 生活号 - - - - - - - {{if !empty($list)}} - - - - - - - - - - {{/foreach}} - {{else /}} - - {{/if}} - -
状态更多操作
{{$v.name}}{{$v.is_shelves_name}}{{:implode(',', $v['alipay_life_all'])}}{{$v.status_name}} - 查看更多 -
-
-
-

详情内容

- × -
-
-
-
名称
-
{{if empty($v['name'])}}未填写{{else /}}{{$v.name}}{{/if}}
- -
上下架
-
{{if empty($v['is_shelves_name'])}}未填写{{else /}}{{$v.is_shelves_name}}{{/if}}
- -
生活号
-
{{if empty($v['alipay_life_all'])}}未填写{{else /}}{{:implode(',', $v['alipay_life_all'])}}{{/if}}
- -
状态
-
{{if empty($v['status_name'])}}未填写{{else /}}{{$v.status_name}}{{/if}}
- -
处理启动时间
-
{{$v.startup_time}}
- -
处理完成时间
-
{{$v.success_time}}
- -
创建时间
-
{{$v.add_time}}
- -
更新时间
-
{{$v.upd_time}}
-
-
-
-
-
- {{if in_array($v['status'], [0,4])}} - - - - - - - - {{/if}} - - - - -
没有相关数据
- - - - {{if !empty($list)}} - {{$page_html}} - {{/if}} - -
-
- - - -{{include file="public/footer" /}} - \ No newline at end of file diff --git a/application/admin/view/default/alipaylifestatus/save_info.html b/application/admin/view/default/alipaylifestatus/save_info.html deleted file mode 100755 index 61d3a28f4..000000000 --- a/application/admin/view/default/alipaylifestatus/save_info.html +++ /dev/null @@ -1,78 +0,0 @@ -{{include file="public/header" /}} - - -
-
- -
- - - 返回 - - -
- - {{$data.name}}{{/if}}" required /> -
- -
- - -
- - -
- -
- - - -
-
- {{:implode(',', json_decode($data['alipay_life_ids'], true))}}{{/if}}" data-validation-message="请选择生活号" required /> -
-
可选
-
    -
    没有相关数据
    -
-
- -
-
已选
-
    -
    none{{/if}}">没有相关数据
    - -
  • - {{$v.name}} - -
  • - {{/foreach}} -
-
-
-
- -
- {{$params.id}}{{/if}}" /> - -
-
- -
-
- - - -{{include file="public/footer" /}} - \ No newline at end of file diff --git a/application/admin/view/default/alipaylifeuser/index.html b/application/admin/view/default/alipaylifeuser/index.html deleted file mode 100755 index 02620d3ea..000000000 --- a/application/admin/view/default/alipaylifeuser/index.html +++ /dev/null @@ -1,169 +0,0 @@ -{{include file="public/header" /}} - - -
-
- -
-
- value="{{$param.organization_id}}"{{/if}} /> - value="{{$param.keyword}}"{{/if}} /> - - - -
- -
- ~ - -
-
-
-
- - - - 手机号码 - - - - - - - - - {{if !empty($list)}} - - - - - - - - - - - - - {{/foreach}} - {{else /}} - - {{/if}} - -
所属生活号性别生日更多操作
- {{if !empty($v['avatar'])}} - - {{else /}} - 暂无图片 - {{/if}} - - {{if empty($v['username'])}}未填写{{else /}}{{$v.username}}{{/if}} - - {{if empty($v['alipay_openid'])}}未填写{{else /}}{{$v.alipay_openid}}{{/if}} - - {{if empty($v['mobile'])}}未填写{{else /}}{{$v.mobile}}{{/if}} - - {{if empty($v['alipay_life_name'])}}未填写{{else /}}{{$v.alipay_life_name}}{{/if}} - - {{if empty($v['gender_text'])}}未设置{{else /}}{{$v.gender_text}}{{/if}} - - {{if empty($v['birthday_text'])}}未填写{{else /}}{{$v.birthday_text}}{{/if}} - - 查看更多 -
-
-
-

详情内容

- × -
-
-
-
用户名
-
{{if empty($v['username'])}}未填写{{else /}}{{$v.username}}{{/if}}
- -
昵称
-
{{if empty($v['nickname'])}}未填写{{else /}}{{$v.nickname}}{{/if}}
- -
appid
-
{{if empty($v['alipay_openid'])}}未填写{{else /}}{{$v.alipay_openid}}{{/if}}
- -
手机号码
-
{{if empty($v['mobile'])}}未填写{{else /}}{{$v.mobile}}{{/if}}
- -
电子邮箱
-
{{if empty($v['email'])}}未填写{{else /}}{{$v.email}}{{/if}}
- -
性别
-
{{if empty($v['gender_text'])}}未设置{{else /}}{{$v.gender_text}}{{/if}}
- -
生日
-
{{if empty($v['birthday_text'])}}未填写{{else /}}{{$v.birthday_text}}{{/if}}
- -
所在省
-
{{if empty($v['province'])}}未填写{{else /}}{{$v.province}}{{/if}}
- -
所在市
-
{{if empty($v['city'])}}未填写{{else /}}{{$v.city}}{{/if}}
- -
详细地址
-
{{if empty($v['address'])}}未填写{{else /}}{{$v.address}}{{/if}}
- -
积分
-
{{if empty($v['integral'])}}未填写{{else /}}{{$v.integral}}{{/if}}
- -
用户头像
-
- {{if !empty($v['avatar'])}} - - {{else /}} - 暂无图片 - {{/if}} -
- -
关注时间
-
{{$v.alipay_life_add_time}}
- -
注册时间
-
{{$v.add_time}}
- -
更新时间
-
{{$v.upd_time}}
-
-
-
-
-
- - - -
没有相关数据
- - - - {{if !empty($list)}} - {{$page_html}} - {{/if}} - -
-
- - - -{{include file="public/footer" /}} - \ No newline at end of file diff --git a/public/static/admin/default/css/alipayLifeuser.css b/public/static/admin/default/css/alipayLifeuser.css deleted file mode 100755 index 150222433..000000000 --- a/public/static/admin/default/css/alipayLifeuser.css +++ /dev/null @@ -1,18 +0,0 @@ -/** - * 列表 - */ -.form-keyword { width: 55% !important; display: initial !important; } -.more-submit input { display: none; } -.param-where, .param-date input { display: initial !important; } -@media only screen and (max-width: 641px) { - .param-where { width: 100% !important; margin-left: 0px !important; } - .param-date input { width: 47% !important; } -} -@media only screen and (min-width: 641px) { - .param-where { width: 32% !important; float: left; } - .param-date input { width: 45% !important; } - .param-where:nth-child(1), .param-where:nth-child(4) { margin-left: 0px !important; } -} -@media only screen and (max-width: 321px) { - .view-operation button { margin: 2px 0px; } -} \ No newline at end of file diff --git a/public/static/admin/default/css/alipaylife.css b/public/static/admin/default/css/alipaylife.css deleted file mode 100755 index f7a0912b2..000000000 --- a/public/static/admin/default/css/alipaylife.css +++ /dev/null @@ -1,19 +0,0 @@ -/** - * 列表 - */ -.form-keyword { width: 55% !important; display: initial !important; } -.more-submit input { display: none; } -.category-row { width: 30%; } -.param-where, .param-date input { display: initial !important; } -@media only screen and (max-width: 641px) { - .param-where { width: 100% !important; margin-left: 0px !important; } - .param-date input { width: 47% !important; } -} -@media only screen and (min-width: 641px) { - .param-where { width: 32% !important; float: left; } - .param-date input { width: 45% !important; } - .param-where:nth-child(1), .param-where:nth-child(4) { margin-left: 0px !important; } -} -@media only screen and (max-width: 321px) { - .view-operation button { margin: 2px 0px; } -} \ No newline at end of file diff --git a/public/static/admin/default/css/alipaylifemenu.css b/public/static/admin/default/css/alipaylifemenu.css deleted file mode 100755 index 3f27fcebe..000000000 --- a/public/static/admin/default/css/alipaylifemenu.css +++ /dev/null @@ -1,93 +0,0 @@ -/** - * 列表 - */ -.form-keyword { width: 55% !important; display: initial !important; } -.more-submit input { display: none; } -.param-where, .param-date input { display: initial !important; } -.alipay-life-row { width: 30%; } -@media only screen and (max-width: 641px) { - .param-where { width: 100% !important; margin-left: 0px !important; } - .param-date input { width: 47% !important; } -} -@media only screen and (min-width: 641px) { - .param-where { width: 32% !important; float: left; } - .param-date input { width: 45% !important; } - .param-where:nth-child(1), .param-where:nth-child(4) { margin-left: 0px !important; } -} -@media only screen and (max-width: 321px) { - .view-operation button { margin: 2px 0px; } -} - -/** - * 详情 - */ -.life-container .life-form-category, .life-container .chosen-container, .life-container .life-form-keywords { - width: 30% !important; -} -.life-container .chosen-container, .life-container .life-form-keywords { - display: -webkit-inline-box !important; -} -.life-container .chosen-single { - width: 100%; -} -.life-container .life-form { - margin-bottom: 2px; -} -.life-list { - overflow: hidden; - margin-bottom: 20px; - position: relative; -} -.life-list .life-items { - width: calc(50% - 50px); - height: 300px; -} -.life-list .life-items .title { - text-align: center; -} -.life-list .life-items .life-content { - border: 1px solid #eee; - height: calc(100% - 25px); - overflow-y: scroll; - overflow-x: hidden; - border-radius: 2px; -} -.life-list .life-items .life-content li { - padding: 5px; - border-style: dotted; - border-color: #eaeaea; - border-width: 1px 0; -} -.life-list .life-items .life-content li:nth-child(2) { - border-top: 0; -} -.life-list .life-items .life-content li i { - cursor: pointer; - padding: 0 10px 0 5px; -} -.life-list .selected-all { - position: absolute; - top: 50%; - left: calc(50% - 30px); -} -.life-container input[name="alipay_life_ids"] { - position: absolute; - left: -1000000px; - top: -1000000px; -} -.life-list i { - color: #888 !important; -} -.am-form-error .life-items .life-content { - border-color: #dd514c; -} -@media only screen and (max-width: 641px) { - .life-container .life-form-category, .life-container .life-form-keywords - { - width: calc(55% - 60px) !important; - display: -webkit-inline-box !important; - } - .life-container .chosen-container { - display: none !important; - } -} \ No newline at end of file diff --git a/public/static/admin/default/css/alipaylifemessage.css b/public/static/admin/default/css/alipaylifemessage.css deleted file mode 100755 index 27a346e6e..000000000 --- a/public/static/admin/default/css/alipaylifemessage.css +++ /dev/null @@ -1,92 +0,0 @@ -/** - * 列表 - */ -.form-keyword { width: 55% !important; display: initial !important; } -.more-submit input { display: none; } -.param-where, .param-date input { display: initial !important; } -@media only screen and (max-width: 641px) { - .param-where { width: 100% !important; margin-left: 0px !important; } - .param-date input { width: 47% !important; } -} -@media only screen and (min-width: 641px) { - .param-where { width: 32% !important; float: left; } - .param-date input { width: 45% !important; } - .param-where:nth-child(1), .param-where:nth-child(4) { margin-left: 0px !important; } -} -@media only screen and (max-width: 321px) { - .view-operation button { margin: 2px 0px; } -} - -/** - * 详情 - */ -.life-container .life-form-category, .life-container .chosen-container, .life-container .life-form-keywords { - width: 30% !important; -} -.life-container .chosen-container, .life-container .life-form-keywords { - display: -webkit-inline-box !important; -} -.life-container .chosen-single { - width: 100%; -} -.life-container .life-form { - margin-bottom: 2px; -} -.life-list { - overflow: hidden; - margin-bottom: 20px; - position: relative; -} -.life-list .life-items { - width: calc(50% - 50px); - height: 300px; -} -.life-list .life-items .title { - text-align: center; -} -.life-list .life-items .life-content { - border: 1px solid #eee; - height: calc(100% - 25px); - overflow-y: scroll; - overflow-x: hidden; - border-radius: 2px; -} -.life-list .life-items .life-content li { - padding: 5px; - border-style: dotted; - border-color: #eaeaea; - border-width: 1px 0; -} -.life-list .life-items .life-content li:nth-child(2) { - border-top: 0; -} -.life-list .life-items .life-content li i { - cursor: pointer; - padding: 0 10px 0 5px; -} -.life-list .selected-all { - position: absolute; - top: 50%; - left: calc(50% - 30px); -} -.life-container input[name="alipay_life_ids"] { - position: absolute; - left: -1000000px; - top: -1000000px; -} -.life-list i { - color: #888 !important; -} -.am-form-error .life-items .life-content { - border-color: #dd514c; -} -@media only screen and (max-width: 641px) { - .life-container .life-form-category, .life-container .life-form-keywords - { - width: calc(55% - 60px) !important; - display: -webkit-inline-box !important; - } - .life-container .chosen-container { - display: none !important; - } -} \ No newline at end of file diff --git a/public/static/admin/default/css/alipaylifestatus.css b/public/static/admin/default/css/alipaylifestatus.css deleted file mode 100755 index 3f27fcebe..000000000 --- a/public/static/admin/default/css/alipaylifestatus.css +++ /dev/null @@ -1,93 +0,0 @@ -/** - * 列表 - */ -.form-keyword { width: 55% !important; display: initial !important; } -.more-submit input { display: none; } -.param-where, .param-date input { display: initial !important; } -.alipay-life-row { width: 30%; } -@media only screen and (max-width: 641px) { - .param-where { width: 100% !important; margin-left: 0px !important; } - .param-date input { width: 47% !important; } -} -@media only screen and (min-width: 641px) { - .param-where { width: 32% !important; float: left; } - .param-date input { width: 45% !important; } - .param-where:nth-child(1), .param-where:nth-child(4) { margin-left: 0px !important; } -} -@media only screen and (max-width: 321px) { - .view-operation button { margin: 2px 0px; } -} - -/** - * 详情 - */ -.life-container .life-form-category, .life-container .chosen-container, .life-container .life-form-keywords { - width: 30% !important; -} -.life-container .chosen-container, .life-container .life-form-keywords { - display: -webkit-inline-box !important; -} -.life-container .chosen-single { - width: 100%; -} -.life-container .life-form { - margin-bottom: 2px; -} -.life-list { - overflow: hidden; - margin-bottom: 20px; - position: relative; -} -.life-list .life-items { - width: calc(50% - 50px); - height: 300px; -} -.life-list .life-items .title { - text-align: center; -} -.life-list .life-items .life-content { - border: 1px solid #eee; - height: calc(100% - 25px); - overflow-y: scroll; - overflow-x: hidden; - border-radius: 2px; -} -.life-list .life-items .life-content li { - padding: 5px; - border-style: dotted; - border-color: #eaeaea; - border-width: 1px 0; -} -.life-list .life-items .life-content li:nth-child(2) { - border-top: 0; -} -.life-list .life-items .life-content li i { - cursor: pointer; - padding: 0 10px 0 5px; -} -.life-list .selected-all { - position: absolute; - top: 50%; - left: calc(50% - 30px); -} -.life-container input[name="alipay_life_ids"] { - position: absolute; - left: -1000000px; - top: -1000000px; -} -.life-list i { - color: #888 !important; -} -.am-form-error .life-items .life-content { - border-color: #dd514c; -} -@media only screen and (max-width: 641px) { - .life-container .life-form-category, .life-container .life-form-keywords - { - width: calc(55% - 60px) !important; - display: -webkit-inline-box !important; - } - .life-container .chosen-container { - display: none !important; - } -} \ No newline at end of file diff --git a/public/static/admin/default/js/alipaylifemenu.js b/public/static/admin/default/js/alipaylifemenu.js deleted file mode 100755 index 5bdf77088..000000000 --- a/public/static/admin/default/js/alipaylifemenu.js +++ /dev/null @@ -1,107 +0,0 @@ -$(function() -{ - // 添加元素到右侧 - function RightElementAdd(value, name) - { - if($('ul.ul-right').find('.items-li-'+value).length == 0) - { - var html = '
  • '+name+'
  • '; - $('ul.ul-right').append(html); - } - - // 右侧数据同步 - RightElementAlipayLife(); - - // 左侧是否还有内容 - if($('ul.ul-left li').length == 0) - { - $('ul.ul-left .table-no').removeClass('none'); - } else { - $('ul.ul-left .table-no').addClass('none'); - } - } - - // 批量-生活号id同步 - function RightElementAlipayLife() - { - var value_all = []; - $('ul.ul-right li').each(function(k, v) - { - value_all[k] = $(this).find('span.name').data('value'); - }); - $('.life-container input[name="alipay_life_ids"]').val(value_all.join(',')).blur(); - - // 右侧是否还有数据 - if($('ul.ul-right li').length == 0) - { - $('ul.ul-right .table-no').removeClass('none'); - } else { - $('ul.ul-right .table-no').addClass('none'); - } - } - // 左侧点击到右侧 - $('ul.ul-left').on('click', 'i.am-icon-angle-right', function() - { - var value = $(this).prev().data('value'); - var name = $(this).prev().text(); - $(this).parent().remove(); - RightElementAdd(value, name); - }); - - // 左侧全部移动到右侧 - $('.selected-all').on('click', function() - { - $('ul.ul-left li').each(function(k, v) - { - var value = $(this).find('span.name').data('value'); - var name = $(this).find('span.name').text(); - $(this).remove(); - RightElementAdd(value, name); - }); - }); - - // 右侧删除 - $('ul.ul-right').on('click', 'i.am-icon-trash-o', function() - { - $(this).parent().remove(); - RightElementAlipayLife(); - }); - - // 生活号搜索 - $('.life-form .search-submit').on('click', function() - { - var category_id = $('.life-form .life-form-category').val(); - var keywords = $('.life-form .life-form-keywords').val(); - console.log(category_id, keywords) - - // ajax请求 - $.ajax({ - url:$('.life-form').data('search-url'), - type:'POST', - dataType:"json", - timeout:10000, - data:{"category_id": category_id, "keywords": keywords}, - success:function(result) - { - if(result.code == 0) - { - var html = ''; - for(var i in result.data) - { - html += '
  • '+result['data'][i]['name']+'
  • '; - } - $('ul.ul-left .table-no').addClass('none'); - $('ul.ul-left li').remove(); - $('ul.ul-left').append(html); - } else { - Prompt(result.msg); - } - }, - error:function() - { - Prompt('网络异常错误'); - } - }); - }); - -}); \ No newline at end of file diff --git a/public/static/admin/default/js/alipaylifemessage.js b/public/static/admin/default/js/alipaylifemessage.js deleted file mode 100755 index 5bdf77088..000000000 --- a/public/static/admin/default/js/alipaylifemessage.js +++ /dev/null @@ -1,107 +0,0 @@ -$(function() -{ - // 添加元素到右侧 - function RightElementAdd(value, name) - { - if($('ul.ul-right').find('.items-li-'+value).length == 0) - { - var html = '
  • '+name+'
  • '; - $('ul.ul-right').append(html); - } - - // 右侧数据同步 - RightElementAlipayLife(); - - // 左侧是否还有内容 - if($('ul.ul-left li').length == 0) - { - $('ul.ul-left .table-no').removeClass('none'); - } else { - $('ul.ul-left .table-no').addClass('none'); - } - } - - // 批量-生活号id同步 - function RightElementAlipayLife() - { - var value_all = []; - $('ul.ul-right li').each(function(k, v) - { - value_all[k] = $(this).find('span.name').data('value'); - }); - $('.life-container input[name="alipay_life_ids"]').val(value_all.join(',')).blur(); - - // 右侧是否还有数据 - if($('ul.ul-right li').length == 0) - { - $('ul.ul-right .table-no').removeClass('none'); - } else { - $('ul.ul-right .table-no').addClass('none'); - } - } - // 左侧点击到右侧 - $('ul.ul-left').on('click', 'i.am-icon-angle-right', function() - { - var value = $(this).prev().data('value'); - var name = $(this).prev().text(); - $(this).parent().remove(); - RightElementAdd(value, name); - }); - - // 左侧全部移动到右侧 - $('.selected-all').on('click', function() - { - $('ul.ul-left li').each(function(k, v) - { - var value = $(this).find('span.name').data('value'); - var name = $(this).find('span.name').text(); - $(this).remove(); - RightElementAdd(value, name); - }); - }); - - // 右侧删除 - $('ul.ul-right').on('click', 'i.am-icon-trash-o', function() - { - $(this).parent().remove(); - RightElementAlipayLife(); - }); - - // 生活号搜索 - $('.life-form .search-submit').on('click', function() - { - var category_id = $('.life-form .life-form-category').val(); - var keywords = $('.life-form .life-form-keywords').val(); - console.log(category_id, keywords) - - // ajax请求 - $.ajax({ - url:$('.life-form').data('search-url'), - type:'POST', - dataType:"json", - timeout:10000, - data:{"category_id": category_id, "keywords": keywords}, - success:function(result) - { - if(result.code == 0) - { - var html = ''; - for(var i in result.data) - { - html += '
  • '+result['data'][i]['name']+'
  • '; - } - $('ul.ul-left .table-no').addClass('none'); - $('ul.ul-left li').remove(); - $('ul.ul-left').append(html); - } else { - Prompt(result.msg); - } - }, - error:function() - { - Prompt('网络异常错误'); - } - }); - }); - -}); \ No newline at end of file diff --git a/public/static/admin/default/js/alipaylifestatus.js b/public/static/admin/default/js/alipaylifestatus.js deleted file mode 100755 index 5bdf77088..000000000 --- a/public/static/admin/default/js/alipaylifestatus.js +++ /dev/null @@ -1,107 +0,0 @@ -$(function() -{ - // 添加元素到右侧 - function RightElementAdd(value, name) - { - if($('ul.ul-right').find('.items-li-'+value).length == 0) - { - var html = '
  • '+name+'
  • '; - $('ul.ul-right').append(html); - } - - // 右侧数据同步 - RightElementAlipayLife(); - - // 左侧是否还有内容 - if($('ul.ul-left li').length == 0) - { - $('ul.ul-left .table-no').removeClass('none'); - } else { - $('ul.ul-left .table-no').addClass('none'); - } - } - - // 批量-生活号id同步 - function RightElementAlipayLife() - { - var value_all = []; - $('ul.ul-right li').each(function(k, v) - { - value_all[k] = $(this).find('span.name').data('value'); - }); - $('.life-container input[name="alipay_life_ids"]').val(value_all.join(',')).blur(); - - // 右侧是否还有数据 - if($('ul.ul-right li').length == 0) - { - $('ul.ul-right .table-no').removeClass('none'); - } else { - $('ul.ul-right .table-no').addClass('none'); - } - } - // 左侧点击到右侧 - $('ul.ul-left').on('click', 'i.am-icon-angle-right', function() - { - var value = $(this).prev().data('value'); - var name = $(this).prev().text(); - $(this).parent().remove(); - RightElementAdd(value, name); - }); - - // 左侧全部移动到右侧 - $('.selected-all').on('click', function() - { - $('ul.ul-left li').each(function(k, v) - { - var value = $(this).find('span.name').data('value'); - var name = $(this).find('span.name').text(); - $(this).remove(); - RightElementAdd(value, name); - }); - }); - - // 右侧删除 - $('ul.ul-right').on('click', 'i.am-icon-trash-o', function() - { - $(this).parent().remove(); - RightElementAlipayLife(); - }); - - // 生活号搜索 - $('.life-form .search-submit').on('click', function() - { - var category_id = $('.life-form .life-form-category').val(); - var keywords = $('.life-form .life-form-keywords').val(); - console.log(category_id, keywords) - - // ajax请求 - $.ajax({ - url:$('.life-form').data('search-url'), - type:'POST', - dataType:"json", - timeout:10000, - data:{"category_id": category_id, "keywords": keywords}, - success:function(result) - { - if(result.code == 0) - { - var html = ''; - for(var i in result.data) - { - html += '
  • '+result['data'][i]['name']+'
  • '; - } - $('ul.ul-left .table-no').addClass('none'); - $('ul.ul-left li').remove(); - $('ul.ul-left').append(html); - } else { - Prompt(result.msg); - } - }, - error:function() - { - Prompt('网络异常错误'); - } - }); - }); - -}); \ No newline at end of file