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
4815c386
authored
Sep 26, 2019
by
肖康
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
阿斯达
parent
f209c7dc
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
12 deletions
src/views/common/wxShare.vue
view/index.html
src/views/common/wxShare.vue
View file @
4815c386
...
@@ -3,7 +3,8 @@
...
@@ -3,7 +3,8 @@
<
script
>
<
script
>
import
Vue
from
'vue'
import
Vue
from
'vue'
import
{
mapState
}
from
'vuex'
import
{
mapState
}
from
'vuex'
let
wxjs
=
require
(
'weixin-js-sdk'
)
import
util
from
"../../util/index"
let
wxjs
=
require
(
'weixin-js-sdk'
);
export
default
{
export
default
{
name
:
'wxShare'
,
name
:
'wxShare'
,
props
:
{
props
:
{
...
@@ -16,12 +17,12 @@
...
@@ -16,12 +17,12 @@
data
()
{
data
()
{
return
{
return
{
shareObj
:{
shareObj
:{
title
:
"
asdasdas
"
,
// 分享标题
title
:
"
好物分享给你,帮我助力,我们一起免费拿样品
"
,
// 分享标题
desc
:
1
,
// 分享描述
desc
:
"在吗?拜托帮我点一下,你也能免费申请元器件样品~帮我助力 你拿样品"
,
// 分享描述
link
:
1
,
// 分享链接
link
:
window
.
location
.
origin
+
"/v3/samplereg?uid="
+
util
.
getCookie
(
"Yo4teW_uid"
)
,
// 分享链接
imgUrl
:
"http://img.ichunt.com/images/
cms/201909/09/2b0615811e2a34b98f7ae6db8847106b.jp
g"
,
// 分享图标
imgUrl
:
"http://img.ichunt.com/images/
ichunt/self_sample/apply.pn
g"
,
// 分享图标
success
:
function
(
resp
)
{
success
:
function
(
resp
)
{
alert
(
3
)
}
}
}
}
}
}
...
@@ -34,7 +35,7 @@
...
@@ -34,7 +35,7 @@
},
},
watch
:{
watch
:{
wxShareState
(
val
){
wxShareState
(
val
){
if
(
val
){
if
(
val
&&
util
.
getCookie
(
"Yo4teW_uid"
)
){
this
.
share
();
this
.
share
();
}
}
}
}
...
...
view/index.html
View file @
4815c386
...
@@ -18,16 +18,16 @@
...
@@ -18,16 +18,16 @@
<meta
name=
"x5-page-mode"
content=
"app"
>
<meta
name=
"x5-page-mode"
content=
"app"
>
<meta
name=
"description"
content=
"猎芯网,快速成长的专业电子元器件商城,贸泽(MOUSER)全系产品、e络盟(element14)树莓派系列产品授权经销商,已获得多轮风险投资。为客户提供电子元器件现货,IC采购,进口报关,电子元器件寄售,供应链金融等一站式电子元器件采购服务。"
>
<meta
name=
"description"
content=
"猎芯网,快速成长的专业电子元器件商城,贸泽(MOUSER)全系产品、e络盟(element14)树莓派系列产品授权经销商,已获得多轮风险投资。为客户提供电子元器件现货,IC采购,进口报关,电子元器件寄售,供应链金融等一站式电子元器件采购服务。"
>
<meta
name=
"keywords"
content=
"猎芯网,电子元器件采购,电子元器件商城,电子元器件现货,IC采购网,电子元器件寄售,电子元件,元器件商城,元器件采购,电子商城,"
>
<meta
name=
"keywords"
content=
"猎芯网,电子元器件采购,电子元器件商城,电子元器件现货,IC采购网,电子元器件寄售,电子元件,元器件商城,元器件采购,电子商城,"
>
<link
rel=
"icon"
href=
"//s
tatic.leixin
.com/favicon.ico"
>
<link
rel=
"icon"
href=
"//s
zh5static.ichunt
.com/favicon.ico"
>
<link
rel=
"stylesheet"
href=
"/v3/dist/res/m/css/font/iconfont.css"
>
<link
rel=
"stylesheet"
href=
"/v3/dist/res/m/css/font/iconfont.css"
>
<script
type=
"text/javascript"
src=
"/h5/view/get_time.php"
></script>
<script
type=
"text/javascript"
src=
"/h5/view/get_time.php"
></script>
<script
type=
"text/javascript"
>
<script
type=
"text/javascript"
>
var
fwtimes
=
window
.
fwtime
-
(
Math
.
floor
((
new
Date
().
getTime
())
/
1000
));
//获取服务器时间差
var
fwtimes
=
window
.
fwtime
-
(
Math
.
floor
((
new
Date
().
getTime
())
/
1000
));
//获取服务器时间差
</script>
</script>
<script
src=
"https://res.wx.qq.com/open/js/jweixin-1.3.2.js"
type=
"text/javascript"
charset=
"utf-8"
></script>
<script
src=
"https://res.wx.qq.com/open/js/jweixin-1.3.2.js"
type=
"text/javascript"
charset=
"utf-8"
></script>
<script
src=
"//s
tatic.leixin
.com/static/js/flexible.min.js"
type=
"text/javascript"
charset=
"utf-8"
></script>
<script
src=
"//s
zh5static.ichunt
.com/static/js/flexible.min.js"
type=
"text/javascript"
charset=
"utf-8"
></script>
<script
src=
"//s
tatic.leixin
.com/static/js/shence.min.js"
type=
"text/javascript"
charset=
"utf-8"
></script>
<script
src=
"//s
zh5static.ichunt
.com/static/js/shence.min.js"
type=
"text/javascript"
charset=
"utf-8"
></script>
<link
href=
"//s
tatic.leixin.com/0.js"
rel=
"prefetch"
><link
href=
"//static.leixin.com/10.js"
rel=
"prefetch"
><link
href=
"//static.leixin.com/11.js"
rel=
"prefetch"
><link
href=
"//static.leixin.com/12.js"
rel=
"prefetch"
><link
href=
"//static.leixin.com/13.js"
rel=
"prefetch"
><link
href=
"//static.leixin.com/14.js"
rel=
"prefetch"
><link
href=
"//static.leixin.com/15.js"
rel=
"prefetch"
><link
href=
"//static.leixin.com/16.js"
rel=
"prefetch"
><link
href=
"//static.leixin.com/17.js"
rel=
"prefetch"
><link
href=
"//static.leixin.com/18.js"
rel=
"prefetch"
><link
href=
"//static.leixin.com/19.js"
rel=
"prefetch"
><link
href=
"//static.leixin.com/2.js"
rel=
"prefetch"
><link
href=
"//static.leixin.com/20.js"
rel=
"prefetch"
><link
href=
"//static.leixin.com/21.js"
rel=
"prefetch"
><link
href=
"//static.leixin.com/22.js"
rel=
"prefetch"
><link
href=
"//static.leixin.com/23.js"
rel=
"prefetch"
><link
href=
"//static.leixin.com/24.js"
rel=
"prefetch"
><link
href=
"//static.leixin.com/25.js"
rel=
"prefetch"
><link
href=
"//static.leixin.com/26.js"
rel=
"prefetch"
><link
href=
"//static.leixin.com/27.js"
rel=
"prefetch"
><link
href=
"//static.leixin.com/28.js"
rel=
"prefetch"
><link
href=
"//static.leixin.com/29.js"
rel=
"prefetch"
><link
href=
"//static.leixin.com/3.js"
rel=
"prefetch"
><link
href=
"//static.leixin.com/30.js"
rel=
"prefetch"
><link
href=
"//static.leixin.com/31.js"
rel=
"prefetch"
><link
href=
"//static.leixin.com/32.js"
rel=
"prefetch"
><link
href=
"//static.leixin.com/33.js"
rel=
"prefetch"
><link
href=
"//static.leixin.com/34.js"
rel=
"prefetch"
><link
href=
"//static.leixin.com/35.js"
rel=
"prefetch"
><link
href=
"//static.leixin.com/36.js"
rel=
"prefetch"
><link
href=
"//static.leixin.com/37.js"
rel=
"prefetch"
><link
href=
"//static.leixin.com/38.js"
rel=
"prefetch"
><link
href=
"//static.leixin.com/39.js"
rel=
"prefetch"
><link
href=
"//static.leixin.com/4.js"
rel=
"prefetch"
><link
href=
"//static.leixin.com/40.js"
rel=
"prefetch"
><link
href=
"//static.leixin.com/41.js"
rel=
"prefetch"
><link
href=
"//static.leixin.com/42.js"
rel=
"prefetch"
><link
href=
"//static.leixin.com/43.js"
rel=
"prefetch"
><link
href=
"//static.leixin.com/44.js"
rel=
"prefetch"
><link
href=
"//static.leixin.com/45.js"
rel=
"prefetch"
><link
href=
"//static.leixin.com/46.js"
rel=
"prefetch"
><link
href=
"//static.leixin.com/47.5a8c79be568a96b363b0.hot-update.js"
rel=
"prefetch"
><link
href=
"//static.leixin.com/47.js"
rel=
"prefetch"
><link
href=
"//static.leixin.com/48.js"
rel=
"prefetch"
><link
href=
"//static.leixin.com/5.js"
rel=
"prefetch"
><link
href=
"//static.leixin.com/6.js"
rel=
"prefetch"
><link
href=
"//static.leixin.com/7.js"
rel=
"prefetch"
><link
href=
"//static.leixin.com/8.js"
rel=
"prefetch"
><link
href=
"//static.leixin.com/9.js"
rel=
"prefetch"
><link
href=
"//static.leixin
.com/app.js"
rel=
"preload"
as=
"script"
></head>
<link
href=
"//s
zh5static.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/5.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>
<body
class=
"boxsiz"
>
<body
class=
"boxsiz"
>
<noscript>
<noscript>
<strong>
网站出现了一点小问题,正在紧急修复中.......
</strong>
<strong>
网站出现了一点小问题,正在紧急修复中.......
</strong>
...
@@ -278,5 +278,5 @@
...
@@ -278,5 +278,5 @@
sensors
.
quick
(
'autoTrack'
);
sensors
.
quick
(
'autoTrack'
);
}
}
</script>
</script>
<script
type=
"text/javascript"
src=
"//s
tatic.leixin
.com/app.js"
></script></body>
<script
type=
"text/javascript"
src=
"//s
zh5static.ichunt
.com/app.js"
></script></body>
</html>
</html>
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