shop.js 2.69 KB
exports.domain = require('../config/common.js').domain;
//exports.domain = 'http://localhost:30012';
//exports.domain = 'http://172.16.6.231:8080/platform';

exports.res = [
	{
		route: '/supplier/store/decorationDetail/:shopsId/:shopType/:shopsType/:id/',
		method: 'GET',
		view: 'pages/store/shop2',
		src:'/store/shop'
	},
	{//保存装修模板,提交审核模板
		route:"/shop/ShopsDecoratorRest/saveShopsDecorator",
		method:"POST",
		url:"/ShopsDecoratorRest/saveShopsDecorator",
		params:[
			{name: 'shopsId', type: 'Number'},
			{name: 'submitStatus', type: 'Number'},
			{name: 'platform', type: 'String'},
			{name: 'templateType', type: 'String'},
			{name: 'resources', type: 'String'}
		]
	},
	{//查询装修模板内容
		route:"/shop/ShopsDecoratorRest/findShopsDecoratorDetail",
		method:"POST",
		url:"/ShopsDecoratorRest/findShopsDecoratorDetail",
		params:[
			{name: 'shopsId', type: 'Number'}
		]
	},
	{//审核
		route:"/shop/ShopsDecoratorRest/auditShopsDecorator",
		method:"POST",
		url:"/ShopsDecoratorRest/auditShopsDecorator",
		params:[
			{name: 'id', type: 'Number'},
			{name: 'checkStatus', type: 'Number'},
			{name: 'comment', type: 'String'}
		]
	},
	{//最新上架的商品
		route:"/shop/ShopsDecoratorRest/findNewProductList",
		method:"POST",
		url:"/ShopsDecoratorRest/findNewProductList",
		params:[
			{name: 'shopsId', type: 'Number'},
			{name: 'size', type: 'Number'}
		]
	},
	{//热销商品
		route:"/shop/ShopsDecoratorRest/findHotProductList",
		method:"POST",
		url:"/ShopsDecoratorRest/findHotProductList",
		params:[
			{name: 'shopsId', type: 'Number'},
			{name: 'size', type: 'Number'}
		]
	},
	{/*店铺审核装修*/
		route:'/supplier/store/ajax/shenhezx',
		method:'POST',
		url:'/ShopsDecoratorRest/findAuditShopsDecorator',
		params:[
			{name:"supplierId",type:"Number"},
			{name:"brandId",type:"Number"},
			{name:"checkStatus",type:"Number"}
		]
	},
	{
		//店铺装修管理 -> 页面渲染
		route: '/supplier/shop/decoration',
		method: 'GET',
		src: '/store/decoration-index',
		view: 'pages/store/shop',
		data: {
			pagetitle: {
				level1title: '店铺管理',
				level2title: '店铺装修管理'
			},
			checkStatus: true,
			selectShop: true,
			gridurl: '/shop/ShopsDecoratorRest/findShopsDecorator'
		}
	},
	{
		//店铺装修管理 -> 列表数据
		route: '/shop/ShopsDecoratorRest/findShopsDecorator',
		method: 'POST',
		url: '/ShopsDecoratorRest/findBusinessShopsDecorator',
		params: [{
			name: 'page',
			type: 'number'
		}, {
			name: 'size',
			type: 'number'
		}, {
			name: 'shopsId',
			type: 'number'
		}, {
			name: 'checkStatus',
			type: 'number'
		}, {
			name: 'supplierId',
			type: 'number'
		}, {
			name: 'brandId',
			type: 'number'
		}]
	}
]