ctx.set("Access-Control-Allow-Origin","*")
class Http{
static baseUrl="http://47.108.197.28"
static request(url){
return new Promise((resolve,reject)=>{
wx.request({
url: this.baseUrl+url,
success:res=>{
resolve(res)
}
})
})
}
}
module.exports=Http
const getMusicHttp=require('../../Utils/class_music')
onLoad:async function (options) {
var that=this
var bannerRes=await getMusicHttp.getBannerHttp()
}