set_up.js 895 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. // pages/set_up/set_up.js
  2. var app=getApp()
  3. Page({
  4. data: {
  5. },
  6. onLoad: function (options) {
  7. my.setNavigationBar({
  8. title: app.globalData.title
  9. })
  10. },
  11. onReady: function () {
  12. },
  13. tuichu() {
  14. my.confirm({
  15. title: '提示',
  16. content: '确定要退出当前账户吗?',
  17. success: function (res) {
  18. if (res.confirm==true) {
  19. my.reLaunch({
  20. url: '/pages/authorization/authorization',
  21. })
  22. }
  23. }
  24. })
  25. },
  26. onShow: function () {
  27. },
  28. onHide: function () {
  29. },
  30. onUnload: function () {
  31. },
  32. onPullDownRefresh: function () {
  33. },
  34. onReachBottom: function () {
  35. },
  36. onShareAppMessage: function () {
  37. },
  38. agreement:function(){
  39. my.navigateTo({
  40. url: '/pages/agreement/agreement',
  41. })
  42. },
  43. zhinan:function(){
  44. my.navigateTo({
  45. url: '/pages/ride_rule/ride_rule',
  46. })
  47. }
  48. })