猫妈狗爸伴宠师小程序前端代码
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.

56 lines
1.7 KiB

  1. <template>
  2. <up-list @scrolltolower="scrolltolower">
  3. <up-list-item v-for="item in orderList">
  4. <view class="mb28 container-list-item">
  5. <view class="flex-between flex" style="background: #FFF4E5;padding: 22rpx 42rpx">
  6. <view>待接单</view>
  7. <view>本单酬劳
  8. <text style="color: #FF530A">{{ item.price }}</text>
  9. </view>
  10. </view>
  11. <view class="container-list">
  12. <view class="flex-between flex mb28">
  13. <up-image style="flex-shrink:0" class="mr20" width="70px" height="70px"
  14. src="https://cdn.catmdogd.com/Work/image/work/tx.png" shape="circle"></up-image>
  15. <view>
  16. <view class="font28 col3">服务天数: 共2天 I 12-07,12-08</view>
  17. <view style="margin: 18rpx 0">期望上门时间</view>
  18. <view>中华田园犬(小型犬) | 专业喂养+提前熟悉+陪玩</view>
  19. </view>
  20. </view>
  21. <view class="mb28 address">{{ item.address }}</view>
  22. <view class="mb28">订单为系统派发请确认订单信息后再抢单</view>
  23. <view class="flex flex-between">
  24. <up-button text="无法接单" shape="circle" plain class="mr20"></up-button>
  25. <up-button @click="toOrderDetail" type="primary" text="查看详情后接单" shape="circle" color="#FFAA48"></up-button>
  26. </view>
  27. </view>
  28. </view>
  29. </up-list-item>
  30. </up-list>
  31. </template>
  32. <script setup>
  33. const scrolltolower = () => {
  34. }
  35. const props = defineProps({
  36. orderList : {
  37. type : Array,
  38. default : () => []
  39. }
  40. })
  41. console.log("props",props)
  42. // 跳转订单详情
  43. const toOrderDetail = () => {
  44. uni.navigateTo({
  45. url: "/otherPages/orderTakingManage/detail/index"
  46. });
  47. }
  48. </script>
  49. <style scoped lang="scss">
  50. @import "../index";
  51. </style>