Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuy-shop-fe2
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
zhaoqing
2017-05-16 10:48:47 +0800
Commit
f34e657c22cb8db0026207bf1b4bbcc94b780ba7
1 parent
c86ae550
商家端店铺访问做权限控制
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
4 deletions
code/apps/shop/interfaces/modularDecorator.js
code/apps/shop/interfaces/shop.js
code/static/js.jquery/module/shop/Decoration.js
code/static/js.jquery/module/shop/modular/Decorator.js
code/apps/shop/interfaces/modularDecorator.js
View file @
f34e657
...
...
@@ -33,6 +33,7 @@ module.exports = {
params
:
[
{
name
:
"shopId"
,
type
:
"Number"
},
{
name
:
"platform"
,
type
:
"Number"
},
{
name
:
'platformType'
,
type
:
'Number'
},
{
name
:
"appType"
,
type
:
"Number"
}
]
},
...
...
code/apps/shop/interfaces/shop.js
View file @
f34e657
...
...
@@ -18,7 +18,8 @@
title
:
"店铺装修详情"
,
url
:
"/ShopsDecoratorRest/findShopsDecoratorDetail"
,
params
:[
{
name
:
'shopsId'
,
type
:
'Number'
}
{
name
:
'shopsId'
,
type
:
'Number'
},
{
name
:
'platformType'
,
type
:
'Number'
}
]
},
...
...
code/static/js.jquery/module/shop/Decoration.js
View file @
f34e657
...
...
@@ -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
;
}
...
...
code/static/js.jquery/module/shop/modular/Decorator.js
View file @
f34e657
...
...
@@ -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
)
{
...
...
Please
register
or
login
to post a comment