Commit 2c8ca55e authored by wildfirecode13's avatar wildfirecode13

1

parent c7afbf9d
......@@ -5,22 +5,19 @@ self.__appxInited = 1;
require('./config$');
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;
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;
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({
......
......@@ -359,6 +359,14 @@ Page({
// playBgMusic(true,musicUrl)
playBgMusic(musicSwitch, musicUrl);
console.log('fuck music')
}
},
onShow(){
console.log('onshow')
this.addMusic(true)
},
onHide(){
console.log('onHide')
this.addMusic(false)
},
});
\ No newline at end of file
......@@ -3,7 +3,7 @@ const resList = {
name: '底拷贝',
ext: '.png',
uuid: '66f2b76f-7265-4cb2-9b4d-7e8207ab1d74',
url: '//yun.duiba.com.cn/spark-prod/assets/4247a1ded5872a2acaf9312dd1aeb505cb405771.png',
url: '//yun.duiba.com.cn/aurora/assets/aa4645f8046c1b1d95fbd0ebc969b83c65e6945e.png',
},
'dd7d3a3b-6fcb-427d-8353-da169708bbab': {
name: 'logo',
......@@ -15,7 +15,7 @@ const resList = {
name: '图',
ext: '.png',
uuid: '41567d28-d1c4-454f-8bb4-4bcb6a103be0',
url: '//yun.duiba.com.cn/spark-prod/assets/0a923a3f9f9f9e5955ac1725ab2caa63ac54e1cc.png',
url: '//yun.duiba.com.cn/aurora/assets/be659f0cbdb138fe695067920be0383d556aebb1.png',
},
'2a026ac4-0a9c-497b-9469-2da99f935821': {
name: '文案',
......
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