index.vue 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <template>
  2. <view class="content">
  3. <ul>
  4. <li @click="jumpPage('storageDistrbution')">
  5. <uni-icons type="home" size="120" color="#409EFF" />
  6. <p>仓容分布</p>
  7. </li>
  8. <li @click="jumpPage('purchaseDetails')">
  9. <uni-icons type="wallet" size="120" color="#E6A23C" />
  10. <p>收购详情查询</p>
  11. </li>
  12. <li @click="jumpPage('emergencyInfo')">
  13. <uni-icons type="info" size="120" color="#F56C6C" />
  14. <p>应急信息查询</p>
  15. </li>
  16. <li @click="jumpPage('todayInfo')">
  17. <uni-icons type="calendar" size="120" color="#67C23A" />
  18. <p>当日信息查询</p>
  19. </li>
  20. </ul>
  21. </view>
  22. </template>
  23. <script>
  24. export default {
  25. data() {
  26. return {
  27. formData: {},
  28. }
  29. },
  30. methods: {
  31. jumpPage(path) {
  32. uni.navigateTo({
  33. url: `/pages/queryStatistics/${path}/index`
  34. });
  35. }
  36. },
  37. }
  38. </script>
  39. <style scoped lang="scss">
  40. .content {
  41. padding: 30px;
  42. ul {
  43. li {
  44. width: 20%;
  45. float: left;
  46. padding: 30px 0;
  47. list-style: none;
  48. text-align: center;
  49. border-radius: 8px;
  50. margin: 30px calc(40%/8);
  51. border: 1px solid #F2F6FC;
  52. box-shadow: 0 15px 20px rgba(0, 0, 0, .4);
  53. p {
  54. font-size: 20px;
  55. line-height: 32px;
  56. font-weight: bold;
  57. }
  58. }
  59. }
  60. }
  61. </style>