jobDetail.vue 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290
  1. <template>
  2. <view class="job-detail-page">
  3. <!-- 固定顶部导航栏 -->
  4. <view class="fixed-header">
  5. <!-- 自定义导航栏 -->
  6. <view class="custom-navbar" :style="{ paddingTop: (12 + statusBarHeight) + 'px' }">
  7. <view class="navbar-content">
  8. <view class="nav-left" @click="goBack">
  9. <u-icon name="arrow-leftward" color="#333" size="32"></u-icon>
  10. </view>
  11. <view class="nav-title">职位详情</view>
  12. <view class="nav-right"></view>
  13. </view>
  14. </view>
  15. </view>
  16. <!-- 主要内容区域 -->
  17. <view class="main-content" :style="{
  18. marginTop: (12 + statusBarHeight + 88) + 'px',
  19. height: 'calc(100vh - ' + (12 + statusBarHeight + 88) + 'px)',
  20. overflowY: 'auto'
  21. }">
  22. <!-- 审核状态提示 -->
  23. <view class="status-section">
  24. <view class="status-icon">
  25. <image src="../../static/images/index/redGantan.svg" class="status-icon-img"></image>
  26. </view>
  27. <view class="status-title">职位审核失败</view>
  28. </view>
  29. <!-- 职位信息卡片 -->
  30. <view class="job-info-card">
  31. <view class="job-header">
  32. <view class="job-title-section">
  33. <text class="job-title">亚马逊运营</text>
  34. </view>
  35. <view class="job-status">
  36. <text class="status-text">审核未通过</text>
  37. </view>
  38. </view>
  39. <view class="job-info">
  40. <text class="job-details">深圳-西乡 本科 1-3年 10-15K·13薪 全职</text>
  41. </view>
  42. </view>
  43. <!-- 失败原因 -->
  44. <view class="failure-reason-section">
  45. <view class="section-title">失败原因</view>
  46. <view class="reason-list">
  47. <view class="reason-item">
  48. <text class="reason-text">1.这是一段由平台端填写的审核详情</text>
  49. </view>
  50. </view>
  51. </view>
  52. </view>
  53. <!-- 底部重新发布按钮 -->
  54. <view class="bottom-action">
  55. <view class="republish-btn" @click="republishJob">
  56. <text class="republish-text">重新发布</text>
  57. </view>
  58. </view>
  59. </view>
  60. </template>
  61. <script>
  62. export default {
  63. data() {
  64. return {
  65. statusBarHeight: 0 // 状态栏高度
  66. }
  67. },
  68. onLoad() {
  69. // 获取状态栏高度
  70. let systemInfo = uni.getSystemInfoSync();
  71. this.statusBarHeight = systemInfo.statusBarHeight || 0;
  72. },
  73. methods: {
  74. goBack() {
  75. uni.navigateBack()
  76. },
  77. republishJob() {
  78. // 跳转到重新发布页面
  79. uni.navigateTo({
  80. url: '/package/addJob/addJob'
  81. })
  82. }
  83. }
  84. }
  85. </script>
  86. <style lang="scss" scoped>
  87. page {
  88. background-color: #ffffff;
  89. }
  90. .job-detail-page {
  91. height: 100vh;
  92. overflow: hidden;
  93. background-color: #ffffff;
  94. }
  95. .fixed-header {
  96. position: fixed;
  97. top: 0;
  98. left: 0;
  99. right: 0;
  100. z-index: 9999;
  101. background-color: #ffffff;
  102. }
  103. .custom-navbar {
  104. // padding-top 已改为动态计算,在模板中通过 :style 设置
  105. background-color: #ffffff;
  106. box-sizing: border-box;
  107. .navbar-content {
  108. display: flex;
  109. align-items: center;
  110. justify-content: space-between;
  111. height: 88rpx;
  112. padding: 0 40rpx;
  113. .nav-left, .nav-right {
  114. width: 60rpx;
  115. height: 60rpx;
  116. display: flex;
  117. align-items: center;
  118. justify-content: center;
  119. }
  120. .nav-title {
  121. color: rgba(51, 51, 51, 1);
  122. font-family: DM Sans;
  123. font-size: 30rpx;
  124. font-weight: 700;
  125. line-height: 52px;
  126. letter-spacing: 0.5%;
  127. text-align: center;
  128. }
  129. }
  130. }
  131. .main-content {
  132. padding: 0 40rpx;
  133. padding-bottom: 120rpx;
  134. }
  135. .status-section {
  136. display: flex;
  137. justify-content: center;
  138. align-items: center;
  139. margin-bottom: 40rpx;
  140. .status-icon {
  141. margin-right: 20rpx;
  142. display: flex;
  143. align-items: center;
  144. .status-icon-img {
  145. width: 48rpx;
  146. height: 48rpx;
  147. }
  148. }
  149. .status-title {
  150. color: rgba(29, 33, 41, 1);
  151. font-family: DM Sans;
  152. font-size: 36rpx;
  153. font-weight: 500;
  154. line-height: 48rpx;
  155. letter-spacing: 0%;
  156. text-align: left;
  157. display: flex;
  158. align-items: center;
  159. }
  160. }
  161. .job-info-card {
  162. background: #ffffff;
  163. border-radius: 12rpx;
  164. margin-bottom: 40rpx;
  165. padding: 32rpx;
  166. border: 0.5px solid rgba(227, 231, 236, 1);
  167. .job-header {
  168. display: flex;
  169. justify-content: space-between;
  170. align-items: flex-start;
  171. margin-bottom: 16rpx;
  172. .job-title-section {
  173. flex: 1;
  174. .job-title {
  175. color: rgba(153, 153, 153, 1);
  176. font-family: DM Sans;
  177. font-size: 28rpx;
  178. font-weight: 400;
  179. line-height: 44rpx;
  180. letter-spacing: 0.5%;
  181. text-align: left;
  182. }
  183. }
  184. .job-status {
  185. .status-text {
  186. color: rgba(153, 153, 153, 1);
  187. font-family: DM Sans;
  188. font-size: 18rpx;
  189. font-weight: 400;
  190. line-height: 20rpx;
  191. letter-spacing: -0.5px;
  192. text-align: right;
  193. }
  194. }
  195. }
  196. .job-info {
  197. .job-details {
  198. color: rgba(153, 153, 153, 1);
  199. font-family: DM Sans;
  200. font-size: 28rpx;
  201. font-weight: 400;
  202. line-height: 36rpx;
  203. letter-spacing: 0.5%;
  204. text-align: left;
  205. }
  206. }
  207. }
  208. .failure-reason-section {
  209. .section-title {
  210. color: rgba(31, 44, 55, 1);
  211. font-family: DM Sans;
  212. font-size: 28rpx;
  213. font-weight: 500;
  214. line-height: 44rpx;
  215. letter-spacing: 0.5%;
  216. text-align: left;
  217. margin-bottom: 20rpx;
  218. }
  219. .reason-list {
  220. .reason-item {
  221. margin-bottom: 16rpx;
  222. .reason-text {
  223. color: rgba(153, 153, 153, 1);
  224. font-family: DM Sans;
  225. font-size: 24rpx;
  226. font-weight: 500;
  227. line-height: 48rpx;
  228. letter-spacing: 0.5%;
  229. text-align: left;
  230. }
  231. }
  232. }
  233. }
  234. .bottom-action {
  235. position: fixed;
  236. bottom: 0;
  237. left: 0;
  238. right: 0;
  239. padding: 30rpx 40rpx;
  240. background: #ffffff;
  241. z-index: 9999;
  242. .republish-btn {
  243. width: 100%;
  244. height: 88rpx;
  245. background: linear-gradient(90deg, rgba(13, 39, 247, 1), rgba(19, 193, 234, 1) 100%);
  246. border-radius: 44rpx;
  247. display: flex;
  248. align-items: center;
  249. justify-content: center;
  250. .republish-text {
  251. color: rgba(255, 255, 255, 1);
  252. font-family: DM Sans;
  253. font-size: 32rpx;
  254. font-weight: 400;
  255. line-height: 48rpx;
  256. letter-spacing: 0%;
  257. text-align: center;
  258. }
  259. }
  260. }
  261. </style>