diff --git a/api/request.js b/api/request.js index 809e3ea..8e0ae6a 100644 --- a/api/request.js +++ b/api/request.js @@ -16,9 +16,9 @@ function baseRequestTwo(url, method, data, { }) { return new Promise((reslove, reject) => { - // uni.showLoading({ - // title: '加载中' - // }) + uni.showLoading({ + title: '加载中' + }) uni.request({ // url: Url + '/api/v1' + url, url: Url + url, @@ -26,6 +26,7 @@ function baseRequestTwo(url, method, data, { data: method != 'GET' ? data || {} : {}, params: method == 'GET' ? data : {}, success: (res) => { + uni.hideLoading() if (noVerify) reslove(res.data); else if (res.data.code == -1) { @@ -51,9 +52,9 @@ function baseRequestTwo(url, method, data, { }, fail: (message) => { // uni.hideLoading() - uni.showToast({ - title: '网络错误', - icon: 'none' + uni.showModal({ + title: '请求错误', + content: JSON.stringify(message) }) reject('请求失败'); } diff --git a/manifest.json b/manifest.json index 6582a5e..593c7b9 100644 --- a/manifest.json +++ b/manifest.json @@ -10,6 +10,9 @@ "usingComponents" : true, "nvueStyleCompiler" : "uni-app", "compilerVersion" : 3, + "compatible":{ + "ignoreVersion": true //true表示忽略版本检查提示框,HBuilderX1.9.0及以上版本支持 + }, "splashscreen" : { "alwaysShowBeforeRender" : true, "waiting" : true, @@ -41,9 +44,13 @@ ] }, /* ios打包配置 */ - "ios" : {}, + "ios" : { + "dSYMs" : false + }, /* SDK配置 */ - "sdkConfigs" : {} + "sdkConfigs" : { + "ad" : {} + } } }, /* 快应用特有相关 */ diff --git a/pages.json b/pages.json index 7ca4208..6e55f9e 100644 --- a/pages.json +++ b/pages.json @@ -3,7 +3,9 @@ { "path": "pages/index/index", "style": { - "navigationBarTitleText": "里海AI远程控制" + "navigationBarTitleText": "里海AI远程控制", + "navigationBarBackgroundColor": "#282c35", + "navigationBarTextStyle": "white" } } ], diff --git a/pages/index/index.vue b/pages/index/index.vue index 3c32ee1..7ba0206 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -1,5 +1,5 @@