mirror of
https://gitee.com/zongzhige/shopxo.git
synced 2026-06-28 18:16:39 +08:00
alipay life
This commit is contained in:
185
service/Application/Admin/Controller/AlipayLifeCategoryController.class.php
Executable file
185
service/Application/Admin/Controller/AlipayLifeCategoryController.class.php
Executable file
@ -0,0 +1,185 @@
|
||||
<?php
|
||||
|
||||
namespace Admin\Controller;
|
||||
|
||||
/**
|
||||
* 生活号分类管理
|
||||
* @author Devil
|
||||
* @blog http://gong.gg/
|
||||
* @version 0.0.1
|
||||
* @datetime 2016-12-01T21:51:08+0800
|
||||
*/
|
||||
class AlipayLifeCategoryController extends CommonController
|
||||
{
|
||||
/**
|
||||
* [_initialize 前置操作-继承公共前置方法]
|
||||
* @author Devil
|
||||
* @blog http://gong.gg/
|
||||
* @version 0.0.1
|
||||
* @datetime 2016-12-03T12:39:08+0800
|
||||
*/
|
||||
public function _initialize()
|
||||
{
|
||||
// 调用父类前置方法
|
||||
parent::_initialize();
|
||||
|
||||
// 登录校验
|
||||
$this->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', L('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(L('common_unauthorized_access'));
|
||||
}
|
||||
|
||||
// 获取数据
|
||||
$field = array('id', 'name', 'sort', 'is_enable');
|
||||
$data = M('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'] = U('Admin/AlipayLifeCategory/GetNodeSon', array('id'=>$v['id']));
|
||||
$data[$k]['delete_url'] = U('Admin/AlipayLifeCategory/Delete');
|
||||
$data[$k]['json'] = json_encode($v);
|
||||
}
|
||||
}
|
||||
$msg = empty($data) ? L('common_not_data_tips') : L('common_operation_success');
|
||||
$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 (M('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(L('common_unauthorized_access'));
|
||||
}
|
||||
|
||||
// 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(L('common_operation_add_success'));
|
||||
} else {
|
||||
$this->ajaxReturn(L('common_operation_add_error'), -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(L('common_operation_edit_success'));
|
||||
} else {
|
||||
$this->ajaxReturn(L('common_operation_edit_error'), -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(L('common_unauthorized_access'));
|
||||
}
|
||||
|
||||
$m = D('AlipayLifeCategory');
|
||||
if($m->create($_POST, 5))
|
||||
{
|
||||
if($m->delete(I('id')))
|
||||
{
|
||||
$this->ajaxReturn(L('common_operation_delete_success'));
|
||||
} else {
|
||||
$this->ajaxReturn(L('common_operation_delete_error'), -100);
|
||||
}
|
||||
} else {
|
||||
$this->ajaxReturn($m->getError(), -1);
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
@ -0,0 +1,348 @@
|
||||
<?php
|
||||
|
||||
namespace Admin\Controller;
|
||||
|
||||
/**
|
||||
* 生活号管理
|
||||
* @author Devil
|
||||
* @blog http://gong.gg/
|
||||
* @version 0.0.1
|
||||
* @datetime 2016-12-01T21:51:08+0800
|
||||
*/
|
||||
class AlipayLifeController extends CommonController
|
||||
{
|
||||
/**
|
||||
* [_initialize 前置操作-继承公共前置方法]
|
||||
* @author Devil
|
||||
* @blog http://gong.gg/
|
||||
* @version 0.0.1
|
||||
* @datetime 2016-12-03T12:39:08+0800
|
||||
*/
|
||||
public function _initialize()
|
||||
{
|
||||
// 调用父类前置方法
|
||||
parent::_initialize();
|
||||
|
||||
// 登录校验
|
||||
$this->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);
|
||||
|
||||
// 模型对象
|
||||
$m = M('AlipayLife');
|
||||
|
||||
// 条件
|
||||
$where = $this->GetIndexWhere();
|
||||
|
||||
// 分页
|
||||
$number = MyC('admin_page_number');
|
||||
$page_param = array(
|
||||
'number' => $number,
|
||||
'total' => $m->alias('a')->join('INNER JOIN __ALIPAY_LIFE_CATEGORY_JOIN__ AS cj ON a.id=cj.alipay_life_id')->where($where)->count('DISTINCT a.id'),
|
||||
'where' => $param,
|
||||
'url' => U('Admin/AlipayLife/Index'),
|
||||
);
|
||||
$page = new \Library\Page($page_param);
|
||||
|
||||
// 获取列表
|
||||
$list = $m->alias('a')->field('a.*')->join('INNER JOIN __ALIPAY_LIFE_CATEGORY_JOIN__ AS cj ON a.id=cj.alipay_life_id')->where($where)->limit($page->GetPageStarNumber(), $number)->order('a.id desc')->group('a.id')->select();
|
||||
$list = $this->SetDataHandle($list);
|
||||
|
||||
// 参数
|
||||
$this->assign('param', $param);
|
||||
|
||||
// 分页
|
||||
$this->assign('page_html', $page->GetPageHtml());
|
||||
|
||||
// 是否上下架
|
||||
$this->assign('common_goods_is_shelves_list', L('common_goods_is_shelves_list'));
|
||||
|
||||
// 生活号分类
|
||||
$alipay_life_category = M('AlipayLifeCategory')->where(['is_enable'=>1])->field('id,name')->select();
|
||||
$this->assign('alipay_life_category', $alipay_life_category);
|
||||
|
||||
// 数据列表
|
||||
$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_is_enable_tips = L('common_is_enable_tips');
|
||||
foreach($data as &$v)
|
||||
{
|
||||
// 分类名称
|
||||
$category_all = M('AlipayLifeCategoryJoin')->where(['alipay_life_id'=>$v['id']])->getField('alipay_life_category_id', true);
|
||||
$v['alipay_life_category_text'] = M('AlipayLifeCategory')->where(['id'=>['in', $category_all]])->getField('name', true);
|
||||
|
||||
// logo
|
||||
$v['logo'] = empty($v['logo']) ? '' : C('IMAGE_HOST').$v['logo'];
|
||||
|
||||
// 添加时间
|
||||
$v['add_time_text'] = date('Y-m-d H:i:s', $v['add_time']);
|
||||
|
||||
// 更新时间
|
||||
$v['upd_time_text'] = 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['a.name'] = array('like', '%'.I('keyword').'%');
|
||||
}
|
||||
|
||||
// 是否更多条件
|
||||
if(I('is_more', 0) == 1)
|
||||
{
|
||||
if(I('is_shelves', -1) > -1)
|
||||
{
|
||||
$where['a.is_shelves'] = intval(I('is_shelves', 0));
|
||||
}
|
||||
if(I('alipay_life_category_id', -1) > -1)
|
||||
{
|
||||
$where['cj.alipay_life_category_id'] = intval(I('alipay_life_category_id', 0));
|
||||
}
|
||||
|
||||
// 表达式
|
||||
if(!empty($_REQUEST['time_start']))
|
||||
{
|
||||
$where['a.add_time'][] = array('gt', strtotime(I('time_start')));
|
||||
}
|
||||
if(!empty($_REQUEST['time_end']))
|
||||
{
|
||||
$where['a.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() : M('AlipayLife')->find(I('id'));
|
||||
|
||||
// 获取分类关联数据
|
||||
$data['category_all'] = M('AlipayLifeCategoryJoin')->where(['alipay_life_id'=>$data['id']])->getField('alipay_life_category_id', true);
|
||||
$this->assign('data', $data);
|
||||
|
||||
// 是否上下架
|
||||
$this->assign('common_goods_is_shelves_list', L('common_goods_is_shelves_list'));
|
||||
|
||||
// 生活号分类
|
||||
$alipay_life_category = M('AlipayLifeCategory')->where(['is_enable'=>1])->field('id,name')->select();
|
||||
$this->assign('alipay_life_category', $alipay_life_category);
|
||||
|
||||
// 参数
|
||||
$this->assign('param', array_merge($_POST, $_GET));
|
||||
|
||||
$this->display('SaveInfo');
|
||||
}
|
||||
|
||||
/**
|
||||
* [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(L('common_unauthorized_access'));
|
||||
}
|
||||
|
||||
// 图片
|
||||
$this->ImagesSave('logo', 'file_logo', 'alipay_life');
|
||||
|
||||
// id为空则表示是新增
|
||||
$m = D('AlipayLife');
|
||||
|
||||
// 公共额外数据处理
|
||||
$_POST['is_shelves'] = intval(I('is_shelves', 0));
|
||||
|
||||
// 开启事务
|
||||
$m->startTrans();
|
||||
|
||||
// 分类
|
||||
$category_m = M('AlipayLifeCategoryJoin');
|
||||
if(empty($_POST['id']))
|
||||
{
|
||||
$type = 1;
|
||||
} else {
|
||||
$type = 2;
|
||||
$category_m->where(['id'=>I('id')])->delete();
|
||||
}
|
||||
|
||||
$status = false;
|
||||
$msg = '';
|
||||
$alipay_life_id = I('id', 0);
|
||||
if($m->create($_POST, $type))
|
||||
{
|
||||
// 额外数据处理
|
||||
$m->upd_time = time();
|
||||
$m->name = I('name');
|
||||
$m->appid = I('appid');
|
||||
$m->rsa_public = I('rsa_public');
|
||||
$m->rsa_private = I('rsa_private');
|
||||
$m->out_rsa_public = I('out_rsa_public');
|
||||
|
||||
if($type == 1)
|
||||
{
|
||||
// 写入数据库
|
||||
$m->add_time = time();
|
||||
$alipay_life_id = $m->add();
|
||||
if($alipay_life_id)
|
||||
{
|
||||
$status = true;
|
||||
$msg = L('common_operation_add_success');
|
||||
} else {
|
||||
$msg = L('common_operation_add_error');
|
||||
}
|
||||
} else {
|
||||
// 更新数据库
|
||||
if($m->where(array('id'=>$alipay_life_id))->save())
|
||||
{
|
||||
$status = true;
|
||||
$msg = L('common_operation_edit_success');
|
||||
} else {
|
||||
$msg = L('common_operation_edit_error');
|
||||
}
|
||||
}
|
||||
} else {
|
||||
$msg = $m->getError();
|
||||
}
|
||||
|
||||
// 分类处理
|
||||
if($status === true)
|
||||
{
|
||||
$count = 0;
|
||||
$all = explode(',', I('alipay_life_category_id'));
|
||||
foreach($all as $v)
|
||||
{
|
||||
if($category_m->add(['alipay_life_id'=>$alipay_life_id, 'alipay_life_category_id'=>$v, 'add_time'=>time()]))
|
||||
{
|
||||
$count++;
|
||||
}
|
||||
}
|
||||
if($count < count($all))
|
||||
{
|
||||
// 回滚事务
|
||||
$m->rollback();
|
||||
|
||||
$this->ajaxReturn(L('alipay_life_save_category_error'), -10);
|
||||
}
|
||||
} else {
|
||||
// 回滚事务
|
||||
$m->rollback();
|
||||
$this->ajaxReturn($msg, -100);
|
||||
}
|
||||
|
||||
// 回滚事务
|
||||
$m->commit();
|
||||
$this->ajaxReturn($msg, 0);
|
||||
}
|
||||
|
||||
/**
|
||||
* [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(L('common_unauthorized_access'));
|
||||
}
|
||||
|
||||
$m = D('AlipayLife');
|
||||
if($m->create($_POST, 5))
|
||||
{
|
||||
$id = I('id');
|
||||
|
||||
// 删除
|
||||
if($m->delete($id))
|
||||
{
|
||||
$this->ajaxReturn(L('common_operation_delete_success'));
|
||||
} else {
|
||||
$this->ajaxReturn(L('common_operation_delete_error'), -100);
|
||||
}
|
||||
} else {
|
||||
$this->ajaxReturn($m->getError(), -1);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* [StatusUpdate 状态更新]
|
||||
* @author Devil
|
||||
* @blog http://gong.gg/
|
||||
* @version 0.0.1
|
||||
* @datetime 2017-01-12T22:23:06+0800
|
||||
*/
|
||||
public function StatusUpdate()
|
||||
{
|
||||
// 参数
|
||||
if(empty($_POST['id']) || !isset($_POST['state']))
|
||||
{
|
||||
$this->ajaxReturn(L('common_param_error'), -1);
|
||||
}
|
||||
|
||||
// 数据更新
|
||||
if(M('AlipayLife')->where(array('id'=>I('id')))->save(array('is_shelves'=>I('state'))))
|
||||
{
|
||||
$this->ajaxReturn(L('common_operation_edit_success'));
|
||||
} else {
|
||||
$this->ajaxReturn(L('common_operation_edit_error'), -100);
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
39
service/Application/Admin/Lang/zh-cn/alipaylife.php
Executable file
39
service/Application/Admin/Lang/zh-cn/alipaylife.php
Executable file
@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* 模块语言包-生活号
|
||||
* @author Devil
|
||||
* @blog http://gong.gg/
|
||||
* @version 0.0.1
|
||||
* @datetime 2016-12-01T21:51:08+0800
|
||||
*/
|
||||
return array(
|
||||
// 添加/编辑
|
||||
'alipay_life_add_name' => '生活号添加',
|
||||
'alipay_life_edit_name' => '生活号编辑',
|
||||
|
||||
'alipay_life_category_id_text' => '生活号分类',
|
||||
'alipay_life_category_id_format' => '请选择生活号分类',
|
||||
|
||||
'alipay_life_name_text' => '名称',
|
||||
'alipay_life_name_format' => '名称格式 2~30 个字符',
|
||||
|
||||
'alipay_life_appid_text' => 'appid',
|
||||
'alipay_life_appid_format' => 'appid格式 1~60 个字符',
|
||||
|
||||
'alipay_life_rsa_public_text' => '应用公钥',
|
||||
'alipay_life_rsa_public_format' => '应用公钥格式 1~2000 个字符',
|
||||
|
||||
'alipay_life_rsa_private_text' => '应用私钥',
|
||||
'alipay_life_rsa_private_format' => '应用私钥格式 1~2000 个字符',
|
||||
|
||||
'alipay_life_out_rsa_public_text' => '支付宝公钥',
|
||||
'alipay_life_out_rsa_public_format' => '支付宝公钥格式 1~2000 个字符',
|
||||
|
||||
'alipay_life_logo_text' => 'LOGO',
|
||||
'alipay_life_logo_format' => '请上传LOGO图片',
|
||||
|
||||
'alipay_life_is_shelves_text' => '上下架',
|
||||
'alipay_life_save_category_error' => '分类添加失败',
|
||||
);
|
||||
?>
|
||||
15
service/Application/Admin/Lang/zh-cn/alipaylifecategory.php
Executable file
15
service/Application/Admin/Lang/zh-cn/alipaylifecategory.php
Executable file
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* 模块语言包-生活号分类
|
||||
* @author Devil
|
||||
* @blog http://gong.gg/
|
||||
* @version 0.0.1
|
||||
* @datetime 2016-12-01T21:51:08+0800
|
||||
*/
|
||||
return array(
|
||||
// 添加/编辑
|
||||
'alipay_life_category_add_name' => '生活号分类添加',
|
||||
'alipay_life_category_edit_name' => '生活号分类编辑',
|
||||
);
|
||||
?>
|
||||
38
service/Application/Admin/Model/AlipayLifeCategoryModel.class.php
Executable file
38
service/Application/Admin/Model/AlipayLifeCategoryModel.class.php
Executable file
@ -0,0 +1,38 @@
|
||||
<?php
|
||||
|
||||
namespace Admin\Model;
|
||||
use Think\Model;
|
||||
|
||||
/**
|
||||
* 生活号分类模型
|
||||
* @author Devil
|
||||
* @blog http://gong.gg/
|
||||
* @version 0.0.1
|
||||
* @datetime 2016-12-01T21:51:08+0800
|
||||
*/
|
||||
class AlipayLifeCategoryModel extends CommonModel
|
||||
{
|
||||
// 数据自动校验
|
||||
protected $_validate = array(
|
||||
// 添加,编辑
|
||||
array('name', '2,16', '{%common_name_format}', 1, 'length', 3),
|
||||
array('is_enable', array(0,1), '{%common_enable_tips}', 1, 'in', 3),
|
||||
array('sort', 'CheckSort', '{%common_sort_error}', 1, 'function', 3),
|
||||
|
||||
// 删除校验是否存在子级
|
||||
array('id', 'IsExistSon', '{%common_is_exist_son_error}', 1, 'callback', 5),
|
||||
);
|
||||
|
||||
/**
|
||||
* [IsExistSon 校验节点下是否存在子级数据]
|
||||
* @author Devil
|
||||
* @blog http://gong.gg/
|
||||
* @version 0.0.1
|
||||
* @datetime 2016-12-10T14:09:40+0800
|
||||
*/
|
||||
public function IsExistSon()
|
||||
{
|
||||
return ($this->db(0)->where(array('pid'=>I('id')))->count() == 0);
|
||||
}
|
||||
}
|
||||
?>
|
||||
27
service/Application/Admin/Model/AlipayLifeModel.class.php
Executable file
27
service/Application/Admin/Model/AlipayLifeModel.class.php
Executable file
@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
namespace Admin\Model;
|
||||
use Think\Model;
|
||||
|
||||
/**
|
||||
* 生活号模型
|
||||
* @author Devil
|
||||
* @blog http://gong.gg/
|
||||
* @version 0.0.1
|
||||
* @datetime 2016-12-01T21:51:08+0800
|
||||
*/
|
||||
class AlipayLifeModel extends CommonModel
|
||||
{
|
||||
// 数据自动校验
|
||||
protected $_validate = array(
|
||||
// 添加,编辑
|
||||
array('logo', '0,255', '{%alipay_life_logo_format}', 1, 'length', 3),
|
||||
array('name', '2,30', '{%alipay_life_name_format}', 1, 'length', 3),
|
||||
array('appid', '1,60', '{%alipay_life_appid_format}', 1, 'length', 3),
|
||||
array('rsa_public', '1,2000', '{%alipay_life_rsa_public_format}', 1, 'length', 3),
|
||||
array('rsa_private', '1,2000', '{%alipay_life_rsa_private_format}', 1, 'length', 3),
|
||||
array('out_rsa_public', '1,2000', '{%alipay_life_out_rsa_public_format}', 1, 'length', 3),
|
||||
array('alipay_life_category_id', 'require', '{%alipay_life_category_id_format}', 1, '', 3),
|
||||
);
|
||||
}
|
||||
?>
|
||||
107
service/Application/Admin/View/Default/AlipayLife/Index.html
Executable file
107
service/Application/Admin/View/Default/AlipayLife/Index.html
Executable file
@ -0,0 +1,107 @@
|
||||
<include file="Public/Header" />
|
||||
|
||||
<!-- right content start -->
|
||||
<div class="content-right">
|
||||
<div class="content">
|
||||
<!-- form start -->
|
||||
<form class="am-form view-list" action="{{:U('Admin/AlipayLife/Index')}}" method="POST">
|
||||
<div class="am-g">
|
||||
<input type="text" class="am-radius form-keyword" placeholder="{{:L('alipay_life_name_text')}}" name="keyword" <present name="param['keyword']"> value="{{$param.keyword}}"</present> />
|
||||
<button type="submit" class="am-btn am-btn-secondary am-btn-sm am-radius form-submit">{{:L('common_operation_query')}}</button>
|
||||
<label class="fs-12 m-l-5 c-p fw-100 more-submit">
|
||||
{{:L('common_more_screening')}}
|
||||
<input type="checkbox" name="is_more" value="1" id="is_more" <if condition="isset($param['is_more']) and $param['is_more'] eq 1">checked</if> />
|
||||
<i class="am-icon-angle-down"></i>
|
||||
</label>
|
||||
|
||||
<div class="more-where <if condition="!isset($param['is_more']) or $param['is_more'] neq 1">none</if>">
|
||||
<select name="is_shelves" class="am-radius c-p m-t-10 m-l-5 param-where">
|
||||
<option value="-1">{{:L('alipay_life_is_shelves_text')}}</option>
|
||||
<foreach name="common_goods_is_shelves_list" item="v">
|
||||
<option value="{{$v.id}}" <if condition="isset($param['is_shelves']) and $param['is_shelves'] eq $v['id']">selected</if>>{{$v.name}}</option>
|
||||
</foreach>
|
||||
</select>
|
||||
<select name="alipay_life_category_id" class="am-radius c-p m-t-10 m-l-5 param-where">
|
||||
<option value="">{{:L('alipay_life_category_id_text')}}</option>
|
||||
<foreach name="alipay_life_category" item="v">
|
||||
<option value="{{$v.id}}" <if condition="isset($param['alipay_life_category_id']) and $param['alipay_life_category_id'] eq $v['id']">selected</if>>{{$v.name}}</option>
|
||||
</foreach>
|
||||
</select>
|
||||
<div class="param-date param-where m-l-5">
|
||||
<input type="text" name="time_start" class="Wdate am-radius m-t-10" placeholder="{{:L('common_time_start_name')}}" onclick="WdatePicker({firstDayOfWeek:1,dateFmt:'yyyy-MM-dd HH:mm:ss'})" <if condition="isset($param['time_start'])">value="{{$param.time_start}}"</if>/>
|
||||
<span>~</span>
|
||||
<input type="text" class="Wdate am-radius m-t-10" placeholder="{{:L('common_time_end_name')}}" name="time_end" onclick="WdatePicker({firstDayOfWeek:1,dateFmt:'yyyy-MM-dd HH:mm:ss'})" <if condition="isset($param['time_end'])">value="{{$param.time_end}}"</if>/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<!-- form end -->
|
||||
|
||||
<!-- operation start -->
|
||||
<div class="am-g m-t-15">
|
||||
<a href="{{:U('Admin/AlipayLife/SaveInfo')}}" class="am-btn am-btn-secondary am-radius am-btn-xs am-icon-plus"> {{:L('common_operation_add')}}</a>
|
||||
</div>
|
||||
<!-- operation end -->
|
||||
|
||||
<!-- list start -->
|
||||
<table class="am-table am-table-striped am-table-hover am-text-middle m-t-10">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{:L('alipay_life_name_text')}}</th>
|
||||
<th class="am-hide-sm-only">{{:L('alipay_life_logo_text')}}</th>
|
||||
<th>{{:L('alipay_life_appid_text')}}</th>
|
||||
<th class="am-hide-sm-only category-row">{{:L('alipay_life_category_id_text')}}</th>
|
||||
<th>{{:L('alipay_life_is_shelves_text')}}</th>
|
||||
<th class="am-hide-sm-only">{{:L('common_create_time_name')}}</th>
|
||||
<th>{{:L('common_operation_name')}}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<if condition="!empty($list)">
|
||||
<foreach name="list" item="v">
|
||||
<tr id="data-list-{{$v.id}}" <if condition="$v['is_shelves'] eq 0">class="am-active"</if>>
|
||||
<td>{{$v.name}}</td>
|
||||
<td class="am-hide-sm-only">
|
||||
<if condition="!empty($v['logo'])">
|
||||
<a href="{{$v['logo']}}" target="_blank">
|
||||
<img src="{{$v['logo']}}" class="am-radius" width="100" />
|
||||
</a>
|
||||
<else />
|
||||
<span class="cr-ddd">{{:L('common_on_fill_in_images')}}</span>
|
||||
</if>
|
||||
</td>
|
||||
<td>{{$v.appid}}</td>
|
||||
<td class="am-hide-sm-only">{{:implode(',', $v['alipay_life_category_text'])}}</td>
|
||||
<td>
|
||||
<a href="javascript:;" class="am-icon-btn am-icon-check submit-state <if condition="$v['is_shelves'] eq 1">am-success<else />am-default</if>" data-url="{{:U('Admin/AlipayLife/StatusUpdate')}}" data-id="{{$v.id}}" data-state="{{$v['is_shelves']}}" data-is-update-status="1"></a>
|
||||
</td>
|
||||
<td class="am-hide-sm-only">{{$v.add_time_text}}</td>
|
||||
<td class="view-operation">
|
||||
<a href="{{:U('Admin/AlipayLife/SaveInfo', array('id'=>$v['id']))}}">
|
||||
<button class="am-btn am-btn-default am-btn-xs am-radius am-icon-edit"> {{:L('common_operation_edit')}}</button>
|
||||
</a>
|
||||
<if condition="$v['is_shelves'] eq 0">
|
||||
<button class="am-btn am-btn-default am-btn-xs am-radius am-icon-trash-o submit-delete" data-url="{{:U('Admin/AlipayLife/Delete')}}" data-id="{{$v.id}}"> {{:L('common_operation_delete')}}</button>
|
||||
</if>
|
||||
</td>
|
||||
</tr>
|
||||
</foreach>
|
||||
<else />
|
||||
<tr><td colspan="7" class="table-no">{{:L('common_not_data_tips')}}</td></tr>
|
||||
</if>
|
||||
</tbody>
|
||||
</table>
|
||||
<!-- list end -->
|
||||
|
||||
<!-- page start -->
|
||||
<if condition="!empty($list)">
|
||||
{{$page_html}}
|
||||
</if>
|
||||
<!-- page end -->
|
||||
</div>
|
||||
</div>
|
||||
<!-- right content end -->
|
||||
|
||||
<!-- footer start -->
|
||||
<include file="Public/Footer" />
|
||||
<!-- footer end -->
|
||||
77
service/Application/Admin/View/Default/AlipayLife/SaveInfo.html
Executable file
77
service/Application/Admin/View/Default/AlipayLife/SaveInfo.html
Executable file
@ -0,0 +1,77 @@
|
||||
<include file="Public/Header" />
|
||||
|
||||
<!-- right content start -->
|
||||
<div class="content-right">
|
||||
<div class="content">
|
||||
<!-- form start -->
|
||||
<form class="am-form form-validation view-save" action="{{:U('Admin/AlipayLife/Save')}}" method="POST" request-type="ajax-url" request-value="{{:U('Admin/AlipayLife/Index')}}" enctype="multipart/form-data">
|
||||
<input type="hidden" name="max_file_size" value="{{:MyC('home_max_limit_image', 2048000)}}" />
|
||||
<legend>
|
||||
<span class="fs-16">
|
||||
<if condition="empty($data['id'])">
|
||||
{{:L('alipay_life_add_name')}}
|
||||
<else />
|
||||
{{:L('alipay_life_edit_name')}}
|
||||
</if>
|
||||
</span>
|
||||
<a href="{{:U('Admin/AlipayLife/Index')}}" class="fr fs-14 m-t-5 am-icon-mail-reply"> {{:L('common_operation_back')}}</a>
|
||||
</legend>
|
||||
<div class="am-form-group">
|
||||
<label>{{:L('alipay_life_name_text')}}</label>
|
||||
<input type="text" name="name" placeholder="{{:L('alipay_life_name_text')}}" minlength="2" maxlength="30" data-validation-message="{{:L('alipay_life_name_format')}}" class="am-radius" <notempty name="data"> value="{{$data.name}}"</notempty> required />
|
||||
</div>
|
||||
<div class="am-form-group">
|
||||
<label>{{:L('alipay_life_category_id_text')}}</label>
|
||||
<select name="alipay_life_category_id" class="am-radius c-p chosen-select" multiple="multiple" data-placeholder="{{:L('common_select_can_choose')}}" data-validation-message="{{:L('alipay_life_category_id_format')}}" required>
|
||||
<foreach name="alipay_life_category" item="v">
|
||||
<option value="{{$v.id}}" <if condition="!empty($data['category_all']) and in_array($v['id'], $data['category_all'])">selected</if>>{{$v.name}}</option>
|
||||
</foreach>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="am-form-group">
|
||||
<label>{{:L('alipay_life_appid_text')}}</label>
|
||||
<input type="text" name="appid" placeholder="{{:L('alipay_life_appid_text')}}" data-validation-message="{{:L('alipay_life_appid_format')}}" class="am-radius" minlength="1" maxlength="60" <notempty name="data"> value="{{$data.appid}}"</notempty> required />
|
||||
</div>
|
||||
|
||||
<div class="am-form-group am-form-file">
|
||||
<label class="block">{{:L('alipay_life_logo_text')}}</label>
|
||||
<button type="button" class="am-btn am-btn-default am-btn-sm am-radius">
|
||||
<i class="am-icon-cloud-upload"></i> {{:L('common_select_images_text')}}</button>
|
||||
<input type="text" name="logo" class="am-radius js-choice-one original-images-url original-icon-images-url" data-choice-one-to='input[name="file_logo"]' <notempty name="data"> value="{{$data.logo}}"</notempty>" data-validation-message="{{:L('common_select_images_tips')}}" readonly="readonly" />
|
||||
<i class="am-icon-trash-o am-icon-sm original-images-url-delete" data-input-tag="input.original-icon-images-url" data-image-tag="#form-img-icon" data-tips-tag="#form-icon-tips" data-file-tag="input.file_logo-tag"></i>
|
||||
<input type="file" name="file_logo" multiple data-validation-message="{{:L('common_select_images_tips')}}" accept="image/gif,image/jpeg,image/jpg,image/png" class="js-choice-one images-file-event file_logo-tag" data-choice-one-to=".original-icon-images-url" data-tips-tag="#form-icon-tips" data-image-tag="#form-img-icon" />
|
||||
<div id="form-icon-tips" class="m-t-5"></div>
|
||||
<img src="<if condition="!empty($data['logo'])">{{$image_host}}{{$data.logo}}<else />{{$image_host}}/Public/Admin/Default/Images/default-images.png</if>" id="form-img-icon" class="block m-t-5 am-img-thumbnail am-radius" width="100" height="100" data-default="{{$image_host}}/Public/Admin/Default/Images/default-images.png" />
|
||||
</div>
|
||||
|
||||
<div class="am-form-group">
|
||||
<label>{{:L('alipay_life_rsa_public_text')}}</label>
|
||||
<textarea rows="3" name="rsa_public" class="am-radius" placeholder="{{:L('alipay_life_rsa_public_text')}}" data-validation-message="{{:L('alipay_life_rsa_public_format')}}" required><present name="data">{{$data.rsa_public}}</present></textarea>
|
||||
</div>
|
||||
<div class="am-form-group">
|
||||
<label>{{:L('alipay_life_rsa_private_text')}}</label>
|
||||
<textarea rows="3" name="rsa_private" class="am-radius" placeholder="{{:L('alipay_life_rsa_private_text')}}" data-validation-message="{{:L('alipay_life_rsa_private_format')}}" required><present name="data">{{$data.rsa_private}}</present></textarea>
|
||||
</div>
|
||||
<div class="am-form-group">
|
||||
<label>{{:L('alipay_life_out_rsa_public_text')}}</label>
|
||||
<textarea rows="3" name="out_rsa_public" class="am-radius" placeholder="{{:L('alipay_life_out_rsa_public_text')}}" data-validation-message="{{:L('alipay_life_out_rsa_public_format')}}" required><present name="data">{{$data.out_rsa_public}}</present></textarea>
|
||||
</div>
|
||||
|
||||
<div class="am-form-group">
|
||||
<label class="block">{{:L('alipay_life_is_shelves_text')}}</label>
|
||||
<input name="is_shelves" value="1" type="checkbox" data-off-text="{{:L('common_operation_off_is_text')}}" data-on-text="{{:L('common_operation_on_is_text')}}" data-size="xs" data-on-color="success" data-off-color="default" data-handle-width="50" data-am-switch <if condition="(isset($data['is_shelves']) and $data['is_shelves'] eq 1) or !isset($data['is_shelves'])">checked="true"</if> />
|
||||
</div>
|
||||
<div class="am-form-group">
|
||||
<input type="hidden" name="id" <notempty name="data"> value="{{$data.id}}"</notempty> />
|
||||
<button type="submit" class="am-btn am-btn-primary am-radius btn-loading-example am-btn-sm w100" data-am-loading="{loadingText:'{{:L('common_form_loading_tips')}}'}">{{:L('common_operation_save')}}</button>
|
||||
</div>
|
||||
</form>
|
||||
<!-- form end -->
|
||||
</div>
|
||||
</div>
|
||||
<!-- right content end -->
|
||||
|
||||
<!-- footer start -->
|
||||
<include file="Public/Footer" />
|
||||
<!-- footer end -->
|
||||
59
service/Application/Admin/View/Default/AlipayLifeCategory/Index.html
Executable file
59
service/Application/Admin/View/Default/AlipayLifeCategory/Index.html
Executable file
@ -0,0 +1,59 @@
|
||||
<include file="Public/Header" />
|
||||
|
||||
<!-- right content start -->
|
||||
<div class="content-right">
|
||||
<div class="content">
|
||||
<!-- operation start -->
|
||||
<div class="am-g">
|
||||
<button class="am-btn am-btn-secondary am-radius am-btn-xs am-icon-plus tree-submit-add" data-am-modal="{target: '#data-save-win'}"> {{:L('common_operation_add')}}</button>
|
||||
</div>
|
||||
<!-- operation end -->
|
||||
|
||||
<!-- save win start -->
|
||||
<div class="am-popup am-radius" id="data-save-win">
|
||||
<div class="am-popup-inner">
|
||||
<div class="am-popup-hd">
|
||||
<h4 class="am-popup-title" data-add-title="{{:L('alipay_life_category_add_name')}}" data-edit-title="{{:L('alipay_life_category_edit_name')}}">{{:L('alipay_life_category_add_name')}}</h4>
|
||||
<span data-am-modal-close class="am-close">×</span>
|
||||
</div>
|
||||
<div class="am-popup-bd">
|
||||
<!-- form start -->
|
||||
<form class="am-form form-validation admin-save" action="{{:U('Admin/AlipayLifeCategory/Save')}}" method="POST" request-type="ajax-reload" request-value="">
|
||||
<div class="am-form-group">
|
||||
<label>{{:L('common_name_text')}}</label>
|
||||
<input type="text" placeholder="{{:L('common_name_text')}}" name="name" minlength="2" maxlength="16" data-validation-message="{{:L('common_name_format')}}" class="am-radius" required />
|
||||
</div>
|
||||
<div class="am-form-group">
|
||||
<label>{{:L('common_view_sort_title')}}</label>
|
||||
<input type="number" placeholder="{{:L('common_view_sort_title')}}" name="sort" min="0" max="255" data-validation-message="{{:L('common_sort_error')}}" class="am-radius" value="0" required />
|
||||
</div>
|
||||
<include file="Lib/Enable" />
|
||||
<div class="am-form-group">
|
||||
<input type="hidden" name="id" />
|
||||
<button type="submit" class="am-btn am-btn-primary am-radius btn-loading-example am-btn-sm w100" data-am-loading="{loadingText:'{{:L('common_form_loading_tips')}}'}">{{:L('common_operation_save')}}</button>
|
||||
</div>
|
||||
</form>
|
||||
<!-- form end -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- save win end -->
|
||||
|
||||
<!-- list start -->
|
||||
<div id="tree" class="m-t-15">
|
||||
<div class="m-t-30 t-c">
|
||||
<img src="__PUBLIC__/Common/Images/loading.gif" />
|
||||
<p>{{:L('common_form_loading_tips')}}</p>
|
||||
</div>
|
||||
</div>
|
||||
<!-- list end -->
|
||||
</div>
|
||||
</div>
|
||||
<!-- right content end -->
|
||||
|
||||
<!-- footer start -->
|
||||
<include file="Public/Footer" />
|
||||
<!-- footer end -->
|
||||
<script>
|
||||
Tree(0, "{{:U('Admin/AlipayLifeCategory/GetNodeSon')}}", 0);
|
||||
</script>
|
||||
@ -94,7 +94,7 @@
|
||||
</tr>
|
||||
</foreach>
|
||||
<else />
|
||||
<tr><td colspan="20" class="table-no">{{:L('common_not_data_tips')}}</td></tr>
|
||||
<tr><td colspan="7" class="table-no">{{:L('common_not_data_tips')}}</td></tr>
|
||||
</if>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
@ -23,7 +23,7 @@
|
||||
<label class="block">{{:L('common_icon_text')}}</label>
|
||||
<button type="button" class="am-btn am-btn-default am-btn-sm am-radius">
|
||||
<i class="am-icon-cloud-upload"></i> {{:L('common_select_images_text')}}</button>
|
||||
<input type="text" name="icon" class="am-radius js-choice-one original-images-url original-icon-images-url" data-choice-one-to='input[name="file_icon"]' <notempty name="data"> value="{{$data.images_url}}"</notempty>" data-validation-message="{{:L('common_select_images_tips')}}" readonly="readonly" />
|
||||
<input type="text" name="icon" class="am-radius js-choice-one original-images-url original-icon-images-url" data-choice-one-to='input[name="file_icon"]' value="" data-validation-message="{{:L('common_select_images_tips')}}" readonly="readonly" />
|
||||
<i class="am-icon-trash-o am-icon-sm original-images-url-delete" data-input-tag="input.original-icon-images-url" data-image-tag="#form-img-icon" data-tips-tag="#form-icon-tips" data-file-tag="input.file_icon-tag"></i>
|
||||
<input type="file" name="file_icon" multiple data-validation-message="{{:L('common_select_images_tips')}}" accept="image/gif,image/jpeg,image/jpg,image/png" class="js-choice-one images-file-event file_icon-tag" data-choice-one-to=".original-icon-images-url" data-tips-tag="#form-icon-tips" data-image-tag="#form-img-icon" />
|
||||
<div id="form-icon-tips" class="m-t-5"></div>
|
||||
@ -33,7 +33,7 @@
|
||||
<label class="block">{{:L('goods_category_big_images_text')}}</label>
|
||||
<button type="button" class="am-btn am-btn-default am-btn-sm am-radius">
|
||||
<i class="am-icon-cloud-upload"></i> {{:L('common_select_images_text')}}</button>
|
||||
<input type="text" name="big_images" class="am-radius js-choice-one original-images-url original-big-images-url" data-choice-one-to='input[name="file_big_images"]' <notempty name="data"> value="{{$data.big_images}}"</notempty>" data-validation-message="{{:L('common_select_images_tips')}}" readonly="readonly" />
|
||||
<input type="text" name="big_images" class="am-radius js-choice-one original-images-url original-big-images-url" data-choice-one-to='input[name="file_big_images"]' value="" data-validation-message="{{:L('common_select_images_tips')}}" readonly="readonly" />
|
||||
<i class="am-icon-trash-o am-icon-sm original-images-url-delete" data-input-tag=".original-big-images-url" data-image-tag="#form-img-big_images" data-tips-tag="#form-big_images-tips" data-file-tag="input.file_big_images-tag"></i>
|
||||
<input type="file" name="file_big_images" multiple data-validation-message="{{:L('common_select_images_tips')}}" accept="image/gif,image/jpeg,image/jpg,image/png" class="js-choice-one images-file-event file_big_images-tag" data-choice-one-to=".original-big-images-url" data-tips-tag="#form-big_images-tips" data-image-tag="#form-img-big_images" />
|
||||
<div id="form-big_images-tips" class="m-t-5"></div>
|
||||
|
||||
@ -1,3 +1,3 @@
|
||||
<?php
|
||||
//000000000000a:136:{i:41;s:12:"config_index";i:42;s:11:"config_save";i:81;s:10:"site_index";i:103;s:10:"site_index";i:105;s:9:"site_save";i:104;s:9:"sms_index";i:107;s:8:"sms_save";i:219;s:11:"email_index";i:220;s:10:"email_save";i:221;s:15:"email_emailtest";i:199;s:9:"seo_index";i:200;s:8:"seo_save";i:1;s:11:"power_index";i:22;s:11:"admin_index";i:19;s:14:"admin_saveinfo";i:20;s:10:"admin_save";i:21;s:12:"admin_delete";i:4;s:10:"power_role";i:17;s:18:"power_rolesaveinfo";i:18;s:14:"power_rolesave";i:23;s:16:"power_roledelete";i:13;s:11:"power_index";i:15;s:15:"power_powersave";i:16;s:17:"power_powerdelete";i:126;s:10:"user_index";i:127;s:10:"user_index";i:128;s:13:"user_saveinfo";i:129;s:9:"user_save";i:130;s:11:"user_delete";i:146;s:16:"user_excelexport";i:38;s:11:"goods_index";i:39;s:11:"goods_index";i:57;s:14:"goods_saveinfo";i:58;s:10:"goods_save";i:59;s:12:"goods_delete";i:181;s:19:"goods_statusshelves";i:218;s:27:"goods_statushomerecommended";i:201;s:19:"goodscategory_index";i:202;s:18:"goodscategory_save";i:203;s:20:"goodscategory_delete";i:177;s:11:"order_index";i:178;s:11:"order_index";i:179;s:12:"order_delete";i:180;s:12:"order_cancel";i:267;s:14:"order_delivery";i:268;s:13:"order_collect";i:269;s:9:"order_pay";i:213;s:12:"answer_index";i:214;s:12:"answer_index";i:215;s:11:"answer_save";i:216;s:13:"answer_delete";i:217;s:19:"answer_statusupdate";i:222;s:16:"navigation_index";i:223;s:16:"navigation_index";i:226;s:15:"navigation_save";i:227;s:17:"navigation_delete";i:228;s:23:"navigation_statusupdate";i:234;s:16:"customview_index";i:235;s:19:"customview_saveinfo";i:236;s:15:"customview_save";i:237;s:17:"customview_delete";i:238;s:23:"customview_statusupdate";i:239;s:10:"link_index";i:240;s:13:"link_saveinfo";i:241;s:9:"link_save";i:242;s:11:"link_delete";i:243;s:17:"link_statusupdate";i:244;s:11:"theme_index";i:245;s:10:"theme_save";i:246;s:12:"theme_upload";i:247;s:12:"theme_delete";i:252;s:11:"brand_index";i:249;s:11:"brand_index";i:256;s:14:"brand_saveinfo";i:250;s:10:"brand_save";i:257;s:17:"brand_stateupdate";i:251;s:12:"brand_delete";i:253;s:19:"brandcategory_index";i:254;s:18:"brandcategory_save";i:255;s:20:"brandcategory_delete";i:204;s:13:"article_index";i:205;s:13:"article_index";i:206;s:16:"article_saveinfo";i:207;s:12:"article_save";i:208;s:14:"article_delete";i:209;s:20:"article_statusupdate";i:248;s:29:"article_statushomerecommended";i:210;s:21:"articlecategory_index";i:211;s:20:"articlecategory_save";i:212;s:22:"articlecategory_delete";i:162;s:15:"marketing_index";i:163;s:12:"coupon_index";i:164;s:18:"coupon_stateupdate";i:165;s:15:"coupon_saveinfo";i:166;s:11:"coupon_save";i:167;s:11:"coupon_user";i:168;s:13:"coupon_delete";i:169;s:15:"coupon_sendinfo";i:170;s:11:"coupon_send";i:171;s:16:"coupon_userquery";i:182;s:10:"data_index";i:183;s:13:"message_index";i:184;s:14:"message_delete";i:185;s:12:"paylog_index";i:186;s:21:"userintegrallog_index";i:187;s:15:"complaint_index";i:188;s:14:"complaint_save";i:189;s:16:"complaint_delete";i:152;s:15:"resources_index";i:153;s:12:"region_index";i:154;s:11:"region_save";i:155;s:13:"region_delete";i:156;s:13:"express_index";i:157;s:12:"express_save";i:158;s:14:"express_delete";i:172;s:11:"slide_index";i:173;s:14:"slide_saveinfo";i:174;s:10:"slide_save";i:175;s:17:"slide_stateupdate";i:176;s:12:"slide_delete";i:193;s:20:"screeningprice_index";i:194;s:19:"screeningprice_save";i:258;s:21:"screeningprice_delete";i:259;s:13:"payment_index";i:260;s:16:"payment_saveinfo";i:261;s:12:"payment_save";i:262;s:14:"payment_delete";i:263;s:15:"payment_install";i:264;s:20:"payment_statusupdate";i:265;s:17:"payment_uninstall";i:266;s:14:"payment_upload";i:118;s:10:"tool_index";i:119;s:11:"cache_index";i:120;s:16:"cache_siteupdate";i:121;s:20:"cache_templateupdate";i:122;s:18:"cache_moduleupdate";}
|
||||
//000000000000a:151:{i:41;s:12:"config_index";i:42;s:11:"config_save";i:81;s:10:"site_index";i:103;s:10:"site_index";i:105;s:9:"site_save";i:104;s:9:"sms_index";i:107;s:8:"sms_save";i:219;s:11:"email_index";i:220;s:10:"email_save";i:221;s:15:"email_emailtest";i:199;s:9:"seo_index";i:200;s:8:"seo_save";i:1;s:11:"power_index";i:22;s:11:"admin_index";i:19;s:14:"admin_saveinfo";i:20;s:10:"admin_save";i:21;s:12:"admin_delete";i:4;s:10:"power_role";i:17;s:18:"power_rolesaveinfo";i:18;s:14:"power_rolesave";i:23;s:16:"power_roledelete";i:13;s:11:"power_index";i:15;s:15:"power_powersave";i:16;s:17:"power_powerdelete";i:126;s:10:"user_index";i:127;s:10:"user_index";i:128;s:13:"user_saveinfo";i:129;s:9:"user_save";i:130;s:11:"user_delete";i:146;s:16:"user_excelexport";i:38;s:11:"goods_index";i:39;s:11:"goods_index";i:57;s:14:"goods_saveinfo";i:58;s:10:"goods_save";i:59;s:12:"goods_delete";i:181;s:19:"goods_statusshelves";i:218;s:27:"goods_statushomerecommended";i:201;s:19:"goodscategory_index";i:202;s:18:"goodscategory_save";i:203;s:20:"goodscategory_delete";i:177;s:11:"order_index";i:178;s:11:"order_index";i:179;s:12:"order_delete";i:180;s:12:"order_cancel";i:267;s:14:"order_delivery";i:268;s:13:"order_collect";i:269;s:9:"order_pay";i:213;s:12:"answer_index";i:214;s:12:"answer_index";i:215;s:11:"answer_save";i:216;s:13:"answer_delete";i:217;s:19:"answer_statusupdate";i:222;s:16:"navigation_index";i:223;s:16:"navigation_index";i:226;s:15:"navigation_save";i:227;s:17:"navigation_delete";i:228;s:23:"navigation_statusupdate";i:234;s:16:"customview_index";i:235;s:19:"customview_saveinfo";i:236;s:15:"customview_save";i:237;s:17:"customview_delete";i:238;s:23:"customview_statusupdate";i:239;s:10:"link_index";i:240;s:13:"link_saveinfo";i:241;s:9:"link_save";i:242;s:11:"link_delete";i:243;s:17:"link_statusupdate";i:244;s:11:"theme_index";i:245;s:10:"theme_save";i:246;s:12:"theme_upload";i:247;s:12:"theme_delete";i:252;s:11:"brand_index";i:249;s:11:"brand_index";i:256;s:14:"brand_saveinfo";i:250;s:10:"brand_save";i:257;s:17:"brand_stateupdate";i:251;s:12:"brand_delete";i:253;s:19:"brandcategory_index";i:254;s:18:"brandcategory_save";i:255;s:20:"brandcategory_delete";i:270;s:16:"alipaylife_index";i:271;s:16:"alipaylife_index";i:272;s:19:"alipaylife_saveinfo";i:273;s:15:"alipaylife_save";i:284;s:23:"alipaylife_statusupdate";i:274;s:17:"alipaylife_delete";i:281;s:24:"alipaylifecategory_index";i:282;s:23:"alipaylifecategory_save";i:283;s:25:"alipaylifecategory_delete";i:275;s:23:"alipaylifemessage_index";i:276;s:26:"alipaylifemessage_sendinfo";i:277;s:22:"alipaylifemessage_send";i:278;s:24:"alipaylifemessage_delete";i:279;s:20:"alipaylifeuser_index";i:280;s:21:"alipaylifeuser_delete";i:204;s:13:"article_index";i:205;s:13:"article_index";i:206;s:16:"article_saveinfo";i:207;s:12:"article_save";i:208;s:14:"article_delete";i:209;s:20:"article_statusupdate";i:248;s:29:"article_statushomerecommended";i:210;s:21:"articlecategory_index";i:211;s:20:"articlecategory_save";i:212;s:22:"articlecategory_delete";i:162;s:15:"marketing_index";i:163;s:12:"coupon_index";i:164;s:18:"coupon_stateupdate";i:165;s:15:"coupon_saveinfo";i:166;s:11:"coupon_save";i:167;s:11:"coupon_user";i:168;s:13:"coupon_delete";i:169;s:15:"coupon_sendinfo";i:170;s:11:"coupon_send";i:171;s:16:"coupon_userquery";i:182;s:10:"data_index";i:183;s:13:"message_index";i:184;s:14:"message_delete";i:185;s:12:"paylog_index";i:186;s:21:"userintegrallog_index";i:187;s:15:"complaint_index";i:188;s:14:"complaint_save";i:189;s:16:"complaint_delete";i:152;s:15:"resources_index";i:153;s:12:"region_index";i:154;s:11:"region_save";i:155;s:13:"region_delete";i:156;s:13:"express_index";i:157;s:12:"express_save";i:158;s:14:"express_delete";i:172;s:11:"slide_index";i:173;s:14:"slide_saveinfo";i:174;s:10:"slide_save";i:175;s:17:"slide_stateupdate";i:176;s:12:"slide_delete";i:193;s:20:"screeningprice_index";i:194;s:19:"screeningprice_save";i:258;s:21:"screeningprice_delete";i:259;s:13:"payment_index";i:260;s:16:"payment_saveinfo";i:261;s:12:"payment_save";i:262;s:14:"payment_delete";i:263;s:15:"payment_install";i:264;s:20:"payment_statusupdate";i:265;s:17:"payment_uninstall";i:266;s:14:"payment_upload";i:118;s:10:"tool_index";i:119;s:11:"cache_index";i:120;s:16:"cache_siteupdate";i:121;s:20:"cache_templateupdate";i:122;s:18:"cache_moduleupdate";}
|
||||
?>
|
||||
File diff suppressed because one or more lines are too long
19
service/Public/Admin/Default/Css/AlipayLife.css
Executable file
19
service/Public/Admin/Default/Css/AlipayLife.css
Executable file
@ -0,0 +1,19 @@
|
||||
/**
|
||||
* 列表
|
||||
*/
|
||||
.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; }
|
||||
}
|
||||
@ -376,7 +376,7 @@ ul {margin-top:0;}
|
||||
.admin-sidebar-sub li:first-child {border-top:1px solid #dedede;}
|
||||
.admin-sidebar {height:100%;overflow-x:hidden;overflow-y:scroll;-webkit-overflow-scrolling:touch;}
|
||||
@media only screen and (min-width:641px) {
|
||||
.admin-sidebar {display:block;position:static;background:none;width:180px;z-index:1;}
|
||||
.admin-sidebar {display:block;position:static;background:none;width:200px;z-index:1;}
|
||||
.admin-offcanvas-bar {position:static;width:auto;background:none;-webkit-transform:translate3d(0,0,0);-ms-transform:translate3d(0,0,0);transform:translate3d(0,0,0);overflow-y:visible;min-height:100%;}
|
||||
.admin-offcanvas-bar:after {content:none;}
|
||||
}
|
||||
|
||||
4
service/alipay_life_notify.php
Normal file
4
service/alipay_life_notify.php
Normal file
@ -0,0 +1,4 @@
|
||||
<?php
|
||||
|
||||
file_put_contents('./gggggg.txt', json_encode($_GET));
|
||||
file_put_contents('./pppppp.txt', json_encode($_POST));
|
||||
Reference in New Issue
Block a user