list.vue 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216
  1. <template>
  2. <div class="outer">
  3. <div class="background">
  4. <div class="top">
  5. <h4 class="text">我的积分</h4>
  6. <h2 class="point">999</h2>
  7. <div class="earn">
  8. <div>赚积分</div>
  9. </div>
  10. </div>
  11. </div>
  12. <div class="container">
  13. <div class="menu">
  14. <div class="item item1">
  15. <img src="../../static/point/shangcheng.png" alt="" />
  16. <span>积分商城</span>
  17. </div>
  18. <div class="item item2">
  19. <img src="../../static/point/mingxi.png" alt="" />
  20. <span>积分明细</span>
  21. </div>
  22. <div class="item item3">
  23. <img src="../../static/point/dingdan.png" alt="" />
  24. <span>积分订单</span>
  25. </div>
  26. </div>
  27. <div class="news">
  28. <img src="../../static/test/new.png" alt="" />
  29. </div>
  30. <div class="show">
  31. </div>
  32. </div>
  33. </div>
  34. </template>
  35. <script>
  36. import ProductList from "../common/ProductList"
  37. export default {
  38. head() {
  39. return {
  40. title: "订单页",
  41. };
  42. },
  43. data() {
  44. return {
  45. images: [],
  46. list: [],
  47. loading: false, //加载状态
  48. finished: false, //是否完成加载
  49. refreshing: false, //是否正在上拉刷新
  50. };
  51. },
  52. components:{
  53. ProductList
  54. },
  55. beforeCreate() {},
  56. created() {},
  57. beforeMount() {},
  58. mounted() {
  59. console.log(this);
  60. },
  61. beforeUpdate() {},
  62. updated() {},
  63. beforeDestroy() {},
  64. destroyed() {},
  65. methods: {
  66. // onLoad() {
  67. // var that = this;
  68. // that.$axios
  69. // .get("/getIntegralWaresInfoList", {
  70. // params: {
  71. // stationId: "1",
  72. // },
  73. // })
  74. // .then((res) => {
  75. // if (res.data.retCode == 0) {
  76. // that.list = res.data.data; //追加数据
  77. // // 加载状态结束
  78. // that.loading = false;
  79. // that.finished = true;
  80. // console.log(that.list);
  81. // }
  82. // });
  83. // },
  84. // onRefresh() {
  85. // // 清空列表数据
  86. // that.finished = true;
  87. // // 重新加载数据
  88. // // 将 loading 设置为 true,表示处于加载状态
  89. // that.loading = true;
  90. // that.onLoad();
  91. // },
  92. },
  93. };
  94. </script>
  95. <style>
  96. .outer {
  97. position: relative;
  98. }
  99. .background {
  100. background-color: #f3b335;
  101. width: 100%;
  102. height: 49.46vw;
  103. position: relative;
  104. background: url("../../static/point/bj.png") no-repeat 0px 0px;
  105. background-size: cover;
  106. z-index: -1;
  107. }
  108. .background .text {
  109. position: absolute;
  110. left: 4vw;
  111. top: 8vw;
  112. margin: 0;
  113. padding: 0;
  114. width: 14.9vw;
  115. height: 5.33vw;
  116. font-size: 3.7vw;
  117. font-family: PingFangSC-Regular, PingFang SC;
  118. font-weight: 400;
  119. color: #ffffff;
  120. line-height: 5.33vw;
  121. }
  122. .background .point {
  123. position: absolute;
  124. margin: 0;
  125. padding: 0;
  126. left: 4vw;
  127. top: 15.33vw;
  128. width: 36vw;
  129. height: 16.8vw;
  130. font-size: 12vw;
  131. font-family: PingFangSC-Regular, PingFang SC;
  132. font-weight: 400;
  133. color: #ffffff;
  134. line-height: 14vw;
  135. }
  136. .background .earn {
  137. position: absolute;
  138. right: 0;
  139. top: 20.66vw;
  140. width: 21.33vw;
  141. height: 7.33vw;
  142. font-size: 3.46vw;
  143. font-family: PingFangSC-Regular, PingFang SC;
  144. font-weight: 400;
  145. background: url("../../static/point/jifen.png") no-repeat;
  146. background-size: cover;
  147. box-sizing: border-box;
  148. }
  149. .background .earn div {
  150. position: absolute;
  151. top: 1.5vw;
  152. right: 2vw;
  153. width: 10.4vw;
  154. height: 4.93vw;
  155. font-size: 3.46vw;
  156. font-family: PingFangSC-Regular, PingFang SC;
  157. font-weight: 400;
  158. color: #f3b235;
  159. line-height: 4.93vw;
  160. }
  161. .container {
  162. margin-top: -13.33vw;
  163. width: 100%;
  164. padding: 0 4vw;
  165. box-sizing: border-box;
  166. display: flex;
  167. flex-direction: column;
  168. z-index: 99;
  169. }
  170. .container .menu {
  171. width: 100%;
  172. height: 26.66vw;
  173. background: #ffffff;
  174. box-shadow: 0px 2px 10px 5px rgba(227, 227, 227, 0.5);
  175. border-radius: 20px;
  176. display: flex;
  177. flex-direction: row;
  178. justify-content: space-around;
  179. align-items: center;
  180. }
  181. .container .menu .item {
  182. margin-top: 4vw;
  183. width: 14.93vw;
  184. height: 14.93vw;
  185. }
  186. .container .menu .item img {
  187. display: block;
  188. width: 12vw;
  189. height: 12vw;
  190. margin: 0 auto;
  191. }
  192. .container .menu .item span {
  193. display: block;
  194. width: 100%;
  195. height: 3.73vw;
  196. font-size: 3.73vw;
  197. font-family: PingFangSC-Regular, PingFang SC;
  198. font-weight: 400;
  199. color: #666666;
  200. line-height: 3.73vw;
  201. text-align: center;
  202. margin-top: 3vw;
  203. }
  204. .container .news {
  205. margin-top: 4vw;
  206. width: 100%;
  207. height: 21.33vw;
  208. }
  209. .container .news img {
  210. width: 100%;
  211. height: 100%;
  212. }
  213. </style>