Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
html
/
wanda-ball
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Wiki
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
fea4a36a
authored
May 27, 2019
by
hank
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
分享修改
parent
04627371
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
8 deletions
+14
-8
src/components/Detail.vue
+9
-3
src/modules/store/index.js
+1
-1
src/pages/index/Shouye.vue
+4
-4
No files found.
src/components/Detail.vue
View file @
fea4a36a
...
...
@@ -376,7 +376,7 @@ export default {
},
share
()
{
var
_this
=
this
alert
(
'share'
)
//
alert('share')
window
.
wx
.
miniProgram
.
getEnv
(
function
(
res
)
{
if
(
res
.
miniprogram
)
{
// todo
...
...
@@ -385,8 +385,14 @@ export default {
pages
:
'pages/webview/webview'
}).
then
(
res
=>
{
// _this.shareCode = res.data.data.weixinCode
_this
.
getCanvasDrawImage
(
res
.
data
.
data
.
weixinCode
)
_this
.
shareOnoff2
=
true
if
(
res
.
data
.
data
.
weixinCode
)
{
_this
.
getCanvasDrawImage
(
res
.
data
.
data
.
weixinCode
)
_this
.
shareOnoff2
=
true
}
else
{
_this
.
getCanvasDrawImage
()
_this
.
shareOnoff2
=
true
}
alert
(
JSON
.
stringify
(
res
.
data
.
data
))
})
}
else
{
...
...
src/modules/store/index.js
View file @
fea4a36a
...
...
@@ -80,7 +80,7 @@ export default new Vuex.Store({
// alert('获取用户信息成功')
resolve
(
res
)
}).
catch
(
e
=>
{
alert
(
'获取用户信息失败'
)
//
alert('获取用户信息失败')
reject
(
e
)
})
})
...
...
src/pages/index/Shouye.vue
View file @
fea4a36a
...
...
@@ -505,9 +505,9 @@ export default {
this
.
lastAllLoaded
=
true
;
this
.
ruweidot
=
{
backgroundColor
:
'transparent'
};
Toast
({
message
:
'没有更多'
});
//
Toast({
//
message: '没有更多'
//
});
return
}
...
...
@@ -563,7 +563,7 @@ export default {
'onMenuShareQZone'
];
window
.
wx
.
config
({
debug
:
tru
e
,
// 开启调试模式,
debug
:
fals
e
,
// 开启调试模式,
appId
:
res
.
appId
,
// 必填,企业号的唯一标识,此处填写企业号corpid
timestamp
:
res
.
timestamp
,
// 必填,生成签名的时间戳
nonceStr
:
res
.
nonceStr
,
// 必填,生成签名的随机串
...
...
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