index.vue 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. <template>
  2. <view class="">
  3. <view class="content-header">
  4. <text>人员采样</text>
  5. </view>
  6. <view class="content">
  7. <view class="content-box" @click="toApply()">
  8. <view class="content-img">
  9. <img src="../../static/icon/piao.png" alt="入场申请">
  10. </view>
  11. <view class="">
  12. <text>入场申请</text>
  13. </view>
  14. </view>
  15. <view class="content-box" @click="toSampling()">
  16. <view class="content-img">
  17. <img src="../../static/icon/caiyang.png" alt="人员采样">
  18. </view>
  19. <view class="">
  20. <text>人员采样</text>
  21. </view>
  22. </view>
  23. <view class="content-box" @click="toInput()">
  24. <view class="content-img">
  25. <img src="../../static/icon/dengji.png" alt="检测结果录入">
  26. </view>
  27. <view class="">
  28. <text>检测结果录入</text>
  29. </view>
  30. </view>
  31. <view class="content-box" @click="toCheck()">
  32. <view class="content-img">
  33. <img src="../../static/icon/chaxun.png" alt="检测结果查询">
  34. </view>
  35. <view class="">
  36. <text>检测结果查询</text>
  37. </view>
  38. </view>
  39. </view>
  40. </view>
  41. </template>
  42. <script>
  43. export default {
  44. data() {
  45. return {
  46. }
  47. },
  48. onLoad() {
  49. },
  50. methods: {
  51. toApply(){
  52. uni.navigateTo({
  53. url:'/pages/admissionApply/admissionApply'
  54. })
  55. },
  56. toSampling(){
  57. uni.navigateTo({
  58. url:'/pages/personnelSampling/personnelSampling'
  59. })
  60. },
  61. toInput(){
  62. uni.navigateTo({
  63. url:'/pages/inputDetectionResult/inputDetectionResult'
  64. })
  65. },
  66. toCheck(){
  67. uni.navigateTo({
  68. url:'/pages/checkResult/checkResult'
  69. })
  70. }
  71. }
  72. }
  73. </script>
  74. <style lang="scss">
  75. .content-header{
  76. text{
  77. display: block;
  78. text-align: center;
  79. background-color: #1296db;
  80. color: white;
  81. margin: 20rpx 20rpx 50rpx;
  82. }
  83. }
  84. .content {
  85. display: flex;
  86. align-items: center;
  87. justify-content: flex-start;
  88. flex-direction: row;
  89. flex-wrap: wrap;
  90. }
  91. .content-box{
  92. width: 33%;
  93. text-align: center;
  94. margin-bottom: 30rpx;
  95. .content-img{
  96. width:100%;
  97. img{
  98. width: 60%;
  99. height: 150rpx;
  100. }
  101. }
  102. }
  103. </style>