Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
xiaoxiaole
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
xiaoxiaole
Commits
716bfb04
Commit
716bfb04
authored
Aug 24, 2019
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
7dab2ecc
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
25 additions
and
1 deletion
+25
-1
.buildrc.js
.buildrc.js
+1
-0
index.html
egret/index.html
+1
-0
MainBase.ts
egret/libs/new_wx/MainBase.ts
+5
-0
NetManager.ts
egret/libs/tw/manager/NetManager.ts
+15
-1
config.js
mock/config.js
+3
-0
No files found.
.buildrc.js
View file @
716bfb04
...
...
@@ -15,6 +15,7 @@ module.exports = {
'/hdtool/*'
:
'http://localhost:3000'
,
'/activityPlugin/*'
:
'http://localhost:3000'
,
'/aaw/*'
:
'http://localhost:3000'
,
'/wechatShare/*'
:
'http://localhost:3000'
,
'/summer/*'
:
'http://localhost:3000'
}
}
\ No newline at end of file
egret/index.html
View file @
716bfb04
...
...
@@ -47,6 +47,7 @@
<script
src=
"libs/aes.js"
></script>
<script
src=
"libs/pad-zeropadding.js"
></script>
<script>
window
[
'registerWX'
]
=
(
result
)
=>
{
console
.
log
(
result
)}
window
[
'price1'
]
=
1
;
window
[
'price2'
]
=
2
;
window
[
'price3'
]
=
3
;
...
...
egret/libs/new_wx/MainBase.ts
View file @
716bfb04
...
...
@@ -236,6 +236,11 @@ export default class MainBase extends eui.UILayer {
Buried
.
init
();
SceneCtrl
.
instance
.
change
(
ModuleTypes
.
START_SCENE
,
this
.
svgaList
);
NetManager
.
ins
.
getShareInfo
(()
=>
{
const
result
=
DataManager
.
ins
.
getData
(
'getShareInfo'
);
window
[
'registerWX'
](
result
);
});
}
}
...
...
egret/libs/tw/manager/NetManager.ts
View file @
716bfb04
...
...
@@ -787,7 +787,21 @@ export class NetManager extends ABNetManager {
};
this
.
send
(
net
);
}
public
getShareInfo
(
callback
:
Function
,
):
void
{
const
net
:
INetData
=
{
name
:
'getShareInfo'
,
uri
:
'/wechatShare/getShareInfo/v2'
,
type
:
'get'
,
hideMsg
:
true
,
dataType
:
'json'
,
param
:
{
wxdebug
:
false
,
url
:
location
.
href
},
callback
:
callback
};
this
.
send
(
net
);
}
public
imgUrl
(
callback
:
Function
,
img64
:
string
):
void
{
const
net
:
INetData
=
{
name
:
'imgURL'
,
...
...
mock/config.js
View file @
716bfb04
const
path
=
require
(
'path'
);
const
config
=
{
'/wechatShare/getShareInfo/v2'
:
{
data
:
'./happyclear/openTreasureBox.json'
},
'/customActivity/happyclear/openTreasureBox'
:
{
data
:
'./happyclear/openTreasureBox.json'
},
...
...
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