Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
shuzilixiangwaibao
/
wanda-vr
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
1
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
c1d7cae2
authored
Sep 09, 2020
by
fengfan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updateTimelineShareData TITLE set
parent
3ce50512
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
4 deletions
+9
-4
index.html
+1
-1
libs/helper.js
+5
-0
show.html
+1
-1
tour.html
+1
-1
travel.html
+1
-1
No files found.
index.html
View file @
c1d7cae2
...
...
@@ -103,7 +103,7 @@ function _init_wx_jssdk(){
})
wx
.
updateTimelineShareData
({
title
:
FRONT_TITLE
,
// 分享标题
title
:
getUserInfoByLocalStorage
()?
`
${
getUserInfoByLocalStorage
()}
的2020幸运打卡地:丹寨`
:
FRONT_TITLE
,
// 分享标题
link
:
FRONT_URL
,
// 分享链接,该链接域名或路径必须与当前页面对应的公众号JS安全域名一致
imgUrl
:
shareImg
(),
// 分享图标
success
:
function
()
{
...
...
libs/helper.js
View file @
c1d7cae2
...
...
@@ -129,11 +129,16 @@ const getUserInfo = async(storage='local')=>{
}
}
else
{
const
userInfo
=
await
$get
(
'/weixin/userinfo'
).
then
(
res
=>
res
.
data
).
catch
(
err
=>
{
throw
err
})
localStorage
.
setItem
(
'userInfo'
,
JSON
.
stringify
(
userInfo
))
return
{...
userInfo
}
}
}
const
getUserInfoByLocalStorage
=
function
()
{
return
JSON
.
parse
(
localStorage
.
getItem
(
'userInfo'
))?
JSON
.
parse
(
localStorage
.
getItem
(
'userInfo'
)).
nickname
:
false
}
function
setWxConfig
(
config
)
{
wx
.
config
(
config
)
}
...
...
show.html
View file @
c1d7cae2
...
...
@@ -433,7 +433,7 @@ var vueInstance = new Vue({
title
:
FRONT_TITLE
,
// 分享标题
desc
:
FRONT_DESC
,
// 分享描述
link
:
FRONT_URL
,
// 分享链接,该链接域名或路径必须与当前页面对应的公众号JS安全域名一致
imgUrl
:
shareImg
(),
// 分享图标currentInfo.small_image
||
imgUrl
:
shareImg
(),
// 分享图标currentInfo.small_image
success
:
function
()
{
// 设置成功
}
...
...
tour.html
View file @
c1d7cae2
...
...
@@ -353,7 +353,7 @@ function _init_wx_jssdk(){
})
wx
.
updateTimelineShareData
({
title
:
FRONT_TITLE
,
// 分享标题
title
:
getUserInfoByLocalStorage
()?
`
${
getUserInfoByLocalStorage
()}
的2020幸运打卡地:丹寨`
:
FRONT_TITLE
,
// 分享标题
link
:
FRONT_URL
,
// 分享链接,该链接域名或路径必须与当前页面对应的公众号JS安全域名一致
imgUrl
:
shareImg
(),
// 分享图标
success
:
function
()
{
...
...
travel.html
View file @
c1d7cae2
...
...
@@ -548,7 +548,7 @@ var vueInstance = new Vue({
})
wx
.
updateTimelineShareData
({
title
:
shareTitle
,
// 分享标题
title
:
getUserInfoByLocalStorage
()?
`
${
getUserInfoByLocalStorage
()}
的2020幸运打卡地:丹寨`
:
FRONT_TITLE
,
// 分享标题
link
:
FRONT_URL
,
// 分享链接,该链接域名或路径必须与当前页面对应的公众号JS安全域名一致
imgUrl
:
shareImg
(),
// 分享图标
success
:
function
()
{
...
...
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