开始做充值和发票

This commit is contained in:
2024-03-20 11:10:52 +08:00
parent e5c9a96353
commit 7648ace524
59 changed files with 1091 additions and 199 deletions

View File

@@ -43,7 +43,8 @@ export function getConfigByEnv() {
switch (envVersion) {
// 开发版
case 'develop':
api = "http://localhost:8000"
// api = "http://localhost:8000"
api = "http://127.0.0.1:4523/m1/4143821-0-default"
break;
// 体验版
case 'trial':
@@ -195,4 +196,21 @@ export const wxLogin = () => {
}
})
})
}
export const wxModal = (data) => {
const { title = '提示', content } = data;
return new Promise((resolve, reject) => {
wx.showModal({
title,
content,
success (res) {
if (res.confirm) {
resolve()
} else if (res.cancel) {
reject()
}
}
})
})
}