Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yoho-blk
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
1
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
biao
9 years ago
Commit
5191a7f635963407b63cec36ad5c1261cdf94723
1 parent
10fe540a
update for exchange img
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
public/js/me/exchange.page.js
public/js/me/exchange.page.js
View file @
5191a7f
...
...
@@ -302,10 +302,10 @@ function bindConfirmEvent() {
if
(
$specialReason
.
length
&&
$specialReason
.
get
(
0
).
style
.
display
===
'block'
)
{
goodObj
.
remark
=
$specialReason
.
find
(
'.right-content'
).
find
(
'.mark-text'
).
val
();
$imgs
=
$specialReason
.
find
(
'.right-content'
).
find
(
'
img
'
);
$imgs
=
$specialReason
.
find
(
'.right-content'
).
find
(
'
.thumb-box
'
);
$imgs
.
each
(
function
(
idx
,
img
)
{
imgs
.
push
(
img
.
src
);
imgs
.
push
(
$
(
img
).
data
(
'img'
)
);
});
goodObj
.
evidence_images
=
imgs
;
...
...
@@ -380,10 +380,17 @@ function bindUploadEvent() {
callback
:
function
(
result
)
{
var
img
;
var
$t
;
var
o
;
if
(
result
.
code
===
200
)
{
n
=
parseInt
(
$
(
that
).
siblings
(
'.thumb-box'
).
length
,
10
);
img
=
imgBoxTpl
({
src
:
result
.
data
});
o
=
{
src
:
result
.
data
};
if
(
result
.
imgs
&&
result
.
imgs
.
length
)
{
o
.
url
=
result
.
imgs
[
0
];
}
img
=
imgBoxTpl
(
o
);
$t
=
$
(
that
).
next
(
'.img-up-tip'
);
$
(
that
).
before
(
img
);
...
...
Please
register
or
login
to post a comment