19 lines
351 B
JavaScript
19 lines
351 B
JavaScript
export const dealResult = (res) => {
|
|
let response = res.data
|
|
if (response.code !== 1) {
|
|
uni.showModal({
|
|
title: '提示',
|
|
content: response.message,
|
|
showCancel: false
|
|
})
|
|
return false
|
|
}
|
|
return response.data
|
|
}
|
|
|
|
|
|
|
|
export const JudgeIsNullity = (val) => {
|
|
if (val === null || val === undefined || val === '') return true
|
|
return false
|
|
} |