App.vue 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <style lang="scss">
  2. /* 注意要写在第一行,同时给style标签加入lang="scss"属性 */
  3. @import "uview-ui/index.scss";
  4. </style>
  5. <script>
  6. export default {
  7. onLaunch: function() {
  8. // let that = this;
  9. // wx.login({
  10. // success(re) {
  11. // that.$api.wxAuthLogin({code:re.code}).then(res=>{
  12. // uni.setStorageSync('userInfo',res.data.data.userInfo)
  13. // uni.setStorageSync('accessToken',res.data.data.access_token)
  14. // uni.setStorageSync('phoneIsBind',res.data.data.phoneIsBind)
  15. //
  16. // if (res.data.data.phoneIsBind){
  17. // // uni.switchTab({
  18. // // url: '/pages/index/index',
  19. // // })
  20. // uni.navigateTo({
  21. // url: '/loginPages/bindAccount/index',
  22. // })
  23. // }else {
  24. // uni.navigateTo({
  25. // url: '/loginPages/bindAccount/index',
  26. // })
  27. // }
  28. //
  29. // })
  30. //
  31. // },
  32. // })
  33. console.log('App Launch')
  34. },
  35. onShow: function() {
  36. console.log('App Show')
  37. },
  38. onHide: function() {
  39. console.log('App Hide')
  40. }
  41. }
  42. </script>