This commit is contained in:
cclu 2025-04-08 19:38:30 +08:00
parent 886da2dbef
commit c0beb494b9
3 changed files with 15 additions and 15 deletions

File diff suppressed because one or more lines are too long

View File

@ -12501,10 +12501,10 @@ var api = {
request: function request(method, data, control, isWebApi) { request: function request(method, data, control, isWebApi) {
var _this = this; var _this = this;
if (method === 'POST') { if (method === 'POST') {
uni.showLoading({ // uni.showLoading({
title: '加载中...', // title: '加载中...',
mask: true // mask: true
}); // })
} }
return new Promise(function (resolve, reject) { return new Promise(function (resolve, reject) {
data.appId = loginType ? loginType === "android" || loginType === "ios" ? data.appId || '' : data.appId ? data.appId : uni.getAccountInfoSync().miniProgram.appId : ''; // 'wx4c497eddcec4a0e7' data.appId = loginType ? loginType === "android" || loginType === "ios" ? data.appId || '' : data.appId ? data.appId : uni.getAccountInfoSync().miniProgram.appId : ''; // 'wx4c497eddcec4a0e7'
@ -12544,7 +12544,7 @@ var api = {
return false; return false;
} }
if (method === 'POST') { if (method === 'POST') {
uni.hideLoading(); // uni.hideLoading()
if (res.data.ResultCode !== '999' && res.data.ResultCode !== '100') { if (res.data.ResultCode !== '999' && res.data.ResultCode !== '100') {
if (res.data.ResultDesc) { if (res.data.ResultDesc) {
console.log(res.data.ResultDesc); console.log(res.data.ResultDesc);
@ -12565,7 +12565,7 @@ var api = {
requstOptions.fail = function (error) { requstOptions.fail = function (error) {
// fail // fail
if (method === 'POST') { if (method === 'POST') {
uni.hideLoading(); // uni.hideLoading()
} }
reject(error); // 请求失败 reject(error); // 请求失败
return false; return false;
@ -12573,7 +12573,7 @@ var api = {
requstOptions.complete = function () { requstOptions.complete = function () {
// complete // complete
if (method === 'POST') { if (method === 'POST') {
uni.hideLoading(); // uni.hideLoading()
} }
}; };
uni.request(requstOptions); uni.request(requstOptions);

View File

@ -29,10 +29,10 @@ const api = {
staticImagePath, staticImagePath,
request(method, data, control, isWebApi) { request(method, data, control, isWebApi) {
if (method === 'POST') { if (method === 'POST') {
uni.showLoading({ // uni.showLoading({
title: '加载中...', // title: '加载中...',
mask: true // mask: true
}) // })
} }
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
data.appId = loginType ? loginType === "android" || loginType === "ios" ? data.appId || '' : data.appId ? data.appId : uni.getAccountInfoSync().miniProgram.appId : '' // 'wx4c497eddcec4a0e7' data.appId = loginType ? loginType === "android" || loginType === "ios" ? data.appId || '' : data.appId ? data.appId : uni.getAccountInfoSync().miniProgram.appId : '' // 'wx4c497eddcec4a0e7'
@ -72,7 +72,7 @@ const api = {
return false return false
} }
if (method === 'POST') { if (method === 'POST') {
uni.hideLoading() // uni.hideLoading()
if (res.data.ResultCode !== '999' && res.data.ResultCode !== '100') { if (res.data.ResultCode !== '999' && res.data.ResultCode !== '100') {
if (res.data.ResultDesc) { if (res.data.ResultDesc) {
console.log(res.data.ResultDesc) console.log(res.data.ResultDesc)
@ -92,7 +92,7 @@ const api = {
requstOptions.fail = function (error) { requstOptions.fail = function (error) {
// fail // fail
if (method === 'POST') { if (method === 'POST') {
uni.hideLoading() // uni.hideLoading()
} }
reject(error) // 请求失败 reject(error) // 请求失败
return false return false
@ -100,7 +100,7 @@ const api = {
requstOptions.complete = function () { requstOptions.complete = function () {
// complete // complete
if (method === 'POST') { if (method === 'POST') {
uni.hideLoading() // uni.hideLoading()
} }
} }
uni.request(requstOptions) uni.request(requstOptions)