|
|
/**
|
|
|
* Created by ping.huang 2016-03-02
|
|
|
*/
|
|
|
|
|
|
//接口主域
|
|
|
exports.domain = require('../config/common.js').domain;
|
|
|
exports.domain ="http://172.16.6.246:8081/platform/";
|
|
|
//路由配置
|
|
|
exports.res = [
|
|
|
{
|
|
|
//排队抽签活动
|
|
|
route: '/activity/drawline/index',
|
|
|
method: 'GET',
|
|
|
view: 'pages/activity/index',
|
|
|
src: '/activity/index',
|
|
|
data: {
|
|
|
gridurl:'/supplier/store/indexPage',
|
|
|
pagetitle:{
|
|
|
level1title:"活动管理",
|
|
|
level2title:"抽奖活动管理",
|
|
|
level3title:"抽奖活动列表"
|
|
|
}
|
|
|
}
|
|
|
}, {
|
|
|
//获取列表数据
|
|
|
route: '/activity/drawline/indexPage',
|
|
|
method: 'POST',
|
|
|
url:"/DrawlineActivityRest/getDrawlineActivityList",
|
|
|
params:[
|
|
|
{name: 'activityName', type: 'String'},
|
|
|
{name: 'status', type: 'Number'},
|
|
|
{name: 'size', type: 'Number'},
|
|
|
{name: 'page', type: 'Number'}
|
|
|
]
|
|
|
}, {
|
|
|
// 关闭活动
|
|
|
route: '/activity/drawline/close',
|
|
|
method: 'POST',
|
|
|
url : "/DrawlineActivityRest/closeActivity",
|
|
|
params:[
|
|
|
{name:"activityId",type:"Number"}
|
|
|
]
|
|
|
}, {
|
|
|
// 开启活动
|
|
|
route: '/activity/drawline/open',
|
|
|
method: 'POST',
|
|
|
url : "/DrawlineActivityRest/openActivity",
|
|
|
params:[
|
|
|
{name:"activityId",type:"Number"}
|
|
|
]
|
|
|
}, {
|
|
|
// 新增抽签活动页面渲染
|
|
|
route: '/activity/drawline/add',
|
|
|
method: 'GET',
|
|
|
view: 'pages/activity/edit',
|
|
|
src:'/activity/edit',
|
|
|
data:{
|
|
|
pageTitel:"添加抽奖活动",
|
|
|
action:'/activity/drawline/addsave',
|
|
|
data:{
|
|
|
activityId:0,
|
|
|
backgroundStyle:"",
|
|
|
prizeList: ""
|
|
|
}
|
|
|
}
|
|
|
}, {
|
|
|
// 保存新增抽签活动
|
|
|
route: '/activity/drawline/addsave',
|
|
|
method: 'POST',
|
|
|
url: '/DrawlineActivityRest/addDrawlineActivity',
|
|
|
params:[
|
|
|
{name: 'activityName',type: 'string'},
|
|
|
{name: 'beginTimeStr',type: 'string'},
|
|
|
{name: 'endTimeStr',type: 'string'},
|
|
|
{name: 'topBanner',type: 'string'},
|
|
|
{name: 'backgroundStyle',type: 'string'},
|
|
|
{name: 'activityDesc',type: 'string'},
|
|
|
{name: 'prizeList',type: 'string'}
|
|
|
]
|
|
|
}, {
|
|
|
// 修改活动页面渲染
|
|
|
route: '/activity/drawline/update/:activityId',
|
|
|
method: 'GET',
|
|
|
view: 'pages/activity/edit',
|
|
|
url : "/DrawlineActivityRest/getDrawlineActivityDetail",
|
|
|
params:[{
|
|
|
name:'activityId',
|
|
|
type:'Number'
|
|
|
}],
|
|
|
data:{
|
|
|
pageTitel : "修改抽奖活动",
|
|
|
action : '/activity/drawline/updatesave'
|
|
|
},
|
|
|
src:'/activity/edit'
|
|
|
}, {
|
|
|
// 保存修改抽签活动
|
|
|
route: '/activity/drawline/updatesave',
|
|
|
method: 'POST',
|
|
|
url: '/DrawlineActivityRest/updateDrawlineActivity',
|
|
|
params:[
|
|
|
{name: 'activityId',type: 'Number'},
|
|
|
{name: 'activityName',type: 'string'},
|
|
|
{name: 'beginTimeStr',type: 'string'},
|
|
|
{name: 'endTimeStr',type: 'string'},
|
|
|
{name: 'topBanner',type: 'string'},
|
|
|
{name: 'backgroundStyle',type: 'string'},
|
|
|
{name: 'activityDesc',type: 'string'},
|
|
|
{name: 'prizeList',type: 'string'}
|
|
|
]
|
|
|
}
|
|
|
]; |
...
|
...
|
|