Authored by dongjunjie

blk跟yoho店铺联调修改接口

... ... @@ -27,7 +27,7 @@ module.exports = function (app) {
/******************************yoho装修*************************************/
//yoho店铺装修,编辑,查看,审核
app.get("/supplier/store/decorationDetail/:shopsId/:shopType/:shopsType/:id/", "shop.Decoration");
app.get("/supplier/store/decorationDetail/:shopsId/:shopType/:operate/", "shop.Decoration");
//yoho店铺装修详情
app.post("/shop/ShopsDecoratorRest/findShopsDecoratorDetail","shopDecoration_findShopsDecoratorDetail");
... ...
... ... @@ -43,7 +43,7 @@ module.exports={
title:"yoho店铺装修审核通过,驳回",
url:"/ShopsDecoratorRest/auditShopsDecorator",
params:[
{name: 'id', type: 'Number'},
{name: 'shopsId', type: 'Number'},
{name: 'checkStatus', type: 'Number'},
{name: 'comment', type: 'String'}
]
... ... @@ -53,7 +53,7 @@ module.exports={
title:"blk店铺装修审核通过,驳回",
url:"/ShopsDecoratorRest/auditBlkShopsDecorator",
params:[
{name: 'id', type: 'Number'},
{name: 'shopsId', type: 'Number'},
{name: 'blkCheckStatus', type: 'Number'},
{name: 'blkComment', type: 'String'}
]
... ...
... ... @@ -121,7 +121,7 @@ var resourcesNew = {
"data": [{"position":1, "name":"默认商品", "enName":"", "src":defaultSrc, "url":""}]
}
} //初始化装修信息json
var shopsId, _id, jsonMain, jsonClone;
var shopsId, jsonMain, jsonClone;
getParams();
findDecoration();
... ... @@ -138,7 +138,6 @@ function getParams(){
shopsId = paramList[1];
shopType = paramList[2];
shopOperate = paramList[3];
_id = paramList[4];
}
if(shopOperate == 'editor'){
$(".moduleSubmite").show().siblings().hide();
... ... @@ -353,7 +352,7 @@ function checkDecoration(checkStatus,comment){
common.util.__ajax({
url:'/shop/ShopsDecoratorRest/auditShopsDecorator',
data: {
"id": _id,
"shopsId": jsonMain.shopsId,
"checkStatus": checkStatus,
"comment": comment
}
... ... @@ -367,7 +366,7 @@ function checkDecoration(checkStatus,comment){
common.util.__ajax({
url:'/shop/ShopsDecoratorRest/auditShopsDecorator',
data: {
"id": _id,
"shopsId": jsonMain.shopsId,
"checkStatus": checkStatus
}
},function(rs){
... ...
... ... @@ -421,7 +421,7 @@ $(document).on("click", "#checkOk", function () {
common.util.__ajax({
url:'/shop/ShopsDecoratorRest/auditBlkShopsDecorator',
data: {
id: mainData.id,
shopsId: mainData.shopsId,
blkCheckStatus: 300
}
},function(rs){
... ... @@ -448,7 +448,7 @@ $(document).on("click","#checkNo",function(){
common.util.__ajax({
url:'/shop/ShopsDecoratorRest/auditBlkShopsDecorator',
data: {
id: mainData.id,
shopsId: mainData.shopsId,
blkCheckStatus: 900,
blkComment: comment
}
... ...
... ... @@ -108,9 +108,9 @@ var g = new common.grid({
HtmArr.push("<div>");
if(+item.checkStatus == 200){
HtmArr.push('<a href="/supplier/store/decorationDetail/'+item.shopsId+'/'+item.shopsType+'/view/'+item.id+'/" class="btn btn-info btn-xs">YOHO装修查看</a>');
HtmArr.push('<a href="/supplier/store/decorationDetail/'+item.shopsId+'/'+item.shopsType+'/view/" class="btn btn-info btn-xs">YOHO装修查看</a>');
}else {
HtmArr.push('<a href="/supplier/store/decorationDetail/'+item.shopsId+'/'+item.shopsType+'/editor/'+item.id+'/" class="btn btn-primary btn-xs">YOHO装修编辑</a>');
HtmArr.push('<a href="/supplier/store/decorationDetail/'+item.shopsId+'/'+item.shopsType+'/editor/" class="btn btn-primary btn-xs">YOHO装修编辑</a>');
}
if (+item.checkStatus == 900) {
... ...
... ... @@ -112,7 +112,7 @@ var g = new common.grid({
if (t.active == "1") { //店铺装修审核
if(+item.checkStatus == 200){
HtmArr.push('<a href="/supplier/store/decorationDetail/' + item.shopsId + '/' + item.shopsType + '/check/' + item.id + '/" class="btn btn-info btn-xs">YOHO装修查看</a>');
HtmArr.push('<a href="/supplier/store/decorationDetail/' + item.shopsId + '/' + item.shopsType + '/check/" class="btn btn-info btn-xs">YOHO装修查看</a>');
}
if(+item.blkCheckStatus == 200){
HtmArr.push('<a href="/shop/decoration/blkCheck/'+item.shopsId+'" class="btn btn-info btn-xs">BLK装修查看</a>')
... ...