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.

80 lines
1.6 KiB

2 months ago
2 months ago
2 months ago
  1. <template>
  2. <view class="content padding">
  3. <view class="con" v-for="(item,index) in 5" :key="index">
  4. <view class="h5">交通信息</view>
  5. <view class="ul">
  6. <view class="li" v-for="(item,index) in 6" :key="index" @click="goPage">
  7. <view class="icon">
  8. <!-- <image src="../../../static/images/avatarbg.png" mode=""></image> -->
  9. </view>
  10. <view class="text">交通信号</view>
  11. </view>
  12. </view>
  13. </view>
  14. </view>
  15. </template>
  16. <script setup>
  17. import carStore from '@/store/modules/car.js'
  18. let usecarStore = carStore()
  19. import { columnFid, columnPid } from '@/config/api.js'
  20. function goPage() {
  21. uni.navigateTo({
  22. url: '/pages/exercises/brushQuestions/brushQuestions'
  23. })
  24. }
  25. async function columnFidFn() {
  26. let obj = {
  27. type: '3',
  28. stepType: usecarStore.carInfo.stepType,
  29. carType: usecarStore.carInfo.carType
  30. }
  31. const {data: res} = columnFid(obj)
  32. }
  33. columnFidFn()
  34. </script>
  35. <style lang="scss" scoped>
  36. image {
  37. display: block;
  38. width: 100%;
  39. height: 100%;
  40. }
  41. .content {
  42. width: 100%;
  43. .con {
  44. padding: 50rpx 0 20rpx 0;
  45. .h5 {
  46. font-weight: bold;
  47. margin-bottom: 10rpx;
  48. font-size: 32rpx;
  49. }
  50. .ul {
  51. display: flex;
  52. flex-wrap: wrap;
  53. .li {
  54. width: 25%;
  55. display: flex;
  56. flex-direction: column;
  57. align-items: center;
  58. padding: 30rpx 0;
  59. .icon {
  60. width: 68rpx;
  61. height: 68rpx;
  62. background: #EF8F4C;
  63. box-shadow: 0px 2rpx 5rpx 0px rgba(239,143,76,0.5);
  64. border-radius: 26rpx;
  65. }
  66. .text {
  67. font-weight: 500;
  68. margin-top: 20rpx;
  69. font-size: 28rpx;
  70. }
  71. }
  72. }
  73. }
  74. }
  75. </style>