|
@@ -41,13 +41,6 @@
|
|
</scroll-view>
|
|
</scroll-view>
|
|
|
|
|
|
<AdvertisePop v-if="showAdvertisePop" />
|
|
<AdvertisePop v-if="showAdvertisePop" />
|
|
-
|
|
|
|
- <uni-popup ref="inputDialog" type="dialog">
|
|
|
|
- <view class="shareQrCodePopupContent">
|
|
|
|
- <view class="ss-m-b-10">请前往网页版门墩儿查看</view>
|
|
|
|
- <uni-link href="https://www.menduner.com" text="点击复制网页地址" color="#00897B" fontSize="16" copyTips="已复制,请在电脑端打开"></uni-link>
|
|
|
|
- </view>
|
|
|
|
- </uni-popup>
|
|
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
</template>
|
|
@@ -66,13 +59,6 @@ import { getRewardEventList } from '@/utils/eventList'
|
|
import { getMorningNewsArticle } from '@/api/content'
|
|
import { getMorningNewsArticle } from '@/api/content'
|
|
import { getWebContent } from '@/api/common'
|
|
import { getWebContent } from '@/api/common'
|
|
|
|
|
|
-// 设置自定义tabbar选中值
|
|
|
|
-onShow(() => {
|
|
|
|
- const currentPage = getCurrentPages()[0]; // 获取当前页面实例
|
|
|
|
- const currentTabBar = currentPage?.getTabBar?.();
|
|
|
|
- // 设置当前tab页的下标index
|
|
|
|
- currentTabBar?.setData({ selected: 0 });
|
|
|
|
-})
|
|
|
|
onLoad(() => {
|
|
onLoad(() => {
|
|
wx.showShareMenu({
|
|
wx.showShareMenu({
|
|
withShareTicket: true,
|
|
withShareTicket: true,
|
|
@@ -95,8 +81,9 @@ onLoad(() => {
|
|
if (!uni.getStorageSync('token')) getRewardEventList()
|
|
if (!uni.getStorageSync('token')) getRewardEventList()
|
|
})
|
|
})
|
|
|
|
|
|
-const inputDialog = ref()
|
|
|
|
const more = ref('more')
|
|
const more = ref('more')
|
|
|
|
+// 轮播图-优选集团信息
|
|
|
|
+const preferredGroup = ref({})
|
|
|
|
|
|
// 获取轮播图
|
|
// 获取轮播图
|
|
const showAdvertisePop = ref(false)
|
|
const showAdvertisePop = ref(false)
|
|
@@ -107,8 +94,6 @@ const getSystemWebContent = async () => {
|
|
// 是否展示弹窗广告
|
|
// 是否展示弹窗广告
|
|
showAdvertisePop.value = data && data.appAdvertisement && data.appAdvertisement.length ? true : false
|
|
showAdvertisePop.value = data && data.appAdvertisement && data.appAdvertisement.length ? true : false
|
|
}
|
|
}
|
|
-getSystemWebContent()
|
|
|
|
-
|
|
|
|
|
|
|
|
const filterList = ref([
|
|
const filterList = ref([
|
|
{ label: '城市', multiple: true, dictType: 'areaTreeData', key: 'areaIds', map: { text: 'name', value: 'id' } },
|
|
{ label: '城市', multiple: true, dictType: 'areaTreeData', key: 'areaIds', map: { text: 'name', value: 'id' } },
|
|
@@ -127,23 +112,24 @@ const gridList = [
|
|
{ label: '了解门墩儿', icon: '/static/img/contact.png', path: '/pagesB/about/index' }
|
|
{ label: '了解门墩儿', icon: '/static/img/contact.png', path: '/pagesB/about/index' }
|
|
]
|
|
]
|
|
|
|
|
|
-// 跳转企业详情
|
|
|
|
|
|
+// 轮播图链接跳转
|
|
const handleToDetails = ({ link, 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 || '风尚榜奖投票'}` })
|
|
|
|
- }
|
|
|
|
|
|
+ if (!link) return
|
|
|
|
+ // 企业详情
|
|
|
|
+ if (link.includes('/pagesB/companyDetail/index')) {
|
|
|
|
+ uni.navigateTo({ url: link })
|
|
|
|
+ }
|
|
|
|
+ // 优选集团
|
|
|
|
+ else if (link.includes('/pagesB/preferredGroup/index')) {
|
|
|
|
+ console.log(link, 'link')
|
|
|
|
+ const id = link.split('?id=')[1]
|
|
|
|
+ if (preferredGroup.value && Object.keys(preferredGroup.value).length > 0 && preferredGroup.value[id]) uni.navigateTo({ url: link })
|
|
|
|
+ }
|
|
|
|
+ // 公众号链接
|
|
|
|
+ else uni.navigateTo({ url: `/pages/addWebView/index?url=${link}&title=${title || '风尚榜奖投票'}` })
|
|
}
|
|
}
|
|
|
|
|
|
const handleGrid = async (e) => {
|
|
const handleGrid = async (e) => {
|
|
- // uni.showToast({
|
|
|
|
- // icon: 'none',
|
|
|
|
- // title: '请前往网页版门墩儿查看'
|
|
|
|
- // })
|
|
|
|
- // inputDialog.value.open()
|
|
|
|
-
|
|
|
|
const index = e.detail.index
|
|
const index = e.detail.index
|
|
const obj = gridList[index]
|
|
const obj = gridList[index]
|
|
// 早报资讯
|
|
// 早报资讯
|
|
@@ -247,7 +233,29 @@ const getData = async () => {
|
|
more.value = 'more'
|
|
more.value = 'more'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-getData()
|
|
|
|
|
|
+
|
|
|
|
+// 设置自定义tabbar选中值
|
|
|
|
+onShow(() => {
|
|
|
|
+ const currentPage = getCurrentPages()[0]; // 获取当前页面实例
|
|
|
|
+ const currentTabBar = currentPage?.getTabBar?.();
|
|
|
|
+ // 设置当前tab页的下标index
|
|
|
|
+ currentTabBar?.setData({ selected: 0 });
|
|
|
|
+ getSystemWebContent()
|
|
|
|
+ getData()
|
|
|
|
+
|
|
|
|
+ // 优选集团数据
|
|
|
|
+ uni.request({
|
|
|
|
+ url: 'https://minio.menduner.com/dev/4bf5186e6a19347acfc858eaf835a7dec5200465a911d940b06688543eb95fd3.json',
|
|
|
|
+ method: 'GET',
|
|
|
|
+ success: (res) => {
|
|
|
|
+ // console.log(res.data, 'success-优选集团')
|
|
|
|
+ preferredGroup.value = res.data
|
|
|
|
+ },
|
|
|
|
+ fail: res => {
|
|
|
|
+ log(res, 'fail')
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+})
|
|
|
|
|
|
const scrollTop = ref(0)
|
|
const scrollTop = ref(0)
|
|
const old = ref({
|
|
const old = ref({
|
|
@@ -340,11 +348,4 @@ const loadingMore = () => {
|
|
:deep(.picker-view) {
|
|
:deep(.picker-view) {
|
|
padding-bottom: 80px !important;
|
|
padding-bottom: 80px !important;
|
|
}
|
|
}
|
|
-.shareQrCodePopupContent {
|
|
|
|
- width: 75vw;
|
|
|
|
- padding: 40rpx;
|
|
|
|
- margin-bottom: 20rpx;
|
|
|
|
- text-align: center;
|
|
|
|
- background-color: #fff;
|
|
|
|
-}
|
|
|
|
</style>
|
|
</style>
|