pay.vue 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230
  1. <template>
  2. <div class="point-pay">
  3. <div class="product">
  4. <div class="img">
  5. <img :src="img" alt="" />
  6. </div>
  7. <div class="content">
  8. <div class="title">教育读本</div>
  9. <div class="amount">
  10. <span class="text">积分 99</span> <span class="num">x 1</span>
  11. </div>
  12. </div>
  13. </div>
  14. <div class="have">
  15. <span class="icon1"></span>
  16. <span class="text">当前可用积分余额 100</span>
  17. <span class="icon2"></span>
  18. </div>
  19. <div class="total">
  20. <div class="text">合计:<span class="num">99积分</span></div>
  21. <nuxt-link to="/point/success" tag="button">提交订单</nuxt-link>
  22. </div>
  23. </div>
  24. </template>
  25. <script>
  26. import ProductList from "../../components/ProductList";
  27. export default {
  28. head() {
  29. return {
  30. title: "积分支付",
  31. };
  32. },
  33. data() {
  34. return {
  35. images: [],
  36. list: [],
  37. loading: false, //加载状态
  38. finished: false, //是否完成加载
  39. refreshing: false, //是否正在上拉刷新
  40. img: "/test/pro.png",
  41. };
  42. },
  43. components: {
  44. ProductList,
  45. },
  46. beforeCreate() {},
  47. created() {},
  48. beforeMount() {},
  49. mounted() {
  50. console.log(this);
  51. },
  52. beforeUpdate() {},
  53. updated() {},
  54. beforeDestroy() {},
  55. destroyed() {},
  56. methods: {
  57. // onLoad() {
  58. // var that = this;
  59. // that.$axios
  60. // .get("/getIntegralWaresInfoList", {
  61. // params: {
  62. // stationId: "1",
  63. // },
  64. // })
  65. // .then((res) => {
  66. // if (res.data.retCode == 0) {
  67. // that.list = res.data.data; //追加数据
  68. // // 加载状态结束
  69. // that.loading = false;
  70. // that.finished = true;
  71. // console.log(that.list);
  72. // }
  73. // });
  74. // },
  75. // onRefresh() {
  76. // // 清空列表数据
  77. // that.finished = true;
  78. // // 重新加载数据
  79. // // 将 loading 设置为 true,表示处于加载状态
  80. // that.loading = true;
  81. // that.onLoad();
  82. // },
  83. },
  84. };
  85. </script>
  86. <style>
  87. .point-pay {
  88. width: 100%;
  89. background: #f8f8f8;
  90. }
  91. .point-pay .product {
  92. height: 1.82rem;
  93. background: #ffffff;
  94. box-sizing: border-box;
  95. padding: 0.3rem;
  96. display: flex;
  97. justify-content: center;
  98. align-items: center;
  99. }
  100. .point-pay .product .img {
  101. width: 2rem;
  102. height: 1.22rem;
  103. box-sizing: border-box;
  104. padding: 0.2rem;
  105. }
  106. .point-pay .product .img img {
  107. width: 100%;
  108. height: 100%;
  109. }
  110. .point-pay .product .content {
  111. width: 5.9rem;
  112. }
  113. .point-pay .product .content .title {
  114. display: block;
  115. height: 0.45rem;
  116. font-size: 0.32rem;
  117. font-family: PingFangSC-Regular, PingFang SC;
  118. font-weight: 400;
  119. color: #0f0f0f;
  120. line-height: 0.45rem;
  121. }
  122. .point-pay .product .content .amount {
  123. display: flex;
  124. justify-content: space-between;
  125. }
  126. .point-pay .product .content .amount .text {
  127. height: 0.4rem;
  128. font-size: 0.28rem;
  129. font-family: PingFangSC-Regular, PingFang SC;
  130. font-weight: 400;
  131. color: #666666;
  132. line-height: 0.4rem;
  133. }
  134. .point-pay .product .content .amount .num {
  135. height: 0.4rem;
  136. font-size: 0.28rem;
  137. font-family: PingFangSC-Regular, PingFang SC;
  138. font-weight: 400;
  139. color: #666666;
  140. line-height: 0.4rem;
  141. }
  142. .point-pay .have {
  143. margin-top: 0.22rem;
  144. height: 1.1rem;
  145. background: #ffffff;
  146. position: relative;
  147. }
  148. .point-pay .have .icon1 {
  149. display: inline-block;
  150. width: 0.4rem;
  151. height: 0.35rem;
  152. background: url("../../static/point/jifen@2x.png") no-repeat 0 0;
  153. background-size: 100% 100%;
  154. position: absolute;
  155. top: 0.39rem;
  156. left: 0.3rem;
  157. }
  158. .point-pay .have .text {
  159. height: 1.1rem;
  160. font-size: 0.28rem;
  161. font-family: PingFangSC-Regular, PingFang SC;
  162. font-weight: 400;
  163. color: #090909;
  164. line-height: 1.1rem;
  165. position: absolute;
  166. left: 0.99rem;
  167. }
  168. .point-pay .have .icon2 {
  169. display: inline-block;
  170. width: 0.36rem;
  171. height: 0.36rem;
  172. background: url("../../static/point/xuanzhong@2x.png") no-repeat 0 0;
  173. background-size: 100% 100%;
  174. position: absolute;
  175. right: 0.36rem;
  176. top: 0.36rem;
  177. }
  178. .point-pay .total {
  179. width: 7.5rem;
  180. height: 1.98rem;
  181. background: #ffffff;
  182. opacity: 0.95;
  183. position: fixed;
  184. bottom: 0;
  185. left:0;
  186. right: 0;
  187. display: flex;
  188. justify-content:flex-end;
  189. box-sizing: border-box;
  190. padding:.4rem;
  191. align-items:center;
  192. }
  193. .point-pay .total .text{
  194. font-size: 0.28rem;
  195. font-family: PingFangSC-Regular, PingFang SC;
  196. font-weight: 400;
  197. color: #111111;
  198. line-height: 0.4rem;
  199. }
  200. .point-pay .total .text .num{
  201. width: 1.17rem;
  202. height: 0.62rem;
  203. font-size: 0.44rem;
  204. font-family: PingFangSC-Regular, PingFang SC;
  205. font-weight: 400;
  206. color: #111111;
  207. line-height: 0.62rem;
  208. }
  209. .point-pay .total button {
  210. border: none;
  211. background-color: transparent;
  212. outline: none;
  213. display: block;
  214. width: 2.2rem;
  215. height: 0.8rem;
  216. background: #fe9700;
  217. border-radius: 0.45rem;
  218. font-size: 0.28rem;
  219. font-family: PingFangSC-Regular, PingFang SC;
  220. font-weight: 400;
  221. color: #ffffff;
  222. line-height: 0.4rem;
  223. margin-left:0.2rem;
  224. }
  225. </style>