Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
taobaominiDemo
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
taobaominiDemo
Commits
051597b2
Commit
051597b2
authored
Aug 27, 2020
by
熊东起
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化
parent
3c45be53
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
1921 additions
and
307 deletions
+1921
-307
index$.worker.js
.tea/entryFiles-development/index$.worker.js
+16
-13
index$.worker.js
.tea/entryFiles-production/index$.worker.js
+1640
-28
app.js
client/app.js
+4
-4
output.js
client/pages/index/output.js
+261
-262
No files found.
.tea/entryFiles-development/index$.worker.js
View file @
051597b2
...
@@ -5,9 +5,12 @@ self.__appxInited = 1;
...
@@ -5,9 +5,12 @@ self.__appxInited = 1;
require
(
'./config$'
);
require
(
'./config$'
);
var
AFAppX
=
self
.
AFAppX
.
getAppContext
if
(
navigator
.
userAgent
&&
(
navigator
.
userAgent
.
indexOf
(
'LyraVM'
)
>
0
||
navigator
.
userAgent
.
indexOf
(
'AlipayIDE'
)
>
0
)
)
{
?
self
.
AFAppX
.
getAppContext
().
AFAppX
var
AFAppX
=
self
.
AFAppX
.
getAppContext
?
self
.
AFAppX
.
getAppContext
().
AFAppX
:
self
.
AFAppX
;
:
self
.
AFAppX
;
}
else
{
importScripts
(
'https://appx/af-appx.worker.min.js'
);
var
AFAppX
=
self
.
AFAppX
;
}
self
.
getCurrentPages
=
AFAppX
.
getCurrentPages
;
self
.
getCurrentPages
=
AFAppX
.
getCurrentPages
;
self
.
getApp
=
AFAppX
.
getApp
;
self
.
getApp
=
AFAppX
.
getApp
;
self
.
Page
=
AFAppX
.
Page
;
self
.
Page
=
AFAppX
.
Page
;
...
...
.tea/entryFiles-production/index$.worker.js
View file @
051597b2
This source diff could not be displayed because it is too large. You can
view the blob
instead.
client/app.js
View file @
051597b2
import
cloud
from
'@tbmp/mp-cloud-sdk'
;
import
cloud
from
'@tbmp/mp-cloud-sdk'
;
cloud
.
init
({
cloud
.
init
({
env
:
'
online
'
//'online' test
env
:
'
test
'
//'online' test
});
});
App
({
App
({
cloud
,
cloud
,
...
@@ -14,10 +14,10 @@ App({
...
@@ -14,10 +14,10 @@ App({
// options.query == {number:1}///"enableSkia": "true"
// options.query == {number:1}///"enableSkia": "true"
console
.
info
(
'App onLaunch'
);
console
.
info
(
'App onLaunch'
);
const
{
activityId
}
=
options
.
query
||
{};
const
{
activityId
}
=
options
.
query
||
{};
console
.
log
(
activityId
)
console
.
log
(
activityId
)
;
this
.
activityId
=
activityId
||
'5efc831552bbde91d19e2cac'
;
//
this.activityId = activityId || '5efc831552bbde91d19e2cac';
// this.activityId = activityId || '5ef880873075d9927e7f10b4';
// this.activityId = activityId || '5ef880873075d9927e7f10b4';
// this.activityId = activityId || '5ef1b4f72ad1116ce639e23e
';
this
.
activityId
=
activityId
||
'5efc14a98e6a08930b59105d
'
;
},
},
onShow
(
options
)
{
onShow
(
options
)
{
// 从后台被 scheme 重新打开
// 从后台被 scheme 重新打开
...
...
client/pages/index/output.js
View file @
051597b2
This diff is collapsed.
Click to expand it.
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