Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
shuijf2
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wildfirecode13
shuijf2
Commits
1dca4cc2
Commit
1dca4cc2
authored
Jun 25, 2019
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
8ffb4343
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
33 deletions
+22
-33
SceneStart.ts
assets/scripts/scenes/SceneStart.ts
+11
-13
bundle.js
debug/bundle.js
+2
-14
bundle.js.map
debug/bundle.js.map
+1
-1
index.html
index.html
+8
-5
No files found.
assets/scripts/scenes/SceneStart.ts
View file @
1dca4cc2
...
...
@@ -32,23 +32,21 @@ export default class SceneStart extends ScillaComponent implements INavigatorVie
}
sendDojoin
()
{
if
(
window
[
'getDuibaToken'
])
{
window
[
'getDuibaToken'
]((
tokenObj
:
any
)
=>
{
this
.
dojoinFunc
(
tokenObj
.
token
);
},
(
key
:
string
,
messageObj
:
any
)
=>
{
// this.onError(net);
});
}
else
{
this
.
dojoinFunc
();
}
//
if (window['getDuibaToken']) {
//
window['getDuibaToken']((tokenObj: any) => {
//
this.dojoinFunc(tokenObj.token);
//
}, (key: string, messageObj: any) => {
//
// this.onError(net);
//
});
//
} else {
this
.
dojoinFunc
();
//
}
}
dojoinFunc
(
token
?)
{
this
.
broadcast
(
'callApi'
,
1
,
'doJoin'
,
{
token
:
token
,
activityId
:
window
[
'CFG'
].
actId
,
activityType
:
'hdtool'
,
consumerId
:
window
[
'CFG'
].
consumerId
// token: token,
activityId
:
window
[
'CFG'
].
activityId
});
}
...
...
debug/bundle.js
View file @
1dca4cc2
...
...
@@ -7367,23 +7367,11 @@
this
.
sendDojoin
();
};
SceneStart
.
prototype
.
sendDojoin
=
function
()
{
var
_this
=
this
;
if
(
window
[
'getDuibaToken'
])
{
window
[
'getDuibaToken'
](
function
(
tokenObj
)
{
_this
.
dojoinFunc
(
tokenObj
.
token
);
},
function
(
key
,
messageObj
)
{
});
}
else
{
this
.
dojoinFunc
();
}
this
.
dojoinFunc
();
};
SceneStart
.
prototype
.
dojoinFunc
=
function
(
token
)
{
this
.
broadcast
(
'callApi'
,
1
,
'doJoin'
,
{
token
:
token
,
activityId
:
window
[
'CFG'
].
actId
,
activityType
:
'hdtool'
,
consumerId
:
window
[
'CFG'
].
consumerId
activityId
:
window
[
'CFG'
].
activityId
});
};
SceneStart
.
prototype
.
onGotDojoin
=
function
()
{
...
...
debug/bundle.js.map
View file @
1dca4cc2
This diff is collapsed.
Click to expand it.
index.html
View file @
1dca4cc2
...
...
@@ -57,12 +57,15 @@
<script
src=
"debug/bundle.js"
></script>
<script>
var
CFG
=
{
activityId
:
3561555
,
//活动id
freeLimit
:
0
,
//剩余次数
weixinUid
:
'1'
,
//微信uid
nickname
:
'nickname'
,
//昵称
avatar
:
'avatar'
'startTime'
:
1
,
'endTime'
:
2
,
'weddingId'
:
1111
,
'freeLimit'
:
0
,
'weixinUid'
:
00000
,
'nickname'
:
'honingwon'
,
'activity'
:
123
};
CFG
.
_rule
=
'starttttttt<br>第1行第1行第1行第1行第1行第1行第1行第1行第1行第1行第1行第1行第1行第1行<br>第2行<br>第3行<br>第4行<br>第5行<br>第6行<br>第7行<br>第1行<br>第2行<br>第3行<br>第4行<br>第5行<br>第6行<br>第7行endddddd'
;
function
requirelogin
()
{
...
...
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