paymentCode.vue 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220
  1. <template>
  2. <view>
  3. <u-navbar title="付款码">
  4. </u-navbar>
  5. <view class="content">
  6. <!-- 饭卡信息 -->
  7. <view class="head">
  8. <view class="person">
  9. <view class="photo">
  10. <img src="../../assets/img/shareP.png" alt="">
  11. </view>
  12. <view class="name">
  13. 王泽
  14. </view>
  15. </view>
  16. <view class="balance">
  17. <view class="title">
  18. 饭卡余额:
  19. </view>
  20. <view class="value">
  21. 330 元
  22. </view>
  23. </view>
  24. </view>
  25. <!-- 二维码 -->
  26. <view class="qr-code ">
  27. <view class="img">
  28. <img src="../../assets/img/qrCode.png" alt="">
  29. <view class="qr-logo">
  30. <img src="../../assets/img/qrLogo.png" alt="">
  31. </view>
  32. </view>
  33. <view class="hint">
  34. 将二维码对准摄像头,即可付款就餐
  35. </view>
  36. </view>
  37. <!-- 付款中 -->
  38. <!-- <view class="paying">
  39. <img src="../../assets/img/if-spinner@1x.png" alt="">
  40. <view class="">
  41. 付款中...
  42. </view>
  43. </view> -->
  44. <!-- 我的消费记录 -->
  45. <view class="consumption-record">
  46. <view class="icon">
  47. <img src="../../assets/img/riLine-file-list-3-line@1x.png" alt="">
  48. </view>
  49. <view class="text">
  50. 我的消费记录
  51. </view>
  52. <view class="right">
  53. <u-icon name="arrow-right" color="#999999"></u-icon>
  54. </view>
  55. </view>
  56. </view>
  57. </view>
  58. </template>
  59. <script>
  60. export default {
  61. data() {
  62. return {
  63. }
  64. },
  65. methods: {
  66. }
  67. }
  68. </script>
  69. <style lang="scss" scoped>
  70. page{
  71. background-color: #2A8EFB;
  72. font-family: 'PingFang Regular';
  73. }
  74. /deep/.u-navbar{
  75. background-color: #2A8EFB !important;
  76. }
  77. /deep/.u-title{
  78. color: #fff !important;
  79. font-weight: bold !important;
  80. }
  81. /deep/.uicon-nav-back{
  82. color: #fff !important
  83. }
  84. /deep/.u-border-bottom:after {
  85. border-bottom-width: 0px;
  86. }
  87. .content{
  88. border-radius: 24rpx;
  89. background-color: rgba(255, 255, 255, 1);
  90. margin:48rpx 32rpx;
  91. // 饭卡信息
  92. .head{
  93. padding: 32rpx 0;
  94. margin: 0 32rpx;
  95. display: flex;
  96. justify-content: space-between;
  97. align-items: center;
  98. border-bottom: 1px solid rgba(232, 232, 232, 1);
  99. .person{
  100. display: flex;
  101. align-items: center;
  102. .photo{
  103. width: 48rpx;
  104. height: 48rpx;
  105. border-radius: 100rpx;
  106. overflow: hidden;
  107. img{
  108. width: 100%;
  109. height: 100%;
  110. }
  111. }
  112. .name{
  113. color: rgba(51, 51, 51, 1);
  114. font-size: 36rpx;
  115. margin-left: 16rpx;
  116. }
  117. }
  118. .balance{
  119. display: flex;
  120. align-items: center;
  121. color: rgba(16, 16, 16, 1);
  122. font-size: 32rpx;
  123. font-weight: bold;
  124. }
  125. }
  126. // 二维码
  127. .qr-code{
  128. padding: 80rpx 0;
  129. .img{
  130. width: 400rpx;
  131. height: 400rpx;
  132. position: relative;
  133. margin: 0 144rpx;
  134. img{
  135. width: 100%;
  136. height: 100%;
  137. }
  138. }
  139. .qr-logo{
  140. width: 112rpx;
  141. height: 112rpx;
  142. position:absolute;
  143. top: 0;left:0;right:0;bottom:0;
  144. margin: auto;
  145. img{
  146. width: 100%;
  147. height: 100%;
  148. }
  149. }
  150. // 付款中
  151. }
  152. .hint{
  153. margin-top: 16rpx;
  154. color: rgba(51, 51, 51, 1);
  155. text-align: center;
  156. }
  157. //我的消费记录
  158. .consumption-record{
  159. display: flex;
  160. align-items: center;
  161. padding: 32rpx 0;
  162. margin: 0 32rpx;
  163. border-top: 1px solid rgba(232, 232, 232, 1);
  164. .icon{
  165. width: 40rpx;
  166. height: 40rpx;
  167. img{
  168. width: 100%;
  169. height: 100%;
  170. }
  171. }
  172. .text{
  173. color: rgba(51, 51, 51, 1);
  174. font-size: 32rpx;
  175. margin-left: 8rpx;
  176. }
  177. .right{
  178. margin-left: auto;
  179. }
  180. }
  181. }
  182. // 付款中
  183. .paying{
  184. width: 160rpx;
  185. height: 160rpx;
  186. border-radius: 8px;
  187. background-color: rgba(0, 0, 0, 1);
  188. color: #fff;
  189. padding: 22rpx 0;
  190. text-align: center;
  191. position:absolute;
  192. top: 440rpx;
  193. left:0;
  194. right:0;
  195. margin: auto;
  196. img{
  197. width: 72rpx;
  198. height: 72rpx;
  199. }
  200. }
  201. // 透明
  202. .opacity{
  203. opacity: 0.3;
  204. }
  205. </style>