调整支付功能

This commit is contained in:
唐明明
2023-07-12 13:47:37 +08:00
parent 51297be16e
commit 04fd83c21e
4 changed files with 22 additions and 21 deletions

View File

@@ -34,7 +34,7 @@ const request = (parameter, hideLoding) => {
// 加载提示
if(!hideLoding) uni.showLoading({
title: '加载中',
title: '加载中...',
mask : true
});
@@ -47,11 +47,11 @@ const request = (parameter, hideLoding) => {
data : parameter.data || {},
method : parameter.method || 'GET',
success : res => {
uni.hideLoading()
if (res.header.Authorization){
updateToken('token', res.header.Authorization)
}
if(res.statusCode === 200){
uni.hideLoading()
const resolveData = res.data
if(resolveData.status_code === 200) {
resolve(resolveData.data)