amount.vue 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293
  1. <template>
  2. <div class="outer">
  3. <div class="container">
  4. <div class="overview">
  5. <div class="title">会员余额(¥)</div>
  6. <div class="money">89757.00</div>
  7. <div class="pay">
  8. <span class="icon"></span>
  9. <span class="text"> 充值</span>
  10. </div>
  11. </div>
  12. <div class="detail">
  13. <div class="title">金额明细</div>
  14. <div class="part">
  15. <div class="active">全部</div>
  16. <div class="">充值</div>
  17. <div class="">支出</div>
  18. </div>
  19. </div>
  20. <div class="content">
  21. <div class="ele">
  22. <div class="title">
  23. <span class="text">充值</span>
  24. <span class="amount">+ 1050.00</span>
  25. </div>
  26. <div class="item">
  27. <span class="text">充值金额</span>
  28. <span class="amount">1000.00</span>
  29. </div>
  30. <div class="item">
  31. <span class="text">赠送金额</span> <span class="amount">50.00</span>
  32. </div>
  33. <div class="item">
  34. <span class="text">充值时间</span>
  35. <span class="amount">2020/09/20 18:00:00</span>
  36. </div>
  37. </div>
  38. </div>
  39. </div>
  40. </div>
  41. </template>
  42. <script>
  43. import ProductList from "../../components/ProductList";
  44. export default {
  45. head() {
  46. return {
  47. title: "积分订单",
  48. };
  49. },
  50. data() {
  51. return {
  52. images: [],
  53. list: [],
  54. loading: false, //加载状态
  55. finished: false, //是否完成加载
  56. refreshing: false, //是否正在上拉刷新
  57. listsrc: "/test/pro.png",
  58. };
  59. },
  60. components: {
  61. ProductList,
  62. },
  63. beforeCreate() {},
  64. created() {},
  65. beforeMount() {},
  66. mounted() {
  67. console.log(this);
  68. },
  69. beforeUpdate() {},
  70. updated() {},
  71. beforeDestroy() {},
  72. destroyed() {},
  73. methods: {
  74. // onLoad() {
  75. // var that = this;
  76. // that.$axios
  77. // .get("/getIntegralWaresInfoList", {
  78. // params: {
  79. // stationId: "1",
  80. // },
  81. // })
  82. // .then((res) => {
  83. // if (res.data.retCode == 0) {
  84. // that.list = res.data.data; //追加数据
  85. // // 加载状态结束
  86. // that.loading = false;
  87. // that.finished = true;
  88. // console.log(that.list);
  89. // }
  90. // });
  91. // },
  92. // onRefresh() {
  93. // // 清空列表数据
  94. // that.finished = true;
  95. // // 重新加载数据
  96. // // 将 loading 设置为 true,表示处于加载状态
  97. // that.loading = true;
  98. // that.onLoad();
  99. // },
  100. },
  101. };
  102. </script>
  103. <style>
  104. .outer {
  105. width: 100%;
  106. height: 16.24rem;
  107. background: #ffffff;
  108. }
  109. .outer .container {
  110. width: 6.9rem;
  111. margin: 0 auto;
  112. }
  113. .outer .container .overview {
  114. width: 6.9rem;
  115. height: 2.8rem;
  116. background: url("../../static/point/4_b01_bj@2x.png") no-repeat;
  117. background-size: 100% 100%;
  118. position: relative;
  119. }
  120. .outer .container .overview .title {
  121. width: 1.48rem;
  122. height: 0.4rem;
  123. font-size: 0.28rem;
  124. font-family: PingFangSC-Regular, PingFang SC;
  125. font-weight: 400;
  126. color: #ffffff;
  127. line-height: 0.4rem;
  128. position: absolute;
  129. left: 0.6rem;
  130. top: 0.6rem;
  131. }
  132. .outer .container .overview .money {
  133. width: 2.2rem;
  134. height: 0.7rem;
  135. font-size: 0.5rem;
  136. font-family: PingFangSC-Semibold, PingFang SC;
  137. font-weight: 600;
  138. color: #ffffff;
  139. line-height: 0.7rem;
  140. position: absolute;
  141. top: 1.2rem;
  142. left: 0.6rem;
  143. }
  144. .outer .container .overview .pay {
  145. width: 1.56rem;
  146. height: 0.6rem;
  147. border-radius: 0.39rem;
  148. border: 0.02rem solid #ffffff;
  149. position: absolute;
  150. top: 1.3rem;
  151. right: 0.6rem;
  152. display: flex;
  153. align-items: center;
  154. justify-content: center;
  155. }
  156. .outer .container .overview .pay .icon {
  157. width: 0.3rem;
  158. height: 0.3rem;
  159. background: #ffffff;
  160. display: inline-block;
  161. background: url("../../static/point/jinbi.png") no-repeat;
  162. background-size: cover;
  163. }
  164. .outer .container .overview .pay .text {
  165. display: inline-block;
  166. width: 0.56rem;
  167. height: 0.6rem;
  168. font-size: 0.28rem;
  169. font-family: PingFangSC-Regular, PingFang SC;
  170. font-weight: 400;
  171. color: #ffffff;
  172. line-height: 0.6rem;
  173. margin-left: 0.2rem;
  174. }
  175. .outer .container .detail {
  176. width: 100%;
  177. height: 1.17rem;
  178. display: flex;
  179. justify-content: space-between;
  180. border-bottom: 0.01rem solid #e0e0e0;
  181. }
  182. .outer .container .detail .title {
  183. width: 1.28rem;
  184. height: 1.17rem;
  185. font-size: 0.32rem;
  186. font-family: PingFangSC-Regular, PingFang SC;
  187. font-weight: 400;
  188. color: #000000;
  189. line-height: 1.17rem;
  190. }
  191. .outer .container .detail .part {
  192. display: flex;
  193. width: 3.2rem;
  194. height: 1.13rem;
  195. justify-content: space-between;
  196. align-items: center;
  197. }
  198. .outer .container .detail .part div {
  199. width: 0.64rem;
  200. height: 1.13rem;
  201. font-size: 0.32rem;
  202. font-family: PingFangSC-Regular, PingFang SC;
  203. font-weight: 400;
  204. color: #aaaaaa;
  205. line-height: 1.13rem;
  206. }
  207. .outer .container .detail .part .active {
  208. width: 0.64rem;
  209. height: 1.13rem;
  210. font-size: 0.32rem;
  211. font-family: PingFangSC-Regular, PingFang SC;
  212. font-weight: 400;
  213. color: #111111;
  214. border-bottom: 0.06rem solid #db9d28;
  215. }
  216. .outer .container .content {
  217. width: 100%;
  218. }
  219. .outer .container .content .ele {
  220. height: 2.7rem;
  221. border-bottom: 0.01rem solid #e0e0e0;
  222. padding: 0.3rem 0;
  223. display: flex;
  224. flex-direction: column;
  225. justify-content: space-around
  226. }
  227. .outer .container .content .ele .title {
  228. width: 100%;
  229. height: 0.45rem;
  230. font-size: 0.32rem;
  231. font-family: PingFangSC-Regular, PingFang SC;
  232. color: #111111;
  233. line-height: 0.45rem;
  234. display: flex;
  235. justify-content: space-between;
  236. }
  237. .outer .container .content .ele .title .text {
  238. display: inline-block;
  239. width: 0.64rem;
  240. height: 0.45rem;
  241. font-weight: 500;
  242. color: #111111;
  243. }
  244. .outer .container .content .ele .title .amount {
  245. display: inline-block;
  246. height: 0.45rem;
  247. font-weight: 500;
  248. color: #db9d28;
  249. }
  250. .outer .container .content .ele .item{
  251. display:flex;
  252. justify-content: space-between;
  253. align-items: center;
  254. margin-top:0.15rem;
  255. height: 0.4rem;
  256. font-size: 0.28rem;
  257. font-family: PingFangSC-Regular, PingFang SC;
  258. font-weight: 400;
  259. color: #AAAAAA;
  260. line-height: 0.4rem;
  261. }
  262. .outer .container .content .ele .item .text{
  263. display:inline-block;
  264. height: 0.4rem;
  265. font-size: 0.28rem;
  266. font-family: PingFangSC-Regular, PingFang SC;
  267. font-weight: 400;
  268. color: #AAAAAA;
  269. line-height: 0.4rem;
  270. }
  271. .outer .container .content .ele .item .amount{
  272. display:inline-block;
  273. height: 0.4rem;
  274. font-size: 0.28rem;
  275. font-family: PingFangSC-Regular, PingFang SC;
  276. font-weight: 400;
  277. color: #666666;
  278. line-height: 0.4rem;
  279. }
  280. </style>