|
|
|
@ -3,13 +3,15 @@ |
|
|
|
|
|
|
|
|
|
export default { |
|
|
|
|
onLaunch: function() { |
|
|
|
|
console.log('App Launch') |
|
|
|
|
console.info('App Launch,检测服务端'+config.server+'配置') |
|
|
|
|
let url=config.server+'/api/test.php' |
|
|
|
|
console.info('服务端测试接口:'+url) |
|
|
|
|
uni.showLoading({ |
|
|
|
|
title:"检测服务端中" |
|
|
|
|
}) |
|
|
|
|
let test=false |
|
|
|
|
uni.request({ |
|
|
|
|
url:config.server+'/api/test.php', |
|
|
|
|
url:url, |
|
|
|
|
success:function (res) { |
|
|
|
|
console.info(res) |
|
|
|
|
if(res.data==="ok"){ |
|
|
|
|