zhangwei
2024-09-09 87bad1af0c203865d318befd9bf3af199896931e
src/pages/enterprise/index.vue
@@ -1,8 +1,8 @@
<template>
   <view class="">
      <view class="content chuany-flex chuany-align-end chuany-justify-center">
      <!-- <view class="content chuany-flex chuany-align-end chuany-justify-center">
         <up-avatar :src="avatarUrlImg" shape="circle" size='80'></up-avatar>
      </view>
      </view> -->
      <fui-list :topBorder='false'>
         <fui-list-cell arrow :bottomBorder='false' :padding="['20rpx', '32rpx', '20rpx', '32rpx']">
            <view class="fui-list__item">
@@ -43,7 +43,7 @@
      $db
   } = getCurrentInstance().appContext.config.globalProperties
   onShow(() => {
      let data = JSON.parse($db.get('userInfo')).userCompany
      let data = $db.get('userInfo') ? JSON.parse($db.get('userInfo')).userCompany : null
      if (data) {
         enterpriseInfo.businessLicense = data.businessLicense
         enterpriseInfo.suppliername = data.suppliername //企业名称
@@ -56,11 +56,11 @@
         enterpriseInfo.resume = data.resume
      }
   })
   let avatarUrlImg = ref('')
   onLoad(() => {
      // getUser()
      let obj = $db.get('userInfo')?JSON.parse($db.get('userInfo')):{}
      let obj = $db.get('userInfo') ? JSON.parse($db.get('userInfo')) : {}
      avatarUrlImg = obj.avatar
   })
   const enterpriseInfo = reactive({