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

79 lines
2.3 KiB

  1. <template>
  2. <up-list @scrolltolower="scrolltolower">
  3. <up-list-item>
  4. <view class="mb28 container-list-item" v-for="(item, index) in 1">
  5. <view class="flex-between flex" style="background: #FFF4E5;padding: 22rpx 42rpx">
  6. <view>待接单</view>
  7. <view>本单酬劳
  8. <text style="color: #FF530A">{{ item.orderAmount }}</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">服务天数: {{ item.orderServiceTime }} I {{ item.orderServiceDate }}
  17. </view>
  18. <view style="margin: 18rpx 0">期望上门时间</view>
  19. <view>中华田园犬(小型犬) | 专业喂养+提前熟悉+陪玩</view>
  20. </view>
  21. </view>
  22. <view class="mb28 address">{{ item.orderVisitAddress }}</view>
  23. <view class="mb28">订单为系统派发请确认订单信息后再抢单</view>
  24. <view class="flex flex-between">
  25. <up-button type="primary" v-if="true" :text="btnTexts[current]" @click="toClock" shape="circle"
  26. class="mr20" color="#FFAA48"></up-button>
  27. <up-button type="primary" text="宠物档案" @click="toPet" shape="circle" class="mr20"
  28. color="#FFAA48"></up-button>
  29. <up-button type="primary" text="服务档案" @click="toService" shape="circle"
  30. color="#FFAA48"></up-button>
  31. </view>
  32. </view>
  33. </view>
  34. </up-list-item>
  35. </up-list>
  36. </template>
  37. <script setup>
  38. const scrolltolower = () => {
  39. }
  40. const props = defineProps({
  41. list: {
  42. type: Array,
  43. required: true
  44. },
  45. current: {
  46. type: Number,
  47. required: true
  48. }
  49. });
  50. const btnTexts = ['订单详情', '打卡', '打开记录']
  51. function toClock(id) {
  52. const paths = [`/otherPages/orderTakingManage/detail/index?id=${id}`,'/otherPages/myOrdersManage/clock/index','/otherPages/myOrdersManage/clock/detail']
  53. uni.navigateTo({
  54. url: paths[props.current]
  55. })
  56. }
  57. function toPet() {
  58. uni.navigateTo({
  59. url: "/otherPages/orderTakingManage/pet/index"
  60. })
  61. }
  62. function toService() {
  63. uni.navigateTo({
  64. url: "/otherPages/myOrdersManage/service/index"
  65. })
  66. }
  67. </script>
  68. <style scoped lang="scss">
  69. @import "../index";
  70. </style>