江西小程序管理端
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.

227 lines
4.7 KiB

1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
  1. <template>
  2. <view class="content pageBg">
  3. <view class="userInfo">
  4. <view class="tit">Hi,大乔教练</view>
  5. <view class="flex userRow">
  6. <view class="schoolIcon">
  7. <image src="@/static/images/index/ic_jiaxiao.png" mode=""></image>
  8. </view>
  9. <view class="schoolName oneRowText">翔力驾校</view>
  10. <view class="tag">合作教练</view>
  11. </view>
  12. </view>
  13. <view class="card priceBox">
  14. <view class="blueLab">今日已结算金额</view>
  15. <view class="price">36333.66</view>
  16. <view class="flex-b">
  17. <view class="data">截止2023/08/08 11:00:00</view>
  18. <view class="refresh">
  19. <view class="text">刷新</view>
  20. <view class="icon">
  21. <image src="@/static/images/index/ic_shuaxin.png" mode=""></image>
  22. </view>
  23. </view>
  24. </view>
  25. </view>
  26. <view class="h1">结算统计</view>
  27. <view class="tabs">
  28. <view class="tab" @click="tabClick(1)" :class="{active: currentTab==1}">按日</view>
  29. <view class="tab" @click="tabClick(2)" :class="{active: currentTab==2}">按月</view>
  30. <view class="tab" @click="tabClick(3)" :class="{active: currentTab==3}">按年</view>
  31. <view class="tab long" @click="tabClick(4)" :class="{active: currentTab==4}">自定义日期</view>
  32. </view>
  33. <view class="card">
  34. <view class="chart">
  35. 图表到时候一起调
  36. </view>
  37. </view>
  38. <view class="flex-b">
  39. <view class="h1">结算明细</view>
  40. <moreRight text="更多"/>
  41. </view>
  42. <view class="record">
  43. <view class="card" v-for="(item,index) in 10" :key="index">
  44. <stage/>
  45. </view>
  46. </view>
  47. <view class="moreBtn" @click="$goPage('/pages/indexEntry/settlement/settlement')">查看更多</view>
  48. <!-- <UserTab selectedIndex ='2'></UserTab> -->
  49. <u-datetime-picker
  50. :show="showDatePicker"
  51. v-model="value1"
  52. mode="date"
  53. :visibleItemCount="4"
  54. :closeOnClickOverlay="false"
  55. @confirm="confirmDatePicker"
  56. ></u-datetime-picker>
  57. </view>
  58. </template>
  59. <script>
  60. import stage from './comp/stage'
  61. export default {
  62. components: { stage },
  63. data() {
  64. return {
  65. currentTab: 1,
  66. showDatePicker: false
  67. }
  68. },
  69. onLoad() {
  70. console.log('我的页面')
  71. },
  72. onShow() {
  73. // uni.hideTabBar();
  74. },
  75. methods: {
  76. tabClick(num) {
  77. this.currentTab = num
  78. if(num==4) {
  79. this.showDatePicker = true
  80. }
  81. },
  82. // 2选择时间选择器里的时间
  83. confirmDatePicker(val) {
  84. this.showDatePicker = false
  85. let date = uni.$u.date(val.value, 'yyyy-mm-dd')
  86. console.log(date)
  87. },
  88. }
  89. }
  90. </script>
  91. <style lang="scss" scoped>
  92. .content {
  93. width: 100%;
  94. background: url('http://192.168.1.20:81/zhili/image/20230824/30073140957f4349b6579cb0ff00d4b1.png') #F6F6F6 no-repeat;
  95. background-size: 100% 492rpx;
  96. padding: 0 28rpx;
  97. padding-top: 142rpx;
  98. .userInfo {
  99. .tit {
  100. font-size: 48rpx;
  101. color: #fff;
  102. font-weight: 500;
  103. }
  104. .userRow {
  105. align-items: center;
  106. margin-bottom: 20rpx;
  107. .schoolIcon {
  108. width: 28rpx;
  109. height: 28rpx;
  110. }
  111. .schoolName {
  112. font-size: 28rpx;
  113. padding: 20rpx;
  114. max-width: 220rpx;
  115. color: #fff;
  116. }
  117. .tag {
  118. width: 112rpx;
  119. height: 44rpx;
  120. background: #82AFDD;
  121. border-radius: 22rpx;
  122. font-size: 20rpx;
  123. color: #fff;
  124. line-height: 44rpx;
  125. text-align: center;
  126. }
  127. }
  128. }
  129. .priceBox {
  130. padding: 32rpx;
  131. color: $themC;
  132. .blueLab {
  133. font-weight: 500;
  134. font-size: 28rpx;
  135. }
  136. .price {
  137. font-size: 56rpx;
  138. font-weight: 600;
  139. padding: 12rpx 0 24rpx 0;
  140. }
  141. .flex-b {
  142. .data {
  143. font-size: 24rpx;
  144. color: #363A44;
  145. }
  146. .refresh {
  147. width: 130rpx;
  148. height: 60rpx;
  149. background: rgba(25,137,250,0.1);
  150. border-radius: 8rpx;
  151. border: 2rpx solid #1989FA;
  152. line-height: 60rpx;
  153. display: flex;
  154. align-items: center;
  155. justify-content: center;
  156. .text {
  157. font-size: 28rpx;
  158. }
  159. .icon {
  160. width: 24rpx;
  161. height: 24rpx;
  162. margin-left: 6rpx;
  163. }
  164. }
  165. }
  166. }
  167. .h1 {
  168. margin: 32rpx 0 24rpx 0;
  169. }
  170. .tabs {
  171. display: flex;
  172. justify-content: space-between;
  173. padding-bottom: 24rpx;
  174. .tab {
  175. width: 96rpx;
  176. height: 60rpx;
  177. background: rgba(25,137,250,0.1);
  178. border-radius: 8rpx;
  179. border: 2rpx solid #1989FA;
  180. font-size: 28rpx;
  181. text-align: center;
  182. line-height: 60rpx;
  183. color: $themC;
  184. &.active {
  185. color: #fff;
  186. background-color: $themC;
  187. }
  188. &.long {
  189. width: 336rpx;
  190. }
  191. }
  192. }
  193. .card {
  194. margin-bottom: 20rpx;
  195. .chart {
  196. }
  197. }
  198. .moreBtn {
  199. width: 200rpx;
  200. height: 60rpx;
  201. background: #FFFFFF;
  202. border-radius: 8rpx;
  203. border: 2rpx solid #E8E9EC;
  204. color: #ADADAD;
  205. text-align: center;
  206. line-height: 60rpx;
  207. margin: 32rpx auto 8rpx auto;
  208. }
  209. }
  210. </style>