businessHelp.vue 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  1. <template>
  2. <view>
  3. <view class="header">
  4. <view class="cu-bar search bg-gray">
  5. <view class="search-form round text-center">
  6. <text class="cuIcon-search"></text>
  7. <input v-model="searchval" :adjust-position="false" type="text" placeholder="请输入关键字"
  8. confirm-type="search" @confirm="btnSearch()"></input>
  9. </view>
  10. <view class="action" v-if="searchval!==''">
  11. <button class="cu-btn bg-white shadow-blur round" @click="btnSearch()">搜索</button>
  12. </view>
  13. </view>
  14. <view class="screen">
  15. <image class="screen-icon" :src="$getImageUrl('static/images/applet/comJobs/screen.png')"></image>
  16. <view class="">筛选</view>
  17. </view>
  18. </view>
  19. <view class="list">
  20. <view class="card" v-for="(item,index) in 3" :key="index">
  21. <view class="cardBox">
  22. <view class="cardBox-image"></view>
  23. <view class="cardBox-content">
  24. <view class="content-header">
  25. <view class="header-title">雨伞组装</view>
  26. <image class="header-icon" :src="$getImageUrl('static/images/applet/comJobs/apply.png')" mode="widthFix"></image>
  27. </view>
  28. <view class="header-item red">1元/把</view>
  29. <view class="header-item">外包需求:10000把</view>
  30. <view class="header-item">晋江XXXX伞业制造有限公司</view>
  31. </view>
  32. </view>
  33. </view>
  34. <uni-load-more :status="pstatus"></uni-load-more>
  35. </view>
  36. </view>
  37. </template>
  38. <script>
  39. var _this;
  40. export default {
  41. data() {
  42. return {
  43. searchval: "",
  44. ppage: 1,
  45. psize: 20,
  46. plist: [],
  47. pstatus: 'more',
  48. }
  49. },
  50. onLoad() {
  51. _this = this;
  52. _this.getMore();
  53. },
  54. methods: {
  55. getMore() {
  56. _this.$req.ajax({
  57. path: "comjobs/listcomjobs",
  58. data: {
  59. ppage: _this.ppage,
  60. psize: _this.psize,
  61. rectype: 2
  62. }
  63. }).then((data) => {
  64. _this.pstatus = data.pstatus;
  65. _this.plist = _this.plist.concat(data.plist);
  66. _this.ppage += 1;
  67. console.log("列表数据", _this.plist)
  68. uni.stopPullDownRefresh();
  69. }).catch((err) => {
  70. uni.showModal({
  71. title: '信息提示',
  72. content: err,
  73. showCancel: false
  74. });
  75. });
  76. },
  77. }
  78. }
  79. </script>
  80. <style lang="scss">
  81. page {
  82. background-color: #f0f0f0;
  83. }
  84. .header {
  85. display: flex;
  86. align-items: center;
  87. justify-content: space-between;
  88. .search {
  89. flex: 1;
  90. }
  91. .screen {
  92. width: 150rpx;
  93. display: flex;
  94. align-items: center;
  95. justify-content: center;
  96. font-size: 28rpx;
  97. font-weight: 400;
  98. color: #191919;
  99. .screen-icon {
  100. margin-right: 10rpx;
  101. width: 28rpx;
  102. height: 28rpx;
  103. }
  104. }
  105. }
  106. .list {
  107. padding: 0 26rpx;
  108. .card {
  109. margin-bottom: 30rpx;
  110. background: #FFFFFF;
  111. border-radius: 12rpx;
  112. display: flex;
  113. overflow: hidden;
  114. .cardBox {
  115. width: 100%;
  116. padding: 22rpx 30rpx;
  117. font-size: 28rpx;
  118. color: #747474;
  119. display: flex;
  120. align-items: center;
  121. justify-content: flex-start;
  122. border-left: 5px solid #CA151C;
  123. .cardBox-image {
  124. width: 228rpx;
  125. height: 228rpx;
  126. background: #ff5500;
  127. border-radius: 8rpx;
  128. }
  129. .cardBox-content {
  130. margin-left: 30rpx;
  131. flex: 1;
  132. height: 228rpx;
  133. display: flex;
  134. flex-direction: column;
  135. justify-content: space-between;
  136. .content-header {
  137. display: flex;
  138. align-items: center;
  139. justify-content: space-between;
  140. .header-title {
  141. width: 70%;
  142. font-size: 40rpx;
  143. font-weight: 600;
  144. color: #383838;
  145. overflow: hidden;
  146. text-overflow: ellipsis;
  147. -webkit-line-clamp: 1;
  148. display: -webkit-box;
  149. -webkit-box-orient: vertical;
  150. }
  151. .header-icon {
  152. width: 144rpx;
  153. }
  154. }
  155. .red {
  156. color: #CA151C;
  157. }
  158. .header-item {
  159. overflow: hidden;
  160. text-overflow: ellipsis;
  161. -webkit-line-clamp: 1;
  162. display: -webkit-box;
  163. -webkit-box-orient: vertical;
  164. }
  165. }
  166. }
  167. }
  168. }
  169. </style>