update
This commit is contained in:
parent
886da2dbef
commit
c0beb494b9
File diff suppressed because one or more lines are too long
14
unpackage/dist/dev/mp-weixin/common/vendor.js
vendored
14
unpackage/dist/dev/mp-weixin/common/vendor.js
vendored
@ -12501,10 +12501,10 @@ var api = {
|
||||
request: function request(method, data, control, isWebApi) {
|
||||
var _this = this;
|
||||
if (method === 'POST') {
|
||||
uni.showLoading({
|
||||
title: '加载中...',
|
||||
mask: true
|
||||
});
|
||||
// uni.showLoading({
|
||||
// title: '加载中...',
|
||||
// mask: true
|
||||
// })
|
||||
}
|
||||
return new Promise(function (resolve, reject) {
|
||||
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;
|
||||
}
|
||||
if (method === 'POST') {
|
||||
uni.hideLoading();
|
||||
// uni.hideLoading()
|
||||
if (res.data.ResultCode !== '999' && res.data.ResultCode !== '100') {
|
||||
if (res.data.ResultDesc) {
|
||||
console.log(res.data.ResultDesc);
|
||||
@ -12565,7 +12565,7 @@ var api = {
|
||||
requstOptions.fail = function (error) {
|
||||
// fail
|
||||
if (method === 'POST') {
|
||||
uni.hideLoading();
|
||||
// uni.hideLoading()
|
||||
}
|
||||
reject(error); // 请求失败
|
||||
return false;
|
||||
@ -12573,7 +12573,7 @@ var api = {
|
||||
requstOptions.complete = function () {
|
||||
// complete
|
||||
if (method === 'POST') {
|
||||
uni.hideLoading();
|
||||
// uni.hideLoading()
|
||||
}
|
||||
};
|
||||
uni.request(requstOptions);
|
||||
|
||||
@ -29,10 +29,10 @@ const api = {
|
||||
staticImagePath,
|
||||
request(method, data, control, isWebApi) {
|
||||
if (method === 'POST') {
|
||||
uni.showLoading({
|
||||
title: '加载中...',
|
||||
mask: true
|
||||
})
|
||||
// uni.showLoading({
|
||||
// title: '加载中...',
|
||||
// mask: true
|
||||
// })
|
||||
}
|
||||
return new Promise((resolve, reject) => {
|
||||
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
|
||||
}
|
||||
if (method === 'POST') {
|
||||
uni.hideLoading()
|
||||
// uni.hideLoading()
|
||||
if (res.data.ResultCode !== '999' && res.data.ResultCode !== '100') {
|
||||
if (res.data.ResultDesc) {
|
||||
console.log(res.data.ResultDesc)
|
||||
@ -92,7 +92,7 @@ const api = {
|
||||
requstOptions.fail = function (error) {
|
||||
// fail
|
||||
if (method === 'POST') {
|
||||
uni.hideLoading()
|
||||
// uni.hideLoading()
|
||||
}
|
||||
reject(error) // 请求失败
|
||||
return false
|
||||
@ -100,7 +100,7 @@ const api = {
|
||||
requstOptions.complete = function () {
|
||||
// complete
|
||||
if (method === 'POST') {
|
||||
uni.hideLoading()
|
||||
// uni.hideLoading()
|
||||
}
|
||||
}
|
||||
uni.request(requstOptions)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user