Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujun
tl_estate
Commits
b32f5750
Commit
b32f5750
authored
Dec 29, 2017
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
转铺单击事件
parent
b2125e8d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
transfer.js
public/resource/js/transfer.js
+4
-4
No files found.
public/resource/js/transfer.js
View file @
b32f5750
...
...
@@ -96,7 +96,6 @@ define (['doT', 'text!temp/transfer_template_tpl.html', 'css!style/home.css','pa
data
:
params
,
dataType
:
'json'
,
success
:
function
(
data
)
{
console
.
log
(
data
);
var
temp
=
document
.
getElementById
(
'transfer_list_tpl'
).
innerHTML
;
var
doTtmpl
=
doT
.
template
(
temp
);
$
(
"#sublet_list"
).
html
(
doTtmpl
(
data
.
data
.
list
));
...
...
@@ -155,7 +154,7 @@ function edit(obj) {
params
.
id
=
arr
[
0
];
params
.
status
=
arr
[
1
];
if
(
params
.
status
==
0
)
{
params
.
status
=
2
;
params
.
status
=
1
;
}
else
{
params
.
status
=
0
;
}
...
...
@@ -170,11 +169,12 @@ function edit(obj) {
if
(
data
.
code
==
200
)
{
alert
(
data
.
msg
);
if
(
data
.
data
.
status
==
0
)
{
$
(
obj
).
html
(
'转为
报备
'
);
$
(
obj
).
html
(
'转为
上架商铺
'
);
$
(
obj
).
attr
(
'class'
,
'btn1 btn-danger'
);
$
(
obj
).
attr
(
'data-id'
,
arr
[
0
]
+
','
+
0
);
}
else
{
$
(
obj
).
html
(
'已转为报备'
);
$
(
obj
).
removeAttr
(
"onclick"
);
$
(
obj
).
html
(
'已转为上架商铺'
);
$
(
obj
).
attr
(
'class'
,
'btn1 btn-info'
);
$
(
obj
).
attr
(
'data-id'
,
arr
[
0
]
+
','
+
data
.
data
.
status
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment