Commit 637c6fe1 authored by wildfirecode's avatar wildfirecode

1

parent 68be8798
const g = typeof global !== 'undefined' ? global : self;
g.appXAppJson = {
"app": {
"$homepage": "pages/index/index"
}
};
if(!self.Map || !self.Set || !self.Symbol) {
importScripts('https://gw.alipayobjects.com/as/g/appx_release/deps/1.0.3/es6-set-map-symbol.js');
}
\ No newline at end of file
require('@alipay/appx-compiler/lib/sjsEnvInit');
require('./config$');
require('../../client/pages/index/index?hash=32d7d2807ed4e666ef03b4b3fe8c38ecf2e34e68');
require('../../client/pages/index2/index2?hash=5158fa18297db3fbaac119609b168d20fcdf1eea');
if(!self.__appxInited) {
self.__appxInited = 1;
require('./config$');
var AFAppX = self.AFAppX.getAppContext
? self.AFAppX.getAppContext().AFAppX
: self.AFAppX;
self.getCurrentPages = AFAppX.getCurrentPages;
self.getApp = AFAppX.getApp;
self.Page = AFAppX.Page;
self.App = AFAppX.App;
self.my = AFAppX.bridge || AFAppX.abridge;
self.abridge = self.my;
self.Component = AFAppX.WorkerComponent || function(){};
self.$global = AFAppX.$global;
self.requirePlugin = AFAppX.requirePlugin;
if(AFAppX.registerApp) {
AFAppX.registerApp({
appJSON: appXAppJson,
});
}
function success() {
require('../../client/app');
require('../../client/pages/index/index?hash=32d7d2807ed4e666ef03b4b3fe8c38ecf2e34e68');
require('../../client/pages/index2/index2?hash=5158fa18297db3fbaac119609b168d20fcdf1eea');
}
self.bootstrapApp ? self.bootstrapApp({ success }) : success();
}
\ No newline at end of file
import cloud from '@tbmp/mp-cloud-sdk'; import cloud from '@tbmp/mp-cloud-sdk';
cloud.init({ cloud.init({
env: 'test'//'online' test env: 'test' //'online' test
}); });
App({ App({
cloud, cloud,
cloudName: "aaaa",//待修改 cloudName: "filaStar", //待修改
onLaunch(options) { onLaunch(options) {
// 第一次打开 // 第一次打开
// 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 || '5ec5f960f5d6906095de717e'; this.activityId = activityId || '5ec5f960f5d6906095de717e';
}, },
onShow(options) { onShow(options) {
// 从后台被 scheme 重新打开 // 从后台被 scheme 重新打开
// options.query == {number:1} // options.query == {number:1}
}, },
}); });
\ No newline at end of file
import { Main } from './output.1591869086'; import { Main } from './output.1592899792';
import { getUserAddress, favorShop, getAuthUserInfo } from '../../utils/utils'; import { getUserAddress, favorShop, getAuthUserInfo } from '../../utils/utils';
const app = getApp() const app = getApp()
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
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