list.vue 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299
  1. <template>
  2. <div class="point-list">
  3. <div class="order">
  4. <div class="top">
  5. <div class="code">订单号 836847623234289</div>
  6. </div>
  7. <div class="middle">
  8. <div class="imgcon">
  9. <img :src="listsrc" alt="" srcset="" />
  10. </div>
  11. <div class="content">
  12. <div class="title">水光气垫</div>
  13. <div class="desc">15g SPF 50+ PA +++ 自然白</div>
  14. <div class="amount">
  15. <div>
  16. <span class="text">共1件商品 合计 </span><span class="icon"></span
  17. ><span>300</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. images: [],
  71. list: [],
  72. loading: false, //加载状态
  73. finished: false, //是否完成加载
  74. refreshing: false, //是否正在上拉刷新
  75. listsrc: "/test/pro.png",
  76. };
  77. },
  78. components: {
  79. ProductList,
  80. },
  81. beforeCreate() {},
  82. created() {},
  83. beforeMount() {},
  84. mounted() {
  85. console.log(this);
  86. },
  87. beforeUpdate() {},
  88. updated() {},
  89. beforeDestroy() {},
  90. destroyed() {},
  91. methods: {
  92. // onLoad() {
  93. // var that = this;
  94. // that.$axios
  95. // .get("/getIntegralWaresInfoList", {
  96. // params: {
  97. // stationId: "1",
  98. // },
  99. // })
  100. // .then((res) => {
  101. // if (res.data.retCode == 0) {
  102. // that.list = res.data.data; //追加数据
  103. // // 加载状态结束
  104. // that.loading = false;
  105. // that.finished = true;
  106. // console.log(that.list);
  107. // }
  108. // });
  109. // },
  110. // onRefresh() {
  111. // // 清空列表数据
  112. // that.finished = true;
  113. // // 重新加载数据
  114. // // 将 loading 设置为 true,表示处于加载状态
  115. // that.loading = true;
  116. // that.onLoad();
  117. // },
  118. },
  119. };
  120. </script>
  121. <style>
  122. .point-list {
  123. width: 100%;
  124. background: #f8f8f8;
  125. width: 7rem;
  126. margin: 0 auto;
  127. }
  128. .point-list .order {
  129. width: 100%;
  130. background: #ffffff;
  131. margin-top: 0.2rem;
  132. }
  133. .point-list .order .top {
  134. width: 100%rem;
  135. height: 1rem;
  136. position: relative;
  137. border-bottom: 0.01rem solid #e0e0e0;
  138. }
  139. .point-list .order .top .code {
  140. width: 3.44rem;
  141. height: 0.4rem;
  142. font-size: 0.28rem;
  143. font-family: PingFangSC-Regular, PingFang SC;
  144. font-weight: 400;
  145. color: #666666;
  146. line-height: 0.4rem;
  147. position: absolute;
  148. top: 0.3rem;
  149. left: 0.3rem;
  150. }
  151. .point-list .order .top .status {
  152. width: 0.84rem;
  153. height: 0.4rem;
  154. font-size: 0.28rem;
  155. font-family: PingFangSC-Regular, PingFang SC;
  156. font-weight: 400;
  157. color: #666666;
  158. line-height: 0.4rem;
  159. position: absolute;
  160. top: 0.3rem;
  161. right: 0.3rem;
  162. }
  163. .point-list .order .middle {
  164. width: 100%;
  165. height: 4rem;
  166. display: flex;
  167. justify-content: center;
  168. align-items: center;
  169. }
  170. .point-list .order .middle .imgcon {
  171. width: 2.4rem;
  172. height: 2.4rem;
  173. background: #ffffff;
  174. border-radius: 0.1rem;
  175. border: 0.02rem solid #eeeeee;
  176. box-sizing: border-box;
  177. padding: 0.3rem;
  178. margin-bottom: 1rem;
  179. }
  180. .point-list .order .middle .imgcon img {
  181. width: 100%;
  182. height: 100%;
  183. }
  184. .point-list .order .middle .content {
  185. width: 4.48rem;
  186. height: 3.4rem;
  187. padding: 0.3rem 0.1rem;
  188. }
  189. .point-list .order .middle .content .title {
  190. width: 3.56rem;
  191. height: 0.45rem;
  192. font-size: 0.32rem;
  193. font-family: PingFangSC-Medium, PingFang SC;
  194. font-weight: 500;
  195. color: #111111;
  196. line-height: 0.45rem;
  197. }
  198. .point-list .order .middle .content .desc {
  199. width: 4.2rem;
  200. height: 1.95rem;
  201. font-size: 0.28rem;
  202. font-family: PingFangSC-Regular, PingFang SC;
  203. font-weight: 400;
  204. color: #666666;
  205. line-height: 0.4rem;
  206. }
  207. .point-list .order .middle .content .amount {
  208. width: 4.2rem;
  209. height: 1rem;
  210. font-size: 0.32rem;
  211. font-family: PingFangSC-Medium, PingFang SC;
  212. font-weight: 500;
  213. color: #fe9700;
  214. line-height: 0.45rem;
  215. position: relative;
  216. }
  217. .point-list .order .middle .content .amount div {
  218. display: inline-block;
  219. position: absolute;
  220. right: 0;
  221. top: 0.2rem;
  222. }
  223. .point-list .order .middle .content .amount .text {
  224. width: 1.7rem;
  225. height: 0.33rem;
  226. font-size: 0.24rem;
  227. font-family: PingFangSC-Regular, PingFang SC;
  228. font-weight: 400;
  229. color: #666666;
  230. line-height: 0.33rem;
  231. }
  232. .point-list .order .middle .content .amount .icon {
  233. display: inline-block;
  234. width: 0.25rem;
  235. height: 0.25rem;
  236. background: url("../../static/common/a01_jifen@2x.png") no-repeat 0 0;
  237. background-size: cover;
  238. }
  239. .point-list .order .footer {
  240. width: 100%;
  241. height: 1rem;
  242. position: relative;
  243. display: flex;
  244. justify-content: space-between;
  245. align-items: baseline;
  246. }
  247. .point-list .order .footer .paytime {
  248. display: inline-block;
  249. width: 2.84rem;
  250. height: 0.4rem;
  251. font-size: 0.28rem;
  252. font-family: PingFangSC-Regular, PingFang SC;
  253. font-weight: 400;
  254. color: #aaaaaa;
  255. line-height: 0.4rem;
  256. }
  257. .point-list .order .footer .paybutton {
  258. display: flex;
  259. justify-content: space-between;
  260. width: 3.4rem;
  261. }
  262. .point-list .order .footer .paybutton .cancel {
  263. border: none;
  264. background-color: transparent;
  265. outline: none;
  266. display: block;
  267. width: 1.6rem;
  268. height: 0.6rem;
  269. border-radius: 0.3rem;
  270. border: 0.02rem solid #aaaaaa;
  271. font-size: 0.28rem;
  272. font-family: PingFangSC-Regular, PingFang SC;
  273. font-weight: 400;
  274. color: #aaaaaa;
  275. line-height: 0.4rem;
  276. }
  277. .point-list .order .footer .paybutton .pay {
  278. border: none;
  279. background-color: transparent;
  280. outline: none;
  281. display: block;
  282. width: 1.6rem;
  283. height: 0.6rem;
  284. background: #fe9700;
  285. border-radius: 0.3rem;
  286. font-size: 0.28rem;
  287. font-family: PingFangSC-Regular, PingFang SC;
  288. font-weight: 400;
  289. color: #ffffff;
  290. line-height: 0.4rem;
  291. }
  292. </style>