underReview.vue 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  1. <template>
  2. <view class="company" :style="{ paddingTop: (12 + statusBarHeight) + 'px' }">
  3. <view class="company-content">
  4. <view class="company-title">
  5. <u-icon name="clock-fill" color="#016BF6" size="40" style="margin-right: 16rpx"></u-icon>
  6. <text>{{ statusText }}</text>
  7. </view>
  8. <view class="review-desc" v-if="companyinfo.status == 1">您于[{{companyinfo.createTime}}]提交了企业认证申请,请耐心等待预计1-3个工作日将会反馈认证结果</view>
  9. <view class="review-desc" v-else-if="companyinfo.status == 2">
  10. 您的企业【{{companyinfo.companyAllName}}】于[{{companyinfo.createTime}}]提交了企业认证申请,
  11. 已经通过审核。
  12. </view>
  13. <view class="review-desc" v-else>
  14. 您的企业【{{companyinfo.companyAllName}}】于[{{companyinfo.createTime}}]提交了企业认证申请,
  15. {{companyinfo.status== 3 ? '审核未通过,理由如下:' + companyinfo.message : '请耐心等待认证结果'}}
  16. </view>
  17. <image src="/static/invite.png" class="slogan"></image>
  18. <!-- 审核拒绝理由区域 -->
  19. <!-- <view class="reject-reason" v-if="companyinfo.status==3">
  20. {{companyinfo.auditContent}}
  21. </view> -->
  22. </view>
  23. <view class="section-btn">
  24. <view class="submit-btn" @click="goCompleteMsg">
  25. {{companyinfo.status==3 ? '重新提交' : '我知道了'}}
  26. </view>
  27. </view>
  28. </view>
  29. </template>
  30. <script>
  31. export default {
  32. data() {
  33. return {
  34. statusBarHeight: 0, // 状态栏高度
  35. companyinfo: {} // 改为对象初始值更合适
  36. };
  37. },
  38. computed: {
  39. statusText() {
  40. let text = '认证审核被拒绝'
  41. let status = this.companyinfo?.status || 3
  42. switch (status) {
  43. case 1:
  44. text = '认证审核中'
  45. break
  46. case 2:
  47. text = '认证审核已通过'
  48. break
  49. }
  50. return text
  51. }
  52. },
  53. onLoad() {
  54. // 获取状态栏高度
  55. let systemInfo = uni.getSystemInfoSync();
  56. this.statusBarHeight = systemInfo.statusBarHeight || 0;
  57. },
  58. onShow() {
  59. this.getcompanystatus()
  60. },
  61. methods: {
  62. goCompleteMsg() {
  63. if (this.companyinfo.status == 1) {
  64. // 审核中,跳转到完善信息页面
  65. uni.navigateTo({
  66. url: '/package/jobIntention/completeMsg'
  67. })
  68. } else {
  69. uni.switchTab({
  70. url: "/pages/my/index"
  71. });
  72. }
  73. },
  74. // 查询用户企业状态
  75. getcompanystatus() {
  76. this.$Request.get("/app/company/selectCompanyByUserId", "")
  77. .then((res) => {
  78. if (res.code != 0) {
  79. uni.showToast({
  80. title: res.msg || "查询状态失败",
  81. icon: "none"
  82. });
  83. return;
  84. }
  85. this.companyinfo = res.data || {};
  86. console.log("查询用户企业状态", res)
  87. })
  88. .catch((err) => {
  89. console.error("查询失败:", err);
  90. uni.showToast({
  91. title: "网络异常",
  92. icon: "none"
  93. });
  94. });
  95. }
  96. },
  97. };
  98. </script>
  99. <style scoped lang="scss">
  100. .company {
  101. height: 100vh;
  102. display: flex;
  103. flex-direction: column;
  104. justify-content: space-between;
  105. font-family: DM Sans;
  106. box-sizing: border-box;
  107. .company-content {
  108. flex: 1;
  109. padding: 96rpx 50rpx 40rpx;
  110. box-sizing: border-box;
  111. .company-title {
  112. color: rgba(29, 33, 41, 1);
  113. font-size: 36rpx;
  114. font-weight: 500;
  115. line-height: 44rpx;
  116. text-align: center;
  117. margin-bottom: 100rpx;
  118. }
  119. .review-desc {
  120. height: 280rpx;
  121. color: rgba(102, 102, 102, 1);
  122. font-size: 28rpx;
  123. font-weight: 400;
  124. line-height: 36rpx;
  125. text-align: center;
  126. }
  127. .slogan {
  128. display: block;
  129. width: 400rpx;
  130. height: 400rpx;
  131. margin: 20rpx auto;
  132. }
  133. // 拒绝理由样式
  134. .reject-reason {
  135. color: #ff4d4f;
  136. /* 红色表示错误/拒绝 */
  137. font-family: DM Sans;
  138. font-size: 26rpx;
  139. line-height: 36rpx;
  140. text-align: center;
  141. padding: 20rpx;
  142. margin: 0 22rpx 50rpx;
  143. background-color: #fff8f8;
  144. border-radius: 8rpx;
  145. border: 1px solid #ffebe9;
  146. }
  147. }
  148. .section-btn {
  149. padding: 40rpx;
  150. box-shadow: 0px -4px 16px 0px rgba(0, 0, 0, 0.04);
  151. background-color: #fff;
  152. .submit-btn {
  153. height: 90rpx;
  154. font-size: 32rpx;
  155. font-weight: 500;
  156. color: #fff;
  157. text-align: center;
  158. line-height: 90rpx;
  159. border-radius: 90rpx;
  160. background: linear-gradient(90.00deg, rgba(13, 39, 247, 1),rgba(19, 193, 234, 1));
  161. }
  162. }
  163. }
  164. </style>