yinhuanlist.vue 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <template>
  2. <div>
  3. <div v-if="shows">
  4. <van-nav-bar title="风险预控系统" left-arrow @click-left="onClickLeft" />
  5. </div>
  6. <div class="headers">
  7. <div class="headers_one" @click="ones">
  8. <img src="../../../assets/images/meihuajing/不安全行为.png" alt="" />
  9. </div>
  10. <div class="headers_two" @click="twos">
  11. <img src="../../../assets/images/meihuajing/隐患排查.png" alt="" />
  12. </div>
  13. </div>
  14. </div>
  15. </template>
  16. <script>
  17. import {} from "../../../assets/images/meihuajing/不安全行为.png";
  18. export default {
  19. data() {
  20. return {
  21. shows: true, //tabber是否显示
  22. };
  23. },
  24. methods: {
  25. //返回按钮
  26. onClickLeft() {
  27. // window.history.back();
  28. console.log("sss");
  29. },
  30. ones() {
  31. console.log("one");
  32. },
  33. twos() {
  34. // console.log("two");
  35. this.$router.push("/meihuajing/yinhuanpaicha/yinhuaninfo");
  36. },
  37. },
  38. mounted() {},
  39. };
  40. </script>
  41. <style scoped>
  42. >>> .van-nav-bar {
  43. background: #39f;
  44. }
  45. >>> .van-nav-bar__title {
  46. color: #fff;
  47. }
  48. >>> .van-nav-bar .van-icon {
  49. color: #fff;
  50. }
  51. >>> .van-nav-bar__text {
  52. color: #fff;
  53. }
  54. [class*="van-hairline"]:after {
  55. border: none;
  56. }
  57. .headers {
  58. width: 100%;
  59. display: flex;
  60. justify-content: space-around;
  61. margin-top: 20px;
  62. }
  63. .headers_one,
  64. .headers_two {
  65. width: 45%;
  66. }
  67. .headers_one > img {
  68. width: 100%;
  69. }
  70. .headers_two > img {
  71. width: 100%;
  72. }
  73. </style>