Merge branch 'dev' of https://github.com/linlinjava/litemall into dev
This commit is contained in:
@@ -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({
|
||||||
|
|||||||
@@ -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: '更新提示',
|
||||||
|
|||||||
Reference in New Issue
Block a user