瀏覽代碼

企业详情分享

Xiao_123 6 月之前
父節點
當前提交
7bb68b9aca
共有 4 個文件被更改,包括 42 次插入14 次删除
  1. 1 1
      pagesA/chart/index.vue
  2. 1 1
      pagesA/seenMe/index.vue
  3. 37 9
      pagesB/companyDetail/index.vue
  4. 3 3
      pagesB/positionDetail/index.vue

+ 1 - 1
pagesA/chart/index.vue

@@ -79,7 +79,7 @@
                 </v-avatar>
                 </v-avatar>
                 {{ val.payload?.content?.positionInfo?.contact?.name }}
                 {{ val.payload?.content?.positionInfo?.contact?.name }}
                 {{ val.payload?.content?.positionInfo?.contact?.postNameCn }}
                 {{ val.payload?.content?.positionInfo?.contact?.postNameCn }}
-                {{ val.payload?.content?.positionInfo?.enterprise?.name }}
+                {{ val.payload?.content?.positionInfo?.enterprise?.anotherName || val.payload?.content?.positionInfo?.enterprise?.name }}
               </view>
               </view>
               <div class="jobCard-subtitle text-right">
               <div class="jobCard-subtitle text-right">
                 地址:{{ val.payload?.content?.positionInfo?.address }}
                 地址:{{ val.payload?.content?.positionInfo?.address }}

+ 1 - 1
pagesA/seenMe/index.vue

@@ -17,7 +17,7 @@
             <view class="d-flex align-center">
             <view class="d-flex align-center">
               <image :src="item.enterprise.logoUrl" class="avatar" style="width: 50px; height: 50px;"></image>
               <image :src="item.enterprise.logoUrl" class="avatar" style="width: 50px; height: 50px;"></image>
               <view style="flex: 1;" class="ss-m-l-30">
               <view style="flex: 1;" class="ss-m-l-30">
-                <view class="enterprise-name ellipsis">{{ item.enterprise.name }}</view>
+                <view class="enterprise-name ellipsis">{{ item.enterprise.anotherName || item.enterprise.name }}</view>
                 <!-- 行业规模 -->
                 <!-- 行业规模 -->
                 <view class="ss-m-y-15 font-size-12">
                 <view class="ss-m-y-15 font-size-12">
                   <span class="tag-gap color-666">
                   <span class="tag-gap color-666">

+ 37 - 9
pagesB/companyDetail/index.vue

@@ -25,8 +25,9 @@
 
 
     <!-- 企业信息 -->
     <!-- 企业信息 -->
     <view v-if="current === 0" class="ss-m-t-30 ss-m-x-30 ss-p-b-30">
     <view v-if="current === 0" class="ss-m-t-30 ss-m-x-30 ss-p-b-30">
-      <uni-tag v-for="(tag, i) in info.tagList" :key="i" class="ss-m-r-10" :text="tag" inverted="false" 
-      size="default" custom-style="background-color: #eef1f7;color:#7f828b;border-color:#eef1f7;display: inline-block;"/>
+      <span v-for="(tag, i) in info.tagList" :key="i" class="ss-m-r-10 ss-m-b-10" style="display: inline-block;">
+        <uni-tag :text="tag" inverted="false" size="default" custom-style="background-color: #eef1f7;color:#7f828b;border-color:#eef1f7; display: inline-block;"/>
+      </span>
       <!-- 简介 -->
       <!-- 简介 -->
       <view class="ss-m-t-30">
       <view class="ss-m-t-30">
         <h4>企业简介</h4>
         <h4>企业简介</h4>
@@ -38,8 +39,9 @@
       <view >
       <view >
         <h4>企业福利标签</h4>
         <h4>企业福利标签</h4>
         <view class="ss-m-t-20" v-if="info?.welfareList?.length">
         <view class="ss-m-t-20" v-if="info?.welfareList?.length">
-          <uni-tag v-for="(tag, i) in info.welfareList" :key="i" class="ss-m-r-10 ss-m-b-10" :text="tag" inverted="false" 
-          size="default" custom-style="background-color: #eef1f7;color:#7f828b;border-color:#eef1f7; display: inline-block;"/>
+          <span v-for="(tag, i) in info.welfareList" :key="i" class="ss-m-r-10 ss-m-b-10" style="display: inline-block;">
+            <uni-tag :text="tag" inverted="false" size="default" custom-style="background-color: #eef1f7;color:#7f828b;border-color:#eef1f7; display: inline-block;"/>
+          </span>
         </view>
         </view>
         <view v-else></view>
         <view v-else></view>
       </view>
       </view>
@@ -109,7 +111,7 @@
 
 
 <script setup>
 <script setup>
 import { ref } from 'vue'
 import { ref } from 'vue'
