Refactor(首页):分享使用通用设置

This commit is contained in:
lifizer
2025-08-21 15:48:09 +08:00
parent 810cf318aa
commit 44bb718431
+1 -15
View File
@@ -364,7 +364,7 @@
import XddTabbar from '@/components/xdd-tabbar'
import XddProductItem from '@/components/xdd-product-item'
import { getCouponReceive } from '@/api/user'
import { getHomeData, getShareImage } from '@/api/public'
import { getHomeData } from '@/api/public'
import { sharpBannar } from '@/api/goods'
import { pageListenMixins } from '@/mixins/pageListenMixins'
import ProductWindow from '@/components/ProductWindow'
@@ -413,8 +413,6 @@ export default {
bastRightList: [],
// 尖货推荐横幅
bannerList: [],
// 分享图片
shareAppImg: '',
// 老用户弹窗
isOldUser: true,
oldUserPopup: {},
@@ -458,17 +456,6 @@ export default {
onHide() {
this.pageToHideHandle()
},
onShareAppMessage() {
uni.updateShareMenu({
isPrivateMessage: false,
withShareTicket: false
})
return {
title: '探寻有趣有味的生活方式',
path: '/pages/home/index',
imageUrl: this.shareAppImg
}
},
onPageScroll(e) {
this.scrollTop = e.scrollTop
},
@@ -1310,7 +1297,6 @@ export default {
this.$yrouter.push('/pages/home/newZone')
},
init() {
getShareImage().then(({ data }) => this.shareAppImg = data)
sharpBannar().then(res => {
const { data } = res
this.bannerList = data.banner || []