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

68 lines
1.1 KiB

1 month ago
1 month ago
1 month ago
1 month ago
  1. <template>
  2. <!-- <div>不接单日期</div> -->
  3. <view class="box box-size">
  4. <view class="top box-size level">
  5. <view>
  6. <view class="text">
  7. 添加不接单日期
  8. </view>
  9. 您不会再接收到选择日期内的订单
  10. </view>
  11. <view @click="toDetail" class="buttom level" :style="{borderRadius:'31rpx'}">
  12. 添加不接单日期
  13. </view>
  14. </view>
  15. <view class="buttom_ level" :style="{borderRadius:'41rpx'}">
  16. 保存
  17. </view>
  18. </view>
  19. </template>
  20. <script setup>
  21. import {
  22. onLoad,
  23. onShow
  24. } from '@dcloudio/uni-app'
  25. import {
  26. insertOutDate,
  27. outDateList
  28. } from "@/api/date/index.js"
  29. import { ref } from 'vue';
  30. onLoad((options) => {
  31. addressId.value = options.addressId
  32. });
  33. onShow(() => {
  34. getList()
  35. })
  36. let addressId = ref(0)
  37. function getList(){
  38. outDateList({
  39. addressId : addressId.value
  40. })
  41. .then(res => {
  42. })
  43. }
  44. const toDetail = (id) => {
  45. uni.navigateTo({
  46. url: `/otherPages/myOrdersManage/date/detail?id=${id}&addressId=${addressId.value}`
  47. });
  48. }
  49. </script>
  50. <style scoped lang="scss">
  51. @import "index";
  52. </style>