加油站付款小程序,打印小票
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

220 lines
3.7 KiB

9 months ago
  1. <template>
  2. <uni-nav-bar dark :fixed="true" background-color="#00aaff" :border="false" status-bar title="个人中心" />
  3. <view class="content">
  4. <view class="topBox">
  5. <view class="users">
  6. <view class="u-top">
  7. <image
  8. src="https://img2.baidu.com/it/u=2953585264,744730101&fm=253&fmt=auto&app=138&f=JPEG?w=360&h=360"
  9. mode=""></image>
  10. <view class="tit">
  11. 登录 / 注册
  12. </view>
  13. </view>
  14. </view>
  15. </view>
  16. <view class="listBox">
  17. <view class="lists">
  18. <uni-section title="我的订单" type="line" titleFontSize="34rpx" style="border-radius: 10rpx;"></uni-section>
  19. <view class="order-list">
  20. <view v-for="item in 10" class="order-item">
  21. <view class="order-item-top">
  22. <view class="order-id">420000243620240</view>
  23. <view class="time">2024-12-12 12:12</view>
  24. </view>
  25. <div class="order-item-main">
  26. <div class="title">付款金额</div>
  27. <view class="money-detail">
  28. <view class="unie"></view>
  29. <view class="number">666</view>
  30. </view>
  31. </div>
  32. </view>
  33. </view>
  34. <view v-if="false" class="no-data">
  35. <image src="@/static/empty/noData.png" mode=""></image>
  36. </view>
  37. </view>
  38. </view>
  39. </view>
  40. </template>
  41. <script>
  42. export default {
  43. data() {
  44. return {}
  45. },
  46. methods: {}
  47. }
  48. </script>
  49. <style scoped>
  50. .content {
  51. background: #F1F5F8;
  52. min-height: 100vh;
  53. }
  54. /* 弧形背景 */
  55. .topBox {
  56. width: 100%;
  57. position: relative;
  58. z-index: 1;
  59. overflow: hidden;
  60. padding: 60rpx 20rpx 20rpx;
  61. box-sizing: border-box;
  62. }
  63. .topBox::after {
  64. content: "";
  65. width: 140%;
  66. height: 100px;
  67. position: absolute;
  68. left: -20%;
  69. top: 0;
  70. z-index: -1;
  71. border-radius: 0 0 30% 50%;
  72. background: #00aaff;
  73. }
  74. .txt {
  75. color: #fff;
  76. font-size: 30rpx;
  77. }
  78. .set-right .uni-icons {
  79. margin-right: 10rpx;
  80. }
  81. .users {
  82. display: flex;
  83. align-items: center;
  84. margin-top: 0rpx;
  85. padding: 0rpx 30rpx;
  86. box-sizing: border-box;
  87. height: 200rpx;
  88. background-color: #fff;
  89. box-shadow: 1px 10rpx 20rpx #ececec;
  90. border-radius: 12rpx;
  91. }
  92. .u-top {
  93. display: flex;
  94. justify-content: flex-start;
  95. align-items: center;
  96. }
  97. .users .u-top image {
  98. width: 130rpx;
  99. height: 130rpx;
  100. border-radius: 50%;
  101. margin-right: 20rpx;
  102. }
  103. .u-top .tit {
  104. font-size: 30rpx;
  105. font-weight: 700;
  106. color: #333;
  107. }
  108. .u-item {
  109. text-align: center;
  110. }
  111. .u-item .u-tit {
  112. color: #757575;
  113. font-size: 26rpx;
  114. margin-top: 10rpx;
  115. }
  116. .u-item .num {
  117. color: #000000;
  118. font-size: 33rpx;
  119. font-weight: 700;
  120. }
  121. .bottomBox {
  122. padding: 20rpx;
  123. box-sizing: border-box;
  124. }
  125. .order-list {
  126. padding-top: 20rpx;
  127. }
  128. .order-item {
  129. width: 100%;
  130. background: white;
  131. border-radius: 20rpx;
  132. margin-bottom: 20rpx;
  133. }
  134. .order-item .order-item-top {
  135. display: flex;
  136. align-items: center;
  137. justify-content: space-between;
  138. height: 80rpx;
  139. font-size: 24rpx;
  140. box-sizing: border-box;
  141. padding: 0rpx 20rpx;
  142. }
  143. .order-item .order-item-main {
  144. padding: 60rpx 0rpx;
  145. display: flex;
  146. flex-direction: column;
  147. align-items: center;
  148. }
  149. .order-item-main .title {
  150. color: #5a5a5a;
  151. }
  152. .order-item-main .money-detail {
  153. display: flex;
  154. align-items: center;
  155. margin-top: 20rpx;
  156. }
  157. .money-detail .unit {
  158. font-size: 34rpx;
  159. }
  160. .money-detail .number {
  161. font-size: 60rpx;
  162. }
  163. .no-data {
  164. padding: 30rpx;
  165. box-sizing: border-box;
  166. background-color: #fff;
  167. display: flex;
  168. justify-content: space-around;
  169. align-items: center;
  170. }
  171. .o-item {
  172. width: 25%;
  173. text-align: center;
  174. }
  175. .o-item image {
  176. width: 65rpx;
  177. height: 55rpx;
  178. }
  179. .o-item .tit {
  180. font-size: 28rpx;
  181. margin-top: 10rpx;
  182. }
  183. .listBox {
  184. margin: -10rpx auto 0;
  185. padding: 20rpx;
  186. box-sizing: border-box;
  187. border-radius: 12rpx;
  188. border-radius: 20rpx;
  189. }
  190. </style>