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
54de25aa6028e4f54ca497ebcd07a01cda73eb6f
1 parent
4f2b30e8
share info
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
13 deletions
apps/service/views/partial/chat/chat-gm.hbs
public/js/3party/question-detail.page.js
apps/service/views/partial/chat/chat-gm.hbs
View file @
54de25a
...
...
@@ -31,7 +31,8 @@
<a
class=
"list clearfix"
href=
"/3party/questionnaire"
>
<i
class=
"tel-ico icon"
></i>
<div>
<p
class=
"title title-mid"
>
调研中心
</p>
<p
class=
"title"
>
调研中心
</p>
<p
class=
"tip"
>
一起来参与,赢取更多惊喜!
</p>
</div>
<i
class=
"arr-ico iconfont"
>

</i>
</a>
...
...
public/js/3party/question-detail.page.js
View file @
54de25a
...
...
@@ -2,7 +2,8 @@ require('3party/question-detail.page.css');
let
$
=
require
(
'yoho-jquery'
),
yoho
=
require
(
'yoho-app'
),
tipDg
=
require
(
'plugin/tip'
);
tipDg
=
require
(
'plugin/tip'
),
share
=
require
(
'common/share'
);
let
question
=
{
$base
:
$
(
'#qs-wrap'
),
...
...
@@ -11,20 +12,28 @@ let question = {
this
.
$item
=
$
(
'.qs-item'
,
this
.
$base
);
this
.
startTime
=
Date
.
parse
(
new
Date
())
/
1000
;
if
(
this
.
$base
.
length
&&
yoho
.
isApp
)
{
if
(
this
.
$base
.
length
)
{
let
data
=
this
.
$base
.
data
();
yoho
.
ready
(
function
()
{
yoho
.
invokeMethod
(
'get.pageType'
,
{
pageType
:
'questionnaire'
this
.
shareInfo
=
{
title
:
data
.
title
,
link
:
'http://m.yohobuy.com/3party/questionnaire/'
+
data
.
id
,
desc
:
data
.
desc
,
imgUrl
:
data
.
img
};
// 设置分享信息
share
(
this
.
shareInfo
);
// 设置app页面信息及分享信息
if
(
yoho
.
isApp
)
{
yoho
.
ready
(
function
()
{
yoho
.
invokeMethod
(
'get.pageType'
,
{
pageType
:
'questionnaire'
});
yoho
.
invokeMethod
(
'set.shareInfo'
,
this
.
shareInfo
);
});
yoho
.
invokeMethod
(
'set.shareInfo'
,
{
title
:
data
.
title
,
link
:
'http://m.yohobuy.com/3party/questionnaire/'
+
data
.
id
,
desc
:
data
.
desc
,
imgUrl
:
data
.
img
});
});
}
}
this
.
bindEvent
();
...
...
Please
register
or
login
to post a comment