文字信息走配置

This commit is contained in:
Abin committed 2026-01-14 13:02:00 +08:00
1 parent c363e18fc2
commit 6171e514cd
6 files changed
+70 -10

No files matched your search

+19
View File
@@ -264,6 +264,24 @@ function ApiGetBannerImg() {
}
function ApiGetConfig() {
return new Promise((resolve, reject) => {
wx.request({
url: baseurl+'/API/ApiGetConfig.php',
method: 'GET', // 或 'POST'
data: {
},
success: res => {
resolve(res.data); // 将获取的结果通过Promise的resolve传递
},
fail: err => {
reject(err); // 如果请求失败,传递错误给Promise的reject
}
});
});
}
function ApiAddPasswordCode(openid,courseID,courseName,coursePswdCode,courseEndDate,courseInfo,courseCount) {
return new Promise((resolve, reject) => {
wx.request({
@@ -403,6 +421,7 @@ function ApiGetTips() {
ApiGetIndexCourseList,
ApiGetIndexFreeCourseList,
ApiGetBannerImg,
ApiGetConfig,
ApiAddPasswordCode,
ApiAddPasswordCodeBefor,
ApiGetPasswordCode,