tool-list.vue 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. <template>
  2. <view>
  3. <grid :column="4" :gridList="gridList" :border="false" @tapGrid="tapGrid"></grid>
  4. <u-divider bg-color="#f1f1f1" height="100">到底了</u-divider>
  5. </view>
  6. </template>
  7. <script>
  8. import grid from "@/comps/grid/grid.vue"
  9. export default {
  10. components:{
  11. grid
  12. },
  13. data() {
  14. return {
  15. //提示:如果点击某项,不进行跳转页面,那么请添加type属性为click
  16. gridList:[
  17. {
  18. title:'业主认证',
  19. subList:[
  20. {
  21. src:'/static/home/fangwu.png', name:'我的房屋', url:"/pages/myhome/myhome"
  22. },
  23. {
  24. src:'/static/home/luru.png', name:'人脸录入', url:"/pages/uploadFace/uploadFace"
  25. },
  26. {
  27. src:'/static/home/renyuan.png', name:'家人管理', url:"/pages/myFamily/myFamily"
  28. },
  29. {
  30. src:'/static/home/fangwu.png', name:'老人关爱', url:"/pages/community/community?current=1",type:'switchTab'
  31. },
  32. ]
  33. },
  34. {
  35. title:'小区出入',
  36. subList:[
  37. {
  38. src:'/static/home/kaimen.png', name:'一键开门', url:"/pages/index/index?openDoor",type:'switchTab'
  39. },
  40. {
  41. src:'/static/home/fangke1.png', name:'访客授权', url:"/pages/authorize_record/authorize_record"
  42. },
  43. {
  44. src:'/static/home/jilu.png', name:'访客记录', url:"/pages/record/record"
  45. },
  46. {
  47. src:'/static/home/cheliang.png', name:'车辆关爱', url:"/pages/community/community?current=2",type:'switchTab'
  48. },
  49. {
  50. src:'/static/home/fanyi1.png', name:'防疫登记', url:"/pages/tool-list/epidemic-pass/epidemic-pass"
  51. }
  52. ]
  53. },
  54. {
  55. title:'小区应用',
  56. subList:[
  57. {
  58. src:'/static/home/baoxiu.png', name:'物业报修', url:"/pages/services/property/property"
  59. },
  60. {
  61. src:'/static/home/jiaofei.png', name:'物业缴费', url:"/pages/index/index", type:'click'
  62. }
  63. ,
  64. {
  65. src:'/static/home/gonggao.png', name:'公告查看', url:"/pages/notice/notice"
  66. }
  67. ,
  68. {
  69. src:'/static/home/shanghu.png', name:'周边商户', url:"/pages/life/life", type:'switchTab'
  70. }
  71. ]
  72. }
  73. ]
  74. }
  75. },
  76. onLoad() {
  77. //小程序audit期间隐藏掉人脸录入功能
  78. let appletType= uni.getStorageSync('appletType')
  79. if (appletType=='0') {
  80. this.gridList[0].subList.splice(1,1)
  81. console.log(this.gridList);
  82. }
  83. },
  84. methods: {
  85. tapGrid ( data ) {
  86. uni.showToast({
  87. title:"待开发",
  88. icon:"none"
  89. })
  90. }
  91. }
  92. }
  93. </script>
  94. <style>
  95. </style>