Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
梁建民
/
h5
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
eb80a639
authored
Jan 09, 2020
by
梁建民
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
js
parent
9724a9e4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
26 additions
and
8 deletions
public/index.html
src/views/common/wxShare.vue
src/views/sample/sample.vue
view/13.js
view/14.js
view/15.js
view/index.html
public/index.html
View file @
eb80a639
...
...
@@ -25,7 +25,7 @@
var
fwtimes
=
window
.
fwtime
-
(
Math
.
floor
((
new
Date
().
getTime
())
/
1000
));
//获取服务器时间差
</script>
<script
src=
"https://res.wx.qq.com/open/js/jweixin-1.4.0.js"
type=
"text/javascript"
charset=
"utf-8"
></script>
<script
src=
"
//open.mobile.qq.com/sdk/qqapi.js?_bid=152
"
type=
"text/javascript"
charset=
"utf-8"
></script>
<script
src=
"
http://qzonestyle.gtimg.cn/qzone/qzact/common/share/share.js
"
type=
"text/javascript"
charset=
"utf-8"
></script>
<script
src=
"<%= BASE_URL %>static/js/flexible.min.js"
type=
"text/javascript"
charset=
"utf-8"
></script>
<script
src=
"<%= BASE_URL %>static/js/shence.min.js"
type=
"text/javascript"
charset=
"utf-8"
></script>
</head>
...
...
src/views/common/wxShare.vue
View file @
eb80a639
...
...
@@ -83,6 +83,30 @@
methods
:
{
share
()
{
var
self
=
this
;
try
{
setShareInfo
({
title
:
'父爱,在你看不到的地方'
,
// 分享标题
summary
:
'父爱如山,感觉不到只因身在此山中'
,
// 分享内容
pic
:
'http://qzonestyle.gtimg.cn/aoi/sola/20150617094556_OvfOpoRKRB.png'
,
// 分享图片
url
:
'http://qzs.qzone.qq.com/qzone/qzact/act/2015/father-day-m/index.html'
,
// 分享链接
// 微信权限验证配置信息,若不在微信传播,可忽略
WXconfig
:
{
swapTitleInWX
:
true
,
// 是否标题内容互换(仅朋友圈,因朋友圈内只显示标题)
appId
:
self
.
wxShareInfo
.
appId
,
// 公众号的唯一标识
timestamp
:
self
.
wxShareInfo
.
timestamp
,
// 生成签名的时间戳
nonceStr
:
self
.
wxShareInfo
.
nonceStr
,
// 生成签名的随机串
signature
:
self
.
wxShareInfo
.
signature
// 签名
}
});
}
catch
(
e
)
{
alert
(
e
)
}
wx
.
config
({
debug
:
true
,
appId
:
self
.
wxShareInfo
.
appId
,
...
...
src/views/sample/sample.vue
View file @
eb80a639
...
...
@@ -106,12 +106,6 @@ import { services as Services } from "../../api/index";
import
util
from
"../../util/index"
;
import
{
Tab
,
Tabs
,
Lazyload
,
List
,
Toast
}
from
"vant"
;
mqq
.
data
.
setShareInfo
({
title
:
'1'
,
desc
:
'2'
,
image_url
:
'https://h5static.ichunt.com/img/samplebanner.2d38ce4c.png'
,
share_url
:
'https://www.baidu.com'
});
Vue
.
use
(
Tab
)
...
...
view/13.js
View file @
eb80a639
This diff is collapsed.
Click to expand it.
view/14.js
View file @
eb80a639
This diff is collapsed.
Click to expand it.
view/15.js
View file @
eb80a639
This diff is collapsed.
Click to expand it.
view/index.html
View file @
eb80a639
...
...
@@ -25,7 +25,7 @@
var
fwtimes
=
window
.
fwtime
-
(
Math
.
floor
((
new
Date
().
getTime
())
/
1000
));
//获取服务器时间差
</script>
<script
src=
"https://res.wx.qq.com/open/js/jweixin-1.4.0.js"
type=
"text/javascript"
charset=
"utf-8"
></script>
<script
src=
"
//open.mobile.qq.com/sdk/qqapi.js?_bid=152
"
type=
"text/javascript"
charset=
"utf-8"
></script>
<script
src=
"
http://qzonestyle.gtimg.cn/qzone/qzact/common/share/share.js
"
type=
"text/javascript"
charset=
"utf-8"
></script>
<script
src=
"//szh5static.ichunt.com/static/js/flexible.min.js"
type=
"text/javascript"
charset=
"utf-8"
></script>
<script
src=
"//szh5static.ichunt.com/static/js/shence.min.js"
type=
"text/javascript"
charset=
"utf-8"
></script>
<link
href=
"//szh5static.ichunt.com/0.js"
rel=
"prefetch"
><link
href=
"//szh5static.ichunt.com/1.js"
rel=
"prefetch"
><link
href=
"//szh5static.ichunt.com/10.js"
rel=
"prefetch"
><link
href=
"//szh5static.ichunt.com/11.js"
rel=
"prefetch"
><link
href=
"//szh5static.ichunt.com/12.js"
rel=
"prefetch"
><link
href=
"//szh5static.ichunt.com/13.js"
rel=
"prefetch"
><link
href=
"//szh5static.ichunt.com/14.js"
rel=
"prefetch"
><link
href=
"//szh5static.ichunt.com/15.js"
rel=
"prefetch"
><link
href=
"//szh5static.ichunt.com/16.js"
rel=
"prefetch"
><link
href=
"//szh5static.ichunt.com/17.js"
rel=
"prefetch"
><link
href=
"//szh5static.ichunt.com/18.js"
rel=
"prefetch"
><link
href=
"//szh5static.ichunt.com/19.js"
rel=
"prefetch"
><link
href=
"//szh5static.ichunt.com/2.js"
rel=
"prefetch"
><link
href=
"//szh5static.ichunt.com/20.js"
rel=
"prefetch"
><link
href=
"//szh5static.ichunt.com/21.js"
rel=
"prefetch"
><link
href=
"//szh5static.ichunt.com/22.js"
rel=
"prefetch"
><link
href=
"//szh5static.ichunt.com/23.js"
rel=
"prefetch"
><link
href=
"//szh5static.ichunt.com/24.js"
rel=
"prefetch"
><link
href=
"//szh5static.ichunt.com/25.js"
rel=
"prefetch"
><link
href=
"//szh5static.ichunt.com/26.js"
rel=
"prefetch"
><link
href=
"//szh5static.ichunt.com/27.js"
rel=
"prefetch"
><link
href=
"//szh5static.ichunt.com/28.js"
rel=
"prefetch"
><link
href=
"//szh5static.ichunt.com/29.js"
rel=
"prefetch"
><link
href=
"//szh5static.ichunt.com/3.js"
rel=
"prefetch"
><link
href=
"//szh5static.ichunt.com/30.js"
rel=
"prefetch"
><link
href=
"//szh5static.ichunt.com/31.js"
rel=
"prefetch"
><link
href=
"//szh5static.ichunt.com/32.js"
rel=
"prefetch"
><link
href=
"//szh5static.ichunt.com/33.js"
rel=
"prefetch"
><link
href=
"//szh5static.ichunt.com/34.js"
rel=
"prefetch"
><link
href=
"//szh5static.ichunt.com/35.js"
rel=
"prefetch"
><link
href=
"//szh5static.ichunt.com/36.js"
rel=
"prefetch"
><link
href=
"//szh5static.ichunt.com/37.js"
rel=
"prefetch"
><link
href=
"//szh5static.ichunt.com/38.js"
rel=
"prefetch"
><link
href=
"//szh5static.ichunt.com/39.js"
rel=
"prefetch"
><link
href=
"//szh5static.ichunt.com/4.js"
rel=
"prefetch"
><link
href=
"//szh5static.ichunt.com/40.js"
rel=
"prefetch"
><link
href=
"//szh5static.ichunt.com/41.js"
rel=
"prefetch"
><link
href=
"//szh5static.ichunt.com/42.js"
rel=
"prefetch"
><link
href=
"//szh5static.ichunt.com/43.js"
rel=
"prefetch"
><link
href=
"//szh5static.ichunt.com/44.js"
rel=
"prefetch"
><link
href=
"//szh5static.ichunt.com/45.js"
rel=
"prefetch"
><link
href=
"//szh5static.ichunt.com/46.js"
rel=
"prefetch"
><link
href=
"//szh5static.ichunt.com/47.js"
rel=
"prefetch"
><link
href=
"//szh5static.ichunt.com/48.js"
rel=
"prefetch"
><link
href=
"//szh5static.ichunt.com/49.js"
rel=
"prefetch"
><link
href=
"//szh5static.ichunt.com/5.js"
rel=
"prefetch"
><link
href=
"//szh5static.ichunt.com/50.js"
rel=
"prefetch"
><link
href=
"//szh5static.ichunt.com/6.js"
rel=
"prefetch"
><link
href=
"//szh5static.ichunt.com/7.js"
rel=
"prefetch"
><link
href=
"//szh5static.ichunt.com/8.js"
rel=
"prefetch"
><link
href=
"//szh5static.ichunt.com/9.js"
rel=
"prefetch"
><link
href=
"//szh5static.ichunt.com/app.js"
rel=
"preload"
as=
"script"
></head>
...
...
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