Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuy-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
1
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
周少峰
8 years ago
Commit
5a70b6189555860c8826bc836f1486a1e25b5f25
1 parent
baf42e6a
consult once
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
6 deletions
apps/product/models/detail-service.js
public/js/product/detail.page.js
apps/product/models/detail-service.js
View file @
5a70b61
...
...
@@ -869,7 +869,7 @@ const _getMaterialDataBySizeInfo = (sizeInfo) => {
})),
washTips
:
{
tip
:
_
.
get
(
sizeInfo
,
'washRemindTipsBo.remindTips'
,
''
),
img
:
_
.
get
(
sizeInfo
,
'washRemindTipsBo.img
'
,
''
)
img
:
_
.
replace
(
_
.
get
(
sizeInfo
,
'washRemindTipsBo.img'
,
''
),
'http:
'
,
''
)
}
};
};
...
...
public/js/product/detail.page.js
View file @
5a70b61
...
...
@@ -1265,7 +1265,8 @@ function loadConsult() {
var
consultsTpl
=
require
(
'hbs/product/consult-item.hbs'
);
var
$consultsUl
=
$
(
'#consults-ul'
),
$consultNum
=
$
(
'.consult-num'
),
loadingConsults
=
false
;
loadingConsults
=
false
,
passFlag
=
true
;
// 顾客咨询
function
loadConsults
(
nowPage
)
{
...
...
@@ -1399,17 +1400,17 @@ function loadConsult() {
learn
:
'及时了解回复内容'
};
var
pass
=
true
;
if
(
content
===
''
)
{
$textArea
.
attr
(
'placeholder'
,
'请输入咨询内容'
);
$textArea
.
addClass
(
'err'
);
pass
=
false
;
pass
Flag
=
false
;
}
if
(
pass
===
false
)
{
if
(
pass
Flag
===
false
)
{
return
;
}
passFlag
=
false
;
$
.
ajax
({
type
:
'POST'
,
url
:
'/product/detail/consult'
,
...
...
@@ -1440,6 +1441,8 @@ function loadConsult() {
// 跳转登录页
location
.
href
=
data
.
data
.
refer
;
}
passFlag
=
true
;
});
});
...
...
Please
register
or
login
to post a comment