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

233 lines
4.5 KiB

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