Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
dev
/
marubi-wish-list-mp
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
eea35a7a
authored
2019-08-08 20:11:10 +0800
by
simon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
no message
1 parent
91d68f79
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
24 deletions
src/pages/index/index.js
src/pages/poster/poster.js
src/pages/index/index.js
View file @
eea35a7
...
...
@@ -13,17 +13,16 @@ Page({
})
},
onLoad
(
options
)
{
// this.initData();
},
initData
()
{
// app.queryIndex({
// auth: false
// app.post({
// url: app.api.member,
// data: {}
// }).then((result) => {
// this.setData({
// indexInfo: app.globalData.indexInfo
// })
// console.log("result:",result);
// resolve();
// })
},
initData
()
{
},
// 开始互动游戏 判断是否会员
onStartHandler
()
{
app
.
queryIndex
({
...
...
src/pages/poster/poster.js
View file @
eea35a7
...
...
@@ -2,7 +2,7 @@ import Poster from '../../miniprogram_dist/poster/poster';
let
app
=
getApp
();
Page
({
data
:
{
isOverShare
:
tru
e
,
// isOverShare: fals
e,
imageUrl
:
""
,
// 海报图片
wxShareTitle
:
""
,
// 分享标题
wxCodePath
:
""
,
// 微信二维码参数地址,分享链接公用
...
...
@@ -10,21 +10,21 @@ Page({
wishList
:
[],
},
onShareAppMessage
()
{
if
(
res
.
from
===
'button'
)
{
// 来自页面内转发按钮
console
.
log
(
res
.
target
)
}
let
title
=
this
.
data
.
wxShareTitle
;
let
path
=
this
.
data
.
wxCodePath
;
let
imageUrl
=
this
.
data
.
imageUrl
;
console
.
log
(
"title:"
,
title
);
console
.
log
(
"path:"
,
path
);
console
.
log
(
"imageUrl:"
,
imageUrl
);
return
{
title
,
path
,
imageUrl
}
//
if (res.from === 'button') {
//
// 来自页面内转发按钮
//
console.log(res.target)
//
}
//
let title = this.data.wxShareTitle;
//
let path = this.data.wxCodePath;
//
let imageUrl = this.data.imageUrl;
//
console.log("title:", title);
//
console.log("path:", path);
//
console.log("imageUrl:", imageUrl);
//
return {
//
title,
//
path,
//
imageUrl
//
}
},
onLoad
(
options
)
{
...
...
Please
register
or
sign in
to post a comment