list.vue 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276
  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. -->
  59. </div>
  60. </template>
  61. <script>
  62. import ProductList from "../../components/ProductList";
  63. export default {
  64. head() {
  65. return {
  66. title: "积分订单",
  67. };
  68. },
  69. data() {
  70. return {
  71. orderList:[]
  72. };
  73. },
  74. components: {
  75. ProductList,
  76. },
  77. mounted() {
  78. this.initOrderList();
  79. },
  80. methods: {
  81. initOrderList() {
  82. this.$axios
  83. .$get("/getUserIntegralOrderList", {
  84. params: {
  85. unionId: this.unionId,
  86. stationId: this.stationId,
  87. },
  88. })
  89. .then((res) => {
  90. if (res.retCode === 0) {
  91. this.orderList = res.data
  92. }
  93. });
  94. },
  95. },
  96. };
  97. </script>
  98. <style>
  99. .point-list {
  100. width: 100%;
  101. background: #f8f8f8;
  102. width: 7rem;
  103. margin: 0 auto;
  104. }
  105. .point-list .order {
  106. width: 100%;
  107. background: #ffffff;
  108. margin-top: 0.2rem;
  109. }
  110. .point-list .order .top {
  111. width: 100%rem;
  112. height: 1rem;
  113. position: relative;
  114. border-bottom: 0.01rem solid #e0e0e0;
  115. }
  116. .point-list .order .top .code {
  117. height: 0.4rem;
  118. font-size: 0.28rem;
  119. font-family: PingFangSC-Regular, PingFang SC;
  120. font-weight: 400;
  121. color: #666666;
  122. line-height: 0.4rem;
  123. position: absolute;
  124. top: 0.3rem;
  125. left: 0.3rem;
  126. }
  127. .point-list .order .top .status {
  128. width: 0.84rem;
  129. height: 0.4rem;
  130. font-size: 0.28rem;
  131. font-family: PingFangSC-Regular, PingFang SC;
  132. font-weight: 400;
  133. color: #666666;
  134. line-height: 0.4rem;
  135. position: absolute;
  136. top: 0.3rem;
  137. right: 0.3rem;
  138. }
  139. .point-list .order .middle {
  140. width: 100%;
  141. height: 4rem;
  142. display: flex;
  143. justify-content: center;
  144. align-items: center;
  145. }
  146. .point-list .order .middle .imgcon {
  147. width: 2.4rem;
  148. height: 2.4rem;
  149. background: #ffffff;
  150. border-radius: 0.1rem;
  151. border: 0.02rem solid #eeeeee;
  152. box-sizing: border-box;
  153. padding: 0.3rem;
  154. margin-bottom: 1rem;
  155. }
  156. .point-list .order .middle .imgcon img {
  157. width: 100%;
  158. height: 100%;
  159. }
  160. .point-list .order .middle .content {
  161. width: 4.48rem;
  162. height: 3.4rem;
  163. padding: 0.3rem 0.1rem;
  164. }
  165. .point-list .order .middle .content .title {
  166. width: 3.56rem;
  167. height: 0.45rem;
  168. font-size: 0.32rem;
  169. font-family: PingFangSC-Medium, PingFang SC;
  170. font-weight: 500;
  171. color: #111111;
  172. line-height: 0.45rem;
  173. }
  174. .point-list .order .middle .content .desc {
  175. width: 4.2rem;
  176. height: 1.95rem;
  177. font-size: 0.28rem;
  178. font-family: PingFangSC-Regular, PingFang SC;
  179. font-weight: 400;
  180. color: #666666;
  181. line-height: 0.4rem;
  182. }
  183. .point-list .order .middle .content .amount {
  184. width: 4.2rem;
  185. height: 1rem;
  186. font-size: 0.32rem;
  187. font-family: PingFangSC-Medium, PingFang SC;
  188. font-weight: 500;
  189. color: #fe9700;
  190. line-height: 0.45rem;
  191. position: relative;
  192. }
  193. .point-list .order .middle .content .amount div {
  194. display: inline-block;
  195. position: absolute;
  196. right: 0;
  197. top: 0.2rem;
  198. }
  199. .point-list .order .middle .content .amount .text {
  200. width: 1.7rem;
  201. height: 0.33rem;
  202. font-size: 0.24rem;
  203. font-family: PingFangSC-Regular, PingFang SC;
  204. font-weight: 400;
  205. color: #666666;
  206. line-height: 0.33rem;
  207. }
  208. .point-list .order .middle .content .amount .icon {
  209. display: inline-block;
  210. width: 0.25rem;
  211. height: 0.25rem;
  212. background: url("../../static/common/a01_jifen@2x.png") no-repeat 0 0;
  213. background-size: cover;
  214. }
  215. .point-list .order .footer {
  216. width: 100%;
  217. height: 1rem;
  218. position: relative;
  219. display: flex;
  220. justify-content: space-between;
  221. align-items: baseline;
  222. }
  223. .point-list .order .footer .paytime {
  224. display: inline-block;
  225. width: 2.84rem;
  226. height: 0.4rem;
  227. font-size: 0.28rem;
  228. font-family: PingFangSC-Regular, PingFang SC;
  229. font-weight: 400;
  230. color: #aaaaaa;
  231. line-height: 0.4rem;
  232. }
  233. .point-list .order .footer .paybutton {
  234. display: flex;
  235. justify-content: space-between;
  236. width: 3.4rem;
  237. }
  238. .point-list .order .footer .paybutton .cancel {
  239. border: none;
  240. background-color: transparent;
  241. outline: none;
  242. display: block;
  243. width: 1.6rem;
  244. height: 0.6rem;
  245. border-radius: 0.3rem;
  246. border: 0.02rem solid #aaaaaa;
  247. font-size: 0.28rem;
  248. font-family: PingFangSC-Regular, PingFang SC;
  249. font-weight: 400;
  250. color: #aaaaaa;
  251. line-height: 0.4rem;
  252. }
  253. .point-list .order .footer .paybutton .pay {
  254. border: none;
  255. background-color: transparent;
  256. outline: none;
  257. display: block;
  258. width: 1.6rem;
  259. height: 0.6rem;
  260. background: #fe9700;
  261. border-radius: 0.3rem;
  262. font-size: 0.28rem;
  263. font-family: PingFangSC-Regular, PingFang SC;
  264. font-weight: 400;
  265. color: #ffffff;
  266. line-height: 0.4rem;
  267. }
  268. </style>