进度:需要一个弹出组件

Signed-off-by: kevin <kevin@lmve.net>
This commit is contained in:
2025-06-06 20:29:12 +08:00
parent 1f85b9cc10
commit 2c8fc07ebb
15 changed files with 325 additions and 115 deletions
+31
View File
@@ -0,0 +1,31 @@
export const my_network_func = {
host: "",
port: 0,
head_path: "/api/v1",
post_json(path, json,callback) {
var re_data = {}
uni.request({
header: {
'Content-Type': 'application/json'
},
url: this.head_path + path,
method: 'POST',
data: json,
timeout: 10000,
success(res) {
re_data["statusCode"] = res.statusCode
re_data["data"] = res.data
callback(re_data)
},
fail() {
re_data["statusCode"] = -1
callback(re_data)
}
});
},
}