混凝土运输管理微信小程序、替班
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.

130 lines
2.6 KiB

1 week ago
  1. <template>
  2. <view class="content">
  3. <view class="ilst">
  4. <view v-for="e in lst">
  5. <view class="item">
  6. <view class="flex-sb" style="line-height: 90rpx;font-size: 30rpx;">
  7. <view>{{ e.name }}</view>
  8. <view style="color: #ccc;font-size: 26rpx;">{{ $timeUtils.formatTime(e.create_time) }}</view>
  9. </view>
  10. <view style="line-height: 42rpx;font-size: 28rpx;color: #666;padding-bottom: 30rpx;">
  11. 您推荐的
  12. <span v-if="+e.type===1">司机</span>
  13. <span v-else>老板</span>
  14. 平台正在联系中感谢你的信任如有合作将为您提供丰厚奖励
  15. </view>
  16. </view>
  17. </view>
  18. <view class="re-empty" v-if="lst.length<1">
  19. <view>暂无数据</view>
  20. </view>
  21. </view>
  22. <view class="re-end-pand b-fiexd">
  23. <button @click="clickSell()">我要推荐</button>
  24. </view>
  25. </view>
  26. </template>
  27. <script>
  28. export default {
  29. data() {
  30. return {
  31. lst: []
  32. }
  33. },
  34. onShow() {
  35. this.loadList()
  36. },
  37. methods: {
  38. clickSell(){
  39. uni.navigateTo({ url: '/pages/user/driver' })
  40. },
  41. loadList(){
  42. uni.showLoading({})
  43. this.$httpGet("/api/sells/list", this.form, (res) => {
  44. uni.hideLoading({})
  45. console.log('[/sells/list]', res);
  46. if(res.data){
  47. this.lst = this.$utils.toArray(res.data)
  48. }
  49. })
  50. }
  51. }
  52. }
  53. </script>
  54. <style>
  55. page {
  56. background-color: #f5f5f5 !important;
  57. }
  58. .ilst{
  59. margin: 32rpx auto 0rpx; width: calc(100vw - 64rpx); margin-bottom: 168rpx;
  60. position: relative;
  61. min-height: 60vh;
  62. }
  63. .head{
  64. height: 60rpx;
  65. line-height: 60rpx;
  66. padding: 0 40rpx;
  67. background-color: #fff;
  68. }
  69. .item{
  70. margin-bottom: 32rpx;
  71. padding: 0 24rpx;
  72. background-color: #FFF;
  73. width: calc(100vw - 112rpx);
  74. min-height: 200rpx;
  75. border-radius: 24rpx;
  76. }
  77. .item-card{
  78. width: calc(100vw - 60rpx);
  79. height: calc(236rpx - 60rpx);
  80. background: #ffffff;
  81. padding: 30rpx;
  82. font-size: 24rpx;
  83. line-height: 42rpx;
  84. color: #333333;
  85. }
  86. .item-button{
  87. position: absolute;
  88. left: 533rpx;
  89. top: 134.42rpx;
  90. width: 182rpx;
  91. height: 52rpx;
  92. line-height: 52rpx;
  93. border-radius: 8rpx;
  94. opacity: 1;
  95. box-sizing: border-box;
  96. border: 2rpx solid #F70303;
  97. font-size: 28rpx;
  98. font-weight: normal;
  99. text-align: center;
  100. letter-spacing: 0px;
  101. color: #F70303;
  102. }
  103. .b-fiexd{
  104. min-height: 88rpx;
  105. width: calc(100vw);
  106. padding: 30rpx 0;
  107. position: fixed;
  108. left: 0;
  109. bottom: 0;
  110. box-shadow: -20rpx 10rpx 10rpx #000;
  111. background-color: #ffffff;
  112. }
  113. .re-end-pand button{
  114. background-color: transparent;
  115. border: 2rpx solid #F40000 !important;
  116. color: #F40000;
  117. font-size: 32rpx;
  118. }
  119. </style>