flat: cityId备份 + 手机号提交

This commit is contained in:
Apcallover
2024-04-22 22:31:50 +08:00
parent ab94467da4
commit b79f0c7fc0
10 changed files with 47 additions and 25 deletions

View File

@@ -129,7 +129,7 @@ async function DoAjax(options, config = {}) {
}
// 递归替换 url
function transformRepalceString(props) {
export function transformRepalceString(props) {
if (typeof props !== 'object' || props === null) {
for (const key in replaceStr) {
if (typeof props === 'string') {

18
untils/tools.js Normal file
View File

@@ -0,0 +1,18 @@
function onDialingPhoneNumber(phone) {
return new Promise((resolve, reject) => {
uni.makePhoneCall({
phoneNumber: phone, // 电话号码
success: (res) => {
resolve(res)
},
fail: (err) => {
reject(err)
} // 失败
});
})
}
export default {
onDialingPhoneNumber
}