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

90 lines
2.4 KiB

  1. <template>
  2. <up-list @scrolltolower="scrolltolower">
  3. <up-list-item>
  4. <view class="mb28 container-list-item"
  5. v-for="(item, index) in 1">
  6. <view class="flex-between flex" style="background: #FFF4E5;padding: 22rpx 42rpx">
  7. <view>待接单</view>
  8. <view>本单酬劳
  9. <text style="color: #FF530A">{{ item.orderAmount }}</text>
  10. </view>
  11. </view>
  12. <view class="container-list">
  13. <view class="flex-between flex mb28">
  14. <up-image style="flex-shrink:0" class="mr20" width="70px" height="70px"
  15. src="https://cdn.catmdogd.com/Work/image/work/tx.png" shape="circle"></up-image>
  16. <view>
  17. <view class="font28 col3">服务天数: {{ item.orderServiceTime }} I {{ item.orderServiceDate }}</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"
  26. v-if="true"
  27. text="打卡" @click="toClock" shape="circle" class="mr20"
  28. color="#FFAA48"></up-button>
  29. <up-button type="primary"
  30. v-else
  31. text="查看订单详情" @click="toDetail" shape="circle" class="mr20"
  32. color="#FFAA48"></up-button>
  33. <up-button type="primary" text="查看宠物档案" @click="toPet" shape="circle" class="mr20"
  34. color="#FFAA48"></up-button>
  35. <up-button type="primary" text="查看服务档案" @click="toService" shape="circle"
  36. color="#FFAA48"></up-button>
  37. </view>
  38. </view>
  39. </view>
  40. </up-list-item>
  41. </up-list>
  42. </template>
  43. <script setup>
  44. const scrolltolower = () => {
  45. }
  46. import {
  47. defineProps
  48. } from 'vue';
  49. const { list } = defineProps({
  50. list: {
  51. type: Array,
  52. required: true
  53. },
  54. });
  55. function toClock() {
  56. uni.navigateTo({
  57. url: "/otherPages/myOrdersManage/clock/index"
  58. })
  59. }
  60. function toDetail() {
  61. uni.navigateTo({
  62. url: "/otherPages/orderTakingManage/detail/index"
  63. })
  64. }
  65. function toPet() {
  66. uni.navigateTo({
  67. url: "/otherPages/orderTakingManage/pet/index"
  68. })
  69. }
  70. function toService() {
  71. uni.navigateTo({
  72. url: "/otherPages/myOrdersManage/service/index"
  73. })
  74. }
  75. </script>
  76. <style scoped lang="scss">
  77. @import "../index";
  78. </style>