flat: cityId备份 + 手机号提交
This commit is contained in:
@@ -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
18
untils/tools.js
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user