orderList.vue 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  1. <template>
  2. <view>
  3. <view class="list" v-for="(item,index) in list" :key="index" @click="goGroupBuyDetails(item.id)">
  4. <view class="myclient_list">
  5. <view class="myclient_list_name">
  6. <view class="nl">
  7. {{item.mainTitle}}
  8. </view>
  9. <view class="status">
  10. {{item.grouponStateDesc}}
  11. </view>
  12. </view>
  13. <view class="myclient_list_content">
  14. <view class="subtitle">{{item.subTitle}}</view>
  15. <view class="phone">
  16. <image referrerpolicy="no-referrer" src="http://www.gzzzyd.com/groupon/home_slices/日期@2x.png" />
  17. <text>
  18. 团购日期:{{item.grouponStartTime}} 至 {{item.grouponEndTime}}
  19. </text>
  20. </view>
  21. <view class="time">
  22. <image referrerpolicy="no-referrer" src="http://www.gzzzyd.com/groupon/home_slices/时间@2x.png" />
  23. <text>
  24. 提货时间:{{item.takeStartTime}} 至 {{item.takeEndTime}}
  25. </text>
  26. </view>
  27. </view>
  28. </view>
  29. <!-- <view class="self-pickup-point">-->
  30. <!-- <view class="a-b">-->
  31. <!-- <view class="a-b1">-->
  32. <!-- 对接团长:-->
  33. <!-- <text class="red">-->
  34. <!-- 上海市浦东新区秀浦路29号三层303室-->
  35. <!-- </text>-->
  36. <!-- </view>-->
  37. <!-- <view class="a-b2">-->
  38. <!-- </view>-->
  39. <!-- </view>-->
  40. <!-- </view>-->
  41. </view>
  42. </view>
  43. </template>
  44. <script>
  45. export default {
  46. name:"orderList",
  47. props: {
  48. list: {
  49. type: Array,
  50. default() {
  51. return []
  52. }
  53. }
  54. },
  55. data() {
  56. return {
  57. };
  58. },
  59. methods:{
  60. /**
  61. * 去订单详情
  62. */
  63. goGroupBuyDetails(id) {
  64. uni.navigateTo({
  65. url: '/pages/groupbuying/groupbuying_order_details/index?id=' + id
  66. });
  67. },
  68. }
  69. }
  70. </script>
  71. <style lang="scss" scoped>
  72. .list {
  73. width: 100%;
  74. background: white;
  75. margin: 14rpx auto 0 auto;
  76. padding-bottom: 30rpx;
  77. }
  78. .myclient_list {
  79. padding: 30rpx;
  80. background: #FFFFFF;
  81. }
  82. .myclient_list_name {
  83. margin-bottom: 15rpx;
  84. min-height: 44rpx;
  85. font-size: 28rpx;
  86. font-weight: 500;
  87. color: #111111;
  88. line-height: 44rpx;
  89. display: flex;
  90. }
  91. .status {
  92. width: 300rpx;
  93. text-align: right;
  94. margin-left: 30rpx;
  95. color: #75BE00;
  96. }
  97. .myclient_list_content {
  98. .subtitle {
  99. height: 44rpx;
  100. margin: 20rpx 0;
  101. font-size: 28rpx;
  102. font-weight: 400;
  103. color: #666666;
  104. line-height: 44rpx;
  105. }
  106. image {
  107. width: 24rpx;
  108. height: 24rpx;
  109. margin-right: 20rpx;
  110. }
  111. .phone {
  112. margin-bottom: 15rpx;
  113. height: 44rpx;
  114. font-size: 24rpx;
  115. font-weight: 400;
  116. color: #999999;
  117. line-height: 44rpx;
  118. }
  119. .time {
  120. height: 44rpx;
  121. font-size: 24rpx;
  122. font-weight: 400;
  123. color: #999999;
  124. line-height: 44rpx;
  125. }
  126. }
  127. .self-pickup-point {
  128. background: #FFF7F8;
  129. margin: 0 30rpx;
  130. }
  131. .a-b {
  132. padding: 0 30rpx;
  133. width: 100%;
  134. background: #FFF7F8;
  135. border: 1px solid dashed #333333;
  136. height: 60rpx;
  137. line-height: 60rpx;
  138. display: flex;
  139. justify-content: space-between;
  140. .a-b1 {
  141. font-size: 20rpx;
  142. font-weight: 400;
  143. color: #666666;
  144. .red {
  145. font-size: 20rpx;
  146. font-weight: 500;
  147. color: #B22338;
  148. }
  149. }
  150. .a-b2 {
  151. image {
  152. vertical-align: middle;
  153. margin-right: 30rpx;
  154. margin-left: 30rpx;
  155. height: 34rpx;
  156. width: 34rpx;
  157. }
  158. }
  159. }
  160. </style>