用工小程序前端代码
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.

204 lines
5.2 KiB

7 months ago
6 months ago
7 months ago
6 months ago
7 months ago
6 months ago
7 months ago
4 months ago
7 months ago
4 months ago
7 months ago
4 months ago
7 months ago
4 months ago
4 months ago
7 months ago
4 months ago
7 months ago
4 months ago
7 months ago
4 months ago
7 months ago
4 months ago
4 months ago
7 months ago
4 months ago
7 months ago
4 months ago
7 months ago
4 months ago
7 months ago
6 months ago
4 months ago
6 months ago
7 months ago
4 months ago
7 months ago
4 months ago
7 months ago
4 months ago
7 months ago
4 months ago
7 months ago
4 months ago
7 months ago
4 months ago
7 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
7 months ago
4 months ago
7 months ago
4 months ago
7 months ago
4 months ago
7 months ago
4 months ago
7 months ago
4 months ago
7 months ago
4 months ago
7 months ago
4 months ago
7 months ago
4 months ago
7 months ago
4 months ago
7 months ago
4 months ago
7 months ago
4 months ago
7 months ago
  1. <template>
  2. <view>
  3. <!-- <view class="se-flex se-flex-h-sb se-px-40 se-py-30 se-bgc-orange se-zi-s">
  4. <view class="se-c-white se-fs-28">
  5. <view class="se-bgc-white se-py-5 se-px-10 se-fw-6 se-br-12 se-c-orange se-fs-24 se-display-ib">
  6. </view>
  7. <text class="se-ml-10 se-fw-6 se-fs-28">用工平台</text>
  8. </view>
  9. <view class="se-br-30 se-bgc-white se-fw-6 se-c-orange se-fs-28 se-px-20 se-py-10">
  10. 企业/个人端
  11. </view>
  12. </view>
  13. <view class="se-px-20 se-pt-10 se-zi-s">
  14. <u-search height="40" placeholder="搜索" :showAction="false" v-model="keyword"></u-search>
  15. </view>
  16. <view class="se-px-20 se-pb-20 se-pt-40 se-zi-s">
  17. <u-swiper
  18. height="300rpx"
  19. style="background-color: transparent;height: 300rpx;"
  20. :list="list"
  21. @change="change"
  22. @click="click"
  23. ></u-swiper>
  24. </view>
  25. <view class="se-p-20">
  26. <view class="se-flex se-flex-ai-c se-pb-10">
  27. <view class="line-orange"></view>
  28. <view class="se-ml-10 se-fs-32 se-c-black se-fw-6">
  29. 信息大厅
  30. </view>
  31. </view>
  32. </view> -->
  33. <!--
  34. <screenWork :filterData='filterData' :defaultIndex='defaultIndex' @onSelected='onSelected' @onIntellect="onIntellect"></screenWork>
  35. -->
  36. <view class="se-mt-10">
  37. <view class="se-m-20 se-br-20 se-bs-b se-bgc-white se-py-20 se-px-30" v-for="(items,indexs) in rolelist"
  38. :key="indexs">
  39. <view class="se-flex se-flex-h-sb" @click.capture="onMasterDetail(items)">
  40. <view class="se-flex">
  41. <view class="se-a-80">
  42. <image class="se-a-80 se-br-p-50 se-bgc-f5" :src="items.headImage" mode=""></image>
  43. </view>
  44. <view class="se-ml-20 se-flex se-flex-v-c se-flex-ai-fs">
  45. <text class="se-fw-6 se-c-black se-fs-30">{{items.userName}}</text>
  46. <text class="se-fs-24 se-c-text-third">{{items.gender==1?'男':'女'}}-汉族</text>
  47. </view>
  48. <view class="se-flex se-flex-h-c">
  49. <view class="se-py-10 se-px-20 se-br-12 se-fs-22 se-c-orange se-bgc-ffd se-ml-20 se-fw-6">
  50. {{items.industryName}}
  51. </view>
  52. </view>
  53. </view>
  54. <view class="se-c-orange se-fs-32 se-fw-6">
  55. {{items.moneyMin}}-{{items.moneyMax}}
  56. </view>
  57. </view>
  58. <!-- <view>
  59. <text class="se-c-text-third se-fs-22 se-mt-10">09月23日 16:20</text>
  60. </view> -->
  61. <view class="se-flex se-flex-h-sb">
  62. <text class="se-c-text-sub se-fs-24">{{items.detail}}</text>
  63. <view @click.capture="onCustomerService(items.phone)"
  64. class="se-flex se-flex-h-c se-py-10 se-px-20 se-br-12 se-fs-22 se-c-orange se-bgc-ffd se-fw-6">
  65. <u-icon color="#FF7A31" name="phone-fill"></u-icon>
  66. <text class="se-ml-5">联系他</text>
  67. </view>
  68. </view>
  69. </view>
  70. <u-empty v-if="rolelist && rolelist.length==0" mode="list"></u-empty>
  71. </view>
  72. <!-- <view class="release-box" @click="toNavigator()">
  73. <image class="se-a-70 se-br-p-50" src="@/static/image/release_btn.png" mode=""></image>
  74. <text class="se-c-white se-fs-30 se-fw-6">订单发布</text>
  75. </view> -->
  76. </view>
  77. </template>
  78. <script>
  79. // import screenWork from "./screen-work.vue"
  80. export default {
  81. props: ["rolelist"],
  82. components: {
  83. // screenWork
  84. },
  85. data() {
  86. return {
  87. keyword: "",
  88. name: "",
  89. list: [
  90. 'https://cdn.uviewui.com/uview/swiper/swiper2.png'
  91. ],
  92. filterData: [
  93. [{
  94. text: '全国',
  95. value: '',
  96. select: true
  97. },
  98. {
  99. text: '状态1',
  100. value: 1,
  101. select: false
  102. },
  103. {
  104. text: '状态2',
  105. value: 2,
  106. select: false
  107. },
  108. {
  109. text: '状态3',
  110. value: 3,
  111. select: false
  112. }
  113. ],
  114. [{
  115. text: '选择工种',
  116. value: '',
  117. select: true
  118. },
  119. {
  120. text: '类型1',
  121. value: 1,
  122. select: false
  123. },
  124. {
  125. text: '类型2',
  126. value: 2,
  127. select: false
  128. },
  129. {
  130. text: '类型3',
  131. value: 3,
  132. select: false
  133. },
  134. ]
  135. ],
  136. defaultIndex: [0, 0]
  137. }
  138. },
  139. mounted() {
  140. console.info(this)
  141. },
  142. methods: {
  143. onCustomerService(phome) {
  144. let that = this
  145. // let obj = that.$utils.getkeyContent('phone')
  146. if (uni.canIUse('makePhoneCall')) {
  147. uni.makePhoneCall({
  148. phoneNumber: String(phome),
  149. success: function() {
  150. console.log('拨打电话成功');
  151. },
  152. fail: function() {
  153. console.log('拨打电话失败');
  154. }
  155. });
  156. } else {
  157. console.log('你的设备不支持拨打电话功能');
  158. }
  159. },
  160. onSelected(res) {
  161. console.info(res)
  162. },
  163. onIntellect(res) {
  164. console.info(res)
  165. },
  166. change(event) {
  167. console.info(event)
  168. },
  169. click(event) {
  170. console.info(event)
  171. },
  172. toNavigator() {
  173. uni.navigateTo({
  174. url: "/pages_subpack/release/index?status=1"
  175. })
  176. },
  177. onMasterDetail(item) {
  178. uni.navigateTo({
  179. url: "/pages_subpack/master-detail/index?id=" + item.id
  180. })
  181. }
  182. }
  183. }
  184. </script>
  185. <style lang="scss" scoped>
  186. .release-box {
  187. width: 250rpx;
  188. height: 80rpx;
  189. background: #ff5d18;
  190. border: 4rpx solid rgba(255, 255, 255, 0.68);
  191. border-radius: 44rpx;
  192. box-shadow: 0px 6rpx 12rpx 0px rgba(0, 0, 0, 0.16);
  193. display: flex;
  194. justify-content: center;
  195. align-items: center;
  196. position: fixed;
  197. bottom: 40rpx;
  198. left: 250rpx;
  199. }
  200. </style>