Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuywap-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
yyq
8 years ago
Commit
b3aaed615136198fe6bdb36a6b30a47a09c32853
1 parent
64966300
list js
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
20 deletions
public/js/3party/question-list.page.js
public/js/3party/question-list.page.js
View file @
b3aaed6
...
...
@@ -53,8 +53,6 @@ let tipDialog = {
this
.
$content
.
html
(
info
.
content
);
this
.
$sureBtns
.
addClass
(
'hide'
);
this
.
$shareBtns
.
removeClass
(
'hide'
);
this
.
share
=
this
.
setShareInfo
(
info
.
shareInfo
);
}
else
if
(
typeof
info
===
'string'
)
{
this
.
$content
.
html
(
'<p>'
+
info
+
'</p>'
);
this
.
$sureBtns
.
removeClass
(
'hide'
);
...
...
@@ -67,20 +65,6 @@ let tipDialog = {
},
hide
:
function
()
{
this
.
$base
.
addClass
(
'hide'
);
},
setShareInfo
:
function
(
info
)
{
if
(
!
info
)
{
return
false
;
}
return
function
()
{
yoho
&&
yoho
.
invokeMethod
(
'set.shareInfo'
,
{
title
:
info
.
title
,
link
:
'//www.yohobuy.com/3party/questionnaire/'
+
info
.
id
,
desc
:
info
.
desc
,
imgUrl
:
info
.
img
});
};
}
};
...
...
@@ -101,10 +85,12 @@ $('#qs-list').on('click', 'li', function() {
window
.
location
.
href
=
DETAIL_URI
+
'/'
+
data
.
id
;
}
}
else
if
(
resData
.
code
===
206
)
{
if
(
!
$
(
'#yoho-header'
).
length
)
{
tipDialog
.
show
({
content
:
'<p>调查问卷已成功提交,<br>感谢您的帮助!</p>'
,
shareInfo
:
data
if
(
yoho
&&
yoho
.
isApp
)
{
yoho
.
invokeMethod
(
'go.showShareAlert'
,
{
title
:
data
.
title
,
link
:
'http://m.yohobuy.com/3party/questionnaire/'
+
data
.
id
,
desc
:
data
.
desc
,
imgUrl
:
data
.
img
});
}
else
{
tipDialog
.
show
(
'调查问卷已成功提交,<br>感谢您的帮助!'
);
...
...
Please
register
or
login
to post a comment