完成了小程序联系上级的功能(点击手机号跳转拨号页面)

This commit is contained in:
2025-06-15 21:51:05 +08:00
parent 0739bdcbb8
commit 7603d8c96c
5 changed files with 53 additions and 90 deletions

View File

@ -177,39 +177,10 @@ Page({
onShow() {
this.getUserMainInfo()
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
gotoCall() {
wx.makePhoneCall({
phoneNumber: this.data.phoneNumber
})
}
})

View File

@ -3,7 +3,7 @@
<view class="flex-row justify-between items-center group">
<view class="flex-col">
<text class="self-start font text">{{ nickName }}</text>
<view class="flex-row items-center self-stretch group_2 mt-9">
<view class="flex-row items-center self-stretch group_2 mt-9" bind:tap="gotoCall">
<image
class="image_3"
src="./images/dianhua.png"