underReview.vue 4.3 KB

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