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

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