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
f652c9ae
Commit
f652c9ae
authored
Aug 24, 2019
by
wjf
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of gitlab2.dui88.com:wanghongyuan/xiaoxiaole into dev
parents
29422847
873e267a
Changes
5
Hide 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 @
f652c9ae
...
...
@@ -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 @
f652c9ae
...
...
@@ -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 @
f652c9ae
...
...
@@ -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 @
f652c9ae
...
...
@@ -814,7 +814,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 @
f652c9ae
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