list.vue 6.9 KB

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