operationOverview.vue 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <template>
  2. <view class="records">
  3. <view class="records-list">
  4. <view class="records-list-item" v-for="(item, index) in list" :key="index" @click="jumpPage(item.url)">{{ item.name }}</view>
  5. </view>
  6. </view>
  7. </template>
  8. <script>
  9. export default {
  10. data() {
  11. return {
  12. list: [
  13. { name: '运营概况', url: 'pages/operationOverview/operationOverviewModel/operationOverviewModel' },
  14. { name: '统计报表', url: 'pages/operationOverview/statisticalReport/statisticalReport' },
  15. { name: '运营分析', url: 'pages/operationOverview/operationalAnalysis/operationalAnalysis' }
  16. ]
  17. }
  18. },
  19. methods: {
  20. jumpPage(url) {
  21. uni.$u.route({
  22. url
  23. })
  24. }
  25. }
  26. }
  27. </script>
  28. <style lang="scss" scoped>
  29. .records {
  30. padding: 40rpx 20rpx;
  31. &-list {
  32. display: flex;
  33. flex-wrap: wrap;
  34. justify-content: space-between;
  35. &-item {
  36. width: calc(50% - 18rpx);
  37. height: 200rpx;
  38. line-height: 200rpx;
  39. text-align: center;
  40. background-color: #2871FF;
  41. border-radius: 10rpx;
  42. color: #fff;
  43. font-size: 40rpx;
  44. font-family: PingFangSC-regular;
  45. margin-bottom: 36rpx;
  46. }
  47. }
  48. }
  49. </style>