-import { onLoad } from '@dcloudio/uni-app'
+import { onLoad, onShareAppMessage, onShareTimeline } from '@dcloudio/uni-app'
 import { getEnterpriseDetails, enterpriseClick, getEnterpriseSubscribeCheck, getEnterpriseUnsubscribe, getEnterpriseSubscribe } from '@/api/user'
 import { getEnterpriseDetails, enterpriseClick, getEnterpriseSubscribeCheck, getEnterpriseUnsubscribe, getEnterpriseSubscribe } from '@/api/user'
 import { dealDictObjData } from '@/utils/position'
 import { dealDictObjData } from '@/utils/position'
 import { timesTampChange } from '@/utils/date'
 import { timesTampChange } from '@/utils/date'
@@ -121,7 +123,8 @@ import { checkIsImage } from '@/utils'
 const current = ref(0)
 const current = ref(0)
 const items = ['企业介绍', '招聘职位']
 const items = ['企业介绍', '招聘职位']
 const info = ref({})
 const info = ref({})
-let id = ref(null)
+const id = ref(null)
+const title = ref('')
 const business = [
 const business = [
   { name: '成立日期', value: 'establishmentTime' },
   { name: '成立日期', value: 'establishmentTime' },
   { name: '注册资金', value: 'registeredCapital' },
   { name: '注册资金', value: 'registeredCapital' },
@@ -169,6 +172,7 @@ const handleFollow = async () => {
 // 企业详情
 // 企业详情
 const getData = async () => {
 const getData = async () => {
   const { data } = await getEnterpriseDetails(id.value)
   const { data } = await getEnterpriseDetails(id.value)
+  title.value = data.enterprise.anotherName || data.enterprise.name
   info.value = data.enterprise ? { ...data, ...dealDictObjData({}, data.enterprise) } : data
   info.value = data.enterprise ? { ...data, ...dealDictObjData({}, data.enterprise) } : data
   getCollectionStatus()
   getCollectionStatus()
 }
 }
@@ -194,10 +198,31 @@ const loadingMore = () => {
   getPositionList()
   getPositionList()
 }
 }
 
 
-onLoad((options) => {
+onLoad(async (options) => {
   id.value = options?.id || ''
   id.value = options?.id || ''
-  if (id.value) {
-    getData()
+  if (id.value) await getData()
+})
+
+wx.showShareMenu({
+  withShareTicket: true,
+  menus: ['shareAppMessage', 'shareTimeline']
+})
+onShareAppMessage(() => {
+  if(!title.value){
+		setTimeout(() => {},1000)
+	}
+  return {
+    title: title.value || '门墩儿 专注顶尖招聘',
+    path: '/pagesB/companyDetail/index?id=' + id.value
+  }
+})
+onShareTimeline(() => {
+  if(!title.value){
+		setTimeout(() => {},1000)
+	}
+  return {
+    title: title.value || '门墩儿 专注顶尖招聘',
+    path: '/pagesB/companyDetail/index?id=' + id.value
   }
   }
 })
 })
 
 
@@ -244,4 +269,7 @@ const videoErrorCallback = (e) =>{
   top: 3px;
   top: 3px;
   right: 10px;
   right: 10px;
 }
 }
+.scrollBox {
+  height: 100vh;
+}
 </style>
 </style>

+ 3 - 3
pagesB/positionDetail/index.vue

@@ -12,7 +12,7 @@
           </view>
           </view>
           <!-- 职位地区 收藏职位 -->
           <!-- 职位地区 收藏职位 -->
           <view class="d-flex justify-space-between mt-5">
           <view class="d-flex justify-space-between mt-5">
-            <view class="bold" style="font-size: 14px;">
+            <view style="font-size: 14px;">
               <span>
               <span>
                 <span>{{positionInfo?.areaName }}</span>
                 <span>{{positionInfo?.areaName }}</span>
                 <span class="viewider-mx" v-if="positionInfo?.areaName && positionInfo?.eduName">|</span>
                 <span class="viewider-mx" v-if="positionInfo?.areaName && positionInfo?.eduName">|</span>
@@ -45,11 +45,11 @@
           <!-- 企业信息 -->
           <!-- 企业信息 -->
           <view class="topLine mt-5 d-flex" @click="handleToEnterprise">
           <view class="topLine mt-5 d-flex" @click="handleToEnterprise">
             <view class="avatarBox">
             <view class="avatarBox">
-              <image class="avatar" :src="info.contact?.avatar || 'https://minio.citupro.com/dev/menduner/7.png'"></image>
+              <image class="avatar" :src="info.enterprise?.logoUrl || 'https://minio.citupro.com/dev/menduner/company-avatar.png'"></image>
             </view>
             </view>
             <view >
             <view >
               <view class="contact-name">{{ info.contact?.name }}</view>
               <view class="contact-name">{{ info.contact?.name }}</view>
-              <view class="contact-info">{{ info.enterprise?.name }} {{ info.contact?.postNameCn ? '· ' + info.contact?.postNameCn : '' }}</view>
+              <view class="contact-info">{{ info.enterprise?.anotherName || info.enterprise?.name }} {{ info.contact?.postNameCn ? '· ' + info.contact?.postNameCn : '' }}</view>
             </view>
             </view>
           </view>
           </view>
           <!-- 岗位职责 -->
           <!-- 岗位职责 -->