建材商城系统20241014
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.

256 lines
5.3 KiB

11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
  1. <template>
  2. <view class="running-water">
  3. <navbar :title="title[status]" leftClick @leftClick="leftClick" />
  4. <view style="background-color: red;height: 250rpx;">
  5. </view>
  6. <view class="sum">
  7. <view class="left">
  8. <view class="tiele">总佣金()</view>
  9. <view class="price">1240.00</view>
  10. <view class="btn">去提现</view>
  11. </view>
  12. <view class="right">
  13. <view class="tiele">累计提现()</view>
  14. <view class="price">1240.00</view>
  15. <view class="btn">提现记录</view>
  16. </view>
  17. </view>
  18. <view class="searchCondition">
  19. <!--搜索框-->
  20. <span style="margin-right: 40rpx;">金额明细</span>
  21. <view class="dateTimeCls">
  22. <view class="date" @click="startDateOpen">
  23. {{ queryParams.startDate }}
  24. <uv-datetime-picker ref="startDateRef" v-model="queryParams.startDate" mode="date"
  25. @confirm="startDateChange"></uv-datetime-picker>
  26. </view>
  27. <view class="image">
  28. <image src="../static/order/2.svg" style="width: 100%;height: 100%"></image>
  29. </view>
  30. </view>
  31. <span style="margin: 0 20rpx;">-</span>
  32. <view class="dateTimeCls">
  33. <view class="date" @click="endDateOpen">
  34. {{ queryParams.endDate }}
  35. <uv-datetime-picker ref="endDateRef" v-model="queryParams.endDate" mode="date"
  36. @confirm="endDateChange">
  37. </uv-datetime-picker>
  38. </view>
  39. <view class="image">
  40. <image src="../static/order/2.svg" style="width: 100%;height: 100%"></image>
  41. </view>
  42. </view>
  43. </view>
  44. <view class="tab-box">
  45. <view class="tab-box1" v-if="agentFlow.records.length>0 && agentFlow.total>0">
  46. <uv-cell center border :title="item.title" v-for="(item, index) in agentFlow.records"
  47. :value="x[item.type] + item.money" :label="item.createTime" />
  48. </view>
  49. <view style="padding: 100rpx 0;" v-else>
  50. <uv-empty mode="history" textSize="28rpx" iconSize="100rpx" />
  51. </view>
  52. </view>
  53. </view>
  54. </template>
  55. <script>
  56. import dayjs from "dayjs";
  57. export default {
  58. data() {
  59. return {
  60. queryParams: {
  61. pageNo: 1,
  62. pageSize: 10,
  63. startDate: dayjs(new Date()).subtract(30, 'day').format('YYYY-MM-DD'),
  64. endDate: dayjs(new Date()).format('YYYY-MM-DD'),
  65. },
  66. title: ['余额记录', '提现记录', '佣金记录'],
  67. agentFlow: {
  68. total: 1,
  69. records: [{
  70. type: 0,
  71. money: 100,
  72. createTime: '2024-04-02 20:00',
  73. title: "佣金提现",
  74. },
  75. {
  76. type: 0,
  77. money: 100,
  78. createTime: '2024-04-02 20:00',
  79. title: "佣金提现",
  80. },
  81. {
  82. type: 0,
  83. money: 100,
  84. createTime: '2024-04-02 20:00',
  85. title: "佣金提现",
  86. },
  87. ]
  88. },
  89. x: ['+', '-', '-', '+'],
  90. status: 0,
  91. }
  92. },
  93. onLoad(e) {
  94. this.status = e.status
  95. },
  96. methods: {
  97. leftClick() { //返回钱包
  98. uni.navigateBack(-1)
  99. },
  100. getAgentFlow() { //获取流水记录
  101. let type = this.status;
  102. this.$api('getAgentFlow', {
  103. type
  104. }, res => {
  105. if (res.code == 200) {
  106. this.agentFlow = res.result
  107. }
  108. })
  109. },
  110. startDateChange(val) {
  111. this.$nextTick(() => {
  112. this.queryParams.startDate = dayjs(val.value).format("YYYY-MM-DD")
  113. // this.getData()
  114. });
  115. },
  116. startDateOpen() {
  117. this.$refs.startDateRef.open();
  118. },
  119. endDateChange(val) {
  120. this.$nextTick(() => {
  121. this.queryParams.endDate = dayjs(val.value).format("YYYY-MM-DD")
  122. // this.getData()
  123. });
  124. },
  125. endDateOpen() {
  126. this.$refs.endDateRef.open();
  127. },
  128. }
  129. }
  130. </script>
  131. <style lang="scss" scoped>
  132. .running-water {
  133. width: 750rpx;
  134. margin: 0 auto;
  135. min-height: 100vh;
  136. position: absolute;
  137. background: #F5F5F5;
  138. .tab-box {
  139. margin: 20rpx;
  140. // margin-top: 100rpx;
  141. background-color: #fff;
  142. border-radius: 20rpx;
  143. overflow: hidden;
  144. }
  145. .sum {
  146. display: flex;
  147. justify-content: center;
  148. gap: 100rpx;
  149. width: 90%;
  150. height: 200rpx;
  151. margin-top: 20rpx;
  152. padding: 20rpx;
  153. border: 1px solid #fff;
  154. background-color: #fff;
  155. z-index: 999;
  156. border-radius: 40rpx;
  157. box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
  158. position: absolute;
  159. top: 220rpx;
  160. left: 20rpx;
  161. .left {
  162. display: flex;
  163. flex-direction: column;
  164. justify-content: space-between;
  165. align-items: center;
  166. .title {
  167. font-size: 28rpx;
  168. }
  169. .price {
  170. font-size: 30rpx;
  171. font-weight: 700;
  172. color: #dc2929;
  173. }
  174. .btn {
  175. padding: 10rpx 15rpx;
  176. border: 1px solid #dc2929;
  177. color: #dc2929;
  178. border-radius: 20rpx;
  179. }
  180. }
  181. .right {
  182. display: flex;
  183. flex-direction: column;
  184. justify-content: space-between;
  185. align-items: center;
  186. .title {
  187. font-size: 28rpx;
  188. }
  189. .price {
  190. font-size: 30rpx;
  191. font-weight: 700;
  192. color: #dc2929;
  193. }
  194. .btn {
  195. padding: 10rpx 15rpx;
  196. border: 1px solid #dc2929;
  197. color: #dc2929;
  198. border-radius: 20rpx;
  199. }
  200. }
  201. }
  202. .searchCondition {
  203. display: flex;
  204. width: 100vw;
  205. padding: 0 40rpx;
  206. padding-top: 130rpx;
  207. background-color: #fff;
  208. .dateTimeCls {
  209. display: flex;
  210. justify-content: space-between;
  211. align-items: center;
  212. width: 30%;
  213. border: 1px solid #b0b2b3;
  214. padding: 5rpx;
  215. border-radius: 20rpx;
  216. .date {
  217. font-size: 25rpx;
  218. display: flex;
  219. align-items: center;
  220. width: 80%;
  221. height: 100%;
  222. color: #b0b2b3;
  223. }
  224. .image {
  225. width: 20%;
  226. height: 100%;
  227. }
  228. }
  229. }
  230. }
  231. </style>