Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuy-portal-fe
·
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
dongjunjie
9 years ago
Commit
2dc6f2f3b40ce7b3c335d4e8c91b481bc0091d43
1 parent
b61cfbd6
index.js
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
4 deletions
client/js/store/index.js
client/js/store/index.js
View file @
2dc6f2f
...
...
@@ -13,7 +13,28 @@ var t = new common.tab({
click
:
function
(){
if
(
+
t
.
active
){
g
.
options
.
url
=
"/supplier/store/ajax/shenhezx"
;
g
.
options
.
columns
[
1
].
name
=
"shopsName"
;
g
.
options
.
columns
[
2
]
=
{
display
:
"包含品牌"
,
name
:
"brands"
,
render
:
function
(
item
){
var
str
=
''
;
if
(
item
.
brands
){
$
.
each
(
item
.
brands
,
function
(
index
,
a
)
{
str
+=
'<p>'
+
a
.
brandName
+
'</p>'
;
});
}
return
str
;
}};
}
else
{
g
.
options
.
columns
[
1
].
name
=
"shopName"
;
g
.
options
.
columns
[
2
]
=
{
display
:
"包含品牌"
,
name
:
"shopRelationList"
,
render
:
function
(
item
){
var
str
=
''
;
if
(
item
.
shopRelationList
){
$
.
each
(
item
.
shopRelationList
,
function
(
index
,
a
)
{
str
+=
'<p>'
+
a
.
brandName
+
'</p>'
;
});
}
return
str
;
}};
g
.
options
.
url
=
$
(
'#url'
).
val
();
}
g
.
reload
(
1
);
...
...
@@ -67,11 +88,14 @@ var t = new common.tab({
}},
{
display
:
"操作"
,
name
:
""
,
render
:
function
(
item
){
var
HtmArr
=
[];
console
.
log
(
t
);
if
(
t
.
active
==
"1"
){
console
.
log
(
item
);
HtmArr
.
push
(
'<a href="/supplier/store/decorationDetail/'
+
item
.
id
+
'/'
+
item
.
templateId
+
'/'
+
item
.
shopsType
+
'/check/" class="btn btn-info btn-xs">装修查看</a>'
);
}
else
{
HtmArr
.
push
(
'<a href="/supplier/store/'
+
authority
.
info
+
'/'
+
item
.
shopsId
+
'" href="javascript:void(0);" class="btn btn-info btn-xs">查看</a>'
);
}
console
.
log
(
item
);
HtmArr
.
push
(
'<a href="/supplier/store/decorationDetail/'
+
item
.
id
+
'/'
+
item
.
templateId
+
'/'
+
item
.
shopsType
+
'/check/" class="btn btn-info btn-xs">装修查看</a>'
);
HtmArr
.
push
(
'<a href="/supplier/store/'
+
authority
.
info
+
'/'
+
item
.
shopsId
+
'" href="javascript:void(0);" class="btn btn-info btn-xs">查看</a>'
);
//创建
if
(
authority
.
create
){
if
(
+
item
.
checkStatus
==
100
||+
item
.
checkStatus
==
900
){
...
...
Please
register
or
login
to post a comment