Fix:旅居分享问题

This commit is contained in:
linxi
2025-12-10 18:23:12 +08:00
parent eaa36dcf44
commit 1f4ea5c0c8
6 changed files with 67 additions and 8 deletions
+15 -2
View File
@@ -342,6 +342,7 @@ import {
postJiaLouZan,
postJiaLouShare
} from '@/api/qianxian'
import {getUrlParam} from '@/utils/common.js'
import imgBox from '@/components/imageTypeSet/imagebox.vue'
export default {
components: {
@@ -375,8 +376,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()
},
methods: {