新增名片卡片

This commit is contained in:
2024-08-30 00:35:24 +08:00
parent fc7912e01c
commit 16932357d2
3 changed files with 124 additions and 4 deletions

View File

@@ -63,6 +63,20 @@ Page({
})
},
makePhoneCall(e){
let phone = e.currentTarget.dataset.phone;
console.log(phone);
wx.makePhoneCall({
phoneNumber: phone, //此号码仅用于测试
success: function () {
console.log("拨打电话成功!")
},
fail: function () {
console.log("拨打电话失败!")
}
})
},
/**
* 生命周期函数--监听页面初次渲染完成
*/