underReview.vue 3.5 KB

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