酒店桌布为微信小程序
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.

230 lines
4.4 KiB

10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
  1. <template>
  2. <view class="page">
  3. <navbar
  4. title="订单中心"
  5. />
  6. <uv-tabs :list="tabs"
  7. :activeStyle="{color : '#FD5100', fontWeight : 600}"
  8. lineColor="#FD5100"
  9. lineHeight="8rpx"
  10. lineWidth="50rpx"
  11. @click="clickTabs"></uv-tabs>
  12. <view v-if="orderList.length > 0" class="list">
  13. <view class="item"
  14. v-for="(item, index) in orderList"
  15. @click="toOrderDetail(item.id)"
  16. :key="index">
  17. <view class="top">
  18. <view class="service">
  19. <text>{{item.projectId_dictText}}</text>
  20. <text>{{item.type_dictText}}</text>
  21. </view>
  22. <view class="status">
  23. <text> {{item.state_dictText}}</text>
  24. </view>
  25. </view>
  26. <view class="content">
  27. <view class="left">
  28. <image mode="aspectFill" :src="item.image"></image>
  29. </view>
  30. <view class="right">
  31. <view class="text-hidden-1">
  32. 客户姓名{{item.name}}
  33. </view>
  34. <view class="text-hidden-1">
  35. 产品规格{{item.unit}}
  36. </view>
  37. <view class="text-hidden-1">
  38. 租赁地址{{item.address}}
  39. </view>
  40. <!-- <view class="text-hidden-1">
  41. 总计时间{{item.useTime}}分钟
  42. </view> -->
  43. </view>
  44. </view>
  45. <view class="bottom">
  46. <view class="price">
  47. 总价格<text class="num">{{item.money}}</text>
  48. </view>
  49. <view class="b1">
  50. 查看物流
  51. </view>
  52. <!-- <view @click.stop="toPayOrder(item)" class="b2" v-if="item.state == 0">
  53. 立即付款
  54. </view>
  55. <view class="b1" @click.stop="moreOrder(item.projectId,toPlaceorder)" v-if="item.state == 3">
  56. 再来一单
  57. </view>
  58. <view class="b2" @click.stop="toEvaluate(item.id,item.projectId,item.technicianId)" v-if="item.state == 3">
  59. 立即评价
  60. </view>
  61. <view class="b2" @click.stop="moreOrder(item.projectId,toPlaceorder)" v-if="item.state == 4">
  62. 再来一单
  63. </view> -->
  64. </view>
  65. </view>
  66. </view>
  67. <tabber select="2"/>
  68. </view>
  69. </template>
  70. <script>
  71. import tabber from '@/components/base/tabbar.vue'
  72. export default {
  73. components : {
  74. tabber,
  75. },
  76. data() {
  77. return {
  78. tabs: [{
  79. name: '全部'
  80. },
  81. {
  82. name: '租赁押金'
  83. },
  84. {
  85. name: '水洗租赁'
  86. },
  87. {
  88. name: '破损换货'
  89. },
  90. {
  91. name: '退货退款'
  92. }
  93. ],
  94. queryParams: {
  95. pageNo: 1,
  96. pageSize: 10
  97. },
  98. orderList: [
  99. {
  100. money : 99.99,
  101. address : '广东省广州市越秀区城南故事C3栋2802',
  102. name : '李**',
  103. phone : '150*****091',
  104. unit : '120*40*75【桌子尺寸】',
  105. image : 'https://img95.699pic.com/photo/50058/1378.jpg_wh860.jpg',
  106. state_dictText : '已完成',
  107. }
  108. ], //订单列表数据
  109. }
  110. },
  111. computed : {
  112. },
  113. methods: {
  114. //点击tab栏
  115. clickTabs(index) {
  116. if (index == 0) {
  117. this.queryParams.state = -1;
  118. } else {
  119. this.queryParams.state = index - 1;
  120. }
  121. this.getOrderList()
  122. },
  123. //跳转订单详情页面
  124. toOrderDetail(id) {
  125. uni.navigateTo({
  126. url: '/pages/order/orderDetail?id=' + id
  127. })
  128. },
  129. getOrderList(){
  130. },
  131. }
  132. }
  133. </script>
  134. <style scoped lang="scss">
  135. .list {
  136. .item {
  137. width: calc(100% - 40rpx);
  138. background-color: #fff;
  139. margin: 20rpx;
  140. box-sizing: border-box;
  141. border-radius: 16rpx;
  142. padding: 30rpx;
  143. .top {
  144. display: flex;
  145. justify-content: space-between;
  146. align-items: center;
  147. font-size: 30rpx;
  148. .service {}
  149. .status {
  150. font-size: 26rpx;
  151. font-weight: 600;
  152. }
  153. }
  154. .content {
  155. display: flex;
  156. margin: 10rpx 0;
  157. .left {
  158. width: 150rpx;
  159. height: 150rpx;
  160. border-radius: 10rpx;
  161. image {
  162. width: 150rpx;
  163. height: 150rpx;
  164. border-radius: 10rpx;
  165. }
  166. }
  167. .right {
  168. width: calc(100% - 160rpx);
  169. color: #777;
  170. font-size: 24rpx;
  171. padding-left: 20rpx;
  172. line-height: 40rpx;
  173. background-color: #F8F8F8;
  174. }
  175. }
  176. .bottom {
  177. display: flex;
  178. justify-content: space-between;
  179. font-size: 25rpx;
  180. .price {
  181. font-weight: 900;
  182. text {
  183. color: #ff780099;
  184. font-size: 30rpx;
  185. }
  186. }
  187. .b1 {
  188. border: 1px solid #777;
  189. color: #777;
  190. box-sizing: border-box;
  191. }
  192. .b2 {
  193. background: linear-gradient(178deg, #4FD3BC, #60C285);
  194. color: #fff;
  195. }
  196. view {
  197. margin: 12rpx;
  198. border-radius: 28rpx;
  199. padding: 8rpx 28rpx;
  200. margin-bottom: 0;
  201. }
  202. }
  203. }
  204. }
  205. </style>