mingxi.vue 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541
  1. <template>
  2. <view class="page">
  3. <view class="" :style="{height:tab1==0?'356rpx':'175rpx'}"
  4. style="background: #fff;padding: 0 32rpx;border-bottom: 2rpx solid rgba(0, 0, 0, 0);">
  5. <u-navbar :fixed="false" bgColor='rgba(0,0,0,0)' placeholder :safeAreaInsetTop="true" @leftClick="return1">
  6. <view class="index-header u-flex u-row-between" slot="center" style="position: relative;">
  7. <view class="" style="margin-left: -11rpx;">
  8. <u-tabs :current="tab1" :list="list4" lineWidth="42" lineHeight="5" :lineColor="bgImage"
  9. :activeStyle="{
  10. color: '#303133',
  11. fontWeight: 'bold',
  12. }" :inactiveStyle="{
  13. color: '#606266',
  14. }" itemStyle=" padding-right: 15px; height: 34px;" @click="TabsTop">
  15. </u-tabs>
  16. </view>
  17. </view>
  18. </u-navbar>
  19. <view v-if="tab1 ==0" class="search u-flex" style="margin-top: 20rpx;">
  20. <u-icon name="search"></u-icon>
  21. <input type="text" placeholder="请输入关键词搜索">
  22. </view>
  23. <view v-if="tab1 ==0" class="shaixuan u-flex u-row-between"
  24. style="margin-top: 20rpx;border-top:2rpx solid #f6f6f6 ;padding-top: 16rpx;">
  25. <view class="u-flex" @click="showtime = true">
  26. <text style="margin-right: 14rpx;">{{date || '选择时间'}}</text>
  27. <u-icon name="arrow-down-fill" size="16"></u-icon>
  28. </view>
  29. <view class="u-flex" @click="show = true">
  30. <text style="margin-right: 14rpx;">{{label}}</text>
  31. <u-icon name="arrow-down-fill" size="16"></u-icon>
  32. </view>
  33. </view>
  34. </view>
  35. <view class="content">
  36. <view class="list" v-if="tab1 == 0">
  37. <view class="" v-if="source_type == 'order'">
  38. <view class="">
  39. 订单编号:287910109281003
  40. </view>
  41. <view class="u-flex u-row-between"
  42. style="margin-top: 20rpx; border-top:2rpx solid #F6F6F6;padding-top: -18rpx;box-sizing: border-box;">
  43. <view class="left">
  44. <view class="top">
  45. <text class="left">
  46. 陈昂
  47. </text>
  48. <text class="right">
  49. Java高级工程师
  50. </text>
  51. </view>
  52. <view class="concent">
  53. <text class="left">佣金内容</text>
  54. <text class="right">协助完成面试</text>
  55. </view>
  56. <view class="concent u-flex">
  57. <text class="left">佣金金额</text>
  58. <view class="money">
  59. <text style="font: 24rpx;">¥</text>
  60. <text style="font-size: 32rpx;">200.00</text>
  61. </view>
  62. </view>
  63. </view>
  64. <view class="right">
  65. <view class="top">
  66. <text class="left">
  67. 职位负责人
  68. </text>
  69. <text class="right">
  70. 林景宁
  71. </text>
  72. </view>
  73. <view class="concent">
  74. <text class="left">offer时间</text>
  75. <text class="right">2023.03.12 12:43</text>
  76. </view>
  77. <view class="concent">
  78. <text class="left">过保时间</text>
  79. <text class="right">2023.03.12 12:43</text>
  80. </view>
  81. </view>
  82. </view>
  83. <view class="bottom u-flex u-row-between">
  84. <view class="left">
  85. <text>推荐时间:2023.03.23 12:30</text>
  86. </view>
  87. <view class="right">
  88. <text>佣金结算状态:未回款</text>
  89. </view>
  90. </view>
  91. </view>
  92. <view class="list1" v-if="source_type == 'invite'">
  93. <view class="">
  94. 订单编号:287910109281003
  95. </view>
  96. <view class="u-flex u-row-between">
  97. <view class="u-flex"
  98. style="border-top: 2rpx solid #F6F6F6;margin-top: 20rpx;padding-top: 20rpx;">
  99. <text style="margin-right: 16rpx;" class="title">猎头成单</text>
  100. <view class="back u-flex">
  101. <image style="width: 26rpx;height: 26rpx;margin-top: 3rpx;"
  102. src="static/images/dikou-tips.png" mode="">
  103. </image>
  104. <text class="font" style="margin-left: 12rpx;">订单疑问</text>
  105. </view>
  106. </view>
  107. <view class="money">
  108. <text style="font-size: 24rpx;">¥</text>
  109. <text style="font-size: 32rpx;">200.00</text>
  110. </view>
  111. </view>
  112. <view class="u-flex u-row-between" style="margin-top: 22rpx;">
  113. <text class="data">邀请日期 2023.03.12 12:4</text>
  114. <text class="data1">结算款时间:2023.03.12 12:</text>
  115. </view>
  116. </view>
  117. </view>
  118. <view class="" v-if="tab1 == 1">
  119. <u-subsection mode="subsection" :list="list2" :current="current" @change="change"
  120. keyName="label"></u-subsection>
  121. <view class="yong">
  122. <view class="top">
  123. <text class="left">订单编号:287910109281003</text>
  124. <view class="right">
  125. <text style="font-size: 24rpx;">¥</text>
  126. <text style="font-size: 32rpx;">200.00</text>
  127. </view>
  128. </view>
  129. <view class="" style="border-top:2rpx solid #F6F6F6 ;margin-top: 20rpx;">
  130. <view class="u-flex u-row-between leftf">
  131. <text class="leftff">邀请类型</text>
  132. <text>猎头成单</text>
  133. </view>
  134. <view class="u-flex u-row-between leftf">
  135. <text class="leftff">邀请时间</text>
  136. <text>2023.08.23 12:16</text>
  137. </view>
  138. <view class="u-flex u-row-between leftf">
  139. <text class="leftff">提现账号</text>
  140. <text>中国农业银行(2392)</text>
  141. </view>
  142. <view class="u-flex u-row-between leftf">
  143. <text class="leftff">申请时间</text>
  144. <text>2023.08.23 12:16</text>
  145. </view>
  146. <view class="u-flex u-row-between leftf">
  147. <text class="leftff">到账时间</text>
  148. <text>2023.08.23 12:16</text>
  149. </view>
  150. <view class="u-flex u-row-between leftf">
  151. <text class="leftff">提现状态</text>
  152. <text>已提现</text>
  153. </view>
  154. </view>
  155. </view>
  156. </view>
  157. <view style="height: 70vh;justify-content: center;" class="u-flex" v-if="list.length == 0&&tab1 == 0">
  158. <u-empty text="暂无数据" mode="list"></u-empty>
  159. </view>
  160. <view style="height: 88vh;justify-content: center;" class="u-flex" v-if="list.length == 0 &&tab1 == 1">
  161. <u-empty text="暂无数据" mode="list"></u-empty>
  162. </view>
  163. </view>
  164. <u-datetime-picker :show="showtime" mode="year-month" @confirm="changetime"
  165. @cancel="showtime = false"></u-datetime-picker>
  166. <u-picker :show="show" :columns="columns" keyName="label" @cancel="show = false" @confirm="enter"></u-picker>
  167. </view>
  168. </template>
  169. <script>
  170. import {
  171. commission_list
  172. } from "@/units/inquire.js"
  173. export default {
  174. data() {
  175. return {
  176. show: false,
  177. showtime: false,
  178. tab1: 0,
  179. current: 0,
  180. date: "",
  181. list: [],
  182. list2: [{
  183. label: '订单佣金',
  184. // 其他属性值
  185. source_type: "order"
  186. }, {
  187. label: '邀请佣金',
  188. source_type: "invite"
  189. }],
  190. source_type: "order",
  191. label: "订单佣金",
  192. columns: [
  193. [{
  194. label: '订单佣金',
  195. // 其他属性值
  196. source_type: "order"
  197. // ...
  198. }, {
  199. label: '邀请佣金',
  200. source_type: "invite"
  201. }]
  202. ],
  203. list4: [{
  204. name: "佣金明细"
  205. },
  206. {
  207. name: "提现记录"
  208. }
  209. ]
  210. }
  211. },
  212. onLoad(options) {
  213. this.source_type = options.source_type
  214. if(this.source_type == "order"){
  215. this.label= "订单佣金"
  216. }else{
  217. this.label= "邀请佣金"
  218. }
  219. this.commission_list()
  220. },
  221. computed: {
  222. bgImage() {
  223. return `url(${require('@/static/images/juxing.png')}) 100% 100%`
  224. }
  225. },
  226. methods: {
  227. return1() {
  228. uni.navigateBack()
  229. },
  230. change(e) {
  231. console.log(e);
  232. this.current = e
  233. },
  234. enter(e) {
  235. this.label = e.value[0].label
  236. this.source_type = e.value[0].source_type
  237. this.show = false
  238. },
  239. async changetime(e) {
  240. const timeFormat = uni.$u.timeFormat;
  241. let timeValue = await timeFormat(e.value, 'yyyy-mm');
  242. this.date = timeValue;
  243. this.page = 1
  244. this.total = 0
  245. this.list = []
  246. this.commission_list()
  247. this.showtime = false
  248. },
  249. TabsTop(item) {
  250. this.tab1 = item.index
  251. },
  252. commission_list() {
  253. commission_list({
  254. source_type: this.source_type,
  255. job_name: "",
  256. is_confirm: "",
  257. begin_time: "",
  258. end_time: "",
  259. time_type: "",
  260. status: ""
  261. }).then(res => {
  262. console.log(res);
  263. this.list = res.data.data
  264. console.log(this.list.length);
  265. })
  266. }
  267. }
  268. }
  269. </script>
  270. <style lang="scss" scoped>
  271. .yong {
  272. background: #FFFFFF;
  273. border-radius: 16rpx;
  274. padding: 20rpx 20rpx 26rpx;
  275. box-sizing: border-box;
  276. .top {
  277. .left {
  278. font-size: 24rpx;
  279. font-family: PingFangSC-Regular, PingFang SC;
  280. font-weight: 400;
  281. color: #555555;
  282. }
  283. .right {
  284. font-family: SFPro-Regular, SFPro;
  285. font-weight: 400;
  286. color: #F2413A;
  287. }
  288. }
  289. .leftf {
  290. font-size: 26rpx;
  291. font-family: PingFangSC-Regular, PingFang SC;
  292. font-weight: 400;
  293. color: #555555;
  294. margin-top: 20rpx;
  295. }
  296. .leftff {
  297. font-size: 26rpx;
  298. font-family: PingFangSC-Regular, PingFang SC;
  299. font-weight: 400;
  300. color: #555555;
  301. }
  302. }
  303. .list1 {
  304. background: #FFFFFF;
  305. border-radius: 16rpx;
  306. .data {
  307. font-size: 24rpx;
  308. font-family: PingFangSC-Regular, PingFang SC;
  309. font-weight: 400;
  310. color: #888888;
  311. }
  312. .data1 {
  313. font-size: 24rpx;
  314. font-family: PingFangSC-Regular, PingFang SC;
  315. font-weight: 400;
  316. color: #222222;
  317. }
  318. .title {
  319. font-size: 32rpx;
  320. font-family: PingFangSC-Medium, PingFang SC;
  321. font-weight: 500;
  322. color: #222222;
  323. }
  324. .font {
  325. font-size: 24rpx;
  326. font-family: PingFangSC-Regular, PingFang SC;
  327. font-weight: 400;
  328. color: #fff;
  329. opacity: 1;
  330. }
  331. .back {
  332. background: #0C66C2;
  333. border-radius: 6rpx;
  334. padding: 4rpx 8rpx;
  335. opacity: 0.5;
  336. }
  337. .money {
  338. font-size: 24rpx;
  339. font-family: SFPro-Regular, SFPro;
  340. font-weight: 400;
  341. color: #F2413A;
  342. margin-left: 12rpx;
  343. }
  344. }
  345. .page {
  346. height: 100vh;
  347. .content {
  348. padding: 0 24rpx;
  349. background: #F3F3F3;
  350. min-height: 78vh;
  351. padding-top: 20rpx;
  352. .list {
  353. background: #FFFFFF;
  354. border-radius: 16rpx;
  355. padding: 20rpx;
  356. box-sizing: border-box;
  357. }
  358. }
  359. }
  360. .bottom {
  361. border-top: 2rpx solid #F6F6F6;
  362. margin-top: 18rpx;
  363. padding-top: 18rpx;
  364. box-sizing: border-box;
  365. .left {
  366. font-size: 24rpx;
  367. font-family: PingFangSC-Regular, PingFang SC;
  368. font-weight: 400;
  369. color: #555555;
  370. }
  371. .right {
  372. font-size: 24rpx;
  373. font-family: PingFangSC-Regular, PingFang SC;
  374. font-weight: 400;
  375. color: #999999;
  376. }
  377. }
  378. .right {
  379. .concent {
  380. .left {
  381. font-size: 24rpx;
  382. font-family: PingFangSC-Regular, PingFang SC;
  383. font-weight: 400;
  384. color: #222222;
  385. }
  386. .money {
  387. font-size: 24rpx;
  388. font-family: SFPro-Regular, SFPro;
  389. font-weight: 400;
  390. color: #F2413A;
  391. margin-left: 12rpx;
  392. }
  393. .right {
  394. margin-left: 12rpx;
  395. font-size: 24rpx;
  396. font-family: PingFangSC-Regular, PingFang SC;
  397. font-weight: 400;
  398. color: #555555;
  399. }
  400. }
  401. .top {
  402. .left {
  403. font-size: 24rpx;
  404. font-family: PingFangSC-Regular, PingFang SC;
  405. font-weight: 400;
  406. color: #555555;
  407. }
  408. .right {
  409. font-size: 24rpx;
  410. font-family: PingFangSC-Regular, PingFang SC;
  411. font-weight: 400;
  412. color: #555555;
  413. }
  414. }
  415. }
  416. .left {
  417. .concent {
  418. .left {
  419. font-size: 24rpx;
  420. font-family: PingFangSC-Regular, PingFang SC;
  421. font-weight: 400;
  422. color: #222222;
  423. }
  424. .money {
  425. font-size: 24rpx;
  426. font-family: SFPro-Regular, SFPro;
  427. font-weight: 400;
  428. color: #F2413A;
  429. margin-left: 12rpx;
  430. }
  431. .right {
  432. margin-left: 12rpx;
  433. font-size: 24rpx;
  434. font-family: PingFangSC-Regular, PingFang SC;
  435. font-weight: 400;
  436. color: #555555;
  437. }
  438. }
  439. .top {
  440. .left {
  441. height: 44rpx;
  442. font-size: 32rpx;
  443. font-family: PingFangSC-Medium, PingFang SC;
  444. font-weight: 500;
  445. color: #222222;
  446. }
  447. .right {
  448. margin-left: 12rpx;
  449. font-size: 24rpx;
  450. font-family: PingFangSC-Regular, PingFang SC;
  451. font-weight: 400;
  452. color: #141414;
  453. }
  454. }
  455. }
  456. .search {
  457. height: 68rpx;
  458. background: #F3F3F3;
  459. border-radius: 38rpx;
  460. padding: 14rpx 28rpx;
  461. box-sizing: border-box;
  462. }
  463. .index-header {
  464. padding: 0 32rpx;
  465. height: 50rpx;
  466. .index-search {
  467. width: 200rpx;
  468. height: 64rpx;
  469. background: #FFFFFF;
  470. border-radius: 20rpx;
  471. padding: 0 28rpx;
  472. .text1 {
  473. font-size: 24rpx;
  474. font-family: PingFangSC-Regular, PingFang SC;
  475. font-weight: 400;
  476. color: #999999;
  477. margin-left: 16rpx;
  478. }
  479. }
  480. }
  481. ::v-deep .u-navbar__content__left {
  482. padding: 0 !important;
  483. }
  484. // ::v-deep .u-subsection__item{
  485. // border-radius: 38rpx;
  486. // }
  487. // ::v-deep .u-subsection--subsection{
  488. // border-radius: 76rpx;
  489. // }
  490. </style>