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

125 lines
2.4 KiB

2 weeks ago
  1. <template>
  2. <view class="content">
  3. <navbar title="推荐记录" leftClick @leftClick="$utils.navigateBack" />
  4. <view class="ilst">
  5. <view v-for="(item, index) in recommendList" :key="index">
  6. <view class="item">
  7. <view class="flex-sb" style="line-height:90rpx;font-size:30rpx">
  8. <view>{{ item.name }}</view>
  9. <view style="color:#ccc;font-size:26rpx">{{ item.time }}</view>
  10. </view>
  11. <view style="line-height:42rpx;font-size:28rpx;color:#666;padding-bottom:30rpx">
  12. 您推荐的<text>司机</text> 平台正在联系中感谢你的信任如有合作将为您提供丰厚奖励
  13. </view>
  14. </view>
  15. </view>
  16. <view v-if="isEmpty" class="re-empty">
  17. <view>暂无数据</view>
  18. </view>
  19. </view>
  20. <!-- 底部推荐按钮 -->
  21. <view class="re-end-pand b-fiexd">
  22. <button @click="recommend">我要推荐</button>
  23. </view>
  24. </view>
  25. </template>
  26. <script>
  27. import navbar from '@/components/base/navbar.vue'
  28. export default {
  29. name: 'StaffSells',
  30. components: {
  31. navbar
  32. },
  33. data() {
  34. return {
  35. isEmpty: false,
  36. recommendList: [
  37. {
  38. id: 1,
  39. name: '张师傅',
  40. time: '2024-01-15 10:30'
  41. },
  42. {
  43. id: 2,
  44. name: '李师傅',
  45. time: '2024-01-14 15:20'
  46. },
  47. {
  48. id: 3,
  49. name: '王师傅',
  50. time: '2024-01-13 09:45'
  51. }
  52. ]
  53. }
  54. },
  55. methods: {
  56. recommend() {
  57. uni.navigateTo({
  58. url: '/pages_order/staff/driver'
  59. });
  60. }
  61. }
  62. }
  63. </script>
  64. <style scoped lang="scss">
  65. .content {
  66. padding: 20rpx;
  67. min-height: 100vh;
  68. background-color: #f5f5f5;
  69. padding-bottom: 120rpx;
  70. }
  71. .ilst {
  72. margin-top: 20rpx;
  73. }
  74. .item {
  75. background-color: #fff;
  76. border-radius: 10rpx;
  77. padding: 30rpx;
  78. margin-bottom: 20rpx;
  79. box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.1);
  80. }
  81. .flex-sb {
  82. display: flex;
  83. justify-content: space-between;
  84. align-items: center;
  85. }
  86. .re-empty {
  87. text-align: center;
  88. padding: 100rpx 0;
  89. color: #999;
  90. font-size: 28rpx;
  91. }
  92. .re-end-pand {
  93. position: fixed;
  94. bottom: 0;
  95. left: 0;
  96. right: 0;
  97. padding: 20rpx;
  98. background-color: #fff;
  99. border-top: 1rpx solid #f0f0f0;
  100. padding-bottom: calc(20rpx + env(safe-area-inset-bottom));
  101. button {
  102. width: 100%;
  103. height: 80rpx;
  104. line-height: 80rpx;
  105. background-color: #007AFF;
  106. color: #fff;
  107. border-radius: 40rpx;
  108. font-size: 32rpx;
  109. border: none;
  110. }
  111. }
  112. .b-fiexd {
  113. position: fixed;
  114. }
  115. </style>