Authored by zhaoqing

商家端店铺访问做权限控制

... ... @@ -33,6 +33,7 @@ module.exports = {
params: [
{name: "shopId", type: "Number"},
{name: "platform", type: "Number"},
{name: 'platformType', type: 'Number'},
{name: "appType", type: "Number"}
]
},
... ...
... ... @@ -18,7 +18,8 @@
title:"店铺装修详情",
url:"/ShopsDecoratorRest/findShopsDecoratorDetail",
params:[
{name: 'shopsId', type: 'Number'}
{name: 'shopsId', type: 'Number'},
{name: 'platformType', type: 'Number'}
]
},
... ...
... ... @@ -262,16 +262,19 @@ function getDialogOption(title) {
//Ajax查询
function findDecoration(){
console.log('1');
common.util.__ajax(
{
url:'/shop/ShopsDecoratorRest/findShopsDecoratorDetail',
data: {
"shopsId": shopsId
"shopsId": shopsId,
"platformType": 2
}
},
function(rs) {
console.log(rs.data);
if(rs.data == 500){
common.util.__tip(rs.message);
return;
}
if(rs.data){
jsonMain = rs.data;
}
... ...
... ... @@ -161,10 +161,15 @@ var Bll = {
data: {
shopId: Bll.shopId,
platform: +t.active ? 0 : 1,
platformType: 2,
appType: Bll.appType
},
async: false
}, function(res) {
if(res.data == 500){
common.util.__tip(res.message);
return;
}
if(res && res.data) {
shopTemplates = res.data;
$.each(shopTemplates, function(index, template) {
... ...