underReview.vue 4.4 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. // uni.switchTab({ url: "/pages/my/index" });
  64. // }else{
  65. // uni.navigateTo({ url: "/package/jobIntention/completeMsg" });
  66. // }
  67. uni.switchTab({ url: "/pages/my/index" });
  68. },
  69. // 查询用户企业状态
  70. getcompanystatus() {
  71. this.$Request.get("/app/company/selectCompanyByUserId", "")
  72. .then((res) => {
  73. if (res.code != 0) {
  74. uni.showToast({
  75. title: res.msg || "查询状态失败",
  76. icon: "none"
  77. });
  78. return;
  79. }
  80. this.companyinfo = res.data || {};
  81. console.log("查询用户企业状态", res)
  82. })
  83. .catch((err) => {
  84. console.error("查询失败:", err);
  85. uni.showToast({
  86. title: "网络异常",
  87. icon: "none"
  88. });
  89. });
  90. }
  91. },
  92. };
  93. </script>
  94. <style scoped lang="scss">
  95. .company {
  96. position: absolute;
  97. left: 0;
  98. right: 0;
  99. top: 0;
  100. bottom: 0;
  101. display: flex;
  102. flex-direction: column;
  103. font-family: DM Sans;
  104. .company-content {
  105. flex: 1;
  106. padding: 40rpx;
  107. box-sizing: border-box;
  108. overflow: hidden;
  109. overflow-y: auto;
  110. padding-top: 200rpx;
  111. .company-title {
  112. color: rgba(29, 33, 41, 1);
  113. font-family: DM Sans;
  114. font-size: 36rpx;
  115. font-weight: 500;
  116. line-height: 44rpx;
  117. text-align: center;
  118. }
  119. .review-desc {
  120. color: rgba(102, 102, 102, 1);
  121. font-family: DM Sans;
  122. font-size: 24rpx;
  123. font-weight: 400;
  124. line-height: 32rpx;
  125. text-align: center;
  126. padding-top: 22rpx;
  127. padding-bottom: 20rpx;
  128. }
  129. // 拒绝理由样式
  130. .reject-reason {
  131. color: #ff4d4f; /* 红色表示错误/拒绝 */
  132. font-family: DM Sans;
  133. font-size: 26rpx;
  134. line-height: 36rpx;
  135. text-align: center;
  136. padding: 20rpx;
  137. margin: 0 22rpx 50rpx;
  138. background-color: #fff8f8;
  139. border-radius: 8rpx;
  140. border: 1px solid #ffebe9;
  141. }
  142. .review-btn {
  143. padding: 16rpx 32rpx;
  144. box-sizing: border-box;
  145. display: flex;
  146. justify-content: center;
  147. align-items: center;
  148. border-radius: 999px;
  149. background: rgba(255, 102, 0, 1);
  150. color: rgba(255, 255, 255, 1);
  151. font-family: DM Sans;
  152. font-size: 32rpx;
  153. font-weight: 400;
  154. margin: 0 22rpx;
  155. }
  156. }
  157. .bottom-btn {
  158. flex-shrink: 0;
  159. padding-bottom: 50rpx;
  160. text-align: center;
  161. color: #016bf6;
  162. font-family: DM Sans;
  163. font-size: 28rpx;
  164. font-weight: 400;
  165. line-height: 36rpx;
  166. }
  167. }
  168. </style>