小程式安全設定 彈出框輸入獲取值

2022-05-06 07:00:10 字數 1787 閱讀 1048

小程式安全設定

page(,

// 獲取身份認證:

idcard: function(e) )

console.log("獲取身份認證:" + this.data.idcard);

},// 獲取登入密碼:

password: function(e) )

console.log("獲取登入密碼:" + this.data.password);

},// 獲取繫結手機:

phone: function(e) )

console.log("獲取繫結手機:" + this.data.phone);

},email: function(e) )

},wxunionid: function(e) )

},// 修改按鈕

sfrz: function(e) ,

success(res)

wx.showtoast()}})

},// 修改登入密碼

dlmm: function(e) )

},cancelm: function(e) )

},confirmm: function(e) )

wx.request(,

success(res) )

}if (res == null || res.data == null)

wx.showtoast()}})

},ipsd: function(e) )

},newipsd: function(e) )

},// 繫結手機

bdsj: function(e) ,

success(res)

wx.showtoast()}})

},bdyx: function(e) ,

success(res)

wx.showtoast()}})

},wxbd: function(e) ,

success(res)

wx.showtoast()}})

} else if (res.cancel) }})

},/**

* 生命週期函式--監聽頁面載入

*/onload: function(options) ,

success(res) )

} else )

}wx.showtoast()}})

},/**

* 生命週期函式--監聽頁面初次渲染完成

*/onready: function() ,

/*** 生命週期函式--監聽頁面顯示

*/onshow: function() ,

/*** 生命週期函式--監聽頁面隱藏

*/onhide: function() ,

/*** 生命週期函式--監聽頁面解除安裝

*/onunload: function() ,

/*** 頁面相關事件處理函式--監聽使用者下拉動作

*/onpulldownrefresh: function() ,

success(res) )

} else )

}wx.showtoast()

},complete: function(res)

})},

/*** 頁面上拉觸底事件的處理函式

*/onreachbottom: function() ,

/*** 使用者點選右上角分享

*/}})

登入密碼

修改

小程式自帶彈出框型別

顯示訊息提示框 wx.showtoast 顯示模態對話方塊 title 提示 content 這是乙個模態彈窗?showcancel true,是否顯示取消按鈕 canceltext 否 預設是 取消 cancelcolor skyblue 取消文字的顏色 confirmtext 是 預設是 確定 ...

小程式底部彈出彈框功能

立即預約 立即預約 wxss index.wxss 模態框 modals cancel bottom dialog body 動畫前初始位置 bottom pos yuyue yuyue to js 獲取應用例項 page 顯示遮罩層 showmodal function var animation...

微信小程式底部彈出模態框

傳送 模態框 modals modals cancel bottom dialog body 動畫前初始位置 bottom pos comment top comment num comment close comment list comment li comment li img comment...