兼兼街公众号代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

158 lines
3.3 KiB

  1. <template>
  2. <view class="active-card">
  3. <view class="active-title">{{item.title}}</view>
  4. <view class="active-time flex align-center">
  5. <text>招聘时间{{item.startTime}} - {{item.endTime}}</text>
  6. </view>
  7. <view class="active-add flex align-center">
  8. <text>招聘地址{{item.place}}</text>
  9. </view>
  10. <view class="active-time2 flex align-center">
  11. <text>发布时间{{item.createTime}}</text>
  12. </view>
  13. <view class="active-menu flex align-center justify-between">
  14. <view class="menu-price" v-if="item.money !== null">
  15. <text class="unit"></text>
  16. <text class="price" v-if="item.isHot !==null">急聘*</text>
  17. <text class="price">{{item.money}}</text>
  18. <text>/{{item.company}}</text>
  19. </view>
  20. <view class="menu-price" v-if="item.money == null">
  21. <text class="unit"></text>
  22. <text class="price" v-if="item.isHot !==null">急聘*</text>
  23. <text class="price">面议</text>
  24. </view>
  25. <view class="menu-btn" @click="seeDetail">{{text}}</view>
  26. </view>
  27. </view>
  28. </template>
  29. <script>
  30. export default{
  31. props:{
  32. text:{
  33. type:String,
  34. default:'查看详情'
  35. },
  36. item:{
  37. type:Object,
  38. },
  39. i:{
  40. type:Number,
  41. }
  42. },
  43. data(){
  44. return{
  45. }
  46. },
  47. methods:{
  48. seeDetail(){
  49. this.$emit('seeDetail',this.item)
  50. }
  51. }
  52. }
  53. </script>
  54. <style lang="scss" scoped>
  55. .active-card {
  56. background: #ffffff;
  57. border-radius: 12rpx;
  58. box-shadow: 3rpx 3rpx 6rpx 5rpx rgba(0,0,0,0.16);
  59. overflow: hidden;
  60. padding-bottom: 10rpx;
  61. margin-bottom: 20rpx;
  62. .active-title {
  63. word-wrap:break-word;
  64. word-break:break-all;
  65. font-size: 32rpx;
  66. color: #000;
  67. font-weight: 700;
  68. margin-top: 20rpx;
  69. line-height: 60rpx;
  70. white-space: nowrap;
  71. overflow: hidden;
  72. text-overflow: ellipsis;
  73. }
  74. .active-time {
  75. word-wrap:break-word;
  76. word-break:break-all;
  77. color: #707070;
  78. font-size: 28rpx;
  79. margin: 20rpx 0;
  80. image {
  81. width: 33rpx;
  82. height: 33rpx;
  83. margin-right: 27rpx;
  84. }
  85. /* 文本不会换行显示 */
  86. white-space: nowrap;
  87. /* 超出盒子部分隐藏 */
  88. overflow: hidden;
  89. /* 文本超出的部分打点显示 */
  90. text-overflow: ellipsis;
  91. }
  92. .active-add {
  93. color: #707070;
  94. font-size: 28rpx;
  95. word-wrap:break-word;
  96. word-break:break-all;
  97. /* 文本不会换行显示 */
  98. white-space: nowrap;
  99. /* 超出盒子部分隐藏 */
  100. overflow: hidden;
  101. /* 文本超出的部分打点显示 */
  102. text-overflow: ellipsis;
  103. // overflow: hidden;/*这个参数根据需求来决定要不要*/
  104. image {
  105. width: 30rpx;
  106. height: 35rpx;
  107. margin-right: 27rpx;
  108. }
  109. }
  110. .active-time2 {
  111. color: #707070;
  112. font-size: 28rpx;
  113. margin: 20rpx 0;
  114. image {
  115. width: 33rpx;
  116. height: 33rpx;
  117. margin-right: 27rpx;
  118. }
  119. }
  120. .active-menu {
  121. margin-top: 21rpx;
  122. padding: 0 10rpx;
  123. .menu-price {
  124. font-size: 32rpx;
  125. .price {
  126. color: #D33D3E;
  127. font-size: 34rpx;
  128. font-weight: 500;
  129. }
  130. }
  131. .menu-btn {
  132. width: 213rpx;
  133. height: 79rpx;
  134. display: flex;
  135. align-items: center;
  136. justify-content: center;
  137. color: #00CCCC;
  138. font-size: 30rpx;
  139. font-weight: 500;
  140. }
  141. .menu-btn::after {
  142. content: " ";
  143. width: 15rpx;
  144. height: 15rpx;
  145. border-bottom: 3rpx solid #00CCCC;
  146. border-right: 3rpx solid #00CCCC;
  147. transform: rotate(-45deg);
  148. margin-left: 8rpx;
  149. }
  150. }
  151. }
  152. </style>