Authored by weiqingting

恢复VIP积分路由

/**
* 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'},
{name: 'status',type: 'Number'}
]
}, {
// 数据查询页面渲染
route: '/activity/drawline/data/:activityId',
method: 'GET',
view: 'pages/activity/data',
url : "/DrawlineActivityRest/getPrizeDetailInfo",
params:[{
name:'activityId',
type:'Number'
}],
src:'/activity/data'
}
];
... ...
exports.domain = require('../config/common.js').domain;
//exports.domain = 'http://172.16.6.240:8088/platform/';//王书生
//exports.domain = 'http://172.16.6.182:8080/yohobuy-platform-web'; //曹燕
//路由配置
exports.res = [{
//【限购商品】页面渲染
route: '/limit/product/index',
method: 'GET',
view: 'pages/limit/index',
src: '/product/limit'
}, {
// 【限购商品】ajax分页
route: '/limit/product/page',
method: 'POST',
url: '/limitProduct/getLimitProductList',
params: [{
name: 'hotFlag',
type: 'Number'
}, {
name: 'saleFlag',
type: 'Number'
}, {
name: 'showFlag',
type: 'Number'
}, {
name: 'productName',
type: 'String'
}, {
name: 'productSkn',
type: 'String'
}, {
name: 'page',
type: 'Number'
}, {
name: 'size',
type: 'Number'
}
]
}, {
// 【限购商品】添加页面渲染
route: '/limit/product/add',
method: 'GET',
view: 'pages/limit/add',
src: '/product/limit-add',
data: {
data: {
limitProductType:"1",
hotFlag:"0"
},
action: '/limit/product/add'
}
}, {
// 【限购商品】ajax添加
route: '/limit/product/add',
method: 'POST',
url: '/limitProduct/addLimitProduct',
params: [{
name: 'productName',
type: 'String'
}, {
name: 'attachmentContent',
type: 'String'
}, {
name: 'batchNo',
type: 'Number'
}, {
name: 'dayFlag',
type: 'Number'
}, {
name: 'saleTimeStr',
type: 'String'
}, {
name: 'hotFlag',
type: 'Number'
}, {
name: 'orderBy',
type: 'Number'
}, {
name: 'notSaleOrderBy',
type: 'Number'
}, {
name: 'limitProductType',
type: 'Number'
}, {
name: 'activityId',
type: 'Number'
}]
}, {
route: '/limit/edit/:id',
method: 'GET',
view: 'pages/limit/add',
url: '/limitProduct/getLimitProduct',
data: {
action: "/limit/update",
type: "update"
},
src: '/product/limit-add',
params: [{
name: "id",
type: "String"
}]
}, {
route: '/limit/update',
method: 'POST',
url: '/limitProduct/updateLimitProduct',
params: [{
name: 'id',
type: 'Number'
}, {
name: 'productName',
type: 'String'
}, {
name: 'attachmentContent',
type: 'String'
}, {
name: 'batchNo',
type: 'Number'
}, {
name: 'saleTimeStr',
type: 'String'
}, {
name: 'hotFlag',
type: 'Number'
}, {
name: 'orderBy',
type: 'Number'
}, {
name: 'notSaleOrderBy',
type: 'Number'
}, {
name: 'dayFlag',
type: 'Number'
}, {
name: 'showFlag',
type: 'Number'
}, {
name: 'status',
type: 'Number'
}, {
name: 'limitProductType',
type: 'Number'
}, {
name: 'activityId',
type: 'Number'
}]
}, {
route: '/limit/ajax/getCodeCount',
method: 'POST',
url: '/limitProduct/getCountByStatus',
params: [{
name: 'hotFlag',
type: 'Number'
}, {
name: 'saleFlag',
type: 'Number'
}, {
name: 'showFlag',
type: 'Number'
}, {
name: 'productName',
type: 'String'
}, {
name: 'productSkn',
type: 'String'
}]
}, {
route: '/limit/audit',
method: 'POST',
url: '/limitProduct/auditLimitProduct',
params: [{
name: 'id',
type: 'Number'
}, {
name: 'showFlag',
type: 'Number'
}, {
name: 'hotFlag',
type: 'Number'
}, {
name: 'orderBy',
type: 'Number'
}, {
name: 'notSaleOrderBy',
type: 'Number'
}]
}, {
route: '/limit/delete',
method: 'POST',
url: '/limitProduct/deleteLimitProduct',
params: [{
name: 'id',
type: 'Number'
}]
}, {
route: '/limit/checkBatch',
method: 'POST',
url: '/limitProduct/checkBatchNoExist',
params: [{
name: 'batchNo',
type: 'Number'
}, {
name: 'id',
type: 'Number'
}]
},{
route:'/limit/getLimitCodeByBatchNo',
method:'POST',
url:'/limitCode/checkLimitCodeByBatchNo',
params:[
{name:"batchNo",type:'Number'},
{name:"id",type:"Number"}
]
}, {
route: '/limit/batch/export',
method: 'POST',
url: '/batch/export',
params: [{
name: 'queryConf',
type: 'String'
}, {
name: 'type',
type: 'String'
}]
},{//模糊查询
route:'/limit/xiangouID/selectActivityListForSelect',
method:'POST',
url:'/DrawlineActivityRest/selectActivityListForSelect',
params:[
{name:"idName",type:'String'}
]
},{
route:'/limit/DrawlineActivityRest/checkActivityIdExists',
method:'POST',
url:'/DrawlineActivityRest/checkActivityIdExists',
params:[
{name:"activityId",type:"Number"}
]
},{
route:'/limit/checkActivityIdNoExist',
method:'POST',
url:'/limitProduct/checkActivityIdNoExist',
params:[
{name:"activityId",type:"Number"},
{name:"id",type:"Number"}
]
}];
\ No newline at end of file
... ...
exports.domain = require('../config/common.js').domain;
//exports.domain = 'http://172.16.6.240:8088/platform';
//exports.domain = 'http://172.16.6.162:8088/platform';
//营销管理路由配置
exports.res = [
// {
// //营销码管理 -> 页面渲染
// route: '/market/coupon/index',
// method: 'GET',
// view: 'pages/market/index',
// src: '/market/coupon',
// noApi: true,
// data: {
// pageTitle: '优惠码列表',
// filter: true,
// createUrl: '/market/coupon/add',
// gridurl: '/market/coupon/getPromotion'
// // tabUrl: '/getCodeCount',
// // sendUrl: '/sendPromotion',
// // auditUrl: '/auditPromotion'
// }
// },
// {
// //营销码管理 -> 列表数据
// route: '/market/coupon/getPromotion',
// method: 'POST',
// url: '/promotioncode/getPromotionCodeList',
// isJsonRaw: true,
// params: [{
// name: 'status',
// type: 'Number'
// }, {
// name: 'page',
// type: 'Number'
// }, {
// name: 'size',
// type: 'Number'
// }, {
// name: 'batchNo',
// type: 'Number'
// }, {
// name: 'name',
// type: 'String'
// }, {
// name: 'reqDepartment',
// type: 'String'
// }]
// }, {
// //营销码管理 -> 列表操作
// route: '/market/coupon/auditPromotion',
// method: 'POST',
// url: '/promotioncode/auditPromotionCode',
// isJsonRaw: true,
// params: [{
// name: 'id',
// type: 'Number'
// }, {
// name: 'status',
// type: 'Number'
// }, {
// name: 'reason',
// type: 'String'
// }]
// }, {
// //营销码管理 -> 发放列表
// route: '/market/coupon/sendPromotion',
// method: 'POST',
// url: '/promotioncode/getPromotionCodeSendList',
// isJsonRaw: true,
// params: [{
// name: 'auditTime',
// type: 'String'
// }]
// }, {
// //营销码管理 -> tab卡数据
// route: '/market/coupon/getCodeCount',
// method: 'POST',
// url: '/promotioncode/getPromotionCodeCountByStatus',
// isJsonRaw: true,
// params: [{
// name: 'reqDepartment',
// type: 'String'
// }, {
// name: 'name',
// type: 'String'
// }, {
// name: 'batchNo',
// type: 'Number'
// }]
// }, {
// //营销码管理 -> 添加优惠码页面渲染
// route: '/market/coupon/add',
// method: 'GET',
// view: 'pages/market/coupon-edit',
// src: '/market/coupon-edit',
// data: {
// action: "/market/coupon/addCode",
// type: "add",
// data: {
// limitTimes: "0",
// reqDepartment: "零售部/营销策划",
// userSourceLimit: "1",
// userTypeLimit: "1",
// userUseLimit: "1",
// staff: "admin",
// status: "0"
// }
// }
// }, {
// //营销码管理 -> 添加优惠码
// route: '/market/coupon/addCode',
// method: 'POST',
// url: '/promotioncode/addPromotionCode',
// isJsonRaw: true,
// params: [{
// name: 'name',
// type: 'String'
// }, {
// name: 'limitTimes',
// type: 'String'
// }, {
// name: 'code',
// type: 'String'
// }, {
// name: 'describe',
// type: 'String'
// }, {
// name: 'promotionInfo',
// type: 'String'
// }, {
// name: 'userSourceLimit',
// type: 'String'
// }, {
// name: 'userTypeLimit',
// type: 'String'
// }, {
// name: 'creatorId',
// type: 'String'
// }, {
// name: 'limitDateFrom',
// type: 'String'
// }, {
// name: 'limitDateTo',
// type: 'String'
// }, {
// name: 'createTime',
// type: 'String'
// }, {
// name: 'reqDepartment',
// type: 'String'
// }, {
// name: 'status',
// type: 'String'
// }, {
// name: 'staff',
// type: 'String'
// }]
// }, {
// //营销码管理 -> 编辑优惠码页面渲染
// route: '/market/coupon/update/:id',
// method: 'GET',
// view: 'pages/market/coupon-edit',
// url: '/promotioncode/getPromotionCode',
// isJsonRaw: true,
// data: {
// action: "/market/coupon/updateCode",
// type: "update"
// },
// src: '/market/coupon-edit',
// params: [{
// name: "id",
// type: "String"
// }]
// }, {
// //营销码管理 -> 优惠码详情
// route: '/market/coupon/info/:id',
// method: 'GET',
// view: 'pages/market/coupon-edit',
// url: '/promotioncode/getPromotionCode',
// isJsonRaw: true,
// src: '/market/coupon-edit',
// data: {
// type: "info"
// },
// params: [{
// name: "id",
// type: "String"
// }]
// }, {
// //营销码管理 -> 验证优惠码
// route: '/market/coupon/checkPromotionCode',
// method: 'POST',
// url: '/promotioncode/checkPromotionCode',
// isJsonRaw: true,
// params: [{
// name: 'code',
// type: 'String'
// }]
// }, {
// //营销码管理 -> 编辑优惠码
// route: '/market/coupon/updateCode',
// method: 'POST',
// url: '/promotioncode/updatePromotionCode',
// isJsonRaw: true,
// params: [{
// name: 'id',
// type: 'String'
// }, {
// name: 'name',
// type: 'String'
// }, {
// name: 'limitTimes',
// type: 'String'
// }, {
// name: 'code',
// type: 'String'
// }, {
// name: 'describe',
// type: 'String'
// }, {
// name: 'promotionInfo',
// type: 'String'
// }, {
// name: 'userSourceLimit',
// type: 'String'
// }, {
// name: 'userTypeLimit',
// type: 'String'
// }, {
// name: 'creatorId',
// type: 'String'
// }, {
// name: 'limitDateFrom',
// type: 'String'
// }, {
// name: 'limitDateTo',
// type: 'String'
// }, {
// name: 'createTime',
// type: 'String'
// }, {
// name: 'reqDepartment',
// type: 'String'
// }, {
// name: 'status',
// type: 'String'
// }]
// },
{
//限购码管理 -> 页面渲染
route: '/market/limitcode/index',
method: 'GET',
view: 'pages/market/index',
src: '/market/limitcode',
noApi: true,
data: {
pageTitle: '限购码列表',
filter: true,
createUrl: '/market/limitcode/add',
gridurl: '/market/limitcode/getLimitCode'
}
}, {
//限购码管理 -> 限购码列表
route: '/market/limitcode/getLimitCode',
method: 'POST',
url: '/limitCode/getLimitCodeList',
isJsonRaw: true,
params: [{
name: 'status',
type: 'Number'
}, {
name: 'page',
type: 'Number'
}, {
name: 'size',
type: 'Number'
}, {
name: 'batchNo',
type: 'String'
}, {
name: 'name',
type: 'String'
}, {
name: 'reqDepartment',
type: 'String'
}]
}, {
//限购码管理 -> 添加限购码页面渲染
route: '/market/limitcode/add',
method: 'GET',
view: 'pages/market/limitcode-edit',
data: {
action: "/market/limitCode/addLimitCode",
type: "add",
data: {
reqDepartment: "零售部/营销策划",
limitTimes: 1,
userUseLimit: 1,
userTypeLimit: '新注册|注册未购买|普通会员|银卡会员|金卡会员|白金会员'
}
},
src: '/market/limitcode-edit'
}, {
//限购码管理 -> 添加限购码
route: '/market/limitCode/addLimitCode',
method: 'POST',
url: '/limitCode/addLimitCode',
isJsonRaw: true,
params: [{
name: "name",
type: "String"
}, {
name: "limitTimes",
type: "Number"
}, {
name: "reqDepartment",
type: "String"
}, {
name: "limitDateFrom",
type: "String"
}, {
name: "limitDateTo",
type: "String"
}, {
name: "describe",
type: "String"
}, {
name: "userUseLimit",
type: "Number"
}, {
name: "userTypeLimit",
type: "String"
}, {
name: "limitSkn",
type: "String"
}, {
name: "creatorName",
type: "String"
}, {
name: "creatorId",
type: "Number"
}, {
name: "status",
type: "Number"
}]
}, {
//限购码管理 -> 查看限购码页面渲染
route: '/market/limitcode/info/:id',
method: 'GET',
view: 'pages/market/limitcode-info',
url: "/limitCode/getLimitCode",
src: "/market/limitcode-info",
isJsonRaw: true,
params: [{
name: 'id',
type: 'String'
}]
}, {
//限购码管理 -> 修改限购码页面渲染
route: '/market/limitcode/update/:id',
method: 'GET',
view: 'pages/market/limitcode-edit',
url: "/limitCode/getLimitCode",
src: '/market/limitcode-edit',
isJsonRaw: true,
data: {
action: "/market/limitcode/updateLimitCode",
type: "update",
},
params: [{
name: 'id',
type: 'String'
}]
}, {
//限购码管理 -> 编辑限购码页面渲染
route: '/market/limitcode/edit/:id',
method: 'GET',
view: 'pages/market/limitcode-edit',
url: "/limitCode/getLimitCode",
src: '/market/limitcode-edit',
isJsonRaw: true,
data: {
action: "/market/limitcode/updateLimitCode",
type: "edit",
},
params: [{
name: 'id',
type: 'String'
}]
}, {
//限购码管理 -> 编辑限购码接口
route: '/market/limitcode/updateLimitCode',
method: 'POST',
url: '/limitCode/updateLimitCode',
isJsonRaw: true,
params: [{
name: "name",
type: "String"
}, {
name: "limitTimes",
type: "Number"
}, {
name: "reqDepartment",
type: "String"
}, {
name: "limitDateFrom",
type: "String"
}, {
name: "limitDateTo",
type: "String"
}, {
name: "describe",
type: "String"
}, {
name: "userUseLimit",
type: "Number"
}, {
name: "userTypeLimit",
type: "String"
}, {
name: "limitSkn",
type: "String"
}, {
name: "creatorName",
type: "String"
}, {
name: "creatorId",
type: "Number"
}, {
name: "status",
type: "Number"
}, {
name: "id",
type: "Number"
}, {
name: "batchNo",
type: "Number"
}]
}, {
//限购码管理 -> 修改限购码接口
route: '/market/limitcode/auditLimitCode',
method: 'POST',
view: 'pages/limitcode/info',
url: "/limitCode/auditLimitCode",
isJsonRaw: true,
params: [{
name: 'id',
type: 'Number'
}, {
name: 'status',
type: 'Number'
}, {
name: 'reason',
type: 'String'
}]
}, {
//限购码管理 -> tab卡数据
route: '/market/limitCode/getCodeCount',
method: 'POST',
url: '/limitCode/getLimitCodeCountByStatus',
isJsonRaw: true,
params: [{
name: 'reqDepartment',
type: 'String'
}, {
name: 'name',
type: 'String'
}, {
name: 'batchNo',
type: 'Number'
}]
}, {
//vip累计金额翻倍 -> 列表页面渲染
route: '/market/vipamount/index',
method: 'GET',
view: 'pages/market/index',
src: '/market/vipamount',
noApi: true,
data: {
pageTitle: 'vip累计金额翻倍',
createUrl: '/market/vipamount/add',
gridurl: '/market/vipamount/list'
}
}, {
//vip累计金额翻倍 -> 列表数据
route: '/market/vipamount/list',
method: 'POST',
//url: '/activity/queryActivityList',
apis: {
vipList: {
url: '/activity/queryActivityList',
params: [{
name: 'type',
type: 'Number'
}, {
name: 'size',
type: 'Number'
}, {
name: 'page',
type: 'Number'
}],
isJsonRaw: true
},
activity: {
url: '/activity/queryActivityList',
params: [{
name: 'status',
type: 'Number',
def: 0
}],
isJsonRaw: true
}
}
}, {
//vip累计金额翻倍 -> 添加页面渲染
route: '/market/vipamount/add',
method: 'GET',
view: 'pages/market/vipamount-edit',
src: '/market/vipamount-edit',
data: {
action: '/market/vipamount/save',
}
}, {
//vip累计金额翻倍 -> 添加编辑活动
route: '/market/vipamount/save',
method: 'POST',
url: '/activity/saveActivity',
isJsonRaw: true,
params: [{
name: 'id',
type: 'Number'
}, {
name: 'num',
type: 'Number'
}, {
name: 'title',
type: 'String'
}, {
name: 'startTime',
type: 'Number'
}, {
name: 'endTime',
type: 'Number'
}, {
name: 'type',
type: 'Number'
}, {
name: 'status',
type: 'Number'
}]
}]
\ No newline at end of file
... ...