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

优化

parent 3c45be53
...@@ -5,19 +5,22 @@ self.__appxInited = 1; ...@@ -5,19 +5,22 @@ 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 {
self.getCurrentPages = AFAppX.getCurrentPages; importScripts('https://appx/af-appx.worker.min.js');
self.getApp = AFAppX.getApp; var AFAppX = self.AFAppX;
self.Page = AFAppX.Page; }
self.App = AFAppX.App; self.getCurrentPages = AFAppX.getCurrentPages;
self.my = AFAppX.bridge || AFAppX.abridge; self.getApp = AFAppX.getApp;
self.abridge = self.my; self.Page = AFAppX.Page;
self.Component = AFAppX.WorkerComponent || function(){}; self.App = AFAppX.App;
self.$global = AFAppX.$global; self.my = AFAppX.bridge || AFAppX.abridge;
self.requirePlugin = AFAppX.requirePlugin; self.abridge = self.my;
self.Component = AFAppX.WorkerComponent || function(){};
self.$global = AFAppX.$global;
self.requirePlugin = AFAppX.requirePlugin;
if(AFAppX.registerApp) { if(AFAppX.registerApp) {
AFAppX.registerApp({ AFAppX.registerApp({
......
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'; 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 重新打开
......
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