invite.vue 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. <template>
  2. <view>
  3. <block v-for="(item,index) in plist" :key="index">
  4. <view class="cu-card dynamic no-card solid-bottom echo-comjobs-item padding-top-sm padding-lr-sm radius">
  5. <view class="cu-item shadow padding-top-sm padding-bottom">
  6. <view class="padding-lr flex justify-between align-center">
  7. <view class="basis-lg text-bold text-df text-cut">{{item.user.nickname}}</view>
  8. <view class="basis-sm text-cut text-right text-red text-sm">
  9. {{item.status_text}}
  10. </view>
  11. </view>
  12. <view class="padding-lr padding-tb-xs text-cut">
  13. <view v-for="(titem,tindex) in item.user.com_cate" :key="tindex" class="cu-tag light bg-blue lg echo-tags-item">{{titem}}</view>
  14. </view>
  15. <view class="padding-lr padding-tb-xs text-cut">
  16. <view v-for="(eitem,eindex) in item.user.emp_time" :key="eindex" class="cu-tag light bg-red lg echo-tags-item">{{eitem}}</view>
  17. </view>
  18. <view class="padding-lr text-cut text-sm flex justify-between align-center">
  19. <view class="basis-lg text-df text-cut">{{sex[item.user.gender]}}</view>
  20. </view>
  21. <view class="padding-lr padding-tb-xs flex justify-end">
  22. <view class="cu-btn bg-green radius" @tap="showMobile(item.user.mobile)" v-if="item.status == 2">拔打电话</view>
  23. <view class="cu-btn bg-blue margin-left-sm radius" @tap="goDetail(item.userid)">查看简历</view>
  24. </view>
  25. </view>
  26. </view>
  27. </block>
  28. <uni-load-more :status="pstatus"></uni-load-more>
  29. </view>
  30. </template>
  31. <script>
  32. import slFilter from '@/components/sl-filter/sl-filter.vue';
  33. import uniLoadMore from "@/components/uni-load-more/uni-load-more.vue";
  34. var _this;
  35. export default {
  36. components: {
  37. slFilter,
  38. uniLoadMore
  39. },
  40. data() {
  41. return {
  42. workerinfo: {},
  43. pstatus: 'more',
  44. ppage: 1,
  45. psize: 20,
  46. plist: [],
  47. sex: ['未知','男','女'],
  48. };
  49. },
  50. onLoad: function(option){
  51. _this = this;
  52. _this.workerinfo = uni.getStorageSync('workerinfo') || false;
  53. _this.getMore();
  54. },
  55. onPullDownRefresh: function() {
  56. _this.pageRefresh();
  57. },
  58. onReachBottom: function() {
  59. if (_this.pstatus !== 'more') {
  60. return;
  61. }
  62. _this.getMore();
  63. },
  64. methods: {
  65. pageRefresh: function() {
  66. _this.pstatus = 'more';
  67. _this.ppage = 1;
  68. _this.plist = [];
  69. _this.getMore();
  70. },
  71. getMore: function() {
  72. _this.$req.ajax({
  73. path: "resume/workerLog",
  74. data: {
  75. ppage: _this.ppage,
  76. psize: _this.psize,
  77. workerid: _this.workerinfo.id
  78. }
  79. }).then((data) => {
  80. _this.pstatus = data.status;
  81. _this.plist = _this.plist.concat(data.list);
  82. _this.ppage += 1;
  83. uni.stopPullDownRefresh();
  84. }).catch((err) => {
  85. uni.showModal({
  86. title: '信息提示',
  87. content: err,
  88. showCancel: false
  89. });
  90. });
  91. },
  92. goDetail: function(id) {
  93. uni.navigateTo({
  94. url: '/pages/resume/detail?id=' + id
  95. });
  96. },
  97. showMobile: function(mobile) {
  98. uni.makePhoneCall({
  99. phoneNumber:mobile.toString()
  100. });
  101. }
  102. }
  103. }
  104. </script>
  105. <style>
  106. </style>