index.vue 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. <template>
  2. <view class="account">
  3. <view class="search flex aic">
  4. <u-search placeholder="请输入充值账户" searchIconColor="#2A200A" placeholderColor="#959AA3" bgColor="#F2F3F7" v-model="searchValue" :showAction="false" maxlength="30" height="60rpx" @search="searchMobile"></u-search>
  5. <view class="date flex aic" @click="show = true">
  6. <text>日期</text>
  7. <re-icon name="icon-xiala" :customStyle="{ fontSize: '10rpx',marginLeft:'10rpx'}"></re-icon>
  8. </view>
  9. </view>
  10. <view class="tabulation">
  11. <mescroll-body height="100%" ref="mescrollRef" bottom="200" @init="mescrollInit" @down="downCallback" :up="upOption" @up="upCallback">
  12. <view class="list">
  13. <view class="list-item">
  14. <view class="top flex aic jcsb">
  15. <text class="word">充值游戏币</text>
  16. <text class="money">+3456</text>
  17. </view>
  18. <view class="btom flex-column">
  19. <text>充值账户:178 8394 2382</text>
  20. <text>充值账户:178 8394 2382</text>
  21. <text>充值账户:178 8394 2382</text>
  22. <text>充值账户:178 8394 2382</text>
  23. <text>充值账户:178 8394 2382</text>
  24. <text>充值账户:178 8394 2382</text>
  25. </view>
  26. </view>
  27. </view>
  28. <no-data :statusType="2" :top="0" tipsText="暂无数据"></no-data>
  29. </mescroll-body>
  30. </view>
  31. <u-datetime-picker ref="datetimePicker" closeOnClickOverlay :show="show" v-model="value" mode="date" @confirm="confirm" @close="show = false" @cancel="show = false"></u-datetime-picker>
  32. </view>
  33. </template>
  34. <script>
  35. import MescrollMixin from "@/plugins/mescroll/components/mescroll-uni/mescroll-mixins.js"
  36. import MescrollBody from '@/plugins/mescroll/components/mescroll-uni/mescroll-uni.vue'
  37. export default {
  38. components: {
  39. MescrollBody
  40. },
  41. data(){
  42. return{
  43. show:false,
  44. searchValue:'',
  45. value: Number(new Date())
  46. }
  47. },
  48. mixins: [MescrollMixin],
  49. methods: {
  50. confirm(e) {
  51. console.log('confirm', e)
  52. this.show = false
  53. this.date = e.value[0].label
  54. }
  55. },
  56. }
  57. </script>
  58. <style lang="scss" scoped>
  59. .account{
  60. height: 100%;
  61. background: #fff;
  62. display: flex;
  63. flex-direction: column;
  64. .search{
  65. padding: 12rpx 24rpx;
  66. .date{
  67. width: 112rpx;
  68. height: 48rpx;
  69. display: flex;
  70. justify-content: center;
  71. align-items: center;
  72. }
  73. }
  74. .tabulation{
  75. // flex-grow: 1;
  76. width: 100%;
  77. height: calc(100% - 43.6rpx);
  78. overflow: hidden;
  79. background: linear-gradient(360deg,#FFFFFF 60%, #FF911A 100%);
  80. padding: 24rpx 20rpx;
  81. .list{
  82. height: 100%;
  83. background: #FFFFFF;
  84. border-radius: 16rpx;
  85. padding: 32rpx;
  86. .list-item{
  87. margin-bottom: 56rpx;
  88. .top{
  89. font-size: 32rpx;
  90. .word{
  91. font-weight: 500;
  92. color: #000000;
  93. }
  94. .money{
  95. font-weight: bold;
  96. color: #EF3B24;
  97. }
  98. }
  99. .btom{
  100. margin-top: 24rpx;
  101. text{
  102. font-weight: 400;
  103. font-size: 28rpx;
  104. color: #7a7a7a;
  105. margin-bottom: 16rpx;
  106. }
  107. text:nth-last-child(1){
  108. margin-bottom: 0;
  109. }
  110. }
  111. }
  112. .list-item:nth-last-child(1){
  113. margin-bottom: 0;
  114. }
  115. }
  116. }
  117. }
  118. </style>