Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
Litemall
Commits
ba439aa7
Commit
ba439aa7
authored
Jan 19, 2021
by
linlinjava
Browse files
Merge branch 'dev' of
https://github.com/linlinjava/litemall
into dev
parents
c13ccea8
69de3b54
Changes
2
Hide whitespace changes
Inline
Side-by-side
litemall-wx/app.js
View file @
ba439aa7
...
@@ -4,6 +4,17 @@ var user = require('./utils/user.js');
...
@@ -4,6 +4,17 @@ var user = require('./utils/user.js');
App
({
App
({
onLaunch
:
function
()
{
onLaunch
:
function
()
{
Promise
.
prototype
.
finally
=
function
(
callback
){
let
P
=
this
.
constructor
;
return
this
.
then
(
value
=>
{
P
.
resolve
(
callback
()).
then
(()
=>
value
)
},
reason
=>
{
P
.
resolve
(
callback
()).
then
(()
=>
{
throw
reason
})
}
)
}
const
updateManager
=
wx
.
getUpdateManager
();
const
updateManager
=
wx
.
getUpdateManager
();
wx
.
getUpdateManager
().
onUpdateReady
(
function
()
{
wx
.
getUpdateManager
().
onUpdateReady
(
function
()
{
wx
.
showModal
({
wx
.
showModal
({
...
...
renard-wx/app.js
View file @
ba439aa7
...
@@ -4,7 +4,20 @@ var user = require('./utils/user.js');
...
@@ -4,7 +4,20 @@ var user = require('./utils/user.js');
App
({
App
({
onLaunch
:
function
()
{
onLaunch
:
function
()
{
Promise
.
prototype
.
finally
=
function
(
callback
){
let
P
=
this
.
constructor
;
return
this
.
then
(
value
=>
{
P
.
resolve
(
callback
()).
then
(()
=>
value
)
},
reason
=>
{
P
.
resolve
(
callback
()).
then
(()
=>
{
throw
reason
})
}
)
}
const
updateManager
=
wx
.
getUpdateManager
();
const
updateManager
=
wx
.
getUpdateManager
();
wx
.
getUpdateManager
().
onUpdateReady
(
function
()
{
wx
.
getUpdateManager
().
onUpdateReady
(
function
()
{
wx
.
showModal
({
wx
.
showModal
({
title
:
'
更新提示
'
,
title
:
'
更新提示
'
,
...
...
Write
Preview
Supports
Markdown
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