|
|
|
@ -546,6 +546,7 @@ |
|
|
|
import releasePage from "@/components/tab-bar/release.vue"; |
|
|
|
import postList from "@/components/tab-bar/postList.vue"; |
|
|
|
import myCenter from "@/components/tab-bar/myCenter.vue"; |
|
|
|
import { getIeRealNameAuditSetting } from '@/common/ieApi.js' |
|
|
|
import { resolveHomeShareTarget, normalizeShareTargetPath } from '@/utils/sharePath.js' |
|
|
|
|
|
|
|
const HOME_AD_IMAGE_CACHE_KEY = 'home_ad_image_cache_v1' |
|
|
|
@ -697,6 +698,7 @@ |
|
|
|
pendingTabIndex: null, |
|
|
|
pendingDeliveryRuleConfirm: false, |
|
|
|
pendingShareTargetPath: '', |
|
|
|
openingShareTargetPath: '', |
|
|
|
width: 0, |
|
|
|
dataTabList: [{ |
|
|
|
name: '猜你喜欢', |
|
|
|
@ -1058,6 +1060,8 @@ |
|
|
|
if (!this.pendingShareTargetPath) return false |
|
|
|
if (!uni.getStorageSync('area')) return true |
|
|
|
const targetPath = this.pendingShareTargetPath |
|
|
|
if (this.openingShareTargetPath === targetPath) return true |
|
|
|
this.openingShareTargetPath = targetPath |
|
|
|
this.pendingShareTargetPath = '' |
|
|
|
uni.removeStorageSync('pendingShareTargetPath') |
|
|
|
uni.removeStorageSync('authPendingTargetPath') |
|
|
|
@ -1068,12 +1072,15 @@ |
|
|
|
fail: () => { |
|
|
|
this.pendingShareTargetPath = targetPath |
|
|
|
uni.setStorageSync('pendingShareTargetPath', targetPath) |
|
|
|
this.openingShareTargetPath = '' |
|
|
|
uni.redirectTo({ |
|
|
|
url: targetPath, |
|
|
|
success: () => { |
|
|
|
uni.removeStorageSync('pendingShareTargetPath') |
|
|
|
this.openingShareTargetPath = '' |
|
|
|
}, |
|
|
|
fail: () => { |
|
|
|
this.openingShareTargetPath = '' |
|
|
|
uni.showToast({ |
|
|
|
title: '进入分享页面失败,请重试', |
|
|
|
icon: 'none' |
|
|
|
@ -1084,6 +1091,11 @@ |
|
|
|
}) |
|
|
|
}, 300) |
|
|
|
}) |
|
|
|
setTimeout(() => { |
|
|
|
if (this.openingShareTargetPath === targetPath) { |
|
|
|
this.openingShareTargetPath = '' |
|
|
|
} |
|
|
|
}, 1500) |
|
|
|
return true |
|
|
|
}, |
|
|
|
refreshDaimaiStickyPosition() { |
|
|
|
@ -1859,38 +1871,40 @@ |
|
|
|
}) |
|
|
|
}, |
|
|
|
//跳转到子页面 |
|
|
|
goDetail(type) { |
|
|
|
async goDetail(type) { |
|
|
|
let url = '' |
|
|
|
let needLogin = false |
|
|
|
switch (type) { |
|
|
|
case '1': |
|
|
|
url = '/package1/runErrand/runErrand' |
|
|
|
needLogin = true |
|
|
|
break; |
|
|
|
case '2': |
|
|
|
this.preloadGroupBuyListPage() |
|
|
|
url = '/package2/group/groupBuyList' |
|
|
|
needLogin = true |
|
|
|
break; |
|
|
|
case '3': |
|
|
|
url = '/package2/group/studentStoreList' |
|
|
|
needLogin = true |
|
|
|
break; |
|
|
|
case '4': |
|
|
|
url = '/package5/planet/index' |
|
|
|
needLogin = true |
|
|
|
break; |
|
|
|
case '5': |
|
|
|
url = '/package4/ieBrowser/index' |
|
|
|
needLogin = true |
|
|
|
url = await this.getIePlanetEntryUrl() |
|
|
|
break; |
|
|
|
} |
|
|
|
if (!url) return |
|
|
|
if (needLogin && !this.requireLoginForPage(url)) return |
|
|
|
uni.navigateTo({ |
|
|
|
url: url |
|
|
|
}) |
|
|
|
}, |
|
|
|
async getIePlanetEntryUrl() { |
|
|
|
try { |
|
|
|
const setting = await getIeRealNameAuditSetting() |
|
|
|
if (setting && setting.ieListingAuditEnabled === true) { |
|
|
|
return '/package4/ieBrowser/mySpace?fromListingAudit=1' |
|
|
|
} |
|
|
|
} catch (e) {} |
|
|
|
return '/package4/ieBrowser/index' |
|
|
|
}, |
|
|
|
//跳转到订单详情 |
|
|
|
goOrderDetail(item) { |
|
|
|
uni.navigateTo({ |
|
|
|
|