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

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