recruitFast.vue 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243
  1. <template>
  2. <view>
  3. <view class="topBg" :style="'background-image:url('+$getImageUrl('static/images/applet/bg/course.png')+');'">
  4. <image class="topBg-image" :src="$getImageUrl('static/images/applet/index/hotRighrOne.png')"></image>
  5. </view>
  6. <view class="header">
  7. <view class="cu-bar search bg-gray">
  8. <view class="search-form round text-center">
  9. <text class="cuIcon-search"></text>
  10. <input v-model="searchval" :adjust-position="false" type="text" placeholder="请输入关键字"
  11. confirm-type="search" @confirm="btnSearch()"></input>
  12. </view>
  13. <view class="action" v-if="searchval!==''">
  14. <button class="cu-btn bg-white shadow-blur round" @click="btnSearch()">搜索</button>
  15. </view>
  16. </view>
  17. <view class="screen">
  18. <image class="screen-icon" :src="$getImageUrl('static/images/applet/comJobs/screen.png')"></image>
  19. <view class="">筛选</view>
  20. </view>
  21. </view>
  22. <view class="list">
  23. <view class="card" v-for="(item,index) in plist" :key="index" @tap="goDetail(item.id)">
  24. <view class="card-top">
  25. <view class="card-top-item long">
  26. <image class="item-icon" :src="$getImageUrl('static/images/applet/index/cardA.png')"></image>
  27. <view class="item-text bold">{{item.title}}</view>
  28. </view>
  29. <view class="card-top-item short">
  30. <image class="item-icon" :src="$getImageUrl('static/images/applet/comJobs/icon-pageView.png')"></image>
  31. <view class="item-text">浏览量:{{item.volume}}</view>
  32. </view>
  33. <view class="card-top-item long">
  34. <image class="item-icon" :src="$getImageUrl('static/images/applet/comJobs/icon-sum.png')"></image>
  35. <view class="item-text red">工资:{{item.zwagall}}</view>
  36. </view>
  37. <view class="card-top-item short">
  38. <image class="item-icon" :src="$getImageUrl('static/images/applet/index/cardC.png')"></image>
  39. <view class="item-text">赏金<text class="item-text-money">{{item.retmoney}}元</text></view>
  40. </view>
  41. <view class="card-top-item long">
  42. <image class="item-icon" :src="$getImageUrl('static/images/applet/index/cardB.png')"></image>
  43. <view class="item-text">工作时间:</view>
  44. </view>
  45. <view class="card-top-item short">
  46. <image class="item-icon" :src="$getImageUrl('static/images/applet/index/cardD.png')"></image>
  47. <view class="item-text">地点:{{item.district}}</view>
  48. </view>
  49. </view>
  50. <view class="card-bottom">
  51. <view class="bottom-title">{{item.worker.title}}</view>
  52. <u-icon name="more-dot-fill" color="#747474" size="20"></u-icon>
  53. </view>
  54. </view>
  55. <uni-load-more :status="pstatus"></uni-load-more>
  56. </view>
  57. </view>
  58. </template>
  59. <script>
  60. var _this;
  61. export default {
  62. data() {
  63. return {
  64. searchval: "",
  65. ppage: 1,
  66. psize: 20,
  67. plist: [],
  68. pstatus: 'more',
  69. }
  70. },
  71. onLoad() {
  72. _this = this;
  73. _this.getMore();
  74. },
  75. methods: {
  76. goDetail: function(comjobsid) {
  77. uni.navigateTo({
  78. url: '/pages/comjobs/detail?comjobsid=' + comjobsid
  79. });
  80. },
  81. getMore() {
  82. _this.$req.ajax({
  83. path: "comjobs/listcomjobs",
  84. data: {
  85. ppage: _this.ppage,
  86. psize: _this.psize,
  87. rectype: 2
  88. }
  89. }).then((data) => {
  90. _this.pstatus = data.pstatus;
  91. _this.plist = _this.plist.concat(data.plist);
  92. _this.ppage += 1;
  93. console.log("列表数据", _this.plist)
  94. uni.stopPullDownRefresh();
  95. }).catch((err) => {
  96. uni.showModal({
  97. title: '信息提示',
  98. content: err,
  99. showCancel: false
  100. });
  101. });
  102. },
  103. }
  104. }
  105. </script>
  106. <style lang="scss">
  107. page {
  108. background-color: #f0f0f0;
  109. }
  110. .topBg {
  111. height: 266rpx;
  112. padding-right: 54rpx;
  113. background-size: cover;
  114. background-position: center;
  115. display: flex;
  116. align-items: center;
  117. justify-content: flex-end;
  118. .topBg-image {
  119. width: 192rpx;
  120. height: 170rpx;
  121. }
  122. }
  123. .header {
  124. display: flex;
  125. align-items: center;
  126. justify-content: space-between;
  127. .search {
  128. flex: 1;
  129. }
  130. .screen {
  131. width: 150rpx;
  132. display: flex;
  133. align-items: center;
  134. justify-content: center;
  135. font-size: 28rpx;
  136. font-weight: 400;
  137. color: #191919;
  138. .screen-icon {
  139. margin-right: 10rpx;
  140. width: 28rpx;
  141. height: 28rpx;
  142. }
  143. }
  144. }
  145. .list {
  146. padding: 10rpx 26rpx 0;
  147. .card {
  148. margin-bottom: 30rpx;
  149. background: #FFFFFF;
  150. border-radius: 12rpx;
  151. .card-top {
  152. padding: 32rpx 32rpx 0;
  153. border-bottom: 2rpx solid #E2E2E2;
  154. display: flex;
  155. align-items: center;
  156. justify-content: space-between;
  157. flex-wrap: wrap;
  158. .long {
  159. width: 57%;
  160. }
  161. .short {
  162. width: 40%;
  163. }
  164. .card-top-item {
  165. margin-bottom: 34rpx;
  166. display: flex;
  167. align-items: center;
  168. .item-icon {
  169. margin-right: 15rpx;
  170. width: 35rpx;
  171. height: 35rpx;
  172. }
  173. .item-text {
  174. flex: 1;
  175. overflow: hidden;
  176. text-overflow: ellipsis;
  177. -webkit-line-clamp: 1;
  178. display: -webkit-box;
  179. -webkit-box-orient: vertical;
  180. font-size: 28rpx;
  181. font-weight: 400;
  182. color: #747474;
  183. .item-text-money {
  184. margin-left: 10rpx;
  185. font-size: 40rpx;
  186. font-weight: 600;
  187. color: #FF0000;
  188. }
  189. }
  190. .bold {
  191. font-weight: 600;
  192. color: #383838;
  193. }
  194. .red {
  195. color: #CA151C;
  196. }
  197. }
  198. }
  199. .card-bottom {
  200. padding: 20rpx 32rpx;
  201. display: flex;
  202. align-items: center;
  203. justify-content: space-between;
  204. .bottom-title {
  205. width: 80%;
  206. font-size: 32rpx;
  207. font-weight: 600;
  208. color: #383838;
  209. overflow: hidden;
  210. text-overflow: ellipsis;
  211. -webkit-line-clamp: 1;
  212. display: -webkit-box;
  213. -webkit-box-orient: vertical;
  214. }
  215. }
  216. }
  217. }
  218. </style>