shop.js 2.84 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:"/store/shop-decoration-save",
		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:"/store/shop-decoration-find",
		method:"POST",
		url:"/ShopsDecoratorRest/findShopsDecoratorDetail",
		params:[
			{name: 'shopsId', type: 'Number'}
		]
	},
	{//审核
		route:"/store/shop-decoration-check",
		method:"POST",
		url:"/ShopsDecoratorRest/auditShopsDecorator",
		params:[
			{name: 'id', type: 'Number'},
			{name: 'checkStatus', type: 'Number'},
			{name: 'comment', type: 'String'}
		]
	},
	{//查询店铺品牌
		route:"/store/shop-decoration-brands",
		method:"POST",
		url:"/ShopsDecoratorRest/findBrandsByShopsId",
		params:[
			{name: 'shopsId', type: 'Number'}
		]
	},
	{//最新上架的商品
		route:"/store/shop-decoration-newProducts",
		method:"POST",
		url:"/ShopsDecoratorRest/findNewProductList",
		params:[
			{name: 'shopsId', type: 'Number'},
			{name: 'size', type: 'Number'}
		]
	},
	{//热销商品
		route:"/store/shop-decoration-hotProducts",
		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/index',
		data: {
			pagetitle: {
				level1title: '店铺装修管理',
				level2title: '店铺装修管理',
				level3title: '店铺装修管理'
			},
			checkStatus: true,
			selectShop: true,
			gridurl: '/shop/ShopsDecoratorRest/findShopsDecorator'
		}
	},
	{
		//店铺装修管理 -> 列表数据
		route: '/shop/ShopsDecoratorRest/findShopsDecorator',
		method: 'POST',
		url: '/ShopsDecoratorRest/findShopsDecorator',
		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'
		}]
	}
]