|
@@ -25,8 +25,9 @@
|
|
|
|
|
|
<!-- 企业信息 -->
|
|
|
<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">
|
|
|
<h4>企业简介</h4>
|
|
@@ -38,8 +39,9 @@
|
|
|
<view >
|
|
|
<h4>企业福利标签</h4>
|
|
|
<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 v-else></view>
|
|
|
</view>
|
|
@@ -109,7 +111,7 @@
|
|
|
|
|
|
<script setup>
|
|
|
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 { dealDictObjData } from '@/utils/position'
|
|
|
import { timesTampChange } from '@/utils/date'
|
|
@@ -121,7 +123,8 @@ import { checkIsImage } from '@/utils'
|
|
|
const current = ref(0)
|
|
|
const items = ['企业介绍', '招聘职位']
|
|
|
const info = ref({})
|
|
|
-let id = ref(null)
|
|
|
+const id = ref(null)
|
|
|
+const title = ref('')
|
|
|
const business = [
|
|
|
{ name: '成立日期', value: 'establishmentTime' },
|
|
|
{ name: '注册资金', value: 'registeredCapital' },
|
|
@@ -169,6 +172,7 @@ const handleFollow = async () => {
|
|
|
// 企业详情
|
|
|
const getData = async () => {
|
|
|
const { data } = await getEnterpriseDetails(id.value)
|
|
|
+ title.value = data.enterprise.anotherName || data.enterprise.name
|
|
|
info.value = data.enterprise ? { ...data, ...dealDictObjData({}, data.enterprise) } : data
|
|
|
getCollectionStatus()
|
|
|
}
|
|
@@ -194,10 +198,31 @@ const loadingMore = () => {
|
|
|
getPositionList()
|
|
|
}
|
|
|
|
|
|
-onLoad((options) => {
|
|
|
+onLoad(async (options) => {
|
|
|
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;
|
|
|
right: 10px;
|
|
|
}
|
|
|
+.scrollBox {
|
|
|
+ height: 100vh;
|
|
|
+}
|
|
|
</style>
|