list.vue 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275
  1. <template>
  2. <div class="point-list">
  3. <div class="order" v-for="item in orderList" :key="item.id">
  4. <div class="top">
  5. <div class="code"> {{"订单号 " + item.integralOrderNo}}</div>
  6. <div class="status">已兑换</div>
  7. </div>
  8. <div class="middle">
  9. <div class="imgcon">
  10. <img :src="item.waresPic" alt="" srcset="" />
  11. </div>
  12. <div class="content">
  13. <div class="title">{{ item.waresName }}</div>
  14. <div class="desc">{{ item.waresDetail }}</div>
  15. <div class="amount">
  16. <div>
  17. <span class="text">共{{ item.exchangeNum }}件商品 合计 </span><span class="icon"></span><span>{{item.integral}}</span>
  18. </div>
  19. </div>
  20. </div>
  21. </div>
  22. <!-- <div class="footer">
  23. <span class="paytime">付款倒计时:23:59:59</span>
  24. <div class="paybutton">
  25. <button class="cancel">取消订单</button>
  26. <button class="pay">立刻付款</button>
  27. </div>
  28. </div> -->
  29. </div>
  30. <!-- <div class="order">
  31. <div class="top">
  32. <div class="code">订单号 836847623234289</div>
  33. <div class="status">待付款</div>
  34. </div>
  35. <div class="middle">
  36. <div class="imgcon">
  37. <img :src="listsrc" alt="" srcset="" />
  38. </div>
  39. <div class="content">
  40. <div class="title">水光气垫</div>
  41. <div class="desc">15g SPF 50+ PA +++ 自然白</div>
  42. <div class="amount">
  43. <div>
  44. <span class="text">共1件商品 合计 </span><span class="icon"></span
  45. ><span>300</span>
  46. </div>
  47. </div>
  48. </div>
  49. </div>
  50. <div class="footer">
  51. <span class="paytime">付款倒计时:23:59:59</span>
  52. <div class="paybutton">
  53. <button class="cancel">取消订单</button>
  54. <button class="pay">立刻付款</button>
  55. </div>
  56. </div>
  57. </div>
  58. </div> -->
  59. </template>
  60. <script>
  61. import ProductList from "../../components/ProductList";
  62. export default {
  63. head() {
  64. return {
  65. title: "积分订单",
  66. };
  67. },
  68. data() {
  69. return {
  70. orderList:[]
  71. };
  72. },
  73. components: {
  74. ProductList,
  75. },
  76. mounted() {
  77. this.initOrderList();
  78. },
  79. methods: {
  80. initOrderList() {
  81. this.$axios
  82. .$get("/getUserIntegralOrderList", {
  83. params: {
  84. unionId: this.unionId,
  85. stationId: this.stationId,
  86. },
  87. })
  88. .then((res) => {
  89. if (res.retCode === 0) {
  90. this.orderList = res.data
  91. }
  92. });
  93. },
  94. },
  95. };
  96. </script>
  97. <style>
  98. .point-list {
  99. width: 100%;
  100. background: #f8f8f8;
  101. width: 7rem;
  102. margin: 0 auto;
  103. }
  104. .point-list .order {
  105. width: 100%;
  106. background: #ffffff;
  107. margin-top: 0.2rem;
  108. }
  109. .point-list .order .top {
  110. width: 100%rem;
  111. height: 1rem;
  112. position: relative;
  113. border-bottom: 0.01rem solid #e0e0e0;
  114. }
  115. .point-list .order .top .code {
  116. height: 0.4rem;
  117. font-size: 0.28rem;
  118. font-family: PingFangSC-Regular, PingFang SC;
  119. font-weight: 400;
  120. color: #666666;
  121. line-height: 0.4rem;
  122. position: absolute;
  123. top: 0.3rem;
  124. left: 0.3rem;
  125. }
  126. .point-list .order .top .status {
  127. width: 0.84rem;
  128. height: 0.4rem;
  129. font-size: 0.28rem;
  130. font-family: PingFangSC-Regular, PingFang SC;
  131. font-weight: 400;
  132. color: #666666;
  133. line-height: 0.4rem;
  134. position: absolute;
  135. top: 0.3rem;
  136. right: 0.3rem;
  137. }
  138. .point-list .order .middle {
  139. width: 100%;
  140. height: 4rem;
  141. display: flex;
  142. justify-content: center;
  143. align-items: center;
  144. }
  145. .point-list .order .middle .imgcon {
  146. width: 2.4rem;
  147. height: 2.4rem;
  148. background: #ffffff;
  149. border-radius: 0.1rem;
  150. border: 0.02rem solid #eeeeee;
  151. box-sizing: border-box;
  152. padding: 0.3rem;
  153. margin-bottom: 1rem;
  154. }
  155. .point-list .order .middle .imgcon img {
  156. width: 100%;
  157. height: 100%;
  158. }
  159. .point-list .order .middle .content {
  160. width: 4.48rem;
  161. height: 3.4rem;
  162. padding: 0.3rem 0.1rem;
  163. }
  164. .point-list .order .middle .content .title {
  165. width: 3.56rem;
  166. height: 0.45rem;
  167. font-size: 0.32rem;
  168. font-family: PingFangSC-Medium, PingFang SC;
  169. font-weight: 500;
  170. color: #111111;
  171. line-height: 0.45rem;
  172. }
  173. .point-list .order .middle .content .desc {
  174. width: 4.2rem;
  175. height: 1.95rem;
  176. font-size: 0.28rem;
  177. font-family: PingFangSC-Regular, PingFang SC;
  178. font-weight: 400;
  179. color: #666666;
  180. line-height: 0.4rem;
  181. }
  182. .point-list .order .middle .content .amount {
  183. width: 4.2rem;
  184. height: 1rem;
  185. font-size: 0.32rem;
  186. font-family: PingFangSC-Medium, PingFang SC;
  187. font-weight: 500;
  188. color: #fe9700;
  189. line-height: 0.45rem;
  190. position: relative;
  191. }
  192. .point-list .order .middle .content .amount div {
  193. display: inline-block;
  194. position: absolute;
  195. right: 0;
  196. top: 0.2rem;
  197. }
  198. .point-list .order .middle .content .amount .text {
  199. width: 1.7rem;
  200. height: 0.33rem;
  201. font-size: 0.24rem;
  202. font-family: PingFangSC-Regular, PingFang SC;
  203. font-weight: 400;
  204. color: #666666;
  205. line-height: 0.33rem;
  206. }
  207. .point-list .order .middle .content .amount .icon {
  208. display: inline-block;
  209. width: 0.25rem;
  210. height: 0.25rem;
  211. background: url("../../static/common/a01_jifen@2x.png") no-repeat 0 0;
  212. background-size: cover;
  213. }
  214. .point-list .order .footer {
  215. width: 100%;
  216. height: 1rem;
  217. position: relative;
  218. display: flex;
  219. justify-content: space-between;
  220. align-items: baseline;
  221. }
  222. .point-list .order .footer .paytime {
  223. display: inline-block;
  224. width: 2.84rem;
  225. height: 0.4rem;
  226. font-size: 0.28rem;
  227. font-family: PingFangSC-Regular, PingFang SC;
  228. font-weight: 400;
  229. color: #aaaaaa;
  230. line-height: 0.4rem;
  231. }
  232. .point-list .order .footer .paybutton {
  233. display: flex;
  234. justify-content: space-between;
  235. width: 3.4rem;
  236. }
  237. .point-list .order .footer .paybutton .cancel {
  238. border: none;
  239. background-color: transparent;
  240. outline: none;
  241. display: block;
  242. width: 1.6rem;
  243. height: 0.6rem;
  244. border-radius: 0.3rem;
  245. border: 0.02rem solid #aaaaaa;
  246. font-size: 0.28rem;
  247. font-family: PingFangSC-Regular, PingFang SC;
  248. font-weight: 400;
  249. color: #aaaaaa;
  250. line-height: 0.4rem;
  251. }
  252. .point-list .order .footer .paybutton .pay {
  253. border: none;
  254. background-color: transparent;
  255. outline: none;
  256. display: block;
  257. width: 1.6rem;
  258. height: 0.6rem;
  259. background: #fe9700;
  260. border-radius: 0.3rem;
  261. font-size: 0.28rem;
  262. font-family: PingFangSC-Regular, PingFang SC;
  263. font-weight: 400;
  264. color: #ffffff;
  265. line-height: 0.4rem;
  266. }
  267. </style>