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

优化

parent 3c45be53
...@@ -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;
......
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