Commit 051597b2 authored by 熊东起's avatar 熊东起

优化

parent 3c45be53
......@@ -5,9 +5,12 @@ self.__appxInited = 1;
require('./config$');
var AFAppX = self.AFAppX.getAppContext
? self.AFAppX.getAppContext().AFAppX
: self.AFAppX;
if( navigator.userAgent && (navigator.userAgent.indexOf('LyraVM') > 0 || navigator.userAgent.indexOf('AlipayIDE') > 0) ) {
var AFAppX = self.AFAppX.getAppContext ? self.AFAppX.getAppContext().AFAppX : self.AFAppX;
} else {
importScripts('https://appx/af-appx.worker.min.js');
var AFAppX = self.AFAppX;
}
self.getCurrentPages = AFAppX.getCurrentPages;
self.getApp = AFAppX.getApp;
self.Page = AFAppX.Page;
......
This source diff could not be displayed because it is too large. You can view the blob instead.
import cloud from '@tbmp/mp-cloud-sdk';
cloud.init({
env: 'online' //'online' test
env: 'test' //'online' test
});
App({
cloud,
......@@ -14,10 +14,10 @@ App({
// options.query == {number:1}///"enableSkia": "true"
console.info('App onLaunch');
const { activityId } = options.query || {};
console.log(activityId)
this.activityId = activityId || '5efc831552bbde91d19e2cac';
console.log(activityId);
// this.activityId = activityId || '5efc831552bbde91d19e2cac';
// this.activityId = activityId || '5ef880873075d9927e7f10b4';
// this.activityId = activityId || '5ef1b4f72ad1116ce639e23e';
this.activityId = activityId || '5efc14a98e6a08930b59105d';
},
onShow(options) {
// 从后台被 scheme 重新打开
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment