index.js 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. // pages/tabber/home/index.js
  2. const api = require('../../utils/api');
  3. Page({
  4. /**
  5. * 页面的初始数据
  6. */
  7. data: {
  8. menuList:[
  9. {
  10. icon:'/image/home/wuliugailan@3x.png',
  11. tit:'物流概览',
  12. url:"/pages/logistics/index"
  13. },
  14. {
  15. icon:'/image/home/icon_qujianxiangqing@3x.png',
  16. tit:'柜前取送',
  17. url:"/pages/take/index"
  18. },
  19. {
  20. icon:'/image/home/icon_qianshou@3x.png',
  21. tit:'物流签收',
  22. url:"/pages/signFor/index"
  23. },
  24. {
  25. icon:'/image/home/icon_daishoudian@3x.png',
  26. tit:'代收点',
  27. url:"/pages/servicePoint/index"
  28. },
  29. {
  30. icon:'/image/home/icon_guiziguanli@3x.png',
  31. url:"/pages/cabinet/index",
  32. tit:'柜子管理'
  33. },
  34. {
  35. icon:'/image/home/icon_sousuoyundan@3x.png',
  36. url:"/pages/serah/index",
  37. tit:'搜索运单'
  38. },
  39. ]
  40. },
  41. /**
  42. * 生命周期函数--监听页面加载
  43. */
  44. onLoad: function (options) {
  45. // api.getBanner().then(res=>{
  46. // console.log(res);
  47. // })
  48. },
  49. toUrl(e){
  50. let {url} = e.currentTarget.dataset
  51. wx.navigateTo({
  52. url,
  53. })
  54. },
  55. loginOut(){
  56. wx.removeStorageSync('token')
  57. wx.reLaunch({
  58. url: '/pages/login/login',
  59. })
  60. }
  61. })