myCompany.vue 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425
  1. <template>
  2. <view class="my-company-page">
  3. <!-- 自定义导航栏 -->
  4. <view class="custom-navbar">
  5. <view class="navbar-content">
  6. <view class="nav-left" @click="goBack">
  7. <u-icon name="arrow-leftward" color="#FFF" size="42"></u-icon>
  8. </view>
  9. <view class="nav-title">我的公司</view>
  10. <view class="nav-right"></view>
  11. </view>
  12. </view>
  13. <!-- 头部渐变背景区域 -->
  14. <view class="header-section">
  15. <!-- 插画区域 -->
  16. <view class="illustration-area">
  17. <image src="/static/images/gongsi.svg" class="company-illustration" mode="aspectFit" />
  18. </view>
  19. <!-- 公司名称显示 -->
  20. <view class="company-name-section">
  21. <view class="company-brand">汉睿国际</view>
  22. <view class="company-full-name">深圳市汉睿国际猎头服务有限公司</view>
  23. </view>
  24. </view>
  25. <!-- 公司信息卡片和按钮整体 -->
  26. <view class="company-content-wrapper">
  27. <view class="company-info-card">
  28. <view class="info-item">
  29. <view class="info-label">公司规模</view>
  30. <view class="info-value">0-20人</view>
  31. </view>
  32. <view class="info-item">
  33. <view class="info-label">融资阶段</view>
  34. <view class="info-value">暂无融资</view>
  35. </view>
  36. <view class="info-item">
  37. <view class="info-label">所属行业</view>
  38. <view class="info-value">跨境电商</view>
  39. </view>
  40. </view>
  41. <!-- 操作按钮 -->
  42. <view class="action-buttons">
  43. <view class="leave-btn" @click="leaveCompany">
  44. <text>离开公司</text>
  45. </view>
  46. <view class="change-btn" @click="changeCompany">
  47. <text>更换公司</text>
  48. </view>
  49. </view>
  50. </view>
  51. <!-- 离开公司确认弹窗 -->
  52. <u-popup
  53. v-model="showLeaveModal"
  54. mode="center"
  55. width="630rpx"
  56. border-radius="24"
  57. :closeable="false"
  58. >
  59. <view class="leave-modal">
  60. <view class="modal-content">
  61. <view class="modal-title">离开公司可能造成的影响:</view>
  62. <view class="impact-list">
  63. <view class="impact-item">
  64. <text class="item-number">1.</text>
  65. <text class="item-text">注销招聘者的身份 (后续需要重新认证)</text>
  66. </view>
  67. <view class="impact-item">
  68. <text class="item-number">2.</text>
  69. <text class="item-text">发布中的职位将会被关闭</text>
  70. </view>
  71. <view class="impact-item">
  72. <text class="item-number">3.</text>
  73. <text class="item-text">正在使用中的付费职位等相关权益不在生效, 并且不做退还</text>
  74. </view>
  75. <view class="impact-item">
  76. <text class="item-number">4.</text>
  77. <text class="item-text">更换/离开公司后, 若您有绑定的免密支付将自动解除</text>
  78. </view>
  79. </view>
  80. </view>
  81. <view class="modal-buttons">
  82. <view class="cancel-btn" @click="closeLeaveModal">
  83. <text>取消</text>
  84. </view>
  85. <view class="confirm-btn" @click="confirmLeaveCompany">
  86. <text>仍要离开</text>
  87. </view>
  88. </view>
  89. </view>
  90. </u-popup>
  91. </view>
  92. </template>
  93. <script>
  94. export default {
  95. data() {
  96. return {
  97. companyInfo: {
  98. name: '汉睿国际',
  99. fullName: '深圳市汉睿国际猎头服务有限公司',
  100. size: '0-20人',
  101. finance: '暂无融资',
  102. industry: '跨境电商'
  103. },
  104. showLeaveModal: false // 控制弹窗显示
  105. };
  106. },
  107. methods: {
  108. // 返回上一页
  109. goBack() {
  110. uni.navigateBack();
  111. },
  112. // 离开公司
  113. leaveCompany() {
  114. this.showLeaveModal = true;
  115. },
  116. // 关闭离开公司弹窗
  117. closeLeaveModal() {
  118. this.showLeaveModal = false;
  119. },
  120. // 确认离开公司
  121. confirmLeaveCompany() {
  122. this.showLeaveModal = false;
  123. uni.showLoading({
  124. title: '处理中...'
  125. });
  126. setTimeout(() => {
  127. uni.hideLoading();
  128. uni.showToast({
  129. title: '已离开公司',
  130. icon: 'success'
  131. });
  132. setTimeout(() => {
  133. uni.navigateBack();
  134. }, 1500);
  135. }, 1500);
  136. },
  137. // 更换公司
  138. changeCompany() {
  139. uni.navigateTo({
  140. url: '/pages/my/changeCompanies'
  141. });
  142. }
  143. }
  144. }
  145. </script>
  146. <style lang="scss" scoped>
  147. .my-company-page {
  148. min-height: 100vh;
  149. background: var(--线性渐变, linear-gradient(90.00deg, rgba(13, 39, 247, 1),rgba(19, 193, 234, 1) 100%));
  150. background-size: 100% 35%;
  151. background-position: center top;
  152. background-repeat: no-repeat;
  153. position: relative;
  154. padding-bottom: 40rpx;
  155. }
  156. /* 导航栏 */
  157. .custom-navbar {
  158. position: fixed;
  159. top: 0;
  160. left: 0;
  161. right: 0;
  162. background: transparent;
  163. z-index: 9999;
  164. .navbar-content {
  165. display: flex;
  166. align-items: center;
  167. justify-content: space-between;
  168. height: 88rpx;
  169. padding: 0 40rpx;
  170. padding-top: 80rpx;
  171. .nav-left {
  172. display: flex;
  173. align-items: center;
  174. gap: 8rpx;
  175. .nav-breadcrumb {
  176. color: rgba(255, 255, 255, 1);
  177. font-family: DM Sans;
  178. font-size: 28rpx;
  179. font-weight: 400;
  180. line-height: 40rpx;
  181. }
  182. }
  183. .nav-title {
  184. color: rgba(255, 255, 255, 1);
  185. font-family: DM Sans;
  186. font-size: 32rpx;
  187. font-weight: 700;
  188. line-height: 52rpx;
  189. letter-spacing: 0.5%;
  190. text-align: center;
  191. }
  192. .nav-right {
  193. width: 60rpx;
  194. }
  195. }
  196. }
  197. /* 头部区域 */
  198. .header-section {
  199. padding: 160rpx 40rpx 66rpx 40rpx;
  200. text-align: center;
  201. }
  202. .illustration-area {
  203. margin-bottom: 30rpx;
  204. .company-illustration {
  205. width: 280rpx;
  206. height: 180rpx;
  207. max-width: 100%;
  208. }
  209. }
  210. .company-name-section {
  211. .company-brand {
  212. color: rgba(255, 255, 255, 1);
  213. font-family: DM Sans;
  214. font-size: 28rpx;
  215. font-weight: 500;
  216. line-height: 44rpx;
  217. letter-spacing: 0%;
  218. text-align: center;
  219. margin-bottom: 8rpx;
  220. }
  221. .company-full-name {
  222. color: rgba(255, 255, 255, 1);
  223. font-family: DM Sans;
  224. font-size: 28rpx;
  225. font-weight: 500;
  226. line-height: 44rpx;
  227. letter-spacing: 0%;
  228. text-align: center;
  229. }
  230. }
  231. /* 公司内容整体包装 */
  232. .company-content-wrapper {
  233. width: 100%;
  234. height: 100%;
  235. background: rgba(255, 255, 255, 1);
  236. border-radius: 10px 10px 0px 0px;
  237. padding: 54rpx 76rpx;
  238. display: flex;
  239. flex-direction: column;
  240. gap: 30rpx;
  241. }
  242. /* 公司信息卡片 */
  243. .company-info-card {
  244. background: rgba(255, 255, 255, 1);
  245. border-radius: 24rpx;
  246. overflow: hidden;
  247. }
  248. .info-item {
  249. display: flex;
  250. align-items: center;
  251. padding: 12rpx 24rpx;
  252. gap: 32rpx;
  253. .info-label , .info-value {
  254. color: rgba(153, 153, 153, 1);
  255. font-family: DM Sans;
  256. font-size: 26rpx;
  257. font-weight: 400;
  258. line-height: 32rpx;
  259. letter-spacing: 0%;
  260. text-align: left;
  261. }
  262. }
  263. .leave-btn {
  264. flex: 1;
  265. height: 88rpx;
  266. background: transparent;
  267. border: 2rpx solid rgba(255, 122, 69, 1);
  268. border-radius: 44rpx;
  269. display: flex;
  270. align-items: center;
  271. justify-content: center;
  272. margin-bottom: 38rpx;
  273. text {
  274. color: rgba(255, 102, 0, 1);
  275. font-family: DM Sans;
  276. font-size: 32rpx;
  277. font-weight: 400;
  278. line-height: 48rpx;
  279. letter-spacing: 0%;
  280. text-align: center;
  281. }
  282. &:active {
  283. background: rgba(255, 122, 69, 0.1);
  284. }
  285. }
  286. .change-btn {
  287. flex: 1;
  288. height: 88rpx;
  289. background: linear-gradient(90deg, rgba(255, 122, 69, 1) 0%, rgba(255, 122, 69, 1) 100%);
  290. border-radius: 44rpx;
  291. display: flex;
  292. align-items: center;
  293. justify-content: center;
  294. text {
  295. color: rgba(255, 255, 255, 1);
  296. font-family: DM Sans;
  297. font-size: 32rpx;
  298. font-weight: 400;
  299. line-height: 48rpx;
  300. letter-spacing: 0%;
  301. text-align: center;
  302. }
  303. &:active {
  304. opacity: 0.8;
  305. }
  306. }
  307. /* 离开公司弹窗样式 */
  308. .modal-title {
  309. color: rgba(88, 88, 88, 1);
  310. font-family: DM Sans;
  311. font-size: 28rpxpx;
  312. font-weight: 700;
  313. line-height: 36rpx;
  314. letter-spacing: 0%;
  315. text-align: left;
  316. margin-bottom: 30rpx;
  317. }
  318. .modal-content {
  319. padding: 40rpx;
  320. }
  321. .impact-list {
  322. display: flex;
  323. flex-direction: column;
  324. gap: 12rpx;
  325. }
  326. .impact-item {
  327. display: flex;
  328. gap: 8rpx;
  329. }
  330. .item-number , .item-text {
  331. color: rgba(158, 158, 158, 1);
  332. font-family: DM Sans;
  333. font-size: 26rpx;
  334. font-weight: 400;
  335. line-height: 26rpx;
  336. letter-spacing: 0%;
  337. text-align: left;
  338. }
  339. .modal-buttons {
  340. display: flex;
  341. }
  342. .cancel-btn {
  343. flex: 1;
  344. height: 100rpx;
  345. display: flex;
  346. align-items: center;
  347. justify-content: center;
  348. border-right: 0.5px solid rgba(153, 153, 153, 0.2);
  349. border-top: 0.5px solid rgba(153, 153, 153, 0.2);
  350. }
  351. .cancel-btn text {
  352. color: rgba(153, 153, 153, 0.5);
  353. font-family: DM Sans;
  354. font-size: 28rpx;
  355. font-weight: 500;
  356. line-height: 36rpx;
  357. letter-spacing: 0%;
  358. text-align: center;
  359. text-transform: uppercase;
  360. }
  361. .confirm-btn {
  362. flex: 1;
  363. height: 100rpx;
  364. display: flex;
  365. align-items: center;
  366. justify-content: center;
  367. border-top: 0.5px solid rgba(153, 153, 153, 0.2);
  368. }
  369. .confirm-btn text {
  370. color: rgba(1, 107, 246, 1);
  371. font-family: DM Sans;
  372. font-size: 28rpx;
  373. font-weight: 500;
  374. line-height: 36rpx;
  375. letter-spacing: 0%;
  376. text-align: center;
  377. text-transform: uppercase;
  378. }
  379. </style>