pda/utils/service.js
@@ -2,16 +2,18 @@ export const http = function (options) { { return new Promise((resolve, reject) => { let token = uni.getStorageSync('token') || '' let token = uni.getStorageSync('token') || null // 在登录的时候需要储存 token uni.setStorageSync("authorization","这里是登录获取的token值") // uni.showLoading({ // title:"加载中..." // }) uni.showLoading({ title: '加载中', mask: true }) if(!options.hideLoading){ uni.showLoading({ title: '加载中', mask: true }) } uni.request({ url: baseUrl + options.url, data: options.data || {},