introductionToTheExperiment.vue 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <template>
  2. <!-- 实验简介 -->
  3. <view class="df jcc aic myComRoot">
  4. <view class="df content-box jcsb">
  5. <view v-for="(item,i) in btn1List" :key="i" class="df jcc aic fdc btn1-box" @click="onClick_Btn1(i)">
  6. <view class="btn1-icon">
  7. <img :src="item.src"></img>
  8. </view>
  9. <view class="btn1-text">{{item.text}}</view>
  10. </view>
  11. </view>
  12. </view>
  13. </template>
  14. <script>
  15. import TopMenu from '../../components/topMenu.vue'
  16. export default {
  17. components: {
  18. TopMenu,
  19. },
  20. onLoad() {
  21. },
  22. data() {
  23. return {
  24. btn1List: [{
  25. "src": require("../../assets/topMenu/preludePreparation.png"),
  26. "text": "评审账号"
  27. },
  28. {
  29. "src": require("../../assets/topMenu/learningAndExperiment.png"),
  30. "text": "快速进入实验"
  31. },
  32. {
  33. "src": require("../../assets/topMenu/testAndResult.png"),
  34. "text": "实验概述"
  35. },
  36. {
  37. "src": require("../../assets/topMenu/testAndResult.png"),
  38. "text": "使用环境/技术架构"
  39. },
  40. {
  41. "src": require("../../assets/topMenu/testAndResult.png"),
  42. "text": "实验简介视频"
  43. },
  44. ],
  45. }
  46. },
  47. methods: {
  48. onClick_Btn1(index){
  49. this.$emit("onClick_Btn1",index);
  50. }
  51. }
  52. }
  53. </script>
  54. <style lang="scss">
  55. $btnN:5;
  56. .content-box {
  57. width: px2vw(312*$btnN+34*(($btnN)-1));
  58. height: px2vw(367);
  59. }
  60. </style>