index.js 677 B

12345678910111213141516171819202122232425262728293031323334
  1. const app = getApp()
  2. Page({
  3. data: {
  4. menuTop: app.globalData.menuTop,
  5. },
  6. onLoad(options) {
  7. },
  8. async getPhoneNumber({
  9. detail
  10. }) {
  11. console.log(detail);
  12. /* let mobile = await exchangePhone({
  13. code: detail.code
  14. })
  15. await bindPhone({
  16. mobile
  17. })
  18. let userInfo = await getMyInfo()
  19. this.setUser(userInfo.user)
  20. wx.showToast({
  21. title: '绑定成功!',
  22. icon: "none",
  23. duration: 4000
  24. }) */
  25. },
  26. black() {
  27. wx.navigateBack()
  28. },
  29. submit() {
  30. }
  31. })