index.js 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. const app = getApp();
  2. Page({
  3. data: {
  4. StatusBar: app.globalData.StatusBar,
  5. CustomBar: app.globalData.CustomBar,
  6. mytask:[{
  7. img: "../../img/server/order.png",
  8. openpath: "/pages/task/rob/index?tab=0",
  9. text: "任务中心"
  10. },
  11. {
  12. img: "../../img/server/doing.png",
  13. openpath: "/pages/task/rob/index?tab=1",
  14. text: "待交付"
  15. },
  16. {
  17. img: "../../img/server/account.png",
  18. openpath: "/pages/task/rob/index?tab=2",
  19. text: "已交付"
  20. },
  21. {
  22. img: "../../img/server/history.png",
  23. openpath: "/pages/task/rob/index?tab=3",
  24. text: "已完成"
  25. }
  26. ],
  27. server:[
  28. {
  29. img: "../../img/server/identify.png",
  30. openpath: "/pages/tool/identify/index",
  31. text: "实名认证"
  32. },
  33. {
  34. img: "../../img/server/band.png",
  35. openpath: "/pages/tool/band/band",
  36. text: "绑定银行"
  37. },
  38. {
  39. img: "../../img/server/credit.png",
  40. openpath: "/pages/tool/empty/index",
  41. text: "营业执照"
  42. },
  43. {
  44. img: "../../img/server/info.png",
  45. openpath: "/pages/tool/sign/signature",
  46. text: "电子合同"
  47. }
  48. ],
  49. other:[
  50. {
  51. img: "../../img/icons/mesopen.png",
  52. openpath: "/pages/user/info/index",
  53. text: "我的信息"
  54. },
  55. {
  56. img: "../../img/server/help.png",
  57. openpath: "/pages/tool/empty/index",
  58. text: "联系客服"
  59. },
  60. {
  61. img: "../../img/server/more.png",
  62. openpath: "/pages/tool/empty/index",
  63. text: "其他更多"
  64. }
  65. ]
  66. },
  67. onLoad: function (options) {
  68. app.getMakerInfo()
  69. },
  70. gotoInfo( ){
  71. wx.navigateTo({
  72. url: '/pages/user/info/index',
  73. })
  74. },
  75. /**
  76. * 生命周期函数--监听页面初次渲染完成
  77. */
  78. onReady: function () {
  79. },
  80. /**
  81. * 生命周期函数--监听页面显示
  82. */
  83. onShow: function () {
  84. },
  85. /**
  86. * 生命周期函数--监听页面隐藏
  87. */
  88. onHide: function () {
  89. },
  90. /**
  91. * 生命周期函数--监听页面卸载
  92. */
  93. onUnload: function () {
  94. },
  95. /**
  96. * 页面相关事件处理函数--监听用户下拉动作
  97. */
  98. onPullDownRefresh: function () {
  99. },
  100. /**
  101. * 页面上拉触底事件的处理函数
  102. */
  103. onReachBottom: function () {
  104. },
  105. /**
  106. * 用户点击右上角分享
  107. */
  108. onShareAppMessage: function () {
  109. }
  110. })