兼兼街公众号代码
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.

163 lines
3.4 KiB

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