paymentCode.vue 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  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. }
  73. /deep/.u-navbar{
  74. background-color: #2A8EFB !important;
  75. }
  76. /deep/.u-title{
  77. color: #fff !important;
  78. font-weight: bold !important;
  79. }
  80. /deep/.uicon-nav-back{
  81. color: #fff !important
  82. }
  83. /deep/.u-border-bottom:after {
  84. border-bottom-width: 0px;
  85. }
  86. .content{
  87. border-radius: 24rpx;
  88. background-color: rgba(255, 255, 255, 1);
  89. margin:48rpx 32rpx;
  90. // 饭卡信息
  91. .head{
  92. padding: 32rpx 0;
  93. margin: 0 32rpx;
  94. display: flex;
  95. justify-content: space-between;
  96. align-items: center;
  97. border-bottom: 1px solid rgba(232, 232, 232, 1);
  98. .person{
  99. display: flex;
  100. align-items: center;
  101. .photo{
  102. width: 48rpx;
  103. height: 48rpx;
  104. border-radius: 100rpx;
  105. overflow: hidden;
  106. img{
  107. width: 100%;
  108. height: 100%;
  109. }
  110. }
  111. .name{
  112. color: rgba(51, 51, 51, 1);
  113. font-size: 36rpx;
  114. margin-left: 16rpx;
  115. }
  116. }
  117. .balance{
  118. display: flex;
  119. align-items: center;
  120. color: rgba(16, 16, 16, 1);
  121. font-size: 32rpx;
  122. font-weight: bold;
  123. }
  124. }
  125. // 二维码
  126. .qr-code{
  127. padding: 80rpx 0;
  128. .img{
  129. width: 400rpx;
  130. height: 400rpx;
  131. position: relative;
  132. margin: 0 144rpx;
  133. img{
  134. width: 100%;
  135. height: 100%;
  136. }
  137. }
  138. .qr-logo{
  139. width: 112rpx;
  140. height: 112rpx;
  141. position:absolute;
  142. top: 0;left:0;right:0;bottom:0;
  143. margin: auto;
  144. img{
  145. width: 100%;
  146. height: 100%;
  147. }
  148. }
  149. // 付款中
  150. }
  151. .hint{
  152. margin-top: 16rpx;
  153. color: rgba(51, 51, 51, 1);
  154. text-align: center;
  155. }
  156. //我的消费记录
  157. .consumption-record{
  158. display: flex;
  159. align-items: center;
  160. padding: 32rpx 0;
  161. margin: 0 32rpx;
  162. border-top: 1px solid rgba(232, 232, 232, 1);
  163. .icon{
  164. width: 40rpx;
  165. height: 40rpx;
  166. img{
  167. width: 100%;
  168. height: 100%;
  169. }
  170. }
  171. .text{
  172. color: rgba(51, 51, 51, 1);
  173. font-size: 32rpx;
  174. margin-left: 8rpx;
  175. }
  176. .right{
  177. margin-left: auto;
  178. }
  179. }
  180. }
  181. // 付款中
  182. .paying{
  183. width: 160rpx;
  184. height: 160rpx;
  185. border-radius: 8px;
  186. background-color: rgba(0, 0, 0, 1);
  187. color: #fff;
  188. padding: 22rpx 0;
  189. text-align: center;
  190. position:absolute;
  191. top: 440rpx;
  192. left:0;
  193. right:0;
  194. margin: auto;
  195. img{
  196. width: 72rpx;
  197. height: 72rpx;
  198. }
  199. }
  200. // 透明
  201. .opacity{
  202. opacity: 0.3;
  203. }
  204. </style>