百富门答题小程序
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.

214 lines
3.6 KiB

5 months ago
2 months ago
5 months ago
2 months ago
5 months ago
2 months ago
5 months ago
2 months ago
5 months ago
2 months ago
5 months ago
2 months ago
5 months ago
2 months ago
5 months ago
2 months ago
5 months ago
2 months ago
5 months ago
2 months ago
5 months ago
2 months ago
5 months ago
2 months ago
5 months ago
2 months ago
5 months ago
2 months ago
2 months ago
2 months ago
5 months ago
2 months ago
5 months ago
2 months ago
5 months ago
2 months ago
5 months ago
2 months ago
5 months ago
2 months ago
5 months ago
2 months ago
5 months ago
2 months ago
5 months ago
2 months ago
5 months ago
2 months ago
5 months ago
2 months ago
5 months ago
2 months ago
2 months ago
2 months ago
2 months ago
2 months ago
5 months ago
2 months ago
5 months ago
2 months ago
5 months ago
2 months ago
5 months ago
2 months ago
5 months ago
2 months ago
5 months ago
  1. <template>
  2. <view class="pagea">
  3. <navbar
  4. title="预约列表"
  5. leftClick
  6. @leftClick="$utils.navigateBack" />
  7. <!-- <uv-tabs :list="tabs"
  8. :activeStyle="{color : '#FD5100', fontWeight : 600}"
  9. lineColor="#FD5100"
  10. lineHeight="8rpx"
  11. lineWidth="50rpx"
  12. @click="clickTabs"></uv-tabs> -->
  13. <view class="list">
  14. <view class="item"
  15. v-for="(item, index) in list"
  16. @click="toOrderDetail(item.id)"
  17. :key="index">
  18. <view class="top">
  19. <view class="service">
  20. <text>预约日期{{item.yearValue}}-{{item.monthDay}}</text>
  21. </view>
  22. <view class="status">
  23. <text>{{ tabs[item.state].name }}</text>
  24. </view>
  25. </view>
  26. <view class="contenta">
  27. <view class="left"
  28. v-if="item.image">
  29. <image mode="aspectFill" :src="item.image"></image>
  30. </view>
  31. <view class="right">
  32. <view class="text-hidden-1">
  33. 客户姓名{{item.name}}
  34. </view>
  35. <view class="text-hidden-1">
  36. 电话{{item.phone}}
  37. </view>
  38. <view class="text-hidden-1">
  39. 预约时间{{item.dayTime}}
  40. </view>
  41. </view>
  42. </view>
  43. <view class="bottom">
  44. 地址{{ item.province }}
  45. {{ item.city }}
  46. {{ item.area }}
  47. {{ item.address }}
  48. </view>
  49. <view class="bottom">
  50. <view></view>
  51. <view class="b2"
  52. v-if="item.state == 1"
  53. @click.stop="toEvaluate(item.id)">
  54. 去评价
  55. </view>
  56. </view>
  57. </view>
  58. </view>
  59. </view>
  60. </template>
  61. <script>
  62. import { mapGetters } from 'vuex'
  63. import mixinsList from '@/mixins/list.js'
  64. export default {
  65. mixins : [mixinsList],
  66. components : {
  67. },
  68. computed : {
  69. },
  70. data() {
  71. return {
  72. tabs: [
  73. {
  74. name: '待上门'
  75. },
  76. {
  77. name: '待评价'
  78. },
  79. {
  80. name: '已完成'
  81. },
  82. ],
  83. mixinsListApi : 'queryReservation',
  84. }
  85. },
  86. onShow() {
  87. },
  88. methods: {
  89. //点击tab栏
  90. clickTabs(index) {
  91. if (index == 0) {
  92. } else {
  93. }
  94. this.queryParams.pageSize = 10
  95. this.getData()
  96. },
  97. //跳转订单详情页面
  98. toOrderDetail(id) {
  99. uni.navigateTo({
  100. url: '/pages_order/info/appoint?id=' + id
  101. })
  102. },
  103. // 去评价
  104. toEvaluate(id){
  105. // uni.navigateTo({
  106. // url: '/pages/index/review?oid=' + id
  107. // })
  108. this.$store.commit('getAnswerList', id)
  109. },
  110. }
  111. }
  112. </script>
  113. <style scoped lang="scss">
  114. .pagea{
  115. }
  116. .list {
  117. .item {
  118. width: calc(100% - 40rpx);
  119. background-color: #fff;
  120. margin: 20rpx;
  121. box-sizing: border-box;
  122. border-radius: 16rpx;
  123. padding: 30rpx;
  124. .top {
  125. display: flex;
  126. justify-content: space-between;
  127. align-items: center;
  128. font-size: 26rpx;
  129. .service {}
  130. .status {
  131. font-size: 26rpx;
  132. font-weight: 600;
  133. }
  134. }
  135. .contenta {
  136. display: flex;
  137. margin: 10rpx 0;
  138. .left {
  139. width: 150rpx;
  140. height: 150rpx;
  141. border-radius: 10rpx;
  142. image {
  143. width: 150rpx;
  144. height: 150rpx;
  145. border-radius: 10rpx;
  146. }
  147. }
  148. .right {
  149. flex: 1;
  150. color: #777;
  151. font-size: 24rpx;
  152. padding-left: 20rpx;
  153. line-height: 40rpx;
  154. background-color: #F8F8F8;
  155. }
  156. }
  157. .bottom {
  158. display: flex;
  159. justify-content: space-between;
  160. font-size: 25rpx;
  161. .price {
  162. font-weight: 900;
  163. text {
  164. color: #ff780099;
  165. font-size: 30rpx;
  166. }
  167. }
  168. .b1 {
  169. border: 1px solid #777;
  170. color: #777;
  171. box-sizing: border-box;
  172. }
  173. .b2 {
  174. background: linear-gradient(178deg, #ecb86488, #ecb864);
  175. color: #fff;
  176. }
  177. view {
  178. margin: 12rpx;
  179. border-radius: 28rpx;
  180. padding: 8rpx 28rpx;
  181. margin-bottom: 0;
  182. }
  183. }
  184. }
  185. }
  186. </style>