recruitment.vue 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. <template>
  2. <view>
  3. <view style="z-index: 999;">
  4. <u-navbar title="求职中心" :is-back="false">
  5. <view class="slot-wrap"><image src="/static/search.png" class="search"></image></view>
  6. </u-navbar>
  7. </view>
  8. <scroll-view scroll-y="true" @scroll="scroll" style="padding-top: 20rpx;" :style="'height: ' + windowHeight + 'px;'" @scrolltolower="scrollTolower">
  9. <swiper class="swiper" :autoplay="true" previous-margin="15px" next-margin="15px" :circular="true">
  10. <swiper-item v-for="(item, index) in 4" :key="index" style="padding: 0px 5px;box-sizing: border-box;">
  11. <view style="height: 100%;border-radius: 8px;overflow: hidden;"><image src="../static/rank_bg.png" mode="" style="width: 100%;height: 100%;"></image></view>
  12. </swiper-item>
  13. </swiper>
  14. <view style="margin-top: 20rpx;">
  15. <u-row gutter="16">
  16. <u-col span="1">
  17. <view style="padding: 5rpx;"><image src="/static/select.png" class="arr-icon" @click="show = false"></image></view>
  18. </u-col>
  19. <u-col span="11">
  20. <view>
  21. </view>
  22. </u-col>
  23. </u-row>
  24. </view>
  25. </scroll-view>
  26. <u-popup v-model="show">
  27. <view style="width: 600rpx"><view class="popup_t1">选择你需要的</view></view>
  28. </u-popup>
  29. <view class="u-config-item">
  30. <u-subsection :list="tab_list1" :current="current2" button-color="rgba(47,67,121,0.6)" @change="sectionChange"></u-subsection>
  31. </view>
  32. </view>
  33. </template>
  34. <script>
  35. export default {
  36. name: 'recruitment',
  37. data() {
  38. return {
  39. colorBgc: 'red',
  40. windowHeight: 0,
  41. show: false,
  42. tab_list1: [
  43. {
  44. name: '课程A'
  45. },
  46. {
  47. name: '刷题'
  48. },
  49. {
  50. name: '重点考点'
  51. }
  52. ],
  53. current2: 0
  54. };
  55. },
  56. mounted() {
  57. this.windowHeight = uni.getSystemInfoSync().windowHeight - 120;
  58. this.init();
  59. console.log(this.windowHeight);
  60. },
  61. methods: {
  62. init() {},
  63. scroll(e) {},
  64. scrollTolower() {},
  65. sectionChange(index) {
  66. this.current2 = index;
  67. },
  68. }
  69. };
  70. </script>
  71. <style scoped>
  72. .search {
  73. width: 40rpx;
  74. height: 40rpx;
  75. margin-left: 30rpx;
  76. }
  77. .slot-wrap {
  78. display: flex;
  79. align-items: center;
  80. }
  81. .tests {
  82. background-color: #00ffff;
  83. margin-bottom: 20rpx;
  84. }
  85. .swiper {
  86. height: 329rpx;
  87. }
  88. .arr-icon {
  89. width: 40rpx;
  90. height: 40rpx;
  91. }
  92. .popup_t1 {
  93. height: 29rpx;
  94. font-size: 30rpx;
  95. font-family: PingFang SC;
  96. font-weight: bold;
  97. color: #131b31;
  98. margin: 100rpx;
  99. }
  100. </style>