money.vue 5.0 KB

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