Refactor(首页):分享使用通用设置
This commit is contained in:
+1
-15
@@ -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 || []
|
||||
|
||||
Reference in New Issue
Block a user