Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
duiba-h5-frame
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
江思志
duiba-h5-frame
Commits
c748ee34
Commit
c748ee34
authored
Apr 10, 2019
by
jsz315
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改分享
parent
d1b44182
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
26 deletions
+12
-26
entry.js
src/pages/kejiji/webview/landpage/entry.js
+12
-26
No files found.
src/pages/kejiji/webview/landpage/entry.js
View file @
c748ee34
...
@@ -4,6 +4,7 @@ import { compileRender } from './js/template';
...
@@ -4,6 +4,7 @@ import { compileRender } from './js/template';
import
{
getUrlParameter
}
from
"@js/tooler"
;
import
{
getUrlParameter
}
from
"@js/tooler"
;
import
{
debounce
}
from
'./js/utils'
;
import
{
debounce
}
from
'./js/utils'
;
import
{
get
,
post
}
from
"@js/request"
;
import
{
get
,
post
}
from
"@js/request"
;
import
{
shareConfig
,
updateLink
}
from
"@js/share"
;
const
tplElement
=
{
const
tplElement
=
{
main
:
$
(
'#tpl_main'
).
html
(),
main
:
$
(
'#tpl_main'
).
html
(),
...
@@ -22,6 +23,16 @@ const FROM = getUrlParameter('from');
...
@@ -22,6 +23,16 @@ const FROM = getUrlParameter('from');
const
currentView
=
getUrlParameter
(
'currentView'
);
const
currentView
=
getUrlParameter
(
'currentView'
);
function
wxInit
(){
function
wxInit
(){
let
sellerName
=
contentData
.
sellerCardVO
.
sellerName
;
let
sellerName
=
contentData
.
sellerCardVO
.
sellerName
;
shareConfig
({
link
:
location
.
origin
+
location
.
pathname
+
location
.
search
,
title
:
contentData
.
title
,
desc
:
'来自'
+
sellerName
+
'的分享'
,
img
:
contentData
.
mainImgUrl
,
debug
:
false
})
/*
get(API.getOaJssdk, {
get(API.getOaJssdk, {
url: window.location.href
url: window.location.href
}).then(res => {
}).then(res => {
...
@@ -48,28 +59,6 @@ function wxInit(){
...
@@ -48,28 +59,6 @@ function wxInit(){
var title = contentData.title;
var title = contentData.title;
var desc = '来自' + sellerName + '的分享';
var desc = '来自' + sellerName + '的分享';
var img = contentData.mainImgUrl;
var img = contentData.mainImgUrl;
/*
//分享朋友圈
wx.updateTimelineShareData({
title: contentData.title, // 分享标题
link: link, // 分享链接,该链接域名或路径必须与当前页面对应的公众号JS安全域名一致
imgUrl: contentData.mainImgUrl, // 分享图标
success: function () {
// 设置成功
}
})
//分享给好友
wx.updateAppMessageShareData({
title: contentData.title, // 分享标题
desc: '来源于销售' + sellerName, // 分享描述
link: link, // 分享链接,该链接域名或路径必须与当前页面对应的公众号JS安全域名一致
imgUrl: contentData.mainImgUrl, // 分享图标
success: function () {
// 设置成功
}
})
*/
//分享朋友圈
//分享朋友圈
wx.onMenuShareTimeline({
wx.onMenuShareTimeline({
...
@@ -107,11 +96,8 @@ function wxInit(){
...
@@ -107,11 +96,8 @@ function wxInit(){
}
}
});
});
// wx.error(function (res) {
// alert(res.errMsg);
// });
});
});
*/
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment