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
4b67fa4265c41a51d55d3dcaa0277674ccfee9ff
1 parent
cc83ae95
update for disable size
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
4 deletions
apps/me/models/returns.js
public/js/me/exchange.page.js
public/scss/me/order/_table.css
public/scss/me/return/_change.css
public/tpl/me/size-list.hbs
apps/me/models/returns.js
View file @
4b67fa4
...
...
@@ -156,7 +156,6 @@ const _calcStatusRate = (num, total) => {
*/
const
submitChange
=
(
data
,
uid
)
=>
{
return
returnsAPI
.
changeSubmitAsync
(
data
,
uid
).
then
(
result
=>
{
console
.
log
(
result
);
return
result
;
});
};
...
...
@@ -731,7 +730,6 @@ const getExchangeDetailData = (id, uid) => {
if
(
result
[
0
]
&&
result
[
0
].
data
)
{
let
data
=
result
[
0
].
data
;
// console.log(data)
_
.
forEach
(
data
.
goods_list
,
function
(
value
)
{
_
.
forEach
(
value
.
evidence_images
,
function
(
list
,
index
)
{
value
.
evidence_images
[
index
]
=
list
.
substring
(
0
,
list
.
indexOf
(
'?'
));
...
...
public/js/me/exchange.page.js
View file @
4b67fa4
...
...
@@ -144,6 +144,11 @@ function bindSizeEvent() {
var
id
=
$this
.
data
(
'size'
);
var
$s
=
$this
.
closest
(
'.group.size'
).
find
(
'.size-text'
);
if
(
$this
.
hasClass
(
'disable'
))
{
return
false
;
}
$this
.
parent
().
find
(
'.active'
).
removeClass
(
'active'
);
$this
.
addClass
(
'active'
);
...
...
public/scss/me/order/_table.css
View file @
4b67fa4
...
...
@@ -123,12 +123,13 @@
}
.good-info
{
width
:
377px
;
height
:
154px
;
display
:
inline-block
;
box-sizing
:
border-box
;
border
:
1px
solid
$
borderColor
;
border-top
:
none
;
font-weight
:
normal
;
width
:
377px
;
.iconfont
{
font-weight
:
normal
;
...
...
public/scss/me/return/_change.css
View file @
4b67fa4
...
...
@@ -230,6 +230,12 @@
color
:
#fff
;
border-color
:
#1b1b1b
;
}
&
.disable
{
background-color
:
#d1d1d1
;
color
:
#fff
;
cursor
:
not-allowed
;
}
}
}
}
...
...
public/tpl/me/size-list.hbs
View file @
4b67fa4
...
...
@@ -2,7 +2,7 @@
{{#
goodsList
}}
<div
class=
"
{{#
unless
@first
}}
hide
{{/
unless
}}
size-list"
data-index=
"
{{
@index
}}
"
>
{{#
sizeList
}}
<span
data-size=
"
{{
sizeName
}}
"
data-sku=
"
{{
productSku
}}
"
data-id=
"
{{
goodsId
}}
"
>
{{
sizeName
}}
</span>
<span
data-size=
"
{{
sizeName
}}
"
data-sku=
"
{{
productSku
}}
"
data-id=
"
{{
goodsId
}}
"
{{#
unless
storageNumber
}}
class=
"disable"
{{/
unless
}}
>
{{
sizeName
}}
</span>
{{/
sizeList
}}
</div>
{{/
goodsList
}}
...
...
Please
register
or
login
to post a comment