接完首页和我的页接口

This commit is contained in:
田岩
2025-06-20 18:28:41 +08:00
parent 68bf17b7e2
commit c477090aea
14 changed files with 648 additions and 124 deletions
+2 -3
View File
@@ -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({