@myyzs
        
        2017-10-24T09:27:35.000000Z
        字数 1807
        阅读 25
    配置库:wzs_work_tips、wzs_work_tips_group、wzs_work_tips_img
url:http://host/banner/tip/index 
返回值
{"isSuccess": 1,"message": "获取成功","result": {"normal": [{"id": "101","content": "一无所知的世界,走下去,才有惊喜","create_time": "2017-10-23 09:16:58","update_time": "2017-10-23 09:16:58","is_disabled": "0","group_id": "1"}],"time": [{"id": "201","content": "美好的一天开始了,幸福的味道满满的","create_time": "2017-10-23 09:16:59","update_time": "2017-10-23 09:16:59","is_disabled": "0","group_id": "2"}],"festival": [{"id": "301","content": "年年岁岁,今朝当为贵","create_time": "2017-10-23 09:16:59","update_time": "2017-10-23 09:16:59","is_disabled": "0","group_id": "7"}]},"sub_ticket": ""}
url:http://host/banner/tip/save 
请求方式:POST
{type_id:3,id:123 (新增操作不传或者穿空即可)}
返回值
{"isSuccess": 1,"message": "保存成功",}
url:http://host/banner/tip/del?type_id=xxx&tip_id=xxx&group_id=xxx 
请求方式:GET 
参数说明
| 参数名 | 类型 | 必 填 | 描述 | 
|---|---|---|---|
| type_id | int | 是 | 提示语类型(1-节假日 2-时间段 3-常规) | 
| tip_id | int | 否 | 常规提示,该参数必传 | 
| group_id | 否 | 是 | 节假日、时间段,则该参数必传 | 
返回值
{"isSuccess": 1,"message": "删除成功",}
url:http://host/banner/tip/edit?type_id=xxx&tip_id=xxx&group_id=xxx 
请求方式:GET 
参数说明
| 参数名 | 类型 | 必 填 | 描述 | 
|---|---|---|---|
| type_id | int | 是 | 提示语类型(1-节假日 2-时间段 3-常规) | 
| tip_id | int | 否 | 常规提示,该参数必传 | 
| group_id | 否 | 是 | 节假日、时间段,则该参数必传 | 
返回值(页面渲染方式)
$this->render('add', ['tip'=>$tips, 'group'=>$group_info]);
返回值说明:如果是常规提示,则不包含group节点
url:http://host/banner/tip-bg/index 
返回值
$this->render('index',['list'=>$list]);
url:http://host/banner/tip-bg/save 
请求方式:POST
{id:123 (新增操作不传或者穿空即可)}
返回值
{"isSuccess": 1,"message": "保存成功",}
url:http://host/banner/tip-bg/del?id=xxx 
请求方式:GET 
参数说明
| 参数名 | 类型 | 必 填 | 描述 | 
|---|---|---|---|
| id | int | 是 | 需要删除行的id | 
返回值
{"isSuccess": 1,"message": "删除成功",}
url:http://host/banner/tip-bg/edit?id=xxx 
请求方式:GET 
参数说明
| 参数名 | 类型 | 必 填 | 描述 | 
|---|---|---|---|
| id | int | 是 | 该参数必传 | 
返回值(页面渲染方式)
$this->render('add', ['banner'=>$bg]);
url:http://host/banner/tip-bg/upload 
返回值
{"isSuccess": 1,"message": "上传成功","img_url":"xxxxxxx";}
