mine.vue 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519
  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.statistic_data.job_count || 0}}</text>
  34. <text>我的收藏</text>
  35. </view>
  36. <view class="tabs-item u-flex-col u-col-center" @click="totoudi">
  37. <text>{{userinfo.statistic_data.resume_count || 0}}</text>
  38. <text>我的投递</text>
  39. </view>
  40. <view class="tabs-item u-flex-col u-col-center" >
  41. <text>{{userinfo.statistic_data.order_count || 0}}</text>
  42. <text>我的面试</text>
  43. </view>
  44. <view class="tabs-item u-flex-col u-col-center">
  45. <text>{{userinfo.statistic_data.order_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" >
  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" >
  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">
  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.statistic_data.commission_sum || 0}}</text>
  80. <text>当前余额</text>
  81. </view>
  82. <view class="down-item u-flex-col u-col-center u-row-center">
  83. <text>{{userinfo.statistic_data.order_commission || 0}}</text>
  84. <text>订单佣金</text>
  85. </view>
  86. <view class="down-item u-flex-col u-col-center u-row-center">
  87. <text>{{userinfo.statistic_data.invite_commission || 0}}</text>
  88. <text>邀请佣金</text>
  89. </view>
  90. <view class="down-item u-flex-col u-col-center u-row-center">
  91. <text>{{userinfo.statistic_data.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="tofapiao">
  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" >
  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;">
  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. //收藏列表
  146. collect_get_list(){
  147. collect_get_list({
  148. page:this.page
  149. }).then(res=>{
  150. this.total = res.data.total
  151. })
  152. },
  153. getuser() {
  154. index().then(res => {
  155. this.userinfo = res.data
  156. this.id = res.data.id
  157. })
  158. },
  159. touserinfo() {
  160. uni.navigateTo({
  161. url: "/pagesD/userinfo"
  162. })
  163. },
  164. toshoucang(){
  165. uni.navigateTo({
  166. url:"/pagesD/my-shoucang?id="+this.id
  167. })
  168. },
  169. tojianli(){
  170. uni.navigateTo({
  171. url:"/pagesD/resume"
  172. })
  173. },
  174. tofapiao() {
  175. uni.navigateTo({
  176. url: "/pagesD/my-fapiao"
  177. })
  178. },
  179. tozixunlist() {
  180. uni.navigateTo({
  181. url: "/pagesD/my-zixun"
  182. })
  183. },
  184. toad() {
  185. uni.navigateTo({
  186. url: "/pagesD/ad-list"
  187. })
  188. },
  189. tozhaopin() {
  190. uni.navigateTo({
  191. url: "/pagesD/xiaoqi"
  192. })
  193. },
  194. tojieshou() {
  195. uni.navigateTo({
  196. url: "/pagesD/list-jieshou"
  197. })
  198. },
  199. tovip() {
  200. uni.navigateTo({
  201. url: "/pagesD/vip"
  202. })
  203. },
  204. todikou() {
  205. uni.navigateTo({
  206. url: "/pagesD/dikou"
  207. })
  208. },
  209. tojubao() {
  210. uni.navigateTo({
  211. url: "/pagesD/jubao-list"
  212. })
  213. },
  214. tozixun() {
  215. uni.navigateTo({
  216. url: "/pagesD/zixun-list"
  217. })
  218. },
  219. }
  220. }
  221. </script>
  222. <style lang="scss">
  223. .mine-page {
  224. position: relative;
  225. .introduce {
  226. text {
  227. height: 36rpx;
  228. font-size: 26rpx;
  229. font-family: SFPro-Regular, SFPro;
  230. font-weight: 400;
  231. color: #555555;
  232. line-height: 30rpx;
  233. }
  234. }
  235. .yongjin-box {
  236. width: 702rpx;
  237. background: #FFFFFF;
  238. border-radius: 20rpx;
  239. margin: 20rpx auto;
  240. .yongjin-down {
  241. height: 142rpx;
  242. .down-item {
  243. flex: 1;
  244. text:first-child {
  245. font-size: 32rpx;
  246. font-family: JDZhengHT-Regular, JDZhengHT;
  247. font-weight: 400;
  248. color: #333333;
  249. margin-bottom: 16rpx;
  250. }
  251. text:last-child {
  252. font-size: 22rpx;
  253. font-family: PingFangSC-Regular, PingFang SC;
  254. font-weight: 400;
  255. color: #333333;
  256. }
  257. }
  258. }
  259. .yongjin-top {
  260. margin: 0 20rpx;
  261. height: 80rpx;
  262. border-bottom: 2rpx solid #F3F3F3;
  263. .text {
  264. font-size: 26rpx;
  265. font-family: PingFangSC-Medium, PingFang SC;
  266. font-weight: 500;
  267. color: #222222;
  268. }
  269. }
  270. }
  271. .other-list {
  272. margin: 20rpx auto;
  273. width: 702rpx;
  274. background: #FFFFFF;
  275. border-radius: 16rpx;
  276. padding-bottom: 1rpx;
  277. .other-item {
  278. width: 25%;
  279. margin-bottom: 32rpx;
  280. image {
  281. width: 52rpx;
  282. height: 52rpx;
  283. margin-bottom: 20rpx;
  284. }
  285. text {
  286. font-size: 22rpx;
  287. font-family: PingFangSC-Regular, PingFang SC;
  288. font-weight: 400;
  289. color: #333333;
  290. }
  291. }
  292. .other-header {
  293. padding: 24rpx 20rpx;
  294. font-size: 26rpx;
  295. font-family: PingFangSC-Medium, PingFang SC;
  296. font-weight: 500;
  297. color: #222222;
  298. margin-bottom: 16rpx;
  299. }
  300. }
  301. .mine-menu {
  302. margin: 20rpx auto;
  303. width: 702rpx;
  304. height: 156rpx;
  305. background: #FFFFFF;
  306. border-radius: 16rpx;
  307. .xian {
  308. height: 68rpx;
  309. border: 2rpx solid #F3F3F3;
  310. }
  311. .menu-item {
  312. padding: 0 40rpx;
  313. flex: 1;
  314. .text1 {
  315. font-size: 28rpx;
  316. font-family: PingFangSC-Medium, PingFang SC;
  317. font-weight: 500;
  318. color: #222222;
  319. margin-bottom: 12rpx;
  320. }
  321. .text2 {
  322. font-size: 20rpx;
  323. font-family: PingFangSC-Regular, PingFang SC;
  324. font-weight: 400;
  325. color: #777777;
  326. margin-right: 8rpx;
  327. }
  328. .menu-img {
  329. width: 100rpx;
  330. height: 100rpx;
  331. }
  332. }
  333. }
  334. .mine-tabs {
  335. margin: 20rpx auto;
  336. width: 702rpx;
  337. height: 160rpx;
  338. position: relative;
  339. z-index: 1;
  340. .tab-item {
  341. flex: 1;
  342. image {
  343. width: 52rpx;
  344. height: 52rpx;
  345. margin-bottom: 12rpx;
  346. }
  347. text {
  348. font-size: 22rpx;
  349. font-family: PingFangSC-Regular, PingFang SC;
  350. font-weight: 400;
  351. color: #222222;
  352. }
  353. }
  354. .tab-right {
  355. width: 150rpx;
  356. height: 160rpx;
  357. // box-shadow: -16rpx 0rpx 24rpx -14rpx rgba(0,0,0,0.1);
  358. image {
  359. width: 52rpx;
  360. height: 52rpx;
  361. margin-bottom: 12rpx;
  362. }
  363. text {
  364. font-size: 22rpx;
  365. font-family: PingFangSC-Regular, PingFang SC;
  366. font-weight: 400;
  367. color: #222222;
  368. }
  369. }
  370. .tabs-bg {
  371. width: 702rpx;
  372. height: 160rpx;
  373. position: absolute;
  374. z-index: -1;
  375. top: 0;
  376. left: 0;
  377. }
  378. }
  379. .mine-huiyuan {
  380. height: 124rpx;
  381. width: 702rpx;
  382. position: relative;
  383. z-index: 1;
  384. padding: 0 28rpx;
  385. margin: 8rpx auto;
  386. text {
  387. width: 148rpx;
  388. line-height: 56rpx;
  389. background: #FFF4DD;
  390. border-radius: 28rpx;
  391. text-align: center;
  392. font-size: 26rpx;
  393. font-family: PingFangSC-Medium, PingFang SC;
  394. font-weight: 500;
  395. color: #3F3F59;
  396. }
  397. .huiyuan-bg {
  398. position: absolute;
  399. top: 0;
  400. left: 0;
  401. height: 124rpx;
  402. width: 702rpx;
  403. z-index: -1;
  404. }
  405. }
  406. .count-tabs {
  407. padding: 20rpx 0;
  408. .tabs-item {
  409. flex: 1;
  410. text:first-child {
  411. font-size: 44rpx;
  412. font-family: JDZhengHT-Regular, JDZhengHT;
  413. font-weight: 400;
  414. color: #222222;
  415. margin-bottom: 18rpx;
  416. }
  417. text:last-child {
  418. font-size: 24rpx;
  419. font-family: PingFangSC-Regular, PingFang SC;
  420. font-weight: 400;
  421. color: #555555;
  422. }
  423. }
  424. }
  425. .mine-user {
  426. padding: 20rpx 32rpx;
  427. .mine-user-img {
  428. width: 52rpx;
  429. height: 52rpx;
  430. margin-left: 28rpx;
  431. }
  432. .user-head {
  433. width: 104rpx;
  434. height: 104rpx;
  435. border-radius: 100rpx;
  436. }
  437. .user-center {
  438. flex: 1;
  439. margin: 0 0 0 20rpx;
  440. }
  441. }
  442. .mine-navbar {
  443. flex: 1;
  444. padding: 0 32rpx;
  445. text:first-child {
  446. font-size: 36rpx;
  447. font-family: PingFangSC-Medium, PingFang SC;
  448. font-weight: 500;
  449. color: #222222;
  450. }
  451. text:last-child {
  452. width: 76rpx;
  453. height: 12rpx;
  454. background: linear-gradient(270deg, #208EFF 0%, rgba(28, 159, 227, 0) 100%);
  455. margin-top: -20rpx;
  456. border-radius: 100rpx;
  457. }
  458. }
  459. .mine-bg {
  460. position: absolute;
  461. top: 0;
  462. left: 0;
  463. width: 750rpx;
  464. height: 430rpx;
  465. z-index: -1;
  466. }
  467. }
  468. page {
  469. background-color: #F3F3F3;
  470. }
  471. </style>