|
@@ -4,7 +4,7 @@
|
|
<view class="box defaultBgc">
|
|
<view class="box defaultBgc">
|
|
<scroll-view class="scrollBox" :scroll-y="true" :scroll-top="scrollTop" @scrolltolower="loadingMore" @scroll="onScroll" style="position:relative;">
|
|
<scroll-view class="scrollBox" :scroll-y="true" :scroll-top="scrollTop" @scrolltolower="loadingMore" @scroll="onScroll" style="position:relative;">
|
|
<view>
|
|
<view>
|
|
- <SwiperAd :list="swiperAdList" :strType="false" @click="handleToDetails"></SwiperAd>
|
|
|
|
|
|
+ <SwiperAd :list="swiperAdList" imgUrlKey="img" :strType="false" @click="handleToDetails"></SwiperAd>
|
|
<!-- 五宫格菜单 -->
|
|
<!-- 五宫格菜单 -->
|
|
<view class="white-bgc ss-p-t-10">
|
|
<view class="white-bgc ss-p-t-10">
|
|
<uni-grid :column="5" @change="handleGrid" :showBorder="false">
|
|
<uni-grid :column="5" @change="handleGrid" :showBorder="false">
|
|
@@ -62,6 +62,7 @@ import { onShow, onLoad, onShareAppMessage, onShareTimeline } from '@dcloudio/un
|
|
import Navbar from '@/components/Navbar'
|
|
import Navbar from '@/components/Navbar'
|
|
import { getRewardEventList } from '@/utils/eventList'
|
|
import { getRewardEventList } from '@/utils/eventList'
|
|
import { getMorningNewsArticle } from '@/api/content'
|
|
import { getMorningNewsArticle } from '@/api/content'
|
|
|
|
+import { getWebContent } from '@/api/common'
|
|
|
|
|
|
// 设置自定义tabbar选中值
|
|
// 设置自定义tabbar选中值
|
|
onShow(() => {
|
|
onShow(() => {
|
|
@@ -94,17 +95,16 @@ onLoad(() => {
|
|
|
|
|
|
const inputDialog = ref()
|
|
const inputDialog = ref()
|
|
const more = ref('more')
|
|
const more = ref('more')
|
|
-const swiperAdList = [
|
|
|
|
- { src: 'https://minio.menduner.com/dev/menduner/banner/IHG.gif', id: '577540545828753408' },
|
|
|
|
- { src: 'https://minio.citupro.com/dev/menduner/preferredGroup/SWISS-HOTEL-MANAGEMENT-SCHOOL-MBA.jpg' },
|
|
|
|
- { src: 'https://minio.menduner.com/dev/menduner/banner/Marriott.jpg', id: '734173233779183616' },
|
|
|
|
- { src: 'https://minio.menduner.com/dev/menduner/banner/UrCove.jpg', id: '277182701256183808' },
|
|
|
|
- { src: 'https://minio.menduner.com/dev/menduner/miniProgram/Grand-Mercure.jpg', id: '120281807903133696' },
|
|
|
|
- // { src: 'https://minio.menduner.com/dev/5eb89c28816dbc7613986ac994d2d760cc9fada84e17a78970c424904c26667c.jpg', id: '735167920258289664' },
|
|
|
|
- { src: 'https://minio.menduner.com/dev/c2fc649b5aec3811c7a171b199bc2e67bb1649e63b471e48a59c8a6ead6aa047.jpg', weiXinPublicUrl: 'https://mp.weixin.qq.com/s/lI7_iHY1yaEqrb_kG1MusA' },
|
|
|
|
- { src: 'https://minio.menduner.com/dev/fbff08c5608d746380f859a97241109fe4726f776a25301d7d0fb43d9ba7df67.png', weiXinPublicUrl: 'https://mp.weixin.qq.com/s/NrxuXTi7kB9AngNBYJ3v4A' },
|
|
|
|
- { src: 'https://minio.menduner.com/dev/4aeb9acb92512d899596d692db935429b339fca189129c0d78ce966f81ba2d38.jpg' }
|
|
|
|
-]
|
|
|
|
|
|
+
|
|
|
|
+// 获取轮播图
|
|
|
|
+const swiperAdList = ref([])
|
|
|
|
+const getSystemWebContent = async () => {
|
|
|
|
+ const { data } = await getWebContent()
|
|
|
|
+ swiperAdList.value = data.appHomeCarousel || []
|
|
|
|
+}
|
|
|
|
+getSystemWebContent()
|
|
|
|
+
|
|
|
|
+
|
|
const filterList = ref([
|
|
const filterList = ref([
|
|
{ label: '城市', dictType: 'areaTreeDataExtend', key: 'areaIds', map: { text: 'name', value: 'id' } },
|
|
{ label: '城市', dictType: 'areaTreeDataExtend', key: 'areaIds', map: { text: 'name', value: 'id' } },
|
|
// { label: '行业', dictType: 'industryTreeData',key: 'industryIds', map: { text: 'nameCn', value: 'id' } },
|
|
// { label: '行业', dictType: 'industryTreeData',key: 'industryIds', map: { text: 'nameCn', value: 'id' } },
|
|
@@ -123,12 +123,12 @@ const gridList = [
|
|
]
|
|
]
|
|
|
|
|
|
// 跳转企业详情
|
|
// 跳转企业详情
|
|
-const handleToDetails = ({ id, weiXinPublicUrl, title }) => {
|
|
|
|
- if (id) {
|
|
|
|
- uni.navigateTo({ url: `/pagesB/companyDetail/index?id=${id}` })
|
|
|
|
- }
|
|
|
|
- if (weiXinPublicUrl) {
|
|
|
|
- uni.navigateTo({ url: `/pages/addWebView/index?url=${weiXinPublicUrl}&title=${title || '风尚榜奖投票'}` })
|
|
|
|
|
|
+const handleToDetails = ({ link, title }) => {
|
|
|
|
+ // if (id) {
|
|
|
|
+ // uni.navigateTo({ url: `/pagesB/companyDetail/index?id=${id}` })
|
|
|
|
+ // }
|
|
|
|
+ if (link) {
|
|
|
|
+ uni.navigateTo({ url: `/pages/addWebView/index?url=${link}&title=${title || '风尚榜奖投票'}` })
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|