startLearning.vue 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <template>
  2. <view class="mybody bgclF8 df fdc">
  3. <TopMenu ref="TopMenu"></TopMenu>
  4. <view class="df jcc aic content">
  5. <view class="df content-box jcsb">
  6. <view v-for="(item,i) in btn1List" :key="i" class="df jcc aic fdc btn1-box">
  7. <view class="btn1-icon">
  8. <img :src="item.src"></img>
  9. </view>
  10. <view class="btn1-text">{{item.text}}</view>
  11. </view>
  12. </view>
  13. </view>
  14. </view>
  15. </template>
  16. <script>
  17. import TopMenu from '../../components/topMenu.vue'
  18. export default {
  19. components: {
  20. TopMenu,
  21. },
  22. onLoad() {
  23. },
  24. data() {
  25. return {
  26. btn1List: [{
  27. "src": require("../../assets/topMenu/preludePreparation.png"),
  28. "text": "前序准备"
  29. },
  30. {
  31. "src": require("../../assets/topMenu/learningAndExperiment.png"),
  32. "text": "学习与实验"
  33. },
  34. {
  35. "src": require("../../assets/topMenu/testAndResult.png"),
  36. "text": "测试与结果"
  37. },
  38. ],
  39. }
  40. },
  41. methods: {
  42. }
  43. }
  44. </script>
  45. <style lang="scss">
  46. $btnN:3;
  47. .content-box {
  48. width: px2vw(312*$btnN+67*(($btnN)-1));
  49. height: px2vw(367);
  50. }
  51. </style>