underReview.vue 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. <template>
  2. <view class="company">
  3. <view class="company-content">
  4. <view class="company-title">
  5. <u-icon
  6. name="clock-fill"
  7. color="#016BF6"
  8. size="40"
  9. style="margin-right: 16rpx"
  10. ></u-icon>
  11. {{companyinfo.message}}
  12. </view>
  13. <view class="review-desc" v-if="companyinfo.status!=2">
  14. 您的企业【{{companyinfo.companyAllName}}】于[{{companyinfo.companyCreateTime}}]提交了企业认证申请,
  15. {{companyinfo.status==3 ? '审核未通过,理由如下:'+companyinfo.auditContent : '请耐心等待认证结果'}}
  16. </view>
  17. <view class="review-desc" v-else>
  18. 您的企业【{{companyinfo.companyAllName}}】于[{{companyinfo.companyCreateTime}}]提交了企业认证申请,
  19. 已经通过审核。
  20. </view>
  21. <!-- 审核拒绝理由区域 -->
  22. <view class="reject-reason" v-if="companyinfo.status==3">
  23. {{companyinfo.auditContent}}
  24. </view>
  25. <view class="review-btn" @click="goCompleteMsg">
  26. {{companyinfo.status==3 ? '重新提交' : '我知道了'}}
  27. </view>
  28. </view>
  29. </view>
  30. </template>
  31. <script>
  32. export default {
  33. data() {
  34. return {
  35. companyinfo: {} // 改为对象初始值更合适
  36. };
  37. },
  38. onShow() {
  39. this.getcompanystatus()
  40. },
  41. methods: {
  42. goCompleteMsg() {
  43. if(this.companyinfo.status==3){
  44. uni.navigateTo({ url: "/my/jobPosting?companyName=" });
  45. }else{
  46. uni.navigateTo({ url: "/package/jobIntention/completeMsg" });
  47. }
  48. },
  49. // 查询用户企业状态
  50. getcompanystatus() {
  51. this.$Request.get("/app/company/selectCompanyByUserId", "")
  52. .then((res) => {
  53. if (res.code != 0) {
  54. uni.showToast({
  55. title: res.msg || "查询状态失败",
  56. icon: "none"
  57. });
  58. return;
  59. }
  60. this.companyinfo = res.data || {};
  61. console.log("查询用户企业状态", res)
  62. })
  63. .catch((err) => {
  64. console.error("查询失败:", err);
  65. uni.showToast({
  66. title: "网络异常",
  67. icon: "none"
  68. });
  69. });
  70. }
  71. },
  72. };
  73. </script>
  74. <style scoped lang="scss">
  75. .company {
  76. position: absolute;
  77. left: 0;
  78. right: 0;
  79. top: 0;
  80. bottom: 0;
  81. display: flex;
  82. flex-direction: column;
  83. font-family: DM Sans;
  84. .company-content {
  85. flex: 1;
  86. padding: 40rpx;
  87. box-sizing: border-box;
  88. overflow: hidden;
  89. overflow-y: auto;
  90. padding-top: 200rpx;
  91. .company-title {
  92. color: rgba(29, 33, 41, 1);
  93. font-family: DM Sans;
  94. font-size: 36rpx;
  95. font-weight: 500;
  96. line-height: 44rpx;
  97. text-align: center;
  98. }
  99. .review-desc {
  100. color: rgba(102, 102, 102, 1);
  101. font-family: DM Sans;
  102. font-size: 24rpx;
  103. font-weight: 400;
  104. line-height: 32rpx;
  105. text-align: center;
  106. padding-top: 22rpx;
  107. padding-bottom: 20rpx;
  108. }
  109. // 拒绝理由样式
  110. .reject-reason {
  111. color: #ff4d4f; /* 红色表示错误/拒绝 */
  112. font-family: DM Sans;
  113. font-size: 26rpx;
  114. line-height: 36rpx;
  115. text-align: center;
  116. padding: 20rpx;
  117. margin: 0 22rpx 50rpx;
  118. background-color: #fff8f8;
  119. border-radius: 8rpx;
  120. border: 1px solid #ffebe9;
  121. }
  122. .review-btn {
  123. padding: 16rpx 32rpx;
  124. box-sizing: border-box;
  125. display: flex;
  126. justify-content: center;
  127. align-items: center;
  128. border-radius: 999px;
  129. background: rgba(255, 102, 0, 1);
  130. color: rgba(255, 255, 255, 1);
  131. font-family: DM Sans;
  132. font-size: 32rpx;
  133. font-weight: 400;
  134. margin: 0 22rpx;
  135. }
  136. }
  137. .bottom-btn {
  138. flex-shrink: 0;
  139. padding-bottom: 50rpx;
  140. text-align: center;
  141. color: #016bf6;
  142. font-family: DM Sans;
  143. font-size: 28rpx;
  144. font-weight: 400;
  145. line-height: 36rpx;
  146. }
  147. }
  148. </style>