拓恒飞手平台小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

96 lines
2.1KB

  1. // pages/task/task.js
  2. Page({
  3. /**
  4. * 页面的初始数据
  5. */
  6. data: {
  7. bannerList: [
  8. {cover: 'http://h.hiphotos.baidu.com/image/pic/item/7c1ed21b0ef41bd5f2c2a9e953da81cb39db3d1d.jpg'},
  9. {cover: "http://c.hiphotos.baidu.com/image/pic/item/30adcbef76094b36de8a2fe5a1cc7cd98d109d99.jpg"},
  10. {cover: 'http://e.hiphotos.baidu.com/image/pic/item/a1ec08fa513d2697e542494057fbb2fb4316d81e.jpg'},
  11. {cover: 'http://g.hiphotos.baidu.com/image/pic/item/6d81800a19d8bc3e770bd00d868ba61ea9d345f2.jpg'}
  12. ], // 轮播图
  13. dataSource: {
  14. platformName: '智慧河长管理平台',
  15. createTime: '2022-10-22',
  16. tenantName: '江宁租户',
  17. patrolLocation: '江宁区河湖长办公室',
  18. taskStartName: '2022-10-22',
  19. status: 20
  20. }
  21. },
  22. /**
  23. * 生命周期函数--监听页面加载
  24. */
  25. onLoad: function (options) {
  26. },
  27. /**
  28. * 生命周期函数--监听页面初次渲染完成
  29. */
  30. onReady: function () {
  31. },
  32. /**
  33. * 生命周期函数--监听页面显示
  34. */
  35. onShow: function () {},
  36. /**
  37. * 进入任务列表
  38. */
  39. goTaskPage(e) {
  40. console.log(e.currentTarget.dataset.status);
  41. wx.navigateTo({
  42. url: '/package_A/page/alltask/index',
  43. })
  44. },
  45. /**
  46. * 进入详情页面
  47. */
  48. goTaskDetail(e) {
  49. let detail = e.currentTarget.dataset.detail
  50. wx.navigateTo({
  51. url: '/package_A/page/TaskDetail/index?data=' + JSON.stringify(detail),
  52. })
  53. },
  54. /**
  55. * 生命周期函数--监听页面隐藏
  56. */
  57. onHide: function () {
  58. },
  59. /**
  60. * 生命周期函数--监听页面卸载
  61. */
  62. onUnload: function () {
  63. },
  64. /**
  65. * 页面相关事件处理函数--监听用户下拉动作
  66. */
  67. onPullDownRefresh: function () {
  68. },
  69. /**
  70. * 页面上拉触底事件的处理函数
  71. */
  72. onReachBottom: function () {
  73. },
  74. /**
  75. * 用户点击右上角分享
  76. */
  77. onShareAppMessage: function () {
  78. }
  79. })