mine.vue 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564
  1. <template>
  2. <view class="mine-page">
  3. <image src="../../static/images/mine-bg.png" class="mine-bg" mode=""></image>
  4. <u-navbar :fixed="false" bgColor='rgba(0,0,0,0)' placeholder :safeAreaInsetTop="true">
  5. <view class="u-nav-slot" slot="left">
  6. <view class="mine-navbar u-flex-col">
  7. <text>我的</text>
  8. <text style="margin-top:-6rpx;"></text>
  9. </view>
  10. </view>
  11. </u-navbar>
  12. <view class="mine-user u-flex u-row-between">
  13. <image :src="userinfo.group_info.avatar" class="user-head" mode=""></image>
  14. <view class="user-center u-flex-col">
  15. <view class="u-flex " style="margin-bottom: 20rpx;">
  16. <text style="margin-right: 18rpx;">{{userinfo.group_info.name || ''}}</text>
  17. <u-icon name="edit-pen-fill" color="#2979ff" size="22"></u-icon>
  18. </view>
  19. <view class="introduce">
  20. <text>27岁</text>
  21. <text style="margin: 0 11rpx;">|</text>
  22. <text>本科</text>
  23. <text style="margin: 0 11rpx;">|</text>
  24. <text>5年</text>
  25. </view>
  26. </view>
  27. <!-- <image class="mine-user-img" src="../../static/images/mine-qiehuan.png" mode=""></image> -->
  28. <image class="mine-user-img" src="../../static/images/qiehuan.png" mode="">
  29. </image>
  30. </view>
  31. <view class="count-tabs u-flex u-row-between">
  32. <view class="tabs-item u-flex-col u-col-center" @click="toshoucang">
  33. <text>{{userinfo.group_info.collect_count || 0}}</text>
  34. <text>我的收藏</text>
  35. </view>
  36. <view class="tabs-item u-flex-col u-col-center" @click="totoudi">
  37. <text>{{userinfo.group_info.order_count || 0}}</text>
  38. <text>我的投递</text>
  39. </view>
  40. <view class="tabs-item u-flex-col u-col-center" >
  41. <text>{{userinfo.group_info.interview_count || 0}}</text>
  42. <text>我的面试</text>
  43. </view>
  44. <view class="tabs-item u-flex-col u-col-center" @click="tolook">
  45. <text>{{userinfo.group_info.view_count || 0}}</text>
  46. <text>谁看过我</text>
  47. </view>
  48. </view>
  49. <view class="other-list">
  50. <view class="other-header">
  51. 常用功能
  52. </view>
  53. <view class="u-flex u-flex-wrap">
  54. <view class="other-item u-flex-col u-col-center" >
  55. <image src="../../static/images/jianli2.png" style="width: 72rpx;height: 72rpx;" mode="" @click="tojianli"></image>
  56. <text>在线简历</text>
  57. </view>
  58. <view class="other-item u-flex-col u-col-center" >
  59. <image src="../../static/images/jianli.png" style="width: 72rpx;height: 72rpx;" mode=""></image>
  60. <text>简历附件</text>
  61. </view>
  62. <view class="other-item u-flex-col u-col-center" @click="toapply">
  63. <image src="../../static/images/qiuzhi.png" style="width: 72rpx;height: 72rpx;" mode=""></image>
  64. <text>求职意向</text>
  65. </view>
  66. <view class="other-item u-flex-col u-col-center" @click="yinsi">
  67. <image src="../../static/images/yinsi.png" style="width: 72rpx;height: 72rpx;" mode=""></image>
  68. <text>求职隐私</text>
  69. </view>
  70. </view>
  71. </view>
  72. <view class="yongjin-box">
  73. <view class="yongjin-top u-flex u-row-between" @click="toyongjin">
  74. <text class="text">我的佣金</text>
  75. <u-icon name="arrow-right" size="24"></u-icon>
  76. </view>
  77. <view class="yongjin-down u-flex u-row-between">
  78. <view class="down-item u-flex-col u-col-center u-row-center">
  79. <text>{{userinfo.group_info.commission_sum || 0}}</text>
  80. <text>当前余额</text>
  81. </view>
  82. <view class="down-item u-flex-col u-col-center u-row-center" @click="tomingxi('order')">
  83. <text>{{userinfo.group_info.commission_order || 0}}</text>
  84. <text>订单佣金</text>
  85. </view>
  86. <view class="down-item u-flex-col u-col-center u-row-center" @click="tomingxi('invite')">
  87. <text>{{userinfo.group_info.commission_invite || 0}}</text>
  88. <text>邀请佣金</text>
  89. </view>
  90. <view class="down-item u-flex-col u-col-center u-row-center" @click="tobank">
  91. <text>{{userinfo.group_info.bank_count || 0}}</text>
  92. <text>银行卡</text>
  93. </view>
  94. </view>
  95. </view>
  96. <view class="other-list">
  97. <view class="other-header">
  98. 其他功能
  99. </view>
  100. <view class="u-flex u-flex-wrap">
  101. <view class="other-item u-flex-col u-col-center" style="position: relative;" @click="">
  102. <image src="../../static/images/mine-other3.png" mode=""></image>
  103. <image style="position: absolute;width: 72rpx;height: 28rpx;left: 120rpx;" src="../../static/images/yaoqing.png" mode=""></image>
  104. <text>邀请好友</text>
  105. </view>
  106. <view class="other-item u-flex-col u-col-center" @click="toshezhi">
  107. <image src="../../static/images/shezhi.png" mode=""></image>
  108. <text>账号设置</text>
  109. </view>
  110. <view class="other-item u-flex-col u-col-center" style="position: relative;" @click="torenzheng">
  111. <image src="../../static/images/renzheng.png" mode=""></image>
  112. <image style="position: absolute;width: 72rpx;height: 28rpx;left: 120rpx;" src="../../static/images/weirenzheng.png" mode=""></image>
  113. <text>学生认证</text>
  114. </view>
  115. <view class="other-item u-flex-col u-col-center" @click="touserinfo">
  116. <image src="../../static/images/mine-other4.png" mode=""></image>
  117. <text>我的主页</text>
  118. </view>
  119. </view>
  120. </view>
  121. </view>
  122. </template>
  123. <script>
  124. import {
  125. index,collect_get_list
  126. } from "@/units/inquire.js"
  127. export default {
  128. data() {
  129. return {
  130. page:1,
  131. id:"",
  132. userinfo: {
  133. group_info: {},
  134. statistic_data: {}
  135. },
  136. }
  137. },
  138. onLoad() {
  139. this.collect_get_list()
  140. },
  141. onShow() {
  142. this.getuser()
  143. },
  144. methods: {
  145. tobank(){
  146. uni.navigateTo({
  147. url:"/pagesD/bank-card"
  148. })
  149. },
  150. tomingxi(type){
  151. uni.navigateTo({
  152. url:"/pagesD/mingxi?source_type=" + type
  153. })
  154. },
  155. toyongjin(){
  156. uni.navigateTo({
  157. url:"/pagesD/yongjin"
  158. })
  159. },
  160. yinsi(){
  161. uni.navigateTo({
  162. url:"/pagesD/yinsi"
  163. })
  164. },
  165. //收藏列表
  166. collect_get_list(){
  167. collect_get_list({
  168. page:this.page
  169. }).then(res=>{
  170. this.total = res.data.total
  171. })
  172. },
  173. getuser() {
  174. index().then(res => {
  175. this.userinfo = res.data
  176. this.id = res.data.id
  177. })
  178. },
  179. touserinfo() {
  180. uni.navigateTo({
  181. url: "/pagesD/userinfo"
  182. })
  183. },
  184. toapply(){
  185. uni.navigateTo({
  186. url:"/pagesD/apply1"
  187. })
  188. },
  189. toshoucang(){
  190. uni.navigateTo({
  191. url:"/pagesD/my-shoucang?id="+this.id
  192. })
  193. },
  194. tojianli(){
  195. uni.navigateTo({
  196. url:"/pagesD/resume"
  197. })
  198. },
  199. tofapiao() {
  200. uni.navigateTo({
  201. url: "/pagesD/my-fapiao"
  202. })
  203. },
  204. tozixunlist() {
  205. uni.navigateTo({
  206. url: "/pagesD/my-zixun"
  207. })
  208. },
  209. toad() {
  210. uni.navigateTo({
  211. url: "/pagesD/ad-list"
  212. })
  213. },
  214. tozhaopin() {
  215. uni.navigateTo({
  216. url: "/pagesD/xiaoqi"
  217. })
  218. },
  219. tojieshou() {
  220. uni.navigateTo({
  221. url: "/pagesD/list-jieshou"
  222. })
  223. },
  224. tovip() {
  225. uni.navigateTo({
  226. url: "/pagesD/vip"
  227. })
  228. },
  229. todikou() {
  230. uni.navigateTo({
  231. url: "/pagesD/dikou"
  232. })
  233. },
  234. tojubao() {
  235. uni.navigateTo({
  236. url: "/pagesD/jubao-list"
  237. })
  238. },
  239. tozixun() {
  240. uni.navigateTo({
  241. url: "/pagesD/zixun-list"
  242. })
  243. },
  244. tolook(){
  245. uni.navigateTo({
  246. url:'/pagesD/look'
  247. })
  248. },
  249. toshezhi(){
  250. uni.navigateTo({
  251. url:"/pagesD/shezhi"
  252. })
  253. },
  254. totoudi(){
  255. uni.navigateTo({
  256. url:"/pagesD/my-order"
  257. })
  258. },
  259. torenzheng(){
  260. uni.navigateTo({
  261. url:"/pagesD/renzheng"
  262. })
  263. }
  264. }
  265. }
  266. </script>
  267. <style lang="scss">
  268. .mine-page {
  269. position: relative;
  270. .introduce {
  271. text {
  272. height: 36rpx;
  273. font-size: 26rpx;
  274. font-family: SFPro-Regular, SFPro;
  275. font-weight: 400;
  276. color: #555555;
  277. line-height: 30rpx;
  278. }
  279. }
  280. .yongjin-box {
  281. width: 702rpx;
  282. background: #FFFFFF;
  283. border-radius: 20rpx;
  284. margin: 20rpx auto;
  285. .yongjin-down {
  286. height: 142rpx;
  287. .down-item {
  288. flex: 1;
  289. text:first-child {
  290. font-size: 32rpx;
  291. font-family: JDZhengHT-Regular, JDZhengHT;
  292. font-weight: 400;
  293. color: #333333;
  294. margin-bottom: 16rpx;
  295. }
  296. text:last-child {
  297. font-size: 22rpx;
  298. font-family: PingFangSC-Regular, PingFang SC;
  299. font-weight: 400;
  300. color: #333333;
  301. }
  302. }
  303. }
  304. .yongjin-top {
  305. margin: 0 20rpx;
  306. height: 80rpx;
  307. border-bottom: 2rpx solid #F3F3F3;
  308. .text {
  309. font-size: 26rpx;
  310. font-family: PingFangSC-Medium, PingFang SC;
  311. font-weight: 500;
  312. color: #222222;
  313. }
  314. }
  315. }
  316. .other-list {
  317. margin: 20rpx auto;
  318. width: 702rpx;
  319. background: #FFFFFF;
  320. border-radius: 16rpx;
  321. padding-bottom: 1rpx;
  322. .other-item {
  323. width: 25%;
  324. margin-bottom: 32rpx;
  325. image {
  326. width: 52rpx;
  327. height: 52rpx;
  328. margin-bottom: 20rpx;
  329. }
  330. text {
  331. font-size: 22rpx;
  332. font-family: PingFangSC-Regular, PingFang SC;
  333. font-weight: 400;
  334. color: #333333;
  335. }
  336. }
  337. .other-header {
  338. padding: 24rpx 20rpx;
  339. font-size: 26rpx;
  340. font-family: PingFangSC-Medium, PingFang SC;
  341. font-weight: 500;
  342. color: #222222;
  343. margin-bottom: 16rpx;
  344. }
  345. }
  346. .mine-menu {
  347. margin: 20rpx auto;
  348. width: 702rpx;
  349. height: 156rpx;
  350. background: #FFFFFF;
  351. border-radius: 16rpx;
  352. .xian {
  353. height: 68rpx;
  354. border: 2rpx solid #F3F3F3;
  355. }
  356. .menu-item {
  357. padding: 0 40rpx;
  358. flex: 1;
  359. .text1 {
  360. font-size: 28rpx;
  361. font-family: PingFangSC-Medium, PingFang SC;
  362. font-weight: 500;
  363. color: #222222;
  364. margin-bottom: 12rpx;
  365. }
  366. .text2 {
  367. font-size: 20rpx;
  368. font-family: PingFangSC-Regular, PingFang SC;
  369. font-weight: 400;
  370. color: #777777;
  371. margin-right: 8rpx;
  372. }
  373. .menu-img {
  374. width: 100rpx;
  375. height: 100rpx;
  376. }
  377. }
  378. }
  379. .mine-tabs {
  380. margin: 20rpx auto;
  381. width: 702rpx;
  382. height: 160rpx;
  383. position: relative;
  384. z-index: 1;
  385. .tab-item {
  386. flex: 1;
  387. image {
  388. width: 52rpx;
  389. height: 52rpx;
  390. margin-bottom: 12rpx;
  391. }
  392. text {
  393. font-size: 22rpx;
  394. font-family: PingFangSC-Regular, PingFang SC;
  395. font-weight: 400;
  396. color: #222222;
  397. }
  398. }
  399. .tab-right {
  400. width: 150rpx;
  401. height: 160rpx;
  402. // box-shadow: -16rpx 0rpx 24rpx -14rpx rgba(0,0,0,0.1);
  403. image {
  404. width: 52rpx;
  405. height: 52rpx;
  406. margin-bottom: 12rpx;
  407. }
  408. text {
  409. font-size: 22rpx;
  410. font-family: PingFangSC-Regular, PingFang SC;
  411. font-weight: 400;
  412. color: #222222;
  413. }
  414. }
  415. .tabs-bg {
  416. width: 702rpx;
  417. height: 160rpx;
  418. position: absolute;
  419. z-index: -1;
  420. top: 0;
  421. left: 0;
  422. }
  423. }
  424. .mine-huiyuan {
  425. height: 124rpx;
  426. width: 702rpx;
  427. position: relative;
  428. z-index: 1;
  429. padding: 0 28rpx;
  430. margin: 8rpx auto;
  431. text {
  432. width: 148rpx;
  433. line-height: 56rpx;
  434. background: #FFF4DD;
  435. border-radius: 28rpx;
  436. text-align: center;
  437. font-size: 26rpx;
  438. font-family: PingFangSC-Medium, PingFang SC;
  439. font-weight: 500;
  440. color: #3F3F59;
  441. }
  442. .huiyuan-bg {
  443. position: absolute;
  444. top: 0;
  445. left: 0;
  446. height: 124rpx;
  447. width: 702rpx;
  448. z-index: -1;
  449. }
  450. }
  451. .count-tabs {
  452. padding: 20rpx 0;
  453. .tabs-item {
  454. flex: 1;
  455. text:first-child {
  456. font-size: 44rpx;
  457. font-family: JDZhengHT-Regular, JDZhengHT;
  458. font-weight: 400;
  459. color: #222222;
  460. margin-bottom: 18rpx;
  461. }
  462. text:last-child {
  463. font-size: 24rpx;
  464. font-family: PingFangSC-Regular, PingFang SC;
  465. font-weight: 400;
  466. color: #555555;
  467. }
  468. }
  469. }
  470. .mine-user {
  471. padding: 20rpx 32rpx;
  472. .mine-user-img {
  473. width: 52rpx;
  474. height: 52rpx;
  475. margin-left: 28rpx;
  476. }
  477. .user-head {
  478. width: 104rpx;
  479. height: 104rpx;
  480. border-radius: 100rpx;
  481. }
  482. .user-center {
  483. flex: 1;
  484. margin: 0 0 0 20rpx;
  485. }
  486. }
  487. .mine-navbar {
  488. flex: 1;
  489. padding: 0 32rpx;
  490. text:first-child {
  491. font-size: 36rpx;
  492. font-family: PingFangSC-Medium, PingFang SC;
  493. font-weight: 500;
  494. color: #222222;
  495. }
  496. text:last-child {
  497. width: 76rpx;
  498. height: 12rpx;
  499. background: linear-gradient(270deg, #208EFF 0%, rgba(28, 159, 227, 0) 100%);
  500. margin-top: -20rpx;
  501. border-radius: 100rpx;
  502. }
  503. }
  504. .mine-bg {
  505. position: absolute;
  506. top: 0;
  507. left: 0;
  508. width: 750rpx;
  509. height: 430rpx;
  510. z-index: -1;
  511. }
  512. }
  513. page {
  514. background-color: #F3F3F3;
  515. }
  516. </style>