接完首页和我的页接口
This commit is contained in:
@@ -9,7 +9,7 @@ function msg(title, duration = 1000) {
|
||||
}
|
||||
|
||||
function show(title, msg, showCancel = true) {
|
||||
let res = new Promise((resolve, reject) => {
|
||||
return new Promise((resolve, reject) => {
|
||||
uni.showModal({
|
||||
title: title,
|
||||
content: msg,
|
||||
@@ -18,11 +18,10 @@ function show(title, msg, showCancel = true) {
|
||||
resolve(res.confirm)
|
||||
},
|
||||
fail: function(res) {
|
||||
reject(false)
|
||||
reject(res)
|
||||
},
|
||||
});
|
||||
})
|
||||
return res;
|
||||
}
|
||||
|
||||
const loading = (title = '加载中', mask = true) => uni.showLoading({
|
||||
|
||||
Reference in New Issue
Block a user