Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
wfc13
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
wildfirecode13
wfc13
Commits
5d5ca03a
Commit
5d5ca03a
authored
Aug 26, 2021
by
wildfirecode13
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
u
parent
cf514893
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
20 deletions
+5
-20
getTimes.ts
project/src/panels/getTimes.ts
+3
-5
IndexScene.ts
project/src/scenes/IndexScene.ts
+1
-4
share.ts
project/src/share.ts
+1
-11
No files found.
project/src/panels/getTimes.ts
View file @
5d5ca03a
...
...
@@ -20,16 +20,14 @@ export class getTimesPanel extends Panel {
this
.
hidePanel
();
showShareMask
();
await
sendWebNet
(
WebNetName
.
getFreeCount
,{},
null
,
true
);
sendWebNet
(
WebNetName
.
index
).
then
(
res
=>
{
layers
.
stage
.
dispatchEvent
(
'updateIndexData'
)
});
sendLog
(
"click"
,
7
);
setTimeout
(()
=>
{
sendWebNet
(
WebNetName
.
index
).
then
(
res
=>
{
layers
.
stage
.
dispatchEvent
(
'updateIndexData'
)
});
hideShareMask
();
showPanel
(
SharePanel
);
},
4000
)
...
...
project/src/scenes/IndexScene.ts
View file @
5d5ca03a
...
...
@@ -17,11 +17,8 @@ import { ScrollItem } from "./ScrollItem";
watchPageVisibility
((
visible
)
=>
{
console
.
log
(
'页面visible'
,
visible
);
if
(
visible
)
{
sendWebNet
(
WebNetName
.
index
).
then
(
res
=>
{
layers
.
stage
.
dispatchEvent
(
'updateIndexData'
)
})
location
.
href
=
'https://85337.activity-1.m.duiba.com.cn/projectx/pf80f49cf/index.html?appID=85337&iscustom=1'
}
});
...
...
project/src/share.ts
View file @
5d5ca03a
...
...
@@ -3,17 +3,7 @@
export
const
startShare
=
()
=>
{
console
.
log
(
'wx.miniProgram.postMessage'
)
// start([WeixinMini], (way, success, payload) => {
// console.log('分享' + success ? '成功' : '失败');
// updateShare({
// title: '我正在参加d\'zzit拆盲盒', //分享标题
// content: '一起来吧~惊喜好物等着你', //分享内容
// url: 'https://85337.activity-1.m.duiba.com.cn/projectx/pf80f49cf/index.html?appID=85337&iscustom=1&issharepage=1', //分享链接
// thumbnail: 'https://yun.duiba.com.cn/db_games/disulogo.jpg', //分享缩略图
// });
// });
//@ts-ignore
wx
.
miniProgram
.
postMessage
(
...
...
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