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.

67 lines
1.3 KiB

3 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. function goPage() {
  18. uni.navigateTo({
  19. url: '/pages/exercises/brushQuestions/brushQuestions'
  20. })
  21. }
  22. </script>
  23. <style lang="scss" scoped>
  24. image {
  25. display: block;
  26. width: 100%;
  27. height: 100%;
  28. }
  29. .content {
  30. width: 100%;
  31. .con {
  32. padding: 50rpx 0 20rpx 0;
  33. .h5 {
  34. font-weight: bold;
  35. margin-bottom: 10rpx;
  36. font-size: 32rpx;
  37. }
  38. .ul {
  39. display: flex;
  40. flex-wrap: wrap;
  41. .li {
  42. width: 25%;
  43. display: flex;
  44. flex-direction: column;
  45. align-items: center;
  46. padding: 30rpx 0;
  47. .icon {
  48. width: 68rpx;
  49. height: 68rpx;
  50. background: #EF8F4C;
  51. box-shadow: 0px 2rpx 5rpx 0px rgba(239,143,76,0.5);
  52. border-radius: 26rpx;
  53. }
  54. .text {
  55. font-weight: 500;
  56. margin-top: 20rpx;
  57. font-size: 28rpx;
  58. }
  59. }
  60. }
  61. }
  62. }
  63. </style>