after-sale.vue 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <template>
  2. <view class="common-page" style="padding:0">
  3. <view class="search-area flex-d">
  4. <view class="flex-a mb-20">
  5. <text class="font-13 mr-10">开始时间:</text>
  6. <uni-datetime-picker type="datetime" v-model="searchParams.startTime" placeholder="请选择开始时间" />
  7. </view>
  8. <view class="flex-a">
  9. <text class="font-13 mr-10">结束时间:</text>
  10. <uni-datetime-picker type="datetime" v-model="searchParams.endTime" placeholder="请选择结束时间" />
  11. </view>
  12. </view>
  13. <view class="footer">
  14. <u-button type="primary" @click="handleSearch" text="查询" customStyle="width:100%;height:100rpx;margin:0 auto;" />
  15. </view>
  16. </view>
  17. </template>
  18. <script setup>
  19. import { ref } from 'vue';
  20. const searchParams = ref({
  21. startTime: '',
  22. endTime: ''
  23. })
  24. const handleSearch = () => {
  25. uni.navigateTo({
  26. url: `/pages/index/statistic/after-sale-result?startTime=${encodeURIComponent(searchParams.value.startTime)}&endTime=${encodeURIComponent(searchParams.value.endTime)}`
  27. })
  28. }
  29. </script>
  30. <style lang="scss">
  31. .common-page {
  32. display: flex;
  33. flex-direction: column;
  34. min-height: 90vh;
  35. padding: 0;
  36. overflow: hidden;
  37. }
  38. .search-area {
  39. background-color: #ffffff;
  40. border-radius: 8rpx;
  41. }
  42. .footer {
  43. margin-top: auto;
  44. background-color: #ffffff;
  45. position: fixed;
  46. bottom: 0;
  47. left: 0;
  48. right: 0;
  49. box-shadow: 0 -2rpx 4rpx rgba(0, 0, 0, 0.1);
  50. }
  51. </style>