Feat(店铺):分享功能对接
This commit is contained in:
@@ -421,7 +421,8 @@ import {
|
||||
getHotelGoodList,
|
||||
postHotelNewsDel,
|
||||
setTopHotelNew,
|
||||
getHotelNewsZan
|
||||
getHotelNewsZan,
|
||||
getHotelShareBackgroundImage
|
||||
} from "@/api/inn.js"
|
||||
import {formatDateTime} from "@/utils"
|
||||
import {getUrlParam} from "@/utils/common.js"
|
||||
@@ -538,6 +539,18 @@ export default {
|
||||
}
|
||||
})
|
||||
},
|
||||
onShareAppMessage() {
|
||||
return new Promise(async (resolve, reject) => {
|
||||
const result = getHotelShareBackgroundImage(this.id)
|
||||
if (result.status === 200) {
|
||||
resolve({
|
||||
title: this.inn.name,
|
||||
path: '/pagesInn/inn/innHome?id=' + this.inn.id,
|
||||
imageUrl: result.data
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
onShow() {
|
||||
if (!this.isLoad) {
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user