PrefectInfo.vue 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. <template>
  2. <view class="PerfectInfo" v-if="isPerfectInfo">
  3. <!-- <i class="iconfont icondengpao"></i>-->
  4. <uni-row>
  5. <uni-col :xs="24" :sm="24" :md="16" :lg="16" :xl="16">
  6. <view class="content">
  7. <view class="icon">
  8. <cwg-icon color="#333" icon="crm-user-pen" />
  9. </view>
  10. <view class="title">
  11. {{ t('Home.msg.content') }}
  12. </view>
  13. </view>
  14. </uni-col>
  15. <uni-col :xs="24" :sm="24" :md="8" :lg="8" :xl="8">
  16. <button
  17. class="btn-improve"
  18. @click="immediately"
  19. >
  20. {{ t('Home.msg.btn') }}
  21. </button>
  22. </uni-col>
  23. </uni-row>
  24. </view>
  25. </template>
  26. <script setup lang="ts">
  27. import { computed, ref } from 'vue'
  28. import { useI18n } from 'vue-i18n'
  29. import useUserStore from '@/stores/use-user-store'
  30. import useRouter from '@/hooks/useRouter'
  31. const router = useRouter()
  32. const { userInfo } = useUserStore()
  33. const { t } = useI18n()
  34. const customInfo = computed(() => {
  35. return userInfo.customInfo
  36. })
  37. const isPerfectInfo = computed(() => {
  38. const {status,applyRealStatus} = userInfo.customInfo
  39. return status === 2 || applyRealStatus == 1|| applyRealStatus ==2
  40. })
  41. function immediately() {
  42. console.log(customInfo.value)
  43. router.push({
  44. path:'/pages/mine/improveImmediately'
  45. })
  46. }
  47. </script>
  48. <style scoped lang="scss">
  49. @import "@/uni.scss";
  50. .PerfectInfo {
  51. width: 100%;
  52. padding: px2rpx(16);
  53. background-color: #fff9eb;
  54. .content {
  55. width: 100%;
  56. display: flex;
  57. align-items: center;
  58. height: px2rpx(40);
  59. flex: 1;
  60. .icon{
  61. margin-right: 10px;
  62. }
  63. //justify-content: center;
  64. .title {
  65. font-weight: 400;
  66. line-height: px2rpx(24);
  67. font-size: px2rpx(16);
  68. letter-spacing: 0px;
  69. }
  70. }
  71. .btn-improve {
  72. width: px2rpx(120);
  73. height: px2rpx(40);
  74. background-color: #ffde02;
  75. line-height: px2rpx(40);
  76. font-size: px2rpx(14);
  77. margin: 0;
  78. }
  79. }
  80. </style>