recruitFast.vue 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250
  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. <image class="item-iconA" v-if="item.is_pay == 1" :src="$getImageUrl('static/images/applet/other/paid.png')"></image>
  41. </view>
  42. <view class="card-top-item long">
  43. <image class="item-icon" :src="$getImageUrl('static/images/applet/index/cardB.png')"></image>
  44. <view class="item-text">工作时间:</view>
  45. </view>
  46. <view class="card-top-item short">
  47. <image class="item-icon" :src="$getImageUrl('static/images/applet/index/cardD.png')"></image>
  48. <view class="item-text">地点:{{item.district}}</view>
  49. </view>
  50. </view>
  51. <view class="card-bottom">
  52. <view class="bottom-title">{{item.worker.title}}</view>
  53. <u-icon name="more-dot-fill" color="#747474" size="20"></u-icon>
  54. </view>
  55. </view>
  56. <uni-load-more :status="pstatus"></uni-load-more>
  57. </view>
  58. </view>
  59. </template>
  60. <script>
  61. var _this;
  62. export default {
  63. data() {
  64. return {
  65. searchval: "",
  66. ppage: 1,
  67. psize: 20,
  68. plist: [],
  69. pstatus: 'more',
  70. }
  71. },
  72. onLoad() {
  73. _this = this;
  74. _this.getMore();
  75. },
  76. methods: {
  77. goDetail: function(comjobsid) {
  78. uni.navigateTo({
  79. url: '/pages/comjobs/detail?comjobsid=' + comjobsid
  80. });
  81. },
  82. getMore() {
  83. _this.$req.ajax({
  84. path: "comjobs/listcomjobs",
  85. data: {
  86. ppage: _this.ppage,
  87. psize: _this.psize,
  88. rectype: 2
  89. }
  90. }).then((data) => {
  91. _this.pstatus = data.pstatus;
  92. _this.plist = _this.plist.concat(data.plist);
  93. _this.ppage += 1;
  94. console.log("列表数据", _this.plist)
  95. uni.stopPullDownRefresh();
  96. }).catch((err) => {
  97. uni.showModal({
  98. title: '信息提示',
  99. content: err,
  100. showCancel: false
  101. });
  102. });
  103. },
  104. }
  105. }
  106. </script>
  107. <style lang="scss">
  108. page {
  109. background-color: #f0f0f0;
  110. }
  111. .topBg {
  112. height: 266rpx;
  113. padding-right: 54rpx;
  114. background-size: cover;
  115. background-position: center;
  116. display: flex;
  117. align-items: center;
  118. justify-content: flex-end;
  119. .topBg-image {
  120. width: 192rpx;
  121. height: 170rpx;
  122. }
  123. }
  124. .header {
  125. display: flex;
  126. align-items: center;
  127. justify-content: space-between;
  128. .search {
  129. flex: 1;
  130. }
  131. .screen {
  132. width: 150rpx;
  133. display: flex;
  134. align-items: center;
  135. justify-content: center;
  136. font-size: 28rpx;
  137. font-weight: 400;
  138. color: #191919;
  139. .screen-icon {
  140. margin-right: 10rpx;
  141. width: 28rpx;
  142. height: 28rpx;
  143. }
  144. }
  145. }
  146. .list {
  147. padding: 10rpx 26rpx 0;
  148. .card {
  149. margin-bottom: 30rpx;
  150. background: #FFFFFF;
  151. border-radius: 12rpx;
  152. .card-top {
  153. padding: 32rpx 32rpx 0;
  154. border-bottom: 2rpx solid #E2E2E2;
  155. display: flex;
  156. align-items: center;
  157. justify-content: space-between;
  158. flex-wrap: wrap;
  159. .long {
  160. width: 50%;
  161. }
  162. .short {
  163. width: 45%;
  164. }
  165. .card-top-item {
  166. margin-bottom: 34rpx;
  167. display: flex;
  168. align-items: center;
  169. .item-icon {
  170. width: 35rpx;
  171. height: 35rpx;
  172. }
  173. .item-iconA {
  174. width: 40rpx;
  175. height: 40rpx;
  176. }
  177. .item-text {
  178. margin: 0 15rpx;
  179. // flex: 1;
  180. overflow: hidden;
  181. text-overflow: ellipsis;
  182. -webkit-line-clamp: 1;
  183. display: -webkit-box;
  184. -webkit-box-orient: vertical;
  185. font-size: 28rpx;
  186. font-weight: 400;
  187. color: #747474;
  188. .item-text-money {
  189. margin-left: 10rpx;
  190. font-size: 30rpx;
  191. font-weight: 600;
  192. color: #FF0000;
  193. }
  194. }
  195. .bold {
  196. font-weight: 600;
  197. color: #383838;
  198. }
  199. .red {
  200. color: #CA151C;
  201. }
  202. }
  203. }
  204. .card-bottom {
  205. padding: 20rpx 32rpx;
  206. display: flex;
  207. align-items: center;
  208. justify-content: space-between;
  209. .bottom-title {
  210. width: 80%;
  211. font-size: 32rpx;
  212. font-weight: 600;
  213. color: #383838;
  214. overflow: hidden;
  215. text-overflow: ellipsis;
  216. -webkit-line-clamp: 1;
  217. display: -webkit-box;
  218. -webkit-box-orient: vertical;
  219. }
  220. }
  221. }
  222. }
  223. </style>