Fix:旅居分享问题
This commit is contained in:
@@ -355,6 +355,7 @@ import {
|
||||
getJiaLouStewardList,
|
||||
getJiaLouNewsList
|
||||
} from '@/api/qianxian'
|
||||
import {getUrlParam} from '@/utils/common.js'
|
||||
import imgBox from '@/components/imageTypeSet/imagebox.vue'
|
||||
export default {
|
||||
components: {
|
||||
@@ -397,8 +398,20 @@ export default {
|
||||
onPageScroll(e) {
|
||||
this.scrollData = e
|
||||
},
|
||||
onLoad(opts) {
|
||||
this.id = opts.id
|
||||
onLoad(options) {
|
||||
const id = options.id || ''
|
||||
this.id = id
|
||||
|
||||
if (id) {
|
||||
// this.partnerId = options.partnerId || null
|
||||
} else {
|
||||
let obj = uni.getEnterOptionsSync()
|
||||
if (options.scene || obj.query.scene) {
|
||||
const query = options ? decodeURIComponent(options.scene + '') : decodeURIComponent(obj.query.scene)
|
||||
this.id = getUrlParam(query, 'id') || null
|
||||
|
||||
}
|
||||
}
|
||||
this.getFarmerData()
|
||||
},
|
||||
watch: {
|
||||
@@ -432,7 +445,7 @@ export default {
|
||||
// 跳转管家详情
|
||||
goHousekeeperDetail(item) {
|
||||
uni.navigateTo({
|
||||
url: '/pkg_product/views/housekeeperDetail?obj=' +JSON.stringify(item)
|
||||
url: '/pkg_product/views/housekeeperDetail?id=' + item.id
|
||||
})
|
||||
},
|
||||
getJiaLouStewardList() {
|
||||
|
||||
Reference in New Issue
Block a user