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
yyq
9 years ago
Commit
43a30784381e16598066e2f2164e9ce5ceeff042
1 parent
2fb04007
图片上传提示
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
6 deletions
apps/me/views/partial/returns/special-reason.hbs
public/js/common/header.js
public/js/me/refund.page.js
public/scss/me/return/_index.css
public/tpl/me/thumbnail.hbs
apps/me/views/partial/returns/special-reason.hbs
View file @
43a3078
...
...
@@ -17,7 +17,7 @@
<span
class=
"iconfont"
>

</span>
</div>
<span
class=
"img-up-tip"
>
0/4
</span>
<span
class=
"warn
hide
"
>
<span
class=
"warn"
>
<span
class=
"iconfont blue"
>

</span>
<span
class=
"blue"
>
最多上传4张照片
</span>
</span>
...
...
public/js/common/header.js
View file @
43a3078
...
...
@@ -58,11 +58,11 @@ function refreshBag() {
$bagGoodsList
.
empty
();
$bagGoodsList
.
parent
().
addClass
(
'bag-empty'
);
}
}
}
})
};
});
}
refreshBag
();
...
...
public/js/me/refund.page.js
View file @
43a3078
...
...
@@ -221,6 +221,8 @@ $refundTable.on('change', '.refund-reason', function() {
upload
.
up
({
callback
:
function
(
result
)
{
var
data
=
{};
if
(
result
&&
result
.
code
===
200
)
{
// 避免异步上传导致数量不统一
num
=
$this
.
data
(
'num'
)
||
0
;
...
...
@@ -231,9 +233,13 @@ $refundTable.on('change', '.refund-reason', function() {
}
else
if
(
num
===
3
)
{
$this
.
addClass
(
'hide'
);
}
data
.
src
=
result
.
data
;
if
(
data
.
imgs
&&
data
.
imgs
.
length
)
{
data
.
url
=
data
.
imgs
[
0
];
}
$this
.
siblings
(
'.img-up-tip'
).
text
(
++
num
+
'/4'
);
$this
.
data
(
'num'
,
num
);
$this
.
before
(
imgBoxTpl
(
{
src
:
result
.
data
}
));
$this
.
before
(
imgBoxTpl
(
data
));
}
}
});
...
...
public/scss/me/return/_index.css
View file @
43a3078
...
...
@@ -108,6 +108,11 @@
font-size
:
34px
;
}
}
.warn
.iconfont
{
font-size
:
16px
;
margin-left
:
10px
;
}
}
.thumb-box
{
...
...
public/tpl/me/thumbnail.hbs
View file @
43a3078
<div
class=
"thumb-box"
data-img=
"
{{
src
}}
"
>
<div
class=
"thumb-box"
data-img=
"
{{
url
}}
"
>
<img
class=
"envidence"
src=
"
{{
src
}}
"
alt=
"凭证图片"
>
<div
class=
"operation-box"
>
<a
href=
"
{{
src
}}
"
target=
"_blank"
>
查看
</a>
...
...
Please
register
or
login
to post a comment