money.vue 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294
  1. <template>
  2. <view class="center">
  3. <view class="top">
  4. <image class="top-bg" src="../../static/img/order99.png" mode=""></image>
  5. <view class="top-font">现金余额(元)</view>
  6. <view class="num">0.00</view>
  7. </view>
  8. <view class="navbar">
  9. <view class="navbar-item" @click="navTo('')">
  10. <view class="navbar-font">
  11. <image class="navbar-image" src="../../static/img/been.png" mode=""></image>
  12. <view class="font">趣豆</view>
  13. </view>
  14. <view class="navbar-num">200</view>
  15. </view>
  16. <view class="vvv">
  17. </view>
  18. <view class="navbar-item">
  19. <view class="navbar-font">
  20. <image class="navbar-image" src="../../static/money/m03.png" mode=""></image>
  21. <view class="font">积分</view>
  22. </view>
  23. <view class="navbar-num">200</view>
  24. </view>
  25. <view class="vvv">
  26. </view>
  27. <view class="navbar-item">
  28. <view class="navbar-font">
  29. <image class="navbar-image" src="../../static/money/m04.png" mode=""></image>
  30. <view class="font">置换券</view>
  31. </view>
  32. <view class="navbar-num">200</view>
  33. </view>
  34. </view>
  35. <view class="content-box">
  36. <view class="content-title">
  37. <view class="title-left">
  38. <image src="../../static/money/m02.png" mode=""></image>
  39. <text>现金余额明细</text>
  40. </view>
  41. <view class="title-right">
  42. 全部
  43. <image src="../../static/money/m01.png" mode=""></image>
  44. </view>
  45. </view>
  46. <view class="list" v-for="(item ,index) in list" :style="{background:(index%2==0?'#fff':'#F9F9F9')}">
  47. <view class="list-box">
  48. <view class="list-left">
  49. <view class="top1">
  50. {{item.title}}
  51. </view>
  52. <view class="bottom">
  53. {{item.time}}
  54. </view>
  55. </view>
  56. <view class="list-right" :style="{color:(index%2==0?'#ff0000':'#000000')}">
  57. {{item.money}}
  58. </view>
  59. </view>
  60. </view>
  61. </view>
  62. <u-tabbar activeColor="#375AFE" v-model="current" :list="tabbar" :mid-button="true"></u-tabbar>
  63. </view>
  64. </template>
  65. <script>
  66. import {
  67. tabbar
  68. } from '@/utils/tabbar.js';
  69. export default {
  70. data() {
  71. return {
  72. currentIndex:0,
  73. tabbar: tabbar,
  74. current: 3,
  75. list: [{
  76. title: '释放保证金',
  77. time: '2022-01-21 14:12',
  78. money: "200"
  79. },
  80. {
  81. title: '预约入场',
  82. time: '2220-01-21 14:12',
  83. money: "-200"
  84. },
  85. {
  86. title: '释放保证金',
  87. time: '2022-01-21 14:12',
  88. money: "200"
  89. },
  90. {
  91. title: '预约入场',
  92. time: '2220-01-21 14:12',
  93. money: "-200"
  94. }
  95. ]
  96. };
  97. },
  98. methods:{
  99. navTo(url){
  100. uni.navigateTo({
  101. url
  102. })
  103. }
  104. }
  105. };
  106. </script>
  107. <style lang="less">
  108. .center {
  109. height: 100%;
  110. width: 100%;
  111. height: auto;
  112. min-height: 100%;
  113. background: #ffffff;
  114. }
  115. .top {
  116. margin: 20rpx auto 0;
  117. position: relative;
  118. width: 700rpx;
  119. height: 200rpx;
  120. padding: 54rpx 40rpx;
  121. .top-bg {
  122. position: absolute;
  123. top: 0;
  124. left: 0;
  125. right: 0;
  126. width: 700rpx;
  127. height: 200rpx;
  128. border-radius: 25rpx;
  129. }
  130. .top-font {
  131. position: relative;
  132. z-index: 2;
  133. font-size: 32rpx;
  134. font-family: PingFang SC;
  135. font-weight: bold;
  136. color: #ffffff;
  137. line-height: 1;
  138. }
  139. .num {
  140. line-height: 1;
  141. position: relative;
  142. z-index: 2;
  143. margin-top: 24rpx;
  144. font-size: 48rpx;
  145. font-family: PingFang SC;
  146. font-weight: bold;
  147. color: #ffffff;
  148. }
  149. }
  150. .navbar {
  151. display: flex;
  152. justify-content: space-around;
  153. width: 700rpx;
  154. background: #FFFFFF;
  155. box-shadow: 0px 0px 20rpx 0px rgba(50, 50, 52, 0.06);
  156. border-radius: 20rpx;
  157. margin: 40rpx auto 0;
  158. padding: 40rpx 0 50rpx;
  159. .vvv {
  160. width: 2rpx;
  161. height: 74rpx;
  162. background: #DCDCDC;
  163. }
  164. .navbar-item {
  165. display: flex;
  166. flex-direction: column;
  167. align-items: center;
  168. .navbar-font {
  169. margin-bottom: 10rpx;
  170. display: flex;
  171. justify-content: center;
  172. align-items: center;
  173. image {
  174. margin-right: 10rpx;
  175. width: 40rpx;
  176. height: 40rpx;
  177. }
  178. .font {
  179. font-size: 30rpx;
  180. font-weight: bold;
  181. color: #0C1732;
  182. }
  183. }
  184. .navbar-num {
  185. font-size: 34rpx;
  186. font-weight: bold;
  187. color: #0C1732;
  188. }
  189. }
  190. }
  191. .content-box {
  192. margin: 0 30rpx;
  193. .content-title {
  194. margin: 50rpx 0;
  195. display: flex;
  196. justify-content: space-between;
  197. align-items: center;
  198. .title-left {
  199. image {
  200. width: 8rpx;
  201. height: 30rpx;
  202. margin-right: 10rpx;
  203. }
  204. text {
  205. font-size: 34rpx;
  206. font-weight: bold;
  207. color: #0C1732;
  208. }
  209. }
  210. .title-right {
  211. font-size: 30rpx;
  212. font-weight: 500;
  213. color: #0C1732;
  214. image {
  215. margin-left: 10rpx;
  216. width: 17rpx;
  217. height: 12rpx;
  218. }
  219. }
  220. }
  221. }
  222. .list {
  223. display: flex;
  224. justify-content: space-between;
  225. align-items: center;
  226. .list-box {
  227. width: 700rpx;
  228. height: 143rpx;
  229. width: 100%;
  230. display: flex;
  231. border-radius: 10rpx;
  232. justify-content: space-between;
  233. align-items: center;
  234. margin: 0 30rpx;
  235. .list-left {
  236. height: 143rpx;
  237. display: flex;
  238. flex-direction: column;
  239. justify-content: space-around;
  240. .top1 {
  241. font-size: 30rpx;
  242. font-weight: bold;
  243. color: #0C1732;
  244. }
  245. .bottom {
  246. font-size: 26rpx;
  247. font-weight: 500;
  248. color: #999999;
  249. }
  250. }
  251. .list-right {
  252. font-size: 36rpx;
  253. font-weight: bold;
  254. color: #EA453C;
  255. }
  256. }
  257. }
  258. </style>