獲取用戶手機號碼

小程序中有很多地方都會用到註冊用戶信息的地方,用戶需要填寫手機號等,       有了這個組件可以快速獲取微信綁定手機號碼,無須用戶填寫。 1.getPhoneNumber這個組件通過button來實現(別的標籤無效)。將button中的open-type=「getPhoneNumber」,並且綁定bindgetphonenumber事件獲取回調。 [html]  view plain  copy
相關文章
相關標籤/搜索