景徳镇旅游微信小程序
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.

157 lines
2.9 KiB

8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
  1. <template>
  2. <view class="page">
  3. <!-- 我的预约 -->
  4. <navbar title="我的预约" leftClick @leftClick="$utils.navigateBack" />
  5. <view style="background-color: #fff;">
  6. <uv-tabs :list="tabs"
  7. lineColor="#B12026"
  8. lineHeight="8rpx"
  9. lineWidth="50rpx"
  10. @click="clickTabs"></uv-tabs>
  11. </view>
  12. <view class="subscribe-list">
  13. <view class="item"
  14. v-for="(item, index) in list">
  15. <!-- 主题 -->
  16. <uv-cell :title="item.orderTitle"
  17. :border="false">
  18. <template #icon>
  19. <text class="text">主题</text>
  20. </template>
  21. <template #value>
  22. <text class="price">{{ item.orderPrice }}</text>
  23. </template>
  24. </uv-cell>
  25. <!-- 日期 -->
  26. <uv-cell
  27. :border="false">
  28. <template #icon>
  29. <text class="text">日期</text>
  30. </template>
  31. <template #title>
  32. <text class="time">{{ item.orderDate }}</text>
  33. </template>
  34. </uv-cell>
  35. <!-- 时间 -->
  36. <uv-cell
  37. :border="false">
  38. <template #icon>
  39. <text class="text">时间</text>
  40. </template>
  41. <template #title>
  42. <text class="time">{{ item.orderTime }}</text>
  43. </template>
  44. </uv-cell>
  45. <!-- 电话 -->
  46. <uv-cell
  47. :border="false">
  48. <template #icon>
  49. <text class="text">电话</text>
  50. </template>
  51. <template #title>
  52. <text class="phone">{{ item.orderPhone }}</text>
  53. </template>
  54. </uv-cell>
  55. <view class="btns">
  56. <view class="btn">
  57. 再次预约
  58. </view>
  59. </view>
  60. </view>
  61. </view>
  62. </view>
  63. </template>
  64. <script>
  65. import mixinsList from '@/mixins/list.js'
  66. export default {
  67. mixins : [mixinsList],
  68. data() {
  69. return {
  70. tabs: [
  71. {
  72. name: '路径定制'
  73. },
  74. {
  75. name: '遗产讲述'
  76. },
  77. {
  78. name: '达人同游'
  79. },
  80. {
  81. name: '我要跟拍'
  82. },
  83. {
  84. name: '非遗体验'
  85. },
  86. {
  87. name: '我要研学'
  88. },
  89. ],
  90. mixinsListApi : 'queryOrderList',
  91. list : [],
  92. }
  93. },
  94. onLoad() {
  95. this.queryParams.orderType = 0
  96. },
  97. onShow() {
  98. this.getData()
  99. },
  100. methods: {
  101. //点击tab栏
  102. clickTabs({index}) {
  103. this.queryParams.orderType = index;
  104. this.getData()
  105. },
  106. }
  107. }
  108. </script>
  109. <style scoped lang="scss">
  110. .page {
  111. .subscribe-list{
  112. .item{
  113. background-color: #fff;
  114. border-radius: 20rpx;
  115. margin: 20rpx;
  116. padding: 20rpx;
  117. box-shadow: 0 0 16rpx 6rpx #00000011;
  118. /deep/ text{
  119. font-size: 26rpx;
  120. color: #333333;
  121. font-weight: 900;
  122. }
  123. /deep/ .text{
  124. color: #B7BBC7;
  125. margin-right: 20rpx;
  126. font-size: 26rpx;
  127. }
  128. /deep/ .price{
  129. color: #f40;
  130. }
  131. /deep/ .time{
  132. color: $uni-color;
  133. }
  134. .btns{
  135. display: flex;
  136. justify-content: flex-end;
  137. .btn{
  138. padding: 10px 30rpx;
  139. font-size: 24rpx;
  140. background-color: $uni-color;
  141. color: #fff;
  142. border-radius: 35rpx;
  143. }
  144. }
  145. }
  146. }
  147. }
  148. </style>