加油站付款小程序,打印小票
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.

240 lines
4.1 KiB

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